decap-cms-widget-list 3.6.3-beta.0 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [3.6.3
|
|
6
|
+
## [3.6.3](https://github.com/decaporg/decap-cms/compare/decap-cms-widget-list@3.6.2...decap-cms-widget-list@3.6.3) (2026-09-22)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package decap-cms-widget-list
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! For license information please see decap-cms-widget-list.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("decap-cms-widget-object"),require("@emotion/react"),require("react"),require("prop-types"),require("react-immutable-proptypes"),require("immutable"),require("decap-cms-ui-default"),require("decap-cms-lib-widgets")):"function"==typeof define&&define.amd?define("DecapCmsWidgetList",["decap-cms-widget-object","@emotion/react","react","prop-types","react-immutable-proptypes","immutable","decap-cms-ui-default","decap-cms-lib-widgets"],t):"object"==typeof exports?exports.DecapCmsWidgetList=t(require("decap-cms-widget-object"),require("@emotion/react"),require("react"),require("prop-types"),require("react-immutable-proptypes"),require("immutable"),require("decap-cms-ui-default"),require("decap-cms-lib-widgets")):e.DecapCmsWidgetList=t(e.DecapCmsWidgetObject,e.DecapCmsDefaultExports.EmotionCore,e.React,e.DecapCmsDefaultExports.PropTypes,e.DecapCmsDefaultExports.ImmutablePropTypes,e.DecapCmsDefaultExports.Immutable,e.DecapCmsUiDefault,e.DecapCmsLibWidgets)}(window,(e,t,r,n,o,i,a,s)=>(()=>{var l={79:(e,t,r)=>{var n=r(4047),o=r(7583),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},128:(e,t,r)=>{var n=r(8506);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},166:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},310:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},462:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},550:(e,t,r)=>{var n=r(5271),o=r(4583),i=r(7583),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},579:t=>{"use strict";t.exports=e},638:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},656:(e,t,r)=>{var n=r(4757),o=r(6695),i=r(4153),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var r=e[1],l=t[1],c=r|l,u=c<131,d=128==l&&8==r||128==l&&256==r&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==r;if(!u&&!d)return e;1&l&&(e[2]=t[2],c|=1&r?0:4);var p=t[3];if(p){var f=e[3];e[3]=f?n(f,p,t[4]):p,e[4]=f?i(e[3],a):t[4]}return(p=t[5])&&(f=e[5],e[5]=f?o(f,p,t[6]):p,e[6]=f?i(e[5],a):t[6]),(p=t[7])&&(e[7]=p),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},714:(e,t,r)=>{var n=r(1603),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},761:(e,t,r)=>{var n=r(983),o=0;e.exports=function(e){var t=++o;return n(e)+t}},809:(e,t,r)=>{var n=r(7156),o=r(3256),i=r(714);e.exports=function(e,t,r,a){var s=1&t,l=o(e);return function t(){for(var o=-1,c=arguments.length,u=-1,d=a.length,p=Array(d+c),f=this&&this!==i&&this instanceof t?l:e;++u<d;)p[u]=a[u];for(;c--;)p[u++]=arguments[++o];return n(f,s?r:this,p)}}},975:(e,t,r)=>{var n=r(5271),o=r(7583);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},983:(e,t,r)=>{var n=r(8071);e.exports=function(e){return null==e?"":n(e)}},1095:(e,t,r)=>{var n=r(9400),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},1400:e=>{e.exports={}},1603:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},1683:(e,t,r)=>{var n=r(9169),o=r(3821),i=o?function(e,t){return o.set(e,t),e}:n;e.exports=i},1824:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},1908:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},2046:(e,t,r)=>{var n=r(5351),o=r(9778),i=r(79),a=r(5874),s=r(3069),l=r(3601),c=r(7894),u=r(9046),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},2176:(e,t,r)=>{var n=r(3821),o=r(3883),i=n?function(e){return n.get(e)}:o;e.exports=i},2275:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},2325:(e,t,r)=>{var n=r(8546)(Object.keys,Object);e.exports=n},2468:(e,t,r)=>{"use strict";var n=r(4119);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Symbol.for("react.portal");n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.unstable_batchedUpdates=function(e,t){return e(t)}},2522:e=>{"use strict";e.exports=i},2532:(e,t,r)=>{var n=r(3493),o=r(2176),i=r(8581),a=r(8973);e.exports=function(e){var t=i(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=o(r);return!!s&&e===s[0]}},2750:e=>{e.exports=function(){}},2972:(e,t,r)=>{var n=r(2532),o=r(4676),i=r(2992);e.exports=function(e,t,r,a,s,l,c,u,d,p){var f=8&t;t|=f?32:64,4&(t&=~(f?64:32))||(t&=-4);var h=[e,t,s,f?l:void 0,f?c:void 0,f?void 0:l,f?void 0:c,u,d,p],v=r.apply(void 0,h);return n(e)&&o(v,h),v.placeholder=a,i(v,e,t)}},2992:(e,t,r)=>{var n=r(8136),o=r(5585),i=r(3232),a=r(9893);e.exports=function(e,t,r){var s=t+"";return i(e,o(s,a(n(s),r)))}},3069:(e,t,r)=>{var n=r(7787),o=r(4583);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3232:(e,t,r)=>{var n=r(3431),o=r(1824)(n);e.exports=o},3256:(e,t,r)=>{var n=r(1095),o=r(9400);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),i=e.apply(r,t);return o(i)?i:r}}},3378:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(2468)},3431:(e,t,r)=>{var n=r(8295),o=r(4856),i=r(9169),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},3493:(e,t,r)=>{var n=r(1095),o=r(2750);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},3510:e=>{e.exports=function(e){return e.placeholder}},3601:(e,t,r)=>{e=r.nmd(e);var n=r(714),o=r(6408),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3758:(e,t,r)=>{var n=r(8265);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},3821:(e,t,r)=>{var n=r(8154),o=n&&new n;e.exports=o},3883:e=>{e.exports=function(){}},4047:(e,t,r)=>{var n=r(5271),o=r(7583);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},4119:e=>{"use strict";e.exports=r},4153:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var s=e[n];s!==r&&s!==t||(e[n]=t,a[i++]=n)}return a}},4228:(e,t,r)=>{var n=r(7787),o=r(7827),i=r(9400),a=r(462),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},4583:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4665:(e,t,r)=>{var n=r(4671)(r(714),"Promise");e.exports=n},4671:(e,t,r)=>{var n=r(4228),o=r(7559);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},4674:(e,t,r)=>{"use strict";var n=r(7020),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},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),v=l(r),g=0;g<a.length;++g){var m=a[g];if(!(i[m]||n&&n[m]||v&&v[m]||s&&s[m])){var y=p(r,m);try{c(t,m,y)}catch(e){}}}}return t}},4676:(e,t,r)=>{var n=r(1683),o=r(1824)(n);e.exports=o},4757:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=r.length,u=t(a-s,0),d=Array(c+u),p=!o;++l<c;)d[l]=r[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}},4822:(e,t,r)=>{var n=r(3493),o=r(8820),i=r(310);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},4856:(e,t,r)=>{var n=r(4671),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},4997:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},5103:(e,t,r)=>{var n=r(4997),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},5270:(e,t,r)=>{"use strict";e.exports=r(5460)},5271:(e,t,r)=>{var n=r(9006),o=r(9650),i=r(6881),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},5351:(e,t,r)=>{var n=r(7894),o=r(2325),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},5360:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case v:case l:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===m)},t.typeOf=w},5390:(e,t,r)=>{var n=r(7156),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(l),n(e,this,c)}}},5460:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in n={},t)"key"!==i&&(n[i]=t[i]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}t.Fragment=n,t.jsx=o,t.jsxs=o},5585:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var o=n-1;return r[o]=(n>1?"& ":"")+r[o],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},5639:(e,t,r)=>{var n=r(7156),o=r(3256),i=r(7524),a=r(2972),s=r(3510),l=r(4153),c=r(714);e.exports=function(e,t,r){var u=o(e);return function o(){for(var d=arguments.length,p=Array(d),f=d,h=s(o);f--;)p[f]=arguments[f];var v=d<3&&p[0]!==h&&p[d-1]!==h?[]:l(p,h);return(d-=v.length)<r?a(e,t,i,o.placeholder,void 0,p,v,void 0,void 0,r-d):n(this&&this!==c&&this instanceof o?u:e,this,p)}}},5733:(e,t,r)=>{var n=r(3256),o=r(714);e.exports=function(e,t,r){var i=1&t,a=n(e);return function t(){return(this&&this!==o&&this instanceof t?a:e).apply(i?r:this,arguments)}}},5870:(e,t,r)=>{var n=r(4671)(r(714),"Map");e.exports=n},5874:e=>{var t=Array.isArray;e.exports=t},6171:(e,t,r)=>{var n=r(4671)(r(714),"DataView");e.exports=n},6172:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},6270:(e,t,r)=>{var n=r(6965),o=r(9298),i=r(3510),a=r(4153),s=n(function(e,t){var r=a(t,i(s));return o(e,32,void 0,t,r)});s.placeholder={},e.exports=s},6408:e=>{e.exports=function(){return!1}},6450:(e,t,r)=>{var n=r(714)["__core-js_shared__"];e.exports=n},6574:(e,t,r)=>{e=r.nmd(e);var n=r(1603),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6619:(e,t,r)=>{var n=r(310),o=r(1908),i=Math.min;e.exports=function(e,t){for(var r=e.length,a=i(t.length,r),s=n(e);a--;){var l=t[a];e[a]=o(l,r)?s[l]:void 0}return e}},6695:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=r.length,d=t(a-l,0),p=Array(d+u),f=!o;++i<d;)p[i]=e[i];for(var h=i;++c<u;)p[h+c]=r[c];for(;++s<l;)(f||i<a)&&(p[h+n[s]]=e[i++]);return p}},6881:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6965:(e,t,r)=>{var n=r(9169),o=r(5390),i=r(3232);e.exports=function(e,t){return i(o(e,t,n),e+"")}},7012:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},7020:(e,t,r)=>{"use strict";e.exports=r(5360)},7032:e=>{"use strict";e.exports=s},7156:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7434:e=>{"use strict";e.exports=n},7524:(e,t,r)=>{var n=r(4757),o=r(6695),i=r(6172),a=r(3256),s=r(2972),l=r(3510),c=r(6619),u=r(4153),d=r(714);e.exports=function e(t,r,p,f,h,v,g,m,y,b){var x=128&r,w=1&r,C=2&r,S=24&r,E=512&r,R=C?void 0:a(t);return function _(){for(var D=arguments.length,k=Array(D),O=D;O--;)k[O]=arguments[O];if(S)var T=l(_),A=i(k,T);if(f&&(k=n(k,f,h,S)),v&&(k=o(k,v,g,S)),D-=A,S&&D<b){var I=u(k,T);return s(t,r,e,_.placeholder,p,k,I,m,y,b-D)}var j=w?p:this,M=C?j[t]:t;return D=k.length,m?k=c(k,m):E&&D>1&&k.reverse(),x&&y<D&&(k.length=y),this&&this!==d&&this instanceof _&&(M=R||a(M)),M.apply(j,k)}}},7559:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7583:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7639:(e,t,r)=>{var n=r(5103),o=r(9400),i=r(975),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},7787:(e,t,r)=>{var n=r(5271),o=r(9400);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7827:(e,t,r)=>{var n,o=r(6450),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},7894:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},8071:(e,t,r)=>{var n=r(9006),o=r(2275),i=r(5874),a=r(975),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},8110:e=>{"use strict";e.exports=t},8136:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},8154:(e,t,r)=>{var n=r(4671)(r(714),"WeakMap");e.exports=n},8232:e=>{e.exports=function(e){return function(t){return e(t)}}},8265:(e,t,r)=>{var n=r(7639),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8295:e=>{e.exports=function(e){return function(){return e}}},8306:e=>{e.exports=function(e){return e!=e}},8506:(e,t,r)=>{var n=r(166),o=r(8306),i=r(638);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},8546:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8552:e=>{"use strict";e.exports=a},8581:(e,t,r)=>{var n=r(1400),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=o.call(n,t)?r.length:0;i--;){var a=r[i],s=a.func;if(null==s||s==e)return a.name}return t}},8630:e=>{"use strict";e.exports=o},8820:(e,t,r)=>{var n=r(1095),o=r(2750);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},8973:(e,t,r)=>{var n=r(3493),o=r(8820),i=r(2750),a=r(5874),s=r(7583),l=r(4822),c=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof n)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return l(e)}return new o(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},9006:(e,t,r)=>{var n=r(714).Symbol;e.exports=n},9046:(e,t,r)=>{var n=r(550),o=r(8232),i=r(6574),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},9169:e=>{e.exports=function(e){return e}},9298:(e,t,r)=>{var n=r(1683),o=r(5733),i=r(5639),a=r(7524),s=r(809),l=r(2176),c=r(656),u=r(4676),d=r(2992),p=r(3758),f=Math.max;e.exports=function(e,t,r,h,v,g,m,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var x=h?h.length:0;if(x||(t&=-97,h=v=void 0),m=void 0===m?m:f(p(m),0),y=void 0===y?y:p(y),x-=v?v.length:0,64&t){var w=h,C=v;h=v=void 0}var S=b?void 0:l(e),E=[e,t,r,h,v,w,C,g,m,y];if(S&&c(E,S),e=E[0],t=E[1],r=E[2],h=E[3],v=E[4],!(y=E[9]=void 0===E[9]?b?0:e.length:f(E[9]-x,0))&&24&t&&(t&=-25),t&&1!=t)R=8==t||16==t?i(e,t,y):32!=t&&33!=t||v.length?a.apply(void 0,E):s(e,t,r,h);else var R=o(e,t,r);return d((S?n:u)(R,E),e,t)}},9400:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9612:(e,t,r)=>{var n=r(4671)(r(714),"Set");e.exports=n},9650:(e,t,r)=>{var n=r(9006),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9778:(e,t,r)=>{var n=r(6171),o=r(5870),i=r(4665),a=r(9612),s=r(8154),l=r(5271),c=r(462),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",v=c(n),g=c(o),m=c(i),y=c(a),b=c(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=u||i&&x(i.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return h;case g:return u;case m:return d;case y:return p;case b:return f}return t}),e.exports=x},9893:(e,t,r)=>{var n=r(7012),o=r(128),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(i,function(r){var n="_."+r[0];t&r[1]&&!o(e,n)&&e.push(n)}),e.sort()}}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return l[e](r,r.exports,u),r.loaded=!0,r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var d={};return(()=>{"use strict";u.d(d,{DecapCmsWidgetList:()=>Kn});var e=u(579),t=u.n(e);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(null,arguments)}var n=u(8110),o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function i(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},p=i(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return v={name:t,styles:r,next:v},t})}return 1===o[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return v={name:o.name,styles:o.styles,next:v},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)v={name:a.name,styles:a.styles,next:v},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=h(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":c(s)&&(n+=p(i)+":"+f(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=h(e,t,a);switch(i){case"animation":case"animationName":n+=p(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(n+=p(i)+":"+f(i,a[u])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=v,l=r(e);return v=s,h(e,t,l)}}var u=r;if(null==t)return u;var d=t[u];return void 0!==d?d:u}var v,g=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";v=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=h(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=h(r,t,e[a]),n&&(o+=i[a]);g.lastIndex=0;for(var s,l="";null!==(s=g.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:v}}var y=u(4119),b=u.n(y),x=!!y.useInsertionEffect&&y.useInsertionEffect,w=x||function(e){return e()};function C(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}x||y.useLayoutEffect;var S=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},E=function(e,t,r){S(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},R=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_=i(function(e){return R.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),D=function(e){return"theme"!==e},k=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?_:D},O=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},T=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return S(t,r,n),w(function(){return E(t,r,n)}),null},A=function e(t,o){var i,a,s=t.__emotion_real===t,l=s&&t.__emotion_base||t;void 0!==o&&(i=o.label,a=o.target);var c=O(t,o,s),u=c||k(l),d=!u("as");return function(){var p=arguments,f=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&f.push("label:"+i+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{var h=p[0];f.push(h[0]);for(var v=p.length,g=1;g<v;g++)f.push(p[g],h[g])}var b=(0,n.withEmotionCache)(function(e,t,r){var o=d&&e.as||l,i="",s=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(n.ThemeContext)}"string"==typeof e.className?i=C(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var v=m(f.concat(s),t.registered,p);i+=t.key+"-"+v.name,void 0!==a&&(i+=" "+a);var g=d&&void 0===c?k(o):u,b={};for(var x in e)d&&"as"===x||g(x)&&(b[x]=e[x]);return b.className=i,r&&(b.ref=r),y.createElement(y.Fragment,null,y.createElement(T,{cache:t,serialized:v,isStringTag:"string"==typeof o}),y.createElement(o,b))});return b.displayName=void 0!==i?i:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=l,b.__emotion_styles=f,b.__emotion_forwardProp=c,Object.defineProperty(b,"toString",{value:function(){return"."+a}}),b.withComponent=function(t,n){return e(t,r({},o,n,{shouldForwardProp:O(b,n,!0)})).apply(void 0,f)},b}},I=u(7434),j=u.n(I),M=u(8630),N=u.n(M),L=u(2522),P=u(6270),$=u.n(P),F=u(2046),z=u.n(F),B=u(761),q=u.n(B),U=u(3378);const W="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function V(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function H(e){return"nodeType"in e}function K(e){var t,r;return e?V(e)?e:H(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function X(e){const{Document:t}=K(e);return e instanceof t}function Y(e){return!V(e)&&e instanceof K(e).HTMLElement}function G(e){return e instanceof K(e).SVGElement}function J(e){return e?V(e)?e.document:H(e)?X(e)?e:Y(e)||G(e)?e.ownerDocument:document:document:document}const Z=W?y.useLayoutEffect:y.useEffect;function Q(e){const t=(0,y.useRef)(e);return Z(()=>{t.current=e}),(0,y.useCallback)(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function ee(e,t){void 0===t&&(t=[e]);const r=(0,y.useRef)(e);return Z(()=>{r.current!==e&&(r.current=e)},t),r}function te(e,t){const r=(0,y.useRef)();return(0,y.useMemo)(()=>{const t=e(r.current);return r.current=t,t},[...t])}function re(e){const t=Q(e),r=(0,y.useRef)(null),n=(0,y.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,n]}function ne(e){const t=(0,y.useRef)();return(0,y.useEffect)(()=>{t.current=e},[e]),t.current}let oe={};function ie(e,t){return(0,y.useMemo)(()=>{if(t)return t;const r=null==oe[e]?0:oe[e]+1;return oe[e]=r,e+"-"+r},[e,t])}function ae(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.reduce((t,r)=>{const n=Object.entries(r);for(const[r,o]of n){const n=t[r];null!=n&&(t[r]=n+e*o)}return t},{...t})}}const se=ae(1),le=ae(-1);function ce(e){if(!e)return!1;const{KeyboardEvent:t}=K(e.target);return t&&e instanceof t}function ue(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=K(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const de=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[de.Translate.toString(e),de.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),pe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fe(e){return e.matches(pe)?e:e.querySelector(pe)}const he={display:"none"};function ve(e){let{id:t,value:r}=e;return b().createElement("div",{id:t,style:he},r)}function ge(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return b().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}const me=(0,y.createContext)(null),ye={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},be={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function xe(e){let{announcements:t=be,container:r,hiddenTextDescribedById:n,screenReaderInstructions:o=ye}=e;const{announce:i,announcement:a}=function(){const[e,t]=(0,y.useState)("");return{announce:(0,y.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=ie("DndLiveRegion"),[l,c]=(0,y.useState)(!1);if((0,y.useEffect)(()=>{c(!0)},[]),function(e){const t=(0,y.useContext)(me);(0,y.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,y.useMemo)(()=>({onDragStart(e){let{active:r}=e;i(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&i(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;i(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;i(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;i(t.onDragCancel({active:r,over:n}))}}),[i,t])),!l)return null;const u=b().createElement(b().Fragment,null,b().createElement(ve,{id:n,value:o.draggable}),b().createElement(ge,{id:s,announcement:a}));return r?(0,U.createPortal)(u,r):u}var we;function Ce(){}function Se(e,t){return(0,y.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(we||(we={}));const Ee=Object.freeze({x:0,y:0});function Re(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _e(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function De(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function ke(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}const Oe=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=ke(t,t.left,t.top),i=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=Re(ke(n),o);i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort(_e)};function Te(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){const r=t.width*t.height,n=e.width*e.height,o=a*s;return Number((o/(r+n-o)).toFixed(4))}return 0}const Ae=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=[];for(const e of n){const{id:n}=e,i=r.get(n);if(i){const r=Te(i,t);r>0&&o.push({id:n,data:{droppableContainer:e,value:r}})}}return o.sort(De)};function Ie(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ee}function je(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}const Me=je(1);const Ne={ignoreTransform:!1};function Le(e,t){void 0===t&&(t=Ne);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=K(e).getComputedStyle(e);t&&(r=function(e,t,r){const n=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;const{scaleX:o,scaleY:i,x:a,y:s}=n,l=e.left-a-(1-o)*parseFloat(r),c=e.top-s-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(r,t,n))}const{top:n,left:o,width:i,height:a,bottom:s,right:l}=r;return{top:n,left:o,width:i,height:a,bottom:s,right:l}}function Pe(e){return Le(e,{ignoreTransform:!0})}function $e(e,t){const r=[];return e?function n(o){if(null!=t&&r.length>=t)return r;if(!o)return r;if(X(o)&&null!=o.scrollingElement&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!Y(o)||G(o))return r;if(r.includes(o))return r;const i=K(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=K(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(o,i)&&r.push(o),function(e,t){return void 0===t&&(t=K(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?r:n(o.parentNode)}(e):r}function Fe(e){const[t]=$e(e,1);return null!=t?t:null}function ze(e){return W&&e?V(e)?e:H(e)?X(e)||e===J(e).scrollingElement?window:Y(e)?e:null:null:null}function Be(e){return V(e)?e.scrollX:e.scrollLeft}function qe(e){return V(e)?e.scrollY:e.scrollTop}function Ue(e){return{x:Be(e),y:qe(e)}}var We;function Ve(e){return!(!W||!e)&&e===document.scrollingElement}function He(e){const t={x:0,y:0},r=Ve(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(We||(We={}));const Ke={x:.2,y:.2};function Xe(e,t,r,n,o){let{top:i,left:a,right:s,bottom:l}=r;void 0===n&&(n=10),void 0===o&&(o=Ke);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=He(e),f={x:0,y:0},h={x:0,y:0},v=t.height*o.y,g=t.width*o.x;return!c&&i<=t.top+v?(f.y=We.Backward,h.y=n*Math.abs((t.top+v-i)/v)):!u&&l>=t.bottom-v&&(f.y=We.Forward,h.y=n*Math.abs((t.bottom-v-l)/v)),!p&&s>=t.right-g?(f.x=We.Forward,h.x=n*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(f.x=We.Backward,h.x=n*Math.abs((t.left+g-a)/g)),{direction:f,speed:h}}function Ye(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:r,right:n,bottom:o}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Ge(e){return e.reduce((e,t)=>se(e,Ue(t)),Ee)}const Je=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Be(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+qe(t),0)}]];class Ze{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=$e(t),n=Ge(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Je)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(r),a=n[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Qe{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function et(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}var tt,rt,nt;function ot(e){e.preventDefault()}function it(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(tt||(tt={})),(nt=rt||(rt={})).Space="Space",nt.Down="ArrowDown",nt.Right="ArrowRight",nt.Left="ArrowLeft",nt.Up="ArrowUp",nt.Esc="Escape",nt.Enter="Enter",nt.Tab="Tab";const at={start:[rt.Space,rt.Enter],cancel:[rt.Esc],end:[rt.Space,rt.Enter,rt.Tab]},st=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case rt.Right:return{...r,x:r.x+25};case rt.Left:return{...r,x:r.x-25};case rt.Down:return{...r,y:r.y+25};case rt.Up:return{...r,y:r.y-25}}};class lt{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Qe(J(t)),this.windowListeners=new Qe(K(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tt.Resize,this.handleCancel),this.windowListeners.add(tt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(tt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=Le),!e)return;const{top:r,left:n,bottom:o,right:i}=t(e);Fe(e)&&(o<=0||i<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(Ee)}handleKeyDown(e){if(ce(e)){const{active:t,context:r,options:n}=this.props,{keyboardCodes:o=at,coordinateGetter:i=st,scrollBehavior:a="smooth"}=n,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=r.current,c=l?{x:l.left,y:l.top}:Ee;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:r.current,currentCoordinates:c});if(u){const t=le(u,c),n={x:0,y:0},{scrollableAncestors:o}=r.current;for(const r of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:p}=He(r),f=Ye(r),h={x:Math.min(o===rt.Right?f.right-f.width/2:f.right,Math.max(o===rt.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(o===rt.Down?f.bottom-f.height/2:f.bottom,Math.max(o===rt.Down?f.top:f.top+f.height/2,u.y))},v=o===rt.Right&&!s||o===rt.Left&&!l,g=o===rt.Down&&!c||o===rt.Up&&!i;if(v&&h.x!==u.x){const e=r.scrollLeft+t.x,i=o===rt.Right&&e<=d.x||o===rt.Left&&e>=p.x;if(i&&!t.y)return void r.scrollTo({left:e,behavior:a});n.x=i?r.scrollLeft-e:o===rt.Right?r.scrollLeft-d.x:r.scrollLeft-p.x,n.x&&r.scrollBy({left:-n.x,behavior:a});break}if(g&&h.y!==u.y){const e=r.scrollTop+t.y,i=o===rt.Down&&e<=d.y||o===rt.Up&&e>=p.y;if(i&&!t.x)return void r.scrollTo({top:e,behavior:a});n.y=i?r.scrollTop-e:o===rt.Down?r.scrollTop-d.y:r.scrollTop-p.y,n.y&&r.scrollBy({top:-n.y,behavior:a});break}}this.handleMove(e,se(le(u,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ct(e){return Boolean(e&&"distance"in e)}function ut(e){return Boolean(e&&"delay"in e)}lt.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=at,onActivation:o}=t,{active:i}=r;const{code:a}=e.nativeEvent;if(n.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class dt{constructor(e,t,r){var n;void 0===r&&(r=function(e){const{EventTarget:t}=K(e);return e instanceof t?e:J(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=J(i),this.documentListeners=new Qe(this.document),this.listeners=new Qe(r),this.windowListeners=new Qe(K(i)),this.initialCoordinates=null!=(n=ue(o))?n:Ee,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(tt.Resize,this.handleCancel),this.windowListeners.add(tt.DragStart,ot),this.windowListeners.add(tt.VisibilityChange,this.handleCancel),this.windowListeners.add(tt.ContextMenu,ot),this.documentListeners.add(tt.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ut(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(ct(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(tt.Click,it,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tt.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:n,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!n)return;const s=null!=(t=ue(e))?t:Ee,l=le(n,s);if(!r&&a){if(ct(a)){if(null!=a.tolerance&&et(l,a.tolerance))return this.handleCancel();if(et(l,a.distance))return this.handleStart()}return ut(a)&&et(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===rt.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const pt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ft extends dt{constructor(e){const{event:t}=e,r=J(t.target);super(e,pt,r)}}ft.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!(!r.isPrimary||0!==r.button||(null==n||n({event:r}),0))}}];const ht={move:{name:"mousemove"},end:{name:"mouseup"}};var vt;!function(e){e[e.RightClick=2]="RightClick"}(vt||(vt={}));class gt extends dt{constructor(e){super(e,ht,J(e.event.target))}}gt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==vt.RightClick&&(null==n||n({event:r}),!0)}}];const mt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class yt extends dt{constructor(e){super(e,mt)}static setup(){return window.addEventListener(mt.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(mt.move.name,e)};function e(){}}}var bt,xt;yt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:o}=r;return!(o.length>1||(null==n||n({event:r}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(bt||(bt={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(xt||(xt={}));const wt={x:{[We.Backward]:!1,[We.Forward]:!1},y:{[We.Backward]:!1,[We.Forward]:!1}};var Ct,St;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Ct||(Ct={})),function(e){e.Optimized="optimized"}(St||(St={}));const Et=new Map;function Rt(e,t){return te(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function _t(e){let{callback:t,disabled:r}=e;const n=Q(t),o=(0,y.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(n)},[r]);return(0,y.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Dt(e){return new Ze(Le(e),e)}function kt(e,t,r){void 0===t&&(t=Dt);const[n,o]=(0,y.useState)(null);function i(){o(n=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=n?n:r)?o:null;const i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i})}const a=function(e){let{callback:t,disabled:r}=e;const n=Q(t),o=(0,y.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,y.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const r of t){const{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),s=_t({callback:i});return Z(()=>{i(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())},[e]),n}const Ot=[];function Tt(e,t){void 0===t&&(t=[]);const r=(0,y.useRef)(null);return(0,y.useEffect)(()=>{r.current=null},t),(0,y.useEffect)(()=>{const t=e!==Ee;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?le(e,r.current):Ee}function At(e){return(0,y.useMemo)(()=>e?function(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}const It=[];const jt=[{sensor:ft,options:{}},{sensor:lt,options:{}}],Mt={current:{}},Nt={draggable:{measure:Pe},droppable:{measure:Pe,strategy:Ct.WhileDragging,frequency:St.Optimized},dragOverlay:{measure:Le}};class Lt extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}const Pt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Lt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ce},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Nt,measureDroppableContainers:Ce,windowRect:null,measuringScheduled:!1},$t={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ce,draggableNodes:new Map,over:null,measureDroppableContainers:Ce},Ft=(0,y.createContext)($t),zt=(0,y.createContext)(Pt);function Bt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Lt}}}function qt(e,t){switch(t.type){case we.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case we.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case we.DragEnd:case we.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case we.RegisterDroppable:{const{element:r}=t,{id:n}=r,o=new Lt(e.droppable.containers);return o.set(n,r),{...e,droppable:{...e.droppable,containers:o}}}case we.SetDroppableDisabled:{const{id:r,key:n,disabled:o}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new Lt(e.droppable.containers);return a.set(r,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case we.UnregisterDroppable:{const{id:r,key:n}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const i=new Lt(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Ut(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:o}=(0,y.useContext)(Ft),i=ne(n),a=ne(null==r?void 0:r.id);return(0,y.useEffect)(()=>{if(!t&&!n&&i&&null!=a){if(!ce(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:t,node:r}=e;if(!t.current&&!r.current)return;requestAnimationFrame(()=>{for(const e of[t.current,r.current]){if(!e)continue;const t=fe(e);if(t){t.focus();break}}})}},[n,t,o,a,i]),null}const Wt=(0,y.createContext)({...Ee,scaleX:1,scaleY:1});var Vt;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Vt||(Vt={}));const Ht=(0,y.memo)(function(e){var t,r,n,o;let{id:i,accessibility:a,autoScroll:s=!0,children:l,sensors:c=jt,collisionDetection:u=Ae,measuring:d,modifiers:p,...f}=e;const h=(0,y.useReducer)(qt,void 0,Bt),[v,g]=h,[m,x]=function(){const[e]=(0,y.useState)(()=>new Set),t=(0,y.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,y.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[w,C]=(0,y.useState)(Vt.Uninitialized),S=w===Vt.Initialized,{draggable:{active:E,nodes:R,translate:_},droppable:{containers:D}}=v,k=null!=E?R.get(E):null,O=(0,y.useRef)({initial:null,translated:null}),T=(0,y.useMemo)(()=>{var e;return null!=E?{id:E,data:null!=(e=null==k?void 0:k.data)?e:Mt,rect:O}:null},[E,k]),A=(0,y.useRef)(null),[I,j]=(0,y.useState)(null),[M,N]=(0,y.useState)(null),L=ee(f,Object.values(f)),P=ie("DndDescribedBy",i),$=(0,y.useMemo)(()=>D.getEnabled(),[D]),F=(z=d,(0,y.useMemo)(()=>({draggable:{...Nt.draggable,...null==z?void 0:z.draggable},droppable:{...Nt.droppable,...null==z?void 0:z.droppable},dragOverlay:{...Nt.dragOverlay,...null==z?void 0:z.dragOverlay}}),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:B,measureDroppableContainers:q,measuringScheduled:V}=function(e,t){let{dragging:r,dependencies:n,config:o}=t;const[i,a]=(0,y.useState)(null),{frequency:s,measure:l,strategy:c}=o,u=(0,y.useRef)(e),d=function(){switch(c){case Ct.Always:return!1;case Ct.BeforeDragging:return r;default:return!r}}(),p=ee(d),f=(0,y.useCallback)(function(e){void 0===e&&(e=[]),p.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),h=(0,y.useRef)(null),v=te(t=>{if(d&&!r)return Et;if(!t||t===Et||u.current!==e||null!=i){const t=new Map;for(let r of e){if(!r)continue;if(i&&i.length>0&&!i.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}const e=r.node.current,n=e?new Ze(l(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,i,r,d,l]);return(0,y.useEffect)(()=>{u.current=e},[e]),(0,y.useEffect)(()=>{d||f()},[r,d]),(0,y.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,y.useEffect)(()=>{d||"number"!=typeof s||null!==h.current||(h.current=setTimeout(()=>{f(),h.current=null},s))},[s,d,f,...n]),{droppableRects:v,measureDroppableContainers:f,measuringScheduled:null!=i}}($,{dragging:S,dependencies:[_.x,_.y],config:F.droppable}),H=function(e,t){const r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return te(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(R,E),X=(0,y.useMemo)(()=>M?ue(M):null,[M]),G=function(){const e=!1===(null==I?void 0:I.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,r=S&&!e&&!t;return"object"==typeof s?{...s,enabled:r}:{enabled:r}}(),J=function(e,t){return Rt(e,t)}(H,F.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:o=!0}=e;const i=(0,y.useRef)(!1),{x:a,y:s}="boolean"==typeof o?{x:o,y:o}:o;Z(()=>{if(!a&&!s||!t)return void(i.current=!1);if(i.current||!n)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=Ie(r(e),n);if(a||(o.x=0),s||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=Fe(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,a,s,n,r])}({activeNode:null!=E?R.get(E):null,config:G.layoutShiftCompensation,initialRect:J,measure:F.draggable.measure});const Q=kt(H,F.draggable.measure,J),oe=kt(H?H.parentElement:null),ae=(0,y.useRef)({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:R,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),le=D.getNodeFor(null==(t=ae.current.over)?void 0:t.id),ce=function(e){let{measure:t}=e;const[r,n]=(0,y.useState)(null),o=_t({callback:(0,y.useCallback)(e=>{for(const{target:r}of e)if(Y(r)){n(e=>{const n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),i=(0,y.useCallback)(e=>{const r=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Y(t)?t:e}(e);null==o||o.disconnect(),r&&(null==o||o.observe(r)),n(r?t(r):null)},[t,o]),[a,s]=re(i);return(0,y.useMemo)(()=>({nodeRef:a,rect:r,setRef:s}),[r,a,s])}({measure:F.dragOverlay.measure}),de=null!=(r=ce.nodeRef.current)?r:H,pe=S?null!=(n=ce.rect)?n:Q:null,fe=Boolean(ce.nodeRef.current&&ce.rect),he=Ie(ve=fe?null:Q,Rt(ve));var ve;const ge=At(de?K(de):null),ye=function(e){const t=(0,y.useRef)(e),r=te(r=>e?r&&r!==Ot&&e&&t.current&&e.parentNode===t.current.parentNode?r:$e(e):Ot,[e]);return(0,y.useEffect)(()=>{t.current=e},[e]),r}(S?null!=le?le:H:null),be=function(e,t){void 0===t&&(t=Le);const[r]=e,n=At(r?K(r):null),[o,i]=(0,y.useState)(It);function a(){i(()=>e.length?e.map(e=>Ve(e)?n:new Ze(t(e),e)):It)}const s=_t({callback:a});return Z(()=>{null==s||s.disconnect(),a(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),o}(ye),Ce=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(p,{transform:{x:_.x-he.x,y:_.y-he.y,scaleX:1,scaleY:1},activatorEvent:M,active:T,activeNodeRect:Q,containerNodeRect:oe,draggingNodeRect:pe,over:ae.current.over,overlayNodeRect:ce.rect,scrollableAncestors:ye,scrollableAncestorRects:be,windowRect:ge}),Se=X?se(X,_):null,Re=function(e){const[t,r]=(0,y.useState)(null),n=(0,y.useRef)(e),o=(0,y.useCallback)(e=>{const t=ze(e.target);t&&r(e=>e?(e.set(t,Ue(t)),new Map(e)):null)},[]);return(0,y.useEffect)(()=>{const t=n.current;if(e!==t){i(t);const a=e.map(e=>{const t=ze(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Ue(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=ze(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),(0,y.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>se(e,t),Ee):Ge(e):Ee,[e,t])}(ye),_e=Tt(Re),De=Tt(Re,[Q]),ke=se(Ce,_e),Oe=pe?Me(pe,Ce):null,Te=T&&Oe?u({active:T,collisionRect:Oe,droppableRects:B,droppableContainers:$,pointerCoordinates:Se}):null,je=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(Te),[Ne,Pe]=(0,y.useState)(null),Be=function(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}(fe?Ce:se(Ce,De),null!=(o=null==Ne?void 0:Ne.rect)?o:null,Q),qe=(0,y.useRef)(null),He=(0,y.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==A.current)return;const o=R.get(A.current);if(!o)return;const i=e.nativeEvent,a=new r({active:A.current,activeNode:o,event:i,options:n,context:ae,onAbort(e){if(!R.get(e))return;const{onDragAbort:t}=L.current,r={id:e};null==t||t(r),m({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!R.get(e))return;const{onDragPending:o}=L.current,i={id:e,constraint:t,initialCoordinates:r,offset:n};null==o||o(i),m({type:"onDragPending",event:i})},onStart(e){const t=A.current;if(null==t)return;const r=R.get(t);if(!r)return;const{onDragStart:n}=L.current,o={activatorEvent:i,active:{id:t,data:r.data,rect:O}};(0,U.unstable_batchedUpdates)(()=>{null==n||n(o),C(Vt.Initializing),g({type:we.DragStart,initialCoordinates:e,active:t}),m({type:"onDragStart",event:o}),j(qe.current),N(i)})},onMove(e){g({type:we.DragMove,coordinates:e})},onEnd:s(we.DragEnd),onCancel:s(we.DragCancel)});function s(e){return async function(){const{active:t,collisions:r,over:n,scrollAdjustedTranslate:o}=ae.current;let a=null;if(t&&o){const{cancelDrop:s}=L.current;a={activatorEvent:i,active:t,collisions:r,delta:o,over:n},e===we.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=we.DragCancel)}A.current=null,(0,U.unstable_batchedUpdates)(()=>{g({type:e}),C(Vt.Uninitialized),Pe(null),j(null),N(null),qe.current=null;const t=e===we.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=L.current[t];null==e||e(a),m({type:t,event:a})}})}}qe.current=a},[R]),Ke=(0,y.useCallback)((e,t)=>(r,n)=>{const o=r.nativeEvent,i=R.get(n);if(null!==A.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(r,t.options,a)&&(o.dndKit={capturedBy:t.sensor},A.current=n,He(r,t))},[R,He]),Ye=function(e,t){return(0,y.useMemo)(()=>e.reduce((e,r)=>{const{sensor:n}=r;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,r)}))]},[]),[e,t])}(c,Ke);!function(e){(0,y.useEffect)(()=>{if(!W)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),Z(()=>{Q&&w===Vt.Initializing&&C(Vt.Initialized)},[Q,w]),(0,y.useEffect)(()=>{const{onDragMove:e}=L.current,{active:t,activatorEvent:r,collisions:n,over:o}=ae.current;if(!t||!r)return;const i={active:t,activatorEvent:r,collisions:n,delta:{x:ke.x,y:ke.y},over:o};(0,U.unstable_batchedUpdates)(()=>{null==e||e(i),m({type:"onDragMove",event:i})})},[ke.x,ke.y]),(0,y.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:o}=ae.current;if(!e||null==A.current||!t||!o)return;const{onDragOver:i}=L.current,a=n.get(je),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:o.x,y:o.y},over:s};(0,U.unstable_batchedUpdates)(()=>{Pe(s),null==i||i(l),m({type:"onDragOver",event:l})})},[je]),Z(()=>{ae.current={activatorEvent:M,active:T,activeNode:H,collisionRect:Oe,collisions:Te,droppableRects:B,draggableNodes:R,draggingNode:de,draggingNodeRect:pe,droppableContainers:D,over:Ne,scrollableAncestors:ye,scrollAdjustedTranslate:ke},O.current={initial:pe,translated:Oe}},[T,H,Te,Oe,R,de,pe,B,D,Ne,ye,ke]),function(e){let{acceleration:t,activator:r=bt.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:s=xt.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:p}=e;const f=function(e){let{delta:t,disabled:r}=e;const n=ne(t);return te(e=>{if(r||!n||!e)return wt;const o=Math.sign(t.x-n.x),i=Math.sign(t.y-n.y);return{x:{[We.Backward]:e.x[We.Backward]||-1===o,[We.Forward]:e.x[We.Forward]||1===o},y:{[We.Backward]:e.y[We.Backward]||-1===i,[We.Forward]:e.y[We.Forward]||1===i}}},[r,t,n])}({delta:d,disabled:!i}),[h,v]=function(){const e=(0,y.useRef)(null);return[(0,y.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,y.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,y.useRef)({x:0,y:0}),m=(0,y.useRef)({x:0,y:0}),b=(0,y.useMemo)(()=>{switch(r){case bt.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case bt.DraggableRect:return o}},[r,o,l]),x=(0,y.useRef)(null),w=(0,y.useCallback)(()=>{const e=x.current;if(!e)return;const t=g.current.x*m.current.x,r=g.current.y*m.current.y;e.scrollBy(t,r)},[]),C=(0,y.useMemo)(()=>s===xt.TreeOrder?[...c].reverse():c,[s,c]);(0,y.useEffect)(()=>{if(i&&c.length&&b){for(const e of C){if(!1===(null==n?void 0:n(e)))continue;const r=c.indexOf(e),o=u[r];if(!o)continue;const{direction:i,speed:s}=Xe(e,o,b,t,p);for(const e of["x","y"])f[e][i[e]]||(s[e]=0,i[e]=0);if(s.x>0||s.y>0)return v(),x.current=e,h(w,a),g.current=s,void(m.current=i)}g.current={x:0,y:0},m.current={x:0,y:0},v()}else v()},[t,w,n,v,i,a,JSON.stringify(b),JSON.stringify(f),h,c,C,u,JSON.stringify(p)])}({...G,delta:_,draggingRect:Oe,pointerCoordinates:Se,scrollableAncestors:ye,scrollableAncestorRects:be});const Je=(0,y.useMemo)(()=>({active:T,activeNode:H,activeNodeRect:Q,activatorEvent:M,collisions:Te,containerNodeRect:oe,dragOverlay:ce,draggableNodes:R,droppableContainers:D,droppableRects:B,over:Ne,measureDroppableContainers:q,scrollableAncestors:ye,scrollableAncestorRects:be,measuringConfiguration:F,measuringScheduled:V,windowRect:ge}),[T,H,Q,M,Te,oe,ce,R,D,B,Ne,q,ye,be,F,V,ge]),Qe=(0,y.useMemo)(()=>({activatorEvent:M,activators:Ye,active:T,activeNodeRect:Q,ariaDescribedById:{draggable:P},dispatch:g,draggableNodes:R,over:Ne,measureDroppableContainers:q}),[M,Ye,T,Q,g,P,R,Ne,q]);return b().createElement(me.Provider,{value:x},b().createElement(Ft.Provider,{value:Qe},b().createElement(zt.Provider,{value:Je},b().createElement(Wt.Provider,{value:Be},l)),b().createElement(Ut,{disabled:!1===(null==a?void 0:a.restoreFocus)})),b().createElement(xe,{...a,hiddenTextDescribedById:P}))}),Kt=(0,y.createContext)(null),Xt="button";const Yt={timeout:25};function Gt(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function Jt(e,t){return e.reduce((e,r,n)=>{const o=t.get(r);return o&&(e[n]=o),e},Array(e.length))}function Zt(e){return null!==e&&e>=0}const Qt=e=>{let{rects:t,activeIndex:r,overIndex:n,index:o}=e;const i=Gt(t,n,r),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},er="Sortable",tr=b().createContext({activeIndex:-1,containerId:er,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Qt,disabled:{draggable:!1,droppable:!1}});function rr(e){let{children:t,id:r,items:n,strategy:o=Qt,disabled:i=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=(0,y.useContext)(zt),d=ie(er,r),p=Boolean(null!==s.rect),f=(0,y.useMemo)(()=>n.map(e=>"object"==typeof e&&"id"in e?e.id:e),[n]),h=null!=a,v=a?f.indexOf(a.id):-1,g=c?f.indexOf(c.id):-1,m=(0,y.useRef)(f),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(f,m.current),w=-1!==g&&-1===v||x,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);Z(()=>{x&&h&&u(f)},[x,f,h,u]),(0,y.useEffect)(()=>{m.current=f},[f]);const S=(0,y.useMemo)(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:w,items:f,overIndex:g,useDragOverlay:p,sortedRects:Jt(f,l),strategy:o}),[v,d,C.draggable,C.droppable,w,f,g,l,p,o]);return b().createElement(tr.Provider,{value:S},t)}const nr=e=>{let{id:t,items:r,activeIndex:n,overIndex:o}=e;return Gt(r,n,o).indexOf(t)},or=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!n||s!==i&&o===a||!r&&(a===o||t!==l))},ir={duration:200,easing:"ease"},ar="transform",sr=de.Transition.toString({property:ar,duration:0,easing:"linear"}),lr={roleDescription:"sortable"};function cr(e){let{animateLayoutChanges:t=or,attributes:r,disabled:n,data:o,getNewIndex:i=nr,id:a,strategy:s,resizeObserverConfig:l,transition:c=ir}=e;const{items:u,containerId:d,activeIndex:p,disabled:f,disableTransforms:h,sortedRects:v,overIndex:g,useDragOverlay:m,strategy:b}=(0,y.useContext)(tr),x=function(e,t){var r,n;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(n,f),w=u.indexOf(a),C=(0,y.useMemo)(()=>({sortable:{containerId:d,index:w,items:u},...o}),[d,o,w,u]),S=(0,y.useMemo)(()=>u.slice(u.indexOf(a)),[u,a]),{rect:E,node:R,isOver:_,setNodeRef:D}=function(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:o}=e;const i=ie("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=(0,y.useContext)(Ft),u=(0,y.useRef)({disabled:r}),d=(0,y.useRef)(!1),p=(0,y.useRef)(null),f=(0,y.useRef)(null),{disabled:h,updateMeasurementsFor:v,timeout:g}={...Yt,...o},m=ee(null!=v?v:n),b=_t({callback:(0,y.useCallback)(()=>{d.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),f.current=null},g)):d.current=!0},[g]),disabled:h||!a}),x=(0,y.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[w,C]=re(x),S=ee(t);return(0,y.useEffect)(()=>{b&&w.current&&(b.disconnect(),d.current=!1,b.observe(w.current))},[w,b]),(0,y.useEffect)(()=>(s({type:we.RegisterDroppable,element:{id:n,key:i,disabled:r,node:w,rect:p,data:S}}),()=>s({type:we.UnregisterDroppable,key:i,id:n})),[n]),(0,y.useEffect)(()=>{r!==u.current.disabled&&(s({type:we.SetDroppableDisabled,id:n,key:i,disabled:r}),u.current.disabled=r)},[n,i,r,s]),{active:a,rect:p,isOver:(null==l?void 0:l.id)===n,node:w,over:l,setNodeRef:C}}({id:a,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:k,activatorEvent:O,activeNodeRect:T,attributes:A,setNodeRef:I,listeners:j,isDragging:M,over:N,setActivatorNodeRef:L,transform:P}=function(e){let{id:t,data:r,disabled:n=!1,attributes:o}=e;const i=ie("Draggable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:p}=(0,y.useContext)(Ft),{role:f=Xt,roleDescription:h="draggable",tabIndex:v=0}=null!=o?o:{},g=(null==l?void 0:l.id)===t,m=(0,y.useContext)(g?Wt:Kt),[b,x]=re(),[w,C]=re(),S=function(e,t){return(0,y.useMemo)(()=>e.reduce((e,r)=>{let{eventName:n,handler:o}=r;return e[n]=e=>{o(e,t)},e},{}),[e,t])}(a,t),E=ee(r);return Z(()=>(d.set(t,{id:t,key:i,node:b,activatorNode:w,data:E}),()=>{const e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:c,attributes:(0,y.useMemo)(()=>({role:f,tabIndex:v,"aria-disabled":n,"aria-pressed":!(!g||f!==Xt)||void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[n,f,v,g,h,u.draggable]),isDragging:g,listeners:n?void 0:S,node:b,over:p,setNodeRef:x,setActivatorNodeRef:C,transform:m}}({id:a,data:C,attributes:{...lr,...r},disabled:x.draggable}),$=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,y.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(D,I),F=Boolean(k),z=F&&!h&&Zt(p)&&Zt(g),B=!m&&M,q=B&&z?P:null,U=z?null!=q?q:(null!=s?s:b)({rects:v,activeNodeRect:T,activeIndex:p,overIndex:g,index:w}):null,W=Zt(p)&&Zt(g)?i({id:a,items:u,activeIndex:p,overIndex:g}):w,V=null==k?void 0:k.id,H=(0,y.useRef)({activeId:V,items:u,newIndex:W,containerId:d}),K=u!==H.current.items,X=t({active:k,containerId:d,isDragging:M,isSorting:F,id:a,index:w,items:u,newIndex:H.current.newIndex,previousItems:H.current.items,previousContainerId:H.current.containerId,transition:c,wasDragging:null!=H.current.activeId}),Y=function(e){let{disabled:t,index:r,node:n,rect:o}=e;const[i,a]=(0,y.useState)(null),s=(0,y.useRef)(r);return Z(()=>{if(!t&&r!==s.current&&n.current){const e=o.current;if(e){const t=Le(n.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&a(r)}}r!==s.current&&(s.current=r)},[t,r,n,o]),(0,y.useEffect)(()=>{i&&a(null)},[i]),i}({disabled:!X,index:w,node:R,rect:E});return(0,y.useEffect)(()=>{F&&H.current.newIndex!==W&&(H.current.newIndex=W),d!==H.current.containerId&&(H.current.containerId=d),u!==H.current.items&&(H.current.items=u)},[F,W,d,u]),(0,y.useEffect)(()=>{if(V===H.current.activeId)return;if(V&&!H.current.activeId)return void(H.current.activeId=V);const e=setTimeout(()=>{H.current.activeId=V},50);return()=>clearTimeout(e)},[V]),{active:k,activeIndex:p,attributes:A,data:C,rect:E,index:w,newIndex:W,items:u,isOver:_,isSorting:F,isDragging:M,listeners:j,node:R,overIndex:g,over:N,setNodeRef:$,setActivatorNodeRef:L,setDroppableNodeRef:D,setDraggableNodeRef:I,transform:null!=Y?Y:U,transition:Y||K&&H.current.newIndex===w?sr:B&&!ce(O)||!c?void 0:F||X?de.Transition.toString({...c,property:ar}):void 0}}rt.Down,rt.Right,rt.Up,rt.Left;const ur=e=>{let{containerNodeRect:t,draggingNodeRect:r,transform:n}=e;return r&&t?function(e,t,r){const n={...e};return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}(n,r,t):n};var dr=u(8552),pr=u(7032);const fr="types";function hr(e,t){const r=vr(e),n=e.get(fr),o=t.get(r);return n.find(e=>e.get("name")===o)}function vr(e){return e.get("typeKey","type")}var gr=u(5270),mr=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),yr=Math.abs,br=String.fromCharCode,xr=Object.assign;function wr(e){return e.trim()}function Cr(e,t,r){return e.replace(t,r)}function Sr(e,t){return e.indexOf(t)}function Er(e,t){return 0|e.charCodeAt(t)}function Rr(e,t,r){return e.slice(t,r)}function _r(e){return e.length}function Dr(e){return e.length}function kr(e,t){return t.push(e),e}var Or=1,Tr=1,Ar=0,Ir=0,jr=0,Mr="";function Nr(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Or,column:Tr,length:a,return:""}}function Lr(e,t){return xr(Nr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pr(){return jr=Ir>0?Er(Mr,--Ir):0,Tr--,10===jr&&(Tr=1,Or--),jr}function $r(){return jr=Ir<Ar?Er(Mr,Ir++):0,Tr++,10===jr&&(Tr=1,Or++),jr}function Fr(){return Er(Mr,Ir)}function zr(){return Ir}function Br(e,t){return Rr(Mr,e,t)}function qr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ur(e){return Or=Tr=1,Ar=_r(Mr=e),Ir=0,[]}function Wr(e){return Mr="",e}function Vr(e){return wr(Br(Ir-1,Xr(91===e?e+2:40===e?e+1:e)))}function Hr(e){for(;(jr=Fr())&&jr<33;)$r();return qr(e)>2||qr(jr)>3?"":" "}function Kr(e,t){for(;--t&&$r()&&!(jr<48||jr>102||jr>57&&jr<65||jr>70&&jr<97););return Br(e,zr()+(t<6&&32==Fr()&&32==$r()))}function Xr(e){for(;$r();)switch(jr){case e:return Ir;case 34:case 39:34!==e&&39!==e&&Xr(jr);break;case 40:41===e&&Xr(e);break;case 92:$r()}return Ir}function Yr(e,t){for(;$r()&&e+jr!==57&&(e+jr!==84||47!==Fr()););return"/*"+Br(t,Ir-1)+"*"+br(47===e?e:$r())}function Gr(e){for(;!qr(Fr());)$r();return Br(e,Ir)}var Jr="-ms-",Zr="-moz-",Qr="-webkit-",en="comm",tn="rule",rn="decl",nn="@keyframes";function on(e,t){for(var r="",n=Dr(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function an(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case rn:return e.return=e.return||e.value;case en:return"";case nn:return e.return=e.value+"{"+on(e.children,n)+"}";case tn:e.value=e.props.join(",")}return _r(r=on(e.children,n))?e.return=e.value+"{"+r+"}":""}function sn(e){return Wr(ln("",null,null,null,[""],e=Ur(e),0,[0],e))}function ln(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,v=1,g=1,m=1,y=0,b="",x=o,w=i,C=n,S=b;g;)switch(h=y,y=$r()){case 40:if(108!=h&&58==Er(S,d-1)){-1!=Sr(S+=Cr(Vr(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:S+=Vr(y);break;case 9:case 10:case 13:case 32:S+=Hr(h);break;case 92:S+=Kr(zr()-1,7);continue;case 47:switch(Fr()){case 42:case 47:kr(un(Yr($r(),zr()),t,r),l);break;default:S+="/"}break;case 123*v:s[c++]=_r(S)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==m&&(S=Cr(S,/\f/g,"")),f>0&&_r(S)-d&&kr(f>32?dn(S+";",n,r,d-1):dn(Cr(S," ","")+";",n,r,d-2),l);break;case 59:S+=";";default:if(kr(C=cn(S,t,r,c,u,o,s,b,x=[],w=[],d),i),123===y)if(0===u)ln(S,t,C,C,x,i,d,s,w);else switch(99===p&&110===Er(S,3)?100:p){case 100:case 108:case 109:case 115:ln(e,C,C,n&&kr(cn(e,C,C,0,0,o,s,b,o,x=[],d),w),o,w,d,s,n?x:w);break;default:ln(S,C,C,C,[""],w,0,s,w)}}c=u=f=0,v=m=1,b=S="",d=a;break;case 58:d=1+_r(S),f=h;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==Pr())continue;switch(S+=br(y),y*v){case 38:m=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(_r(S)-1)*m,m=1;break;case 64:45===Fr()&&(S+=Vr($r())),p=Fr(),u=d=_r(b=S+=Gr(zr())),y++;break;case 45:45===h&&2==_r(S)&&(v=0)}}return i}function cn(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Dr(p),h=0,v=0,g=0;h<n;++h)for(var m=0,y=Rr(e,d+1,d=yr(v=a[h])),b=e;m<f;++m)(b=wr(v>0?p[m]+" "+y:Cr(y,/&\f/g,p[m])))&&(l[g++]=b);return Nr(e,t,r,0===o?tn:s,l,c,u)}function un(e,t,r){return Nr(e,t,r,en,br(jr),Rr(e,2,-2),0)}function dn(e,t,r,n){return Nr(e,t,r,rn,Rr(e,0,n),Rr(e,n+1,-1),n)}var pn=function(e,t,r){for(var n=0,o=0;n=o,o=Fr(),38===n&&12===o&&(t[r]=1),!qr(o);)$r();return Br(e,Ir)},fn=new WeakMap,hn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fn.get(r))&&!n){fn.set(e,!0);for(var o=[],i=function(e,t){return Wr(function(e,t){var r=-1,n=44;do{switch(qr(n)){case 0:38===n&&12===Fr()&&(t[r]=1),e[r]+=pn(Ir-1,t,r);break;case 2:e[r]+=Vr(n);break;case 4:if(44===n){e[++r]=58===Fr()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=br(n)}}while(n=$r());return e}(Ur(e),t))}(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},vn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gn(e,t){switch(function(e,t){return 45^Er(e,0)?(((t<<2^Er(e,0))<<2^Er(e,1))<<2^Er(e,2))<<2^Er(e,3):0}(e,t)){case 5103:return Qr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qr+e+Zr+e+Jr+e+e;case 6828:case 4268:return Qr+e+Jr+e+e;case 6165:return Qr+e+Jr+"flex-"+e+e;case 5187:return Qr+e+Cr(e,/(\w+).+(:[^]+)/,Qr+"box-$1$2"+Jr+"flex-$1$2")+e;case 5443:return Qr+e+Jr+"flex-item-"+Cr(e,/flex-|-self/,"")+e;case 4675:return Qr+e+Jr+"flex-line-pack"+Cr(e,/align-content|flex-|-self/,"")+e;case 5548:return Qr+e+Jr+Cr(e,"shrink","negative")+e;case 5292:return Qr+e+Jr+Cr(e,"basis","preferred-size")+e;case 6060:return Qr+"box-"+Cr(e,"-grow","")+Qr+e+Jr+Cr(e,"grow","positive")+e;case 4554:return Qr+Cr(e,/([^-])(transform)/g,"$1"+Qr+"$2")+e;case 6187:return Cr(Cr(Cr(e,/(zoom-|grab)/,Qr+"$1"),/(image-set)/,Qr+"$1"),e,"")+e;case 5495:case 3959:return Cr(e,/(image-set\([^]*)/,Qr+"$1$`$1");case 4968:return Cr(Cr(e,/(.+:)(flex-)?(.*)/,Qr+"box-pack:$3"+Jr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qr+e+e;case 4095:case 3583:case 4068:case 2532:return Cr(e,/(.+)-inline(.+)/,Qr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_r(e)-1-t>6)switch(Er(e,t+1)){case 109:if(45!==Er(e,t+4))break;case 102:return Cr(e,/(.+:)(.+)-([^]+)/,"$1"+Qr+"$2-$3$1"+Zr+(108==Er(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Sr(e,"stretch")?gn(Cr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Er(e,t+1))break;case 6444:switch(Er(e,_r(e)-3-(~Sr(e,"!important")&&10))){case 107:return Cr(e,":",":"+Qr)+e;case 101:return Cr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qr+(45===Er(e,14)?"inline-":"")+"box$3$1"+Qr+"$2$3$1"+Jr+"$2box$3")+e}break;case 5936:switch(Er(e,t+11)){case 114:return Qr+e+Jr+Cr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qr+e+Jr+Cr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qr+e+Jr+Cr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qr+e+Jr+e+e}return e}var mn=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rn:e.return=gn(e.value,e.length);break;case nn:return on([Lr(e,{value:Cr(e.value,"@","@"+Qr)})],n);case tn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return on([Lr(e,{props:[Cr(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return on([Lr(e,{props:[Cr(t,/:(plac\w+)/,":"+Qr+"input-$1")]}),Lr(e,{props:[Cr(t,/:(plac\w+)/,":-moz-$1")]}),Lr(e,{props:[Cr(t,/:(plac\w+)/,Jr+"input-$1")]})],n)}return""})}}],yn=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||mn,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u,d,p=[an,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[hn,vn].concat(i,p),u=Dr(c),function(e,t,r,n){for(var o="",i=0;i<u;i++)o+=c[i](e,t,r,n)||"";return o});o=function(e,t,r,n){l=r,function(e){on(sn(e),f)}(e?e+"{"+t.styles+"}":t.styles),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new mr({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},bn=y.createContext("undefined"!=typeof HTMLElement?yn({key:"css"}):null),xn=(bn.Provider,function(e){return(0,y.forwardRef)(function(t,r){var n=(0,y.useContext)(bn);return e(t,n,r)})}),wn=y.createContext({}),Cn={}.hasOwnProperty,Sn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",En=function(e,t){var r={};for(var n in t)Cn.call(t,n)&&(r[n]=t[n]);return r[Sn]=e,r},Rn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return S(t,r,n),w(function(){return E(t,r,n)}),null},_n=xn(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[Sn],i=[n],a="";"string"==typeof e.className?a=C(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=m(i,void 0,y.useContext(wn));a+=t.key+"-"+s.name;var l={};for(var c in e)Cn.call(e,c)&&"css"!==c&&c!==Sn&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),y.createElement(y.Fragment,null,y.createElement(Rn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))}),Dn=(u(4674),gr.Fragment,function(e,t,r){return Cn.call(t,"css")?gr.jsx(_n,En(e,t),r):gr.jsx(e,t,r)}),kn=function(e,t,r){return Cn.call(t,"css")?gr.jsxs(_n,En(e,t),r):gr.jsxs(e,t,r)};const On=t().controlComponent,Tn=A("div",{target:"e11zrb3c2",label:"ListItem"})(""),An=A(dr.ListItemTopBar,{target:"e11zrb3c1",label:"StyledListItemTopBar"})("background-color:",dr.colors.textFieldBorder,";"),In=A("div",{target:"e11zrb3c0",label:"NestedObjectLabel"})("display:",e=>e.collapsed?"block":"none",";border-top:0;color:",e=>e.error?dr.colors.errorText:"inherit",";background-color:",dr.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",dr.lengths.borderRadius," ",dr.lengths.borderRadius,";"),jn=`\n padding: ${dr.lengths.objectWidgetTopBarContainerPadding};\n `,Mn={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1gjco9g-listControlItemCollapsed",styles:"padding-bottom:0;label:listControlItemCollapsed;"}};function Nn({items:e,children:t,onSortEnd:r,keys:n}){const o={distance:4},i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,y.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(Se(gt,{activationConstraint:o}),Se(yt,{activationConstraint:o}));return Dn("div",{children:Dn(Ht,{modifiers:[ur],collisionDetection:Oe,sensors:i,onDragEnd:function({active:e,over:t}){r({oldIndex:n.indexOf(e.id),newIndex:n.indexOf(t.id)})},children:Dn(rr,{items:e,children:t})})})}function Ln(e){const{setNodeRef:t,transform:r,transition:n}=cr({id:e.id}),o={transform:de.Transform.toString(r),transition:n},{collapsed:i}=e;return Dn(Tn,{sortable:!0,ref:t,style:o,css:[Mn.listControlItem,i&&Mn.listControlItemCollapsed,";label:SortableListItem;"],children:e.children})}function Pn({children:e,id:t}){const{attributes:r,listeners:n}=cr({id:t});return Dn("div",{...r,...n,children:e})}const $n="SINGLE",Fn="MULTIPLE",zn="MIXED";function Bn(e,t,r,n){const o=pr.stringTemplate.addFileTemplateFields(t.get("path"),n.set("fields.label",r));return pr.stringTemplate.compileStringTemplate(e,null,"",o)}function qn(e,t){return!!L.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function Un({field:e,isActive:t,hasErrors:r,uniqueFieldId:n,isFieldOptional:o,t:i}){const a=`${e.get("label",e.get("name"))}`;return kn(dr.FieldLabel,{isActive:t,hasErrors:r,htmlFor:n,children:[a," ",o?` (${i("editor.editorControl.field.optional")})`:""]})}class Wn extends y.Component{childRefs={};static propTypes={metadata:N().map,onChange:j().func.isRequired,onChangeObject:j().func.isRequired,onValidateObject:j().func.isRequired,validate:j().func.isRequired,value:N().list,field:j().object,forID:j().string,controlRef:j().func,mediaPaths:N().map.isRequired,getAsset:j().func.isRequired,onOpenMediaLibrary:j().func.isRequired,onAddAsset:j().func.isRequired,onRemoveInsertedMedia:j().func.isRequired,classNameWrapper:j().string.isRequired,setActiveStyle:j().func.isRequired,setInactiveStyle:j().func.isRequired,editorControl:j().elementType.isRequired,resolveWidget:j().func.isRequired,clearFieldErrors:j().func.isRequired,fieldsErrors:N().map.isRequired,entry:N().map.isRequired,t:j().func};static defaultProps={value:(0,L.List)(),parentIds:[]};constructor(e){super(e);const{field:t,value:r}=e,n=t.get("collapsed",!0),o=r&&Array(r.size).fill(n)||[],i=r&&Array.from({length:r.size},()=>crypto.randomUUID())||[];this.state={listCollapsed:n,itemsCollapsed:o,value:this.valueToString(r),keys:i}}componentDidMount(){j().checkPropTypes(Wn.propTypes,this.props,"prop","ListControl")}valueToString=e=>{let t;return L.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")};getValueType=()=>{const{field:e}=this.props;return e.get("fields")?Fn:e.get("field")?$n:e.get(fr)?zn:null};uniqueFieldId=q()(`${this.props.field.get("name")}-field-`);shouldComponentUpdate(){return!0}handleChange=e=>{const{onChange:t}=this.props,r=this.state.value,n=e.target.value.trim(),o=n?n.split(","):[];n.match(/,$/)&&r.match(/, $/)&&o.pop();const i=this.valueToString(o);this.setState({value:i}),t((0,L.List)(o.map(e=>e.trim())))};handleFocus=()=>{this.props.setActiveStyle()};handleBlur=e=>{const t=e.target.value.split(",").map(e=>e.trim()).filter(e=>e);this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()};handleAdd=e=>{e.preventDefault();const{field:t}=this.props,r=this.getValueType()===$n?this.singleDefault():(0,L.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(r)};singleDefault=()=>this.props.field.getIn(["field","default"],null);multipleDefault=e=>this.getFieldsDefault(e);handleAddType=(e,t)=>{const r=(0,L.fromJS)(this.mixedDefault(t,e));this.addItem(r)};mixedDefault=(e,t)=>{const r=this.props.field.get(fr).find(e=>e.get("name")===t),n=r.get("fields")||[r.get("field")];return this.getFieldsDefault(n,{[e]:t})};getFieldsDefault=(e,t={})=>e.reduce((e,t)=>{const r=t.get("field")||t.get("fields"),n="object"==t.get("widget"),o=t.get("name"),i=t.get("default",null);if(L.List.isList(r)&&n){const t=this.getFieldsDefault(r);return!z()(t)&&(e[o]=t),e}if(L.Map.isMap(r)&&n){const t=this.getFieldsDefault([r]);return!z()(t)&&(e[o]=t),e}return null!==i&&(e[o]=i),e},t);addItem=e=>{const{value:t,onChange:r,field:n}=this.props,o=n.get("add_to_top",!1),i=crypto.randomUUID();this.setState({itemsCollapsed:o?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:o?[i,...this.state.keys]:[...this.state.keys,i]});const a=t||(0,L.List)();r(o?a.unshift(e):a.push(e))};processControlRef=e=>{if(!e)return;const{props:{validationKey:t}}=e;this.childRefs[t]=e,this.props.controlRef?.(this)};validate=()=>{this.getValueType()&&Object.keys(this.childRefs).length>0?Object.values(this.childRefs).forEach(e=>{e?.validate?.()}):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())};validateSize=()=>{const{field:e,value:t,t:r}=this.props,n=e.get("min"),o=e.get("max");if(!e.get("required",!0)&&!t?.size)return[];const i=pr.validations.validateMinMax(r,e.get("label",e.get("name")),t,n,o);return i?[i]:[]};getObjectValue=e=>this.props.value.get(e)||(0,L.Map)();handleChangeFor(e){const t=this.state.keys[e];return(e,r,n)=>{const{value:o,metadata:i,onChange:a,field:s}=this.props,l=this.state.keys.indexOf(t);if(-1===l)return;const c=s.get("name"),u="object"===s.getIn(["field","widget"]),d=this.getValueType()!==$n||this.getValueType()===$n&&u?this.getObjectValue(l).set(e.get("name"),r):r,p={[c]:Object.assign(i?i.toJS():{},n||{})};a(o.set(l,d),p)}}handleRemove=(e,t)=>{t.preventDefault();const{itemsCollapsed:r}=this.state,{value:n,metadata:o,onChange:i,field:a,clearFieldErrors:s,onValidateObject:l,forID:c,fieldsErrors:u}=this.props,d=a.get("name"),p=this.getValueType()===$n?n.get(e):n.get(e).valueSeq(),f=o&&!o.isEmpty()?{[d]:o.removeIn(p)}:o,h=this.state.keys[e],v=[...this.state.keys];v.splice(e,1),r.splice(e,1),this.setState({itemsCollapsed:[...r],keys:v}),delete this.childRefs[h];const g=n.delete(e);u&&Object.entries(u.toJS()).forEach(([e,t])=>{t.some(e=>e.parentIds?.includes(h))&&s(e)}),0===g.size&&(s(c),l(c,[])),i(g,f)};handleItemCollapseToggle=(e,t)=>{t.preventDefault();const{itemsCollapsed:r}=this.state,n=r.map((t,r)=>e===r?!t:t);this.setState({itemsCollapsed:n})};handleCollapseAllToggle=e=>{e.preventDefault();const{value:t,field:r}=this.props,{itemsCollapsed:n,listCollapsed:o}=this.state,i=r.get("minimize_collapsed",!1),a=r.get("collapsed",!0),s=n.every(e=>!0===e);if(i){let e=n;o&&a||(e=Array(t.size).fill(!o)),this.setState({listCollapsed:!o,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})};objectLabel(e){const{field:t,entry:r}=this.props;switch(this.getValueType()){case zn:{if(!qn(t,e))return;const n=hr(t,e),o=n.get("label",n.get("name")),i=n.get("summary",t.get("summary"));return i?Bn(i,r,o,e):o}case $n:{const n=t.get("field"),o=n.get("label",n.get("name")),i=t.get("summary"),a=(0,L.fromJS)({[n.get("name")]:e});return i?Bn(i,r,o,a):o}case Fn:{if(!qn(t,e))return;const n=t.get("fields"),o=n&&n.first(),i=e.get(o.get("name")),a=t.get("summary");return((a?Bn(a,r,i,e):i)||`No ${o.get("name")}`).toString()}}return""}onSortEnd=({oldIndex:e,newIndex:t})=>{const{value:r}=this.props,{itemsCollapsed:n,keys:o}=this.state,i=r.get(e),a=r.delete(e).insert(t,i);this.props.onChange(a);const s=n[e];n.splice(e,1);const l=[...n];l.splice(t,0,s);const c=o[e],u=[...o];u.splice(e,1),u.splice(t,0,c),this.setState({itemsCollapsed:l,keys:u})};hasError=e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some(t=>t.some(t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))};focus(e){const[t,...r]=e.split(".");if(this.state.listCollapsed||this.state.itemsCollapsed[t]){const e=[...this.state.itemsCollapsed];e[t]=!1,this.setState({listCollapsed:!1,itemsCollapsed:e},()=>{const e=this.state.keys[t],n=this.childRefs[e];n?.focus&&n.focus(r.join("."))})}else{const e=this.state.keys[t],n=this.childRefs[e];n?.focus&&n.focus(r.join("."))}}renderItem=(e,t)=>{const{classNameWrapper:r,editorControl:o,onValidateObject:i,metadata:a,clearFieldErrors:s,fieldsErrors:l,controlRef:c,resolveWidget:u,parentIds:d,forID:p,t:f}=this.props,{itemsCollapsed:h,keys:v}=this.state,g=h[t],m=v[t];let y=this.props.field;const b=this.hasError(t),x=this.getValueType()===zn;return x&&(y=hr(y,e),!y)?this.renderErroneousTypedItem(t,e):kn(Ln,{css:[Mn.listControlItem,g&&Mn.listControlItemCollapsed,";label:renderItem;"],index:t,id:m,keys:v,children:[x&&Dn(Un,{field:y,isActive:!1,hasErrors:b,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===y.get("required"),t:f}),Dn(An,{collapsed:g,onCollapseToggle:$()(this.handleItemCollapseToggle,t),dragHandle:Pn,id:m,allowRemove:y.get("allow_remove",!0),allowReorder:y.get("allow_reorder",!0),onRemove:$()(this.handleRemove,t),"data-testid":`styled-list-item-top-bar-${m}`}),Dn(In,{collapsed:g,error:b,children:this.objectLabel(e)}),Dn(n.ClassNames,{children:({css:n,cx:f})=>Dn(On,{classNameWrapper:f(r,{[n`
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("decap-cms-widget-object"),require("@emotion/react"),require("react"),require("prop-types"),require("react-immutable-proptypes"),require("immutable"),require("decap-cms-ui-default"),require("decap-cms-lib-widgets")):"function"==typeof define&&define.amd?define("DecapCmsWidgetList",["decap-cms-widget-object","@emotion/react","react","prop-types","react-immutable-proptypes","immutable","decap-cms-ui-default","decap-cms-lib-widgets"],t):"object"==typeof exports?exports.DecapCmsWidgetList=t(require("decap-cms-widget-object"),require("@emotion/react"),require("react"),require("prop-types"),require("react-immutable-proptypes"),require("immutable"),require("decap-cms-ui-default"),require("decap-cms-lib-widgets")):e.DecapCmsWidgetList=t(e.DecapCmsWidgetObject,e.DecapCmsDefaultExports.EmotionCore,e.React,e.DecapCmsDefaultExports.PropTypes,e.DecapCmsDefaultExports.ImmutablePropTypes,e.DecapCmsDefaultExports.Immutable,e.DecapCmsUiDefault,e.DecapCmsLibWidgets)}(window,(e,t,r,n,o,i,a,s)=>(()=>{var l={79:(e,t,r)=>{var n=r(4047),o=r(7583),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},95:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},128:(e,t,r)=>{var n=r(8506);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},166:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},310:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},462:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},476:(e,t,r)=>{var n=r(1200);e.exports=function(e){return n(this,e).get(e)}},550:(e,t,r)=>{var n=r(5271),o=r(4583),i=r(7583),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},552:(e,t,r)=>{var n=r(9438);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},579:t=>{"use strict";t.exports=e},638:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},656:(e,t,r)=>{var n=r(4757),o=r(6695),i=r(4153),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var r=e[1],l=t[1],c=r|l,u=c<131,d=128==l&&8==r||128==l&&256==r&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==r;if(!u&&!d)return e;1&l&&(e[2]=t[2],c|=1&r?0:4);var p=t[3];if(p){var f=e[3];e[3]=f?n(f,p,t[4]):p,e[4]=f?i(e[3],a):t[4]}return(p=t[5])&&(f=e[5],e[5]=f?o(f,p,t[6]):p,e[6]=f?i(e[5],a):t[6]),(p=t[7])&&(e[7]=p),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},714:(e,t,r)=>{var n=r(1603),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},761:(e,t,r)=>{var n=r(983),o=0;e.exports=function(e){var t=++o;return n(e)+t}},809:(e,t,r)=>{var n=r(7156),o=r(3256),i=r(714);e.exports=function(e,t,r,a){var s=1&t,l=o(e);return function t(){for(var o=-1,c=arguments.length,u=-1,d=a.length,p=Array(d+c),f=this&&this!==i&&this instanceof t?l:e;++u<d;)p[u]=a[u];for(;c--;)p[u++]=arguments[++o];return n(f,s?r:this,p)}}},975:(e,t,r)=>{var n=r(5271),o=r(7583);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},983:(e,t,r)=>{var n=r(8071);e.exports=function(e){return null==e?"":n(e)}},984:(e,t,r)=>{var n=r(1200);e.exports=function(e){return n(this,e).has(e)}},1022:(e,t,r)=>{var n=r(6821),o=r(7221),i=r(1596),a=r(1992),s=r(552);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},1095:(e,t,r)=>{var n=r(9400),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},1200:(e,t,r)=>{var n=r(95);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1400:e=>{e.exports={}},1596:(e,t,r)=>{var n=r(9438);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},1603:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},1683:(e,t,r)=>{var n=r(9169),o=r(3821),i=o?function(e,t){return o.set(e,t),e}:n;e.exports=i},1824:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},1908:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},1992:(e,t,r)=>{var n=r(9438);e.exports=function(e){return n(this.__data__,e)>-1}},2046:(e,t,r)=>{var n=r(5351),o=r(9778),i=r(79),a=r(5874),s=r(3069),l=r(3601),c=r(7894),u=r(9046),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},2176:(e,t,r)=>{var n=r(3821),o=r(3883),i=n?function(e){return n.get(e)}:o;e.exports=i},2275:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},2325:(e,t,r)=>{var n=r(8546)(Object.keys,Object);e.exports=n},2405:(e,t,r)=>{var n=r(8637);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},2468:(e,t,r)=>{"use strict";var n=r(4119);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=Symbol.for("react.portal");n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.unstable_batchedUpdates=function(e,t){return e(t)}},2522:e=>{"use strict";e.exports=i},2532:(e,t,r)=>{var n=r(3493),o=r(2176),i=r(8581),a=r(8973);e.exports=function(e){var t=i(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=o(r);return!!s&&e===s[0]}},2750:e=>{e.exports=function(){}},2972:(e,t,r)=>{var n=r(2532),o=r(4676),i=r(2992);e.exports=function(e,t,r,a,s,l,c,u,d,p){var f=8&t;t|=f?32:64,4&(t&=~(f?64:32))||(t&=-4);var h=[e,t,s,f?l:void 0,f?c:void 0,f?void 0:l,f?void 0:c,u,d,p],v=r.apply(void 0,h);return n(e)&&o(v,h),v.placeholder=a,i(v,e,t)}},2992:(e,t,r)=>{var n=r(8136),o=r(5585),i=r(3232),a=r(9893);e.exports=function(e,t,r){var s=t+"";return i(e,o(s,a(n(s),r)))}},3069:(e,t,r)=>{var n=r(7787),o=r(4583);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3232:(e,t,r)=>{var n=r(3431),o=r(1824)(n);e.exports=o},3256:(e,t,r)=>{var n=r(1095),o=r(9400);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),i=e.apply(r,t);return o(i)?i:r}}},3378:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(2468)},3431:(e,t,r)=>{var n=r(8295),o=r(4856),i=r(9169),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},3493:(e,t,r)=>{var n=r(1095),o=r(2750);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},3510:e=>{e.exports=function(e){return e.placeholder}},3601:(e,t,r)=>{e=r.nmd(e);var n=r(714),o=r(6408),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3758:(e,t,r)=>{var n=r(8265);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},3784:(e,t,r)=>{var n=r(8637),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},3821:(e,t,r)=>{var n=r(8154),o=n&&new n;e.exports=o},3883:e=>{e.exports=function(){}},4047:(e,t,r)=>{var n=r(5271),o=r(7583);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},4069:(e,t,r)=>{var n=r(6766),o=r(1022),i=r(5870);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},4119:e=>{"use strict";e.exports=r},4136:(e,t,r)=>{var n=r(1200);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4153:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var s=e[n];s!==r&&s!==t||(e[n]=t,a[i++]=n)}return a}},4228:(e,t,r)=>{var n=r(7787),o=r(7827),i=r(9400),a=r(462),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},4583:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4665:(e,t,r)=>{var n=r(4671)(r(714),"Promise");e.exports=n},4671:(e,t,r)=>{var n=r(4228),o=r(7559);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},4674:(e,t,r)=>{"use strict";var n=r(7020),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},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),v=l(r),g=0;g<a.length;++g){var m=a[g];if(!(i[m]||n&&n[m]||v&&v[m]||s&&s[m])){var y=p(r,m);try{c(t,m,y)}catch(e){}}}}return t}},4676:(e,t,r)=>{var n=r(1683),o=r(1824)(n);e.exports=o},4757:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=r.length,u=t(a-s,0),d=Array(c+u),p=!o;++l<c;)d[l]=r[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}},4822:(e,t,r)=>{var n=r(3493),o=r(8820),i=r(310);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},4856:(e,t,r)=>{var n=r(4671),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},4997:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},5097:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5103:(e,t,r)=>{var n=r(4997),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},5270:(e,t,r)=>{"use strict";e.exports=r(5460)},5271:(e,t,r)=>{var n=r(9006),o=r(9650),i=r(6881),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},5351:(e,t,r)=>{var n=r(7894),o=r(2325),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},5360:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case v:case l:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===m)},t.typeOf=w},5390:(e,t,r)=>{var n=r(7156),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=r(l),n(e,this,c)}}},5460:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in n={},t)"key"!==i&&(n[i]=t[i]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:o,ref:void 0!==t?t:null,props:n}}t.Fragment=n,t.jsx=o,t.jsxs=o},5585:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var o=n-1;return r[o]=(n>1?"& ":"")+r[o],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},5639:(e,t,r)=>{var n=r(7156),o=r(3256),i=r(7524),a=r(2972),s=r(3510),l=r(4153),c=r(714);e.exports=function(e,t,r){var u=o(e);return function o(){for(var d=arguments.length,p=Array(d),f=d,h=s(o);f--;)p[f]=arguments[f];var v=d<3&&p[0]!==h&&p[d-1]!==h?[]:l(p,h);return(d-=v.length)<r?a(e,t,i,o.placeholder,void 0,p,v,void 0,void 0,r-d):n(this&&this!==c&&this instanceof o?u:e,this,p)}}},5733:(e,t,r)=>{var n=r(3256),o=r(714);e.exports=function(e,t,r){var i=1&t,a=n(e);return function t(){return(this&&this!==o&&this instanceof t?a:e).apply(i?r:this,arguments)}}},5870:(e,t,r)=>{var n=r(4671)(r(714),"Map");e.exports=n},5874:e=>{var t=Array.isArray;e.exports=t},6171:(e,t,r)=>{var n=r(4671)(r(714),"DataView");e.exports=n},6172:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},6264:(e,t,r)=>{var n=r(8637);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},6270:(e,t,r)=>{var n=r(6965),o=r(9298),i=r(3510),a=r(4153),s=n(function(e,t){var r=a(t,i(s));return o(e,32,void 0,t,r)});s.placeholder={},e.exports=s},6408:e=>{e.exports=function(){return!1}},6450:(e,t,r)=>{var n=r(714)["__core-js_shared__"];e.exports=n},6574:(e,t,r)=>{e=r.nmd(e);var n=r(1603),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6619:(e,t,r)=>{var n=r(310),o=r(1908),i=Math.min;e.exports=function(e,t){for(var r=e.length,a=i(t.length,r),s=n(e);a--;){var l=t[a];e[a]=o(l,r)?s[l]:void 0}return e}},6695:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=r.length,d=t(a-l,0),p=Array(d+u),f=!o;++i<d;)p[i]=e[i];for(var h=i;++c<u;)p[h+c]=r[c];for(;++s<l;)(f||i<a)&&(p[h+n[s]]=e[i++]);return p}},6766:(e,t,r)=>{var n=r(2405),o=r(8341),i=r(9644),a=r(3784),s=r(6264);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},6821:e=>{e.exports=function(){this.__data__=[],this.size=0}},6881:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6965:(e,t,r)=>{var n=r(9169),o=r(5390),i=r(3232);e.exports=function(e,t){return i(o(e,t,n),e+"")}},7012:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},7020:(e,t,r)=>{"use strict";e.exports=r(5360)},7032:e=>{"use strict";e.exports=s},7156:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},7221:(e,t,r)=>{var n=r(9438),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},7434:e=>{"use strict";e.exports=n},7477:(e,t,r)=>{var n=r(1200);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},7524:(e,t,r)=>{var n=r(4757),o=r(6695),i=r(6172),a=r(3256),s=r(2972),l=r(3510),c=r(6619),u=r(4153),d=r(714);e.exports=function e(t,r,p,f,h,v,g,m,y,b){var x=128&r,w=1&r,C=2&r,_=24&r,S=512&r,E=C?void 0:a(t);return function R(){for(var D=arguments.length,k=Array(D),O=D;O--;)k[O]=arguments[O];if(_)var T=l(R),A=i(k,T);if(f&&(k=n(k,f,h,_)),v&&(k=o(k,v,g,_)),D-=A,_&&D<b){var I=u(k,T);return s(t,r,e,R.placeholder,p,k,I,m,y,b-D)}var j=w?p:this,M=C?j[t]:t;return D=k.length,m?k=c(k,m):S&&D>1&&k.reverse(),x&&y<D&&(k.length=y),this&&this!==d&&this instanceof R&&(M=E||a(M)),M.apply(j,k)}}},7559:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7583:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7639:(e,t,r)=>{var n=r(5103),o=r(9400),i=r(975),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},7787:(e,t,r)=>{var n=r(5271),o=r(9400);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},7827:(e,t,r)=>{var n,o=r(6450),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},7894:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},8071:(e,t,r)=>{var n=r(9006),o=r(2275),i=r(5874),a=r(975),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},8110:e=>{"use strict";e.exports=t},8136:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},8154:(e,t,r)=>{var n=r(4671)(r(714),"WeakMap");e.exports=n},8232:e=>{e.exports=function(e){return function(t){return e(t)}}},8265:(e,t,r)=>{var n=r(7639),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8295:e=>{e.exports=function(e){return function(){return e}}},8306:e=>{e.exports=function(e){return e!=e}},8341:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8487:(e,t,r)=>{var n=r(8910);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},8506:(e,t,r)=>{var n=r(166),o=r(8306),i=r(638);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},8546:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8552:e=>{"use strict";e.exports=a},8581:(e,t,r)=>{var n=r(1400),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],i=o.call(n,t)?r.length:0;i--;){var a=r[i],s=a.func;if(null==s||s==e)return a.name}return t}},8630:e=>{"use strict";e.exports=o},8637:(e,t,r)=>{var n=r(4671)(Object,"create");e.exports=n},8820:(e,t,r)=>{var n=r(1095),o=r(2750);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(o.prototype),i.prototype.constructor=i,e.exports=i},8910:(e,t,r)=>{var n=r(4069),o=r(7477),i=r(476),a=r(984),s=r(4136);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8973:(e,t,r)=>{var n=r(3493),o=r(8820),i=r(2750),a=r(5874),s=r(7583),l=r(4822),c=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof n)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return l(e)}return new o(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},9006:(e,t,r)=>{var n=r(714).Symbol;e.exports=n},9046:(e,t,r)=>{var n=r(550),o=r(8232),i=r(6574),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},9169:e=>{e.exports=function(e){return e}},9298:(e,t,r)=>{var n=r(1683),o=r(5733),i=r(5639),a=r(7524),s=r(809),l=r(2176),c=r(656),u=r(4676),d=r(2992),p=r(3758),f=Math.max;e.exports=function(e,t,r,h,v,g,m,y){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var x=h?h.length:0;if(x||(t&=-97,h=v=void 0),m=void 0===m?m:f(p(m),0),y=void 0===y?y:p(y),x-=v?v.length:0,64&t){var w=h,C=v;h=v=void 0}var _=b?void 0:l(e),S=[e,t,r,h,v,w,C,g,m,y];if(_&&c(S,_),e=S[0],t=S[1],r=S[2],h=S[3],v=S[4],!(y=S[9]=void 0===S[9]?b?0:e.length:f(S[9]-x,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?i(e,t,y):32!=t&&33!=t||v.length?a.apply(void 0,S):s(e,t,r,h);else var E=o(e,t,r);return d((_?n:u)(E,S),e,t)}},9400:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9438:(e,t,r)=>{var n=r(5097);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},9612:(e,t,r)=>{var n=r(4671)(r(714),"Set");e.exports=n},9644:(e,t,r)=>{var n=r(8637),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},9650:(e,t,r)=>{var n=r(9006),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9778:(e,t,r)=>{var n=r(6171),o=r(5870),i=r(4665),a=r(9612),s=r(8154),l=r(5271),c=r(462),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",v=c(n),g=c(o),m=c(i),y=c(a),b=c(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=u||i&&x(i.resolve())!=d||a&&x(new a)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return h;case g:return u;case m:return d;case y:return p;case b:return f}return t}),e.exports=x},9893:(e,t,r)=>{var n=r(7012),o=r(128),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(i,function(r){var n="_."+r[0];t&r[1]&&!o(e,n)&&e.push(n)}),e.sort()}}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return l[e](r,r.exports,u),r.loaded=!0,r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var d={};return(()=>{"use strict";u.d(d,{DecapCmsWidgetList:()=>Yn});var e=u(579),t=u.n(e);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(null,arguments)}var n=u(8110),o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function i(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},p=i(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return v={name:t,styles:r,next:v},t})}return 1===o[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return v={name:o.name,styles:o.styles,next:v},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)v={name:a.name,styles:a.styles,next:v},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=h(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":c(s)&&(n+=p(i)+":"+f(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=h(e,t,a);switch(i){case"animation":case"animationName":n+=p(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(n+=p(i)+":"+f(i,a[u])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=v,l=r(e);return v=s,h(e,t,l)}}var u=r;if(null==t)return u;var d=t[u];return void 0!==d?d:u}var v,g=/label:\s*([^\s;{]+)\s*(;|$)/g;function m(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";v=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=h(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=h(r,t,e[a]),n&&(o+=i[a]);g.lastIndex=0;for(var s,l="";null!==(s=g.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:v}}var y=u(4119),b=u.n(y),x=!!y.useInsertionEffect&&y.useInsertionEffect,w=x||function(e){return e()};function C(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}x||y.useLayoutEffect;var _=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},S=function(e,t,r){_(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},E=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,R=i(function(e){return E.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),D=function(e){return"theme"!==e},k=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?R:D},O=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},T=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _(t,r,n),w(function(){return S(t,r,n)}),null},A=function e(t,o){var i,a,s=t.__emotion_real===t,l=s&&t.__emotion_base||t;void 0!==o&&(i=o.label,a=o.target);var c=O(t,o,s),u=c||k(l),d=!u("as");return function(){var p=arguments,f=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&f.push("label:"+i+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{var h=p[0];f.push(h[0]);for(var v=p.length,g=1;g<v;g++)f.push(p[g],h[g])}var b=(0,n.withEmotionCache)(function(e,t,r){var o=d&&e.as||l,i="",s=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(n.ThemeContext)}"string"==typeof e.className?i=C(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var v=m(f.concat(s),t.registered,p);i+=t.key+"-"+v.name,void 0!==a&&(i+=" "+a);var g=d&&void 0===c?k(o):u,b={};for(var x in e)d&&"as"===x||g(x)&&(b[x]=e[x]);return b.className=i,r&&(b.ref=r),y.createElement(y.Fragment,null,y.createElement(T,{cache:t,serialized:v,isStringTag:"string"==typeof o}),y.createElement(o,b))});return b.displayName=void 0!==i?i:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=l,b.__emotion_styles=f,b.__emotion_forwardProp=c,Object.defineProperty(b,"toString",{value:function(){return"."+a}}),b.withComponent=function(t,n){return e(t,r({},o,n,{shouldForwardProp:O(b,n,!0)})).apply(void 0,f)},b}},I=u(7434),j=u.n(I),M=u(8630),N=u.n(M),L=u(2522),P=u(6270),$=u.n(P),z=u(2046),F=u.n(z),B=u(8487),q=u.n(B),U=u(761),W=u.n(U),V=u(3378);const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function K(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function X(e){return"nodeType"in e}function Y(e){var t,r;return e?K(e)?e:X(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function G(e){const{Document:t}=Y(e);return e instanceof t}function J(e){return!K(e)&&e instanceof Y(e).HTMLElement}function Z(e){return e instanceof Y(e).SVGElement}function Q(e){return e?K(e)?e.document:X(e)?G(e)?e:J(e)||Z(e)?e.ownerDocument:document:document:document}const ee=H?y.useLayoutEffect:y.useEffect;function te(e){const t=(0,y.useRef)(e);return ee(()=>{t.current=e}),(0,y.useCallback)(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function re(e,t){void 0===t&&(t=[e]);const r=(0,y.useRef)(e);return ee(()=>{r.current!==e&&(r.current=e)},t),r}function ne(e,t){const r=(0,y.useRef)();return(0,y.useMemo)(()=>{const t=e(r.current);return r.current=t,t},[...t])}function oe(e){const t=te(e),r=(0,y.useRef)(null),n=(0,y.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,n]}function ie(e){const t=(0,y.useRef)();return(0,y.useEffect)(()=>{t.current=e},[e]),t.current}let ae={};function se(e,t){return(0,y.useMemo)(()=>{if(t)return t;const r=null==ae[e]?0:ae[e]+1;return ae[e]=r,e+"-"+r},[e,t])}function le(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.reduce((t,r)=>{const n=Object.entries(r);for(const[r,o]of n){const n=t[r];null!=n&&(t[r]=n+e*o)}return t},{...t})}}const ce=le(1),ue=le(-1);function de(e){if(!e)return!1;const{KeyboardEvent:t}=Y(e.target);return t&&e instanceof t}function pe(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Y(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const fe=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[fe.Translate.toString(e),fe.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),he="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ve(e){return e.matches(he)?e:e.querySelector(he)}const ge={display:"none"};function me(e){let{id:t,value:r}=e;return b().createElement("div",{id:t,style:ge},r)}function ye(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return b().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}const be=(0,y.createContext)(null),xe={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},we={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Ce(e){let{announcements:t=we,container:r,hiddenTextDescribedById:n,screenReaderInstructions:o=xe}=e;const{announce:i,announcement:a}=function(){const[e,t]=(0,y.useState)("");return{announce:(0,y.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),s=se("DndLiveRegion"),[l,c]=(0,y.useState)(!1);if((0,y.useEffect)(()=>{c(!0)},[]),function(e){const t=(0,y.useContext)(be);(0,y.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,y.useMemo)(()=>({onDragStart(e){let{active:r}=e;i(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&i(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;i(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;i(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;i(t.onDragCancel({active:r,over:n}))}}),[i,t])),!l)return null;const u=b().createElement(b().Fragment,null,b().createElement(me,{id:n,value:o.draggable}),b().createElement(ye,{id:s,announcement:a}));return r?(0,V.createPortal)(u,r):u}var _e;function Se(){}function Ee(e,t){return(0,y.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(_e||(_e={}));const Re=Object.freeze({x:0,y:0});function De(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ke(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function Oe(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function Te(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}const Ae=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=Te(t,t.left,t.top),i=[];for(const e of n){const{id:t}=e,n=r.get(t);if(n){const r=De(Te(n),o);i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort(ke)};function Ie(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){const r=t.width*t.height,n=e.width*e.height,o=a*s;return Number((o/(r+n-o)).toFixed(4))}return 0}const je=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const o=[];for(const e of n){const{id:n}=e,i=r.get(n);if(i){const r=Ie(i,t);r>0&&o.push({id:n,data:{droppableContainer:e,value:r}})}}return o.sort(Oe)};function Me(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Re}function Ne(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}const Le=Ne(1);const Pe={ignoreTransform:!1};function $e(e,t){void 0===t&&(t=Pe);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=Y(e).getComputedStyle(e);t&&(r=function(e,t,r){const n=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;const{scaleX:o,scaleY:i,x:a,y:s}=n,l=e.left-a-(1-o)*parseFloat(r),c=e.top-s-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(r,t,n))}const{top:n,left:o,width:i,height:a,bottom:s,right:l}=r;return{top:n,left:o,width:i,height:a,bottom:s,right:l}}function ze(e){return $e(e,{ignoreTransform:!0})}function Fe(e,t){const r=[];return e?function n(o){if(null!=t&&r.length>=t)return r;if(!o)return r;if(G(o)&&null!=o.scrollingElement&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!J(o)||Z(o))return r;if(r.includes(o))return r;const i=Y(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=Y(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(o,i)&&r.push(o),function(e,t){return void 0===t&&(t=Y(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?r:n(o.parentNode)}(e):r}function Be(e){const[t]=Fe(e,1);return null!=t?t:null}function qe(e){return H&&e?K(e)?e:X(e)?G(e)||e===Q(e).scrollingElement?window:J(e)?e:null:null:null}function Ue(e){return K(e)?e.scrollX:e.scrollLeft}function We(e){return K(e)?e.scrollY:e.scrollTop}function Ve(e){return{x:Ue(e),y:We(e)}}var He;function Ke(e){return!(!H||!e)&&e===document.scrollingElement}function Xe(e){const t={x:0,y:0},r=Ke(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(He||(He={}));const Ye={x:.2,y:.2};function Ge(e,t,r,n,o){let{top:i,left:a,right:s,bottom:l}=r;void 0===n&&(n=10),void 0===o&&(o=Ye);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=Xe(e),f={x:0,y:0},h={x:0,y:0},v=t.height*o.y,g=t.width*o.x;return!c&&i<=t.top+v?(f.y=He.Backward,h.y=n*Math.abs((t.top+v-i)/v)):!u&&l>=t.bottom-v&&(f.y=He.Forward,h.y=n*Math.abs((t.bottom-v-l)/v)),!p&&s>=t.right-g?(f.x=He.Forward,h.x=n*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(f.x=He.Backward,h.x=n*Math.abs((t.left+g-a)/g)),{direction:f,speed:h}}function Je(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:r,right:n,bottom:o}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Ze(e){return e.reduce((e,t)=>ce(e,Ve(t)),Re)}const Qe=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Ue(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+We(t),0)}]];class et{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Fe(t),n=Ze(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Qe)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(r),a=n[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class tt{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function rt(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}var nt,ot,it;function at(e){e.preventDefault()}function st(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(nt||(nt={})),(it=ot||(ot={})).Space="Space",it.Down="ArrowDown",it.Right="ArrowRight",it.Left="ArrowLeft",it.Up="ArrowUp",it.Esc="Escape",it.Enter="Enter",it.Tab="Tab";const lt={start:[ot.Space,ot.Enter],cancel:[ot.Esc],end:[ot.Space,ot.Enter,ot.Tab]},ct=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case ot.Right:return{...r,x:r.x+25};case ot.Left:return{...r,x:r.x-25};case ot.Down:return{...r,y:r.y+25};case ot.Up:return{...r,y:r.y-25}}};class ut{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new tt(Q(t)),this.windowListeners=new tt(Y(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(nt.Resize,this.handleCancel),this.windowListeners.add(nt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(nt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=$e),!e)return;const{top:r,left:n,bottom:o,right:i}=t(e);Be(e)&&(o<=0||i<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(Re)}handleKeyDown(e){if(de(e)){const{active:t,context:r,options:n}=this.props,{keyboardCodes:o=lt,coordinateGetter:i=ct,scrollBehavior:a="smooth"}=n,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=r.current,c=l?{x:l.left,y:l.top}:Re;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:r.current,currentCoordinates:c});if(u){const t=ue(u,c),n={x:0,y:0},{scrollableAncestors:o}=r.current;for(const r of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:p}=Xe(r),f=Je(r),h={x:Math.min(o===ot.Right?f.right-f.width/2:f.right,Math.max(o===ot.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(o===ot.Down?f.bottom-f.height/2:f.bottom,Math.max(o===ot.Down?f.top:f.top+f.height/2,u.y))},v=o===ot.Right&&!s||o===ot.Left&&!l,g=o===ot.Down&&!c||o===ot.Up&&!i;if(v&&h.x!==u.x){const e=r.scrollLeft+t.x,i=o===ot.Right&&e<=d.x||o===ot.Left&&e>=p.x;if(i&&!t.y)return void r.scrollTo({left:e,behavior:a});n.x=i?r.scrollLeft-e:o===ot.Right?r.scrollLeft-d.x:r.scrollLeft-p.x,n.x&&r.scrollBy({left:-n.x,behavior:a});break}if(g&&h.y!==u.y){const e=r.scrollTop+t.y,i=o===ot.Down&&e<=d.y||o===ot.Up&&e>=p.y;if(i&&!t.x)return void r.scrollTo({top:e,behavior:a});n.y=i?r.scrollTop-e:o===ot.Down?r.scrollTop-d.y:r.scrollTop-p.y,n.y&&r.scrollBy({top:-n.y,behavior:a});break}}this.handleMove(e,ce(ue(u,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function dt(e){return Boolean(e&&"distance"in e)}function pt(e){return Boolean(e&&"delay"in e)}ut.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=lt,onActivation:o}=t,{active:i}=r;const{code:a}=e.nativeEvent;if(n.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ft{constructor(e,t,r){var n;void 0===r&&(r=function(e){const{EventTarget:t}=Y(e);return e instanceof t?e:Q(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=Q(i),this.documentListeners=new tt(this.document),this.listeners=new tt(r),this.windowListeners=new tt(Y(i)),this.initialCoordinates=null!=(n=pe(o))?n:Re,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(nt.Resize,this.handleCancel),this.windowListeners.add(nt.DragStart,at),this.windowListeners.add(nt.VisibilityChange,this.handleCancel),this.windowListeners.add(nt.ContextMenu,at),this.documentListeners.add(nt.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(pt(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(dt(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(nt.Click,st,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(nt.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:n,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!n)return;const s=null!=(t=pe(e))?t:Re,l=ue(n,s);if(!r&&a){if(dt(a)){if(null!=a.tolerance&&rt(l,a.tolerance))return this.handleCancel();if(rt(l,a.distance))return this.handleStart()}return pt(a)&&rt(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===ot.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ht={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class vt extends ft{constructor(e){const{event:t}=e,r=Q(t.target);super(e,ht,r)}}vt.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!(!r.isPrimary||0!==r.button||(null==n||n({event:r}),0))}}];const gt={move:{name:"mousemove"},end:{name:"mouseup"}};var mt;!function(e){e[e.RightClick=2]="RightClick"}(mt||(mt={}));class yt extends ft{constructor(e){super(e,gt,Q(e.event.target))}}yt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==mt.RightClick&&(null==n||n({event:r}),!0)}}];const bt={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class xt extends ft{constructor(e){super(e,bt)}static setup(){return window.addEventListener(bt.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(bt.move.name,e)};function e(){}}}var wt,Ct;xt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:o}=r;return!(o.length>1||(null==n||n({event:r}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(wt||(wt={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Ct||(Ct={}));const _t={x:{[He.Backward]:!1,[He.Forward]:!1},y:{[He.Backward]:!1,[He.Forward]:!1}};var St,Et;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(St||(St={})),function(e){e.Optimized="optimized"}(Et||(Et={}));const Rt=new Map;function Dt(e,t){return ne(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function kt(e){let{callback:t,disabled:r}=e;const n=te(t),o=(0,y.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(n)},[r]);return(0,y.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Ot(e){return new et($e(e),e)}function Tt(e,t,r){void 0===t&&(t=Ot);const[n,o]=(0,y.useState)(null);function i(){o(n=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=n?n:r)?o:null;const i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i})}const a=function(e){let{callback:t,disabled:r}=e;const n=te(t),o=(0,y.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,y.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const r of t){const{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),s=kt({callback:i});return ee(()=>{i(),e?(null==s||s.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())},[e]),n}const At=[];function It(e,t){void 0===t&&(t=[]);const r=(0,y.useRef)(null);return(0,y.useEffect)(()=>{r.current=null},t),(0,y.useEffect)(()=>{const t=e!==Re;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?ue(e,r.current):Re}function jt(e){return(0,y.useMemo)(()=>e?function(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}const Mt=[];const Nt=[{sensor:vt,options:{}},{sensor:ut,options:{}}],Lt={current:{}},Pt={draggable:{measure:ze},droppable:{measure:ze,strategy:St.WhileDragging,frequency:Et.Optimized},dragOverlay:{measure:$e}};class $t extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}const zt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new $t,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Se},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pt,measureDroppableContainers:Se,windowRect:null,measuringScheduled:!1},Ft={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Se,draggableNodes:new Map,over:null,measureDroppableContainers:Se},Bt=(0,y.createContext)(Ft),qt=(0,y.createContext)(zt);function Ut(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new $t}}}function Wt(e,t){switch(t.type){case _e.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _e.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _e.DragEnd:case _e.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _e.RegisterDroppable:{const{element:r}=t,{id:n}=r,o=new $t(e.droppable.containers);return o.set(n,r),{...e,droppable:{...e.droppable,containers:o}}}case _e.SetDroppableDisabled:{const{id:r,key:n,disabled:o}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new $t(e.droppable.containers);return a.set(r,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case _e.UnregisterDroppable:{const{id:r,key:n}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const i=new $t(e.droppable.containers);return i.delete(r),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Vt(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:o}=(0,y.useContext)(Bt),i=ie(n),a=ie(null==r?void 0:r.id);return(0,y.useEffect)(()=>{if(!t&&!n&&i&&null!=a){if(!de(i))return;if(document.activeElement===i.target)return;const e=o.get(a);if(!e)return;const{activatorNode:t,node:r}=e;if(!t.current&&!r.current)return;requestAnimationFrame(()=>{for(const e of[t.current,r.current]){if(!e)continue;const t=ve(e);if(t){t.focus();break}}})}},[n,t,o,a,i]),null}const Ht=(0,y.createContext)({...Re,scaleX:1,scaleY:1});var Kt;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Kt||(Kt={}));const Xt=(0,y.memo)(function(e){var t,r,n,o;let{id:i,accessibility:a,autoScroll:s=!0,children:l,sensors:c=Nt,collisionDetection:u=je,measuring:d,modifiers:p,...f}=e;const h=(0,y.useReducer)(Wt,void 0,Ut),[v,g]=h,[m,x]=function(){const[e]=(0,y.useState)(()=>new Set),t=(0,y.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,y.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[w,C]=(0,y.useState)(Kt.Uninitialized),_=w===Kt.Initialized,{draggable:{active:S,nodes:E,translate:R},droppable:{containers:D}}=v,k=null!=S?E.get(S):null,O=(0,y.useRef)({initial:null,translated:null}),T=(0,y.useMemo)(()=>{var e;return null!=S?{id:S,data:null!=(e=null==k?void 0:k.data)?e:Lt,rect:O}:null},[S,k]),A=(0,y.useRef)(null),[I,j]=(0,y.useState)(null),[M,N]=(0,y.useState)(null),L=re(f,Object.values(f)),P=se("DndDescribedBy",i),$=(0,y.useMemo)(()=>D.getEnabled(),[D]),z=(F=d,(0,y.useMemo)(()=>({draggable:{...Pt.draggable,...null==F?void 0:F.draggable},droppable:{...Pt.droppable,...null==F?void 0:F.droppable},dragOverlay:{...Pt.dragOverlay,...null==F?void 0:F.dragOverlay}}),[null==F?void 0:F.draggable,null==F?void 0:F.droppable,null==F?void 0:F.dragOverlay]));var F;const{droppableRects:B,measureDroppableContainers:q,measuringScheduled:U}=function(e,t){let{dragging:r,dependencies:n,config:o}=t;const[i,a]=(0,y.useState)(null),{frequency:s,measure:l,strategy:c}=o,u=(0,y.useRef)(e),d=function(){switch(c){case St.Always:return!1;case St.BeforeDragging:return r;default:return!r}}(),p=re(d),f=(0,y.useCallback)(function(e){void 0===e&&(e=[]),p.current||a(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[p]),h=(0,y.useRef)(null),v=ne(t=>{if(d&&!r)return Rt;if(!t||t===Rt||u.current!==e||null!=i){const t=new Map;for(let r of e){if(!r)continue;if(i&&i.length>0&&!i.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}const e=r.node.current,n=e?new et(l(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,i,r,d,l]);return(0,y.useEffect)(()=>{u.current=e},[e]),(0,y.useEffect)(()=>{d||f()},[r,d]),(0,y.useEffect)(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),(0,y.useEffect)(()=>{d||"number"!=typeof s||null!==h.current||(h.current=setTimeout(()=>{f(),h.current=null},s))},[s,d,f,...n]),{droppableRects:v,measureDroppableContainers:f,measuringScheduled:null!=i}}($,{dragging:_,dependencies:[R.x,R.y],config:z.droppable}),W=function(e,t){const r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return ne(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(E,S),K=(0,y.useMemo)(()=>M?pe(M):null,[M]),X=function(){const e=!1===(null==I?void 0:I.autoScrollEnabled),t="object"==typeof s?!1===s.enabled:!1===s,r=_&&!e&&!t;return"object"==typeof s?{...s,enabled:r}:{enabled:r}}(),G=function(e,t){return Dt(e,t)}(W,z.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:o=!0}=e;const i=(0,y.useRef)(!1),{x:a,y:s}="boolean"==typeof o?{x:o,y:o}:o;ee(()=>{if(!a&&!s||!t)return void(i.current=!1);if(i.current||!n)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=Me(r(e),n);if(a||(o.x=0),s||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=Be(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,a,s,n,r])}({activeNode:null!=S?E.get(S):null,config:X.layoutShiftCompensation,initialRect:G,measure:z.draggable.measure});const Z=Tt(W,z.draggable.measure,G),Q=Tt(W?W.parentElement:null),te=(0,y.useRef)({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ae=D.getNodeFor(null==(t=te.current.over)?void 0:t.id),le=function(e){let{measure:t}=e;const[r,n]=(0,y.useState)(null),o=kt({callback:(0,y.useCallback)(e=>{for(const{target:r}of e)if(J(r)){n(e=>{const n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),i=(0,y.useCallback)(e=>{const r=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return J(t)?t:e}(e);null==o||o.disconnect(),r&&(null==o||o.observe(r)),n(r?t(r):null)},[t,o]),[a,s]=oe(i);return(0,y.useMemo)(()=>({nodeRef:a,rect:r,setRef:s}),[r,a,s])}({measure:z.dragOverlay.measure}),ue=null!=(r=le.nodeRef.current)?r:W,de=_?null!=(n=le.rect)?n:Z:null,fe=Boolean(le.nodeRef.current&&le.rect),he=Me(ve=fe?null:Z,Dt(ve));var ve;const ge=jt(ue?Y(ue):null),me=function(e){const t=(0,y.useRef)(e),r=ne(r=>e?r&&r!==At&&e&&t.current&&e.parentNode===t.current.parentNode?r:Fe(e):At,[e]);return(0,y.useEffect)(()=>{t.current=e},[e]),r}(_?null!=ae?ae:W:null),ye=function(e,t){void 0===t&&(t=$e);const[r]=e,n=jt(r?Y(r):null),[o,i]=(0,y.useState)(Mt);function a(){i(()=>e.length?e.map(e=>Ke(e)?n:new et(t(e),e)):Mt)}const s=kt({callback:a});return ee(()=>{null==s||s.disconnect(),a(),e.forEach(e=>null==s?void 0:s.observe(e))},[e]),o}(me),xe=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(p,{transform:{x:R.x-he.x,y:R.y-he.y,scaleX:1,scaleY:1},activatorEvent:M,active:T,activeNodeRect:Z,containerNodeRect:Q,draggingNodeRect:de,over:te.current.over,overlayNodeRect:le.rect,scrollableAncestors:me,scrollableAncestorRects:ye,windowRect:ge}),we=K?ce(K,R):null,Se=function(e){const[t,r]=(0,y.useState)(null),n=(0,y.useRef)(e),o=(0,y.useCallback)(e=>{const t=qe(e.target);t&&r(e=>e?(e.set(t,Ve(t)),new Map(e)):null)},[]);return(0,y.useEffect)(()=>{const t=n.current;if(e!==t){i(t);const a=e.map(e=>{const t=qe(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Ve(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),n.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=qe(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),(0,y.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>ce(e,t),Re):Ze(e):Re,[e,t])}(me),Ee=It(Se),De=It(Se,[Z]),ke=ce(xe,Ee),Oe=de?Le(de,xe):null,Te=T&&Oe?u({active:T,collisionRect:Oe,droppableRects:B,droppableContainers:$,pointerCoordinates:we}):null,Ae=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(Te),[Ie,Ne]=(0,y.useState)(null),Pe=function(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}(fe?xe:ce(xe,De),null!=(o=null==Ie?void 0:Ie.rect)?o:null,Z),ze=(0,y.useRef)(null),Ue=(0,y.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==A.current)return;const o=E.get(A.current);if(!o)return;const i=e.nativeEvent,a=new r({active:A.current,activeNode:o,event:i,options:n,context:te,onAbort(e){if(!E.get(e))return;const{onDragAbort:t}=L.current,r={id:e};null==t||t(r),m({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!E.get(e))return;const{onDragPending:o}=L.current,i={id:e,constraint:t,initialCoordinates:r,offset:n};null==o||o(i),m({type:"onDragPending",event:i})},onStart(e){const t=A.current;if(null==t)return;const r=E.get(t);if(!r)return;const{onDragStart:n}=L.current,o={activatorEvent:i,active:{id:t,data:r.data,rect:O}};(0,V.unstable_batchedUpdates)(()=>{null==n||n(o),C(Kt.Initializing),g({type:_e.DragStart,initialCoordinates:e,active:t}),m({type:"onDragStart",event:o}),j(ze.current),N(i)})},onMove(e){g({type:_e.DragMove,coordinates:e})},onEnd:s(_e.DragEnd),onCancel:s(_e.DragCancel)});function s(e){return async function(){const{active:t,collisions:r,over:n,scrollAdjustedTranslate:o}=te.current;let a=null;if(t&&o){const{cancelDrop:s}=L.current;a={activatorEvent:i,active:t,collisions:r,delta:o,over:n},e===_e.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=_e.DragCancel)}A.current=null,(0,V.unstable_batchedUpdates)(()=>{g({type:e}),C(Kt.Uninitialized),Ne(null),j(null),N(null),ze.current=null;const t=e===_e.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=L.current[t];null==e||e(a),m({type:t,event:a})}})}}ze.current=a},[E]),We=(0,y.useCallback)((e,t)=>(r,n)=>{const o=r.nativeEvent,i=E.get(n);if(null!==A.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(r,t.options,a)&&(o.dndKit={capturedBy:t.sensor},A.current=n,Ue(r,t))},[E,Ue]),Xe=function(e,t){return(0,y.useMemo)(()=>e.reduce((e,r)=>{const{sensor:n}=r;return[...e,...n.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,r)}))]},[]),[e,t])}(c,We);!function(e){(0,y.useEffect)(()=>{if(!H)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),ee(()=>{Z&&w===Kt.Initializing&&C(Kt.Initialized)},[Z,w]),(0,y.useEffect)(()=>{const{onDragMove:e}=L.current,{active:t,activatorEvent:r,collisions:n,over:o}=te.current;if(!t||!r)return;const i={active:t,activatorEvent:r,collisions:n,delta:{x:ke.x,y:ke.y},over:o};(0,V.unstable_batchedUpdates)(()=>{null==e||e(i),m({type:"onDragMove",event:i})})},[ke.x,ke.y]),(0,y.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:o}=te.current;if(!e||null==A.current||!t||!o)return;const{onDragOver:i}=L.current,a=n.get(Ae),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:r,delta:{x:o.x,y:o.y},over:s};(0,V.unstable_batchedUpdates)(()=>{Ne(s),null==i||i(l),m({type:"onDragOver",event:l})})},[Ae]),ee(()=>{te.current={activatorEvent:M,active:T,activeNode:W,collisionRect:Oe,collisions:Te,droppableRects:B,draggableNodes:E,draggingNode:ue,draggingNodeRect:de,droppableContainers:D,over:Ie,scrollableAncestors:me,scrollAdjustedTranslate:ke},O.current={initial:de,translated:Oe}},[T,W,Te,Oe,E,ue,de,B,D,Ie,me,ke]),function(e){let{acceleration:t,activator:r=wt.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:s=Ct.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:p}=e;const f=function(e){let{delta:t,disabled:r}=e;const n=ie(t);return ne(e=>{if(r||!n||!e)return _t;const o=Math.sign(t.x-n.x),i=Math.sign(t.y-n.y);return{x:{[He.Backward]:e.x[He.Backward]||-1===o,[He.Forward]:e.x[He.Forward]||1===o},y:{[He.Backward]:e.y[He.Backward]||-1===i,[He.Forward]:e.y[He.Forward]||1===i}}},[r,t,n])}({delta:d,disabled:!i}),[h,v]=function(){const e=(0,y.useRef)(null);return[(0,y.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,y.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=(0,y.useRef)({x:0,y:0}),m=(0,y.useRef)({x:0,y:0}),b=(0,y.useMemo)(()=>{switch(r){case wt.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case wt.DraggableRect:return o}},[r,o,l]),x=(0,y.useRef)(null),w=(0,y.useCallback)(()=>{const e=x.current;if(!e)return;const t=g.current.x*m.current.x,r=g.current.y*m.current.y;e.scrollBy(t,r)},[]),C=(0,y.useMemo)(()=>s===Ct.TreeOrder?[...c].reverse():c,[s,c]);(0,y.useEffect)(()=>{if(i&&c.length&&b){for(const e of C){if(!1===(null==n?void 0:n(e)))continue;const r=c.indexOf(e),o=u[r];if(!o)continue;const{direction:i,speed:s}=Ge(e,o,b,t,p);for(const e of["x","y"])f[e][i[e]]||(s[e]=0,i[e]=0);if(s.x>0||s.y>0)return v(),x.current=e,h(w,a),g.current=s,void(m.current=i)}g.current={x:0,y:0},m.current={x:0,y:0},v()}else v()},[t,w,n,v,i,a,JSON.stringify(b),JSON.stringify(f),h,c,C,u,JSON.stringify(p)])}({...X,delta:R,draggingRect:Oe,pointerCoordinates:we,scrollableAncestors:me,scrollableAncestorRects:ye});const Ye=(0,y.useMemo)(()=>({active:T,activeNode:W,activeNodeRect:Z,activatorEvent:M,collisions:Te,containerNodeRect:Q,dragOverlay:le,draggableNodes:E,droppableContainers:D,droppableRects:B,over:Ie,measureDroppableContainers:q,scrollableAncestors:me,scrollableAncestorRects:ye,measuringConfiguration:z,measuringScheduled:U,windowRect:ge}),[T,W,Z,M,Te,Q,le,E,D,B,Ie,q,me,ye,z,U,ge]),Je=(0,y.useMemo)(()=>({activatorEvent:M,activators:Xe,active:T,activeNodeRect:Z,ariaDescribedById:{draggable:P},dispatch:g,draggableNodes:E,over:Ie,measureDroppableContainers:q}),[M,Xe,T,Z,g,P,E,Ie,q]);return b().createElement(be.Provider,{value:x},b().createElement(Bt.Provider,{value:Je},b().createElement(qt.Provider,{value:Ye},b().createElement(Ht.Provider,{value:Pe},l)),b().createElement(Vt,{disabled:!1===(null==a?void 0:a.restoreFocus)})),b().createElement(Ce,{...a,hiddenTextDescribedById:P}))}),Yt=(0,y.createContext)(null),Gt="button";const Jt={timeout:25};function Zt(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function Qt(e,t){return e.reduce((e,r,n)=>{const o=t.get(r);return o&&(e[n]=o),e},Array(e.length))}function er(e){return null!==e&&e>=0}const tr=e=>{let{rects:t,activeIndex:r,overIndex:n,index:o}=e;const i=Zt(t,n,r),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},rr="Sortable",nr=b().createContext({activeIndex:-1,containerId:rr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:tr,disabled:{draggable:!1,droppable:!1}});function or(e){let{children:t,id:r,items:n,strategy:o=tr,disabled:i=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=(0,y.useContext)(qt),d=se(rr,r),p=Boolean(null!==s.rect),f=(0,y.useMemo)(()=>n.map(e=>"object"==typeof e&&"id"in e?e.id:e),[n]),h=null!=a,v=a?f.indexOf(a.id):-1,g=c?f.indexOf(c.id):-1,m=(0,y.useRef)(f),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(f,m.current),w=-1!==g&&-1===v||x,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);ee(()=>{x&&h&&u(f)},[x,f,h,u]),(0,y.useEffect)(()=>{m.current=f},[f]);const _=(0,y.useMemo)(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:w,items:f,overIndex:g,useDragOverlay:p,sortedRects:Qt(f,l),strategy:o}),[v,d,C.draggable,C.droppable,w,f,g,l,p,o]);return b().createElement(nr.Provider,{value:_},t)}const ir=e=>{let{id:t,items:r,activeIndex:n,overIndex:o}=e;return Zt(r,n,o).indexOf(t)},ar=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!n||s!==i&&o===a||!r&&(a===o||t!==l))},sr={duration:200,easing:"ease"},lr="transform",cr=fe.Transition.toString({property:lr,duration:0,easing:"linear"}),ur={roleDescription:"sortable"};function dr(e){let{animateLayoutChanges:t=ar,attributes:r,disabled:n,data:o,getNewIndex:i=ir,id:a,strategy:s,resizeObserverConfig:l,transition:c=sr}=e;const{items:u,containerId:d,activeIndex:p,disabled:f,disableTransforms:h,sortedRects:v,overIndex:g,useDragOverlay:m,strategy:b}=(0,y.useContext)(nr),x=function(e,t){var r,n;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(n,f),w=u.indexOf(a),C=(0,y.useMemo)(()=>({sortable:{containerId:d,index:w,items:u},...o}),[d,o,w,u]),_=(0,y.useMemo)(()=>u.slice(u.indexOf(a)),[u,a]),{rect:S,node:E,isOver:R,setNodeRef:D}=function(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:o}=e;const i=se("Droppable"),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=(0,y.useContext)(Bt),u=(0,y.useRef)({disabled:r}),d=(0,y.useRef)(!1),p=(0,y.useRef)(null),f=(0,y.useRef)(null),{disabled:h,updateMeasurementsFor:v,timeout:g}={...Jt,...o},m=re(null!=v?v:n),b=kt({callback:(0,y.useCallback)(()=>{d.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{c(Array.isArray(m.current)?m.current:[m.current]),f.current=null},g)):d.current=!0},[g]),disabled:h||!a}),x=(0,y.useCallback)((e,t)=>{b&&(t&&(b.unobserve(t),d.current=!1),e&&b.observe(e))},[b]),[w,C]=oe(x),_=re(t);return(0,y.useEffect)(()=>{b&&w.current&&(b.disconnect(),d.current=!1,b.observe(w.current))},[w,b]),(0,y.useEffect)(()=>(s({type:_e.RegisterDroppable,element:{id:n,key:i,disabled:r,node:w,rect:p,data:_}}),()=>s({type:_e.UnregisterDroppable,key:i,id:n})),[n]),(0,y.useEffect)(()=>{r!==u.current.disabled&&(s({type:_e.SetDroppableDisabled,id:n,key:i,disabled:r}),u.current.disabled=r)},[n,i,r,s]),{active:a,rect:p,isOver:(null==l?void 0:l.id)===n,node:w,over:l,setNodeRef:C}}({id:a,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...l}}),{active:k,activatorEvent:O,activeNodeRect:T,attributes:A,setNodeRef:I,listeners:j,isDragging:M,over:N,setActivatorNodeRef:L,transform:P}=function(e){let{id:t,data:r,disabled:n=!1,attributes:o}=e;const i=se("Draggable"),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:p}=(0,y.useContext)(Bt),{role:f=Gt,roleDescription:h="draggable",tabIndex:v=0}=null!=o?o:{},g=(null==l?void 0:l.id)===t,m=(0,y.useContext)(g?Ht:Yt),[b,x]=oe(),[w,C]=oe(),_=function(e,t){return(0,y.useMemo)(()=>e.reduce((e,r)=>{let{eventName:n,handler:o}=r;return e[n]=e=>{o(e,t)},e},{}),[e,t])}(a,t),S=re(r);return ee(()=>(d.set(t,{id:t,key:i,node:b,activatorNode:w,data:S}),()=>{const e=d.get(t);e&&e.key===i&&d.delete(t)}),[d,t]),{active:l,activatorEvent:s,activeNodeRect:c,attributes:(0,y.useMemo)(()=>({role:f,tabIndex:v,"aria-disabled":n,"aria-pressed":!(!g||f!==Gt)||void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[n,f,v,g,h,u.draggable]),isDragging:g,listeners:n?void 0:_,node:b,over:p,setNodeRef:x,setActivatorNodeRef:C,transform:m}}({id:a,data:C,attributes:{...ur,...r},disabled:x.draggable}),$=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,y.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(D,I),z=Boolean(k),F=z&&!h&&er(p)&&er(g),B=!m&&M,q=B&&F?P:null,U=F?null!=q?q:(null!=s?s:b)({rects:v,activeNodeRect:T,activeIndex:p,overIndex:g,index:w}):null,W=er(p)&&er(g)?i({id:a,items:u,activeIndex:p,overIndex:g}):w,V=null==k?void 0:k.id,H=(0,y.useRef)({activeId:V,items:u,newIndex:W,containerId:d}),K=u!==H.current.items,X=t({active:k,containerId:d,isDragging:M,isSorting:z,id:a,index:w,items:u,newIndex:H.current.newIndex,previousItems:H.current.items,previousContainerId:H.current.containerId,transition:c,wasDragging:null!=H.current.activeId}),Y=function(e){let{disabled:t,index:r,node:n,rect:o}=e;const[i,a]=(0,y.useState)(null),s=(0,y.useRef)(r);return ee(()=>{if(!t&&r!==s.current&&n.current){const e=o.current;if(e){const t=$e(n.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&a(r)}}r!==s.current&&(s.current=r)},[t,r,n,o]),(0,y.useEffect)(()=>{i&&a(null)},[i]),i}({disabled:!X,index:w,node:E,rect:S});return(0,y.useEffect)(()=>{z&&H.current.newIndex!==W&&(H.current.newIndex=W),d!==H.current.containerId&&(H.current.containerId=d),u!==H.current.items&&(H.current.items=u)},[z,W,d,u]),(0,y.useEffect)(()=>{if(V===H.current.activeId)return;if(V&&!H.current.activeId)return void(H.current.activeId=V);const e=setTimeout(()=>{H.current.activeId=V},50);return()=>clearTimeout(e)},[V]),{active:k,activeIndex:p,attributes:A,data:C,rect:S,index:w,newIndex:W,items:u,isOver:R,isSorting:z,isDragging:M,listeners:j,node:E,overIndex:g,over:N,setNodeRef:$,setActivatorNodeRef:L,setDroppableNodeRef:D,setDraggableNodeRef:I,transform:null!=Y?Y:U,transition:Y||K&&H.current.newIndex===w?cr:B&&!de(O)||!c?void 0:z||X?fe.Transition.toString({...c,property:lr}):void 0}}ot.Down,ot.Right,ot.Up,ot.Left;const pr=e=>{let{containerNodeRect:t,draggingNodeRect:r,transform:n}=e;return r&&t?function(e,t,r){const n={...e};return t.top+e.y<=r.top?n.y=r.top-t.top:t.bottom+e.y>=r.top+r.height&&(n.y=r.top+r.height-t.bottom),t.left+e.x<=r.left?n.x=r.left-t.left:t.right+e.x>=r.left+r.width&&(n.x=r.left+r.width-t.right),n}(n,r,t):n};var fr=u(8552),hr=u(7032);const vr="types";function gr(e,t){const r=mr(e),n=e.get(vr),o=t.get(r);return n.find(e=>e.get("name")===o)}function mr(e){return e.get("typeKey","type")}var yr=u(5270),br=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),xr=Math.abs,wr=String.fromCharCode,Cr=Object.assign;function _r(e){return e.trim()}function Sr(e,t,r){return e.replace(t,r)}function Er(e,t){return e.indexOf(t)}function Rr(e,t){return 0|e.charCodeAt(t)}function Dr(e,t,r){return e.slice(t,r)}function kr(e){return e.length}function Or(e){return e.length}function Tr(e,t){return t.push(e),e}var Ar=1,Ir=1,jr=0,Mr=0,Nr=0,Lr="";function Pr(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ar,column:Ir,length:a,return:""}}function $r(e,t){return Cr(Pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function zr(){return Nr=Mr>0?Rr(Lr,--Mr):0,Ir--,10===Nr&&(Ir=1,Ar--),Nr}function Fr(){return Nr=Mr<jr?Rr(Lr,Mr++):0,Ir++,10===Nr&&(Ir=1,Ar++),Nr}function Br(){return Rr(Lr,Mr)}function qr(){return Mr}function Ur(e,t){return Dr(Lr,e,t)}function Wr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vr(e){return Ar=Ir=1,jr=kr(Lr=e),Mr=0,[]}function Hr(e){return Lr="",e}function Kr(e){return _r(Ur(Mr-1,Gr(91===e?e+2:40===e?e+1:e)))}function Xr(e){for(;(Nr=Br())&&Nr<33;)Fr();return Wr(e)>2||Wr(Nr)>3?"":" "}function Yr(e,t){for(;--t&&Fr()&&!(Nr<48||Nr>102||Nr>57&&Nr<65||Nr>70&&Nr<97););return Ur(e,qr()+(t<6&&32==Br()&&32==Fr()))}function Gr(e){for(;Fr();)switch(Nr){case e:return Mr;case 34:case 39:34!==e&&39!==e&&Gr(Nr);break;case 40:41===e&&Gr(e);break;case 92:Fr()}return Mr}function Jr(e,t){for(;Fr()&&e+Nr!==57&&(e+Nr!==84||47!==Br()););return"/*"+Ur(t,Mr-1)+"*"+wr(47===e?e:Fr())}function Zr(e){for(;!Wr(Br());)Fr();return Ur(e,Mr)}var Qr="-ms-",en="-moz-",tn="-webkit-",rn="comm",nn="rule",on="decl",an="@keyframes";function sn(e,t){for(var r="",n=Or(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ln(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case on:return e.return=e.return||e.value;case rn:return"";case an:return e.return=e.value+"{"+sn(e.children,n)+"}";case nn:e.value=e.props.join(",")}return kr(r=sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function cn(e){return Hr(un("",null,null,null,[""],e=Vr(e),0,[0],e))}function un(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,v=1,g=1,m=1,y=0,b="",x=o,w=i,C=n,_=b;g;)switch(h=y,y=Fr()){case 40:if(108!=h&&58==Rr(_,d-1)){-1!=Er(_+=Sr(Kr(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:_+=Kr(y);break;case 9:case 10:case 13:case 32:_+=Xr(h);break;case 92:_+=Yr(qr()-1,7);continue;case 47:switch(Br()){case 42:case 47:Tr(pn(Jr(Fr(),qr()),t,r),l);break;default:_+="/"}break;case 123*v:s[c++]=kr(_)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==m&&(_=Sr(_,/\f/g,"")),f>0&&kr(_)-d&&Tr(f>32?fn(_+";",n,r,d-1):fn(Sr(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(Tr(C=dn(_,t,r,c,u,o,s,b,x=[],w=[],d),i),123===y)if(0===u)un(_,t,C,C,x,i,d,s,w);else switch(99===p&&110===Rr(_,3)?100:p){case 100:case 108:case 109:case 115:un(e,C,C,n&&Tr(dn(e,C,C,0,0,o,s,b,o,x=[],d),w),o,w,d,s,n?x:w);break;default:un(_,C,C,C,[""],w,0,s,w)}}c=u=f=0,v=m=1,b=_="",d=a;break;case 58:d=1+kr(_),f=h;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==zr())continue;switch(_+=wr(y),y*v){case 38:m=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(kr(_)-1)*m,m=1;break;case 64:45===Br()&&(_+=Kr(Fr())),p=Br(),u=d=kr(b=_+=Zr(qr())),y++;break;case 45:45===h&&2==kr(_)&&(v=0)}}return i}function dn(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Or(p),h=0,v=0,g=0;h<n;++h)for(var m=0,y=Dr(e,d+1,d=xr(v=a[h])),b=e;m<f;++m)(b=_r(v>0?p[m]+" "+y:Sr(y,/&\f/g,p[m])))&&(l[g++]=b);return Pr(e,t,r,0===o?nn:s,l,c,u)}function pn(e,t,r){return Pr(e,t,r,rn,wr(Nr),Dr(e,2,-2),0)}function fn(e,t,r,n){return Pr(e,t,r,on,Dr(e,0,n),Dr(e,n+1,-1),n)}var hn=function(e,t,r){for(var n=0,o=0;n=o,o=Br(),38===n&&12===o&&(t[r]=1),!Wr(o);)Fr();return Ur(e,Mr)},vn=new WeakMap,gn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||vn.get(r))&&!n){vn.set(e,!0);for(var o=[],i=function(e,t){return Hr(function(e,t){var r=-1,n=44;do{switch(Wr(n)){case 0:38===n&&12===Br()&&(t[r]=1),e[r]+=hn(Mr-1,t,r);break;case 2:e[r]+=Kr(n);break;case 4:if(44===n){e[++r]=58===Br()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=wr(n)}}while(n=Fr());return e}(Vr(e),t))}(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},mn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yn(e,t){switch(function(e,t){return 45^Rr(e,0)?(((t<<2^Rr(e,0))<<2^Rr(e,1))<<2^Rr(e,2))<<2^Rr(e,3):0}(e,t)){case 5103:return tn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return tn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tn+e+en+e+Qr+e+e;case 6828:case 4268:return tn+e+Qr+e+e;case 6165:return tn+e+Qr+"flex-"+e+e;case 5187:return tn+e+Sr(e,/(\w+).+(:[^]+)/,tn+"box-$1$2"+Qr+"flex-$1$2")+e;case 5443:return tn+e+Qr+"flex-item-"+Sr(e,/flex-|-self/,"")+e;case 4675:return tn+e+Qr+"flex-line-pack"+Sr(e,/align-content|flex-|-self/,"")+e;case 5548:return tn+e+Qr+Sr(e,"shrink","negative")+e;case 5292:return tn+e+Qr+Sr(e,"basis","preferred-size")+e;case 6060:return tn+"box-"+Sr(e,"-grow","")+tn+e+Qr+Sr(e,"grow","positive")+e;case 4554:return tn+Sr(e,/([^-])(transform)/g,"$1"+tn+"$2")+e;case 6187:return Sr(Sr(Sr(e,/(zoom-|grab)/,tn+"$1"),/(image-set)/,tn+"$1"),e,"")+e;case 5495:case 3959:return Sr(e,/(image-set\([^]*)/,tn+"$1$`$1");case 4968:return Sr(Sr(e,/(.+:)(flex-)?(.*)/,tn+"box-pack:$3"+Qr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tn+e+e;case 4095:case 3583:case 4068:case 2532:return Sr(e,/(.+)-inline(.+)/,tn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kr(e)-1-t>6)switch(Rr(e,t+1)){case 109:if(45!==Rr(e,t+4))break;case 102:return Sr(e,/(.+:)(.+)-([^]+)/,"$1"+tn+"$2-$3$1"+en+(108==Rr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Er(e,"stretch")?yn(Sr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rr(e,t+1))break;case 6444:switch(Rr(e,kr(e)-3-(~Er(e,"!important")&&10))){case 107:return Sr(e,":",":"+tn)+e;case 101:return Sr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tn+(45===Rr(e,14)?"inline-":"")+"box$3$1"+tn+"$2$3$1"+Qr+"$2box$3")+e}break;case 5936:switch(Rr(e,t+11)){case 114:return tn+e+Qr+Sr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tn+e+Qr+Sr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tn+e+Qr+Sr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tn+e+Qr+e+e}return e}var bn=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case on:e.return=yn(e.value,e.length);break;case an:return sn([$r(e,{value:Sr(e.value,"@","@"+tn)})],n);case nn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return sn([$r(e,{props:[Sr(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return sn([$r(e,{props:[Sr(t,/:(plac\w+)/,":"+tn+"input-$1")]}),$r(e,{props:[Sr(t,/:(plac\w+)/,":-moz-$1")]}),$r(e,{props:[Sr(t,/:(plac\w+)/,Qr+"input-$1")]})],n)}return""})}}],xn=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||bn,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u,d,p=[ln,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[gn,mn].concat(i,p),u=Or(c),function(e,t,r,n){for(var o="",i=0;i<u;i++)o+=c[i](e,t,r,n)||"";return o});o=function(e,t,r,n){l=r,function(e){sn(cn(e),f)}(e?e+"{"+t.styles+"}":t.styles),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new br({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},wn=y.createContext("undefined"!=typeof HTMLElement?xn({key:"css"}):null),Cn=(wn.Provider,function(e){return(0,y.forwardRef)(function(t,r){var n=(0,y.useContext)(wn);return e(t,n,r)})}),_n=y.createContext({}),Sn={}.hasOwnProperty,En="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Rn=function(e,t){var r={};for(var n in t)Sn.call(t,n)&&(r[n]=t[n]);return r[En]=e,r},Dn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _(t,r,n),w(function(){return S(t,r,n)}),null},kn=Cn(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[En],i=[n],a="";"string"==typeof e.className?a=C(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=m(i,void 0,y.useContext(_n));a+=t.key+"-"+s.name;var l={};for(var c in e)Sn.call(e,c)&&"css"!==c&&c!==En&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),y.createElement(y.Fragment,null,y.createElement(Dn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))}),On=(u(4674),yr.Fragment,function(e,t,r){return Sn.call(t,"css")?yr.jsx(kn,Rn(e,t),r):yr.jsx(e,t,r)}),Tn=function(e,t,r){return Sn.call(t,"css")?yr.jsxs(kn,Rn(e,t),r):yr.jsxs(e,t,r)};const An=t().controlComponent,In=A("div",{target:"e11zrb3c2",label:"ListItem"})(""),jn=A(fr.ListItemTopBar,{target:"e11zrb3c1",label:"StyledListItemTopBar"})("background-color:",fr.colors.textFieldBorder,";"),Mn=A("div",{target:"e11zrb3c0",label:"NestedObjectLabel"})("display:",e=>e.collapsed?"block":"none",";border-top:0;color:",e=>e.error?fr.colors.errorText:"inherit",";background-color:",fr.colors.textFieldBorder,";padding:13px;border-radius:0 0 ",fr.lengths.borderRadius," ",fr.lengths.borderRadius,";"),Nn=`\n padding: ${fr.lengths.objectWidgetTopBarContainerPadding};\n `,Ln={listControlItem:{name:"1pb8r5b-listControlItem",styles:"margin-top:18px;&:first-of-type{margin-top:26px;};label:listControlItem;"},listControlItemCollapsed:{name:"1gjco9g-listControlItemCollapsed",styles:"padding-bottom:0;label:listControlItemCollapsed;"}};function Pn({items:e,children:t,onSortEnd:r,keys:n}){const o={distance:4},i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,y.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}(Ee(yt,{activationConstraint:o}),Ee(xt,{activationConstraint:o}));return On("div",{children:On(Xt,{modifiers:[pr],collisionDetection:Ae,sensors:i,onDragEnd:function({active:e,over:t}){r({oldIndex:n.indexOf(e.id),newIndex:n.indexOf(t.id)})},children:On(or,{items:e,children:t})})})}function $n(e){const{setNodeRef:t,transform:r,transition:n}=dr({id:e.id}),o={transform:fe.Transform.toString(r),transition:n},{collapsed:i}=e;return On(In,{sortable:!0,ref:t,style:o,css:[Ln.listControlItem,i&&Ln.listControlItemCollapsed,";label:SortableListItem;"],children:e.children})}function zn({children:e,id:t}){const{attributes:r,listeners:n}=dr({id:t});return On("div",{...r,...n,children:e})}const Fn="SINGLE",Bn="MULTIPLE",qn="MIXED";function Un(e,t,r,n){const o=hr.stringTemplate.addFileTemplateFields(t.get("path"),n.set("fields.label",r));return hr.stringTemplate.compileStringTemplate(e,null,"",o)}function Wn(e,t){return!!L.Map.isMap(t)||(console.warn(`'${e.get("name")}' field item value value should be a map but is a '${typeof t}'`),!1)}function Vn({field:e,isActive:t,hasErrors:r,uniqueFieldId:n,isFieldOptional:o,t:i}){const a=`${e.get("label",e.get("name"))}`;return Tn(fr.FieldLabel,{isActive:t,hasErrors:r,htmlFor:n,children:[a," ",o?` (${i("editor.editorControl.field.optional")})`:""]})}class Hn extends y.Component{childRefs={};static propTypes={metadata:N().map,onChange:j().func.isRequired,onChangeObject:j().func.isRequired,onValidateObject:j().func.isRequired,validate:j().func.isRequired,value:N().list,field:j().object,forID:j().string,controlRef:j().func,mediaPaths:N().map.isRequired,getAsset:j().func.isRequired,onOpenMediaLibrary:j().func.isRequired,onAddAsset:j().func.isRequired,onRemoveInsertedMedia:j().func.isRequired,classNameWrapper:j().string.isRequired,setActiveStyle:j().func.isRequired,setInactiveStyle:j().func.isRequired,editorControl:j().elementType.isRequired,resolveWidget:j().func.isRequired,clearFieldErrors:j().func.isRequired,fieldsErrors:N().map.isRequired,entry:N().map.isRequired,t:j().func};static defaultProps={value:(0,L.List)(),parentIds:[]};constructor(e){super(e);const{field:t,value:r}=e,n=t.get("collapsed",!0),o=r&&Array(r.size).fill(n)||[],i=r&&Array.from({length:r.size},()=>crypto.randomUUID())||[];this.state={listCollapsed:n,itemsCollapsed:o,value:this.valueToString(r),keys:i}}componentDidMount(){j().checkPropTypes(Hn.propTypes,this.props,"prop","ListControl")}valueToString=e=>{let t;return L.List.isList(e)||Array.isArray(e)?t=e.join(","):(console.warn(`Expected List value to be an array but received '${e}' with type of '${typeof e}'. Please check the value provided to the '${this.props.field.get("name")}' field`),t=String(e)),t.replace(/,([^\s]|$)/g,", $1")};getValueType=()=>{const{field:e}=this.props;return e.get("fields")?Bn:e.get("field")?Fn:e.get(vr)?qn:null};uniqueFieldId=W()(`${this.props.field.get("name")}-field-`);shouldComponentUpdate(){return!0}handleChange=e=>{const{onChange:t}=this.props,r=this.state.value,n=e.target.value.trim(),o=n?n.split(","):[];n.match(/,$/)&&r.match(/, $/)&&o.pop();const i=this.valueToString(o);this.setState({value:i}),t((0,L.List)(o.map(e=>e.trim())))};handleFocus=()=>{this.props.setActiveStyle()};handleBlur=e=>{const t=e.target.value.split(",").map(e=>e.trim()).filter(e=>e);this.setState({value:this.valueToString(t)}),this.props.setInactiveStyle()};handleAdd=e=>{e.preventDefault();const{field:t}=this.props,r=this.getValueType()===Fn?this.singleDefault():(0,L.fromJS)(this.multipleDefault(t.get("fields")));this.addItem(r)};singleDefault=()=>this.props.field.getIn(["field","default"],null);multipleDefault=e=>this.getFieldsDefault(e);handleAddType=(e,t)=>{const r=(0,L.fromJS)(this.mixedDefault(t,e));this.addItem(r)};mixedDefault=(e,t)=>{const r=this.props.field.get(vr).find(e=>e.get("name")===t),n=r.get("fields")||[r.get("field")];return this.getFieldsDefault(n,{[e]:t})};getFieldsDefault=(e,t={})=>e.reduce((e,t)=>{const r=t.get("field")||t.get("fields"),n="object"==t.get("widget"),o=t.get("name"),i=t.get("default",null);if(L.List.isList(r)&&n){const t=this.getFieldsDefault(r);return!F()(t)&&(e[o]=t),e}if(L.Map.isMap(r)&&n){const t=this.getFieldsDefault([r]);return!F()(t)&&(e[o]=t),e}return null!==i&&(e[o]=i),e},t);addItem=e=>{const{value:t,onChange:r,field:n}=this.props,o=n.get("add_to_top",!1),i=crypto.randomUUID();this.setState({itemsCollapsed:o?[!1,...this.state.itemsCollapsed]:[...this.state.itemsCollapsed,!1],keys:o?[i,...this.state.keys]:[...this.state.keys,i]});const a=t||(0,L.List)();r(o?a.unshift(e):a.push(e))};processControlRef=e=>{if(!e)return;const{props:{validationKey:t}}=e;this.childRefs[t]=e,this.props.controlRef?.(this)};validate=()=>{this.getValueType()&&Object.keys(this.childRefs).length>0?Object.values(this.childRefs).forEach(e=>{e?.validate?.()}):this.props.validate(),this.props.onValidateObject(this.props.forID,this.validateSize())};validateSize=()=>{const{field:e,value:t,t:r}=this.props,n=e.get("min"),o=e.get("max");if(!e.get("required",!0)&&!t?.size)return[];const i=hr.validations.validateMinMax(r,e.get("label",e.get("name")),t,n,o);return i?[i]:[]};getObjectValue=e=>this.props.value.get(e)||(0,L.Map)();handleChangeFor=q()(e=>(t,r,n)=>{const{value:o,metadata:i,onChange:a,field:s}=this.props,l=this.state.keys.indexOf(e);if(-1===l)return;const c=s.get("name"),u="object"===s.getIn(["field","widget"]),d=this.getValueType()!==Fn||this.getValueType()===Fn&&u?this.getObjectValue(l).set(t.get("name"),r):r,p={[c]:Object.assign(i?i.toJS():{},n||{})};a(o.set(l,d),p)});handleRemove=(e,t)=>{t.preventDefault();const{itemsCollapsed:r}=this.state,{value:n,metadata:o,onChange:i,field:a,clearFieldErrors:s,onValidateObject:l,forID:c,fieldsErrors:u}=this.props,d=a.get("name"),p=this.getValueType()===Fn?n.get(e):n.get(e).valueSeq(),f=o&&!o.isEmpty()?{[d]:o.removeIn(p)}:o,h=this.state.keys[e],v=[...this.state.keys];v.splice(e,1),r.splice(e,1),this.setState({itemsCollapsed:[...r],keys:v}),delete this.childRefs[h];const g=n.delete(e);u&&Object.entries(u.toJS()).forEach(([e,t])=>{t.some(e=>e.parentIds?.includes(h))&&s(e)}),0===g.size&&(s(c),l(c,[])),i(g,f)};handleItemCollapseToggle=(e,t)=>{t.preventDefault();const{itemsCollapsed:r}=this.state,n=r.map((t,r)=>e===r?!t:t);this.setState({itemsCollapsed:n})};handleCollapseAllToggle=e=>{e.preventDefault();const{value:t,field:r}=this.props,{itemsCollapsed:n,listCollapsed:o}=this.state,i=r.get("minimize_collapsed",!1),a=r.get("collapsed",!0),s=n.every(e=>!0===e);if(i){let e=n;o&&a||(e=Array(t.size).fill(!o)),this.setState({listCollapsed:!o,itemsCollapsed:e})}else this.setState({itemsCollapsed:Array(t.size).fill(!s)})};objectLabel(e){const{field:t,entry:r}=this.props;switch(this.getValueType()){case qn:{if(!Wn(t,e))return;const n=gr(t,e),o=n.get("label",n.get("name")),i=n.get("summary",t.get("summary"));return i?Un(i,r,o,e):o}case Fn:{const n=t.get("field"),o=n.get("label",n.get("name")),i=t.get("summary"),a=(0,L.fromJS)({[n.get("name")]:e});return i?Un(i,r,o,a):o}case Bn:{if(!Wn(t,e))return;const n=t.get("fields"),o=n&&n.first(),i=e.get(o.get("name")),a=t.get("summary");return((a?Un(a,r,i,e):i)||`No ${o.get("name")}`).toString()}}return""}onSortEnd=({oldIndex:e,newIndex:t})=>{const{value:r}=this.props,{itemsCollapsed:n,keys:o}=this.state,i=r.get(e),a=r.delete(e).insert(t,i);this.props.onChange(a);const s=n[e];n.splice(e,1);const l=[...n];l.splice(t,0,s);const c=o[e],u=[...o];u.splice(e,1),u.splice(t,0,c),this.setState({itemsCollapsed:l,keys:u})};hasError=e=>{const{fieldsErrors:t}=this.props;if(t&&t.size>0)return Object.values(t.toJS()).some(t=>t.some(t=>t.parentIds&&t.parentIds.includes(this.state.keys[e])))};focus(e){const[t,...r]=e.split(".");if(this.state.listCollapsed||this.state.itemsCollapsed[t]){const e=[...this.state.itemsCollapsed];e[t]=!1,this.setState({listCollapsed:!1,itemsCollapsed:e},()=>{const e=this.state.keys[t],n=this.childRefs[e];n?.focus&&n.focus(r.join("."))})}else{const e=this.state.keys[t],n=this.childRefs[e];n?.focus&&n.focus(r.join("."))}}getStableParentIds=q()((e,t,r)=>[...e,t,r],(e,t,r)=>JSON.stringify([...e,t,r]));renderItem=(e,t)=>{const{classNameWrapper:r,editorControl:o,onValidateObject:i,metadata:a,clearFieldErrors:s,fieldsErrors:l,controlRef:c,resolveWidget:u,parentIds:d,forID:p,t:f}=this.props,{itemsCollapsed:h,keys:v}=this.state,g=h[t],m=v[t];let y=this.props.field;const b=this.hasError(t),x=this.getValueType()===qn;return x&&(y=gr(y,e),!y)?this.renderErroneousTypedItem(t,e):Tn($n,{css:[Ln.listControlItem,g&&Ln.listControlItemCollapsed,";label:renderItem;"],index:t,id:m,keys:v,children:[x&&On(Vn,{field:y,isActive:!1,hasErrors:b,uniqueFieldId:this.uniqueFieldId,isFieldOptional:!1===y.get("required"),t:f}),On(jn,{collapsed:g,onCollapseToggle:$()(this.handleItemCollapseToggle,t),dragHandle:zn,id:m,allowRemove:y.get("allow_remove",!0),allowReorder:y.get("allow_reorder",!0),onRemove:$()(this.handleRemove,t),"data-testid":`styled-list-item-top-bar-${m}`}),On(Mn,{collapsed:g,error:b,children:this.objectLabel(e)}),On(n.ClassNames,{children:({css:t,cx:n})=>On(An,{classNameWrapper:n(r,{[t`
|
|
3
3
|
${"\n display: none;\n "};
|
|
4
|
-
`]:g}),value:e,field:y,onChangeObject:this.handleChangeFor(
|
|
5
|
-
${
|
|
6
|
-
`),children:[
|
|
4
|
+
`]:g}),value:e,field:y,onChangeObject:this.handleChangeFor(m),editorControl:o,resolveWidget:u,metadata:a,forList:!0,onValidateObject:i,clearFieldErrors:s,fieldsErrors:l,ref:this.processControlRef,controlRef:c,validationKey:m,collapsed:g,"data-testid":`object-control-${m}`,hasError:b,parentIds:this.getStableParentIds(d,p,m)})})]},m)};renderErroneousTypedItem(e,t){const r=function(e,t){const r=mr(e),n=t.get(r);let o;return o=n?`Error: item has illegal '${r}' property: '${n}'`:`Error: item has no '${r}' property`,o}(this.props.field,t),n=`item-${e}`;return Tn($n,{css:[Ln.listControlItem,Ln.listControlItemCollapsed,";label:ListControl;"],index:e,children:[On(jn,{onCollapseToggle:null,onRemove:$()(this.handleRemove,e,n),dragHandle:zn,id:n}),On(Mn,{collapsed:!0,error:!0,children:r})]},n)}renderListControl(){const{value:e,forID:t,field:r,classNameWrapper:o,t:i}=this.props,{itemsCollapsed:a,listCollapsed:s,keys:l}=this.state,c=e||(0,L.List)(),u=r.get("label",r.get("name")),d=r.get("label_singular")||r.get("label",r.get("name")),p=1===c.size?d.toLowerCase():u.toLowerCase(),f=r.get("minimize_collapsed",!1),h=a.every(e=>!0===e)&&(s||!f),v=l.map(e=>({id:e}));return On(n.ClassNames,{children:({cx:e,css:n})=>Tn("div",{id:t,className:e(o,n`
|
|
5
|
+
${Nn}
|
|
6
|
+
`),children:[On(fr.ObjectWidgetTopBar,{allowAdd:r.get("allow_add",!0),onAdd:this.handleAdd,types:r.get(vr,null),onAddType:e=>this.handleAddType(e,mr(r)),heading:`${c.size} ${p}`,label:d.toLowerCase(),onCollapseToggle:this.handleCollapseAllToggle,collapsed:h,t:i}),(!h||!f)&&On(Pn,{items:v,keys:l,onSortEnd:this.onSortEnd,children:c.map(this.renderItem)})]})})}renderInput(){const{forID:e,classNameWrapper:t}=this.props,{value:r}=this.state;return On("input",{type:"text",id:e,value:r,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,className:t})}render(){return null!==this.getValueType()?this.renderListControl():this.renderInput()}}const Kn={properties:{allow_add:{type:"boolean"},allow_remove:{type:"boolean"},allow_reorder:{type:"boolean"},collapsed:{type:"boolean"},summary:{type:"string"},minimize_collapsed:{type:"boolean"},label_singular:{type:"string"},i18n:{type:"boolean"},min:{type:"number"},max:{type:"number"}}},Xn=t().previewComponent,Yn={Widget:function(e={}){return{name:"list",controlComponent:Hn,previewComponent:Xn,schema:Kn,...e}},controlComponent:Hn,previewComponent:Xn}})(),d.DecapCmsWidgetList})());
|
|
7
7
|
//# sourceMappingURL=decap-cms-widget-list.js.map
|