@constructor-io/constructorio-ui-autocomplete 1.23.19 → 1.23.21

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.
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.id="cio-autocomplete-styles",o.appendChild(document.createTextNode(".cio-autocomplete{position:relative;height:2rem;padding:20px;font-family:Arial,Helvetica,sans-serif}.cio-autocomplete .cio-form{position:relative;height:100%;width:24rem}.cio-autocomplete .cio-input{width:100%;height:100%;border:1px solid gray;padding:0 10px;border-radius:3px;font-size:1rem}.cio-autocomplete .cio-submit-btn,.cio-autocomplete .cio-clear-btn{position:absolute;top:1px;bottom:-1px;right:-21px;cursor:pointer}.cio-autocomplete button:disabled{cursor:not-allowed}.cio-autocomplete .cio-submit-btn{right:-21px}.cio-autocomplete .cio-clear-btn{right:10px}.cio-autocomplete .cio-icon{display:flex;justify-content:center}.cio-autocomplete .cio-results{position:absolute;background-color:#fff;gap:20px;padding-left:0;list-style:none;display:flex;flex-direction:row;z-index:1000;margin-top:5px}.cio-autocomplete .cio-sectionName,.cio-autocomplete .cio-section-name{margin:15px 0;font-size:1rem}.cio-autocomplete .cio-section-items{padding:0}.cio-autocomplete .cio-item.cio-item-SearchSuggestions,.cio-autocomplete .cio-section-search-suggestions .cio-item{flex-direction:row;min-width:160px;justify-content:space-between;align-items:center}.cio-autocomplete .cio-item{flex:1;display:flex;flex-direction:column;cursor:pointer;list-style:none;padding:5px;border-bottom:3px solid transparent}.cio-autocomplete .cio-item a{color:inherit;display:inline-flex;text-decoration:inherit;flex-direction:column}.cio-autocomplete .cio-item .suggestion-link{display:flex;flex-direction:row;align-items:center;width:100%;height:100%}.cio-autocomplete .cio-item[aria-selected=true]{background-color:#e6e6e6;border-radius:4px}.cio-autocomplete .products,.cio-autocomplete .cio-section-products{padding:0 5px}.cio-autocomplete .products .cio-item,.cio-autocomplete .cio-section-products .cio-item{display:inline-flex;align-items:center;width:25%;min-width:130px;height:140px;padding:5px 0}.cio-autocomplete .cio-item .cio-product-text{margin:0;overflow:hidden}.cio-autocomplete .cio-item .cio-product-image{width:100%;max-width:100px;max-height:100px;align-self:center}.cio-autocomplete .cio-term-in-group{padding-left:10px}.cio-autocomplete .cio-suggestion-image{height:32px;width:32px;margin-right:8px;object-fit:contain}.cio-autocomplete .cio-suggestion-text{flex-grow:1}.cio-autocomplete .cio-suggestion-count{font-size:.8rem;margin-left:8px}.cio-autocomplete .cio-section-footer{width:100%;display:flex;justify-content:center}.cio-autocomplete .cio-section-footer .cio-show-all-results-button{background:none;font:inherit;color:inherit;cursor:pointer;border:1px black solid;border-radius:5px;padding:5px;flex-basis:calc(100%/3);margin:15px;background-color:#fff;text-transform:capitalize}.cio-autocomplete .cio-section-footer .cio-show-all-results-button:hover{background-color:#e6e6e6}.cio-autocomplete .cio-close{position:absolute;top:20px;right:20px;cursor:pointer;width:15px;height:15px}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc={exports:{}},Z={};/**
2
+ var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc={exports:{}},Z={};/**
3
3
  * @license React
4
4
  * react.production.min.js
5
5
  *
@@ -7,7 +7,7 @@ var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Kr=Symbol.for("react.element"),Mp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),zp=Symbol.for("react.strict_mode"),Fp=Symbol.for("react.profiler"),Up=Symbol.for("react.provider"),Bp=Symbol.for("react.context"),jp=Symbol.for("react.forward_ref"),bp=Symbol.for("react.suspense"),Hp=Symbol.for("react.memo"),Vp=Symbol.for("react.lazy"),Gl=Symbol.iterator;function Kp(e){return e===null||typeof e!="object"?null:(e=Gl&&e[Gl]||e["@@iterator"],typeof e=="function"?e:null)}var bc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hc=Object.assign,Vc={};function Wn(e,t,n){this.props=e,this.context=t,this.refs=Vc,this.updater=n||bc}Wn.prototype.isReactComponent={};Wn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};Wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kc(){}Kc.prototype=Wn.prototype;function Ps(e,t,n){this.props=e,this.context=t,this.refs=Vc,this.updater=n||bc}var Ds=Ps.prototype=new Kc;Ds.constructor=Ps;Hc(Ds,Wn.prototype);Ds.isPureReactComponent=!0;var Ql=Array.isArray,Wc=Object.prototype.hasOwnProperty,Ls={current:null},Gc={key:!0,ref:!0,__self:!0,__source:!0};function Qc(e,t,n){var r,i={},o=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(o=""+t.key),t)Wc.call(t,r)&&!Gc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),p=0;p<s;p++)l[p]=arguments[p+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Kr,type:e,key:o,ref:u,props:i,_owner:Ls.current}}function Wp(e,t){return{$$typeof:Kr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kr}function Gp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $l=/\/+/g;function Lo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gp(""+e.key):t.toString(36)}function Ni(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Kr:case Mp:u=!0}}if(u)return u=e,i=i(u),e=r===""?"."+Lo(u,0):r,Ql(i)?(n="",e!=null&&(n=e.replace($l,"$&/")+"/"),Ni(i,t,n,"",function(p){return p})):i!=null&&(Ms(i)&&(i=Wp(i,n+(!i.key||u&&u.key===i.key?"":(""+i.key).replace($l,"$&/")+"/")+e)),t.push(i)),1;if(u=0,r=r===""?".":r+":",Ql(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Lo(o,s);u+=Ni(o,t,n,l,i)}else if(l=Kp(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Lo(o,s++),u+=Ni(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function ui(e,t,n){if(e==null)return e;var r=[],i=0;return Ni(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Qp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Le={current:null},Oi={transition:null},$p={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:Oi,ReactCurrentOwner:Ls};Z.Children={map:ui,forEach:function(e,t,n){ui(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ui(e,function(){t++}),t},toArray:function(e){return ui(e,function(t){return t})||[]},only:function(e){if(!Ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Wn;Z.Fragment=qp;Z.Profiler=Fp;Z.PureComponent=Ps;Z.StrictMode=zp;Z.Suspense=bp;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$p;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Hc({},e.props),i=e.key,o=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,u=Ls.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Wc.call(t,l)&&!Gc.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var p=0;p<l;p++)s[p]=arguments[p+2];r.children=s}return{$$typeof:Kr,type:e.type,key:i,ref:o,props:r,_owner:u}};Z.createContext=function(e){return e={$$typeof:Bp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Up,_context:e},e.Consumer=e};Z.createElement=Qc;Z.createFactory=function(e){var t=Qc.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:jp,render:e}};Z.isValidElement=Ms;Z.lazy=function(e){return{$$typeof:Vp,_payload:{_status:-1,_result:e},_init:Qp}};Z.memo=function(e,t){return{$$typeof:Hp,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=Oi.transition;Oi.transition={};try{e()}finally{Oi.transition=t}};Z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Z.useCallback=function(e,t){return Le.current.useCallback(e,t)};Z.useContext=function(e){return Le.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Le.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Le.current.useEffect(e,t)};Z.useId=function(){return Le.current.useId()};Z.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Le.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)};Z.useRef=function(e){return Le.current.useRef(e)};Z.useState=function(e){return Le.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Le.current.useTransition()};Z.version="18.2.0";jc.exports=Z;var B=jc.exports;const Q=As(B);var Mu={},$c={exports:{}},We={},Jc={exports:{}},Yc={};/**
10
+ */var Kr=Symbol.for("react.element"),Mp=Symbol.for("react.portal"),zp=Symbol.for("react.fragment"),qp=Symbol.for("react.strict_mode"),Fp=Symbol.for("react.profiler"),Up=Symbol.for("react.provider"),Bp=Symbol.for("react.context"),jp=Symbol.for("react.forward_ref"),bp=Symbol.for("react.suspense"),Hp=Symbol.for("react.memo"),Vp=Symbol.for("react.lazy"),Gl=Symbol.iterator;function Kp(e){return e===null||typeof e!="object"?null:(e=Gl&&e[Gl]||e["@@iterator"],typeof e=="function"?e:null)}var bc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hc=Object.assign,Vc={};function Wn(e,t,n){this.props=e,this.context=t,this.refs=Vc,this.updater=n||bc}Wn.prototype.isReactComponent={};Wn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};Wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kc(){}Kc.prototype=Wn.prototype;function Ds(e,t,n){this.props=e,this.context=t,this.refs=Vc,this.updater=n||bc}var Ls=Ds.prototype=new Kc;Ls.constructor=Ds;Hc(Ls,Wn.prototype);Ls.isPureReactComponent=!0;var Ql=Array.isArray,Wc=Object.prototype.hasOwnProperty,Ms={current:null},Gc={key:!0,ref:!0,__self:!0,__source:!0};function Qc(e,t,n){var r,i={},o=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(o=""+t.key),t)Wc.call(t,r)&&!Gc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),d=0;d<s;d++)a[d]=arguments[d+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Kr,type:e,key:o,ref:u,props:i,_owner:Ms.current}}function Wp(e,t){return{$$typeof:Kr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kr}function Gp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $l=/\/+/g;function Mo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gp(""+e.key):t.toString(36)}function Ni(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Kr:case Mp:u=!0}}if(u)return u=e,i=i(u),e=r===""?"."+Mo(u,0):r,Ql(i)?(n="",e!=null&&(n=e.replace($l,"$&/")+"/"),Ni(i,t,n,"",function(d){return d})):i!=null&&(zs(i)&&(i=Wp(i,n+(!i.key||u&&u.key===i.key?"":(""+i.key).replace($l,"$&/")+"/")+e)),t.push(i)),1;if(u=0,r=r===""?".":r+":",Ql(e))for(var s=0;s<e.length;s++){o=e[s];var a=r+Mo(o,s);u+=Ni(o,t,n,a,i)}else if(a=Kp(e),typeof a=="function")for(e=a.call(e),s=0;!(o=e.next()).done;)o=o.value,a=r+Mo(o,s++),u+=Ni(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function ui(e,t,n){if(e==null)return e;var r=[],i=0;return Ni(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Qp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Le={current:null},Oi={transition:null},$p={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:Oi,ReactCurrentOwner:Ms};Z.Children={map:ui,forEach:function(e,t,n){ui(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ui(e,function(){t++}),t},toArray:function(e){return ui(e,function(t){return t})||[]},only:function(e){if(!zs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Wn;Z.Fragment=zp;Z.Profiler=Fp;Z.PureComponent=Ds;Z.StrictMode=qp;Z.Suspense=bp;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$p;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Hc({},e.props),i=e.key,o=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,u=Ms.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Wc.call(t,a)&&!Gc.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var d=0;d<a;d++)s[d]=arguments[d+2];r.children=s}return{$$typeof:Kr,type:e.type,key:i,ref:o,props:r,_owner:u}};Z.createContext=function(e){return e={$$typeof:Bp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Up,_context:e},e.Consumer=e};Z.createElement=Qc;Z.createFactory=function(e){var t=Qc.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:jp,render:e}};Z.isValidElement=zs;Z.lazy=function(e){return{$$typeof:Vp,_payload:{_status:-1,_result:e},_init:Qp}};Z.memo=function(e,t){return{$$typeof:Hp,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=Oi.transition;Oi.transition={};try{e()}finally{Oi.transition=t}};Z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Z.useCallback=function(e,t){return Le.current.useCallback(e,t)};Z.useContext=function(e){return Le.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Le.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Le.current.useEffect(e,t)};Z.useId=function(){return Le.current.useId()};Z.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Le.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)};Z.useRef=function(e){return Le.current.useRef(e)};Z.useState=function(e){return Le.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Le.current.useTransition()};Z.version="18.2.0";jc.exports=Z;var B=jc.exports;const G=Ps(B);var zu={},$c={exports:{}},We={},Jc={exports:{}},Yc={};/**
11
11
  * @license React
12
12
  * scheduler.production.min.js
13
13
  *
@@ -15,7 +15,7 @@ var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */(function(e){function t(R,P){var A=R.length;R.push(P);e:for(;0<A;){var L=A-1>>>1,M=R[L];if(0<i(M,P))R[L]=P,R[A]=M,A=L;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var P=R[0],A=R.pop();if(A!==P){R[0]=A;e:for(var L=0,M=R.length,G=M>>>1;L<G;){var J=2*(L+1)-1,V=R[J],Y=J+1,b=R[Y];if(0>i(V,A))Y<M&&0>i(b,V)?(R[L]=b,R[Y]=A,L=Y):(R[L]=V,R[J]=A,L=J);else if(Y<M&&0>i(b,A))R[L]=b,R[Y]=A,L=Y;else break e}}return P}function i(R,P){var A=R.sortIndex-P.sortIndex;return A!==0?A:R.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,s=u.now();e.unstable_now=function(){return u.now()-s}}var l=[],p=[],m=1,y=null,k=3,S=!1,w=!1,a=!1,d=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var P=n(p);P!==null;){if(P.callback===null)r(p);else if(P.startTime<=R)r(p),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(p)}}function E(R){if(a=!1,h(R),!w)if(n(l)!==null)w=!0,j(I);else{var P=n(p);P!==null&&T(E,P.startTime-R)}}function I(R,P){w=!1,a&&(a=!1,c(g),g=-1),S=!0;var A=k;try{for(h(P),y=n(l);y!==null&&(!(y.expirationTime>P)||R&&!O());){var L=y.callback;if(typeof L=="function"){y.callback=null,k=y.priorityLevel;var M=L(y.expirationTime<=P);P=e.unstable_now(),typeof M=="function"?y.callback=M:y===n(l)&&r(l),h(P)}else r(l);y=n(l)}if(y!==null)var G=!0;else{var J=n(p);J!==null&&T(E,J.startTime-P),G=!1}return G}finally{y=null,k=A,S=!1}}var _=!1,v=null,g=-1,x=5,C=-1;function O(){return!(e.unstable_now()-C<x)}function N(){if(v!==null){var R=e.unstable_now();C=R;var P=!0;try{P=v(!0,R)}finally{P?D():(_=!1,v=null)}}else _=!1}var D;if(typeof f=="function")D=function(){f(N)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,F=z.port2;z.port1.onmessage=N,D=function(){F.postMessage(null)}}else D=function(){d(N,0)};function j(R){v=R,_||(_=!0,D())}function T(R,P){g=d(function(){R(e.unstable_now())},P)}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(R){R.callback=null},e.unstable_continueExecution=function(){w||S||(w=!0,j(I))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(k){case 1:case 2:case 3:var P=3;break;default:P=k}var A=k;k=P;try{return R()}finally{k=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,P){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=k;k=R;try{return P()}finally{k=A}},e.unstable_scheduleCallback=function(R,P,A){var L=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?L+A:L):A=L,R){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=A+M,R={id:m++,callback:P,priorityLevel:R,startTime:A,expirationTime:M,sortIndex:-1},A>L?(R.sortIndex=A,t(p,R),n(l)===null&&R===n(p)&&(a?(c(g),g=-1):a=!0,T(E,A-L))):(R.sortIndex=M,t(l,R),w||S||(w=!0,j(I))),R},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(R){var P=k;return function(){var A=k;k=P;try{return R.apply(this,arguments)}finally{k=A}}}})(Yc);Jc.exports=Yc;var Jp=Jc.exports;/**
18
+ */(function(e){function t(R,A){var D=R.length;R.push(A);e:for(;0<D;){var M=D-1>>>1,L=R[M];if(0<i(L,A))R[M]=A,R[D]=L,D=M;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var A=R[0],D=R.pop();if(D!==A){R[0]=D;e:for(var M=0,L=R.length,Q=L>>>1;M<Q;){var Y=2*(M+1)-1,V=R[Y],J=Y+1,H=R[J];if(0>i(V,D))J<L&&0>i(H,V)?(R[M]=H,R[J]=D,M=J):(R[M]=V,R[Y]=D,M=Y);else if(J<L&&0>i(H,D))R[M]=H,R[J]=D,M=J;else break e}}return A}function i(R,A){var D=R.sortIndex-A.sortIndex;return D!==0?D:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,s=u.now();e.unstable_now=function(){return u.now()-s}}var a=[],d=[],m=1,y=null,k=3,_=!1,w=!1,l=!1,p=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var A=n(d);A!==null;){if(A.callback===null)r(d);else if(A.startTime<=R)r(d),A.sortIndex=A.expirationTime,t(a,A);else break;A=n(d)}}function E(R){if(l=!1,h(R),!w)if(n(a)!==null)w=!0,j(x);else{var A=n(d);A!==null&&T(E,A.startTime-R)}}function x(R,A){w=!1,l&&(l=!1,f(g),g=-1),_=!0;var D=k;try{for(h(A),y=n(a);y!==null&&(!(y.expirationTime>A)||R&&!O());){var M=y.callback;if(typeof M=="function"){y.callback=null,k=y.priorityLevel;var L=M(y.expirationTime<=A);A=e.unstable_now(),typeof L=="function"?y.callback=L:y===n(a)&&r(a),h(A)}else r(a);y=n(a)}if(y!==null)var Q=!0;else{var Y=n(d);Y!==null&&T(E,Y.startTime-A),Q=!1}return Q}finally{y=null,k=D,_=!1}}var S=!1,v=null,g=-1,I=5,C=-1;function O(){return!(e.unstable_now()-C<I)}function N(){if(v!==null){var R=e.unstable_now();C=R;var A=!0;try{A=v(!0,R)}finally{A?P():(S=!1,v=null)}}else S=!1}var P;if(typeof c=="function")P=function(){c(N)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,F=q.port2;q.port1.onmessage=N,P=function(){F.postMessage(null)}}else P=function(){p(N,0)};function j(R){v=R,S||(S=!0,P())}function T(R,A){g=p(function(){R(e.unstable_now())},A)}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(R){R.callback=null},e.unstable_continueExecution=function(){w||_||(w=!0,j(x))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(k){case 1:case 2:case 3:var A=3;break;default:A=k}var D=k;k=A;try{return R()}finally{k=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,A){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var D=k;k=R;try{return A()}finally{k=D}},e.unstable_scheduleCallback=function(R,A,D){var M=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?M+D:M):D=M,R){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=D+L,R={id:m++,callback:A,priorityLevel:R,startTime:D,expirationTime:L,sortIndex:-1},D>M?(R.sortIndex=D,t(d,R),n(a)===null&&R===n(d)&&(l?(f(g),g=-1):l=!0,T(E,D-M))):(R.sortIndex=L,t(a,R),w||_||(w=!0,j(x))),R},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(R){var A=k;return function(){var D=k;k=A;try{return R.apply(this,arguments)}finally{k=D}}}})(Yc);Jc.exports=Yc;var Jp=Jc.exports;/**
19
19
  * @license React
20
20
  * react-dom.production.min.js
21
21
  *
@@ -23,20 +23,20 @@ var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var Xc=B,Ke=Jp;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Zc=new Set,Rr={};function vn(e,t){Un(e,t),Un(e+"Capture",t)}function Un(e,t){for(Rr[e]=t,e=0;e<t.length;e++)Zc.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,Yp=/^[: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]*$/,Jl={},Yl={};function Xp(e){return qu.call(Yl,e)?!0:qu.call(Jl,e)?!1:Yp.test(e)?Yl[e]=!0:(Jl[e]=!0,!1)}function Zp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eh(e,t,n,r){if(t===null||typeof t>"u"||Zp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,i,o,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Re[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var qs=/[\-:]([a-z])/g;function zs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(qs,zs);Re[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qs,zs);Re[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qs,zs);Re[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fs(e,t,n,r){var i=Re.hasOwnProperty(t)?Re[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eh(t,n,i,r)&&(n=null),r||i===null?Xp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dt=Xc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,si=Symbol.for("react.element"),Sn=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),Us=Symbol.for("react.strict_mode"),zu=Symbol.for("react.profiler"),ef=Symbol.for("react.provider"),tf=Symbol.for("react.context"),Bs=Symbol.for("react.forward_ref"),Fu=Symbol.for("react.suspense"),Uu=Symbol.for("react.suspense_list"),js=Symbol.for("react.memo"),qt=Symbol.for("react.lazy"),nf=Symbol.for("react.offscreen"),Xl=Symbol.iterator;function tr(e){return e===null||typeof e!="object"?null:(e=Xl&&e[Xl]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,Mo;function cr(e){if(Mo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mo=t&&t[1]||""}return`
27
- `+Mo+e}var qo=!1;function zo(e,t){if(!e||qo)return"";qo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var i=p.stack.split(`
26
+ */var Xc=B,Ke=Jp;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Zc=new Set,Rr={};function vn(e,t){Un(e,t),Un(e+"Capture",t)}function Un(e,t){for(Rr[e]=t,e=0;e<t.length;e++)Zc.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,Yp=/^[: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]*$/,Jl={},Yl={};function Xp(e){return qu.call(Yl,e)?!0:qu.call(Jl,e)?!1:Yp.test(e)?Yl[e]=!0:(Jl[e]=!0,!1)}function Zp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eh(e,t,n,r){if(t===null||typeof t>"u"||Zp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,i,o,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Re[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var qs=/[\-:]([a-z])/g;function Fs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(qs,Fs);Re[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(qs,Fs);Re[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(qs,Fs);Re[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function Us(e,t,n,r){var i=Re.hasOwnProperty(t)?Re[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eh(t,n,i,r)&&(n=null),r||i===null?Xp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dt=Xc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,si=Symbol.for("react.element"),Sn=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),Bs=Symbol.for("react.strict_mode"),Fu=Symbol.for("react.profiler"),ef=Symbol.for("react.provider"),tf=Symbol.for("react.context"),js=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),Bu=Symbol.for("react.suspense_list"),bs=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),nf=Symbol.for("react.offscreen"),Xl=Symbol.iterator;function tr(e){return e===null||typeof e!="object"?null:(e=Xl&&e[Xl]||e["@@iterator"],typeof e=="function"?e:null)}var he=Object.assign,zo;function cr(e){if(zo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zo=t&&t[1]||""}return`
27
+ `+zo+e}var qo=!1;function Fo(e,t){if(!e||qo)return"";qo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
28
28
  `),o=r.stack.split(`
29
- `),u=i.length-1,s=o.length-1;1<=u&&0<=s&&i[u]!==o[s];)s--;for(;1<=u&&0<=s;u--,s--)if(i[u]!==o[s]){if(u!==1||s!==1)do if(u--,s--,0>s||i[u]!==o[s]){var l=`
30
- `+i[u].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=u&&0<=s);break}}}finally{qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cr(e):""}function th(e){switch(e.tag){case 5:return cr(e.type);case 16:return cr("Lazy");case 13:return cr("Suspense");case 19:return cr("SuspenseList");case 0:case 2:case 15:return e=zo(e.type,!1),e;case 11:return e=zo(e.type.render,!1),e;case 1:return e=zo(e.type,!0),e;default:return""}}function Bu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kn:return"Fragment";case Sn:return"Portal";case zu:return"Profiler";case Us:return"StrictMode";case Fu:return"Suspense";case Uu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tf:return(e.displayName||"Context")+".Consumer";case ef:return(e._context.displayName||"Context")+".Provider";case Bs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case js:return t=e.displayName||null,t!==null?t:Bu(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return Bu(e(t))}catch{}}return null}function nh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bu(t);case 8:return t===Us?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rh(e){var t=rf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=rh(e))}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ju(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uf(e,t){t=t.checked,t!=null&&Fs(e,"checked",t,!1)}function bu(e,t){uf(e,t);var n=Jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hu(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ea(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hu(e,t,n){(t!=="number"||bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fr=Array.isArray;function Dn(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=""+Jt(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 Vu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ta(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(q(92));if(fr(n)){if(1<n.length)throw Error(q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jt(n)}}function sf(e,t){var n=Jt(t.value),r=Jt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function na(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ku(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,af=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ih=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){ih.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function cf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gr.hasOwnProperty(e)&&gr[e]?(""+t).trim():t+"px"}function ff(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=cf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var oh=he({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wu(e,t){if(t){if(oh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Gu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Qu=null;function bs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $u=null,Ln=null,Mn=null;function ra(e){if(e=Qr(e)){if(typeof $u!="function")throw Error(q(280));var t=e.stateNode;t&&(t=_o(t),$u(e.stateNode,e.type,t))}}function df(e){Ln?Mn?Mn.push(e):Mn=[e]:Ln=e}function pf(){if(Ln){var e=Ln,t=Mn;if(Mn=Ln=null,ra(e),t)for(e=0;e<t.length;e++)ra(t[e])}}function hf(e,t){return e(t)}function vf(){}var Fo=!1;function gf(e,t,n){if(Fo)return e(t,n);Fo=!0;try{return hf(e,t,n)}finally{Fo=!1,(Ln!==null||Mn!==null)&&(vf(),pf())}}function Nr(e,t){var n=e.stateNode;if(n===null)return null;var r=_o(n);if(r===null)return null;n=r[t];e: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 e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var Ju=!1;if(Nt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Ju=!1}function uh(e,t,n,r,i,o,u,s,l){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(m){this.onError(m)}}var mr=!1,Hi=null,Vi=!1,Yu=null,sh={onError:function(e){mr=!0,Hi=e}};function lh(e,t,n,r,i,o,u,s,l){mr=!1,Hi=null,uh.apply(sh,arguments)}function ah(e,t,n,r,i,o,u,s,l){if(lh.apply(this,arguments),mr){if(mr){var p=Hi;mr=!1,Hi=null}else throw Error(q(198));Vi||(Vi=!0,Yu=p)}}function gn(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 mf(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 ia(e){if(gn(e)!==e)throw Error(q(188))}function ch(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ia(i),e;if(o===r)return ia(i),t;o=o.sibling}throw Error(q(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u){for(s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u)throw Error(q(189))}}if(n.alternate!==r)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function yf(e){return e=ch(e),e!==null?wf(e):null}function wf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wf(e);if(t!==null)return t;e=e.sibling}return null}var _f=Ke.unstable_scheduleCallback,oa=Ke.unstable_cancelCallback,fh=Ke.unstable_shouldYield,dh=Ke.unstable_requestPaint,me=Ke.unstable_now,ph=Ke.unstable_getCurrentPriorityLevel,Hs=Ke.unstable_ImmediatePriority,Sf=Ke.unstable_UserBlockingPriority,Ki=Ke.unstable_NormalPriority,hh=Ke.unstable_LowPriority,kf=Ke.unstable_IdlePriority,go=null,wt=null;function vh(e){if(wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(go,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:yh,gh=Math.log,mh=Math.LN2;function yh(e){return e>>>=0,e===0?32:31-(gh(e)/mh|0)|0}var ci=64,fi=4194304;function dr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,u=n&268435455;if(u!==0){var s=u&~i;s!==0?r=dr(s):(o&=u,o!==0&&(r=dr(o)))}else u=n&~i,u!==0?r=dr(u):o!==0&&(r=dr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),i=1<<n,r|=e[n],t&=~i;return r}function wh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _h(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-lt(o),s=1<<u,l=i[u];l===-1?(!(s&n)||s&r)&&(i[u]=wh(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Xu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ef(){var e=ci;return ci<<=1,!(ci&4194240)&&(ci=64),e}function Uo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function Sh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-lt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Vs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var oe=0;function Cf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xf,Ks,If,Rf,Tf,Zu=!1,di=[],bt=null,Ht=null,Vt=null,Or=new Map,Ar=new Map,Ft=[],kh="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 submit".split(" ");function ua(e,t){switch(e){case"focusin":case"focusout":bt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function rr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Qr(t),t!==null&&Ks(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Eh(e,t,n,r,i){switch(t){case"focusin":return bt=rr(bt,e,t,n,r,i),!0;case"dragenter":return Ht=rr(Ht,e,t,n,r,i),!0;case"mouseover":return Vt=rr(Vt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Or.set(o,rr(Or.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ar.set(o,rr(Ar.get(o)||null,e,t,n,r,i)),!0}return!1}function Nf(e){var t=on(e.target);if(t!==null){var n=gn(t);if(n!==null){if(t=n.tag,t===13){if(t=mf(n),t!==null){e.blockedOn=t,Tf(e.priority,function(){If(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 Ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=es(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qu=r,n.target.dispatchEvent(r),Qu=null}else return t=Qr(n),t!==null&&Ks(t),e.blockedOn=n,!1;t.shift()}return!0}function sa(e,t,n){Ai(e)&&n.delete(t)}function Ch(){Zu=!1,bt!==null&&Ai(bt)&&(bt=null),Ht!==null&&Ai(Ht)&&(Ht=null),Vt!==null&&Ai(Vt)&&(Vt=null),Or.forEach(sa),Ar.forEach(sa)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Zu||(Zu=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,Ch)))}function Pr(e){function t(i){return ir(i,e)}if(0<di.length){ir(di[0],e);for(var n=1;n<di.length;n++){var r=di[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bt!==null&&ir(bt,e),Ht!==null&&ir(Ht,e),Vt!==null&&ir(Vt,e),Or.forEach(t),Ar.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Nf(n),n.blockedOn===null&&Ft.shift()}var qn=Dt.ReactCurrentBatchConfig,Gi=!0;function xh(e,t,n,r){var i=oe,o=qn.transition;qn.transition=null;try{oe=1,Ws(e,t,n,r)}finally{oe=i,qn.transition=o}}function Ih(e,t,n,r){var i=oe,o=qn.transition;qn.transition=null;try{oe=4,Ws(e,t,n,r)}finally{oe=i,qn.transition=o}}function Ws(e,t,n,r){if(Gi){var i=es(e,t,n,r);if(i===null)$o(e,t,r,Qi,n),ua(e,r);else if(Eh(i,e,t,n,r))r.stopPropagation();else if(ua(e,r),t&4&&-1<kh.indexOf(e)){for(;i!==null;){var o=Qr(i);if(o!==null&&xf(o),o=es(e,t,n,r),o===null&&$o(e,t,r,Qi,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else $o(e,t,r,null,n)}}var Qi=null;function es(e,t,n,r){if(Qi=null,e=bs(r),e=on(e),e!==null)if(t=gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mf(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 Qi=e,null}function Of(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ph()){case Hs:return 1;case Sf:return 4;case Ki:case hh:return 16;case kf:return 536870912;default:return 16}default:return 16}}var Bt=null,Gs=null,Pi=null;function Af(){if(Pi)return Pi;var e,t=Gs,n=t.length,r,i="value"in Bt?Bt.value:Bt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===i[o-r];r++);return Pi=i.slice(e,1<r?1-r:void 0)}function Di(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 pi(){return!0}function la(){return!1}function Ge(e){function t(n,r,i,o,u){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=u,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?pi:la,this.isPropagationStopped=la,this}return he(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=Ge(Gn),Gr=he({},Gn,{view:0,detail:0}),Rh=Ge(Gr),Bo,jo,or,mo=he({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$s,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!==or&&(or&&e.type==="mousemove"?(Bo=e.screenX-or.screenX,jo=e.screenY-or.screenY):jo=Bo=0,or=e),Bo)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),aa=Ge(mo),Th=he({},mo,{dataTransfer:0}),Nh=Ge(Th),Oh=he({},Gr,{relatedTarget:0}),bo=Ge(Oh),Ah=he({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ph=Ge(Ah),Dh=he({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lh=Ge(Dh),Mh=he({},Gn,{data:0}),ca=Ge(Mh),qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zh={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"},Fh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fh[e])?!!t[e]:!1}function $s(){return Uh}var Bh=he({},Gr,{key:function(e){if(e.key){var t=qh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$s,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jh=Ge(Bh),bh=he({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fa=Ge(bh),Hh=he({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$s}),Vh=Ge(Hh),Kh=he({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wh=Ge(Kh),Gh=he({},mo,{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}),Qh=Ge(Gh),$h=[9,13,27,32],Js=Nt&&"CompositionEvent"in window,yr=null;Nt&&"documentMode"in document&&(yr=document.documentMode);var Jh=Nt&&"TextEvent"in window&&!yr,Pf=Nt&&(!Js||yr&&8<yr&&11>=yr),da=String.fromCharCode(32),pa=!1;function Df(e,t){switch(e){case"keyup":return $h.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Yh(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(pa=!0,da);case"textInput":return e=t.data,e===da&&pa?null:e;default:return null}}function Xh(e,t){if(En)return e==="compositionend"||!Js&&Df(e,t)?(e=Af(),Pi=Gs=Bt=null,En=!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 Pf&&t.locale!=="ko"?null:t.data;default:return null}}var Zh={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 ha(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zh[e.type]:t==="textarea"}function Mf(e,t,n,r){df(r),t=$i(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wr=null,Dr=null;function ev(e){Wf(e,0)}function yo(e){var t=In(e);if(of(t))return e}function tv(e,t){if(e==="change")return t}var qf=!1;if(Nt){var Ho;if(Nt){var Vo="oninput"in document;if(!Vo){var va=document.createElement("div");va.setAttribute("oninput","return;"),Vo=typeof va.oninput=="function"}Ho=Vo}else Ho=!1;qf=Ho&&(!document.documentMode||9<document.documentMode)}function ga(){wr&&(wr.detachEvent("onpropertychange",zf),Dr=wr=null)}function zf(e){if(e.propertyName==="value"&&yo(Dr)){var t=[];Mf(t,Dr,e,bs(e)),gf(ev,t)}}function nv(e,t,n){e==="focusin"?(ga(),wr=t,Dr=n,wr.attachEvent("onpropertychange",zf)):e==="focusout"&&ga()}function rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yo(Dr)}function iv(e,t){if(e==="click")return yo(t)}function ov(e,t){if(e==="input"||e==="change")return yo(t)}function uv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:uv;function Lr(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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(!qu.call(t,i)||!ct(e[i],t[i]))return!1}return!0}function ma(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ya(e,t){var n=ma(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}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ma(n)}}function Ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(){for(var e=window,t=bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bi(e.document)}return t}function Ys(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")}function sv(e){var t=Uf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ff(n.ownerDocument.documentElement,n)){if(r!==null&&Ys(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ya(n,o);var u=ya(n,r);i&&u&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lv=Nt&&"documentMode"in document&&11>=document.documentMode,Cn=null,ts=null,_r=null,ns=!1;function wa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ns||Cn==null||Cn!==bi(r)||(r=Cn,"selectionStart"in r&&Ys(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}),_r&&Lr(_r,r)||(_r=r,r=$i(ts,"onSelect"),0<r.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cn)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xn={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},Ko={},Bf={};Nt&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);function wo(e){if(Ko[e])return Ko[e];if(!xn[e])return e;var t=xn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return Ko[e]=t[n];return e}var jf=wo("animationend"),bf=wo("animationiteration"),Hf=wo("animationstart"),Vf=wo("transitionend"),Kf=new Map,_a="abort auxClick 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(" ");function Xt(e,t){Kf.set(e,t),vn(t,[e])}for(var Wo=0;Wo<_a.length;Wo++){var Go=_a[Wo],av=Go.toLowerCase(),cv=Go[0].toUpperCase()+Go.slice(1);Xt(av,"on"+cv)}Xt(jf,"onAnimationEnd");Xt(bf,"onAnimationIteration");Xt(Hf,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(Vf,"onTransitionEnd");Un("onMouseEnter",["mouseout","mouseover"]);Un("onMouseLeave",["mouseout","mouseover"]);Un("onPointerEnter",["pointerout","pointerover"]);Un("onPointerLeave",["pointerout","pointerover"]);vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(" "),fv=new Set("cancel close invalid load scroll toggle".split(" ").concat(pr));function Sa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ah(r,t,void 0,e),e.currentTarget=null}function Wf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var u=r.length-1;0<=u;u--){var s=r[u],l=s.instance,p=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Sa(i,s,p),o=l}else for(u=0;u<r.length;u++){if(s=r[u],l=s.instance,p=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Sa(i,s,p),o=l}}}if(Vi)throw e=Yu,Vi=!1,Yu=null,e}function le(e,t){var n=t[ss];n===void 0&&(n=t[ss]=new Set);var r=e+"__bubble";n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Qo(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){if(!e[vi]){e[vi]=!0,Zc.forEach(function(n){n!=="selectionchange"&&(fv.has(n)||Qo(n,!1,e),Qo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,Qo("selectionchange",!1,t))}}function Gf(e,t,n,r){switch(Of(t)){case 1:var i=xh;break;case 4:i=Ih;break;default:i=Ws}n=i.bind(null,t,n,e),i=void 0,!Ju||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $o(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(u===4)for(u=r.return;u!==null;){var l=u.tag;if((l===3||l===4)&&(l=u.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;u=u.return}for(;s!==null;){if(u=on(s),u===null)return;if(l=u.tag,l===5||l===6){r=o=u;continue e}s=s.parentNode}}r=r.return}gf(function(){var p=o,m=bs(n),y=[];e:{var k=Kf.get(e);if(k!==void 0){var S=Qs,w=e;switch(e){case"keypress":if(Di(n)===0)break e;case"keydown":case"keyup":S=jh;break;case"focusin":w="focus",S=bo;break;case"focusout":w="blur",S=bo;break;case"beforeblur":case"afterblur":S=bo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=aa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Vh;break;case jf:case bf:case Hf:S=Ph;break;case Vf:S=Wh;break;case"scroll":S=Rh;break;case"wheel":S=Qh;break;case"copy":case"cut":case"paste":S=Lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=fa}var a=(t&4)!==0,d=!a&&e==="scroll",c=a?k!==null?k+"Capture":null:k;a=[];for(var f=p,h;f!==null;){h=f;var E=h.stateNode;if(h.tag===5&&E!==null&&(h=E,c!==null&&(E=Nr(f,c),E!=null&&a.push(qr(f,E,h)))),d)break;f=f.return}0<a.length&&(k=new S(k,w,null,n,m),y.push({event:k,listeners:a}))}}if(!(t&7)){e:{if(k=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",k&&n!==Qu&&(w=n.relatedTarget||n.fromElement)&&(on(w)||w[Ot]))break e;if((S||k)&&(k=m.window===m?m:(k=m.ownerDocument)?k.defaultView||k.parentWindow:window,S?(w=n.relatedTarget||n.toElement,S=p,w=w?on(w):null,w!==null&&(d=gn(w),w!==d||w.tag!==5&&w.tag!==6)&&(w=null)):(S=null,w=p),S!==w)){if(a=aa,E="onMouseLeave",c="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(a=fa,E="onPointerLeave",c="onPointerEnter",f="pointer"),d=S==null?k:In(S),h=w==null?k:In(w),k=new a(E,f+"leave",S,n,m),k.target=d,k.relatedTarget=h,E=null,on(m)===p&&(a=new a(c,f+"enter",w,n,m),a.target=h,a.relatedTarget=d,E=a),d=E,S&&w)t:{for(a=S,c=w,f=0,h=a;h;h=_n(h))f++;for(h=0,E=c;E;E=_n(E))h++;for(;0<f-h;)a=_n(a),f--;for(;0<h-f;)c=_n(c),h--;for(;f--;){if(a===c||c!==null&&a===c.alternate)break t;a=_n(a),c=_n(c)}a=null}else a=null;S!==null&&ka(y,k,S,a,!1),w!==null&&d!==null&&ka(y,d,w,a,!0)}}e:{if(k=p?In(p):window,S=k.nodeName&&k.nodeName.toLowerCase(),S==="select"||S==="input"&&k.type==="file")var I=tv;else if(ha(k))if(qf)I=ov;else{I=rv;var _=nv}else(S=k.nodeName)&&S.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(I=iv);if(I&&(I=I(e,p))){Mf(y,I,n,m);break e}_&&_(e,k,p),e==="focusout"&&(_=k._wrapperState)&&_.controlled&&k.type==="number"&&Hu(k,"number",k.value)}switch(_=p?In(p):window,e){case"focusin":(ha(_)||_.contentEditable==="true")&&(Cn=_,ts=p,_r=null);break;case"focusout":_r=ts=Cn=null;break;case"mousedown":ns=!0;break;case"contextmenu":case"mouseup":case"dragend":ns=!1,wa(y,n,m);break;case"selectionchange":if(lv)break;case"keydown":case"keyup":wa(y,n,m)}var v;if(Js)e:{switch(e){case"compositionstart":var g="onCompositionStart";break e;case"compositionend":g="onCompositionEnd";break e;case"compositionupdate":g="onCompositionUpdate";break e}g=void 0}else En?Df(e,n)&&(g="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(g="onCompositionStart");g&&(Pf&&n.locale!=="ko"&&(En||g!=="onCompositionStart"?g==="onCompositionEnd"&&En&&(v=Af()):(Bt=m,Gs="value"in Bt?Bt.value:Bt.textContent,En=!0)),_=$i(p,g),0<_.length&&(g=new ca(g,e,null,n,m),y.push({event:g,listeners:_}),v?g.data=v:(v=Lf(n),v!==null&&(g.data=v)))),(v=Jh?Yh(e,n):Xh(e,n))&&(p=$i(p,"onBeforeInput"),0<p.length&&(m=new ca("onBeforeInput","beforeinput",null,n,m),y.push({event:m,listeners:p}),m.data=v))}Wf(y,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $i(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Nr(e,n),o!=null&&r.unshift(qr(e,o,i)),o=Nr(e,t),o!=null&&r.push(qr(e,o,i))),e=e.return}return r}function _n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ka(e,t,n,r,i){for(var o=t._reactName,u=[];n!==null&&n!==r;){var s=n,l=s.alternate,p=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&p!==null&&(s=p,i?(l=Nr(n,o),l!=null&&u.unshift(qr(n,l,s))):i||(l=Nr(n,o),l!=null&&u.push(qr(n,l,s)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var dv=/\r\n?/g,pv=/\u0000|\uFFFD/g;function Ea(e){return(typeof e=="string"?e:""+e).replace(dv,`
31
- `).replace(pv,"")}function gi(e,t,n){if(t=Ea(t),Ea(e)!==t&&n)throw Error(q(425))}function Ji(){}var rs=null,is=null;function os(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var us=typeof setTimeout=="function"?setTimeout:void 0,hv=typeof clearTimeout=="function"?clearTimeout:void 0,Ca=typeof Promise=="function"?Promise:void 0,vv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ca<"u"?function(e){return Ca.resolve(null).then(e).catch(gv)}:us;function gv(e){setTimeout(function(){throw e})}function Jo(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==="/$"){if(r===0){e.removeChild(i),Pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Pr(t)}function Kt(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==="$?")break;if(t==="/$")return null}}return e}function xa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Qn=Math.random().toString(36).slice(2),yt="__reactFiber$"+Qn,zr="__reactProps$"+Qn,Ot="__reactContainer$"+Qn,ss="__reactEvents$"+Qn,mv="__reactListeners$"+Qn,yv="__reactHandles$"+Qn;function on(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xa(e);e!==null;){if(n=e[yt])return n;e=xa(e)}return t}e=n,n=e.parentNode}return null}function Qr(e){return e=e[yt]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function In(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function _o(e){return e[zr]||null}var ls=[],Rn=-1;function Zt(e){return{current:e}}function ae(e){0>Rn||(e.current=ls[Rn],ls[Rn]=null,Rn--)}function ue(e,t){Rn++,ls[Rn]=e.current,e.current=t}var Yt={},Ae=Zt(Yt),Fe=Zt(!1),cn=Yt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ue(e){return e=e.childContextTypes,e!=null}function Yi(){ae(Fe),ae(Ae)}function Ia(e,t,n){if(Ae.current!==Yt)throw Error(q(168));ue(Ae,t),ue(Fe,n)}function Qf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(q(108,nh(e)||"Unknown",i));return he({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,cn=Ae.current,ue(Ae,e),ue(Fe,Fe.current),!0}function Ra(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=Qf(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,ae(Fe),ae(Ae),ue(Ae,e)):ae(Fe),ue(Fe,n)}var Ct=null,So=!1,Yo=!1;function $f(e){Ct===null?Ct=[e]:Ct.push(e)}function wv(e){So=!0,$f(e)}function en(){if(!Yo&&Ct!==null){Yo=!0;var e=0,t=oe;try{var n=Ct;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ct=null,So=!1}catch(i){throw Ct!==null&&(Ct=Ct.slice(e+1)),_f(Hs,en),i}finally{oe=t,Yo=!1}}return null}var Tn=[],Nn=0,Zi=null,eo=0,Ye=[],Xe=0,fn=null,xt=1,It="";function nn(e,t){Tn[Nn++]=eo,Tn[Nn++]=Zi,Zi=e,eo=t}function Jf(e,t,n){Ye[Xe++]=xt,Ye[Xe++]=It,Ye[Xe++]=fn,fn=e;var r=xt;e=It;var i=32-lt(r)-1;r&=~(1<<i),n+=1;var o=32-lt(t)+i;if(30<o){var u=i-i%5;o=(r&(1<<u)-1).toString(32),r>>=u,i-=u,xt=1<<32-lt(t)+i|n<<i|r,It=o+e}else xt=1<<o|n<<i|r,It=e}function Xs(e){e.return!==null&&(nn(e,1),Jf(e,1,0))}function Zs(e){for(;e===Zi;)Zi=Tn[--Nn],Tn[Nn]=null,eo=Tn[--Nn],Tn[Nn]=null;for(;e===fn;)fn=Ye[--Xe],Ye[Xe]=null,It=Ye[--Xe],Ye[Xe]=null,xt=Ye[--Xe],Ye[Xe]=null}var Ve=null,He=null,fe=!1,st=null;function Yf(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ve=e,He=Kt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ve=e,He=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fn!==null?{id:xt,overflow:It}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ve=e,He=null,!0):!1;default:return!1}}function as(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cs(e){if(fe){var t=He;if(t){var n=t;if(!Ta(e,t)){if(as(e))throw Error(q(418));t=Kt(n.nextSibling);var r=Ve;t&&Ta(e,t)?Yf(r,n):(e.flags=e.flags&-4097|2,fe=!1,Ve=e)}}else{if(as(e))throw Error(q(418));e.flags=e.flags&-4097|2,fe=!1,Ve=e}}}function Na(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ve=e}function mi(e){if(e!==Ve)return!1;if(!fe)return Na(e),fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!os(e.type,e.memoizedProps)),t&&(t=He)){if(as(e))throw Xf(),Error(q(418));for(;t;)Yf(e,t),t=Kt(t.nextSibling)}if(Na(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){He=Kt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}He=null}}else He=Ve?Kt(e.stateNode.nextSibling):null;return!0}function Xf(){for(var e=He;e;)e=Kt(e.nextSibling)}function jn(){He=Ve=null,fe=!1}function el(e){st===null?st=[e]:st.push(e)}var _v=Dt.ReactCurrentBatchConfig;function ot(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var to=Zt(null),no=null,On=null,tl=null;function nl(){tl=On=no=null}function rl(e){var t=to.current;ae(to),e._currentValue=t}function fs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zn(e,t){no=e,tl=On=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(tl!==e)if(e={context:e,memoizedValue:t,next:null},On===null){if(no===null)throw Error(q(308));On=e,no.dependencies={lanes:0,firstContext:e}}else On=On.next=e;return t}var un=null;function il(e){un===null?un=[e]:un.push(e)}function Zf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,il(t)):(n.next=i.next,i.next=n),t.interleaved=n,At(e,r)}function At(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zt=!1;function ol(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,At(e,n)}return i=r.interleaved,i===null?(t.next=t,il(r)):(t.next=i.next,i.next=t),r.interleaved=t,At(e,n)}function Li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vs(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ro(e,t,n,r){var i=e.updateQueue;zt=!1;var o=i.firstBaseUpdate,u=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,p=l.next;l.next=null,u===null?o=p:u.next=p,u=l;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==u&&(s===null?m.firstBaseUpdate=p:s.next=p,m.lastBaseUpdate=l))}if(o!==null){var y=i.baseState;u=0,m=p=l=null,s=o;do{var k=s.lane,S=s.eventTime;if((r&k)===k){m!==null&&(m=m.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,a=s;switch(k=t,S=n,a.tag){case 1:if(w=a.payload,typeof w=="function"){y=w.call(S,y,k);break e}y=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=a.payload,k=typeof w=="function"?w.call(S,y,k):w,k==null)break e;y=he({},y,k);break e;case 2:zt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,k=i.effects,k===null?i.effects=[s]:k.push(s))}else S={eventTime:S,lane:k,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(p=m=S,l=y):m=m.next=S,u|=k;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;k=s,s=k.next,k.next=null,i.lastBaseUpdate=k,i.shared.pending=null}}while(1);if(m===null&&(l=y),i.baseState=l,i.firstBaseUpdate=p,i.lastBaseUpdate=m,t=i.shared.interleaved,t!==null){i=t;do u|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);pn|=u,e.lanes=u,e.memoizedState=y}}function Aa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(q(191,i));i.call(r)}}}var td=new Xc.Component().refs;function ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ko={isMounted:function(e){return(e=e._reactInternals)?gn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),i=Qt(e),o=Rt(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wt(e,o,i),t!==null&&(at(t,e,i,r),Li(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),i=Qt(e),o=Rt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wt(e,o,i),t!==null&&(at(t,e,i,r),Li(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=Qt(e),i=Rt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wt(e,i,r),t!==null&&(at(t,e,r,n),Li(t,e,r))}};function Pa(e,t,n,r,i,o,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,u):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,o):!0}function nd(e,t,n){var r=!1,i=Yt,o=t.contextType;return typeof o=="object"&&o!==null?o=tt(o):(i=Ue(t)?cn:Ae.current,r=t.contextTypes,o=(r=r!=null)?Bn(e,i):Yt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ko,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Da(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&&ko.enqueueReplaceState(t,t.state,null)}function ps(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=td,ol(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=tt(o):(o=Ue(t)?cn:Ae.current,i.context=Bn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ds(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ko.enqueueReplaceState(i,i.state,null),ro(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ur(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(q(309));var r=n.stateNode}if(!r)throw Error(q(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(u){var s=i.refs;s===td&&(s=i.refs={}),u===null?delete s[o]:s[o]=u},t._stringRef=o,t)}if(typeof e!="string")throw Error(q(284));if(!n._owner)throw Error(q(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function La(e){var t=e._init;return t(e._payload)}function rd(e){function t(c,f){if(e){var h=c.deletions;h===null?(c.deletions=[f],c.flags|=16):h.push(f)}}function n(c,f){if(!e)return null;for(;f!==null;)t(c,f),f=f.sibling;return null}function r(c,f){for(c=new Map;f!==null;)f.key!==null?c.set(f.key,f):c.set(f.index,f),f=f.sibling;return c}function i(c,f){return c=$t(c,f),c.index=0,c.sibling=null,c}function o(c,f,h){return c.index=h,e?(h=c.alternate,h!==null?(h=h.index,h<f?(c.flags|=2,f):h):(c.flags|=2,f)):(c.flags|=1048576,f)}function u(c){return e&&c.alternate===null&&(c.flags|=2),c}function s(c,f,h,E){return f===null||f.tag!==6?(f=iu(h,c.mode,E),f.return=c,f):(f=i(f,h),f.return=c,f)}function l(c,f,h,E){var I=h.type;return I===kn?m(c,f,h.props.children,E,h.key):f!==null&&(f.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===qt&&La(I)===f.type)?(E=i(f,h.props),E.ref=ur(c,f,h),E.return=c,E):(E=Bi(h.type,h.key,h.props,null,c.mode,E),E.ref=ur(c,f,h),E.return=c,E)}function p(c,f,h,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=ou(h,c.mode,E),f.return=c,f):(f=i(f,h.children||[]),f.return=c,f)}function m(c,f,h,E,I){return f===null||f.tag!==7?(f=an(h,c.mode,E,I),f.return=c,f):(f=i(f,h),f.return=c,f)}function y(c,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=iu(""+f,c.mode,h),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case si:return h=Bi(f.type,f.key,f.props,null,c.mode,h),h.ref=ur(c,null,f),h.return=c,h;case Sn:return f=ou(f,c.mode,h),f.return=c,f;case qt:var E=f._init;return y(c,E(f._payload),h)}if(fr(f)||tr(f))return f=an(f,c.mode,h,null),f.return=c,f;yi(c,f)}return null}function k(c,f,h,E){var I=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return I!==null?null:s(c,f,""+h,E);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case si:return h.key===I?l(c,f,h,E):null;case Sn:return h.key===I?p(c,f,h,E):null;case qt:return I=h._init,k(c,f,I(h._payload),E)}if(fr(h)||tr(h))return I!==null?null:m(c,f,h,E,null);yi(c,h)}return null}function S(c,f,h,E,I){if(typeof E=="string"&&E!==""||typeof E=="number")return c=c.get(h)||null,s(f,c,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case si:return c=c.get(E.key===null?h:E.key)||null,l(f,c,E,I);case Sn:return c=c.get(E.key===null?h:E.key)||null,p(f,c,E,I);case qt:var _=E._init;return S(c,f,h,_(E._payload),I)}if(fr(E)||tr(E))return c=c.get(h)||null,m(f,c,E,I,null);yi(f,E)}return null}function w(c,f,h,E){for(var I=null,_=null,v=f,g=f=0,x=null;v!==null&&g<h.length;g++){v.index>g?(x=v,v=null):x=v.sibling;var C=k(c,v,h[g],E);if(C===null){v===null&&(v=x);break}e&&v&&C.alternate===null&&t(c,v),f=o(C,f,g),_===null?I=C:_.sibling=C,_=C,v=x}if(g===h.length)return n(c,v),fe&&nn(c,g),I;if(v===null){for(;g<h.length;g++)v=y(c,h[g],E),v!==null&&(f=o(v,f,g),_===null?I=v:_.sibling=v,_=v);return fe&&nn(c,g),I}for(v=r(c,v);g<h.length;g++)x=S(v,c,g,h[g],E),x!==null&&(e&&x.alternate!==null&&v.delete(x.key===null?g:x.key),f=o(x,f,g),_===null?I=x:_.sibling=x,_=x);return e&&v.forEach(function(O){return t(c,O)}),fe&&nn(c,g),I}function a(c,f,h,E){var I=tr(h);if(typeof I!="function")throw Error(q(150));if(h=I.call(h),h==null)throw Error(q(151));for(var _=I=null,v=f,g=f=0,x=null,C=h.next();v!==null&&!C.done;g++,C=h.next()){v.index>g?(x=v,v=null):x=v.sibling;var O=k(c,v,C.value,E);if(O===null){v===null&&(v=x);break}e&&v&&O.alternate===null&&t(c,v),f=o(O,f,g),_===null?I=O:_.sibling=O,_=O,v=x}if(C.done)return n(c,v),fe&&nn(c,g),I;if(v===null){for(;!C.done;g++,C=h.next())C=y(c,C.value,E),C!==null&&(f=o(C,f,g),_===null?I=C:_.sibling=C,_=C);return fe&&nn(c,g),I}for(v=r(c,v);!C.done;g++,C=h.next())C=S(v,c,g,C.value,E),C!==null&&(e&&C.alternate!==null&&v.delete(C.key===null?g:C.key),f=o(C,f,g),_===null?I=C:_.sibling=C,_=C);return e&&v.forEach(function(N){return t(c,N)}),fe&&nn(c,g),I}function d(c,f,h,E){if(typeof h=="object"&&h!==null&&h.type===kn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case si:e:{for(var I=h.key,_=f;_!==null;){if(_.key===I){if(I=h.type,I===kn){if(_.tag===7){n(c,_.sibling),f=i(_,h.props.children),f.return=c,c=f;break e}}else if(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===qt&&La(I)===_.type){n(c,_.sibling),f=i(_,h.props),f.ref=ur(c,_,h),f.return=c,c=f;break e}n(c,_);break}else t(c,_);_=_.sibling}h.type===kn?(f=an(h.props.children,c.mode,E,h.key),f.return=c,c=f):(E=Bi(h.type,h.key,h.props,null,c.mode,E),E.ref=ur(c,f,h),E.return=c,c=E)}return u(c);case Sn:e:{for(_=h.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(c,f.sibling),f=i(f,h.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=ou(h,c.mode,E),f.return=c,c=f}return u(c);case qt:return _=h._init,d(c,f,_(h._payload),E)}if(fr(h))return w(c,f,h,E);if(tr(h))return a(c,f,h,E);yi(c,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(c,f.sibling),f=i(f,h),f.return=c,c=f):(n(c,f),f=iu(h,c.mode,E),f.return=c,c=f),u(c)):n(c,f)}return d}var bn=rd(!0),id=rd(!1),$r={},_t=Zt($r),Fr=Zt($r),Ur=Zt($r);function sn(e){if(e===$r)throw Error(q(174));return e}function ul(e,t){switch(ue(Ur,t),ue(Fr,e),ue(_t,$r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ku(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ku(t,e)}ae(_t),ue(_t,t)}function Hn(){ae(_t),ae(Fr),ae(Ur)}function od(e){sn(Ur.current);var t=sn(_t.current),n=Ku(t,e.type);t!==n&&(ue(Fr,e),ue(_t,n))}function sl(e){Fr.current===e&&(ae(_t),ae(Fr))}var de=Zt(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Xo=[];function ll(){for(var e=0;e<Xo.length;e++)Xo[e]._workInProgressVersionPrimary=null;Xo.length=0}var Mi=Dt.ReactCurrentDispatcher,Zo=Dt.ReactCurrentBatchConfig,dn=0,pe=null,_e=null,ke=null,oo=!1,Sr=!1,Br=0,Sv=0;function Te(){throw Error(q(321))}function al(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ct(e[n],t[n]))return!1;return!0}function cl(e,t,n,r,i,o){if(dn=o,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mi.current=e===null||e.memoizedState===null?xv:Iv,e=n(r,i),Sr){o=0;do{if(Sr=!1,Br=0,25<=o)throw Error(q(301));o+=1,ke=_e=null,t.updateQueue=null,Mi.current=Rv,e=n(r,i)}while(Sr)}if(Mi.current=uo,t=_e!==null&&_e.next!==null,dn=0,ke=_e=pe=null,oo=!1,t)throw Error(q(300));return e}function fl(){var e=Br!==0;return Br=0,e}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?pe.memoizedState=ke=e:ke=ke.next=e,ke}function nt(){if(_e===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=ke===null?pe.memoizedState:ke.next;if(t!==null)ke=t,_e=e;else{if(e===null)throw Error(q(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},ke===null?pe.memoizedState=ke=e:ke=ke.next=e}return ke}function jr(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=nt(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=_e,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=u=null,l=null,p=o;do{var m=p.lane;if((dn&m)===m)l!==null&&(l=l.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),r=p.hasEagerState?p.eagerState:e(r,p.action);else{var y={lane:m,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};l===null?(s=l=y,u=r):l=l.next=y,pe.lanes|=m,pn|=m}p=p.next}while(p!==null&&p!==o);l===null?u=r:l.next=s,ct(r,t.memoizedState)||(ze=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,pe.lanes|=o,pn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tu(e){var t=nt(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var u=i=i.next;do o=e(o,u.action),u=u.next;while(u!==i);ct(o,t.memoizedState)||(ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ud(){}function sd(e,t){var n=pe,r=nt(),i=t(),o=!ct(r.memoizedState,i);if(o&&(r.memoizedState=i,ze=!0),r=r.queue,dl(cd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,br(9,ad.bind(null,n,r,i,t),void 0,null),Ee===null)throw Error(q(349));dn&30||ld(n,t,i)}return i}function ld(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ad(e,t,n,r){t.value=n,t.getSnapshot=r,fd(t)&&dd(e)}function cd(e,t,n){return n(function(){fd(t)&&dd(e)})}function fd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function dd(e){var t=At(e,1);t!==null&&at(t,e,1,-1)}function Ma(e){var t=mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:e},t.queue=e,e=e.dispatch=Cv.bind(null,pe,e),[t.memoizedState,e]}function br(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pd(){return nt().memoizedState}function qi(e,t,n,r){var i=mt();pe.flags|=e,i.memoizedState=br(1|t,n,void 0,r===void 0?null:r)}function Eo(e,t,n,r){var i=nt();r=r===void 0?null:r;var o=void 0;if(_e!==null){var u=_e.memoizedState;if(o=u.destroy,r!==null&&al(r,u.deps)){i.memoizedState=br(t,n,o,r);return}}pe.flags|=e,i.memoizedState=br(1|t,n,o,r)}function qa(e,t){return qi(8390656,8,e,t)}function dl(e,t){return Eo(2048,8,e,t)}function hd(e,t){return Eo(4,2,e,t)}function vd(e,t){return Eo(4,4,e,t)}function gd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function md(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4,4,gd.bind(null,t,e),n)}function pl(){}function yd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&al(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function wd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&al(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _d(e,t,n){return dn&21?(ct(n,t)||(n=Ef(),pe.lanes|=n,pn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ze=!0),e.memoizedState=n)}function kv(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{oe=n,Zo.transition=r}}function Sd(){return nt().memoizedState}function Ev(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kd(e))Ed(t,n);else if(n=Zf(e,t,n,r),n!==null){var i=De();at(n,e,r,i),Cd(n,t,r)}}function Cv(e,t,n){var r=Qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kd(e))Ed(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,s=o(u,n);if(i.hasEagerState=!0,i.eagerState=s,ct(s,u)){var l=t.interleaved;l===null?(i.next=i,il(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Zf(e,t,i,r),n!==null&&(i=De(),at(n,e,r,i),Cd(n,t,r))}}function kd(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Ed(e,t){Sr=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vs(e,n)}}var uo={readContext:tt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},xv={readContext:tt,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:qa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qi(4194308,4,gd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return qi(4,2,e,t)},useMemo:function(e,t){var n=mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ev.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:Ma,useDebugValue:pl,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=kv.bind(null,e[1]),mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=mt();if(fe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Ee===null)throw Error(q(349));dn&30||ld(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,qa(cd.bind(null,r,o,e),[e]),r.flags|=2048,br(9,ad.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=mt(),t=Ee.identifierPrefix;if(fe){var n=It,r=xt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Br++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Sv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Iv={readContext:tt,useCallback:yd,useContext:tt,useEffect:dl,useImperativeHandle:md,useInsertionEffect:hd,useLayoutEffect:vd,useMemo:wd,useReducer:eu,useRef:pd,useState:function(){return eu(jr)},useDebugValue:pl,useDeferredValue:function(e){var t=nt();return _d(t,_e.memoizedState,e)},useTransition:function(){var e=eu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:sd,useId:Sd,unstable_isNewReconciler:!1},Rv={readContext:tt,useCallback:yd,useContext:tt,useEffect:dl,useImperativeHandle:md,useInsertionEffect:hd,useLayoutEffect:vd,useMemo:wd,useReducer:tu,useRef:pd,useState:function(){return tu(jr)},useDebugValue:pl,useDeferredValue:function(e){var t=nt();return _e===null?t.memoizedState=e:_d(t,_e.memoizedState,e)},useTransition:function(){var e=tu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:sd,useId:Sd,unstable_isNewReconciler:!1};function Vn(e,t){try{var n="",r=t;do n+=th(r),r=r.return;while(r);var i=n}catch(o){i=`
29
+ `),u=i.length-1,s=o.length-1;1<=u&&0<=s&&i[u]!==o[s];)s--;for(;1<=u&&0<=s;u--,s--)if(i[u]!==o[s]){if(u!==1||s!==1)do if(u--,s--,0>s||i[u]!==o[s]){var a=`
30
+ `+i[u].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=u&&0<=s);break}}}finally{qo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cr(e):""}function th(e){switch(e.tag){case 5:return cr(e.type);case 16:return cr("Lazy");case 13:return cr("Suspense");case 19:return cr("SuspenseList");case 0:case 2:case 15:return e=Fo(e.type,!1),e;case 11:return e=Fo(e.type.render,!1),e;case 1:return e=Fo(e.type,!0),e;default:return""}}function ju(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kn:return"Fragment";case Sn:return"Portal";case Fu:return"Profiler";case Bs:return"StrictMode";case Uu:return"Suspense";case Bu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tf:return(e.displayName||"Context")+".Consumer";case ef:return(e._context.displayName||"Context")+".Provider";case js:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bs:return t=e.displayName||null,t!==null?t:ju(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return ju(e(t))}catch{}}return null}function nh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ju(t);case 8:return t===Bs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rh(e){var t=rf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function li(e){e._valueTracker||(e._valueTracker=rh(e))}function of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bu(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uf(e,t){t=t.checked,t!=null&&Us(e,"checked",t,!1)}function Hu(e,t){uf(e,t);var n=Jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vu(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ea(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Vu(e,t,n){(t!=="number"||bi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fr=Array.isArray;function Dn(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=""+Jt(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 Ku(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return he({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ta(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(fr(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jt(n)}}function sf(e,t){var n=Jt(t.value),r=Jt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function na(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Wu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,af=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ih=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){ih.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function cf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gr.hasOwnProperty(e)&&gr[e]?(""+t).trim():t+"px"}function ff(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=cf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var oh=he({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gu(e,t){if(t){if(oh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Qu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 $u=null;function Hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ju=null,Ln=null,Mn=null;function ra(e){if(e=Qr(e)){if(typeof Ju!="function")throw Error(z(280));var t=e.stateNode;t&&(t=_o(t),Ju(e.stateNode,e.type,t))}}function df(e){Ln?Mn?Mn.push(e):Mn=[e]:Ln=e}function pf(){if(Ln){var e=Ln,t=Mn;if(Mn=Ln=null,ra(e),t)for(e=0;e<t.length;e++)ra(t[e])}}function hf(e,t){return e(t)}function vf(){}var Uo=!1;function gf(e,t,n){if(Uo)return e(t,n);Uo=!0;try{return hf(e,t,n)}finally{Uo=!1,(Ln!==null||Mn!==null)&&(vf(),pf())}}function Nr(e,t){var n=e.stateNode;if(n===null)return null;var r=_o(n);if(r===null)return null;n=r[t];e: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 e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var Yu=!1;if(Nt)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Yu=!1}function uh(e,t,n,r,i,o,u,s,a){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var mr=!1,Hi=null,Vi=!1,Xu=null,sh={onError:function(e){mr=!0,Hi=e}};function lh(e,t,n,r,i,o,u,s,a){mr=!1,Hi=null,uh.apply(sh,arguments)}function ah(e,t,n,r,i,o,u,s,a){if(lh.apply(this,arguments),mr){if(mr){var d=Hi;mr=!1,Hi=null}else throw Error(z(198));Vi||(Vi=!0,Xu=d)}}function gn(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 mf(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 ia(e){if(gn(e)!==e)throw Error(z(188))}function ch(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ia(i),e;if(o===r)return ia(i),t;o=o.sibling}throw Error(z(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u){for(s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function yf(e){return e=ch(e),e!==null?wf(e):null}function wf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wf(e);if(t!==null)return t;e=e.sibling}return null}var _f=Ke.unstable_scheduleCallback,oa=Ke.unstable_cancelCallback,fh=Ke.unstable_shouldYield,dh=Ke.unstable_requestPaint,me=Ke.unstable_now,ph=Ke.unstable_getCurrentPriorityLevel,Vs=Ke.unstable_ImmediatePriority,Sf=Ke.unstable_UserBlockingPriority,Ki=Ke.unstable_NormalPriority,hh=Ke.unstable_LowPriority,kf=Ke.unstable_IdlePriority,go=null,wt=null;function vh(e){if(wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(go,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:yh,gh=Math.log,mh=Math.LN2;function yh(e){return e>>>=0,e===0?32:31-(gh(e)/mh|0)|0}var ci=64,fi=4194304;function dr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,u=n&268435455;if(u!==0){var s=u&~i;s!==0?r=dr(s):(o&=u,o!==0&&(r=dr(o)))}else u=n&~i,u!==0?r=dr(u):o!==0&&(r=dr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),i=1<<n,r|=e[n],t&=~i;return r}function wh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _h(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var u=31-lt(o),s=1<<u,a=i[u];a===-1?(!(s&n)||s&r)&&(i[u]=wh(s,t)):a<=t&&(e.expiredLanes|=s),o&=~s}}function Zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ef(){var e=ci;return ci<<=1,!(ci&4194240)&&(ci=64),e}function Bo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function Sh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-lt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Ks(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var oe=0;function Cf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xf,Ws,If,Rf,Tf,es=!1,di=[],bt=null,Ht=null,Vt=null,Or=new Map,Ar=new Map,Ft=[],kh="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 submit".split(" ");function ua(e,t){switch(e){case"focusin":case"focusout":bt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Vt=null;break;case"pointerover":case"pointerout":Or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(t.pointerId)}}function rr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Qr(t),t!==null&&Ws(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Eh(e,t,n,r,i){switch(t){case"focusin":return bt=rr(bt,e,t,n,r,i),!0;case"dragenter":return Ht=rr(Ht,e,t,n,r,i),!0;case"mouseover":return Vt=rr(Vt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Or.set(o,rr(Or.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ar.set(o,rr(Ar.get(o)||null,e,t,n,r,i)),!0}return!1}function Nf(e){var t=on(e.target);if(t!==null){var n=gn(t);if(n!==null){if(t=n.tag,t===13){if(t=mf(n),t!==null){e.blockedOn=t,Tf(e.priority,function(){If(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 Ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ts(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$u=r,n.target.dispatchEvent(r),$u=null}else return t=Qr(n),t!==null&&Ws(t),e.blockedOn=n,!1;t.shift()}return!0}function sa(e,t,n){Ai(e)&&n.delete(t)}function Ch(){es=!1,bt!==null&&Ai(bt)&&(bt=null),Ht!==null&&Ai(Ht)&&(Ht=null),Vt!==null&&Ai(Vt)&&(Vt=null),Or.forEach(sa),Ar.forEach(sa)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,es||(es=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,Ch)))}function Pr(e){function t(i){return ir(i,e)}if(0<di.length){ir(di[0],e);for(var n=1;n<di.length;n++){var r=di[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bt!==null&&ir(bt,e),Ht!==null&&ir(Ht,e),Vt!==null&&ir(Vt,e),Or.forEach(t),Ar.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Nf(n),n.blockedOn===null&&Ft.shift()}var zn=Dt.ReactCurrentBatchConfig,Gi=!0;function xh(e,t,n,r){var i=oe,o=zn.transition;zn.transition=null;try{oe=1,Gs(e,t,n,r)}finally{oe=i,zn.transition=o}}function Ih(e,t,n,r){var i=oe,o=zn.transition;zn.transition=null;try{oe=4,Gs(e,t,n,r)}finally{oe=i,zn.transition=o}}function Gs(e,t,n,r){if(Gi){var i=ts(e,t,n,r);if(i===null)Jo(e,t,r,Qi,n),ua(e,r);else if(Eh(i,e,t,n,r))r.stopPropagation();else if(ua(e,r),t&4&&-1<kh.indexOf(e)){for(;i!==null;){var o=Qr(i);if(o!==null&&xf(o),o=ts(e,t,n,r),o===null&&Jo(e,t,r,Qi,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Jo(e,t,r,null,n)}}var Qi=null;function ts(e,t,n,r){if(Qi=null,e=Hs(r),e=on(e),e!==null)if(t=gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mf(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 Qi=e,null}function Of(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ph()){case Vs:return 1;case Sf:return 4;case Ki:case hh:return 16;case kf:return 536870912;default:return 16}default:return 16}}var Bt=null,Qs=null,Pi=null;function Af(){if(Pi)return Pi;var e,t=Qs,n=t.length,r,i="value"in Bt?Bt.value:Bt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===i[o-r];r++);return Pi=i.slice(e,1<r?1-r:void 0)}function Di(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 pi(){return!0}function la(){return!1}function Ge(e){function t(n,r,i,o,u){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=u,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?pi:la,this.isPropagationStopped=la,this}return he(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pi)},persist:function(){},isPersistent:pi}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$s=Ge(Gn),Gr=he({},Gn,{view:0,detail:0}),Rh=Ge(Gr),jo,bo,or,mo=he({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Js,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!==or&&(or&&e.type==="mousemove"?(jo=e.screenX-or.screenX,bo=e.screenY-or.screenY):bo=jo=0,or=e),jo)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),aa=Ge(mo),Th=he({},mo,{dataTransfer:0}),Nh=Ge(Th),Oh=he({},Gr,{relatedTarget:0}),Ho=Ge(Oh),Ah=he({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ph=Ge(Ah),Dh=he({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lh=Ge(Dh),Mh=he({},Gn,{data:0}),ca=Ge(Mh),zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qh={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"},Fh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fh[e])?!!t[e]:!1}function Js(){return Uh}var Bh=he({},Gr,{key:function(e){if(e.key){var t=zh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Js,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jh=Ge(Bh),bh=he({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fa=Ge(bh),Hh=he({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Js}),Vh=Ge(Hh),Kh=he({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wh=Ge(Kh),Gh=he({},mo,{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}),Qh=Ge(Gh),$h=[9,13,27,32],Ys=Nt&&"CompositionEvent"in window,yr=null;Nt&&"documentMode"in document&&(yr=document.documentMode);var Jh=Nt&&"TextEvent"in window&&!yr,Pf=Nt&&(!Ys||yr&&8<yr&&11>=yr),da=String.fromCharCode(32),pa=!1;function Df(e,t){switch(e){case"keyup":return $h.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Yh(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(pa=!0,da);case"textInput":return e=t.data,e===da&&pa?null:e;default:return null}}function Xh(e,t){if(En)return e==="compositionend"||!Ys&&Df(e,t)?(e=Af(),Pi=Qs=Bt=null,En=!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 Pf&&t.locale!=="ko"?null:t.data;default:return null}}var Zh={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 ha(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zh[e.type]:t==="textarea"}function Mf(e,t,n,r){df(r),t=$i(t,"onChange"),0<t.length&&(n=new $s("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wr=null,Dr=null;function ev(e){Wf(e,0)}function yo(e){var t=In(e);if(of(t))return e}function tv(e,t){if(e==="change")return t}var zf=!1;if(Nt){var Vo;if(Nt){var Ko="oninput"in document;if(!Ko){var va=document.createElement("div");va.setAttribute("oninput","return;"),Ko=typeof va.oninput=="function"}Vo=Ko}else Vo=!1;zf=Vo&&(!document.documentMode||9<document.documentMode)}function ga(){wr&&(wr.detachEvent("onpropertychange",qf),Dr=wr=null)}function qf(e){if(e.propertyName==="value"&&yo(Dr)){var t=[];Mf(t,Dr,e,Hs(e)),gf(ev,t)}}function nv(e,t,n){e==="focusin"?(ga(),wr=t,Dr=n,wr.attachEvent("onpropertychange",qf)):e==="focusout"&&ga()}function rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yo(Dr)}function iv(e,t){if(e==="click")return yo(t)}function ov(e,t){if(e==="input"||e==="change")return yo(t)}function uv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:uv;function Lr(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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(!qu.call(t,i)||!ct(e[i],t[i]))return!1}return!0}function ma(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ya(e,t){var n=ma(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}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ma(n)}}function Ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(){for(var e=window,t=bi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bi(e.document)}return t}function Xs(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")}function sv(e){var t=Uf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ff(n.ownerDocument.documentElement,n)){if(r!==null&&Xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=ya(n,o);var u=ya(n,r);i&&u&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lv=Nt&&"documentMode"in document&&11>=document.documentMode,Cn=null,ns=null,_r=null,rs=!1;function wa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rs||Cn==null||Cn!==bi(r)||(r=Cn,"selectionStart"in r&&Xs(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}),_r&&Lr(_r,r)||(_r=r,r=$i(ns,"onSelect"),0<r.length&&(t=new $s("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cn)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xn={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},Wo={},Bf={};Nt&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete xn.animationend.animation,delete xn.animationiteration.animation,delete xn.animationstart.animation),"TransitionEvent"in window||delete xn.transitionend.transition);function wo(e){if(Wo[e])return Wo[e];if(!xn[e])return e;var t=xn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return Wo[e]=t[n];return e}var jf=wo("animationend"),bf=wo("animationiteration"),Hf=wo("animationstart"),Vf=wo("transitionend"),Kf=new Map,_a="abort auxClick 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(" ");function Xt(e,t){Kf.set(e,t),vn(t,[e])}for(var Go=0;Go<_a.length;Go++){var Qo=_a[Go],av=Qo.toLowerCase(),cv=Qo[0].toUpperCase()+Qo.slice(1);Xt(av,"on"+cv)}Xt(jf,"onAnimationEnd");Xt(bf,"onAnimationIteration");Xt(Hf,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(Vf,"onTransitionEnd");Un("onMouseEnter",["mouseout","mouseover"]);Un("onMouseLeave",["mouseout","mouseover"]);Un("onPointerEnter",["pointerout","pointerover"]);Un("onPointerLeave",["pointerout","pointerover"]);vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vn("onBeforeInput",["compositionend","keypress","textInput","paste"]);vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(" "),fv=new Set("cancel close invalid load scroll toggle".split(" ").concat(pr));function Sa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ah(r,t,void 0,e),e.currentTarget=null}function Wf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var u=r.length-1;0<=u;u--){var s=r[u],a=s.instance,d=s.currentTarget;if(s=s.listener,a!==o&&i.isPropagationStopped())break e;Sa(i,s,d),o=a}else for(u=0;u<r.length;u++){if(s=r[u],a=s.instance,d=s.currentTarget,s=s.listener,a!==o&&i.isPropagationStopped())break e;Sa(i,s,d),o=a}}}if(Vi)throw e=Xu,Vi=!1,Xu=null,e}function le(e,t){var n=t[ls];n===void 0&&(n=t[ls]=new Set);var r=e+"__bubble";n.has(r)||(Gf(t,e,2,!1),n.add(r))}function $o(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){if(!e[vi]){e[vi]=!0,Zc.forEach(function(n){n!=="selectionchange"&&(fv.has(n)||$o(n,!1,e),$o(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,$o("selectionchange",!1,t))}}function Gf(e,t,n,r){switch(Of(t)){case 1:var i=xh;break;case 4:i=Ih;break;default:i=Gs}n=i.bind(null,t,n,e),i=void 0,!Yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Jo(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(u===4)for(u=r.return;u!==null;){var a=u.tag;if((a===3||a===4)&&(a=u.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;u=u.return}for(;s!==null;){if(u=on(s),u===null)return;if(a=u.tag,a===5||a===6){r=o=u;continue e}s=s.parentNode}}r=r.return}gf(function(){var d=o,m=Hs(n),y=[];e:{var k=Kf.get(e);if(k!==void 0){var _=$s,w=e;switch(e){case"keypress":if(Di(n)===0)break e;case"keydown":case"keyup":_=jh;break;case"focusin":w="focus",_=Ho;break;case"focusout":w="blur",_=Ho;break;case"beforeblur":case"afterblur":_=Ho;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=aa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Nh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Vh;break;case jf:case bf:case Hf:_=Ph;break;case Vf:_=Wh;break;case"scroll":_=Rh;break;case"wheel":_=Qh;break;case"copy":case"cut":case"paste":_=Lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=fa}var l=(t&4)!==0,p=!l&&e==="scroll",f=l?k!==null?k+"Capture":null:k;l=[];for(var c=d,h;c!==null;){h=c;var E=h.stateNode;if(h.tag===5&&E!==null&&(h=E,f!==null&&(E=Nr(c,f),E!=null&&l.push(zr(c,E,h)))),p)break;c=c.return}0<l.length&&(k=new _(k,w,null,n,m),y.push({event:k,listeners:l}))}}if(!(t&7)){e:{if(k=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",k&&n!==$u&&(w=n.relatedTarget||n.fromElement)&&(on(w)||w[Ot]))break e;if((_||k)&&(k=m.window===m?m:(k=m.ownerDocument)?k.defaultView||k.parentWindow:window,_?(w=n.relatedTarget||n.toElement,_=d,w=w?on(w):null,w!==null&&(p=gn(w),w!==p||w.tag!==5&&w.tag!==6)&&(w=null)):(_=null,w=d),_!==w)){if(l=aa,E="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(l=fa,E="onPointerLeave",f="onPointerEnter",c="pointer"),p=_==null?k:In(_),h=w==null?k:In(w),k=new l(E,c+"leave",_,n,m),k.target=p,k.relatedTarget=h,E=null,on(m)===d&&(l=new l(f,c+"enter",w,n,m),l.target=h,l.relatedTarget=p,E=l),p=E,_&&w)t:{for(l=_,f=w,c=0,h=l;h;h=_n(h))c++;for(h=0,E=f;E;E=_n(E))h++;for(;0<c-h;)l=_n(l),c--;for(;0<h-c;)f=_n(f),h--;for(;c--;){if(l===f||f!==null&&l===f.alternate)break t;l=_n(l),f=_n(f)}l=null}else l=null;_!==null&&ka(y,k,_,l,!1),w!==null&&p!==null&&ka(y,p,w,l,!0)}}e:{if(k=d?In(d):window,_=k.nodeName&&k.nodeName.toLowerCase(),_==="select"||_==="input"&&k.type==="file")var x=tv;else if(ha(k))if(zf)x=ov;else{x=rv;var S=nv}else(_=k.nodeName)&&_.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(x=iv);if(x&&(x=x(e,d))){Mf(y,x,n,m);break e}S&&S(e,k,d),e==="focusout"&&(S=k._wrapperState)&&S.controlled&&k.type==="number"&&Vu(k,"number",k.value)}switch(S=d?In(d):window,e){case"focusin":(ha(S)||S.contentEditable==="true")&&(Cn=S,ns=d,_r=null);break;case"focusout":_r=ns=Cn=null;break;case"mousedown":rs=!0;break;case"contextmenu":case"mouseup":case"dragend":rs=!1,wa(y,n,m);break;case"selectionchange":if(lv)break;case"keydown":case"keyup":wa(y,n,m)}var v;if(Ys)e:{switch(e){case"compositionstart":var g="onCompositionStart";break e;case"compositionend":g="onCompositionEnd";break e;case"compositionupdate":g="onCompositionUpdate";break e}g=void 0}else En?Df(e,n)&&(g="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(g="onCompositionStart");g&&(Pf&&n.locale!=="ko"&&(En||g!=="onCompositionStart"?g==="onCompositionEnd"&&En&&(v=Af()):(Bt=m,Qs="value"in Bt?Bt.value:Bt.textContent,En=!0)),S=$i(d,g),0<S.length&&(g=new ca(g,e,null,n,m),y.push({event:g,listeners:S}),v?g.data=v:(v=Lf(n),v!==null&&(g.data=v)))),(v=Jh?Yh(e,n):Xh(e,n))&&(d=$i(d,"onBeforeInput"),0<d.length&&(m=new ca("onBeforeInput","beforeinput",null,n,m),y.push({event:m,listeners:d}),m.data=v))}Wf(y,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $i(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Nr(e,n),o!=null&&r.unshift(zr(e,o,i)),o=Nr(e,t),o!=null&&r.push(zr(e,o,i))),e=e.return}return r}function _n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ka(e,t,n,r,i){for(var o=t._reactName,u=[];n!==null&&n!==r;){var s=n,a=s.alternate,d=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&d!==null&&(s=d,i?(a=Nr(n,o),a!=null&&u.unshift(zr(n,a,s))):i||(a=Nr(n,o),a!=null&&u.push(zr(n,a,s)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var dv=/\r\n?/g,pv=/\u0000|\uFFFD/g;function Ea(e){return(typeof e=="string"?e:""+e).replace(dv,`
31
+ `).replace(pv,"")}function gi(e,t,n){if(t=Ea(t),Ea(e)!==t&&n)throw Error(z(425))}function Ji(){}var is=null,os=null;function us(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ss=typeof setTimeout=="function"?setTimeout:void 0,hv=typeof clearTimeout=="function"?clearTimeout:void 0,Ca=typeof Promise=="function"?Promise:void 0,vv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ca<"u"?function(e){return Ca.resolve(null).then(e).catch(gv)}:ss;function gv(e){setTimeout(function(){throw e})}function Yo(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==="/$"){if(r===0){e.removeChild(i),Pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Pr(t)}function Kt(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==="$?")break;if(t==="/$")return null}}return e}function xa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Qn=Math.random().toString(36).slice(2),yt="__reactFiber$"+Qn,qr="__reactProps$"+Qn,Ot="__reactContainer$"+Qn,ls="__reactEvents$"+Qn,mv="__reactListeners$"+Qn,yv="__reactHandles$"+Qn;function on(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xa(e);e!==null;){if(n=e[yt])return n;e=xa(e)}return t}e=n,n=e.parentNode}return null}function Qr(e){return e=e[yt]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function In(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function _o(e){return e[qr]||null}var as=[],Rn=-1;function Zt(e){return{current:e}}function ae(e){0>Rn||(e.current=as[Rn],as[Rn]=null,Rn--)}function ue(e,t){Rn++,as[Rn]=e.current,e.current=t}var Yt={},Ae=Zt(Yt),Fe=Zt(!1),cn=Yt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ue(e){return e=e.childContextTypes,e!=null}function Yi(){ae(Fe),ae(Ae)}function Ia(e,t,n){if(Ae.current!==Yt)throw Error(z(168));ue(Ae,t),ue(Fe,n)}function Qf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,nh(e)||"Unknown",i));return he({},n,r)}function Xi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,cn=Ae.current,ue(Ae,e),ue(Fe,Fe.current),!0}function Ra(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Qf(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,ae(Fe),ae(Ae),ue(Ae,e)):ae(Fe),ue(Fe,n)}var xt=null,So=!1,Xo=!1;function $f(e){xt===null?xt=[e]:xt.push(e)}function wv(e){So=!0,$f(e)}function en(){if(!Xo&&xt!==null){Xo=!0;var e=0,t=oe;try{var n=xt;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}xt=null,So=!1}catch(i){throw xt!==null&&(xt=xt.slice(e+1)),_f(Vs,en),i}finally{oe=t,Xo=!1}}return null}var Tn=[],Nn=0,Zi=null,eo=0,Ye=[],Xe=0,fn=null,It=1,Rt="";function nn(e,t){Tn[Nn++]=eo,Tn[Nn++]=Zi,Zi=e,eo=t}function Jf(e,t,n){Ye[Xe++]=It,Ye[Xe++]=Rt,Ye[Xe++]=fn,fn=e;var r=It;e=Rt;var i=32-lt(r)-1;r&=~(1<<i),n+=1;var o=32-lt(t)+i;if(30<o){var u=i-i%5;o=(r&(1<<u)-1).toString(32),r>>=u,i-=u,It=1<<32-lt(t)+i|n<<i|r,Rt=o+e}else It=1<<o|n<<i|r,Rt=e}function Zs(e){e.return!==null&&(nn(e,1),Jf(e,1,0))}function el(e){for(;e===Zi;)Zi=Tn[--Nn],Tn[Nn]=null,eo=Tn[--Nn],Tn[Nn]=null;for(;e===fn;)fn=Ye[--Xe],Ye[Xe]=null,Rt=Ye[--Xe],Ye[Xe]=null,It=Ye[--Xe],Ye[Xe]=null}var Ve=null,He=null,fe=!1,st=null;function Yf(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ve=e,He=Kt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ve=e,He=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fn!==null?{id:It,overflow:Rt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ve=e,He=null,!0):!1;default:return!1}}function cs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function fs(e){if(fe){var t=He;if(t){var n=t;if(!Ta(e,t)){if(cs(e))throw Error(z(418));t=Kt(n.nextSibling);var r=Ve;t&&Ta(e,t)?Yf(r,n):(e.flags=e.flags&-4097|2,fe=!1,Ve=e)}}else{if(cs(e))throw Error(z(418));e.flags=e.flags&-4097|2,fe=!1,Ve=e}}}function Na(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ve=e}function mi(e){if(e!==Ve)return!1;if(!fe)return Na(e),fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!us(e.type,e.memoizedProps)),t&&(t=He)){if(cs(e))throw Xf(),Error(z(418));for(;t;)Yf(e,t),t=Kt(t.nextSibling)}if(Na(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){He=Kt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}He=null}}else He=Ve?Kt(e.stateNode.nextSibling):null;return!0}function Xf(){for(var e=He;e;)e=Kt(e.nextSibling)}function jn(){He=Ve=null,fe=!1}function tl(e){st===null?st=[e]:st.push(e)}var _v=Dt.ReactCurrentBatchConfig;function ot(e,t){if(e&&e.defaultProps){t=he({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var to=Zt(null),no=null,On=null,nl=null;function rl(){nl=On=no=null}function il(e){var t=to.current;ae(to),e._currentValue=t}function ds(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function qn(e,t){no=e,nl=On=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function tt(e){var t=e._currentValue;if(nl!==e)if(e={context:e,memoizedValue:t,next:null},On===null){if(no===null)throw Error(z(308));On=e,no.dependencies={lanes:0,firstContext:e}}else On=On.next=e;return t}var un=null;function ol(e){un===null?un=[e]:un.push(e)}function Zf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ol(t)):(n.next=i.next,i.next=n),t.interleaved=n,At(e,r)}function At(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qt=!1;function ul(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,At(e,n)}return i=r.interleaved,i===null?(t.next=t,ol(r)):(t.next=i.next,i.next=t),r.interleaved=t,At(e,n)}function Li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ks(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ro(e,t,n,r){var i=e.updateQueue;qt=!1;var o=i.firstBaseUpdate,u=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,d=a.next;a.next=null,u===null?o=d:u.next=d,u=a;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==u&&(s===null?m.firstBaseUpdate=d:s.next=d,m.lastBaseUpdate=a))}if(o!==null){var y=i.baseState;u=0,m=d=a=null,s=o;do{var k=s.lane,_=s.eventTime;if((r&k)===k){m!==null&&(m=m.next={eventTime:_,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,l=s;switch(k=t,_=n,l.tag){case 1:if(w=l.payload,typeof w=="function"){y=w.call(_,y,k);break e}y=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=l.payload,k=typeof w=="function"?w.call(_,y,k):w,k==null)break e;y=he({},y,k);break e;case 2:qt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,k=i.effects,k===null?i.effects=[s]:k.push(s))}else _={eventTime:_,lane:k,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(d=m=_,a=y):m=m.next=_,u|=k;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;k=s,s=k.next,k.next=null,i.lastBaseUpdate=k,i.shared.pending=null}}while(1);if(m===null&&(a=y),i.baseState=a,i.firstBaseUpdate=d,i.lastBaseUpdate=m,t=i.shared.interleaved,t!==null){i=t;do u|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);pn|=u,e.lanes=u,e.memoizedState=y}}function Aa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(z(191,i));i.call(r)}}}var td=new Xc.Component().refs;function ps(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:he({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ko={isMounted:function(e){return(e=e._reactInternals)?gn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=De(),i=Qt(e),o=Tt(r,i);o.payload=t,n!=null&&(o.callback=n),t=Wt(e,o,i),t!==null&&(at(t,e,i,r),Li(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=De(),i=Qt(e),o=Tt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Wt(e,o,i),t!==null&&(at(t,e,i,r),Li(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=De(),r=Qt(e),i=Tt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wt(e,i,r),t!==null&&(at(t,e,r,n),Li(t,e,r))}};function Pa(e,t,n,r,i,o,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,u):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,o):!0}function nd(e,t,n){var r=!1,i=Yt,o=t.contextType;return typeof o=="object"&&o!==null?o=tt(o):(i=Ue(t)?cn:Ae.current,r=t.contextTypes,o=(r=r!=null)?Bn(e,i):Yt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ko,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Da(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&&ko.enqueueReplaceState(t,t.state,null)}function hs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=td,ul(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=tt(o):(o=Ue(t)?cn:Ae.current,i.context=Bn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ps(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ko.enqueueReplaceState(i,i.state,null),ro(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ur(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(u){var s=i.refs;s===td&&(s=i.refs={}),u===null?delete s[o]:s[o]=u},t._stringRef=o,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function La(e){var t=e._init;return t(e._payload)}function rd(e){function t(f,c){if(e){var h=f.deletions;h===null?(f.deletions=[c],f.flags|=16):h.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function i(f,c){return f=$t(f,c),f.index=0,f.sibling=null,f}function o(f,c,h){return f.index=h,e?(h=f.alternate,h!==null?(h=h.index,h<c?(f.flags|=2,c):h):(f.flags|=2,c)):(f.flags|=1048576,c)}function u(f){return e&&f.alternate===null&&(f.flags|=2),f}function s(f,c,h,E){return c===null||c.tag!==6?(c=ou(h,f.mode,E),c.return=f,c):(c=i(c,h),c.return=f,c)}function a(f,c,h,E){var x=h.type;return x===kn?m(f,c,h.props.children,E,h.key):c!==null&&(c.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===zt&&La(x)===c.type)?(E=i(c,h.props),E.ref=ur(f,c,h),E.return=f,E):(E=Bi(h.type,h.key,h.props,null,f.mode,E),E.ref=ur(f,c,h),E.return=f,E)}function d(f,c,h,E){return c===null||c.tag!==4||c.stateNode.containerInfo!==h.containerInfo||c.stateNode.implementation!==h.implementation?(c=uu(h,f.mode,E),c.return=f,c):(c=i(c,h.children||[]),c.return=f,c)}function m(f,c,h,E,x){return c===null||c.tag!==7?(c=an(h,f.mode,E,x),c.return=f,c):(c=i(c,h),c.return=f,c)}function y(f,c,h){if(typeof c=="string"&&c!==""||typeof c=="number")return c=ou(""+c,f.mode,h),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case si:return h=Bi(c.type,c.key,c.props,null,f.mode,h),h.ref=ur(f,null,c),h.return=f,h;case Sn:return c=uu(c,f.mode,h),c.return=f,c;case zt:var E=c._init;return y(f,E(c._payload),h)}if(fr(c)||tr(c))return c=an(c,f.mode,h,null),c.return=f,c;yi(f,c)}return null}function k(f,c,h,E){var x=c!==null?c.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return x!==null?null:s(f,c,""+h,E);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case si:return h.key===x?a(f,c,h,E):null;case Sn:return h.key===x?d(f,c,h,E):null;case zt:return x=h._init,k(f,c,x(h._payload),E)}if(fr(h)||tr(h))return x!==null?null:m(f,c,h,E,null);yi(f,h)}return null}function _(f,c,h,E,x){if(typeof E=="string"&&E!==""||typeof E=="number")return f=f.get(h)||null,s(c,f,""+E,x);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case si:return f=f.get(E.key===null?h:E.key)||null,a(c,f,E,x);case Sn:return f=f.get(E.key===null?h:E.key)||null,d(c,f,E,x);case zt:var S=E._init;return _(f,c,h,S(E._payload),x)}if(fr(E)||tr(E))return f=f.get(h)||null,m(c,f,E,x,null);yi(c,E)}return null}function w(f,c,h,E){for(var x=null,S=null,v=c,g=c=0,I=null;v!==null&&g<h.length;g++){v.index>g?(I=v,v=null):I=v.sibling;var C=k(f,v,h[g],E);if(C===null){v===null&&(v=I);break}e&&v&&C.alternate===null&&t(f,v),c=o(C,c,g),S===null?x=C:S.sibling=C,S=C,v=I}if(g===h.length)return n(f,v),fe&&nn(f,g),x;if(v===null){for(;g<h.length;g++)v=y(f,h[g],E),v!==null&&(c=o(v,c,g),S===null?x=v:S.sibling=v,S=v);return fe&&nn(f,g),x}for(v=r(f,v);g<h.length;g++)I=_(v,f,g,h[g],E),I!==null&&(e&&I.alternate!==null&&v.delete(I.key===null?g:I.key),c=o(I,c,g),S===null?x=I:S.sibling=I,S=I);return e&&v.forEach(function(O){return t(f,O)}),fe&&nn(f,g),x}function l(f,c,h,E){var x=tr(h);if(typeof x!="function")throw Error(z(150));if(h=x.call(h),h==null)throw Error(z(151));for(var S=x=null,v=c,g=c=0,I=null,C=h.next();v!==null&&!C.done;g++,C=h.next()){v.index>g?(I=v,v=null):I=v.sibling;var O=k(f,v,C.value,E);if(O===null){v===null&&(v=I);break}e&&v&&O.alternate===null&&t(f,v),c=o(O,c,g),S===null?x=O:S.sibling=O,S=O,v=I}if(C.done)return n(f,v),fe&&nn(f,g),x;if(v===null){for(;!C.done;g++,C=h.next())C=y(f,C.value,E),C!==null&&(c=o(C,c,g),S===null?x=C:S.sibling=C,S=C);return fe&&nn(f,g),x}for(v=r(f,v);!C.done;g++,C=h.next())C=_(v,f,g,C.value,E),C!==null&&(e&&C.alternate!==null&&v.delete(C.key===null?g:C.key),c=o(C,c,g),S===null?x=C:S.sibling=C,S=C);return e&&v.forEach(function(N){return t(f,N)}),fe&&nn(f,g),x}function p(f,c,h,E){if(typeof h=="object"&&h!==null&&h.type===kn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case si:e:{for(var x=h.key,S=c;S!==null;){if(S.key===x){if(x=h.type,x===kn){if(S.tag===7){n(f,S.sibling),c=i(S,h.props.children),c.return=f,f=c;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===zt&&La(x)===S.type){n(f,S.sibling),c=i(S,h.props),c.ref=ur(f,S,h),c.return=f,f=c;break e}n(f,S);break}else t(f,S);S=S.sibling}h.type===kn?(c=an(h.props.children,f.mode,E,h.key),c.return=f,f=c):(E=Bi(h.type,h.key,h.props,null,f.mode,E),E.ref=ur(f,c,h),E.return=f,f=E)}return u(f);case Sn:e:{for(S=h.key;c!==null;){if(c.key===S)if(c.tag===4&&c.stateNode.containerInfo===h.containerInfo&&c.stateNode.implementation===h.implementation){n(f,c.sibling),c=i(c,h.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=uu(h,f.mode,E),c.return=f,f=c}return u(f);case zt:return S=h._init,p(f,c,S(h._payload),E)}if(fr(h))return w(f,c,h,E);if(tr(h))return l(f,c,h,E);yi(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,c!==null&&c.tag===6?(n(f,c.sibling),c=i(c,h),c.return=f,f=c):(n(f,c),c=ou(h,f.mode,E),c.return=f,f=c),u(f)):n(f,c)}return p}var bn=rd(!0),id=rd(!1),$r={},_t=Zt($r),Fr=Zt($r),Ur=Zt($r);function sn(e){if(e===$r)throw Error(z(174));return e}function sl(e,t){switch(ue(Ur,t),ue(Fr,e),ue(_t,$r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wu(t,e)}ae(_t),ue(_t,t)}function Hn(){ae(_t),ae(Fr),ae(Ur)}function od(e){sn(Ur.current);var t=sn(_t.current),n=Wu(t,e.type);t!==n&&(ue(Fr,e),ue(_t,n))}function ll(e){Fr.current===e&&(ae(_t),ae(Fr))}var de=Zt(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Zo=[];function al(){for(var e=0;e<Zo.length;e++)Zo[e]._workInProgressVersionPrimary=null;Zo.length=0}var Mi=Dt.ReactCurrentDispatcher,eu=Dt.ReactCurrentBatchConfig,dn=0,pe=null,_e=null,ke=null,oo=!1,Sr=!1,Br=0,Sv=0;function Te(){throw Error(z(321))}function cl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ct(e[n],t[n]))return!1;return!0}function fl(e,t,n,r,i,o){if(dn=o,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mi.current=e===null||e.memoizedState===null?xv:Iv,e=n(r,i),Sr){o=0;do{if(Sr=!1,Br=0,25<=o)throw Error(z(301));o+=1,ke=_e=null,t.updateQueue=null,Mi.current=Rv,e=n(r,i)}while(Sr)}if(Mi.current=uo,t=_e!==null&&_e.next!==null,dn=0,ke=_e=pe=null,oo=!1,t)throw Error(z(300));return e}function dl(){var e=Br!==0;return Br=0,e}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?pe.memoizedState=ke=e:ke=ke.next=e,ke}function nt(){if(_e===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=ke===null?pe.memoizedState:ke.next;if(t!==null)ke=t,_e=e;else{if(e===null)throw Error(z(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},ke===null?pe.memoizedState=ke=e:ke=ke.next=e}return ke}function jr(e,t){return typeof t=="function"?t(e):t}function tu(e){var t=nt(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=_e,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=u=null,a=null,d=o;do{var m=d.lane;if((dn&m)===m)a!==null&&(a=a.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var y={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};a===null?(s=a=y,u=r):a=a.next=y,pe.lanes|=m,pn|=m}d=d.next}while(d!==null&&d!==o);a===null?u=r:a.next=s,ct(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,pe.lanes|=o,pn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function nu(e){var t=nt(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var u=i=i.next;do o=e(o,u.action),u=u.next;while(u!==i);ct(o,t.memoizedState)||(qe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ud(){}function sd(e,t){var n=pe,r=nt(),i=t(),o=!ct(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,pl(cd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,br(9,ad.bind(null,n,r,i,t),void 0,null),Ee===null)throw Error(z(349));dn&30||ld(n,t,i)}return i}function ld(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ad(e,t,n,r){t.value=n,t.getSnapshot=r,fd(t)&&dd(e)}function cd(e,t,n){return n(function(){fd(t)&&dd(e)})}function fd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function dd(e){var t=At(e,1);t!==null&&at(t,e,1,-1)}function Ma(e){var t=mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:e},t.queue=e,e=e.dispatch=Cv.bind(null,pe,e),[t.memoizedState,e]}function br(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function pd(){return nt().memoizedState}function zi(e,t,n,r){var i=mt();pe.flags|=e,i.memoizedState=br(1|t,n,void 0,r===void 0?null:r)}function Eo(e,t,n,r){var i=nt();r=r===void 0?null:r;var o=void 0;if(_e!==null){var u=_e.memoizedState;if(o=u.destroy,r!==null&&cl(r,u.deps)){i.memoizedState=br(t,n,o,r);return}}pe.flags|=e,i.memoizedState=br(1|t,n,o,r)}function za(e,t){return zi(8390656,8,e,t)}function pl(e,t){return Eo(2048,8,e,t)}function hd(e,t){return Eo(4,2,e,t)}function vd(e,t){return Eo(4,4,e,t)}function gd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function md(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4,4,gd.bind(null,t,e),n)}function hl(){}function yd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function wd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _d(e,t,n){return dn&21?(ct(n,t)||(n=Ef(),pe.lanes|=n,pn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function kv(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=eu.transition;eu.transition={};try{e(!1),t()}finally{oe=n,eu.transition=r}}function Sd(){return nt().memoizedState}function Ev(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kd(e))Ed(t,n);else if(n=Zf(e,t,n,r),n!==null){var i=De();at(n,e,r,i),Cd(n,t,r)}}function Cv(e,t,n){var r=Qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kd(e))Ed(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,s=o(u,n);if(i.hasEagerState=!0,i.eagerState=s,ct(s,u)){var a=t.interleaved;a===null?(i.next=i,ol(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Zf(e,t,i,r),n!==null&&(i=De(),at(n,e,r,i),Cd(n,t,r))}}function kd(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Ed(e,t){Sr=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ks(e,n)}}var uo={readContext:tt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},xv={readContext:tt,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:za,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zi(4194308,4,gd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return zi(4,2,e,t)},useMemo:function(e,t){var n=mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ev.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:Ma,useDebugValue:hl,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=kv.bind(null,e[1]),mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=mt();if(fe){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Ee===null)throw Error(z(349));dn&30||ld(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,za(cd.bind(null,r,o,e),[e]),r.flags|=2048,br(9,ad.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=mt(),t=Ee.identifierPrefix;if(fe){var n=Rt,r=It;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Br++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Sv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Iv={readContext:tt,useCallback:yd,useContext:tt,useEffect:pl,useImperativeHandle:md,useInsertionEffect:hd,useLayoutEffect:vd,useMemo:wd,useReducer:tu,useRef:pd,useState:function(){return tu(jr)},useDebugValue:hl,useDeferredValue:function(e){var t=nt();return _d(t,_e.memoizedState,e)},useTransition:function(){var e=tu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:sd,useId:Sd,unstable_isNewReconciler:!1},Rv={readContext:tt,useCallback:yd,useContext:tt,useEffect:pl,useImperativeHandle:md,useInsertionEffect:hd,useLayoutEffect:vd,useMemo:wd,useReducer:nu,useRef:pd,useState:function(){return nu(jr)},useDebugValue:hl,useDeferredValue:function(e){var t=nt();return _e===null?t.memoizedState=e:_d(t,_e.memoizedState,e)},useTransition:function(){var e=nu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ud,useSyncExternalStore:sd,useId:Sd,unstable_isNewReconciler:!1};function Vn(e,t){try{var n="",r=t;do n+=th(r),r=r.return;while(r);var i=n}catch(o){i=`
32
32
  Error generating stack: `+o.message+`
33
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function nu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tv=typeof WeakMap=="function"?WeakMap:Map;function xd(e,t,n){n=Rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lo||(lo=!0,Cs=r),hs(e,t)},n}function Id(e,t,n){n=Rt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hs(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tv;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)||(i.add(n),e=bv.bind(null,e,t,n),t.then(e,e))}function Fa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ua(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Rt(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var Nv=Dt.ReactCurrentOwner,ze=!1;function Pe(e,t,n,r){t.child=e===null?id(t,null,n,r):bn(t,e.child,n,r)}function Ba(e,t,n,r,i){n=n.render;var o=t.ref;return zn(t,i),r=cl(e,t,n,r,o,i),n=fl(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(fe&&n&&Xs(t),t.flags|=1,Pe(e,t,r,i),t.child)}function ja(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Sl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Rd(e,t,o,r,i)):(e=Bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:Lr,n(u,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=$t(o,r),e.ref=t.ref,e.return=t,t.child=e}function Rd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Lr(o,r)&&e.ref===t.ref)if(ze=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ze=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return vs(e,t,n,r,i)}function Td(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Pn,be),be|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Pn,be),be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ue(Pn,be),be|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ue(Pn,be),be|=r;return Pe(e,t,i,n),t.child}function Nd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vs(e,t,n,r,i){var o=Ue(n)?cn:Ae.current;return o=Bn(t,o),zn(t,i),n=cl(e,t,n,r,o,i),r=fl(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(fe&&r&&Xs(t),t.flags|=1,Pe(e,t,n,i),t.child)}function ba(e,t,n,r,i){if(Ue(n)){var o=!0;Xi(t)}else o=!1;if(zn(t,i),t.stateNode===null)zi(e,t),nd(t,n,r),ps(t,n,r,i),r=!0;else if(e===null){var u=t.stateNode,s=t.memoizedProps;u.props=s;var l=u.context,p=n.contextType;typeof p=="object"&&p!==null?p=tt(p):(p=Ue(n)?cn:Ae.current,p=Bn(t,p));var m=n.getDerivedStateFromProps,y=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function";y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==r||l!==p)&&Da(t,u,r,p),zt=!1;var k=t.memoizedState;u.state=k,ro(t,r,u,i),l=t.memoizedState,s!==r||k!==l||Fe.current||zt?(typeof m=="function"&&(ds(t,n,m,r),l=t.memoizedState),(s=zt||Pa(t,n,s,r,k,l,p))?(y||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),u.props=r,u.state=l,u.context=p,r=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,ed(e,t),s=t.memoizedProps,p=t.type===t.elementType?s:ot(t.type,s),u.props=p,y=t.pendingProps,k=u.context,l=n.contextType,typeof l=="object"&&l!==null?l=tt(l):(l=Ue(n)?cn:Ae.current,l=Bn(t,l));var S=n.getDerivedStateFromProps;(m=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==y||k!==l)&&Da(t,u,r,l),zt=!1,k=t.memoizedState,u.state=k,ro(t,r,u,i);var w=t.memoizedState;s!==y||k!==w||Fe.current||zt?(typeof S=="function"&&(ds(t,n,S,r),w=t.memoizedState),(p=zt||Pa(t,n,p,r,k,w,l)||!1)?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,w,l),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,w,l)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),u.props=r,u.state=w,u.context=l,r=p):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return gs(e,t,n,r,o,i)}function gs(e,t,n,r,i,o){Nd(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return i&&Ra(t,n,!1),Pt(e,t,o);r=t.stateNode,Nv.current=t;var s=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=bn(t,e.child,null,o),t.child=bn(t,null,s,o)):Pe(e,t,s,o),t.memoizedState=r.state,i&&Ra(t,n,!0),t.child}function Od(e){var t=e.stateNode;t.pendingContext?Ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(e,t.context,!1),ul(e,t.containerInfo)}function Ha(e,t,n,r,i){return jn(),el(i),t.flags|=256,Pe(e,t,n,r),t.child}var ms={dehydrated:null,treeContext:null,retryLane:0};function ys(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,t,n){var r=t.pendingProps,i=de.current,o=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(de,i&1),e===null)return cs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,o?(r=t.mode,o=t.child,u={mode:"hidden",children:u},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=u):o=Io(u,r,0,null),e=an(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ys(n),t.memoizedState=ms,e):hl(t,u));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Ov(e,t,u,r,s,i,n);if(o){o=r.fallback,u=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(u&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=$t(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=$t(s,o):(o=an(o,u,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,u=e.child.memoizedState,u=u===null?ys(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~n,t.memoizedState=ms,r}return o=e.child,e=o.sibling,r=$t(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function hl(e,t){return t=Io({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wi(e,t,n,r){return r!==null&&el(r),bn(t,e.child,null,n),e=hl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ov(e,t,n,r,i,o,u){if(n)return t.flags&256?(t.flags&=-257,r=nu(Error(q(422))),wi(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Io({mode:"visible",children:r.children},i,0,null),o=an(o,i,u,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&bn(t,e.child,null,u),t.child.memoizedState=ys(u),t.memoizedState=ms,o);if(!(t.mode&1))return wi(e,t,u,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(q(419)),r=nu(o,r,void 0),wi(e,t,u,r)}if(s=(u&e.childLanes)!==0,ze||s){if(r=Ee,r!==null){switch(u&-u){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|u)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,At(e,i),at(r,e,i,-1))}return _l(),r=nu(Error(q(421))),wi(e,t,u,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Hv.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,He=Kt(i.nextSibling),Ve=t,fe=!0,st=null,e!==null&&(Ye[Xe++]=xt,Ye[Xe++]=It,Ye[Xe++]=fn,xt=e.id,It=e.overflow,fn=t),t=hl(t,r.children),t.flags|=4096,t)}function Va(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fs(e.return,t,n)}function ru(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Pd(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pe(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Va(e,n,t);else if(e.tag===19)Va(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(de,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ru(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ru(t,!0,n,null,o);break;case"together":ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=$t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Av(e,t,n){switch(t.tag){case 3:Od(t),jn();break;case 5:od(t);break;case 1:Ue(t.type)&&Xi(t);break;case 4:ul(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(to,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Ad(e,t,n):(ue(de,de.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);ue(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,Td(e,t,n)}return Pt(e,t,n)}var Dd,ws,Ld,Md;Dd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ws=function(){};Ld=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,sn(_t.current);var o=null;switch(n){case"input":i=ju(e,i),r=ju(e,r),o=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),o=[];break;case"textarea":i=Vu(e,i),r=Vu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ji)}Wu(n,r);var u;n=null;for(p in i)if(!r.hasOwnProperty(p)&&i.hasOwnProperty(p)&&i[p]!=null)if(p==="style"){var s=i[p];for(u in s)s.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(Rr.hasOwnProperty(p)?o||(o=[]):(o=o||[]).push(p,null));for(p in r){var l=r[p];if(s=i!=null?i[p]:void 0,r.hasOwnProperty(p)&&l!==s&&(l!=null||s!=null))if(p==="style")if(s){for(u in s)!s.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in l)l.hasOwnProperty(u)&&s[u]!==l[u]&&(n||(n={}),n[u]=l[u])}else n||(o||(o=[]),o.push(p,n)),n=l;else p==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(p,l)):p==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(p,""+l):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(Rr.hasOwnProperty(p)?(l!=null&&p==="onScroll"&&le("scroll",e),o||s===l||(o=[])):(o=o||[]).push(p,l))}n&&(o=o||[]).push("style",n);var p=o;(t.updateQueue=p)&&(t.flags|=4)}};Md=function(e,t,n,r){n!==r&&(t.flags|=4)};function sr(e,t){if(!fe)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 Ne(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&14680064,r|=i.flags&14680064,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 Pv(e,t,n){var r=t.pendingProps;switch(Zs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ue(t.type)&&Yi(),Ne(t),null;case 3:return r=t.stateNode,Hn(),ae(Fe),ae(Ae),ll(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,st!==null&&(Rs(st),st=null))),ws(e,t),Ne(t),null;case 5:sl(t);var i=sn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)Ld(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Ne(t),null}if(e=sn(_t.current),mi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[yt]=t,r[zr]=o,e=(t.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(i=0;i<pr.length;i++)le(pr[i],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":Zl(r,o),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},le("invalid",r);break;case"textarea":ta(r,o),le("invalid",r)}Wu(n,o),i=null;for(var u in o)if(o.hasOwnProperty(u)){var s=o[u];u==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&gi(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&gi(r.textContent,s,e),i=["children",""+s]):Rr.hasOwnProperty(u)&&s!=null&&u==="onScroll"&&le("scroll",r)}switch(n){case"input":li(r),ea(r,o,!0);break;case"textarea":li(r),na(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ji)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=lf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[yt]=t,e[zr]=r,Dd(e,t,!1,!1),t.stateNode=e;e:{switch(u=Gu(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;i<pr.length;i++)le(pr[i],e);i=r;break;case"source":le("error",e),i=r;break;case"img":case"image":case"link":le("error",e),le("load",e),i=r;break;case"details":le("toggle",e),i=r;break;case"input":Zl(e,r),i=ju(e,r),le("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),le("invalid",e);break;case"textarea":ta(e,r),i=Vu(e,r),le("invalid",e);break;default:i=r}Wu(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?ff(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&af(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Tr(e,l):typeof l=="number"&&Tr(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rr.hasOwnProperty(o)?l!=null&&o==="onScroll"&&le("scroll",e):l!=null&&Fs(e,o,l,u))}switch(n){case"input":li(e),ea(e,r,!1);break;case"textarea":li(e),na(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Dn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Dn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ne(t),null;case 6:if(e&&t.stateNode!=null)Md(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(q(166));if(n=sn(Ur.current),sn(_t.current),mi(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(o=r.nodeValue!==n)&&(e=Ve,e!==null))switch(e.tag){case 3:gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r}return Ne(t),null;case 13:if(ae(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&He!==null&&t.mode&1&&!(t.flags&128))Xf(),jn(),t.flags|=98560,o=!1;else if(o=mi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(q(317));o[yt]=t}else jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ne(t),o=!1}else st!==null&&(Rs(st),st=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Se===0&&(Se=3):_l())),t.updateQueue!==null&&(t.flags|=4),Ne(t),null);case 4:return Hn(),ws(e,t),e===null&&Mr(t.stateNode.containerInfo),Ne(t),null;case 10:return rl(t.type._context),Ne(t),null;case 17:return Ue(t.type)&&Yi(),Ne(t),null;case 19:if(ae(de),o=t.memoizedState,o===null)return Ne(t),null;if(r=(t.flags&128)!==0,u=o.rendering,u===null)if(r)sr(o,!1);else{if(Se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=io(e),u!==null){for(t.flags|=128,sr(o,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,u=o.alternate,u===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(de,de.current&1|2),t.child}e=e.sibling}o.tail!==null&&me()>Kn&&(t.flags|=128,r=!0,sr(o,!1),t.lanes=4194304)}else{if(!r)if(e=io(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!fe)return Ne(t),null}else 2*me()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,sr(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=me(),t.sibling=null,n=de.current,ue(de,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return wl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?be&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function Dv(e,t){switch(Zs(t),t.tag){case 1:return Ue(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(),ae(Fe),ae(Ae),ll(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sl(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Hn(),null;case 10:return rl(t.type._context),null;case 22:case 23:return wl(),null;case 24:return null;default:return null}}var _i=!1,Oe=!1,Lv=typeof WeakSet=="function"?WeakSet:Set,K=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){ge(e,t,r)}}var Ka=!1;function Mv(e,t){if(rs=Gi,e=Uf(),Ys(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,s=-1,l=-1,p=0,m=0,y=e,k=null;t:for(;;){for(var S;y!==n||i!==0&&y.nodeType!==3||(s=u+i),y!==o||r!==0&&y.nodeType!==3||(l=u+r),y.nodeType===3&&(u+=y.nodeValue.length),(S=y.firstChild)!==null;)k=y,y=S;for(;;){if(y===e)break t;if(k===n&&++p===i&&(s=u),k===o&&++m===r&&(l=u),(S=y.nextSibling)!==null)break;y=k,k=y.parentNode}y=S}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(is={focusedElem:e,selectionRange:n},Gi=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var a=w.memoizedProps,d=w.memoizedState,c=t.stateNode,f=c.getSnapshotBeforeUpdate(t.elementType===t.type?a:ot(t.type,a),d);c.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(E){ge(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return w=Ka,Ka=!1,w}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&_s(t,n,o)}i=i.next}while(i!==r)}}function Co(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ss(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qd(e){var t=e.alternate;t!==null&&(e.alternate=null,qd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[zr],delete t[ss],delete t[mv],delete t[yv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zd(e){return e.tag===5||e.tag===3||e.tag===4}function Wa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zd(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ks(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ji));else if(r!==4&&(e=e.child,e!==null))for(ks(e,t,n),e=e.sibling;e!==null;)ks(e,t,n),e=e.sibling}function Es(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&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}var xe=null,ut=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Fd(e,t,n),n=n.sibling}function Fd(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Oe||An(n,t);case 6:var r=xe,i=ut;xe=null,Mt(e,t,n),xe=r,ut=i,xe!==null&&(ut?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(ut?(e=xe,n=n.stateNode,e.nodeType===8?Jo(e.parentNode,n):e.nodeType===1&&Jo(e,n),Pr(e)):Jo(xe,n.stateNode));break;case 4:r=xe,i=ut,xe=n.stateNode.containerInfo,ut=!0,Mt(e,t,n),xe=r,ut=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&_s(n,t,u),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Oe&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ge(n,t,s)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,Mt(e,t,n),Oe=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Ga(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lv),t.forEach(function(r){var i=Vv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,u=t,s=u;e:for(;s!==null;){switch(s.tag){case 5:xe=s.stateNode,ut=!1;break e;case 3:xe=s.stateNode.containerInfo,ut=!0;break e;case 4:xe=s.stateNode.containerInfo,ut=!0;break e}s=s.return}if(xe===null)throw Error(q(160));Fd(o,u,i),xe=null,ut=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(p){ge(i,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}function Ud(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(it(t,e),gt(e),r&4){try{kr(3,e,e.return),Co(3,e)}catch(a){ge(e,e.return,a)}try{kr(5,e,e.return)}catch(a){ge(e,e.return,a)}}break;case 1:it(t,e),gt(e),r&512&&n!==null&&An(n,n.return);break;case 5:if(it(t,e),gt(e),r&512&&n!==null&&An(n,n.return),e.flags&32){var i=e.stateNode;try{Tr(i,"")}catch(a){ge(e,e.return,a)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,u=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&uf(i,o),Gu(s,u);var p=Gu(s,o);for(u=0;u<l.length;u+=2){var m=l[u],y=l[u+1];m==="style"?ff(i,y):m==="dangerouslySetInnerHTML"?af(i,y):m==="children"?Tr(i,y):Fs(i,m,y,p)}switch(s){case"input":bu(i,o);break;case"textarea":sf(i,o);break;case"select":var k=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var S=o.value;S!=null?Dn(i,!!o.multiple,S,!1):k!==!!o.multiple&&(o.defaultValue!=null?Dn(i,!!o.multiple,o.defaultValue,!0):Dn(i,!!o.multiple,o.multiple?[]:"",!1))}i[zr]=o}catch(a){ge(e,e.return,a)}}break;case 6:if(it(t,e),gt(e),r&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(a){ge(e,e.return,a)}}break;case 3:if(it(t,e),gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pr(t.containerInfo)}catch(a){ge(e,e.return,a)}break;case 4:it(t,e),gt(e);break;case 13:it(t,e),gt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ml=me())),r&4&&Ga(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(p=Oe)||m,it(t,e),Oe=p):it(t,e),gt(e),r&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!m&&e.mode&1)for(K=e,m=e.child;m!==null;){for(y=K=m;K!==null;){switch(k=K,S=k.child,k.tag){case 0:case 11:case 14:case 15:kr(4,k,k.return);break;case 1:An(k,k.return);var w=k.stateNode;if(typeof w.componentWillUnmount=="function"){r=k,n=k.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(a){ge(r,n,a)}}break;case 5:An(k,k.return);break;case 22:if(k.memoizedState!==null){$a(y);continue}}S!==null?(S.return=k,K=S):$a(y)}m=m.sibling}e:for(m=null,y=e;;){if(y.tag===5){if(m===null){m=y;try{i=y.stateNode,p?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=y.stateNode,l=y.memoizedProps.style,u=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=cf("display",u))}catch(a){ge(e,e.return,a)}}}else if(y.tag===6){if(m===null)try{y.stateNode.nodeValue=p?"":y.memoizedProps}catch(a){ge(e,e.return,a)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;m===y&&(m=null),y=y.return}m===y&&(m=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:it(t,e),gt(e),r&4&&Ga(e);break;case 21:break;default:it(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(zd(n)){var r=n;break e}n=n.return}throw Error(q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Tr(i,""),r.flags&=-33);var o=Wa(e);Es(e,o,i);break;case 3:case 4:var u=r.stateNode.containerInfo,s=Wa(e);ks(e,s,u);break;default:throw Error(q(161))}}catch(l){ge(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qv(e,t,n){K=e,Bd(e)}function Bd(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var i=K,o=i.child;if(i.tag===22&&r){var u=i.memoizedState!==null||_i;if(!u){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Oe;s=_i;var p=Oe;if(_i=u,(Oe=l)&&!p)for(K=i;K!==null;)u=K,l=u.child,u.tag===22&&u.memoizedState!==null?Ja(i):l!==null?(l.return=u,K=l):Ja(i);for(;o!==null;)K=o,Bd(o),o=o.sibling;K=i,_i=s,Oe=p}Qa(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,K=o):Qa(e)}}function Qa(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||Co(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ot(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Aa(t,o,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Aa(t,u,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var p=t.alternate;if(p!==null){var m=p.memoizedState;if(m!==null){var y=m.dehydrated;y!==null&&Pr(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}Oe||t.flags&512&&Ss(t)}catch(k){ge(t,t.return,k)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function $a(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function Ja(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Co(4,t)}catch(l){ge(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ge(t,i,l)}}var o=t.return;try{Ss(t)}catch(l){ge(t,o,l)}break;case 5:var u=t.return;try{Ss(t)}catch(l){ge(t,u,l)}}}catch(l){ge(t,t.return,l)}if(t===e){K=null;break}var s=t.sibling;if(s!==null){s.return=t.return,K=s;break}K=t.return}}var zv=Math.ceil,so=Dt.ReactCurrentDispatcher,vl=Dt.ReactCurrentOwner,et=Dt.ReactCurrentBatchConfig,te=0,Ee=null,ye=null,Ie=0,be=0,Pn=Zt(0),Se=0,Hr=null,pn=0,xo=0,gl=0,Er=null,qe=null,ml=0,Kn=1/0,Et=null,lo=!1,Cs=null,Gt=null,Si=!1,jt=null,ao=0,Cr=0,xs=null,Fi=-1,Ui=0;function De(){return te&6?me():Fi!==-1?Fi:Fi=me()}function Qt(e){return e.mode&1?te&2&&Ie!==0?Ie&-Ie:_v.transition!==null?(Ui===0&&(Ui=Ef()),Ui):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Of(e.type)),e):1}function at(e,t,n,r){if(50<Cr)throw Cr=0,xs=null,Error(q(185));Wr(e,n,r),(!(te&2)||e!==Ee)&&(e===Ee&&(!(te&2)&&(xo|=n),Se===4&&Ut(e,Ie)),Be(e,r),n===1&&te===0&&!(t.mode&1)&&(Kn=me()+500,So&&en()))}function Be(e,t){var n=e.callbackNode;_h(e,t);var r=Wi(e,e===Ee?Ie:0);if(r===0)n!==null&&oa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oa(n),t===1)e.tag===0?wv(Ya.bind(null,e)):$f(Ya.bind(null,e)),vv(function(){!(te&6)&&en()}),n=null;else{switch(Cf(r)){case 1:n=Hs;break;case 4:n=Sf;break;case 16:n=Ki;break;case 536870912:n=kf;break;default:n=Ki}n=Qd(n,jd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jd(e,t){if(Fi=-1,Ui=0,te&6)throw Error(q(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Wi(e,e===Ee?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=co(e,r);else{t=r;var i=te;te|=2;var o=Hd();(Ee!==e||Ie!==t)&&(Et=null,Kn=me()+500,ln(e,t));do try{Bv();break}catch(s){bd(e,s)}while(1);nl(),so.current=o,te=i,ye!==null?t=0:(Ee=null,Ie=0,t=Se)}if(t!==0){if(t===2&&(i=Xu(e),i!==0&&(r=i,t=Is(e,i))),t===1)throw n=Hr,ln(e,0),Ut(e,r),Be(e,me()),n;if(t===6)Ut(e,r);else{if(i=e.current.alternate,!(r&30)&&!Fv(i)&&(t=co(e,r),t===2&&(o=Xu(e),o!==0&&(r=o,t=Is(e,o))),t===1))throw n=Hr,ln(e,0),Ut(e,r),Be(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(q(345));case 2:rn(e,qe,Et);break;case 3:if(Ut(e,r),(r&130023424)===r&&(t=ml+500-me(),10<t)){if(Wi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=us(rn.bind(null,e,qe,Et),t);break}rn(e,qe,Et);break;case 4:if(Ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var u=31-lt(r);o=1<<u,u=t[u],u>i&&(i=u),r&=~o}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zv(r/1960))-r,10<r){e.timeoutHandle=us(rn.bind(null,e,qe,Et),r);break}rn(e,qe,Et);break;case 5:rn(e,qe,Et);break;default:throw Error(q(329))}}}return Be(e,me()),e.callbackNode===n?jd.bind(null,e):null}function Is(e,t){var n=Er;return e.current.memoizedState.isDehydrated&&(ln(e,t).flags|=256),e=co(e,t),e!==2&&(t=qe,qe=n,t!==null&&Rs(t)),e}function Rs(e){qe===null?qe=e:qe.push.apply(qe,e)}function Fv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ct(o(),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 Ut(e,t){for(t&=~gl,t&=~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function Ya(e){if(te&6)throw Error(q(327));Fn();var t=Wi(e,0);if(!(t&1))return Be(e,me()),null;var n=co(e,t);if(e.tag!==0&&n===2){var r=Xu(e);r!==0&&(t=r,n=Is(e,r))}if(n===1)throw n=Hr,ln(e,0),Ut(e,t),Be(e,me()),n;if(n===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rn(e,qe,Et),Be(e,me()),null}function yl(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Kn=me()+500,So&&en())}}function hn(e){jt!==null&&jt.tag===0&&!(te&6)&&Fn();var t=te;te|=1;var n=et.transition,r=oe;try{if(et.transition=null,oe=1,e)return e()}finally{oe=r,et.transition=n,te=t,!(te&6)&&en()}}function wl(){be=Pn.current,ae(Pn)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hv(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(Zs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:Hn(),ae(Fe),ae(Ae),ll();break;case 5:sl(r);break;case 4:Hn();break;case 13:ae(de);break;case 19:ae(de);break;case 10:rl(r.type._context);break;case 22:case 23:wl()}n=n.return}if(Ee=e,ye=e=$t(e.current,null),Ie=be=t,Se=0,Hr=null,gl=xo=pn=0,qe=Er=null,un!==null){for(t=0;t<un.length;t++)if(n=un[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var u=o.next;o.next=i,r.next=u}n.pending=r}un=null}return e}function bd(e,t){do{var n=ye;try{if(nl(),Mi.current=uo,oo){for(var r=pe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}oo=!1}if(dn=0,ke=_e=pe=null,Sr=!1,Br=0,vl.current=null,n===null||n.return===null){Se=1,Hr=t,ye=null;break}e:{var o=e,u=n.return,s=n,l=t;if(t=Ie,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var p=l,m=s,y=m.tag;if(!(m.mode&1)&&(y===0||y===11||y===15)){var k=m.alternate;k?(m.updateQueue=k.updateQueue,m.memoizedState=k.memoizedState,m.lanes=k.lanes):(m.updateQueue=null,m.memoizedState=null)}var S=Fa(u);if(S!==null){S.flags&=-257,Ua(S,u,s,o,t),S.mode&1&&za(o,p,t),t=S,l=p;var w=t.updateQueue;if(w===null){var a=new Set;a.add(l),t.updateQueue=a}else w.add(l);break e}else{if(!(t&1)){za(o,p,t),_l();break e}l=Error(q(426))}}else if(fe&&s.mode&1){var d=Fa(u);if(d!==null){!(d.flags&65536)&&(d.flags|=256),Ua(d,u,s,o,t),el(Vn(l,s));break e}}o=l=Vn(l,s),Se!==4&&(Se=2),Er===null?Er=[o]:Er.push(o),o=u;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var c=xd(o,l,t);Oa(o,c);break e;case 1:s=l;var f=o.type,h=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Gt===null||!Gt.has(h)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=Id(o,s,t);Oa(o,E);break e}}o=o.return}while(o!==null)}Kd(n)}catch(I){t=I,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(1)}function Hd(){var e=so.current;return so.current=uo,e===null?uo:e}function _l(){(Se===0||Se===3||Se===2)&&(Se=4),Ee===null||!(pn&268435455)&&!(xo&268435455)||Ut(Ee,Ie)}function co(e,t){var n=te;te|=2;var r=Hd();(Ee!==e||Ie!==t)&&(Et=null,ln(e,t));do try{Uv();break}catch(i){bd(e,i)}while(1);if(nl(),te=n,so.current=r,ye!==null)throw Error(q(261));return Ee=null,Ie=0,Se}function Uv(){for(;ye!==null;)Vd(ye)}function Bv(){for(;ye!==null&&!fh();)Vd(ye)}function Vd(e){var t=Gd(e.alternate,e,be);e.memoizedProps=e.pendingProps,t===null?Kd(e):ye=t,vl.current=null}function Kd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Dv(n,t),n!==null){n.flags&=32767,ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Se=6,ye=null;return}}else if(n=Pv(n,t,be),n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Se===0&&(Se=5)}function rn(e,t,n){var r=oe,i=et.transition;try{et.transition=null,oe=1,jv(e,t,n,r)}finally{et.transition=i,oe=r}return null}function jv(e,t,n,r){do Fn();while(jt!==null);if(te&6)throw Error(q(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Sh(e,o),e===Ee&&(ye=Ee=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Si||(Si=!0,Qd(Ki,function(){return Fn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=et.transition,et.transition=null;var u=oe;oe=1;var s=te;te|=4,vl.current=null,Mv(e,n),Ud(n,e),sv(is),Gi=!!rs,is=rs=null,e.current=n,qv(n),dh(),te=s,oe=u,et.transition=o}else e.current=n;if(Si&&(Si=!1,jt=e,ao=i),o=e.pendingLanes,o===0&&(Gt=null),vh(n.stateNode),Be(e,me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(lo)throw lo=!1,e=Cs,Cs=null,e;return ao&1&&e.tag!==0&&Fn(),o=e.pendingLanes,o&1?e===xs?Cr++:(Cr=0,xs=e):Cr=0,en(),null}function Fn(){if(jt!==null){var e=Cf(ao),t=et.transition,n=oe;try{if(et.transition=null,oe=16>e?16:e,jt===null)var r=!1;else{if(e=jt,jt=null,ao=0,te&6)throw Error(q(331));var i=te;for(te|=4,K=e.current;K!==null;){var o=K,u=o.child;if(K.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var p=s[l];for(K=p;K!==null;){var m=K;switch(m.tag){case 0:case 11:case 15:kr(8,m,o)}var y=m.child;if(y!==null)y.return=m,K=y;else for(;K!==null;){m=K;var k=m.sibling,S=m.return;if(qd(m),m===p){K=null;break}if(k!==null){k.return=S,K=k;break}K=S}}}var w=o.alternate;if(w!==null){var a=w.child;if(a!==null){w.child=null;do{var d=a.sibling;a.sibling=null,a=d}while(a!==null)}}K=o}}if(o.subtreeFlags&2064&&u!==null)u.return=o,K=u;else e:for(;K!==null;){if(o=K,o.flags&2048)switch(o.tag){case 0:case 11:case 15:kr(9,o,o.return)}var c=o.sibling;if(c!==null){c.return=o.return,K=c;break e}K=o.return}}var f=e.current;for(K=f;K!==null;){u=K;var h=u.child;if(u.subtreeFlags&2064&&h!==null)h.return=u,K=h;else e:for(u=f;K!==null;){if(s=K,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Co(9,s)}}catch(I){ge(s,s.return,I)}if(s===u){K=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,K=E;break e}K=s.return}}if(te=i,en(),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(go,e)}catch{}r=!0}return r}finally{oe=n,et.transition=t}}return!1}function Xa(e,t,n){t=Vn(n,t),t=xd(e,t,1),e=Wt(e,t,1),t=De(),e!==null&&(Wr(e,1,t),Be(e,t))}function ge(e,t,n){if(e.tag===3)Xa(e,e,n);else for(;t!==null;){if(t.tag===3){Xa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=Vn(n,e),e=Id(t,e,1),t=Wt(t,e,1),e=De(),t!==null&&(Wr(t,1,e),Be(t,e));break}}t=t.return}}function bv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(Ie&n)===n&&(Se===4||Se===3&&(Ie&130023424)===Ie&&500>me()-ml?ln(e,0):gl|=n),Be(e,t)}function Wd(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=De();e=At(e,t),e!==null&&(Wr(e,t,n),Be(e,n))}function Hv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wd(e,n)}function Vv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),Wd(e,n)}var Gd;Gd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ze=!1,Av(e,t,n);ze=!!(e.flags&131072)}else ze=!1,fe&&t.flags&1048576&&Jf(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zi(e,t),e=t.pendingProps;var i=Bn(t,Ae.current);zn(t,n),i=cl(null,t,r,e,i,n);var o=fl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(o=!0,Xi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ol(t),i.updater=ko,t.stateNode=i,i._reactInternals=t,ps(t,r,e,n),t=gs(null,t,r,!0,o,n)):(t.tag=0,fe&&o&&Xs(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Wv(r),e=ot(r,e),i){case 0:t=vs(null,t,r,e,n);break e;case 1:t=ba(null,t,r,e,n);break e;case 11:t=Ba(null,t,r,e,n);break e;case 14:t=ja(null,t,r,ot(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),vs(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),ba(e,t,r,i,n);case 3:e:{if(Od(t),e===null)throw Error(q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ed(e,t),ro(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Vn(Error(q(423)),t),t=Ha(e,t,r,n,i);break e}else if(r!==i){i=Vn(Error(q(424)),t),t=Ha(e,t,r,n,i);break e}else for(He=Kt(t.stateNode.containerInfo.firstChild),Ve=t,fe=!0,st=null,n=id(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jn(),r===i){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return od(t),e===null&&cs(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,u=i.children,os(r,i)?u=null:o!==null&&os(r,o)&&(t.flags|=32),Nd(e,t),Pe(e,t,u,n),t.child;case 6:return e===null&&cs(t),null;case 13:return Ad(e,t,n);case 4:return ul(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bn(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),Ba(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,u=i.value,ue(to,r._currentValue),r._currentValue=u,o!==null)if(ct(o.value,u)){if(o.children===i.children&&!Fe.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){u=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Rt(-1,n&-n),l.tag=2;var p=o.updateQueue;if(p!==null){p=p.shared;var m=p.pending;m===null?l.next=l:(l.next=m.next,m.next=l),p.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),fs(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(q(341));u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),fs(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,zn(t,n),i=tt(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=ot(r,t.pendingProps),i=ot(r.type,i),ja(e,t,r,i,n);case 15:return Rd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),zi(e,t),t.tag=1,Ue(r)?(e=!0,Xi(t)):e=!1,zn(t,n),nd(t,r,i),ps(t,r,i,n),gs(null,t,r,!0,e,n);case 19:return Pd(e,t,n);case 22:return Td(e,t,n)}throw Error(q(156,t.tag))};function Qd(e,t){return _f(e,t)}function Kv(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.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 Ze(e,t,n,r){return new Kv(e,t,n,r)}function Sl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wv(e){if(typeof e=="function")return Sl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bs)return 11;if(e===js)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=Ze(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&14680064,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}function Bi(e,t,n,r,i,o){var u=2;if(r=e,typeof e=="function")Sl(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case kn:return an(n.children,i,o,t);case Us:u=8,i|=8;break;case zu:return e=Ze(12,n,t,i|2),e.elementType=zu,e.lanes=o,e;case Fu:return e=Ze(13,n,t,i),e.elementType=Fu,e.lanes=o,e;case Uu:return e=Ze(19,n,t,i),e.elementType=Uu,e.lanes=o,e;case nf:return Io(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ef:u=10;break e;case tf:u=9;break e;case Bs:u=11;break e;case js:u=14;break e;case qt:u=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Ze(u,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=nf,e.lanes=n,e.stateNode={isHidden:!1},e}function iu(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function ou(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uo(0),this.expirationTimes=Uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kl(e,t,n,r,i,o,u,s,l){return e=new Gv(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ol(o),e}function Qv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $d(e){if(!e)return Yt;e=e._reactInternals;e:{if(gn(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ue(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var n=e.type;if(Ue(n))return Qf(e,n,t)}return t}function Jd(e,t,n,r,i,o,u,s,l){return e=kl(n,r,!0,e,i,o,u,s,l),e.context=$d(null),n=e.current,r=De(),i=Qt(n),o=Rt(r,i),o.callback=t??null,Wt(n,o,i),e.current.lanes=i,Wr(e,i,r),Be(e,r),e}function Ro(e,t,n,r){var i=t.current,o=De(),u=Qt(i);return n=$d(n),t.context===null?t.context=n:t.pendingContext=n,t=Rt(o,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wt(i,t,u),e!==null&&(at(e,i,u,o),Li(e,i,u)),u}function fo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Za(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function El(e,t){Za(e,t),(e=e.alternate)&&Za(e,t)}function $v(){return null}var Yd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cl(e){this._internalRoot=e}To.prototype.render=Cl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));Ro(e,t,null,null)};To.prototype.unmount=Cl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Ro(null,e,null,null)}),t[Ot]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Nf(e)}};function xl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function No(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ec(){}function Jv(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var p=fo(u);o.call(p)}}var u=Jd(t,r,e,0,null,!1,!1,"",ec);return e._reactRootContainer=u,e[Ot]=u.current,Mr(e.nodeType===8?e.parentNode:e),hn(),u}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var p=fo(l);s.call(p)}}var l=kl(e,0,!1,null,null,!1,!1,"",ec);return e._reactRootContainer=l,e[Ot]=l.current,Mr(e.nodeType===8?e.parentNode:e),hn(function(){Ro(t,l,n,r)}),l}function Oo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var u=o;if(typeof i=="function"){var s=i;i=function(){var l=fo(u);s.call(l)}}Ro(t,u,e,i)}else u=Jv(n,t,e,i,r);return fo(u)}xf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dr(t.pendingLanes);n!==0&&(Vs(t,n|1),Be(t,me()),!(te&6)&&(Kn=me()+500,en()))}break;case 13:hn(function(){var r=At(e,1);if(r!==null){var i=De();at(r,e,1,i)}}),El(e,1)}};Ks=function(e){if(e.tag===13){var t=At(e,134217728);if(t!==null){var n=De();at(t,e,134217728,n)}El(e,134217728)}};If=function(e){if(e.tag===13){var t=Qt(e),n=At(e,t);if(n!==null){var r=De();at(n,e,t,r)}El(e,t)}};Rf=function(){return oe};Tf=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};$u=function(e,t,n){switch(t){case"input":if(bu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_o(r);if(!i)throw Error(q(90));of(r),bu(r,i)}}}break;case"textarea":sf(e,n);break;case"select":t=n.value,t!=null&&Dn(e,!!n.multiple,t,!1)}};hf=yl;vf=hn;var Yv={usingClientEntryPoint:!1,Events:[Qr,In,_o,df,pf,yl]},lr={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Xv={bundleType:lr.bundleType,version:lr.version,rendererPackageName:lr.rendererPackageName,rendererConfig:lr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yf(e),e===null?null:e.stateNode},findFiberByHostInstance:lr.findFiberByHostInstance||$v,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ki.isDisabled&&ki.supportsFiber)try{go=ki.inject(Xv),wt=ki}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yv;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xl(t))throw Error(q(200));return Qv(e,t,null,n)};We.createRoot=function(e,t){if(!xl(e))throw Error(q(299));var n=!1,r="",i=Yd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=kl(e,1,!1,null,null,n,!1,r,i),e[Ot]=t.current,Mr(e.nodeType===8?e.parentNode:e),new Cl(t)};We.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=yf(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return hn(e)};We.hydrate=function(e,t,n){if(!No(t))throw Error(q(200));return Oo(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!xl(e))throw Error(q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",u=Yd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Jd(t,null,e,1,n??null,i,!1,o,u),e[Ot]=t.current,Mr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new To(t)};We.render=function(e,t,n){if(!No(t))throw Error(q(200));return Oo(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!No(e))throw Error(q(40));return e._reactRootContainer?(hn(function(){Oo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1};We.unstable_batchedUpdates=yl;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!No(n))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return Oo(e,t,n,!1,r)};We.version="18.2.0-next-9e3b772b8-20220608";function Xd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xd)}catch(e){console.error(e)}}Xd(),$c.exports=We;var Zv=$c.exports,tc=Zv;Mu.createRoot=tc.createRoot,Mu.hydrateRoot=tc.hydrateRoot;var Zd={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zd);var Qe=Zd.exports,uu={exports:{}},nc;function ft(){return nc||(nc=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(uu)),uu.exports}var su={exports:{}},lu={exports:{}},au={exports:{}},rc;function $n(){return rc||(rc=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(au)),au.exports}var cu={exports:{}},ic;function eg(){return ic||(ic=1,function(e){var t=$n().default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var u=o.call(r,i||"default");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(cu)),cu.exports}var oc;function ep(){return oc||(oc=1,function(e){var t=$n().default,n=eg();function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(lu)),lu.exports}var uc;function dt(){return uc||(uc=1,function(e){var t=ep();function n(i,o){for(var u=0;u<o.length;u++){var s=o[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,u){return o&&n(i.prototype,o),u&&n(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(su)),su.exports}function tg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fu={exports:{}},sc;function ng(){return sc||(sc=1,function(e){(function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(n){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(n),i=1;i<arguments.length;i++){var o=arguments[i];if(o!=null){o=Object(o);for(var u=Object.keys(Object(o)),s=0,l=u.length;l>s;s++){var p=u[s],m=Object.getOwnPropertyDescriptor(o,p);m!==void 0&&m.enumerable&&(r[p]=o[p])}}}return r}});var t=function(n){var r={user_agent:null,persist:!0,cookie_name_client_id:"ConstructorioID_client_id",cookie_name_session_id:"ConstructorioID_session_id",cookie_name_session_data:"ConstructorioID_session",cookie_domain:null,cookie_secure:null,cookie_samesite:null,cookie_days_to_live:365,local_name_client_id:"_constructorio_search_client_id",local_name_session_id:"_constructorio_search_session_id",local_name_session_data:"_constructorio_search_session",on_node:typeof window>"u",session_is_new:null,new_to_beacon:null,client_id_storage_location:"cookie",session_id_storage_location:"local"};if(Object.assign(this,r,n),!this.client_id)if(!this.on_node&&this.persist){var i;this.client_id_storage_location==="cookie"&&(i=this.get_cookie(this.cookie_name_client_id),i&&(this.delete_cookie(this.cookie_name_client_id),this.set_cookie(this.cookie_name_client_id,i))),this.client_id_storage_location==="local"&&(i=this.get_local_object(this.local_name_client_id)),this.client_id=i||this.generate_client_id()}else this.client_id=this.generate_client_id();this.session_id||(!this.on_node&&this.persist?this.session_id=this.generate_session_id():this.session_id=1),this.on_node||(this.user_agent=this.user_agent||window&&window.navigator&&window.navigator.userAgent)};t.prototype.set_cookie=function(n,r){if(!this.on_node&&this.persist){var i=new Date(Date.now()+this.cookie_days_to_live*24*60*60*1e3),o=n+"="+r+"; expires="+i.toUTCString()+"; path=/";return this.cookie_domain&&(o+="; domain="+this.cookie_domain),this.cookie_secure&&(o+="; secure"),this.cookie_samesite&&(o+="; samesite="+this.cookie_samesite),document.cookie=o,o}return null},t.prototype.get_cookie=function(n){for(var r=n+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){var u=i[o];try{for(var s=decodeURIComponent(u);s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0)return s.substring(r.length,s.length)}catch{}}},t.prototype.delete_cookie=function(n){document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},t.prototype.generate_client_id=function(){var n;if(!this.on_node){var r=this.get_cookie(this.cookie_name_client_id),i=this.get_local_object(this.local_name_client_id);this.client_id_storage_location==="cookie"&&i&&(n=i,this.set_cookie(this.cookie_name_client_id,n),this.delete_local_object(this.local_name_client_id)),this.client_id_storage_location==="local"&&r&&(n=r,this.set_local_object(this.local_name_client_id,n),this.delete_cookie(this.cookie_name_client_id))}return n||(n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var u=Math.random()*16|0,s=o==="x"?u:u&3|8;return s.toString(16)}),this.client_id_storage_location==="cookie"&&this.set_cookie(this.cookie_name_client_id,n),this.client_id_storage_location==="local"&&this.set_local_object(this.local_name_client_id,n)),n},t.prototype.get_local_object=function(n){var r,i=window&&window.localStorage;if(i&&typeof n=="string")try{r=JSON.parse(i.getItem(n))}catch{r=i.getItem(n)}return r},t.prototype.set_local_object=function(n,r){var i=window&&window.localStorage;if(i&&typeof n=="string"){if(typeof r=="object")try{i.setItem(n,JSON.stringify(r))}catch{}if(typeof r=="string"||typeof r=="number")try{i.setItem(n,r)}catch{}}},t.prototype.delete_local_object=function(n){var r=window&&window.localStorage;if(r&&typeof n=="string")try{r.removeItem(n)}catch{}},t.prototype.generate_session_id=function(){var n=this.get_cookie(this.cookie_name_session_data),r=this.get_local_object(this.local_name_session_data),i=Date.now(),o=1e3*60*30,u;if(this.session_id_storage_location==="local"&&(u=this.get_local_object(this.local_name_session_data),!u&&n&&(u=n,this.delete_cookie(this.cookie_name_session_data))),this.session_id_storage_location==="cookie"){u=this.get_cookie(this.cookie_name_session_data);try{u=JSON.parse(u)}catch{}!u&&r&&(u=r,this.delete_local_object(this.local_name_session_data))}var s=1,l=1;u&&typeof u=="object"&&(l=parseInt(u.sessionId,10)||1,u.lastTime>i-o?s=l:s=l+1),this.session_id=s,this.session_is_new=!(u&&l===s),u&&u.newToBeacon&&(this.new_to_beacon=!0);const p={sessionId:s,lastTime:i};return this.session_is_new&&(p.newToBeacon=!0),this.session_id_storage_location==="local"&&(this.set_local_object(this.local_name_session_id,s),this.set_local_object(this.local_name_session_data,p)),this.session_id_storage_location==="cookie"&&(this.cookie_domain&&(this.delete_cookie(this.cookie_name_session_id),this.delete_cookie(this.cookie_name_session_data)),this.set_cookie(this.cookie_name_session_id,s),this.set_cookie(this.cookie_name_session_data,JSON.stringify(p))),s},typeof tg<"u"&&(e.exports=t)})()}(fu)),fu.exports}var Ei={exports:{}},lc;function rg(){return lc||(lc=1,function(e,t){(function(n){function r(i){var o=i&&i.Promise||n.Promise,u=i&&i.XMLHttpRequest||n.XMLHttpRequest;return function(){var s=Object.create(n,{fetch:{value:void 0,writable:!0}});return function(l,p){p(t)}(this,function(l){var p=typeof s<"u"&&s||typeof self<"u"&&self||typeof p<"u"&&p,m={searchParams:"URLSearchParams"in p,iterable:"Symbol"in p&&"iterator"in Symbol,blob:"FileReader"in p&&"Blob"in p&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in p,arrayBuffer:"ArrayBuffer"in p};function y(T){return T&&DataView.prototype.isPrototypeOf(T)}if(m.arrayBuffer)var k=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(T){return T&&k.indexOf(Object.prototype.toString.call(T))>-1};function w(T){if(typeof T!="string"&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(T)||T==="")throw new TypeError("Invalid character in header field name");return T.toLowerCase()}function a(T){return typeof T!="string"&&(T=String(T)),T}function d(T){var R={next:function(){var P=T.shift();return{done:P===void 0,value:P}}};return m.iterable&&(R[Symbol.iterator]=function(){return R}),R}function c(T){this.map={},T instanceof c?T.forEach(function(R,P){this.append(P,R)},this):Array.isArray(T)?T.forEach(function(R){this.append(R[0],R[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(R){this.append(R,T[R])},this)}c.prototype.append=function(T,R){T=w(T),R=a(R);var P=this.map[T];this.map[T]=P?P+", "+R:R},c.prototype.delete=function(T){delete this.map[w(T)]},c.prototype.get=function(T){return T=w(T),this.has(T)?this.map[T]:null},c.prototype.has=function(T){return this.map.hasOwnProperty(w(T))},c.prototype.set=function(T,R){this.map[w(T)]=a(R)},c.prototype.forEach=function(T,R){for(var P in this.map)this.map.hasOwnProperty(P)&&T.call(R,this.map[P],P,this)},c.prototype.keys=function(){var T=[];return this.forEach(function(R,P){T.push(P)}),d(T)},c.prototype.values=function(){var T=[];return this.forEach(function(R){T.push(R)}),d(T)},c.prototype.entries=function(){var T=[];return this.forEach(function(R,P){T.push([P,R])}),d(T)},m.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function f(T){if(T.bodyUsed)return o.reject(new TypeError("Already read"));T.bodyUsed=!0}function h(T){return new o(function(R,P){T.onload=function(){R(T.result)},T.onerror=function(){P(T.error)}})}function E(T){var R=new FileReader,P=h(R);return R.readAsArrayBuffer(T),P}function I(T){var R=new FileReader,P=h(R);return R.readAsText(T),P}function _(T){for(var R=new Uint8Array(T),P=new Array(R.length),A=0;A<R.length;A++)P[A]=String.fromCharCode(R[A]);return P.join("")}function v(T){if(T.slice)return T.slice(0);var R=new Uint8Array(T.byteLength);return R.set(new Uint8Array(T)),R.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(T){this.bodyUsed=this.bodyUsed,this._bodyInit=T,T?typeof T=="string"?this._bodyText=T:m.blob&&Blob.prototype.isPrototypeOf(T)?this._bodyBlob=T:m.formData&&FormData.prototype.isPrototypeOf(T)?this._bodyFormData=T:m.searchParams&&URLSearchParams.prototype.isPrototypeOf(T)?this._bodyText=T.toString():m.arrayBuffer&&m.blob&&y(T)?(this._bodyArrayBuffer=v(T.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):m.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(T)||S(T))?this._bodyArrayBuffer=v(T):this._bodyText=T=Object.prototype.toString.call(T):this._bodyText="",this.headers.get("content-type")||(typeof T=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(T)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var T=f(this);if(T)return T;if(this._bodyBlob)return o.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return o.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var T=f(this);return T||(ArrayBuffer.isView(this._bodyArrayBuffer)?o.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):o.resolve(this._bodyArrayBuffer))}else return this.blob().then(E)}),this.text=function(){var T=f(this);if(T)return T;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return o.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(T){var R=T.toUpperCase();return x.indexOf(R)>-1?R:T}function O(T,R){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var P=R.body;if(T instanceof O){if(T.bodyUsed)throw new TypeError("Already read");this.url=T.url,this.credentials=T.credentials,R.headers||(this.headers=new c(T.headers)),this.method=T.method,this.mode=T.mode,this.signal=T.signal,!P&&T._bodyInit!=null&&(P=T._bodyInit,T.bodyUsed=!0)}else this.url=String(T);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new c(R.headers)),this.method=C(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var A=/([?&])_=[^&]*/;if(A.test(this.url))this.url=this.url.replace(A,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function N(T){var R=new FormData;return T.trim().split("&").forEach(function(P){if(P){var A=P.split("="),L=A.shift().replace(/\+/g," "),M=A.join("=").replace(/\+/g," ");R.append(decodeURIComponent(L),decodeURIComponent(M))}}),R}function D(T){var R=new c,P=T.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(A){return A.indexOf(`
34
- `)===0?A.substr(1,A.length):A}).forEach(function(A){var L=A.split(":"),M=L.shift().trim();if(M){var G=L.join(":").trim();R.append(M,G)}}),R}g.call(O.prototype);function z(T,R){if(!(this instanceof z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in R?R.statusText:"",this.headers=new c(R.headers),this.url=R.url||"",this._initBody(T)}g.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},z.error=function(){var T=new z(null,{status:0,statusText:""});return T.type="error",T};var F=[301,302,303,307,308];z.redirect=function(T,R){if(F.indexOf(R)===-1)throw new RangeError("Invalid status code");return new z(null,{status:R,headers:{location:T}})},l.DOMException=p.DOMException;try{new l.DOMException}catch{l.DOMException=function(R,P){this.message=R,this.name=P;var A=Error(R);this.stack=A.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function j(T,R){return new o(function(P,A){var L=new O(T,R);if(L.signal&&L.signal.aborted)return A(new l.DOMException("Aborted","AbortError"));var M=new u;function G(){M.abort()}M.onload=function(){var V={status:M.status,statusText:M.statusText,headers:D(M.getAllResponseHeaders()||"")};V.url="responseURL"in M?M.responseURL:V.headers.get("X-Request-URL");var Y="response"in M?M.response:M.responseText;setTimeout(function(){P(new z(Y,V))},0)},M.onerror=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){A(new TypeError("Network request failed"))},0)},M.onabort=function(){setTimeout(function(){A(new l.DOMException("Aborted","AbortError"))},0)};function J(V){try{return V===""&&p.location.href?p.location.href:V}catch{return V}}M.open(L.method,J(L.url),!0),L.credentials==="include"?M.withCredentials=!0:L.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(m.blob?M.responseType="blob":m.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(M.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof c)?Object.getOwnPropertyNames(R.headers).forEach(function(V){M.setRequestHeader(V,a(R.headers[V]))}):L.headers.forEach(function(V,Y){M.setRequestHeader(Y,V)}),L.signal&&(L.signal.addEventListener("abort",G),M.onreadystatechange=function(){M.readyState===4&&L.signal.removeEventListener("abort",G)}),M.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}j.polyfill=!0,p.fetch||(p.fetch=j,p.Headers=c,p.Request=O,p.Response=z),l.Headers=c,l.Request=O,l.Response=z,l.fetch=j,Object.defineProperty(l,"__esModule",{value:!0})}),{fetch:s.fetch,Headers:s.Headers,Request:s.Request,Response:s.Response,DOMException:s.DOMException}}()}e.exports=r})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:vr)}(Ei,Ei.exports)),Ei.exports}var du={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var ac;function ig(){return ac||(ac=1,function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function n(){for(var g=0,x=new Array(256),C=0;C!=256;++C)g=C,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,x[C]=g;return typeof Int32Array<"u"?new Int32Array(x):x}var r=n();function i(g){var x=0,C=0,O=0,N=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(O=0;O!=256;++O)N[O]=g[O];for(O=0;O!=256;++O)for(C=g[O],x=256+O;x<4096;x+=256)C=N[x]=C>>>8^g[C&255];var D=[];for(O=1;O!=16;++O)D[O-1]=typeof Int32Array<"u"?N.subarray(O*256,O*256+256):N.slice(O*256,O*256+256);return D}var o=i(r),u=o[0],s=o[1],l=o[2],p=o[3],m=o[4],y=o[5],k=o[6],S=o[7],w=o[8],a=o[9],d=o[10],c=o[11],f=o[12],h=o[13],E=o[14];function I(g,x){for(var C=x^-1,O=0,N=g.length;O<N;)C=C>>>8^r[(C^g.charCodeAt(O++))&255];return~C}function _(g,x){for(var C=x^-1,O=g.length-15,N=0;N<O;)C=E[g[N++]^C&255]^h[g[N++]^C>>8&255]^f[g[N++]^C>>16&255]^c[g[N++]^C>>>24]^d[g[N++]]^a[g[N++]]^w[g[N++]]^S[g[N++]]^k[g[N++]]^y[g[N++]]^m[g[N++]]^p[g[N++]]^l[g[N++]]^s[g[N++]]^u[g[N++]]^r[g[N++]];for(O+=15;N<O;)C=C>>>8^r[(C^g[N++])&255];return~C}function v(g,x){for(var C=x^-1,O=0,N=g.length,D=0,z=0;O<N;)D=g.charCodeAt(O++),D<128?C=C>>>8^r[(C^D)&255]:D<2048?(C=C>>>8^r[(C^(192|D>>6&31))&255],C=C>>>8^r[(C^(128|D&63))&255]):D>=55296&&D<57344?(D=(D&1023)+64,z=g.charCodeAt(O++)&1023,C=C>>>8^r[(C^(240|D>>8&7))&255],C=C>>>8^r[(C^(128|D>>2&63))&255],C=C>>>8^r[(C^(128|z>>6&15|(D&3)<<4))&255],C=C>>>8^r[(C^(128|z&63))&255]):(C=C>>>8^r[(C^(224|D>>12&15))&255],C=C>>>8^r[(C^(128|D>>6&63))&255],C=C>>>8^r[(C^(128|D&63))&255]);return~C}t.table=r,t.bstr=I,t.buf=_,t.str=v})}(du)),du}var pu,cc;function Il(){if(cc)return pu;cc=1;var e={overflow:{},get:function(i){var o=this.overflow[i];if(o)return o;if(typeof sessionStorage>"u")return null;var u=sessionStorage.getItem(i);if(u)try{return JSON.parse(u)}catch{return u}return null},set:function(i,o){try{sessionStorage.setItem(i,JSON.stringify(o))}catch{this.overflow[i]=o}},remove:function(i){var o;(o=this.overflow)!==null&&o!==void 0&&o[i]&&delete this.overflow[i],typeof sessionStorage<"u"&&sessionStorage.removeItem(i)},key:function(i){var o,u;if(typeof sessionStorage>"u"){var s;return(s=Object.keys(this.overflow))===null||s===void 0?void 0:s[i]}var l=(o=sessionStorage)===null||o===void 0?void 0:o.key(i),p=((u=sessionStorage)===null||u===void 0?void 0:u.length)||0;if(i>=p){var m,y=i-p;return(m=Object.keys(this.overflow))===null||m===void 0?void 0:m[y]}return l},length:function(){var i=Object.keys(this.overflow).length;return typeof sessionStorage>"u"?i:sessionStorage.length+i},clear:function(){this.overflow={},typeof sessionStorage<"u"&&sessionStorage.clear()}},t={overflow:{},get:function(i){var o=this.overflow[i];if(o)return o;if(typeof localStorage>"u")return null;var u=localStorage.getItem(i);if(u)try{return JSON.parse(u)}catch{return u}return null},set:function(i,o){try{localStorage.setItem(i,JSON.stringify(o))}catch{this.overflow[i]=o}},remove:function(i){var o;(o=this.overflow)!==null&&o!==void 0&&o[i]&&delete this.overflow[i],typeof localStorage<"u"&&localStorage.removeItem(i)},key:function(i){var o,u;if(typeof localStorage>"u"){var s;return(s=Object.keys(this.overflow))===null||s===void 0?void 0:s[i]}var l=(o=localStorage)===null||o===void 0?void 0:o.key(i),p=((u=localStorage)===null||u===void 0?void 0:u.length)||0;if(i>=p){var m,y=i-p;return(m=Object.keys(this.overflow))===null||m===void 0?void 0:m[y]}return l},length:function(){var i=Object.keys(this.overflow).length;return typeof localStorage>"u"?i:localStorage.length+i},clear:function(){this.overflow={},typeof localStorage<"u"&&localStorage.clear()}},n={local:t,session:e};return pu=n,pu}var hu,fc;function rt(){if(fc)return hu;fc=1;var e=Qe,t=e($n()),n=ig(),r=Il(),i="_constructorio_purchase_order_ids",o=[{pattern:/[\w\-+\\.]+@([\w-]+\.)+[\w-]{2,4}/,replaceWith:"<email_omitted>"},{pattern:/^(?:\+\d{11,12}|\+\d{1,3}\s\d{3}\s\d{3}\s\d{3,4}|\(\d{3}\)\d{7}|\(\d{3}\)\s\d{3}\s\d{4}|\(\d{3}\)\d{3}-\d{4}|\(\d{3}\)\s\d{3}-\d{4})$/,replaceWith:"<phone_omitted>"},{pattern:/^(?:4[0-9]{15}|(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35\d{3})\d{11})$/,replaceWith:"<credit_omitted>"}],u={trimNonBreakingSpaces:function(l){return l.replace(/\s/g," ").trim()},encodeURIComponentRFC3986:function(l){return encodeURIComponent(l).replace(/[!'()*]/g,function(p){return"%".concat(p.charCodeAt(0).toString(16).toUpperCase())})},cleanParams:function(l){var p={};return Object.keys(l).forEach(function(m){var y=l[m];typeof y=="string"?p[m]=u.trimNonBreakingSpaces(y):p[m]=y}),p},throwHttpErrorFromResponse:function(l,p){return p.json().then(function(m){throw l.message=m.message,l.status=p.status,l.statusText=p.statusText,l.url=p.url,l.headers=p.headers,l})},canUseDOM:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},addEventListener:function(l,p,m){u.canUseDOM()&&window.addEventListener(l,p,m)},removeEventListener:function(l,p,m){u.canUseDOM()&&window.removeEventListener(l,p,m)},getNavigator:function(){return u.canUseDOM()?window.navigator:{userAgent:"",webdriver:!1}},isNil:function(l){return l==null},getWindowLocation:function(){return u.canUseDOM()?window.location:{}},dispatchEvent:function(l){u.canUseDOM()&&window.dispatchEvent(l)},createCustomEvent:function(l,p){if(u.canUseDOM())try{return new window.CustomEvent(l,{detail:p})}catch{var m=document.createEvent("CustomEvent");return m.initCustomEvent(l,!1,!1,p),m}return null},hasOrderIdRecord:function(l){var p=l.orderId,m=l.apiKey,y=p;m&&(y="".concat(m,"-").concat(p));var k=n.str(y.toString()),S=r.local.get(i);return typeof S=="string"&&(S=JSON.parse(S)),S&&S.includes(k)?!0:null},addOrderIdRecord:function(l){var p=l.orderId,m=l.apiKey,y=p;m&&(y="".concat(m,"-").concat(p));var k=n.str(y.toString()),S=r.local.get(i);if(typeof S=="string"&&(S=JSON.parse(S)),S){if(S.includes(k))return;S.length>=10&&(S=S.slice(-9)),S.push(k)}else S=[k];r.local.set(i,S)},applyNetworkTimeout:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=l&&l.networkParameters&&l.networkParameters.timeout,k=p&&p.timeout,S=k||y;typeof S=="number"&&m&&setTimeout(function(){return m.abort()},S)},stringify:function(l,p,m){if(!l)return"";var y=[];return Object.keys(l).forEach(function(k){var S=l[k],w=u.encodeURIComponentRFC3986(k),a;if(S!=null){var d=p?"".concat(p,"%5B").concat(w,"%5D"):w;Array.isArray(S)?a=u.stringify(S,d,"array"):(0,t.default)(S)==="object"?a=u.stringify(S,d,"object"):m==="object"?a="".concat(d,"=").concat(u.encodeURIComponentRFC3986(S)):a="".concat(p||w,"=").concat(u.encodeURIComponentRFC3986(S)),y.push(a)}}),y.join("&")},toSnakeCase:function(l){return l.replace(/[A-Z]/g,function(p){return"_".concat(p.toLowerCase())})},toSnakeCaseKeys:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m={};return Object.keys(l).forEach(function(y){var k=u.toSnakeCase(y);m[k]=p&&(0,t.default)(l[y])==="object"&&!Array.isArray(l[y])?u.toSnakeCaseKeys(l[y],p):l[y]}),m},containsPii:function(l,p){var m=l.toLowerCase();return p.test(m)},obfuscatePiiRequest:function(l){var p=l;try{var m,y,k,S=new URL(l),w=S==null||(m=S.pathname)===null||m===void 0?void 0:m.split("/"),a=S==null||(y=S.search)===null||y===void 0||(k=y.split("&"))===null||k===void 0?void 0:k.map(function(d){var c;return(c=d.split("="))===null||c===void 0?void 0:c[1]});o.forEach(function(d){var c=d.pattern,f=d.replaceWith;w.forEach(function(h){var E=decodeURIComponent(h);u.containsPii(E,c)&&(p=p.replaceAll(h,f))}),a.forEach(function(h){var E=decodeURIComponent(h);u.containsPii(E,c)&&(p=p.replaceAll(E,f))})})}catch{}return p},convertResponseToJson:function(l){return l.ok?l.json().catch(function(){return l.text().then(function(p){throw new Error("Server responded with an invalid JSON object. Response code: ".concat(l.code,", Response: ").concat(p))})}):u.throwHttpErrorFromResponse(new Error,l)},addHTTPSToString:function(l){if(typeof l!="string")return null;var p=l.startsWith("https://"),m=l.startsWith("http://");if(!p&&m)return l.replace("http","https");if(!m&&!p){var y="https://".concat(l);return y}return l}};return hu=u,hu}var vu,dc;function Jn(){if(dc)return vu;dc=1;var e=Qe,t=e(ft()),n=e(dt()),r=rt(),i=function(){function o(u){var s=this;(0,t.default)(this,o),this.events=[],this.enabled=!(u&&u.enabled===!1),this.waitForBeacon=!(u&&u.waitForBeacon===!1),this.active=this.enabled,this.waitForBeacon&&(this.active=!1,r.canUseDOM()&&(window.ConstructorioAutocomplete||window.ConstructorioBeacon||window.ConstructorioTracker)&&this.enabled&&(this.active=!0,this.dispatchEvents()),r.addEventListener("cio.beacon.loaded",function(){s.enabled&&(s.active=!0,s.dispatchEvents())}))}return(0,n.default)(o,[{key:"queue",value:function(s,l){this.events.push({name:s,data:l}),this.active&&this.dispatchEvents()}},{key:"dispatchEvents",value:function(){for(;this.events.length;){var s=this.events.shift(),l=s.name,p=s.data,m="cio.client.".concat(l);r.dispatchEvent(r.createCustomEvent(m,p))}}}]),o}();return vu=i,vu}var gu,pc;function og(){if(pc)return gu;pc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Jn(),i=rt();function o(s,l,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,y=p.apiKey,k=p.version,S=p.serviceUrl,w=p.sessionId,a=p.clientId,d=p.userId,c=p.segments,f=p.testCells,h={c:k};if(h.key=y,h.i=a,h.s=w,!s||typeof s!="string")throw new Error("query is a required parameter of type string");if(f&&Object.keys(f).forEach(function(P){h["ef-".concat(P)]=f[P]}),c&&c.length&&(h.us=c),d&&(h.ui=String(d)),l){var E=l.offset,I=l.page,_=l.resultsPerPage,v=l.filters,g=l.sortBy,x=l.sortOrder,C=l.section,O=l.fmtOptions,N=l.hiddenFields,D=l.hiddenFacets,z=l.variationsMap,F=l.qsParam,j=l.preFilterExpression;i.isNil(E)||(h.offset=E),i.isNil(I)||(h.page=I),i.isNil(_)||(h.num_results_per_page=_),v&&(h.filters=v),g&&(h.sort_by=g),x&&(h.sort_order=x),C&&(h.section=C),O&&(h.fmt_options=O),N&&(h.fmt_options?h.fmt_options.hidden_fields=N:h.fmt_options={hidden_fields:N}),D&&(h.fmt_options?h.fmt_options.hidden_facets=D:h.fmt_options={hidden_facets:D}),z&&(h.variations_map=JSON.stringify(z)),j&&(h.pre_filter_expression=JSON.stringify(j)),F&&(h.qs=JSON.stringify(F))}h._dt=Date.now(),h=i.cleanParams(h);var T=i.stringify(h),R=m?"search/natural_language":"search";return"".concat(S,"/").concat(R,"/").concat(i.encodeURIComponentRFC3986(i.trimNonBreakingSpaces(s)),"?").concat(T)}var u=function(){function s(l){(0,t.default)(this,s),this.options=l||{},this.eventDispatcher=new r(l.eventDispatcher)}return(0,n.default)(s,[{key:"getSearchResults",value:function(p,m){var y=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S,w=this.options.fetch,a;if(typeof AbortController=="function"){var d=new AbortController;a=d&&d.signal,i.applyNetworkTimeout(this.options,k,d)}try{S=o(p,m,this.options)}catch(c){return Promise.reject(c)}return w(S,{signal:a}).then(i.convertResponseToJson).then(function(c){if(c.response&&c.response.results)return c.result_id&&c.response.results.forEach(function(f){f.result_id=c.result_id}),y.eventDispatcher.queue("search.getSearchResults.completed",c),c;if(c.response&&c.response.redirect)return y.eventDispatcher.queue("search.getSearchResults.completed",c),c;throw new Error("getSearchResults response data is malformed")})}},{key:"getVoiceSearchResults",value:function(p,m){var y=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S,w=this.options.fetch,a;if(typeof AbortController=="function"){var d=new AbortController;a=d&&d.signal,i.applyNetworkTimeout(this.options,k,d)}try{var c=!0;S=o(p,m,this.options,c)}catch(f){return Promise.reject(f)}return w(S,{signal:a}).then(i.convertResponseToJson).then(function(f){if(f.response&&f.response.results)return f.result_id&&f.response.results.forEach(function(h){h.result_id=f.result_id}),y.eventDispatcher.queue("search.getVoiceSearchResults.completed",f),f;if(f.response&&f.response.redirect)return y.eventDispatcher.queue("search.getVoiceSearchResults.completed",f),f;throw new Error("getVoiceSearchResults response data is malformed")})}}]),s}();return gu=u,gu}var mu={exports:{}},hc;function Rl(){return hc||(hc=1,function(e){var t=ep();function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(mu)),mu.exports}var yu,vc;function ug(){if(vc)return yu;vc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(Rl());function i(w,a){var d=Object.keys(w);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(w);a&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(w,f).enumerable})),d.push.apply(d,c)}return d}function o(w){for(var a=1;a<arguments.length;a++){var d=arguments[a]!=null?arguments[a]:{};a%2?i(Object(d),!0).forEach(function(c){(0,r.default)(w,c,d[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(d)):i(Object(d)).forEach(function(c){Object.defineProperty(w,c,Object.getOwnPropertyDescriptor(d,c))})}return w}var u=Jn(),s=rt();function l(w,a){var d=a.apiKey,c=a.version,f=a.sessionId,h=a.clientId,E=a.userId,I=a.segments,_=a.testCells,v={c};if(v.key=d,v.i=h,v.s=f,_&&Object.keys(_).forEach(function(L){v["ef-".concat(L)]=_[L]}),I&&I.length&&(v.us=I),E&&(v.ui=String(E)),w){var g=w.page,x=w.offset,C=w.resultsPerPage,O=w.filters,N=w.sortBy,D=w.sortOrder,z=w.section,F=w.fmtOptions,j=w.hiddenFields,T=w.hiddenFacets,R=w.variationsMap,P=w.qsParam,A=w.preFilterExpression;s.isNil(g)||(v.page=g),s.isNil(x)||(v.offset=x),s.isNil(C)||(v.num_results_per_page=C),O&&(v.filters=O),N&&(v.sort_by=N),D&&(v.sort_order=D),z&&(v.section=z),F&&(v.fmt_options=F),j&&(v.fmt_options?v.fmt_options.hidden_fields=j:v.fmt_options={hidden_fields:j}),T&&(v.fmt_options?v.fmt_options.hidden_facets=T:v.fmt_options={hidden_facets:T}),R&&(v.variations_map=JSON.stringify(R)),A&&(v.pre_filter_expression=JSON.stringify(A)),P&&(v.qs=JSON.stringify(P))}return v._dt=Date.now(),v=s.cleanParams(v),v}function p(w,a,d,c){var f=c.serviceUrl;if(!w||typeof w!="string")throw new Error("filterName is a required parameter of type string");if(!a||typeof a!="string")throw new Error("filterValue is a required parameter of type string");var h=l(d,c),E=s.stringify(h);return"".concat(f,"/browse/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(w)),"/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(a)),"?").concat(E)}function m(w,a,d){var c=d.serviceUrl;if(!w||!Array.isArray(w)||!w.length)throw new Error("ids is a required parameter of type array");var f=o(o({},l(a,d)),{},{ids:w}),h=s.stringify(f);return"".concat(c,"/browse/items?").concat(h)}function y(w,a){var d=a.serviceUrl,c=o({},l(w,a));delete c._dt;var f=s.stringify(c);return"".concat(d,"/browse/facets?").concat(f)}function k(w,a,d){var c=d.serviceUrl;if(!w||typeof w!="string")throw new Error("facetName is a required parameter of type string");var f=o({},l(a,d));f.facet_name=w,delete f._dt;var h=s.stringify(f);return"".concat(c,"/browse/facet_options?").concat(h)}var S=function(){function w(a){(0,t.default)(this,w),this.options=a||{},this.eventDispatcher=new u(a.eventDispatcher)}return(0,n.default)(w,[{key:"getBrowseResults",value:function(d,c,f){var h=this,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},I,_=this.options.fetch,v;if(typeof AbortController=="function"){var g=new AbortController;v=g&&g.signal,s.applyNetworkTimeout(this.options,E,g)}try{I=p(d,c,f,this.options)}catch(x){return Promise.reject(x)}return _(I,{signal:v}).then(s.convertResponseToJson).then(function(x){if(x.response&&x.response.results)return x.result_id&&x.response.results.forEach(function(C){C.result_id=x.result_id}),h.eventDispatcher.queue("browse.getBrowseResults.completed",x),x;throw new Error("getBrowseResults response data is malformed")})}},{key:"getBrowseResultsForItemIds",value:function(d,c){var f=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E,I=this.options.fetch,_;if(typeof AbortController=="function"){var v=new AbortController;_=v&&v.signal,s.applyNetworkTimeout(this.options,h,v)}try{E=m(d,c,this.options)}catch(g){return Promise.reject(g)}return I(E,{signal:_}).then(s.convertResponseToJson).then(function(g){if(g.response&&g.response.results)return g.result_id&&g.response.results.forEach(function(x){x.result_id=g.result_id}),f.eventDispatcher.queue("browse.getBrowseResultsForItemIds.completed",g),g;throw new Error("getBrowseResultsForItemIds response data is malformed")})}},{key:"getBrowseGroups",value:function(d){var c=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.options.fetch,E=this.options.serviceUrl,I=l(d,this.options),_;if(typeof AbortController=="function"){var v=new AbortController;_=v&&v.signal,s.applyNetworkTimeout(this.options,f,v)}delete I._dt;var g=s.stringify(I),x="".concat(E,"/browse/groups?").concat(g);return h(x,{signal:_}).then(s.convertResponseToJson).then(function(C){if(C.response&&C.response.groups)return c.eventDispatcher.queue("browse.getBrowseGroups.completed",C),C;throw new Error("getBrowseGroups response data is malformed")})}},{key:"getBrowseFacets",value:function(d,c){var f=this,h,E=this.options.fetch,I;if(typeof AbortController=="function"){var _=new AbortController;I=_&&_.signal,s.applyNetworkTimeout(this.options,c,_)}try{h=y(d,this.options)}catch(v){return Promise.reject(v)}return E(h,{signal:I}).then(s.convertResponseToJson).then(function(v){if(v.response&&v.response.facets)return f.eventDispatcher.queue("browse.getBrowseFacets.completed",v),v;throw new Error("getBrowseFacets response data is malformed")})}},{key:"getBrowseFacetOptions",value:function(d){var c=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E,I=this.options.fetch,_;if(typeof AbortController=="function"){var v=new AbortController;_=v&&v.signal,s.applyNetworkTimeout(this.options,h,v)}try{E=k(d,f,this.options)}catch(g){return Promise.reject(g)}return I(E,{signal:_}).then(s.convertResponseToJson).then(function(g){if(g.response&&g.response.facets)return c.eventDispatcher.queue("browse.getBrowseFacetOptions.completed",g),g;throw new Error("getBrowseFacetOptions response data is malformed")})}}]),w}();return yu=S,yu}var wu,gc;function sg(){if(gc)return wu;gc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Jn(),i=rt(),o=i.convertResponseToJson,u=i.cleanParams,s=i.applyNetworkTimeout,l=i.trimNonBreakingSpaces,p=i.encodeURIComponentRFC3986,m=i.stringify;function y(S,w,a){var d=a.apiKey,c=a.version,f=a.serviceUrl,h=a.sessionId,E=a.clientId,I=a.userId,_=a.segments,v=a.testCells,g={c};if(g.key=d,g.i=E,g.s=h,!S||typeof S!="string")throw new Error("query is a required parameter of type string");if(v&&Object.keys(v).forEach(function(R){g["ef-".concat(R)]=v[R]}),_&&_.length&&(g.us=_),I&&(g.ui=String(I)),w){var x=w.numResults,C=w.resultsPerSection,O=w.filters,N=w.filtersPerSection,D=w.hiddenFields,z=w.variationsMap,F=w.preFilterExpression;x&&(g.num_results=x),C&&Object.keys(C).forEach(function(R){g["num_results_".concat(R)]=C[R]}),O&&(g.filters=O),N&&Object.keys(N).forEach(function(R){g["filters[".concat(R,"]")]=N[R]}),F&&(g.pre_filter_expression=JSON.stringify(F)),D&&(g.fmt_options?g.fmt_options.hidden_fields=D:g.fmt_options={hidden_fields:D}),z&&(g.variations_map=JSON.stringify(z))}g._dt=Date.now(),g=u(g);var j=m(g),T=S.replace(/^\//,"|");return"".concat(f,"/autocomplete/").concat(p(l(T)),"?").concat(j)}var k=function(){function S(w){(0,t.default)(this,S),this.options=w||{},this.eventDispatcher=new r(w.eventDispatcher)}return(0,n.default)(S,[{key:"getAutocompleteResults",value:function(a,d){var c=this,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,E=this.options.fetch,I;if(typeof AbortController=="function"){var _=new AbortController;I=_&&_.signal,s(this.options,f,_)}try{h=y(a,d,this.options)}catch(v){return Promise.reject(v)}return E(h,{signal:I}).then(o).then(function(v){if(v.sections){if(v.result_id){var g=Object.keys(v.sections);g.forEach(function(x){var C=v.sections[x];C.length&&C.forEach(function(O){O.result_id=v.result_id})})}return c.eventDispatcher.queue("autocomplete.getAutocompleteResults.completed",v),v}throw new Error("getAutocompleteResults response data is malformed")})}}]),S}();return wu=k,wu}var _u,mc;function lg(){if(mc)return _u;mc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Jn(),i=rt();function o(s,l,p){var m=p.apiKey,y=p.version,k=p.serviceUrl,S=p.sessionId,w=p.userId,a=p.clientId,d=p.segments,c={c:y};if(c.key=m,c.i=a,c.s=S,!s||typeof s!="string")throw new Error("podId is a required parameter of type string");if(d&&d.length&&(c.us=d),w&&(c.ui=String(w)),l){var f=l.numResults,h=l.itemIds,E=l.section,I=l.term,_=l.filters,v=l.variationsMap,g=l.hiddenFields,x=l.preFilterExpression;i.isNil(f)||(c.num_results=f),h&&(c.item_id=h),E&&(c.section=E),I&&(c.term=I),_&&(c.filters=_),g&&(c.fmt_options?c.fmt_options.hidden_fields=g:c.fmt_options={hidden_fields:g}),v&&(c.variations_map=JSON.stringify(v)),x&&(c.pre_filter_expression=JSON.stringify(x))}c=i.cleanParams(c);var C=i.stringify(c);return"".concat(k,"/recommendations/v1/pods/").concat(i.encodeURIComponentRFC3986(i.trimNonBreakingSpaces(s)),"?").concat(C)}var u=function(){function s(l){(0,t.default)(this,s),this.options=l||{},this.eventDispatcher=new r(l.eventDispatcher)}return(0,n.default)(s,[{key:"getRecommendations",value:function(p,m){var y=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S,w=this.options.fetch,a;if(typeof AbortController=="function"){var d=new AbortController;a=d&&d.signal,i.applyNetworkTimeout(this.options,k,d)}try{S=o(p,m,this.options)}catch(c){return Promise.reject(c)}return w(S,{signal:a}).then(i.convertResponseToJson).then(function(c){if(c.response&&c.response.results)return c.result_id&&c.response.results.forEach(function(f){f.result_id=c.result_id}),y.eventDispatcher.queue("recommendations.getRecommendations.completed",c),c;throw new Error("getRecommendations response data is malformed")})}}]),s}();return _u=u,_u}var Ci={exports:{}},yc;function ag(){if(yc)return Ci.exports;yc=1;var e=Qe,t=e($n()),n=(typeof Reflect>"u"?"undefined":(0,t.default)(Reflect))==="object"?Reflect:null,r=n&&typeof n.apply=="function"?n.apply:function(v,g,x){return Function.prototype.apply.call(v,g,x)},i;n&&typeof n.ownKeys=="function"?i=n.ownKeys:Object.getOwnPropertySymbols?i=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:i=function(v){return Object.getOwnPropertyNames(v)};function o(_){console&&console.warn&&console.warn(_)}var u=Number.isNaN||function(v){return v!==v};function s(){s.init.call(this)}Ci.exports=s,Ci.exports.once=h,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function p(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+(0,t.default)(_))}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(v){if(typeof v!="number"||v<0||u(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");l=v}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||u(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function m(_){return _._maxListeners===void 0?s.defaultMaxListeners:_._maxListeners}s.prototype.getMaxListeners=function(){return m(this)},s.prototype.emit=function(v){for(var g=[],x=1;x<arguments.length;x++)g.push(arguments[x]);var C=v==="error",O=this._events;if(O!==void 0)C=C&&O.error===void 0;else if(!C)return!1;if(C){var N;if(g.length>0&&(N=g[0]),N instanceof Error)throw N;var D=new Error("Unhandled error."+(N?" ("+N.message+")":""));throw D.context=N,D}var z=O[v];if(z===void 0)return!1;if(typeof z=="function")r(z,this,g);else for(var F=z.length,j=d(z,F),x=0;x<F;++x)r(j[x],this,g);return!0};function y(_,v,g,x){var C,O,N;if(p(g),O=_._events,O===void 0?(O=_._events=Object.create(null),_._eventsCount=0):(O.newListener!==void 0&&(_.emit("newListener",v,g.listener?g.listener:g),O=_._events),N=O[v]),N===void 0)N=O[v]=g,++_._eventsCount;else if(typeof N=="function"?N=O[v]=x?[g,N]:[N,g]:x?N.unshift(g):N.push(g),C=m(_),C>0&&N.length>C&&!N.warned){N.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=v,D.count=N.length,o(D)}return _}s.prototype.addListener=function(v,g){return y(this,v,g,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(v,g){return y(this,v,g,!0)};function k(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(_,v,g){var x={fired:!1,wrapFn:void 0,target:_,type:v,listener:g},C=k.bind(x);return C.listener=g,x.wrapFn=C,C}s.prototype.once=function(v,g){return p(g),this.on(v,S(this,v,g)),this},s.prototype.prependOnceListener=function(v,g){return p(g),this.prependListener(v,S(this,v,g)),this},s.prototype.removeListener=function(v,g){var x,C,O,N,D;if(p(g),C=this._events,C===void 0)return this;if(x=C[v],x===void 0)return this;if(x===g||x.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete C[v],C.removeListener&&this.emit("removeListener",v,x.listener||g));else if(typeof x!="function"){for(O=-1,N=x.length-1;N>=0;N--)if(x[N]===g||x[N].listener===g){D=x[N].listener,O=N;break}if(O<0)return this;O===0?x.shift():c(x,O),x.length===1&&(C[v]=x[0]),C.removeListener!==void 0&&this.emit("removeListener",v,D||g)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(v){var g,x,C;if(x=this._events,x===void 0)return this;if(x.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):x[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete x[v]),this;if(arguments.length===0){var O=Object.keys(x),N;for(C=0;C<O.length;++C)N=O[C],N!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=x[v],typeof g=="function")this.removeListener(v,g);else if(g!==void 0)for(C=g.length-1;C>=0;C--)this.removeListener(v,g[C]);return this};function w(_,v,g){var x=_._events;if(x===void 0)return[];var C=x[v];return C===void 0?[]:typeof C=="function"?g?[C.listener||C]:[C]:g?f(C):d(C,C.length)}s.prototype.listeners=function(v){return w(this,v,!0)},s.prototype.rawListeners=function(v){return w(this,v,!1)},s.listenerCount=function(_,v){return typeof _.listenerCount=="function"?_.listenerCount(v):a.call(_,v)},s.prototype.listenerCount=a;function a(_){var v=this._events;if(v!==void 0){var g=v[_];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function d(_,v){for(var g=new Array(v),x=0;x<v;++x)g[x]=_[x];return g}function c(_,v){for(;v+1<_.length;v++)_[v]=_[v+1];_.pop()}function f(_){for(var v=new Array(_.length),g=0;g<v.length;++g)v[g]=_[g].listener||_[g];return v}function h(_,v){return new Promise(function(g,x){function C(N){_.removeListener(v,O),x(N)}function O(){typeof _.removeListener=="function"&&_.removeListener("error",C),g([].slice.call(arguments))}I(_,v,O,{once:!0}),v!=="error"&&E(_,C,{once:!0})})}function E(_,v,g){typeof _.on=="function"&&I(_,"error",v,g)}function I(_,v,g,x){if(typeof _.on=="function")x.once?_.once(v,g):_.on(v,g);else if(typeof _.addEventListener=="function")_.addEventListener(v,function C(O){x.once&&_.removeEventListener(v,C),g(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+(0,t.default)(_))}return Ci.exports}var Su,wc;function cg(){return wc||(wc=1,Su=["Googlebot/","Googlebot-Mobile","Googlebot-Image","Googlebot-News","Googlebot-Video","AdsBot-Google([^-]|$)","AdsBot-Google-Mobile","Feedfetcher-Google","Mediapartners-Google","Mediapartners \\(Googlebot\\)","APIs-Google","bingbot","Slurp","[wW]get","curl","LinkedInBot","Python-urllib","python-requests","libwww","httpunit","nutch","Go-http-client","phpcrawl","msnbot","jyxobot","FAST-WebCrawler","FAST Enterprise Crawler","BIGLOTRON","Teoma","convera","seekbot","Gigabot","Gigablast","exabot","ia_archiver","GingerCrawler","webmon ","HTTrack","grub\\.org","UsineNouvelleCrawler","antibot","netresearchserver","speedy","fluffy","bibnum\\.bnf","findlink","msrbot","panscient","yacybot","AISearchBot","ips-agent","tagoobot","MJ12bot","woriobot","yanga","buzzbot","mlbot","YandexBot","yandex\\.com/bots","purebot","Linguee Bot","CyberPatrol","voilabot","Baiduspider","citeseerxbot","spbot","twengabot","postrank","turnitinbot","scribdbot","page2rss","sitebot","linkdex","Adidxbot","blekkobot","ezooms","dotbot","Mail\\.RU_Bot","discobot","heritrix","findthatfile","europarchive\\.org","NerdByNature\\.Bot","sistrix crawler","Ahrefs(Bot|SiteAudit)","fuelbot","CrunchBot","centurybot9","IndeedBot","mappydata","woobot","ZoominfoBot","PrivacyAwareBot","Multiviewbot","SWIMGBot","Grobbot","eright","Apercite","semanticbot","Aboundex","domaincrawler","wbsearchbot","summify","CCBot","edisterbot","seznambot","ec2linkfinder","gslfbot","aiHitBot","intelium_bot","facebookexternalhit","Yeti","RetrevoPageAnalyzer","lb-spider","Sogou","lssbot","careerbot","wotbox","wocbot","ichiro","DuckDuckBot","lssrocketcrawler","drupact","webcompanycrawler","acoonbot","openindexspider","gnam gnam spider","web-archive-net\\.com\\.bot","backlinkcrawler","coccoc","integromedb","content crawler spider","toplistbot","it2media-domain-crawler","ip-web-crawler\\.com","siteexplorer\\.info","elisabot","proximic","changedetection","arabot","WeSEE:Search","niki-bot","CrystalSemanticsBot","rogerbot","360Spider","psbot","InterfaxScanBot","CC Metadata Scaper","g00g1e\\.net","GrapeshotCrawler","urlappendbot","brainobot","fr-crawler","binlar","SimpleCrawler","Twitterbot","cXensebot","smtbot","bnf\\.fr_bot","A6-Indexer","ADmantX","Facebot","OrangeBot/","memorybot","AdvBot","MegaIndex","SemanticScholarBot","ltx71","nerdybot","xovibot","BUbiNG","Qwantify","archive\\.org_bot","Applebot","TweetmemeBot","crawler4j","findxbot","S[eE][mM]rushBot","yoozBot","lipperhey","Y!J","Domain Re-Animator Bot","AddThis","Screaming Frog SEO Spider","MetaURI","Scrapy","Livelap[bB]ot","OpenHoseBot","CapsuleChecker","collection@infegy\\.com","IstellaBot","DeuSu/","betaBot","Cliqzbot/","MojeekBot/","netEstate NE Crawler","SafeSearch microdata crawler","Gluten Free Crawler/","Sonic","Sysomos","Trove","deadlinkchecker","Slack-ImgProxy","Embedly","RankActiveLinkBot","iskanie","SafeDNSBot","SkypeUriPreview","Veoozbot","Slackbot","redditbot","datagnionbot","Google-Adwords-Instant","adbeat_bot","WhatsApp","contxbot","pinterest","electricmonk","GarlikCrawler","BingPreview/","vebidoobot","FemtosearchBot","Yahoo Link Preview","MetaJobBot","DomainStatsBot","mindUpBot","Daum/","Jugendschutzprogramm-Crawler","Xenu Link Sleuth","Pcore-HTTP","moatbot","KosmioBot","pingdom","PhantomJS","Gowikibot","PiplBot","Discordbot","TelegramBot","Jetslide","newsharecounts","James BOT","Barkrowler","TinEye","SocialRankIOBot","trendictionbot","Ocarinabot","epicbot","Primalbot","DuckDuckGo-Favicons-Bot","GnowitNewsbot","Leikibot","LinkArchiver","YaK/","PaperLiBot","Digg Deeper","dcrawl","Snacktory","AndersPinkBot","Fyrebot","EveryoneSocialBot","Mediatoolkitbot","Luminator-robots","ExtLinksBot","SurveyBot","NING/","okhttp","Nuzzel","omgili","PocketParser","YisouSpider","um-LN","ToutiaoSpider","MuckRack","Jamie's Spider","AHC/","NetcraftSurveyAgent","Laserlikebot","Apache-HttpClient","AppEngine-Google","Jetty","Upflow","Thinklab","Traackr\\.com","Twurly","Mastodon","http_get","DnyzBot","botify","007ac9 Crawler","BehloolBot","BrandVerity","check_http","BDCbot","ZumBot","EZID","ICC-Crawler","ArchiveBot","^LCC ","filterdb\\.iss\\.net/crawler","BLP_bbot","BomboraBot","Buck/","Companybook-Crawler","Genieo","magpie-crawler","MeltwaterNews","Moreover","newspaper/","ScoutJet","(^| )sentry/","StorygizeBot","UptimeRobot","OutclicksBot","seoscanners","Hatena","Google Web Preview","MauiBot","AlphaBot","SBL-BOT","IAS crawler","adscanner","Netvibes","acapbot","Baidu-YunGuanCe","bitlybot","blogmuraBot","Bot\\.AraTurka\\.com","bot-pge\\.chlooe\\.com","BoxcarBot","BTWebClient","ContextAd Bot","Digincore bot","Disqus","Feedly","Fetch/","Fever","Flamingo_SearchEngine","FlipboardProxy","g2reader-bot","imrbot","K7MLWCBot","Kemvibot","Landau-Media-Spider","linkapediabot","vkShare","Siteimprove\\.com","BLEXBot/","DareBoost","ZuperlistBot/","Miniflux/","Feedspotbot/","Diffbot/","SEOkicks","tracemyfile","Nimbostratus-Bot","Bytespider"]),Su}var ku,_c;function fg(){if(_c)return ku;_c=1;var e=Qe,t=e(ft()),n=e(dt()),r=Il(),i=cg(),o=rt(),u="_constructorio_is_human",s=["scroll","resize","touchmove","mouseover","mousemove","keydown","keypress","keyup","focus"],l=function(){function p(){var m=this;(0,t.default)(this,p),this.isHumanBoolean=this.getIsHumanFromSessionStorage();var y=function k(){m.isHumanBoolean=!0,r.session.set(u,!0),s.forEach(function(S){o.removeEventListener(S,k,!0)})};this.isHumanBoolean||s.forEach(function(k){o.addEventListener(k,y,!0)})}return(0,n.default)(p,[{key:"getIsHumanFromSessionStorage",value:function(){return!!r.session.get(u)||!1}},{key:"isHuman",value:function(){return this.isHumanBoolean||!!r.session.get(u)}},{key:"isBot",value:function(){if(this.getIsHumanFromSessionStorage())return!1;var y=o.getNavigator(),k=y.userAgent,S=y.webdriver,w=new RegExp("(".concat(i.join("|"),")"));return!!k.match(w)||!!S}}]),p}();return ku=l,ku}var Eu,Sc;function dg(){if(Sc)return Eu;Sc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Il(),i=fg(),o=rt(),u=rt(),s=u.obfuscatePiiRequest,l="_constructorio_requests",p=18e4,m=function(){function y(k,S){var w=this;(0,t.default)(this,y),this.options=k,this.eventemitter=S,this.humanity=new i,this.requestPending=!1,this.pageUnloading=!1,this.sendTrackingEvents=!!(k&&k.sendTrackingEvents===!0),o.addEventListener("beforeunload",function(){w.pageUnloading=!0}),this.sendTrackingEvents&&this.send()}return(0,n.default)(y,[{key:"queue",value:function(S){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GET",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.sendTrackingEvents&&!this.humanity.isBot()){var c=y.get(),f=s(S);c.push({url:f,method:w,body:a,networkParameters:d}),y.set(c)}}},{key:"sendEvents",value:function(){var S=this,w=this.options.fetch,a=y.get();if((!o.canUseDOM()||this.humanity.isHuman())&&!this.requestPending&&!this.pageUnloading&&a.length){var d,c=a.shift(),f=c,h=f.networkParameters,E,I=this;if(y.set(a),h&&typeof AbortController=="function"){var _=new AbortController;E=_.signal,o.applyNetworkTimeout(this.options,h,_)}if(typeof c=="string"&&(c={url:c,method:"GET"}),c.url){var v=c.url.match(/\?.*_dt=([^&]+)/),g=parseInt(v&&v[1],10),x=+new Date;if(g&&Number.isInteger(g)&&x-g>p){this.sendTrackingEvents=!1,y.remove();return}}c.method==="GET"&&(d=w(c.url,{signal:E})),c.method==="POST"&&(d=w(c.url,{method:c.method,body:JSON.stringify(c.body),mode:"cors",headers:{"Content-Type":"text/plain"},signal:E})),d&&(this.requestPending=!0,d.then(function(C){C.ok?(I.eventemitter&&I.eventemitter.emit("success",{url:c.url,method:c.method,message:"ok"}),S.requestPending=!1,S.send()):C.json().then(function(O){I.eventemitter&&I.eventemitter.emit("error",{url:c.url,method:c.method,message:O&&O.message}),S.requestPending=!1,S.send()}).catch(function(O){I.eventemitter&&I.eventemitter.emit("error",{url:c.url,method:c.method,message:O.type}),S.requestPending=!1,S.send()})}).catch(function(C){I.eventemitter&&I.eventemitter.emit("error",{url:c.url,method:c.method,message:C&&C.toString&&C.toString()}),S.requestPending=!1,S.send()}))}}},{key:"send",value:function(){this.sendTrackingEvents&&(this.options&&this.options.trackingSendDelay===0?this.sendEvents():setTimeout(this.sendEvents.bind(this),this.options&&this.options.trackingSendDelay||250))}}],[{key:"get",value:function(){return r.local.get(l)||[]}},{key:"set",value:function(S){!S||Array.isArray(S)&&S.length===0?y.remove():r.local.set(l,S);var w=y.get();Array.isArray(w)&&w.length!==S.length&&(this.sendTrackingEvents=!1,y.remove())}},{key:"remove",value:function(){r.local.remove(l)}}]),y}();return Eu=m,Eu}var Cu,kc;function pg(){if(kc)return Cu;kc=1;var e=Qe,t=e($n()),n=e(Rl()),r=e(ft()),i=e(dt());function o(S,w){var a=Object.keys(S);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(S);w&&(d=d.filter(function(c){return Object.getOwnPropertyDescriptor(S,c).enumerable})),a.push.apply(a,d)}return a}function u(S){for(var w=1;w<arguments.length;w++){var a=arguments[w]!=null?arguments[w]:{};w%2?o(Object(a),!0).forEach(function(d){(0,n.default)(S,d,a[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(d){Object.defineProperty(S,d,Object.getOwnPropertyDescriptor(a,d))})}return S}var s=ag(),l=rt(),p=dg();function m(S,w){var a=w.apiKey,d=w.version,c=w.sessionId,f=w.clientId,h=w.userId,E=w.segments,I=w.testCells,_=w.requestMethod,v=w.beaconMode,g=l.getWindowLocation(),x=g.host,C=g.pathname,O=w.sendReferrerWithTrackingEvents!==!1,N=Object.assign(S);return d&&(N.c=d),f&&(N.i=f),c&&(N.s=c),h&&(N.ui=String(h)),E&&E.length&&(N.us=E),a&&(N.key=a),I&&Object.keys(I).forEach(function(D){N["ef-".concat(D)]=I[D]}),v&&_&&_.match(/POST/i)&&(N.beacon=!0),O&&x&&(N.origin_referrer=x,C&&(N.origin_referrer+=C)),N._dt=Date.now(),N=l.cleanParams(N),N}function y(S,w){return l.stringify(m(S,w))}var k=function(){function S(w){(0,r.default)(this,S),this.options=w||{},this.eventemitter=new s,this.requests=new p(w,this.eventemitter)}return(0,i.default)(S,[{key:"trackSessionStartV2",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d="".concat(this.options.serviceUrl,"/v2/behavioral_action/session_start?");return this.requests.queue("".concat(d).concat(y({},this.options)),"POST",void 0,a),this.requests.send(),!0}},{key:"trackSessionStart",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d="".concat(this.options.serviceUrl,"/behavior?"),c={action:"session_start"};return this.requests.queue("".concat(d).concat(y(c,this.options)),void 0,void 0,a),this.requests.send(),!0}},{key:"trackInputFocusV2",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f="".concat(this.options.serviceUrl,"/v2/behavioral_action/focus?"),h={},E=d.analyticsTags,I=E===void 0?null:E;I&&(h.analytics_tags=I),h.user_input=a;var _="POST",v=m(h,u(u({},this.options),{},{requestMethod:_}));return this.requests.queue("".concat(f).concat(y({},this.options)),_,v,c),this.requests.send(),!0}},{key:"trackInputFocus",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d="".concat(this.options.serviceUrl,"/behavior?"),c={action:"focus"};return this.requests.queue("".concat(d).concat(y(c,this.options)),void 0,void 0,a),this.requests.send(),!0}},{key:"trackItemDetailLoad",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/item_detail_load?"),f={},h={},E=a.item_name,I=a.name,_=a.item_id,v=a.customer_id,g=a.customerId,x=g===void 0?v:g,C=a.variation_id,O=a.itemName,N=O===void 0?E||I:O,D=a.itemId,z=D===void 0?_||x:D,F=a.variationId,j=F===void 0?C:F,T=a.url,R=a.analyticsTags;N&&(h.item_name=N),z&&(h.item_id=z),j&&(h.variation_id=j),R&&(h.analytics_tags=R),T&&(h.url=T);var P="".concat(c).concat(y(f,this.options)),A="POST",L=m(h,u(u({},this.options),{},{requestMethod:A}));return this.requests.queue(P,A,L,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAutocompleteSelectV2",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/autocomplete_select?"),h=d.original_query,E=d.originalQuery,I=E===void 0?h:E,_=d.user_input,v=d.userInput,g=v===void 0?I||_:v,x=d.original_section,C=d.section,O=C===void 0?x:C,N=d.tr,D=d.group_id,z=d.groupId,F=z===void 0?D:z,j=d.item_id,T=d.itemId,R=T===void 0?j:T,P=d.variation_id,A=d.variationId,L=A===void 0?P:A,M={},G={user_input:g,tr:N,group_id:F,item_id:R,variation_id:L,item_name:a,section:O};O&&(M.section=O);var J="".concat(f).concat(y(M,this.options)),V="POST",Y=m(G,u(u({},this.options),{},{requestMethod:V}));return this.requests.queue(J,V,Y,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackAutocompleteSelect",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/autocomplete/").concat(l.encodeURIComponentRFC3986(l.trimNonBreakingSpaces(a)),"/select?"),h={},E=d.original_query,I=d.originalQuery,_=I===void 0?E:I,v=d.section,g=d.original_section,x=d.originalSection,C=x===void 0?g:x,O=d.tr,N=d.group_id,D=d.groupId,z=D===void 0?N:D,F=d.display_name,j=d.displayName,T=j===void 0?F:j;return _&&(h.original_query=_),O&&(h.tr=O),(C||v)&&(h.section=C||v),z&&(h.group={group_id:z,display_name:T}),this.requests.queue("".concat(f).concat(y(h,this.options)),void 0,void 0,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchSubmitV2",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/search_submit?"),h=d.original_query,E=d.originalQuery,I=E===void 0?h:E,_=d.user_input,v=d.userInput,g=v===void 0?I||_:v,x=d.group_id,C=d.groupId,O=C===void 0?x:C,N=d.section,D={},z={user_input:g,search_term:a,section:N};O&&(z.filters={group_id:O}),N&&(D.section=N);var F="".concat(f).concat(y(D,this.options)),j="POST",T=m(z,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(F,j,T,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchSubmit",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/autocomplete/").concat(l.encodeURIComponentRFC3986(l.trimNonBreakingSpaces(a)),"/search?"),h={},E=d.original_query,I=d.originalQuery,_=I===void 0?E:I,v=d.group_id,g=d.groupId,x=g===void 0?v:g,C=d.display_name,O=d.displayName,N=O===void 0?C:O;return _&&(h.original_query=_),x&&(h.group={group_id:x,display_name:N}),this.requests.queue("".concat(f).concat(y(h,this.options)),void 0,void 0,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultsLoadedV2",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/search_result_load?"),h=d.num_results,E=d.numResults,I=E===void 0?h:E,_=d.result_count,v=d.resultCount,g=v===void 0?I||_:v,x=d.customer_ids,C=d.item_ids,O=d.items,N=O===void 0?x||C:O,D=d.result_page,z=d.resultPage,F=z===void 0?D:z,j=d.result_id,T=d.resultId,R=T===void 0?j:T,P=d.sort_order,A=d.sortOrder,L=A===void 0?P:A,M=d.sort_by,G=d.sortBy,J=G===void 0?M:G,V=d.selected_filters,Y=d.selectedFilters,b=Y===void 0?V:Y,H=d.url,W=d.section,$={},X;N&&Array.isArray(N)&&N.length!==0&&(X=N,typeof N[0]=="string"||typeof N[0]=="number"?X=N.map(function(ne){return{item_id:String(ne)}}):X=N.map(function(ne){return l.toSnakeCaseKeys(ne,!1)})),W&&($.section=W);var re={search_term:a,result_count:g,items:X,result_page:F,result_id:R,sort_order:L,sort_by:J,selected_filters:b,url:H,section:W},ee="".concat(f).concat(y($,this.options)),ie="POST",ve=m(re,u(u({},this.options),{},{requestMethod:ie}));return this.requests.queue(ee,ie,ve,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultsLoaded",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/behavior?"),h={action:"search-results",term:a},E=d.num_results,I=d.numResults,_=I===void 0?E:I,v=d.customer_ids,g=d.customerIds,x=g===void 0?v:g,C=d.item_ids,O=d.itemIds,N=O===void 0?C:O,D;return l.isNil(_)||(h.num_results=_),N&&Array.isArray(N)?D=N:x&&Array.isArray(x)&&(D=x),D&&Array.isArray(D)&&D.length&&(h.customer_ids=D.slice(0,100).join(",")),this.requests.queue("".concat(f).concat(y(h,this.options)),void 0,void 0,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultClickV2",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/search_result_click?"),h=d.num_results,E=d.customer_id,I=d.item_id,_=d.itemId,v=_===void 0?E||I:_,g=d.name,x=d.item_name,C=d.itemName,O=C===void 0?g||x:C,N=d.variation_id,D=d.variationId,z=D===void 0?N:D,F=d.result_id,j=d.resultId,T=j===void 0?F:j,R=d.result_count,P=d.resultCount,A=P===void 0?h||R:P,L=d.result_page,M=d.resultPage,G=M===void 0?L:M,J=d.result_position_on_page,V=d.resultPositionOnPage,Y=V===void 0?J:V,b=d.num_results_per_page,H=d.numResultsPerPage,W=H===void 0?b:H,$=d.selected_filters,X=d.selectedFilters,re=X===void 0?$:X,ee=d.section,ie={item_name:O,item_id:v,variation_id:z,result_id:T,result_count:A,result_page:G,result_position_on_page:Y,num_results_per_page:W,selected_filters:re,section:ee,search_term:a},ve={};ee&&(ve.section=ee);var ne="".concat(f).concat(y(ve,this.options)),we="POST",$e=m(ie,u(u({},this.options),{},{requestMethod:we}));return this.requests.queue(ne,we,$e,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultClick",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(a&&typeof a=="string"){if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f="".concat(this.options.serviceUrl,"/autocomplete/").concat(l.encodeURIComponentRFC3986(l.trimNonBreakingSpaces(a)),"/click_through?"),h={},E=d.item_name,I=d.name,_=d.itemName,v=_===void 0?E||I:_,g=d.item_id,x=d.itemId,C=x===void 0?g:x,O=d.customer_id,N=d.customerId,D=N===void 0?O||C:N,z=d.variation_id,F=d.variationId,j=F===void 0?z:F,T=d.result_id,R=d.resultId,P=R===void 0?T:R,A=d.item_is_convertible,L=d.itemIsConvertible,M=L===void 0?A:L,G=d.section;return v&&(h.name=v),D&&(h.customer_id=D),j&&(h.variation_id=j),P&&(h.result_id=P),typeof M=="boolean"&&(h.item_is_convertible=M),G&&(h.section=G),this.requests.queue("".concat(f).concat(y(h,this.options)),void 0,void 0,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackConversion",value:function(a,d){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(d&&(0,t.default)(d)==="object"&&!Array.isArray(d)){var f=a||"TERM_UNKNOWN",h="".concat(this.options.serviceUrl,"/v2/behavioral_action/conversion?"),E={},I={},_=d.name,v=d.item_name,g=d.itemName,x=g===void 0?v||_:g,C=d.customer_id,O=d.customerId,N=O===void 0?C:O,D=d.item_id,z=d.itemId,F=z===void 0?D||N:z,j=d.variation_id,T=d.variationId,R=T===void 0?j:T,P=d.revenue,A=d.section,L=A===void 0?"Products":A,M=d.display_name,G=d.displayName,J=G===void 0?M:G,V=d.type,Y=d.is_custom_type,b=d.isCustomType,H=b===void 0?Y:b;F&&(I.item_id=F),x&&(I.item_name=x),R&&(I.variation_id=R),(P||P===0)&&(I.revenue=P.toString()),L&&(E.section=L,I.section=L),f&&(I.search_term=f),V&&(I.type=V),H&&(I.is_custom_type=H),J&&(I.display_name=J);var W="".concat(h).concat(y(E,this.options)),$="POST",X=m(I,u(u({},this.options),{},{requestMethod:$}));return this.requests.queue(W,$,X,c),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackPurchase",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/purchase?"),f={},h={},E=a.items,I=a.revenue,_=a.order_id,v=a.orderId,g=v===void 0?_:v,x=a.section,C=a.analyticsTags,O=this.options.apiKey;if(g){if(l.hasOrderIdRecord({orderId:g,apiKey:O}))return!1;l.addOrderIdRecord({orderId:g,apiKey:O}),h.order_id=g}E&&Array.isArray(E)&&(h.items=E.slice(0,100).map(function(F){return l.toSnakeCaseKeys(F,!1)})),(I||I===0)&&(h.revenue=I),x?f.section=x:f.section="Products",C&&(h.analytics_tags=C);var N="".concat(c).concat(y(f,this.options)),D="POST",z=m(h,u(u({},this.options),{},{requestMethod:D}));return this.requests.queue(N,D,z,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackRecommendationView",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/recommendation_result_view?"),f={},h=a.result_count,E=a.resultCount,I=E===void 0?h:E,_=a.result_page,v=a.resultPage,g=v===void 0?_:v,x=a.result_id,C=a.resultId,O=C===void 0?x:C,N=a.section,D=a.url,z=a.pod_id,F=a.podId,j=F===void 0?z:F,T=a.num_results_viewed,R=a.numResultsViewed,P=R===void 0?T:R,A=a.items,L=a.analyticsTags;l.isNil(I)||(f.result_count=I),l.isNil(g)||(f.result_page=g),O&&(f.result_id=O),N?f.section=N:f.section="Products",D&&(f.url=D),j&&(f.pod_id=j),l.isNil(P)||(f.num_results_viewed=P),A&&Array.isArray(A)&&(f.items=A.slice(0,100).map(function(V){return l.toSnakeCaseKeys(V,!1)})),L&&(f.analytics_tags=L);var M="".concat(c).concat(y({},this.options)),G="POST",J=m(f,u(u({},this.options),{},{requestMethod:G}));return this.requests.queue(M,G,J,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackRecommendationClick",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/recommendation_result_click?"),f={},h=a.variation_id,E=a.variationId,I=E===void 0?h:E,_=a.section,v=_===void 0?"Products":_,g=a.result_id,x=a.resultId,C=x===void 0?g:x,O=a.result_count,N=a.resultCount,D=N===void 0?O:N,z=a.result_page,F=a.resultPage,j=F===void 0?z:F,T=a.result_position_on_page,R=a.resultPositionOnPage,P=R===void 0?T:R,A=a.num_results_per_page,L=a.numResultsPerPage,M=L===void 0?A:L,G=a.pod_id,J=a.podId,V=J===void 0?G:J,Y=a.strategy_id,b=a.strategyId,H=b===void 0?Y:b,W=a.item_id,$=a.itemId,X=$===void 0?W:$,re=a.item_name,ee=a.itemName,ie=ee===void 0?re:ee,ve=a.analyticsTags;I&&(f.variation_id=I),v&&(f.section=v),C&&(f.result_id=C),l.isNil(D)||(f.result_count=D),l.isNil(j)||(f.result_page=j),l.isNil(P)||(f.result_position_on_page=P),l.isNil(M)||(f.num_results_per_page=M),V&&(f.pod_id=V),H&&(f.strategy_id=H),X&&(f.item_id=X),ie&&(f.item_name=ie),ve&&(f.analytics_tags=ve);var ne="".concat(c).concat(y({},this.options)),we="POST",$e=m(f,u(u({},this.options),{},{requestMethod:we}));return this.requests.queue(ne,we,$e,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackBrowseResultsLoaded",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/browse_result_load?"),f={},h=a.section,E=h===void 0?"Products":h,I=a.result_count,_=a.resultCount,v=_===void 0?I:_,g=a.result_page,x=a.resultPage,C=x===void 0?g:x,O=a.result_id,N=a.resultId,D=N===void 0?O:N,z=a.selected_filters,F=a.selectedFilters,j=F===void 0?z:F,T=a.url,R=a.sort_order,P=a.sortOrder,A=P===void 0?R:P,L=a.sort_by,M=a.sortBy,G=M===void 0?L:M,J=a.filter_name,V=a.filterName,Y=V===void 0?J:V,b=a.filter_value,H=a.filterValue,W=H===void 0?b:H,$=a.items,X=a.analyticsTags;E&&(f.section=E),l.isNil(v)||(f.result_count=v),l.isNil(C)||(f.result_page=C),D&&(f.result_id=D),j&&(f.selected_filters=j),T&&(f.url=T),A&&(f.sort_order=A),G&&(f.sort_by=G),Y&&(f.filter_name=Y),W&&(f.filter_value=W),$&&Array.isArray($)&&(f.items=$.slice(0,100).map(function(ve){return l.toSnakeCaseKeys(ve,!1)})),X&&(f.analytics_tags=X);var re="".concat(c).concat(y({},this.options)),ee="POST",ie=m(f,u(u({},this.options),{},{requestMethod:ee}));return this.requests.queue(re,ee,ie,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackBrowseResultClick",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/browse_result_click?"),f={},h=a.section,E=h===void 0?"Products":h,I=a.variation_id,_=a.variationId,v=_===void 0?I:_,g=a.result_id,x=a.resultId,C=x===void 0?g:x,O=a.result_count,N=a.resultCount,D=N===void 0?O:N,z=a.result_page,F=a.resultPage,j=F===void 0?z:F,T=a.result_position_on_page,R=a.resultPositionOnPage,P=R===void 0?T:R,A=a.num_results_per_page,L=a.numResultsPerPage,M=L===void 0?A:L,G=a.selected_filters,J=a.selectedFilters,V=J===void 0?G:J,Y=a.filter_name,b=a.filterName,H=b===void 0?Y:b,W=a.filter_value,$=a.filterValue,X=$===void 0?W:$,re=a.customer_id,ee=a.customerId,ie=ee===void 0?re:ee,ve=a.item_id,ne=a.itemId,we=ne===void 0?ie||ve:ne,$e=a.item_name,ht=a.name,mn=a.itemName,je=mn===void 0?$e||ht:mn,yn=a.analyticsTags;E&&(f.section=E),v&&(f.variation_id=v),C&&(f.result_id=C),l.isNil(D)||(f.result_count=D),l.isNil(j)||(f.result_page=j),l.isNil(P)||(f.result_position_on_page=P),l.isNil(M)||(f.num_results_per_page=M),V&&(f.selected_filters=V),H&&(f.filter_name=H),X&&(f.filter_value=X),we&&(f.item_id=we),je&&(f.item_name=je),yn&&(f.analytics_tags=yn);var wn="".concat(c).concat(y({},this.options)),St="POST",Zn=m(f,u(u({},this.options),{},{requestMethod:St}));return this.requests.queue(wn,St,Zn,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackGenericResultClick",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,t.default)(a)==="object"){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/result_click?"),f={},h=a.item_id,E=a.itemId,I=E===void 0?h:E,_=a.item_name,v=a.itemName,g=v===void 0?_:v,x=a.variation_id,C=a.variationId,O=C===void 0?x:C,N=a.section,D=N===void 0?"Products":N,z=a.analyticsTags;if(I){f.section=D,f.item_id=I,g&&(f.item_name=g),O&&(f.variation_id=O),z&&(f.analytics_tags=z);var F="".concat(c).concat(y({},this.options)),j="POST",T=m(f,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(F,j,T,d),this.requests.send(),!0}}return this.requests.send(),new Error('A parameters object with an "itemId" property is required.')}},{key:"trackQuizResultsLoaded",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_result_load?"),f=a.quiz_id,h=a.quizId,E=h===void 0?f:h,I=a.quiz_version_id,_=a.quizVersionId,v=_===void 0?I:_,g=a.quiz_session_id,x=a.quizSessionId,C=x===void 0?g:x,O=a.url,N=a.section,D=N===void 0?"Products":N,z=a.result_count,F=a.resultCount,j=F===void 0?z:F,T=a.result_id,R=a.resultId,P=R===void 0?T:R,A=a.result_page,L=a.resultPage,M=L===void 0?A:L,G=a.items,J={},V={};if(G&&Array.isArray(G)&&(V.items=G.slice(0,100).map(function(W){return l.toSnakeCaseKeys(W,!1)})),typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof v!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof C!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof O!="string")return new Error('"url" is a required parameter of type string');if(V.quiz_id=E,V.quiz_version_id=v,V.quiz_session_id=C,V.url=O,!l.isNil(D)){if(typeof D!="string")return new Error('"section" must be a string');J.section=D,V.section=D}if(!l.isNil(j)){if(typeof j!="number")return new Error('"resultCount" must be a number');V.result_count=j}if(!l.isNil(P)){if(typeof P!="string")return new Error('"resultId" must be a string');V.result_id=P}if(!l.isNil(M)){if(typeof M!="number")return new Error('"resultPage" must be a number');V.result_page=M}var Y="".concat(c).concat(y(J,this.options)),b="POST",H=m(V,u(u({},this.options),{},{requestMethod:b}));return this.requests.queue(Y,b,H,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackQuizResultClick",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_result_click?"),f=a.quiz_id,h=a.quizId,E=h===void 0?f:h,I=a.quiz_version_id,_=a.quizVersionId,v=_===void 0?I:_,g=a.quiz_session_id,x=a.quizSessionId,C=x===void 0?g:x,O=a.item_id,N=a.itemId,D=N===void 0?O:N,z=a.item_name,F=a.itemName,j=F===void 0?z:F,T=a.result_count,R=a.resultCount,P=R===void 0?T:R,A=a.result_id,L=a.resultId,M=L===void 0?A:L,G=a.result_page,J=a.resultPage,V=J===void 0?G:J,Y=a.num_results_per_page,b=a.numResultsPerPage,H=b===void 0?Y:b,W=a.result_position_on_page,$=a.resultPositionOnPage,X=$===void 0?W:$,re=a.section,ee=re===void 0?"Products":re,ie=a.variationId,ve={},ne={};if(typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof v!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof C!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof D!="string"&&typeof j!="string")return new Error('"itemId" or "itemName" is a required parameter of type string');if(ne.quiz_id=E,ne.quiz_version_id=v,ne.quiz_session_id=C,!l.isNil(D)){if(typeof D!="string")return new Error('"itemId" must be a string');ne.item_id=D}if(!l.isNil(j)){if(typeof j!="string")return new Error('"itemName" must be a string');ne.item_name=j}if(!l.isNil(ie)){if(typeof ie!="string")return new Error('"variationId" must be a string');ne.variation_id=ie}if(!l.isNil(ee)){if(typeof ee!="string")return new Error('"section" must be a string');ve.section=ee}if(!l.isNil(P)){if(typeof P!="number")return new Error('"resultCount" must be a number');ne.result_count=P}if(!l.isNil(M)){if(typeof M!="string")return new Error('"resultId" must be a string');ne.result_id=M}if(!l.isNil(V)){if(typeof V!="number")return new Error('"resultPage" must be a number');ne.result_page=V}if(!l.isNil(H)){if(typeof H!="number")return new Error('"numResultsPerPage" must be a number');ne.num_results_per_page=H}if(!l.isNil(X)){if(typeof X!="number")return new Error('"resultPositionOnPage" must be a number');ne.result_position_on_page=X}var we="".concat(c).concat(y(ve,this.options)),$e="POST",ht=m(ne,u(u({},this.options),{},{requestMethod:$e}));return this.requests.queue(we,$e,ht,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackQuizConversion",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_conversion?"),f=a.quiz_id,h=a.quizId,E=h===void 0?f:h,I=a.quiz_version_id,_=a.quizVersionId,v=_===void 0?I:_,g=a.quiz_session_id,x=a.quizSessionId,C=x===void 0?g:x,O=a.item_id,N=a.itemId,D=N===void 0?O:N,z=a.item_name,F=a.itemName,j=F===void 0?z:F,T=a.variation_id,R=a.variationId,P=R===void 0?T:R,A=a.revenue,L=a.section,M=L===void 0?"Products":L,G=a.type,J=a.is_custom_type,V=a.isCustomType,Y=V===void 0?J:V,b=a.display_name,H=a.displayName,W=H===void 0?b:H,$={},X={};if(typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof v!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof C!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof D!="string"&&typeof j!="string")return new Error('"itemId" or "itemName" is a required parameter of type string');if(X.quiz_id=E,X.quiz_version_id=v,X.quiz_session_id=C,!l.isNil(D)){if(typeof D!="string")return new Error('"itemId" must be a string');X.item_id=D}if(!l.isNil(j)){if(typeof j!="string")return new Error('"itemName" must be a string');X.item_name=j}if(!l.isNil(P)){if(typeof P!="string")return new Error('"variationId" must be a string');X.variation_id=P}if(!l.isNil(A)){if(typeof A!="string")return new Error('"revenue" must be a string');X.revenue=A}if(!l.isNil(M)){if(typeof M!="string")return new Error('"section" must be a string');X.section=M}if(!l.isNil(G)){if(typeof G!="string")return new Error('"type" must be a string');X.type=G}if(!l.isNil(Y)){if(typeof Y!="boolean")return new Error('"isCustomType" must be a boolean');X.is_custom_type=Y}if(!l.isNil(W)){if(typeof W!="string")return new Error('"displayName" must be a string');X.display_name=W}var re="".concat(c).concat(y($,this.options)),ee="POST",ie=m(X,u(u({},this.options),{},{requestMethod:ee}));return this.requests.queue(re,ee,ie,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantSubmit",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_submit?"),f=a.section,h=a.intent,E={intent:h,section:f},I="".concat(c).concat(y({},this.options)),_="POST",v=m(E,u(u({},this.options),{},{requestMethod:_}));return this.requests.queue(I,_,v,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultLoadStarted",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_result_load_start?"),f=a.section,h=a.intentResultId,E=a.intent,I={intent_result_id:h,intent:E,section:f},_="".concat(c).concat(y({},this.options)),v="POST",g=m(I,u(u({},this.options),{},{requestMethod:v}));return this.requests.queue(_,v,g,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultLoadFinished",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_result_load_finish?"),f=a.section,h=a.searchResultCount,E=a.intentResultId,I=a.intent,_={intent_result_id:E,section:f,intent:I,search_result_count:h},v="".concat(c).concat(y({},this.options)),g="POST",x=m(_,u(u({},this.options),{},{requestMethod:g}));return this.requests.queue(v,g,x,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultClick",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_search_result_click?"),f=a.section,h=f===void 0?"Products":f,E=a.variationId,I=a.intentResultId,_=a.searchResultId,v=a.itemId,g=a.itemName,x=a.intent,C={section:h,variation_id:E,intent_result_id:I,search_result_id:_,item_id:v,item_name:g,intent:x},O="".concat(c).concat(y({},this.options)),N="POST",D=m(C,u(u({},this.options),{},{requestMethod:N}));return this.requests.queue(O,N,D,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultView",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_search_result_view?"),f=a.section,h=f===void 0?"Products":f,E=a.items,I=a.numResultsViewed,_=a.intentResultId,v=a.searchResultId,g=a.intent,x={section:h,intent_result_id:_,search_result_id:v,num_results_viewed:I,items:E&&Array.isArray(E)&&E.slice(0,100).map(function(D){return l.toSnakeCaseKeys(D,!1)}),intent:g},C="".concat(c).concat(y({},this.options)),O="POST",N=m(x,u(u({},this.options),{},{requestMethod:O}));return this.requests.queue(C,O,N,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantSearchSubmit",value:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a&&(0,t.default)(a)==="object"&&!Array.isArray(a)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_search_submit?"),f=a.section,h=a.intent,E=a.searchTerm,I=a.searchResultId,_=a.intentResultId,v={intent:h,section:f,search_term:E,search_result_id:I,intent_result_id:_},g="".concat(c).concat(y({},this.options)),x="POST",C=m(v,u(u({},this.options),{},{requestMethod:x}));return this.requests.queue(g,x,C,d),this.requests.send(),!0}return this.requests.send(),new Error("parameters is a required parameter of type object")}},{key:"on",value:function(a,d){return a!=="success"&&a!=="error"?new Error('messageType must be a string of value "success" or "error"'):!d||typeof d!="function"?new Error("callback is required and must be a function"):(this.eventemitter.on(a,d),!0)}}]),S}();return k.RequestQueue=p,Cu=k,Cu}var xu={},Ec;function hg(){return Ec||(Ec=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t="2.51.0";e.default=t}(xu)),xu}var Iu={exports:{}},Ru={exports:{}},Tu={exports:{}},Cc;function tp(){return Cc||(Cc=1,function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Tu)),Tu.exports}var xc;function vg(){return xc||(xc=1,function(e){var t=tp();function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ru)),Ru.exports}var Nu={exports:{}},Ic;function gg(){return Ic||(Ic=1,function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Nu)),Nu.exports}var Ou={exports:{}},Rc;function mg(){return Rc||(Rc=1,function(e){var t=tp();function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ou)),Ou.exports}var Au={exports:{}},Tc;function yg(){return Tc||(Tc=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Au)),Au.exports}var Nc;function wg(){return Nc||(Nc=1,function(e){var t=vg(),n=gg(),r=mg(),i=yg();function o(u){return t(u)||n(u)||r(u)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(Iu)),Iu.exports}var Pu,Oc;function _g(){if(Oc)return Pu;Oc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(wg()),i=e($n()),o=Jn(),u=rt();function s(p,m,y,k){var S=y.apiKey,w=y.clientId,a=y.sessionId,d=y.segments,c=y.userId,f=y.version,h=y.quizzesServiceUrl,E={c:f},I="";if(E.key=S,E.i=w,E.s=a,d&&d.length&&(E.us=d),c&&(E.ui=String(c)),!p||typeof p!="string")throw new Error("quizId is a required parameter of type string");if(k==="results"&&((0,i.default)(m.answers)!=="object"||!Array.isArray(m.answers)||m.answers.length===0))throw new Error("answers is a required parameter of type array");if(m){var _=m.section,v=m.answers,g=m.quizSessionId,x=m.quizVersionId,C=m.page,O=m.resultsPerPage,N=m.filters,D=m.fmtOptions,z=m.hiddenFields;_&&(E.section=_),x&&(E.quiz_version_id=x),g&&(E.quiz_session_id=g),v&&v.length&&(I="&".concat(u.stringify({a:v.map(function(j){return(0,r.default)(j).join(",")})}))),u.isNil(C)||(E.page=C),u.isNil(O)||(E.num_results_per_page=O),N&&(E.filters=N),D&&(E.fmt_options=D),z&&(E.fmt_options?E.fmt_options.hidden_fields=z:E.fmt_options={hidden_fields:z})}E._dt=Date.now(),E=u.cleanParams(E);var F=u.stringify(E);return"".concat(h,"/v1/quizzes/").concat(encodeURIComponent(p),"/").concat(encodeURIComponent(k),"/?").concat(F).concat(I)}var l=function(){function p(m){(0,t.default)(this,p),this.options=m||{},this.eventDispatcher=new o(m.eventDispatcher)}return(0,n.default)(p,[{key:"getQuizNextQuestion",value:function(y,k){var S=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,d=this.options.fetch,c=new AbortController,f=c.signal;try{a=s(y,k,this.options,"next")}catch(h){return Promise.reject(h)}return u.applyNetworkTimeout(this.options,w,c),d(a,{signal:f}).then(u.convertResponseToJson).then(function(h){if(h.quiz_version_id)return S.eventDispatcher.queue("quizzes.getQuizNextQuestion.completed",h),h;throw new Error("getQuizNextQuestion response data is malformed")})}},{key:"getQuizResults",value:function(y,k){var S=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,d=this.options.fetch,c=new AbortController,f=c.signal;try{a=s(y,k,this.options,"results")}catch(h){return Promise.reject(h)}return u.applyNetworkTimeout(this.options,w,c),d(a,{signal:f}).then(u.convertResponseToJson).then(function(h){if(h.quiz_version_id)return S.eventDispatcher.queue("quizzes.getQuizResults.completed",h),h;throw new Error("getQuizResults response data is malformed")})}},{key:"getQuizResultsConfig",value:function(y,k){var S=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,d=this.options.fetch,c=new AbortController,f=c.signal;try{a=s(y,k,this.options,"results_config")}catch(h){return Promise.reject(h)}return u.applyNetworkTimeout(this.options,w,c),d(a,{signal:f}).then(u.convertResponseToJson).then(function(h){if(h.quiz_version_id)return S.eventDispatcher.queue("quizzes.getQuizResultsConfig.completed",h),h;throw new Error("getQuizResultsConfig response data is malformed")})}}]),p}();return Pu=l,Pu}var ar={exports:{}},Ac;function Sg(){if(Ac)return ar.exports;Ac=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(Rl()),i=rt(),o=i.cleanParams,u=i.trimNonBreakingSpaces,s=i.encodeURIComponentRFC3986,l=i.stringify;function p(k,S,w){var a=w.apiKey,d=w.version,c=w.sessionId,f=w.clientId,h=w.userId,E=w.segments,I=w.testCells,_=w.assistantServiceUrl,v={c:d};if(v.key=a,v.i=f,v.s=c,!k||typeof k!="string")throw new Error("intent is a required parameter of type string");if(!S.domain||typeof S.domain!="string")throw new Error("parameters.domain is a required parameter of type string");if(I&&Object.keys(I).forEach(function(N){v["ef-".concat(N)]=I[N]}),E&&E.length&&(v.us=E),h&&(v.ui=String(h)),S){var g=S.domain,x=S.numResultsPerPage;g&&(v.domain=g),x&&(v.num_results_per_page=x)}v._dt=Date.now(),v=o(v);var C=l(v),O=k.replace(/^\//,"|");return"".concat(_,"/v1/intent/").concat(s(u(O)),"?").concat(C)}function m(k,S,w){var a=function(c){k.addEventListener(c,function(f){var h=JSON.parse(f.data);S.enqueue({type:c,data:h})})};Object.values(w).forEach(function(d){d!==w.END&&a(d)}),k.addEventListener(w.END,function(){S.close(),k.close()}),k.onerror=function(d){S.error(d),k.close()}}var y=function(){function k(S){(0,t.default)(this,k),this.options=S||{}}return(0,n.default)(k,[{key:"getAssistantResultsStream",value:function(w,a){var d,c;try{var f=p(w,a,this.options);d=new EventSource(f),c=new ReadableStream({start:function(_){m(d,_,k.EventTypes)},cancel:function(){d.close()}})}catch(I){if(c){var h;(h=c)===null||h===void 0||h.cancel()}else{var E;(E=d)===null||E===void 0||E.close()}throw new Error(I.message)}return c}}]),k}();return(0,r.default)(y,"EventTypes",{START:"start",GROUP:"group",SEARCH_RESULT:"search_result",ARTICLE_REFERENCE:"article_reference",RECIPE_INFO:"recipe_info",RECIPE_INSTRUCTIONS:"recipe_instructions",SERVER_ERROR:"server_error",IMAGE_META:"image_meta",END:"end"}),ar.exports=y,ar.exports.createAssistantUrl=p,ar.exports.setupEventListeners=m,ar.exports}var np=Qe,kg=np(ft()),Eg=np(dt()),Cg=ng(),xg=rg(),Ig=og(),Rg=ug(),Tg=sg(),Ng=lg(),rp=pg(),Og=Jn(),po=rt(),Ag=hg(),Pg=Ag.default,Dg=_g(),Lg=Sg(),Mg=function(){var t="ciojs-client-",n=[];return po.canUseDOM()||n.push("domless"),typeof process<"u"&&typeof process.env<"u"&&{}.BUNDLED&&n.push("bundled"),"".concat(t).concat(n.join("-")).concat(n.length?"-":"").concat(Pg)},Tl=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,kg.default)(this,e);var n=t.apiKey,r=t.version,i=t.serviceUrl,o=t.quizzesServiceUrl,u=t.assistantServiceUrl,s=t.segments,l=t.testCells,p=t.clientId,m=t.sessionId,y=t.userId,k=t.fetch,S=t.trackingSendDelay,w=t.sendReferrerWithTrackingEvents,a=t.sendTrackingEvents,d=t.eventDispatcher,c=t.idOptions,f=t.beaconMode,h=t.networkParameters;if(!n||typeof n!="string")throw new Error("API key is a required parameter of type string");var E,I,_=typeof vr<"u"&&vr.CLIENT_VERSION;if(po.canUseDOM()){var v=new Cg(c||{});E=v.session_id,I=v.client_id}else{if(!m||typeof m!="number")throw new Error("sessionId is a required user parameter of type number");if(!p||typeof p!="string")throw new Error("clientId is a required user parameter of type string")}var g=i&&i.replace(/\/$/,"");this.options={apiKey:n,version:r||_||Mg(),serviceUrl:po.addHTTPSToString(g)||"https://ac.cnstrc.com",quizzesServiceUrl:o&&o.replace(/\/$/,"")||"https://quizzes.cnstrc.com",assistantServiceUrl:u&&u.replace(/\/$/,"")||"https://assistant.cnstrc.com",sessionId:m||E,clientId:p||I,userId:y,segments:s,testCells:l,fetch:k||xg({Promise}).fetch,trackingSendDelay:S,sendTrackingEvents:a,sendReferrerWithTrackingEvents:w,eventDispatcher:d,beaconMode:f!==!1,networkParameters:h||{}},this.search=new Ig(this.options),this.browse=new Rg(this.options),this.autocomplete=new Tg(this.options),this.recommendations=new Ng(this.options),this.tracker=new rp(this.options),this.quizzes=new Dg(this.options),this.assistant=new Lg(this.options),new Og(t.eventDispatcher).queue("instantiated",this.options)}return(0,Eg.default)(e,[{key:"setClientOptions",value:function(n){if(Object.keys(n).length){var r=n.apiKey,i=n.segments,o=n.testCells,u=n.userId;r&&(this.options.apiKey=r),i&&(this.options.segments=i),o&&(this.options.testCells=o),u&&(this.options.userId=u)}}}]),e}();Tl.Tracker=rp;po.canUseDOM()&&(window.ConstructorioClient=Tl);var qg=Tl;const zg=As(qg),Tt={SEARCH_SUBMIT:"SEARCH_SUBMIT",RECENT_ACTIONS_STORAGE_KEY:{scope:"session",key:"_constructorio_recent_actions"},RECENT_SEARCHES_STORAGE_KEY:{scope:"local",key:"_constructorio_recent_searches"},SEARCH_TERM_STORAGE_KEY:{scope:"session",key:"_constructorio_search_term"},RECENT_SEARCHES_STORAGE_COUNT:100,RECENT_ACTION_STORAGE_COUNT:5},ip=e=>e==="local"?localStorage:sessionStorage,Nl=(e,t)=>{try{return ip(e.scope).setItem(e.key,t)}catch(n){return Ol(`storageSetItem error: ${n}`),null}},Fg=e=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,[...t.body.querySelectorAll("script, img")].forEach(o=>{t.body.removeChild(o)}),[...t.body.childNodes].map(o=>o.innerText||o.textContent).join("")},Ug=e=>{try{return ip(e.scope).getItem(e.key)}catch(t){return Ol(`storageGetItem error: ${t}`),null}},op=e=>{const t=Ug(e);if(t)try{return JSON.parse(t)}catch(n){Ol(`storageGetArray error: ${n}`)}return null},Bg=()=>{const e=op(Tt.RECENT_SEARCHES_STORAGE_KEY)||[];return e.forEach((t,n)=>{typeof t=="string"&&(e[n]={term:t,ts:Date.now()})}),e},jg=(e,t)=>{const n=Fg(e.trim());let r=Bg();if(n.length>0){for(r=r.filter(i=>{var o;return((o=i.term)==null?void 0:o.toUpperCase())!==n.toUpperCase()}),t!=null&&t.original_section&&(t.section=t.original_section,delete t.original_section,delete t.is_meta_section),r.push({term:n,ts:Date.now(),data:t});r.length>Tt.RECENT_SEARCHES_STORAGE_COUNT;)r.shift();Nl(Tt.RECENT_SEARCHES_STORAGE_KEY,JSON.stringify(r))}},up=()=>op(Tt.RECENT_ACTIONS_STORAGE_KEY)||[],bg=()=>{var t;const e=up();return e&&e.length?(t=e[e.length-1])==null?void 0:t.action:null},Hg=e=>{let t=up();e&&(bg()!==e&&t.push({action:e,ts:Date.now()}),t.length>Tt.RECENT_ACTION_STORAGE_COUNT&&(t=t.slice(-1*Tt.RECENT_ACTION_STORAGE_COUNT)),Nl(Tt.RECENT_ACTIONS_STORAGE_KEY,JSON.stringify(t)))};function Vg(e){return e.section==="Products"}function Kg(e){return e.section==="Search Suggestions"}function sp(e){return e.groupName!==void 0}function Pc(e){return e.type==="custom"}function lp(e){return e.type==="autocomplete"||!e.type}function Yn(e){return e.type==="recommendations"}const Wg="1.23.19";function ap(e){var i,o;let t=!1,n=!1,r=!0;if(((i=e==null?void 0:e.features)==null?void 0:i.custom_autosuggest_ui)===!0)switch((o=e==null?void 0:e.feature_variants)==null?void 0:o.custom_autosuggest_ui){case"custom_autosuggest_ui_result_count":n=!0;break;case"custom_autosuggest_ui_image":t=!0;break;case"custom_autosuggest_ui_image_result_count":t=!0,n=!0;break;case"custom_autosuggest_ui_disable_recommendations_in_zero_state":r=!1;break}return{featureDisplaySearchSuggestionImages:t,featureDisplaySearchSuggestionResultCounts:n,featureDisplayZeroStateRecommendations:r}}const Gg=({item:e,items:t})=>{var i;const n=t.findIndex(o=>(o==null?void 0:o.id)===(e==null?void 0:e.id));return{sectionId:(i=t[n])==null?void 0:i.section,index:n}},Qg=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b([A-Z]+)([A-Z])([a-z])/,"$1 $2$3").replace(/([a-zA-Z])/,t=>t.toUpperCase()),Ts=e=>e.replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),$g=(e,t)=>{if(e&&typeof window<"u"){const n=new zg({apiKey:e,sendTrackingEvents:!0,version:`cio-ui-autocomplete-${Wg}`,...t});return n.tracker.on("error",r=>console.error(r)),n}return null},Jg=(e,t,n)=>{const r=[],i=o=>{const{type:u}=o;let s;switch(u){case"recommendations":s=t[o.podId];break;case"custom":s=o.data.map(l=>{var p;return{...l,id:(l==null?void 0:l.id)||((p=l==null?void 0:l.data)==null?void 0:p.id)}});break;default:s=t[o.indexSectionName]}return s};return e==null||e.forEach((o,u)=>{const s=i(o);if(Array.isArray(s)){const l={...o,data:s},p=o.ref,m=n.current[u];l.ref=p||m,r.push(l)}}),r},Yg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Xg=(e,t,n)=>{if(e.dataset.cnstrcRecommendationsPodId){const r=t.find(o=>Yn(o)&&o.podId===e.dataset.cnstrcRecommendationsPodId),i=r==null?void 0:r.data.map(o=>{var u,s;return{itemId:(u=o.data)==null?void 0:u.id,itemName:o.value,variationId:(s=o.data)==null?void 0:s.variation_id}});n==null||n.tracker.trackRecommendationView({podId:e.dataset.cnstrcRecommendationsPodId,numResultsViewed:(i==null?void 0:i.length)||0,url:window.location.href,section:e.dataset.cnstrcSection,items:i})}},Zg=e=>{const t=[];return e==null||e.forEach(n=>{n!=null&&n.data&&t.push(...n.data)}),t},cp=(e,t)=>{const n={in:"in","show all results":"show all results"};return t?t[e]:n[e]||e},Ns=(e,t,n={})=>{e==null||e.tracker.trackSearchSubmit(t,n),Nl(Tt.SEARCH_TERM_STORAGE_KEY,t),jg(t,{}),Hg(Tt.SEARCH_SUBMIT)},Ol=e=>{var t;try{typeof process<"u"&&((t=process==null?void 0:process.env)!=null&&t.LOGGER)&&console.log(e)}catch{}},em=({apiKey:e,cioJsClient:t,cioJsClientOptions:n})=>(!e&&!t&&console.error("Either apiKey or cioJsClient is required"),B.useMemo(()=>t||$g(e,n),[e,t,n]));function hr(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}var fp={exports:{}},tm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nm=tm,rm=nm;function dp(){}function pp(){}pp.resetWarningCache=dp;var im=function(){function e(r,i,o,u,s,l){if(l!==rm){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:pp,resetWarningCache:dp};return n.PropTypes=n,n};fp.exports=im();var om=fp.exports;const U=As(om);var se={};/** @license React v17.0.2
33
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ru(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tv=typeof WeakMap=="function"?WeakMap:Map;function xd(e,t,n){n=Tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lo||(lo=!0,xs=r),vs(e,t)},n}function Id(e,t,n){n=Tt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){vs(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function qa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tv;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)||(i.add(n),e=bv.bind(null,e,t,n),t.then(e,e))}function Fa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ua(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tt(-1,1),t.tag=2,Wt(n,t,1))),n.lanes|=1),e)}var Nv=Dt.ReactCurrentOwner,qe=!1;function Pe(e,t,n,r){t.child=e===null?id(t,null,n,r):bn(t,e.child,n,r)}function Ba(e,t,n,r,i){n=n.render;var o=t.ref;return qn(t,i),r=fl(e,t,n,r,o,i),n=dl(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(fe&&n&&Zs(t),t.flags|=1,Pe(e,t,r,i),t.child)}function ja(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!kl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Rd(e,t,o,r,i)):(e=Bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var u=o.memoizedProps;if(n=n.compare,n=n!==null?n:Lr,n(u,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=$t(o,r),e.ref=t.ref,e.return=t,t.child=e}function Rd(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Lr(o,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return gs(e,t,n,r,i)}function Td(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Pn,be),be|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Pn,be),be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ue(Pn,be),be|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ue(Pn,be),be|=r;return Pe(e,t,i,n),t.child}function Nd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gs(e,t,n,r,i){var o=Ue(n)?cn:Ae.current;return o=Bn(t,o),qn(t,i),n=fl(e,t,n,r,o,i),r=dl(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(fe&&r&&Zs(t),t.flags|=1,Pe(e,t,n,i),t.child)}function ba(e,t,n,r,i){if(Ue(n)){var o=!0;Xi(t)}else o=!1;if(qn(t,i),t.stateNode===null)qi(e,t),nd(t,n,r),hs(t,n,r,i),r=!0;else if(e===null){var u=t.stateNode,s=t.memoizedProps;u.props=s;var a=u.context,d=n.contextType;typeof d=="object"&&d!==null?d=tt(d):(d=Ue(n)?cn:Ae.current,d=Bn(t,d));var m=n.getDerivedStateFromProps,y=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function";y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==r||a!==d)&&Da(t,u,r,d),qt=!1;var k=t.memoizedState;u.state=k,ro(t,r,u,i),a=t.memoizedState,s!==r||k!==a||Fe.current||qt?(typeof m=="function"&&(ps(t,n,m,r),a=t.memoizedState),(s=qt||Pa(t,n,s,r,k,a,d))?(y||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),u.props=r,u.state=a,u.context=d,r=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,ed(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:ot(t.type,s),u.props=d,y=t.pendingProps,k=u.context,a=n.contextType,typeof a=="object"&&a!==null?a=tt(a):(a=Ue(n)?cn:Ae.current,a=Bn(t,a));var _=n.getDerivedStateFromProps;(m=typeof _=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==y||k!==a)&&Da(t,u,r,a),qt=!1,k=t.memoizedState,u.state=k,ro(t,r,u,i);var w=t.memoizedState;s!==y||k!==w||Fe.current||qt?(typeof _=="function"&&(ps(t,n,_,r),w=t.memoizedState),(d=qt||Pa(t,n,d,r,k,w,a)||!1)?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,w,a),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,w,a)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),u.props=r,u.state=w,u.context=a,r=d):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return ms(e,t,n,r,o,i)}function ms(e,t,n,r,i,o){Nd(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return i&&Ra(t,n,!1),Pt(e,t,o);r=t.stateNode,Nv.current=t;var s=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=bn(t,e.child,null,o),t.child=bn(t,null,s,o)):Pe(e,t,s,o),t.memoizedState=r.state,i&&Ra(t,n,!0),t.child}function Od(e){var t=e.stateNode;t.pendingContext?Ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(e,t.context,!1),sl(e,t.containerInfo)}function Ha(e,t,n,r,i){return jn(),tl(i),t.flags|=256,Pe(e,t,n,r),t.child}var ys={dehydrated:null,treeContext:null,retryLane:0};function ws(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ad(e,t,n){var r=t.pendingProps,i=de.current,o=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(de,i&1),e===null)return fs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,o?(r=t.mode,o=t.child,u={mode:"hidden",children:u},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=u):o=Io(u,r,0,null),e=an(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ws(n),t.memoizedState=ys,e):vl(t,u));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Ov(e,t,u,r,s,i,n);if(o){o=r.fallback,u=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(u&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=$t(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=$t(s,o):(o=an(o,u,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,u=e.child.memoizedState,u=u===null?ws(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},o.memoizedState=u,o.childLanes=e.childLanes&~n,t.memoizedState=ys,r}return o=e.child,e=o.sibling,r=$t(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vl(e,t){return t=Io({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wi(e,t,n,r){return r!==null&&tl(r),bn(t,e.child,null,n),e=vl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ov(e,t,n,r,i,o,u){if(n)return t.flags&256?(t.flags&=-257,r=ru(Error(z(422))),wi(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Io({mode:"visible",children:r.children},i,0,null),o=an(o,i,u,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&bn(t,e.child,null,u),t.child.memoizedState=ws(u),t.memoizedState=ys,o);if(!(t.mode&1))return wi(e,t,u,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(z(419)),r=ru(o,r,void 0),wi(e,t,u,r)}if(s=(u&e.childLanes)!==0,qe||s){if(r=Ee,r!==null){switch(u&-u){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|u)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,At(e,i),at(r,e,i,-1))}return Sl(),r=ru(Error(z(421))),wi(e,t,u,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Hv.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,He=Kt(i.nextSibling),Ve=t,fe=!0,st=null,e!==null&&(Ye[Xe++]=It,Ye[Xe++]=Rt,Ye[Xe++]=fn,It=e.id,Rt=e.overflow,fn=t),t=vl(t,r.children),t.flags|=4096,t)}function Va(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ds(e.return,t,n)}function iu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Pd(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pe(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Va(e,n,t);else if(e.tag===19)Va(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(de,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),iu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}iu(t,!0,n,null,o);break;case"together":iu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=$t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Av(e,t,n){switch(t.tag){case 3:Od(t),jn();break;case 5:od(t);break;case 1:Ue(t.type)&&Xi(t);break;case 4:sl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(to,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Ad(e,t,n):(ue(de,de.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);ue(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Pd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,Td(e,t,n)}return Pt(e,t,n)}var Dd,_s,Ld,Md;Dd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_s=function(){};Ld=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,sn(_t.current);var o=null;switch(n){case"input":i=bu(e,i),r=bu(e,r),o=[];break;case"select":i=he({},i,{value:void 0}),r=he({},r,{value:void 0}),o=[];break;case"textarea":i=Ku(e,i),r=Ku(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ji)}Gu(n,r);var u;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var s=i[d];for(u in s)s.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Rr.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var a=r[d];if(s=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&a!==s&&(a!=null||s!=null))if(d==="style")if(s){for(u in s)!s.hasOwnProperty(u)||a&&a.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in a)a.hasOwnProperty(u)&&s[u]!==a[u]&&(n||(n={}),n[u]=a[u])}else n||(o||(o=[]),o.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(o=o||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Rr.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&le("scroll",e),o||s===a||(o=[])):(o=o||[]).push(d,a))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Md=function(e,t,n,r){n!==r&&(t.flags|=4)};function sr(e,t){if(!fe)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 Ne(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&14680064,r|=i.flags&14680064,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 Pv(e,t,n){var r=t.pendingProps;switch(el(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ue(t.type)&&Yi(),Ne(t),null;case 3:return r=t.stateNode,Hn(),ae(Fe),ae(Ae),al(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,st!==null&&(Ts(st),st=null))),_s(e,t),Ne(t),null;case 5:ll(t);var i=sn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)Ld(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return Ne(t),null}if(e=sn(_t.current),mi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[yt]=t,r[qr]=o,e=(t.mode&1)!==0,n){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(i=0;i<pr.length;i++)le(pr[i],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":Zl(r,o),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},le("invalid",r);break;case"textarea":ta(r,o),le("invalid",r)}Gu(n,o),i=null;for(var u in o)if(o.hasOwnProperty(u)){var s=o[u];u==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&gi(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&gi(r.textContent,s,e),i=["children",""+s]):Rr.hasOwnProperty(u)&&s!=null&&u==="onScroll"&&le("scroll",r)}switch(n){case"input":li(r),ea(r,o,!0);break;case"textarea":li(r),na(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ji)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=lf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[yt]=t,e[qr]=r,Dd(e,t,!1,!1),t.stateNode=e;e:{switch(u=Qu(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;i<pr.length;i++)le(pr[i],e);i=r;break;case"source":le("error",e),i=r;break;case"img":case"image":case"link":le("error",e),le("load",e),i=r;break;case"details":le("toggle",e),i=r;break;case"input":Zl(e,r),i=bu(e,r),le("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=he({},r,{value:void 0}),le("invalid",e);break;case"textarea":ta(e,r),i=Ku(e,r),le("invalid",e);break;default:i=r}Gu(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="style"?ff(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&af(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Tr(e,a):typeof a=="number"&&Tr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rr.hasOwnProperty(o)?a!=null&&o==="onScroll"&&le("scroll",e):a!=null&&Us(e,o,a,u))}switch(n){case"input":li(e),ea(e,r,!1);break;case"textarea":li(e),na(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Dn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Dn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ne(t),null;case 6:if(e&&t.stateNode!=null)Md(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=sn(Ur.current),sn(_t.current),mi(t)){if(r=t.stateNode,n=t.memoizedProps,r[yt]=t,(o=r.nodeValue!==n)&&(e=Ve,e!==null))switch(e.tag){case 3:gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yt]=t,t.stateNode=r}return Ne(t),null;case 13:if(ae(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(fe&&He!==null&&t.mode&1&&!(t.flags&128))Xf(),jn(),t.flags|=98560,o=!1;else if(o=mi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(z(317));o[yt]=t}else jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ne(t),o=!1}else st!==null&&(Ts(st),st=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Se===0&&(Se=3):Sl())),t.updateQueue!==null&&(t.flags|=4),Ne(t),null);case 4:return Hn(),_s(e,t),e===null&&Mr(t.stateNode.containerInfo),Ne(t),null;case 10:return il(t.type._context),Ne(t),null;case 17:return Ue(t.type)&&Yi(),Ne(t),null;case 19:if(ae(de),o=t.memoizedState,o===null)return Ne(t),null;if(r=(t.flags&128)!==0,u=o.rendering,u===null)if(r)sr(o,!1);else{if(Se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=io(e),u!==null){for(t.flags|=128,sr(o,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,u=o.alternate,u===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(de,de.current&1|2),t.child}e=e.sibling}o.tail!==null&&me()>Kn&&(t.flags|=128,r=!0,sr(o,!1),t.lanes=4194304)}else{if(!r)if(e=io(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!fe)return Ne(t),null}else 2*me()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,sr(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=me(),t.sibling=null,n=de.current,ue(de,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return _l(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?be&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function Dv(e,t){switch(el(t),t.tag){case 1:return Ue(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(),ae(Fe),ae(Ae),al(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ll(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Hn(),null;case 10:return il(t.type._context),null;case 22:case 23:return _l(),null;case 24:return null;default:return null}}var _i=!1,Oe=!1,Lv=typeof WeakSet=="function"?WeakSet:Set,K=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ge(e,t,r)}else n.current=null}function Ss(e,t,n){try{n()}catch(r){ge(e,t,r)}}var Ka=!1;function Mv(e,t){if(is=Gi,e=Uf(),Xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,s=-1,a=-1,d=0,m=0,y=e,k=null;t:for(;;){for(var _;y!==n||i!==0&&y.nodeType!==3||(s=u+i),y!==o||r!==0&&y.nodeType!==3||(a=u+r),y.nodeType===3&&(u+=y.nodeValue.length),(_=y.firstChild)!==null;)k=y,y=_;for(;;){if(y===e)break t;if(k===n&&++d===i&&(s=u),k===o&&++m===r&&(a=u),(_=y.nextSibling)!==null)break;y=k,k=y.parentNode}y=_}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(os={focusedElem:e,selectionRange:n},Gi=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var l=w.memoizedProps,p=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?l:ot(t.type,l),p);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(E){ge(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return w=Ka,Ka=!1,w}function kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ss(t,n,o)}i=i.next}while(i!==r)}}function Co(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ks(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[qr],delete t[ls],delete t[mv],delete t[yv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qd(e){return e.tag===5||e.tag===3||e.tag===4}function Wa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qd(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Es(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ji));else if(r!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function Cs(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&&(e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}var xe=null,ut=!1;function Mt(e,t,n){for(n=n.child;n!==null;)Fd(e,t,n),n=n.sibling}function Fd(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Oe||An(n,t);case 6:var r=xe,i=ut;xe=null,Mt(e,t,n),xe=r,ut=i,xe!==null&&(ut?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(ut?(e=xe,n=n.stateNode,e.nodeType===8?Yo(e.parentNode,n):e.nodeType===1&&Yo(e,n),Pr(e)):Yo(xe,n.stateNode));break;case 4:r=xe,i=ut,xe=n.stateNode.containerInfo,ut=!0,Mt(e,t,n),xe=r,ut=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,u=o.destroy;o=o.tag,u!==void 0&&(o&2||o&4)&&Ss(n,t,u),i=i.next}while(i!==r)}Mt(e,t,n);break;case 1:if(!Oe&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ge(n,t,s)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,Mt(e,t,n),Oe=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Ga(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lv),t.forEach(function(r){var i=Vv.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,u=t,s=u;e:for(;s!==null;){switch(s.tag){case 5:xe=s.stateNode,ut=!1;break e;case 3:xe=s.stateNode.containerInfo,ut=!0;break e;case 4:xe=s.stateNode.containerInfo,ut=!0;break e}s=s.return}if(xe===null)throw Error(z(160));Fd(o,u,i),xe=null,ut=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(d){ge(i,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}function Ud(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(it(t,e),gt(e),r&4){try{kr(3,e,e.return),Co(3,e)}catch(l){ge(e,e.return,l)}try{kr(5,e,e.return)}catch(l){ge(e,e.return,l)}}break;case 1:it(t,e),gt(e),r&512&&n!==null&&An(n,n.return);break;case 5:if(it(t,e),gt(e),r&512&&n!==null&&An(n,n.return),e.flags&32){var i=e.stateNode;try{Tr(i,"")}catch(l){ge(e,e.return,l)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,u=n!==null?n.memoizedProps:o,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&uf(i,o),Qu(s,u);var d=Qu(s,o);for(u=0;u<a.length;u+=2){var m=a[u],y=a[u+1];m==="style"?ff(i,y):m==="dangerouslySetInnerHTML"?af(i,y):m==="children"?Tr(i,y):Us(i,m,y,d)}switch(s){case"input":Hu(i,o);break;case"textarea":sf(i,o);break;case"select":var k=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var _=o.value;_!=null?Dn(i,!!o.multiple,_,!1):k!==!!o.multiple&&(o.defaultValue!=null?Dn(i,!!o.multiple,o.defaultValue,!0):Dn(i,!!o.multiple,o.multiple?[]:"",!1))}i[qr]=o}catch(l){ge(e,e.return,l)}}break;case 6:if(it(t,e),gt(e),r&4){if(e.stateNode===null)throw Error(z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(l){ge(e,e.return,l)}}break;case 3:if(it(t,e),gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pr(t.containerInfo)}catch(l){ge(e,e.return,l)}break;case 4:it(t,e),gt(e);break;case 13:it(t,e),gt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(yl=me())),r&4&&Ga(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Oe=(d=Oe)||m,it(t,e),Oe=d):it(t,e),gt(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(K=e,m=e.child;m!==null;){for(y=K=m;K!==null;){switch(k=K,_=k.child,k.tag){case 0:case 11:case 14:case 15:kr(4,k,k.return);break;case 1:An(k,k.return);var w=k.stateNode;if(typeof w.componentWillUnmount=="function"){r=k,n=k.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(l){ge(r,n,l)}}break;case 5:An(k,k.return);break;case 22:if(k.memoizedState!==null){$a(y);continue}}_!==null?(_.return=k,K=_):$a(y)}m=m.sibling}e:for(m=null,y=e;;){if(y.tag===5){if(m===null){m=y;try{i=y.stateNode,d?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=y.stateNode,a=y.memoizedProps.style,u=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=cf("display",u))}catch(l){ge(e,e.return,l)}}}else if(y.tag===6){if(m===null)try{y.stateNode.nodeValue=d?"":y.memoizedProps}catch(l){ge(e,e.return,l)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;m===y&&(m=null),y=y.return}m===y&&(m=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:it(t,e),gt(e),r&4&&Ga(e);break;case 21:break;default:it(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(qd(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Tr(i,""),r.flags&=-33);var o=Wa(e);Cs(e,o,i);break;case 3:case 4:var u=r.stateNode.containerInfo,s=Wa(e);Es(e,s,u);break;default:throw Error(z(161))}}catch(a){ge(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zv(e,t,n){K=e,Bd(e)}function Bd(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var i=K,o=i.child;if(i.tag===22&&r){var u=i.memoizedState!==null||_i;if(!u){var s=i.alternate,a=s!==null&&s.memoizedState!==null||Oe;s=_i;var d=Oe;if(_i=u,(Oe=a)&&!d)for(K=i;K!==null;)u=K,a=u.child,u.tag===22&&u.memoizedState!==null?Ja(i):a!==null?(a.return=u,K=a):Ja(i);for(;o!==null;)K=o,Bd(o),o=o.sibling;K=i,_i=s,Oe=d}Qa(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,K=o):Qa(e)}}function Qa(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Oe||Co(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Oe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ot(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Aa(t,o,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Aa(t,u,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var y=m.dehydrated;y!==null&&Pr(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}Oe||t.flags&512&&ks(t)}catch(k){ge(t,t.return,k)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function $a(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function Ja(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Co(4,t)}catch(a){ge(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ge(t,i,a)}}var o=t.return;try{ks(t)}catch(a){ge(t,o,a)}break;case 5:var u=t.return;try{ks(t)}catch(a){ge(t,u,a)}}}catch(a){ge(t,t.return,a)}if(t===e){K=null;break}var s=t.sibling;if(s!==null){s.return=t.return,K=s;break}K=t.return}}var qv=Math.ceil,so=Dt.ReactCurrentDispatcher,gl=Dt.ReactCurrentOwner,et=Dt.ReactCurrentBatchConfig,te=0,Ee=null,ye=null,Ie=0,be=0,Pn=Zt(0),Se=0,Hr=null,pn=0,xo=0,ml=0,Er=null,ze=null,yl=0,Kn=1/0,Ct=null,lo=!1,xs=null,Gt=null,Si=!1,jt=null,ao=0,Cr=0,Is=null,Fi=-1,Ui=0;function De(){return te&6?me():Fi!==-1?Fi:Fi=me()}function Qt(e){return e.mode&1?te&2&&Ie!==0?Ie&-Ie:_v.transition!==null?(Ui===0&&(Ui=Ef()),Ui):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Of(e.type)),e):1}function at(e,t,n,r){if(50<Cr)throw Cr=0,Is=null,Error(z(185));Wr(e,n,r),(!(te&2)||e!==Ee)&&(e===Ee&&(!(te&2)&&(xo|=n),Se===4&&Ut(e,Ie)),Be(e,r),n===1&&te===0&&!(t.mode&1)&&(Kn=me()+500,So&&en()))}function Be(e,t){var n=e.callbackNode;_h(e,t);var r=Wi(e,e===Ee?Ie:0);if(r===0)n!==null&&oa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oa(n),t===1)e.tag===0?wv(Ya.bind(null,e)):$f(Ya.bind(null,e)),vv(function(){!(te&6)&&en()}),n=null;else{switch(Cf(r)){case 1:n=Vs;break;case 4:n=Sf;break;case 16:n=Ki;break;case 536870912:n=kf;break;default:n=Ki}n=Qd(n,jd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jd(e,t){if(Fi=-1,Ui=0,te&6)throw Error(z(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Wi(e,e===Ee?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=co(e,r);else{t=r;var i=te;te|=2;var o=Hd();(Ee!==e||Ie!==t)&&(Ct=null,Kn=me()+500,ln(e,t));do try{Bv();break}catch(s){bd(e,s)}while(1);rl(),so.current=o,te=i,ye!==null?t=0:(Ee=null,Ie=0,t=Se)}if(t!==0){if(t===2&&(i=Zu(e),i!==0&&(r=i,t=Rs(e,i))),t===1)throw n=Hr,ln(e,0),Ut(e,r),Be(e,me()),n;if(t===6)Ut(e,r);else{if(i=e.current.alternate,!(r&30)&&!Fv(i)&&(t=co(e,r),t===2&&(o=Zu(e),o!==0&&(r=o,t=Rs(e,o))),t===1))throw n=Hr,ln(e,0),Ut(e,r),Be(e,me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:rn(e,ze,Ct);break;case 3:if(Ut(e,r),(r&130023424)===r&&(t=yl+500-me(),10<t)){if(Wi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){De(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ss(rn.bind(null,e,ze,Ct),t);break}rn(e,ze,Ct);break;case 4:if(Ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var u=31-lt(r);o=1<<u,u=t[u],u>i&&(i=u),r&=~o}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qv(r/1960))-r,10<r){e.timeoutHandle=ss(rn.bind(null,e,ze,Ct),r);break}rn(e,ze,Ct);break;case 5:rn(e,ze,Ct);break;default:throw Error(z(329))}}}return Be(e,me()),e.callbackNode===n?jd.bind(null,e):null}function Rs(e,t){var n=Er;return e.current.memoizedState.isDehydrated&&(ln(e,t).flags|=256),e=co(e,t),e!==2&&(t=ze,ze=n,t!==null&&Ts(t)),e}function Ts(e){ze===null?ze=e:ze.push.apply(ze,e)}function Fv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ct(o(),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 Ut(e,t){for(t&=~ml,t&=~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function Ya(e){if(te&6)throw Error(z(327));Fn();var t=Wi(e,0);if(!(t&1))return Be(e,me()),null;var n=co(e,t);if(e.tag!==0&&n===2){var r=Zu(e);r!==0&&(t=r,n=Rs(e,r))}if(n===1)throw n=Hr,ln(e,0),Ut(e,t),Be(e,me()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rn(e,ze,Ct),Be(e,me()),null}function wl(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Kn=me()+500,So&&en())}}function hn(e){jt!==null&&jt.tag===0&&!(te&6)&&Fn();var t=te;te|=1;var n=et.transition,r=oe;try{if(et.transition=null,oe=1,e)return e()}finally{oe=r,et.transition=n,te=t,!(te&6)&&en()}}function _l(){be=Pn.current,ae(Pn)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hv(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(el(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:Hn(),ae(Fe),ae(Ae),al();break;case 5:ll(r);break;case 4:Hn();break;case 13:ae(de);break;case 19:ae(de);break;case 10:il(r.type._context);break;case 22:case 23:_l()}n=n.return}if(Ee=e,ye=e=$t(e.current,null),Ie=be=t,Se=0,Hr=null,ml=xo=pn=0,ze=Er=null,un!==null){for(t=0;t<un.length;t++)if(n=un[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var u=o.next;o.next=i,r.next=u}n.pending=r}un=null}return e}function bd(e,t){do{var n=ye;try{if(rl(),Mi.current=uo,oo){for(var r=pe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}oo=!1}if(dn=0,ke=_e=pe=null,Sr=!1,Br=0,gl.current=null,n===null||n.return===null){Se=1,Hr=t,ye=null;break}e:{var o=e,u=n.return,s=n,a=t;if(t=Ie,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var d=a,m=s,y=m.tag;if(!(m.mode&1)&&(y===0||y===11||y===15)){var k=m.alternate;k?(m.updateQueue=k.updateQueue,m.memoizedState=k.memoizedState,m.lanes=k.lanes):(m.updateQueue=null,m.memoizedState=null)}var _=Fa(u);if(_!==null){_.flags&=-257,Ua(_,u,s,o,t),_.mode&1&&qa(o,d,t),t=_,a=d;var w=t.updateQueue;if(w===null){var l=new Set;l.add(a),t.updateQueue=l}else w.add(a);break e}else{if(!(t&1)){qa(o,d,t),Sl();break e}a=Error(z(426))}}else if(fe&&s.mode&1){var p=Fa(u);if(p!==null){!(p.flags&65536)&&(p.flags|=256),Ua(p,u,s,o,t),tl(Vn(a,s));break e}}o=a=Vn(a,s),Se!==4&&(Se=2),Er===null?Er=[o]:Er.push(o),o=u;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=xd(o,a,t);Oa(o,f);break e;case 1:s=a;var c=o.type,h=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Gt===null||!Gt.has(h)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=Id(o,s,t);Oa(o,E);break e}}o=o.return}while(o!==null)}Kd(n)}catch(x){t=x,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(1)}function Hd(){var e=so.current;return so.current=uo,e===null?uo:e}function Sl(){(Se===0||Se===3||Se===2)&&(Se=4),Ee===null||!(pn&268435455)&&!(xo&268435455)||Ut(Ee,Ie)}function co(e,t){var n=te;te|=2;var r=Hd();(Ee!==e||Ie!==t)&&(Ct=null,ln(e,t));do try{Uv();break}catch(i){bd(e,i)}while(1);if(rl(),te=n,so.current=r,ye!==null)throw Error(z(261));return Ee=null,Ie=0,Se}function Uv(){for(;ye!==null;)Vd(ye)}function Bv(){for(;ye!==null&&!fh();)Vd(ye)}function Vd(e){var t=Gd(e.alternate,e,be);e.memoizedProps=e.pendingProps,t===null?Kd(e):ye=t,gl.current=null}function Kd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Dv(n,t),n!==null){n.flags&=32767,ye=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Se=6,ye=null;return}}else if(n=Pv(n,t,be),n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Se===0&&(Se=5)}function rn(e,t,n){var r=oe,i=et.transition;try{et.transition=null,oe=1,jv(e,t,n,r)}finally{et.transition=i,oe=r}return null}function jv(e,t,n,r){do Fn();while(jt!==null);if(te&6)throw Error(z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Sh(e,o),e===Ee&&(ye=Ee=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Si||(Si=!0,Qd(Ki,function(){return Fn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=et.transition,et.transition=null;var u=oe;oe=1;var s=te;te|=4,gl.current=null,Mv(e,n),Ud(n,e),sv(os),Gi=!!is,os=is=null,e.current=n,zv(n),dh(),te=s,oe=u,et.transition=o}else e.current=n;if(Si&&(Si=!1,jt=e,ao=i),o=e.pendingLanes,o===0&&(Gt=null),vh(n.stateNode),Be(e,me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(lo)throw lo=!1,e=xs,xs=null,e;return ao&1&&e.tag!==0&&Fn(),o=e.pendingLanes,o&1?e===Is?Cr++:(Cr=0,Is=e):Cr=0,en(),null}function Fn(){if(jt!==null){var e=Cf(ao),t=et.transition,n=oe;try{if(et.transition=null,oe=16>e?16:e,jt===null)var r=!1;else{if(e=jt,jt=null,ao=0,te&6)throw Error(z(331));var i=te;for(te|=4,K=e.current;K!==null;){var o=K,u=o.child;if(K.flags&16){var s=o.deletions;if(s!==null){for(var a=0;a<s.length;a++){var d=s[a];for(K=d;K!==null;){var m=K;switch(m.tag){case 0:case 11:case 15:kr(8,m,o)}var y=m.child;if(y!==null)y.return=m,K=y;else for(;K!==null;){m=K;var k=m.sibling,_=m.return;if(zd(m),m===d){K=null;break}if(k!==null){k.return=_,K=k;break}K=_}}}var w=o.alternate;if(w!==null){var l=w.child;if(l!==null){w.child=null;do{var p=l.sibling;l.sibling=null,l=p}while(l!==null)}}K=o}}if(o.subtreeFlags&2064&&u!==null)u.return=o,K=u;else e:for(;K!==null;){if(o=K,o.flags&2048)switch(o.tag){case 0:case 11:case 15:kr(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,K=f;break e}K=o.return}}var c=e.current;for(K=c;K!==null;){u=K;var h=u.child;if(u.subtreeFlags&2064&&h!==null)h.return=u,K=h;else e:for(u=c;K!==null;){if(s=K,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Co(9,s)}}catch(x){ge(s,s.return,x)}if(s===u){K=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,K=E;break e}K=s.return}}if(te=i,en(),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(go,e)}catch{}r=!0}return r}finally{oe=n,et.transition=t}}return!1}function Xa(e,t,n){t=Vn(n,t),t=xd(e,t,1),e=Wt(e,t,1),t=De(),e!==null&&(Wr(e,1,t),Be(e,t))}function ge(e,t,n){if(e.tag===3)Xa(e,e,n);else for(;t!==null;){if(t.tag===3){Xa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=Vn(n,e),e=Id(t,e,1),t=Wt(t,e,1),e=De(),t!==null&&(Wr(t,1,e),Be(t,e));break}}t=t.return}}function bv(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=De(),e.pingedLanes|=e.suspendedLanes&n,Ee===e&&(Ie&n)===n&&(Se===4||Se===3&&(Ie&130023424)===Ie&&500>me()-yl?ln(e,0):ml|=n),Be(e,t)}function Wd(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=De();e=At(e,t),e!==null&&(Wr(e,t,n),Be(e,n))}function Hv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wd(e,n)}function Vv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),Wd(e,n)}var Gd;Gd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,Av(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&Jf(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qi(e,t),e=t.pendingProps;var i=Bn(t,Ae.current);qn(t,n),i=fl(null,t,r,e,i,n);var o=dl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(o=!0,Xi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ul(t),i.updater=ko,t.stateNode=i,i._reactInternals=t,hs(t,r,e,n),t=ms(null,t,r,!0,o,n)):(t.tag=0,fe&&o&&Zs(t),Pe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Wv(r),e=ot(r,e),i){case 0:t=gs(null,t,r,e,n);break e;case 1:t=ba(null,t,r,e,n);break e;case 11:t=Ba(null,t,r,e,n);break e;case 14:t=ja(null,t,r,ot(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),gs(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),ba(e,t,r,i,n);case 3:e:{if(Od(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ed(e,t),ro(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Vn(Error(z(423)),t),t=Ha(e,t,r,n,i);break e}else if(r!==i){i=Vn(Error(z(424)),t),t=Ha(e,t,r,n,i);break e}else for(He=Kt(t.stateNode.containerInfo.firstChild),Ve=t,fe=!0,st=null,n=id(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jn(),r===i){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return od(t),e===null&&fs(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,u=i.children,us(r,i)?u=null:o!==null&&us(r,o)&&(t.flags|=32),Nd(e,t),Pe(e,t,u,n),t.child;case 6:return e===null&&fs(t),null;case 13:return Ad(e,t,n);case 4:return sl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bn(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),Ba(e,t,r,i,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,u=i.value,ue(to,r._currentValue),r._currentValue=u,o!==null)if(ct(o.value,u)){if(o.children===i.children&&!Fe.current){t=Pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){u=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Tt(-1,n&-n),a.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?a.next=a:(a.next=m.next,m.next=a),d.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ds(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(z(341));u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),ds(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}Pe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qn(t,n),i=tt(i),r=r(i),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,i=ot(r,t.pendingProps),i=ot(r.type,i),ja(e,t,r,i,n);case 15:return Rd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ot(r,i),qi(e,t),t.tag=1,Ue(r)?(e=!0,Xi(t)):e=!1,qn(t,n),nd(t,r,i),hs(t,r,i,n),ms(null,t,r,!0,e,n);case 19:return Pd(e,t,n);case 22:return Td(e,t,n)}throw Error(z(156,t.tag))};function Qd(e,t){return _f(e,t)}function Kv(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.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 Ze(e,t,n,r){return new Kv(e,t,n,r)}function kl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wv(e){if(typeof e=="function")return kl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===js)return 11;if(e===bs)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=Ze(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&14680064,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}function Bi(e,t,n,r,i,o){var u=2;if(r=e,typeof e=="function")kl(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case kn:return an(n.children,i,o,t);case Bs:u=8,i|=8;break;case Fu:return e=Ze(12,n,t,i|2),e.elementType=Fu,e.lanes=o,e;case Uu:return e=Ze(13,n,t,i),e.elementType=Uu,e.lanes=o,e;case Bu:return e=Ze(19,n,t,i),e.elementType=Bu,e.lanes=o,e;case nf:return Io(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ef:u=10;break e;case tf:u=9;break e;case js:u=11;break e;case bs:u=14;break e;case zt:u=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ze(u,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function an(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=nf,e.lanes=n,e.stateNode={isHidden:!1},e}function ou(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gv(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bo(0),this.expirationTimes=Bo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function El(e,t,n,r,i,o,u,s,a){return e=new Gv(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ul(o),e}function Qv(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $d(e){if(!e)return Yt;e=e._reactInternals;e:{if(gn(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ue(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(Ue(n))return Qf(e,n,t)}return t}function Jd(e,t,n,r,i,o,u,s,a){return e=El(n,r,!0,e,i,o,u,s,a),e.context=$d(null),n=e.current,r=De(),i=Qt(n),o=Tt(r,i),o.callback=t??null,Wt(n,o,i),e.current.lanes=i,Wr(e,i,r),Be(e,r),e}function Ro(e,t,n,r){var i=t.current,o=De(),u=Qt(i);return n=$d(n),t.context===null?t.context=n:t.pendingContext=n,t=Tt(o,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wt(i,t,u),e!==null&&(at(e,i,u,o),Li(e,i,u)),u}function fo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Za(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cl(e,t){Za(e,t),(e=e.alternate)&&Za(e,t)}function $v(){return null}var Yd=typeof reportError=="function"?reportError:function(e){console.error(e)};function xl(e){this._internalRoot=e}To.prototype.render=xl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));Ro(e,t,null,null)};To.prototype.unmount=xl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Ro(null,e,null,null)}),t[Ot]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Nf(e)}};function Il(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function No(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ec(){}function Jv(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var d=fo(u);o.call(d)}}var u=Jd(t,r,e,0,null,!1,!1,"",ec);return e._reactRootContainer=u,e[Ot]=u.current,Mr(e.nodeType===8?e.parentNode:e),hn(),u}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var d=fo(a);s.call(d)}}var a=El(e,0,!1,null,null,!1,!1,"",ec);return e._reactRootContainer=a,e[Ot]=a.current,Mr(e.nodeType===8?e.parentNode:e),hn(function(){Ro(t,a,n,r)}),a}function Oo(e,t,n,r,i){var o=n._reactRootContainer;if(o){var u=o;if(typeof i=="function"){var s=i;i=function(){var a=fo(u);s.call(a)}}Ro(t,u,e,i)}else u=Jv(n,t,e,i,r);return fo(u)}xf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dr(t.pendingLanes);n!==0&&(Ks(t,n|1),Be(t,me()),!(te&6)&&(Kn=me()+500,en()))}break;case 13:hn(function(){var r=At(e,1);if(r!==null){var i=De();at(r,e,1,i)}}),Cl(e,1)}};Ws=function(e){if(e.tag===13){var t=At(e,134217728);if(t!==null){var n=De();at(t,e,134217728,n)}Cl(e,134217728)}};If=function(e){if(e.tag===13){var t=Qt(e),n=At(e,t);if(n!==null){var r=De();at(n,e,t,r)}Cl(e,t)}};Rf=function(){return oe};Tf=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};Ju=function(e,t,n){switch(t){case"input":if(Hu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_o(r);if(!i)throw Error(z(90));of(r),Hu(r,i)}}}break;case"textarea":sf(e,n);break;case"select":t=n.value,t!=null&&Dn(e,!!n.multiple,t,!1)}};hf=wl;vf=hn;var Yv={usingClientEntryPoint:!1,Events:[Qr,In,_o,df,pf,wl]},lr={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Xv={bundleType:lr.bundleType,version:lr.version,rendererPackageName:lr.rendererPackageName,rendererConfig:lr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yf(e),e===null?null:e.stateNode},findFiberByHostInstance:lr.findFiberByHostInstance||$v,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ki.isDisabled&&ki.supportsFiber)try{go=ki.inject(Xv),wt=ki}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yv;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Il(t))throw Error(z(200));return Qv(e,t,null,n)};We.createRoot=function(e,t){if(!Il(e))throw Error(z(299));var n=!1,r="",i=Yd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=El(e,1,!1,null,null,n,!1,r,i),e[Ot]=t.current,Mr(e.nodeType===8?e.parentNode:e),new xl(t)};We.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=yf(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return hn(e)};We.hydrate=function(e,t,n){if(!No(t))throw Error(z(200));return Oo(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!Il(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",u=Yd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Jd(t,null,e,1,n??null,i,!1,o,u),e[Ot]=t.current,Mr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new To(t)};We.render=function(e,t,n){if(!No(t))throw Error(z(200));return Oo(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!No(e))throw Error(z(40));return e._reactRootContainer?(hn(function(){Oo(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1};We.unstable_batchedUpdates=wl;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!No(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return Oo(e,t,n,!1,r)};We.version="18.2.0-next-9e3b772b8-20220608";function Xd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xd)}catch(e){console.error(e)}}Xd(),$c.exports=We;var Zv=$c.exports,tc=Zv;zu.createRoot=tc.createRoot,zu.hydrateRoot=tc.hydrateRoot;var Zd={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zd);var Qe=Zd.exports,su={exports:{}},nc;function ft(){return nc||(nc=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(su)),su.exports}var lu={exports:{}},au={exports:{}},cu={exports:{}},rc;function $n(){return rc||(rc=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(cu)),cu.exports}var fu={exports:{}},ic;function eg(){return ic||(ic=1,function(e){var t=$n().default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var u=o.call(r,i||"default");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(fu)),fu.exports}var oc;function ep(){return oc||(oc=1,function(e){var t=$n().default,n=eg();function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(au)),au.exports}var uc;function dt(){return uc||(uc=1,function(e){var t=ep();function n(i,o){for(var u=0;u<o.length;u++){var s=o[u];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,u){return o&&n(i.prototype,o),u&&n(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(lu)),lu.exports}function tg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var du={exports:{}},sc;function ng(){return sc||(sc=1,function(e){(function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(n){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(n),i=1;i<arguments.length;i++){var o=arguments[i];if(o!=null){o=Object(o);for(var u=Object.keys(Object(o)),s=0,a=u.length;a>s;s++){var d=u[s],m=Object.getOwnPropertyDescriptor(o,d);m!==void 0&&m.enumerable&&(r[d]=o[d])}}}return r}});var t=function(n){var r={user_agent:null,persist:!0,cookie_name_client_id:"ConstructorioID_client_id",cookie_name_session_id:"ConstructorioID_session_id",cookie_name_session_data:"ConstructorioID_session",cookie_domain:null,cookie_secure:null,cookie_samesite:null,cookie_days_to_live:365,local_name_client_id:"_constructorio_search_client_id",local_name_session_id:"_constructorio_search_session_id",local_name_session_data:"_constructorio_search_session",on_node:typeof window>"u",session_is_new:null,new_to_beacon:null,client_id_storage_location:"cookie",session_id_storage_location:"local"};if(Object.assign(this,r,n),!this.client_id)if(!this.on_node&&this.persist){var i;this.client_id_storage_location==="cookie"&&(i=this.get_cookie(this.cookie_name_client_id),i&&(this.delete_cookie(this.cookie_name_client_id),this.set_cookie(this.cookie_name_client_id,i))),this.client_id_storage_location==="local"&&(i=this.get_local_object(this.local_name_client_id)),this.client_id=i||this.generate_client_id()}else this.client_id=this.generate_client_id();this.session_id||(!this.on_node&&this.persist?this.session_id=this.generate_session_id():this.session_id=1),this.on_node||(this.user_agent=this.user_agent||window&&window.navigator&&window.navigator.userAgent)};t.prototype.set_cookie=function(n,r){if(!this.on_node&&this.persist){var i=new Date(Date.now()+this.cookie_days_to_live*24*60*60*1e3),o=n+"="+r+"; expires="+i.toUTCString()+"; path=/";return this.cookie_domain&&(o+="; domain="+this.cookie_domain),this.cookie_secure&&(o+="; secure"),this.cookie_samesite&&(o+="; samesite="+this.cookie_samesite),document.cookie=o,o}return null},t.prototype.get_cookie=function(n){for(var r=n+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){var u=i[o];try{for(var s=decodeURIComponent(u);s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0)return s.substring(r.length,s.length)}catch{}}},t.prototype.delete_cookie=function(n){document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},t.prototype.generate_client_id=function(){var n;if(!this.on_node){var r=this.get_cookie(this.cookie_name_client_id),i=this.get_local_object(this.local_name_client_id);this.client_id_storage_location==="cookie"&&i&&(n=i,this.set_cookie(this.cookie_name_client_id,n),this.delete_local_object(this.local_name_client_id)),this.client_id_storage_location==="local"&&r&&(n=r,this.set_local_object(this.local_name_client_id,n),this.delete_cookie(this.cookie_name_client_id))}return n||(n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var u=Math.random()*16|0,s=o==="x"?u:u&3|8;return s.toString(16)}),this.client_id_storage_location==="cookie"&&this.set_cookie(this.cookie_name_client_id,n),this.client_id_storage_location==="local"&&this.set_local_object(this.local_name_client_id,n)),n},t.prototype.get_local_object=function(n){var r,i=window&&window.localStorage;if(i&&typeof n=="string")try{r=JSON.parse(i.getItem(n))}catch{r=i.getItem(n)}return r},t.prototype.set_local_object=function(n,r){var i=window&&window.localStorage;if(i&&typeof n=="string"){if(typeof r=="object")try{i.setItem(n,JSON.stringify(r))}catch{}if(typeof r=="string"||typeof r=="number")try{i.setItem(n,r)}catch{}}},t.prototype.delete_local_object=function(n){var r=window&&window.localStorage;if(r&&typeof n=="string")try{r.removeItem(n)}catch{}},t.prototype.generate_session_id=function(){var n=this.get_cookie(this.cookie_name_session_data),r=this.get_local_object(this.local_name_session_data),i=Date.now(),o=1e3*60*30,u;if(this.session_id_storage_location==="local"&&(u=this.get_local_object(this.local_name_session_data),!u&&n&&(u=n,this.delete_cookie(this.cookie_name_session_data))),this.session_id_storage_location==="cookie"){u=this.get_cookie(this.cookie_name_session_data);try{u=JSON.parse(u)}catch{}!u&&r&&(u=r,this.delete_local_object(this.local_name_session_data))}var s=1,a=1;u&&typeof u=="object"&&(a=parseInt(u.sessionId,10)||1,u.lastTime>i-o?s=a:s=a+1),this.session_id=s,this.session_is_new=!(u&&a===s),u&&u.newToBeacon&&(this.new_to_beacon=!0);const d={sessionId:s,lastTime:i};return this.session_is_new&&(d.newToBeacon=!0),this.session_id_storage_location==="local"&&(this.set_local_object(this.local_name_session_id,s),this.set_local_object(this.local_name_session_data,d)),this.session_id_storage_location==="cookie"&&(this.cookie_domain&&(this.delete_cookie(this.cookie_name_session_id),this.delete_cookie(this.cookie_name_session_data)),this.set_cookie(this.cookie_name_session_id,s),this.set_cookie(this.cookie_name_session_data,JSON.stringify(d))),s},typeof tg<"u"&&(e.exports=t)})()}(du)),du.exports}var Ei={exports:{}},lc;function rg(){return lc||(lc=1,function(e,t){(function(n){function r(i){var o=i&&i.Promise||n.Promise,u=i&&i.XMLHttpRequest||n.XMLHttpRequest;return function(){var s=Object.create(n,{fetch:{value:void 0,writable:!0}});return function(a,d){d(t)}(this,function(a){var d=typeof s<"u"&&s||typeof self<"u"&&self||typeof d<"u"&&d,m={searchParams:"URLSearchParams"in d,iterable:"Symbol"in d&&"iterator"in Symbol,blob:"FileReader"in d&&"Blob"in d&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in d,arrayBuffer:"ArrayBuffer"in d};function y(T){return T&&DataView.prototype.isPrototypeOf(T)}if(m.arrayBuffer)var k=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_=ArrayBuffer.isView||function(T){return T&&k.indexOf(Object.prototype.toString.call(T))>-1};function w(T){if(typeof T!="string"&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(T)||T==="")throw new TypeError("Invalid character in header field name");return T.toLowerCase()}function l(T){return typeof T!="string"&&(T=String(T)),T}function p(T){var R={next:function(){var A=T.shift();return{done:A===void 0,value:A}}};return m.iterable&&(R[Symbol.iterator]=function(){return R}),R}function f(T){this.map={},T instanceof f?T.forEach(function(R,A){this.append(A,R)},this):Array.isArray(T)?T.forEach(function(R){this.append(R[0],R[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(R){this.append(R,T[R])},this)}f.prototype.append=function(T,R){T=w(T),R=l(R);var A=this.map[T];this.map[T]=A?A+", "+R:R},f.prototype.delete=function(T){delete this.map[w(T)]},f.prototype.get=function(T){return T=w(T),this.has(T)?this.map[T]:null},f.prototype.has=function(T){return this.map.hasOwnProperty(w(T))},f.prototype.set=function(T,R){this.map[w(T)]=l(R)},f.prototype.forEach=function(T,R){for(var A in this.map)this.map.hasOwnProperty(A)&&T.call(R,this.map[A],A,this)},f.prototype.keys=function(){var T=[];return this.forEach(function(R,A){T.push(A)}),p(T)},f.prototype.values=function(){var T=[];return this.forEach(function(R){T.push(R)}),p(T)},f.prototype.entries=function(){var T=[];return this.forEach(function(R,A){T.push([A,R])}),p(T)},m.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function c(T){if(T.bodyUsed)return o.reject(new TypeError("Already read"));T.bodyUsed=!0}function h(T){return new o(function(R,A){T.onload=function(){R(T.result)},T.onerror=function(){A(T.error)}})}function E(T){var R=new FileReader,A=h(R);return R.readAsArrayBuffer(T),A}function x(T){var R=new FileReader,A=h(R);return R.readAsText(T),A}function S(T){for(var R=new Uint8Array(T),A=new Array(R.length),D=0;D<R.length;D++)A[D]=String.fromCharCode(R[D]);return A.join("")}function v(T){if(T.slice)return T.slice(0);var R=new Uint8Array(T.byteLength);return R.set(new Uint8Array(T)),R.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(T){this.bodyUsed=this.bodyUsed,this._bodyInit=T,T?typeof T=="string"?this._bodyText=T:m.blob&&Blob.prototype.isPrototypeOf(T)?this._bodyBlob=T:m.formData&&FormData.prototype.isPrototypeOf(T)?this._bodyFormData=T:m.searchParams&&URLSearchParams.prototype.isPrototypeOf(T)?this._bodyText=T.toString():m.arrayBuffer&&m.blob&&y(T)?(this._bodyArrayBuffer=v(T.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):m.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(T)||_(T))?this._bodyArrayBuffer=v(T):this._bodyText=T=Object.prototype.toString.call(T):this._bodyText="",this.headers.get("content-type")||(typeof T=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(T)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var T=c(this);if(T)return T;if(this._bodyBlob)return o.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return o.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var T=c(this);return T||(ArrayBuffer.isView(this._bodyArrayBuffer)?o.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):o.resolve(this._bodyArrayBuffer))}else return this.blob().then(E)}),this.text=function(){var T=c(this);if(T)return T;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return o.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return o.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(T){var R=T.toUpperCase();return I.indexOf(R)>-1?R:T}function O(T,R){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R=R||{};var A=R.body;if(T instanceof O){if(T.bodyUsed)throw new TypeError("Already read");this.url=T.url,this.credentials=T.credentials,R.headers||(this.headers=new f(T.headers)),this.method=T.method,this.mode=T.mode,this.signal=T.signal,!A&&T._bodyInit!=null&&(A=T._bodyInit,T.bodyUsed=!0)}else this.url=String(T);if(this.credentials=R.credentials||this.credentials||"same-origin",(R.headers||!this.headers)&&(this.headers=new f(R.headers)),this.method=C(R.method||this.method||"GET"),this.mode=R.mode||this.mode||null,this.signal=R.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(R.cache==="no-store"||R.cache==="no-cache")){var D=/([?&])_=[^&]*/;if(D.test(this.url))this.url=this.url.replace(D,"$1_="+new Date().getTime());else{var M=/\?/;this.url+=(M.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function N(T){var R=new FormData;return T.trim().split("&").forEach(function(A){if(A){var D=A.split("="),M=D.shift().replace(/\+/g," "),L=D.join("=").replace(/\+/g," ");R.append(decodeURIComponent(M),decodeURIComponent(L))}}),R}function P(T){var R=new f,A=T.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(D){return D.indexOf(`
34
+ `)===0?D.substr(1,D.length):D}).forEach(function(D){var M=D.split(":"),L=M.shift().trim();if(L){var Q=M.join(":").trim();R.append(L,Q)}}),R}g.call(O.prototype);function q(T,R){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');R||(R={}),this.type="default",this.status=R.status===void 0?200:R.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in R?R.statusText:"",this.headers=new f(R.headers),this.url=R.url||"",this._initBody(T)}g.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},q.error=function(){var T=new q(null,{status:0,statusText:""});return T.type="error",T};var F=[301,302,303,307,308];q.redirect=function(T,R){if(F.indexOf(R)===-1)throw new RangeError("Invalid status code");return new q(null,{status:R,headers:{location:T}})},a.DOMException=d.DOMException;try{new a.DOMException}catch{a.DOMException=function(R,A){this.message=R,this.name=A;var D=Error(R);this.stack=D.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function j(T,R){return new o(function(A,D){var M=new O(T,R);if(M.signal&&M.signal.aborted)return D(new a.DOMException("Aborted","AbortError"));var L=new u;function Q(){L.abort()}L.onload=function(){var V={status:L.status,statusText:L.statusText,headers:P(L.getAllResponseHeaders()||"")};V.url="responseURL"in L?L.responseURL:V.headers.get("X-Request-URL");var J="response"in L?L.response:L.responseText;setTimeout(function(){A(new q(J,V))},0)},L.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},L.onabort=function(){setTimeout(function(){D(new a.DOMException("Aborted","AbortError"))},0)};function Y(V){try{return V===""&&d.location.href?d.location.href:V}catch{return V}}L.open(M.method,Y(M.url),!0),M.credentials==="include"?L.withCredentials=!0:M.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(m.blob?L.responseType="blob":m.arrayBuffer&&M.headers.get("Content-Type")&&M.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(L.responseType="arraybuffer")),R&&typeof R.headers=="object"&&!(R.headers instanceof f)?Object.getOwnPropertyNames(R.headers).forEach(function(V){L.setRequestHeader(V,l(R.headers[V]))}):M.headers.forEach(function(V,J){L.setRequestHeader(J,V)}),M.signal&&(M.signal.addEventListener("abort",Q),L.onreadystatechange=function(){L.readyState===4&&M.signal.removeEventListener("abort",Q)}),L.send(typeof M._bodyInit>"u"?null:M._bodyInit)})}j.polyfill=!0,d.fetch||(d.fetch=j,d.Headers=f,d.Request=O,d.Response=q),a.Headers=f,a.Request=O,a.Response=q,a.fetch=j,Object.defineProperty(a,"__esModule",{value:!0})}),{fetch:s.fetch,Headers:s.Headers,Request:s.Request,Response:s.Response,DOMException:s.DOMException}}()}e.exports=r})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:vr)}(Ei,Ei.exports)),Ei.exports}var pu={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var ac;function ig(){return ac||(ac=1,function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function n(){for(var g=0,I=new Array(256),C=0;C!=256;++C)g=C,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,g=g&1?-306674912^g>>>1:g>>>1,I[C]=g;return typeof Int32Array<"u"?new Int32Array(I):I}var r=n();function i(g){var I=0,C=0,O=0,N=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(O=0;O!=256;++O)N[O]=g[O];for(O=0;O!=256;++O)for(C=g[O],I=256+O;I<4096;I+=256)C=N[I]=C>>>8^g[C&255];var P=[];for(O=1;O!=16;++O)P[O-1]=typeof Int32Array<"u"?N.subarray(O*256,O*256+256):N.slice(O*256,O*256+256);return P}var o=i(r),u=o[0],s=o[1],a=o[2],d=o[3],m=o[4],y=o[5],k=o[6],_=o[7],w=o[8],l=o[9],p=o[10],f=o[11],c=o[12],h=o[13],E=o[14];function x(g,I){for(var C=I^-1,O=0,N=g.length;O<N;)C=C>>>8^r[(C^g.charCodeAt(O++))&255];return~C}function S(g,I){for(var C=I^-1,O=g.length-15,N=0;N<O;)C=E[g[N++]^C&255]^h[g[N++]^C>>8&255]^c[g[N++]^C>>16&255]^f[g[N++]^C>>>24]^p[g[N++]]^l[g[N++]]^w[g[N++]]^_[g[N++]]^k[g[N++]]^y[g[N++]]^m[g[N++]]^d[g[N++]]^a[g[N++]]^s[g[N++]]^u[g[N++]]^r[g[N++]];for(O+=15;N<O;)C=C>>>8^r[(C^g[N++])&255];return~C}function v(g,I){for(var C=I^-1,O=0,N=g.length,P=0,q=0;O<N;)P=g.charCodeAt(O++),P<128?C=C>>>8^r[(C^P)&255]:P<2048?(C=C>>>8^r[(C^(192|P>>6&31))&255],C=C>>>8^r[(C^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,q=g.charCodeAt(O++)&1023,C=C>>>8^r[(C^(240|P>>8&7))&255],C=C>>>8^r[(C^(128|P>>2&63))&255],C=C>>>8^r[(C^(128|q>>6&15|(P&3)<<4))&255],C=C>>>8^r[(C^(128|q&63))&255]):(C=C>>>8^r[(C^(224|P>>12&15))&255],C=C>>>8^r[(C^(128|P>>6&63))&255],C=C>>>8^r[(C^(128|P&63))&255]);return~C}t.table=r,t.bstr=x,t.buf=S,t.str=v})}(pu)),pu}var hu,cc;function Rl(){if(cc)return hu;cc=1;var e={overflow:{},get:function(i){var o=this.overflow[i];if(o)return o;if(typeof sessionStorage>"u")return null;var u=sessionStorage.getItem(i);if(u)try{return JSON.parse(u)}catch{return u}return null},set:function(i,o){try{sessionStorage.setItem(i,JSON.stringify(o))}catch{this.overflow[i]=o}},remove:function(i){var o;(o=this.overflow)!==null&&o!==void 0&&o[i]&&delete this.overflow[i],typeof sessionStorage<"u"&&sessionStorage.removeItem(i)},key:function(i){var o,u;if(typeof sessionStorage>"u"){var s;return(s=Object.keys(this.overflow))===null||s===void 0?void 0:s[i]}var a=(o=sessionStorage)===null||o===void 0?void 0:o.key(i),d=((u=sessionStorage)===null||u===void 0?void 0:u.length)||0;if(i>=d){var m,y=i-d;return(m=Object.keys(this.overflow))===null||m===void 0?void 0:m[y]}return a},length:function(){var i=Object.keys(this.overflow).length;return typeof sessionStorage>"u"?i:sessionStorage.length+i},clear:function(){this.overflow={},typeof sessionStorage<"u"&&sessionStorage.clear()}},t={overflow:{},get:function(i){var o=this.overflow[i];if(o)return o;if(typeof localStorage>"u")return null;var u=localStorage.getItem(i);if(u)try{return JSON.parse(u)}catch{return u}return null},set:function(i,o){try{localStorage.setItem(i,JSON.stringify(o))}catch{this.overflow[i]=o}},remove:function(i){var o;(o=this.overflow)!==null&&o!==void 0&&o[i]&&delete this.overflow[i],typeof localStorage<"u"&&localStorage.removeItem(i)},key:function(i){var o,u;if(typeof localStorage>"u"){var s;return(s=Object.keys(this.overflow))===null||s===void 0?void 0:s[i]}var a=(o=localStorage)===null||o===void 0?void 0:o.key(i),d=((u=localStorage)===null||u===void 0?void 0:u.length)||0;if(i>=d){var m,y=i-d;return(m=Object.keys(this.overflow))===null||m===void 0?void 0:m[y]}return a},length:function(){var i=Object.keys(this.overflow).length;return typeof localStorage>"u"?i:localStorage.length+i},clear:function(){this.overflow={},typeof localStorage<"u"&&localStorage.clear()}},n={local:t,session:e};return hu=n,hu}var vu,fc;function rt(){if(fc)return vu;fc=1;var e=Qe,t=e($n()),n=ig(),r=Rl(),i="_constructorio_purchase_order_ids",o=[{pattern:/[\w\-+\\.]+@([\w-]+\.)+[\w-]{2,4}/,replaceWith:"<email_omitted>"},{pattern:/^(?:\+\d{11,12}|\+\d{1,3}\s\d{3}\s\d{3}\s\d{3,4}|\(\d{3}\)\d{7}|\(\d{3}\)\s\d{3}\s\d{4}|\(\d{3}\)\d{3}-\d{4}|\(\d{3}\)\s\d{3}-\d{4})$/,replaceWith:"<phone_omitted>"},{pattern:/^(?:4[0-9]{15}|(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35\d{3})\d{11})$/,replaceWith:"<credit_omitted>"}],u={trimNonBreakingSpaces:function(a){return a.replace(/\s/g," ").trim()},encodeURIComponentRFC3986:function(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(d){return"%".concat(d.charCodeAt(0).toString(16).toUpperCase())})},cleanParams:function(a){var d={};return Object.keys(a).forEach(function(m){var y=a[m];typeof y=="string"?d[m]=u.trimNonBreakingSpaces(y):d[m]=y}),d},throwHttpErrorFromResponse:function(a,d){return d.json().then(function(m){throw a.message=m.message,a.status=d.status,a.statusText=d.statusText,a.url=d.url,a.headers=d.headers,a})},canUseDOM:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},addEventListener:function(a,d,m){u.canUseDOM()&&window.addEventListener(a,d,m)},removeEventListener:function(a,d,m){u.canUseDOM()&&window.removeEventListener(a,d,m)},getNavigator:function(){return u.canUseDOM()?window.navigator:{userAgent:"",webdriver:!1}},isNil:function(a){return a==null},getWindowLocation:function(){return u.canUseDOM()?window.location:{}},dispatchEvent:function(a){u.canUseDOM()&&window.dispatchEvent(a)},createCustomEvent:function(a,d){if(u.canUseDOM())try{return new window.CustomEvent(a,{detail:d})}catch{var m=document.createEvent("CustomEvent");return m.initCustomEvent(a,!1,!1,d),m}return null},hasOrderIdRecord:function(a){var d=a.orderId,m=a.apiKey,y=d;m&&(y="".concat(m,"-").concat(d));var k=n.str(y.toString()),_=r.local.get(i);return typeof _=="string"&&(_=JSON.parse(_)),_&&_.includes(k)?!0:null},addOrderIdRecord:function(a){var d=a.orderId,m=a.apiKey,y=d;m&&(y="".concat(m,"-").concat(d));var k=n.str(y.toString()),_=r.local.get(i);if(typeof _=="string"&&(_=JSON.parse(_)),_){if(_.includes(k))return;_.length>=10&&(_=_.slice(-9)),_.push(k)}else _=[k];r.local.set(i,_)},applyNetworkTimeout:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=a&&a.networkParameters&&a.networkParameters.timeout,k=d&&d.timeout,_=k||y;typeof _=="number"&&m&&setTimeout(function(){return m.abort()},_)},stringify:function(a,d,m){if(!a)return"";var y=[];return Object.keys(a).forEach(function(k){var _=a[k],w=u.encodeURIComponentRFC3986(k),l;if(_!=null){var p=d?"".concat(d,"%5B").concat(w,"%5D"):w;Array.isArray(_)?l=u.stringify(_,p,"array"):(0,t.default)(_)==="object"?l=u.stringify(_,p,"object"):m==="object"?l="".concat(p,"=").concat(u.encodeURIComponentRFC3986(_)):l="".concat(d||w,"=").concat(u.encodeURIComponentRFC3986(_)),y.push(l)}}),y.join("&")},toSnakeCase:function(a){return a.replace(/[A-Z]/g,function(d){return"_".concat(d.toLowerCase())})},toSnakeCaseKeys:function(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m={};return Object.keys(a).forEach(function(y){var k=u.toSnakeCase(y);m[k]=d&&(0,t.default)(a[y])==="object"&&!Array.isArray(a[y])?u.toSnakeCaseKeys(a[y],d):a[y]}),m},containsPii:function(a,d){var m=a.toLowerCase();return d.test(m)},obfuscatePiiRequest:function(a){var d=a;try{var m,y,k,_=new URL(a),w=_==null||(m=_.pathname)===null||m===void 0?void 0:m.split("/"),l=_==null||(y=_.search)===null||y===void 0||(k=y.split("&"))===null||k===void 0?void 0:k.map(function(p){var f;return(f=p.split("="))===null||f===void 0?void 0:f[1]});o.forEach(function(p){var f=p.pattern,c=p.replaceWith;w.forEach(function(h){var E=decodeURIComponent(h);u.containsPii(E,f)&&(d=d.replaceAll(h,c))}),l.forEach(function(h){var E=decodeURIComponent(h);u.containsPii(E,f)&&(d=d.replaceAll(E,c))})})}catch{}return d},convertResponseToJson:function(a){return a.ok?a.json().catch(function(){return a.text().then(function(d){throw new Error("Server responded with an invalid JSON object. Response code: ".concat(a.code,", Response: ").concat(d))})}):u.throwHttpErrorFromResponse(new Error,a)},addHTTPSToString:function(a){if(typeof a!="string")return null;var d=a.startsWith("https://"),m=a.startsWith("http://");if(!d&&m)return a.replace("http","https");if(!m&&!d){var y="https://".concat(a);return y}return a}};return vu=u,vu}var gu,dc;function Jn(){if(dc)return gu;dc=1;var e=Qe,t=e(ft()),n=e(dt()),r=rt(),i=function(){function o(u){var s=this;(0,t.default)(this,o),this.events=[],this.enabled=!(u&&u.enabled===!1),this.waitForBeacon=!(u&&u.waitForBeacon===!1),this.active=this.enabled,this.waitForBeacon&&(this.active=!1,r.canUseDOM()&&(window.ConstructorioAutocomplete||window.ConstructorioBeacon||window.ConstructorioTracker)&&this.enabled&&(this.active=!0,this.dispatchEvents()),r.addEventListener("cio.beacon.loaded",function(){s.enabled&&(s.active=!0,s.dispatchEvents())}))}return(0,n.default)(o,[{key:"queue",value:function(s,a){this.events.push({name:s,data:a}),this.active&&this.dispatchEvents()}},{key:"dispatchEvents",value:function(){for(;this.events.length;){var s=this.events.shift(),a=s.name,d=s.data,m="cio.client.".concat(a);r.dispatchEvent(r.createCustomEvent(m,d))}}}]),o}();return gu=i,gu}var mu,pc;function og(){if(pc)return mu;pc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Jn(),i=rt();function o(s,a,d){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,y=d.apiKey,k=d.version,_=d.serviceUrl,w=d.sessionId,l=d.clientId,p=d.userId,f=d.segments,c=d.testCells,h={c:k};if(h.key=y,h.i=l,h.s=w,!s||typeof s!="string")throw new Error("query is a required parameter of type string");if(c&&Object.keys(c).forEach(function(A){h["ef-".concat(A)]=c[A]}),f&&f.length&&(h.us=f),p&&(h.ui=String(p)),a){var E=a.offset,x=a.page,S=a.resultsPerPage,v=a.filters,g=a.sortBy,I=a.sortOrder,C=a.section,O=a.fmtOptions,N=a.hiddenFields,P=a.hiddenFacets,q=a.variationsMap,F=a.qsParam,j=a.preFilterExpression;i.isNil(E)||(h.offset=E),i.isNil(x)||(h.page=x),i.isNil(S)||(h.num_results_per_page=S),v&&(h.filters=v),g&&(h.sort_by=g),I&&(h.sort_order=I),C&&(h.section=C),O&&(h.fmt_options=O),N&&(h.fmt_options?h.fmt_options.hidden_fields=N:h.fmt_options={hidden_fields:N}),P&&(h.fmt_options?h.fmt_options.hidden_facets=P:h.fmt_options={hidden_facets:P}),q&&(h.variations_map=JSON.stringify(q)),j&&(h.pre_filter_expression=JSON.stringify(j)),F&&(h.qs=JSON.stringify(F))}h._dt=Date.now(),h=i.cleanParams(h);var T=i.stringify(h),R=m?"search/natural_language":"search";return"".concat(_,"/").concat(R,"/").concat(i.encodeURIComponentRFC3986(i.trimNonBreakingSpaces(s)),"?").concat(T)}var u=function(){function s(a){(0,t.default)(this,s),this.options=a||{},this.eventDispatcher=new r(a.eventDispatcher)}return(0,n.default)(s,[{key:"getSearchResults",value:function(d,m){var y=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_,w=this.options.fetch,l;if(typeof AbortController=="function"){var p=new AbortController;l=p&&p.signal,i.applyNetworkTimeout(this.options,k,p)}try{_=o(d,m,this.options)}catch(f){return Promise.reject(f)}return w(_,{signal:l}).then(i.convertResponseToJson).then(function(f){if(f.response&&f.response.results)return f.result_id&&f.response.results.forEach(function(c){c.result_id=f.result_id}),y.eventDispatcher.queue("search.getSearchResults.completed",f),f;if(f.response&&f.response.redirect)return y.eventDispatcher.queue("search.getSearchResults.completed",f),f;throw new Error("getSearchResults response data is malformed")})}},{key:"getVoiceSearchResults",value:function(d,m){var y=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_,w=this.options.fetch,l;if(typeof AbortController=="function"){var p=new AbortController;l=p&&p.signal,i.applyNetworkTimeout(this.options,k,p)}try{var f=!0;_=o(d,m,this.options,f)}catch(c){return Promise.reject(c)}return w(_,{signal:l}).then(i.convertResponseToJson).then(function(c){if(c.response&&c.response.results)return c.result_id&&c.response.results.forEach(function(h){h.result_id=c.result_id}),y.eventDispatcher.queue("search.getVoiceSearchResults.completed",c),c;if(c.response&&c.response.redirect)return y.eventDispatcher.queue("search.getVoiceSearchResults.completed",c),c;throw new Error("getVoiceSearchResults response data is malformed")})}}]),s}();return mu=u,mu}var yu={exports:{}},hc;function Tl(){return hc||(hc=1,function(e){var t=ep();function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(yu)),yu.exports}var wu,vc;function ug(){if(vc)return wu;vc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(Tl());function i(w,l){var p=Object.keys(w);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(w);l&&(f=f.filter(function(c){return Object.getOwnPropertyDescriptor(w,c).enumerable})),p.push.apply(p,f)}return p}function o(w){for(var l=1;l<arguments.length;l++){var p=arguments[l]!=null?arguments[l]:{};l%2?i(Object(p),!0).forEach(function(f){(0,r.default)(w,f,p[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(p)):i(Object(p)).forEach(function(f){Object.defineProperty(w,f,Object.getOwnPropertyDescriptor(p,f))})}return w}var u=Jn(),s=rt();function a(w,l){var p=l.apiKey,f=l.version,c=l.sessionId,h=l.clientId,E=l.userId,x=l.segments,S=l.testCells,v={c:f};if(v.key=p,v.i=h,v.s=c,S&&Object.keys(S).forEach(function(M){v["ef-".concat(M)]=S[M]}),x&&x.length&&(v.us=x),E&&(v.ui=String(E)),w){var g=w.page,I=w.offset,C=w.resultsPerPage,O=w.filters,N=w.sortBy,P=w.sortOrder,q=w.section,F=w.fmtOptions,j=w.hiddenFields,T=w.hiddenFacets,R=w.variationsMap,A=w.qsParam,D=w.preFilterExpression;s.isNil(g)||(v.page=g),s.isNil(I)||(v.offset=I),s.isNil(C)||(v.num_results_per_page=C),O&&(v.filters=O),N&&(v.sort_by=N),P&&(v.sort_order=P),q&&(v.section=q),F&&(v.fmt_options=F),j&&(v.fmt_options?v.fmt_options.hidden_fields=j:v.fmt_options={hidden_fields:j}),T&&(v.fmt_options?v.fmt_options.hidden_facets=T:v.fmt_options={hidden_facets:T}),R&&(v.variations_map=JSON.stringify(R)),D&&(v.pre_filter_expression=JSON.stringify(D)),A&&(v.qs=JSON.stringify(A))}return v._dt=Date.now(),v=s.cleanParams(v),v}function d(w,l,p,f){var c=f.serviceUrl;if(!w||typeof w!="string")throw new Error("filterName is a required parameter of type string");if(!l||typeof l!="string")throw new Error("filterValue is a required parameter of type string");var h=a(p,f),E=s.stringify(h);return"".concat(c,"/browse/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(w)),"/").concat(s.encodeURIComponentRFC3986(s.trimNonBreakingSpaces(l)),"?").concat(E)}function m(w,l,p){var f=p.serviceUrl;if(!w||!Array.isArray(w)||!w.length)throw new Error("ids is a required parameter of type array");var c=o(o({},a(l,p)),{},{ids:w}),h=s.stringify(c);return"".concat(f,"/browse/items?").concat(h)}function y(w,l){var p=l.serviceUrl,f=o({},a(w,l));delete f._dt;var c=s.stringify(f);return"".concat(p,"/browse/facets?").concat(c)}function k(w,l,p){var f=p.serviceUrl;if(!w||typeof w!="string")throw new Error("facetName is a required parameter of type string");var c=o({},a(l,p));c.facet_name=w,delete c._dt;var h=s.stringify(c);return"".concat(f,"/browse/facet_options?").concat(h)}var _=function(){function w(l){(0,t.default)(this,w),this.options=l||{},this.eventDispatcher=new u(l.eventDispatcher)}return(0,n.default)(w,[{key:"getBrowseResults",value:function(p,f,c){var h=this,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x,S=this.options.fetch,v;if(typeof AbortController=="function"){var g=new AbortController;v=g&&g.signal,s.applyNetworkTimeout(this.options,E,g)}try{x=d(p,f,c,this.options)}catch(I){return Promise.reject(I)}return S(x,{signal:v}).then(s.convertResponseToJson).then(function(I){if(I.response&&I.response.results)return I.result_id&&I.response.results.forEach(function(C){C.result_id=I.result_id}),h.eventDispatcher.queue("browse.getBrowseResults.completed",I),I;throw new Error("getBrowseResults response data is malformed")})}},{key:"getBrowseResultsForItemIds",value:function(p,f){var c=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E,x=this.options.fetch,S;if(typeof AbortController=="function"){var v=new AbortController;S=v&&v.signal,s.applyNetworkTimeout(this.options,h,v)}try{E=m(p,f,this.options)}catch(g){return Promise.reject(g)}return x(E,{signal:S}).then(s.convertResponseToJson).then(function(g){if(g.response&&g.response.results)return g.result_id&&g.response.results.forEach(function(I){I.result_id=g.result_id}),c.eventDispatcher.queue("browse.getBrowseResultsForItemIds.completed",g),g;throw new Error("getBrowseResultsForItemIds response data is malformed")})}},{key:"getBrowseGroups",value:function(p){var f=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.options.fetch,E=this.options.serviceUrl,x=a(p,this.options),S;if(typeof AbortController=="function"){var v=new AbortController;S=v&&v.signal,s.applyNetworkTimeout(this.options,c,v)}delete x._dt;var g=s.stringify(x),I="".concat(E,"/browse/groups?").concat(g);return h(I,{signal:S}).then(s.convertResponseToJson).then(function(C){if(C.response&&C.response.groups)return f.eventDispatcher.queue("browse.getBrowseGroups.completed",C),C;throw new Error("getBrowseGroups response data is malformed")})}},{key:"getBrowseFacets",value:function(p,f){var c=this,h,E=this.options.fetch,x;if(typeof AbortController=="function"){var S=new AbortController;x=S&&S.signal,s.applyNetworkTimeout(this.options,f,S)}try{h=y(p,this.options)}catch(v){return Promise.reject(v)}return E(h,{signal:x}).then(s.convertResponseToJson).then(function(v){if(v.response&&v.response.facets)return c.eventDispatcher.queue("browse.getBrowseFacets.completed",v),v;throw new Error("getBrowseFacets response data is malformed")})}},{key:"getBrowseFacetOptions",value:function(p){var f=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E,x=this.options.fetch,S;if(typeof AbortController=="function"){var v=new AbortController;S=v&&v.signal,s.applyNetworkTimeout(this.options,h,v)}try{E=k(p,c,this.options)}catch(g){return Promise.reject(g)}return x(E,{signal:S}).then(s.convertResponseToJson).then(function(g){if(g.response&&g.response.facets)return f.eventDispatcher.queue("browse.getBrowseFacetOptions.completed",g),g;throw new Error("getBrowseFacetOptions response data is malformed")})}}]),w}();return wu=_,wu}var _u,gc;function sg(){if(gc)return _u;gc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Jn(),i=rt(),o=i.convertResponseToJson,u=i.cleanParams,s=i.applyNetworkTimeout,a=i.trimNonBreakingSpaces,d=i.encodeURIComponentRFC3986,m=i.stringify;function y(_,w,l){var p=l.apiKey,f=l.version,c=l.serviceUrl,h=l.sessionId,E=l.clientId,x=l.userId,S=l.segments,v=l.testCells,g={c:f};if(g.key=p,g.i=E,g.s=h,!_||typeof _!="string")throw new Error("query is a required parameter of type string");if(v&&Object.keys(v).forEach(function(R){g["ef-".concat(R)]=v[R]}),S&&S.length&&(g.us=S),x&&(g.ui=String(x)),w){var I=w.numResults,C=w.resultsPerSection,O=w.filters,N=w.filtersPerSection,P=w.hiddenFields,q=w.variationsMap,F=w.preFilterExpression;I&&(g.num_results=I),C&&Object.keys(C).forEach(function(R){g["num_results_".concat(R)]=C[R]}),O&&(g.filters=O),N&&Object.keys(N).forEach(function(R){g["filters[".concat(R,"]")]=N[R]}),F&&(g.pre_filter_expression=JSON.stringify(F)),P&&(g.fmt_options?g.fmt_options.hidden_fields=P:g.fmt_options={hidden_fields:P}),q&&(g.variations_map=JSON.stringify(q))}g._dt=Date.now(),g=u(g);var j=m(g),T=_.replace(/^\//,"|");return"".concat(c,"/autocomplete/").concat(d(a(T)),"?").concat(j)}var k=function(){function _(w){(0,t.default)(this,_),this.options=w||{},this.eventDispatcher=new r(w.eventDispatcher)}return(0,n.default)(_,[{key:"getAutocompleteResults",value:function(l,p){var f=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,E=this.options.fetch,x;if(typeof AbortController=="function"){var S=new AbortController;x=S&&S.signal,s(this.options,c,S)}try{h=y(l,p,this.options)}catch(v){return Promise.reject(v)}return E(h,{signal:x}).then(o).then(function(v){if(v.sections){if(v.result_id){var g=Object.keys(v.sections);g.forEach(function(I){var C=v.sections[I];C.length&&C.forEach(function(O){O.result_id=v.result_id})})}return f.eventDispatcher.queue("autocomplete.getAutocompleteResults.completed",v),v}throw new Error("getAutocompleteResults response data is malformed")})}}]),_}();return _u=k,_u}var Su,mc;function lg(){if(mc)return Su;mc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Jn(),i=rt();function o(s,a,d){var m=d.apiKey,y=d.version,k=d.serviceUrl,_=d.sessionId,w=d.userId,l=d.clientId,p=d.segments,f={c:y};if(f.key=m,f.i=l,f.s=_,!s||typeof s!="string")throw new Error("podId is a required parameter of type string");if(p&&p.length&&(f.us=p),w&&(f.ui=String(w)),a){var c=a.numResults,h=a.itemIds,E=a.section,x=a.term,S=a.filters,v=a.variationsMap,g=a.hiddenFields,I=a.preFilterExpression;i.isNil(c)||(f.num_results=c),h&&(f.item_id=h),E&&(f.section=E),x&&(f.term=x),S&&(f.filters=S),g&&(f.fmt_options?f.fmt_options.hidden_fields=g:f.fmt_options={hidden_fields:g}),v&&(f.variations_map=JSON.stringify(v)),I&&(f.pre_filter_expression=JSON.stringify(I))}f=i.cleanParams(f);var C=i.stringify(f);return"".concat(k,"/recommendations/v1/pods/").concat(i.encodeURIComponentRFC3986(i.trimNonBreakingSpaces(s)),"?").concat(C)}var u=function(){function s(a){(0,t.default)(this,s),this.options=a||{},this.eventDispatcher=new r(a.eventDispatcher)}return(0,n.default)(s,[{key:"getRecommendations",value:function(d,m){var y=this,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_,w=this.options.fetch,l;if(typeof AbortController=="function"){var p=new AbortController;l=p&&p.signal,i.applyNetworkTimeout(this.options,k,p)}try{_=o(d,m,this.options)}catch(f){return Promise.reject(f)}return w(_,{signal:l}).then(i.convertResponseToJson).then(function(f){if(f.response&&f.response.results)return f.result_id&&f.response.results.forEach(function(c){c.result_id=f.result_id}),y.eventDispatcher.queue("recommendations.getRecommendations.completed",f),f;throw new Error("getRecommendations response data is malformed")})}}]),s}();return Su=u,Su}var Ci={exports:{}},yc;function ag(){if(yc)return Ci.exports;yc=1;var e=Qe,t=e($n()),n=(typeof Reflect>"u"?"undefined":(0,t.default)(Reflect))==="object"?Reflect:null,r=n&&typeof n.apply=="function"?n.apply:function(v,g,I){return Function.prototype.apply.call(v,g,I)},i;n&&typeof n.ownKeys=="function"?i=n.ownKeys:Object.getOwnPropertySymbols?i=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:i=function(v){return Object.getOwnPropertyNames(v)};function o(S){console&&console.warn&&console.warn(S)}var u=Number.isNaN||function(v){return v!==v};function s(){s.init.call(this)}Ci.exports=s,Ci.exports.once=h,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function d(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+(0,t.default)(S))}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number"||v<0||u(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");a=v}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||u(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function m(S){return S._maxListeners===void 0?s.defaultMaxListeners:S._maxListeners}s.prototype.getMaxListeners=function(){return m(this)},s.prototype.emit=function(v){for(var g=[],I=1;I<arguments.length;I++)g.push(arguments[I]);var C=v==="error",O=this._events;if(O!==void 0)C=C&&O.error===void 0;else if(!C)return!1;if(C){var N;if(g.length>0&&(N=g[0]),N instanceof Error)throw N;var P=new Error("Unhandled error."+(N?" ("+N.message+")":""));throw P.context=N,P}var q=O[v];if(q===void 0)return!1;if(typeof q=="function")r(q,this,g);else for(var F=q.length,j=p(q,F),I=0;I<F;++I)r(j[I],this,g);return!0};function y(S,v,g,I){var C,O,N;if(d(g),O=S._events,O===void 0?(O=S._events=Object.create(null),S._eventsCount=0):(O.newListener!==void 0&&(S.emit("newListener",v,g.listener?g.listener:g),O=S._events),N=O[v]),N===void 0)N=O[v]=g,++S._eventsCount;else if(typeof N=="function"?N=O[v]=I?[g,N]:[N,g]:I?N.unshift(g):N.push(g),C=m(S),C>0&&N.length>C&&!N.warned){N.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=S,P.type=v,P.count=N.length,o(P)}return S}s.prototype.addListener=function(v,g){return y(this,v,g,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(v,g){return y(this,v,g,!0)};function k(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(S,v,g){var I={fired:!1,wrapFn:void 0,target:S,type:v,listener:g},C=k.bind(I);return C.listener=g,I.wrapFn=C,C}s.prototype.once=function(v,g){return d(g),this.on(v,_(this,v,g)),this},s.prototype.prependOnceListener=function(v,g){return d(g),this.prependListener(v,_(this,v,g)),this},s.prototype.removeListener=function(v,g){var I,C,O,N,P;if(d(g),C=this._events,C===void 0)return this;if(I=C[v],I===void 0)return this;if(I===g||I.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete C[v],C.removeListener&&this.emit("removeListener",v,I.listener||g));else if(typeof I!="function"){for(O=-1,N=I.length-1;N>=0;N--)if(I[N]===g||I[N].listener===g){P=I[N].listener,O=N;break}if(O<0)return this;O===0?I.shift():f(I,O),I.length===1&&(C[v]=I[0]),C.removeListener!==void 0&&this.emit("removeListener",v,P||g)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(v){var g,I,C;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[v]),this;if(arguments.length===0){var O=Object.keys(I),N;for(C=0;C<O.length;++C)N=O[C],N!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=I[v],typeof g=="function")this.removeListener(v,g);else if(g!==void 0)for(C=g.length-1;C>=0;C--)this.removeListener(v,g[C]);return this};function w(S,v,g){var I=S._events;if(I===void 0)return[];var C=I[v];return C===void 0?[]:typeof C=="function"?g?[C.listener||C]:[C]:g?c(C):p(C,C.length)}s.prototype.listeners=function(v){return w(this,v,!0)},s.prototype.rawListeners=function(v){return w(this,v,!1)},s.listenerCount=function(S,v){return typeof S.listenerCount=="function"?S.listenerCount(v):l.call(S,v)},s.prototype.listenerCount=l;function l(S){var v=this._events;if(v!==void 0){var g=v[S];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function p(S,v){for(var g=new Array(v),I=0;I<v;++I)g[I]=S[I];return g}function f(S,v){for(;v+1<S.length;v++)S[v]=S[v+1];S.pop()}function c(S){for(var v=new Array(S.length),g=0;g<v.length;++g)v[g]=S[g].listener||S[g];return v}function h(S,v){return new Promise(function(g,I){function C(N){S.removeListener(v,O),I(N)}function O(){typeof S.removeListener=="function"&&S.removeListener("error",C),g([].slice.call(arguments))}x(S,v,O,{once:!0}),v!=="error"&&E(S,C,{once:!0})})}function E(S,v,g){typeof S.on=="function"&&x(S,"error",v,g)}function x(S,v,g,I){if(typeof S.on=="function")I.once?S.once(v,g):S.on(v,g);else if(typeof S.addEventListener=="function")S.addEventListener(v,function C(O){I.once&&S.removeEventListener(v,C),g(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+(0,t.default)(S))}return Ci.exports}var ku,wc;function cg(){return wc||(wc=1,ku=["Googlebot/","Googlebot-Mobile","Googlebot-Image","Googlebot-News","Googlebot-Video","AdsBot-Google([^-]|$)","AdsBot-Google-Mobile","Feedfetcher-Google","Mediapartners-Google","Mediapartners \\(Googlebot\\)","APIs-Google","bingbot","Slurp","[wW]get","curl","LinkedInBot","Python-urllib","python-requests","libwww","httpunit","nutch","Go-http-client","phpcrawl","msnbot","jyxobot","FAST-WebCrawler","FAST Enterprise Crawler","BIGLOTRON","Teoma","convera","seekbot","Gigabot","Gigablast","exabot","ia_archiver","GingerCrawler","webmon ","HTTrack","grub\\.org","UsineNouvelleCrawler","antibot","netresearchserver","speedy","fluffy","bibnum\\.bnf","findlink","msrbot","panscient","yacybot","AISearchBot","ips-agent","tagoobot","MJ12bot","woriobot","yanga","buzzbot","mlbot","YandexBot","yandex\\.com/bots","purebot","Linguee Bot","CyberPatrol","voilabot","Baiduspider","citeseerxbot","spbot","twengabot","postrank","turnitinbot","scribdbot","page2rss","sitebot","linkdex","Adidxbot","blekkobot","ezooms","dotbot","Mail\\.RU_Bot","discobot","heritrix","findthatfile","europarchive\\.org","NerdByNature\\.Bot","sistrix crawler","Ahrefs(Bot|SiteAudit)","fuelbot","CrunchBot","centurybot9","IndeedBot","mappydata","woobot","ZoominfoBot","PrivacyAwareBot","Multiviewbot","SWIMGBot","Grobbot","eright","Apercite","semanticbot","Aboundex","domaincrawler","wbsearchbot","summify","CCBot","edisterbot","seznambot","ec2linkfinder","gslfbot","aiHitBot","intelium_bot","facebookexternalhit","Yeti","RetrevoPageAnalyzer","lb-spider","Sogou","lssbot","careerbot","wotbox","wocbot","ichiro","DuckDuckBot","lssrocketcrawler","drupact","webcompanycrawler","acoonbot","openindexspider","gnam gnam spider","web-archive-net\\.com\\.bot","backlinkcrawler","coccoc","integromedb","content crawler spider","toplistbot","it2media-domain-crawler","ip-web-crawler\\.com","siteexplorer\\.info","elisabot","proximic","changedetection","arabot","WeSEE:Search","niki-bot","CrystalSemanticsBot","rogerbot","360Spider","psbot","InterfaxScanBot","CC Metadata Scaper","g00g1e\\.net","GrapeshotCrawler","urlappendbot","brainobot","fr-crawler","binlar","SimpleCrawler","Twitterbot","cXensebot","smtbot","bnf\\.fr_bot","A6-Indexer","ADmantX","Facebot","OrangeBot/","memorybot","AdvBot","MegaIndex","SemanticScholarBot","ltx71","nerdybot","xovibot","BUbiNG","Qwantify","archive\\.org_bot","Applebot","TweetmemeBot","crawler4j","findxbot","S[eE][mM]rushBot","yoozBot","lipperhey","Y!J","Domain Re-Animator Bot","AddThis","Screaming Frog SEO Spider","MetaURI","Scrapy","Livelap[bB]ot","OpenHoseBot","CapsuleChecker","collection@infegy\\.com","IstellaBot","DeuSu/","betaBot","Cliqzbot/","MojeekBot/","netEstate NE Crawler","SafeSearch microdata crawler","Gluten Free Crawler/","Sonic","Sysomos","Trove","deadlinkchecker","Slack-ImgProxy","Embedly","RankActiveLinkBot","iskanie","SafeDNSBot","SkypeUriPreview","Veoozbot","Slackbot","redditbot","datagnionbot","Google-Adwords-Instant","adbeat_bot","WhatsApp","contxbot","pinterest","electricmonk","GarlikCrawler","BingPreview/","vebidoobot","FemtosearchBot","Yahoo Link Preview","MetaJobBot","DomainStatsBot","mindUpBot","Daum/","Jugendschutzprogramm-Crawler","Xenu Link Sleuth","Pcore-HTTP","moatbot","KosmioBot","pingdom","PhantomJS","Gowikibot","PiplBot","Discordbot","TelegramBot","Jetslide","newsharecounts","James BOT","Barkrowler","TinEye","SocialRankIOBot","trendictionbot","Ocarinabot","epicbot","Primalbot","DuckDuckGo-Favicons-Bot","GnowitNewsbot","Leikibot","LinkArchiver","YaK/","PaperLiBot","Digg Deeper","dcrawl","Snacktory","AndersPinkBot","Fyrebot","EveryoneSocialBot","Mediatoolkitbot","Luminator-robots","ExtLinksBot","SurveyBot","NING/","okhttp","Nuzzel","omgili","PocketParser","YisouSpider","um-LN","ToutiaoSpider","MuckRack","Jamie's Spider","AHC/","NetcraftSurveyAgent","Laserlikebot","Apache-HttpClient","AppEngine-Google","Jetty","Upflow","Thinklab","Traackr\\.com","Twurly","Mastodon","http_get","DnyzBot","botify","007ac9 Crawler","BehloolBot","BrandVerity","check_http","BDCbot","ZumBot","EZID","ICC-Crawler","ArchiveBot","^LCC ","filterdb\\.iss\\.net/crawler","BLP_bbot","BomboraBot","Buck/","Companybook-Crawler","Genieo","magpie-crawler","MeltwaterNews","Moreover","newspaper/","ScoutJet","(^| )sentry/","StorygizeBot","UptimeRobot","OutclicksBot","seoscanners","Hatena","Google Web Preview","MauiBot","AlphaBot","SBL-BOT","IAS crawler","adscanner","Netvibes","acapbot","Baidu-YunGuanCe","bitlybot","blogmuraBot","Bot\\.AraTurka\\.com","bot-pge\\.chlooe\\.com","BoxcarBot","BTWebClient","ContextAd Bot","Digincore bot","Disqus","Feedly","Fetch/","Fever","Flamingo_SearchEngine","FlipboardProxy","g2reader-bot","imrbot","K7MLWCBot","Kemvibot","Landau-Media-Spider","linkapediabot","vkShare","Siteimprove\\.com","BLEXBot/","DareBoost","ZuperlistBot/","Miniflux/","Feedspotbot/","Diffbot/","SEOkicks","tracemyfile","Nimbostratus-Bot","Bytespider"]),ku}var Eu,_c;function fg(){if(_c)return Eu;_c=1;var e=Qe,t=e(ft()),n=e(dt()),r=Rl(),i=cg(),o=rt(),u="_constructorio_is_human",s=["scroll","resize","touchmove","mouseover","mousemove","keydown","keypress","keyup","focus"],a=function(){function d(){var m=this;(0,t.default)(this,d),this.isHumanBoolean=this.getIsHumanFromSessionStorage();var y=function k(){m.isHumanBoolean=!0,r.session.set(u,!0),s.forEach(function(_){o.removeEventListener(_,k,!0)})};this.isHumanBoolean||s.forEach(function(k){o.addEventListener(k,y,!0)})}return(0,n.default)(d,[{key:"getIsHumanFromSessionStorage",value:function(){return!!r.session.get(u)||!1}},{key:"isHuman",value:function(){return this.isHumanBoolean||!!r.session.get(u)}},{key:"isBot",value:function(){if(this.getIsHumanFromSessionStorage())return!1;var y=o.getNavigator(),k=y.userAgent,_=y.webdriver,w=new RegExp("(".concat(i.join("|"),")"));return!!k.match(w)||!!_}}]),d}();return Eu=a,Eu}var Cu,Sc;function dg(){if(Sc)return Cu;Sc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Rl(),i=fg(),o=rt(),u=rt(),s=u.obfuscatePiiRequest,a="_constructorio_requests",d=18e4,m=function(){function y(k,_){var w=this;(0,t.default)(this,y),this.options=k,this.eventemitter=_,this.humanity=new i,this.requestPending=!1,this.pageUnloading=!1,this.sendTrackingEvents=!!(k&&k.sendTrackingEvents===!0),o.addEventListener("beforeunload",function(){w.pageUnloading=!0}),this.sendTrackingEvents&&this.send()}return(0,n.default)(y,[{key:"queue",value:function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GET",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.sendTrackingEvents&&!this.humanity.isBot()){var f=y.get(),c=s(_);f.push({url:c,method:w,body:l,networkParameters:p}),y.set(f)}}},{key:"sendEvents",value:function(){var _=this,w=this.options.fetch,l=y.get();if((!o.canUseDOM()||this.humanity.isHuman())&&!this.requestPending&&!this.pageUnloading&&l.length){var p,f=l.shift(),c=f,h=c.networkParameters,E,x=this;if(y.set(l),h&&typeof AbortController=="function"){var S=new AbortController;E=S.signal,o.applyNetworkTimeout(this.options,h,S)}if(typeof f=="string"&&(f={url:f,method:"GET"}),f.url){var v=f.url.match(/\?.*_dt=([^&]+)/),g=parseInt(v&&v[1],10),I=+new Date;if(g&&Number.isInteger(g)&&I-g>d){this.sendTrackingEvents=!1,y.remove();return}}f.method==="GET"&&(p=w(f.url,{signal:E})),f.method==="POST"&&(p=w(f.url,{method:f.method,body:JSON.stringify(f.body),mode:"cors",headers:{"Content-Type":"text/plain"},signal:E})),p&&(this.requestPending=!0,p.then(function(C){C.ok?(x.eventemitter&&x.eventemitter.emit("success",{url:f.url,method:f.method,message:"ok"}),_.requestPending=!1,_.send()):C.json().then(function(O){x.eventemitter&&x.eventemitter.emit("error",{url:f.url,method:f.method,message:O&&O.message}),_.requestPending=!1,_.send()}).catch(function(O){x.eventemitter&&x.eventemitter.emit("error",{url:f.url,method:f.method,message:O.type}),_.requestPending=!1,_.send()})}).catch(function(C){x.eventemitter&&x.eventemitter.emit("error",{url:f.url,method:f.method,message:C&&C.toString&&C.toString()}),_.requestPending=!1,_.send()}))}}},{key:"send",value:function(){this.sendTrackingEvents&&(this.options&&this.options.trackingSendDelay===0?this.sendEvents():setTimeout(this.sendEvents.bind(this),this.options&&this.options.trackingSendDelay||250))}}],[{key:"get",value:function(){return r.local.get(a)||[]}},{key:"set",value:function(_){!_||Array.isArray(_)&&_.length===0?y.remove():r.local.set(a,_);var w=y.get();Array.isArray(w)&&w.length!==_.length&&(this.sendTrackingEvents=!1,y.remove())}},{key:"remove",value:function(){r.local.remove(a)}}]),y}();return Cu=m,Cu}var xu,kc;function pg(){if(kc)return xu;kc=1;var e=Qe,t=e($n()),n=e(Tl()),r=e(ft()),i=e(dt());function o(_,w){var l=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);w&&(p=p.filter(function(f){return Object.getOwnPropertyDescriptor(_,f).enumerable})),l.push.apply(l,p)}return l}function u(_){for(var w=1;w<arguments.length;w++){var l=arguments[w]!=null?arguments[w]:{};w%2?o(Object(l),!0).forEach(function(p){(0,n.default)(_,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(p){Object.defineProperty(_,p,Object.getOwnPropertyDescriptor(l,p))})}return _}var s=ag(),a=rt(),d=dg();function m(_,w){var l=w.apiKey,p=w.version,f=w.sessionId,c=w.clientId,h=w.userId,E=w.segments,x=w.testCells,S=w.requestMethod,v=w.beaconMode,g=a.getWindowLocation(),I=g.host,C=g.pathname,O=w.sendReferrerWithTrackingEvents!==!1,N=Object.assign(_);return p&&(N.c=p),c&&(N.i=c),f&&(N.s=f),h&&(N.ui=String(h)),E&&E.length&&(N.us=E),l&&(N.key=l),x&&Object.keys(x).forEach(function(P){N["ef-".concat(P)]=x[P]}),v&&S&&S.match(/POST/i)&&(N.beacon=!0),O&&I&&(N.origin_referrer=I,C&&(N.origin_referrer+=C)),N._dt=Date.now(),N=a.cleanParams(N),N}function y(_,w){return a.stringify(m(_,w))}var k=function(){function _(w){(0,r.default)(this,_),this.options=w||{},this.eventemitter=new s,this.requests=new d(w,this.eventemitter)}return(0,i.default)(_,[{key:"trackSessionStartV2",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p="".concat(this.options.serviceUrl,"/v2/behavioral_action/session_start?");return this.requests.queue("".concat(p).concat(y({},this.options)),"POST",void 0,l),this.requests.send(),!0}},{key:"trackSessionStart",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p="".concat(this.options.serviceUrl,"/behavior?"),f={action:"session_start"};return this.requests.queue("".concat(p).concat(y(f,this.options)),void 0,void 0,l),this.requests.send(),!0}},{key:"trackInputFocusV2",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c="".concat(this.options.serviceUrl,"/v2/behavioral_action/focus?"),h={},E=p.analyticsTags,x=E===void 0?null:E;x&&(h.analytics_tags=x),h.user_input=l;var S="POST",v=m(h,u(u({},this.options),{},{requestMethod:S}));return this.requests.queue("".concat(c).concat(y({},this.options)),S,v,f),this.requests.send(),!0}},{key:"trackInputFocus",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p="".concat(this.options.serviceUrl,"/behavior?"),f={action:"focus"};return this.requests.queue("".concat(p).concat(y(f,this.options)),void 0,void 0,l),this.requests.send(),!0}},{key:"trackItemDetailLoad",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/item_detail_load?"),c={},h={},E=l.item_name,x=l.name,S=l.item_id,v=l.customer_id,g=l.customerId,I=g===void 0?v:g,C=l.variation_id,O=l.itemName,N=O===void 0?E||x:O,P=l.itemId,q=P===void 0?S||I:P,F=l.variationId,j=F===void 0?C:F,T=l.url,R=l.analyticsTags;N&&(h.item_name=N),q&&(h.item_id=q),j&&(h.variation_id=j),R&&(h.analytics_tags=R),T&&(h.url=T);var A="".concat(f).concat(y(c,this.options)),D="POST",M=m(h,u(u({},this.options),{},{requestMethod:D}));return this.requests.queue(A,D,M,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAutocompleteSelectV2",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/autocomplete_select?"),h=p.original_query,E=p.originalQuery,x=E===void 0?h:E,S=p.user_input,v=p.userInput,g=v===void 0?x||S:v,I=p.original_section,C=p.section,O=C===void 0?I:C,N=p.tr,P=p.group_id,q=p.groupId,F=q===void 0?P:q,j=p.item_id,T=p.itemId,R=T===void 0?j:T,A=p.variation_id,D=p.variationId,M=D===void 0?A:D,L={},Q={user_input:g,tr:N,group_id:F,item_id:R,variation_id:M,item_name:l,section:O};O&&(L.section=O);var Y="".concat(c).concat(y(L,this.options)),V="POST",J=m(Q,u(u({},this.options),{},{requestMethod:V}));return this.requests.queue(Y,V,J,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackAutocompleteSelect",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/autocomplete/").concat(a.encodeURIComponentRFC3986(a.trimNonBreakingSpaces(l)),"/select?"),h={},E=p.original_query,x=p.originalQuery,S=x===void 0?E:x,v=p.section,g=p.original_section,I=p.originalSection,C=I===void 0?g:I,O=p.tr,N=p.group_id,P=p.groupId,q=P===void 0?N:P,F=p.display_name,j=p.displayName,T=j===void 0?F:j;return S&&(h.original_query=S),O&&(h.tr=O),(C||v)&&(h.section=C||v),q&&(h.group={group_id:q,display_name:T}),this.requests.queue("".concat(c).concat(y(h,this.options)),void 0,void 0,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchSubmitV2",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/search_submit?"),h=p.original_query,E=p.originalQuery,x=E===void 0?h:E,S=p.user_input,v=p.userInput,g=v===void 0?x||S:v,I=p.group_id,C=p.groupId,O=C===void 0?I:C,N=p.section,P={},q={user_input:g,search_term:l,section:N};O&&(q.filters={group_id:O}),N&&(P.section=N);var F="".concat(c).concat(y(P,this.options)),j="POST",T=m(q,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(F,j,T,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchSubmit",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/autocomplete/").concat(a.encodeURIComponentRFC3986(a.trimNonBreakingSpaces(l)),"/search?"),h={},E=p.original_query,x=p.originalQuery,S=x===void 0?E:x,v=p.group_id,g=p.groupId,I=g===void 0?v:g,C=p.display_name,O=p.displayName,N=O===void 0?C:O;return S&&(h.original_query=S),I&&(h.group={group_id:I,display_name:N}),this.requests.queue("".concat(c).concat(y(h,this.options)),void 0,void 0,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultsLoadedV2",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/search_result_load?"),h=p.num_results,E=p.numResults,x=E===void 0?h:E,S=p.result_count,v=p.resultCount,g=v===void 0?x||S:v,I=p.customer_ids,C=p.item_ids,O=p.items,N=O===void 0?I||C:O,P=p.result_page,q=p.resultPage,F=q===void 0?P:q,j=p.result_id,T=p.resultId,R=T===void 0?j:T,A=p.sort_order,D=p.sortOrder,M=D===void 0?A:D,L=p.sort_by,Q=p.sortBy,Y=Q===void 0?L:Q,V=p.selected_filters,J=p.selectedFilters,H=J===void 0?V:J,b=p.url,W=p.section,$={},X;N&&Array.isArray(N)&&N.length!==0&&(X=N,typeof N[0]=="string"||typeof N[0]=="number"?X=N.map(function(ne){return{item_id:String(ne)}}):X=N.map(function(ne){return a.toSnakeCaseKeys(ne,!1)})),W&&($.section=W);var re={search_term:l,result_count:g,items:X,result_page:F,result_id:R,sort_order:M,sort_by:Y,selected_filters:H,url:b,section:W},ee="".concat(c).concat(y($,this.options)),ie="POST",ve=m(re,u(u({},this.options),{},{requestMethod:ie}));return this.requests.queue(ee,ie,ve,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultsLoaded",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/behavior?"),h={action:"search-results",term:l},E=p.num_results,x=p.numResults,S=x===void 0?E:x,v=p.customer_ids,g=p.customerIds,I=g===void 0?v:g,C=p.item_ids,O=p.itemIds,N=O===void 0?C:O,P;return a.isNil(S)||(h.num_results=S),N&&Array.isArray(N)?P=N:I&&Array.isArray(I)&&(P=I),P&&Array.isArray(P)&&P.length&&(h.customer_ids=P.slice(0,100).join(",")),this.requests.queue("".concat(c).concat(y(h,this.options)),void 0,void 0,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultClickV2",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/v2/behavioral_action/search_result_click?"),h=p.num_results,E=p.customer_id,x=p.item_id,S=p.itemId,v=S===void 0?E||x:S,g=p.name,I=p.item_name,C=p.itemName,O=C===void 0?g||I:C,N=p.variation_id,P=p.variationId,q=P===void 0?N:P,F=p.result_id,j=p.resultId,T=j===void 0?F:j,R=p.result_count,A=p.resultCount,D=A===void 0?h||R:A,M=p.result_page,L=p.resultPage,Q=L===void 0?M:L,Y=p.result_position_on_page,V=p.resultPositionOnPage,J=V===void 0?Y:V,H=p.num_results_per_page,b=p.numResultsPerPage,W=b===void 0?H:b,$=p.selected_filters,X=p.selectedFilters,re=X===void 0?$:X,ee=p.section,ie={item_name:O,item_id:v,variation_id:q,result_id:T,result_count:D,result_page:Q,result_position_on_page:J,num_results_per_page:W,selected_filters:re,section:ee,search_term:l},ve={};ee&&(ve.section=ee);var ne="".concat(c).concat(y(ve,this.options)),we="POST",$e=m(ie,u(u({},this.options),{},{requestMethod:we}));return this.requests.queue(ne,we,$e,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackSearchResultClick",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l&&typeof l=="string"){if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c="".concat(this.options.serviceUrl,"/autocomplete/").concat(a.encodeURIComponentRFC3986(a.trimNonBreakingSpaces(l)),"/click_through?"),h={},E=p.item_name,x=p.name,S=p.itemName,v=S===void 0?E||x:S,g=p.item_id,I=p.itemId,C=I===void 0?g:I,O=p.customer_id,N=p.customerId,P=N===void 0?O||C:N,q=p.variation_id,F=p.variationId,j=F===void 0?q:F,T=p.result_id,R=p.resultId,A=R===void 0?T:R,D=p.item_is_convertible,M=p.itemIsConvertible,L=M===void 0?D:M,Q=p.section;return v&&(h.name=v),P&&(h.customer_id=P),j&&(h.variation_id=j),A&&(h.result_id=A),typeof L=="boolean"&&(h.item_is_convertible=L),Q&&(h.section=Q),this.requests.queue("".concat(c).concat(y(h,this.options)),void 0,void 0,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}return this.requests.send(),new Error("term is a required parameter of type string")}},{key:"trackConversion",value:function(l,p){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(p&&(0,t.default)(p)==="object"&&!Array.isArray(p)){var c=l||"TERM_UNKNOWN",h="".concat(this.options.serviceUrl,"/v2/behavioral_action/conversion?"),E={},x={},S=p.name,v=p.item_name,g=p.itemName,I=g===void 0?v||S:g,C=p.customer_id,O=p.customerId,N=O===void 0?C:O,P=p.item_id,q=p.itemId,F=q===void 0?P||N:q,j=p.variation_id,T=p.variationId,R=T===void 0?j:T,A=p.revenue,D=p.section,M=D===void 0?"Products":D,L=p.display_name,Q=p.displayName,Y=Q===void 0?L:Q,V=p.type,J=p.is_custom_type,H=p.isCustomType,b=H===void 0?J:H;F&&(x.item_id=F),I&&(x.item_name=I),R&&(x.variation_id=R),(A||A===0)&&(x.revenue=A.toString()),M&&(E.section=M,x.section=M),c&&(x.search_term=c),V&&(x.type=V),b&&(x.is_custom_type=b),Y&&(x.display_name=Y);var W="".concat(h).concat(y(E,this.options)),$="POST",X=m(x,u(u({},this.options),{},{requestMethod:$}));return this.requests.queue(W,$,X,f),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackPurchase",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/purchase?"),c={},h={},E=l.items,x=l.revenue,S=l.order_id,v=l.orderId,g=v===void 0?S:v,I=l.section,C=l.analyticsTags,O=this.options.apiKey;if(g){if(a.hasOrderIdRecord({orderId:g,apiKey:O}))return!1;a.addOrderIdRecord({orderId:g,apiKey:O}),h.order_id=g}E&&Array.isArray(E)&&(h.items=E.slice(0,100).map(function(F){return a.toSnakeCaseKeys(F,!1)})),(x||x===0)&&(h.revenue=x),I?c.section=I:c.section="Products",C&&(h.analytics_tags=C);var N="".concat(f).concat(y(c,this.options)),P="POST",q=m(h,u(u({},this.options),{},{requestMethod:P}));return this.requests.queue(N,P,q,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackRecommendationView",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/recommendation_result_view?"),c={},h=l.result_count,E=l.resultCount,x=E===void 0?h:E,S=l.result_page,v=l.resultPage,g=v===void 0?S:v,I=l.result_id,C=l.resultId,O=C===void 0?I:C,N=l.section,P=l.url,q=l.pod_id,F=l.podId,j=F===void 0?q:F,T=l.num_results_viewed,R=l.numResultsViewed,A=R===void 0?T:R,D=l.items,M=l.analyticsTags;a.isNil(x)||(c.result_count=x),a.isNil(g)||(c.result_page=g),O&&(c.result_id=O),N?c.section=N:c.section="Products",P&&(c.url=P),j&&(c.pod_id=j),a.isNil(A)||(c.num_results_viewed=A),D&&Array.isArray(D)&&(c.items=D.slice(0,100).map(function(V){return a.toSnakeCaseKeys(V,!1)})),M&&(c.analytics_tags=M);var L="".concat(f).concat(y({},this.options)),Q="POST",Y=m(c,u(u({},this.options),{},{requestMethod:Q}));return this.requests.queue(L,Q,Y,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackRecommendationClick",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/recommendation_result_click?"),c={},h=l.variation_id,E=l.variationId,x=E===void 0?h:E,S=l.section,v=S===void 0?"Products":S,g=l.result_id,I=l.resultId,C=I===void 0?g:I,O=l.result_count,N=l.resultCount,P=N===void 0?O:N,q=l.result_page,F=l.resultPage,j=F===void 0?q:F,T=l.result_position_on_page,R=l.resultPositionOnPage,A=R===void 0?T:R,D=l.num_results_per_page,M=l.numResultsPerPage,L=M===void 0?D:M,Q=l.pod_id,Y=l.podId,V=Y===void 0?Q:Y,J=l.strategy_id,H=l.strategyId,b=H===void 0?J:H,W=l.item_id,$=l.itemId,X=$===void 0?W:$,re=l.item_name,ee=l.itemName,ie=ee===void 0?re:ee,ve=l.analyticsTags;x&&(c.variation_id=x),v&&(c.section=v),C&&(c.result_id=C),a.isNil(P)||(c.result_count=P),a.isNil(j)||(c.result_page=j),a.isNil(A)||(c.result_position_on_page=A),a.isNil(L)||(c.num_results_per_page=L),V&&(c.pod_id=V),b&&(c.strategy_id=b),X&&(c.item_id=X),ie&&(c.item_name=ie),ve&&(c.analytics_tags=ve);var ne="".concat(f).concat(y({},this.options)),we="POST",$e=m(c,u(u({},this.options),{},{requestMethod:we}));return this.requests.queue(ne,we,$e,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackBrowseResultsLoaded",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/browse_result_load?"),c={},h=l.section,E=h===void 0?"Products":h,x=l.result_count,S=l.resultCount,v=S===void 0?x:S,g=l.result_page,I=l.resultPage,C=I===void 0?g:I,O=l.result_id,N=l.resultId,P=N===void 0?O:N,q=l.selected_filters,F=l.selectedFilters,j=F===void 0?q:F,T=l.url,R=l.sort_order,A=l.sortOrder,D=A===void 0?R:A,M=l.sort_by,L=l.sortBy,Q=L===void 0?M:L,Y=l.filter_name,V=l.filterName,J=V===void 0?Y:V,H=l.filter_value,b=l.filterValue,W=b===void 0?H:b,$=l.items,X=l.analyticsTags;E&&(c.section=E),a.isNil(v)||(c.result_count=v),a.isNil(C)||(c.result_page=C),P&&(c.result_id=P),j&&(c.selected_filters=j),T&&(c.url=T),D&&(c.sort_order=D),Q&&(c.sort_by=Q),J&&(c.filter_name=J),W&&(c.filter_value=W),$&&Array.isArray($)&&(c.items=$.slice(0,100).map(function(ve){return a.toSnakeCaseKeys(ve,!1)})),X&&(c.analytics_tags=X);var re="".concat(f).concat(y({},this.options)),ee="POST",ie=m(c,u(u({},this.options),{},{requestMethod:ee}));return this.requests.queue(re,ee,ie,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackBrowseResultClick",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/browse_result_click?"),c={},h=l.section,E=h===void 0?"Products":h,x=l.variation_id,S=l.variationId,v=S===void 0?x:S,g=l.result_id,I=l.resultId,C=I===void 0?g:I,O=l.result_count,N=l.resultCount,P=N===void 0?O:N,q=l.result_page,F=l.resultPage,j=F===void 0?q:F,T=l.result_position_on_page,R=l.resultPositionOnPage,A=R===void 0?T:R,D=l.num_results_per_page,M=l.numResultsPerPage,L=M===void 0?D:M,Q=l.selected_filters,Y=l.selectedFilters,V=Y===void 0?Q:Y,J=l.filter_name,H=l.filterName,b=H===void 0?J:H,W=l.filter_value,$=l.filterValue,X=$===void 0?W:$,re=l.customer_id,ee=l.customerId,ie=ee===void 0?re:ee,ve=l.item_id,ne=l.itemId,we=ne===void 0?ie||ve:ne,$e=l.item_name,ht=l.name,mn=l.itemName,je=mn===void 0?$e||ht:mn,yn=l.analyticsTags;E&&(c.section=E),v&&(c.variation_id=v),C&&(c.result_id=C),a.isNil(P)||(c.result_count=P),a.isNil(j)||(c.result_page=j),a.isNil(A)||(c.result_position_on_page=A),a.isNil(L)||(c.num_results_per_page=L),V&&(c.selected_filters=V),b&&(c.filter_name=b),X&&(c.filter_value=X),we&&(c.item_id=we),je&&(c.item_name=je),yn&&(c.analytics_tags=yn);var wn="".concat(f).concat(y({},this.options)),kt="POST",Zn=m(c,u(u({},this.options),{},{requestMethod:kt}));return this.requests.queue(wn,kt,Zn,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackGenericResultClick",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,t.default)(l)==="object"){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/result_click?"),c={},h=l.item_id,E=l.itemId,x=E===void 0?h:E,S=l.item_name,v=l.itemName,g=v===void 0?S:v,I=l.variation_id,C=l.variationId,O=C===void 0?I:C,N=l.section,P=N===void 0?"Products":N,q=l.analyticsTags;if(x){c.section=P,c.item_id=x,g&&(c.item_name=g),O&&(c.variation_id=O),q&&(c.analytics_tags=q);var F="".concat(f).concat(y({},this.options)),j="POST",T=m(c,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(F,j,T,p),this.requests.send(),!0}}return this.requests.send(),new Error('A parameters object with an "itemId" property is required.')}},{key:"trackQuizResultsLoaded",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_result_load?"),c=l.quiz_id,h=l.quizId,E=h===void 0?c:h,x=l.quiz_version_id,S=l.quizVersionId,v=S===void 0?x:S,g=l.quiz_session_id,I=l.quizSessionId,C=I===void 0?g:I,O=l.url,N=l.section,P=N===void 0?"Products":N,q=l.result_count,F=l.resultCount,j=F===void 0?q:F,T=l.result_id,R=l.resultId,A=R===void 0?T:R,D=l.result_page,M=l.resultPage,L=M===void 0?D:M,Q=l.items,Y={},V={};if(Q&&Array.isArray(Q)&&(V.items=Q.slice(0,100).map(function(W){return a.toSnakeCaseKeys(W,!1)})),typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof v!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof C!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof O!="string")return new Error('"url" is a required parameter of type string');if(V.quiz_id=E,V.quiz_version_id=v,V.quiz_session_id=C,V.url=O,!a.isNil(P)){if(typeof P!="string")return new Error('"section" must be a string');Y.section=P,V.section=P}if(!a.isNil(j)){if(typeof j!="number")return new Error('"resultCount" must be a number');V.result_count=j}if(!a.isNil(A)){if(typeof A!="string")return new Error('"resultId" must be a string');V.result_id=A}if(!a.isNil(L)){if(typeof L!="number")return new Error('"resultPage" must be a number');V.result_page=L}var J="".concat(f).concat(y(Y,this.options)),H="POST",b=m(V,u(u({},this.options),{},{requestMethod:H}));return this.requests.queue(J,H,b,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackQuizResultClick",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_result_click?"),c=l.quiz_id,h=l.quizId,E=h===void 0?c:h,x=l.quiz_version_id,S=l.quizVersionId,v=S===void 0?x:S,g=l.quiz_session_id,I=l.quizSessionId,C=I===void 0?g:I,O=l.item_id,N=l.itemId,P=N===void 0?O:N,q=l.item_name,F=l.itemName,j=F===void 0?q:F,T=l.result_count,R=l.resultCount,A=R===void 0?T:R,D=l.result_id,M=l.resultId,L=M===void 0?D:M,Q=l.result_page,Y=l.resultPage,V=Y===void 0?Q:Y,J=l.num_results_per_page,H=l.numResultsPerPage,b=H===void 0?J:H,W=l.result_position_on_page,$=l.resultPositionOnPage,X=$===void 0?W:$,re=l.section,ee=re===void 0?"Products":re,ie=l.variationId,ve={},ne={};if(typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof v!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof C!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof P!="string"&&typeof j!="string")return new Error('"itemId" or "itemName" is a required parameter of type string');if(ne.quiz_id=E,ne.quiz_version_id=v,ne.quiz_session_id=C,!a.isNil(P)){if(typeof P!="string")return new Error('"itemId" must be a string');ne.item_id=P}if(!a.isNil(j)){if(typeof j!="string")return new Error('"itemName" must be a string');ne.item_name=j}if(!a.isNil(ie)){if(typeof ie!="string")return new Error('"variationId" must be a string');ne.variation_id=ie}if(!a.isNil(ee)){if(typeof ee!="string")return new Error('"section" must be a string');ve.section=ee}if(!a.isNil(A)){if(typeof A!="number")return new Error('"resultCount" must be a number');ne.result_count=A}if(!a.isNil(L)){if(typeof L!="string")return new Error('"resultId" must be a string');ne.result_id=L}if(!a.isNil(V)){if(typeof V!="number")return new Error('"resultPage" must be a number');ne.result_page=V}if(!a.isNil(b)){if(typeof b!="number")return new Error('"numResultsPerPage" must be a number');ne.num_results_per_page=b}if(!a.isNil(X)){if(typeof X!="number")return new Error('"resultPositionOnPage" must be a number');ne.result_position_on_page=X}var we="".concat(f).concat(y(ve,this.options)),$e="POST",ht=m(ne,u(u({},this.options),{},{requestMethod:$e}));return this.requests.queue(we,$e,ht,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackQuizConversion",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/quiz_conversion?"),c=l.quiz_id,h=l.quizId,E=h===void 0?c:h,x=l.quiz_version_id,S=l.quizVersionId,v=S===void 0?x:S,g=l.quiz_session_id,I=l.quizSessionId,C=I===void 0?g:I,O=l.item_id,N=l.itemId,P=N===void 0?O:N,q=l.item_name,F=l.itemName,j=F===void 0?q:F,T=l.variation_id,R=l.variationId,A=R===void 0?T:R,D=l.revenue,M=l.section,L=M===void 0?"Products":M,Q=l.type,Y=l.is_custom_type,V=l.isCustomType,J=V===void 0?Y:V,H=l.display_name,b=l.displayName,W=b===void 0?H:b,$={},X={};if(typeof E!="string")return new Error('"quizId" is a required parameter of type string');if(typeof v!="string")return new Error('"quizVersionId" is a required parameter of type string');if(typeof C!="string")return new Error('"quizSessionId" is a required parameter of type string');if(typeof P!="string"&&typeof j!="string")return new Error('"itemId" or "itemName" is a required parameter of type string');if(X.quiz_id=E,X.quiz_version_id=v,X.quiz_session_id=C,!a.isNil(P)){if(typeof P!="string")return new Error('"itemId" must be a string');X.item_id=P}if(!a.isNil(j)){if(typeof j!="string")return new Error('"itemName" must be a string');X.item_name=j}if(!a.isNil(A)){if(typeof A!="string")return new Error('"variationId" must be a string');X.variation_id=A}if(!a.isNil(D)){if(typeof D!="string")return new Error('"revenue" must be a string');X.revenue=D}if(!a.isNil(L)){if(typeof L!="string")return new Error('"section" must be a string');X.section=L}if(!a.isNil(Q)){if(typeof Q!="string")return new Error('"type" must be a string');X.type=Q}if(!a.isNil(J)){if(typeof J!="boolean")return new Error('"isCustomType" must be a boolean');X.is_custom_type=J}if(!a.isNil(W)){if(typeof W!="string")return new Error('"displayName" must be a string');X.display_name=W}var re="".concat(f).concat(y($,this.options)),ee="POST",ie=m(X,u(u({},this.options),{},{requestMethod:ee}));return this.requests.queue(re,ee,ie,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantSubmit",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_submit?"),c=l.section,h=l.intent,E={intent:h,section:c},x="".concat(f).concat(y({},this.options)),S="POST",v=m(E,u(u({},this.options),{},{requestMethod:S}));return this.requests.queue(x,S,v,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultLoadStarted",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_result_load_start?"),c=l.section,h=l.intentResultId,E=l.intent,x={intent_result_id:h,intent:E,section:c},S="".concat(f).concat(y({},this.options)),v="POST",g=m(x,u(u({},this.options),{},{requestMethod:v}));return this.requests.queue(S,v,g,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultLoadFinished",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_result_load_finish?"),c=l.section,h=l.searchResultCount,E=l.intentResultId,x=l.intent,S={intent_result_id:E,section:c,intent:x,search_result_count:h},v="".concat(f).concat(y({},this.options)),g="POST",I=m(S,u(u({},this.options),{},{requestMethod:g}));return this.requests.queue(v,g,I,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultClick",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_search_result_click?"),c=l.section,h=c===void 0?"Products":c,E=l.variationId,x=l.intentResultId,S=l.searchResultId,v=l.itemId,g=l.itemName,I=l.intent,C={section:h,variation_id:E,intent_result_id:x,search_result_id:S,item_id:v,item_name:g,intent:I},O="".concat(f).concat(y({},this.options)),N="POST",P=m(C,u(u({},this.options),{},{requestMethod:N}));return this.requests.queue(O,N,P,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantResultView",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_search_result_view?"),c=l.section,h=c===void 0?"Products":c,E=l.items,x=l.numResultsViewed,S=l.intentResultId,v=l.searchResultId,g=l.intent,I={section:h,intent_result_id:S,search_result_id:v,num_results_viewed:x,items:E&&Array.isArray(E)&&E.slice(0,100).map(function(P){return a.toSnakeCaseKeys(P,!1)}),intent:g},C="".concat(f).concat(y({},this.options)),O="POST",N=m(I,u(u({},this.options),{},{requestMethod:O}));return this.requests.queue(C,O,N,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters are required of type object")}},{key:"trackAssistantSearchSubmit",value:function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l&&(0,t.default)(l)==="object"&&!Array.isArray(l)){var f="".concat(this.options.serviceUrl,"/v2/behavioral_action/assistant_search_submit?"),c=l.section,h=l.intent,E=l.searchTerm,x=l.searchResultId,S=l.intentResultId,v={intent:h,section:c,search_term:E,search_result_id:x,intent_result_id:S},g="".concat(f).concat(y({},this.options)),I="POST",C=m(v,u(u({},this.options),{},{requestMethod:I}));return this.requests.queue(g,I,C,p),this.requests.send(),!0}return this.requests.send(),new Error("parameters is a required parameter of type object")}},{key:"on",value:function(l,p){return l!=="success"&&l!=="error"?new Error('messageType must be a string of value "success" or "error"'):!p||typeof p!="function"?new Error("callback is required and must be a function"):(this.eventemitter.on(l,p),!0)}}]),_}();return k.RequestQueue=d,xu=k,xu}var Iu={},Ec;function hg(){return Ec||(Ec=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t="2.51.0";e.default=t}(Iu)),Iu}var Ru={exports:{}},Tu={exports:{}},Nu={exports:{}},Cc;function tp(){return Cc||(Cc=1,function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Nu)),Nu.exports}var xc;function vg(){return xc||(xc=1,function(e){var t=tp();function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Tu)),Tu.exports}var Ou={exports:{}},Ic;function gg(){return Ic||(Ic=1,function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ou)),Ou.exports}var Au={exports:{}},Rc;function mg(){return Rc||(Rc=1,function(e){var t=tp();function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(r,i)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Au)),Au.exports}var Pu={exports:{}},Tc;function yg(){return Tc||(Tc=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Pu)),Pu.exports}var Nc;function wg(){return Nc||(Nc=1,function(e){var t=vg(),n=gg(),r=mg(),i=yg();function o(u){return t(u)||n(u)||r(u)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(Ru)),Ru.exports}var Du,Oc;function _g(){if(Oc)return Du;Oc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(wg()),i=e($n()),o=Jn(),u=rt();function s(d,m,y,k){var _=y.apiKey,w=y.clientId,l=y.sessionId,p=y.segments,f=y.userId,c=y.version,h=y.quizzesServiceUrl,E={c},x="";if(E.key=_,E.i=w,E.s=l,p&&p.length&&(E.us=p),f&&(E.ui=String(f)),!d||typeof d!="string")throw new Error("quizId is a required parameter of type string");if(k==="results"&&((0,i.default)(m.answers)!=="object"||!Array.isArray(m.answers)||m.answers.length===0))throw new Error("answers is a required parameter of type array");if(m){var S=m.section,v=m.answers,g=m.quizSessionId,I=m.quizVersionId,C=m.page,O=m.resultsPerPage,N=m.filters,P=m.fmtOptions,q=m.hiddenFields;S&&(E.section=S),I&&(E.quiz_version_id=I),g&&(E.quiz_session_id=g),v&&v.length&&(x="&".concat(u.stringify({a:v.map(function(j){return(0,r.default)(j).join(",")})}))),u.isNil(C)||(E.page=C),u.isNil(O)||(E.num_results_per_page=O),N&&(E.filters=N),P&&(E.fmt_options=P),q&&(E.fmt_options?E.fmt_options.hidden_fields=q:E.fmt_options={hidden_fields:q})}E._dt=Date.now(),E=u.cleanParams(E);var F=u.stringify(E);return"".concat(h,"/v1/quizzes/").concat(encodeURIComponent(d),"/").concat(encodeURIComponent(k),"/?").concat(F).concat(x)}var a=function(){function d(m){(0,t.default)(this,d),this.options=m||{},this.eventDispatcher=new o(m.eventDispatcher)}return(0,n.default)(d,[{key:"getQuizNextQuestion",value:function(y,k){var _=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,p=this.options.fetch,f=new AbortController,c=f.signal;try{l=s(y,k,this.options,"next")}catch(h){return Promise.reject(h)}return u.applyNetworkTimeout(this.options,w,f),p(l,{signal:c}).then(u.convertResponseToJson).then(function(h){if(h.quiz_version_id)return _.eventDispatcher.queue("quizzes.getQuizNextQuestion.completed",h),h;throw new Error("getQuizNextQuestion response data is malformed")})}},{key:"getQuizResults",value:function(y,k){var _=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,p=this.options.fetch,f=new AbortController,c=f.signal;try{l=s(y,k,this.options,"results")}catch(h){return Promise.reject(h)}return u.applyNetworkTimeout(this.options,w,f),p(l,{signal:c}).then(u.convertResponseToJson).then(function(h){if(h.quiz_version_id)return _.eventDispatcher.queue("quizzes.getQuizResults.completed",h),h;throw new Error("getQuizResults response data is malformed")})}},{key:"getQuizResultsConfig",value:function(y,k){var _=this,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,p=this.options.fetch,f=new AbortController,c=f.signal;try{l=s(y,k,this.options,"results_config")}catch(h){return Promise.reject(h)}return u.applyNetworkTimeout(this.options,w,f),p(l,{signal:c}).then(u.convertResponseToJson).then(function(h){if(h.quiz_version_id)return _.eventDispatcher.queue("quizzes.getQuizResultsConfig.completed",h),h;throw new Error("getQuizResultsConfig response data is malformed")})}}]),d}();return Du=a,Du}var ar={exports:{}},Ac;function Sg(){if(Ac)return ar.exports;Ac=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(Tl()),i=rt(),o=i.cleanParams,u=i.trimNonBreakingSpaces,s=i.encodeURIComponentRFC3986,a=i.stringify;function d(k,_,w){var l=w.apiKey,p=w.version,f=w.sessionId,c=w.clientId,h=w.userId,E=w.segments,x=w.testCells,S=w.assistantServiceUrl,v={c:p};if(v.key=l,v.i=c,v.s=f,!k||typeof k!="string")throw new Error("intent is a required parameter of type string");if(!_.domain||typeof _.domain!="string")throw new Error("parameters.domain is a required parameter of type string");if(x&&Object.keys(x).forEach(function(N){v["ef-".concat(N)]=x[N]}),E&&E.length&&(v.us=E),h&&(v.ui=String(h)),_){var g=_.domain,I=_.numResultsPerPage;g&&(v.domain=g),I&&(v.num_results_per_page=I)}v._dt=Date.now(),v=o(v);var C=a(v),O=k.replace(/^\//,"|");return"".concat(S,"/v1/intent/").concat(s(u(O)),"?").concat(C)}function m(k,_,w){var l=function(f){k.addEventListener(f,function(c){var h=JSON.parse(c.data);_.enqueue({type:f,data:h})})};Object.values(w).forEach(function(p){p!==w.END&&l(p)}),k.addEventListener(w.END,function(){_.close(),k.close()}),k.onerror=function(p){_.error(p),k.close()}}var y=function(){function k(_){(0,t.default)(this,k),this.options=_||{}}return(0,n.default)(k,[{key:"getAssistantResultsStream",value:function(w,l){var p,f;try{var c=d(w,l,this.options);p=new EventSource(c),f=new ReadableStream({start:function(S){m(p,S,k.EventTypes)},cancel:function(){p.close()}})}catch(x){if(f){var h;(h=f)===null||h===void 0||h.cancel()}else{var E;(E=p)===null||E===void 0||E.close()}throw new Error(x.message)}return f}}]),k}();return(0,r.default)(y,"EventTypes",{START:"start",GROUP:"group",SEARCH_RESULT:"search_result",ARTICLE_REFERENCE:"article_reference",RECIPE_INFO:"recipe_info",RECIPE_INSTRUCTIONS:"recipe_instructions",SERVER_ERROR:"server_error",IMAGE_META:"image_meta",END:"end"}),ar.exports=y,ar.exports.createAssistantUrl=d,ar.exports.setupEventListeners=m,ar.exports}var np=Qe,kg=np(ft()),Eg=np(dt()),Cg=ng(),xg=rg(),Ig=og(),Rg=ug(),Tg=sg(),Ng=lg(),rp=pg(),Og=Jn(),po=rt(),Ag=hg(),Pg=Ag.default,Dg=_g(),Lg=Sg(),Mg=function(){var t="ciojs-client-",n=[];return po.canUseDOM()||n.push("domless"),typeof process<"u"&&typeof process.env<"u"&&{}.BUNDLED&&n.push("bundled"),"".concat(t).concat(n.join("-")).concat(n.length?"-":"").concat(Pg)},Nl=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,kg.default)(this,e);var n=t.apiKey,r=t.version,i=t.serviceUrl,o=t.quizzesServiceUrl,u=t.assistantServiceUrl,s=t.segments,a=t.testCells,d=t.clientId,m=t.sessionId,y=t.userId,k=t.fetch,_=t.trackingSendDelay,w=t.sendReferrerWithTrackingEvents,l=t.sendTrackingEvents,p=t.eventDispatcher,f=t.idOptions,c=t.beaconMode,h=t.networkParameters;if(!n||typeof n!="string")throw new Error("API key is a required parameter of type string");var E,x,S=typeof vr<"u"&&vr.CLIENT_VERSION;if(po.canUseDOM()){var v=new Cg(f||{});E=v.session_id,x=v.client_id}else{if(!m||typeof m!="number")throw new Error("sessionId is a required user parameter of type number");if(!d||typeof d!="string")throw new Error("clientId is a required user parameter of type string")}var g=i&&i.replace(/\/$/,"");this.options={apiKey:n,version:r||S||Mg(),serviceUrl:po.addHTTPSToString(g)||"https://ac.cnstrc.com",quizzesServiceUrl:o&&o.replace(/\/$/,"")||"https://quizzes.cnstrc.com",assistantServiceUrl:u&&u.replace(/\/$/,"")||"https://assistant.cnstrc.com",sessionId:m||E,clientId:d||x,userId:y,segments:s,testCells:a,fetch:k||xg({Promise}).fetch,trackingSendDelay:_,sendTrackingEvents:l,sendReferrerWithTrackingEvents:w,eventDispatcher:p,beaconMode:c!==!1,networkParameters:h||{}},this.search=new Ig(this.options),this.browse=new Rg(this.options),this.autocomplete=new Tg(this.options),this.recommendations=new Ng(this.options),this.tracker=new rp(this.options),this.quizzes=new Dg(this.options),this.assistant=new Lg(this.options),new Og(t.eventDispatcher).queue("instantiated",this.options)}return(0,Eg.default)(e,[{key:"setClientOptions",value:function(n){if(Object.keys(n).length){var r=n.apiKey,i=n.segments,o=n.testCells,u=n.userId;r&&(this.options.apiKey=r),i&&(this.options.segments=i),o&&(this.options.testCells=o),u&&(this.options.userId=u)}}}]),e}();Nl.Tracker=rp;po.canUseDOM()&&(window.ConstructorioClient=Nl);var zg=Nl;const qg=Ps(zg),St={SEARCH_SUBMIT:"SEARCH_SUBMIT",RECENT_ACTIONS_STORAGE_KEY:{scope:"session",key:"_constructorio_recent_actions"},RECENT_SEARCHES_STORAGE_KEY:{scope:"local",key:"_constructorio_recent_searches"},SEARCH_TERM_STORAGE_KEY:{scope:"session",key:"_constructorio_search_term"},RECENT_SEARCHES_STORAGE_COUNT:100,RECENT_ACTION_STORAGE_COUNT:5},Ol=e=>e==="local"?localStorage:sessionStorage,Al=(e,t)=>{try{return Ol(e.scope).setItem(e.key,t)}catch(n){return Ao(`storageSetItem error: ${n}`),null}},Fg=e=>{try{return Ol(e.scope).removeItem(e.key)}catch(t){return Ao(`storageRemoveItem error: ${t}`),null}},Ug=e=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,[...t.body.querySelectorAll("script, img")].forEach(o=>{t.body.removeChild(o)}),[...t.body.childNodes].map(o=>o.innerText||o.textContent).join("")},Bg=e=>{try{return Ol(e.scope).getItem(e.key)}catch(t){return Ao(`storageGetItem error: ${t}`),null}},ip=e=>{const t=Bg(e);if(t)try{return JSON.parse(t)}catch(n){Ao(`storageGetArray error: ${n}`)}return null},jg=()=>{const e=ip(St.RECENT_SEARCHES_STORAGE_KEY)||[];return e.forEach((t,n)=>{typeof t=="string"&&(e[n]={term:t,ts:Date.now()})}),e},bg=(e,t)=>{const n=Ug(e.trim());let r=jg();if(n.length>0){for(r=r.filter(i=>{var o;return((o=i.term)==null?void 0:o.toUpperCase())!==n.toUpperCase()}),t!=null&&t.original_section&&(t.section=t.original_section,delete t.original_section,delete t.is_meta_section),r.push({term:n,ts:Date.now(),data:t});r.length>St.RECENT_SEARCHES_STORAGE_COUNT;)r.shift();Al(St.RECENT_SEARCHES_STORAGE_KEY,JSON.stringify(r))}},op=()=>ip(St.RECENT_ACTIONS_STORAGE_KEY)||[],Hg=()=>{var t;const e=op();return e&&e.length?(t=e[e.length-1])==null?void 0:t.action:null},Vg=e=>{let t=op();e&&(Hg()!==e&&t.push({action:e,ts:Date.now()}),t.length>St.RECENT_ACTION_STORAGE_COUNT&&(t=t.slice(-1*St.RECENT_ACTION_STORAGE_COUNT)),Al(St.RECENT_ACTIONS_STORAGE_KEY,JSON.stringify(t)))};function Kg(e){return e.section==="Products"}function Wg(e){return e.section==="Search Suggestions"}function up(e){return e.groupName!==void 0}function Pc(e){return e.type==="custom"}function sp(e){return e.type==="autocomplete"||!e.type}function Yn(e){return e.type==="recommendations"}const Gg="1.23.21";function lp(e){var i,o;let t=!1,n=!1,r=!0;if(((i=e==null?void 0:e.features)==null?void 0:i.custom_autosuggest_ui)===!0)switch((o=e==null?void 0:e.feature_variants)==null?void 0:o.custom_autosuggest_ui){case"custom_autosuggest_ui_result_count":n=!0;break;case"custom_autosuggest_ui_image":t=!0;break;case"custom_autosuggest_ui_image_result_count":t=!0,n=!0;break;case"custom_autosuggest_ui_disable_recommendations_in_zero_state":r=!1;break}return{featureDisplaySearchSuggestionImages:t,featureDisplaySearchSuggestionResultCounts:n,featureDisplayZeroStateRecommendations:r}}const Qg=({item:e,items:t})=>{var i;const n=t.findIndex(o=>(o==null?void 0:o.id)===(e==null?void 0:e.id));return{sectionId:(i=t[n])==null?void 0:i.section,index:n}},$g=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b([A-Z]+)([A-Z])([a-z])/,"$1 $2$3").replace(/([a-zA-Z])/,t=>t.toUpperCase()),Ns=e=>e.replace(/([A-Z])([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Jg=(e,t)=>{if(e&&typeof window<"u"){const n=new qg({apiKey:e,sendTrackingEvents:!0,version:`cio-ui-autocomplete-${Gg}`,...t});return n.tracker.on("error",r=>console.error(r)),n}return null},Yg=(e,t,n)=>{const r=[],i=o=>{const{type:u}=o;let s;switch(u){case"recommendations":s=t[o.podId];break;case"custom":s=o.data.map(a=>{var d;return{...a,id:(a==null?void 0:a.id)||((d=a==null?void 0:a.data)==null?void 0:d.id)}});break;default:s=t[o.indexSectionName]}return s};return e==null||e.forEach((o,u)=>{const s=i(o);if(Array.isArray(s)){const a={...o,data:s},d=o.ref,m=n.current[u];a.ref=d||m,r.push(a)}}),r},Xg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zg=(e,t,n)=>{if(e.dataset.cnstrcRecommendationsPodId){const r=t.find(o=>Yn(o)&&o.podId===e.dataset.cnstrcRecommendationsPodId),i=r==null?void 0:r.data.map(o=>{var u,s;return{itemId:(u=o.data)==null?void 0:u.id,itemName:o.value,variationId:(s=o.data)==null?void 0:s.variation_id}});n==null||n.tracker.trackRecommendationView({podId:e.dataset.cnstrcRecommendationsPodId,numResultsViewed:(i==null?void 0:i.length)||0,url:window.location.href,section:e.dataset.cnstrcSection,items:i})}},em=e=>{const t=[];return e==null||e.forEach(n=>{n!=null&&n.data&&t.push(...n.data)}),t},ap=(e,t)=>{const n={in:"in","show all results":"show all results"};return t?t[e]:n[e]||e},Os=(e,t,n={})=>{e==null||e.tracker.trackSearchSubmit(t,n),Al(St.SEARCH_TERM_STORAGE_KEY,t),bg(t,{}),Vg(St.SEARCH_SUBMIT)},tm=(e,t,n={})=>{e==null||e.tracker.trackAutocompleteSelect(t,n),(n==null?void 0:n.section)==="Products"&&Fg(St.SEARCH_TERM_STORAGE_KEY)},Ao=e=>{var t;try{typeof process<"u"&&((t=process==null?void 0:process.env)!=null&&t.LOGGER)&&console.log(e)}catch{}},nm=({apiKey:e,cioJsClient:t,cioJsClientOptions:n})=>(!e&&!t&&console.error("Either apiKey or cioJsClient is required"),B.useMemo(()=>t||Jg(e,n),[e,t,n]));function hr(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}var cp={exports:{}},rm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",im=rm,om=im;function fp(){}function dp(){}dp.resetWarningCache=fp;var um=function(){function e(r,i,o,u,s,a){if(a!==om){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dp,resetWarningCache:fp};return n.PropTypes=n,n};cp.exports=um();var sm=cp.exports;const U=Ps(sm);var se={};/** @license React v17.0.2
36
36
  * react-is.production.min.js
37
37
  *
38
38
  * Copyright (c) Facebook, Inc. and its affiliates.
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Ao=60103,Po=60106,Jr=60107,Yr=60108,Xr=60114,Zr=60109,ei=60110,ti=60112,ni=60113,Al=60120,ri=60115,ii=60116,hp=60121,vp=60122,gp=60117,mp=60129,yp=60131;if(typeof Symbol=="function"&&Symbol.for){var Ce=Symbol.for;Ao=Ce("react.element"),Po=Ce("react.portal"),Jr=Ce("react.fragment"),Yr=Ce("react.strict_mode"),Xr=Ce("react.profiler"),Zr=Ce("react.provider"),ei=Ce("react.context"),ti=Ce("react.forward_ref"),ni=Ce("react.suspense"),Al=Ce("react.suspense_list"),ri=Ce("react.memo"),ii=Ce("react.lazy"),hp=Ce("react.block"),vp=Ce("react.server.block"),gp=Ce("react.fundamental"),mp=Ce("react.debug_trace_mode"),yp=Ce("react.legacy_hidden")}function pt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ao:switch(e=e.type,e){case Jr:case Xr:case Yr:case ni:case Al:return e;default:switch(e=e&&e.$$typeof,e){case ei:case ti:case ii:case ri:case Zr:return e;default:return t}}case Po:return t}}}var um=Zr,sm=Ao,lm=ti,am=Jr,cm=ii,fm=ri,dm=Po,pm=Xr,hm=Yr,vm=ni;se.ContextConsumer=ei;se.ContextProvider=um;se.Element=sm;se.ForwardRef=lm;se.Fragment=am;se.Lazy=cm;se.Memo=fm;se.Portal=dm;se.Profiler=pm;se.StrictMode=hm;se.Suspense=vm;se.isAsyncMode=function(){return!1};se.isConcurrentMode=function(){return!1};se.isContextConsumer=function(e){return pt(e)===ei};se.isContextProvider=function(e){return pt(e)===Zr};se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ao};se.isForwardRef=function(e){return pt(e)===ti};se.isFragment=function(e){return pt(e)===Jr};se.isLazy=function(e){return pt(e)===ii};se.isMemo=function(e){return pt(e)===ri};se.isPortal=function(e){return pt(e)===Po};se.isProfiler=function(e){return pt(e)===Xr};se.isStrictMode=function(e){return pt(e)===Yr};se.isSuspense=function(e){return pt(e)===ni};se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jr||e===Xr||e===mp||e===Yr||e===ni||e===Al||e===yp||typeof e=="object"&&e!==null&&(e.$$typeof===ii||e.$$typeof===ri||e.$$typeof===Zr||e.$$typeof===ei||e.$$typeof===ti||e.$$typeof===gp||e.$$typeof===hp||e[0]===vp)};se.typeOf=pt;let Dc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Lc=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Du=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Lc(n.overflowY,t)||Lc(n.overflowX,t)||(r=>{let i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},xi=(e,t,n,r,i,o,u,s)=>o<e&&u>t||o>e&&u<t?0:o<=e&&s<=n||u>=t&&s>=n?o-e-r:u>t&&s<n||o<e&&s>n?u-t+i:0,gm=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var mm=(e,t)=>{var n,r,i,o,u,s;if(typeof document>"u")return[];let{scrollMode:l,block:p,inline:m,boundary:y,skipOverflowHiddenElements:k}=t,S=typeof y=="function"?y:z=>z!==y;if(!Dc(e))throw new TypeError("Invalid target");let w=document.scrollingElement||document.documentElement,a=[],d=e;for(;Dc(d)&&S(d);){if(d=gm(d),d===w){a.push(d);break}d!=null&&d===document.body&&Du(d)&&!Du(document.documentElement)||d!=null&&Du(d,k)&&a.push(d)}let c=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,f=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,h=(u=window.scrollX)!=null?u:pageXOffset,E=(s=window.scrollY)!=null?s:pageYOffset,{height:I,width:_,top:v,right:g,bottom:x,left:C}=e.getBoundingClientRect(),O=p==="start"||p==="nearest"?v:p==="end"?x:v+I/2,N=m==="center"?C+_/2:m==="end"?g:C,D=[];for(let z=0;z<a.length;z++){let F=a[z],{height:j,width:T,top:R,right:P,bottom:A,left:L}=F.getBoundingClientRect();if(l==="if-needed"&&v>=0&&C>=0&&x<=f&&g<=c&&v>=R&&x<=A&&C>=L&&g<=P)return D;let M=getComputedStyle(F),G=parseInt(M.borderLeftWidth,10),J=parseInt(M.borderTopWidth,10),V=parseInt(M.borderRightWidth,10),Y=parseInt(M.borderBottomWidth,10),b=0,H=0,W="offsetWidth"in F?F.offsetWidth-F.clientWidth-G-V:0,$="offsetHeight"in F?F.offsetHeight-F.clientHeight-J-Y:0,X="offsetWidth"in F?F.offsetWidth===0?0:T/F.offsetWidth:0,re="offsetHeight"in F?F.offsetHeight===0?0:j/F.offsetHeight:0;if(w===F)b=p==="start"?O:p==="end"?O-f:p==="nearest"?xi(E,E+f,f,J,Y,E+O,E+O+I,I):O-f/2,H=m==="start"?N:m==="center"?N-c/2:m==="end"?N-c:xi(h,h+c,c,G,V,h+N,h+N+_,_),b=Math.max(0,b+E),H=Math.max(0,H+h);else{b=p==="start"?O-R-J:p==="end"?O-A+Y+$:p==="nearest"?xi(R,A,j,J,Y+$,O,O+I,I):O-(R+j/2)+$/2,H=m==="start"?N-L-G:m==="center"?N-(L+T/2)+W/2:m==="end"?N-P+V+W:xi(L,P,T,G,V+W,N,N+_,_);let{scrollLeft:ee,scrollTop:ie}=F;b=Math.max(0,Math.min(ie+b/re,F.scrollHeight-j/re+$)),H=Math.max(0,Math.min(ee+H/X,F.scrollWidth-T/X+W)),O+=ie-b,N+=ee-H}D.push({el:F,top:b,left:H})}return D},ho=function(){return ho=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ho.apply(this,arguments)};var ym=0;function Pl(){}function wm(e,t){if(e){var n=mm(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(r){var i=r.el,o=r.top,u=r.left;i.scrollTop=o,i.scrollLeft=u})}}function Mc(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function wp(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var o=arguments.length,u=new Array(o),s=0;s<o;s++)u[s]=arguments[s];r(),n=setTimeout(function(){n=null,e.apply(void 0,u)},t)}return i.cancel=r,i}function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];return t.some(function(s){return s&&s.apply(void 0,[r].concat(o)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function Ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function _m(){return String(ym++)}function Sm(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Os(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=_p(t,r)?t[r]:e[r],n},{})}function _p(e,t){return e[t]!==void 0}function km(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function Ri(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var o=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:o+1);var u=t+e;u<0?u=i?o:0:u>o&&(u=i?0:o);var s=Vr(e,u,n,r,i);return s===-1?t>=n?-1:t:s}function Vr(e,t,n,r,i){var o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(var u=t+1;u<n;u++)if(!r(u).hasAttribute("disabled"))return u}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Vr(1,0,n,r,!1):Vr(-1,n-1,n,r,!1):-1}function qc(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(Mc(i,e,n)||r&&Mc(i,n.document.activeElement,n))})}var Em=wp(function(e){Sp(e).textContent=""},500);function Cm(e,t){var n=Sp(t);e&&(n.textContent=e,Em(t))}function Sp(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var xm=["isInitialMount","highlightedIndex","items","environment"],kp={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Im(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach(function(u){Rm(u,e,t,n),n[u]!==t[u]&&(o[u]=n[u])}),r.onStateChange&&Object.keys(o).length&&r.onStateChange(ce({type:i},o))}function Rm(e,t,n,r){var i=t.props,o=t.type,u="on"+Dl(e)+"Change";i[u]&&r[e]!==void 0&&r[e]!==n[e]&&i[u](ce({type:o},r))}function Tm(e,t){return t.changes}function Nm(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var Om=wp(function(e,t){Cm(e(),t)},200),Am=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?B.useLayoutEffect:B.useEffect;function Pm(e){var t=e.id,n=t===void 0?"downshift-"+_m():t,r=e.labelId,i=e.menuId,o=e.getItemId,u=e.toggleButtonId,s=e.inputId,l=B.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||function(p){return n+"-item-"+p},toggleButtonId:u||n+"-toggle-button",inputId:s||n+"-input"});return l.current}function Dm(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function Lm(e){return e?String(e):""}function Dl(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Ep(e){var t=B.useRef(e);return t.current=e,t}function Mm(e,t,n){var r=B.useRef(),i=B.useRef(),o=B.useCallback(function(k,S){i.current=S,k=Os(k,S.props);var w=e(k,S),a=S.props.stateReducer(k,ce({},S,{changes:w}));return a},[e]),u=B.useReducer(o,t),s=u[0],l=u[1],p=Ep(n),m=B.useCallback(function(k){return l(ce({props:p.current},k))},[p]),y=i.current;return B.useEffect(function(){y&&r.current&&r.current!==s&&Im(y,Os(r.current,y.props),s),r.current=s},[s,n,y]),[s,m]}var xr={itemToString:Lm,stateReducer:Tm,getA11ySelectionMessage:Nm,scrollIntoView:wm,environment:typeof window>"u"?{}:window};function Je(e,t,n){n===void 0&&(n=kp);var r=e["default"+Dl(t)];return r!==void 0?r:n[t]}function Ti(e,t,n){n===void 0&&(n=kp);var r=e[t];if(r!==void 0)return r;var i=e["initial"+Dl(t)];return i!==void 0?i:Je(e,t,n)}function qm(e){var t=Ti(e,"selectedItem"),n=Ti(e,"isOpen"),r=Ti(e,"highlightedIndex"),i=Ti(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Ir(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,u=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:o!==void 0?o:u?r.indexOf(u):n===0?-1:n<0?r.length-1:0}function zm(e,t,n,r){var i=B.useRef({isMouseDown:!1,isTouchMove:!1});return B.useEffect(function(){var o=function(){i.current.isMouseDown=!0},u=function(y){i.current.isMouseDown=!1,e&&!qc(y.target,t.map(function(k){return k.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},p=function(y){e&&!i.current.isTouchMove&&!qc(y.target,t.map(function(k){return k.current}),n,!1)&&r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",u),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",p),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",u),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",p)}},[e,n]),i}var Fm=function(){return Pl};function zc(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,o=n.items,u=n.environment,s=hr(n,xm);B.useEffect(function(){r||Om(function(){return e(ce({highlightedIndex:i,highlightedItem:o[i],resultCount:o.length},s))},u.document)},t)}function Um(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,u=e.scrollIntoView,s=B.useRef(!0);return Am(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:u(i(t),o))},[t]),s}var Bm=Pl;function jm(e,t,n){var r=t.type,i=t.props,o;switch(r){case n.ItemMouseMove:o={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:o={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ir(i,e,0)};break;case n.FunctionOpenMenu:o={isOpen:!0,highlightedIndex:Ir(i,e,0)};break;case n.FunctionCloseMenu:o={isOpen:!1};break;case n.FunctionSetHighlightedIndex:o={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:o={inputValue:t.inputValue};break;case n.FunctionReset:o={highlightedIndex:Je(i,"highlightedIndex"),isOpen:Je(i,"isOpen"),selectedItem:Je(i,"selectedItem"),inputValue:Je(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ce({},e,o)}U.array.isRequired,U.func,U.func,U.func,U.number,U.number,U.number,U.bool,U.bool,U.bool,U.any,U.any,U.any,U.string,U.string,U.string,U.func,U.string,U.func,U.func,U.func,U.func,U.func,U.shape({addEventListener:U.func,removeEventListener:U.func,document:U.shape({getElementById:U.func,activeElement:U.any,body:U.any})});function bm(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}ho(ho({},xr),{getA11yStatusMessage:bm});var Ll=0,Ml=1,ql=2,zl=3,Fl=4,Ul=5,Bl=6,jl=7,bl=8,vo=9,Hl=10,Cp=11,xp=12,Vl=13,Ip=14,Rp=15,Tp=16,Np=17,Op=18,Kl=19,Ap=20,Pp=21,Wl=22,Dp=Object.freeze({__proto__:null,InputKeyDownArrowDown:Ll,InputKeyDownArrowUp:Ml,InputKeyDownEscape:ql,InputKeyDownHome:zl,InputKeyDownEnd:Fl,InputKeyDownPageUp:Ul,InputKeyDownPageDown:Bl,InputKeyDownEnter:jl,InputChange:bl,InputBlur:vo,InputFocus:Hl,MenuMouseLeave:Cp,ItemMouseMove:xp,ItemClick:Vl,ToggleButtonClick:Ip,FunctionToggleMenu:Rp,FunctionOpenMenu:Tp,FunctionCloseMenu:Np,FunctionSetHighlightedIndex:Op,FunctionSelectItem:Kl,FunctionSetInputValue:Ap,FunctionReset:Pp,ControlledPropUpdatedSelectedItem:Wl});function Hm(e){var t=qm(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),ce({},t,{inputValue:r})}U.array.isRequired,U.func,U.func,U.func,U.number,U.number,U.number,U.bool,U.bool,U.bool,U.any,U.any,U.any,U.string,U.string,U.string,U.string,U.string,U.string,U.func,U.string,U.string,U.func,U.func,U.func,U.func,U.func,U.func,U.shape({addEventListener:U.func,removeEventListener:U.func,document:U.shape({getElementById:U.func,activeElement:U.any,body:U.any})});function Vm(e,t,n){var r=B.useRef(),i=Mm(e,t,n),o=i[0],u=i[1];return B.useEffect(function(){_p(n,"selectedItem")&&(r.current!==n.selectedItem&&u({type:Wl,inputValue:n.itemToString(n.selectedItem)}),r.current=o.selectedItem===r.current?n.selectedItem:o.selectedItem)}),[Os(o,n),u]}var Km=Pl,Wm=ce({},xr,{getA11yStatusMessage:Sm});function Gm(e,t){var n=t.type,r=t.props,i=t.altKey,o;switch(n){case Vl:o={isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex"),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case Ll:e.isOpen?o={highlightedIndex:Ri(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:i&&e.selectedItem==null?-1:Ir(r,e,1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case Ml:e.isOpen?i?o=ce({isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])}):o={highlightedIndex:Ri(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Ir(r,e,-1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case jl:o=ce({isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case ql:o=ce({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Ul:o={highlightedIndex:Ri(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case Bl:o={highlightedIndex:Ri(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case zl:o={highlightedIndex:Vr(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case Fl:o={highlightedIndex:Vr(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case vo:o=ce({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case bl:o={isOpen:!0,highlightedIndex:Je(r,"highlightedIndex"),inputValue:t.inputValue};break;case Hl:o={isOpen:!0,highlightedIndex:Ir(r,e,0)};break;case Kl:o={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case Wl:o={inputValue:t.inputValue};break;default:return jm(e,t,Dp)}return ce({},e,o)}var Qm=["onMouseLeave","refKey","ref"],$m=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Jm=["onClick","onPress","refKey","ref"],Ym=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];Lp.stateChangeTypes=Dp;function Lp(e){e===void 0&&(e={}),Km();var t=ce({},Wm,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,o=t.scrollIntoView,u=t.environment,s=t.getA11yStatusMessage,l=t.getA11ySelectionMessage,p=t.itemToString,m=Hm(t),y=Vm(Gm,m,t),k=y[0],S=y[1],w=k.isOpen,a=k.highlightedIndex,d=k.selectedItem,c=k.inputValue,f=B.useRef(null),h=B.useRef({}),E=B.useRef(null),I=B.useRef(null),_=B.useRef(!0),v=Pm(t),g=B.useRef(),x=Ep({state:k,props:t}),C=B.useCallback(function(b){return h.current[v.getItemId(b)]},[v]);zc(s,[w,a,c,i],ce({isInitialMount:_.current,previousResultCount:g.current,items:i,environment:u,itemToString:p},k)),zc(l,[d],ce({isInitialMount:_.current,previousResultCount:g.current,items:i,environment:u,itemToString:p},k));var O=Um({menuElement:f.current,highlightedIndex:a,isOpen:w,itemRefs:h,scrollIntoView:o,getItemNodeFromIndex:C});Bm({isInitialMount:_.current,props:t,state:k}),B.useEffect(function(){var b=n||r||w;b&&E.current&&E.current.focus()},[]),B.useEffect(function(){_.current||(g.current=i.length)});var N=zm(w,[E,f,I],u,function(){S({type:vo,selectItem:!1})}),D=Fm();B.useEffect(function(){return _.current=!1,function(){_.current=!0}},[]),B.useEffect(function(){if(!w)h.current={};else if(document.activeElement!==E.current){var b;E==null||(b=E.current)==null||b.focus()}},[w]);var z=B.useMemo(function(){return{ArrowDown:function(H){H.preventDefault(),S({type:Ll,altKey:H.altKey,getItemNodeFromIndex:C})},ArrowUp:function(H){H.preventDefault(),S({type:Ml,altKey:H.altKey,getItemNodeFromIndex:C})},Home:function(H){x.current.state.isOpen&&(H.preventDefault(),S({type:zl,getItemNodeFromIndex:C}))},End:function(H){x.current.state.isOpen&&(H.preventDefault(),S({type:Fl,getItemNodeFromIndex:C}))},Escape:function(H){var W=x.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&(H.preventDefault(),S({type:ql}))},Enter:function(H){var W=x.current.state;!W.isOpen||H.which===229||(H.preventDefault(),S({type:jl,getItemNodeFromIndex:C}))},PageUp:function(H){x.current.state.isOpen&&(H.preventDefault(),S({type:Ul,getItemNodeFromIndex:C}))},PageDown:function(H){x.current.state.isOpen&&(H.preventDefault(),S({type:Bl,getItemNodeFromIndex:C}))}}},[S,x,C]),F=B.useCallback(function(b){return ce({id:v.labelId,htmlFor:v.inputId},b)},[v]),j=B.useCallback(function(b,H){var W,$=b===void 0?{}:b,X=$.onMouseLeave,re=$.refKey,ee=re===void 0?"ref":re,ie=$.ref,ve=hr($,Qm),ne=H===void 0?{}:H;return ne.suppressRefError,ce((W={},W[ee]=Ii(ie,function(we){f.current=we}),W.id=v.menuId,W.role="listbox",W["aria-labelledby"]=v.labelId,W.onMouseLeave=kt(X,function(){S({type:Cp})}),W),ve)},[S,D,v]),T=B.useCallback(function(b){var H,W,$=b===void 0?{}:b,X=$.item,re=$.index,ee=$.refKey,ie=ee===void 0?"ref":ee,ve=$.ref,ne=$.onMouseMove,we=$.onMouseDown,$e=$.onClick;$.onPress;var ht=$.disabled,mn=hr($,$m),je=x.current,yn=je.props,wn=je.state,St=Dm(re,X,yn.items);if(St<0)throw new Error("Pass either item or item index in getItemProps!");var Zn="onClick",Do=$e,oi=function(){re!==wn.highlightedIndex&&(O.current=!1,S({type:xp,index:re,disabled:ht}))},Lt=function(){S({type:Vl,index:re})},tn=function(er){return er.preventDefault()};return ce((H={},H[ie]=Ii(ve,function(vt){vt&&(h.current[v.getItemId(St)]=vt)}),H.disabled=ht,H.role="option",H["aria-selected"]=""+(St===wn.highlightedIndex),H.id=v.getItemId(St),H),!ht&&(W={},W[Zn]=kt(Do,Lt),W),{onMouseMove:kt(ne,oi),onMouseDown:kt(we,tn)},mn)},[S,x,O,v]),R=B.useCallback(function(b){var H,W=b===void 0?{}:b,$=W.onClick;W.onPress;var X=W.refKey,re=X===void 0?"ref":X,ee=W.ref,ie=hr(W,Jm),ve=x.current.state,ne=function(){S({type:Ip})};return ce((H={},H[re]=Ii(ee,function(we){I.current=we}),H["aria-controls"]=v.menuId,H["aria-expanded"]=ve.isOpen,H.id=v.toggleButtonId,H.tabIndex=-1,H),!ie.disabled&&ce({},{onClick:kt($,ne)}),ie)},[S,x,v]),P=B.useCallback(function(b,H){var W,$=b===void 0?{}:b,X=$.onKeyDown,re=$.onChange,ee=$.onInput,ie=$.onFocus,ve=$.onBlur;$.onChangeText;var ne=$.refKey,we=ne===void 0?"ref":ne,$e=$.ref,ht=hr($,Ym),mn=H===void 0?{}:H;mn.suppressRefError;var je=x.current.state,yn=function(vt){var er=km(vt);er&&z[er]&&z[er](vt)},wn=function(vt){S({type:bl,inputValue:vt.target.value})},St=function(){je.isOpen&&!N.current.isMouseDown&&S({type:vo,selectItem:!0})},Zn=function(){je.isOpen||S({type:Hl})},Do="onChange",oi={};if(!ht.disabled){var Lt;oi=(Lt={},Lt[Do]=kt(re,ee,wn),Lt.onKeyDown=kt(X,yn),Lt.onBlur=kt(ve,St),Lt.onFocus=kt(ie,Zn),Lt)}return ce((W={},W[we]=Ii($e,function(tn){E.current=tn}),W["aria-activedescendant"]=je.isOpen&&je.highlightedIndex>-1?v.getItemId(je.highlightedIndex):"",W["aria-autocomplete"]="list",W["aria-controls"]=v.menuId,W["aria-expanded"]=je.isOpen,W["aria-labelledby"]=v.labelId,W.autoComplete="off",W.id=v.inputId,W.role="combobox",W.value=je.inputValue,W),oi,ht)},[S,z,x,N,D,v]),A=B.useCallback(function(){S({type:Rp})},[S]),L=B.useCallback(function(){S({type:Np})},[S]),M=B.useCallback(function(){S({type:Tp})},[S]),G=B.useCallback(function(b){S({type:Op,highlightedIndex:b})},[S]),J=B.useCallback(function(b){S({type:Kl,selectedItem:b})},[S]),V=B.useCallback(function(b){S({type:Ap,inputValue:b})},[S]),Y=B.useCallback(function(){S({type:Pp})},[S]);return{getItemProps:T,getLabelProps:F,getMenuProps:j,getInputProps:P,getToggleButtonProps:R,toggleMenu:A,openMenu:M,closeMenu:L,setHighlightedIndex:G,setInputValue:V,selectItem:J,reset:Y,highlightedIndex:a,isOpen:w,selectedItem:d,inputValue:c}}function Xm(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}U.array,U.array,U.array,U.func,U.func,U.func,U.number,U.number,U.number,U.func,U.func,U.string,U.string,U.shape({addEventListener:U.func,removeEventListener:U.func,document:U.shape({getElementById:U.func,activeElement:U.any,body:U.any})});xr.itemToString,xr.stateReducer,xr.environment;let Zm=0;const ey=({setQuery:e,items:t,onSubmit:n,cioClient:r,previousQuery:i="",onIsOpenChange:o})=>Lp({id:`cio-autocomplete-${Zm++}`,items:t,itemToString:u=>(u==null?void 0:u.value)||"",onSelectedItemChange({selectedItem:u}){var s;if(u&&u!=null&&u.value){n&&n({item:u,originalQuery:i});try{(u==null?void 0:u.section)==="Search Suggestions"&&(e(u.value||""),Ns(r,u.value,{originalQuery:i})),u.podId&&((s=u.data)!=null&&s.id)&&u.strategy?r==null||r.tracker.trackRecommendationClick({itemName:u.value,itemId:u.data.id,variationId:u.data.variation_id,podId:u.podId,strategyId:u.strategy.id,section:u.section,resultId:u.result_id}):u.result_id&&(r==null||r.tracker.trackAutocompleteSelect(u.value,{originalQuery:i,section:u.section}))}catch(l){console.log(l)}}},onIsOpenChange:o}),ty=e=>{const t=B.useRef();return B.useEffect(()=>{t.current=e},[e]),t.current},ny=(e,t)=>{B.useEffect(()=>{e&&!Array.isArray(e)&&console.error("useCioAutocomplete expects sections to reference an array of section configuration objects"),t&&!Array.isArray(t)&&console.error("useCioAutocomplete expects zeroStateSections to reference an array of section configuration objects")},[e,t])};function ry(e,t,n,r){const i=!e.length&&!!(r!=null&&r.length),[o,u]=B.useState(i?r:t);return{activeSections:B.useMemo(()=>o.map(l=>{const p=l;if(Yn(l)){const m=n==null?void 0:n[l.podId],y=l.displayName,k=m==null?void 0:m.displayName;p.displayName=y||k}return p}),[o,n]),showZeroStateSections:i,setActiveSections:u}}const iy=(e,t=250)=>{const[n,r]=B.useState(e);return B.useEffect(()=>{const i=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(i)}},[e,t]),n},oy=(e,t)=>{const{numTermsWithGroupSuggestions:n,numGroupsSuggestedPerTerm:r}=t,i={};return Object.keys((e==null?void 0:e.sections)||{}).forEach(o=>{i[o]=[],e.sections[o].map(s=>{var l;return{...s,id:(l=s==null?void 0:s.data)==null?void 0:l.id,section:o}}).forEach((s,l)=>{var p,m,y;(p=i[o])==null||p.push(s),o==="Search Suggestions"&&((y=(m=s==null?void 0:s.data)==null?void 0:m.groups)!=null&&y.length)&&l<n&&s.data.groups.forEach((k,S)=>{var w,a;if(S<r){const d={...s,id:`${(w=s.data)==null?void 0:w.id}_${k.group_id}`,groupName:k.display_name,groupId:k.group_id};(a=i[o])==null||a.push(d)}})})}),{sectionsData:i,request:e==null?void 0:e.request,totalNumResultsPerSection:e==null?void 0:e.total_num_results_per_section}},uy=(e,t,n,r)=>{const[i,o]=B.useState({sectionsData:{},request:{},totalNumResultsPerSection:{}}),u=iy(e,r==null?void 0:r.debounce),{numTermsWithGroupSuggestions:s=0,numGroupsSuggestedPerTerm:l=0}=r||{},p=B.useMemo(()=>{const m={...r};return m==null||delete m.debounce,n&&(m.resultsPerSection=n.reduce((y,k)=>({...y,[k.indexSectionName]:(k==null?void 0:k.numResults)||8}),{})),m},[n,r]);return B.useEffect(()=>{(async()=>{const m=u.trim();if(m&&encodeURIComponent(m).length<200)try{const y=await(t==null?void 0:t.autocomplete.getAutocompleteResults(u,p));if(y){const k=oy(y,{numTermsWithGroupSuggestions:s,numGroupsSuggestedPerTerm:l});o(k)}}catch(y){console.log(y)}else u||o({sectionsData:{},request:{},totalNumResultsPerSection:{}})})()},[u,t,s,l,p]),i},sy=(e,t,n=!1)=>{const[r,i]=B.useState({}),[o,u]=B.useState({}),s=async()=>{if(!e||!Array.isArray(t)||t.length===0)return;const l=await Promise.all(t.map(({podId:y,indexSectionName:k,...S})=>e.recommendations.getRecommendations(y,{...S,section:k}))),p={},m={};l.forEach(({response:y,request:k},S)=>{const{pod:w,results:a}=y;w!=null&&w.id&&(p[w.id]=a==null?void 0:a.map(d=>{var c,f;return{...d,id:(c=d==null?void 0:d.data)==null?void 0:c.id,section:(f=t[S])==null?void 0:f.indexSectionName,podId:w.id}}),m[w.id]={displayName:w.display_name,podId:w.id,request:k})});try{i(p),u(m)}catch(y){console.log(y)}};return B.useEffect(()=>{n||s()},[e,t]),{fetchRecommendationResults:s,recommendationsResults:r,podsData:o}};function ly(e,t,n,r){const i=B.useMemo(()=>n==null?void 0:n.filter(k=>lp(k)),[n]),{sectionsData:o,request:u,totalNumResultsPerSection:s}=uy(e,t,i,r),l=B.useMemo(()=>n==null?void 0:n.filter(k=>Yn(k)),[n]),{fetchRecommendationResults:p,recommendationsResults:m,podsData:y}=sy(t,l,r==null?void 0:r.fetchZeroStateOnFocus);return{recommendations:{results:m,fetchRecommendationResults:p,podsData:y},autocomplete:{results:o,request:u,totalNumResultsPerSection:s}}}function ay(e,t,n,r){const[i,o]=B.useState([]);return B.useEffect(()=>{const u=Jg(t,e,n);(u.length||!r)&&o(u)},[t,e,n,r]),i}function cy(e,t,n,r,i){B.useEffect(()=>{var u,s;const o=ap((s=(u=Object.values(t||{}))==null?void 0:u[0])==null?void 0:s.request);r?o.featureDisplayZeroStateRecommendations?n(i):n([]):n(e)},[i,r,e,t,n])}function fy(e,t,n,r,i){const[o,u]=B.useState({}),{activeSections:s,showZeroStateSections:l,setActiveSections:p}=ry(e,n,o,r),m=B.useRef(s.map(()=>B.createRef())),{recommendations:y,autocomplete:k}=ly(e,t,s,i);B.useEffect(()=>{y.podsData||u(y.podsData)},[y.podsData]),cy(n,o,p,l,r);const S=B.useMemo(()=>({...k.results,...y.results}),[k.results,y.results]),w=ay(S,s,m,e);return{fetchRecommendationResults:y.fetchRecommendationResults,activeSections:s,activeSectionsWithData:w,zeroStateActiveSections:l,request:k.request,totalNumResultsPerSection:k.totalNumResultsPerSection}}const Lu=new Set;function dy(e,t,n,r){const i=t.filter(o=>Yn(o)).map(o=>o.ref);B.useEffect(()=>{const o={root:null,threshold:.1},u=new IntersectionObserver(s=>{s.forEach(l=>{l.isIntersecting&&!Lu.has(l.target)&&(r(l.target,t,n),Lu.add(l.target))})},o);return i.forEach(s=>{s!=null&&s.current&&u.observe(s.current)}),()=>{i.forEach(s=>{s!=null&&s.current&&u.unobserve(s.current)})}},[e,t]),B.useEffect(()=>{e||Lu.clear()},[e])}const py=[{indexSectionName:"Search Suggestions",type:"autocomplete"},{indexSectionName:"Products",type:"autocomplete"}],Fc=e=>e.map(t=>{if(Yn(t)){if(t.identifier&&!t.podId)return{...t,podId:t.identifier};if(!t.indexSectionName)return{...t,indexSectionName:"Products"}}return lp(t)&&t.identifier&&!t.indexSectionName?{...t,indexSectionName:t.identifier}:t}),hy=e=>{const t=B.useMemo(()=>e,[JSON.stringify(e)]),{onSubmit:n,onChange:r,openOnFocus:i,apiKey:o,cioJsClient:u,cioJsClientOptions:s,placeholder:l="What can we help you find today?",autocompleteClassName:p="cio-autocomplete",advancedParameters:m,defaultInput:y,getSearchResultsUrl:k,onIsOpenChange:S}=t;let{sections:w=py,zeroStateSections:a}=t;w=B.useMemo(()=>w&&Fc(w),[w]),a=B.useMemo(()=>a&&Fc(a),[a]);const[d,c]=B.useState(y||""),f=ty(d),h=em({apiKey:o,cioJsClient:u,cioJsClientOptions:s}),{fetchRecommendationResults:E,activeSections:I,activeSectionsWithData:_,zeroStateActiveSections:v,request:g,totalNumResultsPerSection:x}=fy(d,h,w,a,m),C=B.useMemo(()=>ap(g),[g]),O=B.useMemo(()=>Zg(_),[_]),{isOpen:N,getMenuProps:D,getLabelProps:z,openMenu:F,closeMenu:j,highlightedIndex:T,getInputProps:R,getItemProps:P}=ey({setQuery:c,items:O,onSubmit:n,cioClient:h,previousQuery:f,onIsOpenChange:S});return ny(w,I),dy(N,_,h,Xg),{query:d,sections:_,totalNumResultsPerSection:x,request:g,featureToggles:C,isOpen:N&&(O==null?void 0:O.length)>0,getMenuProps:()=>({...D(),className:"cio-results","data-testid":"cio-results","data-cnstrc-autosuggest":""}),getLabelProps:z,openMenu:F,closeMenu:j,getItemProps:A=>{var J;const{index:L,sectionId:M}=Gg({item:A,items:O}),G=`cio-item-${M==null?void 0:M.replace(" ","")}`;return{...P({item:A,index:L}),className:`cio-item ${G}`,"data-testid":G,"data-cnstrc-item-section":A.section,"data-cnstrc-item-group":A.groupId,"data-cnstrc-item-name":A.value,"data-cnstrc-item-id":(J=A.data)==null?void 0:J.id}},getInputProps:()=>({...R({onChange:A=>{c(A.target.value),r&&r(A.target.value)}}),value:d,onFocus:()=>{var A;e.onFocus&&e.onFocus(),v&&i!==!1&&C.featureDisplayZeroStateRecommendations&&F(),d!=null&&d.length&&F();try{m!=null&&m.fetchZeroStateOnFocus&&E(),(A=h==null?void 0:h.tracker)==null||A.trackInputFocus()}catch(L){console.log(L)}},className:"cio-input","data-testid":"cio-input","data-cnstrc-search-input":"",placeholder:l,onKeyDownCapture:({code:A,key:L,nativeEvent:M})=>{const G=A==="Enter"||L==="Enter",J=A==="Home"||L==="Home",V=A==="End"||L==="End",Y=T<0;if(N&&G&&Y&&(d!=null&&d.length)){n&&n({query:d});try{Ns(h,d,{originalQuery:d})}catch(b){console.log(b)}}(J||V)&&(M.preventDownshiftDefault=!0)}}),getFormProps:()=>({onSubmit:A=>{A.preventDefault(),n&&n({query:d});try{Ns(h,d,{originalQuery:d})}catch(L){console.log(L)}return{query:d}},className:"cio-form","data-testid":"cio-form","data-cnstrc-search-form":""}),getSectionProps:A=>{var J,V;const L=()=>{const{type:Y}=A;let b;const H=Y!=="custom"&&A.indexSectionName?Ts(A.indexSectionName):"";switch(Y){case"recommendations":b=A.podId;break;case"autocomplete":b=A.displayName||A.indexSectionName;break;case"custom":b=A.displayName;break;default:b=A.displayName||A.indexSectionName;break}return`${b} ${H}`},G={className:`cio-section cio-section-${Pc(A)?"custom":Ts(A.indexSectionName||((J=A.data[0])==null?void 0:J.section)||"Products")} ${L()}`,ref:A.ref,role:"none","data-cnstrc-section":(V=A.data[0])==null?void 0:V.section};return Pc(A)&&(G["data-cnstrc-custom-section"]=!0,G["data-cnstrc-custom-section-name"]=A.displayName),Yn(A)&&(G["data-cnstrc-recommendations"]=!0,G["data-cnstrc-recommendations-pod-id"]=A.podId),G},setQuery:c,cioClient:h,autocompleteClassName:p,selectedItem:O[T],advancedParameters:m,getSearchResultsUrl:k}},Xn=B.createContext({});function Uc(e){const{children:t,...n}=e,r=hy(n);return Q.createElement(Xn.Provider,{value:r},Q.createElement("div",{className:r.autocompleteClassName},t))}function ji({item:e,query:t,highlightSearchTerm:n}){const r=sp(e)?e.groupName:e.value;if(n){const i=new RegExp(`(${Yg(t)})`,"gi"),o=i.test(r);if(t&&o){const u=r.split(i);return Q.createElement(Q.Fragment,null,u.map((s,l)=>i.test(s)?Q.createElement("b",{key:`matched-word-${l}`},s):s))}}return Q.createElement(Q.Fragment,null,r)}function Bc(e){var m,y,k,S;const{item:t,displaySearchTermHighlights:n}=e,{advancedParameters:r,query:i,featureToggles:o}=B.useContext(Xn),{featureDisplaySearchSuggestionImages:u,featureDisplaySearchSuggestionResultCounts:s}=o,{displaySearchSuggestionImages:l=u,displaySearchSuggestionResultCounts:p=s}=r||{};return Q.createElement(Q.Fragment,null,l&&((m=t.data)==null?void 0:m.image_url)&&Q.createElement("img",{src:(y=t.data)==null?void 0:y.image_url,alt:t.value,className:"cio-suggestion-image"}),Q.createElement("p",{className:"cio-suggestion-text"},Q.createElement(ji,{item:t,query:i,highlightSearchTerm:n})),p&&((k=t.data)==null?void 0:k.total_num_results)&&Q.createElement("p",{className:"cio-suggestion-count"},"(",(S=t.data)==null?void 0:S.total_num_results,")"))}function vy(e){var m,y;const{item:t,children:n,displaySearchTermHighlights:r}=e,{getItemProps:i,advancedParameters:o,query:u,getSearchResultsUrl:s}=B.useContext(Xn),{translations:l}=o||{};let p;return Vg(t)?p=Q.createElement("a",{href:(m=t.data)==null?void 0:m.url},Q.createElement("img",{"data-testid":"cio-img",src:(y=t.data)==null?void 0:y.image_url,alt:t.value,className:"cio-product-image"}),Q.createElement("p",{"data-testid":"cio-text",className:"cio-product-text"},Q.createElement(ji,{item:t,query:u,highlightSearchTerm:r}))):sp(t)?p=Q.createElement("p",{className:"cio-term-in-group"},cp("in",l)," ",Q.createElement(ji,{item:t,query:u,highlightSearchTerm:r})):Kg(t)?s?p=Q.createElement("a",{className:"suggestion-link",href:s(t)},Q.createElement(Bc,{item:t,displaySearchTermHighlights:r})):p=Q.createElement(Bc,{item:t,displaySearchTermHighlights:r}):p=Q.createElement("p",{className:"cio-custom-text"},Q.createElement(ji,{item:t,query:u,highlightSearchTerm:r})),Q.createElement("li",{...i(t)},n||p)}const gy=function({section:e}){var k,S;const{getSectionProps:t,query:n,getFormProps:r,advancedParameters:i,getItemProps:o}=B.useContext(Xn),{displayShowAllResultsButton:u,translations:s}=i||{},{onSubmit:l}=r(),{type:p,displayName:m}=e;let y=m;if(!y)switch(p){case"recommendations":y=e.podId;break;case"autocomplete":y=e.indexSectionName;break;case"custom":y=e.displayName;break;default:y=e.indexSectionName;break}return(k=e==null?void 0:e.data)!=null&&k.length?Q.createElement("li",{...t(e)},Q.createElement("h5",{className:"cio-section-name cio-sectionName","aria-hidden":!0},Qg(y)),Q.createElement("ul",{className:"cio-section-items",role:"none"},(S=e==null?void 0:e.data)==null?void 0:S.map(w=>typeof(e==null?void 0:e.renderItem)=="function"?e.renderItem({item:w,query:n,getItemProps:o}):Q.createElement(vy,{item:w,key:w==null?void 0:w.id,displaySearchTermHighlights:e.displaySearchTermHighlights}))),u&&p==="autocomplete"&&e.indexSectionName==="Products"&&Q.createElement("div",{className:"cio-section-footer"},Q.createElement("button",{"data-cnstrc-search-submit-btn":!0,className:"cio-show-all-results-button",type:"button",onClick:l},cp("show all results",s)))):null};function my(e){const{section:t,children:n=gy}=e;return n({section:t})}function yy(e){return Q.createElement("svg",{...e,className:"cio-close",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"122.878px",height:"122.88px",viewBox:"0 0 122.878 122.88",enableBackground:"new 0 0 122.878 122.88",xmlSpace:"preserve"},Q.createElement("g",null,Q.createElement("path",{d:"M1.426,8.313c-1.901-1.901-1.901-4.984,0-6.886c1.901-1.902,4.984-1.902,6.886,0l53.127,53.127l53.127-53.127 c1.901-1.902,4.984-1.902,6.887,0c1.901,1.901,1.901,4.985,0,6.886L68.324,61.439l53.128,53.128c1.901,1.901,1.901,4.984,0,6.886 c-1.902,1.902-4.985,1.902-6.887,0L61.438,68.326L8.312,121.453c-1.901,1.902-4.984,1.902-6.886,0 c-1.901-1.901-1.901-4.984,0-6.886l53.127-53.128L1.426,8.313L1.426,8.313z"})))}const wy=({sections:e})=>e==null?void 0:e.map(t=>{const{type:n}=t;let r=t.displayName;switch(n){case"recommendations":r=t.podId;break;case"custom":r=Ts(t.displayName);break;case"autocomplete":r=t.indexSectionName;break;default:r=t.indexSectionName;break}return Q.createElement(my,{section:t,key:r})});function _y(e){const{children:t=wy}=e,{sections:n,isOpen:r,getMenuProps:i,getItemProps:o,closeMenu:u}=B.useContext(Xn),s=n&&n.some(m=>{var y;return(y=m==null?void 0:m.data)==null?void 0:y.length}),l={...i()};let p;return r&&s?p=Q.createElement(Q.Fragment,null,Q.createElement(yy,{onClick:()=>u()}),typeof t=="function"?t({sections:n,getItemProps:o}):t):(p=null,l.style={display:"none"}),Q.createElement("ul",{...l},p)}function Sy({getFormProps:e,getInputProps:t,getLabelProps:n,setQuery:r}){const i=t();return Q.createElement("form",{...e()},Q.createElement("label",{...n(),htmlFor:"cio-input"},Q.createElement("input",{id:"cio-input",...i})),Q.createElement("button",{className:"cio-clear-btn","data-testid":"cio-clear-btn",hidden:!i.value,onClick:()=>{r(""),i.id&&setTimeout(()=>{var o;return(o=document.getElementById(i.id))==null?void 0:o.focus()},100)},type:"button","aria-label":"Clear search field text"},Q.createElement("div",{className:"cio-icon"},Q.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})))),Q.createElement("button",{className:"cio-submit-btn","data-testid":"cio-submit-btn",disabled:!i.value,"data-cnstrc-search-submit-btn":!0,type:"submit","aria-label":"Submit Search"},Q.createElement("div",{className:"cio-icon"},Q.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("path",{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})))))}function ky(e){const{children:t=Sy}=e,{getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o}=B.useContext(Xn);return t({getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o})}function Ey(e){const{children:t}=e;return t?Q.createElement(Uc,{...e},t):Q.createElement("div",null,Q.createElement(Uc,{...e},Q.createElement(ky,null),Q.createElement(_y,null)))}const Cy=({selector:e,includeCSS:t=!0,...n})=>{if(document){const r=document.getElementById("cio-autocomplete-styles"),i=document.querySelector(e);if(!i){console.error("CioAutocomplete: There were no elements found for the provided selector");return}r&&(t?r.disabled=!1:r.disabled=!0),Mu.createRoot(i).render(Q.createElement(Q.StrictMode,null,Q.createElement(Ey,{...n})))}};window&&(window.CioAutocomplete=Cy);export{Cy as default};
42
+ */var Po=60103,Do=60106,Jr=60107,Yr=60108,Xr=60114,Zr=60109,ei=60110,ti=60112,ni=60113,Pl=60120,ri=60115,ii=60116,pp=60121,hp=60122,vp=60117,gp=60129,mp=60131;if(typeof Symbol=="function"&&Symbol.for){var Ce=Symbol.for;Po=Ce("react.element"),Do=Ce("react.portal"),Jr=Ce("react.fragment"),Yr=Ce("react.strict_mode"),Xr=Ce("react.profiler"),Zr=Ce("react.provider"),ei=Ce("react.context"),ti=Ce("react.forward_ref"),ni=Ce("react.suspense"),Pl=Ce("react.suspense_list"),ri=Ce("react.memo"),ii=Ce("react.lazy"),pp=Ce("react.block"),hp=Ce("react.server.block"),vp=Ce("react.fundamental"),gp=Ce("react.debug_trace_mode"),mp=Ce("react.legacy_hidden")}function pt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Po:switch(e=e.type,e){case Jr:case Xr:case Yr:case ni:case Pl:return e;default:switch(e=e&&e.$$typeof,e){case ei:case ti:case ii:case ri:case Zr:return e;default:return t}}case Do:return t}}}var lm=Zr,am=Po,cm=ti,fm=Jr,dm=ii,pm=ri,hm=Do,vm=Xr,gm=Yr,mm=ni;se.ContextConsumer=ei;se.ContextProvider=lm;se.Element=am;se.ForwardRef=cm;se.Fragment=fm;se.Lazy=dm;se.Memo=pm;se.Portal=hm;se.Profiler=vm;se.StrictMode=gm;se.Suspense=mm;se.isAsyncMode=function(){return!1};se.isConcurrentMode=function(){return!1};se.isContextConsumer=function(e){return pt(e)===ei};se.isContextProvider=function(e){return pt(e)===Zr};se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Po};se.isForwardRef=function(e){return pt(e)===ti};se.isFragment=function(e){return pt(e)===Jr};se.isLazy=function(e){return pt(e)===ii};se.isMemo=function(e){return pt(e)===ri};se.isPortal=function(e){return pt(e)===Do};se.isProfiler=function(e){return pt(e)===Xr};se.isStrictMode=function(e){return pt(e)===Yr};se.isSuspense=function(e){return pt(e)===ni};se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jr||e===Xr||e===gp||e===Yr||e===ni||e===Pl||e===mp||typeof e=="object"&&e!==null&&(e.$$typeof===ii||e.$$typeof===ri||e.$$typeof===Zr||e.$$typeof===ei||e.$$typeof===ti||e.$$typeof===vp||e.$$typeof===pp||e[0]===hp)};se.typeOf=pt;let Dc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Lc=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Lu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Lc(n.overflowY,t)||Lc(n.overflowX,t)||(r=>{let i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},xi=(e,t,n,r,i,o,u,s)=>o<e&&u>t||o>e&&u<t?0:o<=e&&s<=n||u>=t&&s>=n?o-e-r:u>t&&s<n||o<e&&s>n?u-t+i:0,ym=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)};var wm=(e,t)=>{var n,r,i,o,u,s;if(typeof document>"u")return[];let{scrollMode:a,block:d,inline:m,boundary:y,skipOverflowHiddenElements:k}=t,_=typeof y=="function"?y:q=>q!==y;if(!Dc(e))throw new TypeError("Invalid target");let w=document.scrollingElement||document.documentElement,l=[],p=e;for(;Dc(p)&&_(p);){if(p=ym(p),p===w){l.push(p);break}p!=null&&p===document.body&&Lu(p)&&!Lu(document.documentElement)||p!=null&&Lu(p,k)&&l.push(p)}let f=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,c=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,h=(u=window.scrollX)!=null?u:pageXOffset,E=(s=window.scrollY)!=null?s:pageYOffset,{height:x,width:S,top:v,right:g,bottom:I,left:C}=e.getBoundingClientRect(),O=d==="start"||d==="nearest"?v:d==="end"?I:v+x/2,N=m==="center"?C+S/2:m==="end"?g:C,P=[];for(let q=0;q<l.length;q++){let F=l[q],{height:j,width:T,top:R,right:A,bottom:D,left:M}=F.getBoundingClientRect();if(a==="if-needed"&&v>=0&&C>=0&&I<=c&&g<=f&&v>=R&&I<=D&&C>=M&&g<=A)return P;let L=getComputedStyle(F),Q=parseInt(L.borderLeftWidth,10),Y=parseInt(L.borderTopWidth,10),V=parseInt(L.borderRightWidth,10),J=parseInt(L.borderBottomWidth,10),H=0,b=0,W="offsetWidth"in F?F.offsetWidth-F.clientWidth-Q-V:0,$="offsetHeight"in F?F.offsetHeight-F.clientHeight-Y-J:0,X="offsetWidth"in F?F.offsetWidth===0?0:T/F.offsetWidth:0,re="offsetHeight"in F?F.offsetHeight===0?0:j/F.offsetHeight:0;if(w===F)H=d==="start"?O:d==="end"?O-c:d==="nearest"?xi(E,E+c,c,Y,J,E+O,E+O+x,x):O-c/2,b=m==="start"?N:m==="center"?N-f/2:m==="end"?N-f:xi(h,h+f,f,Q,V,h+N,h+N+S,S),H=Math.max(0,H+E),b=Math.max(0,b+h);else{H=d==="start"?O-R-Y:d==="end"?O-D+J+$:d==="nearest"?xi(R,D,j,Y,J+$,O,O+x,x):O-(R+j/2)+$/2,b=m==="start"?N-M-Q:m==="center"?N-(M+T/2)+W/2:m==="end"?N-A+V+W:xi(M,A,T,Q,V+W,N,N+S,S);let{scrollLeft:ee,scrollTop:ie}=F;H=Math.max(0,Math.min(ie+H/re,F.scrollHeight-j/re+$)),b=Math.max(0,Math.min(ee+b/X,F.scrollWidth-T/X+W)),O+=ie-H,N+=ee-b}P.push({el:F,top:H,left:b})}return P},ho=function(){return ho=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ho.apply(this,arguments)};var _m=0;function yp(){}function Sm(e,t){if(e){var n=wm(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(r){var i=r.el,o=r.top,u=r.left;i.scrollTop=o,i.scrollLeft=u})}}function Mc(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function wp(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var o=arguments.length,u=new Array(o),s=0;s<o;s++)u[s]=arguments[s];r(),n=setTimeout(function(){n=null,e.apply(void 0,u)},t)}return i.cancel=r,i}function Et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];return t.some(function(s){return s&&s.apply(void 0,[r].concat(o)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function Ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){t.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function km(){return String(_m++)}function Em(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function As(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=_p(t,r)?t[r]:e[r],n},{})}function _p(e,t){return e[t]!==void 0}function Cm(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function Ri(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var o=n-1;(typeof t!="number"||t<0||t>=n)&&(t=e>0?-1:o+1);var u=t+e;u<0?u=i?o:0:u>o&&(u=i?0:o);var s=Vr(e,u,n,r,i);return s===-1?t>=n?-1:t:s}function Vr(e,t,n,r,i){var o=r(t);if(!o||!o.hasAttribute("disabled"))return t;if(e>0){for(var u=t+1;u<n;u++)if(!r(u).hasAttribute("disabled"))return u}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?Vr(1,0,n,r,!1):Vr(-1,n-1,n,r,!1):-1}function zc(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(Mc(i,e,n)||r&&Mc(i,n.document.activeElement,n))})}var xm=wp(function(e){Sp(e).textContent=""},500);function Im(e,t){var n=Sp(t);e&&(n.textContent=e,xm(t))}function Sp(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Rm=["isInitialMount","highlightedIndex","items","environment"],kp={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Tm(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach(function(u){Nm(u,e,t,n),n[u]!==t[u]&&(o[u]=n[u])}),r.onStateChange&&Object.keys(o).length&&r.onStateChange(ce({type:i},o))}function Nm(e,t,n,r){var i=t.props,o=t.type,u="on"+Dl(e)+"Change";i[u]&&r[e]!==void 0&&r[e]!==n[e]&&i[u](ce({type:o},r))}function Om(e,t){return t.changes}function Am(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var Pm=wp(function(e,t){Im(e(),t)},200),Dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?B.useLayoutEffect:B.useEffect;function Lm(e){var t=e.id,n=t===void 0?"downshift-"+km():t,r=e.labelId,i=e.menuId,o=e.getItemId,u=e.toggleButtonId,s=e.inputId,a=B.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:o||function(d){return n+"-item-"+d},toggleButtonId:u||n+"-toggle-button",inputId:s||n+"-input"});return a.current}function Mm(e,t,n){return e!==void 0?e:n.length===0?-1:n.indexOf(t)}function zm(e){return e?String(e):""}function Dl(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Ep(e){var t=B.useRef(e);return t.current=e,t}function qm(e,t,n){var r=B.useRef(),i=B.useRef(),o=B.useCallback(function(k,_){i.current=_,k=As(k,_.props);var w=e(k,_),l=_.props.stateReducer(k,ce({},_,{changes:w}));return l},[e]),u=B.useReducer(o,t),s=u[0],a=u[1],d=Ep(n),m=B.useCallback(function(k){return a(ce({props:d.current},k))},[d]),y=i.current;return B.useEffect(function(){y&&r.current&&r.current!==s&&Tm(y,As(r.current,y.props),s),r.current=s},[s,n,y]),[s,m]}var xr={itemToString:zm,stateReducer:Om,getA11ySelectionMessage:Am,scrollIntoView:Sm,environment:typeof window>"u"?{}:window};function Je(e,t,n){n===void 0&&(n=kp);var r=e["default"+Dl(t)];return r!==void 0?r:n[t]}function Ti(e,t,n){n===void 0&&(n=kp);var r=e[t];if(r!==void 0)return r;var i=e["initial"+Dl(t)];return i!==void 0?i:Je(e,t,n)}function Fm(e){var t=Ti(e,"selectedItem"),n=Ti(e,"isOpen"),r=Ti(e,"highlightedIndex"),i=Ti(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Ir(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,u=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:o!==void 0?o:u?r.indexOf(u):n===0?-1:n<0?r.length-1:0}function Um(e,t,n,r){var i=B.useRef({isMouseDown:!1,isTouchMove:!1});return B.useEffect(function(){var o=function(){i.current.isMouseDown=!0},u=function(y){i.current.isMouseDown=!1,e&&!zc(y.target,t.map(function(k){return k.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},a=function(){i.current.isTouchMove=!0},d=function(y){e&&!i.current.isTouchMove&&!zc(y.target,t.map(function(k){return k.current}),n,!1)&&r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",u),n.addEventListener("touchstart",s),n.addEventListener("touchmove",a),n.addEventListener("touchend",d),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",u),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",a),n.removeEventListener("touchend",d)}},[e,n]),i}var Bm=function(){return yp};function qc(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,o=n.items,u=n.environment,s=hr(n,Rm);B.useEffect(function(){r||Pm(function(){return e(ce({highlightedIndex:i,highlightedItem:o[i],resultCount:o.length},s))},u.document)},t)}function jm(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,u=e.scrollIntoView,s=B.useRef(!0);return Dm(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:u(i(t),o))},[t]),s}var bm=yp;function Hm(e,t,n){var r=t.type,i=t.props,o;switch(r){case n.ItemMouseMove:o={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:o={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ir(i,e,0)};break;case n.FunctionOpenMenu:o={isOpen:!0,highlightedIndex:Ir(i,e,0)};break;case n.FunctionCloseMenu:o={isOpen:!1};break;case n.FunctionSetHighlightedIndex:o={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:o={inputValue:t.inputValue};break;case n.FunctionReset:o={highlightedIndex:Je(i,"highlightedIndex"),isOpen:Je(i,"isOpen"),selectedItem:Je(i,"selectedItem"),inputValue:Je(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ce({},e,o)}U.array.isRequired,U.func,U.func,U.func,U.number,U.number,U.number,U.bool,U.bool,U.bool,U.any,U.any,U.any,U.string,U.string,U.string,U.func,U.string,U.func,U.func,U.func,U.func,U.func,U.shape({addEventListener:U.func,removeEventListener:U.func,document:U.shape({getElementById:U.func,activeElement:U.any,body:U.any})});function Vm(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}ho(ho({},xr),{getA11yStatusMessage:Vm});var Ll=0,Ml=1,zl=2,ql=3,Fl=4,Ul=5,Bl=6,jl=7,bl=8,vo=9,Hl=10,Cp=11,xp=12,Vl=13,Ip=14,Rp=15,Tp=16,Np=17,Op=18,Kl=19,Ap=20,Pp=21,Wl=22,Dp=Object.freeze({__proto__:null,InputKeyDownArrowDown:Ll,InputKeyDownArrowUp:Ml,InputKeyDownEscape:zl,InputKeyDownHome:ql,InputKeyDownEnd:Fl,InputKeyDownPageUp:Ul,InputKeyDownPageDown:Bl,InputKeyDownEnter:jl,InputChange:bl,InputBlur:vo,InputFocus:Hl,MenuMouseLeave:Cp,ItemMouseMove:xp,ItemClick:Vl,ToggleButtonClick:Ip,FunctionToggleMenu:Rp,FunctionOpenMenu:Tp,FunctionCloseMenu:Np,FunctionSetHighlightedIndex:Op,FunctionSelectItem:Kl,FunctionSetInputValue:Ap,FunctionReset:Pp,ControlledPropUpdatedSelectedItem:Wl});function Km(e){var t=Fm(e),n=t.selectedItem,r=t.inputValue;return r===""&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),ce({},t,{inputValue:r})}U.array.isRequired,U.func,U.func,U.func,U.number,U.number,U.number,U.bool,U.bool,U.bool,U.any,U.any,U.any,U.string,U.string,U.string,U.string,U.string,U.string,U.func,U.string,U.string,U.func,U.func,U.func,U.func,U.func,U.func,U.shape({addEventListener:U.func,removeEventListener:U.func,document:U.shape({getElementById:U.func,activeElement:U.any,body:U.any})});function Wm(e,t,n){var r=B.useRef(),i=qm(e,t,n),o=i[0],u=i[1];return B.useEffect(function(){_p(n,"selectedItem")&&(r.current!==n.selectedItem&&u({type:Wl,inputValue:n.itemToString(n.selectedItem)}),r.current=o.selectedItem===r.current?n.selectedItem:o.selectedItem)}),[As(o,n),u]}var Gm=ce({},xr,{getA11yStatusMessage:Em});function Qm(e,t){var n=t.type,r=t.props,i=t.altKey,o;switch(n){case Vl:o={isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex"),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case Ll:e.isOpen?o={highlightedIndex:Ri(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:i&&e.selectedItem==null?-1:Ir(r,e,1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case Ml:e.isOpen?i?o=ce({isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])}):o={highlightedIndex:Ri(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:o={highlightedIndex:Ir(r,e,-1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case jl:o=ce({isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case zl:o=ce({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Ul:o={highlightedIndex:Ri(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case Bl:o={highlightedIndex:Ri(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case ql:o={highlightedIndex:Vr(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case Fl:o={highlightedIndex:Vr(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case vo:o=ce({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case bl:o={isOpen:!0,highlightedIndex:Je(r,"highlightedIndex"),inputValue:t.inputValue};break;case Hl:o={isOpen:!0,highlightedIndex:Ir(r,e,0)};break;case Kl:o={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case Wl:o={inputValue:t.inputValue};break;default:return Hm(e,t,Dp)}return ce({},e,o)}var $m=["onMouseLeave","refKey","ref"],Jm=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],Ym=["onClick","onPress","refKey","ref"],Xm=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];Lp.stateChangeTypes=Dp;function Lp(e){e===void 0&&(e={});var t=ce({},Gm,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,o=t.scrollIntoView,u=t.environment,s=t.getA11yStatusMessage,a=t.getA11ySelectionMessage,d=t.itemToString,m=Km(t),y=Wm(Qm,m,t),k=y[0],_=y[1],w=k.isOpen,l=k.highlightedIndex,p=k.selectedItem,f=k.inputValue,c=B.useRef(null),h=B.useRef({}),E=B.useRef(null),x=B.useRef(null),S=B.useRef(!0),v=Lm(t),g=B.useRef(),I=Ep({state:k,props:t}),C=B.useCallback(function(H){return h.current[v.getItemId(H)]},[v]);qc(s,[w,l,f,i],ce({isInitialMount:S.current,previousResultCount:g.current,items:i,environment:u,itemToString:d},k)),qc(a,[p],ce({isInitialMount:S.current,previousResultCount:g.current,items:i,environment:u,itemToString:d},k));var O=jm({menuElement:c.current,highlightedIndex:l,isOpen:w,itemRefs:h,scrollIntoView:o,getItemNodeFromIndex:C});bm({isInitialMount:S.current,props:t,state:k}),B.useEffect(function(){var H=n||r||w;H&&E.current&&E.current.focus()},[]),B.useEffect(function(){S.current||(g.current=i.length)});var N=Um(w,[E,c,x],u,function(){_({type:vo,selectItem:!1})}),P=Bm();B.useEffect(function(){return S.current=!1,function(){S.current=!0}},[]),B.useEffect(function(){if(!w)h.current={};else if(document.activeElement!==E.current){var H;E==null||(H=E.current)==null||H.focus()}},[w]);var q=B.useMemo(function(){return{ArrowDown:function(b){b.preventDefault(),_({type:Ll,altKey:b.altKey,getItemNodeFromIndex:C})},ArrowUp:function(b){b.preventDefault(),_({type:Ml,altKey:b.altKey,getItemNodeFromIndex:C})},Home:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:ql,getItemNodeFromIndex:C}))},End:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:Fl,getItemNodeFromIndex:C}))},Escape:function(b){var W=I.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&(b.preventDefault(),_({type:zl}))},Enter:function(b){var W=I.current.state;!W.isOpen||b.which===229||(b.preventDefault(),_({type:jl,getItemNodeFromIndex:C}))},PageUp:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:Ul,getItemNodeFromIndex:C}))},PageDown:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:Bl,getItemNodeFromIndex:C}))}}},[_,I,C]),F=B.useCallback(function(H){return ce({id:v.labelId,htmlFor:v.inputId},H)},[v]),j=B.useCallback(function(H,b){var W,$=H===void 0?{}:H,X=$.onMouseLeave,re=$.refKey,ee=re===void 0?"ref":re,ie=$.ref,ve=hr($,$m),ne=b===void 0?{}:b;return ne.suppressRefError,ce((W={},W[ee]=Ii(ie,function(we){c.current=we}),W.id=v.menuId,W.role="listbox",W["aria-labelledby"]=v.labelId,W.onMouseLeave=Et(X,function(){_({type:Cp})}),W),ve)},[_,P,v]),T=B.useCallback(function(H){var b,W,$=H===void 0?{}:H,X=$.item,re=$.index,ee=$.refKey,ie=ee===void 0?"ref":ee,ve=$.ref,ne=$.onMouseMove,we=$.onMouseDown,$e=$.onClick;$.onPress;var ht=$.disabled,mn=hr($,Jm),je=I.current,yn=je.props,wn=je.state,kt=Mm(re,X,yn.items);if(kt<0)throw new Error("Pass either item or item index in getItemProps!");var Zn="onClick",Lo=$e,oi=function(){re!==wn.highlightedIndex&&(O.current=!1,_({type:xp,index:re,disabled:ht}))},Lt=function(){_({type:Vl,index:re})},tn=function(er){return er.preventDefault()};return ce((b={},b[ie]=Ii(ve,function(vt){vt&&(h.current[v.getItemId(kt)]=vt)}),b.disabled=ht,b.role="option",b["aria-selected"]=""+(kt===wn.highlightedIndex),b.id=v.getItemId(kt),b),!ht&&(W={},W[Zn]=Et(Lo,Lt),W),{onMouseMove:Et(ne,oi),onMouseDown:Et(we,tn)},mn)},[_,I,O,v]),R=B.useCallback(function(H){var b,W=H===void 0?{}:H,$=W.onClick;W.onPress;var X=W.refKey,re=X===void 0?"ref":X,ee=W.ref,ie=hr(W,Ym),ve=I.current.state,ne=function(){_({type:Ip})};return ce((b={},b[re]=Ii(ee,function(we){x.current=we}),b["aria-controls"]=v.menuId,b["aria-expanded"]=ve.isOpen,b.id=v.toggleButtonId,b.tabIndex=-1,b),!ie.disabled&&ce({},{onClick:Et($,ne)}),ie)},[_,I,v]),A=B.useCallback(function(H,b){var W,$=H===void 0?{}:H,X=$.onKeyDown,re=$.onChange,ee=$.onInput,ie=$.onFocus,ve=$.onBlur;$.onChangeText;var ne=$.refKey,we=ne===void 0?"ref":ne,$e=$.ref,ht=hr($,Xm),mn=b===void 0?{}:b;mn.suppressRefError;var je=I.current.state,yn=function(vt){var er=Cm(vt);er&&q[er]&&q[er](vt)},wn=function(vt){_({type:bl,inputValue:vt.target.value})},kt=function(){je.isOpen&&!N.current.isMouseDown&&_({type:vo,selectItem:!0})},Zn=function(){je.isOpen||_({type:Hl})},Lo="onChange",oi={};if(!ht.disabled){var Lt;oi=(Lt={},Lt[Lo]=Et(re,ee,wn),Lt.onKeyDown=Et(X,yn),Lt.onBlur=Et(ve,kt),Lt.onFocus=Et(ie,Zn),Lt)}return ce((W={},W[we]=Ii($e,function(tn){E.current=tn}),W["aria-activedescendant"]=je.isOpen&&je.highlightedIndex>-1?v.getItemId(je.highlightedIndex):"",W["aria-autocomplete"]="list",W["aria-controls"]=v.menuId,W["aria-expanded"]=je.isOpen,W["aria-labelledby"]=v.labelId,W.autoComplete="off",W.id=v.inputId,W.role="combobox",W.value=je.inputValue,W),oi,ht)},[_,q,I,N,P,v]),D=B.useCallback(function(){_({type:Rp})},[_]),M=B.useCallback(function(){_({type:Np})},[_]),L=B.useCallback(function(){_({type:Tp})},[_]),Q=B.useCallback(function(H){_({type:Op,highlightedIndex:H})},[_]),Y=B.useCallback(function(H){_({type:Kl,selectedItem:H})},[_]),V=B.useCallback(function(H){_({type:Ap,inputValue:H})},[_]),J=B.useCallback(function(){_({type:Pp})},[_]);return{getItemProps:T,getLabelProps:F,getMenuProps:j,getInputProps:A,getToggleButtonProps:R,toggleMenu:D,openMenu:L,closeMenu:M,setHighlightedIndex:Q,setInputValue:V,selectItem:Y,reset:J,highlightedIndex:l,isOpen:w,selectedItem:p,inputValue:f}}function Zm(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}U.array,U.array,U.array,U.func,U.func,U.func,U.number,U.number,U.number,U.func,U.func,U.string,U.string,U.shape({addEventListener:U.func,removeEventListener:U.func,document:U.shape({getElementById:U.func,activeElement:U.any,body:U.any})});xr.itemToString,xr.stateReducer,xr.environment;let ey=0;const ty=({setQuery:e,items:t,onSubmit:n,cioClient:r,previousQuery:i="",...o})=>Lp({id:`cio-autocomplete-${ey++}`,items:t,itemToString:u=>(u==null?void 0:u.value)||"",onSelectedItemChange({selectedItem:u}){var s;if(u&&u!=null&&u.value){n&&n({item:u,originalQuery:i});try{(u==null?void 0:u.section)==="Search Suggestions"&&(e(u.value||""),Os(r,u.value,{originalQuery:i})),u.podId&&((s=u.data)!=null&&s.id)&&u.strategy?r==null||r.tracker.trackRecommendationClick({itemName:u.value,itemId:u.data.id,variationId:u.data.variation_id,podId:u.podId,strategyId:u.strategy.id,section:u.section,resultId:u.result_id}):u.result_id&&tm(r,u.value,{originalQuery:i,section:u.section})}catch(a){console.log(a)}}},...o}),ny=e=>{const t=B.useRef();return B.useEffect(()=>{t.current=e},[e]),t.current},ry=(e,t)=>{B.useEffect(()=>{e&&!Array.isArray(e)&&console.error("useCioAutocomplete expects sections to reference an array of section configuration objects"),t&&!Array.isArray(t)&&console.error("useCioAutocomplete expects zeroStateSections to reference an array of section configuration objects")},[e,t])};function iy(e,t,n,r){const i=!e.length&&!!(r!=null&&r.length),[o,u]=B.useState(i?r:t);return{activeSections:B.useMemo(()=>o.map(a=>{const d=a;if(Yn(a)){const m=n==null?void 0:n[a.podId],y=a.displayName,k=m==null?void 0:m.displayName;d.displayName=y||k}return d}),[o,n]),showZeroStateSections:i,setActiveSections:u}}const oy=(e,t=250)=>{const[n,r]=B.useState(e);return B.useEffect(()=>{const i=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(i)}},[e,t]),n},uy=(e,t)=>{const{numTermsWithGroupSuggestions:n,numGroupsSuggestedPerTerm:r}=t,i={};return Object.keys((e==null?void 0:e.sections)||{}).forEach(o=>{i[o]=[],e.sections[o].map(s=>{var a;return{...s,id:(a=s==null?void 0:s.data)==null?void 0:a.id,section:o}}).forEach((s,a)=>{var d,m,y;(d=i[o])==null||d.push(s),o==="Search Suggestions"&&((y=(m=s==null?void 0:s.data)==null?void 0:m.groups)!=null&&y.length)&&a<n&&s.data.groups.forEach((k,_)=>{var w,l;if(_<r){const p={...s,id:`${(w=s.data)==null?void 0:w.id}_${k.group_id}`,groupName:k.display_name,groupId:k.group_id};(l=i[o])==null||l.push(p)}})})}),{sectionsData:i,request:e==null?void 0:e.request,totalNumResultsPerSection:e==null?void 0:e.total_num_results_per_section}},sy=(e,t,n,r)=>{const[i,o]=B.useState({sectionsData:{},request:{},totalNumResultsPerSection:{}}),u=oy(e,r==null?void 0:r.debounce),{numTermsWithGroupSuggestions:s=0,numGroupsSuggestedPerTerm:a=0}=r||{},d=B.useMemo(()=>{const m={...r};return m==null||delete m.debounce,n&&(m.resultsPerSection=n.reduce((y,k)=>({...y,[k.indexSectionName]:(k==null?void 0:k.numResults)||8}),{})),m},[n,r]);return B.useEffect(()=>{(async()=>{const m=u.trim();if(m&&encodeURIComponent(m).length<200)try{const y=await(t==null?void 0:t.autocomplete.getAutocompleteResults(u,d));if(y){const k=uy(y,{numTermsWithGroupSuggestions:s,numGroupsSuggestedPerTerm:a});o(k)}}catch(y){console.log(y)}else u||o({sectionsData:{},request:{},totalNumResultsPerSection:{}})})()},[u,t,s,a,d]),i},ly=(e,t,n=!1)=>{const[r,i]=B.useState({}),[o,u]=B.useState({}),s=async()=>{if(!e||!Array.isArray(t)||t.length===0)return;const a=await Promise.all(t.map(({podId:y,indexSectionName:k,..._})=>e.recommendations.getRecommendations(y,{..._,section:k}))),d={},m={};a.forEach(({response:y,request:k},_)=>{const{pod:w,results:l}=y;w!=null&&w.id&&(d[w.id]=l==null?void 0:l.map(p=>{var f,c;return{...p,id:(f=p==null?void 0:p.data)==null?void 0:f.id,section:(c=t[_])==null?void 0:c.indexSectionName,podId:w.id}}),m[w.id]={displayName:w.display_name,podId:w.id,request:k})});try{i(d),u(m)}catch(y){console.log(y)}};return B.useEffect(()=>{n||s()},[e,t]),{fetchRecommendationResults:s,recommendationsResults:r,podsData:o}};function ay(e,t,n,r){const i=B.useMemo(()=>n==null?void 0:n.filter(k=>sp(k)),[n]),{sectionsData:o,request:u,totalNumResultsPerSection:s}=sy(e,t,i,r),a=B.useMemo(()=>n==null?void 0:n.filter(k=>Yn(k)),[n]),{fetchRecommendationResults:d,recommendationsResults:m,podsData:y}=ly(t,a,r==null?void 0:r.fetchZeroStateOnFocus);return{recommendations:{results:m,fetchRecommendationResults:d,podsData:y},autocomplete:{results:o,request:u,totalNumResultsPerSection:s}}}function cy(e,t,n,r){const[i,o]=B.useState([]);return B.useEffect(()=>{const u=Yg(t,e,n);(u.length||!r)&&o(u)},[t,e,n,r]),i}function fy(e,t,n,r,i){B.useEffect(()=>{var u,s;const o=lp((s=(u=Object.values(t||{}))==null?void 0:u[0])==null?void 0:s.request);r?o.featureDisplayZeroStateRecommendations?n(i):n([]):n(e)},[i,r,e,t,n])}function dy(e,t,n,r,i){const[o,u]=B.useState({}),{activeSections:s,showZeroStateSections:a,setActiveSections:d}=iy(e,n,o,r),m=B.useRef(s.map(()=>B.createRef())),{recommendations:y,autocomplete:k}=ay(e,t,s,i);B.useEffect(()=>{y.podsData||u(y.podsData)},[y.podsData]),fy(n,o,d,a,r);const _=B.useMemo(()=>({...k.results,...y.results}),[k.results,y.results]),w=cy(_,s,m,e);return{fetchRecommendationResults:y.fetchRecommendationResults,activeSections:s,activeSectionsWithData:w,zeroStateActiveSections:a,request:k.request,totalNumResultsPerSection:k.totalNumResultsPerSection}}const Mu=new Set;function py(e,t,n,r){const i=t.filter(o=>Yn(o)).map(o=>o.ref);B.useEffect(()=>{const o={root:null,threshold:.1},u=new IntersectionObserver(s=>{s.forEach(a=>{a.isIntersecting&&!Mu.has(a.target)&&(r(a.target,t,n),Mu.add(a.target))})},o);return i.forEach(s=>{s!=null&&s.current&&u.observe(s.current)}),()=>{i.forEach(s=>{s!=null&&s.current&&u.unobserve(s.current)})}},[e,t]),B.useEffect(()=>{e||Mu.clear()},[e])}const hy=[{indexSectionName:"Search Suggestions",type:"autocomplete"},{indexSectionName:"Products",type:"autocomplete"}],vy=e=>e.map(t=>{if(Yn(t)){if(t.identifier&&!t.podId)return{...t,podId:t.identifier};if(!t.indexSectionName)return{...t,indexSectionName:"Products"}}return sp(t)&&t.identifier&&!t.indexSectionName?{...t,indexSectionName:t.identifier}:t}),Fc=e=>e&&vy(e),gy=e=>{const{sections:t=hy,zeroStateSections:n,cioJsClientOptions:r,advancedParameters:i}=e,o=B.useMemo(()=>Fc(t),[JSON.stringify(t)]),u=B.useMemo(()=>Fc(n),[JSON.stringify(n)]),s=B.useMemo(()=>r,[JSON.stringify(r)]),a=B.useMemo(()=>i,[JSON.stringify(i)]);return{sections:o,zeroStateSections:u,cioJsClientOptions:s,advancedParameters:a}},my=e=>{const{sections:t,zeroStateSections:n,cioJsClientOptions:r,advancedParameters:i}=gy(e),{onSubmit:o,onChange:u,openOnFocus:s,apiKey:a,cioJsClient:d,placeholder:m="What can we help you find today?",autocompleteClassName:y="cio-autocomplete",defaultInput:k,getSearchResultsUrl:_,...w}=e,[l,p]=B.useState(k||""),f=ny(l),c=nm({apiKey:a,cioJsClient:d,cioJsClientOptions:r}),{fetchRecommendationResults:h,activeSections:E,activeSectionsWithData:x,zeroStateActiveSections:S,request:v,totalNumResultsPerSection:g}=dy(l,c,t,n,i),I=B.useMemo(()=>lp(v),[v]),C=B.useMemo(()=>em(x),[x]),{isOpen:O,getMenuProps:N,getLabelProps:P,openMenu:q,closeMenu:F,highlightedIndex:j,getInputProps:T,getItemProps:R}=ty({setQuery:p,items:C,onSubmit:o,cioClient:c,previousQuery:f,...w});return ry(t,E),py(O,x,c,Zg),{query:l,sections:x,totalNumResultsPerSection:g,request:v,featureToggles:I,isOpen:O&&(C==null?void 0:C.length)>0,getMenuProps:()=>({...N(),className:"cio-results","data-testid":"cio-results","data-cnstrc-autosuggest":""}),getLabelProps:P,openMenu:q,closeMenu:F,getItemProps:A=>{var Q;const{index:D,sectionId:M}=Qg({item:A,items:C}),L=`cio-item-${M==null?void 0:M.replace(" ","")}`;return{...R({item:A,index:D}),className:`cio-item ${L}`,"data-testid":L,"data-cnstrc-item-section":A.section,"data-cnstrc-item-group":A.groupId,"data-cnstrc-item-name":A.value,"data-cnstrc-item-id":(Q=A.data)==null?void 0:Q.id}},getInputProps:()=>({...T({onChange:A=>{p(A.target.value),u&&u(A.target.value)}}),value:l,onFocus:()=>{var A;e.onFocus&&e.onFocus(),S&&s!==!1&&I.featureDisplayZeroStateRecommendations&&q(),l!=null&&l.length&&q();try{i!=null&&i.fetchZeroStateOnFocus&&h(),(A=c==null?void 0:c.tracker)==null||A.trackInputFocus()}catch(D){console.log(D)}},className:"cio-input","data-testid":"cio-input","data-cnstrc-search-input":"",placeholder:m,onKeyDownCapture:({code:A,key:D,nativeEvent:M})=>{const L=A==="Enter"||D==="Enter",Q=A==="Home"||D==="Home",Y=A==="End"||D==="End",V=j<0;if(O&&L&&V&&(l!=null&&l.length)){o&&o({query:l});try{Os(c,l,{originalQuery:l})}catch(J){console.log(J)}}(Q||Y)&&(M.preventDownshiftDefault=!0)}}),getFormProps:()=>({onSubmit:A=>{A.preventDefault(),o&&o({query:l});try{Os(c,l,{originalQuery:l})}catch(D){console.log(D)}return{query:l}},className:"cio-form","data-testid":"cio-form","data-cnstrc-search-form":""}),getSectionProps:A=>{var Q,Y;const D=()=>{const{type:V}=A;let J;const H=V!=="custom"&&A.indexSectionName?Ns(A.indexSectionName):"";switch(V){case"recommendations":J=A.podId;break;case"autocomplete":J=A.displayName||A.indexSectionName;break;case"custom":J=A.displayName;break;default:J=A.displayName||A.indexSectionName;break}return`${J} ${H}`},L={className:`cio-section cio-section-${Pc(A)?"custom":Ns(A.indexSectionName||((Q=A.data[0])==null?void 0:Q.section)||"Products")} ${D()}`,ref:A.ref,role:"none","data-cnstrc-section":(Y=A.data[0])==null?void 0:Y.section};return Pc(A)&&(L["data-cnstrc-custom-section"]=!0,L["data-cnstrc-custom-section-name"]=A.displayName),Yn(A)&&(L["data-cnstrc-recommendations"]=!0,L["data-cnstrc-recommendations-pod-id"]=A.podId),L},setQuery:p,cioClient:c,autocompleteClassName:y,selectedItem:C[j],advancedParameters:i,getSearchResultsUrl:_}},Xn=B.createContext({});function Uc(e){const{children:t,...n}=e,r=my(n);return G.createElement(Xn.Provider,{value:r},G.createElement("div",{className:r.autocompleteClassName},t))}function ji({item:e,query:t,highlightSearchTerm:n}){const r=up(e)?e.groupName:e.value;if(n){const i=new RegExp(`(${Xg(t)})`,"gi"),o=i.test(r);if(t&&o){const u=r.split(i);return G.createElement(G.Fragment,null,u.map((s,a)=>i.test(s)?G.createElement("b",{key:`matched-word-${a}`},s):s))}}return G.createElement(G.Fragment,null,r)}function Bc(e){var m,y,k,_;const{item:t,displaySearchTermHighlights:n}=e,{advancedParameters:r,query:i,featureToggles:o}=B.useContext(Xn),{featureDisplaySearchSuggestionImages:u,featureDisplaySearchSuggestionResultCounts:s}=o,{displaySearchSuggestionImages:a=u,displaySearchSuggestionResultCounts:d=s}=r||{};return G.createElement(G.Fragment,null,a&&((m=t.data)==null?void 0:m.image_url)&&G.createElement("img",{src:(y=t.data)==null?void 0:y.image_url,alt:t.value,className:"cio-suggestion-image"}),G.createElement("p",{className:"cio-suggestion-text"},G.createElement(ji,{item:t,query:i,highlightSearchTerm:n})),d&&((k=t.data)==null?void 0:k.total_num_results)&&G.createElement("p",{className:"cio-suggestion-count"},"(",(_=t.data)==null?void 0:_.total_num_results,")"))}function yy(e){var m,y;const{item:t,children:n,displaySearchTermHighlights:r}=e,{getItemProps:i,advancedParameters:o,query:u,getSearchResultsUrl:s}=B.useContext(Xn),{translations:a}=o||{};let d;return Kg(t)?d=G.createElement("a",{href:(m=t.data)==null?void 0:m.url},G.createElement("img",{"data-testid":"cio-img",src:(y=t.data)==null?void 0:y.image_url,alt:t.value,className:"cio-product-image"}),G.createElement("p",{"data-testid":"cio-text",className:"cio-product-text"},G.createElement(ji,{item:t,query:u,highlightSearchTerm:r}))):up(t)?d=G.createElement("p",{className:"cio-term-in-group"},ap("in",a)," ",G.createElement(ji,{item:t,query:u,highlightSearchTerm:r})):Wg(t)?s?d=G.createElement("a",{className:"suggestion-link",href:s(t)},G.createElement(Bc,{item:t,displaySearchTermHighlights:r})):d=G.createElement(Bc,{item:t,displaySearchTermHighlights:r}):d=G.createElement("p",{className:"cio-custom-text"},G.createElement(ji,{item:t,query:u,highlightSearchTerm:r})),G.createElement("li",{...i(t)},n||d)}const wy=function({section:e}){var k,_;const{getSectionProps:t,query:n,getFormProps:r,advancedParameters:i,getItemProps:o}=B.useContext(Xn),{displayShowAllResultsButton:u,translations:s}=i||{},{onSubmit:a}=r(),{type:d,displayName:m}=e;let y=m;if(!y)switch(d){case"recommendations":y=e.podId;break;case"autocomplete":y=e.indexSectionName;break;case"custom":y=e.displayName;break;default:y=e.indexSectionName;break}return(k=e==null?void 0:e.data)!=null&&k.length?G.createElement("li",{...t(e)},G.createElement("h5",{className:"cio-section-name cio-sectionName","aria-hidden":!0},$g(y)),G.createElement("ul",{className:"cio-section-items",role:"none"},(_=e==null?void 0:e.data)==null?void 0:_.map(w=>typeof(e==null?void 0:e.renderItem)=="function"?e.renderItem({item:w,query:n,getItemProps:o}):G.createElement(yy,{item:w,key:w==null?void 0:w.id,displaySearchTermHighlights:e.displaySearchTermHighlights}))),u&&d==="autocomplete"&&e.indexSectionName==="Products"&&G.createElement("div",{className:"cio-section-footer"},G.createElement("button",{"data-cnstrc-search-submit-btn":!0,className:"cio-show-all-results-button",type:"button",onClick:a},ap("show all results",s)))):null};function _y(e){const{section:t,children:n=wy}=e;return n({section:t})}function Sy(e){return G.createElement("svg",{...e,className:"cio-close",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"122.878px",height:"122.88px",viewBox:"0 0 122.878 122.88",enableBackground:"new 0 0 122.878 122.88",xmlSpace:"preserve"},G.createElement("g",null,G.createElement("path",{d:"M1.426,8.313c-1.901-1.901-1.901-4.984,0-6.886c1.901-1.902,4.984-1.902,6.886,0l53.127,53.127l53.127-53.127 c1.901-1.902,4.984-1.902,6.887,0c1.901,1.901,1.901,4.985,0,6.886L68.324,61.439l53.128,53.128c1.901,1.901,1.901,4.984,0,6.886 c-1.902,1.902-4.985,1.902-6.887,0L61.438,68.326L8.312,121.453c-1.901,1.902-4.984,1.902-6.886,0 c-1.901-1.901-1.901-4.984,0-6.886l53.127-53.128L1.426,8.313L1.426,8.313z"})))}const ky=({sections:e})=>e==null?void 0:e.map(t=>{const{type:n}=t;let r=t.displayName;switch(n){case"recommendations":r=t.podId;break;case"custom":r=Ns(t.displayName);break;case"autocomplete":r=t.indexSectionName;break;default:r=t.indexSectionName;break}return G.createElement(_y,{section:t,key:r})});function Ey(e){const{children:t=ky}=e,{sections:n,isOpen:r,getMenuProps:i,getItemProps:o,closeMenu:u}=B.useContext(Xn),s=n&&n.some(m=>{var y;return(y=m==null?void 0:m.data)==null?void 0:y.length}),a={...i()};let d;return r&&s?d=G.createElement(G.Fragment,null,G.createElement(Sy,{onClick:()=>u()}),typeof t=="function"?t({sections:n,getItemProps:o}):t):(d=null,a.style={display:"none"}),G.createElement("ul",{...a},d)}function Cy({getFormProps:e,getInputProps:t,getLabelProps:n,setQuery:r}){const i=t();return G.createElement("form",{...e()},G.createElement("label",{...n(),htmlFor:"cio-input"},G.createElement("input",{id:"cio-input",...i})),G.createElement("button",{className:"cio-clear-btn","data-testid":"cio-clear-btn",hidden:!i.value,onClick:()=>{r(""),i.id&&setTimeout(()=>{var o;return(o=document.getElementById(i.id))==null?void 0:o.focus()},100)},type:"button","aria-label":"Clear search field text"},G.createElement("div",{className:"cio-icon"},G.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},G.createElement("path",{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})))),G.createElement("button",{className:"cio-submit-btn","data-testid":"cio-submit-btn",disabled:!i.value,"data-cnstrc-search-submit-btn":!0,type:"submit","aria-label":"Submit Search"},G.createElement("div",{className:"cio-icon"},G.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},G.createElement("path",{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"})))))}function xy(e){const{children:t=Cy}=e,{getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o}=B.useContext(Xn);return t({getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o})}function Iy(e){const{children:t}=e;return t?G.createElement(Uc,{...e},t):G.createElement("div",null,G.createElement(Uc,{...e},G.createElement(xy,null),G.createElement(Ey,null)))}const Ry=({selector:e,includeCSS:t=!0,...n})=>{if(document){const r=document.getElementById("cio-autocomplete-styles"),i=document.querySelector(e);if(!i){console.error("CioAutocomplete: There were no elements found for the provided selector");return}r&&(t?r.disabled=!1:r.disabled=!0),zu.createRoot(i).render(G.createElement(G.StrictMode,null,G.createElement(Iy,{...n})))}};window&&(window.CioAutocomplete=Ry);export{Ry as default};