webim-adapter 2.9.3 → 2.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/webim-adapter.js +1475 -1385
- package/build/webim-embed.js +28 -27
- package/build/webim-ssr.js +1434 -1344
- package/package.json +1 -1
package/build/webim-embed.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
(function(){var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),t=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=i();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var a={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),o=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=n(),r=i(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],ee=-1;function te(e){return{current:e}}function B(e){0>ee||(e.current=z[ee],z[ee]=null,ee--)}function V(e,t){ee++,z[ee]=e.current,e.current=t}var H=te(null),ne=te(null),re=te(null),ie=te(null);function ae(e,t){switch(V(re,t),V(ne,e),V(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}B(H),V(H,e)}function oe(){B(H),B(ne),B(re)}function se(e){e.memoizedState!==null&&V(ie,e);var t=H.current,n=Hd(t,e.type);t!==n&&(V(ne,e),V(H,n))}function ce(e){ne.current===e&&(B(H),B(ne)),ie.current===e&&(B(ie),Qf._currentValue=R)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-1<e.stack.indexOf(`
|
|
1
|
+
(function(){var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),t=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=i();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var a={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),o=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=n(),r=i(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function ee(e){return{current:e}}function V(e){0>B||(e.current=z[B],z[B]=null,B--)}function H(e,t){B++,z[B]=e.current,e.current=t}var U=ee(null),te=ee(null),ne=ee(null),re=ee(null);function ie(e,t){switch(H(ne,t),H(te,e),H(U,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}V(U),H(U,e)}function ae(){V(U),V(te),V(ne)}function oe(e){e.memoizedState!==null&&H(re,e);var t=U.current,n=Hd(t,e.type);t!==n&&(H(te,e),H(U,n))}function se(e){te.current===e&&(V(U),V(te)),re.current===e&&(V(re),Qf._currentValue=R)}var ce,le;function ue(e){if(ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ce=t&&t[1]||``,le=-1<e.stack.indexOf(`
|
|
2
2
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+
|
|
3
|
+
`+ce+e+le}var de=!1;function fe(e,t){if(!e||de)return``;de=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
4
|
`),l=s.split(`
|
|
5
5
|
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{de=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ue(n):``}function pe(e,t){switch(e.tag){case 26:case 27:case 5:return ue(e.type);case 16:return ue(`Lazy`);case 13:return e.child!==t&&t!==null?ue(`Suspense Fallback`):ue(`Suspense`);case 19:return ue(`SuspenseList`);case 0:case 15:return fe(e.type,!1);case 11:return fe(e.type.render,!1);case 1:return fe(e.type,!0);case 31:return ue(`Activity`);default:return``}}function me(e){try{var t=``,n=null;do t+=pe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var ge=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,ve=t.unstable_cancelCallback,ye=t.unstable_shouldYield,be=t.unstable_requestPaint,xe=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,Ce=t.unstable_ImmediatePriority,we=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,Ee=t.unstable_LowPriority,U=t.unstable_IdlePriority,De=t.log,Oe=t.unstable_setDisableYieldValue,ke=null,Ae=null;function je(e){if(typeof De==`function`&&Oe(e),Ae&&typeof Ae.setStrictMode==`function`)try{Ae.setStrictMode(ke,e)}catch{}}var Me=Math.clz32?Math.clz32:Fe,Ne=Math.log,Pe=Math.LN2;function Fe(e){return e>>>=0,e===0?32:31-(Ne(e)/Pe|0)|0}var Ie=256,Le=262144,Re=4194304;function ze(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Be(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ze(n))):i=ze(o):i=ze(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ze(n))):i=ze(o)):i=ze(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ve(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ue(){var e=Re;return Re<<=1,!(Re&62914560)&&(Re=4194304),e}function We(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ge(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ke(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Me(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Me(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ye(e,t){var n=t&-t;return n=n&42?1:Xe(n),(n&(e.suspendedLanes|t))===0?n:0}function Xe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ze(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Qe(){var e=L.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function $e(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var et=Math.random().toString(36).slice(2),tt=`__reactFiber$`+et,nt=`__reactProps$`+et,rt=`__reactContainer$`+et,it=`__reactEvents$`+et,at=`__reactListeners$`+et,ot=`__reactHandles$`+et,st=`__reactResources$`+et,ct=`__reactMarker$`+et;function lt(e){delete e[tt],delete e[nt],delete e[it],delete e[at],delete e[ot]}function ut(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rt]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[tt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function dt(e){if(e=e[tt]||e[rt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ft(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function pt(e){var t=e[st];return t||=e[st]={hoistableStyles:new Map,hoistableScripts:new Map},t}function mt(e){e[ct]=!0}var ht=new Set,gt={};function _t(e,t){vt(e,t),vt(e+`Capture`,t)}function vt(e,t){for(gt[e]=t,e=0;e<t.length;e++)ht.add(t[e])}var yt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),bt={},xt={};function St(e){return ge.call(xt,e)?!0:ge.call(bt,e)?!1:yt.test(e)?xt[e]=!0:(bt[e]=!0,!1)}function Ct(e,t,n){if(St(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function wt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Tt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Et(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Dt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ot(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kt(e){if(!e._valueTracker){var t=Dt(e)?`checked`:`value`;e._valueTracker=Ot(e,t,``+e[t])}}function At(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Dt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function jt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Mt=/[\n"\\]/g;function Nt(e){return e.replace(Mt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Pt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Et(t)):e.value!==``+Et(t)&&(e.value=``+Et(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):It(e,o,Et(n)):It(e,o,Et(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Et(s):e.removeAttribute(`name`)}function Ft(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){kt(e);return}n=n==null?``:``+Et(n),t=t==null?n:``+Et(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),kt(e)}function It(e,t,n){t===`number`&&jt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Lt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Et(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Rt(e,t,n){if(t!=null&&(t=``+Et(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Et(n)}function zt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(F(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=Et(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),kt(e)}function Bt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Ht(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Vt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Ut(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Ht(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Ht(e,a,t[a])}function Wt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Gt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Kt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qt(e){return Kt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Jt(){}var Yt=null;function Xt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zt=null,Qt=null;function $t(e){var t=dt(e);if(t&&(e=t.stateNode)){var n=e[nt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Pt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Nt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[nt]||null;if(!i)throw Error(s(90));Pt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&At(r)}break a;case`textarea`:Rt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Lt(e,!!n.multiple,t,!1)}}}var en=!1;function tn(e,t,n){if(en)return e(t,n);en=!0;try{return e(t)}finally{if(en=!1,(Zt!==null||Qt!==null)&&(vu(),Zt&&(t=Zt,e=Qt,Qt=Zt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function nn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[nt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(s(231,t,typeof n));return n}var rn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),an=!1;if(rn)try{var on={};Object.defineProperty(on,"passive",{get:function(){an=!0}}),window.addEventListener(`test`,on,on),window.removeEventListener(`test`,on,on)}catch{an=!1}var sn=null,cn=null,ln=null;function un(){if(ln)return ln;var e,t=cn,n=t.length,r,i=`value`in sn?sn.value:sn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return ln=i.slice(e,1<r?1-r:void 0)}function dn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fn(){return!0}function pn(){return!1}function mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?fn:pn,this.isPropagationStopped=pn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=fn)},persist:function(){},isPersistent:fn}),t}var hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gn=mn(hn),_n=h({},hn,{view:0,detail:0}),vn=mn(_n),yn,bn,xn,Sn=h({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==xn&&(xn&&e.type===`mousemove`?(yn=e.screenX-xn.screenX,bn=e.screenY-xn.screenY):bn=yn=0,xn=e),yn)},movementY:function(e){return`movementY`in e?e.movementY:bn}}),Cn=mn(Sn),wn=mn(h({},Sn,{dataTransfer:0})),Tn=mn(h({},_n,{relatedTarget:0})),En=mn(h({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),Dn=mn(h({},hn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),On=mn(h({},hn,{data:0})),kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},An={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jn[e])?!!t[e]:!1}function Nn(){return Mn}var Pn=mn(h({},_n,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=dn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?An[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return e.type===`keypress`?dn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?dn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Fn=mn(h({},Sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=mn(h({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Ln=mn(h({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=mn(h({},Sn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=mn(h({},hn,{newState:0,oldState:0})),Bn=[9,13,27,32],Vn=rn&&`CompositionEvent`in window,Hn=null;rn&&`documentMode`in document&&(Hn=document.documentMode);var W=rn&&`TextEvent`in window&&!Hn,Un=rn&&(!Vn||Hn&&8<Hn&&11>=Hn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return Bn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function G(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Yn(e,t){if(Jn)return e===`compositionend`||!Vn&&Kn(e,t)?(e=un(),ln=cn=sn=null,Jn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Un&&t.locale!==`ko`?null:t.data;default:return null}}var Xn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Xn[e.type]:t===`textarea`}function Qn(e,t,n,r){Zt?Qt?Qt.push(r):Qt=[r]:Zt=r,t=Td(t,`onChange`),0<t.length&&(n=new gn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var $n=null,er=null;function tr(e){vd(e,0)}function nr(e){if(At(ft(e)))return e}function rr(e,t){if(e===`change`)return t}var ir=!1;if(rn){var ar;if(rn){var or=`oninput`in document;if(!or){var sr=document.createElement(`div`);sr.setAttribute(`oninput`,`return;`),or=typeof sr.oninput==`function`}ar=or}else ar=!1;ir=ar&&(!document.documentMode||9<document.documentMode)}function cr(){$n&&($n.detachEvent(`onpropertychange`,lr),er=$n=null)}function lr(e){if(e.propertyName===`value`&&nr(er)){var t=[];Qn(t,er,e,Xt(e)),tn(tr,t)}}function ur(e,t,n){e===`focusin`?(cr(),$n=t,er=n,$n.attachEvent(`onpropertychange`,lr)):e===`focusout`&&cr()}function dr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return nr(er)}function fr(e,t){if(e===`click`)return nr(t)}function pr(e,t){if(e===`input`||e===`change`)return nr(t)}function mr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var hr=typeof Object.is==`function`?Object.is:mr;function gr(e,t){if(hr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ge.call(t,i)||!hr(e[i],t[i]))return!1}return!0}function _r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vr(e,t){var n=_r(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=_r(n)}}function yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function br(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=jt(e.document)}return t}function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Sr=rn&&`documentMode`in document&&11>=document.documentMode,Cr=null,wr=null,Tr=null,Er=!1;function Dr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Er||Cr==null||Cr!==jt(r)||(r=Cr,`selectionStart`in r&&xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&gr(Tr,r)||(Tr=r,r=Td(wr,`onSelect`),0<r.length&&(t=new gn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function Or(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var kr={animationend:Or(`Animation`,`AnimationEnd`),animationiteration:Or(`Animation`,`AnimationIteration`),animationstart:Or(`Animation`,`AnimationStart`),transitionrun:Or(`Transition`,`TransitionRun`),transitionstart:Or(`Transition`,`TransitionStart`),transitioncancel:Or(`Transition`,`TransitionCancel`),transitionend:Or(`Transition`,`TransitionEnd`)},Ar={},jr={};rn&&(jr=document.createElement(`div`).style,`AnimationEvent`in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),`TransitionEvent`in window||delete kr.transitionend.transition);function Mr(e){if(Ar[e])return Ar[e];if(!kr[e])return e;var t=kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jr)return Ar[e]=t[n];return e}var Nr=Mr(`animationend`),Pr=Mr(`animationiteration`),Fr=Mr(`animationstart`),Ir=Mr(`transitionrun`),Lr=Mr(`transitionstart`),Rr=Mr(`transitioncancel`),zr=Mr(`transitionend`),Br=new Map,Vr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Vr.push(`scrollEnd`);function Hr(e,t){Br.set(e,t),_t(t,[e])}var Ur=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Wr=[],Gr=0,Kr=0;function qr(){for(var e=Gr,t=Kr=Gr=0;t<e;){var n=Wr[t];Wr[t++]=null;var r=Wr[t];Wr[t++]=null;var i=Wr[t];Wr[t++]=null;var a=Wr[t];if(Wr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Zr(n,i,a)}}function Jr(e,t,n,r){Wr[Gr++]=e,Wr[Gr++]=t,Wr[Gr++]=n,Wr[Gr++]=r,Kr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Yr(e,t,n,r){return Jr(e,t,n,r),Qr(e)}function Xr(e,t){return Jr(e,null,null,t),Qr(e)}function Zr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Me(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Qr(e){if(50<lu)throw lu=0,uu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $r={};function ei(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ti(e,t,n,r){return new ei(e,t,n,r)}function ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ri(e,t){var n=e.alternate;return n===null?(n=ti(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ii(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ai(e,t,n,r,i,a){var o=0;if(r=e,typeof e==`function`)ni(e)&&(o=1);else if(typeof e==`string`)o=Uf(e,n,H.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ti(31,n,t,i),e.elementType=k,e.lanes=a,e;case y:return oi(n.children,i,a,t);case b:o=8,i|=24;break;case x:return e=ti(12,n,t,i|2),e.elementType=x,e.lanes=a,e;case T:return e=ti(13,n,t,i),e.elementType=T,e.lanes=a,e;case E:return e=ti(19,n,t,i),e.elementType=E,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:o=10;break a;case S:o=9;break a;case w:o=11;break a;case D:o=14;break a;case O:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=ti(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function oi(e,t,n,r){return e=ti(7,e,r,t),e.lanes=n,e}function si(e,t,n){return e=ti(6,e,null,t),e.lanes=n,e}function ci(e){var t=ti(18,null,null,0);return t.stateNode=e,t}function li(e,t,n){return t=ti(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ui=new WeakMap;function di(e,t){if(typeof e==`object`&&e){var n=ui.get(e);return n===void 0?(t={value:e,source:t,stack:he(t)},ui.set(e,t),t):n}return{value:e,source:t,stack:he(t)}}var fi=[],pi=0,mi=null,hi=0,gi=[],_i=0,vi=null,yi=1,bi=``;function xi(e,t){fi[pi++]=hi,fi[pi++]=mi,mi=e,hi=t}function Si(e,t,n){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,vi=e;var r=yi;e=bi;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var a=32-Me(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yi=1<<32-Me(t)+i|n<<i|r,bi=a+e}else yi=1<<a|n<<i|r,bi=e}function Ci(e){e.return!==null&&(xi(e,1),Si(e,1,0))}function wi(e){for(;e===mi;)mi=fi[--pi],fi[pi]=null,hi=fi[--pi],fi[pi]=null;for(;e===vi;)vi=gi[--_i],gi[_i]=null,bi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null}function Ti(e,t){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,yi=t.id,bi=t.overflow,vi=e}var Ei=null,Di=null,K=!1,Oi=null,ki=!1,Ai=Error(s(519));function ji(e){throw Li(di(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ai}function Mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[tt]=e,t[nt]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Ft(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),zt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||ji(e,!0)}function Ni(e){for(Ei=e.return;Ei;)switch(Ei.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Ei=Ei.return}}function Pi(e){if(e!==Ei)return!1;if(!K)return Ni(e),K=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Di&&ji(e),Ni(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));Di=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));Di=uf(e)}else t===27?(t=Di,Zd(e.type)?(e=lf,lf=null,Di=e):Di=t):Di=Ei?cf(e.stateNode.nextSibling):null;return!0}function Fi(){Di=Ei=null,K=!1}function Ii(){var e=Oi;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Oi=null),e}function Li(e){Oi===null?Oi=[e]:Oi.push(e)}var Ri=te(null),zi=null,Bi=null;function Vi(e,t,n){V(Ri,t._currentValue),t._currentValue=n}function Hi(e){e._currentValue=Ri.current,B(Ri)}function Ui(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Wi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ui(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ui(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Gi(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;hr(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===ie.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}i=i.return}e!==null&&Wi(t,e,n,r),t.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!hr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){zi=e,Bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function q(e){return Yi(zi,e)}function Ji(e,t){return zi===null&&qi(e),Yi(e,t)}function Yi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Bi===null){if(e===null)throw Error(s(308));Bi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bi=Bi.next=t;return n}var Xi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Zi=t.unstable_scheduleCallback,Qi=t.unstable_NormalPriority,$i={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ea(){return{controller:new Xi,data:new Map,refCount:0}}function ta(e){e.refCount--,e.refCount===0&&Zi(Qi,function(){e.controller.abort()})}var na=null,ra=0,ia=0,aa=null;function oa(e,t){if(na===null){var n=na=[];ra=0,ia=ud(),aa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ra++,t.then(sa,sa),t}function sa(){if(--ra===0&&na!==null){aa!==null&&(aa.status=`fulfilled`);var e=na;na=null,ia=0,aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ca(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var la=I.S;I.S=function(e,t){Ql=xe(),typeof t==`object`&&t&&typeof t.then==`function`&&oa(e,t),la!==null&&la(e,t)};var ua=te(null);function da(){var e=ua.current;return e===null?Fl.pooledCache:e}function fa(e,t){t===null?V(ua,ua.current):V(ua,t.pool)}function pa(){var e=da();return e===null?null:{parent:$i._currentValue,pool:e}}var ma=Error(s(460)),ha=Error(s(474)),ga=Error(s(542)),_a={then:function(){}};function va(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Jt,Jt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e;default:if(typeof t.status==`string`)t.then(Jt,Jt);else{if(e=Fl,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e}throw xa=t,ma}}function ba(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(xa=e,ma):e}}var xa=null;function Sa(){if(xa===null)throw Error(s(459));var e=xa;return xa=null,e}function Ca(e){if(e===ma||e===ga)throw Error(s(483))}var wa=null,Ta=0;function Ea(e){var t=Ta;return Ta+=1,wa===null&&(wa=[]),ya(wa,e,t)}function Da(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Oa(e,t){throw t.$$typeof===g?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ka(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ri(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=si(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===O&&ba(a)===t.type)?(t=i(t,n.props),Da(t,n),t.return=e,t):(t=ai(n.type,n.key,n.props,null,e.mode,r),Da(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=li(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=oi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=si(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ai(t.type,t.key,t.props,null,e.mode,n),Da(n,t),n.return=e,n;case v:return t=li(t,e.mode,n),t.return=e,t;case O:return t=ba(t),f(e,t,n)}if(F(t)||M(t))return t=oi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ea(t),n);if(t.$$typeof===C)return f(e,Ji(e,t),n);Oa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ba(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ea(n),r);if(n.$$typeof===C)return p(e,t,Ji(e,n),r);Oa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ba(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ea(r),i);if(r.$$typeof===C)return m(e,t,n,Ji(t,r),i);Oa(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),K&&xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return K&&xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),K&&xi(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),K&&xi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return K&&xi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),K&&xi(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ba(l)===r.type){n(e,r.sibling),c=i(r,a.props),Da(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=oi(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=ai(a.type,a.key,a.props,null,e.mode,c),Da(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=li(a,e.mode,c),c.return=e,e=c}return o(e);case O:return a=ba(a),b(e,r,a,c)}if(F(a))return h(e,r,a,c);if(M(a)){if(l=M(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ea(a),c);if(a.$$typeof===C)return b(e,r,Ji(e,a),c);Oa(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=si(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=b(e,t,n,r);return wa=null,i}catch(t){if(t===ma||t===ga)throw t;var a=ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Qr(e),Zr(e,null,n),t}return Jr(e,r,t,n),Qr(e)}function La(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}function Ra(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var za=!1;function Ba(){if(za){var e=aa;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Q&f)===f:(r&f)===f){f!==0&&f===ia&&(za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ma=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ha(n[e],t)}var Wa=te(null),Ga=te(0);function Ka(e,t){e=Vl,V(Ga,e),V(Wa,t),Vl=e|t.baseLanes}function qa(){V(Ga,Vl),V(Wa,Wa.current)}function Ja(){Vl=Ga.current,B(Wa),B(Ga)}var Ya=te(null),Xa=null;function Za(e){var t=e.alternate;V(no,no.current&1),V(Ya,e),Xa===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Xa=e)}function Qa(e){V(no,no.current),V(Ya,e),Xa===null&&(Xa=e)}function $a(e){e.tag===22?(V(no,no.current),V(Ya,e),Xa===null&&(Xa=e)):eo(e)}function eo(){V(no,no.current),V(Ya,Ya.current)}function to(e){B(Ya),Xa===e&&(Xa=null),B(no)}var no=te(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=0,J=null,ao=null,oo=null,so=!1,co=!1,lo=!1,uo=0,fo=0,po=null,mo=0;function ho(){throw Error(s(321))}function go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!hr(e[n],t[n]))return!1;return!0}function _o(e,t,n,r,i,a){return io=a,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ps:Fs,lo=!1,a=n(r,i),lo=!1,co&&(a=yo(t,n,r,i)),vo(e),a}function vo(e){I.H=Ns;var t=ao!==null&&ao.next!==null;if(io=0,oo=ao=J=null,so=!1,fo=0,po=null,t)throw Error(s(300));e===null||Qs||(e=e.dependencies,e!==null&&Ki(e)&&(Qs=!0))}function yo(e,t,n,r){J=e;var i=0;do{if(co&&(po=null),fo=0,co=!1,25<=i)throw Error(s(301));if(i+=1,oo=ao=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}I.H=Is,a=t(n,r)}while(co);return a}function bo(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Do(t):t,e=e.useState()[0],(ao===null?null:ao.memoizedState)!==e&&(J.flags|=1024),t}function xo(){var e=uo!==0;return uo=0,e}function So(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Co(e){if(so){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}so=!1}io=0,oo=ao=J=null,co=!1,fo=uo=0,po=null}function wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?J.memoizedState=oo=e:oo=oo.next=e,oo}function To(){if(ao===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=ao.next;var t=oo===null?J.memoizedState:oo.next;if(t!==null)oo=t,ao=e;else{if(e===null)throw J.alternate===null?Error(s(467)):Error(s(310));ao=e,e={memoizedState:ao.memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},oo===null?J.memoizedState=oo=e:oo=oo.next=e}return oo}function Eo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Do(e){var t=fo;return fo+=1,po===null&&(po=[]),e=ya(po,e,t),t=J,(oo===null?t.memoizedState:oo.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ps:Fs),e}function Oo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Do(e);if(e.$$typeof===C)return q(e)}throw Error(s(438,String(e)))}function ko(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Eo(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Ao(e,t){return typeof t==`function`?t(e):t}function jo(e){return Mo(To(),ao,e)}function Mo(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(io&f)===f:(Q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ia&&(d=!0);else if((io&p)===p){u=u.next,p===ia&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,o=a):l=l.next=f,J.lanes|=p,Ul|=p;f=u.action,lo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,o=a):l=l.next=p,J.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!hr(a,e.memoizedState)&&(Qs=!0,d&&(n=aa,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function No(e){var t=To(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);hr(a,t.memoizedState)||(Qs=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Po(e,t,n){var r=J,i=To(),a=K;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!hr((ao||i).memoizedState,n);if(o&&(i.memoizedState=n,Qs=!0),i=i.queue,as(Lo.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,i,n,t),null),Fl===null)throw Error(s(349));a||io&127||Fo(r,t,n)}return n}function Fo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=Eo(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Io(e,t,n,r){t.value=n,t.getSnapshot=r,Ro(t)&&zo(e)}function Lo(e,t,n){return n(function(){Ro(t)&&zo(e)})}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hr(e,n)}catch{return!0}}function zo(e){var t=Xr(e,2);t!==null&&pu(t,e,2)}function Bo(e){var t=wo();if(typeof e==`function`){var n=e;if(e=n(),lo){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},t}function Vo(e,t,n,r){return e.baseState=n,Mo(e,ao,typeof r==`function`?r:Ao)}function Ho(e,t,n,r,i){if(As(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};I.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Uo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Uo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Wo(e,t,s)}catch(n){Ko(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Wo(e,t,a)}catch(n){Ko(e,t,n)}}function Wo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Go(e,t,n)},function(n){return Ko(e,t,n)}):Go(e,t,n)}function Go(e,t,n){t.status=`fulfilled`,t.value=n,qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Uo(e,n)))}function Ko(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,qo(t),t=t.next;while(t!==r)}e.action=null}function qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jo(e,t){return t}function Yo(e,t){if(K){var n=Fl.formState;if(n!==null){a:{var r=J;if(K){if(Di){b:{for(var i=Di,a=ki;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Di=cf(i.nextSibling),r=i.data===`F!`;break a}}ji(r)}r=!1}r&&(t=n[0])}}return n=wo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t},n.queue=r,n=Ds.bind(null,J,r),r.dispatch=n,r=Bo(!1),a=ks.bind(null,J,!1,r.queue),r=wo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ho.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Xo(e){return Zo(To(),ao,e)}function Zo(e,t,n){if(t=Mo(e,t,Jo)[0],e=jo(Ao)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Do(t)}catch(e){throw e===ma?ga:e}else r=t;t=To();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,es(9,{destroy:void 0},Qo.bind(null,i,n),null)),[r,a,e]}function Qo(e,t){e.action=t}function $o(e){var t=To(),n=ao;if(n!==null)return Zo(t,n,e);To(),t=t.memoizedState,n=To();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function es(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=Eo(),J.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return To().memoizedState}function ns(e,t,n,r){var i=wo();J.flags|=e,i.memoizedState=es(1|t,{destroy:void 0},n,r===void 0?null:r)}function rs(e,t,n,r){var i=To();r=r===void 0?null:r;var a=i.memoizedState.inst;ao!==null&&r!==null&&go(r,ao.memoizedState.deps)?i.memoizedState=es(t,a,n,r):(J.flags|=e,i.memoizedState=es(1|t,a,n,r))}function is(e,t){ns(8390656,8,e,t)}function as(e,t){rs(2048,8,e,t)}function os(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Eo(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ss(e){var t=To().memoizedState;return os({ref:t,nextImpl:e}),function(){if(Pl&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function cs(e,t){return rs(4,2,e,t)}function ls(e,t){return rs(4,4,e,t)}function us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ds(e,t,n){n=n==null?null:n.concat([e]),rs(4,4,us.bind(null,t,e),n)}function fs(){}function ps(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ms(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&go(t,r[1]))return r[0];if(r=e(),lo){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function hs(e,t,n){return n===void 0||io&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),J.lanes|=e,Ul|=e,n)}function gs(e,t,n,r){return hr(n,t)?n:Wa.current===null?!(io&42)||io&1073741824&&!(Q&261930)?(Qs=!0,e.memoizedState=n):(e=fu(),J.lanes|=e,Ul|=e,t):(e=hs(e,n,r),hr(e,t)||(Qs=!0),e)}function _s(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,ks(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Os(e,t,ca(c,r),du(e)):Os(e,t,r,du(e))}catch(n){Os(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function vs(){}function ys(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=bs(e).queue;_s(e,i,t,R,n===null?vs:function(){return xs(e),n(r)})}function bs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xs(e){var t=bs(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},du())}function Ss(){return q(Qf)}function Cs(){return To().memoizedState}function ws(){return To().memoizedState}function Ts(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Fa(n);var r=Ia(t,e,n);r!==null&&(pu(r,t,n),La(r,t,n)),t={cache:ea()},e.payload=t;return}t=t.return}}function Es(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?js(t,n):(n=Yr(e,t,n,r),n!==null&&(pu(n,e,r),Ms(n,t,r)))}function Ds(e,t,n){Os(e,t,n,du())}function Os(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))js(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hr(s,o))return Jr(e,t,i,0),Fl===null&&qr(),!1}catch{}if(n=Yr(e,t,i,r),n!==null)return pu(n,e,r),Ms(n,t,r),!0}return!1}function ks(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(s(479))}else t=Yr(e,n,r,2),t!==null&&pu(t,e,2)}function As(e){var t=e.alternate;return e===J||t!==null&&t===J}function js(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ms(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}var Ns={readContext:q,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};Ns.useEffectEvent=ho;var Ps={readContext:q,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:q,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Es.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Ds.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fs,useDeferredValue:function(e,t){return hs(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=_s.bind(null,J,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=J,i=wo();if(K){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Fl===null)throw Error(s(349));Q&127||Fo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,is(Lo.bind(null,r,a,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,a,n,t),null),n},useId:function(){var e=wo(),t=Fl.identifierPrefix;if(K){var n=bi,r=yi;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=mo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ss,useFormState:Yo,useActionState:Yo,useOptimistic:function(e){var t=wo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ks.bind(null,J,!0,n),n.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return wo().memoizedState=Ts.bind(null,J)},useEffectEvent:function(e){var t=wo(),n={impl:e};return t.memoizedState=n,function(){if(Pl&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Fs={readContext:q,use:Oo,useCallback:ps,useContext:q,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:jo,useRef:ts,useState:function(){return jo(Ao)},useDebugValue:fs,useDeferredValue:function(e,t){return gs(To(),ao.memoizedState,e,t)},useTransition:function(){var e=jo(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Cs,useHostTransitionStatus:Ss,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){return Vo(To(),ao,e,t)},useMemoCache:ko,useCacheRefresh:ws};Fs.useEffectEvent=ss;var Is={readContext:q,use:Oo,useCallback:ps,useContext:q,useEffect:as,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:No,useRef:ts,useState:function(){return No(Ao)},useDebugValue:fs,useDeferredValue:function(e,t){var n=To();return ao===null?hs(n,e,t):gs(n,ao.memoizedState,e,t)},useTransition:function(){var e=No(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Cs,useHostTransitionStatus:Ss,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){var n=To();return ao===null?(n.baseState=e,[e,n.queue.dispatch]):Vo(n,ao,e,t)},useMemoCache:ko,useCacheRefresh:ws};Is.useEffectEvent=ss;function Ls(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Rs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=Fa(r);i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(pu(t,e,r),La(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=Fa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(pu(t,e,r),La(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=Fa(n);r.tag=2,t!=null&&(r.callback=t),t=Ia(e,r,n),t!==null&&(pu(t,e,n),La(t,e,n))}};function zs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!gr(n,r)||!gr(i,a):!0}function Bs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Rs.enqueueReplaceState(t,t.state,null)}function Vs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Hs(e){Ur(e)}function Us(e){console.error(e)}function Ws(e){Ur(e)}function Gs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function qs(e,t,n){return n=Fa(n),n.tag=3,n.payload={element:null},n.callback=function(){Gs(e,t)},n}function Js(e){return e=Fa(e),e.tag=3,e}function Ys(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ks(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ks(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Xs(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Gi(t,n,i,!0),n=Ya.current,n!==null){switch(n.tag){case 31:case 13:return Xa===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===_a?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,i)),!1;case 22:return n.flags|=65536,r===_a?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,i)),!1}throw Error(s(435,n.tag))}return Wu(e,r,i),Tu(),!1}if(K)return t=Ya.current,t===null?(r!==Ai&&(t=Error(s(423),{cause:r}),Li(di(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=di(r,n),i=qs(e.stateNode,r,i),Ra(e,i),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ai&&(e=Error(s(422),{cause:r}),Li(di(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=di(a,n),Jl===null?Jl=[a]:Jl.push(a),Hl!==4&&(Hl=2),t===null)return!0;r=di(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=qs(n.stateNode,r,e),Ra(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(tu===null||!tu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Js(i),Ys(i,e,n,r),Ra(n,i),!1}n=n.return}while(n!==null);return!1}var Zs=Error(s(461)),Qs=!1;function $s(e,t,n,r){t.child=e===null?ja(t,null,n,r):Aa(t,e.child,n,r)}function ec(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return qi(t),r=_o(e,t,n,o,a,i),s=xo(),e!==null&&!Qs?(So(e,t,i),Cc(e,t,i)):(K&&s&&Ci(t),t.flags|=1,$s(e,t,r,i),t.child)}function tc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ni(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,nc(e,t,a,r,i)):(e=ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?gr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=ri(a,r),e.ref=t.ref,e.return=t,t.child=e}function nc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(gr(a,r)&&e.ref===t.ref)if(Qs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Qs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function rc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ac(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fa(t,a===null?null:a.cachePool),a===null?qa():Ka(t,a),$a(t);else return r=t.lanes=536870912,ac(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&fa(t,null),qa(),eo(t)):(fa(t,a.cachePool),Ka(t,a),eo(t),t.memoizedState=null);return $s(e,t,i,n),t.child}function ic(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ac(e,t,n,r,i){var a=da();return a=a===null?null:{parent:$i._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&fa(t,null),qa(),$a(t),e!==null&&Gi(e,t,r,!0),t.childLanes=i,null}function oc(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sc(e,t,n){return Aa(t,e.child,null,n),e=oc(t,t.pendingProps),e.flags|=2,to(t),t.memoizedState=null,e}function cc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(K){if(r.mode===`hidden`)return e=oc(t,r),t.lanes=536870912,ic(null,e);if(Qa(t),(e=Di)?(e=rf(e,ki),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=ci(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw ji(t);return t.lanes=536870912,null}return oc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Qa(t),i)if(t.flags&256)t.flags&=-257,t=sc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Qs||Gi(e,t,n,!1),i=(n&e.childLanes)!==0,Qs||i){if(r=Fl,r!==null&&(o=Ye(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Xr(e,o),pu(r,e,o),Zs;Tu(),t=sc(e,t,n)}else e=a.treeContext,Di=cf(o.nextSibling),Ei=t,K=!0,Oi=null,ki=!1,e!==null&&Ti(t,e),t=oc(t,r),t.flags|=4096;return t}return e=ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Y(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return qi(t),n=_o(e,t,n,r,void 0,i),r=xo(),e!==null&&!Qs?(So(e,t,i),Cc(e,t,i)):(K&&r&&Ci(t),t.flags|=1,$s(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return qi(t),t.updateQueue=null,n=yo(t,r,n,i),vo(e),r=xo(),e!==null&&!Qs?(So(e,t,a),Cc(e,t,a)):(K&&r&&Ci(t),t.flags|=1,$s(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(qi(t),t.stateNode===null){var a=$r,o=n.contextType;typeof o==`object`&&o&&(a=q(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Rs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Na(t),o=n.contextType,a.context=typeof o==`object`&&o?q(o):$r,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ls(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Rs.enqueueReplaceState(a,a.state,null),Va(t,r,a,i),Ba(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Vs(n,s);a.props=c;var l=a.context,u=n.contextType;o=$r,typeof u==`object`&&u&&(o=q(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Bs(t,a,r,o),Ma=!1;var f=t.memoizedState;a.state=f,Va(t,r,a,i),Ba(),l=t.memoizedState,s||f!==l||Ma?(typeof d==`function`&&(Ls(t,n,d,r),l=t.memoizedState),(c=Ma||zs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pa(e,t),o=t.memoizedProps,u=Vs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=$r,typeof l==`object`&&l&&(c=q(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Bs(t,a,r,c),Ma=!1,f=t.memoizedState,a.state=f,Va(t,r,a,i),Ba();var p=t.memoizedState;o!==d||f!==p||Ma||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof s==`function`&&(Ls(t,n,s,r),p=t.memoizedState),(u=Ma||zs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Y(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Aa(t,e.child,null,i),t.child=Aa(t,null,n,i)):$s(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Fi(),t.flags|=256,$s(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:pa()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function gc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(no.current&2)!=0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!=0,t.flags&=-33,e===null){if(K){if(i?Za(t):eo(t),(e=Di)?(e=rf(e,ki),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=ci(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw ji(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(eo(t),i=t.mode,c=vc({mode:`hidden`,children:c},i),r=oi(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,o,n),t.memoizedState=pc,ic(null,r)):(Za(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(Za(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(eo(t),c=r.fallback,i=t.mode,r=vc({mode:`visible`,children:r.children},i),c=oi(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Aa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,o,n),t.memoizedState=pc,t=ic(null,r)):(eo(t),t.child=e.child,t.flags|=128,t=null);else if(Za(t),of(c)){if(o=c.nextSibling&&c.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(s(419)),r.stack=``,r.digest=o,Li({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Qs||Gi(e,t,n,!1),o=(n&e.childLanes)!==0,Qs||o){if(o=Fl,o!==null&&(r=Ye(o,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Xr(e,r),pu(o,e,r),Zs;af(c)||Tu(),t=yc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Di=cf(c.nextSibling),Ei=t,K=!0,Oi=null,ki=!1,e!==null&&Ti(t,e),t=_c(t,r.children),t.flags|=4096);return t}return i?(eo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ri(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=oi(c,i,n,null),c.flags|=2):c=ri(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ic(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(i=c.cachePool,i===null?i=pa():(l=$i._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=hc(e,o,n),t.memoizedState=pc,ic(e.child,r)):(Za(t),n=e.child,e=n.sibling,n=ri(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=ti(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Aa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ui(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=no.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,V(no,o),$s(e,t,r,n),r=K?hi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Gi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ki(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:ae(t,t.stateNode.containerInfo),Vi(t,$i,e.memoizedState.cache),Fi();break;case 27:case 5:se(t);break;case 4:ae(t,t.stateNode.containerInfo);break;case 10:Vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Za(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Za(t),t.flags|=128,null);Za(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Gi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(no,no.current),r)break;return null;case 22:return t.lanes=0,rc(e,t,n,t.pendingProps);case 24:Vi(t,$i,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Qs=!1,Tc(e,t,n);Qs=!!(e.flags&131072)}else Qs=!1,K&&t.flags&1048576&&Si(t,hi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ba(t.elementType),t.type=e,typeof e==`function`)ni(e)?(r=Vs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=ec(null,t,e,r,n);break a}else if(i===D){t.tag=14,t=tc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(s(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Vs(r,t.pendingProps),dc(e,t,r,i,n);case 3:a:{if(ae(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Pa(e,t),Va(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Vi(t,$i,r),r!==a.cache&&Wi(t,[$i],n,!0),Ba(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==i){i=di(Error(s(424)),t),Li(i),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Di=cf(e.firstChild),Ei=t,K=!0,Oi=null,ki=!0,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fi(),r===i){t=Cc(e,t,n);break a}$s(e,t,r,n)}t=t.child}return t;case 26:return Y(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:K||(n=t.type,e=t.pendingProps,r=Bd(re.current).createElement(n),r[tt]=t,r[nt]=e,Pd(r,n,e),mt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return se(t),e===null&&K&&(r=t.stateNode=ff(t.type,t.pendingProps,re.current),Ei=t,ki=!0,i=Di,Zd(t.type)?(lf=i,Di=cf(r.firstChild)):Di=i),$s(e,t,t.pendingProps.children,n),Y(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&K&&((i=r=Di)&&(r=tf(r,t.type,t.pendingProps,ki),r===null?i=!1:(t.stateNode=r,Ei=t,Di=cf(r.firstChild),ki=!1,i=!0)),i||ji(t)),se(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Ud(i,a)?r=null:o!==null&&Ud(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=_o(e,t,bo,null,null,n),Qf._currentValue=i),Y(e,t),$s(e,t,r,n),t.child;case 6:return e===null&&K&&((e=n=Di)&&(n=nf(n,t.pendingProps,ki),n===null?e=!1:(t.stateNode=n,Ei=t,Di=null,e=!0)),e||ji(t)),null;case 13:return gc(e,t,n);case 4:return ae(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,n):$s(e,t,r,n),t.child;case 11:return ec(e,t,t.type,t.pendingProps,n);case 7:return $s(e,t,t.pendingProps,n),t.child;case 8:return $s(e,t,t.pendingProps.children,n),t.child;case 12:return $s(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vi(t,t.type,r.value),$s(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,qi(t),i=q(i),r=r(i),t.flags|=1,$s(e,t,r,n),t.child;case 14:return tc(e,t,t.type,t.pendingProps,n);case 15:return nc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return cc(e,t,n);case 22:return rc(e,t,n,t.pendingProps);case 24:return qi(t),r=q($i),e===null?(i=da(),i===null&&(i=Fl,a=ea(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Na(t),Vi(t,$i,i)):((e.lanes&n)!==0&&(Pa(e,t),Va(t,null,null,n),Ba()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Vi(t,$i,r),r!==i.cache&&Wi(t,[$i],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Vi(t,$i,r))),$s(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw xa=_a,ha}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Su())e.flags|=8192;else throw xa=_a,ha}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ue(),e.lanes|=t,ql|=t)}function jc(e,t){if(!K)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function X(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mc(e,t,n){var r=t.pendingProps;switch(wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return X(t),null;case 1:return X(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hi($i),oe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pi(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii())),X(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Dc(t),a===null?(X(t),Oc(t,i,null,r,n)):(X(t),kc(t,a))):a?a===e.memoizedState?(X(t),t.flags&=-16777217):(Dc(t),X(t),kc(t,a)):(e=e.memoizedProps,e!==r&&Dc(t),X(t),Oc(t,i,e,r,n)),null;case 27:if(ce(t),n=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return X(t),null}e=H.current,Pi(t)?Mi(t,e):(e=ff(i,r,n),t.stateNode=e,Dc(t))}return X(t),null;case 5:if(ce(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return X(t),null}if(a=H.current,Pi(t))Mi(t,a);else{var o=Bd(re.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[tt]=t,a[nt]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return X(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=re.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ei,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||ji(t,!0)}else e=Bd(e).createTextNode(r),e[tt]=t,t.stateNode=e}return X(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[tt]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;X(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(s(558))}return X(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[tt]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;X(t),i=!1}else i=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(to(t),t):(to(t),null)}return to(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),X(t),null);case 4:return oe(),e===null&&xd(t.stateNode.containerInfo),X(t),null;case 10:return Hi(t.type),X(t),null;case 19:if(B(no),r=t.memoizedState,r===null)return X(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)jc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ro(e),a!==null){for(t.flags|=128,jc(r,!1),e=a.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return V(no,no.current&1|2),K&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>$l&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ro(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!K)return X(t),null}else 2*xe()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(X(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,n=no.current,V(no,i?n&1|2:n&1),K&&xi(t,r.treeForkCount),e);case 22:case 23:return to(t),Ja(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(X(t),t.subtreeFlags&6&&(t.flags|=8192)):X(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&B(ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi($i),X(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Nc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi($i),oe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ce(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(s(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(no),null;case 4:return oe(),null;case 10:return Hi(t.type),null;case 22:case 23:return to(t),Ja(),e!==null&&B(ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi($i),null;case 25:return null;default:return null}}function Pc(e,t){switch(wi(t),t.tag){case 3:Hi($i),oe();break;case 26:case 27:case 5:ce(t);break;case 4:oe();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:B(no);break;case 10:Hi(t.type);break;case 22:case 23:to(t),Ja(),e!==null&&B(ua);break;case 24:Hi($i)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){Uu(e,e.return,t)}}}function Rc(e,t,n){n.props=Vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[nt]=t}catch(t){Uu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[tt]=e,t[nt]=n}catch(t){Uu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Rd=sp,e=br(e),xr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Vs(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Qc=e;break}Qc=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:hl(e,n),r&4&&Fc(5,n);break;case 1:if(hl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}r&64&&Lc(n),r&512&&zc(n,n.return);break;case 3:if(hl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ua(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&qc(n);case 26:case 5:hl(e,n),t===null&&r&4&&Vc(n),r&512&&zc(n,n.return);break;case 12:hl(e,n);break;case 31:hl(e,n),r&4&&ol(e,n);break;case 13:hl(e,n),r&4&&sl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Jc,!r){t=t!==null&&t.memoizedState!==null||Yc,i=Jc;var a=Yc;Jc=r,(Yc=t)&&!a?_l(e,n,(n.subtreeFlags&8772)!=0):hl(e,n),Jc=i,Yc=a}break;case 30:break;default:hl(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&<(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nl=null,rl=!1;function il(e,t,n){for(n=n.child;n!==null;)al(e,t,n),n=n.sibling}function al(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount==`function`)try{Ae.onCommitFiberUnmount(ke,n)}catch{}switch(n.tag){case 26:Yc||Bc(n,t),il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Yc||Bc(n,t);var r=nl,i=rl;Zd(n.type)&&(nl=n.stateNode,rl=!1),il(e,t,n),pf(n.stateNode),nl=r,rl=i;break;case 5:Yc||Bc(n,t);case 6:if(r=nl,i=rl,nl=null,il(e,t,n),nl=r,rl=i,nl!==null)if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}break;case 18:nl!==null&&(rl?(e=nl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,il(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Ic(2,n,t),Yc||Ic(4,n,t),il(e,t,n);break;case 1:Yc||(Bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rc(n,t,r)),il(e,t,n);break;case 21:il(e,t,n);break;case 22:Yc=(r=Yc)||n.memoizedState!==null,il(e,t,n),Yc=r;break;default:il(e,t,n)}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function cl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zc),t;default:throw Error(s(435,e.tag))}}function ll(e,t){var n=cl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ul(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,o=t,c=o;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(s(160));al(a,o,i),nl=null,rl=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fl(t,e),t=t.sibling}var dl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ul(t,e),pl(e),r&4&&(Ic(3,e,e.return),Fc(3,e),Ic(5,e,e.return));break;case 1:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&64&&Jc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=dl;if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[ct]||a[tt]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Pd(a,r,n),a[tt]=e,mt(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;case`meta`:if(o=Vf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;default:throw Error(s(468,r))}a[tt]=e,mt(a),r=a}e.stateNode=r}else Hf(i,e.type,e.stateNode);else e.stateNode=If(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Hf(i,e.type,e.stateNode):If(i,r,e.memoizedProps))}break;case 27:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),n!==null&&r&4&&Hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),e.flags&32){i=e.stateNode;try{Bt(i,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Hc(e,i,n===null?i:n.memoizedProps)),r&1024&&(Xc=!0);break;case 6:if(ul(t,e),pl(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,i=dl,dl=gf(t.containerInfo),ul(t,e),dl=i,pl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Xc&&(Xc=!1,ml(e));break;case 4:r=dl,dl=gf(e.stateNode.containerInfo),ul(t,e),pl(e),dl=r;break;case 12:ul(t,e),pl(e);break;case 31:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 13:ul(t,e),pl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=xe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Jc,d=Yc;if(Jc=u||i,Yc=d||l,ul(t,e),Yc=d,Jc=u,pl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Jc||Yc||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ll(e,n))));break;case 19:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 30:break;case 21:break;default:ul(t,e),pl(e)}}function pl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Uc(r)){n=r;break}r=r.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode;Kc(e,Wc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Bt(a,``),n.flags&=-33),Kc(e,Wc(e),a);break;case 3:case 4:var o=n.stateNode.containerInfo;Gc(e,Wc(e),o);break;default:throw Error(s(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ml(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ml(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ic(4,t,t.return),gl(t);break;case 1:Bc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rc(t,t.return,n),gl(t);break;case 27:pf(t.stateNode);case 26:case 5:Bc(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function _l(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:_l(i,a,n),Fc(4,a);break;case 1:if(_l(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ha(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Lc(a),zc(a,a.return);break;case 27:qc(a);case 26:case 5:_l(i,a,n),n&&r===null&&o&4&&Vc(a),zc(a,a.return);break;case 12:_l(i,a,n);break;case 31:_l(i,a,n),n&&o&4&&ol(i,a);break;case 13:_l(i,a,n),n&&o&4&&sl(i,a);break;case 22:a.memoizedState===null&&_l(i,a,n),zc(a,a.return);break;case 30:break;default:_l(i,a,n)}t=t.sibling}}function vl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ta(n))}function yl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ta(e))}function bl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,n,r),i&2048&&Fc(9,t);break;case 1:bl(e,t,n,r);break;case 3:bl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ta(e)));break;case 12:if(i&2048){bl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else bl(e,t,n,r);break;case 31:bl(e,t,n,r);break;case 13:bl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?bl(e,t,n,r):(a._visibility|=2,Sl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?bl(e,t,n,r):Cl(e,t),i&2048&&vl(o,t);break;case 24:bl(e,t,n,r),i&2048&&yl(t.alternate,t);break;default:bl(e,t,n,r)}}function Sl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Sl(a,o,s,c,i),Fc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Sl(a,o,s,c,i)):u._visibility&2?Sl(a,o,s,c,i):Cl(a,o),i&&l&2048&&vl(o.alternate,o);break;case 24:Sl(a,o,s,c,i),i&&l&2048&&yl(o.alternate,o);break;default:Sl(a,o,s,c,i)}t=t.sibling}}function Cl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Cl(n,r),i&2048&&vl(r.alternate,r);break;case 24:Cl(n,r),i&2048&&yl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var wl=8192;function Tl(e,t,n){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)El(e,t,n),e=e.sibling}function El(e,t,n){switch(e.tag){case 26:Tl(e,t,n),e.flags&wl&&e.memoizedState!==null&&Gf(n,dl,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,n);break;case 3:case 4:var r=dl;dl=gf(e.stateNode.containerInfo),Tl(e,t,n),dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=wl,wl=16777216,Tl(e,t,n),wl=r):Tl(e,t,n));break;default:Tl(e,t,n)}}function Dl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kl(e),e=e.sibling}function kl(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&Ic(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Al(e)):Ol(e);break;default:Ol(e)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ic(8,t,t.return),Al(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Al(t));break;default:Al(t)}e=e.sibling}}function jl(e,t){for(;Qc!==null;){var n=Qc;switch(n.tag){case 0:case 11:case 15:Ic(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ta(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qc=r;else a:for(n=e;Qc!==null;){r=Qc;var i=r.sibling,a=r.return;if(tl(r),r===n){Qc=null;break a}if(i!==null){i.return=a,Qc=i;break a}Qc=a}}}var Ml={getCacheForType:function(e){var t=q($i),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return q($i).controller.signal}},Nl=typeof WeakMap==`function`?WeakMap:Map,Pl=0,Fl=null,Z=null,Q=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Pl&2&&Q!==0?Q&-Q:I.T===null?Qe():ud()}function fu(){if(Kl===0)if(!(Q&536870912)||K){var e=Le;Le<<=1,!(Le&3932160)&&(Le=262144),Kl=e}else Kl=536870912;return e=Ya.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Fl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Q,Kl,!1)),Ge(e,n),(!(Pl&2)||e!==Fl)&&(e===Fl&&(!(Pl&2)&&(Wl|=n),Hl===4&&_u(e,Q,Kl,!1)),nd(e))}function mu(e,t,n){if(Pl&6)throw Error(s(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ve(e,t),i=r?Ou(e,t):Eu(e,t,!0),a=r;do{if(i===0){zl&&!r&&_u(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!gu(n)){i=Eu(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,o).flags|=256),o=Eu(c,o,!1),o!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=a,Wl|=a,i=4;break a}a=Yl,Yl=i,a!==null&&(Yl===null?Yl=a:Yl.push.apply(Yl,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Zl+300-xe(),10<i)){if(_u(r,t,Kl,!Rl),Be(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,a,`Throttled`,-0,0),i);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,a,null,-0,0)}}break}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},El(t,a,d);var m=(a&62914560)===a?Zl-xe():(a&4194048)===a?Ql-xe():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!hr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Me(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&qe(e,n,t)}function vu(){return Pl&6?!0:(rd(0,!1),!1)}function yu(){if(Z!==null){if(Il===0)var e=Z.return;else e=Z,Bi=zi=null,Co(e),wa=null,Ta=0,e=Z;for(;e!==null;)Pc(e.alternate,e),e=e.return;Z=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Fl=e,Z=n=ri(e.current,null),Q=t,Il=0,Ll=null,Rl=!1,zl=Ve(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Me(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,qr(),n}function xu(e,t){J=null,I.H=Ns,t===ma||t===ga?(t=Sa(),Il=3):t===ha?(t=Sa(),Il=4):Il=t===Zs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Z===null&&(Hl=1,Gs(e,di(t,e.current)))}function Su(){var e=Ya.current;return e===null?!0:(Q&4194048)===Q?Xa===null:(Q&62914560)===Q||Q&536870912?e===Xa:!1}function Cu(){var e=I.H;return I.H=Ns,e===null?Ns:e}function wu(){var e=I.A;return I.A=Ml,e}function Tu(){Hl=4,Rl||(Q&4194048)!==Q&&Ya.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Fl===null||_u(Fl,Q,Kl,!1)}function Eu(e,t,n){var r=Pl;Pl|=2;var i=Cu(),a=wu();(Fl!==e||Q!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Z!==null){var s=Z,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Ya.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Bi=zi=null,Pl=r,I.H=i,I.A=a,Z===null&&(Fl=null,Q=0,qr()),o}function Du(){for(;Z!==null;)Au(Z)}function Ou(e,t){var n=Pl;Pl|=2;var r=Cu(),i=wu();Fl!==e||Q!==t?(eu=null,$l=xe()+500,bu(e,t)):zl=Ve(e,t);a:do try{if(Il!==0&&Z!==null){t=Z;var a=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,a,1);break;case 2:case 9:if(va(a)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Fl!==e||(Il=7),nd(e)},a.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:va(a)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,a,7));break;case 5:var o=null;switch(Z.tag){case 26:o=Z.memoizedState;case 5:case 27:var c=Z;if(o?Wf(o):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,a,5);break;case 6:Il=0,Ll=null,Mu(e,t,a,6);break;case 8:yu(),Hl=6;break a;default:throw Error(s(462))}}ku();break}catch(t){xu(e,t)}while(1);return Bi=zi=null,I.H=r,I.A=i,Pl=n,Z===null?(Fl=null,Q=0,qr(),Hl):0}function ku(){for(;Z!==null&&!ye();)Au(Z)}function Au(e){var t=Ec(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:Co(t);default:Pc(n,t),t=Z=ii(t,Vl),t=Ec(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function Mu(e,t,n,r){Bi=zi=null,Co(t),wa=null,Ta=0;var i=t.return;try{if(Xs(e,i,t,n,Q)){Hl=1,Gs(e,di(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;Hl=1,Gs(e,di(n,e.current)),Z=null;return}t.flags&32768?(K||r===1?e=!0:zl||Q&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ya.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Mc(t.alternate,t,Vl);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Hl=6,Z=null}function Fu(e,t,n,r,i,a,o,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Pl&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(a=t.lanes|t.childLanes,a|=Kr,Ke(e,n,a,o,c,l),e===Fl&&(Z=Fl=null,Q=0),iu=t,ru=e,au=n,ou=a,su=i,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(Te,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,i=L.p,L.p=2,o=Pl,Pl|=4;try{$c(e,t,n)}finally{Pl=o,L.p=i,I.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Pl;Pl|=4;try{fl(t,e);var a=zd,o=br(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&yr(s.ownerDocument.documentElement,s)){if(c!==null&&xr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=vr(s,h),v=vr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{Pl=i,L.p=r,I.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Pl;Pl|=4;try{el(e,t.alternate,t)}finally{Pl=i,L.p=r,I.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,be();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),Ze(n),t=t.stateNode,Ae&&typeof Ae.onCommitFiberRoot==`function`)try{Ae.onCommitFiberRoot(ke,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ta(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=Ze(au),r=I.T,i=L.p;try{L.p=32>n?32:n,I.T=null,n=su,su=null;var a=ru,o=au;if(nu=0,iu=ru=null,au=0,Pl&6)throw Error(s(331));var c=Pl;if(Pl|=4,kl(a.current),xl(a,a.current,o,n),Pl=c,rd(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot==`function`)try{Ae.onPostCommitFiberRoot(ke,a)}catch{}return!0}finally{L.p=i,I.T=r,zu(e,t)}}function Hu(e,t,n){t=di(n,t),t=qs(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Ge(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=di(n,e),n=Js(2),r=Ia(t,n,2),r!==null&&(Ys(n,r,t,e),Ge(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Q&n)===n&&(Hl===4||Hl===3&&(Q&62914560)===Q&&300>xe()-Zl?!(Pl&2)&&bu(e,0):Gl|=n,ql===Q&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Ue()),e=Xr(e,t),e!==null&&(Ge(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return _e(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Me(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=Be(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ve(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=xe(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Me(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=He(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Q,n=Be(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ve(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ve(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ve(r),Ze(n)){case 2:case 8:n=we;break;case 32:n=Te;break;case 268435456:n=U;break;default:n=Te}return r=sd.bind(null,e),n=_e(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ve(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Q;return r=Be(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,xe()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Pl&6?_e(Ce,id):ad()})}function ud(){if(td===0){var e=ia;e===0&&(e=Ie,Ie<<=1,!(Ie&261888)&&(Ie=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:qt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[nt]||null).action),o=r.submitter;o&&(t=(t=o[nt]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new gn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);ys(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),ys(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Vr.length;md++){var hd=Vr[md];Hr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Hr(Nr,`onAnimationEnd`),Hr(Pr,`onAnimationIteration`),Hr(Fr,`onAnimationStart`),Hr(`dblclick`,`onDoubleClick`),Hr(`focusin`,`onFocus`),Hr(`focusout`,`onBlur`),Hr(Ir,`onTransitionRun`),Hr(Lr,`onTransitionStart`),Hr(Rr,`onTransitionCancel`),Hr(zr,`onTransitionEnd`),vt(`onMouseEnter`,[`mouseout`,`mouseover`]),vt(`onMouseLeave`,[`mouseout`,`mouseover`]),vt(`onPointerEnter`,[`pointerout`,`pointerover`]),vt(`onPointerLeave`,[`pointerout`,`pointerover`]),_t(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),_t(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),_t(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),_t(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),_t(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),_t(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ur(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ur(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[it];n===void 0&&(n=t[it]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,ht.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!an||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ut(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}tn(function(){var r=a,i=Xt(n),o=[];a:{var s=Br.get(e);if(s!==void 0){var c=gn,u=e;switch(e){case`keypress`:if(dn(n)===0)break a;case`keydown`:case`keyup`:c=Pn;break;case`focusin`:u=`focus`,c=Tn;break;case`focusout`:u=`blur`,c=Tn;break;case`beforeblur`:case`afterblur`:c=Tn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Cn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=In;break;case Nr:case Pr:case Fr:c=En;break;case zr:c=Ln;break;case`scroll`:case`scrollend`:c=vn;break;case`wheel`:c=Rn;break;case`copy`:case`cut`:case`paste`:c=Dn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Fn;break;case`toggle`:case`beforetoggle`:c=zn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=nn(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Yt&&(u=n.relatedTarget||n.fromElement)&&(ut(u)||u[rt]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(u=n.relatedTarget||n.toElement,c=r,u=u?ut(u):null,u!==null&&(f=l(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(c=null,u=r),c!==u)){if(d=Cn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Fn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?s:ft(c),h=u==null?s:ft(u),s=new d(g,m+`leave`,c,n,i),s.target=f,s.relatedTarget=h,g=null,ut(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,c&&u)b:{for(d=Ed,p=c,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;c!==null&&Dd(o,s,c,d,!1),u!==null&&f!==null&&Dd(o,f,u,d,!0)}}a:{if(s=r?ft(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var v=rr;else if(Zn(s))if(ir)v=pr;else{v=dr;var y=ur}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Wt(r.elementType)&&(v=rr):v=fr;if(v&&=v(e,r)){Qn(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&It(s,`number`,s.value)}switch(y=r?ft(r):window,e){case`focusin`:(Zn(y)||y.contentEditable===`true`)&&(Cr=y,wr=r,Tr=null);break;case`focusout`:Tr=wr=Cr=null;break;case`mousedown`:Er=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Er=!1,Dr(o,n,i);break;case`selectionchange`:if(Sr)break;case`keydown`:case`keyup`:Dr(o,n,i)}var b;if(Vn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Jn?Kn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Un&&n.locale!==`ko`&&(Jn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Jn&&(b=un()):(sn=i,cn=`value`in sn?sn.value:sn.textContent,Jn=!0)),y=Td(r,x),0<y.length&&(x=new On(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=qn(n),b!==null&&(x.data=b)))),(b=W?G(e,n):Yn(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new On(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),pd(o,e,r,n,i)}vd(o,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=nn(e,n),i!=null&&r.unshift(wd(e,i,a)),i=nn(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=nn(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=nn(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
|
|
9
|
-
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Bt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Bt(e,``+r);break;case`className`:wt(e,`class`,r);break;case`tabIndex`:wt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:wt(e,n,r);break;case`style`:Ut(e,r,a);break;case`data`:if(t!==`object`){wt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,i.name,i,null),Md(e,t,`formEncType`,i.formEncType,i,null),Md(e,t,`formMethod`,i.formMethod,i,null),Md(e,t,`formTarget`,i.formTarget,i,null)):(Md(e,t,`encType`,i.encType,i,null),Md(e,t,`method`,i.method,i,null),Md(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Jt);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),Ct(e,`popover`,r);break;case`xlinkActuate`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Tt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Tt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Tt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Tt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ct(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Gt.get(n)||n,Ct(e,n,r))}}function Nd(e,t,n,r,i,a){switch(n){case`style`:Ut(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Bt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Bt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Jt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!gt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[nt]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ct(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:Md(e,t,a,o,n,null)}}i&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:Md(e,t,r,d,n,null)}}Ft(e,a,c,l,u,o,i,!1);return;case`select`:for(i in $(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:Md(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&Lt(e,!!r,n,!0):Lt(e,!!r,t,!1);return;case`textarea`:for(o in $(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:Md(e,t,o,c,n,null)}zt(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Wt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:o=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Pt(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||Md(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:o=a;default:a!==l&&Md(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?Lt(e,!!n,n?[]:``,!1):Lt(e,!!n,t,!0)):Lt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&Md(e,t,o,i,r,a)}Rt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(s(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Wt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),lt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=L.d;L.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=dt(e);t!==null&&t.tag===5&&t.type===`form`?xs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Nt(n.imageSizes)+`"]`)):i+=`[href="`+Nt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),mt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Nt(r)+`"][href="`+Nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),mt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=pt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);mt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=pt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),mt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=pt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),mt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=re.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=pt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=pt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=pt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+Nt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),mt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Nt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Nt(n.href)+`"]`);if(r)return t.instance=r,mt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),mt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,mt(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),mt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,mt(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),mt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ct]||a[tt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,mt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=We(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=We(0),this.hiddenUpdates=We(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ti(3,null,null,t),e.current=a,a.stateNode=e,t=ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function tp(e){return e?(e=$r,e):$r}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(pu(n,e,t),La(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=Xr(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=Xe(t);var n=Xr(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,up(e,t,n,r)}finally{L.p=a,I.T=i}}function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,up(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ze(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Me(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Pl&6)&&($l=xe()+500,rd(0,!1))}}break;case 31:case 13:s=Xr(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Xt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=ut(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Se()){case Ce:return 2;case we:return 8;case Te:case Ee:return 32;case U:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=dt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=ut(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,$e(e.priority,function(){op(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,$e(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Yt=r,n.target.dispatchEvent(r),Yt=null}else return t=dt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=dt(n);a!==null&&(e.splice(t,3),t-=3,ys(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[nt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[nt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[rt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=r.version;if(Lp!==`19.2.8`)throw Error(s(527,Lp,`19.2.8`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{ke=zp.inject(Rp),Ae=zp}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Hs,a=Us,o=Ws;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,i,a,o,Pp),e[rt]=t.current,xd(e),new Fp(t)}})),c=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=i(),u=c(),d=new Map([{family:`Bebas Neue`,fallback:`sans-serif`,weights:`400`},{family:`Crimson Text`,fallback:`serif`,weights:`400;600;700`},{family:`DM Sans`,fallback:`sans-serif`,weights:`100..1000`},{family:`Fira Sans`,fallback:`sans-serif`,weights:`100;200;300;400;500;600;700;800;900`},{family:`Inter`,fallback:`sans-serif`,weights:`100..900`},{family:`JetBrains Mono`,fallback:`monospace`,weights:`100..800`},{family:`Josefin Sans`,fallback:`sans-serif`,weights:`100..700`},{family:`Karla`,fallback:`sans-serif`,weights:`200..800`},{family:`Lato`,fallback:`sans-serif`,weights:`100;300;400;700;900`},{family:`Lora`,fallback:`serif`,weights:`400..700`},{family:`Manrope`,fallback:`sans-serif`,weights:`200..800`},{family:`Merriweather`,fallback:`serif`,weights:`300..900`},{family:`Montserrat`,fallback:`sans-serif`,weights:`100..900`},{family:`Nunito`,fallback:`sans-serif`,weights:`200..1000`},{family:`Open Sans`,fallback:`sans-serif`,weights:`300..800`},{family:`Oswald`,fallback:`sans-serif`,weights:`200..700`},{family:`Outfit`,fallback:`sans-serif`,weights:`100..900`},{family:`Playfair Display`,fallback:`serif`,weights:`400..900`},{family:`Poppins`,fallback:`sans-serif`,weights:`100;200;300;400;500;600;700;800;900`},{family:`Quicksand`,fallback:`sans-serif`,weights:`300..700`},{family:`Raleway`,fallback:`sans-serif`,weights:`100..900`},{family:`Roboto`,fallback:`sans-serif`,weights:`100..900`},{family:`Rubik`,fallback:`sans-serif`,weights:`300..900`},{family:`Source Sans 3`,fallback:`sans-serif`,weights:`200..900`},{family:`Space Grotesk`,fallback:`sans-serif`,weights:`300..700`},{family:`Work Sans`,fallback:`sans-serif`,weights:`100..900`}].map(e=>[e.family,e])),f=e=>`"${e.family}", ${e.fallback}`,p=e=>{let t=d.get(e)?.weights;return`family=${e.replace(/ /g,`+`)}${t?`:wght@${t}`:``}`};function m(e){return e.length?`https://fonts.googleapis.com/css2?${e.map(p).join(`&`)}&display=swap`:null}var h=e=>m([e]),g=e=>{let t=typeof e==`string`&&e.match(/^"([^"]+)"/);return t?t[1]:null},_=e=>{let t=d.get(e);return t?f(t):null};function v(e,t){let n=new Set,r=e=>{for(let t of Object.values(e||{}))for(let e of[`style`,`hover`,`pressed`,`focused`]){let r=g(t.props?.[e]?.fontFamily);r&&n.add(r)}};r(e);for(let e of Object.values(t||{}))r(e.template?.nodes);return[...n].sort()}var y=[`linear`,`ease`,`ease-in`,`ease-out`,`ease-in-out`,`spring`];function b(e){let t=1-Math.min(100,Math.max(0,Number(e)||0))/100*.85,n=Math.log(1e3)/t,r=e=>{if(t>=1)return 1-(1+n*e)*Math.exp(-n*e);let r=n*Math.sqrt(1-t*t);return 1-Math.exp(-t*n*e)*(Math.cos(r*e)+t*n/r*Math.sin(r*e))},i=[];for(let e=0;e<=40;e+=1)i.push(e===40?1:Math.round(r(e/40)*1e3)/1e3);return`linear(${i.join(`,`)})`}var x=e=>{let t=String(e??``).trim();if(!t)return null;let n=Number(t);return Number.isFinite(n)?n:null};function S(e){let t=[],n=[],r=x(e?.opacity),i=x(e?.x),a=x(e?.y),o=x(e?.scale),s=x(e?.rotate),c=x(e?.blur);return r!==null&&t.push(`opacity: ${r}`),i!==null&&n.push(`translateX(${i}px)`),a!==null&&n.push(`translateY(${a}px)`),o!==null&&n.push(`scale(${o})`),s!==null&&n.push(`rotate(${s}deg)`),n.length&&t.push(`transform: ${n.join(` `)}`),c!==null&&t.push(`filter: blur(${c}px)`),t.join(`; `)}var C=e=>`wb-anim-${String(e).replace(/[^\w-]/g,``)}`,w=e=>`--wb-anim-${String(e).replace(/[^\w-]/g,``)}`,T=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function E(e,t,{offset:n=0}={}){if(!e||!Array.isArray(t)||T())return;let r=window.getComputedStyle(e),i=t.map(e=>r.getPropertyValue(w(e)).trim()).filter(Boolean);if(!i.length)return;e.style.animation=`none`,e.offsetWidth,e.style.animation=i.join(`, `);let a=Math.max(0,Number(n)||0);if(a>0){let t=window.getComputedStyle(e).animationDelay.split(`,`).map(e=>parseFloat(e)*(e.trim().endsWith(`ms`)?1:1e3)||0);e.style.animationDelay=t.map(e=>`${e+a}ms`).join(`, `)}}var D=[`entry`,`cover`,`exit`],O=()=>typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`animation-timeline: view()`),k=(e,t)=>{let n=x(e);return n===null?t:Math.min(100,Math.max(0,n))};function A(e,t){let n=k(t?.start,0),r=Math.max(n,k(t?.end,100));if(e===`page`)return`${n}% ${r}%`;let i=D.includes(t?.phase)?t.phase:`entry`;return`${i} ${n}% ${i} ${r}%`}var j=[`animation-name`,`animation-duration`,`animation-timing-function`,`animation-delay`,`animation-iteration-count`,`animation-fill-mode`,`animation-timeline`,`animation-range`];function M(e,t,{timeline:n,range:r}){if(!e||!Array.isArray(t)||T())return()=>{};let i=window.getComputedStyle(e),a=t.map(e=>i.getPropertyValue(w(e)).trim().split(/\s+/)).filter(e=>e[0]);if(!a.length)return()=>{};let o=j.map(t=>e.style.getPropertyValue(t)),s=e=>a.map(()=>e).join(`, `);return e.style.setProperty(`animation-name`,a.map(e=>e[0]).join(`, `)),e.style.setProperty(`animation-duration`,s(`auto`)),e.style.setProperty(`animation-timing-function`,a.map(e=>e[2]||`linear`).join(`, `)),e.style.setProperty(`animation-delay`,s(`0s`)),e.style.setProperty(`animation-iteration-count`,s(`1`)),e.style.setProperty(`animation-fill-mode`,s(`both`)),e.style.setProperty(`animation-timeline`,s(n)),e.style.setProperty(`animation-range`,s(r)),()=>j.forEach((t,n)=>{o[n]?e.style.setProperty(t,o[n]):e.style.removeProperty(t)})}function N(e){for(let t=e.parentElement;t;t=t.parentElement){let{overflowY:e}=window.getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e)&&t.scrollHeight>t.clientHeight)return t}return null}function P(e,t,n){if(T())return()=>{};let r=M(e,t,{timeline:`auto`,range:`normal`}),i=String(e.style.getPropertyValue(`animation-name`)).split(`,`).map(e=>e.trim()),a=1e3;e.style.setProperty(`animation-duration`,i.map(()=>`${a}ms`).join(`, `)),e.style.setProperty(`animation-play-state`,i.map(()=>`paused`).join(`, `));let o=typeof e.getAnimations==`function`?e.getAnimations().filter(e=>i.includes(e.animationName)):[];if(!o.length)return e.style.removeProperty(`animation-play-state`),r(),()=>{};let s=N(e),c=k(n?.start,0),l=Math.max(c+.001,k(n?.end,100)),u=D.includes(n?.phase)?n.phase:`entry`,d=()=>{if(n?.kind===`page`){let e=s??document.scrollingElement??document.documentElement,t=e.scrollHeight-e.clientHeight;return t>0?e.scrollTop/t*100:0}let t=e.getBoundingClientRect(),r=typeof DOMMatrixReadOnly==`function`?new DOMMatrixReadOnly(window.getComputedStyle(e).transform===`none`?void 0:window.getComputedStyle(e).transform).m42:0,i=e.offsetHeight||t.height,a={top:t.top+t.height/2-r-i/2,height:i},o=s?.getBoundingClientRect(),c=s?{top:o.top+s.clientTop,bottom:o.top+s.clientTop+s.clientHeight}:{top:0,bottom:window.innerHeight},[l,d]={entry:[c.bottom,c.bottom-a.height],exit:[c.top,c.top-a.height],cover:[c.bottom,c.top-a.height]}[u];return(l-a.top)/Math.max(1,l-d)*100},f=0,p=()=>{f=0;let e=Math.min(1,Math.max(0,(d()-c)/(l-c)));o.forEach(t=>{t.currentTime=e*a*.9999})},m=()=>{f||=requestAnimationFrame(p)};return p(),document.addEventListener(`scroll`,m,{capture:!0,passive:!0}),window.addEventListener(`resize`,m),()=>{f&&cancelAnimationFrame(f),document.removeEventListener(`scroll`,m,{capture:!0}),window.removeEventListener(`resize`,m),e.style.removeProperty(`animation-play-state`),r()}}function F(e){return Array.isArray(e)?e.map(e=>{let t=String(e?.id??``).replace(/[^\w-]/g,``);if(!t)return``;let n=C(t),r=S(e.from),i=S(e.to);if(!r&&!i)return``;let a=Math.max(0,x(e.duration)??400),o=Math.max(0,x(e.delay)??0),s=e.easing===`spring`,c=s?b(e.bounce??30):y.includes(e.easing)?e.easing:`ease-out`,l=e.loop?`infinite`:`1`,u=e=>`${n} ${a}ms ${e} ${o}ms ${l} both`,d=u(c);return[`@keyframes ${n} { from { ${r} } to { ${i} } }`,`:root { ${w(t)}: ${d}; }`,`.${n} { animation: ${d}; }`,...s?[`@supports not (animation-timing-function: linear(0, 1)) { :root { ${w(t)}: ${u(`ease-out`)}; } .${n} { animation: ${u(`ease-out`)}; } }`]:[]].join(`
|
|
8
|
+
`+e.stack}}var he=Object.prototype.hasOwnProperty,ge=t.unstable_scheduleCallback,_e=t.unstable_cancelCallback,ve=t.unstable_shouldYield,ye=t.unstable_requestPaint,be=t.unstable_now,xe=t.unstable_getCurrentPriorityLevel,Se=t.unstable_ImmediatePriority,Ce=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,Te=t.unstable_LowPriority,Ee=t.unstable_IdlePriority,De=t.log,Oe=t.unstable_setDisableYieldValue,ke=null,Ae=null;function je(e){if(typeof De==`function`&&Oe(e),Ae&&typeof Ae.setStrictMode==`function`)try{Ae.setStrictMode(ke,e)}catch{}}var Me=Math.clz32?Math.clz32:Fe,Ne=Math.log,Pe=Math.LN2;function Fe(e){return e>>>=0,e===0?32:31-(Ne(e)/Pe|0)|0}var W=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function He(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function We(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Me(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ke(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ke(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Me(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function qe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Je(e,t){var n=t&-t;return n=n&42?1:Ye(n),(n&(e.suspendedLanes|t))===0?n:0}function Ye(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ze(){var e=L.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function Qe(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var $e=Math.random().toString(36).slice(2),et=`__reactFiber$`+$e,tt=`__reactProps$`+$e,nt=`__reactContainer$`+$e,rt=`__reactEvents$`+$e,it=`__reactListeners$`+$e,at=`__reactHandles$`+$e,ot=`__reactResources$`+$e,st=`__reactMarker$`+$e;function ct(e){delete e[et],delete e[tt],delete e[rt],delete e[it],delete e[at]}function lt(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nt]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[et])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function ut(e){if(e=e[et]||e[nt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ft(e){var t=e[ot];return t||=e[ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function pt(e){e[st]=!0}var mt=new Set,ht={};function gt(e,t){_t(e,t),_t(e+`Capture`,t)}function _t(e,t){for(ht[e]=t,e=0;e<t.length;e++)mt.add(t[e])}var vt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),yt={},bt={};function xt(e){return he.call(bt,e)?!0:he.call(yt,e)?!1:vt.test(e)?bt[e]=!0:(yt[e]=!0,!1)}function St(e,t,n){if(xt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ct(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Tt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Et(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ot(e){if(!e._valueTracker){var t=Et(e)?`checked`:`value`;e._valueTracker=Dt(e,t,``+e[t])}}function kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Et(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function At(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var jt=/[\n"\\]/g;function Mt(e){return e.replace(jt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Nt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Tt(t)):e.value!==``+Tt(t)&&(e.value=``+Tt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ft(e,o,Tt(n)):Ft(e,o,Tt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Tt(s):e.removeAttribute(`name`)}function Pt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ot(e);return}n=n==null?``:``+Tt(n),t=t==null?n:``+Tt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ot(e)}function Ft(e,t,n){t===`number`&&At(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function It(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lt(e,t,n){if(t!=null&&(t=``+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Tt(n)}function Rt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(F(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=Tt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ot(e)}function zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Vt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Bt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Ht(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Vt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Vt(e,a,t[a])}function Ut(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Wt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Gt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Kt(e){return Gt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function qt(){}var Jt=null;function Yt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xt=null,Zt=null;function Qt(e){var t=ut(e);if(t&&(e=t.stateNode)){var n=e[tt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Nt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Mt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[tt]||null;if(!i)throw Error(s(90));Nt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&kt(r)}break a;case`textarea`:Lt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&It(e,!!n.multiple,t,!1)}}}var $t=!1;function en(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(Xt!==null||Zt!==null)&&(vu(),Xt&&(t=Xt,e=Zt,Zt=Xt=null,Qt(t),e)))for(t=0;t<e.length;t++)Qt(e[t])}}function tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[tt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(s(231,t,typeof n));return n}var nn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,"passive",{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return cn=i.slice(e,1<r?1-r:void 0)}function un(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function dn(){return!0}function fn(){return!1}function pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?dn:fn,this.isPropagationStopped=fn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=dn)},persist:function(){},isPersistent:dn}),t}var mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=pn(mn),gn=h({},mn,{view:0,detail:0}),_n=pn(gn),vn,yn,bn,xn=h({},gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==bn&&(bn&&e.type===`mousemove`?(vn=e.screenX-bn.screenX,yn=e.screenY-bn.screenY):yn=vn=0,bn=e),vn)},movementY:function(e){return`movementY`in e?e.movementY:yn}}),Sn=pn(xn),Cn=pn(h({},xn,{dataTransfer:0})),wn=pn(h({},gn,{relatedTarget:0})),Tn=pn(h({},mn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=pn(h({},mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Dn=pn(h({},mn,{data:0})),On={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},kn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},An={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=An[e])?!!t[e]:!1}function Mn(){return jn}var Nn=pn(h({},gn,{key:function(e){if(e.key){var t=On[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=un(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?kn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return e.type===`keypress`?un(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?un(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Pn=pn(h({},xn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fn=pn(h({},gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),In=pn(h({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=pn(h({},xn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Rn=pn(h({},mn,{newState:0,oldState:0})),zn=[9,13,27,32],Bn=nn&&`CompositionEvent`in window,Vn=null;nn&&`documentMode`in document&&(Vn=document.documentMode);var G=nn&&`TextEvent`in window&&!Vn,K=nn&&(!Bn||Vn&&8<Vn&&11>=Vn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function q(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function qn(e,t){if(Kn)return e===`compositionend`||!Bn&&Wn(e,t)?(e=ln(),cn=sn=on=null,Kn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return K&&t.locale!==`ko`?null:t.data;default:return null}}var Jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Jn[e.type]:t===`textarea`}function Xn(e,t,n,r){Xt?Zt?Zt.push(r):Zt=[r]:Xt=r,t=Td(t,`onChange`),0<t.length&&(n=new hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Qn=null;function $n(e){vd(e,0)}function er(e){if(kt(dt(e)))return e}function tr(e,t){if(e===`change`)return t}var nr=!1;if(nn){var rr;if(nn){var ir=`oninput`in document;if(!ir){var ar=document.createElement(`div`);ar.setAttribute(`oninput`,`return;`),ir=typeof ar.oninput==`function`}rr=ir}else rr=!1;nr=rr&&(!document.documentMode||9<document.documentMode)}function or(){Zn&&(Zn.detachEvent(`onpropertychange`,sr),Qn=Zn=null)}function sr(e){if(e.propertyName===`value`&&er(Qn)){var t=[];Xn(t,Qn,e,Yt(e)),en($n,t)}}function cr(e,t,n){e===`focusin`?(or(),Zn=t,Qn=n,Zn.attachEvent(`onpropertychange`,sr)):e===`focusout`&&or()}function lr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return er(Qn)}function ur(e,t){if(e===`click`)return er(t)}function dr(e,t){if(e===`input`||e===`change`)return er(t)}function fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var pr=typeof Object.is==`function`?Object.is:fr;function mr(e,t){if(pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!he.call(t,i)||!pr(e[i],t[i]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gr(e,t){var n=hr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=hr(n)}}function _r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var br=nn&&`documentMode`in document&&11>=document.documentMode,xr=null,Sr=null,Cr=null,wr=!1;function Tr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wr||xr==null||xr!==At(r)||(r=xr,`selectionStart`in r&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cr&&mr(Cr,r)||(Cr=r,r=Td(Sr,`onSelect`),0<r.length&&(t=new hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Dr={animationend:Er(`Animation`,`AnimationEnd`),animationiteration:Er(`Animation`,`AnimationIteration`),animationstart:Er(`Animation`,`AnimationStart`),transitionrun:Er(`Transition`,`TransitionRun`),transitionstart:Er(`Transition`,`TransitionStart`),transitioncancel:Er(`Transition`,`TransitionCancel`),transitionend:Er(`Transition`,`TransitionEnd`)},Or={},kr={};nn&&(kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),`TransitionEvent`in window||delete Dr.transitionend.transition);function Ar(e){if(Or[e])return Or[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kr)return Or[e]=t[n];return e}var jr=Ar(`animationend`),Mr=Ar(`animationiteration`),Nr=Ar(`animationstart`),Pr=Ar(`transitionrun`),Fr=Ar(`transitionstart`),Ir=Ar(`transitioncancel`),Lr=Ar(`transitionend`),Rr=new Map,zr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);zr.push(`scrollEnd`);function Br(e,t){Rr.set(e,t),gt(t,[e])}var Vr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Hr=[],Ur=0,Wr=0;function Gr(){for(var e=Ur,t=Wr=Ur=0;t<e;){var n=Hr[t];Hr[t++]=null;var r=Hr[t];Hr[t++]=null;var i=Hr[t];Hr[t++]=null;var a=Hr[t];if(Hr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Yr(n,i,a)}}function Kr(e,t,n,r){Hr[Ur++]=e,Hr[Ur++]=t,Hr[Ur++]=n,Hr[Ur++]=r,Wr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function qr(e,t,n,r){return Kr(e,t,n,r),Xr(e)}function Jr(e,t){return Kr(e,null,null,t),Xr(e)}function Yr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Me(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Xr(e){if(50<lu)throw lu=0,uu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zr={};function Qr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,n,r){return new Qr(e,t,n,r)}function ei(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ti(e,t){var n=e.alternate;return n===null?(n=$r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ni(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ri(e,t,n,r,i,a){var o=0;if(r=e,typeof e==`function`)ei(e)&&(o=1);else if(typeof e==`string`)o=Uf(e,n,U.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=$r(31,n,t,i),e.elementType=k,e.lanes=a,e;case y:return ii(n.children,i,a,t);case b:o=8,i|=24;break;case x:return e=$r(12,n,t,i|2),e.elementType=x,e.lanes=a,e;case T:return e=$r(13,n,t,i),e.elementType=T,e.lanes=a,e;case E:return e=$r(19,n,t,i),e.elementType=E,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:o=10;break a;case S:o=9;break a;case w:o=11;break a;case D:o=14;break a;case O:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=$r(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ii(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function ai(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function oi(e){var t=$r(18,null,null,0);return t.stateNode=e,t}function si(e,t,n){return t=$r(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ci=new WeakMap;function li(e,t){if(typeof e==`object`&&e){var n=ci.get(e);return n===void 0?(t={value:e,source:t,stack:me(t)},ci.set(e,t),t):n}return{value:e,source:t,stack:me(t)}}var ui=[],di=0,fi=null,pi=0,mi=[],hi=0,gi=null,_i=1,vi=``;function yi(e,t){ui[di++]=pi,ui[di++]=fi,fi=e,pi=t}function bi(e,t,n){mi[hi++]=_i,mi[hi++]=vi,mi[hi++]=gi,gi=e;var r=_i;e=vi;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var a=32-Me(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,_i=1<<32-Me(t)+i|n<<i|r,vi=a+e}else _i=1<<a|n<<i|r,vi=e}function xi(e){e.return!==null&&(yi(e,1),bi(e,1,0))}function Si(e){for(;e===fi;)fi=ui[--di],ui[di]=null,pi=ui[--di],ui[di]=null;for(;e===gi;)gi=mi[--hi],mi[hi]=null,vi=mi[--hi],mi[hi]=null,_i=mi[--hi],mi[hi]=null}function Ci(e,t){mi[hi++]=_i,mi[hi++]=vi,mi[hi++]=gi,_i=t.id,vi=t.overflow,gi=e}var wi=null,Ti=null,J=!1,Ei=null,Di=!1,Oi=Error(s(519));function ki(e){throw Fi(li(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Oi}function Ai(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[et]=e,t[tt]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Pt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Rt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||ki(e,!0)}function ji(e){for(wi=e.return;wi;)switch(wi.tag){case 5:case 31:case 13:Di=!1;return;case 27:case 3:Di=!0;return;default:wi=wi.return}}function Mi(e){if(e!==wi)return!1;if(!J)return ji(e),J=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Ti&&ki(e),ji(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));Ti=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));Ti=uf(e)}else t===27?(t=Ti,Zd(e.type)?(e=lf,lf=null,Ti=e):Ti=t):Ti=wi?cf(e.stateNode.nextSibling):null;return!0}function Ni(){Ti=wi=null,J=!1}function Pi(){var e=Ei;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Ei=null),e}function Fi(e){Ei===null?Ei=[e]:Ei.push(e)}var Ii=ee(null),Li=null,Ri=null;function zi(e,t,n){H(Ii,t._currentValue),t._currentValue=n}function Bi(e){e._currentValue=Ii.current,V(Ii)}function Vi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Hi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Vi(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Vi(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Ui(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;pr(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===re.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}i=i.return}e!==null&&Hi(t,e,n,r),t.flags|=262144}function Wi(e){for(e=e.firstContext;e!==null;){if(!pr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gi(e){Li=e,Ri=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ki(e){return Ji(Li,e)}function qi(e,t){return Li===null&&Gi(e),Ji(e,t)}function Ji(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ri===null){if(e===null)throw Error(s(308));Ri=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ri=Ri.next=t;return n}var Yi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Xi=t.unstable_scheduleCallback,Zi=t.unstable_NormalPriority,Qi={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $i(){return{controller:new Yi,data:new Map,refCount:0}}function ea(e){e.refCount--,e.refCount===0&&Xi(Zi,function(){e.controller.abort()})}var ta=null,na=0,ra=0,ia=null;function aa(e,t){if(ta===null){var n=ta=[];na=0,ra=ud(),ia={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return na++,t.then(oa,oa),t}function oa(){if(--na===0&&ta!==null){ia!==null&&(ia.status=`fulfilled`);var e=ta;ta=null,ra=0,ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ca=I.S;I.S=function(e,t){Ql=be(),typeof t==`object`&&t&&typeof t.then==`function`&&aa(e,t),ca!==null&&ca(e,t)};var la=ee(null);function ua(){var e=la.current;return e===null?Fl.pooledCache:e}function da(e,t){t===null?H(la,la.current):H(la,t.pool)}function fa(){var e=ua();return e===null?null:{parent:Qi._currentValue,pool:e}}var pa=Error(s(460)),ma=Error(s(474)),ha=Error(s(542)),ga={then:function(){}};function _a(e){return e=e.status,e===`fulfilled`||e===`rejected`}function va(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qt,qt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Sa(e),e;default:if(typeof t.status==`string`)t.then(qt,qt);else{if(e=Fl,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Sa(e),e}throw ba=t,pa}}function ya(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ba=e,pa):e}}var ba=null;function xa(){if(ba===null)throw Error(s(459));var e=ba;return ba=null,e}function Sa(e){if(e===pa||e===ha)throw Error(s(483))}var Ca=null,wa=0;function Ta(e){var t=wa;return wa+=1,Ca===null&&(Ca=[]),va(Ca,e,t)}function Ea(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Da(e,t){throw t.$$typeof===g?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Oa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ti(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ai(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===O&&ya(a)===t.type)?(t=i(t,n.props),Ea(t,n),t.return=e,t):(t=ri(n.type,n.key,n.props,null,e.mode,r),Ea(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=si(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ii(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ai(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ri(t.type,t.key,t.props,null,e.mode,n),Ea(n,t),n.return=e,n;case v:return t=si(t,e.mode,n),t.return=e,t;case O:return t=ya(t),f(e,t,n)}if(F(t)||M(t))return t=ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ta(t),n);if(t.$$typeof===C)return f(e,qi(e,t),n);Da(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ya(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ta(n),r);if(n.$$typeof===C)return p(e,t,qi(e,n),r);Da(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ya(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ta(r),i);if(r.$$typeof===C)return m(e,t,n,qi(t,r),i);Da(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),J&&yi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return J&&yi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),J&&yi(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),J&&yi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return J&&yi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),J&&yi(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ya(l)===r.type){n(e,r.sibling),c=i(r,a.props),Ea(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=ii(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=ri(a.type,a.key,a.props,null,e.mode,c),Ea(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=si(a,e.mode,c),c.return=e,e=c}return o(e);case O:return a=ya(a),b(e,r,a,c)}if(F(a))return h(e,r,a,c);if(M(a)){if(l=M(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ta(a),c);if(a.$$typeof===C)return b(e,r,qi(e,a),c);Da(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=ai(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{wa=0;var i=b(e,t,n,r);return Ca=null,i}catch(t){if(t===pa||t===ha)throw t;var a=$r(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ka=Oa(!0),Aa=Oa(!1),ja=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Xr(e),Yr(e,null,n),t}return Kr(e,r,t,n),Xr(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ra=!1;function za(){if(Ra){var e=ia;if(e!==null)throw e}}function Ba(e,t,n,r){Ra=!1;var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Q&f)===f:(r&f)===f){f!==0&&f===ra&&(Ra=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:ja=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function Va(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function Ha(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Va(n[e],t)}var Ua=ee(null),Wa=ee(0);function Ga(e,t){e=Vl,H(Wa,e),H(Ua,t),Vl=e|t.baseLanes}function Ka(){H(Wa,Vl),H(Ua,Ua.current)}function qa(){Vl=Wa.current,V(Ua),V(Wa)}var Ja=ee(null),Ya=null;function Xa(e){var t=e.alternate;H(to,to.current&1),H(Ja,e),Ya===null&&(t===null||Ua.current!==null||t.memoizedState!==null)&&(Ya=e)}function Za(e){H(to,to.current),H(Ja,e),Ya===null&&(Ya=e)}function Qa(e){e.tag===22?(H(to,to.current),H(Ja,e),Ya===null&&(Ya=e)):$a(e)}function $a(){H(to,to.current),H(Ja,Ja.current)}function eo(e){V(Ja),Ya===e&&(Ya=null),V(to)}var to=ee(0);function no(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ro=0,Y=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(s(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return ro=a,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){I.H=Ms;var t=io!==null&&io.next!==null;if(ro=0,ao=io=Y=null,oo=!1,uo=0,fo=null,t)throw Error(s(300));e===null||Zs||(e=e.dependencies,e!==null&&Wi(e)&&(Zs=!0))}function vo(e,t,n,r){Y=e;var i=0;do{if(so&&(fo=null),uo=0,so=!1,25<=i)throw Error(s(301));if(i+=1,ao=io=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}I.H=Fs,a=t(n,r)}while(so);return a}function yo(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(Y.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}ro=0,ao=io=Y=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?Y.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=Y.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?Y.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw Y.alternate===null?Error(s(467)):Error(s(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?Y.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=va(fo,e,t),t=Y,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return Ki(e)}throw Error(s(438,String(e)))}function Oo(e){var t=null,n=Y.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Y.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=To(),Y.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ro&f)===f:(Q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ra&&(d=!0);else if((ro&p)===p){u=u.next,p===ra&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,o=a):l=l.next=f,Y.lanes|=p,Ul|=p;f=u.action,co&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,o=a):l=l.next=p,Y.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!pr(a,e.memoizedState)&&(Zs=!0,d&&(n=ia,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);pr(a,t.memoizedState)||(Zs=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function No(e,t,n){var r=Y,i=wo(),a=J;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!pr((io||i).memoizedState,n);if(o&&(i.memoizedState=n,Zs=!0),i=i.queue,is(Io.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,i,n,t),null),Fl===null)throw Error(s(349));a||ro&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t=To(),Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function Ro(e){var t=Jr(e,2);t!==null&&pu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,i){if(ks(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};I.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Ho(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(J){var n=Fl.formState;if(n!==null){a:{var r=Y;if(J){if(Ti){b:{for(var i=Ti,a=Di;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ti=cf(i.nextSibling),r=i.data===`F!`;break a}}ki(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,Y,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,Y,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,Y,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===pa?ha:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Y.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Y.updateQueue,t===null&&(t=To(),Y.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();Y.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(Y.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){Y.flags|=4;var t=Y.updateQueue;if(t===null)t=To(),Y.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Pl&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||ro&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),Y.lanes|=e,Ul|=e,n)}function hs(e,t,n,r){return pr(n,t)?n:Ua.current===null?!(ro&42)||ro&1073741824&&!(Q&261930)?(Zs=!0,e.memoizedState=n):(e=fu(),Y.lanes|=e,Ul|=e,t):(e=ms(e,n,r),pr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Os(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,sa(c,r),du(e)):Ds(e,t,r,du(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=ys(e).queue;gs(e,i,t,R,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},du())}function xs(){return Ki(Qf)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=Pa(n);var r=Fa(t,e,n);r!==null&&(pu(r,t,n),Ia(r,t,n)),t={cache:$i()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=qr(e,t,n,r),n!==null&&(pu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,du())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,pr(s,o))return Kr(e,t,i,0),Fl===null&&Gr(),!1}catch{}if(n=qr(e,t,i,r),n!==null)return pu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(s(479))}else t=qr(e,n,r,2),t!==null&&pu(t,e,2)}function ks(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var Ms={readContext:Ki,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:Ki,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Ki,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,Y,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,Y,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Y,i=Co();if(J){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Fl===null)throw Error(s(349));Q&127||Po(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,rs(Io.bind(null,r,a,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),n},useId:function(){var e=Co(),t=Fl.identifierPrefix;if(J){var n=vi,r=_i;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,Y,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,Y)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Pl&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Ki,use:Do,useCallback:fs,useContext:Ki,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Ki,use:Do,useCallback:fs,useContext:Ki,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=Pa(r);i.payload=t,n!=null&&(i.callback=n),t=Fa(e,i,r),t!==null&&(pu(t,e,r),Ia(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=Pa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Fa(e,i,r),t!==null&&(pu(t,e,r),Ia(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=Pa(n);r.tag=2,t!=null&&(r.callback=t),t=Fa(e,r,n),t!==null&&(pu(t,e,n),Ia(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!mr(n,r)||!mr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Vr(e)}function Hs(e){console.error(e)}function Us(e){Vr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Pa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Pa(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ui(t,n,i,!0),n=Ja.current,n!==null){switch(n.tag){case 31:case 13:return Ya===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ga?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,i)),!1;case 22:return n.flags|=65536,r===ga?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,i)),!1}throw Error(s(435,n.tag))}return Wu(e,r,i),Tu(),!1}if(J)return t=Ja.current,t===null?(r!==Oi&&(t=Error(s(423),{cause:r}),Fi(li(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=li(r,n),i=Ks(e.stateNode,r,i),La(e,i),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Oi&&(e=Error(s(422),{cause:r}),Fi(li(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=li(a,n),Jl===null?Jl=[a]:Jl.push(a),Hl!==4&&(Hl=2),t===null)return!0;r=li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ks(n.stateNode,r,e),La(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(tu===null||!tu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=qs(i),Js(i,e,n,r),La(n,i),!1}n=n.return}while(n!==null);return!1}var Xs=Error(s(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?Aa(t,null,n,r):ka(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Gi(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Sc(e,t,i)):(J&&s&&xi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ei(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ri(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Cc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?mr:n,n(o,r)&&e.ref===t.ref)return Sc(e,t,i)}return t.flags|=1,e=ti(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(mr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,Cc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Sc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&da(t,a===null?null:a.cachePool),a===null?Ka():Ga(t,a),Qa(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&da(t,null),Ka(),$a(t)):(da(t,a.cachePool),Ga(t,a),$a(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=ua();return a=a===null?null:{parent:Qi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&da(t,null),Ka(),Qa(t),e!==null&&Ui(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=_c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return ka(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,eo(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(J){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Za(t),(e=Ti)?(e=rf(e,Di),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gi===null?null:{id:_i,overflow:vi},retryLane:536870912,hydrationErrors:null},n=oi(e),n.return=t,t.child=n,wi=t,Ti=null)):e=null,e===null)throw ki(t);return t.lanes=536870912,null}return ac(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Za(t),i)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Zs||Ui(e,t,n,!1),i=(n&e.childLanes)!==0,Zs||i){if(r=Fl,r!==null&&(o=Je(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Jr(e,o),pu(r,e,o),Xs;Tu(),t=oc(e,t,n)}else e=a.treeContext,Ti=cf(o.nextSibling),wi=t,J=!0,Ei=null,Di=!1,e!==null&&Ci(t,e),t=ac(t,r),t.flags|=4096;return t}return e=ti(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Gi(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Sc(e,t,i)):(J&&r&&xi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Gi(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Sc(e,t,a)):(J&&r&&xi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Gi(t),t.stateNode===null){var a=Zr,o=n.contextType;typeof o==`object`&&o&&(a=Ki(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ma(t),o=n.contextType,a.context=typeof o==`object`&&o?Ki(o):Zr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ba(t,r,a,i),za(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Zr,typeof u==`object`&&u&&(o=Ki(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),ja=!1;var f=t.memoizedState;a.state=f,Ba(t,r,a,i),za(),l=t.memoizedState,s||f!==l||ja?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=ja||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Na(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Zr,typeof l==`object`&&l&&(c=Ki(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),ja=!1,f=t.memoizedState,a.state=f,Ba(t,r,a,i),za();var p=t.memoizedState;o!==d||f!==p||ja||e!==null&&e.dependencies!==null&&Wi(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=ja||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Wi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ka(t,e.child,null,i),t.child=ka(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Sc(e,t,i),e}function fc(e,t,n,r){return Ni(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:fa()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function X(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(to.current&2)!=0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!=0,t.flags&=-33,e===null){if(J){if(i?Xa(t):$a(t),(e=Ti)?(e=rf(e,Di),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gi===null?null:{id:_i,overflow:vi},retryLane:536870912,hydrationErrors:null},n=oi(e),n.return=t,t.child=n,wi=t,Ti=null)):e=null,e===null)throw ki(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?($a(t),i=t.mode,c=_c({mode:`hidden`,children:c},i),r=ii(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,o,n),t.memoizedState=pc,rc(null,r)):(Xa(t),gc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(Xa(t),t.flags&=-257,t=vc(e,t,n)):t.memoizedState===null?($a(t),c=r.fallback,i=t.mode,r=_c({mode:`visible`,children:r.children},i),c=ii(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ka(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,o,n),t.memoizedState=pc,t=rc(null,r)):($a(t),t.child=e.child,t.flags|=128,t=null);else if(Xa(t),of(c)){if(o=c.nextSibling&&c.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(s(419)),r.stack=``,r.digest=o,Fi({value:r,source:null,stack:null}),t=vc(e,t,n)}else if(Zs||Ui(e,t,n,!1),o=(n&e.childLanes)!==0,Zs||o){if(o=Fl,o!==null&&(r=Je(o,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Jr(e,r),pu(o,e,r),Xs;af(c)||Tu(),t=vc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ti=cf(c.nextSibling),wi=t,J=!0,Ei=null,Di=!1,e!==null&&Ci(t,e),t=gc(t,r.children),t.flags|=4096);return t}return i?($a(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ti(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ii(c,i,n,null),c.flags|=2):c=ti(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(i=c.cachePool,i===null?i=fa():(l=Qi._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=hc(e,o,n),t.memoizedState=pc,rc(e.child,r)):(Xa(t),n=e.child,e=n.sibling,n=ti(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function gc(e,t){return t=_c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function _c(e,t){return e=$r(22,e,null,t),e.lanes=0,e}function vc(e,t,n){return ka(t,e.child,null,n),e=gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vi(e.return,t,n)}function bc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=to.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,H(to,o),Qs(e,t,r,n),r=J?pi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yc(e,n,t);else if(e.tag===19)yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&no(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&no(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bc(t,!0,n,null,a,r);break;case`together`:bc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ui(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Wi(e))):!0}function wc(e,t,n){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),zi(t,Qi,e.memoizedState.cache),Ni();break;case 27:case 5:oe(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:zi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Za(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Xa(t),e=Sc(e,t,n),e===null?null:e.sibling):X(e,t,n):(Xa(t),t.flags|=128,null);Xa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ui(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return xc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),H(to,to.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:zi(t,Qi,e.memoizedState.cache)}return Sc(e,t,n)}function Tc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!Cc(e,n)&&!(t.flags&128))return Zs=!1,wc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,J&&t.flags&1048576&&bi(t,pi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ya(t.elementType),t.type=e,typeof e==`function`)ei(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(i===D){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=P(e)||e,Error(s(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Bs(r,t.pendingProps),dc(e,t,r,i,n);case 3:a:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Na(e,t),Ba(t,r,null,n);var o=t.memoizedState;if(r=o.cache,zi(t,Qi,r),r!==a.cache&&Hi(t,[Qi],n,!0),za(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==i){i=li(Error(s(424)),t),Fi(i),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ti=cf(e.firstChild),wi=t,J=!0,Ei=null,Di=!0,n=Aa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ni(),r===i){t=Sc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:J||(n=t.type,e=t.pendingProps,r=Bd(ne.current).createElement(n),r[et]=t,r[tt]=e,Pd(r,n,e),pt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oe(t),e===null&&J&&(r=t.stateNode=ff(t.type,t.pendingProps,ne.current),wi=t,Di=!0,i=Ti,Zd(t.type)?(lf=i,Ti=cf(r.firstChild)):Ti=i),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&J&&((i=r=Ti)&&(r=tf(r,t.type,t.pendingProps,Di),r===null?i=!1:(t.stateNode=r,wi=t,Ti=cf(r.firstChild),Di=!1,i=!0)),i||ki(t)),oe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Ud(i,a)?r=null:o!==null&&Ud(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=go(e,t,yo,null,null,n),Qf._currentValue=i),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&J&&((e=n=Ti)&&(n=nf(n,t.pendingProps,Di),n===null?e=!1:(t.stateNode=n,wi=t,Ti=null,e=!0)),e||ki(t)),null;case 13:return X(e,t,n);case 4:return ie(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ka(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,zi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Gi(t),i=Ki(i),r=r(i),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return xc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Gi(t),r=Ki(Qi),e===null?(i=ua(),i===null&&(i=Fl,a=$i(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ma(t),zi(t,Qi,i)):((e.lanes&n)!==0&&(Na(e,t),Ba(t,null,null,n),za()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,zi(t,Qi,r),r!==i.cache&&Hi(t,[Qi],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),zi(t,Qi,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Ec(e){e.flags|=4}function Dc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw ba=ga,ma}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Su())e.flags|=8192;else throw ba=ga,ma}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:He(),e.lanes|=t,ql|=t)}function Ac(e,t){if(!J)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mc(e,t,n){var r=t.pendingProps;switch(Si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jc(t),null;case 1:return jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Bi(Qi),ae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?Ec(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pi())),jc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Ec(t),a===null?(jc(t),Dc(t,i,null,r,n)):(jc(t),Oc(t,a))):a?a===e.memoizedState?(jc(t),t.flags&=-16777217):(Ec(t),jc(t),Oc(t,a)):(e=e.memoizedProps,e!==r&&Ec(t),jc(t),Dc(t,i,e,r,n)),null;case 27:if(se(t),n=ne.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return jc(t),null}e=U.current,Mi(t)?Ai(t,e):(e=ff(i,r,n),t.stateNode=e,Ec(t))}return jc(t),null;case 5:if(se(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return jc(t),null}if(a=U.current,Mi(t))Ai(t,a);else{var o=Bd(ne.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[et]=t,a[tt]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ne.current,Mi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=wi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||ki(t,!0)}else e=Bd(e).createTextNode(r),e[et]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Mi(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[et]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(eo(t),t):(eo(t),null);if(t.flags&128)throw Error(s(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Mi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[et]=t}else Ni(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),i=!1}else i=Pi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(eo(t),t):(eo(t),null)}return eo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return ae(),e===null&&xd(t.stateNode.containerInfo),jc(t),null;case 10:return Bi(t.type),jc(t),null;case 19:if(V(to),r=t.memoizedState,r===null)return jc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Ac(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=no(e),a!==null){for(t.flags|=128,Ac(r,!1),e=a.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ni(n,e),n=n.sibling;return H(to,to.current&1|2),J&&yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&be()>$l&&(t.flags|=128,i=!0,Ac(r,!1),t.lanes=4194304)}else{if(!i)if(e=no(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!J)return jc(t),null}else 2*be()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,i=!0,Ac(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=be(),e.sibling=null,n=to.current,H(to,i?n&1|2:n&1),J&&yi(t,r.treeForkCount),e);case 22:case 23:return eo(t),qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&V(la),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Bi(Qi),jc(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Nc(e,t){switch(Si(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bi(Qi),ae(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return se(t),null;case 31:if(t.memoizedState!==null){if(eo(t),t.alternate===null)throw Error(s(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(to),null;case 4:return ae(),null;case 10:return Bi(t.type),null;case 22:case 23:return eo(t),qa(),e!==null&&V(la),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bi(Qi),null;case 25:return null;default:return null}}function Pc(e,t){switch(Si(t),t.tag){case 3:Bi(Qi),ae();break;case 26:case 27:case 5:se(t);break;case 4:ae();break;case 31:t.memoizedState!==null&&eo(t);break;case 13:eo(t);break;case 19:V(to);break;case 10:Bi(t.type);break;case 22:case 23:eo(t),qa(),e!==null&&V(la);break;case 24:Bi(Qi)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ha(t,n)}catch(t){Uu(e,e.return,t)}}}function Rc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[tt]=t}catch(t){Uu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[et]=e,t[tt]=n}catch(t){Uu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Rd=sp,e=vr(e),yr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Bs(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Qc=e;break}Qc=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:hl(e,n),r&4&&Fc(5,n);break;case 1:if(hl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}r&64&&Lc(n),r&512&&zc(n,n.return);break;case 3:if(hl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ha(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&qc(n);case 26:case 5:hl(e,n),t===null&&r&4&&Vc(n),r&512&&zc(n,n.return);break;case 12:hl(e,n);break;case 31:hl(e,n),r&4&&ol(e,n);break;case 13:hl(e,n),r&4&&sl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Jc,!r){t=t!==null&&t.memoizedState!==null||Yc,i=Jc;var a=Yc;Jc=r,(Yc=t)&&!a?_l(e,n,(n.subtreeFlags&8772)!=0):hl(e,n),Jc=i,Yc=a}break;case 30:break;default:hl(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ct(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nl=null,rl=!1;function il(e,t,n){for(n=n.child;n!==null;)al(e,t,n),n=n.sibling}function al(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount==`function`)try{Ae.onCommitFiberUnmount(ke,n)}catch{}switch(n.tag){case 26:Yc||Bc(n,t),il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Yc||Bc(n,t);var r=nl,i=rl;Zd(n.type)&&(nl=n.stateNode,rl=!1),il(e,t,n),pf(n.stateNode),nl=r,rl=i;break;case 5:Yc||Bc(n,t);case 6:if(r=nl,i=rl,nl=null,il(e,t,n),nl=r,rl=i,nl!==null)if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}break;case 18:nl!==null&&(rl?(e=nl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,il(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Ic(2,n,t),Yc||Ic(4,n,t),il(e,t,n);break;case 1:Yc||(Bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rc(n,t,r)),il(e,t,n);break;case 21:il(e,t,n);break;case 22:Yc=(r=Yc)||n.memoizedState!==null,il(e,t,n),Yc=r;break;default:il(e,t,n)}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function cl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zc),t;default:throw Error(s(435,e.tag))}}function ll(e,t){var n=cl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ul(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,o=t,c=o;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(s(160));al(a,o,i),nl=null,rl=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fl(t,e),t=t.sibling}var dl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ul(t,e),pl(e),r&4&&(Ic(3,e,e.return),Fc(3,e),Ic(5,e,e.return));break;case 1:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&64&&Jc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=dl;if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[st]||a[et]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Pd(a,r,n),a[et]=e,pt(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;case`meta`:if(o=Vf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;default:throw Error(s(468,r))}a[et]=e,pt(a),r=a}e.stateNode=r}else Hf(i,e.type,e.stateNode);else e.stateNode=If(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Hf(i,e.type,e.stateNode):If(i,r,e.memoizedProps))}break;case 27:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),n!==null&&r&4&&Hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),e.flags&32){i=e.stateNode;try{zt(i,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Hc(e,i,n===null?i:n.memoizedProps)),r&1024&&(Xc=!0);break;case 6:if(ul(t,e),pl(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,i=dl,dl=gf(t.containerInfo),ul(t,e),dl=i,pl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Xc&&(Xc=!1,ml(e));break;case 4:r=dl,dl=gf(e.stateNode.containerInfo),ul(t,e),pl(e),dl=r;break;case 12:ul(t,e),pl(e);break;case 31:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 13:ul(t,e),pl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=be()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Jc,d=Yc;if(Jc=u||i,Yc=d||l,ul(t,e),Yc=d,Jc=u,pl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Jc||Yc||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ll(e,n))));break;case 19:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 30:break;case 21:break;default:ul(t,e),pl(e)}}function pl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Uc(r)){n=r;break}r=r.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode;Kc(e,Wc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(zt(a,``),n.flags&=-33),Kc(e,Wc(e),a);break;case 3:case 4:var o=n.stateNode.containerInfo;Gc(e,Wc(e),o);break;default:throw Error(s(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ml(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ml(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ic(4,t,t.return),gl(t);break;case 1:Bc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rc(t,t.return,n),gl(t);break;case 27:pf(t.stateNode);case 26:case 5:Bc(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function _l(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:_l(i,a,n),Fc(4,a);break;case 1:if(_l(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Va(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Lc(a),zc(a,a.return);break;case 27:qc(a);case 26:case 5:_l(i,a,n),n&&r===null&&o&4&&Vc(a),zc(a,a.return);break;case 12:_l(i,a,n);break;case 31:_l(i,a,n),n&&o&4&&ol(i,a);break;case 13:_l(i,a,n),n&&o&4&&sl(i,a);break;case 22:a.memoizedState===null&&_l(i,a,n),zc(a,a.return);break;case 30:break;default:_l(i,a,n)}t=t.sibling}}function vl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ea(n))}function yl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ea(e))}function bl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,n,r),i&2048&&Fc(9,t);break;case 1:bl(e,t,n,r);break;case 3:bl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ea(e)));break;case 12:if(i&2048){bl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else bl(e,t,n,r);break;case 31:bl(e,t,n,r);break;case 13:bl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?bl(e,t,n,r):(a._visibility|=2,Sl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?bl(e,t,n,r):Cl(e,t),i&2048&&vl(o,t);break;case 24:bl(e,t,n,r),i&2048&&yl(t.alternate,t);break;default:bl(e,t,n,r)}}function Sl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Sl(a,o,s,c,i),Fc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Sl(a,o,s,c,i)):u._visibility&2?Sl(a,o,s,c,i):Cl(a,o),i&&l&2048&&vl(o.alternate,o);break;case 24:Sl(a,o,s,c,i),i&&l&2048&&yl(o.alternate,o);break;default:Sl(a,o,s,c,i)}t=t.sibling}}function Cl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Cl(n,r),i&2048&&vl(r.alternate,r);break;case 24:Cl(n,r),i&2048&&yl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var wl=8192;function Tl(e,t,n){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)El(e,t,n),e=e.sibling}function El(e,t,n){switch(e.tag){case 26:Tl(e,t,n),e.flags&wl&&e.memoizedState!==null&&Gf(n,dl,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,n);break;case 3:case 4:var r=dl;dl=gf(e.stateNode.containerInfo),Tl(e,t,n),dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=wl,wl=16777216,Tl(e,t,n),wl=r):Tl(e,t,n));break;default:Tl(e,t,n)}}function Dl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kl(e),e=e.sibling}function kl(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&Ic(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Al(e)):Ol(e);break;default:Ol(e)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ic(8,t,t.return),Al(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Al(t));break;default:Al(t)}e=e.sibling}}function jl(e,t){for(;Qc!==null;){var n=Qc;switch(n.tag){case 0:case 11:case 15:Ic(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ea(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qc=r;else a:for(n=e;Qc!==null;){r=Qc;var i=r.sibling,a=r.return;if(tl(r),r===n){Qc=null;break a}if(i!==null){i.return=a,Qc=i;break a}Qc=a}}}var Ml={getCacheForType:function(e){var t=Ki(Qi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ki(Qi).controller.signal}},Nl=typeof WeakMap==`function`?WeakMap:Map,Pl=0,Fl=null,Z=null,Q=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Pl&2&&Q!==0?Q&-Q:I.T===null?Ze():ud()}function fu(){if(Kl===0)if(!(Q&536870912)||J){var e=Ie;Ie<<=1,!(Ie&3932160)&&(Ie=262144),Kl=e}else Kl=536870912;return e=Ja.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Fl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Q,Kl,!1)),We(e,n),(!(Pl&2)||e!==Fl)&&(e===Fl&&(!(Pl&2)&&(Wl|=n),Hl===4&&_u(e,Q,Kl,!1)),nd(e))}function mu(e,t,n){if(Pl&6)throw Error(s(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Be(e,t),i=r?Ou(e,t):Eu(e,t,!0),a=r;do{if(i===0){zl&&!r&&_u(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!gu(n)){i=Eu(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,o).flags|=256),o=Eu(c,o,!1),o!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=a,Wl|=a,i=4;break a}a=Yl,Yl=i,a!==null&&(Yl===null?Yl=a:Yl.push.apply(Yl,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Zl+300-be(),10<i)){if(_u(r,t,Kl,!Rl),ze(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,a,`Throttled`,-0,0),i);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,a,null,-0,0)}}break}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},El(t,a,d);var m=(a&62914560)===a?Zl-be():(a&4194048)===a?Ql-be():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!pr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Me(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ke(e,n,t)}function vu(){return Pl&6?!0:(rd(0,!1),!1)}function yu(){if(Z!==null){if(Il===0)var e=Z.return;else e=Z,Ri=Li=null,So(e),Ca=null,wa=0,e=Z;for(;e!==null;)Pc(e.alternate,e),e=e.return;Z=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Fl=e,Z=n=ti(e.current,null),Q=t,Il=0,Ll=null,Rl=!1,zl=Be(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Me(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,Gr(),n}function xu(e,t){Y=null,I.H=Ms,t===pa||t===ha?(t=xa(),Il=3):t===ma?(t=xa(),Il=4):Il=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Z===null&&(Hl=1,Ws(e,li(t,e.current)))}function Su(){var e=Ja.current;return e===null?!0:(Q&4194048)===Q?Ya===null:(Q&62914560)===Q||Q&536870912?e===Ya:!1}function Cu(){var e=I.H;return I.H=Ms,e===null?Ms:e}function wu(){var e=I.A;return I.A=Ml,e}function Tu(){Hl=4,Rl||(Q&4194048)!==Q&&Ja.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Fl===null||_u(Fl,Q,Kl,!1)}function Eu(e,t,n){var r=Pl;Pl|=2;var i=Cu(),a=wu();(Fl!==e||Q!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Z!==null){var s=Z,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Ja.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ri=Li=null,Pl=r,I.H=i,I.A=a,Z===null&&(Fl=null,Q=0,Gr()),o}function Du(){for(;Z!==null;)Au(Z)}function Ou(e,t){var n=Pl;Pl|=2;var r=Cu(),i=wu();Fl!==e||Q!==t?(eu=null,$l=be()+500,bu(e,t)):zl=Be(e,t);a:do try{if(Il!==0&&Z!==null){t=Z;var a=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,a,1);break;case 2:case 9:if(_a(a)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Fl!==e||(Il=7),nd(e)},a.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:_a(a)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,a,7));break;case 5:var o=null;switch(Z.tag){case 26:o=Z.memoizedState;case 5:case 27:var c=Z;if(o?Wf(o):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Z=l;else{var u=c.return;u===null?Z=null:(Z=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,a,5);break;case 6:Il=0,Ll=null,Mu(e,t,a,6);break;case 8:yu(),Hl=6;break a;default:throw Error(s(462))}}ku();break}catch(t){xu(e,t)}while(1);return Ri=Li=null,I.H=r,I.A=i,Pl=n,Z===null?(Fl=null,Q=0,Gr(),Hl):0}function ku(){for(;Z!==null&&!ve();)Au(Z)}function Au(e){var t=Tc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:So(t);default:Pc(n,t),t=Z=ni(t,Vl),t=Tc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Z=t}function Mu(e,t,n,r){Ri=Li=null,So(t),Ca=null,wa=0;var i=t.return;try{if(Ys(e,i,t,n,Q)){Hl=1,Ws(e,li(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;Hl=1,Ws(e,li(n,e.current)),Z=null;return}t.flags&32768?(J||r===1?e=!0:zl||Q&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ja.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Mc(t.alternate,t,Vl);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Hl=6,Z=null}function Fu(e,t,n,r,i,a,o,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Pl&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(a=t.lanes|t.childLanes,a|=Wr,Ge(e,n,a,o,c,l),e===Fl&&(Z=Fl=null,Q=0),iu=t,ru=e,au=n,ou=a,su=i,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(we,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,i=L.p,L.p=2,o=Pl,Pl|=4;try{$c(e,t,n)}finally{Pl=o,L.p=i,I.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Pl;Pl|=4;try{fl(t,e);var a=zd,o=vr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&_r(s.ownerDocument.documentElement,s)){if(c!==null&&yr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=gr(s,h),v=gr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{Pl=i,L.p=r,I.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Pl;Pl|=4;try{el(e,t.alternate,t)}finally{Pl=i,L.p=r,I.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,ye();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),Xe(n),t=t.stateNode,Ae&&typeof Ae.onCommitFiberRoot==`function`)try{Ae.onCommitFiberRoot(ke,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ea(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=Xe(au),r=I.T,i=L.p;try{L.p=32>n?32:n,I.T=null,n=su,su=null;var a=ru,o=au;if(nu=0,iu=ru=null,au=0,Pl&6)throw Error(s(331));var c=Pl;if(Pl|=4,kl(a.current),xl(a,a.current,o,n),Pl=c,rd(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot==`function`)try{Ae.onPostCommitFiberRoot(ke,a)}catch{}return!0}finally{L.p=i,I.T=r,zu(e,t)}}function Hu(e,t,n){t=li(n,t),t=Ks(e.stateNode,t,2),e=Fa(e,t,2),e!==null&&(We(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=li(n,e),n=qs(2),r=Fa(t,n,2),r!==null&&(Js(n,r,t,e),We(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Q&n)===n&&(Hl===4||Hl===3&&(Q&62914560)===Q&&300>be()-Zl?!(Pl&2)&&bu(e,0):Gl|=n,ql===Q&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=He()),e=Jr(e,t),e!==null&&(We(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return ge(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Me(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Q,a=ze(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=be(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Me(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ve(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Q,n=ze(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&_e(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Be(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&_e(r),Xe(n)){case 2:case 8:n=Ce;break;case 32:n=we;break;case 268435456:n=Ee;break;default:n=we}return r=sd.bind(null,e),n=ge(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&_e(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Q;return r=ze(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,be()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Pl&6?ge(Se,id):ad()})}function ud(){if(td===0){var e=ra;e===0&&(e=W,W<<=1,!(W&261888)&&(W=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Kt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[tt]||null).action),o=r.submitter;o&&(t=(t=o[tt]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<zr.length;md++){var hd=zr[md];Br(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Br(jr,`onAnimationEnd`),Br(Mr,`onAnimationIteration`),Br(Nr,`onAnimationStart`),Br(`dblclick`,`onDoubleClick`),Br(`focusin`,`onFocus`),Br(`focusout`,`onBlur`),Br(Pr,`onTransitionRun`),Br(Fr,`onTransitionStart`),Br(Ir,`onTransitionCancel`),Br(Lr,`onTransitionEnd`),_t(`onMouseEnter`,[`mouseout`,`mouseover`]),_t(`onMouseLeave`,[`mouseout`,`mouseover`]),_t(`onPointerEnter`,[`pointerout`,`pointerover`]),_t(`onPointerLeave`,[`pointerout`,`pointerover`]),gt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),gt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),gt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),gt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Vr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Vr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[rt];n===void 0&&(n=t[rt]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,mt.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!rn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=lt(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}en(function(){var r=a,i=Yt(n),o=[];a:{var s=Rr.get(e);if(s!==void 0){var c=hn,u=e;switch(e){case`keypress`:if(un(n)===0)break a;case`keydown`:case`keyup`:c=Nn;break;case`focusin`:u=`focus`,c=wn;break;case`focusout`:u=`blur`,c=wn;break;case`beforeblur`:case`afterblur`:c=wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Sn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Cn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Fn;break;case jr:case Mr:case Nr:c=Tn;break;case Lr:c=In;break;case`scroll`:case`scrollend`:c=_n;break;case`wheel`:c=Ln;break;case`copy`:case`cut`:case`paste`:c=En;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Pn;break;case`toggle`:case`beforetoggle`:c=Rn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=tn(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Jt&&(u=n.relatedTarget||n.fromElement)&&(lt(u)||u[nt]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(u=n.relatedTarget||n.toElement,c=r,u=u?lt(u):null,u!==null&&(f=l(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(c=null,u=r),c!==u)){if(d=Sn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Pn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?s:dt(c),h=u==null?s:dt(u),s=new d(g,m+`leave`,c,n,i),s.target=f,s.relatedTarget=h,g=null,lt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,c&&u)b:{for(d=Ed,p=c,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;c!==null&&Dd(o,s,c,d,!1),u!==null&&f!==null&&Dd(o,f,u,d,!0)}}a:{if(s=r?dt(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var v=tr;else if(Yn(s))if(nr)v=dr;else{v=lr;var y=cr}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Ut(r.elementType)&&(v=tr):v=ur;if(v&&=v(e,r)){Xn(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Ft(s,`number`,s.value)}switch(y=r?dt(r):window,e){case`focusin`:(Yn(y)||y.contentEditable===`true`)&&(xr=y,Sr=r,Cr=null);break;case`focusout`:Cr=Sr=xr=null;break;case`mousedown`:wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:wr=!1,Tr(o,n,i);break;case`selectionchange`:if(br)break;case`keydown`:case`keyup`:Tr(o,n,i)}var b;if(Bn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Kn?Wn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(K&&n.locale!==`ko`&&(Kn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Kn&&(b=ln()):(on=i,sn=`value`in on?on.value:on.textContent,Kn=!0)),y=Td(r,x),0<y.length&&(x=new Dn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Gn(n),b!==null&&(x.data=b)))),(b=G?q(e,n):qn(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new Dn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),pd(o,e,r,n,i)}vd(o,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=tn(e,n),i!=null&&r.unshift(wd(e,i,a)),i=tn(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=tn(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=tn(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
|
|
9
|
+
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&zt(e,``+r);break;case`className`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:Ht(e,r,a);break;case`data`:if(t!==`object`){Ct(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,i.name,i,null),Md(e,t,`formEncType`,i.formEncType,i,null),Md(e,t,`formMethod`,i.formMethod,i,null),Md(e,t,`formTarget`,i.formTarget,i,null)):(Md(e,t,`encType`,i.encType,i,null),Md(e,t,`method`,i.method,i,null),Md(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Kt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:St(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Wt.get(n)||n,St(e,n,r))}}function Nd(e,t,n,r,i,a){switch(n){case`style`:Ht(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&zt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ht.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[tt]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):St(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:Md(e,t,a,o,n,null)}}i&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:Md(e,t,r,d,n,null)}}Pt(e,a,c,l,u,o,i,!1);return;case`select`:for(i in $(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:Md(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&It(e,!!r,n,!0):It(e,!!r,t,!1);return;case`textarea`:for(o in $(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:Md(e,t,o,c,n,null)}Rt(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Ut(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:o=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}Nt(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||Md(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:o=a;default:a!==l&&Md(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?It(e,!!n,n?[]:``,!1):It(e,!!n,t,!0)):It(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&Md(e,t,o,i,r,a)}Lt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(s(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Ut(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[st]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[st])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ct(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=L.d;L.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=ut(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ft(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);pt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ft(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),pt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ft(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),pt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ne.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=ft(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=ft(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=ft(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+Mt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),pt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Mt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,pt(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),pt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,pt(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),pt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[st]||a[et]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ue(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ue(0),this.hiddenUpdates=Ue(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=$r(3,null,null,t),e.current=a,a.stateNode=e,t=$i(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ma(a),e}function tp(e){return e?(e=Zr,e):Zr}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Pa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Fa(e,r,t),n!==null&&(pu(n,e,t),Ia(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=Jr(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=Ye(t);var n=Jr(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,up(e,t,n,r)}finally{L.p=a,I.T=i}}function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,up(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=ut(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Re(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Me(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Pl&6)&&($l=be()+500,rd(0,!1))}}break;case 31:case 13:s=Jr(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=Yt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=lt(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(xe()){case Se:return 2;case Ce:return 8;case we:case Te:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ut(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=lt(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,Qe(e.priority,function(){op(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Qe(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Jt=r,n.target.dispatchEvent(r),Jt=null}else return t=ut(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=ut(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[tt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[tt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[nt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=r.version;if(Lp!==`19.2.8`)throw Error(s(527,Lp,`19.2.8`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{ke=zp.inject(Rp),Ae=zp}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Vs,a=Hs,o=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,i,a,o,Pp),e[nt]=t.current,xd(e),new Fp(t)}})),c=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=i(),u=c(),d=new Map([{family:`Bebas Neue`,fallback:`sans-serif`,weights:`400`},{family:`Crimson Text`,fallback:`serif`,weights:`400;600;700`},{family:`DM Sans`,fallback:`sans-serif`,weights:`100..1000`},{family:`Fira Sans`,fallback:`sans-serif`,weights:`100;200;300;400;500;600;700;800;900`},{family:`Inter`,fallback:`sans-serif`,weights:`100..900`},{family:`JetBrains Mono`,fallback:`monospace`,weights:`100..800`},{family:`Josefin Sans`,fallback:`sans-serif`,weights:`100..700`},{family:`Karla`,fallback:`sans-serif`,weights:`200..800`},{family:`Lato`,fallback:`sans-serif`,weights:`100;300;400;700;900`},{family:`Lora`,fallback:`serif`,weights:`400..700`},{family:`Manrope`,fallback:`sans-serif`,weights:`200..800`},{family:`Merriweather`,fallback:`serif`,weights:`300..900`},{family:`Montserrat`,fallback:`sans-serif`,weights:`100..900`},{family:`Nunito`,fallback:`sans-serif`,weights:`200..1000`},{family:`Open Sans`,fallback:`sans-serif`,weights:`300..800`},{family:`Oswald`,fallback:`sans-serif`,weights:`200..700`},{family:`Outfit`,fallback:`sans-serif`,weights:`100..900`},{family:`Playfair Display`,fallback:`serif`,weights:`400..900`},{family:`Poppins`,fallback:`sans-serif`,weights:`100;200;300;400;500;600;700;800;900`},{family:`Quicksand`,fallback:`sans-serif`,weights:`300..700`},{family:`Raleway`,fallback:`sans-serif`,weights:`100..900`},{family:`Roboto`,fallback:`sans-serif`,weights:`100..900`},{family:`Rubik`,fallback:`sans-serif`,weights:`300..900`},{family:`Source Sans 3`,fallback:`sans-serif`,weights:`200..900`},{family:`Space Grotesk`,fallback:`sans-serif`,weights:`300..700`},{family:`Work Sans`,fallback:`sans-serif`,weights:`100..900`}].map(e=>[e.family,e])),f=e=>`"${e.family}", ${e.fallback}`,p=e=>{let t=d.get(e)?.weights;return`family=${e.replace(/ /g,`+`)}${t?`:wght@${t}`:``}`};function m(e){return e.length?`https://fonts.googleapis.com/css2?${e.map(p).join(`&`)}&display=swap`:null}var h=e=>m([e]),g=e=>{let t=typeof e==`string`&&e.match(/^"([^"]+)"/);return t?t[1]:null},_=e=>{let t=d.get(e);return t?f(t):null};function v(e,t){let n=new Set,r=e=>{for(let t of Object.values(e||{}))for(let e of[`style`,`hover`,`pressed`,`focused`]){let r=g(t.props?.[e]?.fontFamily);r&&n.add(r)}};r(e);for(let e of Object.values(t||{}))r(e.template?.nodes);return[...n].sort()}var y=[`linear`,`ease`,`ease-in`,`ease-out`,`ease-in-out`,`spring`];function b(e){let t=1-Math.min(100,Math.max(0,Number(e)||0))/100*.85,n=Math.log(1e3)/t,r=e=>{if(t>=1)return 1-(1+n*e)*Math.exp(-n*e);let r=n*Math.sqrt(1-t*t);return 1-Math.exp(-t*n*e)*(Math.cos(r*e)+t*n/r*Math.sin(r*e))},i=[];for(let e=0;e<=40;e+=1)i.push(e===40?1:Math.round(r(e/40)*1e3)/1e3);return`linear(${i.join(`,`)})`}var x=e=>{let t=String(e??``).trim();if(!t)return null;let n=Number(t);return Number.isFinite(n)?n:null};function S(e){let t=[],n=[],r=x(e?.opacity),i=x(e?.x),a=x(e?.y),o=x(e?.scale),s=x(e?.rotate),c=x(e?.blur);return r!==null&&t.push(`opacity: ${r}`),i!==null&&n.push(`translateX(${i}px)`),a!==null&&n.push(`translateY(${a}px)`),o!==null&&n.push(`scale(${o})`),s!==null&&n.push(`rotate(${s}deg)`),n.length&&t.push(`transform: ${n.join(` `)}`),c!==null&&t.push(`filter: blur(${c}px)`),t.join(`; `)}var C=e=>`wb-anim-${String(e).replace(/[^\w-]/g,``)}`,w=e=>`--wb-anim-${String(e).replace(/[^\w-]/g,``)}`,T=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function E(e,t,{offset:n=0}={}){if(!e||!Array.isArray(t)||T())return;let r=window.getComputedStyle(e),i=t.map(e=>r.getPropertyValue(w(e)).trim()).filter(Boolean);if(!i.length)return;e.style.animation=`none`,e.offsetWidth,e.style.animation=i.join(`, `);let a=Math.max(0,Number(n)||0);if(a>0){let t=window.getComputedStyle(e).animationDelay.split(`,`).map(e=>parseFloat(e)*(e.trim().endsWith(`ms`)?1:1e3)||0);e.style.animationDelay=t.map(e=>`${e+a}ms`).join(`, `)}}var D=[`entry`,`cover`,`exit`],O=()=>typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`animation-timeline: view()`),k=(e,t)=>{let n=x(e);return n===null?t:Math.min(100,Math.max(0,n))};function A(e,t){let n=k(t?.start,0),r=Math.max(n,k(t?.end,100));if(e===`page`)return`${n}% ${r}%`;let i=D.includes(t?.phase)?t.phase:`entry`;return`${i} ${n}% ${i} ${r}%`}var j=[`animation-name`,`animation-duration`,`animation-timing-function`,`animation-delay`,`animation-iteration-count`,`animation-fill-mode`,`animation-timeline`,`animation-range`];function M(e,t,{timeline:n,range:r}){if(!e||!Array.isArray(t)||T())return()=>{};let i=window.getComputedStyle(e),a=t.map(e=>i.getPropertyValue(w(e)).trim().split(/\s+/)).filter(e=>e[0]);if(!a.length)return()=>{};let o=j.map(t=>e.style.getPropertyValue(t)),s=e=>a.map(()=>e).join(`, `);return e.style.setProperty(`animation-name`,a.map(e=>e[0]).join(`, `)),e.style.setProperty(`animation-duration`,s(`auto`)),e.style.setProperty(`animation-timing-function`,a.map(e=>e[2]||`linear`).join(`, `)),e.style.setProperty(`animation-delay`,s(`0s`)),e.style.setProperty(`animation-iteration-count`,s(`1`)),e.style.setProperty(`animation-fill-mode`,s(`both`)),e.style.setProperty(`animation-timeline`,s(n)),e.style.setProperty(`animation-range`,s(r)),()=>j.forEach((t,n)=>{o[n]?e.style.setProperty(t,o[n]):e.style.removeProperty(t)})}function N(e){for(let t=e.parentElement;t;t=t.parentElement){let{overflowY:e}=window.getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e)&&t.scrollHeight>t.clientHeight)return t}return null}function P(e,t,n){if(T())return()=>{};let r=M(e,t,{timeline:`auto`,range:`normal`}),i=String(e.style.getPropertyValue(`animation-name`)).split(`,`).map(e=>e.trim()),a=1e3;e.style.setProperty(`animation-duration`,i.map(()=>`${a}ms`).join(`, `)),e.style.setProperty(`animation-play-state`,i.map(()=>`paused`).join(`, `));let o=typeof e.getAnimations==`function`?e.getAnimations().filter(e=>i.includes(e.animationName)):[];if(!o.length)return e.style.removeProperty(`animation-play-state`),r(),()=>{};let s=N(e),c=k(n?.start,0),l=Math.max(c+.001,k(n?.end,100)),u=D.includes(n?.phase)?n.phase:`entry`,d=()=>{if(n?.kind===`page`){let e=s??document.scrollingElement??document.documentElement,t=e.scrollHeight-e.clientHeight;return t>0?e.scrollTop/t*100:0}let t=e.getBoundingClientRect(),r=typeof DOMMatrixReadOnly==`function`?new DOMMatrixReadOnly(window.getComputedStyle(e).transform===`none`?void 0:window.getComputedStyle(e).transform).m42:0,i=e.offsetHeight||t.height,a={top:t.top+t.height/2-r-i/2,height:i},o=s?.getBoundingClientRect(),c=s?{top:o.top+s.clientTop,bottom:o.top+s.clientTop+s.clientHeight}:{top:0,bottom:window.innerHeight},[l,d]={entry:[c.bottom,c.bottom-a.height],exit:[c.top,c.top-a.height],cover:[c.bottom,c.top-a.height]}[u];return(l-a.top)/Math.max(1,l-d)*100},f=0,p=()=>{f=0;let e=Math.min(1,Math.max(0,(d()-c)/(l-c)));o.forEach(t=>{t.currentTime=e*a*.9999})},m=()=>{f||=requestAnimationFrame(p)};return p(),document.addEventListener(`scroll`,m,{capture:!0,passive:!0}),window.addEventListener(`resize`,m),()=>{f&&cancelAnimationFrame(f),document.removeEventListener(`scroll`,m,{capture:!0}),window.removeEventListener(`resize`,m),e.style.removeProperty(`animation-play-state`),r()}}function F(e){return Array.isArray(e)?e.map(e=>{let t=String(e?.id??``).replace(/[^\w-]/g,``);if(!t)return``;let n=C(t),r=S(e.from),i=S(e.to);if(!r&&!i)return``;let a=Math.max(0,x(e.duration)??400),o=Math.max(0,x(e.delay)??0),s=e.easing===`spring`,c=s?b(e.bounce??30):y.includes(e.easing)?e.easing:`ease-out`,l=e.loop?`infinite`:`1`,u=e=>`${n} ${a}ms ${e} ${o}ms ${l} both`,d=u(c);return[`@keyframes ${n} { from { ${r} } to { ${i} } }`,`:root { ${w(t)}: ${d}; }`,`.${n} { animation: ${d}; }`,...s?[`@supports not (animation-timing-function: linear(0, 1)) { :root { ${w(t)}: ${u(`ease-out`)}; } .${n} { animation: ${u(`ease-out`)}; } }`]:[]].join(`
|
|
10
10
|
`)}).filter(Boolean).concat(e.length?[`@media (prefers-reduced-motion: reduce) { [class*="wb-anim-"] { animation: none !important; } }`]:[]).join(`
|
|
11
|
-
`):``}var I=new Set(`marginTop.marginRight.marginBottom.marginLeft.paddingTop.paddingRight.paddingBottom.paddingLeft.gap.rowGap.columnGap.flexBasis.fontSize.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.letterSpacing.textDecorationThickness.textUnderlineOffset.top.right.bottom.left`.split(`.`)),L=e=>typeof e==`number`||typeof e==`string`&&e.trim()!==``&&!Number.isNaN(Number(e))?`${Number(e)}px`:e,R=[`borderWidth`,`borderStyle`,`borderColor`,`borderRadius`,`gap`];function z(e){let t={};for(let n of R){let r=e?.[n];r!=null&&r!==``&&(t[n]=I.has(n)?L(r):r)}for(let[n,r]of Object.entries(e||{}))r==null||r===``||R.includes(n)||(t[n]=I.has(n)?L(r):r);let{gradientType:n,gradientAngle:r,gradientFrom:i,gradientTo:a}=t;delete t.gradientType,delete t.gradientAngle,delete t.gradientFrom,delete t.gradientTo;let{textShadows:o,textShadowX:s,textShadowY:c,textShadowBlur:l,textShadowColor:u}=t;delete t.textShadows,delete t.textShadowX,delete t.textShadowY,delete t.textShadowBlur,delete t.textShadowColor;let d=(Array.isArray(o)?o:[]).filter(e=>e&&e.on!==!1).map(e=>`${L(e.x??0)} ${L(e.y??0)} ${L(e.blur??0)} ${e.color||`rgba(0, 0, 0, 0.35)`}`);[s,c,l,u].some(e=>e!==void 0)&&d.push(`${L(s??0)} ${L(c??0)} ${L(l??0)} ${u||`rgba(0, 0, 0, 0.35)`}`),d.length&&(t.textShadow=d.join(`, `));let f=e=>typeof e==`number`||!Number.isNaN(Number(e))?`${Number(e)}deg`:e,p=e=>e.type===`move`?`translate(${L(e.x??0)}, ${L(e.y??0)})`:e.type===`scale`?`scale(${e.v??1})`:e.type===`rotate`?`rotate(${f(e.a??0)})`:e.type===`skew`?`skew(${f(e.x??0)}, ${f(e.y??0)})`:null,{transforms:m,translateX:h,translateY:g,scale:_,rotate:v,skewX:y,skewY:b}=t;delete t.transforms,delete t.translateX,delete t.translateY,delete t.scale,delete t.rotate,delete t.skewX,delete t.skewY;let x=(Array.isArray(m)?m:[]).filter(e=>e&&e.on!==!1).map(p).filter(Boolean);(h!==void 0||g!==void 0)&&x.push(`translate(${L(h??0)}, ${L(g??0)})`),_!==void 0&&x.push(`scale(${_})`),v!==void 0&&x.push(`rotate(${f(v)})`),(y!==void 0||b!==void 0)&&x.push(`skew(${f(y??0)}, ${f(b??0)})`),x.length&&(t.transform=x.join(` `));let S=e=>`${e.inset?`inset `:``}${L(e.x??0)} ${L(e.y??0)} ${L(e.blur??0)} ${L(e.spread??0)} ${e.color||`rgba(15, 23, 42, 0.2)`}`,{shadows:C,boxShadowX:w,boxShadowY:T,boxShadowBlur:E,boxShadowSpread:D,boxShadowColor:O,boxShadowInset:k}=t;delete t.shadows,delete t.boxShadowX,delete t.boxShadowY,delete t.boxShadowBlur,delete t.boxShadowSpread,delete t.boxShadowColor,delete t.boxShadowInset;let A=(Array.isArray(C)?C:[]).filter(e=>e&&e.on!==!1).map(S);[w,T,E,D,O,k].some(e=>e!==void 0)&&A.push(S({x:w,y:T,blur:E,spread:D,color:O,inset:k})),A.length&&(t.boxShadow=A.join(`, `));let j=e=>e.type===`blur`?`blur(${L(e.v??0)})`:e.type===`hue-rotate`?`hue-rotate(${f(e.v??0)})`:`${e.type}(${e.v??100}%)`,M=e=>(Array.isArray(e)?e:[]).filter(e=>e&&e.on!==!1&&e.type).map(j),{filters:N,backdropFilters:P,filterBlur:F,filterGrayscale:z,filterBrightness:ee,filterContrast:te,filterSaturate:B}=t;delete t.filters,delete t.backdropFilters,delete t.filterBlur,delete t.filterGrayscale,delete t.filterBrightness,delete t.filterContrast,delete t.filterSaturate;let V=M(N);F!==void 0&&V.push(`blur(${L(F)})`),z!==void 0&&V.push(`grayscale(${z}%)`),ee!==void 0&&V.push(`brightness(${ee}%)`),te!==void 0&&V.push(`contrast(${te}%)`),B!==void 0&&V.push(`saturate(${B}%)`),V.length&&(t.filter=V.join(` `));let H=M(P);H.length&&(t.backdropFilter=H.join(` `),t.WebkitBackdropFilter=t.backdropFilter);let{textStrokeWidth:ne,textStrokeColor:re}=t;delete t.textStrokeWidth,delete t.textStrokeColor,(ne!==void 0||re!==void 0)&&(t.WebkitTextStroke=`${L(ne??1)} ${re||`currentColor`}`);let{clipText:ie}=t;delete t.clipText,ie&&(t.WebkitBackgroundClip=`text`,t.backgroundClip=`text`,t.WebkitTextFillColor=`transparent`);let{transitions:ae,transitionDuration:oe,transitionEasing:se,transitionProperty:ce}=t,le=e=>typeof e==`number`||!Number.isNaN(Number(e))?`${Number(e)}ms`:e;delete t.transitions,delete t.transitionDuration,delete t.transitionEasing,delete t.transitionProperty;let ue=(Array.isArray(ae)?ae:[]).filter(e=>e&&e.on!==!1).map(e=>`${e.property||`all`} ${le(e.duration??200)} ${e.easing||`ease`}`);if(oe!==void 0&&ue.push(`${ce||`all`} ${le(oe)} ${se||`ease`}`),ue.length&&(t.transition=ue.join(`, `)),t.textDecoration!==void 0&&(t.textDecorationLine=t.textDecoration,delete t.textDecoration),t.backgroundImage&&!String(t.backgroundImage).includes(`(`)&&(t.backgroundImage=`url("${t.backgroundImage}")`),n){let e=`${i||`rgba(0,0,0,0.5)`}, ${a||`transparent`}`,o=n===`radial`?`radial-gradient(circle, ${e})`:`linear-gradient(${r??180}deg, ${e})`;t.backgroundImage=t.backgroundImage?`${o}, ${t.backgroundImage}`:o}delete t.backgroundVideo;let{overlayColor:de,overlayOpacity:fe}=t;if(delete t.overlayColor,delete t.overlayOpacity,de){let e=`color-mix(in srgb, ${de} ${fe??50}%, transparent)`,n=`linear-gradient(${e}, ${e})`;t.backgroundImage=t.backgroundImage?`${n}, ${t.backgroundImage}`:n}t.backgroundImage&&(t.backgroundSize??=`cover`,t.backgroundPosition??=`center`,t.backgroundRepeat??=`no-repeat`);let{backgroundLayers:pe}=t;delete t.backgroundLayers;let me=(Array.isArray(pe)?pe:[]).filter(e=>e&&e.on!==!1);if(me.length){let e=[],n=[],r=[],i=[],a=[];for(let t of me)if(t.kind===`linear`)e.push(`linear-gradient(${t.angle??180}deg, ${t.from||`rgba(0,0,0,0.5)`}, ${t.to||`transparent`})`),n.push(`auto`),r.push(`0% 0%`),i.push(`repeat`),a.push(`scroll`);else if(t.kind===`radial`)e.push(`radial-gradient(circle, ${t.from||`rgba(0,0,0,0.5)`}, ${t.to||`transparent`})`),n.push(`auto`),r.push(`0% 0%`),i.push(`repeat`),a.push(`scroll`);else{if(!t.src)continue;e.push(`url("${t.src}")`),n.push(t.size===`custom`?`${L(t.w??`auto`)} ${L(t.h??`auto`)}`:t.size||`cover`),r.push(`${L(t.posX??0)} ${L(t.posY??0)}`),i.push(t.repeat||`no-repeat`),a.push(t.fixed?`fixed`:`scroll`)}e.length&&(t.backgroundImage&&(e.push(t.backgroundImage),n.push(t.backgroundSize||`cover`),r.push(t.backgroundPosition||`center`),i.push(t.backgroundRepeat||`no-repeat`),a.push(`scroll`)),t.backgroundImage=e.join(`, `),t.backgroundSize=n.join(`, `),t.backgroundPosition=r.join(`, `),t.backgroundRepeat=i.join(`, `),t.backgroundAttachment=a.join(`, `))}return t}var ee={hover:`:hover`,pressed:`:active`,focused:`:focus`},te=new Set([`style`,`class`,`id`,`data-wb`,`data-wb-class`,`data-slot`]),B=e=>/^[a-zA-Z_][\w-]*$/.test(e)&&!/^on/i.test(e)&&!te.has(e.toLowerCase()),V=e=>[...new Set(String(e??``).split(/\s+/).map(e=>e.replace(/^\./,``)).filter(e=>/^-?[_a-zA-Z][\w-]*$/.test(e)))],H=[`click`,`dblclick`,`mouseenter`,`mouseleave`,`mousemove`,`focus`,`blur`,`input`,`change`,`submit`,`keydown`,`inview`,`scrollview`],ne=[`load`,`pagescroll`,`scrollpage`],re={scrollview:`view`,scrollpage:`page`},ie=[...H,...ne],ae=/^[A-Za-z_$][\w$]*$/;function oe(e,t){let n=String(t??``).trim();if(!n)return[e];let r=e.closest?.(`.webim-page`)??e.closest?.(`.builder-canvas`)??document,i=/^[A-Za-z_][\w-]*$/.test(n)?[`#${n}`,n]:[n];for(let e of i)try{let t=Array.from(r.querySelectorAll(e));if(t.length)return t}catch{return[]}return[]}function se(e,t){for(let t of[...e.__webimEvents??[]].reverse())t();let n=[];for(let r of t??[]){let t=String(r?.event??``),i=r?.action===`animation`,a=e=>(Array.isArray(e?.animations)?e.animations:[e?.animation]).map(e=>String(e??``).trim()).filter(Boolean),o=i?(Array.isArray(r?.steps)&&r.steps.length?r.steps:[r]).map(e=>({ids:a(e),target:e?.target,delay:Math.max(0,Number(e?.delay)||0),stagger:Math.max(0,Number(e?.stagger)||0)})).filter(e=>e.ids.length):[],s=o.flatMap(e=>e.ids),c=i?``:String(r?.handler??``).trim();if(!ie.includes(t)||(i?!s.length:!ae.test(c)))continue;if(re[t]){if(!i)continue;let a=re[t];if(O()){let t=a===`page`?`scroll(nearest block)`:`view(block)`,i=A(a,r);for(let r of o)for(let a of oe(e,r.target))n.push(M(a,r.ids,{timeline:t,range:i}))}else for(let t of o)for(let i of oe(e,t.target))n.push(P(i,t.ids,{kind:a,phase:r.phase,start:r.start,end:r.end}));continue}let l=t=>{if(i){for(let t of o)oe(e,t.target).forEach((e,n)=>{E(e,t.ids,{offset:t.delay+n*t.stagger})});return}let n=window[c];typeof n==`function`&&n.call(e,t)};if(t===`inview`){if(typeof IntersectionObserver>`u`)continue;let t=new IntersectionObserver(e=>{for(let n of e)n.isIntersecting&&(t.disconnect(),l(n))});t.observe(e),n.push(()=>t.disconnect())}else if(t===`load`)if(document.readyState===`complete`){let e=setTimeout(l,0);n.push(()=>clearTimeout(e))}else window.addEventListener(`load`,l,{once:!0}),n.push(()=>window.removeEventListener(`load`,l));else t===`pagescroll`?(document.addEventListener(`scroll`,l,{capture:!0,passive:!0}),n.push(()=>document.removeEventListener(`scroll`,l,{capture:!0}))):(e.addEventListener(t,l),n.push(()=>e.removeEventListener(t,l)))}e.__webimEvents=n}function ce(e,t,n=[]){t.htmlId?e.id=t.htmlId:e.removeAttribute(`id`);let r=V(t.classNames),i=V(e.getAttribute(`data-wb-class`));for(let t of i)r.includes(t)||e.classList.remove(t);for(let t of r)e.classList.add(t);r.length?e.setAttribute(`data-wb-class`,r.join(` `)):e.removeAttribute(`data-wb-class`);for(let t of n)e.removeAttribute(t);let a=[];for(let n of t.attributes??[]){let t=String(n?.name??``).trim();B(t)&&(e.setAttribute(t,n.value??``),a.push(t))}return a}var le=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);function ue(e,t=``){return[`[data-wb="${e}"]:not([data-wb-redirect])${t}`,`[data-wb="${e}"][data-wb-redirect] [data-wb-self]:not([data-wb="${e}"] [data-wb] [data-wb-self])${t}`].join(`, `)}function de(e,t,n,r=!1){let i=Object.entries(z(t)).map(([e,t])=>`${le(e)}: ${t} !important;`).join(` `);return i?`${ue(e,r?``:n)} { ${i} }`:``}var fe=e=>/^[a-z][a-z0-9-]{0,39}$/.test(String(e??``));function pe(e,t,n=``){return`[data-wb="${e}"] [data-wb-part~="${t}"]:not([data-wb="${e}"] [data-wb] [data-wb-part])${n}`}function me(e){let t=e?.partStyles;if(t&&typeof t==`object`&&!Array.isArray(t))return t;let n=e?.parts;return n&&typeof n==`object`&&!Array.isArray(n)?n:{}}var he=e=>Object.entries(me(e)).filter(([e,t])=>fe(e)&&t&&typeof t==`object`).sort(([e],[t])=>e.split(`-`).length-t.split(`-`).length);function ge(e,t,n,r=``,i=!1){let a=Object.entries(z(n)).map(([e,t])=>`${le(e)}: ${t} !important;`).join(` `);return a?`${pe(e,t,i?``:r)} { ${a} }`:``}function _e(e,t,n,r){return he(t).flatMap(([t,i])=>[ge(e,t,i.style),...Object.entries(ee).map(([a,o])=>ge(e,t,i[a],o,n===a&&r===t))]).filter(Boolean).join(`
|
|
12
|
-
`)}function
|
|
13
|
-
`)}var
|
|
14
|
-
`)}function
|
|
15
|
-
`)}function
|
|
16
|
-
`)}var
|
|
17
|
-
:where(.webim-page, .wb-artboard) :where([data-wb-link]):hover { color: var(--page-link-hover, var(--page-link, inherit)); text-decoration-line: var(--page-link-hover-decoration, underline); }`,Pe=`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,Fe={fontFamily:Pe,fontStyle:`normal`,fontWeight:400,letterSpacing:`normal`,textTransform:`none`,lineHeight:1.4,textShadow:`none`},
|
|
18
|
-
`)}function
|
|
19
|
-
`){/ {2,}$/.test(a)?(a=a.replace(/ +$/,``),c([{br:!0}])):a.endsWith(`\\`)?(a=a.slice(0,-1),c([{br:!0}])):a+=` `,o+=1;continue}if(s=
|
|
11
|
+
`):``}var I=new Set(`marginTop.marginRight.marginBottom.marginLeft.paddingTop.paddingRight.paddingBottom.paddingLeft.gap.rowGap.columnGap.flexBasis.fontSize.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.letterSpacing.textDecorationThickness.textUnderlineOffset.top.right.bottom.left`.split(`.`)),L=e=>typeof e==`number`||typeof e==`string`&&e.trim()!==``&&!Number.isNaN(Number(e))?`${Number(e)}px`:e,R=[`borderWidth`,`borderStyle`,`borderColor`,`borderRadius`,`gap`];function z(e){let t={};for(let n of R){let r=e?.[n];r!=null&&r!==``&&(t[n]=I.has(n)?L(r):r)}for(let[n,r]of Object.entries(e||{}))r==null||r===``||R.includes(n)||(t[n]=I.has(n)?L(r):r);let{gradientType:n,gradientAngle:r,gradientFrom:i,gradientTo:a}=t;delete t.gradientType,delete t.gradientAngle,delete t.gradientFrom,delete t.gradientTo;let{textShadows:o,textShadowX:s,textShadowY:c,textShadowBlur:l,textShadowColor:u}=t;delete t.textShadows,delete t.textShadowX,delete t.textShadowY,delete t.textShadowBlur,delete t.textShadowColor;let d=(Array.isArray(o)?o:[]).filter(e=>e&&e.on!==!1).map(e=>`${L(e.x??0)} ${L(e.y??0)} ${L(e.blur??0)} ${e.color||`rgba(0, 0, 0, 0.35)`}`);[s,c,l,u].some(e=>e!==void 0)&&d.push(`${L(s??0)} ${L(c??0)} ${L(l??0)} ${u||`rgba(0, 0, 0, 0.35)`}`),d.length&&(t.textShadow=d.join(`, `));let f=e=>typeof e==`number`||!Number.isNaN(Number(e))?`${Number(e)}deg`:e,p=e=>e.type===`move`?`translate(${L(e.x??0)}, ${L(e.y??0)})`:e.type===`scale`?`scale(${e.v??1})`:e.type===`rotate`?`rotate(${f(e.a??0)})`:e.type===`skew`?`skew(${f(e.x??0)}, ${f(e.y??0)})`:null,{transforms:m,translateX:h,translateY:g,scale:_,rotate:v,skewX:y,skewY:b}=t;delete t.transforms,delete t.translateX,delete t.translateY,delete t.scale,delete t.rotate,delete t.skewX,delete t.skewY;let x=(Array.isArray(m)?m:[]).filter(e=>e&&e.on!==!1).map(p).filter(Boolean);(h!==void 0||g!==void 0)&&x.push(`translate(${L(h??0)}, ${L(g??0)})`),_!==void 0&&x.push(`scale(${_})`),v!==void 0&&x.push(`rotate(${f(v)})`),(y!==void 0||b!==void 0)&&x.push(`skew(${f(y??0)}, ${f(b??0)})`),x.length&&(t.transform=x.join(` `));let S=e=>`${e.inset?`inset `:``}${L(e.x??0)} ${L(e.y??0)} ${L(e.blur??0)} ${L(e.spread??0)} ${e.color||`rgba(15, 23, 42, 0.2)`}`,{shadows:C,boxShadowX:w,boxShadowY:T,boxShadowBlur:E,boxShadowSpread:D,boxShadowColor:O,boxShadowInset:k}=t;delete t.shadows,delete t.boxShadowX,delete t.boxShadowY,delete t.boxShadowBlur,delete t.boxShadowSpread,delete t.boxShadowColor,delete t.boxShadowInset;let A=(Array.isArray(C)?C:[]).filter(e=>e&&e.on!==!1).map(S);[w,T,E,D,O,k].some(e=>e!==void 0)&&A.push(S({x:w,y:T,blur:E,spread:D,color:O,inset:k})),A.length&&(t.boxShadow=A.join(`, `));let j=e=>e.type===`blur`?`blur(${L(e.v??0)})`:e.type===`hue-rotate`?`hue-rotate(${f(e.v??0)})`:`${e.type}(${e.v??100}%)`,M=e=>(Array.isArray(e)?e:[]).filter(e=>e&&e.on!==!1&&e.type).map(j),{filters:N,backdropFilters:P,filterBlur:F,filterGrayscale:z,filterBrightness:B,filterContrast:ee,filterSaturate:V}=t;delete t.filters,delete t.backdropFilters,delete t.filterBlur,delete t.filterGrayscale,delete t.filterBrightness,delete t.filterContrast,delete t.filterSaturate;let H=M(N);F!==void 0&&H.push(`blur(${L(F)})`),z!==void 0&&H.push(`grayscale(${z}%)`),B!==void 0&&H.push(`brightness(${B}%)`),ee!==void 0&&H.push(`contrast(${ee}%)`),V!==void 0&&H.push(`saturate(${V}%)`),H.length&&(t.filter=H.join(` `));let U=M(P);U.length&&(t.backdropFilter=U.join(` `),t.WebkitBackdropFilter=t.backdropFilter);let{textStrokeWidth:te,textStrokeColor:ne}=t;delete t.textStrokeWidth,delete t.textStrokeColor,(te!==void 0||ne!==void 0)&&(t.WebkitTextStroke=`${L(te??1)} ${ne||`currentColor`}`);let{clipText:re}=t;delete t.clipText,re&&(t.WebkitBackgroundClip=`text`,t.backgroundClip=`text`,t.WebkitTextFillColor=`transparent`);let{transitions:ie,transitionDuration:ae,transitionEasing:oe,transitionProperty:se}=t,ce=e=>typeof e==`number`||!Number.isNaN(Number(e))?`${Number(e)}ms`:e;delete t.transitions,delete t.transitionDuration,delete t.transitionEasing,delete t.transitionProperty;let le=(Array.isArray(ie)?ie:[]).filter(e=>e&&e.on!==!1).map(e=>`${e.property||`all`} ${ce(e.duration??200)} ${e.easing||`ease`}`);if(ae!==void 0&&le.push(`${se||`all`} ${ce(ae)} ${oe||`ease`}`),le.length&&(t.transition=le.join(`, `)),t.textDecoration!==void 0&&(t.textDecorationLine=t.textDecoration,delete t.textDecoration),t.backgroundImage&&!String(t.backgroundImage).includes(`(`)&&(t.backgroundImage=`url("${t.backgroundImage}")`),n){let e=`${i||`rgba(0,0,0,0.5)`}, ${a||`transparent`}`,o=n===`radial`?`radial-gradient(circle, ${e})`:`linear-gradient(${r??180}deg, ${e})`;t.backgroundImage=t.backgroundImage?`${o}, ${t.backgroundImage}`:o}delete t.backgroundVideo;let{overlayColor:ue,overlayOpacity:de}=t;if(delete t.overlayColor,delete t.overlayOpacity,ue){let e=`color-mix(in srgb, ${ue} ${de??50}%, transparent)`,n=`linear-gradient(${e}, ${e})`;t.backgroundImage=t.backgroundImage?`${n}, ${t.backgroundImage}`:n}t.backgroundImage&&(t.backgroundSize??=`cover`,t.backgroundPosition??=`center`,t.backgroundRepeat??=`no-repeat`);let{backgroundLayers:fe}=t;delete t.backgroundLayers;let pe=(Array.isArray(fe)?fe:[]).filter(e=>e&&e.on!==!1);if(pe.length){let e=[],n=[],r=[],i=[],a=[];for(let t of pe)if(t.kind===`linear`)e.push(`linear-gradient(${t.angle??180}deg, ${t.from||`rgba(0,0,0,0.5)`}, ${t.to||`transparent`})`),n.push(`auto`),r.push(`0% 0%`),i.push(`repeat`),a.push(`scroll`);else if(t.kind===`radial`)e.push(`radial-gradient(circle, ${t.from||`rgba(0,0,0,0.5)`}, ${t.to||`transparent`})`),n.push(`auto`),r.push(`0% 0%`),i.push(`repeat`),a.push(`scroll`);else{if(!t.src)continue;e.push(`url("${t.src}")`),n.push(t.size===`custom`?`${L(t.w??`auto`)} ${L(t.h??`auto`)}`:t.size||`cover`),r.push(`${L(t.posX??0)} ${L(t.posY??0)}`),i.push(t.repeat||`no-repeat`),a.push(t.fixed?`fixed`:`scroll`)}e.length&&(t.backgroundImage&&(e.push(t.backgroundImage),n.push(t.backgroundSize||`cover`),r.push(t.backgroundPosition||`center`),i.push(t.backgroundRepeat||`no-repeat`),a.push(`scroll`)),t.backgroundImage=e.join(`, `),t.backgroundSize=n.join(`, `),t.backgroundPosition=r.join(`, `),t.backgroundRepeat=i.join(`, `),t.backgroundAttachment=a.join(`, `))}return t}var B={hover:`:hover`,pressed:`:active`,focused:`:focus`},ee=new Set([`style`,`class`,`id`,`data-wb`,`data-wb-class`,`data-slot`]),V=e=>/^[a-zA-Z_][\w-]*$/.test(e)&&!/^on/i.test(e)&&!ee.has(e.toLowerCase()),H=e=>[...new Set(String(e??``).split(/\s+/).map(e=>e.replace(/^\./,``)).filter(e=>/^-?[_a-zA-Z][\w-]*$/.test(e)))],U=[`click`,`dblclick`,`mouseenter`,`mouseleave`,`mousemove`,`focus`,`blur`,`input`,`change`,`submit`,`keydown`,`inview`,`scrollview`],te=[`load`,`pagescroll`,`scrollpage`],ne={scrollview:`view`,scrollpage:`page`},re=[...U,...te],ie=/^[A-Za-z_$][\w$]*$/;function ae(e,t){let n=String(t??``).trim();if(!n)return[e];let r=e.closest?.(`.webim-page`)??e.closest?.(`.builder-canvas`)??document,i=/^[A-Za-z_][\w-]*$/.test(n)?[`#${n}`,n]:[n];for(let e of i)try{let t=Array.from(r.querySelectorAll(e));if(t.length)return t}catch{return[]}return[]}function oe(e,t){for(let t of[...e.__webimEvents??[]].reverse())t();let n=[];for(let r of t??[]){let t=String(r?.event??``),i=r?.action===`animation`,a=e=>(Array.isArray(e?.animations)?e.animations:[e?.animation]).map(e=>String(e??``).trim()).filter(Boolean),o=i?(Array.isArray(r?.steps)&&r.steps.length?r.steps:[r]).map(e=>({ids:a(e),target:e?.target,delay:Math.max(0,Number(e?.delay)||0),stagger:Math.max(0,Number(e?.stagger)||0)})).filter(e=>e.ids.length):[],s=o.flatMap(e=>e.ids),c=i?``:String(r?.handler??``).trim();if(!re.includes(t)||(i?!s.length:!ie.test(c)))continue;if(ne[t]){if(!i)continue;let a=ne[t];if(O()){let t=a===`page`?`scroll(nearest block)`:`view(block)`,i=A(a,r);for(let r of o)for(let a of ae(e,r.target))n.push(M(a,r.ids,{timeline:t,range:i}))}else for(let t of o)for(let i of ae(e,t.target))n.push(P(i,t.ids,{kind:a,phase:r.phase,start:r.start,end:r.end}));continue}let l=t=>{if(i){for(let t of o)ae(e,t.target).forEach((e,n)=>{E(e,t.ids,{offset:t.delay+n*t.stagger})});return}let n=window[c];typeof n==`function`&&n.call(e,t)};if(t===`inview`){if(typeof IntersectionObserver>`u`)continue;let t=new IntersectionObserver(e=>{for(let n of e)n.isIntersecting&&(t.disconnect(),l(n))});t.observe(e),n.push(()=>t.disconnect())}else if(t===`load`)if(document.readyState===`complete`){let e=setTimeout(l,0);n.push(()=>clearTimeout(e))}else window.addEventListener(`load`,l,{once:!0}),n.push(()=>window.removeEventListener(`load`,l));else t===`pagescroll`?(document.addEventListener(`scroll`,l,{capture:!0,passive:!0}),n.push(()=>document.removeEventListener(`scroll`,l,{capture:!0}))):(e.addEventListener(t,l),n.push(()=>e.removeEventListener(t,l)))}e.__webimEvents=n}function se(e,t,n=[]){t.htmlId?e.id=t.htmlId:e.removeAttribute(`id`);let r=H(t.classNames),i=H(e.getAttribute(`data-wb-class`));for(let t of i)r.includes(t)||e.classList.remove(t);for(let t of r)e.classList.add(t);r.length?e.setAttribute(`data-wb-class`,r.join(` `)):e.removeAttribute(`data-wb-class`);for(let t of n)e.removeAttribute(t);let a=[];for(let n of t.attributes??[]){let t=String(n?.name??``).trim();V(t)&&(e.setAttribute(t,n.value??``),a.push(t))}return a}var ce=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);function le(e,t=``){return[`[data-wb="${e}"]:not([data-wb-redirect])${t}`,`[data-wb="${e}"][data-wb-redirect] [data-wb-self]:not([data-wb="${e}"] [data-wb] [data-wb-self])${t}`].join(`, `)}function ue(e,t,n,r=!1){let i=Object.entries(z(t)).map(([e,t])=>`${ce(e)}: ${t} !important;`).join(` `);return i?`${le(e,r?``:n)} { ${i} }`:``}var de=e=>/^[a-z][a-z0-9-]{0,39}$/.test(String(e??``));function fe(e,t,n=``){return`[data-wb="${e}"] [data-wb-part~="${t}"]:not([data-wb="${e}"] [data-wb] [data-wb-part])${n}`}function pe(e){let t=e?.partStyles;if(t&&typeof t==`object`&&!Array.isArray(t))return t;let n=e?.parts;return n&&typeof n==`object`&&!Array.isArray(n)?n:{}}var me=e=>Object.entries(pe(e)).filter(([e,t])=>de(e)&&t&&typeof t==`object`).sort(([e],[t])=>e.split(`-`).length-t.split(`-`).length);function he(e,t,n,r=``,i=!1){let a=Object.entries(z(n)).map(([e,t])=>`${ce(e)}: ${t} !important;`).join(` `);return a?`${fe(e,t,i?``:r)} { ${a} }`:``}function ge(e,t,n,r){return me(t).flatMap(([t,i])=>[he(e,t,i.style),...Object.entries(B).map(([a,o])=>he(e,t,i[a],o,n===a&&r===t))]).filter(Boolean).join(`
|
|
12
|
+
`)}function _e(e,t,n){return[t?.defaultCss?`${le(e)} { ${t.defaultCss} }`:``,...Object.entries(B).map(([r,i])=>ue(e,t?.[r],i,n===r)),ge(e,t)].filter(Boolean).join(`
|
|
13
|
+
`)}var ve=[{key:`tablet`,max:991},{key:`mobileLandscape`,max:767},{key:`mobile`,max:478}],ye=e=>Object.entries(z(e)).map(([e,t])=>`${ce(e)}: ${t} !important;`).join(` `);function be(e,t){let n=me(t);return ve.map(({key:r,max:i})=>{let a=[],o=t?.[r]?ye(t[r]):``;o&&a.push(`${le(e)} { ${o} }`);for(let[t,i]of n){let n=i[r]?ye(i[r]):``;n&&a.push(`${fe(e,t)} { ${n} }`)}return a.length?`@media (max-width: ${i}px) { ${a.join(` `)} }`:``}).filter(Boolean).join(`
|
|
14
|
+
`)}function xe(e,t,n=null){let r=[],i=e=>{for(let[t,i]of Object.entries(e||{})){let e=be(t,Me(i.props,n?.[i.type?.resolvedName]));e&&r.push(e)}};i(e);for(let e of Object.values(t||{}))i(e.template?.nodes);return r.join(`
|
|
15
|
+
`)}function Se(e,t,n=null){let r=[],i=e=>{for(let[t,i]of Object.entries(e||{})){let e=_e(t,Me(i.props,n?.[i.type?.resolvedName]));e&&r.push(e)}};i(e);for(let e of Object.values(t||{}))i(e.template?.nodes);return r.join(`
|
|
16
|
+
`)}var Ce=[`hover`,`pressed`,`focused`],we=e=>e===void 0,Te=e=>e===null,Ee=e=>!!e&&typeof e==`object`&&!Array.isArray(e),De=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Oe(e){let t=e?.builder_element_defaults?.defaults;return Ee(t)?t:null}function ke(e,t){let n={};for(let[r,i]of Object.entries(Ee(e)?e:{}))we(i)||Te(i)||i===``||Ee(t)&&r in t&&De(i,t[r])||(n[r]=i);return n}function Ae(e,t){let n=t?.settings;if(!Ee(n))return e;let r=Ee(t.settingsBase)?t.settingsBase:{},i=e;for(let[t,a]of Object.entries(n)){let n=e?.[t];(we(n)||t in r&&De(n,r[t]))&&!De(n,a)&&(i===e&&(i={...e??{}}),i[t]=a)}return i}var je=(e,t)=>Ee(e)||Ee(t)?{...Ee(e)?e:{},...Ee(t)?t:{}}:t;function Me(e,t){if(!Ee(t))return e;let n=ke(e?.style,t.base),r=z(n),i={...e};i.defaultCss=Object.entries(z({...Ee(t.style)?t.style:{},...n})).filter(([e])=>!(e in r)).map(([e,t])=>`${ce(e)}: ${t} !important;`).join(` `);for(let n of Ce)i[n]=je(t[n],e?.[n]);let a={...n};for(let{key:n}of ve){let r={};for(let[e,i]of Object.entries(Ee(t[n])?t[n]:{}))e in a||(r[e]=i);i[n]=je(Object.keys(r).length?r:null,e?.[n]),a={...a,...Ee(e?.[n])?e[n]:{}}}let o=pe(e)??{},s=Ee(t.partStyles)?t.partStyles:{},c={};for(let e of new Set([...Object.keys(s),...Object.keys(o)])){let t={};for(let n of[`style`,...Ce,...ve.map(e=>e.key)]){let r=je(s[e]?.[n],o[e]?.[n]);Ee(r)&&(t[n]=r)}c[e]=t}return i.partStyles=c,i}var Ne=`:where(.webim-page, .wb-artboard) :where([data-wb-link]) { color: var(--page-link, inherit); text-decoration-line: var(--page-link-decoration, underline); }
|
|
17
|
+
:where(.webim-page, .wb-artboard) :where([data-wb-link]):hover { color: var(--page-link-hover, var(--page-link, inherit)); text-decoration-line: var(--page-link-hover-decoration, underline); }`,Pe=`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`,Fe={fontFamily:Pe,fontStyle:`normal`,fontWeight:400,letterSpacing:`normal`,textTransform:`none`,lineHeight:1.4,textShadow:`none`},W={light:{background:`#f2f2f2`,surface:`#f2f2f2`,border:`#d1d5db`,text:`#111827`,accent:`#111827`,accentText:`#ffffff`,link:``,linkHover:``,primary:{light:`#4b5563`,main:`#111827`,dark:`#030712`,contrastText:`#ffffff`},secondary:{light:`#a5b4fc`,main:`#6366f1`,dark:`#4338ca`,contrastText:`#ffffff`}},dark:{background:`#0f172a`,surface:`#1e293b`,border:`rgba(226, 232, 240, 0.18)`,text:`#e2e8f0`,accent:`#6366f1`,accentText:`#ffffff`,link:``,linkHover:``,primary:{light:`#a5b4fc`,main:`#6366f1`,dark:`#4338ca`,contrastText:`#ffffff`},secondary:{light:`#5eead4`,main:`#14b8a6`,dark:`#0f766e`,contrastText:`#052e2b`}}},Ie={h1:40,h2:32,h3:26,h4:22,h5:19,h6:16},Le=[`always`,`hover`,`never`],Re={font:`system`,headingFont:`inherit`,headings:Ie,bodySize:16,light:W.light,dark:W.dark},ze={system:{label:`System`,value:Pe},inter:{label:`Inter`,value:`"Inter", ${Pe}`},outfit:{label:`Outfit`,value:`"Outfit", ${Pe}`},serif:{label:`Serif`,value:`Georgia, "Times New Roman", serif`},mono:{label:`Mono`,value:`ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`}},Be=(e,t)=>ze[e]?.value??_(e)??(typeof e==`string`&&e.trim()?`"${e.trim()}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`:t),Ve=(e,...t)=>{let n=Object.assign({},e,...t);return n.primary={...e.primary,...t.reduce((e,t)=>({...e,...t?.primary}),{})},n.secondary={...e.secondary,...t.reduce((e,t)=>({...e,...t?.secondary}),{})},n};function He(e){let{light:t,dark:n,font:r,headingFont:i,headings:a,bodySize:o,linkUnderline:s,responsive:c,...l}=e??{};return{font:r??Re.font,headingFont:i??Re.headingFont,headings:{...Ie,...a??{}},bodySize:o??16,linkUnderline:Le.includes(s)?s:`always`,responsive:Ke(c),light:Ve(W.light,l,t),dark:Ve(W.dark,n)}}function Ue(e){return{"--page-bg":e.background,"--page-surface":e.surface??e.background,"--page-border":e.border??W.light.border,"--page-text":e.text,"--page-accent":e.accent,"--page-accent-text":e.accentText,"--page-link":e.link||e.accent,"--page-link-hover":e.linkHover||e.link||e.accent,"--page-primary-light":e.primary.light,"--page-primary":e.primary.main,"--page-primary-dark":e.primary.dark,"--page-primary-contrast":e.primary.contrastText,"--page-secondary-light":e.secondary.light,"--page-secondary":e.secondary.main,"--page-secondary-dark":e.secondary.dark,"--page-secondary-contrast":e.secondary.contrastText}}function We(e){let t=He(e);return{backgroundColor:`var(--page-bg)`,color:`var(--page-text)`,fontFamily:Be(t.font,Pe),"--page-heading-font":t.headingFont===`inherit`?`inherit`:Be(t.headingFont,`inherit`),...Xe(t.headings),"--page-body-size":Ye(t.bodySize,16),"--page-link-decoration":t.linkUnderline===`always`?`underline`:`none`,"--page-link-hover-decoration":t.linkUnderline===`never`?`none`:`underline`}}var Ge=e=>e!==``&&e!=null;function Ke(e){let t={};for(let{key:n}of ve){let r=e?.[n];if(!r||typeof r!=`object`)continue;let i={};for(let e of Object.keys(Ie))Ge(r.headings?.[e])&&(i[e]=r.headings[e]);let a={...Ge(r.bodySize)?{bodySize:r.bodySize}:null,...Object.keys(i).length?{headings:i}:null};Object.keys(a).length&&(t[n]=a)}return t}function qe(e){let t={};Ge(e?.bodySize)&&(t[`--page-body-size`]=Ye(e.bodySize,16));for(let n of Object.keys(Ie))Ge(e?.headings?.[n])&&(t[`--page-${n}`]=Ye(e.headings[n],Ie[n]));return t}function Je(e){let t=He(e);return ve.map(({key:e,max:n})=>{let r=Object.entries(qe(t.responsive[e]));return r.length?`@media (max-width: ${n}px) { .webim-page { ${r.map(([e,t])=>`${e}: ${t} !important;`).join(` `)} } }`:``}).filter(Boolean).join(`
|
|
18
|
+
`)}function Ye(e,t){return e===``||e==null?`${t}px`:isNaN(Number(e))?String(e):`${Number(e)}px`}function Xe(e){let t={};for(let n of Object.keys(Ie)){let r=e?.[n]??Ie[n];t[`--page-${n}`]=Ye(r,Ie[n])}return t}function Ze(e,t=`light`){let n=He(e);return{...We(e),...Ue(n[t]??n.light)}}function Qe(e,t){return e?.themeRef&&t?.[e.themeRef]||e?.theme}function $e(e,t){return e===`light`||e===`dark`?e:t===`light`||t===`dark`?t:`auto`}function et({page:e,settings:t,tenant:n,apiUrl:r,locale:i}){let a={...t?.global??{},...t?.tenant??{}},o=e.meta??{};return{schema:1,title:e.title,slug:e.slug,param:e.param??``,blocks:i&&o.i18n?.[i]?.blocks||e.blocks,theme:Qe(o,a.builder_themes?.themes),components:a.builder_components?.components??{},custom:o.custom,animations:o.animations,seo:o.seo,direction:o.direction,scheme:o.scheme,locale:i||a.locales?.default,locales:a.locales,tenant:n??``,apiUrl:r??``,settings:a}}var tt=async e=>{let t=await e.json().catch(()=>null);if(!e.ok||t?.success===!1)throw Error(t?.error?.message||`Request failed (${e.status})`);return t?.payload??t};async function nt({apiUrl:e,tenant:t,slug:n,locale:r,preview:i,token:a,page:o,fetch:s}){if(!e)throw Error(`fetchPage: apiUrl is required`);if(!n)throw Error(`fetchPage: slug is required`);let c=s??fetch,l=e.replace(/\/$/,``),u={...t?{"x-tenant":t}:{},...a?{authorization:`Bearer ${a}`}:{}},[d,f]=await Promise.all([c(`${l}/render/${encodeURIComponent(n)}${i?`?preview=${encodeURIComponent(i)}`:``}`,{headers:u}).then(tt),c(`${l}/settings/public`,{headers:u}).then(tt)]),p=et({page:d,settings:f,tenant:t,apiUrl:l,locale:r}),m=[...new Set(rt(p.blocks,p.components).map(e=>e?.type?.resolvedName===`CollectionList`?e.props?.collection:[`TableBlock`,`OrgChartBlock`,`NavbarBlock`,`MenuTreeBlock`,`CalendarBlock`,`MasonryBlock`,`LightboxGallery`,`LogoCarousel`].includes(e?.type?.resolvedName)?e.props?.source:null).filter(Boolean))];if(m.length){let e=e=>e.startsWith(`api:`)?`${l}/data/${encodeURIComponent(e.slice(4))}`:`${l}/dynamic/${encodeURIComponent(e)}?all=1${r?`&locale=${encodeURIComponent(r)}`:``}`,t=await Promise.all(m.map(t=>c(e(t),{headers:u}).then(tt).then(e=>{let n=Array.isArray(e)?e:Array.isArray(e?.data)?e.data:[],r=Number(e?.total?.filtered??e?.total?.all??n.length);return[[t,n],[`${t}:total`,Number.isFinite(r)?r:n.length]]}).catch(()=>[[t,[]]])));p.datasets=Object.fromEntries(t.flat())}let h=Number(o);return Number.isFinite(h)&&h>=1&&(p.datasets={...p.datasets??{},__page:Math.floor(h)}),p}function rt(e,t){let n=[],r=new Set,i=e=>{Object.values(e??{}).forEach(e=>{n.push(e);let a=e?.type?.resolvedName===`ComponentInstance`?e.props?.componentId:null;a&&!r.has(a)&&(r.add(a),i(t?.[a]?.template?.nodes))})};return i(e),n}var it={en:{skip:`Skip to main content`,openMenu:`Open menu`,closeMenu:`Close menu`,prevSlide:`Previous slide`,nextSlide:`Next slide`,prevLogos:`Previous logos`,nextLogos:`Next logos`,goToSlide:`Go to slide {n}`,slide:`Slide {n} of {total}`,pause:`Pause`,play:`Play`,required:`required`,requiredNote:`Fields marked * are required.`,fieldRequired:`This field is required.`,invalid:`Please check this field.`,submitted:`Your form has been sent.`,submitFailed:`Your form could not be sent. Please check the fields and try again.`,back:`Back`,next:`Next`,submit:`Submit`,start:`Start`,tab:`Tab {n}`,item:`Item {n}`,frame:`Embedded content`,video:`Video`,transcript:`Transcript`,close:`Close`,prevItem:`Previous`,nextItem:`Next`,openItem:`Open {name}`,itemOf:`{n} of {total}`,gallery:`Gallery`},tr:{skip:`Ana içeriğe geç`,openMenu:`Menüyü aç`,closeMenu:`Menüyü kapat`,prevSlide:`Önceki slayt`,nextSlide:`Sonraki slayt`,prevLogos:`Önceki logolar`,nextLogos:`Sonraki logolar`,goToSlide:`{n}. slayta git`,slide:`Slayt {n} / {total}`,pause:`Duraklat`,play:`Oynat`,required:`zorunlu`,requiredNote:`* ile işaretli alanlar zorunludur.`,fieldRequired:`Bu alan zorunludur.`,invalid:`Lütfen bu alanı kontrol edin.`,submitted:`Formunuz gönderildi.`,submitFailed:`Formunuz gönderilemedi. Lütfen alanları kontrol edip tekrar deneyin.`,back:`Geri`,next:`İleri`,submit:`Gönder`,start:`Başlangıç`,tab:`Sekme {n}`,item:`Öğe {n}`,frame:`Gömülü içerik`,video:`Video`,transcript:`Metin dökümü`,close:`Kapat`,prevItem:`Önceki`,nextItem:`Sonraki`,openItem:`{name} öğesini aç`,itemOf:`{n} / {total}`,gallery:`Galeri`}};function at(e){let t=it[String(e||``).toLowerCase().split(/[-_]/)[0]]??it.en;return(e,n)=>{let r=t[e]??it.en[e]??e;return n?r.replace(/\{(\w+)\}/g,(e,t)=>n[t]==null?e:String(n[t])):r}}var ot={position:`absolute`,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0 0 0 0)`,whiteSpace:`nowrap`,border:0},st=`.webim-page .wb-file:focus-within{outline:2px solid var(--page-accent,#111827);outline-offset:2px}`,ct=`.webim-skip{position:fixed;left:12px;top:-80px;z-index:2147483647;padding:10px 16px;border-radius:8px;background:var(--page-accent,#111827);color:var(--page-accent-text,#ffffff);font-weight:600;font-size:15px;text-decoration:none;box-shadow:0 4px 16px rgba(0,0,0,.25);transition:top 120ms}.webim-skip:focus{top:12px;outline:2px solid var(--page-text,#111827);outline-offset:2px}@media (prefers-reduced-motion: reduce){.webim-skip{transition:none}}.webim-page [data-wb][tabindex="-1"]:focus{outline:none}`,lt=e=>{for(let t of Array.isArray(e?.attributes)?e.attributes:[])if(String(t?.name??``).trim().toLowerCase()===`role`)return String(t.value??``).trim().toLowerCase();return``};function ut(e,t,n,r=0){let i=t?.[e];if(!i||r>8)return null;if(i.type?.resolvedName===`ComponentInstance`){let e=n?.[i.props?.componentId]?.template;return e?ut(e.rootId,e.nodes,n,r+1):null}return{id:e,node:i,nodes:t}}function dt(e,t,n,r,i=new Set){let a=t?.[e];if(!a||a.hidden)return null;if(a.type?.resolvedName===`ComponentInstance`){let e=a.props?.componentId,t=n?.[e]?.template;return!t||i.has(e)?null:dt(t.rootId,t.nodes,n,r,new Set(i).add(e))}if(r(a,e))return{id:e,node:a};let o=[...a.nodes??[],...Object.values(a.linkedNodes??{})];for(let e of o){let a=dt(e,t,n,r,i);if(a)return a}return null}var ft=new Set([`NavbarBlock`,`MenuTreeBlock`,`BreadcrumbsBlock`,`DrawerTrigger`]),pt=e=>ft.has(e.type?.resolvedName)||[`banner`,`navigation`].includes(lt(e.props));function mt(e,t){if(!e?.ROOT)return null;let n=e=>e?{id:e.id,htmlId:e.node.props?.htmlId||`webim-main`}:null,r=dt(`ROOT`,e,t,e=>lt(e.props)===`main`);if(r)return n(r);let i=e.ROOT.nodes??[],a=0;for(;a<i.length&&dt(i[a],e,t,pt);)a+=1;if(a===0||a>=i.length)return null;let o=ut(i[a],e,t);return o?n({id:o.id,node:o.node}):null}var ht=new Set([`ar`,`he`,`fa`,`ur`,`ps`,`sd`,`ug`,`yi`,`dv`,`ckb`]),gt=e=>ht.has(String(e||``).toLowerCase().split(/[-_]/)[0])?`rtl`:`ltr`,_t=(e,t)=>e===`ltr`||e===`rtl`?e:t?gt(t):void 0,vt=`prop:`,yt=e=>String(e??``).startsWith(vt)?String(e).slice(5):``,bt=e=>typeof e==`string`&&e.trim()!==``||typeof e==`number`||typeof e==`boolean`;function xt(e,t){let n=Array.isArray(e?.compProps)?e.compProps:[];if(!n.length||!t||typeof t!=`object`)return e;let r=e;for(let e of n){let n=t[e?.id];if(!bt(n))continue;let i=yt(e.field);i?r={...r,[i]:n}:e.field===`text`?r={...r,text:n,parts:null}:e.field===`src`?r={...r,src:n}:e.field===`bg`?r={...r,style:{...r.style??{},backgroundImage:n}}:e.field===`href`&&(r={...r,href:n})}return r}function St(e,t){if(!(e&&typeof e==`object`&&Object.values(e).some(bt)))return t;let n=t?.mapProps;return{...t,mapProps:(t,r)=>{let i=xt(t,e);return n?n(i,r):i}}}var Ct=o(),wt=/^(https?:|mailto:|tel:)/i,Tt=/^[a-z][a-z0-9+.-]*:/i;function Et(e){let t=String(e??``).trim();return t?wt.test(t)||t.startsWith(`//`)?t:Tt.test(t)?``:t:``}var Dt=/^\\([\\`*_{}[\]()#+\-.!~>|])/,Ot=/^(`+)([\s\S]*?[^`])\1(?!`)/,kt=/^!\[([^\]]*)\]\(\s*<?([^)\s>]*)>?(?:\s+"([^"]*)")?\s*\)/,At=/^\[((?:[^[\]]|\[[^\]]*\])*)\]\(\s*<?([^)\s>]*)>?(?:\s+"([^"]*)")?\s*\)/,jt=/^<((?:https?:\/\/|mailto:)[^>\s]+)>/,Mt=/^https?:\/\/[^\s<>"'`]+[^\s<>"'`.,;:!?)\]}]/,Nt=/^(\*\*|__)(?=\S)([\s\S]*?\S)\1/,Pt=/^~~(?=\S)([\s\S]*?\S)~~/,Ft=/^(\*|_)(?=\S)([\s\S]*?\S)\1/,It=/[\\`*_~![<\n]|https?:\/\//,Lt=(e,t)=>e.map(e=>e.br||e.image?{...e,...t.href?{href:t.href,target:t.target}:null}:{...e,...t});function Rt(e,t={}){let n=String(e??``),r=t.newTab?`_blank`:void 0,i=[],a=``,o=0,s=()=>{a&&i.push({text:a}),a=``},c=e=>{s(),i.push(...e)};for(;o<n.length;){let e=n.slice(o),i=o>0?n[o-1]:``,s=Dt.exec(e);if(s){a+=s[1],o+=s[0].length;continue}if(e[0]===`
|
|
19
|
+
`){/ {2,}$/.test(a)?(a=a.replace(/ +$/,``),c([{br:!0}])):a.endsWith(`\\`)?(a=a.slice(0,-1),c([{br:!0}])):a+=` `,o+=1;continue}if(s=Ot.exec(e),s){c([{text:(/^ .* $/.test(s[2])?s[2].slice(1,-1):s[2]).replace(/\n/g,` `),code:!0}]),o+=s[0].length;continue}if(s=kt.exec(e),s){let e=Et(s[2]);e?c([{image:{src:e,alt:s[1]||``,title:s[3]||``}}]):a+=s[1],o+=s[0].length;continue}if(s=At.exec(e),s){let e=Et(s[2]),n=Rt(s[1],t);c(e?Lt(n,{href:e,target:r}):n),o+=s[0].length;continue}if(s=jt.exec(e)??(/[\s(<]/.test(i)||o===0?Mt.exec(e):null),s){let e=s[1]??s[0],t=Et(e);t?c([{text:e.replace(/^mailto:/i,``),href:t,target:r}]):a+=e,o+=s[0].length;continue}if(s=Nt.exec(e),s&&(s[1]===`**`||!/\w/.test(i))){c(Lt(Rt(s[2],t),{bold:!0})),o+=s[0].length;continue}if(s=Pt.exec(e),s){c(Lt(Rt(s[1],t),{strike:!0})),o+=s[0].length;continue}if(s=Ft.exec(e),s&&(s[1]===`*`||!/\w/.test(i)&&!/\w/.test(n[o+s[0].length]??``))){c(Lt(Rt(s[2],t),{italic:!0})),o+=s[0].length;continue}a+=n[o],o+=1;let l=n.slice(o).search(It);l>0?(a+=n.slice(o,o+l),o+=l):l===-1&&(a+=n.slice(o),o=n.length)}return s(),i}var zt=/^[ \t]*$/,Bt=/^ {0,3}(`{3,}|~{3,})[ \t]*([^`\s]*)[ \t]*$/,Vt=/^ {0,3}(#{1,6})(?:[ \t]+(.*?))?[ \t]*$/,Ht=/^ {0,3}(?:(?:\*[ \t]*){3,}|(?:-[ \t]*){3,}|(?:_[ \t]*){3,})$/,Ut=/^ {0,3}>[ \t]?(.*)$/,Wt=/^( *)([-*+])[ \t]+(.*)$/,Gt=/^( *)(\d{1,9})[.)][ \t]+(.*)$/,Kt=/^ {0,3}(=+|-+)[ \t]*$/,qt=/^\[([ xX])\][ \t]+(.*)$/,Jt=/^ {0,3}\|?(?:[ \t]*:?-+:?[ \t]*\|)+[ \t]*:?-*:?[ \t]*\|?[ \t]*$/,Yt=e=>(/^[ \t]*/.exec(e)[0].match(/\t/g)||[]).length*3+/^[ \t]*/.exec(e)[0].length;function Xt(e){let t=Wt.exec(e);if(t)return{indent:t[1].length,ordered:!1,text:t[3]};let n=Gt.exec(e);return n?{indent:n[1].length,ordered:!0,start:Number(n[2]),text:n[3]}:null}function Zt(e){let t=[],n=``;for(let r=0;r<e.length;r++)e[r]===`\\`&&e[r+1]===`|`?(n+=`|`,r+=1):e[r]===`|`?(t.push(n),n=``):n+=e[r];return t.push(n),t.length&&zt.test(t[0])&&t.shift(),t.length&&zt.test(t[t.length-1])&&t.pop(),t.map(e=>e.trim())}var Qt=e=>{let t=e.trim(),n=t.startsWith(`:`),r=t.endsWith(`:`);return n&&r?`center`:r?`right`:n?`left`:null};function $t(e){let t=e.filter(e=>!(e.text&&!e.text.trim()));if(t.length===1&&t[0].image&&!t[0].href){let{src:e,alt:n,title:r}=t[0].image;return[{type:`image`,src:e,alt:n,caption:r||``,align:`left`,wrap:!1}]}return e.length?[{type:`p`,parts:e}]:[]}function en(e){let t=String(e??``).replace(/\r\n?/g,`
|
|
20
20
|
`).replace(/^/,``).split(`
|
|
21
|
-
`),n=null;return t.map(e=>{let t=
|
|
22
|
-
`)}),r=i+1;continue}let o=
|
|
23
|
-
`),t)}),r+=1,s.length=0;break}if(
|
|
24
|
-
`),t)))}return n}function rn(e,t,n,r){let i=Zt(e[t]),a=i.indent,o=[],s=null,c=t;for(;c<e.length;){let t=e[c],n=Zt(t);if(n&&n.indent<=a+1){if(n.ordered!==i.ordered)break;s={lines:[n.text]},o.push(s),c+=1;continue}if(Bt.test(t)){let t=c;for(;t<e.length&&Bt.test(e[t]);)t+=1;if(!(t<e.length&&(Xt(e[t])>=a+2||Zt(e[t])&&Zt(e[t]).ordered===i.ordered)))break;s?.lines.push(``),c=t;continue}if(!s)break;if(Xt(t)>=a+2)s.lines.push(t.slice(Math.min(t.length-t.trimStart().length,a+2)));else if(!n)s.lines.push(t.trim());else break;c+=1}return n.push({type:i.ordered?`ol`:`ul`,...i.ordered&&i.start!==1?{start:i.start}:null,items:o.map(e=>{let t=Jt.exec(e.lines[0]??``);t&&(e.lines[0]=t[2]);let n=nn(e.lines,r),i=n[0]?.type===`p`?n.shift():null;return{parts:i?i.parts:[],...n.length?{blocks:n}:null,...t?{task:t[1].toLowerCase()===`x`}:null}})}),c}function an(e,t={}){return String(e??``).trim()?nn(tn(e),t):[]}function on(e,t){let n={data:e,depth:0,parent:null,children:null},r=[n];for(;r.length;){let e=r.pop(),n=t(e.data);if(n?.length){e.children=n.map(t=>({data:t,depth:e.depth+1,parent:e,children:null}));for(let t=e.children.length-1;t>=0;--t)r.push(e.children[t])}}return n}function sn(e,t){let n=[e];for(;n.length;){let e=n.pop();if(t(e),e.children)for(let t=e.children.length-1;t>=0;--t)n.push(e.children[t])}}function cn(e,t){let n=[e],r=[];for(;n.length;){let e=n.pop();if(r.push(e),e.children)for(let t of e.children)n.push(t)}for(;r.length;)t(r.pop())}function ln(e,[t,n],r){let i=(e,t)=>({_:e,parent:null,children:null,A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:t}),a=i(e,0);a.a=a,sn(a,e=>{e._.children&&(e.children=e._.children.map((t,n)=>{let r=i(t,n);return r.a=r,r.parent=e,r}))}),a.parent=i(null,0),a.parent.a=a.parent,a.parent.children=[a];let o=e=>e.children?e.children[0]:e.t,s=e=>e.children?e.children[e.children.length-1]:e.t,c=(e,t,n)=>{let r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n},l=e=>{let t=0,n=0;for(let r=e.children.length-1;r>=0;--r){let i=e.children[r];i.z+=t,i.m+=t,t+=i.s+(n+=i.c)}},u=(e,t,n)=>e.a.parent===t.parent?e.a:n,d=(e,t,n)=>{if(!t)return n;let i=e,a=e,l=t,d=i.parent.children[0],f=i.m,p=a.m,m=l.m,h=d.m;for(;l=s(l),i=o(i),l&&i;){d=o(d),a=s(a),a.a=e;let t=l.z+m-i.z-f+r(l._,i._);t>0&&(c(u(l,e,n),e,t),f+=t,p+=t),m+=l.m,f+=i.m,h+=d.m,p+=a.m}return l&&!s(a)&&(a.t=l,a.m+=m-p),i&&!o(d)&&(d.t=i,d.m+=f-h,n=e),n};return cn(a,e=>{let t=e.parent.children,n=e.i?t[e.i-1]:null;if(e.children){l(e);let t=(e.children[0].z+e.children[e.children.length-1].z)/2;n?(e.z=n.z+r(e._,n._),e.m=e.z-t):e.z=t}else n&&(e.z=n.z+r(e._,n._));e.parent.A=d(e,n,e.parent.A||t[0])}),a.parent.m=-a.z,sn(a,e=>{e._.x=e.z+e.parent.m,e.m+=e.parent.m}),sn(e,e=>{e.x*=t,e.y=e.depth*n}),e}var un=20,dn={S:{width:200,height:80},M:{width:240,height:80},L:{width:280,height:100},XL:{width:320,height:120}},fn={across:20,down:80,stack:20},pn=fn.across/2,mn={pad:20,header:40},hn=2*fn.stack,gn=`__root__`,_n=20,vn=e=>Math.round(e/un)*un;function yn(e){let{people:t,direction:n}=e,r=dn[e.cardSize]??dn.M,i=n===`right`,a=new Map;for(let e of t){let t=e.parent??gn;a.has(t)||a.set(t,[]),a.get(t).push(e)}let o=i?r.height+fn.across:r.width+fn.across,s=i?r.width+fn.down:r.height+fn.down,c=e=>e.id===gn||!e.collapsed?a.get(e.id)??[]:[],l=e=>e.kind===`group`,u=e=>c(e).filter(e=>e.placement!==`below`),d=e=>c(e).filter(e=>e.placement===`below`),f=(e,t)=>e.memberTeams===`inside`?c(t):[],p=e=>u(e).flatMap(t=>e.memberTeams===`inside`?f(e,t):[t]),m=e=>{let t=u(e).length,n=i||e.memberTeams===`inside`,r=Math.max(1,Math.min(t,e.memberColumns||(n?t:1)));return{cols:r,rows:Math.ceil(t/r)}},h=(e,t)=>{let n=f(e,t).length;return r.height+(n?hn+n*(r.height+fn.stack)-fn.stack:0)},g=e=>{let t=u(e),{cols:n,rows:i}=m(e),a=[],o=mn.header;for(let r=0;r<i;r+=1)a.push(o),o+=Math.max(...t.slice(r*n,(r+1)*n).map(t=>h(e,t)))+fn.stack;return{width:(t.length?n*(r.width+fn.across)-fn.across:r.width)+2*mn.pad,height:(t.length?o-fn.stack:mn.header)+mn.pad,tops:a}},_=(e,t=c(e))=>{if(i||e.id===gn)return t;let n=[],r=[],a=()=>{r.length>1?n.push({id:`${r[0].id}:stack`,people:r,line:e.columns}):n.push(...r),r=[]};for(let e of t)c(e).length||l(e)?(a(),n.push(e)):r.push(e);return a(),n},v=(e,t,n)=>{let r=n;for(let n=Math.ceil(t/s);n>0;--n)r=[{id:`${e}:${n}`,spacer:!0,below:r}];return r},y=i?r.width:r.height,b=on({id:gn},e=>{if(e.people)return v(e.id,(e.people.length-1)*(r.height+fn.stack),[]);if(e.spacer)return e.below;if(l(e)){let t=p(e).flatMap(e=>_(e)),n=_(e,d(e)),r=i?[...n,...t]:[...t,...n],a=i?g(e).width:g(e).height;return v(`${e.id}:frame`,a-y,r)}return _(e)}),x=e=>{if(!l(e.data))return 0;let t=g(e.data);return(i?t.height-r.height:t.width-r.width)/o};ln(b,[o,s],(e,t)=>(e.parent===t.parent?1:1+2*un/o)+(x(e)+x(t))/2);let S=new Map,C=[],w=[],T=[],E=new Map([[gn,{x:0,y:0}]]),D=new Map,O=(e,t,a,o,s=null)=>{let c=E.get(t??gn),u={x:c.x+(e.dx||0),y:c.y+(e.dy||0)},d=l(e)?g(e):null,f={person:e,x:vn(a.x)+u.x,y:vn(a.y)+u.y,width:d?d.width:r.width,height:d?d.height:r.height};if(E.set(e.id,u),S.set(e.id,f),(d?w:C).push(f),o?.inner)T.push(o.line===`center`?{kind:`straight`,source:o.above?.id??e.parent,target:e.id,from:`bottom`,to:`top`}:{kind:`rail`,source:e.parent,target:e.id,from:`bottom`,to:o.line===`right`?`right`:`left`,side:o.line===`right`?`right`:`left`,drop:hn/2});else if(e.parent&&!s){let t=D.get(e.parent);t!==void 0&&!e.lineFrom&&!e.lineTo&&!(o?.line===`center`&&o.above)?T.push({kind:`exit`,source:e.parent,target:e.id,from:i?`right`:`bottom`,to:o?.line===`left`||i?`left`:`top`,exit:t,into:o?.line===`left`?`side`:`top`,level:o?.line===`left`?vn(o.top)+c.y-fn.down/2:null}):T.push(bn(e,o,n))}};sn(b,e=>{let t=e.data;if(t.id===gn||t.spacer)return;let n=e.y-s;if(t.people){t.people.forEach((i,a)=>O(i,i.parent,{x:e.x-r.width/2,y:n+a*(r.height+fn.stack)},{line:t.line,above:t.people[a-1],top:n}));return}if(l(t)){let a=g(t),o=i?{x:n,y:e.x-a.height/2}:{x:e.x-a.width/2,y:n};O(t,t.parent,o,null);let s=E.get(t.id);p(t).forEach(e=>D.set(e.id,i?vn(o.y)+s.y+a.height+pn:vn(o.x)+s.x-pn));let{cols:c}=m(t);u(t).forEach((e,n)=>{let i={x:o.x+mn.pad+n%c*(r.width+fn.across),y:o.y+a.tops[Math.floor(n/c)]},s=f(t,e);O(e,t.id,i,null,t),s.forEach((n,a)=>O(n,e.id,{x:i.x,y:i.y+r.height+hn+a*(r.height+fn.stack)},{line:e.columns,above:s[a-1],inner:!0},t))});return}O(t,t.parent,i?{x:n,y:e.x-r.height/2}:{x:e.x-r.width/2,y:n},null)});let k=[...w,...C],A=Math.min(...k.map(e=>e.x))-_n,j=Math.min(...k.map(e=>e.y))-_n;for(let e of k)e.x-=A,e.y-=j;let M=T.map(e=>Cn(e,S,i)).filter(Boolean),N=[...k.flatMap(e=>[e.x+e.width]),...M.flatMap(e=>e.points.map(e=>e.x))],P=[...k.flatMap(e=>[e.y+e.height]),...M.flatMap(e=>e.points.map(e=>e.y))];return{cards:C,frames:w,links:M,width:Math.ceil(Math.max(...N)+_n),height:Math.ceil(Math.max(...P)+_n),size:r}}function bn(e,t,n){let r=n===`right`,i=r?`right`:`bottom`,a=r?`left`:`top`;return(e.lineTo===`left`||e.lineTo===`right`)&&!r&&(!e.lineFrom||e.lineFrom===`bottom`)?{kind:`elbow`,source:e.parent,target:e.id,from:`bottom`,to:e.lineTo,side:e.lineTo}:e.lineFrom||e.lineTo?{kind:`step`,source:e.parent,target:e.id,from:e.lineFrom||i,to:e.lineTo||a}:t?t.line===`center`?t.above?{kind:`straight`,source:t.above.id,target:e.id,from:i,to:a}:{kind:`step`,source:e.parent,target:e.id,from:i,to:a}:t.line===`right`?{kind:`rail`,source:e.parent,target:e.id,from:i,to:`right`,side:`right`}:{kind:`rail`,source:e.parent,target:e.id,from:i,to:`left`,side:`left`}:{kind:`step`,source:e.parent,target:e.id,from:i,to:a}}function xn(e,t){return t===`top`?{x:e.x+e.width/2,y:e.y}:t===`bottom`?{x:e.x+e.width/2,y:e.y+e.height}:t===`left`?{x:e.x,y:e.y+e.height/2}:{x:e.x+e.width,y:e.y+e.height/2}}var Sn={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0}};function Cn(e,t,n){let r=t.get(e.source),i=t.get(e.target);if(!r||!i)return null;let a=xn(r,e.from),o=xn(i,e.to),s;if(e.kind===`straight`)s=[a,o];else if(e.kind===`rail`){let t=a.y+(e.drop??fn.down/2),n=e.side===`right`?o.x+pn:o.x-pn;s=[a,{x:a.x,y:t},{x:n,y:t},{x:n,y:o.y},o]}else if(e.kind===`exit`){let{exit:t,into:r,level:i}=e;if(n){let e=a.x+fn.across/2;s=[a,{x:e,y:a.y},{x:e,y:t},{x:o.x-fn.down/2,y:t},{x:o.x-fn.down/2,y:o.y},o]}else{let e=a.y+fn.stack/2;s=r===`side`?[a,{x:a.x,y:e},{x:t,y:e},{x:t,y:i},{x:o.x-pn,y:i},{x:o.x-pn,y:o.y},o]:[a,{x:a.x,y:e},{x:t,y:e},{x:t,y:o.y-fn.down/2},{x:o.x,y:o.y-fn.down/2},o]}}else if(e.kind===`elbow`){let t=e.side===`right`?a.x<o.x+pn:a.x>o.x-pn,n=e.side===`right`?o.x+pn:o.x-pn;return s=t?[a,{x:a.x,y:a.y+fn.down/2},{x:n,y:a.y+fn.down/2},{x:n,y:o.y},o]:[a,{x:a.x,y:o.y},o],{points:Tn(s),square:!t}}else s=wn(a,e.from,o,e.to);return{points:Tn(s)}}function wn(e,t,n,r){let i=e=>e===`top`||e===`bottom`;if(t===`bottom`&&r===`top`&&n.y>e.y){let t=(e.y+n.y)/2;return[e,{x:e.x,y:t},{x:n.x,y:t},n]}if(t===`right`&&r===`left`&&n.x>e.x){let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}let a={x:e.x+Sn[t].x*20,y:e.y+Sn[t].y*20},o={x:n.x+Sn[r].x*20,y:n.y+Sn[r].y*20};return[e,a,i(t)?{x:a.x,y:o.y}:{x:o.x,y:a.y},o,n]}var Tn=e=>e.filter((e,t,n)=>t===0||e.x!==n[t-1].x||e.y!==n[t-1].y);function En(e,t=10){let{points:n}=e,r=e.square?0:t,i=`M ${n[0].x} ${n[0].y}`;for(let e=1;e<n.length-1;e+=1){let[t,a,o]=[n[e-1],n[e],n[e+1]],s=Math.min(r,Math.hypot(a.x-t.x,a.y-t.y)/2,Math.hypot(o.x-a.x,o.y-a.y)/2),c=(e,t)=>{let n=Math.hypot(t.x-e.x,t.y-e.y)||1;return{x:e.x+(t.x-e.x)/n*s,y:e.y+(t.y-e.y)/n*s}},l=c(a,t),u=c(a,o);i+=` L ${l.x} ${l.y} Q ${a.x} ${a.y} ${u.x} ${u.y}`}let a=n.at(-1);return`${i} L ${a.x} ${a.y}`}var Dn=`#4f46e5`,On={S:.85,M:1,L:1.15,XL:1.3},kn={name:14,title:12.5,unit:13.5,department:11,band:12.5},An=1.3,jn={classic:12,band:6},Mn={left:`flex-start`,center:`center`,right:`flex-end`},Nn={card:`var(--page-bg, #ffffff)`,text:`var(--page-text, #111827)`,border:`rgba(148, 163, 184, 0.45)`,line:`rgba(148, 163, 184, 0.8)`},Pn=e=>String(e).replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e]),Fn=e=>Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e}:${t}`).join(`;`),In=e=>({display:`-webkit-box`,"-webkit-line-clamp":e,"-webkit-box-orient":`vertical`,overflow:`hidden`,"overflow-wrap":`anywhere`}),Ln=e=>`#${[1,3,5].map(t=>Math.round(parseInt(e.slice(t,t+2),16)*.55).toString(16).padStart(2,`0`)).join(``)}`,Rn=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0].toUpperCase()).join(``)||`?`;function zn(e,t,n,r){let i=e=>kn[e]*n*An,a=(e,t,n)=>Math.max(1,Math.min(n,Math.floor((e+.5)/i(t)))),o=e.height-jn.classic-(r.department?kn.department*n*1.4:0),s=r.title?t?a(o-i(`title`),`name`,2):1:a(o,`name`,t?20:2),c=e.height*.55-jn.band;return{name:s,title:a(o-s*i(`name`),`title`,t?20:2),unit:a(o,`unit`,t?20:3),top:a(c,`band`,t?20:2),bottom:a(e.height-c-2*jn.band,`band`,t?20:1),single:a(e.height-jn.band,`band`,t?20:3)}}function Bn(e,t,n,r){let i=On[e.textSize||t.textSize]??1,a=e.textAlign||t.textAlign||`left`,o=e.color||Dn,s=zn(n,t.wrapText,i,e),c={"box-sizing":`border-box`,width:`100%`,height:`100%`,overflow:`hidden`,position:`relative`,"font-family":`inherit`,"line-height":An};if(t.cardStyle===`banded`){let t={display:`flex`,"align-items":`center`,"justify-content":Mn[a],"text-align":a,padding:`0 10px`,color:`#fff`,"font-weight":600,"font-size":`${kn.band*i}px`,"min-height":0},n=e.title||e.name;return n&&!(e.title&&e.name)?`<div style="${Fn({...c,...t,"border-radius":`10px`,background:`linear-gradient(${o} 50%, ${Ln(o)} 50%)`})}"><div style="${Fn(In(s.single))}">${Pn(n)}</div></div>`:`<div style="${Fn({...c,display:`flex`,"flex-direction":`column`,"border-radius":`10px`,background:Ln(o)})}"><div style="${Fn({...t,flex:`0 0 55%`,background:o})}"><div style="${Fn(In(s.top))}">${Pn(e.title)}</div></div><div style="${Fn({...t,"flex-grow":1})}"><div style="${Fn(In(s.bottom))}">${Pn(e.name)}</div></div></div>`}let l=!!(e.photo||e.name),u=n.height>=120?56:n.height>=100?48:40,d=[];e.showPhoto&&l&&d.push(`<div style="${Fn({flex:`none`,width:`${u}px`,height:`${u}px`,"border-radius":`50%`,overflow:`hidden`,background:o,color:`#fff`,display:`flex`,"align-items":`center`,"justify-content":`center`,"font-weight":600,"font-size":`${u*.38}px`})}">`+(e.photo?`<img src="${e.photo}" alt="" style="width:100%;height:100%;object-fit:cover;display:block"/>`:Pn(Rn(e.name)))+`</div>`);let f=[];return l&&e.name&&f.push(`<div style="${Fn({...In(s.name),"font-weight":600,"font-size":`${kn.name*i}px`})}">${Pn(e.name)}</div>`),e.title&&f.push(`<div style="${Fn({...In(l?s.title:s.unit),"font-size":`${(l?kn.title:kn.unit)*i}px`,"font-weight":l?400:600,opacity:l?.7:1})}">${Pn(e.title)}</div>`),e.department&&f.push(`<div style="${Fn({"white-space":`nowrap`,overflow:`hidden`,"text-overflow":`ellipsis`,"font-size":`${kn.department*i}px`,"line-height":1.4,color:o,"font-weight":600,"letter-spacing":`0.2px`})}">${Pn(e.department)}</div>`),d.push(`<div style="${Fn({"min-width":0,"flex-grow":1,"max-height":`100%`,overflow:`hidden`,padding:`6px 0`,"box-sizing":`border-box`,"text-align":a})}">${f.join(``)}</div>`),`<div style="${Fn({...c,display:`flex`,"align-items":`center`,gap:`10px`,padding:`0 10px 0 14px`,border:`1px solid ${r.border}`,"border-radius":`25px`,background:r.card,color:r.text})}"><div style="${Fn({position:`absolute`,left:0,top:0,bottom:0,width:`5px`,background:o})}"></div>${d.join(``)}</div>`}function Vn(e,t){let n=e.color||Dn;return`<div style="${Fn({"box-sizing":`border-box`,width:`100%`,height:`100%`,"border-radius":`30px`,border:`2px ${t?`solid`:`dashed`} ${n}`,background:`${n}14`,"font-family":`inherit`})}"><div style="${Fn({height:`${mn.header}px`,display:`flex`,"align-items":`center`,padding:`0 16px`})}"><div style="${Fn({"white-space":`nowrap`,overflow:`hidden`,"text-overflow":`ellipsis`,"font-weight":700,"font-size":`14px`,color:n})}">${Pn(e.name)}</div></div></div>`}var Hn=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),W=e(((e,t)=>{t.exports=Hn()}))(),Un=(0,l.createContext)({tenant:``,apiUrl:`/api`,locale:``,settings:null,revision:0}),Wn=(0,l.createContext)(null),Gn=e=>{let t=Number(e?.__page);if(Number.isFinite(t)&&t>=1)return Math.floor(t);if(typeof window>`u`)return 1;let n=Number(new URLSearchParams(window.location.search).get(`page`));return Number.isFinite(n)&&n>=1?Math.floor(n):1},Kn=()=>{if(typeof window>`u`)return{};let e={};return new URLSearchParams(window.location.search).forEach((t,n)=>{n.startsWith(`f_`)&&n.length>2&&t!==``&&(e[n.slice(2)]=t)}),e},qn=e=>{let t={...e&&typeof e==`object`&&!Array.isArray(e)?e:{},...Kn()};return Object.fromEntries(Object.entries(t).filter(([,e])=>typeof e==`string`&&e.trim()!==``))},Jn=(0,l.createContext)(null),G=(...e)=>({"data-wb-part":e.filter(Boolean).join(` `)}),Yn=(0,l.createContext)(null);function Xn(e,t){if(!t)return[];let n=nr(e?.data,t);return(Array.isArray(n)?n:[n]).map(e=>e&&typeof e==`object`?e.id:e).filter(e=>e!=null&&e!==``).map(String)}function Zn(e,t,n){if(!t||!n||!Array.isArray(e))return[];let r=String(n.id??``);return r?e.filter(e=>Xn(e,t).includes(r)):[]}var Qn=e=>ir(e).trim().toLowerCase();function $n(e,t){let n=Array.isArray(e?.rules)?e.rules.filter(e=>e&&e.op):[];if(!n.length||!t?.entry)return!0;let r=e=>{if(e.op===`children`||e.op===`nochildren`){let n=Zn(t.all,t.parentField,t.entry).length>0;return e.op===`children`?n:!n}let n=nr(t.entry.data,e.field),r=Qn(n),i=String(e.value??``).trim().toLowerCase(),a=(Array.isArray(n)?n:[n]).map(e=>e&&typeof e==`object`?e.id??e.code:null).filter(e=>e!=null).map(e=>String(e).toLowerCase()),o=Array.isArray(n)?n.length>0:r!==``;switch(e.op){case`set`:return o;case`empty`:return!o;case`eq`:return r===i||a.includes(i);case`neq`:return r!==i&&!a.includes(i);case`contains`:return i===``||r.includes(i);default:return!0}};return e.match===`any`?n.some(r):n.every(r)}function er({showWhen:e,children:t}){return $n(e,(0,l.useContext)(Yn))?t:null}var tr=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function nr(e,t){if(t)return t.includes(`.`)?t.split(`.`).reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e):e?.[t]}var rr=e=>{let t=[];for(let[n,r]of Object.entries(e??{})){if(!/^[\w-]+$/.test(n))continue;t.push(n);let e=Array.isArray(r)?r[0]:r,i=Array.isArray(r)?`${n}.0`:n;if(e&&typeof e==`object`&&!Array.isArray(e))for(let n of Object.keys(e))/^[\w-]+$/.test(n)&&t.push(`${i}.${n}`)}return t};function ir(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):typeof e==`object`&&!Array.isArray(e)&&(`label`in e||`name`in e||`slug`in e)?String(e.label??e.name??e.slug??``):typeof e==`object`&&!Array.isArray(e)&&Number.isFinite(Number(e.lat))&&Number.isFinite(Number(e.lng))?`${e.lat}, ${e.lng}`:Array.isArray(e)?e.map(e=>typeof e==`string`?e:Array.isArray(e?.parts)?e.parts.map(e=>e?.text??``).join(``):Array.isArray(e?.items)?e.items.map(e=>e?.text??``).join(` `):e&&(e.label!=null||e.name!=null||e.slug!=null)?String(e.label??e.name??e.slug):``).filter(Boolean).join(` `):``}var ar=new Set([`href`,`src`,`poster`,`backgroundImage`]),or=[`created_at`,`updated_at`,`publish_at`],sr=[`date`,`short`,`iso`,`datetime`,`time`],cr={date:{dateStyle:`long`},short:{day:`2-digit`,month:`2-digit`,year:`numeric`},datetime:{dateStyle:`long`,timeStyle:`short`},time:{timeStyle:`short`}},lr=e=>String(e).padStart(2,`0`);function ur(e,t=`date`,n){if(typeof e!=`string`&&!(e instanceof Date))return``;let r=typeof e==`string`?e.match(/^(\d{4})-(\d{2})-(\d{2})$/):null,i=r?new Date(Number(r[1]),Number(r[2])-1,Number(r[3])):new Date(e);if(Number.isNaN(i.getTime()))return``;if(t===`iso`)return`${i.getFullYear()}-${lr(i.getMonth()+1)}-${lr(i.getDate())}`;try{return new Intl.DateTimeFormat(n||void 0,cr[t]??cr.date).format(i)}catch{return i.toISOString()}}function dr(e,t,n){let r=t?.data??{},i=rr(r),a=[...sr].sort((e,t)=>t.length-e.length).join(`|`),o=[...i.map(tr).map(e=>`${e}(?:\\.(?:${a}))?`),...or.filter(e=>!i.includes(e)).map(e=>`${e}(?:\\.(?:${a}))?`)],s=RegExp(`:(${o.sort((e,t)=>t.length-e.length).join(`|`)})`,`g`),c=e=>{if(i.includes(e))return ir(nr(r,e));let[,o,s]=e.match(RegExp(`^(.*?)(?:\\.(${a}))?$`));if(!i.includes(o)&&or.includes(o))return ur(t?.[o],s||`date`,n);let c=nr(r,o);return s?ur(c,s,n):ir(c)},l=e=>{let t=e.match(RegExp(`^:(${o.sort((e,t)=>t.length-e.length).join(`|`)})$`)),n=t?nr(r,t[1]):void 0;return Array.isArray(n)&&n.length?ir(n[0]):e.replace(s,(e,t)=>c(t))},u=(e,t)=>typeof e==`string`&&ar.has(t)?l(e):typeof e==`string`?e.replace(s,(e,t)=>c(t)):Array.isArray(e)?e.map(e=>u(e)):e&&typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,u(t,e)])):e;return u(e)}var fr=[`Top`,`Right`,`Bottom`,`Left`],pr=[`TopLeft`,`TopRight`,`BottomRight`,`BottomLeft`];function mr(e){let t={},n=(n,r)=>{n in e||(t[n]=r)};for(let[r,i]of Object.entries(e))if(r===`margin`||r===`padding`){let[e,t=e,a=e,o=t]=typeof i==`number`?[i]:String(i).trim().split(/\s+/);[e,t,a,o].forEach((e,t)=>n(`${r}${fr[t]}`,e))}else if(r===`borderRadius`&&(typeof i==`number`||!/\s|\//.test(String(i))))pr.forEach(e=>n(`border${e}Radius`,i));else if(r===`border`){let[e,t,...r]=String(i).trim().split(/\s+/);fr.forEach(i=>{n(`border${i}Width`,e),n(`border${i}Style`,t),n(`border${i}Color`,r.join(` `))})}else r===`background`&&!/(gradient|url)\(/i.test(String(i))?n(`backgroundColor`,i):t[r]=i;return t}var hr=mr({margin:0,fontWeight:700,lineHeight:1.2,fontFamily:`var(--page-heading-font, inherit)`}),gr=Le,_r=e=>`var(--page-${e}, ${Le[e]??Le.h2}px)`,vr=mr({margin:0,fontSize:`var(--page-body-size, 16px)`}),yr={display:`inline-block`,textDecoration:`none`,cursor:`pointer`,backgroundColor:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`},br={flexGrow:1,display:`flex`,flexDirection:`column`,position:`relative`},xr={display:`flex`,flexDirection:`column`};function Sr({style:e}){let t=e?.backgroundVideo;if(!t)return null;let n={position:`absolute`,inset:0,width:`100%`,height:`100%`,zIndex:-1,pointerEvents:`none`},r=e?.overlayColor?`color-mix(in srgb, ${e.overlayColor} ${e.overlayOpacity??50}%, transparent)`:null;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`video`,{src:t,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{...n,objectFit:`cover`}}),r&&(0,W.jsx)(`div`,{style:{...n,background:r}})]})}var Cr=(e,t)=>e?.backgroundVideo?{position:`relative`,...t,...z(e)}:{...t,...z(e)};function wr({style:e,nodeRef:t,children:n}){return(0,W.jsxs)(`div`,{ref:t,style:{...br,...z(e)},children:[(0,W.jsx)(Sr,{style:e}),n]})}function Tr({style:e,nodeRef:t,children:n}){return(0,W.jsxs)(`section`,{ref:t,style:Cr(e,xr),children:[(0,W.jsx)(Sr,{style:e}),n]})}function Er({style:e,freeLayout:t,nodeRef:n,children:r}){let i=t?{position:`relative`,minHeight:240}:null;return(0,W.jsxs)(`div`,{ref:n,style:i?{...i,...Cr(e)}:Cr(e),children:[(0,W.jsx)(Sr,{style:e}),r]})}function Dr({href:e,target:t,style:n,nodeRef:r,children:i}){return(0,W.jsxs)(`a`,{ref:r,href:e||`#`,target:t||void 0,rel:t===`_blank`?`noopener noreferrer`:void 0,style:{...Jr,...Cr(n)},children:[(0,W.jsx)(Sr,{style:n}),i]})}function Or({text:e,parts:t,tag:n=`h2`,style:r,linked:i,nodeRef:a}){return(0,W.jsx)(n,{ref:a,style:{...hr,fontSize:_r(n),...z(r)},children:Mr(t,e,i)})}var kr={fontFamily:Be.mono.value,background:`rgba(148, 163, 184, 0.18)`,padding:`1px 5px`,borderRadius:4,fontSize:`0.9em`},Ar=mr({fontFamily:Be.mono.value,background:`rgba(148, 163, 184, 0.16)`,border:`1px solid rgba(148, 163, 184, 0.3)`,borderRadius:6,padding:`12px 14px`,fontSize:`0.875em`,lineHeight:1.55,overflowX:`auto`,whiteSpace:`pre`});function jr(e,t=[],n,r,i=!1){let a=e;return t.includes(`sup`)?a=(0,W.jsx)(`sup`,{children:a}):t.includes(`sub`)&&(a=(0,W.jsx)(`sub`,{children:a})),t.includes(`code`)&&(a=(0,W.jsx)(`code`,{style:kr,children:a})),t.includes(`strike`)&&(a=(0,W.jsx)(`s`,{children:a})),t.includes(`underline`)&&(a=(0,W.jsx)(`u`,{children:a})),t.includes(`italic`)&&(a=(0,W.jsx)(`em`,{children:a})),t.includes(`bold`)&&(a=(0,W.jsx)(`strong`,{children:a})),n?a=(0,W.jsx)(`a`,{href:n,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,"data-wb-link":i?void 0:``,style:{...i&&{color:`inherit`},...t.includes(`nounderline`)&&{textDecoration:`none`}},children:a}):t.includes(`nounderline`)&&(a=(0,W.jsx)(`span`,{style:{textDecoration:`none`},children:a})),a}function Mr(e,t,n){return e?.length?e.map((e,t)=>{if(e.slot)return(0,W.jsx)(l.Fragment,{children:n?.[e.slot]??null},t);if(e.parts)return(0,W.jsx)(l.Fragment,{children:Mr(e.parts,``,n)},t);if(e.br)return(0,W.jsx)(`br`,{},t);let r=e.text;return e.image&&(r=(0,W.jsx)(`img`,{src:e.image.src,alt:e.image.alt||``,title:e.image.title||void 0,style:{maxWidth:`100%`,verticalAlign:`middle`}})),e.sup?r=(0,W.jsx)(`sup`,{children:r}):e.sub&&(r=(0,W.jsx)(`sub`,{children:r})),e.code&&(r=(0,W.jsx)(`code`,{style:kr,children:r})),e.strike&&(r=(0,W.jsx)(`s`,{children:r})),e.underline&&(r=(0,W.jsx)(`u`,{children:r})),e.italic&&(r=(0,W.jsx)(`em`,{children:r})),e.bold&&(r=(0,W.jsx)(`strong`,{children:r})),(e.color||e.background)&&(r=(0,W.jsx)(`span`,{style:{...e.color&&{color:e.color},...e.background&&{backgroundColor:e.background}},children:r})),e.href?r=(0,W.jsx)(`a`,{href:e.href,target:e.target||void 0,rel:e.target===`_blank`?`noopener noreferrer`:void 0,"data-wb-link":``,style:{...e.color&&{color:e.color},...e.nounderline&&{textDecoration:`none`}},children:r}):e.nounderline&&(r=(0,W.jsx)(`span`,{style:{textDecoration:`none`},children:r})),(0,W.jsx)(l.Fragment,{children:r},t)}):t}function Nr({parts:e,text:t,marks:n,href:r,target:i,style:a}){return(0,W.jsx)(`span`,{style:z(a),children:e?.length?Mr(e,t):jr(t,n,r,i,!!z(a)?.color)})}var Pr=[`left`,`center`,`right`,`justify`];function Fr(e,t,n){let r=e&&e.cellStyles;if(!r||typeof r!=`object`||Array.isArray(r))return{};let i=r[`${t}:${n}`];return i&&typeof i==`object`&&!Array.isArray(i)?i:{}}function Ir(e,t){let n=e||{},r=typeof n.bold==`boolean`?n.bold:!!t;return{textAlign:Pr.includes(n.align)?n.align:`left`,fontWeight:r?700:400,fontStyle:n.italic?`italic`:void 0,color:typeof n.color==`string`&&n.color?n.color:void 0,backgroundColor:typeof n.bg==`string`&&n.bg?n.bg:void 0}}function Lr({align:e=`center`,width:t,wrap:n}={}){let r=t?`${t}%`:void 0;if(e===`full`)return{width:`100%`};let i=e===`left`||e===`right`;return i&&(n??!0)?{float:e,width:r??`50%`,maxWidth:`100%`,marginTop:`4px`,marginBottom:`12px`,...e===`left`?{marginRight:`20px`,marginLeft:0}:{marginLeft:`20px`,marginRight:0}}:i?{width:r??`fit-content`,maxWidth:`100%`,...e===`left`?{marginLeft:0,marginRight:`auto`}:{marginLeft:`auto`,marginRight:0}}:{width:r??`fit-content`,maxWidth:`100%`,marginLeft:`auto`,marginRight:`auto`}}var Rr={red:`#e03131`,orange:`#e8590c`,yellow:`#c98a00`,blue:`#1c7ed6`,purple:`#7048e8`,pink:`#d6336c`,green:`#2f9e44`,grey:`#868e96`},zr={red:`rgba(224, 49, 49, 0.12)`,orange:`rgba(232, 89, 12, 0.12)`,yellow:`rgba(201, 138, 0, 0.15)`,blue:`rgba(28, 126, 214, 0.12)`,purple:`rgba(112, 72, 232, 0.12)`,pink:`rgba(214, 51, 108, 0.12)`,green:`rgba(47, 158, 68, 0.12)`,grey:`rgba(134, 142, 150, 0.16)`};function Br(e){let t=Rr[e?.color]??(e?.color||``),n=zr[e?.background]??(e?.background||``);return{...t&&{color:t},...n&&{backgroundColor:n,padding:`8px 12px`,borderRadius:`8px`}}}function Vr(e=[],t,n){let r=n??((e,n)=>Mr(e,n,t));return e.map((n,i)=>{let a={marginTop:0,marginBottom:i===e.length-1?0:14};if(n.type===`image`){if(!n.src)return null;let e=(0,W.jsx)(`img`,{...G(`image`),src:n.src,alt:n.alt||``,style:{width:`100%`,display:`block`,borderRadius:6}});return(0,W.jsxs)(`figure`,{...G(`figure`),style:{marginLeft:0,marginRight:0,...a,...Lr(n)},children:[n.href?(0,W.jsx)(`a`,{href:n.href,target:n.target||void 0,rel:n.target===`_blank`?`noopener noreferrer`:void 0,style:{display:`block`},children:e}):e,n.caption&&(0,W.jsx)(`figcaption`,{...G(`caption`),style:{fontSize:13,opacity:.65,marginTop:6,textAlign:`center`},children:n.caption})]},i)}if(n.type===`video`)return ni(n.url)?(0,W.jsx)(`div`,{...G(`video`),style:{...a,...Lr({align:n.align,wrap:n.wrap,width:n.width??100})},children:(0,W.jsx)(ri,{url:n.url,autoplay:n.autoplay,muted:n.muted,loop:n.loop,controls:n.controls??!0,start:n.start})},i):null;if(n.type===`button`){if(!(typeof n.label==`string`&&n.label.trim()))return null;let e=Number.isFinite(Number(n.radius))?Number(n.radius):8,t=[`center`,`right`].includes(n.align)?n.align:`left`;return(0,W.jsx)(`div`,{style:{...a,textAlign:t},children:(0,W.jsx)(`table`,{role:`presentation`,cellPadding:0,cellSpacing:0,style:{borderCollapse:`separate`,display:`inline-table`},children:(0,W.jsx)(`tbody`,{children:(0,W.jsx)(`tr`,{children:(0,W.jsx)(`td`,{style:{backgroundColor:n.bg||`var(--page-accent, #4f46e5)`,borderRadius:e},children:(0,W.jsx)(`a`,{...G(`button`),href:n.href||`#`,target:n.target||void 0,rel:n.target===`_blank`?`noopener noreferrer`:void 0,style:{display:`inline-block`,padding:`13px 24px`,color:n.color||`#ffffff`,fontSize:15,fontWeight:600,lineHeight:1.2,textDecoration:`none`,borderRadius:e},children:n.label})})})})})},i)}if(n.type===`divider`)return(0,W.jsx)(`hr`,{...G(`divider`),style:{...a,border:0,borderTop:`1px solid rgba(148, 163, 184, 0.4)`}},i);if(n.type===`table`){let e=Array.isArray(n.rows)?n.rows.filter(Array.isArray):[];if(!e.length)return null;let t=n.header!==!1,o=n.borders===!1?void 0:`1px solid rgba(148, 163, 184, 0.4)`,s=Number.isFinite(n.padX)?Math.max(0,n.padX):10,c=Number.isFinite(n.padY)?Math.max(0,n.padY):6,l=Math.max(0,Number(n.spacing)||0),u={border:o,padding:`${c}px ${s}px`,verticalAlign:`top`},d=Array.isArray(n.heights)?n.heights:null,f=e=>{let t=Number(d?.[e]);return Number.isFinite(t)&&t>0?{height:`${t}px`}:void 0},p=t?e.slice(1):e,m=Array.isArray(n.widths)?n.widths:null,h=(e,t,r)=>({...u,...Ir(Fr(n,e,t),r)}),g=n.spans&&typeof n.spans==`object`?n.spans:null,_=new Set;g&&e.forEach((e,t)=>e.forEach((e,n)=>{let r=g[`${t}:${n}`];if(!r)return;let i=Math.max(1,Number(r.c)||1),a=Math.max(1,Number(r.r)||1);for(let e=0;e<a;e+=1)for(let r=0;r<i;r+=1)(e||r)&&_.add(`${t+e}:${n+r}`)}));let v=(e,t)=>{let n=g?.[`${e}:${t}`],r=Math.max(1,Number(n?.c)||1),i=Math.max(1,Number(n?.r)||1);return{colSpan:r>1?r:void 0,rowSpan:i>1?i:void 0}};return(0,W.jsxs)(`table`,{...G(`table`),style:{...a,borderCollapse:l?`separate`:`collapse`,borderSpacing:l?`${l}px`:void 0,width:`100%`,fontSize:vr.fontSize,tableLayout:m?`fixed`:void 0},children:[typeof n.caption==`string`&&n.caption.trim()?(0,W.jsx)(`caption`,{...G(`caption`),style:{captionSide:`top`,textAlign:`left`,fontWeight:600,padding:`0 0 6px`},children:n.caption}):null,m&&(0,W.jsx)(`colgroup`,{children:m.map((e,t)=>(0,W.jsx)(`col`,{style:{width:`${e}%`}},t))}),t&&(0,W.jsx)(`thead`,{children:(0,W.jsx)(`tr`,{...G(`header-row`),style:f(0),children:e[0].map((e,t)=>_.has(`0:${t}`)?null:(0,W.jsx)(`th`,{...G(`header-cell`),scope:`col`,style:h(0,t,!0),...v(0,t),children:Array.isArray(e)?r(e):e},t))})}),(0,W.jsx)(`tbody`,{children:p.map((e,n)=>(0,W.jsx)(`tr`,{...G(`row`),style:f(t?n+1:n),children:e.map((e,i)=>{let a=t?n+1:n;return _.has(`${a}:${i}`)?null:(0,W.jsx)(`td`,{...G(`cell`),style:h(a,i,!1),...v(a,i),children:Array.isArray(e)?r(e):e},i)})},n))})]},i)}if(n.type===`ul`||n.type===`ol`){let e=n.type;return(0,W.jsx)(e,{...G(`list`,n.type===`ol`&&`list-ordered`),style:{fontSize:vr.fontSize,...a,...Br(n),paddingLeft:n.background?34:24},start:n.type===`ol`?n.start:void 0,children:(n.items??[]).map((e,n)=>{let i=typeof e.task==`boolean`;return(0,W.jsxs)(`li`,{...G(`list-item`),style:{marginBottom:4,...i&&{listStyleType:`none`,marginLeft:-18}},children:[i&&(0,W.jsx)(`span`,{style:{marginRight:6},children:e.task?`☑`:`☐`}),r(e.parts,e.text),e.blocks?.length?Vr(e.blocks,t,r):null]},n)})},i)}if(n.type===`quote`)return(0,W.jsx)(`blockquote`,{...G(`quote`),style:{...Wr,fontSize:vr.fontSize,...a,...Br(n),...n.background&&{paddingLeft:20}},children:n.blocks?.length?Vr(n.blocks,t,r):r(n.parts,n.text)},i);if(n.type===`code`)return(0,W.jsx)(`pre`,{...G(`code`),"data-lang":n.lang||void 0,style:{...a,...Ar},children:(0,W.jsx)(`code`,{style:{fontFamily:`inherit`},children:n.text})},i);if(gr[n.type]){let e=n.type;return(0,W.jsx)(e,{...G(`heading`,`heading-${n.type}`),style:{...hr,fontSize:_r(n.type),...a,...Br(n)},children:r(n.parts,n.text)},i)}return(0,W.jsx)(`p`,{...G(`paragraph`),style:{...vr,...a,...Br(n)},children:r(n.parts,n.text)},i)})}function Hr({content:e,style:t,linked:n,nodeRef:r}){return(0,W.jsx)(`div`,{ref:r,style:{display:`flow-root`,...z(t)},children:Vr(e,n)})}function Ur({markdown:e,newTab:t,style:n,nodeRef:r}){let i=(0,l.useMemo)(()=>an(e,{newTab:t}),[e,t]);return(0,W.jsx)(`div`,{ref:r,style:{display:`flow-root`,...z(n)},children:Vr(i)})}var Wr=mr({margin:0,padding:`8px 0 8px 20px`,borderLeftWidth:`4px`,borderLeftStyle:`solid`,borderLeftColor:`var(--page-accent, rgba(148, 163, 184, 0.6))`});function Gr({text:e,parts:t,style:n,linked:r,nodeRef:i}){return(0,W.jsx)(`blockquote`,{ref:i,style:{...Wr,...z(n)},children:Mr(t,e,r)})}function Kr({ordered:e,items:t=[],style:n,nodeRef:r}){return(0,W.jsx)(e?`ol`:`ul`,{ref:r,style:{margin:0,paddingLeft:24,...z(n)},children:t.map((e,t)=>(0,W.jsx)(`li`,{...G(`item`),style:{marginBottom:4},children:Mr(e.parts,e.text)},t))})}function qr({text:e,parts:t,style:n,linked:r,nodeRef:i}){return(0,W.jsx)(`p`,{ref:i,style:{...vr,...z(n)},children:Mr(t,e,r)})}var Jr={display:`block`,color:`inherit`,textDecoration:`none`,cursor:`pointer`},Yr={textUnderlineOffset:3,cursor:`pointer`};function Xr({text:e,parts:t,href:n,target:r,style:i,linked:a,nodeRef:o}){return(0,W.jsx)(`a`,{ref:o,"data-wb-link":``,href:n||`#`,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,style:{...Yr,...z(i)},children:Mr(t,e,a)})}function Zr({text:e,parts:t,href:n,target:r,style:i,linked:a,nodeRef:o}){return(0,W.jsx)(`a`,{ref:o,href:n||`#`,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,style:{...yr,...z(i)},children:Mr(t,e,a)})}function Qr({src:e,alt:t,decorative:n,style:r,nodeRef:i}){return e?(0,W.jsx)(`img`,{ref:i,src:e,alt:n?``:t||``,role:n?`presentation`:void 0,style:{display:`block`,maxWidth:`100%`,...z(r)}}):null}function $r({text:e,locale:t}){let n=String(e??``).trim();return n?(0,W.jsxs)(`details`,{...G(`transcript`),style:{marginTop:8,fontSize:14},children:[(0,W.jsx)(`summary`,{...G(`transcript-toggle`),style:{cursor:`pointer`,fontWeight:600},children:ot(t)(`transcript`)}),(0,W.jsx)(`div`,{...G(`transcript-text`),style:{marginTop:8,lineHeight:1.6},children:n.split(/\n\s*\n/).map((e,t)=>(0,W.jsx)(`p`,{style:{margin:`0 0 8px`,whiteSpace:`pre-line`},children:e},t))})]}):null}var ei=e=>(Array.isArray(e)?e:[]).filter(e=>typeof e?.src==`string`&&e.src.trim());function ti({src:e,poster:t,controls:n=!0,autoplay:r=!1,loop:i=!1,muted:a=!1,title:o=``,tracks:s,transcript:c=``,style:u,nodeRef:d}){let{locale:f}=(0,l.useContext)(Un);if(!e)return null;let p=ei(s),m=typeof o==`string`&&o.trim()?o.trim():void 0,h=typeof c==`string`&&c.trim(),g=(0,W.jsx)(`video`,{ref:h?void 0:d,...h?{"data-wb-self":``}:{},src:e,poster:t||void 0,controls:n,"aria-label":m,autoPlay:r,muted:a||r,loop:i,playsInline:!0,crossOrigin:p.length?`anonymous`:void 0,style:{display:`block`,width:`100%`,maxWidth:`100%`,...z(u)},children:p.map((e,t)=>(0,W.jsx)(`track`,{kind:e.kind===`captions`?`captions`:`subtitles`,src:e.src,srcLang:e.srclang||void 0,label:e.label||e.srclang||void 0,default:e.default?!0:void 0},e.key??t))});return h?(0,W.jsxs)(`div`,{ref:d,"data-wb-redirect":``,style:{width:`100%`},children:[g,(0,W.jsx)($r,{text:c,locale:f})]}):g}var ni=(e=``)=>(e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/)||e.match(/^([\w-]{11})$/))?.[1];function ri({url:e,autoplay:t=!1,muted:n=!1,loop:r=!1,controls:i=!0,start:a,title:o=``,captions:s=!1,transcript:c=``,style:u,nodeRef:d}){let{locale:f}=(0,l.useContext)(Un),p=ni(e);if(!p)return null;let m=new URLSearchParams({rel:`0`});if(t&&m.set(`autoplay`,`1`),(n||t)&&m.set(`mute`,`1`),i||m.set(`controls`,`0`),r&&(m.set(`loop`,`1`),m.set(`playlist`,p)),Number(a)>0&&m.set(`start`,String(Math.floor(Number(a)))),s){m.set(`cc_load_policy`,`1`);let e=String(f||``).split(/[-_]/)[0];e&&m.set(`cc_lang_pref`,e)}let h=(0,W.jsx)(`iframe`,{...G(`frame`),src:`https://www.youtube-nocookie.com/embed/${p}?${m}`,title:typeof o==`string`&&o.trim()?o.trim():ot(f)(`video`),allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,border:0}});return typeof c==`string`&&c.trim()?(0,W.jsxs)(`div`,{ref:d,"data-wb-redirect":``,style:{width:`100%`},children:[(0,W.jsx)(`div`,{"data-wb-self":``,style:{position:`relative`,width:`100%`,paddingTop:`56.25%`,...z(u)},children:h}),(0,W.jsx)($r,{text:c,locale:f})]}):(0,W.jsx)(`div`,{ref:d,style:{position:`relative`,width:`100%`,paddingTop:`56.25%`,...z(u)},children:h})}function ii({src:e,title:t,allowFullscreen:n=!0,style:r,nodeRef:i}){let{locale:a}=(0,l.useContext)(Un);return e?(0,W.jsx)(`iframe`,{ref:i,src:e,title:t||ot(a)(`frame`),loading:`lazy`,allowFullScreen:n,style:{display:`block`,width:`100%`,height:300,border:0,...z(r)}}):null}function ai(e,{toolbar:t=!0,page:n,zoom:r}={}){let i=Dt(e);if(!i)return``;let a=[];return t===!1&&a.push(`toolbar=0&navpanes=0`),Number(n)>1&&a.push(`page=${Number(n)}`),r&&r!==`auto`&&a.push(`zoom=${r}`),a.length?`${i.split(`#`)[0]}#${a.join(`&`)}`:i}function oi({src:e,title:t,toolbar:n=!0,page:r,zoom:i=`auto`,link:a=!0,linkLabel:o,fallbackText:s,style:c,nodeRef:l}){let u=Dt(e);if(!u)return null;let d=o||`Open the PDF`,f=t||`PDF document`;return(0,W.jsxs)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,width:`100%`,height:600,...z(c)},children:[(0,W.jsx)(`object`,{data:ai(u,{toolbar:n,page:r,zoom:i}),type:`application/pdf`,"aria-label":f,...G(`document`),style:{display:`block`,flex:`1 1 auto`,minHeight:0,width:`100%`,border:0},children:(0,W.jsxs)(`div`,{...G(`fallback`),style:{display:`grid`,placeItems:`center`,gap:8,height:`100%`,padding:16,textAlign:`center`},children:[(0,W.jsx)(`p`,{style:{...vr,opacity:.75},children:s||`This browser can’t show the PDF here.`}),!a&&(0,W.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, inherit)`},children:d})]})},ai(u,{toolbar:n,page:r,zoom:i})),a&&(0,W.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,...G(`link`),style:{flexShrink:0,marginTop:8,color:`var(--page-accent, inherit)`,fontSize:14},children:d})]})}var si=/(^|[\s,>+~{}])(:root|html|body)(?=$|[\s,{.:#[>+~])/g;function ci(e){return`@scope ([data-wb-embed]) {\n${e.replace(si,`$1:scope`)}\n}`}function li({code:e,runScripts:t=!0,scopeStyles:n=!1,style:r,nodeRef:i}){let[a,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{a&&(a.innerHTML=e||``,n?(a.setAttribute(`data-wb-embed`,``),a.querySelectorAll(`style`).forEach(e=>{e.textContent=ci(e.textContent||``)})):a.removeAttribute(`data-wb-embed`),t&&a.querySelectorAll(`script`).forEach(e=>{let t=document.createElement(`script`);for(let{name:n,value:r}of e.attributes)t.setAttribute(n,r);t.text=e.textContent,e.replaceWith(t)}))},[a,e,t,n]),(0,W.jsx)(`div`,{ref:e=>{o(e),i&&i(e)},style:z(r)})}function ui({height:e,style:t,nodeRef:n}){return(0,W.jsx)(`div`,{ref:n,style:{height:e||32,flexShrink:0,alignSelf:`stretch`,...z(t)}})}function di({style:e,nodeRef:t}){return(0,W.jsx)(`div`,{ref:t,style:{height:1,alignSelf:`stretch`,flexShrink:0,...z(e)}})}function fi({style:e,nodeRef:t}){return(0,W.jsx)(`div`,{ref:t,style:{flexShrink:0,...z(e)}})}var pi={position:`absolute`,top:`50%`,transform:`translateY(-50%)`,width:36,height:36,borderRadius:`50%`,border:0,cursor:`pointer`,background:`rgba(17, 24, 39, 0.45)`,color:`#fff`,fontSize:20,lineHeight:1,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:0},mi={bottom:{inset:`auto 0 0 0`,padding:`40px 24px 20px`,background:`linear-gradient(transparent, rgba(0, 0, 0, 0.55))`},top:{inset:`0 0 auto 0`,padding:`20px 24px 40px`,background:`linear-gradient(rgba(0, 0, 0, 0.55), transparent)`},middle:{inset:0,display:`flex`,flexDirection:`column`,justifyContent:`center`,padding:24,textShadow:`0 2px 12px rgba(0, 0, 0, 0.6)`}},hi=48;function gi({count:e,renderSlide:t,autoplay:n=!0,interval:r=5,height:i=320,swipe:a=!0,style:o,nodeRef:s}){let[c,u]=(0,l.useState)(0),[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(null),{locale:y}=(0,l.useContext)(Un),b=e?Math.min(c,e-1):0;if((0,l.useEffect)(()=>{window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches&&g(!0)},[]),(0,l.useEffect)(()=>{if(!n||h||d||p||_||e<2)return;let t=setInterval(()=>u(t=>(t+1)%e),Math.max(2,Number(r)||5)*1e3);return()=>clearInterval(t)},[n,h,d,p,_,r,e]),!e)return null;let x=ot(y),S=t=>u((t+e)%e),C=()=>{if(!_)return;let{dx:e}=_;v(null),e<-48?S(b+1):e>hi&&S(b-1)};return(0,W.jsxs)(`div`,{ref:s,role:`region`,"aria-roledescription":`carousel`,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onFocus:()=>m(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},onPointerDown:a&&e>1?e=>{e.pointerType===`mouse`&&e.button!==0||e.target.closest(`button`)||(e.currentTarget.setPointerCapture(e.pointerId),v({startX:e.clientX,dx:0}))}:void 0,onPointerMove:_?e=>v(t=>t&&{...t,dx:e.clientX-t.startX}):void 0,onPointerUp:C,onPointerCancel:C,style:{position:`relative`,overflow:`hidden`,width:`100%`,height:i,touchAction:`pan-y`,userSelect:_?`none`:void 0,cursor:_?`grabbing`:void 0,...z(o)},children:[(0,W.jsx)(`div`,{...G(`track`),style:{display:`flex`,height:`100%`,transform:`translateX(calc(${-b*100}% + ${_?.dx??0}px))`,transition:_?`none`:`transform 450ms ease`},children:Array.from({length:e},(n,r)=>(0,W.jsx)(`div`,{...G(`slide`,r===b&&`slide-active`),role:`group`,"aria-roledescription":`slide`,"aria-label":x(`slide`,{n:r+1,total:e}),"aria-hidden":r!==b||void 0,inert:r!==b||void 0,style:{position:`relative`,width:`100%`,flexShrink:0,overflow:`hidden`},children:t(r)},r))}),e>1&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,...G(`arrow`,`arrow-prev`),"aria-label":x(`prevSlide`),style:{...pi,left:12},onClick:()=>S(b-1),children:`‹`}),(0,W.jsx)(`button`,{type:`button`,...G(`arrow`,`arrow-next`),"aria-label":x(`nextSlide`),style:{...pi,right:12},onClick:()=>S(b+1),children:`›`}),(0,W.jsx)(`div`,{...G(`dots`),style:{position:`absolute`,bottom:10,left:0,right:0,display:`flex`,justifyContent:`center`,gap:6},children:Array.from({length:e},(e,t)=>(0,W.jsx)(`button`,{type:`button`,"aria-label":x(`goToSlide`,{n:t+1}),"aria-current":t===b?`true`:void 0,...G(`dot`,t===b&&`dot-active`),onClick:()=>S(t),style:{width:8,height:8,borderRadius:`50%`,border:0,padding:0,cursor:`pointer`,background:t===b?`#ffffff`:`rgba(255, 255, 255, 0.45)`}},t))}),n&&(0,W.jsx)(`button`,{type:`button`,...G(`pause`,h&&`pause-stopped`),"aria-label":x(h?`play`:`pause`),onClick:()=>g(!h),style:{...pi,top:`auto`,bottom:8,right:12,transform:`none`,width:28,height:28},children:(0,W.jsx)(`svg`,{viewBox:`0 0 24 24`,width:14,height:14,fill:`currentColor`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:h?`M8 5v14l11-7z`:`M7 5h4v14H7zM13 5h4v14h-4z`})})})]})]})}var _i=(e,t)=>({position:`absolute`,inset:0,backgroundImage:e?`url(${e})`:`none`,backgroundColor:t||(e?void 0:`rgba(148, 163, 184, 0.25)`),backgroundSize:`cover`,backgroundPosition:`center`});function vi({slides:e=[],captionPosition:t=`bottom`,captionAlign:n=`left`,...r}){return e.length?(0,W.jsx)(gi,{...r,count:e.length,renderSlide:r=>{let i=e[r];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{...G(`slide-image`),style:_i(i.image)}),(i.title||i.text)&&(0,W.jsxs)(`div`,{...G(`caption`),style:{position:`absolute`,color:`#fff`,textAlign:n,...mi[t]??mi.bottom},children:[i.title&&(0,W.jsx)(`div`,{...G(`caption-title`),style:{fontSize:22,fontWeight:700},children:i.title}),i.text&&(0,W.jsx)(`div`,{...G(`caption-text`),style:{fontSize:14,opacity:.9,marginTop:4},children:i.text})]})]})}}):null}function yi({slides:e=[],linked:t,...n}){return e.length?(0,W.jsx)(gi,{...n,count:e.length,renderSlide:n=>{let r=e[n];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{...G(`slide-background`),style:_i(r.image,r.color)}),(0,W.jsx)(`div`,{...G(`slide-content`),style:{position:`absolute`,inset:0,display:`flex`,flexDirection:`column`},children:t?.[r.key]??null})]})}}):null}var bi=256,xi=e=>Math.log(Math.tan(Math.PI/4+Math.max(-85,Math.min(85,e))*Math.PI/360)),Si=(e,t,n)=>{let r=bi*2**n;return{x:(Number(t)+180)/360*r,y:(.5-xi(Number(e))/(2*Math.PI))*r}},Ci=(e,t)=>{if(e===``||e==null)return null;let n=Number(e);return Number.isFinite(n)&&Math.abs(n)<=t?n:null},wi=e=>!!e&&Ci(e.lat,90)!==null&&Ci(e.lng,180)!==null;function Ti(e,t,n=`directions`,r=``){let i=`${e},${t}`;return n===`place`?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i)}${r?`&query_place_id=`:``}`:`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(i)}`}var Ei=`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,Di=e=>{let t=String(e??``).trim();return/^https?:\/\//i.test(t)&&t.includes(`{z}`)&&t.includes(`{x}`)&&t.includes(`{y}`)?t:Ei},K=e=>{try{return new URL(e.replace(/[{}]/g,``)).host}catch{return e}},Oi=(e,t,n=13)=>`https://www.openstreetmap.org/?mlat=${e}&mlon=${t}#map=${Math.round(Number(n)||13)}/${e}/${t}`;function ki({markers:e,lat:t,lng:n,zoom:r=``,height:i=320,pinSize:a=22,pinLink:o=`directions`,link:s=!1,label:c=``,tileUrl:u=``,tileError:d=``,style:f,nodeRef:p,inert:m}){let h=(0,l.useRef)(null),[g,_]=(0,l.useState)(1200),v=Di(u),[y,b]=(0,l.useState)({key:``,failed:0,loaded:0});(0,l.useEffect)(()=>{let e=h.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>_(t=>e.clientWidth&&e.clientWidth!==t?e.clientWidth:t);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let x=(Array.isArray(e)?e:[]).filter(wi),S=wi({lat:t,lng:n})?{lat:Ci(t,90),lng:Ci(n,180)}:x.length?{lat:x.reduce((e,t)=>e+Ci(t.lat,90),0)/x.length,lng:x.reduce((e,t)=>e+Ci(t.lng,180),0)/x.length}:null,C=Math.max(80,Number(i)||320),w=Ci(r,19)?Math.min(Math.max(Math.round(Number(r)),1),19):(()=>{if(x.length<2)return 13;for(let e=19;e>=1;e--){let t=x.map(t=>Si(Ci(t.lat,90),Ci(t.lng,180),e)),n=Math.max(...t.map(e=>e.x))-Math.min(...t.map(e=>e.x)),r=Math.max(...t.map(e=>e.y))-Math.min(...t.map(e=>e.y));if(n<=g*.8&&r<=C*.7)return e}return 1})(),T={width:`100%`,...z(f)};if(!S)return(0,W.jsx)(`div`,{ref:e=>{h.current=e,typeof p==`function`&&p(e)},style:{...T,minHeight:80,display:`grid`,placeItems:`center`,fontSize:13,opacity:.6,border:`1px dashed var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:8},children:`Set the coordinates in Settings`});let E=Si(S.lat,S.lng,w),D={x:E.x-g/2,y:E.y-C/2},O=[],k=[];for(let e=Math.floor(D.x/bi);e<=Math.floor((D.x+g)/bi);e++)O.push(e);for(let e=Math.floor(D.y/bi);e<=Math.floor((D.y+C)/bi);e++)k.push(e);let A=2**w,j=`${v}|${w}`,M=y.key===j?y:{key:j,failed:0,loaded:0},N=e=>b(t=>{let n=t.key===j?t:{key:j,failed:0,loaded:0};return{...n,[e]:n[e]+1}}),P=M.failed>0&&M.loaded===0;return(0,W.jsxs)(`div`,{ref:e=>{h.current=e,typeof p==`function`&&p(e)},style:T,children:[(0,W.jsxs)(`div`,{role:`img`,"aria-label":c||`Map`,...G(`map`),style:{position:`relative`,height:C,overflow:`hidden`,borderRadius:`inherit`,background:`var(--page-surface, #e5e7eb)`},children:[k.map(e=>O.map(t=>{let n=(t%A+A)%A;return e<0||e>=A?null:(0,W.jsx)(`img`,{src:v.replace(`{z}`,w).replace(`{x}`,n).replace(`{y}`,e),alt:``,onLoad:()=>N(`loaded`),onError:e=>{e.currentTarget.style.visibility=`hidden`,N(`failed`)},width:bi,height:bi,loading:`lazy`,style:{position:`absolute`,left:Math.round(t*bi-D.x),top:Math.round(e*bi-D.y),width:bi,height:bi,userSelect:`none`,pointerEvents:`none`}},`${j}:${t}-${e}`)})),P&&m&&d?(0,W.jsx)(`div`,{style:{...Fe,position:`absolute`,left:12,right:12,top:12,padding:`8px 12px`,borderRadius:8,background:`rgba(15, 23, 42, 0.78)`,color:`#fff`,fontSize:12,lineHeight:1.45},children:d.replace(`{host}`,K(v))}):null,x.map((e,t)=>{let n=Si(Ci(e.lat,90),Ci(e.lng,180),w),r=n.x-D.x,i=n.y-D.y,s=e.color||`var(--page-accent, #dc2626)`,c=o===`none`||m?null:Ti(Ci(e.lat,90),Ci(e.lng,180),o,e.title);return(0,W.jsxs)(c?`a`:`span`,{...G(`pin`),href:c||void 0,target:c?`_blank`:void 0,rel:c?`noopener noreferrer`:void 0,title:c&&e.title||void 0,style:{position:`absolute`,left:r,top:i,transform:`translate(-50%, -100%)`,cursor:c?`pointer`:`default`,textDecoration:`none`,color:`inherit`},children:[e.title?(0,W.jsx)(`span`,{...G(`pin-label`),style:{position:`absolute`,left:`50%`,bottom:`100%`,transform:`translateX(-50%)`,marginBottom:4,padding:`3px 7px`,borderRadius:6,background:`var(--page-surface, #ffffff)`,color:`var(--page-text, #111827)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.5))`,boxShadow:`0 2px 8px rgba(15, 23, 42, 0.25)`,fontSize:12,lineHeight:1.35,whiteSpace:`nowrap`},children:e.title}):null,(0,W.jsxs)(`svg`,{width:Math.max(10,Number(a)||22),height:Math.max(10,Number(a)||22),viewBox:`0 0 24 24`,fill:s,style:{display:`block`},children:[(0,W.jsx)(`path`,{d:`M12 22s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z`}),Ai[e.icon]?(0,W.jsx)(`path`,{d:Ai[e.icon],transform:`translate(12 10.5) scale(0.46) translate(-12 -12)`,fill:`none`,stroke:`#fff`,strokeWidth:4,strokeLinecap:`round`,strokeLinejoin:`round`}):(0,W.jsx)(`circle`,{cx:`12`,cy:`10.5`,r:`2.6`,fill:`#fff`})]})]},t)}),(0,W.jsx)(`a`,{href:`https://www.openstreetmap.org/copyright`,target:`_blank`,rel:`noopener noreferrer`,onClick:m?e=>e.preventDefault():void 0,...G(`credit`),style:{position:`absolute`,right:4,bottom:3,padding:`1px 5px`,borderRadius:4,background:`rgba(255, 255, 255, 0.75)`,color:`#334155`,fontSize:10,textDecoration:`none`},children:`© OpenStreetMap`})]}),s?(0,W.jsx)(`a`,{href:Oi(S.lat,S.lng,w),target:`_blank`,rel:`noopener noreferrer`,onClick:m?e=>e.preventDefault():void 0,...G(`link`),style:{display:`inline-block`,marginTop:6,fontSize:12,color:`var(--page-accent, inherit)`},children:`View larger map`}):null]})}var Ai={check:`M4 12l5 5L20 6`,close:`M6 6l12 12M18 6L6 18`,plus:`M12 5v14M5 12h14`,minus:`M5 12h14`,"arrow-right":`M4 12h16M13 5l7 7-7 7`,"arrow-left":`M20 12H4M11 5l-7 7 7 7`,"arrow-up":`M12 20V4M5 11l7-7 7 7`,"arrow-down":`M12 4v16M5 13l7 7 7-7`,"chevron-right":`M9 5l7 7-7 7`,"chevron-left":`M15 5l-7 7 7 7`,"chevron-down":`M5 9l7 7 7-7`,"chevron-up":`M5 15l7-7 7 7`,menu:`M4 7h16M4 12h16M4 17h16`,star:`M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 9.7l5.9-.9z`,heart:`M12 20s-7-4.4-7-9a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 4.6-7 9-7 9z`,home:`M4 11l8-7 8 7M6 10v9h12v-9`,user:`M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 20c0-3.3 3.6-5 8-5s8 1.7 8 5`,mail:`M3 6h18v12H3zM3 6l9 7 9-7`,phone:`M6 3h4l2 5-3 2a12 12 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 4 5a2 2 0 0 1 2-2z`,search:`M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM20 20l-4.2-4.2`,clock:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3 2`,calendar:`M4 6h16v14H4zM4 10h16M8 3v4M16 3v4`,download:`M12 4v10M8 11l4 4 4-4M4 19h16`,upload:`M12 20V10M8 13l4-4 4 4M4 5h16`,play:`M8 5l11 7-11 7z`,pause:`M9 5v14M15 5v14`,info:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5M12 8h.01`,alert:`M12 4l9 16H3zM12 10v4M12 17h.01`,lock:`M6 11h12v9H6zM9 11V8a3 3 0 0 1 6 0v3`,chat:`M4 5h16v11H9l-5 4z`,"map-pin":`M12 21s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11zM12 12a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z`,camera:`M4 8h4l2-2h4l2 2h4v12H4zM12 17a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z`,image:`M4 5h16v14H4zM8 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM6 17l5-5 4 4 2-2 3 3`,file:`M7 3h7l4 4v14H7zM14 3v5h4`,link:`M10 14a4 4 0 0 0 6 .5l2-2a4 4 0 0 0-6-6l-1 1M14 10a4 4 0 0 0-6-.5l-2 2a4 4 0 0 0 6 6l1-1`,external:`M14 4h6v6M20 4l-9 9M18 14v5H5V6h5`,trash:`M4 7h16M9 7V5h6v2M6 7l1 13h10l1-13`,edit:`M4 20h4L19 9l-4-4L4 16z`,filter:`M3 5h18l-7 8v6l-4-2v-4z`,refresh:`M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5`,globe:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18`,bell:`M6 16V11a6 6 0 1 1 12 0v5l2 3H4zM10 22h4`,tag:`M4 4h7l9 9-7 7-9-9zM8.5 8.5h.01`,cart:`M4 5h2l2 10h10l2-7H7M9 20h.01M18 20h.01`,card:`M3 6h18v12H3zM3 10h18`,shield:`M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z`,sun:`M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M4 12H2M22 12h-2M5 5l1.5 1.5M17.5 17.5L19 19M19 5l-1.5 1.5M6.5 17.5L5 19`,moon:`M20 14a8 8 0 1 1-10-10 7 7 0 0 0 10 10z`,settings:`M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM12 2l1 2.6 2.7-.6 1 2.5 2.6 1-.6 2.7L21 12l-2.3 1.8.6 2.7-2.6 1-1 2.5-2.7-.6L12 22l-1-2.6-2.7.6-1-2.5-2.6-1 .6-2.7L3 12l2.3-1.8-.6-2.7 2.6-1 1-2.5 2.7.6z`,eye:`M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,"eye-off":`M4 4l16 16M9.5 9.6A3 3 0 0 0 12 15c.8 0 1.5-.3 2.1-.8M6.6 6.7C3.9 8.3 2 12 2 12s4 7 10 7c1.9 0 3.5-.5 4.9-1.2M14.1 5.4C13.4 5.1 12.7 5 12 5`,share:`M8 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM21 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM21 18a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM7.8 10.8l8.4-3.6M7.8 13.2l8.4 3.6`,send:`M21 3L3 10l7 3 3 7z`,paperclip:`M20 11l-8.5 8.5a5 5 0 0 1-7-7L13 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 6`,video:`M3 7h11v10H3zM14 11l6-3v8l-6-3`,music:`M9 18V6l10-2v12M9 18a2.5 2.5 0 1 1-2.5-2.5H9M19 16a2.5 2.5 0 1 1-2.5-2.5H19`,mic:`M12 3a3 3 0 0 1 3 3v5a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3zM5 11a7 7 0 0 0 14 0M12 18v3`,headphones:`M4 15v-3a8 8 0 1 1 16 0v3M4 15h3v5H5a1 1 0 0 1-1-1zM20 15h-3v5h2a1 1 0 0 0 1-1z`,book:`M5 4h14v16H7a2 2 0 0 1-2-2zM7 4v14h12`,bookmark:`M7 4h10v16l-5-4-5 4z`,folder:`M4 6h5l2 2h9v10H4z`,cloud:`M7 18a4 4 0 0 1 .5-8 5.5 5.5 0 0 1 10.4 1.5A3.5 3.5 0 0 1 17.5 18z`,database:`M12 3c4.4 0 8 1.3 8 3s-3.6 3-8 3-8-1.3-8-3 3.6-3 8-3zM4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3`,server:`M4 4h16v6H4zM4 14h16v6H4zM8 7h.01M8 17h.01`,code:`M9 8l-5 4 5 4M15 8l5 4-5 4`,terminal:`M4 5h16v14H4zM8 10l3 2-3 2M13 14h4`,wifi:`M5 12a10 10 0 0 1 14 0M8 15a6 6 0 0 1 8 0M12 19h.01`,battery:`M3 8h15v8H3zM21 11v2`,printer:`M7 8V4h10v4M7 16H4V8h16v8h-3M7 13h10v7H7z`,gift:`M4 10h16v10H4zM3 6h18v4H3zM12 6v14M12 6c-2 0-4-1-4-2.5S9 2 10 3s2 3 2 3zM12 6c2 0 4-1 4-2.5S15 2 14 3s-2 3-2 3z`,key:`M15 4a5 5 0 1 0-4.6 7L9 12.4V15H6.5L4 17.5V20h4l7-7A5 5 0 0 0 15 4z`,compass:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM15 9l-2 5-5 2 2-5z`,flag:`M5 21V4h13l-2 4 2 4H5`,award:`M12 4a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM9 13l-1 7 4-2 4 2-1-7`,chart:`M4 20V4M4 20h16M8 16v-5M12 16V8M16 16v-8`,pie:`M12 3a9 9 0 1 0 9 9h-9z`,trending:`M3 17l6-6 4 4 8-8M15 7h6v6`,dollar:`M12 3v18M16 7.5C16 6 14.2 5 12 5S8 6 8 7.5 9.5 10 12 10.5s4 1.5 4 3-1.8 2.5-4 2.5-4-1-4-2.5`,percent:`M5 19L19 5M7.5 5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM16.5 14a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z`,truck:`M3 6h11v9H3zM14 9h4l3 3v3h-7zM7.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM17.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z`,package:`M12 3l8 4v10l-8 4-8-4V7zM4 7l8 4 8-4M12 11v10`,store:`M4 9h16v11H4zM4 9l1.5-5h13L20 9M9 20v-6h6v6`,building:`M5 21V4h9v17M14 9h5v12M8 8h3M8 12h3M8 16h3M17 12h.01M17 16h.01`,users:`M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM2 20c0-3.3 3.1-5 7-5s7 1.7 7 5M17 5a4 4 0 0 1 0 7.9M22 20c0-2.6-1.6-4.2-4-4.8`,"thumbs-up":`M7 21V10h3l3-6a2 2 0 0 1 2 2v4h4l-2 11z`,smile:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9 10h.01M15 10h.01M8.5 14.5a5 5 0 0 0 7 0`,help:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.7M12 17h.01`,checkbox:`M4 4h16v16H4zM8 12l3 3 5-5`,list:`M8 6h13M8 12h13M8 18h13M3.5 6h.01M3.5 12h.01M3.5 18h.01`,grid:`M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z`,apps:`M4.5 4.5h2v2h-2zM11 4.5h2v2h-2zM17.5 4.5h2v2h-2zM4.5 11h2v2h-2zM11 11h2v2h-2zM17.5 11h2v2h-2zM4.5 17.5h2v2h-2zM11 17.5h2v2h-2zM17.5 17.5h2v2h-2z`,layers:`M12 3l9 5-9 5-9-5zM3 13l9 5 9-5`,zap:`M13 3L5 14h6l-1 7 8-11h-6z`,flame:`M12 21a6 6 0 0 0 6-6c0-4-4-6-4-10 0 0-3 1.5-3 5 0 1.5-1 2-1.5 1.5C8 10 7.5 9 7.5 9A7.5 7.5 0 0 0 6 15a6 6 0 0 0 6 6z`,droplet:`M12 3s6 6.4 6 10.5a6 6 0 0 1-12 0C6 9.4 12 3 12 3z`,leaf:`M4 20c0-8 6-14 16-14 0 10-6 14-12 14H4zM8 16c2-4 5-6 8-7`};function ji({name:e=`star`,paths:t,fill:n=!1,size:r=24,stroke:i=2,color:a=``,href:o=``,target:s=``,label:c=``,style:l,nodeRef:u,inert:d}){let f=Array.isArray(t)?t.filter(e=>typeof e==`string`&&e.trim()):[],p=n&&f.length>0,m=f.length?f:[Ai[e]??Ai.star],h=Math.min(Math.max(Number(r)||24,8),240),g=a===`accent`?`var(--page-accent, currentColor)`:a||`currentColor`,_=(0,W.jsx)(`svg`,{...G(`glyph`),viewBox:`0 0 24 24`,width:h,height:h,fill:p?g:`none`,stroke:p?`none`:g,strokeWidth:p?void 0:Math.min(Math.max(Number(i)||2,.5),4),strokeLinecap:p?void 0:`round`,strokeLinejoin:p?void 0:`round`,role:c?`img`:void 0,"aria-label":c||void 0,"aria-hidden":c?void 0:`true`,style:{display:`block`},children:m.map((e,t)=>(0,W.jsx)(`path`,{d:e},t))}),v={display:`inline-flex`,lineHeight:0,...z(l)};return o?(0,W.jsx)(`a`,{ref:u,href:o,onClick:d?e=>e.preventDefault():void 0,target:s||void 0,rel:s===`_blank`?`noopener noreferrer`:void 0,style:{...v,color:`inherit`},children:_}):(0,W.jsx)(`span`,{ref:u,style:v,children:_})}function Mi(e,t={},n=0){let r=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`):[],i=e=>e==null?``:ir(e),a=Math.max(0,Number(n)||0),o=[];for(let e of r){let n=e.data??e,r=nr(n,t.imageField),s=(Array.isArray(r)?r:[r]).map(e=>e&&typeof e==`object`?e.url??e.src??``:e).filter(e=>typeof e==`string`&&e.trim()),c=t.nameField?i(nr(n,t.nameField)):i(n.name),l=t.hrefField?i(nr(n,t.hrefField)):``;for(let e of s)if(o.push({src:e,name:c,alt:c,href:l}),a&&o.length>=a)return o}return o}function Ni({images:e=[],source:t=``,entry:n=``,imageField:r=``,nameField:i=``,hrefField:a=``,limit:o=0,emptyText:s=``,columns:c=3,gap:u=8,showNames:d=!1,lightbox:f=!0,style:p,nodeRef:m,inert:h}){let{tenant:g,apiUrl:_,revision:v}=(0,l.useContext)(Un),y=(0,l.useContext)(Wn)?.[t],[b,x]=(0,l.useState)(null),[S,C]=(0,l.useState)(()=>new Set);(0,l.useEffect)(()=>{if(!t||y)return;let e=!0;return fetch(`${_}/dynamic/${encodeURIComponent(t)}`,{headers:g?{"x-tenant":g}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&x(n)}).catch(()=>e&&x([])),()=>{e=!1}},[v,t,g,_,y]);let w=y??b??[],T=n?w.filter(e=>e?.id===n||e?.data?.slug===n||e?.slug===n):w,E=Math.max(0,Number(o)||0),D=t?(()=>{let e=Mi(T,{imageField:r,nameField:i,hrefField:a},0).filter(e=>!S.has(e.src));return E?e.slice(0,E):e})():null,O=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.src):[],k=D??O,A=!!t&&!y&&b===null,j=Math.max(0,Number(u)||0),M=h?e=>e.preventDefault():void 0,[N,P]=(0,l.useState)(null),F=f&&!h&&N!==null&&k[N];(0,l.useEffect)(()=>{if(!F)return;let e=e=>{e.key===`Escape`&&P(null),e.key===`ArrowRight`&&P(e=>(e+1)%k.length),e.key===`ArrowLeft`&&P(e=>(e-1+k.length)%k.length)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[F,k.length]);let I=e=>{if(typeof e.name==`string`&&e.name.trim())return e.name;if(typeof e.alt==`string`&&e.alt.trim())return e.alt;try{let t=String(e.src).split(`?`)[0].split(`/`).pop();return decodeURIComponent(t??``)}catch{return``}};return(0,W.jsxs)(`div`,{ref:m,style:{columnCount:Math.min(Math.max(Number(c)||3,1),8),columnGap:j,width:`100%`,...z(p)},children:[k.map((e,n)=>{let r=(0,W.jsxs)(`span`,{style:{position:`relative`,display:`block`,borderRadius:`inherit`,overflow:`hidden`},children:[(0,W.jsx)(`img`,{...G(`image`),src:e.src,alt:e.alt??``,onError:t?()=>C(t=>new Set(t).add(e.src)):void 0,style:{width:`100%`,display:`block`,borderRadius:`inherit`}}),d&&I(e)&&(0,W.jsx)(`span`,{...G(`caption`),style:{position:`absolute`,insetInline:0,bottom:0,padding:`14px 10px 8px`,background:`linear-gradient(transparent, rgba(0, 0, 0, 0.65))`,color:`#fff`,fontSize:12,lineHeight:1.3,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:I(e)})]}),i=e.href?(0,W.jsx)(`a`,{href:e.href,onClick:M,target:e.target||void 0,rel:e.target===`_blank`?`noopener noreferrer`:void 0,style:{display:`block`,borderRadius:`inherit`},children:r}):f&&!h?(0,W.jsx)(`span`,{role:`button`,tabIndex:0,onClick:()=>P(n),onKeyDown:e=>(e.key===`Enter`||e.key===` `)&&P(n),style:{display:`block`,borderRadius:`inherit`,cursor:`zoom-in`},children:r}):r;return(0,W.jsx)(`div`,{...G(`tile`),style:{breakInside:`avoid`,marginBottom:j,borderRadius:`inherit`,overflow:`hidden`},children:i},n)}),!k.length&&!A&&(0,W.jsx)(`div`,{...G(`empty`),style:{padding:`24px 12px`,fontSize:13,opacity:.55,textAlign:`center`,columnSpan:`all`},children:t?s||`No images yet`:`Pick images in Settings to fill the gallery`}),F&&(0,W.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,onClick:()=>P(null),style:{position:`fixed`,inset:0,zIndex:1400,background:`rgba(0, 0, 0, 0.86)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24},children:[(0,W.jsx)(`img`,{src:k[N].src,alt:k[N].alt??``,onClick:e=>e.stopPropagation(),style:{maxWidth:`92vw`,maxHeight:`84vh`,borderRadius:8,boxShadow:`0 12px 48px rgba(0,0,0,0.5)`}}),I(k[N])&&(0,W.jsx)(`div`,{style:{color:`#fff`,fontSize:14,marginTop:12,opacity:.85},children:I(k[N])}),(0,W.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:()=>P(null),style:{position:`absolute`,top:16,right:20,background:`transparent`,border:0,color:`#fff`,fontSize:28,lineHeight:1,cursor:`pointer`},children:`×`}),k.length>1&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,"aria-label":`Previous`,onClick:e=>{e.stopPropagation(),P(e=>(e-1+k.length)%k.length)},style:{position:`absolute`,left:16,top:`50%`,transform:`translateY(-50%)`,background:`transparent`,border:0,color:`#fff`,fontSize:36,cursor:`pointer`,padding:12},children:`‹`}),(0,W.jsx)(`button`,{type:`button`,"aria-label":`Next`,onClick:e=>{e.stopPropagation(),P(e=>(e+1)%k.length)},style:{position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,background:`transparent`,border:0,color:`#fff`,fontSize:36,cursor:`pointer`,padding:12},children:`›`})]})]})]})}var Pi=e=>{let t=Array.isArray(e)?e[0]:e;return t&&typeof t==`object`?String(t.url??t.href??t.link??``):t==null?``:String(t)},Fi=e=>String(e??``).trim().toLowerCase().split(/[-_]/)[0];function Ii(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],r=Fi(t.language),i=n.filter(e=>!t.langField||!r||Fi(ir(e.data?.[t.langField]))===r),a=e=>String(e.data?.slug??e.slug??``),o=e=>{if(!t.parentField)return``;let n=e.data?.[t.parentField],r=Array.isArray(n)?n[0]:n;return r&&typeof r==`object`?String(r.id??r.slug??``):r==null?``:String(r)},s=e=>{let n=Number(t.orderField?ir(e.data?.[t.orderField]):NaN);return Number.isFinite(n)?n:1/0},c=(e,t)=>s(e)-s(t)||a(e).localeCompare(a(t),void 0,{numeric:!0}),l=new Map;for(let e of i)l.set(String(e.id),e),a(e)&&l.set(a(e),e);let u=new Map;for(let e of i){let t=l.get(o(e)),n=t&&t!==e?t.id:``;u.has(n)||u.set(n,[]),u.get(n).push(e)}let d=[];if(t.root===`parent`){let e=t.rootEntry?l.get(String(t.rootEntry)):null;d=e?u.get(e.id)??[]:[]}else{let e=e=>!t.groupField||ir(e.data?.[t.groupField])===String(t.groupValue??``);d=i.filter(t=>{if(!e(t))return!1;let n=l.get(o(t));return!n||n===t||!e(n)})}let f=Math.max(0,Number(t.depth)||0),p=new Set,m=(e,n)=>{if(p.has(e.id))return null;p.add(e.id);let r=f===0||n<f?u.get(e.id)??[]:[];return{key:e.id,label:ir(e.data?.[t.labelField||`name`])||ir(e.data?.name)||`Untitled`,href:Dt(t.hrefField?Pi(e.data?.[t.hrefField]):``),icon:t.iconField?ir(e.data?.[t.iconField]).trim():``,children:[...r].sort(c).map(e=>m(e,n+1)).filter(Boolean)}};return[...d].sort(c).map(e=>m(e,1)).filter(Boolean)}var Li=(e,t)=>{if(!e||!t||!e.startsWith(`/`))return!1;let n=e=>e.length>1?e.replace(/\/+$/,``):e,r=n(e.split(/[?#]/)[0]),i=n(t);return r===i||r.length>1&&i.endsWith(r)&&i.charAt(i.length-r.length-1)===`/`},Ri=mr({display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8,padding:`10px 16px`,color:`inherit`,textDecoration:`none`});function zi({source:e=``,labelField:t=``,hrefField:n=``,parentField:r=``,orderField:i=``,langField:a=``,root:o=`group`,groupField:s=``,groupValue:c=``,rootEntry:u=``,depth:d=0,expand:f=`current`,toggleOnClick:p=!0,indent:m=16,lines:h=`none`,lineColor:g=``,iconField:_=``,branchIcon:v=``,leafIcon:y=``,toggleIcon:b=`caret`,toggleSize:x=16,dividers:S=`none`,dividerColor:C=``,dividerWidth:w=1,linkColor:T=``,hoverBg:E=``,hoverColor:D=``,currentBg:O=``,currentColor:k=``,placeholder:A=``,style:j,nodeRef:M}){let{tenant:N,apiUrl:P,revision:F,locale:I}=(0,l.useContext)(Un),L=(0,l.useContext)(Wn)?.[e],R=Number(m)||0,ee=(h===`solid`||h===`dotted`)&&R>=8,te=ee?`1px ${h} ${g||`currentColor`}`:``,B=g?1:.5,V=e=>16+(e-2)*R+6,H=`wb-mt-${(0,l.useId)().replace(/[^a-zA-Z0-9_-]/g,``)}`,ne=[`solid`,`dashed`,`dotted`].includes(S)?`${Math.min(Math.max(Number(w)||1,1),8)}px ${S} ${C||`rgba(148, 163, 184, 0.35)`}`:``,re=[ne&&`.${H} [data-wb-part~="link"]{border-top:${ne};}.${H} > [data-wb-part~="item"]:first-of-type > [data-wb-part~="link"]{border-top:0;}`,T&&`.${H} a{color:${T} !important;}`,(E||D)&&`.${H} a:hover{${E?`background-color:${E} !important;`:``}${D?`color:${D} !important;`:``}}`,(O||k)&&`.${H} a[aria-current="page"]{${O?`background-color:${O} !important;`:``}${k?`color:${k} !important;`:``}}`].filter(Boolean).join(``),ie=e=>{let t=e.icon||(e.children.length>0?v:y);return t?/^(https?:)?\/\/|^\//.test(t)?(0,W.jsx)(`img`,{...G(`icon`),src:t,alt:``,style:{width:18,height:18,objectFit:`contain`,flexShrink:0}}):Ai[t]?(0,W.jsx)(`svg`,{...G(`icon`),viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,style:{flexShrink:0,opacity:.8},children:(0,W.jsx)(`path`,{d:Ai[t]})}):null:null},ae=Math.min(Math.max(Number(x)||16,8),40),oe=e=>b===`plus`?(0,W.jsx)(`path`,{d:e?Ai.minus:Ai.plus}):b===`chevron`?(0,W.jsx)(`path`,{d:Ai[`chevron-right`]}):null,[se,ce]=(0,l.useState)(null),[le,ue]=(0,l.useState)(``),[de,fe]=(0,l.useState)({});(0,l.useEffect)(()=>{ue(window.location.pathname)},[]),(0,l.useEffect)(()=>{if(!e||L)return;let t=!0,n=new URLSearchParams({all:`1`});return I&&n.set(`locale`,I),fetch(`${P}/dynamic/${encodeURIComponent(e)}?${n}`,{headers:N?{"x-tenant":N}:{}}).then(e=>e.json()).then(e=>{let n=Array.isArray(e?.payload)?e.payload:Array.isArray(e?.payload?.data)?e.payload.data:[];t&&ce(n)}).catch(()=>t&&ce([])),()=>{t=!1}},[F,e,N,P,I,L]);let pe=(0,l.useMemo)(()=>Ii(L??se??[],{labelField:t,hrefField:n,parentField:r,orderField:i,langField:a,language:I,root:o,groupField:s,groupValue:c,rootEntry:u,depth:d,iconField:_}),[L,se,t,n,r,i,a,I,o,s,c,u,d,_]),me=(0,l.useMemo)(()=>{let e=new Set,t=(n,r)=>n.some(n=>Li(n.href,le)?([...r,n.key].forEach(t=>e.add(t)),!0):t(n.children,[...r,n.key]));return t(pe,[]),e},[pe,le]),he=e=>e.key in de?de[e.key]:f===`all`||f===`current`&&me.has(e.key),ge=e=>fe(t=>({...t,[e.key]:!he(e)})),_e=(e,t)=>({position:`absolute`,left:V(e),pointerEvents:`none`,opacity:B,borderLeft:te,...t}),ve=(e,t,n)=>!ee||e<2?null:(0,W.jsxs)(W.Fragment,{children:[t.map((e,t)=>e?(0,W.jsx)(`span`,{...G(`line`),"aria-hidden":!0,style:_e(t+2,{top:0,bottom:0})},t):null),(0,W.jsx)(`span`,{...G(`line`),"aria-hidden":!0,style:_e(e,n?{top:0,height:`50%`}:{top:0,bottom:0})}),(0,W.jsx)(`span`,{...G(`line`),"aria-hidden":!0,style:{position:`absolute`,left:V(e),top:`50%`,width:Math.max(4,R-8),pointerEvents:`none`,opacity:B,borderTop:te}})]}),ye=(e,t,n=[])=>e.map((r,i)=>{let a=r.children.length>0,o=a&&he(r),s=Li(r.href,le),c=ee&&t>1,l=i===e.length-1;return(0,W.jsxs)(`div`,{...G(`item`,o&&`item-open`),children:[(0,W.jsxs)(`a`,{...G(`link`,s&&`link-current`),href:r.href||`#`,"aria-current":s?`page`:void 0,"aria-expanded":a?o:void 0,onClick:a&&(p||!r.href)?e=>{e.preventDefault(),ge(r)}:void 0,style:{...Ri,paddingLeft:16+(t-1)*R,fontWeight:s?600:void 0,...c?{position:`relative`}:null},children:[ve(t,n,l),(0,W.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:8,minWidth:0},children:[ie(r),(0,W.jsx)(`span`,{...G(`label`),children:r.label})]}),a?(0,W.jsx)(`span`,{role:`button`,tabIndex:-1,"aria-label":o?`Collapse`:`Expand`,onClick:e=>{e.preventDefault(),e.stopPropagation(),ge(r)},style:{flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,margin:`-8px -8px -8px 0`,padding:8,cursor:`pointer`},children:b===`plus`||b===`chevron`?(0,W.jsx)(`svg`,{...G(`toggle`),viewBox:`0 0 24 24`,width:ae+2,height:ae+2,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,style:{transition:`transform .2s`,transform:b===`chevron`&&o?`rotate(90deg)`:`none`},children:oe(o)}):(0,W.jsx)(`svg`,{...G(`toggle`),viewBox:`0 0 24 24`,width:ae,height:ae,"aria-hidden":!0,style:{transition:`transform .2s`,transform:o?`rotate(180deg)`:`none`},children:(0,W.jsx)(`path`,{d:`M5 8.5h14L12 17z`,fill:`currentColor`})})}):null]}),o?(0,W.jsx)(`div`,{...G(`children`),children:ye(r.children,t+1,t>1?[...n,!l]:n)}):null]},r.key)});return(0,W.jsxs)(`nav`,{ref:M,"aria-label":`Menu`,className:re?H:void 0,style:{...z(j)},children:[re?(0,W.jsx)(`style`,{children:re}):null,pe.length?ye(pe,1):A?(0,W.jsx)(`div`,{...G(`empty`),style:{padding:`10px 16px`,opacity:.6,fontSize:14},children:A}):null]})}var Bi={color:`inherit`,textDecoration:`none`,fontSize:14,opacity:.85},Vi=mr({background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,border:`1px solid rgba(148, 163, 184, 0.25)`,boxShadow:`0 16px 40px rgba(15, 23, 42, 0.16)`,zIndex:60});function Hi(e,t={},n=`dropdown`){let r=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],i=e=>Array.isArray(e)?e[0]:e,a=e=>e==null?``:ir(e),o=r.map(e=>{let n=e.data??{},r=t.parentField?i(n[t.parentField]):null;return{key:e.id,parent:(r&&typeof r==`object`?r.id:r)||null,label:a(n[t.labelField||`name`])||a(n.name)||`Untitled`,href:t.hrefField?a(n[t.hrefField]):``,image:t.imageField&&i(n[t.imageField])||``,desc:t.descField?a(n[t.descField]):``}}),s=new Map(o.map(e=>[e.key,e])),c=e=>{let t=new Set,n=e;for(;n.parent&&s.has(n.parent)&&!t.has(n.key);)t.add(n.key),n=s.get(n.parent);return n},l=[],u=new Map;for(let e of o){if(c(e)!==e)continue;let t={key:e.key,label:e.label,href:e.href,image:e.image,children:[]};u.set(e.key,t),l.push(t)}for(let e of o){let t=c(e);t!==e&&u.get(t.key)?.children.push({key:e.key,label:e.label,href:e.href,image:e.image,desc:e.desc})}return l.map(e=>({...e,type:e.children.length?n:`link`}))}function Ui({brand:e,logo:t,brandHref:n,brandTarget:r,links:i=[],style:a,nodeRef:o,menu:s=`auto`,breakpoint:c=768,source:u=``,labelField:d=``,hrefField:f=``,imageField:p=``,descField:m=``,parentField:h=``,submenu:g=`dropdown`}){let[_,v]=(0,l.useState)(null),[y,b]=(0,l.useState)(!1),[x,S]=(0,l.useState)(!1),[C,w]=(0,l.useState)(null),{tenant:T,apiUrl:E,revision:D,locale:O}=(0,l.useContext)(Un),k=ot(O),A=(0,l.useId)(),j=(0,l.useContext)(Wn)?.[u],[M,N]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(!u||j)return;let e=!0;return fetch(`${E}/dynamic/${encodeURIComponent(u)}`,{headers:T?{"x-tenant":T}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&N(n)}).catch(()=>e&&N([])),()=>{e=!1}},[D,u,T,E,j]),(0,l.useEffect)(()=>{if(!_)return;let e=new ResizeObserver(()=>b(_.offsetWidth<c));return e.observe(_),()=>e.disconnect()},[_,c]);let P=u?Hi(j??M??[],{labelField:d,hrefField:f,imageField:p,descField:m,parentField:h},g):i,F=s===`hamburger`||s===`auto`&&y,I=(e,t,n=!1)=>{let r=e.image?(0,W.jsx)(`img`,{...G(`sublink-image`),src:e.image,alt:``,style:n?{width:`100%`,aspectRatio:`16 / 9`,objectFit:`cover`,borderRadius:6,display:`block`,marginBottom:8}:{width:22,height:22,objectFit:`cover`,borderRadius:4,display:`block`,flexShrink:0}}):null;return(0,W.jsxs)(`a`,{...G(`sublink`,n&&`sublink-card`),href:e.href||`#`,style:{...Bi,display:n?`block`:`flex`,alignItems:n?void 0:`center`,gap:n?void 0:10,...t},children:[r,(0,W.jsxs)(`span`,{...G(`sublink-label`),style:{display:`block`,minWidth:0},children:[e.label,e.desc&&(0,W.jsx)(`span`,{...G(`sublink-desc`),style:{display:`block`,fontSize:12,opacity:.6,marginTop:2},children:e.desc})]})]},e.key)};return(0,W.jsxs)(`nav`,{ref:e=>{v(e),o&&o(e)},style:{display:`flex`,alignItems:`center`,gap:24,flexWrap:`wrap`,padding:`14px 24px`,width:`100%`,position:`relative`,...z(a)},children:[(t||e)&&(()=>{let i=(0,W.jsxs)(W.Fragment,{children:[t&&(0,W.jsx)(`img`,{...G(`logo`),src:t,alt:e||`Logo`,style:{height:28,display:`block`}}),e&&(0,W.jsx)(`span`,{...G(`brand-name`),style:{fontWeight:700,fontSize:18,fontFamily:`var(--page-heading-font, inherit)`},children:e})]}),a={display:`flex`,alignItems:`center`,gap:10,color:`inherit`,textDecoration:`none`};return n?(0,W.jsx)(`a`,{...G(`brand`),href:n,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,style:a,children:i}):(0,W.jsx)(`div`,{...G(`brand`),style:a,children:i})})(),(0,W.jsx)(`div`,{style:{flexGrow:1}}),F?(0,W.jsx)(`button`,{type:`button`,...G(`menu-button`),"aria-label":k(x?`closeMenu`:`openMenu`),"aria-expanded":x,"aria-controls":x?`${A}-menu`:void 0,onClick:()=>S(!x),style:{background:`transparent`,border:0,color:`inherit`,cursor:`pointer`,fontSize:20,lineHeight:1,padding:4},children:x?`✕`:`☰`}):(0,W.jsx)(`div`,{...G(`links`),style:{display:`flex`,gap:20,alignItems:`center`,flexWrap:`wrap`},children:P.map(e=>{let t=e.children??[];if(!t.length)return(0,W.jsx)(`a`,{...G(`link`),href:e.href||`#`,style:Bi,children:e.label},e.key);let n=e.type===`mega`,r=`${A}-${e.key}`;return(0,W.jsxs)(`span`,{style:{position:n?`static`:`relative`,display:`inline-flex`},onMouseEnter:()=>w(e.key),onMouseLeave:()=>w(null),onFocus:t=>{t.currentTarget.contains(t.relatedTarget)||w(e.key)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||w(null)},onKeyDown:t=>{let n=t.currentTarget;t.key===`Escape`&&C===e.key?(t.stopPropagation(),w(null),n.querySelector(`a`)?.focus()):t.key===`ArrowDown`&&C!==e.key&&(t.preventDefault(),w(e.key),setTimeout(()=>n.querySelectorAll(`a`)[1]?.focus(),0))},children:[(0,W.jsxs)(`a`,{...G(`link`),href:e.href||`#`,"aria-haspopup":`true`,"aria-expanded":C===e.key,"aria-controls":C===e.key?r:void 0,style:{...Bi,cursor:`pointer`},children:[e.label,` `,(0,W.jsx)(`span`,{...G(`chevron`),"aria-hidden":`true`,style:{fontSize:9,opacity:.6},children:`▼`})]}),C===e.key&&(n?(0,W.jsx)(`div`,{id:r,...G(`mega-panel`),style:{...Vi,position:`absolute`,left:0,right:0,top:`100%`,padding:24,display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(170px, 1fr))`,gap:16},children:t.map(e=>I(e,{padding:8,borderRadius:8},!0))}):(0,W.jsx)(`div`,{id:r,...G(`dropdown-panel`),style:{...Vi,position:`absolute`,top:`100%`,left:0,minWidth:190,borderRadius:8,padding:8,display:`flex`,flexDirection:`column`},children:t.map(e=>I(e,{padding:`8px 12px`,borderRadius:6}))}))]},e.key)})}),F&&x&&(0,W.jsx)(`div`,{id:`${A}-menu`,...G(`mobile-menu`),style:{flexBasis:`100%`,width:`100%`,display:`flex`,flexDirection:`column`,paddingTop:10},children:P.map(e=>(0,W.jsxs)(l.Fragment,{children:[(0,W.jsx)(`a`,{...G(`mobile-link`),href:e.href||`#`,style:{...Bi,padding:`10px 4px`,fontWeight:(e.children??[]).length?600:400,opacity:1},children:e.label}),(e.children??[]).map(e=>I(e,{padding:`8px 4px 8px 22px`}))]},e.key))})]})}function Wi({tabs:e=[],linked:t,style:n,nodeRef:r}){let[i,a]=(0,l.useState)(0),{locale:o}=(0,l.useContext)(Un),s=(0,l.useId)(),c=(0,l.useRef)(null),u=e.length?Math.min(i,e.length-1):0;if(!e.length)return null;let d=ot(o),f=t=>{let n=e.length-1,r={ArrowRight:(u+1)%e.length,ArrowLeft:(u-1+e.length)%e.length,Home:0,End:n}[t.key];r!==void 0&&(t.preventDefault(),a(r),c.current?.querySelectorAll(`[role="tab"]`)[r]?.focus())};return(0,W.jsxs)(`div`,{ref:r,style:{width:`100%`,...z(n)},children:[(0,W.jsx)(`div`,{ref:c,role:`tablist`,...G(`tab-list`),onKeyDown:f,style:{display:`flex`,gap:4,borderBottom:`1px solid rgba(148, 163, 184, 0.35)`},children:e.map((e,t)=>(0,W.jsx)(`button`,{...G(`tab`,t===u&&`tab-active`),type:`button`,role:`tab`,id:`${s}-tab-${e.key}`,"aria-selected":t===u,"aria-controls":`${s}-panel-${e.key}`,tabIndex:t===u?0:-1,onClick:()=>a(t),style:{background:`transparent`,border:0,padding:`10px 16px`,fontSize:14,fontFamily:`inherit`,color:`inherit`,cursor:`pointer`,opacity:t===u?1:.6,fontWeight:t===u?600:500,boxShadow:t===u?`inset 0 -2px 0 var(--page-accent, #111827)`:`none`},children:e.label||d(`tab`,{n:t+1})},e.key))}),e.map((e,n)=>(0,W.jsx)(`div`,{...G(`panel`),role:`tabpanel`,id:`${s}-panel-${e.key}`,"aria-labelledby":`${s}-tab-${e.key}`,tabIndex:0,hidden:n!==u,style:{display:n===u?`flex`:`none`,flexDirection:`column`},children:t?.[e.key]??null},e.key))]})}function Gi({items:e=[],linked:t,multiple:n=!1,icon:r=``,padX:i,padY:a,headerBg:o,headerColor:s,openBg:c,openColor:u,borderColor:d,style:f,nodeRef:p}){let[m,h]=(0,l.useState)(()=>new Set(e.length?[e[0].key]:[])),{locale:g}=(0,l.useContext)(Un),_=(0,l.useId)();if(!e.length)return null;let v=ot(g),y=(e,t)=>typeof e==`string`&&e?e:t,b=(e,t)=>{let n=Number(e);return e===``||e==null||!Number.isFinite(n)?t:n},x=Ai[r],S=e=>h(t=>{let r=new Set(n?t:[]);return t.has(e)?r.delete(e):r.add(e),r});return(0,W.jsx)(`div`,{ref:p,style:{width:`100%`,...z(f)},children:e.map((n,r)=>{let l=m.has(n.key);return(0,W.jsxs)(`div`,{...G(`item`,l&&`item-open`),style:{borderBottom:r<e.length-1?`1px solid ${y(d,`rgba(148, 163, 184, 0.35)`)}`:`none`},children:[(0,W.jsxs)(`button`,{type:`button`,...G(`header`,l&&`header-open`),id:`${_}-h-${n.key}`,"aria-expanded":l,"aria-controls":`${_}-b-${n.key}`,onClick:()=>S(n.key),style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:12,background:l?y(c,y(o,`transparent`)):y(o,`transparent`),border:0,padding:`${b(a,14)}px ${b(i,4)}px`,fontSize:15,fontWeight:600,fontFamily:`inherit`,color:l?y(u,y(s,`inherit`)):y(s,`inherit`),textAlign:`left`,cursor:`pointer`,transition:`background 180ms, color 180ms`},children:[(0,W.jsxs)(`span`,{...G(`title`),style:{display:`flex`,alignItems:`center`,gap:10,minWidth:0},children:[x?(0,W.jsx)(`svg`,{...G(`icon`),viewBox:`0 0 24 24`,width:16,height:16,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,style:{flexShrink:0},children:(0,W.jsx)(`path`,{d:x})}):null,n.title||v(`item`,{n:r+1})]}),(0,W.jsx)(`span`,{"aria-hidden":`true`,...G(`chevron`),style:{fontSize:12,opacity:.6,transform:l?`rotate(180deg)`:`none`,transition:`transform 180ms`},children:`▼`})]}),(0,W.jsx)(`div`,{...G(`body`),id:`${_}-b-${n.key}`,role:`region`,"aria-labelledby":`${_}-h-${n.key}`,hidden:!l,style:{display:l?`flex`:`none`,flexDirection:`column`},children:t?.[n.key]??null})]},n.key)})})}var Ki={display:`flex`,flexDirection:`column`,gap:`12px`},qi={fontSize:`14px`,fontWeight:500,color:`var(--page-text, #111827)`},q=mr({padding:`10px 12px`,border:`1px solid var(--page-border, #d1d5db)`,borderRadius:`6px`,fontSize:`14px`,fontFamily:`inherit`,width:`100%`,boxSizing:`border-box`,backgroundColor:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`}),Ji={display:`flex`,alignItems:`center`,gap:`8px`,fontSize:`14px`,color:`var(--page-text, #111827)`},Yi=e=>e?{readOnly:!0,tabIndex:-1,onMouseDown:e=>e.preventDefault()}:{};function Xi(e,t){if(!e)return!0;let n=t[e.field],r=n==null||n===``?``:String(n),i=e.value??``;switch(e.op){case`eq`:return r===i;case`neq`:return r!==i;case`contains`:return r.toLowerCase().includes(i.toLowerCase());case`gt`:return Number(r)>Number(i);case`lt`:return Number(r)<Number(i);case`empty`:return r===``;case`notEmpty`:return r!==``;default:return!1}}var Zi={display:`flex`,flexDirection:`column`,gap:6},Qi=`#dc2626`,$i={fontSize:13,fontWeight:500,color:Qi},ea=mr({font:`inherit`,fontSize:15,padding:`10px 12px`,borderRadius:8,border:`1px solid rgba(148, 163, 184, 0.55)`,background:`transparent`,color:`inherit`,width:`100%`,boxSizing:`border-box`});function ta(e,t){let n=Array.isArray(e?.options)?e.options:[];if(!e?.parentField)return n;let r=t?.[e.parentField];return r?n.filter(e=>typeof e==`string`?!1:!e.parent||e.parent===r):[]}var na=`g-recaptcha-response`,ra=e=>e?.type===`recaptcha`?na:e?.name,ia=[[/^(full_?name|name|ad_?soyad|adsoyad|isim)$/,`name`],[/^(first_?name|given_?name|ad|adi|adiniz)$/,`given-name`],[/^(last_?name|family_?name|surname|soyad|soyadi|soyadiniz)$/,`family-name`],[/^(e_?mail|e_?posta|eposta|mail)$/,`email`],[/^(phone|tel|telephone|mobile|gsm|telefon|cep)$/,`tel`],[/^(company|organization|organisation|firma|sirket|kurum)$/,`organization`],[/^(address|street|adres|sokak)$/,`street-address`],[/^(city|town|sehir|il)$/,`address-level2`],[/^(district|ilce)$/,`address-level3`],[/^(zip|zip_?code|postal_?code|postcode|posta_?kodu)$/,`postal-code`],[/^(country|ulke)$/,`country-name`],[/^(website|web|url|site)$/,`url`]];function aa(e){if(typeof e.autocomplete==`string`&&e.autocomplete)return e.autocomplete;let t={email:`email`,phone:`tel`,link:`url`}[e.type];if(t)return t;let n=String(e.name??``).toLowerCase();return ia.find(([e])=>e.test(n))?.[1]}function oa({field:e,value:t,onChange:n,inert:r,values:i,error:a,idBase:o}){let s=ot((0,l.useContext)(Un).locale),c=`${o}-${e.name}`,u=e.help?`${c}-help`:null,d=a?`${c}-error`:null,f=(0,W.jsxs)(`label`,{...G(`label`),htmlFor:c,style:{...qi,fontSize:14},children:[e.label,e.required?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{"aria-hidden":`true`,children:` *`}),(0,W.jsxs)(`span`,{style:st,children:[` (`,s(`required`),`)`]})]}):null]}),p=[u,d].filter(Boolean).join(` `)||void 0,m={id:c,"aria-invalid":a?!0:void 0,"aria-describedby":p},h={...G(`input`),...m,name:e.name,required:e.required||void 0,placeholder:e.placeholder||void 0,disabled:r||void 0,autoComplete:aa(e),style:a?{...ea,borderTopColor:Qi,borderRightColor:Qi,borderBottomColor:Qi,borderLeftColor:Qi}:ea,value:t??``,onChange:t=>n(e.name,t.target.value)};return e.type===`display`?(0,W.jsx)(e.variant&&e.variant!==`p`?e.variant:`p`,{...G(`text`),style:{margin:0,color:e.color||`inherit`,fontSize:{h1:32,h2:26,h3:21,h4:18,h5:16,h6:14,p:15}[e.variant]??16,fontWeight:e.variant===`p`?400:700,lineHeight:1.35},children:e.label}):e.type===`image`?e.src?(0,W.jsx)(`img`,{...G(`image`),src:e.src,alt:e.label??``,style:{width:`100%`,borderRadius:8,display:`block`}}):null:e.type===`recaptcha`?(0,W.jsxs)(`div`,{...G(`field`),id:c,tabIndex:-1,style:Zi,children:[(0,W.jsx)(pa,{theme:e.captchaTheme,size:e.captchaSize,inert:r,onChange:e=>n(na,e)}),a&&(0,W.jsx)(`span`,{...G(`error`),id:d,style:$i,children:a})]}):e.type===`video`?e.src?/youtube\.com|youtu\.be|vimeo\.com/i.test(e.src)?(0,W.jsx)(ri,{url:e.src,style:{width:`100%`}}):(0,W.jsx)(`video`,{...G(`video`),src:e.src,controls:!0,style:{width:`100%`,borderRadius:8,display:`block`}}):null:(0,W.jsxs)(`div`,{...G(`field`),style:Zi,children:[f,e.type===`textarea`||e.multiline?(0,W.jsx)(`textarea`,{...h,...G(`textarea`),rows:4,style:{...ea,resize:`vertical`}}):e.type===`select`?(0,W.jsxs)(`select`,{...h,...G(`select`),disabled:h.disabled||!!e.parentField&&!i?.[e.parentField],children:[(0,W.jsx)(`option`,{value:``,children:e.placeholder||`—`}),ta(e,i).map((e,t)=>(0,W.jsx)(`option`,{value:typeof e==`string`?e:e.value,children:typeof e==`string`?e:e.label??e.value},t))]}):e.type===`checkbox`?(0,W.jsx)(`input`,{type:`checkbox`,...G(`checkbox`),...m,name:e.name,required:e.required||void 0,disabled:r||void 0,checked:!!t,onChange:t=>n(e.name,t.target.checked),style:{width:18,height:18}}):e.type===`upload`?(0,W.jsx)(`input`,{type:`file`,...G(`file`),...m,name:e.name,accept:e.accept||void 0,required:e.required||void 0,disabled:r||void 0,onChange:t=>n(e.name,t.target.files?.[0]?.name??``),style:{font:`inherit`,fontSize:14}}):(0,W.jsx)(`input`,{...h,type:{email:`email`,number:`number`,date:`date`,datetime:`datetime-local`,phone:`tel`,link:`url`}[e.type]??`text`}),e.help&&(0,W.jsx)(`span`,{...G(`help`),id:u,style:{fontSize:12,opacity:.65},children:e.help}),a&&(0,W.jsx)(`span`,{...G(`error`),id:d,style:$i,children:a})]})}function sa(e,t){if(!e||typeof e!=`object`)return e;let n=String(t??``).split(`-`)[0].toLowerCase(),r=(t,r)=>{let i=e[t]&&typeof e[t]==`object`?e[t][n]:null;return typeof i==`string`&&i.trim()?i:r};return{...e,label:r(`labels`,e.label),help:r(`helps`,e.help),placeholder:r(`placeholders`,e.placeholder),prefix:r(`prefixes`,e.prefix),suffix:r(`suffixes`,e.suffix),errorMessage:r(`errorMessages`,e.errorMessage)}}var ca=(e,t)=>typeof e?.errorMessage==`string`&&e.errorMessage.trim()?e.errorMessage:t;function la({style:e,action:t,method:n,name:r,enctype:i,formSlug:a,auto:o,submitLabel:s,nodeRef:c,inert:u,children:d,linked:f,show:p}){let{tenant:m,apiUrl:h,locale:g}=(0,l.useContext)(Un),[_,v]=(0,l.useState)(`form`),[y,b]=(0,l.useState)(null),[x,S]=(0,l.useState)({}),[C,w]=(0,l.useState)(0),[T,E]=(0,l.useState)({}),[D,O]=(0,l.useState)(``),k=(0,l.useId)(),A=(0,l.useRef)(null),j=(0,l.useRef)(null),M=u?p||`form`:_,N=ot(g);(0,l.useEffect)(()=>{if(!o||!a)return;let e=!0;return fetch(`${h||`/api`}/forms/${encodeURIComponent(a)}`,{headers:m?{"x-tenant":m}:{}}).then(e=>e.json()).then(t=>e&&b(t?.payload&&typeof t.payload==`object`?t.payload:null)).catch(()=>e&&b(null)),()=>{e=!1}},[o,a,m,h]);let P=[{section:null,fields:[]}];for(let e of(Array.isArray(y?.fields)?y.fields:[]).map(e=>sa(e,g)))e.type===`section`?P.push({section:e,fields:[]}):P[P.length-1].fields.push(e);let F=P.filter(e=>e.section||e.fields.length),I=F.filter(e=>!e.section||Xi(e.section.condition,x)).map(e=>({...e,fields:e.fields.filter(e=>Xi(e.condition,x))})),L=F.length>1,R=Math.min(C,Math.max(0,I.length-1)),ee=L?I[R]?.fields??[]:I.flatMap(e=>e.fields),te=ee.filter(e=>{let t=x[ra(e)];return e.required&&(t==null||t===``||t===!1)}),B=R>=I.length-1,V=(e,t)=>{E(t=>{let n=e===`g-recaptcha-response`?(Array.isArray(y?.fields)?y.fields:[]).find(e=>e?.type===`recaptcha`)?.name:e;if(!n||!t[n])return t;let r={...t};return delete r[n],r}),S(n=>{let r={...n,[e]:t};for(let t of Array.isArray(y?.fields)?y.fields:[])t?.parentField===e&&delete r[t.name];return r})},H=()=>{let e={};for(let t of ee){if(t.type===`recaptcha`){t.required&&!x[`g-recaptcha-response`]&&(e[t.name]=ca(t,N(`fieldRequired`)));continue}let n=A.current?.querySelector(`[name="${CSS.escape(String(t.name??``))}"]`);!n?.validity||n.validity.valid||(e[t.name]=ca(t,n.validity.valueMissing?N(`fieldRequired`):n.validationMessage||N(`invalid`)))}E(e);let t=ee.find(t=>e[t.name]);return t&&setTimeout(()=>document.getElementById(`${k}-${t.name}`)?.focus(),0),!t},ne=e=>{v(e),O(N(e===`success`?`submitted`:`submitFailed`)),e===`success`&&setTimeout(()=>j.current?.focus(),0)};return(0,W.jsxs)(`div`,{ref:c,style:z(e),children:[(0,W.jsx)(`form`,{ref:A,action:t||void 0,method:n||`post`,name:r||void 0,encType:i||void 0,noValidate:o&&a?!0:void 0,onSubmit:async e=>{if(e.preventDefault(),!u&&!(o&&a&&!H())){if(a){let t={};if(o)for(let[e,n]of Object.entries(x))n!=null&&n!==``&&(t[e]=n);else for(let[n,r]of new FormData(e.currentTarget).entries())typeof r==`string`&&(t[n]=r===`on`||r);try{let e=await fetch(`${h||`/api`}/forms/${a}/submit`,{method:`post`,headers:{"content-type":`application/json`,...m?{"x-tenant":m}:{}},body:JSON.stringify(t)}),n=await e.json().catch(()=>null),r=n?.error,i=r?.details?.field;if(o&&typeof i==`string`&&ee.some(e=>e.name===i)){E({[i]:ca(ee.find(e=>e.name===i),typeof r.message==`string`&&r.message||N(`invalid`))}),O(N(`submitFailed`)),setTimeout(()=>document.getElementById(`${k}-${i}`)?.focus(),0);return}ne(e.ok&&n?.success!==!1?`success`:`error`)}catch{ne(`error`)}return}if(!t){ne(`success`);return}try{let r=await fetch(t,{method:n||`post`,body:new FormData(e.currentTarget)});ne(r.ok?`success`:`error`)}catch{ne(`error`)}}},style:{...Ki,display:M===`success`?`none`:`flex`},children:o&&a?(0,W.jsxs)(W.Fragment,{children:[L&&(0,W.jsx)(Ga,{steps:I.map(e=>({label:e.section?.label??N(`start`)})),active:R+1,style:{marginBottom:8}}),L&&I[R]?.section?.help&&(0,W.jsx)(`p`,{...G(`step-help`),style:{margin:0,fontSize:14,opacity:.7},children:I[R].section.help}),ee.some(e=>e.required)&&(0,W.jsx)(`p`,{...G(`required-note`),style:{margin:0,fontSize:13,opacity:.7},children:N(`requiredNote`)}),ee.map(e=>(0,W.jsx)(oa,{field:e,value:x[ra(e)],values:x,onChange:V,inert:u,error:T[e.name],idBase:k},e.name)),(0,W.jsxs)(`div`,{...G(`actions`),style:{display:`flex`,gap:10,alignItems:`center`,marginTop:4},children:[L&&R>0&&(0,W.jsx)(`button`,{type:`button`,...G(`back-button`),disabled:u||void 0,onClick:()=>{E({}),w(R-1)},style:{...yr,background:`transparent`,color:`inherit`,border:0,padding:`10px 16px`,cursor:`pointer`},children:N(`back`)}),L&&!B?(0,W.jsx)(`button`,{type:`button`,...G(`next-button`),disabled:u||void 0,onClick:()=>{H()&&w(R+1)},style:{...yr,border:0,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,cursor:`pointer`,opacity:te.length?.75:1},children:N(`next`)}):(0,W.jsx)(`button`,{type:`submit`,...G(`submit-button`),disabled:u||void 0,style:{...yr,border:0,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,cursor:`pointer`},children:s||N(`submit`)})]})]}):d}),(0,W.jsx)(`div`,{ref:j,tabIndex:-1,style:{display:M===`success`?`block`:`none`,outline:`none`},children:f?.success??null}),(0,W.jsx)(`div`,{style:{display:M===`error`?`block`:`none`,marginTop:12},children:f?.error??null}),!u&&(0,W.jsx)(`div`,{role:`status`,"aria-live":`polite`,style:st,children:D})]})}var ua=null,da=null,fa=e=>{let t=typeof e==`string`&&e.trim()?e.trim():``;if(ua&&da===t)return ua;if(ua&&typeof window<`u`){for(let e of[`grecaptcha`,`___grecaptcha_cfg`])try{delete window[e]}catch{window[e]=void 0}document.querySelectorAll(`script[src*="recaptcha"]`).forEach(e=>e.remove())}return da=t,ua=new Promise(e=>{if(typeof window>`u`)return;if(window.grecaptcha?.render)return e(window.grecaptcha);window.__webimRecaptchaReady=()=>e(window.grecaptcha);let n=document.createElement(`script`);n.src=`https://www.google.com/recaptcha/api.js?onload=__webimRecaptchaReady&render=explicit${t?`&hl=${encodeURIComponent(t)}`:``}`,n.async=!0,document.head.appendChild(n)}),ua};function pa({siteKey:e,theme:t,size:n,hl:r,style:i,nodeRef:a,inert:o,onChange:s}){let c=(0,l.useContext)(Un),u=c?.settings&&typeof c.settings==`object`?c.settings[`google.recaptchaKey`]:``,d=typeof e==`string`&&e.trim()||(typeof u==`string`?u.trim():``),f=(0,l.useRef)(null),p=(0,l.useRef)(s);if(p.current=s,(0,l.useEffect)(()=>{if(o||!d||!f.current)return;let e=!0,i=t=>{e&&typeof p.current==`function`&&p.current(t)};return fa(r).then(r=>{if(!(!e||!f.current||!r?.render)){f.current.innerHTML=``,i(``);try{r.render(f.current,{sitekey:d,theme:t===`dark`?`dark`:`light`,size:n===`compact`?`compact`:`normal`,callback:e=>i(typeof e==`string`?e:``),"expired-callback":()=>i(``),"error-callback":()=>i(``)})}catch{}}}),()=>{e=!1}},[o,d,t,n,r]),o){let e=t===`dark`;return(0,W.jsxs)(`div`,{ref:a,style:z(i),children:[(0,W.jsxs)(`div`,{style:{width:n===`compact`?164:302,boxSizing:`border-box`,padding:`12px 14px`,display:`flex`,alignItems:`center`,gap:12,borderRadius:4,border:`1px solid ${e?`#52565b`:`#d3d3d3`}`,background:e?`#222528`:`#f9f9f9`,color:e?`#f1f1f1`:`#282828`,fontSize:14,fontFamily:`Roboto, Arial, sans-serif`},children:[(0,W.jsx)(`span`,{style:{width:24,height:24,flexShrink:0,borderRadius:3,border:`2px solid ${e?`#8a8f94`:`#c1c1c1`}`,background:e?`#2f3337`:`#fff`}}),(0,W.jsx)(`span`,{style:{flexGrow:1},children:`I'm not a robot`}),(0,W.jsx)(`span`,{style:{fontSize:9,opacity:.6,textAlign:`center`,lineHeight:1.3},children:`reCAPTCHA`})]}),!d&&(0,W.jsx)(`div`,{style:{marginTop:6,fontSize:11,color:`#b45309`},children:`Set the google.recaptchaKey tenant setting (or a site key in Settings) to activate it.`})]})}return d?(0,W.jsx)(`div`,{ref:a,style:z(i),children:(0,W.jsx)(`div`,{ref:f})}):null}var ma=e=>typeof e==`string`&&e.trim()?`wb-field-${e.trim()}`:void 0;function ha({text:e,parts:t,htmlFor:n,style:r,nodeRef:i,linked:a}){return(0,W.jsx)(`label`,{ref:i,htmlFor:n||void 0,style:{...qi,...z(r)},children:Mr(t,e,a)})}function ga({type:e=`text`,name:t,placeholder:n,required:r,style:i,nodeRef:a,inert:o}){return(0,W.jsx)(`input`,{ref:a,id:ma(t),type:e,name:t||void 0,autoComplete:aa({name:t,type:{email:`email`,tel:`phone`,url:`link`}[e]}),placeholder:n,required:!o&&!!r,style:{...q,...z(i)},...Yi(o)})}function _a({name:e,placeholder:t,rows:n=4,required:r,style:i,nodeRef:a,inert:o}){return(0,W.jsx)(`textarea`,{ref:a,id:ma(e),name:e||void 0,placeholder:t,rows:n,required:!o&&!!r,style:{...q,resize:`vertical`,...z(i)},...Yi(o)})}function va({kind:e=`checkbox`,label:t,name:n,value:r,required:i,style:a,nodeRef:o,inert:s}){return(0,W.jsxs)(`label`,{ref:o,style:{...Ji,...z(a)},children:[(0,W.jsx)(`input`,{type:e,...G(`control`),name:n||void 0,value:r||void 0,required:!s&&!!i,onClick:s?e=>e.preventDefault():void 0,tabIndex:s?-1:void 0,style:{margin:0,accentColor:`var(--page-accent, #111827)`}}),t]})}function ya({name:e,placeholder:t,options:n=[],required:r,style:i,nodeRef:a,inert:o}){return(0,W.jsxs)(`select`,{ref:a,id:ma(e),name:e||void 0,autoComplete:aa({name:e}),required:!o&&!!r,defaultValue:``,onMouseDown:o?e=>e.preventDefault():void 0,tabIndex:o?-1:void 0,style:{...q,appearance:`auto`,...z(i)},children:[t!==``&&(0,W.jsx)(`option`,{value:``,disabled:!0,children:t??`Select…`}),n.map((e,t)=>(0,W.jsx)(`option`,{value:e,children:e},t))]})}function ba({name:e,accept:t,required:n,text:r=`Choose a file…`,style:i,nodeRef:a,inert:o}){let[s,c]=(0,l.useState)(null);return(0,W.jsxs)(`label`,{ref:a,className:`wb-file`,style:{...q,display:`flex`,alignItems:`center`,gap:`8px`,cursor:o?`default`:`pointer`,borderStyle:`dashed`,color:s?`#111827`:`#6b7280`,...z(i)},children:[(0,W.jsx)(`input`,{type:`file`,name:e||void 0,accept:t||void 0,required:!o&&!!n,disabled:!!o,onChange:e=>c(e.target.files?.[0]?.name??null),style:st}),(0,W.jsx)(`span`,{"aria-hidden":!0,...G(`icon`),children:`📎`}),s??r]})}function xa({legend:e=``,style:t,nodeRef:n,children:r}){return(0,W.jsxs)(`fieldset`,{ref:n,style:{...mr({border:`0 none`,margin:`0`,padding:`0`}),minWidth:0,display:`flex`,flexDirection:`column`,gap:`10px`,...z(t)},children:[typeof e==`string`&&e.trim()?(0,W.jsx)(`legend`,{...G(`legend`),style:{...qi,padding:0,marginBottom:6},children:e}):null,r]})}function Sa({text:e=`Submit`,style:t,nodeRef:n,inert:r}){return(0,W.jsx)(`button`,{ref:n,type:r?`button`:`submit`,style:{...yr,border:0,cursor:`pointer`,alignSelf:`flex-start`,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,lineHeight:1.4,fontFamily:`inherit`,...z(t)},children:e})}function Ca({cols:e=2,rows:t=1,style:n,nodeRef:r,linked:i}){let a=Math.max(1,(Number(e)||1)*(Number(t)||1));return(0,W.jsx)(`div`,{ref:r,style:{display:`grid`,gridTemplateColumns:`repeat(${Math.max(1,Number(e)||1)}, minmax(0, 1fr))`,gap:16,width:`100%`,...z(n)},children:Array.from({length:a},(e,t)=>(0,W.jsx)(`div`,{style:{minWidth:0},children:i?.[`cell-${t}`]??null},t))})}function wa(e,t){if(e===``||e==null)return t;let n=Number(e);return Number.isFinite(n)&&n>=0?n:t}function Ta({collection:e,limit:t=6,layout:n=`grid`,columns:r=3,imageField:i,titleField:a=`name`,textField:o,custom:s,templateId:c,renderTemplate:u,paged:d,filters:f,parentField:p,topLevel:m,childrenOf:h,gap:g,style:_,nodeRef:v}){let{tenant:y,apiUrl:b,revision:x,locale:S}=(0,l.useContext)(Un),C=(0,l.useContext)(Jn),w=(0,l.useContext)(Wn),T=(0,l.useContext)(Yn),E=h?null:e,D=!!p&&!h,[,O]=(0,l.useState)(0);(0,l.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>O(e=>e+1);return window.addEventListener(`popstate`,e),window.addEventListener(`webim:urlchange`,e),()=>{window.removeEventListener(`popstate`,e),window.removeEventListener(`webim:urlchange`,e)}},[]);let k=qn(f),A=JSON.stringify(k),j=A!==`{}`&&!E?.startsWith?.(`api:`),M=j||!E?null:w?.[E],N=d?Gn(w):1,[P,F]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(!E||M)return;let e=!0,n=E,r=new URLSearchParams;if(S&&r.set(`locale`,S),j&&r.set(`data_filter`,A),D&&!n.startsWith(`api:`))r.set(`all`,`1`);else if(d&&!n.startsWith(`api:`)){let e=Math.max(1,Number(t)||6);r.set(`offset`,String((N-1)*e)),r.set(`limit`,String(e))}let i=r.toString(),a=n.startsWith(`api:`)?`${b}/data/${encodeURIComponent(n.slice(4))}`:`${b}/dynamic/${encodeURIComponent(n)}${i?`?${i}`:``}`;return fetch(a,{headers:y?{"x-tenant":y}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];return e&&F(n.filter(e=>e&&typeof e==`object`))}).catch(()=>e&&F([])),()=>{e=!1}},[x,E,y,b,S,M,d,N,t,j,A,D]),!E&&!h)return null;let I=Math.max(1,Number(t)||6),L=h?T?.all??[]:M??P??[],R=h?T?.parentField:p,ee=h?T?.collection:E,te=h?Zn(L,R,T?.entry):D&&m?L.filter(e=>Xn(e,p).length===0):L,B=d&&(M||h||D||E.startsWith(`api:`))?te.slice((N-1)*I,N*I):te.slice(0,I),V=Math.min(Math.max(Number(r)||3,1),6),H=n===`list`?{display:`flex`,flexDirection:`column`,gap:wa(g,20)}:{display:`grid`,gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`,gap:wa(g,24)},ne=u??(c&&C?.render?e=>C.render(c,e):null);return s&&ne?(0,W.jsx)(`div`,{ref:v,style:{width:`100%`,...H,...z(_)},children:B.map(e=>(0,W.jsx)(`div`,{style:{minWidth:0},children:(0,W.jsx)(Yn.Provider,{value:{entry:e,all:L,parentField:R,collection:ee},children:ne(t=>dr(t,e,S))})},e.id??e?.data?.slug))}):(0,W.jsx)(`div`,{ref:v,style:{width:`100%`,...H,...z(_)},children:B.map(e=>{let t=i?nr(e?.data,i):null,r=a?ir(nr(e?.data,a)):null,s=o?nr(e?.data,o):null,c=Array.isArray(s)?s:null,l=c||s==null?null:ir(s),u=n===`list`;return(0,W.jsxs)(`div`,{...G(`card`),style:{display:`flex`,flexDirection:u?`row`:`column`,gap:u?20:12,alignItems:u?`center`:`stretch`,minWidth:0},children:[t&&(0,W.jsx)(`img`,{...G(`image`),src:t,alt:r??``,style:{width:u?160:`100%`,aspectRatio:`3 / 2`,objectFit:`cover`,borderRadius:10,flexShrink:0,display:`block`}}),(0,W.jsxs)(`div`,{...G(`body`),style:{minWidth:0},children:[r&&(0,W.jsx)(`h3`,{...G(`title`),style:{margin:0,fontSize:18,fontWeight:700},children:r}),l&&(0,W.jsx)(`p`,{...G(`text`),style:{margin:`6px 0 0`,fontSize:14,lineHeight:1.55,opacity:.75},children:l}),c&&(0,W.jsx)(`div`,{...G(`text`),style:{marginTop:6,fontSize:14,lineHeight:1.55,opacity:.85},children:Vr(c)})]})]},e.id??e?.data?.slug)})})}function Ea({fields:e=[],buttonLabel:t=`Search`,style:n,nodeRef:r,inert:i}){let a=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&typeof e.name==`string`&&e.name):[],o=i?{}:Kn(),s={height:34,padding:`0 12px`,borderRadius:8,border:`1px solid var(--page-border, rgba(100, 116, 139, 0.4))`,background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,fontSize:13,fontFamily:`inherit`,outline:`none`,minWidth:140,flex:`0 1 auto`,boxSizing:`border-box`},c=e=>{let t=e&&typeof e==`object`?e.value:e,n=e&&typeof e==`object`?e.label??e.value:e;return{value:String(t??``),label:String(n??``)}};return(0,W.jsxs)(`form`,{ref:r,method:`get`,onSubmit:e=>{if(i){e.preventDefault();return}if(typeof window>`u`||!window.history?.pushState)return;e.preventDefault();let t=new URLSearchParams(window.location.search);for(let e of[...t.keys()])(e.startsWith(`f_`)||e===`page`)&&t.delete(e);for(let[n,r]of new FormData(e.currentTarget).entries())n.startsWith(`f_`)&&typeof r==`string`&&r.trim()!==``&&t.set(n,r);let n=t.toString();window.history.pushState({},``,`${window.location.pathname}${n?`?${n}`:``}`),window.dispatchEvent(new Event(`webim:urlchange`))},style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:8,width:`100%`,...z(n)},children:[a.map(e=>Array.isArray(e.options)&&e.options.length>0||e.type===`option`||e.type===`select`?(0,W.jsxs)(`select`,{name:`f_${e.name}`,defaultValue:o[e.name]??``,...G(`select`),style:s,...Yi(i),children:[(0,W.jsx)(`option`,{value:``,children:e.label||e.name}),(Array.isArray(e.options)?e.options:[]).map(e=>{let t=c(e);return(0,W.jsx)(`option`,{value:t.value,children:t.label},t.value)})]},e.name):e.type===`switch`?(0,W.jsxs)(`select`,{name:`f_${e.name}`,defaultValue:o[e.name]??``,...G(`select`),style:s,...Yi(i),children:[(0,W.jsx)(`option`,{value:``,children:e.label||e.name}),(0,W.jsx)(`option`,{value:`true`,children:`Yes`}),(0,W.jsx)(`option`,{value:`false`,children:`No`})]},e.name):(0,W.jsx)(`input`,{type:`text`,name:`f_${e.name}`,defaultValue:o[e.name]??``,placeholder:e.label||e.name,...G(`input`),style:s,...Yi(i)},e.name)),(0,W.jsx)(`button`,{type:`submit`,...G(`button`),style:{...s,minWidth:0,padding:`0 18px`,border:`none`,background:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`,fontWeight:600,cursor:i?`default`:`pointer`},...Yi(i),children:t})]})}function Da({items:e=[],separator:t=`/`,style:n,nodeRef:r}){return e.length?(0,W.jsx)(`nav`,{ref:r,"aria-label":`Breadcrumb`,style:{...z(n)},children:(0,W.jsx)(`ol`,{...G(`list`),style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:8,listStyle:`none`,margin:0,padding:0,fontSize:14},children:e.map((n,r)=>{let i=r===e.length-1;return(0,W.jsxs)(`li`,{...G(`item`),style:{display:`flex`,alignItems:`center`,gap:8,minWidth:0},children:[r>0&&(0,W.jsx)(`span`,{...G(`separator`),style:{opacity:.4},"aria-hidden":!0,children:t}),i||!n.href?(0,W.jsx)(`span`,{...G(`crumb`,i&&`crumb-current`),style:{fontWeight:i?600:400,opacity:i?1:.7},"aria-current":i?`page`:void 0,children:n.label}):(0,W.jsx)(`a`,{...G(`crumb`),href:n.href,style:{color:`inherit`,opacity:.7,textDecoration:`none`},children:n.label})]},r)})})}):null}function Oa({pages:e=5,current:t=1,prevNext:n=!0,href:r=`#`,source:i,pageSize:a=6,align:o,hideEmpty:s,inert:c,style:u,nodeRef:d}){let{tenant:f,apiUrl:p,revision:m}=(0,l.useContext)(Un),h=(0,l.useContext)(Wn),[g,_]=(0,l.useState)(null),v=i?Number(h?.[`${i}:total`]):NaN;(0,l.useEffect)(()=>{if(!i||Number.isFinite(v))return;let e=!0,t=i.startsWith(`api:`)?`${p}/data/${encodeURIComponent(i.slice(4))}`:`${p}/dynamic/${encodeURIComponent(i)}?limit=1`;return fetch(t,{headers:f?{"x-tenant":f}:{}}).then(e=>e.json()).then(t=>{if(!e)return;let n=t?.payload,r=Array.isArray(n)?n.length:Number(n?.total?.filtered??n?.total?.all??(Array.isArray(n?.data)?n.data.length:0));_(Number.isFinite(r)?r:0)}).catch(()=>e&&_(0)),()=>{e=!1}},[m,i,f,p,v]);let y=Math.max(1,Number(a)||6),b=Number.isFinite(v)?v:g;if(i&&b===null||i&&s&&!(b>0))return null;let x=Math.min(Math.max(i?Math.ceil(b/y):Number(e)||1,1),50),S=Math.min(Math.max(i?Gn(h):Number(t)||1,1),x),C=e=>{if(i){if(typeof window<`u`){let t=new URLSearchParams(window.location.search);return t.set(`page`,String(e)),`?${t.toString()}`}return`?page=${e}`}return r&&r!==`#`?r.replace(`{page}`,String(e)):`#`},w=o===`center`?`center`:o===`right`?`flex-end`:`flex-start`,T=c?e=>e.preventDefault():void 0,E=e=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minWidth:36,height:36,padding:`0 8px`,borderRadius:8,fontSize:14,textDecoration:`none`,color:e?`var(--page-accent-text, #ffffff)`:`inherit`,background:e?`var(--page-accent, #111827)`:`transparent`,border:e?`1px solid transparent`:`1px solid rgba(148, 163, 184, 0.4)`});return(0,W.jsxs)(`nav`,{ref:d,"aria-label":`Pagination`,style:{display:`flex`,flexWrap:`wrap`,gap:8,alignItems:`center`,justifyContent:w,...z(u)},children:[n&&(0,W.jsx)(`a`,{...G(`page`,`page-arrow`),href:S>1?C(S-1):`#`,onClick:T,"aria-label":`Previous`,style:{...E(!1),opacity:S>1?1:.4},children:`‹`}),Array.from({length:x},(e,t)=>t+1).map(e=>(0,W.jsx)(`a`,{...G(`page`,e===S&&`page-active`),href:C(e),onClick:T,"aria-current":e===S?`page`:void 0,style:E(e===S),children:e},e)),n&&(0,W.jsx)(`a`,{...G(`page`,`page-arrow`),href:S<x?C(S+1):`#`,onClick:T,"aria-label":`Next`,style:{...E(!1),opacity:S<x?1:.4},children:`›`})]})}var ka=`webim.page_mode`,Aa=()=>{if(typeof window>`u`)return`auto`;try{let e=window.localStorage.getItem(ka);return e===`light`||e===`dark`?e:`auto`}catch{return`auto`}},ja=e=>{let t={width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0};return e===`light`?(0,W.jsxs)(`svg`,{...t,children:[(0,W.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,W.jsx)(`path`,{d:`M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4`})]}):e===`dark`?(0,W.jsx)(`svg`,{...t,children:(0,W.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})}):(0,W.jsxs)(`svg`,{...t,children:[(0,W.jsx)(`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`}),(0,W.jsx)(`path`,{d:`M8 21h8M12 17v4`})]})},Ma={light:`Light theme`,dark:`Dark theme`,auto:`Follow the device theme`};function Na({variant:e,showSystem:t,style:n,nodeRef:r,inert:i}){let[a,o]=(0,l.useState)(i?`auto`:Aa),s=(0,l.useRef)(null),c=e=>{s.current=e,typeof r==`function`&&r(e)};(0,l.useEffect)(()=>{if(i)return;let e=s.current?.closest?.(`.webim-page`);e&&(a===`light`||a===`dark`?e.setAttribute(`data-webim-mode`,a):e.removeAttribute(`data-webim-mode`));try{a===`auto`?window.localStorage.removeItem(ka):window.localStorage.setItem(ka,a)}catch{}},[a,i]);let u=t===!1?[`light`,`dark`]:[`light`,`dark`,`auto`],d=u.includes(a)?a:u[0],f={appearance:`none`,border:0,margin:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,background:`transparent`,color:`inherit`,font:`inherit`,cursor:i?`default`:`pointer`,borderRadius:999};if(e===`buttons`)return(0,W.jsx)(`div`,{ref:c,role:`group`,"aria-label":`Theme`,style:{display:`inline-flex`,alignItems:`center`,gap:2,padding:3,borderRadius:999,border:`1px solid rgba(148, 163, 184, 0.4)`,...z(n)},children:u.map(e=>(0,W.jsx)(`button`,{...G(`option`,e===d&&`option-active`),type:`button`,title:Ma[e],"aria-label":Ma[e],"aria-pressed":e===d,onClick:i?void 0:()=>o(e),style:{...f,width:28,height:28,color:e===d?`var(--page-accent-text, #ffffff)`:`inherit`,background:e===d?`var(--page-accent, #111827)`:`transparent`,opacity:e===d?1:.7},children:ja(e)},e))});let p=u[(u.indexOf(d)+1)%u.length];return(0,W.jsx)(`button`,{ref:c,type:`button`,title:Ma[d],"aria-label":`Theme: ${Ma[d]} — switch to ${Ma[p]}`,onClick:i?void 0:()=>o(p),style:{...f,width:36,height:36,border:`1px solid rgba(148, 163, 184, 0.4)`,...z(n)},children:ja(d)})}function Pa(e){let t=e?.parentElement;for(;t&&t!==document.body;){let e=getComputedStyle(t).overflowY;if((e===`auto`||e===`scroll`)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}var Fa=e=>e===window?window.scrollY:e.scrollTop,Ia={"bottom-right":e=>({right:e,bottom:e}),"bottom-left":e=>({left:e,bottom:e}),"bottom-center":e=>({left:`50%`,bottom:e,transform:`translateX(-50%)`})},La={linear:e=>e,out:e=>1-(1-e)**3,inout:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2},Ra=e=>{let t=e.getBoundingClientRect(),n=e.parentElement;for(;n&&n!==document.body;){let e=getComputedStyle(n);if(/(auto|scroll)/.test(e.overflowY)&&n.scrollHeight>n.clientHeight)break;n=n.parentElement}return!n||n===document.body?Math.max(document.documentElement.scrollHeight-(t.bottom+window.scrollY),0):Math.max(n.scrollHeight-(t.bottom-n.getBoundingClientRect().top+n.scrollTop),0)},za=(e,t)=>{let n=typeof e==`number`?e:parseFloat(e);return Number.isFinite(n)?n:t};function Ba(e,{locale:t,decimals:n=0,separator:r=`auto`}={}){let i=Math.min(Math.max(Math.round(za(n,0)),0),6);try{return new Intl.NumberFormat(t||void 0,{minimumFractionDigits:i,maximumFractionDigits:i,useGrouping:r!==`none`}).format(e)}catch{return e.toFixed(i)}}function Va({from:e,to:t,duration:n,delay:r,decimals:i,prefix:a,suffix:o,separator:s,easing:c,trigger:u,offset:d,once:f,label:p,align:m,style:h,nodeRef:g,inert:_}){let{locale:v}=(0,l.useContext)(Un),y=Math.max(za(d,0),0),b=za(e,0),x=za(t,100),[S,C]=(0,l.useState)(x),w=(0,l.useRef)(null),[T,E]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=w.current;if(_||!T||!e){C(x);return}C(b);let t=Math.max(za(n,2e3),0),i=Math.max(za(r,0),0),a=La[c]||La.out,o=typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,s=0,l=0,d=!1,p=()=>{if(cancelAnimationFrame(s),clearTimeout(l),o||t===0){C(x);return}l=setTimeout(()=>{let e=performance.now(),n=r=>{let i=Math.min((r-e)/t,1);C(b+(x-b)*a(i)),i<1&&(s=requestAnimationFrame(n))};s=requestAnimationFrame(n)},i)};if(u===`load`||typeof IntersectionObserver>`u`)return p(),()=>{cancelAnimationFrame(s),clearTimeout(l)};let m=new IntersectionObserver(e=>{let t=e.some(e=>e.isIntersecting);t&&(!d||f===!1)?(d=!0,p()):!t&&f===!1&&(cancelAnimationFrame(s),clearTimeout(l),C(b))},{rootMargin:`0px 0px -${Math.min(y,Math.floor(Ra(e)))}px 0px`,threshold:y>0?0:.3});return m.observe(e),()=>{m.disconnect(),cancelAnimationFrame(s),clearTimeout(l)}},[T,_,b,x,n,r,c,u,y,f]),(0,W.jsxs)(`div`,{ref:e=>{w.current=e,e&&E(!0),typeof g==`function`&&g(e)},"data-wb-counter":``,style:{display:`flex`,flexDirection:`column`,alignItems:m===`left`?`flex-start`:m===`right`?`flex-end`:`center`,gap:4,fontSize:48,fontWeight:700,lineHeight:1.1,textAlign:m===`left`?`left`:m===`right`?`right`:`center`,...z(h)},children:[(0,W.jsxs)(`span`,{...G(`number`),style:{fontVariantNumeric:`tabular-nums`,whiteSpace:`nowrap`},children:[a||``,Ba(S,{locale:v,decimals:i,separator:s}),o||``]}),p?(0,W.jsx)(`span`,{...G(`label`),style:{fontSize:`0.3em`,fontWeight:400,lineHeight:1.4,opacity:.72},children:p}):null]})}function Ha({variant:e,label:t,position:n,offset:r,showAfter:i,smooth:a,bg:o,fg:s,style:c,nodeRef:u,inert:d,frame:f,builder:p}){let[m,h]=(0,l.useState)(!!d),[g,_]=(0,l.useState)(null),v=e=>{_(e),typeof u==`function`&&u(e)};(0,l.useEffect)(()=>{if(d){h(!0);return}if(!g)return;let e=Number(i)>=0?Number(i):300,t=()=>{let t=Pa(g),n=p&&!(t===window?document.documentElement.scrollHeight>window.innerHeight:t.scrollHeight>t.clientHeight);h(n||Fa(t)>e)};return t(),document.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>document.removeEventListener(`scroll`,t,{capture:!0})},[d,g,i,p]);let y=()=>{if(d)return;let e=Pa(g),t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,n=a===!1||t?`auto`:`smooth`;e===window?window.scrollTo({top:0,behavior:n}):e.scrollTo({top:0,behavior:n})},b=Number(r)>=0?Number(r):24,x=e===`pill`,S=t||`Top`,C=Ia[n]?n:`bottom-right`,w=f?{position:`fixed`,zIndex:5,bottom:(f.bottom??0)+b,...C===`bottom-left`?{left:(f.left??0)+b}:null,...C===`bottom-right`?{right:(f.right??0)+b}:null,...C===`bottom-center`?{left:(f.left??0)+(f.width??0)/2,transform:`translateX(-50%)`}:null}:{position:`fixed`,zIndex:2147482e3,...Ia[C](b)};return(0,W.jsxs)(`button`,{ref:v,type:`button`,title:S,"aria-label":S,"aria-hidden":!m,tabIndex:m?0:-1,onClick:y,style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:x?8:0,appearance:`none`,font:`inherit`,fontSize:14,fontWeight:600,width:x?`auto`:44,height:44,padding:x?`0 18px`:0,borderRadius:999,border:`1px solid transparent`,background:o||`var(--page-accent, #111827)`,color:s||`var(--page-accent-text, #ffffff)`,boxShadow:`0 6px 20px rgba(15, 23, 42, 0.25)`,cursor:d?`default`:`pointer`,opacity:+!!m,pointerEvents:m?`auto`:`none`,transition:`opacity 160ms ease, transform 160ms ease`,...w,...z(c),...w.transform?{transform:w.transform}:null},children:[(0,W.jsx)(`svg`,{...G(`icon`),width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M12 19V5M12 5l-7 7M12 5l7 7`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}),x?(0,W.jsx)(`span`,{...G(`label`),children:S}):null]})}var Ua={facebook:{label:`Facebook`,color:`#1877f2`,d:`M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z`},instagram:{label:`Instagram`,color:`#e4405f`,d:`M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06zm0 5.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z`},x:{label:`X (Twitter)`,color:`#000000`,d:`M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z`},linkedin:{label:`LinkedIn`,color:`#0a66c2`,d:`M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z`},youtube:{label:`YouTube`,color:`#ff0000`,d:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},tiktok:{label:`TikTok`,color:`#000000`,d:`M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z`},whatsapp:{label:`WhatsApp`,color:`#25d366`,d:`M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z`},telegram:{label:`Telegram`,color:`#26a5e4`,d:`M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z`},pinterest:{label:`Pinterest`,color:`#bd081c`,d:`M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.03-.655 2.569-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z`},github:{label:`GitHub`,color:`#181717`,d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`},discord:{label:`Discord`,color:`#5865f2`,d:`M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.058a.082.082 0 00.031.056 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.873-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.009c.12.099.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.331c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z`},email:{label:`E-mail`,color:`#64748b`,d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z`},website:{label:`Website`,color:`#64748b`,d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z`}};function Wa({links:e=[],variant:t,color:n,size:r,gap:i,newTab:a,style:o,nodeRef:s,inert:c}){let l=Array.isArray(e)?e.filter(e=>e&&Ua[e.network]):[];if(!l.length)return null;let u=Math.min(Math.max(Number(r)||18,10),64),d=Math.round(u*1.9),f=Number.isFinite(Number(i))?Number(i):10,p=e=>n===`accent`?`var(--page-accent, #111827)`:n===`inherit`?`currentColor`:e.color,m=c?e=>e.preventDefault():void 0;return(0,W.jsx)(`div`,{ref:s,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:f,...z(o)},children:l.map((e,r)=>{let i=Ua[e.network],o=t!==`outline`&&t!==`plain`,s=o?n===`accent`?`var(--page-accent-text, #ffffff)`:n===`inherit`?`var(--page-bg, #ffffff)`:`#ffffff`:p(i);return(0,W.jsx)(`a`,{...G(`link`,/^[a-z]+$/.test(e.network??``)&&`link-${e.network}`),href:e.url||`#`,onClick:m,"aria-label":e.label||i.label,title:e.label||i.label,...a!==!1&&!c?{target:`_blank`,rel:`noopener noreferrer`}:{},style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:t===`plain`?u:d,height:t===`plain`?u:d,borderRadius:`50%`,background:o?p(i):`transparent`,border:t===`outline`?`1px solid ${p(i)}`:`none`,color:`inherit`,textDecoration:`none`},children:(0,W.jsx)(`svg`,{...G(`icon`),width:u,height:u,viewBox:`0 0 24 24`,fill:s,"aria-hidden":!0,children:(0,W.jsx)(`path`,{d:i.d})})},`${e.network}-${r}`)})})}function Ga({steps:e=[],active:t=1,vertical:n=!1,style:r,nodeRef:i}){if(!e.length)return null;let a=Math.min(Math.max(Number(t)||1,1),e.length),o=e=>({width:32,height:32,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:14,fontWeight:600,flexShrink:0,color:e===`todo`?`inherit`:`var(--page-accent-text, #ffffff)`,background:e===`todo`?`transparent`:`var(--page-accent, #111827)`,border:e===`todo`?`1px solid rgba(148, 163, 184, 0.5)`:`1px solid transparent`,opacity:e===`todo`?.6:1,boxShadow:e===`active`?`0 0 0 4px rgba(99, 102, 241, 0.2)`:`none`}),s=e=>({flexGrow:1,alignSelf:`center`,background:e?`var(--page-accent, #111827)`:`rgba(148, 163, 184, 0.4)`,...n?{width:2,minHeight:24,marginLeft:15,alignSelf:`auto`}:{height:2,minWidth:24}});return(0,W.jsx)(`div`,{ref:i,style:{display:`flex`,flexDirection:n?`column`:`row`,alignItems:n?`stretch`:`flex-start`,gap:n?4:8,...z(r)},children:e.map((e,t)=>{let r=t+1,i=r<a?`done`:r===a?`active`:`todo`;return(0,W.jsxs)(l.Fragment,{children:[t>0&&(0,W.jsx)(`div`,{...G(`step-line`,r<=a&&`step-line-done`),style:s(r<=a),"aria-hidden":!0}),(0,W.jsxs)(`div`,{...G(`step`,`step-${i}`),style:{display:`flex`,flexDirection:n?`row`:`column`,alignItems:`center`,gap:8,minWidth:0,textAlign:n?`left`:`center`},children:[(0,W.jsx)(`div`,{...G(`step-circle`,`step-circle-${i}`),style:o(i),children:i===`done`?`✓`:r}),(0,W.jsxs)(`div`,{style:{minWidth:0},children:[(0,W.jsx)(`div`,{...G(`step-label`,`step-label-${i}`),style:{fontSize:13,fontWeight:i===`active`?700:500,opacity:i===`todo`?.6:1},children:e.label}),e.description&&(0,W.jsx)(`div`,{...G(`step-description`),style:{fontSize:12,opacity:.6},children:e.description})]})]})]},t)})})}var Ka={small:{w:132,h:46,name:11.5,title:10,avatar:28},medium:{w:168,h:56,name:13,title:11,avatar:36},large:{w:210,h:70,name:15.5,title:12.5,avatar:46}},qa=e=>Ka[e]??Ka.medium;Ka.medium.w,Ka.medium.h;var Ja=e=>String(e?.group??``).trim(),Ya=e=>{let t=[],n=new Map;return e.forEach((e,r)=>{let i=Ja(e)||`#${r}`;n.has(i)||(n.set(i,[]),t.push(i)),n.get(i).push(e)}),t.flatMap(e=>n.get(e))},Xa=20,Za=12,Qa=[`left`,`center`,`right`],$a=e=>e.points.map((e,t)=>`${t?`L`:`M`} ${e.x} ${e.y}`).join(` `);function eo(e,{size:t=`medium`,horizontal:n=!1,groupTitles:r=`top`,columns:i=`off`}={}){let a=qa(t),o=n?a.h:a.w,s=n?16:20,c=(n?a.w:a.h)+(n?56:48),l=Array.isArray(e)?e.filter(e=>e&&e.id):[],u=new Set(l.map(e=>e.id)),d=new Map,f=[];for(let e of l)e.parent&&u.has(e.parent)&&e.parent!==e.id?(d.has(e.parent)||d.set(e.parent,[]),d.get(e.parent).push(e)):f.push(e);f=Ya(f);for(let[e,t]of d)d.set(e,Ya(t));let p=!n&&Qa.includes(i),m=e=>Qa.includes(e?.columns)?e.columns:i,h=e=>{let t=d.get(e.id)??[];if(!p)return t.map(e=>({nodes:[e]}));let n=[],r=[],i=()=>{r.length>1?n.push({nodes:r,line:m(e)}):r.forEach(e=>n.push({nodes:[e]})),r=[]};for(let e of t){let t=!(d.get(e.id)??[]).length;r.length&&(!t||Ja(r[0])!==Ja(e))&&i(),t?r.push(e):n.push({nodes:[e]})}return i(),n},g=(e,t)=>s+(Ja(e)!==Ja(t)&&(Ja(e)||Ja(t))?24:0),_=(e,t)=>g(e.nodes.at(-1),t.nodes[0]),v=e=>o+(e.line===`center`?0:Xa),y=new Map,b=(e,t)=>{if(t.has(e.id))return 0;t.add(e.id);let n=h(e),r=n.reduce((e,r,i)=>{let a=r.line?v(r):b(r.nodes[0],t);return r.line&&r.nodes.forEach(e=>t.add(e.id)),e+a+(i?_(n[i-1],r):0)},0),i=Math.max(o,r);return y.set(e.id,i),i};f.forEach(e=>b(e,new Set));let x=[],S=[],C=new Map,w=0,T=(e,t,r)=>{x.push({node:e,x:t,y:r});let i=Ja(e);if(i){let n=`${e.parent&&u.has(e.parent)&&e.parent!==e.id?e.parent:``}|${i}`;C.has(n)||C.set(n,{title:i,color:``,members:[]});let a=C.get(n);!a.color&&e.groupColor&&(a.color=e.groupColor),a.members.push({x:t,y:r})}w=Math.max(w,n?t+a.w:r+a.h)},E=(e,t,n,r)=>{let i=t+(e.line===`left`?Xa:0),o=n*c,s=r.y+(o-r.y)/2,l=e.line===`left`?i-Xa/2:i+a.w+Xa/2;e.nodes.forEach((t,n)=>{let c=o+n*(a.h+Za),u=c+a.h/2;if(T(t,i,c),e.line===`center`)S.push(n?{points:[{x:i+a.w/2,y:c-Za},{x:i+a.w/2,y:c}]}:{points:[r,{x:r.x,y:s},{x:i+a.w/2,y:s},{x:i+a.w/2,y:c}]});else{let t=e.line===`left`?i:i+a.w;S.push({points:[r,{x:r.x,y:s},{x:l,y:s},{x:l,y:u},{x:t,y:u}]})}})},D=(e,t,r,i)=>{if(i.has(e.id))return;i.add(e.id);let s=t+((y.get(e.id)??o)-o)/2,l=r*c;T(e,n?l:s,n?s:l);let u=t,d=h(e),f=n?{x:l+a.w,y:s+a.h/2}:{x:s+a.w/2,y:l+a.h};d.forEach((e,t)=>{if(t&&(u+=_(d[t-1],e)),e.line){E(e,u,r+1,f),e.nodes.forEach(e=>i.add(e.id)),u+=v(e);return}let a=e.nodes[0],s=u+((y.get(a.id)??o)-o)/2+o/2,l=(r+1)*c;S.push({points:n?[f,{x:(f.x+l)/2,y:f.y},{x:(f.x+l)/2,y:s},{x:l,y:s}]:[f,{x:f.x,y:(f.y+l)/2},{x:s,y:(f.y+l)/2},{x:s,y:l}]}),D(a,u,r+1,i),u+=y.get(a.id)??o})},O=0,k=new Set;f.forEach((e,t)=>{t&&(O+=g(f[t-1],e)),D(e,O,0,k),O+=y.get(e.id)??o});let A=Math.max(O,o),j=r===`hidden`?0:22,M=[...C.values()].map(e=>{let t=Math.min(...e.members.map(e=>e.x))-12,n=Math.max(...e.members.map(e=>e.x))+a.w+12,i=Math.min(...e.members.map(e=>e.y))-12-(r===`bottom`?0:j),o=Math.max(...e.members.map(e=>e.y))+a.h+12+(r===`bottom`?j:0);return{x:t,y:i,width:n-t,height:o-i,title:e.title,color:e.color}}),N=n?Math.max(w,a.w):A,P=n?A:Math.max(w,a.h),F=Math.max(0,...M.map(e=>-e.x)),I=Math.max(0,...M.map(e=>-e.y));if(M.length&&(N=Math.max(N,...M.map(e=>e.x+e.width))+F,P=Math.max(P,...M.map(e=>e.y+e.height))+I,F||I)){for(let e of x)e.x+=F,e.y+=I;for(let e of S)e.points=e.points.map(e=>({x:e.x+F,y:e.y+I}));for(let e of M)e.x+=F,e.y+=I}return{boxes:x,links:S,groups:M,width:N,height:P,horizontal:n}}var to=(e,t)=>{let n=String(e??``);return n.length>t?`${n.slice(0,t-1)}…`:n},no=e=>{let t=/^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(String(e??``).trim());if(!t)return`#ffffff`;let n=t[1];n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=parseInt(n,16);return .299*(r>>16&255)+.587*(r>>8&255)+.114*(r&255)>150?`#111827`:`#ffffff`},ro=e=>!!(e?.cv?.trim?.()||e?.photo||e?.profilePhoto||e?.profile?.length);function io(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],r=e=>Array.isArray(e)?e[0]:e,i=e=>e==null?``:ir(e);return n.map(e=>{let n=e.data??{},a=r(n[t.parentField]),o=a&&typeof a==`object`?a.id??null:a||null;return{id:e.id,name:i(n[t.nameField||`name`])||i(n.name)||`Untitled`,title:t.titleField?i(n[t.titleField]):``,photo:t.photoField&&r(n[t.photoField])||``,parent:t.parentField?o:null,cv:t.cvField?i(n[t.cvField]):``,href:t.hrefField?i(n[t.hrefField]):``,group:t.groupField?i(n[t.groupField]):``}})}var J=/^(https?:\/\/[^\s"<>]+|mailto:[^\s"<>]+|tel:[+\d][\d\s().-]*|\/(?!\/)[^\s"<>]*)$/i,ao=e=>{let t=String(e??``).trim();return J.test(t)?t:``},oo=e=>{e.startsWith(`/`)?window.location.assign(e):window.open(e,`_blank`,`noopener,noreferrer`)},so={size:36,pad:10};function co({node:e,onClose:t}){(0,l.useEffect)(()=>{let e=e=>e.key===`Escape`&&t();return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]);let n=e.profile?.length?e.profile:null,r=n?``:e.profilePhoto||e.photo,i=e.title||e.name,a=e.title&&e.name?e.name:``,o=!!(n||r&&e.cv),s=ao(e.href);return(0,W.jsx)(`div`,{onClick:t,role:`dialog`,"aria-modal":`true`,"aria-label":i,style:{position:`fixed`,inset:0,zIndex:1e3,background:`rgba(2, 6, 23, 0.6)`,backdropFilter:`blur(4px)`,WebkitBackdropFilter:`blur(4px)`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:16},children:(0,W.jsxs)(`div`,{onClick:e=>e.stopPropagation(),style:{background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,border:`1px solid rgba(148, 163, 184, 0.35)`,borderRadius:14,maxWidth:o?900:440,width:`100%`,maxHeight:`85vh`,display:`flex`,flexDirection:`column`,overflow:`hidden`,boxShadow:`0 24px 64px rgba(2, 6, 23, 0.5)`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,gap:12,padding:`18px 20px 14px 24px`,borderBottom:`1px solid rgba(148, 163, 184, 0.3)`},children:[(0,W.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,W.jsx)(`div`,{style:{fontSize:18,fontWeight:700,lineHeight:1.35},children:i}),a&&(0,W.jsx)(`div`,{style:{fontSize:14,opacity:.7,marginTop:2},children:a})]}),(0,W.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:t,style:{flexShrink:0,width:32,height:32,border:0,borderRadius:8,background:`transparent`,color:`inherit`,fontSize:20,lineHeight:1,cursor:`pointer`,opacity:.6},children:`×`})]}),(0,W.jsxs)(`div`,{style:{overflowY:`auto`,padding:24,display:`flex`,flexWrap:`wrap`,gap:24,alignItems:`flex-start`},children:[r&&(0,W.jsx)(`img`,{src:r,alt:e.name||i,style:o?{flex:`1 1 220px`,maxWidth:340,width:`100%`,height:`auto`,borderRadius:10,objectFit:`cover`}:{width:96,height:96,borderRadius:`50%`,objectFit:`cover`}}),(n||e.cv||s)&&(0,W.jsxs)(`div`,{style:{flex:`2 1 320px`,minWidth:0},children:[n&&(0,W.jsx)(`div`,{style:{display:`flow-root`,marginBottom:s?12:0},children:Vr(n)}),!n&&e.cv&&String(e.cv).split(/\n+/).map((e,t)=>(0,W.jsx)(`p`,{style:{fontSize:15,lineHeight:1.65,margin:`0 0 12px`},children:e},t)),s&&(0,W.jsx)(`a`,{href:s,target:`_blank`,rel:`noopener noreferrer`,style:{display:`inline-block`,marginTop:6,padding:`8px 14px`,borderRadius:8,fontSize:13,fontWeight:600,textDecoration:`none`,background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`},children:`Open profile ↗`})]})]})]})})}function lo(e){return e.chart?.people?.length?(0,W.jsx)(uo,{...e}):(0,W.jsx)(fo,{...e})}function uo({chart:e,profiles:t,style:n,nodeRef:r,interactive:i=!0}){let[a,o]=(0,l.useState)(null),s=(0,l.useMemo)(()=>yn(e),[e]),c=(0,l.useMemo)(()=>new Set(e.people.map(e=>e.parent)),[e]);return(0,W.jsxs)(`div`,{ref:r,style:{maxWidth:`100%`,overflowX:`auto`,...z(n)},children:[(0,W.jsxs)(`svg`,{viewBox:`0 0 ${s.width} ${s.height}`,role:`img`,"aria-label":`Organization chart`,style:{display:`block`,width:`100%`,maxWidth:s.width,height:`auto`,margin:`0 auto`},children:[s.frames.map(({person:e,x:t,y:n,width:r,height:i})=>(0,W.jsx)(`foreignObject`,{x:t,y:n,width:r,height:i,children:(0,W.jsx)(`div`,{style:{width:`100%`,height:`100%`},dangerouslySetInnerHTML:{__html:Vn(e,c.has(e.id))}})},e.id)),s.links.map((e,t)=>(0,W.jsx)(`path`,{d:En(e),fill:`none`,stroke:Nn.line,strokeWidth:`1.5`},t)),s.cards.map(({person:n,x:r,y:a,width:c,height:l})=>{let u=Array.isArray(t?.[n.id])&&t[n.id].length?t[n.id]:null,d={id:n.id,name:n.name,title:n.title,cv:n.description,photo:n.photo,profilePhoto:n.photo,href:n.link,profile:u},f=ao(n.link),p=i&&(f||ro(d)),m=()=>f?oo(f):o(d);return(0,W.jsx)(`g`,{onClick:p?m:void 0,onKeyDown:p?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),m())}:void 0,tabIndex:p?0:void 0,style:p?{cursor:`pointer`}:void 0,role:p?f?`link`:`button`:void 0,"aria-label":p?f?`${n.name||n.title} — open link`:`Open ${n.name||n.title}'s profile`:void 0,children:(0,W.jsx)(`foreignObject`,{x:r,y:a,width:c,height:l,children:(0,W.jsx)(`div`,{style:{width:`100%`,height:`100%`},dangerouslySetInnerHTML:{__html:Bn(n,e,s.size,Nn)}})})},n.id)})]}),a&&(0,W.jsx)(co,{node:a,onClose:()=>o(null)})]})}function fo({nodes:e=[],source:t,nameField:n,titleField:r,photoField:i,parentField:a,cvField:o,hrefField:s,groupField:c,groupTitles:u=`top`,groupBg:d=``,size:f=`medium`,horizontal:p=!1,columns:m=`off`,style:h,nodeRef:g,interactive:_=!0}){let v=(0,l.useId)(),[y,b]=(0,l.useState)(null),{tenant:x,apiUrl:S,revision:C}=(0,l.useContext)(Un),w=(0,l.useContext)(Wn)?.[t],[T,E]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(!t||w)return;let e=!0;return fetch(`${S}/dynamic/${encodeURIComponent(t)}`,{headers:x?{"x-tenant":x}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&E(n)}).catch(()=>e&&E([])),()=>{e=!1}},[C,t,x,S,w]);let D=t?io(w??T??[],{nameField:n,titleField:r,photoField:i,parentField:a,cvField:o,hrefField:s,groupField:c}):e,O=qa(f),{boxes:k,links:A,groups:j,width:M,height:N}=eo(D,{size:f,horizontal:p,groupTitles:u,columns:m});if(!k.length)return!_&&t?(0,W.jsxs)(`div`,{ref:g,style:{padding:18,border:`1px dashed rgba(148, 163, 184, 0.6)`,borderRadius:10,fontSize:13,opacity:.7,textAlign:`center`,...z(h)},children:[`Org Chart — no published entries in “`,t,`” yet`]}):null;let P=new Set(k.filter(e=>e.node.parent==null||e.node.parent===``).map(e=>e.node.id));return(0,W.jsxs)(`div`,{ref:g,style:{maxWidth:`100%`,overflowX:`auto`,...z(h)},children:[(0,W.jsxs)(`svg`,{viewBox:`0 0 ${M} ${N}`,role:`img`,"aria-label":`Organization chart`,style:{display:`block`,width:`100%`,maxWidth:M,height:`auto`,margin:`0 auto`},children:[j.map((e,t)=>{let n=e.color||d||`rgba(148, 163, 184, 0.16)`,r=!!(e.color||d);return(0,W.jsxs)(`g`,{children:[(0,W.jsx)(`rect`,{x:e.x,y:e.y,width:e.width,height:e.height,rx:`16`,fill:n}),u!==`hidden`&&e.title&&(0,W.jsx)(`text`,{x:e.x+e.width/2,y:u===`bottom`?e.y+e.height-22*.42:e.y+22*.78,textAnchor:`middle`,fontSize:O.title+1,fontWeight:`600`,opacity:`0.55`,fill:r?no(e.color||d):`var(--page-text, #111827)`,children:to(e.title,Math.floor(e.width/7))})]},`group-${t}`)}),A.map((e,t)=>(0,W.jsx)(`path`,{d:$a(e),fill:`none`,stroke:`rgba(148, 163, 184, 0.7)`,strokeWidth:`1.5`},t)),k.map(({node:e,x:t,y:n})=>{let r=P.has(e.id),i=!!e.color2,a=!!e.color||r||i,o=e.color||(r?`var(--page-accent, #4f46e5)`:`var(--page-bg, #ffffff)`),s=e.color?no(e.color):r?`var(--page-accent-text, #ffffff)`:`var(--page-text, #111827)`,c=i?no(e.color2):s,l=ao(e.href),u=_&&(l||ro(e)),d=()=>l?oo(l):b(e),f=e.photo?t+so.pad+O.avatar+8:t+O.w/2,p=e.photo?`start`:`middle`,m=e.photo?Math.floor((O.w-O.avatar-26)/7):Math.floor(O.w/7.6),h=O.h/2,g=[e.name,e.title].map(e=>String(e??``).trim()).filter(Boolean);return(0,W.jsxs)(`g`,{onClick:u?d:void 0,onKeyDown:u?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),d())}:void 0,tabIndex:u?0:void 0,style:u?{cursor:`pointer`}:void 0,role:u?l?`link`:`button`:void 0,"aria-label":u?l?`${e.name||e.title} — open link`:`Open ${e.name||e.title}'s profile`:void 0,children:[i&&e.gradient?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`linearGradient`,{id:`${v}-${e.id}-grad`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:e.color||`var(--page-accent, #4f46e5)`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:e.color2})]}),(0,W.jsx)(`rect`,{x:t,y:n,width:O.w,height:O.h,rx:`10`,fill:`url(#${v}-${e.id}-grad)`})]}):i?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`clipPath`,{id:`${v}-${e.id}-box`,children:(0,W.jsx)(`rect`,{x:t,y:n,width:O.w,height:O.h,rx:`10`})}),(0,W.jsxs)(`g`,{clipPath:`url(#${v}-${e.id}-box)`,children:[(0,W.jsx)(`rect`,{x:t,y:n,width:O.w,height:h,fill:o}),(0,W.jsx)(`rect`,{x:t,y:n+h,width:O.w,height:O.h-h,fill:e.color2})]})]}):(0,W.jsx)(`rect`,{x:t,y:n,width:O.w,height:O.h,rx:`10`,fill:o,stroke:a?`none`:`var(--page-accent, #4f46e5)`,strokeWidth:a?0:1.5}),e.photo&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`clipPath`,{id:`${v}-${e.id}`,children:(0,W.jsx)(`circle`,{cx:t+so.pad+O.avatar/2,cy:n+O.h/2,r:O.avatar/2})}),(0,W.jsx)(`image`,{href:e.photo,x:t+so.pad,y:n+(O.h-O.avatar)/2,width:O.avatar,height:O.avatar,preserveAspectRatio:`xMidYMid slice`,clipPath:`url(#${v}-${e.id})`})]}),i&&!e.gradient?(0,W.jsxs)(W.Fragment,{children:[e.title&&(0,W.jsx)(`text`,{x:f,y:n+h/2+O.title*.35,textAnchor:p,fontSize:O.title,fontWeight:`600`,fill:s,children:to(e.title,m+4)}),e.name&&(0,W.jsx)(`text`,{x:f,y:n+h+h/2+O.name*.35,textAnchor:p,fontSize:O.name,fontWeight:`600`,fill:c,children:to(e.name,m)})]}):(0,W.jsxs)(W.Fragment,{children:[g[0]&&(0,W.jsx)(`text`,{x:f,y:n+(g[1]?O.h*.43:O.h*.57),textAnchor:p,fontSize:O.name,fontWeight:`600`,fill:s,children:to(g[0],m)}),g[1]&&(0,W.jsx)(`text`,{x:f,y:n+O.h*.73,textAnchor:p,fontSize:O.title,opacity:`0.7`,fill:s,children:to(g[1],m+4)})]})]},e.id)})]}),y&&(0,W.jsx)(co,{node:y,onClose:()=>b(null)})]})}function po({value:e,onCommit:t,style:n,hint:r}){let[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!i||!o.current)return;let e=o.current,t=document.createRange();e.focus(),t.selectNodeContents(e),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)},[i]),(0,W.jsx)(`span`,{ref:o,contentEditable:i,suppressContentEditableWarning:!0,title:i?void 0:r||`Double-click to edit`,onDoubleClick:()=>a(!0),onBlur:i?e=>{a(!1),t(e.currentTarget.textContent)}:void 0,onKeyDown:i?t=>{t.stopPropagation(),t.key===`Escape`&&(t.currentTarget.textContent=e??``,t.currentTarget.blur()),t.key===`Enter`&&(t.preventDefault(),t.currentTarget.blur())}:void 0,style:{display:`block`,minHeight:`1em`,outline:`none`,cursor:i?`text`:`inherit`,...n},children:e??``})}var mo=360,ho=`
|
|
21
|
+
`),n=null;return t.map(e=>{let t=Bt.exec(e);return n?(t&&t[1].startsWith(n[0])&&t[1].length>=n.length&&(n=null),e):t?(n=t[1],e):e.replace(/^[ \t]+/,e=>e.replace(/\t/g,` `))})}function tn(e,t){let n=[],r=0;for(;r<e.length;){let i=e[r];if(zt.test(i)){r+=1;continue}let a=Bt.exec(i);if(a){let t=[],i=r+1;for(;i<e.length;){let n=Bt.exec(e[i]);if(n&&n[1][0]===a[1][0]&&n[1].length>=a[1].length&&!n[2])break;t.push(e[i]),i+=1}n.push({type:`code`,lang:a[2]||``,text:t.join(`
|
|
22
|
+
`)}),r=i+1;continue}let o=Vt.exec(i);if(o){let e=(o[2]??``).replace(/[ \t]+#+[ \t]*$/,``);n.push({type:`h${o[1].length}`,parts:Rt(e,t)}),r+=1;continue}if(Ht.test(i)){n.push({type:`divider`}),r+=1;continue}if(Ut.test(i)){let i=[];for(;r<e.length;){let t=Ut.exec(e[r]);if(t)i.push(t[1]);else if(!zt.test(e[r])&&i.length&&!zt.test(i[i.length-1]))i.push(e[r]);else break;r+=1}let a=tn(i,t);n.push(a.length===1&&a[0].type===`p`?{type:`quote`,parts:a[0].parts}:{type:`quote`,blocks:a});continue}if(Xt(i)){r=nn(e,r,n,t);continue}if(i.includes(`|`)&&r+1<e.length&&Jt.test(e[r+1])){let a=Zt(i),o=Zt(e[r+1]).map(Qt),s=[a.map(e=>Rt(e,t))],c=r+2;for(;c<e.length&&!zt.test(e[c])&&e[c].includes(`|`);){let n=Zt(e[c]);s.push(a.map((e,r)=>Rt(n[r]??``,t))),c+=1}let l={};o.forEach((e,t)=>{e&&s.forEach((n,r)=>l[`${r}:${t}`]={align:e})}),n.push({type:`table`,header:!0,rows:s,cellStyles:l}),r=c;continue}let s=[i];for(r+=1;r<e.length&&!zt.test(e[r]);){let i=e[r],a=Kt.exec(i);if(a){n.push({type:a[1][0]===`=`?`h1`:`h2`,parts:Rt(s.join(`
|
|
23
|
+
`),t)}),r+=1,s.length=0;break}if(Bt.test(i)||Vt.test(i)||Ht.test(i)||Ut.test(i)||Xt(i))break;s.push(i),r+=1}s.length&&n.push(...$t(Rt(s.join(`
|
|
24
|
+
`),t)))}return n}function nn(e,t,n,r){let i=Xt(e[t]),a=i.indent,o=[],s=null,c=t;for(;c<e.length;){let t=e[c],n=Xt(t);if(n&&n.indent<=a+1){if(n.ordered!==i.ordered)break;s={lines:[n.text]},o.push(s),c+=1;continue}if(zt.test(t)){let t=c;for(;t<e.length&&zt.test(e[t]);)t+=1;if(!(t<e.length&&(Yt(e[t])>=a+2||Xt(e[t])&&Xt(e[t]).ordered===i.ordered)))break;s?.lines.push(``),c=t;continue}if(!s)break;if(Yt(t)>=a+2)s.lines.push(t.slice(Math.min(t.length-t.trimStart().length,a+2)));else if(!n)s.lines.push(t.trim());else break;c+=1}return n.push({type:i.ordered?`ol`:`ul`,...i.ordered&&i.start!==1?{start:i.start}:null,items:o.map(e=>{let t=qt.exec(e.lines[0]??``);t&&(e.lines[0]=t[2]);let n=tn(e.lines,r),i=n[0]?.type===`p`?n.shift():null;return{parts:i?i.parts:[],...n.length?{blocks:n}:null,...t?{task:t[1].toLowerCase()===`x`}:null}})}),c}function rn(e,t={}){return String(e??``).trim()?tn(en(e),t):[]}function an(e,t){let n={data:e,depth:0,parent:null,children:null},r=[n];for(;r.length;){let e=r.pop(),n=t(e.data);if(n?.length){e.children=n.map(t=>({data:t,depth:e.depth+1,parent:e,children:null}));for(let t=e.children.length-1;t>=0;--t)r.push(e.children[t])}}return n}function on(e,t){let n=[e];for(;n.length;){let e=n.pop();if(t(e),e.children)for(let t=e.children.length-1;t>=0;--t)n.push(e.children[t])}}function sn(e,t){let n=[e],r=[];for(;n.length;){let e=n.pop();if(r.push(e),e.children)for(let t of e.children)n.push(t)}for(;r.length;)t(r.pop())}function cn(e,[t,n],r){let i=(e,t)=>({_:e,parent:null,children:null,A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:t}),a=i(e,0);a.a=a,on(a,e=>{e._.children&&(e.children=e._.children.map((t,n)=>{let r=i(t,n);return r.a=r,r.parent=e,r}))}),a.parent=i(null,0),a.parent.a=a.parent,a.parent.children=[a];let o=e=>e.children?e.children[0]:e.t,s=e=>e.children?e.children[e.children.length-1]:e.t,c=(e,t,n)=>{let r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n},l=e=>{let t=0,n=0;for(let r=e.children.length-1;r>=0;--r){let i=e.children[r];i.z+=t,i.m+=t,t+=i.s+(n+=i.c)}},u=(e,t,n)=>e.a.parent===t.parent?e.a:n,d=(e,t,n)=>{if(!t)return n;let i=e,a=e,l=t,d=i.parent.children[0],f=i.m,p=a.m,m=l.m,h=d.m;for(;l=s(l),i=o(i),l&&i;){d=o(d),a=s(a),a.a=e;let t=l.z+m-i.z-f+r(l._,i._);t>0&&(c(u(l,e,n),e,t),f+=t,p+=t),m+=l.m,f+=i.m,h+=d.m,p+=a.m}return l&&!s(a)&&(a.t=l,a.m+=m-p),i&&!o(d)&&(d.t=i,d.m+=f-h,n=e),n};return sn(a,e=>{let t=e.parent.children,n=e.i?t[e.i-1]:null;if(e.children){l(e);let t=(e.children[0].z+e.children[e.children.length-1].z)/2;n?(e.z=n.z+r(e._,n._),e.m=e.z-t):e.z=t}else n&&(e.z=n.z+r(e._,n._));e.parent.A=d(e,n,e.parent.A||t[0])}),a.parent.m=-a.z,on(a,e=>{e._.x=e.z+e.parent.m,e.m+=e.parent.m}),on(e,e=>{e.x*=t,e.y=e.depth*n}),e}var ln=20,un={S:{width:200,height:80},M:{width:240,height:80},L:{width:280,height:100},XL:{width:320,height:120}},dn={across:20,down:80,stack:20},fn=dn.across/2,pn={pad:20,header:40},mn=2*dn.stack,hn=`__root__`,gn=20,_n=e=>Math.round(e/ln)*ln;function vn(e){let{people:t,direction:n}=e,r=un[e.cardSize]??un.M,i=n===`right`,a=new Map;for(let e of t){let t=e.parent??hn;a.has(t)||a.set(t,[]),a.get(t).push(e)}let o=i?r.height+dn.across:r.width+dn.across,s=i?r.width+dn.down:r.height+dn.down,c=e=>e.id===hn||!e.collapsed?a.get(e.id)??[]:[],l=e=>e.kind===`group`,u=e=>c(e).filter(e=>e.placement!==`below`),d=e=>c(e).filter(e=>e.placement===`below`),f=(e,t)=>e.memberTeams===`inside`?c(t):[],p=e=>u(e).flatMap(t=>e.memberTeams===`inside`?f(e,t):[t]),m=e=>{let t=u(e).length,n=i||e.memberTeams===`inside`,r=Math.max(1,Math.min(t,e.memberColumns||(n?t:1)));return{cols:r,rows:Math.ceil(t/r)}},h=(e,t)=>{let n=f(e,t).length;return r.height+(n?mn+n*(r.height+dn.stack)-dn.stack:0)},g=e=>{let t=u(e),{cols:n,rows:i}=m(e),a=[],o=pn.header;for(let r=0;r<i;r+=1)a.push(o),o+=Math.max(...t.slice(r*n,(r+1)*n).map(t=>h(e,t)))+dn.stack;return{width:(t.length?n*(r.width+dn.across)-dn.across:r.width)+2*pn.pad,height:(t.length?o-dn.stack:pn.header)+pn.pad,tops:a}},_=(e,t=c(e))=>{if(i||e.id===hn)return t;let n=[],r=[],a=()=>{r.length>1?n.push({id:`${r[0].id}:stack`,people:r,line:e.columns}):n.push(...r),r=[]};for(let e of t)c(e).length||l(e)?(a(),n.push(e)):r.push(e);return a(),n},v=(e,t,n)=>{let r=n;for(let n=Math.ceil(t/s);n>0;--n)r=[{id:`${e}:${n}`,spacer:!0,below:r}];return r},y=i?r.width:r.height,b=an({id:hn},e=>{if(e.people)return v(e.id,(e.people.length-1)*(r.height+dn.stack),[]);if(e.spacer)return e.below;if(l(e)){let t=p(e).flatMap(e=>_(e)),n=_(e,d(e)),r=i?[...n,...t]:[...t,...n],a=i?g(e).width:g(e).height;return v(`${e.id}:frame`,a-y,r)}return _(e)}),x=e=>{if(!l(e.data))return 0;let t=g(e.data);return(i?t.height-r.height:t.width-r.width)/o};cn(b,[o,s],(e,t)=>(e.parent===t.parent?1:1+2*ln/o)+(x(e)+x(t))/2);let S=new Map,C=[],w=[],T=[],E=new Map([[hn,{x:0,y:0}]]),D=new Map,O=(e,t,a,o,s=null)=>{let c=E.get(t??hn),u={x:c.x+(e.dx||0),y:c.y+(e.dy||0)},d=l(e)?g(e):null,f={person:e,x:_n(a.x)+u.x,y:_n(a.y)+u.y,width:d?d.width:r.width,height:d?d.height:r.height};if(E.set(e.id,u),S.set(e.id,f),(d?w:C).push(f),o?.inner)T.push(o.line===`center`?{kind:`straight`,source:o.above?.id??e.parent,target:e.id,from:`bottom`,to:`top`}:{kind:`rail`,source:e.parent,target:e.id,from:`bottom`,to:o.line===`right`?`right`:`left`,side:o.line===`right`?`right`:`left`,drop:mn/2});else if(e.parent&&!s){let t=D.get(e.parent);t!==void 0&&!e.lineFrom&&!e.lineTo&&!(o?.line===`center`&&o.above)?T.push({kind:`exit`,source:e.parent,target:e.id,from:i?`right`:`bottom`,to:o?.line===`left`||i?`left`:`top`,exit:t,into:o?.line===`left`?`side`:`top`,level:o?.line===`left`?_n(o.top)+c.y-dn.down/2:null}):T.push(yn(e,o,n))}};on(b,e=>{let t=e.data;if(t.id===hn||t.spacer)return;let n=e.y-s;if(t.people){t.people.forEach((i,a)=>O(i,i.parent,{x:e.x-r.width/2,y:n+a*(r.height+dn.stack)},{line:t.line,above:t.people[a-1],top:n}));return}if(l(t)){let a=g(t),o=i?{x:n,y:e.x-a.height/2}:{x:e.x-a.width/2,y:n};O(t,t.parent,o,null);let s=E.get(t.id);p(t).forEach(e=>D.set(e.id,i?_n(o.y)+s.y+a.height+fn:_n(o.x)+s.x-fn));let{cols:c}=m(t);u(t).forEach((e,n)=>{let i={x:o.x+pn.pad+n%c*(r.width+dn.across),y:o.y+a.tops[Math.floor(n/c)]},s=f(t,e);O(e,t.id,i,null,t),s.forEach((n,a)=>O(n,e.id,{x:i.x,y:i.y+r.height+mn+a*(r.height+dn.stack)},{line:e.columns,above:s[a-1],inner:!0},t))});return}O(t,t.parent,i?{x:n,y:e.x-r.height/2}:{x:e.x-r.width/2,y:n},null)});let k=[...w,...C],A=Math.min(...k.map(e=>e.x))-gn,j=Math.min(...k.map(e=>e.y))-gn;for(let e of k)e.x-=A,e.y-=j;let M=T.map(e=>Sn(e,S,i)).filter(Boolean),N=[...k.flatMap(e=>[e.x+e.width]),...M.flatMap(e=>e.points.map(e=>e.x))],P=[...k.flatMap(e=>[e.y+e.height]),...M.flatMap(e=>e.points.map(e=>e.y))];return{cards:C,frames:w,links:M,width:Math.ceil(Math.max(...N)+gn),height:Math.ceil(Math.max(...P)+gn),size:r}}function yn(e,t,n){let r=n===`right`,i=r?`right`:`bottom`,a=r?`left`:`top`;return(e.lineTo===`left`||e.lineTo===`right`)&&!r&&(!e.lineFrom||e.lineFrom===`bottom`)?{kind:`elbow`,source:e.parent,target:e.id,from:`bottom`,to:e.lineTo,side:e.lineTo}:e.lineFrom||e.lineTo?{kind:`step`,source:e.parent,target:e.id,from:e.lineFrom||i,to:e.lineTo||a}:t?t.line===`center`?t.above?{kind:`straight`,source:t.above.id,target:e.id,from:i,to:a}:{kind:`step`,source:e.parent,target:e.id,from:i,to:a}:t.line===`right`?{kind:`rail`,source:e.parent,target:e.id,from:i,to:`right`,side:`right`}:{kind:`rail`,source:e.parent,target:e.id,from:i,to:`left`,side:`left`}:{kind:`step`,source:e.parent,target:e.id,from:i,to:a}}function bn(e,t){return t===`top`?{x:e.x+e.width/2,y:e.y}:t===`bottom`?{x:e.x+e.width/2,y:e.y+e.height}:t===`left`?{x:e.x,y:e.y+e.height/2}:{x:e.x+e.width,y:e.y+e.height/2}}var xn={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0}};function Sn(e,t,n){let r=t.get(e.source),i=t.get(e.target);if(!r||!i)return null;let a=bn(r,e.from),o=bn(i,e.to),s;if(e.kind===`straight`)s=[a,o];else if(e.kind===`rail`){let t=a.y+(e.drop??dn.down/2),n=e.side===`right`?o.x+fn:o.x-fn;s=[a,{x:a.x,y:t},{x:n,y:t},{x:n,y:o.y},o]}else if(e.kind===`exit`){let{exit:t,into:r,level:i}=e;if(n){let e=a.x+dn.across/2;s=[a,{x:e,y:a.y},{x:e,y:t},{x:o.x-dn.down/2,y:t},{x:o.x-dn.down/2,y:o.y},o]}else{let e=a.y+dn.stack/2;s=r===`side`?[a,{x:a.x,y:e},{x:t,y:e},{x:t,y:i},{x:o.x-fn,y:i},{x:o.x-fn,y:o.y},o]:[a,{x:a.x,y:e},{x:t,y:e},{x:t,y:o.y-dn.down/2},{x:o.x,y:o.y-dn.down/2},o]}}else if(e.kind===`elbow`){let t=e.side===`right`?a.x<o.x+fn:a.x>o.x-fn,n=e.side===`right`?o.x+fn:o.x-fn;return s=t?[a,{x:a.x,y:a.y+dn.down/2},{x:n,y:a.y+dn.down/2},{x:n,y:o.y},o]:[a,{x:a.x,y:o.y},o],{points:wn(s),square:!t}}else s=Cn(a,e.from,o,e.to);return{points:wn(s)}}function Cn(e,t,n,r){let i=e=>e===`top`||e===`bottom`;if(t===`bottom`&&r===`top`&&n.y>e.y){let t=(e.y+n.y)/2;return[e,{x:e.x,y:t},{x:n.x,y:t},n]}if(t===`right`&&r===`left`&&n.x>e.x){let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}let a={x:e.x+xn[t].x*20,y:e.y+xn[t].y*20},o={x:n.x+xn[r].x*20,y:n.y+xn[r].y*20};return[e,a,i(t)?{x:a.x,y:o.y}:{x:o.x,y:a.y},o,n]}var wn=e=>e.filter((e,t,n)=>t===0||e.x!==n[t-1].x||e.y!==n[t-1].y);function Tn(e,t=10){let{points:n}=e,r=e.square?0:t,i=`M ${n[0].x} ${n[0].y}`;for(let e=1;e<n.length-1;e+=1){let[t,a,o]=[n[e-1],n[e],n[e+1]],s=Math.min(r,Math.hypot(a.x-t.x,a.y-t.y)/2,Math.hypot(o.x-a.x,o.y-a.y)/2),c=(e,t)=>{let n=Math.hypot(t.x-e.x,t.y-e.y)||1;return{x:e.x+(t.x-e.x)/n*s,y:e.y+(t.y-e.y)/n*s}},l=c(a,t),u=c(a,o);i+=` L ${l.x} ${l.y} Q ${a.x} ${a.y} ${u.x} ${u.y}`}let a=n.at(-1);return`${i} L ${a.x} ${a.y}`}var En=`#4f46e5`,Dn={S:.85,M:1,L:1.15,XL:1.3},On={name:14,title:12.5,unit:13.5,department:11,band:12.5},kn=1.3,An={classic:12,band:6},jn={left:`flex-start`,center:`center`,right:`flex-end`},Mn={card:`var(--page-bg, #ffffff)`,text:`var(--page-text, #111827)`,border:`rgba(148, 163, 184, 0.45)`,line:`rgba(148, 163, 184, 0.8)`},Nn=e=>String(e).replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e]),Pn=e=>Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e}:${t}`).join(`;`),Fn=e=>({display:`-webkit-box`,"-webkit-line-clamp":e,"-webkit-box-orient":`vertical`,overflow:`hidden`,"overflow-wrap":`anywhere`}),In=e=>`#${[1,3,5].map(t=>Math.round(parseInt(e.slice(t,t+2),16)*.55).toString(16).padStart(2,`0`)).join(``)}`,Ln=e=>e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0].toUpperCase()).join(``)||`?`;function Rn(e,t,n,r){let i=e=>On[e]*n*kn,a=(e,t,n)=>Math.max(1,Math.min(n,Math.floor((e+.5)/i(t)))),o=e.height-An.classic-(r.department?On.department*n*1.4:0),s=r.title?t?a(o-i(`title`),`name`,2):1:a(o,`name`,t?20:2),c=e.height*.55-An.band;return{name:s,title:a(o-s*i(`name`),`title`,t?20:2),unit:a(o,`unit`,t?20:3),top:a(c,`band`,t?20:2),bottom:a(e.height-c-2*An.band,`band`,t?20:1),single:a(e.height-An.band,`band`,t?20:3)}}function zn(e,t,n,r){let i=Dn[e.textSize||t.textSize]??1,a=e.textAlign||t.textAlign||`left`,o=e.color||En,s=Rn(n,t.wrapText,i,e),c={"box-sizing":`border-box`,width:`100%`,height:`100%`,overflow:`hidden`,position:`relative`,"font-family":`inherit`,"line-height":kn};if(t.cardStyle===`banded`){let n={display:`flex`,"align-items":`center`,"justify-content":jn[a],"text-align":a,padding:`0 10px`,color:`#fff`,"font-weight":600,"font-size":`${On.band*i}px`,"min-height":0},r=e.title||e.name,l=e.color2||In(o),u=(e.bandFill||t.bandFill)===`gradient`,d=`linear-gradient(${o}, ${l})`;return r&&!(e.title&&e.name)?`<div style="${Pn({...c,...n,"border-radius":`10px`,background:u?d:`linear-gradient(${o} 50%, ${l} 50%)`})}"><div style="${Pn(Fn(s.single))}">${Nn(r)}</div></div>`:`<div style="${Pn({...c,display:`flex`,"flex-direction":`column`,"border-radius":`10px`,background:u?d:l})}"><div style="${Pn({...n,flex:`0 0 55%`,background:u?null:o})}"><div style="${Pn(Fn(s.top))}">${Nn(e.title)}</div></div><div style="${Pn({...n,"flex-grow":1})}"><div style="${Pn(Fn(s.bottom))}">${Nn(e.name)}</div></div></div>`}let l=!!(e.photo||e.name),u=n.height>=120?56:n.height>=100?48:40,d=[];e.showPhoto&&l&&d.push(`<div style="${Pn({flex:`none`,width:`${u}px`,height:`${u}px`,"border-radius":`50%`,overflow:`hidden`,background:o,color:`#fff`,display:`flex`,"align-items":`center`,"justify-content":`center`,"font-weight":600,"font-size":`${u*.38}px`})}">`+(e.photo?`<img src="${e.photo}" alt="" style="width:100%;height:100%;object-fit:cover;display:block"/>`:Nn(Ln(e.name)))+`</div>`);let f=[];return l&&e.name&&f.push(`<div style="${Pn({...Fn(s.name),"font-weight":600,"font-size":`${On.name*i}px`})}">${Nn(e.name)}</div>`),e.title&&f.push(`<div style="${Pn({...Fn(l?s.title:s.unit),"font-size":`${(l?On.title:On.unit)*i}px`,"font-weight":l?400:600,opacity:l?.7:1})}">${Nn(e.title)}</div>`),e.department&&f.push(`<div style="${Pn({"white-space":`nowrap`,overflow:`hidden`,"text-overflow":`ellipsis`,"font-size":`${On.department*i}px`,"line-height":1.4,color:o,"font-weight":600,"letter-spacing":`0.2px`})}">${Nn(e.department)}</div>`),d.push(`<div style="${Pn({"min-width":0,"flex-grow":1,"max-height":`100%`,overflow:`hidden`,padding:`6px 0`,"box-sizing":`border-box`,"text-align":a})}">${f.join(``)}</div>`),`<div style="${Pn({...c,display:`flex`,"align-items":`center`,gap:`10px`,padding:`0 10px 0 14px`,border:`1px solid ${r.border}`,"border-radius":`25px`,background:r.card,color:r.text})}"><div style="${Pn({position:`absolute`,left:0,top:0,bottom:0,width:`5px`,background:o})}"></div>${d.join(``)}</div>`}function Bn(e,t){let n=e.color||En;return`<div style="${Pn({"box-sizing":`border-box`,width:`100%`,height:`100%`,"border-radius":`30px`,border:`2px ${t?`solid`:`dashed`} ${n}`,background:`${n}14`,"font-family":`inherit`})}"><div style="${Pn({height:`${pn.header}px`,display:`flex`,"align-items":`center`,padding:`0 16px`})}"><div style="${Pn({"white-space":`nowrap`,overflow:`hidden`,"text-overflow":`ellipsis`,"font-weight":700,"font-size":`14px`,color:n})}">${Nn(e.name)}</div></div></div>`}var Vn=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),G=e(((e,t)=>{t.exports=Vn()}))(),K=(0,l.createContext)({tenant:``,apiUrl:`/api`,locale:``,settings:null,revision:0}),Hn=(0,l.createContext)(null),Un=e=>{let t=Number(e?.__page);if(Number.isFinite(t)&&t>=1)return Math.floor(t);if(typeof window>`u`)return 1;let n=Number(new URLSearchParams(window.location.search).get(`page`));return Number.isFinite(n)&&n>=1?Math.floor(n):1},Wn=()=>{if(typeof window>`u`)return{};let e={};return new URLSearchParams(window.location.search).forEach((t,n)=>{n.startsWith(`f_`)&&n.length>2&&t!==``&&(e[n.slice(2)]=t)}),e},Gn=e=>{let t={...e&&typeof e==`object`&&!Array.isArray(e)?e:{},...Wn()};return Object.fromEntries(Object.entries(t).filter(([,e])=>typeof e==`string`&&e.trim()!==``))},Kn=(0,l.createContext)(null),q=(...e)=>({"data-wb-part":e.filter(Boolean).join(` `)}),qn=(0,l.createContext)(null);function Jn(e,t){if(!t)return[];let n=tr(e?.data,t);return(Array.isArray(n)?n:[n]).map(e=>e&&typeof e==`object`?e.id:e).filter(e=>e!=null&&e!==``).map(String)}function Yn(e,t,n){if(!t||!n||!Array.isArray(e))return[];let r=String(n.id??``);return r?e.filter(e=>Jn(e,t).includes(r)):[]}function Xn(e,t,n){return!e||!t?[]:vo(tr(e.data,t)).map((r,i)=>({...e,id:`${e.id??`entry`}:${t}:${i}`,data:{...e.data??{},[t]:wo(r,n?.[r],i)}}))}var Zn=e=>rr(e).trim().toLowerCase();function Qn(e,t){let n=Array.isArray(e?.rules)?e.rules.filter(e=>e&&e.op):[];if(!n.length||!t?.entry)return!0;let r=e=>{if(e.op===`children`||e.op===`nochildren`){let n=Yn(t.all,t.parentField,t.entry).length>0;return e.op===`children`?n:!n}let n=tr(t.entry.data,e.field),r=Zn(n),i=String(e.value??``).trim().toLowerCase(),a=(Array.isArray(n)?n:[n]).map(e=>e&&typeof e==`object`?e.id??e.code:null).filter(e=>e!=null).map(e=>String(e).toLowerCase()),o=Array.isArray(n)?n.length>0:r!==``;switch(e.op){case`set`:return o;case`empty`:return!o;case`eq`:return r===i||a.includes(i);case`neq`:return r!==i&&!a.includes(i);case`contains`:return i===``||r.includes(i);default:return!0}};return e.match===`any`?n.some(r):n.every(r)}function $n({showWhen:e,children:t}){return Qn(e,(0,l.useContext)(qn))?t:null}var er=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function tr(e,t){if(t)return t.includes(`.`)?t.split(`.`).reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e):e?.[t]}var nr=e=>{let t=[];for(let[n,r]of Object.entries(e??{})){if(!/^[\w-]+$/.test(n))continue;t.push(n);let e=Array.isArray(r)?r[0]:r,i=Array.isArray(r)?`${n}.0`:n;if(e&&typeof e==`object`&&!Array.isArray(e))for(let n of Object.keys(e))/^[\w-]+$/.test(n)&&t.push(`${i}.${n}`)}return t};function rr(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):typeof e==`object`&&!Array.isArray(e)&&(`label`in e||`name`in e||`slug`in e)?String(e.label??e.name??e.slug??``):typeof e==`object`&&!Array.isArray(e)&&Number.isFinite(Number(e.lat))&&Number.isFinite(Number(e.lng))?`${e.lat}, ${e.lng}`:Array.isArray(e)?e.map(e=>typeof e==`string`?e:Array.isArray(e?.parts)?e.parts.map(e=>e?.text??``).join(``):Array.isArray(e?.items)?e.items.map(e=>e?.text??``).join(` `):e&&(e.label!=null||e.name!=null||e.slug!=null)?String(e.label??e.name??e.slug):``).filter(Boolean).join(` `):``}var ir=new Set([`href`,`src`,`poster`,`backgroundImage`]),ar=[`created_at`,`updated_at`,`publish_at`],or=[`date`,`short`,`iso`,`datetime`,`time`],sr={date:{dateStyle:`long`},short:{day:`2-digit`,month:`2-digit`,year:`numeric`},datetime:{dateStyle:`long`,timeStyle:`short`},time:{timeStyle:`short`}},cr=e=>String(e).padStart(2,`0`);function lr(e,t=`date`,n){if(typeof e!=`string`&&!(e instanceof Date))return``;let r=typeof e==`string`?e.match(/^(\d{4})-(\d{2})-(\d{2})$/):null,i=r?new Date(Number(r[1]),Number(r[2])-1,Number(r[3])):new Date(e);if(Number.isNaN(i.getTime()))return``;if(t===`iso`)return`${i.getFullYear()}-${cr(i.getMonth()+1)}-${cr(i.getDate())}`;try{return new Intl.DateTimeFormat(n||void 0,sr[t]??sr.date).format(i)}catch{return i.toISOString()}}function ur(e,t,n){let r=t?.data??{},i=nr(r),a=[...or].sort((e,t)=>t.length-e.length).join(`|`),o=[...i.map(er).map(e=>`${e}(?:\\.(?:${a}))?`),...ar.filter(e=>!i.includes(e)).map(e=>`${e}(?:\\.(?:${a}))?`)],s=RegExp(`:(${o.sort((e,t)=>t.length-e.length).join(`|`)})`,`g`),c=e=>{if(i.includes(e))return rr(tr(r,e));let[,o,s]=e.match(RegExp(`^(.*?)(?:\\.(${a}))?$`));if(!i.includes(o)&&ar.includes(o))return lr(t?.[o],s||`date`,n);let c=tr(r,o);return s?lr(c,s,n):rr(c)},l=e=>{let t=e.match(RegExp(`^:(${o.sort((e,t)=>t.length-e.length).join(`|`)})$`)),n=t?tr(r,t[1]):void 0;return Array.isArray(n)&&n.length?rr(n[0]):e.replace(s,(e,t)=>c(t))},u=(e,t)=>typeof e==`string`&&ir.has(t)?l(e):typeof e==`string`?e.replace(s,(e,t)=>c(t)):Array.isArray(e)?e.map(e=>u(e)):e&&typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,u(t,e)])):e;return u(e)}var dr=[`Top`,`Right`,`Bottom`,`Left`],fr=[`TopLeft`,`TopRight`,`BottomRight`,`BottomLeft`];function pr(e){let t={},n=(n,r)=>{n in e||(t[n]=r)};for(let[r,i]of Object.entries(e))if(r===`margin`||r===`padding`){let[e,t=e,a=e,o=t]=typeof i==`number`?[i]:String(i).trim().split(/\s+/);[e,t,a,o].forEach((e,t)=>n(`${r}${dr[t]}`,e))}else if(r===`borderRadius`&&(typeof i==`number`||!/\s|\//.test(String(i))))fr.forEach(e=>n(`border${e}Radius`,i));else if(r===`border`){let[e,t,...r]=String(i).trim().split(/\s+/);dr.forEach(i=>{n(`border${i}Width`,e),n(`border${i}Style`,t),n(`border${i}Color`,r.join(` `))})}else r===`background`&&!/(gradient|url)\(/i.test(String(i))?n(`backgroundColor`,i):t[r]=i;return t}var mr=pr({margin:0,fontWeight:700,lineHeight:1.2,fontFamily:`var(--page-heading-font, inherit)`}),hr=Ie,gr=e=>`var(--page-${e}, ${Ie[e]??Ie.h2}px)`,_r=pr({margin:0,fontSize:`var(--page-body-size, 16px)`}),vr={display:`inline-block`,textDecoration:`none`,cursor:`pointer`,backgroundColor:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`},yr={flexGrow:1,display:`flex`,flexDirection:`column`,position:`relative`},br={display:`flex`,flexDirection:`column`};function xr({style:e}){let t=e?.backgroundVideo;if(!t)return null;let n={position:`absolute`,inset:0,width:`100%`,height:`100%`,zIndex:-1,pointerEvents:`none`},r=e?.overlayColor?`color-mix(in srgb, ${e.overlayColor} ${e.overlayOpacity??50}%, transparent)`:null;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`video`,{src:t,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,style:{...n,objectFit:`cover`}}),r&&(0,G.jsx)(`div`,{style:{...n,background:r}})]})}var Sr=(e,t)=>e?.backgroundVideo?{position:`relative`,...t,...z(e)}:{...t,...z(e)};function Cr({style:e,nodeRef:t,children:n}){return(0,G.jsxs)(`div`,{ref:t,style:{...yr,...z(e)},children:[(0,G.jsx)(xr,{style:e}),n]})}function wr({style:e,nodeRef:t,children:n}){return(0,G.jsxs)(`section`,{ref:t,style:Sr(e,br),children:[(0,G.jsx)(xr,{style:e}),n]})}function Tr({style:e,freeLayout:t,nodeRef:n,children:r}){let i=t?{position:`relative`,minHeight:240}:null;return(0,G.jsxs)(`div`,{ref:n,style:i?{...i,...Sr(e)}:Sr(e),children:[(0,G.jsx)(xr,{style:e}),r]})}function Er({href:e,target:t,style:n,nodeRef:r,children:i}){return(0,G.jsxs)(`a`,{ref:r,href:e||`#`,target:t||void 0,rel:t===`_blank`?`noopener noreferrer`:void 0,style:{...qr,...Sr(n)},children:[(0,G.jsx)(xr,{style:n}),i]})}function Dr({text:e,parts:t,tag:n=`h2`,style:r,linked:i,nodeRef:a}){return(0,G.jsx)(n,{ref:a,style:{...mr,fontSize:gr(n),...z(r)},children:jr(t,e,i)})}var Or={fontFamily:ze.mono.value,background:`rgba(148, 163, 184, 0.18)`,padding:`1px 5px`,borderRadius:4,fontSize:`0.9em`},kr=pr({fontFamily:ze.mono.value,background:`rgba(148, 163, 184, 0.16)`,border:`1px solid rgba(148, 163, 184, 0.3)`,borderRadius:6,padding:`12px 14px`,fontSize:`0.875em`,lineHeight:1.55,overflowX:`auto`,whiteSpace:`pre`});function Ar(e,t=[],n,r,i=!1){let a=e;return t.includes(`sup`)?a=(0,G.jsx)(`sup`,{children:a}):t.includes(`sub`)&&(a=(0,G.jsx)(`sub`,{children:a})),t.includes(`code`)&&(a=(0,G.jsx)(`code`,{style:Or,children:a})),t.includes(`strike`)&&(a=(0,G.jsx)(`s`,{children:a})),t.includes(`underline`)&&(a=(0,G.jsx)(`u`,{children:a})),t.includes(`italic`)&&(a=(0,G.jsx)(`em`,{children:a})),t.includes(`bold`)&&(a=(0,G.jsx)(`strong`,{children:a})),n?a=(0,G.jsx)(`a`,{href:n,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,"data-wb-link":i?void 0:``,style:{...i&&{color:`inherit`},...t.includes(`nounderline`)&&{textDecoration:`none`}},children:a}):t.includes(`nounderline`)&&(a=(0,G.jsx)(`span`,{style:{textDecoration:`none`},children:a})),a}function jr(e,t,n){return e?.length?e.map((e,t)=>{if(e.slot)return(0,G.jsx)(l.Fragment,{children:n?.[e.slot]??null},t);if(e.parts)return(0,G.jsx)(l.Fragment,{children:jr(e.parts,``,n)},t);if(e.br)return(0,G.jsx)(`br`,{},t);let r=e.text;return e.image&&(r=(0,G.jsx)(`img`,{src:e.image.src,alt:e.image.alt||``,title:e.image.title||void 0,style:{maxWidth:`100%`,verticalAlign:`middle`}})),e.sup?r=(0,G.jsx)(`sup`,{children:r}):e.sub&&(r=(0,G.jsx)(`sub`,{children:r})),e.code&&(r=(0,G.jsx)(`code`,{style:Or,children:r})),e.strike&&(r=(0,G.jsx)(`s`,{children:r})),e.underline&&(r=(0,G.jsx)(`u`,{children:r})),e.italic&&(r=(0,G.jsx)(`em`,{children:r})),e.bold&&(r=(0,G.jsx)(`strong`,{children:r})),(e.color||e.background)&&(r=(0,G.jsx)(`span`,{style:{...e.color&&{color:e.color},...e.background&&{backgroundColor:e.background}},children:r})),e.href?r=(0,G.jsx)(`a`,{href:e.href,target:e.target||void 0,rel:e.target===`_blank`?`noopener noreferrer`:void 0,"data-wb-link":``,style:{...e.color&&{color:e.color},...e.nounderline&&{textDecoration:`none`}},children:r}):e.nounderline&&(r=(0,G.jsx)(`span`,{style:{textDecoration:`none`},children:r})),(0,G.jsx)(l.Fragment,{children:r},t)}):t}function Mr({parts:e,text:t,marks:n,href:r,target:i,style:a}){return(0,G.jsx)(`span`,{style:z(a),children:e?.length?jr(e,t):Ar(t,n,r,i,!!z(a)?.color)})}var Nr=[`left`,`center`,`right`,`justify`];function Pr(e,t,n){let r=e&&e.cellStyles;if(!r||typeof r!=`object`||Array.isArray(r))return{};let i=r[`${t}:${n}`];return i&&typeof i==`object`&&!Array.isArray(i)?i:{}}function Fr(e,t){let n=e||{},r=typeof n.bold==`boolean`?n.bold:!!t;return{textAlign:Nr.includes(n.align)?n.align:`left`,fontWeight:r?700:400,fontStyle:n.italic?`italic`:void 0,color:typeof n.color==`string`&&n.color?n.color:void 0,backgroundColor:typeof n.bg==`string`&&n.bg?n.bg:void 0}}function Ir({align:e=`center`,width:t,wrap:n}={}){let r=t?`${t}%`:void 0;if(e===`full`)return{width:`100%`};let i=e===`left`||e===`right`;return i&&(n??!0)?{float:e,width:r??`50%`,maxWidth:`100%`,marginTop:`4px`,marginBottom:`12px`,...e===`left`?{marginRight:`20px`,marginLeft:0}:{marginLeft:`20px`,marginRight:0}}:i?{width:r??`fit-content`,maxWidth:`100%`,...e===`left`?{marginLeft:0,marginRight:`auto`}:{marginLeft:`auto`,marginRight:0}}:{width:r??`fit-content`,maxWidth:`100%`,marginLeft:`auto`,marginRight:`auto`}}var Lr={red:`#e03131`,orange:`#e8590c`,yellow:`#c98a00`,blue:`#1c7ed6`,purple:`#7048e8`,pink:`#d6336c`,green:`#2f9e44`,grey:`#868e96`},Rr={red:`rgba(224, 49, 49, 0.12)`,orange:`rgba(232, 89, 12, 0.12)`,yellow:`rgba(201, 138, 0, 0.15)`,blue:`rgba(28, 126, 214, 0.12)`,purple:`rgba(112, 72, 232, 0.12)`,pink:`rgba(214, 51, 108, 0.12)`,green:`rgba(47, 158, 68, 0.12)`,grey:`rgba(134, 142, 150, 0.16)`};function zr(e){let t=Lr[e?.color]??(e?.color||``),n=Rr[e?.background]??(e?.background||``);return{...t&&{color:t},...n&&{backgroundColor:n,padding:`8px 12px`,borderRadius:`8px`}}}function Br(e=[],t,n){let r=n??((e,n)=>jr(e,n,t));return e.map((n,i)=>{let a={marginTop:0,marginBottom:i===e.length-1?0:14};if(n.type===`image`){if(!n.src)return null;let e=(0,G.jsx)(`img`,{...q(`image`),src:n.src,alt:n.alt||``,style:{width:`100%`,display:`block`,borderRadius:6}});return(0,G.jsxs)(`figure`,{...q(`figure`),style:{marginLeft:0,marginRight:0,...a,...Ir(n)},children:[n.href?(0,G.jsx)(`a`,{href:n.href,target:n.target||void 0,rel:n.target===`_blank`?`noopener noreferrer`:void 0,style:{display:`block`},children:e}):e,n.caption&&(0,G.jsx)(`figcaption`,{...q(`caption`),style:{fontSize:13,opacity:.65,marginTop:6,textAlign:`center`},children:n.caption})]},i)}if(n.type===`video`)return ti(n.url)?(0,G.jsx)(`div`,{...q(`video`),style:{...a,...Ir({align:n.align,wrap:n.wrap,width:n.width??100})},children:(0,G.jsx)(ni,{url:n.url,autoplay:n.autoplay,muted:n.muted,loop:n.loop,controls:n.controls??!0,start:n.start})},i):null;if(n.type===`button`){if(!(typeof n.label==`string`&&n.label.trim()))return null;let e=Number.isFinite(Number(n.radius))?Number(n.radius):8,t=[`center`,`right`].includes(n.align)?n.align:`left`;return(0,G.jsx)(`div`,{style:{...a,textAlign:t},children:(0,G.jsx)(`table`,{role:`presentation`,cellPadding:0,cellSpacing:0,style:{borderCollapse:`separate`,display:`inline-table`},children:(0,G.jsx)(`tbody`,{children:(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{style:{backgroundColor:n.bg||`var(--page-accent, #4f46e5)`,borderRadius:e},children:(0,G.jsx)(`a`,{...q(`button`),href:n.href||`#`,target:n.target||void 0,rel:n.target===`_blank`?`noopener noreferrer`:void 0,style:{display:`inline-block`,padding:`13px 24px`,color:n.color||`#ffffff`,fontSize:15,fontWeight:600,lineHeight:1.2,textDecoration:`none`,borderRadius:e},children:n.label})})})})})},i)}if(n.type===`divider`)return(0,G.jsx)(`hr`,{...q(`divider`),style:{...a,border:0,borderTop:`1px solid rgba(148, 163, 184, 0.4)`}},i);if(n.type===`table`){let e=Array.isArray(n.rows)?n.rows.filter(Array.isArray):[];if(!e.length)return null;let t=n.header!==!1,o=n.borders===!1?void 0:`1px solid rgba(148, 163, 184, 0.4)`,s=Number.isFinite(n.padX)?Math.max(0,n.padX):10,c=Number.isFinite(n.padY)?Math.max(0,n.padY):6,l=Math.max(0,Number(n.spacing)||0),u={border:o,padding:`${c}px ${s}px`,verticalAlign:`top`},d=Array.isArray(n.heights)?n.heights:null,f=e=>{let t=Number(d?.[e]);return Number.isFinite(t)&&t>0?{height:`${t}px`}:void 0},p=t?e.slice(1):e,m=Array.isArray(n.widths)?n.widths:null,h=(e,t,r)=>({...u,...Fr(Pr(n,e,t),r)}),g=n.spans&&typeof n.spans==`object`?n.spans:null,_=new Set;g&&e.forEach((e,t)=>e.forEach((e,n)=>{let r=g[`${t}:${n}`];if(!r)return;let i=Math.max(1,Number(r.c)||1),a=Math.max(1,Number(r.r)||1);for(let e=0;e<a;e+=1)for(let r=0;r<i;r+=1)(e||r)&&_.add(`${t+e}:${n+r}`)}));let v=(e,t)=>{let n=g?.[`${e}:${t}`],r=Math.max(1,Number(n?.c)||1),i=Math.max(1,Number(n?.r)||1);return{colSpan:r>1?r:void 0,rowSpan:i>1?i:void 0}};return(0,G.jsxs)(`table`,{...q(`table`),style:{...a,borderCollapse:l?`separate`:`collapse`,borderSpacing:l?`${l}px`:void 0,width:`100%`,fontSize:_r.fontSize,tableLayout:m?`fixed`:void 0},children:[typeof n.caption==`string`&&n.caption.trim()?(0,G.jsx)(`caption`,{...q(`caption`),style:{captionSide:`top`,textAlign:`left`,fontWeight:600,padding:`0 0 6px`},children:n.caption}):null,m&&(0,G.jsx)(`colgroup`,{children:m.map((e,t)=>(0,G.jsx)(`col`,{style:{width:`${e}%`}},t))}),t&&(0,G.jsx)(`thead`,{children:(0,G.jsx)(`tr`,{...q(`header-row`),style:f(0),children:e[0].map((e,t)=>_.has(`0:${t}`)?null:(0,G.jsx)(`th`,{...q(`header-cell`),scope:`col`,style:h(0,t,!0),...v(0,t),children:Array.isArray(e)?r(e):e},t))})}),(0,G.jsx)(`tbody`,{children:p.map((e,n)=>(0,G.jsx)(`tr`,{...q(`row`),style:f(t?n+1:n),children:e.map((e,i)=>{let a=t?n+1:n;return _.has(`${a}:${i}`)?null:(0,G.jsx)(`td`,{...q(`cell`),style:h(a,i,!1),...v(a,i),children:Array.isArray(e)?r(e):e},i)})},n))})]},i)}if(n.type===`ul`||n.type===`ol`){let e=n.type;return(0,G.jsx)(e,{...q(`list`,n.type===`ol`&&`list-ordered`),style:{fontSize:_r.fontSize,...a,...zr(n),paddingLeft:n.background?34:24},start:n.type===`ol`?n.start:void 0,children:(n.items??[]).map((e,n)=>{let i=typeof e.task==`boolean`;return(0,G.jsxs)(`li`,{...q(`list-item`),style:{marginBottom:4,...i&&{listStyleType:`none`,marginLeft:-18}},children:[i&&(0,G.jsx)(`span`,{style:{marginRight:6},children:e.task?`☑`:`☐`}),r(e.parts,e.text),e.blocks?.length?Br(e.blocks,t,r):null]},n)})},i)}if(n.type===`quote`)return(0,G.jsx)(`blockquote`,{...q(`quote`),style:{...Ur,fontSize:_r.fontSize,...a,...zr(n),...n.background&&{paddingLeft:20}},children:n.blocks?.length?Br(n.blocks,t,r):r(n.parts,n.text)},i);if(n.type===`code`)return(0,G.jsx)(`pre`,{...q(`code`),"data-lang":n.lang||void 0,style:{...a,...kr},children:(0,G.jsx)(`code`,{style:{fontFamily:`inherit`},children:n.text})},i);if(hr[n.type]){let e=n.type;return(0,G.jsx)(e,{...q(`heading`,`heading-${n.type}`),style:{...mr,fontSize:gr(n.type),...a,...zr(n)},children:r(n.parts,n.text)},i)}return(0,G.jsx)(`p`,{...q(`paragraph`),style:{..._r,...a,...zr(n)},children:r(n.parts,n.text)},i)})}function Vr({content:e,style:t,linked:n,nodeRef:r}){return(0,G.jsx)(`div`,{ref:r,style:{display:`flow-root`,...z(t)},children:Br(e,n)})}function Hr({markdown:e,newTab:t,style:n,nodeRef:r}){let i=(0,l.useMemo)(()=>rn(e,{newTab:t}),[e,t]);return(0,G.jsx)(`div`,{ref:r,style:{display:`flow-root`,...z(n)},children:Br(i)})}var Ur=pr({margin:0,padding:`8px 0 8px 20px`,borderLeftWidth:`4px`,borderLeftStyle:`solid`,borderLeftColor:`var(--page-accent, rgba(148, 163, 184, 0.6))`});function Wr({text:e,parts:t,style:n,linked:r,nodeRef:i}){return(0,G.jsx)(`blockquote`,{ref:i,style:{...Ur,...z(n)},children:jr(t,e,r)})}function Gr({ordered:e,items:t=[],style:n,nodeRef:r}){return(0,G.jsx)(e?`ol`:`ul`,{ref:r,style:{margin:0,paddingLeft:24,...z(n)},children:t.map((e,t)=>(0,G.jsx)(`li`,{...q(`item`),style:{marginBottom:4},children:jr(e.parts,e.text)},t))})}function Kr({text:e,parts:t,style:n,linked:r,nodeRef:i}){return(0,G.jsx)(`p`,{ref:i,style:{..._r,...z(n)},children:jr(t,e,r)})}var qr={display:`block`,color:`inherit`,textDecoration:`none`,cursor:`pointer`},Jr={textUnderlineOffset:3,cursor:`pointer`};function Yr({text:e,parts:t,href:n,target:r,style:i,linked:a,nodeRef:o}){return(0,G.jsx)(`a`,{ref:o,"data-wb-link":``,href:n||`#`,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,style:{...Jr,...z(i)},children:jr(t,e,a)})}function Xr({text:e,parts:t,href:n,target:r,style:i,linked:a,nodeRef:o}){return(0,G.jsx)(`a`,{ref:o,href:n||`#`,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,style:{...vr,...z(i)},children:jr(t,e,a)})}function Zr({src:e,alt:t,decorative:n,style:r,nodeRef:i}){return e?(0,G.jsx)(`img`,{ref:i,src:e,alt:n?``:t||``,role:n?`presentation`:void 0,style:{display:`block`,maxWidth:`100%`,...z(r)}}):null}function Qr({text:e,locale:t}){let n=String(e??``).trim();return n?(0,G.jsxs)(`details`,{...q(`transcript`),style:{marginTop:8,fontSize:14},children:[(0,G.jsx)(`summary`,{...q(`transcript-toggle`),style:{cursor:`pointer`,fontWeight:600},children:at(t)(`transcript`)}),(0,G.jsx)(`div`,{...q(`transcript-text`),style:{marginTop:8,lineHeight:1.6},children:n.split(/\n\s*\n/).map((e,t)=>(0,G.jsx)(`p`,{style:{margin:`0 0 8px`,whiteSpace:`pre-line`},children:e},t))})]}):null}var $r=e=>(Array.isArray(e)?e:[]).filter(e=>typeof e?.src==`string`&&e.src.trim());function ei({src:e,poster:t,controls:n=!0,autoplay:r=!1,loop:i=!1,muted:a=!1,title:o=``,tracks:s,transcript:c=``,style:u,nodeRef:d}){let{locale:f}=(0,l.useContext)(K);if(!e)return null;let p=$r(s),m=typeof o==`string`&&o.trim()?o.trim():void 0,h=typeof c==`string`&&c.trim(),g=(0,G.jsx)(`video`,{ref:h?void 0:d,...h?{"data-wb-self":``}:{},src:e,poster:t||void 0,controls:n,"aria-label":m,autoPlay:r,muted:a||r,loop:i,playsInline:!0,crossOrigin:p.length?`anonymous`:void 0,style:{display:`block`,width:`100%`,maxWidth:`100%`,...z(u)},children:p.map((e,t)=>(0,G.jsx)(`track`,{kind:e.kind===`captions`?`captions`:`subtitles`,src:e.src,srcLang:e.srclang||void 0,label:e.label||e.srclang||void 0,default:e.default?!0:void 0},e.key??t))});return h?(0,G.jsxs)(`div`,{ref:d,"data-wb-redirect":``,style:{width:`100%`},children:[g,(0,G.jsx)(Qr,{text:c,locale:f})]}):g}var ti=(e=``)=>(e.match(/(?:youtu\.be\/|v=|embed\/|shorts\/|live\/)([\w-]{11})/)||e.match(/^([\w-]{11})$/))?.[1];function ni({url:e,autoplay:t=!1,muted:n=!1,loop:r=!1,controls:i=!0,start:a,title:o=``,captions:s=!1,transcript:c=``,style:u,nodeRef:d}){let{locale:f}=(0,l.useContext)(K),p=ti(e);if(!p)return null;let m=new URLSearchParams({rel:`0`});if(t&&m.set(`autoplay`,`1`),(n||t)&&m.set(`mute`,`1`),i||m.set(`controls`,`0`),r&&(m.set(`loop`,`1`),m.set(`playlist`,p)),Number(a)>0&&m.set(`start`,String(Math.floor(Number(a)))),s){m.set(`cc_load_policy`,`1`);let e=String(f||``).split(/[-_]/)[0];e&&m.set(`cc_lang_pref`,e)}let h=(0,G.jsx)(`iframe`,{...q(`frame`),src:`https://www.youtube-nocookie.com/embed/${p}?${m}`,title:typeof o==`string`&&o.trim()?o.trim():at(f)(`video`),allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,border:0}});return typeof c==`string`&&c.trim()?(0,G.jsxs)(`div`,{ref:d,"data-wb-redirect":``,style:{width:`100%`},children:[(0,G.jsx)(`div`,{"data-wb-self":``,style:{position:`relative`,width:`100%`,paddingTop:`56.25%`,...z(u)},children:h}),(0,G.jsx)(Qr,{text:c,locale:f})]}):(0,G.jsx)(`div`,{ref:d,style:{position:`relative`,width:`100%`,paddingTop:`56.25%`,...z(u)},children:h})}function ri({src:e,title:t,allowFullscreen:n=!0,style:r,nodeRef:i}){let{locale:a}=(0,l.useContext)(K);return e?(0,G.jsx)(`iframe`,{ref:i,src:e,title:t||at(a)(`frame`),loading:`lazy`,allowFullScreen:n,style:{display:`block`,width:`100%`,height:300,border:0,...z(r)}}):null}function ii(e,{toolbar:t=!0,page:n,zoom:r}={}){let i=Et(e);if(!i)return``;let a=[];return t===!1&&a.push(`toolbar=0&navpanes=0`),Number(n)>1&&a.push(`page=${Number(n)}`),r&&r!==`auto`&&a.push(`zoom=${r}`),a.length?`${i.split(`#`)[0]}#${a.join(`&`)}`:i}function ai({src:e,title:t,toolbar:n=!0,page:r,zoom:i=`auto`,link:a=!0,linkLabel:o,fallbackText:s,style:c,nodeRef:l}){let u=Et(e);if(!u)return null;let d=o||`Open the PDF`,f=t||`PDF document`;return(0,G.jsxs)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,width:`100%`,height:600,...z(c)},children:[(0,G.jsx)(`object`,{data:ii(u,{toolbar:n,page:r,zoom:i}),type:`application/pdf`,"aria-label":f,...q(`document`),style:{display:`block`,flex:`1 1 auto`,minHeight:0,width:`100%`,border:0},children:(0,G.jsxs)(`div`,{...q(`fallback`),style:{display:`grid`,placeItems:`center`,gap:8,height:`100%`,padding:16,textAlign:`center`},children:[(0,G.jsx)(`p`,{style:{..._r,opacity:.75},children:s||`This browser can’t show the PDF here.`}),!a&&(0,G.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, inherit)`},children:d})]})},ii(u,{toolbar:n,page:r,zoom:i})),a&&(0,G.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,...q(`link`),style:{flexShrink:0,marginTop:8,color:`var(--page-accent, inherit)`,fontSize:14},children:d})]})}var oi=/(^|[\s,>+~{}])(:root|html|body)(?=$|[\s,{.:#[>+~])/g;function si(e){return`@scope ([data-wb-embed]) {\n${e.replace(oi,`$1:scope`)}\n}`}function ci({code:e,runScripts:t=!0,scopeStyles:n=!1,style:r,nodeRef:i}){let[a,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{a&&(a.innerHTML=e||``,n?(a.setAttribute(`data-wb-embed`,``),a.querySelectorAll(`style`).forEach(e=>{e.textContent=si(e.textContent||``)})):a.removeAttribute(`data-wb-embed`),t&&a.querySelectorAll(`script`).forEach(e=>{let t=document.createElement(`script`);for(let{name:n,value:r}of e.attributes)t.setAttribute(n,r);t.text=e.textContent,e.replaceWith(t)}))},[a,e,t,n]),(0,G.jsx)(`div`,{ref:e=>{o(e),i&&i(e)},style:z(r)})}function li({height:e,style:t,nodeRef:n}){return(0,G.jsx)(`div`,{ref:n,style:{height:e||32,flexShrink:0,alignSelf:`stretch`,...z(t)}})}function ui({style:e,nodeRef:t}){return(0,G.jsx)(`div`,{ref:t,style:{height:1,alignSelf:`stretch`,flexShrink:0,...z(e)}})}function di({style:e,nodeRef:t}){return(0,G.jsx)(`div`,{ref:t,style:{flexShrink:0,...z(e)}})}var fi={position:`absolute`,top:`50%`,transform:`translateY(-50%)`,width:36,height:36,borderRadius:`50%`,border:0,cursor:`pointer`,background:`rgba(17, 24, 39, 0.45)`,color:`#fff`,fontSize:20,lineHeight:1,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:0},pi={bottom:{inset:`auto 0 0 0`,padding:`40px 24px 20px`,background:`linear-gradient(transparent, rgba(0, 0, 0, 0.55))`},top:{inset:`0 0 auto 0`,padding:`20px 24px 40px`,background:`linear-gradient(rgba(0, 0, 0, 0.55), transparent)`},middle:{inset:0,display:`flex`,flexDirection:`column`,justifyContent:`center`,padding:24,textShadow:`0 2px 12px rgba(0, 0, 0, 0.6)`}},mi=48;function hi({count:e,renderSlide:t,autoplay:n=!0,interval:r=5,height:i=320,swipe:a=!0,style:o,nodeRef:s}){let[c,u]=(0,l.useState)(0),[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(null),{locale:y}=(0,l.useContext)(K),b=e?Math.min(c,e-1):0;if((0,l.useEffect)(()=>{window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches&&g(!0)},[]),(0,l.useEffect)(()=>{if(!n||h||d||p||_||e<2)return;let t=setInterval(()=>u(t=>(t+1)%e),Math.max(2,Number(r)||5)*1e3);return()=>clearInterval(t)},[n,h,d,p,_,r,e]),!e)return null;let x=at(y),S=t=>u((t+e)%e),C=()=>{if(!_)return;let{dx:e}=_;v(null),e<-48?S(b+1):e>mi&&S(b-1)};return(0,G.jsxs)(`div`,{ref:s,role:`region`,"aria-roledescription":`carousel`,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onFocus:()=>m(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||m(!1)},onPointerDown:a&&e>1?e=>{e.pointerType===`mouse`&&e.button!==0||e.target.closest(`button`)||(e.currentTarget.setPointerCapture(e.pointerId),v({startX:e.clientX,dx:0}))}:void 0,onPointerMove:_?e=>v(t=>t&&{...t,dx:e.clientX-t.startX}):void 0,onPointerUp:C,onPointerCancel:C,style:{position:`relative`,overflow:`hidden`,width:`100%`,height:i,touchAction:`pan-y`,userSelect:_?`none`:void 0,cursor:_?`grabbing`:void 0,...z(o)},children:[(0,G.jsx)(`div`,{...q(`track`),style:{display:`flex`,height:`100%`,transform:`translateX(calc(${-b*100}% + ${_?.dx??0}px))`,transition:_?`none`:`transform 450ms ease`},children:Array.from({length:e},(n,r)=>(0,G.jsx)(`div`,{...q(`slide`,r===b&&`slide-active`),role:`group`,"aria-roledescription":`slide`,"aria-label":x(`slide`,{n:r+1,total:e}),"aria-hidden":r!==b||void 0,inert:r!==b||void 0,style:{position:`relative`,width:`100%`,flexShrink:0,overflow:`hidden`},children:t(r)},r))}),e>1&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,...q(`arrow`,`arrow-prev`),"aria-label":x(`prevSlide`),style:{...fi,left:12},onClick:()=>S(b-1),children:`‹`}),(0,G.jsx)(`button`,{type:`button`,...q(`arrow`,`arrow-next`),"aria-label":x(`nextSlide`),style:{...fi,right:12},onClick:()=>S(b+1),children:`›`}),(0,G.jsx)(`div`,{...q(`dots`),style:{position:`absolute`,bottom:10,left:0,right:0,display:`flex`,justifyContent:`center`,gap:6},children:Array.from({length:e},(e,t)=>(0,G.jsx)(`button`,{type:`button`,"aria-label":x(`goToSlide`,{n:t+1}),"aria-current":t===b?`true`:void 0,...q(`dot`,t===b&&`dot-active`),onClick:()=>S(t),style:{width:8,height:8,borderRadius:`50%`,border:0,padding:0,cursor:`pointer`,background:t===b?`#ffffff`:`rgba(255, 255, 255, 0.45)`}},t))}),n&&(0,G.jsx)(`button`,{type:`button`,...q(`pause`,h&&`pause-stopped`),"aria-label":x(h?`play`:`pause`),onClick:()=>g(!h),style:{...fi,top:`auto`,bottom:8,right:12,transform:`none`,width:28,height:28},children:(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,width:14,height:14,fill:`currentColor`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:h?`M8 5v14l11-7z`:`M7 5h4v14H7zM13 5h4v14h-4z`})})})]})]})}var gi=(e,t)=>({position:`absolute`,inset:0,backgroundImage:e?`url(${e})`:`none`,backgroundColor:t||(e?void 0:`rgba(148, 163, 184, 0.25)`),backgroundSize:`cover`,backgroundPosition:`center`});function _i({slides:e=[],captionPosition:t=`bottom`,captionAlign:n=`left`,...r}){return e.length?(0,G.jsx)(hi,{...r,count:e.length,renderSlide:r=>{let i=e[r];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{...q(`slide-image`),style:gi(i.image)}),(i.title||i.text)&&(0,G.jsxs)(`div`,{...q(`caption`),style:{position:`absolute`,color:`#fff`,textAlign:n,...pi[t]??pi.bottom},children:[i.title&&(0,G.jsx)(`div`,{...q(`caption-title`),style:{fontSize:22,fontWeight:700},children:i.title}),i.text&&(0,G.jsx)(`div`,{...q(`caption-text`),style:{fontSize:14,opacity:.9,marginTop:4},children:i.text})]})]})}}):null}function vi({slides:e=[],linked:t,...n}){return e.length?(0,G.jsx)(hi,{...n,count:e.length,renderSlide:n=>{let r=e[n];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{...q(`slide-background`),style:gi(r.image,r.color)}),(0,G.jsx)(`div`,{...q(`slide-content`),style:{position:`absolute`,inset:0,display:`flex`,flexDirection:`column`},children:t?.[r.key]??null})]})}}):null}var yi=256,bi=e=>Math.log(Math.tan(Math.PI/4+Math.max(-85,Math.min(85,e))*Math.PI/360)),xi=(e,t,n)=>{let r=yi*2**n;return{x:(Number(t)+180)/360*r,y:(.5-bi(Number(e))/(2*Math.PI))*r}},Si=(e,t)=>{if(e===``||e==null)return null;let n=Number(e);return Number.isFinite(n)&&Math.abs(n)<=t?n:null},Ci=e=>!!e&&Si(e.lat,90)!==null&&Si(e.lng,180)!==null;function wi(e,t,n=`directions`,r=``){let i=`${e},${t}`;return n===`place`?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i)}${r?`&query_place_id=`:``}`:`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(i)}`}var Ti=`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,J=e=>{let t=String(e??``).trim();return/^https?:\/\//i.test(t)&&t.includes(`{z}`)&&t.includes(`{x}`)&&t.includes(`{y}`)?t:Ti},Ei=e=>{try{return new URL(e.replace(/[{}]/g,``)).host}catch{return e}},Di=(e,t,n=13)=>`https://www.openstreetmap.org/?mlat=${e}&mlon=${t}#map=${Math.round(Number(n)||13)}/${e}/${t}`;function Oi({markers:e,lat:t,lng:n,zoom:r=``,height:i=320,pinSize:a=22,pinLink:o=`directions`,link:s=!1,label:c=``,tileUrl:u=``,tileError:d=``,style:f,nodeRef:p,inert:m}){let h=(0,l.useRef)(null),[g,_]=(0,l.useState)(1200),v=J(u),[y,b]=(0,l.useState)({key:``,failed:0,loaded:0});(0,l.useEffect)(()=>{let e=h.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>_(t=>e.clientWidth&&e.clientWidth!==t?e.clientWidth:t);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let x=(Array.isArray(e)?e:[]).filter(Ci),S=Ci({lat:t,lng:n})?{lat:Si(t,90),lng:Si(n,180)}:x.length?{lat:x.reduce((e,t)=>e+Si(t.lat,90),0)/x.length,lng:x.reduce((e,t)=>e+Si(t.lng,180),0)/x.length}:null,C=Math.max(80,Number(i)||320),w=Si(r,19)?Math.min(Math.max(Math.round(Number(r)),1),19):(()=>{if(x.length<2)return 13;for(let e=19;e>=1;e--){let t=x.map(t=>xi(Si(t.lat,90),Si(t.lng,180),e)),n=Math.max(...t.map(e=>e.x))-Math.min(...t.map(e=>e.x)),r=Math.max(...t.map(e=>e.y))-Math.min(...t.map(e=>e.y));if(n<=g*.8&&r<=C*.7)return e}return 1})(),T={width:`100%`,...z(f)};if(!S)return(0,G.jsx)(`div`,{ref:e=>{h.current=e,typeof p==`function`&&p(e)},style:{...T,minHeight:80,display:`grid`,placeItems:`center`,fontSize:13,opacity:.6,border:`1px dashed var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:8},children:`Set the coordinates in Settings`});let E=xi(S.lat,S.lng,w),D={x:E.x-g/2,y:E.y-C/2},O=[],k=[];for(let e=Math.floor(D.x/yi);e<=Math.floor((D.x+g)/yi);e++)O.push(e);for(let e=Math.floor(D.y/yi);e<=Math.floor((D.y+C)/yi);e++)k.push(e);let A=2**w,j=`${v}|${w}`,M=y.key===j?y:{key:j,failed:0,loaded:0},N=e=>b(t=>{let n=t.key===j?t:{key:j,failed:0,loaded:0};return{...n,[e]:n[e]+1}}),P=M.failed>0&&M.loaded===0;return(0,G.jsxs)(`div`,{ref:e=>{h.current=e,typeof p==`function`&&p(e)},style:T,children:[(0,G.jsxs)(`div`,{role:`img`,"aria-label":c||`Map`,...q(`map`),style:{position:`relative`,height:C,overflow:`hidden`,borderRadius:`inherit`,background:`var(--page-surface, #e5e7eb)`},children:[k.map(e=>O.map(t=>{let n=(t%A+A)%A;return e<0||e>=A?null:(0,G.jsx)(`img`,{src:v.replace(`{z}`,w).replace(`{x}`,n).replace(`{y}`,e),alt:``,onLoad:()=>N(`loaded`),onError:e=>{e.currentTarget.style.visibility=`hidden`,N(`failed`)},width:yi,height:yi,loading:`lazy`,style:{position:`absolute`,left:Math.round(t*yi-D.x),top:Math.round(e*yi-D.y),width:yi,height:yi,userSelect:`none`,pointerEvents:`none`}},`${j}:${t}-${e}`)})),P&&m&&d?(0,G.jsx)(`div`,{style:{...Fe,position:`absolute`,left:12,right:12,top:12,padding:`8px 12px`,borderRadius:8,background:`rgba(15, 23, 42, 0.78)`,color:`#fff`,fontSize:12,lineHeight:1.45},children:d.replace(`{host}`,Ei(v))}):null,x.map((e,t)=>{let n=xi(Si(e.lat,90),Si(e.lng,180),w),r=n.x-D.x,i=n.y-D.y,s=e.color||`var(--page-accent, #dc2626)`,c=o===`none`||m?null:wi(Si(e.lat,90),Si(e.lng,180),o,e.title);return(0,G.jsxs)(c?`a`:`span`,{...q(`pin`),href:c||void 0,target:c?`_blank`:void 0,rel:c?`noopener noreferrer`:void 0,title:c&&e.title||void 0,style:{position:`absolute`,left:r,top:i,transform:`translate(-50%, -100%)`,cursor:c?`pointer`:`default`,textDecoration:`none`,color:`inherit`},children:[e.title?(0,G.jsx)(`span`,{...q(`pin-label`),style:{position:`absolute`,left:`50%`,bottom:`100%`,transform:`translateX(-50%)`,marginBottom:4,padding:`3px 7px`,borderRadius:6,background:`var(--page-surface, #ffffff)`,color:`var(--page-text, #111827)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.5))`,boxShadow:`0 2px 8px rgba(15, 23, 42, 0.25)`,fontSize:12,lineHeight:1.35,whiteSpace:`nowrap`},children:e.title}):null,(0,G.jsxs)(`svg`,{width:Math.max(10,Number(a)||22),height:Math.max(10,Number(a)||22),viewBox:`0 0 24 24`,fill:s,style:{display:`block`},children:[(0,G.jsx)(`path`,{d:`M12 22s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11z`}),ki[e.icon]?(0,G.jsx)(`path`,{d:ki[e.icon],transform:`translate(12 10.5) scale(0.46) translate(-12 -12)`,fill:`none`,stroke:`#fff`,strokeWidth:4,strokeLinecap:`round`,strokeLinejoin:`round`}):(0,G.jsx)(`circle`,{cx:`12`,cy:`10.5`,r:`2.6`,fill:`#fff`})]})]},t)}),(0,G.jsx)(`a`,{href:`https://www.openstreetmap.org/copyright`,target:`_blank`,rel:`noopener noreferrer`,onClick:m?e=>e.preventDefault():void 0,...q(`credit`),style:{position:`absolute`,right:4,bottom:3,padding:`1px 5px`,borderRadius:4,background:`rgba(255, 255, 255, 0.75)`,color:`#334155`,fontSize:10,textDecoration:`none`},children:`© OpenStreetMap`})]}),s?(0,G.jsx)(`a`,{href:Di(S.lat,S.lng,w),target:`_blank`,rel:`noopener noreferrer`,onClick:m?e=>e.preventDefault():void 0,...q(`link`),style:{display:`inline-block`,marginTop:6,fontSize:12,color:`var(--page-accent, inherit)`},children:`View larger map`}):null]})}var ki={check:`M4 12l5 5L20 6`,close:`M6 6l12 12M18 6L6 18`,plus:`M12 5v14M5 12h14`,minus:`M5 12h14`,"arrow-right":`M4 12h16M13 5l7 7-7 7`,"arrow-left":`M20 12H4M11 5l-7 7 7 7`,"arrow-up":`M12 20V4M5 11l7-7 7 7`,"arrow-down":`M12 4v16M5 13l7 7 7-7`,"chevron-right":`M9 5l7 7-7 7`,"chevron-left":`M15 5l-7 7 7 7`,"chevron-down":`M5 9l7 7 7-7`,"chevron-up":`M5 15l7-7 7 7`,menu:`M4 7h16M4 12h16M4 17h16`,star:`M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.5 9.7l5.9-.9z`,heart:`M12 20s-7-4.4-7-9a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 4.6-7 9-7 9z`,home:`M4 11l8-7 8 7M6 10v9h12v-9`,user:`M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 20c0-3.3 3.6-5 8-5s8 1.7 8 5`,mail:`M3 6h18v12H3zM3 6l9 7 9-7`,phone:`M6 3h4l2 5-3 2a12 12 0 0 0 5 5l2-3 5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 4 5a2 2 0 0 1 2-2z`,search:`M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM20 20l-4.2-4.2`,clock:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3 2`,calendar:`M4 6h16v14H4zM4 10h16M8 3v4M16 3v4`,download:`M12 4v10M8 11l4 4 4-4M4 19h16`,upload:`M12 20V10M8 13l4-4 4 4M4 5h16`,play:`M8 5l11 7-11 7z`,pause:`M9 5v14M15 5v14`,info:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5M12 8h.01`,alert:`M12 4l9 16H3zM12 10v4M12 17h.01`,lock:`M6 11h12v9H6zM9 11V8a3 3 0 0 1 6 0v3`,chat:`M4 5h16v11H9l-5 4z`,"map-pin":`M12 21s7-6 7-11a7 7 0 1 0-14 0c0 5 7 11 7 11zM12 12a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z`,camera:`M4 8h4l2-2h4l2 2h4v12H4zM12 17a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z`,image:`M4 5h16v14H4zM8 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM6 17l5-5 4 4 2-2 3 3`,file:`M7 3h7l4 4v14H7zM14 3v5h4`,link:`M10 14a4 4 0 0 0 6 .5l2-2a4 4 0 0 0-6-6l-1 1M14 10a4 4 0 0 0-6-.5l-2 2a4 4 0 0 0 6 6l1-1`,external:`M14 4h6v6M20 4l-9 9M18 14v5H5V6h5`,trash:`M4 7h16M9 7V5h6v2M6 7l1 13h10l1-13`,edit:`M4 20h4L19 9l-4-4L4 16z`,filter:`M3 5h18l-7 8v6l-4-2v-4z`,refresh:`M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5`,globe:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18`,bell:`M6 16V11a6 6 0 1 1 12 0v5l2 3H4zM10 22h4`,tag:`M4 4h7l9 9-7 7-9-9zM8.5 8.5h.01`,cart:`M4 5h2l2 10h10l2-7H7M9 20h.01M18 20h.01`,card:`M3 6h18v12H3zM3 10h18`,shield:`M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z`,sun:`M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M4 12H2M22 12h-2M5 5l1.5 1.5M17.5 17.5L19 19M19 5l-1.5 1.5M6.5 17.5L5 19`,moon:`M20 14a8 8 0 1 1-10-10 7 7 0 0 0 10 10z`,settings:`M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM12 2l1 2.6 2.7-.6 1 2.5 2.6 1-.6 2.7L21 12l-2.3 1.8.6 2.7-2.6 1-1 2.5-2.7-.6L12 22l-1-2.6-2.7.6-1-2.5-2.6-1 .6-2.7L3 12l2.3-1.8-.6-2.7 2.6-1 1-2.5 2.7.6z`,eye:`M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z`,"eye-off":`M4 4l16 16M9.5 9.6A3 3 0 0 0 12 15c.8 0 1.5-.3 2.1-.8M6.6 6.7C3.9 8.3 2 12 2 12s4 7 10 7c1.9 0 3.5-.5 4.9-1.2M14.1 5.4C13.4 5.1 12.7 5 12 5`,share:`M8 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM21 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM21 18a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zM7.8 10.8l8.4-3.6M7.8 13.2l8.4 3.6`,send:`M21 3L3 10l7 3 3 7z`,paperclip:`M20 11l-8.5 8.5a5 5 0 0 1-7-7L13 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L15 6`,video:`M3 7h11v10H3zM14 11l6-3v8l-6-3`,music:`M9 18V6l10-2v12M9 18a2.5 2.5 0 1 1-2.5-2.5H9M19 16a2.5 2.5 0 1 1-2.5-2.5H19`,mic:`M12 3a3 3 0 0 1 3 3v5a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3zM5 11a7 7 0 0 0 14 0M12 18v3`,headphones:`M4 15v-3a8 8 0 1 1 16 0v3M4 15h3v5H5a1 1 0 0 1-1-1zM20 15h-3v5h2a1 1 0 0 0 1-1z`,book:`M5 4h14v16H7a2 2 0 0 1-2-2zM7 4v14h12`,bookmark:`M7 4h10v16l-5-4-5 4z`,folder:`M4 6h5l2 2h9v10H4z`,cloud:`M7 18a4 4 0 0 1 .5-8 5.5 5.5 0 0 1 10.4 1.5A3.5 3.5 0 0 1 17.5 18z`,database:`M12 3c4.4 0 8 1.3 8 3s-3.6 3-8 3-8-1.3-8-3 3.6-3 8-3zM4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3`,server:`M4 4h16v6H4zM4 14h16v6H4zM8 7h.01M8 17h.01`,code:`M9 8l-5 4 5 4M15 8l5 4-5 4`,terminal:`M4 5h16v14H4zM8 10l3 2-3 2M13 14h4`,wifi:`M5 12a10 10 0 0 1 14 0M8 15a6 6 0 0 1 8 0M12 19h.01`,battery:`M3 8h15v8H3zM21 11v2`,printer:`M7 8V4h10v4M7 16H4V8h16v8h-3M7 13h10v7H7z`,gift:`M4 10h16v10H4zM3 6h18v4H3zM12 6v14M12 6c-2 0-4-1-4-2.5S9 2 10 3s2 3 2 3zM12 6c2 0 4-1 4-2.5S15 2 14 3s-2 3-2 3z`,key:`M15 4a5 5 0 1 0-4.6 7L9 12.4V15H6.5L4 17.5V20h4l7-7A5 5 0 0 0 15 4z`,compass:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM15 9l-2 5-5 2 2-5z`,flag:`M5 21V4h13l-2 4 2 4H5`,award:`M12 4a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM9 13l-1 7 4-2 4 2-1-7`,chart:`M4 20V4M4 20h16M8 16v-5M12 16V8M16 16v-8`,pie:`M12 3a9 9 0 1 0 9 9h-9z`,trending:`M3 17l6-6 4 4 8-8M15 7h6v6`,dollar:`M12 3v18M16 7.5C16 6 14.2 5 12 5S8 6 8 7.5 9.5 10 12 10.5s4 1.5 4 3-1.8 2.5-4 2.5-4-1-4-2.5`,percent:`M5 19L19 5M7.5 5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM16.5 14a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z`,truck:`M3 6h11v9H3zM14 9h4l3 3v3h-7zM7.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM17.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z`,package:`M12 3l8 4v10l-8 4-8-4V7zM4 7l8 4 8-4M12 11v10`,store:`M4 9h16v11H4zM4 9l1.5-5h13L20 9M9 20v-6h6v6`,building:`M5 21V4h9v17M14 9h5v12M8 8h3M8 12h3M8 16h3M17 12h.01M17 16h.01`,users:`M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM2 20c0-3.3 3.1-5 7-5s7 1.7 7 5M17 5a4 4 0 0 1 0 7.9M22 20c0-2.6-1.6-4.2-4-4.8`,"thumbs-up":`M7 21V10h3l3-6a2 2 0 0 1 2 2v4h4l-2 11z`,smile:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9 10h.01M15 10h.01M8.5 14.5a5 5 0 0 0 7 0`,help:`M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.7M12 17h.01`,checkbox:`M4 4h16v16H4zM8 12l3 3 5-5`,list:`M8 6h13M8 12h13M8 18h13M3.5 6h.01M3.5 12h.01M3.5 18h.01`,grid:`M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z`,apps:`M4.5 4.5h2v2h-2zM11 4.5h2v2h-2zM17.5 4.5h2v2h-2zM4.5 11h2v2h-2zM11 11h2v2h-2zM17.5 11h2v2h-2zM4.5 17.5h2v2h-2zM11 17.5h2v2h-2zM17.5 17.5h2v2h-2z`,layers:`M12 3l9 5-9 5-9-5zM3 13l9 5 9-5`,zap:`M13 3L5 14h6l-1 7 8-11h-6z`,flame:`M12 21a6 6 0 0 0 6-6c0-4-4-6-4-10 0 0-3 1.5-3 5 0 1.5-1 2-1.5 1.5C8 10 7.5 9 7.5 9A7.5 7.5 0 0 0 6 15a6 6 0 0 0 6 6z`,droplet:`M12 3s6 6.4 6 10.5a6 6 0 0 1-12 0C6 9.4 12 3 12 3z`,leaf:`M4 20c0-8 6-14 16-14 0 10-6 14-12 14H4zM8 16c2-4 5-6 8-7`};function Ai({name:e=`star`,paths:t,fill:n=!1,size:r=24,stroke:i=2,color:a=``,href:o=``,target:s=``,label:c=``,style:l,nodeRef:u,inert:d}){let f=Array.isArray(t)?t.filter(e=>typeof e==`string`&&e.trim()):[],p=n&&f.length>0,m=f.length?f:[ki[e]??ki.star],h=Math.min(Math.max(Number(r)||24,8),240),g=a===`accent`?`var(--page-accent, currentColor)`:a||`currentColor`,_=(0,G.jsx)(`svg`,{...q(`glyph`),viewBox:`0 0 24 24`,width:h,height:h,fill:p?g:`none`,stroke:p?`none`:g,strokeWidth:p?void 0:Math.min(Math.max(Number(i)||2,.5),4),strokeLinecap:p?void 0:`round`,strokeLinejoin:p?void 0:`round`,role:c?`img`:void 0,"aria-label":c||void 0,"aria-hidden":c?void 0:`true`,style:{display:`block`},children:m.map((e,t)=>(0,G.jsx)(`path`,{d:e},t))}),v={display:`inline-flex`,lineHeight:0,...z(l)};return o?(0,G.jsx)(`a`,{ref:u,href:o,onClick:d?e=>e.preventDefault():void 0,target:s||void 0,rel:s===`_blank`?`noopener noreferrer`:void 0,style:{...v,color:`inherit`},children:_}):(0,G.jsx)(`span`,{ref:u,style:v,children:_})}function ji(e,t={},n=0){let r=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`):[],i=e=>e==null?``:rr(e),a=Math.max(0,Number(n)||0),o=[];for(let e of r){let n=e.data??e,r=tr(n,t.imageField),s=(Array.isArray(r)?r:[r]).map(e=>e&&typeof e==`object`?e.url??e.src??``:e).filter(e=>typeof e==`string`&&e.trim()),c=t.nameField?i(tr(n,t.nameField)):i(n.name),l=t.hrefField?i(tr(n,t.hrefField)):``;for(let e of s)if(o.push({src:e,name:c,alt:c,href:l}),a&&o.length>=a)return o}return o}function Mi({images:e=[],source:t=``,entry:n=``,imageField:r=``,nameField:i=``,hrefField:a=``,limit:o=0,emptyText:s=``,columns:c=3,gap:u=8,showNames:d=!1,lightbox:f=!0,style:p,nodeRef:m,inert:h}){let{tenant:g,apiUrl:_,revision:v}=(0,l.useContext)(K),y=(0,l.useContext)(Hn)?.[t],[b,x]=(0,l.useState)(null),[S,C]=(0,l.useState)(()=>new Set);(0,l.useEffect)(()=>{if(!t||y)return;let e=!0;return fetch(`${_}/dynamic/${encodeURIComponent(t)}`,{headers:g?{"x-tenant":g}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&x(n)}).catch(()=>e&&x([])),()=>{e=!1}},[v,t,g,_,y]);let w=y??b??[],T=n?w.filter(e=>e?.id===n||e?.data?.slug===n||e?.slug===n):w,E=Math.max(0,Number(o)||0),D=t?(()=>{let e=ji(T,{imageField:r,nameField:i,hrefField:a},0).filter(e=>!S.has(e.src));return E?e.slice(0,E):e})():null,O=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.src):[],k=D??O,A=!!t&&!y&&b===null,j=Math.max(0,Number(u)||0),M=h?e=>e.preventDefault():void 0,[N,P]=(0,l.useState)(null),F=f&&!h&&N!==null&&k[N];(0,l.useEffect)(()=>{if(!F)return;let e=e=>{e.key===`Escape`&&P(null),e.key===`ArrowRight`&&P(e=>(e+1)%k.length),e.key===`ArrowLeft`&&P(e=>(e-1+k.length)%k.length)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[F,k.length]);let I=e=>{if(typeof e.name==`string`&&e.name.trim())return e.name;if(typeof e.alt==`string`&&e.alt.trim())return e.alt;try{let t=String(e.src).split(`?`)[0].split(`/`).pop();return decodeURIComponent(t??``)}catch{return``}};return(0,G.jsxs)(`div`,{ref:m,style:{columnCount:Math.min(Math.max(Number(c)||3,1),8),columnGap:j,width:`100%`,...z(p)},children:[k.map((e,n)=>{let r=(0,G.jsxs)(`span`,{style:{position:`relative`,display:`block`,borderRadius:`inherit`,overflow:`hidden`},children:[(0,G.jsx)(`img`,{...q(`image`),src:e.src,alt:e.alt??``,onError:t?()=>C(t=>new Set(t).add(e.src)):void 0,style:{width:`100%`,display:`block`,borderRadius:`inherit`}}),d&&I(e)&&(0,G.jsx)(`span`,{...q(`caption`),style:{position:`absolute`,insetInline:0,bottom:0,padding:`14px 10px 8px`,background:`linear-gradient(transparent, rgba(0, 0, 0, 0.65))`,color:`#fff`,fontSize:12,lineHeight:1.3,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:I(e)})]}),i=e.href?(0,G.jsx)(`a`,{href:e.href,onClick:M,target:e.target||void 0,rel:e.target===`_blank`?`noopener noreferrer`:void 0,style:{display:`block`,borderRadius:`inherit`},children:r}):f&&!h?(0,G.jsx)(`span`,{role:`button`,tabIndex:0,onClick:()=>P(n),onKeyDown:e=>(e.key===`Enter`||e.key===` `)&&P(n),style:{display:`block`,borderRadius:`inherit`,cursor:`zoom-in`},children:r}):r;return(0,G.jsx)(`div`,{...q(`tile`),style:{breakInside:`avoid`,marginBottom:j,borderRadius:`inherit`,overflow:`hidden`},children:i},n)}),!k.length&&!A&&(0,G.jsx)(`div`,{...q(`empty`),style:{padding:`24px 12px`,fontSize:13,opacity:.55,textAlign:`center`,columnSpan:`all`},children:t?s||`No images yet`:`Pick images in Settings to fill the gallery`}),F&&(0,G.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,onClick:()=>P(null),style:{position:`fixed`,inset:0,zIndex:1400,background:`rgba(0, 0, 0, 0.86)`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24},children:[(0,G.jsx)(`img`,{src:k[N].src,alt:k[N].alt??``,onClick:e=>e.stopPropagation(),style:{maxWidth:`92vw`,maxHeight:`84vh`,borderRadius:8,boxShadow:`0 12px 48px rgba(0,0,0,0.5)`}}),I(k[N])&&(0,G.jsx)(`div`,{style:{color:`#fff`,fontSize:14,marginTop:12,opacity:.85},children:I(k[N])}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:()=>P(null),style:{position:`absolute`,top:16,right:20,background:`transparent`,border:0,color:`#fff`,fontSize:28,lineHeight:1,cursor:`pointer`},children:`×`}),k.length>1&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`Previous`,onClick:e=>{e.stopPropagation(),P(e=>(e-1+k.length)%k.length)},style:{position:`absolute`,left:16,top:`50%`,transform:`translateY(-50%)`,background:`transparent`,border:0,color:`#fff`,fontSize:36,cursor:`pointer`,padding:12},children:`‹`}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`Next`,onClick:e=>{e.stopPropagation(),P(e=>(e+1)%k.length)},style:{position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,background:`transparent`,border:0,color:`#fff`,fontSize:36,cursor:`pointer`,padding:12},children:`›`})]})]})]})}var Ni=e=>{let t=Array.isArray(e)?e[0]:e;return t&&typeof t==`object`?String(t.url??t.href??t.link??``):t==null?``:String(t)},Pi=e=>String(e??``).trim().toLowerCase().split(/[-_]/)[0];function Fi(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],r=Pi(t.language),i=n.filter(e=>!t.langField||!r||Pi(rr(e.data?.[t.langField]))===r),a=e=>String(e.data?.slug??e.slug??``),o=e=>{if(!t.parentField)return``;let n=e.data?.[t.parentField],r=Array.isArray(n)?n[0]:n;return r&&typeof r==`object`?String(r.id??r.slug??``):r==null?``:String(r)},s=e=>{let n=Number(t.orderField?rr(e.data?.[t.orderField]):NaN);return Number.isFinite(n)?n:1/0},c=(e,t)=>s(e)-s(t)||a(e).localeCompare(a(t),void 0,{numeric:!0}),l=new Map;for(let e of i)l.set(String(e.id),e),a(e)&&l.set(a(e),e);let u=new Map;for(let e of i){let t=l.get(o(e)),n=t&&t!==e?t.id:``;u.has(n)||u.set(n,[]),u.get(n).push(e)}let d=[];if(t.root===`parent`){let e=t.rootEntry?l.get(String(t.rootEntry)):null;d=e?u.get(e.id)??[]:[]}else{let e=e=>!t.groupField||rr(e.data?.[t.groupField])===String(t.groupValue??``);d=i.filter(t=>{if(!e(t))return!1;let n=l.get(o(t));return!n||n===t||!e(n)})}let f=Math.max(0,Number(t.depth)||0),p=new Set,m=(e,n)=>{if(p.has(e.id))return null;p.add(e.id);let r=f===0||n<f?u.get(e.id)??[]:[];return{key:e.id,label:rr(e.data?.[t.labelField||`name`])||rr(e.data?.name)||`Untitled`,href:Et(t.hrefField?Ni(e.data?.[t.hrefField]):``),icon:t.iconField?rr(e.data?.[t.iconField]).trim():``,children:[...r].sort(c).map(e=>m(e,n+1)).filter(Boolean)}};return[...d].sort(c).map(e=>m(e,1)).filter(Boolean)}var Ii=(e,t)=>{if(!e||!t||!e.startsWith(`/`))return!1;let n=e=>e.length>1?e.replace(/\/+$/,``):e,r=n(e.split(/[?#]/)[0]),i=n(t);return r===i||r.length>1&&i.endsWith(r)&&i.charAt(i.length-r.length-1)===`/`},Li=pr({display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8,padding:`10px 16px`,color:`inherit`,textDecoration:`none`});function Ri({source:e=``,labelField:t=``,hrefField:n=``,parentField:r=``,orderField:i=``,langField:a=``,root:o=`group`,groupField:s=``,groupValue:c=``,rootEntry:u=``,depth:d=0,expand:f=`current`,toggleOnClick:p=!0,indent:m=16,lines:h=`none`,lineColor:g=``,iconField:_=``,branchIcon:v=``,leafIcon:y=``,toggleIcon:b=`caret`,toggleSize:x=16,dividers:S=`none`,dividerColor:C=``,dividerWidth:w=1,linkColor:T=``,hoverBg:E=``,hoverColor:D=``,currentBg:O=``,currentColor:k=``,placeholder:A=``,style:j,nodeRef:M}){let{tenant:N,apiUrl:P,revision:F,locale:I}=(0,l.useContext)(K),L=(0,l.useContext)(Hn)?.[e],R=Number(m)||0,B=(h===`solid`||h===`dotted`)&&R>=8,ee=B?`1px ${h} ${g||`currentColor`}`:``,V=g?1:.5,H=e=>16+(e-2)*R+6,U=`wb-mt-${(0,l.useId)().replace(/[^a-zA-Z0-9_-]/g,``)}`,te=[`solid`,`dashed`,`dotted`].includes(S)?`${Math.min(Math.max(Number(w)||1,1),8)}px ${S} ${C||`rgba(148, 163, 184, 0.35)`}`:``,ne=[te&&`.${U} [data-wb-part~="link"]{border-top:${te};}.${U} > [data-wb-part~="item"]:first-of-type > [data-wb-part~="link"]{border-top:0;}`,T&&`.${U} a{color:${T} !important;}`,(E||D)&&`.${U} a:hover{${E?`background-color:${E} !important;`:``}${D?`color:${D} !important;`:``}}`,(O||k)&&`.${U} a[aria-current="page"]{${O?`background-color:${O} !important;`:``}${k?`color:${k} !important;`:``}}`].filter(Boolean).join(``),re=e=>{let t=e.icon||(e.children.length>0?v:y);return t?/^(https?:)?\/\/|^\//.test(t)?(0,G.jsx)(`img`,{...q(`icon`),src:t,alt:``,style:{width:18,height:18,objectFit:`contain`,flexShrink:0}}):ki[t]?(0,G.jsx)(`svg`,{...q(`icon`),viewBox:`0 0 24 24`,width:`18`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,style:{flexShrink:0,opacity:.8},children:(0,G.jsx)(`path`,{d:ki[t]})}):null:null},ie=Math.min(Math.max(Number(x)||16,8),40),ae=e=>b===`plus`?(0,G.jsx)(`path`,{d:e?ki.minus:ki.plus}):b===`chevron`?(0,G.jsx)(`path`,{d:ki[`chevron-right`]}):null,[oe,se]=(0,l.useState)(null),[ce,le]=(0,l.useState)(``),[ue,de]=(0,l.useState)({});(0,l.useEffect)(()=>{le(window.location.pathname)},[]),(0,l.useEffect)(()=>{if(!e||L)return;let t=!0,n=new URLSearchParams({all:`1`});return I&&n.set(`locale`,I),fetch(`${P}/dynamic/${encodeURIComponent(e)}?${n}`,{headers:N?{"x-tenant":N}:{}}).then(e=>e.json()).then(e=>{let n=Array.isArray(e?.payload)?e.payload:Array.isArray(e?.payload?.data)?e.payload.data:[];t&&se(n)}).catch(()=>t&&se([])),()=>{t=!1}},[F,e,N,P,I,L]);let fe=(0,l.useMemo)(()=>Fi(L??oe??[],{labelField:t,hrefField:n,parentField:r,orderField:i,langField:a,language:I,root:o,groupField:s,groupValue:c,rootEntry:u,depth:d,iconField:_}),[L,oe,t,n,r,i,a,I,o,s,c,u,d,_]),pe=(0,l.useMemo)(()=>{let e=new Set,t=(n,r)=>n.some(n=>Ii(n.href,ce)?([...r,n.key].forEach(t=>e.add(t)),!0):t(n.children,[...r,n.key]));return t(fe,[]),e},[fe,ce]),me=e=>e.key in ue?ue[e.key]:f===`all`||f===`current`&&pe.has(e.key),he=e=>de(t=>({...t,[e.key]:!me(e)})),ge=(e,t)=>({position:`absolute`,left:H(e),pointerEvents:`none`,opacity:V,borderLeft:ee,...t}),_e=(e,t,n)=>!B||e<2?null:(0,G.jsxs)(G.Fragment,{children:[t.map((e,t)=>e?(0,G.jsx)(`span`,{...q(`line`),"aria-hidden":!0,style:ge(t+2,{top:0,bottom:0})},t):null),(0,G.jsx)(`span`,{...q(`line`),"aria-hidden":!0,style:ge(e,n?{top:0,height:`50%`}:{top:0,bottom:0})}),(0,G.jsx)(`span`,{...q(`line`),"aria-hidden":!0,style:{position:`absolute`,left:H(e),top:`50%`,width:Math.max(4,R-8),pointerEvents:`none`,opacity:V,borderTop:ee}})]}),ve=(e,t,n=[])=>e.map((r,i)=>{let a=r.children.length>0,o=a&&me(r),s=Ii(r.href,ce),c=B&&t>1,l=i===e.length-1;return(0,G.jsxs)(`div`,{...q(`item`,o&&`item-open`),children:[(0,G.jsxs)(`a`,{...q(`link`,s&&`link-current`),href:r.href||`#`,"aria-current":s?`page`:void 0,"aria-expanded":a?o:void 0,onClick:a&&(p||!r.href)?e=>{e.preventDefault(),he(r)}:void 0,style:{...Li,paddingLeft:16+(t-1)*R,fontWeight:s?600:void 0,...c?{position:`relative`}:null},children:[_e(t,n,l),(0,G.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:8,minWidth:0},children:[re(r),(0,G.jsx)(`span`,{...q(`label`),children:r.label})]}),a?(0,G.jsx)(`span`,{role:`button`,tabIndex:-1,"aria-label":o?`Collapse`:`Expand`,onClick:e=>{e.preventDefault(),e.stopPropagation(),he(r)},style:{flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,margin:`-8px -8px -8px 0`,padding:8,cursor:`pointer`},children:b===`plus`||b===`chevron`?(0,G.jsx)(`svg`,{...q(`toggle`),viewBox:`0 0 24 24`,width:ie+2,height:ie+2,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,style:{transition:`transform .2s`,transform:b===`chevron`&&o?`rotate(90deg)`:`none`},children:ae(o)}):(0,G.jsx)(`svg`,{...q(`toggle`),viewBox:`0 0 24 24`,width:ie,height:ie,"aria-hidden":!0,style:{transition:`transform .2s`,transform:o?`rotate(180deg)`:`none`},children:(0,G.jsx)(`path`,{d:`M5 8.5h14L12 17z`,fill:`currentColor`})})}):null]}),o?(0,G.jsx)(`div`,{...q(`children`),children:ve(r.children,t+1,t>1?[...n,!l]:n)}):null]},r.key)});return(0,G.jsxs)(`nav`,{ref:M,"aria-label":`Menu`,className:ne?U:void 0,style:{...z(j)},children:[ne?(0,G.jsx)(`style`,{children:ne}):null,fe.length?ve(fe,1):A?(0,G.jsx)(`div`,{...q(`empty`),style:{padding:`10px 16px`,opacity:.6,fontSize:14},children:A}):null]})}var zi={color:`inherit`,textDecoration:`none`,fontSize:14,opacity:.85},Bi=pr({background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,border:`1px solid rgba(148, 163, 184, 0.25)`,boxShadow:`0 16px 40px rgba(15, 23, 42, 0.16)`,zIndex:60});function Vi(e,t={},n=`dropdown`){let r=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],i=e=>Array.isArray(e)?e[0]:e,a=e=>e==null?``:rr(e),o=r.map(e=>{let n=e.data??{},r=t.parentField?i(n[t.parentField]):null;return{key:e.id,parent:(r&&typeof r==`object`?r.id:r)||null,label:a(n[t.labelField||`name`])||a(n.name)||`Untitled`,href:t.hrefField?a(n[t.hrefField]):``,image:t.imageField&&i(n[t.imageField])||``,desc:t.descField?a(n[t.descField]):``}}),s=new Map(o.map(e=>[e.key,e])),c=e=>{let t=new Set,n=e;for(;n.parent&&s.has(n.parent)&&!t.has(n.key);)t.add(n.key),n=s.get(n.parent);return n},l=[],u=new Map;for(let e of o){if(c(e)!==e)continue;let t={key:e.key,label:e.label,href:e.href,image:e.image,children:[]};u.set(e.key,t),l.push(t)}for(let e of o){let t=c(e);t!==e&&u.get(t.key)?.children.push({key:e.key,label:e.label,href:e.href,image:e.image,desc:e.desc})}return l.map(e=>({...e,type:e.children.length?n:`link`}))}function Hi({brand:e,logo:t,brandHref:n,brandTarget:r,links:i=[],style:a,nodeRef:o,menu:s=`auto`,breakpoint:c=768,source:u=``,labelField:d=``,hrefField:f=``,imageField:p=``,descField:m=``,parentField:h=``,submenu:g=`dropdown`}){let[_,v]=(0,l.useState)(null),[y,b]=(0,l.useState)(!1),[x,S]=(0,l.useState)(!1),[C,w]=(0,l.useState)(null),{tenant:T,apiUrl:E,revision:D,locale:O}=(0,l.useContext)(K),k=at(O),A=(0,l.useId)(),j=(0,l.useContext)(Hn)?.[u],[M,N]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(!u||j)return;let e=!0;return fetch(`${E}/dynamic/${encodeURIComponent(u)}`,{headers:T?{"x-tenant":T}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&N(n)}).catch(()=>e&&N([])),()=>{e=!1}},[D,u,T,E,j]),(0,l.useEffect)(()=>{if(!_)return;let e=new ResizeObserver(()=>b(_.offsetWidth<c));return e.observe(_),()=>e.disconnect()},[_,c]);let P=u?Vi(j??M??[],{labelField:d,hrefField:f,imageField:p,descField:m,parentField:h},g):i,F=s===`hamburger`||s===`auto`&&y,I=(e,t,n=!1)=>{let r=e.image?(0,G.jsx)(`img`,{...q(`sublink-image`),src:e.image,alt:``,style:n?{width:`100%`,aspectRatio:`16 / 9`,objectFit:`cover`,borderRadius:6,display:`block`,marginBottom:8}:{width:22,height:22,objectFit:`cover`,borderRadius:4,display:`block`,flexShrink:0}}):null;return(0,G.jsxs)(`a`,{...q(`sublink`,n&&`sublink-card`),href:e.href||`#`,style:{...zi,display:n?`block`:`flex`,alignItems:n?void 0:`center`,gap:n?void 0:10,...t},children:[r,(0,G.jsxs)(`span`,{...q(`sublink-label`),style:{display:`block`,minWidth:0},children:[e.label,e.desc&&(0,G.jsx)(`span`,{...q(`sublink-desc`),style:{display:`block`,fontSize:12,opacity:.6,marginTop:2},children:e.desc})]})]},e.key)};return(0,G.jsxs)(`nav`,{ref:e=>{v(e),o&&o(e)},style:{display:`flex`,alignItems:`center`,gap:24,flexWrap:`wrap`,padding:`14px 24px`,width:`100%`,position:`relative`,...z(a)},children:[(t||e)&&(()=>{let i=(0,G.jsxs)(G.Fragment,{children:[t&&(0,G.jsx)(`img`,{...q(`logo`),src:t,alt:e||`Logo`,style:{height:28,display:`block`}}),e&&(0,G.jsx)(`span`,{...q(`brand-name`),style:{fontWeight:700,fontSize:18,fontFamily:`var(--page-heading-font, inherit)`},children:e})]}),a={display:`flex`,alignItems:`center`,gap:10,color:`inherit`,textDecoration:`none`};return n?(0,G.jsx)(`a`,{...q(`brand`),href:n,target:r||void 0,rel:r===`_blank`?`noopener noreferrer`:void 0,style:a,children:i}):(0,G.jsx)(`div`,{...q(`brand`),style:a,children:i})})(),(0,G.jsx)(`div`,{style:{flexGrow:1}}),F?(0,G.jsx)(`button`,{type:`button`,...q(`menu-button`),"aria-label":k(x?`closeMenu`:`openMenu`),"aria-expanded":x,"aria-controls":x?`${A}-menu`:void 0,onClick:()=>S(!x),style:{background:`transparent`,border:0,color:`inherit`,cursor:`pointer`,fontSize:20,lineHeight:1,padding:4},children:x?`✕`:`☰`}):(0,G.jsx)(`div`,{...q(`links`),style:{display:`flex`,gap:20,alignItems:`center`,flexWrap:`wrap`},children:P.map(e=>{let t=e.children??[];if(!t.length)return(0,G.jsx)(`a`,{...q(`link`),href:e.href||`#`,style:zi,children:e.label},e.key);let n=e.type===`mega`,r=`${A}-${e.key}`;return(0,G.jsxs)(`span`,{style:{position:n?`static`:`relative`,display:`inline-flex`},onMouseEnter:()=>w(e.key),onMouseLeave:()=>w(null),onFocus:t=>{t.currentTarget.contains(t.relatedTarget)||w(e.key)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||w(null)},onKeyDown:t=>{let n=t.currentTarget;t.key===`Escape`&&C===e.key?(t.stopPropagation(),w(null),n.querySelector(`a`)?.focus()):t.key===`ArrowDown`&&C!==e.key&&(t.preventDefault(),w(e.key),setTimeout(()=>n.querySelectorAll(`a`)[1]?.focus(),0))},children:[(0,G.jsxs)(`a`,{...q(`link`),href:e.href||`#`,"aria-haspopup":`true`,"aria-expanded":C===e.key,"aria-controls":C===e.key?r:void 0,style:{...zi,cursor:`pointer`},children:[e.label,` `,(0,G.jsx)(`span`,{...q(`chevron`),"aria-hidden":`true`,style:{fontSize:9,opacity:.6},children:`▼`})]}),C===e.key&&(n?(0,G.jsx)(`div`,{id:r,...q(`mega-panel`),style:{...Bi,position:`absolute`,left:0,right:0,top:`100%`,padding:24,display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(170px, 1fr))`,gap:16},children:t.map(e=>I(e,{padding:8,borderRadius:8},!0))}):(0,G.jsx)(`div`,{id:r,...q(`dropdown-panel`),style:{...Bi,position:`absolute`,top:`100%`,left:0,minWidth:190,borderRadius:8,padding:8,display:`flex`,flexDirection:`column`},children:t.map(e=>I(e,{padding:`8px 12px`,borderRadius:6}))}))]},e.key)})}),F&&x&&(0,G.jsx)(`div`,{id:`${A}-menu`,...q(`mobile-menu`),style:{flexBasis:`100%`,width:`100%`,display:`flex`,flexDirection:`column`,paddingTop:10},children:P.map(e=>(0,G.jsxs)(l.Fragment,{children:[(0,G.jsx)(`a`,{...q(`mobile-link`),href:e.href||`#`,style:{...zi,padding:`10px 4px`,fontWeight:(e.children??[]).length?600:400,opacity:1},children:e.label}),(e.children??[]).map(e=>I(e,{padding:`8px 4px 8px 22px`}))]},e.key))})]})}function Ui({tabs:e=[],linked:t,style:n,nodeRef:r}){let[i,a]=(0,l.useState)(0),{locale:o}=(0,l.useContext)(K),s=(0,l.useId)(),c=(0,l.useRef)(null),u=e.length?Math.min(i,e.length-1):0;if(!e.length)return null;let d=at(o),f=t=>{let n=e.length-1,r={ArrowRight:(u+1)%e.length,ArrowLeft:(u-1+e.length)%e.length,Home:0,End:n}[t.key];r!==void 0&&(t.preventDefault(),a(r),c.current?.querySelectorAll(`[role="tab"]`)[r]?.focus())};return(0,G.jsxs)(`div`,{ref:r,style:{width:`100%`,...z(n)},children:[(0,G.jsx)(`div`,{ref:c,role:`tablist`,...q(`tab-list`),onKeyDown:f,style:{display:`flex`,gap:4,borderBottom:`1px solid rgba(148, 163, 184, 0.35)`},children:e.map((e,t)=>(0,G.jsx)(`button`,{...q(`tab`,t===u&&`tab-active`),type:`button`,role:`tab`,id:`${s}-tab-${e.key}`,"aria-selected":t===u,"aria-controls":`${s}-panel-${e.key}`,tabIndex:t===u?0:-1,onClick:()=>a(t),style:{background:`transparent`,border:0,padding:`10px 16px`,fontSize:14,fontFamily:`inherit`,color:`inherit`,cursor:`pointer`,opacity:t===u?1:.6,fontWeight:t===u?600:500,boxShadow:t===u?`inset 0 -2px 0 var(--page-accent, #111827)`:`none`},children:e.label||d(`tab`,{n:t+1})},e.key))}),e.map((e,n)=>(0,G.jsx)(`div`,{...q(`panel`),role:`tabpanel`,id:`${s}-panel-${e.key}`,"aria-labelledby":`${s}-tab-${e.key}`,tabIndex:0,hidden:n!==u,style:{display:n===u?`flex`:`none`,flexDirection:`column`},children:t?.[e.key]??null},e.key))]})}function Wi({items:e=[],linked:t,multiple:n=!1,icon:r=``,padX:i,padY:a,headerBg:o,headerColor:s,openBg:c,openColor:u,borderColor:d,style:f,nodeRef:p}){let[m,h]=(0,l.useState)(()=>new Set(e.length?[e[0].key]:[])),{locale:g}=(0,l.useContext)(K),_=(0,l.useId)();if(!e.length)return null;let v=at(g),y=(e,t)=>typeof e==`string`&&e?e:t,b=(e,t)=>{let n=Number(e);return e===``||e==null||!Number.isFinite(n)?t:n},x=ki[r],S=e=>h(t=>{let r=new Set(n?t:[]);return t.has(e)?r.delete(e):r.add(e),r});return(0,G.jsx)(`div`,{ref:p,style:{width:`100%`,...z(f)},children:e.map((n,r)=>{let l=m.has(n.key);return(0,G.jsxs)(`div`,{...q(`item`,l&&`item-open`),style:{borderBottom:r<e.length-1?`1px solid ${y(d,`rgba(148, 163, 184, 0.35)`)}`:`none`},children:[(0,G.jsxs)(`button`,{type:`button`,...q(`header`,l&&`header-open`),id:`${_}-h-${n.key}`,"aria-expanded":l,"aria-controls":`${_}-b-${n.key}`,onClick:()=>S(n.key),style:{width:`100%`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:12,background:l?y(c,y(o,`transparent`)):y(o,`transparent`),border:0,padding:`${b(a,14)}px ${b(i,4)}px`,fontSize:15,fontWeight:600,fontFamily:`inherit`,color:l?y(u,y(s,`inherit`)):y(s,`inherit`),textAlign:`left`,cursor:`pointer`,transition:`background 180ms, color 180ms`},children:[(0,G.jsxs)(`span`,{...q(`title`),style:{display:`flex`,alignItems:`center`,gap:10,minWidth:0},children:[x?(0,G.jsx)(`svg`,{...q(`icon`),viewBox:`0 0 24 24`,width:16,height:16,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,style:{flexShrink:0},children:(0,G.jsx)(`path`,{d:x})}):null,n.title||v(`item`,{n:r+1})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,...q(`chevron`),style:{fontSize:12,opacity:.6,transform:l?`rotate(180deg)`:`none`,transition:`transform 180ms`},children:`▼`})]}),(0,G.jsx)(`div`,{...q(`body`),id:`${_}-b-${n.key}`,role:`region`,"aria-labelledby":`${_}-h-${n.key}`,hidden:!l,style:{display:l?`flex`:`none`,flexDirection:`column`},children:t?.[n.key]??null})]},n.key)})})}var Gi={display:`flex`,flexDirection:`column`,gap:`12px`},Ki={fontSize:`14px`,fontWeight:500,color:`var(--page-text, #111827)`},qi=pr({padding:`10px 12px`,border:`1px solid var(--page-border, #d1d5db)`,borderRadius:`6px`,fontSize:`14px`,fontFamily:`inherit`,width:`100%`,boxSizing:`border-box`,backgroundColor:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`}),Ji={display:`flex`,alignItems:`center`,gap:`8px`,fontSize:`14px`,color:`var(--page-text, #111827)`},Yi=e=>e?{readOnly:!0,tabIndex:-1,onMouseDown:e=>e.preventDefault()}:{};function Xi(e,t){if(!e)return!0;let n=t[e.field],r=n==null||n===``?``:String(n),i=e.value??``;switch(e.op){case`eq`:return r===i;case`neq`:return r!==i;case`contains`:return r.toLowerCase().includes(i.toLowerCase());case`gt`:return Number(r)>Number(i);case`lt`:return Number(r)<Number(i);case`empty`:return r===``;case`notEmpty`:return r!==``;default:return!1}}var Zi={display:`flex`,flexDirection:`column`,gap:6},Qi=`#dc2626`,$i={fontSize:13,fontWeight:500,color:Qi},ea=pr({font:`inherit`,fontSize:15,padding:`10px 12px`,borderRadius:8,border:`1px solid rgba(148, 163, 184, 0.55)`,background:`transparent`,color:`inherit`,width:`100%`,boxSizing:`border-box`});function ta(e,t){let n=Array.isArray(e?.options)?e.options:[];if(!e?.parentField)return n;let r=t?.[e.parentField];return r?n.filter(e=>typeof e==`string`?!1:!e.parent||e.parent===r):[]}var na=`g-recaptcha-response`,ra=e=>e?.type===`recaptcha`?na:e?.name,ia=[[/^(full_?name|name|ad_?soyad|adsoyad|isim)$/,`name`],[/^(first_?name|given_?name|ad|adi|adiniz)$/,`given-name`],[/^(last_?name|family_?name|surname|soyad|soyadi|soyadiniz)$/,`family-name`],[/^(e_?mail|e_?posta|eposta|mail)$/,`email`],[/^(phone|tel|telephone|mobile|gsm|telefon|cep)$/,`tel`],[/^(company|organization|organisation|firma|sirket|kurum)$/,`organization`],[/^(address|street|adres|sokak)$/,`street-address`],[/^(city|town|sehir|il)$/,`address-level2`],[/^(district|ilce)$/,`address-level3`],[/^(zip|zip_?code|postal_?code|postcode|posta_?kodu)$/,`postal-code`],[/^(country|ulke)$/,`country-name`],[/^(website|web|url|site)$/,`url`]];function aa(e){if(typeof e.autocomplete==`string`&&e.autocomplete)return e.autocomplete;let t={email:`email`,phone:`tel`,link:`url`}[e.type];if(t)return t;let n=String(e.name??``).toLowerCase();return ia.find(([e])=>e.test(n))?.[1]}function oa({field:e,value:t,onChange:n,inert:r,values:i,error:a,idBase:o}){let s=at((0,l.useContext)(K).locale),c=`${o}-${e.name}`,u=e.help?`${c}-help`:null,d=a?`${c}-error`:null,f=(0,G.jsxs)(`label`,{...q(`label`),htmlFor:c,style:{...Ki,fontSize:14},children:[e.label,e.required?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,children:` *`}),(0,G.jsxs)(`span`,{style:ot,children:[` (`,s(`required`),`)`]})]}):null]}),p=[u,d].filter(Boolean).join(` `)||void 0,m={id:c,"aria-invalid":a?!0:void 0,"aria-describedby":p},h={...q(`input`),...m,name:e.name,required:e.required||void 0,placeholder:e.placeholder||void 0,disabled:r||void 0,autoComplete:aa(e),style:a?{...ea,borderTopColor:Qi,borderRightColor:Qi,borderBottomColor:Qi,borderLeftColor:Qi}:ea,value:t??``,onChange:t=>n(e.name,t.target.value)};return e.type===`display`?(0,G.jsx)(e.variant&&e.variant!==`p`?e.variant:`p`,{...q(`text`),style:{margin:0,color:e.color||`inherit`,fontSize:{h1:32,h2:26,h3:21,h4:18,h5:16,h6:14,p:15}[e.variant]??16,fontWeight:e.variant===`p`?400:700,lineHeight:1.35},children:e.label}):e.type===`image`?e.src?(0,G.jsx)(`img`,{...q(`image`),src:e.src,alt:e.label??``,style:{width:`100%`,borderRadius:8,display:`block`}}):null:e.type===`recaptcha`?(0,G.jsxs)(`div`,{...q(`field`),id:c,tabIndex:-1,style:Zi,children:[(0,G.jsx)(pa,{theme:e.captchaTheme,size:e.captchaSize,inert:r,onChange:e=>n(na,e)}),a&&(0,G.jsx)(`span`,{...q(`error`),id:d,style:$i,children:a})]}):e.type===`video`?e.src?/youtube\.com|youtu\.be|vimeo\.com/i.test(e.src)?(0,G.jsx)(ni,{url:e.src,style:{width:`100%`}}):(0,G.jsx)(`video`,{...q(`video`),src:e.src,controls:!0,style:{width:`100%`,borderRadius:8,display:`block`}}):null:(0,G.jsxs)(`div`,{...q(`field`),style:Zi,children:[f,e.type===`textarea`||e.multiline?(0,G.jsx)(`textarea`,{...h,...q(`textarea`),rows:4,style:{...ea,resize:`vertical`}}):e.type===`select`?(0,G.jsxs)(`select`,{...h,...q(`select`),disabled:h.disabled||!!e.parentField&&!i?.[e.parentField],children:[(0,G.jsx)(`option`,{value:``,children:e.placeholder||`—`}),ta(e,i).map((e,t)=>(0,G.jsx)(`option`,{value:typeof e==`string`?e:e.value,children:typeof e==`string`?e:e.label??e.value},t))]}):e.type===`checkbox`?(0,G.jsx)(`input`,{type:`checkbox`,...q(`checkbox`),...m,name:e.name,required:e.required||void 0,disabled:r||void 0,checked:!!t,onChange:t=>n(e.name,t.target.checked),style:{width:18,height:18}}):e.type===`upload`?(0,G.jsx)(`input`,{type:`file`,...q(`file`),...m,name:e.name,accept:e.accept||void 0,required:e.required||void 0,disabled:r||void 0,onChange:t=>n(e.name,t.target.files?.[0]?.name??``),style:{font:`inherit`,fontSize:14}}):(0,G.jsx)(`input`,{...h,type:{email:`email`,number:`number`,date:`date`,datetime:`datetime-local`,phone:`tel`,link:`url`}[e.type]??`text`}),e.help&&(0,G.jsx)(`span`,{...q(`help`),id:u,style:{fontSize:12,opacity:.65},children:e.help}),a&&(0,G.jsx)(`span`,{...q(`error`),id:d,style:$i,children:a})]})}function sa(e,t){if(!e||typeof e!=`object`)return e;let n=String(t??``).split(`-`)[0].toLowerCase(),r=(t,r)=>{let i=e[t]&&typeof e[t]==`object`?e[t][n]:null;return typeof i==`string`&&i.trim()?i:r};return{...e,label:r(`labels`,e.label),help:r(`helps`,e.help),placeholder:r(`placeholders`,e.placeholder),prefix:r(`prefixes`,e.prefix),suffix:r(`suffixes`,e.suffix),errorMessage:r(`errorMessages`,e.errorMessage)}}var ca=(e,t)=>typeof e?.errorMessage==`string`&&e.errorMessage.trim()?e.errorMessage:t;function la({style:e,action:t,method:n,name:r,enctype:i,formSlug:a,auto:o,submitLabel:s,nodeRef:c,inert:u,children:d,linked:f,show:p}){let{tenant:m,apiUrl:h,locale:g}=(0,l.useContext)(K),[_,v]=(0,l.useState)(`form`),[y,b]=(0,l.useState)(null),[x,S]=(0,l.useState)({}),[C,w]=(0,l.useState)(0),[T,E]=(0,l.useState)({}),[D,O]=(0,l.useState)(``),k=(0,l.useId)(),A=(0,l.useRef)(null),j=(0,l.useRef)(null),M=u?p||`form`:_,N=at(g);(0,l.useEffect)(()=>{if(!o||!a)return;let e=!0;return fetch(`${h||`/api`}/forms/${encodeURIComponent(a)}`,{headers:m?{"x-tenant":m}:{}}).then(e=>e.json()).then(t=>e&&b(t?.payload&&typeof t.payload==`object`?t.payload:null)).catch(()=>e&&b(null)),()=>{e=!1}},[o,a,m,h]);let P=[{section:null,fields:[]}];for(let e of(Array.isArray(y?.fields)?y.fields:[]).map(e=>sa(e,g)))e.type===`section`?P.push({section:e,fields:[]}):P[P.length-1].fields.push(e);let F=P.filter(e=>e.section||e.fields.length),I=F.filter(e=>!e.section||Xi(e.section.condition,x)).map(e=>({...e,fields:e.fields.filter(e=>Xi(e.condition,x))})),L=F.length>1,R=Math.min(C,Math.max(0,I.length-1)),B=L?I[R]?.fields??[]:I.flatMap(e=>e.fields),ee=B.filter(e=>{let t=x[ra(e)];return e.required&&(t==null||t===``||t===!1)}),V=R>=I.length-1,H=(e,t)=>{E(t=>{let n=e===`g-recaptcha-response`?(Array.isArray(y?.fields)?y.fields:[]).find(e=>e?.type===`recaptcha`)?.name:e;if(!n||!t[n])return t;let r={...t};return delete r[n],r}),S(n=>{let r={...n,[e]:t};for(let t of Array.isArray(y?.fields)?y.fields:[])t?.parentField===e&&delete r[t.name];return r})},U=()=>{let e={};for(let t of B){if(t.type===`recaptcha`){t.required&&!x[`g-recaptcha-response`]&&(e[t.name]=ca(t,N(`fieldRequired`)));continue}let n=A.current?.querySelector(`[name="${CSS.escape(String(t.name??``))}"]`);!n?.validity||n.validity.valid||(e[t.name]=ca(t,n.validity.valueMissing?N(`fieldRequired`):n.validationMessage||N(`invalid`)))}E(e);let t=B.find(t=>e[t.name]);return t&&setTimeout(()=>document.getElementById(`${k}-${t.name}`)?.focus(),0),!t},te=e=>{v(e),O(N(e===`success`?`submitted`:`submitFailed`)),e===`success`&&setTimeout(()=>j.current?.focus(),0)};return(0,G.jsxs)(`div`,{ref:c,style:z(e),children:[(0,G.jsx)(`form`,{ref:A,action:t||void 0,method:n||`post`,name:r||void 0,encType:i||void 0,noValidate:o&&a?!0:void 0,onSubmit:async e=>{if(e.preventDefault(),!u&&!(o&&a&&!U())){if(a){let t={};if(o)for(let[e,n]of Object.entries(x))n!=null&&n!==``&&(t[e]=n);else for(let[n,r]of new FormData(e.currentTarget).entries())typeof r==`string`&&(t[n]=r===`on`||r);try{let e=await fetch(`${h||`/api`}/forms/${a}/submit`,{method:`post`,headers:{"content-type":`application/json`,...m?{"x-tenant":m}:{}},body:JSON.stringify(t)}),n=await e.json().catch(()=>null),r=n?.error,i=r?.details?.field;if(o&&typeof i==`string`&&B.some(e=>e.name===i)){E({[i]:ca(B.find(e=>e.name===i),typeof r.message==`string`&&r.message||N(`invalid`))}),O(N(`submitFailed`)),setTimeout(()=>document.getElementById(`${k}-${i}`)?.focus(),0);return}te(e.ok&&n?.success!==!1?`success`:`error`)}catch{te(`error`)}return}if(!t){te(`success`);return}try{let r=await fetch(t,{method:n||`post`,body:new FormData(e.currentTarget)});te(r.ok?`success`:`error`)}catch{te(`error`)}}},style:{...Gi,display:M===`success`?`none`:`flex`},children:o&&a?(0,G.jsxs)(G.Fragment,{children:[L&&(0,G.jsx)(Ga,{steps:I.map(e=>({label:e.section?.label??N(`start`)})),active:R+1,style:{marginBottom:8}}),L&&I[R]?.section?.help&&(0,G.jsx)(`p`,{...q(`step-help`),style:{margin:0,fontSize:14,opacity:.7},children:I[R].section.help}),B.some(e=>e.required)&&(0,G.jsx)(`p`,{...q(`required-note`),style:{margin:0,fontSize:13,opacity:.7},children:N(`requiredNote`)}),B.map(e=>(0,G.jsx)(oa,{field:e,value:x[ra(e)],values:x,onChange:H,inert:u,error:T[e.name],idBase:k},e.name)),(0,G.jsxs)(`div`,{...q(`actions`),style:{display:`flex`,gap:10,alignItems:`center`,marginTop:4},children:[L&&R>0&&(0,G.jsx)(`button`,{type:`button`,...q(`back-button`),disabled:u||void 0,onClick:()=>{E({}),w(R-1)},style:{...vr,background:`transparent`,color:`inherit`,border:0,padding:`10px 16px`,cursor:`pointer`},children:N(`back`)}),L&&!V?(0,G.jsx)(`button`,{type:`button`,...q(`next-button`),disabled:u||void 0,onClick:()=>{U()&&w(R+1)},style:{...vr,border:0,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,cursor:`pointer`,opacity:ee.length?.75:1},children:N(`next`)}):(0,G.jsx)(`button`,{type:`submit`,...q(`submit-button`),disabled:u||void 0,style:{...vr,border:0,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,cursor:`pointer`},children:s||N(`submit`)})]})]}):d}),(0,G.jsx)(`div`,{ref:j,tabIndex:-1,style:{display:M===`success`?`block`:`none`,outline:`none`},children:f?.success??null}),(0,G.jsx)(`div`,{style:{display:M===`error`?`block`:`none`,marginTop:12},children:f?.error??null}),!u&&(0,G.jsx)(`div`,{role:`status`,"aria-live":`polite`,style:ot,children:D})]})}var ua=null,da=null,fa=e=>{let t=typeof e==`string`&&e.trim()?e.trim():``;if(ua&&da===t)return ua;if(ua&&typeof window<`u`){for(let e of[`grecaptcha`,`___grecaptcha_cfg`])try{delete window[e]}catch{window[e]=void 0}document.querySelectorAll(`script[src*="recaptcha"]`).forEach(e=>e.remove())}return da=t,ua=new Promise(e=>{if(typeof window>`u`)return;if(window.grecaptcha?.render)return e(window.grecaptcha);window.__webimRecaptchaReady=()=>e(window.grecaptcha);let n=document.createElement(`script`);n.src=`https://www.google.com/recaptcha/api.js?onload=__webimRecaptchaReady&render=explicit${t?`&hl=${encodeURIComponent(t)}`:``}`,n.async=!0,document.head.appendChild(n)}),ua};function pa({siteKey:e,theme:t,size:n,hl:r,style:i,nodeRef:a,inert:o,onChange:s}){let c=(0,l.useContext)(K),u=c?.settings&&typeof c.settings==`object`?c.settings[`google.recaptchaKey`]:``,d=typeof e==`string`&&e.trim()||(typeof u==`string`?u.trim():``),f=(0,l.useRef)(null),p=(0,l.useRef)(s);if(p.current=s,(0,l.useEffect)(()=>{if(o||!d||!f.current)return;let e=!0,i=t=>{e&&typeof p.current==`function`&&p.current(t)};return fa(r).then(r=>{if(!(!e||!f.current||!r?.render)){f.current.innerHTML=``,i(``);try{r.render(f.current,{sitekey:d,theme:t===`dark`?`dark`:`light`,size:n===`compact`?`compact`:`normal`,callback:e=>i(typeof e==`string`?e:``),"expired-callback":()=>i(``),"error-callback":()=>i(``)})}catch{}}}),()=>{e=!1}},[o,d,t,n,r]),o){let e=t===`dark`;return(0,G.jsxs)(`div`,{ref:a,style:z(i),children:[(0,G.jsxs)(`div`,{style:{width:n===`compact`?164:302,boxSizing:`border-box`,padding:`12px 14px`,display:`flex`,alignItems:`center`,gap:12,borderRadius:4,border:`1px solid ${e?`#52565b`:`#d3d3d3`}`,background:e?`#222528`:`#f9f9f9`,color:e?`#f1f1f1`:`#282828`,fontSize:14,fontFamily:`Roboto, Arial, sans-serif`},children:[(0,G.jsx)(`span`,{style:{width:24,height:24,flexShrink:0,borderRadius:3,border:`2px solid ${e?`#8a8f94`:`#c1c1c1`}`,background:e?`#2f3337`:`#fff`}}),(0,G.jsx)(`span`,{style:{flexGrow:1},children:`I'm not a robot`}),(0,G.jsx)(`span`,{style:{fontSize:9,opacity:.6,textAlign:`center`,lineHeight:1.3},children:`reCAPTCHA`})]}),!d&&(0,G.jsx)(`div`,{style:{marginTop:6,fontSize:11,color:`#b45309`},children:`Set the google.recaptchaKey tenant setting (or a site key in Settings) to activate it.`})]})}return d?(0,G.jsx)(`div`,{ref:a,style:z(i),children:(0,G.jsx)(`div`,{ref:f})}):null}var ma=e=>typeof e==`string`&&e.trim()?`wb-field-${e.trim()}`:void 0;function ha({text:e,parts:t,htmlFor:n,style:r,nodeRef:i,linked:a}){return(0,G.jsx)(`label`,{ref:i,htmlFor:n||void 0,style:{...Ki,...z(r)},children:jr(t,e,a)})}function ga({type:e=`text`,name:t,placeholder:n,required:r,style:i,nodeRef:a,inert:o}){return(0,G.jsx)(`input`,{ref:a,id:ma(t),type:e,name:t||void 0,autoComplete:aa({name:t,type:{email:`email`,tel:`phone`,url:`link`}[e]}),placeholder:n,required:!o&&!!r,style:{...qi,...z(i)},...Yi(o)})}function _a({name:e,placeholder:t,rows:n=4,required:r,style:i,nodeRef:a,inert:o}){return(0,G.jsx)(`textarea`,{ref:a,id:ma(e),name:e||void 0,placeholder:t,rows:n,required:!o&&!!r,style:{...qi,resize:`vertical`,...z(i)},...Yi(o)})}function va({kind:e=`checkbox`,label:t,name:n,value:r,required:i,style:a,nodeRef:o,inert:s}){return(0,G.jsxs)(`label`,{ref:o,style:{...Ji,...z(a)},children:[(0,G.jsx)(`input`,{type:e,...q(`control`),name:n||void 0,value:r||void 0,required:!s&&!!i,onClick:s?e=>e.preventDefault():void 0,tabIndex:s?-1:void 0,style:{margin:0,accentColor:`var(--page-accent, #111827)`}}),t]})}function ya({name:e,placeholder:t,options:n=[],required:r,style:i,nodeRef:a,inert:o}){return(0,G.jsxs)(`select`,{ref:a,id:ma(e),name:e||void 0,autoComplete:aa({name:e}),required:!o&&!!r,defaultValue:``,onMouseDown:o?e=>e.preventDefault():void 0,tabIndex:o?-1:void 0,style:{...qi,appearance:`auto`,...z(i)},children:[t!==``&&(0,G.jsx)(`option`,{value:``,disabled:!0,children:t??`Select…`}),n.map((e,t)=>(0,G.jsx)(`option`,{value:e,children:e},t))]})}function ba({name:e,accept:t,required:n,text:r=`Choose a file…`,style:i,nodeRef:a,inert:o}){let[s,c]=(0,l.useState)(null);return(0,G.jsxs)(`label`,{ref:a,className:`wb-file`,style:{...qi,display:`flex`,alignItems:`center`,gap:`8px`,cursor:o?`default`:`pointer`,borderStyle:`dashed`,color:s?`#111827`:`#6b7280`,...z(i)},children:[(0,G.jsx)(`input`,{type:`file`,name:e||void 0,accept:t||void 0,required:!o&&!!n,disabled:!!o,onChange:e=>c(e.target.files?.[0]?.name??null),style:ot}),(0,G.jsx)(`span`,{"aria-hidden":!0,...q(`icon`),children:`📎`}),s??r]})}function xa({legend:e=``,style:t,nodeRef:n,children:r}){return(0,G.jsxs)(`fieldset`,{ref:n,style:{...pr({border:`0 none`,margin:`0`,padding:`0`}),minWidth:0,display:`flex`,flexDirection:`column`,gap:`10px`,...z(t)},children:[typeof e==`string`&&e.trim()?(0,G.jsx)(`legend`,{...q(`legend`),style:{...Ki,padding:0,marginBottom:6},children:e}):null,r]})}function Sa({text:e=`Submit`,style:t,nodeRef:n,inert:r}){return(0,G.jsx)(`button`,{ref:n,type:r?`button`:`submit`,style:{...vr,border:0,cursor:`pointer`,alignSelf:`flex-start`,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,lineHeight:1.4,fontFamily:`inherit`,...z(t)},children:e})}function Ca({cols:e=2,rows:t=1,style:n,nodeRef:r,linked:i}){let a=Math.max(1,(Number(e)||1)*(Number(t)||1));return(0,G.jsx)(`div`,{ref:r,style:{display:`grid`,gridTemplateColumns:`repeat(${Math.max(1,Number(e)||1)}, minmax(0, 1fr))`,gap:16,width:`100%`,...z(n)},children:Array.from({length:a},(e,t)=>(0,G.jsx)(`div`,{style:{minWidth:0},children:i?.[`cell-${t}`]??null},t))})}function wa(e,t){if(e===``||e==null)return t;let n=Number(e);return Number.isFinite(n)&&n>=0?n:t}function Ta({collection:e,limit:t=6,layout:n=`grid`,columns:r=3,imageField:i,titleField:a=`name`,textField:o,custom:s,templateId:c,renderTemplate:u,paged:d,filters:f,parentField:p,topLevel:m,childrenOf:h,itemsOf:g,gap:_,style:v,nodeRef:y}){let{tenant:b,apiUrl:x,revision:S,locale:C}=(0,l.useContext)(K),w=(0,l.useContext)(Kn),T=(0,l.useContext)(Hn),E=(0,l.useContext)(qn),D=typeof g==`string`&&g?g:null,O=Co(D?vo(tr(E?.entry?.data,D)):null),k=h||D?null:e,A=!!p&&!h&&!D,[,j]=(0,l.useState)(0);(0,l.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>j(e=>e+1);return window.addEventListener(`popstate`,e),window.addEventListener(`webim:urlchange`,e),()=>{window.removeEventListener(`popstate`,e),window.removeEventListener(`webim:urlchange`,e)}},[]);let M=Gn(f),N=JSON.stringify(M),P=N!==`{}`&&!k?.startsWith?.(`api:`),F=P||!k?null:T?.[k],I=d?Un(T):1,[L,R]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(!k||F)return;let e=!0,n=k,r=new URLSearchParams;if(C&&r.set(`locale`,C),P&&r.set(`data_filter`,N),A&&!n.startsWith(`api:`))r.set(`all`,`1`);else if(d&&!n.startsWith(`api:`)){let e=Math.max(1,Number(t)||6);r.set(`offset`,String((I-1)*e)),r.set(`limit`,String(e))}let i=r.toString(),a=n.startsWith(`api:`)?`${x}/data/${encodeURIComponent(n.slice(4))}`:`${x}/dynamic/${encodeURIComponent(n)}${i?`?${i}`:``}`;return fetch(a,{headers:b?{"x-tenant":b}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];return e&&R(n.filter(e=>e&&typeof e==`object`))}).catch(()=>e&&R([])),()=>{e=!1}},[S,k,b,x,C,F,d,I,t,P,N,A]),!k&&!h&&!D)return null;let B=Math.max(1,Number(t)||6),ee=D?[]:h?E?.all??[]:F??L??[],V=D?null:h?E?.parentField:p,H=D?null:h?E?.collection:k,U=D?Xn(E?.entry,D,O):h?Yn(ee,V,E?.entry):A&&m?ee.filter(e=>Jn(e,p).length===0):ee,te=d&&(F||h||D||A||k.startsWith(`api:`))?U.slice((I-1)*B,I*B):U.slice(0,B),ne=Math.min(Math.max(Number(r)||3,1),6),re=n===`list`?{display:`flex`,flexDirection:`column`,gap:wa(_,20)}:{display:`grid`,gridTemplateColumns:`repeat(${ne}, minmax(0, 1fr))`,gap:wa(_,24)},ie=u??(c&&w?.render?e=>w.render(c,e):null);return s&&ie?(0,G.jsx)(`div`,{ref:y,style:{width:`100%`,...re,...z(v)},children:te.map(e=>(0,G.jsx)(`div`,{style:{minWidth:0},children:(0,G.jsx)(qn.Provider,{value:{entry:e,all:ee,parentField:V,collection:H},children:ie(t=>ur(t,e,C))})},e.id??e?.data?.slug))}):(0,G.jsx)(`div`,{ref:y,style:{width:`100%`,...re,...z(v)},children:te.map(e=>{let t=i?tr(e?.data,i):null,r=Array.isArray(t)?t[0]:t,s=typeof r==`string`?r:typeof r?.url==`string`?r.url:null,c=a?rr(tr(e?.data,a)):null,l=o?tr(e?.data,o):null,u=Array.isArray(l)?l:null,d=u||l==null?null:rr(l),f=n===`list`;return(0,G.jsxs)(`div`,{...q(`card`),style:{display:`flex`,flexDirection:f?`row`:`column`,gap:f?20:12,alignItems:f?`center`:`stretch`,minWidth:0},children:[s&&(0,G.jsx)(`img`,{...q(`image`),src:s,alt:c??``,style:{width:f?160:`100%`,aspectRatio:`3 / 2`,objectFit:`cover`,borderRadius:10,flexShrink:0,display:`block`}}),(0,G.jsxs)(`div`,{...q(`body`),style:{minWidth:0},children:[c&&(0,G.jsx)(`h3`,{...q(`title`),style:{margin:0,fontSize:18,fontWeight:700},children:c}),d&&(0,G.jsx)(`p`,{...q(`text`),style:{margin:`6px 0 0`,fontSize:14,lineHeight:1.55,opacity:.75},children:d}),u&&(0,G.jsx)(`div`,{...q(`text`),style:{marginTop:6,fontSize:14,lineHeight:1.55,opacity:.85},children:Br(u)})]})]},e.id??e?.data?.slug)})})}function Ea({fields:e=[],buttonLabel:t=`Search`,style:n,nodeRef:r,inert:i}){let a=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&typeof e.name==`string`&&e.name):[],o=i?{}:Wn(),s={height:34,padding:`0 12px`,borderRadius:8,border:`1px solid var(--page-border, rgba(100, 116, 139, 0.4))`,background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,fontSize:13,fontFamily:`inherit`,outline:`none`,minWidth:140,flex:`0 1 auto`,boxSizing:`border-box`},c=e=>{let t=e&&typeof e==`object`?e.value:e,n=e&&typeof e==`object`?e.label??e.value:e;return{value:String(t??``),label:String(n??``)}};return(0,G.jsxs)(`form`,{ref:r,method:`get`,onSubmit:e=>{if(i){e.preventDefault();return}if(typeof window>`u`||!window.history?.pushState)return;e.preventDefault();let t=new URLSearchParams(window.location.search);for(let e of[...t.keys()])(e.startsWith(`f_`)||e===`page`)&&t.delete(e);for(let[n,r]of new FormData(e.currentTarget).entries())n.startsWith(`f_`)&&typeof r==`string`&&r.trim()!==``&&t.set(n,r);let n=t.toString();window.history.pushState({},``,`${window.location.pathname}${n?`?${n}`:``}`),window.dispatchEvent(new Event(`webim:urlchange`))},style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:8,width:`100%`,...z(n)},children:[a.map(e=>Array.isArray(e.options)&&e.options.length>0||e.type===`option`||e.type===`select`?(0,G.jsxs)(`select`,{name:`f_${e.name}`,defaultValue:o[e.name]??``,...q(`select`),style:s,...Yi(i),children:[(0,G.jsx)(`option`,{value:``,children:e.label||e.name}),(Array.isArray(e.options)?e.options:[]).map(e=>{let t=c(e);return(0,G.jsx)(`option`,{value:t.value,children:t.label},t.value)})]},e.name):e.type===`switch`?(0,G.jsxs)(`select`,{name:`f_${e.name}`,defaultValue:o[e.name]??``,...q(`select`),style:s,...Yi(i),children:[(0,G.jsx)(`option`,{value:``,children:e.label||e.name}),(0,G.jsx)(`option`,{value:`true`,children:`Yes`}),(0,G.jsx)(`option`,{value:`false`,children:`No`})]},e.name):(0,G.jsx)(`input`,{type:`text`,name:`f_${e.name}`,defaultValue:o[e.name]??``,placeholder:e.label||e.name,...q(`input`),style:s,...Yi(i)},e.name)),(0,G.jsx)(`button`,{type:`submit`,...q(`button`),style:{...s,minWidth:0,padding:`0 18px`,border:`none`,background:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`,fontWeight:600,cursor:i?`default`:`pointer`},...Yi(i),children:t})]})}function Da({items:e=[],separator:t=`/`,style:n,nodeRef:r}){return e.length?(0,G.jsx)(`nav`,{ref:r,"aria-label":`Breadcrumb`,style:{...z(n)},children:(0,G.jsx)(`ol`,{...q(`list`),style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:8,listStyle:`none`,margin:0,padding:0,fontSize:14},children:e.map((n,r)=>{let i=r===e.length-1;return(0,G.jsxs)(`li`,{...q(`item`),style:{display:`flex`,alignItems:`center`,gap:8,minWidth:0},children:[r>0&&(0,G.jsx)(`span`,{...q(`separator`),style:{opacity:.4},"aria-hidden":!0,children:t}),i||!n.href?(0,G.jsx)(`span`,{...q(`crumb`,i&&`crumb-current`),style:{fontWeight:i?600:400,opacity:i?1:.7},"aria-current":i?`page`:void 0,children:n.label}):(0,G.jsx)(`a`,{...q(`crumb`),href:n.href,style:{color:`inherit`,opacity:.7,textDecoration:`none`},children:n.label})]},r)})})}):null}function Oa({pages:e=5,current:t=1,prevNext:n=!0,href:r=`#`,source:i,pageSize:a=6,align:o,hideEmpty:s,inert:c,style:u,nodeRef:d}){let{tenant:f,apiUrl:p,revision:m}=(0,l.useContext)(K),h=(0,l.useContext)(Hn),[g,_]=(0,l.useState)(null),v=i?Number(h?.[`${i}:total`]):NaN;(0,l.useEffect)(()=>{if(!i||Number.isFinite(v))return;let e=!0,t=i.startsWith(`api:`)?`${p}/data/${encodeURIComponent(i.slice(4))}`:`${p}/dynamic/${encodeURIComponent(i)}?limit=1`;return fetch(t,{headers:f?{"x-tenant":f}:{}}).then(e=>e.json()).then(t=>{if(!e)return;let n=t?.payload,r=Array.isArray(n)?n.length:Number(n?.total?.filtered??n?.total?.all??(Array.isArray(n?.data)?n.data.length:0));_(Number.isFinite(r)?r:0)}).catch(()=>e&&_(0)),()=>{e=!1}},[m,i,f,p,v]);let y=Math.max(1,Number(a)||6),b=Number.isFinite(v)?v:g;if(i&&b===null||i&&s&&!(b>0))return null;let x=Math.min(Math.max(i?Math.ceil(b/y):Number(e)||1,1),50),S=Math.min(Math.max(i?Un(h):Number(t)||1,1),x),C=e=>{if(i){if(typeof window<`u`){let t=new URLSearchParams(window.location.search);return t.set(`page`,String(e)),`?${t.toString()}`}return`?page=${e}`}return r&&r!==`#`?r.replace(`{page}`,String(e)):`#`},w=o===`center`?`center`:o===`right`?`flex-end`:`flex-start`,T=c?e=>e.preventDefault():void 0,E=e=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minWidth:36,height:36,padding:`0 8px`,borderRadius:8,fontSize:14,textDecoration:`none`,color:e?`var(--page-accent-text, #ffffff)`:`inherit`,background:e?`var(--page-accent, #111827)`:`transparent`,border:e?`1px solid transparent`:`1px solid rgba(148, 163, 184, 0.4)`});return(0,G.jsxs)(`nav`,{ref:d,"aria-label":`Pagination`,style:{display:`flex`,flexWrap:`wrap`,gap:8,alignItems:`center`,justifyContent:w,...z(u)},children:[n&&(0,G.jsx)(`a`,{...q(`page`,`page-arrow`),href:S>1?C(S-1):`#`,onClick:T,"aria-label":`Previous`,style:{...E(!1),opacity:S>1?1:.4},children:`‹`}),Array.from({length:x},(e,t)=>t+1).map(e=>(0,G.jsx)(`a`,{...q(`page`,e===S&&`page-active`),href:C(e),onClick:T,"aria-current":e===S?`page`:void 0,style:E(e===S),children:e},e)),n&&(0,G.jsx)(`a`,{...q(`page`,`page-arrow`),href:S<x?C(S+1):`#`,onClick:T,"aria-label":`Next`,style:{...E(!1),opacity:S<x?1:.4},children:`›`})]})}var ka=`webim.page_mode`,Aa=()=>{if(typeof window>`u`)return`auto`;try{let e=window.localStorage.getItem(ka);return e===`light`||e===`dark`?e:`auto`}catch{return`auto`}},ja=e=>{let t={width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0};return e===`light`?(0,G.jsxs)(`svg`,{...t,children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,G.jsx)(`path`,{d:`M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4`})]}):e===`dark`?(0,G.jsx)(`svg`,{...t,children:(0,G.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})}):(0,G.jsxs)(`svg`,{...t,children:[(0,G.jsx)(`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`}),(0,G.jsx)(`path`,{d:`M8 21h8M12 17v4`})]})},Ma={light:`Light theme`,dark:`Dark theme`,auto:`Follow the device theme`};function Na({variant:e,showSystem:t,style:n,nodeRef:r,inert:i}){let[a,o]=(0,l.useState)(i?`auto`:Aa),s=(0,l.useRef)(null),c=e=>{s.current=e,typeof r==`function`&&r(e)};(0,l.useEffect)(()=>{if(i)return;let e=s.current?.closest?.(`.webim-page`);e&&(a===`light`||a===`dark`?e.setAttribute(`data-webim-mode`,a):e.removeAttribute(`data-webim-mode`));try{a===`auto`?window.localStorage.removeItem(ka):window.localStorage.setItem(ka,a)}catch{}},[a,i]);let u=t===!1?[`light`,`dark`]:[`light`,`dark`,`auto`],d=u.includes(a)?a:u[0],f={appearance:`none`,border:0,margin:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,background:`transparent`,color:`inherit`,font:`inherit`,cursor:i?`default`:`pointer`,borderRadius:999};if(e===`buttons`)return(0,G.jsx)(`div`,{ref:c,role:`group`,"aria-label":`Theme`,style:{display:`inline-flex`,alignItems:`center`,gap:2,padding:3,borderRadius:999,border:`1px solid rgba(148, 163, 184, 0.4)`,...z(n)},children:u.map(e=>(0,G.jsx)(`button`,{...q(`option`,e===d&&`option-active`),type:`button`,title:Ma[e],"aria-label":Ma[e],"aria-pressed":e===d,onClick:i?void 0:()=>o(e),style:{...f,width:28,height:28,color:e===d?`var(--page-accent-text, #ffffff)`:`inherit`,background:e===d?`var(--page-accent, #111827)`:`transparent`,opacity:e===d?1:.7},children:ja(e)},e))});let p=u[(u.indexOf(d)+1)%u.length];return(0,G.jsx)(`button`,{ref:c,type:`button`,title:Ma[d],"aria-label":`Theme: ${Ma[d]} — switch to ${Ma[p]}`,onClick:i?void 0:()=>o(p),style:{...f,width:36,height:36,border:`1px solid rgba(148, 163, 184, 0.4)`,...z(n)},children:ja(d)})}function Pa(e){let t=e?.parentElement;for(;t&&t!==document.body;){let e=getComputedStyle(t).overflowY;if((e===`auto`||e===`scroll`)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}var Fa=e=>e===window?window.scrollY:e.scrollTop,Ia={"bottom-right":e=>({right:e,bottom:e}),"bottom-left":e=>({left:e,bottom:e}),"bottom-center":e=>({left:`50%`,bottom:e,transform:`translateX(-50%)`})},La={linear:e=>e,out:e=>1-(1-e)**3,inout:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2},Ra=e=>{let t=e.getBoundingClientRect(),n=e.parentElement;for(;n&&n!==document.body;){let e=getComputedStyle(n);if(/(auto|scroll)/.test(e.overflowY)&&n.scrollHeight>n.clientHeight)break;n=n.parentElement}return!n||n===document.body?Math.max(document.documentElement.scrollHeight-(t.bottom+window.scrollY),0):Math.max(n.scrollHeight-(t.bottom-n.getBoundingClientRect().top+n.scrollTop),0)},za=(e,t)=>{let n=typeof e==`number`?e:parseFloat(e);return Number.isFinite(n)?n:t};function Ba(e,{locale:t,decimals:n=0,separator:r=`auto`}={}){let i=Math.min(Math.max(Math.round(za(n,0)),0),6);try{return new Intl.NumberFormat(t||void 0,{minimumFractionDigits:i,maximumFractionDigits:i,useGrouping:r!==`none`}).format(e)}catch{return e.toFixed(i)}}function Va({from:e,to:t,duration:n,delay:r,decimals:i,prefix:a,suffix:o,separator:s,easing:c,trigger:u,offset:d,once:f,label:p,align:m,style:h,nodeRef:g,inert:_}){let{locale:v}=(0,l.useContext)(K),y=Math.max(za(d,0),0),b=za(e,0),x=za(t,100),[S,C]=(0,l.useState)(x),w=(0,l.useRef)(null),[T,E]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=w.current;if(_||!T||!e){C(x);return}C(b);let t=Math.max(za(n,2e3),0),i=Math.max(za(r,0),0),a=La[c]||La.out,o=typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,s=0,l=0,d=!1,p=()=>{if(cancelAnimationFrame(s),clearTimeout(l),o||t===0){C(x);return}l=setTimeout(()=>{let e=performance.now(),n=r=>{let i=Math.min((r-e)/t,1);C(b+(x-b)*a(i)),i<1&&(s=requestAnimationFrame(n))};s=requestAnimationFrame(n)},i)};if(u===`load`||typeof IntersectionObserver>`u`)return p(),()=>{cancelAnimationFrame(s),clearTimeout(l)};let m=new IntersectionObserver(e=>{let t=e.some(e=>e.isIntersecting);t&&(!d||f===!1)?(d=!0,p()):!t&&f===!1&&(cancelAnimationFrame(s),clearTimeout(l),C(b))},{rootMargin:`0px 0px -${Math.min(y,Math.floor(Ra(e)))}px 0px`,threshold:y>0?0:.3});return m.observe(e),()=>{m.disconnect(),cancelAnimationFrame(s),clearTimeout(l)}},[T,_,b,x,n,r,c,u,y,f]),(0,G.jsxs)(`div`,{ref:e=>{w.current=e,e&&E(!0),typeof g==`function`&&g(e)},"data-wb-counter":``,style:{display:`flex`,flexDirection:`column`,alignItems:m===`left`?`flex-start`:m===`right`?`flex-end`:`center`,gap:4,fontSize:48,fontWeight:700,lineHeight:1.1,textAlign:m===`left`?`left`:m===`right`?`right`:`center`,...z(h)},children:[(0,G.jsxs)(`span`,{...q(`number`),style:{fontVariantNumeric:`tabular-nums`,whiteSpace:`nowrap`},children:[a||``,Ba(S,{locale:v,decimals:i,separator:s}),o||``]}),p?(0,G.jsx)(`span`,{...q(`label`),style:{fontSize:`0.3em`,fontWeight:400,lineHeight:1.4,opacity:.72},children:p}):null]})}function Ha({variant:e,label:t,position:n,offset:r,showAfter:i,smooth:a,bg:o,fg:s,style:c,nodeRef:u,inert:d,frame:f,builder:p}){let[m,h]=(0,l.useState)(!!d),[g,_]=(0,l.useState)(null),v=e=>{_(e),typeof u==`function`&&u(e)};(0,l.useEffect)(()=>{if(d){h(!0);return}if(!g)return;let e=Number(i)>=0?Number(i):300,t=()=>{let t=Pa(g),n=p&&!(t===window?document.documentElement.scrollHeight>window.innerHeight:t.scrollHeight>t.clientHeight);h(n||Fa(t)>e)};return t(),document.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>document.removeEventListener(`scroll`,t,{capture:!0})},[d,g,i,p]);let y=()=>{if(d)return;let e=Pa(g),t=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,n=a===!1||t?`auto`:`smooth`;e===window?window.scrollTo({top:0,behavior:n}):e.scrollTo({top:0,behavior:n})},b=Number(r)>=0?Number(r):24,x=e===`pill`,S=t||`Top`,C=Ia[n]?n:`bottom-right`,w=f?{position:`fixed`,zIndex:5,bottom:(f.bottom??0)+b,...C===`bottom-left`?{left:(f.left??0)+b}:null,...C===`bottom-right`?{right:(f.right??0)+b}:null,...C===`bottom-center`?{left:(f.left??0)+(f.width??0)/2,transform:`translateX(-50%)`}:null}:{position:`fixed`,zIndex:2147482e3,...Ia[C](b)};return(0,G.jsxs)(`button`,{ref:v,type:`button`,title:S,"aria-label":S,"aria-hidden":!m,tabIndex:m?0:-1,onClick:y,style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:x?8:0,appearance:`none`,font:`inherit`,fontSize:14,fontWeight:600,width:x?`auto`:44,height:44,padding:x?`0 18px`:0,borderRadius:999,border:`1px solid transparent`,background:o||`var(--page-accent, #111827)`,color:s||`var(--page-accent-text, #ffffff)`,boxShadow:`0 6px 20px rgba(15, 23, 42, 0.25)`,cursor:d?`default`:`pointer`,opacity:+!!m,pointerEvents:m?`auto`:`none`,transition:`opacity 160ms ease, transform 160ms ease`,...w,...z(c),...w.transform?{transform:w.transform}:null},children:[(0,G.jsx)(`svg`,{...q(`icon`),width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:`M12 19V5M12 5l-7 7M12 5l7 7`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}),x?(0,G.jsx)(`span`,{...q(`label`),children:S}):null]})}var Ua={facebook:{label:`Facebook`,color:`#1877f2`,d:`M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z`},instagram:{label:`Instagram`,color:`#e4405f`,d:`M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06zm0 5.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z`},x:{label:`X (Twitter)`,color:`#000000`,d:`M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z`},linkedin:{label:`LinkedIn`,color:`#0a66c2`,d:`M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z`},youtube:{label:`YouTube`,color:`#ff0000`,d:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},tiktok:{label:`TikTok`,color:`#000000`,d:`M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z`},whatsapp:{label:`WhatsApp`,color:`#25d366`,d:`M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z`},telegram:{label:`Telegram`,color:`#26a5e4`,d:`M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z`},pinterest:{label:`Pinterest`,color:`#bd081c`,d:`M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.03-.655 2.569-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z`},github:{label:`GitHub`,color:`#181717`,d:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`},discord:{label:`Discord`,color:`#5865f2`,d:`M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.058a.082.082 0 00.031.056 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.873-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.009c.12.099.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.331c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z`},email:{label:`E-mail`,color:`#64748b`,d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z`},website:{label:`Website`,color:`#64748b`,d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z`}};function Wa({links:e=[],variant:t,color:n,size:r,gap:i,newTab:a,style:o,nodeRef:s,inert:c}){let l=Array.isArray(e)?e.filter(e=>e&&Ua[e.network]):[];if(!l.length)return null;let u=Math.min(Math.max(Number(r)||18,10),64),d=Math.round(u*1.9),f=Number.isFinite(Number(i))?Number(i):10,p=e=>n===`accent`?`var(--page-accent, #111827)`:n===`inherit`?`currentColor`:e.color,m=c?e=>e.preventDefault():void 0;return(0,G.jsx)(`div`,{ref:s,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:f,...z(o)},children:l.map((e,r)=>{let i=Ua[e.network],o=t!==`outline`&&t!==`plain`,s=o?n===`accent`?`var(--page-accent-text, #ffffff)`:n===`inherit`?`var(--page-bg, #ffffff)`:`#ffffff`:p(i);return(0,G.jsx)(`a`,{...q(`link`,/^[a-z]+$/.test(e.network??``)&&`link-${e.network}`),href:e.url||`#`,onClick:m,"aria-label":e.label||i.label,title:e.label||i.label,...a!==!1&&!c?{target:`_blank`,rel:`noopener noreferrer`}:{},style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:t===`plain`?u:d,height:t===`plain`?u:d,borderRadius:`50%`,background:o?p(i):`transparent`,border:t===`outline`?`1px solid ${p(i)}`:`none`,color:`inherit`,textDecoration:`none`},children:(0,G.jsx)(`svg`,{...q(`icon`),width:u,height:u,viewBox:`0 0 24 24`,fill:s,"aria-hidden":!0,children:(0,G.jsx)(`path`,{d:i.d})})},`${e.network}-${r}`)})})}function Ga({steps:e=[],active:t=1,vertical:n=!1,style:r,nodeRef:i}){if(!e.length)return null;let a=Math.min(Math.max(Number(t)||1,1),e.length),o=e=>({width:32,height:32,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:14,fontWeight:600,flexShrink:0,color:e===`todo`?`inherit`:`var(--page-accent-text, #ffffff)`,background:e===`todo`?`transparent`:`var(--page-accent, #111827)`,border:e===`todo`?`1px solid rgba(148, 163, 184, 0.5)`:`1px solid transparent`,opacity:e===`todo`?.6:1,boxShadow:e===`active`?`0 0 0 4px rgba(99, 102, 241, 0.2)`:`none`}),s=e=>({flexGrow:1,alignSelf:`center`,background:e?`var(--page-accent, #111827)`:`rgba(148, 163, 184, 0.4)`,...n?{width:2,minHeight:24,marginLeft:15,alignSelf:`auto`}:{height:2,minWidth:24}});return(0,G.jsx)(`div`,{ref:i,style:{display:`flex`,flexDirection:n?`column`:`row`,alignItems:n?`stretch`:`flex-start`,gap:n?4:8,...z(r)},children:e.map((e,t)=>{let r=t+1,i=r<a?`done`:r===a?`active`:`todo`;return(0,G.jsxs)(l.Fragment,{children:[t>0&&(0,G.jsx)(`div`,{...q(`step-line`,r<=a&&`step-line-done`),style:s(r<=a),"aria-hidden":!0}),(0,G.jsxs)(`div`,{...q(`step`,`step-${i}`),style:{display:`flex`,flexDirection:n?`row`:`column`,alignItems:`center`,gap:8,minWidth:0,textAlign:n?`left`:`center`},children:[(0,G.jsx)(`div`,{...q(`step-circle`,`step-circle-${i}`),style:o(i),children:i===`done`?`✓`:r}),(0,G.jsxs)(`div`,{style:{minWidth:0},children:[(0,G.jsx)(`div`,{...q(`step-label`,`step-label-${i}`),style:{fontSize:13,fontWeight:i===`active`?700:500,opacity:i===`todo`?.6:1},children:e.label}),e.description&&(0,G.jsx)(`div`,{...q(`step-description`),style:{fontSize:12,opacity:.6},children:e.description})]})]})]},t)})})}var Ka={small:{w:132,h:46,name:11.5,title:10,avatar:28},medium:{w:168,h:56,name:13,title:11,avatar:36},large:{w:210,h:70,name:15.5,title:12.5,avatar:46}},qa=e=>Ka[e]??Ka.medium;Ka.medium.w,Ka.medium.h;var Ja=e=>String(e?.group??``).trim(),Ya=e=>{let t=[],n=new Map;return e.forEach((e,r)=>{let i=Ja(e)||`#${r}`;n.has(i)||(n.set(i,[]),t.push(i)),n.get(i).push(e)}),t.flatMap(e=>n.get(e))},Xa=20,Za=12,Qa=[`left`,`center`,`right`],$a=e=>e.points.map((e,t)=>`${t?`L`:`M`} ${e.x} ${e.y}`).join(` `);function eo(e,{size:t=`medium`,horizontal:n=!1,groupTitles:r=`top`,columns:i=`off`}={}){let a=qa(t),o=n?a.h:a.w,s=n?16:20,c=(n?a.w:a.h)+(n?56:48),l=Array.isArray(e)?e.filter(e=>e&&e.id):[],u=new Set(l.map(e=>e.id)),d=new Map,f=[];for(let e of l)e.parent&&u.has(e.parent)&&e.parent!==e.id?(d.has(e.parent)||d.set(e.parent,[]),d.get(e.parent).push(e)):f.push(e);f=Ya(f);for(let[e,t]of d)d.set(e,Ya(t));let p=!n&&Qa.includes(i),m=e=>Qa.includes(e?.columns)?e.columns:i,h=e=>{let t=d.get(e.id)??[];if(!p)return t.map(e=>({nodes:[e]}));let n=[],r=[],i=()=>{r.length>1?n.push({nodes:r,line:m(e)}):r.forEach(e=>n.push({nodes:[e]})),r=[]};for(let e of t){let t=!(d.get(e.id)??[]).length;r.length&&(!t||Ja(r[0])!==Ja(e))&&i(),t?r.push(e):n.push({nodes:[e]})}return i(),n},g=(e,t)=>s+(Ja(e)!==Ja(t)&&(Ja(e)||Ja(t))?24:0),_=(e,t)=>g(e.nodes.at(-1),t.nodes[0]),v=e=>o+(e.line===`center`?0:Xa),y=new Map,b=(e,t)=>{if(t.has(e.id))return 0;t.add(e.id);let n=h(e),r=n.reduce((e,r,i)=>{let a=r.line?v(r):b(r.nodes[0],t);return r.line&&r.nodes.forEach(e=>t.add(e.id)),e+a+(i?_(n[i-1],r):0)},0),i=Math.max(o,r);return y.set(e.id,i),i};f.forEach(e=>b(e,new Set));let x=[],S=[],C=new Map,w=0,T=(e,t,r)=>{x.push({node:e,x:t,y:r});let i=Ja(e);if(i){let n=`${e.parent&&u.has(e.parent)&&e.parent!==e.id?e.parent:``}|${i}`;C.has(n)||C.set(n,{title:i,color:``,members:[]});let a=C.get(n);!a.color&&e.groupColor&&(a.color=e.groupColor),a.members.push({x:t,y:r})}w=Math.max(w,n?t+a.w:r+a.h)},E=(e,t,n,r)=>{let i=t+(e.line===`left`?Xa:0),o=n*c,s=r.y+(o-r.y)/2,l=e.line===`left`?i-Xa/2:i+a.w+Xa/2;e.nodes.forEach((t,n)=>{let c=o+n*(a.h+Za),u=c+a.h/2;if(T(t,i,c),e.line===`center`)S.push(n?{points:[{x:i+a.w/2,y:c-Za},{x:i+a.w/2,y:c}]}:{points:[r,{x:r.x,y:s},{x:i+a.w/2,y:s},{x:i+a.w/2,y:c}]});else{let t=e.line===`left`?i:i+a.w;S.push({points:[r,{x:r.x,y:s},{x:l,y:s},{x:l,y:u},{x:t,y:u}]})}})},D=(e,t,r,i)=>{if(i.has(e.id))return;i.add(e.id);let s=t+((y.get(e.id)??o)-o)/2,l=r*c;T(e,n?l:s,n?s:l);let u=t,d=h(e),f=n?{x:l+a.w,y:s+a.h/2}:{x:s+a.w/2,y:l+a.h};d.forEach((e,t)=>{if(t&&(u+=_(d[t-1],e)),e.line){E(e,u,r+1,f),e.nodes.forEach(e=>i.add(e.id)),u+=v(e);return}let a=e.nodes[0],s=u+((y.get(a.id)??o)-o)/2+o/2,l=(r+1)*c;S.push({points:n?[f,{x:(f.x+l)/2,y:f.y},{x:(f.x+l)/2,y:s},{x:l,y:s}]:[f,{x:f.x,y:(f.y+l)/2},{x:s,y:(f.y+l)/2},{x:s,y:l}]}),D(a,u,r+1,i),u+=y.get(a.id)??o})},O=0,k=new Set;f.forEach((e,t)=>{t&&(O+=g(f[t-1],e)),D(e,O,0,k),O+=y.get(e.id)??o});let A=Math.max(O,o),j=r===`hidden`?0:22,M=[...C.values()].map(e=>{let t=Math.min(...e.members.map(e=>e.x))-12,n=Math.max(...e.members.map(e=>e.x))+a.w+12,i=Math.min(...e.members.map(e=>e.y))-12-(r===`bottom`?0:j),o=Math.max(...e.members.map(e=>e.y))+a.h+12+(r===`bottom`?j:0);return{x:t,y:i,width:n-t,height:o-i,title:e.title,color:e.color}}),N=n?Math.max(w,a.w):A,P=n?A:Math.max(w,a.h),F=Math.max(0,...M.map(e=>-e.x)),I=Math.max(0,...M.map(e=>-e.y));if(M.length&&(N=Math.max(N,...M.map(e=>e.x+e.width))+F,P=Math.max(P,...M.map(e=>e.y+e.height))+I,F||I)){for(let e of x)e.x+=F,e.y+=I;for(let e of S)e.points=e.points.map(e=>({x:e.x+F,y:e.y+I}));for(let e of M)e.x+=F,e.y+=I}return{boxes:x,links:S,groups:M,width:N,height:P,horizontal:n}}var to=(e,t)=>{let n=String(e??``);return n.length>t?`${n.slice(0,t-1)}…`:n},no=e=>{let t=/^#([0-9a-f]{6}|[0-9a-f]{3})$/i.exec(String(e??``).trim());if(!t)return`#ffffff`;let n=t[1];n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=parseInt(n,16);return .299*(r>>16&255)+.587*(r>>8&255)+.114*(r&255)>150?`#111827`:`#ffffff`},ro=e=>!!(e?.cv?.trim?.()||e?.photo||e?.profilePhoto||e?.profile?.length);function Y(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],r=e=>Array.isArray(e)?e[0]:e,i=e=>e==null?``:rr(e);return n.map(e=>{let n=e.data??{},a=r(n[t.parentField]),o=a&&typeof a==`object`?a.id??null:a||null;return{id:e.id,name:i(n[t.nameField||`name`])||i(n.name)||`Untitled`,title:t.titleField?i(n[t.titleField]):``,photo:t.photoField&&r(n[t.photoField])||``,parent:t.parentField?o:null,cv:t.cvField?i(n[t.cvField]):``,href:t.hrefField?i(n[t.hrefField]):``,group:t.groupField?i(n[t.groupField]):``}})}var io=/^(https?:\/\/[^\s"<>]+|mailto:[^\s"<>]+|tel:[+\d][\d\s().-]*|\/(?!\/)[^\s"<>]*)$/i,ao=e=>{let t=String(e??``).trim();return io.test(t)?t:``},oo=e=>{e.startsWith(`/`)?window.location.assign(e):window.open(e,`_blank`,`noopener,noreferrer`)},so={size:36,pad:10};function co({node:e,onClose:t}){(0,l.useEffect)(()=>{let e=e=>e.key===`Escape`&&t();return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t]);let n=e.profile?.length?e.profile:null,r=n?``:e.profilePhoto||e.photo,i=e.title||e.name,a=e.title&&e.name?e.name:``,o=!!(n||r&&e.cv),s=ao(e.href);return(0,G.jsx)(`div`,{onClick:t,role:`dialog`,"aria-modal":`true`,"aria-label":i,style:{position:`fixed`,inset:0,zIndex:1e3,background:`rgba(2, 6, 23, 0.6)`,backdropFilter:`blur(4px)`,WebkitBackdropFilter:`blur(4px)`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:16},children:(0,G.jsxs)(`div`,{onClick:e=>e.stopPropagation(),style:{background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,border:`1px solid rgba(148, 163, 184, 0.35)`,borderRadius:14,maxWidth:o?900:440,width:`100%`,maxHeight:`85vh`,display:`flex`,flexDirection:`column`,overflow:`hidden`,boxShadow:`0 24px 64px rgba(2, 6, 23, 0.5)`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,gap:12,padding:`18px 20px 14px 24px`,borderBottom:`1px solid rgba(148, 163, 184, 0.3)`},children:[(0,G.jsxs)(`div`,{style:{flex:1,minWidth:0},children:[(0,G.jsx)(`div`,{style:{fontSize:18,fontWeight:700,lineHeight:1.35},children:i}),a&&(0,G.jsx)(`div`,{style:{fontSize:14,opacity:.7,marginTop:2},children:a})]}),(0,G.jsx)(`button`,{type:`button`,"aria-label":`Close`,onClick:t,style:{flexShrink:0,width:32,height:32,border:0,borderRadius:8,background:`transparent`,color:`inherit`,fontSize:20,lineHeight:1,cursor:`pointer`,opacity:.6},children:`×`})]}),(0,G.jsxs)(`div`,{style:{overflowY:`auto`,padding:24,display:`flex`,flexWrap:`wrap`,gap:24,alignItems:`flex-start`},children:[r&&(0,G.jsx)(`img`,{src:r,alt:e.name||i,style:o?{flex:`1 1 220px`,maxWidth:340,width:`100%`,height:`auto`,borderRadius:10,objectFit:`cover`}:{width:96,height:96,borderRadius:`50%`,objectFit:`cover`}}),(n||e.cv||s)&&(0,G.jsxs)(`div`,{style:{flex:`2 1 320px`,minWidth:0},children:[n&&(0,G.jsx)(`div`,{style:{display:`flow-root`,marginBottom:s?12:0},children:Br(n)}),!n&&e.cv&&String(e.cv).split(/\n+/).map((e,t)=>(0,G.jsx)(`p`,{style:{fontSize:15,lineHeight:1.65,margin:`0 0 12px`},children:e},t)),s&&(0,G.jsx)(`a`,{href:s,target:`_blank`,rel:`noopener noreferrer`,style:{display:`inline-block`,marginTop:6,padding:`8px 14px`,borderRadius:8,fontSize:13,fontWeight:600,textDecoration:`none`,background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`},children:`Open profile ↗`})]})]})]})})}function lo(e){return e.chart?.people?.length?(0,G.jsx)(uo,{...e}):(0,G.jsx)(fo,{...e})}function uo({chart:e,profiles:t,style:n,nodeRef:r,interactive:i=!0}){let[a,o]=(0,l.useState)(null),s=(0,l.useMemo)(()=>vn(e),[e]),c=(0,l.useMemo)(()=>new Set(e.people.map(e=>e.parent)),[e]);return(0,G.jsxs)(`div`,{ref:r,style:{maxWidth:`100%`,overflowX:`auto`,...z(n)},children:[(0,G.jsxs)(`svg`,{viewBox:`0 0 ${s.width} ${s.height}`,role:`img`,"aria-label":`Organization chart`,style:{display:`block`,width:`100%`,maxWidth:s.width,height:`auto`,margin:`0 auto`},children:[s.frames.map(({person:e,x:t,y:n,width:r,height:i})=>(0,G.jsx)(`foreignObject`,{x:t,y:n,width:r,height:i,children:(0,G.jsx)(`div`,{style:{width:`100%`,height:`100%`},dangerouslySetInnerHTML:{__html:Bn(e,c.has(e.id))}})},e.id)),s.links.map((e,t)=>(0,G.jsx)(`path`,{d:Tn(e),fill:`none`,stroke:Mn.line,strokeWidth:`1.5`},t)),s.cards.map(({person:n,x:r,y:a,width:c,height:l})=>{let u=Array.isArray(t?.[n.id])&&t[n.id].length?t[n.id]:null,d={id:n.id,name:n.name,title:n.title,cv:n.description,photo:n.photo,profilePhoto:n.photo,href:n.link,profile:u},f=ao(n.link),p=i&&(f||ro(d)),m=()=>f?oo(f):o(d);return(0,G.jsx)(`g`,{onClick:p?m:void 0,onKeyDown:p?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),m())}:void 0,tabIndex:p?0:void 0,style:p?{cursor:`pointer`}:void 0,role:p?f?`link`:`button`:void 0,"aria-label":p?f?`${n.name||n.title} — open link`:`Open ${n.name||n.title}'s profile`:void 0,children:(0,G.jsx)(`foreignObject`,{x:r,y:a,width:c,height:l,children:(0,G.jsx)(`div`,{style:{width:`100%`,height:`100%`},dangerouslySetInnerHTML:{__html:zn(n,e,s.size,Mn)}})})},n.id)})]}),a&&(0,G.jsx)(co,{node:a,onClose:()=>o(null)})]})}function fo({nodes:e=[],source:t,nameField:n,titleField:r,photoField:i,parentField:a,cvField:o,hrefField:s,groupField:c,groupTitles:u=`top`,groupBg:d=``,size:f=`medium`,horizontal:p=!1,columns:m=`off`,style:h,nodeRef:g,interactive:_=!0}){let v=(0,l.useId)(),[y,b]=(0,l.useState)(null),{tenant:x,apiUrl:S,revision:C}=(0,l.useContext)(K),w=(0,l.useContext)(Hn)?.[t],[T,E]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(!t||w)return;let e=!0;return fetch(`${S}/dynamic/${encodeURIComponent(t)}`,{headers:x?{"x-tenant":x}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&E(n)}).catch(()=>e&&E([])),()=>{e=!1}},[C,t,x,S,w]);let D=t?Y(w??T??[],{nameField:n,titleField:r,photoField:i,parentField:a,cvField:o,hrefField:s,groupField:c}):e,O=qa(f),{boxes:k,links:A,groups:j,width:M,height:N}=eo(D,{size:f,horizontal:p,groupTitles:u,columns:m});if(!k.length)return!_&&t?(0,G.jsxs)(`div`,{ref:g,style:{padding:18,border:`1px dashed rgba(148, 163, 184, 0.6)`,borderRadius:10,fontSize:13,opacity:.7,textAlign:`center`,...z(h)},children:[`Org Chart — no published entries in “`,t,`” yet`]}):null;let P=new Set(k.filter(e=>e.node.parent==null||e.node.parent===``).map(e=>e.node.id));return(0,G.jsxs)(`div`,{ref:g,style:{maxWidth:`100%`,overflowX:`auto`,...z(h)},children:[(0,G.jsxs)(`svg`,{viewBox:`0 0 ${M} ${N}`,role:`img`,"aria-label":`Organization chart`,style:{display:`block`,width:`100%`,maxWidth:M,height:`auto`,margin:`0 auto`},children:[j.map((e,t)=>{let n=e.color||d||`rgba(148, 163, 184, 0.16)`,r=!!(e.color||d);return(0,G.jsxs)(`g`,{children:[(0,G.jsx)(`rect`,{x:e.x,y:e.y,width:e.width,height:e.height,rx:`16`,fill:n}),u!==`hidden`&&e.title&&(0,G.jsx)(`text`,{x:e.x+e.width/2,y:u===`bottom`?e.y+e.height-22*.42:e.y+22*.78,textAnchor:`middle`,fontSize:O.title+1,fontWeight:`600`,opacity:`0.55`,fill:r?no(e.color||d):`var(--page-text, #111827)`,children:to(e.title,Math.floor(e.width/7))})]},`group-${t}`)}),A.map((e,t)=>(0,G.jsx)(`path`,{d:$a(e),fill:`none`,stroke:`rgba(148, 163, 184, 0.7)`,strokeWidth:`1.5`},t)),k.map(({node:e,x:t,y:n})=>{let r=P.has(e.id),i=!!e.color2,a=!!e.color||r||i,o=e.color||(r?`var(--page-accent, #4f46e5)`:`var(--page-bg, #ffffff)`),s=e.color?no(e.color):r?`var(--page-accent-text, #ffffff)`:`var(--page-text, #111827)`,c=i?no(e.color2):s,l=ao(e.href),u=_&&(l||ro(e)),d=()=>l?oo(l):b(e),f=e.photo?t+so.pad+O.avatar+8:t+O.w/2,p=e.photo?`start`:`middle`,m=e.photo?Math.floor((O.w-O.avatar-26)/7):Math.floor(O.w/7.6),h=O.h/2,g=[e.name,e.title].map(e=>String(e??``).trim()).filter(Boolean);return(0,G.jsxs)(`g`,{onClick:u?d:void 0,onKeyDown:u?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),d())}:void 0,tabIndex:u?0:void 0,style:u?{cursor:`pointer`}:void 0,role:u?l?`link`:`button`:void 0,"aria-label":u?l?`${e.name||e.title} — open link`:`Open ${e.name||e.title}'s profile`:void 0,children:[i&&e.gradient?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`linearGradient`,{id:`${v}-${e.id}-grad`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,G.jsx)(`stop`,{offset:`0%`,stopColor:e.color||`var(--page-accent, #4f46e5)`}),(0,G.jsx)(`stop`,{offset:`100%`,stopColor:e.color2})]}),(0,G.jsx)(`rect`,{x:t,y:n,width:O.w,height:O.h,rx:`10`,fill:`url(#${v}-${e.id}-grad)`})]}):i?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`clipPath`,{id:`${v}-${e.id}-box`,children:(0,G.jsx)(`rect`,{x:t,y:n,width:O.w,height:O.h,rx:`10`})}),(0,G.jsxs)(`g`,{clipPath:`url(#${v}-${e.id}-box)`,children:[(0,G.jsx)(`rect`,{x:t,y:n,width:O.w,height:h,fill:o}),(0,G.jsx)(`rect`,{x:t,y:n+h,width:O.w,height:O.h-h,fill:e.color2})]})]}):(0,G.jsx)(`rect`,{x:t,y:n,width:O.w,height:O.h,rx:`10`,fill:o,stroke:a?`none`:`var(--page-accent, #4f46e5)`,strokeWidth:a?0:1.5}),e.photo&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`clipPath`,{id:`${v}-${e.id}`,children:(0,G.jsx)(`circle`,{cx:t+so.pad+O.avatar/2,cy:n+O.h/2,r:O.avatar/2})}),(0,G.jsx)(`image`,{href:e.photo,x:t+so.pad,y:n+(O.h-O.avatar)/2,width:O.avatar,height:O.avatar,preserveAspectRatio:`xMidYMid slice`,clipPath:`url(#${v}-${e.id})`})]}),i&&!e.gradient?(0,G.jsxs)(G.Fragment,{children:[e.title&&(0,G.jsx)(`text`,{x:f,y:n+h/2+O.title*.35,textAnchor:p,fontSize:O.title,fontWeight:`600`,fill:s,children:to(e.title,m+4)}),e.name&&(0,G.jsx)(`text`,{x:f,y:n+h+h/2+O.name*.35,textAnchor:p,fontSize:O.name,fontWeight:`600`,fill:c,children:to(e.name,m)})]}):(0,G.jsxs)(G.Fragment,{children:[g[0]&&(0,G.jsx)(`text`,{x:f,y:n+(g[1]?O.h*.43:O.h*.57),textAnchor:p,fontSize:O.name,fontWeight:`600`,fill:s,children:to(g[0],m)}),g[1]&&(0,G.jsx)(`text`,{x:f,y:n+O.h*.73,textAnchor:p,fontSize:O.title,opacity:`0.7`,fill:s,children:to(g[1],m+4)})]})]},e.id)})]}),y&&(0,G.jsx)(co,{node:y,onClose:()=>b(null)})]})}function po({value:e,onCommit:t,style:n,hint:r}){let[i,a]=(0,l.useState)(!1),o=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!i||!o.current)return;let e=o.current,t=document.createRange();e.focus(),t.selectNodeContents(e),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)},[i]),(0,G.jsx)(`span`,{ref:o,contentEditable:i,suppressContentEditableWarning:!0,title:i?void 0:r||`Double-click to edit`,onDoubleClick:()=>a(!0),onBlur:i?e=>{a(!1),t(e.currentTarget.textContent)}:void 0,onKeyDown:i?t=>{t.stopPropagation(),t.key===`Escape`&&(t.currentTarget.textContent=e??``,t.currentTarget.blur()),t.key===`Enter`&&(t.preventDefault(),t.currentTarget.blur())}:void 0,style:{display:`block`,minHeight:`1em`,outline:`none`,cursor:i?`text`:`inherit`,...n},children:e??``})}var mo=360,ho=`
|
|
25
25
|
.wb-tedit-btn {
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
border-radius: 4px;
|
|
@@ -73,7 +73,8 @@ Error generating stack: `+e.message+`
|
|
|
73
73
|
}
|
|
74
74
|
.wb-tedit-sep { width: 1px; align-self: stretch; margin: 0 2px; background: rgba(148, 163, 184, 0.3); }
|
|
75
75
|
.wb-tedit-at { font-size: 10px; color: #94a3b8; padding-right: 2px; }
|
|
76
|
-
`,go=(e,t)=>e&&t?`cell-${e}-${t}`:``,_o=e=>{if(!e||typeof e!=`object`)return e??``;let t=String(e.text??``);return typeof e.href==`string`&&e.href?(0,W.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #4f46e5)`},children:t}):t};function vo({columns:e=[],rows:t=[],widths:n=[],rowKeys:r=[],colKeys:i=[],heights:a=[],spans:o,linked:s,source:c,limit:u=10,header:d=!0,striped:f=!0,bordered:p=!1,compact:m=!1,padX:h,padY:g,paged:_,emptyText:v,stickyHeader:y,headerBg:b,headerColor:x,headerAlign:S,borderColor:C,maxHeight:w,caption:T=``,captionHidden:E=!1,rowHeaders:D=!1,style:O,nodeRef:k,edit:A}){let j=(0,l.useRef)(null),M=(0,l.useRef)(null),[N,P]=(0,l.useState)(null),[F,I]=(0,l.useState)(null),L=(e,t)=>()=>P({r:e,c:t});(0,l.useEffect)(()=>{if(!A)return;let e=M.current,t=N&&e?.querySelector(`[data-cell="${N.r}-${N.c}"]`);if(!t){F&&I(null);return}let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={top:r.bottom-n.top+4,left:Math.max(0,Math.min(r.left-n.left,n.width-mo))};(F?.top!==i.top||F?.left!==i.left)&&I(i)}),(0,l.useEffect)(()=>{if(!A||!N)return;let e=e=>{M.current?.contains(e.target)||P(null)};return document.addEventListener(`mousedown`,e,!0),()=>document.removeEventListener(`mousedown`,e,!0)},[A,N]);let{tenant:R,apiUrl:ee,revision:te}=(0,l.useContext)(Un),B=(0,l.useContext)(Wn),V=B?.[c],H=_?Gn(B):1,[ne,re]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(!c||V)return;let e=!0,t=Math.max(1,Number(u)||10),n=_&&!c.startsWith(`api:`)?`?offset=${(H-1)*t}&limit=${t}`:``,r=c.startsWith(`api:`)?`${ee}/data/${encodeURIComponent(c.slice(4))}`:`${ee}/dynamic/${encodeURIComponent(c)}${n}`;return fetch(r,{headers:R?{"x-tenant":R}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];return e&&re(n)}).catch(()=>e&&re([])),()=>{e=!1}},[te,c,R,ee,V,_,H,u]),!e.length)return null;let ie=Math.max(1,Number(u)||10),ae=c?_?V||c.startsWith(`api:`)?(V??ne??[]).slice((H-1)*ie,H*ie):(ne??[]).slice(0,ie):(V??ne??[]).slice(0,ie):null,oe=ae?ae.map(t=>e.map(e=>ir(nr(t?.data,e.field)))):t,se=!!c&&!(c&&!V&&ne===null)&&oe.length===0,ce=m?{y:6,x:10}:{y:10,x:14},le=`${Number.isFinite(Number(g))&&g!==``?Number(g):ce.y}px ${Number.isFinite(Number(h))&&h!==``?Number(h):ce.x}px`,ue=`1px solid ${typeof C==`string`&&C?C:`rgba(148, 163, 184, 0.35)`}`,de=p?{border:ue}:{borderBottom:ue},fe=Array.isArray(n)&&n.length===e.length&&n.every(e=>Number.isFinite(e)&&e>0),pe=[`left`,`center`,`right`],me=t=>pe.includes(e[t]?.align)?e[t].align:``,he=e=>me(e)||(pe.includes(S)?S:`left`),ge=Number.isFinite(Number(w))&&Number(w)>0?Number(w):0,_e=z(O),ve=!ge&&_e&&_e.maxHeight!==void 0?_e.maxHeight:0,ye=ge||ve,be=ve?{..._e,maxHeight:void 0}:_e,xe=!!A&&A.rows!==!1,Se=t=>r=>{if(!A?.resize||t>=e.length-1)return;r.preventDefault(),r.stopPropagation();let i=j.current,a=i?i.clientWidth:0;if(!a)return;let o=fe?[...n]:e.map(()=>100/e.length),s=r.clientX,c=o[t]+o[t+1],l=e=>{let n=(e.clientX-s)/a*100,r=Math.min(c-5,Math.max(5,o[t]+n)),i=[...o];i[t]=Math.round(r*10)/10,i[t+1]=Math.round((c-r)*10)/10,A.resize(i)},u=()=>{window.removeEventListener(`pointermove`,l),window.removeEventListener(`pointerup`,u)};window.addEventListener(`pointermove`,l),window.addEventListener(`pointerup`,u)},Ce=new Set;o&&oe.forEach((t,n)=>e.forEach((e,t)=>{let a=o[go(r[n],i[t])];if(!a)return;let s=Math.max(1,Number(a.c)||1),c=Math.max(1,Number(a.r)||1);for(let e=0;e<c;e++)for(let r=0;r<s;r++)(e||r)&&Ce.add(`${n+e},${t+r}`)}));let we=e=>t=>{if(!A?.resizeRow)return;t.preventDefault(),t.stopPropagation();let n=t.currentTarget.closest(`tr`);if(!n)return;let r=t.clientY,i=n.offsetHeight,a=t=>A.resizeRow(e,Math.max(20,Math.round(i+(t.clientY-r)))),o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)},Te=(e,t,n,r)=>r?null:(0,W.jsx)(`span`,{className:`wb-tedit-btn`,role:`button`,"data-hint":t,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:n,children:e},t),Ee=N&&N.r<oe.length&&N.c<e.length?N:null,U=(e,t)=>A?.labels?.[e]??t,De=Ee?o?.[go(r[Ee.r],i[Ee.c])]:null,Oe=Math.max(1,Number(De?.c)||1),ke=Math.max(1,Number(De?.r)||1);return(0,W.jsxs)(`div`,{ref:e=>{M.current=e,typeof k==`function`&&k(e)},style:{width:`100%`,...A?{position:`relative`}:null,...be},children:[A&&(0,W.jsx)(`style`,{children:ho}),A&&Ee&&F&&(0,W.jsxs)(`div`,{className:`wb-tedit-bar`,style:{top:F.top,left:F.left},onMouseDown:e=>e.stopPropagation(),children:[(0,W.jsx)(`span`,{className:`wb-tedit-at`,children:`R${Ee.r+1}·C${Ee.c+1}`}),Te(`+↑`,U(`rowAbove`,`Insert row above`),()=>A.addRow(Ee.r-1)),Te(`+↓`,U(`rowBelow`,`Insert row below`),()=>A.addRow(Ee.r)),Te(`↑`,U(`rowUp`,`Move row up`),()=>A.moveRow(Ee.r,-1),Ee.r===0),Te(`↓`,U(`rowDown`,`Move row down`),()=>A.moveRow(Ee.r,1),Ee.r>=oe.length-1),Te(`✕ row`,U(`rowDelete`,`Delete row`),()=>A.dropRow(Ee.r),oe.length<=1),(0,W.jsx)(`span`,{className:`wb-tedit-sep`}),Te(`+←`,U(`colLeft`,`Insert column left`),()=>A.addColumn(Ee.c-1)),Te(`+→`,U(`colRight`,`Insert column right`),()=>A.addColumn(Ee.c)),Te(`←`,U(`colMoveLeft`,`Move column left`),()=>A.moveColumn(Ee.c,-1),Ee.c===0),Te(`→`,U(`colMoveRight`,`Move column right`),()=>A.moveColumn(Ee.c,1),Ee.c>=e.length-1),Te(`✕ col`,U(`colDelete`,`Delete column`),()=>A.dropColumn(Ee.c),e.length<=1),(0,W.jsx)(`span`,{className:`wb-tedit-sep`}),Te(`↔`,U(`mergeRight`,`Merge with the cell on the right`),()=>A.merge(Ee.r,Ee.c,`right`),Ee.c+Oe>=e.length),Te(`↕`,U(`mergeDown`,`Merge with the cell below`),()=>A.merge(Ee.r,Ee.c,`down`),Ee.r+ke>=oe.length),Te(`⤫`,U(`split`,`Split this cell`),()=>A.split(Ee.r,Ee.c),Oe===1&&ke===1)]}),(0,W.jsx)(`div`,{style:{width:`100%`,overflowX:`auto`,...ye?{maxHeight:ye,overflowY:`auto`}:null},children:(0,W.jsxs)(`table`,{ref:j,...G(`table`),style:{width:`100%`,borderCollapse:y&&d!==!1?`separate`:`collapse`,borderSpacing:0,fontSize:14,...fe?{tableLayout:`fixed`}:null,...p?{border:ue}:{}},children:[typeof T==`string`&&T.trim()?(0,W.jsx)(`caption`,{...G(`caption`),style:E?st:{captionSide:`top`,textAlign:`left`,fontWeight:600,fontSize:15,padding:`0 0 8px`},children:T}):null,fe&&(0,W.jsx)(`colgroup`,{children:n.map((e,t)=>(0,W.jsx)(`col`,{style:{width:`${e}%`}},t))}),d===!1?null:(0,W.jsx)(`thead`,{children:(0,W.jsx)(`tr`,{...G(`header-row`),children:e.map((t,n)=>(0,W.jsx)(`th`,{...G(`header-cell`),scope:`col`,className:A?`wb-tedit-head`:void 0,style:{textAlign:he(n),fontWeight:600,padding:le,...typeof x==`string`&&x?{color:x}:null,background:typeof b==`string`&&b?b:y?`var(--page-surface, #f2f2f2)`:`rgba(148, 163, 184, 0.12)`,...y?{position:`sticky`,top:0,zIndex:2}:A?{position:`relative`}:null,...de},children:A?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(po,{value:t.label??t,onCommit:e=>A.header(n,e),hint:U(`editCell`,`Double-click to edit`),style:{paddingRight:6}}),n<e.length-1&&(0,W.jsx)(`span`,{className:`wb-tedit-grip`,title:U(`colWidth`,`Drag to resize the column`),onPointerDown:Se(n)})]}):t.label??t},n))})}),(0,W.jsxs)(`tbody`,{children:[se&&(0,W.jsx)(`tr`,{children:(0,W.jsx)(`td`,{colSpan:e.length,...G(`empty`),style:{padding:le,textAlign:`center`,opacity:.6,...de},children:v||`No data yet`})}),oe.map((t,n)=>(0,W.jsx)(`tr`,{...G(`row`,n%2==1&&`row-alt`),className:A?`wb-tedit-row`:void 0,style:{...f&&n%2==1?{background:`rgba(148, 163, 184, 0.07)`}:null,...Number.isFinite(Number(a?.[n]))&&a[n]>0?{height:a[n]}:null},children:e.map((e,a)=>{if(Ce.has(`${n},${a}`))return null;let c=go(r[n],i[a]),l=s?.[c],u=o?.[c],d=Math.max(1,Number(u?.c)||1),f=Math.max(1,Number(u?.r)||1),p=D&&a===0?`th`:`td`;return(0,W.jsxs)(p,{...G(`cell`,p===`th`&&`row-header`),scope:p===`th`?`row`:void 0,className:A?`wb-tedit-cell${N?.r===n&&N?.c===a?` wb-tedit-cellon`:``}`:void 0,onMouseDownCapture:xe?L(n,a):void 0,"data-cell":A?`${n}-${a}`:void 0,colSpan:d>1?d:void 0,rowSpan:f>1?f:void 0,style:{padding:le,...p===`th`?{textAlign:`left`,fontWeight:600}:null,...me(a)?{textAlign:me(a)}:null,...A?{position:`relative`}:null,...de},children:[l??_o(t?.[a]),A&&xe&&(0,W.jsx)(`span`,{className:`wb-tedit-rowgrip`,title:U(`rowHeight`,`Drag to set the row height — double-click to fit the content`),onPointerDown:we(n),onDoubleClick:()=>A.resizeRow(n,0)})]},a)})},r[n]??n))]})]})})]})}var yo={small:{cell:62,font:10.5,head:11,title:15,pad:4,gap:2},medium:{cell:92,font:12,head:12,title:18,pad:6,gap:3},large:{cell:124,font:13,head:13,title:22,pad:8,gap:4}},bo=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`,xo=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),So=366;function Co(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],r=e=>Array.isArray(e)?e[0]:e,i=e=>e==null?``:ir(e),a=e=>{let t=i(r(e)),n=t?new Date(t):null;return n&&!Number.isNaN(n.getTime())?n:null};return n.map(e=>{let n=e.data??{},o=a(n[t.startField]);return o?{key:e.id,title:i(n[t.titleField||`name`])||i(n.name)||`Untitled`,start:o,end:a(n[t.endField]),href:t.hrefField?i(n[t.hrefField]):``,color:t.colorField?i(r(n[t.colorField])):``}:null}).filter(Boolean)}function wo(e){return(Array.isArray(e)?e:[]).map((e,t)=>{let n=e?.start?new Date(e.start):null;if(!n||Number.isNaN(n.getTime()))return null;let r=e?.end?new Date(e.end):null;return{key:e.key??`event-${t}`,title:e.title??``,start:n,end:r&&!Number.isNaN(r.getTime())?r:null,href:e.href??``,color:e.color??``}}).filter(Boolean)}function To(e){let t=new Map;for(let n of e){let e=xo(n.start),r=n.end?xo(n.end):e,i=Math.min(Math.max(0,Math.round((r-e)/864e5)),So);for(let r=0;r<=i;r+=1){let i=bo(new Date(e.getFullYear(),e.getMonth(),e.getDate()+r));t.has(i)||t.set(i,[]),t.get(i).push(n)}}for(let e of t.values())e.sort((e,t)=>e.start-t.start);return t}function Eo({events:e=[],source:t=``,titleField:n=``,startField:r=``,endField:i=``,hrefField:a=``,colorField:o=``,variant:s=`month`,size:c=`medium`,accent:u=``,eventBg:d=``,eventText:f=``,borderColor:p=``,weekStart:m=`monday`,max:h=3,emptyText:g=`No events`,style:_,nodeRef:v,interactive:y=!0}){let{tenant:b,apiUrl:x,revision:S,locale:C}=(0,l.useContext)(Un),w=(0,l.useContext)(Wn)?.[t],[T,E]=(0,l.useState)(null),[D,O]=(0,l.useState)(()=>{let e=new Date;return{year:e.getFullYear(),month:e.getMonth()}});(0,l.useEffect)(()=>{if(!t||w)return;let e=!0;return fetch(`${x}/dynamic/${encodeURIComponent(t)}`,{headers:b?{"x-tenant":b}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&E(n)}).catch(()=>e&&E([])),()=>{e=!1}},[S,t,b,x,w]);let k=yo[c]??yo.medium,A=u||`var(--page-accent, #4f46e5)`,j=p||`var(--page-border, rgba(148, 163, 184, 0.35))`,M=d||A,N=f||`var(--page-accent-text, #ffffff)`,P=t?Co(w??T??[],{titleField:n,startField:r,endField:i,hrefField:a,colorField:o}):wo(e),F=To(P),I=C||void 0,L=(e,t)=>{let n=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{...G(`event-dot`),style:{width:6,height:6,borderRadius:`50%`,background:e.color||N,flexShrink:0,opacity:e.color?1:.85}}),(0,W.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.title})]}),r={display:`flex`,alignItems:`center`,gap:5,background:e.color?`color-mix(in srgb, ${e.color} 18%, transparent)`:M,color:e.color?`inherit`:N,borderRadius:4,padding:`2px 5px`,fontSize:k.font,lineHeight:1.35,textDecoration:`none`,...t};return e.href&&y?(0,W.jsx)(`a`,{...G(`event`),href:e.href,style:r,title:e.title,children:n},e.key):(0,W.jsx)(`div`,{...G(`event`),style:r,title:e.title,children:n},e.key)},R=new Intl.DateTimeFormat(I,{month:`long`,year:`numeric`}).format(new Date(D.year,D.month,1)),ee=e=>O(t=>{let n=new Date(t.year,t.month+e,1);return{year:n.getFullYear(),month:n.getMonth()}}),te=(e,t)=>(0,W.jsx)(`button`,{type:`button`,"aria-label":e,...G(`nav-button`),onClick:()=>ee(t),style:{background:`transparent`,border:`1px solid ${j}`,borderRadius:6,color:`inherit`,cursor:`pointer`,fontSize:k.head,lineHeight:1,padding:`4px 8px`},children:t<0?`‹`:`›`}),B=(0,W.jsxs)(`div`,{...G(`header`),style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:k.pad+2},children:[(0,W.jsx)(`div`,{...G(`month`),style:{fontSize:k.title,fontWeight:700,flexGrow:1,fontFamily:`var(--page-heading-font, inherit)`},children:R}),te(`Previous month`,-1),te(`Next month`,1)]});if(s===`list`){let e=P.filter(e=>e.start.getFullYear()===D.year&&e.start.getMonth()===D.month).sort((e,t)=>e.start-t.start),t=new Intl.DateTimeFormat(I,{day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`});return(0,W.jsxs)(`div`,{ref:v,style:{width:`100%`,...z(_)},children:[B,e.length?(0,W.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:k.gap+2},children:e.map(e=>(0,W.jsxs)(`div`,{...G(`agenda-row`),style:{display:`flex`,alignItems:`center`,gap:10,borderBottom:`1px solid ${j}`,paddingBottom:k.gap+2},children:[(0,W.jsx)(`span`,{...G(`agenda-date`),style:{fontSize:k.font,opacity:.7,minWidth:96},children:t.format(e.start)}),L(e,{flexGrow:1,minWidth:0})]},e.key))}):(0,W.jsx)(`div`,{...G(`empty`),style:{fontSize:k.font,opacity:.6,padding:k.pad*2},children:g})]})}let V=new Date(D.year,D.month,1),H=m===`sunday`?0:1,ne=(V.getDay()-H+7)%7,re=new Date(D.year,D.month+1,0).getDate(),ie=Math.ceil((ne+re)/7),ae=bo(new Date),oe=new Intl.DateTimeFormat(I,{weekday:`short`}),se=[];for(let e=0;e<ie*7;e+=1){let t=e-ne+1,n=t>=1&&t<=re,r=bo(new Date(D.year,D.month,t)),i=n?F.get(r)??[]:[],a=i.slice(0,Math.max(1,h)),o=n&&r===ae;se.push((0,W.jsxs)(`div`,{...G(`day`,!n&&`day-outside`,o&&`day-today`),style:{minHeight:k.cell,borderTop:`1px solid ${j}`,borderLeft:`1px solid ${j}`,padding:k.pad,display:`flex`,flexDirection:`column`,gap:k.gap,opacity:n?1:.35,minWidth:0},children:[(0,W.jsx)(`span`,{...G(`day-number`,o&&`day-number-today`),style:{fontSize:k.font,fontWeight:o?700:400,alignSelf:`flex-start`,borderRadius:`999px`,padding:o?`1px 6px`:0,background:o?A:`transparent`,color:o?N:`inherit`},children:n?t:new Date(D.year,D.month,t).getDate()}),a.map(e=>L(e)),i.length>a.length&&(0,W.jsx)(`span`,{...G(`more`),style:{fontSize:k.font,opacity:.6},children:`+${i.length-a.length}`})]},e))}return(0,W.jsxs)(`div`,{ref:v,style:{width:`100%`,...z(_)},children:[B,(0,W.jsxs)(`div`,{...G(`grid`),style:{display:`grid`,gridTemplateColumns:`repeat(7, minmax(0, 1fr))`},children:[Array.from({length:7},(e,t)=>(0,W.jsx)(`div`,{...G(`weekday`),style:{fontSize:k.head,fontWeight:600,opacity:.7,textAlign:`center`,padding:`0 0 ${k.pad}px`},children:oe.format(new Date(2024,0,7+H+t))},`head-${t}`)),se]}),(0,W.jsx)(`div`,{style:{borderTop:`1px solid ${j}`}})]})}var Do={small:36,medium:56,large:88};function Oo(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`):[],r=e=>e==null?``:ir(e);return n.map(e=>{let n=e.data??e,i=nr(n,t.imageField),a=Array.isArray(i)?i[0]:i,o=a&&typeof a==`object`?a.url??a.src??``:a,s=t.nameField?r(nr(n,t.nameField)):r(n.name);return{src:typeof o==`string`?o.trim():``,alt:s,href:t.hrefField?r(nr(n,t.hrefField)):``}}).filter(e=>e.src)}function ko({logos:e=[],source:t=``,imageField:n=``,nameField:r=``,hrefField:i=``,variant:a=`step`,size:o=`medium`,perView:s=5,gap:c=48,hold:u=3,slideMs:d=500,direction:f=`left`,arrows:p=`show`,pauseOnHover:m=!0,grayscale:h=!0,newTab:g=!0,emptyText:_=``,style:v,nodeRef:y,inert:b}){let{tenant:x,apiUrl:S,revision:C,locale:w}=(0,l.useContext)(Un),T=ot(w),E=(0,l.useContext)(Wn)?.[t],[D,O]=(0,l.useState)(null),k=(0,l.useRef)(null),A=(0,l.useRef)(null),[j,M]=(0,l.useState)(0),[N,P]=(0,l.useState)(0),[F,I]=(0,l.useState)(0),[L,R]=(0,l.useState)(!0),[ee,te]=(0,l.useState)(!1),[B,V]=(0,l.useState)(!1),[H,ne]=(0,l.useState)(!1),[re,ie]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!t||E)return;let e=!0;return fetch(`${S}/dynamic/${encodeURIComponent(t)}`,{headers:x?{"x-tenant":x}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&O(n)}).catch(()=>e&&O([])),()=>{e=!1}},[C,t,x,S,E]),(0,l.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>ie(e.matches);return t(),e.addEventListener?.(`change`,t),()=>e.removeEventListener?.(`change`,t)},[]),(0,l.useEffect)(()=>{let e=A.current;if(!e)return;let t=()=>M(e.clientWidth);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),(0,l.useEffect)(()=>{let e=k.current;if(!e)return;let t=!0,n=()=>{let n=[...e.querySelectorAll(`img`)].filter(e=>e.complete&&e.naturalHeight).map(e=>e.naturalWidth/e.naturalHeight*se);t&&n.length&&P(Math.ceil(Math.max(...n)))};n();let r=[...e.querySelectorAll(`img`)].filter(e=>!e.complete);return r.forEach(e=>e.addEventListener(`load`,n)),()=>{t=!1,r.forEach(e=>e.removeEventListener(`load`,n))}});let ae=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.src):[],oe=t?Oo(E??D??[],{imageField:n,nameField:r,hrefField:i}):ae,se=Do[o]??Do.medium,ce=Number.isFinite(Number(c))?Math.max(0,Number(c)):48,le=a===`marquee`?`step`:a,ue=Math.min(3e4,Math.max(300,(Number(u)||3)*1e3)),de=Math.min(3e3,Math.max(100,Number(d)||500)),fe=Math.min(12,Math.max(1,Math.round(Number(s)||5))),pe=(N||se*3)+ce,me=j?Math.max(1,Math.floor(j/pe)):fe,he=Math.min(fe,me),ge=j?Math.min(pe,j/he):pe;if(!oe.length)return(0,W.jsx)(`div`,{ref:y,style:{width:`100%`,...z(v)},children:b?(0,W.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,flexWrap:`wrap`,gap:ce},children:[0,1,2,3,4].map(e=>(0,W.jsx)(`div`,{style:{height:se,width:se*3,border:`1px dashed var(--page-border, rgba(148, 163, 184, 0.5))`,borderRadius:6,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:Math.max(10,Math.round(se/4)),opacity:.45,...Fe},children:`LOGO`},e))}):_?(0,W.jsx)(`div`,{...G(`empty`),style:{fontSize:13,opacity:.6,textAlign:`center`,padding:16},children:_}):null});let _e=oe.length,ve=le===`step`&&_e>he,ye=le===`slider`,be=ve&&!b&&!ee&&!B&&!H&&!re,xe=f===`right`,Se=xe?_e:0,Ce=ve?[...oe,...oe]:oe,we=ve?F*ge:0,Te=(e,t,n)=>{let r=(0,W.jsx)(`img`,{...G(`logo`),src:e.src,alt:e.alt??``,style:{height:se,width:`auto`,maxWidth:`100%`,objectFit:`contain`,display:`block`}}),i=ve?{width:ge,flex:`0 0 auto`,padding:`0 ${ce/2}px`,justifyContent:`center`}:{};return e.href&&!b?(0,W.jsx)(`a`,{href:e.href,...G(`item`),className:`wb-logo`,title:e.alt||void 0,style:i,...g===!1?{}:{target:`_blank`,rel:`noopener noreferrer`},...n?{"aria-hidden":`true`,tabIndex:-1}:{},children:r},`${n?`c`:`o`}-${t}`):(0,W.jsx)(`div`,{...G(`item`),className:`wb-logo`,style:i,...n?{"aria-hidden":`true`}:{},children:r},`${n?`c`:`o`}-${t}`)},Ee=(0,W.jsx)(`div`,{ref:k,...G(`track`),className:`wb-logos-track`,style:{display:`flex`,alignItems:`center`,...ve?{width:Ce.length*ge,transform:`translateX(-${we}px)`,transition:L?`transform ${de}ms ease`:`none`}:ye?{gap:ce,overflowX:`auto`,scrollBehavior:`smooth`,scrollSnapType:`x proximity`}:{gap:ce,flexWrap:`wrap`,justifyContent:`center`}},children:Ce.map((e,t)=>Te(e,t,ve&&t>=_e))}),U=e=>{if(ye){let t=k.current;t&&t.scrollBy({left:e*Math.max(120,t.clientWidth*.8),behavior:`smooth`});return}let t=F+e;if(t>=0&&t<=_e){R(!0),I(t);return}let n=t<0?_e:0;R(!1),I(n),requestAnimationFrame(()=>requestAnimationFrame(()=>{R(!0),I(n+e)}))},De=p===!1||p===`off`?`off`:p===`hover`?`hover`:`show`,Oe=De!==`off`&&(ye?j>0:ve),ke=e=>(0,W.jsx)(`button`,{type:`button`,"aria-label":T(e<0?`prevLogos`:`nextLogos`),...G(`arrow`,e<0?`arrow-prev`:`arrow-next`),onClick:()=>U(e),className:`wb-logos-arrow${De===`hover`?` wb-logos-arrow-shy`:``}`,style:{[e<0?`left`:`right`]:0},children:e<0?`‹`:`›`});return(0,W.jsxs)(`div`,{ref:e=>{A.current=e,y&&y(e)},className:`wb-logos`,style:{width:`100%`,position:`relative`,overflow:`hidden`,...z(v)},onMouseEnter:m===!1?void 0:()=>te(!0),onMouseLeave:m===!1?void 0:()=>te(!1),onFocus:()=>V(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||V(!1)},children:[(0,W.jsx)(`style`,{children:`
|
|
76
|
+
`,go=(e,t)=>e&&t?`cell-${e}-${t}`:``,_o=e=>{if(!e||typeof e!=`object`)return e??``;let t=String(e.text??``);return typeof e.href==`string`&&e.href?(0,G.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #4f46e5)`},children:t}):t},vo=e=>(Array.isArray(e)?e:e==null?[]:[e]).map(e=>typeof e==`string`?e:e?.url).filter(e=>typeof e==`string`&&e.trim()),yo=e=>{if(!Number.isFinite(e)||e<0)return``;if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e,r=-1;do n/=1024,r++;while(n>=1024&&r<t.length-1);return`${n.toFixed(1)} ${t[r]}`},bo=e=>{try{let t=new URL(e,typeof window>`u`?`http://localhost`:window.location.href),n=t.pathname.match(/^(.*\/files\/[0-9a-f-]{36})\/?$/i);return n?(t.pathname=`${n[1]}/meta`,t.toString()):null}catch{return null}},xo=new Map,So=e=>{let t=bo(e);if(!t)return Promise.resolve(null);if(!xo.has(t)){let e=e=>fetch(t,{credentials:e}).then(e=>e.ok?e.json():null);xo.set(t,e(`include`).catch(()=>e(`omit`)).then(e=>e?.payload??null).catch(()=>null).then(e=>(e||xo.delete(t),e)))}return xo.get(t)};function Co(e){let[t,n]=(0,l.useState)({});return(0,l.useEffect)(()=>{let t=!0;for(let r of e??[])So(r).then(e=>t&&n(t=>({...t,[r]:e})));return()=>{t=!1}},[(e??[]).join(`
|
|
77
|
+
`)]),t}var wo=(e,t,n)=>{let r=String(t?.name??``),i=r.includes(`.`)?r.split(`.`).pop():String(t?.mime??``).split(`/`).pop();return{name:r,size:yo(Number(t?.size)),bytes:Number.isFinite(Number(t?.size))?Number(t.size):``,type:String(i??``).toUpperCase(),url:e,download:`${e}${e.includes(`?`)?`&`:`?`}download=1`,index:n+1}};function To({columns:e=[],rows:t=[],widths:n=[],rowKeys:r=[],colKeys:i=[],heights:a=[],spans:o,linked:s,source:c,limit:u=10,header:d=!0,striped:f=!0,bordered:p=!1,compact:m=!1,padX:h,padY:g,paged:_,emptyText:v,stickyHeader:y,headerBg:b,headerColor:x,headerAlign:S,valign:C,borderColor:w,maxHeight:T,caption:E=``,captionHidden:D=!1,rowHeaders:O=!1,repeat:k=``,renderCell:A,style:j,nodeRef:M,edit:N}){let P=(0,l.useRef)(null),F=(0,l.useContext)(qn),I=k&&!c?vo(tr(F?.entry?.data,k)):null,L=Co(I),R=(0,l.useRef)(null),[B,ee]=(0,l.useState)(null),[V,H]=(0,l.useState)(null),U=(e,t)=>()=>ee({r:e,c:t});(0,l.useEffect)(()=>{if(!N)return;let e=R.current,t=B&&e?.querySelector(`[data-cell="${B.r}-${B.c}"]`);if(!t){V&&H(null);return}let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={top:r.bottom-n.top+4,left:Math.max(0,Math.min(r.left-n.left,n.width-mo))};(V?.top!==i.top||V?.left!==i.left)&&H(i)}),(0,l.useEffect)(()=>{if(!N||!B)return;let e=e=>{R.current?.contains(e.target)||ee(null)};return document.addEventListener(`mousedown`,e,!0),()=>document.removeEventListener(`mousedown`,e,!0)},[N,B]);let{tenant:te,apiUrl:ne,revision:re,locale:ie}=(0,l.useContext)(K),ae=(0,l.useContext)(Hn),oe=ae?.[c],se=_?Un(ae):1,[ce,le]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(!c||oe)return;let e=!0,t=Math.max(1,Number(u)||10),n=_&&!c.startsWith(`api:`)?`?offset=${(se-1)*t}&limit=${t}`:``,r=c.startsWith(`api:`)?`${ne}/data/${encodeURIComponent(c.slice(4))}`:`${ne}/dynamic/${encodeURIComponent(c)}${n}`;return fetch(r,{headers:te?{"x-tenant":te}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];return e&&le(n)}).catch(()=>e&&le([])),()=>{e=!1}},[re,c,te,ne,oe,_,se,u]),!e.length)return null;let ue=Math.max(1,Number(u)||10),de=c?_?oe||c.startsWith(`api:`)?(oe??ce??[]).slice((se-1)*ue,se*ue):(ce??[]).slice(0,ue):(oe??ce??[]).slice(0,ue):null,fe=de?de.map(t=>e.map(e=>rr(tr(t?.data,e.field)))):t,pe=!!c&&!(c&&!oe&&ce===null)&&fe.length===0,me=I&&A&&fe.length?[...I.map((e,t)=>({r:0,file:wo(e,L[e],t)})),...fe.slice(1).map((e,t)=>({r:t+1,file:null}))]:fe.map((e,t)=>({r:t,file:null})),he=(e,t)=>A(e,e=>ur(e,{...F?.entry??{},data:{...F?.entry?.data??{},[k]:t}},ie)),ge=m?{y:6,x:10}:{y:10,x:14},_e=`${Number.isFinite(Number(g))&&g!==``?Number(g):ge.y}px ${Number.isFinite(Number(h))&&h!==``?Number(h):ge.x}px`,ve=`1px solid ${typeof w==`string`&&w?w:`rgba(148, 163, 184, 0.35)`}`,ye=p?{border:ve}:{borderBottom:ve},be=Array.isArray(n)&&n.length===e.length&&n.every(e=>Number.isFinite(e)&&e>0),xe=[`left`,`center`,`right`],Se=t=>xe.includes(e[t]?.align)?e[t].align:``,Ce=e=>Se(e)||(xe.includes(S)?S:`left`),we=[`top`,`middle`,`bottom`],Te=t=>we.includes(e[t]?.valign)?e[t].valign:we.includes(C)?C:``,Ee=Number.isFinite(Number(T))&&Number(T)>0?Number(T):0,De=z(j),Oe=!Ee&&De&&De.maxHeight!==void 0?De.maxHeight:0,ke=Ee||Oe,Ae=Oe?{...De,maxHeight:void 0}:De,je=!!N&&N.rows!==!1,Me=t=>r=>{if(!N?.resize||t>=e.length-1)return;r.preventDefault(),r.stopPropagation();let i=P.current,a=i?i.clientWidth:0;if(!a)return;let o=be?[...n]:e.map(()=>100/e.length),s=r.clientX,c=o[t]+o[t+1],l=e=>{let n=(e.clientX-s)/a*100,r=Math.min(c-5,Math.max(5,o[t]+n)),i=[...o];i[t]=Math.round(r*10)/10,i[t+1]=Math.round((c-r)*10)/10,N.resize(i)},u=()=>{window.removeEventListener(`pointermove`,l),window.removeEventListener(`pointerup`,u)};window.addEventListener(`pointermove`,l),window.addEventListener(`pointerup`,u)},Ne=new Set;o&&fe.forEach((t,n)=>e.forEach((e,t)=>{let a=o[go(r[n],i[t])];if(!a)return;let s=Math.max(1,Number(a.c)||1),c=Math.max(1,Number(a.r)||1);for(let e=0;e<c;e++)for(let r=0;r<s;r++)(e||r)&&Ne.add(`${n+e},${t+r}`)}));let Pe=e=>t=>{if(!N?.resizeRow)return;t.preventDefault(),t.stopPropagation();let n=t.currentTarget.closest(`tr`);if(!n)return;let r=t.clientY,i=n.offsetHeight,a=t=>N.resizeRow(e,Math.max(20,Math.round(i+(t.clientY-r)))),o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)},Fe=(e,t,n,r)=>r?null:(0,G.jsx)(`span`,{className:`wb-tedit-btn`,role:`button`,"data-hint":t,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:n,children:e},t),W=B&&B.r<fe.length&&B.c<e.length?B:null,Ie=(e,t)=>N?.labels?.[e]??t,Le=W?o?.[go(r[W.r],i[W.c])]:null,Re=Math.max(1,Number(Le?.c)||1),ze=Math.max(1,Number(Le?.r)||1);return(0,G.jsxs)(`div`,{ref:e=>{R.current=e,typeof M==`function`&&M(e)},style:{width:`100%`,...N?{position:`relative`}:null,...Ae},children:[N&&(0,G.jsx)(`style`,{children:ho}),N&&W&&V&&(0,G.jsxs)(`div`,{className:`wb-tedit-bar`,style:{top:V.top,left:V.left},onMouseDown:e=>e.stopPropagation(),children:[(0,G.jsx)(`span`,{className:`wb-tedit-at`,children:`R${W.r+1}·C${W.c+1}`}),Fe(`+↑`,Ie(`rowAbove`,`Insert row above`),()=>N.addRow(W.r-1)),Fe(`+↓`,Ie(`rowBelow`,`Insert row below`),()=>N.addRow(W.r)),Fe(`↑`,Ie(`rowUp`,`Move row up`),()=>N.moveRow(W.r,-1),W.r===0),Fe(`↓`,Ie(`rowDown`,`Move row down`),()=>N.moveRow(W.r,1),W.r>=fe.length-1),Fe(`✕ row`,Ie(`rowDelete`,`Delete row`),()=>N.dropRow(W.r),fe.length<=1),(0,G.jsx)(`span`,{className:`wb-tedit-sep`}),Fe(`+←`,Ie(`colLeft`,`Insert column left`),()=>N.addColumn(W.c-1)),Fe(`+→`,Ie(`colRight`,`Insert column right`),()=>N.addColumn(W.c)),Fe(`←`,Ie(`colMoveLeft`,`Move column left`),()=>N.moveColumn(W.c,-1),W.c===0),Fe(`→`,Ie(`colMoveRight`,`Move column right`),()=>N.moveColumn(W.c,1),W.c>=e.length-1),Fe(`✕ col`,Ie(`colDelete`,`Delete column`),()=>N.dropColumn(W.c),e.length<=1),(0,G.jsx)(`span`,{className:`wb-tedit-sep`}),Fe(`↔`,Ie(`mergeRight`,`Merge with the cell on the right`),()=>N.merge(W.r,W.c,`right`),W.c+Re>=e.length),Fe(`↕`,Ie(`mergeDown`,`Merge with the cell below`),()=>N.merge(W.r,W.c,`down`),W.r+ze>=fe.length),Fe(`⤫`,Ie(`split`,`Split this cell`),()=>N.split(W.r,W.c),Re===1&&ze===1)]}),(0,G.jsx)(`div`,{style:{width:`100%`,overflowX:`auto`,...ke?{maxHeight:ke,overflowY:`auto`}:null},children:(0,G.jsxs)(`table`,{ref:P,...q(`table`),style:{width:`100%`,borderCollapse:y&&d!==!1?`separate`:`collapse`,borderSpacing:0,fontSize:14,...be?{tableLayout:`fixed`}:null,...p?{border:ve}:{}},children:[typeof E==`string`&&E.trim()?(0,G.jsx)(`caption`,{...q(`caption`),style:D?ot:{captionSide:`top`,textAlign:`left`,fontWeight:600,fontSize:15,padding:`0 0 8px`},children:E}):null,be&&(0,G.jsx)(`colgroup`,{children:n.map((e,t)=>(0,G.jsx)(`col`,{style:{width:`${e}%`}},t))}),d===!1?null:(0,G.jsx)(`thead`,{children:(0,G.jsx)(`tr`,{...q(`header-row`),children:e.map((t,n)=>(0,G.jsx)(`th`,{...q(`header-cell`),scope:`col`,className:N?`wb-tedit-head`:void 0,style:{textAlign:Ce(n),fontWeight:600,padding:_e,...typeof x==`string`&&x?{color:x}:null,background:typeof b==`string`&&b?b:y?`var(--page-surface, #f2f2f2)`:`rgba(148, 163, 184, 0.12)`,...y?{position:`sticky`,top:0,zIndex:2}:N?{position:`relative`}:null,...ye},children:N?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(po,{value:t.label??t,onCommit:e=>N.header(n,e),hint:Ie(`editCell`,`Double-click to edit`),style:{paddingRight:6}}),n<e.length-1&&(0,G.jsx)(`span`,{className:`wb-tedit-grip`,title:Ie(`colWidth`,`Drag to resize the column`),onPointerDown:Me(n)})]}):t.label??t},n))})}),(0,G.jsxs)(`tbody`,{children:[pe&&(0,G.jsx)(`tr`,{children:(0,G.jsx)(`td`,{colSpan:e.length,...q(`empty`),style:{padding:_e,textAlign:`center`,opacity:.6,...ye},children:v||`No data yet`})}),me.map(({r:t,file:n},c)=>{let l=fe[t];return(0,G.jsx)(`tr`,{...q(`row`,c%2==1&&`row-alt`),className:N?`wb-tedit-row`:void 0,style:{...f&&c%2==1?{background:`rgba(148, 163, 184, 0.07)`}:null,...Number.isFinite(Number(a?.[t]))&&a[t]>0?{height:a[t]}:null},children:e.map((e,a)=>{if(Ne.has(`${t},${a}`))return null;let c=go(r[t],i[a]),u=n?he(c,n):s?.[c],d=o?.[c],f=Math.max(1,Number(d?.c)||1),p=Math.max(1,Number(d?.r)||1),m=O&&a===0?`th`:`td`;return(0,G.jsxs)(m,{...q(`cell`,m===`th`&&`row-header`),scope:m===`th`?`row`:void 0,className:N?`wb-tedit-cell${B?.r===t&&B?.c===a?` wb-tedit-cellon`:``}`:void 0,onMouseDownCapture:je?U(t,a):void 0,"data-cell":N?`${t}-${a}`:void 0,colSpan:f>1?f:void 0,rowSpan:p>1?p:void 0,style:{padding:_e,...m===`th`?{textAlign:`left`,fontWeight:600}:null,...Se(a)?{textAlign:Se(a)}:null,...Te(a)?{verticalAlign:Te(a)}:null,...N?{position:`relative`}:null,...ye},children:[u??_o(l?.[a]),N&&je&&(0,G.jsx)(`span`,{className:`wb-tedit-rowgrip`,title:Ie(`rowHeight`,`Drag to set the row height — double-click to fit the content`),onPointerDown:Pe(t),onDoubleClick:()=>N.resizeRow(t,0)})]},c||a)})},n?`${r[t]??t}-${c}`:r[t]??t)})]})]})})]})}var Eo={small:{cell:62,font:10.5,head:11,title:15,pad:4,gap:2},medium:{cell:92,font:12,head:12,title:18,pad:6,gap:3},large:{cell:124,font:13,head:13,title:22,pad:8,gap:4}},Do=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`,Oo=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),ko=366;function Ao(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.id):[],r=e=>Array.isArray(e)?e[0]:e,i=e=>e==null?``:rr(e),a=e=>{let t=i(r(e)),n=t?new Date(t):null;return n&&!Number.isNaN(n.getTime())?n:null};return n.map(e=>{let n=e.data??{},o=a(n[t.startField]);return o?{key:e.id,title:i(n[t.titleField||`name`])||i(n.name)||`Untitled`,start:o,end:a(n[t.endField]),href:t.hrefField?i(n[t.hrefField]):``,color:t.colorField?i(r(n[t.colorField])):``}:null}).filter(Boolean)}function jo(e){return(Array.isArray(e)?e:[]).map((e,t)=>{let n=e?.start?new Date(e.start):null;if(!n||Number.isNaN(n.getTime()))return null;let r=e?.end?new Date(e.end):null;return{key:e.key??`event-${t}`,title:e.title??``,start:n,end:r&&!Number.isNaN(r.getTime())?r:null,href:e.href??``,color:e.color??``}}).filter(Boolean)}function Mo(e){let t=new Map;for(let n of e){let e=Oo(n.start),r=n.end?Oo(n.end):e,i=Math.min(Math.max(0,Math.round((r-e)/864e5)),ko);for(let r=0;r<=i;r+=1){let i=Do(new Date(e.getFullYear(),e.getMonth(),e.getDate()+r));t.has(i)||t.set(i,[]),t.get(i).push(n)}}for(let e of t.values())e.sort((e,t)=>e.start-t.start);return t}function No({events:e=[],source:t=``,titleField:n=``,startField:r=``,endField:i=``,hrefField:a=``,colorField:o=``,variant:s=`month`,size:c=`medium`,accent:u=``,eventBg:d=``,eventText:f=``,borderColor:p=``,weekStart:m=`monday`,max:h=3,emptyText:g=`No events`,style:_,nodeRef:v,interactive:y=!0}){let{tenant:b,apiUrl:x,revision:S,locale:C}=(0,l.useContext)(K),w=(0,l.useContext)(Hn)?.[t],[T,E]=(0,l.useState)(null),[D,O]=(0,l.useState)(()=>{let e=new Date;return{year:e.getFullYear(),month:e.getMonth()}});(0,l.useEffect)(()=>{if(!t||w)return;let e=!0;return fetch(`${x}/dynamic/${encodeURIComponent(t)}`,{headers:b?{"x-tenant":b}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&E(n)}).catch(()=>e&&E([])),()=>{e=!1}},[S,t,b,x,w]);let k=Eo[c]??Eo.medium,A=u||`var(--page-accent, #4f46e5)`,j=p||`var(--page-border, rgba(148, 163, 184, 0.35))`,M=d||A,N=f||`var(--page-accent-text, #ffffff)`,P=t?Ao(w??T??[],{titleField:n,startField:r,endField:i,hrefField:a,colorField:o}):jo(e),F=Mo(P),I=C||void 0,L=(e,t)=>{let n=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{...q(`event-dot`),style:{width:6,height:6,borderRadius:`50%`,background:e.color||N,flexShrink:0,opacity:e.color?1:.85}}),(0,G.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.title})]}),r={display:`flex`,alignItems:`center`,gap:5,background:e.color?`color-mix(in srgb, ${e.color} 18%, transparent)`:M,color:e.color?`inherit`:N,borderRadius:4,padding:`2px 5px`,fontSize:k.font,lineHeight:1.35,textDecoration:`none`,...t};return e.href&&y?(0,G.jsx)(`a`,{...q(`event`),href:e.href,style:r,title:e.title,children:n},e.key):(0,G.jsx)(`div`,{...q(`event`),style:r,title:e.title,children:n},e.key)},R=new Intl.DateTimeFormat(I,{month:`long`,year:`numeric`}).format(new Date(D.year,D.month,1)),B=e=>O(t=>{let n=new Date(t.year,t.month+e,1);return{year:n.getFullYear(),month:n.getMonth()}}),ee=(e,t)=>(0,G.jsx)(`button`,{type:`button`,"aria-label":e,...q(`nav-button`),onClick:()=>B(t),style:{background:`transparent`,border:`1px solid ${j}`,borderRadius:6,color:`inherit`,cursor:`pointer`,fontSize:k.head,lineHeight:1,padding:`4px 8px`},children:t<0?`‹`:`›`}),V=(0,G.jsxs)(`div`,{...q(`header`),style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:k.pad+2},children:[(0,G.jsx)(`div`,{...q(`month`),style:{fontSize:k.title,fontWeight:700,flexGrow:1,fontFamily:`var(--page-heading-font, inherit)`},children:R}),ee(`Previous month`,-1),ee(`Next month`,1)]});if(s===`list`){let e=P.filter(e=>e.start.getFullYear()===D.year&&e.start.getMonth()===D.month).sort((e,t)=>e.start-t.start),t=new Intl.DateTimeFormat(I,{day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`});return(0,G.jsxs)(`div`,{ref:v,style:{width:`100%`,...z(_)},children:[V,e.length?(0,G.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:k.gap+2},children:e.map(e=>(0,G.jsxs)(`div`,{...q(`agenda-row`),style:{display:`flex`,alignItems:`center`,gap:10,borderBottom:`1px solid ${j}`,paddingBottom:k.gap+2},children:[(0,G.jsx)(`span`,{...q(`agenda-date`),style:{fontSize:k.font,opacity:.7,minWidth:96},children:t.format(e.start)}),L(e,{flexGrow:1,minWidth:0})]},e.key))}):(0,G.jsx)(`div`,{...q(`empty`),style:{fontSize:k.font,opacity:.6,padding:k.pad*2},children:g})]})}let H=new Date(D.year,D.month,1),U=m===`sunday`?0:1,te=(H.getDay()-U+7)%7,ne=new Date(D.year,D.month+1,0).getDate(),re=Math.ceil((te+ne)/7),ie=Do(new Date),ae=new Intl.DateTimeFormat(I,{weekday:`short`}),oe=[];for(let e=0;e<re*7;e+=1){let t=e-te+1,n=t>=1&&t<=ne,r=Do(new Date(D.year,D.month,t)),i=n?F.get(r)??[]:[],a=i.slice(0,Math.max(1,h)),o=n&&r===ie;oe.push((0,G.jsxs)(`div`,{...q(`day`,!n&&`day-outside`,o&&`day-today`),style:{minHeight:k.cell,borderTop:`1px solid ${j}`,borderLeft:`1px solid ${j}`,padding:k.pad,display:`flex`,flexDirection:`column`,gap:k.gap,opacity:n?1:.35,minWidth:0},children:[(0,G.jsx)(`span`,{...q(`day-number`,o&&`day-number-today`),style:{fontSize:k.font,fontWeight:o?700:400,alignSelf:`flex-start`,borderRadius:`999px`,padding:o?`1px 6px`:0,background:o?A:`transparent`,color:o?N:`inherit`},children:n?t:new Date(D.year,D.month,t).getDate()}),a.map(e=>L(e)),i.length>a.length&&(0,G.jsx)(`span`,{...q(`more`),style:{fontSize:k.font,opacity:.6},children:`+${i.length-a.length}`})]},e))}return(0,G.jsxs)(`div`,{ref:v,style:{width:`100%`,...z(_)},children:[V,(0,G.jsxs)(`div`,{...q(`grid`),style:{display:`grid`,gridTemplateColumns:`repeat(7, minmax(0, 1fr))`},children:[Array.from({length:7},(e,t)=>(0,G.jsx)(`div`,{...q(`weekday`),style:{fontSize:k.head,fontWeight:600,opacity:.7,textAlign:`center`,padding:`0 0 ${k.pad}px`},children:ae.format(new Date(2024,0,7+U+t))},`head-${t}`)),oe]}),(0,G.jsx)(`div`,{style:{borderTop:`1px solid ${j}`}})]})}var Po={small:36,medium:56,large:88};function Fo(e,t={}){let n=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`):[],r=e=>e==null?``:rr(e);return n.map(e=>{let n=e.data??e,i=tr(n,t.imageField),a=Array.isArray(i)?i[0]:i,o=a&&typeof a==`object`?a.url??a.src??``:a,s=t.nameField?r(tr(n,t.nameField)):r(n.name);return{src:typeof o==`string`?o.trim():``,alt:s,href:t.hrefField?r(tr(n,t.hrefField)):``}}).filter(e=>e.src)}function Io({logos:e=[],source:t=``,imageField:n=``,nameField:r=``,hrefField:i=``,variant:a=`step`,size:o=`medium`,perView:s=5,gap:c=48,hold:u=3,slideMs:d=500,direction:f=`left`,arrows:p=`show`,pauseOnHover:m=!0,grayscale:h=!0,newTab:g=!0,emptyText:_=``,style:v,nodeRef:y,inert:b}){let{tenant:x,apiUrl:S,revision:C,locale:w}=(0,l.useContext)(K),T=at(w),E=(0,l.useContext)(Hn)?.[t],[D,O]=(0,l.useState)(null),k=(0,l.useRef)(null),A=(0,l.useRef)(null),[j,M]=(0,l.useState)(0),[N,P]=(0,l.useState)(0),[F,I]=(0,l.useState)(0),[L,R]=(0,l.useState)(!0),[B,ee]=(0,l.useState)(!1),[V,H]=(0,l.useState)(!1),[U,te]=(0,l.useState)(!1),[ne,re]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!t||E)return;let e=!0;return fetch(`${S}/dynamic/${encodeURIComponent(t)}`,{headers:x?{"x-tenant":x}:{}}).then(e=>e.json()).then(t=>{let n=Array.isArray(t?.payload)?t.payload:Array.isArray(t?.payload?.data)?t.payload.data:[];e&&O(n)}).catch(()=>e&&O([])),()=>{e=!1}},[C,t,x,S,E]),(0,l.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>re(e.matches);return t(),e.addEventListener?.(`change`,t),()=>e.removeEventListener?.(`change`,t)},[]),(0,l.useEffect)(()=>{let e=A.current;if(!e)return;let t=()=>M(e.clientWidth);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),(0,l.useEffect)(()=>{let e=k.current;if(!e)return;let t=!0,n=()=>{let n=[...e.querySelectorAll(`img`)].filter(e=>e.complete&&e.naturalHeight).map(e=>e.naturalWidth/e.naturalHeight*oe);t&&n.length&&P(Math.ceil(Math.max(...n)))};n();let r=[...e.querySelectorAll(`img`)].filter(e=>!e.complete);return r.forEach(e=>e.addEventListener(`load`,n)),()=>{t=!1,r.forEach(e=>e.removeEventListener(`load`,n))}});let ie=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.src):[],ae=t?Fo(E??D??[],{imageField:n,nameField:r,hrefField:i}):ie,oe=Po[o]??Po.medium,se=Number.isFinite(Number(c))?Math.max(0,Number(c)):48,ce=a===`marquee`?`step`:a,le=Math.min(3e4,Math.max(300,(Number(u)||3)*1e3)),ue=Math.min(3e3,Math.max(100,Number(d)||500)),de=Math.min(12,Math.max(1,Math.round(Number(s)||5))),fe=(N||oe*3)+se,pe=j?Math.max(1,Math.floor(j/fe)):de,me=Math.min(de,pe),he=j?Math.min(fe,j/me):fe;if(!ae.length)return(0,G.jsx)(`div`,{ref:y,style:{width:`100%`,...z(v)},children:b?(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,flexWrap:`wrap`,gap:se},children:[0,1,2,3,4].map(e=>(0,G.jsx)(`div`,{style:{height:oe,width:oe*3,border:`1px dashed var(--page-border, rgba(148, 163, 184, 0.5))`,borderRadius:6,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:Math.max(10,Math.round(oe/4)),opacity:.45,...Fe},children:`LOGO`},e))}):_?(0,G.jsx)(`div`,{...q(`empty`),style:{fontSize:13,opacity:.6,textAlign:`center`,padding:16},children:_}):null});let ge=ae.length,_e=ce===`step`&&ge>me,ve=ce===`slider`,ye=_e&&!b&&!B&&!V&&!U&&!ne,be=f===`right`,xe=be?ge:0,Se=_e?[...ae,...ae]:ae,Ce=_e?F*he:0,we=(e,t,n)=>{let r=(0,G.jsx)(`img`,{...q(`logo`),src:e.src,alt:e.alt??``,style:{height:oe,width:`auto`,maxWidth:`100%`,objectFit:`contain`,display:`block`}}),i=_e?{width:he,flex:`0 0 auto`,padding:`0 ${se/2}px`,justifyContent:`center`}:{};return e.href&&!b?(0,G.jsx)(`a`,{href:e.href,...q(`item`),className:`wb-logo`,title:e.alt||void 0,style:i,...g===!1?{}:{target:`_blank`,rel:`noopener noreferrer`},...n?{"aria-hidden":`true`,tabIndex:-1}:{},children:r},`${n?`c`:`o`}-${t}`):(0,G.jsx)(`div`,{...q(`item`),className:`wb-logo`,style:i,...n?{"aria-hidden":`true`}:{},children:r},`${n?`c`:`o`}-${t}`)},Te=(0,G.jsx)(`div`,{ref:k,...q(`track`),className:`wb-logos-track`,style:{display:`flex`,alignItems:`center`,..._e?{width:Se.length*he,transform:`translateX(-${Ce}px)`,transition:L?`transform ${ue}ms ease`:`none`}:ve?{gap:se,overflowX:`auto`,scrollBehavior:`smooth`,scrollSnapType:`x proximity`}:{gap:se,flexWrap:`wrap`,justifyContent:`center`}},children:Se.map((e,t)=>we(e,t,_e&&t>=ge))}),Ee=e=>{if(ve){let t=k.current;t&&t.scrollBy({left:e*Math.max(120,t.clientWidth*.8),behavior:`smooth`});return}let t=F+e;if(t>=0&&t<=ge){R(!0),I(t);return}let n=t<0?ge:0;R(!1),I(n),requestAnimationFrame(()=>requestAnimationFrame(()=>{R(!0),I(n+e)}))},De=p===!1||p===`off`?`off`:p===`hover`?`hover`:`show`,Oe=De!==`off`&&(ve?j>0:_e),ke=e=>(0,G.jsx)(`button`,{type:`button`,"aria-label":T(e<0?`prevLogos`:`nextLogos`),...q(`arrow`,e<0?`arrow-prev`:`arrow-next`),onClick:()=>Ee(e),className:`wb-logos-arrow${De===`hover`?` wb-logos-arrow-shy`:``}`,style:{[e<0?`left`:`right`]:0},children:e<0?`‹`:`›`});return(0,G.jsxs)(`div`,{ref:e=>{A.current=e,y&&y(e)},className:`wb-logos`,style:{width:`100%`,position:`relative`,overflow:`hidden`,...z(v)},onMouseEnter:m===!1?void 0:()=>ee(!0),onMouseLeave:m===!1?void 0:()=>ee(!1),onFocus:()=>H(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||H(!1)},children:[(0,G.jsx)(`style`,{children:`
|
|
77
78
|
.wb-logos .wb-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; box-sizing: border-box; }
|
|
78
79
|
.wb-logos .wb-logo img { filter: ${h===!1?`none`:`grayscale(1)`}; opacity: ${h===!1?1:.7}; transition: filter .2s ease, opacity .2s ease; }
|
|
79
80
|
.wb-logos .wb-logo:hover img { filter: none; opacity: 1; }
|
|
@@ -99,16 +100,16 @@ Error generating stack: `+e.message+`
|
|
|
99
100
|
color: inherit; background: var(--page-surface, #f2f2f2);
|
|
100
101
|
border: 1px solid var(--page-border, rgba(148, 163, 184, 0.5));
|
|
101
102
|
}
|
|
102
|
-
`}),
|
|
103
|
+
`}),_e?(0,G.jsxs)(`div`,{style:{position:`relative`,width:me*he,maxWidth:`100%`,margin:`0 auto`},children:[Oe?ke(-1):null,(0,G.jsx)(`div`,{style:{overflow:`hidden`},children:Te}),Oe?ke(1):null]}):(0,G.jsxs)(G.Fragment,{children:[Oe?ke(-1):null,Te,Oe?ke(1):null]}),_e&&!b&&!ne&&(0,G.jsx)(`button`,{type:`button`,...q(`pause`,U&&`pause-stopped`),className:`wb-logos-pause`,"aria-label":T(U?`play`:`pause`),onClick:()=>te(!U),children:(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,width:12,height:12,fill:`currentColor`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:U?`M8 5v14l11-7z`:`M7 5h4v14H7zM13 5h4v14h-4z`})})}),(0,G.jsx)(Lo,{running:ye,every:le+ue,slide:ue,step:be?-1:1,index:F,total:ge,home:xe,setIndex:I,setAnimate:R})]})}function Lo({running:e,every:t,slide:n,step:r,index:i,total:a,home:o,setIndex:s,setAnimate:c}){(0,l.useEffect)(()=>{if(!e)return;let n=setInterval(()=>{c(!0),s(e=>e+r)},t);return()=>clearInterval(n)},[e,t,r,s,c]),(0,l.useEffect)(()=>{c(!1),s(o)},[o,s,c]);let u=r>0?i>=a:i<=0;return(0,l.useEffect)(()=>{if(!u||i===o)return;let e=setTimeout(()=>{c(!1),s(o)},n);return()=>clearTimeout(e)},[u,i,n,o,s,c]),null}var Ro={tablet:991,mobileLandscape:767,mobile:478},zo=`M4 6h16M4 12h16M4 18h16`,Bo=e=>e&&ki[e]?ki[e]:zo;function Vo({drawerId:e=``,breakpoint:t=`tablet`,side:n=`left`,width:r=300,trigger:i=`button`,triggerLabel:a=``,icon:o=``,title:s=``,showClose:c=!0,backdropClose:u=!0,closeOnLink:d=!0,forceMode:f,frame:p,editorOpen:m=!0,editorLabel:h=`Drawer`,linked:g,style:_,nodeRef:v,inert:y=!1}){let[b,x]=(0,l.useState)(!1),S=`wb-drw-${(0,l.useId)().replace(/[^\w-]/g,``)}`,C=(0,l.useRef)(null),w=t===`always`?``:`(max-width: ${Ro[t]??991}px)`,T=(0,l.useCallback)(()=>f?f===`drawer`:!w||typeof window<`u`&&window.matchMedia(w).matches,[f,w]),E=(0,l.useRef)(null),[D,O]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(y||typeof window>`u`)return;let e=()=>{let e=E.current;if(!e||!T()){O(null);return}let t=e.closest(`.webim-page`)??e.closest(`.wb-artboard`)??document.body;O(n=>n?.target===t?n:{target:t,wb:e.getAttribute(`data-wb`)??void 0})};if(e(),f||!w)return;let t=window.matchMedia(w);return t.addEventListener?.(`change`,e),()=>t.removeEventListener?.(`change`,e)},[y,f,w,T]),(0,l.useEffect)(()=>{if(y||f||!w||typeof window>`u`)return;let e=window.matchMedia(w),t=()=>!e.matches&&x(!1);return e.addEventListener?.(`change`,t),()=>e.removeEventListener?.(`change`,t)},[y,f,w]),(0,l.useEffect)(()=>{if(y||!e)return;let t=t=>{!t.target.closest?.(`a[href="#${e}"], [data-webim-open="${e}"]`)||!T()||(t.preventDefault(),x(!0))};return document.addEventListener(`click`,t),()=>document.removeEventListener(`click`,t)},[y,e,T]),(0,l.useEffect)(()=>{if(y||!b)return;let e=e=>e.key===`Escape`&&x(!1),t=document.body.style.overflow;return document.addEventListener(`keydown`,e),document.body.style.overflow=`hidden`,C.current?.focus?.(),()=>{document.removeEventListener(`keydown`,e),document.body.style.overflow=t}},[y,b]);let k=Math.max(120,Number(r)||300),A=[`left`,`right`,`top`,`bottom`].includes(n)?n:`left`,j=A===`top`||A===`bottom`,M=j?`left: 0 !important; right: 0 !important; ${A}: 0 !important; ${A===`top`?`bottom`:`top`}: auto !important; width: 100% !important; height: min(${k}px, 86vh) !important; transform: translateY(${A===`top`?`-`:``}100%);`:`top: 0 !important; bottom: 0 !important; ${A}: 0 !important; ${A===`right`?`left`:`right`}: auto !important; width: min(${k}px, 86vw) !important; height: 100% !important; transform: translateX(${A===`right`?``:`-`}100%);`,N=[`.${S} .wb-drw-trigger { display: inline-flex; }`,`.${S} .wb-drw-head { display: flex; }`,`.${S} .wb-drw-panel { position: fixed !important; ${M} max-width: none !important; max-height: none !important; margin: 0 !important; overflow-y: auto; z-index: 2147483001; visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s; background: var(--page-surface, #ffffff); color: var(--page-text, #111827); box-shadow: 0 0 48px rgba(15, 23, 42, .3); }`,`.${S}.is-open .wb-drw-panel { transform: none; visibility: visible; transition: transform .26s ease; }`,`.${S}.is-open .wb-drw-backdrop { display: block; }`,`@media (prefers-reduced-motion: reduce) { .wb-drw-panel { transition: none !important; } }`].join(`
|
|
103
104
|
`),P=!y&&(!f||f===`drawer`),F=[`.${S} .wb-drw-trigger, .${S} .wb-drw-head, .${S} .wb-drw-backdrop { display: none; }`,P?w&&!f?`@media ${w} {\n${N}\n}`:N:``].join(`
|
|
104
|
-
`),I=y&&(f===`drawer`||!f&&!w),L=I&&m!==!1&&!(p&&Number.isFinite(p.top)),R=(()=>{if(!I)return null;if(m===!1)return{display:`none`};if(p&&Number.isFinite(p.top)){let e=Number.isFinite(p.boardLeft)?p.boardLeft:p.left,t=Number.isFinite(p.boardRight)?p.boardRight:p.innerRight,n=Number.isFinite(p.boardWidth)?p.boardWidth:p.innerWidth||800,r={position:`fixed`,zIndex:6,overflowY:`auto`,boxSizing:`border-box`,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,maxWidth:`none`,maxHeight:`none`,boxShadow:`0 0 40px rgba(15, 23, 42, .28)`},i=p.bottom;if(j){let n=Math.min(k,Math.round((p.innerHeight||600)*.86));return{...r,left:e,right:t,width:`auto`,height:n,...A===`top`?{top:p.top}:{bottom:i}}}let a=Math.min(k,Math.round(n*.86));return{...r,top:p.top,bottom:i,width:a,height:`auto`,...A===`right`?{right:t}:{left:e}}}return j?{width:`100%`,height:k,maxHeight:`none`,overflowY:`auto`,boxSizing:`border-box`}:{width:`min(${k}px, 100%)`,maxWidth:`none`,boxSizing:`border-box`,...A===`right`?{marginLeft:`auto`}:null}})(),ee=()=>!y&&x(!1),te=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{...G(`backdrop`),className:`wb-drw-backdrop`,onClick:u===!1?void 0:ee,style:{position:`fixed`,inset:0,zIndex:2147483e3,background:`rgba(15, 23, 42, .5)`}}),(0,W.jsxs)(`div`,{ref:C,"data-wb-self":``,className:`wb-drw-panel`,role:b?`dialog`:void 0,"aria-modal":b?`true`:void 0,"aria-label":s||void 0,tabIndex:-1,onClick:e=>{if(d===!1||!b||e.defaultPrevented)return;let t=e.target.closest?.(`a[href]`),n=(t?.getAttribute(`href`)??``).trim();!t||n===``||n===`#`||/^javascript:/i.test(n)||e.target.closest(`[role="button"]`)&&t.contains(e.target.closest(`[role="button"]`))||x(!1)},style:{outline:`none`,...I?{backgroundColor:`var(--page-surface, #ffffff)`,color:`var(--page-text, #111827)`,boxShadow:`0 0 0 1px var(--page-border, rgba(148, 163, 184, .4))`}:null,...!I&&!j?{width:k,maxWidth:`100%`,boxSizing:`border-box`}:null,...z(_),...I?R:null},children:[(s||c!==!1)&&(0,W.jsxs)(`div`,{...G(`header`),className:`wb-drw-head`,style:{alignItems:`center`,gap:12,padding:`14px 16px`,...I?{display:`flex`}:null},children:[(0,W.jsx)(`span`,{...G(`title`),style:{flexGrow:1,fontWeight:700,fontSize:17},children:s}),c!==!1&&(0,W.jsx)(`button`,{type:`button`,"aria-label":`Close`,...G(`close-button`),onClick:ee,style:{background:`transparent`,border:0,color:`inherit`,cursor:`pointer`,fontSize:20,lineHeight:1,padding:4,opacity:.75},children:`✕`})]}),(0,W.jsx)(`div`,{...G(`content`),children:g?.content})]})]});return(0,W.jsxs)(`div`,{ref:e=>{E.current=e,typeof v==`function`?v(e):v&&(v.current=e)},id:e||void 0,"data-wb-redirect":``,className:`${S}${b?` is-open`:``}`,children:[(0,W.jsx)(`style`,{children:F}),i===`button`&&(0,W.jsxs)(`button`,{type:`button`,...G(`trigger`),className:`wb-drw-trigger`,"aria-expanded":b,"aria-label":a?void 0:s||`Menu`,onClick:()=>!y&&x(!0),style:{alignItems:`center`,gap:8,padding:`8px 12px`,border:`1px solid var(--page-border, rgba(148, 163, 184, .4))`,borderRadius:8,background:`transparent`,color:`inherit`,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,...I?{display:`inline-flex`,marginBottom:L?12:0}:null},children:[(0,W.jsx)(`svg`,{...G(`icon`),width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:No(o)})}),a?(0,W.jsx)(`span`,{children:a}):null]}),I&&i!==`button`&&!L&&(0,W.jsxs)(`div`,{style:{...Fe,display:`inline-flex`,alignItems:`center`,gap:6,padding:`4px 10px`,border:`1px dashed rgba(100, 116, 139, .55)`,borderRadius:6,fontSize:12,lineHeight:1.4,color:`rgba(100, 116, 139, .9)`,verticalAlign:`top`},children:[(0,W.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,W.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),(0,W.jsx)(`path`,{d:n===`right`?`M15 4v16`:n===`top`?`M3 10h18`:n===`bottom`?`M3 14h18`:`M9 4v16`})]}),h]}),D?(0,wt.createPortal)((0,W.jsx)(`div`,{className:`${S}${b?` is-open`:``}`,"data-wb":D.wb,"data-wb-redirect":``,style:{display:`contents`},children:te}),D.target):te]})}function Fo({target:e=``,breakpoint:t=`tablet`,label:n=``,icon:r=``,forceMode:i,style:a,nodeRef:o,inert:s=!1}){let c=`wb-dbt-${(0,l.useId)().replace(/[^\w-]/g,``)}`,u=jo[t],d=i||t===`always`||!u?``:`@media (min-width: ${u+1}px) { .${c} { display: none !important; } }`,f=i===`inline`;return(0,W.jsxs)(W.Fragment,{children:[d?(0,W.jsx)(`style`,{children:d}):null,(0,W.jsxs)(`button`,{ref:o,type:`button`,className:c,"data-webim-open":!s&&e?e:void 0,"aria-label":n?void 0:`Menu`,onClick:s?e=>e.preventDefault():void 0,style:{display:f&&!s?`none`:`inline-flex`,opacity:f&&s?.35:void 0,alignItems:`center`,gap:8,padding:`8px 10px`,border:0,borderRadius:8,background:`transparent`,color:`inherit`,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,...z(a)},children:[(0,W.jsx)(`svg`,{...G(`icon`),width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:No(r)})}),n?(0,W.jsx)(`span`,{...G(`label`),children:n}):null]})]})}var Io={small:380,medium:560,large:820,full:`100%`};function Lo({dialogId:e=``,trigger:t=`button`,triggerLabel:n=`Open`,openOn:r=`trigger`,delay:i=0,size:a=`medium`,title:o=``,showClose:s=!0,backdropClose:c=!0,position:u=`center`,actions:d=[],showCloseAction:f=!1,closeLabel:p=`Close`,actionsAlign:m=`right`,linked:h,style:g,nodeRef:_,inert:v=!1}){let[y,b]=(0,l.useState)(!1),x=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(v||!e)return;let t=t=>{t.target.closest?.(`a[href="#${e}"], [data-webim-open="${e}"]`)&&(t.preventDefault(),b(!0))};return document.addEventListener(`click`,t),()=>document.removeEventListener(`click`,t)},[v,e]),(0,l.useEffect)(()=>{if(v||r!==`load`)return;let e=setTimeout(()=>b(!0),Math.max(0,Number(i)||0)*1e3);return()=>clearTimeout(e)},[v,r,i]),(0,l.useEffect)(()=>{if(v||!y)return;let e=e=>e.key===`Escape`&&b(!1);document.addEventListener(`keydown`,e);let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,x.current?.focus?.(),()=>{document.removeEventListener(`keydown`,e),document.body.style.overflow=t}},[v,y]);let S=Io[a]??Io.medium,C=e=>{let t=e.variant??`primary`,n={padding:`9px 16px`,borderRadius:6,cursor:`pointer`,fontSize:14,fontFamily:`inherit`,textDecoration:`none`,display:`inline-block`,...{primary:{background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`,border:`1px solid transparent`},outline:{background:`transparent`,color:`inherit`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`},text:{background:`transparent`,color:`inherit`,border:`1px solid transparent`},danger:{background:`#dc2626`,color:`#ffffff`,border:`1px solid transparent`}}[t]??{}};return e.href&&!v?(0,W.jsx)(`a`,{...G(`button`,/^[a-z]+$/.test(t)&&`button-${t}`),href:e.href,target:e.target||void 0,rel:e.target===`_blank`?`noopener noreferrer`:void 0,style:n,children:e.label},e.key):(0,W.jsx)(`button`,{...G(`button`,/^[a-z]+$/.test(t)&&`button-${t}`),type:`button`,onClick:()=>!v&&b(!1),style:n,children:e.label},e.key)},w=Array.isArray(d)?d:[],T=w.filter(e=>e.side===`left`),E=w.filter(e=>e.side!==`left`),D=f===!0?C({key:`__close`,label:p||`Close`,variant:`outline`}):null,O=T.length||E.length||D?(0,W.jsxs)(`div`,{...G(`footer`),style:{display:`flex`,alignItems:`center`,gap:8,padding:`14px 20px`,borderTop:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,justifyContent:T.length?`space-between`:m===`left`?`flex-start`:m===`center`?`center`:`flex-end`},children:[T.length>0&&(0,W.jsx)(`div`,{style:{display:`flex`,gap:8},children:T.map(C)}),(0,W.jsxs)(`div`,{style:{display:`flex`,gap:8},children:[D,E.map(C)]})]}):null,k=(0,W.jsxs)(`div`,{ref:x,role:`dialog`,"aria-modal":v?void 0:`true`,"aria-label":o||void 0,tabIndex:-1,onClick:e=>e.stopPropagation(),style:{width:typeof S==`number`?`min(${S}px, 100%)`:S,maxHeight:v?void 0:`85vh`,overflowY:v?void 0:`auto`,borderRadius:12,background:`var(--page-surface, #ffffff)`,color:`var(--page-text, #111827)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,boxShadow:v?`none`:`0 24px 64px rgba(15, 23, 42, 0.35)`,outline:`none`,...z(g)},children:[(o||s!==!1)&&(0,W.jsxs)(`div`,{...G(`header`),style:{display:`flex`,alignItems:`center`,gap:12,padding:`16px 20px`,borderBottom:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`},children:[(0,W.jsx)(`span`,{...G(`title`),style:{fontWeight:700,fontSize:17,flexGrow:1,fontFamily:`var(--page-heading-font, inherit)`},children:o}),s!==!1&&(0,W.jsx)(`button`,{type:`button`,"aria-label":`Close`,...G(`close-button`),onClick:()=>!v&&b(!1),style:{background:`transparent`,border:0,color:`inherit`,cursor:`pointer`,fontSize:20,lineHeight:1,padding:2,opacity:.7},children:`✕`})]}),(0,W.jsx)(`div`,{...G(`content`),style:{padding:20},children:h?.content}),O]});return(0,W.jsxs)(`div`,{ref:_,id:e||void 0,style:v?void 0:{display:`contents`},children:[t===`button`&&(0,W.jsx)(`button`,{type:`button`,...G(`trigger`),onClick:()=>!v&&b(!0),style:{padding:`10px 18px`,border:0,borderRadius:6,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`},children:n}),v?(0,W.jsx)(`div`,{style:{marginTop:t===`button`?12:0},children:k}):y&&(0,W.jsx)(`div`,{...G(`backdrop`),onClick:c===!1?void 0:()=>b(!1),style:{position:`fixed`,inset:0,zIndex:2147483e3,display:`flex`,alignItems:u===`top`?`flex-start`:`center`,justifyContent:`center`,padding:20,paddingTop:u===`top`?`8vh`:20,background:`rgba(15, 23, 42, 0.55)`,backdropFilter:`blur(2px)`},children:k})]})}function Ro({dropdownId:e=``,trigger:t=`button`,triggerLabel:n=`Menu`,openOn:r=`hover`,align:i=`left`,panelWidth:a=``,offset:o=8,editorOpen:s=!0,linked:c,style:u,nodeRef:d,inert:f=!1}){let[p,m]=(0,l.useState)(!1),h=(0,l.useRef)(null),g=(0,l.useRef)(null),_=r!==`click`,v=()=>{g.current&&clearTimeout(g.current),g.current=null},y=()=>{v(),g.current=setTimeout(()=>m(!1),160)};(0,l.useEffect)(()=>{if(f||!e)return;let t=`[data-webim-toggle="${e}"]`,n=e=>{e.target.closest?.(t)&&(e.preventDefault(),v(),m(e=>!e))},r=e=>{e.target.closest?.(t)&&(v(),m(!0))},i=e=>{let n=e.target.closest?.(t);!n||e.relatedTarget&&n.contains(e.relatedTarget)||y()};return document.addEventListener(`click`,n),_&&(document.addEventListener(`mouseover`,r),document.addEventListener(`mouseout`,i)),()=>{document.removeEventListener(`click`,n),document.removeEventListener(`mouseover`,r),document.removeEventListener(`mouseout`,i)}},[f,e,_]),(0,l.useEffect)(()=>{if(f||!p)return;let t=t=>{h.current?.contains(t.target)||e&&t.target.closest?.(`[data-webim-toggle="${e}"]`)||m(!1)},n=e=>e.key===`Escape`&&m(!1);return document.addEventListener(`mousedown`,t),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`mousedown`,t),document.removeEventListener(`keydown`,n)}},[f,p,e]),(0,l.useEffect)(()=>v,[]);let b=Number(a)>0?Number(a):null,x=f?s!==!1:p,S=(0,W.jsx)(`div`,{style:{position:`absolute`,top:`calc(100% + ${Number(o)||0}px)`,...i===`right`?{right:0}:i===`center`?{left:`50%`,transform:`translateX(-50%)`}:{left:0},zIndex:60,display:x?`block`:`none`,minWidth:b??240,width:b??void 0,maxWidth:`92vw`,padding:14,borderRadius:10,background:`var(--page-surface, #ffffff)`,color:`var(--page-text, inherit)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,boxShadow:`0 16px 44px rgba(15, 23, 42, 0.22)`,...z(u)},children:c?.content??null});return(0,W.jsxs)(`div`,{ref:e=>{h.current=e,d&&d(e)},id:e||void 0,onMouseEnter:!f&&_?()=>{v(),m(!0)}:void 0,onMouseLeave:!f&&_?y:void 0,style:{position:`relative`,display:`inline-block`},children:[t!==`none`&&(0,W.jsxs)(`button`,{type:`button`,...G(`trigger`),"aria-haspopup":`true`,"aria-expanded":f?void 0:p,onClick:()=>!f&&m(e=>!e),style:{padding:`9px 16px`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,borderRadius:6,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,background:`var(--page-surface, transparent)`,color:`inherit`,display:`inline-flex`,alignItems:`center`,gap:6},children:[n,(0,W.jsx)(`span`,{"aria-hidden":`true`,...G(`chevron`),style:{fontSize:10,opacity:.7},children:`▾`})]}),S]})}var zo={PageRoot:wr,MarkdownBlock:Ur,CalendarBlock:Eo,LogoCarousel:ko,DialogBlock:Lo,DrawerBlock:Po,DrawerTrigger:Fo,DropdownBlock:Ro,Section:Tr,Container:Er,LinkBlock:Dr,Heading:Or,TextBlock:qr,ButtonBlock:Zr,ImageBlock:Qr,Spacer:ui,Divider:di,BoxBlock:fi,SliderBlock:vi,CanvasSlider:yi,TabsBlock:Wi,QuickStack:Ca,CollectionList:Ta,CollectionSearch:Ea,BreadcrumbsBlock:Da,PaginationBlock:Oa,StepperBlock:Ga,SocialLinksBlock:Wa,ThemeModeBlock:Na,ScrollTopBlock:Ha,CounterBlock:Va,OrgChartBlock:lo,TableBlock:vo,IconBlock:ji,MapBlock:ki,MasonryBlock:Ni,AccordionBlock:Gi,NavbarBlock:Ui,MenuTreeBlock:zi,ListBlock:Kr,TextSpan:Nr,QuoteBlock:Gr,TextLink:Xr,RichTextBlock:Hr,RichContentBlock:Hr,VideoBlock:ti,YouTubeBlock:ri,IframeBlock:ii,PdfBlock:oi,EmbedBlock:li,FormBlock:la,FormLabel:ha,FormFieldset:xa,FormInput:ga,FormTextarea:_a,FormCheckbox:e=>(0,W.jsx)(va,{kind:`checkbox`,...e}),FormRadio:e=>(0,W.jsx)(va,{kind:`radio`,...e}),FormSelect:ya,FormFile:ba,FormRecaptcha:pa,FormSubmit:Sa},Bo={id:`access`,label:`Accessibility toolbar`,category:`Apps`,keys:[`AccessibilityToolbar`],ssr:`shell`,settings:[]},Vo=/^[A-Za-z0-9_-]{4,64}$/;function Ho(e){try{let t=new URL(String(e||``).trim());return t.protocol===`https:`||t.protocol===`http:`?t.origin:``}catch{return``}}var Uo=e=>Vo.test(String(e||``).trim());function Wo({server:e,siteKey:t,inert:n}){let r=Ho(e),i=String(t||``).trim(),a=typeof window<`u`&&!!window.__WEBIM_DASHBOARD__;return n||a||!r||!Uo(i)?null:(0,W.jsx)(`script`,{async:!0,src:`${r}/widget.js`,"data-site":i})}var Go={id:`auth`,label:`Accounts`,category:`Apps`,keys:[`SiteLoginForm`,`SiteAccountMenu`],ssr:`shell`,settings:[`site.authRedirect`]},Ko=(0,l.createContext)({user:null,status:`idle`,ensure:()=>{},refresh:()=>{},signOut:()=>{}});function qo(e,t){return t?/^https?:\/\//i.test(t)?t:`${e.replace(/\/+$/,``)}${t.startsWith(`/`)?t:`/${t}`}`:``}function Jo(e){let t=e&&typeof e==`object`?e[`site.session`]:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:{},r=e=>typeof e==`string`?e.trim():``,i=r(n.url),a=r(n.mePath),o=r(n.logoutPath);return{mode:n.mode===`custom`||n.mode===`off`?n.mode:`system`,url:i,mePath:a,logoutPath:o,meUrl:qo(i,a),logoutUrl:qo(i,o),loginPage:r(n.loginPage),userPath:r(n.userPath),auth:n.auth===`bearer`?`bearer`:`cookies`,tokenKey:r(n.tokenKey)||`webim_session_token`}}function Yo(e,t){if(!t)return e??null;let n=e;for(let e of t.split(`.`)){if(!n||typeof n!=`object`)return null;n=n[e]}return n??null}function Xo(e){try{return window.localStorage.getItem(e)||``}catch{return``}}function Zo(e){try{window.localStorage.removeItem(e)}catch{}}var Qo=()=>{let e=(0,l.useContext)(Ko);return(0,l.useEffect)(()=>{e.ensure()},[e]),e};function $o({children:e,initialUser:t,disabled:n,apiUrl:r,tenant:i}){let a=(0,l.useContext)(Un),o=r||a?.apiUrl||`/api`,s=i||a?.tenant||``,c=(0,l.useMemo)(()=>Jo(a?.settings),[a?.settings]),[u,d]=(0,l.useState)(t??null),[f,p]=(0,l.useState)(t?`user`:n?`guest`:`idle`),m=(0,l.useRef)(!1),h=(0,l.useCallback)((e,t)=>fetch(`${o}${e}`,{...t,credentials:`include`,headers:{"content-type":`application/json`,...s?{"x-tenant":s}:{},...t?.headers}}),[o,s]),g=(0,l.useCallback)(e=>(d(e),p(e?`user`:`guest`),e),[]),_=(0,l.useCallback)(()=>{if(n)return Promise.resolve(null);if(c.mode===`off`)return Promise.resolve(g(null));if(c.mode===`custom`){let e=c.auth===`bearer`?Xo(c.tokenKey):``;return!c.meUrl||c.auth===`bearer`&&!e?Promise.resolve(g(null)):fetch(c.meUrl,{...c.auth===`bearer`?{headers:{authorization:`Bearer ${e}`}}:{credentials:`include`}}).then(e=>e.ok?e.json():null).then(e=>{let t=Yo(e,c.userPath);return g(t&&typeof t==`object`?t:null)}).catch(()=>g(null))}return h(`/site/me`).then(e=>e.ok?e.json():null).then(e=>g(e?.payload??null)).catch(()=>g(null))},[h,c,n,g]),v=(0,l.useCallback)(()=>{if(c.mode===`off`)return g(null),Promise.resolve();if(c.mode===`custom`){let e=c.auth===`bearer`?Xo(c.tokenKey):``;return(c.logoutUrl?fetch(c.logoutUrl,{method:`post`,...c.auth===`bearer`?{headers:e?{authorization:`Bearer ${e}`}:{}}:{credentials:`include`}}).catch(()=>{}):Promise.resolve()).then(()=>{c.auth===`bearer`&&Zo(c.tokenKey),g(null)})}return h(`/site/logout`,{method:`post`}).catch(()=>{}).then(()=>{g(null)})},[h,c,g]),y=(0,l.useCallback)(()=>{m.current||n||t||(m.current=!0,p(`loading`),_())},[n,t,_]),b=(0,l.useMemo)(()=>({user:u,status:f,ensure:y,refresh:_,signOut:v}),[u,f,y,_,v]);return(0,l.useEffect)(()=>{n||typeof window>`u`||(window.webim={...window.webim,user:u,status:f,loginUrl:c.loginPage||null,requireUser:()=>m.current||t?Promise.resolve(u):_(),refresh:_,signOut:v},window.dispatchEvent(new CustomEvent(`webim:session`,{detail:{user:u,status:f}})))},[n,u,f,t,c.loginPage,_,v]),(0,W.jsx)(Ko.Provider,{value:b,children:e})}function es({when:e,children:t}){let{status:n}=Qo();return!e||e===`always`?t:n===`idle`||n===`loading`?null:e===`user`==(n===`user`)?t:null}function ts({mode:e=`login`,redirect:t,emailLabel:n=`Email`,passwordLabel:r=`Password`,nameLabel:i=`Name`,submitLabel:a,style:o,nodeRef:s,inert:c,linked:u,show:d}){let{tenant:f,apiUrl:p,settings:m}=(0,l.useContext)(Un),[h,g]=(0,l.useState)(`form`),[_,v]=(0,l.useState)(``),[y,b]=(0,l.useState)(!1),x=e===`register`,S=c?d||`form`:h,C=e=>typeof e==`string`&&e.startsWith(`/`)&&!e.startsWith(`//`)?e:``,w=async e=>{if(e.preventDefault(),c)return;let n=new FormData(e.currentTarget);b(!0),v(``);try{let e=await fetch(`${p||`/api`}/site/${x?`register`:`login`}`,{method:`post`,headers:{"content-type":`application/json`,...f?{"x-tenant":f}:{}},credentials:`same-origin`,body:JSON.stringify({email:n.get(`email`),password:n.get(`password`),...x?{name:n.get(`name`)||``}:{}})}),r=await e.json().catch(()=>null);if(!e.ok||r?.success===!1){v(r?.error?.message||`Sign-in failed`),g(`error`),b(!1);return}if(g(`success`),typeof window<`u`){let e=C(t)||C(new URLSearchParams(window.location.search).get(`next`))||C(m?.[`site.authRedirect`])||C(m?.[`apps.auth.redirect`])||`/`;window.location.assign(e)}}catch{v(`Sign-in failed`),g(`error`),b(!1)}};return(0,W.jsxs)(`div`,{ref:s,style:{display:`grid`,gap:12,maxWidth:360,...z(o)},children:[(0,W.jsxs)(`form`,{...G(`form`),onSubmit:w,style:{display:S===`form`?`grid`:`none`,gap:10},children:[x?(0,W.jsxs)(`label`,{...G(`label`),style:{...qi,display:`grid`,gap:6},children:[i,(0,W.jsx)(`input`,{...G(`input`),name:`name`,type:`text`,style:q,...Yi(c)})]}):null,(0,W.jsxs)(`label`,{...G(`label`),style:{...qi,display:`grid`,gap:6},children:[n,(0,W.jsx)(`input`,{...G(`input`),name:`email`,type:`email`,required:!c,style:q,...Yi(c)})]}),(0,W.jsxs)(`label`,{...G(`label`),style:{...qi,display:`grid`,gap:6},children:[r,(0,W.jsx)(`input`,{...G(`input`),name:`password`,type:`password`,required:!c,style:q,...Yi(c)})]}),(0,W.jsx)(`button`,{...G(`button`,y&&`button-busy`),type:c?`button`:`submit`,disabled:y||void 0,style:{...yr,border:0,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,cursor:`pointer`,opacity:y?.6:1},children:a||(x?`Create account`:`Sign in`)}),_?(0,W.jsx)(`p`,{...G(`error`),style:{margin:0,fontSize:14,color:`#dc2626`},children:_}):null]}),(0,W.jsx)(`div`,{style:{display:S===`success`?`block`:`none`},children:u?.success??null}),(0,W.jsx)(`div`,{style:{display:S===`error`?`block`:`none`},children:u?.error??null})]})}function ns({greeting:e=`Hi`,signOutLabel:t=`Sign out`,showEmail:n=!1,style:r,nodeRef:i,inert:a,linked:o,show:s}){let{user:c,status:l,signOut:u}=Qo(),d=a?s||`user`:l,f=a?{name:`Ada Lovelace`,email:`ada@example.com`}:c;return d===`loading`?(0,W.jsx)(`div`,{ref:i,style:{minHeight:24,...z(r)}}):d===`user`?(0,W.jsxs)(`div`,{ref:i,style:{display:`flex`,alignItems:`center`,gap:10,...z(r)},children:[(0,W.jsxs)(`span`,{...G(`greeting`),style:{...qi,fontWeight:600},children:[e,` `,f?.name||f?.email||``]}),n&&f?.email?(0,W.jsx)(`span`,{...G(`email`),style:{...qi,opacity:.7},children:f.email}):null,(0,W.jsx)(`button`,{...G(`button`),type:`button`,onClick:a?void 0:u,style:{...yr,border:0,padding:`8px 16px`,borderRadius:8,fontSize:14,cursor:a?`default`:`pointer`},...Yi(a),children:t})]}):(0,W.jsx)(`div`,{ref:i,style:{display:`flex`,alignItems:`center`,gap:10,...z(r)},children:o?.signedOut??null})}var rs={id:`consent`,label:`Cookie consent`,category:`Apps`,keys:[`CookieConsent`],ssr:`shell`,settings:[]},is=`webim.cookie_consent`;function as(){try{let e=window.localStorage.getItem(is),t=e?JSON.parse(e):null;return t?.choice===`accepted`||t?.choice===`declined`?t.choice:``}catch{return``}}function os(e){try{document.querySelectorAll(`.webim-page`).forEach(t=>t.setAttribute(`data-webim-consent`,e))}catch{}}function ss(e){try{window.localStorage.setItem(is,JSON.stringify({choice:e,at:new Date().toISOString()}))}catch{}os(e);try{window.dispatchEvent(new CustomEvent(`webim:consent`,{detail:{choice:e}}))}catch{}}var cs={bottom:{left:0,right:0,bottom:0},top:{left:0,right:0,top:0},"bottom-left":{left:16,bottom:16,maxWidth:400},"bottom-right":{right:16,bottom:16,maxWidth:400}};function ls({message:e,acceptLabel:t,rejectLabel:n,showReject:r,linkLabel:i,linkHref:a,position:o,linked:s,style:c,nodeRef:u,inert:d}){let[f,p]=(0,l.useState)(!!d),[m,h]=(0,l.useState)(null),g=e=>{h(e),typeof u==`function`&&u(e)};if((0,l.useEffect)(()=>{if(d)return;let e=as();e?os(e):p(!0)},[d,m]),!f)return null;let _=e=>()=>{d||(ss(e),p(!1))},v=cs[o]??cs.bottom,y={appearance:`none`,font:`inherit`,fontSize:14,fontWeight:600,padding:`8px 16px`,borderRadius:8,cursor:d?`default`:`pointer`,whiteSpace:`nowrap`};return(0,W.jsxs)(`div`,{ref:g,role:`region`,"aria-label":`Cookie consent`,style:{...d?{position:`relative`}:{position:`fixed`,zIndex:2147483e3,...v},display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:12,padding:16,background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:o===`bottom`||o===`top`?0:12,boxShadow:`0 8px 30px rgba(15, 23, 42, 0.18)`,fontSize:14,lineHeight:1.5,...z(c)},children:[(0,W.jsxs)(`div`,{...G(`message`),style:{flex:`1 1 260px`,minWidth:0},children:[s?.content??(e||`We use cookies to run this site and to understand how it is used.`),i&&a?(0,W.jsxs)(W.Fragment,{children:[` `,(0,W.jsx)(`a`,{...G(`link`),href:a,onClick:d?e=>e.preventDefault():void 0,style:{color:`var(--page-accent, inherit)`,textDecoration:`underline`},children:i})]}):null]}),(0,W.jsxs)(`div`,{...G(`actions`),style:{display:`flex`,gap:8,flexShrink:0},children:[r===!1?null:(0,W.jsx)(`button`,{...G(`decline-button`),type:`button`,onClick:_(`declined`),style:{...y,background:`transparent`,color:`inherit`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.6))`},children:n||`Decline`}),(0,W.jsx)(`button`,{...G(`accept-button`),type:`button`,onClick:_(`accepted`),style:{...y,background:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`,border:`1px solid transparent`},children:t||`Accept`})]})]})}var us={id:`language`,label:`Language`,category:`Apps`,keys:[`SiteLanguagePicker`],ssr:`prefetch`,settings:[`locales`]},ds={id:`search`,label:`Search`,category:`Apps`,keys:[`SiteSearch`],ssr:`prefetch`,settings:[]},fs=50,ps=2e3;function ms(){return typeof window>`u`?``:new URLSearchParams(window.location.search).get(`q`)??``}function hs(e,t){let n=e?.data??{},r=[];for(let e of Object.values(n)){let t=e==null?``:ir(e);if(t&&r.push(t),r.join(` `).length>ps)break}return r.join(` `).slice(0,ps).toLocaleLowerCase(t||void 0)}function gs({placeholder:e=`Search…`,buttonLabel:t=`Search`,showButton:n=!0,live:r=!1,layout:i=`inline`,includePages:a=!0,collections:o=[],limit:s=10,emptyText:c=`Nothing found`,hint:u=``,style:d,nodeRef:f,inert:p=!1,sample:m=!1}){let{tenant:h,apiUrl:g,locale:_}=(0,l.useContext)(Un),[v,y]=(0,l.useState)(()=>ms()),[b,x]=(0,l.useState)(()=>ms()),[S,C]=(0,l.useState)(null),[w,T]=(0,l.useState)(!1),E=(0,l.useRef)(null),D=i===`popup`;(0,l.useEffect)(()=>{let e=()=>{let e=ms();y(e),x(e)};return window.addEventListener(`popstate`,e),window.addEventListener(`webim:urlchange`,e),()=>{window.removeEventListener(`popstate`,e),window.removeEventListener(`webim:urlchange`,e)}},[]),(0,l.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{y(b),b.trim()&&T(!0)},200);return()=>clearTimeout(e)},[r,b]),(0,l.useEffect)(()=>{if(!D)return;let e=e=>{E.current&&!E.current.contains(e.target)&&T(!1)},t=e=>e.key===`Escape`&&T(!1);return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[D]),(0,l.useEffect)(()=>{let e=!0,t=h?{"x-tenant":h}:{},n=e=>fetch(`${g}${e}`,{headers:t}).then(e=>e.json()).then(e=>e?.payload).catch(()=>null),r=[a?n(`/site/pages`).then(e=>({kind:`page`,rows:Array.isArray(e)?e:[]})):null,...(Array.isArray(o)?o:[]).filter(Boolean).map(e=>n(`/dynamic/${encodeURIComponent(e)}?all=1${_?`&locale=${encodeURIComponent(_)}`:``}`).then(t=>({kind:`entry`,slug:e,rows:Array.isArray(t)?t:Array.isArray(t?.data)?t.data:[]})))].filter(Boolean);return Promise.all(r).then(t=>e&&C(t)),()=>{e=!1}},[g,h,_,a,JSON.stringify(o)]);let O=v.trim().toLocaleLowerCase(_||void 0),k=[];if(O&&S)for(let e of S)if(e.kind===`page`)for(let t of e.rows){if(t?.access&&t.access!==`public`)continue;let e=String(t?.title??``);`${e} ${t?.slug??``}`.toLocaleLowerCase(_||void 0).includes(O)&&k.push({key:`page:${t.slug}`,title:e||t.slug,url:`/${t.slug}`,kind:`page`})}else for(let t of e.rows){if(!hs(t,_).includes(O))continue;let n=t?.data??{},r=ir(n.name)||`Untitled`,i=ir(n.slug);k.push({key:`entry:${t.id}`,title:r,url:i?`/${e.slug}/${i}`:`/${e.slug}`,kind:`entry`})}let A=k.slice(0,Math.min(Math.max(1,s),fs)),j=e=>{if(p){e.preventDefault(),y(b),T(!0);return}if(typeof window>`u`||!window.history?.pushState)return;e.preventDefault();let t=new URLSearchParams(window.location.search);b.trim()?t.set(`q`,b.trim()):t.delete(`q`),t.delete(`page`);let n=t.toString();window.history.pushState({},``,`${window.location.pathname}${n?`?${n}`:``}`),window.dispatchEvent(new Event(`webim:urlchange`)),T(!0)},M=m&&!O?[{key:`sample-1`,title:`About us`,url:`/about`,kind:`page`},{key:`sample-2`,title:`Spring collection`,url:`/blog/spring`,kind:`entry`}]:null,N=M??A,P=!M&&O&&S&&!A.length,F=!D||w&&(N.length>0||P),I=N.length>0&&(0,W.jsx)(`ul`,{...G(`results`),style:{listStyle:`none`,margin:0,padding:0,display:`flex`,flexDirection:`column`,gap:2},children:N.map(e=>(0,l.createElement)(`li`,{...G(`item`),key:e.key},(0,W.jsxs)(`a`,{...G(`result`),href:p?void 0:e.url,style:{display:`block`,padding:`10px 12px`,borderRadius:6,color:`inherit`,textDecoration:`none`,border:D?0:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`},children:[(0,W.jsx)(`span`,{...G(`title`),style:{display:`block`,fontWeight:600},children:e.title}),(0,W.jsx)(`span`,{...G(`url`),style:{display:`block`,fontSize:12,opacity:.6},children:e.url})]})))});return(0,W.jsx)(`div`,{ref:f,style:{width:`100%`,...z(d)},children:(0,W.jsxs)(`div`,{ref:E,style:{position:`relative`},children:[(0,W.jsxs)(`form`,{...G(`form`),method:`get`,onSubmit:j,style:{display:`flex`,gap:8,alignItems:`center`},children:[(0,W.jsx)(`input`,{...G(`input`),type:`search`,name:`q`,value:b,placeholder:e,onChange:e=>x(e.target.value),onFocus:()=>O&&T(!0),style:{...q,flexGrow:1,minWidth:0}}),n!==!1&&(0,W.jsx)(`button`,{...G(`button`),type:`submit`,style:{padding:`10px 16px`,border:0,borderRadius:6,cursor:`pointer`,fontSize:14,fontFamily:`inherit`,background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`},children:t})]}),u&&(0,W.jsx)(`div`,{...G(`hint`),style:{fontSize:13,opacity:.65,marginTop:6},children:u}),F&&(0,W.jsxs)(`div`,{...G(`panel`),style:D?{position:`absolute`,top:`100%`,left:0,right:0,zIndex:30,marginTop:6,padding:6,maxHeight:320,overflowY:`auto`,borderRadius:8,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,background:`var(--page-surface, #f2f2f2)`,boxShadow:`0 12px 32px rgba(15, 23, 42, 0.18)`}:{marginTop:14},children:[I,P&&(0,W.jsx)(`div`,{...G(`empty`),style:{fontSize:14,opacity:.65,padding:D?`10px 12px`:0},children:c})]})]})})}var _s={id:`shop`,label:`Shop`,category:`Shop`,keys:[`ShopProductGrid`,`ShopProduct`,`ShopCartButton`,`ShopCheckout`,`ShopOrderHistory`,`ShopCurrencyPicker`,`ShopFavorites`],ssr:`shell`,settings:[`shop.enabled`]},vs=`webim.cart.`,ys=`webim.currency.`,bs=new Map,xs={get(e){try{return window.localStorage.getItem(e)??``}catch{return``}},set(e,t){try{t?window.localStorage.setItem(e,t):window.localStorage.removeItem(e)}catch{}}};function Ss(e){if(typeof window>`u`)return!1;try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}}async function Cs(e,t,n,{method:r=`GET`,body:i}={}){let a=await fetch(`${e}${n}`,{method:r,...Ss(e)?{credentials:`include`}:{},headers:{...t?{"x-tenant":t}:{},...i?{"content-type":`application/json`}:{}},body:i?JSON.stringify(i):void 0}),o=await a.json().catch(()=>null);if(!o||o.success===!1||!a.ok){let e=o?.error;throw{message:(e&&typeof e==`object`?e.message:e)||`Request failed (${a.status})`,code:(e&&typeof e==`object`?e.code:o?.code)||`ERROR`}}return o.payload}var ws={id:``,currency:``,lines:[],count:0,subtotal:0,coupon:null,coupon_error:null,coupon_error_code:null,discounts:[],discount_total:0,shipping_before:0,shipping_total:0,total:0};function Ts(e,t){let n=`${vs}${t||`default`}`,r=`${ys}${t||`default`}`,i=new Set,a={cart:ws,loading:!1,loaded:!1,error:null,currency:xs.get(r)},o=null,s=()=>i.forEach(e=>e()),c=e=>{a={...a,...e},s()},l=e=>(e&&typeof e==`object`&&(e.id&&xs.set(n,e.id),c({cart:e,loaded:!0,error:null})),e),u=()=>{if(o)return o;let r=xs.get(n),i=new URLSearchParams({...r?{id:r}:{},...a.currency?{currency:a.currency}:{}}).toString();return c({loading:!0}),o=Cs(e,t,`/store/cart${i?`?${i}`:``}`).then(l).catch(e=>c({error:e,loaded:!0})).finally(()=>{o=null,c({loading:!1})}),o},d=async(r,i,o)=>{c({loading:!0});try{return l(await Cs(e,t,`/store/cart`,{method:`POST`,body:{cart_id:xs.get(n)||void 0,product_id:r,variant_id:i??null,quantity:o,currency:a.currency||void 0}}))}finally{c({loading:!1})}};return typeof window<`u`&&window.addEventListener(`storage`,e=>{e.key===r&&c({currency:xs.get(r)}),(e.key===n||e.key===r)&&u()}),{getState:()=>a,subscribe:e=>(i.add(e),()=>i.delete(e)),load:u,setLine:d,add:(e,t,n=1)=>{let r=a.cart.lines.find(n=>n.product_id===e&&(n.variant_id??null)===(t??null));return d(e,t,(r?.quantity??0)+n)},setCoupon:async r=>{c({loading:!0});try{return l(await Cs(e,t,`/store/cart/coupon`,{method:`POST`,body:{cart_id:xs.get(n),code:r}}))}finally{c({loading:!1})}},setCountry:async(r,i)=>xs.get(n)?l(await Cs(e,t,`/store/cart/country`,{method:`POST`,body:{cart_id:xs.get(n),country:r,...i!==void 0&&{postal_code:i}}})):a.cart,setDelivery:async r=>xs.get(n)?l(await Cs(e,t,`/store/cart/delivery`,{method:`POST`,body:{cart_id:xs.get(n),delivery:r}})):a.cart,setCurrency:async i=>{if(xs.set(r,i),c({currency:i}),!xs.get(n))return u();try{return l(await Cs(e,t,`/store/cart/currency`,{method:`POST`,body:{cart_id:xs.get(n),currency:i}}))}catch{return xs.set(r,``),c({currency:``}),u()}},reset:()=>{xs.set(n,``),c({cart:ws})},cartId:()=>xs.get(n)}}function Es(e,t){let n=`${e}|${t}`;return bs.has(n)||bs.set(n,Ts(e,t)),bs.get(n)}function Ds(e,t){let n=Array.isArray(e?.currencies)?e.currencies:[];return t&&n.includes(t)?t:e?.currency||``}var Os=`AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW`.split(` `);function ks(e,t=[],n=null){let r;try{r=new Intl.DisplayNames([e||`en`],{type:`region`})}catch{r={of:e=>e}}let i=(n??Os).map(e=>({code:e,name:r.of(e)??e})),a=i.filter(e=>t.includes(e.code)).sort((t,n)=>t.name.localeCompare(n.name,e||void 0)),o=i.filter(e=>!t.includes(e.code)).sort((t,n)=>t.name.localeCompare(n.name,e||void 0));return[...a,...o]}function As(e,t,n){let r=t||`USD`;try{let t=new Intl.NumberFormat(n||void 0,{style:`currency`,currency:r}),i=t.resolvedOptions().maximumFractionDigits??2;return t.format(Number(e||0)/10**i)}catch{return`${(Number(e||0)/100).toFixed(2)} ${r}`}}var js={en:{add:`Add to cart`,adding:`Adding…`,added:`Added to cart`,choose:`Choose options`,soldOut:`Sold out`,onlyLeft:`Only {n} left`,quantity:`Quantity`,cart:`Cart`,emptyCart:`Your cart is empty.`,subtotal:`Subtotal`,shipping:`Shipping`,free:`Free`,total:`Total`,remove:`Remove`,contact:`Contact`,name:`Full name`,email:`E-mail`,phone:`Phone`,address:`Delivery address`,line1:`Address`,line2:`Apartment, suite (optional)`,city:`City`,region:`State / province`,postal:`Postal code`,country:`Country`,note:`Order note (optional)`,gift:`This order is a gift`,giftHint:`No prices on the packing slip in the parcel.`,giftMessage:`Gift message (optional)`,giftRecipient:`Recipient’s name (optional — the parcel is addressed to them)`,payment:`Payment`,stripe:`Card`,bank_transfer:`Bank transfer`,cash_on_delivery:`Cash on delivery`,placeOrder:`Place order`,placing:`Placing order…`,required:`Please fill in the required fields.`,noMethods:`This shop has no payment method set up yet.`,thanks:`Thank you! Your order {number} is placed.`,paid:`Your payment was received.`,awaiting:`We are waiting for your payment to be confirmed.`,transfer:`Please transfer the total using the details below:`,reference:`Payment reference`,referenceNote:`Write this reference in the transfer description — it is how your payment is matched to your order.`,copy:`Copy`,copied:`Copied`,cod:`You will pay when the order is delivered.`,cancelled:`The payment was cancelled — your cart is still here.`,closed:`This shop is not open right now.`,continue:`Continue shopping`,noProducts:`No products yet.`,coupon:`Discount code`,apply:`Apply`,removeCoupon:`Remove`,discount:`Discount`,tax:`VAT`,taxIncluded:`incl. VAT`,chooseCountry:`Choose a country`,noShipping:`This shop does not ship to that country.`,delivery:`Delivery`,deliveryPick:`Enter your country to see the delivery options.`,arrives:`Arrives {date}`,arrivesRange:`Arrives {from} – {to}`,pickupAt:`Pick up at {name}`,pickupNote:`We will let you know when it is ready.`,deliveredBy:`Delivery: {name}`,SHIPPING_UNAVAILABLE:`This shop does not ship to that country.`,DELIVERY_UNAVAILABLE:`That delivery option is no longer available — pick another.`,COUPON_INVALID:`This code is not valid.`,COUPON_NOT_STARTED:`This code is not active yet.`,COUPON_EXPIRED:`This code has expired.`,COUPON_USED_UP:`This code has been used up.`,COUPON_MIN_SUBTOTAL:`Your cart is below this code’s minimum.`,COUPON_MIN_QUANTITY:`Add more items to use this code.`,COUPON_NOT_ELIGIBLE:`This code is not available for your account.`,COUPON_ALREADY_USED:`You have already used this code.`,COUPON_NOT_APPLICABLE:`None of the items in your cart qualify for this code.`,COUPON_NOT_COMBINABLE:`This code can’t be combined with a better discount already applied.`,COUPON_SHIPPING_NA:`This code doesn’t apply to this delivery.`,myOrders:`My orders`,signInForOrders:`Sign in to see your orders.`,noOrders:`You have no orders yet.`,order:`Order`,date:`Date`,status:`Status`,st_pending:`Pending`,st_processing:`Processing`,st_shipped:`Shipped`,downloads_title:`Your downloads`,download:`Download`,download_left:`{count} downloads left`,download_until:`valid until {date}`,download_expired:`expired on {date}`,download_unavailable:`No longer available`,policy_refund:`Refund policy`,policy_privacy:`Privacy policy`,policy_terms:`Terms of service`,policy_shipping:`Shipping policy`,policy_contact:`Contact information`,policy_legal:`Legal notice`,policy_agree:`By placing your order you agree to our {terms}.`,policy_updated:`Last updated {date}`,contact_email:`E-mail`,contact_phone:`Phone`,contact_address:`Address`,contact_trade:`Trade register / VAT number`,close:`Close`,tracking:`Tracking`,track_parcel:`Track parcel`,st_delivered:`Delivered`,st_cancelled:`Cancelled`,pay_unpaid:`Awaiting payment`,pay_refunded:`Refunded`,pay_failed:`Payment failed`,reviewsTitle:`Reviews`,reviewsCount:`{n} reviews`,reviewsOne:`1 review`,qaCount:`{n} Q&A`,lovedBy:`Loved! {n} people favorited this`,lovedByOne:`1 person favorited this`,favorite:`Add to favorites`,unfavorite:`Remove from favorites`,noReviews:`No reviews yet. Be the first to review this product.`,writeReview:`Write a review`,editReview:`Edit your review`,yourRating:`Your rating`,reviewTitle:`Title (optional)`,reviewBody:`What did you think?`,submitReview:`Submit review`,reviewPending:`Thanks! Your review appears here once the shop approves it.`,reviewThanks:`Thanks for your review!`,awaitingApproval:`Awaiting approval`,verified:`Verified purchase`,shopReply:`Reply from the shop`,signInToReview:`Sign in to write a review`,pickRating:`Choose a rating first.`,sortNewest:`Newest`,sortHighest:`Highest rated`,sortLowest:`Lowest rated`,sortHelpful:`Most detailed`,allRatings:`All ratings`,starsN:`{n} stars`,loadMore:`Show more`,questionsTitle:`Questions & answers`,noQuestions:`No questions yet.`,askQuestion:`Ask a question`,questionPlaceholder:`What would you like to know about this product?`,submitQuestion:`Send question`,questionPending:`Thanks! Your question appears here once the shop answers it.`,signInToAsk:`Sign in to ask a question`,answerLabel:`Answer`,qMark:`Q:`,aMark:`A:`,awaitingAnswer:`Waiting for an answer`,anonymous:`A customer`,myFavorites:`My favorites`,noFavorites:`You have no favorites yet.`,signInForFavorites:`Sign in to see your favorites`,REVIEW_BUYERS_ONLY:`Only customers who bought this product can review it.`,QUESTION_LIMIT:`You already have questions waiting for an answer.`,specifications:`Specifications`,yes:`Yes`,no:`No`},tr:{add:`Sepete ekle`,adding:`Ekleniyor…`,added:`Sepete eklendi`,choose:`Seçenekleri gör`,soldOut:`Tükendi`,onlyLeft:`Son {n} adet`,quantity:`Adet`,cart:`Sepet`,emptyCart:`Sepetiniz boş.`,subtotal:`Ara toplam`,shipping:`Kargo`,free:`Ücretsiz`,total:`Toplam`,remove:`Kaldır`,contact:`İletişim`,name:`Ad soyad`,email:`E-posta`,phone:`Telefon`,address:`Teslimat adresi`,line1:`Adres`,line2:`Daire, kat (isteğe bağlı)`,city:`Şehir`,region:`İlçe / bölge`,postal:`Posta kodu`,country:`Ülke`,note:`Sipariş notu (isteğe bağlı)`,gift:`Bu sipariş bir hediye`,giftHint:`Paketteki irsaliyede fiyat yer almaz.`,giftMessage:`Hediye notu (isteğe bağlı)`,giftRecipient:`Alıcının adı (isteğe bağlı — paket bu kişiye gönderilir)`,payment:`Ödeme`,stripe:`Kredi kartı`,bank_transfer:`Havale / EFT`,cash_on_delivery:`Kapıda ödeme`,placeOrder:`Siparişi ver`,placing:`Sipariş veriliyor…`,required:`Lütfen zorunlu alanları doldurun.`,noMethods:`Bu mağazada henüz bir ödeme yöntemi tanımlı değil.`,thanks:`Teşekkürler! {number} numaralı siparişiniz alındı.`,paid:`Ödemeniz alındı.`,awaiting:`Ödemenizin onaylanmasını bekliyoruz.`,transfer:`Lütfen toplam tutarı aşağıdaki bilgilere gönderin:`,reference:`Ödeme referansı`,referenceNote:`Bu referansı havale / EFT açıklamasına yazın — ödemeniz siparişinizle bu sayede eşleşir.`,copy:`Kopyala`,copied:`Kopyalandı`,cod:`Ödemeyi sipariş teslim edilirken yapacaksınız.`,cancelled:`Ödeme iptal edildi — sepetiniz duruyor.`,closed:`Bu mağaza şu anda açık değil.`,continue:`Alışverişe devam et`,noProducts:`Henüz ürün yok.`,coupon:`İndirim kodu`,apply:`Uygula`,removeCoupon:`Kaldır`,discount:`İndirim`,tax:`KDV`,taxIncluded:`dahil KDV`,chooseCountry:`Ülke seçin`,noShipping:`Bu mağaza o ülkeye gönderim yapmıyor.`,delivery:`Teslimat`,deliveryPick:`Teslimat seçeneklerini görmek için ülkenizi seçin.`,arrives:`Tahmini teslim: {date}`,arrivesRange:`Tahmini teslim: {from} – {to}`,pickupAt:`{name} mağazasından teslim alın`,pickupNote:`Hazır olduğunda size haber vereceğiz.`,deliveredBy:`Teslimat: {name}`,SHIPPING_UNAVAILABLE:`Bu mağaza o ülkeye gönderim yapmıyor.`,DELIVERY_UNAVAILABLE:`Bu teslimat seçeneği artık yok — başka birini seçin.`,COUPON_INVALID:`Bu kod geçerli değil.`,COUPON_NOT_STARTED:`Bu kod henüz aktif değil.`,COUPON_EXPIRED:`Bu kodun süresi dolmuş.`,COUPON_USED_UP:`Bu kodun kullanım hakkı dolmuş.`,COUPON_MIN_SUBTOTAL:`Sepetiniz bu kodun alt sınırının altında.`,COUPON_MIN_QUANTITY:`Bu kodu kullanmak için daha fazla ürün ekleyin.`,COUPON_NOT_ELIGIBLE:`Bu kod hesabınız için geçerli değil.`,COUPON_ALREADY_USED:`Bu kodu zaten kullandınız.`,COUPON_NOT_APPLICABLE:`Sepetinizdeki ürünlerden hiçbiri bu koda uygun değil.`,COUPON_NOT_COMBINABLE:`Bu kod, uygulanan daha avantajlı bir indirimle birleştirilemez.`,COUPON_SHIPPING_NA:`Bu kod bu teslimat için geçerli değil.`,myOrders:`Siparişlerim`,signInForOrders:`Siparişlerinizi görmek için giriş yapın.`,noOrders:`Henüz siparişiniz yok.`,order:`Sipariş`,date:`Tarih`,status:`Durum`,st_pending:`Bekliyor`,st_processing:`Hazırlanıyor`,st_shipped:`Kargoda`,downloads_title:`İndirmeleriniz`,download:`İndir`,download_left:`{count} indirme hakkı kaldı`,download_until:`{date} tarihine kadar geçerli`,download_expired:`{date} tarihinde sona erdi`,download_unavailable:`Artık kullanılamıyor`,policy_refund:`İade politikası`,policy_privacy:`Gizlilik politikası`,policy_terms:`Hizmet koşulları`,policy_shipping:`Kargo politikası`,policy_contact:`İletişim bilgileri`,policy_legal:`Yasal bildirim`,policy_agree:`Siparişi vererek {terms} kabul etmiş olursunuz.`,policy_updated:`Son güncelleme: {date}`,contact_email:`E-posta`,contact_phone:`Telefon`,contact_address:`Adres`,contact_trade:`Ticaret sicil / Vergi no`,close:`Kapat`,tracking:`Kargo takibi`,track_parcel:`Kargonu takip et`,st_delivered:`Teslim edildi`,st_cancelled:`İptal edildi`,pay_unpaid:`Ödeme bekleniyor`,pay_refunded:`İade edildi`,pay_failed:`Ödeme başarısız`,reviewsTitle:`Değerlendirmeler`,reviewsCount:`{n} Değerlendirme`,reviewsOne:`1 Değerlendirme`,qaCount:`{n} Soru-Cevap`,lovedBy:`Sevilen ürün! {n} kişi favoriledi!`,lovedByOne:`1 kişi favoriledi`,favorite:`Favorilere ekle`,unfavorite:`Favorilerden çıkar`,noReviews:`Henüz değerlendirme yok. İlk değerlendiren siz olun.`,writeReview:`Değerlendirme yaz`,editReview:`Değerlendirmenizi düzenleyin`,yourRating:`Puanınız`,reviewTitle:`Başlık (isteğe bağlı)`,reviewBody:`Ürün hakkında ne düşünüyorsunuz?`,submitReview:`Değerlendirmeyi gönder`,reviewPending:`Teşekkürler! Değerlendirmeniz mağaza onayladıktan sonra burada görünür.`,reviewThanks:`Değerlendirmeniz için teşekkürler!`,awaitingApproval:`Onay bekliyor`,verified:`Doğrulanmış alışveriş`,shopReply:`Mağazanın yanıtı`,signInToReview:`Değerlendirme yazmak için giriş yapın`,pickRating:`Önce bir puan seçin.`,sortNewest:`En yeni`,sortHighest:`En yüksek puan`,sortLowest:`En düşük puan`,sortHelpful:`En detaylı`,allRatings:`Tüm puanlar`,starsN:`{n} yıldız`,loadMore:`Daha fazla göster`,questionsTitle:`Soru-Cevap`,noQuestions:`Henüz soru yok.`,askQuestion:`Soru sor`,questionPlaceholder:`Bu ürün hakkında ne öğrenmek istersiniz?`,submitQuestion:`Soruyu gönder`,questionPending:`Teşekkürler! Sorunuz mağaza yanıtladıktan sonra burada görünür.`,signInToAsk:`Soru sormak için giriş yapın`,answerLabel:`Yanıt`,qMark:`S:`,aMark:`C:`,awaitingAnswer:`Yanıt bekliyor`,anonymous:`Bir müşteri`,myFavorites:`Favorilerim`,noFavorites:`Henüz favoriniz yok.`,signInForFavorites:`Favorilerinizi görmek için giriş yapın`,REVIEW_BUYERS_ONLY:`Bu ürünü yalnızca satın alan müşteriler değerlendirebilir.`,QUESTION_LIMIT:`Yanıt bekleyen sorularınız var.`,specifications:`Özellikler`,yes:`Evet`,no:`Hayır`}};function Ms(e){let t=js[String(e||``).toLowerCase().split(`-`)[0]]??js.en,n=(e,n)=>{let r=t[e]??js.en[e]??e;return n?r.replace(/\{(\w+)\}/g,(e,t)=>t in n?String(n[t]):e):r};return n.has=e=>e in js.en,n}var Ns=(e,t)=>t?.code&&e.has(t.code)?e(t.code):t?.message??``,Ps=new Map;function Fs(e,t){let n=`${e}|${t}`;return Ps.has(n)||Ps.set(n,Cs(e,t,`/store/policies`).then(e=>Array.isArray(e)?e:[]).catch(()=>(Ps.delete(n),[]))),Ps.get(n)}function Is(e){let t=new Date,n=Math.max(0,Math.round(Number(e)||0));for(;n>0;)t.setDate(t.getDate()+1),t.getDay()!==0&&t.getDay()!==6&&--n;return t}function Ls(e,t,n,r){let i=e=>e!=null&&Number.isFinite(Number(e));if(!i(n)&&!i(r))return``;let a;try{a=new Intl.DateTimeFormat(t||`en`,{month:`short`,day:`numeric`})}catch{a=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`})}let o=a.format(Is(i(n)?n:r)),s=a.format(Is(i(r)?r:n));return o===s?e(`arrives`,{date:o}):e(`arrivesRange`,{from:o,to:s})}var Rs=`var(--page-muted, rgba(100,116,139,1))`,zs=`1px solid var(--page-border, #d1d5db)`,Bs=`var(--page-surface, #f2f2f2)`,Vs=`#f59e0b`,Hs={...yr,border:0,borderRadius:`8px`,padding:`10px 18px`,fontSize:`14px`,fontWeight:600,fontFamily:`inherit`},Us={...Hs,backgroundColor:`transparent`,color:`var(--page-text, #111827)`,border:zs};function Ws(){let{tenant:e,apiUrl:t,locale:n,settings:r}=(0,l.useContext)(Un),i=(0,l.useMemo)(()=>Ms(n),[n]),a=e=>r?.[e]!==!1;return{tenant:e,apiUrl:t||`/api`,locale:n,words:i,reviewsOn:a(`shop.reviews`),questionsOn:a(`shop.questions`),favoritesOn:a(`shop.favorites`),moderated:r?.[`shop.reviewModeration`]!==`auto`,loginHref:()=>{let e=Jo(r).loginPage||`/login`,t=typeof window>`u`?``:`${window.location.pathname}${window.location.search}`;return t?`${e}${e.includes(`?`)?`&`:`?`}next=${encodeURIComponent(t)}`:e}}}var Gs=(e,t)=>{try{return new Intl.NumberFormat(t||void 0,{notation:`compact`,maximumFractionDigits:1}).format(e)}catch{return String(e)}},Ks=(e,t)=>{try{return new Intl.DateTimeFormat(t||void 0,{day:`numeric`,month:`long`,year:`numeric`}).format(new Date(e))}catch{return String(e).slice(0,10)}},qs=`M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z`;function Js({fill:e=0,size:t=16,clipId:n}){return(0,W.jsxs)(`svg`,{width:t,height:t,viewBox:`0 0 24 24`,"aria-hidden":`true`,style:{display:`block`},children:[(0,W.jsx)(`defs`,{children:(0,W.jsx)(`clipPath`,{id:n,children:(0,W.jsx)(`rect`,{x:`0`,y:`0`,width:24*e,height:`24`})})}),(0,W.jsx)(`path`,{d:qs,fill:`var(--page-border, #d1d5db)`}),e>0&&(0,W.jsx)(`path`,{d:qs,fill:Vs,clipPath:`url(#${n})`})]})}function Ys({value:e=0,size:t=16}){let n=(0,l.useId)().replace(/:/g,``);return(0,W.jsx)(`span`,{role:`img`,"aria-label":`${e}/5`,...G(`stars`),style:{display:`inline-flex`,gap:`1px`,verticalAlign:`middle`},children:[0,1,2,3,4].map(r=>(0,W.jsx)(Js,{fill:Math.max(0,Math.min(1,e-r)),size:t,clipId:`${n}-${r}`},r))})}function Xs({value:e,onChange:t,size:n=28,label:r}){let i=(0,l.useId)().replace(/:/g,``),[a,o]=(0,l.useState)(0),s=a||e;return(0,W.jsx)(`span`,{role:`radiogroup`,"aria-label":r,...G(`star-picker`),style:{display:`inline-flex`,gap:`2px`},onMouseLeave:()=>o(0),children:[1,2,3,4,5].map(r=>(0,W.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e===r,"aria-label":String(r),onMouseEnter:()=>o(r),onClick:()=>t(r),style:{background:`none`,border:0,padding:0,cursor:`pointer`,lineHeight:0},children:(0,W.jsx)(Js,{fill:+(s>=r),size:n,clipId:`${i}-${r}`})},r))})}function Zs(e,{inert:t}){let{tenant:n,apiUrl:r,favoritesOn:i}=Ws(),[a,o]=(0,l.useState)({favorited:!1,count:null});(0,l.useEffect)(()=>{if(!e||!i||t)return;let a=!0;return Cs(r,n,`/store/products/${encodeURIComponent(e)}/favorite`).then(e=>a&&o(e)).catch(()=>{}),()=>{a=!1}},[r,n,e,i,t]);let s=async()=>{let t=!a.favorited;o(e=>({favorited:t,count:Math.max(0,(e.count??0)+(t?1:-1))}));try{o(await Cs(r,n,`/store/products/${encodeURIComponent(e)}/favorite`,{method:`POST`,body:{on:t}}))}catch(e){throw o(e=>({favorited:!t,count:Math.max(0,(e.count??0)+(t?-1:1))})),e}};return{...a,toggle:s}}var Qs=e=>(0,W.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,"aria-hidden":`true`,style:{display:`block`},children:(0,W.jsx)(`path`,{d:`M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.1 5.2 3 1.6-1.9 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z`,fill:e?`#ef4444`:`none`,stroke:e?`#ef4444`:`currentColor`,strokeWidth:`1.8`})});function $s({product:e,inert:t=!1,sample:n=!1}){let{locale:r,words:i,reviewsOn:a,questionsOn:o,favoritesOn:s,loginHref:c}=Ws(),u=e?.sample?``:e?.slug||e?.id||``,d=Zs(u,{inert:t||!u}),[f,p]=(0,l.useState)(``),m=n?29:e?.rating_count??0,h=n?4.3:Number(e?.rating_avg??0),g=n?110:e?.questions_count??0,_=n?1300:d.count??e?.favorites_count??0,v=e=>n=>{n.preventDefault(),!t&&document.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`start`})},y=async()=>{if(!(t||!u))try{await d.toggle()}catch(e){e?.code===`LOGIN_REQUIRED`?window.location.assign(c()):p(Ns(i,e))}},b=[];return a&&m>0&&b.push((0,W.jsxs)(`span`,{...G(`rating`),style:{display:`inline-flex`,alignItems:`center`,gap:`6px`},children:[(0,W.jsx)(`strong`,{...G(`rating-value`),children:h.toLocaleString(r||void 0,{minimumFractionDigits:1,maximumFractionDigits:1})}),(0,W.jsx)(Ys,{value:h}),(0,W.jsx)(`a`,{href:`#reviews`,onClick:v(`reviews`),...G(`rating-link`),style:{color:`inherit`},children:m===1?i(`reviewsOne`):i(`reviewsCount`,{n:Gs(m,r)})})]},`r`)),o&&g>0&&b.push((0,W.jsx)(`a`,{href:`#questions`,onClick:v(`questions`),...G(`qa-link`),style:{color:`inherit`},children:i(`qaCount`,{n:Gs(g,r)})},`q`)),!b.length&&!s?null:(0,W.jsxs)(`div`,{...G(`engagement`),style:{display:`flex`,flexDirection:`column`,gap:`8px`,fontSize:`14px`},children:[b.length>0&&(0,W.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`10px`,flexWrap:`wrap`},children:b.flatMap((e,t)=>t?[(0,W.jsx)(`span`,{...G(`separator`),style:{color:Rs},children:`•`},`s${t}`),e]:[e])}),s&&(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`10px`},children:[(0,W.jsx)(`button`,{type:`button`,onClick:y,...G(`favorite-button`,d.favorited&&`favorite-button-active`),"aria-pressed":d.favorited,"aria-label":d.favorited?i(`unfavorite`):i(`favorite`),title:d.favorited?i(`unfavorite`):i(`favorite`),style:{...Us,padding:`7px`,borderRadius:`999px`,lineHeight:0},children:Qs(d.favorited)}),_>0&&(0,W.jsx)(`span`,{...G(`favorites-count`),style:{fontWeight:600},children:_===1?i(`lovedByOne`):i(`lovedBy`,{n:Gs(_,r)})})]}),f&&(0,W.jsx)(`span`,{...G(`note`),style:{color:Rs,fontSize:`13px`},children:f})]})}var ec={data:[{id:`s1`,author:`Ayşe Y.`,rating:5,title:`Harika`,body:`Beklediğimden de iyi çıktı.`,verified:!0,reply:``,created_at:new Date().toISOString()},{id:`s2`,author:`Mehmet K.`,rating:4,title:``,body:`Kaliteli, kargo biraz gecikti.`,verified:!1,reply:`Geri bildiriminiz için teşekkürler!`,created_at:new Date(Date.now()-864e5*3).toISOString()}],total:{all:29,filtered:29},summary:{average:4.3,count:29,histogram:[1,1,3,6,18]}};function tc({product:e,inert:t=!1,sample:n=!1}){let{tenant:r,apiUrl:i,locale:a,words:o,reviewsOn:s,moderated:c,loginHref:u}=Ws(),d=Qo(),f=e?.sample?``:e?.slug||e?.id||``,[p,m]=(0,l.useState)(null),[h,g]=(0,l.useState)(`newest`),[_,v]=(0,l.useState)(0),[y,b]=(0,l.useState)(5),[x,S]=(0,l.useState)(0),[C,w]=(0,l.useState)({rating:0,title:``,body:``}),[T,E]=(0,l.useState)(!1),[D,O]=(0,l.useState)(!1),[k,A]=(0,l.useState)(``);if((0,l.useEffect)(()=>{if(!s||!f)return;let e=!0,t=`?limit=${y}&sort=${h}${_?`&rating=${_}`:``}`;return Cs(i,r,`/store/products/${encodeURIComponent(f)}/reviews${t}`).then(t=>e&&m(t)).catch(()=>e&&m({data:[],total:{all:0,filtered:0},summary:{average:0,count:0,histogram:[0,0,0,0,0]}})),()=>{e=!1}},[i,r,f,h,_,y,x,s]),!s)return null;let j=n||!f?ec:p,M=j?.summary??{average:0,count:0,histogram:[0,0,0,0,0]},N=j?.data?.find(e=>e.mine),P=d.status===`user`,F=()=>{if(!t){if(!P){window.location.assign(u());return}w(N?{rating:N.rating,title:N.title,body:N.body}:{rating:0,title:``,body:``}),A(``),E(!0)}},I=async e=>{if(e.preventDefault(),!C.rating){A(o(`pickRating`));return}O(!0),A(``);try{await Cs(i,r,`/store/products/${encodeURIComponent(f)}/reviews`,{method:`POST`,body:C}),E(!1),A(o(c?`reviewPending`:`reviewThanks`)),S(e=>e+1)}catch(e){e?.code===`LOGIN_REQUIRED`?window.location.assign(u()):A(Ns(o,e))}finally{O(!1)}},L=Math.max(1,...M.histogram);return(0,W.jsxs)(`section`,{id:`reviews`,...G(`reviews`),style:{display:`flex`,flexDirection:`column`,gap:`16px`,scrollMarginTop:`80px`},children:[(0,W.jsx)(`h2`,{...G(`reviews-title`),style:{margin:0,fontSize:`var(--page-h3, 24px)`},children:o(`reviewsTitle`)}),(0,W.jsxs)(`div`,{...G(`reviews-summary`),style:{display:`flex`,gap:`32px`,flexWrap:`wrap`,alignItems:`center`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:`4px`},children:[(0,W.jsx)(`span`,{...G(`reviews-average`),style:{fontSize:`40px`,fontWeight:700,lineHeight:1},children:M.count?M.average.toLocaleString(a||void 0,{minimumFractionDigits:1,maximumFractionDigits:1}):`–`}),(0,W.jsx)(Ys,{value:M.average,size:18}),(0,W.jsx)(`span`,{...G(`reviews-count`),style:{color:Rs,fontSize:`13px`},children:M.count===1?o(`reviewsOne`):o(`reviewsCount`,{n:M.count})})]}),(0,W.jsx)(`div`,{...G(`histogram`),style:{display:`flex`,flexDirection:`column`,gap:`4px`,minWidth:`220px`,flex:`1 1 220px`,maxWidth:`360px`},children:[5,4,3,2,1].map(e=>{let n=M.histogram[e-1]??0,r=_===e;return(0,W.jsxs)(`button`,{type:`button`,disabled:!n&&!r,onClick:()=>!t&&v(r?0:e),title:o(`starsN`,{n:e}),...G(`histogram-row`,r&&`histogram-row-active`),style:{display:`grid`,gridTemplateColumns:`28px 1fr 32px`,alignItems:`center`,gap:`8px`,background:`none`,border:0,padding:`2px 0`,cursor:n?`pointer`:`default`,color:`inherit`,fontFamily:`inherit`,fontSize:`13px`,fontWeight:r?700:400},children:[(0,W.jsxs)(`span`,{children:[e,`★`]}),(0,W.jsx)(`span`,{...G(`histogram-track`),style:{height:`8px`,borderRadius:`4px`,background:Bs,overflow:`hidden`},children:(0,W.jsx)(`span`,{...G(`histogram-bar`),style:{display:`block`,height:`100%`,width:`${n/L*100}%`,background:Vs}})}),(0,W.jsx)(`span`,{style:{color:Rs,textAlign:`right`},children:n})]},e)})}),(0,W.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,W.jsx)(`button`,{type:`button`,onClick:F,...G(`review-button`),style:Hs,children:o(P||t?N?`editReview`:`writeReview`:`signInToReview`)})})]}),T&&(0,W.jsxs)(`form`,{onSubmit:I,...G(`review-form`),style:{display:`flex`,flexDirection:`column`,gap:`10px`,padding:`16px`,border:zs,borderRadius:`12px`},children:[(0,W.jsxs)(`label`,{...G(`label`),style:{display:`flex`,alignItems:`center`,gap:`12px`,fontWeight:600},children:[o(`yourRating`),(0,W.jsx)(Xs,{value:C.rating,label:o(`yourRating`),onChange:e=>w(t=>({...t,rating:e}))})]}),(0,W.jsx)(`input`,{value:C.title,maxLength:150,placeholder:o(`reviewTitle`),...G(`input`),onChange:e=>w(t=>({...t,title:e.target.value})),style:q}),(0,W.jsx)(`textarea`,{value:C.body,maxLength:4e3,rows:4,placeholder:o(`reviewBody`),...G(`textarea`),onChange:e=>w(t=>({...t,body:e.target.value})),style:{...q,resize:`vertical`,fontFamily:`inherit`}}),(0,W.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,W.jsx)(`button`,{type:`submit`,disabled:D,...G(`submit-button`),style:Hs,children:o(`submitReview`)}),(0,W.jsx)(`button`,{type:`button`,onClick:()=>E(!1),...G(`cancel-button`),style:Us,children:`✕`})]})]}),k&&(0,W.jsx)(`p`,{...G(`note`),style:{margin:0,color:Rs},children:k}),(0,W.jsxs)(`div`,{...G(`reviews-toolbar`),style:{display:`flex`,alignItems:`center`,gap:`12px`,flexWrap:`wrap`},children:[(0,W.jsxs)(`select`,{value:h,onChange:e=>g(e.target.value),disabled:t,...G(`sort-select`),style:{...q,width:`auto`},children:[(0,W.jsx)(`option`,{value:`newest`,children:o(`sortNewest`)}),(0,W.jsx)(`option`,{value:`helpful`,children:o(`sortHelpful`)}),(0,W.jsx)(`option`,{value:`highest`,children:o(`sortHighest`)}),(0,W.jsx)(`option`,{value:`lowest`,children:o(`sortLowest`)})]}),_>0&&(0,W.jsxs)(`button`,{type:`button`,onClick:()=>v(0),...G(`filter-chip`),style:{...Us,padding:`6px 12px`},children:[o(`starsN`,{n:_}),` ✕`]})]}),j&&!j.data.length&&(0,W.jsx)(`p`,{...G(`empty`),style:{margin:0,color:Rs},children:o(`noReviews`)}),(0,W.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:(j?.data??[]).map(e=>(0,W.jsxs)(`article`,{...G(`review`),style:{padding:`16px 0`,borderTop:zs,display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`10px`,flexWrap:`wrap`},children:[(0,W.jsx)(Ys,{value:e.rating}),e.title&&(0,W.jsx)(`strong`,{...G(`review-title`),children:e.title}),e.mine&&e.status===`pending`&&(0,W.jsx)(`span`,{...G(`badge`),style:{fontSize:`12px`,padding:`2px 8px`,borderRadius:`999px`,background:Bs,color:Rs},children:o(`awaitingApproval`)})]}),e.body&&(0,W.jsx)(`p`,{...G(`review-body`),style:{margin:0,whiteSpace:`pre-wrap`,lineHeight:1.55},children:e.body}),(0,W.jsxs)(`span`,{...G(`meta`),style:{fontSize:`13px`,color:Rs},children:[e.author||o(`anonymous`),` · `,Ks(e.created_at,a),e.verified&&(0,W.jsxs)(`span`,{...G(`verified`),style:{color:`#16a34a`,fontWeight:600},children:[` · ✓ `,o(`verified`)]})]}),e.reply&&(0,W.jsxs)(`div`,{...G(`reply`),style:{marginTop:`4px`,padding:`10px 12px`,borderRadius:`8px`,background:Bs,fontSize:`14px`},children:[(0,W.jsx)(`strong`,{...G(`reply-label`),style:{display:`block`,fontSize:`12px`,color:Rs,marginBottom:`2px`},children:o(`shopReply`)}),(0,W.jsx)(`span`,{style:{whiteSpace:`pre-wrap`},children:e.reply})]})]},e.id))}),j&&j.data.length<(j.total?.filtered??0)&&!t&&(0,W.jsx)(`button`,{type:`button`,onClick:()=>b(e=>e+10),...G(`load-more`),style:{...Us,alignSelf:`center`},children:o(`loadMore`)})]})}var nc={data:[{id:`q1`,author:`Can D.`,question:`Bulaşık makinesinde yıkanır mı?`,answer:`Evet, yıkanabilir.`,created_at:new Date().toISOString()}],total:{all:1,filtered:1}};function rc({product:e,inert:t=!1,sample:n=!1}){let{tenant:r,apiUrl:i,locale:a,words:o,questionsOn:s,loginHref:c}=Ws(),u=Qo(),d=e?.sample?``:e?.slug||e?.id||``,[f,p]=(0,l.useState)(null),[m,h]=(0,l.useState)(5),[g,_]=(0,l.useState)(0),[v,y]=(0,l.useState)(``),[b,x]=(0,l.useState)(!1),[S,C]=(0,l.useState)(``);if((0,l.useEffect)(()=>{if(!s||!d)return;let e=!0;return Cs(i,r,`/store/products/${encodeURIComponent(d)}/questions?limit=${m}`).then(t=>e&&p(t)).catch(()=>e&&p({data:[],total:{all:0,filtered:0}})),()=>{e=!1}},[i,r,d,m,g,s]),!s)return null;let w=n||!d?nc:f,T=u.status===`user`,E=async e=>{if(e.preventDefault(),!(t||v.trim().length<3)){if(!T){window.location.assign(c());return}x(!0),C(``);try{await Cs(i,r,`/store/products/${encodeURIComponent(d)}/questions`,{method:`POST`,body:{question:v.trim()}}),y(``),C(o(`questionPending`)),_(e=>e+1)}catch(e){e?.code===`LOGIN_REQUIRED`?window.location.assign(c()):C(Ns(o,e))}finally{x(!1)}}};return(0,W.jsxs)(`section`,{id:`questions`,...G(`questions`),style:{display:`flex`,flexDirection:`column`,gap:`16px`,scrollMarginTop:`80px`},children:[(0,W.jsx)(`h2`,{...G(`questions-title`),style:{margin:0,fontSize:`var(--page-h3, 24px)`},children:o(`questionsTitle`)}),T||t?(0,W.jsxs)(`form`,{onSubmit:E,...G(`question-form`),style:{display:`flex`,gap:`8px`,flexWrap:`wrap`},children:[(0,W.jsx)(`input`,{value:v,maxLength:1e3,placeholder:o(`questionPlaceholder`),...G(`input`),onChange:e=>y(e.target.value),style:{...q,flex:`1 1 260px`}}),(0,W.jsx)(`button`,{type:`submit`,disabled:b||v.trim().length<3,...G(`submit-button`),style:Hs,children:o(`submitQuestion`)})]}):(0,W.jsx)(`p`,{style:{margin:0},children:(0,W.jsx)(`a`,{href:c(),...G(`signin-link`),style:{color:`var(--page-accent, #111827)`},children:o(`signInToAsk`)})}),S&&(0,W.jsx)(`p`,{...G(`note`),style:{margin:0,color:Rs},children:S}),w&&!w.data.length&&(0,W.jsx)(`p`,{...G(`empty`),style:{margin:0,color:Rs},children:o(`noQuestions`)}),(0,W.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:(w?.data??[]).map(e=>(0,W.jsxs)(`article`,{...G(`question`),style:{padding:`14px 0`,borderTop:zs,display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,W.jsxs)(`div`,{style:{display:`flex`,gap:`8px`,alignItems:`baseline`},children:[(0,W.jsx)(`strong`,{...G(`question-mark`),style:{color:`var(--page-accent, #111827)`},children:o(`qMark`)}),(0,W.jsx)(`span`,{...G(`question-text`),style:{fontWeight:600},children:e.question})]}),e.answer?(0,W.jsxs)(`div`,{style:{display:`flex`,gap:`8px`,alignItems:`baseline`},children:[(0,W.jsx)(`strong`,{...G(`answer-mark`),style:{color:`#16a34a`},children:o(`aMark`)}),(0,W.jsx)(`span`,{...G(`answer-text`),style:{whiteSpace:`pre-wrap`},children:e.answer})]}):(0,W.jsx)(`span`,{...G(`badge`),style:{fontSize:`12px`,color:Rs},children:o(`awaitingAnswer`)}),(0,W.jsxs)(`span`,{...G(`meta`),style:{fontSize:`12px`,color:Rs},children:[e.author||o(`anonymous`),` · `,Ks(e.created_at,a)]})]},e.id))}),w&&w.data.length<(w.total?.filtered??0)&&!t&&(0,W.jsx)(`button`,{type:`button`,onClick:()=>h(e=>e+10),...G(`load-more`),style:{...Us,alignSelf:`center`},children:o(`loadMore`)})]})}var ic=`1px solid var(--page-border, #d1d5db)`,ac=`var(--page-muted, rgba(100,116,139,1))`,oc=e=>/^(https?:)?\/\//i.test(String(e))||String(e).startsWith(`/`)?String(e):``;function sc(e,t,n,r){let i=n||void 0;switch(e.type){case`integer`:case`number`:return Number(t).toLocaleString(i);case`money`:try{return new Intl.NumberFormat(i,{style:`currency`,currency:t.currency}).format(t.amount)}catch{return`${t.amount} ${t.currency}`}case`measurement`:return`${Number(t.value).toLocaleString(i)} ${String(t.unit).replace(`_`,` `)}`;case`rating`:{let n=Number(e.config?.max??5);return(0,W.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:`6px`},children:[n===5&&(0,W.jsx)(Ys,{value:Number(t)}),Number(t).toLocaleString(i),` / `,n]})}case`date`:case`datetime`:try{return new Intl.DateTimeFormat(i,e.type===`date`?{day:`numeric`,month:`long`,year:`numeric`}:{dateStyle:`medium`,timeStyle:`short`}).format(new Date(t))}catch{return String(t)}case`switch`:return r(t?`yes`:`no`);case`color`:return(0,W.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:`6px`},children:[(0,W.jsx)(`span`,{style:{width:`14px`,height:`14px`,borderRadius:`4px`,background:t,border:ic,display:`inline-block`}}),t]});case`link`:{let e=oc(t);return e?(0,W.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #111827)`},children:t}):String(t)}case`image`:return oc(t)?(0,W.jsx)(`img`,{src:t,alt:e.name,style:{maxWidth:`160px`,maxHeight:`120px`,borderRadius:`6px`,display:`block`}}):``;case`video`:case`file`:return oc(t)?(0,W.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #111827)`},children:String(t).split(`/`).pop()}):``;case`media`:return(Array.isArray(t)?t:[t]).filter(oc).map((e,t)=>(0,W.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #111827)`,marginRight:`8px`},children:String(e).split(`/`).pop()},t));case`language`:try{return new Intl.DisplayNames([n||`en`],{type:`language`}).of(t)??t}catch{return String(t)}case`product`:return t?.slug?(0,W.jsx)(`a`,{href:`/product/${encodeURIComponent(t.slug)}`,style:{color:`var(--page-accent, #111827)`},children:t.name}):``;case`page`:return t?.slug?(0,W.jsx)(`a`,{href:`/${t.slug}`,style:{color:`var(--page-accent, #111827)`},children:t.name}):``;case`shop_collection`:return t?.name??``;case`richtext`:return Array.isArray(t)?(0,W.jsx)(`div`,{style:{lineHeight:1.55},children:Vr(t)}):String(t);case`json`:return(0,W.jsx)(`code`,{style:{fontSize:`12px`,whiteSpace:`pre-wrap`},children:JSON.stringify(t)});default:return String(t)}}function cc({specs:e,locale:t,words:n}){return!Array.isArray(e)||!e.length?null:(0,W.jsxs)(`section`,{...G(`specs`),style:{display:`flex`,flexDirection:`column`,gap:`12px`},children:[(0,W.jsx)(`h2`,{...G(`specs-title`),style:{margin:0,fontSize:`var(--page-h3, 24px)`},children:n(`specifications`)}),(0,W.jsx)(`div`,{role:`table`,...G(`specs-table`),style:{border:ic,borderRadius:`10px`,overflow:`hidden`},children:e.map((e,r)=>{let i=e.multiple&&Array.isArray(e.value)?e.value:[e.value];return(0,W.jsxs)(`div`,{role:`row`,...G(`spec-row`),style:{display:`grid`,gridTemplateColumns:`minmax(120px, 34%) 1fr`,gap:`16px`,padding:`10px 14px`,borderTop:r?ic:0,fontSize:`14px`},children:[(0,W.jsx)(`span`,{role:`rowheader`,...G(`spec-name`),style:{color:ac},children:e.name}),(0,W.jsx)(`span`,{role:`cell`,...G(`spec-value`),style:{display:`flex`,flexWrap:`wrap`,gap:`4px 10px`,alignItems:`center`},children:i.map((r,a)=>(0,W.jsxs)(`span`,{children:[sc(e,r,t,n),a<i.length-1&&e.type!==`color`?`,`:``]},a))})]},e.key)})})]})}var Y=`var(--page-muted, rgba(100,116,139,1))`,lc=`1px solid var(--page-border, #d1d5db)`,uc=`var(--page-surface, #f2f2f2)`,dc={...yr,border:0,borderRadius:`8px`,padding:`10px 18px`,fontSize:`14px`,fontWeight:600,fontFamily:`inherit`,textAlign:`center`},fc={...dc,backgroundColor:`transparent`,color:`var(--page-text, #111827)`,border:lc};function pc(){let{tenant:e,apiUrl:t,locale:n,param:r,settings:i}=(0,l.useContext)(Un),a=(0,l.useMemo)(()=>Ms(n),[n]),o=i?.[`shop.orderPrefix`],s=i?.[`shop.orderSuffix`],c=(0,l.useCallback)(e=>`${typeof o==`string`?o:`#`}${e}${typeof s==`string`?s:``}`,[o,s]);return{tenant:e,apiUrl:t||`/api`,locale:n,param:r||``,words:a,orderId:c}}function mc(e,t,n=!0){let r=(0,l.useMemo)(()=>Es(e,t),[e,t]),i=(0,l.useSyncExternalStore)(r.subscribe,r.getState,r.getState);return(0,l.useEffect)(()=>{n&&!i.loaded&&!i.loading&&r.load()},[n,r]),{store:r,...i}}var hc=e=>typeof window>`u`?``:new URLSearchParams(window.location.search).get(e)??``;function gc({value:e,label:t,onCommit:n}){let[r,i]=(0,l.useState)(null),a=()=>{if(r===null)return;let t=Math.max(1,Math.round(Number(r))||1);i(null),t!==Number(e)&&n(t)};return(0,W.jsx)(`input`,{type:`number`,...G(`quantity-input`),min:1,"aria-label":t,value:r??e,onChange:e=>i(e.target.value),onBlur:a,onKeyDown:e=>{e.key===`Enter`&&a()},style:{...q,width:`64px`,padding:`4px 8px`}})}var _c=`/product/{slug}`,vc=e=>!e||e===`/product?product={slug}`?_c:e,yc=(e,t)=>String(vc(e)).replace(/\{slug\}/g,encodeURIComponent(t.slug)).replace(/\{id\}/g,t.id);function bc(e){let t=e.variants?.length?e.variants.map(e=>e.stock):[e.stock];return t.some(e=>e==null)?null:t.reduce((e,t)=>e+Number(t),0)}function xc({product:e,variant:t,locale:n,size:r=16}){let i=e.currency,a=t?.price??e.price;return(0,W.jsxs)(`span`,{...G(`price`),style:{display:`inline-flex`,alignItems:`baseline`,gap:`8px`,fontSize:`${r}px`},children:[(0,W.jsx)(`span`,{...G(`price-current`),style:{fontWeight:700},children:As(a,i,n)}),e.compare_at_price>a&&(0,W.jsx)(`span`,{...G(`price-old`),style:{color:Y,textDecoration:`line-through`,fontSize:`0.85em`},children:As(e.compare_at_price,i,n)})]})}var Sc=[1,2,3].map(e=>({id:`sample-${e}`,slug:`sample-${e}`,name:`Product ${e}`,price:e*1990,compare_at_price:e===2?4990:null,images:[],variants:[],stock:null,currency:`USD`,sample:!0}));function Cc({columns:e=3,limit:t=12,gap:n=20,productHref:r=`/product/{slug}`,showButton:i=!0,buttonLabel:a=``,emptyText:o=``,collection:s=``,source:c=`catalog`,loginHref:u=``,style:d,nodeRef:f,inert:p=!1,sample:m=!1,noNavigate:h=!1}){let{tenant:g,apiUrl:_,locale:v,words:y}=pc(),b=Ws(),[x,S]=(0,l.useState)(null),[C,w]=(0,l.useState)(null),[T,E]=(0,l.useState)(``),[D,O]=(0,l.useState)({}),[k,A]=(0,l.useState)(!1),{store:j,currency:M}=mc(_,g,!p),N=c===`favorites`;(0,l.useEffect)(()=>{let e=!0,n=Math.max(1,Math.min(100,Number(t)||12)),r=M?`¤cy=${encodeURIComponent(M)}`:``;if(N&&p){S([]);return}return A(!1),Promise.all([Cs(_,g,N?`/store/my/favorites?limit=${n}${r}`:`/store/products?limit=${n}${r}${s?`&collection=${encodeURIComponent(s)}`:``}`),Cs(_,g,`/store/config`)]).then(([t,n])=>{if(!e)return;let r=Ds(n,M);w(n),S(Array.isArray(t?.data)?t.data.map(e=>({...e,currency:r})):[])}).catch(t=>{e&&(A(N&&t?.code===`LOGIN_REQUIRED`),S([]))}),()=>{e=!1}},[_,g,t,M,s,N,p]);let P=x?.length||!m?x??[]:Sc,F=async e=>{if(!(p||e.sample)){E(e.id);try{await j.add(e.id,null,1),O(t=>({...t,[e.id]:y(`added`)}))}catch(t){O(n=>({...n,[e.id]:Ns(y,t)}))}finally{E(``)}}};return(0,W.jsxs)(`div`,{ref:f,style:{...z(d)},children:[N&&(0,W.jsx)(`h2`,{...G(`title`),style:{margin:`0 0 12px`,fontSize:`22px`},children:y(`myFavorites`)}),k&&(0,W.jsx)(`p`,{style:{margin:0},children:(0,W.jsx)(`a`,{href:u||b.loginHref(),onClick:h?e=>e.preventDefault():void 0,...G(`signin-link`),style:{color:`var(--page-accent, #111827)`},children:y(`signInForFavorites`)})}),x!==null&&!k&&!P.length&&(0,W.jsx)(`p`,{...G(`empty`),style:{color:Y,margin:0},children:o||(N?y(`noFavorites`):C&&!C.enabled?y(`closed`):y(`noProducts`))}),(0,W.jsx)(`div`,{...G(`grid`),style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(160px, calc((100% - ${(Number(e)-1)*n}px) / ${Number(e)||3}))), 1fr))`,gap:`${n}px`},children:P.map(e=>{let t=bc(e)===0,n=yc(r,e);return(0,W.jsxs)(`div`,{...G(`card`),style:{display:`flex`,flexDirection:`column`,gap:`10px`},children:[(0,W.jsxs)(`a`,{href:n,onClick:h?e=>e.preventDefault():void 0,...G(`card-link`),style:{color:`inherit`,textDecoration:`none`},children:[(0,W.jsx)(`div`,{...G(`card-media`),style:{aspectRatio:`1 / 1`,borderRadius:`10px`,overflow:`hidden`,background:uc},children:e.images?.[0]&&(0,W.jsx)(`img`,{src:e.images[0],alt:e.name,loading:`lazy`,...G(`card-image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,W.jsx)(`div`,{...G(`card-title`),style:{marginTop:`10px`,fontWeight:600},children:e.name})]}),b.reviewsOn&&e.rating_count>0&&(0,W.jsxs)(`span`,{...G(`card-rating`),style:{display:`inline-flex`,alignItems:`center`,gap:`6px`,fontSize:`13px`,color:Y},children:[(0,W.jsx)(Ys,{value:Number(e.rating_avg),size:14}),`(`,Gs(e.rating_count,v),`)`]}),(0,W.jsx)(xc,{product:e,locale:v}),i&&(e.variants?.length?(0,W.jsx)(`a`,{href:n,onClick:h?e=>e.preventDefault():void 0,...G(`choose-button`),style:{...fc,display:`block`},children:y(`choose`)}):(0,W.jsx)(`button`,{type:`button`,disabled:t||T===e.id,onClick:()=>F(e),...G(`add-button`,t&&`add-button-sold-out`),style:{...dc,opacity:t?.5:1},children:t?y(`soldOut`):T===e.id?y(`adding`):a||y(`add`)})),D[e.id]&&(0,W.jsx)(`span`,{...G(`note`),style:{fontSize:`13px`,color:Y},children:D[e.id]})]},e.id)})})]})}function wc({slug:e=``,buttonLabel:t=``,showReviews:n=!0,showQuestions:r=!0,showSpecs:i=!0,style:a,nodeRef:o,inert:s=!1,sample:c=!1,noNavigate:u=!1}){let{tenant:d,apiUrl:f,locale:p,param:m,words:h}=pc(),[g,_]=(0,l.useState)(null),[v,y]=(0,l.useState)(!1),[b,x]=(0,l.useState)(0),[S,C]=(0,l.useState)(``),[w,T]=(0,l.useState)(1),[E,D]=(0,l.useState)(!1),[O,k]=(0,l.useState)(``),{store:A,currency:j}=mc(f,d,!s),M=e||m||hc(`product`),N=j?`?currency=${encodeURIComponent(j)}`:``;if((0,l.useEffect)(()=>{let e=!0;return y(!1),(async()=>{let t=await Cs(f,d,`/store/config`),n=M?await Cs(f,d,`/store/products/${encodeURIComponent(M)}${N}`):c||u?(await Cs(f,d,`/store/products?limit=1${j?`¤cy=${encodeURIComponent(j)}`:``}`))?.data?.[0]:null;if(e){if(!n){y(!0),_(c?Sc[0]:null);return}_({...n,currency:Ds(t,j)}),C(e=>n.variants?.some(t=>t.id===e)?e:n.variants?.[0]?.id??``),x(0)}})().catch(()=>{e&&(y(!0),_(c?Sc[0]:null))}),()=>{e=!1}},[f,d,M,j]),!g)return(0,W.jsx)(`div`,{ref:o,style:{...z(a)},children:v&&(0,W.jsx)(`p`,{...G(`empty`),style:{color:Y,margin:0},children:h(`noProducts`)})});let P=g.variants?.find(e=>e.id===S)??null,F=P?P.stock:g.variants?.length?null:g.stock,I=F===0,L=async()=>{if(!(s||g.sample)){D(!0),k(``);try{await A.add(g.id,P?.id??null,Math.max(1,Number(w)||1)),k(h(`added`))}catch(e){k(Ns(h,e))}finally{D(!1)}}};return(0,W.jsxs)(`div`,{ref:o,style:{display:`flex`,flexDirection:`column`,gap:`48px`,...z(a)},children:[(0,W.jsxs)(`div`,{...G(`details`),style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, 320px), 1fr))`,gap:`32px`},children:[(0,W.jsxs)(`div`,{...G(`gallery`),style:{display:`flex`,flexDirection:`column`,gap:`10px`},children:[(0,W.jsx)(`div`,{...G(`media`),style:{aspectRatio:`1 / 1`,borderRadius:`12px`,overflow:`hidden`,background:uc},children:g.images?.[b]&&(0,W.jsx)(`img`,{src:g.images[b],alt:g.name,...G(`image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),g.images?.length>1&&(0,W.jsx)(`div`,{...G(`thumbnails`),style:{display:`flex`,gap:`8px`,flexWrap:`wrap`},children:g.images.map((e,t)=>(0,W.jsx)(`button`,{type:`button`,onClick:()=>x(t),...G(`thumbnail`,t===b&&`thumbnail-selected`),style:{width:`64px`,height:`64px`,padding:0,borderRadius:`8px`,overflow:`hidden`,cursor:`pointer`,border:t===b?`2px solid var(--page-accent, #111827)`:lc,background:uc},children:(0,W.jsx)(`img`,{src:e,alt:``,...G(`thumbnail-image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})},e))})]}),(0,W.jsxs)(`div`,{...G(`info`),style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:[(0,W.jsx)(`h1`,{...G(`title`),style:{margin:0,fontSize:`var(--page-h2, 32px)`},children:g.name}),(0,W.jsx)($s,{product:g,inert:s,sample:c&&!!g.sample}),(0,W.jsx)(xc,{product:g,variant:P,locale:p,size:22}),g.variants?.length>0&&(0,W.jsx)(`div`,{...G(`variants`),style:{display:`flex`,gap:`8px`,flexWrap:`wrap`},children:g.variants.map(e=>{let t=e.stock===0;return(0,W.jsx)(`button`,{type:`button`,disabled:t,onClick:()=>C(e.id),...G(`variant`,e.id===S&&`variant-selected`,t&&`variant-sold-out`),style:{...fc,padding:`8px 14px`,opacity:t?.45:1,textDecoration:t?`line-through`:`none`,borderColor:e.id===S?`var(--page-accent, #111827)`:void 0,boxShadow:e.id===S?`inset 0 0 0 1px var(--page-accent, #111827)`:`none`},children:e.title},e.id)})}),(0,W.jsxs)(`div`,{...G(`buy-row`),style:{display:`flex`,gap:`10px`,alignItems:`center`},children:[(0,W.jsx)(`input`,{type:`number`,...G(`quantity-input`),min:1,"aria-label":h(`quantity`),value:w,onChange:e=>T(e.target.value),style:{...q,width:`80px`}}),(0,W.jsx)(`button`,{type:`button`,disabled:I||E,onClick:L,...G(`add-button`,I&&`add-button-sold-out`),style:{...dc,flex:1,opacity:I?.5:1},children:I?h(`soldOut`):E?h(`adding`):t||h(`add`)})]}),F!==null&&F>0&&F<=5&&(0,W.jsx)(`span`,{...G(`stock-note`),style:{fontSize:`13px`,color:`var(--page-accent, #b45309)`},children:h(`onlyLeft`,{n:F})}),O&&(0,W.jsx)(`span`,{...G(`note`),style:{fontSize:`13px`,color:Y},children:O}),Array.isArray(g.description)&&g.description.length>0&&(0,W.jsx)(`div`,{...G(`description`),style:{lineHeight:1.6},children:Vr(g.description)})]})]}),i&&(0,W.jsx)(cc,{specs:g.specs,locale:p,words:h}),n&&(0,W.jsx)(tc,{product:g,inert:s,sample:c&&!!g.sample}),r&&(0,W.jsx)(rc,{product:g,inert:s,sample:c&&!!g.sample})]})}function Tc(e){return(0,W.jsx)(Cc,{...e,source:`favorites`})}var Ec=(0,W.jsxs)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...G(`icon`),children:[(0,W.jsx)(`path`,{d:`M6 7h12l-1 13H7L6 7Z`}),(0,W.jsx)(`path`,{d:`M9 7a3 3 0 0 1 6 0`})]});function Dc({href:e=`/cart`,label:t=``,showLabel:n=!1,style:r,nodeRef:i,inert:a=!1,sample:o=!1,noNavigate:s=!1}){let{tenant:c,apiUrl:l,words:u}=pc(),{cart:d}=mc(l,c,!a),f=o&&!d.count?2:d.count;return(0,W.jsxs)(`a`,{ref:i,href:e,onClick:s?e=>e.preventDefault():void 0,"aria-label":t||u(`cart`),style:{position:`relative`,display:`inline-flex`,alignItems:`center`,gap:`8px`,color:`inherit`,textDecoration:`none`,padding:`6px`,...z(r)},children:[Ec,n&&(0,W.jsx)(`span`,{...G(`label`),children:t||u(`cart`)}),f>0&&(0,W.jsx)(`span`,{...G(`badge`),style:{position:`absolute`,top:`-4px`,left:`18px`,minWidth:`18px`,height:`18px`,padding:`0 5px`,borderRadius:`9px`,fontSize:`11px`,fontWeight:700,lineHeight:`18px`,textAlign:`center`,boxSizing:`border-box`,background:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`},children:f>99?`99+`:f})]})}function Oc(e,t,n){if(t===`code`)return e;try{if(t===`name`)return`${new Intl.DisplayNames([n||`en`],{type:`currency`}).of(e)??e} (${e})`;let r=new Intl.NumberFormat(n||void 0,{style:`currency`,currency:e}).formatToParts(0).find(e=>e.type===`currency`)?.value;return r&&r!==e?`${r} ${e}`:e}catch{return e}}function kc({display:e=`symbol`,label:t=``,style:n,nodeRef:r,inert:i=!1}){let{tenant:a,apiUrl:o,locale:s}=pc(),{store:c,currency:u}=mc(o,a,!i),[d,f]=(0,l.useState)(null),p={display:`inline-flex`,alignItems:`center`,gap:8,...z(n)};(0,l.useEffect)(()=>{let e=!0;return Cs(o,a,`/store/config`).then(t=>e&&f(t)).catch(()=>e&&f({currencies:[]})),()=>{e=!1}},[o,a]);let m=Array.isArray(d?.currencies)?d.currencies:[];return m.length<2?i?(0,W.jsx)(`div`,{ref:r,style:{...p,padding:`8px 12px`,border:`1px dashed rgba(100, 116, 139, 0.45)`,borderRadius:6,color:`rgba(100, 116, 139, 0.8)`,fontSize:12},children:`Add currencies in Settings → Shop`}):null:(0,W.jsxs)(`div`,{ref:r,style:p,children:[t?(0,W.jsx)(`span`,{...G(`label`),style:{opacity:.7},children:t}):null,(0,W.jsx)(`select`,{"aria-label":t||`Currency`,...G(`select`),value:Ds(d,u),onChange:i?void 0:e=>c.setCurrency(e.target.value===d.currency?``:e.target.value),onKeyDown:i?e=>e.preventDefault():void 0,style:{font:`inherit`,color:`inherit`,background:`var(--page-surface, transparent)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:6,padding:`4px 8px`,cursor:i?`default`:`pointer`},children:m.map(t=>(0,W.jsx)(`option`,{value:t,children:Oc(t,e,s)},t))})]})}var Ac={display:`flex`,flexDirection:`column`,gap:`6px`,fontSize:`13px`},jc={margin:`0 0 12px`,fontSize:`18px`};function X({label:e,required:t,children:n}){return(0,W.jsxs)(`label`,{...G(`field`),style:Ac,children:[(0,W.jsxs)(`span`,{...G(`field-label`),style:{fontWeight:500},children:[e,t&&(0,W.jsx)(`span`,{...G(`required`),style:{color:`var(--page-accent, #dc2626)`},children:` *`})]}),n]})}var Mc=[{id:`ship:standard`,type:`shipping`,name:`Standard`,amount:2990,min_days:2,max_days:4,detail:``},{id:`pickup:sample`,type:`pickup`,name:`Store pickup`,amount:0,min_days:null,max_days:null,detail:`Main Street 1`}],Nc={name:``,email:``,phone:``,line1:``,line2:``,city:``,region:``,postal_code:``,country:``,note:``,gift:!1,recipient:``,gift_message:``};function Pc({continueHref:e=`/`,style:t,nodeRef:n,inert:r=!1,sample:i=!1,noNavigate:a=!1}){let{tenant:o,apiUrl:s,locale:c,words:u,orderId:d}=pc(),{store:f,cart:p,loaded:m}=mc(s,o,!r),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(Nc),[y,b]=(0,l.useState)(``),[x,S]=(0,l.useState)(!1),[C,w]=(0,l.useState)(``),[T,E]=(0,l.useState)(null),[D,O]=(0,l.useState)(``),[k,A]=(0,l.useState)(!1),j=!r&&hc(`cancelled`)===`1`,M=e=>As(e,p.currency||h?.currency,c);(0,l.useEffect)(()=>{Cs(s,o,`/store/config`).then(e=>{g(e),b(t=>t||e?.methods?.[0]||``)}).catch(()=>g({enabled:!1,methods:[]}))},[s,o]),(0,l.useEffect)(()=>{let e=hc(`order`);r||!e||j||Cs(s,o,`/store/orders/${encodeURIComponent(e)}`).then(e=>{E(e),e?.payment_status===`paid`&&f.reset()}).catch(e=>w(Ns(u,e)))},[s,o]);let N=e=>t=>v(n=>({...n,[e]:t.target.value})),P=(0,l.useMemo)(()=>ks(c,h?.zone_countries??[],h&&!h.ships_elsewhere&&h.zone_countries?.length?h.zone_countries:null),[c,h]);(0,l.useEffect)(()=>{p.country&&!_.country&&v(e=>({...e,country:p.country}))},[p.country]);let F=async e=>{if(!r){A(!0),w(``);try{await f.setCoupon(e),O(``)}catch(e){w(Ns(u,e))}finally{A(!1)}}},I=async e=>{if(e.preventDefault(),!r){if((R&&!ne?[`name`,`email`,`line1`,`city`,`country`]:[`name`,`email`]).some(e=>!_[e].trim())){w(u(`required`));return}S(!0),w(``);try{let e=new URL(window.location.href);[`order`,`paid`,`cancelled`].forEach(t=>e.searchParams.delete(t));let t=await Cs(s,o,`/store/checkout`,{method:`POST`,body:{cart_id:f.cartId(),method:y,customer:{name:_.name,email:_.email,phone:_.phone},address:{name:_.gift?_.recipient.trim():``,line1:_.line1,line2:_.line2,city:_.city,region:_.region,postal_code:_.postal_code,country:_.country},note:_.note,gift:_.gift,gift_message:_.gift?_.gift_message:``,delivery:p.delivery||``,return_url:e.toString()}});if(t?.redirect_url){window.location.assign(t.redirect_url);return}E(t?.order??null),f.reset()}catch(e){w(Ns(u,e))}finally{S(!1)}}},L={...z(t)},R=r&&i&&!p.lines.length?!0:p.requires_shipping!==!1,ee=Array.isArray(p.discounts)?p.discounts:[],te=ee.filter(e=>e.type!==`shipping`),B=ee.find(e=>e.type===`shipping`)??null,V=r&&i&&!p.lines.length?Mc:Array.isArray(p.delivery_options)?p.delivery_options:[],H=V.find(e=>e.id===p.delivery)??(r&&i?V[0]:null),ne=H?.type===`pickup`,re=e=>{r||e===p.delivery||(w(``),f.setDelivery(e).catch(e=>w(Ns(u,e))))};if(T){let t=T.payment_status===`paid`;return(0,W.jsxs)(`div`,{ref:n,style:{display:`flex`,flexDirection:`column`,gap:`12px`,...L},children:[(0,W.jsx)(`h2`,{...G(`thanks-title`),style:{margin:0},children:u(`thanks`,{number:d(T.number)})}),(0,W.jsx)(`p`,{...G(`thanks-message`),style:{margin:0},children:T.payment_method===`bank_transfer`?u(`transfer`):T.payment_method===`cash_on_delivery`?u(`cod`):u(t?`paid`:`awaiting`)}),Array.isArray(T.instructions_content)&&T.instructions_content.length>0?(0,W.jsx)(`div`,{...G(`instructions`),style:{padding:`12px`,borderRadius:`8px`,background:uc},children:Vr(T.instructions_content)}):T.instructions?(0,W.jsx)(`pre`,{...G(`instructions`),style:{margin:0,padding:`12px`,borderRadius:`8px`,background:uc,whiteSpace:`pre-wrap`,fontFamily:`inherit`},children:T.instructions}):null,T.delivery&&(0,W.jsxs)(`div`,{...G(`delivery-info`),style:{padding:`12px`,borderRadius:`8px`,background:uc},children:[(0,W.jsx)(`div`,{...G(`delivery-name`),style:{fontWeight:600},children:T.delivery.type===`pickup`?u(`pickupAt`,{name:T.delivery.name}):u(`deliveredBy`,{name:T.delivery.name})}),T.delivery.location&&(0,W.jsxs)(`div`,{...G(`delivery-detail`),style:{fontSize:`14px`,color:Y},children:[[T.delivery.location.line1,T.delivery.location.line2,[T.delivery.location.postal_code,T.delivery.location.city].filter(Boolean).join(` `)].filter(Boolean).join(`, `),T.delivery.location.instructions&&(0,W.jsx)(`div`,{children:T.delivery.location.instructions}),(0,W.jsx)(`div`,{children:u(`pickupNote`)})]}),!T.delivery.location&&Ls(u,c,T.delivery.min_days,T.delivery.max_days)&&(0,W.jsx)(`div`,{...G(`delivery-detail`),style:{fontSize:`14px`,color:Y},children:Ls(u,c,T.delivery.min_days,T.delivery.max_days)})]}),(0,W.jsxs)(`p`,{...G(`total`),style:{margin:0,fontWeight:700},children:[u(`total`),`: `,As(T.total,T.currency,c)]}),!t&&(0,W.jsx)(zc,{reference:T.transfer_reference,words:u}),(0,W.jsx)(Bc,{downloads:T.downloads,apiUrl:s,words:u,locale:c,noNavigate:a}),(0,W.jsx)(`a`,{href:e,onClick:a?e=>e.preventDefault():void 0,...G(`continue-button`),style:{...fc,alignSelf:`flex-start`},children:u(`continue`)})]})}let ie=r&&i&&!p.lines.length?Sc.slice(0,2).map(e=>({...e,product_id:e.id,variant_id:null,quantity:1,unit_price:e.price,total:e.price,image:``,variant_title:``})):p.lines,ae=r&&i&&!p.lines.length?ie.reduce((e,t)=>e+t.total,0):p.subtotal;if(h&&!h.enabled&&!r)return(0,W.jsx)(`div`,{ref:n,style:L,children:(0,W.jsx)(`p`,{...G(`empty`),style:{color:Y},children:u(`closed`)})});if(m&&!ie.length&&!r)return(0,W.jsxs)(`div`,{ref:n,style:{display:`flex`,flexDirection:`column`,gap:`12px`,...L},children:[j&&(0,W.jsx)(`p`,{...G(`note`),style:{margin:0,color:Y},children:u(`cancelled`)}),(0,W.jsx)(`p`,{...G(`empty`),style:{margin:0},children:u(`emptyCart`)}),(0,W.jsx)(`a`,{href:e,onClick:a?e=>e.preventDefault():void 0,...G(`continue-button`),style:{...fc,alignSelf:`flex-start`},children:u(`continue`)})]});let oe=h?.methods??[];return(0,W.jsxs)(`form`,{ref:n,onSubmit:I,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, 340px), 1fr))`,gap:`32px`,alignItems:`start`,...L},children:[(0,W.jsxs)(`div`,{...G(`form-column`),style:{display:`flex`,flexDirection:`column`,gap:`20px`},children:[j&&(0,W.jsx)(`p`,{...G(`note`),style:{margin:0,color:Y},children:u(`cancelled`)}),(0,W.jsxs)(`section`,{...G(`section`),children:[(0,W.jsx)(`h3`,{...G(`heading`),style:jc,children:u(`contact`)}),(0,W.jsxs)(`div`,{...G(`fields`),style:{display:`grid`,gap:`12px`},children:[(0,W.jsx)(X,{label:u(`name`),required:!0,children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.name,onChange:N(`name`),autoComplete:`name`})}),(0,W.jsxs)(`div`,{...G(`field-row`),style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`},children:[(0,W.jsx)(X,{label:u(`email`),required:!0,children:(0,W.jsx)(`input`,{type:`email`,...G(`input`),style:q,value:_.email,onChange:N(`email`),autoComplete:`email`})}),(0,W.jsx)(X,{label:u(`phone`),children:(0,W.jsx)(`input`,{type:`tel`,...G(`input`),style:q,value:_.phone,onChange:N(`phone`),autoComplete:`tel`})})]})]})]}),R&&(0,W.jsxs)(`section`,{...G(`section`),children:[(0,W.jsx)(`h3`,{...G(`heading`),style:jc,children:u(`delivery`)}),(0,W.jsx)(`div`,{style:{marginBottom:`12px`},children:(0,W.jsxs)(`div`,{...G(`field-row`),style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`},children:[(0,W.jsx)(X,{label:u(`postal`),children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.postal_code,onChange:N(`postal_code`),onBlur:()=>!r&&_.country&&f.setCountry(_.country,_.postal_code).catch(e=>w(Ns(u,e))),autoComplete:`postal-code`})}),(0,W.jsx)(X,{label:u(`country`),required:!ne,children:(0,W.jsxs)(`select`,{...G(`select`),style:q,value:_.country,autoComplete:`country`,onChange:e=>{let t=e.target.value;v(e=>({...e,country:t})),r||f.setCountry(t,_.postal_code).catch(e=>w(Ns(u,e)))},children:[(0,W.jsx)(`option`,{value:``,children:u(`chooseCountry`)}),P.map(e=>(0,W.jsx)(`option`,{value:e.code,children:e.name},e.code))]})})]})}),!V.length&&(0,W.jsx)(`p`,{...G(`note`),style:{margin:0,color:Y,fontSize:`14px`},children:_.country?u(`noShipping`):u(`deliveryPick`)}),(0,W.jsx)(`div`,{...G(`delivery-options`),style:{display:`grid`,gap:`8px`},children:V.map(e=>{let t=Ls(u,c,e.min_days,e.max_days);return(0,W.jsxs)(`label`,{...G(`delivery-option`,H?.id===e.id&&`delivery-option-selected`),style:{display:`flex`,alignItems:`flex-start`,gap:`10px`,padding:`12px`,borderRadius:`8px`,border:H?.id===e.id?`1px solid var(--page-accent, #4f46e5)`:lc,cursor:`pointer`},children:[(0,W.jsx)(`input`,{type:`radio`,...G(`radio`),name:`delivery`,value:e.id,checked:H?.id===e.id,onChange:()=>re(e.id),style:{marginTop:`3px`}}),(0,W.jsxs)(`span`,{...G(`option-info`),style:{flex:1,minWidth:0},children:[(0,W.jsx)(`span`,{...G(`option-name`),style:{display:`block`,fontWeight:600},children:e.name}),t&&(0,W.jsx)(`span`,{...G(`option-detail`),style:{display:`block`,fontSize:`13px`,color:Y},children:t}),e.detail&&(0,W.jsx)(`span`,{...G(`option-detail`),style:{display:`block`,fontSize:`13px`,color:Y},children:e.detail})]}),(0,W.jsx)(`span`,{...G(`option-price`),style:{fontWeight:600},children:e.amount?M(e.amount):u(`free`)})]},e.id)})})]}),R&&!ne&&(0,W.jsxs)(`section`,{...G(`section`),children:[(0,W.jsx)(`h3`,{...G(`heading`),style:jc,children:u(`address`)}),(0,W.jsxs)(`div`,{...G(`fields`),style:{display:`grid`,gap:`12px`},children:[(0,W.jsx)(X,{label:u(`line1`),required:!0,children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.line1,onChange:N(`line1`),autoComplete:`address-line1`})}),(0,W.jsx)(X,{label:u(`line2`),children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.line2,onChange:N(`line2`),autoComplete:`address-line2`})}),(0,W.jsxs)(`div`,{...G(`field-row`),style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`},children:[(0,W.jsx)(X,{label:u(`city`),required:!0,children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.city,onChange:N(`city`),autoComplete:`address-level2`})}),(0,W.jsx)(X,{label:u(`region`),children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.region,onChange:N(`region`),autoComplete:`address-level1`})})]}),(0,W.jsx)(X,{label:u(`note`),children:(0,W.jsx)(`textarea`,{rows:2,...G(`textarea`),style:{...q,resize:`vertical`},value:_.note,onChange:N(`note`)})})]})]}),(0,W.jsxs)(`section`,{...G(`section`),children:[(0,W.jsxs)(`label`,{...G(`checkbox-row`),style:{display:`flex`,alignItems:`flex-start`,gap:`10px`,cursor:`pointer`},children:[(0,W.jsx)(`input`,{type:`checkbox`,...G(`checkbox`),checked:_.gift,onChange:e=>v(t=>({...t,gift:e.target.checked})),style:{marginTop:`3px`}}),(0,W.jsxs)(`span`,{children:[(0,W.jsx)(`span`,{...G(`checkbox-label`),style:{fontWeight:600},children:u(`gift`)}),(0,W.jsx)(`span`,{...G(`checkbox-hint`),style:{display:`block`,fontSize:`13px`,color:Y},children:u(`giftHint`)})]})]}),_.gift&&(0,W.jsxs)(`div`,{...G(`fields`),style:{marginTop:`12px`,display:`grid`,gap:`12px`},children:[R&&!ne&&(0,W.jsx)(X,{label:u(`giftRecipient`),children:(0,W.jsx)(`input`,{...G(`input`),style:q,value:_.recipient,onChange:N(`recipient`),maxLength:200,autoComplete:`off`})}),(0,W.jsx)(X,{label:u(`giftMessage`),children:(0,W.jsx)(`textarea`,{rows:3,maxLength:500,...G(`textarea`),style:{...q,resize:`vertical`},value:_.gift_message,onChange:N(`gift_message`)})})]})]}),(0,W.jsxs)(`section`,{...G(`section`),children:[(0,W.jsx)(`h3`,{...G(`heading`),style:jc,children:u(`payment`)}),!oe.length&&!r&&(0,W.jsx)(`p`,{...G(`note`),style:{margin:0,color:Y},children:u(`noMethods`)}),(0,W.jsx)(`div`,{...G(`payment-options`),style:{display:`grid`,gap:`8px`},children:(r&&!oe.length?[`stripe`,`bank_transfer`]:oe).map(e=>(0,W.jsxs)(`label`,{...G(`payment-option`,y===e&&`payment-option-selected`),style:{display:`flex`,alignItems:`center`,gap:`10px`,padding:`12px`,borderRadius:`8px`,border:lc,cursor:`pointer`},children:[(0,W.jsx)(`input`,{type:`radio`,...G(`radio`),name:`method`,value:e,checked:y===e,onChange:()=>b(e)}),(0,W.jsx)(`span`,{...G(`payment-name`),children:h?.method_names?.[e]??u(e)})]},e))})]})]}),(0,W.jsxs)(`aside`,{...G(`summary`),style:{display:`flex`,flexDirection:`column`,gap:`14px`,padding:`20px`,borderRadius:`12px`,background:uc},children:[(0,W.jsx)(`h3`,{...G(`summary-title`),style:{...jc,margin:0},children:u(`cart`)}),ie.map(e=>(0,W.jsxs)(`div`,{...G(`line`),style:{display:`flex`,gap:`12px`,alignItems:`center`},children:[(0,W.jsx)(`div`,{...G(`line-media`),style:{width:`52px`,height:`52px`,borderRadius:`8px`,overflow:`hidden`,background:`var(--page-bg, #fff)`,flexShrink:0},children:e.image&&(0,W.jsx)(`img`,{src:e.image,alt:``,...G(`line-image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,W.jsxs)(`div`,{...G(`line-info`),style:{flex:1,minWidth:0},children:[(0,W.jsx)(`div`,{...G(`line-name`),style:{fontWeight:600},children:e.name}),e.variant_title&&(0,W.jsx)(`div`,{...G(`line-variant`),style:{fontSize:`13px`,color:Y},children:e.variant_title}),(0,W.jsxs)(`div`,{...G(`line-controls`),style:{display:`flex`,alignItems:`center`,gap:`8px`,marginTop:`4px`},children:[(0,W.jsx)(gc,{value:e.quantity,label:u(`quantity`),onCommit:t=>!r&&f.setLine(e.product_id,e.variant_id,t).catch(e=>w(Ns(u,e)))}),(0,W.jsx)(`button`,{type:`button`,onClick:()=>!r&&f.setLine(e.product_id,e.variant_id,0).catch(e=>w(Ns(u,e))),...G(`remove-button`),style:{background:`none`,border:0,padding:0,color:Y,cursor:`pointer`,fontSize:`13px`,textDecoration:`underline`,fontFamily:`inherit`},children:u(`remove`)})]})]}),(0,W.jsxs)(`div`,{...G(`line-price`),style:{textAlign:`right`},children:[e.discount>0&&(0,W.jsx)(`div`,{...G(`line-price-old`),style:{fontSize:`12px`,color:Y,textDecoration:`line-through`},children:M(e.total)}),(0,W.jsx)(`div`,{...G(`line-total`),style:{fontWeight:600},children:M(e.total-(e.discount||0))})]})]},`${e.product_id}:${e.variant_id??``}`)),p.coupon?(0,W.jsxs)(`div`,{...G(`coupon`),style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`8px`,fontSize:`14px`},children:[(0,W.jsx)(`span`,{...G(`coupon-code`),style:{padding:`4px 10px`,borderRadius:`999px`,border:lc,fontWeight:600,letterSpacing:`0.04em`},children:p.coupon.code}),(0,W.jsx)(`button`,{type:`button`,disabled:k,onClick:()=>F(``),...G(`coupon-remove`),style:{background:`none`,border:0,padding:0,color:Y,cursor:`pointer`,fontSize:`13px`,textDecoration:`underline`,fontFamily:`inherit`},children:u(`removeCoupon`)})]}):(0,W.jsxs)(`div`,{...G(`coupon-form`),style:{display:`flex`,gap:`8px`},children:[(0,W.jsx)(`input`,{"aria-label":u(`coupon`),...G(`coupon-input`),placeholder:u(`coupon`),value:D,onChange:e=>O(e.target.value.toUpperCase()),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),D.trim()&&F(D.trim()))},style:{...q,flex:1,letterSpacing:`0.04em`}}),(0,W.jsx)(`button`,{type:`button`,disabled:k||!D.trim(),onClick:()=>F(D.trim()),...G(`coupon-button`),style:{...fc,padding:`8px 14px`},children:u(`apply`)})]}),p.coupon_error&&(0,W.jsx)(`span`,{...G(`coupon-error`),style:{fontSize:`13px`,color:Y},children:p.coupon_error_code&&u.has(p.coupon_error_code)?u(p.coupon_error_code):p.coupon_error}),(0,W.jsxs)(`div`,{...G(`totals`),style:{borderTop:lc,paddingTop:`12px`,display:`grid`,gap:`6px`,fontSize:`14px`},children:[(0,W.jsxs)(`div`,{...G(`summary-row`),style:{display:`flex`,justifyContent:`space-between`},children:[(0,W.jsx)(`span`,{children:u(`subtotal`)}),(0,W.jsx)(`span`,{children:M(ae)})]}),te.length?te.map(e=>(0,W.jsxs)(`div`,{...G(`summary-row`),style:{display:`flex`,justifyContent:`space-between`,gap:`8px`},children:[(0,W.jsxs)(`span`,{children:[u(`discount`),` · `,e.title]}),(0,W.jsxs)(`span`,{children:[`−`,M(e.amount)]})]},e.id)):p.discount_total>0&&(0,W.jsxs)(`div`,{...G(`summary-row`),style:{display:`flex`,justifyContent:`space-between`},children:[(0,W.jsx)(`span`,{children:u(`discount`)}),(0,W.jsxs)(`span`,{children:[`−`,M(p.discount_total)]})]}),R&&(0,W.jsxs)(`div`,{...G(`summary-row`),style:{display:`flex`,justifyContent:`space-between`,gap:`8px`},children:[(0,W.jsxs)(`span`,{children:[H?.name??u(`shipping`),B?` · ${B.title}`:``]}),(0,W.jsxs)(`span`,{children:[B&&(0,W.jsx)(`span`,{...G(`shipping-old`),style:{color:Y,textDecoration:`line-through`,marginRight:`6px`},children:M(p.shipping_before)}),(B?p.shipping_total:H?.amount??p.shipping_total)?M(B?p.shipping_total:H?.amount??p.shipping_total):u(`free`)]})]}),!p.tax_included&&p.tax_total>0&&(0,W.jsxs)(`div`,{...G(`summary-row`),style:{display:`flex`,justifyContent:`space-between`},children:[(0,W.jsxs)(`span`,{children:[u(`tax`),` (`,p.tax_rate,`%)`]}),(0,W.jsx)(`span`,{children:M(p.tax_total)})]}),(0,W.jsxs)(`div`,{...G(`summary-row`,`summary-row-total`),style:{display:`flex`,justifyContent:`space-between`,fontWeight:700,fontSize:`16px`},children:[(0,W.jsx)(`span`,{children:u(`total`)}),(0,W.jsx)(`span`,{children:M(r&&i&&!p.lines.length?ae:p.total)})]}),p.tax_included&&p.tax_total>0&&(0,W.jsxs)(`div`,{...G(`summary-row`,`summary-row-muted`),style:{display:`flex`,justifyContent:`space-between`,fontSize:`12px`,color:Y},children:[(0,W.jsxs)(`span`,{children:[u(`taxIncluded`),` (`,p.tax_rate,`%)`]}),(0,W.jsx)(`span`,{children:M(p.tax_total)})]})]}),p.shipping_available===!1&&(0,W.jsx)(`p`,{...G(`error`),style:{margin:0,color:`#dc2626`,fontSize:`13px`},children:u(`noShipping`)}),C&&(0,W.jsx)(`p`,{...G(`error`),style:{margin:0,color:`#dc2626`,fontSize:`13px`},children:C}),(0,W.jsx)(`button`,{type:`submit`,...G(`submit-button`),disabled:x||!y||p.shipping_available===!1,style:{...dc,width:`100%`,padding:`12px`},children:u(x?`placing`:`placeOrder`)}),(0,W.jsx)(Ic,{apiUrl:s,tenant:o,words:u,locale:c,sample:i,inert:r})]})]})}var Fc=[`refund`,`privacy`,`terms`,`shipping`].map(e=>({kind:e,content:[],fields:{},updated_at:null}));function Ic({apiUrl:e,tenant:t,words:n,locale:r,sample:i,inert:a}){let[o,s]=(0,l.useState)(i?Fc:[]),[c,u]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(i)return;let n=!0;return Fs(e,t).then(e=>n&&s(e)),()=>{n=!1}},[e,t,i]),!o.length)return null;let d=o.find(e=>e.kind===`terms`),f=e=>t=>{t.preventDefault(),a||u(e)},p=e=>(0,W.jsx)(`a`,{href:`#policy-${e.kind}`,onClick:f(e),...G(`policy-link`),style:{color:Y,textDecoration:`underline`},children:n(`policy_${e.kind}`)},e.kind);return(0,W.jsxs)(`div`,{...G(`policies`),style:{display:`grid`,gap:`8px`,fontSize:`12px`,color:Y},children:[d&&(0,W.jsxs)(`span`,{...G(`policy-agree`),children:[n(`policy_agree`).split(`{terms}`)[0],p(d),n(`policy_agree`).split(`{terms}`)[1]]}),(0,W.jsx)(`div`,{...G(`policy-links`),style:{display:`flex`,flexWrap:`wrap`,gap:`6px 14px`,borderTop:lc,paddingTop:`10px`},children:o.map(p)}),c&&(0,W.jsx)(Lc,{policy:c,words:n,locale:r,onClose:()=>u(null)})]})}function Lc({policy:e,words:t,locale:n,onClose:r}){(0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&r()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]);let i=e.fields??{},a=[i.line1,i.line2,[i.postal_code,i.city].filter(Boolean).join(` `),[i.region,i.country].filter(Boolean).join(`, `)].filter(Boolean),o=``;try{o=e.updated_at?new Date(e.updated_at).toLocaleDateString(n||void 0,{dateStyle:`long`}):``}catch{o=``}return(0,W.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":t(`policy_${e.kind}`),onMouseDown:e=>e.target===e.currentTarget&&r(),...G(`modal`),style:{position:`fixed`,inset:0,zIndex:1e3,background:`rgba(15, 23, 42, .55)`,display:`grid`,placeItems:`center`,padding:`16px`},children:(0,W.jsxs)(`div`,{...G(`modal-panel`),style:{background:`var(--page-bg, #fff)`,color:`var(--page-text, #111827)`,border:lc,borderRadius:`12px`,width:`min(720px, 100%)`,maxHeight:`85vh`,display:`flex`,flexDirection:`column`,textAlign:`left`},children:[(0,W.jsxs)(`div`,{...G(`modal-header`),style:{display:`flex`,alignItems:`center`,gap:`12px`,padding:`16px 20px`,borderBottom:lc},children:[(0,W.jsx)(`strong`,{...G(`modal-title`),style:{flex:1,fontSize:`17px`},children:t(`policy_${e.kind}`)}),(0,W.jsx)(`button`,{type:`button`,onClick:r,"aria-label":t(`close`),...G(`modal-close`),style:{...fc,padding:`4px 10px`},children:`×`})]}),(0,W.jsxs)(`div`,{...G(`modal-body`),style:{padding:`8px 20px 20px`,overflowY:`auto`,fontSize:`14px`,lineHeight:1.6},children:[e.kind===`contact`?(0,W.jsxs)(`div`,{style:{display:`grid`,gap:`10px`,paddingTop:`10px`},children:[i.business_name&&(0,W.jsx)(`strong`,{children:i.business_name}),a.length>0&&(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{style:{color:Y},children:[t(`contact_address`),`: `]}),a.join(`, `)]}),i.email&&(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{style:{color:Y},children:[t(`contact_email`),`: `]}),(0,W.jsx)(`a`,{href:`mailto:${i.email}`,children:i.email})]}),i.phone&&(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{style:{color:Y},children:[t(`contact_phone`),`: `]}),i.phone]}),i.trade_number&&(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`span`,{style:{color:Y},children:[t(`contact_trade`),`: `]}),i.trade_number]})]}):Vr(e.content),o&&(0,W.jsx)(`p`,{...G(`modal-updated`),style:{color:Y,fontSize:`12px`,marginTop:`16px`},children:t(`policy_updated`,{date:o})})]})]})})}var Rc={year:`numeric`,month:`short`,day:`numeric`};function zc({reference:e,words:t}){let[n,r]=(0,l.useState)(!1);if(!e)return null;let i=()=>{try{navigator.clipboard?.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)},()=>{})}catch{}};return(0,W.jsxs)(`div`,{...G(`reference`),style:{display:`grid`,gap:`4px`},children:[(0,W.jsx)(`span`,{...G(`reference-label`),style:{fontSize:`13px`,color:Y},children:t(`reference`)}),(0,W.jsxs)(`div`,{...G(`reference-row`),style:{display:`flex`,alignItems:`center`,gap:`8px`,flexWrap:`wrap`},children:[(0,W.jsx)(`code`,{...G(`reference-code`),style:{padding:`8px 12px`,border:`2px dashed var(--page-border, #d1d5db)`,borderRadius:`8px`,font:`700 20px/1.2 ui-monospace, Menlo, Consolas, monospace`,letterSpacing:`2px`},children:e}),(0,W.jsx)(`button`,{type:`button`,onClick:i,...G(`copy-button`),style:{...fc,padding:`6px 12px`},children:t(n?`copied`:`copy`)})]}),(0,W.jsx)(`span`,{...G(`reference-note`),style:{fontSize:`13px`,color:Y},children:t(`referenceNote`)})]})}function Bc({downloads:e,apiUrl:t,words:n,locale:r,noNavigate:i}){let a=Array.isArray(e)?e.filter(e=>e&&e.token&&!e.revoked_at):[];if(!a.length)return null;let o=e=>{try{return new Date(e).toLocaleDateString(r||void 0,{dateStyle:`medium`})}catch{return``}};return(0,W.jsxs)(`div`,{...G(`downloads`),style:{display:`grid`,gap:`8px`,paddingTop:`8px`},children:[(0,W.jsx)(`strong`,{...G(`downloads-title`),style:{fontSize:`14px`},children:n(`downloads_title`)}),a.map(e=>{let r=typeof e.download_limit==`number`?Math.max(0,e.download_limit-(e.downloads??0)):null,a=e.expires_at&&new Date(e.expires_at).getTime()<=Date.now(),s=!a&&(r===null||r>0),c=[r!==null&&n(`download_left`,{count:r}),e.expires_at&&n(a?`download_expired`:`download_until`,{date:o(e.expires_at)})].filter(Boolean);return(0,W.jsxs)(`div`,{...G(`download`),style:{display:`flex`,alignItems:`center`,gap:`12px`,padding:`10px 12px`,border:lc,borderRadius:`8px`},children:[(0,W.jsxs)(`div`,{...G(`download-info`),style:{flex:1,minWidth:0},children:[(0,W.jsx)(`div`,{...G(`download-name`),style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.filename}),c.length>0&&(0,W.jsx)(`div`,{...G(`download-note`),style:{fontSize:`12px`,color:Y},children:c.join(` · `)})]}),s?(0,W.jsx)(`a`,{href:`${t}/store/downloads/${encodeURIComponent(e.token)}`,onClick:i?e=>e.preventDefault():void 0,...G(`download-button`),style:{...dc,padding:`6px 14px`,textDecoration:`none`,fontSize:`14px`},children:n(`download`)}):(0,W.jsx)(`span`,{...G(`download-unavailable`),style:{fontSize:`13px`,color:Y},children:n(`download_unavailable`)})]},e.token)})]})}function Vc({tracking:e,words:t,noNavigate:n}){let r=typeof e?.carrier==`string`?e.carrier:``,i=typeof e?.number==`string`?e.number:``,a=typeof e?.url==`string`&&/^https?:\/\//i.test(e.url)?e.url:``;return!r&&!i&&!a?null:(0,W.jsxs)(`div`,{...G(`tracking`),style:{marginTop:`4px`,paddingTop:`8px`,borderTop:`1px solid var(--page-border, rgba(0,0,0,.1))`,display:`flex`,gap:`10px`,flexWrap:`wrap`,alignItems:`baseline`},children:[(0,W.jsx)(`span`,{...G(`tracking-label`),style:{color:Y},children:t(`tracking`)}),(0,W.jsx)(`span`,{...G(`tracking-number`),children:[r,i].filter(Boolean).join(` · `)}),a&&(0,W.jsx)(`a`,{href:a,target:`_blank`,rel:`noopener noreferrer`,onClick:n?e=>e.preventDefault():void 0,...G(`tracking-link`),style:{color:`var(--page-accent, #4f46e5)`},children:t(`track_parcel`)})]})}function Hc({loginHref:e=`/login`,limit:t=20,style:n,nodeRef:r,inert:i=!1,sample:a=!1,noNavigate:o=!1}){let{tenant:s,apiUrl:c,locale:u,words:d,orderId:f}=pc(),[p,m]=(0,l.useState)(null),[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(``);(0,l.useEffect)(()=>{if(i)return;let e=!0;return Cs(c,s,`/store/my/orders?limit=${Math.max(1,Math.min(100,Number(t)||20))}`).then(t=>e&&m(Array.isArray(t?.data)?t.data:[])).catch(t=>{e&&(g(t?.code===`LOGIN_REQUIRED`),m([]))}),()=>{e=!1}},[c,s,t,i]);let y=i&&a?[{id:`s1`,number:1042,status:`shipped`,payment_status:`paid`,currency:`USD`,total:8490,created_at:new Date().toISOString(),items:[]},{id:`s2`,number:1041,status:`delivered`,payment_status:`paid`,currency:`USD`,total:2990,created_at:new Date(Date.now()-864e6).toISOString(),items:[]}]:p??[],b=e=>{try{return new Intl.DateTimeFormat(u||void 0,Rc).format(new Date(e))}catch{return String(e).slice(0,10)}};return(0,W.jsxs)(`div`,{ref:r,style:{display:`flex`,flexDirection:`column`,gap:`12px`,...z(n)},children:[(0,W.jsx)(`h2`,{...G(`title`),style:{margin:0,fontSize:`22px`},children:d(`myOrders`)}),h&&(0,W.jsx)(`p`,{style:{margin:0},children:(0,W.jsx)(`a`,{href:e,onClick:o?e=>e.preventDefault():void 0,...G(`signin-link`),style:{color:`var(--page-accent, #111827)`},children:d(`signInForOrders`)})}),!h&&(p!==null||i)&&!y.length&&(0,W.jsx)(`p`,{...G(`empty`),style:{margin:0,color:Y},children:d(`noOrders`)}),y.map(e=>(0,W.jsxs)(`div`,{...G(`order`,_===e.id&&`order-open`),style:{border:lc,borderRadius:`10px`,overflow:`hidden`},children:[(0,W.jsxs)(`button`,{type:`button`,onClick:()=>v(t=>t===e.id?``:e.id),...G(`order-header`),style:{width:`100%`,display:`grid`,gridTemplateColumns:`1fr auto auto`,gap:`12px`,alignItems:`center`,padding:`12px 14px`,background:`transparent`,border:0,color:`inherit`,font:`inherit`,textAlign:`left`,cursor:`pointer`},children:[(0,W.jsxs)(`span`,{children:[(0,W.jsx)(`strong`,{...G(`order-number`),children:f(e.number)}),(0,W.jsx)(`span`,{...G(`order-date`),style:{color:Y,marginLeft:`8px`,fontSize:`13px`},children:b(e.created_at)})]}),(0,W.jsxs)(`span`,{...G(`status`),style:{fontSize:`13px`,padding:`2px 10px`,borderRadius:`999px`,background:uc},children:[d(`st_${e.status}`),e.payment_status===`paid`?``:` · ${d(`pay_${e.payment_status}`)}`]}),(0,W.jsx)(`strong`,{...G(`order-total`),children:As(e.total,e.currency,u)})]}),_===e.id&&e.items?.length>0&&(0,W.jsxs)(`div`,{...G(`order-items`),style:{padding:`0 14px 12px`,display:`grid`,gap:`6px`,fontSize:`14px`},children:[e.items.map(t=>(0,W.jsxs)(`div`,{...G(`order-item`),style:{display:`flex`,justifyContent:`space-between`,gap:`12px`},children:[(0,W.jsxs)(`span`,{children:[t.quantity,` × `,t.name,t.variant_title&&(0,W.jsxs)(`span`,{...G(`order-item-variant`),style:{color:Y},children:[` — `,t.variant_title]})]}),(0,W.jsx)(`span`,{...G(`order-item-price`),children:As(t.total,e.currency,u)})]},t.id)),e.payment_status===`unpaid`&&e.status!==`cancelled`&&(0,W.jsx)(zc,{reference:e.transfer_reference,words:d}),(0,W.jsx)(Vc,{tracking:e.tracking,words:d,noNavigate:o}),(0,W.jsx)(Bc,{downloads:e.downloads,apiUrl:c,words:d,locale:u,noNavigate:o})]})]},e.id))]})}function Uc(e){let t=e?.locales,n=[typeof t?.default==`string`&&t.default.trim()?t.default.trim():``,...Array.isArray(t?.enabled)?t.enabled:[]].filter(e=>typeof e==`string`&&e.trim());return[...new Set(n.map(e=>e.trim()))]}var Wc=e=>e&&e.charAt(0).toUpperCase()+e.slice(1);function Gc(e,t){let n=String(e??``).toUpperCase();if(t===`code`)return n;let r=``;try{r=Wc(new Intl.DisplayNames([e],{type:`language`}).of(e)??``)}catch{}return!r||r.toUpperCase()===n?n:t===`both`?`${n} — ${r}`:r}function Kc(e,t){let n=t?``:`?locale=${encodeURIComponent(e)}`;if(typeof window>`u`)return n||`?`;try{let n=new URL(window.location.href);return t?n.searchParams.delete(`locale`):n.searchParams.set(`locale`,e),n.searchParams.delete(`page`),`${n.pathname}${n.search}${n.hash}`}catch{return n||`/`}}function qc({variant:e,display:t,separator:n,label:r,style:i,nodeRef:a,inert:o}){let s=(0,l.useContext)(Un),c=Uc(s?.settings),u=c[0]??``,d=c.includes(s?.locale)?s.locale:u,f={display:`inline-flex`,alignItems:`center`,gap:8,...z(i)};if(c.length<2)return o?(0,W.jsx)(`div`,{ref:a,style:{...f,padding:`8px 12px`,border:`1px dashed rgba(100, 116, 139, 0.45)`,borderRadius:6,color:`rgba(100, 116, 139, 0.8)`,fontSize:12},children:`Add site languages in Settings → Languages`}):null;let p=r?(0,W.jsx)(`span`,{...G(`label`),style:{opacity:.7},children:r}):null;return e===`inline`?(0,W.jsxs)(`div`,{ref:a,style:f,children:[p,c.map((e,r)=>(0,W.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8},children:[r>0&&(0,W.jsx)(`span`,{...G(`separator`),style:{opacity:.4},children:n??`·`}),(0,W.jsx)(`a`,{...G(`link`,e===d&&`link-current`),href:Kc(e,e===u),hrefLang:e,"aria-current":e===d?`true`:void 0,onClick:o?e=>e.preventDefault():void 0,style:{color:e===d?`var(--page-accent, inherit)`:`inherit`,fontWeight:e===d?600:400,textDecoration:`none`,cursor:o?`default`:`pointer`},children:Gc(e,t)})]},e))]}):(0,W.jsxs)(`div`,{ref:a,style:f,children:[p,(0,W.jsx)(`select`,{...G(`select`),"aria-label":r||`Language`,value:d,onChange:o?void 0:e=>{let t=e.target.value;window.location.assign(Kc(t,t===u))},onKeyDown:o?e=>e.preventDefault():void 0,style:{font:`inherit`,color:`inherit`,background:`var(--page-surface, transparent)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:6,padding:`4px 8px`,cursor:o?`default`:`pointer`},children:c.map(e=>(0,l.createElement)(`option`,{...G(`option`,e===d&&`option-current`),key:e,value:e},Gc(e,t)))})]})}var Jc=[Go,us,rs,ds,Bo,_s],Yc={SiteLoginForm:ts,SiteAccountMenu:ns,SiteLanguagePicker:qc,CookieConsent:ls,SiteSearch:gs,AccessibilityToolbar:Wo,ShopProductGrid:Cc,ShopProduct:wc,ShopCartButton:Dc,ShopCheckout:Pc,ShopOrderHistory:Hc,ShopCurrencyPicker:kc,ShopFavorites:Tc};new Set(Jc.filter(e=>e.ssr===`shell`).flatMap(e=>e.keys));var Xc=`0.185.1`,Zc=`4.2.0`,Qc=`https://cdn.jsdelivr.net/npm`,$c=`${Qc}/three@${Xc}/+esm`,el=`${Qc}/@google/model-viewer@${Zc}/dist/model-viewer.min.js`,tl=e=>import(e),nl=new Map;function rl(e){if(nl.has(e))return nl.get(e);if(typeof window>`u`)return new Promise(()=>{});let t=tl(e).catch(t=>{throw nl.delete(e),t});return nl.set(e,t),t}var il=()=>rl($c),al=e=>rl(`${Qc}/three@${Xc}/examples/jsm/${e}/+esm`);function ol(){return typeof window<`u`&&window.customElements?.get(`model-viewer`)?Promise.resolve(null):rl(el)}var sl=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,cl=(e=2)=>Math.min(typeof window>`u`?1:window.devicePixelRatio||1,e);function ll(e,t){let n=0,r=0,i=0,a=!0,o=e=>{n=requestAnimationFrame(o),i||=e;let a=r?(e-r)/1e3:0;r=e,t(a,(e-i)/1e3)},s=()=>{n&&cancelAnimationFrame(n),n=0,r=0},c=()=>{let e=a&&document.visibilityState!==`hidden`;e&&!n?n=requestAnimationFrame(o):!e&&n&&s()};t(0,0);let l=typeof IntersectionObserver>`u`?null:new IntersectionObserver(e=>{a=e.some(e=>e.isIntersecting),c()},{rootMargin:`120px`});return l&&e&&l.observe(e),document.addEventListener(`visibilitychange`,c),c(),()=>{s(),l?.disconnect(),document.removeEventListener(`visibilitychange`,c)}}function ul(e,t,n={}){let r={radius:n.distance??4,polar:n.polar??Math.PI/2.4,azimuth:n.azimuth??.6,target:n.target??{x:0,y:0,z:0}},i={...r},a=n.minDistance??.4,o=n.maxDistance??200,s=n.damping??.12,c=.05,l=null,u=e=>{e.button!==void 0&&e.button!==0||(l={x:e.clientX,y:e.clientY,id:e.pointerId},t.setPointerCapture?.(e.pointerId))},d=e=>{if(!l||e.pointerId!==l.id)return;let t=e.clientX-l.x,n=e.clientY-l.y;l={...l,x:e.clientX,y:e.clientY},i.azimuth-=t*.006,i.polar=Math.max(c,Math.min(Math.PI-c,i.polar-n*.006)),e.preventDefault()},f=e=>{l&&e.pointerId===l.id&&t.releasePointerCapture?.(e.pointerId),l=null},p=e=>{n.enableZoom!==!1&&(e.preventDefault(),i.radius=Math.max(a,Math.min(o,i.radius*(1+Math.sign(e.deltaY)*.12))))};return t.addEventListener(`pointerdown`,u),t.addEventListener(`pointermove`,d),t.addEventListener(`pointerup`,f),t.addEventListener(`pointercancel`,f),t.addEventListener(`wheel`,p,{passive:!1}),{update:()=>{r.radius+=(i.radius-r.radius)*s,r.polar+=(i.polar-r.polar)*s,r.azimuth+=(i.azimuth-r.azimuth)*s;let t=Math.sin(r.polar);e.position.set(r.target.x+r.radius*t*Math.sin(r.azimuth),r.target.y+r.radius*Math.cos(r.polar),r.target.z+r.radius*t*Math.cos(r.azimuth)),e.lookAt(r.target.x,r.target.y,r.target.z)},dragging:()=>!!l,autoSpin:(e,t)=>{!l&&e&&(i.azimuth+=e*t)},frame:(e,t)=>{i.radius=Math.max(a,Math.min(o,e)),r.radius=i.radius,t&&(r.target={...t},i.target={...t})},dispose:()=>{t.removeEventListener(`pointerdown`,u),t.removeEventListener(`pointermove`,d),t.removeEventListener(`pointerup`,f),t.removeEventListener(`pointercancel`,f),t.removeEventListener(`wheel`,p)}}}var dl=(e,t)=>Number.isFinite(Number(e))&&Number(e)>0?Number(e):t,fl=(e,t)=>(Number.isFinite(Number(e))?Number(e):t)/100,pl=e=>(Number.isFinite(Number(e))?Number(e):0)*Math.PI/180,ml=e=>typeof e==`string`&&!!e.trim();function hl({label:e,note:t,height:n,nodeRef:r,style:i}){return(0,W.jsxs)(`div`,{ref:r,style:{...z(i),minHeight:dl(n,320),display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:6,border:`1px dashed rgba(148,163,184,.55)`,borderRadius:10,background:`rgba(148,163,184,.08)`,...Fe,color:`rgba(100,116,139,.95)`,fontSize:13,textAlign:`center`,padding:16},children:[(0,W.jsx)(`div`,{style:{fontWeight:600},children:e}),t?(0,W.jsx)(`div`,{style:{fontSize:11,opacity:.8,maxWidth:320},children:t}):null]})}function gl({src:e,poster:t,alt:n,height:r,bg:i,autoRotate:a,rotateDelay:o,cameraControls:s,ar:c,exposure:u,shadow:d,fieldOfView:f,environment:p,style:m,nodeRef:h,inert:g}){let[_,v]=(0,l.useState)(typeof window<`u`&&!!window.customElements?.get(`model-viewer`)),[y,b]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(_||!e)return;let t=!0;return ol().then(()=>t&&v(!0),()=>t&&b(!0)),()=>{t=!1}},[_,e]);let x={display:`block`,width:`100%`,minHeight:dl(r,360),height:dl(r,360),backgroundColor:i||`transparent`,...z(m)};if(!e)return g?(0,W.jsx)(hl,{nodeRef:h,style:m,height:r,label:`3D Model`,note:`Pick a .glb or .gltf file in the Settings panel.`}):(0,W.jsx)(`div`,{ref:h,style:x});if(y)return(0,W.jsx)(`div`,{ref:h,style:{...x,display:`flex`,alignItems:`center`,justifyContent:`center`},children:t?(0,W.jsx)(`img`,{src:t,alt:n||``,style:{maxWidth:`100%`,maxHeight:`100%`}}):null});let S=e=>e?``:void 0,C=a!==!1;return(0,W.jsx)(`model-viewer`,{ref:h,src:e,alt:n||`A 3D model`,poster:t||void 0,style:x,"camera-controls":S(!g&&s!==!1),"auto-rotate":S(C&&!sl()),"auto-rotate-delay":C?String(dl(o,0)):void 0,"rotation-per-second":`18deg`,ar:S(!g&&c===!0),"ar-modes":`webxr scene-viewer quick-look`,"shadow-intensity":String(fl(d,100)),exposure:String(fl(u,100)),"field-of-view":f?`${Number(f)}deg`:void 0,"environment-image":p&&p!==`neutral`?p:`neutral`,"interaction-prompt":g?`none`:void 0,loading:`lazy`,"touch-action":`pan-y`,children:t?(0,W.jsx)(`img`,{slot:`poster`,src:t,alt:n||``,style:{width:`100%`,height:`100%`,objectFit:`contain`}}):null})}var _l=[`attribute vec2 p;`,`void main() { gl_Position = vec4(p, 0.0, 1.0); }`].join(`
|
|
105
|
-
`),
|
|
106
|
-
`),
|
|
105
|
+
`),I=y&&(f===`drawer`||!f&&!w),L=I&&m!==!1&&!(p&&Number.isFinite(p.top)),R=(()=>{if(!I)return null;if(m===!1)return{display:`none`};if(p&&Number.isFinite(p.top)){let e=Number.isFinite(p.boardLeft)?p.boardLeft:p.left,t=Number.isFinite(p.boardRight)?p.boardRight:p.innerRight,n=Number.isFinite(p.boardWidth)?p.boardWidth:p.innerWidth||800,r={position:`fixed`,zIndex:6,overflowY:`auto`,boxSizing:`border-box`,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,maxWidth:`none`,maxHeight:`none`,boxShadow:`0 0 40px rgba(15, 23, 42, .28)`},i=p.bottom;if(j){let n=Math.min(k,Math.round((p.innerHeight||600)*.86));return{...r,left:e,right:t,width:`auto`,height:n,...A===`top`?{top:p.top}:{bottom:i}}}let a=Math.min(k,Math.round(n*.86));return{...r,top:p.top,bottom:i,width:a,height:`auto`,...A===`right`?{right:t}:{left:e}}}return j?{width:`100%`,height:k,maxHeight:`none`,overflowY:`auto`,boxSizing:`border-box`}:{width:`min(${k}px, 100%)`,maxWidth:`none`,boxSizing:`border-box`,...A===`right`?{marginLeft:`auto`}:null}})(),B=()=>!y&&x(!1),ee=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{...q(`backdrop`),className:`wb-drw-backdrop`,onClick:u===!1?void 0:B,style:{position:`fixed`,inset:0,zIndex:2147483e3,background:`rgba(15, 23, 42, .5)`}}),(0,G.jsxs)(`div`,{ref:C,"data-wb-self":``,className:`wb-drw-panel`,role:b?`dialog`:void 0,"aria-modal":b?`true`:void 0,"aria-label":s||void 0,tabIndex:-1,onClick:e=>{if(d===!1||!b||e.defaultPrevented)return;let t=e.target.closest?.(`a[href]`),n=(t?.getAttribute(`href`)??``).trim();!t||n===``||n===`#`||/^javascript:/i.test(n)||e.target.closest(`[role="button"]`)&&t.contains(e.target.closest(`[role="button"]`))||x(!1)},style:{outline:`none`,...I?{backgroundColor:`var(--page-surface, #ffffff)`,color:`var(--page-text, #111827)`,boxShadow:`0 0 0 1px var(--page-border, rgba(148, 163, 184, .4))`}:null,...!I&&!j?{width:k,maxWidth:`100%`,boxSizing:`border-box`}:null,...z(_),...I?R:null},children:[(s||c!==!1)&&(0,G.jsxs)(`div`,{...q(`header`),className:`wb-drw-head`,style:{alignItems:`center`,gap:12,padding:`14px 16px`,...I?{display:`flex`}:null},children:[(0,G.jsx)(`span`,{...q(`title`),style:{flexGrow:1,fontWeight:700,fontSize:17},children:s}),c!==!1&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Close`,...q(`close-button`),onClick:B,style:{background:`transparent`,border:0,color:`inherit`,cursor:`pointer`,fontSize:20,lineHeight:1,padding:4,opacity:.75},children:`✕`})]}),(0,G.jsx)(`div`,{...q(`content`),children:g?.content})]})]});return(0,G.jsxs)(`div`,{ref:e=>{E.current=e,typeof v==`function`?v(e):v&&(v.current=e)},id:e||void 0,"data-wb-redirect":``,className:`${S}${b?` is-open`:``}`,children:[(0,G.jsx)(`style`,{children:F}),i===`button`&&(0,G.jsxs)(`button`,{type:`button`,...q(`trigger`),className:`wb-drw-trigger`,"aria-expanded":b,"aria-label":a?void 0:s||`Menu`,onClick:()=>!y&&x(!0),style:{alignItems:`center`,gap:8,padding:`8px 12px`,border:`1px solid var(--page-border, rgba(148, 163, 184, .4))`,borderRadius:8,background:`transparent`,color:`inherit`,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,...I?{display:`inline-flex`,marginBottom:L?12:0}:null},children:[(0,G.jsx)(`svg`,{...q(`icon`),width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:Bo(o)})}),a?(0,G.jsx)(`span`,{children:a}):null]}),I&&i!==`button`&&!L&&(0,G.jsxs)(`div`,{style:{...Fe,display:`inline-flex`,alignItems:`center`,gap:6,padding:`4px 10px`,border:`1px dashed rgba(100, 116, 139, .55)`,borderRadius:6,fontSize:12,lineHeight:1.4,color:`rgba(100, 116, 139, .9)`,verticalAlign:`top`},children:[(0,G.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,"aria-hidden":`true`,children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),(0,G.jsx)(`path`,{d:n===`right`?`M15 4v16`:n===`top`?`M3 10h18`:n===`bottom`?`M3 14h18`:`M9 4v16`})]}),h]}),D?(0,Ct.createPortal)((0,G.jsx)(`div`,{className:`${S}${b?` is-open`:``}`,"data-wb":D.wb,"data-wb-redirect":``,style:{display:`contents`},children:ee}),D.target):ee]})}function Ho({target:e=``,breakpoint:t=`tablet`,label:n=``,icon:r=``,forceMode:i,style:a,nodeRef:o,inert:s=!1}){let c=`wb-dbt-${(0,l.useId)().replace(/[^\w-]/g,``)}`,u=Ro[t],d=i||t===`always`||!u?``:`@media (min-width: ${u+1}px) { .${c} { display: none !important; } }`,f=i===`inline`;return(0,G.jsxs)(G.Fragment,{children:[d?(0,G.jsx)(`style`,{children:d}):null,(0,G.jsxs)(`button`,{ref:o,type:`button`,className:c,"data-webim-open":!s&&e?e:void 0,"aria-label":n?void 0:`Menu`,onClick:s?e=>e.preventDefault():void 0,style:{display:f&&!s?`none`:`inline-flex`,opacity:f&&s?.35:void 0,alignItems:`center`,gap:8,padding:`8px 10px`,border:0,borderRadius:8,background:`transparent`,color:`inherit`,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,...z(a)},children:[(0,G.jsx)(`svg`,{...q(`icon`),width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:(0,G.jsx)(`path`,{d:Bo(r)})}),n?(0,G.jsx)(`span`,{...q(`label`),children:n}):null]})]})}var Uo={small:380,medium:560,large:820,full:`100%`};function Wo({dialogId:e=``,trigger:t=`button`,triggerLabel:n=`Open`,openOn:r=`trigger`,delay:i=0,size:a=`medium`,title:o=``,showClose:s=!0,backdropClose:c=!0,position:u=`center`,actions:d=[],showCloseAction:f=!1,closeLabel:p=`Close`,actionsAlign:m=`right`,linked:h,style:g,nodeRef:_,inert:v=!1}){let[y,b]=(0,l.useState)(!1),x=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(v||!e)return;let t=t=>{t.target.closest?.(`a[href="#${e}"], [data-webim-open="${e}"]`)&&(t.preventDefault(),b(!0))};return document.addEventListener(`click`,t),()=>document.removeEventListener(`click`,t)},[v,e]),(0,l.useEffect)(()=>{if(v||r!==`load`)return;let e=setTimeout(()=>b(!0),Math.max(0,Number(i)||0)*1e3);return()=>clearTimeout(e)},[v,r,i]),(0,l.useEffect)(()=>{if(v||!y)return;let e=e=>e.key===`Escape`&&b(!1);document.addEventListener(`keydown`,e);let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,x.current?.focus?.(),()=>{document.removeEventListener(`keydown`,e),document.body.style.overflow=t}},[v,y]);let S=Uo[a]??Uo.medium,C=e=>{let t=e.variant??`primary`,n={padding:`9px 16px`,borderRadius:6,cursor:`pointer`,fontSize:14,fontFamily:`inherit`,textDecoration:`none`,display:`inline-block`,...{primary:{background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`,border:`1px solid transparent`},outline:{background:`transparent`,color:`inherit`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`},text:{background:`transparent`,color:`inherit`,border:`1px solid transparent`},danger:{background:`#dc2626`,color:`#ffffff`,border:`1px solid transparent`}}[t]??{}};return e.href&&!v?(0,G.jsx)(`a`,{...q(`button`,/^[a-z]+$/.test(t)&&`button-${t}`),href:e.href,target:e.target||void 0,rel:e.target===`_blank`?`noopener noreferrer`:void 0,style:n,children:e.label},e.key):(0,G.jsx)(`button`,{...q(`button`,/^[a-z]+$/.test(t)&&`button-${t}`),type:`button`,onClick:()=>!v&&b(!1),style:n,children:e.label},e.key)},w=Array.isArray(d)?d:[],T=w.filter(e=>e.side===`left`),E=w.filter(e=>e.side!==`left`),D=f===!0?C({key:`__close`,label:p||`Close`,variant:`outline`}):null,O=T.length||E.length||D?(0,G.jsxs)(`div`,{...q(`footer`),style:{display:`flex`,alignItems:`center`,gap:8,padding:`14px 20px`,borderTop:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,justifyContent:T.length?`space-between`:m===`left`?`flex-start`:m===`center`?`center`:`flex-end`},children:[T.length>0&&(0,G.jsx)(`div`,{style:{display:`flex`,gap:8},children:T.map(C)}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:8},children:[D,E.map(C)]})]}):null,k=(0,G.jsxs)(`div`,{ref:x,role:`dialog`,"aria-modal":v?void 0:`true`,"aria-label":o||void 0,tabIndex:-1,onClick:e=>e.stopPropagation(),style:{width:typeof S==`number`?`min(${S}px, 100%)`:S,maxHeight:v?void 0:`85vh`,overflowY:v?void 0:`auto`,borderRadius:12,background:`var(--page-surface, #ffffff)`,color:`var(--page-text, #111827)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,boxShadow:v?`none`:`0 24px 64px rgba(15, 23, 42, 0.35)`,outline:`none`,...z(g)},children:[(o||s!==!1)&&(0,G.jsxs)(`div`,{...q(`header`),style:{display:`flex`,alignItems:`center`,gap:12,padding:`16px 20px`,borderBottom:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`},children:[(0,G.jsx)(`span`,{...q(`title`),style:{fontWeight:700,fontSize:17,flexGrow:1,fontFamily:`var(--page-heading-font, inherit)`},children:o}),s!==!1&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Close`,...q(`close-button`),onClick:()=>!v&&b(!1),style:{background:`transparent`,border:0,color:`inherit`,cursor:`pointer`,fontSize:20,lineHeight:1,padding:2,opacity:.7},children:`✕`})]}),(0,G.jsx)(`div`,{...q(`content`),style:{padding:20},children:h?.content}),O]});return(0,G.jsxs)(`div`,{ref:_,id:e||void 0,style:v?void 0:{display:`contents`},children:[t===`button`&&(0,G.jsx)(`button`,{type:`button`,...q(`trigger`),onClick:()=>!v&&b(!0),style:{padding:`10px 18px`,border:0,borderRadius:6,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`},children:n}),v?(0,G.jsx)(`div`,{style:{marginTop:t===`button`?12:0},children:k}):y&&(0,G.jsx)(`div`,{...q(`backdrop`),onClick:c===!1?void 0:()=>b(!1),style:{position:`fixed`,inset:0,zIndex:2147483e3,display:`flex`,alignItems:u===`top`?`flex-start`:`center`,justifyContent:`center`,padding:20,paddingTop:u===`top`?`8vh`:20,background:`rgba(15, 23, 42, 0.55)`,backdropFilter:`blur(2px)`},children:k})]})}function Go({dropdownId:e=``,trigger:t=`button`,triggerLabel:n=`Menu`,openOn:r=`hover`,align:i=`left`,panelWidth:a=``,offset:o=8,editorOpen:s=!0,linked:c,style:u,nodeRef:d,inert:f=!1}){let[p,m]=(0,l.useState)(!1),h=(0,l.useRef)(null),g=(0,l.useRef)(null),_=r!==`click`,v=()=>{g.current&&clearTimeout(g.current),g.current=null},y=()=>{v(),g.current=setTimeout(()=>m(!1),160)};(0,l.useEffect)(()=>{if(f||!e)return;let t=`[data-webim-toggle="${e}"]`,n=e=>{e.target.closest?.(t)&&(e.preventDefault(),v(),m(e=>!e))},r=e=>{e.target.closest?.(t)&&(v(),m(!0))},i=e=>{let n=e.target.closest?.(t);!n||e.relatedTarget&&n.contains(e.relatedTarget)||y()};return document.addEventListener(`click`,n),_&&(document.addEventListener(`mouseover`,r),document.addEventListener(`mouseout`,i)),()=>{document.removeEventListener(`click`,n),document.removeEventListener(`mouseover`,r),document.removeEventListener(`mouseout`,i)}},[f,e,_]),(0,l.useEffect)(()=>{if(f||!p)return;let t=t=>{h.current?.contains(t.target)||e&&t.target.closest?.(`[data-webim-toggle="${e}"]`)||m(!1)},n=e=>e.key===`Escape`&&m(!1);return document.addEventListener(`mousedown`,t),document.addEventListener(`keydown`,n),()=>{document.removeEventListener(`mousedown`,t),document.removeEventListener(`keydown`,n)}},[f,p,e]),(0,l.useEffect)(()=>v,[]);let b=Number(a)>0?Number(a):null,x=f?s!==!1:p,S=(0,G.jsx)(`div`,{style:{position:`absolute`,top:`calc(100% + ${Number(o)||0}px)`,...i===`right`?{right:0}:i===`center`?{left:`50%`,transform:`translateX(-50%)`}:{left:0},zIndex:60,display:x?`block`:`none`,minWidth:b??240,width:b??void 0,maxWidth:`92vw`,padding:14,borderRadius:10,background:`var(--page-surface, #ffffff)`,color:`var(--page-text, inherit)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,boxShadow:`0 16px 44px rgba(15, 23, 42, 0.22)`,...z(u)},children:c?.content??null});return(0,G.jsxs)(`div`,{ref:e=>{h.current=e,d&&d(e)},id:e||void 0,onMouseEnter:!f&&_?()=>{v(),m(!0)}:void 0,onMouseLeave:!f&&_?y:void 0,style:{position:`relative`,display:`inline-block`},children:[t!==`none`&&(0,G.jsxs)(`button`,{type:`button`,...q(`trigger`),"aria-haspopup":`true`,"aria-expanded":f?void 0:p,onClick:()=>!f&&m(e=>!e),style:{padding:`9px 16px`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,borderRadius:6,cursor:`pointer`,fontSize:15,fontFamily:`inherit`,background:`var(--page-surface, transparent)`,color:`inherit`,display:`inline-flex`,alignItems:`center`,gap:6},children:[n,(0,G.jsx)(`span`,{"aria-hidden":`true`,...q(`chevron`),style:{fontSize:10,opacity:.7},children:`▾`})]}),S]})}var Ko={PageRoot:Cr,MarkdownBlock:Hr,CalendarBlock:No,LogoCarousel:Io,DialogBlock:Wo,DrawerBlock:Vo,DrawerTrigger:Ho,DropdownBlock:Go,Section:wr,Container:Tr,LinkBlock:Er,Heading:Dr,TextBlock:Kr,ButtonBlock:Xr,ImageBlock:Zr,Spacer:li,Divider:ui,BoxBlock:di,SliderBlock:_i,CanvasSlider:vi,TabsBlock:Ui,QuickStack:Ca,CollectionList:Ta,CollectionSearch:Ea,BreadcrumbsBlock:Da,PaginationBlock:Oa,StepperBlock:Ga,SocialLinksBlock:Wa,ThemeModeBlock:Na,ScrollTopBlock:Ha,CounterBlock:Va,OrgChartBlock:lo,TableBlock:To,IconBlock:Ai,MapBlock:Oi,MasonryBlock:Mi,AccordionBlock:Wi,NavbarBlock:Hi,MenuTreeBlock:Ri,ListBlock:Gr,TextSpan:Mr,QuoteBlock:Wr,TextLink:Yr,RichTextBlock:Vr,RichContentBlock:Vr,VideoBlock:ei,YouTubeBlock:ni,IframeBlock:ri,PdfBlock:ai,EmbedBlock:ci,FormBlock:la,FormLabel:ha,FormFieldset:xa,FormInput:ga,FormTextarea:_a,FormCheckbox:e=>(0,G.jsx)(va,{kind:`checkbox`,...e}),FormRadio:e=>(0,G.jsx)(va,{kind:`radio`,...e}),FormSelect:ya,FormFile:ba,FormRecaptcha:pa,FormSubmit:Sa},qo={id:`access`,label:`Accessibility toolbar`,category:`Apps`,keys:[`AccessibilityToolbar`],ssr:`shell`,settings:[]},Jo=/^[A-Za-z0-9_-]{4,64}$/;function Yo(e){try{let t=new URL(String(e||``).trim());return t.protocol===`https:`||t.protocol===`http:`?t.origin:``}catch{return``}}var Xo=e=>Jo.test(String(e||``).trim());function Zo({server:e,siteKey:t,inert:n}){let r=Yo(e),i=String(t||``).trim(),a=typeof window<`u`&&!!window.__WEBIM_DASHBOARD__;return n||a||!r||!Xo(i)?null:(0,G.jsx)(`script`,{async:!0,src:`${r}/widget.js`,"data-site":i})}var Qo={id:`auth`,label:`Accounts`,category:`Apps`,keys:[`SiteLoginForm`,`SiteAccountMenu`],ssr:`shell`,settings:[`site.authRedirect`]},$o=(0,l.createContext)({user:null,status:`idle`,ensure:()=>{},refresh:()=>{},signOut:()=>{}});function es(e,t){return t?/^https?:\/\//i.test(t)?t:`${e.replace(/\/+$/,``)}${t.startsWith(`/`)?t:`/${t}`}`:``}function ts(e){let t=e&&typeof e==`object`?e[`site.session`]:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:{},r=e=>typeof e==`string`?e.trim():``,i=r(n.url),a=r(n.mePath),o=r(n.logoutPath);return{mode:n.mode===`custom`||n.mode===`off`?n.mode:`system`,url:i,mePath:a,logoutPath:o,meUrl:es(i,a),logoutUrl:es(i,o),loginPage:r(n.loginPage),userPath:r(n.userPath),auth:n.auth===`bearer`?`bearer`:`cookies`,tokenKey:r(n.tokenKey)||`webim_session_token`}}function ns(e,t){if(!t)return e??null;let n=e;for(let e of t.split(`.`)){if(!n||typeof n!=`object`)return null;n=n[e]}return n??null}function rs(e){try{return window.localStorage.getItem(e)||``}catch{return``}}function is(e){try{window.localStorage.removeItem(e)}catch{}}var as=()=>{let e=(0,l.useContext)($o);return(0,l.useEffect)(()=>{e.ensure()},[e]),e};function os({children:e,initialUser:t,disabled:n,apiUrl:r,tenant:i}){let a=(0,l.useContext)(K),o=r||a?.apiUrl||`/api`,s=i||a?.tenant||``,c=(0,l.useMemo)(()=>ts(a?.settings),[a?.settings]),[u,d]=(0,l.useState)(t??null),[f,p]=(0,l.useState)(t?`user`:n?`guest`:`idle`),m=(0,l.useRef)(!1),h=(0,l.useCallback)((e,t)=>fetch(`${o}${e}`,{...t,credentials:`include`,headers:{"content-type":`application/json`,...s?{"x-tenant":s}:{},...t?.headers}}),[o,s]),g=(0,l.useCallback)(e=>(d(e),p(e?`user`:`guest`),e),[]),_=(0,l.useCallback)(()=>{if(n)return Promise.resolve(null);if(c.mode===`off`)return Promise.resolve(g(null));if(c.mode===`custom`){let e=c.auth===`bearer`?rs(c.tokenKey):``;return!c.meUrl||c.auth===`bearer`&&!e?Promise.resolve(g(null)):fetch(c.meUrl,{...c.auth===`bearer`?{headers:{authorization:`Bearer ${e}`}}:{credentials:`include`}}).then(e=>e.ok?e.json():null).then(e=>{let t=ns(e,c.userPath);return g(t&&typeof t==`object`?t:null)}).catch(()=>g(null))}return h(`/site/me`).then(e=>e.ok?e.json():null).then(e=>g(e?.payload??null)).catch(()=>g(null))},[h,c,n,g]),v=(0,l.useCallback)(()=>{if(c.mode===`off`)return g(null),Promise.resolve();if(c.mode===`custom`){let e=c.auth===`bearer`?rs(c.tokenKey):``;return(c.logoutUrl?fetch(c.logoutUrl,{method:`post`,...c.auth===`bearer`?{headers:e?{authorization:`Bearer ${e}`}:{}}:{credentials:`include`}}).catch(()=>{}):Promise.resolve()).then(()=>{c.auth===`bearer`&&is(c.tokenKey),g(null)})}return h(`/site/logout`,{method:`post`}).catch(()=>{}).then(()=>{g(null)})},[h,c,g]),y=(0,l.useCallback)(()=>{m.current||n||t||(m.current=!0,p(`loading`),_())},[n,t,_]),b=(0,l.useMemo)(()=>({user:u,status:f,ensure:y,refresh:_,signOut:v}),[u,f,y,_,v]);return(0,l.useEffect)(()=>{n||typeof window>`u`||(window.webim={...window.webim,user:u,status:f,loginUrl:c.loginPage||null,requireUser:()=>m.current||t?Promise.resolve(u):_(),refresh:_,signOut:v},window.dispatchEvent(new CustomEvent(`webim:session`,{detail:{user:u,status:f}})))},[n,u,f,t,c.loginPage,_,v]),(0,G.jsx)($o.Provider,{value:b,children:e})}function ss({when:e,children:t}){let{status:n}=as();return!e||e===`always`?t:n===`idle`||n===`loading`?null:e===`user`==(n===`user`)?t:null}function cs({mode:e=`login`,redirect:t,emailLabel:n=`Email`,passwordLabel:r=`Password`,nameLabel:i=`Name`,submitLabel:a,style:o,nodeRef:s,inert:c,linked:u,show:d}){let{tenant:f,apiUrl:p,settings:m}=(0,l.useContext)(K),[h,g]=(0,l.useState)(`form`),[_,v]=(0,l.useState)(``),[y,b]=(0,l.useState)(!1),x=e===`register`,S=c?d||`form`:h,C=e=>typeof e==`string`&&e.startsWith(`/`)&&!e.startsWith(`//`)?e:``,w=async e=>{if(e.preventDefault(),c)return;let n=new FormData(e.currentTarget);b(!0),v(``);try{let e=await fetch(`${p||`/api`}/site/${x?`register`:`login`}`,{method:`post`,headers:{"content-type":`application/json`,...f?{"x-tenant":f}:{}},credentials:`same-origin`,body:JSON.stringify({email:n.get(`email`),password:n.get(`password`),...x?{name:n.get(`name`)||``}:{}})}),r=await e.json().catch(()=>null);if(!e.ok||r?.success===!1){v(r?.error?.message||`Sign-in failed`),g(`error`),b(!1);return}if(g(`success`),typeof window<`u`){let e=C(t)||C(new URLSearchParams(window.location.search).get(`next`))||C(m?.[`site.authRedirect`])||C(m?.[`apps.auth.redirect`])||`/`;window.location.assign(e)}}catch{v(`Sign-in failed`),g(`error`),b(!1)}};return(0,G.jsxs)(`div`,{ref:s,style:{display:`grid`,gap:12,maxWidth:360,...z(o)},children:[(0,G.jsxs)(`form`,{...q(`form`),onSubmit:w,style:{display:S===`form`?`grid`:`none`,gap:10},children:[x?(0,G.jsxs)(`label`,{...q(`label`),style:{...Ki,display:`grid`,gap:6},children:[i,(0,G.jsx)(`input`,{...q(`input`),name:`name`,type:`text`,style:qi,...Yi(c)})]}):null,(0,G.jsxs)(`label`,{...q(`label`),style:{...Ki,display:`grid`,gap:6},children:[n,(0,G.jsx)(`input`,{...q(`input`),name:`email`,type:`email`,required:!c,style:qi,...Yi(c)})]}),(0,G.jsxs)(`label`,{...q(`label`),style:{...Ki,display:`grid`,gap:6},children:[r,(0,G.jsx)(`input`,{...q(`input`),name:`password`,type:`password`,required:!c,style:qi,...Yi(c)})]}),(0,G.jsx)(`button`,{...q(`button`,y&&`button-busy`),type:c?`button`:`submit`,disabled:y||void 0,style:{...vr,border:0,padding:`10px 22px`,borderRadius:8,fontSize:15,fontWeight:600,cursor:`pointer`,opacity:y?.6:1},children:a||(x?`Create account`:`Sign in`)}),_?(0,G.jsx)(`p`,{...q(`error`),style:{margin:0,fontSize:14,color:`#dc2626`},children:_}):null]}),(0,G.jsx)(`div`,{style:{display:S===`success`?`block`:`none`},children:u?.success??null}),(0,G.jsx)(`div`,{style:{display:S===`error`?`block`:`none`},children:u?.error??null})]})}function ls({greeting:e=`Hi`,signOutLabel:t=`Sign out`,showEmail:n=!1,style:r,nodeRef:i,inert:a,linked:o,show:s}){let{user:c,status:l,signOut:u}=as(),d=a?s||`user`:l,f=a?{name:`Ada Lovelace`,email:`ada@example.com`}:c;return d===`loading`?(0,G.jsx)(`div`,{ref:i,style:{minHeight:24,...z(r)}}):d===`user`?(0,G.jsxs)(`div`,{ref:i,style:{display:`flex`,alignItems:`center`,gap:10,...z(r)},children:[(0,G.jsxs)(`span`,{...q(`greeting`),style:{...Ki,fontWeight:600},children:[e,` `,f?.name||f?.email||``]}),n&&f?.email?(0,G.jsx)(`span`,{...q(`email`),style:{...Ki,opacity:.7},children:f.email}):null,(0,G.jsx)(`button`,{...q(`button`),type:`button`,onClick:a?void 0:u,style:{...vr,border:0,padding:`8px 16px`,borderRadius:8,fontSize:14,cursor:a?`default`:`pointer`},...Yi(a),children:t})]}):(0,G.jsx)(`div`,{ref:i,style:{display:`flex`,alignItems:`center`,gap:10,...z(r)},children:o?.signedOut??null})}var us={id:`consent`,label:`Cookie consent`,category:`Apps`,keys:[`CookieConsent`],ssr:`shell`,settings:[]},ds=`webim.cookie_consent`;function fs(){try{let e=window.localStorage.getItem(ds),t=e?JSON.parse(e):null;return t?.choice===`accepted`||t?.choice===`declined`?t.choice:``}catch{return``}}function ps(e){try{document.querySelectorAll(`.webim-page`).forEach(t=>t.setAttribute(`data-webim-consent`,e))}catch{}}function ms(e){try{window.localStorage.setItem(ds,JSON.stringify({choice:e,at:new Date().toISOString()}))}catch{}ps(e);try{window.dispatchEvent(new CustomEvent(`webim:consent`,{detail:{choice:e}}))}catch{}}var hs={bottom:{left:0,right:0,bottom:0},top:{left:0,right:0,top:0},"bottom-left":{left:16,bottom:16,maxWidth:400},"bottom-right":{right:16,bottom:16,maxWidth:400}};function gs({message:e,acceptLabel:t,rejectLabel:n,showReject:r,linkLabel:i,linkHref:a,position:o,linked:s,style:c,nodeRef:u,inert:d}){let[f,p]=(0,l.useState)(!!d),[m,h]=(0,l.useState)(null),g=e=>{h(e),typeof u==`function`&&u(e)};if((0,l.useEffect)(()=>{if(d)return;let e=fs();e?ps(e):p(!0)},[d,m]),!f)return null;let _=e=>()=>{d||(ms(e),p(!1))},v=hs[o]??hs.bottom,y={appearance:`none`,font:`inherit`,fontSize:14,fontWeight:600,padding:`8px 16px`,borderRadius:8,cursor:d?`default`:`pointer`,whiteSpace:`nowrap`};return(0,G.jsxs)(`div`,{ref:g,role:`region`,"aria-label":`Cookie consent`,style:{...d?{position:`relative`}:{position:`fixed`,zIndex:2147483e3,...v},display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:12,padding:16,background:`var(--page-surface, #f2f2f2)`,color:`var(--page-text, #111827)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:o===`bottom`||o===`top`?0:12,boxShadow:`0 8px 30px rgba(15, 23, 42, 0.18)`,fontSize:14,lineHeight:1.5,...z(c)},children:[(0,G.jsxs)(`div`,{...q(`message`),style:{flex:`1 1 260px`,minWidth:0},children:[s?.content??(e||`We use cookies to run this site and to understand how it is used.`),i&&a?(0,G.jsxs)(G.Fragment,{children:[` `,(0,G.jsx)(`a`,{...q(`link`),href:a,onClick:d?e=>e.preventDefault():void 0,style:{color:`var(--page-accent, inherit)`,textDecoration:`underline`},children:i})]}):null]}),(0,G.jsxs)(`div`,{...q(`actions`),style:{display:`flex`,gap:8,flexShrink:0},children:[r===!1?null:(0,G.jsx)(`button`,{...q(`decline-button`),type:`button`,onClick:_(`declined`),style:{...y,background:`transparent`,color:`inherit`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.6))`},children:n||`Decline`}),(0,G.jsx)(`button`,{...q(`accept-button`),type:`button`,onClick:_(`accepted`),style:{...y,background:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`,border:`1px solid transparent`},children:t||`Accept`})]})]})}var _s={id:`language`,label:`Language`,category:`Apps`,keys:[`SiteLanguagePicker`],ssr:`prefetch`,settings:[`locales`]},vs={id:`search`,label:`Search`,category:`Apps`,keys:[`SiteSearch`],ssr:`prefetch`,settings:[]},ys=50,bs=2e3;function xs(){return typeof window>`u`?``:new URLSearchParams(window.location.search).get(`q`)??``}function Ss(e,t){let n=e?.data??{},r=[];for(let e of Object.values(n)){let t=e==null?``:rr(e);if(t&&r.push(t),r.join(` `).length>bs)break}return r.join(` `).slice(0,bs).toLocaleLowerCase(t||void 0)}function Cs({placeholder:e=`Search…`,buttonLabel:t=`Search`,showButton:n=!0,live:r=!1,layout:i=`inline`,includePages:a=!0,collections:o=[],limit:s=10,emptyText:c=`Nothing found`,hint:u=``,style:d,nodeRef:f,inert:p=!1,sample:m=!1}){let{tenant:h,apiUrl:g,locale:_}=(0,l.useContext)(K),[v,y]=(0,l.useState)(()=>xs()),[b,x]=(0,l.useState)(()=>xs()),[S,C]=(0,l.useState)(null),[w,T]=(0,l.useState)(!1),E=(0,l.useRef)(null),D=i===`popup`;(0,l.useEffect)(()=>{let e=()=>{let e=xs();y(e),x(e)};return window.addEventListener(`popstate`,e),window.addEventListener(`webim:urlchange`,e),()=>{window.removeEventListener(`popstate`,e),window.removeEventListener(`webim:urlchange`,e)}},[]),(0,l.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{y(b),b.trim()&&T(!0)},200);return()=>clearTimeout(e)},[r,b]),(0,l.useEffect)(()=>{if(!D)return;let e=e=>{E.current&&!E.current.contains(e.target)&&T(!1)},t=e=>e.key===`Escape`&&T(!1);return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[D]),(0,l.useEffect)(()=>{let e=!0,t=h?{"x-tenant":h}:{},n=e=>fetch(`${g}${e}`,{headers:t}).then(e=>e.json()).then(e=>e?.payload).catch(()=>null),r=[a?n(`/site/pages`).then(e=>({kind:`page`,rows:Array.isArray(e)?e:[]})):null,...(Array.isArray(o)?o:[]).filter(Boolean).map(e=>n(`/dynamic/${encodeURIComponent(e)}?all=1${_?`&locale=${encodeURIComponent(_)}`:``}`).then(t=>({kind:`entry`,slug:e,rows:Array.isArray(t)?t:Array.isArray(t?.data)?t.data:[]})))].filter(Boolean);return Promise.all(r).then(t=>e&&C(t)),()=>{e=!1}},[g,h,_,a,JSON.stringify(o)]);let O=v.trim().toLocaleLowerCase(_||void 0),k=[];if(O&&S)for(let e of S)if(e.kind===`page`)for(let t of e.rows){if(t?.access&&t.access!==`public`)continue;let e=String(t?.title??``);`${e} ${t?.slug??``}`.toLocaleLowerCase(_||void 0).includes(O)&&k.push({key:`page:${t.slug}`,title:e||t.slug,url:`/${t.slug}`,kind:`page`})}else for(let t of e.rows){if(!Ss(t,_).includes(O))continue;let n=t?.data??{},r=rr(n.name)||`Untitled`,i=rr(n.slug);k.push({key:`entry:${t.id}`,title:r,url:i?`/${e.slug}/${i}`:`/${e.slug}`,kind:`entry`})}let A=k.slice(0,Math.min(Math.max(1,s),ys)),j=e=>{if(p){e.preventDefault(),y(b),T(!0);return}if(typeof window>`u`||!window.history?.pushState)return;e.preventDefault();let t=new URLSearchParams(window.location.search);b.trim()?t.set(`q`,b.trim()):t.delete(`q`),t.delete(`page`);let n=t.toString();window.history.pushState({},``,`${window.location.pathname}${n?`?${n}`:``}`),window.dispatchEvent(new Event(`webim:urlchange`)),T(!0)},M=m&&!O?[{key:`sample-1`,title:`About us`,url:`/about`,kind:`page`},{key:`sample-2`,title:`Spring collection`,url:`/blog/spring`,kind:`entry`}]:null,N=M??A,P=!M&&O&&S&&!A.length,F=!D||w&&(N.length>0||P),I=N.length>0&&(0,G.jsx)(`ul`,{...q(`results`),style:{listStyle:`none`,margin:0,padding:0,display:`flex`,flexDirection:`column`,gap:2},children:N.map(e=>(0,l.createElement)(`li`,{...q(`item`),key:e.key},(0,G.jsxs)(`a`,{...q(`result`),href:p?void 0:e.url,style:{display:`block`,padding:`10px 12px`,borderRadius:6,color:`inherit`,textDecoration:`none`,border:D?0:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`},children:[(0,G.jsx)(`span`,{...q(`title`),style:{display:`block`,fontWeight:600},children:e.title}),(0,G.jsx)(`span`,{...q(`url`),style:{display:`block`,fontSize:12,opacity:.6},children:e.url})]})))});return(0,G.jsx)(`div`,{ref:f,style:{width:`100%`,...z(d)},children:(0,G.jsxs)(`div`,{ref:E,style:{position:`relative`},children:[(0,G.jsxs)(`form`,{...q(`form`),method:`get`,onSubmit:j,style:{display:`flex`,gap:8,alignItems:`center`},children:[(0,G.jsx)(`input`,{...q(`input`),type:`search`,name:`q`,value:b,placeholder:e,onChange:e=>x(e.target.value),onFocus:()=>O&&T(!0),style:{...qi,flexGrow:1,minWidth:0}}),n!==!1&&(0,G.jsx)(`button`,{...q(`button`),type:`submit`,style:{padding:`10px 16px`,border:0,borderRadius:6,cursor:`pointer`,fontSize:14,fontFamily:`inherit`,background:`var(--page-accent, #4f46e5)`,color:`var(--page-accent-text, #ffffff)`},children:t})]}),u&&(0,G.jsx)(`div`,{...q(`hint`),style:{fontSize:13,opacity:.65,marginTop:6},children:u}),F&&(0,G.jsxs)(`div`,{...q(`panel`),style:D?{position:`absolute`,top:`100%`,left:0,right:0,zIndex:30,marginTop:6,padding:6,maxHeight:320,overflowY:`auto`,borderRadius:8,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.35))`,background:`var(--page-surface, #f2f2f2)`,boxShadow:`0 12px 32px rgba(15, 23, 42, 0.18)`}:{marginTop:14},children:[I,P&&(0,G.jsx)(`div`,{...q(`empty`),style:{fontSize:14,opacity:.65,padding:D?`10px 12px`:0},children:c})]})]})})}var ws={id:`shop`,label:`Shop`,category:`Shop`,keys:[`ShopProductGrid`,`ShopProduct`,`ShopCartButton`,`ShopCheckout`,`ShopOrderHistory`,`ShopCurrencyPicker`,`ShopFavorites`],ssr:`shell`,settings:[`shop.enabled`]},Ts=`webim.cart.`,Es=`webim.currency.`,Ds=new Map,Os={get(e){try{return window.localStorage.getItem(e)??``}catch{return``}},set(e,t){try{t?window.localStorage.setItem(e,t):window.localStorage.removeItem(e)}catch{}}};function ks(e){if(typeof window>`u`)return!1;try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}}async function As(e,t,n,{method:r=`GET`,body:i}={}){let a=await fetch(`${e}${n}`,{method:r,...ks(e)?{credentials:`include`}:{},headers:{...t?{"x-tenant":t}:{},...i?{"content-type":`application/json`}:{}},body:i?JSON.stringify(i):void 0}),o=await a.json().catch(()=>null);if(!o||o.success===!1||!a.ok){let e=o?.error;throw{message:(e&&typeof e==`object`?e.message:e)||`Request failed (${a.status})`,code:(e&&typeof e==`object`?e.code:o?.code)||`ERROR`}}return o.payload}var js={id:``,currency:``,lines:[],count:0,subtotal:0,coupon:null,coupon_error:null,coupon_error_code:null,discounts:[],discount_total:0,shipping_before:0,shipping_total:0,total:0};function Ms(e,t){let n=`${Ts}${t||`default`}`,r=`${Es}${t||`default`}`,i=new Set,a={cart:js,loading:!1,loaded:!1,error:null,currency:Os.get(r)},o=null,s=()=>i.forEach(e=>e()),c=e=>{a={...a,...e},s()},l=e=>(e&&typeof e==`object`&&(e.id&&Os.set(n,e.id),c({cart:e,loaded:!0,error:null})),e),u=()=>{if(o)return o;let r=Os.get(n),i=new URLSearchParams({...r?{id:r}:{},...a.currency?{currency:a.currency}:{}}).toString();return c({loading:!0}),o=As(e,t,`/store/cart${i?`?${i}`:``}`).then(l).catch(e=>c({error:e,loaded:!0})).finally(()=>{o=null,c({loading:!1})}),o},d=async(r,i,o)=>{c({loading:!0});try{return l(await As(e,t,`/store/cart`,{method:`POST`,body:{cart_id:Os.get(n)||void 0,product_id:r,variant_id:i??null,quantity:o,currency:a.currency||void 0}}))}finally{c({loading:!1})}};return typeof window<`u`&&window.addEventListener(`storage`,e=>{e.key===r&&c({currency:Os.get(r)}),(e.key===n||e.key===r)&&u()}),{getState:()=>a,subscribe:e=>(i.add(e),()=>i.delete(e)),load:u,setLine:d,add:(e,t,n=1)=>{let r=a.cart.lines.find(n=>n.product_id===e&&(n.variant_id??null)===(t??null));return d(e,t,(r?.quantity??0)+n)},setCoupon:async r=>{c({loading:!0});try{return l(await As(e,t,`/store/cart/coupon`,{method:`POST`,body:{cart_id:Os.get(n),code:r}}))}finally{c({loading:!1})}},setCountry:async(r,i)=>Os.get(n)?l(await As(e,t,`/store/cart/country`,{method:`POST`,body:{cart_id:Os.get(n),country:r,...i!==void 0&&{postal_code:i}}})):a.cart,setDelivery:async r=>Os.get(n)?l(await As(e,t,`/store/cart/delivery`,{method:`POST`,body:{cart_id:Os.get(n),delivery:r}})):a.cart,setCurrency:async i=>{if(Os.set(r,i),c({currency:i}),!Os.get(n))return u();try{return l(await As(e,t,`/store/cart/currency`,{method:`POST`,body:{cart_id:Os.get(n),currency:i}}))}catch{return Os.set(r,``),c({currency:``}),u()}},reset:()=>{Os.set(n,``),c({cart:js})},cartId:()=>Os.get(n)}}function Ns(e,t){let n=`${e}|${t}`;return Ds.has(n)||Ds.set(n,Ms(e,t)),Ds.get(n)}function Ps(e,t){let n=Array.isArray(e?.currencies)?e.currencies:[];return t&&n.includes(t)?t:e?.currency||``}var Fs=`AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW`.split(` `);function Is(e,t=[],n=null){let r;try{r=new Intl.DisplayNames([e||`en`],{type:`region`})}catch{r={of:e=>e}}let i=(n??Fs).map(e=>({code:e,name:r.of(e)??e})),a=i.filter(e=>t.includes(e.code)).sort((t,n)=>t.name.localeCompare(n.name,e||void 0)),o=i.filter(e=>!t.includes(e.code)).sort((t,n)=>t.name.localeCompare(n.name,e||void 0));return[...a,...o]}function Ls(e,t,n){let r=t||`USD`;try{let t=new Intl.NumberFormat(n||void 0,{style:`currency`,currency:r}),i=t.resolvedOptions().maximumFractionDigits??2;return t.format(Number(e||0)/10**i)}catch{return`${(Number(e||0)/100).toFixed(2)} ${r}`}}var Rs={en:{add:`Add to cart`,adding:`Adding…`,added:`Added to cart`,choose:`Choose options`,soldOut:`Sold out`,onlyLeft:`Only {n} left`,quantity:`Quantity`,cart:`Cart`,emptyCart:`Your cart is empty.`,subtotal:`Subtotal`,shipping:`Shipping`,free:`Free`,total:`Total`,remove:`Remove`,contact:`Contact`,name:`Full name`,email:`E-mail`,phone:`Phone`,address:`Delivery address`,line1:`Address`,line2:`Apartment, suite (optional)`,city:`City`,region:`State / province`,postal:`Postal code`,country:`Country`,note:`Order note (optional)`,gift:`This order is a gift`,giftHint:`No prices on the packing slip in the parcel.`,giftMessage:`Gift message (optional)`,giftRecipient:`Recipient’s name (optional — the parcel is addressed to them)`,payment:`Payment`,stripe:`Card`,bank_transfer:`Bank transfer`,cash_on_delivery:`Cash on delivery`,placeOrder:`Place order`,placing:`Placing order…`,required:`Please fill in the required fields.`,noMethods:`This shop has no payment method set up yet.`,thanks:`Thank you! Your order {number} is placed.`,paid:`Your payment was received.`,awaiting:`We are waiting for your payment to be confirmed.`,transfer:`Please transfer the total using the details below:`,reference:`Payment reference`,referenceNote:`Write this reference in the transfer description — it is how your payment is matched to your order.`,copy:`Copy`,copied:`Copied`,cod:`You will pay when the order is delivered.`,cancelled:`The payment was cancelled — your cart is still here.`,closed:`This shop is not open right now.`,continue:`Continue shopping`,noProducts:`No products yet.`,coupon:`Discount code`,apply:`Apply`,removeCoupon:`Remove`,discount:`Discount`,tax:`VAT`,taxIncluded:`incl. VAT`,chooseCountry:`Choose a country`,noShipping:`This shop does not ship to that country.`,delivery:`Delivery`,deliveryPick:`Enter your country to see the delivery options.`,arrives:`Arrives {date}`,arrivesRange:`Arrives {from} – {to}`,pickupAt:`Pick up at {name}`,pickupNote:`We will let you know when it is ready.`,deliveredBy:`Delivery: {name}`,SHIPPING_UNAVAILABLE:`This shop does not ship to that country.`,DELIVERY_UNAVAILABLE:`That delivery option is no longer available — pick another.`,COUPON_INVALID:`This code is not valid.`,COUPON_NOT_STARTED:`This code is not active yet.`,COUPON_EXPIRED:`This code has expired.`,COUPON_USED_UP:`This code has been used up.`,COUPON_MIN_SUBTOTAL:`Your cart is below this code’s minimum.`,COUPON_MIN_QUANTITY:`Add more items to use this code.`,COUPON_NOT_ELIGIBLE:`This code is not available for your account.`,COUPON_ALREADY_USED:`You have already used this code.`,COUPON_NOT_APPLICABLE:`None of the items in your cart qualify for this code.`,COUPON_NOT_COMBINABLE:`This code can’t be combined with a better discount already applied.`,COUPON_SHIPPING_NA:`This code doesn’t apply to this delivery.`,myOrders:`My orders`,signInForOrders:`Sign in to see your orders.`,noOrders:`You have no orders yet.`,order:`Order`,date:`Date`,status:`Status`,st_pending:`Pending`,st_processing:`Processing`,st_shipped:`Shipped`,downloads_title:`Your downloads`,download:`Download`,download_left:`{count} downloads left`,download_until:`valid until {date}`,download_expired:`expired on {date}`,download_unavailable:`No longer available`,policy_refund:`Refund policy`,policy_privacy:`Privacy policy`,policy_terms:`Terms of service`,policy_shipping:`Shipping policy`,policy_contact:`Contact information`,policy_legal:`Legal notice`,policy_agree:`By placing your order you agree to our {terms}.`,policy_updated:`Last updated {date}`,contact_email:`E-mail`,contact_phone:`Phone`,contact_address:`Address`,contact_trade:`Trade register / VAT number`,close:`Close`,tracking:`Tracking`,track_parcel:`Track parcel`,st_delivered:`Delivered`,st_cancelled:`Cancelled`,pay_unpaid:`Awaiting payment`,pay_refunded:`Refunded`,pay_failed:`Payment failed`,reviewsTitle:`Reviews`,reviewsCount:`{n} reviews`,reviewsOne:`1 review`,qaCount:`{n} Q&A`,lovedBy:`Loved! {n} people favorited this`,lovedByOne:`1 person favorited this`,favorite:`Add to favorites`,unfavorite:`Remove from favorites`,noReviews:`No reviews yet. Be the first to review this product.`,writeReview:`Write a review`,editReview:`Edit your review`,yourRating:`Your rating`,reviewTitle:`Title (optional)`,reviewBody:`What did you think?`,submitReview:`Submit review`,reviewPending:`Thanks! Your review appears here once the shop approves it.`,reviewThanks:`Thanks for your review!`,awaitingApproval:`Awaiting approval`,verified:`Verified purchase`,shopReply:`Reply from the shop`,signInToReview:`Sign in to write a review`,pickRating:`Choose a rating first.`,sortNewest:`Newest`,sortHighest:`Highest rated`,sortLowest:`Lowest rated`,sortHelpful:`Most detailed`,allRatings:`All ratings`,starsN:`{n} stars`,loadMore:`Show more`,questionsTitle:`Questions & answers`,noQuestions:`No questions yet.`,askQuestion:`Ask a question`,questionPlaceholder:`What would you like to know about this product?`,submitQuestion:`Send question`,questionPending:`Thanks! Your question appears here once the shop answers it.`,signInToAsk:`Sign in to ask a question`,answerLabel:`Answer`,qMark:`Q:`,aMark:`A:`,awaitingAnswer:`Waiting for an answer`,anonymous:`A customer`,myFavorites:`My favorites`,noFavorites:`You have no favorites yet.`,signInForFavorites:`Sign in to see your favorites`,REVIEW_BUYERS_ONLY:`Only customers who bought this product can review it.`,QUESTION_LIMIT:`You already have questions waiting for an answer.`,specifications:`Specifications`,yes:`Yes`,no:`No`},tr:{add:`Sepete ekle`,adding:`Ekleniyor…`,added:`Sepete eklendi`,choose:`Seçenekleri gör`,soldOut:`Tükendi`,onlyLeft:`Son {n} adet`,quantity:`Adet`,cart:`Sepet`,emptyCart:`Sepetiniz boş.`,subtotal:`Ara toplam`,shipping:`Kargo`,free:`Ücretsiz`,total:`Toplam`,remove:`Kaldır`,contact:`İletişim`,name:`Ad soyad`,email:`E-posta`,phone:`Telefon`,address:`Teslimat adresi`,line1:`Adres`,line2:`Daire, kat (isteğe bağlı)`,city:`Şehir`,region:`İlçe / bölge`,postal:`Posta kodu`,country:`Ülke`,note:`Sipariş notu (isteğe bağlı)`,gift:`Bu sipariş bir hediye`,giftHint:`Paketteki irsaliyede fiyat yer almaz.`,giftMessage:`Hediye notu (isteğe bağlı)`,giftRecipient:`Alıcının adı (isteğe bağlı — paket bu kişiye gönderilir)`,payment:`Ödeme`,stripe:`Kredi kartı`,bank_transfer:`Havale / EFT`,cash_on_delivery:`Kapıda ödeme`,placeOrder:`Siparişi ver`,placing:`Sipariş veriliyor…`,required:`Lütfen zorunlu alanları doldurun.`,noMethods:`Bu mağazada henüz bir ödeme yöntemi tanımlı değil.`,thanks:`Teşekkürler! {number} numaralı siparişiniz alındı.`,paid:`Ödemeniz alındı.`,awaiting:`Ödemenizin onaylanmasını bekliyoruz.`,transfer:`Lütfen toplam tutarı aşağıdaki bilgilere gönderin:`,reference:`Ödeme referansı`,referenceNote:`Bu referansı havale / EFT açıklamasına yazın — ödemeniz siparişinizle bu sayede eşleşir.`,copy:`Kopyala`,copied:`Kopyalandı`,cod:`Ödemeyi sipariş teslim edilirken yapacaksınız.`,cancelled:`Ödeme iptal edildi — sepetiniz duruyor.`,closed:`Bu mağaza şu anda açık değil.`,continue:`Alışverişe devam et`,noProducts:`Henüz ürün yok.`,coupon:`İndirim kodu`,apply:`Uygula`,removeCoupon:`Kaldır`,discount:`İndirim`,tax:`KDV`,taxIncluded:`dahil KDV`,chooseCountry:`Ülke seçin`,noShipping:`Bu mağaza o ülkeye gönderim yapmıyor.`,delivery:`Teslimat`,deliveryPick:`Teslimat seçeneklerini görmek için ülkenizi seçin.`,arrives:`Tahmini teslim: {date}`,arrivesRange:`Tahmini teslim: {from} – {to}`,pickupAt:`{name} mağazasından teslim alın`,pickupNote:`Hazır olduğunda size haber vereceğiz.`,deliveredBy:`Teslimat: {name}`,SHIPPING_UNAVAILABLE:`Bu mağaza o ülkeye gönderim yapmıyor.`,DELIVERY_UNAVAILABLE:`Bu teslimat seçeneği artık yok — başka birini seçin.`,COUPON_INVALID:`Bu kod geçerli değil.`,COUPON_NOT_STARTED:`Bu kod henüz aktif değil.`,COUPON_EXPIRED:`Bu kodun süresi dolmuş.`,COUPON_USED_UP:`Bu kodun kullanım hakkı dolmuş.`,COUPON_MIN_SUBTOTAL:`Sepetiniz bu kodun alt sınırının altında.`,COUPON_MIN_QUANTITY:`Bu kodu kullanmak için daha fazla ürün ekleyin.`,COUPON_NOT_ELIGIBLE:`Bu kod hesabınız için geçerli değil.`,COUPON_ALREADY_USED:`Bu kodu zaten kullandınız.`,COUPON_NOT_APPLICABLE:`Sepetinizdeki ürünlerden hiçbiri bu koda uygun değil.`,COUPON_NOT_COMBINABLE:`Bu kod, uygulanan daha avantajlı bir indirimle birleştirilemez.`,COUPON_SHIPPING_NA:`Bu kod bu teslimat için geçerli değil.`,myOrders:`Siparişlerim`,signInForOrders:`Siparişlerinizi görmek için giriş yapın.`,noOrders:`Henüz siparişiniz yok.`,order:`Sipariş`,date:`Tarih`,status:`Durum`,st_pending:`Bekliyor`,st_processing:`Hazırlanıyor`,st_shipped:`Kargoda`,downloads_title:`İndirmeleriniz`,download:`İndir`,download_left:`{count} indirme hakkı kaldı`,download_until:`{date} tarihine kadar geçerli`,download_expired:`{date} tarihinde sona erdi`,download_unavailable:`Artık kullanılamıyor`,policy_refund:`İade politikası`,policy_privacy:`Gizlilik politikası`,policy_terms:`Hizmet koşulları`,policy_shipping:`Kargo politikası`,policy_contact:`İletişim bilgileri`,policy_legal:`Yasal bildirim`,policy_agree:`Siparişi vererek {terms} kabul etmiş olursunuz.`,policy_updated:`Son güncelleme: {date}`,contact_email:`E-posta`,contact_phone:`Telefon`,contact_address:`Adres`,contact_trade:`Ticaret sicil / Vergi no`,close:`Kapat`,tracking:`Kargo takibi`,track_parcel:`Kargonu takip et`,st_delivered:`Teslim edildi`,st_cancelled:`İptal edildi`,pay_unpaid:`Ödeme bekleniyor`,pay_refunded:`İade edildi`,pay_failed:`Ödeme başarısız`,reviewsTitle:`Değerlendirmeler`,reviewsCount:`{n} Değerlendirme`,reviewsOne:`1 Değerlendirme`,qaCount:`{n} Soru-Cevap`,lovedBy:`Sevilen ürün! {n} kişi favoriledi!`,lovedByOne:`1 kişi favoriledi`,favorite:`Favorilere ekle`,unfavorite:`Favorilerden çıkar`,noReviews:`Henüz değerlendirme yok. İlk değerlendiren siz olun.`,writeReview:`Değerlendirme yaz`,editReview:`Değerlendirmenizi düzenleyin`,yourRating:`Puanınız`,reviewTitle:`Başlık (isteğe bağlı)`,reviewBody:`Ürün hakkında ne düşünüyorsunuz?`,submitReview:`Değerlendirmeyi gönder`,reviewPending:`Teşekkürler! Değerlendirmeniz mağaza onayladıktan sonra burada görünür.`,reviewThanks:`Değerlendirmeniz için teşekkürler!`,awaitingApproval:`Onay bekliyor`,verified:`Doğrulanmış alışveriş`,shopReply:`Mağazanın yanıtı`,signInToReview:`Değerlendirme yazmak için giriş yapın`,pickRating:`Önce bir puan seçin.`,sortNewest:`En yeni`,sortHighest:`En yüksek puan`,sortLowest:`En düşük puan`,sortHelpful:`En detaylı`,allRatings:`Tüm puanlar`,starsN:`{n} yıldız`,loadMore:`Daha fazla göster`,questionsTitle:`Soru-Cevap`,noQuestions:`Henüz soru yok.`,askQuestion:`Soru sor`,questionPlaceholder:`Bu ürün hakkında ne öğrenmek istersiniz?`,submitQuestion:`Soruyu gönder`,questionPending:`Teşekkürler! Sorunuz mağaza yanıtladıktan sonra burada görünür.`,signInToAsk:`Soru sormak için giriş yapın`,answerLabel:`Yanıt`,qMark:`S:`,aMark:`C:`,awaitingAnswer:`Yanıt bekliyor`,anonymous:`Bir müşteri`,myFavorites:`Favorilerim`,noFavorites:`Henüz favoriniz yok.`,signInForFavorites:`Favorilerinizi görmek için giriş yapın`,REVIEW_BUYERS_ONLY:`Bu ürünü yalnızca satın alan müşteriler değerlendirebilir.`,QUESTION_LIMIT:`Yanıt bekleyen sorularınız var.`,specifications:`Özellikler`,yes:`Evet`,no:`Hayır`}};function zs(e){let t=Rs[String(e||``).toLowerCase().split(`-`)[0]]??Rs.en,n=(e,n)=>{let r=t[e]??Rs.en[e]??e;return n?r.replace(/\{(\w+)\}/g,(e,t)=>t in n?String(n[t]):e):r};return n.has=e=>e in Rs.en,n}var Bs=(e,t)=>t?.code&&e.has(t.code)?e(t.code):t?.message??``,Vs=new Map;function Hs(e,t){let n=`${e}|${t}`;return Vs.has(n)||Vs.set(n,As(e,t,`/store/policies`).then(e=>Array.isArray(e)?e:[]).catch(()=>(Vs.delete(n),[]))),Vs.get(n)}function Us(e){let t=new Date,n=Math.max(0,Math.round(Number(e)||0));for(;n>0;)t.setDate(t.getDate()+1),t.getDay()!==0&&t.getDay()!==6&&--n;return t}function Ws(e,t,n,r){let i=e=>e!=null&&Number.isFinite(Number(e));if(!i(n)&&!i(r))return``;let a;try{a=new Intl.DateTimeFormat(t||`en`,{month:`short`,day:`numeric`})}catch{a=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`})}let o=a.format(Us(i(n)?n:r)),s=a.format(Us(i(r)?r:n));return o===s?e(`arrives`,{date:o}):e(`arrivesRange`,{from:o,to:s})}var Gs=`var(--page-muted, rgba(100,116,139,1))`,Ks=`1px solid var(--page-border, #d1d5db)`,qs=`var(--page-surface, #f2f2f2)`,Js=`#f59e0b`,Ys={...vr,border:0,borderRadius:`8px`,padding:`10px 18px`,fontSize:`14px`,fontWeight:600,fontFamily:`inherit`},Xs={...Ys,backgroundColor:`transparent`,color:`var(--page-text, #111827)`,border:Ks};function Zs(){let{tenant:e,apiUrl:t,locale:n,settings:r}=(0,l.useContext)(K),i=(0,l.useMemo)(()=>zs(n),[n]),a=e=>r?.[e]!==!1;return{tenant:e,apiUrl:t||`/api`,locale:n,words:i,reviewsOn:a(`shop.reviews`),questionsOn:a(`shop.questions`),favoritesOn:a(`shop.favorites`),moderated:r?.[`shop.reviewModeration`]!==`auto`,loginHref:()=>{let e=ts(r).loginPage||`/login`,t=typeof window>`u`?``:`${window.location.pathname}${window.location.search}`;return t?`${e}${e.includes(`?`)?`&`:`?`}next=${encodeURIComponent(t)}`:e}}}var Qs=(e,t)=>{try{return new Intl.NumberFormat(t||void 0,{notation:`compact`,maximumFractionDigits:1}).format(e)}catch{return String(e)}},$s=(e,t)=>{try{return new Intl.DateTimeFormat(t||void 0,{day:`numeric`,month:`long`,year:`numeric`}).format(new Date(e))}catch{return String(e).slice(0,10)}},ec=`M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z`;function tc({fill:e=0,size:t=16,clipId:n}){return(0,G.jsxs)(`svg`,{width:t,height:t,viewBox:`0 0 24 24`,"aria-hidden":`true`,style:{display:`block`},children:[(0,G.jsx)(`defs`,{children:(0,G.jsx)(`clipPath`,{id:n,children:(0,G.jsx)(`rect`,{x:`0`,y:`0`,width:24*e,height:`24`})})}),(0,G.jsx)(`path`,{d:ec,fill:`var(--page-border, #d1d5db)`}),e>0&&(0,G.jsx)(`path`,{d:ec,fill:Js,clipPath:`url(#${n})`})]})}function nc({value:e=0,size:t=16}){let n=(0,l.useId)().replace(/:/g,``);return(0,G.jsx)(`span`,{role:`img`,"aria-label":`${e}/5`,...q(`stars`),style:{display:`inline-flex`,gap:`1px`,verticalAlign:`middle`},children:[0,1,2,3,4].map(r=>(0,G.jsx)(tc,{fill:Math.max(0,Math.min(1,e-r)),size:t,clipId:`${n}-${r}`},r))})}function rc({value:e,onChange:t,size:n=28,label:r}){let i=(0,l.useId)().replace(/:/g,``),[a,o]=(0,l.useState)(0),s=a||e;return(0,G.jsx)(`span`,{role:`radiogroup`,"aria-label":r,...q(`star-picker`),style:{display:`inline-flex`,gap:`2px`},onMouseLeave:()=>o(0),children:[1,2,3,4,5].map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e===r,"aria-label":String(r),onMouseEnter:()=>o(r),onClick:()=>t(r),style:{background:`none`,border:0,padding:0,cursor:`pointer`,lineHeight:0},children:(0,G.jsx)(tc,{fill:+(s>=r),size:n,clipId:`${i}-${r}`})},r))})}function ic(e,{inert:t}){let{tenant:n,apiUrl:r,favoritesOn:i}=Zs(),[a,o]=(0,l.useState)({favorited:!1,count:null});(0,l.useEffect)(()=>{if(!e||!i||t)return;let a=!0;return As(r,n,`/store/products/${encodeURIComponent(e)}/favorite`).then(e=>a&&o(e)).catch(()=>{}),()=>{a=!1}},[r,n,e,i,t]);let s=async()=>{let t=!a.favorited;o(e=>({favorited:t,count:Math.max(0,(e.count??0)+(t?1:-1))}));try{o(await As(r,n,`/store/products/${encodeURIComponent(e)}/favorite`,{method:`POST`,body:{on:t}}))}catch(e){throw o(e=>({favorited:!t,count:Math.max(0,(e.count??0)+(t?-1:1))})),e}};return{...a,toggle:s}}var ac=e=>(0,G.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,"aria-hidden":`true`,style:{display:`block`},children:(0,G.jsx)(`path`,{d:`M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.8 4.5c2.1 0 3.6 1.1 5.2 3 1.6-1.9 3.1-3 5.2-3 3.8 0 5.9 3.9 4.4 7.3C19.5 16.4 12 21 12 21z`,fill:e?`#ef4444`:`none`,stroke:e?`#ef4444`:`currentColor`,strokeWidth:`1.8`})});function oc({product:e,inert:t=!1,sample:n=!1}){let{locale:r,words:i,reviewsOn:a,questionsOn:o,favoritesOn:s,loginHref:c}=Zs(),u=e?.sample?``:e?.slug||e?.id||``,d=ic(u,{inert:t||!u}),[f,p]=(0,l.useState)(``),m=n?29:e?.rating_count??0,h=n?4.3:Number(e?.rating_avg??0),g=n?110:e?.questions_count??0,_=n?1300:d.count??e?.favorites_count??0,v=e=>n=>{n.preventDefault(),!t&&document.getElementById(e)?.scrollIntoView({behavior:`smooth`,block:`start`})},y=async()=>{if(!(t||!u))try{await d.toggle()}catch(e){e?.code===`LOGIN_REQUIRED`?window.location.assign(c()):p(Bs(i,e))}},b=[];return a&&m>0&&b.push((0,G.jsxs)(`span`,{...q(`rating`),style:{display:`inline-flex`,alignItems:`center`,gap:`6px`},children:[(0,G.jsx)(`strong`,{...q(`rating-value`),children:h.toLocaleString(r||void 0,{minimumFractionDigits:1,maximumFractionDigits:1})}),(0,G.jsx)(nc,{value:h}),(0,G.jsx)(`a`,{href:`#reviews`,onClick:v(`reviews`),...q(`rating-link`),style:{color:`inherit`},children:m===1?i(`reviewsOne`):i(`reviewsCount`,{n:Qs(m,r)})})]},`r`)),o&&g>0&&b.push((0,G.jsx)(`a`,{href:`#questions`,onClick:v(`questions`),...q(`qa-link`),style:{color:`inherit`},children:i(`qaCount`,{n:Qs(g,r)})},`q`)),!b.length&&!s?null:(0,G.jsxs)(`div`,{...q(`engagement`),style:{display:`flex`,flexDirection:`column`,gap:`8px`,fontSize:`14px`},children:[b.length>0&&(0,G.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`10px`,flexWrap:`wrap`},children:b.flatMap((e,t)=>t?[(0,G.jsx)(`span`,{...q(`separator`),style:{color:Gs},children:`•`},`s${t}`),e]:[e])}),s&&(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`10px`},children:[(0,G.jsx)(`button`,{type:`button`,onClick:y,...q(`favorite-button`,d.favorited&&`favorite-button-active`),"aria-pressed":d.favorited,"aria-label":d.favorited?i(`unfavorite`):i(`favorite`),title:d.favorited?i(`unfavorite`):i(`favorite`),style:{...Xs,padding:`7px`,borderRadius:`999px`,lineHeight:0},children:ac(d.favorited)}),_>0&&(0,G.jsx)(`span`,{...q(`favorites-count`),style:{fontWeight:600},children:_===1?i(`lovedByOne`):i(`lovedBy`,{n:Qs(_,r)})})]}),f&&(0,G.jsx)(`span`,{...q(`note`),style:{color:Gs,fontSize:`13px`},children:f})]})}var sc={data:[{id:`s1`,author:`Ayşe Y.`,rating:5,title:`Harika`,body:`Beklediğimden de iyi çıktı.`,verified:!0,reply:``,created_at:new Date().toISOString()},{id:`s2`,author:`Mehmet K.`,rating:4,title:``,body:`Kaliteli, kargo biraz gecikti.`,verified:!1,reply:`Geri bildiriminiz için teşekkürler!`,created_at:new Date(Date.now()-864e5*3).toISOString()}],total:{all:29,filtered:29},summary:{average:4.3,count:29,histogram:[1,1,3,6,18]}};function cc({product:e,inert:t=!1,sample:n=!1}){let{tenant:r,apiUrl:i,locale:a,words:o,reviewsOn:s,moderated:c,loginHref:u}=Zs(),d=as(),f=e?.sample?``:e?.slug||e?.id||``,[p,m]=(0,l.useState)(null),[h,g]=(0,l.useState)(`newest`),[_,v]=(0,l.useState)(0),[y,b]=(0,l.useState)(5),[x,S]=(0,l.useState)(0),[C,w]=(0,l.useState)({rating:0,title:``,body:``}),[T,E]=(0,l.useState)(!1),[D,O]=(0,l.useState)(!1),[k,A]=(0,l.useState)(``);if((0,l.useEffect)(()=>{if(!s||!f)return;let e=!0,t=`?limit=${y}&sort=${h}${_?`&rating=${_}`:``}`;return As(i,r,`/store/products/${encodeURIComponent(f)}/reviews${t}`).then(t=>e&&m(t)).catch(()=>e&&m({data:[],total:{all:0,filtered:0},summary:{average:0,count:0,histogram:[0,0,0,0,0]}})),()=>{e=!1}},[i,r,f,h,_,y,x,s]),!s)return null;let j=n||!f?sc:p,M=j?.summary??{average:0,count:0,histogram:[0,0,0,0,0]},N=j?.data?.find(e=>e.mine),P=d.status===`user`,F=()=>{if(!t){if(!P){window.location.assign(u());return}w(N?{rating:N.rating,title:N.title,body:N.body}:{rating:0,title:``,body:``}),A(``),E(!0)}},I=async e=>{if(e.preventDefault(),!C.rating){A(o(`pickRating`));return}O(!0),A(``);try{await As(i,r,`/store/products/${encodeURIComponent(f)}/reviews`,{method:`POST`,body:C}),E(!1),A(o(c?`reviewPending`:`reviewThanks`)),S(e=>e+1)}catch(e){e?.code===`LOGIN_REQUIRED`?window.location.assign(u()):A(Bs(o,e))}finally{O(!1)}},L=Math.max(1,...M.histogram);return(0,G.jsxs)(`section`,{id:`reviews`,...q(`reviews`),style:{display:`flex`,flexDirection:`column`,gap:`16px`,scrollMarginTop:`80px`},children:[(0,G.jsx)(`h2`,{...q(`reviews-title`),style:{margin:0,fontSize:`var(--page-h3, 24px)`},children:o(`reviewsTitle`)}),(0,G.jsxs)(`div`,{...q(`reviews-summary`),style:{display:`flex`,gap:`32px`,flexWrap:`wrap`,alignItems:`center`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:`4px`},children:[(0,G.jsx)(`span`,{...q(`reviews-average`),style:{fontSize:`40px`,fontWeight:700,lineHeight:1},children:M.count?M.average.toLocaleString(a||void 0,{minimumFractionDigits:1,maximumFractionDigits:1}):`–`}),(0,G.jsx)(nc,{value:M.average,size:18}),(0,G.jsx)(`span`,{...q(`reviews-count`),style:{color:Gs,fontSize:`13px`},children:M.count===1?o(`reviewsOne`):o(`reviewsCount`,{n:M.count})})]}),(0,G.jsx)(`div`,{...q(`histogram`),style:{display:`flex`,flexDirection:`column`,gap:`4px`,minWidth:`220px`,flex:`1 1 220px`,maxWidth:`360px`},children:[5,4,3,2,1].map(e=>{let n=M.histogram[e-1]??0,r=_===e;return(0,G.jsxs)(`button`,{type:`button`,disabled:!n&&!r,onClick:()=>!t&&v(r?0:e),title:o(`starsN`,{n:e}),...q(`histogram-row`,r&&`histogram-row-active`),style:{display:`grid`,gridTemplateColumns:`28px 1fr 32px`,alignItems:`center`,gap:`8px`,background:`none`,border:0,padding:`2px 0`,cursor:n?`pointer`:`default`,color:`inherit`,fontFamily:`inherit`,fontSize:`13px`,fontWeight:r?700:400},children:[(0,G.jsxs)(`span`,{children:[e,`★`]}),(0,G.jsx)(`span`,{...q(`histogram-track`),style:{height:`8px`,borderRadius:`4px`,background:qs,overflow:`hidden`},children:(0,G.jsx)(`span`,{...q(`histogram-bar`),style:{display:`block`,height:`100%`,width:`${n/L*100}%`,background:Js}})}),(0,G.jsx)(`span`,{style:{color:Gs,textAlign:`right`},children:n})]},e)})}),(0,G.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,G.jsx)(`button`,{type:`button`,onClick:F,...q(`review-button`),style:Ys,children:o(P||t?N?`editReview`:`writeReview`:`signInToReview`)})})]}),T&&(0,G.jsxs)(`form`,{onSubmit:I,...q(`review-form`),style:{display:`flex`,flexDirection:`column`,gap:`10px`,padding:`16px`,border:Ks,borderRadius:`12px`},children:[(0,G.jsxs)(`label`,{...q(`label`),style:{display:`flex`,alignItems:`center`,gap:`12px`,fontWeight:600},children:[o(`yourRating`),(0,G.jsx)(rc,{value:C.rating,label:o(`yourRating`),onChange:e=>w(t=>({...t,rating:e}))})]}),(0,G.jsx)(`input`,{value:C.title,maxLength:150,placeholder:o(`reviewTitle`),...q(`input`),onChange:e=>w(t=>({...t,title:e.target.value})),style:qi}),(0,G.jsx)(`textarea`,{value:C.body,maxLength:4e3,rows:4,placeholder:o(`reviewBody`),...q(`textarea`),onChange:e=>w(t=>({...t,body:e.target.value})),style:{...qi,resize:`vertical`,fontFamily:`inherit`}}),(0,G.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,G.jsx)(`button`,{type:`submit`,disabled:D,...q(`submit-button`),style:Ys,children:o(`submitReview`)}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>E(!1),...q(`cancel-button`),style:Xs,children:`✕`})]})]}),k&&(0,G.jsx)(`p`,{...q(`note`),style:{margin:0,color:Gs},children:k}),(0,G.jsxs)(`div`,{...q(`reviews-toolbar`),style:{display:`flex`,alignItems:`center`,gap:`12px`,flexWrap:`wrap`},children:[(0,G.jsxs)(`select`,{value:h,onChange:e=>g(e.target.value),disabled:t,...q(`sort-select`),style:{...qi,width:`auto`},children:[(0,G.jsx)(`option`,{value:`newest`,children:o(`sortNewest`)}),(0,G.jsx)(`option`,{value:`helpful`,children:o(`sortHelpful`)}),(0,G.jsx)(`option`,{value:`highest`,children:o(`sortHighest`)}),(0,G.jsx)(`option`,{value:`lowest`,children:o(`sortLowest`)})]}),_>0&&(0,G.jsxs)(`button`,{type:`button`,onClick:()=>v(0),...q(`filter-chip`),style:{...Xs,padding:`6px 12px`},children:[o(`starsN`,{n:_}),` ✕`]})]}),j&&!j.data.length&&(0,G.jsx)(`p`,{...q(`empty`),style:{margin:0,color:Gs},children:o(`noReviews`)}),(0,G.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:(j?.data??[]).map(e=>(0,G.jsxs)(`article`,{...q(`review`),style:{padding:`16px 0`,borderTop:Ks,display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`10px`,flexWrap:`wrap`},children:[(0,G.jsx)(nc,{value:e.rating}),e.title&&(0,G.jsx)(`strong`,{...q(`review-title`),children:e.title}),e.mine&&e.status===`pending`&&(0,G.jsx)(`span`,{...q(`badge`),style:{fontSize:`12px`,padding:`2px 8px`,borderRadius:`999px`,background:qs,color:Gs},children:o(`awaitingApproval`)})]}),e.body&&(0,G.jsx)(`p`,{...q(`review-body`),style:{margin:0,whiteSpace:`pre-wrap`,lineHeight:1.55},children:e.body}),(0,G.jsxs)(`span`,{...q(`meta`),style:{fontSize:`13px`,color:Gs},children:[e.author||o(`anonymous`),` · `,$s(e.created_at,a),e.verified&&(0,G.jsxs)(`span`,{...q(`verified`),style:{color:`#16a34a`,fontWeight:600},children:[` · ✓ `,o(`verified`)]})]}),e.reply&&(0,G.jsxs)(`div`,{...q(`reply`),style:{marginTop:`4px`,padding:`10px 12px`,borderRadius:`8px`,background:qs,fontSize:`14px`},children:[(0,G.jsx)(`strong`,{...q(`reply-label`),style:{display:`block`,fontSize:`12px`,color:Gs,marginBottom:`2px`},children:o(`shopReply`)}),(0,G.jsx)(`span`,{style:{whiteSpace:`pre-wrap`},children:e.reply})]})]},e.id))}),j&&j.data.length<(j.total?.filtered??0)&&!t&&(0,G.jsx)(`button`,{type:`button`,onClick:()=>b(e=>e+10),...q(`load-more`),style:{...Xs,alignSelf:`center`},children:o(`loadMore`)})]})}var lc={data:[{id:`q1`,author:`Can D.`,question:`Bulaşık makinesinde yıkanır mı?`,answer:`Evet, yıkanabilir.`,created_at:new Date().toISOString()}],total:{all:1,filtered:1}};function uc({product:e,inert:t=!1,sample:n=!1}){let{tenant:r,apiUrl:i,locale:a,words:o,questionsOn:s,loginHref:c}=Zs(),u=as(),d=e?.sample?``:e?.slug||e?.id||``,[f,p]=(0,l.useState)(null),[m,h]=(0,l.useState)(5),[g,_]=(0,l.useState)(0),[v,y]=(0,l.useState)(``),[b,x]=(0,l.useState)(!1),[S,C]=(0,l.useState)(``);if((0,l.useEffect)(()=>{if(!s||!d)return;let e=!0;return As(i,r,`/store/products/${encodeURIComponent(d)}/questions?limit=${m}`).then(t=>e&&p(t)).catch(()=>e&&p({data:[],total:{all:0,filtered:0}})),()=>{e=!1}},[i,r,d,m,g,s]),!s)return null;let w=n||!d?lc:f,T=u.status===`user`,E=async e=>{if(e.preventDefault(),!(t||v.trim().length<3)){if(!T){window.location.assign(c());return}x(!0),C(``);try{await As(i,r,`/store/products/${encodeURIComponent(d)}/questions`,{method:`POST`,body:{question:v.trim()}}),y(``),C(o(`questionPending`)),_(e=>e+1)}catch(e){e?.code===`LOGIN_REQUIRED`?window.location.assign(c()):C(Bs(o,e))}finally{x(!1)}}};return(0,G.jsxs)(`section`,{id:`questions`,...q(`questions`),style:{display:`flex`,flexDirection:`column`,gap:`16px`,scrollMarginTop:`80px`},children:[(0,G.jsx)(`h2`,{...q(`questions-title`),style:{margin:0,fontSize:`var(--page-h3, 24px)`},children:o(`questionsTitle`)}),T||t?(0,G.jsxs)(`form`,{onSubmit:E,...q(`question-form`),style:{display:`flex`,gap:`8px`,flexWrap:`wrap`},children:[(0,G.jsx)(`input`,{value:v,maxLength:1e3,placeholder:o(`questionPlaceholder`),...q(`input`),onChange:e=>y(e.target.value),style:{...qi,flex:`1 1 260px`}}),(0,G.jsx)(`button`,{type:`submit`,disabled:b||v.trim().length<3,...q(`submit-button`),style:Ys,children:o(`submitQuestion`)})]}):(0,G.jsx)(`p`,{style:{margin:0},children:(0,G.jsx)(`a`,{href:c(),...q(`signin-link`),style:{color:`var(--page-accent, #111827)`},children:o(`signInToAsk`)})}),S&&(0,G.jsx)(`p`,{...q(`note`),style:{margin:0,color:Gs},children:S}),w&&!w.data.length&&(0,G.jsx)(`p`,{...q(`empty`),style:{margin:0,color:Gs},children:o(`noQuestions`)}),(0,G.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`},children:(w?.data??[]).map(e=>(0,G.jsxs)(`article`,{...q(`question`),style:{padding:`14px 0`,borderTop:Ks,display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,gap:`8px`,alignItems:`baseline`},children:[(0,G.jsx)(`strong`,{...q(`question-mark`),style:{color:`var(--page-accent, #111827)`},children:o(`qMark`)}),(0,G.jsx)(`span`,{...q(`question-text`),style:{fontWeight:600},children:e.question})]}),e.answer?(0,G.jsxs)(`div`,{style:{display:`flex`,gap:`8px`,alignItems:`baseline`},children:[(0,G.jsx)(`strong`,{...q(`answer-mark`),style:{color:`#16a34a`},children:o(`aMark`)}),(0,G.jsx)(`span`,{...q(`answer-text`),style:{whiteSpace:`pre-wrap`},children:e.answer})]}):(0,G.jsx)(`span`,{...q(`badge`),style:{fontSize:`12px`,color:Gs},children:o(`awaitingAnswer`)}),(0,G.jsxs)(`span`,{...q(`meta`),style:{fontSize:`12px`,color:Gs},children:[e.author||o(`anonymous`),` · `,$s(e.created_at,a)]})]},e.id))}),w&&w.data.length<(w.total?.filtered??0)&&!t&&(0,G.jsx)(`button`,{type:`button`,onClick:()=>h(e=>e+10),...q(`load-more`),style:{...Xs,alignSelf:`center`},children:o(`loadMore`)})]})}var dc=`1px solid var(--page-border, #d1d5db)`,fc=`var(--page-muted, rgba(100,116,139,1))`,pc=e=>/^(https?:)?\/\//i.test(String(e))||String(e).startsWith(`/`)?String(e):``;function mc(e,t,n,r){let i=n||void 0;switch(e.type){case`integer`:case`number`:return Number(t).toLocaleString(i);case`money`:try{return new Intl.NumberFormat(i,{style:`currency`,currency:t.currency}).format(t.amount)}catch{return`${t.amount} ${t.currency}`}case`measurement`:return`${Number(t.value).toLocaleString(i)} ${String(t.unit).replace(`_`,` `)}`;case`rating`:{let n=Number(e.config?.max??5);return(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:`6px`},children:[n===5&&(0,G.jsx)(nc,{value:Number(t)}),Number(t).toLocaleString(i),` / `,n]})}case`date`:case`datetime`:try{return new Intl.DateTimeFormat(i,e.type===`date`?{day:`numeric`,month:`long`,year:`numeric`}:{dateStyle:`medium`,timeStyle:`short`}).format(new Date(t))}catch{return String(t)}case`switch`:return r(t?`yes`:`no`);case`color`:return(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:`6px`},children:[(0,G.jsx)(`span`,{style:{width:`14px`,height:`14px`,borderRadius:`4px`,background:t,border:dc,display:`inline-block`}}),t]});case`link`:{let e=pc(t);return e?(0,G.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #111827)`},children:t}):String(t)}case`image`:return pc(t)?(0,G.jsx)(`img`,{src:t,alt:e.name,style:{maxWidth:`160px`,maxHeight:`120px`,borderRadius:`6px`,display:`block`}}):``;case`video`:case`file`:return pc(t)?(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #111827)`},children:String(t).split(`/`).pop()}):``;case`media`:return(Array.isArray(t)?t:[t]).filter(pc).map((e,t)=>(0,G.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--page-accent, #111827)`,marginRight:`8px`},children:String(e).split(`/`).pop()},t));case`language`:try{return new Intl.DisplayNames([n||`en`],{type:`language`}).of(t)??t}catch{return String(t)}case`product`:return t?.slug?(0,G.jsx)(`a`,{href:`/product/${encodeURIComponent(t.slug)}`,style:{color:`var(--page-accent, #111827)`},children:t.name}):``;case`page`:return t?.slug?(0,G.jsx)(`a`,{href:`/${t.slug}`,style:{color:`var(--page-accent, #111827)`},children:t.name}):``;case`shop_collection`:return t?.name??``;case`richtext`:return Array.isArray(t)?(0,G.jsx)(`div`,{style:{lineHeight:1.55},children:Br(t)}):String(t);case`json`:return(0,G.jsx)(`code`,{style:{fontSize:`12px`,whiteSpace:`pre-wrap`},children:JSON.stringify(t)});default:return String(t)}}function hc({specs:e,locale:t,words:n}){return!Array.isArray(e)||!e.length?null:(0,G.jsxs)(`section`,{...q(`specs`),style:{display:`flex`,flexDirection:`column`,gap:`12px`},children:[(0,G.jsx)(`h2`,{...q(`specs-title`),style:{margin:0,fontSize:`var(--page-h3, 24px)`},children:n(`specifications`)}),(0,G.jsx)(`div`,{role:`table`,...q(`specs-table`),style:{border:dc,borderRadius:`10px`,overflow:`hidden`},children:e.map((e,r)=>{let i=e.multiple&&Array.isArray(e.value)?e.value:[e.value];return(0,G.jsxs)(`div`,{role:`row`,...q(`spec-row`),style:{display:`grid`,gridTemplateColumns:`minmax(120px, 34%) 1fr`,gap:`16px`,padding:`10px 14px`,borderTop:r?dc:0,fontSize:`14px`},children:[(0,G.jsx)(`span`,{role:`rowheader`,...q(`spec-name`),style:{color:fc},children:e.name}),(0,G.jsx)(`span`,{role:`cell`,...q(`spec-value`),style:{display:`flex`,flexWrap:`wrap`,gap:`4px 10px`,alignItems:`center`},children:i.map((r,a)=>(0,G.jsxs)(`span`,{children:[mc(e,r,t,n),a<i.length-1&&e.type!==`color`?`,`:``]},a))})]},e.key)})})]})}var X=`var(--page-muted, rgba(100,116,139,1))`,gc=`1px solid var(--page-border, #d1d5db)`,_c=`var(--page-surface, #f2f2f2)`,vc={...vr,border:0,borderRadius:`8px`,padding:`10px 18px`,fontSize:`14px`,fontWeight:600,fontFamily:`inherit`,textAlign:`center`},yc={...vc,backgroundColor:`transparent`,color:`var(--page-text, #111827)`,border:gc};function bc(){let{tenant:e,apiUrl:t,locale:n,param:r,settings:i}=(0,l.useContext)(K),a=(0,l.useMemo)(()=>zs(n),[n]),o=i?.[`shop.orderPrefix`],s=i?.[`shop.orderSuffix`],c=(0,l.useCallback)(e=>`${typeof o==`string`?o:`#`}${e}${typeof s==`string`?s:``}`,[o,s]);return{tenant:e,apiUrl:t||`/api`,locale:n,param:r||``,words:a,orderId:c}}function xc(e,t,n=!0){let r=(0,l.useMemo)(()=>Ns(e,t),[e,t]),i=(0,l.useSyncExternalStore)(r.subscribe,r.getState,r.getState);return(0,l.useEffect)(()=>{n&&!i.loaded&&!i.loading&&r.load()},[n,r]),{store:r,...i}}var Sc=e=>typeof window>`u`?``:new URLSearchParams(window.location.search).get(e)??``;function Cc({value:e,label:t,onCommit:n}){let[r,i]=(0,l.useState)(null),a=()=>{if(r===null)return;let t=Math.max(1,Math.round(Number(r))||1);i(null),t!==Number(e)&&n(t)};return(0,G.jsx)(`input`,{type:`number`,...q(`quantity-input`),min:1,"aria-label":t,value:r??e,onChange:e=>i(e.target.value),onBlur:a,onKeyDown:e=>{e.key===`Enter`&&a()},style:{...qi,width:`64px`,padding:`4px 8px`}})}var wc=`/product/{slug}`,Tc=e=>!e||e===`/product?product={slug}`?wc:e,Ec=(e,t)=>String(Tc(e)).replace(/\{slug\}/g,encodeURIComponent(t.slug)).replace(/\{id\}/g,t.id);function Dc(e){let t=e.variants?.length?e.variants.map(e=>e.stock):[e.stock];return t.some(e=>e==null)?null:t.reduce((e,t)=>e+Number(t),0)}function Oc({product:e,variant:t,locale:n,size:r=16}){let i=e.currency,a=t?.price??e.price;return(0,G.jsxs)(`span`,{...q(`price`),style:{display:`inline-flex`,alignItems:`baseline`,gap:`8px`,fontSize:`${r}px`},children:[(0,G.jsx)(`span`,{...q(`price-current`),style:{fontWeight:700},children:Ls(a,i,n)}),e.compare_at_price>a&&(0,G.jsx)(`span`,{...q(`price-old`),style:{color:X,textDecoration:`line-through`,fontSize:`0.85em`},children:Ls(e.compare_at_price,i,n)})]})}var kc=[1,2,3].map(e=>({id:`sample-${e}`,slug:`sample-${e}`,name:`Product ${e}`,price:e*1990,compare_at_price:e===2?4990:null,images:[],variants:[],stock:null,currency:`USD`,sample:!0}));function Ac({columns:e=3,limit:t=12,gap:n=20,productHref:r=`/product/{slug}`,showButton:i=!0,buttonLabel:a=``,emptyText:o=``,collection:s=``,source:c=`catalog`,loginHref:u=``,style:d,nodeRef:f,inert:p=!1,sample:m=!1,noNavigate:h=!1}){let{tenant:g,apiUrl:_,locale:v,words:y}=bc(),b=Zs(),[x,S]=(0,l.useState)(null),[C,w]=(0,l.useState)(null),[T,E]=(0,l.useState)(``),[D,O]=(0,l.useState)({}),[k,A]=(0,l.useState)(!1),{store:j,currency:M}=xc(_,g,!p),N=c===`favorites`;(0,l.useEffect)(()=>{let e=!0,n=Math.max(1,Math.min(100,Number(t)||12)),r=M?`¤cy=${encodeURIComponent(M)}`:``;if(N&&p){S([]);return}return A(!1),Promise.all([As(_,g,N?`/store/my/favorites?limit=${n}${r}`:`/store/products?limit=${n}${r}${s?`&collection=${encodeURIComponent(s)}`:``}`),As(_,g,`/store/config`)]).then(([t,n])=>{if(!e)return;let r=Ps(n,M);w(n),S(Array.isArray(t?.data)?t.data.map(e=>({...e,currency:r})):[])}).catch(t=>{e&&(A(N&&t?.code===`LOGIN_REQUIRED`),S([]))}),()=>{e=!1}},[_,g,t,M,s,N,p]);let P=x?.length||!m?x??[]:kc,F=async e=>{if(!(p||e.sample)){E(e.id);try{await j.add(e.id,null,1),O(t=>({...t,[e.id]:y(`added`)}))}catch(t){O(n=>({...n,[e.id]:Bs(y,t)}))}finally{E(``)}}};return(0,G.jsxs)(`div`,{ref:f,style:{...z(d)},children:[N&&(0,G.jsx)(`h2`,{...q(`title`),style:{margin:`0 0 12px`,fontSize:`22px`},children:y(`myFavorites`)}),k&&(0,G.jsx)(`p`,{style:{margin:0},children:(0,G.jsx)(`a`,{href:u||b.loginHref(),onClick:h?e=>e.preventDefault():void 0,...q(`signin-link`),style:{color:`var(--page-accent, #111827)`},children:y(`signInForFavorites`)})}),x!==null&&!k&&!P.length&&(0,G.jsx)(`p`,{...q(`empty`),style:{color:X,margin:0},children:o||(N?y(`noFavorites`):C&&!C.enabled?y(`closed`):y(`noProducts`))}),(0,G.jsx)(`div`,{...q(`grid`),style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(160px, calc((100% - ${(Number(e)-1)*n}px) / ${Number(e)||3}))), 1fr))`,gap:`${n}px`},children:P.map(e=>{let t=Dc(e)===0,n=Ec(r,e);return(0,G.jsxs)(`div`,{...q(`card`),style:{display:`flex`,flexDirection:`column`,gap:`10px`},children:[(0,G.jsxs)(`a`,{href:n,onClick:h?e=>e.preventDefault():void 0,...q(`card-link`),style:{color:`inherit`,textDecoration:`none`},children:[(0,G.jsx)(`div`,{...q(`card-media`),style:{aspectRatio:`1 / 1`,borderRadius:`10px`,overflow:`hidden`,background:_c},children:e.images?.[0]&&(0,G.jsx)(`img`,{src:e.images[0],alt:e.name,loading:`lazy`,...q(`card-image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,G.jsx)(`div`,{...q(`card-title`),style:{marginTop:`10px`,fontWeight:600},children:e.name})]}),b.reviewsOn&&e.rating_count>0&&(0,G.jsxs)(`span`,{...q(`card-rating`),style:{display:`inline-flex`,alignItems:`center`,gap:`6px`,fontSize:`13px`,color:X},children:[(0,G.jsx)(nc,{value:Number(e.rating_avg),size:14}),`(`,Qs(e.rating_count,v),`)`]}),(0,G.jsx)(Oc,{product:e,locale:v}),i&&(e.variants?.length?(0,G.jsx)(`a`,{href:n,onClick:h?e=>e.preventDefault():void 0,...q(`choose-button`),style:{...yc,display:`block`},children:y(`choose`)}):(0,G.jsx)(`button`,{type:`button`,disabled:t||T===e.id,onClick:()=>F(e),...q(`add-button`,t&&`add-button-sold-out`),style:{...vc,opacity:t?.5:1},children:t?y(`soldOut`):T===e.id?y(`adding`):a||y(`add`)})),D[e.id]&&(0,G.jsx)(`span`,{...q(`note`),style:{fontSize:`13px`,color:X},children:D[e.id]})]},e.id)})})]})}function jc({slug:e=``,buttonLabel:t=``,showReviews:n=!0,showQuestions:r=!0,showSpecs:i=!0,style:a,nodeRef:o,inert:s=!1,sample:c=!1,noNavigate:u=!1}){let{tenant:d,apiUrl:f,locale:p,param:m,words:h}=bc(),[g,_]=(0,l.useState)(null),[v,y]=(0,l.useState)(!1),[b,x]=(0,l.useState)(0),[S,C]=(0,l.useState)(``),[w,T]=(0,l.useState)(1),[E,D]=(0,l.useState)(!1),[O,k]=(0,l.useState)(``),{store:A,currency:j}=xc(f,d,!s),M=e||m||Sc(`product`),N=j?`?currency=${encodeURIComponent(j)}`:``;if((0,l.useEffect)(()=>{let e=!0;return y(!1),(async()=>{let t=await As(f,d,`/store/config`),n=M?await As(f,d,`/store/products/${encodeURIComponent(M)}${N}`):c||u?(await As(f,d,`/store/products?limit=1${j?`¤cy=${encodeURIComponent(j)}`:``}`))?.data?.[0]:null;if(e){if(!n){y(!0),_(c?kc[0]:null);return}_({...n,currency:Ps(t,j)}),C(e=>n.variants?.some(t=>t.id===e)?e:n.variants?.[0]?.id??``),x(0)}})().catch(()=>{e&&(y(!0),_(c?kc[0]:null))}),()=>{e=!1}},[f,d,M,j]),!g)return(0,G.jsx)(`div`,{ref:o,style:{...z(a)},children:v&&(0,G.jsx)(`p`,{...q(`empty`),style:{color:X,margin:0},children:h(`noProducts`)})});let P=g.variants?.find(e=>e.id===S)??null,F=P?P.stock:g.variants?.length?null:g.stock,I=F===0,L=async()=>{if(!(s||g.sample)){D(!0),k(``);try{await A.add(g.id,P?.id??null,Math.max(1,Number(w)||1)),k(h(`added`))}catch(e){k(Bs(h,e))}finally{D(!1)}}};return(0,G.jsxs)(`div`,{ref:o,style:{display:`flex`,flexDirection:`column`,gap:`48px`,...z(a)},children:[(0,G.jsxs)(`div`,{...q(`details`),style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, 320px), 1fr))`,gap:`32px`},children:[(0,G.jsxs)(`div`,{...q(`gallery`),style:{display:`flex`,flexDirection:`column`,gap:`10px`},children:[(0,G.jsx)(`div`,{...q(`media`),style:{aspectRatio:`1 / 1`,borderRadius:`12px`,overflow:`hidden`,background:_c},children:g.images?.[b]&&(0,G.jsx)(`img`,{src:g.images[b],alt:g.name,...q(`image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),g.images?.length>1&&(0,G.jsx)(`div`,{...q(`thumbnails`),style:{display:`flex`,gap:`8px`,flexWrap:`wrap`},children:g.images.map((e,t)=>(0,G.jsx)(`button`,{type:`button`,onClick:()=>x(t),...q(`thumbnail`,t===b&&`thumbnail-selected`),style:{width:`64px`,height:`64px`,padding:0,borderRadius:`8px`,overflow:`hidden`,cursor:`pointer`,border:t===b?`2px solid var(--page-accent, #111827)`:gc,background:_c},children:(0,G.jsx)(`img`,{src:e,alt:``,...q(`thumbnail-image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})},e))})]}),(0,G.jsxs)(`div`,{...q(`info`),style:{display:`flex`,flexDirection:`column`,gap:`16px`},children:[(0,G.jsx)(`h1`,{...q(`title`),style:{margin:0,fontSize:`var(--page-h2, 32px)`},children:g.name}),(0,G.jsx)(oc,{product:g,inert:s,sample:c&&!!g.sample}),(0,G.jsx)(Oc,{product:g,variant:P,locale:p,size:22}),g.variants?.length>0&&(0,G.jsx)(`div`,{...q(`variants`),style:{display:`flex`,gap:`8px`,flexWrap:`wrap`},children:g.variants.map(e=>{let t=e.stock===0;return(0,G.jsx)(`button`,{type:`button`,disabled:t,onClick:()=>C(e.id),...q(`variant`,e.id===S&&`variant-selected`,t&&`variant-sold-out`),style:{...yc,padding:`8px 14px`,opacity:t?.45:1,textDecoration:t?`line-through`:`none`,borderColor:e.id===S?`var(--page-accent, #111827)`:void 0,boxShadow:e.id===S?`inset 0 0 0 1px var(--page-accent, #111827)`:`none`},children:e.title},e.id)})}),(0,G.jsxs)(`div`,{...q(`buy-row`),style:{display:`flex`,gap:`10px`,alignItems:`center`},children:[(0,G.jsx)(`input`,{type:`number`,...q(`quantity-input`),min:1,"aria-label":h(`quantity`),value:w,onChange:e=>T(e.target.value),style:{...qi,width:`80px`}}),(0,G.jsx)(`button`,{type:`button`,disabled:I||E,onClick:L,...q(`add-button`,I&&`add-button-sold-out`),style:{...vc,flex:1,opacity:I?.5:1},children:I?h(`soldOut`):E?h(`adding`):t||h(`add`)})]}),F!==null&&F>0&&F<=5&&(0,G.jsx)(`span`,{...q(`stock-note`),style:{fontSize:`13px`,color:`var(--page-accent, #b45309)`},children:h(`onlyLeft`,{n:F})}),O&&(0,G.jsx)(`span`,{...q(`note`),style:{fontSize:`13px`,color:X},children:O}),Array.isArray(g.description)&&g.description.length>0&&(0,G.jsx)(`div`,{...q(`description`),style:{lineHeight:1.6},children:Br(g.description)})]})]}),i&&(0,G.jsx)(hc,{specs:g.specs,locale:p,words:h}),n&&(0,G.jsx)(cc,{product:g,inert:s,sample:c&&!!g.sample}),r&&(0,G.jsx)(uc,{product:g,inert:s,sample:c&&!!g.sample})]})}function Mc(e){return(0,G.jsx)(Ac,{...e,source:`favorites`})}var Nc=(0,G.jsxs)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...q(`icon`),children:[(0,G.jsx)(`path`,{d:`M6 7h12l-1 13H7L6 7Z`}),(0,G.jsx)(`path`,{d:`M9 7a3 3 0 0 1 6 0`})]});function Pc({href:e=`/cart`,label:t=``,showLabel:n=!1,style:r,nodeRef:i,inert:a=!1,sample:o=!1,noNavigate:s=!1}){let{tenant:c,apiUrl:l,words:u}=bc(),{cart:d}=xc(l,c,!a),f=o&&!d.count?2:d.count;return(0,G.jsxs)(`a`,{ref:i,href:e,onClick:s?e=>e.preventDefault():void 0,"aria-label":t||u(`cart`),style:{position:`relative`,display:`inline-flex`,alignItems:`center`,gap:`8px`,color:`inherit`,textDecoration:`none`,padding:`6px`,...z(r)},children:[Nc,n&&(0,G.jsx)(`span`,{...q(`label`),children:t||u(`cart`)}),f>0&&(0,G.jsx)(`span`,{...q(`badge`),style:{position:`absolute`,top:`-4px`,left:`18px`,minWidth:`18px`,height:`18px`,padding:`0 5px`,borderRadius:`9px`,fontSize:`11px`,fontWeight:700,lineHeight:`18px`,textAlign:`center`,boxSizing:`border-box`,background:`var(--page-accent, #111827)`,color:`var(--page-accent-text, #ffffff)`},children:f>99?`99+`:f})]})}function Fc(e,t,n){if(t===`code`)return e;try{if(t===`name`)return`${new Intl.DisplayNames([n||`en`],{type:`currency`}).of(e)??e} (${e})`;let r=new Intl.NumberFormat(n||void 0,{style:`currency`,currency:e}).formatToParts(0).find(e=>e.type===`currency`)?.value;return r&&r!==e?`${r} ${e}`:e}catch{return e}}function Ic({display:e=`symbol`,label:t=``,style:n,nodeRef:r,inert:i=!1}){let{tenant:a,apiUrl:o,locale:s}=bc(),{store:c,currency:u}=xc(o,a,!i),[d,f]=(0,l.useState)(null),p={display:`inline-flex`,alignItems:`center`,gap:8,...z(n)};(0,l.useEffect)(()=>{let e=!0;return As(o,a,`/store/config`).then(t=>e&&f(t)).catch(()=>e&&f({currencies:[]})),()=>{e=!1}},[o,a]);let m=Array.isArray(d?.currencies)?d.currencies:[];return m.length<2?i?(0,G.jsx)(`div`,{ref:r,style:{...p,padding:`8px 12px`,border:`1px dashed rgba(100, 116, 139, 0.45)`,borderRadius:6,color:`rgba(100, 116, 139, 0.8)`,fontSize:12},children:`Add currencies in Settings → Shop`}):null:(0,G.jsxs)(`div`,{ref:r,style:p,children:[t?(0,G.jsx)(`span`,{...q(`label`),style:{opacity:.7},children:t}):null,(0,G.jsx)(`select`,{"aria-label":t||`Currency`,...q(`select`),value:Ps(d,u),onChange:i?void 0:e=>c.setCurrency(e.target.value===d.currency?``:e.target.value),onKeyDown:i?e=>e.preventDefault():void 0,style:{font:`inherit`,color:`inherit`,background:`var(--page-surface, transparent)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:6,padding:`4px 8px`,cursor:i?`default`:`pointer`},children:m.map(t=>(0,G.jsx)(`option`,{value:t,children:Fc(t,e,s)},t))})]})}var Lc={display:`flex`,flexDirection:`column`,gap:`6px`,fontSize:`13px`},Rc={margin:`0 0 12px`,fontSize:`18px`};function zc({label:e,required:t,children:n}){return(0,G.jsxs)(`label`,{...q(`field`),style:Lc,children:[(0,G.jsxs)(`span`,{...q(`field-label`),style:{fontWeight:500},children:[e,t&&(0,G.jsx)(`span`,{...q(`required`),style:{color:`var(--page-accent, #dc2626)`},children:` *`})]}),n]})}var Bc=[{id:`ship:standard`,type:`shipping`,name:`Standard`,amount:2990,min_days:2,max_days:4,detail:``},{id:`pickup:sample`,type:`pickup`,name:`Store pickup`,amount:0,min_days:null,max_days:null,detail:`Main Street 1`}],Vc={name:``,email:``,phone:``,line1:``,line2:``,city:``,region:``,postal_code:``,country:``,note:``,gift:!1,recipient:``,gift_message:``};function Hc({continueHref:e=`/`,style:t,nodeRef:n,inert:r=!1,sample:i=!1,noNavigate:a=!1}){let{tenant:o,apiUrl:s,locale:c,words:u,orderId:d}=bc(),{store:f,cart:p,loaded:m}=xc(s,o,!r),[h,g]=(0,l.useState)(null),[_,v]=(0,l.useState)(Vc),[y,b]=(0,l.useState)(``),[x,S]=(0,l.useState)(!1),[C,w]=(0,l.useState)(``),[T,E]=(0,l.useState)(null),[D,O]=(0,l.useState)(``),[k,A]=(0,l.useState)(!1),j=!r&&Sc(`cancelled`)===`1`,M=e=>Ls(e,p.currency||h?.currency,c);(0,l.useEffect)(()=>{As(s,o,`/store/config`).then(e=>{g(e),b(t=>t||e?.methods?.[0]||``)}).catch(()=>g({enabled:!1,methods:[]}))},[s,o]),(0,l.useEffect)(()=>{let e=Sc(`order`);r||!e||j||As(s,o,`/store/orders/${encodeURIComponent(e)}`).then(e=>{E(e),e?.payment_status===`paid`&&f.reset()}).catch(e=>w(Bs(u,e)))},[s,o]);let N=e=>t=>v(n=>({...n,[e]:t.target.value})),P=(0,l.useMemo)(()=>Is(c,h?.zone_countries??[],h&&!h.ships_elsewhere&&h.zone_countries?.length?h.zone_countries:null),[c,h]);(0,l.useEffect)(()=>{p.country&&!_.country&&v(e=>({...e,country:p.country}))},[p.country]);let F=async e=>{if(!r){A(!0),w(``);try{await f.setCoupon(e),O(``)}catch(e){w(Bs(u,e))}finally{A(!1)}}},I=async e=>{if(e.preventDefault(),!r){if((R&&!te?[`name`,`email`,`line1`,`city`,`country`]:[`name`,`email`]).some(e=>!_[e].trim())){w(u(`required`));return}S(!0),w(``);try{let e=new URL(window.location.href);[`order`,`paid`,`cancelled`].forEach(t=>e.searchParams.delete(t));let t=await As(s,o,`/store/checkout`,{method:`POST`,body:{cart_id:f.cartId(),method:y,customer:{name:_.name,email:_.email,phone:_.phone},address:{name:_.gift?_.recipient.trim():``,line1:_.line1,line2:_.line2,city:_.city,region:_.region,postal_code:_.postal_code,country:_.country},note:_.note,gift:_.gift,gift_message:_.gift?_.gift_message:``,delivery:p.delivery||``,return_url:e.toString()}});if(t?.redirect_url){window.location.assign(t.redirect_url);return}E(t?.order??null),f.reset()}catch(e){w(Bs(u,e))}finally{S(!1)}}},L={...z(t)},R=r&&i&&!p.lines.length?!0:p.requires_shipping!==!1,B=Array.isArray(p.discounts)?p.discounts:[],ee=B.filter(e=>e.type!==`shipping`),V=B.find(e=>e.type===`shipping`)??null,H=r&&i&&!p.lines.length?Bc:Array.isArray(p.delivery_options)?p.delivery_options:[],U=H.find(e=>e.id===p.delivery)??(r&&i?H[0]:null),te=U?.type===`pickup`,ne=e=>{r||e===p.delivery||(w(``),f.setDelivery(e).catch(e=>w(Bs(u,e))))};if(T){let t=T.payment_status===`paid`;return(0,G.jsxs)(`div`,{ref:n,style:{display:`flex`,flexDirection:`column`,gap:`12px`,...L},children:[(0,G.jsx)(`h2`,{...q(`thanks-title`),style:{margin:0},children:u(`thanks`,{number:d(T.number)})}),(0,G.jsx)(`p`,{...q(`thanks-message`),style:{margin:0},children:T.payment_method===`bank_transfer`?u(`transfer`):T.payment_method===`cash_on_delivery`?u(`cod`):u(t?`paid`:`awaiting`)}),Array.isArray(T.instructions_content)&&T.instructions_content.length>0?(0,G.jsx)(`div`,{...q(`instructions`),style:{padding:`12px`,borderRadius:`8px`,background:_c},children:Br(T.instructions_content)}):T.instructions?(0,G.jsx)(`pre`,{...q(`instructions`),style:{margin:0,padding:`12px`,borderRadius:`8px`,background:_c,whiteSpace:`pre-wrap`,fontFamily:`inherit`},children:T.instructions}):null,T.delivery&&(0,G.jsxs)(`div`,{...q(`delivery-info`),style:{padding:`12px`,borderRadius:`8px`,background:_c},children:[(0,G.jsx)(`div`,{...q(`delivery-name`),style:{fontWeight:600},children:T.delivery.type===`pickup`?u(`pickupAt`,{name:T.delivery.name}):u(`deliveredBy`,{name:T.delivery.name})}),T.delivery.location&&(0,G.jsxs)(`div`,{...q(`delivery-detail`),style:{fontSize:`14px`,color:X},children:[[T.delivery.location.line1,T.delivery.location.line2,[T.delivery.location.postal_code,T.delivery.location.city].filter(Boolean).join(` `)].filter(Boolean).join(`, `),T.delivery.location.instructions&&(0,G.jsx)(`div`,{children:T.delivery.location.instructions}),(0,G.jsx)(`div`,{children:u(`pickupNote`)})]}),!T.delivery.location&&Ws(u,c,T.delivery.min_days,T.delivery.max_days)&&(0,G.jsx)(`div`,{...q(`delivery-detail`),style:{fontSize:`14px`,color:X},children:Ws(u,c,T.delivery.min_days,T.delivery.max_days)})]}),(0,G.jsxs)(`p`,{...q(`total`),style:{margin:0,fontWeight:700},children:[u(`total`),`: `,Ls(T.total,T.currency,c)]}),!t&&(0,G.jsx)(qc,{reference:T.transfer_reference,words:u}),(0,G.jsx)(Jc,{downloads:T.downloads,apiUrl:s,words:u,locale:c,noNavigate:a}),(0,G.jsx)(`a`,{href:e,onClick:a?e=>e.preventDefault():void 0,...q(`continue-button`),style:{...yc,alignSelf:`flex-start`},children:u(`continue`)})]})}let re=r&&i&&!p.lines.length?kc.slice(0,2).map(e=>({...e,product_id:e.id,variant_id:null,quantity:1,unit_price:e.price,total:e.price,image:``,variant_title:``})):p.lines,ie=r&&i&&!p.lines.length?re.reduce((e,t)=>e+t.total,0):p.subtotal;if(h&&!h.enabled&&!r)return(0,G.jsx)(`div`,{ref:n,style:L,children:(0,G.jsx)(`p`,{...q(`empty`),style:{color:X},children:u(`closed`)})});if(m&&!re.length&&!r)return(0,G.jsxs)(`div`,{ref:n,style:{display:`flex`,flexDirection:`column`,gap:`12px`,...L},children:[j&&(0,G.jsx)(`p`,{...q(`note`),style:{margin:0,color:X},children:u(`cancelled`)}),(0,G.jsx)(`p`,{...q(`empty`),style:{margin:0},children:u(`emptyCart`)}),(0,G.jsx)(`a`,{href:e,onClick:a?e=>e.preventDefault():void 0,...q(`continue-button`),style:{...yc,alignSelf:`flex-start`},children:u(`continue`)})]});let ae=h?.methods??[];return(0,G.jsxs)(`form`,{ref:n,onSubmit:I,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, 340px), 1fr))`,gap:`32px`,alignItems:`start`,...L},children:[(0,G.jsxs)(`div`,{...q(`form-column`),style:{display:`flex`,flexDirection:`column`,gap:`20px`},children:[j&&(0,G.jsx)(`p`,{...q(`note`),style:{margin:0,color:X},children:u(`cancelled`)}),(0,G.jsxs)(`section`,{...q(`section`),children:[(0,G.jsx)(`h3`,{...q(`heading`),style:Rc,children:u(`contact`)}),(0,G.jsxs)(`div`,{...q(`fields`),style:{display:`grid`,gap:`12px`},children:[(0,G.jsx)(zc,{label:u(`name`),required:!0,children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.name,onChange:N(`name`),autoComplete:`name`})}),(0,G.jsxs)(`div`,{...q(`field-row`),style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`},children:[(0,G.jsx)(zc,{label:u(`email`),required:!0,children:(0,G.jsx)(`input`,{type:`email`,...q(`input`),style:qi,value:_.email,onChange:N(`email`),autoComplete:`email`})}),(0,G.jsx)(zc,{label:u(`phone`),children:(0,G.jsx)(`input`,{type:`tel`,...q(`input`),style:qi,value:_.phone,onChange:N(`phone`),autoComplete:`tel`})})]})]})]}),R&&(0,G.jsxs)(`section`,{...q(`section`),children:[(0,G.jsx)(`h3`,{...q(`heading`),style:Rc,children:u(`delivery`)}),(0,G.jsx)(`div`,{style:{marginBottom:`12px`},children:(0,G.jsxs)(`div`,{...q(`field-row`),style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`},children:[(0,G.jsx)(zc,{label:u(`postal`),children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.postal_code,onChange:N(`postal_code`),onBlur:()=>!r&&_.country&&f.setCountry(_.country,_.postal_code).catch(e=>w(Bs(u,e))),autoComplete:`postal-code`})}),(0,G.jsx)(zc,{label:u(`country`),required:!te,children:(0,G.jsxs)(`select`,{...q(`select`),style:qi,value:_.country,autoComplete:`country`,onChange:e=>{let t=e.target.value;v(e=>({...e,country:t})),r||f.setCountry(t,_.postal_code).catch(e=>w(Bs(u,e)))},children:[(0,G.jsx)(`option`,{value:``,children:u(`chooseCountry`)}),P.map(e=>(0,G.jsx)(`option`,{value:e.code,children:e.name},e.code))]})})]})}),!H.length&&(0,G.jsx)(`p`,{...q(`note`),style:{margin:0,color:X,fontSize:`14px`},children:_.country?u(`noShipping`):u(`deliveryPick`)}),(0,G.jsx)(`div`,{...q(`delivery-options`),style:{display:`grid`,gap:`8px`},children:H.map(e=>{let t=Ws(u,c,e.min_days,e.max_days);return(0,G.jsxs)(`label`,{...q(`delivery-option`,U?.id===e.id&&`delivery-option-selected`),style:{display:`flex`,alignItems:`flex-start`,gap:`10px`,padding:`12px`,borderRadius:`8px`,border:U?.id===e.id?`1px solid var(--page-accent, #4f46e5)`:gc,cursor:`pointer`},children:[(0,G.jsx)(`input`,{type:`radio`,...q(`radio`),name:`delivery`,value:e.id,checked:U?.id===e.id,onChange:()=>ne(e.id),style:{marginTop:`3px`}}),(0,G.jsxs)(`span`,{...q(`option-info`),style:{flex:1,minWidth:0},children:[(0,G.jsx)(`span`,{...q(`option-name`),style:{display:`block`,fontWeight:600},children:e.name}),t&&(0,G.jsx)(`span`,{...q(`option-detail`),style:{display:`block`,fontSize:`13px`,color:X},children:t}),e.detail&&(0,G.jsx)(`span`,{...q(`option-detail`),style:{display:`block`,fontSize:`13px`,color:X},children:e.detail})]}),(0,G.jsx)(`span`,{...q(`option-price`),style:{fontWeight:600},children:e.amount?M(e.amount):u(`free`)})]},e.id)})})]}),R&&!te&&(0,G.jsxs)(`section`,{...q(`section`),children:[(0,G.jsx)(`h3`,{...q(`heading`),style:Rc,children:u(`address`)}),(0,G.jsxs)(`div`,{...q(`fields`),style:{display:`grid`,gap:`12px`},children:[(0,G.jsx)(zc,{label:u(`line1`),required:!0,children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.line1,onChange:N(`line1`),autoComplete:`address-line1`})}),(0,G.jsx)(zc,{label:u(`line2`),children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.line2,onChange:N(`line2`),autoComplete:`address-line2`})}),(0,G.jsxs)(`div`,{...q(`field-row`),style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`12px`},children:[(0,G.jsx)(zc,{label:u(`city`),required:!0,children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.city,onChange:N(`city`),autoComplete:`address-level2`})}),(0,G.jsx)(zc,{label:u(`region`),children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.region,onChange:N(`region`),autoComplete:`address-level1`})})]}),(0,G.jsx)(zc,{label:u(`note`),children:(0,G.jsx)(`textarea`,{rows:2,...q(`textarea`),style:{...qi,resize:`vertical`},value:_.note,onChange:N(`note`)})})]})]}),(0,G.jsxs)(`section`,{...q(`section`),children:[(0,G.jsxs)(`label`,{...q(`checkbox-row`),style:{display:`flex`,alignItems:`flex-start`,gap:`10px`,cursor:`pointer`},children:[(0,G.jsx)(`input`,{type:`checkbox`,...q(`checkbox`),checked:_.gift,onChange:e=>v(t=>({...t,gift:e.target.checked})),style:{marginTop:`3px`}}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`span`,{...q(`checkbox-label`),style:{fontWeight:600},children:u(`gift`)}),(0,G.jsx)(`span`,{...q(`checkbox-hint`),style:{display:`block`,fontSize:`13px`,color:X},children:u(`giftHint`)})]})]}),_.gift&&(0,G.jsxs)(`div`,{...q(`fields`),style:{marginTop:`12px`,display:`grid`,gap:`12px`},children:[R&&!te&&(0,G.jsx)(zc,{label:u(`giftRecipient`),children:(0,G.jsx)(`input`,{...q(`input`),style:qi,value:_.recipient,onChange:N(`recipient`),maxLength:200,autoComplete:`off`})}),(0,G.jsx)(zc,{label:u(`giftMessage`),children:(0,G.jsx)(`textarea`,{rows:3,maxLength:500,...q(`textarea`),style:{...qi,resize:`vertical`},value:_.gift_message,onChange:N(`gift_message`)})})]})]}),(0,G.jsxs)(`section`,{...q(`section`),children:[(0,G.jsx)(`h3`,{...q(`heading`),style:Rc,children:u(`payment`)}),!ae.length&&!r&&(0,G.jsx)(`p`,{...q(`note`),style:{margin:0,color:X},children:u(`noMethods`)}),(0,G.jsx)(`div`,{...q(`payment-options`),style:{display:`grid`,gap:`8px`},children:(r&&!ae.length?[`stripe`,`bank_transfer`]:ae).map(e=>(0,G.jsxs)(`label`,{...q(`payment-option`,y===e&&`payment-option-selected`),style:{display:`flex`,alignItems:`center`,gap:`10px`,padding:`12px`,borderRadius:`8px`,border:gc,cursor:`pointer`},children:[(0,G.jsx)(`input`,{type:`radio`,...q(`radio`),name:`method`,value:e,checked:y===e,onChange:()=>b(e)}),(0,G.jsx)(`span`,{...q(`payment-name`),children:h?.method_names?.[e]??u(e)})]},e))})]})]}),(0,G.jsxs)(`aside`,{...q(`summary`),style:{display:`flex`,flexDirection:`column`,gap:`14px`,padding:`20px`,borderRadius:`12px`,background:_c},children:[(0,G.jsx)(`h3`,{...q(`summary-title`),style:{...Rc,margin:0},children:u(`cart`)}),re.map(e=>(0,G.jsxs)(`div`,{...q(`line`),style:{display:`flex`,gap:`12px`,alignItems:`center`},children:[(0,G.jsx)(`div`,{...q(`line-media`),style:{width:`52px`,height:`52px`,borderRadius:`8px`,overflow:`hidden`,background:`var(--page-bg, #fff)`,flexShrink:0},children:e.image&&(0,G.jsx)(`img`,{src:e.image,alt:``,...q(`line-image`),style:{width:`100%`,height:`100%`,objectFit:`cover`,display:`block`}})}),(0,G.jsxs)(`div`,{...q(`line-info`),style:{flex:1,minWidth:0},children:[(0,G.jsx)(`div`,{...q(`line-name`),style:{fontWeight:600},children:e.name}),e.variant_title&&(0,G.jsx)(`div`,{...q(`line-variant`),style:{fontSize:`13px`,color:X},children:e.variant_title}),(0,G.jsxs)(`div`,{...q(`line-controls`),style:{display:`flex`,alignItems:`center`,gap:`8px`,marginTop:`4px`},children:[(0,G.jsx)(Cc,{value:e.quantity,label:u(`quantity`),onCommit:t=>!r&&f.setLine(e.product_id,e.variant_id,t).catch(e=>w(Bs(u,e)))}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>!r&&f.setLine(e.product_id,e.variant_id,0).catch(e=>w(Bs(u,e))),...q(`remove-button`),style:{background:`none`,border:0,padding:0,color:X,cursor:`pointer`,fontSize:`13px`,textDecoration:`underline`,fontFamily:`inherit`},children:u(`remove`)})]})]}),(0,G.jsxs)(`div`,{...q(`line-price`),style:{textAlign:`right`},children:[e.discount>0&&(0,G.jsx)(`div`,{...q(`line-price-old`),style:{fontSize:`12px`,color:X,textDecoration:`line-through`},children:M(e.total)}),(0,G.jsx)(`div`,{...q(`line-total`),style:{fontWeight:600},children:M(e.total-(e.discount||0))})]})]},`${e.product_id}:${e.variant_id??``}`)),p.coupon?(0,G.jsxs)(`div`,{...q(`coupon`),style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`8px`,fontSize:`14px`},children:[(0,G.jsx)(`span`,{...q(`coupon-code`),style:{padding:`4px 10px`,borderRadius:`999px`,border:gc,fontWeight:600,letterSpacing:`0.04em`},children:p.coupon.code}),(0,G.jsx)(`button`,{type:`button`,disabled:k,onClick:()=>F(``),...q(`coupon-remove`),style:{background:`none`,border:0,padding:0,color:X,cursor:`pointer`,fontSize:`13px`,textDecoration:`underline`,fontFamily:`inherit`},children:u(`removeCoupon`)})]}):(0,G.jsxs)(`div`,{...q(`coupon-form`),style:{display:`flex`,gap:`8px`},children:[(0,G.jsx)(`input`,{"aria-label":u(`coupon`),...q(`coupon-input`),placeholder:u(`coupon`),value:D,onChange:e=>O(e.target.value.toUpperCase()),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),D.trim()&&F(D.trim()))},style:{...qi,flex:1,letterSpacing:`0.04em`}}),(0,G.jsx)(`button`,{type:`button`,disabled:k||!D.trim(),onClick:()=>F(D.trim()),...q(`coupon-button`),style:{...yc,padding:`8px 14px`},children:u(`apply`)})]}),p.coupon_error&&(0,G.jsx)(`span`,{...q(`coupon-error`),style:{fontSize:`13px`,color:X},children:p.coupon_error_code&&u.has(p.coupon_error_code)?u(p.coupon_error_code):p.coupon_error}),(0,G.jsxs)(`div`,{...q(`totals`),style:{borderTop:gc,paddingTop:`12px`,display:`grid`,gap:`6px`,fontSize:`14px`},children:[(0,G.jsxs)(`div`,{...q(`summary-row`),style:{display:`flex`,justifyContent:`space-between`},children:[(0,G.jsx)(`span`,{children:u(`subtotal`)}),(0,G.jsx)(`span`,{children:M(ie)})]}),ee.length?ee.map(e=>(0,G.jsxs)(`div`,{...q(`summary-row`),style:{display:`flex`,justifyContent:`space-between`,gap:`8px`},children:[(0,G.jsxs)(`span`,{children:[u(`discount`),` · `,e.title]}),(0,G.jsxs)(`span`,{children:[`−`,M(e.amount)]})]},e.id)):p.discount_total>0&&(0,G.jsxs)(`div`,{...q(`summary-row`),style:{display:`flex`,justifyContent:`space-between`},children:[(0,G.jsx)(`span`,{children:u(`discount`)}),(0,G.jsxs)(`span`,{children:[`−`,M(p.discount_total)]})]}),R&&(0,G.jsxs)(`div`,{...q(`summary-row`),style:{display:`flex`,justifyContent:`space-between`,gap:`8px`},children:[(0,G.jsxs)(`span`,{children:[U?.name??u(`shipping`),V?` · ${V.title}`:``]}),(0,G.jsxs)(`span`,{children:[V&&(0,G.jsx)(`span`,{...q(`shipping-old`),style:{color:X,textDecoration:`line-through`,marginRight:`6px`},children:M(p.shipping_before)}),(V?p.shipping_total:U?.amount??p.shipping_total)?M(V?p.shipping_total:U?.amount??p.shipping_total):u(`free`)]})]}),!p.tax_included&&p.tax_total>0&&(0,G.jsxs)(`div`,{...q(`summary-row`),style:{display:`flex`,justifyContent:`space-between`},children:[(0,G.jsxs)(`span`,{children:[u(`tax`),` (`,p.tax_rate,`%)`]}),(0,G.jsx)(`span`,{children:M(p.tax_total)})]}),(0,G.jsxs)(`div`,{...q(`summary-row`,`summary-row-total`),style:{display:`flex`,justifyContent:`space-between`,fontWeight:700,fontSize:`16px`},children:[(0,G.jsx)(`span`,{children:u(`total`)}),(0,G.jsx)(`span`,{children:M(r&&i&&!p.lines.length?ie:p.total)})]}),p.tax_included&&p.tax_total>0&&(0,G.jsxs)(`div`,{...q(`summary-row`,`summary-row-muted`),style:{display:`flex`,justifyContent:`space-between`,fontSize:`12px`,color:X},children:[(0,G.jsxs)(`span`,{children:[u(`taxIncluded`),` (`,p.tax_rate,`%)`]}),(0,G.jsx)(`span`,{children:M(p.tax_total)})]})]}),p.shipping_available===!1&&(0,G.jsx)(`p`,{...q(`error`),style:{margin:0,color:`#dc2626`,fontSize:`13px`},children:u(`noShipping`)}),C&&(0,G.jsx)(`p`,{...q(`error`),style:{margin:0,color:`#dc2626`,fontSize:`13px`},children:C}),(0,G.jsx)(`button`,{type:`submit`,...q(`submit-button`),disabled:x||!y||p.shipping_available===!1,style:{...vc,width:`100%`,padding:`12px`},children:u(x?`placing`:`placeOrder`)}),(0,G.jsx)(Wc,{apiUrl:s,tenant:o,words:u,locale:c,sample:i,inert:r})]})]})}var Uc=[`refund`,`privacy`,`terms`,`shipping`].map(e=>({kind:e,content:[],fields:{},updated_at:null}));function Wc({apiUrl:e,tenant:t,words:n,locale:r,sample:i,inert:a}){let[o,s]=(0,l.useState)(i?Uc:[]),[c,u]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(i)return;let n=!0;return Hs(e,t).then(e=>n&&s(e)),()=>{n=!1}},[e,t,i]),!o.length)return null;let d=o.find(e=>e.kind===`terms`),f=e=>t=>{t.preventDefault(),a||u(e)},p=e=>(0,G.jsx)(`a`,{href:`#policy-${e.kind}`,onClick:f(e),...q(`policy-link`),style:{color:X,textDecoration:`underline`},children:n(`policy_${e.kind}`)},e.kind);return(0,G.jsxs)(`div`,{...q(`policies`),style:{display:`grid`,gap:`8px`,fontSize:`12px`,color:X},children:[d&&(0,G.jsxs)(`span`,{...q(`policy-agree`),children:[n(`policy_agree`).split(`{terms}`)[0],p(d),n(`policy_agree`).split(`{terms}`)[1]]}),(0,G.jsx)(`div`,{...q(`policy-links`),style:{display:`flex`,flexWrap:`wrap`,gap:`6px 14px`,borderTop:gc,paddingTop:`10px`},children:o.map(p)}),c&&(0,G.jsx)(Gc,{policy:c,words:n,locale:r,onClose:()=>u(null)})]})}function Gc({policy:e,words:t,locale:n,onClose:r}){(0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&r()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]);let i=e.fields??{},a=[i.line1,i.line2,[i.postal_code,i.city].filter(Boolean).join(` `),[i.region,i.country].filter(Boolean).join(`, `)].filter(Boolean),o=``;try{o=e.updated_at?new Date(e.updated_at).toLocaleDateString(n||void 0,{dateStyle:`long`}):``}catch{o=``}return(0,G.jsx)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":t(`policy_${e.kind}`),onMouseDown:e=>e.target===e.currentTarget&&r(),...q(`modal`),style:{position:`fixed`,inset:0,zIndex:1e3,background:`rgba(15, 23, 42, .55)`,display:`grid`,placeItems:`center`,padding:`16px`},children:(0,G.jsxs)(`div`,{...q(`modal-panel`),style:{background:`var(--page-bg, #fff)`,color:`var(--page-text, #111827)`,border:gc,borderRadius:`12px`,width:`min(720px, 100%)`,maxHeight:`85vh`,display:`flex`,flexDirection:`column`,textAlign:`left`},children:[(0,G.jsxs)(`div`,{...q(`modal-header`),style:{display:`flex`,alignItems:`center`,gap:`12px`,padding:`16px 20px`,borderBottom:gc},children:[(0,G.jsx)(`strong`,{...q(`modal-title`),style:{flex:1,fontSize:`17px`},children:t(`policy_${e.kind}`)}),(0,G.jsx)(`button`,{type:`button`,onClick:r,"aria-label":t(`close`),...q(`modal-close`),style:{...yc,padding:`4px 10px`},children:`×`})]}),(0,G.jsxs)(`div`,{...q(`modal-body`),style:{padding:`8px 20px 20px`,overflowY:`auto`,fontSize:`14px`,lineHeight:1.6},children:[e.kind===`contact`?(0,G.jsxs)(`div`,{style:{display:`grid`,gap:`10px`,paddingTop:`10px`},children:[i.business_name&&(0,G.jsx)(`strong`,{children:i.business_name}),a.length>0&&(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`span`,{style:{color:X},children:[t(`contact_address`),`: `]}),a.join(`, `)]}),i.email&&(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`span`,{style:{color:X},children:[t(`contact_email`),`: `]}),(0,G.jsx)(`a`,{href:`mailto:${i.email}`,children:i.email})]}),i.phone&&(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`span`,{style:{color:X},children:[t(`contact_phone`),`: `]}),i.phone]}),i.trade_number&&(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`span`,{style:{color:X},children:[t(`contact_trade`),`: `]}),i.trade_number]})]}):Br(e.content),o&&(0,G.jsx)(`p`,{...q(`modal-updated`),style:{color:X,fontSize:`12px`,marginTop:`16px`},children:t(`policy_updated`,{date:o})})]})]})})}var Kc={year:`numeric`,month:`short`,day:`numeric`};function qc({reference:e,words:t}){let[n,r]=(0,l.useState)(!1);if(!e)return null;let i=()=>{try{navigator.clipboard?.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)},()=>{})}catch{}};return(0,G.jsxs)(`div`,{...q(`reference`),style:{display:`grid`,gap:`4px`},children:[(0,G.jsx)(`span`,{...q(`reference-label`),style:{fontSize:`13px`,color:X},children:t(`reference`)}),(0,G.jsxs)(`div`,{...q(`reference-row`),style:{display:`flex`,alignItems:`center`,gap:`8px`,flexWrap:`wrap`},children:[(0,G.jsx)(`code`,{...q(`reference-code`),style:{padding:`8px 12px`,border:`2px dashed var(--page-border, #d1d5db)`,borderRadius:`8px`,font:`700 20px/1.2 ui-monospace, Menlo, Consolas, monospace`,letterSpacing:`2px`},children:e}),(0,G.jsx)(`button`,{type:`button`,onClick:i,...q(`copy-button`),style:{...yc,padding:`6px 12px`},children:t(n?`copied`:`copy`)})]}),(0,G.jsx)(`span`,{...q(`reference-note`),style:{fontSize:`13px`,color:X},children:t(`referenceNote`)})]})}function Jc({downloads:e,apiUrl:t,words:n,locale:r,noNavigate:i}){let a=Array.isArray(e)?e.filter(e=>e&&e.token&&!e.revoked_at):[];if(!a.length)return null;let o=e=>{try{return new Date(e).toLocaleDateString(r||void 0,{dateStyle:`medium`})}catch{return``}};return(0,G.jsxs)(`div`,{...q(`downloads`),style:{display:`grid`,gap:`8px`,paddingTop:`8px`},children:[(0,G.jsx)(`strong`,{...q(`downloads-title`),style:{fontSize:`14px`},children:n(`downloads_title`)}),a.map(e=>{let r=typeof e.download_limit==`number`?Math.max(0,e.download_limit-(e.downloads??0)):null,a=e.expires_at&&new Date(e.expires_at).getTime()<=Date.now(),s=!a&&(r===null||r>0),c=[r!==null&&n(`download_left`,{count:r}),e.expires_at&&n(a?`download_expired`:`download_until`,{date:o(e.expires_at)})].filter(Boolean);return(0,G.jsxs)(`div`,{...q(`download`),style:{display:`flex`,alignItems:`center`,gap:`12px`,padding:`10px 12px`,border:gc,borderRadius:`8px`},children:[(0,G.jsxs)(`div`,{...q(`download-info`),style:{flex:1,minWidth:0},children:[(0,G.jsx)(`div`,{...q(`download-name`),style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.filename}),c.length>0&&(0,G.jsx)(`div`,{...q(`download-note`),style:{fontSize:`12px`,color:X},children:c.join(` · `)})]}),s?(0,G.jsx)(`a`,{href:`${t}/store/downloads/${encodeURIComponent(e.token)}`,onClick:i?e=>e.preventDefault():void 0,...q(`download-button`),style:{...vc,padding:`6px 14px`,textDecoration:`none`,fontSize:`14px`},children:n(`download`)}):(0,G.jsx)(`span`,{...q(`download-unavailable`),style:{fontSize:`13px`,color:X},children:n(`download_unavailable`)})]},e.token)})]})}function Yc({tracking:e,words:t,noNavigate:n}){let r=typeof e?.carrier==`string`?e.carrier:``,i=typeof e?.number==`string`?e.number:``,a=typeof e?.url==`string`&&/^https?:\/\//i.test(e.url)?e.url:``;return!r&&!i&&!a?null:(0,G.jsxs)(`div`,{...q(`tracking`),style:{marginTop:`4px`,paddingTop:`8px`,borderTop:`1px solid var(--page-border, rgba(0,0,0,.1))`,display:`flex`,gap:`10px`,flexWrap:`wrap`,alignItems:`baseline`},children:[(0,G.jsx)(`span`,{...q(`tracking-label`),style:{color:X},children:t(`tracking`)}),(0,G.jsx)(`span`,{...q(`tracking-number`),children:[r,i].filter(Boolean).join(` · `)}),a&&(0,G.jsx)(`a`,{href:a,target:`_blank`,rel:`noopener noreferrer`,onClick:n?e=>e.preventDefault():void 0,...q(`tracking-link`),style:{color:`var(--page-accent, #4f46e5)`},children:t(`track_parcel`)})]})}function Xc({loginHref:e=`/login`,limit:t=20,style:n,nodeRef:r,inert:i=!1,sample:a=!1,noNavigate:o=!1}){let{tenant:s,apiUrl:c,locale:u,words:d,orderId:f}=bc(),[p,m]=(0,l.useState)(null),[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(``);(0,l.useEffect)(()=>{if(i)return;let e=!0;return As(c,s,`/store/my/orders?limit=${Math.max(1,Math.min(100,Number(t)||20))}`).then(t=>e&&m(Array.isArray(t?.data)?t.data:[])).catch(t=>{e&&(g(t?.code===`LOGIN_REQUIRED`),m([]))}),()=>{e=!1}},[c,s,t,i]);let y=i&&a?[{id:`s1`,number:1042,status:`shipped`,payment_status:`paid`,currency:`USD`,total:8490,created_at:new Date().toISOString(),items:[]},{id:`s2`,number:1041,status:`delivered`,payment_status:`paid`,currency:`USD`,total:2990,created_at:new Date(Date.now()-864e6).toISOString(),items:[]}]:p??[],b=e=>{try{return new Intl.DateTimeFormat(u||void 0,Kc).format(new Date(e))}catch{return String(e).slice(0,10)}};return(0,G.jsxs)(`div`,{ref:r,style:{display:`flex`,flexDirection:`column`,gap:`12px`,...z(n)},children:[(0,G.jsx)(`h2`,{...q(`title`),style:{margin:0,fontSize:`22px`},children:d(`myOrders`)}),h&&(0,G.jsx)(`p`,{style:{margin:0},children:(0,G.jsx)(`a`,{href:e,onClick:o?e=>e.preventDefault():void 0,...q(`signin-link`),style:{color:`var(--page-accent, #111827)`},children:d(`signInForOrders`)})}),!h&&(p!==null||i)&&!y.length&&(0,G.jsx)(`p`,{...q(`empty`),style:{margin:0,color:X},children:d(`noOrders`)}),y.map(e=>(0,G.jsxs)(`div`,{...q(`order`,_===e.id&&`order-open`),style:{border:gc,borderRadius:`10px`,overflow:`hidden`},children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>v(t=>t===e.id?``:e.id),...q(`order-header`),style:{width:`100%`,display:`grid`,gridTemplateColumns:`1fr auto auto`,gap:`12px`,alignItems:`center`,padding:`12px 14px`,background:`transparent`,border:0,color:`inherit`,font:`inherit`,textAlign:`left`,cursor:`pointer`},children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{...q(`order-number`),children:f(e.number)}),(0,G.jsx)(`span`,{...q(`order-date`),style:{color:X,marginLeft:`8px`,fontSize:`13px`},children:b(e.created_at)})]}),(0,G.jsxs)(`span`,{...q(`status`),style:{fontSize:`13px`,padding:`2px 10px`,borderRadius:`999px`,background:_c},children:[d(`st_${e.status}`),e.payment_status===`paid`?``:` · ${d(`pay_${e.payment_status}`)}`]}),(0,G.jsx)(`strong`,{...q(`order-total`),children:Ls(e.total,e.currency,u)})]}),_===e.id&&e.items?.length>0&&(0,G.jsxs)(`div`,{...q(`order-items`),style:{padding:`0 14px 12px`,display:`grid`,gap:`6px`,fontSize:`14px`},children:[e.items.map(t=>(0,G.jsxs)(`div`,{...q(`order-item`),style:{display:`flex`,justifyContent:`space-between`,gap:`12px`},children:[(0,G.jsxs)(`span`,{children:[t.quantity,` × `,t.name,t.variant_title&&(0,G.jsxs)(`span`,{...q(`order-item-variant`),style:{color:X},children:[` — `,t.variant_title]})]}),(0,G.jsx)(`span`,{...q(`order-item-price`),children:Ls(t.total,e.currency,u)})]},t.id)),e.payment_status===`unpaid`&&e.status!==`cancelled`&&(0,G.jsx)(qc,{reference:e.transfer_reference,words:d}),(0,G.jsx)(Yc,{tracking:e.tracking,words:d,noNavigate:o}),(0,G.jsx)(Jc,{downloads:e.downloads,apiUrl:c,words:d,locale:u,noNavigate:o})]})]},e.id))]})}function Zc(e){let t=e?.locales,n=[typeof t?.default==`string`&&t.default.trim()?t.default.trim():``,...Array.isArray(t?.enabled)?t.enabled:[]].filter(e=>typeof e==`string`&&e.trim());return[...new Set(n.map(e=>e.trim()))]}var Qc=e=>e&&e.charAt(0).toUpperCase()+e.slice(1);function $c(e,t){let n=String(e??``).toUpperCase();if(t===`code`)return n;let r=``;try{r=Qc(new Intl.DisplayNames([e],{type:`language`}).of(e)??``)}catch{}return!r||r.toUpperCase()===n?n:t===`both`?`${n} — ${r}`:r}function el(e,t){let n=t?``:`?locale=${encodeURIComponent(e)}`;if(typeof window>`u`)return n||`?`;try{let n=new URL(window.location.href);return t?n.searchParams.delete(`locale`):n.searchParams.set(`locale`,e),n.searchParams.delete(`page`),`${n.pathname}${n.search}${n.hash}`}catch{return n||`/`}}function tl({variant:e,display:t,separator:n,label:r,style:i,nodeRef:a,inert:o}){let s=(0,l.useContext)(K),c=Zc(s?.settings),u=c[0]??``,d=c.includes(s?.locale)?s.locale:u,f={display:`inline-flex`,alignItems:`center`,gap:8,...z(i)};if(c.length<2)return o?(0,G.jsx)(`div`,{ref:a,style:{...f,padding:`8px 12px`,border:`1px dashed rgba(100, 116, 139, 0.45)`,borderRadius:6,color:`rgba(100, 116, 139, 0.8)`,fontSize:12},children:`Add site languages in Settings → Languages`}):null;let p=r?(0,G.jsx)(`span`,{...q(`label`),style:{opacity:.7},children:r}):null;return e===`inline`?(0,G.jsxs)(`div`,{ref:a,style:f,children:[p,c.map((e,r)=>(0,G.jsxs)(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:8},children:[r>0&&(0,G.jsx)(`span`,{...q(`separator`),style:{opacity:.4},children:n??`·`}),(0,G.jsx)(`a`,{...q(`link`,e===d&&`link-current`),href:el(e,e===u),hrefLang:e,"aria-current":e===d?`true`:void 0,onClick:o?e=>e.preventDefault():void 0,style:{color:e===d?`var(--page-accent, inherit)`:`inherit`,fontWeight:e===d?600:400,textDecoration:`none`,cursor:o?`default`:`pointer`},children:$c(e,t)})]},e))]}):(0,G.jsxs)(`div`,{ref:a,style:f,children:[p,(0,G.jsx)(`select`,{...q(`select`),"aria-label":r||`Language`,value:d,onChange:o?void 0:e=>{let t=e.target.value;window.location.assign(el(t,t===u))},onKeyDown:o?e=>e.preventDefault():void 0,style:{font:`inherit`,color:`inherit`,background:`var(--page-surface, transparent)`,border:`1px solid var(--page-border, rgba(148, 163, 184, 0.4))`,borderRadius:6,padding:`4px 8px`,cursor:o?`default`:`pointer`},children:c.map(e=>(0,l.createElement)(`option`,{...q(`option`,e===d&&`option-current`),key:e,value:e},$c(e,t)))})]})}var nl=[Qo,_s,us,vs,qo,ws],rl={SiteLoginForm:cs,SiteAccountMenu:ls,SiteLanguagePicker:tl,CookieConsent:gs,SiteSearch:Cs,AccessibilityToolbar:Zo,ShopProductGrid:Ac,ShopProduct:jc,ShopCartButton:Pc,ShopCheckout:Hc,ShopOrderHistory:Xc,ShopCurrencyPicker:Ic,ShopFavorites:Mc};new Set(nl.filter(e=>e.ssr===`shell`).flatMap(e=>e.keys));var il=`0.185.1`,al=`4.2.0`,ol=`https://cdn.jsdelivr.net/npm`,sl=`${ol}/three@${il}/+esm`,cl=`${ol}/@google/model-viewer@${al}/dist/model-viewer.min.js`,ll=e=>import(e),ul=new Map;function dl(e){if(ul.has(e))return ul.get(e);if(typeof window>`u`)return new Promise(()=>{});let t=ll(e).catch(t=>{throw ul.delete(e),t});return ul.set(e,t),t}var fl=()=>dl(sl),pl=e=>dl(`${ol}/three@${il}/examples/jsm/${e}/+esm`);function ml(){return typeof window<`u`&&window.customElements?.get(`model-viewer`)?Promise.resolve(null):dl(cl)}var hl=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,gl=(e=2)=>Math.min(typeof window>`u`?1:window.devicePixelRatio||1,e);function _l(e,t){let n=0,r=0,i=0,a=!0,o=e=>{n=requestAnimationFrame(o),i||=e;let a=r?(e-r)/1e3:0;r=e,t(a,(e-i)/1e3)},s=()=>{n&&cancelAnimationFrame(n),n=0,r=0},c=()=>{let e=a&&document.visibilityState!==`hidden`;e&&!n?n=requestAnimationFrame(o):!e&&n&&s()};t(0,0);let l=typeof IntersectionObserver>`u`?null:new IntersectionObserver(e=>{a=e.some(e=>e.isIntersecting),c()},{rootMargin:`120px`});return l&&e&&l.observe(e),document.addEventListener(`visibilitychange`,c),c(),()=>{s(),l?.disconnect(),document.removeEventListener(`visibilitychange`,c)}}function vl(e,t,n={}){let r={radius:n.distance??4,polar:n.polar??Math.PI/2.4,azimuth:n.azimuth??.6,target:n.target??{x:0,y:0,z:0}},i={...r},a=n.minDistance??.4,o=n.maxDistance??200,s=n.damping??.12,c=.05,l=null,u=e=>{e.button!==void 0&&e.button!==0||(l={x:e.clientX,y:e.clientY,id:e.pointerId},t.setPointerCapture?.(e.pointerId))},d=e=>{if(!l||e.pointerId!==l.id)return;let t=e.clientX-l.x,n=e.clientY-l.y;l={...l,x:e.clientX,y:e.clientY},i.azimuth-=t*.006,i.polar=Math.max(c,Math.min(Math.PI-c,i.polar-n*.006)),e.preventDefault()},f=e=>{l&&e.pointerId===l.id&&t.releasePointerCapture?.(e.pointerId),l=null},p=e=>{n.enableZoom!==!1&&(e.preventDefault(),i.radius=Math.max(a,Math.min(o,i.radius*(1+Math.sign(e.deltaY)*.12))))};return t.addEventListener(`pointerdown`,u),t.addEventListener(`pointermove`,d),t.addEventListener(`pointerup`,f),t.addEventListener(`pointercancel`,f),t.addEventListener(`wheel`,p,{passive:!1}),{update:()=>{r.radius+=(i.radius-r.radius)*s,r.polar+=(i.polar-r.polar)*s,r.azimuth+=(i.azimuth-r.azimuth)*s;let t=Math.sin(r.polar);e.position.set(r.target.x+r.radius*t*Math.sin(r.azimuth),r.target.y+r.radius*Math.cos(r.polar),r.target.z+r.radius*t*Math.cos(r.azimuth)),e.lookAt(r.target.x,r.target.y,r.target.z)},dragging:()=>!!l,autoSpin:(e,t)=>{!l&&e&&(i.azimuth+=e*t)},frame:(e,t)=>{i.radius=Math.max(a,Math.min(o,e)),r.radius=i.radius,t&&(r.target={...t},i.target={...t})},dispose:()=>{t.removeEventListener(`pointerdown`,u),t.removeEventListener(`pointermove`,d),t.removeEventListener(`pointerup`,f),t.removeEventListener(`pointercancel`,f),t.removeEventListener(`wheel`,p)}}}var yl=(e,t)=>Number.isFinite(Number(e))&&Number(e)>0?Number(e):t,bl=(e,t)=>(Number.isFinite(Number(e))?Number(e):t)/100,xl=e=>(Number.isFinite(Number(e))?Number(e):0)*Math.PI/180,Sl=e=>typeof e==`string`&&!!e.trim();function Cl({label:e,note:t,height:n,nodeRef:r,style:i}){return(0,G.jsxs)(`div`,{ref:r,style:{...z(i),minHeight:yl(n,320),display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:6,border:`1px dashed rgba(148,163,184,.55)`,borderRadius:10,background:`rgba(148,163,184,.08)`,...Fe,color:`rgba(100,116,139,.95)`,fontSize:13,textAlign:`center`,padding:16},children:[(0,G.jsx)(`div`,{style:{fontWeight:600},children:e}),t?(0,G.jsx)(`div`,{style:{fontSize:11,opacity:.8,maxWidth:320},children:t}):null]})}function wl({src:e,poster:t,alt:n,height:r,bg:i,autoRotate:a,rotateDelay:o,cameraControls:s,ar:c,exposure:u,shadow:d,fieldOfView:f,environment:p,style:m,nodeRef:h,inert:g}){let[_,v]=(0,l.useState)(typeof window<`u`&&!!window.customElements?.get(`model-viewer`)),[y,b]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(_||!e)return;let t=!0;return ml().then(()=>t&&v(!0),()=>t&&b(!0)),()=>{t=!1}},[_,e]);let x={display:`block`,width:`100%`,minHeight:yl(r,360),height:yl(r,360),backgroundColor:i||`transparent`,...z(m)};if(!e)return g?(0,G.jsx)(Cl,{nodeRef:h,style:m,height:r,label:`3D Model`,note:`Pick a .glb or .gltf file in the Settings panel.`}):(0,G.jsx)(`div`,{ref:h,style:x});if(y)return(0,G.jsx)(`div`,{ref:h,style:{...x,display:`flex`,alignItems:`center`,justifyContent:`center`},children:t?(0,G.jsx)(`img`,{src:t,alt:n||``,style:{maxWidth:`100%`,maxHeight:`100%`}}):null});let S=e=>e?``:void 0,C=a!==!1;return(0,G.jsx)(`model-viewer`,{ref:h,src:e,alt:n||`A 3D model`,poster:t||void 0,style:x,"camera-controls":S(!g&&s!==!1),"auto-rotate":S(C&&!hl()),"auto-rotate-delay":C?String(yl(o,0)):void 0,"rotation-per-second":`18deg`,ar:S(!g&&c===!0),"ar-modes":`webxr scene-viewer quick-look`,"shadow-intensity":String(bl(d,100)),exposure:String(bl(u,100)),"field-of-view":f?`${Number(f)}deg`:void 0,"environment-image":p&&p!==`neutral`?p:`neutral`,"interaction-prompt":g?`none`:void 0,loading:`lazy`,"touch-action":`pan-y`,children:t?(0,G.jsx)(`img`,{slot:`poster`,src:t,alt:n||``,style:{width:`100%`,height:`100%`,objectFit:`contain`}}):null})}var Tl=[`attribute vec2 p;`,`void main() { gl_Position = vec4(p, 0.0, 1.0); }`].join(`
|
|
106
|
+
`),El=[`precision highp float;`,`uniform vec2 u_res;`,`uniform float u_time;`,`uniform vec2 u_mouse;`,`uniform vec3 u_a;`,`uniform vec3 u_b;`,`uniform vec3 u_c;`,`uniform float u_scale;`,``,`float hash(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123); }`,`float noise(vec2 p){`,` vec2 i = floor(p); vec2 f = fract(p);`,` vec2 u = f * f * (3.0 - 2.0 * f);`,` return mix(mix(hash(i), hash(i + vec2(1.0, 0.0)), u.x),`,` mix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), u.x), u.y);`,`}`,`float fbm(vec2 p){`,` float v = 0.0; float a = 0.5;`,` for (int i = 0; i < 5; i++) { v += a * noise(p); p *= 2.02; a *= 0.5; }`,` return v;`,`}`,``].join(`
|
|
107
|
+
`),Dl={gradient:[`void main(){`,` vec2 uv = gl_FragCoord.xy / u_res;`,` vec2 sp = (gl_FragCoord.xy - 0.5 * u_res) / min(u_res.x, u_res.y);`,` float t = u_time * 0.25;`,` float d1 = length(sp - vec2(sin(t) * 0.4, cos(t * 0.8) * 0.3) - u_mouse * 0.25);`,` float d2 = length(sp + vec2(cos(t * 1.1) * 0.45, sin(t * 0.7) * 0.35));`,` vec3 col = mix(u_a, u_b, smoothstep(0.0, 1.0, d1 * u_scale));`,` col = mix(col, u_c, smoothstep(0.0, 1.2, d2 * u_scale) * 0.65);`,` gl_FragColor = vec4(col, 1.0);`,`}`].join(`
|
|
107
108
|
`),waves:[`void main(){`,` vec2 uv = gl_FragCoord.xy / u_res;`,` float t = u_time * 0.5;`,` float y = uv.y * u_scale;`,` float w = sin((uv.x * 6.0) + t) * 0.08 + sin((uv.x * 11.0) - (t * 1.3)) * 0.05;`,` float band = smoothstep(0.0, 1.0, y + w + (u_mouse.y * 0.1));`,` vec3 col = mix(u_a, u_b, band);`,` col += u_c * (0.12 * smoothstep(0.02, 0.0, abs(y + w - 0.5)));`,` gl_FragColor = vec4(col, 1.0);`,`}`].join(`
|
|
108
109
|
`),plasma:[`void main(){`,` vec2 uv = gl_FragCoord.xy / u_res;`,` vec2 p = (uv - 0.5) * u_scale * 3.0 + u_mouse * 0.3;`,` float t = u_time * 0.2;`,` float n = fbm(p + vec2(fbm(p + t), fbm(p - t)));`,` vec3 col = mix(u_a, u_b, smoothstep(0.25, 0.75, n));`,` col = mix(col, u_c, smoothstep(0.6, 0.95, n));`,` gl_FragColor = vec4(col, 1.0);`,`}`].join(`
|
|
109
110
|
`),grid:[`void main(){`,` vec2 uv = gl_FragCoord.xy / u_res;`,` vec2 sp = (gl_FragCoord.xy - 0.5 * u_res) / min(u_res.x, u_res.y);`,` float t = u_time * 0.15;`,` vec2 g = sp * (8.0 * u_scale);`,` g.y += t;`,` vec2 f = abs(fract(g) - 0.5);`,` float line = smoothstep(0.48, 0.5, max(f.x, f.y));`,` float glow = 1.0 - smoothstep(0.0, 0.9, length(sp - u_mouse * 0.4));`,` vec3 col = mix(u_a, u_b, line);`,` col += u_c * glow * 0.35;`,` gl_FragColor = vec4(col, 1.0);`,`}`].join(`
|
|
110
|
-
`)};function bl(e,t){let n=/^#?([0-9a-f]{6})$/i.exec(String(e??``).trim());if(!n)return t;let r=parseInt(n[1],16);return[(r>>16&255)/255,(r>>8&255)/255,(r&255)/255]}function xl(e,t,n){let r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){let t=e.getShaderInfoLog(r);throw e.deleteShader(r),Error(t||`Shader failed to compile`)}return r}function Sl({preset:e,code:t,colorA:n,colorB:r,colorC:i,speed:a,scale:o,height:s,interactive:c,style:u,nodeRef:d,inert:f}){let p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=(0,l.useRef)(null),[g,_]=(0,l.useState)(``);(0,l.useEffect)(()=>()=>{let e=h.current;h.current=null,e?.getExtension(`WEBGL_lose_context`)?.loseContext()},[]);let v=typeof t==`string`&&t.trim()?t:yl[e]??yl.gradient,y=String(n??``),b=String(r??``),x=String(i??``),S=fl(a,100),C=Math.max(.05,fl(o,100));return(0,l.useEffect)(()=>{let e=p.current,t=m.current;if(!e||!t)return;let n=h.current??=e.getContext(`webgl`,{antialias:!0,alpha:!0,premultipliedAlpha:!1});if(!n){_(`WebGL is not available in this browser`);return}let r=null;try{let e=xl(n,n.VERTEX_SHADER,_l),t=xl(n,n.FRAGMENT_SHADER,vl+v);if(r=n.createProgram(),n.attachShader(r,e),n.attachShader(r,t),n.linkProgram(r),!n.getProgramParameter(r,n.LINK_STATUS))throw Error(n.getProgramInfoLog(r)||`Link failed`);_(``)}catch(e){_(e?.message||`Shader failed to compile`);return}n.useProgram(r);let i=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,i),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),n.STATIC_DRAW);let a=n.getAttribLocation(r,`p`);n.enableVertexAttribArray(a),n.vertexAttribPointer(a,2,n.FLOAT,!1,0,0);let o=e=>n.getUniformLocation(r,e),s={res:o(`u_res`),time:o(`u_time`),mouse:o(`u_mouse`),a:o(`u_a`),b:o(`u_b`),c:o(`u_c`),scale:o(`u_scale`)},l={x:0,y:0},u=t=>{let n=e.getBoundingClientRect();!n.width||!n.height||(l.x=((t.clientX-n.left)/n.width-.5)*2,l.y=(.5-(t.clientY-n.top)/n.height)*2)};c!==!1&&t.addEventListener(`pointermove`,u);let d=()=>{let r=cl(),i=Math.max(1,Math.round(t.clientWidth*r)),a=Math.max(1,Math.round(t.clientHeight*r));(e.width!==i||e.height!==a)&&(e.width=i,e.height=a,n.viewport(0,0,i,a))},f=typeof ResizeObserver>`u`?null:new ResizeObserver(d);f?.observe(t),d();let g=sl(),w={a:bl(y,[.35,.4,.95]),b:bl(b,[.05,.06,.16]),c:bl(x,[.95,.35,.6])},T={};return T.stop=ll(t,(t,r)=>{d(),n.uniform2f(s.res,e.width,e.height),n.uniform1f(s.time,(g?0:r)*S),n.uniform2f(s.mouse,l.x,l.y),n.uniform3fv(s.a,w.a),n.uniform3fv(s.b,w.b),n.uniform3fv(s.c,w.c),n.uniform1f(s.scale,C),n.drawArrays(n.TRIANGLES,0,3),g&&T.stop?.()}),()=>{T.stop?.(),f?.disconnect(),t.removeEventListener(`pointermove`,u),n.deleteProgram(r),n.deleteBuffer(i)}},[v,y,b,x,S,C,c]),(0,W.jsxs)(`div`,{ref:e=>{m.current=e,typeof d==`function`&&d(e)},style:{position:`relative`,minHeight:dl(s,320),overflow:`hidden`,...z(u)},children:[(0,W.jsx)(`canvas`,{ref:p,style:{display:`block`,width:`100%`,height:`100%`,position:`absolute`,inset:0}}),g&&f?(0,W.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:12,background:`rgba(15,23,42,.75)`,...Fe,color:`#fecaca`,fontSize:11,whiteSpace:`pre-wrap`,overflow:`auto`},children:g}):null]})}function Cl(e,t){let n=new e.Scene,r=new e.BoxGeometry;r.deleteAttribute(`uv`);let i=new e.Mesh(r,new e.MeshBasicMaterial({side:e.BackSide,color:6710886}));i.scale.setScalar(12),n.add(i);let a=(t,i,a,o,s,c,l,u)=>{let d=new e.Mesh(r,new e.MeshBasicMaterial);d.material.color.setHex(t),d.material.color.multiplyScalar(i),d.position.set(a,o,s),d.scale.set(c,l,u),n.add(d)};a(16777215,4,0,6,0,10,.5,10),a(16777215,1.4,-6,1,2,.4,6,6),a(16777215,1,6,1,-2,.4,6,6);let o=new e.PMREMGenerator(t),s=o.fromScene(n,.04);return o.dispose(),r.dispose(),n.traverse(e=>e.material?.dispose?.()),s.texture}var wl=new Map;function Tl(e){if(wl.has(e))return wl.get(e);let t=al(`loaders/GLTFLoader.js`).then(t=>new Promise((n,r)=>{new t.GLTFLoader().load(e,e=>n(e.scene),void 0,r)})).catch(t=>{throw wl.delete(e),t});return wl.set(e,t),t}function El(e,t){let n=new e.Box3().setFromObject(t);if(n.isEmpty())return t;let r=n.getSize(new e.Vector3),i=n.getCenter(new e.Vector3),a=Math.max(r.x,r.y,r.z)||1,o=new e.Group;return t.position.sub(i),t.scale.multiplyScalar(1/a),t.position.multiplyScalar(1/a),o.add(t),o}var Dl={box:e=>new e.BoxGeometry(1,1,1,1,1,1),sphere:e=>new e.SphereGeometry(.62,48,32),torus:e=>new e.TorusGeometry(.5,.2,24,64),knot:e=>new e.TorusKnotGeometry(.44,.15,128,24),cone:e=>new e.ConeGeometry(.55,1.1,48),cylinder:e=>new e.CylinderGeometry(.45,.45,1.1,48),plane:e=>new e.PlaneGeometry(1.4,1.4),capsule:e=>new e.CapsuleGeometry(.35,.6,8,32)},Ol=(e,t)=>Number.isFinite(Number(e))?Number(e):t;function kl({objects:e,background:t,cameraDistance:n,fov:r,autoRotate:i,spinSpeed:a,controls:o,ground:s,height:c,style:u,nodeRef:d,inert:f}){let p=(0,l.useRef)(null),[m,h]=(0,l.useState)(!1),g=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`):[],_=JSON.stringify(g),v=i!==!1&&!sl(),y=o!==!1&&!f;return(0,l.useEffect)(()=>{let e=p.current;if(!e)return;let i=!0,o=null;return il().then(c=>{if(!i||!e)return;let l=new c.WebGLRenderer({antialias:!0,alpha:!t});l.setPixelRatio(cl()),l.shadowMap.enabled=s!==!1,l.shadowMap.type=c.PCFSoftShadowMap,l.outputColorSpace=c.SRGBColorSpace,l.toneMapping=c.ACESFilmicToneMapping,l.domElement.style.display=`block`,l.domElement.style.width=`100%`,l.domElement.style.height=`100%`,e.appendChild(l.domElement);let u=new c.Scene;t&&(u.background=new c.Color(t)),u.environment=Cl(c,l);let d=new c.PerspectiveCamera(Ol(r,45),1,.1,400),f=ul(d,l.domElement,{distance:Ol(n,5),enableZoom:y}),p=new c.DirectionalLight(16777215,2.2);p.position.set(4,7,5),p.castShadow=s!==!1,p.shadow.mapSize.set(1024,1024),p.shadow.camera.near=.5,p.shadow.camera.far=30,u.add(p,new c.AmbientLight(16777215,.35));let m=[],h=new c.Group,_=(e,t)=>{let n=Ol(t.scale,1);e.position.set(Ol(t.x,0),Ol(t.y,0),Ol(t.z,0)),e.rotation.set(pl(t.rx),pl(t.ry),pl(t.rz)),e.scale.setScalar(n>0?n:1),e.userData.spin=pl(t.spin)};for(let e of g){if(e.shape===`model`){if(!ml(e.src))continue;let t=new c.Group;_(t,e),h.add(t),Tl(e.src).then(e=>{if(!i)return;let n=El(c,e.clone(!0));n.traverse(e=>{e.isMesh&&(e.castShadow=!0,e.receiveShadow=!0)}),t.add(n)},()=>{});continue}let t=(Dl[e.shape]??Dl.box)(c),n=new c.MeshStandardMaterial({color:/^#?[0-9a-f]{6}$/i.test(String(e.color??``))?e.color:`#6366f1`,metalness:Math.min(1,Math.max(0,fl(e.metalness,10))),roughness:Math.min(1,Math.max(0,fl(e.roughness,35))),transparent:fl(e.opacity,100)<1,opacity:Math.min(1,Math.max(0,fl(e.opacity,100))),flatShading:e.flat===!0,wireframe:e.wireframe===!0,side:e.shape===`plane`?c.DoubleSide:c.FrontSide}),r=new c.Mesh(t,n);_(r,e),r.castShadow=!0,r.receiveShadow=!0,h.add(r),m.push(t,n)}u.add(h);let b=null;if(s!==!1){let e=new c.ShadowMaterial({opacity:.22}),t=new c.PlaneGeometry(60,60);b=new c.Mesh(t,e),b.rotation.x=-Math.PI/2,b.position.y=Ol(s===!0?0:s,-.85),b.receiveShadow=!0,u.add(b),m.push(t,e)}let x=()=>{let t=Math.max(1,e.clientWidth),n=Math.max(1,e.clientHeight);l.setSize(t,n,!1),d.aspect=t/n,d.updateProjectionMatrix()},S=typeof ResizeObserver>`u`?null:new ResizeObserver(x);S?.observe(e),x();let C=pl(Number.isFinite(Number(a))?a:20),w=ll(e,e=>{f.autoSpin(v?C:0,e),f.update();for(let t of h.children)t.userData.spin&&(t.rotation.y+=t.userData.spin*e);l.render(u,d)});o=()=>{w(),S?.disconnect(),f.dispose();for(let e of m)e.dispose?.();u.environment?.dispose?.(),l.dispose(),l.domElement.remove()}},()=>{i&&h(!0)}),()=>{i=!1,o?.()}},[_,t,n,r,v,a,y,s]),m&&f?(0,W.jsx)(hl,{nodeRef:d,style:u,height:c,label:`3D Scene`,note:`The 3D engine could not be loaded. Check the connection and try again.`}):(0,W.jsx)(`div`,{ref:e=>{p.current=e,typeof d==`function`&&d(e)},style:{minHeight:dl(c,380),height:dl(c,380),overflow:`hidden`,touchAction:y?`pan-y`:void 0,...z(u)}})}function Al({code:e,height:t,background:n,style:r,nodeRef:i,inert:a}){let o=(0,l.useRef)(null),[s,c]=(0,l.useState)(``);return(0,l.useEffect)(()=>{let t=o.current;if(a||!t||typeof e!=`string`||!e.trim())return;let r=!0,i=null;return il().then(a=>{if(!r||!t)return;let o=new a.WebGLRenderer({antialias:!0,alpha:!n});o.setPixelRatio(cl()),o.outputColorSpace=a.SRGBColorSpace,o.domElement.style.display=`block`,o.domElement.style.width=`100%`,o.domElement.style.height=`100%`,t.appendChild(o.domElement);let s=new a.Scene;n&&(s.background=new a.Color(n));let l=new a.PerspectiveCamera(45,1,.1,1e3);l.position.set(0,1.2,4);let u=null;try{u=Function(`ctx`,`"use strict";\n${e}`)({THREE:a,scene:s,camera:l,renderer:o,canvas:o.domElement,host:t})}catch(e){c(e?.message||String(e))}let d=()=>{let e=Math.max(1,t.clientWidth),n=Math.max(1,t.clientHeight);o.setSize(e,n,!1),l.aspect=e/n,l.updateProjectionMatrix()},f=typeof ResizeObserver>`u`?null:new ResizeObserver(d);f?.observe(t),d();let p=!1,m=ll(t,(e,t)=>{if(!p&&typeof u?.frame==`function`)try{u.frame(e,t)}catch(e){p=!0,c(e?.message||String(e))}o.render(s,l)});i=()=>{m(),f?.disconnect();try{u?.dispose?.()}catch{}o.dispose(),o.domElement.remove()}}),()=>{r=!1,i?.()}},[e,a,n]),a?(0,W.jsx)(hl,{nodeRef:i,style:r,height:t,label:`three.js`,note:typeof e==`string`&&e.trim()?`Custom scene code runs in Preview and on the published page.`:`Open the code editor in the Settings panel to write your scene.`}):(0,W.jsx)(`div`,{ref:e=>{o.current=e,typeof i==`function`&&i(e)},style:{minHeight:dl(t,380),height:dl(t,380),overflow:`hidden`,position:`relative`,touchAction:`pan-y`,...z(r)},children:s?(0,W.jsx)(`div`,{style:{position:`absolute`,left:8,top:8,right:8,padding:`6px 8px`,borderRadius:6,background:`rgba(127,29,29,.85)`,...Fe,color:`#fee2e2`,fontSize:11},children:s}):null})}var jl={ModelViewerBlock:gl,ShaderBlock:Sl,SceneBlock:kl,ThreeCanvasBlock:Al},Ml=`2.44.0`,Nl=`https://cdn.jsdelivr.net/npm`,Pl=`${Nl}/@rive-app/canvas@${Ml}/+esm`,Fl=`${Nl}/@rive-app/canvas@${Ml}/rive.wasm`,Z=e=>import(e),Q=null;function Il(){return typeof window>`u`?new Promise(()=>{}):Q||(Q=Z(Pl).then(e=>{let t=e?.default??e;return t?.RuntimeLoader?.setWasmUrl&&t.RuntimeLoader.setWasmUrl(Fl),t}).catch(e=>{throw Q=null,e}),Q)}var Ll=new Map,Rl={56:`number`,58:`trigger`,59:`boolean`},zl=new Set;function Bl(e,t){if(!e||!t)return;let n=(Array.isArray(t.artboards)?t.artboards:[]).map(e=>({name:String(e?.name??``),animations:(Array.isArray(e?.animations)?e.animations:[]).map(String),stateMachines:(Array.isArray(e?.stateMachines)?e.stateMachines:[]).map(e=>({name:String(e?.name??``),inputs:(Array.isArray(e?.inputs)?e.inputs:[]).map(e=>({name:String(e?.name??``),type:Rl[e?.type]??`unknown`}))}))}));Ll.set(e,{artboards:n}),zl.forEach(t=>t(e))}var Vl=(e,t)=>Number.isFinite(Number(e))&&Number(e)>0?Number(e):t,Hl=[`contain`,`cover`,`fill`,`fitWidth`,`fitHeight`,`scaleDown`,`none`,`layout`],Ul=[`center`,`topLeft`,`topCenter`,`topRight`,`centerLeft`,`centerRight`,`bottomLeft`,`bottomCenter`,`bottomRight`],Wl=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,Gl=131;function Kl(e,t,n,r){if(!e||!t||!n)return;let i=[];try{i=e.stateMachineInputs(t)??[]}catch{return}let a=i.find(e=>e?.name===n);a&&(a.type===58?r&&a.fire():a.type===59?a.value=!!r:a.type===56&&(a.value=+!!r))}function ql({src:e,poster:t,alt:n,height:r,bg:i,artboard:a,mode:o=`stateMachine`,stateMachine:s,animation:c,fit:u=`contain`,alignment:d=`center`,autoplay:f=!0,hoverInput:p,clickInput:m,style:h,nodeRef:g,inert:_}){let v=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(``),[S,C]=(0,l.useState)(!1),[w,T]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let t=y.current,n=v.current;if(C(!1),T(!1),!e||!t)return;let r=!0,i=null,l=null,p=null;return Il().then(m=>{if(!r)return;let h=o!==`animation`,g=f!==!1&&!Wl();try{i=new m.Rive({src:e,canvas:t,artboard:a||void 0,stateMachines:h&&s?s:void 0,animations:!h&&c?c:void 0,autoplay:g,layout:new m.Layout({fit:Hl.includes(u)?u:`contain`,alignment:Ul.includes(d)?d:`center`}),shouldDisableRiveListeners:!!_,isTouchScrollEnabled:!0,onLoad:()=>{if(!r)return;i.resizeDrawingSurfaceToCanvas();let t=i.contents;if(Bl(e,t),h){let e=((t?.artboards??[]).find(e=>e.name===(a||i.activeArtboard))??t?.artboards?.[0])?.stateMachines?.[0]?.name??``;if(x.current=s||e,!s&&e)try{i.play(e),g||i.pause(e)}catch{}}C(!0)},onLoadError:()=>r&&T(!0)})}catch{T(!0);return}b.current=i,n&&(n.rive=i),i.on(m.EventType.RiveEvent,e=>{let t=e?.data;_||t?.type!==Gl||!t?.url||(t.target===`_self`?window.location.assign(t.url):window.open(t.url,t.target||`_blank`,`noopener`))}),n&&typeof ResizeObserver<`u`&&(l=new ResizeObserver(()=>i?.resizeDrawingSurfaceToCanvas()),l.observe(n)),n&&typeof IntersectionObserver<`u`&&(p=new IntersectionObserver(([e])=>{i&&(e?.isIntersecting?i.startRendering?.():i.stopRendering?.())}),p.observe(n))},()=>r&&T(!0)),()=>{r=!1,l?.disconnect(),p?.disconnect(),n&&n.rive===i&&delete n.rive,b.current=null,x.current=``;try{i?.cleanup()}catch{}}},[e,a,o,s,c,u,d,f,_]);let E=!_&&S,D=(e,t)=>E&&Kl(b.current,x.current,e,t),O={position:`relative`,display:`block`,width:`100%`,height:Vl(r,360),backgroundColor:i||`transparent`,overflow:`hidden`,...z(h)};return e?(0,W.jsxs)(`div`,{ref:e=>{v.current=e,typeof g==`function`&&g(e)},style:O,onMouseEnter:p?()=>D(p,!0):void 0,onMouseLeave:p?()=>D(p,!1):void 0,onClick:m?()=>D(m,!0):void 0,children:[(0,W.jsx)(`canvas`,{ref:y,...G(`canvas`),role:`img`,"aria-label":n||`Animation`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,display:`block`}}),t&&(!S||w)?(0,W.jsx)(`img`,{...G(`poster`),src:t,alt:n||``,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`contain`,pointerEvents:`none`}}):null]}):_?(0,W.jsxs)(`div`,{ref:g,style:{...O,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:6,border:`1px dashed rgba(148,163,184,.55)`,borderRadius:10,background:`rgba(148,163,184,.08)`,...Fe,color:`rgba(100,116,139,.95)`,fontSize:13,textAlign:`center`,padding:16},children:[(0,W.jsx)(`strong`,{style:{fontSize:14},children:`Rive`}),(0,W.jsx)(`span`,{children:`Pick a .riv file in the Settings panel.`})]}):null}var Jl={RiveBlock:ql},Yl=/\.(mp4|webm|ogv|ogg|mov|m4v)(\?|#|$)/i,Xl=/\.(jpe?g|png|gif|webp|avif|svg|bmp)(\?|#|$)/i,Zl=/\.(pdf|docx?|xlsx?|pptx?|odt|ods|odp|txt|csv|zip|rar|7z|mp3|wav|m4a)(\?|#|$)/i,Ql=/vimeo\.com\/(?:video\/)?(\d+)/i,$l=`data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20240%22%3E%3Crect%20width%3D%22320%22%20height%3D%22240%22%20fill%3D%22%231e293b%22%2F%3E%3Ccircle%20cx%3D%22160%22%20cy%3D%22120%22%20r%3D%2234%22%20fill%3D%22rgba(255%2C255%2C255%2C0.16)%22%2F%3E%3Cpath%20d%3D%22M150%20102%20L178%20120%20L150%20138%20Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E`;function eu(e,t=``){let n=String(e??``);return ni(n)&&/youtu/i.test(n)?`youtube`:Ql.test(n)?`vimeo`:String(t).startsWith(`video/`)||Yl.test(n)?`video`:String(t).startsWith(`image/`)||Xl.test(n)?`image`:t||Zl.test(n)?`document`:`unknown`}var tu=new Map;function nu(e){return tu.has(e)||tu.set(e,new Promise(t=>{let n=new Image;n.onload=()=>t(`image`),n.onerror=()=>{fetch(e,{method:`HEAD`}).then(e=>t(String(e.headers.get(`content-type`)??``).startsWith(`video/`)?`video`:`drop`)).catch(()=>t(`drop`))},n.src=e})),tu.get(e)}function ru(e,t=0){let[n,r]=(0,l.useState)({}),i=e.filter(e=>e.kind===`unknown`&&!(e.src in n)).map(e=>e.src).join(`|`);return(0,l.useEffect)(()=>{if(!i||typeof window>`u`)return;let e=!0;return i.split(`|`).forEach(t=>{nu(t).then(n=>e&&r(e=>({...e,[t]:n})))}),()=>{e=!1}},[i]),e.map(e=>{if(e.kind!==`unknown`)return e;let t=n[e.src]??`image`;return t===`drop`?null:{...e,kind:t,thumb:t===`video`?au(e.src,`video`,e.poster):e.thumb}}).filter(Boolean).slice(0,Math.max(0,Number(t)||0)||void 0).map((e,t)=>({...e,index:t+1}))}var iu=e=>e===`video`||e===`youtube`||e===`vimeo`;function au(e,t,n){return n||(t===`image`||t===`unknown`?e:t===`youtube`?`https://i.ytimg.com/vi/${ni(e)}/hqdefault.jpg`:$l)}var ou=e=>e==null?``:ir(e),su=e=>(Array.isArray(e)?e:[e]).map(e=>e&&typeof e==`object`?{url:e.url??e.src??``,mime:e.mime??``}:{url:e,mime:``}).filter(e=>typeof e.url==`string`&&e.url.trim()),cu=e=>{try{return decodeURIComponent(String(e).split(/[?#]/)[0].split(`/`).pop()??``)}catch{return``}};function lu({items:e,entries:t,mediaField:n,nameField:r,posterField:i,limit:a}){let o=Math.max(0,Number(a)||0),s=[],c=e=>o&&s.length>=o?!1:(s.push({...e,index:s.length+1}),!0);if(Array.isArray(t)){for(let e of t){if(!e||typeof e!=`object`)continue;let t=e.data??e,a=ou(r?nr(t,r):t.name),o=i?su(nr(t,i))[0]?.url??``:``;for(let{url:r,mime:i}of su(nr(t,n))){let t=eu(r,i);if(t!==`document`&&!c({src:r,kind:t,poster:o,thumb:au(r,t,o),name:a,alt:a,entry:e}))return s}}return s}for(let t of Array.isArray(e)?e:[]){if(!t||typeof t!=`object`||!t.src)continue;let e=eu(t.src,t.mime),n=t.name||``;if(e!==`document`&&!c({src:t.src,kind:e,poster:t.poster,thumb:au(t.src,e,t.poster),name:n,alt:t.alt||n,entry:null}))break}return s}function uu(e){let t=e.entry&&typeof e.entry==`object`?e.entry:{id:`item-${e.index}`};return{...t,data:{...t.data??{},src:e.src,thumb:e.thumb,name:e.name||cu(e.src),kind:iu(e.kind)?`video`:`image`,index:e.index}}}function du({item:e}){return(0,W.jsxs)(`span`,{...G(`tile-media`),style:{position:`relative`,display:`block`,borderRadius:`inherit`,overflow:`hidden`},children:[(0,W.jsx)(`img`,{...G(`thumb`),src:e.thumb,alt:e.alt||``,loading:`lazy`,style:{display:`block`,width:`100%`,aspectRatio:`1 / 1`,objectFit:`cover`,borderRadius:`inherit`}}),iu(e.kind)&&(0,W.jsx)(fu,{})]})}function fu(){return(0,W.jsx)(`span`,{...G(`play`),"aria-hidden":`true`,style:{position:`absolute`,left:`50%`,top:`50%`,width:44,height:44,marginLeft:-22,marginTop:-22,borderRadius:`50%`,background:`rgba(0, 0, 0, 0.55)`,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`},children:(0,W.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`#fff`,children:(0,W.jsx)(`path`,{d:`M8 5v14l11-7z`})})})}function pu({item:e,autoplay:t}){let n={maxWidth:`92vw`,maxHeight:`80vh`,borderRadius:8,boxShadow:`0 12px 48px rgba(0,0,0,0.5)`,display:`block`};if(e.kind===`youtube`||e.kind===`vimeo`){let r=e.kind===`youtube`?`https://www.youtube-nocookie.com/embed/${ni(e.src)}?rel=0${t?`&autoplay=1`:``}`:`https://player.vimeo.com/video/${e.src.match(Ql)?.[1]}${t?`?autoplay=1`:``}`;return(0,W.jsx)(`iframe`,{...G(`media`),src:r,title:e.name||`Video`,allow:`autoplay; encrypted-media; fullscreen; picture-in-picture`,allowFullScreen:!0,style:{...n,width:`min(92vw, calc(80vh * 16 / 9))`,aspectRatio:`16 / 9`,border:0,background:`#000`}})}return e.kind===`video`?(0,W.jsx)(`video`,{...G(`media`),src:e.src,poster:e.thumb===$l?void 0:e.thumb,controls:!0,autoPlay:t,playsInline:!0,style:{...n,background:`#000`}}):(0,W.jsx)(`img`,{...G(`media`),src:e.src,alt:e.alt||``,style:n})}var mu={position:`absolute`,top:`50%`,transform:`translateY(-50%)`,width:48,height:48,borderRadius:`50%`,border:0,background:`rgba(255, 255, 255, 0.12)`,color:`inherit`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`};function hu({list:e,index:t,onIndex:n,onClose:r,options:i,locale:a}){let o=ot(a),{loop:s=!0,caption:c=!0,counter:u=!0,thumbs:d=!1,backdrop:f=``,color:p=``,autoplay:m=!0}=i,h=e[t],g=(0,l.useRef)(null),_=e.length,v=s||t>0,y=s||t<_-1,b=e=>n(t=>{let n=t+e;return s?(n+_)%_:Math.min(Math.max(n,0),_-1)});if((0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&r(),e.key===`ArrowRight`&&b(1),e.key===`ArrowLeft`&&b(-1)},t=document.body,n=t.style.overflow;return window.addEventListener(`keydown`,e),t.style.overflow=`hidden`,g.current?.focus(),()=>{window.removeEventListener(`keydown`,e),t.style.overflow=n}},[_,s]),!h)return null;let x=e=>e.stopPropagation(),S=h.name||cu(h.src);return(0,W.jsxs)(`div`,{...G(`backdrop`),role:`dialog`,"aria-modal":`true`,"aria-label":o(`gallery`),onClick:r,style:{position:`fixed`,inset:0,zIndex:2147483e3,background:f||`rgba(0, 0, 0, 0.88)`,color:p||`#fff`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24,gap:12},children:[(0,W.jsx)(`div`,{...G(`stage`),onClick:x,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,W.jsx)(pu,{item:h,autoplay:m},t)}),(c&&S||u&&_>1)&&(0,W.jsxs)(`div`,{onClick:x,style:{display:`flex`,gap:12,alignItems:`baseline`,fontSize:14},children:[c&&S&&(0,W.jsx)(`span`,{...G(`caption`),style:{opacity:.9},children:S}),u&&_>1&&(0,W.jsx)(`span`,{...G(`counter`),style:{opacity:.6,fontVariantNumeric:`tabular-nums`},children:o(`itemOf`,{n:t+1,total:_})})]}),d&&_>1&&(0,W.jsx)(`div`,{...G(`thumbs`),onClick:x,style:{display:`flex`,gap:6,maxWidth:`92vw`,overflowX:`auto`,padding:4},children:e.map((e,r)=>(0,W.jsx)(`button`,{type:`button`,...G(`thumb-button`,r===t&&`thumb-button-active`),"aria-label":o(`itemOf`,{n:r+1,total:_}),"aria-current":r===t||void 0,onClick:()=>n(r),style:{flexShrink:0,padding:0,border:`2px solid ${r===t?`currentColor`:`transparent`}`,borderRadius:6,background:`none`,cursor:`pointer`,opacity:r===t?1:.6},children:(0,W.jsx)(`img`,{src:e.thumb,alt:``,style:{display:`block`,width:56,height:42,objectFit:`cover`,borderRadius:4}})},r))}),(0,W.jsx)(`button`,{ref:g,type:`button`,...G(`close-button`),"aria-label":o(`close`),onClick:r,style:{position:`absolute`,top:16,right:16,width:44,height:44,borderRadius:`50%`,border:0,background:`rgba(255, 255, 255, 0.12)`,color:`inherit`,cursor:`pointer`,fontSize:24,lineHeight:1},children:`×`}),_>1&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`button`,{type:`button`,...G(`arrow`,`arrow-prev`),"aria-label":o(`prevItem`),disabled:!v,onClick:e=>{x(e),b(-1)},style:{...mu,left:16,opacity:v?1:.3},children:(0,W.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,W.jsx)(`path`,{d:`M15 18l-6-6 6-6`})})}),(0,W.jsx)(`button`,{type:`button`,...G(`arrow`,`arrow-next`),"aria-label":o(`nextItem`),disabled:!y,onClick:e=>{x(e),b(1)},style:{...mu,right:16,opacity:y?1:.3},children:(0,W.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,W.jsx)(`path`,{d:`M9 18l6-6-6-6`})})})]})]})}function gu(e,t,n){let[r,i]=(0,l.useState)(null);return{open:i,overlay:r!==null&&e[r]&&typeof document<`u`?(0,wt.createPortal)((0,W.jsx)(hu,{list:e,index:r,onIndex:i,onClose:()=>i(null),options:t,locale:n}),document.body):null}}function _u(e,t,n){return{role:`button`,tabIndex:0,"aria-label":ot(n)(`openItem`,{name:t}),onClick:t=>{t.target?.closest?.(`a[href]`)||e()},onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),e())}}}function vu(e){let{tenant:t,apiUrl:n,revision:r,locale:i}=(0,l.useContext)(Un),a=(0,l.useContext)(Wn)?.[e],[o,s]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!e||a)return;let r=!0,o=new URLSearchParams({all:`1`,...i?{locale:i}:{}});return fetch(`${n}/dynamic/${encodeURIComponent(e)}?${o}`,{headers:t?{"x-tenant":t}:{}}).then(e=>e.json()).then(e=>{let t=Array.isArray(e?.payload)?e.payload:Array.isArray(e?.payload?.data)?e.payload.data:[];r&&s(t.filter(e=>e&&typeof e==`object`))}).catch(()=>r&&s([])),()=>{r=!1}},[r,e,t,n,i,a]),e?a??o:null}var yu=(e,t)=>t?e.filter(e=>e?.id===t||e?.data?.slug===t||e?.slug===t):e,bu=(e,t)=>({display:`grid`,gridTemplateColumns:`repeat(${Math.min(Math.max(Number(e)||4,1),8)}, minmax(0, 1fr))`,gap:t===``||t==null||!Number.isFinite(Number(t))?12:Math.max(0,Number(t))}),xu=e=>({loop:e.loop!==!1,caption:e.caption!==!1,counter:e.counter!==!1,thumbs:!!e.thumbs,autoplay:e.autoplay!==!1,backdrop:e.backdrop||``,color:e.color||``});function Su(e){let{items:t=[],source:n=``,entry:r=``,mediaField:i=``,nameField:a=``,posterField:o=``,limit:s=0,emptyText:c=``,columns:u=4,gap:d=``,templateId:f,renderTemplate:p,style:m,nodeRef:h,inert:g}=e,{locale:_}=(0,l.useContext)(Un),v=(0,l.useContext)(Jn),y=(0,l.useContext)(Yn),b=vu(n),x=ru(lu({items:t,entries:n?yu(b??[],r):null,mediaField:i,nameField:a,posterField:o}),s),{open:S,overlay:C}=gu(x,xu(e),_),w=p??(f&&v?.render?e=>v.render(f,e):null),T=!!n&&b===null;return(0,W.jsxs)(`div`,{ref:h,...G(`grid`),style:{width:`100%`,...bu(u,d),...z(m)},children:[x.map(t=>{let n=uu(t);return(0,W.jsx)(`div`,{...G(`item`,iu(t.kind)&&`item-video`),...g?null:_u(()=>S(t.index-1),n.data.name,_),style:{minWidth:0,position:`relative`,cursor:g?void 0:`zoom-in`},children:w?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Yn.Provider,{value:{...y??{},entry:n},children:w(e=>dr(e,n,_))}),e.playMark!==!1&&iu(t.kind)&&(0,W.jsx)(fu,{})]}):(0,W.jsx)(du,{item:t})},`${t.index}-${t.src}`)}),!x.length&&!T&&(n?c:null)&&(0,W.jsx)(`div`,{...G(`empty`),style:{gridColumn:`1 / -1`,padding:`24px 12px`,fontSize:13,opacity:.55,textAlign:`center`},children:c}),C]})}var Cu={LightboxGallery:Su},wu=new Map;function Tu(e){if(wu.has(e))return wu.get(e);let t=URL.createObjectURL(new Blob([e],{type:`text/javascript`})),n=import(t).finally(()=>URL.revokeObjectURL(t));return wu.set(e,n),n}function Eu(e){let t=e&&typeof e==`object`?e.builder_plugins:null,n=t&&typeof t==`object`?t.plugins:null;return n&&typeof n==`object`?n:{}}async function Du(e,t){let n=await Tu(e);return(Array.isArray(n?.default?.blocks)?n.default.blocks:[]).find(e=>e?.id===t&&typeof e.mount==`function`)??null}var Ou={padding:`10px 12px`,border:`1px dashed rgba(148, 163, 184, 0.5)`,borderRadius:8,fontSize:12,opacity:.6};function ku({pluginId:e,blockId:t,props:n,style:r,nodeRef:i}){let a=(0,l.useContext)(Un),o=Eu(a?.settings)[e],s=(0,l.useRef)(null),c=(0,l.useRef)(null),u={tenant:a?.tenant??``,apiUrl:a?.apiUrl??`/api`,locale:a?.locale??``,settings:a?.settings??null},d=(0,l.useRef)(u);d.current=u;let f=JSON.stringify(n??{});return(0,l.useEffect)(()=>{let e=s.current;if(!o?.code||!e)return;let n=!0;return Du(o.code,t).then(e=>{if(!(!n||!e||!s.current)){c.current=e;try{e.mount(s.current,JSON.parse(f),d.current)}catch{c.current=null}}}).catch(()=>{}),()=>{n=!1;let t=c.current;c.current=null;try{t?.unmount?.(e)}catch{}e&&(e.innerHTML=``)}},[o?.code,t]),(0,l.useEffect)(()=>{let e=c.current,t=s.current;if(!(!e||!t))try{e.update?e.update(t,JSON.parse(f),d.current):(e.unmount?.(t),t.innerHTML=``,e.mount(t,JSON.parse(f),d.current))}catch{}},[f]),o?(0,W.jsx)(`div`,{ref:i,style:z(r),children:(0,W.jsx)(`div`,{ref:s})}):(0,W.jsxs)(`div`,{ref:i,style:{...Ou,...z(r)},children:[`Plugin “`,e,`” is not installed`]})}function Au(e,t,n){let r={"data-wb":e};t.htmlId&&(r.id=t.htmlId),n&&n.id===e&&(r.id=t.htmlId||n.htmlId,r.tabIndex=-1);let i=V(t.classNames);i.length&&(r[`data-wb-class`]=i.join(` `));for(let e of Array.isArray(t.attributes)?t.attributes:[]){let t=String(e?.name??``).trim();B(t)&&(r[t===`tabindex`?`tabIndex`:t]=e.value??``)}return{attrs:r,classes:i}}function ju({View:e,markup:t,...n}){let r=e(n);if(!(0,l.isValidElement)(r)||typeof r.type!=`string`)return r;let i=[r.props.className,...t.classes].filter(Boolean).join(` `);return(0,l.cloneElement)(r,{...t.attrs,...i?{className:i}:{}})}var Mu=new Set([`FormInput`,`FormTextarea`,`FormSelect`]);function Nu(e,t,n,r){if(t.forNode===`__none`)return``;let i=t.forNode?n[t.forNode]:null;if(!t.forNode){let t=n[r]?.nodes??[];i=n[t[t.indexOf(e)+1]]??null}return!i||!Mu.has(i.type?.resolvedName)?``:i.props?.htmlId||ma(i.props?.name)||``}var Pu=`slot-`,Fu={...zo,...Yc,...jl,...Jl,...Cu,PluginBlock:ku};function Iu(e,t,n,r=new Set,i=void 0){let a=t[e];if(!a||a.hidden)return null;let o=a.type?.resolvedName,s=Ae(a.props??{},i?.elementDefaults?.[o]),c=i?.mapProps?i.mapProps(s,o):s;if(o===`ComponentInstance`){let o=a.props?.componentId,s=n?.[o];if(!s?.template||r.has(o))return null;let u=new Set(r).add(o),d=Object.fromEntries(Object.entries(a.linkedNodes??{}).filter(([e])=>e.startsWith(Pu)).map(([e,a])=>[e.slice(5),Iu(a,t,n,r,i)]));return(0,W.jsx)(l.Fragment,{children:Iu(s.template.rootId,s.template.nodes,n,u,{...Ct(c.values,i),slots:d})},e)}let u=Fu[o];if(!u)return null;let d=c.compSlot?.id,f=d&&i?.slots&&Object.hasOwn(i.slots,d)?i.slots[d]:void 0,p=f===void 0?(a.nodes??[]).map(e=>Iu(e,t,n,r,i)).filter(Boolean):[f].filter(Boolean),m=Object.entries(a.linkedNodes??{}),h=m.length?Object.fromEntries(m.map(([e,a])=>[e,Iu(a,t,n,r,i)])):void 0,g=(0,W.jsx)(typeof u==`function`?ju:u,{...typeof u==`function`?{View:u,markup:Au(e,c,i?.skipTarget)}:null,...c,...o===`CollectionList`?{templateId:a.linkedNodes?.card,renderTemplate:a.linkedNodes?.card?e=>Iu(a.linkedNodes.card,t,n,r,{...i,mapProps:i?.mapProps?(t,n)=>i.mapProps(e(t,n),n):e}):void 0}:null,...o===`LightboxGallery`&&a.linkedNodes?.item?{renderTemplate:e=>Iu(a.linkedNodes.item,t,n,r,{...i,mapProps:i?.mapProps?(t,n)=>i.mapProps(e(t,n),n):e})}:null,...o===`FormLabel`?{htmlFor:Nu(e,c,t,a.parent)}:null,linked:h,nodeRef:t=>{t&&(t.setAttribute(`data-wb`,e),ce(t,c),i?.skipTarget?.id===e&&(t.id=c.htmlId||i.skipTarget.htmlId,t.tabIndex=-1),se(t,i?.events===!1?[]:c.events))},children:p.length?p:void 0},e),_=c.when&&c.when!==`always`?(0,W.jsx)(es,{when:c.when,children:g},e):g;return Array.isArray(c.showWhen?.rules)&&c.showWhen.rules.length?(0,W.jsx)(er,{showWhen:c.showWhen,children:_},e):_}var Lu=e=>Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(` `),Ru=e=>`.webim-page[data-webim-mode="light"] { ${Object.entries(We(e.light)).map(([e,t])=>`${e}: ${t} !important;`).join(` `)} }
|
|
111
|
-
.webim-page[data-webim-mode="dark"] { ${Object.entries(
|
|
111
|
+
`)};function Ol(e,t){let n=/^#?([0-9a-f]{6})$/i.exec(String(e??``).trim());if(!n)return t;let r=parseInt(n[1],16);return[(r>>16&255)/255,(r>>8&255)/255,(r&255)/255]}function kl(e,t,n){let r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){let t=e.getShaderInfoLog(r);throw e.deleteShader(r),Error(t||`Shader failed to compile`)}return r}function Al({preset:e,code:t,colorA:n,colorB:r,colorC:i,speed:a,scale:o,height:s,interactive:c,style:u,nodeRef:d,inert:f}){let p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=(0,l.useRef)(null),[g,_]=(0,l.useState)(``);(0,l.useEffect)(()=>()=>{let e=h.current;h.current=null,e?.getExtension(`WEBGL_lose_context`)?.loseContext()},[]);let v=typeof t==`string`&&t.trim()?t:Dl[e]??Dl.gradient,y=String(n??``),b=String(r??``),x=String(i??``),S=bl(a,100),C=Math.max(.05,bl(o,100));return(0,l.useEffect)(()=>{let e=p.current,t=m.current;if(!e||!t)return;let n=h.current??=e.getContext(`webgl`,{antialias:!0,alpha:!0,premultipliedAlpha:!1});if(!n){_(`WebGL is not available in this browser`);return}let r=null;try{let e=kl(n,n.VERTEX_SHADER,Tl),t=kl(n,n.FRAGMENT_SHADER,El+v);if(r=n.createProgram(),n.attachShader(r,e),n.attachShader(r,t),n.linkProgram(r),!n.getProgramParameter(r,n.LINK_STATUS))throw Error(n.getProgramInfoLog(r)||`Link failed`);_(``)}catch(e){_(e?.message||`Shader failed to compile`);return}n.useProgram(r);let i=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,i),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),n.STATIC_DRAW);let a=n.getAttribLocation(r,`p`);n.enableVertexAttribArray(a),n.vertexAttribPointer(a,2,n.FLOAT,!1,0,0);let o=e=>n.getUniformLocation(r,e),s={res:o(`u_res`),time:o(`u_time`),mouse:o(`u_mouse`),a:o(`u_a`),b:o(`u_b`),c:o(`u_c`),scale:o(`u_scale`)},l={x:0,y:0},u=t=>{let n=e.getBoundingClientRect();!n.width||!n.height||(l.x=((t.clientX-n.left)/n.width-.5)*2,l.y=(.5-(t.clientY-n.top)/n.height)*2)};c!==!1&&t.addEventListener(`pointermove`,u);let d=()=>{let r=gl(),i=Math.max(1,Math.round(t.clientWidth*r)),a=Math.max(1,Math.round(t.clientHeight*r));(e.width!==i||e.height!==a)&&(e.width=i,e.height=a,n.viewport(0,0,i,a))},f=typeof ResizeObserver>`u`?null:new ResizeObserver(d);f?.observe(t),d();let g=hl(),w={a:Ol(y,[.35,.4,.95]),b:Ol(b,[.05,.06,.16]),c:Ol(x,[.95,.35,.6])},T={};return T.stop=_l(t,(t,r)=>{d(),n.uniform2f(s.res,e.width,e.height),n.uniform1f(s.time,(g?0:r)*S),n.uniform2f(s.mouse,l.x,l.y),n.uniform3fv(s.a,w.a),n.uniform3fv(s.b,w.b),n.uniform3fv(s.c,w.c),n.uniform1f(s.scale,C),n.drawArrays(n.TRIANGLES,0,3),g&&T.stop?.()}),()=>{T.stop?.(),f?.disconnect(),t.removeEventListener(`pointermove`,u),n.deleteProgram(r),n.deleteBuffer(i)}},[v,y,b,x,S,C,c]),(0,G.jsxs)(`div`,{ref:e=>{m.current=e,typeof d==`function`&&d(e)},style:{position:`relative`,minHeight:yl(s,320),overflow:`hidden`,...z(u)},children:[(0,G.jsx)(`canvas`,{ref:p,style:{display:`block`,width:`100%`,height:`100%`,position:`absolute`,inset:0}}),g&&f?(0,G.jsx)(`div`,{style:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:12,background:`rgba(15,23,42,.75)`,...Fe,color:`#fecaca`,fontSize:11,whiteSpace:`pre-wrap`,overflow:`auto`},children:g}):null]})}function jl(e,t){let n=new e.Scene,r=new e.BoxGeometry;r.deleteAttribute(`uv`);let i=new e.Mesh(r,new e.MeshBasicMaterial({side:e.BackSide,color:6710886}));i.scale.setScalar(12),n.add(i);let a=(t,i,a,o,s,c,l,u)=>{let d=new e.Mesh(r,new e.MeshBasicMaterial);d.material.color.setHex(t),d.material.color.multiplyScalar(i),d.position.set(a,o,s),d.scale.set(c,l,u),n.add(d)};a(16777215,4,0,6,0,10,.5,10),a(16777215,1.4,-6,1,2,.4,6,6),a(16777215,1,6,1,-2,.4,6,6);let o=new e.PMREMGenerator(t),s=o.fromScene(n,.04);return o.dispose(),r.dispose(),n.traverse(e=>e.material?.dispose?.()),s.texture}var Ml=new Map;function Nl(e){if(Ml.has(e))return Ml.get(e);let t=pl(`loaders/GLTFLoader.js`).then(t=>new Promise((n,r)=>{new t.GLTFLoader().load(e,e=>n(e.scene),void 0,r)})).catch(t=>{throw Ml.delete(e),t});return Ml.set(e,t),t}function Pl(e,t){let n=new e.Box3().setFromObject(t);if(n.isEmpty())return t;let r=n.getSize(new e.Vector3),i=n.getCenter(new e.Vector3),a=Math.max(r.x,r.y,r.z)||1,o=new e.Group;return t.position.sub(i),t.scale.multiplyScalar(1/a),t.position.multiplyScalar(1/a),o.add(t),o}var Fl={box:e=>new e.BoxGeometry(1,1,1,1,1,1),sphere:e=>new e.SphereGeometry(.62,48,32),torus:e=>new e.TorusGeometry(.5,.2,24,64),knot:e=>new e.TorusKnotGeometry(.44,.15,128,24),cone:e=>new e.ConeGeometry(.55,1.1,48),cylinder:e=>new e.CylinderGeometry(.45,.45,1.1,48),plane:e=>new e.PlaneGeometry(1.4,1.4),capsule:e=>new e.CapsuleGeometry(.35,.6,8,32)},Z=(e,t)=>Number.isFinite(Number(e))?Number(e):t;function Q({objects:e,background:t,cameraDistance:n,fov:r,autoRotate:i,spinSpeed:a,controls:o,ground:s,height:c,style:u,nodeRef:d,inert:f}){let p=(0,l.useRef)(null),[m,h]=(0,l.useState)(!1),g=Array.isArray(e)?e.filter(e=>e&&typeof e==`object`):[],_=JSON.stringify(g),v=i!==!1&&!hl(),y=o!==!1&&!f;return(0,l.useEffect)(()=>{let e=p.current;if(!e)return;let i=!0,o=null;return fl().then(c=>{if(!i||!e)return;let l=new c.WebGLRenderer({antialias:!0,alpha:!t});l.setPixelRatio(gl()),l.shadowMap.enabled=s!==!1,l.shadowMap.type=c.PCFSoftShadowMap,l.outputColorSpace=c.SRGBColorSpace,l.toneMapping=c.ACESFilmicToneMapping,l.domElement.style.display=`block`,l.domElement.style.width=`100%`,l.domElement.style.height=`100%`,e.appendChild(l.domElement);let u=new c.Scene;t&&(u.background=new c.Color(t)),u.environment=jl(c,l);let d=new c.PerspectiveCamera(Z(r,45),1,.1,400),f=vl(d,l.domElement,{distance:Z(n,5),enableZoom:y}),p=new c.DirectionalLight(16777215,2.2);p.position.set(4,7,5),p.castShadow=s!==!1,p.shadow.mapSize.set(1024,1024),p.shadow.camera.near=.5,p.shadow.camera.far=30,u.add(p,new c.AmbientLight(16777215,.35));let m=[],h=new c.Group,_=(e,t)=>{let n=Z(t.scale,1);e.position.set(Z(t.x,0),Z(t.y,0),Z(t.z,0)),e.rotation.set(xl(t.rx),xl(t.ry),xl(t.rz)),e.scale.setScalar(n>0?n:1),e.userData.spin=xl(t.spin)};for(let e of g){if(e.shape===`model`){if(!Sl(e.src))continue;let t=new c.Group;_(t,e),h.add(t),Nl(e.src).then(e=>{if(!i)return;let n=Pl(c,e.clone(!0));n.traverse(e=>{e.isMesh&&(e.castShadow=!0,e.receiveShadow=!0)}),t.add(n)},()=>{});continue}let t=(Fl[e.shape]??Fl.box)(c),n=new c.MeshStandardMaterial({color:/^#?[0-9a-f]{6}$/i.test(String(e.color??``))?e.color:`#6366f1`,metalness:Math.min(1,Math.max(0,bl(e.metalness,10))),roughness:Math.min(1,Math.max(0,bl(e.roughness,35))),transparent:bl(e.opacity,100)<1,opacity:Math.min(1,Math.max(0,bl(e.opacity,100))),flatShading:e.flat===!0,wireframe:e.wireframe===!0,side:e.shape===`plane`?c.DoubleSide:c.FrontSide}),r=new c.Mesh(t,n);_(r,e),r.castShadow=!0,r.receiveShadow=!0,h.add(r),m.push(t,n)}u.add(h);let b=null;if(s!==!1){let e=new c.ShadowMaterial({opacity:.22}),t=new c.PlaneGeometry(60,60);b=new c.Mesh(t,e),b.rotation.x=-Math.PI/2,b.position.y=Z(s===!0?0:s,-.85),b.receiveShadow=!0,u.add(b),m.push(t,e)}let x=()=>{let t=Math.max(1,e.clientWidth),n=Math.max(1,e.clientHeight);l.setSize(t,n,!1),d.aspect=t/n,d.updateProjectionMatrix()},S=typeof ResizeObserver>`u`?null:new ResizeObserver(x);S?.observe(e),x();let C=xl(Number.isFinite(Number(a))?a:20),w=_l(e,e=>{f.autoSpin(v?C:0,e),f.update();for(let t of h.children)t.userData.spin&&(t.rotation.y+=t.userData.spin*e);l.render(u,d)});o=()=>{w(),S?.disconnect(),f.dispose();for(let e of m)e.dispose?.();u.environment?.dispose?.(),l.dispose(),l.domElement.remove()}},()=>{i&&h(!0)}),()=>{i=!1,o?.()}},[_,t,n,r,v,a,y,s]),m&&f?(0,G.jsx)(Cl,{nodeRef:d,style:u,height:c,label:`3D Scene`,note:`The 3D engine could not be loaded. Check the connection and try again.`}):(0,G.jsx)(`div`,{ref:e=>{p.current=e,typeof d==`function`&&d(e)},style:{minHeight:yl(c,380),height:yl(c,380),overflow:`hidden`,touchAction:y?`pan-y`:void 0,...z(u)}})}function Il({code:e,height:t,background:n,style:r,nodeRef:i,inert:a}){let o=(0,l.useRef)(null),[s,c]=(0,l.useState)(``);return(0,l.useEffect)(()=>{let t=o.current;if(a||!t||typeof e!=`string`||!e.trim())return;let r=!0,i=null;return fl().then(a=>{if(!r||!t)return;let o=new a.WebGLRenderer({antialias:!0,alpha:!n});o.setPixelRatio(gl()),o.outputColorSpace=a.SRGBColorSpace,o.domElement.style.display=`block`,o.domElement.style.width=`100%`,o.domElement.style.height=`100%`,t.appendChild(o.domElement);let s=new a.Scene;n&&(s.background=new a.Color(n));let l=new a.PerspectiveCamera(45,1,.1,1e3);l.position.set(0,1.2,4);let u=null;try{u=Function(`ctx`,`"use strict";\n${e}`)({THREE:a,scene:s,camera:l,renderer:o,canvas:o.domElement,host:t})}catch(e){c(e?.message||String(e))}let d=()=>{let e=Math.max(1,t.clientWidth),n=Math.max(1,t.clientHeight);o.setSize(e,n,!1),l.aspect=e/n,l.updateProjectionMatrix()},f=typeof ResizeObserver>`u`?null:new ResizeObserver(d);f?.observe(t),d();let p=!1,m=_l(t,(e,t)=>{if(!p&&typeof u?.frame==`function`)try{u.frame(e,t)}catch(e){p=!0,c(e?.message||String(e))}o.render(s,l)});i=()=>{m(),f?.disconnect();try{u?.dispose?.()}catch{}o.dispose(),o.domElement.remove()}}),()=>{r=!1,i?.()}},[e,a,n]),a?(0,G.jsx)(Cl,{nodeRef:i,style:r,height:t,label:`three.js`,note:typeof e==`string`&&e.trim()?`Custom scene code runs in Preview and on the published page.`:`Open the code editor in the Settings panel to write your scene.`}):(0,G.jsx)(`div`,{ref:e=>{o.current=e,typeof i==`function`&&i(e)},style:{minHeight:yl(t,380),height:yl(t,380),overflow:`hidden`,position:`relative`,touchAction:`pan-y`,...z(r)},children:s?(0,G.jsx)(`div`,{style:{position:`absolute`,left:8,top:8,right:8,padding:`6px 8px`,borderRadius:6,background:`rgba(127,29,29,.85)`,...Fe,color:`#fee2e2`,fontSize:11},children:s}):null})}var Ll={ModelViewerBlock:wl,ShaderBlock:Al,SceneBlock:Q,ThreeCanvasBlock:Il},Rl=`2.44.0`,zl=`https://cdn.jsdelivr.net/npm`,Bl=`${zl}/@rive-app/canvas@${Rl}/+esm`,Vl=`${zl}/@rive-app/canvas@${Rl}/rive.wasm`,Hl=e=>import(e),Ul=null;function Wl(){return typeof window>`u`?new Promise(()=>{}):Ul||(Ul=Hl(Bl).then(e=>{let t=e?.default??e;return t?.RuntimeLoader?.setWasmUrl&&t.RuntimeLoader.setWasmUrl(Vl),t}).catch(e=>{throw Ul=null,e}),Ul)}var Gl=new Map,Kl={56:`number`,58:`trigger`,59:`boolean`},ql=new Set;function Jl(e,t){if(!e||!t)return;let n=(Array.isArray(t.artboards)?t.artboards:[]).map(e=>({name:String(e?.name??``),animations:(Array.isArray(e?.animations)?e.animations:[]).map(String),stateMachines:(Array.isArray(e?.stateMachines)?e.stateMachines:[]).map(e=>({name:String(e?.name??``),inputs:(Array.isArray(e?.inputs)?e.inputs:[]).map(e=>({name:String(e?.name??``),type:Kl[e?.type]??`unknown`}))}))}));Gl.set(e,{artboards:n}),ql.forEach(t=>t(e))}var Yl=(e,t)=>Number.isFinite(Number(e))&&Number(e)>0?Number(e):t,Xl=[`contain`,`cover`,`fill`,`fitWidth`,`fitHeight`,`scaleDown`,`none`,`layout`],Zl=[`center`,`topLeft`,`topCenter`,`topRight`,`centerLeft`,`centerRight`,`bottomLeft`,`bottomCenter`,`bottomRight`],Ql=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,$l=131;function eu(e,t,n,r){if(!e||!t||!n)return;let i=[];try{i=e.stateMachineInputs(t)??[]}catch{return}let a=i.find(e=>e?.name===n);a&&(a.type===58?r&&a.fire():a.type===59?a.value=!!r:a.type===56&&(a.value=+!!r))}function tu({src:e,poster:t,alt:n,height:r,bg:i,artboard:a,mode:o=`stateMachine`,stateMachine:s,animation:c,fit:u=`contain`,alignment:d=`center`,autoplay:f=!0,hoverInput:p,clickInput:m,style:h,nodeRef:g,inert:_}){let v=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(``),[S,C]=(0,l.useState)(!1),[w,T]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let t=y.current,n=v.current;if(C(!1),T(!1),!e||!t)return;let r=!0,i=null,l=null,p=null;return Wl().then(m=>{if(!r)return;let h=o!==`animation`,g=f!==!1&&!Ql();try{i=new m.Rive({src:e,canvas:t,artboard:a||void 0,stateMachines:h&&s?s:void 0,animations:!h&&c?c:void 0,autoplay:g,layout:new m.Layout({fit:Xl.includes(u)?u:`contain`,alignment:Zl.includes(d)?d:`center`}),shouldDisableRiveListeners:!!_,isTouchScrollEnabled:!0,onLoad:()=>{if(!r)return;i.resizeDrawingSurfaceToCanvas();let t=i.contents;if(Jl(e,t),h){let e=((t?.artboards??[]).find(e=>e.name===(a||i.activeArtboard))??t?.artboards?.[0])?.stateMachines?.[0]?.name??``;if(x.current=s||e,!s&&e)try{i.play(e),g||i.pause(e)}catch{}}C(!0)},onLoadError:()=>r&&T(!0)})}catch{T(!0);return}b.current=i,n&&(n.rive=i),i.on(m.EventType.RiveEvent,e=>{let t=e?.data;_||t?.type!==$l||!t?.url||(t.target===`_self`?window.location.assign(t.url):window.open(t.url,t.target||`_blank`,`noopener`))}),n&&typeof ResizeObserver<`u`&&(l=new ResizeObserver(()=>i?.resizeDrawingSurfaceToCanvas()),l.observe(n)),n&&typeof IntersectionObserver<`u`&&(p=new IntersectionObserver(([e])=>{i&&(e?.isIntersecting?i.startRendering?.():i.stopRendering?.())}),p.observe(n))},()=>r&&T(!0)),()=>{r=!1,l?.disconnect(),p?.disconnect(),n&&n.rive===i&&delete n.rive,b.current=null,x.current=``;try{i?.cleanup()}catch{}}},[e,a,o,s,c,u,d,f,_]);let E=!_&&S,D=(e,t)=>E&&eu(b.current,x.current,e,t),O={position:`relative`,display:`block`,width:`100%`,height:Yl(r,360),backgroundColor:i||`transparent`,overflow:`hidden`,...z(h)};return e?(0,G.jsxs)(`div`,{ref:e=>{v.current=e,typeof g==`function`&&g(e)},style:O,onMouseEnter:p?()=>D(p,!0):void 0,onMouseLeave:p?()=>D(p,!1):void 0,onClick:m?()=>D(m,!0):void 0,children:[(0,G.jsx)(`canvas`,{ref:y,...q(`canvas`),role:`img`,"aria-label":n||`Animation`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,display:`block`}}),t&&(!S||w)?(0,G.jsx)(`img`,{...q(`poster`),src:t,alt:n||``,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`contain`,pointerEvents:`none`}}):null]}):_?(0,G.jsxs)(`div`,{ref:g,style:{...O,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:6,border:`1px dashed rgba(148,163,184,.55)`,borderRadius:10,background:`rgba(148,163,184,.08)`,...Fe,color:`rgba(100,116,139,.95)`,fontSize:13,textAlign:`center`,padding:16},children:[(0,G.jsx)(`strong`,{style:{fontSize:14},children:`Rive`}),(0,G.jsx)(`span`,{children:`Pick a .riv file in the Settings panel.`})]}):null}var nu={RiveBlock:tu},ru=/\.(mp4|webm|ogv|ogg|mov|m4v)(\?|#|$)/i,iu=/\.(jpe?g|png|gif|webp|avif|svg|bmp)(\?|#|$)/i,au=/\.(pdf|docx?|xlsx?|pptx?|odt|ods|odp|txt|csv|zip|rar|7z|mp3|wav|m4a)(\?|#|$)/i,ou=/vimeo\.com\/(?:video\/)?(\d+)/i,su=`data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20240%22%3E%3Crect%20width%3D%22320%22%20height%3D%22240%22%20fill%3D%22%231e293b%22%2F%3E%3Ccircle%20cx%3D%22160%22%20cy%3D%22120%22%20r%3D%2234%22%20fill%3D%22rgba(255%2C255%2C255%2C0.16)%22%2F%3E%3Cpath%20d%3D%22M150%20102%20L178%20120%20L150%20138%20Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E`;function cu(e,t=``){let n=String(e??``);return ti(n)&&/youtu/i.test(n)?`youtube`:ou.test(n)?`vimeo`:String(t).startsWith(`video/`)||ru.test(n)?`video`:String(t).startsWith(`image/`)||iu.test(n)?`image`:t||au.test(n)?`document`:`unknown`}var lu=new Map;function uu(e){return lu.has(e)||lu.set(e,new Promise(t=>{let n=new Image;n.onload=()=>t(`image`),n.onerror=()=>{fetch(e,{method:`HEAD`}).then(e=>t(String(e.headers.get(`content-type`)??``).startsWith(`video/`)?`video`:`drop`)).catch(()=>t(`drop`))},n.src=e})),lu.get(e)}function du(e,t=0){let[n,r]=(0,l.useState)({}),i=e.filter(e=>e.kind===`unknown`&&!(e.src in n)).map(e=>e.src).join(`|`);return(0,l.useEffect)(()=>{if(!i||typeof window>`u`)return;let e=!0;return i.split(`|`).forEach(t=>{uu(t).then(n=>e&&r(e=>({...e,[t]:n})))}),()=>{e=!1}},[i]),e.map(e=>{if(e.kind!==`unknown`)return e;let t=n[e.src]??`image`;return t===`drop`?null:{...e,kind:t,thumb:t===`video`?pu(e.src,`video`,e.poster):e.thumb}}).filter(Boolean).slice(0,Math.max(0,Number(t)||0)||void 0).map((e,t)=>({...e,index:t+1}))}var fu=e=>e===`video`||e===`youtube`||e===`vimeo`;function pu(e,t,n){return n||(t===`image`||t===`unknown`?e:t===`youtube`?`https://i.ytimg.com/vi/${ti(e)}/hqdefault.jpg`:su)}var mu=e=>e==null?``:rr(e),hu=e=>(Array.isArray(e)?e:[e]).map(e=>e&&typeof e==`object`?{url:e.url??e.src??``,mime:e.mime??``}:{url:e,mime:``}).filter(e=>typeof e.url==`string`&&e.url.trim()),gu=e=>{try{return decodeURIComponent(String(e).split(/[?#]/)[0].split(`/`).pop()??``)}catch{return``}};function _u({items:e,entries:t,mediaField:n,nameField:r,posterField:i,limit:a}){let o=Math.max(0,Number(a)||0),s=[],c=e=>o&&s.length>=o?!1:(s.push({...e,index:s.length+1}),!0);if(Array.isArray(t)){for(let e of t){if(!e||typeof e!=`object`)continue;let t=e.data??e,a=mu(r?tr(t,r):t.name),o=i?hu(tr(t,i))[0]?.url??``:``;for(let{url:r,mime:i}of hu(tr(t,n))){let t=cu(r,i);if(t!==`document`&&!c({src:r,kind:t,poster:o,thumb:pu(r,t,o),name:a,alt:a,entry:e}))return s}}return s}for(let t of Array.isArray(e)?e:[]){if(!t||typeof t!=`object`||!t.src)continue;let e=cu(t.src,t.mime),n=t.name||``;if(e!==`document`&&!c({src:t.src,kind:e,poster:t.poster,thumb:pu(t.src,e,t.poster),name:n,alt:t.alt||n,entry:null}))break}return s}function vu(e){let t=e.entry&&typeof e.entry==`object`?e.entry:{id:`item-${e.index}`};return{...t,data:{...t.data??{},src:e.src,thumb:e.thumb,name:e.name||gu(e.src),kind:fu(e.kind)?`video`:`image`,index:e.index}}}function yu({item:e}){return(0,G.jsxs)(`span`,{...q(`tile-media`),style:{position:`relative`,display:`block`,borderRadius:`inherit`,overflow:`hidden`},children:[(0,G.jsx)(`img`,{...q(`thumb`),src:e.thumb,alt:e.alt||``,loading:`lazy`,style:{display:`block`,width:`100%`,aspectRatio:`1 / 1`,objectFit:`cover`,borderRadius:`inherit`}}),fu(e.kind)&&(0,G.jsx)(bu,{})]})}function bu(){return(0,G.jsx)(`span`,{...q(`play`),"aria-hidden":`true`,style:{position:`absolute`,left:`50%`,top:`50%`,width:44,height:44,marginLeft:-22,marginTop:-22,borderRadius:`50%`,background:`rgba(0, 0, 0, 0.55)`,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`},children:(0,G.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`#fff`,children:(0,G.jsx)(`path`,{d:`M8 5v14l11-7z`})})})}function xu({item:e,autoplay:t}){let n={maxWidth:`92vw`,maxHeight:`80vh`,borderRadius:8,boxShadow:`0 12px 48px rgba(0,0,0,0.5)`,display:`block`};if(e.kind===`youtube`||e.kind===`vimeo`){let r=e.kind===`youtube`?`https://www.youtube-nocookie.com/embed/${ti(e.src)}?rel=0${t?`&autoplay=1`:``}`:`https://player.vimeo.com/video/${e.src.match(ou)?.[1]}${t?`?autoplay=1`:``}`;return(0,G.jsx)(`iframe`,{...q(`media`),src:r,title:e.name||`Video`,allow:`autoplay; encrypted-media; fullscreen; picture-in-picture`,allowFullScreen:!0,style:{...n,width:`min(92vw, calc(80vh * 16 / 9))`,aspectRatio:`16 / 9`,border:0,background:`#000`}})}return e.kind===`video`?(0,G.jsx)(`video`,{...q(`media`),src:e.src,poster:e.thumb===su?void 0:e.thumb,controls:!0,autoPlay:t,playsInline:!0,style:{...n,background:`#000`}}):(0,G.jsx)(`img`,{...q(`media`),src:e.src,alt:e.alt||``,style:n})}var Su={position:`absolute`,top:`50%`,transform:`translateY(-50%)`,width:48,height:48,borderRadius:`50%`,border:0,background:`rgba(255, 255, 255, 0.12)`,color:`inherit`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`};function Cu({list:e,index:t,onIndex:n,onClose:r,options:i,locale:a}){let o=at(a),{loop:s=!0,caption:c=!0,counter:u=!0,thumbs:d=!1,backdrop:f=``,color:p=``,autoplay:m=!0}=i,h=e[t],g=(0,l.useRef)(null),_=e.length,v=s||t>0,y=s||t<_-1,b=e=>n(t=>{let n=t+e;return s?(n+_)%_:Math.min(Math.max(n,0),_-1)});if((0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&r(),e.key===`ArrowRight`&&b(1),e.key===`ArrowLeft`&&b(-1)},t=document.body,n=t.style.overflow;return window.addEventListener(`keydown`,e),t.style.overflow=`hidden`,g.current?.focus(),()=>{window.removeEventListener(`keydown`,e),t.style.overflow=n}},[_,s]),!h)return null;let x=e=>e.stopPropagation(),S=h.name||gu(h.src);return(0,G.jsxs)(`div`,{...q(`backdrop`),role:`dialog`,"aria-modal":`true`,"aria-label":o(`gallery`),onClick:r,style:{position:`fixed`,inset:0,zIndex:2147483e3,background:f||`rgba(0, 0, 0, 0.88)`,color:p||`#fff`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24,gap:12},children:[(0,G.jsx)(`div`,{...q(`stage`),onClick:x,style:{display:`flex`,alignItems:`center`,justifyContent:`center`},children:(0,G.jsx)(xu,{item:h,autoplay:m},t)}),(c&&S||u&&_>1)&&(0,G.jsxs)(`div`,{onClick:x,style:{display:`flex`,gap:12,alignItems:`baseline`,fontSize:14},children:[c&&S&&(0,G.jsx)(`span`,{...q(`caption`),style:{opacity:.9},children:S}),u&&_>1&&(0,G.jsx)(`span`,{...q(`counter`),style:{opacity:.6,fontVariantNumeric:`tabular-nums`},children:o(`itemOf`,{n:t+1,total:_})})]}),d&&_>1&&(0,G.jsx)(`div`,{...q(`thumbs`),onClick:x,style:{display:`flex`,gap:6,maxWidth:`92vw`,overflowX:`auto`,padding:4},children:e.map((e,r)=>(0,G.jsx)(`button`,{type:`button`,...q(`thumb-button`,r===t&&`thumb-button-active`),"aria-label":o(`itemOf`,{n:r+1,total:_}),"aria-current":r===t||void 0,onClick:()=>n(r),style:{flexShrink:0,padding:0,border:`2px solid ${r===t?`currentColor`:`transparent`}`,borderRadius:6,background:`none`,cursor:`pointer`,opacity:r===t?1:.6},children:(0,G.jsx)(`img`,{src:e.thumb,alt:``,style:{display:`block`,width:56,height:42,objectFit:`cover`,borderRadius:4}})},r))}),(0,G.jsx)(`button`,{ref:g,type:`button`,...q(`close-button`),"aria-label":o(`close`),onClick:r,style:{position:`absolute`,top:16,right:16,width:44,height:44,borderRadius:`50%`,border:0,background:`rgba(255, 255, 255, 0.12)`,color:`inherit`,cursor:`pointer`,fontSize:24,lineHeight:1},children:`×`}),_>1&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,...q(`arrow`,`arrow-prev`),"aria-label":o(`prevItem`),disabled:!v,onClick:e=>{x(e),b(-1)},style:{...Su,left:16,opacity:v?1:.3},children:(0,G.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,G.jsx)(`path`,{d:`M15 18l-6-6 6-6`})})}),(0,G.jsx)(`button`,{type:`button`,...q(`arrow`,`arrow-next`),"aria-label":o(`nextItem`),disabled:!y,onClick:e=>{x(e),b(1)},style:{...Su,right:16,opacity:y?1:.3},children:(0,G.jsx)(`svg`,{width:`22`,height:`22`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,G.jsx)(`path`,{d:`M9 18l6-6-6-6`})})})]})]})}function wu(e,t,n){let[r,i]=(0,l.useState)(null);return{open:i,overlay:r!==null&&e[r]&&typeof document<`u`?(0,Ct.createPortal)((0,G.jsx)(Cu,{list:e,index:r,onIndex:i,onClose:()=>i(null),options:t,locale:n}),document.body):null}}function Tu(e,t,n){return{role:`button`,tabIndex:0,"aria-label":at(n)(`openItem`,{name:t}),onClick:t=>{t.target?.closest?.(`a[href]`)||e()},onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),e())}}}function Eu(e){let{tenant:t,apiUrl:n,revision:r,locale:i}=(0,l.useContext)(K),a=(0,l.useContext)(Hn)?.[e],[o,s]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!e||a)return;let r=!0,o=new URLSearchParams({all:`1`,...i?{locale:i}:{}});return fetch(`${n}/dynamic/${encodeURIComponent(e)}?${o}`,{headers:t?{"x-tenant":t}:{}}).then(e=>e.json()).then(e=>{let t=Array.isArray(e?.payload)?e.payload:Array.isArray(e?.payload?.data)?e.payload.data:[];r&&s(t.filter(e=>e&&typeof e==`object`))}).catch(()=>r&&s([])),()=>{r=!1}},[r,e,t,n,i,a]),e?a??o:null}var Du=(e,t,n)=>t===`@card`?n?.entry?[n.entry]:[]:t?e.filter(e=>e?.id===t||e?.data?.slug===t||e?.slug===t):e,Ou=(e,t)=>({display:`grid`,gridTemplateColumns:`repeat(${Math.min(Math.max(Number(e)||4,1),8)}, minmax(0, 1fr))`,gap:t===``||t==null||!Number.isFinite(Number(t))?12:Math.max(0,Number(t))}),ku=e=>({loop:e.loop!==!1,caption:e.caption!==!1,counter:e.counter!==!1,thumbs:!!e.thumbs,autoplay:e.autoplay!==!1,backdrop:e.backdrop||``,color:e.color||``});function Au(e){let{items:t=[],source:n=``,entry:r=``,mediaField:i=``,nameField:a=``,posterField:o=``,limit:s=0,emptyText:c=``,columns:u=4,gap:d=``,templateId:f,renderTemplate:p,style:m,nodeRef:h,inert:g}=e,{locale:_}=(0,l.useContext)(K),v=(0,l.useContext)(Kn),y=(0,l.useContext)(qn),b=Eu(n),x=du(_u({items:t,entries:n?Du(b??[],r,y):null,mediaField:i,nameField:a,posterField:o}),s),{open:S,overlay:C}=wu(x,ku(e),_),w=p??(f&&v?.render?e=>v.render(f,e):null),T=!!n&&b===null;return(0,G.jsxs)(`div`,{ref:h,...q(`grid`),style:{width:`100%`,...Ou(u,d),...z(m)},children:[x.map(t=>{let n=vu(t);return(0,G.jsx)(`div`,{...q(`item`,fu(t.kind)&&`item-video`),...g?null:Tu(()=>S(t.index-1),n.data.name,_),style:{minWidth:0,position:`relative`,cursor:g?void 0:`zoom-in`},children:w?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(qn.Provider,{value:{...y??{},entry:n},children:w(e=>ur(e,n,_))}),e.playMark!==!1&&fu(t.kind)&&(0,G.jsx)(bu,{})]}):(0,G.jsx)(yu,{item:t})},`${t.index}-${t.src}`)}),!x.length&&!T&&(n?c:null)&&(0,G.jsx)(`div`,{...q(`empty`),style:{gridColumn:`1 / -1`,padding:`24px 12px`,fontSize:13,opacity:.55,textAlign:`center`},children:c}),C]})}var ju={LightboxGallery:Au},Mu=new Map;function Nu(e){if(Mu.has(e))return Mu.get(e);let t=URL.createObjectURL(new Blob([e],{type:`text/javascript`})),n=import(t).finally(()=>URL.revokeObjectURL(t));return Mu.set(e,n),n}function Pu(e){let t=e&&typeof e==`object`?e.builder_plugins:null,n=t&&typeof t==`object`?t.plugins:null;return n&&typeof n==`object`?n:{}}async function Fu(e,t){let n=await Nu(e);return(Array.isArray(n?.default?.blocks)?n.default.blocks:[]).find(e=>e?.id===t&&typeof e.mount==`function`)??null}var Iu={padding:`10px 12px`,border:`1px dashed rgba(148, 163, 184, 0.5)`,borderRadius:8,fontSize:12,opacity:.6};function Lu({pluginId:e,blockId:t,props:n,style:r,nodeRef:i}){let a=(0,l.useContext)(K),o=Pu(a?.settings)[e],s=(0,l.useRef)(null),c=(0,l.useRef)(null),u={tenant:a?.tenant??``,apiUrl:a?.apiUrl??`/api`,locale:a?.locale??``,settings:a?.settings??null},d=(0,l.useRef)(u);d.current=u;let f=JSON.stringify(n??{});return(0,l.useEffect)(()=>{let e=s.current;if(!o?.code||!e)return;let n=!0;return Fu(o.code,t).then(e=>{if(!(!n||!e||!s.current)){c.current=e;try{e.mount(s.current,JSON.parse(f),d.current)}catch{c.current=null}}}).catch(()=>{}),()=>{n=!1;let t=c.current;c.current=null;try{t?.unmount?.(e)}catch{}e&&(e.innerHTML=``)}},[o?.code,t]),(0,l.useEffect)(()=>{let e=c.current,t=s.current;if(!(!e||!t))try{e.update?e.update(t,JSON.parse(f),d.current):(e.unmount?.(t),t.innerHTML=``,e.mount(t,JSON.parse(f),d.current))}catch{}},[f]),o?(0,G.jsx)(`div`,{ref:i,style:z(r),children:(0,G.jsx)(`div`,{ref:s})}):(0,G.jsxs)(`div`,{ref:i,style:{...Iu,...z(r)},children:[`Plugin “`,e,`” is not installed`]})}function Ru(e,t,n){let r={"data-wb":e};t.htmlId&&(r.id=t.htmlId),n&&n.id===e&&(r.id=t.htmlId||n.htmlId,r.tabIndex=-1);let i=H(t.classNames);i.length&&(r[`data-wb-class`]=i.join(` `));for(let e of Array.isArray(t.attributes)?t.attributes:[]){let t=String(e?.name??``).trim();V(t)&&(r[t===`tabindex`?`tabIndex`:t]=e.value??``)}return{attrs:r,classes:i}}function zu({View:e,markup:t,...n}){let r=e(n);if(!(0,l.isValidElement)(r)||typeof r.type!=`string`)return r;let i=[r.props.className,...t.classes].filter(Boolean).join(` `);return(0,l.cloneElement)(r,{...t.attrs,...i?{className:i}:{}})}var Bu=new Set([`FormInput`,`FormTextarea`,`FormSelect`]);function Vu(e,t,n,r){if(t.forNode===`__none`)return``;let i=t.forNode?n[t.forNode]:null;if(!t.forNode){let t=n[r]?.nodes??[];i=n[t[t.indexOf(e)+1]]??null}return!i||!Bu.has(i.type?.resolvedName)?``:i.props?.htmlId||ma(i.props?.name)||``}var Hu=`slot-`,Uu={...Ko,...rl,...Ll,...nu,...ju,PluginBlock:Lu};function Wu(e,t,n,r=new Set,i=void 0){let a=t[e];if(!a||a.hidden)return null;let o=a.type?.resolvedName,s=Ae(a.props??{},i?.elementDefaults?.[o]),c=i?.mapProps?i.mapProps(s,o):s;if(o===`ComponentInstance`){let o=a.props?.componentId,s=n?.[o];if(!s?.template||r.has(o))return null;let u=new Set(r).add(o),d=Object.fromEntries(Object.entries(a.linkedNodes??{}).filter(([e])=>e.startsWith(Hu)).map(([e,a])=>[e.slice(5),Wu(a,t,n,r,i)]));return(0,G.jsx)(l.Fragment,{children:Wu(s.template.rootId,s.template.nodes,n,u,{...St(c.values,i),slots:d})},e)}let u=Uu[o];if(!u)return null;let d=c.compSlot?.id,f=d&&i?.slots&&Object.hasOwn(i.slots,d)?i.slots[d]:void 0,p=f===void 0?(a.nodes??[]).map(e=>Wu(e,t,n,r,i)).filter(Boolean):[f].filter(Boolean),m=Object.entries(a.linkedNodes??{}),h=m.length?Object.fromEntries(m.map(([e,a])=>[e,Wu(a,t,n,r,i)])):void 0,g=(0,G.jsx)(typeof u==`function`?zu:u,{...typeof u==`function`?{View:u,markup:Ru(e,c,i?.skipTarget)}:null,...c,...o===`CollectionList`?{templateId:a.linkedNodes?.card,renderTemplate:a.linkedNodes?.card?e=>Wu(a.linkedNodes.card,t,n,r,{...i,mapProps:i?.mapProps?(t,n)=>i.mapProps(e(t,n),n):e}):void 0}:null,...o===`LightboxGallery`&&a.linkedNodes?.item?{renderTemplate:e=>Wu(a.linkedNodes.item,t,n,r,{...i,mapProps:i?.mapProps?(t,n)=>i.mapProps(e(t,n),n):e})}:null,...o===`TableBlock`&&c.repeat?{renderCell:(e,o)=>a.linkedNodes?.[e]?Wu(a.linkedNodes[e],t,n,r,{...i,mapProps:i?.mapProps?(e,t)=>i.mapProps(o(e,t),t):o}):null}:null,...o===`FormLabel`?{htmlFor:Vu(e,c,t,a.parent)}:null,linked:h,nodeRef:t=>{t&&(t.setAttribute(`data-wb`,e),se(t,c),i?.skipTarget?.id===e&&(t.id=c.htmlId||i.skipTarget.htmlId,t.tabIndex=-1),oe(t,i?.events===!1?[]:c.events))},children:p.length?p:void 0},e),_=c.when&&c.when!==`always`?(0,G.jsx)(ss,{when:c.when,children:g},e):g;return Array.isArray(c.showWhen?.rules)&&c.showWhen.rules.length?(0,G.jsx)($n,{showWhen:c.showWhen,children:_},e):_}var Gu=e=>Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(` `),Ku=e=>`.webim-page[data-webim-mode="light"] { ${Object.entries(Ue(e.light)).map(([e,t])=>`${e}: ${t} !important;`).join(` `)} }
|
|
112
|
+
.webim-page[data-webim-mode="dark"] { ${Object.entries(Ue(e.dark)).map(([e,t])=>`${e}: ${t} !important;`).join(` `)} }`;function qu({blocks:e,theme:t,components:n,mode:r=`auto`,style:i,custom:a,animations:o,tenant:s,apiUrl:c,datasets:u,locale:d,direction:f,settings:p,siteUser:m,param:g}){let _=a?.js?.trim(),y=p&&p[`site.code`]&&typeof p[`site.code`]==`object`?p[`site.code`]:null,b=typeof y?.js==`string`?y.js.trim():``,x=typeof y?.css==`string`?y.css.trim():``;if((0,l.useEffect)(()=>{if(!b)return;let e=document.createElement(`script`);return e.text=b,document.body.appendChild(e),()=>e.remove()},[b]),(0,l.useEffect)(()=>{if(!_)return;let e=document.createElement(`script`);return e.text=_,document.body.appendChild(e),()=>e.remove()},[_]),!e?.ROOT)return null;let S={lang:d||void 0,dir:_t(f,d)},C=`.webim-page, .webim-page *, .webim-page *::before, .webim-page *::after { box-sizing: border-box; }
|
|
112
113
|
`+Ne+`
|
|
113
|
-
`+
|
|
114
|
-
@media (prefers-color-scheme: dark) { .webim-page { ${
|
|
114
|
+
`+st,w={minHeight:`100%`,display:`flex`,flexDirection:`column`},T=mt(e,n),E=Oe(p),D=Wu(`ROOT`,e,n,void 0,{skipTarget:T||void 0,elementDefaults:E}),O=T?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`style`,{children:ct}),(0,G.jsx)(`a`,{className:`webim-skip`,href:`#${T.htmlId}`,children:at(d||p?.locales?.default)(`skip`)})]}):null,k=(0,l.useMemo)(()=>({render:(t,r)=>Wu(t,e,n,void 0,{mapProps:r,elementDefaults:E})}),[e,n,E]),A=Se(e,n,E),j=xe(e,n,E),M=a?.css?.trim(),N=F(o),P=He(t),I=[P.font,P.headingFont].filter(e=>typeof e==`string`&&e.trim()&&e!==`inherit`&&!ze[e]),L=[...new Set([...v(e,n),...I])].map(e=>(0,G.jsx)(`link`,{rel:`stylesheet`,precedence:`default`,href:h(e)},e)),R=Ku(P),z=Je(t);return r===`auto`?(0,G.jsx)(K.Provider,{value:{tenant:s||``,apiUrl:c||`/api`,locale:d||``,settings:p??null,param:g||``},children:(0,G.jsx)(os,{initialUser:m,children:(0,G.jsx)(Hn.Provider,{value:u??null,children:(0,G.jsx)(Kn.Provider,{value:k,children:(0,G.jsxs)(`div`,{...S,className:`webim-page`,style:{...w,...We(t),...i},children:[O,(0,G.jsx)(`style`,{children:`.webim-page { ${Gu(Ue(P.light))} }
|
|
115
|
+
@media (prefers-color-scheme: dark) { .webim-page { ${Gu(Ue(P.dark))} } }`}),(0,G.jsx)(`style`,{children:R}),L,(0,G.jsx)(`style`,{children:C}),z&&(0,G.jsx)(`style`,{children:z}),A&&(0,G.jsx)(`style`,{children:A}),j&&(0,G.jsx)(`style`,{children:j}),N&&(0,G.jsx)(`style`,{children:N}),x&&(0,G.jsx)(`style`,{children:x}),M&&(0,G.jsx)(`style`,{children:M}),D]})})})})}):(0,G.jsx)(K.Provider,{value:{tenant:s||``,apiUrl:c||`/api`,locale:d||``,settings:p??null,param:g||``},children:(0,G.jsx)(os,{initialUser:m,children:(0,G.jsx)(Hn.Provider,{value:u??null,children:(0,G.jsx)(Kn.Provider,{value:k,children:(0,G.jsxs)(`div`,{...S,className:`webim-page`,style:{...w,...Ze(t,r),...i},children:[O,L,(0,G.jsx)(`style`,{children:R}),(0,G.jsx)(`style`,{children:C}),z&&(0,G.jsx)(`style`,{children:z}),A&&(0,G.jsx)(`style`,{children:A}),j&&(0,G.jsx)(`style`,{children:j}),N&&(0,G.jsx)(`style`,{children:N}),x&&(0,G.jsx)(`style`,{children:x}),M&&(0,G.jsx)(`style`,{children:M}),D]})})})})})}function Ju({bundle:e,mode:t=`auto`,style:n}){return e?.blocks?.ROOT?(0,G.jsx)(qu,{blocks:e.blocks,theme:e.theme,components:e.components,custom:e.custom,animations:e.animations,tenant:e.tenant,apiUrl:e.apiUrl,datasets:e.datasets,locale:e.locale,direction:e.direction,settings:e.settings,param:e.param,mode:$e(t,e.scheme),style:n}):null}function Yu({apiUrl:e,tenant:t,slug:n,locale:r,preview:i,token:a,mode:o=`auto`,style:s,fallback:c=null,errorFallback:u=null,onLoad:d,onError:f}){let[p,m]=(0,l.useState)({status:`loading`}),h=(0,l.useRef)({onLoad:d,onError:f});return h.current={onLoad:d,onError:f},(0,l.useEffect)(()=>{let o=!0;return m({status:`loading`}),nt({apiUrl:e,tenant:t,slug:n,locale:r,preview:i,token:a}).then(e=>{o&&(m({status:`ready`,bundle:e}),h.current.onLoad?.(e))}).catch(e=>{o&&(m({status:`error`,error:e}),h.current.onError?.(e))}),()=>{o=!1}},[e,t,n,r,i,a]),p.status===`loading`?c:p.status===`error`?typeof u==`function`?u(p.error):u:(0,G.jsx)(Ju,{bundle:p.bundle,mode:o,style:s})}function Xu(e,t={}){let n=(0,u.createRoot)(e);return n.render((0,G.jsx)(Yu,{apiUrl:t.apiUrl||t.api,tenant:t.tenant,slug:t.slug,locale:t.locale||void 0,token:t.token||void 0,mode:t.mode||`auto`,onError:e=>console.error(`[webim-embed]`,t.slug,e)})),n}function Zu(e=document){for(let t of e.querySelectorAll(`[data-webim-page]:not([data-webim-mounted])`))t.setAttribute(`data-webim-mounted`,``),Xu(t,t.dataset)}var Qu=document.currentScript,$u=()=>{if(Zu(),Qu?.dataset.slug){let e=document.createElement(`div`);e.setAttribute(`data-webim-mounted`,``),Qu.parentElement&&Qu.parentElement!==document.head?Qu.insertAdjacentElement(`beforebegin`,e):document.body.appendChild(e),Xu(e,Qu.dataset)}};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,$u,{once:!0}):$u(),window.WebimEmbed={mount:Xu,scan:Zu}})();
|