(()=>{var e={75:(e,t,r)=>{"use strict";var n=r(453),o=r(487),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?o(r):r}},487:(e,t,r)=>{"use strict";var n=r(743),o=r(453),a=r(897),i=r(675),l=o("%Function.prototype.apply%"),s=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(s,l),u=r(655),d=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=c(n,s,arguments);return a(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(n,l,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},41:(e,t,r)=>{"use strict";var n=r(655),o=r(68),a=r(675),i=r(795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!i&&i(e,t);if(n)n(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===l&&d?d.enumerable:!l,value:r,writable:null===s&&d?d.writable:!s});else{if(!u&&(l||s||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},237:e=>{"use strict";e.exports=EvalError},383:e=>{"use strict";e.exports=Error},290:e=>{"use strict";e.exports=RangeError},538:e=>{"use strict";e.exports=ReferenceError},68:e=>{"use strict";e.exports=SyntaxError},675:e=>{"use strict";e.exports=TypeError},345:e=>{"use strict";e.exports=URIError},353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(353);e.exports=Function.prototype.bind||n},453:(e,t,r)=>{"use strict";var n,o=r(383),a=r(237),i=r(290),l=r(538),s=r(68),c=r(675),u=r(345),d=Function,p=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var m=function(){throw new c},h=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(e){return m}}}():m,y=r(39)(),g=r(24)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":h,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));_["%Error.prototype%"]=E}var S=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return _[t]=r,r},x={__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"]},C=r(743),A=r(957),O=C.call(Function.call,Array.prototype.concat),L=C.call(Function.apply,Array.prototype.splice),R=C.call(Function.call,String.prototype.replace),k=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,T=function(e,t){var r,n=e;if(A(x,n)&&(n="%"+(r=x[n])[0]+"%"),A(_,n)){var o=_[n];if(o===b&&(o=S(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return R(e,N,(function(e,t,r,o){n[n.length]=r?R(o,I,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=T("%"+n+"%",t),a=o.name,i=o.value,l=!1,u=o.alias;u&&(n=u[0],L(r,O([0,1],u)));for(var d=1,p=!0;d=r.length){var g=f(i,m);i=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[m]}else p=A(i,m),i=i[m];p&&!l&&(_[a]=i)}}return i}},795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592:(e,t,r)=>{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},24:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},39:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=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(r))return!1;for(t 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[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}},957:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=r(743);e.exports=a.call(n,o)},146:(e,t,r)=>{"use strict";var n=r(363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return n.isMemo(e)?i:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=f(r);o&&o!==m&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var l=s(t),h=s(r),y=0;y{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&o&&"function"==typeof o.get?o.get:null,i=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&s&&"function"==typeof s.get?s.get:null,u=l&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,h=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,x=Array.prototype.join,C=Array.prototype.slice,A=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,L=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),a=v.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var M=r(634),j=M.custom,D=H(j)?j:null;function z(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function F(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==G(e)||P&&"object"==typeof e&&P in e)}function $(e){return!("[object RegExp]"!==G(e)||P&&"object"==typeof e&&P in e)}function H(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var s=n||{};if(V(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(s,"customInspect")||s.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=s.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 K(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return w?T(t,E):E}if("bigint"==typeof t){var A=String(t)+"n";return w?T(t,A):A}var L=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=L&&L>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var j,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(s,o);if(void 0===l)l=[];else if(W(l,t)>=0)return"[Circular]";function Y(t,r,n){if(r&&(l=C.call(l)).push(r),n){var a={depth:s.depth};return V(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,o+1,l)}return e(t,s,o+1,l)}if("function"==typeof t&&!$(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Q(t,Y);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+x.call(te,", ")+" }":"")}if(H(t)){var re=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||k?re:q(re)}if((j=t)&&"object"==typeof j&&("undefined"!=typeof HTMLElement&&j instanceof HTMLElement||"string"==typeof j.nodeName&&"function"==typeof j.getAttribute)){for(var ne="<"+_.call(String(t.nodeName)),oe=t.attributes||[],ae=0;ae"}if(U(t)){if(0===t.length)return"[]";var ie=Q(t,Y);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+X(ie,B)+"]":"[ "+x.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||P&&"object"==typeof e&&P in e)}(t)){var le=Q(t,Y);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(S.call("[cause]: "+Y(t.cause),le),", ")+" }"}if("object"==typeof t&&h){if(D&&"function"==typeof t[D]&&M)return M(t,{depth:L-o});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var se=[];return i&&i.call(t,(function(e,r){se.push(Y(r,t,!0)+" => "+Y(e,t))})),J("Map",a.call(t),se,B)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(Y(e,t))})),J("Set",c.call(t),ce,B)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==G(e)||P&&"object"==typeof e&&P in e)}(t))return q(Y(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return q(Y(O.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||P&&"object"==typeof e&&P in e)}(t))return q(m.call(t));if(function(e){return!("[object String]"!==G(e)||P&&"object"==typeof e&&P in e)}(t))return q(Y(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||P&&"object"==typeof e&&P in e)}(t)&&!$(t)){var ue=Q(t,Y),de=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",fe=!de&&P&&Object(t)===t&&P in t?v.call(G(t),8,-1):pe?"Object":"",me=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||pe?"["+x.call(S.call([],fe||[],pe||[]),": ")+"] ":"");return 0===ue.length?me+"{}":B?me+"{"+X(ue,B)+"}":me+"{ "+x.call(ue,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return B.call(e,t)}function G(e){return h.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+n}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",t)}function Y(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function q(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):x.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var o=0;o{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},373:(e,t,r)=>{"use strict";var n=r(636),o=r(642),a=r(765);e.exports={formats:a,parse:o,stringify:n}},642:(e,t,r)=>{"use strict";var n=r(720),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(a),c=l?a.slice(0,l.index):a,u=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var d=0;r.depth>0&&null!==(l=i.exec(a))&&d=0;--a){var i,l=e[a];if("[]"===l&&r.parseArrays)i=r.allowEmptyArrays&&""===o?[]:[].concat(o);else{i=r.plainObjects?Object.create(null):{};var c="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,u=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);r.parseArrays||""!==u?!isNaN(d)&&l!==u&&String(d)===u&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(i=[])[d]=o:"__proto__"!==u&&(i[u]=o):i={0:o}}o=i}return o}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return i;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.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");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 t=void 0===e.charset?i.charset:e.charset,r=void 0===e.duplicates?i.duplicates:e.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===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=a(y)?[y]:y);var w=o.call(c,h);w&&"combine"===t.duplicates?c[h]=n.combine(c[h],y):w&&"last"!==t.duplicates||(c[h]=y)}return c}(e,r):e,d=r.plainObjects?Object.create(null):{},p=Object.keys(u),f=0;f{"use strict";var n=r(920),o=r(720),a=r(765),i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},h=function e(t,r,a,i,l,c,d,p,h,y,g,v,b,w,_,E,S,x){for(var C,A=t,O=x,L=0,R=!1;void 0!==(O=O.get(m))&&!R;){var k=O.get(t);if(L+=1,void 0!==k){if(k===L)throw new RangeError("Cyclic object value");R=!0}void 0===O.get(m)&&(L=0)}if("function"==typeof y?A=y(r,A):A instanceof Date?A=b(A):"comma"===a&&s(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(c)return h&&!E?h(r,f.encoder,S,"key",w):r;A=""}if("string"==typeof(C=A)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||o.isBuffer(A))return h?[_(E?r:h(r,f.encoder,S,"key",w))+"="+_(h(A,f.encoder,S,"value",w))]:[_(r)+"="+_(String(A))];var P,N=[];if(void 0===A)return N;if("comma"===a&&s(A))E&&h&&(A=o.maybeMap(A,h)),P=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(y))P=y;else{var I=Object.keys(A);P=g?I.sort(g):I}var T=p?r.replace(/\./g,"%2E"):r,M=i&&s(A)&&1===A.length?T+"[]":T;if(l&&s(A)&&0===A.length)return M+"[]";for(var j=0;j0?w+b:""}},720:(e,t,r)=>{"use strict";var n=r(765),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o=s?l.slice(u,u+s):l,p=[],f=0;f=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(40===m||41===m)?p[p.length]=d.charAt(f):m<128?p[p.length]=i[m]:m<2048?p[p.length]=i[192|m>>6]+i[128|63&m]:m<55296||m>=57344?p[p.length]=i[224|m>>12]+i[128|m>>6&63]+i[128|63&m]:(f+=1,m=65536+((1023&m)<<10|1023&d.charCodeAt(f)),p[p.length]=i[240|m>>18]+i[128|m>>12&63]+i[128|m>>6&63]+i[128|63&m])}c+=p.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(a(e)){for(var r=[],n=0;n{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case h:case s:return e;default:return t}}case o:return t}}}function E(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||_(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===h},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===i},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=_},363:(e,t,r)=>{"use strict";e.exports=r(799)},20:(e,t,r)=>{"use strict";var n=r(609),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!s.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},848:(e,t,r)=>{"use strict";e.exports=r(20)},897:(e,t,r)=>{"use strict";var n=r(453),o=r(41),a=r(592)(),i=r(795),l=r(675),s=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||s(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(a?o(e,"length",t,!0,!0):o(e,"length",t)),e}},920:(e,t,r)=>{"use strict";var n=r(453),o=r(75),a=r(859),i=r(675),l=n("%WeakMap%",!0),s=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),m=o("Map.prototype.has",!0),h=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new i("Side channel does not contain "+a(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(s){if(t)return p(t,n)}else if(r)return function(e,t){var r=h(e,t);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return d(e,n)}else if(s){if(t)return m(t,n)}else if(r)return function(e,t){return!!h(e,t)}(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,o)):s?(t||(t=new s),f(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},609:e=>{"use strict";e.exports=window.React},634:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};r.r(e),r.d(e,{ADD_CONNECTION:()=>pa,ADD_TOAST:()=>ga,CLEAR_ERRORS:()=>ya,CLEAR_FLAGS:()=>fa,REFRESH_CONNECTIONS:()=>ma,REMOVE_TOAST:()=>ha,addProvider:()=>aa,addToast:()=>da,clearErrors:()=>ua,clearFlags:()=>ia,deleteConnection:()=>ca,removeToast:()=>la,setConnectionActive:()=>sa});var t=r(609);const n=window.ReactDOM;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var f;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={}));const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function h(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map(((e,a)=>{let i=[...r,a],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!n[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 r=o({},e,t(e),{id:s});return n[s]=r,r}{let r=o({},e,t(e),{id:s,children:void 0});return n[s]=r,e.children&&(r.children=h(e.children,t,i,n)),r}}))}function y(e,t,r){void 0===r&&(r="/");let n=k(("string"==typeof t?p(t):t).pathname||"/",r);if(null==n)return null;let o=g(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,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let e=0;null==a&&e{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=M([n,i.relativePath]),c=r.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),g(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:A(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of v(e.path))o(e,t,r);else o(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=v(n.join("/")),l=[];return l.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,_=2,E=1,S=10,x=-2,C=e=>"*"===e;function A(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=x),t&&(n+=_),r.filter((e=>!C(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?E:S)),n)}function O(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let e=0;e(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=l[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=o&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function P(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function I(e,t){let r=N(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function T(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=p(e):(a=o({},e),l(!a.pathname||!a.pathname.includes("?"),P("?","pathname","search",a)),l(!a.pathname||!a.pathname.includes("#"),P("#","pathname","hash",a)),l(!a.search||!a.search.includes("#"),P("#","search","hash",a)));let i,s=""===e||""===a.pathname,c=s?"/":a.pathname;if(null==c)i=r;else{let e=t.length-1;if(!n&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof e?p(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:D(n),hash:z(o)}}(a,i),d=c&&"/"!==c&&c.endsWith("/"),f=(s||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const M=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class F{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function U(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const $=["post","put","patch","delete"],H=new Set($),B=["get",...$],V=new Set(B),G=new Set([301,302,303,307,308]),W=new Set([307,308]),K={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Y={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},q={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),X="remix-router-transitions";function Q(e,t,r,n,o,a,i,l){let s,c;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){c=e;break}}else s=t,c=t[t.length-1];let u=T(o||".",I(s,a),k(e.pathname,r)||e.pathname,"path"===l);return null==o&&(u.search=e.search,u.hash=e.hash),null!=o&&""!==o&&"."!==o||!c||!c.route.index||Ae(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(u.pathname="/"===u.pathname?r:M([r,u.pathname])),d(u)}function ee(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(o=n.formMethod,!V.has(o.toLowerCase())))return{path:r,error:ye(405,{method:n.formMethod})};var o;let a,i,s=()=>({path:r,error:ye(400,{type:"invalid-body"})}),c=n.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),f=ve(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Se(u))return s();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:u,formAction:f,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Se(u))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:f,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)a=ce(n.formData),i=n.formData;else if(n.body instanceof FormData)a=ce(n.body),i=n.body;else if(n.body instanceof URLSearchParams)a=n.body,i=ue(a);else if(null==n.body)a=new URLSearchParams,i=new FormData;else try{a=new URLSearchParams(n.body),i=ue(a)}catch(e){return s()}let m={formMethod:u,formAction:f,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Se(m.formMethod))return{path:r,submission:m};let h=p(r);return t&&h.search&&Ae(h.search)&&a.append("index",""),h.search="?"+a,{path:d(h),submission:m}}function te(e,t,r,n,a,i,l,s,c,u,d,p,f,m,h,g){let v=g?we(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),w=e.createURL(a),_=g&&we(g[1])?g[0]:void 0,E=_?function(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}(r,_):r,S=g?g[1].statusCode:void 0,x=l&&S&&S>=400,C=E.filter(((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(i)return!("function"==typeof a.loader&&!a.loader.hydrate&&(void 0!==t.loaderData[a.id]||t.errors&&void 0!==t.errors[a.id]));if(function(e,t,r){let n=!t||r.route.id!==t.route.id,o=void 0===e[r.route.id];return n||o}(t.loaderData,t.matches[r],e)||c.some((t=>t===e.route.id)))return!0;let l=t.matches[r],u=e;return ne(e,o({currentUrl:b,currentParams:l.params,nextUrl:w,nextParams:u.params},n,{actionResult:v,unstable_actionStatus:S,defaultShouldRevalidate:!x&&(s||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||re(l,u))}))})),A=[];return p.forEach(((e,a)=>{if(i||!r.some((t=>t.route.id===e.routeId))||d.has(a))return;let l=y(m,e.path,h);if(!l)return void A.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(a),p=Oe(l,e.path),g=!1;g=!f.has(a)&&(!!u.includes(a)||(c&&"idle"!==c.state&&void 0===c.data?s:ne(p,o({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:v,unstable_actionStatus:S,defaultShouldRevalidate:!x&&s})))),g&&A.push({key:a,routeId:e.routeId,path:e.path,matches:l,match:p,controller:new AbortController})})),[C,A]}function re(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ne(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function oe(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];l(a,"No route found in manifest");let i={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;s(!t,'Route "'+a.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.'),t||m.has(e)||(i[e]=n[e])}Object.assign(a,i),Object.assign(a,o({},t(a),{lazy:void 0}))}function ae(e){return Promise.all(e.matches.map((e=>e.resolve())))}function ie(e,t,r,n,o,a){let i=e.headers.get("Location");if(l(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!Z.test(i)){let l=n.slice(0,n.findIndex((e=>e.route.id===r))+1);i=Q(new URL(t.url),l,o,!0,i,a),e.headers.set("Location",i)}return e}function le(e,t,r){if(Z.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),a=null!=k(o.pathname,r);if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function se(e,t,r,n){let o=e.createURL(ve(t)).toString(),a={signal:r};if(n&&Se(n.formMethod)){let{formMethod:e,formEncType:t}=n;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(n.json)):"text/plain"===t?a.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?a.body=ce(n.formData):a.body=n.formData}return new Request(o,a)}function ce(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ue(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function de(e,t,r,n,a,i,s,c){let{loaderData:u,errors:d}=function(e,t,r,n,o,a){let i,s={},c=null,u=!1,d={},p=n&&we(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let f=t[n].route.id;if(l(!_e(r),"Cannot handle redirect results in processLoaderData"),we(r)){let t=r.error;if(void 0!==p&&(t=p,p=void 0),c=c||{},a)c[f]=t;else{let r=me(e,f);null==c[r.route.id]&&(c[r.route.id]=t)}s[f]=void 0,u||(u=!0,i=U(r.error)?r.error.status:500),r.headers&&(d[f]=r.headers)}else be(r)?(o.set(f,r.deferredData),s[f]=r.deferredData.data,null==r.statusCode||200===r.statusCode||u||(i=r.statusCode),r.headers&&(d[f]=r.headers)):(s[f]=r.data,r.statusCode&&200!==r.statusCode&&!u&&(i=r.statusCode),r.headers&&(d[f]=r.headers))})),void 0!==p&&n&&(c={[n[0]]:p},s[n[0]]=void 0),{loaderData:s,errors:c,statusCode:i||200,loaderHeaders:d}}(t,r,n,a,c,!1);for(let t=0;te.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function he(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 ye(e,t){let{pathname:r,routeId:n,method:o,type:a}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",o&&r&&n?l="You made a "+o+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===a?l="defer() is not supported in actions":"invalid-body"===a&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new F(e||500,i,new Error(l),!0)}function ge(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(_e(r))return{result:r,idx:t}}}function ve(e){return d(o({},"string"==typeof e?p(e):e,{hash:""}))}function be(e){return e.type===f.deferred}function we(e){return e.type===f.error}function _e(e){return(e&&e.type)===f.redirect}function Ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Se(e){return H.has(e.toLowerCase())}async function xe(e,t,r,n,o,a){for(let i=0;ie.route.id===c.route.id)),d=null!=u&&!re(u,c)&&void 0!==(a&&a[c.route.id]);if(be(s)&&(o||d)){let e=n[i];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ce(s,e,o).then((e=>{e&&(r[i]=e||r[i])}))}}}async function Ce(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:f.data,data:e.deferredData.unwrappedData}}catch(e){return{type:f.error,error:e}}return{type:f.data,data:e.deferredData.data}}}function Ae(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Oe(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&Ae(r||""))return e[e.length-1];let n=N(e);return n[n.length-1]}function Le(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(t&&r&&n)return null!=o?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Re(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 ke(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 Pe(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let o=t.useCallback((function(t,o){void 0===o&&(o={}),n.current&&("number"==typeof t?e.navigate(t):e.navigate(t,Ne({fromRouteId:r},o)))}),[e,r]);return o}():function(){Fe()||l(!1);let e=t.useContext(Ie),{basename:r,future:n,navigator:o}=t.useContext(Me),{matches:a}=t.useContext(De),{pathname:i}=Ue(),s=JSON.stringify(I(a,n.v7_relativeSplatPath)),c=t.useRef(!1);return $e((()=>{c.current=!0})),t.useCallback((function(t,n){if(void 0===n&&(n={}),!c.current)return;if("number"==typeof t)return void o.go(t);let a=T(t,JSON.parse(s),i,"path"===n.relative);null==e&&"/"!==r&&(a.pathname="/"===a.pathname?r:M([r,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)}),[r,o,s,i,e])}()}const Be=t.createContext(null);function Ve(e,r){let{relative:n}=void 0===r?{}:r,{future:o}=t.useContext(Me),{matches:a}=t.useContext(De),{pathname:i}=Ue(),l=JSON.stringify(I(a,o.v7_relativeSplatPath));return t.useMemo((()=>T(e,JSON.parse(l),i,"path"===n)),[e,l,i,n])}function Ge(e,r,n,o){Fe()||l(!1);let{navigator:i}=t.useContext(Me),{matches:s}=t.useContext(De),c=s[s.length-1],u=c?c.params:{},d=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let f,m=Ue();if(r){var h;let e="string"==typeof r?p(r):r;"/"===d||(null==(h=e.pathname)?void 0:h.startsWith(d))||l(!1),f=e}else f=m;let g=f.pathname||"/",v=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=y(e,{pathname:v}),w=function(e,r,n,o){var a;if(void 0===r&&(r=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let s=e,c=null==(a=n)?void 0:a.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||l(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,d=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,o,a)=>{let i,l=!1,p=null,f=null;var m;n&&(i=c&&o.route.id?c[o.route.id]:void 0,p=o.route.errorElement||Ke,u&&(d<0&&0===a?(Qe[m="route-fallback"]||(Qe[m]=!0),l=!0,f=null):d===a&&(l=!0,f=o.route.hydrateFallbackElement||null)));let h=r.concat(s.slice(0,a+1)),y=()=>{let r;return r=i?p:l?f:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(qe,{match:o,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?t.createElement(Ye,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:y(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):y()}),null)}(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:M([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:M([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,o);return r&&w?t.createElement(je.Provider,{value:{location:Ne({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:a.Pop}},w):w}function We(){let e=function(){var e;let r=t.useContext(ze),n=function(e){let r=t.useContext(Te);return r||l(!1),r}(Je.UseRouteError),o=Xe(Je.UseRouteError);return void 0!==r?r:null==(e=n.errors)?void 0:e[o]}(),r=U(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),n?t.createElement("pre",{style:o},n):null,null)}const Ke=t.createElement(We,null);class Ye extends t.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?t.createElement(De.Provider,{value:this.props.routeContext},t.createElement(ze.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qe(e){let{routeContext:r,match:n,children:o}=e,a=t.useContext(Ie);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(De.Provider,{value:r},o)}var Ze=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ze||{}),Je=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Je||{});function Xe(e){let r=function(e){let r=t.useContext(De);return r||l(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||l(!1),n.route.id}const Qe={};function et(e){return function(e){let r=t.useContext(De).outlet;return r?t.createElement(Be.Provider,{value:e},r):r}(e.context)}function tt(e){let{basename:r="/",children:n=null,location:o,navigationType:i=a.Pop,navigator:s,static:c=!1,future:u}=e;Fe()&&l(!1);let d=r.replace(/^\/*/,"/"),f=t.useMemo((()=>({basename:d,navigator:s,static:c,future:Ne({v7_relativeSplatPath:!1},u)})),[d,u,s,c]);"string"==typeof o&&(o=p(o));let{pathname:m="/",search:h="",hash:y="",state:g=null,key:v="default"}=o,b=t.useMemo((()=>{let e=k(m,d);return null==e?null:{location:{pathname:e,search:h,hash:y,state:g,key:v},navigationType:i}}),[d,m,h,y,g,v,i]);return null==b?null:t.createElement(Me.Provider,{value:f},t.createElement(je.Provider,{children:n,value:b}))}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}t.startTransition,new Promise((()=>{})),t.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const ot=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],at=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function it(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new F(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let o=new t(n.message);o.stack="",r[e]=o}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const lt=t.createContext({isTransitioning:!1}),st=t.createContext(new Map),ct=t.startTransition,ut=n.flushSync;function dt(e){ut?ut(e):e()}t.useId;class pt{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 ft(e){let{routes:t,future:r,state:n}=e;return Ge(t,void 0,n,r)}const mt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,ht=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yt=t.forwardRef((function(e,r){let n,{onClick:o,relative:a,reloadDocument:i,replace:s,state:c,target:u,to:p,preventScrollReset:f,unstable_viewTransition:m}=e,h=nt(e,ot),{basename:y}=t.useContext(Me),g=!1;if("string"==typeof p&&ht.test(p)&&(n=p,mt))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),r=k(t.pathname,y);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:g=!0}catch(e){}let v=function(e,r){let{relative:n}=void 0===r?{}:r;Fe()||l(!1);let{basename:o,navigator:a}=t.useContext(Me),{hash:i,pathname:s,search:c}=Ve(e,{relative:n}),u=s;return"/"!==o&&(u="/"===s?o:M([o,s])),a.createHref({pathname:u,search:c,hash:i})}(p,{relative:a}),b=function(e,r){let{target:n,replace:o,state:a,preventScrollReset:i,relative:l,unstable_viewTransition:s}=void 0===r?{}:r,c=He(),u=Ue(),p=Ve(e,{relative:l});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let r=void 0!==o?o:d(u)===d(p);c(e,{replace:r,state:a,preventScrollReset:i,relative:l,unstable_viewTransition:s})}}),[u,c,p,o,a,n,e,i,l,s])}(p,{replace:s,state:c,target:u,preventScrollReset:f,relative:a,unstable_viewTransition:m});return t.createElement("a",rt({},h,{href:n||v,onClick:g||i?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:r,target:u}))})),gt=t.forwardRef((function(e,r){let{"aria-current":n="page",caseSensitive:o=!1,className:a="",end:i=!1,style:s,to:c,unstable_viewTransition:u,children:d}=e,p=nt(e,at),f=Ve(c,{relative:p.relative}),m=Ue(),h=t.useContext(Te),{navigator:y,basename:g}=t.useContext(Me),v=null!=h&&function(e,r){void 0===r&&(r={});let n=t.useContext(lt);null==n&&l(!1);let{basename:o}=function(e){let r=t.useContext(Ie);return r||l(!1),r}(vt.useViewTransitionState),a=Ve(e,{relative:r.relative});if(!n.isTransitioning)return!1;let i=k(n.currentLocation.pathname,o)||n.currentLocation.pathname,s=k(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=L(a.pathname,s)||null!=L(a.pathname,i)}(f)&&!0===u,b=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,w=m.pathname,_=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;o||(w=w.toLowerCase(),_=_?_.toLowerCase():null,b=b.toLowerCase()),_&&g&&(_=k(_,g)||_);const E="/"!==b&&b.endsWith("/")?b.length-1:b.length;let S,x=w===b||!i&&w.startsWith(b)&&"/"===w.charAt(E),C=null!=_&&(_===b||!i&&_.startsWith(b)&&"/"===_.charAt(b.length)),A={isActive:x,isPending:C,isTransitioning:v},O=x?n:void 0;S="function"==typeof a?a(A):[a,x?"active":null,C?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let R="function"==typeof s?s(A):s;return t.createElement(yt,rt({},p,{"aria-current":O,className:S,ref:r,style:R,to:c,unstable_viewTransition:u}),"function"==typeof d?d(A):d)}));var vt,bt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vt||(vt={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(bt||(bt={}));const wt=window.wp.element,_t=window.wp.i18n,Et=window.wp.data;function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Tt(Vt,--Ht):0,Ut--,10===Bt&&(Ut=1,Ft--),Bt}function Yt(){return Bt=Ht<$t?Tt(Vt,Ht++):0,Ut++,10===Bt&&(Ut=1,Ft++),Bt}function qt(){return Tt(Vt,Ht)}function Zt(){return Ht}function Jt(e,t){return Mt(Vt,e,t)}function Xt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qt(e){return Ft=Ut=1,$t=jt(Vt=e),Ht=0,[]}function er(e){return Vt="",e}function tr(e){return Pt(Jt(Ht-1,or(91===e?e+2:40===e?e+1:e)))}function rr(e){for(;(Bt=qt())&&Bt<33;)Yt();return Xt(e)>2||Xt(Bt)>3?"":" "}function nr(e,t){for(;--t&&Yt()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Jt(e,Zt()+(t<6&&32==qt()&&32==Yt()))}function or(e){for(;Yt();)switch(Bt){case e:return Ht;case 34:case 39:34!==e&&39!==e&&or(Bt);break;case 40:41===e&&or(e);break;case 92:Yt()}return Ht}function ar(e,t){for(;Yt()&&e+Bt!==57&&(e+Bt!==84||47!==qt()););return"/*"+Jt(t,Ht-1)+"*"+Rt(47===e?e:Yt())}function ir(e){for(;!Xt(qt());)Yt();return Jt(e,Ht)}var lr="-ms-",sr="-moz-",cr="-webkit-",ur="comm",dr="rule",pr="decl",fr="@keyframes";function mr(e,t){for(var r="",n=Dt(e),o=0;o0&&jt(S)-d&&zt(f>32?wr(S+";",n,r,d-1):wr(Nt(S," ","")+";",n,r,d-2),s);break;case 59:S+=";";default:if(zt(E=vr(S,t,r,c,u,o,l,b,w=[],_=[],d),a),123===v)if(0===u)gr(S,t,E,E,w,a,d,l,_);else switch(99===p&&110===Tt(S,3)?100:p){case 100:case 108:case 109:case 115:gr(e,E,E,n&&zt(vr(e,E,E,0,0,o,l,b,o,w=[],d),_),o,_,d,l,n?w:_);break;default:gr(S,E,E,E,[""],_,0,l,_)}}c=u=f=0,h=g=1,b=S="",d=i;break;case 58:d=1+jt(S),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Kt())continue;switch(S+=Rt(v),v*h){case 38:g=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(jt(S)-1)*g,g=1;break;case 64:45===qt()&&(S+=tr(Yt())),p=qt(),u=d=jt(b=S+=ir(Zt())),v++;break;case 45:45===m&&2==jt(S)&&(h=0)}}return a}function vr(e,t,r,n,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Dt(p),m=0,h=0,y=0;m0?p[g]+" "+v:Nt(v,/&\f/g,p[g])))&&(s[y++]=b);return Gt(e,t,r,0===o?dr:l,s,c,u)}function br(e,t,r){return Gt(e,t,r,ur,Rt(Bt),Mt(e,2,-2),0)}function wr(e,t,r,n){return Gt(e,t,r,pr,Mt(e,0,n),Mt(e,n+1,-1),n)}var _r=function(e,t,r){for(var n=0,o=0;n=o,o=qt(),38===n&&12===o&&(t[r]=1),!Xt(o);)Yt();return Jt(e,Ht)},Er=new WeakMap,Sr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Er.get(r))&&!n){Er.set(e,!0);for(var o=[],a=function(e,t){return er(function(e,t){var r=-1,n=44;do{switch(Xt(n)){case 0:38===n&&12===qt()&&(t[r]=1),e[r]+=_r(Ht-1,t,r);break;case 2:e[r]+=tr(n);break;case 4:if(44===n){e[++r]=58===qt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Rt(n)}}while(n=Yt());return e}(Qt(e),t))}(t,o),i=r.props,l=0,s=0;l6)switch(Tt(e,t+1)){case 109:if(45!==Tt(e,t+4))break;case 102:return Nt(e,/(.+:)(.+)-([^]+)/,"$1"+cr+"$2-$3$1"+sr+(108==Tt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~It(e,"stretch")?Cr(Nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Tt(e,t+1))break;case 6444:switch(Tt(e,jt(e)-3-(~It(e,"!important")&&10))){case 107:return Nt(e,":",":"+cr)+e;case 101:return Nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cr+(45===Tt(e,14)?"inline-":"")+"box$3$1"+cr+"$2$3$1"+lr+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return cr+e+lr+Nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cr+e+lr+Nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cr+e+lr+Nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cr+e+lr+e+e}return e}var Ar=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=Cr(e.value,e.length);break;case fr:return mr([Wt(e,{value:Nt(e.value,"@","@"+cr)})],n);case dr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return mr([Wt(e,{props:[Nt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return mr([Wt(e,{props:[Nt(t,/:(plac\w+)/,":"+cr+"input-$1")]}),Wt(e,{props:[Nt(t,/:(plac\w+)/,":-moz-$1")]}),Wt(e,{props:[Nt(t,/:(plac\w+)/,lr+"input-$1")]})],n)}return""}))}}],Or=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||Ar,i={},l=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Hr}}var Gr=!!t.useInsertionEffect&&t.useInsertionEffect,Wr=Gr||function(e){return e()},Kr=(Gr||t.useLayoutEffect,"undefined"!=typeof document),Yr=t.createContext("undefined"!=typeof HTMLElement?Or({key:"css"}):null),qr=(Yr.Provider,function(e){return(0,t.forwardRef)((function(r,n){var o=(0,t.useContext)(Yr);return e(r,o,n)}))});Kr||(qr=function(e){return function(r){var n=(0,t.useContext)(Yr);return null===n?(n=Or({key:"css"}),t.createElement(Yr.Provider,{value:n},e(r,n))):e(r,n)}});var Zr=t.createContext({}),Jr=function(){return t.useContext(Zr)},Xr=Lr((function(e){return Lr((function(t){return function(e,t){return"function"==typeof t?t(e):St({},e,t)}(e,t)}))})),Qr=function(e){var r=t.useContext(Zr);return e.theme!==r&&(r=Xr(r)(e.theme)),t.createElement(Zr.Provider,{value:r},e.children)},en={}.hasOwnProperty,tn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rn=function(e,t){var r={};for(var n in t)en.call(t,n)&&(r[n]=t[n]);return r[tn]=e,r},nn=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;kr(r,n,o);var a=Wr((function(){return Pr(r,n,o)}));if(!Kr&&void 0!==a){for(var i,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return t.createElement("style",((i={})["data-emotion"]=r.key+" "+l,i.dangerouslySetInnerHTML={__html:a},i.nonce=r.sheet.nonce,i))}return null},on=qr((function(e,r,n){var o=e.css;"string"==typeof o&&void 0!==r.registered[o]&&(o=r.registered[o]);var a=e[tn],i=[o],l="";"string"==typeof e.className?l=Rr(r.registered,i,e.className):null!=e.className&&(l=e.className+" ");var s=Vr(i,void 0,t.useContext(Zr));l+=r.key+"-"+s.name;var c={};for(var u in e)en.call(e,u)&&"css"!==u&&u!==tn&&(c[u]=e[u]);return c.className=l,n&&(c.ref=n),t.createElement(t.Fragment,null,t.createElement(nn,{cache:r,serialized:s,isStringTag:"string"==typeof a}),t.createElement(a,c))})),an=At,ln=function(e){return"theme"!==e},sn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?an:ln},cn=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},un=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return kr(t,r,n),Wr((function(){return Pr(t,r,n)})),null},dn=function e(r,n){var o,a,i=r.__emotion_real===r,l=i&&r.__emotion_base||r;void 0!==n&&(o=n.label,a=n.target);var s=cn(r,n,i),c=s||sn(l),u=!c("as");return function(){var d=arguments,p=i&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,m=1;mt?e.colors.surface[t]:e.colors.surface.primary),";"),Mn=(0,wt.createContext)(void 0),jn=(0,wt.forwardRef)((function(e,t){const{components:{surface:r}}=Jr(),{variant:n=Nn.PRIMARY}=e,o=(0,wt.useMemo)((()=>({variant:n,textVariant:r.variant[n]})),[n,r.variant]);return fn(Mn.Provider,Object.assign({value:o},{children:fn(Tn,Object.assign({},e,{ref:t}))}))})),Dn=dn("span",{target:"e19li2x11"})("margin:0;color:",(({theme:e,variant:t})=>t?e.colors.text[t]:e.colors.text.normal),";font-size:",(({theme:{sizes:e,getSize:t},size:r})=>t(r?e.text[r]:e.text.normal)),";line-height:",(({theme:{sizes:e,getSize:t},size:r})=>r?t(e.height[r]):""),";font-weight:",(({weight:e})=>e),";text-transform:",(({textTransform:e})=>e||"none"),";text-decoration:",(({decoration:e})=>e||"auto"),";display:",(({icon:e,indicator:t,as:r})=>(e||t)&&("span"===r?"inline-flex":"flex")),";align-items:",(({icon:e,indicator:t})=>(e||t)&&"center"),";text-align:",(({align:e,icon:t,indicator:r})=>!t&&!r&&e),";justify-content:",(({align:e,icon:t,indicator:r})=>(t||r)&&e),";gap:",(({theme:{getSize:e},icon:t,indicator:r,gap:n})=>(t||r)&&e(.25*(null!=n?n:2))),";&::before{content:",(({indicator:e})=>e&&"''"),";background-color:",(({indicator:e})=>e),";width:",(({theme:{getSize:e,sizes:t},size:r})=>e(r?t.text[r]:t.text.normal)),";height:",(({theme:{getSize:e,sizes:t},size:r})=>e(r?t.text[r]:t.text.normal)),";border-radius:50%;}"),zn=dn(hn.Icon,{shouldForwardProp:e=>"hasText"!==e&&"variant"!==e&&"iconColor"!==e&&"iconPosition"!==e,target:"e19li2x10"})("flex-shrink:0;width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:",(({theme:e,iconColor:t,variant:r})=>t||e.colors.text[r]),";"),Fn=(0,wt.forwardRef)(((e,t)=>{var{variant:r,size:n=Rn.NORMAL,as:o="span",weight:a,text:i,decoration:l,textTransform:s,align:c="left",icon:u,iconSize:d=24,iconColor:p,iconPosition:f="left",indicator:m,className:h,children:y,truncateLines:g}=e,v=On(e,["variant","size","as","weight","text","decoration","textTransform","align","icon","iconSize","iconColor","iconPosition","indicator","className","children","truncateLines"]);const b=(0,wt.useContext)(Mn),w=r||(null==b?void 0:b.textVariant)||Ln.NORMAL,_=Dn.withComponent(o,{target:"e19li2x12"}),E=u&&fn(zn,{variant:w,icon:u,iconColor:p,iconPosition:f,size:d,hasText:void 0!==i||void 0!==y}),S=!!g&&En("-webkit-box-orient:vertical;-webkit-line-clamp:",g,";display:-webkit-box;overflow:hidden;","");return mn(_,Object.assign({variant:w,size:n,weight:a,decoration:l,textTransform:s,align:c,as:o,icon:u,iconPosition:f,indicator:m,className:wn("it-ui-text",h,S,{"it-ui-text--has-icon":!!E}),ref:t},v,{children:["left"===f&&E,i,y,"right"===f&&E]}))})),Un=dn(jn,{target:"e1a2el420"})("display:flex;flex-shrink:0;width:fit-content;padding:",(({theme:{getSize:e}})=>`${e(.25)} ${e(.5)}`),";border:1px solid ",(({theme:e})=>e.colors.border.normal),";border-radius:",(({theme:{getSize:e}})=>e(1)),";");(0,wt.forwardRef)((function({text:e,icon:t,iconColor:r,tooltip:n,variant:o="primary"},a){const i=fn(Un,Object.assign({as:"span",ref:a,variant:"primary"===o?Nn.TERTIARY:Nn.PRIMARY_ACCENT},{children:fn(Fn,{text:e,size:Rn.SMALL,variant:"primary"===o?Ln.DARK:void 0,icon:t,iconSize:16,iconColor:r})}));return n?fn(hn.Tooltip,Object.assign({text:n,position:"bottom left"},{children:i})):i}));const $n=["textSize","isRounded","isWide","align","iconGap","surfaceVariant","_variant"];function Hn(e,t){return!!t.icon&&!!t.text&&(t.iconPosition||"left")===e}const Bn=dn(hn.Button,{shouldForwardProp:e=>!$n.includes(e),target:"esijqd70"})("&.components-button{font-size:",(({theme:{sizes:e,getSize:t},textSize:r})=>t(r?e.text[r]:e.text.normal)),";height:",(({textSize:e})=>e&&"auto"),";border-radius:",(({isRounded:e})=>e&&"12px"),";padding:",(({theme:{getSize:e},isWide:t})=>t&&`${e(.75)} ${e(4)}`),";justify-content:",(({align:e})=>e||"center"),";--wp-components-color-accent:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.base||"tertiaryAccent"===t&&e.colors.tertiary.base||"muted"===t&&e.colors.text.muted||e.colors.primary.base)),";--wp-admin-theme-color:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.base||"tertiaryAccent"===t&&e.colors.tertiary.base||"muted"===t&&e.colors.text.muted||e.colors.primary.base)),";--wp-admin-theme-color-darker-10:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.darker10||"tertiaryAccent"===t&&e.colors.tertiary.darker10||"muted"===t&&e.colors.text.muted||e.colors.primary.darker10)),";--wp-admin-theme-color-darker-20:",(({theme:e,_variant:t,isDestructive:r})=>!r&&("secondaryAccent"===t&&e.colors.secondary.darker20||"tertiaryAccent"===t&&e.colors.tertiary.darker20||"muted"===t&&e.colors.text.muted||e.colors.primary.darker20)),";color:",(({theme:e,_variant:t,surfaceVariant:r,isDestructive:n})=>!n&&("secondaryAccent"===t&&e.colors.text.white||"tertiaryAccent"===t&&e.colors.text.dark||"tertiary"===t&&r===Nn.SECONDARY&&e.colors.text.accent||"muted"===t&&e.colors.text.muted||"tertiary"===t&&e.colors.text.dark)),";&.is-primary:hover:not(:disabled),&.is-primary:active:not(:disabled),&.is-primary:disabled,&.is-primary:disabled:active:enabled,&.is-primary[aria-disabled='true'],&.is-primary[aria-disabled='true']:enabled,&.is-primary[aria-disabled='true']:active:enabled,&.is-primary.is-busy,&.is-primary.is-busy:disabled,&.is-primary.is-busy[aria-disabled='true']{color:",(({theme:e,_variant:t})=>"secondaryAccent"===t&&e.colors.text.white||"tertiaryAccent"===t&&e.colors.text.dark),";}& svg{margin-left:",(e=>{var{theme:{getSize:t},iconGap:r}=e;return Hn("right",On(e,["theme","iconGap"]))&&t(.25*(null!=r?r:2))}),";margin-right:",(e=>{var{theme:{getSize:t},iconGap:r}=e;return Hn("left",On(e,["theme","iconGap"]))&&t(.25*(null!=r?r:2))}),";}}"),Vn=(0,wt.forwardRef)(((e,t)=>{var r;const n=null!==(r=e.variant)&&void 0!==r?r:"secondary",o=function(e){return"secondaryAccent"===e||"tertiaryAccent"===e?"primary":"muted"===e?"secondary":null!=e?e:"secondary"}(e.variant),a=(0,wt.useContext)(Mn),{iconGap:i=2}=e;return fn(Bn,Object.assign({},e,{ref:t,iconGap:i,variant:o,_variant:n,surfaceVariant:null==a?void 0:a.variant}))})),Gn=dn("div",{target:"e5g6tmc1"})("display:",(({hasIcon:e})=>e?"flex":"block"),";gap:",(({theme:{getSize:e},hasIcon:t})=>t&&e(.25)),";align-items:center;margin:0;line-height:",(({theme:{sizes:e,getSize:t},size:r})=>r?t(e.height[r]):""),";color:",(({theme:{colors:e},variant:t})=>e.text[t]),";font-size:",(({theme:{sizes:e,getSize:t},size:r})=>t(e.text[r])),";font-weight:",(({weight:e})=>e),";text-align:",(({align:e,hasIcon:t})=>!t&&e),";justify-content:",(({align:e,hasIcon:t})=>t&&e),";text-transform:",(({textTransform:e})=>e||"none"),";"),Wn=dn(hn.Icon,{shouldForwardProp:e=>"iconColor"!==e,target:"e5g6tmc0"})("flex-shrink:0;width:",(({size:e})=>e),"px;height:",(({size:e})=>e),"px;fill:",(({theme:e,iconColor:t,variant:r})=>t||e.colors.text[r]),";");function Kn(e){const{components:{heading:t}}=Jr(),r=(0,wt.useContext)(Mn),n=e.variant||(null==r?void 0:r.textVariant)||t.variants[e.level],o=e.size||t.sizes[e.level],a=e.weight||t.weights[e.level],i=e.textTransform||"none",l="h"+e.level;return mn(Gn.withComponent(l,{target:"e5g6tmc2"}),Object.assign({weight:a,variant:n,size:o,hasIcon:!!e.icon,className:wn("it-ui-heading",e.className),textTransform:i,align:e.align||"left"},{children:[e.icon&&fn(Wn,{icon:e.icon,size:e.iconSize,variant:n,iconColor:e.iconColor}),e.text,e.children]}))}const Yn=(0,wt.createContext)({variant:"primary"}),qn=dn(hn.Card,{target:"e8tjnus1"})("&.components-card{background:",(({theme:e,variant:t})=>"secondary"===t?e.colors.surface.secondary:e.colors.surface.primary),";}"),Zn=dn(hn.CardBody,{target:"e8tjnus0"})("display:",(({isColumn:e})=>e?"flex":"grid"),";flex-direction:column;grid-auto-flow:column;grid-auto-columns:1fr;grid-template-rows:auto auto;grid-gap:0 ",(({theme:{getSize:e}})=>e(2)),";.it-ui-heading{padding-top:",(({theme:{getSize:e},isColumn:t})=>!t&&e(.5)),";padding-bottom:",(({theme:{getSize:e}})=>e(1)),";&:not(:first-of-type){padding-top:",(({theme:{getSize:e},isColumn:t})=>e(t?1:.5)),";margin-top:",(({theme:{getSize:e},isColumn:t})=>t&&e(1)),";border-top:",(({theme:e,isColumn:t})=>t&&`1px solid ${e.colors.border.normal}`),";}}p{padding-bottom:",(({theme:{getSize:e},isColumn:t})=>!t&&e(.5)),";}.it-ui-heading:not(:last-of-type),p:not(:last-of-type){position:relative;&:after{content:",(({isColumn:e})=>!e&&"' '"),";background:",(({theme:e})=>e.colors.border.normal),";width:1px;height:100%;position:absolute;right:-1rem;display:block;top:0;bottom:0;}}");(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var Jn=(0,wt.createElement)(Cn.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,wt.createElement)(Cn.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"}));(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var Xn=(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,wt.createElement)(Cn.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"})),(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}));var Qn=(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,wt.createElement)(Cn.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));(0,wt.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,wt.createElement)(Cn.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})),Pn.HEAVY,(0,wt.createContext)({}),(0,wt.createContext)({filters:{},openPanels:[],dispatch:()=>null,expandSingle:!1}),(0,_t.__)("24 hours","LION"),(0,_t.__)("7 days","LION"),(0,_t.__)("30 days","LION"),(0,_t.__)("Custom range","LION");const eo=dn("div",{target:"e6ae9c80"})("display:flex;align-items:stretch;flex-wrap:nowrap;justify-content:center;height:40px;border-radius:2px;border:1px solid transparent;@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:30px;}.components-base-control{flex-grow:1;}.components-base-control__field{height:100%;margin-bottom:0;}.components-text-control__input{height:100%;margin:0;&:focus{box-shadow:none;outline:none;}}.components-button{height:auto;&:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);}}.components-spinner{margin:1px -1px;}.it-ui-text{display:flex;align-items:center;height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";padding:",(({theme:{getSize:e}})=>`${e(.375)} ${e(.625)}`),";@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";}&.it-ui-text--has-icon{padding:",(({theme:{getSize:e}})=>`${e(.1875)} ${e(.3125)}`),";}&>*{margin:0;}}>*:first-child,>*:first-child .components-text-control__input{border-radius:2px 0 0 2px;border-right:",(({omitSeparators:e})=>(!0===e||"left"===e)&&"none"),";}>*:last-child,>*:last-child .components-text-control__input{border-radius:0 2px 2px 0;border-left:",(({omitSeparators:e})=>(!0===e||"right"===e)&&"none"),";}.components-base-control:first-child .components-text-control__input{border-right:none;}.components-base-control:last-child .components-text-control__input{border-left:none;}.components-base-control:not(:first-child):not(:last-child) .components-text-control__input{border-left:none;border-right:none;border-radius:0;}&:focus-within{border-color:white;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent;.it-ui-text{&:first-child{border-right-color:var(--wp-admin-theme-color);}&:last-child{border-left-color:var(--wp-admin-theme-color);}}}");function to({children:e,className:t,omitSeparators:r=!1,surfaceVariant:n=Nn.PRIMARY,size:o="medium"}){return fn(eo,Object.assign({className:wn("it-ui-input-group",t),surfaceVariant:n,omitSeparators:r,size:o},{children:e}))}Nn.INFO,Nn.SUCCESS,Nn.WARNING,Nn.DANGER;const ro=(0,wt.forwardRef)((function({theme:e,children:t},r){const[n,o]=(0,wt.useState)(1),a=(0,Sn.useMergeRefs)([(0,Sn.useRefEffect)((e=>{const t=e.ownerDocument.body,r=t.parentElement;if(!r)return;const n=e.ownerDocument.createElement("iframe");n.style.visibility="hidden",n.setAttribute("aria-hidden","true"),n.srcdoc='Sizer',t.append(n);const a=n.contentDocument;if(!a)return;const i=Number.parseFloat(window.getComputedStyle(a.body).fontSize);n.remove();const l=Number.parseFloat(window.getComputedStyle(r).fontSize);o(1/(l/i))}),[]),r]),i=(0,wt.useMemo)((()=>Object.assign(Object.assign({},e),{getSize:e=>e*n+"rem"})),[e,n]);return fn("div",Object.assign({ref:a},{children:fn(Qr,Object.assign({theme:i},{children:t}))}))}));var no;!function(e){e[e.INITIAL=0]="INITIAL",e[e.SEARCHING=1]="SEARCHING",e[e.CLEARABLE=2]="CLEARABLE",e[e.SUBMITTABLE=3]="SUBMITTABLE"}(no||(no={}));const oo=dn(to,{target:"e6tk791"})("background:",(({theme:e})=>e.colors.surface.secondary),";height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";@media (min-width: ",(({theme:e})=>e.breaks.medium),"px){height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";}.components-text-control__input{background:none;padding:",(({theme:{getSize:e}})=>e(.75)),";border-radius:2px;border:none;height:",(({theme:{getSize:e},size:t})=>e("small"===t?1.875:"medium"===t?2.25:3)),";}&:focus-within{border-color:",(({theme:e})=>e.colors.border),";background:none;}"),ao=dn(hn.TextControl,{target:"e6tk790"})({name:"1e1ncky",styles:"border:none"});var io,lo;(0,wt.forwardRef)(((e,t)=>{const{isSearching:r,className:n,value:o,onChange:a,onCancel:i,onSubmit:l,surfaceVariant:s,omitSeparators:c,size:u="medium"}=e,d=On(e,["isSearching","className","value","onChange","onCancel","onSubmit","surfaceVariant","omitSeparators","size"]),p=(0,wt.useRef)(null),f=(0,Sn.useMergeRefs)([p,t]),m=()=>{var e;null===(e=p.current)||void 0===e||e.focus(),r&&i?i():a("")},h=(({isSearching:e,value:t,onCancel:r,onSubmit:n})=>{const o=t.length>0;return!e&&o&&n?no.SUBMITTABLE:!o||e&&!r?e?no.SEARCHING:no.INITIAL:no.CLEARABLE})(e);return mn(oo,Object.assign({className:wn("it-ui-search-control",n),surfaceVariant:s,omitSeparators:c,size:u},{children:[fn(ao,Object.assign({value:o,onChange:a,onKeyUp:({keyCode:e})=>e===An.ESCAPE&&m(),hideLabelFromVision:!0},d,{ref:f})),h===no.INITIAL&&fn(Fn,{icon:Qn}),h===no.SEARCHING&&fn(Fn,{children:fn(hn.Spinner,{})}),h===no.CLEARABLE&&fn(Vn,{icon:Jn,variant:"tertiary",onClick:m,label:(0,_t.__)("Cancel Search","LION")}),h===no.SUBMITTABLE&&fn(Vn,{icon:Xn,variant:"tertiary",onClick:()=>{var e;null===(e=p.current)||void 0===e||e.focus(),null==l||l()},label:(0,_t.__)("Submit Search","LION")})]}))})),null===(lo=null===(io=window.wp)||void 0===io?void 0:io.components)||void 0===lo||lo.StyleProvider;const so={colors:{primary:{base:"#6817c5",darker10:"#53129e",darker20:"#49108A"},secondary:{base:"#9e6ada",darker10:"#9258d6",darker20:"#8645d1"},tertiary:{base:"#e1d1f3",darker10:"#caadea",darker20:"#b289e0"},text:{dark:"#232323",normal:"#333333",muted:"#545454",accent:"#6817C5",white:"#FFFFFF",danger:"#551515",warning:"#A9582E",info:"#005169",success:"#237739"},border:{normal:"#dddddd",input:"#232323",info:"#502CA1",danger:"#CC1818",warning:"#FFC518",success:"#4AB866"},surface:{primary:"#FFFFFF",primaryContrast:"#E7E7E7",secondary:"#E7E7E7",tertiary:"#F9F9F9",underPage:"#F0F0F0",underPageContrast:"#E0E0E0",primaryAccent:"#6817C5",danger:"#F4A2A2",warning:"#FFF9E8",info:"#F0EEF3",success:"#EFF9F1",dark:"#333333"}},sizes:{text:{gigantic:2,huge:1.5,extraLarge:1.25,large:1,subtitleSmall:.875,normal:.813,small:.75},height:{gigantic:2.5,huge:2,extraLarge:1.75,large:1.5,subtitleSmall:1.25,normal:1,small:1}},breaks:{huge:1440,wide:1280,xlarge:1080,large:960,medium:783,small:600,mobile:480},components:{heading:{sizes:{1:Rn.HUGE,2:Rn.EXTRA_LARGE,3:Rn.LARGE,4:Rn.LARGE,5:Rn.NORMAL,6:Rn.NORMAL},heights:{1:kn.HUGE,2:kn.EXTRA_LARGE,3:kn.LARGE,4:kn.LARGE,5:kn.NORMAL,6:kn.NORMAL},variants:{1:Ln.DARK,2:Ln.NORMAL,3:Ln.NORMAL,4:Ln.NORMAL,5:Ln.NORMAL,6:Ln.NORMAL},weights:{1:Pn.HEAVY,2:Pn.NORMAL,3:Pn.NORMAL,4:Pn.NORMAL,5:Pn.NORMAL,6:Pn.NORMAL}},surface:{variant:{[Nn.PRIMARY]:Ln.NORMAL,[Nn.PRIMARY_CONTRAST]:Ln.DARK,[Nn.SECONDARY]:Ln.NORMAL,[Nn.TERTIARY]:Ln.NORMAL,[Nn.UNDER_PAGE]:Ln.NORMAL,[Nn.UNDER_PAGE_CONTRAST]:Ln.DARK,[Nn.PRIMARY_ACCENT]:Ln.WHITE,[Nn.DANGER]:Ln.DANGER,[Nn.WARNING]:Ln.WARNING,[Nn.INFO]:Ln.INFO,[Nn.SUCCESS]:Ln.SUCCESS,[Nn.DARK]:Ln.WHITE},contrast:{[Nn.PRIMARY]:Nn.PRIMARY_CONTRAST,[Nn.UNDER_PAGE]:Nn.UNDER_PAGE_CONTRAST}}},getSize:e=>`${e}rem`};var co=Symbol.for("immer-nothing"),uo=Symbol.for("immer-draftable"),po=Symbol.for("immer-state");function fo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mo=Object.getPrototypeOf;function ho(e){return!!e&&!!e[po]}function yo(e){return!!e&&(vo(e)||Array.isArray(e)||!!e[uo]||!!e.constructor?.[uo]||So(e)||xo(e))}var go=Object.prototype.constructor.toString();function vo(e){if(!e||"object"!=typeof e)return!1;const t=mo(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===go}function bo(e,t){0===wo(e)?Reflect.ownKeys(e).forEach((r=>{t(r,e[r],e)})):e.forEach(((r,n)=>t(n,r,e)))}function wo(e){const t=e[po];return t?t.type_:Array.isArray(e)?1:So(e)?2:xo(e)?3:0}function _o(e,t){return 2===wo(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Eo(e,t,r){const n=wo(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function So(e){return e instanceof Map}function xo(e){return e instanceof Set}function Co(e){return e.copy_||e.base_}function Ao(e,t){if(So(e))return new Map(e);if(xo(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=vo(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[po];let r=Reflect.ownKeys(t);for(let n=0;n1&&(e.set=e.add=e.clear=e.delete=Lo),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>Oo(t,!0)))),e}function Lo(){fo(2)}function Ro(e){return Object.isFrozen(e)}var ko,Po={};function No(e){const t=Po[e];return t||fo(0),t}function Io(){return ko}function To(e,t){t&&(No("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mo(e){jo(e),e.drafts_.forEach(zo),e.drafts_=null}function jo(e){e===ko&&(ko=e.parent_)}function Do(e){return ko={drafts_:[],parent_:ko,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zo(e){const t=e[po];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Fo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[po].modified_&&(Mo(t),fo(4)),yo(e)&&(e=Uo(t,e),t.parent_||Ho(t,e)),t.patches_&&No("Patches").generateReplacementPatches_(r[po].base_,e,t.patches_,t.inversePatches_)):e=Uo(t,r,[]),Mo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==co?e:void 0}function Uo(e,t,r){if(Ro(t))return t;const n=t[po];if(!n)return bo(t,((o,a)=>$o(e,n,t,o,a,r))),t;if(n.scope_!==e)return t;if(!n.modified_)return Ho(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let o=t,a=!1;3===n.type_&&(o=new Set(t),t.clear(),a=!0),bo(o,((o,i)=>$o(e,n,t,o,i,r,a))),Ho(e,t,!1),r&&e.patches_&&No("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function $o(e,t,r,n,o,a,i){if(ho(o)){const i=Uo(e,o,a&&t&&3!==t.type_&&!_o(t.assigned_,n)?a.concat(n):void 0);if(Eo(r,n,i),!ho(i))return;e.canAutoFreeze_=!1}else i&&r.add(o);if(yo(o)&&!Ro(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Uo(e,o),t&&t.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||Ho(e,o)}}function Ho(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oo(t,r)}var Bo={get(e,t){if(t===po)return e;const r=Co(e);if(!_o(r,t))return function(e,t,r){const n=Wo(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!yo(n)?n:n===Go(e.base_,t)?(Yo(e),e.copy_[t]=qo(n,e)):n},has:(e,t)=>t in Co(e),ownKeys:e=>Reflect.ownKeys(Co(e)),set(e,t,r){const n=Wo(Co(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Go(Co(e),t),i=n?.[po];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((o=r)===(a=n)?0!==o||1/o==1/a:o!=o&&a!=a)&&(void 0!==r||_o(e.base_,t)))return!0;Yo(e),Ko(e)}var o,a;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Go(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Yo(e),Ko(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Co(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){fo(11)},getPrototypeOf:e=>mo(e.base_),setPrototypeOf(){fo(12)}},Vo={};function Go(e,t){const r=e[po];return(r?Co(r):e)[t]}function Wo(e,t){if(!(t in e))return;let r=mo(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=mo(r)}}function Ko(e){e.modified_||(e.modified_=!0,e.parent_&&Ko(e.parent_))}function Yo(e){e.copy_||(e.copy_=Ao(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function qo(e,t){const r=So(e)?No("MapSet").proxyMap_(e,t):xo(e)?No("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Io(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,a=Bo;r&&(o=[n],a=Vo);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return n.draft_=l,n.revoke_=i,l}(e,t);return(t?t.scope_:Io()).drafts_.push(r),r}function Zo(e){if(!yo(e)||Ro(e))return e;const t=e[po];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ao(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Ao(e,!0);return bo(r,((e,t)=>{Eo(r,e,Zo(t))})),t&&(t.finalized_=!1),r}bo(Bo,((e,t)=>{Vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Vo.deleteProperty=function(e,t){return Vo.set.call(this,e,t,void 0)},Vo.set=function(e,t,r){return Bo.set.call(this,e[0],t,r,e[0])};var Jo=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...o){return n.produce(e,(e=>t.call(this,e,...o)))}}let n;if("function"!=typeof t&&fo(6),void 0!==r&&"function"!=typeof r&&fo(7),yo(e)){const o=Do(this),a=qo(e,void 0);let i=!0;try{n=t(a),i=!1}finally{i?Mo(o):jo(o)}return To(o,r),Fo(n,o)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===co&&(n=void 0),this.autoFreeze_&&Oo(n,!0),r){const t=[],o=[];No("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}fo(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;return[this.produce(e,t,((e,t)=>{r=e,n=t})),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;yo(e)||fo(8),ho(e)&&(ho(t=e)||fo(10),e=Zo(t));const r=Do(this),n=qo(e,void 0);return n[po].isManual_=!0,jo(r),n}finishDraft(e,t){const r=e&&e[po];r&&r.isManual_||fo(9);const{scope_:n}=r;return To(n,t),Fo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=No("Patches").applyPatches_;return ho(e)?n(e,t):this.produce(e,(e=>n(e,t)))}},Xo=Jo.produce;Jo.produceWithPatches.bind(Jo),Jo.setAutoFreeze.bind(Jo),Jo.setUseStrictShallowCopy.bind(Jo),Jo.applyPatches.bind(Jo),Jo.createDraft.bind(Jo),Jo.finishDraft.bind(Jo);const Qo={connections:Object.values(SolidWPMail.providers),availableConnections:{mailgun:"Mailgun",sendgrid:"SendGrid",brevo:"Brevo",amazon_ses:"Amazon SES",postmark:"Postmark",other:"Generic SMTP"},errors:[],texts:{select_provider:(0,_t.__)("Please select your email service provider","LION"),smtp_host:(0,_t.__)("The SMTP host is the server address (URL or IP) provided by your email service for sending emails.","LION"),smtp_port:(0,_t.__)("The SMTP port is the endpoint (commonly 25, 465, or 587) used by the SMTP server to receive outgoing emails.","LION"),smtp_secure:(0,_t.__)("SMTP Secure refers to encryption protocols (SSL/TLS) used to protect email communications between the client and server.","LION"),smtp_username:(0,_t.__)("The SMTP username is the identifier (usually an email address) used to authenticate with the SMTP server.","LION"),smtp_password:(0,_t.__)("The SMTP password is the secret key used along with the username to authenticate and send emails through the SMTP server.","LION"),from_email:(0,_t.__)("The From Email is the email address that appears as the sender in outgoing emails.","LION"),from_name:(0,_t.__)("The From Name is the name that appears as the sender in outgoing emails.","LION"),smtp_auth:(0,_t.__)("SMTP Auth refers to the authentication process that verifies the identity of the email sender using the SMTP username and password.","LION"),is_active:(0,_t.__)("Sets whether the connection is active and operating. If set to active and saved, any other activated connection will be deactivated.","LION")},toasts:[],flags:{connection_saved:!1}},ea="solidwp_mail/connections";var ta=r(373),ra=r.n(ta);const na=window.wp.apiFetch;var oa=r.n(na);async function aa(e){const t=await oa()({url:(0,xn.addQueryArgs)(ajaxurl,{action:"solidwp_mail_save_connection",solidwp_mail_connections_nonce:SolidWPMail.nonces.save_connection}),method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:ra().stringify(e)});return{type:pa,data:t,toast:{id:Date.now(),message:(0,_t.__)("The provider has been added successfully.","LION")}}}function ia(e){return{type:fa,data:e}}function la(e){return{type:ha,data:e}}async function sa(e){const t=await oa()({url:(0,xn.addQueryArgs)(ajaxurl,{action:"solidwp_mail_make_provider_active",solidwp_mail_connections_nonce:SolidWPMail.nonces.make_connection_active}),method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:ra().stringify({provider_id:e,"solidwp-mail-connections-nonce":SolidWPMail.nonces.make_connection_active})});return{type:ma,data:t.data,toast:{id:Date.now(),message:(0,_t.__)("The connection has been set as the default.","LION")}}}async function ca(e){const t=await oa()({url:(0,xn.addQueryArgs)(ajaxurl,{action:"solidwp_mail_delete_connection",solidwp_mail_connections_nonce:SolidWPMail.nonces.delete_connection}),method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:ra().stringify({provider_id:e,"solidwp-mail-connections-nonce":SolidWPMail.nonces.delete_connection})});return{type:ma,data:t.data,toast:{id:Date.now(),message:(0,_t.__)("The connection has been deleted.","LION")}}}async function ua(){return{type:ya}}function da(e){return{type:ga,toast:{id:Date.now(),message:e}}}const pa="ADD_CONNECTION",fa="CLEAR_FLAGS",ma="REFRESH_CONNECTIONS",ha="REMOVE_TOAST",ya="CLEAR_ERRORS",ga="ADD_TOAST",va=(0,Et.createReduxStore)(ea,{actions:e,selectors:{getConnections:e=>e.connections,getTexts:e=>e.texts,getAvailableConnections:e=>e.availableConnections,getErrors:e=>e.errors,getFlags:e=>e.flags,getConnectionById:(e,t)=>e.connections.find((e=>e.id===t))||null,getToasts:e=>e.toasts,shouldSetActive:e=>0===e.connections.length},resolvers:{},controls:{},reducer:function(e=Qo,t){switch(t.type){case pa:return!0===t.data.success?Xo(e,(e=>{e.connections=Object.values(t.data.data),e.flags.connection_saved=!0,e.errors=[],e.toasts.push(t.toast)})):Xo(e,(e=>{e.errors=t.data.data}));case fa:return Xo(e,(e=>{e.flags[t.data]=!1}));case ha:return Xo(e,(e=>{e.toasts=e.toasts.filter((e=>e.id!==t.data))}));case ma:return Xo(e,(e=>{e.connections=Object.values(t.data),e.toasts.push(t.toast)}));case ya:return Xo(e,(e=>{e.errors=[]}));case ga:return Xo(e,(e=>{e.toasts.push(t.toast)}));default:return e}}});(0,Et.register)(va);const ba={...so,spacing:{section:"1.25rem",box:"2rem",root:"1.25rem 1.25rem 4rem 1.5rem",empty_connections:"80px 0"},colors:{...so.colors,solidwp_mail:{primary:"#6817C5",border:"#ccc",error:"#f44336"}}},wa=(0,wt.memo)((()=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},(0,t.createElement)("path",{d:"M180.4 203c-.7 22.7 10.6 32.7 10.9 39.1a8.2 8.2 0 0 1 -4.1 6.3l-12.8 9a10.7 10.7 0 0 1 -5.6 1.9c-.4 0-8.2 1.8-20.5-25.6a78.6 78.6 0 0 1 -62.6 29.5c-16.3 .9-60.4-9.2-58.1-56.2-1.6-38.3 34.1-62.1 70.9-60.1 7.1 0 21.6 .4 47 6.3v-15.6c2.7-26.5-14.7-47-44.8-43.9-2.4 0-19.4-.5-45.8 10.1-7.4 3.4-8.3 2.8-10.8 2.8-7.4 0-4.4-21.5-2.9-24.2 5.2-6.4 35.9-18.4 65.9-18.2a76.9 76.9 0 0 1 55.7 17.3 70.3 70.3 0 0 1 17.7 52.4v69.3zM94 235.4c32.4-.5 46.2-20 49.3-30.5 2.5-10.1 2.1-16.4 2.1-27.4-9.7-2.3-23.6-4.9-39.6-4.9-15.2-1.1-42.8 5.6-41.7 32.3-1.2 16.8 11.1 31.4 30 30.5zm170.9 23.1c-7.9 .7-11.5-4.9-12.7-10.4l-49.8-164.7c-1-2.8-1.6-5.7-1.9-8.6a4.6 4.6 0 0 1 3.9-5.3c.2 0-2.1 0 22.3 0 8.8-.9 11.6 6 12.6 10.4l35.7 140.8 33.2-140.8c.5-3.2 2.9-11.1 12.8-10.2h17.2c2.2-.2 11.1-.5 12.7 10.4l33.4 142.6L421 80.1c.5-2.2 2.7-11.4 12.7-10.4h19.7c.9-.1 6.2-.8 5.3 8.6-.4 1.9 3.4-10.7-52.8 169.9-1.2 5.5-4.8 11.1-12.7 10.4h-18.7c-10.9 1.2-12.5-9.7-12.7-10.8L328.7 110.7l-32.8 137c-.2 1.1-1.7 11.9-12.7 10.8h-18.3zm273.5 5.6c-5.9 0-33.9-.3-57.4-12.3a12.8 12.8 0 0 1 -7.8-11.9v-10.8c0-8.5 6.2-6.9 8.8-5.9 10 4.1 16.5 7.1 28.8 9.6 36.7 7.5 52.8-2.3 56.7-4.5 13.2-7.8 14.2-25.7 5.3-35-10.5-8.8-15.5-9.1-53.1-21-4.6-1.3-43.7-13.6-43.8-52.4-.6-28.2 25.1-56.2 69.5-56 12.7 0 46.4 4.1 55.6 15.6 1.4 2.1 2 4.6 1.9 7v10.1c0 4.4-1.6 6.7-4.9 6.7-7.7-.9-21.4-11.2-49.2-10.8-6.9-.4-39.9 .9-38.4 25-.4 19 26.6 26.1 29.7 26.9 36.5 11 48.7 12.8 63.1 29.6 17.1 22.3 7.9 48.3 4.4 55.4-19.1 37.5-68.4 34.4-69.3 34.4zm40.2 104.9c-70 51.7-171.7 79.3-258.5 79.3A469.1 469.1 0 0 1 2.8 327.5c-6.5-5.9-.8-14 7.2-9.5a637.4 637.4 0 0 0 316.9 84.1 630.2 630.2 0 0 0 241.6-49.6c11.8-5 21.8 7.8 10.1 16.4zm29.2-33.3c-9-11.5-59.3-5.4-81.8-2.7-6.8 .8-7.9-5.1-1.8-9.5 40.1-28.2 105.9-20.1 113.4-10.6 7.6 9.5-2.1 75.4-39.6 106.9-5.8 4.9-11.3 2.3-8.7-4.1 8.4-21.3 27.4-68.5 18.4-80z"})))),_a=(0,wt.memo)((()=>(0,t.createElement)("svg",{width:"40",viewBox:"0 0 1000 295",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{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:"#0B996E"})))),Ea=(0,wt.memo)((()=>(0,t.createElement)("svg",{width:"120",height:"120",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("circle",{cx:"80",cy:"80",r:"80",fill:"#6817C5"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.246 53.9952L79.7414 88.2759L119.753 53.9924C119.189 52.4669 117.722 51.3794 116 51.3794H44C42.2774 51.3794 40.8092 52.4682 40.246 53.9952ZM120 55.8578L79.7414 94.1379L40 55.8589V104.621C40 106.83 41.7909 108.621 44 108.621H116C118.209 108.621 120 106.83 120 104.621V55.8578Z",fill:"white"}),(0,t.createElement)("path",{d:"M64.4828 79.3965L40.6897 108.621H119.31L95.2587 79.3965L79.7414 94.1379L64.4828 79.3965Z",fill:"#D9D9D9",fillOpacity:"0.5"})))),Sa=(0,wt.memo)((()=>(0,t.createElement)("svg",{height:"25",viewBox:"0 0 775 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("circle",{cx:"80",cy:"80",r:"80",fill:"#6817C5"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.246 53.9952L79.7414 88.2759L119.753 53.9924C119.189 52.4669 117.722 51.3794 116 51.3794H44C42.2774 51.3794 40.8092 52.4682 40.246 53.9952ZM120 55.8578L79.7414 94.1379L40 55.8589V104.621C40 106.83 41.7909 108.621 44 108.621H116C118.209 108.621 120 106.83 120 104.621V55.8578Z",fill:"white"}),(0,t.createElement)("path",{d:"M64.4827 79.3965L40.6896 108.621H119.31L95.2586 79.3965L79.7414 94.1379L64.4827 79.3965Z",fill:"#D9D9D9",fillOpacity:"0.5"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M214.02 117.246L214.014 117.242C206.167 111.896 202.202 103.929 202.033 93.6467L202 91.6229H223.243L223.336 93.5163C223.544 97.7508 225.327 100.804 228.728 102.913C232.288 105.12 237.218 106.318 243.688 106.318H245.599C252.291 106.318 256.672 105.394 259.123 103.87C261.673 102.285 262.604 100.576 262.604 98.7512C262.604 96.7497 261.774 95.1454 259.869 93.8116L259.856 93.8025L259.843 93.7931C257.929 92.4069 254.417 91.1889 248.989 90.3237L248.978 90.322L235.953 88.171C226.252 86.5541 218.832 83.8051 213.974 79.7277L213.967 79.722L213.961 79.7163C209.022 75.4963 206.692 69.3356 206.692 61.5963C206.692 56.8885 208.051 52.4877 210.725 48.4336C213.455 44.2944 217.658 41.0529 223.163 38.6323C228.761 36.0903 235.795 34.875 244.166 34.875C256.051 34.875 265.676 37.3959 272.82 42.6669C279.988 47.8746 284.009 55.0923 284.856 64.1588L285.06 66.3352H263.81L263.577 64.6097C263.1 61.0637 261.372 58.3971 258.286 56.4772C255.12 54.5066 250.785 53.4326 245.121 53.4326H243.21C237.552 53.4326 233.493 54.2927 230.817 55.7986C228.156 57.3422 227.281 58.9393 227.281 60.5211C227.281 62.9112 228.108 64.4274 229.62 65.4351C231.424 66.6381 234.441 67.6933 238.881 68.4734L252.251 70.6221C262.237 72.2458 269.981 75.2877 275.233 79.9373C280.545 84.6393 283.192 90.7701 283.192 98.1539C283.192 106.741 279.75 113.504 272.887 118.196L272.882 118.199C266.201 122.739 256.74 124.875 244.763 124.875C232.027 124.875 221.715 122.405 214.026 117.25L214.02 117.246Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M295.257 109.383L295.247 109.367C292.075 104.309 290.522 98.4367 290.522 91.822C290.522 85.2082 292.075 79.3686 295.255 74.3839L295.26 74.3766C298.493 69.356 302.92 65.4919 308.49 62.7914C314.063 60.0892 320.463 58.7689 327.637 58.7689C334.812 58.7689 341.211 60.0892 346.785 62.7914C352.352 65.4909 356.742 69.3554 359.898 74.38C363.158 79.3637 364.752 85.2051 364.752 91.822C364.752 98.4449 363.155 104.323 359.898 109.382C356.74 114.332 352.349 118.155 346.785 120.852C341.211 123.555 334.812 124.875 327.637 124.875C320.463 124.875 314.063 123.555 308.49 120.852C302.928 118.156 298.503 114.338 295.268 109.4L295.257 109.383ZM336.851 77.5681L336.821 77.5513C334.446 76.2245 331.683 75.5344 328.473 75.5344H326.801C323.593 75.5344 320.779 76.2242 318.313 77.5631L318.304 77.568L318.294 77.5729C315.921 78.8294 314.039 80.6365 312.628 83.0351C311.25 85.377 310.513 88.2772 310.513 91.822C310.513 95.2719 311.244 98.182 312.634 100.62C314.044 103.012 315.927 104.86 318.304 106.195C320.771 107.457 323.589 108.11 326.801 108.11H328.473C331.696 108.11 334.471 107.453 336.851 106.195C339.316 104.855 341.235 103.005 342.64 100.62C344.031 98.1818 344.761 95.2717 344.761 91.822C344.761 88.2772 344.024 85.377 342.647 83.0351C341.244 80.6512 339.333 78.8447 336.881 77.5838L336.851 77.5681Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M373.828 123.68V36.0697H393.7V123.68H373.828Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M405.534 61.9547H425.406V123.68H405.534V61.9547Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M450.145 120.949L450.133 120.943C445.106 118.302 441.096 114.502 438.124 109.576L438.12 109.57L438.116 109.563C435.116 104.505 433.656 98.5657 433.656 91.822C433.656 84.7116 435.103 78.6331 438.127 73.7033C441.104 68.7724 445.127 65.0424 450.175 62.56C455.244 60.0264 460.766 58.7689 466.709 58.7689C472.548 58.7689 477.524 59.6702 481.538 61.5881C483.667 62.585 485.554 63.7218 487.178 65.008V36.0697H507.05V123.68H487.178V118.945C485.393 120.33 483.314 121.497 480.962 122.457L480.946 122.464L480.929 122.47C476.76 124.087 472.089 124.875 466.948 124.875C460.842 124.875 455.229 123.576 450.145 120.949ZM484.949 100.84L484.953 100.833C486.406 98.4117 487.178 95.4365 487.178 91.822C487.178 88.117 486.402 85.1563 484.967 82.8329L484.955 82.8147L484.944 82.7962C483.548 80.4214 481.649 78.6648 479.22 77.4847L479.189 77.4696L479.158 77.4534C476.776 76.1923 473.998 75.5344 470.771 75.5344H469.099C464.455 75.5344 460.794 76.9681 457.945 79.7472L457.936 79.756L457.927 79.7647C455.168 82.3889 453.647 86.2976 453.647 91.822C453.647 97.3374 455.164 101.297 457.936 104.007C460.781 106.709 464.445 108.11 469.099 108.11H470.771C474.011 108.11 476.801 107.486 479.189 106.294C481.636 105.033 483.544 103.229 484.944 100.848L484.949 100.84Z",fill:"black"}),(0,t.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M415.124 55.7588C408.443 55.7588 403.834 51.1499 403.834 45.4645C403.834 39.7792 408.443 35.1703 415.124 35.1703H415.601C422.282 35.1703 426.891 39.7792 426.891 45.4645C426.891 51.1499 422.282 55.7588 415.601 55.7588H415.124Z",fill:"black"}),(0,t.createElement)("path",{d:"M593.875 115.875L630.125 36.375H645.375V123.875H636.25V43.375L599.625 123.875H587.875L551.375 43.75V123.875H542.25V36.375H557.625L593.875 115.875Z",fill:"black"}),(0,t.createElement)("path",{d:"M685.653 125.125C669.903 125.125 661.778 117.25 661.778 106.5C661.778 93.75 672.153 88.5 685.278 87.625L711.528 86.125V83.625C711.528 73 704.278 67.25 692.278 67.25H690.278C680.653 67.25 673.403 71.75 672.278 78.875H663.528C664.778 68.125 675.778 60.125 691.278 60.125C710.028 60.125 720.028 69.875 720.028 83.875V110.125C720.028 113.875 720.403 119.5 720.903 123.875H713.028C712.403 120.75 712.153 115.625 712.153 113.75C708.528 119.625 699.153 125.125 685.653 125.125ZM686.528 118H688.278C699.153 118 711.528 111 711.528 98.625V93.125L689.278 94.25C675.278 95.125 670.403 99.25 670.403 106C670.403 113.125 675.028 118 686.528 118Z",fill:"black"}),(0,t.createElement)("path",{d:"M747.61 50.125H737.86V39.5H747.61V50.125ZM747.11 123.875H738.61V61.375H747.11V123.875Z",fill:"black"}),(0,t.createElement)("path",{d:"M774.884 123.875H766.384V36.375H774.884V123.875Z",fill:"black"})))),xa=(0,wt.memo)((()=>(0,t.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000",xmlSpace:"preserve"},(0,t.createElement)("style",{type:"text/css"},".st0{fill:#C12126;}"),(0,t.createElement)("path",{className:"st0",d:"M493,305.7c-88.9,0-161,72.1-161,161c0,88.9,72.1,161,161,161c88.9,0,161-72.1,161-161 C654,377.8,582,305.7,493,305.7z M242,466.7c0-138.7,112.4-251,251-251c138.7,0,251.1,112.4,251.1,251c0,9.2-0.5,18.2-1.4,27.1 c-1.9,24.5,16.1,43.2,40.4,43.2c41.3,0,45.7-53.2,45.7-70.3c0-185.4-150.3-335.6-335.6-335.6S157.4,281.4,157.4,466.7 c0,185.4,150.3,335.6,335.6,335.6c98.4,0,187-42.4,248.4-109.9l69,57.9c-77.9,87.1-191.3,142-317.4,142 c-235.1,0-425.7-190.6-425.7-425.7S257.9,41,493,41c235.1,0,425.7,190.6,425.7,425.7c0,94.5-45,171.2-135.4,171.2 c-39.8,0-64-18.2-77.2-38.6C661.9,670.5,583,717.8,493,717.8C354.4,717.8,242,605.4,242,466.7z M493,393.1c40.7,0,73.7,33,73.7,73.7 c0,40.7-33,73.7-73.7,73.7c-40.7,0-73.7-33-73.7-73.7S452.3,393.1,493,393.1z"})))),Ca=(0,wt.memo)((()=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",fill:"none",viewBox:"0 0 24 24"},(0,t.createElement)("path",{d:"M18 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V16C4.75 16.6904 5.30964 17.25 6 17.25H18C18.6904 17.25 19.25 16.6904 19.25 16V8C19.25 7.30964 18.6904 6.75 18 6.75Z",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,t.createElement)("path",{d:"M5 7L12 13L19 7",stroke:"#1E1E1E",strokeWidth:"1.5"})))),Aa=(0,wt.memo)((()=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Sendgrid",viewBox:"0 0 32 32"},(0,t.createElement)("defs",null,(0,t.createElement)("style",null,".cls-1 {\n fill: #51a9e3;\n }")),(0,t.createElement)("g",{id:"Icon_Updated_Keylines","data-name":"Icon, Updated Keylines"},(0,t.createElement)("path",{className:"cls-1",d:"m21,1h-8c-1.1,0-2,.9-2,2v6c0,1.1.9,2,2,2h6c1.1,0,2,.9,2,2v6c0,1.1.9,2,2,2h6c1.1,0,2-.9,2-2V2c0-.55-.45-1-1-1h-9Z"}),(0,t.createElement)("path",{className:"cls-1",d:"m11,31h8c1.1,0,2-.9,2-2v-6c0-1.1-.9-2-2-2h-6c-1.1,0-2-.9-2-2v-6c0-1.1-.9-2-2-2H3c-1.1,0-2,.9-2,2v17c0,.55.45,1,1,1h9Z"}))))),Oa=(0,wt.memo)((()=>(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"40",viewBox:"0 0 64 64"},(0,t.createElement)("defs",null,(0,t.createElement)("path",{id:"A",d:"M128 117v6a5 5 0 0 0-5 5h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0h-6a5 5 0 1 0-10 0H5a5 5 0 0 0-5-5v-6a5 5 0 1 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10v-6a5 5 0 0 0 0-10V5a5 5 0 0 0 5-5h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 0 0 10 0h6a5 5 0 1 0 10 0h6a5 5 0 0 0 5 5v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10v6a5 5 0 1 0 0 10z"}),(0,t.createElement)("rect",{id:"B",width:"96",height:"96",x:"16",y:"16",rx:"2"})),(0,t.createElement)("g",{transform:"matrix(.492308 0 0 .492308 .492308 .492308)",fill:"none",fillRule:"evenodd"},(0,t.createElement)("use",{xlinkHref:"#A",fill:"#f0f0f0"}),(0,t.createElement)("path",{d:"M128.5 116.5v7h-.5a4.5 4.5 0 0 0-4.5 4.5v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-9 0v.5h-7v-.5a4.5 4.5 0 0 0-4.5-4.5h-.5v-7H0a4.5 4.5 0 0 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0a4.5 4.5 0 1 0 0-9h-.5v-7H0A4.5 4.5 0 0 0 4.5 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 1 0 9 0v-.5h7V0a4.5 4.5 0 0 0 9 0v-.5h7V0a4.5 4.5 0 0 0 4.5 4.5h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9h.5v7h-.5a4.5 4.5 0 0 0 0 9z",stroke:"#ccc"}),(0,t.createElement)("path",{d:"M127.5 117.478a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956v-5.044a5.5 5.5 0 0 1 0-10.956V5.478A5.502 5.502 0 0 1 122.522.5h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0h-5.044a5.5 5.5 0 0 1-10.956 0H5.478A5.502 5.502 0 0 1 .5 5.478v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.5 5.5 0 0 1 0 10.956v5.044a5.502 5.502 0 0 1 4.978 4.978h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.5 5.5 0 0 1 10.956 0h5.044a5.502 5.502 0 0 1 4.978-4.978z",stroke:"#fff"}),(0,t.createElement)("use",{xlinkHref:"#B",fill:"#fedd00"}),(0,t.createElement)("rect",{width:"95",height:"95",x:"16.5",y:"16.5",rx:"2",stroke:"#d9b500"}),(0,t.createElement)("rect",{width:"97",height:"97",x:"15.5",y:"15.5",rx:"2",stroke:"#fff"}),(0,t.createElement)("path",{d:"M50.3 86.084V42.3H43V35h25.886c16.168 0 19.522 10.664 19.522 18.06 0 5.934-2.408 10.492-4.902 12.986-4.042 4.042-9.546 4.988-17.888 4.988h-6.536v15.05h7.654v7.3H43v-7.3zm8.772-22.102h7.3c10.75 0 13.072-4.988 13.072-11.008 0-6.88-3.87-10.664-10.32-10.664H59.082z",fill:"#000"})))));var La=dn.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){La[e]=La(e)}));const Ra=La.div` width: 100%; padding: 10px 24px; background: #fff; `,ka=()=>(0,t.createElement)(Ra,null,(0,t.createElement)(Sa,null)),Pa=La.div` padding: ${({theme:e})=>e.spacing.root}; max-width: 1680px; margin: 0 auto; width: 100%; @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { padding-left: 0; padding-right: 10px; } `,Na=La.nav` border-bottom: solid 1px ${({theme:e})=>e.colors.border.normal}; display: flex; margin-top: ${({theme:e})=>e.spacing.section}; `,Ia=La(gt)` text-decoration: none; padding: 0.75rem 1.25rem; border-bottom: 4px solid transparent; &.active, &:hover { color: ${({theme:e})=>e.colors.solidwp_mail.primary}; border-bottom: solid 4px ${({theme:e})=>e.colors.solidwp_mail.primary}; } `,Ta=({children:e,headerText:r="",withNav:n=!0})=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(ka,null),(0,t.createElement)(Pa,null,(0,t.createElement)(Kn,{level:2},r),n&&(0,t.createElement)(Na,null,(0,t.createElement)(Ia,{to:"/providers"},(0,t.createElement)(Fn,{size:Rn.LARGE,weight:600,align:"center"},(0,_t.__)("Connections","LION"))),(0,t.createElement)(Ia,{to:"/email-test"},(0,t.createElement)(Fn,{size:Rn.LARGE,weight:600,align:"center"},(0,_t.__)("Email Test","LION")))),e)),Ma=La(hn.SnackbarList)` position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; `;function ja(){const e=(0,Et.useSelect)((e=>e(ea).getToasts()),[]),{removeToast:r}=(0,Et.useDispatch)(ea);return(0,t.createElement)("div",null,e.length>0&&(0,t.createElement)(Ma,{notices:e.map((e=>({id:e.id,content:e.message,status:"default"}))),onRemove:e=>{r(e)}}))}const Da=function(){return(0,t.createElement)(ro,{theme:ba},(0,t.createElement)(Ta,{headerText:(0,_t.__)("Email Connections","LION")},(0,t.createElement)(et,null),(0,t.createElement)(ja,null)))},za=La((function({children:e,variant:t="primary",className:r}){const[n,o]=(0,Sn.useResizeObserver)(),a=null!==o.width&&o.width<=600;return fn(Yn.Provider,Object.assign({value:{variant:t}},{children:mn(qn,Object.assign({variant:t,className:wn("it-ui-callout",r)},{children:[n,fn(Zn,Object.assign({isColumn:a},{children:e}))]}))}))}))` padding: ${({theme:e})=>e.spacing.empty_connections}; span { margin-top: ${({theme:e})=>e.spacing.section}; margin-bottom: ${({theme:e})=>e.spacing.section}; } `,Fa=La.div` display: flex; align-items: center; justify-content: center; flex-direction: column; `,Ua=()=>{const e=He(),r=(0,wt.createInterpolateElement)((0,_t.__)("Looks like you haven't set up any email providers yet. Let's get started! If you need assistance, here is the documentation link.","LION"),{help:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-set-up-connection",rel:"noreferrer",target:"_blank"})});return(0,t.createElement)(za,null,(0,t.createElement)(Fa,null,(0,t.createElement)(Ea,null),(0,t.createElement)(Fn,{text:r}),(0,t.createElement)(Vn,{variant:"primary",icon:"plus",text:(0,_t.__)("Add Connection","LION"),onClick:()=>e("add")})))},$a=La(hn.Modal)` .components-modal__header { border-color: ${({theme:e})=>e.colors.border.normal}; } `,Ha=La.div` display: flex; flex-direction: column; align-items: center; gap: ${({theme:{getSize:e}})=>e(1.5)}; padding-top: ${({theme:{getSize:e}})=>e(1.5)}; `,Ba=La.div` display: flex; gap: ${({theme:{getSize:e}})=>e(.5)}; `,Va=function({title:e,body:r,onContinue:n,onCancel:o,continueText:a,cancelText:i=(0,_t.__)("Cancel","LION"),isBusy:l}){return(0,t.createElement)($a,{title:e,onRequestClose:o,focusOnMount:!0,closeButtonLabel:i},(0,t.createElement)(Ha,null,(0,t.createElement)(Fn,{as:"p",variant:Ln.DARK,text:r}),(0,t.createElement)(Ba,null,(0,t.createElement)(Vn,{text:i,onClick:o,variant:"secondary"}),(0,t.createElement)(Vn,{text:a,onClick:n,variant:"primary",isBusy:l}))))},Ga=La.div``,Wa=La.div` display: grid; grid-template-columns: 6fr 4fr 2fr; padding: 20px 32px; border-bottom: 1px solid ${({theme:e})=>e.colors.border.normal}; @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { grid-template-columns: 8fr 2fr; } `,Ka=La(hn.Flex)` margin-bottom: ${({theme:e})=>e.spacing.section}; `,Ya=La(Fn)` @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { display: ${({hideOnSmall:e})=>e?"none":""}; } `,qa=La.div` display: flex; `,Za=La.div` width: 40px; height: 40px; border-radius: 4px; margin-right: 20px; @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { display: none; } `,Ja=La.div` span { display: block; margin-top: 5px; } `,Xa=La.div` @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { display: none; } `,Qa=La.div` button { margin-right: 10px; } button:last-child { margin-right: 0; } `,ei=function({connection:e,onSetConnectionActive:r,onDeleteButtonClick:n,onEditButtonClick:o}){return(0,t.createElement)(Wa,null,(0,t.createElement)(qa,null,(0,t.createElement)(Za,null,"brevo"===e.name&&(0,t.createElement)(_a,null),"sendgrid"===e.name&&(0,t.createElement)(Aa,null),"mailgun"===e.name&&(0,t.createElement)(xa,null),"amazon_ses"===e.name&&(0,t.createElement)(wa,null),"postmark"===e.name&&(0,t.createElement)(Oa,null),"other"===e.name&&(0,t.createElement)(Ca,null)),(0,t.createElement)(Ja,null,(0,t.createElement)(Fn,{as:"p",weight:500},e.display_name),(0,t.createElement)(Fn,{variant:"muted"},"-"," ",(0,_t.sprintf)(/* translators: 1. From Name */ /* translators: 1. From Name */ (0,_t.__)("From: %s","LION"),e.from_name)),(0,t.createElement)(Fn,{variant:"muted"},"-"," ",(0,_t.sprintf)(/* translators: 1. Email address */ /* translators: 1. Email address */ (0,_t.__)("From Email: %s","LION"),e.from_email)))),(0,t.createElement)(Xa,null,(0,t.createElement)(hn.ToggleControl,{label:"",onChange:t=>{r(e.id,t)},checked:e.is_active})),(0,t.createElement)(Qa,null,(0,t.createElement)(Vn,{icon:"edit",variant:"secondary",onClick:()=>{o(e.id)}},"Edit"),(0,t.createElement)(Vn,{disabled:e.is_active,icon:"trash",onClick:()=>n(e.id),variant:"secondary"},"Delete")))},ti=function({connections:e}){const{setConnectionActive:r,deleteConnection:n}=(0,Et.useDispatch)(ea),[o,a]=(0,wt.useState)(!1),[i,l]=(0,wt.useState)("closed"),[s,c]=(0,wt.useState)(!1),u=He(),d=(e,t)=>{t&&r(e)},p=e=>{a(e),l("open")},f=e=>{u("edit/"+e)};return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(Ka,{justify:"right"},(0,t.createElement)(Vn,{variant:"primary",icon:"plus",onClick:()=>{u("add")}},(0,_t.__)("Add new Connection","LION"))),(0,t.createElement)(jn,{variant:"primary"},(0,t.createElement)(Ga,null,(0,t.createElement)(Wa,null,(0,t.createElement)(Ya,{weight:500},(0,_t.__)("Provider","LION")),(0,t.createElement)(Ya,{weight:500,hideOnSmall:!0},(0,_t.__)("Active Connection","LION")),(0,t.createElement)(Ya,{weight:500},(0,_t.__)("Actions","LION"))),e.map(((e,r)=>(0,t.createElement)(ei,{connection:e,key:r,onSetConnectionActive:d,onDeleteButtonClick:p,onEditButtonClick:f}))))),"open"===i&&!1!==o&&(0,t.createElement)(Va,{onCancel:()=>{l("close"),a(!1)},onContinue:async()=>{c(!0),await n(o),l("close"),a(!1),c(!1)},title:(0,_t.__)("Confirm Deletion","LION"),body:(0,_t.__)("Are you sure you want to delete this item?","LION"),isBusy:s,continueText:(0,_t.__)("Delete","LION")}))},ri=La.div` margin-top: ${({theme:e})=>e.spacing.section}; `,ni=(0,wt.forwardRef)((function({icon:e,size:t=24,...r},n){return(0,wt.cloneElement)(e,{width:t,height:t,...r,ref:n})})),oi=(0,t.createElement)(Cn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(Cn.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class ai{static allowedNames=["other","sendgrid","mailgun","brevo","amazon_ses","postmark"];constructor(e="",t="",r="",n="",o="",a="",i=0,l="",s="no",c="",u=""){if(!ai.allowedNames.includes(t))throw new Error(`Invalid provider name: ${t}. Allowed names are: ${ai.allowedNames.join(", ")}`);this.id=e,this.from_email=n,this.from_name=o,this.smtp_host=a,this.smtp_port=i,this.smtp_secure=l,this.smtp_auth=s,this.smtp_username=c,this.smtp_password=u,this.name=t,this.description=r}}const ii=ai,li=La.label` font-size: 16px; font-weight: 500; color: ${({theme:e})=>e.colors.text.normal}; display: block; `,si=La.div` border-bottom: 1px solid ${({theme:e})=>e.colors.solidwp_mail.border}; padding: ${({theme:e})=>e.spacing.box}; display: grid; grid-template-columns: 1fr 6fr; &:last-child { border-bottom: none; } @media ( max-width: ${({theme:e})=>`${e.breaks.medium}px`} ) { grid-template-columns: 1fr; gap: 10px; } `,ci=La.div``;function ui({label:e,name:r,type:n="text",value:o="",onChange:a,error:i,help:l}){return(0,t.createElement)(si,null,(0,t.createElement)(li,null,e),(0,t.createElement)(ci,null,(0,t.createElement)(hn.TextControl,{help:l,name:r,type:n,value:o,onChange:a}),i&&(0,t.createElement)(Fn,{variant:"danger"},i)))}function di({label:e,name:r,value:n="",options:o=[],onChange:a,error:i,help:l}){return(0,t.createElement)(si,null,(0,t.createElement)(li,null,e),(0,t.createElement)(ci,null,(0,t.createElement)(hn.RadioControl,{help:l,selected:n,options:o,onChange:a,name:r}),i&&(0,t.createElement)(Fn,{variant:"danger"},i)))}function pi({label:e,name:r,options:n=[],value:o="",onChange:a,error:i,help:l}){return(0,t.createElement)(si,null,(0,t.createElement)(li,null,e),(0,t.createElement)(ci,null,(0,t.createElement)(hn.SelectControl,{value:o,options:n,help:l,onChange:a,name:r,__nextHasNoMarginBottom:!0}),i&&(0,t.createElement)(Fn,{variant:"danger"},i)))}function fi({label:e,name:r,type:n="text",value:o="",onChange:a,error:i,help:l}){return(0,t.createElement)(si,null,(0,t.createElement)(li,null,e),(0,t.createElement)(ci,null,(0,t.createElement)(hn.TextareaControl,{help:l,type:n,name:r,value:o,onChange:a}),i&&(0,t.createElement)(Fn,{variant:"danger"},i)))}function mi({label:e,name:r,value:n=!1,onChange:o,error:a,help:i}){return(0,t.createElement)(si,null,(0,t.createElement)(li,null,e),(0,t.createElement)(ci,null,(0,t.createElement)(hn.ToggleControl,{label:"",help:i,checked:n,onChange:o,name:r}),a&&(0,t.createElement)(Fn,{variant:"danger"},a)))}const hi=La(jn)` display: block; margin-bottom: ${({theme:e})=>e.spacing.section}; `,yi=La.div` padding: ${({theme:e})=>e.spacing.box}; border-bottom: 1px solid ${({theme:e})=>e.colors.border.normal}; p, span { margin-bottom: 5px; } `,gi=function({model:e,handleInputChange:r,errors:n,texts:o}){const[a,i]=(0,wt.useState)("yes"===e.smtp_auth);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("Sender Setting","LION")),(0,t.createElement)(Fn,null,o.sender_heading_text)),(0,t.createElement)(ui,{label:(0,_t.__)("From email","LION"),name:"from_email",type:"email",value:e.from_email,error:n.from_email,onChange:e=>r("from_email",e),help:o.from_email}),(0,t.createElement)(ui,{label:(0,_t.__)("From name","LION"),name:"from_name",value:e.from_name,error:n.from_name,onChange:e=>r("from_name",e),help:o.from_name})),(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("SMTP Settings","LION")),(0,t.createElement)(Fn,null,(0,_t.__)("SMTP (Simple Mail Transfer Protocol) settings are configurations needed to send emails from an email client or application","LION"))),(0,t.createElement)(ui,{label:(0,_t.__)("SMTP Host","LION"),name:"smtp_host",type:"text",value:e.smtp_host,error:n.smtp_host,onChange:e=>r("smtp_host",e),help:o.smtp_host}),(0,t.createElement)(ui,{label:(0,_t.__)("SMTP Port","LION"),name:"smtp_port",type:"text",value:e.smtp_port,error:n.smtp_port,onChange:e=>r("smtp_port",e),help:o.smtp_port}),(0,t.createElement)(di,{label:(0,_t.__)("Secure","LION"),name:"smtp_secure",options:[{value:"",label:(0,_t.__)("None","LION")},{value:"ssl",label:(0,_t.__)("SSL","LION")},{value:"tls",label:(0,_t.__)("TLS","LION")}],onChange:e=>r("smtp_secure",e),value:e.smtp_secure,error:n.smtp_secure,help:o.smtp_secure}),(0,t.createElement)(mi,{label:(0,_t.__)("SMTP Authentication","LION"),name:"smtp_auth",value:a,error:n.smtp_auth,onChange:e=>{i(e),r("smtp_auth",!0===e?"yes":"no")},help:o.smtp_auth}),a&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(ui,{label:(0,_t.__)("Username","LION"),name:"smtp_username",type:"text",value:e.smtp_username,error:n.smtp_username,onChange:e=>r("smtp_username",e),help:o.smtp_username}),(0,t.createElement)(ui,{label:(0,_t.__)("Password","LION"),name:"smtp_password",type:"password",value:e.smtp_password,error:n.smtp_password,onChange:e=>r("smtp_password",e),help:o.smtp_password}))))},vi=function({model:e,handleInputChange:r,errors:n,texts:o}){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("Sender Setting","LION")),(0,t.createElement)(Fn,null,o.sender_heading_text)),(0,t.createElement)(ui,{label:(0,_t.__)("From email","LION"),name:"from_email",type:"email",value:e.from_email,error:n.from_email,onChange:e=>{r("from_email",e)},help:o.from_email}),(0,t.createElement)(ui,{label:(0,_t.__)("From name","LION"),name:"from_name",value:e.from_name,error:n.from_name,onChange:e=>{r("from_name",e)},help:o.from_name})),(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("SMTP Settings","LION")),(0,t.createElement)(Fn,null,(0,wt.createInterpolateElement)((0,_t.__)("Brevo offers flexible pricing for email marketing. For pricing information visit here. For configuration information, visit here. ","LION"),{pricing:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-brevo-pricing",rel:"noreferrer",target:"_blank"}),help:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-brevo-config",rel:"noreferrer",target:"_blank"})}))),(0,t.createElement)(ui,{label:(0,_t.__)("Username","LION"),name:"smtp_username",type:"text",value:e.smtp_username,error:n.smtp_username,onChange:e=>{r("smtp_username",e)},help:o.smtp_username}),(0,t.createElement)(ui,{label:(0,_t.__)("Password","LION"),name:"smtp_password",type:"password",value:e.smtp_password,error:n.smtp_password,onChange:e=>{r("smtp_password",e)},help:o.smtp_password})))},bi=function({model:e,handleInputChange:r,errors:n,texts:o}){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("Sender Setting","LION")),(0,t.createElement)(Fn,null,o.sender_heading_text)),(0,t.createElement)(ui,{label:(0,_t.__)("From email","LION"),name:"from_email",type:"email",value:e.from_email,error:n.from_email,onChange:e=>{r("from_email",e)},help:o.from_email}),(0,t.createElement)(ui,{label:(0,_t.__)("From name","LION"),name:"from_name",value:e.from_name,error:n.from_name,onChange:e=>{r("from_name",e)},help:o.from_name})),(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("SMTP Settings","LION")),(0,t.createElement)(Fn,null,(0,wt.createInterpolateElement)((0,_t.__)("Amazon SES (Simple Email Service) is a scalable, cost-effective email service for developers and businesses. It supports sending transactional, marketing, and bulk emails with a pay-as-you-go pricing model. For pricing information visit here. For configuration information, visit here.","LION"),{pricing:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-ses-pricing",rel:"noreferrer",target:"_blank"}),help:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-ses-config",rel:"noreferrer",target:"_blank"})}))),(0,t.createElement)(ui,{label:(0,_t.__)("SMTP Host","LION"),name:"smtp_host",type:"text",value:e.smtp_host,error:n.smtp_host,onChange:e=>{r("smtp_host",e)},help:o.smtp_host}),(0,t.createElement)(ui,{label:(0,_t.__)("Username","LION"),name:"smtp_username",type:"text",value:e.smtp_username,error:n.smtp_username,onChange:e=>{r("smtp_username",e)},help:o.smtp_username}),(0,t.createElement)(ui,{label:(0,_t.__)("Password","LION"),name:"smtp_password",type:"password",value:e.smtp_password,error:n.smtp_password,onChange:e=>{r("smtp_password",e)},help:o.smtp_password})))},wi=function({model:e,handleInputChange:r,errors:n,texts:o}){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("Sender Setting","LION")),(0,t.createElement)(Fn,null,o.sender_heading_text)),(0,t.createElement)(ui,{label:(0,_t.__)("From email","LION"),name:"from_email",type:"email",value:e.from_email,error:n.from_email,onChange:e=>{r("from_email",e)},help:o.from_email}),(0,t.createElement)(ui,{label:(0,_t.__)("From name","LION"),name:"from_name",value:e.from_name,error:n.from_name,onChange:e=>{r("from_name",e)},help:o.from_name})),(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("SMTP Settings","LION")),(0,t.createElement)(Fn,null,(0,wt.createInterpolateElement)((0,_t.__)("SendGrid is a comprehensive email delivery platform offering robust APIs for sending, receiving, and tracking emails. For pricing information visit here. For configuration information, visit here.","LION"),{pricing:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-sendgrid-pricing",rel:"noreferrer",target:"_blank"}),help:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-sendgrid-config",rel:"noreferrer",target:"_blank"})}))),(0,t.createElement)(ui,{label:(0,_t.__)("Password","LION"),name:"smtp_password",type:"password",value:e.smtp_password,error:n.smtp_password,onChange:e=>{r("smtp_password",e)},help:o.smtp_password})))},_i=function({model:e,handleInputChange:r,errors:n,texts:o}){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("Sender Setting","LION")),(0,t.createElement)(Fn,null,o.sender_heading_text)),(0,t.createElement)(ui,{label:(0,_t.__)("From email","LION"),name:"from_email",type:"email",value:e.from_email,error:n.from_email,onChange:e=>{r("from_email",e)},help:o.from_email}),(0,t.createElement)(ui,{label:(0,_t.__)("From name","LION"),name:"from_name",value:e.from_name,error:n.from_name,onChange:e=>{r("from_name",e)},help:o.from_name})),(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("SMTP Settings","LION")),(0,t.createElement)(Fn,null,(0,wt.createInterpolateElement)((0,_t.__)("Mailgun is a comprehensive email automation platform with APIs for sending, receiving, and tracking emails. For pricing information visit here. For configuration information, visit here.","LION"),{pricing:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-mailgun-pricing",rel:"noreferrer",target:"_blank"}),help:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-mailgun-config",rel:"noreferrer",target:"_blank"})}))),(0,t.createElement)(ui,{label:(0,_t.__)("Username","LION"),name:"smtp_username",type:"text",value:e.smtp_username,error:n.smtp_username,onChange:e=>{r("smtp_username",e)},help:o.smtp_username}),(0,t.createElement)(ui,{label:(0,_t.__)("Password","LION"),name:"smtp_password",type:"password",value:e.smtp_password,error:n.smtp_password,onChange:e=>{r("smtp_password",e)},help:o.smtp_password})))},Ei=function({model:e,handleInputChange:r,errors:n,texts:o}){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("Sender Setting","LION")),(0,t.createElement)(Fn,null,o.sender_heading_text)),(0,t.createElement)(ui,{label:(0,_t.__)("From email","LION"),name:"from_email",type:"email",value:e.from_email,error:n.from_email,onChange:e=>{r("from_email",e)},help:o.from_email}),(0,t.createElement)(ui,{label:(0,_t.__)("From name","LION"),name:"from_name",value:e.from_name,error:n.from_name,onChange:e=>{r("from_name",e)},help:o.from_name})),(0,t.createElement)(hi,null,(0,t.createElement)(yi,null,(0,t.createElement)(Fn,{weight:500,as:"p",size:Rn.LARGE},(0,_t.__)("SMTP Settings","LION")),(0,t.createElement)(Fn,null),(0,wt.createInterpolateElement)((0,_t.__)("Postmark is a reliable email delivery service focused on transactional emails with fast delivery and easy integration. For pricing information visit here. For configuration information, visit here.","LION"),{pricing:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-postmark-pricing",rel:"noreferrer",target:"_blank"}),help:(0,t.createElement)("a",{href:"https://go.solidwp.com/mail-postmark-config",rel:"noreferrer",target:"_blank"})})),(0,t.createElement)(ui,{label:(0,_t.__)("API Key","LION"),name:"smtp_username",type:"text",value:e.smtp_username,error:n.smtp_username,onChange:e=>{r("smtp_username",e)},help:(0,_t.__)("Enter your Postmark API Key. You can find this key in your Postmark account under API settings.","LION")})))},Si=function({model:e,setModel:r}){const n=He(),{errors:o,flags:a,texts:i}=(0,Et.useSelect)((e=>({errors:e(ea).getErrors(),flags:e(ea).getFlags(),texts:e(ea).getTexts()})),[]),{addProvider:l,clearFlags:s,clearErrors:c}=(0,Et.useDispatch)(ea);(0,wt.useEffect)((()=>{!0===a.connection_saved&&(s("connection_saved"),n("/"))}),[a.connection_saved,s,n]),(0,wt.useEffect)((()=>{c()}),[c]);const u=(e,t)=>{r((r=>({...r,[e]:t})))};return(0,t.createElement)("form",{method:"post",onSubmit:function(t){t.preventDefault(),l(e)}},"other"===e.name&&(0,t.createElement)(gi,{model:e,handleInputChange:u,errors:o,texts:i}),"brevo"===e.name&&(0,t.createElement)(vi,{model:e,handleInputChange:u,errors:o,texts:i}),"mailgun"===e.name&&(0,t.createElement)(_i,{model:e,handleInputChange:u,errors:o,texts:i}),"sendgrid"===e.name&&(0,t.createElement)(wi,{model:e,handleInputChange:u,errors:o,texts:i}),"amazon_ses"===e.name&&(0,t.createElement)(bi,{model:e,handleInputChange:u,errors:o,texts:i}),"postmark"===e.name&&(0,t.createElement)(Ei,{model:e,handleInputChange:u,errors:o,texts:i}),(0,t.createElement)(hi,null,(0,t.createElement)(mi,{label:(0,_t.__)("Is Active","LION"),name:"is_active",value:e.is_active,onChange:e=>{u("is_active",e)},help:i.is_active})),(0,t.createElement)(hn.Flex,{justify:"end",direction:"row",gap:5},(0,t.createElement)(Vn,{variant:"secondary",type:"button",onClick:()=>n("/providers")},(0,_t.__)("Back to Connections","LION")),(0,t.createElement)(Vn,{variant:"primary",type:"submit"},(0,_t.__)("Save Connection","LION"))))},xi=La.div` margin-top: ${({theme:e})=>e.spacing.section}; `,Ci=La(yt)` display: flex; margin-bottom: ${({theme:e})=>e.spacing.section}; align-items: center; text-decoration: none; gap: 4px; `;function Ai(){const e=[{value:"",label:(0,_t.__)("---Select Provider---","LION")}],t=(0,Et.useSelect)((e=>e(ea).getAvailableConnections()),[]);return Object.entries(t).forEach((([t,r])=>{e.push({value:t,label:r})})),e}const Oi=La.div` margin-top: ${({theme:e})=>e.spacing.section}; `,Li=(Ri=[{path:"/providers",element:(0,t.createElement)(Da,null),children:[{index:!0,element:(0,t.createElement)((function(){const e=(0,Et.useSelect)((e=>e(ea).getConnections()),[]);return(0,t.createElement)(ri,null,0===e.length?(0,t.createElement)(Ua,null):(0,t.createElement)(ti,{connections:e}))}),null)},{path:"add",element:(0,t.createElement)((function(){const[e,r]=(0,wt.useState)(""),[n,o]=(0,wt.useState)(null),{texts:a,shouldSetActive:i}=(0,Et.useSelect)((e=>({texts:e(ea).getTexts(),shouldSetActive:e(ea).shouldSetActive()})),[]);return(0,t.createElement)(xi,null,(0,t.createElement)(Ci,{to:"/providers"},(0,t.createElement)(ni,{icon:oi,size:20}),(0,t.createElement)(Fn,{variant:Ln.ACCENT},(0,_t.__)("Back to Email Connections","LION"))),(0,t.createElement)(hi,null,(0,t.createElement)(pi,{label:(0,_t.__)("Provider","LION"),value:e,onChange:function(e){if(r(e),e){let t=new ii("",e);t.is_active=i,o(t)}else o(null)},options:Ai(),description:a.select_provider})),null!==n&&(0,t.createElement)(Si,{model:n,setModel:o}))}),null)},{path:"edit/:id",element:(0,t.createElement)((function(){const{id:e}=function(){let{matches:e}=t.useContext(De),r=e[e.length-1];return r?r.params:{}}(),r=(0,Et.useSelect)((t=>t(ea).getConnectionById(e)),[e]),[n,o]=(0,wt.useState)(r);return null===r?(0,t.createElement)(Fn,{variant:Ln.ACCENT},(0,_t.__)("The connection does not exist.","LION")):(0,t.createElement)(xi,null,(0,t.createElement)(Ci,{to:"/providers"},(0,t.createElement)(ni,{icon:oi,size:20}),(0,t.createElement)(Fn,{variant:Ln.ACCENT},(0,_t.__)("Back to Email Connections","LION"))),(0,t.createElement)(Si,{model:n,setModel:o}))}),null)}]},{path:"email-test",element:(0,t.createElement)(Da,null),children:[{index:!0,element:(0,t.createElement)((()=>{const[e,r]=(0,wt.useState)(""),[n,o]=(0,wt.useState)(""),[a,i]=(0,wt.useState)(""),[l,s]=(0,wt.useState)(!1),[c,u]=(0,wt.useState)([]),{addToast:d}=(0,Et.useDispatch)(ea);return(0,t.createElement)(Oi,null,(0,t.createElement)("form",{method:"post",onSubmit:async t=>{t.preventDefault();try{s(!0);const t=await oa()({url:(0,xn.addQueryArgs)(ajaxurl,{action:"solidwp_mail_send_test_email",solidwp_mail_connections_nonce:SolidWPMail.nonces.send_test_email}),method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:ra().stringify({to_email:e,subject:n,message:a})});!1===t.success&&t.data.validation?(u(t.data.validation),d((0,_t.__)("Validation failed. Please check the highlighted fields and try again.","LION"))):d(t.data.message),s(!1)}catch(e){d((0,_t.__)("Error sending test email","LION"))}}},(0,t.createElement)(hi,null,(0,t.createElement)(ui,{label:(0,_t.__)("To Email","LION"),value:e,error:c.to_email,onChange:r,description:(0,_t.__)("Enter the recipient's email address","LION")}),(0,t.createElement)(ui,{label:(0,_t.__)("Subject","LION"),value:n,error:c.subject,onChange:o,description:(0,_t.__)("Provide the subject of the test email.","LION")}),(0,t.createElement)(fi,{label:(0,_t.__)("Message","LION"),value:a,error:c.message,onChange:i,description:(0,_t.__)("Enter the email message","LION")})),(0,t.createElement)(hn.Flex,{align:"flex-end",direction:"column"},(0,t.createElement)(hn.FlexItem,null,(0,t.createElement)(Vn,{disabled:l,isBusy:l,variant:"primary",type:"submit"},(0,_t.__)("Send Test Email","LION"))))))}),null)}]},{path:"*",element:(0,t.createElement)((function(e){let{to:r,replace:n,state:o,relative:a}=e;Fe()||l(!1);let{future:i,static:s}=t.useContext(Me),{matches:c}=t.useContext(De),{pathname:u}=Ue(),d=He(),p=T(r,I(c,i.v7_relativeSplatPath),u,"path"===a),f=JSON.stringify(p);return t.useEffect((()=>d(JSON.parse(f),{replace:n,state:o,relative:a})),[d,f,a,n,o]),null}),{to:"/providers",replace:!0})}],function(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,n=!r;let i;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=J;let c,d,p={},m=h(e.routes,i,void 0,p),g=e.basename||"/",v=e.unstable_dataStrategy||ae,b=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),w=null,_=new Set,E=null,S=null,x=null,C=null!=e.hydrationData,A=y(m,e.history.location,g),O=null;if(null==A){let t=ye(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=he(m);A=r,O={[n.id]:t}}let L,R=A.some((e=>e.route.lazy)),P=A.some((e=>e.route.loader));if(R)d=!1;else if(P)if(b.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=A.findIndex((e=>void 0!==r[e.route.id]));d=A.slice(0,e+1).every(n)}else d=A.every(n)}else d=null!=e.hydrationData;else d=!0;let N,I={historyAction:e.history.action,location:e.history.location,matches:A,initialized:d,navigation:K,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||O,fetchers:new Map,blockers:new Map},T=a.Pop,M=!1,j=!1,D=new Map,z=null,$=!1,H=!1,B=[],V=[],re=new Map,ne=0,ce=-1,ue=new Map,ve=new Set,Ae=new Map,Ne=new Map,Ie=new Set,Te=new Map,Me=new Map,je=!1;function De(e,t){void 0===t&&(t={}),I=o({},I,e);let r=[],n=[];b.v7_fetcherPersist&&I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Ie.has(t)?n.push(t):r.push(t))})),[..._].forEach((e=>e(I,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),b.v7_fetcherPersist&&(r.forEach((e=>I.fetchers.delete(e))),n.forEach((e=>Ke(e))))}function ze(t,r,n){var i,l;let s,{flushSync:u}=void 0===n?{}:n,d=null!=I.actionData&&null!=I.navigation.formMethod&&Se(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==(null==(i=t.state)?void 0:i._isRedirect);s=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?I.actionData:null;let p=r.loaderData?pe(I.loaderData,r.loaderData,r.matches||[],r.errors):I.loaderData,f=I.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,q))));let h,y=!0===M||null!=I.navigation.formMethod&&Se(I.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(c&&(m=c,c=void 0),$||T===a.Pop||(T===a.Push?e.history.push(t,t.state):T===a.Replace&&e.history.replace(t,t.state)),T===a.Pop){let e=D.get(I.location.pathname);e&&e.has(t.pathname)?h={currentLocation:I.location,nextLocation:t}:D.has(t.pathname)&&(h={currentLocation:t,nextLocation:I.location})}else if(j){let e=D.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),D.set(I.location.pathname,e)),h={currentLocation:I.location,nextLocation:t}}De(o({},r,{actionData:s,loaderData:p,historyAction:T,location:t,initialized:!0,navigation:K,revalidation:"idle",restoreScrollPosition:nt(t,r.matches||I.matches),preventScrollReset:y,blockers:f}),{viewTransitionOpts:h,flushSync:!0===u}),T=a.Pop,M=!1,j=!1,$=!1,H=!1,B=[],V=[]}async function Fe(t,r,n){N&&N.abort(),N=null,T=t,$=!0===(n&&n.startUninterruptedRevalidation),function(e,t){if(E&&x){let r=rt(e,t);E[r]=x()}}(I.location,I.matches),M=!0===(n&&n.preventScrollReset),j=!0===(n&&n.enableViewTransition);let i=c||m,l=n&&n.overrideNavigation,s=y(i,r,g),u=!0===(n&&n.flushSync);if(!s){let e=ye(404,{pathname:r.pathname}),{matches:t,route:n}=he(i);return tt(),void ze(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:u})}if(I.initialized&&!H&&(d=I.location,p=r,d.pathname===p.pathname&&d.search===p.search&&(""===d.hash?""!==p.hash:d.hash===p.hash||""!==p.hash))&&!(n&&n.submission&&Se(n.submission.formMethod)))return void ze(r,{matches:s},{flushSync:u});var d,p;N=new AbortController;let h,v=se(e.history,r,N.signal,n&&n.submission);if(n&&n.pendingError)h=[me(s).route.id,{type:f.error,error:n.pendingError}];else if(n&&n.submission&&Se(n.submission.formMethod)){let t=await async function(e,t,r,n,o){void 0===o&&(o={}),Be();let i,l=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,r);De({navigation:l},{flushSync:!0===o.flushSync});let s=Oe(n,t);if(s.route.action||s.route.lazy){if(i=(await $e("action",e,[s],n))[0],e.signal.aborted)return{shortCircuited:!0}}else i={type:f.error,error:ye(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(_e(i)){let t;return t=o&&null!=o.replace?o.replace:le(i.response.headers.get("Location"),new URL(e.url),g)===I.location.pathname+I.location.search,await Ue(e,i,{submission:r,replace:t}),{shortCircuited:!0}}if(be(i))throw ye(400,{type:"defer-action"});if(we(i)){let e=me(n,s.route.id);return!0!==(o&&o.replace)&&(T=a.Push),{pendingActionResult:[e.route.id,i]}}return{pendingActionResult:[s.route.id,i]}}(v,r,n.submission,s,{replace:n.replace,flushSync:u});if(t.shortCircuited)return;h=t.pendingActionResult,l=Re(r,n.submission),u=!1,v=se(e.history,v.url,v.signal)}let{shortCircuited:w,loaderData:_,errors:S}=await async function(t,r,n,a,i,l,s,u,d,p){let f=a||Re(r,i),h=i||l||Le(f),y=c||m,[v,w]=te(e.history,I,n,h,r,b.v7_partialHydration&&!0===u,b.unstable_skipActionErrorRevalidation,H,B,V,Ie,Ae,ve,y,g,p);if(tt((e=>!(n&&n.some((t=>t.route.id===e)))||v&&v.some((t=>t.route.id===e)))),ce=++ne,0===v.length&&0===w.length){let e=Ze();return ze(r,o({matches:n,loaderData:{},errors:p&&we(p[1])?{[p[0]]:p[1].error}:null},fe(p),e?{fetchers:new Map(I.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(!($||b.v7_partialHydration&&u)){let e;w.forEach((e=>{let t=I.fetchers.get(e.key),r=ke(void 0,t?t.data:void 0);I.fetchers.set(e.key,r)})),p&&!we(p[1])?e={[p[0]]:p[1].data}:I.actionData&&(e=0===Object.keys(I.actionData).length?null:I.actionData),De(o({navigation:f},void 0!==e?{actionData:e}:{},w.length>0?{fetchers:new Map(I.fetchers)}:{}),{flushSync:d})}w.forEach((e=>{re.has(e.key)&&Ye(e.key),e.controller&&re.set(e.key,e.controller)}));let _=()=>w.forEach((e=>Ye(e.key)));N&&N.signal.addEventListener("abort",_);let{loaderResults:E,fetcherResults:S}=await He(I.matches,n,v,w,t);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",_),w.forEach((e=>re.delete(e.key)));let x=ge([...E,...S]);if(x){if(x.idx>=v.length){let e=w[x.idx-v.length].key;ve.add(e)}return await Ue(t,x.result,{replace:s}),{shortCircuited:!0}}let{loaderData:C,errors:A}=de(I,n,v,E,p,w,S,Te);Te.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&Te.delete(t)}))})),b.v7_partialHydration&&u&&I.errors&&Object.entries(I.errors).filter((e=>{let[t]=e;return!v.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;A=Object.assign(A||{},{[t]:r})}));let O=Ze(),L=Je(ce),R=O||L||w.length>0;return o({loaderData:C,errors:A},R?{fetchers:new Map(I.fetchers)}:{})}(v,r,s,l,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&!0===n.initialHydration,u,h);w||(N=null,ze(r,o({matches:s},fe(h),{loaderData:_,errors:S})))}async function Ue(n,i,s){let{submission:c,fetcherSubmission:d,replace:p}=void 0===s?{}:s;i.response.headers.has("X-Remix-Revalidate")&&(H=!0);let f=i.response.headers.get("Location");l(f,"Expected a Location header on the redirect Response"),f=le(f,new URL(n.url),g);let m=u(I.location,f,{_isRedirect:!0});if(r){let r=!1;if(i.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(Z.test(f)){const n=e.history.createURL(f);r=n.origin!==t.location.origin||null==k(n.pathname,g)}if(r)return void(p?t.location.replace(f):t.location.assign(f))}N=null;let h=!0===p?a.Replace:a.Push,{formMethod:y,formAction:v,formEncType:b}=I.navigation;!c&&!d&&y&&v&&b&&(c=Le(I.navigation));let w=c||d;if(W.has(i.response.status)&&w&&Se(w.formMethod))await Fe(h,m,{submission:o({},w,{formAction:f}),preventScrollReset:M});else{let e=Re(m,c);await Fe(h,m,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:M})}}async function $e(e,t,r,n){try{let a=await async function(e,t,r,n,a,i,s,c){let u=n.reduce(((e,t)=>e.add(t.route.id)),new Set),d=new Set,p=await e({matches:a.map((e=>{let n=u.has(e.route.id);return o({},e,{shouldLoad:n,resolve:o=>(d.add(e.route.id),n?async function(e,t,r,n,o,a,i){let s,c,u=n=>{let o,l=new Promise(((e,t)=>o=t));c=()=>o(),t.signal.addEventListener("abort",c);let s,u=o=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==o?[o]:[]);return s=a?a((e=>u(e))):(async()=>{try{return{type:"data",result:await u()}}catch(e){return{type:"error",result:e}}})(),Promise.race([s,l])};try{let a=r.route[e];if(r.route.lazy)if(a){let e,[t]=await Promise.all([u(a).catch((t=>{e=t})),oe(r.route,o,n)]);if(void 0!==e)throw e;s=t}else{if(await oe(r.route,o,n),a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw ye(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:f.data,result:void 0}}s=await u(a)}else{if(!a){let e=new URL(t.url);throw ye(404,{pathname:e.pathname+e.search})}s=await u(a)}l(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:f.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return s}(t,r,e,i,s,o,c):Promise.resolve({type:f.data,result:void 0}))})})),request:r,params:a[0].params,context:c});return a.forEach((e=>l(d.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),p.filter(((e,t)=>u.has(a[t].route.id)))}(v,e,t,r,n,p,i);return await Promise.all(a.map(((e,o)=>{if(function(e){return Ee(e.result)&&G.has(e.result.status)}(e)){let a=e.result;return{type:f.redirect,response:ie(a,t,r[o].route.id,n,g,b.v7_relativeSplatPath)}}return async function(e){let{result:t,type:r,status:n}=e;if(Ee(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:f.error,error:e}}return r===f.error?{type:f.error,error:new F(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:f.data,data:e,statusCode:t.status,headers:t.headers}}return r===f.error?{type:f.error,error:t,statusCode:U(t)?t.status:n}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:f.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(a=t.init)?void 0:a.headers)&&new Headers(t.init.headers)}:{type:f.data,data:t,statusCode:n};var o,a}(e)})))}catch(e){return r.map((()=>({type:f.error,error:e})))}}async function He(t,r,n,o,a){let[i,...l]=await Promise.all([n.length?$e("loader",a,n,r):[],...o.map((t=>t.matches&&t.match&&t.controller?$e("loader",se(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0])):Promise.resolve({type:f.error,error:ye(404,{pathname:t.path})})))]);return await Promise.all([xe(t,n,i,i.map((()=>a.signal)),!1,I.loaderData),xe(t,o.map((e=>e.match)),l,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:i,fetcherResults:l}}function Be(){H=!0,B.push(...tt()),Ae.forEach(((e,t)=>{re.has(t)&&(V.push(t),Ye(t))}))}function Ve(e,t,r){void 0===r&&(r={}),I.fetchers.set(e,t),De({fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ge(e,t,r,n){void 0===n&&(n={});let o=me(I.matches,t);Ke(e),De({errors:{[o.route.id]:r},fetchers:new Map(I.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function We(e){return b.v7_fetcherPersist&&(Ne.set(e,(Ne.get(e)||0)+1),Ie.has(e)&&Ie.delete(e)),I.fetchers.get(e)||Y}function Ke(e){let t=I.fetchers.get(e);!re.has(e)||t&&"loading"===t.state&&ue.has(e)||Ye(e),Ae.delete(e),ue.delete(e),ve.delete(e),Ie.delete(e),I.fetchers.delete(e)}function Ye(e){let t=re.get(e);l(t,"Expected fetch controller: "+e),t.abort(),re.delete(e)}function qe(e){for(let t of e){let e=Pe(We(t).data);I.fetchers.set(t,e)}}function Ze(){let e=[],t=!1;for(let r of ve){let n=I.fetchers.get(r);l(n,"Expected fetcher: "+r),"loading"===n.state&&(ve.delete(r),e.push(r),t=!0)}return qe(e),t}function Je(e){let t=[];for(let[r,n]of ue)if(n0}function Xe(e){I.blockers.delete(e),Me.delete(e)}function Qe(e,t){let r=I.blockers.get(e)||q;l("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(I.blockers);n.set(e,t),De({blockers:n})}function et(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Me.size)return;Me.size>1&&s(!1,"A router only supports one blocker at a time");let o=Array.from(Me.entries()),[a,i]=o[o.length-1],l=I.blockers.get(a);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?a:void 0}function tt(e){let t=[];return Te.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),Te.delete(n))})),t}function rt(e,t){return S&&S(e,t.map((e=>function(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}(e,I.loaderData))))||e.key}function nt(e,t){if(E){let r=rt(e,t),n=E[r];if("number"==typeof n)return n}return null}return L={get basename(){return g},get future(){return b},get state(){return I},get routes(){return m},get window(){return t},initialize:function(){if(w=e.history.listen((t=>{let{action:r,location:n,delta:o}=t;if(je)return void(je=!1);s(0===Me.size||null!=o,"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 a=et({currentLocation:I.location,nextLocation:n,historyAction:r});return a&&null!=o?(je=!0,e.history.go(-1*o),void Qe(a,{state:"blocked",location:n,proceed(){Qe(a,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(o)},reset(){let e=new Map(I.blockers);e.set(a,q),De({blockers:e})}})):Fe(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(X);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,D);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(X,JSON.stringify(r))}catch(e){s(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,D);t.addEventListener("pagehide",e),z=()=>t.removeEventListener("pagehide",e)}return I.initialized||Fe(a.Pop,I.location,{initialHydration:!0}),L},subscribe:function(e){return _.add(e),()=>_.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,x=t,S=r||null,!C&&I.navigation===K){C=!0;let e=nt(I.location,I.matches);null!=e&&De({restoreScrollPosition:e})}return()=>{E=null,x=null,S=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let i=Q(I.location,I.matches,g,b.v7_prependBasename,r,b.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:l,submission:s,error:c}=ee(b.v7_normalizeFormMethod,!1,i,n),d=I.location,p=u(I.location,l,n&&n.state);p=o({},p,e.history.encodeLocation(p));let f=n&&null!=n.replace?n.replace:void 0,m=a.Push;!0===f?m=a.Replace:!1===f||null!=s&&Se(s.formMethod)&&s.formAction===I.location.pathname+I.location.search&&(m=a.Replace);let h=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,y=!0===(n&&n.unstable_flushSync),v=et({currentLocation:d,nextLocation:p,historyAction:m});if(!v)return await Fe(m,p,{submission:s,pendingError:c,preventScrollReset:h,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition,flushSync:y});Qe(v,{state:"blocked",location:p,proceed(){Qe(v,{state:"proceeding",proceed:void 0,reset:void 0,location:p}),t(r,n)},reset(){let e=new Map(I.blockers);e.set(v,q),De({blockers:e})}})},fetch:function(t,r,o,a){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(t)&&Ye(t);let i=!0===(a&&a.unstable_flushSync),s=c||m,u=Q(I.location,I.matches,g,b.v7_prependBasename,o,b.v7_relativeSplatPath,r,null==a?void 0:a.relative),d=y(s,u,g);if(!d)return void Ge(t,r,ye(404,{pathname:u}),{flushSync:i});let{path:p,submission:f,error:h}=ee(b.v7_normalizeFormMethod,!0,u,a);if(h)return void Ge(t,r,h,{flushSync:i});let v=Oe(d,p);M=!0===(a&&a.preventScrollReset),f&&Se(f.formMethod)?async function(t,r,n,o,a,i,s){if(Be(),Ae.delete(t),!o.route.action&&!o.route.lazy){let e=ye(405,{method:s.formMethod,pathname:n,routeId:r});return void Ge(t,r,e,{flushSync:i})}let u=I.fetchers.get(t);Ve(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}}(s,u),{flushSync:i});let d=new AbortController,p=se(e.history,n,d.signal,s);re.set(t,d);let f=ne,h=(await $e("action",p,[o],a))[0];if(p.signal.aborted)return void(re.get(t)===d&&re.delete(t));if(b.v7_fetcherPersist&&Ie.has(t)){if(_e(h)||we(h))return void Ve(t,Pe(void 0))}else{if(_e(h))return re.delete(t),ce>f?void Ve(t,Pe(void 0)):(ve.add(t),Ve(t,ke(s)),Ue(p,h,{fetcherSubmission:s}));if(we(h))return void Ge(t,r,h.error)}if(be(h))throw ye(400,{type:"defer-action"});let v=I.navigation.location||I.location,w=se(e.history,v,d.signal),_=c||m,E="idle"!==I.navigation.state?y(_,I.navigation.location,g):I.matches;l(E,"Didn't find any matches after fetcher action");let S=++ne;ue.set(t,S);let x=ke(s,h.data);I.fetchers.set(t,x);let[C,A]=te(e.history,I,E,s,v,!1,b.unstable_skipActionErrorRevalidation,H,B,V,Ie,Ae,ve,_,g,[o.route.id,h]);A.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=I.fetchers.get(t),n=ke(void 0,r?r.data:void 0);I.fetchers.set(t,n),re.has(t)&&Ye(t),e.controller&&re.set(t,e.controller)})),De({fetchers:new Map(I.fetchers)});let O=()=>A.forEach((e=>Ye(e.key)));d.signal.addEventListener("abort",O);let{loaderResults:L,fetcherResults:R}=await He(I.matches,E,C,A,w);if(d.signal.aborted)return;d.signal.removeEventListener("abort",O),ue.delete(t),re.delete(t),A.forEach((e=>re.delete(e.key)));let k=ge([...L,...R]);if(k){if(k.idx>=C.length){let e=A[k.idx-C.length].key;ve.add(e)}return Ue(w,k.result)}let{loaderData:P,errors:M}=de(I,I.matches,C,L,void 0,A,R,Te);if(I.fetchers.has(t)){let e=Pe(h.data);I.fetchers.set(t,e)}Je(S),"loading"===I.navigation.state&&S>ce?(l(T,"Expected pending action"),N&&N.abort(),ze(I.navigation.location,{matches:E,loaderData:P,errors:M,fetchers:new Map(I.fetchers)})):(De({errors:M,loaderData:pe(I.loaderData,P,E,M),fetchers:new Map(I.fetchers)}),H=!1)}(t,r,p,v,d,i,f):(Ae.set(t,{routeId:r,path:p}),async function(t,r,n,o,a,i,s){let c=I.fetchers.get(t);Ve(t,ke(s,c?c.data:void 0),{flushSync:i});let u=new AbortController,d=se(e.history,n,u.signal);re.set(t,u);let p=ne,f=(await $e("loader",d,[o],a))[0];if(be(f)&&(f=await Ce(f,d.signal,!0)||f),re.get(t)===u&&re.delete(t),!d.signal.aborted){if(!Ie.has(t))return _e(f)?ce>p?void Ve(t,Pe(void 0)):(ve.add(t),void await Ue(d,f)):void(we(f)?Ge(t,r,f.error):(l(!be(f),"Unhandled fetcher deferred data"),Ve(t,Pe(f.data))));Ve(t,Pe(void 0))}}(t,r,p,v,d,i,f))},revalidate:function(){Be(),De({revalidation:"loading"}),"submitting"!==I.navigation.state&&("idle"!==I.navigation.state?Fe(T||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation}):Fe(I.historyAction,I.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:We,deleteFetcher:function(e){if(b.v7_fetcherPersist){let t=(Ne.get(e)||0)-1;t<=0?(Ne.delete(e),Ie.add(e)):Ne.set(e,t)}else Ke(e);De({fetchers:new Map(I.fetchers)})},dispose:function(){w&&w(),z&&z(),_.clear(),N&&N.abort(),I.fetchers.forEach(((e,t)=>Ke(t))),I.blockers.forEach(((e,t)=>Xe(t)))},getBlocker:function(e,t){let r=I.blockers.get(e)||q;return Me.get(e)!==t&&Me.set(e,t),r},deleteBlocker:Xe,_internalFetchControllers:re,_internalActiveDeferreds:Te,_internalSetRoutes:function(e){p={},c=h(e,i,void 0,p)}},L}({basename:void 0,future:rt({},void 0,{v7_prependBasename:!0}),history:(ki={window:void 0},void 0===ki&&(ki={}),function(e,t,r,n){void 0===n&&(n={});let{window:s=document.defaultView,v5Compat:p=!1}=n,f=s.history,m=a.Pop,h=null,y=g();function g(){return(f.state||{idx:null}).idx}function v(){m=a.Pop;let e=g(),t=null==e?null:e-y;y=e,h&&h({action:m,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==y&&(y=0,f.replaceState(o({},f.state,{idx:y}),""));let w={get action(){return m},get location(){return e(s,f)},listen(e){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(i,v),h=e,()=>{s.removeEventListener(i,v),h=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m=a.Push;let n=u(w.location,e,t);r&&r(n,e),y=g()+1;let o=c(n,y),i=w.createHref(n);try{f.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(i)}p&&h&&h({action:m,location:w.location,delta:1})},replace:function(e,t){m=a.Replace;let n=u(w.location,e,t);r&&r(n,e),y=g();let o=c(n,y),i=w.createHref(n);f.replaceState(o,"",i),p&&h&&h({action:m,location:w.location,delta:0})},go:e=>f.go(e)};return w}((function(e,t){let{pathname:r="/",search:n="",hash:o=""}=p(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),u("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:d(t))}),(function(e,t){s("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),ki)),hydrationData:function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=rt({},t,{errors:it(t.errors)})),t}(),routes:Ri,mapRouteProperties:function(e){let r={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(r,{element:t.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(r,{hydrateFallbackElement:t.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(r,{errorElement:t.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),r},unstable_dataStrategy:void 0,window:void 0}).initialize());var Ri,ki;const Pi=document.getElementById("solidwp-mail-root");(0,wt.createRoot)(Pi).render((0,t.createElement)((function(e){let{fallbackElement:r,router:n,future:o}=e,[a,i]=t.useState(n.state),[l,s]=t.useState(),[c,u]=t.useState({isTransitioning:!1}),[d,p]=t.useState(),[f,m]=t.useState(),[h,y]=t.useState(),g=t.useRef(new Map),{v7_startTransition:v}=o||{},b=t.useCallback((e=>{v?function(e){ct?ct(e):e()}(e):e()}),[v]),w=t.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:o,unstable_viewTransitionOpts:a}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let l=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(a&&!l){if(o){dt((()=>{f&&(d&&d.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})}));let t=n.window.document.startViewTransition((()=>{dt((()=>i(e)))}));return t.finished.finally((()=>{dt((()=>{p(void 0),m(void 0),s(void 0),u({isTransitioning:!1})}))})),void dt((()=>m(t)))}f?(d&&d.resolve(),f.skipTransition(),y({state:e,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(s(e),u({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))}else o?dt((()=>i(e))):b((()=>i(e)))}),[n.window,f,d,g,b]);t.useLayoutEffect((()=>n.subscribe(w)),[n,w]),t.useEffect((()=>{c.isTransitioning&&!c.flushSync&&p(new pt)}),[c]),t.useEffect((()=>{if(d&&l&&n.window){let e=l,t=d.promise,r=n.window.document.startViewTransition((async()=>{b((()=>i(e))),await t}));r.finished.finally((()=>{p(void 0),m(void 0),s(void 0),u({isTransitioning:!1})})),m(r)}}),[b,l,d,n.window]),t.useEffect((()=>{d&&l&&a.location.key===l.location.key&&d.resolve()}),[d,f,a.location,l]),t.useEffect((()=>{!c.isTransitioning&&h&&(s(h.state),u({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),y(void 0))}),[c.isTransitioning,h]),t.useEffect((()=>{}),[]);let _=t.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),E=n.basename||"/",S=t.useMemo((()=>({router:n,navigator:_,static:!1,basename:E})),[n,_,E]);return t.createElement(t.Fragment,null,t.createElement(Ie.Provider,{value:S},t.createElement(Te.Provider,{value:a},t.createElement(st.Provider,{value:g.current},t.createElement(lt.Provider,{value:c},t.createElement(tt,{basename:E,location:a.location,navigationType:a.historyAction,navigator:_,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?t.createElement(ft,{routes:n.routes,future:n.future,state:a}):r))))),null)}),{router:Li}))})()})();