@constructor-io/constructorio-ui-autocomplete 1.23.26 → 1.23.27

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}.cio-autocomplete .cio-section-search-suggestions .cio-no-results-message{min-width:160px;margin:15px 3px}")),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 Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bc={exports:{}},Z={};/**
2
+ var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hc={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"),zp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),Fp=Symbol.for("react.strict_mode"),Up=Symbol.for("react.profiler"),Bp=Symbol.for("react.provider"),jp=Symbol.for("react.context"),bp=Symbol.for("react.forward_ref"),Hp=Symbol.for("react.suspense"),Vp=Symbol.for("react.memo"),Kp=Symbol.for("react.lazy"),Gl=Symbol.iterator;function Wp(e){return e===null||typeof e!="object"?null:(e=Gl&&e[Gl]||e["@@iterator"],typeof e=="function"?e:null)}var Hc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vc=Object.assign,Kc={};function Gn(e,t,n){this.props=e,this.context=t,this.refs=Kc,this.updater=n||Hc}Gn.prototype.isReactComponent={};Gn.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")};Gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wc(){}Wc.prototype=Gn.prototype;function Ds(e,t,n){this.props=e,this.context=t,this.refs=Kc,this.updater=n||Hc}var Ls=Ds.prototype=new Wc;Ls.constructor=Ds;Vc(Ls,Gn.prototype);Ls.isPureReactComponent=!0;var Ql=Array.isArray,Gc=Object.prototype.hasOwnProperty,Ms={current:null},Qc={key:!0,ref:!0,__self:!0,__source:!0};function $c(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)Gc.call(t,r)&&!Qc.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 Gp(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 Qp(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?Qp(""+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 zp: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=Gp(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=Wp(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 $p(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},Jp={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=Gn;Z.Fragment=qp;Z.Profiler=Up;Z.PureComponent=Ds;Z.StrictMode=Fp;Z.Suspense=Hp;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jp;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=Vc({},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)Gc.call(t,a)&&!Qc.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:jp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bp,_context:e},e.Consumer=e};Z.createElement=$c;Z.createFactory=function(e){var t=$c.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:bp,render:e}};Z.isValidElement=zs;Z.lazy=function(e){return{$$typeof:Kp,_payload:{_status:-1,_result:e},_init:$p}};Z.memo=function(e,t){return{$$typeof:Vp,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";bc.exports=Z;var F=bc.exports;const G=Ps(F);var zu={},Jc={exports:{}},We={},Yc={exports:{}},Xc={};/**
10
+ */var Kr=Symbol.for("react.element"),zp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),Fp=Symbol.for("react.strict_mode"),Up=Symbol.for("react.profiler"),Bp=Symbol.for("react.provider"),jp=Symbol.for("react.context"),bp=Symbol.for("react.forward_ref"),Hp=Symbol.for("react.suspense"),Vp=Symbol.for("react.memo"),Kp=Symbol.for("react.lazy"),Ql=Symbol.iterator;function Wp(e){return e===null||typeof e!="object"?null:(e=Ql&&e[Ql]||e["@@iterator"],typeof e=="function"?e:null)}var Vc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kc=Object.assign,Wc={};function Gn(e,t,n){this.props=e,this.context=t,this.refs=Wc,this.updater=n||Vc}Gn.prototype.isReactComponent={};Gn.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")};Gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gc(){}Gc.prototype=Gn.prototype;function Ls(e,t,n){this.props=e,this.context=t,this.refs=Wc,this.updater=n||Vc}var Ms=Ls.prototype=new Gc;Ms.constructor=Ls;Kc(Ms,Gn.prototype);Ms.isPureReactComponent=!0;var $l=Array.isArray,Qc=Object.prototype.hasOwnProperty,zs={current:null},$c={key:!0,ref:!0,__self:!0,__source:!0};function Jc(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)Qc.call(t,r)&&!$c.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:zs.current}}function Gp(e,t){return{$$typeof:Kr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kr}function Qp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Jl=/\/+/g;function Mo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qp(""+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 zp:u=!0}}if(u)return u=e,i=i(u),e=r===""?"."+Mo(u,0):r,$l(i)?(n="",e!=null&&(n=e.replace(Jl,"$&/")+"/"),Ni(i,t,n,"",function(d){return d})):i!=null&&(qs(i)&&(i=Gp(i,n+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(Jl,"$&/")+"/")+e)),t.push(i)),1;if(u=0,r=r===""?".":r+":",$l(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=Wp(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 $p(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},Jp={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:Oi,ReactCurrentOwner:zs};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(!qs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Gn;Z.Fragment=qp;Z.Profiler=Up;Z.PureComponent=Ls;Z.StrictMode=Fp;Z.Suspense=Hp;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jp;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=Kc({},e.props),i=e.key,o=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,u=zs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Qc.call(t,a)&&!$c.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:jp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bp,_context:e},e.Consumer=e};Z.createElement=Jc;Z.createFactory=function(e){var t=Jc.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:bp,render:e}};Z.isValidElement=qs;Z.lazy=function(e){return{$$typeof:Kp,_payload:{_status:-1,_result:e},_init:$p}};Z.memo=function(e,t){return{$$typeof:Vp,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";Hc.exports=Z;var F=Hc.exports;const G=Ds(F);var zu={},Yc={exports:{}},We={},Xc={exports:{}},Zc={};/**
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,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,U=q.port2;q.port1.onmessage=N,P=function(){U.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}}}})(Xc);Yc.exports=Xc;var Yp=Yc.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,U=q.port2;q.port1.onmessage=N,P=function(){U.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}}}})(Zc);Xc.exports=Zc;var Yp=Xc.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 Zc=F,Ke=Yp;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 ef=new Set,Rr={};function vn(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(Rr[e]=t,e=0;e<t.length;e++)ef.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,Xp=/^[: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 Zp(e){return qu.call(Yl,e)?!0:qu.call(Jl,e)?!1:Xp.test(e)?Yl[e]=!0:(Jl[e]=!0,!1)}function eh(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 th(e,t,n,r){if(t===null||typeof t>"u"||eh(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")&&(th(t,n,i,r)&&(n=null),r||i===null?Zp(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=Zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,si=Symbol.for("react.element"),kn=Symbol.for("react.portal"),En=Symbol.for("react.fragment"),Bs=Symbol.for("react.strict_mode"),Fu=Symbol.for("react.profiler"),tf=Symbol.for("react.provider"),nf=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"),rf=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`
26
+ */var ef=F,Ke=Yp;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 tf=new Set,Rr={};function vn(e,t){Bn(e,t),Bn(e+"Capture",t)}function Bn(e,t){for(Rr[e]=t,e=0;e<t.length;e++)tf.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,Xp=/^[: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]*$/,Yl={},Xl={};function Zp(e){return qu.call(Xl,e)?!0:qu.call(Yl,e)?!1:Xp.test(e)?Xl[e]=!0:(Yl[e]=!0,!1)}function eh(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 th(e,t,n,r){if(t===null||typeof t>"u"||eh(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 Fs=/[\-:]([a-z])/g;function Us(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(Fs,Us);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(Fs,Us);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(Fs,Us);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 Bs(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")&&(th(t,n,i,r)&&(n=null),r||i===null?Zp(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=ef.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,si=Symbol.for("react.element"),kn=Symbol.for("react.portal"),En=Symbol.for("react.fragment"),js=Symbol.for("react.strict_mode"),Fu=Symbol.for("react.profiler"),nf=Symbol.for("react.provider"),rf=Symbol.for("react.context"),bs=Symbol.for("react.forward_ref"),Uu=Symbol.for("react.suspense"),Bu=Symbol.for("react.suspense_list"),Hs=Symbol.for("react.memo"),zt=Symbol.for("react.lazy"),of=Symbol.for("react.offscreen"),Zl=Symbol.iterator;function tr(e){return e===null||typeof e!="object"?null:(e=Zl&&e[Zl]||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
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
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 nh(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 En:return"Fragment";case kn: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 nf:return(e.displayName||"Context")+".Consumer";case tf: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 rh(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 of(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e){var t=of(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=ih(e))}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=of(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 sf(e,t){t=t.checked,t!=null&&Us(e,"checked",t,!1)}function Hu(e,t){sf(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 Ln(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 lf(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 af(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"?af(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,cf=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},oh=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){oh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function ff(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 df(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ff(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uh=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(uh[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,Mn=null,zn=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 pf(e){Mn?zn?zn.push(e):zn=[e]:Mn=e}function hf(){if(Mn){var e=Mn,t=zn;if(zn=Mn=null,ra(e),t)for(e=0;e<t.length;e++)ra(t[e])}}function vf(e,t){return e(t)}function gf(){}var Uo=!1;function mf(e,t,n){if(Uo)return e(t,n);Uo=!0;try{return vf(e,t,n)}finally{Uo=!1,(Mn!==null||zn!==null)&&(gf(),hf())}}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 sh(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,lh={onError:function(e){mr=!0,Hi=e}};function ah(e,t,n,r,i,o,u,s,a){mr=!1,Hi=null,sh.apply(lh,arguments)}function ch(e,t,n,r,i,o,u,s,a){if(ah.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 yf(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 fh(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 wf(e){return e=fh(e),e!==null?_f(e):null}function _f(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_f(e);if(t!==null)return t;e=e.sibling}return null}var Sf=Ke.unstable_scheduleCallback,oa=Ke.unstable_cancelCallback,dh=Ke.unstable_shouldYield,ph=Ke.unstable_requestPaint,me=Ke.unstable_now,hh=Ke.unstable_getCurrentPriorityLevel,Vs=Ke.unstable_ImmediatePriority,kf=Ke.unstable_UserBlockingPriority,Ki=Ke.unstable_NormalPriority,vh=Ke.unstable_LowPriority,Ef=Ke.unstable_IdlePriority,go=null,wt=null;function gh(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:wh,mh=Math.log,yh=Math.LN2;function wh(e){return e>>>=0,e===0?32:31-(mh(e)/yh|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 _h(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 Sh(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]=_h(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 Cf(){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 kh(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 xf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var If,Ws,Rf,Tf,Nf,es=!1,di=[],bt=null,Ht=null,Vt=null,Or=new Map,Ar=new Map,Ft=[],Eh="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 Ch(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 Of(e){var t=on(e.target);if(t!==null){var n=gn(t);if(n!==null){if(t=n.tag,t===13){if(t=yf(n),t!==null){e.blockedOn=t,Nf(e.priority,function(){Rf(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 xh(){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,xh)))}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);)Of(n),n.blockedOn===null&&Ft.shift()}var qn=Dt.ReactCurrentBatchConfig,Gi=!0;function Ih(e,t,n,r){var i=oe,o=qn.transition;qn.transition=null;try{oe=1,Gs(e,t,n,r)}finally{oe=i,qn.transition=o}}function Rh(e,t,n,r){var i=oe,o=qn.transition;qn.transition=null;try{oe=4,Gs(e,t,n,r)}finally{oe=i,qn.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(Ch(i,e,t,n,r))r.stopPropagation();else if(ua(e,r),t&4&&-1<Eh.indexOf(e)){for(;i!==null;){var o=Qr(i);if(o!==null&&If(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=yf(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 Af(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(hh()){case Vs:return 1;case kf:return 4;case Ki:case vh:return 16;case Ef:return 536870912;default:return 16}default:return 16}}var Bt=null,Qs=null,Pi=null;function Pf(){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 Qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$s=Ge(Qn),Gr=he({},Qn,{view:0,detail:0}),Th=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),Nh=he({},mo,{dataTransfer:0}),Oh=Ge(Nh),Ah=he({},Gr,{relatedTarget:0}),Ho=Ge(Ah),Ph=he({},Qn,{animationName:0,elapsedTime:0,pseudoElement:0}),Dh=Ge(Ph),Lh=he({},Qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mh=Ge(Lh),zh=he({},Qn,{data:0}),ca=Ge(zh),qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fh={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"},Uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uh[e])?!!t[e]:!1}function Js(){return Bh}var jh=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"?Fh[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}}),bh=Ge(jh),Hh=he({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fa=Ge(Hh),Vh=he({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Js}),Kh=Ge(Vh),Wh=he({},Qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gh=Ge(Wh),Qh=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}),$h=Ge(Qh),Jh=[9,13,27,32],Ys=Nt&&"CompositionEvent"in window,yr=null;Nt&&"documentMode"in document&&(yr=document.documentMode);var Yh=Nt&&"TextEvent"in window&&!yr,Df=Nt&&(!Ys||yr&&8<yr&&11>=yr),da=String.fromCharCode(32),pa=!1;function Lf(e,t){switch(e){case"keyup":return Jh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Xh(e,t){switch(e){case"compositionend":return Mf(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 Zh(e,t){if(Cn)return e==="compositionend"||!Ys&&Lf(e,t)?(e=Pf(),Pi=Qs=Bt=null,Cn=!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 Df&&t.locale!=="ko"?null:t.data;default:return null}}var ev={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"?!!ev[e.type]:t==="textarea"}function zf(e,t,n,r){pf(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 tv(e){Gf(e,0)}function yo(e){var t=Rn(e);if(uf(t))return e}function nv(e,t){if(e==="change")return t}var qf=!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;qf=Vo&&(!document.documentMode||9<document.documentMode)}function ga(){wr&&(wr.detachEvent("onpropertychange",Ff),Dr=wr=null)}function Ff(e){if(e.propertyName==="value"&&yo(Dr)){var t=[];zf(t,Dr,e,Hs(e)),mf(tv,t)}}function rv(e,t,n){e==="focusin"?(ga(),wr=t,Dr=n,wr.attachEvent("onpropertychange",Ff)):e==="focusout"&&ga()}function iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yo(Dr)}function ov(e,t){if(e==="click")return yo(t)}function uv(e,t){if(e==="input"||e==="change")return yo(t)}function sv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:sv;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 Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(){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 lv(e){var t=Bf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Uf(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 av=Nt&&"documentMode"in document&&11>=document.documentMode,xn=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||xn==null||xn!==bi(r)||(r=xn,"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=xn)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var In={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},Wo={},jf={};Nt&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete In.animationend.animation,delete In.animationiteration.animation,delete In.animationstart.animation),"TransitionEvent"in window||delete In.transitionend.transition);function wo(e){if(Wo[e])return Wo[e];if(!In[e])return e;var t=In[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jf)return Wo[e]=t[n];return e}var bf=wo("animationend"),Hf=wo("animationiteration"),Vf=wo("animationstart"),Kf=wo("transitionend"),Wf=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){Wf.set(e,t),vn(t,[e])}for(var Go=0;Go<_a.length;Go++){var Qo=_a[Go],cv=Qo.toLowerCase(),fv=Qo[0].toUpperCase()+Qo.slice(1);Xt(cv,"on"+fv)}Xt(bf,"onAnimationEnd");Xt(Hf,"onAnimationIteration");Xt(Vf,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(Kf,"onTransitionEnd");Bn("onMouseEnter",["mouseout","mouseover"]);Bn("onMouseLeave",["mouseout","mouseover"]);Bn("onPointerEnter",["pointerout","pointerover"]);Bn("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(" "),dv=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,ch(r,t,void 0,e),e.currentTarget=null}function Gf(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)||(Qf(t,e,2,!1),n.add(r))}function $o(e,t,n){var r=0;t&&(r|=4),Qf(n,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){if(!e[vi]){e[vi]=!0,ef.forEach(function(n){n!=="selectionchange"&&(dv.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 Qf(e,t,n,r){switch(Af(t)){case 1:var i=Ih;break;case 4:i=Rh;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}mf(function(){var d=o,m=Hs(n),y=[];e:{var k=Wf.get(e);if(k!==void 0){var _=$s,w=e;switch(e){case"keypress":if(Di(n)===0)break e;case"keydown":case"keyup":_=bh;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":_=Oh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Kh;break;case bf:case Hf:case Vf:_=Dh;break;case Kf:_=Gh;break;case"scroll":_=Th;break;case"wheel":_=$h;break;case"copy":case"cut":case"paste":_=Mh;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:Rn(_),h=w==null?k:Rn(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=Sn(h))c++;for(h=0,E=f;E;E=Sn(E))h++;for(;0<c-h;)l=Sn(l),c--;for(;0<h-c;)f=Sn(f),h--;for(;c--;){if(l===f||f!==null&&l===f.alternate)break t;l=Sn(l),f=Sn(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?Rn(d):window,_=k.nodeName&&k.nodeName.toLowerCase(),_==="select"||_==="input"&&k.type==="file")var x=nv;else if(ha(k))if(qf)x=uv;else{x=iv;var S=rv}else(_=k.nodeName)&&_.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(x=ov);if(x&&(x=x(e,d))){zf(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?Rn(d):window,e){case"focusin":(ha(S)||S.contentEditable==="true")&&(xn=S,ns=d,_r=null);break;case"focusout":_r=ns=xn=null;break;case"mousedown":rs=!0;break;case"contextmenu":case"mouseup":case"dragend":rs=!1,wa(y,n,m);break;case"selectionchange":if(av)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 Cn?Lf(e,n)&&(g="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(g="onCompositionStart");g&&(Df&&n.locale!=="ko"&&(Cn||g!=="onCompositionStart"?g==="onCompositionEnd"&&Cn&&(v=Pf()):(Bt=m,Qs="value"in Bt?Bt.value:Bt.textContent,Cn=!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=Mf(n),v!==null&&(g.data=v)))),(v=Yh?Xh(e,n):Zh(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))}Gf(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 Sn(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 pv=/\r\n?/g,hv=/\u0000|\uFFFD/g;function Ea(e){return(typeof e=="string"?e:""+e).replace(pv,`
31
- `).replace(hv,"")}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,vv=typeof clearTimeout=="function"?clearTimeout:void 0,Ca=typeof Promise=="function"?Promise:void 0,gv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ca<"u"?function(e){return Ca.resolve(null).then(e).catch(mv)}:ss;function mv(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 $n=Math.random().toString(36).slice(2),yt="__reactFiber$"+$n,qr="__reactProps$"+$n,Ot="__reactContainer$"+$n,ls="__reactEvents$"+$n,yv="__reactListeners$"+$n,wv="__reactHandles$"+$n;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 Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function _o(e){return e[qr]||null}var as=[],Tn=-1;function Zt(e){return{current:e}}function ae(e){0>Tn||(e.current=as[Tn],as[Tn]=null,Tn--)}function ue(e,t){Tn++,as[Tn]=e.current,e.current=t}var Yt={},Ae=Zt(Yt),Fe=Zt(!1),cn=Yt;function jn(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 $f(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,rh(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=$f(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 Jf(e){xt===null?xt=[e]:xt.push(e)}function _v(e){So=!0,Jf(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)),Sf(Vs,en),i}finally{oe=t,Xo=!1}}return null}var Nn=[],On=0,Zi=null,eo=0,Ye=[],Xe=0,fn=null,It=1,Rt="";function nn(e,t){Nn[On++]=eo,Nn[On++]=Zi,Zi=e,eo=t}function Yf(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),Yf(e,1,0))}function el(e){for(;e===Zi;)Zi=Nn[--On],Nn[On]=null,eo=Nn[--On],Nn[On]=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 Xf(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)?Xf(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 Zf(),Error(z(418));for(;t;)Xf(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 Zf(){for(var e=He;e;)e=Kt(e.nextSibling)}function bn(){He=Ve=null,fe=!1}function tl(e){st===null?st=[e]:st.push(e)}var Sv=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,An=null,nl=null;function rl(){nl=An=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 Fn(e,t){no=e,nl=An=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},An===null){if(no===null)throw Error(z(308));An=e,no.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var un=null;function ol(e){un===null?un=[e]:un.push(e)}function ed(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 td(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 nd=new Zc.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 rd(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)?jn(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=nd,ul(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=tt(o):(o=Ue(t)?cn:Ae.current,i.context=jn(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===nd&&(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 id(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===En?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 kn: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 kn: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 kn: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===En&&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===En){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===En?(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 kn: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 Hn=id(!0),od=id(!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 Vn(){ae(_t),ae(Fr),ae(Ur)}function ud(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,kv=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?Iv:Rv,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=Tv,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 sd(){}function ld(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(fd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,br(9,cd.bind(null,n,r,i,t),void 0,null),Ee===null)throw Error(z(349));dn&30||ad(n,t,i)}return i}function ad(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 cd(e,t,n,r){t.value=n,t.getSnapshot=r,dd(t)&&pd(e)}function fd(e,t,n){return n(function(){dd(t)&&pd(e)})}function dd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function pd(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=xv.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 hd(){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 vd(e,t){return Eo(4,2,e,t)}function gd(e,t){return Eo(4,4,e,t)}function md(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 yd(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4,4,md.bind(null,t,e),n)}function hl(){}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]:(n.memoizedState=[e,t],e)}function _d(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 Sd(e,t,n){return dn&21?(ct(n,t)||(n=Cf(),pe.lanes|=n,pn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Ev(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 kd(){return nt().memoizedState}function Cv(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ed(e))Cd(t,n);else if(n=ed(e,t,n,r),n!==null){var i=De();at(n,e,r,i),xd(n,t,r)}}function xv(e,t,n){var r=Qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ed(e))Cd(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=ed(e,t,i,r),n!==null&&(i=De(),at(n,e,r,i),xd(n,t,r))}}function Ed(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Cd(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 xd(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},Iv={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,md.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=Cv.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=Ev.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||ad(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,za(fd.bind(null,r,o,e),[e]),r.flags|=2048,br(9,cd.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=kv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rv={readContext:tt,useCallback:wd,useContext:tt,useEffect:pl,useImperativeHandle:yd,useInsertionEffect:vd,useLayoutEffect:gd,useMemo:_d,useReducer:tu,useRef:hd,useState:function(){return tu(jr)},useDebugValue:hl,useDeferredValue:function(e){var t=nt();return Sd(t,_e.memoizedState,e)},useTransition:function(){var e=tu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:sd,useSyncExternalStore:ld,useId:kd,unstable_isNewReconciler:!1},Tv={readContext:tt,useCallback:wd,useContext:tt,useEffect:pl,useImperativeHandle:yd,useInsertionEffect:vd,useLayoutEffect:gd,useMemo:_d,useReducer:nu,useRef:hd,useState:function(){return nu(jr)},useDebugValue:hl,useDeferredValue:function(e){var t=nt();return _e===null?t.memoizedState=e:Sd(t,_e.memoizedState,e)},useTransition:function(){var e=nu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:sd,useSyncExternalStore:ld,useId:kd,unstable_isNewReconciler:!1};function Kn(e,t){try{var n="",r=t;do n+=nh(r),r=r.return;while(r);var i=n}catch(o){i=`
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 nh(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 En:return"Fragment";case kn:return"Portal";case Fu:return"Profiler";case js:return"StrictMode";case Uu:return"Suspense";case Bu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rf:return(e.displayName||"Context")+".Consumer";case nf: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 Hs: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 rh(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===js?"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 uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(e){var t=uf(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=ih(e))}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uf(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 ea(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 lf(e,t){t=t.checked,t!=null&&Bs(e,"checked",t,!1)}function Hu(e,t){lf(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 ta(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 Ln(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 na(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 af(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 ra(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cf(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"?cf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,ff=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},oh=["Webkit","ms","Moz","O"];Object.keys(gr).forEach(function(e){oh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gr[t]=gr[e]})});function df(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 pf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=df(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uh=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(uh[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 Vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ju=null,Mn=null,zn=null;function ia(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 hf(e){Mn?zn?zn.push(e):zn=[e]:Mn=e}function vf(){if(Mn){var e=Mn,t=zn;if(zn=Mn=null,ia(e),t)for(e=0;e<t.length;e++)ia(t[e])}}function gf(e,t){return e(t)}function mf(){}var Uo=!1;function yf(e,t,n){if(Uo)return e(t,n);Uo=!0;try{return gf(e,t,n)}finally{Uo=!1,(Mn!==null||zn!==null)&&(mf(),vf())}}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 sh(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,lh={onError:function(e){mr=!0,Hi=e}};function ah(e,t,n,r,i,o,u,s,a){mr=!1,Hi=null,sh.apply(lh,arguments)}function ch(e,t,n,r,i,o,u,s,a){if(ah.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 wf(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 oa(e){if(gn(e)!==e)throw Error(z(188))}function fh(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 oa(i),e;if(o===r)return oa(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 _f(e){return e=fh(e),e!==null?Sf(e):null}function Sf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Sf(e);if(t!==null)return t;e=e.sibling}return null}var kf=Ke.unstable_scheduleCallback,ua=Ke.unstable_cancelCallback,dh=Ke.unstable_shouldYield,ph=Ke.unstable_requestPaint,me=Ke.unstable_now,hh=Ke.unstable_getCurrentPriorityLevel,Ks=Ke.unstable_ImmediatePriority,Ef=Ke.unstable_UserBlockingPriority,Ki=Ke.unstable_NormalPriority,vh=Ke.unstable_LowPriority,Cf=Ke.unstable_IdlePriority,go=null,wt=null;function gh(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:wh,mh=Math.log,yh=Math.LN2;function wh(e){return e>>>=0,e===0?32:31-(mh(e)/yh|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 _h(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 Sh(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]=_h(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 xf(){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 kh(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 Ws(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 If(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rf,Gs,Tf,Nf,Of,es=!1,di=[],bt=null,Ht=null,Vt=null,Or=new Map,Ar=new Map,Ft=[],Eh="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 sa(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&&Gs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ch(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 Af(e){var t=on(e.target);if(t!==null){var n=gn(t);if(n!==null){if(t=n.tag,t===13){if(t=wf(n),t!==null){e.blockedOn=t,Of(e.priority,function(){Tf(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&&Gs(t),e.blockedOn=n,!1;t.shift()}return!0}function la(e,t,n){Ai(e)&&n.delete(t)}function xh(){es=!1,bt!==null&&Ai(bt)&&(bt=null),Ht!==null&&Ai(Ht)&&(Ht=null),Vt!==null&&Ai(Vt)&&(Vt=null),Or.forEach(la),Ar.forEach(la)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,es||(es=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,xh)))}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);)Af(n),n.blockedOn===null&&Ft.shift()}var qn=Dt.ReactCurrentBatchConfig,Gi=!0;function Ih(e,t,n,r){var i=oe,o=qn.transition;qn.transition=null;try{oe=1,Qs(e,t,n,r)}finally{oe=i,qn.transition=o}}function Rh(e,t,n,r){var i=oe,o=qn.transition;qn.transition=null;try{oe=4,Qs(e,t,n,r)}finally{oe=i,qn.transition=o}}function Qs(e,t,n,r){if(Gi){var i=ts(e,t,n,r);if(i===null)Jo(e,t,r,Qi,n),sa(e,r);else if(Ch(i,e,t,n,r))r.stopPropagation();else if(sa(e,r),t&4&&-1<Eh.indexOf(e)){for(;i!==null;){var o=Qr(i);if(o!==null&&Rf(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=Vs(r),e=on(e),e!==null)if(t=gn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wf(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 Pf(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(hh()){case Ks:return 1;case Ef:return 4;case Ki:case vh:return 16;case Cf:return 536870912;default:return 16}default:return 16}}var Bt=null,$s=null,Pi=null;function Df(){if(Pi)return Pi;var e,t=$s,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 aa(){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:aa,this.isPropagationStopped=aa,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 Qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Js=Ge(Qn),Gr=he({},Qn,{view:0,detail:0}),Th=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:Ys,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}}),ca=Ge(mo),Nh=he({},mo,{dataTransfer:0}),Oh=Ge(Nh),Ah=he({},Gr,{relatedTarget:0}),Ho=Ge(Ah),Ph=he({},Qn,{animationName:0,elapsedTime:0,pseudoElement:0}),Dh=Ge(Ph),Lh=he({},Qn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mh=Ge(Lh),zh=he({},Qn,{data:0}),fa=Ge(zh),qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fh={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"},Uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uh[e])?!!t[e]:!1}function Ys(){return Bh}var jh=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"?Fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ys,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}}),bh=Ge(jh),Hh=he({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),da=Ge(Hh),Vh=he({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ys}),Kh=Ge(Vh),Wh=he({},Qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gh=Ge(Wh),Qh=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}),$h=Ge(Qh),Jh=[9,13,27,32],Xs=Nt&&"CompositionEvent"in window,yr=null;Nt&&"documentMode"in document&&(yr=document.documentMode);var Yh=Nt&&"TextEvent"in window&&!yr,Lf=Nt&&(!Xs||yr&&8<yr&&11>=yr),pa=String.fromCharCode(32),ha=!1;function Mf(e,t){switch(e){case"keyup":return Jh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Xh(e,t){switch(e){case"compositionend":return zf(t);case"keypress":return t.which!==32?null:(ha=!0,pa);case"textInput":return e=t.data,e===pa&&ha?null:e;default:return null}}function Zh(e,t){if(Cn)return e==="compositionend"||!Xs&&Mf(e,t)?(e=Df(),Pi=$s=Bt=null,Cn=!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 Lf&&t.locale!=="ko"?null:t.data;default:return null}}var ev={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 va(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ev[e.type]:t==="textarea"}function qf(e,t,n,r){hf(r),t=$i(t,"onChange"),0<t.length&&(n=new Js("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wr=null,Dr=null;function tv(e){Qf(e,0)}function yo(e){var t=Rn(e);if(sf(t))return e}function nv(e,t){if(e==="change")return t}var Ff=!1;if(Nt){var Vo;if(Nt){var Ko="oninput"in document;if(!Ko){var ga=document.createElement("div");ga.setAttribute("oninput","return;"),Ko=typeof ga.oninput=="function"}Vo=Ko}else Vo=!1;Ff=Vo&&(!document.documentMode||9<document.documentMode)}function ma(){wr&&(wr.detachEvent("onpropertychange",Uf),Dr=wr=null)}function Uf(e){if(e.propertyName==="value"&&yo(Dr)){var t=[];qf(t,Dr,e,Vs(e)),yf(tv,t)}}function rv(e,t,n){e==="focusin"?(ma(),wr=t,Dr=n,wr.attachEvent("onpropertychange",Uf)):e==="focusout"&&ma()}function iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yo(Dr)}function ov(e,t){if(e==="click")return yo(t)}function uv(e,t){if(e==="input"||e==="change")return yo(t)}function sv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:sv;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 ya(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wa(e,t){var n=ya(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=ya(n)}}function Bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jf(){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 Zs(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 lv(e){var t=jf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bf(n.ownerDocument.documentElement,n)){if(r!==null&&Zs(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=wa(n,o);var u=wa(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 av=Nt&&"documentMode"in document&&11>=document.documentMode,xn=null,ns=null,_r=null,rs=!1;function _a(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rs||xn==null||xn!==bi(r)||(r=xn,"selectionStart"in r&&Zs(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 Js("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xn)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var In={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 In.animationend.animation,delete In.animationiteration.animation,delete In.animationstart.animation),"TransitionEvent"in window||delete In.transitionend.transition);function wo(e){if(Wo[e])return Wo[e];if(!In[e])return e;var t=In[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bf)return Wo[e]=t[n];return e}var Hf=wo("animationend"),Vf=wo("animationiteration"),Kf=wo("animationstart"),Wf=wo("transitionend"),Gf=new Map,Sa="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){Gf.set(e,t),vn(t,[e])}for(var Go=0;Go<Sa.length;Go++){var Qo=Sa[Go],cv=Qo.toLowerCase(),fv=Qo[0].toUpperCase()+Qo.slice(1);Xt(cv,"on"+fv)}Xt(Hf,"onAnimationEnd");Xt(Vf,"onAnimationIteration");Xt(Kf,"onAnimationStart");Xt("dblclick","onDoubleClick");Xt("focusin","onFocus");Xt("focusout","onBlur");Xt(Wf,"onTransitionEnd");Bn("onMouseEnter",["mouseout","mouseover"]);Bn("onMouseLeave",["mouseout","mouseover"]);Bn("onPointerEnter",["pointerout","pointerover"]);Bn("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(" "),dv=new Set("cancel close invalid load scroll toggle".split(" ").concat(pr));function ka(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ch(r,t,void 0,e),e.currentTarget=null}function Qf(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;ka(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;ka(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)||($f(t,e,2,!1),n.add(r))}function $o(e,t,n){var r=0;t&&(r|=4),$f(n,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){if(!e[vi]){e[vi]=!0,tf.forEach(function(n){n!=="selectionchange"&&(dv.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 $f(e,t,n,r){switch(Pf(t)){case 1:var i=Ih;break;case 4:i=Rh;break;default:i=Qs}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}yf(function(){var d=o,m=Vs(n),y=[];e:{var k=Gf.get(e);if(k!==void 0){var _=Js,w=e;switch(e){case"keypress":if(Di(n)===0)break e;case"keydown":case"keyup":_=bh;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":_=ca;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Oh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Kh;break;case Hf:case Vf:case Kf:_=Dh;break;case Wf:_=Gh;break;case"scroll":_=Th;break;case"wheel":_=$h;break;case"copy":case"cut":case"paste":_=Mh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=da}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=ca,E="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(l=da,E="onPointerLeave",f="onPointerEnter",c="pointer"),p=_==null?k:Rn(_),h=w==null?k:Rn(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=Sn(h))c++;for(h=0,E=f;E;E=Sn(E))h++;for(;0<c-h;)l=Sn(l),c--;for(;0<h-c;)f=Sn(f),h--;for(;c--;){if(l===f||f!==null&&l===f.alternate)break t;l=Sn(l),f=Sn(f)}l=null}else l=null;_!==null&&Ea(y,k,_,l,!1),w!==null&&p!==null&&Ea(y,p,w,l,!0)}}e:{if(k=d?Rn(d):window,_=k.nodeName&&k.nodeName.toLowerCase(),_==="select"||_==="input"&&k.type==="file")var x=nv;else if(va(k))if(Ff)x=uv;else{x=iv;var S=rv}else(_=k.nodeName)&&_.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(x=ov);if(x&&(x=x(e,d))){qf(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?Rn(d):window,e){case"focusin":(va(S)||S.contentEditable==="true")&&(xn=S,ns=d,_r=null);break;case"focusout":_r=ns=xn=null;break;case"mousedown":rs=!0;break;case"contextmenu":case"mouseup":case"dragend":rs=!1,_a(y,n,m);break;case"selectionchange":if(av)break;case"keydown":case"keyup":_a(y,n,m)}var v;if(Xs)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 Cn?Mf(e,n)&&(g="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(g="onCompositionStart");g&&(Lf&&n.locale!=="ko"&&(Cn||g!=="onCompositionStart"?g==="onCompositionEnd"&&Cn&&(v=Df()):(Bt=m,$s="value"in Bt?Bt.value:Bt.textContent,Cn=!0)),S=$i(d,g),0<S.length&&(g=new fa(g,e,null,n,m),y.push({event:g,listeners:S}),v?g.data=v:(v=zf(n),v!==null&&(g.data=v)))),(v=Yh?Xh(e,n):Zh(e,n))&&(d=$i(d,"onBeforeInput"),0<d.length&&(m=new fa("onBeforeInput","beforeinput",null,n,m),y.push({event:m,listeners:d}),m.data=v))}Qf(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 Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ea(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 pv=/\r\n?/g,hv=/\u0000|\uFFFD/g;function Ca(e){return(typeof e=="string"?e:""+e).replace(pv,`
31
+ `).replace(hv,"")}function gi(e,t,n){if(t=Ca(t),Ca(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,vv=typeof clearTimeout=="function"?clearTimeout:void 0,xa=typeof Promise=="function"?Promise:void 0,gv=typeof queueMicrotask=="function"?queueMicrotask:typeof xa<"u"?function(e){return xa.resolve(null).then(e).catch(mv)}:ss;function mv(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 Ia(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 $n=Math.random().toString(36).slice(2),yt="__reactFiber$"+$n,qr="__reactProps$"+$n,Ot="__reactContainer$"+$n,ls="__reactEvents$"+$n,yv="__reactListeners$"+$n,wv="__reactHandles$"+$n;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=Ia(e);e!==null;){if(n=e[yt])return n;e=Ia(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 Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function _o(e){return e[qr]||null}var as=[],Tn=-1;function Zt(e){return{current:e}}function ae(e){0>Tn||(e.current=as[Tn],as[Tn]=null,Tn--)}function ue(e,t){Tn++,as[Tn]=e.current,e.current=t}var Yt={},Ae=Zt(Yt),Fe=Zt(!1),cn=Yt;function jn(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 Ra(e,t,n){if(Ae.current!==Yt)throw Error(z(168));ue(Ae,t),ue(Fe,n)}function Jf(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,rh(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 Ta(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Jf(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 Yf(e){xt===null?xt=[e]:xt.push(e)}function _v(e){So=!0,Yf(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)),kf(Ks,en),i}finally{oe=t,Xo=!1}}return null}var Nn=[],On=0,Zi=null,eo=0,Ye=[],Xe=0,fn=null,It=1,Rt="";function nn(e,t){Nn[On++]=eo,Nn[On++]=Zi,Zi=e,eo=t}function Xf(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 el(e){e.return!==null&&(nn(e,1),Xf(e,1,0))}function tl(e){for(;e===Zi;)Zi=Nn[--On],Nn[On]=null,eo=Nn[--On],Nn[On]=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 Zf(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 Na(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(!Na(e,t)){if(cs(e))throw Error(z(418));t=Kt(n.nextSibling);var r=Ve;t&&Na(e,t)?Zf(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 Oa(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 Oa(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 ed(),Error(z(418));for(;t;)Zf(e,t),t=Kt(t.nextSibling)}if(Oa(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 ed(){for(var e=He;e;)e=Kt(e.nextSibling)}function bn(){He=Ve=null,fe=!1}function nl(e){st===null?st=[e]:st.push(e)}var Sv=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,An=null,rl=null;function il(){rl=An=no=null}function ol(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 Fn(e,t){no=e,rl=An=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(rl!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(no===null)throw Error(z(308));An=e,no.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var un=null;function ul(e){un===null?un=[e]:un.push(e)}function td(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ul(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 sl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nd(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,ul(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,Ws(e,n)}}function Aa(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 Pa(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 rd=new ef.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 Da(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 id(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)?jn(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 La(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=rd,sl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=tt(o):(o=Ue(t)?cn:Ae.current,i.context=jn(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===rd&&(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 Ma(e){var t=e._init;return t(e._payload)}function od(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===En?m(f,c,h.props.children,E,h.key):c!==null&&(c.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===zt&&Ma(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 kn: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 kn: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 kn: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===En&&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===En){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&&Ma(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===En?(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 kn: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 Hn=od(!0),ud=od(!1),$r={},_t=Zt($r),Fr=Zt($r),Ur=Zt($r);function sn(e){if(e===$r)throw Error(z(174));return e}function ll(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 Vn(){ae(_t),ae(Fr),ae(Ur)}function sd(e){sn(Ur.current);var t=sn(_t.current),n=Wu(t,e.type);t!==n&&(ue(Fr,e),ue(_t,n))}function al(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 cl(){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,kv=0;function Te(){throw Error(z(321))}function fl(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 dl(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?Iv:Rv,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=Tv,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 pl(){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 ld(){}function ad(e,t){var n=pe,r=nt(),i=t(),o=!ct(r.memoizedState,i);if(o&&(r.memoizedState=i,qe=!0),r=r.queue,hl(dd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,br(9,fd.bind(null,n,r,i,t),void 0,null),Ee===null)throw Error(z(349));dn&30||cd(n,t,i)}return i}function cd(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 fd(e,t,n,r){t.value=n,t.getSnapshot=r,pd(t)&&hd(e)}function dd(e,t,n){return n(function(){pd(t)&&hd(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function hd(e){var t=At(e,1);t!==null&&at(t,e,1,-1)}function za(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=xv.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 vd(){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&&fl(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 zi(8390656,8,e,t)}function hl(e,t){return Eo(2048,8,e,t)}function gd(e,t){return Eo(4,2,e,t)}function md(e,t){return Eo(4,4,e,t)}function yd(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 wd(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4,4,yd.bind(null,t,e),n)}function vl(){}function _d(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sd(e,t){var n=nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function kd(e,t,n){return dn&21?(ct(n,t)||(n=xf(),pe.lanes|=n,pn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Ev(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 Ed(){return nt().memoizedState}function Cv(e,t,n){var r=Qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cd(e))xd(t,n);else if(n=td(e,t,n,r),n!==null){var i=De();at(n,e,r,i),Id(n,t,r)}}function xv(e,t,n){var r=Qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cd(e))xd(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,ul(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=td(e,t,i,r),n!==null&&(i=De(),at(n,e,r,i),Id(n,t,r))}}function Cd(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function xd(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 Id(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ws(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},Iv={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,zi(4194308,4,yd.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=Cv.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:za,useDebugValue:vl,useDeferredValue:function(e){return mt().memoizedState=e},useTransition:function(){var e=za(!1),t=e[0];return e=Ev.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||cd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,qa(dd.bind(null,r,o,e),[e]),r.flags|=2048,br(9,fd.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=kv++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rv={readContext:tt,useCallback:_d,useContext:tt,useEffect:hl,useImperativeHandle:wd,useInsertionEffect:gd,useLayoutEffect:md,useMemo:Sd,useReducer:tu,useRef:vd,useState:function(){return tu(jr)},useDebugValue:vl,useDeferredValue:function(e){var t=nt();return kd(t,_e.memoizedState,e)},useTransition:function(){var e=tu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ld,useSyncExternalStore:ad,useId:Ed,unstable_isNewReconciler:!1},Tv={readContext:tt,useCallback:_d,useContext:tt,useEffect:hl,useImperativeHandle:wd,useInsertionEffect:gd,useLayoutEffect:md,useMemo:Sd,useReducer:nu,useRef:vd,useState:function(){return nu(jr)},useDebugValue:vl,useDeferredValue:function(e){var t=nt();return _e===null?t.memoizedState=e:kd(t,_e.memoizedState,e)},useTransition:function(){var e=nu(jr)[0],t=nt().memoizedState;return[e,t]},useMutableSource:ld,useSyncExternalStore:ad,useId:Ed,unstable_isNewReconciler:!1};function Kn(e,t){try{var n="",r=t;do n+=nh(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 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 Nv=typeof WeakMap=="function"?WeakMap:Map;function Id(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 Rd(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 Nv;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=Hv.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 Ov=Dt.ReactCurrentOwner,qe=!1;function Pe(e,t,n,r){t.child=e===null?od(t,null,n,r):Hn(t,e.child,n,r)}function Ba(e,t,n,r,i){n=n.render;var o=t.ref;return Fn(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,Td(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 Td(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 Nd(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(Dn,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(Dn,be),be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ue(Dn,be),be|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ue(Dn,be),be|=r;return Pe(e,t,i,n),t.child}function Od(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=jn(t,o),Fn(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(Fn(t,i),t.stateNode===null)qi(e,t),rd(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=jn(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,td(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=jn(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){Od(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return i&&Ra(t,n,!1),Pt(e,t,o);r=t.stateNode,Ov.current=t;var s=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=Hn(t,e.child,null,o),t.child=Hn(t,null,s,o)):Pe(e,t,s,o),t.memoizedState=r.state,i&&Ra(t,n,!0),t.child}function Ad(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 bn(),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 Pd(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 Av(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),Hn(t,e.child,null,n),e=vl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Av(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&&Hn(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=Vv.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 Dd(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 Pv(e,t,n){switch(t.tag){case 3:Ad(t),bn();break;case 5:ud(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?Pd(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 Dd(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,Nd(e,t,n)}return Pt(e,t,n)}var Ld,_s,Md,zd;Ld=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(){};Md=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)}};zd=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 Dv(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,Vn(),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)Md(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=af(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,Ld(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"?df(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&cf(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?Ln(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ln(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)zd(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))Zf(),bn(),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 bn(),!(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 Vn(),_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()>Wn&&(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>Wn&&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 Lv(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 Vn(),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));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Vn(),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,Mv=typeof WeakSet=="function"?WeakSet:Set,K=null;function Pn(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 zv(e,t){if(is=Gi,e=Bf(),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 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[qr],delete t[ls],delete t[yv],delete t[wv])),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 Fd(e){return e.tag===5||e.tag===3||e.tag===4}function Wa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fd(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;)Ud(e,t,n),n=n.sibling}function Ud(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Oe||Pn(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&&(Pn(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 Mv),t.forEach(function(r){var i=Kv.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));Ud(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;)Bd(t,e),t=t.sibling}function Bd(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&&Pn(n,n.return);break;case 5:if(it(t,e),gt(e),r&512&&n!==null&&Pn(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&&sf(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"?df(i,y):m==="dangerouslySetInnerHTML"?cf(i,y):m==="children"?Tr(i,y):Us(i,m,y,d)}switch(s){case"input":Hu(i,o);break;case"textarea":lf(i,o);break;case"select":var k=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var _=o.value;_!=null?Ln(i,!!o.multiple,_,!1):k!==!!o.multiple&&(o.defaultValue!=null?Ln(i,!!o.multiple,o.defaultValue,!0):Ln(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:Pn(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:Pn(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=ff("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(Fd(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 qv(e,t,n){K=e,jd(e)}function jd(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,jd(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 Fv=Math.ceil,so=Dt.ReactCurrentDispatcher,gl=Dt.ReactCurrentOwner,et=Dt.ReactCurrentBatchConfig,te=0,Ee=null,ye=null,Ie=0,be=0,Dn=Zt(0),Se=0,Hr=null,pn=0,xo=0,ml=0,Er=null,ze=null,yl=0,Wn=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:Sv.transition!==null?(Ui===0&&(Ui=Cf()),Ui):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Af(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)&&(Wn=me()+500,So&&en()))}function Be(e,t){var n=e.callbackNode;Sh(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?_v(Ya.bind(null,e)):Jf(Ya.bind(null,e)),gv(function(){!(te&6)&&en()}),n=null;else{switch(xf(r)){case 1:n=Vs;break;case 4:n=kf;break;case 16:n=Ki;break;case 536870912:n=Ef;break;default:n=Ki}n=$d(n,bd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bd(e,t){if(Fi=-1,Ui=0,te&6)throw Error(z(327));var n=e.callbackNode;if(Un()&&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=Vd();(Ee!==e||Ie!==t)&&(Ct=null,Wn=me()+500,ln(e,t));do try{jv();break}catch(s){Hd(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)&&!Uv(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*Fv(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?bd.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 Uv(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));Un();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&&(Wn=me()+500,So&&en())}}function hn(e){jt!==null&&jt.tag===0&&!(te&6)&&Un();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=Dn.current,ae(Dn)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vv(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:Vn(),ae(Fe),ae(Ae),al();break;case 5:ll(r);break;case 4:Vn();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 Hd(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(Kn(a,s));break e}}o=a=Kn(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=Id(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=Rd(o,s,t);Oa(o,E);break e}}o=o.return}while(o!==null)}Wd(n)}catch(x){t=x,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(1)}function Vd(){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=Vd();(Ee!==e||Ie!==t)&&(Ct=null,ln(e,t));do try{Bv();break}catch(i){Hd(e,i)}while(1);if(rl(),te=n,so.current=r,ye!==null)throw Error(z(261));return Ee=null,Ie=0,Se}function Bv(){for(;ye!==null;)Kd(ye)}function jv(){for(;ye!==null&&!dh();)Kd(ye)}function Kd(e){var t=Qd(e.alternate,e,be);e.memoizedProps=e.pendingProps,t===null?Wd(e):ye=t,gl.current=null}function Wd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Lv(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=Dv(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,bv(e,t,n,r)}finally{et.transition=i,oe=r}return null}function bv(e,t,n,r){do Un();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(kh(e,o),e===Ee&&(ye=Ee=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Si||(Si=!0,$d(Ki,function(){return Un(),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,zv(e,n),Bd(n,e),lv(os),Gi=!!is,os=is=null,e.current=n,qv(n),ph(),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),gh(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&&Un(),o=e.pendingLanes,o&1?e===Is?Cr++:(Cr=0,Is=e):Cr=0,en(),null}function Un(){if(jt!==null){var e=xf(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(qd(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=Kn(n,t),t=Id(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=Kn(n,e),e=Rd(t,e,1),t=Wt(t,e,1),e=De(),t!==null&&(Wr(t,1,e),Be(t,e));break}}t=t.return}}function Hv(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 Gd(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 Vv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gd(e,n)}function Kv(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),Gd(e,n)}var Qd;Qd=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,Pv(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&Yf(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qi(e,t),e=t.pendingProps;var i=jn(t,Ae.current);Fn(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=Gv(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(Ad(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,td(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=Kn(Error(z(423)),t),t=Ha(e,t,r,n,i);break e}else if(r!==i){i=Kn(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=od(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return ud(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),Od(e,t),Pe(e,t,u,n),t.child;case 6:return e===null&&fs(t),null;case 13:return Pd(e,t,n);case 4:return sl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(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,Fn(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 Td(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,Fn(t,n),rd(t,r,i),hs(t,r,i,n),ms(null,t,r,!0,e,n);case 19:return Dd(e,t,n);case 22:return Nd(e,t,n)}throw Error(z(156,t.tag))};function $d(e,t){return Sf(e,t)}function Wv(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 Wv(e,t,n,r)}function kl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gv(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 En: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 rf:return Io(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tf:u=10;break e;case nf: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=rf,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 Qv(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 Qv(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 $v(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Jd(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 $f(e,n,t)}return t}function Yd(e,t,n,r,i,o,u,s,a){return e=El(n,r,!0,e,i,o,u,s,a),e.context=Jd(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=Jd(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 Jv(){return null}var Xd=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=Tf();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&&Of(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 Yv(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=Yd(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=Yv(n,t,e,i,r);return fo(u)}If=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)&&(Wn=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)}};Rf=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)}};Tf=function(){return oe};Nf=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));uf(r),Hu(r,i)}}}break;case"textarea":lf(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}};vf=wl;gf=hn;var Xv={usingClientEntryPoint:!1,Events:[Qr,Rn,_o,pf,hf,wl]},lr={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Zv={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=wf(e),e===null?null:e.stateNode},findFiberByHostInstance:lr.findFiberByHostInstance||Jv,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(Zv),wt=ki}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xv;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 $v(e,t,null,n)};We.createRoot=function(e,t){if(!Il(e))throw Error(z(299));var n=!1,r="",i=Xd;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=wf(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=Xd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Yd(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 Zd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zd)}catch(e){console.error(e)}}Zd(),Jc.exports=We;var eg=Jc.exports,tc=eg;zu.createRoot=tc.createRoot,zu.hydrateRoot=tc.hydrateRoot;var ep={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})(ep);var Qe=ep.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 Jn(){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 tg(){return ic||(ic=1,function(e){var t=Jn().default;function n(r,i){if(t(r)!="object"||!r)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 tp(){return oc||(oc=1,function(e){var t=Jn().default,n=tg();function r(i){var o=n(i,"string");return t(o)=="symbol"?o: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=tp();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 ng(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 rg(){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 ng<"u"&&(e.exports=t)})()}(du)),du.exports}var Ei={exports:{}},lc;function ig(){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 U=[301,302,303,307,308];q.redirect=function(T,R){if(U.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 og(){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(Jn()),n=og(),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 Yn(){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 ug(){if(pc)return mu;pc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Yn(),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,U=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)),U&&(h.qs=JSON.stringify(U))}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=tp();function n(r,i,o){return(i=t(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 sg(){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=Yn(),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,U=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),U&&(v.fmt_options=U),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 lg(){if(gc)return _u;gc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Yn(),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,U=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]}),U&&(g.pre_filter_expression=JSON.stringify(U)),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 ag(){if(mc)return Su;mc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Yn(),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 cg(){if(yc)return Ci.exports;yc=1;var e=Qe,t=e(Jn()),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 U=q.length,j=p(q,U),I=0;I<U;++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 fg(){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 dg(){if(_c)return Eu;_c=1;var e=Qe,t=e(ft()),n=e(dt()),r=Rl(),i=fg(),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 pg(){if(Sc)return Cu;Sc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Rl(),i=dg(),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 hg(){if(kc)return xu;kc=1;var e=Qe,t=e(Jn()),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=cg(),a=rt(),d=pg();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,U=l.variationId,j=U===void 0?C:U,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,U=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:U,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,U=p.display_name,j=p.displayName,T=j===void 0?U: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 U="".concat(c).concat(y(P,this.options)),j="POST",T=m(q,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(U,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,U=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:U,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,U=p.result_id,j=p.resultId,T=j===void 0?U: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,U=p.variationId,j=U===void 0?q:U,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,U=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;U&&(x.item_id=U),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(U){return a.toSnakeCaseKeys(U,!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,U=l.podId,j=U===void 0?q:U,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,U=l.resultPage,j=U===void 0?q:U,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,U=l.selectedFilters,j=U===void 0?q:U,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,U=l.resultPage,j=U===void 0?q:U,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,yn=l.itemName,je=yn===void 0?$e||ht:yn,wn=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),wn&&(c.analytics_tags=wn);var _n="".concat(f).concat(y({},this.options)),kt="POST",Zn=m(c,u(u({},this.options),{},{requestMethod:kt}));return this.requests.queue(_n,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 U="".concat(f).concat(y({},this.options)),j="POST",T=m(c,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(U,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,U=l.resultCount,j=U===void 0?q:U,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,U=l.itemName,j=U===void 0?q:U,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,U=l.itemName,j=U===void 0?q:U,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 vg(){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 np(){return Cc||(Cc=1,function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=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 gg(){return xc||(xc=1,function(e){var t=np();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 mg(){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 yg(){return Rc||(Rc=1,function(e){var t=np();function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(r,i):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Au)),Au.exports}var Pu={exports:{}},Tc;function wg(){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 _g(){return Nc||(Nc=1,function(e){var t=gg(),n=mg(),r=yg(),i=wg();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 Sg(){if(Oc)return Du;Oc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(_g()),i=e(Jn()),o=Yn(),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 U=u.stringify(E);return"".concat(h,"/v1/quizzes/").concat(encodeURIComponent(d),"/").concat(encodeURIComponent(k),"/?").concat(U).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 kg(){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 rp=Qe,Eg=rp(ft()),Cg=rp(dt()),xg=rg(),Ig=ig(),Rg=ug(),Tg=sg(),Ng=lg(),Og=ag(),ip=hg(),Ag=Yn(),po=rt(),Pg=vg(),Dg=Pg.default,Lg=Sg(),Mg=kg(),zg=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(Dg)},Nl=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,Eg.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 xg(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||zg(),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||Ig({Promise}).fetch,trackingSendDelay:_,sendTrackingEvents:l,sendReferrerWithTrackingEvents:w,eventDispatcher:p,beaconMode:c!==!1,networkParameters:h||{}},this.search=new Rg(this.options),this.browse=new Tg(this.options),this.autocomplete=new Ng(this.options),this.recommendations=new Og(this.options),this.tracker=new ip(this.options),this.quizzes=new Lg(this.options),this.assistant=new Mg(this.options),new Ag(t.eventDispatcher).queue("instantiated",this.options)}return(0,Cg.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=ip;po.canUseDOM()&&(window.ConstructorioClient=Nl);var qg=Nl;const Fg=Ps(qg),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}},Ug=e=>{try{return Ol(e.scope).removeItem(e.key)}catch(t){return Ao(`storageRemoveItem error: ${t}`),null}},Bg=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("")},jg=e=>{try{return Ol(e.scope).getItem(e.key)}catch(t){return Ao(`storageGetItem error: ${t}`),null}},op=e=>{const t=jg(e);if(t)try{return JSON.parse(t)}catch(n){Ao(`storageGetArray error: ${n}`)}return null},bg=()=>{const e=op(St.RECENT_SEARCHES_STORAGE_KEY)||[];return e.forEach((t,n)=>{typeof t=="string"&&(e[n]={term:t,ts:Date.now()})}),e},Hg=(e,t)=>{const n=Bg(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>St.RECENT_SEARCHES_STORAGE_COUNT;)r.shift();Al(St.RECENT_SEARCHES_STORAGE_KEY,JSON.stringify(r))}},up=()=>op(St.RECENT_ACTIONS_STORAGE_KEY)||[],Vg=()=>{var t;const e=up();return e&&e.length?(t=e[e.length-1])==null?void 0:t.action:null},Kg=e=>{let t=up();e&&(Vg()!==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 Wg(e){return e.section==="Products"}function Gg(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 Xn(e){return e.type==="recommendations"}const Qg="1.23.26";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 $g=({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}},Dc=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 Fg({apiKey:e,sendTrackingEvents:!0,version:`cio-ui-autocomplete-${Qg}`,...t});return n.tracker.on("error",r=>console.error(r)),n}return null},Yg=(e,t,n,r)=>{const i=[],o=u=>{const{type:s}=u;let a;switch(s){case"recommendations":a=t[u.podId];break;case"custom":a=u.data.map(d=>{var m;return{...d,id:(d==null?void 0:d.id)||((m=d==null?void 0:d.data)==null?void 0:m.id)}});break;default:a=t[u.indexSectionName]}return a};return e==null||e.forEach((u,s)=>{const a=o(u);if(Array.isArray(a)){const d={...u,data:a};u.type==="recommendations"&&(d.displayName=u.displayName||r[u.podId].displayName);const m=u.ref,y=n.current[s];d.ref=m||y,i.push(d)}}),i},Xg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zg=(e,t,n)=>{if(e.dataset.cnstrcRecommendationsPodId){const r=t.find(o=>Xn(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},cp=(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),Hg(t,{}),Kg(St.SEARCH_SUBMIT)},tm=(e,t,n={})=>{e==null||e.tracker.trackAutocompleteSelect(t,n),(n==null?void 0:n.section)==="Products"&&Ug(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"),F.useMemo(()=>t||Jg(e,n),[e,t,n]));function hr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}var fp={exports:{}},rm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",im=rm,om=im;function dp(){}function pp(){}pp.resetWarningCache=dp;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:pp,resetWarningCache:dp};return n.PropTypes=n,n};fp.exports=um();var sm=fp.exports;const B=Ps(sm);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 Nv=typeof WeakMap=="function"?WeakMap:Map;function Rd(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 Td(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 Fa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nv;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=Hv.bind(null,e,t,n),t.then(e,e))}function Ua(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 Ba(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 Ov=Dt.ReactCurrentOwner,qe=!1;function Pe(e,t,n,r){t.child=e===null?ud(t,null,n,r):Hn(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return Fn(t,i),r=dl(e,t,n,r,o,i),n=pl(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(fe&&n&&el(t),t.flags|=1,Pe(e,t,r,i),t.child)}function ba(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!El(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Nd(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 Nd(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 Od(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(Dn,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(Dn,be),be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ue(Dn,be),be|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ue(Dn,be),be|=r;return Pe(e,t,i,n),t.child}function Ad(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=jn(t,o),Fn(t,i),n=dl(e,t,n,r,o,i),r=pl(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(fe&&r&&el(t),t.flags|=1,Pe(e,t,n,i),t.child)}function Ha(e,t,n,r,i){if(Ue(n)){var o=!0;Xi(t)}else o=!1;if(Fn(t,i),t.stateNode===null)qi(e,t),id(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=jn(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)&&La(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||Da(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,nd(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=jn(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)&&La(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||Da(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){Ad(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return i&&Ta(t,n,!1),Pt(e,t,o);r=t.stateNode,Ov.current=t;var s=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=Hn(t,e.child,null,o),t.child=Hn(t,null,s,o)):Pe(e,t,s,o),t.memoizedState=r.state,i&&Ta(t,n,!0),t.child}function Pd(e){var t=e.stateNode;t.pendingContext?Ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ra(e,t.context,!1),ll(e,t.containerInfo)}function Va(e,t,n,r,i){return bn(),nl(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 Dd(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):gl(t,u));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Av(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 gl(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&&nl(r),Hn(t,e.child,null,n),e=gl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Av(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&&Hn(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 kl(),r=ru(Error(z(421))),wi(e,t,u,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Vv.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=gl(t,r.children),t.flags|=4096,t)}function Ka(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 Ld(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&&Ka(e,n,t);else if(e.tag===19)Ka(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 Pv(e,t,n){switch(t.tag){case 3:Pd(t),bn();break;case 5:sd(t);break;case 1:Ue(t.type)&&Xi(t);break;case 4:ll(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?Dd(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 Ld(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,Od(e,t,n)}return Pt(e,t,n)}var Md,_s,zd,qd;Md=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(){};zd=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)}};qd=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 Dv(e,t,n){var r=t.pendingProps;switch(tl(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,Vn(),ae(Fe),ae(Ae),cl(),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:al(t);var i=sn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)zd(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":ea(r,o),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},le("invalid",r);break;case"textarea":na(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),ta(r,o,!0);break;case"textarea":li(r),ra(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=cf(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,Md(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":ea(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":na(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"?pf(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ff(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&&Bs(e,o,a,u))}switch(n){case"input":li(e),ta(e,r,!1);break;case"textarea":li(e),ra(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?Ln(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ln(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)qd(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))ed(),bn(),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 bn(),!(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):kl())),t.updateQueue!==null&&(t.flags|=4),Ne(t),null);case 4:return Vn(),_s(e,t),e===null&&Mr(t.stateNode.containerInfo),Ne(t),null;case 10:return ol(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()>Wn&&(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>Wn&&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 Sl(),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 Lv(e,t){switch(tl(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 Vn(),ae(Fe),ae(Ae),cl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return al(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Vn(),null;case 10:return ol(t.type._context),null;case 22:case 23:return Sl(),null;case 24:return null;default:return null}}var _i=!1,Oe=!1,Mv=typeof WeakSet=="function"?WeakSet:Set,K=null;function Pn(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 Wa=!1;function zv(e,t){if(is=Gi,e=jf(),Zs(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=Wa,Wa=!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 Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(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[yv],delete t[wv])),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 Ud(e){return e.tag===5||e.tag===3||e.tag===4}function Ga(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ud(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;)Bd(e,t,n),n=n.sibling}function Bd(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(go,n)}catch{}switch(n.tag){case 5:Oe||Pn(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&&(Pn(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 Qa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mv),t.forEach(function(r){var i=Kv.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));Bd(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;)jd(t,e),t=t.sibling}function jd(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&&Pn(n,n.return);break;case 5:if(it(t,e),gt(e),r&512&&n!==null&&Pn(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&&lf(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"?pf(i,y):m==="dangerouslySetInnerHTML"?ff(i,y):m==="children"?Tr(i,y):Bs(i,m,y,d)}switch(s){case"input":Hu(i,o);break;case"textarea":af(i,o);break;case"select":var k=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var _=o.value;_!=null?Ln(i,!!o.multiple,_,!1):k!==!!o.multiple&&(o.defaultValue!=null?Ln(i,!!o.multiple,o.defaultValue,!0):Ln(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||(wl=me())),r&4&&Qa(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:Pn(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:Pn(k,k.return);break;case 22:if(k.memoizedState!==null){Ja(y);continue}}_!==null?(_.return=k,K=_):Ja(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=df("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&&Qa(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(Ud(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=Ga(e);Cs(e,o,i);break;case 3:case 4:var u=r.stateNode.containerInfo,s=Ga(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 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,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?Ya(i):a!==null?(a.return=u,K=a):Ya(i);for(;o!==null;)K=o,bd(o),o=o.sibling;K=i,_i=s,Oe=d}$a(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,K=o):$a(e)}}function $a(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&&Pa(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}Pa(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 Ja(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 Ya(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 Fv=Math.ceil,so=Dt.ReactCurrentDispatcher,ml=Dt.ReactCurrentOwner,et=Dt.ReactCurrentBatchConfig,te=0,Ee=null,ye=null,Ie=0,be=0,Dn=Zt(0),Se=0,Hr=null,pn=0,xo=0,yl=0,Er=null,ze=null,wl=0,Wn=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:Sv.transition!==null?(Ui===0&&(Ui=xf()),Ui):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Pf(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)&&(Wn=me()+500,So&&en()))}function Be(e,t){var n=e.callbackNode;Sh(e,t);var r=Wi(e,e===Ee?Ie:0);if(r===0)n!==null&&ua(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ua(n),t===1)e.tag===0?_v(Xa.bind(null,e)):Yf(Xa.bind(null,e)),gv(function(){!(te&6)&&en()}),n=null;else{switch(If(r)){case 1:n=Ks;break;case 4:n=Ef;break;case 16:n=Ki;break;case 536870912:n=Cf;break;default:n=Ki}n=Jd(n,Hd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Hd(e,t){if(Fi=-1,Ui=0,te&6)throw Error(z(327));var n=e.callbackNode;if(Un()&&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=Kd();(Ee!==e||Ie!==t)&&(Ct=null,Wn=me()+500,ln(e,t));do try{jv();break}catch(s){Vd(e,s)}while(1);il(),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)&&!Uv(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=wl+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*Fv(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?Hd.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 Uv(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&=~yl,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 Xa(e){if(te&6)throw Error(z(327));Un();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 _l(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Wn=me()+500,So&&en())}}function hn(e){jt!==null&&jt.tag===0&&!(te&6)&&Un();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 Sl(){be=Dn.current,ae(Dn)}function ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vv(n)),ye!==null)for(n=ye.return;n!==null;){var r=n;switch(tl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:Vn(),ae(Fe),ae(Ae),cl();break;case 5:al(r);break;case 4:Vn();break;case 13:ae(de);break;case 19:ae(de);break;case 10:ol(r.type._context);break;case 22:case 23:Sl()}n=n.return}if(Ee=e,ye=e=$t(e.current,null),Ie=be=t,Se=0,Hr=null,yl=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 Vd(e,t){do{var n=ye;try{if(il(),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,ml.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 _=Ua(u);if(_!==null){_.flags&=-257,Ba(_,u,s,o,t),_.mode&1&&Fa(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)){Fa(o,d,t),kl();break e}a=Error(z(426))}}else if(fe&&s.mode&1){var p=Ua(u);if(p!==null){!(p.flags&65536)&&(p.flags|=256),Ba(p,u,s,o,t),nl(Kn(a,s));break e}}o=a=Kn(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=Rd(o,a,t);Aa(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=Td(o,s,t);Aa(o,E);break e}}o=o.return}while(o!==null)}Gd(n)}catch(x){t=x,ye===n&&n!==null&&(ye=n=n.return);continue}break}while(1)}function Kd(){var e=so.current;return so.current=uo,e===null?uo:e}function kl(){(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=Kd();(Ee!==e||Ie!==t)&&(Ct=null,ln(e,t));do try{Bv();break}catch(i){Vd(e,i)}while(1);if(il(),te=n,so.current=r,ye!==null)throw Error(z(261));return Ee=null,Ie=0,Se}function Bv(){for(;ye!==null;)Wd(ye)}function jv(){for(;ye!==null&&!dh();)Wd(ye)}function Wd(e){var t=$d(e.alternate,e,be);e.memoizedProps=e.pendingProps,t===null?Gd(e):ye=t,ml.current=null}function Gd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Lv(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=Dv(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,bv(e,t,n,r)}finally{et.transition=i,oe=r}return null}function bv(e,t,n,r){do Un();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(kh(e,o),e===Ee&&(ye=Ee=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Si||(Si=!0,Jd(Ki,function(){return Un(),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,ml.current=null,zv(e,n),jd(n,e),lv(os),Gi=!!is,os=is=null,e.current=n,qv(n),ph(),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),gh(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&&Un(),o=e.pendingLanes,o&1?e===Is?Cr++:(Cr=0,Is=e):Cr=0,en(),null}function Un(){if(jt!==null){var e=If(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(Fd(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 Za(e,t,n){t=Kn(n,t),t=Rd(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)Za(e,e,n);else for(;t!==null;){if(t.tag===3){Za(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=Kn(n,e),e=Td(t,e,1),t=Wt(t,e,1),e=De(),t!==null&&(Wr(t,1,e),Be(t,e));break}}t=t.return}}function Hv(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()-wl?ln(e,0):yl|=n),Be(e,t)}function Qd(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 Vv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qd(e,n)}function Kv(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),Qd(e,n)}var $d;$d=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,Pv(e,t,n);qe=!!(e.flags&131072)}else qe=!1,fe&&t.flags&1048576&&Xf(t,eo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qi(e,t),e=t.pendingProps;var i=jn(t,Ae.current);Fn(t,n),i=dl(null,t,r,e,i,n);var o=pl();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,sl(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&&el(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=Gv(r),e=ot(r,e),i){case 0:t=gs(null,t,r,e,n);break e;case 1:t=Ha(null,t,r,e,n);break e;case 11:t=ja(null,t,r,e,n);break e;case 14:t=ba(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),Ha(e,t,r,i,n);case 3:e:{if(Pd(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,nd(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=Kn(Error(z(423)),t),t=Va(e,t,r,n,i);break e}else if(r!==i){i=Kn(Error(z(424)),t),t=Va(e,t,r,n,i);break e}else for(He=Kt(t.stateNode.containerInfo.firstChild),Ve=t,fe=!0,st=null,n=ud(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=Pt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return sd(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),Ad(e,t),Pe(e,t,u,n),t.child;case 6:return e===null&&fs(t),null;case 13:return Dd(e,t,n);case 4:return ll(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(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),ja(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,Fn(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),ba(e,t,r,i,n);case 15:return Nd(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,Fn(t,n),id(t,r,i),hs(t,r,i,n),ms(null,t,r,!0,e,n);case 19:return Ld(e,t,n);case 22:return Od(e,t,n)}throw Error(z(156,t.tag))};function Jd(e,t){return kf(e,t)}function Wv(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 Wv(e,t,n,r)}function El(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gv(e){if(typeof e=="function")return El(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bs)return 11;if(e===Hs)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")El(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case En:return an(n.children,i,o,t);case js: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 of:return Io(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nf:u=10;break e;case rf:u=9;break e;case bs:u=11;break e;case Hs: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=of,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 Qv(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 Cl(e,t,n,r,i,o,u,s,a){return e=new Qv(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},sl(o),e}function $v(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Yd(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 Jf(e,n,t)}return t}function Xd(e,t,n,r,i,o,u,s,a){return e=Cl(n,r,!0,e,i,o,u,s,a),e.context=Yd(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=Yd(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 ec(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xl(e,t){ec(e,t),(e=e.alternate)&&ec(e,t)}function Jv(){return null}var Zd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Il(e){this._internalRoot=e}To.prototype.render=Il.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));Ro(e,t,null,null)};To.prototype.unmount=Il.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=Nf();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&&Af(e)}};function Rl(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 tc(){}function Yv(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=Xd(t,r,e,0,null,!1,!1,"",tc);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=Cl(e,0,!1,null,null,!1,!1,"",tc);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=Yv(n,t,e,i,r);return fo(u)}Rf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dr(t.pendingLanes);n!==0&&(Ws(t,n|1),Be(t,me()),!(te&6)&&(Wn=me()+500,en()))}break;case 13:hn(function(){var r=At(e,1);if(r!==null){var i=De();at(r,e,1,i)}}),xl(e,1)}};Gs=function(e){if(e.tag===13){var t=At(e,134217728);if(t!==null){var n=De();at(t,e,134217728,n)}xl(e,134217728)}};Tf=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)}xl(e,t)}};Nf=function(){return oe};Of=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));sf(r),Hu(r,i)}}}break;case"textarea":af(e,n);break;case"select":t=n.value,t!=null&&Ln(e,!!n.multiple,t,!1)}};gf=_l;mf=hn;var Xv={usingClientEntryPoint:!1,Events:[Qr,Rn,_o,hf,vf,_l]},lr={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Zv={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=_f(e),e===null?null:e.stateNode},findFiberByHostInstance:lr.findFiberByHostInstance||Jv,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(Zv),wt=ki}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xv;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rl(t))throw Error(z(200));return $v(e,t,null,n)};We.createRoot=function(e,t){if(!Rl(e))throw Error(z(299));var n=!1,r="",i=Zd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cl(e,1,!1,null,null,n,!1,r,i),e[Ot]=t.current,Mr(e.nodeType===8?e.parentNode:e),new Il(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=_f(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(!Rl(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",u=Zd;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=Xd(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=_l;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 ep(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ep)}catch(e){console.error(e)}}ep(),Yc.exports=We;var eg=Yc.exports,nc=eg;zu.createRoot=nc.createRoot,zu.hydrateRoot=nc.hydrateRoot;var tp={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})(tp);var Qe=tp.exports,su={exports:{}},rc;function ft(){return rc||(rc=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:{}},ic;function Jn(){return ic||(ic=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:{}},oc;function tg(){return oc||(oc=1,function(e){var t=Jn().default;function n(r,i){if(t(r)!="object"||!r)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 uc;function np(){return uc||(uc=1,function(e){var t=Jn().default,n=tg();function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(au)),au.exports}var sc;function dt(){return sc||(sc=1,function(e){var t=np();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 ng(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:{}},lc;function rg(){return lc||(lc=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 ng<"u"&&(e.exports=t)})()}(du)),du.exports}var Ei={exports:{}},ac;function ig(){return ac||(ac=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 U=[301,302,303,307,308];q.redirect=function(T,R){if(U.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 cc;function og(){return cc||(cc=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,fc;function Tl(){if(fc)return hu;fc=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,dc;function rt(){if(dc)return vu;dc=1;var e=Qe,t=e(Jn()),n=og(),r=Tl(),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,pc;function Yn(){if(pc)return gu;pc=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,hc;function ug(){if(hc)return mu;hc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Yn(),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,U=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)),U&&(h.qs=JSON.stringify(U))}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:{}},vc;function Nl(){return vc||(vc=1,function(e){var t=np();function n(r,i,o){return(i=t(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,gc;function sg(){if(gc)return wu;gc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(Nl());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=Yn(),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,U=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),U&&(v.fmt_options=U),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,mc;function lg(){if(mc)return _u;mc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Yn(),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,U=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]}),U&&(g.pre_filter_expression=JSON.stringify(U)),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,yc;function ag(){if(yc)return Su;yc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Yn(),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:{}},wc;function cg(){if(wc)return Ci.exports;wc=1;var e=Qe,t=e(Jn()),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 U=q.length,j=p(q,U),I=0;I<U;++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,_c;function fg(){return _c||(_c=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,Sc;function dg(){if(Sc)return Eu;Sc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Tl(),i=fg(),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,kc;function pg(){if(kc)return Cu;kc=1;var e=Qe,t=e(ft()),n=e(dt()),r=Tl(),i=dg(),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,Ec;function hg(){if(Ec)return xu;Ec=1;var e=Qe,t=e(Jn()),n=e(Nl()),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=cg(),a=rt(),d=pg();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,U=l.variationId,j=U===void 0?C:U,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,U=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:U,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,U=p.display_name,j=p.displayName,T=j===void 0?U: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 U="".concat(c).concat(y(P,this.options)),j="POST",T=m(q,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(U,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,U=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:U,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,U=p.result_id,j=p.resultId,T=j===void 0?U: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,U=p.variationId,j=U===void 0?q:U,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,U=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;U&&(x.item_id=U),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(U){return a.toSnakeCaseKeys(U,!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,U=l.podId,j=U===void 0?q:U,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,U=l.resultPage,j=U===void 0?q:U,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,U=l.selectedFilters,j=U===void 0?q:U,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,U=l.resultPage,j=U===void 0?q:U,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,yn=l.itemName,je=yn===void 0?$e||ht:yn,wn=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),wn&&(c.analytics_tags=wn);var _n="".concat(f).concat(y({},this.options)),kt="POST",Zn=m(c,u(u({},this.options),{},{requestMethod:kt}));return this.requests.queue(_n,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 U="".concat(f).concat(y({},this.options)),j="POST",T=m(c,u(u({},this.options),{},{requestMethod:j}));return this.requests.queue(U,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,U=l.resultCount,j=U===void 0?q:U,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,U=l.itemName,j=U===void 0?q:U,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,U=l.itemName,j=U===void 0?q:U,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={},Cc;function vg(){return Cc||(Cc=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:{}},xc;function rp(){return xc||(xc=1,function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=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 Ic;function gg(){return Ic||(Ic=1,function(e){var t=rp();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:{}},Rc;function mg(){return Rc||(Rc=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:{}},Tc;function yg(){return Tc||(Tc=1,function(e){var t=rp();function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(r,i):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Au)),Au.exports}var Pu={exports:{}},Nc;function wg(){return Nc||(Nc=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 Oc;function _g(){return Oc||(Oc=1,function(e){var t=gg(),n=mg(),r=yg(),i=wg();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,Ac;function Sg(){if(Ac)return Du;Ac=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(_g()),i=e(Jn()),o=Yn(),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 U=u.stringify(E);return"".concat(h,"/v1/quizzes/").concat(encodeURIComponent(d),"/").concat(encodeURIComponent(k),"/?").concat(U).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:{}},Pc;function kg(){if(Pc)return ar.exports;Pc=1;var e=Qe,t=e(ft()),n=e(dt()),r=e(Nl()),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 ip=Qe,Eg=ip(ft()),Cg=ip(dt()),xg=rg(),Ig=ig(),Rg=ug(),Tg=sg(),Ng=lg(),Og=ag(),op=hg(),Ag=Yn(),po=rt(),Pg=vg(),Dg=Pg.default,Lg=Sg(),Mg=kg(),zg=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(Dg)},Ol=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,Eg.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 xg(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||zg(),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||Ig({Promise}).fetch,trackingSendDelay:_,sendTrackingEvents:l,sendReferrerWithTrackingEvents:w,eventDispatcher:p,beaconMode:c!==!1,networkParameters:h||{}},this.search=new Rg(this.options),this.browse=new Tg(this.options),this.autocomplete=new Ng(this.options),this.recommendations=new Og(this.options),this.tracker=new op(this.options),this.quizzes=new Lg(this.options),this.assistant=new Mg(this.options),new Ag(t.eventDispatcher).queue("instantiated",this.options)}return(0,Cg.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}();Ol.Tracker=op;po.canUseDOM()&&(window.ConstructorioClient=Ol);var qg=Ol;const Fg=Ds(qg),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},Al=e=>e==="local"?localStorage:sessionStorage,Pl=(e,t)=>{try{return Al(e.scope).setItem(e.key,t)}catch(n){return Ao(`storageSetItem error: ${n}`),null}},Ug=e=>{try{return Al(e.scope).removeItem(e.key)}catch(t){return Ao(`storageRemoveItem error: ${t}`),null}},Bg=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("")},jg=e=>{try{return Al(e.scope).getItem(e.key)}catch(t){return Ao(`storageGetItem error: ${t}`),null}},up=e=>{const t=jg(e);if(t)try{return JSON.parse(t)}catch(n){Ao(`storageGetArray error: ${n}`)}return null},bg=()=>{const e=up(St.RECENT_SEARCHES_STORAGE_KEY)||[];return e.forEach((t,n)=>{typeof t=="string"&&(e[n]={term:t,ts:Date.now()})}),e},Hg=(e,t)=>{const n=Bg(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>St.RECENT_SEARCHES_STORAGE_COUNT;)r.shift();Pl(St.RECENT_SEARCHES_STORAGE_KEY,JSON.stringify(r))}},sp=()=>up(St.RECENT_ACTIONS_STORAGE_KEY)||[],Vg=()=>{var t;const e=sp();return e&&e.length?(t=e[e.length-1])==null?void 0:t.action:null},Kg=e=>{let t=sp();e&&(Vg()!==e&&t.push({action:e,ts:Date.now()}),t.length>St.RECENT_ACTION_STORAGE_COUNT&&(t=t.slice(-1*St.RECENT_ACTION_STORAGE_COUNT)),Pl(St.RECENT_ACTIONS_STORAGE_KEY,JSON.stringify(t)))};function Wg(e){return e.section==="Products"}function Gg(e){return e.section==="Search Suggestions"}function lp(e){return e.groupName!==void 0}function Dc(e){return e.type==="custom"}function ap(e){return e.type==="autocomplete"||!e.type}function Xn(e){return e.type==="recommendations"}const Qg="1.23.27";function cp(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 $g=({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}},Lc=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 Fg({apiKey:e,sendTrackingEvents:!0,version:`cio-ui-autocomplete-${Qg}`,...t});return n.tracker.on("error",r=>console.error(r)),n}return null},Yg=(e,t,n,r)=>{const i=[],o=u=>{const{type:s}=u;let a;switch(s){case"recommendations":a=t[u.podId];break;case"custom":a=u.data.map(d=>{var m;return{...d,id:(d==null?void 0:d.id)||((m=d==null?void 0:d.data)==null?void 0:m.id)}});break;default:a=t[u.indexSectionName]}return a};return e==null||e.forEach((u,s)=>{const a=o(u);if(Array.isArray(a)){const d={...u,data:a};u.type==="recommendations"&&(d.displayName=u.displayName||r[u.podId].displayName);const m=u.ref,y=n.current[s];d.ref=m||y,i.push(d)}}),i},Xg=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zg=(e,t,n)=>{if(e.dataset.cnstrcRecommendationsPodId){const r=t.find(o=>Xn(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},fp=(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),Pl(St.SEARCH_TERM_STORAGE_KEY,t),Hg(t,{}),Kg(St.SEARCH_SUBMIT)},tm=(e,t,n={})=>{e==null||e.tracker.trackAutocompleteSelect(t,n),(n==null?void 0:n.section)==="Products"&&Ug(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"),F.useMemo(()=>t||Jg(e,n),[e,t,n]));function hr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}var dp={exports:{}},rm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",im=rm,om=im;function pp(){}function hp(){}hp.resetWarningCache=pp;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:hp,resetWarningCache:pp};return n.PropTypes=n,n};dp.exports=um();var sm=dp.exports;const B=Ds(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 Po=60103,Do=60106,Jr=60107,Yr=60108,Xr=60114,Zr=60109,ei=60110,ti=60112,ni=60113,Pl=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;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"),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 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===mp||e===Yr||e===ni||e===Pl||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 Lc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Mc=(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 Mc(n.overflowY,t)||Mc(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(!Lc(e))throw new TypeError("Invalid target");let w=document.scrollingElement||document.documentElement,l=[],p=e;for(;Lc(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 U=l[q],{height:j,width:T,top:R,right:A,bottom:D,left:M}=U.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(U),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 U?U.offsetWidth-U.clientWidth-Q-V:0,$="offsetHeight"in U?U.offsetHeight-U.clientHeight-Y-J:0,X="offsetWidth"in U?U.offsetWidth===0?0:T/U.offsetWidth:0,re="offsetHeight"in U?U.offsetHeight===0?0:j/U.offsetHeight:0;if(w===U)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}=U;H=Math.max(0,Math.min(ie+H/re,U.scrollHeight-j/re+$)),b=Math.max(0,Math.min(ee+b/X,U.scrollWidth-T/X+W)),O+=ie-H,N+=ee-b}P.push({el:U,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 wp(){}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 zc(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function _p(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]=Sp(t,r)?t[r]:e[r],n},{})}function Sp(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 qc(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(zc(i,e,n)||r&&zc(i,n.document.activeElement,n))})}var xm=_p(function(e){kp(e).textContent=""},500);function Im(e,t){var n=kp(t);e&&(n.textContent=e,xm(t))}function kp(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"],Ep={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=_p(function(e,t){Im(e(),t)},200),Dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?F.useLayoutEffect:F.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=F.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 Cp(e){var t=F.useRef(e);return t.current=e,t}function qm(e,t,n){var r=F.useRef(),i=F.useRef(),o=F.useCallback(function(k,_){i.current=_,k=As(k,_.props);var w=e(k,_),l=_.props.stateReducer(k,ce({},_,{changes:w}));return l},[e]),u=F.useReducer(o,t),s=u[0],a=u[1],d=Cp(n),m=F.useCallback(function(k){return a(ce({props:d.current},k))},[d]),y=i.current;return F.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=Ep);var r=e["default"+Dl(t)];return r!==void 0?r:n[t]}function Ti(e,t,n){n===void 0&&(n=Ep);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=F.useRef({isMouseDown:!1,isTouchMove:!1});return F.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},a=function(){i.current.isTouchMove=!0},d=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",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 wp};function Fc(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,o=n.items,u=n.environment,s=hr(n,Rm);F.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=F.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=wp;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)}B.array.isRequired,B.func,B.func,B.func,B.number,B.number,B.number,B.bool,B.bool,B.bool,B.any,B.any,B.any,B.string,B.string,B.string,B.func,B.string,B.func,B.func,B.func,B.func,B.func,B.shape({addEventListener:B.func,removeEventListener:B.func,document:B.shape({getElementById:B.func,activeElement:B.any,body:B.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,xp=11,Ip=12,Vl=13,Rp=14,Tp=15,Np=16,Op=17,Ap=18,Kl=19,Pp=20,Dp=21,Wl=22,Lp=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:xp,ItemMouseMove:Ip,ItemClick:Vl,ToggleButtonClick:Rp,FunctionToggleMenu:Tp,FunctionOpenMenu:Np,FunctionCloseMenu:Op,FunctionSetHighlightedIndex:Ap,FunctionSelectItem:Kl,FunctionSetInputValue:Pp,FunctionReset:Dp,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})}B.array.isRequired,B.func,B.func,B.func,B.number,B.number,B.number,B.bool,B.bool,B.bool,B.any,B.any,B.any,B.string,B.string,B.string,B.string,B.string,B.string,B.func,B.string,B.string,B.func,B.func,B.func,B.func,B.func,B.func,B.shape({addEventListener:B.func,removeEventListener:B.func,document:B.shape({getElementById:B.func,activeElement:B.any,body:B.any})});function Wm(e,t,n){var r=F.useRef(),i=qm(e,t,n),o=i[0],u=i[1];return F.useEffect(function(){Sp(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,Lp)}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"];Mp.stateChangeTypes=Lp;function Mp(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=F.useRef(null),h=F.useRef({}),E=F.useRef(null),x=F.useRef(null),S=F.useRef(!0),v=Lm(t),g=F.useRef(),I=Cp({state:k,props:t}),C=F.useCallback(function(H){return h.current[v.getItemId(H)]},[v]);Fc(s,[w,l,f,i],ce({isInitialMount:S.current,previousResultCount:g.current,items:i,environment:u,itemToString:d},k)),Fc(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}),F.useEffect(function(){var H=n||r||w;H&&E.current&&E.current.focus()},[]),F.useEffect(function(){S.current||(g.current=i.length)});var N=Um(w,[E,c,x],u,function(){_({type:vo,selectItem:!1})}),P=Bm();F.useEffect(function(){return S.current=!1,function(){S.current=!0}},[]),F.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=F.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]),U=F.useCallback(function(H){return ce({id:v.labelId,htmlFor:v.inputId},H)},[v]),j=F.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:xp})}),W),ve)},[_,P,v]),T=F.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,yn=hr($,Jm),je=I.current,wn=je.props,_n=je.state,kt=Mm(re,X,wn.items);if(kt<0)throw new Error("Pass either item or item index in getItemProps!");var Zn="onClick",Lo=$e,oi=function(){re!==_n.highlightedIndex&&(O.current=!1,_({type:Ip,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===_n.highlightedIndex),b.id=v.getItemId(kt),b),!ht&&(W={},W[Zn]=Et(Lo,Lt),W),{onMouseMove:Et(ne,oi),onMouseDown:Et(we,tn)},yn)},[_,I,O,v]),R=F.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:Rp})};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=F.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),yn=b===void 0?{}:b;yn.suppressRefError;var je=I.current.state,wn=function(vt){var er=Cm(vt);er&&q[er]&&q[er](vt)},_n=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,_n),Lt.onKeyDown=Et(X,wn),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=F.useCallback(function(){_({type:Tp})},[_]),M=F.useCallback(function(){_({type:Op})},[_]),L=F.useCallback(function(){_({type:Np})},[_]),Q=F.useCallback(function(H){_({type:Ap,highlightedIndex:H})},[_]),Y=F.useCallback(function(H){_({type:Kl,selectedItem:H})},[_]),V=F.useCallback(function(H){_({type:Pp,inputValue:H})},[_]),J=F.useCallback(function(){_({type:Dp})},[_]);return{getItemProps:T,getLabelProps:U,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."}B.array,B.array,B.array,B.func,B.func,B.func,B.number,B.number,B.number,B.func,B.func,B.string,B.string,B.shape({addEventListener:B.func,removeEventListener:B.func,document:B.shape({getElementById:B.func,activeElement:B.any,body:B.any})});xr.itemToString,xr.stateReducer,xr.environment;let ey=0;const ty=({setQuery:e,items:t,onSubmit:n,cioClient:r,previousQuery:i="",...o})=>Mp({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=F.useRef();return F.useEffect(()=>{t.current=e},[e]),t.current},ry=(e,t)=>{F.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]=F.useState(i?r:t);return{activeSections:F.useMemo(()=>o.map(a=>{const d=a;if(Xn(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]=F.useState(e);return F.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]=F.useState({sectionsData:{},request:{},totalNumResultsPerSection:{}}),u=oy(e,r==null?void 0:r.debounce),{numTermsWithGroupSuggestions:s=0,numGroupsSuggestedPerTerm:a=0}=r||{},d=F.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 F.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]=F.useState({}),[o,u]=F.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 F.useEffect(()=>{n||s()},[e,t]),{fetchRecommendationResults:s,recommendationsResults:r,podsData:o}};function ay(e,t,n,r){const i=F.useMemo(()=>n==null?void 0:n.filter(k=>lp(k)),[n]),{sectionsData:o,request:u,totalNumResultsPerSection:s}=sy(e,t,i,r),a=F.useMemo(()=>n==null?void 0:n.filter(k=>Xn(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,i){const[o,u]=F.useState([]);return F.useEffect(()=>{const s=Yg(t,e,n,i);(s.length||!r)&&u(s)},[t,e,n,r,i]),o}function fy(e,t,n,r,i){F.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 dy(e,t,n,r,i){const[o,u]=F.useState({}),{activeSections:s,showZeroStateSections:a,setActiveSections:d}=iy(e,n,o,r),m=F.useRef(s.map(()=>F.createRef())),{recommendations:y,autocomplete:k}=ay(e,t,s,i);F.useEffect(()=>{y.podsData||u(y.podsData)},[y.podsData]),fy(n,o,d,a,r);const _=F.useMemo(()=>({...k.results,...y.results}),[k.results,y.results]),w=cy(_,s,m,e,y.podsData);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=>Xn(o)).map(o=>o.ref);F.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]),F.useEffect(()=>{e||Mu.clear()},[e])}const hy=[{indexSectionName:"Search Suggestions",type:"autocomplete"},{indexSectionName:"Products",type:"autocomplete"}],vy=e=>e.map(t=>{if(Xn(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}),Uc=e=>e&&vy(e),gy=e=>{const{sections:t=hy,zeroStateSections:n,cioJsClientOptions:r,advancedParameters:i}=e,o=F.useMemo(()=>Uc(t),[JSON.stringify(t)]),u=F.useMemo(()=>Uc(n),[JSON.stringify(n)]),s=F.useMemo(()=>r,[JSON.stringify(r)]),a=F.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]=F.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=F.useMemo(()=>ap(v),[v]),C=F.useMemo(()=>em(x),[x]),{isOpen:O,getMenuProps:N,getLabelProps:P,openMenu:q,closeMenu:U,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,getMenuProps:()=>({...N(),className:"cio-results","data-testid":"cio-results","data-cnstrc-autosuggest":""}),getLabelProps:P,openMenu:q,closeMenu:U,getItemProps:A=>{var Q;const{index:D,sectionId:M}=$g({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),Xn(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:_}},mn=F.createContext({});function Bc(e){const{children:t,...n}=e,r=my(n);return G.createElement(mn.Provider,{value:r},G.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(`(${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 jc(e){var m,y,k,_;const{item:t,displaySearchTermHighlights:n}=e,{advancedParameters:r,query:i,featureToggles:o}=F.useContext(mn),{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}=F.useContext(mn),{translations:a}=o||{};let d;return Wg(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}))):sp(t)?d=G.createElement("p",{className:"cio-term-in-group"},cp("in",a)," ",G.createElement(ji,{item:t,query:u,highlightSearchTerm:r})):Gg(t)?s?d=G.createElement("a",{className:"suggestion-link",href:s(t)},G.createElement(jc,{item:t,displaySearchTermHighlights:r})):d=G.createElement(jc,{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)}function wy(e){const{renderItem:t,item:n,query:r}=e,{getItemProps:i}=F.useContext(mn),o=F.useRef(null),u=F.useMemo(()=>t({item:n,query:r,getItemProps:i}),[n]),s=u instanceof HTMLElement,a=F.isValidElement(u);return F.useEffect(()=>{s&&o.current&&(o.current.innerHTML="",o.current.appendChild(u))},[n]),a?u:s?G.createElement("div",{...i(n),ref:o}):null}function _y(){return G.createElement("div",{className:"cio-no-results-message"},"No Results Found")}const Sy=function({section:e}){var k,_,w;const{getSectionProps:t,query:n,getFormProps:r,advancedParameters:i}=F.useContext(mn),{displayShowAllResultsButton:o,translations:u}=i||{},{onSubmit:s}=r(),{type:a,displayName:d,displayNoResultsMessage:m}=e;let y=d;if(!y)switch(a){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)&&m?G.createElement("li",{...t(e)},G.createElement("h5",{className:"cio-section-name cio-sectionName","aria-hidden":!0},Dc(y)),G.createElement(_y,null)):(_=e==null?void 0:e.data)!=null&&_.length?G.createElement("li",{...t(e)},G.createElement("h5",{className:"cio-section-name cio-sectionName","aria-hidden":!0},Dc(y)),G.createElement("ul",{className:"cio-section-items",role:"none"},(w=e==null?void 0:e.data)==null?void 0:w.map(l=>typeof(e==null?void 0:e.renderItem)=="function"?G.createElement(wy,{renderItem:e.renderItem,item:l,query:n,key:l.id}):G.createElement(yy,{item:l,key:l==null?void 0:l.id,displaySearchTermHighlights:e.displaySearchTermHighlights}))),o&&a==="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:s},cp("show all results",u)))):null};function ky(e){const{section:t,children:n=Sy}=e;return n({section:t})}function Ey(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 Cy=({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(ky,{section:t,key:r})});function xy(e){const{children:t=Cy}=e,{sections:n,isOpen:r,getMenuProps:i,getItemProps:o,closeMenu:u}=F.useContext(mn),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(Ey,{onClick:()=>u()}),typeof t=="function"?t({sections:n,getItemProps:o}):t):(d=null,a.style={display:"none"}),G.createElement("ul",{...a},d)}function Iy({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,enterKeyHint:"search"})),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 Ry(e){const{children:t=Iy}=e,{getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o}=F.useContext(mn);return t({getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o})}function Ty(e){const{children:t}=e;return t?G.createElement(Bc,{...e},t):G.createElement("div",null,G.createElement(Bc,{...e},G.createElement(Ry,null),G.createElement(xy,null)))}const Ny=({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(Ty,{...n})))}};window&&(window.CioAutocomplete=Ny);export{Ny as default};
42
+ */var Po=60103,Do=60106,Jr=60107,Yr=60108,Xr=60114,Zr=60109,ei=60110,ti=60112,ni=60113,Dl=60120,ri=60115,ii=60116,vp=60121,gp=60122,mp=60117,yp=60129,wp=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"),Dl=Ce("react.suspense_list"),ri=Ce("react.memo"),ii=Ce("react.lazy"),vp=Ce("react.block"),gp=Ce("react.server.block"),mp=Ce("react.fundamental"),yp=Ce("react.debug_trace_mode"),wp=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 Dl: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===yp||e===Yr||e===ni||e===Dl||e===wp||typeof e=="object"&&e!==null&&(e.$$typeof===ii||e.$$typeof===ri||e.$$typeof===Zr||e.$$typeof===ei||e.$$typeof===ti||e.$$typeof===mp||e.$$typeof===vp||e[0]===gp)};se.typeOf=pt;let Mc=e=>typeof e=="object"&&e!=null&&e.nodeType===1,zc=(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 zc(n.overflowY,t)||zc(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(!Mc(e))throw new TypeError("Invalid target");let w=document.scrollingElement||document.documentElement,l=[],p=e;for(;Mc(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 U=l[q],{height:j,width:T,top:R,right:A,bottom:D,left:M}=U.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(U),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 U?U.offsetWidth-U.clientWidth-Q-V:0,$="offsetHeight"in U?U.offsetHeight-U.clientHeight-Y-J:0,X="offsetWidth"in U?U.offsetWidth===0?0:T/U.offsetWidth:0,re="offsetHeight"in U?U.offsetHeight===0?0:j/U.offsetHeight:0;if(w===U)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}=U;H=Math.max(0,Math.min(ie+H/re,U.scrollHeight-j/re+$)),b=Math.max(0,Math.min(ee+b/X,U.scrollWidth-T/X+W)),O+=ie-H,N+=ee-b}P.push({el:U,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 _p(){}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 qc(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function Sp(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]=kp(t,r)?t[r]:e[r],n},{})}function kp(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 Fc(e,t,n,r){return r===void 0&&(r=!0),t.some(function(i){return i&&(qc(i,e,n)||r&&qc(i,n.document.activeElement,n))})}var xm=Sp(function(e){Ep(e).textContent=""},500);function Im(e,t){var n=Ep(t);e&&(n.textContent=e,xm(t))}function Ep(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"],Cp={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"+Ll(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=Sp(function(e,t){Im(e(),t)},200),Dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?F.useLayoutEffect:F.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=F.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 Ll(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function xp(e){var t=F.useRef(e);return t.current=e,t}function qm(e,t,n){var r=F.useRef(),i=F.useRef(),o=F.useCallback(function(k,_){i.current=_,k=As(k,_.props);var w=e(k,_),l=_.props.stateReducer(k,ce({},_,{changes:w}));return l},[e]),u=F.useReducer(o,t),s=u[0],a=u[1],d=xp(n),m=F.useCallback(function(k){return a(ce({props:d.current},k))},[d]),y=i.current;return F.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=Cp);var r=e["default"+Ll(t)];return r!==void 0?r:n[t]}function Ti(e,t,n){n===void 0&&(n=Cp);var r=e[t];if(r!==void 0)return r;var i=e["initial"+Ll(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=F.useRef({isMouseDown:!1,isTouchMove:!1});return F.useEffect(function(){var o=function(){i.current.isMouseDown=!0},u=function(y){i.current.isMouseDown=!1,e&&!Fc(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&&!Fc(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 _p};function Uc(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,o=n.items,u=n.environment,s=hr(n,Rm);F.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=F.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=_p;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)}B.array.isRequired,B.func,B.func,B.func,B.number,B.number,B.number,B.bool,B.bool,B.bool,B.any,B.any,B.any,B.string,B.string,B.string,B.func,B.string,B.func,B.func,B.func,B.func,B.func,B.shape({addEventListener:B.func,removeEventListener:B.func,document:B.shape({getElementById:B.func,activeElement:B.any,body:B.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 Ml=0,zl=1,ql=2,Fl=3,Ul=4,Bl=5,jl=6,bl=7,Hl=8,vo=9,Vl=10,Ip=11,Rp=12,Kl=13,Tp=14,Np=15,Op=16,Ap=17,Pp=18,Wl=19,Dp=20,Lp=21,Gl=22,Mp=Object.freeze({__proto__:null,InputKeyDownArrowDown:Ml,InputKeyDownArrowUp:zl,InputKeyDownEscape:ql,InputKeyDownHome:Fl,InputKeyDownEnd:Ul,InputKeyDownPageUp:Bl,InputKeyDownPageDown:jl,InputKeyDownEnter:bl,InputChange:Hl,InputBlur:vo,InputFocus:Vl,MenuMouseLeave:Ip,ItemMouseMove:Rp,ItemClick:Kl,ToggleButtonClick:Tp,FunctionToggleMenu:Np,FunctionOpenMenu:Op,FunctionCloseMenu:Ap,FunctionSetHighlightedIndex:Pp,FunctionSelectItem:Wl,FunctionSetInputValue:Dp,FunctionReset:Lp,ControlledPropUpdatedSelectedItem:Gl});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})}B.array.isRequired,B.func,B.func,B.func,B.number,B.number,B.number,B.bool,B.bool,B.bool,B.any,B.any,B.any,B.string,B.string,B.string,B.string,B.string,B.string,B.func,B.string,B.string,B.func,B.func,B.func,B.func,B.func,B.func,B.shape({addEventListener:B.func,removeEventListener:B.func,document:B.shape({getElementById:B.func,activeElement:B.any,body:B.any})});function Wm(e,t,n){var r=F.useRef(),i=qm(e,t,n),o=i[0],u=i[1];return F.useEffect(function(){kp(n,"selectedItem")&&(r.current!==n.selectedItem&&u({type:Gl,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 Kl:o={isOpen:Je(r,"isOpen"),highlightedIndex:Je(r,"highlightedIndex"),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case Ml: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 zl: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 bl: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 Bl:o={highlightedIndex:Ri(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case jl:o={highlightedIndex:Ri(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case Fl:o={highlightedIndex:Vr(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case Ul: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 Hl:o={isOpen:!0,highlightedIndex:Je(r,"highlightedIndex"),inputValue:t.inputValue};break;case Vl:o={isOpen:!0,highlightedIndex:Ir(r,e,0)};break;case Wl:o={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case Gl:o={inputValue:t.inputValue};break;default:return Hm(e,t,Mp)}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"];Ps.stateChangeTypes=Mp;function Ps(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=F.useRef(null),h=F.useRef({}),E=F.useRef(null),x=F.useRef(null),S=F.useRef(!0),v=Lm(t),g=F.useRef(),I=xp({state:k,props:t}),C=F.useCallback(function(H){return h.current[v.getItemId(H)]},[v]);Uc(s,[w,l,f,i],ce({isInitialMount:S.current,previousResultCount:g.current,items:i,environment:u,itemToString:d},k)),Uc(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}),F.useEffect(function(){var H=n||r||w;H&&E.current&&E.current.focus()},[]),F.useEffect(function(){S.current||(g.current=i.length)});var N=Um(w,[E,c,x],u,function(){_({type:vo,selectItem:!1})}),P=Bm();F.useEffect(function(){return S.current=!1,function(){S.current=!0}},[]),F.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=F.useMemo(function(){return{ArrowDown:function(b){b.preventDefault(),_({type:Ml,altKey:b.altKey,getItemNodeFromIndex:C})},ArrowUp:function(b){b.preventDefault(),_({type:zl,altKey:b.altKey,getItemNodeFromIndex:C})},Home:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:Fl,getItemNodeFromIndex:C}))},End:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:Ul,getItemNodeFromIndex:C}))},Escape:function(b){var W=I.current.state;(W.isOpen||W.inputValue||W.selectedItem||W.highlightedIndex>-1)&&(b.preventDefault(),_({type:ql}))},Enter:function(b){var W=I.current.state;!W.isOpen||b.which===229||(b.preventDefault(),_({type:bl,getItemNodeFromIndex:C}))},PageUp:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:Bl,getItemNodeFromIndex:C}))},PageDown:function(b){I.current.state.isOpen&&(b.preventDefault(),_({type:jl,getItemNodeFromIndex:C}))}}},[_,I,C]),U=F.useCallback(function(H){return ce({id:v.labelId,htmlFor:v.inputId},H)},[v]),j=F.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:Ip})}),W),ve)},[_,P,v]),T=F.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,yn=hr($,Jm),je=I.current,wn=je.props,_n=je.state,kt=Mm(re,X,wn.items);if(kt<0)throw new Error("Pass either item or item index in getItemProps!");var Zn="onClick",Lo=$e,oi=function(){re!==_n.highlightedIndex&&(O.current=!1,_({type:Rp,index:re,disabled:ht}))},Lt=function(){_({type:Kl,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===_n.highlightedIndex),b.id=v.getItemId(kt),b),!ht&&(W={},W[Zn]=Et(Lo,Lt),W),{onMouseMove:Et(ne,oi),onMouseDown:Et(we,tn)},yn)},[_,I,O,v]),R=F.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:Tp})};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=F.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),yn=b===void 0?{}:b;yn.suppressRefError;var je=I.current.state,wn=function(vt){var er=Cm(vt);er&&q[er]&&q[er](vt)},_n=function(vt){_({type:Hl,inputValue:vt.target.value})},kt=function(){je.isOpen&&!N.current.isMouseDown&&_({type:vo,selectItem:!0})},Zn=function(){je.isOpen||_({type:Vl})},Lo="onChange",oi={};if(!ht.disabled){var Lt;oi=(Lt={},Lt[Lo]=Et(re,ee,_n),Lt.onKeyDown=Et(X,wn),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=F.useCallback(function(){_({type:Np})},[_]),M=F.useCallback(function(){_({type:Ap})},[_]),L=F.useCallback(function(){_({type:Op})},[_]),Q=F.useCallback(function(H){_({type:Pp,highlightedIndex:H})},[_]),Y=F.useCallback(function(H){_({type:Wl,selectedItem:H})},[_]),V=F.useCallback(function(H){_({type:Dp,inputValue:H})},[_]),J=F.useCallback(function(){_({type:Lp})},[_]);return{getItemProps:T,getLabelProps:U,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."}B.array,B.array,B.array,B.func,B.func,B.func,B.number,B.number,B.number,B.func,B.func,B.string,B.string,B.shape({addEventListener:B.func,removeEventListener:B.func,document:B.shape({getElementById:B.func,activeElement:B.any,body:B.any})});xr.itemToString,xr.stateReducer,xr.environment;let ey=0;const ty=({setQuery:e,items:t,onSubmit:n,cioClient:r,previousQuery:i="",...o})=>Ps({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)}}},stateReducer:(u,s)=>{const{type:a,changes:d}=s;return a===Ps.stateChangeTypes.InputBlur?{...d,isOpen:u.isOpen}:d},...o}),ny=e=>{const t=F.useRef();return F.useEffect(()=>{t.current=e},[e]),t.current},ry=(e,t)=>{F.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]=F.useState(i?r:t);return{activeSections:F.useMemo(()=>o.map(a=>{const d=a;if(Xn(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]=F.useState(e);return F.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]=F.useState({sectionsData:{},request:{},totalNumResultsPerSection:{}}),u=oy(e,r==null?void 0:r.debounce),{numTermsWithGroupSuggestions:s=0,numGroupsSuggestedPerTerm:a=0}=r||{},d=F.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 F.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]=F.useState({}),[o,u]=F.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 F.useEffect(()=>{n||s()},[e,t]),{fetchRecommendationResults:s,recommendationsResults:r,podsData:o}};function ay(e,t,n,r){const i=F.useMemo(()=>n==null?void 0:n.filter(k=>ap(k)),[n]),{sectionsData:o,request:u,totalNumResultsPerSection:s}=sy(e,t,i,r),a=F.useMemo(()=>n==null?void 0:n.filter(k=>Xn(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,i){const[o,u]=F.useState([]);return F.useEffect(()=>{const s=Yg(t,e,n,i);(s.length||!r)&&u(s)},[t,e,n,r,i]),o}function fy(e,t,n,r,i){F.useEffect(()=>{var u,s;const o=cp((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]=F.useState({}),{activeSections:s,showZeroStateSections:a,setActiveSections:d}=iy(e,n,o,r),m=F.useRef(s.map(()=>F.createRef())),{recommendations:y,autocomplete:k}=ay(e,t,s,i);F.useEffect(()=>{y.podsData||u(y.podsData)},[y.podsData]),fy(n,o,d,a,r);const _=F.useMemo(()=>({...k.results,...y.results}),[k.results,y.results]),w=cy(_,s,m,e,y.podsData);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=>Xn(o)).map(o=>o.ref);F.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]),F.useEffect(()=>{e||Mu.clear()},[e])}const hy=[{indexSectionName:"Search Suggestions",type:"autocomplete"},{indexSectionName:"Products",type:"autocomplete"}],vy=e=>e.map(t=>{if(Xn(t)){if(t.identifier&&!t.podId)return{...t,podId:t.identifier};if(!t.indexSectionName)return{...t,indexSectionName:"Products"}}return ap(t)&&t.identifier&&!t.indexSectionName?{...t,indexSectionName:t.identifier}:t}),Bc=e=>e&&vy(e),gy=e=>{const{sections:t=hy,zeroStateSections:n,cioJsClientOptions:r,advancedParameters:i}=e,o=F.useMemo(()=>Bc(t),[JSON.stringify(t)]),u=F.useMemo(()=>Bc(n),[JSON.stringify(n)]),s=F.useMemo(()=>r,[JSON.stringify(r)]),a=F.useMemo(()=>i,[JSON.stringify(i)]);return{sections:o,zeroStateSections:u,cioJsClientOptions:s,advancedParameters:a}},my=(e,t,n)=>{const r=F.useCallback(i=>{var o;e&&!((o=i.target)!=null&&o.closest(`.${n}`))&&t()},[t,e,n]);F.useEffect(()=>(document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}),[r])},yy=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]=F.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=F.useMemo(()=>cp(v),[v]),C=F.useMemo(()=>em(x),[x]),{isOpen:O,getMenuProps:N,getLabelProps:P,openMenu:q,closeMenu:U,highlightedIndex:j,getInputProps:T,getItemProps:R}=ty({setQuery:p,items:C,onSubmit:o,cioClient:c,previousQuery:f,...w});return my(O,U,y),ry(t,E),py(O,x,c,Zg),{query:l,sections:x,totalNumResultsPerSection:g,request:v,featureToggles:I,isOpen:O,getMenuProps:()=>({...N(),className:"cio-results","data-testid":"cio-results","data-cnstrc-autosuggest":""}),getLabelProps:P,openMenu:q,closeMenu:U,getItemProps:A=>{var Q;const{index:D,sectionId:M}=$g({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-${Dc(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 Dc(A)&&(L["data-cnstrc-custom-section"]=!0,L["data-cnstrc-custom-section-name"]=A.displayName),Xn(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:_}},mn=F.createContext({});function jc(e){const{children:t,...n}=e,r=yy(n);return G.createElement(mn.Provider,{value:r},G.createElement("div",{className:r.autocompleteClassName},t))}function ji({item:e,query:t,highlightSearchTerm:n}){const r=lp(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}=F.useContext(mn),{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 wy(e){var m,y;const{item:t,children:n,displaySearchTermHighlights:r}=e,{getItemProps:i,advancedParameters:o,query:u,getSearchResultsUrl:s}=F.useContext(mn),{translations:a}=o||{};let d;return Wg(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}))):lp(t)?d=G.createElement("p",{className:"cio-term-in-group"},fp("in",a)," ",G.createElement(ji,{item:t,query:u,highlightSearchTerm:r})):Gg(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)}function _y(e){const{renderItem:t,item:n,query:r}=e,{getItemProps:i}=F.useContext(mn),o=F.useRef(null),u=F.useMemo(()=>t({item:n,query:r,getItemProps:i}),[n]),s=u instanceof HTMLElement,a=F.isValidElement(u);return F.useEffect(()=>{s&&o.current&&(o.current.innerHTML="",o.current.appendChild(u))},[n]),a?u:s?G.createElement("div",{...i(n),ref:o}):null}function Sy(){return G.createElement("div",{className:"cio-no-results-message"},"No Results Found")}const ky=function({section:e}){var k,_,w;const{getSectionProps:t,query:n,getFormProps:r,advancedParameters:i}=F.useContext(mn),{displayShowAllResultsButton:o,translations:u}=i||{},{onSubmit:s}=r(),{type:a,displayName:d,displayNoResultsMessage:m}=e;let y=d;if(!y)switch(a){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)&&m?G.createElement("li",{...t(e)},G.createElement("h5",{className:"cio-section-name cio-sectionName","aria-hidden":!0},Lc(y)),G.createElement(Sy,null)):(_=e==null?void 0:e.data)!=null&&_.length?G.createElement("li",{...t(e)},G.createElement("h5",{className:"cio-section-name cio-sectionName","aria-hidden":!0},Lc(y)),G.createElement("ul",{className:"cio-section-items",role:"none"},(w=e==null?void 0:e.data)==null?void 0:w.map(l=>typeof(e==null?void 0:e.renderItem)=="function"?G.createElement(_y,{renderItem:e.renderItem,item:l,query:n,key:l.id}):G.createElement(wy,{item:l,key:l==null?void 0:l.id,displaySearchTermHighlights:e.displaySearchTermHighlights}))),o&&a==="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:s},fp("show all results",u)))):null};function Ey(e){const{section:t,children:n=ky}=e;return n({section:t})}function Cy(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 xy=({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(Ey,{section:t,key:r})});function Iy(e){const{children:t=xy}=e,{sections:n,isOpen:r,getMenuProps:i,getItemProps:o,closeMenu:u}=F.useContext(mn),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(Cy,{onClick:()=>u()}),typeof t=="function"?t({sections:n,getItemProps:o}):t):(d=null,a.style={display:"none"}),G.createElement("ul",{...a},d)}function Ry({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,enterKeyHint:"search"})),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 Ty(e){const{children:t=Ry}=e,{getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o}=F.useContext(mn);return t({getFormProps:n,getInputProps:r,getLabelProps:i,setQuery:o})}function Ny(e){const{children:t}=e;return t?G.createElement(jc,{...e},t):G.createElement("div",null,G.createElement(jc,{...e},G.createElement(Ty,null),G.createElement(Iy,null)))}const Oy=({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(Ny,{...n})))}};window&&(window.CioAutocomplete=Oy);export{Oy as default};