HEX
Server: LiteSpeed
System: Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: swifizcd (1555)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/swifizcd/buyease.com.ng/wp-content/plugins/yaysmtp/assets/dist/main.js
var e,t,n,a,r,o,i,s,l,c,u,d,m,h,f,p,g,v,y,b,w,x,E,R,C,k,_,S,M,N,P,A,D,T,O,F,z,L,j,V,I,H,B,W,U,$,Z,G,q,K,Y,X,Q,J,ee,te,ne,ae,re,oe,ie,se,le,ce,ue,de,me,he,fe,pe,ge,ve,ye,be,we,xe=Object.defineProperty,Ee=e=>{throw TypeError(e)},Re=(e,t,n)=>t.has(e)||Ee("Cannot "+n),Ce=(e,t,n)=>(Re(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>t.has(e)?Ee("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_e=(e,t,n,a)=>(Re(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),Se=(e,t,n)=>(Re(e,t,"access private method"),n),Me=(e,t,n,a)=>({set _(a){_e(e,t,a,n)},get _(){return Ce(e,t,a)}});function Ne(e,t){for(var n=0;n<t.length;n++){const a=t[n];if("string"!=typeof a&&!Array.isArray(a))for(const t in a)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(a,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>a[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Pe,Ae,De="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}),n}function Fe(){return Ae?Pe:(Ae=1,Pe=React)}var ze=Fe();const Le=Te(ze),je=Ne({__proto__:null,default:Le},[ze]);var Ve,Ie,He=Ie?Ve:(Ie=1,Ve=ReactDOM),Be=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},We="undefined"==typeof window||"Deno"in globalThis;function Ue(){}function $e(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ze(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ge(e,t){return"function"==typeof e?e(t):e}function qe(e,t){return"function"==typeof e?e(t):e}function Ke(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:o,queryKey:i,stale:s}=e;if(i)if(a){if(t.queryHash!==Xe(i,t.options))return!1}else if(!Je(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||r&&r!==t.state.fetchStatus||o&&!o(t))}function Ye(e,t){const{exact:n,status:a,predicate:r,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Qe(t.options.mutationKey)!==Qe(o))return!1}else if(!Je(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function Xe(e,t){return((null==t?void 0:t.queryKeyHashFn)||Qe)(e)}function Qe(e){return JSON.stringify(e,(e,t)=>at(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Je(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>Je(e[n],t[n]))}function et(e,t){if(e===t)return e;const n=nt(e)&&nt(t);if(n||at(e)&&at(t)){const a=n?e:Object.keys(e),r=a.length,o=n?t:Object.keys(t),i=o.length,s=n?[]:{},l=new Set(a);let c=0;for(let u=0;u<i;u++){const a=n?u:o[u];(!n&&l.has(a)||n)&&void 0===e[a]&&void 0===t[a]?(s[a]=void 0,c++):(s[a]=et(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&c++)}return r===i&&c===r?e:s}return t}function tt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function nt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function at(e){if(!rt(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!rt(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function ot(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?et(e,t):t}function it(e){return e}function st(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function lt(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var ct=Symbol();function ut(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==ct?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function dt(e,t){return"function"==typeof e?e(...t):!!e}var mt=new(a=class extends Be{constructor(){super(),ke(this,e),ke(this,t),ke(this,n),_e(this,n,e=>{if(!We&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Ce(this,t)||this.setEventListener(Ce(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Ce(this,t))||e.call(this),_e(this,t,void 0))}setEventListener(e){var a;_e(this,n,e),null==(a=Ce(this,t))||a.call(this),_e(this,t,e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(t){Ce(this,e)!==t&&(_e(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var t;return"boolean"==typeof Ce(this,e)?Ce(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,a),ht=new(s=class extends Be{constructor(){super(),ke(this,r,!0),ke(this,o),ke(this,i),_e(this,i,e=>{if(!We&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){Ce(this,o)||this.setEventListener(Ce(this,i))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Ce(this,o))||e.call(this),_e(this,o,void 0))}setEventListener(e){var t;_e(this,i,e),null==(t=Ce(this,o))||t.call(this),_e(this,o,e(this.setOnline.bind(this)))}setOnline(e){Ce(this,r)!==e&&(_e(this,r,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return Ce(this,r)}},r=new WeakMap,o=new WeakMap,i=new WeakMap,s);function ft(){let e,t;const n=new Promise((n,a)=>{e=n,t=a});function a(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{a({status:"fulfilled",value:t}),e(t)},n.reject=e=>{a({status:"rejected",reason:e}),t(e)},n}function pt(e){return Math.min(1e3*2**e,3e4)}function gt(e){return"online"!==(e??"online")||ht.isOnline()}var vt=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function yt(e){return e instanceof vt}function bt(e){let t,n=!1,a=0,r=!1;const o=ft(),i=()=>mt.isFocused()&&("always"===e.networkMode||ht.isOnline())&&e.canRun(),s=()=>gt(e.networkMode)&&e.canRun(),l=n=>{var a;r||(r=!0,null==(a=e.onSuccess)||a.call(e,n),null==t||t(),o.resolve(n))},c=n=>{var a;r||(r=!0,null==(a=e.onError)||a.call(e,n),null==t||t(),o.reject(n))},u=()=>new Promise(n=>{var a;t=e=>{(r||i())&&n(e)},null==(a=e.onPause)||a.call(e)}).then(()=>{var n;t=void 0,r||null==(n=e.onContinue)||n.call(e)}),d=()=>{if(r)return;let t;const o=0===a?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch(t=>{var o;if(r)return;const s=e.retry??(We?0:3),l=e.retryDelay??pt,m="function"==typeof l?l(a,t):l,h=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,t);var f;!n&&h?(a++,null==(o=e.onFail)||o.call(e,a,t),(f=m,new Promise(e=>{setTimeout(e,f)})).then(()=>i()?void 0:u()).then(()=>{n?c(t):d()})):c(t)})};return{promise:o,cancel:t=>{var n;r||(c(new vt(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var wt=e=>setTimeout(e,0),xt=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()},r=wt;const o=a=>{t?e.push(a):r(()=>{n(a)})};return{batch:o=>{let i;t++;try{i=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&r(()=>{a(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e},setScheduler:e=>{r=e}}}(),Et=(c=class{constructor(){ke(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$e(this.gcTime)&&_e(this,l,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(We?1/0:3e5))}clearGcTimeout(){Ce(this,l)&&(clearTimeout(Ce(this,l)),_e(this,l,void 0))}},l=new WeakMap,c),Rt=(b=class extends Et{constructor(e){super(),ke(this,v),ke(this,u),ke(this,d),ke(this,m),ke(this,h),ke(this,f),ke(this,p),ke(this,g),_e(this,g,!1),_e(this,p,e.defaultOptions),this.setOptions(e.options),this.observers=[],_e(this,h,e.client),_e(this,m,Ce(this,h).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,_e(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??Ce(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=Ce(this,f))?void 0:e.promise}setOptions(e){this.options={...Ce(this,p),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Ce(this,m).remove(this)}setData(e,t){const n=ot(this.state.data,e,this.options);return Se(this,v,y).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){Se(this,v,y).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const a=null==(t=Ce(this,f))?void 0:t.promise;return null==(n=Ce(this,f))||n.cancel(e),a?a.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ce(this,u))}isActive(){return this.observers.some(e=>!1!==qe(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ct||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Ge(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Ze(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null==t||t.refetch({cancelRefetch:!1}),null==(e=Ce(this,f))||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null==t||t.refetch({cancelRefetch:!1}),null==(e=Ce(this,f))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Ce(this,m).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(Ce(this,f)&&(Ce(this,g)?Ce(this,f).cancel({revert:!0}):Ce(this,f).cancelRetry()),this.scheduleGc()),Ce(this,m).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,v,y).call(this,{type:"invalidate"})}fetch(e,t){var n,a,r;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(Ce(this,f))return Ce(this,f).continueRetry(),Ce(this,f).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const o=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(_e(this,g,!0),o.signal)})},s=()=>{const e=ut(this.options,t),n=(()=>{const e={client:Ce(this,h),queryKey:this.queryKey,meta:this.meta};return i(e),e})();return _e(this,g,!1),this.options.persister?this.options.persister(e,n,this):e(n)},l=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:Ce(this,h),state:this.state,fetchFn:s};return i(e),e})();null==(n=this.options.behavior)||n.onFetch(l,this),_e(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(a=l.fetchOptions)?void 0:a.meta)||Se(this,v,y).call(this,{type:"fetch",meta:null==(r=l.fetchOptions)?void 0:r.meta});const c=e=>{var t,n,a,r;yt(e)&&e.silent||Se(this,v,y).call(this,{type:"error",error:e}),yt(e)||(null==(n=(t=Ce(this,m).config).onError)||n.call(t,e,this),null==(r=(a=Ce(this,m).config).onSettled)||r.call(a,this.state.data,e,this)),this.scheduleGc()};return _e(this,f,bt({initialPromise:null==t?void 0:t.initialPromise,fn:l.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,a,r;if(void 0!==e){try{this.setData(e)}catch(o){return void c(o)}null==(n=(t=Ce(this,m).config).onSuccess)||n.call(t,e,this),null==(r=(a=Ce(this,m).config).onSettled)||r.call(a,e,this.state.error,this),this.scheduleGc()}else c(new Error(`${this.queryHash} data is undefined`))},onError:c,onFail:(e,t)=>{Se(this,v,y).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Se(this,v,y).call(this,{type:"pause"})},onContinue:()=>{Se(this,v,y).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Ce(this,f).start()}},u=new WeakMap,d=new WeakMap,m=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,v=new WeakSet,y=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Ct(t.data,this.options),fetchMeta:e.meta??null};case"success":return _e(this,d,void 0),{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return yt(n)&&n.revert&&Ce(this,d)?{...Ce(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),xt.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),Ce(this,m).notify({query:this,type:"updated",action:e})})},b);function Ct(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var kt=(x=class extends Be{constructor(e={}){super(),ke(this,w),this.config=e,_e(this,w,new Map)}build(e,t,n){const a=t.queryKey,r=t.queryHash??Xe(a,t);let o=this.get(r);return o||(o=new Rt({client:e,queryKey:a,queryHash:r,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){Ce(this,w).has(e.queryHash)||(Ce(this,w).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Ce(this,w).get(e.queryHash);t&&(e.destroy(),t===e&&Ce(this,w).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){xt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Ce(this,w).get(e)}getAll(){return[...Ce(this,w).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ke(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ke(e,t)):t}notify(e){xt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},w=new WeakMap,x),_t=(S=class extends Et{constructor(e){super(),ke(this,k),ke(this,E),ke(this,R),ke(this,C),this.mutationId=e.mutationId,_e(this,R,e.mutationCache),_e(this,E,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Ce(this,E).includes(e)||(Ce(this,E).push(e),this.clearGcTimeout(),Ce(this,R).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){_e(this,E,Ce(this,E).filter(t=>t!==e)),this.scheduleGc(),Ce(this,R).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Ce(this,E).length||("pending"===this.state.status?this.scheduleGc():Ce(this,R).remove(this))}continue(){var e;return(null==(e=Ce(this,C))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,a,r,o,i,s,l,c,u,d,m,h,_n,f,p,g,v,y,b;const w=()=>{Se(this,k,_).call(this,{type:"continue"})};_e(this,C,bt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Se(this,k,_).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Se(this,k,_).call(this,{type:"pause"})},onContinue:w,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ce(this,R).canRun(this)}));const x="pending"===this.state.status,E=!Ce(this,C).canStart();try{if(x)w();else{Se(this,k,_).call(this,{type:"pending",variables:e,isPaused:E}),await(null==(n=(t=Ce(this,R).config).onMutate)?void 0:n.call(t,e,this));const o=await(null==(r=(a=this.options).onMutate)?void 0:r.call(a,e));o!==this.state.context&&Se(this,k,_).call(this,{type:"pending",context:o,variables:e,isPaused:E})}const h=await Ce(this,C).start();return await(null==(i=(o=Ce(this,R).config).onSuccess)?void 0:i.call(o,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=Ce(this,R).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(m=(d=this.options).onSettled)?void 0:m.call(d,h,null,e,this.state.context)),Se(this,k,_).call(this,{type:"success",data:h}),h}catch(S){try{throw await(null==(_n=(h=Ce(this,R).config).onError)?void 0:_n.call(h,S,e,this.state.context,this)),await(null==(p=(f=this.options).onError)?void 0:p.call(f,S,e,this.state.context)),await(null==(v=(g=Ce(this,R).config).onSettled)?void 0:v.call(g,void 0,S,this.state.variables,this.state.context,this)),await(null==(b=(y=this.options).onSettled)?void 0:b.call(y,void 0,S,e,this.state.context)),S}finally{Se(this,k,_).call(this,{type:"error",error:S})}}finally{Ce(this,R).runNext(this)}}},E=new WeakMap,R=new WeakMap,C=new WeakMap,k=new WeakSet,_=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),xt.batch(()=>{Ce(this,E).forEach(t=>{t.onMutationUpdate(e)}),Ce(this,R).notify({mutation:this,type:"updated",action:e})})},S),St=(A=class extends Be{constructor(e={}){super(),ke(this,M),ke(this,N),ke(this,P),this.config=e,_e(this,M,new Set),_e(this,N,new Map),_e(this,P,0)}build(e,t,n){const a=new _t({mutationCache:this,mutationId:++Me(this,P)._,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){Ce(this,M).add(e);const t=Mt(e);if("string"==typeof t){const n=Ce(this,N).get(t);n?n.push(e):Ce(this,N).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(Ce(this,M).delete(e)){const t=Mt(e);if("string"==typeof t){const n=Ce(this,N).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&Ce(this,N).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Mt(e);if("string"==typeof t){const n=Ce(this,N).get(t),a=null==n?void 0:n.find(e=>"pending"===e.state.status);return!a||a===e}return!0}runNext(e){var t;const n=Mt(e);if("string"==typeof n){const a=null==(t=Ce(this,N).get(n))?void 0:t.find(t=>t!==e&&t.state.isPaused);return(null==a?void 0:a.continue())??Promise.resolve()}return Promise.resolve()}clear(){xt.batch(()=>{Ce(this,M).forEach(e=>{this.notify({type:"removed",mutation:e})}),Ce(this,M).clear(),Ce(this,N).clear()})}getAll(){return Array.from(Ce(this,M))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Ye(t,e))}findAll(e={}){return this.getAll().filter(t=>Ye(e,t))}notify(e){xt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return xt.batch(()=>Promise.all(e.map(e=>e.continue().catch(Ue))))}},M=new WeakMap,N=new WeakMap,P=new WeakMap,A);function Mt(e){var t;return null==(t=e.options.scope)?void 0:t.id}function Nt(e){return{onFetch:(t,n)=>{var a,r,o,i,s;const l=t.options,c=null==(o=null==(r=null==(a=t.fetchOptions)?void 0:a.meta)?void 0:r.fetchMore)?void 0:o.direction,u=(null==(i=t.state.data)?void 0:i.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let m={pages:[],pageParams:[]},h=0;const f=async()=>{let n=!1;const a=ut(t.options,t.fetchOptions),r=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var a;return a=e,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),s=await a(i),{maxPages:l}=t.options,c=o?lt:st;return{pages:c(e.pages,s,l),pageParams:c(e.pageParams,r,l)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?At:Pt)(l,t);m=await r(t,n,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Pt(l,m);if(h>0&&null==e)break;m=await r(m,e),h++}while(h<t)}return m};t.options.persister?t.fetchFn=()=>{var e,a;return null==(a=(e=t.options).persister)?void 0:a.call(e,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Pt(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function At(e,{pages:t,pageParams:n}){var a;return t.length>0?null==(a=e.getPreviousPageParam)?void 0:a.call(e,t[0],t,n[0],n):void 0}var Dt=(I=class{constructor(e={}){ke(this,D),ke(this,T),ke(this,O),ke(this,F),ke(this,z),ke(this,L),ke(this,j),ke(this,V),_e(this,D,e.queryCache||new kt),_e(this,T,e.mutationCache||new St),_e(this,O,e.defaultOptions||{}),_e(this,F,new Map),_e(this,z,new Map),_e(this,L,0)}mount(){Me(this,L)._++,1===Ce(this,L)&&(_e(this,j,mt.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,D).onFocus())})),_e(this,V,ht.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,D).onOnline())})))}unmount(){var e,t;Me(this,L)._--,0===Ce(this,L)&&(null==(e=Ce(this,j))||e.call(this),_e(this,j,void 0),null==(t=Ce(this,V))||t.call(this),_e(this,V,void 0))}isFetching(e){return Ce(this,D).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ce(this,T).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Ce(this,D).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Ce(this,D).build(this,t),a=n.state.data;return void 0===a?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ge(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return Ce(this,D).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),r=Ce(this,D).get(a.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0!==o)return Ce(this,D).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>Ce(this,D).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Ce(this,D).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=Ce(this,D);xt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=Ce(this,D);return xt.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=xt.batch(()=>Ce(this,D).findAll(e).map(e=>e.cancel(n)));return Promise.all(a).then(Ue).catch(Ue)}invalidateQueries(e,t={}){return xt.batch(()=>(Ce(this,D).findAll(e).forEach(e=>{e.invalidate()}),"none"===(null==e?void 0:e.refetchType)?Promise.resolve():this.refetchQueries({...e,type:(null==e?void 0:e.refetchType)??(null==e?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=xt.batch(()=>Ce(this,D).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ue)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(a).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Ce(this,D).build(this,t);return n.isStaleByTime(Ge(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Nt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e.behavior=Nt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ht.isOnline()?Ce(this,T).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ce(this,D)}getMutationCache(){return Ce(this,T)}getDefaultOptions(){return Ce(this,O)}setDefaultOptions(e){_e(this,O,e)}setQueryDefaults(e,t){Ce(this,F).set(Qe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ce(this,F).values()],n={};return t.forEach(t=>{Je(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){Ce(this,z).set(Qe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ce(this,z).values()],n={};return t.forEach(t=>{Je(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ce(this,O).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Xe(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ct&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...Ce(this,O).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ce(this,D).clear(),Ce(this,T).clear()}},D=new WeakMap,T=new WeakMap,O=new WeakMap,F=new WeakMap,z=new WeakMap,L=new WeakMap,j=new WeakMap,V=new WeakMap,I),Tt=(me=class extends Be{constructor(e,t){super(),ke(this,ne),ke(this,H),ke(this,B),ke(this,W),ke(this,U),ke(this,$),ke(this,Z),ke(this,G),ke(this,q),ke(this,K),ke(this,Y),ke(this,X),ke(this,Q),ke(this,J),ke(this,ee),ke(this,te,new Set),this.options=t,_e(this,H,e),_e(this,q,null),_e(this,G,ft()),this.options.experimental_prefetchInRender||Ce(this,G).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(Ce(this,B).addObserver(this),Ot(Ce(this,B),this.options)?Se(this,ne,ae).call(this):this.updateResult(),Se(this,ne,se).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ft(Ce(this,B),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ft(Ce(this,B),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,ne,le).call(this),Se(this,ne,ce).call(this),Ce(this,B).removeObserver(this)}setOptions(e){const t=this.options,n=Ce(this,B);if(this.options=Ce(this,H).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof qe(this.options.enabled,Ce(this,B)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,ne,ue).call(this),Ce(this,B).setOptions(this.options),t._defaulted&&!tt(this.options,t)&&Ce(this,H).getQueryCache().notify({type:"observerOptionsUpdated",query:Ce(this,B),observer:this});const a=this.hasListeners();a&&zt(Ce(this,B),n,this.options,t)&&Se(this,ne,ae).call(this),this.updateResult(),!a||Ce(this,B)===n&&qe(this.options.enabled,Ce(this,B))===qe(t.enabled,Ce(this,B))&&Ge(this.options.staleTime,Ce(this,B))===Ge(t.staleTime,Ce(this,B))||Se(this,ne,re).call(this);const r=Se(this,ne,oe).call(this);!a||Ce(this,B)===n&&qe(this.options.enabled,Ce(this,B))===qe(t.enabled,Ce(this,B))&&r===Ce(this,ee)||Se(this,ne,ie).call(this,r)}getOptimisticResult(e){const t=Ce(this,H).getQueryCache().build(Ce(this,H),e),n=this.createResult(t,e);return a=n,!tt(this.getCurrentResult(),a)&&(_e(this,U,n),_e(this,Z,this.options),_e(this,$,Ce(this,B).state)),n;var a}getCurrentResult(){return Ce(this,U)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),null==t||t(n),Reflect.get(e,n))})}trackProp(e){Ce(this,te).add(e)}getCurrentQuery(){return Ce(this,B)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=Ce(this,H).defaultQueryOptions(e),n=Ce(this,H).getQueryCache().build(Ce(this,H),t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return Se(this,ne,ae).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),Ce(this,U)))}createResult(e,t){var n;const a=Ce(this,B),r=this.options,o=Ce(this,U),i=Ce(this,$),s=Ce(this,Z),l=e!==a?e.state:Ce(this,W),{state:c}=e;let u,d={...c},m=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&Ot(e,t),i=n&&zt(e,a,t,r);(o||i)&&(d={...d,...Ct(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:p}=d;u=d.data;let g=!1;if(void 0!==t.placeholderData&&void 0===u&&"pending"===p){let e;(null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData)?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(null==(n=Ce(this,X))?void 0:n.state.data,Ce(this,X)):t.placeholderData,void 0!==e&&(p="success",u=ot(null==o?void 0:o.data,e,t),m=!0)}if(t.select&&void 0!==u&&!g)if(o&&u===(null==i?void 0:i.data)&&t.select===Ce(this,K))u=Ce(this,Y);else try{_e(this,K,t.select),u=t.select(u),u=ot(null==o?void 0:o.data,u,t),_e(this,Y,u),_e(this,q,null)}catch(R){_e(this,q,R)}Ce(this,q)&&(h=Ce(this,q),u=Ce(this,Y),f=Date.now(),p="error");const v="fetching"===d.fetchStatus,y="pending"===p,b="error"===p,w=y&&v,x=void 0!==u,E={status:p,fetchStatus:d.fetchStatus,isPending:y,isSuccess:"success"===p,isError:b,isInitialLoading:w,isLoading:w,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:b&&!x,isPaused:"paused"===d.fetchStatus,isPlaceholderData:m,isRefetchError:b&&x,isStale:Lt(e,t),refetch:this.refetch,promise:Ce(this,G),isEnabled:!1!==qe(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===E.status?e.reject(E.error):void 0!==E.data&&e.resolve(E.data)},n=()=>{const e=_e(this,G,E.promise=ft());t(e)},r=Ce(this,G);switch(r.status){case"pending":e.queryHash===a.queryHash&&t(r);break;case"fulfilled":"error"!==E.status&&E.data===r.value||n();break;case"rejected":"error"===E.status&&E.error===r.reason||n()}}return E}updateResult(){const e=Ce(this,U),t=this.createResult(Ce(this,B),this.options);_e(this,$,Ce(this,B).state),_e(this,Z,this.options),void 0!==Ce(this,$).data&&_e(this,X,Ce(this,B)),tt(t,e)||(_e(this,U,t),Se(this,ne,de).call(this,{listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!Ce(this,te).size)return!0;const a=new Set(n??Ce(this,te));return this.options.throwOnError&&a.add("error"),Object.keys(Ce(this,U)).some(t=>{const n=t;return Ce(this,U)[n]!==e[n]&&a.has(n)})})()}))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,ne,se).call(this)}},H=new WeakMap,B=new WeakMap,W=new WeakMap,U=new WeakMap,$=new WeakMap,Z=new WeakMap,G=new WeakMap,q=new WeakMap,K=new WeakMap,Y=new WeakMap,X=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakSet,ae=function(e){Se(this,ne,ue).call(this);let t=Ce(this,B).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Ue)),t},re=function(){Se(this,ne,le).call(this);const e=Ge(this.options.staleTime,Ce(this,B));if(We||Ce(this,U).isStale||!$e(e))return;const t=Ze(Ce(this,U).dataUpdatedAt,e);_e(this,Q,setTimeout(()=>{Ce(this,U).isStale||this.updateResult()},t+1))},oe=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(Ce(this,B)):this.options.refetchInterval)??!1},ie=function(e){Se(this,ne,ce).call(this),_e(this,ee,e),!We&&!1!==qe(this.options.enabled,Ce(this,B))&&$e(Ce(this,ee))&&0!==Ce(this,ee)&&_e(this,J,setInterval(()=>{(this.options.refetchIntervalInBackground||mt.isFocused())&&Se(this,ne,ae).call(this)},Ce(this,ee)))},se=function(){Se(this,ne,re).call(this),Se(this,ne,ie).call(this,Se(this,ne,oe).call(this))},le=function(){Ce(this,Q)&&(clearTimeout(Ce(this,Q)),_e(this,Q,void 0))},ce=function(){Ce(this,J)&&(clearInterval(Ce(this,J)),_e(this,J,void 0))},ue=function(){const e=Ce(this,H).getQueryCache().build(Ce(this,H),this.options);if(e===Ce(this,B))return;const t=Ce(this,B);_e(this,B,e),_e(this,W,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},de=function(e){xt.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(Ce(this,U))}),Ce(this,H).getQueryCache().notify({query:Ce(this,B),type:"observerResultsUpdated"})})},me);function Ot(e,t){return function(e,t){return!1!==qe(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Ft(e,t,t.refetchOnMount)}function Ft(e,t,n){if(!1!==qe(t.enabled,e)&&"static"!==Ge(t.staleTime,e)){const a="function"==typeof n?n(e):n;return"always"===a||!1!==a&&Lt(e,t)}return!1}function zt(e,t,n,a){return(e!==t||!1===qe(a.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Lt(e,n)}function Lt(e,t){return!1!==qe(t.enabled,e)&&e.isStaleByTime(Ge(t.staleTime,e))}var jt,Vt,It=(we=class extends Be{constructor(e,t){super(),ke(this,ve),ke(this,he),ke(this,fe),ke(this,pe),ke(this,ge),_e(this,he,e),this.setOptions(t),this.bindMethods(),Se(this,ve,ye).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=Ce(this,he).defaultMutationOptions(e),tt(this.options,n)||Ce(this,he).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ce(this,pe),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&Qe(n.mutationKey)!==Qe(this.options.mutationKey)?this.reset():"pending"===(null==(t=Ce(this,pe))?void 0:t.state.status)&&Ce(this,pe).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=Ce(this,pe))||e.removeObserver(this)}onMutationUpdate(e){Se(this,ve,ye).call(this),Se(this,ve,be).call(this,e)}getCurrentResult(){return Ce(this,fe)}reset(){var e;null==(e=Ce(this,pe))||e.removeObserver(this),_e(this,pe,void 0),Se(this,ve,ye).call(this),Se(this,ve,be).call(this)}mutate(e,t){var n;return _e(this,ge,t),null==(n=Ce(this,pe))||n.removeObserver(this),_e(this,pe,Ce(this,he).getMutationCache().build(Ce(this,he),this.options)),Ce(this,pe).addObserver(this),Ce(this,pe).execute(e)}},he=new WeakMap,fe=new WeakMap,pe=new WeakMap,ge=new WeakMap,ve=new WeakSet,ye=function(){var e;const t=(null==(e=Ce(this,pe))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};_e(this,fe,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},be=function(e){xt.batch(()=>{var t,n,a,r,o,i,s,l;if(Ce(this,ge)&&this.hasListeners()){const c=Ce(this,fe).variables,u=Ce(this,fe).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=Ce(this,ge)).onSuccess)||n.call(t,e.data,c,u),null==(r=(a=Ce(this,ge)).onSettled)||r.call(a,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(i=(o=Ce(this,ge)).onError)||i.call(o,e.error,c,u),null==(l=(s=Ce(this,ge)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach(e=>{e(Ce(this,fe))})})},we),Ht={exports:{}},Bt={},Wt=(Vt||(Vt=1,Ht.exports=function(){if(jt)return Bt;jt=1;var e=Fe(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var s,l={},c=null,u=null;for(s in void 0!==i&&(c=""+i),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)a.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:r.current}}return Bt.Fragment=n,Bt.jsx=i,Bt.jsxs=i,Bt}()),Ht.exports),Ut=ze.createContext(void 0),$t=e=>{const t=ze.useContext(Ut);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zt=({client:e,children:t})=>(ze.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Wt.jsx(Ut.Provider,{value:e,children:t})),Gt=ze.createContext(!1);Gt.Provider;var qt=ze.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Kt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yt(e,t){return function(e,t){var n,a,r,o,i;const s=ze.useContext(Gt),l=ze.useContext(qt),c=$t(),u=c.defaultQueryOptions(e);null==(a=null==(n=c.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||a.call(n,u),u._optimisticResults=s?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=e=>"static"===e?e:Math.max(e??1e3,1e3),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>t(n(...e)):t(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}})(u),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(u,l),(e=>{ze.useEffect(()=>{e.clearReset()},[e])})(l);const d=!c.getQueryCache().get(u.queryHash),[m]=ze.useState(()=>new t(c,u)),h=m.getOptimisticResult(u),f=!s&&!1!==e.subscribed;if(ze.useSyncExternalStore(ze.useCallback(e=>{const t=f?m.subscribe(xt.batchCalls(e)):Ue;return m.updateResult(),t},[m,f]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),ze.useEffect(()=>{m.setOptions(u)},[u,m]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(u,h))throw Kt(u,m,l);if((({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(r&&void 0===e.data||dt(n,[e.error,a])))({result:h,errorResetBoundary:l,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if(null==(o=null==(r=c.getDefaultOptions().queries)?void 0:r._experimental_afterQuery)||o.call(r,u,h),u.experimental_prefetchInRender&&!We&&((e,t)=>e.isLoading&&e.isFetching&&!t)(h,s)){const e=d?Kt(u,m,l):null==(i=c.getQueryCache().get(u.queryHash))?void 0:i.promise;null==e||e.catch(Ue).finally(()=>{m.updateResult()})}return u.notifyOnChangeProps?h:m.trackResult(h)}(e,Tt)}function Xt(e,t){const n=$t(),[a]=ze.useState(()=>new It(n,e));ze.useEffect(()=>{a.setOptions(e)},[a,e]);const r=ze.useSyncExternalStore(ze.useCallback(e=>a.subscribe(xt.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),o=ze.useCallback((e,t)=>{a.mutate(e,t).catch(Ue)},[a]);if(r.error&&dt(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}var Qt,Jt=e=>{throw TypeError(e)},en=(e,t,n)=>(((e,t)=>{t.has(e)||Jt("Cannot read from private field")})(e,t),n?n.call(e):t.get(e)),tn="popstate";function nn(e,t){if(!1===e||null==e)throw new Error(t)}function an(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function rn(e,t){return{usr:e.state,key:e.key,idx:t}}function on(e,t,n=null,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?ln(t):t,state:n,key:t&&t.key||a||Math.random().toString(36).substring(2,10)}}function sn({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function ln(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function cn(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),nn(n,"No window.location.(origin|href) available to create URL");let a="string"==typeof e?e:sn(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}var un=class{constructor(e){var t,n,a;if(t=this,n=Qt,a=new Map,n.has(t)?Jt("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,a),e)for(let[r,o]of e)this.set(r,o)}get(e){if(en(this,Qt).has(e))return en(this,Qt).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){en(this,Qt).set(e,t)}};Qt=new WeakMap;var dn=new Set(["lazy","caseSensitive","path","id","index","children"]),mn=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function hn(e){return mn.has(e)}function fn(e,t,n=[],a={},r=!1){return e.map((e,o)=>{let i=[...n,String(o)],s="string"==typeof e.id?e.id:i.join("-");if(nn(!0!==e.index||!e.children,"Cannot specify children on an index route"),nn(r||!a[s],`Found a route id collision on id "${s}".  Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,...t(e),id:s};return a[s]=n,n}{let n={...e,...t(e),id:s,children:void 0};return a[s]=n,e.children&&(n.children=fn(e.children,t,i,a,r)),n}})}function pn(e,t,n="/"){return gn(e,t,n,!1)}function gn(e,t,n,a){let r=An(("string"==typeof t?ln(t):t).pathname||"/",n);if(null==r)return null;let o=vn(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let s=0;null==i&&s<o.length;++s){let e=Pn(r);i=Mn(o[s],e,a)}return i}function vn(e,t=[],n=[],a=""){let r=(e,r,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(nn(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let s=zn([a,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(nn(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),vn(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Sn(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&(null==(n=e.path)?void 0:n.includes("?")))for(let a of yn(e.path))r(e,t,a);else r(e,t)}),t}function yn(e){let t=e.split("/");if(0===t.length)return[];let[n,...a]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===a.length)return r?[o,""]:[o];let i=yn(a.join("/")),s=[];return s.push(...i.map(e=>""===e?o:[o,e].join("/"))),r&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var bn=/^:[\w-]+$/,wn=3,xn=2,En=1,Rn=10,Cn=-2,kn=e=>"*"===e;function Sn(e,t){let n=e.split("/"),a=n.length;return n.some(kn)&&(a+=Cn),t&&(a+=xn),n.filter(e=>!kn(e)).reduce((e,t)=>e+(bn.test(t)?wn:""===t?En:Rn),a)}function Mn(e,t,n=!1){let{routesMeta:a}=e,r={},o="/",i=[];for(let s=0;s<a.length;++s){let e=a[s],l=s===a.length-1,c="/"===o?t:t.slice(o.length)||"/",u=Nn({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!a[a.length-1].route.index&&(u=Nn({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(r,u.params),i.push({params:r,pathname:zn([o,u.pathname]),pathnameBase:Ln(zn([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=zn([o,u.pathnameBase]))}return i}function Nn(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t=!1,n=!0){an("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],i=o.replace(/(.)\/+$/,"$1"),s=r.slice(1);return{params:a.reduce((e,{paramName:t,isOptional:n},a)=>{if("*"===t){let e=s[a]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const r=s[a];return e[t]=n&&!r?void 0:(r||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function Pn(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return an(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function An(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function Dn(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tn(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function On(e){let t=Tn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Fn(e,t,n,a=!1){let r;"string"==typeof e?r=ln(e):(r={...e},nn(!r.pathname||!r.pathname.includes("?"),Dn("?","pathname","search",r)),nn(!r.pathname||!r.pathname.includes("#"),Dn("#","pathname","hash",r)),nn(!r.search||!r.search.includes("#"),Dn("#","search","hash",r)));let o,i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)o=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:n,search:a="",hash:r=""}="string"==typeof e?ln(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:jn(a),hash:Vn(r)}}(r,o),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var zn=e=>e.join("/").replace(/\/\/+/g,"/"),Ln=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jn=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Vn=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",In=(e,t=302)=>{let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",e),new Response(null,{...n,headers:a})},Hn=class{constructor(e,t,n,a=!1){this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Bn(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var Wn=["POST","PUT","PATCH","DELETE"],Un=new Set(Wn),$n=["GET",...Wn],Zn=new Set($n),Gn=new Set([301,302,303,307,308]),qn=new Set([307,308]),Kn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yn={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xn={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Qn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jn=e=>Qn.test(e),ea=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ta="remix-router-transitions",na=Symbol("ResetLoaderData");function aa(e,t,n,a,r,o){let i,s;if(r){i=[];for(let e of t)if(i.push(e),e.route.id===r){s=e;break}}else i=t,s=t[t.length-1];let l=Fn(a||".",On(i),An(e.pathname,n)||e.pathname,"path"===o);if(null==a&&(l.search=e.search,l.hash=e.hash),(null==a||""===a||"."===a)&&s){let e=Ia(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();l.search=n?`?${n}`:""}}return"/"!==n&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:zn([e,t])}({basename:n,pathname:l.pathname})),sn(l)}function ra(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&(a=n.formMethod,!Zn.has(a.toUpperCase())))return{path:t,error:Aa(405,{method:n.formMethod})};var a;let r,o,i=()=>({path:t,error:Aa(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),l=Ta(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Va(s))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,""):String(n.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Va(s))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(d){return i()}}}if(nn("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ca(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ca(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=ka(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=ka(r)}catch(d){return i()}let c={formMethod:s,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Va(c.formMethod))return{path:t,submission:c};let u=ln(t);return e&&u.search&&Ia(u.search)&&r.append("index",""),u.search=`?${r}`,{path:sn(u),submission:c}}function oa(e,t,n,a,r,o,i,s,l,c,u,d,m,h,f,p,g,v,y,b){var w;let x,E=b?Fa(b[1])?b[1].error:b[1].data:void 0,R=r.createURL(o.location),C=r.createURL(l);if(u&&o.errors){let e=Object.keys(o.errors)[0];x=i.findIndex(t=>t.route.id===e)}else if(b&&Fa(b[1])){let e=b[0];x=i.findIndex(t=>t.route.id===e)-1}let k=b?b[1].statusCode:void 0,_=k&&k>=400,S={currentUrl:R,currentParams:(null==(w=o.matches[0])?void 0:w.params)||{},nextUrl:C,nextParams:i[0].params,...s,actionResult:E,actionStatus:k},M=i.map((r,i)=>{let{route:s}=r,l=null;if(null!=x&&i>x?l=!1:s.lazy?l=!0:null==s.loader?l=!1:u?l=ia(s,o.loaderData,o.errors):function(e,t,n){let a=!t||n.route.id!==t.route.id,r=!e.hasOwnProperty(n.route.id);return a||r}(o.loaderData,o.matches[i],r)&&(l=!0),null!==l)return ya(n,a,e,r,c,t,l);let m=!_&&(d||R.pathname+R.search===C.pathname+C.search||R.search!==C.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(o.matches[i],r)),h={...S,defaultShouldRevalidate:m},f=sa(r,h);return ya(n,a,e,r,c,t,f,h)}),N=[];return f.forEach((e,s)=>{if(u||!i.some(t=>t.route.id===e.routeId)||h.has(s))return;let l=o.fetchers.get(s),f=l&&"idle"!==l.state&&void 0===l.data,b=pn(g,e.path,v);if(!b){if(y&&f)return;return void N.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(p.has(s))return;let w=Ha(b,e.path),x=new AbortController,E=Ra(r,e.path,x.signal),R=null;if(m.has(s))m.delete(s),R=ba(n,a,E,b,w,c,t);else if(f)d&&(R=ba(n,a,E,b,w,c,t));else{let e={...S,defaultShouldRevalidate:!_&&d};sa(w,e)&&(R=ba(n,a,E,b,w,c,t,e))}R&&N.push({key:s,routeId:e.routeId,path:e.path,matches:R,match:w,request:E,controller:x})}),{dsMatches:M,revalidatingFetchers:N}}function ia(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let a=null!=t&&e.id in t,r=null!=n&&void 0!==n[e.id];return!(!a&&r)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!a&&!r)}function sa(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function la(e,t,n,a,r,o){let i;if(e){let t=a[e];nn(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=n;let s=[],l=[];if(t.forEach(e=>{let t=i.find(t=>ca(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=fn(s,r,[e||"_","patch",String((null==i?void 0:i.length)||"0")],a);i.push(...t)}if(o&&l.length>0)for(let c=0;c<l.length;c++){let{existingRoute:e,newRoute:t}=l[c],n=e,[a]=fn([t],r,[],{},!0);Object.assign(n,{element:a.element?a.element:n.element,errorElement:a.errorElement?a.errorElement:n.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:n.hydrateFallbackElement})}}function ca(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>{var a;return null==(a=t.children)?void 0:a.some(t=>ca(e,t))}))}var ua=new WeakMap,da=({key:e,route:t,manifest:n,mapRouteProperties:a})=>{let r=n[t.id];if(nn(r,"No route found in manifest"),!r.lazy||"object"!=typeof r.lazy)return;let o=r.lazy[e];if(!o)return;let i=ua.get(r);i||(i={},ua.set(r,i));let s=i[e];if(s)return s;let l=(async()=>{let t=function(e){return dn.has(e)}(e),n=void 0!==r[e]&&"hasErrorBoundary"!==e;if(t)an(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(n)an(!1,`Route "${r.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await o();null!=t&&(Object.assign(r,{[e]:t}),Object.assign(r,a(r)))}"object"==typeof r.lazy&&(r.lazy[e]=void 0,Object.values(r.lazy).every(e=>void 0===e)&&(r.lazy=void 0))})();return i[e]=l,l},ma=new WeakMap;async function ha(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,a)=>{n[t[a].route.id]=e}),n}async function fa(e){return e.matches.some(e=>e.route.unstable_middleware)?pa(e,!1,()=>ha(e),(e,t)=>({[t]:{type:"error",result:e}})):ha(e)}async function pa(e,t,n,a){let{matches:r,request:o,params:i,context:s}=e,l={handlerResult:void 0};try{let e=r.flatMap(e=>e.route.unstable_middleware?e.route.unstable_middleware.map(t=>[e.route.id,t]):[]),a=await ga({request:o,params:i,context:s},e,t,l,n);return t?a:l.handlerResult}catch(c){if(!l.middlewareError)throw c;let e=await a(l.middlewareError.error,l.middlewareError.routeId);return l.handlerResult?Object.assign(l.handlerResult,e):e}}async function ga(e,t,n,a,r,o=0){let{request:i}=e;if(i.signal.aborted){if(i.signal.reason)throw i.signal.reason;throw new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`)}let s=t[o];if(!s)return a.handlerResult=await r(),a.handlerResult;let[l,c]=s,u=!1,d=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");u=!0,await ga(e,t,n,a,r,o+1)};try{let t=await c({request:e.request,params:e.params,context:e.context},d);return u?void 0===t?undefined:t:d()}catch(m){throw a.middlewareError?a.middlewareError.error!==m&&(a.middlewareError={routeId:l,error:m}):a.middlewareError={routeId:l,error:m},m}}function va(e,t,n,a,r){let o=da({key:"unstable_middleware",route:a.route,manifest:t,mapRouteProperties:e}),i=function(e,t,n,a,r){let o=n[e.id];if(nn(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=ma.get(o);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{nn("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let a=t[e];if(void 0===a)continue;let r=hn(e),i=void 0!==o[e]&&"hasErrorBoundary"!==e;r?an(!r,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):i?an(!i,`Route "${o.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=a}Object.assign(o,n),Object.assign(o,{...a(o),lazy:void 0})})();return ma.set(o,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let i,s=Object.keys(e.lazy),l=[];for(let u of s){if(r&&r.includes(u))continue;let o=da({key:u,route:e,manifest:n,mapRouteProperties:a});o&&(l.push(o),u===t&&(i=o))}let c=l.length>0?Promise.all(l).then(()=>{}):void 0;return null==c||c.catch(()=>{}),null==i||i.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:i}}(a.route,Va(n.method)?"action":"loader",t,e,r);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function ya(e,t,n,a,r,o,i,s=null){let l=!1,c=va(e,t,n,a,r);return{...a,_lazyPromises:c,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:e=>(l=!0,s?sa(a,"boolean"==typeof e?{...s,defaultShouldRevalidate:e}:s):i),resolve:e=>l||i||e&&!Va(n.method)&&(a.route.lazy||a.route.loader)?async function({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:a,handlerOverride:r,scopedContext:o}){let i,s,l=Va(e.method),c=l?"action":"loader",u=n=>{let a,i=new Promise((e,t)=>a=t);s=()=>a(),e.signal.addEventListener("abort",s);let l=a=>"function"!=typeof n?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${t.route.id}]`)):n({request:e,params:t.params,context:o},...void 0!==a?[a]:[]),u=(async()=>{try{return{type:"data",result:await(r?r(e=>l(e)):l())}}catch(e){return{type:"error",result:e}}})();return Promise.race([u,i])};try{let r=l?t.route.action:t.route.loader;if(n||a)if(r){let e,[t]=await Promise.all([u(r).catch(t=>{e=t}),n,a]);if(void 0!==e)throw e;i=t}else{await n;let r=l?t.route.action:t.route.loader;if(!r){if("action"===c){let n=new URL(e.url),a=n.pathname+n.search;throw Aa(405,{method:e.method,pathname:a,routeId:t.route.id})}return{type:"data",result:void 0}}[i]=await Promise.all([u(r),a])}else{if(!r){let t=new URL(e.url);throw Aa(404,{pathname:t.pathname+t.search})}i=await u(r)}}catch(d){return{type:"error",result:d}}finally{s&&e.signal.removeEventListener("abort",s)}return i}({request:n,match:a,lazyHandlerPromise:null==c?void 0:c.handler,lazyRoutePromise:null==c?void 0:c.route,handlerOverride:e,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}function ba(e,t,n,a,r,o,i,s=null){return a.map(a=>a.route.id!==r.route.id?{...a,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:va(e,t,n,a,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ya(e,t,n,a,o,i,!0,s))}async function wa(e){var t,n,a,r,o,i;let{result:s,type:l}=e;if(ja(s)){let e;try{let t=s.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==s.body?null:await s.json():await s.text()}catch(c){return{type:"error",error:c}}return"error"===l?{type:"error",error:new Hn(s.status,s.statusText,e),statusCode:s.status,headers:s.headers}:{type:"data",data:e,statusCode:s.status,headers:s.headers}}return"error"===l?La(s)?s.data instanceof Error?{type:"error",error:s.data,statusCode:null==(t=s.init)?void 0:t.status,headers:(null==(n=s.init)?void 0:n.headers)?new Headers(s.init.headers):void 0}:{type:"error",error:new Hn((null==(a=s.init)?void 0:a.status)||500,void 0,s.data),statusCode:Bn(s)?s.status:void 0,headers:(null==(r=s.init)?void 0:r.headers)?new Headers(s.init.headers):void 0}:{type:"error",error:s,statusCode:Bn(s)?s.status:void 0}:La(s)?{type:"data",data:s.data,statusCode:null==(o=s.init)?void 0:o.status,headers:(null==(i=s.init)?void 0:i.headers)?new Headers(s.init.headers):void 0}:{type:"data",data:s}}function xa(e,t,n,a,r){let o=e.headers.get("Location");if(nn(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Jn(o)){let i=a.slice(0,a.findIndex(e=>e.route.id===n)+1);o=aa(new URL(t.url),i,r,o),e.headers.set("Location",o)}return e}function Ea(e,t,n){if(Jn(e)){let a=e,r=a.startsWith("//")?new URL(t.protocol+a):new URL(a),o=null!=An(r.pathname,n);if(r.origin===t.origin&&o)return r.pathname+r.search+r.hash}return e}function Ra(e,t,n,a){let r=e.createURL(Ta(t)).toString(),o={signal:n};if(a&&Va(a.formMethod)){let{formMethod:e,formEncType:t}=a;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(a.json)):"text/plain"===t?o.body=a.text:"application/x-www-form-urlencoded"===t&&a.formData?o.body=Ca(a.formData):o.body=a.formData}return new Request(r,o)}function Ca(e){let t=new URLSearchParams;for(let[n,a]of e.entries())t.append(n,"string"==typeof a?a:a.name);return t}function ka(e){let t=new FormData;for(let[n,a]of e.entries())t.append(n,a);return t}function _a(e,t,n,a,r,o){let{loaderData:i,errors:s}=function(e,t,n,a=!1,r=!1){let o,i={},s=null,l=!1,c={},u=n&&Fa(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,m=t[d];if(nn(!za(m),"Cannot handle redirect results in processLoaderData"),Fa(m)){let t=m.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},r)s[d]=t;else{let n=Na(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}a||(i[d]=na),l||(l=!0,o=Bn(m.error)?m.error.status:500),m.headers&&(c[d]=m.headers)}else i[d]=m.data,m.statusCode&&200!==m.statusCode&&!l&&(o=m.statusCode),m.headers&&(c[d]=m.headers)}),void 0!==u&&n&&(s={[n[0]]:u},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}(t,n,a);return r.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:a,controller:r}=t,i=o[n];if(nn(i,"Did not find corresponding fetcher result"),!r||!r.signal.aborted)if(Fa(i)){let t=Na(e.matches,null==a?void 0:a.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:i.error}),e.fetchers.delete(n)}else if(za(i))nn(!1,"Unhandled fetcher revalidation redirect");else{let t=$a(i.data);e.fetchers.set(n,t)}}),{loaderData:i,errors:s}}function Sa(e,t,n,a){let r=Object.entries(t).filter(([,e])=>e!==na).reduce((e,[t,n])=>(e[t]=n,e),{});for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(r[n]=e[n]),a&&a.hasOwnProperty(n))break}return r}function Ma(e){return e?Fa(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Na(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Pa(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Aa(e,{pathname:t,routeId:n,method:a,type:r,message:o}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&t&&n?s=`You made a ${a} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===r&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):404===e?(i="Not Found",s=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",a&&t&&n?s=`You made a ${a.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:a&&(s=`Invalid request method "${a.toUpperCase()}"`)),new Hn(e||500,i,new Error(s),!0)}function Da(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[e,a]=t[n];if(za(a))return{key:e,result:a}}}function Ta(e){return sn({..."string"==typeof e?ln(e):e,hash:""})}function Oa(e){return ja(e.result)&&Gn.has(e.result.status)}function Fa(e){return"error"===e.type}function za(e){return"redirect"===(e&&e.type)}function La(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ja(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Va(e){return Un.has(e.toUpperCase())}function Ia(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Ha(e,t){let n="string"==typeof t?ln(t).search:t.search;if(e[e.length-1].route.index&&Ia(n||""))return e[e.length-1];let a=Tn(e);return a[a.length-1]}function Ba(e){let{formMethod:t,formAction:n,formEncType:a,text:r,formData:o,json:i}=e;if(t&&n&&a)return null!=r?{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:void 0,text:r}:null!=o?{formMethod:t,formAction:n,formEncType:a,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:i,text:void 0}:void 0}function Wa(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ua(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $a(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}var Za=ze.createContext(null);Za.displayName="DataRouter";var Ga=ze.createContext(null);Ga.displayName="DataRouterState",ze.createContext(!1);var qa=ze.createContext({isTransitioning:!1});qa.displayName="ViewTransition";var Ka=ze.createContext(new Map);Ka.displayName="Fetchers",ze.createContext(null).displayName="Await";var Ya=ze.createContext(null);Ya.displayName="Navigation";var Xa=ze.createContext(null);Xa.displayName="Location";var Qa=ze.createContext({outlet:null,matches:[],isDataRoute:!1});Qa.displayName="Route";var Ja=ze.createContext(null);function er(){return null!=ze.useContext(Xa)}function tr(){return nn(er(),"useLocation() may be used only in the context of a <Router> component."),ze.useContext(Xa).location}Ja.displayName="RouteError";var nr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ar(e){ze.useContext(Ya).static||ze.useLayoutEffect(e)}function rr(){let{isDataRoute:e}=ze.useContext(Qa);return e?function(){let{router:e}=function(){let e=ze.useContext(Za);return nn(e,dr("useNavigate")),e}(),t=mr("useNavigate"),n=ze.useRef(!1);ar(()=>{n.current=!0});let a=ze.useCallback(async(a,r={})=>{an(n.current,nr),n.current&&("number"==typeof a?e.navigate(a):await e.navigate(a,{fromRouteId:t,...r}))},[e,t]);return a}():function(){nn(er(),"useNavigate() may be used only in the context of a <Router> component.");let e=ze.useContext(Za),{basename:t,navigator:n}=ze.useContext(Ya),{matches:a}=ze.useContext(Qa),{pathname:r}=tr(),o=JSON.stringify(On(a)),i=ze.useRef(!1);ar(()=>{i.current=!0});let s=ze.useCallback((a,s={})=>{if(an(i.current,nr),!i.current)return;if("number"==typeof a)return void n.go(a);let l=Fn(a,JSON.parse(o),r,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:zn([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)},[t,n,o,r,e]);return s}()}var or=ze.createContext(null);function ir(e,{relative:t}={}){let{matches:n}=ze.useContext(Qa),{pathname:a}=tr(),r=JSON.stringify(On(n));return ze.useMemo(()=>Fn(e,JSON.parse(r),a,"path"===t),[e,r,a,t])}function sr(){let e=function(){var e;let t=ze.useContext(Ja),n=function(){let e=ze.useContext(Ga);return nn(e,dr("useRouteError")),e}(),a=mr("useRouteError");return void 0!==t?t:null==(e=n.errors)?void 0:e[a]}(),t=Bn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=ze.createElement(ze.Fragment,null,ze.createElement("p",null,"💿 Hey developer 👋"),ze.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",ze.createElement("code",{style:o},"ErrorBoundary")," or"," ",ze.createElement("code",{style:o},"errorElement")," prop on your route.")),ze.createElement(ze.Fragment,null,ze.createElement("h2",null,"Unexpected Application Error!"),ze.createElement("h3",{style:{fontStyle:"italic"}},t),n?ze.createElement("pre",{style:r},n):null,i)}var lr=ze.createElement(sr,null),cr=class extends ze.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?ze.createElement(Qa.Provider,{value:this.props.routeContext},ze.createElement(Ja.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ur({routeContext:e,match:t,children:n}){let a=ze.useContext(Za);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),ze.createElement(Qa.Provider,{value:e},n)}function dr(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function mr(e){let t=function(e){let t=ze.useContext(Qa);return nn(t,dr(e)),t}(e),n=t.matches[t.matches.length-1];return nn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var hr={};function fr(e,t,n){t||hr[e]||(hr[e]=!0,an(!1,n))}var pr={};function gr(e,t){e||pr[t]||(pr[t]=!0,console.warn(t))}var vr=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function yr({router:e,flushSync:t}){let[n,a]=ze.useState(e.state),[r,o]=ze.useState(),[i,s]=ze.useState({isTransitioning:!1}),[l,c]=ze.useState(),[u,d]=ze.useState(),[m,h]=ze.useState(),f=ze.useRef(new Map),p=ze.useCallback((n,{deletedFetchers:r,flushSync:i,viewTransitionOpts:m})=>{n.fetchers.forEach((e,t)=>{void 0!==e.data&&f.current.set(t,e.data)}),r.forEach(e=>f.current.delete(e)),gr(!1===i||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(gr(null==m||p,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),m&&p){if(t&&i){t(()=>{u&&(l&&l.resolve(),u.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:m.currentLocation,nextLocation:m.nextLocation})});let r=e.window.document.startViewTransition(()=>{t(()=>a(n))});return r.finished.finally(()=>{t(()=>{c(void 0),d(void 0),o(void 0),s({isTransitioning:!1})})}),void t(()=>d(r))}u?(l&&l.resolve(),u.skipTransition(),h({state:n,currentLocation:m.currentLocation,nextLocation:m.nextLocation})):(o(n),s({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}))}else t&&i?t(()=>a(n)):ze.startTransition(()=>a(n))},[e.window,t,u,l]);ze.useLayoutEffect(()=>e.subscribe(p),[e,p]),ze.useEffect(()=>{i.isTransitioning&&!i.flushSync&&c(new vr)},[i]),ze.useEffect(()=>{if(l&&r&&e.window){let t=r,n=l.promise,i=e.window.document.startViewTransition(async()=>{ze.startTransition(()=>a(t)),await n});i.finished.finally(()=>{c(void 0),d(void 0),o(void 0),s({isTransitioning:!1})}),d(i)}},[r,l,e.window]),ze.useEffect(()=>{l&&r&&n.location.key===r.location.key&&l.resolve()},[l,u,n.location,r]),ze.useEffect(()=>{!i.isTransitioning&&m&&(o(m.state),s({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),h(void 0))},[i.isTransitioning,m]);let g=ze.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,a)=>e.navigate(t,{state:n,preventScrollReset:null==a?void 0:a.preventScrollReset}),replace:(t,n,a)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:null==a?void 0:a.preventScrollReset})}),[e]),v=e.basename||"/",y=ze.useMemo(()=>({router:e,navigator:g,static:!1,basename:v}),[e,g,v]);return ze.createElement(ze.Fragment,null,ze.createElement(Za.Provider,{value:y},ze.createElement(Ga.Provider,{value:n},ze.createElement(Ka.Provider,{value:f.current},ze.createElement(qa.Provider,{value:i},ze.createElement(xr,{basename:v,location:n.location,navigationType:n.historyAction,navigator:g},ze.createElement(br,{routes:e.routes,future:e.future,state:n})))))),null)}var br=ze.memo(function({routes:e,future:t,state:n}){return function(e,t,n){nn(er(),"useRoutes() may be used only in the context of a <Router> component.");let a,{navigator:r}=ze.useContext(Ya),{matches:o}=ze.useContext(Qa),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let e=u&&u.path||"";fr(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}a=tr();let d=a.pathname||"/",m=d;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=pn(e,{pathname:m});return an(u||null!=h,`No routes matched location "${a.pathname}${a.search}${a.hash}" `),an(null==h||void 0!==h[h.length-1].route.element||void 0!==h[h.length-1].route.Component||void 0!==h[h.length-1].route.lazy,`Matched leaf route at location "${a.pathname}${a.search}${a.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),function(e,t=[],n=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,r=null==n?void 0:n.errors;if(null!=r){let e=a.findIndex(e=>e.route.id&&void 0!==(null==r?void 0:r[e.route.id]));nn(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(r).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let o=!1,i=-1;if(n)for(let s=0;s<a.length;s++){let e=a[s];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(i=s),e.route.id){let{loaderData:t,errors:r}=n,s=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||s){o=!0,a=i>=0?a.slice(0,i+1):[a[0]];break}}}return a.reduceRight((e,s,l)=>{let c,u=!1,d=null,m=null;n&&(c=r&&s.route.id?r[s.route.id]:void 0,d=s.route.errorElement||lr,o&&(i<0&&0===l?(fr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,m=null):i===l&&(u=!0,m=s.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,l+1)),f=()=>{let t;return t=c?d:u?m:s.route.Component?ze.createElement(s.route.Component,null):s.route.element?s.route.element:e,ze.createElement(ur,{match:s,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(s.route.ErrorBoundary||s.route.errorElement||0===l)?ze.createElement(cr,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()},null)}(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:zn([c,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:zn([c,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,n)}(e,0,n)});function wr(e){return function(e){let t=ze.useContext(Qa).outlet;return t?ze.createElement(or.Provider,{value:e},t):t}(e.context)}function xr({basename:e="/",children:t=null,location:n,navigationType:a="POP",navigator:r,static:o=!1}){nn(!er(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=ze.useMemo(()=>({basename:i,navigator:r,static:o,future:{}}),[i,r,o]);"string"==typeof n&&(n=ln(n));let{pathname:l="/",search:c="",hash:u="",state:d=null,key:m="default"}=n,h=ze.useMemo(()=>{let e=An(l,i);return null==e?null:{location:{pathname:e,search:c,hash:u,state:d,key:m},navigationType:a}},[i,l,c,u,d,m,a]);return an(null!=h,`<Router basename="${i}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:ze.createElement(Ya.Provider,{value:s},ze.createElement(Xa.Provider,{children:t,value:h}))}var Er="get",Rr="application/x-www-form-urlencoded";function Cr(e){return null!=e&&"string"==typeof e.tagName}var kr=null,_r=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sr(e){return null==e||_r.has(e)?e:(an(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Rr}"`),null)}function Mr(e,t){if(!1===e||null==e)throw new Error(t)}function Nr(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Pr(e,t,n,a,r,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var a;return n[t].pathname!==e.pathname||(null==(a=n[t].route.path)?void 0:a.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===o?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{var l;let c=a.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(i(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let a=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:(null==(l=n[0])?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof a)return a}return!0}):[]}function Ar(){let e=ze.useContext(Za);return Mr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Dr=ze.createContext(void 0);function Tr(){let e=ze.useContext(Dr);return Mr(e,"You must render this element inside a <HydratedRouter> element"),e}function Or(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Fr({page:e,...t}){let{router:n}=Ar(),a=ze.useMemo(()=>pn(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?ze.createElement(zr,{page:e,matches:a,...t}):null}function zr({page:e,matches:t,...n}){let a=tr(),{manifest:r,routeModules:o}=Tr(),{basename:i}=Ar(),{loaderData:s,matches:l}=function(){let e=ze.useContext(Ga);return Mr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=ze.useMemo(()=>Pr(e,t,l,r,a,"data"),[e,t,l,r,a]),u=ze.useMemo(()=>Pr(e,t,l,r,a,"assets"),[e,t,l,r,a]),d=ze.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{var t;let a=r.routes[e.route.id];a&&a.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&(null==(t=o[e.route.id])?void 0:t.shouldRevalidate)||a.hasClientLoader?l=!0:n.add(e.route.id))}),0===n.size)return[];let u=function(e,t,n){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===a.pathname?a.pathname=`_root.${n}`:t&&"/"===An(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}(e,i,"data");return l&&n.size>0&&u.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[i,s,a,r,c,t,e,o]),m=ze.useMemo(()=>function(e,t,{includeHydrateFallback:n}={}){return a=e.map(e=>{let a=t.routes[e.route.id];if(!a)return[];let r=[a.module];return a.clientActionModule&&(r=r.concat(a.clientActionModule)),a.clientLoaderModule&&(r=r.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(r=r.concat(a.hydrateFallbackModule)),a.imports&&(r=r.concat(a.imports)),r}).flat(1),[...new Set(a)];var a}(u,r),[u,r]),h=function(e){let{manifest:t,routeModules:n}=Tr(),[a,r]=ze.useState([]);return ze.useEffect(()=>{let a=!1;return async function(e,t,n){return function(e){let t=new Set;return new Set(void 0),e.reduce((e,n)=>{let a=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}(n));return t.has(a)||(t.add(a),e.push({key:a,link:n})),e},[])}((await Promise.all(e.map(async e=>{let a=t.routes[e.route.id];if(a){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(a,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Nr).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{a||r(e)}),()=>{a=!0}},[e,t,n]),a}(u);return ze.createElement(ze.Fragment,null,d.map(e=>ze.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>ze.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>ze.createElement("link",{key:e,...t})))}function Lr(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}Dr.displayName="FrameworkContext";var jr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{jr&&(window.__reactRouterVersion="7.7.1")}catch(nV){}function Vr(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[a]=new Hn(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let e=window[r.__subType];if("function"==typeof e)try{let t=new e(r.message);t.stack="",n[a]=t}catch(nV){}}if(null==n[a]){let e=new Error(r.message);e.stack="",n[a]=e}}else n[a]=r;return n}var Ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=ze.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:a,reloadDocument:r,replace:o,state:i,target:s,to:l,preventScrollReset:c,viewTransition:u,...d},m){let h,{basename:f}=ze.useContext(Ya),p="string"==typeof l&&Ir.test(l),g=!1;if("string"==typeof l&&p&&(h=l,jr))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=An(t.pathname,f);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:g=!0}catch(nV){an(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=function(e,{relative:t}={}){nn(er(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=ze.useContext(Ya),{hash:r,pathname:o,search:i}=ir(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:zn([n,o])),a.createHref({pathname:s,search:i,hash:r})}(l,{relative:a}),[y,b,w]=function(e,t){let n=ze.useContext(Dr),[a,r]=ze.useState(!1),[o,i]=ze.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,m=ze.useRef(null);ze.useEffect(()=>{if("render"===e&&i(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{i(e.isIntersecting)})},{threshold:.5});return m.current&&e.observe(m.current),()=>{e.disconnect()}}},[e]),ze.useEffect(()=>{if(a){let e=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(e)}}},[a]);let h=()=>{r(!0)},f=()=>{r(!1),i(!1)};return n?"intent"!==e?[o,m,{}]:[o,m,{onFocus:Or(s,h),onBlur:Or(l,f),onMouseEnter:Or(c,h),onMouseLeave:Or(u,f),onTouchStart:Or(d,h)}]:[!1,m,{}]}(n,d),x=function(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:o,viewTransition:i}={}){let s=rr(),l=tr(),c=ir(e,{relative:o});return ze.useCallback(u=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(u,t)){u.preventDefault();let t=void 0!==n?n:sn(l)===sn(c);s(e,{replace:t,state:a,preventScrollReset:r,relative:o,viewTransition:i})}},[l,s,c,n,a,t,e,r,o,i])}(l,{replace:o,state:i,target:s,preventScrollReset:c,relative:a,viewTransition:u}),E=ze.createElement("a",{...d,...w,href:h||v,onClick:g||r?e:function(t){e&&e(t),t.defaultPrevented||x(t)},ref:Lr(m,b),target:s,"data-discover":p||"render"!==t?void 0:"true"});return y&&!p?ze.createElement(ze.Fragment,null,E,ze.createElement(Fr,{page:v})):E});Hr.displayName="Link";var Br=ze.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:a=!1,style:r,to:o,viewTransition:i,children:s,...l},c){let u=ir(o,{relative:l.relative}),d=tr(),m=ze.useContext(Ga),{navigator:h,basename:f}=ze.useContext(Ya),p=null!=m&&function(e,{relative:t}={}){let n=ze.useContext(qa);nn(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ur("useViewTransitionState"),r=ir(e,{relative:t});if(!n.isTransitioning)return!1;let o=An(n.currentLocation.pathname,a)||n.currentLocation.pathname,i=An(n.nextLocation.pathname,a)||n.nextLocation.pathname;return null!=Nn(r.pathname,i)||null!=Nn(r.pathname,o)}(u)&&!0===i,g=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&f&&(y=An(y,f)||y);const b="/"!==g&&g.endsWith("/")?g.length-1:g.length;let w,x=v===g||!a&&v.startsWith(g)&&"/"===v.charAt(b),E=null!=y&&(y===g||!a&&y.startsWith(g)&&"/"===y.charAt(g.length)),R={isActive:x,isPending:E,isTransitioning:p},C=x?e:void 0;w="function"==typeof n?n(R):[n,x?"active":null,E?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof r?r(R):r;return ze.createElement(Hr,{...l,"aria-current":C,className:w,ref:c,style:k,to:o,viewTransition:i},"function"==typeof s?s(R):s)});Br.displayName="NavLink";var Wr=ze.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:o,method:i=Er,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,...m},h)=>{let f=function(){let{router:e}=Ur("useSubmit"),{basename:t}=ze.useContext(Ya),n=mr("useRouteId");return ze.useCallback(async(a,r={})=>{let{action:o,method:i,encType:s,formData:l,body:c}=function(e,t){let n,a,r,o,i;if(Cr(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");a=i?An(i,t):null,n=e.getAttribute("method")||Er,r=Sr(e.getAttribute("enctype"))||Rr,o=new FormData(e)}else if(function(e){return Cr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Cr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(a=s?An(s,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Er,r=Sr(e.getAttribute("formenctype"))||Sr(i.getAttribute("enctype"))||Rr,o=new FormData(i,e),!function(){if(null===kr)try{new FormData(document.createElement("form"),0),kr=!1}catch(nV){kr=!0}return kr}()){let{name:t,type:n,value:a}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,a)}}else{if(Cr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Er,a=null,r=Rr,i=e}var s;return o&&"text/plain"===r&&(i=o,o=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:o,body:i}}(a,t);if(!1===r.navigate){let t=r.fetcherKey||qr();await e.fetch(t,n,r.action||o,{preventScrollReset:r.preventScrollReset,formData:l,body:c,formMethod:r.method||i,formEncType:r.encType||s,flushSync:r.flushSync})}else await e.navigate(r.action||o,{preventScrollReset:r.preventScrollReset,formData:l,body:c,formMethod:r.method||i,formEncType:r.encType||s,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}(),p=function(e,{relative:t}={}){let{basename:n}=ze.useContext(Ya),a=ze.useContext(Qa);nn(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),o={...ir(e||".",{relative:t})},i=tr();if(null==e){o.search=i.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}return e&&"."!==e||!r.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(o.pathname="/"===o.pathname?n:zn([n,o.pathname])),sn(o)}(s,{relative:c}),g="get"===i.toLowerCase()?"get":"post",v="string"==typeof s&&Ir.test(s);return ze.createElement("form",{ref:h,method:g,action:p,onSubmit:a?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let a=e.nativeEvent.submitter,s=(null==a?void 0:a.getAttribute("formmethod"))||i;f(a||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:r,state:o,relative:c,preventScrollReset:u,viewTransition:d})},...m,"data-discover":v||"render"!==e?void 0:"true"})});function Ur(e){let t=ze.useContext(Za);return nn(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}Wr.displayName="Form";var $r,Zr,Gr=0,qr=()=>`__${String(++Gr)}__`,Kr=Zr?$r:(Zr=1,$r=ReactDOM);const Yr=Te(Kr);var Xr=e=>"checkbox"===e.type,Qr=e=>e instanceof Date,Jr=e=>null==e;const eo=e=>"object"==typeof e;var to=e=>!Jr(e)&&!Array.isArray(e)&&eo(e)&&!Qr(e),no=e=>to(e)&&e.target?Xr(e.target)?e.target.checked:e.target.value:e,ao=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),ro="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function oo(e){let t;const n=Array.isArray(e),a="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else{if(ro&&(e instanceof Blob||a)||!n&&!to(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return to(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=oo(e[n]));else t=e}return t}var io=e=>/^\w*$/.test(e),so=e=>void 0===e,lo=e=>Array.isArray(e)?e.filter(Boolean):[],co=e=>lo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),uo=(e,t,n)=>{if(!t||!to(e))return n;const a=(io(t)?[t]:co(t)).reduce((e,t)=>Jr(e)?e:e[t],e);return so(a)||a===e?so(e[t])?n:e[t]:a},mo=e=>"boolean"==typeof e,ho=(e,t,n)=>{let a=-1;const r=io(t)?[t]:co(t),o=r.length,i=o-1;for(;++a<o;){const t=r[a];let o=n;if(a!==i){const n=e[t];o=to(n)||Array.isArray(n)?n:isNaN(+r[a+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};const fo="blur",po="onChange",go="onSubmit",vo="all",yo="pattern",bo="required",wo=Le.createContext(null);wo.displayName="HookFormContext";const xo=()=>Le.useContext(wo);var Eo=(e,t,n,a=!0)=>{const r={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(r,o,{get:()=>{const r=o;return t._proxyFormState[r]!==vo&&(t._proxyFormState[r]=!a||vo),n&&(n[r]=!0),e[r]}});return r};const Ro="undefined"!=typeof window?Le.useLayoutEffect:Le.useEffect;function Co(e){const t=xo(),{control:n=t.control,disabled:a,name:r,exact:o}=e||{},[i,s]=Le.useState(n._formState),l=Le.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ro(()=>n._subscribe({name:r,formState:l.current,exact:o,callback:e=>{!a&&s({...n._formState,...e})}}),[r,a,o]),Le.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),Le.useMemo(()=>Eo(i,n,l.current,!1),[i,n])}var ko=e=>"string"==typeof e,_o=(e,t,n,a,r)=>ko(e)?(a&&t.watch.add(e),uo(n,e,r)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),uo(n,e))):(a&&(t.watchAll=!0),n),So=e=>Jr(e)||!eo(e);function Mo(e,t,n=new WeakSet){if(So(e)||So(t))return e===t;if(Qr(e)&&Qr(t))return e.getTime()===t.getTime();const a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of a){const a=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(Qr(a)&&Qr(e)||to(a)&&to(e)||Array.isArray(a)&&Array.isArray(e)?!Mo(a,e,n):a!==e)return!1}}return!0}const No=e=>e.render(function(e){const t=xo(),{name:n,disabled:a,control:r=t.control,shouldUnregister:o,defaultValue:i}=e,s=ao(r._names.array,n),l=Le.useMemo(()=>uo(r._formValues,n,uo(r._defaultValues,n,i)),[r,n,i]),c=function(e){const t=xo(),{control:n=t.control,name:a,defaultValue:r,disabled:o,exact:i,compute:s}=e||{},l=Le.useRef(r),c=Le.useRef(s),u=Le.useRef(void 0);c.current=s;const d=Le.useMemo(()=>n._getWatch(a,l.current),[n,a]),[m,h]=Le.useState(c.current?c.current(d):d);return Ro(()=>n._subscribe({name:a,formState:{values:!0},exact:i,callback:e=>{if(!o){const t=_o(a,n._names,e.values||n._formValues,!1,l.current);if(c.current){const e=c.current(t);Mo(e,u.current)||(h(e),u.current=e)}else h(t)}}}),[n,o,a,i]),Le.useEffect(()=>n._removeUnmounted()),m}({control:r,name:n,defaultValue:l,exact:!0}),u=Co({control:r,name:n,exact:!0}),d=Le.useRef(e),m=Le.useRef(r.register(n,{...e.rules,value:c,...mo(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const h=Le.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!uo(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!uo(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!uo(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!uo(u.validatingFields,n)},error:{enumerable:!0,get:()=>uo(u.errors,n)}}),[u,n]),f=Le.useCallback(e=>m.current.onChange({target:{value:no(e),name:n},type:"change"}),[n]),p=Le.useCallback(()=>m.current.onBlur({target:{value:uo(r._formValues,n),name:n},type:fo}),[n,r._formValues]),g=Le.useCallback(e=>{const t=uo(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus&&e.focus(),select:()=>e.select&&e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[r._fields,n]),v=Le.useMemo(()=>({name:n,value:c,...mo(a)||u.disabled?{disabled:u.disabled||a}:{},onChange:f,onBlur:p,ref:g}),[n,a,u.disabled,f,p,g,c]);return Le.useEffect(()=>{const e=r._options.shouldUnregister||o;r.register(n,{...d.current.rules,...mo(d.current.disabled)?{disabled:d.current.disabled}:{}});const t=(e,t)=>{const n=uo(r._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=oo(uo(r._options.defaultValues,n));ho(r._defaultValues,n,e),so(uo(r._formValues,n))&&ho(r._formValues,n,e)}return!s&&r.register(n),()=>{(s?e&&!r._state.action:e)?r.unregister(n):t(n,!1)}},[n,r,s,o]),Le.useEffect(()=>{r._setDisabledField({disabled:a,name:n})},[a,n,r]),Le.useMemo(()=>({field:v,formState:u,fieldState:h}),[v,u,h])}(e));var Po=(e,t,n,a,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[a]:r||!0}}:{},Ao=e=>Array.isArray(e)?e:[e],Do=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},To=e=>to(e)&&!Object.keys(e).length,Oo=e=>"file"===e.type,Fo=e=>"function"==typeof e,zo=e=>{if(!ro)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Lo=e=>"select-multiple"===e.type,jo=e=>"radio"===e.type,Vo=e=>zo(e)&&e.isConnected;function Io(e,t){const n=Array.isArray(t)?t:io(t)?[t]:co(t),a=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let a=0;for(;a<n;)e=so(e)?a++:e[t[a++]];return e}(e,n),r=n.length-1,o=n[r];return a&&delete a[o],0!==r&&(to(a)&&To(a)||Array.isArray(a)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!so(e[t]))return!1;return!0}(a))&&Io(e,n.slice(0,-1)),e}var Ho=e=>{for(const t in e)if(Fo(e[t]))return!0;return!1};function Bo(e,t={}){const n=Array.isArray(e);if(to(e)||n)for(const a in e)Array.isArray(e[a])||to(e[a])&&!Ho(e[a])?(t[a]=Array.isArray(e[a])?[]:{},Bo(e[a],t[a])):Jr(e[a])||(t[a]=!0);return t}function Wo(e,t,n){const a=Array.isArray(e);if(to(e)||a)for(const r in e)Array.isArray(e[r])||to(e[r])&&!Ho(e[r])?so(t)||So(n[r])?n[r]=Array.isArray(e[r])?Bo(e[r],[]):{...Bo(e[r])}:Wo(e[r],Jr(t)?{}:t[r],n[r]):n[r]=!Mo(e[r],t[r]);return n}var Uo=(e,t)=>Wo(e,t,Bo(t));const $o={value:!1,isValid:!1},Zo={value:!0,isValid:!0};var Go=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!so(e[0].attributes.value)?so(e[0].value)||""===e[0].value?Zo:{value:e[0].value,isValid:!0}:Zo:$o}return $o},qo=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:a})=>so(e)?e:t?""===e?NaN:e?+e:e:n&&ko(e)?new Date(e):a?a(e):e;const Ko={isValid:!1,value:null};var Yo=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Ko):Ko;function Xo(e){const t=e.ref;return Oo(t)?t.files:jo(t)?Yo(e.refs).value:Lo(t)?[...t.selectedOptions].map(({value:e})=>e):Xr(t)?Go(e.refs).value:qo(so(t.value)?e.ref.value:t.value,e)}var Qo=e=>e instanceof RegExp,Jo=e=>so(e)?e:Qo(e)?e.source:to(e)?Qo(e.value)?e.value.source:e.value:e,ei=e=>({isOnSubmit:!e||e===go,isOnBlur:"onBlur"===e,isOnChange:e===po,isOnAll:e===vo,isOnTouch:"onTouched"===e});const ti="AsyncFunction";var ni=e=>!!e&&!!e.validate&&!!(Fo(e.validate)&&e.validate.constructor.name===ti||to(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===ti)),ai=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const ri=(e,t,n,a)=>{for(const r of n||Object.keys(e)){const n=uo(e,r);if(n){const{_f:e,...o}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],r)&&!a)return!0;if(e.ref&&t(e.ref,e.name)&&!a)return!0;if(ri(o,t))break}else if(to(o)&&ri(o,t))break}}};function oi(e,t,n){const a=uo(e,n);if(a||io(n))return{error:a,name:n};const r=n.split(".");for(;r.length;){const a=r.join("."),o=uo(t,a),i=uo(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(i&&i.type)return{name:a,error:i};if(i&&i.root&&i.root.type)return{name:`${a}.root`,error:i.root};r.pop()}return{name:n}}var ii=(e,t,n)=>{const a=Ao(uo(e,n));return ho(a,"root",t[n]),ho(e,n,a),e},si=e=>ko(e);function li(e,t,n="validate"){if(si(e)||Array.isArray(e)&&e.every(si)||mo(e)&&!e)return{type:n,message:si(e)?e:"",ref:t}}var ci=e=>to(e)&&!Qo(e)?e:{value:e,message:""},ui=async(e,t,n,a,r,o)=>{const{ref:i,refs:s,required:l,maxLength:c,minLength:u,min:d,max:m,pattern:h,validate:f,name:p,valueAsNumber:g,mount:v}=e._f,y=uo(n,p);if(!v||t.has(p))return{};const b=s?s[0]:i,w=e=>{r&&b.reportValidity&&(b.setCustomValidity(mo(e)?"":e||""),b.reportValidity())},x={},E=jo(i),R=Xr(i),C=E||R,k=(g||Oo(i))&&so(i.value)&&so(y)||zo(i)&&""===i.value||""===y||Array.isArray(y)&&!y.length,_=Po.bind(null,p,a,x),S=(e,t,n,a="maxLength",r="minLength")=>{const o=e?t:n;x[p]={type:e?a:r,message:o,ref:i,..._(e?a:r,o)}};if(o?!Array.isArray(y)||!y.length:l&&(!C&&(k||Jr(y))||mo(y)&&!y||R&&!Go(s).isValid||E&&!Yo(s).isValid)){const{value:e,message:t}=si(l)?{value:!!l,message:l}:ci(l);if(e&&(x[p]={type:bo,message:t,ref:b,..._(bo,t)},!a))return w(t),x}if(!(k||Jr(d)&&Jr(m))){let e,t;const n=ci(m),r=ci(d);if(Jr(y)||isNaN(y)){const a=i.valueAsDate||new Date(y),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;ko(n.value)&&y&&(e=s?o(y)>o(n.value):l?y>n.value:a>new Date(n.value)),ko(r.value)&&y&&(t=s?o(y)<o(r.value):l?y<r.value:a<new Date(r.value))}else{const a=i.valueAsNumber||(y?+y:y);Jr(n.value)||(e=a>n.value),Jr(r.value)||(t=a<r.value)}if((e||t)&&(S(!!e,n.message,r.message,"max","min"),!a))return w(x[p].message),x}if((c||u)&&!k&&(ko(y)||o&&Array.isArray(y))){const e=ci(c),t=ci(u),n=!Jr(e.value)&&y.length>+e.value,r=!Jr(t.value)&&y.length<+t.value;if((n||r)&&(S(n,e.message,t.message),!a))return w(x[p].message),x}if(h&&!k&&ko(y)){const{value:e,message:t}=ci(h);if(Qo(e)&&!y.match(e)&&(x[p]={type:yo,message:t,ref:i,..._(yo,t)},!a))return w(t),x}if(f)if(Fo(f)){const e=li(await f(y,n),b);if(e&&(x[p]={...e,..._("validate",e.message)},!a))return w(e.message),x}else if(to(f)){let e={};for(const t in f){if(!To(e)&&!a)break;const r=li(await f[t](y,n),b,t);r&&(e={...r,..._(t,r.message)},w(r.message),a&&(x[p]=e))}if(!To(e)&&(x[p]={ref:b,...e},!a))return x}return w(!0),x};const di={mode:go,reValidateMode:po,shouldFocusError:!0};function mi(e={}){let t,n={...di,...e},a={submitCount:0,isDirty:!1,isReady:!1,isLoading:Fo(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},r={},o=(to(n.defaultValues)||to(n.values))&&oo(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:oo(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const m={array:Do(),state:Do()},h=n.criteriaMode===vo,f=async e=>{if(!n.disabled&&(u.isValid||d.isValid||e)){const e=n.resolver?To((await y()).errors):await b(r,!0);e!==a.isValid&&m.state.next({isValid:e})}},p=(e,t)=>{!n.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((e||Array.from(l.mount)).forEach(e=>{e&&(t?ho(a.validatingFields,e,t):Io(a.validatingFields,e))}),m.state.next({validatingFields:a.validatingFields,isValidating:!To(a.validatingFields)}))},g=(e,t,n,a)=>{const l=uo(r,e);if(l){const r=uo(i,e,so(n)?uo(o,e):n);so(r)||a&&a.defaultChecked||t?ho(i,e,t?r:Xo(l._f)):E(e,r),s.mount&&f()}},v=(e,t,r,i,s)=>{let l=!1,c=!1;const h={name:e};if(!n.disabled){if(!r||i){(u.isDirty||d.isDirty)&&(c=a.isDirty,a.isDirty=h.isDirty=w(),l=c!==h.isDirty);const n=Mo(uo(o,e),t);c=!!uo(a.dirtyFields,e),n?Io(a.dirtyFields,e):ho(a.dirtyFields,e,!0),h.dirtyFields=a.dirtyFields,l=l||(u.dirtyFields||d.dirtyFields)&&c!==!n}if(r){const t=uo(a.touchedFields,e);t||(ho(a.touchedFields,e,r),h.touchedFields=a.touchedFields,l=l||(u.touchedFields||d.touchedFields)&&t!==r)}l&&s&&m.state.next(h)}return l?h:{}},y=async e=>{p(e,!0);const t=await n.resolver(i,n.context,((e,t,n,a)=>{const r={};for(const o of e){const e=uo(t,o);e&&ho(r,o,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:a}})(e||l.mount,r,n.criteriaMode,n.shouldUseNativeValidation));return p(e),t},b=async(e,t,r={valid:!0})=>{for(const o in e){const s=e[o];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name),d=s._f&&ni(s._f);d&&u.validatingFields&&p([o],!0);const m=await ui(s,l.disabled,i,h,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&p([o]),m[e.name]&&(r.valid=!1,t))break;!t&&(uo(m,e.name)?c?ii(a.errors,m,e.name):ho(a.errors,e.name,m[e.name]):Io(a.errors,e.name))}!To(c)&&await b(c,t,r)}}return r.valid},w=(e,t)=>!n.disabled&&(e&&t&&ho(i,e,t),!Mo(M(),o)),x=(e,t,n)=>_o(e,l,{...s.mount?i:so(t)?o:ko(e)?{[e]:t}:t},n,t),E=(e,t,n={})=>{const a=uo(r,e);let o=t;if(a){const n=a._f;n&&(!n.disabled&&ho(i,e,qo(t,n)),o=zo(n.ref)&&Jr(t)?"":t,Lo(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?Xr(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):Oo(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||m.state.next({name:e,values:oo(i)})))}(n.shouldDirty||n.shouldTouch)&&v(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&S(e)},R=(e,t,n)=>{for(const a in t){if(!t.hasOwnProperty(a))return;const o=t[a],i=e+"."+a,s=uo(r,i);(l.array.has(e)||to(o)||s&&!s._f)&&!Qr(o)?R(i,o,n):E(i,o,n)}},C=(e,t,n={})=>{const c=uo(r,e),h=l.array.has(e),f=oo(t);ho(i,e,f),h?(m.array.next({name:e,values:oo(i)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&n.shouldDirty&&m.state.next({name:e,dirtyFields:Uo(o,i),isDirty:w(e,f)})):!c||c._f||Jr(f)?E(e,f,n):R(e,f,n),ai(e,l)&&m.state.next({...a,name:e}),m.state.next({name:s.mount?e:void 0,values:oo(i)})},k=async e=>{s.mount=!0;const o=e.target;let g=o.name,w=!0;const x=uo(r,g),E=e=>{w=Number.isNaN(e)||Qr(e)&&isNaN(e.getTime())||Mo(e,uo(i,g,e))},R=ei(n.mode),C=ei(n.reValidateMode);if(x){let s,k;const _=o.type?Xo(x._f):no(e),M=e.type===fo||"focusout"===e.type,N=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(x._f)&&!n.resolver&&!uo(a.errors,g)&&!x._f.deps||((e,t,n,a,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?a.isOnBlur:r.isOnBlur)?!e:!(n?a.isOnChange:r.isOnChange)||e))(M,uo(a.touchedFields,g),a.isSubmitted,C,R),P=ai(g,l,M);ho(i,g,_),M?(x._f.onBlur&&x._f.onBlur(e),t&&t(0)):x._f.onChange&&x._f.onChange(e);const A=v(g,_,M),D=!To(A)||P;if(!M&&m.state.next({name:g,type:e.type,values:oo(i)}),N)return(u.isValid||d.isValid)&&("onBlur"===n.mode?M&&f():M||f()),D&&m.state.next({name:g,...P?{}:A});if(!M&&P&&m.state.next({...a}),n.resolver){const{errors:e}=await y([g]);if(E(_),w){const t=oi(a.errors,r,g),n=oi(e,r,t.name||g);s=n.error,g=n.name,k=To(e)}}else p([g],!0),s=(await ui(x,l.disabled,i,h,n.shouldUseNativeValidation))[g],p([g]),E(_),w&&(s?k=!1:(u.isValid||d.isValid)&&(k=await b(r,!0)));w&&(x._f.deps&&S(x._f.deps),((e,r,o,i)=>{const s=uo(a.errors,e),l=(u.isValid||d.isValid)&&mo(r)&&a.isValid!==r;var h;if(n.delayError&&o?(h=()=>((e,t)=>{ho(a.errors,e,t),m.state.next({errors:a.errors})})(e,o),t=e=>{clearTimeout(c),c=setTimeout(h,e)},t(n.delayError)):(clearTimeout(c),t=null,o?ho(a.errors,e,o):Io(a.errors,e)),(o?!Mo(s,o):s)||!To(i)||l){const t={...i,...l&&mo(r)?{isValid:r}:{},errors:a.errors,name:e};a={...a,...t},m.state.next(t)}})(g,k,s,A))}},_=(e,t)=>{if(uo(a.errors,t)&&e.focus)return e.focus(),1},S=async(e,t={})=>{let o,i;const s=Ao(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await y(e);if(e)for(const n of e){const e=uo(t,n);e?ho(a.errors,n,e):Io(a.errors,n)}else a.errors=t;return t})(so(e)?e:s);o=To(t),i=e?!s.some(e=>uo(t,e)):o}else e?(i=(await Promise.all(s.map(async e=>{const t=uo(r,e);return await b(t&&t._f?{[e]:t}:t)}))).every(Boolean),(i||a.isValid)&&f()):i=o=await b(r);return m.state.next({...!ko(e)||(u.isValid||d.isValid)&&o!==a.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:a.errors}),t.shouldFocus&&!i&&ri(r,_,e?s:l.mount),i},M=e=>{const t={...s.mount?i:o};return so(e)?t:ko(e)?uo(t,e):e.map(e=>uo(t,e))},N=(e,t)=>({invalid:!!uo((t||a).errors,e),isDirty:!!uo((t||a).dirtyFields,e),error:uo((t||a).errors,e),isValidating:!!uo(a.validatingFields,e),isTouched:!!uo((t||a).touchedFields,e)}),P=(e,t,n)=>{const o=(uo(r,e,{_f:{}})._f||{}).ref,i=uo(a.errors,e)||{},{ref:s,message:l,type:c,...u}=i;ho(a.errors,e,{...u,...t,ref:o}),m.state.next({name:e,errors:a.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},A=e=>m.state.subscribe({next:t=>{var n,r,s;n=e.name,r=t.name,s=e.exact,n&&r&&n!==r&&!Ao(n).some(e=>e&&(s?e===r:e.startsWith(r)||r.startsWith(e)))||!((e,t,n,a)=>{n(e);const{name:r,...o}=e;return To(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!a||vo))})(t,e.formState||u,V,e.reRenderRoot)||e.callback({values:{...i},...a,...t,defaultValues:o})}}).unsubscribe,D=(e,t={})=>{for(const s of e?Ao(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Io(r,s),Io(i,s)),!t.keepError&&Io(a.errors,s),!t.keepDirty&&Io(a.dirtyFields,s),!t.keepTouched&&Io(a.touchedFields,s),!t.keepIsValidating&&Io(a.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Io(o,s);m.state.next({values:oo(i)}),m.state.next({...a,...t.keepDirty?{isDirty:w()}:{}}),!t.keepIsValid&&f()},T=({disabled:e,name:t})=>{(mo(e)&&s.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t))},O=(e,t={})=>{let a=uo(r,e);const i=mo(t.disabled)||mo(n.disabled);return ho(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),a?T({disabled:mo(t.disabled)?t.disabled:n.disabled,name:e}):g(e,!0,t.value),{...i?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:Jo(t.min),max:Jo(t.max),minLength:Jo(t.minLength),maxLength:Jo(t.maxLength),pattern:Jo(t.pattern)}:{},name:e,onChange:k,onBlur:k,ref:i=>{if(i){O(e,t),a=uo(r,e);const n=so(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=(e=>jo(e)||Xr(e))(n),l=a._f.refs||[];if(s?l.find(e=>e===n):n===a._f.ref)return;ho(r,e,{_f:{...a._f,...s?{refs:[...l.filter(Vo),n,...Array.isArray(uo(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else a=uo(r,e,{}),a._f&&(a._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!ao(l.array,e)||!s.action)&&l.unMount.add(e)}}},F=()=>n.shouldFocusError&&ri(r,_,l.mount),z=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=oo(i);if(m.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await y();a.errors=e,c=oo(t)}else await b(r);if(l.disabled.size)for(const e of l.disabled)Io(c,e);if(Io(a.errors,"root"),To(a.errors)){m.state.next({errors:{}});try{await e(c,o)}catch(u){s=u}}else t&&await t({...a.errors},o),F(),setTimeout(F);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:To(a.errors)&&!s,submitCount:a.submitCount+1,errors:a.errors}),s)throw s},L=(e,t={})=>{const c=e?oo(e):o,d=oo(c),h=To(e),f=h?o:d;if(t.keepDefaultValues||(o=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(Uo(o,i))]);for(const t of Array.from(e))uo(a.dirtyFields,t)?ho(f,t,uo(i,t)):C(t,uo(f,t))}else{if(ro&&so(e))for(const e of l.mount){const t=uo(r,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(zo(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)C(e,uo(f,e));else r={}}i=n.shouldUnregister?t.keepDefaultValues?oo(o):{}:oo(f),m.array.next({values:{...f}}),m.state.next({values:{...f}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,m.state.next({submitCount:t.keepSubmitCount?a.submitCount:0,isDirty:!h&&(t.keepDirty?a.isDirty:!(!t.keepDefaultValues||Mo(e,o))),isSubmitted:!!t.keepIsSubmitted&&a.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&i?Uo(o,i):a.dirtyFields:t.keepDefaultValues&&e?Uo(o,e):t.keepDirty?a.dirtyFields:{},touchedFields:t.keepTouched?a.touchedFields:{},errors:t.keepErrors?a.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&a.isSubmitSuccessful,isSubmitting:!1})},j=(e,t)=>L(Fo(e)?e(i):e,t),V=e=>{a={...a,...e}},I={control:{register:O,unregister:D,getFieldState:N,handleSubmit:z,setError:P,_subscribe:A,_runSchema:y,_focusError:F,_getWatch:x,_getDirty:w,_setValid:f,_setFieldArray:(e,t=[],l,c,h=!0,f=!0)=>{if(c&&l&&!n.disabled){if(s.action=!0,f&&Array.isArray(uo(r,e))){const t=l(uo(r,e),c.argA,c.argB);h&&ho(r,e,t)}if(f&&Array.isArray(uo(a.errors,e))){const t=l(uo(a.errors,e),c.argA,c.argB);h&&ho(a.errors,e,t),((e,t)=>{!lo(uo(e,t)).length&&Io(e,t)})(a.errors,e)}if((u.touchedFields||d.touchedFields)&&f&&Array.isArray(uo(a.touchedFields,e))){const t=l(uo(a.touchedFields,e),c.argA,c.argB);h&&ho(a.touchedFields,e,t)}(u.dirtyFields||d.dirtyFields)&&(a.dirtyFields=Uo(o,i)),m.state.next({name:e,isDirty:w(e,t),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else ho(i,e,t)},_setDisabledField:T,_setErrors:e=>{a.errors=e,m.state.next({errors:a.errors,isValid:!1})},_getFieldArray:e=>lo(uo(s.mount?i:o,e,n.shouldUnregister?uo(o,e,[]):[])),_reset:L,_resetDefaultValues:()=>Fo(n.defaultValues)&&n.defaultValues().then(e=>{j(e,n.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=uo(r,e);t&&(t._f.refs?t._f.refs.every(e=>!Vo(e)):!Vo(t._f.ref))&&D(e)}l.unMount=new Set},_disableForm:e=>{mo(e)&&(m.state.next({disabled:e}),ri(r,(t,n)=>{const a=uo(r,n);a&&(t.disabled=a._f.disabled||e,Array.isArray(a._f.refs)&&a._f.refs.forEach(t=>{t.disabled=a._f.disabled||e}))},0,!1))},_subjects:m,_proxyFormState:u,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return a},get _options(){return n},set _options(e){n={...n,...e}}},subscribe:e=>(s.mount=!0,d={...d,...e.formState},A({...e,formState:d})),trigger:S,register:O,handleSubmit:z,watch:(e,t)=>Fo(e)?m.state.subscribe({next:n=>"values"in n&&e(x(void 0,t),n)}):x(e,t,!0),setValue:C,getValues:M,reset:j,resetField:(e,t={})=>{uo(r,e)&&(so(t.defaultValue)?C(e,oo(uo(o,e))):(C(e,t.defaultValue),ho(o,e,oo(t.defaultValue))),t.keepTouched||Io(a.touchedFields,e),t.keepDirty||(Io(a.dirtyFields,e),a.isDirty=t.defaultValue?w(e,oo(uo(o,e))):w()),t.keepError||(Io(a.errors,e),u.isValid&&f()),m.state.next({...a}))},clearErrors:e=>{e&&Ao(e).forEach(e=>Io(a.errors,e)),m.state.next({errors:e?a.errors:{}})},unregister:D,setError:P,setFocus:(e,t={})=>{const n=uo(r,e),a=n&&n._f;if(a){const e=a.refs?a.refs[0]:a.ref;e.focus&&(e.focus(),t.shouldSelect&&Fo(e.select)&&e.select())}},getFieldState:N};return{...I,formControl:I}}function hi(e={}){const t=Le.useRef(void 0),n=Le.useRef(void 0),[a,r]=Le.useState({isDirty:!1,isValidating:!1,isLoading:Fo(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Fo(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!Fo(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:n,...r}=mi(e);t.current={...r,formState:a}}const o=t.current.control;return o._options=e,Ro(()=>{const e=o._subscribe({formState:o._proxyFormState,callback:()=>r({...o._formState}),reRenderRoot:!0});return r(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),Le.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Le.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),Le.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),Le.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),Le.useEffect(()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==a.isDirty&&o._subjects.state.next({isDirty:e})}},[o,a.isDirty]),Le.useEffect(()=>{e.values&&!Mo(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),n.current=e.values,r(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),Le.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Eo(a,o),t.current}const fi=(e,t,n)=>{if(e&&"reportValidity"in e){const a=uo(n,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},pi=(e,t)=>{for(const n in t.fields){const a=t.fields[n];a&&a.ref&&"reportValidity"in a.ref?fi(a.ref,n,e):a&&a.refs&&a.refs.forEach(t=>fi(t,n,e))}},gi=(e,t)=>{t.shouldUseNativeValidation&&pi(e,t);const n={};for(const a in e){const r=uo(t.fields,a),o=Object.assign(e[a]||{},{ref:r&&r.ref});if(vi(t.names||Object.keys(e),a)){const e=Object.assign({},uo(n,a));ho(e,"root",o),ho(n,a,e)}else ho(n,a,o)}return n},vi=(e,t)=>{const n=yi(t);return e.some(e=>yi(e).match(`^${n}\\.\\d+`))};function yi(e){return e.replace(/\]|\[/g,"")}function bi(e,t,n){function a(n,a){var r;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(r=n._zod).traits??(r.traits=new Set),n._zod.traits.add(e),t(n,a);for(const e in i.prototype)e in n||Object.defineProperty(n,e,{value:i.prototype[e].bind(n)});n._zod.constr=i,n._zod.def=a}const r=(null==n?void 0:n.Parent)??Object;class o extends r{}function i(e){var t;const r=(null==n?void 0:n.Parent)?new o:this;a(r,e),(t=r._zod).deferred??(t.deferred=[]);for(const n of r._zod.deferred)n();return r}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(i,"init",{value:a}),Object.defineProperty(i,Symbol.hasInstance,{value:t=>{var a,r;return!!((null==n?void 0:n.Parent)&&t instanceof n.Parent)||(null==(r=null==(a=null==t?void 0:t._zod)?void 0:a.traits)?void 0:r.has(e))}}),Object.defineProperty(i,"name",{value:e}),i}class wi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const xi={};function Ei(e){return xi}function Ri(e,t){return"bigint"==typeof t?t.toString():t}const Ci=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function ki(e){return"string"==typeof e?e:null==e?void 0:e.message}function _i(e,t,n){var a,r,o,i,s,l;const c={...e,path:e.path??[]};if(!e.message){const u=ki(null==(o=null==(r=null==(a=e.inst)?void 0:a._zod.def)?void 0:r.error)?void 0:o.call(r,e))??ki(null==(i=null==t?void 0:t.error)?void 0:i.call(t,e))??ki(null==(s=n.customError)?void 0:s.call(n,e))??ki(null==(l=n.localeError)?void 0:l.call(n,e))??"Invalid input";c.message=u}return delete c.inst,delete c.continue,(null==t?void 0:t.reportInput)||delete c.input,c}const Si=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,Ri,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Mi=bi("$ZodError",Si),Ni=bi("$ZodError",Si,{Parent:Error}),Pi=(e=>(t,n,a,r)=>{const o=a?Object.assign(a,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new wi;if(i.issues.length){const t=new((null==r?void 0:r.Err)??e)(i.issues.map(e=>_i(e,o,Ei())));throw Ci(t,null==r?void 0:r.callee),t}return i.value})(Ni),Ai=(e=>async(t,n,a,r)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){const t=new((null==r?void 0:r.Err)??e)(i.issues.map(e=>_i(e,o,Ei())));throw Ci(t,null==r?void 0:r.callee),t}return i.value})(Ni);function Di(e,t){try{var n=e()}catch(a){return t(a)}return n&&n.then?n.then(void 0,t):n}function Ti(e,t){for(var n={};e.length;){var a=e[0],r=a.code,o=a.message,i=a.path.join(".");if(!n[i])if("unionErrors"in a){var s=a.unionErrors[0].errors[0];n[i]={message:s.message,type:s.code}}else n[i]={message:o,type:r};if("unionErrors"in a&&a.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var l=n[i].types,c=l&&l[a.code];n[i]=Po(i,t,n,r,c?[].concat(c,a.message):a.message)}e.shift()}return n}function Oi(e,t){for(var n={};e.length;){var a=e[0],r=a.code,o=a.message,i=a.path.join(".");if(!n[i])if("invalid_union"===a.code&&a.errors.length>0){var s=a.errors[0][0];n[i]={message:s.message,type:s.code}}else n[i]={message:o,type:r};if("invalid_union"===a.code&&a.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var l=n[i].types,c=l&&l[a.code];n[i]=Po(i,t,n,r,c?[].concat(c,a.message):a.message)}e.shift()}return n}function Fi(e,t,n){if(void 0===n&&(n={}),"_def"in(a=e)&&"object"==typeof a._def&&"typeName"in a._def)return function(r,o,i){try{return Promise.resolve(Di(function(){return Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](r,t)).then(function(e){return i.shouldUseNativeValidation&&pi({},i),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(t=e,Array.isArray(null==t?void 0:t.issues))return{values:{},errors:gi(Ti(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};var t;throw e}))}catch(a){return Promise.reject(a)}};var a;if(function(e){return"_zod"in e&&"object"==typeof e._zod}(e))return function(r,o,i){try{return Promise.resolve(Di(function(){return Promise.resolve(("sync"===n.mode?Pi:Ai)(e,r,t)).then(function(e){return i.shouldUseNativeValidation&&pi({},i),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(e instanceof Mi)return{values:{},errors:gi(Oi(e.issues,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const zi=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),ze.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),Li=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),ze.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),ji=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),ze.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),Vi=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),ze.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Ii=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),ze.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),Hi=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),ze.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Bi=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),ze.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),Wi=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),ze.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Ui=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),$i=new Map([["bold",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),ze.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",ze.createElement(ze.Fragment,null,ze.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Zi=ze.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Gi=ze.forwardRef((e,t)=>{const{alt:n,color:a,size:r,weight:o,mirrored:i,children:s,weights:l,...c}=e,{color:u="currentColor",size:d,weight:m="regular",mirrored:h=!1,...f}=ze.useContext(Zi);return ze.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=r?r:d,height:null!=r?r:d,fill:null!=a?a:u,viewBox:"0 0 256 256",transform:i||h?"scale(-1, 1)":void 0,...f,...c},!!n&&ze.createElement("title",null,n),s,l.get(null!=o?o:m))});Gi.displayName="IconBase";const qi=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:zi}));qi.displayName="CaretDownIcon";const Ki=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Li}));Ki.displayName="CaretUpIcon";const Yi=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:ji}));Yi.displayName="CheckIcon";const Xi=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Vi}));Xi.displayName="CheckCircleIcon";const Qi=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Ii}));Qi.displayName="CircleNotchIcon";ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Hi})).displayName="InfoIcon";const Ji=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Bi}));Ji.displayName="MagnifyingGlassIcon";const es=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Wi}));es.displayName="QuestionIcon";ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:Ui})).displayName="WarningCircleIcon";const ts=ze.forwardRef((e,t)=>ze.createElement(Gi,{ref:t,...e,weights:$i}));ts.displayName="XCircleIcon";const ns=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},as=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),rs=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var os={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const is=ze.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:r="",children:o,iconNode:i,...s},l)=>ze.createElement("svg",{ref:l,...os,width:t,height:t,stroke:e,strokeWidth:a?24*Number(n)/Number(t):n,className:as("lucide",r),...!o&&!rs(s)&&{"aria-hidden":"true"},...s},[...i.map(([e,t])=>ze.createElement(e,t)),...Array.isArray(o)?o:[o]])),ss=(e,t)=>{const n=ze.forwardRef(({className:n,...a},r)=>{return ze.createElement(is,{ref:r,iconNode:t,className:as(`lucide-${o=ns(e),o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...a});var o});return n.displayName=ns(e),n},ls=ss("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),cs=ss("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),us=ss("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ds=ss("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ms=ss("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),hs=ss("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),fs=ss("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),ps=ss("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),gs=ss("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),vs=ss("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),ys=ss("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),bs=ss("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),ws=ss("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),xs=ss("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),Es=ss("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Rs=ss("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Cs=ss("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),ks=ss("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function _s(){const e=$t(),{data:t}=Yt({queryKey:["authUrl"],queryFn:()=>window.yaySmtpWpData.authUrl,placeholderData:window.yaySmtpWpData.authUrl});return{authUrl:t,updateAuthUrl:t=>{window.yaySmtpWpData.authUrl=t,e.setQueryData(["authUrl"],t)}}}function Ss(){const e=$t(),{data:t}=Yt({queryKey:["is_multisite_mode"],queryFn:()=>window.yaySmtpWpData.is_multisite_mode,placeholderData:window.yaySmtpWpData.is_multisite_mode});return{isNetworkAdmin:window.yaySmtpWpData.is_network_admin,isMultisiteMode:"yes"===t,updateMultisiteMode:t=>{window.yaySmtpWpData.is_multisite_mode=t,e.setQueryData(["is_multisite_mode"],t)}}}function Ms(){const e=$t(),{data:t}=Yt({queryKey:["yaysmtpSettings"],queryFn:()=>window.yaySmtpWpData.yaysmtpSettings,placeholderData:window.yaySmtpWpData.yaysmtpSettings});return{settings:t,updateSettings:t=>{window.yaySmtpWpData.yaysmtpSettings=t,e.setQueryData(["yaysmtpSettings"],t)}}}function Ns(){const e=$t(),{data:t}=Yt({queryKey:["yayDebugText"],queryFn:()=>window.yaySmtpWpData.yayDebugText,placeholderData:window.yaySmtpWpData.yayDebugText});return{debugText:t,updateDebugText:t=>{window.yaySmtpWpData.yayDebugText={normal:t.normal||[],fallback:t.fallback||[]},e.setQueryData(["yayDebugText"],t)}}}var Ps,As;function Ds(){return As?Ps:(As=1,Ps=TypeError)}const Ts=Oe(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Os,Fs,zs,Ls,js,Vs,Is,Hs,Bs,Ws,Us,$s,Zs,Gs,qs,Ks,Ys,Xs,Qs,Js,el,tl,nl,al,rl,ol,il,sl,ll,cl,ul,dl,ml,hl,fl,pl,gl,vl,yl,bl,wl,xl,El,Rl,Cl,kl,_l,Sl,Ml,Nl,Pl,Al,Dl,Tl,Ol,Fl,zl,Ll,jl,Vl,Il,Hl,Bl,Wl,Ul,$l,Zl,Gl,ql,Kl,Yl,Xl,Ql,Jl,ec,tc,nc,ac,rc,oc,ic,sc,lc,cc,uc,dc,mc,hc;function fc(){if(Fs)return Os;Fs=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&"function"==typeof t.get?t.get:null,a=e&&Map.prototype.forEach,r="function"==typeof Set&&Set.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,c="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,f=String.prototype.match,p=String.prototype.slice,g=String.prototype.replace,v=String.prototype.toUpperCase,y=String.prototype.toLowerCase,b=RegExp.prototype.test,w=Array.prototype.concat,x=Array.prototype.join,E=Array.prototype.slice,R=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var a=e<0?-R(-e):R(e);if(a!==e){var r=String(a),o=p.call(t,r.length+1);return g.call(r,n,"$&_")+"."+g.call(g.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(t,n,"$&_")}var D=Ts,T=D.custom,O=B(T)?T:null,F={__proto__:null,double:'"',single:"'"},z={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function L(e,t,n){var a=n.quoteStyle||t,r=F[a];return r+e+r}function j(e){return g.call(String(e),/"/g,"&quot;")}function V(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function I(e){return"[object Array]"===$(e)&&V(e)}function H(e){return"[object RegExp]"===$(e)&&V(e)}function B(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(nV){}return!1}Os=function e(t,r,o,m){var v=r||{};if(U(v,"quoteStyle")&&!U(F,v.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(v,"maxStringLength")&&("number"==typeof v.maxStringLength?v.maxStringLength<0&&v.maxStringLength!==1/0:null!==v.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!U(v,"customInspect")||v.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(v,"indent")&&null!==v.indent&&"\t"!==v.indent&&!(parseInt(v.indent,10)===v.indent&&v.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(v,"numericSeparator")&&"boolean"!=typeof v.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var R=v.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,v);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return R?A(t,k):k}if("bigint"==typeof t){var T=String(t)+"n";return R?A(t,T):T}var z=void 0===v.depth?5:v.depth;if(void 0===o&&(o=0),o>=z&&z>0&&"object"==typeof t)return I(t)?"[Array]":"[Object]";var W,q=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(t+1),n)}}(v,o);if(void 0===m)m=[];else if(Z(m,t)>=0)return"[Circular]";function ee(t,n,a){if(n&&(m=E.call(m)).push(n),a){var r={depth:v.depth};return U(v,"quoteStyle")&&(r.quoteStyle=v.quoteStyle),e(t,r,o+1,m)}return e(t,v,o+1,m)}if("function"==typeof t&&!H(t)){var te=function(e){if(e.name)return e.name;var t=f.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=J(t,ee);return"[Function"+(te?": "+te:" (anonymous)")+"]"+(ne.length>0?" { "+x.call(ne,", ")+" }":"")}if(B(t)){var ae=S?g.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||S?ae:K(ae)}if((W=t)&&"object"==typeof W&&("undefined"!=typeof HTMLElement&&W instanceof HTMLElement||"string"==typeof W.nodeName&&"function"==typeof W.getAttribute)){for(var re="<"+y.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+L(j(oe[ie].value),"double",v);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+y.call(String(t.nodeName))+">"}if(I(t)){if(0===t.length)return"[]";var se=J(t,ee);return q&&!function(e){for(var t=0;t<e.length;t++)if(Z(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,q)+"]":"[ "+x.call(se,", ")+" ]"}if(function(e){return"[object Error]"===$(e)&&V(e)}(t)){var le=J(t,ee);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(le,", ")+" }":"{ ["+String(t)+"] "+x.call(w.call("[cause]: "+ee(t.cause),le),", ")+" }"}if("object"==typeof t&&b){if(O&&"function"==typeof t[O]&&D)return D(t,{depth:z-o});if("symbol"!==b&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!n||!e||"object"!=typeof e)return!1;try{n.call(e);try{i.call(e)}catch(re){return!0}return e instanceof Map}catch(nV){}return!1}(t)){var ce=[];return a&&a.call(t,function(e,n){ce.push(ee(n,t,!0)+" => "+ee(e,t))}),X("Map",n.call(t),ce,q)}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{n.call(e)}catch(t){return!0}return e instanceof Set}catch(nV){}return!1}(t)){var ue=[];return s&&s.call(t,function(e){ue.push(ee(e,t))}),X("Set",i.call(t),ue,q)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{c.call(e,c)}catch(re){return!0}return e instanceof WeakMap}catch(nV){}return!1}(t))return Y("WeakMap");if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{l.call(e,l)}catch(re){return!0}return e instanceof WeakSet}catch(nV){}return!1}(t))return Y("WeakSet");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{return u.call(e),!0}catch(nV){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===$(e)&&V(e)}(t))return K(ee(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(nV){}return!1}(t))return K(ee(C.call(t)));if(function(e){return"[object Boolean]"===$(e)&&V(e)}(t))return K(d.call(t));if(function(e){return"[object String]"===$(e)&&V(e)}(t))return K(ee(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==De&&t===De)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===$(e)&&V(e)}(t)&&!H(t)){var de=J(t,ee),me=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",fe=!me&&M&&Object(t)===t&&M in t?p.call($(t),8,-1):he?"Object":"",pe=(me||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||he?"["+x.call(w.call([],fe||[],he||[]),": ")+"] ":"");return 0===de.length?pe+"{}":q?pe+"{"+Q(de,q)+"}":pe+"{ "+x.call(de,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return W.call(e,t)}function $(e){return m.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1}function G(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return G(p.call(e,0,t.maxStringLength),t)+a}var r=z[t.quoteStyle||"single"];return r.lastIndex=0,L(g.call(g.call(e,r,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,n,a){return e+" ("+t+") {"+(a?Q(n,a):x.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+x.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=I(e),a=[];if(n){a.length=e.length;for(var r=0;r<e.length;r++)a[r]=U(e,r)?t(e[r],e):""}var o,i="function"==typeof k?k(e):[];if(S){o={};for(var s=0;s<i.length;s++)o["$"+i[s]]=i[s]}for(var l in e)U(e,l)&&(n&&String(Number(l))===l&&l<e.length||S&&o["$"+l]instanceof Symbol||(b.call(/[^\w$]/,l)?a.push(t(l,e)+": "+t(e[l],e)):a.push(l+": "+t(e[l],e))));if("function"==typeof k)for(var c=0;c<i.length;c++)N.call(e,i[c])&&a.push("["+t(i[c])+"]: "+t(e[i[c]],e));return a}return Os}function pc(){return Vs?js:(Vs=1,js=Object)}function gc(){return Hs?Is:(Hs=1,Is=Error)}function vc(){return Ws?Bs:(Ws=1,Bs=EvalError)}function yc(){return $s?Us:($s=1,Us=RangeError)}function bc(){return Gs?Zs:(Gs=1,Zs=ReferenceError)}function wc(){return Ks?qs:(Ks=1,qs=SyntaxError)}function xc(){return Xs?Ys:(Xs=1,Ys=URIError)}function Ec(){return Js?Qs:(Js=1,Qs=Math.abs)}function Rc(){return tl?el:(tl=1,el=Math.floor)}function Cc(){return al?nl:(al=1,nl=Math.max)}function kc(){return ol?rl:(ol=1,rl=Math.min)}function _c(){return sl?il:(sl=1,il=Math.pow)}function Sc(){return cl?ll:(cl=1,ll=Math.round)}function Mc(){return dl?ul:(dl=1,ul=Number.isNaN||function(e){return e!=e})}function Nc(){if(hl)return ml;hl=1;var e=Mc();return ml=function(t){return e(t)||0===t?t:t<0?-1:1}}function Pc(){return pl?fl:(pl=1,fl=Object.getOwnPropertyDescriptor)}function Ac(){if(vl)return gl;vl=1;var e=Pc();if(e)try{e([],"length")}catch(nV){e=null}return gl=e}function Dc(){if(bl)return yl;bl=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(nV){e=!1}return yl=e}function Tc(){return kl?Cl:(kl=1,Cl="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Oc(){return Sl?_l:(Sl=1,_l=pc().getPrototypeOf||null)}function Fc(){if(Al)return Pl;Al=1;var e=function(){if(Nl)return Ml;Nl=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],a=0;a<e.length;a+=1)n[a]=e[a];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return Ml=function(a){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=function(e){for(var t=[],n=1,a=0;n<e.length;n+=1,a+=1)t[a]=e[n];return t}(arguments),s=t(0,r.length-i.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=r.apply(this,n(i,arguments));return Object(e)===e?e:this}return r.apply(a,n(i,arguments))}),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o},Ml}();return Pl=Function.prototype.bind||e}function zc(){return Tl?Dl:(Tl=1,Dl=Function.prototype.call)}function Lc(){return Fl?Ol:(Fl=1,Ol=Function.prototype.apply)}function jc(){if(Hl)return Il;Hl=1;var e=Fc(),t=Ds(),n=zc(),a=function(){if(Vl)return jl;Vl=1;var e=Fc(),t=Lc(),n=zc(),a=Ll?zl:(Ll=1,zl="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return jl=a||e.call(n,t)}();return Il=function(r){if(r.length<1||"function"!=typeof r[0])throw new t("a function is required");return a(e,n,r)}}function Vc(){if(Wl)return Bl;Wl=1;var e,t=jc(),n=Ac();try{e=[].__proto__===Array.prototype}catch(nV){if(!nV||"object"!=typeof nV||!("code"in nV)||"ERR_PROTO_ACCESS"!==nV.code)throw nV}var a=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,o=r.getPrototypeOf;return Bl=a&&"function"==typeof a.get?t([a.get]):"function"==typeof o&&function(e){return o(null==e?e:r(e))}}function Ic(){if(Gl)return Zl;Gl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Fc();return Zl=n.call(e,t)}function Hc(){if(Kl)return ql;var e;Kl=1;var t=pc(),n=gc(),a=vc(),r=yc(),o=bc(),i=wc(),s=Ds(),l=xc(),c=Ec(),u=Rc(),d=Cc(),m=kc(),h=_c(),f=Sc(),p=Nc(),g=Function,v=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(nV){}},y=Ac(),b=Dc(),w=function(){throw new s},x=y?function(){try{return w}catch(e){try{return y(arguments,"callee").get}catch(t){return w}}}():w,E=function(){if(Rl)return El;Rl=1;var e="undefined"!=typeof Symbol&&Symbol,t=xl?wl:(xl=1,wl=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var a in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0});return El=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),R=function(){if($l)return Ul;$l=1;var e=Tc(),t=Oc(),n=Vc();return Ul=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),C=Oc(),k=Tc(),_=Lc(),S=zc(),M={},N="undefined"!=typeof Uint8Array&&R?R(Uint8Array):e,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&R?R([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&R?R(R([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&R?R((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":r,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&R?R((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&R?R(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":x,"%TypedArray%":N,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":S,"%Function.prototype.apply%":_,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":C,"%Math.abs%":c,"%Math.floor%":u,"%Math.max%":d,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":f,"%Math.sign%":p,"%Reflect.getPrototypeOf%":k};if(R)try{null.error}catch(nV){var A=R(R(nV));P["%Error.prototype%"]=A}var D=function e(t){var n;if("%AsyncFunction%"===t)n=v("async function () {}");else if("%GeneratorFunction%"===t)n=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=v("async function* () {}");else if("%AsyncGenerator%"===t){var a=e("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&R&&(n=R(r.prototype))}return P[t]=n,n},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=Fc(),F=Ic(),z=O.call(S,Array.prototype.concat),L=O.call(_,Array.prototype.splice),j=O.call(S,String.prototype.replace),V=O.call(S,String.prototype.slice),I=O.call(S,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,W=function(e,t){var n,a=e;if(F(T,a)&&(a="%"+(n=T[a])[0]+"%"),F(P,a)){var r=P[a];if(r===M&&(r=D(a)),void 0===r&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:r}}throw new i("intrinsic "+e+" does not exist!")};return ql=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=V(e,0,1),n=V(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var a=[];return j(e,H,function(e,t,n,r){a[a.length]=n?j(r,B,"$1"):t||e}),a}(e),a=n.length>0?n[0]:"",r=W("%"+a+"%",t),o=r.name,l=r.value,c=!1,u=r.alias;u&&(a=u[0],L(n,z([0,1],u)));for(var d=1,m=!0;d<n.length;d+=1){var h=n[d],f=V(h,0,1),p=V(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===p||"'"===p||"`"===p)&&f!==p)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&m||(c=!0),F(P,o="%"+(a+="."+h)+"%"))l=P[o];else if(null!=l){if(!(h in l)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&d+1>=n.length){var g=y(l,h);l=(m=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else m=F(l,h),l=l[h];m&&!c&&(P[o]=l)}}return l},ql}function Bc(){if(Xl)return Yl;Xl=1;var e=Hc(),t=jc(),n=t([e("%String.prototype.indexOf%")]);return Yl=function(a,r){var o=e(a,!!r);return"function"==typeof o&&n(a,".prototype.")>-1?t([o]):o}}function Wc(){if(Jl)return Ql;Jl=1;var e=Hc(),t=Bc(),n=fc(),a=Ds(),r=e("%Map%",!0),o=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),c=t("Map.prototype.size",!0);return Ql=!!r&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+n(e))},delete:function(t){if(e){var n=l(e,t);return 0===c(e)&&(e=void 0),n}return!1},get:function(t){if(e)return o(e,t)},has:function(t){return!!e&&s(e,t)},set:function(t,n){e||(e=new r),i(e,t,n)}};return t}}function Uc(){if(ac)return nc;ac=1;var e=Ds(),t=fc(),n=function(){if(Ls)return zs;Ls=1;var e=fc(),t=Ds(),n=function(e,t,n){for(var a,r=e;null!=(a=r.next);r=a)if(a.key===t)return r.next=a.next,n||(a.next=e.next,e.next=a),a};return zs=function(){var a,r={assert:function(n){if(!r.has(n))throw new t("Side channel does not contain "+e(n))},delete:function(e){var t=a&&a.next,r=function(e,t){if(e)return n(e,t,!0)}(a,e);return r&&t&&t===r&&(a=void 0),!!r},get:function(e){return function(e,t){if(e){var a=n(e,t);return a&&a.value}}(a,e)},has:function(e){return function(e,t){return!!e&&!!n(e,t)}(a,e)},set:function(e,t){a||(a={next:void 0}),function(e,t,a){var r=n(e,t);r?r.value=a:e.next={key:t,next:e.next,value:a}}(a,e,t)}};return r}}(),a=Wc(),r=function(){if(tc)return ec;tc=1;var e=Hc(),t=Bc(),n=fc(),a=Wc(),r=Ds(),o=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),c=t("WeakMap.prototype.delete",!0);return ec=o?function(){var e,t,u={assert:function(e){if(!u.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(n){if(o&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return o&&n&&("object"==typeof n||"function"==typeof n)&&e?i(e,n):t&&t.get(n)},has:function(n){return o&&n&&("object"==typeof n||"function"==typeof n)&&e?l(e,n):!!t&&t.has(n)},set:function(n,r){o&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new o),s(e,n,r)):a&&(t||(t=a()),t.set(n,r))}};return u}:a}(),o=r||a||n;return nc=function(){var n,a={assert:function(n){if(!a.has(n))throw new e("Side channel does not contain "+t(n))},delete:function(e){return!!n&&n.delete(e)},get:function(e){return n&&n.get(e)},has:function(e){return!!n&&n.has(e)},set:function(e,t){n||(n=o()),n.set(e,t)}};return a}}function $c(){if(oc)return rc;oc=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return rc={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function Zc(){if(sc)return ic;sc=1;var e=$c(),t=Object.prototype.hasOwnProperty,n=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),r=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)void 0!==e[a]&&(n[a]=e[a]);return n},o=1024;return ic={arrayToObject:r,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],a=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===a.indexOf(u)&&(t.push({obj:i,prop:c}),a.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),a=t.obj[t.prop];if(n(a)){for(var r=[],o=0;o<a.length;++o)void 0!==a[o]&&r.push(a[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var a=e.replace(/\+/g," ");if("iso-8859-1"===n)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(nV){return a}},encode:function(t,n,r,i,s){if(0===t.length)return t;var l=t;if("symbol"==typeof t?l=Symbol.prototype.toString.call(t):"string"!=typeof t&&(l=String(t)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",u=0;u<l.length;u+=o){for(var d=l.length>=o?l.slice(u,u+o):l,m=[],h=0;h<d.length;++h){var f=d.charCodeAt(h);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===e.RFC1738&&(40===f||41===f)?m[m.length]=d.charAt(h):f<128?m[m.length]=a[f]:f<2048?m[m.length]=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?m[m.length]=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(h+=1,f=65536+((1023&f)<<10|1023&d.charCodeAt(h)),m[m.length]=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}c+=m.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var a=[],r=0;r<e.length;r+=1)a.push(t(e[r]));return a}return t(e)},merge:function e(a,o,i){if(!o)return a;if("object"!=typeof o&&"function"!=typeof o){if(n(a))a.push(o);else{if(!a||"object"!=typeof a)return[a,o];(i&&(i.plainObjects||i.allowPrototypes)||!t.call(Object.prototype,o))&&(a[o]=!0)}return a}if(!a||"object"!=typeof a)return[a].concat(o);var s=a;return n(a)&&!n(o)&&(s=r(a,i)),n(a)&&n(o)?(o.forEach(function(n,r){if(t.call(a,r)){var o=a[r];o&&"object"==typeof o&&n&&"object"==typeof n?a[r]=e(o,n,i):a.push(n)}else a[r]=n}),a):Object.keys(o).reduce(function(n,a){var r=o[a];return t.call(n,a)?n[a]=e(n[a],r,i):n[a]=r,n},s)}},ic}function Gc(){if(cc)return lc;cc=1;var e=Uc(),t=Zc(),n=$c(),a=Object.prototype.hasOwnProperty,r={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Array.isArray,i=Array.prototype.push,s=function(e,t){i.apply(e,o(t)?t:[t])},l=Date.prototype.toISOString,c=n.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:n.formatters[c],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function n(a,r,i,l,c,m,h,f,p,g,v,y,b,w,x,E,R,C){for(var k,_=a,S=C,M=0,N=!1;void 0!==(S=S.get(d))&&!N;){var P=S.get(a);if(M+=1,void 0!==P){if(P===M)throw new RangeError("Cyclic object value");N=!0}void 0===S.get(d)&&(M=0)}if("function"==typeof g?_=g(r,_):_ instanceof Date?_=b(_):"comma"===i&&o(_)&&(_=t.maybeMap(_,function(e){return e instanceof Date?b(e):e})),null===_){if(m)return p&&!E?p(r,u.encoder,R,"key",w):r;_=""}if("string"==typeof(k=_)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||t.isBuffer(_))return p?[x(E?r:p(r,u.encoder,R,"key",w))+"="+x(p(_,u.encoder,R,"value",w))]:[x(r)+"="+x(String(_))];var A,D=[];if(void 0===_)return D;if("comma"===i&&o(_))E&&p&&(_=t.maybeMap(_,p)),A=[{value:_.length>0?_.join(",")||null:void 0}];else if(o(g))A=g;else{var T=Object.keys(_);A=v?T.sort(v):T}var O=f?String(r).replace(/\./g,"%2E"):String(r),F=l&&o(_)&&1===_.length?O+"[]":O;if(c&&o(_)&&0===_.length)return F+"[]";for(var z=0;z<A.length;++z){var L=A[z],j="object"==typeof L&&L&&void 0!==L.value?L.value:_[L];if(!h||null!==j){var V=y&&f?String(L).replace(/\./g,"%2E"):String(L),I=o(_)?"function"==typeof i?i(F,V):F:F+(y?"."+V:"["+V+"]");C.set(a,M);var H=e();H.set(d,C),s(D,n(j,I,i,l,c,m,h,f,"comma"===i&&E&&o(_)?null:p,g,v,y,b,w,x,E,R,H))}}return D};return lc=function(t,i){var l,c=t,d=function(e){if(!e)return u;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||u.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=n.default;if(void 0!==e.format){if(!a.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var s,l=n.formatters[i],c=u.filter;if(("function"==typeof e.filter||o(e.filter))&&(c=e.filter),s=e.arrayFormat in r?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":u.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=void 0===e.allowDots?!0===e.encodeDotInKeys||u.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:u.addQueryPrefix,allowDots:d,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?u.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:u.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:u.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:u.encodeValuesOnly,filter:c,format:i,formatter:l,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:u.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(i);"function"==typeof d.filter?c=(0,d.filter)("",c):o(d.filter)&&(l=d.filter);var h=[];if("object"!=typeof c||null===c)return"";var f=r[d.arrayFormat],p="comma"===f&&d.commaRoundTrip;l||(l=Object.keys(c)),d.sort&&l.sort(d.sort);for(var g=e(),v=0;v<l.length;++v){var y=l[v],b=c[y];d.skipNulls&&null===b||s(h,m(b,y,f,p,d.allowEmptyArrays,d.strictNullHandling,d.skipNulls,d.encodeDotInKeys,d.encode?d.encoder:null,d.filter,d.sort,d.allowDots,d.serializeDate,d.format,d.formatter,d.encodeValuesOnly,d.charset,g))}var w=h.join(d.delimiter),x=!0===d.addQueryPrefix?"?":"";return d.charsetSentinel&&("iso-8859-1"===d.charset?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""},lc}function qc(){if(dc)return uc;dc=1;var e=Zc(),t=Object.prototype.hasOwnProperty,n=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},r=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},o=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},i=function(n,a,r,i){if(n){var s=r.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,l=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(s),u=c?s.slice(0,c.index):s,d=[];if(u){if(!r.plainObjects&&t.call(Object.prototype,u)&&!r.allowPrototypes)return;d.push(u)}for(var m=0;r.depth>0&&null!==(c=l.exec(s))&&m<r.depth;){if(m+=1,!r.plainObjects&&t.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;d.push(c[1])}if(c){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");d.push("["+s.slice(c.index)+"]")}return function(t,n,a,r){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var s=t.slice(0,-1).join("");i=Array.isArray(n)&&n[s]?n[s].length:0}for(var l=r?n:o(n,a,i),c=t.length-1;c>=0;--c){var u,d=t[c];if("[]"===d&&a.parseArrays)u=a.allowEmptyArrays&&(""===l||a.strictNullHandling&&null===l)?[]:e.combine([],l);else{u=a.plainObjects?{__proto__:null}:{};var m="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=a.decodeDotInKeys?m.replace(/%2E/g,"."):m,f=parseInt(h,10);a.parseArrays||""!==h?!isNaN(f)&&d!==h&&String(f)===h&&f>=0&&a.parseArrays&&f<=a.arrayLimit?(u=[])[f]=l:"__proto__"!==h&&(u[h]=l):u={0:l}}l=u}return l}(d,a,r,i)}};return uc=function(s,l){var c=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var n=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(l);if(""===s||null==s)return c.plainObjects?{__proto__:null}:{};for(var u="string"==typeof s?function(i,s){var l={__proto__:null},c=s.ignoreQueryPrefix?i.replace(/^\?/,""):i;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=s.parameterLimit===1/0?void 0:s.parameterLimit,d=c.split(s.delimiter,s.throwOnLimitExceeded?u+1:u);if(s.throwOnLimitExceeded&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var m,h=-1,f=s.charset;if(s.charsetSentinel)for(m=0;m<d.length;++m)0===d[m].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[m]?f="utf-8":"utf8=%26%2310003%3B"===d[m]&&(f="iso-8859-1"),h=m,m=d.length);for(m=0;m<d.length;++m)if(m!==h){var p,g,v=d[m],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(p=s.decoder(v,a.decoder,f,"key"),g=s.strictNullHandling?null:""):(p=s.decoder(v.slice(0,b),a.decoder,f,"key"),g=e.maybeMap(o(v.slice(b+1),s,n(l[p])?l[p].length:0),function(e){return s.decoder(e,a.decoder,f,"value")})),g&&s.interpretNumericEntities&&"iso-8859-1"===f&&(g=r(String(g))),v.indexOf("[]=")>-1&&(g=n(g)?[g]:g);var w=t.call(l,p);w&&"combine"===s.duplicates?l[p]=e.combine(l[p],g):w&&"last"!==s.duplicates||(l[p]=g)}return l}(s,c):s,d=c.plainObjects?{__proto__:null}:{},m=Object.keys(u),h=0;h<m.length;++h){var f=m[h],p=i(f,u[f],c,"string"==typeof s);d=e.merge(d,p,c)}return!0===c.allowSparse?d:e.compact(d)},uc}function Kc(){if(hc)return mc;hc=1;var e=Gc(),t=qc();return mc={formats:$c(),parse:t,stringify:e}}const Yc=Te(Kc()),Xc=new class{constructor(){var e;((e,t,n)=>{t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(this,"symbol"!=typeof(e="qsOptions")?e+"":e,{arrayFormat:"brackets"})}post(e,t={}){const n=Yc.stringify({nonce:window.yaySmtpWpData.ajaxNonce,action:e,...t},this.qsOptions);return new Promise((e,t)=>{jQuery.ajax({url:window.yaySmtpWpData.YAY_ADMIN_AJAX,type:"POST",data:n,contentType:"application/x-www-form-urlencoded",timeout:2e4,success:(t,n,a)=>{e(t)},error:(e,n,a)=>{if(403===e.status)try{const t="object"==typeof e.responseJSON?e.responseJSON:JSON.parse(e.responseText);"rest_cookie_invalid_nonce"===(null==t?void 0:t.code)&&location.reload()}catch(nV){}t(new Error(n||a))}})})}async postJson(e,t={}){return await this.post(e,t)}};function Qc(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Qc(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Jc(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Qc(e))&&(a&&(a+=" "),a+=t);return a}const eu=6048e5,tu=Symbol.for("constructDateFrom");function nu(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&tu in e?e[tu](t):e instanceof Date?new e.constructor(t):new Date(t)}function au(e,t){return nu(t||e,e)}function ru(e,t,n){const a=au(e,null==n?void 0:n.in);return isNaN(t)?nu(e,NaN):t?(a.setDate(a.getDate()+t),a):a}function ou(e,t,n){const a=au(e,null==n?void 0:n.in);if(isNaN(t))return nu(e,NaN);if(!t)return a;const r=a.getDate(),o=nu(e,a.getTime());return o.setMonth(a.getMonth()+t+1,0),r>=o.getDate()?o:(a.setFullYear(o.getFullYear(),o.getMonth(),r),a)}let iu={};function su(){return iu}function lu(e,t){var n,a,r,o;const i=su(),s=(null==t?void 0:t.weekStartsOn)??(null==(a=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:a.weekStartsOn)??i.weekStartsOn??(null==(o=null==(r=i.locale)?void 0:r.options)?void 0:o.weekStartsOn)??0,l=au(e,null==t?void 0:t.in),c=l.getDay(),u=(c<s?7:0)+c-s;return l.setDate(l.getDate()-u),l.setHours(0,0,0,0),l}function cu(e,t){return lu(e,{...t,weekStartsOn:1})}function uu(e,t){const n=au(e,null==t?void 0:t.in),a=n.getFullYear(),r=nu(n,0);r.setFullYear(a+1,0,4),r.setHours(0,0,0,0);const o=cu(r),i=nu(n,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);const s=cu(i);return n.getTime()>=o.getTime()?a+1:n.getTime()>=s.getTime()?a:a-1}function du(e){const t=au(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function mu(e,...t){const n=nu.bind(null,t.find(e=>"object"==typeof e));return t.map(n)}function hu(e,t){const n=au(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function fu(e,t,n){const[a,r]=mu(null==n||n.in,e,t),o=hu(a),i=hu(r),s=+o-du(o),l=+i-du(i);return Math.round((s-l)/864e5)}function pu(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function gu(e,t){const n=au(e,null==t?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function vu(e,t){var n,a,r,o;const i=su(),s=(null==t?void 0:t.weekStartsOn)??(null==(a=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:a.weekStartsOn)??i.weekStartsOn??(null==(o=null==(r=i.locale)?void 0:r.options)?void 0:o.weekStartsOn)??0,l=au(e,null==t?void 0:t.in),c=l.getDay(),u=6+(c<s?-7:0)-(c-s);return l.setDate(l.getDate()+u),l.setHours(23,59,59,999),l}const yu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function bu(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const wu={date:bu({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:bu({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:bu({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},xu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Eu(e){return(t,n)=>{let a;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):t;a=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;a=e.values[r]||e.values[t]}return a[e.argumentCallback?e.argumentCallback(t):t]}}const Ru={ordinalNumber:(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Eu({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Eu({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Eu({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Eu({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Eu({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Cu(e){return(t,n={})=>{const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;const i=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(s,e=>e.test(i));let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(i.length)}}}const ku={ordinalNumber:(_u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(_u.matchPattern);if(!n)return null;const a=n[0],r=e.match(_u.parsePattern);if(!r)return null;let o=_u.valueCallback?_u.valueCallback(r[0]):r[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(a.length)}}),era:Cu({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Cu({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Cu({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Cu({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Cu({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var _u;const Su={code:"en-US",formatDistance:(e,t,n)=>{let a;const r=yu[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),(null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:wu,formatRelative:(e,t,n,a)=>xu[e],localize:Ru,match:ku,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Mu(e,t){const n=au(e,null==t?void 0:t.in),a=+cu(n)-+function(e){const t=uu(e,void 0),n=nu(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),cu(n)}(n);return Math.round(a/eu)+1}function Nu(e,t){var n,a,r,o;const i=au(e,null==t?void 0:t.in),s=i.getFullYear(),l=su(),c=(null==t?void 0:t.firstWeekContainsDate)??(null==(a=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:a.firstWeekContainsDate)??l.firstWeekContainsDate??(null==(o=null==(r=l.locale)?void 0:r.options)?void 0:o.firstWeekContainsDate)??1,u=nu((null==t?void 0:t.in)||e,0);u.setFullYear(s+1,0,c),u.setHours(0,0,0,0);const d=lu(u,t),m=nu((null==t?void 0:t.in)||e,0);m.setFullYear(s,0,c),m.setHours(0,0,0,0);const h=lu(m,t);return+i>=+d?s+1:+i>=+h?s:s-1}function Pu(e,t){const n=au(e,null==t?void 0:t.in),a=+lu(n,t)-+function(e,t){var n,a,r,o;const i=su(),s=(null==t?void 0:t.firstWeekContainsDate)??(null==(a=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:a.firstWeekContainsDate)??i.firstWeekContainsDate??(null==(o=null==(r=i.locale)?void 0:r.options)?void 0:o.firstWeekContainsDate)??1,l=Nu(e,t),c=nu((null==t?void 0:t.in)||e,0);return c.setFullYear(l,0,s),c.setHours(0,0,0,0),lu(c,t)}(n,t);return Math.round(a/eu)+1}function Au(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Du={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return Au("yy"===t?a%100:a,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):Au(n+1,2)},d:(e,t)=>Au(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>Au(e.getHours()%12||12,t.length),H:(e,t)=>Au(e.getHours(),t.length),m:(e,t)=>Au(e.getMinutes(),t.length),s:(e,t)=>Au(e.getSeconds(),t.length),S(e,t){const n=t.length,a=e.getMilliseconds();return Au(Math.trunc(a*Math.pow(10,n-3)),t.length)}},Tu={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return Du.y(e,t)},Y:function(e,t,n,a){const r=Nu(e,a),o=r>0?r:1-r;return"YY"===t?Au(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Au(o,t.length)},R:function(e,t){return Au(uu(e),t.length)},u:function(e,t){return Au(e.getFullYear(),t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Au(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Au(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return Du.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return Au(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=Pu(e,a);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):Au(r,t.length)},I:function(e,t,n){const a=Mu(e);return"Io"===t?n.ordinalNumber(a,{unit:"week"}):Au(a,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Du.d(e,t)},D:function(e,t,n){const a=function(e){const t=au(e,void 0);return fu(t,gu(t))+1}(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):Au(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Au(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),o=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Au(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=0===a?7:a;switch(t){case"i":return String(r);case"ii":return Au(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Du.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Du.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return"Ko"===t?n.ordinalNumber(a,{unit:"hour"}):Au(a,t.length)},k:function(e,t,n){let a=e.getHours();return 0===a&&(a=24),"ko"===t?n.ordinalNumber(a,{unit:"hour"}):Au(a,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Du.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Du.s(e,t)},S:function(e,t){return Du.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return Fu(a);case"XXXX":case"XX":return zu(a);default:return zu(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return Fu(a);case"xxxx":case"xx":return zu(a);default:return zu(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ou(a,":");default:return"GMT"+zu(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ou(a,":");default:return"GMT"+zu(a,":")}},t:function(e,t,n){return Au(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return Au(+e,t.length)}};function Ou(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),o=a%60;return 0===o?n+String(r):n+String(r)+t+Au(o,2)}function Fu(e,t){return e%60==0?(e>0?"-":"+")+Au(Math.abs(e)/60,2):zu(e,t)}function zu(e,t=""){const n=e>0?"-":"+",a=Math.abs(e);return n+Au(Math.trunc(a/60),2)+t+Au(a%60,2)}const Lu=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ju=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Vu={p:ju,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return Lu(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Lu(a,t)).replace("{{time}}",ju(r,t))}},Iu=/^D+$/,Hu=/^Y+$/,Bu=["D","DD","YY","YYYY"],Wu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Uu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$u=/^'([^]*?)'?$/,Zu=/''/g,Gu=/[a-zA-Z]/;function qu(e,t,n){var a,r,o,i,s,l,c,u;const d=su(),m=(null==n?void 0:n.locale)??d.locale??Su,h=(null==n?void 0:n.firstWeekContainsDate)??(null==(r=null==(a=null==n?void 0:n.locale)?void 0:a.options)?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??(null==(i=null==(o=d.locale)?void 0:o.options)?void 0:i.firstWeekContainsDate)??1,f=(null==n?void 0:n.weekStartsOn)??(null==(l=null==(s=null==n?void 0:n.locale)?void 0:s.options)?void 0:l.weekStartsOn)??d.weekStartsOn??(null==(u=null==(c=d.locale)?void 0:c.options)?void 0:u.weekStartsOn)??0,p=au(e,null==n?void 0:n.in);if(!function(e){return!(!pu(e)&&"number"!=typeof e||isNaN(+au(e)))}(p))throw new RangeError("Invalid time value");let g=t.match(Uu).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,Vu[t])(e,m.formatLong):e}).join("").match(Wu).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ku(e)};if(Tu[t])return{isToken:!0,value:e};if(t.match(Gu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});m.localize.preprocessor&&(g=m.localize.preprocessor(p,g));const v={firstWeekContainsDate:h,weekStartsOn:f,locale:m};return g.map(a=>{if(!a.isToken)return a.value;const r=a.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&function(e){return Hu.test(e)}(r)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&function(e){return Iu.test(e)}(r))&&function(e,t,n){const a=function(e,t,n){const a="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(a),Bu.includes(e))throw new RangeError(a)}(r,t,String(e)),(0,Tu[r[0]])(p,r,m.localize,v)}).join("")}function Ku(e){const t=e.match($u);return t?t[1].replace(Zu,"'"):e}const Yu=e=>{const t=ed(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Xu(n,t)||Ju(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&a[e]?[...r,...a[e]]:r}}},Xu=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const a=e[0],r=t.nextPart.get(a),o=r?Xu(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return null==(n=t.validators.find(({validator:e})=>e(i)))?void 0:n.classGroupId},Qu=/^\[(.+)\]$/,Ju=e=>{if(Qu.test(e)){const t=Qu.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ed=e=>{const{theme:t,classGroups:n}=e,a={nextPart:new Map,validators:[]};for(const r in n)td(n[r],a,r,t);return a},td=(e,t,n,a)=>{e.forEach(e=>{if("string"!=typeof e)return"function"==typeof e?ad(e)?void td(e(a),t,n,a):void t.validators.push({validator:e,classGroupId:n}):void Object.entries(e).forEach(([e,r])=>{td(r,nd(t,e),n,a)});(""===e?t:nd(t,e)).classGroupId=n})},nd=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},ad=e=>e.isThemeGetter,rd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(r,o)=>{n.set(r,o),t++,t>e&&(t=0,a=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=a.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},od=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=e=>{const t=[];let n,a=0,r=0,o=0;for(let l=0;l<e.length;l++){let i=e[l];if(0===a&&0===r){if(":"===i){t.push(e.slice(o,l)),o=l+1;continue}if("/"===i){n=l;continue}}"["===i?a++:"]"===i?a--:"("===i?r++:")"===i&&r--}const i=0===t.length?e:e.substring(o),s=id(i);return{modifiers:t,hasImportantModifier:s!==i,baseClassName:s,maybePostfixModifierPosition:n&&n>o?n-o:void 0}};if(t){const e=t+":",n=a;a=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=a;a=t=>n({className:t,parseClassName:e})}return a},id=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,sd=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...a.sort(),e),a=[]):a.push(e)}),n.push(...a.sort()),n}},ld=/\s+/;function cd(){let e,t,n=0,a="";for(;n<arguments.length;)(e=arguments[n++])&&(t=ud(e))&&(a&&(a+=" "),a+=t);return a}const ud=e=>{if("string"==typeof e)return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=ud(e[a]))&&(n&&(n+=" "),n+=t);return n};function dd(e,...t){let n,a,r,o=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:rd(e.cacheSize),parseClassName:od(e),sortModifiers:sd(e),...Yu(e)}))(l),a=n.cache.get,r=n.cache.set,o=i,i(s)};function i(e){const t=a(e);if(t)return t;const o=((e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],s=e.trim().split(ld);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:h}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let f=!!h,p=a(f?m.substring(0,h):m);if(!p){if(!f){l=e+(l.length>0?" "+l:l);continue}if(p=a(m),!p){l=e+(l.length>0?" "+l:l);continue}f=!1}const g=o(u).join(":"),v=d?g+"!":g,y=v+p;if(i.includes(y))continue;i.push(y);const b=r(p,f);for(let n=0;n<b.length;++n){const e=b[n];i.push(v+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return r(e,o),o}return function(){return o(cd.apply(null,arguments))}}const md=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},hd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pd=/^\d+\/\d+$/,gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xd=e=>pd.test(e),Ed=e=>!!e&&!Number.isNaN(Number(e)),Rd=e=>!!e&&Number.isInteger(Number(e)),Cd=e=>e.endsWith("%")&&Ed(e.slice(0,-1)),kd=e=>gd.test(e),_d=()=>!0,Sd=e=>vd.test(e)&&!yd.test(e),Md=()=>!1,Nd=e=>bd.test(e),Pd=e=>wd.test(e),Ad=e=>!Td(e)&&!Vd(e),Dd=e=>Zd(e,Yd,Md),Td=e=>hd.test(e),Od=e=>Zd(e,Xd,Sd),Fd=e=>Zd(e,Qd,Ed),zd=e=>Zd(e,qd,Md),Ld=e=>Zd(e,Kd,Pd),jd=e=>Zd(e,em,Nd),Vd=e=>fd.test(e),Id=e=>Gd(e,Xd),Hd=e=>Gd(e,Jd),Bd=e=>Gd(e,qd),Wd=e=>Gd(e,Yd),Ud=e=>Gd(e,Kd),$d=e=>Gd(e,em,!0),Zd=(e,t,n)=>{const a=hd.exec(e);return!!a&&(a[1]?t(a[1]):n(a[2]))},Gd=(e,t,n=!1)=>{const a=fd.exec(e);return!!a&&(a[1]?t(a[1]):n)},qd=e=>"position"===e||"percentage"===e,Kd=e=>"image"===e||"url"===e,Yd=e=>"length"===e||"size"===e||"bg-size"===e,Xd=e=>"length"===e,Qd=e=>"number"===e,Jd=e=>"family-name"===e,em=e=>"shadow"===e,tm=dd(()=>{const e=md("color"),t=md("font"),n=md("text"),a=md("font-weight"),r=md("tracking"),o=md("leading"),i=md("breakpoint"),s=md("container"),l=md("spacing"),c=md("radius"),u=md("shadow"),d=md("inset-shadow"),m=md("text-shadow"),h=md("drop-shadow"),f=md("blur"),p=md("perspective"),g=md("aspect"),v=md("ease"),y=md("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Vd,Td],w=()=>[Vd,Td,l],x=()=>[xd,"full","auto",...w()],E=()=>[Rd,"none","subgrid",Vd,Td],R=()=>["auto",{span:["full",Rd,Vd,Td]},Rd,Vd,Td],C=()=>[Rd,"auto",Vd,Td],k=()=>["auto","min","max","fr",Vd,Td],_=()=>["auto",...w()],S=()=>[xd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],M=()=>[e,Vd,Td],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Bd,zd,{position:[Vd,Td]}],P=()=>["auto","cover","contain",Wd,Dd,{size:[Vd,Td]}],A=()=>[Cd,Id,Od],D=()=>["","none","full",c,Vd,Td],T=()=>["",Ed,Id,Od],O=()=>[Ed,Cd,Bd,zd],F=()=>["","none",f,Vd,Td],z=()=>["none",Ed,Vd,Td],L=()=>["none",Ed,Vd,Td],j=()=>[Ed,Vd,Td],V=()=>[xd,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kd],breakpoint:[kd],color:[_d],container:[kd],"drop-shadow":[kd],ease:["in","out","in-out"],font:[Ad],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kd],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kd],shadow:[kd],spacing:["px",Ed],text:[kd],"text-shadow":[kd],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xd,Td,Vd,g]}],container:["container"],columns:[{columns:[Ed,Td,Vd,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Rd,"auto",Vd,Td]}],basis:[{basis:[xd,"full","auto",s,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ed,xd,"auto","initial","none",Td]}],grow:[{grow:["",Ed,Vd,Td]}],shrink:[{shrink:["",Ed,Vd,Td]}],order:[{order:[Rd,"first","last","none",Vd,Td]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[s,"screen",...S()]}],"min-w":[{"min-w":[s,"screen","none",...S()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,Id,Od]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Vd,Fd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cd,Td]}],"font-family":[{font:[Hd,Td,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Vd,Td]}],"line-clamp":[{"line-clamp":[Ed,"none",Vd,Fd]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",Vd,Td]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Vd,Td]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Ed,"from-font","auto",Vd,Od]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Ed,"auto",Vd,Td]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vd,Td]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vd,Td]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rd,Vd,Td],radial:["",Vd,Td],conic:[Rd,Vd,Td]},Ud,Ld]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Ed,Vd,Td]}],"outline-w":[{outline:["",Ed,Id,Od]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,$d,jd]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,$d,jd]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Ed,Od]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",m,$d,jd]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Ed,Vd,Td]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ed]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Vd,Td]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Ed]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Vd,Td]}],filter:[{filter:["","none",Vd,Td]}],blur:[{blur:F()}],brightness:[{brightness:[Ed,Vd,Td]}],contrast:[{contrast:[Ed,Vd,Td]}],"drop-shadow":[{"drop-shadow":["","none",h,$d,jd]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Ed,Vd,Td]}],"hue-rotate":[{"hue-rotate":[Ed,Vd,Td]}],invert:[{invert:["",Ed,Vd,Td]}],saturate:[{saturate:[Ed,Vd,Td]}],sepia:[{sepia:["",Ed,Vd,Td]}],"backdrop-filter":[{"backdrop-filter":["","none",Vd,Td]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Ed,Vd,Td]}],"backdrop-contrast":[{"backdrop-contrast":[Ed,Vd,Td]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ed,Vd,Td]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ed,Vd,Td]}],"backdrop-invert":[{"backdrop-invert":["",Ed,Vd,Td]}],"backdrop-opacity":[{"backdrop-opacity":[Ed,Vd,Td]}],"backdrop-saturate":[{"backdrop-saturate":[Ed,Vd,Td]}],"backdrop-sepia":[{"backdrop-sepia":["",Ed,Vd,Td]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Vd,Td]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ed,"initial",Vd,Td]}],ease:[{ease:["linear","initial",v,Vd,Td]}],delay:[{delay:[Ed,Vd,Td]}],animate:[{animate:["none",y,Vd,Td]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,Vd,Td]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:L()}],"scale-x":[{"scale-x":L()}],"scale-y":[{"scale-y":L()}],"scale-z":[{"scale-z":L()}],"scale-3d":["scale-3d"],skew:[{skew:j()}],"skew-x":[{"skew-x":j()}],"skew-y":[{"skew-y":j()}],transform:[{transform:[Vd,Td,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vd,Td]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vd,Td]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Ed,Id,Od,Fd]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function nm(...e){return tm(Jc(e))}const __=e=>(window.yaySmtpWpData.i18n||{})[e]||e,am=()=>window.yaySmtpWpData.importSettingsPluginList,rm=()=>window.yaySmtpWpData.importEmailLogsPluginList,om=e=>(null==e?void 0:e.from)?e.to?`${qu(e.from,"MMM dd, yyyy")} - ${qu(e.to,"MMM dd, yyyy")}`:qu(e.from,"MMM dd, yyyy"):__("Pick a date range"),im=(...e)=>e.reduce((e,t)=>(Object.keys(t).forEach(n=>{const a=e[n],r=t[n];e[n]=Array.isArray(a)&&Array.isArray(r)?a.concat(...r):a&&"object"==typeof a&&r&&"object"==typeof r?im(a,r):r}),e),{}),sm=(e,t=!1)=>{var n;if(t){const t=null==e?void 0:e.fallback_mailer_provider;if(!t||"mail"===t)return!0;const a=null==(n=null==e?void 0:e.fallback_service_provider_mailer_settings)?void 0:n[t];if("smtp"===t)return!(!e.fallback_host||!e.fallback_port);if(!a)return!1;switch(t){case"gmail":return!!(a.client_id&&a.client_secret&&a.gmail_auth_email&&a.gmail_access_token&&a.gmail_refresh_token);case"zoho":return!!(a.client_id&&a.client_secret&&a.access_token);case"outlookms":return!!(a.client_id&&a.client_secret&&a.outlookms_access_token&&a.outlookms_refresh_token);case"amazonses":return!(!a.access_key_id||!a.secret_access_key);case"mailgun":return!(!a.api_key||!a.domain);case"mailjet":return!(!a.api_key||!a.secret_key);case"mandrill":case"sendgrid":case"sendinblue":case"pepipost":case"sparkpost":case"postmark":return!!a.api_key;case"sendpulse":return!!(a.api_key&&a.secret_key&&a.access_token);case"smtpcom":return!(!a.api_key||!a.sender);default:return!1}}const a=null==e?void 0:e.currentMailer;if(!a||"mail"===a)return!0;const r=null==e?void 0:e[a];if(!r)return!1;switch(a){case"gmail":return!!(r.client_id&&r.client_secret&&r.gmail_auth_email&&r.gmail_access_token&&r.gmail_refresh_token);case"zoho":return!!(r.client_id&&r.client_secret&&r.access_token);case"outlookms":return!!(r.client_id&&r.client_secret&&r.outlookms_access_token&&r.outlookms_refresh_token);case"amazonses":return!(!r.access_key_id||!r.secret_access_key);case"mailgun":return!(!r.api_key||!r.domain);case"mailjet":case"sendpulse":return!(!r.api_key||!r.secret_key);case"mandrill":case"sendgrid":case"sendinblue":case"pepipost":case"sparkpost":case"postmark":return!!r.api_key;case"smtpcom":return!(!r.api_key||!r.sender);case"smtp":return!!(r.host&&r.port&&r.user&&r.pass);default:return!1}};async function lm(e){return await Xc.postJson("yaysmtp_delete_email_logs",{params:{ids:e}})}function cm(){const e=$t();return function(t,n){const a=e.getQueryState(["emailLogDetail",t]);"success"!==(null==a?void 0:a.status)&&e.setQueryData(["emailLogDetail",t],n)}}function um(e){return JSON.stringify(e)}function dm(e){return(null==e?void 0:e.currentMailer)||"mail"}function mm(e,t){const n=ze.useRef(null),a=ze.useRef(null),r=ze.useRef(e);ze.useEffect(()=>{r.current=e},[e]),ze.useEffect(()=>{const e=r.current.getValues();n.current=um(e),a.current=dm(e)},[t]);const o=e.watch();return{isChanged:ze.useMemo(()=>{if(null===n.current)return!1;const e=r.current.getValues();return dm(e)!==a.current||um(e)!==n.current},[o]),resetBaseline:ze.useCallback(()=>{const e=r.current.getValues();n.current=um(e),a.current=dm(e)},[])}}var hm,fm,pm;(fm=hm||(hm={})).assertEqual=e=>{},fm.assertIs=function(e){},fm.assertNever=function(_x){throw new Error},fm.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},fm.getValidEnumValues=e=>{const t=fm.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(const a of t)n[a]=e[a];return fm.objectValues(n)},fm.objectValues=e=>fm.objectKeys(e).map(function(t){return e[t]}),fm.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},fm.find=(e,t)=>{for(const n of e)if(t(n))return n},fm.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,fm.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},fm.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(pm||(pm={})).mergeShapes=(e,t)=>({...e,...t});const gm=hm.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),vm=e=>{switch(typeof e){case"undefined":return gm.undefined;case"string":return gm.string;case"number":return Number.isNaN(e)?gm.nan:gm.number;case"boolean":return gm.boolean;case"function":return gm.function;case"bigint":return gm.bigint;case"symbol":return gm.symbol;case"object":return Array.isArray(e)?gm.array:null===e?gm.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?gm.promise:"undefined"!=typeof Map&&e instanceof Map?gm.map:"undefined"!=typeof Set&&e instanceof Set?gm.set:"undefined"!=typeof Date&&e instanceof Date?gm.date:gm.object;default:return gm.unknown}},ym=hm.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class bm extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},a=e=>{for(const r of e.issues)if("invalid_union"===r.code)r.unionErrors.map(a);else if("invalid_return_type"===r.code)a(r.returnTypeError);else if("invalid_arguments"===r.code)a(r.argumentsError);else if(0===r.path.length)n._errors.push(t(r));else{let e=n,a=0;for(;a<r.path.length;){const n=r.path[a];a===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],a++}}};return a(this),n}static assert(e){if(!(e instanceof bm))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,hm.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}bm.create=e=>new bm(e);const wm=(e,t)=>{let n;switch(e.code){case ym.invalid_type:n=e.received===gm.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case ym.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,hm.jsonStringifyReplacer)}`;break;case ym.unrecognized_keys:n=`Unrecognized key(s) in object: ${hm.joinValues(e.keys,", ")}`;break;case ym.invalid_union:n="Invalid input";break;case ym.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${hm.joinValues(e.options)}`;break;case ym.invalid_enum_value:n=`Invalid enum value. Expected ${hm.joinValues(e.options)}, received '${e.received}'`;break;case ym.invalid_arguments:n="Invalid function arguments";break;case ym.invalid_return_type:n="Invalid function return type";break;case ym.invalid_date:n="Invalid date";break;case ym.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:hm.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case ym.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case ym.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case ym.custom:n="Invalid input";break;case ym.invalid_intersection_types:n="Intersection results could not be merged";break;case ym.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ym.not_finite:n="Number must be finite";break;default:n=t.defaultError,hm.assertNever(e)}return{message:n}};let xm=wm;function Em(e,t){const n=xm,a=(e=>{const{data:t,path:n,errorMaps:a,issueData:r}=e,o=[...n,...r.path||[]],i={...r,path:o};if(void 0!==r.message)return{...r,path:o,message:r.message};let s="";const l=a.filter(e=>!!e).slice().reverse();for(const c of l)s=c(i,{data:t,defaultError:s}).message;return{...r,path:o,message:s}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===wm?void 0:wm].filter(e=>!!e)});e.common.issues.push(a)}class Rm{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const a of t){if("aborted"===a.status)return Cm;"dirty"===a.status&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const a of t){const e=await a.key,t=await a.value;n.push({key:e,value:t})}return Rm.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const a of t){const{key:t,value:r}=a;if("aborted"===t.status)return Cm;if("aborted"===r.status)return Cm;"dirty"===t.status&&e.dirty(),"dirty"===r.status&&e.dirty(),"__proto__"===t.value||void 0===r.value&&!a.alwaysSet||(n[t.value]=r.value)}return{status:e.value,value:n}}}const Cm=Object.freeze({status:"aborted"}),km=e=>({status:"dirty",value:e}),_m=e=>({status:"valid",value:e}),Sm=e=>"aborted"===e.status,Mm=e=>"dirty"===e.status,Nm=e=>"valid"===e.status,Pm=e=>"undefined"!=typeof Promise&&e instanceof Promise;var Am,Dm;(Dm=Am||(Am={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},Dm.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Tm{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Om=(e,t)=>{if(Nm(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new bm(e.common.issues);return this._error=t,this._error}}};function Fm(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:a,description:r}=e;if(t&&(n||a))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:r}:{errorMap:(t,r)=>{const{message:o}=e;return"invalid_enum_value"===t.code?{message:o??r.defaultError}:void 0===r.data?{message:o??a??r.defaultError}:"invalid_type"!==t.code?{message:r.defaultError}:{message:o??n??r.defaultError}},description:r}}class zm{get description(){return this._def.description}_getType(e){return vm(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:vm(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Rm,ctx:{common:e.parent.common,data:e.data,parsedType:vm(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Pm(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:(null==t?void 0:t.async)??!1,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vm(e)},a=this._parseSync({data:e,path:n.path,parent:n});return Om(n,a)}"~validate"(e){var t,n;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vm(e)};if(!this["~standard"].async)try{const t=this._parseSync({data:e,path:[],parent:a});return Nm(t)?{value:t.value}:{issues:a.common.issues}}catch(r){(null==(n=null==(t=null==r?void 0:r.message)?void 0:t.toLowerCase())?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:a}).then(e=>Nm(e)?{value:e.value}:{issues:a.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:vm(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(Pm(a)?a:Promise.resolve(a));return Om(n,r)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,a)=>{const r=e(t),o=()=>a.addIssue({code:ym.custom,...n(t)});return"undefined"!=typeof Promise&&r instanceof Promise?r.then(e=>!!e||(o(),!1)):!!r||(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>!!e(n)||(a.addIssue("function"==typeof t?t(n,a):t),!1))}_refinement(e){return new Oh({schema:this,typeName:Wh.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Fh.create(this,this._def)}nullable(){return zh.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bh.create(this)}promise(){return Th.create(this,this._def)}or(e){return Eh.create([this,e],this._def)}and(e){return Ch.create(this,e,this._def)}transform(e){return new Oh({...Fm(this._def),schema:this,typeName:Wh.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Lh({...Fm(this._def),innerType:this,defaultValue:t,typeName:Wh.ZodDefault})}brand(){return new Ih({typeName:Wh.ZodBranded,type:this,...Fm(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new jh({...Fm(this._def),innerType:this,catchValue:t,typeName:Wh.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Hh.create(this,e)}readonly(){return Bh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Lm=/^c[^\s-]{8,}$/i,jm=/^[0-9a-z]+$/,Vm=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Im=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Hm=/^[a-z0-9_-]{21}$/i,Bm=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Wm=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Um=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let $m;const Zm=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Gm=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,qm=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Km=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ym=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Xm=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Qm="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Jm=new RegExp(`^${Qm}$`);function eh(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function th(e){return new RegExp(`^${eh(e)}$`)}function nh(e){let t=`${Qm}T${eh(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ah(e,t){return!("v4"!==t&&t||!Zm.test(e))||!("v6"!==t&&t||!qm.test(e))}function rh(e,t){if(!Bm.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(a));return!("object"!=typeof r||null===r||"typ"in r&&"JWT"!==(null==r?void 0:r.typ)||!r.alg||t&&r.alg!==t)}catch{return!1}}function oh(e,t){return!("v4"!==t&&t||!Gm.test(e))||!("v6"!==t&&t||!Km.test(e))}class ih extends zm{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==gm.string){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.string,received:t.parsedType}),Cm}const t=new Rm;let n;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const r=e.data.length>a.value,o=e.data.length<a.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?Em(n,{code:ym.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&Em(n,{code:ym.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),t.dirty())}else if("email"===a.kind)Um.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"email",code:ym.invalid_string,message:a.message}),t.dirty());else if("emoji"===a.kind)$m||($m=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),$m.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"emoji",code:ym.invalid_string,message:a.message}),t.dirty());else if("uuid"===a.kind)Im.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"uuid",code:ym.invalid_string,message:a.message}),t.dirty());else if("nanoid"===a.kind)Hm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"nanoid",code:ym.invalid_string,message:a.message}),t.dirty());else if("cuid"===a.kind)Lm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"cuid",code:ym.invalid_string,message:a.message}),t.dirty());else if("cuid2"===a.kind)jm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"cuid2",code:ym.invalid_string,message:a.message}),t.dirty());else if("ulid"===a.kind)Vm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"ulid",code:ym.invalid_string,message:a.message}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),Em(n,{validation:"url",code:ym.invalid_string,message:a.message}),t.dirty()}else"regex"===a.kind?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"regex",code:ym.invalid_string,message:a.message}),t.dirty())):"trim"===a.kind?e.data=e.data.trim():"includes"===a.kind?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),t.dirty()):"toLowerCase"===a.kind?e.data=e.data.toLowerCase():"toUpperCase"===a.kind?e.data=e.data.toUpperCase():"startsWith"===a.kind?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.invalid_string,validation:{startsWith:a.value},message:a.message}),t.dirty()):"endsWith"===a.kind?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.invalid_string,validation:{endsWith:a.value},message:a.message}),t.dirty()):"datetime"===a.kind?nh(a).test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.invalid_string,validation:"datetime",message:a.message}),t.dirty()):"date"===a.kind?Jm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.invalid_string,validation:"date",message:a.message}),t.dirty()):"time"===a.kind?th(a).test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.invalid_string,validation:"time",message:a.message}),t.dirty()):"duration"===a.kind?Wm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"duration",code:ym.invalid_string,message:a.message}),t.dirty()):"ip"===a.kind?ah(e.data,a.version)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"ip",code:ym.invalid_string,message:a.message}),t.dirty()):"jwt"===a.kind?rh(e.data,a.alg)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"jwt",code:ym.invalid_string,message:a.message}),t.dirty()):"cidr"===a.kind?oh(e.data,a.version)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"cidr",code:ym.invalid_string,message:a.message}),t.dirty()):"base64"===a.kind?Ym.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"base64",code:ym.invalid_string,message:a.message}),t.dirty()):"base64url"===a.kind?Xm.test(e.data)||(n=this._getOrReturnCtx(e,n),Em(n,{validation:"base64url",code:ym.invalid_string,message:a.message}),t.dirty()):hm.assertNever(a);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:ym.invalid_string,...Am.errToObj(n)})}_addCheck(e){return new ih({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Am.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Am.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Am.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Am.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Am.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Am.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Am.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Am.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Am.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Am.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Am.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Am.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Am.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:(null==e?void 0:e.offset)??!1,local:(null==e?void 0:e.local)??!1,...Am.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...Am.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...Am.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Am.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...Am.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Am.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Am.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Am.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Am.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Am.errToObj(t)})}nonempty(e){return this.min(1,Am.errToObj(e))}trim(){return new ih({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ih({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ih({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function sh(e,t){const n=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,r=n>a?n:a;return Number.parseInt(e.toFixed(r).replace(".",""))%Number.parseInt(t.toFixed(r).replace(".",""))/10**r}ih.create=e=>new ih({checks:[],typeName:Wh.ZodString,coerce:(null==e?void 0:e.coerce)??!1,...Fm(e)});class lh extends zm{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==gm.number){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.number,received:t.parsedType}),Cm}let t;const n=new Rm;for(const a of this._def.checks)"int"===a.kind?hm.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"multipleOf"===a.kind?0!==sh(e.data,a.value)&&(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.not_finite,message:a.message}),n.dirty()):hm.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Am.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Am.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Am.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Am.toString(t))}setLimit(e,t,n,a){return new lh({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Am.toString(a)}]})}_addCheck(e){return new lh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Am.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Am.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Am.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Am.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Am.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Am.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Am.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Am.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Am.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&hm.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}lh.create=e=>new lh({checks:[],typeName:Wh.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...Fm(e)});class ch extends zm{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==gm.bigint)return this._getInvalidInput(e);let t;const n=new Rm;for(const a of this._def.checks)"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Em(t,{code:ym.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):hm.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.bigint,received:t.parsedType}),Cm}gte(e,t){return this.setLimit("min",e,!0,Am.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Am.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Am.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Am.toString(t))}setLimit(e,t,n,a){return new ch({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Am.toString(a)}]})}_addCheck(e){return new ch({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Am.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Am.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Am.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Am.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Am.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ch.create=e=>new ch({checks:[],typeName:Wh.ZodBigInt,coerce:(null==e?void 0:e.coerce)??!1,...Fm(e)});class uh extends zm{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==gm.boolean){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.boolean,received:t.parsedType}),Cm}return _m(e.data)}}uh.create=e=>new uh({typeName:Wh.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...Fm(e)});class dh extends zm{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==gm.date){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.date,received:t.parsedType}),Cm}if(Number.isNaN(e.data.getTime()))return Em(this._getOrReturnCtx(e),{code:ym.invalid_date}),Cm;const t=new Rm;let n;for(const a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(n=this._getOrReturnCtx(e,n),Em(n,{code:ym.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):hm.assertNever(a);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new dh({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Am.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Am.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}dh.create=e=>new dh({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:Wh.ZodDate,...Fm(e)});class mh extends zm{_parse(e){if(this._getType(e)!==gm.symbol){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.symbol,received:t.parsedType}),Cm}return _m(e.data)}}mh.create=e=>new mh({typeName:Wh.ZodSymbol,...Fm(e)});class hh extends zm{_parse(e){if(this._getType(e)!==gm.undefined){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.undefined,received:t.parsedType}),Cm}return _m(e.data)}}hh.create=e=>new hh({typeName:Wh.ZodUndefined,...Fm(e)});class fh extends zm{_parse(e){if(this._getType(e)!==gm.null){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.null,received:t.parsedType}),Cm}return _m(e.data)}}fh.create=e=>new fh({typeName:Wh.ZodNull,...Fm(e)});class ph extends zm{constructor(){super(...arguments),this._any=!0}_parse(e){return _m(e.data)}}ph.create=e=>new ph({typeName:Wh.ZodAny,...Fm(e)});class gh extends zm{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _m(e.data)}}gh.create=e=>new gh({typeName:Wh.ZodUnknown,...Fm(e)});class vh extends zm{_parse(e){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.never,received:t.parsedType}),Cm}}vh.create=e=>new vh({typeName:Wh.ZodNever,...Fm(e)});class yh extends zm{_parse(e){if(this._getType(e)!==gm.undefined){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.void,received:t.parsedType}),Cm}return _m(e.data)}}yh.create=e=>new yh({typeName:Wh.ZodVoid,...Fm(e)});class bh extends zm{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==gm.array)return Em(t,{code:ym.invalid_type,expected:gm.array,received:t.parsedType}),Cm;if(null!==a.exactLength){const e=t.data.length>a.exactLength.value,r=t.data.length<a.exactLength.value;(e||r)&&(Em(t,{code:e?ym.too_big:ym.too_small,minimum:r?a.exactLength.value:void 0,maximum:e?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(null!==a.minLength&&t.data.length<a.minLength.value&&(Em(t,{code:ym.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),null!==a.maxLength&&t.data.length>a.maxLength.value&&(Em(t,{code:ym.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>a.type._parseAsync(new Tm(t,e,t.path,n)))).then(e=>Rm.mergeArray(n,e));const r=[...t.data].map((e,n)=>a.type._parseSync(new Tm(t,e,t.path,n)));return Rm.mergeArray(n,r)}get element(){return this._def.type}min(e,t){return new bh({...this._def,minLength:{value:e,message:Am.toString(t)}})}max(e,t){return new bh({...this._def,maxLength:{value:e,message:Am.toString(t)}})}length(e,t){return new bh({...this._def,exactLength:{value:e,message:Am.toString(t)}})}nonempty(e){return this.min(1,e)}}function wh(e){if(e instanceof xh){const t={};for(const n in e.shape){const a=e.shape[n];t[n]=Fh.create(wh(a))}return new xh({...e._def,shape:()=>t})}return e instanceof bh?new bh({...e._def,type:wh(e.element)}):e instanceof Fh?Fh.create(wh(e.unwrap())):e instanceof zh?zh.create(wh(e.unwrap())):e instanceof kh?kh.create(e.items.map(e=>wh(e))):e}bh.create=(e,t)=>new bh({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Wh.ZodArray,...Fm(t)});class xh extends zm{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=hm.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==gm.object){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.object,received:t.parsedType}),Cm}const{status:t,ctx:n}=this._processInputParams(e),{shape:a,keys:r}=this._getCached(),o=[];if(!(this._def.catchall instanceof vh&&"strip"===this._def.unknownKeys))for(const s in n.data)r.includes(s)||o.push(s);const i=[];for(const s of r){const e=a[s],t=n.data[s];i.push({key:{status:"valid",value:s},value:e._parse(new Tm(n,t,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof vh){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of o)i.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)o.length>0&&(Em(n,{code:ym.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const a=n.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new Tm(n,a,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of i){const n=await t.key,a=await t.value;e.push({key:n,value:a,alwaysSet:t.alwaysSet})}return e}).then(e=>Rm.mergeObjectSync(t,e)):Rm.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return Am.errToObj,new xh({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var a,r;const o=(null==(r=(a=this._def).errorMap)?void 0:r.call(a,t,n).message)??n.defaultError;return"unrecognized_keys"===t.code?{message:Am.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new xh({...this._def,unknownKeys:"strip"})}passthrough(){return new xh({...this._def,unknownKeys:"passthrough"})}extend(e){return new xh({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xh({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Wh.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xh({...this._def,catchall:e})}pick(e){const t={};for(const n of hm.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new xh({...this._def,shape:()=>t})}omit(e){const t={};for(const n of hm.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new xh({...this._def,shape:()=>t})}deepPartial(){return wh(this)}partial(e){const t={};for(const n of hm.objectKeys(this.shape)){const a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}return new xh({...this._def,shape:()=>t})}required(e){const t={};for(const n of hm.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Fh;)e=e._def.innerType;t[n]=e}return new xh({...this._def,shape:()=>t})}keyof(){return Ph(hm.objectKeys(this.shape))}}xh.create=(e,t)=>new xh({shape:()=>e,unknownKeys:"strip",catchall:vh.create(),typeName:Wh.ZodObject,...Fm(t)}),xh.strictCreate=(e,t)=>new xh({shape:()=>e,unknownKeys:"strict",catchall:vh.create(),typeName:Wh.ZodObject,...Fm(t)}),xh.lazycreate=(e,t)=>new xh({shape:e,unknownKeys:"strip",catchall:vh.create(),typeName:Wh.ZodObject,...Fm(t)});class Eh extends zm{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const a of e)if("dirty"===a.result.status)return t.common.issues.push(...a.ctx.common.issues),a.result;const n=e.map(e=>new bm(e.ctx.common.issues));return Em(t,{code:ym.invalid_union,unionErrors:n}),Cm});{let e;const a=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},r=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:n}),n.common.issues.length&&a.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const r=a.map(e=>new bm(e));return Em(t,{code:ym.invalid_union,unionErrors:r}),Cm}}get options(){return this._def.options}}function Rh(e,t){const n=vm(e),a=vm(t);if(e===t)return{valid:!0,data:e};if(n===gm.object&&a===gm.object){const n=hm.objectKeys(t),a=hm.objectKeys(e).filter(e=>-1!==n.indexOf(e)),r={...e,...t};for(const o of a){const n=Rh(e[o],t[o]);if(!n.valid)return{valid:!1};r[o]=n.data}return{valid:!0,data:r}}if(n===gm.array&&a===gm.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let a=0;a<e.length;a++){const r=Rh(e[a],t[a]);if(!r.valid)return{valid:!1};n.push(r.data)}return{valid:!0,data:n}}return n===gm.date&&a===gm.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}Eh.create=(e,t)=>new Eh({options:e,typeName:Wh.ZodUnion,...Fm(t)});class Ch extends zm{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=(e,a)=>{if(Sm(e)||Sm(a))return Cm;const r=Rh(e.value,a.value);return r.valid?((Mm(e)||Mm(a))&&t.dirty(),{status:t.value,value:r.data}):(Em(n,{code:ym.invalid_intersection_types}),Cm)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>a(e,t)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Ch.create=(e,t,n)=>new Ch({left:e,right:t,typeName:Wh.ZodIntersection,...Fm(n)});class kh extends zm{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==gm.array)return Em(n,{code:ym.invalid_type,expected:gm.array,received:n.parsedType}),Cm;if(n.data.length<this._def.items.length)return Em(n,{code:ym.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Cm;!this._def.rest&&n.data.length>this._def.items.length&&(Em(n,{code:ym.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...n.data].map((e,t)=>{const a=this._def.items[t]||this._def.rest;return a?a._parse(new Tm(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(a).then(e=>Rm.mergeArray(t,e)):Rm.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new kh({...this._def,rest:e})}}kh.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new kh({items:e,typeName:Wh.ZodTuple,rest:null,...Fm(t)})};class _h extends zm{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==gm.map)return Em(n,{code:ym.invalid_type,expected:gm.map,received:n.parsedType}),Cm;const a=this._def.keyType,r=this._def.valueType,o=[...n.data.entries()].map(([e,t],o)=>({key:a._parse(new Tm(n,e,n.path,[o,"key"])),value:r._parse(new Tm(n,t,n.path,[o,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of o){const a=await n.key,r=await n.value;if("aborted"===a.status||"aborted"===r.status)return Cm;"dirty"!==a.status&&"dirty"!==r.status||t.dirty(),e.set(a.value,r.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of o){const a=n.key,r=n.value;if("aborted"===a.status||"aborted"===r.status)return Cm;"dirty"!==a.status&&"dirty"!==r.status||t.dirty(),e.set(a.value,r.value)}return{status:t.value,value:e}}}}_h.create=(e,t,n)=>new _h({valueType:t,keyType:e,typeName:Wh.ZodMap,...Fm(n)});class Sh extends zm{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==gm.set)return Em(n,{code:ym.invalid_type,expected:gm.set,received:n.parsedType}),Cm;const a=this._def;null!==a.minSize&&n.data.size<a.minSize.value&&(Em(n,{code:ym.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),null!==a.maxSize&&n.data.size>a.maxSize.value&&(Em(n,{code:ym.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const r=this._def.valueType;function o(e){const n=new Set;for(const a of e){if("aborted"===a.status)return Cm;"dirty"===a.status&&t.dirty(),n.add(a.value)}return{status:t.value,value:n}}const i=[...n.data.values()].map((e,t)=>r._parse(new Tm(n,e,n.path,t)));return n.common.async?Promise.all(i).then(e=>o(e)):o(i)}min(e,t){return new Sh({...this._def,minSize:{value:e,message:Am.toString(t)}})}max(e,t){return new Sh({...this._def,maxSize:{value:e,message:Am.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Sh.create=(e,t)=>new Sh({valueType:e,minSize:null,maxSize:null,typeName:Wh.ZodSet,...Fm(t)});class Mh extends zm{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Mh.create=(e,t)=>new Mh({getter:e,typeName:Wh.ZodLazy,...Fm(t)});class Nh extends zm{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Em(t,{received:t.data,code:ym.invalid_literal,expected:this._def.value}),Cm}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Ph(e,t){return new Ah({values:e,typeName:Wh.ZodEnum,...Fm(t)})}Nh.create=(e,t)=>new Nh({value:e,typeName:Wh.ZodLiteral,...Fm(t)});class Ah extends zm{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Em(t,{expected:hm.joinValues(n),received:t.parsedType,code:ym.invalid_type}),Cm}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Em(t,{received:t.data,code:ym.invalid_enum_value,options:n}),Cm}return _m(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ah.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ah.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}Ah.create=Ph;class Dh extends zm{_parse(e){const t=hm.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==gm.string&&n.parsedType!==gm.number){const e=hm.objectValues(t);return Em(n,{expected:hm.joinValues(e),received:n.parsedType,code:ym.invalid_type}),Cm}if(this._cache||(this._cache=new Set(hm.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=hm.objectValues(t);return Em(n,{received:n.data,code:ym.invalid_enum_value,options:e}),Cm}return _m(e.data)}get enum(){return this._def.values}}Dh.create=(e,t)=>new Dh({values:e,typeName:Wh.ZodNativeEnum,...Fm(t)});class Th extends zm{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==gm.promise&&!1===t.common.async)return Em(t,{code:ym.invalid_type,expected:gm.promise,received:t.parsedType}),Cm;const n=t.parsedType===gm.promise?t.data:Promise.resolve(t.data);return _m(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Th.create=(e,t)=>new Th({type:e,typeName:Wh.ZodPromise,...Fm(t)});class Oh extends zm{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Wh.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:e=>{Em(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),"preprocess"===a.type){const e=a.transform(n.data,r);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return Cm;const a=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===a.status?Cm:"dirty"===a.status||"dirty"===t.value?km(a.value):a});{if("aborted"===t.value)return Cm;const a=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===a.status?Cm:"dirty"===a.status||"dirty"===t.value?km(a.value):a}}if("refinement"===a.type){const e=e=>{const t=a.refinement(e,r);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===a.status?Cm:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?Cm:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===a.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Nm(e))return Cm;const o=a.transform(e.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>Nm(e)?Promise.resolve(a.transform(e.value,r)).then(e=>({status:t.value,value:e})):Cm)}hm.assertNever(a)}}Oh.create=(e,t,n)=>new Oh({schema:e,typeName:Wh.ZodEffects,effect:t,...Fm(n)}),Oh.createWithPreprocess=(e,t,n)=>new Oh({schema:t,effect:{type:"preprocess",transform:e},typeName:Wh.ZodEffects,...Fm(n)});class Fh extends zm{_parse(e){return this._getType(e)===gm.undefined?_m(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Fh.create=(e,t)=>new Fh({innerType:e,typeName:Wh.ZodOptional,...Fm(t)});class zh extends zm{_parse(e){return this._getType(e)===gm.null?_m(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}zh.create=(e,t)=>new zh({innerType:e,typeName:Wh.ZodNullable,...Fm(t)});class Lh extends zm{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===gm.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Lh.create=(e,t)=>new Lh({innerType:e,typeName:Wh.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Fm(t)});class jh extends zm{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Pm(a)?a.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new bm(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new bm(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}jh.create=(e,t)=>new jh({innerType:e,typeName:Wh.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Fm(t)});class Vh extends zm{_parse(e){if(this._getType(e)!==gm.nan){const t=this._getOrReturnCtx(e);return Em(t,{code:ym.invalid_type,expected:gm.nan,received:t.parsedType}),Cm}return{status:"valid",value:e.data}}}Vh.create=e=>new Vh({typeName:Wh.ZodNaN,...Fm(e)});class Ih extends zm{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Hh extends zm{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Cm:"dirty"===e.status?(t.dirty(),km(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Cm:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Hh({in:e,out:t,typeName:Wh.ZodPipeline})}}class Bh extends zm{_parse(e){const t=this._def.innerType._parse(e),n=e=>(Nm(e)&&(e.value=Object.freeze(e.value)),e);return Pm(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}var Wh,Uh;Bh.create=(e,t)=>new Bh({innerType:e,typeName:Wh.ZodReadonly,...Fm(t)}),(Uh=Wh||(Wh={})).ZodString="ZodString",Uh.ZodNumber="ZodNumber",Uh.ZodNaN="ZodNaN",Uh.ZodBigInt="ZodBigInt",Uh.ZodBoolean="ZodBoolean",Uh.ZodDate="ZodDate",Uh.ZodSymbol="ZodSymbol",Uh.ZodUndefined="ZodUndefined",Uh.ZodNull="ZodNull",Uh.ZodAny="ZodAny",Uh.ZodUnknown="ZodUnknown",Uh.ZodNever="ZodNever",Uh.ZodVoid="ZodVoid",Uh.ZodArray="ZodArray",Uh.ZodObject="ZodObject",Uh.ZodUnion="ZodUnion",Uh.ZodDiscriminatedUnion="ZodDiscriminatedUnion",Uh.ZodIntersection="ZodIntersection",Uh.ZodTuple="ZodTuple",Uh.ZodRecord="ZodRecord",Uh.ZodMap="ZodMap",Uh.ZodSet="ZodSet",Uh.ZodFunction="ZodFunction",Uh.ZodLazy="ZodLazy",Uh.ZodLiteral="ZodLiteral",Uh.ZodEnum="ZodEnum",Uh.ZodEffects="ZodEffects",Uh.ZodNativeEnum="ZodNativeEnum",Uh.ZodOptional="ZodOptional",Uh.ZodNullable="ZodNullable",Uh.ZodDefault="ZodDefault",Uh.ZodCatch="ZodCatch",Uh.ZodPromise="ZodPromise",Uh.ZodBranded="ZodBranded",Uh.ZodPipeline="ZodPipeline",Uh.ZodReadonly="ZodReadonly";const $h=ih.create,Zh=lh.create;ch.create;const Gh=uh.create;dh.create,vh.create;const qh=bh.create,Kh=xh.create;Eh.create,Ch.create,kh.create;const Yh=Ah.create;Th.create,Fh.create,zh.create;const Xh=Yh(["mail","smtp","sendgrid","sendinblue","gmail","zoho","mailgun","smtpcom","amazonses","postmark","sparkpost","mailjet","pepipost","sendpulse","outlookms","mandrill"]),Qh=Yh(["yes","no"]),Jh=lh.create({..._f,coerce:!0}).int().min(0).max(1),ef=Yh(["0","1"]),tf=Kh({client_id:$h(),client_secret:$h(),auth_code:$h(),access_token:Gh(),refresh_token:Gh(),created_at:Zh(),expires_in:Zh(),token_client_id:$h(),token_client_secret:$h(),data_center:$h(),token_type:$h()}),nf=Kh({client_id:$h(),client_secret:$h(),gmail_auth_code:$h(),gmail_auth_email:$h(),gmail_refresh_token:Gh(),gmail_access_token:Gh()}),af=Kh({api_key:$h(),domain:$h(),region:$h()}),rf=Kh({api_key:$h(),secret_key:$h()}),of=Kh({client_id:$h(),client_secret:$h(),outlookms_auth_code:$h(),outlookms_access_token:Gh(),outlookms_refresh_token:Gh(),outlookms_auth_email:Kh({name:$h(),email:$h().email()})}),sf=Kh({host:$h(),encryption:$h(),port:$h(),auth:$h(),user:$h(),pass:$h()}),lf=Kh({region:$h(),access_key_id:$h(),secret_access_key:$h()}),cf=Kh({api_key:$h()}),uf=Kh({api_key:$h()}),df=Kh({api_key:$h()}),mf=Kh({api_key:$h()}),hf=Kh({api_key:$h(),region:$h()}),ff=Kh({api_key:$h()}),pf=Kh({api_key:$h(),secret_key:$h(),access_token:$h(),created_at:Zh()}),gf=Kh({api_key:$h(),sender:$h()}),vf=Kh({fromEmail:$h().email("Please enter a valid email address"),fromName:$h(),forceFromEmail:ef,forceFromName:ef,succ_sent_mail_last:Gh(),allowMultisite:Qh,flagImpotedSettsSmtp:Qh}),yf=Kh({mandrill:cf.partial().optional(),sendgrid:uf.partial().optional(),sendinblue:df.partial().optional(),amazonses:lf.partial().optional(),gmail:nf.partial().optional(),mailgun:af.partial().optional(),mailjet:rf.partial().optional(),pepipost:mf.partial().optional(),sparkpost:hf.partial().optional(),postmark:ff.partial().optional(),sendpulse:pf.partial().optional(),smtpcom:gf.partial().optional(),smtp:sf.partial().optional()}),bf=Kh({zoho:tf.partial().optional(),outlookms:of.partial().optional()}),wf=Kh({disable_emails_delivery:Qh.optional(),mail_report_choose:Qh.optional(),mail_report_type:Yh(["weekly","monthly"]).optional(),uninstall_flag:Qh.optional(),fallback_has_setting_mail:Qh.optional(),fallback_from_email:$h().email("Please enter a valid email address").optional(),fallback_from_name:$h().optional(),fallback_force_from_email:Qh.optional(),fallback_force_from_name:Qh.optional(),fallback_auth:Qh.optional(),fallback_auth_type:$h().optional(),fallback_host:$h().optional(),fallback_port:$h().optional(),fallback_smtp_user:$h().optional(),fallback_smtp_pass:$h().optional(),fallback_mailer_provider:Xh.optional(),fallback_service_provider_mailer_settings:yf.partial().optional()}),xf=Kh({currentMailer:Xh.optional(),...vf.partial().shape,...yf.partial().shape,...bf.partial().shape,...wf.partial().shape}),Ef=Kh({save_email_log:Qh,email_log_inf_type:Yh(["full_inf","basic_inf"]),email_log_delete_time:$h(),email_opened:Qh,email_clicked_links:Qh}),Rf=Kh({show_status_cl:Jh,show_subject_cl:Jh,show_to_cl:Jh,show_datetime_cl:Jh,show_action_cl:Jh}),Cf=Kh({...Ef.partial().shape,...Rf.partial().shape}),kf=Kh({gmail:$h().optional(),gmail_fallback:$h().optional(),outlookms:$h().optional(),zoho:$h().optional()});var _f;Kh({fieldsDisplay:qh($h()),from:$h(),to:$h(),searchKey:$h(),searchValue:$h()}),Kh({yaysmtpSettings:xf,yaysmtpLogSettings:Cf.partial(),authUrl:kf.partial()}),Kh({authUrl:kf.partial(),is_multisite_mode:Qh.optional()});const Sf=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Mf=Jc,Nf=(e,t)=>n=>{var a;if(null==(null==t?void 0:t.variants))return Mf(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:r,defaultVariants:o}=t,i=Object.keys(r).map(e=>{const t=null==n?void 0:n[e],a=null==o?void 0:o[e];if(null===t)return null;const i=Sf(t)||Sf(a);return r[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,a]=t;return void 0===a||(e[n]=a),e},{}),l=null==t||null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let{class:n,className:a,...r}=t;return Object.entries(r).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...s}[t]):{...o,...s}[t]===n})?[...e,n,a]:e},[]);return Mf(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)},Pf=Nf("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function Af({className:e,variant:t,...n}){return ze.createElement("div",{"data-slot":"alert",role:"alert",className:nm(Pf({variant:t}),e),...n})}function Df({className:e,...t}){return ze.createElement("div",{"data-slot":"alert-description",className:nm("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-normal",e),...t})}function Tf(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Of(...e){return t=>{let n=!1;const a=e.map(e=>{const a=Tf(e,t);return n||"function"!=typeof a||(n=!0),a});if(n)return()=>{for(let t=0;t<a.length;t++){const n=a[t];"function"==typeof n?n():Tf(e[t],null)}}}}function Ff(...e){return ze.useCallback(Of(...e),e)}function zf(e){const t=jf(e),n=ze.forwardRef((e,n)=>{const{children:a,...r}=e,o=ze.Children.toArray(a),i=o.find(Hf);if(i){const e=i.props.children,a=o.map(t=>t===i?ze.Children.count(e)>1?ze.Children.only(null):ze.isValidElement(e)?e.props.children:null:t);return Wt.jsx(t,{...r,ref:n,children:ze.isValidElement(e)?ze.cloneElement(e,void 0,a):null})}return Wt.jsx(t,{...r,ref:n,children:a})});return n.displayName=`${e}.Slot`,n}var Lf=zf("Slot");function jf(e){const t=ze.forwardRef((e,t)=>{const{children:n,...a}=e;if(ze.isValidElement(n)){const e=function(e){var t,n;let a=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?e.ref:(a=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(n),r=function(e,t){const n={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?n[a]=(...e)=>{const t=o(...e);return r(...e),t}:r&&(n[a]=r):"style"===a?n[a]={...r,...o}:"className"===a&&(n[a]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props);return n.type!==ze.Fragment&&(r.ref=t?Of(t,e):e),ze.cloneElement(n,r)}return ze.Children.count(n)>1?ze.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vf=Symbol("radix.slottable");function If(e){const t=({children:e})=>Wt.jsx(Wt.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Vf,t}function Hf(e){return ze.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Vf}const Bf=Nf("inline-flex items-center justify-center rounded-full border h-5 px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:"hover:bg-[#F2F5F9] text-foreground bg-transparent focus-visible:text-primary",link:"text-foreground hover:text-primary underline-offset-4 hover:underline",muted:"bg-muted text-muted-foreground hover:bg-muted-accent",primary:"border-transparent bg-primary text-primary-foreground hover:bg-primary-accent","primary-soft":"border-transparent bg-primary/6 text-primary hover:text-primary-accent","primary-outline":"border border-primary text-primary hover:border-primary-accent hover:text-primary-accent",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive-accent ring-destructive/50 hover:ring-destructive-accent/50","destructive-soft":"border-transparent bg-destructive/6 text-destructive hover:text-destructive-accent ring-destructive/50 hover:ring-destructive-accent/50","destructive-outline":"border border-destructive text-destructive hover:border-destructive-accent hover:text-destructive-accent ring-destructive/50 hover:ring-destructive-accent/50",success:"border-transparent bg-success text-success-foreground hover:bg-success-accent ring-success/50 hover:ring-success-accent/50","success-soft":"border-transparent bg-success/6 text-success hover:text-success-accent ring-success/50 hover:ring-success-accent/50","success-outline":"border border-success text-success hover:border-success-accent hover:text-success-accent ring-success/50 hover:ring-success-accent/50",warning:"border-transparent bg-warning text-warning-foreground hover:bg-warning-accent ring-warning/50 hover:ring-warning-accent/50","warning-soft":"border-transparent bg-warning/6 text-warning hover:text-warning-accent ring-warning/50 hover:ring-warning-accent/50","warning-outline":"border border-warning text-warning hover:border-warning-accent hover:text-warning-accent ring-warning/50 hover:ring-warning-accent/50"}},defaultVariants:{variant:"primary"}});function Wf({className:e,variant:t,asChild:n=!1,...a}){const r=n?Lf:"span";return ze.createElement(r,{"data-slot":"badge",className:nm(Bf({variant:t}),e),...a})}const Uf=Nf("focus-visible:ring-offset-2 focus-visible:ring-[1.5px] aria-invalid:ring-destructive aria-invalid:border-destructive",{variants:{variant:{primary:"",destructive:"ring-destructive hover:ring-destructive-accent",warning:"ring-warning hover:ring-warning-accent",success:"ring-success hover:ring-success-accent",none:"focus-visible:ring-offset-0 focus-visible:ring-0"}},defaultVariants:{variant:"primary"}}),$f=Nf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none",{variants:{variant:{disabled:"border bg-accent text-[#C7C7CA] pointer-events-none dark:bg-input/30 dark:border-input dark:hover:bg-input/50",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:"hover:bg-[#F2F5F9] text-foreground bg-transparent focus-visible:text-primary",link:"text-foreground hover:text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground shadow-xs hover:bg-primary-accent","primary-soft":"bg-primary/6 text-primary hover:text-primary-accent","primary-outline":"border border-primary text-primary hover:border-primary-accent hover:text-primary-accent",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive-accent","destructive-soft":"bg-destructive/6 text-destructive hover:text-destructive-accent","destructive-outline":"border border-destructive text-destructive hover:border-destructive-accent hover:text-destructive-accent",success:"bg-success text-success-foreground shadow-xs hover:bg-success-accent","success-soft":"bg-success/6 text-success hover:text-success-accent","success-outline":"border border-success text-success hover:border-success-accent hover:text-success-accent",warning:"bg-warning text-warning-foreground shadow-xs hover:bg-warning-accent","warning-soft":"bg-warning/6 text-warning hover:text-warning-accent","warning-outline":"border border-warning text-warning hover:border-warning-accent hover:text-warning-accent"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"primary",size:"default"}}),Zf=ze.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,type:r="button",...o},i)=>{const s=a?Lf:"button";return ze.createElement(s,{"data-slot":"button",className:nm(Uf({variant:Gf(t)}),$f({variant:t,size:n,className:e})),type:r,...o,ref:i})});function Gf(e){return"destructive"===e||"destructive-outline"===e||"destructive-soft"===e?"destructive":"success"===e||"success-outline"===e||"success-soft"===e?"success":"warning"===e||"warning-outline"===e||"warning-soft"===e?"warning":"primary"}function qf({className:e,...t}){return ze.createElement("div",{"data-slot":"card",className:nm("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Kf({className:e,...t}){return ze.createElement("div",{"data-slot":"card-header",className:nm("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Yf({className:e,...t}){return ze.createElement("div",{"data-slot":"card-title",className:nm("leading-none font-semibold",e),...t})}function Xf({className:e,...t}){return ze.createElement("div",{"data-slot":"card-content",className:nm("px-6",e),...t})}var Qf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=zf(`Primitive.${t}`),a=ze.forwardRef((e,a)=>{const{asChild:r,...o}=e,i=r?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),Wt.jsx(i,{...o,ref:a})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Jf(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}var ep=ze.forwardRef((e,t)=>Wt.jsx(Qf.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));ep.displayName="Label";var tp=ep;function np({className:e,...t}){return ze.createElement(tp,{"data-slot":"label",className:nm("flex items-center gap-1 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const ap=e=>{const{children:t,...n}=e;return Le.createElement(wo.Provider,{value:n},t)},rp=ze.createContext({}),op=({...e})=>ze.createElement(rp.Provider,{value:{name:e.name}},ze.createElement(No,{...e})),ip=()=>{const e=ze.useContext(rp),t=ze.useContext(sp),{getFieldState:n}=xo(),a=Co({name:e.name}),r=n(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...r}},sp=ze.createContext({});function lp({className:e,...t}){const n=ze.useId();return ze.createElement(sp.Provider,{value:{id:n}},ze.createElement("div",{"data-slot":"form-item",className:nm("grid gap-2",e),...t}))}function cp({className:e,...t}){const{error:n,formItemId:a}=ip();return ze.createElement(np,{"data-slot":"form-label","data-error":!!n,className:nm("text-xs",e),htmlFor:a,...t})}function up({...e}){const{error:t,formItemId:n,formDescriptionId:a,formMessageId:r}=ip();return ze.createElement(Lf,{"data-slot":"form-control",id:n,"aria-describedby":t?`${a} ${r}`:`${a}`,"aria-invalid":!!t,...e})}function dp({className:e,...t}){const{formDescriptionId:n}=ip();return ze.createElement("p",{"data-slot":"form-description",id:n,className:nm("text-muted-foreground text-xs",e),...t})}function mp({className:e,...t}){const{error:n,formMessageId:a}=ip(),r=n?String((null==n?void 0:n.message)??""):t.children;return r?ze.createElement("p",{"data-slot":"form-message",id:a,className:nm("text-destructive text-xs",e),...t},r):null}const hp=ze.forwardRef(({className:e,type:t,...n},a)=>ze.createElement("input",{type:t,"data-slot":"input",className:nm("file:text-foreground focus-visible:border-foreground focus-visible:hover:border-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input hover:border-foreground flex h-9 w-full min-w-0 rounded-sm border bg-transparent p-2 pl-3 text-base shadow-xs transition-all outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus:shadow-none focus-visible:shadow-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...n,ref:a}));function fp(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(null==e||e(a),!1===n||!a.defaultPrevented)return null==t?void 0:t(a)}}function pp(e,t=[]){let n=[];const a=()=>{const t=n.map(e=>ze.createContext(e));return function(n){const a=(null==n?void 0:n[e])||t;return ze.useMemo(()=>({[`__scope${e}`]:{...n,[e]:a}}),[n,a])}};return a.scopeName=e,[function(t,a){const r=ze.createContext(a),o=n.length;n=[...n,a];const i=t=>{var n;const{scope:a,children:i,...s}=t,l=(null==(n=null==a?void 0:a[e])?void 0:n[o])||r,c=ze.useMemo(()=>s,Object.values(s));return Wt.jsx(l.Provider,{value:c,children:i})};return i.displayName=t+"Provider",[i,function(n,i){var s;const l=(null==(s=null==i?void 0:i[e])?void 0:s[o])||r,c=ze.useContext(l);if(c)return c;if(void 0!==a)return a;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},gp(a,...t)]}function gp(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const a=n.reduce((t,{useScope:n,scopeName:a})=>({...t,...n(e)[`__scope${a}`]}),{});return ze.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var vp=(null==globalThis?void 0:globalThis.document)?ze.useLayoutEffect:()=>{},yp=je[" useInsertionEffect ".trim().toString()]||vp;function bp({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[r,o,i]=function({defaultProp:e,onChange:t}){const[n,a]=ze.useState(e),r=ze.useRef(n),o=ze.useRef(t);return yp(()=>{o.current=t},[t]),ze.useEffect(()=>{var e;r.current!==n&&(null==(e=o.current)||e.call(o,n),r.current=n)},[n,r]),[n,a,o]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:r;{const t=ze.useRef(void 0!==e);ze.useEffect(()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${a} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,a])}const c=ze.useCallback(t=>{var n;if(s){const a=function(e){return"function"==typeof e}(t)?t(e):t;a!==e&&(null==(n=i.current)||n.call(i,a))}else o(t)},[s,e,o,i]);return[l,c]}function wp(e){const t=ze.useRef({value:e,previous:e});return ze.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function xp(e){const[t,n]=ze.useState(void 0);return vp(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const a=t[0];let r,o;if("borderBoxSize"in a){const e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var Ep="Switch",[Rp,Cp]=pp(Ep),[kp,_p]=Rp(Ep),Sp=ze.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:r,defaultChecked:o,required:i,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[m,h]=ze.useState(null),f=Ff(t,e=>h(e)),p=ze.useRef(!1),g=!m||u||!!m.closest("form"),[v,y]=bp({prop:r,defaultProp:o??!1,onChange:c,caller:Ep});return Wt.jsxs(kp,{scope:n,checked:v,disabled:s,children:[Wt.jsx(Qf.button,{type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":Ap(v),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:f,onClick:fp(e.onClick,e=>{y(e=>!e),g&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})}),g&&Wt.jsx(Pp,{control:m,bubbles:!p.current,name:a,value:l,checked:v,required:i,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});Sp.displayName=Ep;var Mp="SwitchThumb",Np=ze.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,r=_p(Mp,n);return Wt.jsx(Qf.span,{"data-state":Ap(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:t})});Np.displayName=Mp;var Pp=ze.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...r},o)=>{const i=ze.useRef(null),s=Ff(i,o),l=wp(n),c=xp(t);return ze.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}},[l,n,a]),Wt.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...r.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Ap(e){return e?"checked":"unchecked"}Pp.displayName="SwitchBubbleInput";var Dp=Sp,Tp=Np;const Op=Nf("",{variants:{size:{default:"h-6 w-11",sm:"h-5 w-9",lg:"h-7 w-13"}},defaultVariants:{size:"default"}});function Fp({className:e,loading:t=!1,size:n,...a}){return ze.createElement(Dp,{"data-slot":"switch",className:nm(Uf(),Op({size:n}),"peer dark:data-[state=unchecked]:bg-input/80 inline-flex shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","data-[state=unchecked]:bg-input data-[state=unchecked]:hover:bg-input-accent","data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary-accent",e),...a},ze.createElement(Tp,{"data-slot":"switch-thumb","data-size":n??"default",className:nm("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full shadow-sm ring-0 transition-transform data-[size=default]:size-5 data-[size=lg]:size-6 data-[size=sm]:size-4 data-[state=checked]:translate-x-full data-[state=unchecked]:translate-x-0")},t?ze.createElement(Rs,{className:"text-primary h-4 w-4 animate-spin"}):null))}var zp=.999,Lp=/[\\\/_+.#"@\[\(\{&]/,jp=/[\\\/_+.#"@\[\(\{&]/g,Vp=/[\s-]/,Ip=/[\s-]/g;function Hp(e,t,n,a,r,o,i){if(o===t.length)return r===e.length?1:.99;var s=`${r},${o}`;if(void 0!==i[s])return i[s];for(var l,c,u,d,m=a.charAt(o),h=n.indexOf(m,r),f=0;h>=0;)(l=Hp(e,t,n,a,h+1,o+1,i))>f&&(h===r?l*=1:Lp.test(e.charAt(h-1))?(l*=.8,(u=e.slice(r,h-1).match(jp))&&r>0&&(l*=Math.pow(zp,u.length))):Vp.test(e.charAt(h-1))?(l*=.9,(d=e.slice(r,h-1).match(Ip))&&r>0&&(l*=Math.pow(zp,d.length))):(l*=.17,r>0&&(l*=Math.pow(zp,h-r))),e.charAt(h)!==t.charAt(o)&&(l*=.9999)),(l<.1&&n.charAt(h-1)===a.charAt(o+1)||a.charAt(o+1)===a.charAt(o)&&n.charAt(h-1)!==a.charAt(o))&&.1*(c=Hp(e,t,n,a,h+1,o+2,i))>l&&(l=.1*c),l>f&&(f=l),h=n.indexOf(m,h+1);return i[s]=f,f}function Bp(e){return e.toLowerCase().replace(Ip," ")}function Wp(e,t,n){return Hp(e=n&&n.length>0?e+" "+n.join(" "):e,t,Bp(e),Bp(t),0,0,{})}var Up=je[" useId ".trim().toString()]||(()=>{}),$p=0;function Zp(e){const[t,n]=ze.useState(Up());return vp(()=>{n(e=>e??String($p++))},[e]),e||(t?`radix-${t}`:"")}function Gp(e){const t=ze.useRef(e);return ze.useEffect(()=>{t.current=e}),ze.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}var qp,Kp="dismissableLayer.update",Yp=ze.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xp=ze.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=ze.useContext(Yp),[u,d]=ze.useState(null),m=(null==u?void 0:u.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=ze.useState({}),f=Ff(t,e=>d(e)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g),y=u?p.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=Gp(e),a=ze.useRef(!1),r=ze.useRef(()=>{});return ze.useEffect(()=>{const e=e=>{if(e.target&&!a.current){let a=function(){Jp("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=a,t.addEventListener("click",r.current,{once:!0})):a()}else t.removeEventListener("click",r.current);a.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}(e=>{const t=e.target,n=[...c.branches].some(e=>e.contains(t));w&&!n&&(null==r||r(e),null==i||i(e),e.defaultPrevented||null==s||s())},m),E=function(e,t=(null==globalThis?void 0:globalThis.document)){const n=Gp(e),a=ze.useRef(!1);return ze.useEffect(()=>{const e=e=>{e.target&&!a.current&&Jp("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{const t=e.target;[...c.branches].some(e=>e.contains(t))||(null==o||o(e),null==i||i(e),e.defaultPrevented||null==s||s())},m);return function(e,t=(null==globalThis?void 0:globalThis.document)){const n=Gp(e);ze.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===c.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},m),ze.useEffect(()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(qp=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Qp(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=qp)}},[u,m,n,c]),ze.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Qp())},[u,c]),ze.useEffect(()=>{const e=()=>h({});return document.addEventListener(Kp,e),()=>document.removeEventListener(Kp,e)},[]),Wt.jsx(Qf.div,{...l,ref:f,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:fp(e.onFocusCapture,E.onFocusCapture),onBlurCapture:fp(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:fp(e.onPointerDownCapture,x.onPointerDownCapture)})});function Qp(){const e=new CustomEvent(Kp);document.dispatchEvent(e)}function Jp(e,t,n,{discrete:a}){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),a?Jf(r,o):r.dispatchEvent(o)}Xp.displayName="DismissableLayer",ze.forwardRef((e,t)=>{const n=ze.useContext(Yp),a=ze.useRef(null),r=Ff(t,a);return ze.useEffect(()=>{const e=a.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),Wt.jsx(Qf.div,{...e,ref:r})}).displayName="DismissableLayerBranch";var eg="focusScope.autoFocusOnMount",tg="focusScope.autoFocusOnUnmount",ng={bubbles:!1,cancelable:!0},ag=ze.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:r,onUnmountAutoFocus:o,...i}=e,[s,l]=ze.useState(null),c=Gp(r),u=Gp(o),d=ze.useRef(null),m=Ff(t,e=>l(e)),h=ze.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ze.useEffect(()=>{if(a){let e=function(e){if(h.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:sg(d.current,{select:!0})},t=function(e){if(h.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||sg(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&sg(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const a=new MutationObserver(n);return s&&a.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),a.disconnect()}}},[a,s,h.paused]),ze.useEffect(()=>{if(s){lg.add(h);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(eg,ng);s.addEventListener(eg,c),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(sg(a,{select:t}),document.activeElement!==n)return}(rg(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&sg(s))}return()=>{s.removeEventListener(eg,c),setTimeout(()=>{const t=new CustomEvent(tg,ng);s.addEventListener(tg,u),s.dispatchEvent(t),t.defaultPrevented||sg(e??document.body,{select:!0}),s.removeEventListener(tg,u),lg.remove(h)},0)}}},[s,c,u,h]);const f=ze.useCallback(e=>{if(!n&&!a)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[a,o]=function(e){const t=rg(e);return[og(t,e),og(t.reverse(),e)]}(t);a&&o?e.shiftKey||r!==o?e.shiftKey&&r===a&&(e.preventDefault(),n&&sg(o,{select:!0})):(e.preventDefault(),n&&sg(a,{select:!0})):r===t&&e.preventDefault()}},[n,a,h.paused]);return Wt.jsx(Qf.div,{tabIndex:-1,...i,ref:m,onKeyDown:f})});function rg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function og(e,t){for(const n of e)if(!ig(n,{upTo:t}))return n}function ig(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function sg(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}ag.displayName="FocusScope";var lg=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=cg(e,t),e.unshift(t)},remove(t){var n;e=cg(e,t),null==(n=e[0])||n.resume()}}}();function cg(e,t){const n=[...e],a=n.indexOf(t);return-1!==a&&n.splice(a,1),n}var ug=ze.forwardRef((e,t)=>{var n;const{container:a,...r}=e,[o,i]=ze.useState(!1);vp(()=>i(!0),[]);const s=a||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?Yr.createPortal(Wt.jsx(Qf.div,{...r,ref:t}),s):null});ug.displayName="Portal";var dg=e=>{const{present:t,children:n}=e,a=function(e){const[t,n]=ze.useState(),a=ze.useRef(null),r=ze.useRef(e),o=ze.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return ze.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ze.useEffect(()=>{const e=mg(a.current);o.current="mounted"===s?e:"none"},[s]),vp(()=>{const t=a.current,n=r.current;if(n!==e){const a=o.current,i=mg(t);e?l("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?l("UNMOUNT"):l(n&&a!==i?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),vp(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=o=>{const i=mg(a.current).includes(o.animationName);if(o.target===t&&i&&(l("ANIMATION_END"),!r.current)){const a=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=a)})}},s=e=>{e.target===t&&(o.current=mg(a.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:ze.useCallback(e=>{a.current=e?getComputedStyle(e):null,n(e)},[])}}(t),r="function"==typeof n?n({present:a.isPresent}):ze.Children.only(n),o=Ff(a.ref,function(e){var t,n;let a=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?e.ref:(a=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(r));return"function"==typeof n||a.isPresent?ze.cloneElement(r,{ref:o}):null};function mg(e){return(null==e?void 0:e.animationName)||"none"}dg.displayName="Presence";var hg=0;function fg(){ze.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pg()),document.body.insertAdjacentElement("beforeend",e[1]??pg()),hg++,()=>{1===hg&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),hg--}},[])}function pg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gg=function(){return gg=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},gg.apply(this,arguments)};function vg(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var yg="right-scroll-bar-position",bg="width-before-scroll-bar";function wg(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var xg="undefined"!=typeof window?ze.useLayoutEffect:ze.useEffect,Eg=new WeakMap;function Rg(e){return e}var Cg=function(e){var t=e.sideCar,n=vg(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return ze.createElement(a,gg({},n))};Cg.isSideCarExport=!0;var kg=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Rg);var n=[],a=!1;return{read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}();return t.options=gg({async:!0,ssr:!1},e),t}(),_g=function(){},Sg=ze.forwardRef(function(e,t){var n=ze.useRef(null),a=ze.useState({onScrollCapture:_g,onWheelCapture:_g,onTouchMoveCapture:_g}),r=a[0],o=a[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,m=e.sideCar,h=e.noRelative,f=e.noIsolation,p=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=vg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,E=function(e){var t,n,a=(t=function(t){return e.forEach(function(e){return wg(e,t)})},(n=ze.useState(function(){return{value:null,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0]).callback=t,n.facade);return xg(function(){var t=Eg.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||wg(e,null)}),r.forEach(function(e){n.has(e)||wg(e,o)})}Eg.set(a,e)},[e]),a}([n,t]),R=gg(gg({},w),r);return ze.createElement(ze.Fragment,null,u&&ze.createElement(x,{sideCar:kg,removeScrollBar:c,shards:d,noRelative:h,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:b}),i?ze.cloneElement(ze.Children.only(s),gg(gg({},R),{ref:E})):ze.createElement(y,gg({},R,{className:l,ref:E}),s))});Sg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Sg.classNames={fullWidth:bg,zeroRight:yg};var Mg=function(){var e=0,t=null;return{add:function(n){var a,r;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}())&&(r=n,(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ng=function(){var e,t=(e=Mg(),function(t,n){ze.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,a=e.dynamic;return t(n,a),null}},Pg={left:0,top:0,right:0,gap:0},Ag=function(e){return parseInt(e||"",10)||0},Dg=Ng(),Tg="data-scroll-locked",Og=function(e,t,n,a){var r=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(a,";\n   padding-right: ").concat(s,"px ").concat(a,";\n  }\n  body[").concat(Tg,"] {\n    overflow: hidden ").concat(a,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(a,";"),"margin"===n&&"\n    padding-left: ".concat(r,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(a,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(a,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(yg," {\n    right: ").concat(s,"px ").concat(a,";\n  }\n  \n  .").concat(bg," {\n    margin-right: ").concat(s,"px ").concat(a,";\n  }\n  \n  .").concat(yg," .").concat(yg," {\n    right: 0 ").concat(a,";\n  }\n  \n  .").concat(bg," .").concat(bg," {\n    margin-right: 0 ").concat(a,";\n  }\n  \n  body[").concat(Tg,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Fg=function(){var e=parseInt(document.body.getAttribute(Tg)||"0",10);return isFinite(e)?e:0},zg=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,r=void 0===a?"margin":a;ze.useEffect(function(){return document.body.setAttribute(Tg,(Fg()+1).toString()),function(){var e=Fg()-1;e<=0?document.body.removeAttribute(Tg):document.body.setAttribute(Tg,e.toString())}},[]);var o=ze.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Pg;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],a=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[Ag(n),Ag(a),Ag(r)]}(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}}(r)},[r]);return ze.createElement(Dg,{styles:Og(o,!t,r,n?"":"!important")})},Lg=!1;if("undefined"!=typeof window)try{var jg=Object.defineProperty({},"passive",{get:function(){return Lg=!0,!0}});window.addEventListener("test",jg,jg),window.removeEventListener("test",jg,jg)}catch(aV){Lg=!1}var Vg=!!Lg&&{passive:!1},Ig=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Hg=function(e,t){var n=t.ownerDocument,a=t;do{if("undefined"!=typeof ShadowRoot&&a instanceof ShadowRoot&&(a=a.host),Bg(e,a)){var r=Wg(e,a);if(r[1]>r[2])return!0}a=a.parentNode}while(a&&a!==n.body);return!1},Bg=function(e,t){return"v"===e?function(e){return Ig(e,"overflowY")}(t):function(e){return Ig(e,"overflowX")}(t)},Wg=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Ug=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$g=function(e){return[e.deltaX,e.deltaY]},Zg=function(e){return e&&"current"in e?e.current:e},Gg=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},qg=0,Kg=[];function Yg(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xg=(Qg=function(e){var t=ze.useRef([]),n=ze.useRef([0,0]),a=ze.useRef(),r=ze.useState(qg++)[0],o=ze.useState(Ng)[0],i=ze.useRef(e);ze.useEffect(function(){i.current=e},[e]),ze.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Zg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ze.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var r,o=Ug(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var m=Hg(d,u);if(!m)return!0;if(m?r=d:(r="v"===d?"h":"v",m=Hg(d,u)),!m)return!1;if(!a.current&&"changedTouches"in e&&(l||c)&&(a.current=r),!r)return!0;var h=a.current||r;return function(e,t,n,a){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=r*a,i=n.target,s=t.contains(i),l=!1,c=o>0,u=0,d=0;do{if(!i)break;var m=Wg(e,i),h=m[0],f=m[1]-m[2]-r*h;(h||f)&&Bg(e,i)&&(u+=f,d+=h);var p=i.parentNode;i=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),l=ze.useCallback(function(e){var n=e;if(Kg.length&&Kg[Kg.length-1]===o){var a="deltaY"in n?$g(n):Ug(n),r=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,r=a,t[0]===r[0]&&t[1]===r[1]);var t,r})[0];if(r&&r.should)n.cancelable&&n.preventDefault();else if(!r){var l=(i.current.shards||[]).map(Zg).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),c=ze.useCallback(function(e,n,a,r){var o={name:e,delta:n,target:a,should:r,shadowParent:Yg(a)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=ze.useCallback(function(e){n.current=Ug(e),a.current=void 0},[]),d=ze.useCallback(function(t){c(t.type,$g(t),t.target,s(t,e.lockRef.current))},[]),m=ze.useCallback(function(t){c(t.type,Ug(t),t.target,s(t,e.lockRef.current))},[]);ze.useEffect(function(){return Kg.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Vg),document.addEventListener("touchmove",l,Vg),document.addEventListener("touchstart",u,Vg),function(){Kg=Kg.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,Vg),document.removeEventListener("touchmove",l,Vg),document.removeEventListener("touchstart",u,Vg)}},[]);var h=e.removeScrollBar,f=e.inert;return ze.createElement(ze.Fragment,null,f?ze.createElement(o,{styles:Gg(r)}):null,h?ze.createElement(zg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},kg.useMedium(Qg),Cg);var Qg,Jg=ze.forwardRef(function(e,t){return ze.createElement(Sg,gg({},e,{ref:t,sideCar:Xg}))});Jg.classNames=Sg.classNames;var ev=new WeakMap,tv=new WeakMap,nv={},av=0,rv=function(e){return e&&(e.host||rv(e.parentNode))},ov=function(e,t,n){void 0===n&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),function(e,t,n,a){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=rv(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);nv[n]||(nv[n]=new WeakMap);var o=nv[n],i=[],s=new Set,l=new Set(r),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(a),r=null!==t&&"false"!==t,l=(ev.get(e)||0)+1,c=(o.get(e)||0)+1;ev.set(e,l),o.set(e,c),i.push(e),1===l&&r&&tv.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(a,"true")}catch(nV){console.error("aria-hidden: cannot operate on ",e,nV)}})};return u(t),s.clear(),av++,function(){i.forEach(function(e){var t=ev.get(e)-1,r=o.get(e)-1;ev.set(e,t),o.set(e,r),t||(tv.has(e)||e.removeAttribute(a),tv.delete(e)),r||e.removeAttribute(n)}),--av||(ev=new WeakMap,ev=new WeakMap,tv=new WeakMap,nv={})}}(a,r,n,"aria-hidden")):function(){return null}},iv="Dialog",[sv,lv]=pp(iv),[cv,uv]=sv(iv),dv=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:r,onOpenChange:o,modal:i=!0}=e,s=ze.useRef(null),l=ze.useRef(null),[c,u]=bp({prop:a,defaultProp:r??!1,onChange:o,caller:iv});return Wt.jsx(cv,{scope:t,triggerRef:s,contentRef:l,contentId:Zp(),titleId:Zp(),descriptionId:Zp(),open:c,onOpenChange:u,onOpenToggle:ze.useCallback(()=>u(e=>!e),[u]),modal:i,children:n})};dv.displayName=iv;var mv="DialogTrigger",hv=ze.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=uv(mv,n),o=Ff(t,r.triggerRef);return Wt.jsx(Qf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Tv(r.open),...a,ref:o,onClick:fp(e.onClick,r.onOpenToggle)})});hv.displayName=mv;var fv="DialogPortal",[pv,gv]=sv(fv,{forceMount:void 0}),vv=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:r}=e,o=uv(fv,t);return Wt.jsx(pv,{scope:t,forceMount:n,children:ze.Children.map(a,e=>Wt.jsx(dg,{present:n||o.open,children:Wt.jsx(ug,{asChild:!0,container:r,children:e})}))})};vv.displayName=fv;var yv="DialogOverlay",bv=ze.forwardRef((e,t)=>{const n=gv(yv,e.__scopeDialog),{forceMount:a=n.forceMount,...r}=e,o=uv(yv,e.__scopeDialog);return o.modal?Wt.jsx(dg,{present:a||o.open,children:Wt.jsx(xv,{...r,ref:t})}):null});bv.displayName=yv;var wv=zf("DialogOverlay.RemoveScroll"),xv=ze.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=uv(yv,n);return Wt.jsx(Jg,{as:wv,allowPinchZoom:!0,shards:[r.contentRef],children:Wt.jsx(Qf.div,{"data-state":Tv(r.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),Ev="DialogContent",Rv=ze.forwardRef((e,t)=>{const n=gv(Ev,e.__scopeDialog),{forceMount:a=n.forceMount,...r}=e,o=uv(Ev,e.__scopeDialog);return Wt.jsx(dg,{present:a||o.open,children:o.modal?Wt.jsx(Cv,{...r,ref:t}):Wt.jsx(kv,{...r,ref:t})})});Rv.displayName=Ev;var Cv=ze.forwardRef((e,t)=>{const n=uv(Ev,e.__scopeDialog),a=ze.useRef(null),r=Ff(t,n.contentRef,a);return ze.useEffect(()=>{const e=a.current;if(e)return ov(e)},[]),Wt.jsx(_v,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fp(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:fp(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:fp(e.onFocusOutside,e=>e.preventDefault())})}),kv=ze.forwardRef((e,t)=>{const n=uv(Ev,e.__scopeDialog),a=ze.useRef(!1),r=ze.useRef(!1);return Wt.jsx(_v,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(a.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),_v=ze.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:o,...i}=e,s=uv(Ev,n),l=ze.useRef(null),c=Ff(t,l);return fg(),Wt.jsxs(Wt.Fragment,{children:[Wt.jsx(ag,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:o,children:Wt.jsx(Xp,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tv(s.open),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),Wt.jsxs(Wt.Fragment,{children:[Wt.jsx(Lv,{titleId:s.titleId}),Wt.jsx(jv,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Sv="DialogTitle",Mv=ze.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=uv(Sv,n);return Wt.jsx(Qf.h2,{id:r.titleId,...a,ref:t})});Mv.displayName=Sv;var Nv="DialogDescription",Pv=ze.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=uv(Nv,n);return Wt.jsx(Qf.p,{id:r.descriptionId,...a,ref:t})});Pv.displayName=Nv;var Av="DialogClose",Dv=ze.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,r=uv(Av,n);return Wt.jsx(Qf.button,{type:"button",...a,ref:t,onClick:fp(e.onClick,()=>r.onOpenChange(!1))})});function Tv(e){return e?"open":"closed"}Dv.displayName=Av;var Ov="DialogTitleWarning",[Fv,zv]=function(e,t){const n=ze.createContext(t),a=e=>{const{children:t,...a}=e,r=ze.useMemo(()=>a,Object.values(a));return Wt.jsx(n.Provider,{value:r,children:t})};return a.displayName=e+"Provider",[a,function(a){const r=ze.useContext(n);if(r)return r;if(void 0!==t)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}]}(Ov,{contentName:Ev,titleName:Sv,docsSlug:"dialog"}),Lv=({titleId:e})=>{const t=zv(Ov),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return ze.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},jv=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zv("DialogDescriptionWarning").contentName}}.`;return ze.useEffect(()=>{var a;const r=null==(a=e.current)?void 0:a.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Vv=dv,Iv=hv,Hv=vv,Bv=bv,Wv=Rv,Uv=Mv,$v=Pv,Zv=Dv,Gv='[cmdk-group=""]',qv='[cmdk-group-items=""]',Kv='[cmdk-item=""]',Yv=`${Kv}:not([aria-disabled="true"])`,Xv="cmdk-item-select",Qv="data-value",Jv=(e,t,n)=>Wp(e,t,n),ey=ze.createContext(void 0),ty=()=>ze.useContext(ey),ny=ze.createContext(void 0),ay=()=>ze.useContext(ny),ry=ze.createContext(void 0),oy=ze.forwardRef((e,t)=>{let n=by(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=by(()=>new Set),r=by(()=>new Map),o=by(()=>new Map),i=by(()=>new Set),s=vy(e),{label:l,children:c,value:u,onValueChange:d,filter:m,shouldFilter:h,loop:f,disablePointerSelection:p=!1,vimBindings:g=!0,...v}=e,y=Zp(),b=Zp(),w=Zp(),x=ze.useRef(null),E=Ey();yy(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,R.emit()}},[u]),yy(()=>{E(6,N)},[]);let R=ze.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,a)=>{var r,o,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)M(),_(),E(1,S);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(r=document.getElementById(y))||r.focus()}if(E(7,()=>{var e;n.current.selectedItemId=null==(e=P())?void 0:e.id,R.emit()}),a||E(5,N),void 0!==(null==(o=s.current)?void 0:o.value)){let e=null!=t?t:"";return void(null==(l=(i=s.current).onValueChange)||l.call(i,e))}}R.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),C=ze.useMemo(()=>({value:(e,t,a)=>{var r;t!==(null==(r=o.current.get(e))?void 0:r.value)&&(o.current.set(e,{value:t,keywords:a}),n.current.filtered.items.set(e,k(t,a)),E(2,()=>{_(),R.emit()}))},item:(e,t)=>(a.current.add(e),t&&(r.current.has(t)?r.current.get(t).add(e):r.current.set(t,new Set([e]))),E(3,()=>{M(),_(),n.current.value||S(),R.emit()}),()=>{o.current.delete(e),a.current.delete(e),n.current.filtered.items.delete(e);let t=P();E(4,()=>{M(),(null==t?void 0:t.getAttribute("id"))===e&&S(),R.emit()})}),group:e=>(r.current.has(e)||r.current.set(e,new Set),()=>{o.current.delete(e),r.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:y,inputId:w,labelId:b,listInnerRef:x}),[]);function k(e,t){var a,r;let o=null!=(r=null==(a=s.current)?void 0:a.filter)?r:Jv;return e?o(e,n.current.search,t):0}function _(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let a=r.current.get(n),o=0;a.forEach(t=>{let n=e.get(t);o=Math.max(n,o)}),t.push([n,o])});let a=x.current;A().sort((t,n)=>{var a,r;let o=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(a=e.get(i))?a:0)-(null!=(r=e.get(o))?r:0)}).forEach(e=>{let t=e.closest(qv);t?t.appendChild(e.parentElement===t?e:e.closest(`${qv} > *`)):a.appendChild(e.parentElement===a?e:e.closest(`${qv} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=x.current)?void 0:t.querySelector(`${Gv}[${Qv}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function S(){let e=A().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(Qv);R.setState("value",t||void 0)}function M(){var e,t,i,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=a.current.size);n.current.filtered.groups=new Set;let c=0;for(let r of a.current){let a=k(null!=(t=null==(e=o.current.get(r))?void 0:e.value)?t:"",null!=(l=null==(i=o.current.get(r))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(r,a),a>0&&c++}for(let[a,o]of r.current)for(let e of o)if(n.current.filtered.items.get(e)>0){n.current.filtered.groups.add(a);break}n.current.filtered.count=c}function N(){var e,t,n;let a=P();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(n=null==(t=a.closest(Gv))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=x.current)?void 0:e.querySelector(`${Kv}[aria-selected="true"]`)}function A(){var e;return Array.from((null==(e=x.current)?void 0:e.querySelectorAll(Yv))||[])}function D(e){let t=A()[e];t&&R.setState("value",t.getAttribute(Qv))}function T(e){var t;let n=P(),a=A(),r=a.findIndex(e=>e===n),o=a[r+e];null!=(t=s.current)&&t.loop&&(o=r+e<0?a[a.length-1]:r+e===a.length?a[0]:a[r+e]),o&&R.setState("value",o.getAttribute(Qv))}function O(e){let t,n=P(),a=null==n?void 0:n.closest(Gv);for(;a&&!t;)a=e>0?py(a,Gv):gy(a,Gv),t=null==a?void 0:a.querySelector(Yv);t?R.setState("value",t.getAttribute(Qv)):T(e)}let F=()=>D(A().length-1),z=e=>{e.preventDefault(),e.metaKey?F():e.altKey?O(1):T(1)},L=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?O(-1):T(-1)};return ze.createElement(Qf.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=v.onKeyDown)||t.call(v,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!n)switch(e.key){case"n":case"j":g&&e.ctrlKey&&z(e);break;case"ArrowDown":z(e);break;case"p":case"k":g&&e.ctrlKey&&L(e);break;case"ArrowUp":L(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),F();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(Xv);t.dispatchEvent(e)}}}}},ze.createElement("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:Cy},l),Ry(e,e=>ze.createElement(ny.Provider,{value:R},ze.createElement(ey.Provider,{value:C},e))))}),iy=ze.forwardRef((e,t)=>{var n,a;let r=Zp(),o=ze.useRef(null),i=ze.useContext(ry),s=ty(),l=vy(e),c=null!=(a=null==(n=l.current)?void 0:n.forceMount)?a:null==i?void 0:i.forceMount;yy(()=>{if(!c)return s.item(r,null==i?void 0:i.id)},[c]);let u=xy(r,o,[e.value,e.children,o],e.keywords),d=ay(),m=wy(e=>e.value&&e.value===u.current),h=wy(e=>!(!c&&!1!==s.filter())||!e.search||e.filtered.items.get(r)>0);function f(){var e,t;p(),null==(t=(e=l.current).onSelect)||t.call(e,u.current)}function p(){d.setState("value",u.current,!0)}if(ze.useEffect(()=>{let t=o.current;if(t&&!e.disabled)return t.addEventListener(Xv,f),()=>t.removeEventListener(Xv,f)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:g,value:v,onSelect:y,forceMount:b,keywords:w,...x}=e;return ze.createElement(Qf.div,{ref:Of(o,t),...x,id:r,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!m,"data-disabled":!!g,"data-selected":!!m,onPointerMove:g||s.getDisablePointerSelection()?void 0:p,onClick:g?void 0:f},e.children)}),sy=ze.forwardRef((e,t)=>{let{heading:n,children:a,forceMount:r,...o}=e,i=Zp(),s=ze.useRef(null),l=ze.useRef(null),c=Zp(),u=ty(),d=wy(e=>!(!r&&!1!==u.filter())||!e.search||e.filtered.groups.has(i));yy(()=>u.group(i),[]),xy(i,s,[e.value,e.heading,l]);let m=ze.useMemo(()=>({id:i,forceMount:r}),[r]);return ze.createElement(Qf.div,{ref:Of(s,t),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&ze.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Ry(e,e=>ze.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},ze.createElement(ry.Provider,{value:m},e))))}),ly=ze.forwardRef((e,t)=>{let{alwaysRender:n,...a}=e,r=ze.useRef(null),o=wy(e=>!e.search);return n||o?ze.createElement(Qf.div,{ref:Of(r,t),...a,"cmdk-separator":"",role:"separator"}):null}),cy=ze.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,r=null!=e.value,o=ay(),i=wy(e=>e.search),s=wy(e=>e.selectedItemId),l=ty();return ze.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),ze.createElement(Qf.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:r?e.value:i,onChange:e=>{r||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),uy=ze.forwardRef((e,t)=>{let{children:n,label:a="Suggestions",...r}=e,o=ze.useRef(null),i=ze.useRef(null),s=wy(e=>e.selectedItemId),l=ty();return ze.useEffect(()=>{if(i.current&&o.current){let e,t=i.current,n=o.current,a=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return a.observe(t),()=>{cancelAnimationFrame(e),a.unobserve(t)}}},[]),ze.createElement(Qf.div,{ref:Of(o,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":a,id:l.listId},Ry(e,e=>ze.createElement("div",{ref:Of(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),dy=ze.forwardRef((e,t)=>{let{open:n,onOpenChange:a,overlayClassName:r,contentClassName:o,container:i,...s}=e;return ze.createElement(Vv,{open:n,onOpenChange:a},ze.createElement(Hv,{container:i},ze.createElement(Bv,{"cmdk-overlay":"",className:r}),ze.createElement(Wv,{"aria-label":e.label,"cmdk-dialog":"",className:o},ze.createElement(oy,{ref:t,...s}))))}),my=ze.forwardRef((e,t)=>wy(e=>0===e.filtered.count)?ze.createElement(Qf.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),hy=ze.forwardRef((e,t)=>{let{progress:n,children:a,label:r="Loading...",...o}=e;return ze.createElement(Qf.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Ry(e,e=>ze.createElement("div",{"aria-hidden":!0},e)))}),fy=Object.assign(oy,{List:uy,Item:iy,Input:cy,Group:sy,Separator:ly,Dialog:dy,Empty:my,Loading:hy});function py(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function gy(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function vy(e){let t=ze.useRef(e);return yy(()=>{t.current=e}),t}var yy="undefined"==typeof window?ze.useEffect:ze.useLayoutEffect;function by(e){let t=ze.useRef();return void 0===t.current&&(t.current=e()),t}function wy(e){let t=ay(),n=()=>e(t.snapshot());return ze.useSyncExternalStore(t.subscribe,n,n)}function xy(e,t,n,a=[]){let r=ze.useRef(),o=ty();return yy(()=>{var i;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():r.current}})(),l=a.map(e=>e.trim());o.value(e,s,l),null==(i=t.current)||i.setAttribute(Qv,s),r.current=s}),r}var Ey=()=>{let[e,t]=ze.useState(),n=by(()=>new Map);return yy(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,a)=>{n.current.set(e,a),t({})}};function Ry({asChild:e,children:t},n){return e&&ze.isValidElement(t)?ze.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var Cy={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ky({...e}){return ze.createElement(Vv,{"data-slot":"dialog",...e})}function _y({...e}){return ze.createElement(Hv,{"data-slot":"dialog-portal",...e})}ze.forwardRef(({...e},t)=>ze.createElement(Iv,{ref:t,"data-slot":"dialog-trigger",...e}));const Sy=ze.forwardRef(({className:e,...t},n)=>ze.createElement(Bv,{ref:n,"data-slot":"dialog-overlay",className:nm("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t}));function My({className:e,children:t,showCloseButton:n=!0,...a}){return ze.createElement(_y,{"data-slot":"dialog-portal"},ze.createElement(Sy,null),ze.createElement(Wv,{"data-slot":"dialog-content",className:nm("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...a},t,n&&ze.createElement(Zv,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},ze.createElement(ks,null),ze.createElement("span",{className:"sr-only"},"Close"))))}function Ny({className:e,...t}){return ze.createElement("div",{"data-slot":"dialog-header",className:nm("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Py({className:e,...t}){return ze.createElement("div",{"data-slot":"dialog-footer",className:nm("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Ay({className:e,...t}){return ze.createElement(Uv,{"data-slot":"dialog-title",className:nm("text-lg leading-none font-semibold",e),...t})}function Dy({className:e,...t}){return ze.createElement($v,{"data-slot":"dialog-description",className:nm("text-muted-foreground text-sm",e),...t})}function Ty({className:e,...t}){return ze.createElement(fy,{"data-slot":"command",className:nm("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Oy({className:e,...t}){return ze.createElement("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3"},ze.createElement(Ji,{className:"size-4 shrink-0 opacity-50"}),ze.createElement(fy.Input,{"data-slot":"command-input",className:nm("placeholder:text-muted-foreground flex h-10 w-full rounded-md !border-none !bg-transparent py-3 text-sm outline-hidden focus:!shadow-none disabled:cursor-not-allowed disabled:opacity-50",e),...t}))}function Fy({className:e,...t}){return ze.createElement(fy.List,{"data-slot":"command-list",className:nm("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function zy({...e}){return ze.createElement(fy.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ly({className:e,...t}){return ze.createElement(fy.Group,{"data-slot":"command-group",className:nm("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function jy({className:e,...t}){return ze.createElement(fy.Item,{"data-slot":"command-item",className:nm("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}const Vy=["top","right","bottom","left"],Iy=Math.min,Hy=Math.max,By=Math.round,Wy=Math.floor,Uy=e=>({x:e,y:e}),$y={left:"right",right:"left",bottom:"top",top:"bottom"},Zy={start:"end",end:"start"};function Gy(e,t,n){return Hy(e,Iy(t,n))}function qy(e,t){return"function"==typeof e?e(t):e}function Ky(e){return e.split("-")[0]}function Yy(e){return e.split("-")[1]}function Xy(e){return"x"===e?"y":"x"}function Qy(e){return"y"===e?"height":"width"}const Jy=new Set(["top","bottom"]);function eb(e){return Jy.has(Ky(e))?"y":"x"}function tb(e){return Xy(eb(e))}function nb(e){return e.replace(/start|end/g,e=>Zy[e])}const ab=["left","right"],rb=["right","left"],ob=["top","bottom"],ib=["bottom","top"];function sb(e){return e.replace(/left|right|bottom|top/g,e=>$y[e])}function lb(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function cb(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function ub(e,t,n){let{reference:a,floating:r}=e;const o=eb(t),i=tb(t),s=Qy(i),l=Ky(t),c="y"===o,u=a.x+a.width/2-r.width/2,d=a.y+a.height/2-r.height/2,m=a[s]/2-r[s]/2;let h;switch(l){case"top":h={x:u,y:a.y-r.height};break;case"bottom":h={x:u,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:d};break;case"left":h={x:a.x-r.width,y:d};break;default:h={x:a.x,y:a.y}}switch(Yy(t)){case"start":h[i]-=m*(n&&c?-1:1);break;case"end":h[i]+=m*(n&&c?-1:1)}return h}async function db(e,t){var n;void 0===t&&(t={});const{x:a,y:r,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=qy(t,e),f=lb(h),p=s[m?"floating"===d?"reference":"floating":d],g=cb(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(p)))||n?p:p.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:a,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=cb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+f.top)/b.y,bottom:(w.bottom-g.bottom+f.bottom)/b.y,left:(g.left-w.left+f.left)/b.x,right:(w.right-g.right+f.right)/b.x}}function mb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hb(e){return Vy.some(t=>e[t]>=0)}const fb=new Set(["left","top"]);function pb(){return"undefined"!=typeof window}function gb(e){return bb(e)?(e.nodeName||"").toLowerCase():"#document"}function vb(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yb(e){var t;return null==(t=(bb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function bb(e){return!!pb()&&(e instanceof Node||e instanceof vb(e).Node)}function wb(e){return!!pb()&&(e instanceof Element||e instanceof vb(e).Element)}function xb(e){return!!pb()&&(e instanceof HTMLElement||e instanceof vb(e).HTMLElement)}function Eb(e){return!(!pb()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vb(e).ShadowRoot)}const Rb=new Set(["inline","contents"]);function Cb(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=zb(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!Rb.has(r)}const kb=new Set(["table","td","th"]);function _b(e){return kb.has(gb(e))}const Sb=[":popover-open",":modal"];function Mb(e){return Sb.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Nb=["transform","translate","scale","rotate","perspective"],Pb=["transform","translate","scale","rotate","perspective","filter"],Ab=["paint","layout","strict","content"];function Db(e){const t=Tb(),n=wb(e)?zb(e):e;return Nb.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Pb.some(e=>(n.willChange||"").includes(e))||Ab.some(e=>(n.contain||"").includes(e))}function Tb(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ob=new Set(["html","body","#document"]);function Fb(e){return Ob.has(gb(e))}function zb(e){return vb(e).getComputedStyle(e)}function Lb(e){return wb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jb(e){if("html"===gb(e))return e;const t=e.assignedSlot||e.parentNode||Eb(e)&&e.host||yb(e);return Eb(t)?t.host:t}function Vb(e){const t=jb(e);return Fb(t)?e.ownerDocument?e.ownerDocument.body:e.body:xb(t)&&Cb(t)?t:Vb(t)}function Ib(e,t,n){var a;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Vb(e),o=r===(null==(a=e.ownerDocument)?void 0:a.body),i=vb(r);if(o){const e=Hb(i);return t.concat(i,i.visualViewport||[],Cb(r)?r:[],e&&n?Ib(e):[])}return t.concat(r,Ib(r,[],n))}function Hb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bb(e){const t=zb(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=xb(e),o=r?e.offsetWidth:n,i=r?e.offsetHeight:a,s=By(n)!==o||By(a)!==i;return s&&(n=o,a=i),{width:n,height:a,$:s}}function Wb(e){return wb(e)?e:e.contextElement}function Ub(e){const t=Wb(e);if(!xb(t))return Uy(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:o}=Bb(t);let i=(o?By(n.width):n.width)/a,s=(o?By(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const $b=Uy(0);function Zb(e){const t=vb(e);return Tb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$b}function Gb(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),o=Wb(e);let i=Uy(1);t&&(a?wb(a)&&(i=Ub(a)):i=Ub(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vb(e))&&t}(o,n,a)?Zb(o):Uy(0);let l=(r.left+s.x)/i.x,c=(r.top+s.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(o){const e=vb(o),t=a&&wb(a)?vb(a):a;let n=e,r=Hb(n);for(;r&&a&&t!==n;){const e=Ub(r),t=r.getBoundingClientRect(),a=zb(r),o=t.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=vb(r),r=Hb(n)}}return cb({width:u,height:d,x:l,y:c})}function qb(e,t){const n=Lb(e).scrollLeft;return t?t.left+n:Gb(yb(e)).left+n}function Kb(e,t,n){void 0===n&&(n=!1);const a=e.getBoundingClientRect();return{x:a.left+t.scrollLeft-(n?0:qb(e,a)),y:a.top+t.scrollTop}}const Yb=new Set(["absolute","fixed"]);function Xb(e,t,n){let a;if("viewport"===t)a=function(e,t){const n=vb(e),a=yb(e),r=n.visualViewport;let o=a.clientWidth,i=a.clientHeight,s=0,l=0;if(r){o=r.width,i=r.height;const e=Tb();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)a=function(e){const t=yb(e),n=Lb(e),a=e.ownerDocument.body,r=Hy(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=Hy(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-n.scrollLeft+qb(e);const s=-n.scrollTop;return"rtl"===zb(a).direction&&(i+=Hy(t.clientWidth,a.clientWidth)-r),{width:r,height:o,x:i,y:s}}(yb(e));else if(wb(t))a=function(e,t){const n=Gb(e,!0,"fixed"===t),a=n.top+e.clientTop,r=n.left+e.clientLeft,o=xb(e)?Ub(e):Uy(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:r*o.x,y:a*o.y}}(t,n);else{const n=Zb(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return cb(a)}function Qb(e,t){const n=jb(e);return!(n===t||!wb(n)||Fb(n))&&("fixed"===zb(n).position||Qb(n,t))}function Jb(e,t,n){const a=xb(t),r=yb(t),o="fixed"===n,i=Gb(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Uy(0);function c(){l.x=qb(r)}if(a||!a&&!o)if(("body"!==gb(t)||Cb(r))&&(s=Lb(t)),a){const e=Gb(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();o&&!a&&r&&c();const u=!r||a||o?Uy(0):Kb(r,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function ew(e){return"static"===zb(e).position}function tw(e,t){if(!xb(e)||"fixed"===zb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return yb(e)===n&&(n=n.ownerDocument.body),n}function nw(e,t){const n=vb(e);if(Mb(e))return n;if(!xb(e)){let t=jb(e);for(;t&&!Fb(t);){if(wb(t)&&!ew(t))return t;t=jb(t)}return n}let a=tw(e,t);for(;a&&_b(a)&&ew(a);)a=tw(a,t);return a&&Fb(a)&&ew(a)&&!Db(a)?n:a||function(e){let t=jb(e);for(;xb(t)&&!Fb(t);){if(Db(t))return t;if(Mb(t))return null;t=jb(t)}return null}(e)||n}const aw={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const o="fixed"===r,i=yb(a),s=!!t&&Mb(t.floating);if(a===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Uy(1);const u=Uy(0),d=xb(a);if((d||!d&&!o)&&(("body"!==gb(a)||Cb(i))&&(l=Lb(a)),xb(a))){const e=Gb(a);c=Ub(a),u.x=e.x+a.clientLeft,u.y=e.y+a.clientTop}const m=!i||d||o?Uy(0):Kb(i,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}},getDocumentElement:yb,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const o=[..."clippingAncestors"===n?Mb(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let a=Ib(e,[],!1).filter(e=>wb(e)&&"body"!==gb(e)),r=null;const o="fixed"===zb(e).position;let i=o?jb(e):e;for(;wb(i)&&!Fb(i);){const t=zb(i),n=Db(i);n||"fixed"!==t.position||(r=null),(o?!n&&!r:!n&&"static"===t.position&&r&&Yb.has(r.position)||Cb(i)&&!n&&Qb(e,i))?a=a.filter(e=>e!==i):r=t,i=jb(i)}return t.set(e,a),a}(t,this._c):[].concat(n),a],i=o[0],s=o.reduce((e,n)=>{const a=Xb(t,n,r);return e.top=Hy(a.top,e.top),e.right=Iy(a.right,e.right),e.bottom=Iy(a.bottom,e.bottom),e.left=Hy(a.left,e.left),e},Xb(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nw,getElementRects:async function(e){const t=this.getOffsetParent||nw,n=this.getDimensions,a=await n(e.floating);return{reference:Jb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Bb(e);return{width:t,height:n}},getScale:Ub,isElement:wb,isRTL:function(e){return"rtl"===zb(e).direction}};function rw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const ow=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:a,elements:r}=e,o=await(null==a.isRTL?void 0:a.isRTL(r.floating)),i=Ky(n),s=Yy(n),l="y"===eb(n),c=fb.has(i)?-1:1,u=o&&l?-1:1,d=qy(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:m*c}:{x:m*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(a=s.arrow)&&a.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:i}}}}},iw=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=qy(e,t),c={x:n,y:a},u=await db(t,l),d=eb(Ky(r)),m=Xy(d);let h=c[m],f=c[d];if(o){const e="y"===m?"bottom":"right";h=Gy(h+u["y"===m?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";f=Gy(f+u["y"===d?"top":"left"],f,f-u[e])}const p=s.fn({...t,[m]:h,[d]:f});return{...p,data:{x:p.x-n,y:p.y-a,enabled:{[m]:o,[d]:i}}}}}},sw=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...g}=qy(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Ky(r),y=eb(s),b=Ky(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=m||(b||!p?[sb(s)]:function(e){const t=sb(e);return[nb(e),t,nb(t)]}(s)),E="none"!==f;!m&&E&&x.push(...function(e,t,n,a){const r=Yy(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?rb:ab:t?ab:rb;case"left":case"right":return t?ob:ib;default:return[]}}(Ky(e),"start"===n,a);return r&&(o=o.map(e=>e+"-"+r),t&&(o=o.concat(o.map(nb)))),o}(s,p,f,w));const R=[s,...x],C=await db(t,g),k=[];let _=(null==(a=o.flip)?void 0:a.overflows)||[];if(u&&k.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const a=Yy(e),r=tb(e),o=Qy(r);let i="x"===r?a===(n?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=sb(i)),[i,sb(i)]}(r,i,w);k.push(C[e[0]],C[e[1]])}if(_=[..._,{placement:r,overflows:k}],!k.every(e=>e<=0)){var S,M;const e=((null==(S=o.flip)?void 0:S.index)||0)+1,t=R[e];if(t&&("alignment"!==d||y===eb(t)||_.every(e=>eb(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(M=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:M.placement;if(!n)switch(h){case"bestFit":{var N;const e=null==(N=_.filter(e=>{if(E){const t=eb(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},lw=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:r,rects:o,platform:i,elements:s}=t,{apply:l=()=>{},...c}=qy(e,t),u=await db(t,c),d=Ky(r),m=Yy(r),h="y"===eb(r),{width:f,height:p}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=m===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===m?"top":"bottom");const y=p-u.top-u.bottom,b=f-u.left-u.right,w=Iy(p-u[g],y),x=Iy(f-u[v],b),E=!t.middlewareData.shift;let R=w,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=b),null!=(a=t.middlewareData.shift)&&a.enabled.y&&(R=y),E&&!m){const e=Hy(u.left,0),t=Hy(u.right,0),n=Hy(u.top,0),a=Hy(u.bottom,0);h?C=f-2*(0!==e||0!==t?e+t:Hy(u.left,u.right)):R=p-2*(0!==n||0!==a?n+a:Hy(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:R});const k=await i.getDimensions(s.floating);return f!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}},cw=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:a="referenceHidden",...r}=qy(e,t);switch(a){case"referenceHidden":{const e=mb(await db(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:hb(e)}}}case"escaped":{const e=mb(await db(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:hb(e)}}}default:return{}}}}},uw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=qy(e,t)||{};if(null==c)return{};const d=lb(u),m={x:n,y:a},h=tb(r),f=Qy(h),p=await i.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=o.reference[f]+o.reference[h]-m[h]-o.floating[f],x=m[h]-o.reference[h],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let R=E?E[b]:0;R&&await(null==i.isElement?void 0:i.isElement(E))||(R=s.floating[b]||o.floating[f]);const C=w/2-x/2,k=R/2-p[f]/2-1,_=Iy(d[v],k),S=Iy(d[y],k),M=_,N=R-p[f]-S,P=R/2-p[f]/2+C,A=Gy(M,P,N),D=!l.arrow&&null!=Yy(r)&&P!==A&&o.reference[f]/2-(P<M?_:S)-p[f]/2<0,T=D?P<M?P-M:P-N:0;return{[h]:m[h]+T,data:{[h]:A,centerOffset:P-A-T,...D&&{alignmentOffset:T}},reset:D}}}),dw=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:r,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=qy(e,t),u={x:n,y:a},d=eb(r),m=Xy(d);let h=u[m],f=u[d];const p=qy(s,t),g="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+g.mainAxis,n=o.reference[m]+o.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,y;const e="y"===m?"width":"height",t=fb.has(Ky(r)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),a=o.reference[d]+o.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>a&&(f=a)}return{[m]:h,[d]:f}}}};var mw="undefined"!=typeof document?ze.useLayoutEffect:function(){};function hw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!hw(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(!("_owner"===n&&e.$$typeof||hw(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function fw(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pw(e,t){const n=fw(e);return Math.round(t*n)/n}function gw(e){const t=ze.useRef(e);return mw(()=>{t.current=e}),t}const vw=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?uw({element:n.current,padding:a}).fn(t):{}:n?uw({element:n,padding:a}).fn(t):{};var r}}),yw=(e,t)=>({...ow(e),options:[e,t]}),bw=(e,t)=>({...iw(e),options:[e,t]}),ww=(e,t)=>({...dw(e),options:[e,t]}),xw=(e,t)=>({...sw(e),options:[e,t]}),Ew=(e,t)=>({...lw(e),options:[e,t]}),Rw=(e,t)=>({...cw(e),options:[e,t]}),Cw=(e,t)=>({...vw(e),options:[e,t]});var kw=ze.forwardRef((e,t)=>{const{children:n,width:a=10,height:r=5,...o}=e;return Wt.jsx(Qf.svg,{...o,ref:t,width:a,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Wt.jsx("polygon",{points:"0,0 30,0 15,10"})})});kw.displayName="Arrow";var _w=kw,Sw="Popper",[Mw,Nw]=pp(Sw),[Pw,Aw]=Mw(Sw),Dw=e=>{const{__scopePopper:t,children:n}=e,[a,r]=ze.useState(null);return Wt.jsx(Pw,{scope:t,anchor:a,onAnchorChange:r,children:n})};Dw.displayName=Sw;var Tw="PopperAnchor",Ow=ze.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...r}=e,o=Aw(Tw,n),i=ze.useRef(null),s=Ff(t,i);return ze.useEffect(()=>{o.onAnchorChange((null==a?void 0:a.current)||i.current)}),a?null:Wt.jsx(Qf.div,{...r,ref:s})});Ow.displayName=Tw;var Fw="PopperContent",[zw,Lw]=Mw(Fw),jw=ze.forwardRef((e,t)=>{var n,a,r,o,i,s;const{__scopePopper:l,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:f=!0,collisionBoundary:p=[],collisionPadding:g=0,sticky:v="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:w,...x}=e,E=Aw(Fw,l),[R,C]=ze.useState(null),k=Ff(t,e=>C(e)),[_,S]=ze.useState(null),M=xp(_),N=(null==M?void 0:M.width)??0,P=(null==M?void 0:M.height)??0,A=c+("center"!==d?"-"+d:""),D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},T=Array.isArray(p)?p:[p],O=T.length>0,F={padding:D,boundary:T.filter(Bw),altBoundary:O},{refs:z,floatingStyles:L,placement:j,isPositioned:V,middlewareData:I}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=ze.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=ze.useState(a);hw(m,a)||h(a);const[f,p]=ze.useState(null),[g,v]=ze.useState(null),y=ze.useCallback(e=>{e!==E.current&&(E.current=e,p(e))},[]),b=ze.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),w=o||f,x=i||g,E=ze.useRef(null),R=ze.useRef(null),C=ze.useRef(u),k=null!=l,_=gw(l),S=gw(r),M=gw(c),N=ze.useCallback(()=>{if(!E.current||!R.current)return;const e={placement:t,strategy:n,middleware:m};S.current&&(e.platform=S.current),((e,t,n)=>{const a=new Map,r={platform:aw,...n},o={...r.platform,_c:a};return(async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:o=[],platform:i}=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ub(c,a,l),m=a,h={},f=0;for(let p=0;p<s.length;p++){const{name:n,fn:o}=s[p],{x:g,y:v,data:y,reset:b}=await o({x:u,y:d,initialPlacement:a,placement:m,strategy:r,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[n]:{...h[n],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(m=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:u,y:d}=ub(c,m,l))),p=-1)}return{x:u,y:d,placement:m,strategy:r,middlewareData:h}})(e,t,{...r,platform:o})})(E.current,R.current,e).then(e=>{const t={...e,isPositioned:!1!==M.current};P.current&&!hw(C.current,t)&&(C.current=t,Kr.flushSync(()=>{d(t)}))})},[m,t,n,S,M]);mw(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const P=ze.useRef(!1);mw(()=>(P.current=!0,()=>{P.current=!1}),[]),mw(()=>{if(w&&(E.current=w),x&&(R.current=x),w&&x){if(_.current)return _.current(w,x,N);N()}},[w,x,N,_,k]);const A=ze.useMemo(()=>({reference:E,floating:R,setReference:y,setFloating:b}),[y,b]),D=ze.useMemo(()=>({reference:w,floating:x}),[w,x]),T=ze.useMemo(()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=pw(D.floating,u.x),a=pw(D.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+a+"px)",...fw(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:a}},[n,s,D.floating,u.x,u.y]);return ze.useMemo(()=>({...u,update:N,refs:A,elements:D,floatingStyles:T}),[u,N,A,D,T])}({strategy:"fixed",placement:A,whileElementsMounted:(...e)=>function(e,t,n,a){void 0===a&&(a={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=a,u=Wb(e),d=r||o?[...u?Ib(u):[],...Ib(t)]:[];d.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const m=u&&l?function(e,t){let n,a=null;const r=yb(e);function o(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),o();const u=e.getBoundingClientRect(),{left:d,top:m,width:h,height:f}=u;if(l||t(),!h||!f)return;const p={rootMargin:-Wy(m)+"px "+-Wy(r.clientWidth-(d+h))+"px "+-Wy(r.clientHeight-(m+f))+"px "+-Wy(d)+"px",threshold:Hy(0,Iy(1,c))||1};let g=!0;function v(t){const a=t[0].intersectionRatio;if(a!==c){if(!g)return s();a?s(!1,a):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==a||rw(u,e.getBoundingClientRect())||s(),g=!1}try{a=new IntersectionObserver(v,{...p,root:r.ownerDocument})}catch(i){a=new IntersectionObserver(v,p)}a.observe(e)}(!0),o}(u,n):null;let h,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[a]=e;a&&a.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let g=c?Gb(e):null;return c&&function t(){const a=Gb(e);g&&!rw(g,a)&&n(),g=a,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}(...e,{animationFrame:"always"===b}),elements:{reference:E.anchor},middleware:[yw({mainAxis:u+P,alignmentAxis:m}),f&&bw({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?ww():void 0,...F}),f&&xw({...F}),Ew({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:a})=>{const{width:r,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${a}px`),i.setProperty("--radix-popper-anchor-width",`${r}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),_&&Cw({element:_,padding:h}),Ww({arrowWidth:N,arrowHeight:P}),y&&Rw({strategy:"referenceHidden",...F})]}),[H,B]=Uw(j),W=Gp(w);vp(()=>{V&&(null==W||W())},[V,W]);const U=null==(n=I.arrow)?void 0:n.x,$=null==(a=I.arrow)?void 0:a.y,Z=0!==(null==(r=I.arrow)?void 0:r.centerOffset),[G,q]=ze.useState();return vp(()=>{R&&q(window.getComputedStyle(R).zIndex)},[R]),Wt.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:V?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[null==(o=I.transformOrigin)?void 0:o.x,null==(i=I.transformOrigin)?void 0:i.y].join(" "),...(null==(s=I.hide)?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Wt.jsx(zw,{scope:l,placedSide:H,onArrowChange:S,arrowX:U,arrowY:$,shouldHideArrow:Z,children:Wt.jsx(Qf.div,{"data-side":H,"data-align":B,...x,ref:k,style:{...x.style,animation:V?void 0:"none"}})})})});jw.displayName=Fw;var Vw="PopperArrow",Iw={top:"bottom",right:"left",bottom:"top",left:"right"},Hw=ze.forwardRef(function(e,t){const{__scopePopper:n,...a}=e,r=Lw(Vw,n),o=Iw[r.placedSide];return Wt.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:Wt.jsx(_w,{...a,ref:t,style:{...a.style,display:"block"}})})});function Bw(e){return null!==e}Hw.displayName=Vw;var Ww=e=>({name:"transformOrigin",options:e,fn(t){var n,a,r;const{placement:o,rects:i,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,m]=Uw(o),h={start:"0%",center:"50%",end:"100%"}[m],f=((null==(a=s.arrow)?void 0:a.x)??0)+c/2,p=((null==(r=s.arrow)?void 0:r.y)??0)+u/2;let g="",v="";return"bottom"===d?(g=l?h:`${f}px`,v=-u+"px"):"top"===d?(g=l?h:`${f}px`,v=`${i.floating.height+u}px`):"right"===d?(g=-u+"px",v=l?h:`${p}px`):"left"===d&&(g=`${i.floating.width+u}px`,v=l?h:`${p}px`),{data:{x:g,y:v}}}});function Uw(e){const[t,n="center"]=e.split("-");return[t,n]}var $w=Dw,Zw=Ow,Gw=jw,qw=Hw,Kw="Popover",[Yw,Xw]=pp(Kw,[Nw]),Qw=Nw(),[Jw,ex]=Yw(Kw),tx=e=>{const{__scopePopover:t,children:n,open:a,defaultOpen:r,onOpenChange:o,modal:i=!1}=e,s=Qw(t),l=ze.useRef(null),[c,u]=ze.useState(!1),[d,m]=bp({prop:a,defaultProp:r??!1,onChange:o,caller:Kw});return Wt.jsx($w,{...s,children:Wt.jsx(Jw,{scope:t,contentId:Zp(),triggerRef:l,open:d,onOpenChange:m,onOpenToggle:ze.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:c,onCustomAnchorAdd:ze.useCallback(()=>u(!0),[]),onCustomAnchorRemove:ze.useCallback(()=>u(!1),[]),modal:i,children:n})})};tx.displayName=Kw;var nx="PopoverAnchor";ze.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,r=ex(nx,n),o=Qw(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=r;return ze.useEffect(()=>(i(),()=>s()),[i,s]),Wt.jsx(Zw,{...o,...a,ref:t})}).displayName=nx;var ax="PopoverTrigger",rx=ze.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,r=ex(ax,n),o=Qw(n),i=Ff(t,r.triggerRef),s=Wt.jsx(Qf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":gx(r.open),...a,ref:i,onClick:fp(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:Wt.jsx(Zw,{asChild:!0,...o,children:s})});rx.displayName=ax;var ox="PopoverPortal",[ix,sx]=Yw(ox,{forceMount:void 0}),lx=e=>{const{__scopePopover:t,forceMount:n,children:a,container:r}=e,o=ex(ox,t);return Wt.jsx(ix,{scope:t,forceMount:n,children:Wt.jsx(dg,{present:n||o.open,children:Wt.jsx(ug,{asChild:!0,container:r,children:a})})})};lx.displayName=ox;var cx="PopoverContent",ux=ze.forwardRef((e,t)=>{const n=sx(cx,e.__scopePopover),{forceMount:a=n.forceMount,...r}=e,o=ex(cx,e.__scopePopover);return Wt.jsx(dg,{present:a||o.open,children:o.modal?Wt.jsx(mx,{...r,ref:t}):Wt.jsx(hx,{...r,ref:t})})});ux.displayName=cx;var dx=zf("PopoverContent.RemoveScroll"),mx=ze.forwardRef((e,t)=>{const n=ex(cx,e.__scopePopover),a=ze.useRef(null),r=Ff(t,a),o=ze.useRef(!1);return ze.useEffect(()=>{const e=a.current;if(e)return ov(e)},[]),Wt.jsx(Jg,{as:dx,allowPinchZoom:!0,children:Wt.jsx(fx,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fp(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:fp(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;o.current=a},{checkForDefaultPrevented:!1}),onFocusOutside:fp(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),hx=ze.forwardRef((e,t)=>{const n=ex(cx,e.__scopePopover),a=ze.useRef(!1),r=ze.useRef(!1);return Wt.jsx(fx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(a.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:t=>{var o,i;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));const s=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),fx=ze.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,m=ex(cx,n),h=Qw(n);return fg(),Wt.jsx(ag,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:o,children:Wt.jsx(Xp,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:Wt.jsx(Gw,{"data-state":gx(m.open),role:"dialog",id:m.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),px="PopoverClose";function gx(e){return e?"open":"closed"}ze.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,r=ex(px,n);return Wt.jsx(Qf.button,{type:"button",...a,ref:t,onClick:fp(e.onClick,()=>r.onOpenChange(!1))})}).displayName=px,ze.forwardRef((e,t)=>{const{__scopePopover:n,...a}=e,r=Qw(n);return Wt.jsx(qw,{...r,...a,ref:t})}).displayName="PopoverArrow";var vx=tx,yx=rx,bx=lx,wx=ux;function xx({...e}){return ze.createElement(vx,{"data-slot":"popover",...e})}function Ex({...e}){return ze.createElement(yx,{"data-slot":"popover-trigger",...e})}function Rx({className:e,align:t="center",sideOffset:n=4,...a}){return ze.createElement(bx,null,ze.createElement(wx,{"data-slot":"popover-content",align:t,sideOffset:n,className:nm("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 min-w-[300px] origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...a}))}function Cx({iconUrl:e,className:t}){return React.createElement("span",{className:nm(t),style:{backgroundImage:`url("${e}")`,width:"50px",height:"20px",marginRight:"15px",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundColor:"transparent"}})}function kx({values:e,selectedValue:t,onValueChange:n,placeholder:a=__("Select mailer"),className:r}){const[o,i]=ze.useState(!1),s=e.find(e=>e.value===t);return React.createElement(xx,{open:o,onOpenChange:i},React.createElement(Ex,{asChild:!0},React.createElement(Zf,{variant:"outline",role:"combobox","aria-expanded":o,className:nm("w-full cursor-pointer justify-between",r)},s?React.createElement("div",{className:"flex items-center gap-2"},s.iconUrl&&React.createElement(Cx,{iconUrl:s.iconUrl}),React.createElement("span",null,s.label)):React.createElement("span",{className:"text-muted-foreground"},a),React.createElement(qi,{className:"text-muted-foreground"}))),React.createElement(Rx,{className:"w-full p-0",align:"start"},React.createElement(Ty,null,React.createElement(Oy,{placeholder:__("Search mailer...")}),React.createElement(Fy,null,React.createElement(zy,null,__("No mailer found.")),React.createElement(Ly,null,e.map(e=>React.createElement(jy,{key:e.value,value:`${e.value}-${e.label}`,onSelect:()=>{n(e.value),i(!1)},className:"cursor-pointer"},React.createElement("div",{className:"flex items-center gap-2"},e.iconUrl&&React.createElement(Cx,{iconUrl:e.iconUrl}),React.createElement("span",null,e.label)),React.createElement(Yi,{className:nm("ml-auto h-4 w-4",t===e.value?"opacity-100":"opacity-0")}))))))))}const Sx=Array(12).fill(0),Mx=({visible:e,className:t})=>Le.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Le.createElement("div",{className:"sonner-spinner"},Sx.map((e,t)=>Le.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),Nx=Le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Le.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Px=Le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Le.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ax=Le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Le.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Dx=Le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Le.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Tx=Le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Le.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Le.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let Ox=1;const Fx=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...a}=e,r="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Ox++,o=this.toasts.find(e=>e.id===r),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),o?this.toasts=this.toasts.map(t=>t.id===r?(this.publish({...t,...e,id:r,title:n}),{...t,...e,id:r,dismissible:i,title:n}):t):this.addToast({title:n,...a,dismissible:i,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const a=Promise.resolve(e instanceof Function?e():e);let r,o=void 0!==n;const i=a.then(async e=>{if(r=["resolve",e],Le.isValidElement(e))o=!1,this.create({id:n,type:"default",message:e});else if(zx(e)&&!e.ok){o=!1;const a="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,r="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"!=typeof a||Le.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:r,...i})}else if(e instanceof Error){o=!1;const a="function"==typeof t.error?await t.error(e):t.error,r="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||Le.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:r,...i})}else if(void 0!==t.success){o=!1;const a="function"==typeof t.success?await t.success(e):t.success,r="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||Le.isValidElement(a)?{message:a}:a;this.create({id:n,type:"success",description:r,...i})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){o=!1;const a="function"==typeof t.error?await t.error(e):t.error,r="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof a||Le.isValidElement(a)?{message:a}:a;this.create({id:n,type:"error",description:r,...i})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>i.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||Ox++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},zx=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Lx=Object.assign((e,t)=>{const n=(null==t?void 0:t.id)||Ox++;return Fx.addToast({title:e,...t,id:n}),n},{success:Fx.success,info:Fx.info,warning:Fx.warning,error:Fx.error,custom:Fx.custom,message:Fx.message,promise:Fx.promise,dismiss:Fx.dismiss,loading:Fx.loading},{getHistory:()=>Fx.toasts,getToasts:()=>Fx.getActiveToasts()});function jx(e){return void 0!==e.label}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const Vx=3,Ix=14;function Hx(...e){return e.filter(Boolean).join(" ")}const Bx=e=>{var t,n,a,r,o,i,s,l,c;const{invert:u,toast:d,unstyled:m,interacting:h,setHeights:f,visibleToasts:p,heights:g,index:v,toasts:y,expanded:b,removeToast:w,defaultRichColors:x,closeButton:E,style:R,cancelButtonStyle:C,actionButtonStyle:k,className:_="",descriptionClassName:S="",duration:M,position:N,gap:P,expandByDefault:A,classNames:D,icons:T,closeButtonAriaLabel:O="Close toast"}=e,[F,z]=Le.useState(null),[L,j]=Le.useState(null),[V,I]=Le.useState(!1),[H,B]=Le.useState(!1),[W,U]=Le.useState(!1),[$,Z]=Le.useState(!1),[G,q]=Le.useState(!1),[K,Y]=Le.useState(0),[X,Q]=Le.useState(0),J=Le.useRef(d.duration||M||4e3),ee=Le.useRef(null),te=Le.useRef(null),ne=0===v,ae=v+1<=p,re=d.type,oe=!1!==d.dismissible,ie=d.className||"",se=d.descriptionClassName||"",le=Le.useMemo(()=>g.findIndex(e=>e.toastId===d.id)||0,[g,d.id]),ce=Le.useMemo(()=>{var e;return null!=(e=d.closeButton)?e:E},[d.closeButton,E]),ue=Le.useMemo(()=>d.duration||M||4e3,[d.duration,M]),de=Le.useRef(0),me=Le.useRef(0),he=Le.useRef(0),fe=Le.useRef(null),[pe,ge]=N.split("-"),ve=Le.useMemo(()=>g.reduce((e,t,n)=>n>=le?e:e+t.height,0),[g,le]),ye=(()=>{const[e,t]=Le.useState(document.hidden);return Le.useEffect(()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),be=d.invert||u,we="loading"===re;me.current=Le.useMemo(()=>le*P+ve,[le,ve]),Le.useEffect(()=>{J.current=ue},[ue]),Le.useEffect(()=>{I(!0)},[]),Le.useEffect(()=>{const e=te.current;if(e){const t=e.getBoundingClientRect().height;return Q(t),f(e=>[{toastId:d.id,height:t,position:d.position},...e]),()=>f(e=>e.filter(e=>e.toastId!==d.id))}},[f,d.id]),Le.useLayoutEffect(()=>{if(!V)return;const e=te.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,Q(n),f(e=>e.find(e=>e.toastId===d.id)?e.map(e=>e.toastId===d.id?{...e,height:n}:e):[{toastId:d.id,height:n,position:d.position},...e])},[V,d.title,d.description,f,d.id,d.jsx,d.action,d.cancel]);const xe=Le.useCallback(()=>{B(!0),Y(me.current),f(e=>e.filter(e=>e.toastId!==d.id)),setTimeout(()=>{w(d)},200)},[d,w,f,me]);Le.useEffect(()=>{if(d.promise&&"loading"===re||d.duration===1/0||"loading"===d.type)return;let e;return b||h||ye?(()=>{if(he.current<de.current){const e=(new Date).getTime()-de.current;J.current=J.current-e}he.current=(new Date).getTime()})():J.current!==1/0&&(de.current=(new Date).getTime(),e=setTimeout(()=>{null==d.onAutoClose||d.onAutoClose.call(d,d),xe()},J.current)),()=>clearTimeout(e)},[b,h,d,re,ye,xe]),Le.useEffect(()=>{d.delete&&(xe(),null==d.onDismiss||d.onDismiss.call(d,d))},[xe,d.delete]);const Ee=d.icon||(null==T?void 0:T[re])||(e=>{switch(e){case"success":return Nx;case"info":return Ax;case"warning":return Px;case"error":return Dx;default:return null}})(re);var Re,Ce,ke,_e;return Le.createElement("li",{tabIndex:0,ref:te,className:Hx(_,ie,null==D?void 0:D.toast,null==d||null==(t=d.classNames)?void 0:t.toast,null==D?void 0:D.default,null==D?void 0:D[re],null==d||null==(n=d.classNames)?void 0:n[re]),"data-sonner-toast":"","data-rich-colors":null!=(Re=d.richColors)?Re:x,"data-styled":!Boolean(d.jsx||d.unstyled||m),"data-mounted":V,"data-promise":Boolean(d.promise),"data-swiped":G,"data-removed":H,"data-visible":ae,"data-y-position":pe,"data-x-position":ge,"data-index":v,"data-front":ne,"data-swiping":W,"data-dismissible":oe,"data-type":re,"data-invert":be,"data-swipe-out":$,"data-swipe-direction":L,"data-expanded":Boolean(b||A&&V),style:{"--index":v,"--toasts-before":v,"--z-index":y.length-v,"--offset":`${H?K:me.current}px`,"--initial-height":A?"auto":`${X}px`,...R,...d.style},onDragEnd:()=>{U(!1),z(null),fe.current=null},onPointerDown:e=>{2!==e.button&&!we&&oe&&(ee.current=new Date,Y(me.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(U(!0),fe.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if($||!oe)return;fe.current=null;const a=Number((null==(e=te.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),r=Number((null==(t=te.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),o=(new Date).getTime()-(null==(n=ee.current)?void 0:n.getTime()),i="x"===F?a:r,s=Math.abs(i)/o;if(Math.abs(i)>=45||s>.11)return Y(me.current),null==d.onDismiss||d.onDismiss.call(d,d),j("x"===F?a>0?"right":"left":r>0?"down":"up"),xe(),void Z(!0);var l,c;null==(l=te.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(c=te.current)||c.style.setProperty("--swipe-amount-y","0px"),q(!1),U(!1),z(null)},onPointerMove:t=>{var n,a,r;if(!fe.current||!oe)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const o=t.clientY-fe.current.y,i=t.clientX-fe.current.x;var s;const l=null!=(s=e.swipeDirections)?s:function(e){const[t,n]=e.split("-"),a=[];return t&&a.push(t),n&&a.push(n),a}(N);!F&&(Math.abs(i)>1||Math.abs(o)>1)&&z(Math.abs(i)>Math.abs(o)?"x":"y");let c={x:0,y:0};const u=e=>1/(1.5+Math.abs(e)/20);if("y"===F){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&o<0||l.includes("bottom")&&o>0)c.y=o;else{const e=o*u(o);c.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===F&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)c.x=i;else{const e=i*u(i);c.x=Math.abs(e)<Math.abs(i)?e:i}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&q(!0),null==(a=te.current)||a.style.setProperty("--swipe-amount-x",`${c.x}px`),null==(r=te.current)||r.style.setProperty("--swipe-amount-y",`${c.y}px`)}},ce&&!d.jsx&&"loading"!==re?Le.createElement("button",{"aria-label":O,"data-disabled":we,"data-close-button":!0,onClick:we||!oe?()=>{}:()=>{xe(),null==d.onDismiss||d.onDismiss.call(d,d)},className:Hx(null==D?void 0:D.closeButton,null==d||null==(a=d.classNames)?void 0:a.closeButton)},null!=(Ce=null==T?void 0:T.close)?Ce:Tx):null,(re||d.icon||d.promise)&&null!==d.icon&&(null!==(null==T?void 0:T[re])||d.icon)?Le.createElement("div",{"data-icon":"",className:Hx(null==D?void 0:D.icon,null==d||null==(r=d.classNames)?void 0:r.icon)},d.promise||"loading"===d.type&&!d.icon?d.icon||((null==T?void 0:T.loading)?Le.createElement("div",{className:Hx(null==D?void 0:D.loader,null==d||null==(_e=d.classNames)?void 0:_e.loader,"sonner-loader"),"data-visible":"loading"===re},T.loading):Le.createElement(Mx,{className:Hx(null==D?void 0:D.loader,null==d||null==(ke=d.classNames)?void 0:ke.loader),visible:"loading"===re})):null,"loading"!==d.type?Ee:null):null,Le.createElement("div",{"data-content":"",className:Hx(null==D?void 0:D.content,null==d||null==(o=d.classNames)?void 0:o.content)},Le.createElement("div",{"data-title":"",className:Hx(null==D?void 0:D.title,null==d||null==(i=d.classNames)?void 0:i.title)},d.jsx?d.jsx:"function"==typeof d.title?d.title():d.title),d.description?Le.createElement("div",{"data-description":"",className:Hx(S,se,null==D?void 0:D.description,null==d||null==(s=d.classNames)?void 0:s.description)},"function"==typeof d.description?d.description():d.description):null),Le.isValidElement(d.cancel)?d.cancel:d.cancel&&jx(d.cancel)?Le.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||C,onClick:e=>{jx(d.cancel)&&oe&&(null==d.cancel.onClick||d.cancel.onClick.call(d.cancel,e),xe())},className:Hx(null==D?void 0:D.cancelButton,null==d||null==(l=d.classNames)?void 0:l.cancelButton)},d.cancel.label):null,Le.isValidElement(d.action)?d.action:d.action&&jx(d.action)?Le.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||k,onClick:e=>{jx(d.action)&&(null==d.action.onClick||d.action.onClick.call(d.action,e),e.defaultPrevented||xe())},className:Hx(null==D?void 0:D.actionButton,null==d||null==(c=d.classNames)?void 0:c.actionButton)},d.action.label):null)};function Wx(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function Ux(e,t){const n={};return[e,t].forEach((e,t)=>{const a=1===t,r=a?"--mobile-offset":"--offset",o=a?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{n[`${r}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?i(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n[`${r}-${t}`]=o:n[`${r}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):i(o)}),n}const $x=Le.forwardRef(function(e,t){const{invert:n,position:a="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:i,className:s,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:m,style:h,visibleToasts:f=Vx,toastOptions:p,dir:g=Wx(),gap:v=Ix,icons:y,containerAriaLabel:b="Notifications"}=e,[w,x]=Le.useState([]),E=Le.useMemo(()=>Array.from(new Set([a].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,a]),[R,C]=Le.useState([]),[k,_]=Le.useState(!1),[S,M]=Le.useState(!1),[N,P]=Le.useState("system"!==u?u:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=Le.useRef(null),D=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=Le.useRef(null),O=Le.useRef(!1),F=Le.useCallback(e=>{x(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||Fx.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return Le.useEffect(()=>Fx.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{x(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{Yr.flushSync(()=>{x(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[w]),Le.useEffect(()=>{if("system"!==u)return void P(u);if("system"===u&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?P("dark"):P("light")),"undefined"==typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{P(e?"dark":"light")})}catch(t){e.addListener(({matches:e})=>{try{P(e?"dark":"light")}catch(nV){console.error(nV)}})}},[u]),Le.useEffect(()=>{w.length<=1&&_(!1)},[w]),Le.useEffect(()=>{const e=e=>{var t,n;r.every(t=>e[t]||e.code===t)&&(_(!0),null==(n=A.current)||n.focus()),"Escape"!==e.code||document.activeElement!==A.current&&!(null==(t=A.current)?void 0:t.contains(document.activeElement))||_(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),Le.useEffect(()=>{if(A.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,O.current=!1)}},[A.current]),Le.createElement("section",{ref:t,"aria-label":`${b} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((t,a)=>{var r;const[u,b]=t.split("-");return w.length?Le.createElement("ol",{key:t,dir:"auto"===g?Wx():g,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":u,"data-x-position":b,style:{"--front-toast-height":`${(null==(r=R[0])?void 0:r.height)||0}px`,"--width":"356px","--gap":`${v}px`,...h,...Ux(l,c)},onBlur:e=>{O.current&&!e.currentTarget.contains(e.relatedTarget)&&(O.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||O.current||(O.current=!0,T.current=e.relatedTarget)},onMouseEnter:()=>_(!0),onMouseMove:()=>_(!0),onMouseLeave:()=>{S||_(!1)},onDragEnd:()=>_(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||M(!0)},onPointerUp:()=>M(!1)},w.filter(e=>!e.position&&0===a||e.position===t).map((a,r)=>{var s,l;return Le.createElement(Bx,{key:a.id,icons:y,index:r,toast:a,defaultRichColors:d,duration:null!=(s=null==p?void 0:p.duration)?s:m,className:null==p?void 0:p.className,descriptionClassName:null==p?void 0:p.descriptionClassName,invert:n,visibleToasts:f,closeButton:null!=(l=null==p?void 0:p.closeButton)?l:i,interacting:S,position:t,style:null==p?void 0:p.style,unstyled:null==p?void 0:p.unstyled,classNames:null==p?void 0:p.classNames,cancelButtonStyle:null==p?void 0:p.cancelButtonStyle,actionButtonStyle:null==p?void 0:p.actionButtonStyle,closeButtonAriaLabel:null==p?void 0:p.closeButtonAriaLabel,removeToast:F,toasts:w.filter(e=>e.position==a.position),heights:R.filter(e=>e.position==a.position),setHeights:C,expandByDefault:o,gap:v,expanded:k,swipeDirections:e.swipeDirections})})):null}))}),Zx=(e,t)=>Lx.success(e,{icon:React.createElement(Xi,{size:20,className:"text-success",weight:"fill"}),position:t}),Gx=(e,t)=>Lx.error(e,{icon:React.createElement(ts,{size:20,className:"text-destructive",weight:"fill"}),position:t});function qx(e,[t,n]){return Math.min(n,Math.max(t,e))}function Kx(e){const t=e+"CollectionProvider",[n,a]=pp(t),[r,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{const{scope:t,children:n}=e,a=Le.useRef(null),o=Le.useRef(new Map).current;return Wt.jsx(r,{scope:t,itemMap:o,collectionRef:a,children:n})};i.displayName=t;const s=e+"CollectionSlot",l=zf(s),c=Le.forwardRef((e,t)=>{const{scope:n,children:a}=e,r=Ff(t,o(s,n).collectionRef);return Wt.jsx(l,{ref:r,children:a})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=zf(u),h=Le.forwardRef((e,t)=>{const{scope:n,children:a,...r}=e,i=Le.useRef(null),s=Ff(t,i),l=o(u,n);return Le.useEffect(()=>(l.itemMap.set(i,{ref:i,...r}),()=>{l.itemMap.delete(i)})),Wt.jsx(m,{[d]:"",ref:s,children:a})});return h.displayName=u,[{Provider:i,Slot:c,ItemSlot:h},function(t){const n=o(e+"CollectionConsumer",t);return Le.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},a]}var Yx=ze.createContext(void 0);function Xx(e){const t=ze.useContext(Yx);return e||t||"ltr"}var Qx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Jx=ze.forwardRef((e,t)=>Wt.jsx(Qf.span,{...e,ref:t,style:{...Qx,...e.style}}));Jx.displayName="VisuallyHidden";var eE=Jx,tE=[" ","Enter","ArrowUp","ArrowDown"],nE=[" ","Enter"],aE="Select",[rE,oE,iE]=Kx(aE),[sE,lE]=pp(aE,[iE,Nw]),cE=Nw(),[uE,dE]=sE(aE),[mE,hE]=sE(aE),fE=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:r,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:m,required:h,form:f}=e,p=cE(t),[g,v]=ze.useState(null),[y,b]=ze.useState(null),[w,x]=ze.useState(!1),E=Xx(c),[R,C]=bp({prop:a,defaultProp:r??!1,onChange:o,caller:aE}),[k,_]=bp({prop:i,defaultProp:s,onChange:l,caller:aE}),S=ze.useRef(null),M=!g||f||!!g.closest("form"),[N,P]=ze.useState(new Set),A=Array.from(N).map(e=>e.props.value).join(";");return Wt.jsx($w,{...p,children:Wt.jsxs(uE,{required:h,scope:t,trigger:g,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:Zp(),value:k,onValueChange:_,open:R,onOpenChange:C,dir:E,triggerPointerDownPosRef:S,disabled:m,children:[Wt.jsx(rE.Provider,{scope:t,children:Wt.jsx(mE,{scope:e.__scopeSelect,onNativeOptionAdd:ze.useCallback(e=>{P(t=>new Set(t).add(e))},[]),onNativeOptionRemove:ze.useCallback(e=>{P(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?Wt.jsxs(QE,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>_(e.target.value),disabled:m,form:f,children:[void 0===k?Wt.jsx("option",{value:""}):null,Array.from(N)]},A):null]})})};fE.displayName=aE;var pE="SelectTrigger",gE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...r}=e,o=cE(n),i=dE(pE,n),s=i.disabled||a,l=Ff(t,i.onTriggerChange),c=oE(n),u=ze.useRef("touch"),[d,m,h]=eR(e=>{const t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===i.value),a=tR(t,e,n);void 0!==a&&i.onValueChange(a.value)}),f=e=>{s||(i.onOpenChange(!0),h()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return Wt.jsx(Zw,{asChild:!0,...o,children:Wt.jsx(Qf.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":JE(i.value)?"":void 0,...r,ref:l,onClick:fp(r.onClick,e=>{e.currentTarget.focus(),"mouse"!==u.current&&f(e)}),onPointerDown:fp(r.onPointerDown,e=>{u.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:fp(r.onKeyDown,e=>{const t=""!==d.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||tE.includes(e.key)&&(f(),e.preventDefault())})})})});gE.displayName=pE;var vE="SelectValue",yE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,children:o,placeholder:i="",...s}=e,l=dE(vE,n),{onValueNodeHasChildrenChange:c}=l,u=void 0!==o,d=Ff(t,l.onValueNodeChange);return vp(()=>{c(u)},[c,u]),Wt.jsx(Qf.span,{...s,ref:d,style:{pointerEvents:"none"},children:JE(l.value)?Wt.jsx(Wt.Fragment,{children:i}):o})});yE.displayName=vE;var bE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...r}=e;return Wt.jsx(Qf.span,{"aria-hidden":!0,...r,ref:t,children:a||"▼"})});bE.displayName="SelectIcon";var wE=e=>Wt.jsx(ug,{asChild:!0,...e});wE.displayName="SelectPortal";var xE="SelectContent",EE=ze.forwardRef((e,t)=>{const n=dE(xE,e.__scopeSelect),[a,r]=ze.useState();if(vp(()=>{r(new DocumentFragment)},[]),!n.open){const t=a;return t?Kr.createPortal(Wt.jsx(CE,{scope:e.__scopeSelect,children:Wt.jsx(rE.Slot,{scope:e.__scopeSelect,children:Wt.jsx("div",{children:e.children})})}),t):null}return Wt.jsx(SE,{...e,ref:t})});EE.displayName=xE;var RE=10,[CE,kE]=sE(xE),_E=zf("SelectContent.RemoveScroll"),SE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:f,hideWhenDetached:p,avoidCollisions:g,...v}=e,y=dE(xE,n),[b,w]=ze.useState(null),[x,E]=ze.useState(null),R=Ff(t,e=>w(e)),[C,k]=ze.useState(null),[_,S]=ze.useState(null),M=oE(n),[N,P]=ze.useState(!1),A=ze.useRef(!1);ze.useEffect(()=>{if(b)return ov(b)},[b]),fg();const D=ze.useCallback(e=>{const[t,...n]=M().map(e=>e.ref.current),[a]=n.slice(-1),r=document.activeElement;for(const o of e){if(o===r)return;if(null==o||o.scrollIntoView({block:"nearest"}),o===t&&x&&(x.scrollTop=0),o===a&&x&&(x.scrollTop=x.scrollHeight),null==o||o.focus(),document.activeElement!==r)return}},[M,x]),T=ze.useCallback(()=>D([C,b]),[D,C,b]);ze.useEffect(()=>{N&&T()},[N,T]);const{onOpenChange:O,triggerPointerDownPosRef:F}=y;ze.useEffect(()=>{if(b){let e={x:0,y:0};const t=t=>{var n,a;e={x:Math.abs(Math.round(t.pageX)-((null==(n=F.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(a=F.current)?void 0:a.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||O(!1),document.removeEventListener("pointermove",t),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[b,O,F]),ze.useEffect(()=>{const e=()=>O(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[O]);const[z,L]=eR(e=>{const t=M().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),a=tR(t,e,n);a&&setTimeout(()=>a.ref.current.focus())}),j=ze.useCallback((e,t,n)=>{const a=!A.current&&!n;(void 0!==y.value&&y.value===t||a)&&(k(e),a&&(A.current=!0))},[y.value]),V=ze.useCallback(()=>null==b?void 0:b.focus(),[b]),I=ze.useCallback((e,t,n)=>{const a=!A.current&&!n;(void 0!==y.value&&y.value===t||a)&&S(e)},[y.value]),H="popper"===a?NE:ME,B=H===NE?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:m,collisionPadding:h,sticky:f,hideWhenDetached:p,avoidCollisions:g}:{};return Wt.jsx(CE,{scope:n,content:b,viewport:x,onViewportChange:E,itemRefCallback:j,selectedItem:C,onItemLeave:V,itemTextRefCallback:I,focusSelectedItem:T,selectedItemText:_,position:a,isPositioned:N,searchRef:z,children:Wt.jsx(Jg,{as:_E,allowPinchZoom:!0,children:Wt.jsx(ag,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:fp(r,e=>{var t;null==(t=y.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:Wt.jsx(Xp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:Wt.jsx(H,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...B,onPlaced:()=>P(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:fp(v.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,a=t.indexOf(n);t=t.slice(a+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});SE.displayName="SelectContentImpl";var ME=ze.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...r}=e,o=dE(xE,n),i=kE(xE,n),[s,l]=ze.useState(null),[c,u]=ze.useState(null),d=Ff(t,e=>u(e)),m=oE(n),h=ze.useRef(!1),f=ze.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=i,b=ze.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&c&&p&&g&&v){const e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),r=v.getBoundingClientRect();if("rtl"!==o.dir){const a=r.left-t.left,o=n.left-a,i=e.left-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-RE,d=qx(o,[RE,Math.max(RE,u-c)]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const a=t.right-r.right,o=window.innerWidth-n.right-a,i=window.innerWidth-e.right-o,l=e.width+i,c=Math.max(l,t.width),u=window.innerWidth-RE,d=qx(o,[RE,Math.max(RE,u-c)]);s.style.minWidth=l+"px",s.style.right=d+"px"}const i=m(),l=window.innerHeight-2*RE,u=p.scrollHeight,d=window.getComputedStyle(c),f=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),w=f+y+u+parseInt(d.paddingBottom,10)+b,x=Math.min(5*g.offsetHeight,w),E=window.getComputedStyle(p),R=parseInt(E.paddingTop,10),C=parseInt(E.paddingBottom,10),k=e.top+e.height/2-RE,_=l-k,S=g.offsetHeight/2,M=f+y+(g.offsetTop+S),N=w-M;if(M<=k){const e=i.length>0&&g===i[i.length-1].ref.current;s.style.bottom="0px";const t=c.clientHeight-p.offsetTop-p.offsetHeight,n=M+Math.max(_,S+(e?C:0)+t+b);s.style.height=n+"px"}else{const e=i.length>0&&g===i[0].ref.current;s.style.top="0px";const t=Math.max(k,f+p.offsetTop+(e?R:0)+S)+N;s.style.height=t+"px",p.scrollTop=M-k+p.offsetTop}s.style.margin=`${RE}px 0`,s.style.minHeight=x+"px",s.style.maxHeight=l+"px",null==a||a(),requestAnimationFrame(()=>h.current=!0)}},[m,o.trigger,o.valueNode,s,c,p,g,v,o.dir,a]);vp(()=>b(),[b]);const[w,x]=ze.useState();vp(()=>{c&&x(window.getComputedStyle(c).zIndex)},[c]);const E=ze.useCallback(e=>{e&&!0===f.current&&(b(),null==y||y(),f.current=!1)},[b,y]);return Wt.jsx(PE,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:Wt.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:Wt.jsx(Qf.div,{...r,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ME.displayName="SelectItemAlignedPosition";var NE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:r=RE,...o}=e,i=cE(n);return Wt.jsx(Gw,{...i,...o,ref:t,align:a,collisionPadding:r,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});NE.displayName="SelectPopperPosition";var[PE,AE]=sE(xE,{}),DE="SelectViewport",TE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...r}=e,o=kE(DE,n),i=AE(DE,n),s=Ff(t,o.onViewportChange),l=ze.useRef(0);return Wt.jsxs(Wt.Fragment,{children:[Wt.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),Wt.jsx(rE.Slot,{scope:n,children:Wt.jsx(Qf.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:fp(r.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:a}=i;if((null==a?void 0:a.current)&&n){const e=Math.abs(l.current-t.scrollTop);if(e>0){const a=window.innerHeight-2*RE,r=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),i=Math.max(r,o);if(i<a){const r=i+e,o=Math.min(a,r),s=r-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}l.current=t.scrollTop})})})]})});TE.displayName=DE;var OE="SelectGroup",[FE,zE]=sE(OE);ze.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=Zp();return Wt.jsx(FE,{scope:n,id:r,children:Wt.jsx(Qf.div,{role:"group","aria-labelledby":r,...a,ref:t})})}).displayName=OE;var LE="SelectLabel";ze.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=zE(LE,n);return Wt.jsx(Qf.div,{id:r.id,...a,ref:t})}).displayName=LE;var jE="SelectItem",[VE,IE]=sE(jE),HE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:r=!1,textValue:o,...i}=e,s=dE(jE,n),l=kE(jE,n),c=s.value===a,[u,d]=ze.useState(o??""),[m,h]=ze.useState(!1),f=Ff(t,e=>{var t;return null==(t=l.itemRefCallback)?void 0:t.call(l,e,a,r)}),p=Zp(),g=ze.useRef("touch"),v=()=>{r||(s.onValueChange(a),s.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Wt.jsx(VE,{scope:n,value:a,disabled:r,textId:p,isSelected:c,onItemTextChange:ze.useCallback(e=>{d(t=>t||((null==e?void 0:e.textContent)??"").trim())},[]),children:Wt.jsx(rE.ItemSlot,{scope:n,value:a,disabled:r,textValue:u,children:Wt.jsx(Qf.div,{role:"option","aria-labelledby":p,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:f,onFocus:fp(i.onFocus,()=>h(!0)),onBlur:fp(i.onBlur,()=>h(!1)),onClick:fp(i.onClick,()=>{"mouse"!==g.current&&v()}),onPointerUp:fp(i.onPointerUp,()=>{"mouse"===g.current&&v()}),onPointerDown:fp(i.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:fp(i.onPointerMove,e=>{var t;g.current=e.pointerType,r?null==(t=l.onItemLeave)||t.call(l):"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:fp(i.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null==(t=l.onItemLeave)||t.call(l))}),onKeyDown:fp(i.onKeyDown,e=>{var t;""!==(null==(t=l.searchRef)?void 0:t.current)&&" "===e.key||(nE.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});HE.displayName=jE;var BE="SelectItemText",WE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,...o}=e,i=dE(BE,n),s=kE(BE,n),l=IE(BE,n),c=hE(BE,n),[u,d]=ze.useState(null),m=Ff(t,e=>d(e),l.onItemTextChange,e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,l.value,l.disabled)}),h=null==u?void 0:u.textContent,f=ze.useMemo(()=>Wt.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=c;return vp(()=>(p(f),()=>g(f)),[p,g,f]),Wt.jsxs(Wt.Fragment,{children:[Wt.jsx(Qf.span,{id:l.textId,...o,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Kr.createPortal(o.children,i.valueNode):null]})});WE.displayName=BE;var UE="SelectItemIndicator",$E=ze.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return IE(UE,n).isSelected?Wt.jsx(Qf.span,{"aria-hidden":!0,...a,ref:t}):null});$E.displayName=UE;var ZE="SelectScrollUpButton",GE=ze.forwardRef((e,t)=>{const n=kE(ZE,e.__scopeSelect),a=AE(ZE,e.__scopeSelect),[r,o]=ze.useState(!1),i=Ff(t,a.onScrollButtonChange);return vp(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;o(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),r?Wt.jsx(YE,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});GE.displayName=ZE;var qE="SelectScrollDownButton",KE=ze.forwardRef((e,t)=>{const n=kE(qE,e.__scopeSelect),a=AE(qE,e.__scopeSelect),[r,o]=ze.useState(!1),i=Ff(t,a.onScrollButtonChange);return vp(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;o(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),r?Wt.jsx(YE,{...e,ref:i,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});KE.displayName=qE;var YE=ze.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...r}=e,o=kE("SelectScrollButton",n),i=ze.useRef(null),s=oE(n),l=ze.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return ze.useEffect(()=>()=>l(),[l]),vp(()=>{var e;const t=s().find(e=>e.ref.current===document.activeElement);null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})},[s]),Wt.jsx(Qf.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:fp(r.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(a,50))}),onPointerMove:fp(r.onPointerMove,()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===i.current&&(i.current=window.setInterval(a,50))}),onPointerLeave:fp(r.onPointerLeave,()=>{l()})})});ze.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return Wt.jsx(Qf.div,{"aria-hidden":!0,...a,ref:t})}).displayName="SelectSeparator";var XE="SelectArrow";ze.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=cE(n),o=dE(XE,n),i=kE(XE,n);return o.open&&"popper"===i.position?Wt.jsx(qw,{...r,...a,ref:t}):null}).displayName=XE;var QE=ze.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const r=ze.useRef(null),o=Ff(a,r),i=wp(t);return ze.useEffect(()=>{const e=r.current;if(!e)return;const n=window.HTMLSelectElement.prototype,a=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==t&&a){const n=new Event("change",{bubbles:!0});a.call(e,t),e.dispatchEvent(n)}},[i,t]),Wt.jsx(Qf.select,{...n,style:{...Qx,...n.style},ref:o,defaultValue:t})});function JE(e){return""===e||void 0===e}function eR(e){const t=Gp(e),n=ze.useRef(""),a=ze.useRef(0),r=ze.useCallback(e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),o=ze.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return ze.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,o]}function tR(e,t,n){const a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(r,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===a.length&&(o=o.filter(e=>e!==n));const l=o.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==n?l:void 0}QE.displayName="SelectBubbleInput";var nR=fE,aR=gE,rR=yE,oR=bE,iR=wE,sR=EE,lR=TE,cR=HE,uR=WE,dR=$E,mR=GE,hR=KE;function fR({...e}){return ze.createElement(nR,{"data-slot":"select",...e})}function pR({...e}){return ze.createElement(rR,{"data-slot":"select-value",...e})}function gR({className:e,size:t="default",children:n,...a}){return ze.createElement(aR,{"data-slot":"select-trigger","data-size":t,className:nm(Uf(),"border-input focus-visible:border-ring focus-visible:hover:border-ring-accent data-[state=open]:[&_svg:not([class*='text-'])]:text-foreground data-[state=open]:border-foreground data-[placeholder]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-foreground [&_svg:not([class*='text-'])]:text-muted-foreground hover:border-foreground dark:bg-input/30 dark:hover:bg-input/50 disabled:hover:border-input flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm font-normal whitespace-nowrap transition-all outline-none disabled:cursor-not-allowed disabled:bg-[#f2f5f9] disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a},n,ze.createElement(oR,{asChild:!0},ze.createElement(qi,{weight:"bold",className:"size-4 transition-colors"})))}function vR({className:e,children:t,position:n="popper",...a}){return ze.createElement(iR,null,ze.createElement(sR,{"data-slot":"select-content",className:nm("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...a},ze.createElement(bR,null),ze.createElement(lR,{className:nm("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")},t),ze.createElement(wR,null)))}function yR({className:e,children:t,...n}){return ze.createElement(cR,{"data-slot":"select-item",className:nm("focus:text-accent-foreground data-[state=checked]:text-primary [&_svg:not([class*='text-'])]:text-primary relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-[#f2f5f9] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n},ze.createElement("span",{className:"absolute right-2 flex size-3.5 items-center justify-center"},ze.createElement(dR,null,ze.createElement(Yi,{className:"size-4"}))),ze.createElement(uR,null,t))}function bR({className:e,...t}){return ze.createElement(mR,{"data-slot":"select-scroll-up-button",className:nm("flex cursor-default items-center justify-center py-1",e),...t},ze.createElement(Ki,{weight:"bold",className:"size-4"}))}function wR({className:e,...t}){return ze.createElement(hR,{"data-slot":"select-scroll-down-button",className:nm("flex cursor-default items-center justify-center py-1",e),...t},ze.createElement(qi,{weight:"bold",className:"size-4"}))}var[xR,ER]=pp("Tooltip",[Nw]),RR=Nw(),CR="TooltipProvider",kR=700,_R="tooltip.open",[SR,MR]=xR(CR),NR=e=>{const{__scopeTooltip:t,delayDuration:n=kR,skipDelayDuration:a=300,disableHoverableContent:r=!1,children:o}=e,i=ze.useRef(!0),s=ze.useRef(!1),l=ze.useRef(0);return ze.useEffect(()=>{const e=l.current;return()=>window.clearTimeout(e)},[]),Wt.jsx(SR,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:ze.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:ze.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,a)},[a]),isPointerInTransitRef:s,onPointerInTransitChange:ze.useCallback(e=>{s.current=e},[]),disableHoverableContent:r,children:o})};NR.displayName=CR;var PR="Tooltip",[AR,DR]=xR(PR),TR=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:r,onOpenChange:o,disableHoverableContent:i,delayDuration:s}=e,l=MR(PR,e.__scopeTooltip),c=RR(t),[u,d]=ze.useState(null),m=Zp(),h=ze.useRef(0),f=i??l.disableHoverableContent,p=s??l.delayDuration,g=ze.useRef(!1),[v,y]=bp({prop:a,defaultProp:r??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(_R))):l.onClose(),null==o||o(e)},caller:PR}),b=ze.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),w=ze.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,y(!0)},[y]),x=ze.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),E=ze.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0),h.current=0},p)},[p,y]);return ze.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),Wt.jsx($w,{...c,children:Wt.jsx(AR,{scope:t,contentId:m,open:v,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:ze.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:ze.useCallback(()=>{f?x():(window.clearTimeout(h.current),h.current=0)},[x,f]),onOpen:w,onClose:x,disableHoverableContent:f,children:n})})};TR.displayName=PR;var OR="TooltipTrigger",FR=ze.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,r=DR(OR,n),o=MR(OR,n),i=RR(n),s=Ff(t,ze.useRef(null),r.onTriggerChange),l=ze.useRef(!1),c=ze.useRef(!1),u=ze.useCallback(()=>l.current=!1,[]);return ze.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),Wt.jsx(Zw,{asChild:!0,...i,children:Wt.jsx(Qf.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...a,ref:s,onPointerMove:fp(e.onPointerMove,e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(r.onTriggerEnter(),c.current=!0))}),onPointerLeave:fp(e.onPointerLeave,()=>{r.onTriggerLeave(),c.current=!1}),onPointerDown:fp(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:fp(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:fp(e.onBlur,r.onClose),onClick:fp(e.onClick,r.onClose)})})});FR.displayName=OR;var zR="TooltipPortal",[LR,jR]=xR(zR,{forceMount:void 0}),VR=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:r}=e,o=DR(zR,t);return Wt.jsx(LR,{scope:t,forceMount:n,children:Wt.jsx(dg,{present:n||o.open,children:Wt.jsx(ug,{asChild:!0,container:r,children:a})})})};VR.displayName=zR;var IR="TooltipContent",HR=ze.forwardRef((e,t)=>{const n=jR(IR,e.__scopeTooltip),{forceMount:a=n.forceMount,side:r="top",...o}=e,i=DR(IR,e.__scopeTooltip);return Wt.jsx(dg,{present:a||i.open,children:i.disableHoverableContent?Wt.jsx(ZR,{side:r,...o,ref:t}):Wt.jsx(BR,{side:r,...o,ref:t})})}),BR=ze.forwardRef((e,t)=>{const n=DR(IR,e.__scopeTooltip),a=MR(IR,e.__scopeTooltip),r=ze.useRef(null),o=Ff(t,r),[i,s]=ze.useState(null),{trigger:l,onClose:c}=n,u=r.current,{onPointerInTransitChange:d}=a,m=ze.useCallback(()=>{s(null),d(!1)},[d]),h=ze.useCallback((e,t)=>{const n=e.currentTarget,a={x:e.clientX,y:e.clientY},r=function(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return a}(a,function(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,a,r,o)){case o:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}(a,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const n=e[a];for(;t.length>=2;){const e=t[t.length-1],a=t[t.length-2];if(!((e.x-a.x)*(n.y-a.y)>=(e.y-a.y)*(n.x-a.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const t=e[a];for(;n.length>=2;){const e=n[n.length-1],a=n[n.length-2];if(!((e.x-a.x)*(t.y-a.y)>=(e.y-a.y)*(t.x-a.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(e){const{top:t,right:n,bottom:a,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}(t.getBoundingClientRect())]);s(o),d(!0)},[d]);return ze.useEffect(()=>()=>m(),[m]),ze.useEffect(()=>{if(l&&u){const e=e=>h(e,u),t=e=>h(e,l);return l.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[l,u,h,m]),ze.useEffect(()=>{if(i){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},a=(null==l?void 0:l.contains(t))||(null==u?void 0:u.contains(t)),r=!function(e,t){const{x:n,y:a}=e;let r=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o],s=t[i],l=e.x,c=e.y,u=s.x,d=s.y;c>a!=d>a&&n<(u-l)*(a-c)/(d-c)+l&&(r=!r)}return r}(n,i);a?m():r&&(m(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,u,i,c,m]),Wt.jsx(ZR,{...e,ref:o})}),[WR,UR]=xR(PR,{isInside:!1}),$R=If("TooltipContent"),ZR=ze.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":r,onEscapeKeyDown:o,onPointerDownOutside:i,...s}=e,l=DR(IR,n),c=RR(n),{onClose:u}=l;return ze.useEffect(()=>(document.addEventListener(_R,u),()=>document.removeEventListener(_R,u)),[u]),ze.useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,u]),Wt.jsx(Xp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:Wt.jsxs(Gw,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Wt.jsx($R,{children:a}),Wt.jsx(WR,{scope:n,isInside:!0,children:Wt.jsx(eE,{id:l.contentId,role:"tooltip",children:r||a})})]})})});HR.displayName=IR;var GR="TooltipArrow",qR=ze.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,r=RR(n);return UR(GR,n).isInside?null:Wt.jsx(qw,{...r,...a,ref:t})});qR.displayName=GR;var KR=NR,YR=TR,XR=FR,QR=VR,JR=HR,eC=qR;function tC({delayDuration:e=0,...t}){return ze.createElement(KR,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function nC({...e}){return ze.createElement(tC,null,ze.createElement(YR,{"data-slot":"tooltip",...e}))}function aC({...e}){return ze.createElement(XR,{"data-slot":"tooltip-trigger",...e})}function rC({className:e,sideOffset:t=0,children:n,...a}){return ze.createElement(QR,null,ze.createElement(JR,{"data-slot":"tooltip-content",sideOffset:t,className:nm("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...a},n,ze.createElement(eC,{className:"fill-foreground bg-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})))}const oC=({className:e="",...t})=>React.createElement("svg",{viewBox:"0 0 18 18","data-icon":"document",width:"18",height:"18",fill:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:nm("text-[#1D2327]",e),...t},React.createElement("path",{d:"M12.3333 17.9583H5.66667C2.625 17.9583 0.875 16.2083 0.875 13.1667V4.83333C0.875 1.79167 2.625 0.041666 5.66667 0.041666H12.3333C15.375 0.041666 17.125 1.79167 17.125 4.83333V13.1667C17.125 16.2083 15.375 17.9583 12.3333 17.9583ZM5.66667 1.29167C3.28333 1.29167 2.125 2.45 2.125 4.83333V13.1667C2.125 15.55 3.28333 16.7083 5.66667 16.7083H12.3333C14.7167 16.7083 15.875 15.55 15.875 13.1667V4.83333C15.875 2.45 14.7167 1.29167 12.3333 1.29167H5.66667Z"}),React.createElement("path",{d:"M14.4167 6.70833H12.75C11.4833 6.70833 10.4583 5.68333 10.4583 4.41667V2.75C10.4583 2.40833 10.7417 2.125 11.0833 2.125C11.425 2.125 11.7083 2.40833 11.7083 2.75V4.41667C11.7083 4.99167 12.175 5.45833 12.75 5.45833H14.4167C14.7583 5.45833 15.0417 5.74167 15.0417 6.08333C15.0417 6.425 14.7583 6.70833 14.4167 6.70833Z"}),React.createElement("path",{d:"M9 10.4583H5.66666C5.325 10.4583 5.04166 10.175 5.04166 9.83333C5.04166 9.49167 5.325 9.20833 5.66666 9.20833H9C9.34166 9.20833 9.625 9.49167 9.625 9.83333C9.625 10.175 9.34166 10.4583 9 10.4583Z"}),React.createElement("path",{d:"M12.3333 13.7917H5.66666C5.325 13.7917 5.04166 13.5083 5.04166 13.1667C5.04166 12.825 5.325 12.5417 5.66666 12.5417H12.3333C12.675 12.5417 12.9583 12.825 12.9583 13.1667C12.9583 13.5083 12.675 13.7917 12.3333 13.7917Z"}));function iC({field:e,placeholder:t="Enter your API key",maskLength:n=48}){const[a,r]=ze.useState(!1),o=ze.useRef(""),i=e.value&&!a?"*".repeat(n):e.value||"";return React.createElement(hp,{type:"password",spellCheck:"false",autoComplete:"new-password",placeholder:t,name:e.name,value:i,onChange:t=>{e.onChange(t),r(!0)},onFocus:()=>{e.value&&!a&&(o.current=e.value,r(!0),e.onChange(""))},onBlur:t=>{e.onBlur(),!t.target.value&&o.current&&e.onChange(o.current),r(!1)}})}const sC=window.yaySmtpWpData.amazonSesRegions;function lC({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Amazon SES")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-amazon-ses","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Amazon SES Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.amazonses.region":"amazonses.region",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Region")),React.createElement(up,null,React.createElement(fR,{defaultValue:"us-east-1",value:e.value,onValueChange:t=>e.onChange(t)},React.createElement(gR,{className:"w-full cursor-pointer"},React.createElement(pR,{placeholder:__("Select region")})),React.createElement(vR,null,Object.entries(sC).map(([e,t])=>React.createElement(yR,{key:e,value:e,className:"cursor-pointer"},String(t)))))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.amazonses.access_key_id":"amazonses.access_key_id",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Access Key ID")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Access Key ID"),...e})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://console.aws.amazon.com/iam/home?region=us-east-1#/security_credentials",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Access Key ID"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.amazonses.secret_access_key":"amazonses.secret_access_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Secret Access Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your Secret Access Key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://console.aws.amazon.com/iam/home?region=us-east-1#/security_credentials",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Secret Access Key"))))})))))}function cC(){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Default"))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement(Af,{className:"w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("Please make sure your server have enabled PHP Mail() Function.")))))))}const uC=ze.createContext({});function dC(e){const t=ze.useRef(null);return null===t.current&&(t.current=e()),t.current}const mC="undefined"!=typeof window,hC=mC?ze.useLayoutEffect:ze.useEffect,fC=ze.createContext(null);function pC(e,t){-1===e.indexOf(t)&&e.push(t)}function gC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const vC=(e,t,n)=>n>t?t:n<e?e:n,yC={},bC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function wC(e){return"object"==typeof e&&null!==e}const xC=e=>/^0[^.\s]+$/u.test(e);function EC(e){let t;return()=>(void 0===t&&(t=e()),t)}const RC=e=>e,CC=(e,t)=>n=>t(e(n)),kC=(...e)=>e.reduce(CC),_C=(e,t,n)=>{const a=t-e;return 0===a?1:(n-e)/a};class SC{constructor(){this.subscriptions=[]}add(e){return pC(this.subscriptions,e),()=>gC(this.subscriptions,e)}notify(e,t,n){const a=this.subscriptions.length;if(a)if(1===a)this.subscriptions[0](e,t,n);else for(let r=0;r<a;r++){const a=this.subscriptions[r];a&&a(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const MC=e=>1e3*e,NC=e=>e/1e3;function PC(e,t){return t?e*(1e3/t):0}const AC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function DC(e,t,n,a){if(e===t&&n===a)return RC;return r=>0===r||1===r?r:AC(function(e,t,n,a,r){let o,i,s=0;do{i=t+(n-t)/2,o=AC(i,a,r)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++s<12);return i}(r,0,1,e,n),t,a)}const TC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,OC=e=>t=>1-e(1-t),FC=DC(.33,1.53,.69,.99),zC=OC(FC),LC=TC(zC),jC=e=>(e*=2)<1?.5*zC(e):.5*(2-Math.pow(2,-10*(e-1))),VC=e=>1-Math.sin(Math.acos(e)),IC=OC(VC),HC=TC(VC),BC=DC(.42,0,1,1),WC=DC(0,0,.58,1),UC=DC(.42,0,.58,1),$C=e=>Array.isArray(e)&&"number"==typeof e[0],ZC={linear:RC,easeIn:BC,easeInOut:UC,easeOut:WC,circIn:VC,circInOut:HC,circOut:IC,backIn:zC,backInOut:LC,backOut:FC,anticipate:jC},GC=e=>{if($C(e)){e.length;const[t,n,a,r]=e;return DC(t,n,a,r)}return"string"==typeof e?ZC[e]:e},qC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KC(e,t){let n=!1,a=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,i=qC.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,a=!1,r=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,r=!1,i=!1)=>{const s=i&&a?t:n;return r&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{i=e,a?r=!0:(a=!0,[t,n]=[n,t],t.forEach(s),t.clear(),a=!1,r&&(r=!1,l.process(e)))}};return l}(o),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:m,render:h,postRender:f}=i,p=()=>{const o=yC.useManualTiming?r.timestamp:performance.now();n=!1,yC.useManualTiming||(r.delta=a?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,s.process(r),l.process(r),c.process(r),u.process(r),d.process(r),m.process(r),h.process(r),f.process(r),r.isProcessing=!1,n&&t&&(a=!1,e(p))};return{schedule:qC.reduce((t,o)=>{const s=i[o];return t[o]=(t,o=!1,i=!1)=>(n||(n=!0,a=!0,r.isProcessing||e(p)),s.schedule(t,o,i)),t},{}),cancel:e=>{for(let t=0;t<qC.length;t++)i[qC[t]].cancel(e)},state:r,steps:i}}const{schedule:YC,cancel:XC,state:QC,steps:JC}=KC("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:RC,!0);let ek;function tk(){ek=void 0}const nk={now:()=>(void 0===ek&&nk.set(QC.isProcessing||yC.useManualTiming?QC.timestamp:performance.now()),ek),set:e=>{ek=e,queueMicrotask(tk)}},ak=e=>t=>"string"==typeof t&&t.startsWith(e),rk=ak("--"),ok=ak("var(--"),ik=e=>!!ok(e)&&sk.test(e.split("/*")[0].trim()),sk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,lk={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ck={...lk,transform:e=>vC(0,1,e)},uk={...lk,default:1},dk=e=>Math.round(1e5*e)/1e5,mk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,hk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fk=(e,t)=>n=>Boolean("string"==typeof n&&hk.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),pk=(e,t,n)=>a=>{if("string"!=typeof a)return a;const[r,o,i,s]=a.match(mk);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},gk={...lk,transform:e=>Math.round((e=>vC(0,255,e))(e))},vk={test:fk("rgb","red"),parse:pk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:a=1})=>"rgba("+gk.transform(e)+", "+gk.transform(t)+", "+gk.transform(n)+", "+dk(ck.transform(a))+")"},yk={test:fk("#"),parse:function(e){let t="",n="",a="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,a+=a,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:r?parseInt(r,16)/255:1}},transform:vk.transform},bk=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),wk=bk("deg"),xk=bk("%"),Ek=bk("px"),Rk=bk("vh"),Ck=bk("vw"),kk=(()=>({...xk,parse:e=>xk.parse(e)/100,transform:e=>xk.transform(100*e)}))(),_k={test:fk("hsl","hue"),parse:pk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+xk.transform(dk(t))+", "+xk.transform(dk(n))+", "+dk(ck.transform(a))+")"},Sk={test:e=>vk.test(e)||yk.test(e)||_k.test(e),parse:e=>vk.test(e)?vk.parse(e):_k.test(e)?_k.parse(e):yk.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?vk.transform(e):_k.transform(e),getAnimatableNone:e=>{const t=Sk.parse(e);return t.alpha=0,Sk.transform(t)}},Mk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Nk="number",Pk="color",Ak=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dk(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},r=[];let o=0;const i=t.replace(Ak,e=>(Sk.test(e)?(a.color.push(o),r.push(Pk),n.push(Sk.parse(e))):e.startsWith("var(")?(a.var.push(o),r.push("var"),n.push(e)):(a.number.push(o),r.push(Nk),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:i,indexes:a,types:r}}function Tk(e){return Dk(e).values}function Ok(e){const{split:t,types:n}=Dk(e),a=t.length;return e=>{let r="";for(let o=0;o<a;o++)if(r+=t[o],void 0!==e[o]){const t=n[o];r+=t===Nk?dk(e[o]):t===Pk?Sk.transform(e[o]):e[o]}return r}}const Fk=e=>"number"==typeof e?0:Sk.test(e)?Sk.getAnimatableNone(e):e,zk={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(mk))?void 0:t.length)||0)+((null==(n=e.match(Mk))?void 0:n.length)||0)>0},parse:Tk,createTransformer:Ok,getAnimatableNone:function(e){const t=Tk(e);return Ok(e)(t.map(Fk))}};function Lk(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jk(e,t){return n=>n>0?t:e}const Vk=(e,t,n)=>e+(t-e)*n,Ik=(e,t,n)=>{const a=e*e,r=n*(t*t-a)+a;return r<0?0:Math.sqrt(r)},Hk=[yk,vk,_k];function Bk(e){const t=(n=e,Hk.find(e=>e.test(n)));var n;if(!Boolean(t))return!1;let a=t.parse(e);return t===_k&&(a=function({hue:e,saturation:t,lightness:n,alpha:a}){e/=360,n/=100;let r=0,o=0,i=0;if(t/=100){const a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Lk(s,a,e+1/3),o=Lk(s,a,e),i=Lk(s,a,e-1/3)}else r=o=i=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*i),alpha:a}}(a)),a}const Wk=(e,t)=>{const n=Bk(e),a=Bk(t);if(!n||!a)return jk(e,t);const r={...n};return e=>(r.red=Ik(n.red,a.red,e),r.green=Ik(n.green,a.green,e),r.blue=Ik(n.blue,a.blue,e),r.alpha=Vk(n.alpha,a.alpha,e),vk.transform(r))},Uk=new Set(["none","hidden"]);function $k(e,t){return n=>Vk(e,t,n)}function Zk(e){return"number"==typeof e?$k:"string"==typeof e?ik(e)?jk:Sk.test(e)?Wk:Kk:Array.isArray(e)?Gk:"object"==typeof e?Sk.test(e)?Wk:qk:jk}function Gk(e,t){const n=[...e],a=n.length,r=e.map((e,n)=>Zk(e)(e,t[n]));return e=>{for(let t=0;t<a;t++)n[t]=r[t](e);return n}}function qk(e,t){const n={...e,...t},a={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(a[r]=Zk(e[r])(e[r],t[r]));return e=>{for(const t in a)n[t]=a[t](e);return n}}const Kk=(e,t)=>{const n=zk.createTransformer(t),a=Dk(e),r=Dk(t);return a.indexes.var.length===r.indexes.var.length&&a.indexes.color.length===r.indexes.color.length&&a.indexes.number.length>=r.indexes.number.length?Uk.has(e)&&!r.values.length||Uk.has(t)&&!a.values.length?function(e,t){return Uk.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):kC(Gk(function(e,t){const n=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],i=e.indexes[o][a[o]],s=e.values[i]??0;n[r]=s,a[o]++}return n}(a,r),r.values),n):jk(e,t)};function Yk(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Vk(e,t,n):Zk(e)(e,t)}const Xk=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>YC.update(t,e),stop:()=>XC(t),now:()=>QC.isProcessing?QC.timestamp:nk.now()}},Qk=(e,t,n=10)=>{let a="";const r=Math.max(Math.round(t/n),2);for(let o=0;o<r;o++)a+=Math.round(1e4*e(o/(r-1)))/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},Jk=2e4;function e_(e){let t=0,n=e.next(t);for(;!n.done&&t<Jk;)t+=50,n=e.next(t);return t>=Jk?1/0:t}function t_(e,t,n){const a=Math.max(t-5,0);return PC(n-e(a),t-a)}const n_=.01,a_=2,r_=.005,o_=.5;const i_=12;function s_(e,t){return e*Math.sqrt(1-t*t)}const l_=["duration","bounce"],c_=["stiffness","damping","mass"];function u_(e,t){return t.some(t=>void 0!==e[t])}function d_(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:a,restDelta:r}=n;const o=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:m,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!u_(e,c_)&&u_(e,l_))if(e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(1.2*n),r=a*a,o=2*vC(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:o}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:a=1}){let r,o,i=1-t;i=vC(.05,1,i),e=vC(.01,10,NC(e)),i<1?(r=t=>{const a=t*i,r=a*e;return.001-(a-n)/s_(t,i)*Math.exp(-r)},o=t=>{const a=t*i*e,o=a*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-a),c=s_(Math.pow(t,2),i);return(.001-r(t)>0?-1:1)*((o-s)*l)/c}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let a=n;for(let r=1;r<i_;r++)a-=e(a)/t(a);return a}(r,o,5/e);if(e=MC(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*a;return{stiffness:t,damping:2*i*Math.sqrt(a*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-NC(n.velocity||0)}),f=m||0,p=c/(2*Math.sqrt(l*u)),g=i-o,v=NC(Math.sqrt(l/u)),y=Math.abs(g)<5;let b;if(a||(a=y?n_:a_),r||(r=y?r_:o_),p<1){const e=s_(v,p);b=t=>{const n=Math.exp(-p*v*t);return i-n*((f+p*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===p)b=e=>i-Math.exp(-v*e)*(g+(f+v*g)*e);else{const e=v*Math.sqrt(p*p-1);b=t=>{const n=Math.exp(-p*v*t),a=Math.min(e*t,300);return i-n*((f+p*v*g)*Math.sinh(a)+e*g*Math.cosh(a))/e}}const w={calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let n=0===e?f:0;p<1&&(n=0===e?MC(f):t_(b,e,t));const o=Math.abs(n)<=a,l=Math.abs(i-t)<=r;s.done=o&&l}return s.value=s.done?i:t,s},toString:()=>{const e=Math.min(e_(w),Jk),t=Qk(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function m_({keyframes:e,velocity:t=0,power:n=.8,timeConstant:a=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=n*t;const p=d+f,g=void 0===i?p:i(p);g!==p&&(f=g-d);const v=e=>-f*Math.exp(-e/a),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let w,x;const E=e=>{var t;t=m.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=d_({keyframes:[m.value,h(m.value)],velocity:t_(y,e,m.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),E(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),m)}}}function h_({duration:e=300,keyframes:t,times:n,ease:a="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(a)?a.map(GC):GC(a),o={done:!1,value:t[0]},i=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const r=_C(0,t,a);e.push(Vk(n,1,r))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:a,mixer:r}={}){const o=e.length;if(t.length,1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const a=[],r=n||yC.mix||Yk,o=e.length-1;for(let i=0;i<o;i++){let n=r(e[i],e[i+1]);if(t){const e=Array.isArray(t)?t[i]||RC:t;n=kC(e,n)}a.push(n)}return a}(t,a,r),l=s.length,c=n=>{if(i&&n<e[0])return t[0];let a=0;if(l>1)for(;a<e.length-2&&!(n<e[a+1]);a++);const r=_C(e[a],e[a+1],n);return s[a](r)};return n?t=>c(vC(e[0],e[o-1],t)):c}(i,t,{ease:Array.isArray(r)?r:(l=t,c=r,l.map(()=>c||UC).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}d_.applyToOptions=e=>{const t=function(e,t=100){const n=d_({...e,keyframes:[0,t]}),a=Math.min(e_(n),Jk);return{type:"keyframes",ease:e=>n.next(a*e).value/t,duration:NC(a)}}(e,100);return e.ease=t.ease,e.duration=MC(t.duration),e.type="keyframes",e};const f_=e=>null!==e;function p_(e,{repeat:t,repeatType:n="loop"},a,r=1){const o=e.filter(f_),i=r<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==a?a:o[i]}const g_={decay:m_,inertia:m_,tween:h_,keyframes:h_,spring:d_};function v_(e){"string"==typeof e.type&&(e.type=g_[e.type])}class y_{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const b_=e=>e/100;class w_ extends y_{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==nk.now()&&this.tick(nk.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;v_(e);const{type:t=h_,repeat:n=0,repeatDelay:a=0,repeatType:r,velocity:o=0}=e;let{keyframes:i}=e;const s=t||h_;s!==h_&&"number"!=typeof i[0]&&(this.mixKeyframes=kC(b_,Yk(i[0],i[1])),i=[0,100]);const l=s({...e,keyframes:i});"mirror"===r&&(this.mirroredGenerator=s({...e,keyframes:[...i].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=e_(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+a,this.totalDuration=this.resolvedDuration*(n+1)-a,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:a,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:i,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:m,type:h,onUpdate:f,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>a;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=a);let y=this.currentTime,b=n;if(u){const e=Math.min(this.currentTime,a)/i;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1),Boolean(t%2)&&("reverse"===d?(n=1-n,m&&(n-=m/i)):"mirror"===d&&(b=o)),y=vC(0,1,n)*i}const w=v?{done:!1,value:c[0]}:b.next(y);r&&(w.value=r(w.value));let{done:x}=w;v||null===s||(x=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return E&&h!==m_&&(w.value=p_(c,this.options,p,this.speed)),f&&f(w.value),E&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return NC(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+NC(e)}get time(){return NC(this.currentTime)}set time(e){var t;e=MC(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),null==(t=this.driver)||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(nk.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=NC(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=Xk,startTime:a}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),null==(t=(e=this.options).onPlay)||t.call(e);const r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(nk.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(t=this.driver)||t.stop(),e.observe(this)}}const x_=e=>180*e/Math.PI,E_=e=>{const t=x_(Math.atan2(e[1],e[0]));return C_(t)},R_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:E_,rotateZ:E_,skewX:e=>x_(Math.atan(e[1])),skewY:e=>x_(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},C_=e=>((e%=360)<0&&(e+=360),e),k_=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),S_=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),M_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:k_,scaleY:S_,scale:e=>(k_(e)+S_(e))/2,rotateX:e=>C_(x_(Math.atan2(e[6],e[5]))),rotateY:e=>C_(x_(Math.atan2(-e[2],e[0]))),rotateZ:E_,rotate:E_,skewX:e=>x_(Math.atan(e[4])),skewY:e=>x_(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function N_(e){return e.includes("scale")?1:0}function P_(e,t){if(!e||"none"===e)return N_(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,r;if(n)a=M_,r=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=R_,r=t}if(!r)return N_(t);const o=a[t],i=r[1].split(",").map(A_);return"function"==typeof o?o(i):i[o]}function A_(e){return parseFloat(e.trim())}const D_=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],T_=(()=>new Set(D_))(),O_=e=>e===lk||e===Ek,F_=new Set(["x","y","z"]),z_=D_.filter(e=>!F_.has(e)),L_={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>P_(t,"x"),y:(e,{transform:t})=>P_(t,"y")};L_.translateX=L_.x,L_.translateY=L_.y;const j_=new Set;let V_=!1,I_=!1,H_=!1;function B_(){if(I_){const e=Array.from(j_).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return z_.forEach(n=>{const a=e.getValue(n);void 0!==a&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var a;null==(a=e.getValue(t))||a.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}I_=!1,V_=!1,j_.forEach(e=>e.complete(H_)),j_.clear()}function W_(){j_.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(I_=!0)})}class U_{constructor(e,t,n,a,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=a,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(j_.add(this),V_||(V_=!0,YC.read(W_),YC.resolveKeyframes(B_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:a}=this;if(null===e[0]){const r=null==a?void 0:a.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){const a=n.readValue(t,o);null!=a&&(e[0]=a)}void 0===e[0]&&(e[0]=o),a&&void 0===r&&a.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),j_.delete(this)}cancel(){"scheduled"===this.state&&(j_.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const $_=EC(()=>void 0!==window.ScrollTimeline),Z_={};function G_(e,t){const n=EC(e);return()=>Z_[t]??n()}const q_=G_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(nV){return!1}return!0},"linearEasing"),K_=([e,t,n,a])=>`cubic-bezier(${e}, ${t}, ${n}, ${a})`,Y_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:K_([0,.65,.55,1]),circOut:K_([.55,0,1,.45]),backIn:K_([.31,.01,.66,-.59]),backOut:K_([.33,1.53,.69,.99])};function X_(e,t){return e?"function"==typeof e?q_()?Qk(e,t):"ease-out":$C(e)?K_(e):Array.isArray(e)?e.map(e=>X_(e,t)||Y_.easeOut):Y_[e]:void 0}function Q_(e,t,n,{delay:a=0,duration:r=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=X_(s,r);Array.isArray(d)&&(u.easing=d);const m={delay:a,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"};return c&&(m.pseudoElement=c),e.animate(u,m)}function J_(e){return"function"==typeof e&&"applyToOptions"in e}class eS extends y_{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:a,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:i,onComplete:s}=e;this.isPseudoElement=Boolean(r),this.allowFlatten=o,this.options=e,e.type;const l=function({type:e,...t}){return J_(e)&&q_()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Q_(t,n,a,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const e=p_(a,this.options,i,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}null==s||s(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch(nV){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||null==(t=(e=this.animation).commitStyles)||t.call(e)}get duration(){var e,t;const n=(null==(t=null==(e=this.animation.effect)?void 0:e.getComputedTiming)?void 0:t.call(e).duration)||0;return NC(Number(n))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+NC(e)}get time(){return NC(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=MC(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&$_()?(this.animation.timeline=e,RC):t(this)}}const tS={anticipate:jC,backInOut:LC,circInOut:HC};class nS extends eS{constructor(e){var t;"string"==typeof(t=e).ease&&t.ease in tS&&(t.ease=tS[t.ease]),v_(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:a,element:r,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const i=new w_({...o,autoplay:!1}),s=MC(this.finishedTime??this.time);t.setWithVelocity(i.sample(s-10).value,i.sample(s).value,10),i.stop()}}const aS=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!zk.test(e)&&"0"!==e||e.startsWith("url(")));function rS(e){e.duration=0,e.type="keyframes"}const oS=new Set(["opacity","clipPath","filter","transform"]),iS=EC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sS extends y_{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:a=0,repeatDelay:r=0,repeatType:o="loop",keyframes:i,name:s,motionValue:l,element:c,...u}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=nk.now();const m={autoplay:e,delay:t,type:n,repeat:a,repeatDelay:r,repeatType:o,name:s,motionValue:l,element:c,...u},h=(null==c?void 0:c.KeyframeResolver)||U_;this.keyframeResolver=new h(i,(e,t,n)=>this.onKeyframesResolved(e,t,m,!n),s,l,c),null==(d=this.keyframeResolver)||d.scheduleResolve()}onKeyframesResolved(e,t,n,a){this.keyframeResolver=void 0;const{name:r,type:o,velocity:i,delay:s,isHandoff:l,onUpdate:c}=n;this.resolvedAt=nk.now(),function(e,t,n,a){const r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],i=aS(r,t),s=aS(o,t);return!(!i||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||J_(n))&&a)}(e,r,o,i)||(!yC.instantAnimations&&s||null==c||c(p_(e,n,t)),e[0]=e[e.length-1],rS(n),n.repeat=0);const u={startTime:a?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){var t;const{motionValue:n,name:a,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!((null==(t=null==n?void 0:n.owner)?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return iS()&&a&&oS.has(a)&&("transform"!==a||!c)&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}(u)?new nS({...u,element:u.motionValue.owner.current}):new w_(u);d.finished.then(()=>this.notifyFinished()).catch(RC),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||(null==(e=this.keyframeResolver)||e.resume(),H_=!0,W_(),B_(),H_=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null==(e=this.keyframeResolver)||e.cancel()}}const lS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cS(e,t,n=1){const[a,r]=function(e){const t=lS.exec(e);if(!t)return[,];const[,n,a,r]=t;return[`--${n??a}`,r]}(e);if(!a)return;const o=window.getComputedStyle(t).getPropertyValue(a);if(o){const e=o.trim();return bC(e)?parseFloat(e):e}return ik(r)?cS(r,t,n+1):r}function uS(e,t){return(null==e?void 0:e[t])??(null==e?void 0:e.default)??e}const dS=new Set(["width","height","top","left","right","bottom",...D_]),mS=e=>t=>t.test(e),hS=[lk,Ek,xk,wk,Ck,Rk,{test:e=>"auto"===e,parse:e=>e}],fS=e=>hS.find(mS(e));function pS(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||xC(e)}const gS=new Set(["brightness","contrast","saturate","opacity"]);function vS(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[a]=n.match(mk)||[];if(!a)return e;const r=n.replace(a,"");let o=gS.has(t)?1:0;return a!==n&&(o*=100),t+"("+o+r+")"}const yS=/\b([a-z-]*)\(.*?\)/gu,bS={...zk,getAnimatableNone:e=>{const t=e.match(yS);return t?t.map(vS).join(" "):e}},wS={...lk,transform:Math.round},xS={borderWidth:Ek,borderTopWidth:Ek,borderRightWidth:Ek,borderBottomWidth:Ek,borderLeftWidth:Ek,borderRadius:Ek,radius:Ek,borderTopLeftRadius:Ek,borderTopRightRadius:Ek,borderBottomRightRadius:Ek,borderBottomLeftRadius:Ek,width:Ek,maxWidth:Ek,height:Ek,maxHeight:Ek,top:Ek,right:Ek,bottom:Ek,left:Ek,padding:Ek,paddingTop:Ek,paddingRight:Ek,paddingBottom:Ek,paddingLeft:Ek,margin:Ek,marginTop:Ek,marginRight:Ek,marginBottom:Ek,marginLeft:Ek,backgroundPositionX:Ek,backgroundPositionY:Ek,rotate:wk,rotateX:wk,rotateY:wk,rotateZ:wk,scale:uk,scaleX:uk,scaleY:uk,scaleZ:uk,skew:wk,skewX:wk,skewY:wk,distance:Ek,translateX:Ek,translateY:Ek,translateZ:Ek,x:Ek,y:Ek,z:Ek,perspective:Ek,transformPerspective:Ek,opacity:ck,originX:kk,originY:kk,originZ:Ek,zIndex:wS,fillOpacity:ck,strokeOpacity:ck,numOctaves:wS},ES={...xS,color:Sk,backgroundColor:Sk,outlineColor:Sk,fill:Sk,stroke:Sk,borderColor:Sk,borderTopColor:Sk,borderRightColor:Sk,borderBottomColor:Sk,borderLeftColor:Sk,filter:bS,WebkitFilter:bS},RS=e=>ES[e];function CS(e,t){let n=RS(e);return n!==bS&&(n=zk),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kS=new Set(["auto","none","0"]);class _S extends U_{constructor(e,t,n,a,r){super(e,t,n,a,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"==typeof n&&(n=n.trim(),ik(n))){const a=cS(n,t.current);void 0!==a&&(e[s]=a),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!dS.has(n)||2!==e.length)return;const[a,r]=e,o=fS(a),i=fS(r);if(o!==i)if(O_(o)&&O_(i))for(let s=0;s<e.length;s++){const t=e[s];"string"==typeof t&&(e[s]=parseFloat(t))}else L_[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let a=0;a<e.length;a++)(null===e[a]||pS(e[a]))&&n.push(a);n.length&&function(e,t,n){let a,r=0;for(;r<e.length&&!a;){const t=e[r];"string"==typeof t&&!kS.has(t)&&Dk(t).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=CS(n,a)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=L_[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const a=t[t.length-1];void 0!==a&&e.getValue(n,a).jump(a,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:a}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=a.length-1,i=a[o];a[o]=L_[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const SS=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function MS(e){return wC(e)&&"offsetHeight"in e}class NS{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t;const n=nk.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null==(t=this.events.change)||t.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=nk.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SC);const n=this.events[e].add(t);return"change"===e?()=>{n(),YC.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null==(e=this.events.change)||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=nk.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return PC(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null==(e=this.dependents)||e.clear(),null==(t=this.events.destroy)||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function PS(e,t){return new NS(e,t)}const{schedule:AS}=KC(queueMicrotask,!1),DS={x:!1,y:!1};function TS(){return DS.x||DS.y}function OS(e,t){const n=function(e){if(e instanceof EventTarget)return[e];if("string"==typeof e){const t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),a=new AbortController;return[n,{passive:!0,...t,signal:a.signal},()=>a.abort()]}function FS(e){return!("touch"===e.pointerType||TS())}const zS=(e,t)=>!!t&&(e===t||zS(e,t.parentElement)),LS=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,jS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),VS=new WeakSet;function IS(e){return t=>{"Enter"===t.key&&e(t)}}function HS(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function BS(e){return LS(e)&&!TS()}function WS(e){return wC(e)&&"ownerSVGElement"in e}const US=e=>Boolean(e&&e.getVelocity),$S=[...hS,Sk,zk],ZS=ze.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function GS(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class qS extends ze.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=MS(e)&&e.offsetWidth||0,a=this.props.sizeRef.current;a.height=t.offsetHeight||0,a.width=t.offsetWidth||0,a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function KS({children:e,isPresent:t,anchorX:n,root:a}){const r=ze.useId(),o=ze.useRef(null),i=ze.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=ze.useContext(ZS),l=function(...e){return ze.useCallback(function(...e){return t=>{let n=!1;const a=e.map(e=>{const a=GS(e,t);return n||"function"!=typeof a||(n=!0),a});if(n)return()=>{for(let t=0;t<a.length;t++){const n=a[t];"function"==typeof n?n():GS(e[t],null)}}}}(...e),e)}(o,null==e?void 0:e.ref);return ze.useInsertionEffect(()=>{const{width:e,height:l,top:c,left:u,right:d}=i.current;if(t||!o.current||!e||!l)return;const m="left"===n?`left: ${u}`:`right: ${d}`;o.current.dataset.motionPopId=r;const h=document.createElement("style");s&&(h.nonce=s);const f=a??document.head;return f.appendChild(h),h.sheet&&h.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${l}px !important;\n            ${m}px !important;\n            top: ${c}px !important;\n          }\n        `),()=>{f.contains(h)&&f.removeChild(h)}},[t]),Wt.jsx(qS,{isPresent:t,childRef:o,sizeRef:i,children:ze.cloneElement(e,{ref:l})})}const YS=({children:e,initial:t,isPresent:n,onExitComplete:a,custom:r,presenceAffectsLayout:o,mode:i,anchorX:s,root:l})=>{const c=dC(XS),u=ze.useId();let d=!0,m=ze.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:r,onExitComplete:e=>{c.set(e,!0);for(const t of c.values())if(!t)return;a&&a()},register:e=>(c.set(e,!1),()=>c.delete(e))}),[n,c,a]);return o&&d&&(m={...m}),ze.useMemo(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),ze.useEffect(()=>{!n&&!c.size&&a&&a()},[n]),"popLayout"===i&&(e=Wt.jsx(KS,{isPresent:n,anchorX:s,root:l,children:e})),Wt.jsx(fC.Provider,{value:m,children:e})};function XS(){return new Map}function QS(e=!0){const t=ze.useContext(fC);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:a,register:r}=t,o=ze.useId();ze.useEffect(()=>{if(e)return r(o)},[e]);const i=ze.useCallback(()=>e&&a&&a(o),[o,a,e]);return!n&&a?[!1,i]:[!0]}const JS=e=>e.key||"";function eM(e){const t=[];return ze.Children.forEach(e,e=>{ze.isValidElement(e)&&t.push(e)}),t}const tM=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:r=!0,mode:o="sync",propagate:i=!1,anchorX:s="left",root:l})=>{const[c,u]=QS(i),d=ze.useMemo(()=>eM(e),[e]),m=i&&!c?[]:d.map(JS),h=ze.useRef(!0),f=ze.useRef(d),p=dC(()=>new Map),[g,v]=ze.useState(d),[y,b]=ze.useState(d);hC(()=>{h.current=!1,f.current=d;for(let e=0;e<y.length;e++){const t=JS(y[e]);m.includes(t)?p.delete(t):!0!==p.get(t)&&p.set(t,!1)}},[y,m.length,m.join("-")]);const w=[];if(d!==g){let e=[...d];for(let t=0;t<y.length;t++){const n=y[t],a=JS(n);m.includes(a)||(e.splice(t,0,n),w.push(n))}return"wait"===o&&w.length&&(e=w),b(eM(e)),v(d),null}const{forceRender:x}=ze.useContext(uC);return Wt.jsx(Wt.Fragment,{children:y.map(e=>{const g=JS(e),v=!(i&&!c)&&(d===y||m.includes(g));return Wt.jsx(YS,{isPresent:v,initial:!(h.current&&!n)&&void 0,custom:t,presenceAffectsLayout:r,mode:o,root:l,onExitComplete:v?void 0:()=>{if(!p.has(g))return;p.set(g,!0);let e=!0;p.forEach(t=>{t||(e=!1)}),e&&(null==x||x(),b(f.current),i&&(null==u||u()),a&&a())},anchorX:s,children:e},g)})})},nM=ze.createContext({strict:!1}),aM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rM={};for(const rV in aM)rM[rV]={isEnabled:e=>aM[rV].some(t=>!!e[t])};const oM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function iM(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oM.has(e)}let sM=e=>!iM(e);try{"function"==typeof(lM=require("@emotion/is-prop-valid").default)&&(sM=e=>e.startsWith("on")?!iM(e):lM(e))}catch{}var lM;const cM=ze.createContext({});function uM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function dM(e){return"string"==typeof e||Array.isArray(e)}const mM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hM=["initial",...mM];function fM(e){return uM(e.animate)||hM.some(t=>dM(e[t]))}function pM(e){return Boolean(fM(e)||e.variants)}function gM(e){return Array.isArray(e)?e.join(" "):e}const vM={};function yM(e,{layout:t,layoutId:n}){return T_.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!vM[e]||"opacity"===e)}const bM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wM=D_.length;function xM(e,t,n){const{style:a,vars:r,transformOrigin:o}=e;let i=!1,s=!1;for(const l in t){const e=t[l];if(T_.has(l))i=!0;else if(rk(l))r[l]=e;else{const t=SS(e,xS[l]);l.startsWith("origin")?(s=!0,o[l]=t):a[l]=t}}if(t.transform||(i||n?a.transform=function(e,t,n){let a="",r=!0;for(let o=0;o<wM;o++){const i=D_[o],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=SS(s,xS[i]);l||(r=!1,a+=`${bM[i]||i}(${e}) `),n&&(t[i]=e)}}return a=a.trim(),n?a=n(t,r?"":a):r&&(a="none"),a}(t,e.transform,n):a.transform&&(a.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;a.transformOrigin=`${e} ${t} ${n}`}}function EM(e,t,n){for(const a in t)US(t[a])||yM(a,n)||(e[a]=t[a])}function RM(e,t){const n={},a=function(e,t){const n={};return EM(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return ze.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return xM(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const CM={offset:"stroke-dashoffset",array:"stroke-dasharray"},kM={offset:"strokeDashoffset",array:"strokeDasharray"};function _M(e,{attrX:t,attrY:n,attrScale:a,pathLength:r,pathSpacing:o=1,pathOffset:i=0,...s},l,c,u){if(xM(e,s,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=(null==u?void 0:u.transformBox)??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==a&&(d.scale=a),void 0!==r&&function(e,t,n=1,a=0,r=!0){e.pathLength=1;const o=r?CM:kM;e[o.offset]=Ek.transform(-a);const i=Ek.transform(t),s=Ek.transform(n);e[o.array]=`${i} ${s}`}(d,r,o,i,!1)}const SM=e=>"string"==typeof e&&"svg"===e.toLowerCase();function MM(e,t,n,a){const r=ze.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return _M(n,t,SM(a),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};EM(t,e.style,e),r.style={...t,...r.style}}return r}const NM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function PM(e){return"string"==typeof e&&!e.includes("-")&&!!(NM.indexOf(e)>-1||/[A-Z]/u.test(e))}function AM(e,t,n,{latestValues:a},r,o=!1){const i=(PM(e)?MM:RM)(t,a,r,e),s=function(e,t,n){const a={};for(const r in e)"values"===r&&"object"==typeof e.values||(sM(r)||!0===n&&iM(r)||!t&&!iM(r)||e.draggable&&r.startsWith("onDrag"))&&(a[r]=e[r]);return a}(t,"string"==typeof e,o),l=e!==ze.Fragment?{...s,...i,ref:n}:{},{children:c}=t,u=ze.useMemo(()=>US(c)?c.get():c,[c]);return ze.createElement(e,{...l,children:u})}function DM(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function TM(e,t,n,a){if("function"==typeof t){const[r,o]=DM(a);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[r,o]=DM(a);t=t(void 0!==n?n:e.custom,r,o)}return t}function OM(e){return US(e)?e.get():e}function FM(e,t,n,a){const r={},o=a(e,{});for(const m in o)r[m]=OM(o[m]);let{initial:i,animate:s}=e;const l=fM(e),c=pM(e);t&&c&&!l&&!1!==e.inherit&&(void 0===i&&(i=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===i;const d=u?s:i;if(d&&"boolean"!=typeof d&&!uM(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const a=TM(e,t[n]);if(a){const{transitionEnd:e,transition:t,...n}=a;for(const a in n){let e=n[a];Array.isArray(e)&&(e=e[u?e.length-1:0]),null!==e&&(r[a]=e)}for(const a in e)r[a]=e[a]}}}return r}const zM=e=>(t,n)=>{const a=ze.useContext(cM),r=ze.useContext(fC),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,a,r){return{latestValues:FM(n,a,r,e),renderState:t()}}(e,t,a,r);return n?o():dC(o)};function LM(e,t,n){var a;const{style:r}=e,o={};for(const i in r)(US(r[i])||t.style&&US(t.style[i])||yM(i,e)||void 0!==(null==(a=null==n?void 0:n.getValue(i))?void 0:a.liveStyle))&&(o[i]=r[i]);return o}const jM=zM({scrapeMotionValuesFromProps:LM,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})});function VM(e,t,n){const a=LM(e,t,n);for(const r in e)(US(e[r])||US(t[r]))&&(a[-1!==D_.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return a}const IM=zM({scrapeMotionValuesFromProps:VM,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),HM=Symbol.for("motionComponentSymbol");function BM(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function WM(e,t,n){return ze.useCallback(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),n&&("function"==typeof n?n(a):BM(n)&&(n.current=a))},[t])}const UM=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$M="data-"+UM("framerAppearId"),ZM=ze.createContext({});function GM(e,t,n,a,r){var o,i;const{visualElement:s}=ze.useContext(cM),l=ze.useContext(nM),c=ze.useContext(fC),u=ze.useContext(ZS).reducedMotion,d=ze.useRef(null);a=a||l.renderer,!d.current&&a&&(d.current=a(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const m=d.current,h=ze.useContext(ZM);!m||m.projection||!r||"html"!==m.type&&"svg"!==m.type||function(e,t,n,a){const{layoutId:r,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qM(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:Boolean(i)||s&&BM(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:a,crossfade:u,layoutScroll:l,layoutRoot:c})}(d.current,n,r,h);const f=ze.useRef(!1);ze.useInsertionEffect(()=>{m&&f.current&&m.update(n,c)});const p=n[$M],g=ze.useRef(Boolean(p)&&!(null==(o=window.MotionHandoffIsComplete)?void 0:o.call(window,p))&&(null==(i=window.MotionHasOptimisedAnimation)?void 0:i.call(window,p)));return hC(()=>{m&&(f.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),g.current&&m.animationState&&m.animationState.animateChanges())}),ze.useEffect(()=>{m&&(!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,p)}),g.current=!1),m.enteringChildren=void 0)}),m}function qM(e){if(e)return!1!==e.options.allowProjection?e.projection:qM(e.parent)}function KM(e,{forwardMotionProps:t=!1}={},n,a){n&&function(e){for(const t in e)rM[t]={...rM[t],...e[t]}}(n);const r=PM(e)?IM:jM;function o(n,o){let i;const s={...ze.useContext(ZS),...n,layoutId:YM(n)},{isStatic:l}=s,c=function(e){const{initial:t,animate:n}=function(e,t){if(fM(e)){const{initial:t,animate:n}=e;return{initial:!1===t||dM(t)?t:void 0,animate:dM(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,ze.useContext(cM));return ze.useMemo(()=>({initial:t,animate:n}),[gM(t),gM(n)])}(n),u=r(n,l);if(!l&&mC){ze.useContext(nM).strict;const t=function(e){const{drag:t,layout:n}=rM;if(!t&&!n)return{};const a={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}(s);i=t.MeasureLayout,c.visualElement=GM(e,u,s,a,t.ProjectionNode)}return Wt.jsxs(cM.Provider,{value:c,children:[i&&c.visualElement?Wt.jsx(i,{visualElement:c.visualElement,...s}):null,AM(e,n,WM(u,c.visualElement,o),u,l,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const i=ze.forwardRef(o);return i[HM]=e,i}function YM({layoutId:e}){const t=ze.useContext(uC).id;return t&&void 0!==e?t+"-"+e:e}function XM(e,t){if("undefined"==typeof Proxy)return KM;const n=new Map,a=(n,a)=>KM(n,a,e,t);return new Proxy((e,t)=>a(e,t),{get:(r,o)=>"create"===o?a:(n.has(o)||n.set(o,KM(o,void 0,e,t)),n.get(o))})}function QM({top:e,left:t,right:n,bottom:a}){return{x:{min:t,max:n},y:{min:e,max:a}}}function JM(e){return void 0===e||1===e}function eN({scale:e,scaleX:t,scaleY:n}){return!JM(e)||!JM(t)||!JM(n)}function tN(e){return eN(e)||nN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nN(e){return aN(e.x)||aN(e.y)}function aN(e){return e&&"0%"!==e}function rN(e,t,n){return n+t*(e-n)}function oN(e,t,n,a,r){return void 0!==r&&(e=rN(e,r,a)),rN(e,n,a)+t}function iN(e,t=0,n=1,a,r){e.min=oN(e.min,t,n,a,r),e.max=oN(e.max,t,n,a,r)}function sN(e,{x:t,y:n}){iN(e.x,t.translate,t.scale,t.originPoint),iN(e.y,n.translate,n.scale,n.originPoint)}const lN=.999999999999,cN=1.0000000000001;function uN(e,t){e.min=e.min+t,e.max=e.max+t}function dN(e,t,n,a,r=.5){iN(e,t,n,Vk(e.min,e.max,r),a)}function mN(e,t){dN(e.x,t.x,t.scaleX,t.scale,t.originX),dN(e.y,t.y,t.scaleY,t.scale,t.originY)}function hN(e,t){return QM(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}(e.getBoundingClientRect(),t))}const fN=()=>({x:{min:0,max:0},y:{min:0,max:0}}),pN={current:null},gN={current:!1},vN=new WeakMap,yN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class bN{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:a,blockInitialAnimation:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=U_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=nk.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,YC.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=i,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=fM(t),this.isVariantNode=pM(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const d in u){const e=u[d];void 0!==s[d]&&US(e)&&e.set(s[d])}}mount(e){var t;this.current=e,vN.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),gN.current||function(){if(gN.current=!0,mC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pN.current=e.matches;e.addEventListener("change",t),t()}else pN.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||pN.current),null==(t=this.parent)||t.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),XC(this.notifyUpdate),XC(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(e=this.parent)||e.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=T_.has(e);n&&this.onBindTransform&&this.onBindTransform();const a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&YC.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in rM){const t=rM[e];if(!t)continue;const{isEnabled:n,Feature:a}=t;if(!this.features[e]&&a&&n(this.props)&&(this.features[e]=new a(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<yN.length;n++){const t=yN[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const a=e["on"+t];a&&(this.propEventSubscriptions[t]=this.on(t,a))}this.prevMotionValues=function(e,t,n){for(const a in t){const r=t[a],o=n[a];if(US(r))e.addValue(a,r);else if(US(o))e.addValue(a,PS(r,{owner:e}));else if(o!==r)if(e.hasValue(a)){const t=e.getValue(a);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{const t=e.getStaticValue(a);e.addValue(a,PS(void 0!==t?t:r,{owner:e}))}}for(const a in n)void 0===t[a]&&e.removeValue(a);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=PS(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var a;return null!=n&&("string"==typeof n&&(bC(n)||xC(n))?n=parseFloat(n):(a=n,!$S.find(mS(a))&&zk.test(t)&&(n=CS(e,t))),this.setBaseTarget(e,US(n)?n.get():n)),US(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let a;if("string"==typeof n||"object"==typeof n){const r=TM(this.props,n,null==(t=this.presenceContext)?void 0:t.custom);r&&(a=r[e])}if(n&&void 0!==a)return a;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||US(r)?void 0!==this.initialValues[e]&&void 0===a?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new SC),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){AS.render(this.render)}}class wN extends bN{constructor(){super(...arguments),this.KeyframeResolver=_S}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;US(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function xN(e,{style:t,vars:n},a,r){const o=e.style;let i;for(i in t)o[i]=t[i];for(i in null==r||r.applyProjectionStyles(o,a),n)o.setProperty(i,n[i])}class EN extends wN{constructor(){super(...arguments),this.type="html",this.renderInstance=xN}readValueFromInstance(e,t){var n,a;if(T_.has(t))return(null==(n=this.projection)?void 0:n.isProjecting)?N_(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return P_(n,t)})(e,t);{const n=(a=e,window.getComputedStyle(a)),r=(rk(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return hN(e,t)}build(e,t,n){xM(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return LM(e,t,n)}}const RN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class CN extends wN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fN}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(T_.has(t)){const e=RS(t);return e&&e.default||0}return t=RN.has(t)?t:UM(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return VM(e,t,n)}build(e,t,n){_M(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,a){!function(e,t,n,a){xN(e,t,void 0,a);for(const r in t.attrs)e.setAttribute(RN.has(r)?r:UM(r),t.attrs[r])}(e,t,0,a)}mount(e){this.isSVGTag=SM(e.tagName),super.mount(e)}}const kN=(e,t)=>PM(e)?new CN(t):new EN(t,{allowProjection:e!==ze.Fragment});function _N(e,t,n){const a=e.getProps();return TM(a,t,void 0!==n?n:a.custom,e)}const SN=e=>Array.isArray(e);function MN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,PS(n))}function NN(e){return SN(e)?e[e.length-1]||0:e}function PN(e,t){const n=e.getValue("willChange");if(a=n,Boolean(US(a)&&a.add))return n.add(t);if(!n&&yC.WillChange){const n=new yC.WillChange("auto");e.addValue("willChange",n),n.add(t)}var a}function AN(e){return e.props[$M]}const DN=e=>null!==e,TN={type:"spring",stiffness:500,damping:25,restSpeed:10},ON={type:"keyframes",duration:.8},FN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zN=(e,t,n,a={},r,o)=>i=>{const s=uS(a,e)||{},l=s.delay||a.delay||0;let{elapsed:c=0}=a;c-=MC(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:r};(function({when:e,delay:t,delayChildren:n,staggerChildren:a,staggerDirection:r,repeat:o,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||Object.assign(u,((e,{keyframes:t})=>t.length>2?ON:T_.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:TN:FN)(e,u)),u.duration&&(u.duration=MC(u.duration)),u.repeatDelay&&(u.repeatDelay=MC(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(rS(u),0===u.delay&&(d=!0)),(yC.instantAnimations||yC.skipAnimations)&&(d=!0,rS(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!o&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"}){const a=e.filter(DN);return a[t&&"loop"!==n&&t%2==1?0:a.length-1]}(u.keyframes,s);if(void 0!==e)return void YC.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new w_(u):new sS(u)};function LN({protectedKeys:e,needsAnimating:t},n){const a=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,a}function jN(e,t,{delay:n=0,transitionOverride:a,type:r}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...s}=t;a&&(o=a);const l=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const u in s){const t=e.getValue(u,e.latestValues[u]??null),a=s[u];if(void 0===a||c&&LN(c,u))continue;const r={delay:n,...uS(o||{},u)},i=t.get();if(void 0!==i&&!t.isAnimating&&!Array.isArray(a)&&a===i&&!r.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const t=AN(e);if(t){const e=window.MotionHandoffAnimation(t,u,YC);null!==e&&(r.startTime=e,d=!0)}}PN(e,u),t.start(zN(u,t,a,e.shouldReduceMotion&&dS.has(u)?{type:!1}:r,e,d));const m=t.animation;m&&l.push(m)}return i&&Promise.all(l).then(()=>{YC.update(()=>{i&&function(e,t){const n=_N(e,t);let{transitionEnd:a={},transition:r={},...o}=n||{};o={...o,...a};for(const i in o)MN(e,i,NN(o[i]))}(e,i)})}),l}function VN(e,t,n,a=0,r=1){const o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),i=e.size,s=(i-1)*a;return"function"==typeof n?n(o,i):1===r?o*a:s-o*a}function IN(e,t,n={}){var a;const r=_N(e,t,"exit"===n.type?null==(a=e.presenceContext)?void 0:a.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(jN(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:r=0,staggerChildren:i,staggerDirection:s}=o;return function(e,t,n=0,a=0,r=0,o=1,i){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(IN(l,t,{...i,delay:n+("function"==typeof a?0:a)+VN(e.variantChildren,l,a,r,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,a,r,i,s,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[e,t]="beforeChildren"===l?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}function HN(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}const BN=hM.length;function WN(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&WN(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<BN;n++){const a=hM[n],r=e.props[a];(dM(r)||!1===r)&&(t[a]=r)}return t}const UN=[...mM].reverse(),$N=mM.length;function ZN(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let a;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map(t=>IN(e,t,n));a=Promise.all(r)}else if("string"==typeof t)a=IN(e,t,n);else{const r="function"==typeof t?_N(e,t,n.custom):t;a=Promise.all(jN(e,r,n))}return a.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=KN(),a=!0;const r=t=>(n,a)=>{var r;const o=_N(e,a,"exit"===t?null==(r=e.presenceContext)?void 0:r.custom:void 0);if(o){const{transition:e,transitionEnd:t,...a}=o;n={...n,...a,...t}}return n};function o(o){const{props:i}=e,s=WN(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<$N;t++){const m=UN[t],h=n[m],f=void 0!==i[m]?i[m]:s[m],p=dM(f),g=m===o?h.isActive:null;!1===g&&(d=t);let v=f===s[m]&&f!==i[m]&&p;if(v&&a&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...u},!h.isActive&&null===g||!f&&!h.prevProp||uM(f)||"boolean"==typeof f)continue;const y=GN(h.prevProp,f);let b=y||m===o&&h.isActive&&!v&&p||t>d&&p,w=!1;const x=Array.isArray(f)?f:[f];let E=x.reduce(r(m),{});!1===g&&(E={});const{prevResolvedValues:R={}}=h,C={...R,...E},k=t=>{b=!0,c.has(t)&&(w=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=E[e],n=R[e];if(u.hasOwnProperty(e))continue;let a=!1;a=SN(t)&&SN(n)?!HN(t,n):t!==n,a?null!=t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=E,h.isActive&&(u={...u,...E}),a&&e.blockInitialAnimation&&(b=!1);const _=v&&y;b&&(!_||w)&&l.push(...x.map(t=>{const n={type:m};if("string"==typeof t&&a&&!_&&e.manuallyAnimateOnMount&&e.parent){const{parent:a}=e,r=_N(a,t);if(a.enteringChildren&&r){const{delayChildren:t}=r.transition||{};n.delay=VN(a.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){const t={};if("boolean"!=typeof i.initial){const n=_N(e,Array.isArray(i.initial)?i.initial[0]:i.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const a=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=a??null}),l.push({animation:t})}let m=Boolean(l.length);return!a||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(m=!1),a=!1,m?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,a){var r;if(n[t].isActive===a)return Promise.resolve();null==(r=e.variantChildren)||r.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,a)}),n[t].isActive=a;const i=o(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=KN()}}}function GN(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!HN(t,e)}function qN(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function KN(){return{animate:qN(!0),whileInView:qN(),whileHover:qN(),whileTap:qN(),whileDrag:qN(),whileFocus:qN(),exit:qN()}}class YN{constructor(e){this.isMounted=!1,this.node=e}update(){}}let XN=0;const QN={animation:{Feature:class extends YN{constructor(e){super(e),e.animationState||(e.animationState=ZN(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();uM(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}},exit:{Feature:class extends YN{constructor(){super(...arguments),this.id=XN++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const a=this.node.animationState.setActive("exit",!e);t&&!e&&a.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function JN(e,t,n,a={passive:!0}){return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}function eP(e){return{point:{x:e.pageX,y:e.pageY}}}function tP(e,t,n,a){return JN(e,t,(e=>t=>LS(t)&&e(t,eP(t)))(n),a)}function nP(e){return e.max-e.min}function aP(e,t,n,a=.5){e.origin=a,e.originPoint=Vk(t.min,t.max,e.origin),e.scale=nP(n)/nP(t),e.translate=Vk(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rP(e,t,n,a){aP(e.x,t.x,n.x,a?a.originX:void 0),aP(e.y,t.y,n.y,a?a.originY:void 0)}function oP(e,t,n){e.min=n.min+t.min,e.max=e.min+nP(t)}function iP(e,t,n){e.min=t.min-n.min,e.max=e.min+nP(t)}function sP(e,t,n){iP(e.x,t.x,n.x),iP(e.y,t.y,n.y)}function lP(e){return[e("x"),e("y")]}const cP=({current:e})=>e?e.ownerDocument.defaultView:null,uP=(e,t)=>Math.abs(e-t);class dP{constructor(e,t,{transformPagePoint:n,contextWindow:a=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=fP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=uP(e.x,t.x),a=uP(e.y,t.y);return Math.sqrt(n**2+a**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:a}=e,{timestamp:r}=QC;this.history.push({...a,timestamp:r});const{onStart:o,onMove:i}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=mP(t,this.transformPagePoint),YC.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:a,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=fP("pointercancel"===e.type?this.lastMoveEventInfo:mP(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),a&&a(e,o)},!LS(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=a||window;const i=mP(eP(e),this.transformPagePoint),{point:s}=i,{timestamp:l}=QC;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,fP(i,this.history)),this.removeListeners=kC(tP(this.contextWindow,"pointermove",this.handlePointerMove),tP(this.contextWindow,"pointerup",this.handlePointerUp),tP(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),XC(this.updatePoint)}}function mP(e,t){return t?{point:t(e.point)}:e}function hP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fP({point:e},t){return{point:e,delta:hP(e,gP(t)),offset:hP(e,pP(t)),velocity:vP(t,.1)}}function pP(e){return e[0]}function gP(e){return e[e.length-1]}function vP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const r=gP(e);for(;n>=0&&(a=e[n],!(r.timestamp-a.timestamp>MC(t)));)n--;if(!a)return{x:0,y:0};const o=NC(r.timestamp-a.timestamp);if(0===o)return{x:0,y:0};const i={x:(r.x-a.x)/o,y:(r.y-a.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function yP(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function bP(e,t){let n=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,a]=[a,n]),{min:n,max:a}}const wP=.35;function xP(e,t,n){return{min:EP(e,t),max:EP(e,n)}}function EP(e,t){return"number"==typeof e?e:e[t]||0}const RP=new WeakMap;class CP{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:a}=this.visualElement;if(a&&!1===a.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new dP(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eP(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:a,onDragStart:r}=this.getProps();if(n&&!a&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?DS[o]?null:(DS[o]=!0,()=>{DS[o]=!1}):DS.x||DS.y?null:(DS.x=DS.y=!0,()=>{DS.x=DS.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lP(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xk.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const a=n.layout.layoutBox[e];a&&(t=nP(a)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&YC.postRender(()=>r(e,t)),PN(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:a,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:i}=t;if(a&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(i),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>lP(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:n,contextWindow:cP(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,a=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!a||!n)return;const{velocity:o}=a;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&YC.postRender(()=>i(n,a))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:a}=this.getProps();if(!n||!kP(e,a,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},a){return void 0!==t&&e<t?e=a?Vk(t,e,a.min):Math.max(e,t):void 0!==n&&e>n&&(e=a?Vk(n,e,a.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,r=this.constraints;t&&BM(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!a)&&function(e,{top:t,left:n,bottom:a,right:r}){return{x:yP(e.x,n,r),y:yP(e.y,t,a)}}(a.layoutBox,t),this.elastic=function(e=wP){return!1===e?e=0:!0===e&&(e=wP),{x:xP(e,"left","right"),y:xP(e,"top","bottom")}}(n),r!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&lP(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(a.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!BM(e))return!1;const n=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const r=function(e,t,n){const a=hN(e,n),{scroll:r}=t;return r&&(uN(a.x,r.offset.x),uN(a.y,r.offset.y)),a}(n,a.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:bP(e.x,t.x),y:bP(e.y,t.y)}}(a.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=QM(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:a,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=lP(i=>{if(!kP(i,t,this.currentDirection))return;let l=s&&s[i]||{};o&&(l={min:0,max:0});const c=a?200:1e6,u=a?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(i,d)});return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return PN(this.visualElement,e),n.start(zN(e,n,0,t,this.visualElement,!1))}stopAnimation(){lP(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){lP(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){lP(t=>{const{drag:n}=this.getProps();if(!kP(t,n,this.currentDirection))return;const{projection:a}=this.visualElement,r=this.getAxisMotionValue(t);if(a&&a.layout){const{min:n,max:o}=a.layout.layoutBox[t];r.set(e[t]-Vk(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!BM(t)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};lP(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();a[e]=function(e,t){let n=.5;const a=nP(e),r=nP(t);return r>a?n=_C(t.min,t.max-a,e.min):a>r&&(n=_C(e.min,e.max-r,t.min)),vC(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),lP(t=>{if(!kP(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(Vk(r,o,a[t]))})}addListeners(){if(!this.visualElement.current)return;RP.set(this.visualElement,this);const e=tP(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();BM(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,a=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),YC.read(t);const r=JN(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(lP(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),a(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:r=!1,dragElastic:o=wP,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:a,dragConstraints:r,dragElastic:o,dragMomentum:i}}}function kP(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const _P=e=>(t,n)=>{e&&YC.postRender(()=>e(t,n))},SP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function MP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const NP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ek.test(e))return e;e=parseFloat(e)}return`${MP(e,t.target.x)}% ${MP(e,t.target.y)}%`}},PP={correct:(e,{treeScale:t,projectionDelta:n})=>{const a=e,r=zk.parse(e);if(r.length>5)return a;const o=zk.createTransformer(e),i="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;r[0+i]/=s,r[1+i]/=l;const c=Vk(s,l,.5);return"number"==typeof r[2+i]&&(r[2+i]/=c),"number"==typeof r[3+i]&&(r[3+i]/=c),o(r)}};let AP=!1;class DP extends ze.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:a}=this.props,{projection:r}=e;!function(e){for(const t in e)vM[t]=e[t],rk(t)&&(vM[t].isCSSVariable=!0)}(OP),r&&(t.group&&t.group.add(r),n&&n.register&&a&&n.register(r),AP&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),SP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:a,isPresent:r}=this.props,{projection:o}=n;return o?(o.isPresent=r,AP=!0,a||e.layoutDependency!==t||void 0===t||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||YC.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),AS.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:a}=e;AP=!0,a&&(a.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function TP(e){const[t,n]=QS(),a=ze.useContext(uC);return Wt.jsx(DP,{...e,layoutGroup:a,switchLayoutGroup:ze.useContext(ZM),isPresent:t,safeToRemove:n})}const OP={borderRadius:{...NP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:NP,borderTopRightRadius:NP,borderBottomLeftRadius:NP,borderBottomRightRadius:NP,boxShadow:PP},FP=(e,t)=>e.depth-t.depth;class zP{constructor(){this.children=[],this.isDirty=!1}add(e){pC(this.children,e),this.isDirty=!0}remove(e){gC(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(FP),this.isDirty=!1,this.children.forEach(e)}}const LP=["TopLeft","TopRight","BottomLeft","BottomRight"],jP=LP.length,VP=e=>"string"==typeof e?parseFloat(e):e,IP=e=>"number"==typeof e||Ek.test(e);function HP(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const BP=UP(0,.5,IC),WP=UP(.5,.95,RC);function UP(e,t,n){return a=>a<e?0:a>t?1:n(_C(e,t,a))}function $P(e,t){e.min=t.min,e.max=t.max}function ZP(e,t){$P(e.x,t.x),$P(e.y,t.y)}function GP(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qP(e,t,n,a,r){return e=rN(e-=t,1/n,a),void 0!==r&&(e=rN(e,1/r,a)),e}function KP(e,t,[n,a,r],o,i){!function(e,t=0,n=1,a=.5,r,o=e,i=e){if(xk.test(t)&&(t=parseFloat(t),t=Vk(i.min,i.max,t/100)-i.min),"number"!=typeof t)return;let s=Vk(o.min,o.max,a);e===o&&(s-=t),e.min=qP(e.min,t,n,s,r),e.max=qP(e.max,t,n,s,r)}(e,t[n],t[a],t[r],t.scale,o,i)}const YP=["x","scaleX","originX"],XP=["y","scaleY","originY"];function QP(e,t,n,a){KP(e.x,t,YP,n?n.x:void 0,a?a.x:void 0),KP(e.y,t,XP,n?n.y:void 0,a?a.y:void 0)}function JP(e){return 0===e.translate&&1===e.scale}function eA(e){return JP(e.x)&&JP(e.y)}function tA(e,t){return e.min===t.min&&e.max===t.max}function nA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function aA(e,t){return nA(e.x,t.x)&&nA(e.y,t.y)}function rA(e){return nP(e.x)/nP(e.y)}function oA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iA{constructor(){this.members=[]}add(e){pC(this.members,e),e.scheduleRender()}remove(e){if(gC(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let a=t;a>=0;a--){const e=this.members[a];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;!1===a&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const sA=["","X","Y","Z"];let lA=0;function cA(e,t,n,a){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),a&&(a[e]=0))}function uA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=AN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",YC,!(t||a))}const{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&uA(a)}function dA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:a,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=lA++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fA),this.nodes.forEach(xA),this.nodes.forEach(EA),this.nodes.forEach(pA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new zP)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new SC),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=WS(t)&&!(WS(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:a,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||a)&&(this.isLayoutDirty=!0),e){let n,a=0;const r=()=>this.root.updateBlockedByResize=!1;YC.read(()=>{a=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==a&&(a=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e){const t=nk.now(),n=({timestamp:a})=>{const r=a-t;r>=250&&(XC(n),e(r-250))};return YC.setup(n,!0),()=>XC(n)}(r),SP.hasAnimatedSinceResize&&(SP.hasAnimatedSinceResize=!1,this.nodes.forEach(wA)))})}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&o&&(a||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:a})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||o.getDefaultTransition()||MA,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!aA(this.targetLayout,a),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...uS(r,"layout"),onPlay:i,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||wA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=a})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),XC(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(RA),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let r=0;r<this.path.length;r++){const e=this.path[r];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const a=this.getTransformTemplate();this.prevTransformTemplateValue=a?a(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(vA);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(yA);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bA),this.nodes.forEach(mA),this.nodes.forEach(hA)):this.nodes.forEach(yA),this.clearAllSnapshots();const e=nk.now();QC.delta=vC(0,1e3/60,e-QC.timestamp),QC.timestamp=e,QC.isProcessing=!0,JC.update.process(QC),JC.preRender.process(QC),JC.render.process(QC),QC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,AS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gA),this.sharedNodes.forEach(CA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,YC.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){YC.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nP(this.snapshot.measuredBox.x)||nP(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++)this.path[n].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=a(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!eA(this.projectionDelta),n=this.getTransformTemplate(),a=n?n(this.latestValues,""):void 0,o=a!==this.prevTransformTemplateValue;e&&this.instance&&(t||tN(this.latestValues)||o)&&(r(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var a;return e&&(n=this.removeTransform(n)),AA((a=n).x),AA(a.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null==(e=this.scroll)?void 0:e.wasRoot)&&!this.path.some(TA)){const{scroll:e}=this.root;e&&(uN(n.x,e.offset.x),uN(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(ZP(n,e),null==(t=this.scroll)?void 0:t.wasRoot)return n;for(let a=0;a<this.path.length;a++){const t=this.path[a],{scroll:r,options:o}=t;t!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&ZP(n,e),uN(n.x,r.offset.x),uN(n.y,r.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ZP(n,e);for(let a=0;a<this.path.length;a++){const e=this.path[a];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&mN(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),tN(e.latestValues)&&mN(n,e.latestValues)}return tN(this.latestValues)&&mN(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ZP(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!tN(e.latestValues))continue;eN(e.latestValues)&&e.updateSnapshot();const a=fN();ZP(a,e.measurePageBox()),QP(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,a)}return tN(this.latestValues)&&QP(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==QC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const a=Boolean(this.resumingFrom)||this!==n;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(this.layout&&(r||o)){if(this.resolvedRelativeTargetAt=QC.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},sP(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ZP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,s,l;if((this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,oP(i.x,s.x,l.x),oP(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ZP(this.target,this.layout.layoutBox),sN(this.target,this.targetDelta)):ZP(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},sP(this.relativeTargetOrigin,this.target,e.target),ZP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!eN(this.parent.latestValues)&&!nN(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let a=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(a=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(a=!1),this.resolvedRelativeTargetAt===QC.timestamp&&(a=!1),a)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;ZP(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,a=!1){const r=n.length;if(!r)return;let o,i;t.x=t.y=1;for(let s=0;s<r;s++){o=n[s],i=o.projectionDelta;const{visualElement:r}=o.options;r&&r.props.style&&"contents"===r.props.style.display||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&mN(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,sN(e,i)),a&&tN(o.latestValues)&&mN(e,o.latestValues))}t.x<cN&&t.x>lN&&(t.x=1),t.y<cN&&t.y>lN&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(GP(this.prevProjectionDelta.x,this.projectionDelta.x),GP(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rP(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&oA(this.projectionDelta.x,this.prevProjectionDelta.x)&&oA(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,a=n?n.latestValues:{},r={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(SA));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,m,h,f,p,g;kA(o.x,e.x,n),kA(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sP(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,p=i,g=n,_A(h.x,f.x,p.x,g),_A(h.y,f.y,p.y,g),d&&(l=this.relativeTarget,m=d,tA(l.x,m.x)&&tA(l.y,m.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),ZP(d,this.relativeTarget)),s&&(this.animationValues=r,function(e,t,n,a,r,o){r?(e.opacity=Vk(0,n.opacity??1,BP(a)),e.opacityExit=Vk(t.opacity??1,0,WP(a))):o&&(e.opacity=Vk(t.opacity??1,n.opacity??1,a));for(let i=0;i<jP;i++){const r=`border${LP[i]}Radius`;let o=HP(t,r),s=HP(n,r);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||IP(o)===IP(s)?(e[r]=Math.max(Vk(VP(o),VP(s),a),0),(xk.test(s)||xk.test(o))&&(e[r]+="%")):e[r]=s)}(t.rotate||n.rotate)&&(e.rotate=Vk(t.rotate||0,n.rotate||0,a))}(r,a,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n,a;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),null==(a=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||a.stop(),this.pendingAnimation&&(XC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=YC.update(()=>{SP.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=PS(0)),this.currentAnimation=function(e,t,n){const a=US(e)?e:PS(e);return a.start(zN("",a,[0,1e3],n)),a.animation}(this.motionValue,0,{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:a,latestValues:r}=e;if(t&&n&&a){if(this!==e&&this.layout&&a&&DA(this.options.animationType,this.layout.layoutBox,a.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=nP(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const a=nP(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+a}ZP(t,n),mN(t,r),rP(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iA),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const a=this.getStack();a&&a.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const a={};n.z&&cA("z",e,a,this.animationValues);for(let r=0;r<sA.length;r++)cA(`rotate${sA[r]}`,e,a,this.animationValues),cA(`skew${sA[r]}`,e,a,this.animationValues);e.render();for(const r in a)e.setStaticValue(r,a[r]),this.animationValues&&(this.animationValues[r]=a[r]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=OM(null==t?void 0:t.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=OM(null==t?void 0:t.pointerEvents)||""),void(this.hasProjected&&!tN(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const r=a.animationValues||a.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let a="";const r=e.x.translate/t.x,o=e.y.translate/t.y,i=(null==n?void 0:n.z)||0;if((r||o||i)&&(a=`translate3d(${r}px, ${o}px, ${i}px) `),1===t.x&&1===t.y||(a+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:r,rotateY:o,skewX:i,skewY:s}=n;e&&(a=`perspective(${e}px) ${a}`),t&&(a+=`rotate(${t}deg) `),r&&(a+=`rotateX(${r}deg) `),o&&(a+=`rotateY(${o}deg) `),i&&(a+=`skewX(${i}deg) `),s&&(a+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(a+=`scale(${s}, ${l})`),a||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),e.transform=o;const{x:i,y:s}=this.projectionDelta;e.transformOrigin=`${100*i.origin}% ${100*s.origin}% 0`,a.animationValues?e.opacity=a===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=a===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const l in vM){if(void 0===r[l])continue;const{correct:t,applyTo:n,isCSSVariable:i}=vM[l],s="none"===o?r[l]:t(r[l],a);if(n){const t=n.length;for(let a=0;a<t;a++)e[n[a]]=s}else i?this.options.visualElement.renderState.vars[l]=s:e[l]=s}this.options.layoutId&&(e.pointerEvents=a===this?OM(null==t?void 0:t.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(vA),this.root.sharedNodes.clear()}}}function mA(e){e.updateLayout()}function hA(e){var t;const n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:a}=e.layout,{animationType:r}=e.options,o=n.source!==e.layout.source;"size"===r?lP(e=>{const a=o?n.measuredBox[e]:n.layoutBox[e],r=nP(a);a.min=t[e].min,a.max=a.min+r}):DA(r,n.layoutBox,t)&&lP(a=>{const r=o?n.measuredBox[a]:n.layoutBox[a],i=nP(t[a]);r.max=r.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[a].max=e.relativeTarget[a].min+i)});const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};rP(i,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?rP(s,e.applyTransform(a,!0),n.measuredBox):rP(s,t,n.layoutBox);const l=!eA(i);let c=!1;if(!e.resumeFrom){const a=e.getClosestProjectingParent();if(a&&!a.resumeFrom){const{snapshot:r,layout:o}=a;if(r&&o){const i={x:{min:0,max:0},y:{min:0,max:0}};sP(i,n.layoutBox,r.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};sP(s,t,o.layoutBox),aA(i,s)||(c=!0),a.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=a)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fA(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gA(e){e.clearSnapshot()}function vA(e){e.clearMeasurements()}function yA(e){e.isLayoutDirty=!1}function bA(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xA(e){e.resolveTargetDelta()}function EA(e){e.calcProjection()}function RA(e){e.resetSkewAndRotation()}function CA(e){e.removeLeadSnapshot()}function kA(e,t,n){e.translate=Vk(t.translate,0,n),e.scale=Vk(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _A(e,t,n,a){e.min=Vk(t.min,n.min,a),e.max=Vk(t.max,n.max,a)}function SA(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const MA={duration:.45,ease:[.4,0,.1,1]},NA=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),PA=NA("applewebkit/")&&!NA("chrome/")?Math.round:RC;function AA(e){e.min=PA(e.min),e.max=PA(e.max)}function DA(e,t,n){return"position"===e||"preserve-aspect"===e&&(a=rA(t),r=rA(n),!(Math.abs(a-r)<=.2));var a,r}function TA(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}const OA=dA({attachResizeListener:(e,t)=>JN(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),FA={current:void 0},zA=dA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!FA.current){const e=new OA({});e.mount(window),e.setOptions({layoutScroll:!0}),FA.current=e}return FA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),LA={pan:{Feature:class extends YN{constructor(){super(...arguments),this.removePointerDownListener=RC}onPointerDown(e){this.session=new dP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cP(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:_P(e),onStart:_P(t),onMove:n,onEnd:(e,t)=>{delete this.session,a&&YC.postRender(()=>a(e,t))}}}mount(){this.removePointerDownListener=tP(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends YN{constructor(e){super(e),this.removeGroupControls=RC,this.removeListeners=RC,this.controls=new CP(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||RC}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:zA,MeasureLayout:TP}};function jA(e,t,n){const{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover","Start"===n);const r=a["onHover"+n];r&&YC.postRender(()=>r(t,eP(t)))}function VA(e,t,n){const{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap","Start"===n);const r=a["onTap"+("End"===n?"":n)];r&&YC.postRender(()=>r(t,eP(t)))}const IA=new WeakMap,HA=new WeakMap,BA=e=>{const t=IA.get(e.target);t&&t(e)},WA=e=>{e.forEach(BA)};const UA={some:0,all:1},$A={inView:{Feature:class extends YN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:a="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof a?a:UA[a]};return function(e,t,n){const a=function({root:e,...t}){const n=e||document;HA.has(n)||HA.set(n,{});const a=HA.get(n),r=JSON.stringify(t);return a[r]||(a[r]=new IntersectionObserver(WA,{root:e,...t})),a[r]}(t);return IA.set(e,n),a.observe(e),()=>{IA.delete(e),a.unobserve(e)}}(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:a}=this.node.getProps(),o=t?n:a;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends YN{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[a,r,o]=OS(e,n),i=e=>{const a=e.currentTarget;if(!BS(e))return;VS.add(a);const o=t(a,e),i=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),VS.has(a)&&VS.delete(a),BS(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{i(e,a===window||a===document||n.useGlobalTarget||zS(a,e.target))},l=e=>{i(e,!1)};window.addEventListener("pointerup",s,r),window.addEventListener("pointercancel",l,r)};return a.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",i,r),MS(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const a=IS(()=>{if(VS.has(n))return;HS(n,"down");const e=IS(()=>{HS(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>HS(n,"cancel"),t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)})(e,r)),t=e,jS.has(t.tagName)||-1!==t.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(VA(this.node,t,"Start"),(e,{success:t})=>VA(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends YN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(nV){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=kC(JN(this.node.current,"focus",()=>this.onFocus()),JN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends YN{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[a,r,o]=OS(e,n),i=e=>{if(!FS(e))return;const{target:n}=e,a=t(n,e);if("function"!=typeof a||!n)return;const o=e=>{FS(e)&&(a(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,r)};return a.forEach(e=>{e.addEventListener("pointerenter",i,r)}),o}(e,(e,t)=>(jA(this.node,t,"Start"),e=>jA(this.node,e,"End"))))}unmount(){}}}},ZA=XM({...QN,...$A,...LA,layout:{ProjectionNode:zA,MeasureLayout:TP}},kN),GA=Nf("inline-flex items-center justify-center cursor-pointer rounded-md transition-colors disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",muted:"bg-muted text-muted-foreground",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50"},size:{default:"size-8 rounded-lg [&_svg]:size-4",sm:"size-6 [&_svg]:size-3",md:"size-10 rounded-lg [&_svg]:size-5",lg:"size-12 rounded-xl [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}});function qA({content:e,className:t,size:n,variant:a,delay:r=3e3,onClick:o,onCopy:i,isCopied:s,onCopyChange:l,...c}){const[u,d]=ze.useState(s??!1),m=u?us:ys;ze.useEffect(()=>{d(s??!1)},[s]);const h=ze.useCallback(e=>{d(e),null==l||l(e)},[l]),f=ze.useCallback(t=>{t.preventDefault(),s||(e&&navigator.clipboard.writeText(e).then(()=>{h(!0),setTimeout(()=>h(!1),r),null==i||i(e)}).catch(e=>{console.error("Error copying command",e)}),null==o||o(t))},[s,e,r,o,i,h]);return ze.createElement(ZA.button,{"data-slot":"copy-button",whileHover:{scale:1.05},whileTap:{scale:.95},className:nm(GA({variant:a,size:n}),t),onClick:f,...c},ze.createElement(tM,{mode:"wait"},ze.createElement(ZA.span,{key:u?"check":"copy","data-slot":"copy-button-icon",initial:{scale:0},animate:{scale:1},exit:{scale:0},transition:{duration:.15}},ze.createElement(m,null))))}function KA({trigger:e=React.createElement(es,{fill:"#A0A0A7",className:"text-background size-4"}),content:t,className:n}){return React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},e),React.createElement(rC,{className:Jc(`z-[9999] ${n}`,void 0===t&&"hidden")},React.createElement("div",{className:"text-center text-sm"},t))))}function YA({isFallback:e=!1}){var t,n,a,r,o,i,s,l,c,u,d,m,h,_n,f,p,g,v;const{authUrl:y}=_s(),{settings:b}=Ms(),w=e?`${window.yaySmtpWpData.DASHBOARD_URL}admin.php?page=yaysmtp&tab=additional-setting&action=serviceauthyaysmtpfallback`:`${window.yaySmtpWpData.DASHBOARD_URL}admin.php?page=yaysmtp&action=serviceauthyaysmtp`,x=e?(null==(n=null==(t=null==b?void 0:b.fallback_service_provider_mailer_settings)?void 0:t.gmail)?void 0:n.client_id)&&(null==(r=null==(a=null==b?void 0:b.fallback_service_provider_mailer_settings)?void 0:a.gmail)?void 0:r.client_secret):(null==(o=null==b?void 0:b.gmail)?void 0:o.client_id)&&(null==(i=null==b?void 0:b.gmail)?void 0:i.client_secret),E=e?(null==(l=null==(s=null==b?void 0:b.fallback_service_provider_mailer_settings)?void 0:s.gmail)?void 0:l.gmail_access_token)&&(null==(u=null==(c=null==b?void 0:b.fallback_service_provider_mailer_settings)?void 0:c.gmail)?void 0:u.gmail_refresh_token):(null==(d=null==b?void 0:b.gmail)?void 0:d.gmail_access_token)&&(null==(m=null==b?void 0:b.gmail)?void 0:m.gmail_refresh_token),R=e?(null==(_n=null==(h=null==b?void 0:b.fallback_service_provider_mailer_settings)?void 0:h.gmail)?void 0:_n.gmail_auth_email)?__("Remove Authorization ("+(null==(p=null==(f=null==b?void 0:b.fallback_service_provider_mailer_settings)?void 0:f.gmail)?void 0:p.gmail_auth_email)+")"):__("Remove Authorization"):(null==(g=null==b?void 0:b.gmail)?void 0:g.gmail_auth_email)?__("Remove Authorization ("+(null==(v=null==b?void 0:b.gmail)?void 0:v.gmail_auth_email)+")"):__("Remove Authorization"),{isMultisiteMode:C,isNetworkAdmin:k}=Ss();return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Gmail")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-gmail","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Gmail Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.gmail.client_id":"gmail.client_id",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client ID")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Client ID"),...e})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.gmail.client_secret":"gmail.client_secret",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client Secret")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your Client Secret")})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(np,{htmlFor:"redirect_uri",className:"mb-2 text-sm"},__("Authorized Redirect URI")),React.createElement("div",{className:"flex gap-1"},React.createElement(hp,{id:"redirect_uri",readOnly:!0,value:w,className:"cursor-text pr-3",disabled:!0}),React.createElement(qA,{content:w,className:"size-9 rounded-md",size:"default",variant:"outline"})),React.createElement(dp,{className:"text-muted-foreground mt-2 text-sm"},__('Put this URL into your Google API Credentials > "Authorized redirect URIs" field'))),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(np,{className:"mb-2 text-sm"},__("Authorization Connect")),x&&React.createElement(React.Fragment,null,!E&&React.createElement(React.Fragment,null,React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Zf,{variant:"outline",className:"w-fit cursor-pointer",onClick:()=>{window.location.href=e?(null==y?void 0:y.gmail_fallback)||"#":(null==y?void 0:y.gmail)||"#"}},__("Confirm authorization")),React.createElement(KA,{content:__("Click the button to confirm authorization")})),!C&&k&&React.createElement("p",{className:"text-destructive mt-2 text-sm"},__("If you are selecting On mode of multisite setting. Please save change to apply On mode before confirming authorization."))),E&&React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Zf,{variant:"outline",className:"w-fit cursor-pointer",onClick:async()=>{e?await async function(){return await Xc.post("yaysmtp_gmail_remove_auth_fallback")}():await async function(){return await Xc.post("yaysmtp_gmail_remove_auth")}(),window.location.reload()}},R),React.createElement(KA,{content:__("You will be able to use another Google account after removing this connection")}))),!x&&React.createElement(Af,{variant:"destructive",className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("Put your Client ID and Client Secret, then save them."))))))))}var XA="rovingFocusGroup.onEntryFocus",QA={bubbles:!1,cancelable:!0},JA="RovingFocusGroup",[eD,tD,nD]=Kx(JA),[aD,rD]=pp(JA,[nD]),[oD,iD]=aD(JA),sD=ze.forwardRef((e,t)=>Wt.jsx(eD.Provider,{scope:e.__scopeRovingFocusGroup,children:Wt.jsx(eD.Slot,{scope:e.__scopeRovingFocusGroup,children:Wt.jsx(lD,{...e,ref:t})})}));sD.displayName=JA;var lD=ze.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,m=ze.useRef(null),h=Ff(t,m),f=Xx(o),[p,g]=bp({prop:i,defaultProp:s??null,onChange:l,caller:JA}),[v,y]=ze.useState(!1),b=Gp(c),w=tD(n),x=ze.useRef(!1),[E,R]=ze.useState(0);return ze.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(XA,b),()=>e.removeEventListener(XA,b)},[b]),Wt.jsx(oD,{scope:n,orientation:a,dir:f,loop:r,currentTabStopId:p,onItemFocus:ze.useCallback(e=>g(e),[g]),onItemShiftTab:ze.useCallback(()=>y(!0),[]),onFocusableItemAdd:ze.useCallback(()=>R(e=>e+1),[]),onFocusableItemRemove:ze.useCallback(()=>R(e=>e-1),[]),children:Wt.jsx(Qf.div,{tabIndex:v||0===E?-1:0,"data-orientation":a,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:fp(e.onMouseDown,()=>{x.current=!0}),onFocus:fp(e.onFocus,e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(XA,QA);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);mD([e.find(e=>e.active),e.find(e=>e.id===p),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:fp(e.onBlur,()=>y(!1))})})}),cD="RovingFocusGroupItem",uD=ze.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:o,children:i,...s}=e,l=Zp(),c=o||l,u=iD(cD,n),d=u.currentTabStopId===c,m=tD(n),{onFocusableItemAdd:h,onFocusableItemRemove:f,currentTabStopId:p}=u;return ze.useEffect(()=>{if(a)return h(),()=>f()},[a,h,f]),Wt.jsx(eD.ItemSlot,{scope:n,id:c,focusable:a,active:r,children:Wt.jsx(Qf.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:fp(e.onMouseDown,e=>{a?u.onItemFocus(c):e.preventDefault()}),onFocus:fp(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:fp(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const a=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(a)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)?void 0:dD[a]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const o=r.indexOf(e.currentTarget);r=u.loop?(a=o+1,(n=r).map((e,t)=>n[(a+t)%n.length])):r.slice(o+1)}setTimeout(()=>mD(r))}var n,a}),children:"function"==typeof i?i({isCurrentTabStop:d,hasTabStop:null!=p}):i})})});uD.displayName=cD;var dD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mD(e,t=!1){const n=document.activeElement;for(const a of e){if(a===n)return;if(a.focus({preventScroll:t}),document.activeElement!==n)return}}var hD=sD,fD=uD,pD="Radio",[gD,vD]=pp(pD),[yD,bD]=gD(pD),wD=ze.forwardRef((e,t)=>{const{__scopeRadio:n,name:a,checked:r=!1,required:o,disabled:i,value:s="on",onCheck:l,form:c,...u}=e,[d,m]=ze.useState(null),h=Ff(t,e=>m(e)),f=ze.useRef(!1),p=!d||c||!!d.closest("form");return Wt.jsxs(yD,{scope:n,checked:r,disabled:i,children:[Wt.jsx(Qf.button,{type:"button",role:"radio","aria-checked":r,"data-state":CD(r),"data-disabled":i?"":void 0,disabled:i,value:s,...u,ref:h,onClick:fp(e.onClick,e=>{r||null==l||l(),p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})}),p&&Wt.jsx(RD,{control:d,bubbles:!f.current,name:a,value:s,checked:r,required:o,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});wD.displayName=pD;var xD="RadioIndicator",ED=ze.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:a,...r}=e,o=bD(xD,n);return Wt.jsx(dg,{present:a||o.checked,children:Wt.jsx(Qf.span,{"data-state":CD(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})})});ED.displayName=xD;var RD=ze.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...r},o)=>{const i=ze.useRef(null),s=Ff(i,o),l=wp(n),c=xp(t);return ze.useEffect(()=>{const e=i.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&r){const t=new Event("click",{bubbles:a});r.call(e,n),e.dispatchEvent(t)}},[l,n,a]),Wt.jsx(Qf.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...r.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function CD(e){return e?"checked":"unchecked"}RD.displayName="RadioBubbleInput";var kD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],_D="RadioGroup",[SD,MD]=pp(_D,[rD,vD]),ND=rD(),PD=vD(),[AD,DD]=SD(_D),TD=ze.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:a,defaultValue:r,value:o,required:i=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...m}=e,h=ND(n),f=Xx(c),[p,g]=bp({prop:o,defaultProp:r??null,onChange:d,caller:_D});return Wt.jsx(AD,{scope:n,name:a,required:i,disabled:s,value:p,onValueChange:g,children:Wt.jsx(hD,{asChild:!0,...h,orientation:l,dir:f,loop:u,children:Wt.jsx(Qf.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":s?"":void 0,dir:f,...m,ref:t})})})});TD.displayName=_D;var OD="RadioGroupItem",FD=ze.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:a,...r}=e,o=DD(OD,n),i=o.disabled||a,s=ND(n),l=PD(n),c=ze.useRef(null),u=Ff(t,c),d=o.value===r.value,m=ze.useRef(!1);return ze.useEffect(()=>{const e=e=>{kD.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),Wt.jsx(fD,{asChild:!0,...s,focusable:!i,active:d,children:Wt.jsx(wD,{disabled:i,required:o.required,checked:d,...l,...r,name:o.name,ref:u,onCheck:()=>o.onValueChange(r.value),onKeyDown:fp(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:fp(r.onFocus,()=>{var e;m.current&&(null==(e=c.current)||e.click())})})})});FD.displayName=OD;var zD=ze.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...a}=e,r=PD(n);return Wt.jsx(ED,{...r,...a,ref:t})});zD.displayName="RadioGroupIndicator";var LD=TD,jD=FD,VD=zD;function ID({className:e,...t}){return ze.createElement(LD,{"data-slot":"radio-group",className:nm("grid gap-3",e),...t})}function HD({className:e,...t}){return ze.createElement(jD,{"data-slot":"radio-group-item",className:nm(Uf(),"border-input text-primary hover:border-ring dark:bg-input/30 disabled:border-input aspect-square size-4.5 shrink-0 rounded-full border shadow-xs transition-all outline-none disabled:cursor-not-allowed disabled:bg-[#f2f5f9] disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary-accent data-[state=checked]:hover:border-primary-accent dark:data-[state=checked]:border-primary",e),...t},ze.createElement(VD,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center"},ze.createElement("span",{"data-slot":"radio-group-indicator-inner",className:"bg-background absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full"})))}const BD=[{id:"mailgun_us",value:"US",name:"US"},{id:"mailgun_eu",value:"EU",name:"EU"}];function WD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Mailgun")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-mailgun","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Mailgun Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.mailgun.api_key":"mailgun.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.mailgun.com/app/account/security/api_keys",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get API Key"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.mailgun.domain":"mailgun.domain",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Domain Name")),React.createElement(up,null,React.createElement(hp,{placeholder:__("Enter your Domain Name"),...e})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.mailgun.com/app/domains",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Domain Name"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.mailgun.region":"mailgun.region",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Region"),React.createElement(KA,{content:__("Choose which region (North America or Europe) you want your message data to be processed by. More details at https://mailgun.com/regions/")})),React.createElement(up,null,React.createElement(ID,{defaultValue:"US",className:"flex gap-16",value:e.value,onValueChange:e.onChange},BD.map(e=>React.createElement("div",{className:"flex items-center gap-2"},React.createElement(HD,{id:e.id,value:e.value}),React.createElement(np,{htmlFor:e.id},e.name))))))})))))}function UD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Mailjet")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-mailjet","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Mailjet Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.mailjet.api_key":"mailjet.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your API Key"),...e})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.mailjet.com/account/api_keys",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get API Key"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.mailjet.secret_key":"mailjet.secret_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Secret Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your Secret Key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.mailjet.com/account/api_keys",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Secret Key"))))})))))}function $D({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Mandrill")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-mandrill","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Mandrill Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.mandrill.api_key":"mandrill.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://mandrillapp.com/settings",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Create API Key"))))})))))}const ZD=[{id:"othersmtp_none",value:"",name:"None"},{id:"othersmtp_ssl",value:"ssl",name:"SSL"},{id:"othersmtp_tls",value:"tls",name:"TLS"}];function GD({isFallback:e=!1}){const{watch:t,setValue:n}=xo(),a=t(e?"fallback_auth":"smtp.auth");return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Other SMTP")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-other-smtp","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Other SMTP Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_host":"smtp.host",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Host")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Host"),...e})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_auth_type":"smtp.encryption",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Encryption Type")),React.createElement(up,null,React.createElement(ID,{defaultValue:"",className:"flex gap-10 md:gap-16",value:e.value,onValueChange:e.onChange},ZD.map(e=>React.createElement("div",{className:"flex items-center gap-2"},React.createElement(HD,{id:e.id,value:e.value}),React.createElement(np,{htmlFor:e.id},e.name))))),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("SSL is the recommended option if your SMTP provider supports it.")))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_port":"smtp.port",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Port")),React.createElement(up,null,React.createElement(hp,{type:"number",className:"w-1/3",...e})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Port of your mail server. Usually is 25, 465, 587.")))})),React.createElement("div",{className:"mt-6 flex w-full gap-4 md:w-1/2"},React.createElement(op,{name:e?"fallback_auth":"smtp.auth",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{htmlFor:"othersmtp_auth",className:"text-sm"},__("Authentication")),React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"othersmtp_auth",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))})),"yes"===a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_smtp_user":"smtp.user",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("User Name")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your User Name"),...e})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_smtp_pass":"smtp.pass",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Password")),React.createElement(up,null,React.createElement(hp,{type:"password",placeholder:__("Enter your Password"),...e})))}))))))}function qD(){var e,t,n,a,r,o,i,s;const{authUrl:l}=_s(),{settings:c}=Ms(),u=(null==(e=null==c?void 0:c.outlookms)?void 0:e.client_id)&&(null==(t=null==c?void 0:c.outlookms)?void 0:t.client_secret),d=(null==(n=null==c?void 0:c.outlookms)?void 0:n.outlookms_access_token)&&(null==(a=null==c?void 0:c.outlookms)?void 0:a.outlookms_refresh_token),{isMultisiteMode:m,isNetworkAdmin:h}=Ss();return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Microsoft Outlook")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-outlook-microsoft","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Microsoft Outlook Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"outlookms.client_id",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client ID")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Client ID"),...e})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"outlookms.client_secret",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client Secret")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your Client Secret")})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(cp,{className:"mb-2 text-sm"},__("Authorized Redirect URI")),React.createElement("div",{className:"flex gap-1"},React.createElement(hp,{disabled:!0,value:`${window.yaySmtpWpData.DASHBOARD_URL}options-general.php`}),React.createElement(qA,{content:`${window.yaySmtpWpData.DASHBOARD_URL}options-general.php`,className:"size-9 rounded-md",size:"default",variant:"outline"})),React.createElement(dp,{className:"text-muted-foreground mt-2 text-sm"},__('Put this URL into your Authentication > "Redirect URIs" (for web) field'))),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(cp,{className:"mb-2 text-sm"},__("Authorization Connect")),u&&React.createElement(React.Fragment,null,!d&&"#"!==(null==l?void 0:l.outlookms)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Zf,{variant:"outline",className:"w-fit cursor-pointer",onClick:()=>{window.location.href=(null==l?void 0:l.outlookms)||"#"}},__("Confirm authorization")),React.createElement(KA,{content:__("Click the button to confirm authorization")})),!m&&h&&React.createElement("p",{className:"text-destructive mt-2 text-sm"},__("If you are selecting On mode of multisite setting. Please save change to apply On mode before confirming authorization."))),"#"===(null==l?void 0:l.outlookms)&&React.createElement(Af,{variant:"destructive",className:"mt-2 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("Your Client ID or Client Secret are not correct")))),d&&"#"!==(null==l?void 0:l.outlookms)&&React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Zf,{variant:"outline",className:"w-fit cursor-pointer",onClick:async()=>{await async function(){return await Xc.post("yaysmtp_outlookms_remove_auth")}(),window.location.reload()}},(null==(o=null==(r=null==c?void 0:c.outlookms)?void 0:r.outlookms_auth_email)?void 0:o.email)?__("Remove Authorization ("+(null==(s=null==(i=null==c?void 0:c.outlookms)?void 0:i.outlookms_auth_email)?void 0:s.email)+")"):__("Remove Authorization")),React.createElement(KA,{content:__("You will be able to use another Microsoft account after removing this connection")}))),!u&&React.createElement(Af,{variant:"destructive",className:"mt-2 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("Put your Client ID and Client Secret, then save them."))))))))}function KD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Pepipost")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-pepipost","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Pepipost Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.pepipost.api_key":"pepipost.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.pepipost.com/app/settings/integration",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Create API Key"))))})))))}function YD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Postmark")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-postmark","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Postmark Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.postmark.api_key":"postmark.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("To get API Key. Click here to")," ",React.createElement("a",{href:"https://account.postmarkapp.com/servers",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Postmark Servers"))," ",__("and choose API Tokens tab.")))})))))}function XD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for SendGrid")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-sendgrid","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("SendGrid Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.sendgrid.api_key":"sendgrid.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.sendgrid.com/settings/api_keys",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Create API Key"))))})))))}function QD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Brevo ( formerly Sendinblue )")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-sendinblue","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Brevo Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.sendinblue.api_key":"sendinblue.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.brevo.com/settings/keys/api",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Create API Key"))))})))))}function JD({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for SendPulse")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-sendpulse","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("SendPulse Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.sendpulse.api_key":"sendpulse.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client ID")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Client ID"),...e})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://login.sendpulse.com/settings/api",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Client ID"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.sendpulse.secret_key":"sendpulse.secret_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Secret Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your Secret Key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://login.sendpulse.com/settings/api",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Secret Key"))))})))))}function eT({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for SMTP.com")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-smtp.com","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("SMTP.com Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.smtpcom.api_key":"smtpcom.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API Key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://my.smtp.com/settings/api",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get API Key"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.smtpcom.sender":"smtpcom.sender",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Sender Name")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Sender Name"),...e})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://my.smtp.com/senders/",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get Sender Name"))))})))))}const tT=[{id:"sparkpost_all",value:"",name:"All"},{id:"sparkpost_eu",value:"EU",name:"EU"}];function nT({isFallback:e=!1}){return React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for SparkPost")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-sparkpost","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("SparkPost Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.sparkpost.api_key":"sparkpost.api_key",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Key")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your API key")})),React.createElement(dp,{className:"text-muted-foreground text-sm"},__("Click here to")," ",React.createElement("a",{href:"https://app.sparkpost.com/account/api-keys",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"},__("Get API Key"))))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:e?"fallback_service_provider_mailer_settings.sparkpost.region":"sparkpost.region",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("API Location")),React.createElement(up,null,React.createElement(ID,{defaultValue:"",className:"flex gap-16",value:e.value,onValueChange:e.onChange},tT.map(e=>React.createElement("div",{className:"flex items-center gap-2"},React.createElement(HD,{id:e.id,value:e.value}),React.createElement(np,{htmlFor:e.id},e.name))))))})))))}const aT=window.yaySmtpWpData.zohoRegions,rT=e=>{var t,n,a,r,o,i;const s=new Date;return!(null==(t=null==e?void 0:e.zoho)?void 0:t.created_at)||!(null==(n=null==e?void 0:e.zoho)?void 0:n.expires_in)||Number(null==(a=null==e?void 0:e.zoho)?void 0:a.created_at)+Number(null==(r=null==e?void 0:e.zoho)?void 0:r.expires_in)<Math.floor(s.getTime()/1e3)||0===Number(null==(o=null==e?void 0:e.zoho)?void 0:o.created_at)||0===Number(null==(i=null==e?void 0:e.zoho)?void 0:i.expires_in)};function oT(){var e,t,n;const{authUrl:a}=_s(),{settings:r}=Ms(),o=(null==(e=null==r?void 0:r.zoho)?void 0:e.client_id)&&(null==(t=null==r?void 0:r.zoho)?void 0:t.client_secret),i=null==(n=null==r?void 0:r.zoho)?void 0:n.access_token,{isMultisiteMode:s,isNetworkAdmin:l}=Ss();let c=(e=>(e=>{var t,n,a,r;return(null==(t=null==e?void 0:e.zoho)?void 0:t.client_id)!==(null==(n=null==e?void 0:e.zoho)?void 0:n.token_client_id)||(null==(a=null==e?void 0:e.zoho)?void 0:a.client_secret)!==(null==(r=null==e?void 0:e.zoho)?void 0:r.token_client_secret)})(e||{})||rT(e||{})?__("Please check your client ID and client secret or re-confirm authorization"):"")(r||{});return""!==c||i||(c=__("Please check your client ID and client secret or re-confirm authorization")),React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 3")),React.createElement("div",{className:"text-xl font-semibold"},__("Config for Zoho")),React.createElement(tC,null,React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps/how-to-connect-zoho","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("div",{className:"text-center text-sm"},__("Zoho Documentation")))))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"zoho.data_center",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Data Center")),React.createElement(up,null,React.createElement(fR,{defaultValue:"zoho.com",value:e.value,onValueChange:t=>e.onChange(t)},React.createElement(gR,{className:"w-full cursor-pointer"},React.createElement(pR,{placeholder:__("Select Data Center")})),React.createElement(vR,null,Object.entries(aT).map(([e,t])=>React.createElement(yR,{key:e,value:e,className:"cursor-pointer"},String(t)))))),React.createElement(dp,{className:"text-muted-foreground mt-2 text-sm"},__("Where is your account hosted?")))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"zoho.client_id",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client ID")),React.createElement(up,null,React.createElement(hp,{type:"text",placeholder:__("Enter your Client ID"),...e})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"zoho.client_secret",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("Client Secret")),React.createElement(up,null,React.createElement(iC,{field:e,placeholder:__("Enter your Client Secret")})))})),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(cp,{className:"mb-2 text-sm"},__("Authorized Redirect URI")),React.createElement("div",{className:"flex gap-1"},React.createElement(hp,{disabled:!0,value:`${window.yaySmtpWpData.DASHBOARD_URL}admin.php?page=yaysmtp`}),React.createElement(qA,{content:`${window.yaySmtpWpData.DASHBOARD_URL}admin.php?page=yaysmtp`,className:"size-9 rounded-md",size:"default",variant:"outline"})),React.createElement(dp,{className:"text-muted-foreground mt-2 text-sm"},__('Put this URL into your Zoho Developer Console > "Authorized Redirect URIs" field.'))),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(cp,{className:"mb-2 text-sm"},__("Authorization Connect")),!o&&React.createElement(Af,{variant:"destructive",className:"mb-2 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("Put your Client ID and Client Secret, then save them.")))),o&&React.createElement(React.Fragment,null,!i&&React.createElement(React.Fragment,null,React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Zf,{variant:"outline",className:"w-fit cursor-pointer",onClick:()=>{window.location.href=(null==a?void 0:a.zoho)||"#"}},__("Confirm authorization")),React.createElement(KA,{content:__("Click the button to confirm authorization")})),!s&&l&&React.createElement(Af,{variant:"destructive",className:"mt-2 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("If you are selecting On mode of multisite setting. Please save change to apply On mode before confirming authorization."))))),i&&React.createElement("div",{className:"flex items-center gap-2"},React.createElement(Zf,{variant:"outline",className:"w-fit cursor-pointer",onClick:async()=>{await async function(){return await Xc.post("yaysmtp_yoho_remove_auth")}(),window.location.reload()}},__("Remove Authorization"))),c&&React.createElement(Af,{variant:"destructive",className:"mt-2 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},c))),sm(r||{})&&!rT(r||{})&&React.createElement(Af,{className:"mt-2 w-fit"},React.createElement(vs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("You are authorized. Let's send some test mail")))))))))}function iT(){const{debugText:e}=Ns();return React.createElement("div",{className:"space-y-6"},React.createElement(qf,null,React.createElement(Kf,null,React.createElement(Yf,{className:"text-destructive text-xl font-bold"},__("Email Delivery Issue"))),React.createElement(Xf,null,React.createElement("p",{className:"mb-4 text-sm"},__("YaySMTP noticed this error (yikes!) while trying to send the most recent emails:")),React.createElement("p",{className:"border-destructive text-muted-foreground mt-4 mb-4 flex flex-col gap-1 border-l-2 pl-2"},null==e?void 0:e.normal.map((e,t)=>React.createElement("span",{key:t},e))),React.createElement("p",{className:"mb-4 text-sm font-medium"},__("Please fix it and send a test email afterwards."),React.createElement("a",{href:"https://yaycommerce.com/support/",target:"_blank",rel:"noopener noreferrer",className:"text-ring underline"}," ",__("Contact us"))," ",__("if you need any helps.")))))}function sT(){return React.createElement(Af,{className:"border-warning bg-warning/10 w-full"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("Your site is currently not delivering real emails. All outgoing emails are only shown in email logs and will not be sent through your SMTP service.")," ",React.createElement("a",{href:"https://docs.yaycommerce.com/yaysmtp/settings-and-tools/additional-settings#preview-mode",target:"_blank",rel:"noopener noreferrer",className:"text-ring inline-flex items-center gap-1 underline"},__("Learn more"),React.createElement(xs,{className:"h-4 w-4"})))))}function lT(){var e;const{settings:t,updateSettings:n}=Ms(),[a,r]=ze.useState(!1),o=(null==(e=null==t?void 0:t.amazonses)?void 0:e.region)||"us-east-1",i=`https://${o}.console.aws.amazon.com/ses/home?region=${o}#verified-senders-email:`,s=(null==t?void 0:t.succ_sent_mail_last)??!0,l="yes"===(null==t?void 0:t.disable_emails_delivery),{authUrl:c,updateAuthUrl:u}=_s(),{isMultisiteMode:d,updateMultisiteMode:m}=Ss(),h=hi({resolver:Fi(xf),defaultValues:{...t,currentMailer:(null==t?void 0:t.currentMailer)||"mail",allowMultisite:(null==t?void 0:t.allowMultisite)||"no",fromEmail:(null==t?void 0:t.fromEmail)||window.yaySmtpWpData.adminEmail,fromName:(null==t?void 0:t.fromName)||window.yaySmtpWpData.adminName,forceFromEmail:(null==t?void 0:t.forceFromEmail)||"0",forceFromName:(null==t?void 0:t.forceFromName)||"0"},shouldUnregister:!0}),{isChanged:f,resetBaseline:p}=mm(h,t),g=h.watch("currentMailer")||"mail",v=h.watch("allowMultisite")||(null==t?void 0:t.allowMultisite)||"no",y=!window.yaySmtpWpData.is_multisite||!window.yaySmtpWpData.is_network_admin||"no"!==v,b=Xt({mutationKey:["dashboard","settings"],mutationFn:e=>async function(e){const t={...e};e.currentMailer&&"mail"!==e.currentMailer&&delete t[e.currentMailer];const n={...t,mailerSettings:e.currentMailer&&"mail"!==e.currentMailer?e[e.currentMailer]:{},isNetworkAdmin:window.yaySmtpWpData.is_network_admin};return await Xc.postJson("yaysmtp_save_settings",{params:{...n}})}(e)});return React.createElement(React.Fragment,null,(!d||window.yaySmtpWpData.is_network_admin)&&React.createElement("div",{className:"mx-auto mt-6 w-[1000px] max-w-[90%] px-2.5"},React.createElement("h1",{className:"py-4 text-3xl font-bold md:py-8"},__("Welcome to YaySMTP")),React.createElement("div",{className:"flex flex-col gap-6"},l&&React.createElement(sT,null),!s&&React.createElement(iT,null)),React.createElement(ap,{...h},React.createElement("form",{onSubmit:h.handleSubmit(async function(e){try{r(!0);const a=e.currentMailer,o={...window.yaySmtpWpData.is_multisite&&window.yaySmtpWpData.is_network_admin&&"no"===e.allowMultisite?{allowMultisite:e.allowMultisite,currentMailer:(null==t?void 0:t.currentMailer)||"mail",fromEmail:(null==t?void 0:t.fromEmail)||window.yaySmtpWpData.adminEmail,fromName:(null==t?void 0:t.fromName)||window.yaySmtpWpData.adminName,forceFromEmail:(null==t?void 0:t.forceFromEmail)||"0",forceFromName:(null==t?void 0:t.forceFromName)||"0"}:{allowMultisite:e.allowMultisite||"no",currentMailer:a,fromEmail:e.fromEmail,fromName:e.fromName,forceFromEmail:e.forceFromEmail,forceFromName:e.forceFromName},...a&&"mail"!==a?{[a]:e[a]}:{}},i={...t||{},...o,...o.currentMailer&&"mail"!==o.currentMailer?{[o.currentMailer]:{...(null==t?void 0:t[o.currentMailer])||{},...o[o.currentMailer]||{}}}:{}};n(i),h.reset(i,{keepValues:!0});const s=await b.mutateAsync(o);if(s.success){const e=s.data.respData;if(null==e?void 0:e.authUrl){const t={...c,...e.authUrl};u(t)}(null==e?void 0:e.is_multisite_mode)&&m(e.is_multisite_mode),p(),Zx(s.data.mess),"outlookms"!==a&&"gmail"!==a&&"zoho"!==a||window.location.reload()}else Gx(s.data.mess)}catch(a){Gx(a instanceof Error?a.message:__("Failed to save settings."))}finally{r(!1)}},function(e){Gx(__("Please check your settings")),console.log("Invalid settings",{errors:e,formValues:h.getValues()})})},window.yaySmtpWpData.is_multisite&&window.yaySmtpWpData.is_network_admin&&React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 text-xl font-bold"},__("Multisite")),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex gap-4"},React.createElement(op,{name:"allowMultisite",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"allowMultisite",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))}),React.createElement("div",null,React.createElement(cp,{htmlFor:"allowMultisite",className:"text-sm font-medium"},__("Allow SMTP settings for multisite")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},__("If enable a multisite setting, each subsite will inherit the network admin SMTP settings. If disabled a multisite setting, each subsite of this multisite will have its own SMTP settings."))))))),y&&React.createElement(React.Fragment,null,React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 1")),React.createElement("div",{className:"text-xl font-semibold"},__("Enter email from"))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"fromEmail",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("From Email")),React.createElement(up,null,React.createElement(hp,{className:h.formState.errors.fromEmail?"border-destructive":"",placeholder:"from@example.com",...e})),React.createElement(mp,null))})),React.createElement("div",{className:"mt-6 flex w-full gap-4 md:w-1/2"},React.createElement(op,{name:"forceFromEmail",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"forceFromEmail",checked:"1"===e.value,onCheckedChange:t=>e.onChange(t?"1":"0")})))}),React.createElement("div",null,React.createElement(cp,{htmlFor:"forceFromEmail",className:"text-sm font-medium"},__("Force From Email")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},__("Always send emails with the above From Email address, overriding other plugins settings.")))),"amazonses"===g&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("If your account is still in Amazon SES sandbox mode. ")),React.createElement("p",{className:"text-sm"},__("You can only send mail from verified email addresses.")),React.createElement("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"text-ring flex items-center gap-1 text-sm underline"},__("Click to verify Email From"),React.createElement(xs,{className:"h-4 w-4"})))),"postmark"===g&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("You can only send mail from verified email addresses.")),React.createElement("a",{href:"https://account.postmarkapp.com/signature_domains",target:"_blank",rel:"noopener noreferrer",className:"text-ring flex items-center gap-1 text-sm underline"},__("Click to Sender Signature"),React.createElement(xs,{className:"h-4 w-4"})))),"sparkpost"===g&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("You can only send mail from verified sending domains.")))),"outlookms"===g&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("From Email should be a Microsoft email account or an email address licensed by Microsoft to send on behalf.")))),"gmail"===g&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("You can only send mail from Google email account.")))),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"fromName",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{className:"text-sm"},__("From Name")),React.createElement(up,null,React.createElement(hp,{placeholder:"From Name",...e})))})),React.createElement("div",{className:"mt-6 flex w-full gap-4 md:w-1/2"},React.createElement(op,{name:"forceFromName",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"forceFromName",checked:"1"===e.value,onCheckedChange:t=>e.onChange(t?"1":"0")})))}),React.createElement("div",null,React.createElement(cp,{htmlFor:"forceFromName",className:"text-sm font-medium"},__("Force From Name")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},__("Always send emails with the above From Name, overriding other plugins settings.")))),"outlookms"===g&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("From Name should be the account name used to setup the connection."))))))),React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 2")),React.createElement("div",{className:"text-xl font-semibold"},__("Select mailer"))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/4"},React.createElement(op,{name:"currentMailer",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(kx,{values:Object.entries(cT).map(([e,t])=>({label:String(t),value:e,iconUrl:uT[e]})),selectedValue:e.value,onValueChange:t=>{const n=window.scrollY;e.onChange(t),requestAnimationFrame(()=>{window.scrollTo(0,n)})},placeholder:__("Select mailer"),className:"w-full cursor-pointer"})))}))))),"gmail"===g&&React.createElement(YA,null),"zoho"===g&&React.createElement(oT,null),"outlookms"===g&&React.createElement(qD,null),"amazonses"===g&&React.createElement(lC,null),"mailgun"===g&&React.createElement(WD,null),"mailjet"===g&&React.createElement(UD,null),"mandrill"===g&&React.createElement($D,null),"sparkpost"===g&&React.createElement(nT,null),"smtpcom"===g&&React.createElement(eT,null),"sendgrid"===g&&React.createElement(XD,null),"sendinblue"===g&&React.createElement(QD,null),"sendpulse"===g&&React.createElement(JD,null),"smtp"===g&&React.createElement(GD,null),"mail"===g&&React.createElement(cC,null),"postmark"===g&&React.createElement(YD,null),"pepipost"===g&&React.createElement(KD,null)),React.createElement(Zf,{type:"submit",disabled:a,variant:f?"primary":"disabled",className:"relative mt-8 cursor-pointer"},React.createElement("span",{className:a?"invisible":""},__("Save Changes")),a&&React.createElement("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},React.createElement(Qi,{className:"animate-spin"})))))))}const cT=window.yaySmtpWpData.mailers,uT={amazonses:"data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 67 40' xml:space='preserve'%3E%3Cstyle%3E.st1%7Bfill:%23f90%7D%3C/style%3E%3Cpath d='M18.9 14.5c0 .8.1 1.5.2 2 .2.5.4 1 .7 1.6.1.2.2.4.2.5 0 .2-.1.4-.4.7l-1.4.9c-.2.1-.4.2-.6.2-.2 0-.4-.1-.7-.3-.3-.3-.6-.7-.8-1-.2-.4-.4-.8-.7-1.3-1.7 2-3.9 3.1-6.5 3.1-1.9 0-3.4-.5-4.5-1.6S2.8 16.8 2.8 15c0-1.9.7-3.4 2-4.6S8 8.6 10.3 8.6c.8 0 1.5.1 2.4.2.8.1 1.7.3 2.6.5V7.6c0-1.7-.4-2.9-1-3.6-.7-.7-1.9-1-3.6-1-.8 0-1.6.1-2.4.3-1 .3-1.8.5-2.6.8-.4.2-.6.3-.8.3s-.3.1-.3.1c-.3 0-.5-.2-.5-.7V2.7c0-.4 0-.6.2-.8.1-.2.3-.3.6-.5.8-.4 1.7-.7 2.8-1C8.8.1 9.9 0 11.1 0c2.6 0 4.6.6 5.8 1.8 1.2 1.2 1.8 3 1.8 5.5l.2 7.2zm-9.1 3.4c.7 0 1.5-.1 2.3-.4.8-.3 1.5-.8 2.1-1.4.4-.4.6-.9.8-1.4.1-.5.2-1.2.2-1.9v-.9c-.6-.2-1.3-.3-2-.4s-1.4-.1-2.1-.1c-1.5 0-2.6.3-3.3.9-.7.6-1.1 1.4-1.1 2.6 0 1 .3 1.8.8 2.4.5.3 1.3.6 2.3.6zm17.9 2.4c-.4 0-.7-.1-.8-.2-.2-.1-.3-.4-.5-.9L21.2 2c-.2-.5-.2-.7-.2-.9 0-.4.2-.6.5-.6h2.2c.4 0 .7.1.9.2.2.1.3.4.4.9l3.7 14.7 3.5-14.7c.1-.4.2-.7.4-.9.2-.1.5-.2.9-.2h1.8c.4 0 .7.1.9.2.2.1.3.4.4.9l3.5 14.9L44 1.6c.1-.4.3-.7.4-.9.2-.1.5-.2.9-.2h2.1c.4 0 .6.2.6.6v.4c0 .1-.1.3-.2.6l-5.4 17.2c-.1.4-.3.7-.5.9-.2.1-.5.2-.8.2h-1.9c-.4 0-.7-.1-.9-.2-.2-.2-.3-.4-.4-.9L34.4 4.8 31 19.1c-.1.4-.2.7-.4.9-.2.2-.5.2-.9.2h-2zm28.6.6c-1.2 0-2.3-.1-3.4-.4-1.1-.3-2-.6-2.6-.9-.4-.2-.6-.4-.7-.6-.1-.2-.1-.4-.1-.6v-1.1c0-.5.2-.7.5-.7.1 0 .3 0 .4.1s.3.1.6.2c.8.3 1.6.6 2.4.8.9.2 1.8.3 2.6.3 1.4 0 2.5-.2 3.3-.7.8-.5 1.2-1.2 1.2-2.1 0-.6-.2-1.1-.6-1.6-.4-.4-1.2-.8-2.2-1.2l-3.2-1c-1.6-.5-2.8-1.3-3.6-2.3-.7-1-1.1-2.1-1.1-3.2 0-.9.2-1.8.6-2.5.4-.7.9-1.3 1.6-1.8.7-.5 1.4-.9 2.3-1.2s1.8-.4 2.8-.4c.5 0 1 0 1.5.1s1 .2 1.4.2c.4.1.9.2 1.3.4.4.1.7.3.9.4.3.2.5.4.7.6.1.1.2.3.2.6v1c0 .5-.2.7-.5.7-.2 0-.5-.1-.8-.3-1.4-.4-2.8-.7-4.4-.7-1.3 0-2.3.2-3 .6-.7.4-1 1.1-1 2 0 .6.2 1.2.7 1.6.4.4 1.3.8 2.4 1.2l3.2 1c1.6.5 2.8 1.2 3.5 2.1.7.9 1 2 1 3.1 0 1-.2 1.8-.6 2.6-.4.8-.9 1.4-1.6 2-.7.6-1.5 1-2.5 1.2-1 .3-2 .5-3.2.5z' fill='%23252f3e'/%3E%3Cpath class='st1' d='M60.5 31.7c-7.3 5.4-18 8.3-27.1 8.3C20.6 40 9 35.3.3 27.4c-.7-.6-.1-1.5.8-1 9.4 5.5 21.1 8.8 33.1 8.8 8.1 0 17.1-1.7 25.3-5.2 1.2-.5 2.2.8 1 1.7z'/%3E%3Cpath class='st1' d='M63.6 28.2c-1-1.2-6.2-.5-8.6-.2-.7.1-.8-.5-.2-1 4.2-2.9 11.1-2.1 11.9-1.1.8 1-.2 7.9-4.1 11.2-.6.5-1.2.2-.9-.4.8-2.3 2.8-7.3 1.9-8.5z'/%3E%3C/svg%3E",gmail:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52.4 40'%3E%3Cpath d='M.3 4.3C.2 4.9 0 5.5 0 6.2v29.2C0 38 2.1 40 4.6 40h7.8V18.8l-9.8-7.7C.5 9.5 0 6.4.3 4.3z' fill='%234285f4'/%3E%3Cpath d='M.3 4.3z' fill='%234067b6'/%3E%3Cpath d='M50.8 2.4C48.6-.3 44.3 0 42.4 1.3L26.2 13.9 10 1.3C7.3-.8 3.6.1 1.4 2.7c-.4.6-.7.9-.9 1.5.9-2.3 3-4.2 5.7-4.2 3.4 0 6.2 2.8 6.2 6.2v12.6l13.9 10.8L40 18.8V6.2C40 2.8 42.8.3 46.2.3' fill='%23ea4335'/%3E%3Cpath d='M.3 4.2c-.8 2.3 0 5.1 2 6.7l10.1 7.9V6.2C12.4 2.8 9.6 0 6.2 0 3.5 0 1.3 1.7.4 4l-.1.2z' fill='%23c5221f'/%3E%3Cpath d='M50 11l-10 7.8V40h7.8c2.5 0 4.6-2 4.6-4.6V6.7c-.2 1.6-1 3.2-2.4 4.3z' fill='%2334a853'/%3E%3Cpath d='M52.4 6.7v-.4c0-3.5-2.8-6.2-6.2-6.2C42.8 0 40 2.8 40 6.2v12.6L50 11c1.4-1.1 2.2-2.7 2.4-4.3z' fill='%23fbbc04'/%3E%3C/svg%3E",mail:"data:image/svg+xml,%3Csvg height='383.598' width='711.201' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath clipPathUnits='userSpaceOnUse' id='a'%3E%3Cpath d='M11.52 162C11.52 81.677 135.307 16.561 288 16.561S564.481 81.677 564.481 162c0 80.322-123.788 145.439-276.481 145.439-152.693 0-276.48-65.117-276.48-145.439'/%3E%3C/clipPath%3E%3CclipPath clipPathUnits='userSpaceOnUse' id='c'%3E%3Cpath d='M0 324h576V0H0v324z'/%3E%3C/clipPath%3E%3CclipPath clipPathUnits='userSpaceOnUse' id='d'%3E%3Cpath d='M0 324h576V0H0v324z'/%3E%3C/clipPath%3E%3CradialGradient cx='0' cy='0' fx='0' fy='0' gradientTransform='matrix(363.05789 0 0 -363.05789 177.52 256.307)' gradientUnits='userSpaceOnUse' id='b' r='1' spreadMethod='pad'%3E%3Cstop offset='0' stop-color='%23aeb2d5'/%3E%3Cstop offset='.3' stop-color='%23aeb2d5'/%3E%3Cstop offset='.75' stop-color='%23484c89'/%3E%3Cstop offset='1' stop-color='%23484c89'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg clip-path='url(%23a)' transform='matrix(1.25 0 0 -1.25 -4.4 394.299)'%3E%3Cpath d='M11.52 162C11.52 81.677 135.307 16.561 288 16.561S564.481 81.677 564.481 162c0 80.322-123.788 145.439-276.481 145.439-152.693 0-276.48-65.117-276.48-145.439' fill='url(%23b)'/%3E%3C/g%3E%3Cg clip-path='url(%23c)' transform='matrix(1.25 0 0 -1.25 -4.4 394.299)'%3E%3Cpath d='M288 27.36c146.729 0 265.68 60.28 265.68 134.64 0 74.36-118.951 134.641-265.68 134.641S22.32 236.36 22.32 162.001C22.32 87.64 141.271 27.358 288 27.358' fill='%23777bb3'/%3E%3C/g%3E%3Cg clip-path='url(%23d)' transform='matrix(1.25 0 0 -1.25 -4.4 394.299)'%3E%3Cpath d='M161.734 145.307c12.065 0 21.072 2.225 26.771 6.61 5.638 4.342 9.532 11.863 11.573 22.354 1.903 9.806 1.178 16.653-2.154 20.348-3.407 3.774-10.773 5.688-21.893 5.688h-19.28l-10.69-55h15.673zm-63.063-67.75a2.998 2.998 0 00-2.944 3.572l28.328 145.75a3 3 0 002.945 2.428h61.054c19.188 0 33.47-5.21 42.447-15.487 9.025-10.331 11.812-24.772 8.283-42.921-1.436-7.394-3.906-14.261-7.34-20.41-3.44-6.154-7.985-11.85-13.512-16.93-6.616-6.191-14.104-10.681-22.236-13.323-8.003-2.607-18.28-3.93-30.548-3.93h-24.722l-7.06-36.321a3 3 0 00-2.944-2.428h-31.75z'/%3E%3Cpath d='M159.224 197.307h16.808c13.42 0 18.083-2.945 19.667-4.7 2.628-2.914 3.124-9.058 1.435-17.767-1.898-9.75-5.416-16.663-10.458-20.545-5.162-3.974-13.554-5.988-24.941-5.988H149.7l9.523 49zm28.83 35H127a6 6 0 01-5.89-4.855L92.784 81.702a6 6 0 015.889-7.144h31.75a6 6 0 015.89 4.854l6.588 33.895h22.249c12.582 0 23.174 1.372 31.479 4.077 8.54 2.775 16.399 7.48 23.354 13.984 5.752 5.292 10.49 11.232 14.08 17.657 3.59 6.427 6.17 13.594 7.668 21.302 3.715 19.104.697 34.402-8.97 45.466-9.571 10.958-24.613 16.514-44.705 16.514m-45.633-90h19.313c12.8 0 22.336 2.411 28.6 7.234 6.267 4.824 10.493 12.875 12.689 24.157 2.1 10.832 1.144 18.476-2.871 22.93-4.02 4.452-12.06 6.68-24.121 6.68h-21.754l-11.856-61m45.633 84c18.367 0 31.766-4.82 40.188-14.462 8.42-9.64 10.957-23.098 7.597-40.375-1.383-7.117-3.722-13.624-7.015-19.519-3.297-5.899-7.602-11.293-12.922-16.184-6.34-5.933-13.383-10.16-21.133-12.679-7.75-2.525-17.621-3.782-29.621-3.782h-27.196l-7.531-38.75h-31.75L127 226.307h61.055' fill='%23fff'/%3E%3Cpath d='M311.583 116.307c-.896 0-1.745.4-2.314 1.092a2.994 2.994 0 00-.631 2.48l12.531 64.489c1.192 6.133.898 10.535-.827 12.395-1.056 1.137-4.228 3.044-13.607 3.044h-22.702l-15.755-81.072a3 3 0 00-2.945-2.428h-31.5a2.998 2.998 0 00-2.945 3.572l28.328 145.75a3 3 0 002.945 2.428h31.5a3 3 0 002.945-3.572l-6.836-35.178h24.422c18.605 0 31.221-3.28 38.569-10.028 7.49-6.884 9.827-17.891 6.947-32.72l-13.18-67.824a3 3 0 00-2.945-2.428h-32z'/%3E%3Cpath d='M293.661 271.057h-31.5a6 6 0 01-5.89-4.855l-28.328-145.75a5.998 5.998 0 015.89-7.145h31.5a6 6 0 015.89 4.855l15.283 78.645h20.23c9.362 0 11.327-2 11.406-2.086.568-.61 1.315-3.44.082-9.78l-12.53-64.49a5.998 5.998 0 015.89-7.144h32a6 6 0 015.89 4.855l13.178 67.825c3.093 15.921.447 27.864-7.86 35.5-7.929 7.281-21.209 10.82-40.6 10.82h-20.784l6.143 31.605a6.001 6.001 0 01-5.89 7.145m0-6l-7.53-38.75h28.061c17.657 0 29.836-3.082 36.54-9.238 6.702-6.16 8.71-16.14 6.031-29.938l-13.18-67.824h-32l12.531 64.488c1.426 7.336.902 12.34-1.574 15.008-2.477 2.668-7.746 4.004-15.805 4.004H281.56l-16.226-83.5h-31.5l28.328 145.75h31.5' fill='%23fff'/%3E%3Cpath d='M409.55 145.307c12.065 0 21.072 2.225 26.77 6.61 5.639 4.34 9.533 11.862 11.575 22.354 1.903 9.806 1.178 16.653-2.155 20.348-3.407 3.774-10.773 5.688-21.893 5.688h-19.281l-10.69-55h15.674zm-63.062-67.75a2.999 2.999 0 00-2.945 3.572l28.328 145.75a3.002 3.002 0 002.946 2.428h61.053c19.189 0 33.47-5.21 42.448-15.487 9.025-10.33 11.81-24.771 8.283-42.921-1.438-7.394-3.907-14.261-7.342-20.41-3.44-6.154-7.984-11.85-13.511-16.93-6.616-6.191-14.104-10.681-22.236-13.323-8.003-2.607-18.281-3.93-30.548-3.93H388.24l-7.057-36.321a3.001 3.001 0 00-2.946-2.428h-31.75z'/%3E%3Cpath d='M407.04 197.307h16.807c13.421 0 18.083-2.945 19.667-4.7 2.63-2.914 3.125-9.058 1.435-17.766-1.898-9.75-5.417-16.664-10.458-20.546-5.162-3.974-13.554-5.988-24.94-5.988h-12.034l9.522 49zm28.83 35h-61.054a6 6 0 01-5.889-4.855L340.6 81.702a6 6 0 015.889-7.144h31.75a6 6 0 015.89 4.854l6.587 33.895h22.25c12.581 0 23.173 1.372 31.478 4.077 8.541 2.775 16.401 7.481 23.356 13.986 5.752 5.291 10.488 11.23 14.078 17.655 3.591 6.427 6.171 13.594 7.668 21.302 3.715 19.105.697 34.403-8.969 45.467-9.572 10.957-24.613 16.513-44.706 16.513m-45.632-90h19.312c12.801 0 22.336 2.411 28.601 7.234 6.267 4.824 10.492 12.875 12.688 24.157 2.102 10.832 1.145 18.476-2.87 22.93-4.02 4.452-12.06 6.68-24.122 6.68h-21.754l-11.855-61m45.632 84c18.367 0 31.766-4.82 40.188-14.462 8.422-9.64 10.957-23.098 7.597-40.375-1.383-7.117-3.722-13.624-7.015-19.519-3.297-5.899-7.602-11.293-12.922-16.184-6.34-5.933-13.383-10.16-21.133-12.679-7.75-2.525-17.62-3.782-29.62-3.782h-27.197l-7.53-38.75h-31.75l28.328 145.75h61.054' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E",mailgun:"data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 115 32' xml:space='preserve'%3E%3Cstyle%3E.st1%7Bfill:%23555%7D%3C/style%3E%3Cpath d='M12.6 10.9c-2.6 0-4.8 2.1-4.8 4.8 0 2.6 2.1 4.8 4.7 4.8h.1c2.6 0 4.8-2.1 4.8-4.8 0-2.6-2.2-4.8-4.8-4.8zm-7.5 4.8c0-4.1 3.3-7.4 7.4-7.4 4.1 0 7.4 3.3 7.4 7.4 0 .2 0 .6-.1.8-.1.7.5 1.3 1.2 1.3 1.2 0 1.4-1.5 1.4-2.1 0-5.4-4.5-9.9-9.9-9.9s-9.9 4.5-9.9 9.9c0 5.5 4.5 9.9 9.9 9.9 2.9 0 5.5-1.2 7.3-3.3l2 1.7c-2.2 2.6-5.6 4.2-9.3 4.2C5.7 28.3 0 22.7 0 15.7v-.1C0 8.8 5.6 3.1 12.6 3.1c6.9 0 12.5 5.7 12.5 12.6 0 2.8-1.3 5-4 5-1.1 0-1.9-.6-2.3-1.1a7.48 7.48 0 01-6.3 3.5c-4.1 0-7.4-3.3-7.4-7.4zm7.5-2.2c1.2 0 2.2 1 2.2 2.2s-1 2.2-2.2 2.2c-1.2 0-2.2-1-2.2-2.2 0-1.3 1-2.2 2.2-2.2z' fill='%23c02428'/%3E%3Cpath class='st1' d='M28.3 11v13.5h3.1v-6.9c0-2.9.7-4.1 2.5-4.1 1.4 0 2 1.1 2 3.6v7.5H39v-6.9c0-2.9.7-4.1 2.5-4.1 1.5 0 2 1 2 3.6v7.5h3.1v-8.5c0-3.7-1.5-5.5-4.5-5.5-1.6 0-3 .7-4 2-.8-1.3-2.1-2-3.6-2-1.3 0-2 .3-3.2 1.6V11h-3zm29.9 0v1.5c-1.4-1.4-2.5-2-4.2-2-3.6 0-6.3 3-6.3 7 0 4.2 2.7 7.2 6.4 7.2 1.6 0 2.7-.5 4.1-1.8v1.4h3.1V11h-3.1zm-3.6 2.4c2.3 0 3.8 1.8 3.8 4.3 0 2.6-1.5 4.4-3.8 4.4-2.2 0-3.7-1.8-3.7-4.4 0-2.4 1.6-4.3 3.7-4.3zM66.9 11h-3.1v13.5h3.1V11zm-1.5-7.5c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM69.7 0h3.1v24.4h-3.1V0zM88.1 11H85v1.5c-1.1-1.2-2.6-1.9-4.2-1.9-3.6 0-6.3 3-6.3 7.2 0 4.1 2.7 7 6.2 7 1.7 0 3-.6 4.2-2v1.9c0 2.9-1.1 4.2-3.4 4.2-1.2 0-2.4-.6-3-1.5-.3-.6-.4-1.1-.5-2.2h-3c0 4.1 2.5 6.6 6.5 6.6 2.3 0 4.3-.9 5.4-2.6.9-1.3 1.1-2.4 1.1-5.1l.1-13.1zm-6.7 2.4c2.3 0 3.7 1.8 3.7 4.3 0 2.6-1.5 4.4-3.7 4.4-2.3 0-3.7-1.7-3.7-4.3s1.4-4.4 3.7-4.4zM93.1 11H90v7.8c0 2.1.4 3.3 1.4 4.4 1.1 1.1 2.6 1.7 4.3 1.7 1.8 0 3.2-.6 4.4-1.7 1.1-1.1 1.4-2.3 1.4-4.4V11h-3.1v7.7c0 2.3-.8 3.3-2.7 3.3-1.8 0-2.6-1.1-2.6-3.3V11zm10.4 0v13.5h3.1V18c0-3.3.7-4.6 2.8-4.6 1.9 0 2.5.9 2.5 3.5v7.6h3.1v-8.3c0-3.7-1.5-5.6-4.9-5.6-1.5 0-2.4.4-3.6 1.6V11h-3z'/%3E%3C/svg%3E",mailjet:"data:image/svg+xml,%3Csvg id='mailjet' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 72.4'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fead0d%7D.cls-2%7Bfill:%23282828%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M38.32 47.19l-5.19-11.61-.09.09 5.27 11.53.01-.01z'/%3E%3Cpath class='cls-1' d='M0 24.26L22.92 34.7l4.52-4.63-11.54-5.28h.02l-.25-.12 36.68-14.09.29-.11-.11.29-14.1 36.68-.11-.25-.01.01-5.27-11.53-4.64 4.51 10.45 22.93L63.11 0 0 24.26z'/%3E%3Cpath class='cls-2' d='M112.35 108.62a12.94 12.94 0 0111.38 13l.13 18.17h-6.32V122a7.15 7.15 0 00-7.15-7.14 7.14 7.14 0 00-7.14 7.14v17.79h-6.32v-17.64a7.25 7.25 0 00-7.25-7.25h-.06a7.09 7.09 0 00-7.09 7.1v17.85h-6.37V109h6.37v3.29s1.9-3.61 8-3.61 9.51 5.85 9.51 5.85a12.44 12.44 0 0112.31-5.91zm-12.89 10.77M129.73 116.07a14.29 14.29 0 015.37-5.56 14.61 14.61 0 017.5-2 14 14 0 016.48 1.43 13.15 13.15 0 014.42 3.55V109h6.56v30.8h-6.56v-4.58a13 13 0 01-4.51 3.63 14.11 14.11 0 01-6.5 1.46 14 14 0 01-7.42-2.05 14.61 14.61 0 01-5.34-5.7 17.27 17.27 0 01-2-8.3 16.82 16.82 0 012-8.19zm22.43 2.8a9.26 9.26 0 00-8.19-4.81 9.53 9.53 0 00-4.68 1.2 9.27 9.27 0 00-3.51 3.52 10.89 10.89 0 00-1.34 5.51 11.33 11.33 0 001.34 5.59 9.38 9.38 0 003.54 3.66 9.18 9.18 0 004.68 1.26 9.21 9.21 0 008.19-4.84 11.13 11.13 0 001.34-5.56 11 11 0 00-1.37-5.53zM168.29 104a3.39 3.39 0 010-4.71 3.19 3.19 0 012.36-1 3.1 3.1 0 012.3 1 3.31 3.31 0 01-2.3 5.66 3.23 3.23 0 01-2.36-.95z' transform='translate(0 -91.8)'/%3E%3Cpath class='cls-2' d='M167.41 17.23h6.37v30.8h-6.37z'/%3E%3Cpath class='cls-2' d='M187.52 93.81v46h-6.38v-46zM188.4 155h-.4v-5.85a6.89 6.89 0 006.9-6.89V109h6.37v33a12.91 12.91 0 01-12.87 13zM195.78 104a3.36 3.36 0 012.39-5.75 3.3 3.3 0 013.31 3.36 3.27 3.27 0 01-1 2.39 3.22 3.22 0 01-2.35 1 3.27 3.27 0 01-2.35-1zM235.34 131.27a13.75 13.75 0 01-4.85 6.35 14.83 14.83 0 01-9.08 2.72 15.78 15.78 0 01-7.91-2 14.1 14.1 0 01-5.48-5.59 17.08 17.08 0 01-2-8.36A17.54 17.54 0 01208 116a13.65 13.65 0 015.43-5.56 16.18 16.18 0 018-2 15.64 15.64 0 017.77 1.91 13.41 13.41 0 015.31 5.33 16.08 16.08 0 011.9 7.92 20 20 0 01-.22 3.13h-23.56a8.55 8.55 0 002.74 5.92 8.65 8.65 0 006 2.24 7.44 7.44 0 007-3.72zm-5.6-9.61a7.24 7.24 0 00-2.52-5.64 9 9 0 00-6.09-2.13 8.19 8.19 0 00-5.65 2.1 8.8 8.8 0 00-2.79 5.67zM243.51 139.71v-24.49h-4.31V109h4.31v-9.46h5.76V109H256v6.19h-6.73v24.49zM79.05 152.52a3.69 3.69 0 011.67-.38 3.67 3.67 0 013.33 2 4.71 4.71 0 01.5 2.19 4.78 4.78 0 01-.5 2.2 3.83 3.83 0 01-1.39 1.47 3.61 3.61 0 01-1.94.54 3.77 3.77 0 01-1.72-.34 3.25 3.25 0 01-1.16-.95v1.18h-1.65v-11.76h1.69v4.82a3.14 3.14 0 011.17-.97zm3.44 2.34a2.35 2.35 0 00-.92-.93 2.39 2.39 0 00-1.22-.32 2.4 2.4 0 00-2.13 1.27 3.35 3.35 0 000 2.94 2.43 2.43 0 00.92 1 2.46 2.46 0 001.21.32 2.4 2.4 0 001.22-.33 2.46 2.46 0 00.92-1 3.08 3.08 0 00.34-1.48 3 3 0 00-.34-1.47zM92.65 152.39l-4.92 11.81H86l1.63-3.91-3.16-7.9h1.85l2.26 6.12 2.35-6.12zM105 154.41a3.42 3.42 0 01-1.42 1.34 5 5 0 01-2.37.51h-1.73v4.15h-2.82v-11.56h4.56a5.19 5.19 0 012.34.48 3.34 3.34 0 011.43 1.32 4 4 0 010 3.76zm-2.8-.77a1.66 1.66 0 000-2.14 1.71 1.71 0 00-1.2-.38h-1.52V154H101a1.71 1.71 0 001.21-.36zM113.42 158.37h-3.87l-.69 2h-3l4.18-11.56h2.82l4.18 11.56h-3zm-.72-2.18l-1.21-4.19-1.2 4.23zM126.3 148.85v2.63h-3.07v8.93h-2.81v-8.93h-3.06v-2.63zM138.56 148.85v11.56h-2.81v-4.76h-4v4.76h-2.81v-11.56h2.81v4.53h4v-4.53zM155.78 148.85L153 160.41h-2.9l-1.35-7.61-1.9 7.61h-2.72l-2.72-11.56h2.57l1.6 6.84 1.66-6.84H150l1.45 6.84 1.6-6.84zM161.49 148.85v11.56h-2.82v-11.56zM170.57 160.41l-2.41-4.41h-.52v4.37h-3v-11.52h4.73a5.21 5.21 0 012.33.48 3.29 3.29 0 011.44 1.31 3.71 3.71 0 01.47 1.85 3.41 3.41 0 01-.65 2.06 3.49 3.49 0 01-1.91 1.28l2.66 4.58zm-2.93-6.36h1.59a1.59 1.59 0 001.16-.37 1.44 1.44 0 00.39-1.07 1.38 1.38 0 00-.39-1 1.59 1.59 0 00-1.16-.38h-1.59zM179.22 151.47v2h3.66v2.18h-3.66v2.17H184v2.62h-7.6v-11.59h7.6v2.62z' transform='translate(0 -91.8)'/%3E%3C/svg%3E",outlookms:"data:image/svg+xml,%3Csvg id='outlook' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 255.98'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230364b8%7D.cls-3%7Bfill:%2328a8ea%7D.cls-4%7Bfill:%230078d4%7D.cls-6%7Bfill:none%7D.cls-11%7Bfill-opacity:.1%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M228.75 16H91.22A11.28 11.28 0 0080 27.24V40l77.52 24L240 40V27.24A11.28 11.28 0 00228.75 16z' transform='translate(0 -.01)'/%3E%3Cpath d='M253.18 139.24A90.49 90.49 0 00256 128a5.37 5.37 0 00-2.66-4.62h-.11l-86.7-49.39a12 12 0 00-13 0L66.8 123.31h-.1A5.35 5.35 0 0064 128a92.3 92.3 0 002.8 11.24l91.93 67.23z' transform='translate(0 -.01)' fill='%230a2767'/%3E%3Cpath class='cls-3' d='M192 40h-56l-16.18 24L136 88l56 48h48V88z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-4' d='M80 40h56v48H80z' transform='translate(0 -.01)'/%3E%3Cpath d='M192 40h48v48h-48z' transform='translate(0 -.01)' fill='%2350d9ff'/%3E%3Cpath class='cls-1' d='M192 136l-56-48H80v48l56 48 86.65 14.14z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-6' d='M80.24 40H240' transform='translate(0 -.01)'/%3E%3Cpath class='cls-4' d='M136 88h56v48h-56z' transform='translate(0 -.01)'/%3E%3Cpath d='M80 136h56v48H80z' transform='translate(0 -.01)' fill='%23064a8c'/%3E%3Cpath class='cls-4' d='M192 136h48v48h-48z' transform='translate(0 -.01)'/%3E%3Cpath d='M161.52 201.74l-94.35-68.8 4-7 87.27 49.7a4.25 4.25 0 003.37-.1l87.44-49.84 4 6.95z' transform='translate(0 -.01)' fill-opacity='.5' fill='%230a2767'/%3E%3Cpath d='M253.32 132.62l-.11.06-86.7 49.39a12 12 0 01-11.68.72L185 223.3l66 14.37a12 12 0 005-9.72V128a5.34 5.34 0 01-2.67 4.62z' transform='translate(0 -.01)' fill='%231490df'/%3E%3Cpath d='M256 228v-5.9l-79.86-45.5-9.64 5.49a12 12 0 01-11.68.72L185 223.29l66 14.37a12 12 0 005-9.71z' transform='translate(0 -.01)' fill-opacity='.05'/%3E%3Cpath class='cls-11' d='M255.58 231.06L168 181.19l-1.56.89a12 12 0 01-11.68.72L185 223.29l66 14.37a12.06 12.06 0 004.56-6.65z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-3' d='M66.79 132.72v-.08h-.08l-.24-.16A5.23 5.23 0 0164 128v100a12 12 0 0012 12h168a11.8 11.8 0 003-.4 4.89 4.89 0 001.44-.48 1.05 1.05 0 00.48-.16 8.15 8.15 0 001.84-1l.32-.24z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-11' d='M144 197.33V66.68A10.75 10.75 0 00133.32 56H80.24v59.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v80h69.33A10.74 10.74 0 00144 197.33z' transform='translate(0 -.01)'/%3E%3Cpath d='M136 205.33V74.68A10.75 10.75 0 00125.33 64H80.24v51.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v88h61.34A10.74 10.74 0 00136 205.33zm0-16V74.68A10.75 10.75 0 00125.33 64H80.24v51.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v72h61.34A10.75 10.75 0 00136 189.33zm-8 0V74.68A10.75 10.75 0 00117.33 64H80.24v51.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v72h53.34A10.75 10.75 0 00128 189.33z' transform='translate(0 -.01)' fill-opacity='.2'/%3E%3Cpath class='cls-4' d='M10.66 64h106.66A10.71 10.71 0 01128 74.67v106.66A10.71 10.71 0 01117.32 192H10.66A10.71 10.71 0 010 181.33V74.67A10.71 10.71 0 0110.66 64z' transform='translate(0 -.01)'/%3E%3Cpath d='M30.93 107.75a33.42 33.42 0 0113.14-14.51A39.65 39.65 0 0165 88a36.93 36.93 0 0119.31 5A33.16 33.16 0 0197 106.83a44.81 44.81 0 014.48 20.39 47.11 47.11 0 01-4.62 21.33 33.78 33.78 0 01-13.12 14.35 38.39 38.39 0 01-20 5.1A37.85 37.85 0 0144 163a33.69 33.69 0 01-13-13.9 43.72 43.72 0 01-4.53-20.16 48.55 48.55 0 014.45-21.19zm14 34.06a21.74 21.74 0 007.39 9.55 19.36 19.36 0 0011.55 3.48 20.27 20.27 0 0012.32-3.59 20.79 20.79 0 007.18-9.57 36.93 36.93 0 002.29-13.33 40.65 40.65 0 00-2.15-13.48 21.39 21.39 0 00-6.93-9.93 19.09 19.09 0 00-12.22-3.78 19.9 19.9 0 00-11.81 3.51A22 22 0 0045 114.3a38.22 38.22 0 00-.05 27.51z' transform='translate(0 -.01)' fill='%23fff'/%3E%3Cpath class='cls-6' d='M0 0h256v256H0z' transform='translate(0 -.01)'/%3E%3C/svg%3E",pepipost:"data:image/svg+xml,%3Csvg id='pepipost' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 63.44'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%239d1b40%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M8.92 132.11c4.23-.05 9.91.37 14.13-.28 5.35-.84 9.65-3.29 12-8.38a19.82 19.82 0 001.38-9.76 14.29 14.29 0 00-10.11-13.15 24.46 24.46 0 00-7.73-1.18H-.03v49.05h8.95zm8.86-24.63a24.49 24.49 0 013.64.31c4 .66 5.84 2.82 6.18 6.91a13.24 13.24 0 01-.13 3.39c-.64 3.52-2.62 5.37-6.24 5.87-3.87.53-8.43.15-12.31.28v-16.76zM85.64 148.39l1.08.28a25.25 25.25 0 006.38.44c7.44-.35 12.72-4.31 14.6-11.3a28.14 28.14 0 00-.7-17 14 14 0 00-9.43-8.9 21.57 21.57 0 00-9.57-.41 12.38 12.38 0 00-11.21 13.26c.26 5.62 0 11.27 0 16.9v20.33h8.88zm0-7.93v-8.65-8.52c0-2.41.86-3.49 3.2-4.1a11.77 11.77 0 015.44-.17 5.78 5.78 0 014.53 4.42 26.25 26.25 0 01.44 12.33c-.86 4.32-3.51 6.18-8.11 6.4a37.27 37.27 0 01-5.53-.36zM140.06 148.39l1.07.28a25.31 25.31 0 006.38.44c7.45-.35 12.73-4.31 14.6-11.3a28 28 0 00-.7-17 14 14 0 00-9.43-8.9 21.56 21.56 0 00-9.59-.41 12.39 12.39 0 00-11.21 13.26c.26 5.62.06 11.27.06 16.9v20.33h8.88zm0-7.93c.05-2.88 0-5.77 0-8.65v-8.52c0-2.41.86-3.49 3.21-4.1a11.77 11.77 0 015.44-.17 5.79 5.79 0 014.53 4.42 26.38 26.38 0 01.44 12.33c-.86 4.32-3.51 6.18-8.11 6.4a37.27 37.27 0 01-5.53-.36zM72.11 133.4a41.5 41.5 0 00-.22-7.94c-.77-4.94-2.73-9.21-7-12.06-3.28-2.18-7-2.49-10.82-2.29a14.86 14.86 0 00-13.27 10 29.43 29.43 0 00-.8 15.49c1 5.23 3.85 9.1 8.92 11.12a20.74 20.74 0 008.37 1.16 27.92 27.92 0 0011.87-2.83l.88-.42v-7.21c-.62.24-.86.4-1.34.6a25 25 0 01-8.23 2.2c-7.86.45-10.61-1.34-11.7-5a12.34 12.34 0 01-.44-2.57v-.26zm-23.84-6a14.12 14.12 0 01.28-2.25c.13-.63.26-1.26.44-1.88a6.16 6.16 0 015.51-4.82 6.77 6.77 0 016.71 3.3 14.21 14.21 0 011.6 4.64l.16 1zM189.35 111.71a23 23 0 00-8.47-.32c-6.24.9-10.68 4.13-12.71 10.21a26.94 26.94 0 00-.22 16.26 14.18 14.18 0 009.72 10.14 19 19 0 006.46.9h1.44c7.75-.17 13.34-4.49 15.21-12a27.38 27.38 0 00-.36-15 14.31 14.31 0 00-11.07-10.19zm2.75 24.41a6.57 6.57 0 01-5.74 5.33 12.48 12.48 0 01-4.18 0c-3-.5-5-2.07-5.72-5.11a28.54 28.54 0 01-.58-6.3 25.22 25.22 0 01.67-6.57 6.28 6.28 0 015.32-4.77 11.7 11.7 0 013.78-.17c4.41.57 6.48 2.95 6.89 7.95.09 1.17.11 2.35.14 3a29.83 29.83 0 01-.58 6.64zM227.14 120.56a19.37 19.37 0 00-11.41-1.56 7 7 0 00-1.27.32c-1.12.41-2 1-2.08 2.39a2.63 2.63 0 001.77 2.51c2.28 1.15 4.79 1.6 7.18 2.4 3 1 5.7 2.56 7.12 5.55 3.43 7.22.65 14.65-8.44 16.42a22.57 22.57 0 01-14.51-2.09c-.44-.22-1-.58-1-.58v-7.8a24.5 24.5 0 005.58 2.54 18.37 18.37 0 008 .41 3 3 0 002.76-2.4 3 3 0 00-1.78-3.43c-2.46-1.37-5.25-1.86-7.85-2.84a17 17 0 01-4-1.93c-5.43-3.83-4.59-12.83-.17-16.17 3.65-2.76 7.75-3.44 12.13-3a21.21 21.21 0 017.92 2.36zM238.44 119.24c0 5.81-.07 13 .05 18.77a10.39 10.39 0 004.07 8.57c4 3 8.37 2.8 12.87 1.48a4.54 4.54 0 00.57-.24v-.65-6.58a26 26 0 01-2.61.59 14.87 14.87 0 01-2.75.07c-2.31-.17-3.27-1.14-3.28-3.39v-18.69H256v-7.48h-8.57v-10.87h-9v10.87h-6.17v7.58z' transform='translate(0 -98.57)'/%3E%3Cpath class='cls-1' d='M115.21 13.1h8.81v36.69h-8.81zM115.21 0h8.81v8.17h-8.81z'/%3E%3C/svg%3E",postmark:"data:image/svg+xml,%3Csvg version='1.1' id='postmark_1_' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 256 256' xml:space='preserve'%3E%3Cstyle%3E.st2%7Bfill:%23fff%7D%3C/style%3E%3Cg id='postmark'%3E%3Cpath d='M253 231.6v11.7c-5.4 0-9.8 4.4-9.8 9.8h-11.7c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.7h-11.7c.2-5.4-4.1-9.9-9.5-10.1-5.4-.2-9.9 4.1-10.1 9.5v.6H169c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8h-11.7c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8h-11.7c-.3-5.4-4.9-9.5-10.3-9.2-5 .3-8.9 4.2-9.2 9.2H75.3c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8H44c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8H12.7c0-5.4-4.4-9.7-9.7-9.7v-11.7c5.4 0 9.8-4.4 9.8-9.8S8.4 212 3 212v-11.7c5.4 0 9.8-4.4 9.8-9.8s-4.4-9.8-9.8-9.8V169c5.4 0 9.8-4.4 9.8-9.8s-4.4-9.8-9.8-9.8v-11.7c5.4 0 9.8-4.4 9.8-9.8s-4.4-9.8-9.8-9.8v-11.7c5.4-.3 9.5-4.9 9.2-10.3C11.9 91.2 8 87.3 3 87V75.3c5.4 0 9.8-4.4 9.8-9.8S8.4 55.7 3 55.7V44c5.4 0 9.8-4.4 9.8-9.8S8.4 24.4 3 24.4V12.7c5.4 0 9.7-4.4 9.7-9.7h11.7c0 5.4 4.4 9.8 9.8 9.8S44 8.4 44 3h11.7c0 5.4 4.4 9.8 9.8 9.8s9.8-4.4 9.8-9.8H87c0 5.4 4.4 9.8 9.8 9.8s9.8-4.4 9.8-9.8h11.7c0 5.4 4.4 9.8 9.8 9.8s9.8-4.4 9.8-9.8h11.7c.4 5.4 5.1 9.4 10.5 9 4.8-.4 8.6-4.2 9-9h11.7c-.2 5.4 4.1 9.9 9.5 10.1 5.4.2 9.9-4.1 10.1-9.5V3H212c-.2 5.4 4.1 9.9 9.5 10.1 5.4.2 9.9-4.1 10.1-9.5V3h11.7c0 5.4 4.4 9.7 9.7 9.7v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8V87c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8v11.7c-5.4.4-9.4 5.1-9 10.5.4 4.8 4.2 8.6 9 9v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8V212c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.7 9.8 9.8z' fill='%23f0f0f0'/%3E%3Cpath d='M246.2 256h-17.6v-3c.3-3.8-2.5-7-6.3-7.3s-7 2.5-7.3 6.3v4h-17.7v-3c0-3.8-3.1-6.8-6.8-6.8-3.8 0-6.8 3-6.8 6.8v3h-17.6v-3c0-3.8-3-6.8-6.8-6.8s-6.8 3-6.8 6.8v3h-17.6v-3c0-3.8-3-6.8-6.8-6.8s-6.8 3-6.8 6.8v3h-17.6v-3c0-3.8-3-6.8-6.8-6.8s-6.8 3-6.8 6.8v3H72.3v-3c0-3.8-3.1-6.8-6.8-6.8-3.8 0-6.8 3-6.8 6.8v3H41v-3c0-3.8-3.1-6.8-6.8-6.8-3.8 0-6.8 3-6.8 6.8v3H9.8v-3c0-3.7-3-6.7-6.8-6.8H0v-17.6h3c3.8.3 7-2.5 7.3-6.3.3-3.8-2.5-7-6.3-7.3H0v-17.7h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0v-17.6h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0v-17.6h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0v-17.6h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0V72.3h3c3.8.1 6.9-2.8 7.1-6.5.1-3.8-2.8-6.9-6.5-7.1H0V41h3c3.8.3 7-2.5 7.3-6.3.3-3.8-2.5-7-6.3-7.3H0V9.8h3c3.7 0 6.7-3 6.8-6.8V0h17.6v3c.2 3.8 3.5 6.6 7.2 6.3 3.5-.2 6.2-2.9 6.4-6.3V0h17.7v3c0 3.8 3 6.8 6.8 6.8s6.8-3 6.8-6.8V0h17.6v3c0 3.8 3 6.8 6.8 6.8s6.8-3 6.8-6.8V0h17.6v3c0 3.8 3.1 6.8 6.8 6.8 3.8 0 6.8-3 6.8-6.8V0h17.6v3c0 3.8 3.1 6.8 6.8 6.8 3.8 0 6.8-3 6.8-6.8V0h17.6v3c0 3.8 3 6.8 6.8 6.8s6.8-3 6.8-6.8V0H215v3c-.1 3.8 2.8 6.9 6.5 7.1s6.9-2.8 7.1-6.5V0h17.6v3c0 3.7 3 6.7 6.7 6.8h3v17.6h-3c-3.8-.3-7 2.5-7.3 6.3s2.5 7 6.3 7.3h4v17.7h-3c-3.8-.1-6.9 2.8-7.1 6.5-.1 3.8 2.8 6.9 6.5 7.1h3.5v17.6h-3c-3.8 0-6.8 3-6.8 6.8s3 6.8 6.8 6.8h3v17.6h-3c-3.8 0-6.8 3-6.8 6.8s3 6.8 6.8 6.8h3v17.6h-3c-3.8 0-6.8 3-6.8 6.8s3 6.8 6.8 6.8h3v17.6h-3c-3.8 0-6.8 3.1-6.8 6.8 0 3.8 3 6.8 6.8 6.8h3V215h-3c-3.8-.1-6.9 2.8-7.1 6.5s2.8 6.9 6.5 7.1h3.5v17.6h-3c-3.8 0-6.8 3-6.8 6.8l.3 3zm-13.7-4h9.8c.5-5.2 4.6-9.2 9.7-9.7v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7V170c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.9-.5-10.3-5.7-9.8-11.7.4-5.2 4.6-9.4 9.8-9.8v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7V45c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.1-.5-9.2-4.6-9.7-9.7h-9.8c-.4 5.9-5.6 10.4-11.6 9.9-5.3-.4-9.5-4.6-9.9-9.9h-9.8c-.6 5.9-5.8 10.3-11.8 9.7-5.1-.5-9.2-4.6-9.7-9.7H170c-.6 5.9-5.8 10.3-11.8 9.7-5.1-.5-9.2-4.6-9.7-9.7h-9.8c-.6 5.9-5.8 10.3-11.8 9.7-5.1-.5-9.2-4.6-9.7-9.7h-9.8c-.5 5.9-5.7 10.3-11.7 9.8-5.1-.4-9.2-4.6-9.7-9.8h-9.8c-.6 5.9-5.9 10.2-11.8 9.6-5.1-.5-9.1-4.5-9.6-9.6H45c-.4 5.9-5.5 10.4-11.5 10-5.4-.4-9.7-4.6-10-10h-9.8c-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.4 10.4 5.5 10 11.5-.4 5.4-4.6 9.7-10 10v9.8c5.9.7 10.1 6.1 9.4 12-.6 4.9-4.5 8.8-9.4 9.4V86c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.5 10.3 5.7 9.8 11.7-.5 5.2-4.6 9.4-9.8 9.8v9.8c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.1.5 9.2 4.6 9.7 9.7h9.8c.4-5.9 5.5-10.4 11.5-10 5.4.4 9.7 4.6 10 10h9.8c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7H86c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7h9.8c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7h9.8c.5-5.9 5.7-10.3 11.7-9.8 5.2.5 9.4 4.6 9.8 9.8h9.8c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7h9.7c.6-5.9 5.8-10.3 11.8-9.7 5 .3 9.1 4.4 9.6 9.5z' fill='%23ccc'/%3E%3Cpath class='st2' d='M244.1 254h-13.5l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8h-13.5l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8H168l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8h-13.5l-.2-1.8c-.4-4.8-4.6-8.4-9.5-8-4.3.4-7.7 3.7-8 8l-.2 1.8h-13.5l-.2-1.8c-.4-4.8-4.6-8.4-9.5-8-4.3.4-7.7 3.7-8 8l-.2 1.8h-13l-.2-1.8c-.4-4.2-3.7-7.6-7.9-8-4.8-.4-9.1 3.2-9.5 8l-.2 1.8H43.1l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8H11.9l-.2-1.8c-.4-4.2-3.7-7.5-7.9-7.9l-1.8-.2v-13.5l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9H2v-13.5l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9l-1.8-.1v-13.5l1.8-.1c4.2-.4 7.6-3.8 7.9-8 .2-2.3-.5-4.6-2-6.4-1.5-1.8-3.6-2.9-5.9-3.1l-1.8-.1v-13.5l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9l-1.8-.1v-13.5l1.8-.2c4.8-.4 8.4-4.7 7.9-9.5-.4-4.2-3.7-7.6-8-7.9L2 87.8V74.4l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9L2 56.6V43.1l1.8-.1c4.2-.4 7.6-3.8 7.9-8 .2-2.3-.5-4.6-2-6.4-1.5-1.8-3.6-2.9-5.9-3.1L2 25.3V11.9l1.8-.2c4.2-.4 7.6-3.7 7.9-7.9l.2-1.8h13.5l.2 1.8c.3 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.1-1.8h13.5l.2 1.8c.4 4.3 3.7 7.6 8 8 4.8.4 9.1-3.2 9.5-8l.1-1.8h13.5l.1 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.8 4.7 8.4 9.5 7.9 4.2-.4 7.6-3.7 7.9-7.9l.2-1.8H213l.2 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.2 3.7 7.5 7.9 7.9l1.8.2v13.4l-1.8.2c-4.8.4-8.4 4.7-7.9 9.5.4 4.2 3.7 7.6 7.9 7.9l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2V88l-1.8.2c-4.2.4-7.6 3.7-8 7.9-.4 4.8 3.2 9.1 8 9.5l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.2.4-7.5 3.7-7.9 7.9l-.4 1zm-10-4h6.5c1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4V203c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.4 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.4 1.1-4.7 4.8-8.3 9.4-9.4V78c-6.8-1.6-11.1-8.5-9.4-15.4 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-4.7-1.1-8.3-4.8-9.4-9.4h-6.5c-1.5 6.1-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.3-9.7h-6.5c-1.5 6.1-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.3-9.7h-6.5c-1.6 6.8-8.5 11.1-15.3 9.4-4.7-1.1-8.3-4.8-9.4-9.4h-6.5c-1.6 6.8-8.5 11.1-15.3 9.5-4.7-1.1-8.4-4.8-9.5-9.5H109c-.6 2.7-2.1 5.1-4.2 6.8-5.4 4.5-13.4 3.8-17.9-1.6-1.3-1.5-2.2-3.3-2.6-5.2h-6.5c-1.4 6.2-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.2-9.7h-6.5c-1.4 6.2-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.3-9.7h-6.5c-1.1 4.7-4.8 8.3-9.4 9.4V22c6.2 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.3v6.5c6.1 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.3v6.5c6.8 1.6 11.1 8.5 9.5 15.3-1.1 4.7-4.8 8.4-9.5 9.5v6.5c2.7.6 5.1 2.1 6.8 4.2 2.2 2.6 3.2 5.9 2.9 9.3-.5 5.5-4.4 10-9.7 11.3v6.5c2.7.6 5.1 2.1 6.8 4.2 2.2 2.6 3.2 5.9 2.9 9.3-.5 5.5-4.4 10-9.7 11.2v6.5c6.1 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.2v6.5c6.1 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.2v6.5c4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.5 4.7 1.1 8.4 4.8 9.5 9.5h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c.6-2.7 2.1-5.1 4.2-6.8 5.4-4.5 13.4-3.8 17.9 1.6 1.3 1.5 2.2 3.3 2.6 5.2h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.4 5 1 8.6 4.6 9.7 9.2z'/%3E%3Cpath d='M38.1 34.2h179.7c2.2 0 3.9 1.8 3.9 3.9v179.7c0 2.2-1.8 3.9-3.9 3.9H38.1c-2.2 0-3.9-1.8-3.9-3.9V38.1c0-2.1 1.8-3.9 3.9-3.9z' fill='%23fedd00'/%3E%3Cpath d='M216.9 222.8H39.1c-3.3 0-5.9-2.6-5.9-5.9V39.1c0-3.3 2.6-5.9 5.9-5.9h177.8c3.3 0 5.9 2.6 5.9 5.9v177.8c0 3.2-2.7 5.9-5.9 5.9zM39.1 37.2c-1.1 0-1.9.9-1.9 1.9v177.8c0 1.1.9 1.9 1.9 1.9h177.8c1.1 0 1.9-.9 1.9-1.9V39.1c0-1.1-.9-1.9-1.9-1.9H39.1z' fill='%23d9b500'/%3E%3Cpath class='st2' d='M218.9 224.7H37.2c-3.3 0-5.9-2.6-5.9-5.9V37.2c0-3.3 2.6-5.9 5.9-5.9h181.7c3.3 0 5.9 2.6 5.9 5.9v181.7c-.1 3.2-2.7 5.8-5.9 5.8zM37.2 35.2c-1.1 0-1.9.9-1.9 1.9v181.7c0 1.1.9 1.9 1.9 1.9h181.7c1.1 0 1.9-.9 1.9-1.9V37.2c0-1.1-.9-1.9-1.9-1.9l-181.7-.1z'/%3E%3Cpath d='M101.2 171.1V85.6H87V71.3h50.6c31.6 0 38.1 20.8 38.1 35.3 0 11.6-4.7 20.5-9.6 25.4-7.9 7.9-18.6 9.7-35 9.7h-12.8v29.4h15v14.3H87v-14.3h14.2zm17.2-43.1h14.3c21 0 25.5-9.7 25.5-21.5 0-13.4-7.6-20.8-20.2-20.8h-19.6V128z'/%3E%3C/g%3E%3C/svg%3E",sendgrid:"data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 147 33' xml:space='preserve'%3E%3Cstyle%3E.st0%7Bfill:%23212f38%7D.st1%7Bfill:%239dd6e3%7D.st2%7Bfill:%233f72ab%7D.st3%7Bfill:%2300a9d1%7D%3C/style%3E%3Cg id='Active'%3E%3Cg id='Products-Hover' transform='translate(-80 -37)'%3E%3Cg id='Navigation-Bar'%3E%3Cg id='SG-Twilio-Logo' transform='translate(80 37)'%3E%3Cpath id='Fill-1' class='st0' d='M50.8 22.8c.6-1.4 1.9-2.3 3.6-2.3 1.7 0 2.9.8 3.5 2.3h-7.1zm11 1.8c0-4.2-3.1-7.5-7.5-7.5-4.2 0-7.6 3.4-7.6 7.6 0 4.2 3.1 7.6 7.7 7.6 3.1 0 5.4-1.5 6.7-3.7l-3.1-2c-.7 1.3-2 2.1-3.5 2.1-2.1 0-3.4-1-3.9-2.6h11.2v-1.5zm81.1 0c0-2.2-1.6-3.9-3.7-3.9-2.2 0-3.9 1.7-3.9 3.9s1.7 3.9 3.9 3.9c2.1 0 3.7-1.8 3.7-3.9zm-11.5 0c0-5.1 3.8-7.6 7.1-7.6 1.9 0 3.4.7 4.3 1.7v-8.1h4v21.2h-4v-1.6c-1 1.1-2.5 1.9-4.4 1.9-3.1 0-7-2.4-7-7.5zm-2.9-9.5c1.3 0 2.4-1.1 2.4-2.4s-1.1-2.4-2.4-2.4c-1.3 0-2.4 1.1-2.4 2.4s1.1 2.4 2.4 2.4zm-2 2.2h4v14.5h-4V21.2h-1.4l1.4-3.9zm-10.6 0h4v2.4c.7-1.5 2-2.4 4-2.4h1.6l-1.4 3.9H123c-2.1 0-3.1 1.1-3.1 3.8v6.9h-4V17.3zm-22.4 3.9c0-6 4.6-10.9 10.8-10.9 3.1 0 5.8 1.1 7.7 2.9.8.7 1.4 1.6 2 2.5l-3.5 2.2c-1.3-2.4-3.3-3.7-6.1-3.7-3.9 0-6.9 3.2-6.9 7 0 3.9 2.9 7 7 7 3.1 0 5.3-1.7 6-4.4h-6.7v-3.9h11v1.6c0 5.7-4.1 10.6-10.4 10.6-6.5 0-10.9-5-10.9-10.9zm-4.8 3.4c0-2.2-1.6-3.9-3.7-3.9-2.2 0-3.9 1.7-3.9 3.9s1.7 3.9 3.9 3.9c2.1 0 3.7-1.8 3.7-3.9zm-11.5 0c0-5.1 3.8-7.6 7.1-7.6 1.9 0 3.4.7 4.3 1.7v-8.1h4v21.2h-4v-1.6c-1 1.1-2.5 1.9-4.4 1.9-3.1 0-7-2.4-7-7.5zm-14.4-7.3h4v1.6c.9-1.2 2.4-1.9 4-1.9 3.4 0 5.5 2.2 5.5 6v8.9h-4v-8.3c0-1.9-.9-3.1-2.7-3.1-1.5 0-2.8 1-2.8 3.5v7.9h-4V17.3zm-32.5 11l3.7-2.9c1 1.8 2.7 2.8 4.6 2.8 2.1 0 3.2-1.3 3.2-2.8 0-1.7-2.1-2.3-4.4-3-2.8-.9-6-2-6-6 0-3.4 3-6.1 7.1-6.1 3.5 0 5.4 1.3 7.2 3.1l-3.3 2.5c-.9-1.3-2.1-2-3.8-2-1.9 0-2.9 1-2.9 2.4 0 1.6 2 2.2 4.3 2.9 2.9.9 6.1 2.2 6.1 6.3 0 3.4-2.7 6.6-7.4 6.6-4 0-6.5-1.6-8.4-3.8z'/%3E%3Cpath id='Fill-2' class='st1' d='M8.5 31.8H17v-8.4H8.5z'/%3E%3Cpath id='Fill-3' class='st1' d='M0 23.4h8.5v-8.5H0z'/%3E%3Cpath id='Fill-4' class='st2' d='M0 31.8h8.5v-8.4H0z'/%3E%3Cpath id='Fill-5' class='st3' d='M17 23.4h8.5v-8.5H17z'/%3E%3Cpath id='Fill-6' class='st3' d='M8.5 14.9H17V6.4H8.5z'/%3E%3Cpath id='Fill-7' fill='%232191c4' d='M8.5 23.4H17v-8.5H8.5z'/%3E%3Cpath id='Fill-8' class='st2' d='M17 14.9h8.5V6.4H17z'/%3E%3Cpath id='Fill-9' class='st0' d='M34.3 1.3v4.9h-1.2V1.3h-1.7v-1H36v1h-1.7'/%3E%3Cpath id='Fill-10' class='st0' d='M44.4 6.2h-1.1L42 1.9l-1.3 4.3h-1.1l-1.7-6 1.2.1 1.1 4.2L41.5.3h1.1l1.3 4.2 1-4.2h1.2l-1.7 5.9'/%3E%3Cpath id='Fill-11' class='st0' d='M48.3 6.2h1.2V.3h-1.2z'/%3E%3Cpath id='Fill-12' class='st0' d='M52.1 6.2V.3h1.2v4.9h2v1h-3.2'/%3E%3Cpath id='Fill-13' class='st0' d='M57.6 6.2h1.2V.3h-1.2z'/%3E%3Cpath id='Fill-14' class='st0' d='M64 1.1c-1 0-1.6.8-1.6 2.1S63 5.4 64 5.4s1.6-.8 1.6-2.1S65 1.1 64 1.1m0 5.2c-1.7 0-2.8-1.2-2.8-3.1 0-1.8 1.1-3.1 2.8-3.1 1.7 0 2.8 1.2 2.8 3.1 0 1.9-1.1 3.1-2.8 3.1'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",sendinblue:"data:image/svg+xml,%3csvg id='sendinblue' viewBox='0 0 1000 295' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M820.28 182.338C820.28 137.755 848.604 106.4 888.892 106.4C929.18 106.4 957.956 137.737 957.956 182.338C957.956 226.939 929.187 256.5 888.892 256.5C848.598 256.5 820.28 225.588 820.28 182.338ZM778.224 182.338C778.224 248.12 824.262 294.479 888.886 294.479C953.51 294.479 1000 248.12 1000 182.338C1000 116.556 953.962 68.4399 888.886 68.4399C823.81 68.4399 778.224 115.686 778.224 182.338ZM563.521 71.0853L650.292 291.821H691.025L777.791 71.0853H733.966L671.104 241.498H670.214L607.352 71.0853H563.521ZM394.856 174.383C397.508 133.76 424.515 106.4 461.261 106.4C493.128 106.4 517.037 126.712 520.58 157.179H447.089C420.973 157.179 406.801 160.269 396.191 174.402H394.856V174.39V174.383ZM352.805 181.006C352.805 246.788 399.289 294.46 463.468 294.46C506.854 294.46 544.916 272.391 561.295 237.502L525.885 219.835C513.494 242.792 489.585 256.482 463.468 256.482C432.028 256.482 403.704 232.637 403.704 209.679C403.704 197.766 411.673 192.457 423.18 192.457H563.502V180.544C563.502 114.317 521.007 68.4029 459.925 68.4029C398.844 68.4029 352.799 115.649 352.799 180.988M232.399 291.796H272.242V156.285C272.242 127.149 290.382 106.394 315.627 106.394C326.256 106.394 337.311 109.927 342.635 114.774C346.623 104.174 352.818 93.5923 362.111 82.9924C351.482 74.1684 333.342 68.4153 315.627 68.4153C266.937 68.4153 232.399 104.618 232.399 156.267V291.809V291.796ZM39.843 145.698V37.9598H105.358C127.486 37.9598 142.103 50.7611 142.103 70.185C142.103 92.2542 123.072 109.033 84.1191 121.834C57.5571 130.214 45.6116 137.281 41.1785 145.679L39.843 145.692V145.698ZM39.843 253.861V208.835C39.843 188.967 56.6668 169.543 80.1311 162.032C100.943 154.966 118.193 147.899 132.81 140.407C152.286 151.895 164.232 171.744 164.232 192.5C164.232 227.814 130.584 253.861 84.9909 253.861H39.843ZM0 291.821H88.5337C155.829 291.821 206.282 249.884 206.282 194.257C206.282 163.79 190.794 136.43 163.341 118.763C177.513 104.63 184.153 88.2955 184.153 68.4276C184.153 27.3784 154.493 0 109.791 0H0V291.821Z' fill='%230B996E'/%3e%3c/svg%3e",sendpulse:"data:image/svg+xml,%3Csvg id='sendpulse' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 37.84'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23199fbf%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M234.4 109.08h4.93q1.17 10 2.38 20h5.28a4.88 4.88 0 016.79-1.76 4.8 4.8 0 01.7 7.54 4.85 4.85 0 01-7.51-1.22h-9.64c-.44-3.36-1-6.72-1.41-10.08-2.11 7.74-4.13 15.54-6.17 23.31H225c-1.14-4.71-2.23-9.44-3.36-14.15h-6.37v-4.54h10.48c.57 2.5 1.17 5 1.75 7.47 2.33-8.83 4.58-17.65 6.9-26.57zM92.73 110.9h5.88v31.9h-5.8v-.88c-2.61 1.43-5.69 1.43-8.58 1.24-2.13-.2-4.51-.73-5.87-2.54a8.74 8.74 0 01-1.36-5.19V125.3a6.38 6.38 0 012.42-5.22 10.54 10.54 0 015.07-1.53 17.74 17.74 0 018.3 1c-.1-2.89 0-5.79 0-8.68m-9 12.57a1.26 1.26 0 00-.89 1.4v11.18a2.4 2.4 0 00.58 1.76 5.94 5.94 0 003 .75 14.19 14.19 0 004.94-.48 1.87 1.87 0 001.37-1.72v-11.16c.09-1-1-1.52-1.83-1.72a18.6 18.6 0 00-7.24.03zM155.83 110.88h5.88v31.91h-5.88c0-10.64-.02-21.27 0-31.91zM7.62 111.22a53.68 53.68 0 0113.16.32v5.2c-4.09-.61-8.26-1.32-12.38-.67-1 .13-2.14.63-2.27 1.76a44.61 44.61 0 000 4.48c0 1.06 1.12 1.48 2 1.58 3.59.4 7.41-.47 10.82 1 2.29 1 3.18 3.67 3.27 6 .07 3 .31 6.39-1.57 9-1.9 2.4-5.17 3-8.06 3.25a59 59 0 01-12-.8v-5.61a42.79 42.79 0 0011.65 1.31 7.34 7.34 0 003.38-.92c.77-.93.46-2.24.53-3.34-.09-1.32.27-2.81-.53-4-1.44-1-3.32-.68-5-.75-2.87 0-6.14.15-8.45-1.87-2-1.79-2.29-4.64-2.19-7.16-.09-2.12.05-4.49 1.58-6.14 1.49-1.74 3.87-2.32 6.06-2.64zM104.09 111.4c4.35 0 8.71-.06 13.08.06 2.49.2 5.34.49 7.07 2.54a6.54 6.54 0 011.43 4v7a6.33 6.33 0 01-3.44 5.6c-3.69 1.87-8 1.61-12 1.61v10.59h-6.16v-31.4m6.11 4.6v11.53c2.69-.18 5.61.48 8.07-.89a2.52 2.52 0 001.3-2.41v-5.78a2 2 0 00-1.49-2c-2.52-.75-5.23-.35-7.86-.45zM29.22 120.43c2.27-1.7 5.24-2 8-2 2.55 0 5.3.29 7.41 1.87 1.78 1.34 2.42 3.66 2.5 5.8s0 4.42 0 6.63H32.56c.06 1.73-.51 4.29 1.57 5.07 3.94 1.39 8.23.27 12.15-.72v5.05a34.64 34.64 0 01-11.65.93c-2.27-.28-4.67-1-6.27-2.69a6.93 6.93 0 01-1.72-5v-9a7.66 7.66 0 012.57-6m4.59 3c-1.93.71-1 3.2-1.24 4.77h8.71c-.2-1.54.6-3.76-1-4.72a11.38 11.38 0 00-6.44-.06zM57.75 119.71c2.42-1.28 5.26-1.36 7.93-1.19 1.94.18 4.12.64 5.34 2.31a8.28 8.28 0 011.43 5.34v16.62h-5.87v-17.34a2 2 0 00-1.58-2 14.17 14.17 0 00-5.8.15 1.9 1.9 0 00-1.41 2v17.25h-5.87v-23.93h5.9c-.02.2-.05.59-.07.79zM170.28 119.4c4.57-1.58 9.47-.74 14.18-.52v4.9a35 35 0 00-10.36-.65c-.93.06-2.09.59-1.91 1.71.11 1-.44 2.41.73 2.85 2.26.71 4.67.09 7 .47 1.92.27 4 1.12 4.92 2.94.94 1.61.68 3.54.71 5.32a6 6 0 01-2.67 5.2c-2.63 1.53-5.79 1.67-8.75 1.6a52.82 52.82 0 01-7.33-.66v-5c3.95.49 8 1.61 12 .63 1.3-.29 1-1.81 1-2.78s0-2.14-1.09-2.31c-3.33-.59-7.18.5-10.08-1.75-2.17-1.53-2.39-4.38-2.23-6.8a5.42 5.42 0 013.88-5.15zM190.81 122.09c1.46-2.54 4.56-3.34 7.28-3.54 3-.2 6.35-.19 9.08 1.42 2 1.18 2.86 3.61 3 5.84s0 4.63 0 6.94h-14.55c0 1.76-.47 4.33 1.65 5.11 3.94 1.33 8.18.23 12.07-.76v5a32.62 32.62 0 01-12.78.77c-2.37-.42-4.87-1.54-6-3.78-1.27-2.42-.69-5.24-.82-7.85.12-3.07-.5-6.41 1.13-9.19m5.47 1.6c-1.16 1.19-.53 3-.65 4.52h8.68a15.92 15.92 0 00-.21-3.91c-.52-1-1.81-1.11-2.81-1.23a9.77 9.77 0 00-5 .63zM130.31 118.92h5.88v17.14a2 2 0 001.13 2.1 14.41 14.41 0 005.74.13c.84-.13 1.92-.53 1.9-1.55v-17.83h5.87v23.87H145V142c-2.33 1.29-5.07 1.33-7.67 1.21a8.18 8.18 0 01-5.06-1.74 7.24 7.24 0 01-1.95-5.34c-.01-5.76 0-11.49-.01-17.21z' transform='translate(0 -109.08)'/%3E%3C/svg%3E",smtp:"data:image/svg+xml,%3Csvg height='512' width='512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M507.601 209.464l-63.185-63.187V15c0-8.284-6.716-15-15-15H82.581c-8.284 0-15 6.716-15 15v131.277C-1.511 215.371.003 211.786.003 220.07V497c0 8.284 6.716 15 15 15h481.992c8.284 0 15-6.716 15-15 0-2.012.034-277.104-.062-278.217a15.067 15.067 0 00-4.332-9.319zm-33.786 8.639l-29.399 20.816v-50.216zM414.416 30v230.159L310.51 333.728c-29.799 21.097-70.162 21.566-100.396 1.116L97.581 258.179V30zM67.582 237.741l-29.167-19.87 29.167-29.167zM481.995 482H30.002V248.439l139.997 95.375L88 425.815c-5.858 5.857-5.858 15.355 0 21.213s15.355 5.858 21.213 0l86.058-86.06c38.047 24.646 88.337 25.998 128.444.032l86.026 86.028c5.856 5.857 15.354 5.859 21.213 0 5.858-5.857 5.858-15.355 0-21.213l-82.32-82.322 133.361-94.423z'/%3E%3Cpath d='M152.58 100h206.836c8.284 0 15-6.716 15-15s-6.716-15-15-15H152.58c-8.284 0-15 6.716-15 15s6.716 15 15 15zM152.58 170h206.836c8.284 0 15-6.716 15-15s-6.716-15-15-15H152.58c-8.284 0-15 6.716-15 15s6.716 15 15 15zM152.58 240h206.836c8.284 0 15-6.716 15-15s-6.716-15-15-15H152.58c-8.284 0-15 6.716-15 15s6.716 15 15 15z'/%3E%3C/svg%3E",smtpcom:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 207.4 40'%3E%3Cpath fill='%232fb197' d='M.9.9h52.6L27.3 20z'/%3E%3Cpath d='M0 0v40h54.4V0H0zm25.7 20L1.8 37.3V2.7L25.7 20zM50.8 1.8l-23.5 17-23.7-17h47.2zm1.8 36.4H26l14.7-10.7-1.1-1.5-16.7 12.2H3.6l49-35.5v35.5z'/%3E%3Cg%3E%3Cpath d='M88.2 9.8C84.1 7.2 79.4 7 77.4 7c-1.9 0-3.4.4-4.4 1.2-1.1.8-1.6 1.9-1.6 3.2 0 1.2.6 2.3 1.9 3.1 1.2.8 2.9 1.8 5.3 2.5 4.3 1.5 8 3 10.2 4.8 2.2 1.8 3.4 4.5 3.4 7.5 0 3.3-1.8 6.1-4.3 8-2.5 1.9-5.9 2.6-10.1 2.6-2.9 0-10.9-.7-15.2-3.3l1.7-6.6c4.9 3.6 13.2 3.6 13.2 3.6 1.9 0 4.4-.3 5.4-1.1s1.6-1.8 1.6-3.2c0-1.5-.5-2.6-1.6-3.4-1-.8-3.6-1.8-6.3-2.7-2.7-.9-5-1.8-6.6-2.7-4.3-2.3-6.4-5.2-6.4-9.2 0-2.1.6-3.9 1.7-5.5 1.2-1.6 2.8-2.9 5-3.8 2.2-.9 4.6-1.4 7.3-1.4s8.6.5 12.7 2.5l-2.1 6.7zM108.8 2.2l9.6 20.4 10-20.4c.3-.6.9-1 1.5-1h8.9v38.1H131V28.9l.1-15.7-10 18.6h-5.4l-9.9-18.6.3 15.7v10.4h-7.8v-38h9c.7 0 1.3.3 1.5.9zM173.7 7.2h-11.2v32.1h-7.8V7.2h-11.2V2.3c0-.6.5-1 1-1h29.3v5.9zM186 25.5v13.9h-7.8V1.3H193c2.9 0 5.4.5 7.5 1.6 2.2 1 3.8 2.5 5 4.5 1.2 1.9 1.8 4.1 1.8 6.6 0 3.7-1.3 6.2-3.8 8.4-2.6 2.2-6.1 3.2-10.6 3.2H186zm0-5.9h7.2c2.1 0 3.7-.5 4.9-1.5 1.1-1 1.7-2.4 1.7-4.3s-.6-3.5-1.7-4.6c-1.1-1.2-2.7-1.8-4.7-1.8H186v12.2z'/%3E%3C/g%3E%3C/svg%3E",sparkpost:"data:image/svg+xml,%3Csvg id='sparkpost' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 66.71'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%234e4e55%7D%3C/style%3E%3C/defs%3E%3Cg id='sparkpost-2' data-name='sparkpost'%3E%3Cpath class='cls-1' d='M0 154.1l4-4.82c2.78 2.3 5.7 3.76 9.23 3.76 2.78 0 4.46-1.11 4.46-2.92V150c0-1.72-1.06-2.6-6.23-3.93-6.23-1.59-10.25-3.31-10.25-9.45v-.09c0-5.61 4.51-9.32 10.83-9.32a17.87 17.87 0 0111.48 3.93L20 136.29c-2.74-1.9-5.43-3-8-3s-4 1.2-4 2.7v.01c0 2 1.33 2.69 6.67 4.06 6.28 1.64 9.81 3.89 9.81 9.28v.09c0 6.14-4.68 9.58-11.35 9.58A19.67 19.67 0 010 154.1M40.84 143.27c3.4 0 5.39-2 5.39-4.68v-.09c0-3.05-2.12-4.68-5.52-4.68h-5.26v9.45zm-12.19-15.59h12.63c7.38 0 11.84 4.37 11.84 10.69v.09c0 7.15-5.57 10.87-12.5 10.87h-5.17v9.27h-6.8zM69.91 145.66l-4.11-10-4.11 10zm-7.16-18.2H69l13.28 31.14h-7.12l-2.82-6.93H59.26l-2.83 6.93h-6.94zM99.19 142.7c3.31 0 5.21-1.77 5.21-4.37v-.09c0-2.92-2-4.42-5.34-4.42H92.3v8.88zm-13.7-15h14.14c3.93 0 7 1.1 9 3.13a9.7 9.7 0 012.65 7.07v.1a9.61 9.61 0 01-6.62 9.59l7.55 11h-8l-6.63-9.89H92.3v9.89h-6.81zM158.24 145c5.75 0 9.63-3 9.63-7.6v-.08c0-4.91-3.8-7.47-9.36-7.47h-8.75V145zm-10.78-17.27h11.22c6.81 0 11.49 3.49 11.49 9.45v.09c0 6.5-5.61 9.85-12.06 9.85h-8.35v11.48h-2.3zM207 154.1l1.5-1.73c3.4 3.14 6.54 4.6 11.09 4.6s7.82-2.61 7.82-6.14v-.09c0-3.27-1.73-5.17-8.75-6.58-7.42-1.51-10.43-4-10.43-8.71v-.08c0-4.6 4.2-8.13 9.94-8.13a15.42 15.42 0 0110.58 3.76l-1.46 1.81a13.36 13.36 0 00-9.24-3.49c-4.55 0-7.55 2.61-7.55 5.83v.09c0 3.27 1.68 5.26 9 6.76 7.16 1.46 10.16 4 10.16 8.53v.09c0 5-4.28 8.43-10.25 8.43A17.6 17.6 0 01207 154.1M242.92 129.8h-10.78v-2.12H256v2.12h-10.78v28.8h-2.3zM122.75 140.69l10.7-13h8.31l-12.56 14.68 13.46 16.23h-8.75l-11.16-13.8v13.8h-6.81v-30.92h6.81z' transform='translate(0 -94.65)'/%3E%3Cpath d='M188.91 154.68a10.84 10.84 0 1110.83-10.83 10.83 10.83 0 01-10.83 10.83zm11-34.05c-3.44 2.6-4.11 7.19-4.21 10.28-5.45-6.29 10.08-24.82-7.56-36.26 10.92 14.13-15.55 28-15.55 48.85 0 8.16 5.11 15.36 16.31 17.85 11-2.34 16.41-9.69 16.41-17.85 0-12.17-7.58-16.24-5.4-22.87' transform='translate(0 -94.65)' fill='%23f15022'/%3E%3C/g%3E%3C/svg%3E",zoho:"data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 115.9 40' xml:space='preserve'%3E%3Cstyle%3E.st3%7Bfill:%23fff%7D%3C/style%3E%3Cg transform='translate(384 37)'%3E%3Cpath d='M-268-28.5V-1l-3.8 3.7v-26.9l3.8-4.3z' fill='%23e79225'/%3E%3Cpath d='M-293-28.4l-3.9 4.3.2.3 24.7-.2.2-.2 3.7-4.3-24.9.1z' fill='%23fff16d'/%3E%3ClinearGradient id='SVGID_1_' gradientUnits='userSpaceOnUse' x1='-385.575' y1='4.374' x2='-385.575' y2='4.158' gradientTransform='matrix(111 0 0 -118.9 42514.5 496.3)'%3E%3Cstop offset='.006' stop-color='%23ffe513'/%3E%3Cstop offset='1' stop-color='%23fdb924'/%3E%3C/linearGradient%3E%3Cpath fill='url(%23SVGID_1_)' d='M-296.9-24.2h25.1V2.7h-25.1z'/%3E%3Cpath class='st3' d='M-275.6-14.5c-.5-1.2-1.2-2.4-2.2-3.4-.9-1-2-1.7-3.1-2.2-1.2-.5-2.4-.7-3.8-.7s-2.6.2-3.8.7c-1.2.5-2.2 1.2-3.1 2.2-1 1-1.7 2.1-2.2 3.4-.5 1.2-.7 2.6-.7 4.1 0 1.4.2 2.8.7 4.1.5 1.3 1.2 2.4 2.2 3.4.9.9 1.9 1.6 3.1 2.1s2.4.7 3.8.7c1.3 0 2.6-.2 3.7-.7 1.2-.5 2.2-1.2 3.1-2.1 1-1 1.7-2.1 2.2-3.4.5-1.2.7-2.6.7-4.1.2-1.5-.1-2.8-.6-4.1zm-5.2 8.9c-1 1.2-2.3 1.7-3.9 1.7-1.7 0-3-.6-4-1.7-1-1.2-1.4-2.8-1.4-4.8 0-2.1.5-3.7 1.4-4.9 1-1.2 2.3-1.7 4-1.7 1.7 0 3 .6 3.9 1.7 1 1.2 1.4 2.8 1.4 4.9.1 2.1-.4 3.7-1.4 4.8z'/%3E%3C/g%3E%3Cg transform='translate(257 27)'%3E%3Cpath d='M-172.4-20.7v.1l3.2 24.7-1.9 5.2-.2-.2-3.3-23.7.1-.3 2.1-5.7v-.1z' fill='%23009ada'/%3E%3Cpath d='M-197.1-17.3l24.8-3.4-2.1 5.9-.3.3-23.1 3.4.1-4.2.6-2z' fill='%2391c9ed'/%3E%3ClinearGradient id='SVGID_2_' gradientUnits='userSpaceOnUse' x1='-257.627' y1='14.321' x2='-257.42' y2='14.155' gradientTransform='matrix(122.2 0 0 -121.6 31284.5 1730.4)'%3E%3Cstop offset='.006' stop-color='%23008cd2'/%3E%3Cstop offset='1' stop-color='%2300649d'/%3E%3C/linearGradient%3E%3Cpath d='M-174.5-14.8l3.4 24.1-24.4 3.4-3.3-23.3 1.4-1.1 22.9-3.1z' fill='url(%23SVGID_2_)'/%3E%3Cpath class='st3' d='M-178.6-10.1c-.1-.7-.4-1.3-.8-1.7-.3-.3-.7-.5-1.2-.5h-.4c-.6.1-1.1.4-1.4.9-.2.3-.3.8-.3 1.3v.6l.9 6.3-7 1-.9-6.3c-.1-.7-.4-1.3-.8-1.7-.3-.3-.7-.5-1.2-.5h-.3c-.7.1-1.2.4-1.5.9-.2.3-.3.8-.3 1.3v.6l2.4 16.3c.1.7.4 1.3.8 1.7.3.3.7.4 1.2.4h.4c.6-.1 1.1-.4 1.4-.9.2-.3.3-.7.3-1.2v-.6l-1-6.5 7-1 1 6.5c.1.7.4 1.3.8 1.7.3.3.7.5 1.2.5h.4c.6-.1 1.1-.4 1.4-.9.2-.3.3-.7.3-1.2v-.6l-2.4-16.4z'/%3E%3C/g%3E%3Cg transform='translate(123)'%3E%3Cpath d='M-86.3 0l-8.8 20.9 1.2 9.2h.1l9.9-22.3v-.5L-86 .2l-.3-.2z' fill='%2366bf6b'/%3E%3Cpath d='M-86.3 0l2.3 7.7v.2l21.8 9.8h.1l-1.9-7.3L-86.3 0z' fill='%2398d0a0'/%3E%3ClinearGradient id='SVGID_3_' gradientUnits='userSpaceOnUse' x1='-122.601' y1='41.128' x2='-122.601' y2='40.97' gradientTransform='matrix(140.4 0 0 -142.7 17135.201 5885.6)'%3E%3Cstop offset='0' stop-color='%2326a146'/%3E%3Cstop offset='1' stop-color='%23008a52'/%3E%3C/linearGradient%3E%3Cpath d='M-84 7.7l21.9 9.9L-72 40l-21.9-9.9L-84 7.7z' fill='url(%23SVGID_3_)'/%3E%3Cpath class='st3' d='M-68.8 19.4c-.5-1.3-1.1-2.4-2-3.3s-1.9-1.6-3.1-2.2c-1.2-.5-2.4-.8-3.7-.8h-.1c-1.3 0-2.5.3-3.7.8-1.3.6-2.4 1.3-3.4 2.4-1 1-1.7 2.2-2.3 3.6-.6 1.4-.9 2.8-1 4.2v.5c0 1.2.2 2.4.6 3.6.5 1.2 1.1 2.3 2 3.2s1.9 1.6 3.2 2.2c1.2.5 2.4.8 3.7.8 1.2 0 2.5-.3 3.7-.8 1.3-.6 2.4-1.4 3.4-2.4s1.7-2.2 2.3-3.6c.6-1.4.9-2.8 1-4.2V23c.1-1.2-.1-2.4-.6-3.6zm-4.3 6.5c-.8 1.9-1.9 3.3-3.3 4-.7.4-1.5.6-2.2.6-.7 0-1.4-.2-2.1-.5-1.5-.7-2.5-1.7-2.9-3.2-.1-.5-.2-1-.2-1.6 0-1.1.3-2.3.8-3.6.8-2 1.9-3.4 3.3-4.1.7-.4 1.5-.6 2.2-.6.7 0 1.4.2 2.1.5 1.5.7 2.5 1.7 2.9 3.2.1.5.2 1 .2 1.5 0 1.2-.3 2.5-.8 3.8z'/%3E%3C/g%3E%3Cg transform='translate(0 15)'%3E%3Cpath d='M26.1-11.4l3.6 24-1.6 8.4-.2-.3-3.5-23.2V-3l1.5-8.1.2-.3z' fill='%23760d16'/%3E%3Cpath d='M0 .9l1.7-8.5 24.4-3.9-1.7 8.6v.6L.3 1.2 0 .9z' fill='%23ef463e'/%3E%3ClinearGradient id='SVGID_4_' gradientUnits='userSpaceOnUse' x1='1.091' y1='26.332' x2='1.122' y2='26.139' gradientTransform='matrix(124 0 0 -121.6 -123 3201.4)'%3E%3Cstop offset='0' stop-color='%23d92231'/%3E%3Cstop offset='1' stop-color='%23ba2234'/%3E%3C/linearGradient%3E%3Cpath d='M24.5-2.8L28.1 21 3.9 24.7 0 .9l24.5-3.7z' fill='url(%23SVGID_4_)'/%3E%3Cpath class='st3' d='M21.9 17.2c-.2-.2-.5-.4-.8-.5s-.7-.2-1.2-.2c-.4 0-.9 0-1.5.1L12 17.7c.1-.5.3-1.1.7-1.9.5-.9 1.2-1.9 2.1-3.2.3-.4.6-.7.7-1 .1-.2.3-.4.5-.7 1.5-1.9 2.4-3.5 2.7-4.7.2-.7.3-1.4.4-2.1v-.6c0-.5 0-1-.1-1.5.1-.3 0-.7-.2-1s-.3-.5-.6-.7c-.2-.2-.6-.2-1.1-.2-.4 0-.9 0-1.4.1L8.4 1.5c-.9.2-1.6.4-2 .8-.4.4-.5.8-.5 1.2v.4c.1.6.4 1.1 1 1.3.3.2.6.2 1.1.2.3 0 .6 0 1-.1l6.2-1.1v.3c0 .4-.1.8-.2 1.1-.2.5-.6 1.2-1.4 2.2-.2.2-.5.7-1 1.2-1.7 2-2.9 3.7-3.6 5.2-.5 1-.9 1.9-1.1 2.9-.1.6-.2 1.1-.2 1.6 0 .4 0 .7.1 1.1.2.5.3.9.5 1.2.2.3.4.6.6.7.2.1.6.2 1.1.2.6 0 1.4-.1 2.5-.3l6.7-1.2c1.2-.2 2-.5 2.5-.9.4-.3.6-.7.6-1.2v-.4c-.1-.2-.2-.5-.4-.7z'/%3E%3C/g%3E%3C/svg%3E",mandrill:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3C!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 251.103 127.423' enable-background='new 0 0 251.103 127.423' xml:space='preserve'%3E%3Cg%3E%3Cpolygon fill='%23171717' points='16.209,114.892 6.736,100.959 0,100.959 0,126.859 6.736,126.859 6.736,112.928 12.141,120.879 16.209,126.861 20.284,120.879 25.686,112.928 25.686,126.859 32.416,126.859 32.416,100.959 25.686,100.959 '/%3E%3Cg%3E%3Crect x='74.857' fill='%23E6E6E5' width='99.193' height='87.825'/%3E%3Cpolygon fill='%23DADBDB' points='174.051,0 74.857,0 124.457,72.489 '/%3E%3Cpolygon fill='%23BABCBE' points='113.962,87.825 134.951,87.825 124.457,72.489 '/%3E%3Cpolygon points='124.471,46.075 103.312,15.019 103.312,41.677 115.394,59.424 124.451,46.101 '/%3E%3Cpolygon fill='%23F7A343' points='124.471,46.075 133.584,59.453 145.59,41.899 145.59,15.019 '/%3E%3Cpolygon fill='%23C77D2A' points='124.451,46.101 115.394,59.424 124.481,72.763 133.584,59.453 124.471,46.075 '/%3E%3Cpolygon fill='%2343B9E4' points='88.285,72.8 103.312,72.8 103.312,41.677 88.285,19.621 '/%3E%3Cpolygon fill='%23038CC0' points='88.285,15.019 88.285,19.621 103.312,41.677 103.312,15.019 '/%3E%3Cpolygon fill='%23D21F38' points='145.59,41.899 145.59,72.8 160.61,72.8 160.61,19.94 '/%3E%3Cpolygon fill='%23A11D2E' points='160.61,15.019 145.59,15.019 145.59,41.899 160.61,19.94 '/%3E%3C/g%3E%3Cpath fill='%23171717' d='M61.34,100.959h-8.547l-9.319,26.216h7.052l1.855-5.467h9.172l1.894,5.467h7.043l-0.125-0.34L61.34,100.959 z M59.94,116.093h-5.992l3.048-9.006L59.94,116.093z'/%3E%3Cpolygon fill='%23171717' points='99.317,101.215 99.317,117.035 89.017,100.959 81.545,100.959 81.545,127.174 88.19,127.174 88.19,111.137 98.613,127.423 105.958,127.423 105.958,100.959 99.317,100.959 '/%3E%3Cpath fill='%23171717' d='M137.598,104.504c-1.233-1.14-2.753-2.017-4.533-2.627c-1.789-0.617-3.834-0.918-6.13-0.918h-9.926v26.216 h9.479c2.375,0,4.493-0.307,6.348-0.936c1.855-0.627,3.411-1.522,4.681-2.686c1.257-1.166,2.219-2.571,2.878-4.206 c0.659-1.641,0.99-3.464,0.99-5.465c0-1.944-0.323-3.719-0.966-5.299C139.769,107.002,138.831,105.638,137.598,104.504z M126.854,121.398h-2.789v-14.663h2.462c2.648,0,4.588,0.606,5.853,1.775c1.249,1.16,1.91,3.014,1.91,5.617 c-0.006,2.522-0.675,4.335-1.971,5.495C131.005,120.8,129.195,121.396,126.854,121.398z'/%3E%3Cpath fill='%23171717' d='M172.308,114.007c0.918-1.318,1.383-2.878,1.383-4.649c0.002-2.555-0.911-4.628-2.722-6.14 c-1.823-1.524-4.485-2.26-7.939-2.26h-10.584v26.216h7.056v-0.253v-8.159l2.605-0.212l5.136,8.624h7.985l-6.69-10.322 C170.154,116.186,171.435,115.252,172.308,114.007z M162.387,113.336l-3.009,0.075v-6.761l2.494,0.004 c1.593-0.004,2.757,0.283,3.494,0.794c0.738,0.519,1.098,1.255,1.102,2.322c-0.004,1.184-0.344,2.009-1.011,2.555 C164.774,112.883,163.753,113.231,162.387,113.336L162.387,113.336z'/%3E%3Cpolygon fill='%23171717' points='186.282,127.174 186.541,127.174 193.332,127.174 193.332,100.959 186.282,100.959 '/%3E%3Cpolygon fill='%23171717' points='211.441,100.959 204.387,100.959 204.387,127.174 204.642,127.174 222.219,127.174 222.219,121.19 211.439,121.19 '/%3E%3Cpolygon fill='%23171717' points='240.324,121.19 240.327,100.959 233.273,100.959 233.273,127.174 233.532,127.174 251.103,127.174 251.103,121.19 '/%3E%3C/g%3E%3C/svg%3E%0A"};function dT(e,t){return"function"==typeof e?e(t):e}function mT(e,t){return n=>{t.setState(t=>({...t,[e]:dT(n,t[e])}))}}function hT(e){return e instanceof Function}function fT(e,t,n){let a,r=[];return o=>{let i;n.key&&n.debug&&(i=Date.now());const s=e(o);if(s.length===r.length&&!s.some((e,t)=>r[t]!==e))return a;let l;if(r=s,n.key&&n.debug&&(l=Date.now()),a=t(...s),null==n||null==n.onChange||n.onChange(a),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,a=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`\n            font-size: .6rem;\n            font-weight: bold;\n            color: hsl(${Math.max(0,Math.min(120-120*a,120))}deg 100% 31%);`,null==n?void 0:n.key)}return a}}function pT(e,t,n,a){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:a}}const gT="debugHeaders";function vT(e,t,n){var a;let r={id:null!=(a=n.id)?a:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(r,e)}),r}const yT={createTable:e=>{e.getHeaderGroups=fT(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>{var o,i;const s=null!=(o=null==a?void 0:a.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],l=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[];return bT(t,[...s,...n.filter(e=>!(null!=a&&a.includes(e.id)||null!=r&&r.includes(e.id))),...l],e)},pT(e.options,gT)),e.getCenterHeaderGroups=fT(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>bT(t,n=n.filter(e=>!(null!=a&&a.includes(e.id)||null!=r&&r.includes(e.id))),e,"center"),pT(e.options,gT)),e.getLeftHeaderGroups=fT(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,a)=>{var r;return bT(t,null!=(r=null==a?void 0:a.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[],e,"left")},pT(e.options,gT)),e.getRightHeaderGroups=fT(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,a)=>{var r;return bT(t,null!=(r=null==a?void 0:a.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[],e,"right")},pT(e.options,gT)),e.getFooterGroups=fT(()=>[e.getHeaderGroups()],e=>[...e].reverse(),pT(e.options,gT)),e.getLeftFooterGroups=fT(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),pT(e.options,gT)),e.getCenterFooterGroups=fT(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),pT(e.options,gT)),e.getRightFooterGroups=fT(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),pT(e.options,gT)),e.getFlatHeaders=fT(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),pT(e.options,gT)),e.getLeftFlatHeaders=fT(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),pT(e.options,gT)),e.getCenterFlatHeaders=fT(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),pT(e.options,gT)),e.getRightFlatHeaders=fT(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),pT(e.options,gT)),e.getCenterLeafHeaders=fT(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),pT(e.options,gT)),e.getLeftLeafHeaders=fT(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),pT(e.options,gT)),e.getRightLeafHeaders=fT(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),pT(e.options,gT)),e.getLeafHeaders=fT(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var a,r,o,i,s,l;return[...null!=(a=null==(r=e[0])?void 0:r.headers)?a:[],...null!=(o=null==(i=t[0])?void 0:i.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},pT(e.options,gT))}};function bT(e,t,n,a){var r,o;let i=0;const s=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const c=(e,t)=>{const r={depth:t,id:[a,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach(e=>{const i=[...o].reverse()[0];let s,l=!1;if(e.column.depth===r.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),i&&(null==i?void 0:i.column)===s)i.subHeaders.push(e);else{const r=vT(n,s,{id:[a,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter(e=>e.column===s).length}`:void 0,depth:t,index:o.length});r.subHeaders.push(e),o.push(r)}r.headers.push(e),e.headerGroup=r}),l.push(r),t>0&&c(o,t-1)},u=t.map((e,t)=>vT(n,e,{depth:i,index:t}));c(u,i-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,a=[0];return e.subHeaders&&e.subHeaders.length?(a=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:r}=e;t+=n,a.push(r)})):t=1,n+=Math.min(...a),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(r=null==(o=l[0])?void 0:o.headers)?r:[]),l}const wT=(e,t,n,a,r,o,i)=>{let s={id:t,index:a,original:n,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,a),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,a),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e){const t=[],n=e=>{e.forEach(e=>{t.push(e);const a=e.subRows;null!=a&&a.length&&n(a)})};return n(e),t}(s.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:fT(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,a){const r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(a),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:fT(()=>[e,n,t,r],(e,t,n,a)=>({table:e,column:t,row:n,cell:a,getValue:a.getValue,renderValue:a.renderValue}),pT(e.options,"debugCells"))};return e._features.forEach(a=>{null==a.createCell||a.createCell(r,n,t,e)},{}),r}(e,s,t,t.id)),pT(e.options,"debugRows")),_getAllCellsByColumnId:fT(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),pT(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const t=e._features[l];null==t||null==t.createRow||t.createRow(s,e)}return s},xT={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},ET=(e,t,n)=>{var a,r;const o=null==n||null==(a=n.toString())?void 0:a.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};ET.autoRemove=e=>DT(e);const RT=(e,t,n)=>{var a;return Boolean(null==(a=e.getValue(t))||null==(a=a.toString())?void 0:a.includes(n))};RT.autoRemove=e=>DT(e);const CT=(e,t,n)=>{var a;return(null==(a=e.getValue(t))||null==(a=a.toString())?void 0:a.toLowerCase())===(null==n?void 0:n.toLowerCase())};CT.autoRemove=e=>DT(e);const kT=(e,t,n)=>{var a;return null==(a=e.getValue(t))?void 0:a.includes(n)};kT.autoRemove=e=>DT(e);const _T=(e,t,n)=>!n.some(n=>{var a;return!(null!=(a=e.getValue(t))&&a.includes(n))});_T.autoRemove=e=>DT(e)||!(null!=e&&e.length);const ST=(e,t,n)=>n.some(n=>{var a;return null==(a=e.getValue(t))?void 0:a.includes(n)});ST.autoRemove=e=>DT(e)||!(null!=e&&e.length);const MT=(e,t,n)=>e.getValue(t)===n;MT.autoRemove=e=>DT(e);const NT=(e,t,n)=>e.getValue(t)==n;NT.autoRemove=e=>DT(e);const PT=(e,t,n)=>{let[a,r]=n;const o=e.getValue(t);return o>=a&&o<=r};PT.resolveFilterValue=e=>{let[t,n]=e,a="number"!=typeof t?parseFloat(t):t,r="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(a)?-1/0:a,i=null===n||Number.isNaN(r)?1/0:r;if(o>i){const e=o;o=i,i=e}return[o,i]},PT.autoRemove=e=>DT(e)||DT(e[0])&&DT(e[1]);const AT={includesString:ET,includesStringSensitive:RT,equalsString:CT,arrIncludes:kT,arrIncludesAll:_T,arrIncludesSome:ST,equals:MT,weakEquals:NT,inNumberRange:PT};function DT(e){return null==e||""===e}const TT={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:mT("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=null==n?void 0:n.getValue(e.id);return"string"==typeof a?AT.includesString:"number"==typeof a?AT.inNumberRange:"boolean"==typeof a||null!==a&&"object"==typeof a?AT.equals:Array.isArray(a)?AT.arrIncludes:AT.weakEquals},e.getFilterFn=()=>{var n,a;return hT(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(a=t.options.filterFns)?void 0:a[e.columnDef.filterFn])?n:AT[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,a,r;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(a=t.options.enableColumnFilters)||a)&&(null==(r=t.options.enableFilters)||r)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,a;return null!=(n=null==(a=t.getState().columnFilters)?void 0:a.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const a=e.getFilterFn(),r=null==t?void 0:t.find(t=>t.id===e.id),o=dT(n,r?r.value:void 0);var i;if(OT(a,o,e))return null!=(i=null==t?void 0:t.filter(t=>t.id!==e.id))?i:[];const s={id:e.id,value:o};var l;return r?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var a;return null==(a=dT(t,e))?void 0:a.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!OT(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,a;e.setColumnFilters(t?[]:null!=(n=null==(a=e.initialState)?void 0:a.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function OT(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const FT={sum:(e,t,n)=>n.reduce((t,n)=>{const a=n.getValue(e);return t+("number"==typeof a?a:0)},0),min:(e,t,n)=>{let a;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(a>n||void 0===a&&n>=n)&&(a=n)}),a},max:(e,t,n)=>{let a;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(a<n||void 0===a&&n>=n)&&(a=n)}),a},extent:(e,t,n)=>{let a,r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===a?n>=n&&(a=r=n):(a>n&&(a=n),r<n&&(r=n)))}),[a,r]},mean:(e,t)=>{let n=0,a=0;if(t.forEach(t=>{let r=t.getValue(e);null!=r&&(r=+r)>=r&&(++n,a+=r)}),n)return a/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(a=n,!Array.isArray(a)||!a.every(e=>"number"==typeof e))return;var a;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},zT={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:mT("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,a;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(a=t.options.enableGrouping)||a)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=null==n?void 0:n.getValue(e.id);return"number"==typeof a?FT.sum:"[object Date]"===Object.prototype.toString.call(a)?FT.extent:void 0},e.getAggregationFn=()=>{var n,a;if(!e)throw new Error;return hT(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(a=t.options.aggregationFns)?void 0:a[e.columnDef.aggregationFn])?n:FT[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,a;e.setGrouping(t?[]:null!=(n=null==(a=e.initialState)?void 0:a.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const a=t.getColumn(n);return null!=a&&a.columnDef.getGroupingValue?(e._groupingValuesCache[n]=a.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,a)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},LT={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:mT("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=fT(e=>[WT(t,e)],t=>t.findIndex(t=>t.id===e.id),pT(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var a;return(null==(a=WT(t,n)[0])?void 0:a.id)===e.id},e.getIsLastColumn=n=>{var a;const r=WT(t,n);return(null==(a=r[r.length-1])?void 0:a.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=fT(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>a=>{let r=[];if(null!=e&&e.length){const t=[...e],n=[...a];for(;n.length&&t.length;){const e=t.shift(),a=n.findIndex(t=>t.id===e);a>-1&&r.push(n.splice(a,1)[0])}r=[...r,...n]}else r=a;return function(e,t,n){if(null==t||!t.length||!n)return e;const a=e.filter(e=>!t.includes(e.id));return"remove"===n?a:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...a]}(r,t,n)},pT(e.options,"debugTable"))}},jT={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:mT("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const a=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,r,o,i,s,l;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter(e=>!(null!=a&&a.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=a&&a.includes(e))),...a]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=a&&a.includes(e))),...a],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=a&&a.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=a&&a.includes(e))),right:(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=a&&a.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,a,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(a=null!=(r=t.options.enableColumnPinning)?r:t.options.enablePinning)||a)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:a,right:r}=t.getState().columnPinning,o=n.some(e=>null==a?void 0:a.includes(e)),i=n.some(e=>null==r?void 0:r.includes(e));return o?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();return r?null!=(n=null==(a=t.getState().columnPinning)||null==(a=a[r])?void 0:a.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=fT(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const a=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!a.includes(e.column.id))},pT(t.options,"debugRows")),e.getLeftVisibleCells=fT(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),pT(t.options,"debugRows")),e.getRightVisibleCells=fT(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),pT(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,a;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(a=e.initialState)?void 0:a.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const a=e.getState().columnPinning;var r,o;return t?Boolean(null==(n=a[t])?void 0:n.length):Boolean((null==(r=a.left)?void 0:r.length)||(null==(o=a.right)?void 0:o.length))},e.getLeftLeafColumns=fT(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),pT(e.options,"debugColumns")),e.getRightLeafColumns=fT(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),pT(e.options,"debugColumns")),e.getCenterLeafColumns=fT(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const a=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!a.includes(e.id))},pT(e.options,"debugColumns"))}},VT={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},IT={getDefaultColumnDef:()=>VT,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:mT("columnSizing",e),onColumnSizingInfoChange:mT("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,a,r;const o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:VT.minSize,null!=(a=null!=o?o:e.columnDef.size)?a:VT.size),null!=(r=e.columnDef.maxSize)?r:VT.maxSize)},e.getStart=fT(e=>[e,WT(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),pT(t.options,"debugColumns")),e.getAfter=fT(e=>[e,WT(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),pT(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...a}=t;return a})},e.getCanResize=()=>{var n,a;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(a=t.options.enableColumnResizing)||a)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var a;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(a=e.column.getSize())?a:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const a=t.getColumn(e.column.id),r=null==a?void 0:a.getCanResize();return o=>{if(!a||!r)return;if(null==o.persist||o.persist(),BT(o)&&o.touches&&o.touches.length>1)return;const i=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[a.id,a.getSize()]],l=BT(o)?Math.round(o.touches[0].clientX):o.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var a,r;const o="rtl"===t.options.columnResizeDirection?-1:1,i=(n-(null!=(a=null==e?void 0:e.startOffset)?a:0))*o,s=Math.max(i/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:i,deltaPercentage:s}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),m=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||("undefined"!=typeof document?document:null),f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==h||h.removeEventListener("mousemove",f.moveHandler),null==h||h.removeEventListener("mouseup",f.upHandler),m(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==h||h.removeEventListener("touchmove",p.moveHandler),null==h||h.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),m(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof HT)return HT;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(aV){e=!1}return HT=e,HT}()&&{passive:!1};BT(o)?(null==h||h.addEventListener("touchmove",p.moveHandler,g),null==h||h.addEventListener("touchend",p.upHandler,g)):(null==h||h.addEventListener("mousemove",f.moveHandler,g),null==h||h.addEventListener("mouseup",f.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:a.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let HT=null;function BT(e){return"touchstart"===e.type}function WT(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const UT={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:mT("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const a={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(e=>{e.getCanSelect()&&(a[e.id]=!0)}):r.forEach(e=>{delete a[e.id]}),a})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const a=void 0!==t?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(t=>{$T(r,t.id,a,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=fT(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ZT(e,n):{rows:[],flatRows:[],rowsById:{}},pT(e.options,"debugTable")),e.getFilteredSelectedRowModel=fT(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ZT(e,n):{rows:[],flatRows:[],rowsById:{}},pT(e.options,"debugTable")),e.getGroupedSelectedRowModel=fT(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ZT(e,n):{rows:[],flatRows:[],rowsById:{}},pT(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let a=Boolean(t.length&&Object.keys(n).length);return a&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(a=!1),a},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let a=!!t.length;return a&&t.some(e=>!n[e.id])&&(a=!1),a},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,a)=>{const r=e.getIsSelected();t.setRowSelection(o=>{var i;if(n=void 0!==n?n:!r,e.getCanSelect()&&r===n)return o;const s={...o};return $T(s,e.id,n,null==(i=null==a?void 0:a.selectChildren)||i,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return GT(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===qT(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===qT(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var a;t&&e.toggleSelected(null==(a=n.target)?void 0:a.checked)}}}},$T=(e,t,n,a,r)=>{var o;const i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],a&&null!=(o=i.subRows)&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>$T(e,t.id,n,a,r))};function ZT(e,t){const n=e.getState().rowSelection,a=[],r={},o=function(e,t){return e.map(e=>{var t;const i=GT(e,n);if(i&&(a.push(e),r[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),i)return e}).filter(Boolean)};return{rows:o(t.rows),flatRows:a,rowsById:r}}function GT(e,t){var n;return null!=(n=t[e.id])&&n}function qT(e,t,n){var a;if(null==(a=e.subRows)||!a.length)return!1;let r=!0,o=!1;return e.subRows.forEach(e=>{if((!o||r)&&(e.getCanSelect()&&(GT(e,t)?o=!0:r=!1),e.subRows&&e.subRows.length)){const n=qT(e,t);"all"===n?o=!0:"some"===n?(o=!0,r=!1):r=!1}}),r?"all":!!o&&"some"}const KT=/([0-9]+)/gm;function YT(e,t){return e===t?0:e>t?1:-1}function XT(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function QT(e,t){const n=e.split(KT).filter(Boolean),a=t.split(KT).filter(Boolean);for(;n.length&&a.length;){const e=n.shift(),t=a.shift(),r=parseInt(e,10),o=parseInt(t,10),i=[r,o].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(i[1]))return isNaN(r)?-1:1;if(r>o)return 1;if(o>r)return-1}}return n.length-a.length}const JT={alphanumeric:(e,t,n)=>QT(XT(e.getValue(n)).toLowerCase(),XT(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>QT(XT(e.getValue(n)),XT(t.getValue(n))),text:(e,t,n)=>YT(XT(e.getValue(n)).toLowerCase(),XT(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>YT(XT(e.getValue(n)),XT(t.getValue(n))),datetime:(e,t,n)=>{const a=e.getValue(n),r=t.getValue(n);return a>r?1:a<r?-1:0},basic:(e,t,n)=>YT(e.getValue(n),t.getValue(n))},eO=[yT,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:mT("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,a;const r=e.columns;return null==(n=r.length?r.some(e=>e.getIsVisible()):null==(a=t.getState().columnVisibility)?void 0:a[e.id])||n},e.getCanHide=()=>{var n,a;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(a=t.options.enableHiding)||a)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=fT(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),pT(t.options,"debugRows")),e.getVisibleCells=fT(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],pT(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>fT(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),pT(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},LT,jT,xT,TT,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:mT("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const a=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof a||"number"==typeof a}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,a,r,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(a=t.options.enableGlobalFilter)||a)&&(null==(r=t.options.enableFilters)||r)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>AT.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:a}=e.options;return hT(a)?a:"auto"===a?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[a])?t:AT[a]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:mT("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let a=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return JT.datetime;if("string"==typeof n&&(a=!0,n.split(KT).length>1))return JT.alphanumeric}return a?JT.text:JT.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,a;if(!e)throw new Error;return hT(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(a=t.options.sortingFns)?void 0:a[e.columnDef.sortingFn])?n:JT[e.columnDef.sortingFn]},e.toggleSorting=(n,a)=>{const r=e.getNextSortingOrder(),o=null!=n;t.setSorting(i=>{const s=null==i?void 0:i.find(t=>t.id===e.id),l=null==i?void 0:i.findIndex(t=>t.id===e.id);let c,u=[],d=o?n:"desc"===r;var m;return c=null!=i&&i.length&&e.getCanMultiSort()&&a?s?"toggle":"add":null!=i&&i.length&&l!==i.length-1?"replace":s?"toggle":"replace","toggle"===c&&(o||r||(c="remove")),"add"===c?(u=[...i,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(m=t.options.maxMultiSortColCount)?m:Number.MAX_SAFE_INTEGER))):u="toggle"===c?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],u})},e.getFirstSortDir=()=>{var n,a;return(null!=(n=null!=(a=e.columnDef.sortDescFirst)?a:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var a,r;const o=e.getFirstSortDir(),i=e.getIsSorted();return i?!!(i===o||null!=(a=t.options.enableSortingRemoval)&&!a||n&&null!=(r=t.options.enableMultiRemove)&&!r)&&("desc"===i?"asc":"desc"):o},e.getCanSort=()=>{var n,a;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(a=t.options.enableSorting)||a)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,a;return null!=(n=null!=(a=e.columnDef.enableMultiSort)?a:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const a=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!a&&(a.desc?"desc":"asc")},e.getSortIndex=()=>{var n,a;return null!=(n=null==(a=t.getState().sorting)?void 0:a.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return a=>{n&&(null==a.persist||a.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(a))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,a;e.setSorting(t?[]:null!=(n=null==(a=e.initialState)?void 0:a.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},zT,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:mT("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var a,r;if(t){if(null!=(a=null!=(r=e.options.autoResetAll)?r:e.options.autoResetExpanded)?a:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,a;e.setExpanded(t?{}:null!=(n=null==(a=e.initialState)?void 0:a.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(a=>{var r;const o=!0===a||!(null==a||!a[e.id]);let i={};if(!0===a?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=a,n=null!=(r=n)?r:!o,!o&&n)return{...i,[e.id]:!0};if(o&&!n){const{[e.id]:t,...n}=i;return n}return a})},e.getIsExpanded=()=>{var n;const a=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===a||(null==a?void 0:a[e.id]))},e.getCanExpand=()=>{var n,a,r;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(a=t.options.enableExpanding)||a)&&!(null==(r=e.subRows)||!r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,a=e;for(;n&&a.parentId;)a=t.getRow(a.parentId,!0),n=a.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:mT("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var a,r;if(t){if(null!=(a=null!=(r=e.options.autoResetAll)?r:e.options.autoResetPageIndex)?a:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>dT(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let a=dT(t,n.pageIndex);const r=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,r)),{...n,pageIndex:a}})},e.resetPageIndex=t=>{var n,a;e.setPageIndex(t?0:null!=(n=null==(a=e.initialState)||null==(a=a.pagination)?void 0:a.pageIndex)?n:0)},e.resetPageSize=t=>{var n,a;e.setPageSize(t?10:null!=(n=null==(a=e.initialState)||null==(a=a.pagination)?void 0:a.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,dT(t,e.pageSize)),a=e.pageSize*e.pageIndex,r=Math.floor(a/n);return{...e,pageIndex:r,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var a;let r=dT(t,null!=(a=e.options.pageCount)?a:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=fT(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},pT(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:mT("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,a,r)=>{const o=a?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=r?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...i,e.id,...o]);t.setRowPinning(e=>{var t,a,r,o,i,l;return"bottom"===n?{top:(null!=(r=null==e?void 0:e.top)?r:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:a,enablePinning:r}=t.options;return"function"==typeof a?a(e):null==(n=null!=a?a:r)||n},e.getIsPinned=()=>{const n=[e.id],{top:a,bottom:r}=t.getState().rowPinning,o=n.some(e=>null==a?void 0:a.includes(e)),i=n.some(e=>null==r?void 0:r.includes(e));return o?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();if(!r)return-1;const o=null==(n="top"===r?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(a=null==o?void 0:o.indexOf(e.id))?a:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,a;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(a=e.initialState)?void 0:a.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const a=e.getState().rowPinning;var r,o;return t?Boolean(null==(n=a[t])?void 0:n.length):Boolean((null==(r=a.top)?void 0:r.length)||(null==(o=a.bottom)?void 0:o.length))},e._getPinnedRows=(t,n,a)=>{var r;return(null==(r=e.options.keepPinnedRows)||r?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:a}))},e.getTopRows=fT(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),pT(e.options,"debugRows")),e.getBottomRows=fT(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),pT(e.options,"debugRows")),e.getCenterRows=fT(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const a=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!a.has(e.id))},pT(e.options,"debugRows"))}},UT,IT];function tO(e){var t,n;const a=[...eO,...null!=(t=e._features)?t:[]];let r={_features:a};const o=r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r)),{});let i={...null!=(n=e.initialState)?n:{}};r._features.forEach(e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i});const s=[];let l=!1;const c={_features:a,options:{...o,...e},initialState:i,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{const t=dT(e,r.options);var n;r.options=(n=t,r.options.mergeOptions?r.options.mergeOptions(o,n):{...o,...n})},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,n)=>{var a;return null!=(a=null==r.options.getRowId?void 0:r.options.getRowId(e,t,n))?a:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!n&&(n=r.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:fT(()=>[r.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},pT(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:fT(()=>[r._getColumnDefs()],e=>{const t=function(e,n,a){return void 0===a&&(a=0),e.map(e=>{const o=function(e,t,n,a){var r,o;const i={...e._getDefaultColumnDef(),...t},s=i.accessorKey;let l,c=null!=(r=null!=(o=i.id)?o:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?r:"string"==typeof i.header?i.header:void 0;if(i.accessorFn?l=i.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const a of s.split(".")){var n;t=null==(n=t)?void 0:n[a]}return t}:e=>e[i.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:a,depth:n,columnDef:i,columns:[],getFlatColumns:fT(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},pT(e.options,"debugColumns")),getLeafColumns:fT(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=u.columns)&&t.length?e(u.columns.flatMap(e=>e.getLeafColumns())):[u]},pT(e.options,"debugColumns"))};for(const d of e._features)null==d.createColumn||d.createColumn(u,e);return u}(r,e,a,n),i=e;return o.columns=i.columns?t(i.columns,o,a+1):[],o})};return t(e)},pT(e,"debugColumns")),getAllFlatColumns:fT(()=>[r.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),pT(e,"debugColumns")),_getAllFlatColumnsById:fT(()=>[r.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),pT(e,"debugColumns")),getAllLeafColumns:fT(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),pT(e,"debugColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let u=0;u<r._features.length;u++){const e=r._features[u];null==e||null==e.createTable||e.createTable(r)}return r}function nO(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?ze.createElement(e,t):e:null;var n}var aO=function(e){void 0===e&&(e={});var t=ze.useState(e),n=t[0],a=t[1];return[n,ze.useCallback(function(e){a(function(t){return Object.assign({},t,e instanceof Function?e(t):e)})},[])]};const rO={},oO={};function iO(e,t){try{const n=(rO[e]||(rO[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return n in oO?oO[n]:lO(n,n.split(":"))}catch{if(e in oO)return oO[e];const t=null==e?void 0:e.match(sO);return t?lO(e,t.slice(1)):NaN}}const sO=/([+-]\d\d):?(\d\d)?/;function lO(e,t){const n=+(t[0]||0),a=+(t[1]||0);return oO[e]=n>0?60*n+a:60*n-a}class cO extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(iO(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),mO(this),dO(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new cO(...t,e):new cO(Date.now(),e)}withTimeZone(e){return new cO(+this,e)}getTimezoneOffset(){return-iO(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),dO(this),+this}[Symbol.for("constructDateFrom")](e){return new cO(+new Date(e),this.timeZone)}}const uO=/^(get|set)(?!UTC)/;function dO(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function mO(e){const t=iO(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const a=-new Date(+e).getTimezoneOffset(),r=a- -new Date(+n).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();r&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+r);const i=a-t;i&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+i);const s=iO(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-s-i;if(s!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const t=s-iO(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!uO.test(e))return;const t=e.replace(uO,"$1UTC");cO.prototype[t]&&(e.startsWith("get")?cO.prototype[e]=function(){return this.internal[t]()}:(cO.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),mO(e),+this},cO.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),dO(this),+this}))});class hO extends cO{static tz(e,...t){return t.length?new hO(...t,e):new hO(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),a=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,a]=this.internal.toUTCString().split(" ");return`${null==e?void 0:e.slice(0,-1)} ${n} ${t} ${a}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,a]=this.tzComponents();return`${e} GMT${t}${n}${a} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:(null==t?void 0:t.timeZone)||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:(null==t?void 0:t.timeZone)||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:(null==t?void 0:t.timeZone)||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new hO(+this,e)}[Symbol.for("constructDateFrom")](e){return new hO(+new Date(e),this.timeZone)}}var fO,pO,gO,vO,yO,bO,wO,xO;function EO(e,t){const n=t.startOfMonth(e),a=n.getDay();return 1===a?n:0===a?t.addDays(n,-6):t.addDays(n,-1*(a-1))}(pO=fO||(fO={})).Root="root",pO.Chevron="chevron",pO.Day="day",pO.DayButton="day_button",pO.CaptionLabel="caption_label",pO.Dropdowns="dropdowns",pO.Dropdown="dropdown",pO.DropdownRoot="dropdown_root",pO.Footer="footer",pO.MonthGrid="month_grid",pO.MonthCaption="month_caption",pO.MonthsDropdown="months_dropdown",pO.Month="month",pO.Months="months",pO.Nav="nav",pO.NextMonthButton="button_next",pO.PreviousMonthButton="button_previous",pO.Week="week",pO.Weeks="weeks",pO.Weekday="weekday",pO.Weekdays="weekdays",pO.WeekNumber="week_number",pO.WeekNumberHeader="week_number_header",pO.YearsDropdown="years_dropdown",(vO=gO||(gO={})).disabled="disabled",vO.hidden="hidden",vO.outside="outside",vO.focused="focused",vO.today="today",(bO=yO||(yO={})).range_end="range_end",bO.range_middle="range_middle",bO.range_start="range_start",bO.selected="selected",(xO=wO||(wO={})).weeks_before_enter="weeks_before_enter",xO.weeks_before_exit="weeks_before_exit",xO.weeks_after_enter="weeks_after_enter",xO.weeks_after_exit="weeks_after_exit",xO.caption_after_enter="caption_after_enter",xO.caption_after_exit="caption_after_exit",xO.caption_before_enter="caption_before_enter",xO.caption_before_exit="caption_before_exit";class RO{constructor(e,t){this.Date=Date,this.today=()=>{var e;return(null==(e=this.overrides)?void 0:e.today)?this.overrides.today():this.options.timeZone?hO.tz(this.options.timeZone):new this.Date},this.newDate=(e,t,n)=>{var a;return(null==(a=this.overrides)?void 0:a.newDate)?this.overrides.newDate(e,t,n):this.options.timeZone?new hO(e,t,n,this.options.timeZone):new Date(e,t,n)},this.addDays=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.addDays)?this.overrides.addDays(e,t):ru(e,t)},this.addMonths=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.addMonths)?this.overrides.addMonths(e,t):ou(e,t)},this.addWeeks=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.addWeeks)?this.overrides.addWeeks(e,t):function(e,t){return ru(e,7*t,void 0)}(e,t)},this.addYears=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.addYears)?this.overrides.addYears(e,t):function(e,t){return ou(e,12*t,void 0)}(e,t)},this.differenceInCalendarDays=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.differenceInCalendarDays)?this.overrides.differenceInCalendarDays(e,t):fu(e,t)},this.differenceInCalendarMonths=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.differenceInCalendarMonths)?this.overrides.differenceInCalendarMonths(e,t):function(e,t){const[n,a]=mu(0,e,t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(e,t)},this.eachMonthOfInterval=e=>{var t;return(null==(t=this.overrides)?void 0:t.eachMonthOfInterval)?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:n,end:a}=function(e,t){const[n,a]=mu(0,t.start,t.end);return{start:n,end:a}}(null==t||t.in,e);let r=+n>+a;const o=r?+n:+a,i=r?a:n;i.setHours(0,0,0,0),i.setDate(1);const s=[];for(;+i<=o;)s.push(nu(n,i)),i.setMonth(i.getMonth()+1);return r?s.reverse():s}(e)},this.endOfBroadcastWeek=e=>{var t;return(null==(t=this.overrides)?void 0:t.endOfBroadcastWeek)?this.overrides.endOfBroadcastWeek(e):function(e,t){const n=EO(e,t),a=function(e,t){const n=t.startOfMonth(e),a=n.getDay()>0?n.getDay():7,r=t.addDays(e,1-a),o=t.addDays(r,34);return t.getMonth(e)===t.getMonth(o)?5:4}(e,t);return t.addDays(n,7*a-1)}(e,this)},this.endOfISOWeek=e=>{var t;return(null==(t=this.overrides)?void 0:t.endOfISOWeek)?this.overrides.endOfISOWeek(e):function(e){return vu(e,{weekStartsOn:1})}(e)},this.endOfMonth=e=>{var t;return(null==(t=this.overrides)?void 0:t.endOfMonth)?this.overrides.endOfMonth(e):function(e){const t=au(e,void 0),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(e)},this.endOfWeek=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.endOfWeek)?this.overrides.endOfWeek(e,t):vu(e,this.options)},this.endOfYear=e=>{var t;return(null==(t=this.overrides)?void 0:t.endOfYear)?this.overrides.endOfYear(e):function(e){const t=au(e,void 0),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}(e)},this.format=(e,t,n)=>{var a;const r=(null==(a=this.overrides)?void 0:a.format)?this.overrides.format(e,t,this.options):qu(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>{var t;return(null==(t=this.overrides)?void 0:t.getISOWeek)?this.overrides.getISOWeek(e):Mu(e)},this.getMonth=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.getMonth)?this.overrides.getMonth(e,this.options):function(e,t){return au(e,null==t?void 0:t.in).getMonth()}(e,this.options)},this.getYear=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.getYear)?this.overrides.getYear(e,this.options):function(e,t){return au(e,null==t?void 0:t.in).getFullYear()}(e,this.options)},this.getWeek=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.getWeek)?this.overrides.getWeek(e,this.options):Pu(e,this.options)},this.isAfter=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.isAfter)?this.overrides.isAfter(e,t):function(e,t){return+au(e)>+au(t)}(e,t)},this.isBefore=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.isBefore)?this.overrides.isBefore(e,t):function(e,t){return+au(e)<+au(t)}(e,t)},this.isDate=e=>{var t;return(null==(t=this.overrides)?void 0:t.isDate)?this.overrides.isDate(e):pu(e)},this.isSameDay=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.isSameDay)?this.overrides.isSameDay(e,t):function(e,t){const[n,a]=mu(0,e,t);return+hu(n)===+hu(a)}(e,t)},this.isSameMonth=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.isSameMonth)?this.overrides.isSameMonth(e,t):function(e,t){const[n,a]=mu(0,e,t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()}(e,t)},this.isSameYear=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.isSameYear)?this.overrides.isSameYear(e,t):function(e,t){const[n,a]=mu(0,e,t);return n.getFullYear()===a.getFullYear()}(e,t)},this.max=e=>{var t;return(null==(t=this.overrides)?void 0:t.max)?this.overrides.max(e):function(e){let t,n;return e.forEach(e=>{n||"object"!=typeof e||(n=nu.bind(null,e));const a=au(e,n);(!t||t<a||isNaN(+a))&&(t=a)}),nu(n,t||NaN)}(e)},this.min=e=>{var t;return(null==(t=this.overrides)?void 0:t.min)?this.overrides.min(e):function(e){let t,n;return e.forEach(e=>{n||"object"!=typeof e||(n=nu.bind(null,e));const a=au(e,n);(!t||t>a||isNaN(+a))&&(t=a)}),nu(n,t||NaN)}(e)},this.setMonth=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.setMonth)?this.overrides.setMonth(e,t):function(e,t,n){const a=au(e,null==n?void 0:n.in),r=a.getFullYear(),o=a.getDate(),i=nu(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=function(e){const t=au(e,void 0),n=t.getFullYear(),a=t.getMonth(),r=nu(t,0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}(i);return a.setMonth(t,Math.min(o,s)),a}(e,t)},this.setYear=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.setYear)?this.overrides.setYear(e,t):function(e,t){const n=au(e,void 0);return isNaN(+n)?nu(e,NaN):(n.setFullYear(t),n)}(e,t)},this.startOfBroadcastWeek=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.startOfBroadcastWeek)?this.overrides.startOfBroadcastWeek(e,this):EO(e,this)},this.startOfDay=e=>{var t;return(null==(t=this.overrides)?void 0:t.startOfDay)?this.overrides.startOfDay(e):hu(e)},this.startOfISOWeek=e=>{var t;return(null==(t=this.overrides)?void 0:t.startOfISOWeek)?this.overrides.startOfISOWeek(e):cu(e)},this.startOfMonth=e=>{var t;return(null==(t=this.overrides)?void 0:t.startOfMonth)?this.overrides.startOfMonth(e):function(e){const t=au(e,void 0);return t.setDate(1),t.setHours(0,0,0,0),t}(e)},this.startOfWeek=(e,t)=>{var n;return(null==(n=this.overrides)?void 0:n.startOfWeek)?this.overrides.startOfWeek(e,this.options):lu(e,this.options)},this.startOfYear=e=>{var t;return(null==(t=this.overrides)?void 0:t.startOfYear)?this.overrides.startOfYear(e):gu(e)},this.options={locale:Su,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let a=0;a<10;a++)n[a.toString()]=t.format(a);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}}const CO=new RO;class kO{constructor(e,t,n=CO){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class _O{constructor(e,t){this.date=e,this.weeks=t}}class SO{constructor(e,t){this.days=t,this.weekNumber=e}}function MO(e,t,n=!1,a=CO){let{from:r,to:o}=e;const{differenceInCalendarDays:i,isSameDay:s}=a;return r&&o?(i(o,r)<0&&([r,o]=[o,r]),i(t,r)>=(n?1:0)&&i(o,t)>=(n?1:0)):!n&&o?s(o,t):!(n||!r)&&s(r,t)}function NO(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function PO(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function AO(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function DO(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function TO(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function OO(e,t){return Array.isArray(e)&&e.every(t.isDate)}function FO(e,t,n=CO){const a=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:o,isAfter:i}=n;return a.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return r(e,t);if(OO(t,n))return t.includes(e);if(PO(t))return MO(t,e,!1,n);if(TO(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(NO(t)){const n=o(t.before,e)>0,a=o(t.after,e)<0;return i(t.before,t.after)?a&&n:n||a}return AO(t)?o(e,t.after)>0:DO(t)?o(t.before,e)>0:"function"==typeof t&&t(e)})}const zO=ze.createContext(void 0);function LO(){const e=ze.useContext(zO);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}const jO=Object.freeze(Object.defineProperty({__proto__:null,Button:function(e){return Le.createElement("button",{...e})},CaptionLabel:function(e){return Le.createElement("span",{...e})},Chevron:function(e){const{size:t=24,orientation:n="left",className:a}=e;return Le.createElement("svg",{className:a,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&Le.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&Le.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&Le.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&Le.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))},Day:function(e){const{day:t,modifiers:n,...a}=e;return Le.createElement("td",{...a})},DayButton:function(e){const{day:t,modifiers:n,...a}=e,r=Le.useRef(null);return Le.useEffect(()=>{var e;n.focused&&(null==(e=r.current)||e.focus())},[n.focused]),Le.createElement("button",{ref:r,...a})},Dropdown:function(e){const{options:t,className:n,components:a,classNames:r,...o}=e,i=[r[fO.Dropdown],n].join(" "),s=null==t?void 0:t.find(({value:e})=>e===o.value);return Le.createElement("span",{"data-disabled":o.disabled,className:r[fO.DropdownRoot]},Le.createElement(a.Select,{className:i,...o},null==t?void 0:t.map(({value:e,label:t,disabled:n})=>Le.createElement(a.Option,{key:e,value:e,disabled:n},t))),Le.createElement("span",{className:r[fO.CaptionLabel],"aria-hidden":!0},null==s?void 0:s.label,Le.createElement(a.Chevron,{orientation:"down",size:18,className:r[fO.Chevron]})))},DropdownNav:function(e){return Le.createElement("div",{...e})},Footer:function(e){return Le.createElement("div",{...e})},Month:function(e){const{calendarMonth:t,displayIndex:n,...a}=e;return Le.createElement("div",{...a},e.children)},MonthCaption:function(e){const{calendarMonth:t,displayIndex:n,...a}=e;return Le.createElement("div",{...a})},MonthGrid:function(e){return Le.createElement("table",{...e})},Months:function(e){return Le.createElement("div",{...e})},MonthsDropdown:function(e){const{components:t}=LO();return Le.createElement(t.Dropdown,{...e})},Nav:function(e){const{onPreviousClick:t,onNextClick:n,previousMonth:a,nextMonth:r,...o}=e,{components:i,classNames:s,labels:{labelPrevious:l,labelNext:c}}=LO(),u=ze.useCallback(e=>{r&&(null==n||n(e))},[r,n]),d=ze.useCallback(e=>{a&&(null==t||t(e))},[a,t]);return Le.createElement("nav",{...o},Le.createElement(i.PreviousMonthButton,{type:"button",className:s[fO.PreviousMonthButton],tabIndex:a?void 0:-1,"aria-disabled":!a||void 0,"aria-label":l(a),onClick:d},Le.createElement(i.Chevron,{disabled:!a||void 0,className:s[fO.Chevron],orientation:"left"})),Le.createElement(i.NextMonthButton,{type:"button",className:s[fO.NextMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":c(r),onClick:u},Le.createElement(i.Chevron,{disabled:!r||void 0,orientation:"right",className:s[fO.Chevron]})))},NextMonthButton:function(e){const{components:t}=LO();return Le.createElement(t.Button,{...e})},Option:function(e){return Le.createElement("option",{...e})},PreviousMonthButton:function(e){const{components:t}=LO();return Le.createElement(t.Button,{...e})},Root:function(e){const{rootRef:t,...n}=e;return Le.createElement("div",{...n,ref:t})},Select:function(e){return Le.createElement("select",{...e})},Week:function(e){const{week:t,...n}=e;return Le.createElement("tr",{...n})},WeekNumber:function(e){const{week:t,...n}=e;return Le.createElement("th",{...n})},WeekNumberHeader:function(e){return Le.createElement("th",{...e})},Weekday:function(e){return Le.createElement("th",{...e})},Weekdays:function(e){return Le.createElement("thead",{"aria-hidden":!0},Le.createElement("tr",{...e}))},Weeks:function(e){return Le.createElement("tbody",{...e})},YearsDropdown:function(e){const{components:t}=LO();return Le.createElement(t.Dropdown,{...e})}},Symbol.toStringTag,{value:"Module"}));function VO(){const e={};for(const t in fO)e[fO[t]]=`rdp-${fO[t]}`;for(const t in gO)e[gO[t]]=`rdp-${gO[t]}`;for(const t in yO)e[yO[t]]=`rdp-${yO[t]}`;for(const t in wO)e[wO[t]]=`rdp-${wO[t]}`;return e}function IO(e,t,n){return(n??new RO(t)).format(e,"LLLL y")}const HO=IO;function BO(e,t=CO){return t.format(e,"yyyy")}const WO=BO,UO=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:IO,formatDay:function(e,t,n){return(n??new RO(t)).format(e,"d")},formatMonthCaption:HO,formatMonthDropdown:function(e,t=CO){return t.format(e,"LLLL")},formatWeekNumber:function(e,t=CO){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)},formatWeekNumberHeader:function(){return""},formatWeekdayName:function(e,t,n){return(n??new RO(t)).format(e,"cccccc")},formatYearCaption:WO,formatYearDropdown:BO},Symbol.toStringTag,{value:"Module"}));function $O(e,t,n){return(n??new RO(t)).format(e,"LLLL y")}const ZO=$O;function GO(e,t,n,a){let r=(a??new RO(n)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}const qO=GO,KO=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:ZO,labelDay:qO,labelDayButton:GO,labelGrid:$O,labelGridcell:function(e,t,n,a){let r=(a??new RO(n)).format(e,"PPPP");return(null==t?void 0:t.today)&&(r=`Today, ${r}`),r},labelMonthDropdown:function(e){return"Choose the Month"},labelNav:function(){return""},labelNext:function(e){return"Go to the Next Month"},labelPrevious:function(e){return"Go to the Previous Month"},labelWeekNumber:function(e,t){return`Week ${e}`},labelWeekNumberHeader:function(e){return"Week Number"},labelWeekday:function(e,t,n){return(n??new RO(t)).format(e,"cccc")},labelYearDropdown:function(e){return"Choose the Year"}},Symbol.toStringTag,{value:"Module"})),YO=e=>e instanceof HTMLElement?e:null,XO=e=>[...e.querySelectorAll("[data-animated-month]")??[]],QO=e=>YO(e.querySelector("[data-animated-caption]")),JO=e=>YO(e.querySelector("[data-animated-weeks]"));function eF(e,t,n,a){const{month:r,defaultMonth:o,today:i=a.today(),numberOfMonths:s=1}=e;let l=r||o||i;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=a;return n&&c(n,l)<s-1&&(l=u(n,-1*(s-1))),t&&c(l,t)<0&&(l=t),d(l)}function tF(e,t){const[n,a]=ze.useState(e);return[void 0===t?n:t,a]}var nF,aF;function rF(e){return!e[gO.disabled]&&!e[gO.hidden]&&!e[gO.outside]}function oF(e,t,n,a,r,o,i,s=0){if(s>365)return;const l=function(e,t,n,a,r,o,i){const{ISOWeek:s,broadcastCalendar:l}=o,{addDays:c,addMonths:u,addWeeks:d,addYears:m,endOfBroadcastWeek:h,endOfISOWeek:f,endOfWeek:p,max:g,min:v,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:w}=i;let x={day:c,week:d,month:u,year:m,startOfWeek:e=>l?y(e,i):s?b(e):w(e),endOfWeek:e=>l?h(e):s?f(e):p(e)}[e](n,"after"===t?1:-1);return"before"===t&&a?x=g([a,x]):"after"===t&&r&&(x=v([r,x])),x}(e,t,n.date,a,r,o,i),c=Boolean(o.disabled&&FO(l,o.disabled,i)),u=Boolean(o.hidden&&FO(l,o.hidden,i)),d=new kO(l,l,i);return c||u?oF(e,t,d,a,r,o,i,s+1):d}function iF(e,t,n,a,r){const{autoFocus:o}=e,[i,s]=ze.useState(),l=function(e,t,n,a){let r,o=-1;for(const i of e){const e=t(i);rF(e)&&(e[gO.focused]&&o<nF.FocusedModifier?(r=i,o=nF.FocusedModifier):(null==a?void 0:a.isEqualTo(i))&&o<nF.LastFocused?(r=i,o=nF.LastFocused):n(i.date)&&o<nF.Selected?(r=i,o=nF.Selected):e[gO.today]&&o<nF.Today&&(r=i,o=nF.Today))}return r||(r=e.find(e=>rF(t(e)))),r}(t.days,n,a||(()=>!1),i),[c,u]=ze.useState(o?l:void 0);return{isFocusTarget:e=>Boolean(null==l?void 0:l.isEqualTo(e)),setFocused:u,focused:c,blur:()=>{s(c),u(void 0)},moveFocus:(n,a)=>{if(!c)return;const o=oF(n,a,c,t.navStart,t.navEnd,e,r);o&&(t.goToDay(o),u(o))}}}function sF(e,t,n=CO){return MO(e,t.from,!1,n)||MO(e,t.to,!1,n)||MO(t,e.from,!1,n)||MO(t,e.to,!1,n)}function lF(e,t){const{disabled:n,excludeDisabled:a,selected:r,required:o,onSelect:i}=e,[s,l]=tF(r,i?r:void 0),c=i?r:s;return{selected:c,select:(r,s,u)=>{const{min:d,max:m}=e,h=r?function(e,t,n=0,a=0,r=!1,o=CO){const{from:i,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=o;let d;if(i||s){if(i&&!s)d=l(i,e)?r?{from:i,to:void 0}:void 0:u(e,i)?{from:e,to:i}:{from:i,to:e};else if(i&&s)if(l(i,e)&&l(s,e))d=r?{from:i,to:s}:void 0;else if(l(i,e))d={from:i,to:n>0?void 0:e};else if(l(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,i))d={from:e,to:s};else if(c(e,i))d={from:i,to:e};else{if(!c(e,s))throw new Error("Invalid range");d={from:i,to:e}}}else d={from:e,to:n>0?void 0:e};if((null==d?void 0:d.from)&&(null==d?void 0:d.to)){const t=o.differenceInCalendarDays(d.to,d.from);(a>0&&t>a||n>1&&t<n)&&(d={from:e,to:void 0})}return d}(r,c,d,m,o,t):void 0;return a&&n&&(null==h?void 0:h.from)&&h.to&&function(e,t,n=CO){const a=Array.isArray(t)?t:[t];if(a.filter(e=>"function"!=typeof e).some(t=>"boolean"==typeof t?t:n.isDate(t)?MO(e,t,!1,n):OO(t,n)?t.some(t=>MO(e,t,!1,n)):PO(t)?!(!t.from||!t.to)&&sF(e,{from:t.from,to:t.to},n):TO(t)?function(e,t,n=CO){const a=Array.isArray(t)?t:[t];let r=e.from;const o=n.differenceInCalendarDays(e.to,e.from),i=Math.min(o,6);for(let s=0;s<=i;s++){if(a.includes(r.getDay()))return!0;r=n.addDays(r,1)}return!1}(e,t.dayOfWeek,n):NO(t)?n.isAfter(t.before,t.after)?sF(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):FO(e.from,t,n)||FO(e.to,t,n):!(!AO(t)&&!DO(t))&&(FO(e.from,t,n)||FO(e.to,t,n))))return!0;const r=a.filter(e=>"function"==typeof e);if(r.length){let t=e.from;const a=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=a;e++){if(r.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}({from:h.from,to:h.to},n,t)&&(h.from=r,h.to=void 0),i||l(h),null==i||i(h,r,s,u),h},isSelected:e=>c&&MO(c,e,!1,t)}}function cF(e){var t;let n=e;n.timeZone&&(n={...e},n.today&&(n.today=new hO(n.today,n.timeZone)),n.month&&(n.month=new hO(n.month,n.timeZone)),n.defaultMonth&&(n.defaultMonth=new hO(n.defaultMonth,n.timeZone)),n.startMonth&&(n.startMonth=new hO(n.startMonth,n.timeZone)),n.endMonth&&(n.endMonth=new hO(n.endMonth,n.timeZone)),"single"===n.mode&&n.selected?n.selected=new hO(n.selected,n.timeZone):"multiple"===n.mode&&n.selected?n.selected=null==(t=n.selected)?void 0:t.map(e=>new hO(e,n.timeZone)):"range"===n.mode&&n.selected&&(n.selected={from:n.selected.from?new hO(n.selected.from,n.timeZone):void 0,to:n.selected.to?new hO(n.selected.to,n.timeZone):void 0}));const{components:a,formatters:r,labels:o,dateLib:i,locale:s,classNames:l}=ze.useMemo(()=>{const e={...Su,...n.locale};return{dateLib:new RO({locale:e,weekStartsOn:n.broadcastCalendar?1:n.weekStartsOn,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},n.dateLib),components:(a=n.components,{...jO,...a}),formatters:(t=n.formatters,(null==t?void 0:t.formatMonthCaption)&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),(null==t?void 0:t.formatYearCaption)&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...UO,...t}),labels:{...KO,...n.labels},locale:e,classNames:{...VO(),...n.classNames}};var t,a},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.components,n.formatters,n.labels,n.classNames]),{captionLayout:c,mode:u,navLayout:d,numberOfMonths:m=1,onDayBlur:h,onDayClick:f,onDayFocus:p,onDayKeyDown:g,onDayMouseEnter:v,onDayMouseLeave:y,onNextClick:b,onPrevClick:w,showWeekNumber:x,styles:E}=n,{formatCaption:R,formatDay:C,formatMonthDropdown:k,formatWeekNumber:_,formatWeekNumberHeader:S,formatWeekdayName:M,formatYearDropdown:N}=r,P=function(e,t){const[n,a]=function(e,t){let{startMonth:n,endMonth:a}=e;const{startOfYear:r,startOfDay:o,startOfMonth:i,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:m,toYear:h,fromMonth:f,toMonth:p}=e;!n&&f&&(n=f),!n&&m&&(n=t.newDate(m,0,1)),!a&&p&&(a=p),!a&&h&&(a=u(h,11,31));const g="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=i(n):m?n=u(m,0,1):!n&&g&&(n=r(l(e.today??d(),-100))),a?a=s(a):h?a=u(h,11,31):!a&&g&&(a=c(e.today??d())),[n?o(n):n,a?o(a):a]}(e,t),{startOfMonth:r,endOfMonth:o}=t,i=eF(e,n,a,t),[s,l]=tF(i,e.month?i:void 0);ze.useEffect(()=>{const r=eF(e,n,a,t);l(r)},[e.timeZone]);const c=function(e,t,n,a){const{numberOfMonths:r=1}=n,o=[];for(let i=0;i<r;i++){const n=a.addMonths(e,i);if(t&&n>t)break;o.push(n)}return o}(s,a,e,t),u=function(e,t,n,a){const r=e[0],o=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:m,endOfISOWeek:h,endOfMonth:f,endOfWeek:p,isAfter:g,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=a,w=l?v(r,a):i?y(r):b(r),x=u(l?m(o):i?h(f(o)):p(f(o)),w),E=d(o,r)+1,R=[];for(let k=0;k<=x;k++){const e=c(w,k);if(t&&g(e,t))break;R.push(e)}const C=(l?35:42)*E;if(s&&R.length<C){const e=C-R.length;for(let t=0;t<e;t++){const e=c(R[R.length-1],1);R.push(e)}}return R}(c,e.endMonth?o(e.endMonth):void 0,e,t),d=function(e,t,n,a){const{addDays:r,endOfBroadcastWeek:o,endOfISOWeek:i,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:m,startOfWeek:h}=a,f=e.reduce((e,f)=>{const p=n.broadcastCalendar?d(f,a):n.ISOWeek?m(f):h(f),g=n.broadcastCalendar?o(f):n.ISOWeek?i(s(f)):l(s(f)),v=t.filter(e=>e>=p&&e<=g),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&v.length<y){const e=t.filter(e=>{const t=y-v.length;return e>g&&e<=r(g,t)});v.push(...e)}const b=v.reduce((e,t)=>{const r=n.ISOWeek?c(t):u(t),o=e.find(e=>e.weekNumber===r),i=new kO(t,f,a);return o?o.days.push(i):e.push(new SO(r,[i])),e},[]),w=new _O(f,b);return e.push(w),e},[]);return n.reverseMonths?f.reverse():f}(c,u,e,t),m=function(e){return e.reduce((e,t)=>[...e,...t.weeks],[])}(d),h=function(e){const t=[];return e.reduce((e,n)=>[...e,...n.weeks.reduce((e,t)=>[...e,...t.days],t)],t)}(d),f=function(e,t,n,a){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:o}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=a,c=r?o??1:1,u=i(e);return t&&l(u,t)<=0?void 0:s(u,-c)}(s,n,e,t),p=function(e,t,n,a){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:o=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=a,c=r?o:1,u=i(e);return t&&l(t,e)<o?void 0:s(u,c)}(s,a,e,t),{disableNavigation:g,onMonthChange:v}=e,y=e=>{if(g)return;let t=r(e);n&&t<r(n)&&(t=r(n)),a&&t>r(a)&&(t=r(a)),l(t),null==v||v(t)};return{months:d,weeks:m,days:h,navStart:n,navEnd:a,previousMonth:f,nextMonth:p,goToMonth:y,goToDay:e=>{(e=>m.some(t=>t.days.some(t=>t.isEqualTo(e))))(e)||y(e.date)}}}(n,i),{days:A,months:D,navStart:T,navEnd:O,previousMonth:F,nextMonth:z,goToMonth:L}=P,j=function(e,t,n,a,r){const{disabled:o,hidden:i,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:u}=t,{isSameDay:d,isSameMonth:m,startOfMonth:h,isBefore:f,endOfMonth:p,isAfter:g}=r,v=n&&h(n),y=a&&p(a),b={[gO.focused]:[],[gO.outside]:[],[gO.disabled]:[],[gO.hidden]:[],[gO.today]:[]},w={};for(const x of e){const{date:e,displayMonth:t}=x,n=Boolean(t&&!m(e,t)),a=Boolean(v&&f(e,v)),h=Boolean(y&&g(e,y)),p=Boolean(o&&FO(e,o,r)),E=Boolean(i&&FO(e,i,r))||a||h||!c&&!l&&n||c&&!1===l&&n,R=d(e,u??r.today());n&&b.outside.push(x),p&&b.disabled.push(x),E&&b.hidden.push(x),R&&b.today.push(x),s&&Object.keys(s).forEach(t=>{const n=null==s?void 0:s[t];n&&FO(e,n,r)&&(w[t]?w[t].push(x):w[t]=[x])})}return e=>{const t={[gO.focused]:!1,[gO.disabled]:!1,[gO.hidden]:!1,[gO.outside]:!1,[gO.today]:!1},n={};for(const a in b){const n=b[a];t[a]=n.some(t=>t===e)}for(const a in w)n[a]=w[a].some(t=>t===e);return{...t,...n}}}(A,n,T,O,i),{isSelected:V,select:I,selected:H}=function(e,t){const n=function(e,t){const{selected:n,required:a,onSelect:r}=e,[o,i]=tF(n,r?n:void 0),s=r?n:o,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let o=e;return!a&&s&&s&&l(e,s)&&(o=void 0),r||i(o),null==r||r(o,e,t,n),o},isSelected:e=>!!s&&l(s,e)}}(e,t),a=function(e,t){const{selected:n,required:a,onSelect:r}=e,[o,i]=tF(n,r?n:void 0),s=r?n:o,{isSameDay:l}=t,c=e=>(null==s?void 0:s.some(t=>l(t,e)))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let o=[...s??[]];if(c(e)){if((null==s?void 0:s.length)===u)return;if(a&&1===(null==s?void 0:s.length))return;o=null==s?void 0:s.filter(t=>!l(t,e))}else o=(null==s?void 0:s.length)===d?[e]:[...o,e];return r||i(o),null==r||r(o,e,t,n),o},isSelected:c}}(e,t),r=lF(e,t);switch(e.mode){case"single":return n;case"multiple":return a;case"range":return r;default:return}}(n,i)??{},{blur:B,focused:W,isFocusTarget:U,moveFocus:$,setFocused:Z}=iF(n,P,j,V??(()=>!1),i),{labelDayButton:G,labelGridcell:q,labelGrid:K,labelMonthDropdown:Y,labelNav:X,labelPrevious:Q,labelNext:J,labelWeekday:ee,labelWeekNumber:te,labelWeekNumberHeader:ne,labelYearDropdown:ae}=o,re=ze.useMemo(()=>function(e,t){const n=e.today(),a=t?e.startOfISOWeek(n):e.startOfWeek(n),r=[];for(let o=0;o<7;o++){const t=e.addDays(a,o);r.push(t)}return r}(i,n.ISOWeek),[i,n.ISOWeek]),oe=void 0!==u||void 0!==f,ie=ze.useCallback(()=>{F&&(L(F),null==w||w(F))},[F,L,w]),se=ze.useCallback(()=>{z&&(L(z),null==b||b(z))},[L,z,b]),le=ze.useCallback((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),Z(e),null==I||I(e.date,t,n),null==f||f(e.date,t,n)},[I,f,Z]),ce=ze.useCallback((e,t)=>n=>{Z(e),null==p||p(e.date,t,n)},[p,Z]),ue=ze.useCallback((e,t)=>n=>{B(),null==h||h(e.date,t,n)},[B,h]),de=ze.useCallback((e,t)=>a=>{const r={ArrowLeft:[a.shiftKey?"month":"day","rtl"===n.dir?"after":"before"],ArrowRight:[a.shiftKey?"month":"day","rtl"===n.dir?"before":"after"],ArrowDown:[a.shiftKey?"year":"week","after"],ArrowUp:[a.shiftKey?"year":"week","before"],PageUp:[a.shiftKey?"year":"month","before"],PageDown:[a.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(r[a.key]){a.preventDefault(),a.stopPropagation();const[e,t]=r[a.key];$(e,t)}null==g||g(e.date,t,a)},[$,g,n.dir]),me=ze.useCallback((e,t)=>n=>{null==v||v(e.date,t,n)},[v]),he=ze.useCallback((e,t)=>n=>{null==y||y(e.date,t,n)},[y]),fe=ze.useCallback(e=>t=>{const n=Number(t.target.value),a=i.setMonth(i.startOfMonth(e),n);L(a)},[i,L]),pe=ze.useCallback(e=>t=>{const n=Number(t.target.value),a=i.setYear(i.startOfMonth(e),n);L(a)},[i,L]),{className:ge,style:ve}=ze.useMemo(()=>({className:[l[fO.Root],n.className].filter(Boolean).join(" "),style:{...null==E?void 0:E[fO.Root],...n.style}}),[l,n.className,n.style,E]),ye=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(n),be=ze.useRef(null);!function(e,t,{classNames:n,months:a,focused:r,dateLib:o}){const i=ze.useRef(null),s=ze.useRef(a),l=ze.useRef(!1);ze.useLayoutEffect(()=>{const c=s.current;if(s.current=a,!(t&&e.current&&e.current instanceof HTMLElement&&0!==a.length&&0!==c.length&&a.length===c.length))return;const u=o.isSameMonth(a[0].date,c[0].date),d=o.isAfter(a[0].date,c[0].date),m=d?n[wO.caption_after_enter]:n[wO.caption_before_enter],h=d?n[wO.weeks_after_enter]:n[wO.weeks_before_enter],f=i.current,p=e.current.cloneNode(!0);if(p instanceof HTMLElement?(XO(p).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=YO(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=QO(e);n&&n.classList.remove(m);const a=JO(e);a&&a.classList.remove(h)}),i.current=p):i.current=null,l.current||u||r)return;const g=f instanceof HTMLElement?XO(f):[],v=XO(e.current);if(v&&v.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const t=(y=e.current,YO(y.querySelector("[data-animated-nav]")));t&&(t.style.zIndex="1"),v.forEach((a,r)=>{const o=g[r];if(!o)return;a.style.position="relative",a.style.overflow="hidden";const i=QO(a);i&&i.classList.add(m);const s=JO(a);s&&s.classList.add(h),o.style.pointerEvents="none",o.style.position="absolute",o.style.overflow="hidden",o.setAttribute("aria-hidden","true");const c=(e=>YO(e.querySelector("[data-animated-weekdays]")))(o);c&&(c.style.opacity="0");const u=QO(o);u&&(u.classList.add(d?n[wO.caption_before_exit]:n[wO.caption_after_exit]),u.addEventListener("animationend",()=>{l.current=!1,e.current&&(e.current.style.isolation=""),t&&(t.style.zIndex=""),i&&i.classList.remove(m),s&&s.classList.remove(h),a.style.position="",a.style.overflow="",a.contains(o)&&a.removeChild(o)}));const f=JO(o);f&&f.classList.add(d?n[wO.weeks_before_exit]:n[wO.weeks_after_exit]),a.insertBefore(o,a.firstChild)})}var y})}(be,Boolean(n.animate),{classNames:l,months:D,focused:W,dateLib:i});const we={dayPickerProps:n,selected:H,select:I,isSelected:V,months:D,nextMonth:z,previousMonth:F,goToMonth:L,getModifiers:j,components:a,classNames:l,styles:E,labels:o,formatters:r};return Le.createElement(zO.Provider,{value:we},Le.createElement(a.Root,{rootRef:n.animate?be:void 0,className:ge,style:ve,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],...ye},Le.createElement(a.Months,{className:l[fO.Months],style:null==E?void 0:E[fO.Months]},!n.hideNavigation&&!d&&Le.createElement(a.Nav,{"data-animated-nav":n.animate?"true":void 0,className:l[fO.Nav],style:null==E?void 0:E[fO.Nav],"aria-label":X(),onPreviousClick:ie,onNextClick:se,previousMonth:F,nextMonth:z}),D.map((e,t)=>{const o=function(e,t,n,a,r){const{startOfMonth:o,startOfYear:i,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=r;return l({start:i(e),end:s(e)}).map(e=>{const i=a.formatMonthDropdown(e,r);return{value:c(e),label:i,disabled:t&&e<o(t)||n&&e>o(n)||!1}})}(e.date,T,O,r,i),h=function(e,t,n,a){if(!e)return;if(!t)return;const{startOfYear:r,endOfYear:o,addYears:i,getYear:s,isBefore:l,isSameYear:c}=a,u=r(e),d=o(t),m=[];let h=u;for(;l(h,d)||c(h,d);)m.push(h),h=i(h,1);return m.map(e=>{const t=n.formatYearDropdown(e,a);return{value:s(e),label:t,disabled:!1}})}(T,O,r,i);return Le.createElement(a.Month,{"data-animated-month":n.animate?"true":void 0,className:l[fO.Month],style:null==E?void 0:E[fO.Month],key:t,displayIndex:t,calendarMonth:e},"around"===d&&!n.hideNavigation&&0===t&&Le.createElement(a.PreviousMonthButton,{type:"button",className:l[fO.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":!F||void 0,"aria-label":Q(F),onClick:ie,"data-animated-button":n.animate?"true":void 0},Le.createElement(a.Chevron,{disabled:!F||void 0,className:l[fO.Chevron],orientation:"rtl"===n.dir?"right":"left"})),Le.createElement(a.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:l[fO.MonthCaption],style:null==E?void 0:E[fO.MonthCaption],calendarMonth:e,displayIndex:t},(null==c?void 0:c.startsWith("dropdown"))?Le.createElement(a.DropdownNav,{className:l[fO.Dropdowns],style:null==E?void 0:E[fO.Dropdowns]},"dropdown"===c||"dropdown-months"===c?Le.createElement(a.MonthsDropdown,{className:l[fO.MonthsDropdown],"aria-label":Y(),classNames:l,components:a,disabled:Boolean(n.disableNavigation),onChange:fe(e.date),options:o,style:null==E?void 0:E[fO.Dropdown],value:i.getMonth(e.date)}):Le.createElement("span",null,k(e.date,i)),"dropdown"===c||"dropdown-years"===c?Le.createElement(a.YearsDropdown,{className:l[fO.YearsDropdown],"aria-label":ae(i.options),classNames:l,components:a,disabled:Boolean(n.disableNavigation),onChange:pe(e.date),options:h,style:null==E?void 0:E[fO.Dropdown],value:i.getYear(e.date)}):Le.createElement("span",null,N(e.date,i)),Le.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},R(e.date,i.options,i))):Le.createElement(a.CaptionLabel,{className:l[fO.CaptionLabel],role:"status","aria-live":"polite"},R(e.date,i.options,i))),"around"===d&&!n.hideNavigation&&t===m-1&&Le.createElement(a.NextMonthButton,{type:"button",className:l[fO.NextMonthButton],tabIndex:z?void 0:-1,"aria-disabled":!z||void 0,"aria-label":J(z),onClick:se,"data-animated-button":n.animate?"true":void 0},Le.createElement(a.Chevron,{disabled:!z||void 0,className:l[fO.Chevron],orientation:"rtl"===n.dir?"left":"right"})),t===m-1&&"after"===d&&!n.hideNavigation&&Le.createElement(a.Nav,{"data-animated-nav":n.animate?"true":void 0,className:l[fO.Nav],style:null==E?void 0:E[fO.Nav],"aria-label":X(),onPreviousClick:ie,onNextClick:se,previousMonth:F,nextMonth:z}),Le.createElement(a.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===u||"range"===u,"aria-label":K(e.date,i.options,i)||void 0,className:l[fO.MonthGrid],style:null==E?void 0:E[fO.MonthGrid]},!n.hideWeekdays&&Le.createElement(a.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:l[fO.Weekdays],style:null==E?void 0:E[fO.Weekdays]},x&&Le.createElement(a.WeekNumberHeader,{"aria-label":ne(i.options),className:l[fO.WeekNumberHeader],style:null==E?void 0:E[fO.WeekNumberHeader],scope:"col"},S()),re.map((e,t)=>Le.createElement(a.Weekday,{"aria-label":ee(e,i.options,i),className:l[fO.Weekday],key:t,style:null==E?void 0:E[fO.Weekday],scope:"col"},M(e,i.options,i)))),Le.createElement(a.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:l[fO.Weeks],style:null==E?void 0:E[fO.Weeks]},e.weeks.map((e,t)=>Le.createElement(a.Week,{className:l[fO.Week],key:e.weekNumber,style:null==E?void 0:E[fO.Week],week:e},x&&Le.createElement(a.WeekNumber,{week:e,style:null==E?void 0:E[fO.WeekNumber],"aria-label":te(e.weekNumber,{locale:s}),className:l[fO.WeekNumber],scope:"row",role:"rowheader"},_(e.weekNumber,i)),e.days.map(e=>{const{date:t}=e,r=j(e);if(r[gO.focused]=!r.hidden&&Boolean(null==W?void 0:W.isEqualTo(e)),r[yO.selected]=(null==V?void 0:V(t))||r.selected,PO(H)){const{from:e,to:n}=H;r[yO.range_start]=Boolean(e&&n&&i.isSameDay(t,e)),r[yO.range_end]=Boolean(e&&n&&i.isSameDay(t,n)),r[yO.range_middle]=MO(H,t,!0,i)}const o=function(e,t={},n={}){let a={...null==t?void 0:t[fO.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{a={...a,...null==n?void 0:n[e]}}),a}(r,E,n.modifiersStyles),s=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[a])=>(n[a]?e.push(n[a]):t[gO[a]]?e.push(t[gO[a]]):t[yO[a]]&&e.push(t[yO[a]]),e),[t[fO.Day]])}(r,l,n.modifiersClassNames),c=oe||r.hidden?void 0:q(t,r,i.options,i);return Le.createElement(a.Day,{key:`${i.format(t,"yyyy-MM-dd")}_${i.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:r,className:s.join(" "),style:o,role:"gridcell","aria-selected":r.selected||void 0,"aria-label":c,"data-day":i.format(t,"yyyy-MM-dd"),"data-month":e.outside?i.format(t,"yyyy-MM"):void 0,"data-selected":r.selected||void 0,"data-disabled":r.disabled||void 0,"data-hidden":r.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":r.focused||void 0,"data-today":r.today||void 0},!r.hidden&&oe?Le.createElement(a.DayButton,{className:l[fO.DayButton],style:null==E?void 0:E[fO.DayButton],type:"button",day:e,modifiers:r,disabled:r.disabled||void 0,tabIndex:U(e)?0:-1,"aria-label":G(t,r,i.options,i),onClick:le(e,r),onBlur:ue(e,r),onFocus:ce(e,r),onKeyDown:de(e,r),onMouseEnter:me(e,r),onMouseLeave:he(e,r)},C(t,i.options,i)):!r.hidden&&C(e.date,i.options,i))}))))))})),n.footer&&Le.createElement(a.Footer,{className:l[fO.Footer],style:null==E?void 0:E[fO.Footer],role:"status","aria-live":"polite"},n.footer)))}function uF({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:a="label",buttonVariant:r="ghost",formatters:o,components:i,...s}){const l=VO();return ze.createElement(cF,{showOutsideDays:n,className:nm("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:a,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...o},classNames:{root:nm("w-fit",l.root),months:nm("flex gap-4 flex-col md:flex-row relative",l.months),month:nm("flex flex-col w-full gap-4",l.month),nav:nm("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",l.nav),button_previous:nm($f({variant:r}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_previous),button_next:nm($f({variant:r}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_next),month_caption:nm("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",l.month_caption),dropdowns:nm("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",l.dropdowns),dropdown_root:nm("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",l.dropdown_root),dropdown:nm("absolute bg-popover inset-0 opacity-0",l.dropdown),caption_label:nm("select-none font-medium","label"===a?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:nm("flex",l.weekdays),weekday:nm("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",l.weekday),week:nm("flex w-full mt-2",l.week),week_number_header:nm("select-none w-(--cell-size)",l.week_number_header),week_number:nm("text-[0.8rem] select-none text-muted-foreground",l.week_number),day:nm("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",l.day),range_start:nm("rounded-l-md bg-accent",l.range_start),range_middle:nm("rounded-none",l.range_middle),range_end:nm("rounded-r-md bg-accent",l.range_end),today:nm("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:nm("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:nm("text-muted-foreground opacity-50",l.disabled),hidden:nm("invisible",l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>ze.createElement("div",{"data-slot":"calendar",ref:t,className:nm(e),...n}),Chevron:({className:e,orientation:t,...n})=>"left"===t?ze.createElement(ms,{className:nm("size-4",e),...n}):"right"===t?ze.createElement(hs,{className:nm("size-4",e),...n}):ze.createElement(ds,{className:nm("size-4",e),...n}),DayButton:dF,WeekNumber:({children:e,...t})=>ze.createElement("td",{...t},ze.createElement("div",{className:"flex size-(--cell-size) items-center justify-center text-center"},e)),...i},...s})}function dF({className:e,day:t,modifiers:n,...a}){const r=VO(),o=ze.useRef(null);return ze.useEffect(()=>{var e;n.focused&&(null==(e=o.current)||e.focus())},[n.focused]),ze.createElement(Zf,{ref:o,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:nm("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",r.day,e),...a})}(aF=nF||(nF={}))[aF.Today=0]="Today",aF[aF.Selected=1]="Selected",aF[aF.LastFocused=2]="LastFocused",aF[aF.FocusedModifier=3]="FocusedModifier";var mF=["Enter"," "],hF=["ArrowUp","PageDown","End"],fF=["ArrowDown","PageUp","Home",...hF],pF={ltr:[...mF,"ArrowRight"],rtl:[...mF,"ArrowLeft"]},gF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vF="Menu",[yF,bF,wF]=Kx(vF),[xF,EF]=pp(vF,[wF,Nw,rD]),RF=Nw(),CF=rD(),[kF,_F]=xF(vF),[SF,MF]=xF(vF),NF=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:r,onOpenChange:o,modal:i=!0}=e,s=RF(t),[l,c]=ze.useState(null),u=ze.useRef(!1),d=Gp(o),m=Xx(r);return ze.useEffect(()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),Wt.jsx($w,{...s,children:Wt.jsx(kF,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:Wt.jsx(SF,{scope:t,onClose:ze.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:m,modal:i,children:a})})})};NF.displayName=vF;var PF=ze.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=RF(n);return Wt.jsx(Zw,{...r,...a,ref:t})});PF.displayName="MenuAnchor";var AF="MenuPortal",[DF,TF]=xF(AF,{forceMount:void 0}),OF=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:r}=e,o=_F(AF,t);return Wt.jsx(DF,{scope:t,forceMount:n,children:Wt.jsx(dg,{present:n||o.open,children:Wt.jsx(ug,{asChild:!0,container:r,children:a})})})};OF.displayName=AF;var FF="MenuContent",[zF,LF]=xF(FF),jF=ze.forwardRef((e,t)=>{const n=TF(FF,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,o=_F(FF,e.__scopeMenu),i=MF(FF,e.__scopeMenu);return Wt.jsx(yF.Provider,{scope:e.__scopeMenu,children:Wt.jsx(dg,{present:a||o.open,children:Wt.jsx(yF.Slot,{scope:e.__scopeMenu,children:i.modal?Wt.jsx(VF,{...r,ref:t}):Wt.jsx(IF,{...r,ref:t})})})})}),VF=ze.forwardRef((e,t)=>{const n=_F(FF,e.__scopeMenu),a=ze.useRef(null),r=Ff(t,a);return ze.useEffect(()=>{const e=a.current;if(e)return ov(e)},[]),Wt.jsx(BF,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:fp(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),IF=ze.forwardRef((e,t)=>{const n=_F(FF,e.__scopeMenu);return Wt.jsx(BF,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),HF=zf("MenuContent.ScrollLock"),BF=ze.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:h,disableOutsideScroll:f,...p}=e,g=_F(FF,n),v=MF(FF,n),y=RF(n),b=CF(n),w=bF(n),[x,E]=ze.useState(null),R=ze.useRef(null),C=Ff(t,R,g.onContentChange),k=ze.useRef(0),_=ze.useRef(""),S=ze.useRef(0),M=ze.useRef(null),N=ze.useRef("right"),P=ze.useRef(0),A=f?Jg:ze.Fragment,D=f?{as:HF,allowPinchZoom:!0}:void 0;ze.useEffect(()=>()=>window.clearTimeout(k.current),[]),fg();const T=ze.useCallback(e=>{var t,n;return N.current===(null==(t=M.current)?void 0:t.side)&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:a}=e;let r=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const e=t[o],s=t[i],l=e.x,c=e.y,u=s.x,d=s.y;c>a!=d>a&&n<(u-l)*(a-c)/(d-c)+l&&(r=!r)}return r}({x:e.clientX,y:e.clientY},t)}(e,null==(n=M.current)?void 0:n.area)},[]);return Wt.jsx(zF,{scope:n,searchRef:_,onItemEnter:ze.useCallback(e=>{T(e)&&e.preventDefault()},[T]),onItemLeave:ze.useCallback(e=>{var t;T(e)||(null==(t=R.current)||t.focus(),E(null))},[T]),onTriggerLeave:ze.useCallback(e=>{T(e)&&e.preventDefault()},[T]),pointerGraceTimerRef:S,onPointerGraceIntentChange:ze.useCallback(e=>{M.current=e},[]),children:Wt.jsx(A,{...D,children:Wt.jsx(ag,{asChild:!0,trapped:r,onMountAutoFocus:fp(o,e=>{var t;e.preventDefault(),null==(t=R.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:Wt.jsx(Xp,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:h,children:Wt.jsx(hD,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:a,currentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:fp(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:Wt.jsx(Gw,{role:"menu","aria-orientation":"vertical","data-state":fz(g.open),"data-radix-menu-content":"",dir:v.dir,...y,...p,ref:C,style:{outline:"none",...p.style},onKeyDown:fp(p.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,a=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&a&&(e=>{var t,n;const a=_.current+e,r=w().filter(e=>!e.disabled),o=document.activeElement,i=null==(t=r.find(e=>e.ref.current===o))?void 0:t.textValue,s=function(e,t,n){const a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let o=(i=e,s=Math.max(r,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===a.length&&(o=o.filter(e=>e!==n));const l=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return l!==n?l:void 0}(r.map(e=>e.textValue),a,i),l=null==(n=r.find(e=>e.textValue===s))?void 0:n.ref.current;!function e(t){_.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(a),l&&setTimeout(()=>l.focus())})(e.key));const r=R.current;if(e.target!==r)return;if(!fF.includes(e.key))return;e.preventDefault();const o=w().filter(e=>!e.disabled).map(e=>e.ref.current);hF.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(o)}),onBlur:fp(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),_.current="")}),onPointerMove:fp(e.onPointerMove,vz(e=>{const t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>P.current?"right":"left";N.current=t,P.current=e.clientX}}))})})})})})})});jF.displayName=FF;var WF=ze.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Wt.jsx(Qf.div,{role:"group",...a,ref:t})});WF.displayName="MenuGroup";var UF=ze.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Wt.jsx(Qf.div,{...a,ref:t})});UF.displayName="MenuLabel";var $F="MenuItem",ZF="menu.itemSelect",GF=ze.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...r}=e,o=ze.useRef(null),i=MF($F,e.__scopeMenu),s=LF($F,e.__scopeMenu),l=Ff(t,o),c=ze.useRef(!1);return Wt.jsx(qF,{...r,ref:l,disabled:n,onClick:fp(e.onClick,()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(ZF,{bubbles:!0,cancelable:!0});e.addEventListener(ZF,e=>null==a?void 0:a(e),{once:!0}),Jf(e,t),t.defaultPrevented?c.current=!1:i.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),c.current=!0},onPointerUp:fp(e.onPointerUp,e=>{var t;c.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:fp(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||mF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});GF.displayName=$F;var qF=ze.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:r,...o}=e,i=LF($F,n),s=CF(n),l=ze.useRef(null),c=Ff(t,l),[u,d]=ze.useState(!1),[m,h]=ze.useState("");return ze.useEffect(()=>{const e=l.current;e&&h((e.textContent??"").trim())},[o.children]),Wt.jsx(yF.ItemSlot,{scope:n,disabled:a,textValue:r??m,children:Wt.jsx(fD,{asChild:!0,...s,focusable:!a,children:Wt.jsx(Qf.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...o,ref:c,onPointerMove:fp(e.onPointerMove,vz(e=>{a?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:fp(e.onPointerLeave,vz(e=>i.onItemLeave(e))),onFocus:fp(e.onFocus,()=>d(!0)),onBlur:fp(e.onBlur,()=>d(!1))})})})}),KF=ze.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...r}=e;return Wt.jsx(az,{scope:e.__scopeMenu,checked:n,children:Wt.jsx(GF,{role:"menuitemcheckbox","aria-checked":pz(n)?"mixed":n,...r,ref:t,"data-state":gz(n),onSelect:fp(r.onSelect,()=>null==a?void 0:a(!!pz(n)||!n),{checkForDefaultPrevented:!1})})})});KF.displayName="MenuCheckboxItem";var YF="MenuRadioGroup",[XF,QF]=xF(YF,{value:void 0,onValueChange:()=>{}}),JF=ze.forwardRef((e,t)=>{const{value:n,onValueChange:a,...r}=e,o=Gp(a);return Wt.jsx(XF,{scope:e.__scopeMenu,value:n,onValueChange:o,children:Wt.jsx(WF,{...r,ref:t})})});JF.displayName=YF;var ez="MenuRadioItem",tz=ze.forwardRef((e,t)=>{const{value:n,...a}=e,r=QF(ez,e.__scopeMenu),o=n===r.value;return Wt.jsx(az,{scope:e.__scopeMenu,checked:o,children:Wt.jsx(GF,{role:"menuitemradio","aria-checked":o,...a,ref:t,"data-state":gz(o),onSelect:fp(a.onSelect,()=>{var e;return null==(e=r.onValueChange)?void 0:e.call(r,n)},{checkForDefaultPrevented:!1})})})});tz.displayName=ez;var nz="MenuItemIndicator",[az,rz]=xF(nz,{checked:!1}),oz=ze.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...r}=e,o=rz(nz,n);return Wt.jsx(dg,{present:a||pz(o.checked)||!0===o.checked,children:Wt.jsx(Qf.span,{...r,ref:t,"data-state":gz(o.checked)})})});oz.displayName=nz;var iz=ze.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Wt.jsx(Qf.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});iz.displayName="MenuSeparator";var sz=ze.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=RF(n);return Wt.jsx(qw,{...r,...a,ref:t})});sz.displayName="MenuArrow";var[lz,cz]=xF("MenuSub"),uz="MenuSubTrigger",dz=ze.forwardRef((e,t)=>{const n=_F(uz,e.__scopeMenu),a=MF(uz,e.__scopeMenu),r=cz(uz,e.__scopeMenu),o=LF(uz,e.__scopeMenu),i=ze.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,c={__scopeMenu:e.__scopeMenu},u=ze.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return ze.useEffect(()=>u,[u]),ze.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),Wt.jsx(PF,{asChild:!0,...c,children:Wt.jsx(qF,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":fz(n.open),...e,ref:Of(t,r.onTriggerChange),onClick:t=>{var a;null==(a=e.onClick)||a.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:fp(e.onPointerMove,vz(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:fp(e.onPointerLeave,vz(e=>{var t,a;u();const r=null==(t=n.content)?void 0:t.getBoundingClientRect();if(r){const t=null==(a=n.content)?void 0:a.dataset.side,i="right"===t,l=i?-5:5,c=r[i?"left":"right"],u=r[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:fp(e.onKeyDown,t=>{var r;const i=""!==o.searchRef.current;e.disabled||i&&" "===t.key||pF[a.dir].includes(t.key)&&(n.onOpenChange(!0),null==(r=n.content)||r.focus(),t.preventDefault())})})})});dz.displayName=uz;var mz="MenuSubContent",hz=ze.forwardRef((e,t)=>{const n=TF(FF,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,o=_F(FF,e.__scopeMenu),i=MF(FF,e.__scopeMenu),s=cz(mz,e.__scopeMenu),l=ze.useRef(null),c=Ff(t,l);return Wt.jsx(yF.Provider,{scope:e.__scopeMenu,children:Wt.jsx(dg,{present:a||o.open,children:Wt.jsx(yF.Slot,{scope:e.__scopeMenu,children:Wt.jsx(BF,{id:s.contentId,"aria-labelledby":s.triggerId,...r,ref:c,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;i.isUsingKeyboardRef.current&&(null==(t=l.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:fp(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:fp(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:fp(e.onKeyDown,e=>{var t;const n=e.currentTarget.contains(e.target),a=gF[i.dir].includes(e.key);n&&a&&(o.onOpenChange(!1),null==(t=s.trigger)||t.focus(),e.preventDefault())})})})})})});function fz(e){return e?"open":"closed"}function pz(e){return"indeterminate"===e}function gz(e){return pz(e)?"indeterminate":e?"checked":"unchecked"}function vz(e){return t=>"mouse"===t.pointerType?e(t):void 0}hz.displayName=mz;var yz=NF,bz=PF,wz=OF,xz=jF,Ez=WF,Rz=UF,Cz=GF,kz=KF,_z=JF,Sz=tz,Mz=oz,Nz=iz,Pz=sz,Az=dz,Dz=hz,Tz="DropdownMenu",[Oz,Fz]=pp(Tz,[EF]),zz=EF(),[Lz,jz]=Oz(Tz),Vz=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=zz(t),c=ze.useRef(null),[u,d]=bp({prop:r,defaultProp:o??!1,onChange:i,caller:Tz});return Wt.jsx(Lz,{scope:t,triggerId:Zp(),triggerRef:c,contentId:Zp(),open:u,onOpenChange:d,onOpenToggle:ze.useCallback(()=>d(e=>!e),[d]),modal:s,children:Wt.jsx(yz,{...l,open:u,onOpenChange:d,dir:a,modal:s,children:n})})};Vz.displayName=Tz;var Iz="DropdownMenuTrigger",Hz=ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...r}=e,o=jz(Iz,n),i=zz(n);return Wt.jsx(bz,{asChild:!0,...i,children:Wt.jsx(Qf.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...r,ref:Of(t,o.triggerRef),onPointerDown:fp(e.onPointerDown,e=>{a||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:fp(e.onKeyDown,e=>{a||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});Hz.displayName=Iz;var Bz=e=>{const{__scopeDropdownMenu:t,...n}=e,a=zz(t);return Wt.jsx(wz,{...a,...n})};Bz.displayName="DropdownMenuPortal";var Wz="DropdownMenuContent",Uz=ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=jz(Wz,n),o=zz(n),i=ze.useRef(!1);return Wt.jsx(xz,{id:r.contentId,"aria-labelledby":r.triggerId,...o,...a,ref:t,onCloseAutoFocus:fp(e.onCloseAutoFocus,e=>{var t;i.current||null==(t=r.triggerRef.current)||t.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:fp(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;r.modal&&!a||(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Uz.displayName=Wz,ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Ez,{...r,...a,ref:t})}).displayName="DropdownMenuGroup",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Rz,{...r,...a,ref:t})}).displayName="DropdownMenuLabel";var $z=ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Cz,{...r,...a,ref:t})});$z.displayName="DropdownMenuItem";var Zz=ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(kz,{...r,...a,ref:t})});Zz.displayName="DropdownMenuCheckboxItem",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(_z,{...r,...a,ref:t})}).displayName="DropdownMenuRadioGroup",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Sz,{...r,...a,ref:t})}).displayName="DropdownMenuRadioItem";var Gz=ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Mz,{...r,...a,ref:t})});Gz.displayName="DropdownMenuItemIndicator",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Nz,{...r,...a,ref:t})}).displayName="DropdownMenuSeparator",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Pz,{...r,...a,ref:t})}).displayName="DropdownMenuArrow",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Az,{...r,...a,ref:t})}).displayName="DropdownMenuSubTrigger",ze.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=zz(n);return Wt.jsx(Dz,{...r,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var qz=Vz,Kz=Hz,Yz=Bz,Xz=Uz,Qz=$z,Jz=Zz,eL=Gz;function tL({...e}){return ze.createElement(qz,{"data-slot":"dropdown-menu",...e})}const nL=ze.forwardRef(({...e},t)=>ze.createElement(Kz,{ref:t,"data-slot":"dropdown-menu-trigger",...e}));function aL({className:e,sideOffset:t=4,...n}){return ze.createElement(Yz,null,ze.createElement(Xz,{"data-slot":"dropdown-menu-content",sideOffset:t,className:nm("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n}))}function rL({className:e,inset:t,variant:n="default",...a}){return ze.createElement(Qz,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:nm("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function oL({className:e,children:t,checked:n,iconPosition:a="left",...r}){return ze.createElement(Jz,{"data-slot":"dropdown-menu-checkbox-item",className:nm("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","left"===a?"pr-2 pl-8":"pr-8 pl-2",e),checked:n,...r},ze.createElement("span",{className:nm("pointer-events-none absolute flex size-3.5 items-center justify-center","left"===a?"left-2":"right-2")},ze.createElement(eL,null,ze.createElement(us,{className:"size-4"}))),t)}function iL({className:e,...t}){return ze.createElement("div",{"data-slot":"table-container",className:"relative w-full"},ze.createElement("table",{"data-slot":"table",className:nm("w-full caption-bottom text-sm",e),...t}))}function sL({className:e,...t}){return ze.createElement("thead",{"data-slot":"table-header",className:nm("[&_tr]:border-b",e),...t})}function lL({className:e,...t}){return ze.createElement("tbody",{"data-slot":"table-body",className:nm("[&_tr:last-child]:border-0",e),...t})}function cL({className:e,...t}){return ze.createElement("tr",{"data-slot":"table-row",className:nm("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function uL({className:e,...t}){return ze.createElement("th",{"data-slot":"table-head",className:nm("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function dL({className:e,...t}){return ze.createElement("td",{"data-slot":"table-cell",className:nm("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function mL({table:e}){const[t,n]=ze.useState(!1),a=e.getFilteredSelectedRowModel().rows.map(e=>e.original.id.toString()),r=$t(),o=Xt({mutationKey:["emailLog","bulkDelete"],mutationFn:({ids:e})=>lm(e.join(",")),onSuccess:()=>{Zx("Email logs deleted successfully"),r.invalidateQueries({queryKey:["emailLogs"]}),e.resetRowSelection(),e.firstPage(),n(!1)},onError:()=>{Gx("Failed to delete email logs")}});return React.createElement(React.Fragment,null,React.createElement("div",{className:"flex items-center gap-4"},React.createElement("div",{className:"text-muted-foreground flex-1 text-sm"},a.length," of ",e.getFilteredRowModel().rows.length," row(s) selected."),React.createElement(Zf,{className:"cursor-pointer",variant:"outline",disabled:0===a.length,onClick:()=>n(!0)},__("Delete selected"))),React.createElement(ky,{open:t,onOpenChange:n},React.createElement(My,null,React.createElement(Ny,null,React.createElement(Ay,null,__("Are you sure you want to delete selected email logs?")),React.createElement(Dy,null,__("This action cannot be undone. This will permanently delete selected email logs."))),React.createElement(Py,null,React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>n(!1)},__("Cancel")),React.createElement(Zf,{variant:"destructive",className:"cursor-pointer",onClick:async function(){o.isPending||(await o.mutateAsync({ids:a}),r.invalidateQueries({queryKey:["emailLogs"]}),e.resetRowSelection(),e.firstPage(),n(!1))},disabled:o.isPending},__("Yes, delete"))))))}var hL="Checkbox",[fL,pL]=pp(hL),[gL,vL]=fL(hL);function yL(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:r,disabled:o,form:i,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[m,h]=bp({prop:n,defaultProp:r??!1,onChange:l,caller:hL}),[f,p]=ze.useState(null),[g,v]=ze.useState(null),y=ze.useRef(!1),b=!f||!!i||!!f.closest("form"),w={checked:m,disabled:o,setChecked:h,control:f,setControl:p,name:s,form:i,value:u,hasConsumerStoppedPropagationRef:y,required:c,defaultChecked:!SL(r)&&r,isFormControl:b,bubbleInput:g,setBubbleInput:v};return Wt.jsx(gL,{scope:t,...w,children:_L(d)?d(w):a})}var bL="CheckboxTrigger",wL=ze.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},r)=>{const{control:o,value:i,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:f}=vL(bL,e),p=Ff(r,u),g=ze.useRef(l);return ze.useEffect(()=>{const e=null==o?void 0:o.form;if(e){const t=()=>d(g.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,d]),Wt.jsx(Qf.button,{type:"button",role:"checkbox","aria-checked":SL(l)?"mixed":l,"aria-required":c,"data-state":ML(l),"data-disabled":s?"":void 0,disabled:s,value:i,...a,ref:p,onKeyDown:fp(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:fp(n,e=>{d(e=>!!SL(e)||!e),f&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});wL.displayName=bL;var xL=ze.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:r,defaultChecked:o,required:i,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return Wt.jsx(yL,{__scopeCheckbox:n,checked:r,defaultChecked:o,disabled:s,required:i,onCheckedChange:c,name:a,form:u,value:l,internal_do_not_use_render:({isFormControl:e})=>Wt.jsxs(Wt.Fragment,{children:[Wt.jsx(wL,{...d,ref:t,__scopeCheckbox:n}),e&&Wt.jsx(kL,{__scopeCheckbox:n})]})})});xL.displayName=hL;var EL="CheckboxIndicator",RL=ze.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...r}=e,o=vL(EL,n);return Wt.jsx(dg,{present:a||SL(o.checked)||!0===o.checked,children:Wt.jsx(Qf.span,{"data-state":ML(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});RL.displayName=EL;var CL="CheckboxBubbleInput",kL=ze.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:a,hasConsumerStoppedPropagationRef:r,checked:o,defaultChecked:i,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:m,setBubbleInput:h}=vL(CL,e),f=Ff(n,h),p=wp(o),g=xp(a);ze.useEffect(()=>{const e=m;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set,a=!r.current;if(p!==o&&n){const t=new Event("click",{bubbles:a});e.indeterminate=SL(o),n.call(e,!SL(o)&&o),e.dispatchEvent(t)}},[m,p,o,r]);const v=ze.useRef(!SL(o)&&o);return Wt.jsx(Qf.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:f,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function _L(e){return"function"==typeof e}function SL(e){return"indeterminate"===e}function ML(e){return SL(e)?"indeterminate":e?"checked":"unchecked"}function NL({className:e,...t}){return ze.createElement(xL,{"data-slot":"checkbox",className:nm(Uf(),"peer border-input dark:bg-input/30 hover:border-ring focus-visible:hover:border-ring-accent focus-visible:border-ring disabled:border-input size-4.5 shrink-0 rounded-[4px] border shadow-xs transition-all outline-none disabled:cursor-not-allowed disabled:bg-[#f2f5f9]","data-[state=checked]:bg-primary data-[state=checked]:hover:border-primary-accent data-[state=checked]:hover:bg-primary-accent dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground data-[state=checked]:disabled:opacity-60",e),...t},ze.createElement(RL,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none"},ze.createElement(Yi,{className:"size-3.5",weight:"bold"})))}function PL({...e}){return ze.createElement(Vv,{"data-slot":"sheet",...e})}kL.displayName=CL;const AL=ze.forwardRef(({...e},t)=>ze.createElement(Iv,{ref:t,"data-slot":"sheet-trigger",...e}));function DL({...e}){return ze.createElement(Hv,{"data-slot":"sheet-portal",...e})}const TL=ze.forwardRef(({className:e,...t},n)=>ze.createElement(Bv,{ref:n,"data-slot":"sheet-overlay",className:nm("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t}));function OL({className:e,children:t,side:n="right",...a}){return ze.createElement(DL,null,ze.createElement(TL,null),ze.createElement(Wv,{"data-slot":"sheet-content",className:nm("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 pt-[48px] shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===n&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-md","left"===n&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-md","top"===n&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===n&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...a},t))}function FL({className:e,...t}){return ze.createElement("div",{"data-slot":"sheet-header",className:nm("flex flex-col gap-2 px-4 pb-4",e),...t})}function zL({className:e,...t}){return ze.createElement(Uv,{"data-slot":"sheet-title",className:nm("text-foreground font-semibold",e),...t})}function LL({className:e,...t}){return ze.createElement($v,{"data-slot":"sheet-description",className:nm("text-muted-foreground text-sm",e),...t})}TL.displayName="SheetOverlay";var jL="horizontal",VL=["horizontal","vertical"],IL=ze.forwardRef((e,t)=>{const{decorative:n,orientation:a=jL,...r}=e,o=function(e){return VL.includes(e)}(a)?a:jL,i=n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"};return Wt.jsx(Qf.div,{"data-orientation":o,...i,...r,ref:t})});IL.displayName="Separator";var HL=IL;function BL({className:e,orientation:t="horizontal",decorative:n=!0,...a}){return ze.createElement(HL,{"data-slot":"separator",decorative:n,orientation:t,className:nm("bg-border w-80 shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...a})}function WL({className:e,...t}){return React.createElement("div",{"data-slot":"skeleton",className:nm("bg-muted animate-pulse rounded-md",e),...t})}function UL({htmlContent:e}){const t=ze.useMemo(()=>{if(!e)return"";let t=e.replace(/<script\b[^>]*>(.*?)<\/script>/gis,"");return t=t.replace(/\son\w+\s*=\s*["'][^"']*["']/gi,""),t=t.replace(/\son\w+\s*=\s*[^"'\s>]+/gi,""),t=t.replace(/javascript:/gi,""),t=t.replace(/data:(?!image\/(png|jpg|jpeg|gif|svg|webp))/gi,""),t},[e]);return React.createElement("div",{className:"isolated-html-content",dangerouslySetInnerHTML:{__html:t}})}function $L({emailLogId:e}){var t,n,a,r,o,i,s,l,c,u,d,m,h,_n,f,p,g,v;const{data:y,isLoading:b,isFetching:w,isPending:x}=function(e){return Yt({queryKey:["emailLogDetail",e],queryFn:()=>async function(e){return await Xc.postJson("yaysmtp_detail_email_logs",{params:{id:e}})}(e)})}(e),E=+((null==(n=null==(t=null==y?void 0:y.data)?void 0:t.data)?void 0:n.status)??0);return React.createElement(React.Fragment,null,b||w||x?React.createElement(React.Fragment,null,React.createElement(FL,null,React.createElement(WL,{className:"h-8 w-48"}),React.createElement(WL,{className:"h-4 w-32"}),React.createElement(WL,{className:"h-6 w-16"}),React.createElement(BL,null)),React.createElement("div",{className:"grid w-full grid-cols-2 gap-6 overflow-y-auto px-4 pb-4"},React.createElement("div",{className:"col-span-2"},React.createElement(WL,{className:"h-4 w-24"}),React.createElement(WL,{className:"mt-2 h-4 w-full"})),React.createElement(BL,{className:"col-span-2"}),React.createElement("div",{className:"col-span-1"},React.createElement(WL,{className:"h-4 w-12"}),React.createElement(WL,{className:"mt-2 h-4 w-32"})),React.createElement("div",{className:"col-span-1"},React.createElement(WL,{className:"h-4 w-8"}),React.createElement(WL,{className:"mt-2 h-4 w-40"})),React.createElement(BL,{className:"col-span-2"}),React.createElement("div",{className:"col-span-1"},React.createElement(WL,{className:"h-4 w-20"}),React.createElement(WL,{className:"mt-2 h-4 w-28"})),React.createElement("div",{className:"col-span-1"},React.createElement(WL,{className:"h-4 w-12"}),React.createElement(WL,{className:"mt-2 h-4 w-24"})),React.createElement(BL,{className:"col-span-2"}),React.createElement("div",{className:"col-span-2"},React.createElement(WL,{className:"h-4 w-20"}),React.createElement("div",{className:"bg-muted mt-2 rounded-md p-3"},React.createElement(WL,{className:"h-64 w-full"}))))):React.createElement(React.Fragment,null,React.createElement(FL,null,React.createElement(zL,{className:"text-2xl font-semibold"},__("Email log")," #",e),React.createElement(LL,null,null==(r=null==(a=null==y?void 0:y.data)?void 0:a.data)?void 0:r.date_time),React.createElement(LL,null,React.createElement(Wf,{variant:1===E?"success":"destructive",className:"text-xs"},1===E?"Success":"Failed")),React.createElement(BL,null)),React.createElement("div",{className:"grid w-full grid-cols-2 gap-6 overflow-y-auto px-4 pb-4"},React.createElement("div",{className:"col-span-2"},React.createElement("h3",{className:"text-sm font-semibold"},__("Email subject")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},null==(i=null==(o=null==y?void 0:y.data)?void 0:o.data)?void 0:i.subject)),React.createElement(BL,{className:"col-span-2"}),React.createElement("div",{className:"col-span-2 md:col-span-1"},React.createElement("h3",{className:"text-sm font-semibold"},__("From")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},null==(l=null==(s=null==y?void 0:y.data)?void 0:s.data)?void 0:l.email_from)),React.createElement("div",{className:"col-span-2 md:col-span-1"},React.createElement("h3",{className:"text-sm font-semibold"},__("To")),React.createElement("div",{className:"text-muted-foreground mt-2 text-sm break-all"},null==(u=null==(c=null==y?void 0:y.data)?void 0:c.data)?void 0:u.email_to.map(e=>React.createElement("p",{key:e},e)))),React.createElement(BL,{className:"col-span-2"}),React.createElement("div",{className:"col-span-2 md:col-span-1"},React.createElement("h3",{className:"text-sm font-semibold"},__("Generated by")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},null==(m=null==(d=null==y?void 0:y.data)?void 0:d.data)?void 0:m.mail_source)),React.createElement("div",{className:"col-span-2 md:col-span-1"},React.createElement("h3",{className:"text-sm font-semibold"},__("Mailer")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},null==(_n=null==(h=null==y?void 0:y.data)?void 0:h.data)?void 0:_n.mailer)),React.createElement(BL,{className:"col-span-2"}),1!==E&&(null==(p=null==(f=null==y?void 0:y.data)?void 0:f.data)?void 0:p.extra_info)&&React.createElement("div",{className:"border-destructive col-span-2 rounded-md border p-4"},React.createElement("h3",{className:"text-lg font-semibold"},__("Error details")),React.createElement("div",{className:"mt-4"},y.data.data.extra_info.source&&React.createElement("div",null,React.createElement("h4",{className:"text-sm font-semibold"},__("Debug source")),React.createElement("div",{className:"bg-muted mt-2 rounded-md p-2 font-mono text-xs"},React.createElement("span",{className:"text-foreground"},y.data.data.extra_info.source.root_name||""),React.createElement("span",{className:"text-muted-foreground"},":"),React.createElement("span",{className:"text-muted-foreground"},y.data.data.extra_info.source.root_path||""))),y.data.data.extra_info.error_mess&&React.createElement("div",{className:"mt-4"},React.createElement("h4",{className:"text-sm font-semibold"},__("Error message")),React.createElement("div",{className:"bg-muted mt-2 rounded-md p-3"},React.createElement("pre",{className:"text-destructive text-sm break-words whitespace-pre-wrap"},y.data.data.extra_info.error_mess))))),(null==(v=null==(g=null==y?void 0:y.data)?void 0:g.data)?void 0:v.body_content)&&React.createElement("div",{className:"col-span-2"},React.createElement("h3",{className:"text-sm font-semibold"},__("Email body")),React.createElement("div",{className:"bg-muted mt-2 overflow-y-auto rounded-md p-3"},React.createElement(UL,{htmlContent:y.data.data.body_content}))))))}function ZL({logItem:e}){const[t,n]=ze.useState(!1),[a,r]=ze.useState(!1),o=$t(),i=Xt({mutationKey:["emailLog","delete"],mutationFn:({id:e})=>lm(e),onSuccess:()=>{Zx(__("Email log deleted successfully"))}}),s=cm();return React.createElement(React.Fragment,null,React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"ghost",className:"h-8 w-8 cursor-pointer p-0"},React.createElement(bs,null))),React.createElement(aL,{align:"end"},React.createElement(rL,{className:"cursor-pointer",onClick:function(){s(e.id,e),n(!0)}},React.createElement(Es,{className:"h-4 w-4"}),__("View")),React.createElement(rL,{className:"cursor-pointer",onClick:()=>r(!0)},React.createElement(Cs,{className:"h-4 w-4"}),__("Delete")))),React.createElement(PL,{open:t,onOpenChange:n},React.createElement(OL,{className:"sm:max-w-2xl"},React.createElement($L,{emailLogId:e.id}))),React.createElement(ky,{open:a,onOpenChange:r},React.createElement(My,{className:"min-w-fit"},React.createElement(Ny,null,React.createElement(Ay,null,__("Are you sure you want to delete this email log?")),React.createElement(Dy,null,__("This action cannot be undone. This will permanently delete this email log."))),React.createElement(Py,null,React.createElement(Zf,{variant:"outline",onClick:()=>r(!1)},__("Cancel")),React.createElement(Zf,{variant:"destructive",onClick:async function(){r(!1),i.isPending||(await i.mutateAsync({id:e.id.toString()}),o.invalidateQueries({queryKey:["emailLogs"]}))},disabled:i.isPending},__("Yes, delete"))))))}function GL({logItem:e}){const[t,n]=ze.useState(!1),a=cm();return React.createElement(React.Fragment,null,React.createElement(Zf,{variant:"link",className:"h-auto cursor-pointer p-0 text-left font-normal",onClick:function(){a(e.id,e),n(!0)}},e.subject),React.createElement(PL,{open:t,onOpenChange:n},React.createElement(OL,{className:"sm:max-w-2xl"},React.createElement($L,{emailLogId:e.id}))))}const qL=({column:e,children:t})=>{const n=e.getIsSorted();return React.createElement(Zf,{variant:"ghost",onClick:e.getToggleSortingHandler(),className:"h-auto cursor-pointer p-0 font-medium hover:bg-transparent"},t,"asc"===n?React.createElement(fs,{className:"ml-2 h-4 w-4"}):"desc"===n?React.createElement(ds,{className:"ml-2 h-4 w-4"}):React.createElement(ps,{className:"ml-2 h-4 w-4"}))},KL=(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},YL=e=>e,XL=[KL("id",{header:({table:e})=>React.createElement(NL,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:t=>{e.toggleAllPageRowsSelected(!!t)},"aria-label":"Select all"}),cell:({row:e})=>React.createElement(NL,{checked:e.getIsSelected(),onCheckedChange:t=>{e.toggleSelected(!!t)},"aria-label":"Select row"}),enableHiding:!1}),KL("subject",{id:"subject",header:({column:e})=>React.createElement(qL,{column:e},__("Subject")),cell:({row:e})=>React.createElement(GL,{logItem:e.original})}),KL("status",{id:"status",header:({column:e})=>React.createElement(qL,{column:e},__("Status")),cell:({getValue:e})=>{const t=+e();return React.createElement(Wf,{variant:1===t?"success":"destructive",className:"text-xs"},1===t?"Success":"Failed")}}),KL("email_to",{id:"email_to",header:({column:e})=>React.createElement(qL,{column:e},__("Email to")),cell:({row:e})=>{var t;return t=e.getValue("email_to"),(Array.isArray(t)?t:[t]).join(", ")}}),KL("date_time",{id:"date_time",header:({column:e})=>React.createElement(qL,{column:e},__("Delivery time")),cell:({row:e})=>e.getValue("date_time")}),KL("email_clicked_links",{id:"email_clicked_links",header:__("Clicked"),cell:({row:e})=>e.getValue("email_clicked_links")}),KL("email_opened",{id:"email_opened",header:__("Opened"),cell:({row:e})=>e.getValue("email_opened")}),KL("mail_source",{id:"mail_source",header:__("Generated by"),cell:({row:e})=>e.getValue("mail_source")}),YL({id:"actions",cell:({row:e})=>React.createElement(ZL,{logItem:e.original})})];var QL="Toggle",JL=ze.forwardRef((e,t)=>{const{pressed:n,defaultPressed:a,onPressedChange:r,...o}=e,[i,s]=bp({prop:n,onChange:r,defaultProp:a??!1,caller:QL});return Wt.jsx(Qf.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:fp(e.onClick,()=>{e.disabled||s(!i)})})});JL.displayName=QL;var ej="ToggleGroup",[tj,nj]=pp(ej,[rD]),aj=rD(),rj=Le.forwardRef((e,t)=>{const{type:n,...a}=e;if("single"===n){const e=a;return Wt.jsx(sj,{...e,ref:t})}if("multiple"===n){const e=a;return Wt.jsx(lj,{...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ej}\``)});rj.displayName=ej;var[oj,ij]=tj(ej),sj=Le.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:r=()=>{},...o}=e,[i,s]=bp({prop:n,defaultProp:a??"",onChange:r,caller:ej});return Wt.jsx(oj,{scope:e.__scopeToggleGroup,type:"single",value:Le.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:Le.useCallback(()=>s(""),[s]),children:Wt.jsx(dj,{...o,ref:t})})}),lj=Le.forwardRef((e,t)=>{const{value:n,defaultValue:a,onValueChange:r=()=>{},...o}=e,[i,s]=bp({prop:n,defaultProp:a??[],onChange:r,caller:ej}),l=Le.useCallback(e=>s((t=[])=>[...t,e]),[s]),c=Le.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return Wt.jsx(oj,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:c,children:Wt.jsx(dj,{...o,ref:t})})});rj.displayName=ej;var[cj,uj]=tj(ej),dj=Le.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:a=!1,rovingFocus:r=!0,orientation:o,dir:i,loop:s=!0,...l}=e,c=aj(n),u=Xx(i),d={role:"group",dir:u,...l};return Wt.jsx(cj,{scope:n,rovingFocus:r,disabled:a,children:r?Wt.jsx(hD,{asChild:!0,...c,orientation:o,dir:u,loop:s,children:Wt.jsx(Qf.div,{...d,ref:t})}):Wt.jsx(Qf.div,{...d,ref:t})})}),mj="ToggleGroupItem",hj=Le.forwardRef((e,t)=>{const n=ij(mj,e.__scopeToggleGroup),a=uj(mj,e.__scopeToggleGroup),r=aj(e.__scopeToggleGroup),o=n.value.includes(e.value),i=a.disabled||e.disabled,s={...e,pressed:o,disabled:i},l=Le.useRef(null);return a.rovingFocus?Wt.jsx(fD,{asChild:!0,...r,focusable:!i,active:o,ref:l,children:Wt.jsx(fj,{...s,ref:t})}):Wt.jsx(fj,{...s,ref:t})});hj.displayName=mj;var fj=Le.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:a,...r}=e,o=ij(mj,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===o.type?i:void 0;return Wt.jsx(JL,{...s,...r,ref:t,onPressedChange:e=>{e?o.onItemActivate(a):o.onItemDeactivate(a)}})}),pj=rj,gj=hj;const vj=Nf("",{variants:{shape:{default:"rounded-[100px]",custom:"rounded-md"},size:{default:"h-9 min-w-9",sm:"h-8  min-w-8",lg:"h-10 min-w-10"}},defaultVariants:{shape:"default",size:"default"}}),yj=ze.createContext({size:"default",shape:"default"});function bj({className:e,size:t,shape:n,children:a,...r}){return ze.createElement(pj,{"data-slot":"toggle-group","data-size":t,type:"single",className:nm(vj({size:t,shape:n}),"bg-muted inline-flex w-fit items-center justify-center gap-2.5 p-[4px] text-[#495057]",e),...r},ze.createElement(yj.Provider,{value:{size:t,shape:n}},a))}function wj({className:e,children:t,size:n,shape:a,...r}){const o=ze.useContext(yj);return ze.createElement(gj,{"data-slot":"toggle-group-item","data-size":o.size||n,"data-shape":a??o.shape??"default",className:nm("data-[state=on]:bg-background data-[state=on]:text-foreground hover:bg-muted dark:data-[state=on]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=on]:border-input dark:data-[state=on]:bg-input/30 dark:text-muted-foreground inline-flex h-full cursor-pointer items-center justify-center gap-1.5 border border-transparent px-3 py-[9px] text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[shape=custom]:w-[120px] data-[shape=custom]:rounded-sm data-[shape=default]:rounded-[100px] data-[state=on]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r},t)}function xj({logSettings:e,updateLogSettings:t,isEnabled:n,setIsEnabled:a}){const[r,o]=ze.useState(!1),i=hi({resolver:Fi(Ef),defaultValues:{save_email_log:"yes",email_log_inf_type:"full_inf",email_log_delete_time:"0",email_opened:"no",email_clicked_links:"no",...e}}),s=i.formState.isDirty,l=i.watch("email_log_inf_type")||"full_inf",c=i.watch("email_log_delete_time")||"0",u=__("0"===c?"Log email for forever.":`Log email for ${c} days.`);return React.createElement(React.Fragment,null,React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("div",{className:"flex flex-col gap-4"},React.createElement("div",{className:"flex gap-3"},React.createElement(Fp,{loading:r,size:"sm",id:"log_outgoing_emails",checked:n,onCheckedChange:n=>(async n=>{e.save_email_log=n?"yes":"no",t(e);const r=await async function(e){return await Xc.postJson("yaysmtp_set_email_logs_setting",{params:{save_email_log:e}})}(n?"yes":"no");r.success?(a(n),Zx(r.data.mess)):Gx(r.data.mess)})(n)}),React.createElement("div",{className:"flex flex-col gap-1"},React.createElement(np,{htmlFor:"log_outgoing_emails",className:"text-sm font-medium"},__("Log outgoing emails")),React.createElement("p",{className:"text-muted-foreground text-sm"},__("Save a record of all outgoing emails for review.")))),n&&React.createElement("div",{className:"flex flex-col gap-1"},React.createElement("p",{className:"text-sm font-medium"},__("System status:")),React.createElement("p",{className:"text-muted-foreground text-sm"},u))),n&&React.createElement("div",{className:"mt-4"},React.createElement(PL,null,React.createElement(AL,{asChild:!0},React.createElement(Zf,{className:"cursor-pointer",variant:"outline"},__("Logs settings"),React.createElement(ls,{size:17}))),React.createElement(OL,null,React.createElement(FL,{className:"pb-0"},React.createElement(zL,{className:"text-2xl font-semibold"},__("Log settings")),React.createElement(BL,null)),React.createElement(ap,{...i},React.createElement("form",{onSubmit:i.handleSubmit(async n=>{o(!0);const a={...e,...n};t(a),i.reset(a,{keepValues:!0});try{const e=await async function(e){return await Xc.postJson("yaysmtp_set_email_logs_setting",{params:{...e}})}(n);o(!1),e.success?Zx(e.data.mess,"bottom-right"):Gx(e.data.mess,"bottom-right")}catch(r){Gx(__("Failed to save settings"),"bottom-right")}finally{o(!1)}},function(e){Gx(__("Please check your settings"),"bottom-right"),console.log("Invalid settings",{errors:e,formValues:i.getValues()})})},React.createElement("div",{className:"grid flex-2 auto-rows-min gap-6 px-4"},React.createElement("div",{className:"block"},React.createElement("div",null,React.createElement("h3",{className:"text-sm font-semibold"},__("Log detail")),React.createElement(op,{control:i.control,name:"email_log_inf_type",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(bj,{className:"mt-3",value:e.value,onValueChange:t=>{t&&e.onChange(t)},defaultValue:e.value,size:"lg"},React.createElement(wj,{value:"basic_inf"},__("Summary")),React.createElement(wj,{value:"full_inf"},__("Full content")))),React.createElement(mp,null))}),React.createElement("p",{className:"text-muted-foreground mt-3 text-sm"},__("full_inf"===l?"Save full email body to the log.":"Save only email summary to the log."))),React.createElement("div",{className:"mt-6"},React.createElement("p",{className:"text-sm font-medium"},__("Engagement tracking (advanced)")),React.createElement("div",{className:"mt-2.5 flex flex-col gap-2"},React.createElement("div",{className:"flex gap-3"},React.createElement(op,{control:i.control,name:"email_opened",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"email_opened",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})),React.createElement(mp,null))}),React.createElement(cp,{htmlFor:"email_opened",className:"text-sm font-normal"},__("Track opens"))),React.createElement("div",{className:"flex gap-3"},React.createElement(op,{control:i.control,name:"email_clicked_links",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"email_clicked_links",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})),React.createElement(mp,null))}),React.createElement(cp,{htmlFor:"email_clicked_links",className:"text-sm font-normal"},__("Track link clicks")))),React.createElement("p",{className:"text-muted-foreground mt-2.5 text-sm"},__("Adds a tiny tracking pixel / UTM tags."))),React.createElement(BL,{className:"mt-6"})),React.createElement("div",{className:"block"},React.createElement("h3",{className:"text-sm font-semibold"},__("Log retention")),React.createElement("div",{className:"mt-6 flex flex-col gap-2"},React.createElement("div",{className:"flex gap-3"},React.createElement(op,{control:i.control,name:"email_log_delete_time",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement("div",{className:"flex items-center gap-2"},React.createElement("span",{className:"text-sm"},__("Keep logs for")),React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"w-[110px] justify-between"},Ej(e.value),React.createElement(ds,{className:"h-4 w-4"}))),React.createElement(aL,{align:"end"},React.createElement(oL,{iconPosition:"right",checked:"7"===e.value,onCheckedChange:t=>{t&&e.onChange("7")}},__("7 days")),React.createElement(oL,{iconPosition:"right",checked:"30"===e.value,onCheckedChange:t=>{t&&e.onChange("30")}},__("30 days")),React.createElement(oL,{iconPosition:"right",checked:"60"===e.value,onCheckedChange:t=>{t&&e.onChange("60")}},__("60 days")),React.createElement(oL,{iconPosition:"right",checked:"180"===e.value,onCheckedChange:t=>{t&&e.onChange("180")}},__("180 days")),React.createElement(oL,{iconPosition:"right",checked:"365"===e.value,onCheckedChange:t=>{t&&e.onChange("365")}},__("365 days")),React.createElement(oL,{iconPosition:"right",checked:"0"===e.value,onCheckedChange:t=>{t&&e.onChange("0")}},__("Forever")))))),React.createElement(mp,null))}))),React.createElement("p",{className:"text-muted-foreground mt-2.5 text-sm"},__("Older logs are deleted nightly."))),React.createElement("div",{className:"block"},React.createElement(Zf,{type:"submit",disabled:r,variant:s?"primary":"disabled",className:"relative cursor-pointer"},React.createElement("span",{className:r?"invisible":""},__("Save Changes")),r&&React.createElement("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},React.createElement(Qi,{className:"animate-spin"})))))))))))))}const Ej=e=>({0:__("Forever"),7:__("7 days"),30:__("30 days"),60:__("60 days"),180:__("180 days"),365:__("365 days")}[e]||__("7 days"));function Rj({rows:e=10,columnVisibility:t={subject:!0,email_to:!0,status:!0,date_time:!0,email_clicked_links:!1,email_opened:!1,mail_source:!0,actions:!0}}){const n=[{id:"id",visible:!0},{id:"subject",visible:t.subject},{id:"status",visible:t.status},{id:"email_to",visible:t.email_to},{id:"date_time",visible:t.date_time},{id:"email_clicked_links",visible:t.email_clicked_links},{id:"email_opened",visible:t.email_opened},{id:"mail_source",visible:t.mail_source},{id:"actions",visible:t.actions}].filter(e=>e.visible);return React.createElement(React.Fragment,null,Array.from({length:e}).map((e,t)=>React.createElement(cL,{key:t},n.map(e=>React.createElement(dL,{key:e.id,className:"px-2 py-4 "+("id"===e.id?"pr-0":"")},"id"===e.id&&React.createElement(WL,{className:"size-4.5 rounded-[4px]"}),"subject"===e.id&&React.createElement(WL,{className:"h-5 w-64"}),"status"===e.id&&React.createElement(WL,{className:"h-6 w-20 rounded-full"}),"email_to"===e.id&&React.createElement(WL,{className:"h-4 w-[200px]"}),"date_time"===e.id&&React.createElement(WL,{className:"h-4 w-32"}),"email_clicked_links"===e.id&&React.createElement(WL,{className:"h-4 w-16"}),"email_opened"===e.id&&React.createElement(WL,{className:"h-4 w-16"}),"mail_source"===e.id&&React.createElement(WL,{className:"h-4 w-[120px]"}),"actions"===e.id&&React.createElement(WL,{className:"h-8 w-8"}))))))}function Cj(){var e,t,n;const{logSettings:a,updateLogSettings:r}=function(){const e=$t(),{data:t}=Yt({queryKey:["yaysmtpLogSettings"],queryFn:()=>window.yaySmtpWpData.yaysmtpLogSettings,placeholderData:window.yaySmtpWpData.yaysmtpLogSettings});return{logSettings:t,updateLogSettings:t=>{window.yaySmtpWpData.yaysmtpLogSettings=t,e.setQueryData(["yaysmtpLogSettings"],t)}}}(),[o,i]=ze.useState(!1),[s,l]=ze.useState(""),[c,u]=ze.useState(""),[d,m]=ze.useState("all"),[h,f]=ze.useState([]),[p,g]=ze.useState("no"!==(null==a?void 0:a.save_email_log)),[v,y]=ze.useState({pageIndex:0,pageSize:10}),[b,w]=ze.useState(()=>function(e){return{subject:1===+((null==e?void 0:e.show_subject_cl)??1),email_to:1===+((null==e?void 0:e.show_to_cl)??1),status:1===+((null==e?void 0:e.show_status_cl)??1),date_time:1===+((null==e?void 0:e.show_datetime_cl)??1),actions:1===+((null==e?void 0:e.show_action_cl)??1)}}(a||{})),[x,E]=ze.useState({}),[R,C]=ze.useState(!1),[k,_]=ze.useState(),[S,M]=ze.useState(!1),N=$t();ze.useEffect(()=>{w(e=>({...e,email_clicked_links:"yes"===(null==a?void 0:a.email_clicked_links),email_opened:"yes"===(null==a?void 0:a.email_opened)}))},[null==a?void 0:a.email_clicked_links,null==a?void 0:a.email_opened]);const P=ze.useMemo(()=>({page:v.pageIndex+1,limit:v.pageSize,status:d,valSearch:c,from:(null==k?void 0:k.from)?qu(k.from,"yyyy-MM-dd"):void 0,to:(null==k?void 0:k.to)?qu(k.to,"yyyy-MM-dd"):void 0,sortField:h.length>0?h[0].id:void 0,sortVal:h.length>0?h[0].desc?"descending":"ascending":void 0}),[v,c,k,h,d]),{data:A,isLoading:D,isFetching:T,error:O}=Yt({queryKey:["emailLogs",P],queryFn:()=>async function(e={}){return await Xc.postJson("yaysmtp_email_logs",{params:{...e}})}(P),placeholderData:it,refetchOnWindowFocus:!1}),[F]=function(e,t,n){void 0===n&&(n=[]);var a=function(e,t){var n=ze.useRef(!1),a=ze.useRef(),r=ze.useRef(e),o=ze.useCallback(function(){return n.current},[]),i=ze.useCallback(function(){n.current=!1,a.current&&clearTimeout(a.current),a.current=setTimeout(function(){n.current=!0,r.current()},t)},[t]),s=ze.useCallback(function(){n.current=null,a.current&&clearTimeout(a.current)},[]);return ze.useEffect(function(){r.current=e},[e]),ze.useEffect(function(){return i(),s},[t]),[o,s,i]}(e,t),r=a[0],o=a[1],i=a[2];return ze.useEffect(i,n),[r,o]}(()=>{u(s)},300,[s]),z=async(e,t,n)=>{i(!0),w(t=>({...t,[e]:n})),r({...a,[t]:n?"1":"0"}),await async function(e,t){return await Xc.postJson("yaysmtp_set_email_logs_setting",{params:{[e]:t}})}(t,n?1:0),i(!1)},L=Xt({mutationKey:["deleteAllEmailLog"],mutationFn:async()=>async function(){return await Xc.postJson("yaysmtp_delete_all_email_logs")}(),onSuccess:()=>{N.invalidateQueries({queryKey:["emailLogs"]}),Zx("All email logs deleted successfully")}}),j=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=ze.useState(()=>({current:tO(t)})),[a,r]=ze.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...a,...e.state},onStateChange:t=>{r(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:(null==(e=null==A?void 0:A.data)?void 0:e.data)||[],columns:XL,pageCount:Math.ceil(((null==(t=null==A?void 0:A.data)?void 0:t.totalItem)??0)/v.pageSize),state:{sorting:h,pagination:v,columnVisibility:b,rowSelection:x},manualPagination:!0,manualSorting:!0,getRowId:e=>e.id.toString(),getCoreRowModel:e=>fT(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},a=function(t,r,o){void 0===r&&(r=0);const i=[];for(let l=0;l<t.length;l++){const c=wT(e,e._getRowId(t[l],l,o),t[l],l,r,0,null==o?void 0:o.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,i.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=a(c.originalSubRows,r+1,c)))}return i};return n.rows=a(t),n},pT(e.options,"debugTable",0,()=>e._autoResetPageIndex())),getSortedRowModel:e=>fT(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const a=e.getState().sorting,r=[],o=a.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),i={};o.forEach(t=>{const n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=e=>{const t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let a=0;a<o.length;a+=1){var n;const r=o[a],s=i[r.id],l=s.sortUndefined,c=null!=(n=null==r?void 0:r.desc)&&n;let u=0;if(l){const n=void 0===e.getValue(r.id),a=void 0===t.getValue(r.id);if(n||a){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;u=n&&a?0:n?l:-l}}if(0===u&&(u=s.sortingFn(e,t,r.id)),0!==u)return c&&(u*=-1),s.invertSorting&&(u*=-1),u}return e.index-t.index}),t.forEach(e=>{var t;r.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:r,rowsById:n.rowsById}},pT(e.options,"debugTable",0,()=>e._autoResetPageIndex())),onPaginationChange:y,onSortingChange:f,onRowSelectionChange:E}),{isMultisiteMode:V,isNetworkAdmin:I}=Ss();return React.createElement(React.Fragment,null,React.createElement("div",{className:"mx-auto mt-6 max-w-[90%] px-2.5"},React.createElement("h1",{className:"py-4 text-3xl font-bold md:py-8"},__(V&&!I?"Multisite Mode - Email Logs":"Email Logs")),(!V||I)&&React.createElement(xj,{logSettings:a||{},updateLogSettings:r,isEnabled:p,setIsEnabled:g}),(V&&!I||p&&(!V||I))&&React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"},React.createElement(hp,{id:"email_logs_search",placeholder:__("Enter subject or email…"),value:s,onChange:e=>{return t=e.target.value,l(t),""===t&&(F(),u("")),void j.firstPage();var t},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),F(),u(s),j.firstPage())},className:"w-64"}),React.createElement("div",{className:"flex flex-col items-start gap-4 md:flex-row md:items-center"},React.createElement(xx,{open:R,onOpenChange:C},React.createElement(Ex,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"w-70 justify-start gap-4 font-normal"},React.createElement(cs,{className:"h-4 w-4"}),React.createElement("span",{className:"flex-1 text-left"},om(k)),(null==k?void 0:k.from)&&React.createElement("div",{className:"flex h-4 w-4 items-center justify-center p-0 hover:bg-transparent",onClick:e=>{e.stopPropagation(),_(void 0),j.firstPage()},role:"button",tabIndex:0},React.createElement(ks,{className:"h-3 w-3"})))),React.createElement(Rx,{className:"w-auto p-0",align:"start"},React.createElement(uF,{mode:"range",selected:k,onSelect:e=>{_(e),j.firstPage()},numberOfMonths:2}))),React.createElement("div",{className:"flex items-start gap-4"},React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"min-w-[120px] justify-between"},kj[d],React.createElement(ds,{className:"h-4 w-4"}))),React.createElement(aL,{align:"end"},Object.entries(kj).map(([e,t])=>React.createElement(oL,{iconPosition:"right",key:e,checked:d===e,onCheckedChange:t=>{t&&m(e)},onSelect:e=>e.preventDefault()},t)))),React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline"},__("Columns")," ",React.createElement(ds,null))),React.createElement(aL,{align:"end"},React.createElement(oL,{disabled:o,key:"status",checked:b.status,onCheckedChange:e=>z("status","show_status_cl",e),onSelect:e=>e.preventDefault()},__("Status")),React.createElement(oL,{disabled:o,key:"date_time",checked:b.date_time,onCheckedChange:e=>z("date_time","show_datetime_cl",e),onSelect:e=>e.preventDefault()},__("Delivery time")),React.createElement(oL,{disabled:o,key:"actions",checked:b.actions,onCheckedChange:e=>z("actions","show_action_cl",e),onSelect:e=>e.preventDefault()},__("Actions")))),React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline"},React.createElement(ws,null))),React.createElement(aL,{align:"end"},React.createElement(rL,{onClick:()=>M(!0)},React.createElement(Cs,{className:"h-4 w-4"}),__("Delete all logs"))))))),React.createElement("div",{className:"mt-4 w-full overflow-x-auto rounded-md border"},React.createElement(iL,null,React.createElement(sL,null,j.getHeaderGroups().map(e=>React.createElement(cL,{key:e.id},e.headers.map(e=>React.createElement(uL,{key:e.id},e.isPlaceholder?null:nO(e.column.columnDef.header,e.getContext())))))),React.createElement(lL,null,D||T?React.createElement(Rj,{rows:v.pageSize,columnVisibility:b}):(null==(n=j.getRowModel().rows)?void 0:n.length)?j.getRowModel().rows.map(e=>React.createElement(cL,{key:e.id,"data-state":e.getIsSelected()&&"selected"},e.getVisibleCells().map(e=>React.createElement(dL,{className:"px-2 py-4 "+("id"===e.column.id?"pr-0":"subject"===e.column.id?"max-w-xs truncate":"email_to"===e.column.id?"max-w-[200px] truncate":"mail_source"===e.column.id?"max-w-[120px] truncate":""),key:e.id},nO(e.column.columnDef.cell,e.getContext()))))):O?React.createElement(cL,null,React.createElement(dL,{colSpan:XL.length,className:"h-24 text-center"},O.message??__("Failed to fetch email logs"))):React.createElement(cL,null,React.createElement(dL,{colSpan:XL.length,className:"h-24 text-center"},__("No email logs found")))))),React.createElement("div",{className:"flex flex-col items-start justify-between gap-4 space-x-2 py-4 md:flex-row md:items-center"},React.createElement(mL,{table:j}),React.createElement("div",{className:"flex items-center gap-4"},React.createElement("span",{className:"text-sm font-medium"},__("Result per page"),":"),React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"w-[70px] justify-between"},v.pageSize,React.createElement(ds,{className:"h-4 w-4"}))),React.createElement(aL,{align:"end"},React.createElement(oL,{iconPosition:"right",checked:10===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:10,pageIndex:0}))}},"10"),React.createElement(oL,{iconPosition:"right",checked:20===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:20,pageIndex:0}))}},"20"),React.createElement(oL,{iconPosition:"right",checked:30===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:30,pageIndex:0}))}},"30"),React.createElement(oL,{iconPosition:"right",checked:40===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:40,pageIndex:0}))}},"40"),React.createElement(oL,{iconPosition:"right",checked:50===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:50,pageIndex:0}))}},"50"),React.createElement(oL,{iconPosition:"right",checked:100===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:100,pageIndex:0}))}},"100"),React.createElement(oL,{iconPosition:"right",checked:150===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:150,pageIndex:0}))}},"150"),React.createElement(oL,{iconPosition:"right",checked:200===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:200,pageIndex:0}))}},"200"),React.createElement(oL,{iconPosition:"right",checked:300===v.pageSize,onCheckedChange:e=>{e&&y(e=>({...e,pageSize:300,pageIndex:0}))}},"300"))),React.createElement("div",{className:"flex items-center gap-2"},React.createElement("span",{className:"text-sm font-medium"},"Go to page:"),React.createElement(hp,{min:"1",max:j.getPageCount()||1,type:"number",className:"w-[70px] cursor-text",value:(v.pageIndex+1).toString().replace(/^0+/,""),onChange:e=>y(t=>({...t,pageIndex:+e.target.value-1})),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),j.setPageIndex(+e.target.value-1))}})),React.createElement(Zf,{className:"cursor-pointer",variant:"outline",size:"sm",onClick:()=>j.previousPage(),disabled:!j.getCanPreviousPage()},__("Previous")),React.createElement("span",{className:"text-sm font-medium"},v.pageIndex+1," of ",j.getPageCount()),React.createElement(Zf,{className:"cursor-pointer",variant:"outline",size:"sm",onClick:()=>j.nextPage(),disabled:!j.getCanNextPage()},__("Next"))))))),React.createElement(ky,{open:S,onOpenChange:M},React.createElement(My,null,React.createElement(Ny,null,React.createElement(Ay,null,__("Are you sure you want to delete all email logs?")),React.createElement(Dy,null,__("This action cannot be undone. This will permanently delete all email logs."))),React.createElement(Py,null,React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>M(!1)},__("Cancel")),React.createElement(Zf,{className:"cursor-pointer",variant:"destructive",onClick:()=>{L.isPending||(L.mutateAsync(),M(!1))},disabled:L.isPending},__("Yes, delete"))))))}const kj={all:"All Status",sent:"Success",not_send:"Failed"},_j=ze.forwardRef(({className:e,asChild:t=!1,children:n,...a},r)=>{const o=t?Lf:"nav";return ze.createElement(o,{"data-slot":"header-navigation-menu-list",className:nm("relative flex h-9 flex-1 list-none items-stretch justify-center gap-8",e),...a},n)}),Sj=ze.forwardRef(({className:e,asChild:t=!1,children:n,...a},r)=>{const o=t?Lf:"a";return ze.createElement(o,{"data-slot":"header-navigation-menu-item",className:nm("flex cursor-pointer items-center gap-1.5 border-b-3 border-solid border-transparent text-sm text-[#000000E0] transition-colors outline-none hover:border-[#e6e8eb] focus:ring-0","aria-[current=page]:border-ring aria-[current=page]:text-ring",e),...a},n)}),Mj=({...e})=>React.createElement($x,{position:"bottom-center",theme:"system",className:"toaster group",toastOptions:{className:"max-w-fit",style:{padding:"10px"}},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e});function Nj({debugMessage:e}){return React.createElement("div",{className:"border-destructive mt-8 rounded-md border p-4"},React.createElement("h4",{className:"text-destructive mb-2 text-sm font-semibold"},__("Error message")),React.createElement("div",{className:"bg-muted rounded-md p-3"},React.createElement("div",null,React.createElement("p",null,__("Oops! Your email can't be sent.")),React.createElement("div",{className:"mt-2"},React.createElement("h3",{className:"font-semibold"},__("What happened?")),React.createElement("p",null,__("This error might be caused by:")),React.createElement("p",null,__("- Incorrect SMTP settings or Mailer configuration")),React.createElement("p",null,__("- Connection blocked by your web server")),React.createElement("p",null,__("- Connection rejected by your host (many shared hosts block certain ports)"))),React.createElement("div",{className:"mt-2"},React.createElement("h3",{className:"font-semibold"},__("What to do next?")),React.createElement("p",null,__("- Double check all configuration and settings")),React.createElement("p",null,__("- Try another mailer")),React.createElement("p",null,__("- Ask your hosting provider to enable your external connections"))),React.createElement("div",{className:"mt-2"},React.createElement("h3",{className:"font-semibold"},__("Can't figure it out?")),React.createElement("p",null,__("Please "),React.createElement("a",{className:"text-ring underline",href:"https://yaycommerce.com/support/",target:"_blank"},__("contact us")),__(" to ask for help. We'll get back to you ASAP."),React.createElement("br",null),__("We'll get back to you ASAP.")))),React.createElement("div",{className:"mt-2"},React.createElement("h3",{className:"font-semibold"},__("Debug")),React.createElement("div",{dangerouslySetInnerHTML:{__html:e}}))))}const Pj=$h().email("Please enter a valid email address");function Aj({children:e}){var t;const n=$t(),{settings:a,updateSettings:r}=Ms(),{debugText:o,updateDebugText:i}=Ns(),[s,l]=ze.useState(window.yaySmtpWpData.adminEmail),[c,u]=ze.useState(null),[d,m]=ze.useState(!1),[h,f]=ze.useState(null),p=(null==(t=null==a?void 0:a.amazonses)?void 0:t.region)||"us-east-1",g=`https://${p}.console.aws.amazon.com/ses/home?region=${p}#verified-senders-email:`,v=(null==a?void 0:a.currentMailer)||"mail",y="/email-logs"===location.pathname;return React.createElement(React.Fragment,null,React.createElement(PL,{onOpenChange:e=>{e||f(null)}},React.createElement(AL,{asChild:!0},e),React.createElement(OL,{onOpenAutoFocus:e=>{e.preventDefault()}},React.createElement(FL,{className:"pb-0"},React.createElement(zL,{className:"text-2xl font-semibold"},__("Send test email")),React.createElement(BL,null)),React.createElement("div",{className:"px-4"},"amazonses"===v&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("If your account is still in Amazon SES sandbox mode. ")),React.createElement("p",{className:"text-sm"},__("You can only send mail from verified email addresses.")),React.createElement("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"text-ring flex items-center gap-1 text-sm underline"},__("Click to verify Email From"),React.createElement(xs,{className:"h-4 w-4"})))),React.createElement(np,{htmlFor:"email-address",className:"mt-4 text-sm font-medium"},__("Email address")),React.createElement(hp,{id:"email-address",placeholder:__("Enter email address"),value:s,onChange:e=>l(e.target.value),className:(c?"border-destructive":"")+" mt-1",type:"email"}),c&&React.createElement("div",{className:"text-destructive mt-2 text-xs"},c.errors.map(e=>e.message).join("\n")),!sm(a||{})&&React.createElement("div",{className:"text-destructive mt-2 text-xs"},__("Please configure your mailer settings before sending test emails.")),React.createElement(Zf,{onClick:async()=>{const e=Pj.safeParse(s);e.success?(u(null),(async e=>{var t;m(!0);const s=await function(e){return Xc.postJson("yaysmtp_send_mail",{params:{emailAddress:e}})}(e);if(s.success){const e={...a,succ_sent_mail_last:!0};r(e),f("");const t={...o,normal:[]};i(t),Zx(s.data.mess,"bottom-right")}else{const e={...a,succ_sent_mail_last:!1};r(e);const n=(null==(t=s.data)?void 0:t.debugText)??s.data.mess;f(n);const l=n.includes("<br>")?n.split("<br>"):[n],c={...o,normal:l};i(c),Gx(s.data.mess,"bottom-right")}y?setTimeout(()=>{n.invalidateQueries({queryKey:["emailLogs"]})},100):n.invalidateQueries({queryKey:["emailLogs"]}),m(!1)})(e.data)):u(e.error)},disabled:!sm(a||{})||d,className:"mt-4 cursor-pointer"},d&&React.createElement("span",null,React.createElement(Qi,{className:"animate-spin"})),React.createElement("span",null,__(d?"Sending...":"Send email"))),h&&React.createElement(Nj,{debugMessage:h})))))}const Dj=({className:e="",...t})=>React.createElement("svg",{viewBox:"0 0 17 16","data-icon":"dashboard",width:"17",height:"17",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:nm("text-[#1D2327]",e),...t},React.createElement("path",{d:"M6.375 11.5417H10.625"}),React.createElement("path",{d:"M2.43667 4.64234V12.2499C2.43667 13.8153 3.70459 15.0832 5.27 15.0832H11.815C13.3804 15.0832 14.6483 13.8153 14.6483 12.2499V4.64234"}),React.createElement("path",{d:"M0.708336 5.7828L7.45167 1.2778C8.18125 0.789053 9.13042 0.80322 9.84584 1.29905L16.2917 5.7828"})),Tj=({className:e="",...t})=>React.createElement("svg",{viewBox:"0 0 18 18","data-icon":"headset",width:"17",height:"17",fill:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:nm("text-[#1D2327]",e),...t},React.createElement("path",{d:"M2.81663 14.1416H2.54167C1.275 14.1416 0.25 13.1166 0.25 11.8499V9.76658C0.25 8.49992 1.275 7.47492 2.54167 7.47492H2.81663C4.0833 7.47492 5.1083 8.49992 5.1083 9.76658V11.8499C5.1083 13.1082 4.0833 14.1416 2.81663 14.1416ZM2.54167 8.72492C1.96667 8.72492 1.5 9.19158 1.5 9.76658V11.8499C1.5 12.4249 1.96667 12.8916 2.54167 12.8916H2.81663C3.39163 12.8916 3.8583 12.4249 3.8583 11.8499V9.76658C3.8583 9.19158 3.39163 8.72492 2.81663 8.72492H2.54167Z"}),React.createElement("path",{d:"M15.3165 8.72483C14.9748 8.72483 14.6915 8.4415 14.6915 8.09983V7.19981C14.6915 4.05814 12.1416 1.50814 8.99992 1.50814C5.85824 1.50814 3.30827 4.05814 3.30827 7.19981V8.09983C3.30827 8.4415 3.02494 8.72483 2.68327 8.72483C2.34161 8.72483 2.05827 8.4415 2.05827 8.09983V7.19981C2.05827 3.37481 5.17491 0.258142 8.99992 0.258142C12.8249 0.258142 15.9415 3.37481 15.9415 7.19981V8.09983C15.9415 8.4415 15.6665 8.72483 15.3165 8.72483Z"}),React.createElement("path",{d:"M10.8002 17.7498H9.90009C9.55842 17.7498 9.27509 17.4664 9.27509 17.1248C9.27509 16.7831 9.55842 16.4998 9.90009 16.4998H10.8002C12.6418 16.4998 14.2501 15.1914 14.6084 13.3831C14.6751 13.0414 15.0084 12.8248 15.3418 12.8914C15.6751 12.9581 15.9001 13.2914 15.8334 13.6248C15.3584 16.0164 13.2418 17.7498 10.8002 17.7498Z"}),React.createElement("path",{d:"M15.4583 14.1416H15.1833C13.9166 14.1416 12.8916 13.1166 12.8916 11.8499V9.76658C12.8916 8.49992 13.9166 7.47492 15.1833 7.47492H15.4583C16.7249 7.47492 17.7499 8.49992 17.7499 9.76658V11.8499C17.7499 13.1082 16.7249 14.1416 15.4583 14.1416ZM15.1833 8.72492C14.6083 8.72492 14.1416 9.19158 14.1416 9.76658V11.8499C14.1416 12.4249 14.6083 12.8916 15.1833 12.8916H15.4583C16.0333 12.8916 16.4999 12.4249 16.4999 11.8499V9.76658C16.4999 9.19158 16.0333 8.72492 15.4583 8.72492H15.1833Z"})),Oj=({className:e="",...t})=>React.createElement("svg",{viewBox:"0 0 17 16","data-icon":"log",width:"17",height:"17",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:nm("text-[#1D2327]",e),...t},React.createElement("path",{d:"M2.56421 4.93967V3.94092C2.56421 2.3755 3.83213 1.10758 5.39754 1.10758H12.75C14.3154 1.10758 15.5834 2.3755 15.5834 3.94092V12.0584C15.5834 13.6238 14.3154 14.8917 12.75 14.8917H10.9863"}),React.createElement("path",{d:"M12.5234 4.93978H5.63135"}),React.createElement("path",{d:"M12.5229 8H10.9929"}),React.createElement("path",{d:"M12.5229 11.0602H10.9929"}),React.createElement("path",{d:"M4.85938 12.9798V14.8923"}),React.createElement("path",{d:"M6.39631 14.8924H3.32922"}),React.createElement("path",{d:"M1.41663 11.5629C1.41663 12.3421 2.05413 12.9796 2.83329 12.9796H6.89204C7.67121 12.9796 8.30871 12.3421 8.30871 11.5629V9.41667C8.30871 8.6375 7.67121 8 6.89204 8H2.83329C2.36579 8 1.94788 8.22667 1.69288 8.57375"})),Fj=ze.forwardRef(function({children:e,className:t="",size:n=24,viewBox:a="0 0 24 24",...r},o){return React.createElement("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:`yaysmtp-icon ${t}`,...r},e)}),zj=ze.forwardRef(({...e},t)=>React.createElement(Fj,{ref:t,...e},React.createElement("g",{clipPath:"url(#clip0_4482_9742)"},React.createElement("path",{d:"M17.56 3.66992H6.44C3.98786 3.66992 2 5.65778 2 8.10992V15.8999C2 18.3521 3.98786 20.3399 6.44 20.3399H17.56C20.0121 20.3399 22 18.3521 22 15.8999V8.10992C22 5.65778 20.0121 3.66992 17.56 3.66992Z",stroke:e.stroke||"currentColor",strokeWidth:e.strokeWidth||1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:e.fill||"transparent"}),React.createElement("path",{d:"M6.44043 8.6499L11.1104 10.6899C11.6704 10.9399 12.3104 10.9399 12.8804 10.6899L17.5504 8.6699",stroke:e.stroke||"currentColor",strokeWidth:e.strokeWidth||1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:e.fill||"transparent"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_4482_9742"},React.createElement("rect",{width:e.size||24,height:e.size||24,fill:"currentColor"}))))),Lj=({className:e="",...t})=>React.createElement("svg",{viewBox:"0 0 17 16","data-icon":"setting",width:"17",height:"17",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:nm("text-[#1D2327]",e),...t},React.createElement("path",{d:"M1.125 5.95247V10.0396C1.125 11.5412 1.125 11.5412 2.54167 12.4975L6.4375 14.75C7.02542 15.09 7.98167 15.09 8.5625 14.75L12.4583 12.4975C13.875 11.5412 13.875 11.5412 13.875 10.0467V5.95247C13.875 4.45789 13.875 4.45789 12.4583 3.50164L8.5625 1.24914C7.98167 0.909137 7.02542 0.909137 6.4375 1.24914L2.54167 3.50164C1.125 4.45789 1.125 4.45789 1.125 5.95247Z"}),React.createElement("path",{d:"M7.5 10.125C8.67364 10.125 9.625 9.17364 9.625 8C9.625 6.82636 8.67364 5.875 7.5 5.875C6.32636 5.875 5.375 6.82636 5.375 8C5.375 9.17364 6.32636 10.125 7.5 10.125Z"})),jj=({className:e="",...t})=>React.createElement("svg",{viewBox:"0 0 17 16","data-icon":"dashboard",width:"17",height:"17",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:nm("text-[#1D2327]",e),...t},React.createElement("path",{opacity:"0.4",d:"M3.83204 7.44743L1.64329 5.2587C1.34579 4.9612 1.34579 4.47953 1.64329 4.17495L3.93121 1.88703C4.22871 1.58953 4.71037 1.58953 5.01496 1.88703L6.45996 3.33203"}),React.createElement("path",{opacity:"0.4",d:"M13.1682 10.0399L14.6132 11.4849C14.9107 11.7824 14.9107 12.2712 14.6132 12.5687L12.3252 14.8566C12.0277 15.1541 11.5461 15.1541 11.2415 14.8566L9.05273 12.6678"}),React.createElement("path",{d:"M8.32295 5.83955L2.64921 11.5204C2.23129 11.9383 2.06838 12.5475 2.21713 13.1142C2.37296 13.6879 2.81213 14.1271 3.38588 14.2829C3.95963 14.4388 4.56171 14.2687 4.97963 13.8508L10.6605 8.17708"}),React.createElement("path",{d:"M8.32265 5.83958C7.99682 4.8975 8.07474 3.85625 8.52099 2.96375C8.97432 2.07125 9.76057 1.39833 10.7168 1.10083C11.1914 0.945 11.7014 0.888333 12.2043 0.937916C12.4877 0.973333 12.7214 1.17167 12.8135 1.44083C12.9056 1.71 12.8347 2.0075 12.6293 2.20583L11.2835 3.55167C11.2127 3.6225 11.1772 3.71458 11.1772 3.81375C11.1772 3.91292 11.2197 4.005 11.2835 4.07583L12.4239 5.21625C12.5727 5.365 12.8064 5.365 12.9481 5.21625L14.2939 3.87042C14.4922 3.665 14.7897 3.59417 15.0589 3.68625C15.3281 3.77833 15.5264 4.01208 15.5618 4.29542C15.6114 4.79833 15.5547 5.30125 15.3989 5.78292C15.1014 6.73917 14.4285 7.52542 13.536 7.97875C12.6435 8.43208 11.6093 8.50292 10.6602 8.17708"}));function Vj({currentMenu:e,onBackToDefault:t}){const[n,a]=ze.useState(window.yaySmtpWpData.reviewed||!1),[r,o]=ze.useState({left:0,width:0}),i=ze.useRef(null);return ze.useEffect(()=>{const e=()=>{if(i.current){const e=i.current.getBoundingClientRect();o({left:e.left,width:e.width})}};e(),window.addEventListener("resize",e),window.addEventListener("scroll",e);let t=null;return i.current&&window.ResizeObserver&&(t=new ResizeObserver(e),t.observe(i.current)),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e),t&&t.disconnect()}},[]),React.createElement(React.Fragment,null,React.createElement("div",{ref:i,className:"pointer-events-none absolute inset-0"}),React.createElement("footer",{className:nm("border-border text-foreground fixed bottom-0 z-50 flex flex-col items-center justify-center gap-2 border-t bg-[#F5F5F5] px-4 py-1 text-xs md:flex-row md:justify-between"),style:{left:`${r.left}px`,width:`${r.width}px`}},React.createElement("div",{className:"flex items-center gap-2"},React.createElement("span",{className:"text-sm"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},React.createElement("path",{fill:"#fff",d:"M24 4.050000000000001A19.95 19.95 0 1 0 24 43.95A19.95 19.95 0 1 0 24 4.050000000000001Z"}),React.createElement("path",{fill:"#01579b",d:"M8.001,24c0,6.336,3.68,11.806,9.018,14.4L9.385,17.488C8.498,19.479,8.001,21.676,8.001,24z M34.804,23.194c0-1.977-1.063-3.35-1.67-4.412c-0.813-1.329-1.576-2.437-1.576-3.752c0-1.465,1.471-2.84,3.041-2.84 c0.071,0,0.135,0.006,0.206,0.008C31.961,9.584,28.168,8,24.001,8c-5.389,0-10.153,2.666-13.052,6.749 c0.228,0.074,0.307,0.039,0.611,0.039c1.669,0,4.264-0.2,4.264-0.2c0.86-0.057,0.965,1.212,0.099,1.316c0,0-0.864,0.105-1.828,0.152 l5.931,17.778l3.5-10.501l-2.603-7.248c-0.861-0.046-1.679-0.152-1.679-0.152c-0.862-0.056-0.762-1.375,0.098-1.316 c0,0,2.648,0.2,4.217,0.2c1.675,0,4.264-0.2,4.264-0.2c0.861-0.057,0.965,1.212,0.104,1.316c0,0-0.87,0.105-1.832,0.152l5.891,17.61 l1.599-5.326C34.399,26.289,34.804,24.569,34.804,23.194z M24.281,25.396l-4.8,13.952c1.436,0.426,2.95,0.652,4.52,0.652 c1.861,0,3.649-0.324,5.316-0.907c-0.04-0.071-0.085-0.143-0.118-0.22L24.281,25.396z M38.043,16.318 c0.071,0.51,0.108,1.059,0.108,1.645c0,1.628-0.306,3.451-1.219,5.737l-4.885,14.135C36.805,35.063,40,29.902,40,24 C40,21.219,39.289,18.604,38.043,16.318z"}),React.createElement("path",{fill:"#01579b",d:"M4,24c0,11.024,8.97,20,19.999,20C35.03,44,44,35.024,44,24S35.03,4,24,4S4,12.976,4,24z M5.995,24 c0-9.924,8.074-17.999,18.004-17.999S42.005,14.076,42.005,24S33.929,42.001,24,42.001C14.072,42.001,5.995,33.924,5.995,24z"}))),React.createElement("span",{className:"text-muted-foreground cursor-pointer",onClick:t},"YaySMTP"),React.createElement("span",{className:"text-muted-foreground"},">"),React.createElement("span",{className:"text-foreground"},e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))),n?React.createElement("p",{className:"text-right text-xs"},__("Thank you for using YaySMTP from")," ",React.createElement("a",{href:"https://yaycommerce.com/",target:"_blank",className:"text-primary cursor-pointer hover:text-[#1b5f97] focus:shadow-none"},"YayCommerce"),"."):React.createElement("p",{className:"text-center text-xs"},__("We need your support to keep updating and improving the plugin. Please,")," ",React.createElement("button",{type:"button",onClick:async()=>{window.open("https://wordpress.org/support/plugin/yaysmtp/reviews/#new-post","_blank"),a(!0);try{await async function(){return await Xc.post("yaysmtp_mark_reviewed")}()}catch(nV){console.warn("Mark reviewed failed:",nV)}},className:"text-primary cursor-pointer hover:text-[#1b5f97]"},__("help us by leaving a good review"))," ",":) ",__("Thanks!"))))}function Ij(){const e=tr(),t=rr(),n="/dashboard"===e.pathname,a="/email-logs"===e.pathname,{isMultisiteMode:r,isNetworkAdmin:o}=Ss();return React.createElement(React.Fragment,null,React.createElement(Mj,null),React.createElement("div",{className:"bg-background relative flex h-[54px] items-end justify-between gap-4 py-0 pr-3 sm:gap-5 lg:pr-6"},React.createElement("div",{className:"justify-left flex h-full items-center border-r border-gray-100 p-[10px]"},React.createElement("img",{src:window.yaySmtpWpData.YAY_SMTP_PLUGIN_URL+"/assets/img/YaySMTP.svg",alt:"YaySMTP",className:"w-[30px] rounded-sm"})),React.createElement(_j,{className:"h-full justify-start gap-1.5 md:gap-7.5"},(!r||o)&&React.createElement(React.Fragment,null,React.createElement(Sj,{asChild:!0,className:"group"},React.createElement(Br,{to:"/dashboard",className:"px-3"},React.createElement(Dj,{className:"group-aria-[current=page]:text-ring"}),React.createElement("span",{className:"hidden sm:inline"},__("Dashboard")))),(r||!o)&&React.createElement(React.Fragment,null,React.createElement(Sj,{asChild:!0,className:"group"},React.createElement(Br,{to:"/settings",className:"px-3"},React.createElement(Lj,{className:"group-aria-[current=page]:text-ring"}),React.createElement("span",{className:"hidden sm:inline"},__("Settings")))),React.createElement(Sj,{asChild:!0,className:"group"},React.createElement(Br,{to:"/email-logs",className:"px-3"},React.createElement(Oj,{className:"group-aria-[current=page]:text-ring"}),React.createElement("span",{className:"hidden sm:inline"},__("Email Logs")))),React.createElement(Sj,{asChild:!0,className:"group"},React.createElement(Br,{to:"/tools",className:"px-3"},React.createElement(jj,{className:"group-aria-[current=page]:text-ring"}),React.createElement("span",{className:"hidden sm:inline"},__("Tools")))))),r&&!o&&React.createElement(Sj,{asChild:!0,className:"group"},React.createElement(Br,{to:"/email-logs",className:"px-3"},React.createElement(Oj,{className:"group-aria-[current=page]:text-ring"}),React.createElement("span",{className:"hidden sm:inline"},__("Email Logs"))))),(r||!o)&&React.createElement("div",{className:"flex h-full items-center gap-1.5 md:gap-5"},(n||a)&&!(r&&!o)&&React.createElement(Aj,null,React.createElement(Zf,{className:"flex cursor-pointer items-center justify-center",variant:"outline"},React.createElement(zj,{strokeWidth:2}),React.createElement("span",{className:"hidden cursor-pointer text-sm lg:inline"},__("Send test mail")))),React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://yaycommerce.com/support/","_blank")},React.createElement(Tj,null))),React.createElement(rC,null,React.createElement("p",null,__("Support")))),React.createElement(nC,null,React.createElement(aC,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"cursor-pointer",onClick:()=>window.open("https://docs.yaycommerce.com/yaysmtp/how-to-set-up-smtps","_blank")},React.createElement(oC,null))),React.createElement(rC,null,React.createElement("p",null,__("Documentation")))))),React.createElement("div",{className:"@container/main"},React.createElement(wr,null)),React.createElement(Vj,{currentMenu:e.pathname.split("/").pop()||"dashboard",onBackToDefault:()=>t("/dashboard")}))}const Hj=$h().email("Please enter a valid email address");function Bj({children:e}){var t;const{settings:n}=Ms(),{debugText:a,updateDebugText:r}=Ns(),[o,i]=ze.useState(window.yaySmtpWpData.adminEmail),[s,l]=ze.useState(null),[c,u]=ze.useState(!1),[d,m]=ze.useState(null),h=(null==(t=null==n?void 0:n.amazonses)?void 0:t.region)||"us-east-1",f=`https://${h}.console.aws.amazon.com/ses/home?region=${h}#verified-senders-email:`,p=(null==n?void 0:n.fallback_mailer_provider)||"mail";return React.createElement(React.Fragment,null,React.createElement(PL,{onOpenChange:e=>{e||m(null)}},React.createElement(AL,{asChild:!0},e),React.createElement(OL,{onOpenAutoFocus:e=>{e.preventDefault()}},React.createElement(FL,{className:"pb-0"},React.createElement(zL,{className:"text-2xl font-semibold"},__("Send fallback test email")),React.createElement(BL,null)),React.createElement("div",{className:"px-4"},"amazonses"===p&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("If your account is still in Amazon SES sandbox mode. ")),React.createElement("p",{className:"text-sm"},__("You can only send mail from verified email addresses.")),React.createElement("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"text-ring flex items-center gap-1 text-sm underline"},__("Click to verify Email From"),React.createElement(xs,{className:"h-4 w-4"})))),React.createElement(np,{htmlFor:"email-address",className:"mt-4 text-sm font-medium"},__("Email address")),React.createElement(hp,{id:"email-address",placeholder:__("Enter email address"),value:o,onChange:e=>i(e.target.value),className:(s?"border-destructive":"")+" mt-1",type:"email"}),s&&React.createElement("div",{className:"text-destructive mt-2 text-xs"},s.errors.map(e=>e.message).join("\n")),!sm(n||{},!0)&&React.createElement("div",{className:"text-destructive mt-2 text-xs"},__("Please configure your fallback mailer settings before sending test emails.")),React.createElement(Zf,{onClick:async()=>{const e=Hj.safeParse(o);e.success?(l(null),(async e=>{var t;u(!0);const n=await function(e){return Xc.postJson("yaysmtp_fallback_send_mail",{params:{emailAddress:e}})}(e);if(n.success){m("");const e={...a,fallback:[]};r(e),Zx(n.data.mess,"bottom-right")}else{const e=(null==(t=n.data)?void 0:t.debugText)??n.data.mess;m(e);const o=e.includes("<br>")?e.split("<br>"):[e],i={...a,fallback:o};r(i),Gx(n.data.mess,"bottom-right")}u(!1)})(e.data)):l(e.error)},disabled:!sm(n||{},!0)||c,className:"mt-4 cursor-pointer"},__(c?"Sending...":"Send email")),d&&React.createElement(Nj,{debugMessage:d})))))}function Wj(){var e;const t=xo(),{settings:n}=Ms(),a=(null==(e=null==n?void 0:n.amazonses)?void 0:e.region)||"us-east-1",r=`https://${a}.console.aws.amazon.com/ses/home?region=${a}#verified-senders-email:`,o=t.watch("fallback_mailer_provider")||"mail";return React.createElement("div",{className:"mx-auto mt-6 w-full max-w-7xl px-2.5"},React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 1")),React.createElement("div",{className:"text-xl font-bold"},__("Enter email from"))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"fallback_from_email",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{htmlFor:"fallback_from_email",className:"cursor-pointer text-sm"},__("From Email")),React.createElement(up,null,React.createElement(hp,{id:"fallback_from_email",className:t.formState.errors.fallback_from_email?"border-destructive":"",placeholder:"from@example.com",...e})),React.createElement(mp,null))})),React.createElement("div",{className:"mt-6 flex w-full gap-4 md:w-1/2"},React.createElement(op,{name:"fallback_force_from_email",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"fallback_force_from_email",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))}),React.createElement("div",null,React.createElement(cp,{htmlFor:"fallback_force_from_email",className:"text-sm font-medium"},__("Force From Email")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},__("Always send emails with the above From Email address, overriding other plugins settings.")))),"amazonses"===o&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,{className:"leading-0"},React.createElement("p",{className:"text-sm"},__("If your account is still in Amazon SES sandbox mode. ")),React.createElement("p",{className:"text-sm"},__("You can only send mail from verified email addresses.")),React.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-ring flex items-center gap-1 text-sm underline"},__("Click to verify Email From"),React.createElement(xs,{className:"h-4 w-4"})))),"postmark"===o&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("You can only send mail from verified email addresses.")),React.createElement("a",{href:"https://account.postmarkapp.com/signature_domains",target:"_blank",rel:"noopener noreferrer",className:"text-ring flex items-center gap-1 text-sm underline"},__("Click to Sender Signature"),React.createElement(xs,{className:"h-4 w-4"})))),"sparkpost"===o&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("You can only send mail from verified sending domains.")))),"gmail"===o&&React.createElement(Af,{className:"mt-4 w-fit"},React.createElement(gs,null),React.createElement(Df,null,React.createElement("p",{className:"text-sm"},__("You can only send mail from Google email account.")))),React.createElement("div",{className:"mt-6 flex w-full flex-col md:w-1/2"},React.createElement(op,{name:"fallback_from_name",render:({field:e})=>React.createElement(lp,null,React.createElement(cp,{htmlFor:"fallback_from_name",className:"cursor-pointer text-sm"},__("From Name")),React.createElement(up,null,React.createElement(hp,{id:"fallback_from_name",placeholder:"From Name",...e})))})),React.createElement("div",{className:"mt-6 flex w-full gap-4 md:w-1/2"},React.createElement(op,{name:"fallback_force_from_name",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"fallback_force_from_name",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))}),React.createElement("div",null,React.createElement(cp,{htmlFor:"fallback_force_from_name",className:"text-sm font-medium"},__("Force From Name")),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},__("Always send emails with the above From Name, overriding other plugins settings."))))))),React.createElement("div",{className:"flex w-full flex-col gap-3"},React.createElement("div",{className:"mt-8 flex items-center gap-2.5"},React.createElement(Wf,{className:"text-base-foreground bg-border hover:bg-border rounded-full"},__("Step 2")),React.createElement("div",{className:"text-xl font-bold"},__("Select mailer"))),React.createElement(qf,null,React.createElement(Xf,null,React.createElement("div",{className:"flex w-full flex-col md:w-1/4"},React.createElement(op,{name:"fallback_mailer_provider",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(kx,{values:Object.entries($j).map(([e,t])=>({label:String(t),value:e,iconUrl:Zj[e]})),selectedValue:e.value,onValueChange:t=>{const n=window.scrollY;e.onChange(t),requestAnimationFrame(()=>{window.scrollTo(0,n)})},placeholder:__("Select mailer"),className:"w-full cursor-pointer"})))}))))),"gmail"===o&&React.createElement(YA,{isFallback:!0}),"zoho"===o&&React.createElement(Uj,{mailer:"Zoho"}),"outlookms"===o&&React.createElement(Uj,{mailer:"OutlookMS"}),"amazonses"===o&&React.createElement(lC,{isFallback:!0}),"mailgun"===o&&React.createElement(WD,{isFallback:!0}),"mailjet"===o&&React.createElement(UD,{isFallback:!0}),"mandrill"===o&&React.createElement($D,{isFallback:!0}),"sparkpost"===o&&React.createElement(nT,{isFallback:!0}),"smtpcom"===o&&React.createElement(eT,{isFallback:!0}),"sendgrid"===o&&React.createElement(XD,{isFallback:!0}),"sendinblue"===o&&React.createElement(QD,{isFallback:!0}),"sendpulse"===o&&React.createElement(JD,{isFallback:!0}),"smtp"===o&&React.createElement(GD,{isFallback:!0}),"mail"===o&&React.createElement(cC,null),"postmark"===o&&React.createElement(YD,{isFallback:!0}),"pepipost"===o&&React.createElement(KD,{isFallback:!0}))}const Uj=({mailer:e})=>React.createElement(React.Fragment,null,React.createElement(qf,{className:"mt-8"},React.createElement(Xf,null,React.createElement("p",{className:"text-sm font-medium"},__("Please go back to the "),React.createElement(Br,{to:"/dashboard",className:"text-primary hover:underline"},__("Dashboard")),__(` page to configure ${e}.`)),React.createElement("p",{className:"text-muted-foreground mt-2 text-sm"},__(`After successfully configuring ${e}, you will need to return to the main SMTP settings.`))))),$j=window.yaySmtpWpData.mailers,Zj={amazonses:"data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 67 40' xml:space='preserve'%3E%3Cstyle%3E.st1%7Bfill:%23f90%7D%3C/style%3E%3Cpath d='M18.9 14.5c0 .8.1 1.5.2 2 .2.5.4 1 .7 1.6.1.2.2.4.2.5 0 .2-.1.4-.4.7l-1.4.9c-.2.1-.4.2-.6.2-.2 0-.4-.1-.7-.3-.3-.3-.6-.7-.8-1-.2-.4-.4-.8-.7-1.3-1.7 2-3.9 3.1-6.5 3.1-1.9 0-3.4-.5-4.5-1.6S2.8 16.8 2.8 15c0-1.9.7-3.4 2-4.6S8 8.6 10.3 8.6c.8 0 1.5.1 2.4.2.8.1 1.7.3 2.6.5V7.6c0-1.7-.4-2.9-1-3.6-.7-.7-1.9-1-3.6-1-.8 0-1.6.1-2.4.3-1 .3-1.8.5-2.6.8-.4.2-.6.3-.8.3s-.3.1-.3.1c-.3 0-.5-.2-.5-.7V2.7c0-.4 0-.6.2-.8.1-.2.3-.3.6-.5.8-.4 1.7-.7 2.8-1C8.8.1 9.9 0 11.1 0c2.6 0 4.6.6 5.8 1.8 1.2 1.2 1.8 3 1.8 5.5l.2 7.2zm-9.1 3.4c.7 0 1.5-.1 2.3-.4.8-.3 1.5-.8 2.1-1.4.4-.4.6-.9.8-1.4.1-.5.2-1.2.2-1.9v-.9c-.6-.2-1.3-.3-2-.4s-1.4-.1-2.1-.1c-1.5 0-2.6.3-3.3.9-.7.6-1.1 1.4-1.1 2.6 0 1 .3 1.8.8 2.4.5.3 1.3.6 2.3.6zm17.9 2.4c-.4 0-.7-.1-.8-.2-.2-.1-.3-.4-.5-.9L21.2 2c-.2-.5-.2-.7-.2-.9 0-.4.2-.6.5-.6h2.2c.4 0 .7.1.9.2.2.1.3.4.4.9l3.7 14.7 3.5-14.7c.1-.4.2-.7.4-.9.2-.1.5-.2.9-.2h1.8c.4 0 .7.1.9.2.2.1.3.4.4.9l3.5 14.9L44 1.6c.1-.4.3-.7.4-.9.2-.1.5-.2.9-.2h2.1c.4 0 .6.2.6.6v.4c0 .1-.1.3-.2.6l-5.4 17.2c-.1.4-.3.7-.5.9-.2.1-.5.2-.8.2h-1.9c-.4 0-.7-.1-.9-.2-.2-.2-.3-.4-.4-.9L34.4 4.8 31 19.1c-.1.4-.2.7-.4.9-.2.2-.5.2-.9.2h-2zm28.6.6c-1.2 0-2.3-.1-3.4-.4-1.1-.3-2-.6-2.6-.9-.4-.2-.6-.4-.7-.6-.1-.2-.1-.4-.1-.6v-1.1c0-.5.2-.7.5-.7.1 0 .3 0 .4.1s.3.1.6.2c.8.3 1.6.6 2.4.8.9.2 1.8.3 2.6.3 1.4 0 2.5-.2 3.3-.7.8-.5 1.2-1.2 1.2-2.1 0-.6-.2-1.1-.6-1.6-.4-.4-1.2-.8-2.2-1.2l-3.2-1c-1.6-.5-2.8-1.3-3.6-2.3-.7-1-1.1-2.1-1.1-3.2 0-.9.2-1.8.6-2.5.4-.7.9-1.3 1.6-1.8.7-.5 1.4-.9 2.3-1.2s1.8-.4 2.8-.4c.5 0 1 0 1.5.1s1 .2 1.4.2c.4.1.9.2 1.3.4.4.1.7.3.9.4.3.2.5.4.7.6.1.1.2.3.2.6v1c0 .5-.2.7-.5.7-.2 0-.5-.1-.8-.3-1.4-.4-2.8-.7-4.4-.7-1.3 0-2.3.2-3 .6-.7.4-1 1.1-1 2 0 .6.2 1.2.7 1.6.4.4 1.3.8 2.4 1.2l3.2 1c1.6.5 2.8 1.2 3.5 2.1.7.9 1 2 1 3.1 0 1-.2 1.8-.6 2.6-.4.8-.9 1.4-1.6 2-.7.6-1.5 1-2.5 1.2-1 .3-2 .5-3.2.5z' fill='%23252f3e'/%3E%3Cpath class='st1' d='M60.5 31.7c-7.3 5.4-18 8.3-27.1 8.3C20.6 40 9 35.3.3 27.4c-.7-.6-.1-1.5.8-1 9.4 5.5 21.1 8.8 33.1 8.8 8.1 0 17.1-1.7 25.3-5.2 1.2-.5 2.2.8 1 1.7z'/%3E%3Cpath class='st1' d='M63.6 28.2c-1-1.2-6.2-.5-8.6-.2-.7.1-.8-.5-.2-1 4.2-2.9 11.1-2.1 11.9-1.1.8 1-.2 7.9-4.1 11.2-.6.5-1.2.2-.9-.4.8-2.3 2.8-7.3 1.9-8.5z'/%3E%3C/svg%3E",gmail:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52.4 40'%3E%3Cpath d='M.3 4.3C.2 4.9 0 5.5 0 6.2v29.2C0 38 2.1 40 4.6 40h7.8V18.8l-9.8-7.7C.5 9.5 0 6.4.3 4.3z' fill='%234285f4'/%3E%3Cpath d='M.3 4.3z' fill='%234067b6'/%3E%3Cpath d='M50.8 2.4C48.6-.3 44.3 0 42.4 1.3L26.2 13.9 10 1.3C7.3-.8 3.6.1 1.4 2.7c-.4.6-.7.9-.9 1.5.9-2.3 3-4.2 5.7-4.2 3.4 0 6.2 2.8 6.2 6.2v12.6l13.9 10.8L40 18.8V6.2C40 2.8 42.8.3 46.2.3' fill='%23ea4335'/%3E%3Cpath d='M.3 4.2c-.8 2.3 0 5.1 2 6.7l10.1 7.9V6.2C12.4 2.8 9.6 0 6.2 0 3.5 0 1.3 1.7.4 4l-.1.2z' fill='%23c5221f'/%3E%3Cpath d='M50 11l-10 7.8V40h7.8c2.5 0 4.6-2 4.6-4.6V6.7c-.2 1.6-1 3.2-2.4 4.3z' fill='%2334a853'/%3E%3Cpath d='M52.4 6.7v-.4c0-3.5-2.8-6.2-6.2-6.2C42.8 0 40 2.8 40 6.2v12.6L50 11c1.4-1.1 2.2-2.7 2.4-4.3z' fill='%23fbbc04'/%3E%3C/svg%3E",mail:"data:image/svg+xml,%3Csvg height='383.598' width='711.201' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CclipPath clipPathUnits='userSpaceOnUse' id='a'%3E%3Cpath d='M11.52 162C11.52 81.677 135.307 16.561 288 16.561S564.481 81.677 564.481 162c0 80.322-123.788 145.439-276.481 145.439-152.693 0-276.48-65.117-276.48-145.439'/%3E%3C/clipPath%3E%3CclipPath clipPathUnits='userSpaceOnUse' id='c'%3E%3Cpath d='M0 324h576V0H0v324z'/%3E%3C/clipPath%3E%3CclipPath clipPathUnits='userSpaceOnUse' id='d'%3E%3Cpath d='M0 324h576V0H0v324z'/%3E%3C/clipPath%3E%3CradialGradient cx='0' cy='0' fx='0' fy='0' gradientTransform='matrix(363.05789 0 0 -363.05789 177.52 256.307)' gradientUnits='userSpaceOnUse' id='b' r='1' spreadMethod='pad'%3E%3Cstop offset='0' stop-color='%23aeb2d5'/%3E%3Cstop offset='.3' stop-color='%23aeb2d5'/%3E%3Cstop offset='.75' stop-color='%23484c89'/%3E%3Cstop offset='1' stop-color='%23484c89'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg clip-path='url(%23a)' transform='matrix(1.25 0 0 -1.25 -4.4 394.299)'%3E%3Cpath d='M11.52 162C11.52 81.677 135.307 16.561 288 16.561S564.481 81.677 564.481 162c0 80.322-123.788 145.439-276.481 145.439-152.693 0-276.48-65.117-276.48-145.439' fill='url(%23b)'/%3E%3C/g%3E%3Cg clip-path='url(%23c)' transform='matrix(1.25 0 0 -1.25 -4.4 394.299)'%3E%3Cpath d='M288 27.36c146.729 0 265.68 60.28 265.68 134.64 0 74.36-118.951 134.641-265.68 134.641S22.32 236.36 22.32 162.001C22.32 87.64 141.271 27.358 288 27.358' fill='%23777bb3'/%3E%3C/g%3E%3Cg clip-path='url(%23d)' transform='matrix(1.25 0 0 -1.25 -4.4 394.299)'%3E%3Cpath d='M161.734 145.307c12.065 0 21.072 2.225 26.771 6.61 5.638 4.342 9.532 11.863 11.573 22.354 1.903 9.806 1.178 16.653-2.154 20.348-3.407 3.774-10.773 5.688-21.893 5.688h-19.28l-10.69-55h15.673zm-63.063-67.75a2.998 2.998 0 00-2.944 3.572l28.328 145.75a3 3 0 002.945 2.428h61.054c19.188 0 33.47-5.21 42.447-15.487 9.025-10.331 11.812-24.772 8.283-42.921-1.436-7.394-3.906-14.261-7.34-20.41-3.44-6.154-7.985-11.85-13.512-16.93-6.616-6.191-14.104-10.681-22.236-13.323-8.003-2.607-18.28-3.93-30.548-3.93h-24.722l-7.06-36.321a3 3 0 00-2.944-2.428h-31.75z'/%3E%3Cpath d='M159.224 197.307h16.808c13.42 0 18.083-2.945 19.667-4.7 2.628-2.914 3.124-9.058 1.435-17.767-1.898-9.75-5.416-16.663-10.458-20.545-5.162-3.974-13.554-5.988-24.941-5.988H149.7l9.523 49zm28.83 35H127a6 6 0 01-5.89-4.855L92.784 81.702a6 6 0 015.889-7.144h31.75a6 6 0 015.89 4.854l6.588 33.895h22.249c12.582 0 23.174 1.372 31.479 4.077 8.54 2.775 16.399 7.48 23.354 13.984 5.752 5.292 10.49 11.232 14.08 17.657 3.59 6.427 6.17 13.594 7.668 21.302 3.715 19.104.697 34.402-8.97 45.466-9.571 10.958-24.613 16.514-44.705 16.514m-45.633-90h19.313c12.8 0 22.336 2.411 28.6 7.234 6.267 4.824 10.493 12.875 12.689 24.157 2.1 10.832 1.144 18.476-2.871 22.93-4.02 4.452-12.06 6.68-24.121 6.68h-21.754l-11.856-61m45.633 84c18.367 0 31.766-4.82 40.188-14.462 8.42-9.64 10.957-23.098 7.597-40.375-1.383-7.117-3.722-13.624-7.015-19.519-3.297-5.899-7.602-11.293-12.922-16.184-6.34-5.933-13.383-10.16-21.133-12.679-7.75-2.525-17.621-3.782-29.621-3.782h-27.196l-7.531-38.75h-31.75L127 226.307h61.055' fill='%23fff'/%3E%3Cpath d='M311.583 116.307c-.896 0-1.745.4-2.314 1.092a2.994 2.994 0 00-.631 2.48l12.531 64.489c1.192 6.133.898 10.535-.827 12.395-1.056 1.137-4.228 3.044-13.607 3.044h-22.702l-15.755-81.072a3 3 0 00-2.945-2.428h-31.5a2.998 2.998 0 00-2.945 3.572l28.328 145.75a3 3 0 002.945 2.428h31.5a3 3 0 002.945-3.572l-6.836-35.178h24.422c18.605 0 31.221-3.28 38.569-10.028 7.49-6.884 9.827-17.891 6.947-32.72l-13.18-67.824a3 3 0 00-2.945-2.428h-32z'/%3E%3Cpath d='M293.661 271.057h-31.5a6 6 0 01-5.89-4.855l-28.328-145.75a5.998 5.998 0 015.89-7.145h31.5a6 6 0 015.89 4.855l15.283 78.645h20.23c9.362 0 11.327-2 11.406-2.086.568-.61 1.315-3.44.082-9.78l-12.53-64.49a5.998 5.998 0 015.89-7.144h32a6 6 0 015.89 4.855l13.178 67.825c3.093 15.921.447 27.864-7.86 35.5-7.929 7.281-21.209 10.82-40.6 10.82h-20.784l6.143 31.605a6.001 6.001 0 01-5.89 7.145m0-6l-7.53-38.75h28.061c17.657 0 29.836-3.082 36.54-9.238 6.702-6.16 8.71-16.14 6.031-29.938l-13.18-67.824h-32l12.531 64.488c1.426 7.336.902 12.34-1.574 15.008-2.477 2.668-7.746 4.004-15.805 4.004H281.56l-16.226-83.5h-31.5l28.328 145.75h31.5' fill='%23fff'/%3E%3Cpath d='M409.55 145.307c12.065 0 21.072 2.225 26.77 6.61 5.639 4.34 9.533 11.862 11.575 22.354 1.903 9.806 1.178 16.653-2.155 20.348-3.407 3.774-10.773 5.688-21.893 5.688h-19.281l-10.69-55h15.674zm-63.062-67.75a2.999 2.999 0 00-2.945 3.572l28.328 145.75a3.002 3.002 0 002.946 2.428h61.053c19.189 0 33.47-5.21 42.448-15.487 9.025-10.33 11.81-24.771 8.283-42.921-1.438-7.394-3.907-14.261-7.342-20.41-3.44-6.154-7.984-11.85-13.511-16.93-6.616-6.191-14.104-10.681-22.236-13.323-8.003-2.607-18.281-3.93-30.548-3.93H388.24l-7.057-36.321a3.001 3.001 0 00-2.946-2.428h-31.75z'/%3E%3Cpath d='M407.04 197.307h16.807c13.421 0 18.083-2.945 19.667-4.7 2.63-2.914 3.125-9.058 1.435-17.766-1.898-9.75-5.417-16.664-10.458-20.546-5.162-3.974-13.554-5.988-24.94-5.988h-12.034l9.522 49zm28.83 35h-61.054a6 6 0 01-5.889-4.855L340.6 81.702a6 6 0 015.889-7.144h31.75a6 6 0 015.89 4.854l6.587 33.895h22.25c12.581 0 23.173 1.372 31.478 4.077 8.541 2.775 16.401 7.481 23.356 13.986 5.752 5.291 10.488 11.23 14.078 17.655 3.591 6.427 6.171 13.594 7.668 21.302 3.715 19.105.697 34.403-8.969 45.467-9.572 10.957-24.613 16.513-44.706 16.513m-45.632-90h19.312c12.801 0 22.336 2.411 28.601 7.234 6.267 4.824 10.492 12.875 12.688 24.157 2.102 10.832 1.145 18.476-2.87 22.93-4.02 4.452-12.06 6.68-24.122 6.68h-21.754l-11.855-61m45.632 84c18.367 0 31.766-4.82 40.188-14.462 8.422-9.64 10.957-23.098 7.597-40.375-1.383-7.117-3.722-13.624-7.015-19.519-3.297-5.899-7.602-11.293-12.922-16.184-6.34-5.933-13.383-10.16-21.133-12.679-7.75-2.525-17.62-3.782-29.62-3.782h-27.197l-7.53-38.75h-31.75l28.328 145.75h61.054' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E",mailgun:"data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 115 32' xml:space='preserve'%3E%3Cstyle%3E.st1%7Bfill:%23555%7D%3C/style%3E%3Cpath d='M12.6 10.9c-2.6 0-4.8 2.1-4.8 4.8 0 2.6 2.1 4.8 4.7 4.8h.1c2.6 0 4.8-2.1 4.8-4.8 0-2.6-2.2-4.8-4.8-4.8zm-7.5 4.8c0-4.1 3.3-7.4 7.4-7.4 4.1 0 7.4 3.3 7.4 7.4 0 .2 0 .6-.1.8-.1.7.5 1.3 1.2 1.3 1.2 0 1.4-1.5 1.4-2.1 0-5.4-4.5-9.9-9.9-9.9s-9.9 4.5-9.9 9.9c0 5.5 4.5 9.9 9.9 9.9 2.9 0 5.5-1.2 7.3-3.3l2 1.7c-2.2 2.6-5.6 4.2-9.3 4.2C5.7 28.3 0 22.7 0 15.7v-.1C0 8.8 5.6 3.1 12.6 3.1c6.9 0 12.5 5.7 12.5 12.6 0 2.8-1.3 5-4 5-1.1 0-1.9-.6-2.3-1.1a7.48 7.48 0 01-6.3 3.5c-4.1 0-7.4-3.3-7.4-7.4zm7.5-2.2c1.2 0 2.2 1 2.2 2.2s-1 2.2-2.2 2.2c-1.2 0-2.2-1-2.2-2.2 0-1.3 1-2.2 2.2-2.2z' fill='%23c02428'/%3E%3Cpath class='st1' d='M28.3 11v13.5h3.1v-6.9c0-2.9.7-4.1 2.5-4.1 1.4 0 2 1.1 2 3.6v7.5H39v-6.9c0-2.9.7-4.1 2.5-4.1 1.5 0 2 1 2 3.6v7.5h3.1v-8.5c0-3.7-1.5-5.5-4.5-5.5-1.6 0-3 .7-4 2-.8-1.3-2.1-2-3.6-2-1.3 0-2 .3-3.2 1.6V11h-3zm29.9 0v1.5c-1.4-1.4-2.5-2-4.2-2-3.6 0-6.3 3-6.3 7 0 4.2 2.7 7.2 6.4 7.2 1.6 0 2.7-.5 4.1-1.8v1.4h3.1V11h-3.1zm-3.6 2.4c2.3 0 3.8 1.8 3.8 4.3 0 2.6-1.5 4.4-3.8 4.4-2.2 0-3.7-1.8-3.7-4.4 0-2.4 1.6-4.3 3.7-4.3zM66.9 11h-3.1v13.5h3.1V11zm-1.5-7.5c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM69.7 0h3.1v24.4h-3.1V0zM88.1 11H85v1.5c-1.1-1.2-2.6-1.9-4.2-1.9-3.6 0-6.3 3-6.3 7.2 0 4.1 2.7 7 6.2 7 1.7 0 3-.6 4.2-2v1.9c0 2.9-1.1 4.2-3.4 4.2-1.2 0-2.4-.6-3-1.5-.3-.6-.4-1.1-.5-2.2h-3c0 4.1 2.5 6.6 6.5 6.6 2.3 0 4.3-.9 5.4-2.6.9-1.3 1.1-2.4 1.1-5.1l.1-13.1zm-6.7 2.4c2.3 0 3.7 1.8 3.7 4.3 0 2.6-1.5 4.4-3.7 4.4-2.3 0-3.7-1.7-3.7-4.3s1.4-4.4 3.7-4.4zM93.1 11H90v7.8c0 2.1.4 3.3 1.4 4.4 1.1 1.1 2.6 1.7 4.3 1.7 1.8 0 3.2-.6 4.4-1.7 1.1-1.1 1.4-2.3 1.4-4.4V11h-3.1v7.7c0 2.3-.8 3.3-2.7 3.3-1.8 0-2.6-1.1-2.6-3.3V11zm10.4 0v13.5h3.1V18c0-3.3.7-4.6 2.8-4.6 1.9 0 2.5.9 2.5 3.5v7.6h3.1v-8.3c0-3.7-1.5-5.6-4.9-5.6-1.5 0-2.4.4-3.6 1.6V11h-3z'/%3E%3C/svg%3E",mailjet:"data:image/svg+xml,%3Csvg id='mailjet' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 72.4'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fead0d%7D.cls-2%7Bfill:%23282828%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M38.32 47.19l-5.19-11.61-.09.09 5.27 11.53.01-.01z'/%3E%3Cpath class='cls-1' d='M0 24.26L22.92 34.7l4.52-4.63-11.54-5.28h.02l-.25-.12 36.68-14.09.29-.11-.11.29-14.1 36.68-.11-.25-.01.01-5.27-11.53-4.64 4.51 10.45 22.93L63.11 0 0 24.26z'/%3E%3Cpath class='cls-2' d='M112.35 108.62a12.94 12.94 0 0111.38 13l.13 18.17h-6.32V122a7.15 7.15 0 00-7.15-7.14 7.14 7.14 0 00-7.14 7.14v17.79h-6.32v-17.64a7.25 7.25 0 00-7.25-7.25h-.06a7.09 7.09 0 00-7.09 7.1v17.85h-6.37V109h6.37v3.29s1.9-3.61 8-3.61 9.51 5.85 9.51 5.85a12.44 12.44 0 0112.31-5.91zm-12.89 10.77M129.73 116.07a14.29 14.29 0 015.37-5.56 14.61 14.61 0 017.5-2 14 14 0 016.48 1.43 13.15 13.15 0 014.42 3.55V109h6.56v30.8h-6.56v-4.58a13 13 0 01-4.51 3.63 14.11 14.11 0 01-6.5 1.46 14 14 0 01-7.42-2.05 14.61 14.61 0 01-5.34-5.7 17.27 17.27 0 01-2-8.3 16.82 16.82 0 012-8.19zm22.43 2.8a9.26 9.26 0 00-8.19-4.81 9.53 9.53 0 00-4.68 1.2 9.27 9.27 0 00-3.51 3.52 10.89 10.89 0 00-1.34 5.51 11.33 11.33 0 001.34 5.59 9.38 9.38 0 003.54 3.66 9.18 9.18 0 004.68 1.26 9.21 9.21 0 008.19-4.84 11.13 11.13 0 001.34-5.56 11 11 0 00-1.37-5.53zM168.29 104a3.39 3.39 0 010-4.71 3.19 3.19 0 012.36-1 3.1 3.1 0 012.3 1 3.31 3.31 0 01-2.3 5.66 3.23 3.23 0 01-2.36-.95z' transform='translate(0 -91.8)'/%3E%3Cpath class='cls-2' d='M167.41 17.23h6.37v30.8h-6.37z'/%3E%3Cpath class='cls-2' d='M187.52 93.81v46h-6.38v-46zM188.4 155h-.4v-5.85a6.89 6.89 0 006.9-6.89V109h6.37v33a12.91 12.91 0 01-12.87 13zM195.78 104a3.36 3.36 0 012.39-5.75 3.3 3.3 0 013.31 3.36 3.27 3.27 0 01-1 2.39 3.22 3.22 0 01-2.35 1 3.27 3.27 0 01-2.35-1zM235.34 131.27a13.75 13.75 0 01-4.85 6.35 14.83 14.83 0 01-9.08 2.72 15.78 15.78 0 01-7.91-2 14.1 14.1 0 01-5.48-5.59 17.08 17.08 0 01-2-8.36A17.54 17.54 0 01208 116a13.65 13.65 0 015.43-5.56 16.18 16.18 0 018-2 15.64 15.64 0 017.77 1.91 13.41 13.41 0 015.31 5.33 16.08 16.08 0 011.9 7.92 20 20 0 01-.22 3.13h-23.56a8.55 8.55 0 002.74 5.92 8.65 8.65 0 006 2.24 7.44 7.44 0 007-3.72zm-5.6-9.61a7.24 7.24 0 00-2.52-5.64 9 9 0 00-6.09-2.13 8.19 8.19 0 00-5.65 2.1 8.8 8.8 0 00-2.79 5.67zM243.51 139.71v-24.49h-4.31V109h4.31v-9.46h5.76V109H256v6.19h-6.73v24.49zM79.05 152.52a3.69 3.69 0 011.67-.38 3.67 3.67 0 013.33 2 4.71 4.71 0 01.5 2.19 4.78 4.78 0 01-.5 2.2 3.83 3.83 0 01-1.39 1.47 3.61 3.61 0 01-1.94.54 3.77 3.77 0 01-1.72-.34 3.25 3.25 0 01-1.16-.95v1.18h-1.65v-11.76h1.69v4.82a3.14 3.14 0 011.17-.97zm3.44 2.34a2.35 2.35 0 00-.92-.93 2.39 2.39 0 00-1.22-.32 2.4 2.4 0 00-2.13 1.27 3.35 3.35 0 000 2.94 2.43 2.43 0 00.92 1 2.46 2.46 0 001.21.32 2.4 2.4 0 001.22-.33 2.46 2.46 0 00.92-1 3.08 3.08 0 00.34-1.48 3 3 0 00-.34-1.47zM92.65 152.39l-4.92 11.81H86l1.63-3.91-3.16-7.9h1.85l2.26 6.12 2.35-6.12zM105 154.41a3.42 3.42 0 01-1.42 1.34 5 5 0 01-2.37.51h-1.73v4.15h-2.82v-11.56h4.56a5.19 5.19 0 012.34.48 3.34 3.34 0 011.43 1.32 4 4 0 010 3.76zm-2.8-.77a1.66 1.66 0 000-2.14 1.71 1.71 0 00-1.2-.38h-1.52V154H101a1.71 1.71 0 001.21-.36zM113.42 158.37h-3.87l-.69 2h-3l4.18-11.56h2.82l4.18 11.56h-3zm-.72-2.18l-1.21-4.19-1.2 4.23zM126.3 148.85v2.63h-3.07v8.93h-2.81v-8.93h-3.06v-2.63zM138.56 148.85v11.56h-2.81v-4.76h-4v4.76h-2.81v-11.56h2.81v4.53h4v-4.53zM155.78 148.85L153 160.41h-2.9l-1.35-7.61-1.9 7.61h-2.72l-2.72-11.56h2.57l1.6 6.84 1.66-6.84H150l1.45 6.84 1.6-6.84zM161.49 148.85v11.56h-2.82v-11.56zM170.57 160.41l-2.41-4.41h-.52v4.37h-3v-11.52h4.73a5.21 5.21 0 012.33.48 3.29 3.29 0 011.44 1.31 3.71 3.71 0 01.47 1.85 3.41 3.41 0 01-.65 2.06 3.49 3.49 0 01-1.91 1.28l2.66 4.58zm-2.93-6.36h1.59a1.59 1.59 0 001.16-.37 1.44 1.44 0 00.39-1.07 1.38 1.38 0 00-.39-1 1.59 1.59 0 00-1.16-.38h-1.59zM179.22 151.47v2h3.66v2.18h-3.66v2.17H184v2.62h-7.6v-11.59h7.6v2.62z' transform='translate(0 -91.8)'/%3E%3C/svg%3E",outlookms:"data:image/svg+xml,%3Csvg id='outlook' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 255.98'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230364b8%7D.cls-3%7Bfill:%2328a8ea%7D.cls-4%7Bfill:%230078d4%7D.cls-6%7Bfill:none%7D.cls-11%7Bfill-opacity:.1%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M228.75 16H91.22A11.28 11.28 0 0080 27.24V40l77.52 24L240 40V27.24A11.28 11.28 0 00228.75 16z' transform='translate(0 -.01)'/%3E%3Cpath d='M253.18 139.24A90.49 90.49 0 00256 128a5.37 5.37 0 00-2.66-4.62h-.11l-86.7-49.39a12 12 0 00-13 0L66.8 123.31h-.1A5.35 5.35 0 0064 128a92.3 92.3 0 002.8 11.24l91.93 67.23z' transform='translate(0 -.01)' fill='%230a2767'/%3E%3Cpath class='cls-3' d='M192 40h-56l-16.18 24L136 88l56 48h48V88z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-4' d='M80 40h56v48H80z' transform='translate(0 -.01)'/%3E%3Cpath d='M192 40h48v48h-48z' transform='translate(0 -.01)' fill='%2350d9ff'/%3E%3Cpath class='cls-1' d='M192 136l-56-48H80v48l56 48 86.65 14.14z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-6' d='M80.24 40H240' transform='translate(0 -.01)'/%3E%3Cpath class='cls-4' d='M136 88h56v48h-56z' transform='translate(0 -.01)'/%3E%3Cpath d='M80 136h56v48H80z' transform='translate(0 -.01)' fill='%23064a8c'/%3E%3Cpath class='cls-4' d='M192 136h48v48h-48z' transform='translate(0 -.01)'/%3E%3Cpath d='M161.52 201.74l-94.35-68.8 4-7 87.27 49.7a4.25 4.25 0 003.37-.1l87.44-49.84 4 6.95z' transform='translate(0 -.01)' fill-opacity='.5' fill='%230a2767'/%3E%3Cpath d='M253.32 132.62l-.11.06-86.7 49.39a12 12 0 01-11.68.72L185 223.3l66 14.37a12 12 0 005-9.72V128a5.34 5.34 0 01-2.67 4.62z' transform='translate(0 -.01)' fill='%231490df'/%3E%3Cpath d='M256 228v-5.9l-79.86-45.5-9.64 5.49a12 12 0 01-11.68.72L185 223.29l66 14.37a12 12 0 005-9.71z' transform='translate(0 -.01)' fill-opacity='.05'/%3E%3Cpath class='cls-11' d='M255.58 231.06L168 181.19l-1.56.89a12 12 0 01-11.68.72L185 223.29l66 14.37a12.06 12.06 0 004.56-6.65z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-3' d='M66.79 132.72v-.08h-.08l-.24-.16A5.23 5.23 0 0164 128v100a12 12 0 0012 12h168a11.8 11.8 0 003-.4 4.89 4.89 0 001.44-.48 1.05 1.05 0 00.48-.16 8.15 8.15 0 001.84-1l.32-.24z' transform='translate(0 -.01)'/%3E%3Cpath class='cls-11' d='M144 197.33V66.68A10.75 10.75 0 00133.32 56H80.24v59.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v80h69.33A10.74 10.74 0 00144 197.33z' transform='translate(0 -.01)'/%3E%3Cpath d='M136 205.33V74.68A10.75 10.75 0 00125.33 64H80.24v51.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v88h61.34A10.74 10.74 0 00136 205.33zm0-16V74.68A10.75 10.75 0 00125.33 64H80.24v51.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v72h61.34A10.75 10.75 0 00136 189.33zm-8 0V74.68A10.75 10.75 0 00117.33 64H80.24v51.65l-13.45 7.66h-.1A5.34 5.34 0 0064 128v72h53.34A10.75 10.75 0 00128 189.33z' transform='translate(0 -.01)' fill-opacity='.2'/%3E%3Cpath class='cls-4' d='M10.66 64h106.66A10.71 10.71 0 01128 74.67v106.66A10.71 10.71 0 01117.32 192H10.66A10.71 10.71 0 010 181.33V74.67A10.71 10.71 0 0110.66 64z' transform='translate(0 -.01)'/%3E%3Cpath d='M30.93 107.75a33.42 33.42 0 0113.14-14.51A39.65 39.65 0 0165 88a36.93 36.93 0 0119.31 5A33.16 33.16 0 0197 106.83a44.81 44.81 0 014.48 20.39 47.11 47.11 0 01-4.62 21.33 33.78 33.78 0 01-13.12 14.35 38.39 38.39 0 01-20 5.1A37.85 37.85 0 0144 163a33.69 33.69 0 01-13-13.9 43.72 43.72 0 01-4.53-20.16 48.55 48.55 0 014.45-21.19zm14 34.06a21.74 21.74 0 007.39 9.55 19.36 19.36 0 0011.55 3.48 20.27 20.27 0 0012.32-3.59 20.79 20.79 0 007.18-9.57 36.93 36.93 0 002.29-13.33 40.65 40.65 0 00-2.15-13.48 21.39 21.39 0 00-6.93-9.93 19.09 19.09 0 00-12.22-3.78 19.9 19.9 0 00-11.81 3.51A22 22 0 0045 114.3a38.22 38.22 0 00-.05 27.51z' transform='translate(0 -.01)' fill='%23fff'/%3E%3Cpath class='cls-6' d='M0 0h256v256H0z' transform='translate(0 -.01)'/%3E%3C/svg%3E",pepipost:"data:image/svg+xml,%3Csvg id='pepipost' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 63.44'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%239d1b40%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M8.92 132.11c4.23-.05 9.91.37 14.13-.28 5.35-.84 9.65-3.29 12-8.38a19.82 19.82 0 001.38-9.76 14.29 14.29 0 00-10.11-13.15 24.46 24.46 0 00-7.73-1.18H-.03v49.05h8.95zm8.86-24.63a24.49 24.49 0 013.64.31c4 .66 5.84 2.82 6.18 6.91a13.24 13.24 0 01-.13 3.39c-.64 3.52-2.62 5.37-6.24 5.87-3.87.53-8.43.15-12.31.28v-16.76zM85.64 148.39l1.08.28a25.25 25.25 0 006.38.44c7.44-.35 12.72-4.31 14.6-11.3a28.14 28.14 0 00-.7-17 14 14 0 00-9.43-8.9 21.57 21.57 0 00-9.57-.41 12.38 12.38 0 00-11.21 13.26c.26 5.62 0 11.27 0 16.9v20.33h8.88zm0-7.93v-8.65-8.52c0-2.41.86-3.49 3.2-4.1a11.77 11.77 0 015.44-.17 5.78 5.78 0 014.53 4.42 26.25 26.25 0 01.44 12.33c-.86 4.32-3.51 6.18-8.11 6.4a37.27 37.27 0 01-5.53-.36zM140.06 148.39l1.07.28a25.31 25.31 0 006.38.44c7.45-.35 12.73-4.31 14.6-11.3a28 28 0 00-.7-17 14 14 0 00-9.43-8.9 21.56 21.56 0 00-9.59-.41 12.39 12.39 0 00-11.21 13.26c.26 5.62.06 11.27.06 16.9v20.33h8.88zm0-7.93c.05-2.88 0-5.77 0-8.65v-8.52c0-2.41.86-3.49 3.21-4.1a11.77 11.77 0 015.44-.17 5.79 5.79 0 014.53 4.42 26.38 26.38 0 01.44 12.33c-.86 4.32-3.51 6.18-8.11 6.4a37.27 37.27 0 01-5.53-.36zM72.11 133.4a41.5 41.5 0 00-.22-7.94c-.77-4.94-2.73-9.21-7-12.06-3.28-2.18-7-2.49-10.82-2.29a14.86 14.86 0 00-13.27 10 29.43 29.43 0 00-.8 15.49c1 5.23 3.85 9.1 8.92 11.12a20.74 20.74 0 008.37 1.16 27.92 27.92 0 0011.87-2.83l.88-.42v-7.21c-.62.24-.86.4-1.34.6a25 25 0 01-8.23 2.2c-7.86.45-10.61-1.34-11.7-5a12.34 12.34 0 01-.44-2.57v-.26zm-23.84-6a14.12 14.12 0 01.28-2.25c.13-.63.26-1.26.44-1.88a6.16 6.16 0 015.51-4.82 6.77 6.77 0 016.71 3.3 14.21 14.21 0 011.6 4.64l.16 1zM189.35 111.71a23 23 0 00-8.47-.32c-6.24.9-10.68 4.13-12.71 10.21a26.94 26.94 0 00-.22 16.26 14.18 14.18 0 009.72 10.14 19 19 0 006.46.9h1.44c7.75-.17 13.34-4.49 15.21-12a27.38 27.38 0 00-.36-15 14.31 14.31 0 00-11.07-10.19zm2.75 24.41a6.57 6.57 0 01-5.74 5.33 12.48 12.48 0 01-4.18 0c-3-.5-5-2.07-5.72-5.11a28.54 28.54 0 01-.58-6.3 25.22 25.22 0 01.67-6.57 6.28 6.28 0 015.32-4.77 11.7 11.7 0 013.78-.17c4.41.57 6.48 2.95 6.89 7.95.09 1.17.11 2.35.14 3a29.83 29.83 0 01-.58 6.64zM227.14 120.56a19.37 19.37 0 00-11.41-1.56 7 7 0 00-1.27.32c-1.12.41-2 1-2.08 2.39a2.63 2.63 0 001.77 2.51c2.28 1.15 4.79 1.6 7.18 2.4 3 1 5.7 2.56 7.12 5.55 3.43 7.22.65 14.65-8.44 16.42a22.57 22.57 0 01-14.51-2.09c-.44-.22-1-.58-1-.58v-7.8a24.5 24.5 0 005.58 2.54 18.37 18.37 0 008 .41 3 3 0 002.76-2.4 3 3 0 00-1.78-3.43c-2.46-1.37-5.25-1.86-7.85-2.84a17 17 0 01-4-1.93c-5.43-3.83-4.59-12.83-.17-16.17 3.65-2.76 7.75-3.44 12.13-3a21.21 21.21 0 017.92 2.36zM238.44 119.24c0 5.81-.07 13 .05 18.77a10.39 10.39 0 004.07 8.57c4 3 8.37 2.8 12.87 1.48a4.54 4.54 0 00.57-.24v-.65-6.58a26 26 0 01-2.61.59 14.87 14.87 0 01-2.75.07c-2.31-.17-3.27-1.14-3.28-3.39v-18.69H256v-7.48h-8.57v-10.87h-9v10.87h-6.17v7.58z' transform='translate(0 -98.57)'/%3E%3Cpath class='cls-1' d='M115.21 13.1h8.81v36.69h-8.81zM115.21 0h8.81v8.17h-8.81z'/%3E%3C/svg%3E",postmark:"data:image/svg+xml,%3Csvg version='1.1' id='postmark_1_' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 256 256' xml:space='preserve'%3E%3Cstyle%3E.st2%7Bfill:%23fff%7D%3C/style%3E%3Cg id='postmark'%3E%3Cpath d='M253 231.6v11.7c-5.4 0-9.8 4.4-9.8 9.8h-11.7c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.7h-11.7c.2-5.4-4.1-9.9-9.5-10.1-5.4-.2-9.9 4.1-10.1 9.5v.6H169c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8h-11.7c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8h-11.7c-.3-5.4-4.9-9.5-10.3-9.2-5 .3-8.9 4.2-9.2 9.2H75.3c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8H44c0-5.4-4.4-9.8-9.8-9.8s-9.8 4.4-9.8 9.8H12.7c0-5.4-4.4-9.7-9.7-9.7v-11.7c5.4 0 9.8-4.4 9.8-9.8S8.4 212 3 212v-11.7c5.4 0 9.8-4.4 9.8-9.8s-4.4-9.8-9.8-9.8V169c5.4 0 9.8-4.4 9.8-9.8s-4.4-9.8-9.8-9.8v-11.7c5.4 0 9.8-4.4 9.8-9.8s-4.4-9.8-9.8-9.8v-11.7c5.4-.3 9.5-4.9 9.2-10.3C11.9 91.2 8 87.3 3 87V75.3c5.4 0 9.8-4.4 9.8-9.8S8.4 55.7 3 55.7V44c5.4 0 9.8-4.4 9.8-9.8S8.4 24.4 3 24.4V12.7c5.4 0 9.7-4.4 9.7-9.7h11.7c0 5.4 4.4 9.8 9.8 9.8S44 8.4 44 3h11.7c0 5.4 4.4 9.8 9.8 9.8s9.8-4.4 9.8-9.8H87c0 5.4 4.4 9.8 9.8 9.8s9.8-4.4 9.8-9.8h11.7c0 5.4 4.4 9.8 9.8 9.8s9.8-4.4 9.8-9.8h11.7c.4 5.4 5.1 9.4 10.5 9 4.8-.4 8.6-4.2 9-9h11.7c-.2 5.4 4.1 9.9 9.5 10.1 5.4.2 9.9-4.1 10.1-9.5V3H212c-.2 5.4 4.1 9.9 9.5 10.1 5.4.2 9.9-4.1 10.1-9.5V3h11.7c0 5.4 4.4 9.7 9.7 9.7v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8V87c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8v11.7c-5.4.4-9.4 5.1-9 10.5.4 4.8 4.2 8.6 9 9v11.7c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.8 9.8 9.8V212c-5.4 0-9.8 4.4-9.8 9.8s4.4 9.7 9.8 9.8z' fill='%23f0f0f0'/%3E%3Cpath d='M246.2 256h-17.6v-3c.3-3.8-2.5-7-6.3-7.3s-7 2.5-7.3 6.3v4h-17.7v-3c0-3.8-3.1-6.8-6.8-6.8-3.8 0-6.8 3-6.8 6.8v3h-17.6v-3c0-3.8-3-6.8-6.8-6.8s-6.8 3-6.8 6.8v3h-17.6v-3c0-3.8-3-6.8-6.8-6.8s-6.8 3-6.8 6.8v3h-17.6v-3c0-3.8-3-6.8-6.8-6.8s-6.8 3-6.8 6.8v3H72.3v-3c0-3.8-3.1-6.8-6.8-6.8-3.8 0-6.8 3-6.8 6.8v3H41v-3c0-3.8-3.1-6.8-6.8-6.8-3.8 0-6.8 3-6.8 6.8v3H9.8v-3c0-3.7-3-6.7-6.8-6.8H0v-17.6h3c3.8.3 7-2.5 7.3-6.3.3-3.8-2.5-7-6.3-7.3H0v-17.7h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0v-17.6h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0v-17.6h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0v-17.6h3c3.8 0 6.8-3 6.8-6.8s-3-6.8-6.8-6.8H0V72.3h3c3.8.1 6.9-2.8 7.1-6.5.1-3.8-2.8-6.9-6.5-7.1H0V41h3c3.8.3 7-2.5 7.3-6.3.3-3.8-2.5-7-6.3-7.3H0V9.8h3c3.7 0 6.7-3 6.8-6.8V0h17.6v3c.2 3.8 3.5 6.6 7.2 6.3 3.5-.2 6.2-2.9 6.4-6.3V0h17.7v3c0 3.8 3 6.8 6.8 6.8s6.8-3 6.8-6.8V0h17.6v3c0 3.8 3 6.8 6.8 6.8s6.8-3 6.8-6.8V0h17.6v3c0 3.8 3.1 6.8 6.8 6.8 3.8 0 6.8-3 6.8-6.8V0h17.6v3c0 3.8 3.1 6.8 6.8 6.8 3.8 0 6.8-3 6.8-6.8V0h17.6v3c0 3.8 3 6.8 6.8 6.8s6.8-3 6.8-6.8V0H215v3c-.1 3.8 2.8 6.9 6.5 7.1s6.9-2.8 7.1-6.5V0h17.6v3c0 3.7 3 6.7 6.7 6.8h3v17.6h-3c-3.8-.3-7 2.5-7.3 6.3s2.5 7 6.3 7.3h4v17.7h-3c-3.8-.1-6.9 2.8-7.1 6.5-.1 3.8 2.8 6.9 6.5 7.1h3.5v17.6h-3c-3.8 0-6.8 3-6.8 6.8s3 6.8 6.8 6.8h3v17.6h-3c-3.8 0-6.8 3-6.8 6.8s3 6.8 6.8 6.8h3v17.6h-3c-3.8 0-6.8 3-6.8 6.8s3 6.8 6.8 6.8h3v17.6h-3c-3.8 0-6.8 3.1-6.8 6.8 0 3.8 3 6.8 6.8 6.8h3V215h-3c-3.8-.1-6.9 2.8-7.1 6.5s2.8 6.9 6.5 7.1h3.5v17.6h-3c-3.8 0-6.8 3-6.8 6.8l.3 3zm-13.7-4h9.8c.5-5.2 4.6-9.2 9.7-9.7v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7V170c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.9-.5-10.3-5.7-9.8-11.7.4-5.2 4.6-9.4 9.8-9.8v-9.8c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7V45c-5.9-.6-10.3-5.8-9.7-11.8.5-5.1 4.6-9.2 9.7-9.7v-9.8c-5.1-.5-9.2-4.6-9.7-9.7h-9.8c-.4 5.9-5.6 10.4-11.6 9.9-5.3-.4-9.5-4.6-9.9-9.9h-9.8c-.6 5.9-5.8 10.3-11.8 9.7-5.1-.5-9.2-4.6-9.7-9.7H170c-.6 5.9-5.8 10.3-11.8 9.7-5.1-.5-9.2-4.6-9.7-9.7h-9.8c-.6 5.9-5.8 10.3-11.8 9.7-5.1-.5-9.2-4.6-9.7-9.7h-9.8c-.5 5.9-5.7 10.3-11.7 9.8-5.1-.4-9.2-4.6-9.7-9.8h-9.8c-.6 5.9-5.9 10.2-11.8 9.6-5.1-.5-9.1-4.5-9.6-9.6H45c-.4 5.9-5.5 10.4-11.5 10-5.4-.4-9.7-4.6-10-10h-9.8c-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.4 10.4 5.5 10 11.5-.4 5.4-4.6 9.7-10 10v9.8c5.9.7 10.1 6.1 9.4 12-.6 4.9-4.5 8.8-9.4 9.4V86c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.5 10.3 5.7 9.8 11.7-.5 5.2-4.6 9.4-9.8 9.8v9.8c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.9.6 10.3 5.8 9.7 11.8-.5 5.1-4.6 9.2-9.7 9.7v9.8c5.1.5 9.2 4.6 9.7 9.7h9.8c.4-5.9 5.5-10.4 11.5-10 5.4.4 9.7 4.6 10 10h9.8c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7H86c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7h9.8c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7h9.8c.5-5.9 5.7-10.3 11.7-9.8 5.2.5 9.4 4.6 9.8 9.8h9.8c.6-5.9 5.8-10.3 11.8-9.7 5.1.5 9.2 4.6 9.7 9.7h9.7c.6-5.9 5.8-10.3 11.8-9.7 5 .3 9.1 4.4 9.6 9.5z' fill='%23ccc'/%3E%3Cpath class='st2' d='M244.1 254h-13.5l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8h-13.5l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8H168l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8h-13.5l-.2-1.8c-.4-4.8-4.6-8.4-9.5-8-4.3.4-7.7 3.7-8 8l-.2 1.8h-13.5l-.2-1.8c-.4-4.8-4.6-8.4-9.5-8-4.3.4-7.7 3.7-8 8l-.2 1.8h-13l-.2-1.8c-.4-4.2-3.7-7.6-7.9-8-4.8-.4-9.1 3.2-9.5 8l-.2 1.8H43.1l-.2-1.8c-.4-4.8-4.7-8.4-9.5-7.9-4.2.4-7.6 3.7-7.9 7.9l-.2 1.8H11.9l-.2-1.8c-.4-4.2-3.7-7.5-7.9-7.9l-1.8-.2v-13.5l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9H2v-13.5l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9l-1.8-.1v-13.5l1.8-.1c4.2-.4 7.6-3.8 7.9-8 .2-2.3-.5-4.6-2-6.4-1.5-1.8-3.6-2.9-5.9-3.1l-1.8-.1v-13.5l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9l-1.8-.1v-13.5l1.8-.2c4.8-.4 8.4-4.7 7.9-9.5-.4-4.2-3.7-7.6-8-7.9L2 87.8V74.4l1.8-.2c4.8-.5 8.4-4.7 7.9-9.6-.4-4.2-3.7-7.5-7.9-7.9L2 56.6V43.1l1.8-.1c4.2-.4 7.6-3.8 7.9-8 .2-2.3-.5-4.6-2-6.4-1.5-1.8-3.6-2.9-5.9-3.1L2 25.3V11.9l1.8-.2c4.2-.4 7.6-3.7 7.9-7.9l.2-1.8h13.5l.2 1.8c.3 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.1-1.8h13.5l.2 1.8c.4 4.3 3.7 7.6 8 8 4.8.4 9.1-3.2 9.5-8l.1-1.8h13.5l.1 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.8 4.7 8.4 9.5 7.9 4.2-.4 7.6-3.7 7.9-7.9l.2-1.8H213l.2 1.8c.4 4.2 3.7 7.6 7.9 8 4.8.4 9.1-3.2 9.5-8l.2-1.8h13.5l.2 1.8c.4 4.2 3.7 7.5 7.9 7.9l1.8.2v13.4l-1.8.2c-4.8.4-8.4 4.7-7.9 9.5.4 4.2 3.7 7.6 7.9 7.9l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2V88l-1.8.2c-4.2.4-7.6 3.7-8 7.9-.4 4.8 3.2 9.1 8 9.5l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.8.4-8.4 4.6-8 9.5.4 4.3 3.7 7.7 8 8l1.8.2v13.5l-1.8.2c-4.2.4-7.5 3.7-7.9 7.9l-.4 1zm-10-4h6.5c1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4V203c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.4 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.4 1.1-4.7 4.8-8.3 9.4-9.4V78c-6.8-1.6-11.1-8.5-9.4-15.4 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-6.8-1.6-11.1-8.5-9.4-15.3 1.1-4.7 4.8-8.3 9.4-9.4v-6.5c-4.7-1.1-8.3-4.8-9.4-9.4h-6.5c-1.5 6.1-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.3-9.7h-6.5c-1.5 6.1-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.3-9.7h-6.5c-1.6 6.8-8.5 11.1-15.3 9.4-4.7-1.1-8.3-4.8-9.4-9.4h-6.5c-1.6 6.8-8.5 11.1-15.3 9.5-4.7-1.1-8.4-4.8-9.5-9.5H109c-.6 2.7-2.1 5.1-4.2 6.8-5.4 4.5-13.4 3.8-17.9-1.6-1.3-1.5-2.2-3.3-2.6-5.2h-6.5c-1.4 6.2-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.2-9.7h-6.5c-1.4 6.2-7.2 10.3-13.5 9.7-5.5-.5-10-4.4-11.3-9.7h-6.5c-1.1 4.7-4.8 8.3-9.4 9.4V22c6.2 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.3v6.5c6.1 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.3v6.5c6.8 1.6 11.1 8.5 9.5 15.3-1.1 4.7-4.8 8.4-9.5 9.5v6.5c2.7.6 5.1 2.1 6.8 4.2 2.2 2.6 3.2 5.9 2.9 9.3-.5 5.5-4.4 10-9.7 11.3v6.5c2.7.6 5.1 2.1 6.8 4.2 2.2 2.6 3.2 5.9 2.9 9.3-.5 5.5-4.4 10-9.7 11.2v6.5c6.1 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.2v6.5c6.1 1.5 10.3 7.2 9.7 13.5-.5 5.5-4.4 10-9.7 11.2v6.5c4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.5 4.7 1.1 8.4 4.8 9.5 9.5h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c.6-2.7 2.1-5.1 4.2-6.8 5.4-4.5 13.4-3.8 17.9 1.6 1.3 1.5 2.2 3.3 2.6 5.2h6.5c1.6-6.8 8.5-11.1 15.3-9.4 4.7 1.1 8.3 4.8 9.4 9.4h6.5c1.6-6.8 8.5-11.1 15.3-9.4 5 1 8.6 4.6 9.7 9.2z'/%3E%3Cpath d='M38.1 34.2h179.7c2.2 0 3.9 1.8 3.9 3.9v179.7c0 2.2-1.8 3.9-3.9 3.9H38.1c-2.2 0-3.9-1.8-3.9-3.9V38.1c0-2.1 1.8-3.9 3.9-3.9z' fill='%23fedd00'/%3E%3Cpath d='M216.9 222.8H39.1c-3.3 0-5.9-2.6-5.9-5.9V39.1c0-3.3 2.6-5.9 5.9-5.9h177.8c3.3 0 5.9 2.6 5.9 5.9v177.8c0 3.2-2.7 5.9-5.9 5.9zM39.1 37.2c-1.1 0-1.9.9-1.9 1.9v177.8c0 1.1.9 1.9 1.9 1.9h177.8c1.1 0 1.9-.9 1.9-1.9V39.1c0-1.1-.9-1.9-1.9-1.9H39.1z' fill='%23d9b500'/%3E%3Cpath class='st2' d='M218.9 224.7H37.2c-3.3 0-5.9-2.6-5.9-5.9V37.2c0-3.3 2.6-5.9 5.9-5.9h181.7c3.3 0 5.9 2.6 5.9 5.9v181.7c-.1 3.2-2.7 5.8-5.9 5.8zM37.2 35.2c-1.1 0-1.9.9-1.9 1.9v181.7c0 1.1.9 1.9 1.9 1.9h181.7c1.1 0 1.9-.9 1.9-1.9V37.2c0-1.1-.9-1.9-1.9-1.9l-181.7-.1z'/%3E%3Cpath d='M101.2 171.1V85.6H87V71.3h50.6c31.6 0 38.1 20.8 38.1 35.3 0 11.6-4.7 20.5-9.6 25.4-7.9 7.9-18.6 9.7-35 9.7h-12.8v29.4h15v14.3H87v-14.3h14.2zm17.2-43.1h14.3c21 0 25.5-9.7 25.5-21.5 0-13.4-7.6-20.8-20.2-20.8h-19.6V128z'/%3E%3C/g%3E%3C/svg%3E",sendgrid:"data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 147 33' xml:space='preserve'%3E%3Cstyle%3E.st0%7Bfill:%23212f38%7D.st1%7Bfill:%239dd6e3%7D.st2%7Bfill:%233f72ab%7D.st3%7Bfill:%2300a9d1%7D%3C/style%3E%3Cg id='Active'%3E%3Cg id='Products-Hover' transform='translate(-80 -37)'%3E%3Cg id='Navigation-Bar'%3E%3Cg id='SG-Twilio-Logo' transform='translate(80 37)'%3E%3Cpath id='Fill-1' class='st0' d='M50.8 22.8c.6-1.4 1.9-2.3 3.6-2.3 1.7 0 2.9.8 3.5 2.3h-7.1zm11 1.8c0-4.2-3.1-7.5-7.5-7.5-4.2 0-7.6 3.4-7.6 7.6 0 4.2 3.1 7.6 7.7 7.6 3.1 0 5.4-1.5 6.7-3.7l-3.1-2c-.7 1.3-2 2.1-3.5 2.1-2.1 0-3.4-1-3.9-2.6h11.2v-1.5zm81.1 0c0-2.2-1.6-3.9-3.7-3.9-2.2 0-3.9 1.7-3.9 3.9s1.7 3.9 3.9 3.9c2.1 0 3.7-1.8 3.7-3.9zm-11.5 0c0-5.1 3.8-7.6 7.1-7.6 1.9 0 3.4.7 4.3 1.7v-8.1h4v21.2h-4v-1.6c-1 1.1-2.5 1.9-4.4 1.9-3.1 0-7-2.4-7-7.5zm-2.9-9.5c1.3 0 2.4-1.1 2.4-2.4s-1.1-2.4-2.4-2.4c-1.3 0-2.4 1.1-2.4 2.4s1.1 2.4 2.4 2.4zm-2 2.2h4v14.5h-4V21.2h-1.4l1.4-3.9zm-10.6 0h4v2.4c.7-1.5 2-2.4 4-2.4h1.6l-1.4 3.9H123c-2.1 0-3.1 1.1-3.1 3.8v6.9h-4V17.3zm-22.4 3.9c0-6 4.6-10.9 10.8-10.9 3.1 0 5.8 1.1 7.7 2.9.8.7 1.4 1.6 2 2.5l-3.5 2.2c-1.3-2.4-3.3-3.7-6.1-3.7-3.9 0-6.9 3.2-6.9 7 0 3.9 2.9 7 7 7 3.1 0 5.3-1.7 6-4.4h-6.7v-3.9h11v1.6c0 5.7-4.1 10.6-10.4 10.6-6.5 0-10.9-5-10.9-10.9zm-4.8 3.4c0-2.2-1.6-3.9-3.7-3.9-2.2 0-3.9 1.7-3.9 3.9s1.7 3.9 3.9 3.9c2.1 0 3.7-1.8 3.7-3.9zm-11.5 0c0-5.1 3.8-7.6 7.1-7.6 1.9 0 3.4.7 4.3 1.7v-8.1h4v21.2h-4v-1.6c-1 1.1-2.5 1.9-4.4 1.9-3.1 0-7-2.4-7-7.5zm-14.4-7.3h4v1.6c.9-1.2 2.4-1.9 4-1.9 3.4 0 5.5 2.2 5.5 6v8.9h-4v-8.3c0-1.9-.9-3.1-2.7-3.1-1.5 0-2.8 1-2.8 3.5v7.9h-4V17.3zm-32.5 11l3.7-2.9c1 1.8 2.7 2.8 4.6 2.8 2.1 0 3.2-1.3 3.2-2.8 0-1.7-2.1-2.3-4.4-3-2.8-.9-6-2-6-6 0-3.4 3-6.1 7.1-6.1 3.5 0 5.4 1.3 7.2 3.1l-3.3 2.5c-.9-1.3-2.1-2-3.8-2-1.9 0-2.9 1-2.9 2.4 0 1.6 2 2.2 4.3 2.9 2.9.9 6.1 2.2 6.1 6.3 0 3.4-2.7 6.6-7.4 6.6-4 0-6.5-1.6-8.4-3.8z'/%3E%3Cpath id='Fill-2' class='st1' d='M8.5 31.8H17v-8.4H8.5z'/%3E%3Cpath id='Fill-3' class='st1' d='M0 23.4h8.5v-8.5H0z'/%3E%3Cpath id='Fill-4' class='st2' d='M0 31.8h8.5v-8.4H0z'/%3E%3Cpath id='Fill-5' class='st3' d='M17 23.4h8.5v-8.5H17z'/%3E%3Cpath id='Fill-6' class='st3' d='M8.5 14.9H17V6.4H8.5z'/%3E%3Cpath id='Fill-7' fill='%232191c4' d='M8.5 23.4H17v-8.5H8.5z'/%3E%3Cpath id='Fill-8' class='st2' d='M17 14.9h8.5V6.4H17z'/%3E%3Cpath id='Fill-9' class='st0' d='M34.3 1.3v4.9h-1.2V1.3h-1.7v-1H36v1h-1.7'/%3E%3Cpath id='Fill-10' class='st0' d='M44.4 6.2h-1.1L42 1.9l-1.3 4.3h-1.1l-1.7-6 1.2.1 1.1 4.2L41.5.3h1.1l1.3 4.2 1-4.2h1.2l-1.7 5.9'/%3E%3Cpath id='Fill-11' class='st0' d='M48.3 6.2h1.2V.3h-1.2z'/%3E%3Cpath id='Fill-12' class='st0' d='M52.1 6.2V.3h1.2v4.9h2v1h-3.2'/%3E%3Cpath id='Fill-13' class='st0' d='M57.6 6.2h1.2V.3h-1.2z'/%3E%3Cpath id='Fill-14' class='st0' d='M64 1.1c-1 0-1.6.8-1.6 2.1S63 5.4 64 5.4s1.6-.8 1.6-2.1S65 1.1 64 1.1m0 5.2c-1.7 0-2.8-1.2-2.8-3.1 0-1.8 1.1-3.1 2.8-3.1 1.7 0 2.8 1.2 2.8 3.1 0 1.9-1.1 3.1-2.8 3.1'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",sendinblue:"data:image/svg+xml,%3csvg id='sendinblue' viewBox='0 0 1000 295' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M820.28 182.338C820.28 137.755 848.604 106.4 888.892 106.4C929.18 106.4 957.956 137.737 957.956 182.338C957.956 226.939 929.187 256.5 888.892 256.5C848.598 256.5 820.28 225.588 820.28 182.338ZM778.224 182.338C778.224 248.12 824.262 294.479 888.886 294.479C953.51 294.479 1000 248.12 1000 182.338C1000 116.556 953.962 68.4399 888.886 68.4399C823.81 68.4399 778.224 115.686 778.224 182.338ZM563.521 71.0853L650.292 291.821H691.025L777.791 71.0853H733.966L671.104 241.498H670.214L607.352 71.0853H563.521ZM394.856 174.383C397.508 133.76 424.515 106.4 461.261 106.4C493.128 106.4 517.037 126.712 520.58 157.179H447.089C420.973 157.179 406.801 160.269 396.191 174.402H394.856V174.39V174.383ZM352.805 181.006C352.805 246.788 399.289 294.46 463.468 294.46C506.854 294.46 544.916 272.391 561.295 237.502L525.885 219.835C513.494 242.792 489.585 256.482 463.468 256.482C432.028 256.482 403.704 232.637 403.704 209.679C403.704 197.766 411.673 192.457 423.18 192.457H563.502V180.544C563.502 114.317 521.007 68.4029 459.925 68.4029C398.844 68.4029 352.799 115.649 352.799 180.988M232.399 291.796H272.242V156.285C272.242 127.149 290.382 106.394 315.627 106.394C326.256 106.394 337.311 109.927 342.635 114.774C346.623 104.174 352.818 93.5923 362.111 82.9924C351.482 74.1684 333.342 68.4153 315.627 68.4153C266.937 68.4153 232.399 104.618 232.399 156.267V291.809V291.796ZM39.843 145.698V37.9598H105.358C127.486 37.9598 142.103 50.7611 142.103 70.185C142.103 92.2542 123.072 109.033 84.1191 121.834C57.5571 130.214 45.6116 137.281 41.1785 145.679L39.843 145.692V145.698ZM39.843 253.861V208.835C39.843 188.967 56.6668 169.543 80.1311 162.032C100.943 154.966 118.193 147.899 132.81 140.407C152.286 151.895 164.232 171.744 164.232 192.5C164.232 227.814 130.584 253.861 84.9909 253.861H39.843ZM0 291.821H88.5337C155.829 291.821 206.282 249.884 206.282 194.257C206.282 163.79 190.794 136.43 163.341 118.763C177.513 104.63 184.153 88.2955 184.153 68.4276C184.153 27.3784 154.493 0 109.791 0H0V291.821Z' fill='%230B996E'/%3e%3c/svg%3e",sendpulse:"data:image/svg+xml,%3Csvg id='sendpulse' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 37.84'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23199fbf%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M234.4 109.08h4.93q1.17 10 2.38 20h5.28a4.88 4.88 0 016.79-1.76 4.8 4.8 0 01.7 7.54 4.85 4.85 0 01-7.51-1.22h-9.64c-.44-3.36-1-6.72-1.41-10.08-2.11 7.74-4.13 15.54-6.17 23.31H225c-1.14-4.71-2.23-9.44-3.36-14.15h-6.37v-4.54h10.48c.57 2.5 1.17 5 1.75 7.47 2.33-8.83 4.58-17.65 6.9-26.57zM92.73 110.9h5.88v31.9h-5.8v-.88c-2.61 1.43-5.69 1.43-8.58 1.24-2.13-.2-4.51-.73-5.87-2.54a8.74 8.74 0 01-1.36-5.19V125.3a6.38 6.38 0 012.42-5.22 10.54 10.54 0 015.07-1.53 17.74 17.74 0 018.3 1c-.1-2.89 0-5.79 0-8.68m-9 12.57a1.26 1.26 0 00-.89 1.4v11.18a2.4 2.4 0 00.58 1.76 5.94 5.94 0 003 .75 14.19 14.19 0 004.94-.48 1.87 1.87 0 001.37-1.72v-11.16c.09-1-1-1.52-1.83-1.72a18.6 18.6 0 00-7.24.03zM155.83 110.88h5.88v31.91h-5.88c0-10.64-.02-21.27 0-31.91zM7.62 111.22a53.68 53.68 0 0113.16.32v5.2c-4.09-.61-8.26-1.32-12.38-.67-1 .13-2.14.63-2.27 1.76a44.61 44.61 0 000 4.48c0 1.06 1.12 1.48 2 1.58 3.59.4 7.41-.47 10.82 1 2.29 1 3.18 3.67 3.27 6 .07 3 .31 6.39-1.57 9-1.9 2.4-5.17 3-8.06 3.25a59 59 0 01-12-.8v-5.61a42.79 42.79 0 0011.65 1.31 7.34 7.34 0 003.38-.92c.77-.93.46-2.24.53-3.34-.09-1.32.27-2.81-.53-4-1.44-1-3.32-.68-5-.75-2.87 0-6.14.15-8.45-1.87-2-1.79-2.29-4.64-2.19-7.16-.09-2.12.05-4.49 1.58-6.14 1.49-1.74 3.87-2.32 6.06-2.64zM104.09 111.4c4.35 0 8.71-.06 13.08.06 2.49.2 5.34.49 7.07 2.54a6.54 6.54 0 011.43 4v7a6.33 6.33 0 01-3.44 5.6c-3.69 1.87-8 1.61-12 1.61v10.59h-6.16v-31.4m6.11 4.6v11.53c2.69-.18 5.61.48 8.07-.89a2.52 2.52 0 001.3-2.41v-5.78a2 2 0 00-1.49-2c-2.52-.75-5.23-.35-7.86-.45zM29.22 120.43c2.27-1.7 5.24-2 8-2 2.55 0 5.3.29 7.41 1.87 1.78 1.34 2.42 3.66 2.5 5.8s0 4.42 0 6.63H32.56c.06 1.73-.51 4.29 1.57 5.07 3.94 1.39 8.23.27 12.15-.72v5.05a34.64 34.64 0 01-11.65.93c-2.27-.28-4.67-1-6.27-2.69a6.93 6.93 0 01-1.72-5v-9a7.66 7.66 0 012.57-6m4.59 3c-1.93.71-1 3.2-1.24 4.77h8.71c-.2-1.54.6-3.76-1-4.72a11.38 11.38 0 00-6.44-.06zM57.75 119.71c2.42-1.28 5.26-1.36 7.93-1.19 1.94.18 4.12.64 5.34 2.31a8.28 8.28 0 011.43 5.34v16.62h-5.87v-17.34a2 2 0 00-1.58-2 14.17 14.17 0 00-5.8.15 1.9 1.9 0 00-1.41 2v17.25h-5.87v-23.93h5.9c-.02.2-.05.59-.07.79zM170.28 119.4c4.57-1.58 9.47-.74 14.18-.52v4.9a35 35 0 00-10.36-.65c-.93.06-2.09.59-1.91 1.71.11 1-.44 2.41.73 2.85 2.26.71 4.67.09 7 .47 1.92.27 4 1.12 4.92 2.94.94 1.61.68 3.54.71 5.32a6 6 0 01-2.67 5.2c-2.63 1.53-5.79 1.67-8.75 1.6a52.82 52.82 0 01-7.33-.66v-5c3.95.49 8 1.61 12 .63 1.3-.29 1-1.81 1-2.78s0-2.14-1.09-2.31c-3.33-.59-7.18.5-10.08-1.75-2.17-1.53-2.39-4.38-2.23-6.8a5.42 5.42 0 013.88-5.15zM190.81 122.09c1.46-2.54 4.56-3.34 7.28-3.54 3-.2 6.35-.19 9.08 1.42 2 1.18 2.86 3.61 3 5.84s0 4.63 0 6.94h-14.55c0 1.76-.47 4.33 1.65 5.11 3.94 1.33 8.18.23 12.07-.76v5a32.62 32.62 0 01-12.78.77c-2.37-.42-4.87-1.54-6-3.78-1.27-2.42-.69-5.24-.82-7.85.12-3.07-.5-6.41 1.13-9.19m5.47 1.6c-1.16 1.19-.53 3-.65 4.52h8.68a15.92 15.92 0 00-.21-3.91c-.52-1-1.81-1.11-2.81-1.23a9.77 9.77 0 00-5 .63zM130.31 118.92h5.88v17.14a2 2 0 001.13 2.1 14.41 14.41 0 005.74.13c.84-.13 1.92-.53 1.9-1.55v-17.83h5.87v23.87H145V142c-2.33 1.29-5.07 1.33-7.67 1.21a8.18 8.18 0 01-5.06-1.74 7.24 7.24 0 01-1.95-5.34c-.01-5.76 0-11.49-.01-17.21z' transform='translate(0 -109.08)'/%3E%3C/svg%3E",smtp:"data:image/svg+xml,%3Csvg height='512' width='512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M507.601 209.464l-63.185-63.187V15c0-8.284-6.716-15-15-15H82.581c-8.284 0-15 6.716-15 15v131.277C-1.511 215.371.003 211.786.003 220.07V497c0 8.284 6.716 15 15 15h481.992c8.284 0 15-6.716 15-15 0-2.012.034-277.104-.062-278.217a15.067 15.067 0 00-4.332-9.319zm-33.786 8.639l-29.399 20.816v-50.216zM414.416 30v230.159L310.51 333.728c-29.799 21.097-70.162 21.566-100.396 1.116L97.581 258.179V30zM67.582 237.741l-29.167-19.87 29.167-29.167zM481.995 482H30.002V248.439l139.997 95.375L88 425.815c-5.858 5.857-5.858 15.355 0 21.213s15.355 5.858 21.213 0l86.058-86.06c38.047 24.646 88.337 25.998 128.444.032l86.026 86.028c5.856 5.857 15.354 5.859 21.213 0 5.858-5.857 5.858-15.355 0-21.213l-82.32-82.322 133.361-94.423z'/%3E%3Cpath d='M152.58 100h206.836c8.284 0 15-6.716 15-15s-6.716-15-15-15H152.58c-8.284 0-15 6.716-15 15s6.716 15 15 15zM152.58 170h206.836c8.284 0 15-6.716 15-15s-6.716-15-15-15H152.58c-8.284 0-15 6.716-15 15s6.716 15 15 15zM152.58 240h206.836c8.284 0 15-6.716 15-15s-6.716-15-15-15H152.58c-8.284 0-15 6.716-15 15s6.716 15 15 15z'/%3E%3C/svg%3E",smtpcom:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 207.4 40'%3E%3Cpath fill='%232fb197' d='M.9.9h52.6L27.3 20z'/%3E%3Cpath d='M0 0v40h54.4V0H0zm25.7 20L1.8 37.3V2.7L25.7 20zM50.8 1.8l-23.5 17-23.7-17h47.2zm1.8 36.4H26l14.7-10.7-1.1-1.5-16.7 12.2H3.6l49-35.5v35.5z'/%3E%3Cg%3E%3Cpath d='M88.2 9.8C84.1 7.2 79.4 7 77.4 7c-1.9 0-3.4.4-4.4 1.2-1.1.8-1.6 1.9-1.6 3.2 0 1.2.6 2.3 1.9 3.1 1.2.8 2.9 1.8 5.3 2.5 4.3 1.5 8 3 10.2 4.8 2.2 1.8 3.4 4.5 3.4 7.5 0 3.3-1.8 6.1-4.3 8-2.5 1.9-5.9 2.6-10.1 2.6-2.9 0-10.9-.7-15.2-3.3l1.7-6.6c4.9 3.6 13.2 3.6 13.2 3.6 1.9 0 4.4-.3 5.4-1.1s1.6-1.8 1.6-3.2c0-1.5-.5-2.6-1.6-3.4-1-.8-3.6-1.8-6.3-2.7-2.7-.9-5-1.8-6.6-2.7-4.3-2.3-6.4-5.2-6.4-9.2 0-2.1.6-3.9 1.7-5.5 1.2-1.6 2.8-2.9 5-3.8 2.2-.9 4.6-1.4 7.3-1.4s8.6.5 12.7 2.5l-2.1 6.7zM108.8 2.2l9.6 20.4 10-20.4c.3-.6.9-1 1.5-1h8.9v38.1H131V28.9l.1-15.7-10 18.6h-5.4l-9.9-18.6.3 15.7v10.4h-7.8v-38h9c.7 0 1.3.3 1.5.9zM173.7 7.2h-11.2v32.1h-7.8V7.2h-11.2V2.3c0-.6.5-1 1-1h29.3v5.9zM186 25.5v13.9h-7.8V1.3H193c2.9 0 5.4.5 7.5 1.6 2.2 1 3.8 2.5 5 4.5 1.2 1.9 1.8 4.1 1.8 6.6 0 3.7-1.3 6.2-3.8 8.4-2.6 2.2-6.1 3.2-10.6 3.2H186zm0-5.9h7.2c2.1 0 3.7-.5 4.9-1.5 1.1-1 1.7-2.4 1.7-4.3s-.6-3.5-1.7-4.6c-1.1-1.2-2.7-1.8-4.7-1.8H186v12.2z'/%3E%3C/g%3E%3C/svg%3E",sparkpost:"data:image/svg+xml,%3Csvg id='sparkpost' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 66.71'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%234e4e55%7D%3C/style%3E%3C/defs%3E%3Cg id='sparkpost-2' data-name='sparkpost'%3E%3Cpath class='cls-1' d='M0 154.1l4-4.82c2.78 2.3 5.7 3.76 9.23 3.76 2.78 0 4.46-1.11 4.46-2.92V150c0-1.72-1.06-2.6-6.23-3.93-6.23-1.59-10.25-3.31-10.25-9.45v-.09c0-5.61 4.51-9.32 10.83-9.32a17.87 17.87 0 0111.48 3.93L20 136.29c-2.74-1.9-5.43-3-8-3s-4 1.2-4 2.7v.01c0 2 1.33 2.69 6.67 4.06 6.28 1.64 9.81 3.89 9.81 9.28v.09c0 6.14-4.68 9.58-11.35 9.58A19.67 19.67 0 010 154.1M40.84 143.27c3.4 0 5.39-2 5.39-4.68v-.09c0-3.05-2.12-4.68-5.52-4.68h-5.26v9.45zm-12.19-15.59h12.63c7.38 0 11.84 4.37 11.84 10.69v.09c0 7.15-5.57 10.87-12.5 10.87h-5.17v9.27h-6.8zM69.91 145.66l-4.11-10-4.11 10zm-7.16-18.2H69l13.28 31.14h-7.12l-2.82-6.93H59.26l-2.83 6.93h-6.94zM99.19 142.7c3.31 0 5.21-1.77 5.21-4.37v-.09c0-2.92-2-4.42-5.34-4.42H92.3v8.88zm-13.7-15h14.14c3.93 0 7 1.1 9 3.13a9.7 9.7 0 012.65 7.07v.1a9.61 9.61 0 01-6.62 9.59l7.55 11h-8l-6.63-9.89H92.3v9.89h-6.81zM158.24 145c5.75 0 9.63-3 9.63-7.6v-.08c0-4.91-3.8-7.47-9.36-7.47h-8.75V145zm-10.78-17.27h11.22c6.81 0 11.49 3.49 11.49 9.45v.09c0 6.5-5.61 9.85-12.06 9.85h-8.35v11.48h-2.3zM207 154.1l1.5-1.73c3.4 3.14 6.54 4.6 11.09 4.6s7.82-2.61 7.82-6.14v-.09c0-3.27-1.73-5.17-8.75-6.58-7.42-1.51-10.43-4-10.43-8.71v-.08c0-4.6 4.2-8.13 9.94-8.13a15.42 15.42 0 0110.58 3.76l-1.46 1.81a13.36 13.36 0 00-9.24-3.49c-4.55 0-7.55 2.61-7.55 5.83v.09c0 3.27 1.68 5.26 9 6.76 7.16 1.46 10.16 4 10.16 8.53v.09c0 5-4.28 8.43-10.25 8.43A17.6 17.6 0 01207 154.1M242.92 129.8h-10.78v-2.12H256v2.12h-10.78v28.8h-2.3zM122.75 140.69l10.7-13h8.31l-12.56 14.68 13.46 16.23h-8.75l-11.16-13.8v13.8h-6.81v-30.92h6.81z' transform='translate(0 -94.65)'/%3E%3Cpath d='M188.91 154.68a10.84 10.84 0 1110.83-10.83 10.83 10.83 0 01-10.83 10.83zm11-34.05c-3.44 2.6-4.11 7.19-4.21 10.28-5.45-6.29 10.08-24.82-7.56-36.26 10.92 14.13-15.55 28-15.55 48.85 0 8.16 5.11 15.36 16.31 17.85 11-2.34 16.41-9.69 16.41-17.85 0-12.17-7.58-16.24-5.4-22.87' transform='translate(0 -94.65)' fill='%23f15022'/%3E%3C/g%3E%3C/svg%3E",zoho:"data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' x='0' y='0' viewBox='0 0 115.9 40' xml:space='preserve'%3E%3Cstyle%3E.st3%7Bfill:%23fff%7D%3C/style%3E%3Cg transform='translate(384 37)'%3E%3Cpath d='M-268-28.5V-1l-3.8 3.7v-26.9l3.8-4.3z' fill='%23e79225'/%3E%3Cpath d='M-293-28.4l-3.9 4.3.2.3 24.7-.2.2-.2 3.7-4.3-24.9.1z' fill='%23fff16d'/%3E%3ClinearGradient id='SVGID_1_' gradientUnits='userSpaceOnUse' x1='-385.575' y1='4.374' x2='-385.575' y2='4.158' gradientTransform='matrix(111 0 0 -118.9 42514.5 496.3)'%3E%3Cstop offset='.006' stop-color='%23ffe513'/%3E%3Cstop offset='1' stop-color='%23fdb924'/%3E%3C/linearGradient%3E%3Cpath fill='url(%23SVGID_1_)' d='M-296.9-24.2h25.1V2.7h-25.1z'/%3E%3Cpath class='st3' d='M-275.6-14.5c-.5-1.2-1.2-2.4-2.2-3.4-.9-1-2-1.7-3.1-2.2-1.2-.5-2.4-.7-3.8-.7s-2.6.2-3.8.7c-1.2.5-2.2 1.2-3.1 2.2-1 1-1.7 2.1-2.2 3.4-.5 1.2-.7 2.6-.7 4.1 0 1.4.2 2.8.7 4.1.5 1.3 1.2 2.4 2.2 3.4.9.9 1.9 1.6 3.1 2.1s2.4.7 3.8.7c1.3 0 2.6-.2 3.7-.7 1.2-.5 2.2-1.2 3.1-2.1 1-1 1.7-2.1 2.2-3.4.5-1.2.7-2.6.7-4.1.2-1.5-.1-2.8-.6-4.1zm-5.2 8.9c-1 1.2-2.3 1.7-3.9 1.7-1.7 0-3-.6-4-1.7-1-1.2-1.4-2.8-1.4-4.8 0-2.1.5-3.7 1.4-4.9 1-1.2 2.3-1.7 4-1.7 1.7 0 3 .6 3.9 1.7 1 1.2 1.4 2.8 1.4 4.9.1 2.1-.4 3.7-1.4 4.8z'/%3E%3C/g%3E%3Cg transform='translate(257 27)'%3E%3Cpath d='M-172.4-20.7v.1l3.2 24.7-1.9 5.2-.2-.2-3.3-23.7.1-.3 2.1-5.7v-.1z' fill='%23009ada'/%3E%3Cpath d='M-197.1-17.3l24.8-3.4-2.1 5.9-.3.3-23.1 3.4.1-4.2.6-2z' fill='%2391c9ed'/%3E%3ClinearGradient id='SVGID_2_' gradientUnits='userSpaceOnUse' x1='-257.627' y1='14.321' x2='-257.42' y2='14.155' gradientTransform='matrix(122.2 0 0 -121.6 31284.5 1730.4)'%3E%3Cstop offset='.006' stop-color='%23008cd2'/%3E%3Cstop offset='1' stop-color='%2300649d'/%3E%3C/linearGradient%3E%3Cpath d='M-174.5-14.8l3.4 24.1-24.4 3.4-3.3-23.3 1.4-1.1 22.9-3.1z' fill='url(%23SVGID_2_)'/%3E%3Cpath class='st3' d='M-178.6-10.1c-.1-.7-.4-1.3-.8-1.7-.3-.3-.7-.5-1.2-.5h-.4c-.6.1-1.1.4-1.4.9-.2.3-.3.8-.3 1.3v.6l.9 6.3-7 1-.9-6.3c-.1-.7-.4-1.3-.8-1.7-.3-.3-.7-.5-1.2-.5h-.3c-.7.1-1.2.4-1.5.9-.2.3-.3.8-.3 1.3v.6l2.4 16.3c.1.7.4 1.3.8 1.7.3.3.7.4 1.2.4h.4c.6-.1 1.1-.4 1.4-.9.2-.3.3-.7.3-1.2v-.6l-1-6.5 7-1 1 6.5c.1.7.4 1.3.8 1.7.3.3.7.5 1.2.5h.4c.6-.1 1.1-.4 1.4-.9.2-.3.3-.7.3-1.2v-.6l-2.4-16.4z'/%3E%3C/g%3E%3Cg transform='translate(123)'%3E%3Cpath d='M-86.3 0l-8.8 20.9 1.2 9.2h.1l9.9-22.3v-.5L-86 .2l-.3-.2z' fill='%2366bf6b'/%3E%3Cpath d='M-86.3 0l2.3 7.7v.2l21.8 9.8h.1l-1.9-7.3L-86.3 0z' fill='%2398d0a0'/%3E%3ClinearGradient id='SVGID_3_' gradientUnits='userSpaceOnUse' x1='-122.601' y1='41.128' x2='-122.601' y2='40.97' gradientTransform='matrix(140.4 0 0 -142.7 17135.201 5885.6)'%3E%3Cstop offset='0' stop-color='%2326a146'/%3E%3Cstop offset='1' stop-color='%23008a52'/%3E%3C/linearGradient%3E%3Cpath d='M-84 7.7l21.9 9.9L-72 40l-21.9-9.9L-84 7.7z' fill='url(%23SVGID_3_)'/%3E%3Cpath class='st3' d='M-68.8 19.4c-.5-1.3-1.1-2.4-2-3.3s-1.9-1.6-3.1-2.2c-1.2-.5-2.4-.8-3.7-.8h-.1c-1.3 0-2.5.3-3.7.8-1.3.6-2.4 1.3-3.4 2.4-1 1-1.7 2.2-2.3 3.6-.6 1.4-.9 2.8-1 4.2v.5c0 1.2.2 2.4.6 3.6.5 1.2 1.1 2.3 2 3.2s1.9 1.6 3.2 2.2c1.2.5 2.4.8 3.7.8 1.2 0 2.5-.3 3.7-.8 1.3-.6 2.4-1.4 3.4-2.4s1.7-2.2 2.3-3.6c.6-1.4.9-2.8 1-4.2V23c.1-1.2-.1-2.4-.6-3.6zm-4.3 6.5c-.8 1.9-1.9 3.3-3.3 4-.7.4-1.5.6-2.2.6-.7 0-1.4-.2-2.1-.5-1.5-.7-2.5-1.7-2.9-3.2-.1-.5-.2-1-.2-1.6 0-1.1.3-2.3.8-3.6.8-2 1.9-3.4 3.3-4.1.7-.4 1.5-.6 2.2-.6.7 0 1.4.2 2.1.5 1.5.7 2.5 1.7 2.9 3.2.1.5.2 1 .2 1.5 0 1.2-.3 2.5-.8 3.8z'/%3E%3C/g%3E%3Cg transform='translate(0 15)'%3E%3Cpath d='M26.1-11.4l3.6 24-1.6 8.4-.2-.3-3.5-23.2V-3l1.5-8.1.2-.3z' fill='%23760d16'/%3E%3Cpath d='M0 .9l1.7-8.5 24.4-3.9-1.7 8.6v.6L.3 1.2 0 .9z' fill='%23ef463e'/%3E%3ClinearGradient id='SVGID_4_' gradientUnits='userSpaceOnUse' x1='1.091' y1='26.332' x2='1.122' y2='26.139' gradientTransform='matrix(124 0 0 -121.6 -123 3201.4)'%3E%3Cstop offset='0' stop-color='%23d92231'/%3E%3Cstop offset='1' stop-color='%23ba2234'/%3E%3C/linearGradient%3E%3Cpath d='M24.5-2.8L28.1 21 3.9 24.7 0 .9l24.5-3.7z' fill='url(%23SVGID_4_)'/%3E%3Cpath class='st3' d='M21.9 17.2c-.2-.2-.5-.4-.8-.5s-.7-.2-1.2-.2c-.4 0-.9 0-1.5.1L12 17.7c.1-.5.3-1.1.7-1.9.5-.9 1.2-1.9 2.1-3.2.3-.4.6-.7.7-1 .1-.2.3-.4.5-.7 1.5-1.9 2.4-3.5 2.7-4.7.2-.7.3-1.4.4-2.1v-.6c0-.5 0-1-.1-1.5.1-.3 0-.7-.2-1s-.3-.5-.6-.7c-.2-.2-.6-.2-1.1-.2-.4 0-.9 0-1.4.1L8.4 1.5c-.9.2-1.6.4-2 .8-.4.4-.5.8-.5 1.2v.4c.1.6.4 1.1 1 1.3.3.2.6.2 1.1.2.3 0 .6 0 1-.1l6.2-1.1v.3c0 .4-.1.8-.2 1.1-.2.5-.6 1.2-1.4 2.2-.2.2-.5.7-1 1.2-1.7 2-2.9 3.7-3.6 5.2-.5 1-.9 1.9-1.1 2.9-.1.6-.2 1.1-.2 1.6 0 .4 0 .7.1 1.1.2.5.3.9.5 1.2.2.3.4.6.6.7.2.1.6.2 1.1.2.6 0 1.4-.1 2.5-.3l6.7-1.2c1.2-.2 2-.5 2.5-.9.4-.3.6-.7.6-1.2v-.4c-.1-.2-.2-.5-.4-.7z'/%3E%3C/g%3E%3C/svg%3E",mandrill:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3C!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 251.103 127.423' enable-background='new 0 0 251.103 127.423' xml:space='preserve'%3E%3Cg%3E%3Cpolygon fill='%23171717' points='16.209,114.892 6.736,100.959 0,100.959 0,126.859 6.736,126.859 6.736,112.928 12.141,120.879 16.209,126.861 20.284,120.879 25.686,112.928 25.686,126.859 32.416,126.859 32.416,100.959 25.686,100.959 '/%3E%3Cg%3E%3Crect x='74.857' fill='%23E6E6E5' width='99.193' height='87.825'/%3E%3Cpolygon fill='%23DADBDB' points='174.051,0 74.857,0 124.457,72.489 '/%3E%3Cpolygon fill='%23BABCBE' points='113.962,87.825 134.951,87.825 124.457,72.489 '/%3E%3Cpolygon points='124.471,46.075 103.312,15.019 103.312,41.677 115.394,59.424 124.451,46.101 '/%3E%3Cpolygon fill='%23F7A343' points='124.471,46.075 133.584,59.453 145.59,41.899 145.59,15.019 '/%3E%3Cpolygon fill='%23C77D2A' points='124.451,46.101 115.394,59.424 124.481,72.763 133.584,59.453 124.471,46.075 '/%3E%3Cpolygon fill='%2343B9E4' points='88.285,72.8 103.312,72.8 103.312,41.677 88.285,19.621 '/%3E%3Cpolygon fill='%23038CC0' points='88.285,15.019 88.285,19.621 103.312,41.677 103.312,15.019 '/%3E%3Cpolygon fill='%23D21F38' points='145.59,41.899 145.59,72.8 160.61,72.8 160.61,19.94 '/%3E%3Cpolygon fill='%23A11D2E' points='160.61,15.019 145.59,15.019 145.59,41.899 160.61,19.94 '/%3E%3C/g%3E%3Cpath fill='%23171717' d='M61.34,100.959h-8.547l-9.319,26.216h7.052l1.855-5.467h9.172l1.894,5.467h7.043l-0.125-0.34L61.34,100.959 z M59.94,116.093h-5.992l3.048-9.006L59.94,116.093z'/%3E%3Cpolygon fill='%23171717' points='99.317,101.215 99.317,117.035 89.017,100.959 81.545,100.959 81.545,127.174 88.19,127.174 88.19,111.137 98.613,127.423 105.958,127.423 105.958,100.959 99.317,100.959 '/%3E%3Cpath fill='%23171717' d='M137.598,104.504c-1.233-1.14-2.753-2.017-4.533-2.627c-1.789-0.617-3.834-0.918-6.13-0.918h-9.926v26.216 h9.479c2.375,0,4.493-0.307,6.348-0.936c1.855-0.627,3.411-1.522,4.681-2.686c1.257-1.166,2.219-2.571,2.878-4.206 c0.659-1.641,0.99-3.464,0.99-5.465c0-1.944-0.323-3.719-0.966-5.299C139.769,107.002,138.831,105.638,137.598,104.504z M126.854,121.398h-2.789v-14.663h2.462c2.648,0,4.588,0.606,5.853,1.775c1.249,1.16,1.91,3.014,1.91,5.617 c-0.006,2.522-0.675,4.335-1.971,5.495C131.005,120.8,129.195,121.396,126.854,121.398z'/%3E%3Cpath fill='%23171717' d='M172.308,114.007c0.918-1.318,1.383-2.878,1.383-4.649c0.002-2.555-0.911-4.628-2.722-6.14 c-1.823-1.524-4.485-2.26-7.939-2.26h-10.584v26.216h7.056v-0.253v-8.159l2.605-0.212l5.136,8.624h7.985l-6.69-10.322 C170.154,116.186,171.435,115.252,172.308,114.007z M162.387,113.336l-3.009,0.075v-6.761l2.494,0.004 c1.593-0.004,2.757,0.283,3.494,0.794c0.738,0.519,1.098,1.255,1.102,2.322c-0.004,1.184-0.344,2.009-1.011,2.555 C164.774,112.883,163.753,113.231,162.387,113.336L162.387,113.336z'/%3E%3Cpolygon fill='%23171717' points='186.282,127.174 186.541,127.174 193.332,127.174 193.332,100.959 186.282,100.959 '/%3E%3Cpolygon fill='%23171717' points='211.441,100.959 204.387,100.959 204.387,127.174 204.642,127.174 222.219,127.174 222.219,121.19 211.439,121.19 '/%3E%3Cpolygon fill='%23171717' points='240.324,121.19 240.327,100.959 233.273,100.959 233.273,127.174 233.532,127.174 251.103,127.174 251.103,121.19 '/%3E%3C/g%3E%3C/svg%3E%0A"};function Gj(){const{settings:e,updateSettings:t}=Ms(),[n,a]=ze.useState(!1),r=hi({resolver:Fi(wf),defaultValues:qj(e||{}),shouldUnregister:!0}),{isChanged:o,resetBaseline:i}=mm(r,e),{authUrl:s,updateAuthUrl:l}=_s(),c="yes"===r.watch("mail_report_choose"),u="yes"===r.watch("fallback_has_setting_mail"),d="yes"===r.watch("uninstall_flag"),m=Xt({mutationKey:["dashboard","additionalSettings"],mutationFn:e=>async function(e){var t;const n={...{...(t=e)||{},...t.fallback_mailer_provider&&!["mail","smtp","zoho","outlookms"].includes(t.fallback_mailer_provider)&&t.fallback_service_provider_mailer_settings&&{fallback_service_provider_mailer_settings:t.fallback_service_provider_mailer_settings[t.fallback_mailer_provider]}},isNetworkAdmin:window.yaySmtpWpData.is_network_admin};return await Xc.postJson("yaysmtp_save_addition_settings",{params:{...n}})}(e)});return React.createElement("div",{className:"mx-auto mt-6 w-[1000px] max-w-[90%] px-2.5"},React.createElement("h1",{className:"py-4 text-3xl font-bold md:py-8"},__("Settings")),React.createElement(ap,{...r},React.createElement("form",{onSubmit:r.handleSubmit(async n=>{try{a(!0);const o=im(e,n);t(o),r.reset(o,{keepValues:!0});const c=await m.mutateAsync(n);if(c.success){const e=c.data.respData;if((null==e?void 0:e.authUrl)&&(null==e?void 0:e.authUrl)){const t={...s,...e.authUrl};l(t)}i(),Zx(c.data.mess)}else Gx(c.data.mess)}catch(o){Gx(o instanceof Error?o.message:__("Failed to save settings"))}finally{a(!1)}},function(e){Gx(__("Please check your settings")),console.log("Invalid settings",{errors:e,formValues:r.getValues()})})},React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("h2",{className:"text-foreground pb-6 text-xl font-semibold"},__("Additional settings")),React.createElement("div",{className:"flex gap-3"},React.createElement(op,{name:"disable_emails_delivery",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"disable_emails_delivery",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))}),React.createElement("div",{className:"flex flex-col gap-1"},React.createElement(cp,{htmlFor:"disable_emails_delivery",className:"text-sm font-medium"},__("Preview mode")),React.createElement("p",{className:"text-muted-foreground text-sm"},__("View your email assets and logs without sending them through your SMTP service. No credits or limits will be consumed.")))),React.createElement("div",{className:"mt-4 flex gap-3"},React.createElement(op,{name:"mail_report_choose",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"mail_report_choose",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))}),React.createElement("div",{className:"flex flex-col gap-1"},React.createElement(cp,{htmlFor:"mail_report_choose",className:"text-sm font-medium"},__("Email notifications")),React.createElement("p",{className:"text-muted-foreground text-sm"},__("Receive SMTP email delivery summary via email.")),c&&React.createElement(op,{name:"mail_report_type",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(bj,{className:"mt-2.5",value:e.value,onValueChange:t=>{t&&e.onChange(t)},defaultValue:e.value,size:"lg"},React.createElement(wj,{value:"weekly"},__("Weekly")),React.createElement(wj,{value:"monthly"},__("Monthly")))))}))))),React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("div",{className:"flex items-center justify-between"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement(cp,{htmlFor:"fallback_has_setting_mail",className:"text-foreground text-xl font-semibold"},__("Fallback mailer")),React.createElement(op,{name:"fallback_has_setting_mail",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{size:"sm",id:"fallback_has_setting_mail",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))})),u&&React.createElement(Bj,null,React.createElement(Zf,{className:"cursor-pointer",variant:"outline"},React.createElement(zj,{strokeWidth:2}),React.createElement("span",{className:"hidden cursor-pointer text-sm lg:inline"},__("Send fallback test mail"))))),React.createElement("p",{className:"text-muted-foreground mt-2.5 text-sm"},__("Configure a secondary email service provider to send WordPress emails. Automatically used after the first mailer has 1 failed attempts.")),u&&React.createElement(Wj,null))),React.createElement(qf,{className:"mt-7.5 "+(d?"border-red-600 bg-red-50":"")},React.createElement(Xf,null,React.createElement("h2",{className:"text-foreground pb-6 text-xl font-semibold"},__("Uninstallation")),React.createElement("div",{className:"flex gap-3"},React.createElement(op,{name:"uninstall_flag",render:({field:e})=>React.createElement(lp,null,React.createElement(up,null,React.createElement(Fp,{className:d?"data-[state=checked]:bg-red-600 data-[state=checked]:hover:bg-red-600/80":"",size:"sm",id:"uninstall_flag",checked:"yes"===e.value,onCheckedChange:t=>e.onChange(t?"yes":"no")})))}),React.createElement("div",{className:"flex"},React.createElement(cp,{htmlFor:"uninstall_flag",className:"text-sm font-medium"},__("Remove all YaySMTP data when uninstalling plugin. All settings will be unrecoverable.")))))),React.createElement(Zf,{type:"submit",disabled:n,variant:o?"primary":"disabled",className:"relative mt-8 cursor-pointer"},React.createElement("span",{className:n?"invisible":""},__("Save Changes")),n&&React.createElement("span",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},React.createElement(Qi,{className:"animate-spin"}))))))}const qj=e=>({disable_emails_delivery:(null==e?void 0:e.disable_emails_delivery)||"no",mail_report_choose:(null==e?void 0:e.mail_report_choose)||"no",mail_report_type:(null==e?void 0:e.mail_report_type)||"weekly",uninstall_flag:(null==e?void 0:e.uninstall_flag)||"no",fallback_has_setting_mail:(null==e?void 0:e.fallback_has_setting_mail)||"no",fallback_from_email:(null==e?void 0:e.fallback_from_email)||"",fallback_from_name:(null==e?void 0:e.fallback_from_name)||"",fallback_force_from_email:(null==e?void 0:e.fallback_force_from_email)||"yes",fallback_force_from_name:(null==e?void 0:e.fallback_force_from_name)||"no",fallback_auth:(null==e?void 0:e.fallback_auth)||"no",fallback_auth_type:(null==e?void 0:e.fallback_auth_type)||"",fallback_host:(null==e?void 0:e.fallback_host)||"",fallback_port:(null==e?void 0:e.fallback_port)||"",fallback_smtp_user:(null==e?void 0:e.fallback_smtp_user)||"",fallback_smtp_pass:(null==e?void 0:e.fallback_smtp_pass)||"",fallback_mailer_provider:(null==e?void 0:e.fallback_mailer_provider)||"mail",fallback_service_provider_mailer_settings:(null==e?void 0:e.fallback_service_provider_mailer_settings)||{}});function Kj(){const{settings:e,updateSettings:t}=Ms(),[n,a]=ze.useState(!1),[r,o]=aO({importSettings:!1,exportEmailLogs:!1}),[i,s]=ze.useState(""),[l,c]=ze.useState(""),[u,d]=ze.useState(window.yaySmtpWpData.importedLogPluginList),[m,h]=aO({fieldsDisplay:["email_to","email_from","subject","date_time","body_content","status","mailer"],from:"",to:"",searchKey:"",searchValue:""}),f=$t(),p=Xt({mutationKey:["importEmailLogs"],mutationFn:e=>{return t=e,Xc.postJson("yaysmtp_import_smtp_email_logs",{plugin_name:t});var t},onSuccess:e=>{e.success&&(c(""),e.data.respData&&d(e.data.respData)),Zx(e.data.mess),f.invalidateQueries({queryKey:["emailLogs"]})},onError:e=>{Gx(e.message)}});return React.createElement("div",{className:"mx-auto mt-6 w-[1000px] max-w-[90%] px-2.5"},React.createElement("h1",{className:"py-4 text-3xl font-bold md:py-8"},__("Tools")),React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("h2",{className:"text-foreground text-xl font-semibold"},__("Import SMTP settings")),0===am().length?React.createElement("div",{className:"text-muted-foreground mt-2 text-sm"},React.createElement("p",null,__("We have found no previous SMTP settings from other plugins on your site."))):React.createElement(React.Fragment,null,React.createElement("div",{className:"text-muted-foreground mt-2 text-sm"},React.createElement("p",null,__("We have found previous SMTP settings from other plugin on your site.")),React.createElement("p",null,__("Please choose one plugin's settings that you want to import to YaySMTP."))),React.createElement("div",{className:"mt-8 flex flex-col gap-2"},React.createElement("h3",{className:"text-sm font-medium"},__("SMTP plugins")),React.createElement("div",{className:"w-full md:max-w-1/2"},React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"min-w-[200px] justify-between",disabled:r.importSettings},i?(()=>{const e=am().find(e=>e.val===i);return e?e.title:__("Select a plugin")})():__("Select a plugin"),React.createElement(ds,{className:"h-4 w-4"}))),React.createElement(aL,{align:"start"},am().map(e=>React.createElement(rL,{key:e.val,onClick:()=>s(e.val)},React.createElement("img",{src:`${window.yaySmtpWpData.YAY_SMTP_PLUGIN_URL}assets/img/${e.img}`,alt:e.title,className:"mr-2 h-6 w-6"}),e.title)))))),React.createElement(Zf,{onClick:async()=>{var n,a;if(i){o({importSettings:!0});try{const o=await(r=i,Xc.postJson("yaysmtp_import_smtp_settings",{plugin_name:r}));if(o.success){const r={...e,...null==(a=null==(n=o.data)?void 0:n.respData)?void 0:a.yaysmtpSettings};t(r),Zx(o.data.mess),s("")}else Gx(o.data.mess)}catch(l){Gx(__("Failed to import settings"))}finally{o({importSettings:!1})}var r}else Gx(__("Please select a plugin to import settings from"))},className:"mt-8 cursor-pointer",disabled:r.importSettings||!i},r.importSettings?React.createElement(React.Fragment,null,React.createElement(Rs,{className:"mr-2 h-4 w-4 animate-spin"}),__("Importing...")):__("Import"))))),React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("h2",{className:"text-foreground text-xl font-semibold"},__("Import email logs")),0===rm().length?React.createElement("div",{className:"text-muted-foreground mt-2 text-sm"},React.createElement("p",null,__("We have found no previous email logs from other plugins on your site."))):React.createElement(React.Fragment,null,React.createElement("div",{className:"text-muted-foreground mt-2 text-sm"},React.createElement("p",null,__("We have found previous email logs from other plugin on your site.")),React.createElement("p",null,__("Please choose one plugin's email logs that you want to import to YaySMTP."))),React.createElement("div",{className:"mt-8 flex flex-col gap-2"},React.createElement("h3",{className:"text-sm font-medium"},__("SMTP plugins")),React.createElement("div",{className:"w-full md:max-w-1/2"},React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"min-w-[200px] justify-between",disabled:p.isPending},l?(()=>{const e=rm().find(e=>e.val===l);return e?e.title:__("Select a plugin")})():__("Select a plugin"),React.createElement(ds,{className:"h-4 w-4"}))),React.createElement(aL,{align:"start"},rm().every(e=>1===+u[e.val])&&React.createElement("div",{className:"px-3 py-2 text-sm"},__("All plugins have been imported")),rm().map(e=>React.createElement(rL,{key:e.val,onClick:()=>c(e.val),disabled:1===+u[e.val]},React.createElement("img",{src:`${window.yaySmtpWpData.YAY_SMTP_PLUGIN_URL}assets/img/${e.img}`,alt:e.title,className:"mr-2 h-6 w-6"}),e.title)))))),React.createElement(Zf,{onClick:()=>{p.isPending||p.mutate(l)},className:"mt-8 cursor-pointer",disabled:p.isPending||!l},p.isPending?React.createElement(React.Fragment,null,React.createElement(Rs,{className:"mr-2 h-4 w-4 animate-spin"}),__("Importing...")):__("Import"))))),React.createElement(qf,{className:"mt-7.5"},React.createElement(Xf,null,React.createElement("h2",{className:"text-foreground text-xl font-semibold"},__("Export email logs")),React.createElement("div",{className:"text-muted-foreground mt-2 text-sm"},React.createElement("p",null,__("Select fields to export email log in CSV (.csv)"))),React.createElement("div",{className:"flex flex-col gap-2"},React.createElement("div",{className:"mt-8"},React.createElement("h3",{className:"text-foreground text-sm font-medium"},__("General fields")),React.createElement("div",{className:"mt-2.5 flex flex-col gap-2"},React.createElement("div",{className:"grid grid-cols-3 gap-2 lg:flex lg:gap-8"},Yj.map(e=>React.createElement("div",{key:e.id,className:"flex items-center gap-2 text-sm font-normal"},React.createElement(NL,{id:e.id,checked:m.fieldsDisplay.includes(e.id),onCheckedChange:t=>{h(t?{fieldsDisplay:[...m.fieldsDisplay,e.id]}:{fieldsDisplay:m.fieldsDisplay.filter(t=>t!==e.id)})},disabled:r.exportEmailLogs}),React.createElement(np,{htmlFor:e.id,className:"text-sm font-normal"},e.label)))))),React.createElement("div",{className:"mt-4"},React.createElement("h3",{className:"text-foreground text-sm font-medium"},__("Additional fields")),React.createElement("div",{className:"mt-2.5 flex flex-col gap-2"},React.createElement("div",{className:"grid grid-cols-3 gap-2 lg:flex lg:gap-8"},Xj.map(e=>React.createElement("div",{key:e.id,className:"flex items-center gap-2 text-sm font-normal"},React.createElement(NL,{id:e.id,checked:m.fieldsDisplay.includes(e.id),onCheckedChange:t=>{h(t?{fieldsDisplay:[...m.fieldsDisplay,e.id]}:{fieldsDisplay:m.fieldsDisplay.filter(t=>t!==e.id)})},disabled:r.exportEmailLogs}),React.createElement(np,{htmlFor:e.id,className:"text-sm font-normal"},e.label)))))),React.createElement("div",{className:"mt-4"},React.createElement("h3",{className:"text-foreground text-sm font-medium"},__("Sending date")),React.createElement("div",{className:"mt-2 flex w-full gap-4 md:max-w-1/2"},React.createElement(xx,{open:n,onOpenChange:a},React.createElement(Ex,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"w-70 justify-start gap-4 font-normal",disabled:r.exportEmailLogs},React.createElement(cs,{className:"h-4 w-4"}),React.createElement("span",{className:"flex-1 text-left"},om(m.from&&m.to?{from:new Date(m.from),to:new Date(m.to)}:void 0)),m.from&&React.createElement("div",{className:"flex h-4 w-4 items-center justify-center p-0 hover:bg-transparent",onClick:e=>{e.stopPropagation(),h({from:"",to:""})},role:"button",tabIndex:0},React.createElement(ks,{className:"h-3 w-3"})))),React.createElement(Rx,{className:"w-auto p-0",align:"start"},React.createElement(uF,{mode:"range",selected:m.from&&m.to?{from:new Date(m.from),to:new Date(m.to)}:void 0,onSelect:e=>{h({from:(null==e?void 0:e.from)?qu(e.from,"yyyy-MM-dd"):"",to:(null==e?void 0:e.to)?qu(e.to,"yyyy-MM-dd"):""})},numberOfMonths:2}))))),React.createElement("div",{className:"mt-4"},React.createElement("h3",{className:"text-foreground text-sm font-medium"},__("Filters")),React.createElement("div",{className:"mt-2 flex w-full gap-4 md:max-w-1/2"},React.createElement(tL,null,React.createElement(nL,{asChild:!0},React.createElement(Zf,{variant:"outline",className:"min-w-[200px] justify-between",disabled:r.exportEmailLogs},m.searchKey?{email_to:__("To email"),subject:__("Subject"),body_content:__("Content"),root_name:__("Generated by")}[m.searchKey]:React.createElement("span",{className:"text-muted-foreground"},__("Select a search key")),React.createElement(ds,{className:"h-4 w-4"}))),React.createElement(aL,{align:"start"},React.createElement(oL,{iconPosition:"right",checked:"email_to"===m.searchKey,onCheckedChange:e=>{h(e?{searchKey:"email_to"}:{searchKey:""})}},__("To email")),React.createElement(oL,{iconPosition:"right",checked:"subject"===m.searchKey,onCheckedChange:e=>{h(e?{searchKey:"subject"}:{searchKey:""})}},__("Subject")),React.createElement(oL,{iconPosition:"right",checked:"body_content"===m.searchKey,onCheckedChange:e=>{h(e?{searchKey:"body_content"}:{searchKey:""})}},__("Content")),React.createElement(oL,{iconPosition:"right",checked:"root_name"===m.searchKey,onCheckedChange:e=>{h(e?{searchKey:"root_name"}:{searchKey:""})}},__("Generated by")))),React.createElement(hp,{value:m.searchValue,onChange:e=>h({searchValue:e.target.value}),placeholder:__("Value"),disabled:r.exportEmailLogs})))),React.createElement(Zf,{disabled:r.exportEmailLogs||0===m.fieldsDisplay.length,onClick:async()=>{o({exportEmailLogs:!0});try{const t=await(e=m,Xc.post("yaysmtp_export_email_log",{params:{...e}}));if("object"!=typeof t){const e=new Blob([t],{type:"application/octetstream"}),n=window.URL.createObjectURL(e),a=document.createElement("a");a.href=n,a.download="yaysmtp-email-log-"+qu(new Date,"yyyyMMddHHmmss")+".csv",a.click(),window.URL.revokeObjectURL(n),Zx(__("Email logs exported successfully"))}else Gx(__("Data is empty"))}catch(t){Gx(__("Failed to export email logs"))}finally{o({exportEmailLogs:!1})}var e},className:"mt-8 cursor-pointer"},r.exportEmailLogs?React.createElement(React.Fragment,null,React.createElement(Rs,{className:"mr-2 h-4 w-4 animate-spin"}),__("Exporting...")):__("Export logs")))))}const Yj=[{id:"email_to",label:__("To email")},{id:"email_from",label:__("From email")},{id:"subject",label:__("Subject")},{id:"date_time",label:__("Time")},{id:"body_content",label:__("Body")},{id:"status",label:__("Status")}],Xj=[{id:"mailer",label:__("Mailer")},{id:"id",label:__("Email log ID")},{id:"reason_error",label:__("Error details")},{id:"tracking_opened",label:__("Opened")},{id:"tracking_clicked",label:__("Clicked")},{id:"root_name",label:__("Generated by")}],Qj=new Dt;function Jj(){return React.createElement(Zt,{client:Qj},React.createElement(yr,{router:eV}))}const eV=(tV=[{path:"/",element:React.createElement(Ij,null),children:[{index:!0,element:React.createElement("div",null,"This should never be shown"),loader:()=>{const e=new URLSearchParams(window.location.search).get("tab");if("additional-setting"===e){const e=new URL(window.location.href);return e.searchParams.delete("tab"),window.history.replaceState({},"",e.toString()),In("/settings")}if("email-log"===e){const e=new URL(window.location.href);return e.searchParams.delete("tab"),window.history.replaceState({},"",e.toString()),In("/email-logs")}return"yes"!==window.yaySmtpWpData.is_multisite_mode||window.yaySmtpWpData.is_network_admin?In("/dashboard"):In("/email-logs")}},{path:"dashboard",element:React.createElement(lT,null)},{path:"settings",element:React.createElement(Gj,null)},{path:"email-logs",element:React.createElement(Cj,null)},{path:"tools",element:React.createElement(Kj,null)}]}],function(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;nn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a,r,o,i=e.hydrationRouteProperties||[],s=e.mapRouteProperties||ea,l={},c=fn(e.routes,s,void 0,l),u=e.basename||"/",d=e.dataStrategy||fa,m={unstable_middleware:!1,...e.future},h=null,f=new Set,p=null,g=null,v=null,y=null!=e.hydrationData,b=pn(c,e.history.location,u),w=!1,x=null;if(null!=b||e.patchRoutesOnNavigation)if(b&&!e.hydrationData&&de(b,c,e.history.location.pathname).active&&(b=null),b)if(b.some(e=>e.route.lazy))r=!1;else if(b.some(e=>e.route.loader)){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=b.findIndex(e=>void 0!==n[e.route.id]);r=b.slice(0,e+1).every(e=>!ia(e.route,t,n))}else r=b.every(e=>!ia(e.route,t,n))}else r=!0;else{r=!1,b=[];let t=de(null,c,e.history.location.pathname);t.active&&t.matches&&(w=!0,b=t.matches)}else{let t=Aa(404,{pathname:e.history.location.pathname}),{matches:n,route:a}=Pa(c);r=!0,b=n,x={[a.id]:t}}let E,R,C={historyAction:e.history.action,location:e.history.location,matches:b,initialized:r,navigation:Kn,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},k="POP",_=!1,S=!1,M=new Map,N=null,P=!1,A=!1,D=new Set,T=new Map,O=0,F=-1,z=new Map,L=new Set,j=new Map,V=new Map,I=new Set,H=new Map,B=null;function W(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=l[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),C={...C,...e};let n=[],a=[];C.fetchers.forEach((e,t)=>{"idle"===e.state&&(I.has(t)?n.push(t):a.push(t))}),I.forEach(e=>{C.fetchers.has(e)||T.has(e)||n.push(e)}),[...f].forEach(e=>e(C,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),n.forEach(e=>ee(e)),a.forEach(e=>C.fetchers.delete(e))}function U(t,n,{flushSync:r}={}){var o,i;let s,l=null!=C.actionData&&null!=C.navigation.formMethod&&Va(C.navigation.formMethod)&&"loading"===C.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:l?C.actionData:null;let u=n.loaderData?Sa(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,d=C.blockers;d.size>0&&(d=new Map(d),d.forEach((e,t)=>d.set(t,Xn)));let m,h=!P&&ue(t,n.matches||C.matches),f=!0===_||null!=C.navigation.formMethod&&Va(C.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(a&&(c=a,a=void 0),P||"POP"===k||("PUSH"===k?e.history.push(t,t.state):"REPLACE"===k&&e.history.replace(t,t.state)),"POP"===k){let e=M.get(C.location.pathname);e&&e.has(t.pathname)?m={currentLocation:C.location,nextLocation:t}:M.has(t.pathname)&&(m={currentLocation:t,nextLocation:C.location})}else if(S){let e=M.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),M.set(C.location.pathname,e)),m={currentLocation:C.location,nextLocation:t}}W({...n,actionData:s,loaderData:u,historyAction:k,location:t,initialized:!0,navigation:Kn,revalidation:"idle",restoreScrollPosition:h,preventScrollReset:f,blockers:d},{viewTransitionOpts:m,flushSync:!0===r}),k="POP",_=!1,S=!1,P=!1,A=!1,null==B||B.resolve(),B=null}async function $(t,n,r){E&&E.abort(),E=null,k=t,P=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(p&&v){let n=ce(e,t);p[n]=v()}}(C.location,C.matches),_=!0===(r&&r.preventScrollReset),S=!0===(r&&r.enableViewTransition);let o=a||c,d=r&&r.overrideNavigation,m=(null==r?void 0:r.initialHydration)&&C.matches&&C.matches.length>0&&!w?C.matches:pn(o,n,u),h=!0===(r&&r.flushSync);if(m&&C.initialized&&!A&&(f=C.location,g=n,f.pathname===g.pathname&&f.search===g.search&&(""===f.hash?""!==g.hash:f.hash===g.hash||""!==g.hash))&&!(r&&r.submission&&Va(r.submission.formMethod)))return void U(n,{matches:m},{flushSync:h});var f,g;let y=de(m,o,n.pathname);if(y.active&&y.matches&&(m=y.matches),!m){let{error:e,notFoundMatches:t,route:a}=le(n.pathname);return void U(n,{matches:t,loaderData:{},errors:{[a.id]:e}},{flushSync:h})}E=new AbortController;let b,x=Ra(e.history,n,E.signal,r&&r.submission),R=new un(e.unstable_getContext?await e.unstable_getContext():void 0);if(r&&r.pendingError)b=[Na(m).route.id,{type:"error",error:r.pendingError}];else if(r&&r.submission&&Va(r.submission.formMethod)){let t=await async function(e,t,n,a,r,o,c,d={}){Y();let m,h=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,n);if(W({navigation:h},{flushSync:!0===d.flushSync}),o){let n=await me(a,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){let e=Na(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:a}=le(t.pathname);return{matches:e,pendingActionResult:[a.id,{type:"error",error:n}]}}a=n.matches}let f=Ha(a,t);if(f.route.action||f.route.lazy){let t=ba(s,l,e,a,f,c?[]:i,r),n=await q(e,t,r,null);if(m=n[f.route.id],!m)for(let e of a)if(n[e.route.id]){m=n[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:Aa(405,{method:e.method,pathname:t.pathname,routeId:f.route.id})};if(za(m)){let t;return t=d&&null!=d.replace?d.replace:Ea(m.response.headers.get("Location"),new URL(e.url),u)===C.location.pathname+C.location.search,await G(e,m,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(Fa(m)){let e=Na(a,f.route.id);return!0!==(d&&d.replace)&&(k="PUSH"),{matches:a,pendingActionResult:[e.route.id,m,f.route.id]}}return{matches:a,pendingActionResult:[f.route.id,m]}}(x,n,r.submission,m,R,y.active,r&&!0===r.initialHydration,{replace:r.replace,flushSync:h});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,a]=t.pendingActionResult;if(Fa(a)&&Bn(a.error)&&404===a.error.status)return E=null,void U(n,{matches:t.matches,loaderData:{},errors:{[e]:a.error}})}m=t.matches||m,b=t.pendingActionResult,d=Wa(n,r.submission),h=!1,y.active=!1,x=Ra(e.history,x.url,x.signal)}let{shortCircuited:M,matches:N,loaderData:z,errors:V}=await async function(t,n,r,o,d,m,h,f,p,g,v,y){let b=m||Wa(n,h),w=h||f||Ba(b),x=!P&&!g;if(d){if(x){let e=Z(y);W({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await me(r,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Na(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:a}=le(n.pathname);return{matches:t,loaderData:{},errors:{[a.id]:e}}}r=e.matches}let R=a||c,{dsMatches:k,revalidatingFetchers:_}=oa(t,o,s,l,e.history,C,r,w,n,g?[]:i,!0===g,A,D,I,j,L,R,u,null!=e.patchRoutesOnNavigation,y);if(F=++O,!e.dataStrategy&&!k.some(e=>e.shouldLoad)&&0===_.length){let e=ae();return U(n,{matches:r,loaderData:{},errors:y&&Fa(y[1])?{[y[0]]:y[1].error}:null,...Ma(y),...e?{fetchers:new Map(C.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(x){let e={};if(!d){e.navigation=b;let t=Z(y);void 0!==t&&(e.actionData=t)}_.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Ua(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}(_)),W(e,{flushSync:v})}_.forEach(e=>{te(e.key),e.controller&&T.set(e.key,e.controller)});let S=()=>_.forEach(e=>te(e.key));E&&E.signal.addEventListener("abort",S);let{loaderResults:M,fetcherResults:N}=await K(k,_,t,o);if(t.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",S),_.forEach(e=>T.delete(e.key));let z=Da(M);if(z)return await G(t,z.result,!0,{replace:p}),{shortCircuited:!0};if(z=Da(N),z)return L.add(z.key),await G(t,z.result,!0,{replace:p}),{shortCircuited:!0};let{loaderData:V,errors:H}=_a(C,r,M,y,_,N);g&&C.errors&&(H={...C.errors,...H});let B=ae(),$=re(F);return{matches:r,loaderData:V,errors:H,...B||$||_.length>0?{fetchers:new Map(C.fetchers)}:{}}}(x,n,m,R,y.active,d,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,h,b);M||(E=null,U(n,{matches:N||m,...Ma(b),loaderData:z,errors:V}))}function Z(e){return e&&!Fa(e[1])?{[e[0]]:e[1].data}:C.actionData?0===Object.keys(C.actionData).length?null:C.actionData:void 0}async function G(e,a,r,{submission:o,fetcherSubmission:i,preventScrollReset:s,replace:l}={}){a.response.headers.has("X-Remix-Revalidate")&&(A=!0);let c=a.response.headers.get("Location");nn(c,"Expected a Location header on the redirect Response"),c=Ea(c,new URL(e.url),u);let d=on(C.location,c,{_isRedirect:!0});if(n){let e=!1;if(a.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(Jn(c)){const n=cn(c,!0);e=n.origin!==t.location.origin||null==An(n.pathname,u)}if(e)return void(l?t.location.replace(c):t.location.assign(c))}E=null;let m=!0===l||a.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:h,formAction:f,formEncType:p}=C.navigation;!o&&!i&&h&&f&&p&&(o=Ba(C.navigation));let g=o||i;if(qn.has(a.response.status)&&g&&Va(g.formMethod))await $(m,d,{submission:{...g,formAction:c},preventScrollReset:s||_,enableViewTransition:r?S:void 0});else{let e=Wa(d,o);await $(m,d,{overrideNavigation:e,fetcherSubmission:i,preventScrollReset:s||_,enableViewTransition:r?S:void 0})}}async function q(e,t,n,a){let r,o={};try{r=await async function(e,t,n,a,r){n.some(e=>{var t;return null==(t=e._lazyPromises)?void 0:t.middleware})&&await Promise.all(n.map(e=>{var t;return null==(t=e._lazyPromises)?void 0:t.middleware}));let o={request:t,params:n[0].params,context:r,matches:n},i=await e({...o,fetcherKey:a,unstable_runClientMiddleware:e=>{let t=o;return pa(t,!1,()=>e({...t,fetcherKey:a,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(e,t)=>({[t]:{type:"error",result:e}}))}});try{await Promise.all(n.flatMap(e=>{var t,n;return[null==(t=e._lazyPromises)?void 0:t.handler,null==(n=e._lazyPromises)?void 0:n.route]}))}catch(nV){}return i}(d,e,t,a,n)}catch(nV){return t.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:"error",error:nV}}),o}if(e.signal.aborted)return o;for(let[i,s]of Object.entries(r))if(Oa(s)){let n=s.result;o[i]={type:"redirect",response:xa(n,e,i,t,u)}}else o[i]=await wa(s);return o}async function K(e,t,n,a){let r=q(n,e,a,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await q(e.request,e.matches,a,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:Aa(404,{pathname:e.path})}})}));return{loaderResults:await r,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Y(){A=!0,j.forEach((e,t)=>{T.has(t)&&D.add(t),te(t)})}function X(e,t,n={}){C.fetchers.set(e,t),W({fetchers:new Map(C.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Q(e,t,n,a={}){let r=Na(C.matches,t);ee(e),W({errors:{[r.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:!0===(a&&a.flushSync)})}function J(e){return V.set(e,(V.get(e)||0)+1),I.has(e)&&I.delete(e),C.fetchers.get(e)||Yn}function ee(e){let t=C.fetchers.get(e);!T.has(e)||t&&"loading"===t.state&&z.has(e)||te(e),j.delete(e),z.delete(e),L.delete(e),I.delete(e),D.delete(e),C.fetchers.delete(e)}function te(e){let t=T.get(e);t&&(t.abort(),T.delete(e))}function ne(e){for(let t of e){let e=$a(J(t).data);C.fetchers.set(t,e)}}function ae(){let e=[],t=!1;for(let n of L){let a=C.fetchers.get(n);nn(a,`Expected fetcher: ${n}`),"loading"===a.state&&(L.delete(n),e.push(n),t=!0)}return ne(e),t}function re(e){let t=[];for(let[n,a]of z)if(a<e){let e=C.fetchers.get(n);nn(e,`Expected fetcher: ${n}`),"loading"===e.state&&(te(n),z.delete(n),t.push(n))}return ne(t),t.length>0}function oe(e){C.blockers.delete(e),H.delete(e)}function ie(e,t){let n=C.blockers.get(e)||Xn;nn("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let a=new Map(C.blockers);a.set(e,t),W({blockers:a})}function se({currentLocation:e,nextLocation:t,historyAction:n}){if(0===H.size)return;H.size>1&&an(!1,"A router only supports one blocker at a time");let a=Array.from(H.entries()),[r,o]=a[a.length-1],i=C.blockers.get(r);return i&&"proceeding"===i.state?void 0:o({currentLocation:e,nextLocation:t,historyAction:n})?r:void 0}function le(e){let t=Aa(404,{pathname:e}),n=a||c,{matches:r,route:o}=Pa(n);return{notFoundMatches:r,route:o,error:t}}function ce(e,t){return g&&g(e,t.map(e=>function(e,t){let{route:n,pathname:a,params:r}=e;return{id:n.id,pathname:a,params:r,data:t[n.id],handle:n.handle}}(e,C.loaderData)))||e.key}function ue(e,t){if(p){let n=ce(e,t),a=p[n];if("number"==typeof a)return a}return null}function de(t,n,a){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:gn(n,a,u,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:gn(n,a,u,!0)}}return{active:!1,matches:null}}async function me(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let i=t;for(;;){let t=null==a,d=a||c,m=l;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:i,fetcherKey:o,patch:(e,t)=>{r.aborted||la(e,t,d,m,s,!1)}})}catch(nV){return{type:"error",error:nV,partialMatches:i}}finally{t&&!r.aborted&&(c=[...c])}if(r.aborted)return{type:"aborted"};let h=pn(d,n,u);if(h)return{type:"success",matches:h};let f=gn(d,n,u,!0);if(!f||i.length===f.length&&i.every((e,t)=>e.route.id===f[t].route.id))return{type:"success",matches:null};i=f}}return o={get basename(){return u},get future(){return m},get state(){return C},get routes(){return c},get window(){return t},initialize:function(){if(h=e.history.listen(({action:t,location:n,delta:a})=>{if(R)return R(),void(R=void 0);an(0===H.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let r=se({currentLocation:C.location,nextLocation:n,historyAction:t});if(r&&null!=a){let t=new Promise(e=>{R=e});return e.history.go(-1*a),void ie(r,{state:"blocked",location:n,proceed(){ie(r,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(C.blockers);e.set(r,Xn),W({blockers:e})}})}return $(t,n)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(ta);if(n){let e=JSON.parse(n);for(let[n,a]of Object.entries(e||{}))a&&Array.isArray(a)&&t.set(n,new Set(a||[]))}}catch(nV){}}(t,M);let e=()=>function(e,t){if(t.size>0){let a={};for(let[e,n]of t)a[e]=[...n];try{e.sessionStorage.setItem(ta,JSON.stringify(a))}catch(n){an(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}(t,M);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return C.initialized||$("POP",C.location,{initialHydration:!0}),o},subscribe:function(e){return f.add(e),()=>f.delete(e)},enableScrollRestoration:function(e,t,n){if(p=e,v=t,g=n||null,!y&&C.navigation===Kn){y=!0;let e=ue(C.location,C.matches);null!=e&&W({restoreScrollPosition:e})}return()=>{p=null,v=null,g=null}},navigate:async function t(n,a){if("number"==typeof n)return void e.history.go(n);let r=aa(C.location,C.matches,u,n,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:o,submission:i,error:s}=ra(!1,r,a),l=C.location,c=on(C.location,o,a&&a.state);c={...c,...e.history.encodeLocation(c)};let d=a&&null!=a.replace?a.replace:void 0,m="PUSH";!0===d?m="REPLACE":!1===d||null!=i&&Va(i.formMethod)&&i.formAction===C.location.pathname+C.location.search&&(m="REPLACE");let h=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,f=!0===(a&&a.flushSync),p=se({currentLocation:l,nextLocation:c,historyAction:m});p?ie(p,{state:"blocked",location:c,proceed(){ie(p,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(n,a)},reset(){let e=new Map(C.blockers);e.set(p,Xn),W({blockers:e})}}):await $(m,c,{submission:i,pendingError:s,preventScrollReset:h,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:f})},fetch:async function(t,n,r,o){te(t);let d=!0===(o&&o.flushSync),m=a||c,h=aa(C.location,C.matches,u,r,n,null==o?void 0:o.relative),f=pn(m,h,u),p=de(f,m,h);if(p.active&&p.matches&&(f=p.matches),!f)return void Q(t,n,Aa(404,{pathname:h}),{flushSync:d});let{path:g,submission:v,error:y}=ra(!0,h,o);if(y)return void Q(t,n,y,{flushSync:d});let b=new un(e.unstable_getContext?await e.unstable_getContext():void 0),w=!0===(o&&o.preventScrollReset);v&&Va(v.formMethod)?await async function(t,n,r,o,d,m,h,f,p){Y(),j.delete(t);let g=C.fetchers.get(t);X(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(p,g),{flushSync:h});let v=new AbortController,y=Ra(e.history,r,v.signal,p);if(m){let e=await me(o,new URL(y.url).pathname,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Q(t,n,e.error,{flushSync:h});if(!e.matches)return void Q(t,n,Aa(404,{pathname:r}),{flushSync:h});o=e.matches}let b=Ha(o,r);if(!b.route.action&&!b.route.lazy){let e=Aa(405,{method:p.formMethod,pathname:r,routeId:n});return void Q(t,n,e,{flushSync:h})}T.set(t,v);let w=O,x=ba(s,l,y,o,b,i,d),R=(await q(y,x,d,t))[b.route.id];if(y.signal.aborted)return void(T.get(t)===v&&T.delete(t));if(I.has(t)){if(za(R)||Fa(R))return void X(t,$a(void 0))}else{if(za(R))return T.delete(t),F>w?void X(t,$a(void 0)):(L.add(t),X(t,Ua(p)),G(y,R,!1,{fetcherSubmission:p,preventScrollReset:f}));if(Fa(R))return void Q(t,n,R.error)}let _=C.navigation.location||C.location,S=Ra(e.history,_,v.signal),M=a||c,N="idle"!==C.navigation.state?pn(M,C.navigation.location,u):C.matches;nn(N,"Didn't find any matches after fetcher action");let P=++O;z.set(t,P);let V=Ua(p,R.data);C.fetchers.set(t,V);let{dsMatches:H,revalidatingFetchers:B}=oa(S,d,s,l,e.history,C,N,p,_,i,!1,A,D,I,j,L,M,u,null!=e.patchRoutesOnNavigation,[b.route.id,R]);B.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),a=Ua(void 0,n?n.data:void 0);C.fetchers.set(t,a),te(t),e.controller&&T.set(t,e.controller)}),W({fetchers:new Map(C.fetchers)});let $=()=>B.forEach(e=>te(e.key));v.signal.addEventListener("abort",$);let{loaderResults:Z,fetcherResults:J}=await K(H,B,S,d);if(v.signal.aborted)return;if(v.signal.removeEventListener("abort",$),z.delete(t),T.delete(t),B.forEach(e=>T.delete(e.key)),C.fetchers.has(t)){let e=$a(R.data);C.fetchers.set(t,e)}let ee=Da(Z);if(ee)return G(S,ee.result,!1,{preventScrollReset:f});if(ee=Da(J),ee)return L.add(ee.key),G(S,ee.result,!1,{preventScrollReset:f});let{loaderData:ne,errors:ae}=_a(C,N,Z,void 0,B,J);re(P),"loading"===C.navigation.state&&P>F?(nn(k,"Expected pending action"),E&&E.abort(),U(C.navigation.location,{matches:N,loaderData:ne,errors:ae,fetchers:new Map(C.fetchers)})):(W({errors:ae,loaderData:Sa(C.loaderData,ne,N,ae),fetchers:new Map(C.fetchers)}),A=!1)}(t,n,g,f,b,p.active,d,w,v):(j.set(t,{routeId:n,path:g}),await async function(t,n,a,r,o,c,u,d,m){let h=C.fetchers.get(t);X(t,Ua(m,h?h.data:void 0),{flushSync:u});let f=new AbortController,p=Ra(e.history,a,f.signal);if(c){let e=await me(r,new URL(p.url).pathname,p.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Q(t,n,e.error,{flushSync:u});if(!e.matches)return void Q(t,n,Aa(404,{pathname:a}),{flushSync:u});r=e.matches}let g=Ha(r,a);T.set(t,f);let v=O,y=ba(s,l,p,r,g,i,o),b=(await q(p,y,o,t))[g.route.id];if(T.get(t)===f&&T.delete(t),!p.signal.aborted){if(!I.has(t))return za(b)?F>v?void X(t,$a(void 0)):(L.add(t),void(await G(p,b,!1,{preventScrollReset:d}))):void(Fa(b)?Q(t,n,b.error):X(t,$a(b.data)));X(t,$a(void 0))}}(t,n,g,f,b,p.active,d,w,v))},revalidate:function(){B||(B=function(){let e,t,n=new Promise((a,r)=>{e=async e=>{a(e);try{await n}catch(nV){}},t=async e=>{r(e);try{await n}catch(nV){}}});return{promise:n,resolve:e,reject:t}}()),Y(),W({revalidation:"loading"});let e=B.promise;return"submitting"===C.navigation.state?e:"idle"===C.navigation.state?($(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),e):($(k||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:!0===S}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:J,deleteFetcher:function(e){let t=(V.get(e)||0)-1;t<=0?(V.delete(e),I.add(e)):V.set(e,t),W({fetchers:new Map(C.fetchers)})},dispose:function(){h&&h(),N&&N(),f.clear(),E&&E.abort(),C.fetchers.forEach((e,t)=>ee(t)),C.blockers.forEach((e,t)=>oe(t))},getBlocker:function(e,t){let n=C.blockers.get(e)||Xn;return H.get(e)!==t&&H.set(e,t),n},deleteBlocker:oe,patchRoutes:function(e,t,n=!1){let r=null==a;la(e,t,a||c,l,s,n),r&&(c=[...c],W({}))},_internalFetchControllers:T,_internalSetRoutes:function(e){l={},a=fn(e,s,void 0,l)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){W(e)}},o}({basename:void 0,unstable_getContext:void 0,future:void 0,history:function(e={}){return function(e,t,n,a={}){let{window:r=document.defaultView,v5Compat:o=!1}=a,i=r.history,s="POP",l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function m(e){return cn(e)}null==c&&(c=0,i.replaceState({...i.state,idx:c},""));let h={get action(){return s},get location(){return e(r,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(tn,d),l=e,()=>{r.removeEventListener(tn,d),l=null}},createHref:e=>t(r,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let a=on(h.location,e,t);n&&n(a,e),c=u()+1;let d=rn(a,c),m=h.createHref(a);try{i.pushState(d,"",m)}catch(f){if(f instanceof DOMException&&"DataCloneError"===f.name)throw f;r.location.assign(m)}o&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s="REPLACE";let a=on(h.location,e,t);n&&n(a,e),c=u();let r=rn(a,c),d=h.createHref(a);i.replaceState(r,"",d),o&&l&&l({action:s,location:h.location,delta:0})},go:e=>i.go(e)};return h}(function(e,t){let{pathname:n="/",search:a="",hash:r=""}=ln(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),on("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),a="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");a=-1===n?t:t.slice(0,n)}return a+"#"+("string"==typeof t?t:sn(t))},function(e,t){an("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:void 0}),hydrationData:function(){let e=null==window?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Vr(e.errors)}),e}(),routes:tV,mapRouteProperties:function(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&an(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:ze.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&an(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:ze.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&an(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:ze.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t},hydrationRouteProperties:["HydrateFallback","hydrateFallbackElement"],dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize());var tV;He.createRoot(document.getElementById("yaysmtp")).render(Le.createElement(Le.StrictMode,null,Le.createElement(Jj,null)));