forked from M-Labs/web2019
2 lines
268 KiB
JavaScript
2 lines
268 KiB
JavaScript
/*! For license information please see shop.bundle.js.LICENSE.txt */
|
||
(()=>{var e={841:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===c}},366:(e,t,n)=>{"use strict";e.exports=n(841)},184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},679:(e,t,n)=>{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=c(t),g=c(n),h=0;h<a.length;++h){var b=a[h];if(!(i[b]||r&&r[b]||g&&g[b]||l&&l[b])){var y=f(n,b);try{s(t,b,y)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case h:case g:case c:return e;default:return t}}case o:return t}}}function w(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||E(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===s},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===c||e.$$typeof===s||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,l,c,s=e.get_operator(n),u=n[s];if(Array.isArray(u)||(u=[u]),"if"===s||"?:"==s){for(o=0;o<u.length-1;o+=2)if(e.truthy(e.apply(u[o],r)))return e.apply(u[o+1],r);return u.length===o+1?e.apply(u[o],r):null}if("and"===s){for(o=0;o<u.length;o+=1)if(i=e.apply(u[o],r),!e.truthy(i))return i;return i}if("or"===s){for(o=0;o<u.length;o+=1)if(i=e.apply(u[o],r),e.truthy(i))return i;return i}if("filter"===s)return l=e.apply(u[0],r),a=u[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===s)return l=e.apply(u[0],r),a=u[1],Array.isArray(l)?l.map((function(t){return e.apply(a,t)})):[];if("reduce"===s)return l=e.apply(u[0],r),a=u[1],c=void 0!==u[2]?u[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),c):c;if("all"===s){if(l=e.apply(u[0],r),a=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(a,l[o])))return!1;return!0}if("none"===s){if(l=e.apply(u[0],r),a=u[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!1;return!0}if("some"===s){if(l=e.apply(u[0],r),a=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!0;return!1}if(u=u.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(s)&&"function"==typeof t[s])return t[s].apply(r,u);if(s.indexOf(".")>0){var d=String(s).split("."),f=t;for(o=0;o<d.length;o++){if(!f.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+s+" (failed at "+d.slice(0,o+1).join(".")+")");f=f[d[o]]}return f.apply(r,u)}throw new Error("Unrecognized operation "+s)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>H,Component:()=>l.wA,Fragment:()=>l.HY,PureComponent:()=>L,StrictMode:()=>Ne,Suspense:()=>K,SuspenseList:()=>Q,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_e,cloneElement:()=>Se,createContext:()=>l.kr,createElement:()=>l.az,createFactory:()=>we,createPortal:()=>ne,createRef:()=>l.Vf,default:()=>Le,findDOMNode:()=>De,flushSync:()=>Ie,forwardRef:()=>U,hydrate:()=>ue,isElement:()=>Te,isFragment:()=>Oe,isValidElement:()=>xe,lazy:()=>X,memo:()=>F,render:()=>se,startTransition:()=>Ae,unmountComponentAtNode:()=>Ce,unstable_batchedUpdates:()=>Pe,useCallback:()=>O,useContext:()=>S,useDebugValue:()=>C,useDeferredValue:()=>ke,useEffect:()=>v,useErrorBoundary:()=>D,useId:()=>P,useImperativeHandle:()=>w,useInsertionEffect:()=>je,useLayoutEffect:()=>_,useMemo:()=>x,useReducer:()=>y,useRef:()=>E,useState:()=>b,useSyncExternalStore:()=>Me,useTransition:()=>Re,version:()=>Ee});var r,o,i,a,l=n(400),c=0,s=[],u=[],d=l.YM.__b,f=l.YM.__r,p=l.YM.diffed,m=l.YM.__c,g=l.YM.unmount;function h(e,t){l.YM.__h&&l.YM.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function b(e){return c=1,y(T,e)}function y(e,t,n){var i=h(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):T(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!l||l.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!l||l.call(this,e,t,n))};o.u=!0;var l=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=l;l=void 0,a(e,t,n),l=r}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function v(e,t){var n=h(r++,3);!l.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function _(e,t){var n=h(r++,4);!l.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function E(e){return c=5,x((function(){return{current:e}}),[])}function w(e,t,n){c=6,_((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function x(e,t){var n=h(r++,7);return j(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function O(e,t){return c=8,x((function(){return e}),t)}function S(e){var t=o.context[e.__c],n=h(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function C(e,t){l.YM.useDebugValue&&l.YM.useDebugValue(t?t(e):e)}function D(e){var t=h(r++,10),n=b();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function P(){var e=h(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function I(){for(var e;e=s.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k),e.__H.__h.forEach(R),e.__H.__h=[]}catch(t){e.__H.__h=[],l.YM.__e(t,e.__v)}}l.YM.__b=function(e){o=null,d&&d(e)},l.YM.__r=function(e){f&&f(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(k),t.__h.forEach(R),t.__h=[],r=0)),i=o},l.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==s.push(t)&&a===l.YM.requestAnimationFrame||((a=l.YM.requestAnimationFrame)||A)(I)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),i=o=null},l.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(k),e.__h=e.__h.filter((function(e){return!e.__||R(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.YM.__e(n,e.__v)}})),m&&m(e,t)},l.YM.unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{k(e)}catch(e){t=e}})),n.__H=void 0,t&&l.YM.__e(t,n.__v))};var N="function"==typeof requestAnimationFrame;function A(e){var t,n=function(){clearTimeout(r),N&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);N&&(t=requestAnimationFrame(n))}function k(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function R(e){var t=o;e.__c=e.__(),o=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function T(e,t){return"function"==typeof t?t(e):t}function M(e,t){for(var n in t)e[n]=t[n];return e}function B(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function L(e){this.props=e}function F(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:B(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,l.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(L.prototype=new l.wA).isPureReactComponent=!0,L.prototype.shouldComponentUpdate=function(e,t){return B(this.props,e)||B(this.state,t)};var W=l.YM.__b;l.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),W&&W(e)};var G="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function U(e){function t(t){var n=M({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=G,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $=function(e,t){return null==e?null:(0,l.bR)((0,l.bR)(e).map(t))},H={map:$,forEach:$,count:function(e){return e?(0,l.bR)(e).length:0},only:function(e){var t=(0,l.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:l.bR},V=l.YM.__e;l.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);V(e,t,n,r)};var Y=l.YM.unmount;function q(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=M({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return q(e,t,n)}))),e}function z(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return z(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function K(){this.__u=0,this.t=null,this.__b=null}function J(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function X(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,l.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Q(){this.u=null,this.o=null}l.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Y&&Y(e)},(K.prototype=new l.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=J(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=z(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=q(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,l.az)(l.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,l.az)(l.HY,null,t.__a?null:e.children),o]};var Z=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ee(e){return this.getChildContext=function(){return e.context},e.children}function te(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,l.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,l.sY)((0,l.az)(ee,{context:t.context},e.__v),t.l)}function ne(e,t){var n=(0,l.az)(te,{__v:e,i:t});return n.containerInfo=t,n}(Q.prototype=new l.wA).__a=function(e){var t=this,n=J(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Z(t,e,r)):o()};n?n(i):i()}},Q.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,l.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Q.prototype.componentDidUpdate=Q.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Z(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ie=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ae=/[A-Z0-9]/g,le="undefined"!=typeof document,ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function se(e,t,n){return null==t.__k&&(t.textContent=""),(0,l.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function ue(e,t,n){return(0,l.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}l.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(l.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var de=l.YM.event;function fe(){}function pe(){return this.cancelBubble}function me(){return this.defaultPrevented}l.YM.event=function(e){return de&&(e=de(e)),e.persist=fe,e.isPropagationStopped=pe,e.isDefaultPrevented=me,e.nativeEvent=e};var ge,he={enumerable:!1,configurable:!0,get:function(){return this.class}},be=l.YM.vnode;l.YM.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||le&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ce(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ie.test(o)?o=a:-1===n.indexOf("-")&&oe.test(o)?o=o.replace(ae,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,l.bR)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=(0,l.bR)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",he)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=re,be&&be(e)};var ye=l.YM.__r;l.YM.__r=function(e){ye&&ye(e),ge=e.__c};var ve=l.YM.diffed;l.YM.diffed=function(e){ve&&ve(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ge=null};var _e={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value}}}},Ee="17.0.2";function we(e){return l.az.bind(null,e)}function xe(e){return!!e&&e.$$typeof===re}function Oe(e){return xe(e)&&e.type===l.HY}function Se(e){return xe(e)?l.Tm.apply(null,arguments):e}function Ce(e){return!!e.__k&&((0,l.sY)(null,e),!0)}function De(e){return e&&(e.base||1===e.nodeType&&e)||null}var Pe=function(e,t){return e(t)},Ie=function(e,t){return e(t)},Ne=l.HY;function Ae(e){e()}function ke(e){return e}function Re(){return[!1,Ae]}var je=_,Te=xe;function Me(e,t){var n=t(),r=b({h:{__:n,v:t}}),o=r[0].h,i=r[1];return _((function(){o.__=n,o.v=t,Be(o)&&i({h:o})}),[e,n,t]),v((function(){return Be(o)&&i({h:o}),e((function(){Be(o)&&i({h:o})}))}),[e]),n}function Be(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Le={useState:b,useId:P,useReducer:y,useEffect:v,useLayoutEffect:_,useInsertionEffect:je,useTransition:Re,useDeferredValue:ke,useSyncExternalStore:Me,startTransition:Ae,useRef:E,useImperativeHandle:w,useMemo:x,useCallback:O,useContext:S,useDebugValue:C,version:"17.0.2",Children:H,render:se,hydrate:ue,unmountComponentAtNode:Ce,createPortal:ne,createElement:l.az,createContext:l.kr,createFactory:we,cloneElement:Se,createRef:l.Vf,Fragment:l.HY,isValidElement:xe,isElement:Te,isFragment:Oe,findDOMNode:De,Component:l.wA,PureComponent:L,memo:F,forwardRef:U,flushSync:Ie,unstable_batchedUpdates:Pe,StrictMode:Ne,Suspense:K,SuspenseList:Q,lazy:X,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_e}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>_,Tm:()=>$,Vf:()=>v,YM:()=>o,ZB:()=>U,az:()=>b,bR:()=>I,kr:()=>H,sY:()=>G,wA:()=>E});var r,o,i,a,l,c,s,u,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var o,i,a,l={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return y(e,l,o,i,null)}function y(e,t,n,r,a){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(l),l}function v(){return{current:null}}function _(e){return e.children}function E(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function O(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||l!==o.debounceRendering)&&((l=o.debounceRendering)||c)(S)}function S(){var e,t,n,r,i,l,c,u,d;for(a.sort(s);e=a.shift();)e.__d&&(t=a.length,r=void 0,l=(i=(n=e).__v).__e,u=[],d=[],(c=n.__P)&&((r=g({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),T(c,r,i,n.__n,void 0!==c.ownerSVGElement,32&i.__u?[l]:null,u,null==l?w(i):l,!!(32&i.__u),d),r.__.__k[r.__i]=r,M(u,r,d),r.__e!=l&&x(r)),a.length>t&&a.sort(s));S.__r=0}function C(e,t,n,r,o,i,a,l,c,s,u){var p,m,g,h,b,y=r&&r.__k||f,v=t.length;for(n.__d=c,D(n,t,y),c=n.__d,p=0;p<v;p++)null!=(g=n.__k[p])&&"boolean"!=typeof g&&"function"!=typeof g&&(m=-1===g.__i?d:y[g.__i]||d,g.__i=p,T(e,g,m,o,i,a,l,c,s,u),h=g.__e,g.ref&&m.ref!=g.ref&&(m.ref&&L(m.ref,null,g),u.push(g.ref,g.__c||h,g)),null==b&&null!=h&&(b=h),65536&g.__u||m.__k===g.__k?c=P(g,c,e):"function"==typeof g.type&&void 0!==g.__d?c=g.__d:h&&(c=h.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=c,n.__e=b}function D(e,t,n){var r,o,i,a,l,c=t.length,s=n.length,u=s,d=0;for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?y(null,o,null,null,o):m(o)?y(_,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?y(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,l=N(o,n,a=r+d,u),o.__i=l,i=null,-1!==l&&(u--,(i=n[l])&&(i.__u|=131072)),null==i||null===i.__v?(-1==l&&d--,"function"!=typeof o.type&&(o.__u|=65536)):l!==a&&(l===a+1?d++:l>a?u>c-a?d+=l-a:d--:d=l<a&&l==a-1?l-a:0,l!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=w(i)),F(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<s;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=w(i)),F(i,i))}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function I(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some((function(e){I(e,t)})):t.push(e)),t}function N(e,t,n,r){var o=e.key,i=e.type,a=n-1,l=n+1,c=t[n];if(null===c||c&&o==c.key&&i===c.type)return n;if(r>(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||l<t.length;){if(a>=0){if((c=t[a])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l<t.length){if((c=t[l])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return l;l++}}return-1}function A(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?j:R,i)):e.removeEventListener(t,i?j:R,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function R(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(o.event?o.event(e):e)}function j(e){return this.l[e.type+!0](o.event?o.event(e):e)}function T(e,t,n,r,i,a,l,c,s,u){var d,f,p,h,b,y,v,w,x,O,S,D,P,I,N,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(s=!!(32&n.__u),a=[c=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof A)try{if(w=t.props,x=(d=A.contextType)&&r[d.__c],O=d?x?x.props.value:d.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(w,O):(t.__c=f=new E(w,O),f.constructor=A,f.render=W),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=O,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=g({},f.__s)),g(f.__s,A.getDerivedStateFromProps(w,f.__s))),h=f.props,b=f.state,f.__v=t,p)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,O),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,O)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=w,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&l.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,b,y)}))}if(f.context=O,f.props=w,f.__P=e,f.__e=!1,D=o.__r,P=0,"prototype"in A&&A.prototype.render){for(f.state=f.__s,f.__d=!1,D&&D(t),d=f.render(f.props,f.state,f.context),I=0;I<f._sb.length;I++)f.__h.push(f._sb[I]);f._sb=[]}else do{f.__d=!1,D&&D(t),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=g(g({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(h,b)),C(e,m(N=null!=d&&d.type===_&&null==d.key?d.props.children:d)?N:[N],t,n,r,i,a,l,c,s,u),f.base=t.__e,t.__u&=-161,f.__h.length&&l.push(f),v&&(f.__E=f.__=null)}catch(e){t.__v=null,s||null!=a?(t.__e=c,t.__u|=s?160:32,a[a.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=B(n.__e,t,n,r,i,a,l,s,u);(d=o.diffed)&&d(t)}function M(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)L(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function B(e,t,n,o,i,a,l,c,s){var u,f,p,g,b,y,v,_=n.props,E=t.props,x=t.type;if("svg"===x&&(i=!0),null!=a)for(u=0;u<a.length;u++)if((b=a[u])&&"setAttribute"in b==!!x&&(x?b.localName===x:3===b.nodeType)){e=b,a[u]=null;break}if(null==e){if(null===x)return document.createTextNode(E);e=i?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,E.is&&E),a=null,c=!1}if(null===x)_===E||c&&e.data===E||(e.data=E);else{if(a=a&&r.call(e.childNodes),_=n.props||d,!c&&null!=a)for(_={},u=0;u<e.attributes.length;u++)_[(b=e.attributes[u]).name]=b.value;for(u in _)b=_[u],"children"==u||("dangerouslySetInnerHTML"==u?p=b:"key"===u||u in E||k(e,u,null,b,i));for(u in E)b=E[u],"children"==u?g=b:"dangerouslySetInnerHTML"==u?f=b:"value"==u?y=b:"checked"==u?v=b:"key"===u||c&&"function"!=typeof b||_[u]===b||k(e,u,b,_[u],i);if(f)c||p&&(f.__html===p.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(p&&(e.innerHTML=""),C(e,m(g)?g:[g],t,n,o,i&&"foreignObject"!==x,a,l,a?a[0]:n.__k&&w(n,0),c,s),null!=a)for(u=a.length;u--;)null!=a[u]&&h(a[u]);c||(u="value",void 0!==y&&(y!==e[u]||"progress"===x&&!y||"option"===x&&y!==_[u])&&k(e,u,y,_[u],!1),u="checked",void 0!==v&&v!==e[u]&&k(e,u,v,_[u],!1))}return e}function L(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function F(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||L(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&F(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function G(e,t,n){var i,a,l,c;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,l=[],c=[],T(t,e=(!i&&n||t).__k=b(_,null,[e]),a||d,d,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,l,!i&&n?n:a?a.__e:t.firstChild,i,c),M(l,e,c)}function U(e,t){G(e,t,U)}function $(e,t,n){var o,i,a,l,c=g({},e.props);for(a in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=void 0===t[a]&&void 0!==l?l[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),y(e.type,c,o||e.key,i||e.ref,null)}function H(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},E.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,u=0},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},250:(e,t,n)=>{"use strict";var r=n(748),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&u({inst:o})}),[e,n,t]),a((function(){return s(o)&&u({inst:o}),e((function(){s(o)&&u({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(748),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,c=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,c=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(748);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:String(n)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){var o,i,a;o=e,i=t,a=n[t],(i=r(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(u)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,c=[],d=c,f=!1;function p(){d===c&&(d=c.slice())}function m(){if(f)throw new Error(a(3));return i}function g(e){if("function"!=typeof e)throw new Error(a(4));if(f)throw new Error(a(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error(a(6));t=!1,p();var n=d.indexOf(e);d.splice(n,1),c=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,i=o(i,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:s.INIT}),(r={dispatch:h,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));o=e,h({type:s.REPLACE})}})[l]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e},r}function d(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=d(o,t))}return n}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var m=n(688),g=n(798);let h=function(e){e()};const b=()=>h,y=Symbol.for("react-redux-context"),v="undefined"!=typeof globalThis?globalThis:{};function _(){var t;if(!e.createContext)return{};const n=null!=(t=v[y])?t:v[y]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const E=_();let w=null;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function O(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var S=n(679),C=n.n(S),D=n(366);const P=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function I(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let l,c,s,u,d,f=!1;return function(p,m){return f?function(f,p){const m=!i(p,c),g=!o(f,l,p,c);return l=f,c=p,m&&g?(s=e(l,c),t.dependsOnOwnProps&&(u=t(r,c)),d=n(s,u,c),d):m?(e.dependsOnOwnProps&&(s=e(l,c)),t.dependsOnOwnProps&&(u=t(r,c)),d=n(s,u,c),d):g?function(){const t=e(l,c),r=!a(t,s);return s=t,r&&(d=n(s,u,c)),d}():d}(p,m):(l=p,c=m,s=e(l,c),u=t(r,c),d=n(s,u,c),f=!0,d)}}function N(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function A(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=A(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=A(o),o=r(t,n)),o},r}}function R(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function j(e,t,n){return x({},n,e,t)}const T={notify(){},get:()=>[]};function M(e,t){let n,r=T,o=0,i=!1;function a(){s.onStateChange&&s.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=b();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=T)}const s={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return s}const B="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function L(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function F(e,t){if(L(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!L(e[n[r]],t[n[r]]))return!1;return!0}const W=["reactReduxForwardedRef"];let G=()=>{throw new Error("uSES not initialized!")};const U=[null,null];function $(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function H(e,t){return e===t}const V=function(t,n,r,{pure:o,areStatesEqual:i=H,areOwnPropsEqual:a=F,areStatePropsEqual:l=F,areMergedPropsEqual:c=F,forwardRef:s=!1,context:u=E}={}){const d=u,f=function(e){return e?"function"==typeof e?k(e):R(e,"mapStateToProps"):N((()=>({})))}(t),p=function(e){return e&&"object"==typeof e?N((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?k(e):R(e,"mapDispatchToProps"):N((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const l=e(t,n,a);return i?r(l,o)||(o=l):(i=!0,o=l),o}}}(e):R(e,"mergeProps"):()=>j}(r),g=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:l,areOwnPropsEqual:a,areMergedPropsEqual:c};function u(n){const[r,i,a]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=O(n,W);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,D.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),c=e.useContext(l),s=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(c)&&Boolean(c.store),f=s?n.store:c.store,p=u?c.getServerState:f.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=O(t,P);return I(n(e,i),r(e,i),o(e,i),e,i)}(f.dispatch,o)),[f]),[h,b]=e.useMemo((()=>{if(!g)return U;const e=M(f,s?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,s,c]),y=e.useMemo((()=>s?c:x({},c,{subscription:h})),[s,c,h]),v=e.useRef(),_=e.useRef(a),E=e.useRef(),w=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),C=e.useRef();B((()=>(S.current=!0,()=>{S.current=!1})),[]);const N=e.useMemo((()=>()=>E.current&&a===_.current?E.current:m(f.getState(),a)),[f,a]),A=e.useMemo((()=>e=>h?function(e,t,n,r,o,i,a,l,c,s,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!l.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||s():(i.current=n,c.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,f,h,m,_,v,w,S,E,b,e):()=>{}),[h]);var k,R;let j;k=$,R=[_,v,w,a,E,b],B((()=>k(...R)),undefined);try{j=G(A,N,p?()=>m(p(),a):N)}catch(e){throw C.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),e}B((()=>{C.current=void 0,E.current=void 0,v.current=j}));const T=e.useMemo((()=>e.createElement(t,x({},j,{ref:i}))),[i,t,j]);return e.useMemo((()=>g?e.createElement(l.Provider,{value:y},T):T),[l,T,y])}const h=e.memo(u);if(h.WrappedComponent=t,h.displayName=u.displayName=r,s){const n=e.forwardRef((function(t,n){return e.createElement(h,x({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,C()(n,t)}return C()(h,t)}},Y=function({store:t,context:n,children:r,serverState:o,stabilityCheck:i="once",noopCheck:a="once"}){const l=e.useMemo((()=>{const e=M(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:i,noopCheck:a}}),[t,o,i,a]),c=e.useMemo((()=>t.getState()),[t]);B((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const s=n||E;return e.createElement(s.Provider,{value:l},r)};var q;function z(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),i=(0,e.useRef)(r),a=o.current||Boolean(n&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,i.current.inputs))?i.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}w=g.useSyncExternalStoreWithSelector,(e=>{G=e})(m.useSyncExternalStore),q=e.unstable_batchedUpdates,h=q;var K=z,J=function(e,t){return z((function(){return e}),t)},X=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Q=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Z=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ee={top:0,right:0,bottom:0,left:0},te=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ee:n,o=e.border,i=void 0===o?ee:o,a=e.padding,l=void 0===a?ee:a,c=X(Q(t,r)),s=X(Z(t,i)),u=X(Z(s,l));return{marginBox:c,borderBox:X(t),paddingBox:s,contentBox:u,margin:r,border:i,padding:l}},ne=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},re=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,c=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return te({borderBox:c,border:i,margin:a,padding:l})},oe=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),re(e,t)},ie=function(e,t){var n={top:ne(t.marginTop),right:ne(t.marginRight),bottom:ne(t.marginBottom),left:ne(t.marginLeft)},r={top:ne(t.paddingTop),right:ne(t.paddingRight),bottom:ne(t.paddingBottom),left:ne(t.paddingLeft)},o={top:ne(t.borderTopWidth),right:ne(t.borderRightWidth),bottom:ne(t.borderBottomWidth),left:ne(t.borderLeftWidth)};return te({borderBox:e,margin:n,padding:r,border:o})},ae=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ie(t,n)},le=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ce(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||le(r)&&le(o)))return!1;var r,o;return!0}function se(e,t){void 0===t&&(t=ce);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}const ue=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function de(e,t){}function fe(){}function pe(e,t,n){const r=t.map((t=>{const r=(o=n,i=t.options,{...o,...i});var o,i;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}de.bind(null,"warn"),de.bind(null,"error");const me=!0,ge="Invariant failed";class he extends Error{}function be(e,t){if(!e)throw new he(me?ge:`${ge}: ${t||""}`)}he.prototype.toString=function(){return this.message};class ye extends e.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=fe,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof he&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=pe(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof he))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const ve=e=>e+1,_e=(e,t)=>{const n=e.droppableId===t.droppableId,r=ve(e.index),o=ve(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Ee=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,we=e=>`\n The item has returned to its starting position\n of ${ve(e.index)}\n`,xe={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${ve(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return _e(e.source,t);const n=e.combine;return n?Ee(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${we(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${_e(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Ee(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${we(e.source)}\n `}};var Oe=xe;const Se={x:0,y:0},Ce=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),De=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Pe=(e,t)=>e.x===t.x&&e.y===t.y,Ie=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Ne=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},Ae=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),ke=(e,t)=>Math.min(...t.map((t=>Ae(e,t)))),Re=e=>t=>({x:e(t.x),y:e(t.y)}),je=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Te=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Me=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=X({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):X(e);var Be=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=((e,t)=>t?je(e,t.scroll.diff.displacement):e)(e.marginBox,r),i=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(o,n,t);return{page:e,withPlaceholder:t,active:Me(i,r)}},Le=(e,t)=>{e.frame||be(!1);const n=e.frame,r=De(t,n.scroll.initial),o=Ie(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},a=Be({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};const Fe=se((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),We=se((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),Ge=se((e=>Object.values(e))),Ue=se((e=>Object.values(e)));var $e=se(((e,t)=>{const n=Ue(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function He(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ve(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ye=se(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),qe=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const ze={point:Se,value:0},Ke={invisible:{},visible:{},all:[]};var Je={displaced:Ke,displacedBy:ze,at:null},Xe=(e,t)=>n=>e<=n&&n<=t,Qe=e=>{const t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;const a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||(a&&i||l&&o)}},Ze=e=>{const t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const et={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},tt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},nt=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const i=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Se;return je(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(i,t,o)&&((e,t,n)=>n(t)(e))(i,n,o)},rt=e=>nt({...e,isVisibleThroughFrameFn:Qe}),ot=e=>nt({...e,isVisibleThroughFrameFn:Ze}),it=(e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const i=o[e];return!i||i.shouldAnimate};function at({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:i}){return e.reduce((function(e,a){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return X(Q(n,r))}(a,n),c=a.descriptor.id;if(e.all.push(c),!rt({target:l,destination:t,viewport:r,withDroppableDisplacement:!0}))return e.invisible[a.descriptor.id]=!0,e;const s={draggableId:c,shouldAnimate:it(c,i,o)};return e.visible[c]=s,e}),{all:[],visible:{},invisible:{}})}function lt({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:Ke,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function ct({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:i,index:a,forceShouldAnimate:l}){const c=qe(e,n);if(null==a)return lt({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});const s=t.find((e=>e.descriptor.index===a));if(!s)return lt({insideDestination:t,inHomeList:c,displacedBy:o,destination:n});const u=Ye(e,t),d=t.indexOf(s);return{displaced:at({afterDragging:u.slice(d),destination:n,displacedBy:o,last:i,viewport:r.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function st(e,t){return Boolean(t.effected[e])}const ut=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,dt=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,ft=({axis:e,moveRelativeTo:t,isMoving:n})=>Ne(e.line,t.marginBox[e.end]+ut(e,n),dt(e,t.marginBox,n)),pt=({axis:e,moveRelativeTo:t,isMoving:n})=>Ne(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),dt(e,t.marginBox,n));var mt=(e,t)=>{const n=e.frame;return n?Ce(t,n.scroll.diff.displacement):t},gt=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return n&&a?"REORDER"===a.type?(({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const i=$e(r.descriptor.id,n),a=t.page,l=r.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:n})=>Ne(e.line,t.contentBox[e.start]+ut(e,n),dt(e,t.contentBox,n)))({axis:l,moveInto:r.page,isMoving:a});const{displaced:c,displacedBy:s}=e,u=c.all[0];if(u){const e=n[u];if(st(u,o))return pt({axis:l,moveRelativeTo:e.page,isMoving:a});const t=re(e.page,s.point);return pt({axis:l,moveRelativeTo:t,isMoving:a})}const d=i[i.length-1];if(d.descriptor.id===t.descriptor.id)return a.borderBox.center;if(st(d.descriptor.id,o)){const e=re(d.page,Ie(o.displacedBy.point));return ft({axis:l,moveRelativeTo:e,isMoving:a})}return ft({axis:l,moveRelativeTo:d.page,isMoving:a})})({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):(({afterCritical:e,impact:t,draggables:n})=>{const r=Ve(t);r||be(!1);const o=r.draggableId,i=n[o].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=Boolean(e.visible[n]||e.invisible[n]);return st(n,t)?o?Se:Ie(r.point):o?r.point:Se})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Ce(i,a)})({impact:e,draggables:r,afterCritical:o}):i})(e),n=e.droppable;return n?mt(n,t):t},ht=(e,t)=>{const n=De(t,e.scroll.initial),r=Ie(n);return{frame:X({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function bt(e,t){return e.map((e=>t[e]))}var yt=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>Ce(e.scroll.diff.displacement,t))(n,e),o=De(r,t.page.borderBox.center);return Ce(t.client.borderBox.center,o)},vt=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=De(n,e.page.borderBox.center),l={target:je(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:r};return i?(e=>{return nt({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Xe(e.top,e.bottom),r=Xe(e.left,e.right);return e=>t===et?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(l):ot(l)},_t=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:l,afterCritical:c})=>{if(!n.isEnabled)return null;const s=$e(n.descriptor.id,r),u=qe(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled)return null;if(!He(o))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...o,at:t}}const a=o.displaced.all,l=a.length?a[0]:null;if(e)return l?i(l):null;const c=Ye(t,r);if(!l)return c.length?i(c[c.length-1].descriptor.id):null;const s=c.findIndex((e=>e.descriptor.id===l));-1===s&&be(!1);const u=s-1;return u<0?null:i(c[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:s,previousImpact:o})||(({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:i,previousImpact:a,viewport:l,afterCritical:c})=>{const s=a.at;if(s||be(!1),"REORDER"===s.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,i=e?o+1:o-1,a=n[0].descriptor.index,l=n[n.length-1].descriptor.index;return i<a||i>(t?l:l+1)?null:i})({isMovingForward:e,isInHomeList:t,location:s.destination,insideDestination:i});return null==r?null:ct({draggable:n,insideDestination:i,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:r})}const u=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=r.draggableId,a=n[i].descriptor.index;return st(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:r,combine:s.combine,afterCritical:c});return null==u?null:ct({draggable:n,insideDestination:i,destination:o,viewport:l,last:a.displaced,displacedBy:a.displacedBy,index:u})})({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:s,previousImpact:o,viewport:i,afterCritical:c});if(!d)return null;const f=gt({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:c});if(vt({draggable:t,destination:n,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:yt({pageBorderBoxCenter:f,draggable:t,viewport:i}),impact:d,scrollJumpRequest:null};const p=De(f,a),m=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const i=ht(t,Ce(t.scroll.current,o)),a=n.frame?Le(n,Ce(n.frame.scroll.current,o)):n,l=e.displaced,c=at({afterDragging:bt(l.all,r),destination:n,displacedBy:e.displacedBy,viewport:i.frame,last:l,forceShouldAnimate:!1}),s=at({afterDragging:bt(l.all,r),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:l,forceShouldAnimate:!1}),u={},d={},f=[l,c,s];return l.all.forEach((e=>{const t=function(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}(e,f);t?d[e]=t:u[e]=!0})),{...e,displaced:{all:l.all,invisible:u,visible:d}}})({impact:d,viewport:i,destination:n,draggables:r,maxScrollChange:p});return{clientSelection:l,impact:m,scrollJumpRequest:p}};const Et=e=>{const t=e.subject.active;return t||be(!1),t},wt=(e,t)=>{const n=e.page.borderBox.center;return st(e.descriptor.id,t)?De(n,t.displacedBy.point):n},xt=(e,t)=>{const n=e.page.borderBox;return st(e.descriptor.id,t)?je(n,Ie(t.displacedBy.point)):n};var Ot=se((function(e,t){const n=t[e.line];return{value:n,point:Ne(e.line,n)}}));const St=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Ct=(e,t,n)=>{const r=e.frame;qe(t,e)&&be(!1),e.subject.withPlaceholder&&be(!1);const o=Ot(e.axis,t.displaceBy).point,i=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return Ne(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],i=$e(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return i<=0?null:Ne(r.line,i)})(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=Be({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=i?Ce(r.scroll.max,i):r.scroll.max,c=St(r,l),s=Be({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:c});return{...e,subject:s,frame:c}};var Dt=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pt=({state:e,type:t})=>{const n=((e,t)=>{const n=Dt(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),o=e.dimensions.droppables[e.critical.droppable.id],i=n||o,a=i.axis.direction,l="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(l&&!r)return null;const c="MOVE_DOWN"===t||"MOVE_RIGHT"===t,s=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return l?_t({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:s,destination:i,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:i,viewport:a,afterCritical:l})=>{const c=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const i=n.subject.active;if(!i)return null;const a=n.axis,l=Xe(i[a.start],i[a.end]),c=Ge(r).filter((e=>e!==n)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>Qe(o.frame)(Et(e)))).filter((t=>{const n=Et(t);return e?i[a.crossAxisEnd]<n[a.crossAxisEnd]:n[a.crossAxisStart]<i[a.crossAxisStart]})).filter((e=>{const t=Et(e),n=Xe(t[a.start],t[a.end]);return l(t[a.start])||l(t[a.end])||n(i[a.start])||n(i[a.end])})).sort(((t,n)=>{const r=Et(t)[a.crossAxisStart],o=Et(n)[a.crossAxisStart];return e?r-o:o-r})).filter(((e,t,n)=>Et(e)[a.crossAxisStart]===Et(n[0])[a.crossAxisStart]));if(!c.length)return null;if(1===c.length)return c[0];const s=c.filter((e=>Xe(Et(e)[a.start],Et(e)[a.end])(t[a.line])));return 1===s.length?s[0]:s.length>1?s.sort(((e,t)=>Et(e)[a.start]-Et(t)[a.start]))[0]:c.sort(((e,n)=>{const r=ke(t,Te(Et(e))),o=ke(t,Te(Et(n)));return r!==o?r-o:Et(e)[a.start]-Et(n)[a.start]}))[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:i,viewport:a});if(!c)return null;const s=$e(c.descriptor.id,o),u=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>{const i=r.filter((e=>ot({target:xt(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0}))).sort(((t,r)=>{const i=Ae(e,mt(n,wt(t,o))),a=Ae(e,mt(n,wt(r,o)));return i<a?-1:a<i?1:t.descriptor.index-r.descriptor.index}));return i[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:c,insideDestination:s,afterCritical:l}),d=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:o,destination:i,viewport:a,afterCritical:l})=>{if(!t){if(n.length)return null;const e={displaced:Ke,displacedBy:ze,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=gt({impact:e,draggable:r,droppable:i,draggables:o,afterCritical:l}),c=qe(r,i)?i:Ct(i,r,o);return vt({draggable:r,destination:c,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const c=Boolean(e[i.axis.line]<=t.page.borderBox.center[i.axis.line]),s=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||c?e:e+1})(),u=Ot(i.axis,r.displaceBy);return ct({draggable:r,insideDestination:n,destination:i,viewport:a,displacedBy:u,last:Ke,index:s})})({previousPageBorderBoxCenter:t,destination:c,draggable:n,draggables:o,moveRelativeTo:u,insideDestination:s,viewport:a,afterCritical:l});if(!d)return null;const f=gt({impact:d,draggable:n,droppable:c,draggables:o,afterCritical:l});return{clientSelection:yt({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null}})({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:s,isOver:i,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function It(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Nt(e){const t=Xe(e.top,e.bottom),n=Xe(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const At=(e,t)=>X(je(e,t));function kt({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Rt=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:i,afterCritical:a})=>{const l=At(t.page.borderBox,e),c=function({pageBorderBox:e,draggable:t,droppables:n}){const r=Ge(n).filter((t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(o=n,!((r=e).left<o.right&&r.right>o.left&&r.top<o.bottom&&r.bottom>o.top))return!1;var r,o;if(Nt(n)(e.center))return!0;const i=t.axis,a=n.center[i.crossAxisLine],l=e[i.crossAxisStart],c=e[i.crossAxisEnd],s=Xe(n[i.crossAxisStart],n[i.crossAxisEnd]),u=s(l),d=s(c);return!u&&!d||(u?l<a:c>a)}));return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map((t=>{const n=t.axis,o=Ne(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:Ae(r,o)}})).sort(((e,t)=>t.distance-e.distance));return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}({pageBorderBox:l,draggable:t,droppables:r});if(!c)return Je;const s=r[c],u=$e(s.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?At(t,n.scroll.diff.value):t})(s,l);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:i})=>{if(!r.isCombineEnabled)return null;const a=r.axis,l=Ot(r.axis,e.displaceBy),c=l.value,s=t[a.start],u=t[a.end],d=Ye(e,o).find((e=>{const t=e.descriptor.id,r=e.page.borderBox,o=r[a.size]/4,l=st(t,i),d=kt({displaced:n.displaced,id:t});return l?d?u>r[a.start]+o&&u<r[a.end]-o:s>r[a.start]-c+o&&s<r[a.end]-c-o:d?u>r[a.start]+c+o&&u<r[a.end]+c-o:s>r[a.start]+o&&s<r[a.end]-o}));return d?{displacedBy:l,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:r.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:s,insideDestination:u,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:o,viewport:i,afterCritical:a})=>{const l=n.axis,c=Ot(n.axis,t.displaceBy),s=c.value,u=e[l.start],d=e[l.end],f=function({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:Ye(t,r).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=st(t,a),i=kt({displaced:o,id:t});return r?i?d<=n:u<n-s:i?d<=n+s:u<n}))||null,inHomeList:qe(t,n)});return ct({draggable:t,insideDestination:r,destination:n,viewport:i,last:o,displacedBy:c,index:f})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:s,insideDestination:u,last:o.displaced,viewport:i,afterCritical:a})},jt=(e,t)=>({...e,[t.descriptor.id]:t});var Tt=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:i})=>{const a=r||e.viewport,l=n||e.dimensions,c=t||e.current.client.selection,s=De(c,e.initial.client.selection),u={offset:s,selection:c,borderBoxCenter:Ce(e.initial.client.borderBoxCenter,s)},d={selection:Ce(u.selection,a.scroll.current),borderBoxCenter:Ce(u.borderBoxCenter,a.scroll.current),offset:Ce(u.offset,a.scroll.diff.value)},f={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:l,viewport:a,current:f};const p=l.draggables[e.critical.draggable.id],m=o||Rt({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),g=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const i=(({previousImpact:e,impact:t,droppables:n})=>{const r=Dt(e),o=Dt(t);if(!r)return n;if(r===o)return n;const i=n[r];if(!i.subject.withPlaceholder)return n;const a=(e=>{const t=e.subject.withPlaceholder;t||be(!1);const n=e.frame;if(!n){const t=Be({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||be(!1);const o=St(n,r),i=Be({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return jt(n,a)})({previousImpact:r,impact:o,droppables:n}),a=Dt(o);if(!a)return i;const l=n[a];if(qe(e,l))return i;if(l.subject.withPlaceholder)return i;const c=Ct(l,e,t);return jt(i,c)})({draggable:p,impact:m,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:f,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},Mt=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const i=e.displaced,a=function(e,t){return e.map((e=>t[e]))}(i.all,n),l=at({afterDragging:a,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:l}},Bt=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:i})=>{const a=gt({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i});return yt({pageBorderBoxCenter:a,draggable:t,viewport:o})},Lt=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&be(!1);const r=e.impact,o=n||e.viewport,i=t||e.dimensions,{draggables:a,droppables:l}=i,c=a[e.critical.draggable.id],s=Dt(r);s||be(!1);const u=l[s],d=Mt({impact:r,viewport:o,destination:u,draggables:a}),f=Bt({impact:d,draggable:c,droppable:u,draggables:a,viewport:o,afterCritical:e.afterCritical});return Tt({impact:d,clientSelection:f,state:e,dimensions:i,viewport:o})},Ft=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=Ot(t.axis,e.displaceBy),i=$e(t.descriptor.id,n),a=i.indexOf(e);-1===a&&be(!1);const l=i.slice(a+1),c=l.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),s={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:c};var u;return{impact:{displaced:at({afterDragging:l,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:s}};const Wt=e=>"SNAP"===e.movementMode,Gt=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:jt(e.droppables,t)}))(e.dimensions,t);return!Wt(e)||n?Tt({state:e,dimensions:r}):Lt({state:e,dimensions:r})};function Ut(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const $t={phase:"IDLE",completed:null,shouldFlush:!1};var Ht=(e=$t,t)=>{if("FLUSH"===t.type)return{...$t,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&be(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:i,movementMode:a}=t.payload,l=i.draggables[n.draggable.id],c=i.droppables[n.droppable.id],s={selection:r,borderBoxCenter:l.client.borderBox.center,offset:Se},u={client:s,page:{selection:Ce(s.selection,o.scroll.initial),borderBoxCenter:Ce(s.selection,o.scroll.initial),offset:Ce(s.selection,o.scroll.diff.value)}},d=Ge(i.droppables).every((e=>!e.isFixedOnPage)),{impact:f,afterCritical:p}=Ft({draggable:l,home:c,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&be(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&be(!1),(({state:e,published:t})=>{const n=t.modified.map((t=>{const n=e.dimensions.droppables[t.droppableId];return Le(n,t.scroll)})),r={...e.dimensions.droppables,...Fe(n)},o=We((({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map((e=>{const o=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||be(!1),t})(t[o]),a=i.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=re(e.client,t),o=oe(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}})({draggable:e,offset:Ce(r,a),initialWindowScroll:n.scroll.initial});return l}))})({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach((e=>{delete i[e]}));const a={droppables:r,draggables:i},l=Dt(e.impact),c=l?a.droppables[l]:null,s=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=Ft({draggable:s,home:u,draggables:i,viewport:e.viewport}),p=c&&c.isCombineEnabled?e.impact:d,m=Rt({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f}),g={...e,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:a,afterCritical:f,forceShouldAnimate:!1};return"COLLECTING"===e.phase?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;It(e)||be(!1);const{client:n}=t.payload;return Pe(n,e.current.client.selection)?e:Tt({state:e,clientSelection:n,impact:Wt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ut(e);if("COLLECTING"===e.phase)return Ut(e);It(e)||be(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=Le(o,r);return Gt(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;It(e)||be(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||be(!1),o.isEnabled===r&&be(!1);const i={...o,isEnabled:r};return Gt(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;It(e)||be(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||be(!1),o.isCombineEnabled===r&&be(!1);const i={...o,isCombineEnabled:r};return Gt(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;It(e)||be(!1),e.isWindowScrollAllowed||be(!1);const n=t.payload.newScroll;if(Pe(e.viewport.scroll.current,n))return Ut(e);const r=ht(e.viewport,n);return Wt(e)?Lt({state:e,viewport:r}):Tt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!It(e))return e;const n=t.payload.maxScroll;if(Pe(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&be(!1);const n=Pt({state:e,type:t.type});return n?Tt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&be(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&be(!1),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const Vt=e=>({type:"LIFT",payload:e}),Yt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),qt=()=>({type:"COLLECTION_STARTING",payload:null}),zt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Kt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Xt=e=>({type:"MOVE",payload:e}),Qt=()=>({type:"MOVE_UP",payload:null}),Zt=()=>({type:"MOVE_DOWN",payload:null}),en=()=>({type:"MOVE_RIGHT",payload:null}),tn=()=>({type:"MOVE_LEFT",payload:null}),nn=()=>({type:"FLUSH",payload:null}),rn=e=>({type:"DROP_COMPLETE",payload:e}),on=e=>({type:"DROP",payload:e}),an="cubic-bezier(.2,1,.1,1)",ln=0,cn=.7,sn=.75,un={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},dn=`${un.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,fn={fluid:`opacity ${dn}`,snap:`transform ${dn}, opacity ${dn}`,drop:e=>{const t=`${e}s ${an}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${dn}`,placeholder:`height ${dn}, width ${dn}, margin ${dn}`},pn=e=>Pe(e,Se)?void 0:`translate(${e.x}px, ${e.y}px)`,mn=pn,gn=(e,t)=>{const n=pn(e);if(n)return t?`${n} scale(${sn})`:n},{minDropTime:hn,maxDropTime:bn}=un,yn=bn-hn;var vn=({getState:e,dispatch:t})=>n=>r=>{if("DROP"!==r.type)return void n(r);const o=e(),i=r.payload.reason;if("COLLECTING"===o.phase)return void t((a={reason:i},{type:"DROP_PENDING",payload:a}));var a;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&be(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&be(!1);const l=o.critical,c=o.dimensions,s=c.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:i})=>n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Ke},didDropInsideDroppable:!0}:{impact:Mt({draggables:e,impact:i,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d?He(u):null,p=d?Ve(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:i,mode:o.movementMode,destination:f,combine:p},h=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:i,droppables:a}=n,l=Dt(e),c=l?a[l]:null,s=a[t.descriptor.droppableId],u=Bt({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:c||s,viewport:r});return De(u,t.client.borderBox.center)})({impact:u,draggable:s,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(Pe(o.current.client.offset,h)&&!Boolean(g.combine))return void t(rn({completed:b}));const y=(({current:e,destination:t,reason:n})=>{const r=Ae(e,t);if(r<=0)return hn;if(r>=1500)return bn;const o=hn+yn*(r/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:h,reason:i});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:h,dropDuration:y,completed:b}))},_n=()=>({x:window.pageXOffset,y:window.pageYOffset});var En=e=>{const t=function({onWindowScroll:e}){const t=ue((function(){e(_n())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=fe;function o(){return r!==fe}return{start:function(){o()&&be(!1),r=pe(window,[n])},stop:function(){o()||be(!1),t.cancel(),r(),r=fe},isActive:o}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}};const wn=(e,t)=>{t()},xn=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function On(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout((()=>{n=!0})),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var Sn=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout((()=>(t=>{const n=e.findIndex((e=>e.timerId===t));-1===n&&be(!1);const[r]=e.splice(n,1);r.callback()})(n))),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}})();let r=null;const o=n=>{r||be(!1),r=null,wn(0,(()=>On(e().onDragEnd,n,t,Oe.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&be(!1),wn(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&be(!1),wn(0,(()=>{const r=e().onBeforeDragStart;r&&r(xn(t,n))}))},start:(o,i)=>{r&&be(!1);const a=xn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((()=>{wn(0,(()=>On(e().onDragStart,a,t,Oe.onDragStart)))}))},update:(o,i)=>{const a=He(i),l=Ve(i);r||be(!1);const c=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);c&&(r.lastCritical=o);const s=(d=a,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;s&&(r.lastLocation=a);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,l);if(f&&(r.lastCombine=l),!c&&!s&&!f)return;const p={...xn(o,r.mode),combine:l,destination:a};n.add((()=>{wn(0,(()=>On(e().onDragUpdate,p,t,Oe.onDragUpdate)))}))},flush:()=>{r||be(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...xn(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}},Cn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&be(!1),e.dispatch(rn({completed:r.completed}))},Dn=e=>{let t=null,n=null;return r=>o=>{if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"!==o.type)return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=pe(window,[i])}))}},Pn=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(on({reason:r.reason})))};const In=p;var Nn=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:o,autoScroller:l})=>{return u(Ht,In(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},l=t.map((function(e){return e(o)}));return r=p.apply(void 0,l)(n.dispatch),i(i({},n),{},{dispatch:r})}}}((c=n,()=>e=>t=>{"INITIAL_PUBLISH"===t.type&&c.dragging(),"DROP_ANIMATE"===t.type&&c.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||c.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>o=>{if("LIFT"!==o.type)return void r(o);const{id:i,clientSelection:a,movementMode:l}=o.payload,c=t();"DROP_ANIMATING"===c.phase&&n(rn({completed:c.completed})),"IDLE"!==t().phase&&be(!1),n(nn()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:l}});const s={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(s);n({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:a,movementMode:l,viewport:f}})})(e),vn,Cn,Dn,Pn,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&be(!1),void e.start(o)}n(r),e.scroll(t.getState())})(l),En,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Sn(r,o))));var c},An=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=De({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},kn=()=>{const e=document.documentElement;return e||be(!1),e},Rn=()=>{const e=kn();return An({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function jn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Tn=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame((()=>{r=null;const{additions:o,removals:i,modified:a}=n,l=Object.keys(o).map((t=>e.draggable.getById(t).getDimension(Se))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),c=Object.keys(a).map((t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}))),s={additions:l,removals:Object.keys(i),modified:c};n={additions:{},removals:{},modified:{}},t.publish(s)})))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||be(!1);const o=n.critical.draggable;"ADDITION"===t.type&&jn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&jn(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||be(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||be(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||be(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&be(!1);const r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},(({critical:e,scrollOptions:t,registry:n})=>{const r=(()=>{const e=_n(),t=Rn(),n=e.y,r=e.x,o=kn(),i=o.clientWidth,a=o.clientHeight;return{frame:X({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Se,displacement:Se}}}})(),o=r.scroll.current,i=e.droppable,a=n.droppable.getAllByType(i.type).map((e=>e.callbacks.getDimensionAndWatchScroll(o,t))),l=n.draggable.getAllByType(e.draggable.type).map((e=>e.getDimension(o)));return{dimensions:{draggables:We(l),droppables:Fe(a)},critical:e,viewport:r}})({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),n.unsubscribe(),n=null}};return i},Mn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,Bn=e=>{window.scrollBy(e.x,e.y)};const Ln=se((e=>Ge(e).filter((e=>!!e.isEnabled&&!!e.frame))));const Fn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Wn=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return 0===r?0:(n-e)/r},Gn=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const i=((e,t,n=(()=>Fn))=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-Wn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=r.maxPixelScroll*r.ease(o);return Math.ceil(i)})(e,t,o);return 0===i?0:r?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,a=t,l=i,c=Date.now()-a;if(c>=i)return e;if(c<o)return 1;const s=Wn({startOfRange:o,endOfRange:l,current:c}),u=e*r.ease(s);return Math.ceil(u)})(i,n,o),1):i},Un=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=((e,t,n=(()=>Fn))=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,i);return t[r.end]<t[r.start]?Gn({distanceToEdge:t[r.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*Gn({distanceToEdge:t[r.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})};const $n=Re((e=>0===e?0:e));var Hn=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},l=Un({container:t,distanceToEdges:a,dragStartTime:e,axis:et,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=Un({container:t,distanceToEdges:a,dragStartTime:e,axis:tt,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),s=$n({x:c,y:l});if(Pe(s,Se))return null;const u=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return o||r?o&&r?null:{x:o?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:s});return u?Pe(u,Se)?null:u:null};const Vn=Re((e=>0===e?0:e>0?1:-1)),Yn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const o=Ce(t,r),i={x:e(o.x,n.x),y:e(o.y,n.y)};return Pe(i,Se)?null:i}})(),qn=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=Vn(n),i=Yn({max:r,current:t,change:o});return!i||0!==o.x&&0===i.x||0!==o.y&&0===i.y},zn=(e,t)=>qn({current:e.scroll.current,max:e.scroll.max,change:t}),Kn=(e,t)=>{const n=e.frame;return!!n&&qn({current:n.scroll.current,max:n.scroll.max,change:t})};var Jn=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=Hn({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&zn(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:l,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});if(o)return void r(o)}const c=(({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=Ln(t).find((t=>(t.frame||be(!1),Nt(t.frame.pageMarginBox)(e))))||null;return n})(e,n);return r})({center:a,destination:Dt(e.impact),droppables:e.dimensions.droppables});if(!c)return;const s=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const l=Hn({dragStartTime:r,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return l&&Kn(e,l)?l:null})({dragStartTime:t,droppable:c,subject:l,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});s&&o(c.descriptor.id,s)},Xn=({move:e,scrollDroppable:t,scrollWindow:n})=>r=>{const o=r.scrollJumpRequest;if(!o)return;const i=Dt(r.impact);i||be(!1);const a=((e,n)=>{if(!Kn(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&Kn(e,t)?Yn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const o=De(n,r);return t(e.descriptor.id,o),De(n,o)})(r.dimensions.droppables[i],o);if(!a)return;const l=r.viewport,c=((e,t,r)=>{if(!e)return r;if(!zn(t,r))return r;const o=((e,t)=>{if(!zn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Yn({current:r,max:n,change:t})})(t,r);if(!o)return n(r),null;const i=De(r,o);return n(i),De(r,i)})(r.isWindowScrollAllowed,l,a);c&&((t,n)=>{const r=Ce(t.current.client.selection,n);e({client:r})})(r,c)},Qn=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=(()=>Fn)})=>{const r=ue(e),o=ue(t);let i=null;const a=e=>{i||be(!1);const{shouldUseTimeDampening:t,dragStartTime:a}=i;Jn({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{i&&be(!1);const t=Date.now();let r=!1;const o=()=>{r=!0};Jn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:n}),i={dragStartTime:t,shouldUseTimeDampening:r},r&&a(e)},stop:()=>{i&&(r.cancel(),o.cancel(),i=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),i=Xn({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}};const Zn="data-rfd",er=(()=>{const e=`${Zn}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),tr=(()=>{const e=`${Zn}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),nr=(()=>{const e=`${Zn}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),rr={contextId:`${Zn}-scroll-container-context-id`},or=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var ir=e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(er.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),r=[(()=>{const e=`\n transition: ${fn.outOfTheWay};\n `;return{selector:t(tr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(nr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:or(r,"always"),resting:or(r,"resting"),dragging:or(r,"dragging"),dropAnimating:or(r,"dropAnimating"),userCancel:or(r,"userCancel")}},ar="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const lr=()=>{const e=document.querySelector("head");return e||be(!1),e},cr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function sr(e,t){return Array.from(e.querySelectorAll(t))}var ur=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function dr(e){return e instanceof ur(e).HTMLElement}function fr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((t=>t(e)))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||be(!1),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter((e=>e.descriptor.type===t))},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||be(!1),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter((e=>e.descriptor.type===t))},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var pr=e.default.createContext(null),mr=()=>{const e=document.body;return e||be(!1),e},gr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const hr=e=>`rfd-announcement-${e}`;let br=0;const yr={separator:"::"};var vr="useId"in e.default?function(t,n=yr){const r=e.default.useId();return K((()=>`${t}${n.separator}${r}`),[n.separator,t,r])}:function(e,t=yr){return K((()=>`${e}${t.separator}${br++}`),[t.separator,e])},_r=e.default.createContext(null);function Er(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function wr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const xr={13:!0,9:!0};var Or=e=>{xr[e.keyCode]&&e.preventDefault()},Sr=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Cr={type:"IDLE"};function Dr(){}const Pr={34:!0,33:!0,36:!0,35:!0};const Ir={type:"IDLE"},Nr=["input","button","textarea","select","option","optgroup","video","audio"];function Ar(e,t){if(null==t)return!1;if(Nr.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Ar(e,t.parentElement)}function kr(e,t){const n=t.target;return!!dr(n)&&Ar(e,n)}var Rr=e=>X(e.getBoundingClientRect()).center;const jr=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function Tr(e,t){return null==e?null:e[jr](t)?e:Tr(e.parentElement,t)}function Mr(e,t){return e.closest?e.closest(t):Tr(e,t)}function Br(e){e.preventDefault()}function Lr({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function Fr({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!!o&&!!o.options.isEnabled&&!!Mn(t.getState(),r)}const Wr=[function(t){const n=(0,e.useRef)(Cr),r=(0,e.useRef)(fe),o=K((()=>({eventName:"mousedown",fn:function(e){if(e.defaultPrevented)return;if(0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,l,{sourceEvent:e});if(!o)return;e.preventDefault();const i={x:e.clientX,y:e.clientY};r.current(),u(o,i)}})),[t]),i=K((()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}})),[t]),a=J((function(){r.current=pe(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=J((()=>{"IDLE"!==n.current.type&&(n.current=Cr,r.current(),a())}),[a]),c=J((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=J((function(){const e=function({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(0!==t)return;const a={x:o,y:i},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&be(!1),c=l.point,s=a,!(Math.abs(s.x-c.x)>=5||Math.abs(s.y-c.y)>=5))return;var c,s;e.preventDefault();const u=l.actions.fluidLift(a);r({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void Or(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&be(!1),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:Sr,fn:e}]}({cancel:c,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=pe(window,e,{capture:!0,passive:!1})}),[c,l]),u=J((function(e,t){"IDLE"!==n.current.type&&be(!1),n.current={type:"PENDING",point:t,actions:e},s()}),[s]);ar((function(){return a(),function(){r.current()}}),[a])},function(t){const n=(0,e.useRef)(Dr),r=K((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const i=t.tryGetLock(r,c,{sourceEvent:e});if(!i)return;e.preventDefault();let a=!0;const l=i.snapLift();function c(){a||be(!1),a=!1,n.current(),o()}n.current(),n.current=pe(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Pr[r.keyCode]?r.preventDefault():Or(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Sr,fn:n}]}(l,c),{capture:!0,passive:!1})}})),[t]),o=J((function(){n.current=pe(window,[r],{passive:!1,capture:!0})}),[r]);ar((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(Ir),r=(0,e.useRef)(fe),o=J((function(){return n.current}),[]),i=J((function(e){n.current=e}),[]),a=K((()=>({eventName:"touchstart",fn:function(e){if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,c,{sourceEvent:e});if(!o)return;const i=e.touches[0],{clientX:a,clientY:l}=i,s={x:a,y:l};r.current(),f(o,s)}})),[t]),l=J((function(){r.current=pe(window,[a],{capture:!0,passive:!1})}),[a]),c=J((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Ir),r.current(),l())}),[l,i]),s=J((()=>{const e=n.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),u=J((function(){const e={capture:!0,passive:!1},t={cancel:s,completed:c,getPhase:o},n=pe(window,function({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:o,clientY:i}=t.touches[0],a={x:o,y:i};t.preventDefault(),r.actions.move(a)}},{eventName:"touchend",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&be(!1);const o=t.touches[0];if(!o)return;if(!(o.force>=.15))return;const i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}},{eventName:Sr,fn:e}]}(t),e),i=pe(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(27===n.keyCode&&n.preventDefault(),e()):e()}},{eventName:Sr,fn:e}]}(t),e);r.current=function(){n(),i()}}),[s,o,c]),d=J((function(){const e=o();"PENDING"!==e.type&&be(!1);const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=J((function(e,t){"IDLE"!==o().type&&be(!1);const n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);ar((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Ir))}}),[o,l,i]),ar((function(){return pe(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function Gr({contextId:t,store:n,registry:r,customSensors:o,enableDefaultSensors:i}){const a=[...i?Wr:[],...o||[]],l=(0,e.useState)((()=>function(){let e=null;function t(){e||be(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&be(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],c=J((function(e,t){wr(e)&&!wr(t)&&l.tryAbandon()}),[l]);ar((function(){let e=n.getState();return n.subscribe((()=>{const t=n.getState();c(e,t),e=t}))}),[l,n,c]),ar((()=>l.tryAbandon),[l.tryAbandon]);const s=J((e=>Fr({lockAPI:l,registry:r,store:n,draggableId:e})),[l,r,n]),u=J(((e,o,i)=>function({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!Fr({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const l=r.draggable.getById(o),c=function(e,t){const n=`[${tr.contextId}="${e}"]`,r=sr(document,n).find((e=>e.getAttribute(tr.id)===t));return r&&dr(r)?r:null}(t,l.descriptor.id);if(!c)return null;if(a&&!l.options.canDragInteractiveElements&&kr(c,a))return null;const s=e.claim(i||fe);let u="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function f(){return e.isActive(s)}const p=function(e,t){Lr({expected:e,phase:u,isLockActive:f,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(t){function r(){e.release(),u="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=pe(window,[{eventName:"click",fn:Br,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(on({reason:e}))}return"PRE_DRAG"!==u&&(r(),be(!1)),n.dispatch(Vt(t.liftActionArgs)),u="DRAGGING",{isActive:()=>Lr({expected:"DRAGGING",phase:u,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}return{isActive:()=>Lr({expected:"PRE_DRAG",phase:u,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=ue((e=>{p((()=>Xt({client:e})))}));return{...m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>p(Qt),moveRight:()=>p(en),moveDown:()=>p(Zt),moveLeft:()=>p(tn)};return m({liftActionArgs:{id:o,clientSelection:Rr(c),movementMode:"SNAP"},cleanup:fe,actions:e})},abort:function(){Lr({expected:"PRE_DRAG",phase:u,isLockActive:f,shouldWarn:!0})&&e.release()}}}({lockAPI:l,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})),[t,l,r,n]),d=J((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof ur(r).Element))return null;var r;const o=function(e){return`[${er.contextId}="${e}"]`}(e),i=Mr(n,o);return i&&dr(i)?i:null}(e,t);return n?n.getAttribute(er.draggableId):null}(t,e)),[t]),f=J((e=>{const t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),p=J((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(nn()))}),[l,n]),m=J((()=>l.isClaimed()),[l]),g=K((()=>({canGetLock:s,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m})),[s,u,d,f,p,m]);for(let e=0;e<a.length;e++)a[e](g)}const Ur=t=>({onBeforeCapture:n=>{const r=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.default.version.startsWith("16")||e.default.version.startsWith("17")?r():(0,e.flushSync)(r)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),$r=e=>({...Fn,...e.autoScrollerOptions,durationDampening:{...Fn.durationDampening,...e.autoScrollerOptions}});function Hr(e){return e.current||be(!1),e.current}function Vr(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:i,dragHandleUsageInstructions:a}=t,l=(0,e.useRef)(null),c=Er(t),s=J((()=>Ur(c.current)),[c]),u=J((()=>$r(c.current)),[c]),d=function(t){const n=K((()=>hr(t)),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),x(e.style,gr),mr().appendChild(e),function(){setTimeout((function(){const t=mr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),J((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),p=function({contextId:t,text:n}){const r=vr("hidden-text",{separator:"-"}),o=K((()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:t,uniqueId:r})),[r,t]);return(0,e.useEffect)((function(){const e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",mr().appendChild(e),function(){const t=mr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:n,text:a}),m=function(t,n){const r=K((()=>ir(t)),[t]),o=(0,e.useRef)(null),i=(0,e.useRef)(null),a=J(se((e=>{const t=i.current;t||be(!1),t.textContent=e})),[]),l=J((e=>{const t=o.current;t||be(!1),t.textContent=e}),[]);ar((()=>{(o.current||i.current)&&be(!1);const e=cr(n),c=cr(n);return o.current=e,i.current=c,e.setAttribute(`${Zn}-always`,t),c.setAttribute(`${Zn}-dynamic`,t),lr().appendChild(e),lr().appendChild(c),l(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||be(!1),lr().removeChild(t),e.current=null};e(o),e(i)}}),[n,l,a,r.always,r.resting,t]);const c=J((()=>a(r.dragging)),[a,r.dragging]),s=J((e=>{a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),u=J((()=>{i.current&&a(r.resting)}),[a,r.resting]);return K((()=>({dragging:c,dropping:s,resting:u})),[c,s,u])}(n,i),g=J((e=>{Hr(l).dispatch(e)}),[]),h=K((()=>f({publishWhileDragging:Yt,updateDroppableScroll:zt,updateDroppableIsEnabled:Kt,updateDroppableIsCombineEnabled:Jt,collectionStarting:qt},g)),[g]),b=function(){const t=K(fr,[]);return(0,e.useEffect)((()=>function(){e.default.version.startsWith("16")||e.default.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),y=K((()=>Tn(b,h)),[b,h]),v=K((()=>Qn({scrollWindow:Bn,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:u,...f({move:Xt},g)})),[y.scrollDroppable,g,u]),_=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),i=(0,e.useRef)(!1),a=J((function(e,t){const r={id:e,focus:t};return n.current[e]=r,function(){const t=n.current;t[e]!==r&&delete t[e]}}),[]),l=J((function(e){const n=function(e,t){const n=`[${er.contextId}="${e}"]`,r=sr(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(er.draggableId)===t));return o&&dr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),c=J((function(e,t){r.current===e&&(r.current=t)}),[]),s=J((function(){o.current||i.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),u=J((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(er.draggableId)===e&&(r.current=e)}),[]);return ar((()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),K((()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:c})),[a,u,s,c])}(n),E=K((()=>Nn({announce:d,autoScroller:v,dimensionMarshal:y,focusMarshal:_,getResponders:s,styleMarshal:m})),[d,v,y,_,s,m]);l.current=E;const w=J((()=>{const e=Hr(l);"IDLE"!==e.getState().phase&&e.dispatch(nn())}),[]),O=J((()=>{const e=Hr(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(K((()=>({isDragging:O,tryAbort:w})),[O,w]));const S=J((e=>Mn(Hr(l).getState(),e)),[]),C=J((()=>It(Hr(l).getState())),[]),D=K((()=>({marshal:y,focus:_,contextId:n,canLift:S,isMovementAllowed:C,dragHandleUsageInstructionsId:p,registry:b})),[n,y,p,_,S,C,b]);return Gr({contextId:n,store:E,registry:b,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>w),[w]),e.default.createElement(_r.Provider,{value:D},e.default.createElement(Y,{context:pr,store:E},t.children))}let Yr=0;var qr="useId"in e.default?function(){return e.default.useId()}:function(){return K((()=>""+Yr++),[])};function zr(t){const n=qr(),r=t.dragHandleUsageInstructions||Oe.dragHandleUsageInstructions;return e.default.createElement(ye,null,(o=>e.default.createElement(Vr,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children)))}const Kr=5e3,Jr=4500,Xr=(e,t)=>t?fn.drop(t.duration):e?fn.snap:fn.fluid,Qr=(e,t)=>{if(e)return t?ln:cn};var Zr=e.default.createContext(null);function eo(t){const n=(0,e.useContext)(t);return n||be(!1),n}function to(e){e.preventDefault()}var no=(e,t)=>e===t,ro=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function oo(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const io={mapped:{type:"SECONDARY",offset:Se,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}},ao=V((()=>{const e=function(){const e=se(((e,t)=>({x:e,y:t}))),t=se(((e,t,n=null,r=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}))),n=se(((e,n,r,o,i=null,a=null,l=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}})));return(r,o)=>{if(wr(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=Dt(r.impact),c=(i=r.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,o.isClone,l,c,s)}var i;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,i=r.dimensions.draggables[o.draggableId],a=e.result,l=a.mode,c=ro(a),s=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:r.dropDuration,curve:an,moveTo:r.newHomeClientOffset,opacity:s?ln:null,scale:s?sn:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:i,dropping:u,draggingOver:c,combineWith:s,mode:l,forceShouldAnimate:null,snapshot:t(l,n,c,s,u)}}}return null}}(),t=function(){const e=se(((e,t)=>({x:e,y:t}))),t=se(oo),n=se(((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}))),r=e=>e?n(Se,e,!0):null,o=(t,o,i,a)=>{const l=i.displaced.visible[t],c=Boolean(a.inVirtualList&&a.effected[t]),s=Ve(i),u=s&&s.draggableId===t?o:null;if(!l){if(!c)return r(u);if(i.displaced.invisible[t])return null;const o=Ie(a.displacedBy.point),l=e(o.x,o.y);return n(l,u,!0)}if(c)return r(u);const d=i.displacedBy.point,f=e(d.x,d.y);return n(f,u,l.shouldAnimate)};return(e,t)=>{if(wr(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||io}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:pr,areStatePropsEqual:no})((t=>{const n=(0,e.useRef)(null),r=J(((e=null)=>{n.current=e}),[]),o=J((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:l}=eo(_r),{type:c,droppableId:s}=eo(Zr),u=K((()=>({id:t.draggableId,index:t.index,type:c,droppableId:s})),[t.draggableId,t.index,c,s]),{children:d,draggableId:f,isEnabled:p,shouldRespectForcePress:m,canDragInteractiveElements:g,isClone:h,mapped:b,dropAnimationFinished:y}=t;h||function(t){const n=vr("draggable"),{descriptor:r,registry:o,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:c}=t,s=K((()=>({canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:c})),[a,c,l]),u=J((e=>{const t=i();return t||be(!1),function(e,t,n=Se){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ie(o,r),a=oe(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),d=K((()=>({uniqueId:n,descriptor:r,options:s,getDimension:u})),[r,u,s,n]),f=(0,e.useRef)(d),p=(0,e.useRef)(!0);ar((()=>(o.draggable.register(f.current),()=>o.draggable.unregister(f.current))),[o.draggable]),ar((()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(K((()=>({descriptor:u,registry:l,getDraggableRef:o,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:p})),[u,l,o,g,m,p]));const v=K((()=>p?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:to}:null),[i,a,f,p]),_=J((t=>{"DRAGGING"===b.type&&b.dropping&&"transform"===t.propertyName&&(e.default.version.startsWith("16")||e.default.version.startsWith("17")?y():(0,e.flushSync)(y))}),[y,b]),E=K((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,i=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),c=l?gn(n,i):mn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Xr(a,o),transform:c,opacity:Qr(i,l),zIndex:l?Jr:Kr,pointerEvents:"none"}}(e):{transform:mn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(b),t="DRAGGING"===b.type&&b.dropping?_:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:v}}),[i,v,f,b,_,r]),w=K((()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}})),[u.droppableId,u.id,u.index,u.type]);return e.default.createElement(e.default.Fragment,null,d(E,b.snapshot,w))}));var lo=ao;function co(t){return eo(Zr).isUsingCloneFor!==t.draggableId||t.isClone?e.default.createElement(lo,t):null}function so(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.default.createElement(co,x({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const uo=e=>t=>e===t,fo=uo("scroll"),po=uo("auto"),mo=(uo("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),go=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return mo(n,fo)||mo(n,po)})(e)?e:go(e.parentElement);var ho=go,bo=e=>({x:e.scrollLeft,y:e.scrollTop});const yo=e=>!!e&&("fixed"===window.getComputedStyle(e).position||yo(e.parentElement));const vo={passive:!1},_o={passive:!0};var Eo=e=>e.shouldPublishImmediately?vo:_o;const wo=e=>e&&e.env.closestScrollable||null;function xo(t){const n=(0,e.useRef)(null),r=eo(_r),o=vr("droppable"),{registry:i,marshal:a}=r,l=Er(t),c=K((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),s=(0,e.useRef)(c),u=K((()=>se(((e,t)=>{n.current||be(!1);const r={x:e,y:t};a.updateDroppableScroll(c.id,r)}))),[c.id,a]),d=J((()=>{const e=n.current;return e&&e.env.closestScrollable?bo(e.env.closestScrollable):Se}),[]),f=J((()=>{const e=d();u(e.x,e.y)}),[d,u]),p=K((()=>ue(f)),[f]),m=J((()=>{const e=n.current,t=wo(e);e&&t||be(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),g=J(((e,t)=>{n.current&&be(!1);const o=l.current,i=o.getDroppableRef();i||be(!1);const a=(e=>({closestScrollable:ho(e),isFixedOnPage:yo(e)}))(i),s={ref:i,descriptor:c,env:a,scrollOptions:t};n.current=s;const u=(({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:l})=>{const c=n.closestScrollable,s=((e,t)=>{const n=ae(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Q({top:r,right:a,bottom:i,left:o},n.border);return te({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(e,c),u=oe(s,r),d=(()=>{if(!c)return null;const e=ae(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:oe(e,r),scroll:bo(c),scrollSize:t,shouldClipSubject:l}})(),f=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:i,page:a,closest:l})=>{const c=(()=>{if(!l)return null;const{scrollSize:e,client:t}=l,n=An({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Se,displacement:Se}}}})(),s="vertical"===o?et:tt;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:s,isEnabled:t,client:i,page:a,frame:c,subject:Be({page:a,withPlaceholder:null,axis:s,frame:c})}})({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:n.isFixedOnPage,direction:o,client:s,page:u,closest:d});return f})({ref:i,descriptor:c,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(rr.contextId,r.contextId),d.addEventListener("scroll",m,Eo(s.scrollOptions))),u}),[r.contextId,c,m,l]),h=J((()=>{const e=n.current,t=wo(e);return e&&t||be(!1),bo(t)}),[]),b=J((()=>{const e=n.current;e||be(!1);const t=wo(e);n.current=null,t&&(p.cancel(),t.removeAttribute(rr.contextId),t.removeEventListener("scroll",m,Eo(e.scrollOptions)))}),[m,p]),y=J((e=>{const t=n.current;t||be(!1);const r=wo(t);r||be(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),v=K((()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:h,dragStopped:b,scroll:y})),[b,g,h,y]),_=K((()=>({uniqueId:o,descriptor:c,callbacks:v})),[v,c,o]);ar((()=>(s.current=_.descriptor,i.droppable.register(_),()=>{n.current&&b(),i.droppable.unregister(_)})),[v,c,b,_,a,i.droppable]),ar((()=>{n.current&&a.updateDroppableIsEnabled(s.current.id,!t.isDropDisabled)}),[t.isDropDisabled,a]),ar((()=>{n.current&&a.updateDroppableIsCombineEnabled(s.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,a])}function Oo(){}const So={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Co=e.default.memo((t=>{const n=(0,e.useRef)(null),r=J((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:i,onClose:a,contextId:l}=t,[c,s]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>c?"open"!==o?(r(),s(!1),Oo):n.current?Oo:(n.current=setTimeout((()=>{n.current=null,s(!1)})),r):Oo),[o,c,r]);const u=J((e=>{"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),d=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?So:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?fn.placeholder:null}})({isAnimatingOpenOnMount:c,animate:t.animate,placeholder:t.placeholder});return e.default.createElement(t.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":l,onTransitionEnd:u,ref:t.innerRef})}));class Do extends e.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const Po={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||be(!1),document.body}},Io=e=>{let t,n={...e};for(t in Po)void 0===e[t]&&(n={...n,[t]:Po[t]});return n},No=(e,t)=>e===t.droppable.type,Ao=(e,t)=>t.draggables[e.draggable.id];var ko=V((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=se((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=se(((r,o,i,a,l,c)=>{const s=l.descriptor.id;if(l.descriptor.droppableId===r){const e=c?{render:c,dragging:n(l.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const u={isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}}));return(n,o)=>{const i=Io(o),a=i.droppableId,l=i.type,c=!i.isDropDisabled,s=i.renderClone;if(wr(n)){const e=n.critical;if(!No(l,e))return t;const o=Ao(e,n.dimensions),i=Dt(n.impact)===a;return r(a,c,i,i,o,s)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!No(l,e.critical))return t;const o=Ao(e.critical,n.dimensions);return r(a,c,ro(e.result)===a,Dt(e.impact)===a,o,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!No(l,r.critical))return t;const o=Dt(r.impact)===a,i=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),c=r.critical.droppable.id===a;return o?i?e:t:c?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...Io(n),...e,...t})),{context:pr,areStatePropsEqual:no})((t=>{const n=(0,e.useContext)(_r);n||be(!1);const{contextId:r,isMovementAllowed:o}=n,i=(0,e.useRef)(null),a=(0,e.useRef)(null),{children:l,droppableId:c,type:s,mode:u,direction:d,ignoreContainerClipping:f,isDropDisabled:p,isCombineEnabled:m,snapshot:g,useClone:h,updateViewportMaxScroll:b,getContainerForClone:y}=t,v=J((()=>i.current),[]),_=J(((e=null)=>{i.current=e}),[]),E=(J((()=>a.current),[]),J(((e=null)=>{a.current=e}),[])),w=J((()=>{o()&&b({maxScroll:Rn()})}),[o,b]);xo({droppableId:c,type:s,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:v});const x=K((()=>e.default.createElement(Do,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(({onClose:t,data:n,animate:o})=>e.default.createElement(Co,{placeholder:n,onClose:t,innerRef:E,animate:o,contextId:r,onTransitionEnd:w})))),[r,w,t.placeholder,t.shouldAnimatePlaceholder,E]),O=K((()=>({innerRef:_,placeholder:x,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":r}})),[r,c,x,_]),S=h?h.dragging.draggableId:null,C=K((()=>({droppableId:c,type:s,isUsingCloneFor:S})),[c,S,s]);return e.default.createElement(Zr.Provider,{value:C},l(O,g),function(){if(!h)return null;const{dragging:t,render:n}=h,r=e.default.createElement(co,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return e.default.createPortal(r,y())}())}));const Ro=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i},{useDebugValue:jo}=e.default,{useSyncExternalStoreWithSelector:To}=g,Mo=(e,t)=>{const n=(e=>e?Ro(e):Ro)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=To(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return jo(r),r}(n,e,r);return Object.assign(r,n),r};function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==Bo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bo(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wo=window.shop_data,Go=Array.from(Wo.columns.backlog.categories.map((function(e){return e.itemIds})).flat()),Uo=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!i&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(a.transitionDuration="0.001s"),Fo(Fo({},e),a)):Fo(Fo({},e),a)},$o=function(e,t){var n=t.isDraggingOver;return Fo(Fo({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})};function Ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",i=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-i).toFixed(t).slice(2):"")}catch(t){return e}}var Vo=function(e,t){var n=t-e;return Array.from({length:n},(function(t,n){return e+n}))},Yo=function(e,t){return e.length===t.length&&e.every((function(e,n){return e.id===t[n].id}))},qo=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))};function zo(e,t){return!e&&!t||!(!e!=!t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(Object.getPrototypeOf(e)!==Object.getPrototypeOf([])||!!Object.keys(e).length==!!Object.keys(t).length)}var Ko=n(962);function Jo(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var Xo=n(697),Qo=n.n(Xo);function Zo(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function ei(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const ti=2**31-1;function ni(e,t,n){const r=n-Date.now();e.current=r<=ti?setTimeout(t,r):setTimeout((()=>ni(e,t,n)),ti)}function ri(){const t=Zo(),n=(0,e.useRef)();return ei((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=ti?n.current=setTimeout(r,o):ni(n,r,Date.now()+o))},clear:e}}),[])}var oi=n(473),ii=n.n(oi);function ai(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function li(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function ci(t,n,r){var o=(0,e.useRef)(void 0!==t),i=(0,e.useState)(n),a=i[0],l=i[1],c=void 0!==t,s=o.current;return o.current=c,!c&&s&&a!==n&&l(n),[c?t:a,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),l(e)}),[r])]}n(143);const si=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,ui=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=si(e),r=si(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var di=n(184),fi=n.n(di);function pi(){return(0,e.useState)(null)}var mi=Object.prototype.hasOwnProperty;function gi(e,t,n){for(n of e.keys())if(hi(n,t))return n}function hi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&hi(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=gi(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=gi(t,o)))return!1;if(!hi(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(mi.call(e,n)&&++r&&!mi.call(t,n))return!1;if(!(n in t)||!hi(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function bi(e){return e.split("-")[0]}function yi(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vi(e){return e instanceof yi(e).Element||e instanceof Element}function _i(e){return e instanceof yi(e).HTMLElement||e instanceof HTMLElement}function Ei(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yi(e).ShadowRoot||e instanceof ShadowRoot)}var wi=Math.max,xi=Math.min,Oi=Math.round;function Si(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ci(){return!/^((?!chrome|android).)*safari/i.test(Si())}function Di(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&_i(e)&&(o=e.offsetWidth>0&&Oi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Oi(r.height)/e.offsetHeight||1);var a=(vi(e)?yi(e):window).visualViewport,l=!Ci()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,s=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c,x:c,y:s}}function Pi(e){var t=Di(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ii(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ei(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ni(e){return e?(e.nodeName||"").toLowerCase():null}function Ai(e){return yi(e).getComputedStyle(e)}function ki(e){return["table","td","th"].indexOf(Ni(e))>=0}function Ri(e){return((vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ji(e){return"html"===Ni(e)?e:e.assignedSlot||e.parentNode||(Ei(e)?e.host:null)||Ri(e)}function Ti(e){return _i(e)&&"fixed"!==Ai(e).position?e.offsetParent:null}function Mi(e){for(var t=yi(e),n=Ti(e);n&&ki(n)&&"static"===Ai(n).position;)n=Ti(n);return n&&("html"===Ni(n)||"body"===Ni(n)&&"static"===Ai(n).position)?t:n||function(e){var t=/firefox/i.test(Si());if(/Trident/i.test(Si())&&_i(e)&&"fixed"===Ai(e).position)return null;var n=ji(e);for(Ei(n)&&(n=n.host);_i(n)&&["html","body"].indexOf(Ni(n))<0;){var r=Ai(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Bi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Li(e,t,n){return wi(e,xi(t,n))}function Fi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Wi(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Gi="top",Ui="bottom",$i="right",Hi="left",Vi="auto",Yi=[Gi,Ui,$i,Hi],qi="start",zi="end",Ki="viewport",Ji="popper",Xi=Yi.reduce((function(e,t){return e.concat([t+"-"+qi,t+"-"+zi])}),[]),Qi=[].concat(Yi,[Vi]).reduce((function(e,t){return e.concat([t,t+"-"+qi,t+"-"+zi])}),[]),Zi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ea={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=bi(n.placement),c=Bi(l),s=[Hi,$i].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return Fi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Wi(e,Yi))}(o.padding,n),d=Pi(i),f="y"===c?Gi:Hi,p="y"===c?Ui:$i,m=n.rects.reference[s]+n.rects.reference[c]-a[c]-n.rects.popper[s],g=a[c]-n.rects.reference[c],h=Mi(i),b=h?"y"===c?h.clientHeight||0:h.clientWidth||0:0,y=m/2-g/2,v=u[f],_=b-d[s]-u[p],E=b/2-d[s]/2+y,w=Li(v,E,_),x=c;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ii(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ta(e){return e.split("-")[1]}var na={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ra(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,s=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,g=void 0===m?0:m,h="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=h.x,g=h.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=Hi,_=Gi,E=window;if(s){var w=Mi(n),x="clientHeight",O="clientWidth";w===yi(n)&&"static"!==Ai(w=Ri(n)).position&&"absolute"===l&&(x="scrollHeight",O="scrollWidth"),(o===Gi||(o===Hi||o===$i)&&i===zi)&&(_=Ui,g-=(d&&w===E&&E.visualViewport?E.visualViewport.height:w[x])-r.height,g*=c?1:-1),o!==Hi&&(o!==Gi&&o!==Ui||i!==zi)||(v=$i,p-=(d&&w===E&&E.visualViewport?E.visualViewport.width:w[O])-r.width,p*=c?1:-1)}var S,C=Object.assign({position:l},s&&na),D=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Oi(n*o)/o||0,y:Oi(r*o)/o||0}}({x:p,y:g},yi(n)):{x:p,y:g};return p=D.x,g=D.y,c?Object.assign({},C,((S={})[_]=y?"0":"",S[v]=b?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",S)):Object.assign({},C,((t={})[_]=y?g+"px":"",t[v]=b?p+"px":"",t.transform="",t))}const oa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,c=void 0===l||l,s={placement:bi(t.placement),variation:ta(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ra(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ra(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ia={passive:!0};const aa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=yi(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,ia)})),l&&c.addEventListener("resize",n.update,ia),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,ia)})),l&&c.removeEventListener("resize",n.update,ia)}},data:{}};var la={left:"right",right:"left",bottom:"top",top:"bottom"};function ca(e){return e.replace(/left|right|bottom|top/g,(function(e){return la[e]}))}var sa={start:"end",end:"start"};function ua(e){return e.replace(/start|end/g,(function(e){return sa[e]}))}function da(e){var t=yi(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fa(e){return Di(Ri(e)).left+da(e).scrollLeft}function pa(e){var t=Ai(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ma(e){return["html","body","#document"].indexOf(Ni(e))>=0?e.ownerDocument.body:_i(e)&&pa(e)?e:ma(ji(e))}function ga(e,t){var n;void 0===t&&(t=[]);var r=ma(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=yi(r),a=o?[i].concat(i.visualViewport||[],pa(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ga(ji(a)))}function ha(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ba(e,t,n){return t===Ki?ha(function(e,t){var n=yi(e),r=Ri(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var s=Ci();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+fa(e),y:c}}(e,n)):vi(t)?function(e,t){var n=Di(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ha(function(e){var t,n=Ri(e),r=da(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=wi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+fa(e),c=-r.scrollTop;return"rtl"===Ai(o||n).direction&&(l+=wi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}(Ri(e)))}function ya(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bi(o):null,a=o?ta(o):null,l=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case Gi:t={x:l,y:n.y-r.height};break;case Ui:t={x:l,y:n.y+n.height};break;case $i:t={x:n.x+n.width,y:c};break;case Hi:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var s=i?Bi(i):null;if(null!=s){var u="y"===s?"height":"width";switch(a){case qi:t[s]=t[s]-(n[u]/2-r[u]/2);break;case zi:t[s]=t[s]+(n[u]/2-r[u]/2)}}return t}function va(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,c=void 0===l?"clippingParents":l,s=n.rootBoundary,u=void 0===s?Ki:s,d=n.elementContext,f=void 0===d?Ji:d,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,h=void 0===g?0:g,b=Fi("number"!=typeof h?h:Wi(h,Yi)),y=f===Ji?"reference":Ji,v=e.rects.popper,_=e.elements[m?y:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=ga(ji(e)),n=["absolute","fixed"].indexOf(Ai(e).position)>=0&&_i(e)?Mi(e):e;return vi(n)?t.filter((function(e){return vi(e)&&Ii(e,n)&&"body"!==Ni(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=ba(e,n,r);return t.top=wi(o.top,t.top),t.right=xi(o.right,t.right),t.bottom=xi(o.bottom,t.bottom),t.left=wi(o.left,t.left),t}),ba(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(vi(_)?_:_.contextElement||Ri(e.elements.popper),c,u,a),w=Di(e.elements.reference),x=ya({reference:w,element:v,strategy:"absolute",placement:o}),O=ha(Object.assign({},v,x)),S=f===Ji?O:w,C={top:E.top-S.top+b.top,bottom:S.bottom-E.bottom+b.bottom,left:E.left-S.left+b.left,right:S.right-E.right+b.right},D=e.modifiersData.offset;if(f===Ji&&D){var P=D[o];Object.keys(C).forEach((function(e){var t=[$i,Ui].indexOf(e)>=0?1:-1,n=[Gi,Ui].indexOf(e)>=0?"y":"x";C[e]+=P[n]*t}))}return C}const _a={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,c=n.fallbackPlacements,s=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,g=n.allowedAutoPlacements,h=t.options.placement,b=bi(h),y=c||(b!==h&&m?function(e){if(bi(e)===Vi)return[];var t=ca(e);return[ua(e),t,ua(t)]}(h):[ca(h)]),v=[h].concat(y).reduce((function(e,n){return e.concat(bi(n)===Vi?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,s=void 0===c?Qi:c,u=ta(r),d=u?l?Xi:Xi.filter((function(e){return ta(e)===u})):Yi,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=va(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bi(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:s,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),_=t.rects.reference,E=t.rects.popper,w=new Map,x=!0,O=v[0],S=0;S<v.length;S++){var C=v[S],D=bi(C),P=ta(C)===qi,I=[Gi,Ui].indexOf(D)>=0,N=I?"width":"height",A=va(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:s}),k=I?P?$i:Hi:P?Ui:Gi;_[N]>E[N]&&(k=ca(k));var R=ca(k),j=[];if(i&&j.push(A[D]<=0),l&&j.push(A[k]<=0,A[R]<=0),j.every((function(e){return e}))){O=C,x=!1;break}w.set(C,j)}if(x)for(var T=function(e){var t=v.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},M=m?3:1;M>0&&"break"!==T(M);M--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ea(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wa(e){return[Gi,$i,Ui,Hi].some((function(t){return e[t]>=0}))}const xa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=va(t,{elementContext:"reference"}),l=va(t,{altBoundary:!0}),c=Ea(a,r),s=Ea(l,o,i),u=wa(c),d=wa(s);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Oa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Qi.reduce((function(e,n){return e[n]=function(e,t,n){var r=bi(e),o=[Hi,Gi].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Hi,$i].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],c=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},Sa={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ya({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Ca={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,c=n.boundary,s=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,g=void 0===m?0:m,h=va(t,{boundary:c,rootBoundary:s,padding:d,altBoundary:u}),b=bi(t.placement),y=ta(t.placement),v=!y,_=Bi(b),E="x"===_?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,S="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var I,N="y"===_?Gi:Hi,A="y"===_?Ui:$i,k="y"===_?"height":"width",R=w[_],j=R+h[N],T=R-h[A],M=p?-O[k]/2:0,B=y===qi?x[k]:O[k],L=y===qi?-O[k]:-x[k],F=t.elements.arrow,W=p&&F?Pi(F):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=G[N],$=G[A],H=Li(0,x[k],W[k]),V=v?x[k]/2-M-H-U-C.mainAxis:B-H-U-C.mainAxis,Y=v?-x[k]/2+M+H+$+C.mainAxis:L+H+$+C.mainAxis,q=t.elements.arrow&&Mi(t.elements.arrow),z=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,K=null!=(I=null==D?void 0:D[_])?I:0,J=R+Y-K,X=Li(p?xi(j,R+V-K-z):j,R,p?wi(T,J):T);w[_]=X,P[_]=X-R}if(l){var Q,Z="x"===_?Gi:Hi,ee="x"===_?Ui:$i,te=w[E],ne="y"===E?"height":"width",re=te+h[Z],oe=te-h[ee],ie=-1!==[Gi,Hi].indexOf(b),ae=null!=(Q=null==D?void 0:D[E])?Q:0,le=ie?re:te-x[ne]-O[ne]-ae+C.altAxis,ce=ie?te+x[ne]+O[ne]-ae-C.altAxis:oe,se=p&&ie?function(e,t,n){var r=Li(e,t,n);return r>n?n:r}(le,te,ce):Li(p?le:re,te,p?ce:oe);w[E]=se,P[E]=se-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function Da(e,t,n){void 0===n&&(n=!1);var r,o,i=_i(t),a=_i(t)&&function(e){var t=e.getBoundingClientRect(),n=Oi(t.width)/e.offsetWidth||1,r=Oi(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Ri(t),c=Di(e,a,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==Ni(t)||pa(l))&&(s=(r=t)!==yi(r)&&_i(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:da(r)),_i(t)?((u=Di(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=fa(l))),{x:c.left+s.scrollLeft-u.x,y:c.top+s.scrollTop-u.y,width:c.width,height:c.height}}function Pa(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Ia(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Na={placement:"bottom",modifiers:[],strategy:"absolute"};function Aa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const ka=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Na:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Na,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,c={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;s(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:vi(e)?ga(e):e.contextElement?ga(e.contextElement):[],popper:ga(t)};var u,d,f=function(e){var t=Pa(e);return Zi.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:c,options:r});a.push(l||function(){})}})),c.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Aa(t,n)){o.rects={reference:Da(t,Mi(n),"fixed"===o.options.strategy),popper:Pi(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,u=void 0===s?{}:s,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:Ia((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){s(),l=!0}};if(!Aa(e,t))return c;function s(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[xa,Sa,oa,aa,Oa,_a,Ca,ea]}),Ra=["enabled","placement","strategy","modifiers"],ja={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Ta={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Ma=[],Ba=function(t,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:l=Ma}=r,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,Ra);const s=(0,e.useRef)(l),u=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=Zo();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:i,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),h=(0,e.useMemo)((()=>(hi(s.current,l)||(s.current=l),s.current)),[l]);return(0,e.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:i,strategy:a,modifiers:[...h,g,ja]})}),[a,i,g,o,h]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return u.current=ka(t,n,Object.assign({},c,{placement:i,strategy:a,modifiers:[...h,Ta,g]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},La=!("undefined"==typeof window||!window.document||!window.document.createElement);var Fa=!1,Wa=!1;try{var Ga={get passive(){return Fa=!0},get once(){return Wa=Fa=!0}};La&&(window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,!0))}catch(e){}const Ua=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Wa){var o=r.once,i=r.capture,a=n;!Wa&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,Fa?r:i)}e.addEventListener(t,n,r)},$a=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},Ha=function(e,t,n,r){return Ua(e,t,n,r),function(){$a(e,t,n,r)}};function Va(e){return e&&e.ownerDocument||document}const Ya=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function qa(t){const n=Ya(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const za=()=>{},Ka=e=>e&&("current"in e?e.current:e),Ja={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Xa(e){return"Escape"===e.code||27===e.keyCode}const Qa=()=>{},Za=function(t,n,{disabled:r,clickTrigger:o}={}){const i=n||Qa;!function(t,n=za,{disabled:r,clickTrigger:o="click"}={}){const i=(0,e.useRef)(!1),a=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Ka(t);var r;ii()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!Jo(n,e.target)||a.current,a.current=!1}),[t]),c=qa((e=>{const n=Ka(t);n&&Jo(n,e.target)&&(a.current=!0)})),s=qa((e=>{i.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const i=Va(Ka(t)),a=i.defaultView||window;let u=null!=(e=a.event)?e:null==(n=a.parent)?void 0:n.event,d=null;Ja[o]&&(d=Ha(i,Ja[o],c,!0));const f=Ha(i,o,l,!0),p=Ha(i,o,(e=>{e!==u?s(e):u=void 0}));let m=[];return"ontouchstart"in i.documentElement&&(m=[].slice.call(i.body.children).map((e=>Ha(e,"mousemove",za)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,c,s])}(t,i,{disabled:r,clickTrigger:o});const a=qa((e=>{Xa(e)&&i(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=Va(Ka(t));let n=(e.defaultView||window).event;const o=Ha(e,"keyup",(e=>{e!==n?a(e):n=void 0}));return()=>{o()}}),[t,r,a])},el=(0,e.createContext)(La?window:void 0);function tl(){return(0,e.useContext)(el)}el.Provider;const nl=(e,t)=>La?null==e?(t||Va()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function rl(t,n){const r=tl(),[o,i]=(0,e.useState)((()=>nl(t,null==r?void 0:r.document)));if(!o){const e=nl(t);e&&i(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=nl(t);e!==o&&i(e)}),[t,o]),o}function ol(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const il=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,al="undefined"!=typeof document||il?e.useLayoutEffect:e.useEffect,ll=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=(0,e.useRef)(null),l=(0,e.useRef)(n),c=qa(r);(0,e.useEffect)((()=>{n?l.current=!0:c(a.current)}),[n,c]);const s=ui(a,t.ref),u=(0,e.cloneElement)(t,{ref:s});return n?u:i||!l.current&&o?null:u};var cl=n(400),sl=0;function ul(e,t,n,r,o,i){var a,l,c={};for(l in t)"ref"==l?a=t[l]:c[l]=t[l];var s={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--sl,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return cl.YM.vnode&&cl.YM.vnode(s),s}function dl({children:t,in:n,onExited:r,onEntered:o,transition:i}){const[a,l]=(0,e.useState)(!n);n&&a&&l(!1);const c=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),i=qa(n);return al((()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,i]),al((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),s=ui(c,t.ref);return a&&!n?null:(0,e.cloneElement)(t,{ref:s})}function fl(e,t,n){return e?ul(e,Object.assign({},n)):t?ul(dl,Object.assign({},n,{transition:t})):ul(ll,Object.assign({},n))}Array.isArray;const pl=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:i,containerPadding:a,popperConfig:l={},transition:c,runTransition:s}=t,[u,d]=pi(),[f,p]=pi(),m=ui(d,n),g=rl(t.container),h=rl(t.target),[b,y]=(0,e.useState)(!t.show),v=Ba(h,u,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:l,popperConfig:c={}}){var s,u,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(c.modifiers);return Object.assign({},c,{placement:n,enabled:e,strategy:i?"fixed":c.strategy,modifiers:ol(Object.assign({},m,{eventListeners:{enabled:t,options:null==(s=m.eventListeners)?void 0:s.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},null==(u=m.preventOverflow)?void 0:u.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:a||5,flip:r,offset:o,arrowElement:f,popperConfig:l}));t.show&&b&&y(!1);const _=t.show||!b;if(Za(u,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!_)return null;const{onExit:E,onExiting:w,onEnter:x,onEntering:O,onEntered:S}=t;let C=t.children(Object.assign({},v.attributes.popper,{style:v.styles.popper,ref:m}),{popper:v,placement:i,show:!!t.show,arrowProps:Object.assign({},v.attributes.arrow,{style:v.styles.arrow,ref:p})});return C=fl(c,s,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:C,onExit:E,onExiting:w,onExited:(...e)=>{y(!0),t.onExited&&t.onExited(...e)},onEnter:x,onEntering:O,onEntered:S}),g?e.default.createPortal(C,g):null}));pl.displayName="Overlay";const ml=pl;function gl(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const hl=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:bl,Provider:yl}=hl;function vl(t,n){const{prefixes:r}=(0,e.useContext)(hl);return t||r[n]||n}function _l(){const{dir:t}=(0,e.useContext)(hl);return"rtl"===t}const El=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"popover-header"),ul(n,{ref:o,className:fi()(e,t),...r}))));El.displayName="PopoverHeader";const wl=El,xl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"popover-body"),ul(n,{ref:o,className:fi()(e,t),...r}))));xl.displayName="PopoverBody";const Ol=xl;function Sl(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Cl(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const Dl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:l,popper:c,show:s,...u},d)=>{const f=vl(e,"popover"),p=_l(),[m]=(null==t?void 0:t.split("-"))||[],g=Sl(m,p);let h=r;return s&&!l&&(h={...r,...Cl(null==c?void 0:c.strategy)}),ul("div",{ref:d,role:"tooltip",style:h,"x-placement":m,className:fi()(n,f,m&&`bs-popover-${g}`),...u,children:[ul("div",{className:"popover-arrow",...a}),i?ul(Ol,{children:o}):o]})})),Pl=Object.assign(Dl,{Header:wl,Body:Ol,POPPER_OFFSET:[0,8]}),Il=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:l,show:c,...s},u)=>{e=vl(e,"tooltip");const d=_l(),[f]=(null==t?void 0:t.split("-"))||[],p=Sl(f,d);let m=r;return c&&!a&&(m={...r,...Cl(null==l?void 0:l.strategy)}),ul("div",{ref:u,style:m,role:"tooltip","x-placement":f,className:fi()(n,e,`bs-tooltip-${p}`),...s,children:[ul("div",{className:"tooltip-arrow",...i}),ul("div",{className:`${e}-inner`,children:o})]})}));Il.displayName="Tooltip";const Nl=Object.assign(Il,{TOOLTIP_OFFSET:[0,6]});function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Al(e,t)}const kl=e.default.createContext(null);var Rl="unmounted",jl="exited",Tl="entering",Ml="entered",Bl="exiting",Ll=function(t){var n,r;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=jl,r.appearStatus=Tl):o=Ml:o=e.unmountOnExit||e.mountOnEnter?Rl:jl,r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,Al(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rl?{status:jl}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Tl&&n!==Ml&&(t=Tl):n!==Tl&&n!==Ml||(t=Bl)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(t,n){if(void 0===t&&(t=!1),null!==n)if(this.cancelNextCallback(),n===Tl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jl&&this.setState({status:Rl})},i.performEnter=function(t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[e.default.findDOMNode(this),o],a=i[0],l=i[1],c=this.getTimeouts(),s=o?c.appear:c.enter;t||r?(this.props.onEnter(a,l),this.safeSetState({status:Tl},(function(){n.props.onEntering(a,l),n.onTransitionEnd(s,(function(){n.safeSetState({status:Ml},(function(){n.props.onEntered(a,l)}))}))}))):this.safeSetState({status:Ml},(function(){n.props.onEntered(a)}))},i.performExit=function(){var t=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:e.default.findDOMNode(this);n?(this.props.onExit(o),this.safeSetState({status:Bl},(function(){t.props.onExiting(o),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:jl},(function(){t.props.onExited(o)}))}))}))):this.safeSetState({status:jl},(function(){t.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Rl)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,O(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.default.createElement(kl.Provider,{value:null},"function"==typeof r?r(t,o):e.default.cloneElement(e.default.Children.only(r),o))},o}(e.default.Component);function Fl(){}Ll.contextType=kl,Ll.propTypes={},Ll.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fl,onEntering:Fl,onEntered:Fl,onExit:Fl,onExiting:Fl,onExited:Fl},Ll.UNMOUNTED=Rl,Ll.EXITED=jl,Ll.ENTERING=Tl,Ll.ENTERED=Ml,Ll.EXITING=Bl;const Wl=Ll;var Gl=/([A-Z])/g,Ul=/^ms-/;function $l(e){return function(e){return e.replace(Gl,"-$1").toLowerCase()}(e).replace(Ul,"-ms-")}var Hl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Vl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue($l(t))||function(e,t){return function(e){var t=Va(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue($l(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Hl.test(e))}(o)?r+=o+"("+i+") ":n+=$l(o)+": "+i+";":e.style.removeProperty($l(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Yl(e,t,n,r){var o,i;null==n&&(i=-1===(o=Vl(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=Ha(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),l=Ha(e,"transitionend",t);return function(){a(),l()}}function ql(e,t){const n=Vl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function zl(e,t){const n=ql(e,"transitionDuration"),r=ql(e,"transitionDelay"),o=Yl(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Kl(e){e.offsetHeight}function Jl(t){return t&&"setState"in t?e.default.findDOMNode(t):null!=t?t:null}const Xl=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:c,childRef:s,...u},d)=>{const f=(0,e.useRef)(null),p=ui(f,s),m=e=>{p(Jl(e))},g=e=>t=>{e&&f.current&&e(f.current,t)},h=(0,e.useCallback)(g(t),[t]),b=(0,e.useCallback)(g(n),[n]),y=(0,e.useCallback)(g(r),[r]),v=(0,e.useCallback)(g(o),[o]),_=(0,e.useCallback)(g(i),[i]),E=(0,e.useCallback)(g(a),[a]),w=(0,e.useCallback)(g(l),[l]);return ul(Wl,{ref:d,...u,onEnter:h,onEntered:y,onEntering:b,onExit:v,onExited:E,onExiting:_,addEndListener:w,nodeRef:f,children:"function"==typeof c?(e,t)=>c(e,{...t,ref:m}):e.default.cloneElement(c,{ref:m})})})),Ql={[Tl]:"show",[Ml]:"show"},Zl=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...i},a)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},c=(0,e.useCallback)(((e,t)=>{Kl(e),null==o||o(e,t)}),[o]);return ul(Xl,{ref:a,addEndListener:zl,...l,onEnter:c,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:fi()("fade",t,n.props.className,Ql[o],r[o])})})}));Zl.displayName="Fade";const ec=Zl,tc=e.forwardRef((({children:t,transition:n=ec,popperConfig:r={},rootClose:o=!1,placement:i="top",show:a=!1,...l},c)=>{const s=(0,e.useRef)({}),[u,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=vl(void 0,"popover"),o=vl(void 0,"tooltip"),i=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(gl(n.current,r))return Pl.POPPER_OFFSET;if(gl(n.current,o))return Nl.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[i]]}(l.offset),m=ui(c,f),g=!0===n?ec:n||void 0,h=qa((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return al((()=>{u&&l.target&&(null==s.current.scheduleUpdate||s.current.scheduleUpdate())}),[u,l.target]),(0,e.useEffect)((()=>{a||d(null)}),[a]),ul(ml,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:h},transition:g,rootClose:o,placement:i,show:a,children:(o,{arrowProps:i,popper:a,show:l})=>{var c,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Jl(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Jl(e)))}(o,i);const f=null==a?void 0:a.placement,p=Object.assign(s.current,{state:null==a?void 0:a.state,scheduleUpdate:null==a?void 0:a.update,placement:f,outOfBoundaries:(null==a||null==(c=a.state)||null==(d=c.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!u;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:i,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:i,popper:p,hasDoneInitialMeasure:m,className:fi()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));tc.displayName="Overlay";const nc=tc;function rc(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||Jo(o,i)||e(...t)}Qo().oneOf(["click","hover","focus"]);const oc=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:i,defaultShow:a=!1,onToggle:l,delay:c,placement:s,flip:u=s&&-1!==s.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=ui(f,r.ref),m=ri(),g=(0,e.useRef)(""),[h,b]=ci(i,a,l),y=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(c),{onFocus:v,onBlur:_,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},w=(0,e.useCallback)((()=>{m.clear(),g.current="show",y.show?m.set((()=>{"show"===g.current&&b(!0)}),y.show):b(!0)}),[y.show,b,m]),x=(0,e.useCallback)((()=>{m.clear(),g.current="hide",y.hide?m.set((()=>{"hide"===g.current&&b(!1)}),y.hide):b(!1)}),[y.hide,b,m]),O=(0,e.useCallback)(((...e)=>{w(),null==v||v(...e)}),[w,v]),S=(0,e.useCallback)(((...e)=>{x(),null==_||_(...e)}),[x,_]),C=(0,e.useCallback)(((...e)=>{b(!h),null==E||E(...e)}),[E,b,h]),D=(0,e.useCallback)(((...e)=>{rc(w,e,"fromElement")}),[w]),P=(0,e.useCallback)(((...e)=>{rc(x,e,"toElement")}),[x]),I=null==t?[]:[].concat(t),N={ref:e=>{p(Jl(e))}};return-1!==I.indexOf("click")&&(N.onClick=C),-1!==I.indexOf("focus")&&(N.onFocus=O,N.onBlur=S),-1!==I.indexOf("hover")&&(N.onMouseOver=D,N.onMouseOut=P),ul(cl.HY,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),ul(nc,{...d,show:h,onHide:x,flip:u,placement:s,popperConfig:o,target:f.current,children:n})]})};function ic(t){var n=t.id,r=t.tip;return e.default.createElement(oc,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.default.createElement(Nl,{id:n},r)},e.default.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function ac(e){return ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ac(e)}function lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ac(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ac(o)?o:String(o)),r)}var o}function cc(e,t){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cc(e,t)}function sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uc(e)}var dc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cc(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=uc(o);if(i){var n=uc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ac(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sc(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},t.handleClick=t.handleClick.bind(sc(t)),t.props.target.construct(t.props.outvar,t.state.text),t}return n=l,(r=[{key:"handleClick",value:function(e){var t=e.target.value;this.setState({text:t}),this.props.target.update(this.props.outvar,t)}},{key:"render",value:function(){var t=this.props.id+this.props.outvar;return e.default.createElement("div",{className:"shop-line",key:this.props.id},e.default.createElement("label",{htmlFor:t,className:"form-label"},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title,":"),this.props.tip&&e.default.createElement(ic,{id:this.props.id+"tooltip",tip:this.props.tip}),e.default.createElement("input",{type:"text",className:"form-control form-control-sm",id:t,onChange:this.handleClick,value:this.state.text}))}}])&&lc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function fc(e){return fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fc(e)}function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=hc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hc(r.key),r)}}function hc(e){var t=function(e,t){if("object"!==fc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fc(t)?t:String(t)}function bc(e,t){return bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bc(e,t)}function yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vc(e)}var _c=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bc(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=vc(o);if(i){var n=vc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===fc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yc(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={variant:e.outvar in e.data?e.data[e.outvar]:e.variants[e.fallback?e.fallback:0]},t.handleClick=t.handleClick.bind(yc(t)),t.props.target.construct(t.props.outvar,t.state.variant),t}return n=l,(r=[{key:"handleClick",value:function(e){this.setState(mc(mc({},this.state),{},{variant:e})),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var t=this,n=this.props.id+this.props.outvar;return e.default.createElement("div",{className:"shop-radio",key:this.props.id},e.default.createElement("div",{style:{display:"inline"}},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.default.createElement(ic,{id:this.props.id+"tooltip",tip:this.props.tip}),this.props.variants.map((function(r,o){return e.default.createElement("div",{className:"form-check",key:n+r},e.default.createElement("input",{className:"form-check-input",type:"radio",name:n,id:n+r,checked:t.state.variant===r,onClick:function(){return t.handleClick(r)},onChange:function(){return t.handleClick(r)}}),e.default.createElement("label",{className:"form-check-label",htmlFor:n+r},r))})))}}])&&gc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function Ec(e){return Ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ec(e)}function wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Ec(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ec(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Ec(o)?o:String(o)),r)}var o}function xc(e,t){return xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xc(e,t)}function Oc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sc(e)}var Cc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xc(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Sc(o);if(i){var n=Sc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ec(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Oc(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},t.handleClick=t.handleClick.bind(Oc(t)),t.props.target.construct(t.props.outvar,t.state.checked),t}return n=l,(r=[{key:"handleClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var t=this.props.id+this.props.outvar;return e.default.createElement("div",{className:"shop-switch",key:this.props.id},e.default.createElement("div",{className:"form-check form-switch",key:t},e.default.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t,checked:this.state.checked,onClick:this.handleClick,onChange:this.handleClick}),e.default.createElement("label",{className:"form-check-label",htmlFor:t,style:{display:"inline"}},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.default.createElement(ic,{id:this.props.id+"tooltip",tip:this.props.tip})))}}])&&wc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function Dc(e){return Dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dc(e)}function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ac(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Ac(e){var t=function(e,t){if("object"!==Dc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Dc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dc(t)?t:String(t)}function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kc(e,t)}function Rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jc(e)}var Tc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kc(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=jc(o);if(i){var n=jc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Dc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rc(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar].text:e.fallback?e.fallback.text:"",checked:e.outvar in e.data?e.data[e.outvar].checked:!!e.fallback&&e.fallback.checked},t.handleText=t.handleText.bind(Rc(t)),t.handleCheck=t.handleCheck.bind(Rc(t)),t.props.target.construct(t.props.outvar,t.state),t}return n=l,(r=[{key:"handleText",value:function(e){var t=Ic(Ic({},this.state),{},{text:e.target.value});this.setState(t),this.props.target.update(this.props.outvar,t)}},{key:"handleCheck",value:function(){var e=Ic(Ic({},this.state),{},{checked:!this.state.checked});this.setState(e),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var t=this.props.id+this.props.outvar;return e.default.createElement("div",{className:"shop-switch-line",key:this.props.id},e.default.createElement("div",{className:"form-check form-switch",key:t},e.default.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t+"switch",checked:this.state.checked,onClick:this.handleCheck,onChange:this.handleCheck}),e.default.createElement("label",{className:"form-check-label",htmlFor:t+"switch"},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.default.createElement(ic,{id:this.props.id+"tooltip",tip:this.props.tip})),e.default.createElement("input",{type:"text",className:"form-control form-control-sm",id:t+"line",onChange:this.handleText,value:this.state.text,disabled:!this.state.checked}))}}])&&Nc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),Mc={Radio:function(t,n,r,o){var i=o.title,a=o.variants,l=o.outvar,c=o.fallback,s=o.icon,u=o.tip;return e.default.createElement(_c,{target:t,title:i,variants:a,outvar:l,icon:s,tip:u,key:n,fallback:c,id:n,data:r})},Switch:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,c=o.icon,s=o.tip;return e.default.createElement(Cc,{target:t,title:i,fallback:a,outvar:l,icon:c,tip:s,key:n,id:n,data:r})},Line:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,c=o.icon,s=o.tip;return e.default.createElement(dc,{target:t,title:i,fallback:a,outvar:l,icon:c,tip:s,key:n,id:n,data:r})},SwitchLine:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,c=o.icon,s=o.tip;return e.default.createElement(Tc,{target:t,title:i,fallback:a,outvar:l,icon:c,tip:s,key:n,id:n,data:r})},Default:function(t,n){return e.default.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},Bc=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()};function Lc(e,t){return{has_other_dio:e.filter((function(e,n){return t!==n&&e.name&&e.name.endsWith("-TTL")})).length>0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}function Fc(e,t){var n=Bc(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,Fc(e,t))})):"object"===n&&("string"!==Bc(e.type)||"object"!==Bc(e.args)&&"array"!==Bc(e.items)?Object.assign(r,Fc((0,Ko.apply)(e,t),t)):e.type in Mc?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,Fc((0,Ko.apply)(e.items,t),t))),r}const Wc={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Gc;const Uc=new Uint8Array(16);function $c(){if(!Gc&&(Gc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gc(Uc)}const Hc=[];for(let e=0;e<256;++e)Hc.push((e+256).toString(16).slice(1));const Vc=function(e,t,n){if(Wc.randomUUID&&!t&&!e)return Wc.randomUUID();const r=(e=e||{}).random||(e.rng||$c)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Hc[e[t+0]]+Hc[e[t+1]]+Hc[e[t+2]]+Hc[e[t+3]]+"-"+Hc[e[t+4]]+Hc[e[t+5]]+"-"+Hc[e[t+6]]+Hc[e[t+7]]+"-"+Hc[e[t+8]]+Hc[e[t+9]]+"-"+Hc[e[t+10]]+Hc[e[t+11]]+Hc[e[t+12]]+Hc[e[t+13]]+Hc[e[t+14]]+Hc[e[t+15]]}(r)};var Yc={eem:function(e){return e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0},clk:function(e){return e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0},idc:function(e){return e.consumes&&e.consumes.idc||0},hp:function(e){return e.consumes&&e.consumes.hp||0}};function qc(e){return function(t,n){for(var r=0,o=n+1;o<t.length&&(r+=Yc[e](t[o]),!t[o].resources||!t[o].resources.find((function(t,n){return t.name===e})));o++);return r}}var zc={eem:qc("eem"),clk:qc("clk"),idc:qc("idc"),hp:qc("hp")};function Kc(e){return Math.trunc(e/4)}function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function Xc(e,t){if(e){if("string"==typeof e)return Qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qc(e,t):void 0}}function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==Jc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Jc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Jc(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ts={reminder:{priority:1,icon:"/images/shop/icon-reminder.svg",color:"black"},warning:{priority:2,icon:"/images/shop/icon-warning.svg",color:"#c75e5e"}},ns=function(e,t){return e.find((function(e){return e.name===t}))},rs=function(e){return function(t,n,r){var o=ns(r,e);return o.occupied>o.max}},os=function(e){return function(t,n,r){return Yc[e](t[n])>0&&!function(e,t,n){return e.slice(0,t).find((function(e){return e.resources&&ns(e.resources,n)}))}(t,n,e)}},is={eem_resource:{level:"warning",trigger:rs("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:os("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:rs("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:os("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC-BNC."},clk_resource:{level:"warning",trigger:rs("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:os("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",function(e,t,n){var r=function(e,t,n){return e.slice(t+1).findIndex((function(e){return e.resources&&ns(e.resources,n)}))+t+1}(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:function(e,t,n){return!0},message:"This item has unimplemented warning"}};function as(e){var t,n={priority:0,icon:null},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Xc(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;ts[o.level].priority>n.priority&&(n=ts[o.level])}}catch(e){r.e(e)}finally{r.f()}return n}function ls(e){var t=ts[e];return{icon:t.icon,color:t.color}}var cs={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:function(e,t){var n=ks.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:function(e,t){var n=ks.getState().crate_modes.desktop.hp;return e.crate_mode===ks.getState().crate_modes.rack.id&&t<n}}};function ss(e){var t=zc.hp(e.items,-1),n=[];return Object.entries(cs).forEach((function(r,o){var i,a,l=(a=2,function(e){if(Array.isArray(e))return e}(i=r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(i,a)||Xc(i,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],s=l[1];s.trigger(e,t)&&n.push(es(es({},s),{},{id:c,trigger:void 0}))})),[n,t]}function us(e){return us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},us(e)}function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==us(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==us(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===us(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ps(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ms(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ms(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gs(e){return JSON.stringify({crates:Array.from(e.map((function(e,t){return{items:Array.from(e.items.map((function(e,t){return{pn:e.name_number,options:e.options_data&&e.options?Fc(e.options,e.options_data):null}}))),type:e.crate_mode}})))},null,2)}var hs={OK:0,Empty:1,Invalid:2};function bs(e){return e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?hs.Invalid:hs.OK:hs.Empty}function ys(e){return ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ys(e)}function vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vs(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==ys(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ys(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||ws(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ws(e,t){if(e){if("string"==typeof e)return xs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xs(e,t):void 0}}function xs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Os,Ss=function(e,t){return{cards:Wo.items,groups:Wo.columns.backlog,cards_list:Go,currency:Wo.currency,pn_to_cards:(n=Wo.items,r={},Object.entries(n).forEach((function(e,t){var n=Es(e,2),o=n[0],i=n[1];r[i.name_number]=o})),r),getCardDescription:function(e){return t().cards[t().cards_list[e]]},getCardDescriptionByPn:function(e){return t().cards[t().pn_to_cards[e]]},cardIndexById:function(e){return t().cards_list.findIndex((function(t){return e===t}))}};var n,r},Cs=function(e,t){return{crate_modes:Wo.crateModes,modes_order:Wo.crateModeOrder,crateParams:function(e){return t().crate_modes[e]}}},Ds=function(e,t){return{isTouch:window.isTouchEnabled(),isMobile:window.deviceIsMobile(),sideMenuIsOpen:!1,showCardAddedFeedback:!1,showNoDestination:!1,timerAdded:null,switchSideMenu:function(){return e((function(e){return{sideMenuIsOpen:!e.sideMenuIsOpen}}))},cardAdded:function(){return e((function(e){return{showCardAddedFeedback:!0,showNoDestination:!1,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||e.isMobile&&setTimeout((function(){t()._endCardAdded()}),2e3)}}))},noDestinationWarning:function(){return e((function(e){return{showCardAddedFeedback:!0,showNoDestination:!0,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||setTimeout((function(){t()._endCardAdded()}),2e3)}}))},_endCardAdded:function(){return e((function(e){return{showCardAddedFeedback:!1,timerAdded:e.timerAdded?clearTimeout(e.timerAdded):null}}))}}},Ps=function(e,t){return{importShouldOpen:!1,importValue:{value:"",error:hs.OK},openImport:function(){return e((function(e){return{importShouldOpen:!0}}))},closeImport:function(){return e((function(e){return{importShouldOpen:!1}}))},_loadDescription:function(){return e((function(e){var t,n,r;return{importShouldOpen:!1,crates:(t=e.importValue.value,n=JSON.parse(t).crates,r=ks.getState().getCardDescriptionByPn,{crates:Array.from(n.map((function(e,t){return{id:"no_crate"===e.type?"spare":"crate"+t,name:"no_crate"===e.type?"Spare cards":void 0,crate_mode:e.type,items:Array.from(e.items.map((function(e,t){return fs(fs({},r(e.pn)),{},{id:Vc(),options_data:e.options||{}})}))),warnings:[],occupiedHP:0}})))}).crates}}))},loadDescription:function(){t()._loadDescription(),t().crates.forEach((function(e,n){t().fillExtData(e.id),t().fillWarnings(e.id)}))},updateImportDescription:function(t){return e((function(e){return{importValue:{value:t,error:(n=t,n&&""!==n.trim()?n&&!function(e){var t;try{t=JSON.parse(e).crates}catch(e){return!1}var n=ks.getState().crate_modes,r=ks.getState().modes_order,o=ks.getState().pn_to_cards;try{var i,a=ps(t);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(!l.type||!l.items||!(l.type in n))return!1;var c,s=ps(l.items);try{for(s.s();!(c=s.n()).done;){var u=c.value;if(!(u.pn in o)||void 0===u.options)return!1}}catch(e){s.e(e)}finally{s.f()}}}catch(e){a.e(e)}finally{a.f()}}catch(e){return!1}return 1===t.filter((function(e){return!r.includes(e.type)})).length&&"no_crate"===t[t.length-1].type}(n)?hs.Invalid:hs.OK:hs.Empty)}};var n}))}}},Is=function(e,t){return{isProcessing:!1,shouldShowRFQFeedback:!1,processingResult:{status:hs.OK,message:""},API_RFQ:Wo.API_RFQ,email:{value:"",error:null},note:{value:"",error:hs.OK},description:"",shouldShowDescription:!1,updateEmail:function(t){return e((function(e){return{email:{value:t,error:bs(t)}}}))},updateNote:function(t){return e((function(e){return{note:{value:t,error:(n=t,n&&""!==n.trim()?hs.OK:hs.Empty)}};var n}))},resetEmailValidation:function(){return e((function(e){return{email:{value:e.email.value,error:hs.OK}}}))},_revalidateForm:function(){return e((function(e){return{email:{value:e.email.value,error:bs(e.email.value)},note:{value:e.note.value,error:bs(e.note.value)}}}))},updateDescription:function(){return e((function(e){return{description:gs(e.crates)}}))},showDescription:function(){return e((function(e){return{description:gs(e.crates),shouldShowDescription:!0}}))},closeDescription:function(){return e((function(e){return{shouldShowDescription:!1}}))},_submitForm:function(){return e((function(e){return{isProcessing:!0}}))},finishSubmitForm:function(t){return e((function(e){return{isProcessing:!1,shouldShowRFQFeedback:!0,processingResult:t}}))},submitDisabled:function(){return t().email.error!==hs.OK},submitForm:function(){t().updateDescription(),t()._revalidateForm(),t()._submitForm(),t().submitDisabled()||fetch(t().API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t().email.value,note:t().note.value,configuration:t().description})}).then((function(e){if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);t().finishSubmitForm({status:hs.OK,message:"We've received your request and will be in contact soon."})}),(function(e){console.error("Request rejected, reason:",e),t().finishSubmitForm({status:hs.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})})).catch((function(e){console.error("Request failed, reason:",e),t().finishSubmitForm({status:hs.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})}))},closeRFQFeedback:function(){return e((function(e){return{shouldShowRFQFeedback:!1}}))}}},Ns=function(e,t){return{highlighted:{crate:"",card:0},highlightedTimer:null,highlightCard:function(n,r){return e((function(e){return{highlighted:{crate:n,card:r},highlightedTimer:(e.highlightedTimer?clearTimeout(e.highlightedTimer):null)||e.isTouch&&setTimeout((function(){t().highlightReset()}),2e3)}}))},highlightReset:function(){return e((function(e){return{highlighted:{crate:"",card:0},highlightedTimer:e.highlightedTimer?clearTimeout(e.highlightedTimer):null}}))}}},As=function(e,t){return{crates:Wo.columns.crates,active_crate:"crate0",_newCrate:function(t){return e((function(e){return{crates:e.crates.toSpliced(-1,0,{id:t||"crate"+e.crates.length,crate_mode:"rack",items:[],warnings:[],occupiedHP:0}),active_crate:t||"crate"+e.crates.length}}))},delCrate:function(t){return e((function(e){return{crates:e.crates.filter((function(e){return e.id!==t})),active_crate:e.active_crate===t?null:e.active_crate}}))},_setCrateMode:function(t,n){return e((function(e){return{crates:e.crates.map((function(e,r){return e.id===t?_s(_s({},e),{},{crate_mode:n}):e}))}}))},setActiveCrate:function(t){return e((function(e){return{active_crate:t}}))},_addCardFromBacklog:function(t,n,r){return e((function(e){var o=("array"===Bc(n)?n:[n]).map((function(t,n){return e.cards_list[t]})),i=t||e.active_crate;return i?{crates:e.crates.map((function(t,n){var a,l;return i===t.id?(r=null!=r?r:t.items.length,_s(_s({},t),{},{items:(a=t.items).toSpliced.apply(a,[r,0].concat((l=o.map((function(t,n){return _s(_s({},e.cards[t]),{},{id:Vc()})})),function(e){if(Array.isArray(e))return xs(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||ws(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())))})):t}))}:{}}))},_moveCard:function(t,n,r,o){return e((function(e){var i=e.crates.find((function(e,n){return t===e.id})).items[n];return{crates:e.crates.map((function(e,a){if(r===t&&r===e.id){var l=Array.from(e.items),c=l.splice(n,1)[0];return l.splice(o,0,c).filter((function(e,t){return!!e})),_s(_s({},e),{},{items:l})}return r===e.id?_s(_s({},e),{},{items:e.items.toSpliced(o,0,i)}):t===e.id?_s(_s({},e),{},{items:e.items.toSpliced(o,1)}):e}))}}))},_deleteCard:function(t,n){return e((function(e){return{crates:e.crates.map((function(e,r){return t===e.id?_s(_s({},e),{},{items:e.items.toSpliced(n,1)}):e}))}}))},_clearCrate:function(t){return e((function(e){return{crates:e.crates.map((function(e,n){return t===e.id?_s(_s({},e),{},{items:[]}):e}))}}))},clearAll:function(){return e((function(e){return{crates:[]}}))},_updateOptions:function(t,n,r){return e((function(e){return{crates:e.crates.map((function(e,o){if(t===e.id){var i=Array.from(e.items);return i[n]=_s(_s({},i[n]),{},{options_data:_s(_s({},i[n].options_data),r)}),_s(_s({},e),{},{items:i})}return e}))}}))},fillWarnings:function(n){return e((function(e){return{crates:e.crates.map((function(e,r){if(n===e.id){var o=Array.from(e.items),i=!!t().crateParams(e.crate_mode).warnings_disabled;o=function(e,t){return e.map((function(n,r){return n.warnings?(n.show_warnings=t?[]:n.warnings.map((function(t,o){return is[t]?is[t].trigger(e,r,n.counted_resources)?es({trigger:void 0,name:t},is[t]):null:is.default})).filter((function(e,t){return!!e})),n):n}))}(o=function(e,t){return e.map((function(n,r){return n.counted_resources=t?[]:function(e,t){if(!e[t].resources)return null;var n=[];return e[t].resources.forEach((function(r,o){zc[r.name]&&n.push({name:r.name,occupied:zc[r.name](e,t),max:r.max})})),n}(e,r),n}))}(o,i),i);var a=Es(ss(e),2),l=a[0],c=a[1];return _s(_s({},e),{},{items:o,warnings:l,occupiedHP:c})}return e}))}}))},fillExtData:function(t){return e((function(e){return{crates:e.crates.map((function(e,n){if(t===e.id){var r=Array.from(e.items);return r=r.map((function(e,t){return e.options?(e.options_data||(e.options_data={}),e.options_data.ext_data=Lc(r,t),e):e})),_s(_s({},e),{},{items:Array.from(r)})}return e}))}}))},totalOrderPrice:function(){var e=0;return t().crates.forEach((function(n,r){e+=t().crate_modes[n.crate_mode].price,n.items.forEach((function(t,n){e+=t.price}))})),e},newCrate:function(){var e="crate"+t().crates.length;t()._newCrate(e),t().fillExtData(e),t().fillWarnings(e)},setCrateMode:function(e,n){t()._setCrateMode(e,n),t().fillExtData(e),t().fillWarnings(e),t().setActiveCrate(e)},addCardFromBacklog:function(e,n,r,o){var i=e||t().active_crate;if(!i)return console.warn("No destination"),t().noDestinationWarning(),{};t()._addCardFromBacklog(i,n,r),t().fillExtData(i),t().fillWarnings(i),t().setActiveCrate(i),o||t().cardAdded()},moveCard:function(e,n,r,o){t()._moveCard(e,n,r,o),t().fillExtData(r),t().fillWarnings(r),t().setActiveCrate(r),e!==r&&(t().fillExtData(e),t().fillWarnings(e))},deleteCard:function(e,n){t()._deleteCard(e,n),t().fillExtData(e),t().fillWarnings(e),e===t().highlighted.crate&&n===t().highlighted.card&&t().highlightReset()},clearCrate:function(e){t()._clearCrate(e),t().fillWarnings(e)},updateOptions:function(e,n,r){t()._updateOptions(e,n,r),t().fillExtData(e),t().fillWarnings(e)}}},ks=(Os=function(){return _s(_s(_s(_s(_s(_s(_s({},Ss.apply(void 0,arguments)),Cs.apply(void 0,arguments)),As.apply(void 0,arguments)),Is.apply(void 0,arguments)),Ds.apply(void 0,arguments)),Ns.apply(void 0,arguments)),Ps.apply(void 0,arguments))})?Mo(Os,undefined):Mo;function Rs(t){var n=t.aside,r=t.main,o=ks((function(e){return e.sideMenuIsOpen})),i=ks((function(e){return e.switchSideMenu})),a=ks((function(e){return e.showCardAddedFeedback})),l=ks((function(e){return e.showNoDestination}));return e.default.createElement("div",{className:"layout"},e.default.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.default.createElement("section",{className:"main",onClick:i},r):e.default.createElement("section",{className:"main"},r),a?l?e.default.createElement("div",{className:"feedback-add-failure"},"No cards added: all crates are closed"):e.default.createElement("div",{className:"feedback-add-success"},"✓ added"):null)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(this,arguments)}function Ts(t){var n=t.card_index,r=ks((function(e){return e.getCardDescription})),o=ks((function(e){return e.currency})),i=ks((function(e){return e.addCardFromBacklog})),a=r(n),l=a.specs&&a.specs.length>0&&e.default.createElement("ul",null,a.specs.map((function(t,n){return e.default.createElement("li",{key:n},t)}))),c=a.datasheet_file&&a.datasheet_name&&e.default.createElement("div",{className:"ds"},e.default.createElement("span",{className:"doc-icon"}),e.default.createElement("a",{href:a.datasheet_file,target:"_blank",rel:"noopener noreferrer"},a.datasheet_name));return e.default.createElement("section",{className:"productItem"},e.default.createElement("div",{className:"content"},e.default.createElement("h3",{style:{marginBottom:a.name_codename?"5px":"20px"}},a.name),a.name_codename?e.default.createElement("p",null,a.name_codename):null,e.default.createElement("div",{className:"price"},"".concat(o," ").concat(Ho(a.price))),l,c),e.default.createElement("div",{className:"content"},e.default.createElement("button",{onClick:function(){return i(null,n,null)}},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.default.createElement(so,{draggableId:a.id,index:n},(function(t,n){return e.default.createElement(e.default.Fragment,null,e.default.createElement("img",js({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:Uo(t.draggableProps.style,n,!0),src:a.image})),n.isDragging&&e.default.createElement("img",{className:"simclone",src:a.image}))}))))}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ms.apply(this,arguments)}function Bs(){var t=ks((function(e){return e.groups})),n=ks((function(e){return e.cards})),r=ks((function(e){return e.switchSideMenu})),o=ks((function(e){return e.isMobile})),i=t.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return n[e]}))}})),a=-1,l=i.map((function(t,n){return e.default.createElement("div",{className:"accordion-item",key:"".concat(t.name)},e.default.createElement("h2",{className:"accordion-header"},e.default.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse".concat(n),"aria-expanded":"true","aria-controls":"collapse".concat(n)},t.name)),e.default.createElement("div",{id:"collapse".concat(n),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.default.createElement("div",{className:"accordion-body"},t.items.map((function(t){return a++,e.default.createElement(Ts,{card_index:a,key:t.id})})))))}));return e.default.createElement(ko,{droppableId:t.id,isDropDisabled:!1},(function(t){return e.default.createElement("div",Ms({className:"backlog-container",ref:t.innerRef},t.droppableProps),o?e.default.createElement("div",{className:"mobileCloseMenu"},e.default.createElement("button",{onClick:r},e.default.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.default.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},l),t.placeholder&&e.default.createElement("div",{style:{display:"none"}},t.placeholder))}))}function Ls(t){var n=t.crate_index,r=ks((function(e){return e.currency})),o=ks((function(e){return e.crateParams})),i=ks((function(e){return e.clearCrate})),a=ks((function(e){return e.delCrate})),l=ks((function(e){return e.crates[n].crate_mode})),c=ks((function(e){return e.crates[n].id})),s=o(l);return e.default.createElement("tr",{key:"summary_crate_"+c},e.default.createElement("td",{className:"item-card-name"},s.name),e.default.createElement("td",{className:"price"},e.default.createElement("div",{className:"d-inline-flex"},"".concat(r," ").concat(Ho(s.price)),e.default.createElement("button",{onClick:function(){return i(c)}},e.default.createElement("img",{src:"/images/shop/icon-clear.svg",alt:"empty crate"})),e.default.createElement("button",{onClick:function(){return a(c)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove crate"})))))}var Fs,Ws=["arrowProps","hasDoneInitialMeasure","show"];function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gs.apply(this,arguments)}function Us(t){var n=t.crate_index,r=t.card_index,o=ks((function(e){return e.crates[n].items[r].show_warnings}),qo),i=as(o);return e.default.createElement(oc,{placement:"bottom",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Ws);return e.default.createElement("div",Gs({className:"k-popup-warning"},n),o.map((function(t,n){return e.default.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.default.createElement("i",null,t.message))})))},rootClose:!0},e.default.createElement("img",{className:"alert-warning",src:i.icon}))}function $s(t){var n=t.crate_index,r=t.card_index,o=as(ks((function(e){return e.crates[n].items[r].show_warnings}),qo));return e.default.createElement("img",{className:"alert-warning align-self-start",src:o.icon})}function Hs(t){var n=e.default.useRef(null),r=e.default.useRef(t);return e.default.useLayoutEffect((function(){r.current=t})),e.default.useEffect((function(){var e=function(e){var t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Vs(t){var n=t.options,r=t.data,o=t.target,i=t.id,a=Bc(n);return"array"===a?Array.from(n.map((function(e,t){return Vs({options:e,data:r,target:o,id:i+t})}))):"object"===a?"string"!==Bc(n.type)||"object"!==Bc(n.args)&&"array"!==Bc(n.items)?Vs({options:(0,Ko.apply)(n,r),data:r,target:o,id:i}):n.type in Mc?Mc[n.type](o,i+n.type,r,n.args):"Group"===n.type?e.default.createElement("div",{className:"border rounded",key:i+"group"},Vs({options:(0,Ko.apply)(n.items,r),data:r,target:o,id:i})):Mc.Default(n.type,i+"missing"):void 0}function Ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qs(t){var n,r,o=t.id,i=t.tip,a=t.content,l=(n=(0,e.useState)(!0),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ys(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ys(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],s=l[1];return e.default.createElement("div",{className:"options-notification",onClick:function(e){e.target.classList.contains("options-badge")||s(!1)}},a,c?e.default.createElement(oc,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.default.createElement(Nl,{id:o},i)},e.default.createElement("span",{className:"options-badge"})):null)}function zs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ks(t){var n,r,o=t.options,i=t.data,a=t.target,l=t.id,c=t.big,s=t.first,u=t.last,d=t.options_class,f=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return zs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zs(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],m=f[1],g=Hs((function(e){"mousedown"===e.type&&m(!1)})),h="overlayVariant border rounded ".concat(c?"overlay-bigcard":"overlay-smallcard"," ").concat(!c&&s?"overlay-first":""," ").concat(!c&&u?"overlay-last":""," ").concat(d||"");return e.default.createElement("div",{ref:g},e.default.createElement(qs,{id:"processed_options_notification"+l,tip:"Customization options available",content:e.default.createElement("img",{className:"alert-info",src:p?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:function(e){m(!p)}})}),e.default.createElement("div",{style:{display:p?"flex":"none"},className:h},e.default.createElement(Vs,{options:o,data:i,key:"processed_options_"+l,id:"processed_options_"+l,target:a})))}function Js(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qs(t){var n=t.id,r=t.options,o=t.data,i=Js((0,e.useState)(!1),2),a=i[0],l=i[1],c=Js((0,e.useState)({x:0,y:0}),2),s=c[0],u=c[1],d=Js((0,e.useState)({w:0,h:0}),2),f=d[0],p=d[1],m=Fc(r,o),g=function(){l(!1),document.removeEventListener("scroll",y,!0)},h=Hs(g),b=function(){var e=document.getElementById(n+"img");if(e){var t=e.getBoundingClientRect(),r=(t.left+t.right)/2,o=(t.top+t.bottom)/2;r+f.w>window.innerWidth?u({x:r-f.w-20,y:o-f.h/2}):u({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",y,!0)},y=function(e){e.target!==document.getElementById(n)&&g()};return(0,e.useEffect)((function(){if(a){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),b()}}),[a]),(0,e.useEffect)((function(){a&&b()}),[a,f]),e.default.createElement("div",{ref:h},e.default.createElement("img",{className:"alert-info",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!a),a||document.addEventListener("scroll",y,!0)}}),e.default.createElement("div",{style:{display:a?"flex":"none",top:s.y,left:s.x},className:"overlayVariant card border rounded",id:n},e.default.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Js(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Js(t,2),i=o[0],a=o[1];return e.default.createElement("p",{className:"card-text",key:n+i},e.default.createElement("i",null,i),": ",function(e){var t=Bc(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(a))}))))))}function Zs(e){return Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(e)}function eu(t){var n=t.crate_index,r=t.card_index,o=t.first,i=t.last,a=ks((function(e){return e.crates[n].id})),l=ks((function(e){return e.crates[n].items[r].options})),c=ks((function(e){return e.crates[n].items[r].options_data})),s=ks((function(e){return e.crates[n].items[r].size})),u=ks((function(e){return e.crates[n].items[r].options_class})),d=ks((function(e){return e.updateOptions}));return e.default.createElement(Ks,{options:l,data:c,options_class:u,key:"popover"+a+r,id:"popover"+a+r,big:"big"===s,first:o,last:i,target:{construct:function(e,t){c[e]=t},update:function(e,t){e in c&&(c[e]=t),d(a,r,function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Zs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}}})}function tu(t){var n=t.crate_index,r=t.card_index,o=ks((function(e){return e.crates[n].items[r].id})),i=ks((function(e){return e.crates[n].items[r].options})),a=ks((function(e){return e.crates[n].items[r].options_data}));return e.default.createElement(Qs,{id:o+"options",options:i,data:a})}function nu(t){var n=t.crate_index,r=t.card_index,o=ks((function(e){return e.currency})),i=ks((function(e){return e.deleteCard})),a=ks((function(e){return e.highlightCard})),l=ks((function(e){return e.highlightReset})),c=ks((function(e){return e.crates[n].id===e.highlighted.crate&&r===e.highlighted.card})),s=ks((function(e){return e.crates[n].id})),u=ks((function(e){return e.crates[n].items[r]}),(function(e,t){return e.id===t.id})),d=ks((function(e){return e.crates[n].items[r].show_warnings}),zo),f=ks((function(e){return e.crates[n].items[r].options_data}),zo),p=ks((function(e){return!!e.crateParams(e.crates[n].crate_mode).warnings_disabled})),m=!p&&u&&u.options&&u.options.length>0,g=!p&&f&&Object.keys(f).length>0,h=!p&&d&&d.length>0;return e.default.createElement("tr",{key:"summary_crate_"+s+"_"+r,className:"hoverable ".concat(c?"selected":""),onClick:function(){return a(s,r)},onMouseEnter:function(){return a(s,r)},onMouseLeave:function(){return l()}},e.default.createElement("td",{className:"item-card-name"},e.default.createElement("span",{style:{display:"inline-block",width:"16px"}}," "),e.default.createElement("div",null,"".concat(u.name_number," ").concat(u.name," ").concat(u.name_codename))),e.default.createElement("td",{className:"price"},e.default.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(o," ").concat(Ho(u.price)),e.default.createElement("button",{onClick:function(){return i(s,r)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.default.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},h?e.default.createElement($s,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),m&&g?e.default.createElement(tu,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}function ru(t){var n=t.crate_index,r=ks((function(e){return e.crates[n].id})),o=ks((function(e){return e.crates[n].items.length}));return e.default.createElement("tbody",{key:"summary_crate_body"+r},e.default.createElement(Ls,{crate_index:n}),Vo(0,o).map((function(t,o){return e.default.createElement(nu,{crate_index:n,card_index:t,key:"summary_crate_"+r+"_"+t})})))}function ou(){var t=ks((function(e){return e.crates.length}));return e.default.createElement(e.default.Fragment,null,Vo(0,t).map((function(t,n){return e.default.createElement(ru,{crate_index:t,key:"summary_crate_body_"+t})})))}function iu(){var t=ks((function(e){return e.currency})),n=ks((function(e){return e.totalOrderPrice()}));return e.default.createElement("div",null,t," ",Ho(n),e.default.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"})))}function au(){var t=ks((function(e){return e.clearAll}));return e.default.createElement("div",{className:"summary-price"},e.default.createElement("table",null,e.default.createElement("thead",null,e.default.createElement("tr",null,e.default.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.default.createElement("span",{className:"item-card-name"},"Remove all cards"),e.default.createElement("button",{onClick:t},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"}))))),e.default.createElement(ou,null),e.default.createElement("tfoot",null,e.default.createElement("tr",null,e.default.createElement("td",{className:"item-card-name"},"Price estimate"),e.default.createElement("td",{className:"price"},e.default.createElement(iu,null),e.default.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function lu(e){if((!Fs&&0!==Fs||e)&&La){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Fs=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Fs}function cu(e){void 0===e&&(e=Va());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const su="data-rr-ui-modal-open",uu=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Vl(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(su,""),Vl(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(su),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},du=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let fu;const pu=(0,e.forwardRef)(((t,n)=>{let{show:r=!1,role:o="dialog",className:i,style:a,children:l,backdrop:c=!0,keyboard:s=!0,onBackdropClick:u,onEscapeKeyDown:d,transition:f,runTransition:p,backdropTransition:m,runBackdropTransition:g,autoFocus:h=!0,enforceFocus:b=!0,restoreFocus:y=!0,restoreFocusOptions:v,renderDialog:_,renderBackdrop:E=(e=>ul("div",Object.assign({},e))),manager:w,container:x,onShow:O,onHide:S=(()=>{}),onExit:C,onExited:D,onExiting:P,onEnter:I,onEntering:N,onEntered:A}=t,k=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,du);const R=tl(),j=rl(x),T=function(t){const n=tl(),r=t||function(e){return fu||(fu=new uu({ownerDocument:null==e?void 0:e.document})),fu}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(w),M=Zo(),B=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(r),[L,F]=(0,e.useState)(!r),W=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>T),[T]),La&&!B&&r&&(W.current=cu(null==R?void 0:R.document)),r&&L&&F(!1);const G=qa((()=>{if(T.add(),q.current=Ha(document,"keydown",V),Y.current=Ha(document,"focus",(()=>setTimeout($)),!0),O&&O(),h){var e,t;const n=cu(null!=(e=null==(t=T.dialog)?void 0:t.ownerDocument)?e:null==R?void 0:R.document);T.dialog&&n&&!Jo(T.dialog,n)&&(W.current=n,T.dialog.focus())}})),U=qa((()=>{var e;T.remove(),null==q.current||q.current(),null==Y.current||Y.current(),y&&(null==(e=W.current)||null==e.focus||e.focus(v),W.current=null)}));(0,e.useEffect)((()=>{r&&j&&G()}),[r,j,G]),(0,e.useEffect)((()=>{L&&U()}),[L,U]),ei((()=>{U()}));const $=qa((()=>{if(!b||!M()||!T.isTopModal())return;const e=cu(null==R?void 0:R.document);T.dialog&&e&&!Jo(T.dialog,e)&&T.dialog.focus()})),H=qa((e=>{e.target===e.currentTarget&&(null==u||u(e),!0===c&&S())})),V=qa((e=>{s&&Xa(e)&&T.isTopModal()&&(null==d||d(e),e.defaultPrevented||S())})),Y=(0,e.useRef)(),q=(0,e.useRef)();if(!j)return null;const z=Object.assign({role:o,ref:T.setDialogRef,"aria-modal":"dialog"===o||void 0},k,{style:a,className:i,tabIndex:-1});let K=_?_(z):ul("div",Object.assign({},z,{children:e.cloneElement(l,{role:"document"})}));K=fl(f,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:C,onExiting:P,onExited:(...e)=>{F(!0),null==D||D(...e)},onEnter:I,onEntering:N,onEntered:A,children:K});let J=null;return c&&(J=E({ref:T.setBackdropRef,onClick:H}),J=fl(m,g,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),ul(cl.HY,{children:e.default.createPortal(ul(cl.HY,{children:[J,K]}),j)})}));pu.displayName="Modal";const mu=Object.assign(pu,{Manager:uu});var gu=Function.prototype.bind.call(Function.prototype.call,[].slice);function hu(e,t){return gu(e.querySelectorAll(t))}function bu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const yu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vu=".sticky-top",_u=".navbar-toggler";class Eu extends uu{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Vl(t,{[e]:`${parseFloat(Vl(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Vl(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):gl(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";hu(t,yu).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),hu(t,vu).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),hu(t,_u).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=bu(n.className,r):n.setAttribute("class",bu(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";hu(t,yu).forEach((e=>this.restore(o,e))),hu(t,vu).forEach((e=>this.restore(i,e))),hu(t,_u).forEach((e=>this.restore(i,e)))}}let wu;const xu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"modal-body"),ul(n,{ref:o,className:fi()(e,t),...r}))));xu.displayName="ModalBody";const Ou=xu,Su=e.createContext({onHide(){}}),Cu=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:i,children:a,scrollable:l,...c},s)=>{const u=`${e=vl(e,"modal")}-dialog`,d="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return ul("div",{...c,ref:s,className:fi()(u,t,o&&`${e}-${o}`,r&&`${u}-centered`,l&&`${u}-scrollable`,i&&d),children:ul("div",{className:fi()(`${e}-content`,n),children:a})})}));Cu.displayName="ModalDialog";const Du=Cu,Pu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"modal-footer"),ul(n,{ref:o,className:fi()(e,t),...r}))));Pu.displayName="ModalFooter";const Iu=Pu,Nu={"aria-label":Qo().string,onClick:Qo().func,variant:Qo().oneOf(["white"])},Au=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>ul("button",{ref:o,type:"button",className:fi()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));Au.displayName="CloseButton",Au.propTypes=Nu;const ku=Au,Ru=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:i,...a},l)=>{const c=(0,e.useContext)(Su),s=qa((()=>{null==c||c.onHide(),null==o||o()}));return ul("div",{ref:l,...a,children:[i,r&&ul(ku,{"aria-label":t,variant:n,onClick:s})]})})),ju=Ru,Tu=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=vl(e,"modal-header"),ul(ju,{ref:i,...o,className:fi()(t,e),closeLabel:n,closeButton:r}))));Tu.displayName="ModalHeader";const Mu=Tu,Bu=("h4",e.forwardRef(((e,t)=>ul("div",{...e,ref:t,className:fi()(e.className,"h4")}))));const Lu=e.forwardRef((({className:e,bsPrefix:t,as:n=Bu,...r},o)=>(t=vl(t,"modal-title"),ul(n,{ref:o,className:fi()(e,t),...r}))));Lu.displayName="ModalTitle";const Fu=Lu;function Wu(e){return ul(ec,{...e,timeout:null})}function Gu(e){return ul(ec,{...e,timeout:null})}const Uu=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:i,children:a,dialogAs:l=Du,"aria-labelledby":c,"aria-describedby":s,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:h,onHide:b,container:y,autoFocus:v=!0,enforceFocus:_=!0,restoreFocus:E=!0,restoreFocusOptions:w,onEntered:x,onExit:O,onExiting:S,onEnter:C,onEntering:D,onExited:P,backdropClassName:I,manager:N,...A},k)=>{const[R,j]=(0,e.useState)({}),[T,M]=(0,e.useState)(!1),B=(0,e.useRef)(!1),L=(0,e.useRef)(!1),F=(0,e.useRef)(null),[W,G]=pi(),U=ui(k,G),$=qa(b),H=_l();t=vl(t,"modal");const V=(0,e.useMemo)((()=>({onHide:$})),[$]);function Y(){return N||function(e){return wu||(wu=new Eu(e)),wu}({isRTL:H})}function q(e){if(!La)return;const t=Y().getScrollbarWidth()>0,n=e.scrollHeight>Va(e).documentElement.clientHeight;j({paddingRight:t&&!n?lu():void 0,paddingLeft:!t&&n?lu():void 0})}const z=qa((()=>{W&&q(W.dialog)}));ei((()=>{$a(window,"resize",z),null==F.current||F.current()}));const K=()=>{B.current=!0},J=e=>{B.current&&W&&e.target===W.dialog&&(L.current=!0),B.current=!1},X=()=>{M(!0),F.current=Yl(W.dialog,(()=>{M(!1)}))},Q=e=>{"static"!==p?L.current||e.target!==e.currentTarget?L.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&X()})(e)},Z=(0,e.useCallback)((e=>ul("div",{...e,className:fi()(`${t}-backdrop`,I,!f&&"show")})),[f,I,t]),ee={...r,...R};return ee.display="block",ul(Su.Provider,{value:V,children:ul(mu,{show:d,ref:U,backdrop:p,container:y,keyboard:!0,autoFocus:v,enforceFocus:_,restoreFocus:E,restoreFocusOptions:w,onEscapeKeyDown:e=>{m?null==g||g(e):(e.preventDefault(),"static"===p&&X())},onShow:h,onHide:b,onEnter:(e,t)=>{e&&q(e),null==C||C(e,t)},onEntering:(e,t)=>{null==D||D(e,t),Ua(window,"resize",z)},onEntered:x,onExit:e=>{null==F.current||F.current(),null==O||O(e)},onExiting:S,onExited:e=>{e&&(e.style.display=""),null==P||P(e),$a(window,"resize",z)},manager:Y(),transition:f?Wu:void 0,backdropTransition:f?Gu:void 0,renderBackdrop:Z,renderDialog:e=>ul("div",{role:"dialog",...e,style:ee,className:fi()(n,t,T&&`${t}-static`,!f&&"show"),onClick:p?Q:void 0,onMouseUp:J,"aria-label":u,"aria-labelledby":c,"aria-describedby":s,children:ul(l,{...A,onMouseDown:K,className:o,contentClassName:i,children:a})})})})}));Uu.displayName="Modal";const $u=Object.assign(Uu,{Body:Ou,Header:Mu,Title:Fu,Footer:Iu,Dialog:Du,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var Hu;function Vu(e){return Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vu(e)}function Yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Vu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Vu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zu=(qu(Hu={},hs.OK,{style:"btn-outline-success",content:"✓ copied"}),qu(Hu,hs.Empty,{style:"btn-outline-primary",content:"Copy"}),qu(Hu,hs.Invalid,{style:"btn-outline-danger",content:"Error"}),Hu);function Ku(){var t,n,r=ks((function(e){return e.shouldShowDescription})),o=ks((function(e){return e.description})),i=ks((function(e){return e.closeDescription})),a=ks((function(e){return e.showDescription})),l=(t=(0,e.useState)(hs.Empty),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Yu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yu(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=l[0],s=l[1],u=Hs((function(e){"mousedown"===e.type&&i()}));return e.default.createElement(e.default.Fragment,null,e.default.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:a,readOnly:!0}),e.default.createElement($u,{show:r,animation:!0,className:"rfqFeedback",centered:!0},e.default.createElement($u.Body,{ref:u},e.default.createElement("textarea",{value:o,className:"form-control w-100",rows:10,readOnly:!0,placeholder:"There should be description of the crate"}),e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.default.createElement("a",{type:"button",onClick:function(){!function(e){try{navigator.clipboard.writeText(e).then((function(e){s(hs.OK),setTimeout((function(){s(hs.Empty)}),1500)}),(function(e){s(hs.Invalid),setTimeout((function(){s(hs.Empty)}),3e3),console.warn("Copy to clipboard rejected: ",e)}))}catch(e){s(hs.Invalid),setTimeout((function(){s(hs.Empty)}),3e3),console.warn("Copy to clipboard error: ",e)}}(o)},className:"btn btn-sm m-0 mb-1 mt-2 mb-sm-0 me-sm-2 "+zu[c].style},zu[c].content),e.default.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2"},"Close")))))}function Ju(){var t=ks((function(e){return e.email})),n=ks((function(e){return e.note})),r=ks((function(e){return e.isProcessing})),o=ks((function(e){return e.updateEmail})),i=ks((function(e){return e.updateNote})),a=ks((function(e){return e.submitForm})),l=ks((function(e){return e.submitDisabled})),c=ks((function(e){return e.resetEmailValidation}));return e.default.createElement("div",{className:"summary-form"},e.default.createElement("form",{onSubmit:a,noValidate:!0},e.default.createElement("input",{className:"".concat(t.error>0?"errorField":""),type:"email",placeholder:"Email",onFocus:c,onChange:function(e){return o(e.target.value)},onBlur:function(e){return o(e.target.value)},value:t.value}),t.error===hs.Empty?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Required")):null,t.error===hs.Invalid?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Your email is incomplete")):null,e.default.createElement("textarea",{onChange:function(e){return i(e.target.value)},defaultValue:n.value,rows:"5",placeholder:"Additional notes"}),e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.default.createElement(Ku,null),e.default.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2 order-form-submit",type:"button",disabled:l(),onClick:a,value:"".concat(r?"Processing ...":"Request quote")}))))}const Xu=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Qu={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Zu(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Qu[e];return n+parseInt(Vl(t,r[0]),10)+parseInt(Vl(t,r[1]),10)}const ed={[jl]:"collapse",[Bl]:"collapsing",[Tl]:"collapsing",[Ml]:"collapse show"},td=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:a,children:l,dimension:c="height",in:s=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:f=!1,appear:p=!1,getDimensionValue:m=Zu,...g},h)=>{const b="function"==typeof c?c():c,y=(0,e.useMemo)((()=>Xu((e=>{e.style[b]="0"}),t)),[b,t]),v=(0,e.useMemo)((()=>Xu((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),n)),[b,n]),_=(0,e.useMemo)((()=>Xu((e=>{e.style[b]=null}),r)),[b,r]),E=(0,e.useMemo)((()=>Xu((e=>{e.style[b]=`${m(b,e)}px`,Kl(e)}),o)),[o,m,b]),w=(0,e.useMemo)((()=>Xu((e=>{e.style[b]=null}),i)),[b,i]);return ul(Xl,{ref:h,addEndListener:zl,...g,"aria-expanded":g.role?s:null,onEnter:y,onEntering:v,onEntered:_,onExit:E,onExiting:w,childRef:l.ref,in:s,timeout:u,mountOnEnter:d,unmountOnExit:f,appear:p,children:(t,n)=>e.default.cloneElement(l,{...n,className:fi()(a,l.props.className,ed[t],"width"===b&&"collapse-horizontal")})})})),nd=td;function rd(e,t){return Array.isArray(e)?e.includes(t):e===t}const od=e.createContext({});od.displayName="AccordionContext";const id=od,ad=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:i,...a},l)=>{const{activeEventKey:c}=(0,e.useContext)(id);return n=vl(n,"accordion-collapse"),ul(nd,{ref:l,in:rd(c,i),...a,className:fi()(r,n),children:ul(t,{children:e.Children.only(o)})})}));ad.displayName="AccordionCollapse";const ld=ad,cd=e.createContext({eventKey:""});cd.displayName="AccordionItemContext";const sd=cd,ud=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:a,onExit:l,onExiting:c,onExited:s,...u},d)=>{n=vl(n,"accordion-body");const{eventKey:f}=(0,e.useContext)(sd);return ul(ld,{eventKey:f,onEnter:o,onEntering:i,onEntered:a,onExit:l,onExiting:c,onExited:s,children:ul(t,{ref:d,...u,className:fi()(r,n)})})}));ud.displayName="AccordionBody";const dd=ud,fd=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...i},a)=>{n=vl(n,"accordion-button");const{eventKey:l}=(0,e.useContext)(sd),c=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,e.useContext)(id);return e=>{let a=t===r?null:t;i&&(a=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(a,e),null==n||n(e)}}(l,o),{activeEventKey:s}=(0,e.useContext)(id);return"button"===t&&(i.type="button"),ul(t,{ref:a,onClick:c,...i,"aria-expanded":Array.isArray(s)?s.includes(l):l===s,className:fi()(r,n,!rd(s,l)&&"collapsed")})}));fd.displayName="AccordionButton";const pd=fd,md=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},a)=>(t=vl(t,"accordion-header"),ul(e,{ref:a,...i,className:fi()(n,t),children:ul(pd,{onClick:o,children:r})}))));md.displayName="AccordionHeader";const gd=md,hd=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...i},a)=>{n=vl(n,"accordion-item");const l=(0,e.useMemo)((()=>({eventKey:o})),[o]);return ul(sd.Provider,{value:l,children:ul(t,{ref:a,...i,className:fi()(r,n)})})}));hd.displayName="AccordionItem";const bd=hd,yd=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:a,onSelect:l,flush:c,alwaysOpen:s,...u}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,i=n,a=i[ai(r)],l=i[r],c=O(i,[ai(r),r].map(li)),s=t[r],u=ci(l,a,e[s]),d=u[0],f=u[1];return x({},c,((o={})[r]=d,o[s]=f,o))}),e)}(t,{activeKey:"onSelect"}),d=vl(i,"accordion"),f=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:l,alwaysOpen:s})),[o,l,s]);return ul(id.Provider,{value:f,children:ul(r,{ref:n,...u,className:fi()(a,d,c&&`${d}-flush`)})})}));yd.displayName="Accordion";const vd=Object.assign(yd,{Button:pd,Collapse:ld,Item:bd,Header:gd,Body:dd});var _d=["arrowProps","hasDoneInitialMeasure","show"];function Ed(e){return Ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ed(e)}function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wd.apply(this,arguments)}function xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==Ed(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ed(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ed(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sd=function(e,t){return{width:"".concat(Math.min(100*e/t,100),"%")}};function Cd(t){var n=t.occupied,r=t.max;return e.default.createElement("div",{className:"nbr-connectors",key:Vc()},e.default.createElement("div",{style:Od({},Sd(n,r))}))}var Dd={eem:Cd,clk:function(t){var n=t.occupied,r=t.max;return e.default.createElement("div",{className:"nbr-clocks",key:Vc()},e.default.createElement("div",{style:Od({},Sd(n,r))}))},idc:Cd},Pd={eem:function(t){var n=t.occupied,r=t.max;return e.default.createElement("p",{key:Vc()},"".concat(n,"/").concat(r," EEM connectors used"))},clk:function(t){var n=t.occupied,r=t.max;return e.default.createElement("p",{key:Vc()},"".concat(n,"/").concat(r," clock connectors used"))},idc:function(t){var n=t.occupied,r=t.max;return e.default.createElement("p",{key:Vc()},"".concat(n,"/").concat(r," IDC connectors used"))}};function Id(e){var t=e.resources,n=e.library;if(!t)return null;var r=[];return t.forEach((function(e,t){n[e.name]&&r.push(n[e.name](e))})),r}function Nd(t){var n=t.crate_index,r=t.card_index,o=ks((function(e){return e.crates[n].items[r].counted_resources}),qo);return e.default.createElement(oc,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,_d);return e.default.createElement("div",wd({className:"k-popup-connectors"},n),e.default.createElement(Id,{resources:o,library:Pd}))},rootClose:!0},e.default.createElement("div",{className:"progress-container"},e.default.createElement(Id,{resources:o,library:Dd})))}function Ad(e){return Ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ad(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kd.apply(this,arguments)}function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==Ad(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ad(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ad(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Td(t){var n=t.card_index,r=t.crate_index,o=t.first,i=t.last,a=ks((function(e){return e.crates[r].items[n]}),(function(e,t){return e.id===t.id})),l=ks((function(e){return e.crates[r].items[n].show_warnings}),zo),c=ks((function(e){return e.crates[r].items[n].counted_resources}),zo),s=ks((function(e){return e.crates[r].id===e.highlighted.crate&&n===e.highlighted.card})),u=ks((function(e){return!!e.crateParams(e.crates[r].crate_mode).warnings_disabled})),d=ks((function(e){return e.crates[r].id})),f=ks((function(e){return e.highlightCard})),p=ks((function(e){return e.highlightReset})),m=ks((function(e){return e.deleteCard})),g=!u&&a&&a.options&&a.options.length>0,h=!u&&l&&l.length>0,b=!u&&c&&c.length>0;return e.default.createElement(so,{draggableId:a.id,index:n},(function(t,l){return e.default.createElement("div",kd({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:jd({},Uo(t.draggableProps.style,l,!0,!!s,!1,!0)),onMouseEnter:function(){return f(d,n)},onMouseLeave:p}),e.default.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},h&&e.default.createElement(Us,{crate_index:r,card_index:n}),g&&e.default.createElement(eu,{crate_index:r,card_index:n,first:o,last:i})),e.default.createElement("h6",null,a.name_number),e.default.createElement("div",{onMouseEnter:function(){return f(d,n)},onClick:function(){return f(d,n)}},e.default.createElement("img",{className:"item-cart",src:a.image})),e.default.createElement("div",{style:{display:s?"flex":"none"},className:"overlayRemove",onClick:function(){return m(d,n)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.default.createElement("p",null,"Remove")),b&&e.default.createElement(Nd,{crate_index:r,card_index:n}))}))}function Md(t){for(var n=t.isDraggingOver,r=[],o=t.nToDraw;o>0;o--)r.push(e.default.createElement("div",{key:o,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.default.createElement(e.default.Fragment,null,r)}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bd.apply(this,arguments)}function Ld(t){var n=t.crate_index,r=ks((function(e){return e.crates[n]}),(function(e,t){return Yo(e.items,t.items)&&e.occupiedHP===t.occupiedHP&&e.crate_mode===t.crate_mode})),o=ks((function(e){return e.crateParams})),i=Kc(r.occupiedHP),a=Kc(o(r.crate_mode).hp),l=r.items.map((function(t,o){var l=Lc(r.items,o);return e.default.createElement(Td,{card_index:o,crate_index:n,ext_data:l,first:0===o,last:o===r.items.length-1&&i>=a,key:t.id})}));return e.default.createElement(ko,{droppableId:r.id,direction:"horizontal"},(function(t,n){return e.default.createElement("div",Bd({ref:t.innerRef},t.droppableProps,{style:$o(t.droppableProps.style,n),className:"items-cart-list"}),l,t.placeholder&&e.default.createElement("div",{style:{display:"none"}},t.placeholder),e.default.createElement(Md,{nToDraw:a-i,isDraggingOver:n.isDraggingOver}))}))}function Fd(t){var n=t.crate_index,r=ks((function(e){return e.modes_order})),o=ks((function(e){return e.crate_modes})),i=ks((function(e){return e.crates[n]}),(function(e,t){return e.id===t.id&&e.crate_mode===t.crate_mode})),a=ks((function(e){return e.setCrateMode}));return r.includes(i.crate_mode)?e.default.createElement("div",{className:"crate-mode"},r.map((function(t,n){return e.default.createElement("a",{key:t,className:i.crate_mode===t?"active":"",onClick:function(){return a(i.id,t)},href:"#",role:"button"},o[t].name)}))):e.default.createElement("div",{className:"crate-mode"})}function Wd(t){var n=t.crate_index,r=ks((function(e){return e.crates[n].warnings}),Yo);return e.default.createElement("div",{className:"crate-info"},r.map((function(t,n){return e.default.createElement("p",{key:n,className:"rule",style:{color:ls(t.level).color}},e.default.createElement("img",{src:ls(t.level).icon})," ",e.default.createElement("i",null,t.message))})))}function Gd(t){var n=t.crate_index,r=ks((function(e){return e.crates[n]}),(function(e,t){return e.length===t.length})),o=ks((function(e){return e.delCrate}));return e.default.createElement("div",{className:"crate"},e.default.createElement("div",{className:"crate-bar d-inline-flex justify-content-between"},e.default.createElement(Fd,{crate_index:n}),e.default.createElement("div",{className:"delete-crate align-self-start align-content-start justify-content-end",onClick:function(){return o(r.id)}},"Delete crate ",e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))),e.default.createElement("div",{className:"crate-products"},e.default.createElement(Ld,{crate_index:n}),e.default.createElement(Wd,{crate_index:n})))}function Ud(){var t=ks((function(e){return e.crates}),(function(e,t){return e.length===t.length})),n=ks((function(e){return e.active_crate})),r=ks((function(e){return e.newCrate})),o=ks((function(e){return e.setActiveCrate}));return e.default.createElement(vd,{id:"accordion_crates",flush:!0,activeKey:n,onSelect:function(e){o(null!==e?e:"")}},t.map((function(t,n){return e.default.createElement(vd.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.default.createElement(vd.Header,null,t.name?t.name:e.default.createElement(e.default.Fragment,null,"Crate #","".concat(n))," "),e.default.createElement(vd.Body,null,e.default.createElement(Gd,{crate_index:n})))})),e.default.createElement(vd.Item,{eventKey:"last",id:"accordion_crates_add"},e.default.createElement(vd.Header,{onClick:r},"Add new crate")))}var $d,Hd=JSON.stringify({crates:[{items:[{pn:"1124",options:null},{pn:"2128",options:null},{pn:"2128",options:null},{pn:"2128",options:null}],type:"rack"},{items:[],type:"no_crate"}]});function Vd(){var t=ks((function(e){return e.importShouldOpen})),n=ks((function(e){return e.importValue})),r=ks((function(e){return e.loadDescription})),o=ks((function(e){return e.updateImportDescription})),i=ks((function(e){return e.closeImport})),a=ks((function(e){return e.openImport})),l=Hs((function(e){"mousedown"===e.type&&i()}));return e.default.createElement(e.default.Fragment,null,e.default.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:a},"Import JSON"),e.default.createElement($u,{show:t,animation:!0,centered:!0,className:"rfqFeedback"},e.default.createElement($u.Body,{ref:l},e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.default.createElement("br",null),Hd)),e.default.createElement("div",{className:"form-group w-100"},e.default.createElement("textarea",{onChange:function(e){o(e.target.value)},value:n.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),n.error!==hs.OK?e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"text-danger"},n.error===hs.Empty?"Empty input":"Invalid JSON")):null,e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.default.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.default.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(n.error?"disabled":"")},"Load configuration")))))}function Yd(){var t=ks((function(e){return e.closeRFQFeedback})),n=ks((function(e){return e.shouldShowRFQFeedback})),r=ks((function(e){return e.processingResult})),o=Hs((function(e){"mousedown"===e.type&&t()}));return e.default.createElement($u,{show:n,animation:!0,centered:!0},e.default.createElement($u.Body,{ref:o,className:"rfqFeedback"},e.default.createElement("div",{className:"d-flex"},e.default.createElement("div",null,r.status===hs.OK?e.default.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.default.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.default.createElement("div",{style:{padding:"0 .5em"}},r.message))))}function qd(t){var n=t.title,r=t.description,o=ks((function(e){return e.isMobile})),i=ks((function(e){return e.switchSideMenu}));return e.default.createElement("section",{className:"panel"},e.default.createElement("h2",null,n),e.default.createElement("div",{className:"control justify-content-between"},r),e.default.createElement("div",null,e.default.createElement(Vd,null)),e.default.createElement(Yd,null),o?e.default.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.default.createElement("button",{onClick:i},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.default.createElement(Ud,null),e.default.createElement("section",{className:"summary"},e.default.createElement(au,null),e.default.createElement(Ju,null)))}function zd(){var t=ks((function(e){return e.addCardFromBacklog})),n=ks((function(e){return e.moveCard})),r=ks((function(e){return e.deleteCard})),o=ks((function(e){return e.cardIndexById}));return(0,e.useEffect)((function(){t(null,[o("eem_pwr_mod"),o("kasli")],-1,!0)}),[]),e.default.createElement(zr,{onDragEnd:function(e,o){e.destination?"backlog"===e.source.droppableId?t(e.destination.droppableId,e.source.index,e.destination.index):"backlog"===e.destination.droppableId?r(e.source.droppableId,e.source.index):n(e.source.droppableId,e.source.index,e.destination.droppableId,e.destination.index):console.warn("No drop destination")}},e.default.createElement(Rs,{aside:e.default.createElement(Bs,null),main:e.default.createElement(qd,{title:"Order hardware",description:e.default.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.default.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price is estimated and must be confirmed by a quote.")})}))}($d=document.querySelector("#root-shop"),{render(t){(0,e.render)(t,$d)},unmount(){(0,e.unmountComponentAtNode)($d)}}).render(e.default.createElement(zd,null))})()})(); |