%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/missionariosoares.com.br/wp-includes/js/dist/
Upload File :
Create Path :
Current File : /var/www/projetos/missionariosoares.com.br/wp-includes/js/dist/components.min.js

/*! This file is auto-generated */
!function(){var e,t,n={1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},1345:function(e,t,n){"use strict";var r=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,l=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),m=r.outerHeight(e),h=r.outerWidth(e),g=void 0,v=void 0,b=void 0,y=void 0,w=void 0,x=void 0,E=void 0,_=void 0,C=void 0,S=void 0;f?(E=t,S=r.height(E),C=r.width(E),_={left:r.scrollLeft(E),top:r.scrollTop(E)},w={left:p.left-_.left-c,top:p.top-_.top-l},x={left:p.left+h-(_.left+C)+d,top:p.top+m-(_.top+S)+u},y=_):(g=r.offset(t),v=t.clientHeight,b=t.clientWidth,y={left:t.scrollLeft,top:t.scrollTop},w={left:p.left-(g.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-c,top:p.top-(g.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},x={left:p.left+h-(g.left+b+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(g.top+v+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),w.top<0||x.top>0?!0===a?r.scrollTop(t,y.top+w.top):!1===a?r.scrollTop(t,y.top+x.top):w.top<0?r.scrollTop(t,y.top+w.top):r.scrollTop(t,y.top+x.top):i||((a=void 0===a||!!a)?r.scrollTop(t,y.top+w.top):r.scrollTop(t,y.top+x.top)),o&&(w.left<0||x.left>0?!0===s?r.scrollLeft(t,y.left+w.left):!1===s?r.scrollLeft(t,y.left+x.left):w.left<0?r.scrollLeft(t,y.left+w.left):r.scrollLeft(t,y.left+x.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,y.left+w.left):r.scrollLeft(t,y.left+x.left)))}},5425:function(e,t,n){"use strict";e.exports=n(1345)},5022:function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function o(e){return r(e)}function i(e){return r(e,!0)}function a(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=o(r),t.top+=i(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),l=/^(top|right|bottom|left)$/,c="currentStyle",u="runtimeStyle",d="left";var f=void 0;function p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function m(e){return"border-box"===f(e,"boxSizing")}"undefined"!=typeof window&&(f=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[c]&&e[c][t];if(s.test(n)&&!l.test(t)){var r=e.style,o=r[d],i=e[u][d];e[u][d]=e[c][d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e[u][d]=i}return""===n?"auto":n});var h=["margin","border","padding"],g=-1,v=2,b=1;function y(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===o?o+n[a]+"Width":o+n[a],r+=parseFloat(f(e,s))||0}return r}function w(e){return null!=e&&e==e.window}var x={};function E(e,t,n){if(w(e))return"width"===t?x.viewportWidth(e):x.viewportHeight(e);if(9===e.nodeType)return"width"===t?x.docWidth(e):x.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(f(e),m(e)),a=0;(null==o||o<=0)&&(o=void 0,(null==(a=f(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=parseFloat(a)||0),void 0===n&&(n=i?b:g);var s=void 0!==o||i,l=o||a;if(n===g)return s?l-y(e,["border","padding"],r):a;if(s){var c=n===v?-y(e,["border"],r):y(e,["margin"],r);return l+(n===b?0:c)}return a+y(e,h.slice(n),r)}p(["Width","Height"],(function(e){x["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],x["viewport"+e](n))},x["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var _={position:"absolute",visibility:"hidden",display:"block"};function C(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,_,(function(){t=E.apply(void 0,n)})),t}function S(e,t,r){var o=r;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):f(e,t);for(var i in t)t.hasOwnProperty(i)&&S(e,i,t[i])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);x["outer"+t]=function(t,n){return t&&C(t,e,n?0:b)};var n="width"===e?["Left","Right"]:["Top","Bottom"];x[e]=function(t,r){if(void 0===r)return t&&C(t,e,g);if(t){f(t);return m(t)&&(r+=y(t,["padding","border"],n)),S(t,e,r)}}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===S(e,"position")&&(e.style.position="relative");var n=a(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(S(e,i))||0,r[i]=o+t[i]-n[i]);S(e,r)}(e,t)},isWindow:w,each:p,css:S,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(w(e)){if(void 0===t)return o(e);window.scrollTo(t,i(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(w(e)){if(void 0===t)return i(e);window.scrollTo(o(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},x)},9214:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,m=60121,h=60122,g=60117,v=60129,b=60131;
/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),p=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}},2797:function(e,t,n){"use strict";n(9214)},5619:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},7115:function(e,t){var n={};n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=f(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,s)||i("repeating-linear-gradient",e.repeatingLinearGradient,s)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return a(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:f(p)}}))}function a(t,r){var o=b(t);if(o)return b(e.startCall)||n("Missing ("),result=r(o),b(e.endCall)||n("Missing )"),result}function s(){return v("directional",e.sideOrCorner,1)||v("angular",e.angleValue,1)}function l(){var n,r,o=c();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=c())?n.push(o):t=r)),n}function c(){var e=function(){var e=v("shape",/^(circle)/i,0);e&&(e.style=g()||u());return e}()||function(){var e=v("shape",/^(ellipse)/i,0);e&&(e.style=h()||u());return e}();if(e)e.at=function(){if(v("position",/^at/,0)){var e=d();return e||n("Missing positioning value"),e}}();else{var t=d();t&&(e={type:"default-radial",at:t})}return e}function u(){return v("extent-keyword",e.extentKeywords,1)}function d(){var e={x:h(),y:h()};if(e.x||e.y)return{type:"position",value:e}}function f(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function p(){var t=v("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:f(m)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:f(m)}}))||v("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=h(),t}function m(){return b(e.number)[1]}function h(){return v("%",e.percentageValue,1)||v("position-keyword",e.positionKeywords,1)||g()}function g(){return v("px",e.pixelValue,1)||v("em",e.emValue,1)}function v(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&y(r[0].length),(n=e.exec(t))&&y(n[0].length),n}function y(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=(n||{}).parse},3138:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?r:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,c=i.lastIndex;c>l&&e.push({highlight:!1,start:l,end:c}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},1281:function(e,t,n){"use strict";var r=n(338),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 r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},5372:function(e,t,n){"use strict";var r=n(9567);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4821:function(e,t){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}function E(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||x(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},338:function(e,t,n){"use strict";e.exports=n(4821)},2455:function(e,t,n){"use strict";var r=n(9196),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.jsx=c},7557:function(e,t,n){"use strict";e.exports=n(2455)},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var a=function(e){return e.replace(r,i)};e.exports=a,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=a},7755:function(e,t,n){"use strict";
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},635:function(e,t,n){"use strict";e.exports=n(7755)},8838:function(e,t,n){"use strict";
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},2972:function(e,t,n){"use strict";e.exports=n(8838)},9196:function(e){"use strict";e.exports=window.React},7153:function(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};!function(){"use strict";o.r(i),o.d(i,{AnglePickerControl:function(){return Eb},Animate:function(){return Hm},Autocomplete:function(){return Ab},BaseControl:function(){return qv},BlockQuotation:function(){return r.BlockQuotation},Button:function(){return xd},ButtonGroup:function(){return QC},Card:function(){return DS},CardBody:function(){return WS},CardDivider:function(){return JS},CardFooter:function(){return ek},CardHeader:function(){return nk},CardMedia:function(){return ok},CheckboxControl:function(){return ik},Circle:function(){return r.Circle},ClipboardButton:function(){return sk},ColorIndicator:function(){return gy},ColorPalette:function(){return E_},ColorPicker:function(){return s_},ComboboxControl:function(){return qT},CustomGradientPicker:function(){return Qk},CustomSelectControl:function(){return MP},Dashicon:function(){return Ql},DatePicker:function(){return bI},DateTimePicker:function(){return jI},Disabled:function(){return qI},Draggable:function(){return XI},DropZone:function(){return JI},DropZoneProvider:function(){return QI},Dropdown:function(){return xy},DropdownMenu:function(){return gT},DuotonePicker:function(){return sN},DuotoneSwatch:function(){return nN},ExternalLink:function(){return uN},Fill:function(){return Mf},Flex:function(){return _h},FlexBlock:function(){return oh},FlexItem:function(){return Ch},FocalPointPicker:function(){return LN},FocusReturnProvider:function(){return Pj},FocusableIframe:function(){return zN},FontSizePicker:function(){return OO},FormFileUpload:function(){return DO},FormToggle:function(){return LO},FormTokenField:function(){return HO},G:function(){return r.G},GradientPicker:function(){return oT},Guide:function(){return UO},GuidePage:function(){return GO},HorizontalRule:function(){return r.HorizontalRule},Icon:function(){return ec},IconButton:function(){return KO},IsolatedEventContainer:function(){return pj},KeyboardShortcuts:function(){return JO},Line:function(){return r.Line},MenuGroup:function(){return QO},MenuItem:function(){return eD},MenuItemsChoice:function(){return nD},Modal:function(){return tR},NavigableMenu:function(){return fT},Notice:function(){return yA},NoticeList:function(){return xA},Panel:function(){return _A},PanelBody:function(){return RA},PanelHeader:function(){return EA},PanelRow:function(){return PA},Path:function(){return r.Path},Placeholder:function(){return IA},Polygon:function(){return r.Polygon},Popover:function(){return Gf},QueryControls:function(){return VA},RadioControl:function(){return UA},RangeControl:function(){return lw},Rect:function(){return r.Rect},ResizableBox:function(){return ML},ResponsiveWrapper:function(){return IL},SVG:function(){return r.SVG},SandBox:function(){return OL},ScrollLock:function(){return Sd},SearchControl:function(){return fD},SelectControl:function(){return Iy},Slot:function(){return If},SlotFillProvider:function(){return Nf},Snackbar:function(){return AL},SnackbarList:function(){return zL},Spinner:function(){return $L},TabPanel:function(){return KL},TabbableContainer:function(){return rD},TextControl:function(){return YL},TextHighlight:function(){return nz},TextareaControl:function(){return tz},TimePicker:function(){return LI},Tip:function(){return oz},ToggleControl:function(){return iz},Toolbar:function(){return PB},ToolbarButton:function(){return nB},ToolbarDropdownMenu:function(){return MB},ToolbarGroup:function(){return iB},ToolbarItem:function(){return eB},Tooltip:function(){return Qf},TreeSelect:function(){return LA},VisuallyHidden:function(){return bd},__experimentalAlignmentMatrixControl:function(){return Bm},__experimentalApplyValueToSides:function(){return MC},__experimentalBorderBoxControl:function(){return sC},__experimentalBorderControl:function(){return H_},__experimentalBoxControl:function(){return JC},__experimentalConfirmDialog:function(){return rR},__experimentalDimensionControl:function(){return HI},__experimentalDivider:function(){return XS},__experimentalDropdownContentWrapper:function(){return g_},__experimentalElevation:function(){return rS},__experimentalGrid:function(){return U_},__experimentalHStack:function(){return db},__experimentalHasSplitBorders:function(){return eC},__experimentalHeading:function(){return p_},__experimentalInputControl:function(){return Zv},__experimentalInputControlPrefixWrapper:function(){return XO},__experimentalInputControlSuffixWrapper:function(){return Ey},__experimentalIsDefinedBorder:function(){return Q_},__experimentalIsEmptyBorder:function(){return J_},__experimentalItem:function(){return YO},__experimentalItemGroup:function(){return Ck},__experimentalNavigation:function(){return TD},__experimentalNavigationBackButton:function(){return ID},__experimentalNavigationGroup:function(){return DD},__experimentalNavigationItem:function(){return $D},__experimentalNavigationMenu:function(){return qD},__experimentalNavigatorBackButton:function(){return hA},__experimentalNavigatorButton:function(){return pA},__experimentalNavigatorProvider:function(){return aA},__experimentalNavigatorScreen:function(){return uA},__experimentalNavigatorToParentButton:function(){return gA},__experimentalNumberControl:function(){return mb},__experimentalPaletteEdit:function(){return DT},__experimentalParseQuantityAndUnitFromRawValue:function(){return M_},__experimentalRadio:function(){return $A},__experimentalRadioGroup:function(){return WA},__experimentalScrollable:function(){return HS},__experimentalSpacer:function(){return gh},__experimentalStyleProvider:function(){return Ef},__experimentalSurface:function(){return WL},__experimentalText:function(){return rg},__experimentalToggleGroupControl:function(){return dO},__experimentalToggleGroupControlOption:function(){return RO},__experimentalToggleGroupControlOptionIcon:function(){return sz},__experimentalToolbarContext:function(){return QF},__experimentalToolsPanel:function(){return XB},__experimentalToolsPanelContext:function(){return VB},__experimentalToolsPanelItem:function(){return QB},__experimentalTreeGrid:function(){return aj},__experimentalTreeGridCell:function(){return dj},__experimentalTreeGridItem:function(){return uj},__experimentalTreeGridRow:function(){return sj},__experimentalTruncate:function(){return f_},__experimentalUnitControl:function(){return F_},__experimentalUseCustomUnits:function(){return I_},__experimentalUseNavigator:function(){return dA},__experimentalUseSlot:function(){return rf},__experimentalUseSlotFills:function(){return mj},__experimentalVStack:function(){return d_},__experimentalView:function(){return vd},__experimentalZStack:function(){return yj},__unstableAnimatePresence:function(){return Ym},__unstableComposite:function(){return Pm},__unstableCompositeGroup:function(){return Nm},__unstableCompositeItem:function(){return ke},__unstableDisclosureContent:function(){return Xx},__unstableGetAnimateClassName:function(){return Vm},__unstableMotion:function(){return ql},__unstableUseAutocompleteProps:function(){return Db},__unstableUseCompositeState:function(){return wm},__unstableUseNavigateRegions:function(){return xj},createSlotFill:function(){return Of},navigateRegions:function(){return Ej},privateApis:function(){return eK},useBaseControlProps:function(){return Lb},withConstrainedTabbing:function(){return _j},withFallbackStyles:function(){return Cj},withFilters:function(){return Tj},withFocusOutside:function(){return $T},withFocusReturn:function(){return Rj},withNotices:function(){return Mj},withSpokenMessages:function(){return WD}});var e={};o.r(e),o.d(e,{Text:function(){return Vh},block:function(){return Hh},destructive:function(){return Wh},highlighterText:function(){return Gh},muted:function(){return Uh},positive:function(){return $h},upperCase:function(){return Kh}});var t={};o.r(t),o.d(t,{TooltipContent:function(){return oE},TooltipPopoverView:function(){return iE},TooltipShortcut:function(){return sE},noOutline:function(){return aE}});var n={};o.r(n),o.d(n,{ButtonContentView:function(){return xO},LabelView:function(){return gO},buttonView:function(){return bO},labelBlock:function(){return vO}});var r=window.wp.primitives,a=window.wp.element,s=o(7153),l=o.n(s),c=window.wp.i18n,u=window.wp.compose;function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var v=o(9196),b=o.t(v,2),y=o.n(v);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var k=(0,v.createContext)({});var T,R=function(e,t,n){void 0===n&&(n=t.children);var r=(0,v.useContext)(k);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(_(t,["children"]))}return(0,v.createElement)(e,t,n)};function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function O(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!N(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["state"]);return[I(I({},i),a),o]}function A(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}function L(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return N(t.state)&&N(n.state)?e(I(I({},t.state),t),I(I({},n.state),n)):e(t,n)}}function z(e){var t=e.as,n=e.useHook,r=e.memo,o=e.propsAreEqual,i=void 0===o?null==n?void 0:n.unstable_propsAreEqual:o,a=e.keys,s=void 0===a?(null==n?void 0:n.__keys)||[]:a,l=e.useCreateElement,c=void 0===l?R:l,u=function(e,r){var o=e.as,i=void 0===o?t:o,a=_(e,["as"]);if(n){var l,u=D(a,s),d=u[0],f=u[1],p=n(d,E({ref:r},f)),m=p.wrapElement,h=_(p,["wrapElement"]),g=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,v=g&&D(a,g)[0],b=v?E(E({},h),v):h,y=c(i,b);return m?m(y):y}return c(i,E({ref:r},a))};return u=function(e){return(0,v.forwardRef)(e)}(u),r&&(u=function(e,t){return(0,v.memo)(e,t)}(u,i&&L(i))),u.__keys=s,u.unstable_propsAreEqual=L(i||A),u}function F(e,t){(0,v.useDebugValue)(e);var n=(0,v.useContext)(k);return null!=n[e]?n[e]:t}function B(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),i=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,v.useDebugValue)(r);var o=F(r);return o?E(E({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=S(o);!(r=i()).done;){t=r.value.__useOptions(t,n)}return t},a=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=i(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,v.useDebugValue)(r);var o=F(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,s=S(o);!(a=s()).done;){n=(0,a.value)(t,n,!0)}var l={},c=n||{};for(var u in c)void 0!==c[u]&&(l[u]=c[u]);return l};a.__useOptions=i;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return a.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),a.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||A,a}function j(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function V(e,t){return(0,v.useMemo)((function(){return null==e&&null==t?null:function(n){j(e,n),j(t,n)}}),[e,t])}function H(e){return e?e.ownerDocument||e:document}try{T=window}catch(e){}function $(e){return e&&H(e).defaultView||T}var W=function(){var e=$();return Boolean(void 0!==e&&e.document&&e.document.createElement)}(),U=W?v.useLayoutEffect:v.useEffect;function G(e){var t=(0,v.useRef)(e);return U((function(){t.current=e})),t}function K(e){return e.target===e.currentTarget}function q(e){var t=H(e).activeElement;return null!=t&&t.nodeName?t:null}function Y(e,t){return e===t||e.contains(t)}function X(e){var t=q(e);if(!t)return!1;if(Y(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function Z(e){return!Y(e.currentTarget,e.target)}var J=["button","color","file","image","reset","submit"];function Q(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==J.indexOf(t.type)}return!1}function ee(e){return!!W&&-1!==window.navigator.userAgent.indexOf(e)}var te="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function ne(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,te)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=B({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=m(e,["unstable_system"]),o=t.unstable_system,i=m(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,v.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=B({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return p({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=m(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,v.useRef)(null),d=G(o),f=G(i),h=G(a),g=G(s),b=!!e.disabled&&!e.focusable,y=(0,v.useState)(!0),w=y[0],x=y[1],E=(0,v.useState)(!0),_=E[0],C=E[1],S=e.disabled?p({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var k=se(d,e.disabled),T=se(f,e.disabled),R=se(g,e.disabled),P=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return p({ref:V(u,n),style:S,tabIndex:ae(b,w,_,r),disabled:!(!b||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:k,onMouseDownCapture:T,onMouseDown:P,onKeyPressCapture:R},c)}});z({as:"div",useHook:le});var ce=B({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return p({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},m(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=m(t,["onKeyDown","onKeyUp"]),i=(0,v.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,v.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&K(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,v.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return p({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ge(e,t){e.userFocus=t}function ve(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}function be(e){var t=q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,v.createContext)(ye);var xe=B({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,v.useContext)(we),r=(0,v.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,v.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return p(p({},e),{},{id:i})},useProps:function(e,t){return p({id:e.id},t)}});z({as:"div",useHook:xe});function Ee(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=H(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function _e(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(Ee(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var Se=B({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=m(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=m(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return p(p({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=m(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,v.useRef)(null),h=e.id,b=e.disabled&&!e.focusable,y=e.currentId===h,w=G(y),x=(0,v.useRef)(!1),E=function(e){return(0,v.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),_=G(a),C=G(s),S=G(l),k=G(c),T=G(u),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,v.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:f,disabled:!!b}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,b,e.registerItem,e.unregisterItem]),(0,v.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var P=(0,v.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e),ge(e.currentTarget,!0)}),[]),M=(0,v.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ge(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&h&&!function(e,t){if(K(e))return!1;for(var n,r=g(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&K(t))){var i=H(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),I=(0,v.useCallback)((function(t){var n;null===(n=S.current)||void 0===n||n.call(S,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),N=(0,v.useCallback)((function(t){var n;if(K(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==E||!E.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ve(s)&&(s.focus(),_e(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ve(l)&&(t.preventDefault(),_e(l,""))}}}),[e.orientation,E,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,v.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return p({ref:V(f,r),id:h,tabIndex:R?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:P,onFocus:M,onBlurCapture:I,onKeyDown:N,onClick:O},d)}}),ke=z({as:"button",memo:!0,useHook:Se});const Te=Math.min,Re=Math.max,Pe=Math.round,Me=Math.floor,Ie=e=>({x:e,y:e}),Ne={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function De(e,t,n){return Re(e,Te(t,n))}function Ae(e,t){return"function"==typeof e?e(t):e}function Le(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Fe(e){return"x"===e?"y":"x"}function Be(e){return"y"===e?"height":"width"}function je(e){return["top","bottom"].includes(Le(e))?"y":"x"}function Ve(e){return Fe(je(e))}function He(e){return e.replace(/start|end/g,(e=>Oe[e]))}function $e(e){return e.replace(/left|right|bottom|top/g,(e=>Ne[e]))}function We(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ue(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ge(e,t,n){let{reference:r,floating:o}=e;const i=je(t),a=Ve(t),s=Be(a),l=Le(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ze(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Ke(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ae(t,e),m=We(p),h=s[f?"floating"===d?"reference":"floating":d],g=Ue(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function qe(e){return Ze(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xe(e){var t;return null==(t=(Ze(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ze(e){return e instanceof Node||e instanceof Ye(e).Node}function Je(e){return e instanceof Element||e instanceof Ye(e).Element}function Qe(e){return e instanceof HTMLElement||e instanceof Ye(e).HTMLElement}function et(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot)}function tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function nt(e){return["table","td","th"].includes(qe(e))}function rt(e){const t=ot(),n=at(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ot(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function it(e){return["html","body","#document"].includes(qe(e))}function at(e){return Ye(e).getComputedStyle(e)}function st(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(e){if("html"===qe(e))return e;const t=e.assignedSlot||e.parentNode||et(e)&&e.host||Xe(e);return et(t)?t.host:t}function ct(e){const t=lt(e);return it(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qe(t)&&tt(t)?t:ct(t)}function ut(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ct(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ye(o);return i?t.concat(a,a.visualViewport||[],tt(o)?o:[],a.frameElement&&n?ut(a.frameElement):[]):t.concat(o,ut(o,[],n))}function dt(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Pe(n)!==i||Pe(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ft(e){return Je(e)?e:e.contextElement}function pt(e){const t=ft(e);if(!Qe(t))return Ie(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=dt(t);let a=(i?Pe(n.width):n.width)/r,s=(i?Pe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const mt=Ie(0);function ht(e){const t=Ye(e);return ot()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mt}function gt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ft(e);let a=Ie(1);t&&(r?Je(r)&&(a=pt(r)):a=pt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ye(e))&&t}(i,n,r)?ht(i):Ie(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Ye(i),t=r&&Je(r)?Ye(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=pt(o),t=o.getBoundingClientRect(),r=at(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Ye(o),o=n.frameElement}}return Ue({width:u,height:d,x:l,y:c})}const vt=[":popover-open",":modal"];function bt(e){return vt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function yt(e){return gt(Xe(e)).left+st(e).scrollLeft}function wt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ye(e),r=Xe(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ot();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Xe(e),n=st(e),r=e.ownerDocument.body,o=Re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yt(e);const s=-n.scrollTop;return"rtl"===at(r).direction&&(a+=Re(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xe(e));else if(Je(t))r=function(e,t){const n=gt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qe(e)?pt(e):Ie(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ht(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ue(r)}function xt(e,t){const n=lt(e);return!(n===t||!Je(n)||it(n))&&("fixed"===at(n).position||xt(n,t))}function Et(e,t,n){const r=Qe(t),o=Xe(t),i="fixed"===n,a=gt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ie(0);if(r||!r&&!i)if(("body"!==qe(t)||tt(o))&&(s=st(t)),r){const e=gt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=yt(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function _t(e){return"static"===at(e).position}function Ct(e,t){return Qe(e)&&"fixed"!==at(e).position?t?t(e):e.offsetParent:null}function St(e,t){const n=Ye(e);if(bt(e))return n;if(!Qe(e)){let t=lt(e);for(;t&&!it(t);){if(Je(t)&&!_t(t))return t;t=lt(t)}return n}let r=Ct(e,t);for(;r&&nt(r)&&_t(r);)r=Ct(r,t);return r&&it(r)&&_t(r)&&!rt(r)?n:r||function(e){let t=lt(e);for(;Qe(t)&&!it(t);){if(rt(t))return t;t=lt(t)}return null}(e)||n}const kt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Xe(r),s=!!t&&bt(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ie(1);const u=Ie(0),d=Qe(r);if((d||!d&&!i)&&(("body"!==qe(r)||tt(a))&&(l=st(r)),Qe(r))){const e=gt(r);c=pt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Xe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?bt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ut(e,[],!1).filter((e=>Je(e)&&"body"!==qe(e))),o=null;const i="fixed"===at(e).position;let a=i?lt(e):e;for(;Je(a)&&!it(a);){const t=at(a),n=rt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||tt(a)&&!n&&xt(e,a))?r=r.filter((e=>e!==a)):o=t,a=lt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=wt(t,n,o);return e.top=Re(r.top,e.top),e.right=Te(r.right,e.right),e.bottom=Te(r.bottom,e.bottom),e.left=Re(r.left,e.left),e}),wt(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:St,getElementRects:async function(e){const t=this.getOffsetParent||St,n=this.getDimensions,r=await n(e.floating);return{reference:Et(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=dt(e);return{width:t,height:n}},getScale:pt,isElement:Je,isRTL:function(e){return"rtl"===at(e).direction}};function Tt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=ft(e),u=o||i?[...c?ut(c):[],...ut(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=Xe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Me(u)+"px "+-Me(o.clientWidth-(c+d))+"px "+-Me(o.clientHeight-(u+f))+"px "+-Me(c)+"px",threshold:Re(0,Te(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?gt(e):null;return l&&function t(){const r=gt(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Rt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Le(n),s=ze(n),l="y"===je(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Ae(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Pt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ae(e,t),c={x:n,y:r},u=await Ke(t,l),d=je(Le(o)),f=Fe(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=De(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=De(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Mt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ae(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Le(o),b=Le(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[$e(s)]:function(e){const t=$e(e);return[He(e),t,He(t)]}(s));f||"none"===m||w.push(...function(e,t,n,r){const o=ze(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Le(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(He)))),i}(s,h,m,y));const x=[s,...w],E=await Ke(t,g),_=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ze(e),o=Ve(e),i=Be(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$e(a)),[a,$e(a)]}(o,a,y);_.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:_}],!_.every((e=>e<=0))){var S,k;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(k=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},It=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Ae(e,t),l=await Ke(t,s),c=Le(n),u=ze(n),d="y"===je(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-l.top-l.bottom,v=f-l.left-l.right,b=Te(p-l[m],g),y=Te(f-l[h],v),w=!t.middlewareData.shift;let x=b,E=y;if(d?E=u||w?Te(y,v):v:x=u||w?Te(b,g):g,w&&!u){const e=Re(l.left,0),t=Re(l.right,0),n=Re(l.top,0),r=Re(l.bottom,0);d?E=f-2*(0!==e||0!==t?e+t:Re(l.left,l.right)):x=p-2*(0!==n||0!==r?n+r:Re(l.top,l.bottom))}await a({...t,availableWidth:E,availableHeight:x});const _=await o.getDimensions(i.floating);return f!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}},Nt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ae(e,t)||{};if(null==c)return{};const d=We(u),f={x:n,y:r},p=Ve(o),m=Be(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==a.isElement?void 0:a.isElement(E))||(_=s.floating[y]||i.floating[m]);const C=w/2-x/2,S=_/2-h[m]/2-1,k=Te(d[v],S),T=Te(d[b],S),R=k,P=_-h[m]-T,M=_/2-h[m]/2+C,I=De(R,M,P),N=!l.arrow&&null!=ze(o)&&M!==I&&i.reference[m]/2-(M<R?k:T)-h[m]/2<0,O=N?M<R?M-R:M-P:0;return{[p]:f[p]+O,data:{[p]:I,centerOffset:M-I-O,...N&&{alignmentOffset:O}},reset:N}}}),Ot=(e,t,n)=>{const r=new Map,o={platform:kt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ge(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Ge(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Dt=window.ReactDOM,At=o.n(Dt),Lt="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function zt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!zt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!zt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ft(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const[i,a]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[s,l]=v.useState(t);zt(null==s?void 0:s.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(i),p=function(e){const t=v.useRef(e);return Lt((()=>{t.current=e})),t}(o),m=v.useCallback((()=>{c.current&&u.current&&Ot(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!zt(f.current,e)&&(f.current=e,Dt.flushSync((()=>{a(e)})))}))}),[s,n,r]);Lt((()=>{h.current&&m()}),[m]);const h=v.useRef(!1);Lt((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=v.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),b=v.useCallback((e=>{c.current=e,g()}),[g]),y=v.useCallback((e=>{u.current=e,g()}),[g]),w=v.useMemo((()=>({reference:c,floating:u})),[]);return v.useMemo((()=>({...i,update:m,refs:w,reference:b,floating:y})),[i,m,w,b,y])}const Bt=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Nt({element:t.current,padding:n}).fn(e):{}:t?Nt({element:t,padding:n}).fn(e):{};var r}}},jt="undefined"!=typeof document,Vt={current:null},Ht={current:!1};function $t(){if(Ht.current=!0,jt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vt.current=e.matches;e.addListener(t),t()}else Vt.current=!1}const Wt=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ut=(0,v.createContext)({}),Gt=(0,v.createContext)(null),Kt=jt?v.useLayoutEffect:v.useEffect,qt=(0,v.createContext)({strict:!1});function Yt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Xt(e){return"string"==typeof e||Array.isArray(e)}function Zt(e){return"object"==typeof e&&"function"==typeof e.start}const Jt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qt=["initial",...Jt];function en(e){return Zt(e.animate)||Qt.some((t=>Xt(e[t])))}function tn(e){return Boolean(en(e)||e.variants)}function nn(e){const{initial:t,animate:n}=function(e,t){if(en(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Xt(t)?t:void 0,animate:Xt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,v.useContext)(Ut));return(0,v.useMemo)((()=>({initial:t,animate:n})),[rn(t),rn(n)])}function rn(e){return Array.isArray(e)?e.join(" "):e}const on={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},an={};for(const e in on)an[e]={isEnabled:t=>on[e].some((e=>!!t[e]))};function sn(e){const t=(0,v.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ln={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let cn=1;const un=(0,v.createContext)({}),dn=(0,v.createContext)({}),fn=Symbol.for("motionComponentSymbol");function pn({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)an[t]={...an[t],...e[t]}}(e);const i=(0,v.forwardRef)((function(i,a){let s;const l={...(0,v.useContext)(Wt),...i,layoutId:mn(i)},{isStatic:c}=l,u=nn(i),d=c?void 0:sn((()=>{if(ln.hasEverUpdated)return cn++})),f=r(i,c);if(!c&&jt){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,v.useContext)(Ut),i=(0,v.useContext)(qt),a=(0,v.useContext)(Gt),s=(0,v.useContext)(Wt).reducedMotion,l=(0,v.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return(0,v.useInsertionEffect)((()=>{c&&c.update(n,a)})),Kt((()=>{c&&c.render()})),(0,v.useEffect)((()=>{c&&c.updateFeatures()})),(window.HandoffAppearAnimations?Kt:v.useEffect)((()=>{c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,l,t);const n=(0,v.useContext)(dn),r=(0,v.useContext)(qt).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,d,n))}return v.createElement(Ut.Provider,{value:u},s&&u.visualElement?v.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,d,function(e,t,n){return(0,v.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Yt(n)&&(n.current=r))}),[t])}(f,u.visualElement,a),f,c,u.visualElement))}));return i[fn]=o,i}function mn({layoutId:e}){const t=(0,v.useContext)(un).id;return t&&void 0!==e?t+"-"+e:e}function hn(e){function t(t,n={}){return pn(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const gn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vn(e){return"string"==typeof e&&!e.includes("-")&&!!(gn.indexOf(e)>-1||/[A-Z]/.test(e))}const bn={};const yn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(yn);function xn(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!bn[e]||"opacity"===e)}const En=e=>Boolean(e&&e.getVelocity),_n={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cn=yn.length;const Sn=e=>t=>"string"==typeof t&&t.startsWith(e),kn=Sn("--"),Tn=Sn("var(--"),Rn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Pn=(e,t,n)=>Math.min(Math.max(n,e),t),Mn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},In={...Mn,transform:e=>Pn(0,1,e)},Nn={...Mn,default:1},On=e=>Math.round(1e5*e)/1e5,Dn=/(-)?([\d]*\.?[\d])+/g,An=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ln=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function zn(e){return"string"==typeof e}const Fn=e=>({test:t=>zn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=Fn("deg"),jn=Fn("%"),Vn=Fn("px"),Hn=Fn("vh"),$n=Fn("vw"),Wn={...jn,parse:e=>jn.parse(e)/100,transform:e=>jn.transform(100*e)},Un={...Mn,transform:Math.round},Gn={borderWidth:Vn,borderTopWidth:Vn,borderRightWidth:Vn,borderBottomWidth:Vn,borderLeftWidth:Vn,borderRadius:Vn,radius:Vn,borderTopLeftRadius:Vn,borderTopRightRadius:Vn,borderBottomRightRadius:Vn,borderBottomLeftRadius:Vn,width:Vn,maxWidth:Vn,height:Vn,maxHeight:Vn,size:Vn,top:Vn,right:Vn,bottom:Vn,left:Vn,padding:Vn,paddingTop:Vn,paddingRight:Vn,paddingBottom:Vn,paddingLeft:Vn,margin:Vn,marginTop:Vn,marginRight:Vn,marginBottom:Vn,marginLeft:Vn,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:Nn,scaleX:Nn,scaleY:Nn,scaleZ:Nn,skew:Bn,skewX:Bn,skewY:Bn,distance:Vn,translateX:Vn,translateY:Vn,translateZ:Vn,x:Vn,y:Vn,z:Vn,perspective:Vn,transformPerspective:Vn,opacity:In,originX:Wn,originY:Wn,originZ:Vn,zIndex:Un,fillOpacity:In,strokeOpacity:In,numOctaves:Un};function Kn(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(kn(e)){i[e]=n;continue}const r=Gn[e],d=Rn(n,r);if(wn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Cn;t++){const n=yn[t];void 0!==e[n]&&(i+=`${_n[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const qn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yn(e,t,n){for(const r in t)En(t[r])||xn(r,n)||(e[r]=t[r])}function Xn(e,t,n){const r={};return Yn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,v.useMemo)((()=>{const r=qn();return Kn(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Zn(e,t,n){const r={},o=Xn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Jn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Qn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Jn.has(e)}let er=e=>!Qn(e);try{(tr=require("@emotion/is-prop-valid").default)&&(er=e=>e.startsWith("on")?!Qn(e):tr(e))}catch(Dz){}var tr;function nr(e,t,n){return"string"==typeof e?e:Vn.transform(t+n*e)}const rr={offset:"stroke-dashoffset",array:"stroke-dasharray"},or={offset:"strokeDashoffset",array:"strokeDasharray"};function ir(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Kn(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${nr(t,e.x,e.width)} ${nr(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?rr:or;e[i.offset]=Vn.transform(-r);const a=Vn.transform(t),s=Vn.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const ar=()=>({...qn(),attrs:{}}),sr=e=>"string"==typeof e&&"svg"===e.toLowerCase();function lr(e,t,n,r){const o=(0,v.useMemo)((()=>{const n=ar();return ir(n,t,{enableHardwareAcceleration:!1},sr(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Yn(t,e.style,e),o.style={...t,...o.style}}return o}function cr(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(vn(t)?lr:Zn)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(er(o)||!0===n&&Qn(o)||!t&&!Qn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,v.useMemo)((()=>En(u)?u.get():u),[u]);return r&&(c["data-projection-id"]=r),(0,v.createElement)(t,{...c,children:d})}}const ur=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function dr(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const fr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function pr(e,t,n,r){dr(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(fr.has(n)?n:ur(n),t.attrs[n])}function mr(e,t){const{style:n}=e,r={};for(const o in n)(En(n[o])||t.style&&En(t.style[o])||xn(o,e))&&(r[o]=n[o]);return r}function hr(e,t){const n=mr(e,t);for(const r in e)if(En(e[r])||En(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function gr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const vr=e=>Array.isArray(e),br=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),yr=e=>vr(e)?e[e.length-1]||0:e;function wr(e){const t=En(e)?e.get():e;return br(t)?t.toValue():t}const xr=e=>(t,n)=>{const r=(0,v.useContext)(Ut),o=(0,v.useContext)(Gt),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Er(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():sn(i)};function Er(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=wr(i[e]);let{initial:a,animate:s}=e;const l=en(e),c=tn(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Zt(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=gr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const _r={useVisualState:xr({scrapeMotionValuesFromProps:hr,createRenderState:ar,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ir(n,r,{enableHardwareAcceleration:!1},sr(t.tagName),e.transformTemplate),pr(t,n)}})},Cr={useVisualState:xr({scrapeMotionValuesFromProps:mr,createRenderState:qn})};function Sr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const kr=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Tr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Rr=e=>t=>kr(t)&&e(t,Tr(t));function Pr(e,t,n,r){return Sr(e,t,Rr(n),r)}const Mr=(e,t)=>n=>t(e(n)),Ir=(...e)=>e.reduce(Mr);function Nr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Or=Nr("dragHorizontal"),Dr=Nr("dragVertical");function Ar(e){let t=!1;if("y"===e)t=Dr();else if("x"===e)t=Or();else{const e=Or(),n=Dr();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Lr(){const e=Ar(!0);return!e||(e(),!1)}class zr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Fr={delta:0,timestamp:0,isProcessing:!1};let Br=!0,jr=!1;const Vr=["read","update","preRender","render","postRender"],Hr=Vr.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>jr=!0)),e)),{}),$r=Vr.reduce(((e,t)=>{const n=Hr[t];return e[t]=(e,t=!1,r=!1)=>(jr||qr(),n.schedule(e,t,r)),e}),{}),Wr=Vr.reduce(((e,t)=>(e[t]=Hr[t].cancel,e)),{}),Ur=Vr.reduce(((e,t)=>(e[t]=()=>Hr[t].process(Fr),e)),{}),Gr=e=>Hr[e].process(Fr),Kr=e=>{jr=!1,Fr.delta=Br?1e3/60:Math.max(Math.min(e-Fr.timestamp,40),1),Fr.timestamp=e,Fr.isProcessing=!0,Vr.forEach(Gr),Fr.isProcessing=!1,jr&&(Br=!1,requestAnimationFrame(Kr))},qr=()=>{jr=!0,Br=!0,Fr.isProcessing||requestAnimationFrame(Kr)};function Yr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Pr(e.current,n,((n,o)=>{if("touch"===n.type||Lr())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&$r.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Xr=(e,t)=>!!t&&(e===t||Xr(e,t.parentElement)),Zr=e=>e;function Jr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Tr(n))}const Qr=new WeakMap,eo=new WeakMap,to=e=>{const t=Qr.get(e.target);t&&t(e)},no=e=>{e.forEach(to)};function ro(e,t,n){const r=function({root:e,...t}){const n=e||document;eo.has(n)||eo.set(n,{});const r=eo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(no,{root:e,...t})),r[o]}(t);return Qr.set(e,n),r.observe(e),()=>{Qr.delete(e),r.unobserve(e)}}const oo={some:0,all:1};const io={inView:{Feature:class extends zr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:oo[r]};return ro(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends zr{constructor(){super(...arguments),this.removeStartListeners=Zr,this.removeEndListeners=Zr,this.removeAccessibleListeners=Zr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Pr(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();$r.update((()=>{Xr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Pr(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ir(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Sr(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Sr(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Jr("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&$r.update((()=>n(e,t)))}))})),Jr("down",((e,t)=>{this.startPress(e,t)}))})),t=Sr(this.node.current,"blur",(()=>{this.isPressing&&Jr("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ir(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&$r.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Lr()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&$r.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Pr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Sr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ir(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends zr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ir(Sr(this.node.current,"focus",(()=>this.onFocus())),Sr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends zr{mount(){this.unmount=Ir(Yr(this.node,!0),Yr(this.node,!1))}unmount(){}}}};function ao(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function so(e,t,n){const r=e.getProps();return gr(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const lo="data-"+ur("framerAppearId");let co=Zr,uo=Zr;const fo=e=>1e3*e,po=e=>e/1e3,mo=!1,ho=e=>Array.isArray(e)&&"number"==typeof e[0];function go(e){return Boolean(!e||"string"==typeof e&&bo[e]||ho(e)||Array.isArray(e)&&e.every(go))}const vo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vo([0,.65,.55,1]),circOut:vo([.55,0,1,.45]),backIn:vo([.31,.01,.66,-.59]),backOut:vo([.33,1.53,.69,.99])};function yo(e){if(e)return ho(e)?vo(e):Array.isArray(e)?e.map(yo):bo[e]}const wo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},xo={},Eo={};for(const e in wo)Eo[e]=()=>(void 0===xo[e]&&(xo[e]=wo[e]()),xo[e]);const _o=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Co=1e-7,So=12;function ko(e,t,n,r){if(e===t&&n===r)return Zr;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=_o(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>Co&&++s<So);return a}(t,0,1,e,n);return e=>0===e||1===e?e:_o(o(e),t,r)}const To=ko(.42,0,1,1),Ro=ko(0,0,.58,1),Po=ko(.42,0,.58,1),Mo=e=>Array.isArray(e)&&"number"!=typeof e[0],Io=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,No=e=>t=>1-e(1-t),Oo=e=>1-Math.sin(Math.acos(e)),Do=No(Oo),Ao=Io(Do),Lo=ko(.33,1.53,.69,.99),zo=No(Lo),Fo=Io(zo),Bo={linear:Zr,easeIn:To,easeInOut:Po,easeOut:Ro,circIn:Oo,circInOut:Ao,circOut:Do,backIn:zo,backInOut:Fo,backOut:Lo,anticipate:e=>(e*=2)<1?.5*zo(e):.5*(2-Math.pow(2,-10*(e-1)))},jo=e=>{if(Array.isArray(e)){uo(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return ko(t,n,r,o)}return"string"==typeof e?(uo(void 0!==Bo[e],`Invalid easing type '${e}'`),Bo[e]):e},Vo=(e,t)=>n=>Boolean(zn(n)&&Ln.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ho=(e,t,n)=>r=>{if(!zn(r))return r;const[o,i,a,s]=r.match(Dn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},$o={...Mn,transform:e=>Math.round((e=>Pn(0,255,e))(e))},Wo={test:Vo("rgb","red"),parse:Ho("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$o.transform(e)+", "+$o.transform(t)+", "+$o.transform(n)+", "+On(In.transform(r))+")"};const Uo={test:Vo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Wo.transform},Go={test:Vo("hsl","hue"),parse:Ho("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+jn.transform(On(t))+", "+jn.transform(On(n))+", "+On(In.transform(r))+")"},Ko={test:e=>Wo.test(e)||Uo.test(e)||Go.test(e),parse:e=>Wo.test(e)?Wo.parse(e):Go.test(e)?Go.parse(e):Uo.parse(e),transform:e=>zn(e)?e:e.hasOwnProperty("red")?Wo.transform(e):Go.transform(e)},qo=(e,t,n)=>-n*e+n*t+e;function Yo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Xo=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Zo=[Uo,Wo,Go];function Jo(e){const t=(e=>Zo.find((t=>t.test(e))))(e);uo(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Go&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Yo(s,r,e+1/3),i=Yo(s,r,e),a=Yo(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Qo=(e,t)=>{const n=Jo(e),r=Jo(t),o={...n};return e=>(o.red=Xo(n.red,r.red,e),o.green=Xo(n.green,r.green,e),o.blue=Xo(n.blue,r.blue,e),o.alpha=qo(n.alpha,r.alpha,e),Wo.transform(o))},ei="${c}",ti="${n}";function ni(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(An);o&&(n=o.length,e=e.replace(An,ei),t.push(...o.map(Ko.parse)));const i=e.match(Dn);return i&&(r=i.length,e=e.replace(Dn,ti),t.push(...i.map(Mn.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function ri(e){return ni(e).values}function oi(e){const{values:t,numColors:n,tokenised:r}=ni(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?ei:ti,r<n?Ko.transform(e[r]):On(e[r]));return t}}const ii=e=>"number"==typeof e?0:e;const ai={test:function(e){var t,n;return isNaN(e)&&zn(e)&&((null===(t=e.match(Dn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(An))||void 0===n?void 0:n.length)||0)>0},parse:ri,createTransformer:oi,getAnimatableNone:function(e){const t=ri(e);return oi(e)(t.map(ii))}};function si(e,t){return"number"==typeof e?n=>qo(e,t,n):Ko.test(e)?Qo(e,t):ui(e,t)}const li=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>si(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ci=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=si(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ui=(e,t)=>{const n=ai.createTransformer(t),r=ni(e),o=ni(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Ir(li(r.values,o.values),n):(co(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},di=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},fi=(e,t)=>n=>qo(e,t,n);function pi(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?fi:"string"==typeof e?Ko.test(e)?Qo:ui:Array.isArray(e)?li:"object"==typeof e?ci:fi}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Zr:t;i=Ir(e,i)}r.push(i)}return r}function mi(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(uo(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pi(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=di(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Pn(e[0],e[i-1],t)):l}function hi(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=di(0,t,r);e.push(qo(n,1,o))}}(t,e.length-1),t}function gi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Mo(r)?r.map(jo):jo(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:hi(t),e),s=mi(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Po)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function vi(e,t){return t?e*(1e3/t):0}const bi=5;function yi(e,t,n){const r=Math.max(t-bi,0);return vi(n-e(r),t-r)}const wi=.001,xi=.01,Ei=10,_i=.05,Ci=1;function Si({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;co(e<=fo(Ei),"Spring duration must be 10 seconds or less");let a=1-t;a=Pn(_i,Ci,a),e=Pn(xi,Ei,po(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Ti(t,a),l=Math.exp(-o);return wi-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Ti(Math.pow(t,2),a);return(-o(t)+wi>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-wi,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<ki;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=fo(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const ki=12;function Ti(e,t){return e*Math.sqrt(1-t*t)}const Ri=["duration","bounce"],Pi=["stiffness","damping","mass"];function Mi(e,t){return t.some((t=>void 0!==e[t]))}function Ii({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Mi(e,Pi)&&Mi(e,Ri)){const n=Si(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-po(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=po(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=Ti(g,m);b=t=>{const n=Math.exp(-m*g*t);return i-n*((p+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return i-n*((p+m*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?yi(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Ni({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let w,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(w=e,x=Ii({keyframes:[f.value,p(f.value)],velocity:yi(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,y(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&y(e),f)}}}const Oi=e=>{const t=({timestamp:t})=>e(t);return{start:()=>$r.update(t,!0),stop:()=>Wr.update(t),now:()=>Fr.isProcessing?Fr.timestamp:performance.now()}},Di=2e4;function Ai(e){let t=0;let n=e.next(t);for(;!n.done&&t<Di;)t+=50,n=e.next(t);return t>=Di?1/0:t}const Li={decay:Ni,inertia:Ni,tween:gi,keyframes:gi,spring:Ii};function zi({autoplay:e=!0,delay:t=0,driver:n=Oi,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,m,h=1,g=!1;const v=()=>{p&&p(),m=new Promise((e=>{p=e}))};let b;v();const y=Li[o]||gi;let w;y!==gi&&"number"!=typeof r[0]&&(w=mi([0,100],r,{clamp:!1}),r=[0,100]);const x=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",C=null,S=null,k=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ai(x));const{calculatedDuration:T}=x;let R=1/0,P=1/0;null!==T&&(R=T+a,P=R*(i+1)-a);let M=0;const I=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),M=null!==C?C:(e-S)*h;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===_&&null===C&&(M=P);let l=M,c=x;if(i){const e=M/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(c=E));let o=Pn(0,1,n);M>P&&(o="reverse"===s&&r?1:0),l=o*R}const u=o?{done:!1,value:r[0]}:c.next(l);w&&(u.value=w(u.value));let{done:f}=u;o||null===T||(f=M>=P);const p=null===C&&("finished"===_||"running"===_&&f||h<0&&M<=0);return d&&d(u.value),p&&D(),u},N=()=>{b&&b.stop(),b=void 0},O=()=>{_="idle",N(),v(),S=k=null},D=()=>{_="finished",u&&u(),N(),v()},A=()=>{if(g)return;b||(b=n(I));const e=b.now();l&&l(),null!==C?S=e-C:S&&"finished"!==_||(S=e),k=S,C=null,_="running",b.start()};e&&A();const L={then(e,t){return m.then(e,t)},get time(){return po(M)},set time(e){e=fo(e),M=e,null===C&&b&&0!==h?S=b.now()-e/h:C=e},get duration(){const e=null===x.calculatedDuration?Ai(x):x.calculatedDuration;return po(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=po(M))},get state(){return _},play:A,pause:()=>{_="paused",C=M},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),O())},cancel:()=>{null!==k&&I(k),O()},complete:()=>{_="finished"},sample:e=>(S=0,I(e))};return L}const Fi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Bi(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Eo.waapi()&&Fi.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!go(t.ease))(t,o)){const e=zi({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=yo(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f}),m=()=>p.cancel(),h=()=>{$r.update(m),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then(e,t){return a.then(e,t)},get time(){return po(p.currentTime||0)},set time(e){p.currentTime=fo(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return po(u)},play:()=>{s||(p.play(),Wr.update(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=zi({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const ji={type:"spring",stiffness:500,damping:25,restSpeed:10},Vi={type:"keyframes",duration:.8},Hi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$i=(e,{keyframes:t})=>t.length>2?Vi:wn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ji:Hi,Wi=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ai.test(t)||t.startsWith("url("))),Ui=new Set(["brightness","contrast","saturate","opacity"]);function Gi(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Dn)||[];if(!r)return e;const o=n.replace(r,"");let i=Ui.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Ki=/([a-z-]*)\(.*?\)/g,qi={...ai,getAnimatableNone:e=>{const t=e.match(Ki);return t?t.map(Gi).join(" "):e}},Yi={...Gn,color:Ko,backgroundColor:Ko,outlineColor:Ko,fill:Ko,stroke:Ko,borderColor:Ko,borderTopColor:Ko,borderRightColor:Ko,borderBottomColor:Ko,borderLeftColor:Ko,filter:qi,WebkitFilter:qi},Xi=e=>Yi[e];function Zi(e,t){let n=Xi(e);return n!==qi&&(n=ai),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Ji(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Qi(e){return"number"==typeof e?0:Zi("",e)}function ea(e,t){return e[t]||e.default||e}const ta=(e,t,n,r={})=>o=>{const i=ea(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=fo(a);const l=function(e,t,n,r){const o=Wi(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=Zi(t,n):Ji(i)&&"string"==typeof n?i=Qi(n):!Array.isArray(n)&&Ji(n)&&"string"==typeof i&&(n=Qi(i)),Array.isArray(n)?function(e,[...t]){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=0===n?e:t[n-1]);return t}(i,n):[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=Wi(e,c),f=Wi(e,u);co(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...$i(e,p)}),p.duration&&(p.duration=fo(p.duration)),p.repeatDelay&&(p.repeatDelay=fo(p.repeatDelay)),!d||!f||mo||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Zr,pause:Zr,stop:Zr,then:e=>(e(),Promise.resolve()),cancel:Zr,complete:Zr});return t?zi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Bi(t,e,p);if(n)return n}return zi(p)};function na(e){return Boolean(En(e)&&e.add)}const ra=e=>/^\-?\d*\.?\d+$/.test(e),oa=e=>/^0[^.\s]+$/.test(e);function ia(e,t){-1===e.indexOf(t)&&e.push(t)}function aa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class sa{constructor(){this.subscriptions=[]}add(e){return ia(this.subscriptions,e),()=>aa(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class la{constructor(e,t={}){var n;this.version="10.11.6",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Fr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,$r.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>$r.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new sa);const n=this.events[e].add(t);return"change"===e?()=>{n(),$r.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?vi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ca(e,t){return new la(e,t)}const ua=e=>t=>t.test(e),da=[Mn,Vn,jn,Bn,$n,Hn,{test:e=>"auto"===e,parse:e=>e}],fa=e=>da.find(ua(e)),pa=[...da,Ko,ai],ma=e=>pa.find(ua(e));function ha(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ca(n))}function ga(e,t){const n=so(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){ha(e,t,yr(i[t]))}}function va(e,t){if(!t)return;return(t[e]||t.default||t).from}function ba({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ya(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&ba(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[lo];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,$r))}r.start(ta(t,r,o,e.shouldReduceMotion&&wn.has(t)?{type:!1}:a));const d=r.animation;na(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&ga(e,a)})),c}function wa(e,t,n={}){const r=so(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ya(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(xa).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(wa(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function xa(e,t){return e.sortNodePosition(t)}const Ea=[...Jt].reverse(),_a=Jt.length;function Ca(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>wa(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=wa(e,t,n);else{const o="function"==typeof t?so(e,t,n.custom):t;r=Promise.all(ya(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Sa(e){let t=Ca(e);const n={animate:Ta(!0),whileInView:Ta(),whileHover:Ta(),whileTap:Ta(),whileDrag:Ta(),whileFocus:Ta(),exit:Ta()};let r=!0;const o=(t,n)=>{const r=so(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<_a;t++){const p=Ea[t],m=n[p],h=void 0!==s[p]?s[p]:l[p],g=Xt(h),v=p===a?m.isActive:null;!1===v&&(f=t);let b=h===l[p]&&h!==s[p]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===v||!h&&!m.prevProp||Zt(h)||"boolean"==typeof h)continue;const y=ka(m.prevProp,h);let w=y||p===a&&m.isActive&&!b&&g||t>f&&g;const x=Array.isArray(h)?h:[h];let E=x.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=m,C={..._,...E},S=e=>{w=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in C){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?vr(t)&&vr(n)?!ao(t,n)||y?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):u.add(e):void 0!==t&&u.has(e)?S(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=E,m.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&c.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ka(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ao(t,e)}function Ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Ra=0;const Pa={animation:{Feature:class extends zr{constructor(e){super(e),e.animationState||(e.animationState=Sa(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Zt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends zr{constructor(){super(...arguments),this.id=Ra++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ma=(e,t)=>Math.abs(e-t);class Ia{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Da(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ma(e.x,t.x),r=Ma(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Fr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Na(t,this.transformPagePoint),$r.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Da("pointercancel"===e.type?this.lastMoveEventInfo:Na(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!kr(e))return;this.handlers=t,this.transformPagePoint=n;const r=Na(Tr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Fr;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Da(r,this.history)),this.removeListeners=Ir(Pr(window,"pointermove",this.handlePointerMove),Pr(window,"pointerup",this.handlePointerUp),Pr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Wr.update(this.updatePoint)}}function Na(e,t){return t?{point:t(e.point)}:e}function Oa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Da({point:e},t){return{point:e,delta:Oa(e,La(t)),offset:Oa(e,Aa(t)),velocity:za(t,.1)}}function Aa(e){return e[0]}function La(e){return e[e.length-1]}function za(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=La(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>fo(t)));)n--;if(!r)return{x:0,y:0};const i=po(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Fa(e){return e.max-e.min}function Ba(e,t=0,n=.01){return Math.abs(e-t)<=n}function ja(e,t,n,r=.5){e.origin=r,e.originPoint=qo(t.min,t.max,e.origin),e.scale=Fa(n)/Fa(t),(Ba(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=qo(n.min,n.max,e.origin)-e.originPoint,(Ba(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Va(e,t,n,r){ja(e.x,t.x,n.x,r?r.originX:void 0),ja(e.y,t.y,n.y,r?r.originY:void 0)}function Ha(e,t,n){e.min=n.min+t.min,e.max=e.min+Fa(t)}function $a(e,t,n){e.min=t.min-n.min,e.max=e.min+Fa(t)}function Wa(e,t,n){$a(e.x,t.x,n.x),$a(e.y,t.y,n.y)}function Ua(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Ga(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ka=.35;function qa(e,t,n){return{min:Ya(e,t),max:Ya(e,n)}}function Ya(e,t){return"number"==typeof e?e:e[t]||0}const Xa=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Za=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ja(e){return[e("x"),e("y")]}function Qa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function es(e){return void 0===e||1===e}function ts({scale:e,scaleX:t,scaleY:n}){return!es(e)||!es(t)||!es(n)}function ns(e){return ts(e)||rs(e)||e.z||e.rotate||e.rotateX||e.rotateY}function rs(e){return os(e.x)||os(e.y)}function os(e){return e&&"0%"!==e}function is(e,t,n){return n+t*(e-n)}function as(e,t,n,r,o){return void 0!==o&&(e=is(e,o,r)),is(e,n,r)+t}function ss(e,t=0,n=1,r,o){e.min=as(e.min,t,n,r,o),e.max=as(e.max,t,n,r,o)}function ls(e,{x:t,y:n}){ss(e.x,t.translate,t.scale,t.originPoint),ss(e.y,n.translate,n.scale,n.originPoint)}function cs(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function us(e,t){e.min=e.min+t,e.max=e.max+t}function ds(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=qo(e.min,e.max,i);ss(e,t[n],t[r],a,t.scale)}const fs=["x","scaleX","originX"],ps=["y","scaleY","originY"];function ms(e,t){ds(e.x,t,fs),ds(e.y,t,ps)}function hs(e,t){return Qa(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const gs=new WeakMap;class vs{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Za(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Ia(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Tr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ar(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ja((e=>{let t=this.getAxisMotionValue(e).get()||0;if(jn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Fa(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&$r.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&$r.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!bs(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?qo(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?qo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Yt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Ua(e.x,n,o),y:Ua(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ka){return!1===e?e=0:!0===e&&(e=Ka),{x:qa(e,"left","right"),y:qa(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ja((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Yt(e))return!1;const n=e.current;uo(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=hs(e,n),{scroll:o}=t;return o&&(us(r.x,o.offset.x),us(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Ga(e.x,t.x),y:Ga(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Qa(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Ja((a=>{if(!bs(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(ta(e,n,0,t))}stopAnimation(){Ja((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ja((t=>{const{drag:n}=this.getProps();if(!bs(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-qo(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Yt(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ja((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Fa(e),o=Fa(t);return o>r?n=di(t.min,t.max-r,e.min):r>o&&(n=di(e.min,e.max-o,t.min)),Pn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ja((t=>{if(!bs(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(qo(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;gs.set(this.visualElement,this);const e=Pr(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Yt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Sr(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ja((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ka,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function bs(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ys=e=>(t,n)=>{e&&$r.update((()=>e(t,n)))};function ws(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xs={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Vn.test(e))return e;e=parseFloat(e)}return`${ws(e,t.target.x)}% ${ws(e,t.target.y)}%`}},Es=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const _s=4;function Cs(e,t,n=1){uo(n<=_s,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Es.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Tn(o)?Cs(o,t,n+1):o}const Ss="_$css",ks={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(Es,(e=>(i.push(e),Ss))));const a=ai.parse(e);if(a.length>5)return r;const s=ai.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=qo(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(Ss,(()=>{const t=i[e];return e++,t}))}return f}};class Ts extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Ps,Object.assign(bn,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ln.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||$r.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Rs(e){const[t,n]=function(){const e=(0,v.useContext)(Gt);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,v.useId)();return(0,v.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,v.useContext)(un);return v.createElement(Ts,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)(dn),isPresent:t,safeToRemove:n})}const Ps={borderRadius:{...xs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xs,borderTopRightRadius:xs,borderBottomLeftRadius:xs,borderBottomRightRadius:xs,boxShadow:ks},Ms=["TopLeft","TopRight","BottomLeft","BottomRight"],Is=Ms.length,Ns=e=>"string"==typeof e?parseFloat(e):e,Os=e=>"number"==typeof e||Vn.test(e);function Ds(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const As=zs(0,.5,Do),Ls=zs(.5,.95,Zr);function zs(e,t,n){return r=>r<e?0:r>t?1:n(di(e,t,r))}function Fs(e,t){e.min=t.min,e.max=t.max}function Bs(e,t){Fs(e.x,t.x),Fs(e.y,t.y)}function js(e,t,n,r,o){return e=is(e-=t,1/n,r),void 0!==o&&(e=is(e,1/o,r)),e}function Vs(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){jn.test(t)&&(t=parseFloat(t),t=qo(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=qo(i.min,i.max,r);e===i&&(s-=t),e.min=js(e.min,t,n,s,o),e.max=js(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Hs=["x","scaleX","originX"],$s=["y","scaleY","originY"];function Ws(e,t,n,r){Vs(e.x,t,Hs,n?n.x:void 0,r?r.x:void 0),Vs(e.y,t,$s,n?n.y:void 0,r?r.y:void 0)}function Us(e){return 0===e.translate&&1===e.scale}function Gs(e){return Us(e.x)&&Us(e.y)}function Ks(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function qs(e){return Fa(e.x)/Fa(e.y)}class Ys{constructor(){this.members=[]}add(e){ia(this.members,e),e.scheduleRender()}remove(e){if(aa(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xs(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Zs=(e,t)=>e.depth-t.depth;class Js{constructor(){this.children=[],this.isDirty=!1}add(e){ia(this.children,e),this.isDirty=!0}remove(e){aa(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Zs),this.isDirty=!1,this.children.forEach(e)}}const Qs=["","X","Y","Z"];let el=0;const tl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=el++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;tl.totalNodes=tl.resolvedTargetDeltas=tl.recalculatedProjection=0,this.nodes.forEach(il),this.nodes.forEach(dl),this.nodes.forEach(fl),this.nodes.forEach(al),e=tl,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Js)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new sa),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Wr.read(r),e(i-t))};return $r.read(r,!0),()=>Wr.read(r)}(r,250),ln.hasAnimatedSinceResize&&(ln.hasAnimatedSinceResize=!1,this.nodes.forEach(ul))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||bl,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Ks(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...ea(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ul(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wr.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pl),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ll);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(yl),this.potentialNodes.clear()),this.nodes.forEach(cl),this.nodes.forEach(rl),this.nodes.forEach(ol),this.clearAllSnapshots(),Ur.update(),Ur.preRender(),Ur.render())}clearAllSnapshots(){this.nodes.forEach(sl),this.sharedNodes.forEach(ml)}scheduleUpdateProjection(){$r.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){$r.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Za(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Gs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||ns(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),wl((r=n).x),wl(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Za();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(us(t.x,n.offset.x),us(t.y,n.offset.y)),t}removeElementScroll(e){const t=Za();Bs(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Bs(t,e);const{scroll:n}=this.root;n&&(us(t.x,-n.offset.x),us(t.y,-n.offset.y))}us(t.x,o.offset.x),us(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=Za();Bs(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ms(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ns(r.latestValues)&&ms(n,r.latestValues)}return ns(this.latestValues)&&ms(n,this.latestValues),n}removeTransform(e){const t=Za();Bs(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!ns(n.latestValues))continue;ts(n.latestValues)&&n.updateSnapshot();const r=Za();Bs(r,n.measurePageBox()),Ws(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ns(this.latestValues)&&Ws(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Fr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Za(),this.relativeTargetOrigin=Za(),Wa(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Bs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Za(),this.targetWithTransforms=Za()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Ha(a.x,s.x,l.x),Ha(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Bs(this.target,this.layout.layoutBox),ls(this.target,this.targetDelta)):Bs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Za(),this.relativeTargetOrigin=Za(),Wa(this.relativeTargetOrigin,this.target,e.target),Bs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ts(this.parent.latestValues)&&!rs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Fr.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Bs(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ms(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ls(e,a)),r&&ns(i.latestValues)&&ms(e,i.latestValues))}t.x=cs(t.x),t.y=cs(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=t;if(!a)return;this.projectionDelta||(this.projectionDelta=Xa(),this.projectionDeltaWithTransform=Xa());const s=this.treeScale.x,l=this.treeScale.y,c=this.projectionTransform;Va(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Xs(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Xa();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Za(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(vl));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;hl(i.x,e.x,n),hl(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wa(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){gl(e.x,t.x,n.x,r),gl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Ks(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Za()),Bs(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=qo(0,void 0!==n.opacity?n.opacity:1,As(r)),e.opacityExit=qo(void 0!==t.opacity?t.opacity:1,0,Ls(r))):i&&(e.opacity=qo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Is;o++){const i=`border${Ms[o]}Radius`;let a=Ds(t,i),s=Ds(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Os(a)===Os(s)?(e[i]=Math.max(qo(Ns(a),Ns(s),r),0),(jn.test(s)||jn.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=qo(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$r.update((()=>{ln.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=En(e)?e:ca(e);return r.start(ta("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&xl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Za();const t=Fa(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Fa(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Bs(t,n),ms(t,o),Va(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ys);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Qs.length;t++){const o="rotate"+Qs[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=wr(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=wr(e.pointerEvents)||""),this.hasProjected&&!ns(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Xs(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in bn){if(void 0===a[e])continue;const{correct:t,applyTo:n}=bn[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?wr(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(ll),this.root.sharedNodes.clear()}}}function rl(e){e.updateLayout()}function ol(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ja((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Fa(r);r.min=t[e].min,r.max=r.min+o})):xl(o,n.layoutBox,t)&&Ja((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Fa(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Xa();Va(a,t,n.layoutBox);const s=Xa();i?Va(s,e.applyTransform(r,!0),n.measuredBox):Va(s,t,n.layoutBox);const l=!Gs(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Za();Wa(a,n.layoutBox,o.layoutBox);const s=Za();Wa(s,t,i.layoutBox),Ks(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function il(e){tl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function al(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sl(e){e.clearSnapshot()}function ll(e){e.clearMeasurements()}function cl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ul(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function dl(e){e.resolveTargetDelta()}function fl(e){e.calcProjection()}function pl(e){e.resetRotation()}function ml(e){e.removeLeadSnapshot()}function hl(e,t,n){e.translate=qo(t.translate,0,n),e.scale=qo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gl(e,t,n,r){e.min=qo(t.min,n.min,r),e.max=qo(t.max,n.max,r)}function vl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const bl={duration:.45,ease:[.4,0,.1,1]};function yl(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(Boolean(e.path[t].instance)){n=e.path[t];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function wl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function xl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ba(qs(t),qs(n),.2)}const El=nl({attachResizeListener:(e,t)=>Sr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_l={current:void 0},Cl=nl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_l.current){const e=new El(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),_l.current=e}return _l.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Sl={pan:{Feature:class extends zr{constructor(){super(...arguments),this.removePointerDownListener=Zr}onPointerDown(e){this.session=new Ia(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ys(e),onStart:ys(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&$r.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Pr(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends zr{constructor(e){super(e),this.removeGroupControls=Zr,this.removeListeners=Zr,this.controls=new vs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Cl,MeasureLayout:Rs}},kl=new Set(["width","height","top","left","right","bottom","x","y"]),Tl=e=>kl.has(e),Rl=e=>e===Mn||e===Vn,Pl=(e,t)=>parseFloat(e.split(", ")[t]),Ml=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Pl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Pl(t[1],e):0}},Il=new Set(["x","y","z"]),Nl=yn.filter((e=>!Il.has(e)));const Ol={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ml(4,13),y:Ml(5,14)},Dl=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Tl);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=fa(c);const d=t[o];let f;if(vr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=fa(c);for(let n=t;n<e&&null!==d[n];n++)f?uo(fa(d[n])===f,"All keyframes must be of the same type"):(f=fa(d[n]),uo(f===u||Rl(u)&&Rl(f),"Keyframes must be of the same dimension as the current value"))}else f=fa(d);if(u!==f)if(Rl(u)&&Rl(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Vn&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return Nl.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Ol[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Ol[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),jt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Al(e,t,n,r){return(e=>Object.keys(e).some(Tl))(t)?Dl(e,t,n,r):{target:t,transitionEnd:r}}const Ll=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Tn(t))return;const n=Cs(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Tn(o))continue;const i=Cs(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Al(e,t=o.target,n,r=o.transitionEnd)};const zl=new WeakMap,Fl=Object.keys(an),Bl=Fl.length,jl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vl=Qt.length;class Hl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>$r.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=en(t),this.isVariantNode=tn(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&En(t)&&(t.set(a[e],!1),na(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,zl.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ht.current||$t(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Vt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zl.delete(this.current),this.projection&&this.projection.unmount(),Wr.update(this.notifyUpdate),Wr.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=wn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&$r.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let e=0;e<Bl;e++){const n=Fl[e],{isEnabled:r,Feature:o,ProjectionNode:i,MeasureLayout:l}=an[n];i&&(a=i),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Yt(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Za()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<jl.length;t++){const n=jl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(En(i))e.addValue(o,i),na(r)&&r.add(o);else if(En(a))e.addValue(o,ca(i,{owner:e})),na(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,ca(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Vl;e++){const n=Qt[e],r=this.props[n];(Xt(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ca(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=gr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||En(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new sa),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class $l extends Hl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=va(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(ra(c)||oa(c))?c=parseFloat(c):!ma(c)&&ai.test(l)&&(c=Zi(a,l)),e.addValue(a,ca(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Ll(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Wl extends $l{readValueFromInstance(e,t){if(wn.has(t)){const e=Xi(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(kn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return hs(e,t)}build(e,t,n,r){Kn(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return mr(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;En(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){dr(e,t,n,r)}}class Ul extends $l{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(wn.has(t)){const e=Xi(t);return e&&e.default||0}return t=fr.has(t)?t:ur(t),e.getAttribute(t)}measureInstanceViewportBox(){return Za()}scrapeMotionValuesFromProps(e,t){return hr(e,t)}build(e,t,n,r){ir(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){pr(e,t,0,r)}mount(e){this.isSVGTag=sr(e.tagName),super.mount(e)}}const Gl=(e,t)=>vn(e)?new Ul(t,{enableHardwareAcceleration:!1}):new Wl(t,{enableHardwareAcceleration:!0}),Kl={...Pa,...io,...Sl,...{layout:{ProjectionNode:Cl,MeasureLayout:Rs}}},ql=hn(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...vn(e)?_r:Cr,preloadedFeatures:n,useRender:cr(t),createVisualElement:r,Component:e}}(e,t,Kl,Gl)));var Yl=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Xl=window.wp.deprecated,Zl=o.n(Xl),Jl=window.wp.dom;var Ql=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,a.createElement)("span",{className:i,style:s,...o})};var ec=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,a.createElement)(Ql,{icon:e,size:t,...n});if((0,a.isValidElement)(e)&&Ql===e.type)return(0,a.cloneElement)(e,{...n});if("function"==typeof e)return(0,a.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===r.SVG)){const o={...e.props,width:t,height:t,...n};return(0,a.createElement)(r.SVG,{...o})}return(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{size:t,...n}):e},tc=(window.wp.warning,o(1919)),nc=o.n(tc),rc=o(5619),oc=o.n(rc);
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
function ic(e){return"[object Object]"===Object.prototype.toString.call(e)}function ac(e){var t,n;return!1!==ic(e)&&(void 0===(t=e.constructor)||!1!==ic(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var sc=function(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};const lc=(0,a.createContext)({}),cc=()=>(0,a.useContext)(lc);const uc=(0,a.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=cc(),n=(0,a.useRef)(e);return sc((()=>{oc()(n.current,e)&&n.current!==e&&"undefined"!=typeof process&&process.env}),[e]),(0,a.useMemo)((()=>nc()(null!=t?t:{},null!=e?e:{},{isMergeableObject:ac})),[t,e])}({value:t});return(0,a.createElement)(lc.Provider,{value:n},e)})),dc="data-wp-component",fc="data-wp-c16t",pc="__contextSystemKey__";var mc=function(){return mc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mc.apply(this,arguments)};function hc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function gc(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function vc(e){return e.toLowerCase()}var bc=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],yc=/[^A-Z0-9]+/gi;function wc(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function xc(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?bc:n,o=t.stripRegexp,i=void 0===o?yc:o,a=t.transform,s=void 0===a?vc:a,l=t.delimiter,c=void 0===l?" ":l,u=wc(wc(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}(e,mc({delimiter:"."},t))}function Ec(e,t){return void 0===t&&(t={}),xc(e,mc({delimiter:"-"},t))}function _c(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const Cc=_c((function(e){return`components-${Ec(e)}`}));var Sc=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),kc=Math.abs,Tc=String.fromCharCode,Rc=Object.assign;function Pc(e){return e.trim()}function Mc(e,t,n){return e.replace(t,n)}function Ic(e,t){return e.indexOf(t)}function Nc(e,t){return 0|e.charCodeAt(t)}function Oc(e,t,n){return e.slice(t,n)}function Dc(e){return e.length}function Ac(e){return e.length}function Lc(e,t){return t.push(e),e}var zc=1,Fc=1,Bc=0,jc=0,Vc=0,Hc="";function $c(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zc,column:Fc,length:a,return:""}}function Wc(e,t){return Rc($c("",null,null,"",null,null,0),e,{length:-e.length},t)}function Uc(){return Vc=jc>0?Nc(Hc,--jc):0,Fc--,10===Vc&&(Fc=1,zc--),Vc}function Gc(){return Vc=jc<Bc?Nc(Hc,jc++):0,Fc++,10===Vc&&(Fc=1,zc++),Vc}function Kc(){return Nc(Hc,jc)}function qc(){return jc}function Yc(e,t){return Oc(Hc,e,t)}function Xc(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 Zc(e){return zc=Fc=1,Bc=Dc(Hc=e),jc=0,[]}function Jc(e){return Hc="",e}function Qc(e){return Pc(Yc(jc-1,nu(91===e?e+2:40===e?e+1:e)))}function eu(e){for(;(Vc=Kc())&&Vc<33;)Gc();return Xc(e)>2||Xc(Vc)>3?"":" "}function tu(e,t){for(;--t&&Gc()&&!(Vc<48||Vc>102||Vc>57&&Vc<65||Vc>70&&Vc<97););return Yc(e,qc()+(t<6&&32==Kc()&&32==Gc()))}function nu(e){for(;Gc();)switch(Vc){case e:return jc;case 34:case 39:34!==e&&39!==e&&nu(Vc);break;case 40:41===e&&nu(e);break;case 92:Gc()}return jc}function ru(e,t){for(;Gc()&&e+Vc!==57&&(e+Vc!==84||47!==Kc()););return"/*"+Yc(t,jc-1)+"*"+Tc(47===e?e:Gc())}function ou(e){for(;!Xc(Kc());)Gc();return Yc(e,jc)}var iu="-ms-",au="-moz-",su="-webkit-",lu="comm",cu="rule",uu="decl",du="@keyframes";function fu(e,t){for(var n="",r=Ac(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function pu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case uu:return e.return=e.return||e.value;case lu:return"";case du:return e.return=e.value+"{"+fu(e.children,r)+"}";case cu:e.value=e.props.join(",")}return Dc(n=fu(e.children,r))?e.return=e.value+"{"+n+"}":""}function mu(e){return Jc(hu("",null,null,null,[""],e=Zc(e),0,[0],e))}function hu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,x=i,E=r,_=y;g;)switch(m=b,b=Gc()){case 40:if(108!=m&&58==Nc(_,d-1)){-1!=Ic(_+=Mc(Qc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Qc(b);break;case 9:case 10:case 13:case 32:_+=eu(m);break;case 92:_+=tu(qc()-1,7);continue;case 47:switch(Kc()){case 42:case 47:Lc(vu(ru(Gc(),qc()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Dc(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=Mc(_,/\f/g,"")),p>0&&Dc(_)-d&&Lc(p>32?bu(_+";",r,n,d-1):bu(Mc(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Lc(E=gu(_,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)hu(_,t,E,E,w,i,d,s,x);else switch(99===f&&110===Nc(_,3)?100:f){case 100:case 108:case 109:case 115:hu(e,E,E,r&&Lc(gu(e,E,E,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:hu(_,E,E,E,[""],x,0,s,x)}}c=u=p=0,h=v=1,y=_="",d=a;break;case 58:d=1+Dc(_),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Uc())continue;switch(_+=Tc(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Dc(_)-1)*v,v=1;break;case 64:45===Kc()&&(_+=Qc(Gc())),f=Kc(),u=d=Dc(y=_+=ou(qc())),b++;break;case 45:45===m&&2==Dc(_)&&(h=0)}}return i}function gu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Ac(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Oc(e,d+1,d=kc(h=a[m])),y=e;v<p;++v)(y=Pc(h>0?f[v]+" "+b:Mc(b,/&\f/g,f[v])))&&(l[g++]=y);return $c(e,t,n,0===o?cu:s,l,c,u)}function vu(e,t,n){return $c(e,t,n,lu,Tc(Vc),Oc(e,2,-2),0)}function bu(e,t,n,r){return $c(e,t,n,uu,Oc(e,0,r),Oc(e,r+1,-1),r)}var yu=function(e,t,n){for(var r=0,o=0;r=o,o=Kc(),38===r&&12===o&&(t[n]=1),!Xc(o);)Gc();return Yc(e,jc)},wu=function(e,t){return Jc(function(e,t){var n=-1,r=44;do{switch(Xc(r)){case 0:38===r&&12===Kc()&&(t[n]=1),e[n]+=yu(jc-1,t,n);break;case 2:e[n]+=Qc(r);break;case 4:if(44===r){e[++n]=58===Kc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Tc(r)}}while(r=Gc());return e}(Zc(e),t))},xu=new WeakMap,Eu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||xu.get(n))&&!r){xu.set(e,!0);for(var o=[],i=wu(t,o),a=n.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]}}},_u=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Cu(e,t){switch(function(e,t){return 45^Nc(e,0)?(((t<<2^Nc(e,0))<<2^Nc(e,1))<<2^Nc(e,2))<<2^Nc(e,3):0}(e,t)){case 5103:return su+"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 su+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return su+e+au+e+iu+e+e;case 6828:case 4268:return su+e+iu+e+e;case 6165:return su+e+iu+"flex-"+e+e;case 5187:return su+e+Mc(e,/(\w+).+(:[^]+)/,su+"box-$1$2"+iu+"flex-$1$2")+e;case 5443:return su+e+iu+"flex-item-"+Mc(e,/flex-|-self/,"")+e;case 4675:return su+e+iu+"flex-line-pack"+Mc(e,/align-content|flex-|-self/,"")+e;case 5548:return su+e+iu+Mc(e,"shrink","negative")+e;case 5292:return su+e+iu+Mc(e,"basis","preferred-size")+e;case 6060:return su+"box-"+Mc(e,"-grow","")+su+e+iu+Mc(e,"grow","positive")+e;case 4554:return su+Mc(e,/([^-])(transform)/g,"$1"+su+"$2")+e;case 6187:return Mc(Mc(Mc(e,/(zoom-|grab)/,su+"$1"),/(image-set)/,su+"$1"),e,"")+e;case 5495:case 3959:return Mc(e,/(image-set\([^]*)/,su+"$1$`$1");case 4968:return Mc(Mc(e,/(.+:)(flex-)?(.*)/,su+"box-pack:$3"+iu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+su+e+e;case 4095:case 3583:case 4068:case 2532:return Mc(e,/(.+)-inline(.+)/,su+"$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(Dc(e)-1-t>6)switch(Nc(e,t+1)){case 109:if(45!==Nc(e,t+4))break;case 102:return Mc(e,/(.+:)(.+)-([^]+)/,"$1"+su+"$2-$3$1"+au+(108==Nc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ic(e,"stretch")?Cu(Mc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Nc(e,t+1))break;case 6444:switch(Nc(e,Dc(e)-3-(~Ic(e,"!important")&&10))){case 107:return Mc(e,":",":"+su)+e;case 101:return Mc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+su+(45===Nc(e,14)?"inline-":"")+"box$3$1"+su+"$2$3$1"+iu+"$2box$3")+e}break;case 5936:switch(Nc(e,t+11)){case 114:return su+e+iu+Mc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return su+e+iu+Mc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return su+e+iu+Mc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return su+e+iu+e+e}return e}var Su=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case uu:e.return=Cu(e.value,e.length);break;case du:return fu([Wc(e,{value:Mc(e.value,"@","@"+su)})],r);case cu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fu([Wc(e,{props:[Mc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fu([Wc(e,{props:[Mc(t,/:(plac\w+)/,":"+su+"input-$1")]}),Wc(e,{props:[Mc(t,/:(plac\w+)/,":-moz-$1")]}),Wc(e,{props:[Mc(t,/:(plac\w+)/,iu+"input-$1")]})],r)}return""}))}}],ku=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Su;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[pu,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Eu,_u].concat(r,f),u=Ac(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){fu(mu(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Sc({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(s),m};var Tu={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,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 Ru(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Pu=/[A-Z]|^ms/g,Mu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Iu=function(e){return 45===e.charCodeAt(1)},Nu=function(e){return null!=e&&"boolean"!=typeof e},Ou=Ru((function(e){return Iu(e)?e:e.replace(Pu,"-$&").toLowerCase()})),Du=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mu,(function(e,t,n){return Lu={name:t,styles:n,next:Lu},t}))}return 1===Tu[e]||Iu(e)||"number"!=typeof t||0===t?t:t+"px"};function Au(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Lu={name:n.name,styles:n.styles,next:Lu},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Lu={name:r.name,styles:r.styles,next:Lu},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Au(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Nu(a)&&(r+=Ou(i)+":"+Du(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Au(e,t,a);switch(i){case"animation":case"animationName":r+=Ou(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Nu(a[l])&&(r+=Ou(i)+":"+Du(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Lu,i=n(e);return Lu=o,Au(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Lu,zu=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Fu=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Lu=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Au(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Au(n,t,e[a]),r&&(o+=i[a]);zu.lastIndex=0;for(var s,l="";null!==(s=zu.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Lu}},Bu=!!v.useInsertionEffect&&v.useInsertionEffect,ju=Bu||function(e){return e()},Vu=(Bu||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?ku({key:"css"}):null));var Hu=Vu.Provider,$u=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(Vu);return e(t,r,n)}))};var Wu=v.createContext({});function Uu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Gu=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ku=function(e,t,n){Gu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function qu(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Yu(e,t,n){var r=[],o=Uu(e,r,n);return r.length<2?n:o+t(r)}var Xu=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Zu=function(e){var t=ku(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Fu(n,t.registered,void 0);return Ku(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Yu(t.registered,n,Xu(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Fu(n,t.registered);qu(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Fu(n,t.registered),i="animation-"+o.name;return qu(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Uu.bind(null,t.registered),merge:Yu.bind(null,t.registered,n)}}({key:"css"}),Ju=(Zu.flush,Zu.hydrate,Zu.cx);Zu.merge,Zu.getRegisteredStyles,Zu.injectGlobal,Zu.keyframes,Zu.css,Zu.sheet,Zu.cache;const Qu=()=>{const e=(0,v.useContext)(Vu),t=(0,a.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Ju(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Ku(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function ed(e,t){const n=cc();void 0===t&&"undefined"!=typeof process&&process.env;const r=n?.[t]||{},o={[fc]:!0,...(i=t,{[dc]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Qu()(Cc(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function td(e,t){return rd(e,t,{forwardsRef:!0})}function nd(e,t){return rd(e,t)}function rd(e,t,n){const r=n?.forwardsRef?(0,a.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r[pc]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[pc]:[...new Set(o)],displayName:t,selector:`.${Cc(t)}`})}function od(e){if(!e)return[];let t=[];return e[pc]&&(t=e[pc]),e.type&&e.type[pc]&&(t=e.type[pc]),t}function id(e,t){return!!e&&("string"==typeof t?od(e).includes(t):!!Array.isArray(t)&&t.some((t=>od(e).includes(t))))}const ad={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sd.apply(null,arguments)}function ld(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var cd=/^((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|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|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)-.*))$/,ud=ld((function(e){return cd.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),dd=function(e){return"theme"!==e},fd=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ud:dd},pd=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},md=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Gu(t,n,r),ju((function(){return Ku(t,n,r)})),null},hd=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=pd(t,n,i),l=s||fd(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=$u((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=v.useContext(Wu)}"string"==typeof e.className?i=Uu(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=Fu(d.concat(u),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?fd(r):l,g={};for(var b in e)c&&"as"===b||h(b)&&(g[b]=e[b]);return g.className=i,g.ref=n,v.createElement(v.Fragment,null,v.createElement(md,{cache:t,serialized:m,isStringTag:"string"==typeof r}),v.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,sd({},n,r,{shouldForwardProp:pd(m,r,!0)})).apply(void 0,d)},m}};const gd=hd("div",{target:"e19lxcc00"})("");gd.selector=".components-view",gd.displayName="View";var vd=gd;var bd=td((function(e,t){const{style:n,...r}=ed(e,"VisuallyHidden");return(0,a.createElement)(vd,{ref:t,...r,style:{...ad,...n||{}}})}),"VisuallyHidden");const yd=["onMouseDown","onClick"];const wd=(0,a.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isPressed:r,isBusy:o,isDestructive:i,className:s,disabled:c,icon:d,iconPosition:f="left",iconSize:p,showTooltip:m,tooltipPosition:h,shortcut:g,label:v,children:b,size:y="default",text:w,variant:x,__experimentalIsFocusable:E,describedBy:_,...C}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isSmall:i,size:a,variant:s,...l}){let c=a,u=s;var d,f,p,m,h,g;return i&&(null!==(d=c)&&void 0!==d||(c="small")),t&&(null!==(f=u)&&void 0!==f||(u="primary")),r&&(null!==(p=u)&&void 0!==p||(u="tertiary")),n&&(null!==(m=u)&&void 0!==m||(u="secondary")),e&&(Zl()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(h=u)&&void 0!==h||(u="secondary")),o&&(null!==(g=u)&&void 0!==g||(u="link")),{...l,size:c,variant:u}}(e),{href:S,target:k,...T}="href"in C?C:{href:void 0,target:void 0,...C},R=(0,u.useInstanceId)(wd,"components-button__description"),P="string"==typeof b&&!!b||Array.isArray(b)&&b?.[0]&&null!==b[0]&&"components-tooltip"!==b?.[0]?.props?.className,M=l()("components-button",s,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===y,"is-compact":"compact"===y,"is-tertiary":"tertiary"===x,"is-pressed":r,"is-busy":o,"is-link":"link"===x,"is-destructive":i,"has-text":!!d&&P,"has-icon":!!d}),I=c&&!E,N=void 0===S||I?"button":"a",O="button"===N?{type:"button",disabled:I,"aria-pressed":r}:{},D="a"===N?{href:S,target:k}:{};if(c&&E){O["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of yd)T[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const A=!I&&(m&&v||g||!!v&&!b?.length&&!1!==m),L=_?R:void 0,z=T["aria-describedby"]||L,F={className:M,"aria-label":T["aria-label"]||v,"aria-describedby":z,ref:t},B=(0,a.createElement)(a.Fragment,null,d&&"left"===f&&(0,a.createElement)(ec,{icon:d,size:p}),w&&(0,a.createElement)(a.Fragment,null,w),d&&"right"===f&&(0,a.createElement)(ec,{icon:d,size:p}),b),j="a"===N?(0,a.createElement)("a",{...D,...T,...F},B):(0,a.createElement)("button",{...O,...T,...F},B);return A?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Qf,{text:b?.length&&_?_:v,shortcut:g,position:h},j),_&&(0,a.createElement)(bd,null,(0,a.createElement)("span",{id:L},_))):(0,a.createElement)(a.Fragment,null,j,_&&(0,a.createElement)(bd,null,(0,a.createElement)("span",{id:L},_)))}));var xd=wd;let Ed=0;function _d(e){const t=document.scrollingElement||document.body;e&&(Ed=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=Ed)}let Cd=0;var Sd=function(){return(0,a.useEffect)((()=>(0===Cd&&_d(!0),++Cd,()=>{1===Cd&&_d(!1),--Cd})),[]),null};const kd=Symbol(),Td=Symbol(),Rd=Symbol();let Pd=(e,t)=>new Proxy(e,t);const Md=Object.getPrototypeOf,Id=new WeakMap,Nd=e=>e&&(Id.has(e)?Id.get(e):Md(e)===Object.prototype||Md(e)===Array.prototype),Od=e=>"object"==typeof e&&null!==e,Dd=new WeakMap,Ad=e=>e[Rd]||e,Ld=(e,t,n)=>{if(!Nd(e))return e;const r=Ad(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(kd)||r.add(t)}},i={get:(t,r)=>r===Rd?e:(o(r),Ld(t[r],n.a,n.c)),has:(t,i)=>i===Td?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(kd),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=Pd(o?(e=>{let t=Dd.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(Md(e),n)}Dd.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},zd=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},Fd=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Od(e)||!Od(t))return!0;const o=n.get(Ad(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===kd?zd(e,t):Fd(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Bd=(e,t=!0)=>{Id.set(e,t)};var jd=o(2972);const Vd=e=>"object"==typeof e&&null!==e,Hd=new WeakSet,$d=Symbol("VERSION"),Wd=Symbol("LISTENERS"),Ud=Symbol("SNAPSHOT"),Gd=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>Vd(e)&&!Hd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Bd(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(Hd.has(i))Bd(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[Wd])?s[e]=i[Ud]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!Vd(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get(e,t,n){return t===$d?u:t===Wd?d:t===Ud?a(u,e,n):Reflect.get(e,t,n)},deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Wd];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[Wd];let p;return d&&d.delete(h(i)),Vd(a)&&(a=(e=>Nd(e)&&e[Rd]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Wd])?(p=a,p[Wd].add(m(i))):n(a)?(p=qd(a),p[Wd].add(m(i))):p=a,Reflect.set(t,i,p,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,Hd,$d,Wd,Ud,e,t,n,r,o,i,a,s,l],[Kd]=Gd();function qd(e={}){return Kd(e)}function Yd(e,t,n){let r;(null==e?void 0:e[Wd])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[Wd].add(i),()=>{e[Wd].delete(i)}}function Xd(e){return(null==e?void 0:e[Ud])||console.warn("Please use proxy object"),e[Ud]}function Zd(e){return Hd.add(e),e}const{useSyncExternalStore:Jd}=jd,Qd=(e,t)=>{const n=(0,v.useRef)();(0,v.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;Od(e)&&r.add(e);const a=Od(e)&&t.get(Ad(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,v.useDebugValue)(n.current)};function ef(e,t){const n=null==t?void 0:t.sync,r=(0,v.useRef)(),o=(0,v.useRef)();let i=!0;const a=Jd((0,v.useCallback)((t=>{const r=Yd(e,t,n);return t(),r}),[e,n]),(()=>{const t=Xd(e);try{if(!i&&r.current&&o.current&&!Fd(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>Xd(e)));i=!1;const s=new WeakMap;(0,v.useEffect)((()=>{r.current=a,o.current=s})),Qd(a,s);const l=(0,v.useMemo)((()=>new WeakMap),[]);return Ld(a,s,l)}Symbol();function tf(e){const t=qd({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var nf=(0,a.createContext)({slots:tf(),fills:tf(),registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function rf(e){const t=(0,a.useContext)(nf);return{...ef(t.slots,{sync:!0}).get(e),...(0,a.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}var of=(0,a.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var af=e=>{const{getSlot:t,subscribe:n}=(0,a.useContext)(of);return(0,a.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function sf({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,a.useContext)(of),o=af(e),i=(0,a.useRef)({name:e,children:t});return(0,a.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,a.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,a.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function lf(e){return"function"==typeof e}class cf extends a.Component{constructor(){super(...arguments),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=lf(e.children)?e.children(r):e.children;return a.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,a.cloneElement)(e,{key:n})}))})).filter((e=>!(0,a.isEmptyElement)(e)));return(0,a.createElement)(a.Fragment,null,lf(t)?t(i):i)}}var uf,df=e=>(0,a.createElement)(of.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,a.createElement)(cf,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),ff=new Uint8Array(16);function pf(){if(!uf&&!(uf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uf(ff)}var mf=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var hf=function(e){return"string"==typeof e&&mf.test(e)},gf=[],vf=0;vf<256;++vf)gf.push((vf+256).toString(16).substr(1));var bf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(gf[e[t+0]]+gf[e[t+1]]+gf[e[t+2]]+gf[e[t+3]]+"-"+gf[e[t+4]]+gf[e[t+5]]+"-"+gf[e[t+6]]+gf[e[t+7]]+"-"+gf[e[t+8]]+gf[e[t+9]]+"-"+gf[e[t+10]]+gf[e[t+11]]+gf[e[t+12]]+gf[e[t+13]]+gf[e[t+14]]+gf[e[t+15]]).toLowerCase();if(!hf(n))throw TypeError("Stringified UUID is invalid");return n};var yf=function(e,t,n){var r=(e=e||{}).random||(e.rng||pf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return bf(r)};const wf=new Set,xf=_c((e=>{let t=yf().replace(/[0-9]/g,"");for(;wf.has(t);)t=yf().replace(/[0-9]/g,"");return wf.add(t),ku({container:e,key:t})}));var Ef=function(e){const{children:t,document:n}=e;if(!n)return null;const r=xf(n.head);return(0,a.createElement)(Hu,{value:r},t)};function _f({name:e,children:t}){const{registerFill:n,unregisterFill:r,...o}=rf(e),i=function(){const[,e]=(0,a.useState)({}),t=(0,a.useRef)(!0);return(0,a.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),s=(0,a.useRef)({rerender:i});if((0,a.useEffect)((()=>(n(s),()=>{r(s)})),[n,r]),!o.ref||!o.ref.current)return null;"function"==typeof t&&(t=t(o.fillProps));const l=(0,a.createElement)(Ef,{document:o.ref.current.ownerDocument},t);return(0,a.createPortal)(l,o.ref.current)}var Cf=(0,a.forwardRef)((function({name:e,fillProps:t={},as:n="div",...r},o){const{registerSlot:i,unregisterSlot:s,...l}=(0,a.useContext)(nf),c=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(i(e,c,t),()=>{s(e,c)})),[i,s,e]),(0,a.useLayoutEffect)((()=>{l.updateSlot(e,t)})),(0,a.createElement)(n,{ref:(0,u.useMergeRefs)([o,c]),...r})})),Sf=window.wp.isShallowEqual,kf=o.n(Sf);function Tf(){const e=tf(),t=tf();return{slots:e,fills:t,registerSlot:function(t,n,r){const o=e.get(t)||{};e.set(t,Zd({...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}))},updateSlot:function(n,r){const o=e.get(n);if(!o)return;if(kf()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.map((e=>e.current.rerender()))},unregisterSlot:function(t,n){e.get(t)?.ref===n&&e.delete(t)},registerFill:function(e,n){t.set(e,Zd([...t.get(e)||[],n]))},unregisterFill:function(e,n){const r=t.get(e);r&&t.set(e,Zd(r.filter((e=>e!==n))))}}}function Rf({children:e}){const[t]=(0,a.useState)(Tf);return(0,a.createElement)(nf.Provider,{value:t},e)}class Pf extends a.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n;this.fills[e]=null!==(n=this.fills[e]?.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,a.createElement)(of.Provider,{value:this.contextValue},this.props.children)}}function Mf(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(sf,{...e}),(0,a.createElement)(_f,{...e}))}const If=(0,a.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,a.createElement)(Cf,{...t,ref:n}):(0,a.createElement)(df,{...t})));function Nf({children:e,...t}){return(0,a.createElement)(Pf,{...t},(0,a.createElement)(Rf,null,e))}function Of(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,a.createElement)(Mf,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,a.createElement)(If,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const Df={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Af=e=>{var t;return null!==(t=Df[e])&&void 0!==t?t:"bottom"},Lf={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},zf=e=>{const t=e?.defaultView?.frameElement;if(!t)return;const n=t.getBoundingClientRect();return{x:n.left,y:n.top}},Ff=e=>null===e||Number.isNaN(e)?void 0:Math.round(e);function Bf(e){return e.split("-")[0]}const jf=(e={})=>({options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=function(e){return["top","bottom"].includes(Bf(e))?"x":"y"}(o),f="x"===d?"y":"x";let p=u[d],m=u[f];const h="function"==typeof s?s(t):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h},v={x:0,y:0,...a.frameOffset?.amount};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis+v[d],n=i.reference[d]+i.reference[e]-g.mainAxis+v[d];p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===d?"width":"height",t=["top","left"].includes(Bf(o)),n=i.reference[f]-i.floating[e]+(t&&null!==(b=a.offset?.[f])&&void 0!==b?b:0)+(t?0:g.crossAxis)+v[f],r=i.reference[f]+i.reference[e]+(t?0:null!==(y=a.offset?.[f])&&void 0!==y?y:0)-(t?g.crossAxis:0)+v[f];m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}});const Vf="Popover",Hf=()=>(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,a.createElement)(r.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,a.createElement)(r.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),$f=(0,a.forwardRef)((({style:e,placement:t,shouldAnimate:n=!1,...r},o)=>{const i=function(){!Ht.current&&$t();const[e]=(0,v.useState)(Vt.current);return e}(),{style:s,...l}=(0,a.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Lf[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(t)),[t]),c=n&&!i?{style:{...s,...e},...l}:{animate:!1,style:e};return(0,a.createElement)(ql.div,{...c,...r,ref:o})})),Wf=(0,a.createContext)(void 0),Uf=(0,a.forwardRef)(((e,t)=>{var n,r;const{animate:o=!0,headerTitle:i,onClose:s,children:c,className:d,noArrow:f=!0,position:p,placement:m="bottom-start",offset:h=0,focusOnMount:g="firstElement",anchor:v,expandOnMobile:b,onFocusOutside:y,__unstableSlotName:w=Vf,flip:x=!0,resize:E=!0,shift:_=!1,variant:C,__unstableForcePosition:S,anchorRef:k,anchorRect:T,getAnchorRect:R,isAlternate:P,...M}=e;let I=x,N=E;void 0!==S&&(Zl()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and  `resize={ false }`"}),I=!S,N=!S),void 0!==k&&Zl()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&Zl()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==R&&Zl()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const O=P?"toolbar":C;void 0!==P&&Zl()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const D=(0,a.useRef)(null),[A,L]=(0,a.useState)(null),[z,F]=(0,a.useState)(),B=(0,a.useCallback)((e=>{L(e)}),[]),j=(0,u.useViewportMatch)("medium","<"),V=b&&j,H=!V&&!f,$=p?Af(p):m,W=(0,a.useRef)(zf(z)),U=[..."overlay"===m?[{name:"overlay",fn({rects:e}){return e.reference}},It({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],{name:"frameOffset",fn({x:e,y:t}){return W.current?{x:e+W.current.x,y:t+W.current.y,data:{amount:W.current}}:{x:e,y:t}}},Rt(h),I?Mt():void 0,N?It({apply(e){var t;const{firstElementChild:n}=null!==(t=te.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,_?Pt({crossAxis:!0,limiter:jf(),padding:1}):void 0,Bt({element:D})].filter((e=>void 0!==e)),G=(0,a.useContext)(Wf)||w,K=rf(G);let q;(s||y)&&(q=(e,t)=>{"focus-outside"===e&&y?y(t):s&&s()});const[Y,X]=(0,u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:q,onClose:q}),{x:Z,y:J,reference:Q,floating:ee,refs:te,strategy:ne,update:re,placement:oe,middlewareData:{arrow:ie}}=Ft({placement:"overlay"===$?void 0:$,middleware:U,whileElementsMounted:(e,t,n)=>Tt(e,t,n,{animationFrame:!0})}),ae=(0,a.useCallback)((e=>{D.current=e,re()}),[re]),se=k?.top,le=k?.bottom,ce=k?.startContainer,ue=k?.current;(0,a.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,fallbackDocument:i})=>{var a;let s;return e?s=e.ownerDocument:t?.top?s=t?.top.ownerDocument:t?.startContainer?s=t.startContainer.ownerDocument:t?.current?s=t.current.ownerDocument:t?s=t.ownerDocument:n&&n?.ownerDocument?s=n.ownerDocument:r&&(s=r(o)?.ownerDocument),null!==(a=s)&&void 0!==a?a:i})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,fallbackDocument:document}),t=(e=>{const t=e?.defaultView?.frameElement;if(!t)return{x:1,y:1};const n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth,y:n.height/t.offsetHeight}})(e),n=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,scale:i})=>{var a;let s=null;if(e?s=e:t?.top?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:t?.current?s=t.current:t?s=t:n?s={getBoundingClientRect(){return n}}:r?s={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(s=o.parentElement),s&&(1!==i.x||1!==i.y)){const e=s.getBoundingClientRect();s={getBoundingClientRect(){return new window.DOMRect(e.x*i.x,e.y*i.y,e.width*i.x,e.height*i.y)}}}return null!==(a=s)&&void 0!==a?a:null})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,scale:t});Q(n),F(e)}),[v,k,se,le,ce,ue,T,R,A,Q]),(0,a.useLayoutEffect)((()=>{if(z===document||z===te.floating.current?.ownerDocument||!z?.defaultView?.frameElement)return void(W.current=void 0);const{defaultView:e}=z,{frameElement:t}=e,n=t?(0,Jl.getScrollContainer)(t):null,r=()=>{W.current=zf(z),re()};return e.addEventListener("resize",r),n?.addEventListener("scroll",r),r(),()=>{e.removeEventListener("resize",r),n?.removeEventListener("scroll",r)}}),[z,re,te.floating]);const de=(0,u.useMergeRefs)([ee,Y,t]);let fe=(0,a.createElement)($f,{shouldAnimate:o&&!V,placement:oe,className:l()("components-popover",d,{"is-expanded":V,"is-positioned":null!==Z&&null!==J,[`is-${"toolbar"===O?"alternate":O}`]:O}),...M,ref:de,...X,tabIndex:-1,style:V?void 0:{position:ne,top:0,left:0,x:Ff(Z),y:Ff(J)}},V&&(0,a.createElement)(Sd,null),V&&(0,a.createElement)("div",{className:"components-popover__header"},(0,a.createElement)("span",{className:"components-popover__header-title"},i),(0,a.createElement)(xd,{className:"components-popover__close",icon:Yl,onClick:s})),(0,a.createElement)("div",{className:"components-popover__content"},c),H&&(0,a.createElement)("div",{ref:ae,className:["components-popover__arrow",`is-${oe.split("-")[0]}`].join(" "),style:{left:void 0!==ie?.x&&Number.isFinite(ie.x)?`${ie.x+(null!==(n=W.current?.x)&&void 0!==n?n:0)}px`:"",top:void 0!==ie?.y&&Number.isFinite(ie.y)?`${ie.y+(null!==(r=W.current?.y)&&void 0!==r?r:0)}px`:""}},(0,a.createElement)(Hf,null)));return K.ref&&(fe=(0,a.createElement)(Mf,{name:G},fe)),k||T||v?fe:(0,a.createElement)("span",{ref:B},fe)}));Uf.Slot=(0,a.forwardRef)((function({name:e=Vf},t){return(0,a.createElement)(If,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),Uf.__unstableSlotNameProvider=Wf.Provider;var Gf=Uf;var Kf=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,a.createElement)("span",{className:n,"aria-label":o},r)};const qf=700,Yf=(0,a.createElement)("div",{className:"event-catcher"}),Xf=({eventHandlers:e,child:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)((0,a.createElement)("span",{className:"disabled-element-wrapper"},(0,a.cloneElement)(Yf,e),(0,a.cloneElement)(t,{children:n,ref:r})),{...e}),Zf=({child:e,eventHandlers:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)(e,{...t,children:n,ref:r}),Jf=(e,t,n)=>{if(1!==a.Children.count(e))return;const r=a.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var Qf=function(e){const{children:t,position:n="bottom middle",text:r,shortcut:o,delay:i=qf,...s}=e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),m=(0,u.useDebounce)(p,i),[h,g]=(0,a.useState)(null),v=a.Children.toArray(t)[0]?.ref,b=(0,u.useMergeRefs)([g,v]),y=e=>{"OPTION"!==e.target.tagName&&(Jf(t,"onMouseDown",e),document.addEventListener("mouseup",E),d(!0))},w=e=>{"OPTION"!==e.target.tagName&&(Jf(t,"onMouseUp",e),document.removeEventListener("mouseup",E),d(!1))},x=e=>"mouseUp"===e?w:"mouseDown"===e?y:void 0,E=x("mouseUp"),_=(e,n)=>r=>{if(Jf(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&c)return;m.cancel();const o=["focus","mouseenter"].includes(r.type);o!==f&&(n?m(o):p(o))},C=()=>{m.cancel(),document.removeEventListener("mouseup",E)};if((0,a.useEffect)((()=>C),[]),1!==a.Children.count(t))return t;const S={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:x("mouseDown")},k=a.Children.only(t),{children:T,disabled:R}=k.props,P=R?Xf:Zf,M=(({anchor:e,grandchildren:t,isOver:n,offset:r,position:o,shortcut:i,text:s,className:c,...u})=>(0,a.concatChildren)(t,n&&(0,a.createElement)(Gf,{focusOnMount:!1,position:o,className:l()("components-tooltip",c),"aria-hidden":"true",animate:!1,offset:r,anchor:e,shift:!0,...u},s,(0,a.createElement)(Kf,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:T,...{anchor:h,isOver:f,offset:4,position:n,shortcut:o,text:r},...s});return P({child:k,eventHandlers:S,childrenWithPopover:M,mergedRefs:b})};const ep=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],tp={"top left":(0,c.__)("Top Left"),"top center":(0,c.__)("Top Center"),"top right":(0,c.__)("Top Right"),"center left":(0,c.__)("Center Left"),"center center":(0,c.__)("Center"),center:(0,c.__)("Center"),"center right":(0,c.__)("Center Right"),"bottom left":(0,c.__)("Bottom Left"),"bottom center":(0,c.__)("Bottom Center"),"bottom right":(0,c.__)("Bottom Right")},np=ep.flat();function rp(e){return("center"===e?"center center":e).replace("-"," ")}function op(e,t){return`${e}-${rp(t).replace(" ","-")}`}o(1281);function ip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fu(t)}var ap=function(){var e=ip.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var sp={grad:.9,turn:360,rad:360/(2*Math.PI)},lp=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},cp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},up=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},dp=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},fp=function(e){return{r:up(e.r,0,255),g:up(e.g,0,255),b:up(e.b,0,255),a:up(e.a)}},pp=function(e){return{r:cp(e.r),g:cp(e.g),b:cp(e.b),a:cp(e.a,3)}},mp=/^#([0-9a-f]{3,8})$/i,hp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},gp=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},vp=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},bp=function(e){return{h:dp(e.h),s:up(e.s,0,100),l:up(e.l,0,100),a:up(e.a)}},yp=function(e){return{h:cp(e.h),s:cp(e.s),l:cp(e.l),a:cp(e.a,3)}},wp=function(e){return vp((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},xp=function(e){return{h:(t=gp(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Ep=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Sp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kp={string:[[function(e){var t=mp.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?cp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?cp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Cp.exec(e)||Sp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:fp({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Ep.exec(e)||_p.exec(e);if(!t)return null;var n,r,o=bp({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(sp[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return wp(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return lp(t)&&lp(n)&&lp(r)?fp({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!lp(t)||!lp(n)||!lp(r))return null;var a=bp({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return wp(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!lp(t)||!lp(n)||!lp(r))return null;var a=function(e){return{h:dp(e.h),s:up(e.s,0,100),v:up(e.v,0,100),a:up(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return vp(a)},"hsv"]]},Tp=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Rp=function(e){return"string"==typeof e?Tp(e.trim(),kp.string):"object"==typeof e&&null!==e?Tp(e,kp.object):[null,void 0]},Pp=function(e,t){var n=xp(e);return{h:n.h,s:up(n.s+100*t,0,100),l:n.l,a:n.a}},Mp=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ip=function(e,t){var n=xp(e);return{h:n.h,s:n.s,l:up(n.l+100*t,0,100),a:n.a}},Np=function(){function e(e){this.parsed=Rp(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return cp(Mp(this.rgba),2)},e.prototype.isDark=function(){return Mp(this.rgba)<.5},e.prototype.isLight=function(){return Mp(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=pp(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?hp(cp(255*o)):"","#"+hp(t)+hp(n)+hp(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return pp(this.rgba)},e.prototype.toRgbString=function(){return t=(e=pp(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return yp(xp(this.rgba))},e.prototype.toHslString=function(){return t=(e=yp(xp(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=gp(this.rgba),{h:cp(e.h),s:cp(e.s),v:cp(e.v),a:cp(e.a,3)};var e},e.prototype.invert=function(){return Op({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Op(Pp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Op(Pp(this.rgba,-e))},e.prototype.grayscale=function(){return Op(Pp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Op(Ip(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Op(Ip(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Op({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):cp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=xp(this.rgba);return"number"==typeof e?Op({h:e,s:t.s,l:t.l,a:t.a}):cp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Op(e).toHex()},e}(),Op=function(e){return e instanceof Np?e:new Np(e)},Dp=[],Ap=function(e){e.forEach((function(e){Dp.indexOf(e)<0&&(e(Np,kp),Dp.push(e))}))};function Lp(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));p<c&&(c=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}function zp(e="",t=1){return Op(e).alpha(t).toRgbString()}Ap([Lp]);const Fp="#fff",Bp={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},jp="var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",Vp={theme:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",themeDark10:jp,background:Fp,backgroundDisabled:Bp[100],border:Bp[600],borderHover:Bp[700],borderFocus:jp,borderDisabled:Bp[400],textDisabled:Bp[600],textDark:Fp,darkGrayPlaceholder:zp(Bp[900],.62),lightGrayPlaceholder:zp(Fp,.65)},Hp=Object.freeze({gray:Bp,white:Fp,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:Vp});function $p(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${t};\n\t\t}\n\t`}var Wp={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const Up=()=>Wp,Gp=hd("div",{target:"ecapk1j3"})(Up,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>ip("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Kp=hd("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),qp=e=>ip("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",$p("transition")," ",(({isActive:e})=>ip("box-shadow:",e?`0 0 0 2px ${Hp.gray[900]}`:null,";color:",e?Hp.gray[900]:Hp.gray[400],";*:hover>&{color:",e?Hp.gray[900]:Hp.ui.theme,";}",""))(e),";",""),Yp=hd("span",{target:"ecapk1j1"})("height:6px;width:6px;",qp,";"),Xp=hd("span",{target:"ecapk1j0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function Zp({isActive:e=!1,value:t,...n}){const r=tp[t];return(0,a.createElement)(Qf,{text:r},(0,a.createElement)(ke,{as:Xp,role:"gridcell",...n},(0,a.createElement)(bd,null,t),(0,a.createElement)(Yp,{isActive:e,role:"presentation"})))}function Jp(e){return(0,v.useState)(e)[0]}function Qp(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=g(e);!(t=o()).done;)r();return n}function em(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function tm(e){return e.slice().reverse()}function nm(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function rm(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function om(e){void 0===e&&(e={});var t=Jp(e).baseId,n=(0,v.useContext)(we),r=(0,v.useRef)(0),o=(0,v.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function im(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function am(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&im(t.ref.current,e.ref.current)}))}function sm(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function lm(e){for(var t=Qp(e),n=sm(t),r=[],o=0;o<n;o+=1)for(var i,a=g(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(p(p({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function cm(e,t,n){for(var r,o=sm(e),i=g(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var l=a[s];if(!l||n&&l.disabled){var c=0===s&&n?ue(a):a[s-1];a[s]=c&&t!==(null==c?void 0:c.id)&&n?c:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==c?void 0:c.groupId}}}return e}var um={id:null,ref:{current:null}};function dm(e,t){return e.filter((function(e){return e.groupId===t}))}var fm={horizontal:"vertical",vertical:"horizontal"};function pm(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function mm(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,l=a.ref.current;return s&&l?im(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function hm(e,t){var n=mm(e);e!==n&&t(n)}function gm(e,t){var n=(0,v.useRef)([]);(0,v.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return H(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&hm(e,t),n.current=e}),{root:o}),a=g(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function vm(e,t){"function"==typeof IntersectionObserver?gm(e,t):function(e,t){(0,v.useEffect)((function(){var n=setTimeout((function(){return hm(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function bm(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,l=e.loop,c=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,m=e.unstable_includesBaseElement,h=e.initialVirtual,g=e.initialRTL,v=e.initialOrientation,b=e.initialCurrentId,y=e.initialLoop,w=e.initialWrap,x=e.initialShift,E=e.hasSetCurrentId;switch(t.type){case"registerGroup":var _=t.group;if(0===a.length)return p(p({},e),{},{groups:[_]});var C=am(a,_);return p(p({},e),{},{groups:pm(a,_,C)});case"unregisterGroup":var S=t.id,k=a.filter((function(e){return e.id!==S}));return k.length===a.length?e:p(p({},e),{},{groups:k});case"registerItem":var T,R=t.item,P=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(R.ref.current)})),M=p({groupId:null==P?void 0:P.id},R),I=am(i,M),N=p(p({},e),{},{items:pm(i,M,I)});return E||f||void 0!==b?N:p(p({},N),{},{currentId:null===(T=ue(N.items))||void 0===T?void 0:T.id});case"unregisterItem":var O=t.id,D=i.filter((function(e){return e.id!==O}));if(D.length===i.length)return e;var A=u.filter((function(e){return e!==O})),L=p(p({},e),{},{pastIds:A,items:D});if(s&&s===O){var z=m?null:de(p(p({},L),{},{currentId:A[0]}));return p(p({},L),{},{currentId:z})}return L;case"move":var F=t.id;if(void 0===F)return e;var B=u.filter((function(e){return e!==s&&e!==F})),j=s?[s].concat(B):B,V=p(p({},e),{},{pastIds:j});if(null===F)return p(p({},V),{},{unstable_moves:f+1,currentId:de(V,F)});var H=nm(i,F);return p(p({},V),{},{unstable_moves:H?f+1:f,currentId:de(V,null==H?void 0:H.id)});case"next":if(null==s)return bm(e,p(p({},t),{},{type:"first"}));var $=r&&"vertical"!==o,W=$?tm(i):i,U=W.find((function(e){return e.id===s}));if(!U)return bm(e,p(p({},t),{},{type:"first"}));var G=!!U.groupId,K=W.indexOf(U),q=W.slice(K+1),Y=dm(q,U.groupId);if(t.allTheWay){var X=ue($?dm(W,U.groupId):tm(Y));return bm(e,p(p({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&fm[e]}(G?o||"horizontal":o),J=l&&l!==Z,Q=G&&c&&c!==Z,ee=t.hasNullItem||!G&&J&&m;if(J){var te=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[um]:[],e.slice(0,r))}(Q&&!ee?W:dm(W,U.groupId),s,ee),ne=ue(te,s);return bm(e,p(p({},t),{},{type:"move",id:null==ne?void 0:ne.id}))}if(Q){var re=ue(ee?Y:q,s),oe=ee?(null==re?void 0:re.id)||null:null==re?void 0:re.id;return bm(e,p(p({},t),{},{type:"move",id:oe}))}var ie=ue(Y,s);return bm(e,!ie&&ee?p(p({},t),{},{type:"move",id:null}):p(p({},t),{},{type:"move",id:null==ie?void 0:ie.id}));case"previous":var ae=!!!a.length&&m,se=bm(p(p({},e),{},{items:tm(i)}),p(p({},t),{},{type:"next",hasNullItem:ae}));return p(p({},se),{},{items:i});case"down":var le=d&&!t.allTheWay,ce=lm(em(cm(Qp(i),s,le))),fe=l&&"horizontal"!==l&&m,pe=bm(p(p({},e),{},{orientation:"vertical",items:ce}),p(p({},t),{},{type:"next",hasNullItem:fe}));return p(p({},pe),{},{orientation:o,items:i});case"up":var me=d&&!t.allTheWay,he=lm(tm(em(cm(Qp(i),s,me)))),ge=m,ve=bm(p(p({},e),{},{orientation:"vertical",items:he}),p(p({},t),{},{type:"next",hasNullItem:ge}));return p(p({},ve),{},{orientation:o,items:i});case"first":var be=ue(i);return bm(e,p(p({},t),{},{type:"move",id:null==be?void 0:be.id}));case"last":var ye=bm(p(p({},e),{},{items:tm(i)}),p(p({},t),{},{type:"first"}));return p(p({},ye),{},{items:i});case"sort":return p(p({},e),{},{items:mm(i),groups:mm(a)});case"setVirtual":return p(p({},e),{},{unstable_virtual:rm(t.virtual,n)});case"setRTL":return p(p({},e),{},{rtl:rm(t.rtl,r)});case"setOrientation":return p(p({},e),{},{orientation:rm(t.orientation,o)});case"setCurrentId":var we=de(p(p({},e),{},{currentId:rm(t.currentId,s)}));return p(p({},e),{},{currentId:we,hasSetCurrentId:!0});case"setLoop":return p(p({},e),{},{loop:rm(t.loop,l)});case"setWrap":return p(p({},e),{},{wrap:rm(t.wrap,c)});case"setShift":return p(p({},e),{},{shift:rm(t.shift,d)});case"setIncludesBaseElement":return p(p({},e),{},{unstable_includesBaseElement:rm(t.includesBaseElement,m)});case"reset":return p(p({},e),{},{unstable_virtual:h,rtl:g,orientation:v,currentId:de(p(p({},e),{},{currentId:b})),loop:y,wrap:w,shift:x,unstable_moves:0,pastIds:[]});case"setItems":return p(p({},e),{},{items:t.items});default:throw new Error}}function ym(e){return(0,v.useCallback)(e,[])}function wm(e){void 0===e&&(e={});var t=Jp(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,i=void 0!==o&&o,a=t.orientation,s=t.currentId,l=t.loop,c=void 0!==l&&l,u=t.wrap,d=void 0!==u&&u,f=t.shift,h=void 0!==f&&f,g=t.unstable_includesBaseElement,b=om(m(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),y=(0,v.useReducer)(bm,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:h,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=g?g:null===s,initialVirtual:r,initialRTL:i,initialOrientation:a,initialCurrentId:s,initialLoop:c,initialWrap:d,initialShift:h}),w=y[0],x=(w.pastIds,w.initialVirtual,w.initialRTL,w.initialOrientation,w.initialCurrentId,w.initialLoop,w.initialWrap,w.initialShift,w.hasSetCurrentId,m(w,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),E=y[1],_=(0,v.useState)(!1),C=_[0],S=_[1],k=function(){var e=(0,v.useRef)(!1);return U((function(){return function(){e.current=!0}}),[]),e}(),T=(0,v.useCallback)((function(e){return E({type:"setItems",items:e})}),[]);return vm(x.items,T),p(p(p({},b),x),{},{unstable_hasActiveWidget:C,unstable_setHasActiveWidget:S,registerItem:ym((function(e){k.current||E({type:"registerItem",item:e})})),unregisterItem:ym((function(e){k.current||E({type:"unregisterItem",id:e})})),registerGroup:ym((function(e){k.current||E({type:"registerGroup",group:e})})),unregisterGroup:ym((function(e){k.current||E({type:"unregisterGroup",id:e})})),move:ym((function(e){return E({type:"move",id:e})})),next:ym((function(e){return E({type:"next",allTheWay:e})})),previous:ym((function(e){return E({type:"previous",allTheWay:e})})),up:ym((function(e){return E({type:"up",allTheWay:e})})),down:ym((function(e){return E({type:"down",allTheWay:e})})),first:ym((function(){return E({type:"first"})})),last:ym((function(){return E({type:"last"})})),sort:ym((function(){return E({type:"sort"})})),unstable_setVirtual:ym((function(e){return E({type:"setVirtual",virtual:e})})),setRTL:ym((function(e){return E({type:"setRTL",rtl:e})})),setOrientation:ym((function(e){return E({type:"setOrientation",orientation:e})})),setCurrentId:ym((function(e){return E({type:"setCurrentId",currentId:e})})),setLoop:ym((function(e){return E({type:"setLoop",loop:e})})),setWrap:ym((function(e){return E({type:"setWrap",wrap:e})})),setShift:ym((function(e){return E({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:ym((function(e){return E({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:ym((function(){return E({type:"reset"})}))})}function xm(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):Ee(e,t,n)}function Em(e,t){var n=xm(e,"blur",t),r=e.dispatchEvent(n),o=I(I({},t),{},{bubbles:!0});return e.dispatchEvent(xm(e,"focusout",o)),r}function _m(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=H(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,$(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var Cm=W&&"msCrypto"in window;var Sm=W&&"msCrypto"in window;function km(e,t,n){var r=G(n);return(0,v.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!K(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(_m(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function Tm(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Rm=B({name:"Composite",compose:[le],keys:fe,useOptions:function(e){return p(p({},e),{},{currentId:de(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,i=t.onBlurCapture,a=t.onKeyDown,s=t.onKeyDownCapture,l=t.onKeyUpCapture,c=m(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=(0,v.useRef)(null),d=nm(e.items,e.currentId),f=(0,v.useRef)(null),h=G(r),g=G(o),b=G(i),y=G(a),w=function(e){var t=G(e),n=(0,v.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,v.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&he(n)}),[r]),o}(d),x=Sm?function(e){var t=(0,v.useRef)(null);return(0,v.useEffect)((function(){var n=H(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;(0,v.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var E=km(e.unstable_virtual,d,s),_=km(e.unstable_virtual,d,l),C=(0,v.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==x?void 0:x.current)||t.relatedTarget,o=Tm(e.items,r);K(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),S=(0,v.useCallback)((function(t){var n;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented)if(e.unstable_virtual)K(t)&&w();else if(K(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),k=(0,v.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return Cm?q(e.currentTarget):e.relatedTarget}(t),i=Tm(e.items,o);if(K(t)&&i)o===r?f.current&&f.current!==o&&Em(f.current,t):r&&Em(r,t),t.stopPropagation();else!Tm(e.items,t.target)&&r&&Em(r,t)}}),[e.unstable_virtual,e.items,d]),T=(0,v.useCallback)((function(t){var n,r;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented&&null===e.currentId&&K(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=ue(em(tm(Qp(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last},l=s[t.key];l&&(t.preventDefault(),l())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return p({ref:V(u,n),id:e.baseId,onFocus:S,onFocusCapture:C,onBlurCapture:k,onKeyDownCapture:E,onKeyDown:T,onKeyUpCapture:_,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},c)},useComposeProps:function(e,t){t=re(e,t,!0);var n=le(e,t,!0);return e.unstable_virtual||null===e.currentId?p({tabIndex:0},n):p(p({},t),{},{ref:n.ref})}}),Pm=z({as:"div",useHook:Rm,useCreateElement:function(e,t,n){return R(e,t,n)}}),Mm=B({name:"Group",compose:re,keys:[],useProps:function(e,t){return p({role:"group"},t)}}),Im=(z({as:"div",useHook:Mm}),B({name:"CompositeGroup",compose:[Mm,xe],keys:pe,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Mm.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,m(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,m(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=nm(e.items,n),s=nm(t.items,o),l=null==a?void 0:a.groupId,c=null==s?void 0:s.groupId;if(t.id===c||t.id===l)return!1}return Mm.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=m(t,["ref"]),o=(0,v.useRef)(null),i=e.id;return U((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),p({ref:V(o,n)},r)}})),Nm=z({as:"div",useHook:Im});hd("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const Om=hd("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",Up,";",(()=>ip({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>ip({pointerEvents:e?"none":void 0},"","")),";"),Dm=hd("span",{target:"erowt50"})("height:2px;width:2px;",qp,";",(({isActive:e})=>ip("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),Am=Xp;var Lm=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const s=function(e="center"){const t=rp(e),n=np.indexOf(t);return n>-1?n:void 0}(o),c=(n/24).toFixed(2),u=l()("component-alignment-matrix-control-icon",e),d={...r,transform:`scale(${c})`};return(0,a.createElement)(Om,{...i,className:u,disablePointerEvents:t,role:"presentation",style:d},np.map(((e,t)=>{const n=s===t;return(0,a.createElement)(Am,{key:e},(0,a.createElement)(Dm,{isActive:n}))})))};const zm=()=>{};function Fm({className:e,id:t,label:n=(0,c.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i=zm,width:s=92,...d}){const[f]=(0,a.useState)(null!=o?o:r),p=function(e){const t=(0,u.useInstanceId)(Fm,"alignment-matrix-control");return e||t}(t),m=op(p,f),h=wm({baseId:p,currentId:m,rtl:(0,c.isRTL)()}),{setCurrentId:g}=h;(0,a.useEffect)((()=>{void 0!==o&&g(op(p,o))}),[o,g,p]);const v=l()("component-alignment-matrix-control",e);return(0,a.createElement)(Pm,{...d,...h,"aria-label":n,as:Gp,className:v,role:"grid",size:s},ep.map(((e,t)=>(0,a.createElement)(Nm,{...h,as:Kp,role:"row",key:t},e.map((e=>{const t=op(p,e),n=h.currentId===t;return(0,a.createElement)(Zp,{...h,id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1})}))))))}Fm.Icon=Lm;var Bm=Fm;function jm(e){return"appear"===e?"top":"left"}function Vm(e){if("loading"===e.type)return l()("components-animate__loading");const{type:t,origin:n=jm(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return l()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?l()("components-animate__slide-in","is-from-"+n):void 0}var Hm=function({type:e,options:t={},children:n}){return n({className:Vm({type:e,...t})})};function $m(){const e=(0,v.useRef)(!1);return Kt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class Wm extends v.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Um({children:e,isPresent:t}){const n=(0,v.useId)(),r=(0,v.useRef)(null),o=(0,v.useRef)({width:0,height:0,top:0,left:0});return(0,v.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${i}px !important;\n            top: ${a}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}}),[t]),v.createElement(Wm,{isPresent:t,childRef:r,sizeRef:o},v.cloneElement(e,{ref:r}))}const Gm=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=sn(Km),l=(0,v.useId)(),c=(0,v.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,v.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),v.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=v.createElement(Um,{isPresent:n},e)),v.createElement(Gt.Provider,{value:c},e)};function Km(){return new Map}const qm=e=>e.key||"";const Ym=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{uo(!o,"Replace exitBeforeEnter with mode='wait'");let[s]=function(){const e=$m(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,v.useCallback)((()=>$r.postRender(r)),[r]),t]}();const l=(0,v.useContext)(un).forceRender;l&&(s=l);const c=$m(),u=function(e){const t=[];return v.Children.forEach(e,(e=>{(0,v.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=new Set,p=(0,v.useRef)(d),m=(0,v.useRef)(new Map).current,h=(0,v.useRef)(!0);var g;if(Kt((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=qm(e);t.set(n,e)}))}(u,m),p.current=d})),g=()=>{h.current=!0,m.clear(),f.clear()},(0,v.useEffect)((()=>()=>g()),[]),h.current)return v.createElement(v.Fragment,null,d.map((e=>v.createElement(Gm,{key:qm(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const b=p.current.map(qm),y=u.map(qm),w=b.length;for(let e=0;e<w;e++){const t=b[e];-1===y.indexOf(t)&&f.add(t)}return"wait"===a&&f.size&&(d=[]),f.forEach((e=>{if(-1!==y.indexOf(e))return;const n=m.get(e);if(!n)return;const o=b.indexOf(e);d.splice(o,0,v.createElement(Gm,{key:qm(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);const t=p.current.findIndex((t=>t.key===e));if(p.current.splice(t,1),!f.size){if(p.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a},n))})),d=d.map((e=>{const t=e.key;return f.has(t)?e:v.createElement(Gm,{key:qm(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),v.createElement(v.Fragment,null,f.size?d:d.map((e=>(0,v.cloneElement)(e))))},Xm=(0,a.createContext)({flexItemDisplay:void 0}),Zm=()=>(0,a.useContext)(Xm);const Jm={name:"zjik7",styles:"display:flex"},Qm={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},eh={name:"82a6rk",styles:"flex:1"},th={name:"13nosa1",styles:">*{min-height:0;}"},nh={name:"1pwxzk4",styles:">*{min-width:0;}"};function rh(e){const{className:t,display:n,isBlock:r=!1,...o}=ed(e,"FlexItem"),i={},a=Zm().flexItemDisplay;i.Base=ip({display:n||a},"","");return{...o,className:Qu()(Qm,i.Base,r&&eh,t)}}var oh=td((function(e,t){const n=function(e){return rh({isBlock:!0,...ed(e,"FlexBlock")})}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"FlexBlock");const ih="4px";function ah(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${ih} * ${e})`}const sh=new RegExp(/-left/g),lh=new RegExp(/-right/g),ch=new RegExp(/Left/g),uh=new RegExp(/Right/g);function dh(e){return"left"===e?"right":"right"===e?"left":sh.test(e)?e.replace(sh,"-right"):lh.test(e)?e.replace(lh,"-left"):ch.test(e)?e.replace(ch,"Right"):uh.test(e)?e.replace(uh,"Left"):e}const fh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[dh(e),t])));function ph(e={},t){return()=>t?(0,c.isRTL)()?ip(t,""):ip(e,""):(0,c.isRTL)()?ip(fh(e),""):ip(e,"")}ph.watch=()=>(0,c.isRTL)();const mh=e=>null!=e;const hh=td((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...g}=ed(e,"Spacer");return{...g,className:Qu()(mh(n)&&ip("margin:",ah(n),";",""),mh(l)&&ip("margin-bottom:",ah(l),";margin-top:",ah(l),";",""),mh(s)&&ip("margin-left:",ah(s),";margin-right:",ah(s),";",""),mh(a)&&ip("margin-top:",ah(a),";",""),mh(r)&&ip("margin-bottom:",ah(r),";",""),mh(o)&&ph({marginLeft:ah(o)})(),mh(i)&&ph({marginRight:ah(i)})(),mh(c)&&ip("padding:",ah(c),";",""),mh(h)&&ip("padding-bottom:",ah(h),";padding-top:",ah(h),";",""),mh(m)&&ip("padding-left:",ah(m),";padding-right:",ah(m),";",""),mh(p)&&ip("padding-top:",ah(p),";",""),mh(u)&&ip("padding-bottom:",ah(u),";",""),mh(d)&&ph({paddingLeft:ah(d)})(),mh(f)&&ph({paddingRight:ah(f)})(),t)}}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"Spacer");var gh=hh;var vh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var bh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M7 11.5h10V13H7z"}));const yh=["40em","52em","64em"],wh=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>yh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${yh.length} breakpoints, got index ${t}`);const[n,r]=(0,a.useState)(t);return(0,a.useEffect)((()=>{const e=()=>{const e=yh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function xh(e,t={}){const n=wh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function Eh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:l=!1,...c}=ed(function(e){const{isReversed:t,...n}=e;return void 0!==t?(Zl()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=xh(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f=Qu();return{...c,className:(0,a.useMemo)((()=>{const e=ip({alignItems:null!=t?t:d?"normal":"center",flexDirection:u,flexWrap:l?"wrap":void 0,gap:ah(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Jm,e,d?th:nh,n)}),[t,n,f,u,o,i,d,s,l]),isColumn:d}}var _h=td((function(e,t){const{children:n,isColumn:r,...o}=Eh(e);return(0,a.createElement)(Xm.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,a.createElement)(vd,{...o,ref:t},n))}),"Flex");var Ch=td((function(e,t){const n=rh(e);return(0,a.createElement)(vd,{...n,ref:t})}),"FlexItem");const Sh={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function kh(e){return null!=e}const Th=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Rh="…",Ph={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Mh={ellipsis:Rh,ellipsizeMode:Ph.auto,limit:0,numberOfLines:0};function Ih(e="",t){const n={...Mh,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Ph.none)return e;let a,s;switch(o){case Ph.head:a=0,s=i;break;case Ph.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==Ph.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=kh(r)?r:Rh;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function Nh(e){const{className:t,children:n,ellipsis:r=Rh,ellipsizeMode:o=Ph.auto,limit:i=0,numberOfLines:s=0,...l}=ed(e,"Truncate"),c=Qu(),u=Ih("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}),d=o===Ph.auto;return{...l,className:(0,a.useMemo)((()=>c(d&&!s&&Sh,d&&!!s&&ip("-webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:u}}let Oh;Ap([Lp]);const Dh=_c((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Op(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Oh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Oh=e}return Oh}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Ah(e){const t=function(e){const t=Dh(e);return Op(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Lh="36px",zh="12px",Fh={controlSurfaceColor:Hp.white,controlTextActiveColor:Hp.ui.theme,controlPaddingX:zh,controlPaddingXLarge:`calc(${zh} * 1.3334)`,controlPaddingXSmall:`calc(${zh} / 1.3334)`,controlBackgroundColor:Hp.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Hp.ui.theme}`,controlDestructiveBorderColor:Hp.alert.red,controlHeight:Lh,controlHeightXSmall:`calc( ${Lh} * 0.6 )`,controlHeightSmall:`calc( ${Lh} * 0.8 )`,controlHeightLarge:`calc( ${Lh} * 1.2 )`,controlHeightXLarge:`calc( ${Lh} * 1.4 )`},Bh={toggleGroupControlBackgroundColor:Fh.controlBackgroundColor,toggleGroupControlBorderColor:Hp.ui.border,toggleGroupControlBackdropBackgroundColor:Fh.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Hp.ui.border,toggleGroupControlButtonColorActive:Fh.controlBackgroundColor};var jh=Object.assign({},Fh,Bh,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${ah(2)}`,cardPaddingSmall:`${ah(4)}`,cardPaddingMedium:`${ah(4)} ${ah(6)}`,cardPaddingLarge:`${ah(6)} ${ah(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Hp.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Hp.white,surfaceColor:Hp.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const Vh=ip("color:",Hp.gray[900],";line-height:",jh.fontLineHeightBase,";margin:0;",""),Hh={name:"4zleql",styles:"display:block"},$h=ip("color:",Hp.alert.green,";",""),Wh=ip("color:",Hp.alert.red,";",""),Uh=ip("color:",Hp.gray[700],";",""),Gh=ip("mark{background:",Hp.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Kh={name:"50zrmy",styles:"text-transform:uppercase"};var qh=o(3138);const Yh=_c((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Xh=13,Zh={body:Xh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Jh=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Qh(e=Xh){if(e in Zh)return Qh(Zh[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Xh})`} * ${jh.fontSize})`}function eg(e=3){if(!Jh.includes(e))return Qh(e);return jh[`fontSizeH${e}`]}var tg={name:"50zrmy",styles:"text-transform:uppercase"};function ng(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:E,weight:_=jh.fontWeight,...C}=ed(t,"Text");let S=o;const k=Array.isArray(p),T="caption"===y;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:l="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const h=i,g=(0,qh.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:d,searchWords:f,textToHighlight:h}),v=u;let b,y=-1,w="";const x=g.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;y++,r="object"==typeof l?o?l[s]:(l=Yh(l))[s.toLowerCase()]:l;const u=y===+t;w=`${r} ${u?e:""}`,b=!0===u&&null!==n?Object.assign({},c,n):c;const d={children:s,className:w,key:i,style:b};return"string"!=typeof v&&(d.highlightIndex=y),(0,a.createElement)(v,d)}return(0,a.createElement)("span",{children:s,className:p,key:i,style:m})}));return x}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const R=Qu();let P;!0===w&&(P="auto"),!1===w&&(P="none");const M=Nh({...C,className:(0,a.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${jh.controlHeight} + ${ah(2)})`;switch(e){case"large":n=`calc(${jh.controlHeightLarge} + ${ah(2)})`;break;case"small":n=`calc(${jh.controlHeightSmall} + ${ah(2)})`;break;case"xSmall":n=`calc(${jh.controlHeightXSmall} + ${ah(2)})`}return n}(n,v);if(t.Base=ip({color:s,display:u,fontSize:Qh(y),fontWeight:_,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=tg,t.optimalTextColor=null,b){const e="dark"===Ah(b);t.optimalTextColor=ip(e?{color:Hp.gray[900]}:{color:Hp.white},"","")}return R(Vh,t.Base,t.optimalTextColor,c&&Wh,!!k&&Gh,h&&Hh,T&&Uh,E&&e[E],x&&t.upperCase,i)}),[n,r,i,s,R,u,h,T,c,k,g,v,b,y,x,E,_]),children:o,ellipsizeMode:l||P});return!w&&Array.isArray(o)&&(S=a.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return id(e,["Link"])?(0,a.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:S}}var rg=td((function(e,t){const n=ng(e);return(0,a.createElement)(vd,{as:"span",...n,ref:t})}),"Text");const og={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var ig={name:"1739oy8",styles:"z-index:1"};const ag=({isFocused:e})=>e?ig:"",sg=hd(_h,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",ag,";");var lg={name:"1d3w5wq",styles:"width:100%"};const cg=hd("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>ip({backgroundColor:e?Hp.ui.backgroundDisabled:Hp.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":ip("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):lg),";"),ug=({inputSize:e,__next36pxDefaultSize:t})=>{const n={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:ah(4),paddingRight:ah(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:ah(2),paddingRight:ah(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:ah(4),paddingRight:ah(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:ah(2),paddingRight:ah(2)}),n[e]||n.default},dg=hd("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Hp.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=ip("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=ip("&:active{cursor:",t,";}","")),ip(n," ",r,";","")})," ",(({disabled:e})=>e?ip({color:Hp.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?ip("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>ip(ug(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>ip({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),fg=hd(rg,{target:"em5sgkm4"})("&&&{",og,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),pg=e=>(0,a.createElement)(fg,{...e,as:"label"}),mg=hd(Ch,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),hg=hd("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let n,r,o,i=t?Hp.ui.borderFocus:Hp.ui.border;return t&&(n=`0 0 0 1px ${Hp.ui.borderFocus} inset`,r="2px solid transparent",o="-2px"),e&&(i=Hp.ui.borderDisabled),ip({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",ph({paddingLeft:2}),";}"),gg=hd("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),vg=hd("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const bg=(0,a.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,a.createElement)(hg,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})}));var yg=bg;function wg({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,a.createElement)(bd,{as:"label",htmlFor:n},e):(0,a.createElement)(mg,null,(0,a.createElement)(pg,{htmlFor:n,...r},e)):null}function xg(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function Eg({__next36pxDefaultSize:e,__unstableInputWidth:t,children:n,className:r,disabled:o=!1,hideLabelFromVision:i=!1,labelPosition:s,id:l,isFocused:c=!1,label:d,prefix:f,size:p="default",suffix:m,...h},g){const v=function(e){const t=(0,u.useInstanceId)(Eg);return e||`input-base-control-${t}`}(l),b=i||!d,{paddingLeft:y,paddingRight:w}=ug({inputSize:p,__next36pxDefaultSize:e}),x=(0,a.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:y},InputControlSuffixWrapper:{paddingRight:w}})),[y,w]);return(0,a.createElement)(sg,{...h,...xg(s),className:r,gap:2,isFocused:c,labelPosition:s,ref:g},(0,a.createElement)(wg,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:s,htmlFor:v},d),(0,a.createElement)(cg,{__unstableInputWidth:t,className:"components-input-control__container",disabled:o,hideLabel:b,labelPosition:s},(0,a.createElement)(uc,{value:x},f&&(0,a.createElement)(gg,{className:"components-input-control__prefix"},f),n,m&&(0,a.createElement)(vg,{className:"components-input-control__suffix"},m)),(0,a.createElement)(yg,{disabled:o,isFocused:c})))}var _g=(0,a.forwardRef)(Eg);const Cg={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Sg(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function kg(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Sg(t-e,n-t,r)+t:e>n?+Sg(e-n,n-t,r)+n:e}function Tg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Rg(e,t,n){return(t=Tg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){Rg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ig={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Ng(e){return e?e[0].toUpperCase()+e.slice(1):""}const Og=["enter","leave"];function Dg(e,t="",n=!1){const r=Ig[e],o=r&&r[t]||t;return"on"+Ng(e)+Ng(o)+(function(e=!1,t){return e&&!Og.includes(t)}(n,o)?"Capture":"")}const Ag=["gotpointercapture","lostpointercapture"];function Lg(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=Ag.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function zg(e){return"touches"in e}function Fg(e){return zg(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Bg(e){return zg(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function jg(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Vg(e){const t=Bg(e);return zg(e)?t.identifier:t.pointerId}function Hg(e){const t=Bg(e);return[t.clientX,t.clientY]}function $g(e,...t){return"function"==typeof e?e(...t):e}function Wg(){}function Ug(...e){return 0===e.length?Wg:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Gg(e,t){return Object.assign({},t,e||{})}class Kg{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?$g(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);Cg.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=$g(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[m<g?-1:m>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[kg(t,i,a,r),kg(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=Cg.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=Cg.sub(t.offset,f);const e=t.delta.map(Math.abs);Cg.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Mg(Mg(Mg({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class qg extends Kg{constructor(...e){super(...e),Rg(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Cg.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Cg.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Fg(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Yg=e=>e,Xg={enabled(e=!0){return e},eventOptions(e,t,n){return Mg(Mg({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return Cg.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?Cg.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Yg},threshold(e){return Cg.toVector(e,0)}};const Zg=Mg(Mg({},Xg),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>Zg.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Jg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Qg="undefined"!=typeof window&&window.document&&window.document.createElement;function ev(){return Qg&&"ontouchstart"in window}const tv={isBrowser:Qg,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:ev(),touchscreen:ev()||Qg&&window.navigator.maxTouchPoints>1,pointer:Qg&&"onpointerdown"in window,pointerLock:Qg&&"exitPointerLock"in window.document},nv={mouse:0,touch:0,pen:8},rv=Mg(Mg({},Zg),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&tv.pointerLock,tv.touch&&n?"touch":this.pointerLock?"mouse":tv.pointer&&!o?"pointer":tv.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,tv.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=Cg.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(Cg.toVector(e)),distance:this.transform(Cg.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Mg(Mg({},nv),e):nv},keyboardDisplacement(e=10){return e}});Mg(Mg({},Xg),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!tv.touch&&tv.gesture)return"gesture";if(tv.touch&&r)return"touch";if(tv.touchscreen){if(tv.pointer)return"pointer";if(tv.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Gg($g(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Gg($g(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return Cg.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Mg(Mg({},Zg),{},{mouseOnly:(e=!0)=>e});const ov=Mg(Mg({},Zg),{},{mouseOnly:(e=!0)=>e}),iv=new Map,av=new Map;function sv(e){iv.set(e.key,e.engine),av.set(e.key,e.resolver)}const lv={key:"drag",engine:class extends qg{constructor(...e){super(...e),Rg(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=Zg.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Vg(e),n._pointerActive=!0,this.computeValues(Hg(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Fg(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=Vg(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Hg(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=Cg.sub(o,t._values),this.computeValues(o)),Cg.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Vg(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[a,s]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>a&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Jg[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,Cg.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Jg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:rv},cv={key:"hover",engine:class extends qg{constructor(...e){super(...e),Rg(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Hg(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Hg(e);t._movement=t._delta=Cg.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:ov};function uv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const dv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(tv.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},fv=["target","eventOptions","window","enabled","transform"];function pv(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=pv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class mv{constructor(e,t){Rg(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=Ig[e];return e+(n&&n[t]||t)}(t,n),s=Mg(Mg({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class hv{constructor(){Rg(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class gv{constructor(e){Rg(this,"gestures",new Set),Rg(this,"_targetEventStore",new mv(this)),Rg(this,"gestureEventStores",{}),Rg(this,"gestureTimeoutStores",{}),Rg(this,"handlers",{}),Rg(this,"config",{}),Rg(this,"pointerIds",new Set),Rg(this,"touchIds",new Set),Rg(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&vv(e,"drag");t.wheel&&vv(e,"wheel");t.scroll&&vv(e,"scroll");t.move&&vv(e,"move");t.pinch&&vv(e,"pinch");t.hover&&vv(e,"hover")}(this,e)}setEventIds(e){return zg(e)?(this.touchIds=new Set(jg(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=uv(r,fv);if(n.shared=pv({target:o,eventOptions:i,window:a,enabled:s,transform:l},dv),t){const e=av.get(t);n[t]=pv(Mg({shared:n.shared},c),e)}else for(const e in c){const t=av.get(e);t&&(n[e]=pv(Mg({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=bv(n,o.eventOptions,!!r);if(o.enabled){new(iv.get(t))(this,e,t).bind(i)}}const o=bv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Mg(Mg({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Ug(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Lg(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function vv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new mv(e,t),e.gestureTimeoutStores[t]=new hv}const bv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Dg(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function yv(e,t={},n,r){const o=y().useMemo((()=>new gv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const wv=e=>e,xv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},Ev="CHANGE",_v="COMMIT",Cv="CONTROL",Sv="DRAG_END",kv="DRAG_START",Tv="DRAG",Rv="INVALIDATE",Pv="PRESS_DOWN",Mv="PRESS_ENTER",Iv="PRESS_UP",Nv="RESET";function Ov(e=wv,t=xv,n){const[r,o]=(0,a.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case Cv:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Iv:case Pv:n.isDirty=!1;break;case kv:n.isDragging=!0;break;case Sv:n.isDragging=!1;break;case Ev:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case _v:n.value=t.payload.value,n.isDirty=!1;break;case Nv:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Rv:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=xv){const{value:t}=e;return{...xv,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},l=e=>t=>{o({type:e,payload:{event:t}})},c=e=>t=>{o({type:e,payload:t})},u=s(Ev),d=s(Nv),f=s(_v),p=c(kv),m=c(Tv),h=c(Sv),g=l(Iv),v=l(Pv),b=l(Mv),y=(0,a.useRef)(r),w=(0,a.useRef)({value:t.value,onChangeHandler:n});return(0,a.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,a.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,a.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:Cv,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:u,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:(e,t)=>o({type:Rv,payload:{error:e,event:t}}),pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}const Dv=()=>{};const Av=(0,a.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:s=!1,onBlur:l=Dv,onChange:c=Dv,onDrag:u=Dv,onDragEnd:d=Dv,onDragStart:f=Dv,onFocus:p=Dv,onKeyDown:m=Dv,onValidate:h=Dv,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:w,...x},E){const{state:_,change:C,commit:S,drag:k,dragEnd:T,dragStart:R,invalidate:P,pressDown:M,pressEnter:I,pressUp:N,reset:O}=Ov(b,{isDragEnabled:o,value:y,isPressEnterToChange:s},c),{value:D,isDragging:A,isDirty:L}=_,z=(0,a.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,a.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(A,t),B=e=>{const t=e.currentTarget.value;try{h(t),S(t,e)}catch(t){P(t,e)}},j=(V=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void T(e);u(e),k(e),A||(f(e),R(e))}},H={axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}},sv(lv),yv({drag:V},H||{},"drag"));var V,H;const $=o?j():{};let W;return"number"===w&&(W=e=>{x.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,a.createElement)(dg,{...x,...$,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:A,id:r,onBlur:e=>{l(e),v?.(!1),!L&&e.target.validity.valid||(z.current=!0,B(e))},onChange:e=>{const t=e.target.value;C(t,e)},onFocus:e=>{p(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(m(e),t){case"ArrowUp":N(e);break;case"ArrowDown":M(e);break;case"Enter":I(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&L&&(e.preventDefault(),O(y,e))}},onMouseDown:W,ref:E,inputSize:g,value:null!=D?D:"",type:w})}));var Lv=Av,zv={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Fv(e){var t;return null!==(t=zv[e])&&void 0!==t?t:""}const Bv={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const jv=hd("div",{target:"ej5x27r4"})("font-family:",Fv("default.fontFamily"),";font-size:",Fv("default.fontSize"),";",Bv,";"),Vv=hd("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&ip("margin-bottom:",ah(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Hv=ip(og,";display:inline-block;margin-bottom:",ah(2),";padding:0;",""),$v=hd("label",{target:"ej5x27r2"})(Hv,";");var Wv={name:"11yad0w",styles:"margin-bottom:revert"};const Uv=hd("p",{target:"ej5x27r1"})("margin-top:",ah(2),";margin-bottom:0;font-size:",Fv("helpText.fontSize"),";font-style:normal;color:",Hp.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&Wv),";"),Gv=hd("span",{target:"ej5x27r0"})(Hv,";"),Kv=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:s})=>(0,a.createElement)(jv,{className:l()("components-base-control",i)},(0,a.createElement)(Vv,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,a.createElement)(bd,{as:"label",htmlFor:t},n):(0,a.createElement)($v,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,a.createElement)(bd,{as:"label"},n):(0,a.createElement)(Kv.VisualLabel,null,n)),s),!!o&&(0,a.createElement)(Uv,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));Kv.VisualLabel=({className:e,children:t,...n})=>(0,a.createElement)(Gv,{...n,className:l()("components-base-control__label",e)},t);var qv=Kv;const Yv=()=>{};const Xv=(0,a.forwardRef)((function({__next36pxDefaultSize:e,__unstableStateReducer:t=(e=>e),__unstableInputWidth:n,className:r,disabled:o=!1,help:i,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:d=!1,label:f,labelPosition:p="top",onChange:m=Yv,onValidate:h=Yv,onKeyDown:g=Yv,prefix:v,size:b="default",style:y,suffix:w,value:x,...E},_){const[C,S]=(0,a.useState)(!1),k=function(e){const t=(0,u.useInstanceId)(Xv);return e||`inspector-input-control-${t}`}(c),T=l()("components-input-control",r),R=function(e){const t=(0,a.useRef)(e.value),[n,r]=(0,a.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,a.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:x,onBlur:E.onBlur,onChange:m}),P=i?{["string"==typeof i?"aria-describedby":"aria-details"]:`${k}__help`}:{};return(0,a.createElement)(qv,{className:T,help:i,id:k,__nextHasNoMarginBottom:!0},(0,a.createElement)(_g,{__next36pxDefaultSize:e,__unstableInputWidth:n,disabled:o,gap:3,hideLabelFromVision:s,id:k,isFocused:C,justify:"left",label:f,labelPosition:p,prefix:v,size:b,style:y,suffix:w},(0,a.createElement)(Lv,{...E,...P,__next36pxDefaultSize:e,className:"components-input-control__input",disabled:o,id:k,isFocused:C,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:v?ah(2):void 0,paddingInlineEnd:w?ah(2):void 0,ref:_,setIsFocused:S,size:b,stateReducer:t,...R})))}));var Zv=Xv;var Jv={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Qv=({hideHTMLArrows:e})=>e?Jv:"",eb=hd(Zv,{target:"ep09it41"})(Qv,";"),tb=hd(xd,{target:"ep09it40"})("&&&&&{color:",Hp.ui.theme,";}"),nb={smallSpinButtons:ip("width:",ah(5),";min-width:",ah(5),";height:",ah(5),";","")};function rb(e){const t=Number(e);return isNaN(t)?0:t}function ob(...e){return e.reduce(((e,t)=>e+rb(t)),0)}function ib(e,t,n){const r=rb(e);return Math.max(t,Math.min(r,n))}function ab(e=0,t=1/0,n=1/0,r=1){const o=rb(e),i=rb(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=ib(Math.round(o/i)*i,t,n);return a?rb(s.toFixed(a)):s}const sb={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},lb={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function cb(e){return"string"==typeof e?[e]:a.Children.toArray(e).filter((e=>(0,a.isValidElement)(e)))}function ub(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=ed(e,"HStack"),s=function(e,t="row"){if(!kh(e))return{};const n="column"===t?lb:sb;return e in n?n[e]:{align:e}}(t,r),l=cb(n).map(((e,t)=>{if(id(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,a.createElement)(Ch,{isBlock:!0,key:r,...n.props})}return e}));return Eh({children:l,direction:r,justify:"center",...s,...i,gap:o})}var db=td((function(e,t){const n=ub(e);return(0,a.createElement)(vd,{...n,ref:t})}),"HStack");const fb=()=>{};const pb=(0,a.forwardRef)((function({__unstableStateReducer:e,className:t,dragDirection:n="n",hideHTMLArrows:r=!1,spinControls:o="native",isDragEnabled:i=!0,isShiftStepEnabled:s=!0,label:d,max:f=1/0,min:p=-1/0,required:m=!1,shiftStep:h=10,step:g=1,type:v="number",value:b,size:y="default",suffix:w,onChange:x=fb,...E},_){r&&(Zl()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"}),o="none");const C=(0,a.useRef)(),S=(0,u.useMergeRefs)([C,_]),k="any"===g,T=k?1:Th(g),R=ab(0,p,f,T),P=(e,t)=>k?Math.min(f,Math.max(p,Th(e))):ab(e,p,f,null!=t?t:T),M="number"===v?"off":void 0,I=l()("components-number-control",t),N=Qu()("small"===y&&nb.smallSpinButtons),O=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&s,o=r?Th(h)*T:T;let i=function(e){const t=""===e;return!kh(e)||t}(e)?R:e;return"up"===t?i=ob(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=rb(t);return 0===n?r:e-r}),0)}(i,o)),P(i,r?o:void 0)},D=e=>t=>x(String(O(b,e,t)),{event:{...t,target:C.current}});return(0,a.createElement)(eb,{autoComplete:M,inputMode:"numeric",...E,className:I,dragDirection:n,hideHTMLArrows:"native"!==o,isDragEnabled:i,label:d,max:f,min:p,ref:S,required:m,step:g,type:v,value:b,__unstableStateReducer:(t,r)=>{var o;const a=((e,t)=>{const r={...e},{type:o,payload:a}=t,l=a.event,u=r.value;if(o!==Iv&&o!==Pv||(r.value=O(u,o===Iv?"up":"down",l)),o===Tv&&i){const[e,t]=a.delta,o=a.shiftKey&&s,i=o?Th(h)*T:T;let l,d;switch(n){case"n":d=t,l=-1;break;case"e":d=e,l=(0,c.isRTL)()?-1:1;break;case"s":d=t,l=1;break;case"w":d=e,l=(0,c.isRTL)()?1:-1}if(0!==d){d=Math.ceil(Math.abs(d))*Math.sign(d);const e=d*i*l;r.value=P(ob(u,e),o?i:void 0)}}if(o===Mv||o===_v){const e=!1===m&&""===u;r.value=e?u:P(u)}return r})(t,r);return null!==(o=e?.(a,r))&&void 0!==o?o:a},size:y,suffix:"custom"===o?(0,a.createElement)(a.Fragment,null,w,(0,a.createElement)(gh,{marginBottom:0,marginRight:2},(0,a.createElement)(db,{spacing:1},(0,a.createElement)(tb,{className:N,icon:vh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Increment"),tabIndex:-1,onClick:D("up")}),(0,a.createElement)(tb,{className:N,icon:bh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Decrement"),tabIndex:-1,onClick:D("down")})))):w,onChange:x})}));var mb=pb;const hb=({__nextHasNoMarginBottom:e})=>e?"":ip("margin-bottom:",ah(2),";",""),gb=hd(_h,{target:"eln3bjz4"})(hb,";"),vb=hd("div",{target:"eln3bjz3"})("border-radius:50%;border:",jh.borderWidth," solid ",Hp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),bb=hd("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),yb=hd("div",{target:"eln3bjz1"})("background:",Hp.ui.theme,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),wb=hd(rg,{target:"eln3bjz0"})("color:",Hp.ui.theme,";margin-right:",ah(3),";");var xb=function({value:e,onChange:t,...n}){const r=(0,a.useRef)(null),o=(0,a.useRef)(),i=(0,a.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,u.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,a.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,a.createElement)(vb,{ref:r,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,a.createElement)(bb,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,a.createElement)(yb,{className:"components-angle-picker-control__angle-circle-indicator"})))};var Eb=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=(0,c.__)("Angle"),onChange:i,value:s,...u}=e;n||Zl()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const d=l()("components-angle-picker-control",r),f=(0,a.createElement)(wb,null,"°"),[p,m]=(0,c.isRTL)()?[f,null]:[null,f];return(0,a.createElement)(gb,{...u,ref:t,__nextHasNoMarginBottom:n,className:d,gap:2},(0,a.createElement)(oh,null,(0,a.createElement)(mb,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:p,suffix:m})),(0,a.createElement)(gh,{marginBottom:"1",marginTop:"auto"},(0,a.createElement)(xb,{"aria-hidden":"true",value:s,onChange:i})))})),_b=o(4793),Cb=o.n(_b),Sb=window.wp.richText,kb=window.wp.a11y;const Tb=new RegExp(`[${["-","~","­","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),Rb=e=>Cb()(e).toLocaleLowerCase().replace(Tb,"-");function Pb(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Mb(e){return t=>{const[n,r]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,u.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+Pb(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:a=[]}=i;if("string"==typeof i.label&&(a=[...a,i.label]),a.some((t=>e.test(Cb()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function Ib(e){const t=e.useItems?e.useItems:Mb(e);return function({filterValue:e,instanceId:n,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:d,onReset:f,reset:p,contentRef:m}){const[h]=t(e),g=(0,Sb.useAnchor)({editableContentElement:m.current}),[v,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),w=(0,u.useMergeRefs)([y,(0,u.useRefEffect)((e=>{m.current&&b(e.ownerDocument!==m.current.ownerDocument)}),[m])]);!function(e,t){(0,a.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,p);const x=(0,u.useDebounce)(kb.speak,500);if((0,a.useLayoutEffect)((()=>{s(h),function(t){x&&(t.length?x(e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length):(0,c.sprintf)((0,c._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):x((0,c.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,a.createElement)(e,{id:r,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,a.createElement)(xd,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:l()("components-autocomplete__result",o,{"is-selected":t===i}),onClick:()=>d(e)},e.label))));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Gf,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:w},(0,a.createElement)(E,null)),m.current&&v&&(0,Dt.createPortal)((0,a.createElement)(E,{Component:bd}),m.current.ownerDocument.body))}}const Nb=[];function Ob({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,u.useInstanceId)(Ob),[s,l]=(0,a.useState)(0),[c,d]=(0,a.useState)(Nb),[f,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),b=(0,a.useRef)(!1);function y(r){const{getOptionCompletion:o}=m||{};if(!r.isDisabled){if(o){const i=o(r.value,f),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===m)return;const r=e.start,o=r-m.triggerPrefix.length-f.length,i=(0,Sb.create)({html:(0,a.renderToString)(n)});t((0,Sb.insert)(e,i,o,r))}(s.value)}w()}}function w(){l(0),d(Nb),p(""),h(null),v(null)}const x=(0,a.useMemo)((()=>(0,Sb.isCollapsed)(e)?(0,Sb.getTextContent)((0,Sb.slice)(e,0)):""),[e]);(0,a.useEffect)((()=>{if(!x)return void(m&&w());const t=r?.find((({triggerPrefix:t,allowContext:n})=>{const r=x.lastIndexOf(t);if(-1===r)return!1;const o=x.slice(r+t.length);if(o.length>50)return!1;const i=0===c.length,a=1===o.split(/\s/).length,s=b.current&&o.split(/\s/).length<=3;if(i&&!s&&!a)return!1;const l=(0,Sb.getTextContent)((0,Sb.slice)(e,void 0,(0,Sb.getTextContent)(e).length));return!(n&&!n(x.slice(0,r),l))&&(!/^\s/.test(o)&&!/\s\s+$/.test(o)&&/[\u0000-\uFFFF]*$/.test(o))}));if(!t)return void(m&&w());const n=Pb(t.triggerPrefix),o=Cb()(x),i=o.slice(o.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${n}([\0-￿]*)$`)),a=i&&i[1];h(t),v((()=>t!==m?Ib(t):g)),p(null===a?"":a)}),[x]);const{key:E=""}=c[s]||{},{className:_}=m||{},C=!!m&&c.length>0,S=C?`components-autocomplete-listbox-${i}`:void 0;return{listBoxId:S,activeId:C?`components-autocomplete-item-${i}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,m&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":l((0===s?c.length:s)-1);break;case"ArrowDown":l((s+1)%c.length);break;case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void w();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,a.createElement)(g,{className:_,filterValue:f,instanceId:i,listBoxId:S,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),d(e)},onSelect:y,value:e,contentRef:o,reset:w})}}function Db(e){const t=(0,a.useRef)(null),n=(0,a.useRef)(),{record:r}=e,o=function(e){const t=(0,a.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:l,onKeyDown:c}=Ob({...e,contentRef:t});n.current=c;const d=(0,u.useMergeRefs)([t,(0,u.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:d,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":l}:{ref:d}}function Ab({children:e,isSelected:t,...n}){const{popover:r,...o}=Ob(n);return(0,a.createElement)(a.Fragment,null,e(o),t&&r)}function Lb(e){const{help:t,id:n,...r}=e,o=(0,u.useInstanceId)(qv,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}var zb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var Fb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Bb=ip("",""),jb={name:"bjn8wh",styles:"position:relative"},Vb=e=>{const{color:t=Hp.gray[200],style:n="solid",width:r=jh.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==jh.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Hb={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function $b(e){const{className:t,size:n="default",...r}=ed(e,"BorderBoxControlLinkedButton"),o=Qu();return{...r,className:(0,a.useMemo)((()=>o((e=>ip("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",ph({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}var Wb=td(((e,t)=>{const{className:n,isLinked:r,...o}=$b(e),i=r?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Qf,{text:i},(0,a.createElement)(vd,{className:n},(0,a.createElement)(xd,{...o,isSmall:!0,icon:r?zb:Fb,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function Ub(e){const{className:t,value:n,size:r="default",...o}=ed(e,"BorderBoxControlVisualizer"),i=Qu(),s=(0,a.useMemo)((()=>i(((e,t)=>ip("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Vb(e?.top),";border-bottom:",Vb(e?.bottom),";",ph({borderLeft:Vb(e?.left)})()," ",ph({borderRight:Vb(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}var Gb=td(((e,t)=>{const{value:n,...r}=Ub(e);return(0,a.createElement)(vd,{...r,ref:t})}),"BorderBoxControlVisualizer");var Kb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var qb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 11.25h14v1.5H5z"}));var Yb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Xb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const Zb=hd(mb,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",hg,"{transition:box-shadow 0.1s linear;}}"),Jb=({selectSize:e})=>{const t={default:ip("box-sizing:border-box;padding:2px 1px;width:20px;color:",Hp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:ip("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",ah(2),";padding:",ah(1),";color:",Hp.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===e?t.large:t.default},Qb=hd("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Jb,";color:",Hp.gray[900],";}"),ey=hd("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Jb,";",(({selectSize:e="default"})=>{const t={default:ip("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",ph({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Hp.gray[100],";}&:focus{border:1px solid ",Hp.ui.borderFocus,";box-shadow:inset 0 0 0 ",jh.borderWidth+" "+Hp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:ip("display:flex;justify-content:center;align-items:center;&:hover{color:",Hp.ui.borderFocus,";box-shadow:inset 0 0 0 ",jh.borderWidth+" "+Hp.ui.borderFocus,";outline:",jh.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",jh.borderWidthFocus+" "+Hp.ui.borderFocus,";outline:",jh.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===e?t.large:t.default}),";&:not( :disabled ){cursor:pointer;}}");const ty={name:"f3vz0n",styles:"font-weight:500"},ny=ip("box-shadow:inset 0 0 0 ",jh.borderWidth," ",Hp.ui.borderFocus,";",""),ry=ip("border:0;padding:0;margin:0;",Bv,";",""),oy=ip(Zb,"{flex:0 0 auto;}",""),iy=(e,t)=>{const{style:n}=e||{};return ip("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Hp.gray[300]:void 0;return ip("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",ah(4),";width:",ah(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},ay=ip("width:",228,"px;>div:first-of-type>",$v,"{margin-bottom:0;",ty,";}&& ",$v,"+button:not( .has-text ){min-width:24px;padding:0;}",""),sy=ip("",""),ly=ip("",""),cy=ip("justify-content:center;width:100%;&&{border-top:",jh.borderWidth," solid ",Hp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),uy=ip($v,"{",ty,";}",""),dy={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const fy=[{label:(0,c.__)("Solid"),icon:qb,value:"solid"},{label:(0,c.__)("Dashed"),icon:Yb,value:"dashed"},{label:(0,c.__)("Dotted"),icon:Xb,value:"dotted"}],py=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(bd,{as:"label"},t):(0,a.createElement)($v,null,t):null},my=td(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:s,...l}=function(e){const{className:t,...n}=ed(e,"BorderControlStylePicker"),r=Qu();return{...n,className:(0,a.useMemo)((()=>r(uy,t)),[t,r]),buttonClassName:(0,a.useMemo)((()=>r(dy)),[r])}}(e);return(0,a.createElement)(vd,{...l,ref:t},(0,a.createElement)(py,{label:o,hideLabelFromVision:r}),(0,a.createElement)(_h,{justify:"flex-start",gap:1},fy.map((e=>(0,a.createElement)(xd,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===s,onClick:()=>i(e.value===s?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var hy=my;var gy=(0,a.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,a.createElement)("span",{className:l()("component-color-indicator",n),style:{background:r},ref:t,...o})})),vy=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},by=function(e){return.2126*vy(e.r)+.7152*vy(e.g)+.0722*vy(e.b)};function yy(e){e.prototype.luminance=function(){return e=by(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=by(i))>(l=by(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const wy=td(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:d,popoverProps:f,onClose:p,onToggle:m,style:h,position:g,variant:v}=ed(e,"Dropdown");void 0!==g&&Zl()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[b,y]=(0,a.useState)(null),w=(0,a.useRef)(),[x,E]=function(e,t){const[n,r]=(0,a.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,m);function _(){p&&p(),E(!1)}(0,a.useEffect)((()=>()=>{m&&x&&m(!1)}),[m,x]);const C={isOpen:x,onToggle:function(){E(!x)},onClose:_},S=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,a.createElement)("div",{className:o,ref:(0,u.useMergeRefs)([w,t,y]),tabIndex:-1,style:h},r(C),x&&(0,a.createElement)(Gf,{position:g,onClose:_,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||_()},expandOnMobile:s,headerTitle:c,focusOnMount:d,offset:13,anchor:S?void 0:b,variant:v,...f,className:l()("components-dropdown__content",f?.className,i)},n(C)))}),"Dropdown");var xy=wy;var Ey=td((function(e,t){const n=ed(e,"InputControlSuffixWrapper");return(0,a.createElement)(gh,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper");const _y=hd("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Hp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?ip({color:Hp.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?ip("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return ip(r[n]||r.default,"","")}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,"__unstable-large":16};e||(r.default=8);const o=r[n]||r.default;return ph({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),Cy=hd("div",{target:"e1mv6sxx1"})("margin-inline-end:",ah(-1),";line-height:0;"),Sy=hd(Ey,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",ph({right:0}),";");var ky=function({icon:e,size:t=24,...n}){return(0,a.cloneElement)(e,{width:t,height:t,...n})};var Ty=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var Ry=()=>(0,a.createElement)(Sy,null,(0,a.createElement)(Cy,null,(0,a.createElement)(ky,{icon:Ty,size:18})));const Py=()=>{};const My=(0,a.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:c,multiple:d=!1,onBlur:f=Py,onChange:p,onFocus:m=Py,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:w,suffix:x,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...C}=e,[S,k]=(0,a.useState)(!1),T=function(e){const t=(0,u.useInstanceId)(My);return e||`inspector-select-control-${t}`}(s),R=o?`${T}__help`:void 0;if(!h?.length&&!y)return null;const P=l()("components-select-control",n);return(0,a.createElement)(qv,{help:o,id:T,__nextHasNoMarginBottom:_},(0,a.createElement)(_g,{className:P,disabled:r,hideLabelFromVision:i,id:T,isFocused:S,label:c,size:g,suffix:x||!d&&(0,a.createElement)(Ry,null),prefix:w,labelPosition:b,__next36pxDefaultSize:E},(0,a.createElement)(_y,{...C,__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:T,multiple:d,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,a.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))}));var Iy=My;const Ny={initial:void 0,fallback:""};var Oy=function(e,t=Ny){const{initial:n,fallback:r}={...Ny,...t},[o,i]=(0,a.useState)(e),s=kh(e);return(0,a.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(kh))&&void 0!==n?n:t}([e,o,n],r),(0,a.useCallback)((e=>{s||i(e)}),[s])]};function Dy(e,t,n){return"number"!=typeof e?null:parseFloat(`${ib(e,t,n)}`)}const Ay=()=>ip({height:30,minHeight:30},"",""),Ly=12,zy=hd("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),Fy=hd("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Hp.ui.borderFocus})=>ip({color:e},"","")),";",Ay,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":ip({marginBottom:e?16:void 0},"","")),";"),By=hd("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",ph({marginRight:6}),";"),jy=hd("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",ph({marginLeft:6}),";"),Vy=hd("span",{target:"e1epgpqk10"})("background-color:",Hp.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Hp.ui.backgroundDisabled),ip({background:n},"","")}),";"),Hy=hd("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Hp.gray[400]),ip({background:n},"","")}),";"),$y=hd("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Wy=hd("span",{target:"e1epgpqk7"})("height:",Ly,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Hp.gray[300];return e&&(n=Hp.gray[400]),ip({backgroundColor:n},"","")}),";"),Uy=hd("span",{target:"e1epgpqk6"})("color:",Hp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>ip({color:e?Hp.gray[700]:Hp.gray[300]},"","")),";"),Gy=({disabled:e})=>ip("background-color:",e?Hp.gray[400]:Hp.ui.theme,";",""),Ky=hd("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Ly,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Ly,"px;border-radius:50%;",Gy,";",ph({marginLeft:-10}),";",ph({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),qy=hd("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Gy,";",(({isFocused:e})=>e?ip("&::before{content:' ';position:absolute;background-color:",Hp.ui.theme,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),Yy=hd("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Ly,"px );");var Xy={name:"1cypxip",styles:"top:-80%"},Zy={name:"1lr98c4",styles:"bottom:-80%"};const Jy=hd("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>ip({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?Zy:Xy),";",$p("transition"),";",ph({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Qy=hd(mb,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",ah(16),"!important;input[type='number']&{",Ay,";}",ph({marginLeft:`${ah(4)} !important`}),";"),ew=hd("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Ay,";}",ph({marginLeft:8}),";");var tw=(0,a.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,a.createElement)(Yy,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function nw(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,s=l()("components-range-control__mark",n&&"is-filled",t),c=l()("components-range-control__mark-label",n&&"is-filled");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Wy,{...i,"aria-hidden":"true",className:s,isFilled:n,style:o}),r&&(0,a.createElement)(Uy,{"aria-hidden":"true",className:c,isFilled:n,style:o},r))}function rw(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...l}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Vy,{disabled:t,...l}),n&&(0,a.createElement)(ow,{disabled:t,marks:n,min:r,max:o,step:i,value:s}))}function ow(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,c.isRTL)()?"right":"left"]:u};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,a.createElement)($y,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,a.createElement)(nw,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function iw(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:s=0,renderTooltipContent:c=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,a.useEffect)((()=>{o()}),[o]),(0,a.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=l()("components-simple-tooltip",t),m={...i,zIndex:u};return(0,a.createElement)(Jy,{...d,"aria-hidden":o,className:p,position:f,show:o,role:"tooltip",style:m},c(s))}const aw=()=>{};const sw=(0,a.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:s,className:d,color:f=Hp.ui.theme,currentInput:p,disabled:m=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:w=!1,max:x=100,min:E=0,onBlur:_=aw,onChange:C=aw,onFocus:S=aw,onMouseLeave:k=aw,onMouseMove:T=aw,railColor:R,renderTooltipContent:P=(e=>e),resetFallbackValue:M,shiftStep:I=10,showTooltip:N,step:O=1,trackColor:D,value:A,withInputField:L=!0,...z}=t,[F,B]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=Oy(Dy(r,t,n),{initial:Dy(null!=o?o:null,t,n),fallback:null});return[i,(0,a.useCallback)((e=>{s(null===e?null:Dy(e,t,n))}),[t,n,s])]}({min:E,max:x,value:null!=A?A:null,initial:v}),j=(0,a.useRef)(!1);let V=N,H=L;"any"===O&&(V=!1,H=!1);const[$,W]=(0,a.useState)(V),[U,G]=(0,a.useState)(!1),K=(0,a.useRef)(),q=K.current?.matches(":focus"),Y=!m&&U,X=null===F,Z=X?"":void 0!==F?F:p,J=X?(x-E)/2+E:F,Q=`${ib(X?50:(F-E)/(x-E)*100,0,100)}%`,ee=l()("components-range-control",d),te=l()("components-range-control__wrapper",!!w&&"is-marked"),ne=(0,u.useInstanceId)(e,"inspector-range-control"),re=h?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(F),ie=()=>{let e=parseFloat(`${M}`),t=e;isNaN(e)&&(e=null,t=void 0),B(e),C(t)},ae={[(0,c.isRTL)()?"right":"left"]:Q};return(0,a.createElement)(qv,{__nextHasNoMarginBottom:r,className:ee,label:y,hideLabelFromVision:g,id:`${ne}`,help:h},(0,a.createElement)(zy,{className:"components-range-control__root"},s&&(0,a.createElement)(By,null,(0,a.createElement)(ec,{icon:s})),(0,a.createElement)(Fy,{__nextHasNoMarginBottom:r,className:te,color:f,marks:!!w},(0,a.createElement)(tw,{...z,className:"components-range-control__slider",describedBy:re,disabled:m,id:`${ne}`,label:y,max:x,min:E,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);B(t),C(t)},onFocus:e=>{S(e),G(!0),W(!0)},onMouseMove:T,onMouseLeave:k,ref:(0,u.useMergeRefs)([K,n]),step:O,value:null!=Z?Z:void 0}),(0,a.createElement)(rw,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:E,railColor:R,step:O,value:J}),(0,a.createElement)(Hy,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:Q},trackColor:D}),(0,a.createElement)(Ky,{className:"components-range-control__thumb-wrapper",style:ae,disabled:m},(0,a.createElement)(qy,{"aria-hidden":!0,isFocused:Y,disabled:m})),oe&&(0,a.createElement)(iw,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:q||$,style:ae,value:F})),o&&(0,a.createElement)(jy,null,(0,a.createElement)(ec,{icon:o})),H&&(0,a.createElement)(Qy,{"aria-label":y,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:b,max:x,min:E,onBlur:()=>{j.current&&(ie(),j.current=!1)},onChange:e=>{let t=parseFloat(e);B(t),isNaN(t)?i&&(j.current=!0):((t<E||t>x)&&(t=Dy(t,E,x)),C(t),j.current=!1)},shiftStep:I,step:O,value:Z}),i&&(0,a.createElement)(ew,null,(0,a.createElement)(xd,{className:"components-range-control__reset",disabled:m||void 0===F,variant:"secondary",isSmall:!0,onClick:ie},(0,c.__)("Reset")))))}));var lw=sw;const cw=hd(mb,{target:"ez9hsf47"})(cg,"{width:",ah(24),";}"),uw=hd(Iy,{target:"ez9hsf46"})("margin-left:",ah(-2),";width:5em;select:not( :focus )~",hg,hg,hg,"{border-color:transparent;}"),dw=hd(lw,{target:"ez9hsf45"})("flex:1;margin-right:",ah(2),";"),fw=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${ah(2)} );\n\tmargin-left: ${ah(1)};\n}`,pw=hd("div",{target:"ez9hsf44"})("padding-top:",ah(2),";padding-right:0;padding-left:0;padding-bottom:0;"),mw=hd(db,{target:"ez9hsf43"})("padding-left:",ah(4),";padding-right:",ah(4),";"),hw=hd(_h,{target:"ez9hsf42"})("padding-top:",ah(4),";padding-left:",ah(4),";padding-right:",ah(3),";padding-bottom:",ah(5),";"),gw=hd("div",{target:"ez9hsf41"})(Bv,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",ah(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",ah(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",jh.borderWidthFocus," #fff;}",fw,";"),vw=hd(xd,{target:"ez9hsf40"})("&&&&&{min-width:",ah(6),";padding:0;>svg{margin-right:0;}}");var bw=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function yw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ww(e){return e instanceof yw(e).Element||e instanceof Element}function xw(e){return e instanceof yw(e).HTMLElement||e instanceof HTMLElement}function Ew(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yw(e).ShadowRoot||e instanceof ShadowRoot)}var _w=Math.max,Cw=Math.min,Sw=Math.round;function kw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Tw(){return!/^((?!chrome|android).)*safari/i.test(kw())}function Rw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&xw(e)&&(o=e.offsetWidth>0&&Sw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Sw(r.height)/e.offsetHeight||1);var a=(ww(e)?yw(e):window).visualViewport,s=!Tw()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Pw(e){var t=yw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Mw(e){return e?(e.nodeName||"").toLowerCase():null}function Iw(e){return((ww(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nw(e){return Rw(Iw(e)).left+Pw(e).scrollLeft}function Ow(e){return yw(e).getComputedStyle(e)}function Dw(e){var t=Ow(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Aw(e,t,n){void 0===n&&(n=!1);var r=xw(t),o=xw(t)&&function(e){var t=e.getBoundingClientRect(),n=Sw(t.width)/e.offsetWidth||1,r=Sw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Iw(t),a=Rw(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Mw(t)||Dw(i))&&(s=function(e){return e!==yw(e)&&xw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Pw(e);var t}(t)),xw(t)?((l=Rw(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Nw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Lw(e){var t=Rw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zw(e){return"html"===Mw(e)?e:e.assignedSlot||e.parentNode||(Ew(e)?e.host:null)||Iw(e)}function Fw(e){return["html","body","#document"].indexOf(Mw(e))>=0?e.ownerDocument.body:xw(e)&&Dw(e)?e:Fw(zw(e))}function Bw(e,t){var n;void 0===t&&(t=[]);var r=Fw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=yw(r),a=o?[i].concat(i.visualViewport||[],Dw(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Bw(zw(a)))}function jw(e){return["table","td","th"].indexOf(Mw(e))>=0}function Vw(e){return xw(e)&&"fixed"!==Ow(e).position?e.offsetParent:null}function Hw(e){for(var t=yw(e),n=Vw(e);n&&jw(n)&&"static"===Ow(n).position;)n=Vw(n);return n&&("html"===Mw(n)||"body"===Mw(n)&&"static"===Ow(n).position)?t:n||function(e){var t=/firefox/i.test(kw());if(/Trident/i.test(kw())&&xw(e)&&"fixed"===Ow(e).position)return null;var n=zw(e);for(Ew(n)&&(n=n.host);xw(n)&&["html","body"].indexOf(Mw(n))<0;){var r=Ow(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var $w="top",Ww="bottom",Uw="right",Gw="left",Kw="auto",qw=[$w,Ww,Uw,Gw],Yw="start",Xw="end",Zw="clippingParents",Jw="viewport",Qw="popper",ex="reference",tx=qw.reduce((function(e,t){return e.concat([t+"-"+Yw,t+"-"+Xw])}),[]),nx=[].concat(qw,[Kw]).reduce((function(e,t){return e.concat([t,t+"-"+Yw,t+"-"+Xw])}),[]),rx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ox(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ix={placement:"bottom",modifiers:[],strategy:"absolute"};function ax(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function sx(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ix:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ix,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:ww(e)?Bw(e):e.contextElement?Bw(e.contextElement):[],popper:Bw(t)};var a,c,f=function(e){var t=ox(e);return rx.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};l.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ax(t,n)){s.rects={reference:Aw(t,Hw(n),"fixed"===s.options.strategy),popper:Lw(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!ax(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var lx={passive:!0};var cx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=yw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,lx)})),s&&l.addEventListener("resize",n.update,lx),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,lx)})),s&&l.removeEventListener("resize",n.update,lx)}},data:{}};function ux(e){return e.split("-")[0]}function dx(e){return e.split("-")[1]}function fx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function px(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ux(o):null,a=o?dx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case $w:t={x:s,y:n.y-r.height};break;case Ww:t={x:s,y:n.y+n.height};break;case Uw:t={x:n.x+n.width,y:l};break;case Gw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?fx(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Yw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Xw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var mx={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=px({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},hx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Gw,w=$w,x=window;if(c){var E=Hw(n),_="clientHeight",C="clientWidth";if(E===yw(n)&&"static"!==Ow(E=Iw(n)).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth"),o===$w||(o===Gw||o===Uw)&&i===Xw)w=Ww,h-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[_])-r.height,h*=l?1:-1;if(o===Gw||(o===$w||o===Ww)&&i===Xw)y=Uw,p-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-r.width,p*=l?1:-1}var S,k=Object.assign({position:s},c&&hx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Sw(n*o)/o||0,y:Sw(r*o)/o||0}}({x:p,y:h},yw(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},k,((S={})[w]=b?"0":"",S[y]=v?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var vx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:ux(t.placement),variation:dx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var bx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];xw(o)&&Mw(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});xw(r)&&Mw(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var yx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=nx.reduce((function(e,n){return e[n]=function(e,t,n){var r=ux(e),o=[Gw,$w].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Gw,Uw].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},wx={left:"right",right:"left",bottom:"top",top:"bottom"};function xx(e){return e.replace(/left|right|bottom|top/g,(function(e){return wx[e]}))}var Ex={start:"end",end:"start"};function _x(e){return e.replace(/start|end/g,(function(e){return Ex[e]}))}function Cx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ew(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kx(e,t,n){return t===Jw?Sx(function(e,t){var n=yw(e),r=Iw(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Tw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Nw(e),y:l}}(e,n)):ww(t)?function(e,t){var n=Rw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Sx(function(e){var t,n=Iw(e),r=Pw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=_w(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_w(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Nw(e),l=-r.scrollTop;return"rtl"===Ow(o||n).direction&&(s+=_w(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Iw(e)))}function Tx(e,t,n,r){var o="clippingParents"===t?function(e){var t=Bw(zw(e)),n=["absolute","fixed"].indexOf(Ow(e).position)>=0&&xw(e)?Hw(e):e;return ww(n)?t.filter((function(e){return ww(e)&&Cx(e,n)&&"body"!==Mw(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=kx(e,n,r);return t.top=_w(o.top,t.top),t.right=Cw(o.right,t.right),t.bottom=Cw(o.bottom,t.bottom),t.left=_w(o.left,t.left),t}),kx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Rx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Px(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Mx(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?Zw:s,c=n.rootBoundary,u=void 0===c?Jw:c,d=n.elementContext,f=void 0===d?Qw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=Rx("number"!=typeof g?g:Px(g,qw)),b=f===Qw?ex:Qw,y=e.rects.popper,w=e.elements[m?b:f],x=Tx(ww(w)?w:w.contextElement||Iw(e.elements.popper),l,u,a),E=Rw(e.elements.reference),_=px({reference:E,element:y,strategy:"absolute",placement:o}),C=Sx(Object.assign({},y,_)),S=f===Qw?C:E,k={top:x.top-S.top+v.top,bottom:S.bottom-x.bottom+v.bottom,left:x.left-S.left+v.left,right:S.right-x.right+v.right},T=e.modifiersData.offset;if(f===Qw&&T){var R=T[o];Object.keys(k).forEach((function(e){var t=[Uw,Ww].indexOf(e)>=0?1:-1,n=[$w,Ww].indexOf(e)>=0?"y":"x";k[e]+=R[n]*t}))}return k}var Ix={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=ux(g),b=l||(v===g||!m?[xx(g)]:function(e){if(ux(e)===Kw)return[];var t=xx(e);return[_x(e),t,_x(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(ux(n)===Kw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?nx:l,u=dx(r),d=u?s?tx:tx.filter((function(e){return dx(e)===u})):qw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Mx(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ux(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,C=y[0],S=0;S<y.length;S++){var k=y[S],T=ux(k),R=dx(k)===Yw,P=[$w,Ww].indexOf(T)>=0,M=P?"width":"height",I=Mx(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=P?R?Uw:Gw:R?Ww:$w;w[M]>x[M]&&(N=xx(N));var O=xx(N),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[N]<=0,I[O]<=0),D.every((function(e){return e}))){C=k,_=!1;break}E.set(k,D)}if(_)for(var A=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Nx(e,t,n){return _w(e,Cw(t,n))}var Ox={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Mx(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=ux(t.placement),b=dx(t.placement),y=!b,w=fx(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(i){var P,M="y"===w?$w:Gw,I="y"===w?Ww:Uw,N="y"===w?"height":"width",O=E[w],D=O+g[M],A=O-g[I],L=p?-C[N]/2:0,z=b===Yw?_[N]:C[N],F=b===Yw?-C[N]:-_[N],B=t.elements.arrow,j=p&&B?Lw(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[M],$=V[I],W=Nx(0,_[N],j[N]),U=y?_[N]/2-L-W-H-k.mainAxis:z-W-H-k.mainAxis,G=y?-_[N]/2+L+W+$+k.mainAxis:F+W+$+k.mainAxis,K=t.elements.arrow&&Hw(t.elements.arrow),q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[w])?P:0,X=O+G-Y,Z=Nx(p?Cw(D,O+U-Y-q):D,O,p?_w(A,X):A);E[w]=Z,R[w]=Z-O}if(s){var J,Q="x"===w?$w:Gw,ee="x"===w?Ww:Uw,te=E[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[$w,Gw].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-_[ne]-C[ne]-ae+k.altAxis,le=ie?te+_[ne]+C[ne]-ae-k.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Nx(e,t,n);return r>n?n:r}(se,te,le):Nx(p?se:re,te,p?le:oe);E[x]=ce,R[x]=ce-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};var Dx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ux(n.placement),l=fx(s),c=[Gw,Uw].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Rx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Px(e,qw))}(o.padding,n),d=Lw(i),f="y"===l?$w:Gw,p="y"===l?Ww:Uw,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=Hw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=Nx(y,x,w),_=l;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Cx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ax(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lx(e){return[$w,Uw,Ww,Gw].some((function(t){return e[t]>=0}))}var zx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Mx(t,{elementContext:"reference"}),s=Mx(t,{altBoundary:!0}),l=Ax(a,r),c=Ax(s,o,i),u=Lx(l),d=Lx(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Fx=sx({defaultModifiers:[cx,mx,vx,bx,yx,Ix,Ox,Dx,zx]});function Bx(e){void 0===e&&(e={});var t,n,r=Jp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=om(m(r,["visible","animated"])),c=(0,v.useState)(i),u=c[0],d=c[1],f=(0,v.useState)(s),h=f[0],g=f[1],b=(0,v.useState)(!1),y=b[0],w=b[1],x=(t=u,n=(0,v.useRef)(null),U((function(){n.current=t}),[t]),n),E=null!=x.current&&x.current!==u;h&&!y&&E&&w(!0),(0,v.useEffect)((function(){if("number"==typeof h&&y){var e=setTimeout((function(){return w(!1)}),h);return function(){clearTimeout(e)}}return function(){}}),[h,y]);var _=(0,v.useCallback)((function(){return d(!0)}),[]),C=(0,v.useCallback)((function(){return d(!1)}),[]),S=(0,v.useCallback)((function(){return d((function(e){return!e}))}),[]),k=(0,v.useCallback)((function(){return w(!1)}),[]);return p(p({},l),{},{visible:u,animated:h,animating:y,show:_,hide:C,toggle:S,setVisible:d,setAnimated:g,stopAnimation:k})}var jx=ee("Mac")&&!ee("Chrome")&&ee("Safari");function Vx(e){return function(t){return e&&!A(t,e)?e:t}}function Hx(e){void 0===e&&(e={});var t=Jp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,h=t.modal,g=void 0!==h&&h,b=m(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,v.useRef)(null),w=(0,v.useRef)(null),x=(0,v.useRef)(null),E=(0,v.useRef)(null),_=(0,v.useState)(i),C=_[0],S=_[1],k=(0,v.useState)(i),T=k[0],R=k[1],P=(0,v.useState)(l||[0,r])[0],M=(0,v.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],N=M[1],O=(0,v.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=Jp(e),n=t.modal,r=void 0===n||n,o=Bx(m(t,["modal"])),i=(0,v.useState)(r),a=i[0],s=i[1],l=(0,v.useRef)(null);return p(p({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(p({modal:g},b)),z=(0,v.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),F=(0,v.useCallback)((function(e){e.placement&&R(e.placement),e.styles&&(N(Vx(e.styles.popper)),E.current&&A(Vx(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=Fx(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:jx?F:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:P}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!E.current,options:{element:E.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return F(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,P,u]),(0,v.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),p(p({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:E,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:S})}var $x={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var Wx=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],Ux=[].concat(Wx,["unstable_portal"]),Gx=B({name:"TooltipReference",compose:re,keys:Wx,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=m(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,v.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=(0,v.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),g=(0,v.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),b=(0,v.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return p({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:h,onMouseEnter:g,onMouseLeave:b,"aria-describedby":e.baseId},s)}}),Kx=z({as:"div",useHook:Gx});const qx=(0,a.createContext)({});var Yx=B({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=m(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,v.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?p({display:"none"},o):o,f=G(n),h=G(r),g=(0,v.useRef)(0);(0,v.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var b=(0,v.useCallback)((function(t){var n;K(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,v.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),b(e)}),[b]),w=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),b(e)}),[b]);return p({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Xx=z({as:"div",useHook:Yx});function Zx(){return W?document.body:null}var Jx=(0,v.createContext)(Zx());function Qx(e){var t=e.children,n=(0,v.useContext)(Jx)||Zx(),r=(0,v.useState)((function(){if(W){var e=document.createElement("div");return e.className=Qx.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,Dt.createPortal)((0,v.createElement)(Jx.Provider,{value:r},t),r):null}function eE(e){e.defaultPrevented||"Escape"===e.key&&$x.show(null)}Qx.__className="__reakit-portal",Qx.__selector="."+Qx.__className;var tE=B({name:"Tooltip",compose:Yx,keys:Ux,useOptions:function(e){var t=e.unstable_portal;return p({unstable_portal:void 0===t||t},m(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=m(t,["ref","style","wrapElement"]);(0,v.useEffect)((function(){var t;H(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",eE)}),[]);var a=(0,v.useCallback)((function(t){return e.unstable_portal&&(t=(0,v.createElement)(Qx,null,t)),o?o(t):t}),[e.unstable_portal,o]);return p({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:p(p({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),nE=z({as:"div",memo:!0,useHook:tE});var rE=td((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=ed(e,"Shortcut");if(!r)return null;let s,l;return"string"==typeof r?s=r:(s=r.display,l=r.ariaLabel),(0,a.createElement)(vd,{as:n,className:o,"aria-label":l,ref:t,...i},s)}),"Shortcut");const oE=ip("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",jh.transitionDurationFastest," ease;font-size:",jh.fontSize,";&[data-enter]{opacity:1;}",""),iE=hd("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",Hp.white,";padding:4px 8px;"),aE={name:"12mkfdx",styles:"outline:none"},sE=hd(rE,{target:"e7tfjmw0"})("display:inline-block;margin-left:",ah(1),";"),{TooltipPopoverView:lE}=t;var cE=td((function(e,t){const{children:n,className:r,...o}=ed(e,"TooltipContent"),{tooltip:i}=(0,a.useContext)(qx),s=Qu()(oE,r);return(0,a.createElement)(nE,{as:vd,...o,...i,className:s,ref:t},(0,a.createElement)(lE,null,n))}),"TooltipContent");const uE=td((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:s,focusable:l=!0,gutter:c=4,id:u,modal:d=!0,placement:f,visible:h=!1,shortcut:g,...b}=ed(e,"Tooltip"),y=function(e){void 0===e&&(e={});var t=Jp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=m(t,["placement","unstable_timeout"]),s=(0,v.useState)(i),l=s[0],c=s[1],u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=Hx(p(p({},a),{},{placement:r})),h=(f.modal,f.setModal,m(f,["modal","setModal"])),g=(0,v.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),b=(0,v.useCallback)((function(){g(),h.hide(),d.current=window.setTimeout((function(){$x.hide(h.baseId)}),l)}),[g,h.hide,l,h.baseId]),y=(0,v.useCallback)((function(){g(),!l||$x.currentTooltipId?($x.show(h.baseId),h.show()):($x.show(null),u.current=window.setTimeout((function(){$x.show(h.baseId),h.show()}),l))}),[g,l,h.show,h.baseId]);return(0,v.useEffect)((function(){return $x.subscribe((function(e){e!==h.baseId&&(g(),h.visible&&h.hide())}))}),[h.baseId,g,h.visible,h.hide]),(0,v.useEffect)((function(){return function(){g(),$x.hide(h.baseId)}}),[g,h.baseId]),p(p({},h),{},{hide:b,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||u,gutter:c,placement:f,visible:h,...b}),w=(0,a.useMemo)((()=>({tooltip:y})),[y]);return(0,a.createElement)(qx.Provider,{value:w},s&&(0,a.createElement)(cE,{unstable_portal:d,ref:t},s,g&&(0,a.createElement)(sE,{shortcut:g})),i&&(0,a.createElement)(Kx,{...y,...i.props,ref:i?.ref},(e=>(l||(e.tabIndex=void 0),(0,a.cloneElement)(i,e)))))}),"Tooltip");var dE=uE;const fE=e=>{const{color:t,colorType:n}=e,[r,o]=(0,a.useState)(null),i=(0,a.useRef)(),s=(0,u.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,a.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,a.createElement)(dE,{content:(0,a.createElement)(rg,{color:"white"},r===t.toHex()?(0,c.__)("Copied!"):(0,c.__)("Copy")),placement:"bottom"},(0,a.createElement)(vw,{isSmall:!0,ref:s,icon:bw,showTooltip:!1}))},pE=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,a.createElement)(db,{spacing:4},(0,a.createElement)(cw,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,a.createElement)(gh,{as:rg,paddingLeft:ah(4),color:Hp.ui.theme,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,a.createElement)(dw,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),mE=({color:e,onChange:t,enableAlpha:n})=>{const{r:r,g:o,b:i,a:s}=e.toRgb();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(pE,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(Op({r:e,g:o,b:i,a:s}))}),(0,a.createElement)(pE,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(Op({r:r,g:e,b:i,a:s}))}),(0,a.createElement)(pE,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(Op({r:r,g:o,b:e,a:s}))}),n&&(0,a.createElement)(pE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Op({r:r,g:o,b:i,a:e/100}))}))},hE=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a:s}=e.toHsl();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(pE,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(Op({h:e,s:o,l:i,a:s}))}}),(0,a.createElement)(pE,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(Op({h:r,s:e,l:i,a:s}))}}),(0,a.createElement)(pE,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(Op({h:r,s:o,l:e,a:s}))}}),n&&(0,a.createElement)(pE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>{t(Op({h:r,s:o,l:i,a:e/100}))}}))},gE=({color:e,onChange:t,enableAlpha:n})=>(0,a.createElement)(Xv,{prefix:(0,a.createElement)(gh,{as:rg,marginLeft:ah(4),color:Hp.ui.theme,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Op(n))},maxLength:n?9:7,label:(0,c.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),vE=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,a.createElement)(hE,{...o});case"rgb":return(0,a.createElement)(mE,{...o});default:return(0,a.createElement)(gE,{...o})}};function bE(){return(bE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yE(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function wE(e){var t=(0,v.useRef)(e),n=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var xE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},EE=function(e){return"touches"in e},_E=function(e){return e&&e.ownerDocument.defaultView||self},CE=function(e,t,n){var r=e.getBoundingClientRect(),o=EE(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:xE((o.pageX-(r.left+_E(e).pageXOffset))/r.width),top:xE((o.pageY-(r.top+_E(e).pageYOffset))/r.height)}},SE=function(e){!EE(e)&&e.preventDefault()},kE=v.memo((function(e){var t=e.onMove,n=e.onKey,r=yE(e,["onMove","onKey"]),o=(0,v.useRef)(null),i=wE(t),a=wE(n),s=(0,v.useRef)(null),l=(0,v.useRef)(!1),c=(0,v.useMemo)((function(){var e=function(e){SE(e),(EE(e)?e.touches.length>0:e.buttons>0)&&o.current?i(CE(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=_E(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(SE(t),!function(e,t){return t&&!EE(e)}(t,l.current)&&r)){if(EE(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(CE(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,v.useEffect)((function(){return f}),[f]),v.createElement("div",bE({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),TE=function(e){return e.filter(Boolean).join(" ")},RE=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=TE(["react-colorful__pointer",e.className]);return v.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},PE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},ME=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:PE(e.h),s:PE(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:PE(o/2),a:PE(r,2)}}),IE=function(e){var t=ME(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},NE=function(e){var t=ME(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},OE=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:PE(255*[r,s,a,a,l,r][c]),g:PE(255*[l,r,r,s,a,a][c]),b:PE(255*[a,a,l,r,r,s][c]),a:PE(o,2)}},DE=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?LE({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},AE=DE,LE=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:PE(60*(s<0?s+6:s)),s:PE(i?a/i*100:0),v:PE(i/255*100),a:o}},zE=v.memo((function(e){var t=e.hue,n=e.onChange,r=TE(["react-colorful__hue",e.className]);return v.createElement("div",{className:r},v.createElement(kE,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:xE(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":PE(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(RE,{className:"react-colorful__hue-pointer",left:t/360,color:IE({h:t,s:100,v:100,a:1})})))})),FE=v.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:IE({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:r},v.createElement(kE,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:xE(t.s+100*e.left,0,100),v:xE(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+PE(t.s)+"%, Brightness "+PE(t.v)+"%"},v.createElement(RE,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:IE(t)})))})),BE=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},jE=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function VE(e,t,n){var r=wE(n),o=(0,v.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,v.useRef)({color:t,hsva:i});(0,v.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,v.useEffect)((function(){var t;BE(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,v.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var HE,$E="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,WE=new Map,UE=function(e){$E((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!WE.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',WE.set(t,n);var r=HE||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},GE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=yE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);UE(s);var l=VE(n,o,i),c=l[0],u=l[1],d=TE(["react-colorful",t]);return v.createElement("div",bE({},a,{ref:s,className:d}),v.createElement(FE,{hsva:c,onChange:u}),v.createElement(zE,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},KE=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+NE(Object.assign({},n,{a:0}))+", "+NE(Object.assign({},n,{a:1}))+")"},i=TE(["react-colorful__alpha",t]),a=PE(100*n.a);return v.createElement("div",{className:i},v.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),v.createElement(kE,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:xE(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(RE,{className:"react-colorful__alpha-pointer",left:n.a,color:NE(n)})))},qE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=yE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);UE(s);var l=VE(n,o,i),c=l[0],u=l[1],d=TE(["react-colorful",t]);return v.createElement("div",bE({},a,{ref:s,className:d}),v.createElement(FE,{hsva:c,onChange:u}),v.createElement(zE,{hue:c.h,onChange:u}),v.createElement(KE,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},YE={defaultColor:"rgba(0, 0, 0, 1)",toHsva:DE,fromHsva:function(e){var t=OE(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:jE},XE=function(e){return v.createElement(qE,bE({},e,{colorModel:YE}))},ZE={defaultColor:"rgb(0, 0, 0)",toHsva:AE,fromHsva:function(e){var t=OE(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:jE},JE=function(e){return v.createElement(GE,bE({},e,{colorModel:ZE}))};const QE=({color:e,enableAlpha:t,onChange:n})=>{const r=t?XE:JE,o=(0,a.useMemo)((()=>e.toRgbString()),[e]);return(0,a.createElement)(r,{color:o,onChange:e=>{n(Op(e))}})};function e_({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,a.useState)(o);let l;return l=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,l]}Ap([Lp]);const t_=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],n_=td(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...l}=ed(e,"ColorPicker"),[d,f]=e_({onChange:o,value:r,defaultValue:i}),p=(0,a.useMemo)((()=>Op(d||"")),[d]),m=(0,u.useDebounce)(f),h=(0,a.useCallback)((e=>{m(e.toHex())}),[m]),[g,v]=(0,a.useState)(s||"hex");return(0,a.createElement)(gw,{ref:t,...l},(0,a.createElement)(QE,{onChange:h,color:p,enableAlpha:n}),(0,a.createElement)(pw,null,(0,a.createElement)(mw,{justify:"space-between"},(0,a.createElement)(uw,{__nextHasNoMarginBottom:!0,options:t_,value:g,onChange:e=>v(e),label:(0,c.__)("Color format"),hideLabelFromVision:!0}),(0,a.createElement)(fE,{color:p,colorType:s||g})),(0,a.createElement)(hw,{direction:"column",gap:2},(0,a.createElement)(vE,{colorType:g,color:p,onChange:h,enableAlpha:n}))))}),"ColorPicker");var r_=n_;function o_(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const i_=_c((e=>{const t=Op(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function a_(e){const{onChangeComplete:t}=e,n=(0,a.useCallback)((e=>{t(i_(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:o_(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const s_=e=>(0,a.createElement)(r_,{...a_(e)});var l_=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function c_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,a.createElement)("div",{className:l()("components-circular-option-picker",n)},(0,a.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,a.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}c_.Option=function({className:e,isSelected:t,selectedIconProps:n,tooltipText:r,...o}){const i=(0,a.createElement)(xd,{isPressed:t,className:"components-circular-option-picker__option",...o});return(0,a.createElement)("div",{className:l()(e,"components-circular-option-picker__option-wrapper")},r?(0,a.createElement)(Qf,{text:r},i):i,t&&(0,a.createElement)(ky,{icon:l_,...n||{}}))},c_.ButtonAction=function({className:e,children:t,...n}){return(0,a.createElement)(xd,{className:l()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},c_.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,a.createElement)(xy,{className:l()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,a.createElement)(xd,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};var u_=c_;var d_=td((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=ed(e,"VStack");return ub({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"VStack");var f_=td((function(e,t){const n=Nh(e);return(0,a.createElement)(vd,{as:"span",...n,ref:t})}),"Truncate");var p_=td((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=ed(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...ng({color:Hp.gray[900],size:eg(n),isBlock:!0,weight:jh.fontWeightHeading,...r}),...i,as:o}}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"Heading");const m_=hd(p_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),h_=hd("div",{target:"eovvns30"})("margin-left:",ah(-2),";margin-right:",ah(-2),";&:first-of-type{margin-top:",ah(-2),";}&:last-of-type{margin-bottom:",ah(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:ah(2),medium:ah(4)};return ip("padding:",t[e]||t.small,";","")}),";");var g_=td((function(e,t){const{paddingSize:n="small",...r}=ed(e,"DropdownContentWrapper");return(0,a.createElement)(h_,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");Ap([Lp,yy]);const v_=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function b_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=Op(e),l=o===e;return(0,a.createElement)(u_.Option,{key:`${e}-${i}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,c.sprintf)((0,c.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Color: %s"),n):(0,c.sprintf)((0,c.__)("Color code: %s"),e)})}))),[n,o,r,t]);return(0,a.createElement)(u_,{className:e,options:s,actions:i})}function y_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i,headingLevel:s}){return 0===n.length?null:(0,a.createElement)(d_,{spacing:3,className:e},n.map((({name:e,colors:l},c)=>(0,a.createElement)(d_,{spacing:2,key:c},(0,a.createElement)(m_,{level:s},e),(0,a.createElement)(b_,{clearColor:t,colors:l,onChange:e=>r(e,c),value:o,actions:n.length===c+1?i:null})))))}function w_({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,a.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,a.createElement)(xy,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}Ap([Lp,yy]);const x_=(0,a.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i=!1,onChange:s,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:f=2,...p}=e,[m,h]=(0,a.useState)(u),g=(0,a.useCallback)((()=>s(void 0)),[s]),v=(0,a.useCallback)((e=>{h(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Op(o).toHex():e})(u,e))}),[u]),b=v_(r),y=(0,a.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Op(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Op(n).toHex()))return t;return(0,c.__)("Custom")})(u,r,b)),[u,r,b]),w=u?.startsWith("#"),x=u?.replace(/^var\((.+)\)$/,"$1"),E=x?(0,c.sprintf)((0,c.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),y,w?x.split("").join("-"):x):(0,c.__)("Custom color picker."),_={clearable:n,clearColor:g,onChange:s,value:u,actions:!!n&&(0,a.createElement)(u_.ButtonAction,{onClick:g},(0,c.__)("Clear")),headingLevel:f};return(0,a.createElement)(d_,{spacing:3,ref:t,...p},!o&&(0,a.createElement)(w_,{isRenderedInSidebar:d,renderContent:()=>(0,a.createElement)(g_,{paddingSize:"none"},(0,a.createElement)(s_,{color:m,onChange:e=>s(e),enableAlpha:i})),renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(d_,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,a.createElement)("button",{ref:v,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:u}}),(0,a.createElement)(d_,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,a.createElement)(f_,{className:"components-color-palette__custom-color-name"},u?y:"No color selected"),(0,a.createElement)(f_,{className:l()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},x)))}),b?(0,a.createElement)(y_,{..._,colors:r}):(0,a.createElement)(b_,{..._,colors:r}))}));var E_=x_;const __="web"===a.Platform.OS,C_={px:{value:"px",label:__?"px":(0,c.__)("Pixels (px)"),a11yLabel:(0,c.__)("Pixels (px)"),step:1},"%":{value:"%",label:__?"%":(0,c.__)("Percentage (%)"),a11yLabel:(0,c.__)("Percent (%)"),step:.1},em:{value:"em",label:__?"em":(0,c.__)("Relative to parent font size (em)"),a11yLabel:(0,c._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:__?"rem":(0,c.__)("Relative to root font size (rem)"),a11yLabel:(0,c._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:__?"vw":(0,c.__)("Viewport width (vw)"),a11yLabel:(0,c.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:__?"vh":(0,c.__)("Viewport height (vh)"),a11yLabel:(0,c.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:__?"vmin":(0,c.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,c.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:__?"vmax":(0,c.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,c.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:__?"ch":(0,c.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,c.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:__?"ex":(0,c.__)("x-height of the font (ex)"),a11yLabel:(0,c.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:__?"cm":(0,c.__)("Centimeters (cm)"),a11yLabel:(0,c.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:__?"mm":(0,c.__)("Millimeters (mm)"),a11yLabel:(0,c.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:__?"in":(0,c.__)("Inches (in)"),a11yLabel:(0,c.__)("Inches (in)"),step:.001},pc:{value:"pc",label:__?"pc":(0,c.__)("Picas (pc)"),a11yLabel:(0,c.__)("Picas (pc)"),step:1},pt:{value:"pt",label:__?"pt":(0,c.__)("Points (pt)"),a11yLabel:(0,c.__)("Points (pt)"),step:1}},S_=Object.values(C_),k_=[C_.px,C_["%"],C_.em,C_.rem,C_.vw,C_.vh],T_=C_.px;function R_(e,t,n){return M_(t?`${null!=e?e:""}${t}`:e,n)}function P_(e){return Array.isArray(e)&&!!e.length}function M_(e,t=S_){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(P_(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=T_.value;return[r,a]}const I_=({units:e=S_,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=M_(n[e.value]);r[t].default=o}})),r};function N_(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:l,size:c="default",__experimentalIsRenderedInSidebar:u=!1,...d}=ed(e,"BorderControlDropdown"),[f]=M_(t?.width),p=0===f,m=Qu(),h=(0,a.useMemo)((()=>m((e=>ip("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",ph({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",jh.borderWidth," solid ",Hp.ui.border,";&:focus,&:hover:not( :disabled ){",ny," border-color:",Hp.ui.borderFocus,";z-index:1;position:relative;}}",""))(c),n)),[n,m,c]),g=(0,a.useMemo)((()=>m(ly)),[m]),v=(0,a.useMemo)((()=>m(iy(t,c))),[t,m,c]),b=(0,a.useMemo)((()=>m(ay)),[m]),y=(0,a.useMemo)((()=>m(sy)),[m]),w=(0,a.useMemo)((()=>m(cy)),[m]);return{...d,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{s({color:e,style:"none"===t?.style?l:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:y,popoverControlsClassName:b,resetButtonClassName:w,__experimentalIsRenderedInSidebar:u}}const O_=e=>{const t=e.startsWith("#"),n=e.replace(/^var\((.+)\)$/,"$1");return t?n.split("").join("-"):n},D_=td(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:u,indicatorWrapperClassName:d,onReset:f,onColorChange:p,onStyleChange:m,popoverContentClassName:h,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,__unstablePopoverProps:y,...w}=N_(e),{color:x,style:E}=r||{},_=((e,t)=>{if(e&&t){if(v_(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(x,o),C=((e,t,n,r)=>{if(r){if(t){const e=O_(t.color);return n?(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=O_(e);return n?(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,c.__)("Border color and style picker.")}return t?(0,c.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,O_(t.color)):e?(0,c.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',O_(e)):(0,c.__)("Border color picker.")})(x,_,E,l),S=x||E&&"none"!==E,k=n?"bottom left":void 0;return(0,a.createElement)(xy,{renderToggle:({onToggle:e})=>(0,a.createElement)(xd,{onClick:e,variant:"tertiary","aria-label":C,tooltipPosition:k,label:(0,c.__)("Border color and style picker"),showTooltip:!0},(0,a.createElement)("span",{className:d},(0,a.createElement)(gy,{className:u,colorValue:x}))),renderContent:({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(g_,{paddingSize:"medium"},(0,a.createElement)(d_,{className:g,spacing:6},b?(0,a.createElement)(db,null,(0,a.createElement)($v,null,(0,c.__)("Border color")),(0,a.createElement)(xd,{isSmall:!0,label:(0,c.__)("Close border color"),icon:Kb,onClick:e})):void 0,(0,a.createElement)(E_,{className:h,value:x,onChange:p,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&(0,a.createElement)(hy,{label:(0,c.__)("Style"),value:E,onChange:m}))),S&&(0,a.createElement)(g_,{paddingSize:"none"},(0,a.createElement)(xd,{className:v,variant:"tertiary",onClick:()=>{f(),e()}},(0,c.__)("Reset to default")))),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown");var A_=D_;var L_=(0,a.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=k_,...s},c){if(!P_(i)||1===i?.length)return(0,a.createElement)(Qb,{className:"components-unit-control__unit-label",selectSize:r},o);const u=l()("components-unit-control__select",e);return(0,a.createElement)(ey,{ref:c,className:u,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...s},i.map((e=>(0,a.createElement)("option",{value:e.value,key:e.value},e.label))))}));const z_=(0,a.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:s=!1,disableUnits:u=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:p=!0,label:m,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=k_,value:w,onFocus:x,...E}=e;"unit"in e&&Zl()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=w?w:void 0,[C,S]=(0,a.useMemo)((()=>{const e=function(e,t,n=S_){const r=Array.isArray(n)?[...n]:[],[,o]=R_(e,t,S_);return o&&!r.some((e=>e.value===o))&&C_[o]&&r.unshift(C_[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=Pb(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),Pb(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,T]=R_(_,b,C),[R,P]=Oy(1===C.length?C[0].value:b,{initial:T,fallback:""});(0,a.useEffect)((()=>{void 0!==T&&P(T)}),[T,P]);const M=l()("components-unit-control","components-unit-control-wrapper",i);let I;!u&&p&&C.length&&(I=e=>{E.onKeyDown?.(e),!e.metaKey&&S.test(e.key)&&N.current?.focus()});const N=(0,a.useRef)(null),O=u?null:(0,a.createElement)(L_,{ref:N,"aria-label":(0,c.__)("Select unit"),disabled:s,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),P(e)},size:v,unit:R,units:C,onFocus:x,onBlur:e.onBlur});let D=E.step;if(!D&&C){var A;const e=C.find((e=>e.value===R));D=null!==(A=e?.step)&&void 0!==A?A:1}return(0,a.createElement)(Zb,{...E,autoComplete:r,className:M,disabled:s,spinControls:"none",isPressEnterToChange:d,label:m,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=M_(e,t),a=null!=o?o:n;let s=i||r;return!s&&P_(t)&&(s=t[0].value),[a,s]}(e,C,k,R).join("");h?.(n,t)},ref:t,size:v,suffix:O,type:d?"text":"number",value:null!=k?k:"",step:D,onFocus:x,__unstableStateReducer:n})}));var F_=z_;function B_(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:l=!0,size:c="default",value:u,width:d,__experimentalIsRenderedInSidebar:f=!1,...p}=ed(e,"BorderControl"),[m,h]=M_(u?.width),g=h||"px",v=0===m,[b,y]=(0,a.useState)(),[w,x]=(0,a.useState)(),E=(0,a.useCallback)((e=>{if(l)return o((e=>{if(void 0!==e?.width&&""!==e.width||void 0!==e?.color)return e})(e));o(e)}),[o,l]),_=(0,a.useCallback)((e=>{const t=""===e?void 0:e,[n]=M_(e),r=0===n,o={...u,width:t};r&&!v&&(y(u?.color),x(u?.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=b),"none"===o.style&&(o.style=w)),E(o)}),[u,v,b,w,E]),C=(0,a.useCallback)((e=>{_(`${e}${g}`)}),[_,g]),S=Qu(),k=(0,a.useMemo)((()=>S(ry,t)),[t,S]);let T=d;r&&(T="__unstable-large"===c?"116px":"90px");const R=(0,a.useMemo)((()=>{const e=!!T&&oy,t=(e=>ip("height:","__unstable-large"===e?"40px":"30px",";",""))(c);return S(ip(Zb,"{flex:1 1 40%;}&& ",ey,"{min-height:0;}",""),e,t)}),[T,S,c]),P=(0,a.useMemo)((()=>S(ip("flex:1 1 60%;",ph({marginRight:ah(3)})(),";",""))),[S]);return{...p,className:k,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:R,inputWidth:T,onBorderChange:E,onSliderChange:C,onWidthChange:_,previousStyleSelection:w,sliderClassName:P,value:u,widthUnit:g,widthValue:m,size:c,__experimentalIsRenderedInSidebar:f}}const j_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(bd,{as:"legend"},t):(0,a.createElement)($v,{as:"legend"},t):null},V_=td(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:s,hideLabelFromVision:l,innerWrapperClassName:u,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:g,__unstablePopoverProps:v,previousStyleSelection:b,showDropdownHeader:y,size:w,sliderClassName:x,value:E,widthUnit:_,widthValue:C,withSlider:S,__experimentalIsRenderedInSidebar:k,...T}=B_(e);return(0,a.createElement)(vd,{as:"fieldset",...T,ref:t},(0,a.createElement)(j_,{label:f,hideLabelFromVision:l}),(0,a.createElement)(db,{spacing:4,className:u},(0,a.createElement)(F_,{prefix:(0,a.createElement)(A_,{border:E,colors:n,__unstablePopoverProps:v,disableCustomColors:r,enableAlpha:i,enableStyle:s,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalIsRenderedInSidebar:k,size:w}),label:(0,c.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:E?.width||"",placeholder:g,disableUnits:o,__unstableInputWidth:d,size:w}),S&&(0,a.createElement)(lw,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Border width"),hideLabelFromVision:!0,className:x,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:C||void 0,withInputField:!1})))}),"BorderControl");var H_=V_;const $_={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function W_(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=ed(e,"Grid"),h=xh(Array.isArray(i)?i:[i]),g=xh(Array.isArray(d)?d:[d]),v=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${g}, 1fr )`,y=Qu();return{...m,className:(0,a.useMemo)((()=>{const e=function(e){return e?$_[e]:{}}(n),i=ip({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${jh.gridBase} * ${s} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,s,v,b,l,c,u])}}var U_=td((function(e,t){const n=W_(e);return(0,a.createElement)(vd,{...n,ref:t})}),"Grid");function G_(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...l}=ed(e,"BorderBoxControlSplitControls"),c=Qu(),u=(0,a.useMemo)((()=>c((e=>ip("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[c,t,i]);return{...l,centeredClassName:(0,a.useMemo)((()=>c(Hb,t)),[c,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,a.useMemo)((()=>c(ip(ph({marginLeft:"auto"})(),";",""),t)),[c,t]),size:i,__experimentalIsRenderedInSidebar:s}}const K_=td(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:l,popoverPlacement:d,popoverOffset:f,rightAlignedClassName:p,size:m="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=G_(e),[b,y]=(0,a.useState)(null),w=(0,a.useMemo)((()=>d?{placement:d,offset:f,anchor:b,shift:!0}:void 0),[d,f,b]),x={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:m},E=(0,u.useMergeRefs)([y,t]);return(0,a.createElement)(U_,{...v,ref:E,gap:4},(0,a.createElement)(Gb,{value:h,size:m}),(0,a.createElement)(H_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:w,value:h?.top,...x}),(0,a.createElement)(H_,{hideLabelFromVision:!0,label:(0,c.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:w,value:h?.left,...x}),(0,a.createElement)(H_,{className:p,hideLabelFromVision:!0,label:(0,c.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:w,value:h?.right,...x}),(0,a.createElement)(H_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:w,value:h?.bottom,...x}))}),"BorderBoxControlSplitControls");var q_=K_;const Y_=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?$/;const X_=["top","right","bottom","left"],Z_=["color","style","width"],J_=e=>!e||!Z_.some((t=>void 0!==e[t])),Q_=e=>{if(!e)return!1;if(eC(e)){return!X_.every((t=>J_(e[t])))}return!J_(e)},eC=(e={})=>Object.keys(e).some((e=>-1!==X_.indexOf(e))),tC=e=>{if(!eC(e))return!1;const t=X_.map((t=>nC(e?.[t])));return!t.every((e=>e===t[0]))},nC=(e,t)=>{if(J_(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},rC=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(Y_);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function oC(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:l,__experimentalIsRenderedInSidebar:c=!1,...u}=ed(e,"BorderBoxControl"),d=tC(l),f=eC(l),p=f?(e=>{if(!e)return;const t=[],n=[],r=[];X_.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:rC(r)}})(l):l,m=f?l:(e=>{if(e&&!J_(e))return{top:e,right:e,bottom:e,left:e}})(l),h=!isNaN(parseFloat(`${p?.width}`)),[g,v]=(0,a.useState)(!d),b=Qu(),y=(0,a.useMemo)((()=>b(Bb,t)),[b,t]),w=(0,a.useMemo)((()=>b(ip("flex:1;",ph({marginRight:"24px"})(),";",""))),[b]),x=(0,a.useMemo)((()=>b(jb)),[b]);return{...u,className:y,colors:n,disableUnits:d&&!h,enableAlpha:o,enableStyle:i,hasMixedBorders:d,isLinked:g,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!d||(t=e)&&Z_.every((e=>void 0!==t[e])))return r(J_(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...l?.top,...n},right:{...l?.right,...n},bottom:{...l?.bottom,...n},left:{...l?.left,...n}};if(tC(o))return r(o);const i=J_(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};tC(n)?r(n):r(e)},toggleLinked:()=>v(!g),linkedValue:p,size:s,splitValue:m,wrapperClassName:x,__experimentalIsRenderedInSidebar:c}}const iC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(bd,{as:"label"},t):(0,a.createElement)($v,null,t):null},aC=td(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hasMixedBorders:d,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:w,size:x,splitValue:E,toggleLinked:_,wrapperClassName:C,__experimentalIsRenderedInSidebar:S,...k}=oC(e),[T,R]=(0,a.useState)(null),P=(0,a.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,u.useMergeRefs)([R,t]);return(0,a.createElement)(vd,{className:n,...k,ref:M},(0,a.createElement)(iC,{label:m,hideLabelFromVision:f}),(0,a.createElement)(vd,{className:C},p?(0,a.createElement)(H_,{className:h,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:v,placeholder:d?(0,c.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===x?"116px":"110px",__experimentalIsRenderedInSidebar:S,size:x}):(0,a.createElement)(q_,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:E,__experimentalIsRenderedInSidebar:S,size:x}),(0,a.createElement)(Wb,{onClick:_,isLinked:p,size:x})))}),"BorderBoxControl");var sC=aC;const lC=hd("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),cC=hd(_h,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),uC=hd(_h,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),dC=hd("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),fC=hd(_h,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),pC=hd(_h,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var mC={name:"1ch9yvl",styles:"border-radius:0"},hC={name:"tg3mx0",styles:"border-radius:2px"};const gC=({isFirst:e,isLast:t,isOnly:n})=>e?ph({borderTopRightRadius:0,borderBottomRightRadius:0})():t?ph({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?hC:mC,vC=({isFirst:e,isOnly:t})=>ph({marginLeft:e||t?0:-1})(),bC=hd(F_,{target:"e1jovhle0"})("max-width:60px;",gC,";",vC,";"),yC=()=>{};function wC({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=yC,onHoverOff:o=yC,label:i,value:s,...l}){const c=(u=({event:e,...t})=>{t.hovering?r(e,t):o(e,t)},sv(cv),yv({hover:u},d||{},"hover"));var u,d;return(0,a.createElement)(dC,{...c()},(0,a.createElement)(xC,{text:i},(0,a.createElement)(bC,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:s,...l})))}function xC({children:e,text:t}){return t?(0,a.createElement)(Qf,{text:t,position:"top"},(0,a.createElement)("div",null,e)):e}const EC={all:(0,c.__)("All"),top:(0,c.__)("Top"),bottom:(0,c.__)("Bottom"),left:(0,c.__)("Left"),right:(0,c.__)("Right"),mixed:(0,c.__)("Mixed"),vertical:(0,c.__)("Vertical"),horizontal:(0,c.__)("Horizontal")},_C={top:void 0,right:void 0,bottom:void 0,left:void 0},CC=["top","right","bottom","left"];function SC(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function kC(e={},t,n=CC){const r=function(e){const t=[];if(!e?.length)return CC;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=CC.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>M_(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=SC(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return SC(t)}(t))&&void 0!==l?l:SC(i);return[a,s].join("")}function TC(e={},t,n=CC){const r=kC(e,t,n);return isNaN(parseFloat(r))}function RC(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function PC(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function MC(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):CC.forEach((e=>r[e]=t)),r}const IC=()=>{};function NC({onChange:e=IC,onFocus:t=IC,onHoverOn:n=IC,onHoverOff:r=IC,values:o,sides:i,selectedUnits:s,setSelectedUnits:l,...c}){const u=kC(o,s,i),d=RC(o)&&TC(o,s,i),f=d?EC.mixed:void 0;return(0,a.createElement)(wC,{...c,disableUnits:d,isOnly:!0,value:u,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=MC(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=MC(s,e,i);l(t)},onFocus:e=>{t(e,{side:"all"})},onHoverOn:()=>{n({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{r({top:!1,bottom:!1,left:!1,right:!1})},placeholder:f})}const OC=()=>{};function DC({onChange:e=OC,onFocus:t=OC,onHoverOn:n=OC,onHoverOff:r=OC,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t(n,{side:e})},d=e=>()=>{n({[e]:!0})},f=e=>()=>{r({[e]:!1})},p=t=>(n,{event:r})=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[t]=a,r.altKey)switch(t){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(t=>{e(t)})(i)},m=e=>t=>{const n={...i};n[e]=t,s(n)},h=l?.length?CC.filter((e=>l.includes(e))):CC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(fC,{className:"component-box-control__input-controls-wrapper"},(0,a.createElement)(pC,{gap:0,align:"top",className:"component-box-control__input-controls"},h.map((e=>{const[t,n]=M_(o[e]),r=o[e]?n:i[e];return(0,a.createElement)(wC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,r].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:EC[e],key:`box-control-${e}`})}))))}const AC=["vertical","horizontal"];function LC({onChange:e,onFocus:t,onHoverOn:n,onHoverOff:r,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t&&t(n,{side:e})},d=e=>()=>{n&&("vertical"===e&&n({top:!0,bottom:!0}),"horizontal"===e&&n({left:!0,right:!0}))},f=e=>()=>{r&&("vertical"===e&&r({top:!1,bottom:!1}),"horizontal"===e&&r({left:!1,right:!1}))},p=t=>n=>{if(!e)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===t&&(r.top=i,r.bottom=i),"horizontal"===t&&(r.left=i,r.right=i),e(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),s(n)},h=l?.length?AC.filter((e=>l.includes(e))):AC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(pC,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},h.map((e=>{const[t,n]=M_("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,a.createElement)(wC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,null!=r?r:n].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:EC[e],key:e})})))}const zC=hd("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),FC=hd("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),BC=hd("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>ip({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),jC=hd(BC,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),VC=hd(BC,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),HC=hd(VC,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),$C=hd(jC,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),WC=hd(VC,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),UC=hd(jC,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),GC=24;function KC({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),l=o("bottom")||o("vertical"),c=o("left")||o("horizontal"),u=e/GC;return(0,a.createElement)(zC,{style:{transform:`scale(${u})`},...r},(0,a.createElement)(FC,null,(0,a.createElement)(HC,{isFocused:i}),(0,a.createElement)($C,{isFocused:s}),(0,a.createElement)(WC,{isFocused:l}),(0,a.createElement)(UC,{isFocused:c})))}function qC({isLinked:e,...t}){const n=e?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Qf,{text:n},(0,a.createElement)(xd,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?zb:Fb,iconSize:24,"aria-label":n}))}const YC={min:0},XC=()=>{};function ZC({id:e,inputProps:t=YC,onChange:n=XC,label:r=(0,c.__)("Box Control"),values:o,units:i,sides:s,splitOnAxis:l=!1,allowReset:d=!0,resetValues:f=_C,onMouseOver:p,onMouseOut:m}){const[h,g]=Oy(o,{fallback:_C}),v=h||_C,b=RC(o),y=1===s?.length,[w,x]=(0,a.useState)(b),[E,_]=(0,a.useState)(!b||!TC(v)||y),[C,S]=(0,a.useState)(PC(E,l)),[k,T]=(0,a.useState)({top:M_(o?.top)[1],right:M_(o?.right)[1],bottom:M_(o?.bottom)[1],left:M_(o?.left)[1]}),R=function(e){const t=(0,u.useInstanceId)(ZC,"inspector-box-control");return e||t}(e),P=`${R}-heading`,M={...t,onChange:e=>{n(e),g(e),x(!0)},onFocus:(e,{side:t})=>{S(t)},isLinked:E,units:i,selectedUnits:k,setSelectedUnits:T,sides:s,values:v,onMouseOver:p,onMouseOut:m};return(0,a.createElement)(lC,{id:R,role:"group","aria-labelledby":P},(0,a.createElement)(cC,{className:"component-box-control__header"},(0,a.createElement)(Ch,null,(0,a.createElement)(Kv.VisualLabel,{id:P},r)),d&&(0,a.createElement)(Ch,null,(0,a.createElement)(xd,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(f),g(f),T(f),x(!1)},disabled:!w},(0,c.__)("Reset")))),(0,a.createElement)(uC,{className:"component-box-control__header-control-wrapper"},(0,a.createElement)(Ch,null,(0,a.createElement)(KC,{side:C,sides:s})),E&&(0,a.createElement)(oh,null,(0,a.createElement)(NC,{"aria-label":r,...M})),!E&&l&&(0,a.createElement)(oh,null,(0,a.createElement)(LC,{...M})),!y&&(0,a.createElement)(Ch,null,(0,a.createElement)(qC,{onClick:()=>{_(!E),S(PC(!E,l))},isLinked:E}))),!E&&!l&&(0,a.createElement)(DC,{...M}))}var JC=ZC;var QC=(0,a.forwardRef)((function(e,t){const{className:n,...r}=e,o=l()("components-button-group",n);return(0,a.createElement)("div",{ref:t,role:"group",className:o,...r})}));const eS={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function tS(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const nS=td((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:l=0,value:c=0,...u}=ed(e,"Elevation"),d=Qu();return{...u,className:(0,a.useMemo)((()=>{let e=kh(i)?i:2*c,a=kh(t)?t:c/2;s||(e=kh(i)?i:void 0,a=kh(t)?t:void 0);const u=`box-shadow ${jh.transitionDuration} ${jh.transitionTimingFunction}`,f={};return f.Base=ip({borderRadius:n,bottom:l,boxShadow:tS(c),opacity:jh.elevationIntensity,left:l,right:l,top:l,transition:u},$p("transition"),"",""),kh(e)&&(f.hover=ip("*:hover>&{box-shadow:",tS(e),";}","")),kh(a)&&(f.active=ip("*:active>&{box-shadow:",tS(a),";}","")),kh(o)&&(f.focus=ip("*:focus>&{box-shadow:",tS(o),";}","")),d(eS,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,s,l,c]),"aria-hidden":!0}}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"Elevation");var rS=nS;const oS=`calc(${jh.cardBorderRadius} - 1px)`,iS=ip("box-shadow:0 0 0 1px ",jh.surfaceBorderColor,";outline:none;",""),aS={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},sS={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},lS={name:"13udsys",styles:"height:100%"},cS={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},uS={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},dS={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},fS=ip("&:first-of-type{border-top-left-radius:",oS,";border-top-right-radius:",oS,";}&:last-of-type{border-bottom-left-radius:",oS,";border-bottom-right-radius:",oS,";}",""),pS=ip("border-color:",jh.colorDivider,";",""),mS={name:"1t90u8d",styles:"box-shadow:none"},hS={name:"1e1ncky",styles:"border:none"},gS=ip("border-radius:",oS,";",""),vS=ip("padding:",jh.cardPaddingXSmall,";",""),bS={large:ip("padding:",jh.cardPaddingLarge,";",""),medium:ip("padding:",jh.cardPaddingMedium,";",""),small:ip("padding:",jh.cardPaddingSmall,";",""),xSmall:vS,extraSmall:vS},yS=ip("background-color:",Hp.ui.backgroundDisabled,";",""),wS=ip("background-color:",jh.surfaceColor,";color:",Hp.gray[900],";position:relative;","");jh.surfaceBackgroundColor;function xS({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${jh.surfaceBorderColor}`;return ip({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const ES=ip("",""),_S=ip("background:",jh.surfaceBackgroundTintColor,";",""),CS=ip("background:",jh.surfaceBackgroundTertiaryColor,";",""),SS=e=>[e,e].join(" "),kS=e=>["90deg",[jh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),TS=e=>[[jh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),RS=(e,t)=>ip("background:",(e=>[`linear-gradient( ${kS(e)} ) center`,`linear-gradient( ${TS(e)} ) center`,jh.surfaceBorderBoldColor].join(","))(t),";background-size:",SS(e),";",""),PS=[`linear-gradient( ${[`${jh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${jh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),MS=(e,t,n)=>{switch(e){case"dotted":return RS(t,n);case"grid":return(e=>ip("background:",jh.surfaceBackgroundColor,";background-image:",PS,";background-size:",SS(e),";",""))(t);case"primary":return ES;case"secondary":return _S;case"tertiary":return CS}};function IS(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:l="primary",...c}=ed(e,"Surface"),u=Qu();return{...c,className:(0,a.useMemo)((()=>{const e={borders:xS({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(wS,e.borders,MS(l,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,l])}}function NS(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=ed(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(Zl()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),l=Qu();return{...IS({...s,className:(0,a.useMemo)((()=>l(iS,r&&mS,o&&gS,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const OS=td((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...l}=NS(e),c=i?jh.cardBorderRadius:0,u=Qu(),d=(0,a.useMemo)((()=>u(ip({borderRadius:c},"",""))),[u,c]),f=(0,a.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,a.createElement)(uc,{value:f},(0,a.createElement)(vd,{...l,ref:t},(0,a.createElement)(vd,{className:u(lS)},n),(0,a.createElement)(rS,{className:d,isInteractive:!1,value:r?1:0}),(0,a.createElement)(rS,{className:d,isInteractive:!1,value:r})))}),"Card");var DS=OS;const AS=ip("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",jh.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",jh.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",jh.colorScrollbarThumbHover,";}}",""),LS={name:"13udsys",styles:"height:100%"},zS={name:"7zq9w",styles:"scroll-behavior:smooth"},FS={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},BS={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},jS={name:"umwchj",styles:"overflow-y:auto"};const VS=td((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=ed(e,"Scrollable"),i=Qu();return{...o,className:(0,a.useMemo)((()=>i(LS,AS,r&&zS,"x"===n&&FS,"y"===n&&BS,"auto"===n&&jS,t)),[t,i,n,r])}}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"Scrollable");var HS=VS;const $S=td((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=ed(e,"CardBody"),s=Qu();return{...i,className:(0,a.useMemo)((()=>s(cS,fS,bS[o],r&&yS,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,a.createElement)(HS,{...r,ref:t}):(0,a.createElement)(vd,{...r,ref:t})}),"CardBody");var WS=$S,US=B({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return p({orientation:void 0===t?"horizontal":t},m(e,["orientation"]))},useProps:function(e,t){return p({role:"separator","aria-orientation":e.orientation},t)}}),GS=z({as:"hr",memo:!0,useHook:US});const KS={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var qS={name:"1u4hpl4",styles:"display:inline"};const YS=hd("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?qS:void 0)," ",(({"aria-orientation":e="horizontal"})=>ip({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>ip({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>ip(ph({[KS[e].start]:ah(null!=n?n:t),[KS[e].end]:ah(null!=r?r:t)})(),"","")),";");var XS=td((function(e,t){const n=ed(e,"Divider");return(0,a.createElement)(GS,{as:YS,...n,ref:t})}),"Divider");const ZS=td((function(e,t){const n=function(e){const{className:t,...n}=ed(e,"CardDivider"),r=Qu();return{...n,className:(0,a.useMemo)((()=>r(dS,pS,"components-card__divider",t)),[t,r])}}(e);return(0,a.createElement)(XS,{...n,ref:t})}),"CardDivider");var JS=ZS;const QS=td((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=ed(e,"CardFooter"),l=Qu();return{...s,className:(0,a.useMemo)((()=>l(sS,fS,pS,bS[i],r&&hS,o&&yS,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,a.createElement)(_h,{...n,ref:t})}),"CardFooter");var ek=QS;const tk=td((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=ed(e,"CardHeader"),s=Qu();return{...i,className:(0,a.useMemo)((()=>s(aS,fS,pS,bS[o],n&&hS,r&&yS,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,a.createElement)(_h,{...n,ref:t})}),"CardHeader");var nk=tk;const rk=td((function(e,t){const n=function(e){const{className:t,...n}=ed(e,"CardMedia"),r=Qu();return{...n,className:(0,a.useMemo)((()=>r(uS,fS,"components-card__media",t)),[t,r])}}(e);return(0,a.createElement)(vd,{...n,ref:t})}),"CardMedia");var ok=rk;var ik=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:s,indeterminate:c,help:d,id:f,onChange:p,...m}=t;i&&Zl()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),y=(0,u.useRefEffect)((e=>{e&&(e.indeterminate=!!c,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,c]),w=(0,u.useInstanceId)(e,"inspector-checkbox-control",f);return(0,a.createElement)(qv,{__nextHasNoMarginBottom:n,label:i,id:w,help:d,className:l()("components-checkbox-control",o)},(0,a.createElement)("span",{className:"components-checkbox-control__input-container"},(0,a.createElement)("input",{ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:s,"aria-describedby":d?w+"__help":void 0,...m}),v?(0,a.createElement)(ky,{icon:bh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,a.createElement)(ky,{icon:l_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};const ak=4e3;function sk({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){Zl()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,a.useRef)(),c=(0,u.useCopyToClipboard)(o,(()=>{n(),s.current&&clearTimeout(s.current),r&&(s.current=setTimeout((()=>r()),ak))}));(0,a.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const d=l()("components-clipboard-button",e);return(0,a.createElement)(xd,{...i,className:d,ref:c,onCopy:e=>{e.target.focus()}},t)}var lk=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const ck=ip("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;svg,path{fill:currentColor;}&:hover{color:",Hp.ui.theme,";}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) var(\n\t\t\t\t--wp-components-color-accent,\n\t\t\t\tvar( --wp-admin-theme-color, ",Hp.ui.theme," )\n\t\t\t);outline:2px solid transparent;}",""),uk={name:"1bcj5ek",styles:"width:100%;display:block"},dk={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},fk=ip("border:1px solid ",jh.surfaceBorderColor,";",""),pk=ip(">*:not( marquee )>*{border-bottom:1px solid ",jh.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),mk=jh.controlBorderRadius,hk=ip("border-radius:",mk,";",""),gk=ip("border-radius:",mk,";>*:first-of-type>*{border-top-left-radius:",mk,";border-top-right-radius:",mk,";}>*:last-of-type>*{border-bottom-left-radius:",mk,";border-bottom-right-radius:",mk,";}",""),vk=`calc(${jh.fontSize} * ${jh.fontLineHeightBase})`,bk=`calc((${jh.controlHeight} - ${vk} - 2px) / 2)`,yk=`calc((${jh.controlHeightSmall} - ${vk} - 2px) / 2)`,wk=`calc((${jh.controlHeightLarge} - ${vk} - 2px) / 2)`,xk={small:ip("padding:",yk," ",jh.controlPaddingXSmall,";",""),medium:ip("padding:",bk," ",jh.controlPaddingX,";",""),large:ip("padding:",wk," ",jh.controlPaddingXLarge,";","")};const Ek=(0,a.createContext)({size:"medium"}),_k=()=>(0,a.useContext)(Ek);var Ck=td((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=ed(e,"ItemGroup");return{isBordered:n,className:Qu()(n&&fk,o&&pk,r&&gk,t),role:i,isSeparated:o,...a}}(e),{size:s}=_k(),l={spacedAround:!n&&!r,size:o||s};return(0,a.createElement)(Ek.Provider,{value:l},(0,a.createElement)(vd,{...i,ref:t}))}),"ItemGroup");const Sk=10,kk=0,Tk=Sk;function Rk(e){return Math.max(0,Math.min(100,e))}function Pk(e,t,n){const r=e.slice();return r[t]=n,r}function Mk(e,t,n){if(function(e,t,n,r=kk){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return Pk(e,t,{...e[t],position:n})}function Ik(e,t,n){return Pk(e,t,{...e[t],color:n})}function Nk(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(Rk(100*o/r))}function Ok({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${(0,u.useInstanceId)(Ok)}`;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(xd,{"aria-label":(0,c.sprintf)((0,c.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:l()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,a.createElement)(bd,{id:o},(0,c.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function Dk({isRenderedInSidebar:e,className:t,...n}){const r=(0,a.useMemo)((()=>({placement:"bottom",offset:8})),[]),o=l()("components-custom-gradient-picker__control-point-dropdown",t);return(0,a.createElement)(w_,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function Ak({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:u}){const d=(0,a.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=Nk(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),i(Mk(o,a,t))},p=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p),l(),d.current.listenersActivated=!1)},m=(0,a.useRef)();return m.current=p,(0,a.useEffect)((()=>()=>{m.current?.()}),[]),(0,a.createElement)(a.Fragment,null,o.map(((n,m)=>{const h=n?.position;return r!==h&&(0,a.createElement)(Dk,{isRenderedInSidebar:u,key:m,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(Ok,{key:m,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:m,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(Mk(o,m,Rk(n.position-Tk)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(Mk(o,m,Rk(n.position+Tk))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s_,{enableAlpha:!t,color:n.color,onChange:e=>{i(Ik(o,m,Op(e).toRgbString()))}}),!e&&o.length>2&&(0,a.createElement)(db,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,a.createElement)(xd,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,m)),r()},variant:"link"},(0,c.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}Ak.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,a.useState)(!1);return(0,a.createElement)(Dk,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(xd,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:vh}),renderContent:()=>(0,a.createElement)(s_,{enableAlpha:!i,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return Ik(e,r,n)}(e,o,Op(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,Op(n).toRgbString())),c(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};var Lk=Ak;const zk=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},Fk={id:"IDLE"};function Bk({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:s=!1}){const c=(0,a.useRef)(null),[u,d]=(0,a.useReducer)(zk,Fk),f=e=>{if(!c.current)return;const t=Nk(e.clientX,c.current);n.some((({position:e})=>Math.abs(t-e)<Sk))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},p="MOVING_INSERTER"===u.id,m="INSERTING_CONTROL_POINT"===u.id;return(0,a.createElement)("div",{className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,a.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,a.createElement)("div",{ref:c,className:"components-custom-gradient-picker__markers-container"},!o&&(p||m)&&(0,a.createElement)(Lk.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,insertPosition:u.insertPosition,value:n,onChange:r,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,a.createElement)(Lk,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,disableRemove:o,gradientPickerDomRef:c,ignoreMarkerPosition:m?u.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var jk=o(7115);const Vk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Hk={type:"angular",value:"90"},$k=[{value:"linear-gradient",label:(0,c.__)("Linear")},{value:"radial-gradient",label:(0,c.__)("Radial")}],Wk={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Uk({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function Gk({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(Uk)].filter(Boolean).join(",")})`}function Kk(e){return void 0===e.length||"%"!==e.length.type}function qk(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Ap([Lp]);const Yk=hd(oh,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Xk=hd(oh,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Zk=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,a.createElement)(Eb,{__nextHasNoMarginBottom:!0,onChange:t=>{n(Gk({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},Jk=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,a.createElement)(Iy,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,c.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(Gk({...e,orientation:e.orientation?void 0:Hk,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(Gk({...r,type:"radial-gradient"}))})()},options:$k,size:"__unstable-large",value:t?r:void 0})};var Qk=function({__nextHasNoMargin:e=!1,value:t,onChange:n,__experimentalIsRenderedInSidebar:r=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:Vk;try{t=jk.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=jk.parse(Vk)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Wk[t.orientation.value].toString()}),t.colorStops.some(Kk)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(t),s=function(e){return Gk({type:"linear-gradient",orientation:Hk,colorStops:e.colorStops})}(o),c=o.colorStops.map((e=>({color:qk(e),position:parseInt(e.length.value)})));return e||Zl()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,a.createElement)(d_,{spacing:4,className:l()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,a.createElement)(Bk,{__experimentalIsRenderedInSidebar:r,background:s,hasGradient:i,value:c,onChange:e=>{n(Gk(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Op(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,a.createElement)(_h,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,a.createElement)(Yk,null,(0,a.createElement)(Jk,{gradientAST:o,hasGradient:i,onChange:n})),(0,a.createElement)(Xk,null,"linear-gradient"===o.type&&(0,a.createElement)(Zk,{gradientAST:o,hasGradient:i,onChange:n}))))};const eT=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function tT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,a.createElement)(u_.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||(0,c.sprintf)((0,c.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Gradient: %s"),n):(0,c.sprintf)((0,c.__)("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,a.createElement)(u_,{className:e,options:s,actions:i})}function nT({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i,headingLevel:s}){return(0,a.createElement)(d_,{spacing:3,className:e},n.map((({name:e,gradients:l},c)=>(0,a.createElement)(d_,{spacing:2,key:c},(0,a.createElement)(m_,{level:s},e),(0,a.createElement)(tT,{clearGradient:t,gradients:l,onChange:e=>r(e,c),value:o,...n.length===c+1?{actions:i}:{}})))))}function rT(e){return eT(e.gradients)?(0,a.createElement)(nT,{...e}):(0,a.createElement)(tT,{...e})}var oT=function({__nextHasNoMargin:e=!1,className:t,gradients:n=[],onChange:r,value:o,clearable:i=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:l,headingLevel:u=2}){const d=(0,a.useCallback)((()=>r(void 0)),[r]);e||Zl()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const f=e?{}:{marginTop:n.length?void 0:3,marginBottom:i?0:6};return(0,a.createElement)(gh,{marginBottom:0,...f},(0,a.createElement)(d_,{spacing:n.length?4:0},!s&&(0,a.createElement)(Qk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:l,value:o,onChange:r}),(n.length||i)&&(0,a.createElement)(rT,{className:t,clearGradient:d,gradients:n,onChange:r,value:o,actions:i&&!s&&(0,a.createElement)(u_.ButtonAction,{onClick:d},(0,c.__)("Clear")),headingLevel:u})))};var iT=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));const aT=()=>{},sT=["menuitem","menuitemradio","menuitemcheckbox"];class lT extends a.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?Jl.focus.tabbable:Jl.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=aT,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&sT.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:s,forwardedRef:l,...c}=this.props;return(0,a.createElement)("div",{ref:this.bindContainer,...c},e)}}const cT=(e,t)=>(0,a.createElement)(lT,{...e,forwardedRef:t});cT.displayName="NavigableContainer";var uT=(0,a.forwardRef)(cT);const dT=(0,a.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,a.createElement)(uT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})}));var fT=dT;function pT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}function mT(e){return"function"==typeof e}const hT=nd((function(e){const{children:t,className:n,controls:r,icon:o=iT,label:i,popoverProps:s,toggleProps:c,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:p,variant:m}=ed(e,"DropdownMenu");if(!r?.length&&!mT(t))return null;let h;r?.length&&(h=r,Array.isArray(h[0])||(h=[r]));const g=pT({className:"components-dropdown-menu__popover",variant:m},s);return(0,a.createElement)(xy,{className:n,popoverProps:g,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=xd,...s}=null!=c?c:{},u=pT({className:l()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,a.createElement)(r,{...u,icon:o,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:f,showTooltip:null===(n=c?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=pT({"aria-label":i,className:l()("components-dropdown-menu__menu",{"no-icons":p})},u);return(0,a.createElement)(fT,{...n,role:"menu"},mT(t)?t(e):null,h?.flatMap(((t,n)=>t.map(((t,r)=>(0,a.createElement)(xd,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))}})}),"DropdownMenu");var gT=hT;const vT=hd(u_.Option,{target:"e5bw3229"})("width:",ah(6),";height:",ah(6),";pointer-events:none;"),bT=hd(Zv,{target:"e5bw3228"})(cg,"{background:",Hp.gray[100],";border-radius:",jh.controlBorderRadius,";",dg,dg,dg,dg,"{height:",ah(8),";}",hg,hg,hg,"{border-color:transparent;box-shadow:none;}}"),yT=hd(vd,{target:"e5bw3227"})("padding:3px 0 3px ",ah(3),";height:calc( 40px - ",jh.borderWidth," );border:1px solid ",jh.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",jh.controlBorderRadius,";border-top-right-radius:",jh.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",jh.controlBorderRadius,";border-bottom-right-radius:",jh.controlBorderRadius,";border-bottom-color:",jh.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Hp.ui.theme,";}"),wT=hd("div",{target:"e5bw3226"})("line-height:",ah(8),";margin-left:",ah(2),";margin-right:",ah(2),";white-space:nowrap;overflow:hidden;",yT,":hover &{color:",Hp.ui.theme,";}"),xT=hd(p_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",ah(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),ET=hd(vd,{target:"e5bw3224"})("height:",ah(6),";display:flex;"),_T=hd(db,{target:"e5bw3223"})("margin-bottom:",ah(2),";"),CT=hd(vd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),ST=hd(xd,{target:"e5bw3221"})("&&{color:",Hp.ui.theme,";}"),kT=hd(xd,{target:"e5bw3220"})("&&{margin-top:",ah(1),";}"),TT="#000";function RT({value:e,onChange:t,label:n}){return(0,a.createElement)(bT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function PT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,a.useMemo)((()=>({shift:!0,offset:20,placement:"left-start",...r,className:l()("components-palette-edit__popover",r?.className)})),[r]);return(0,a.createElement)(Gf,{...i,onClose:o},!e&&(0,a.createElement)(s_,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,a.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,a.createElement)(Qk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function MT({canOnlyChangeValues:e,element:t,onChange:n,isEditing:r,onStartEditing:o,onRemove:i,onStopEditing:s,popoverProps:l,slugPrefix:d,isGradient:f}){const p=(0,u.__experimentalUseFocusOutside)(s),m=f?t.gradient:t.color,[h,g]=(0,a.useState)(null),v=(0,a.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,a.createElement)(yT,{className:r?"is-selected":void 0,as:"div",onClick:o,ref:g,...r?{...p}:{style:{cursor:"pointer"}}},(0,a.createElement)(db,{justify:"flex-start"},(0,a.createElement)(Ch,null,(0,a.createElement)(vT,{style:{background:m,color:"transparent"}})),(0,a.createElement)(Ch,null,r&&!e?(0,a.createElement)(RT,{label:f?(0,c.__)("Gradient name"):(0,c.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:d+Ec(null!=e?e:"")})}):(0,a.createElement)(wT,null,t.name)),r&&!e&&(0,a.createElement)(Ch,null,(0,a.createElement)(kT,{isSmall:!0,icon:qb,label:(0,c.__)("Remove color"),onClick:i}))),r&&(0,a.createElement)(PT,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function IT(e,{slug:t,color:n,gradient:r}){return new RegExp(`^${e}color-([\\d]+)$`).test(t)&&(!!n&&n===TT||!!r&&r===Vk)}function NT({elements:e,onChange:t,editingElement:n,setEditingElement:r,canOnlyChangeValues:o,slugPrefix:i,isGradient:s,popoverProps:l}){const c=(0,a.useRef)();(0,a.useEffect)((()=>{c.current=e}),[e]),(0,a.useEffect)((()=>()=>{if(c.current?.some((e=>IT(i,e)))){const e=c.current.filter((e=>!IT(i,e)));t(e.length?e:void 0)}}),[]);const d=(0,u.useDebounce)(t,100);return(0,a.createElement)(d_,{spacing:3},(0,a.createElement)(Ck,{isRounded:!0},e.map(((c,u)=>(0,a.createElement)(MT,{isGradient:s,canOnlyChangeValues:o,key:u,element:c,onStartEditing:()=>{n!==u&&r(u)},onChange:t=>{d(e.map(((e,n)=>n===u?t:e)))},onRemove:()=>{r(null);const n=e.filter(((e,t)=>t!==u));t(n.length?n:void 0)},isEditing:u===n,onStopEditing:()=>{u===n&&r(null)},slugPrefix:i,popoverProps:l})))))}const OT=[];var DT=function({gradients:e,colors:t=OT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:l,slugPrefix:d="",popoverProps:f}){const p=!!e,m=p?e:t,[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(null),y=h&&!!v&&m[v]&&!m[v].slug,w=m.length>0,x=(0,u.useDebounce)(n,100),E=(0,a.useCallback)(((e,t)=>{const n=void 0===t?void 0:m[t];n&&n[p?"gradient":"color"]===e?b(t):g(!0)}),[p,m]);return(0,a.createElement)(CT,null,(0,a.createElement)(_T,null,(0,a.createElement)(xT,{level:o},r),(0,a.createElement)(ET,null,w&&h&&(0,a.createElement)(ST,{isSmall:!0,onClick:()=>{g(!1),b(null)}},(0,c.__)("Done")),!s&&(0,a.createElement)(xd,{isSmall:!0,isPressed:y,icon:vh,label:p?(0,c.__)("Add gradient"):(0,c.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,c.sprintf)((0,c.__)("Color %s"),r)}(m,d);n(e?[...e,{gradient:Vk,name:r,slug:d+Ec(r)}]:[...t,{color:TT,name:r,slug:d+Ec(r)}]),g(!0),b(m.length)}}),w&&(!h||!s||l)&&(0,a.createElement)(gT,{icon:lk,label:p?(0,c.__)("Gradient options"):(0,c.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(fT,{role:"menu"},!h&&(0,a.createElement)(xd,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,c.__)("Show details")),!s&&(0,a.createElement)(xd,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},p?(0,c.__)("Remove all gradients"):(0,c.__)("Remove all colors")),l&&(0,a.createElement)(xd,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},p?(0,c.__)("Reset gradient"):(0,c.__)("Reset colors")))))))),w&&(0,a.createElement)(a.Fragment,null,h&&(0,a.createElement)(NT,{canOnlyChangeValues:s,elements:m,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:d,isGradient:p,popoverProps:f}),!h&&null!==v&&(0,a.createElement)(PT,{isGradient:p,onClose:()=>b(null),onChange:e=>{x(m.map(((t,n)=>n===v?e:t)))},element:m[null!=v?v:-1],popoverProps:f}),!h&&(p?(0,a.createElement)(oT,{__nextHasNoMargin:!0,gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,a.createElement)(E_,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!w&&i)};const AT=({__next40pxDefaultSize:e})=>!e&&ip("height:28px;padding-left:",ah(1),";padding-right:",ah(1),";",""),LT=hd(_h,{target:"evuatpg0"})("height:38px;padding-left:",ah(2),";padding-right:",ah(2),";",AT,";");const zT=(0,a.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:s,onChange:c,onFocus:u,onBlur:d,...f}=e,[p,m]=(0,a.useState)(!1),h=n?n.length+1:0;return(0,a.createElement)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...f,value:n||"",onChange:e=>{c&&c({value:e.target.value})},onFocus:e=>{m(!0),u?.(e)},onBlur:e=>{m(!1),d?.(e)},size:h,className:l()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})}));var FT=zT,BT=o(5425),jT=o.n(BT);const VT=e=>{e.preventDefault()};var HT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:s,instanceId:c,__experimentalRenderItem:d}){const[f,p]=(0,a.useState)(!1),m=(0,u.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(p(!0),jT()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{p(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||r?.(e)},g=e=>()=>{o?.(e)};return(0,a.createElement)("ul",{ref:m,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox"},i.map(((t,r)=>{const o=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=l()("components-form-token-field__suggestion",{"is-selected":r===e});let u;return u="function"==typeof d?d({item:t}):o?(0,a.createElement)("span",{"aria-label":s(t)},o.suggestionBeforeMatch,(0,a.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):s(t),(0,a.createElement)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:i,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:VT,onClick:g(t),onMouseEnter:h(t),"aria-selected":r===e},u)})))},$T=(0,u.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,a.createElement)("div",{...(0,u.__experimentalUseFocusOutside)(n)},(0,a.createElement)(e,{ref:o,...t}))}),"withFocusOutside");function WT(e,t){const{__next36pxDefaultSize:n,__next40pxDefaultSize:r,...o}=e;return void 0!==n&&Zl()("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:"6.3"}),{...o,__next40pxDefaultSize:null!=r?r:n}}const UT=()=>{},GT=$T(class extends a.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),KT=(e,t)=>null===e?-1:t.indexOf(e);var qT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:s,options:d,onChange:f,onFilterValueChange:p=UT,hideLabelFromVision:m,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,c.__)("Item selected.")},__experimentalRenderItem:y}=WT(t,"wp.components.ComboboxControl"),[w,x]=e_({value:i,onChange:f}),E=d.find((e=>e.value===w)),_=null!==(n=E?.label)&&void 0!==n?n:"",C=(0,u.useInstanceId)(e,"combobox-control"),[S,k]=(0,a.useState)(E||null),[T,R]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),[I,N]=(0,a.useState)(""),O=(0,a.useRef)(null),D=(0,a.useMemo)((()=>{const e=[],t=[],n=Rb(I);return d.forEach((r=>{const o=Rb(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,d]),A=e=>{x(e.value),(0,kb.speak)(b.selected,"assertive"),k(e),N(""),R(!1)},L=(e=1)=>{let t=KT(S,D)+e;t<0?t=D.length-1:t>=D.length&&(t=0),k(D[t]),R(!0)};return(0,a.useEffect)((()=>{const e=D.length>0,t=KT(S,D)>0;e&&!t&&k(D[0])}),[D,S]),(0,a.useEffect)((()=>{const e=D.length>0;if(T){const t=e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",D.length),D.length):(0,c.__)("No results.");(0,kb.speak)(t,"polite")}}),[D,T]),(0,a.createElement)(GT,{onFocusOutside:()=>{R(!1)}},(0,a.createElement)(qv,{__nextHasNoMarginBottom:r,className:l()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,a.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":S&&(A(S),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":R(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,a.createElement)(LT,{__next40pxDefaultSize:o},(0,a.createElement)(oh,null,(0,a.createElement)(FT,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:_,onFocus:()=>{M(!0),R(!0),p(""),N("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:KT(S,D),onChange:e=>{const t=e.value;N(t),p(t),P&&R(!0)}})),g&&(0,a.createElement)(Ch,null,(0,a.createElement)(xd,{className:"components-combobox-control__reset",icon:Kb,disabled:!w,onClick:()=>{x(null),O.current?.focus()},label:(0,c.__)("Reset")}))),T&&(0,a.createElement)(HT,{instanceId:C,match:{label:I,value:""},displayTransform:e=>e.label,suggestions:D,selectedIndex:KT(S,D),onHover:k,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const YT=new Set(["alert","status","log","marquee","timer"]);let XT=[],ZT=!1;function JT(e){if(ZT)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&YT.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),XT.push(t))})),ZT=!0}let QT=0;const eR=(0,a.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:d=!0,isDismissible:f=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:m,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:w,contentLabel:x,onKeyDown:E,isFullScreen:_=!1,__experimentalHideHeader:C=!1}=e,S=(0,a.useRef)(),k=(0,u.useInstanceId)(eR),T=o?`components-modal-header-${k}`:p.labelledby,R=(0,u.useFocusOnMount)(i),P=(0,u.useConstrainedTabbing)(),M=(0,u.useFocusReturn)(),I=(0,u.__experimentalUseFocusOutside)(m),N=(0,a.useRef)(null),O=(0,a.useRef)(null),[D,A]=(0,a.useState)(!1),[L,z]=(0,a.useState)(!1),F=(0,a.useCallback)((()=>{if(!N.current)return;const e=(0,Jl.getScrollContainer)(N.current);N.current===e?z(!0):z(!1)}),[N]);(0,a.useEffect)((()=>(QT++,1===QT&&(JT(S.current),document.body.classList.add(n)),()=>{QT--,0===QT&&(document.body.classList.remove(n),ZT&&(XT.forEach((e=>{e.removeAttribute("aria-hidden")})),XT=[],ZT=!1))})),[n]),(0,a.useLayoutEffect)((()=>{if(!window.ResizeObserver||!O.current)return;const e=new ResizeObserver(F);return e.observe(O.current),F(),()=>{e.disconnect()}}),[F,O]);const B=(0,a.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!D&&n>0?A(!0):D&&n<=0&&A(!1)}),[D]);return(0,a.createPortal)((0,a.createElement)("div",{ref:(0,u.useMergeRefs)([S,t]),className:l()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||s&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},(0,a.createElement)(Ef,{document:document},(0,a.createElement)("div",{className:l()("components-modal__frame",w,{"is-full-screen":_}),style:b,ref:(0,u.useMergeRefs)([P,M,R]),role:r,"aria-label":x,"aria-labelledby":x?void 0:T,"aria-describedby":p.describedby,tabIndex:-1,...d?I:{},onKeyDown:E},(0,a.createElement)("div",{className:l()("components-modal__content",{"hide-header":C,"is-scrollable":L,"has-scrolled-content":D}),role:"document",onScroll:B,ref:N,"aria-label":L?(0,c.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!C&&(0,a.createElement)("div",{className:"components-modal__header"},(0,a.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,a.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),o&&(0,a.createElement)("h1",{id:T,className:"components-modal__header-heading"},o)),f&&(0,a.createElement)(xd,{onClick:m,icon:Yl,label:g||(0,c.__)("Close")})),(0,a.createElement)("div",{ref:O},v))))),document.body)}));var tR=eR;const nR={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var rR=td((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...u}=ed(e,"ConfirmDialog"),d=Qu()(nR),f=(0,a.useRef)(),p=(0,a.useRef)(),[m,h]=(0,a.useState)(),[g,v]=(0,a.useState)();(0,a.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,a.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,a.useCallback)((e=>{e.target===f.current||e.target===p.current||"Enter"!==e.key||b(r)(e)}),[b,r]),w=null!=l?l:(0,c.__)("Cancel"),x=null!=s?s:(0,c.__)("OK");return(0,a.createElement)(a.Fragment,null,m&&(0,a.createElement)(tR,{onRequestClose:b(o),onKeyDown:y,closeButtonLabel:w,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...u},(0,a.createElement)(d_,{spacing:8},(0,a.createElement)(rg,null,i),(0,a.createElement)(_h,{direction:"row",justify:"flex-end"},(0,a.createElement)(xd,{ref:f,variant:"tertiary",onClick:b(o)},w),(0,a.createElement)(xd,{ref:p,variant:"primary",onClick:b(r)},x)))))}),"ConfirmDialog"),oR=o(2652),iR=o.n(oR);o(2797);function aR(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function sR(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function lR(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return sR(n.overflowY,t)||sR(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function cR(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let uR=0;function dR(){}function fR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!aR(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;aR(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&lR(p)&&!lR(document.documentElement)||null!=p&&lR(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,w=b.width,x=b.top,E=b.right,_=b.bottom,C=b.left,S="start"===o||"nearest"===o?x:"end"===o?_:x+y/2,k="center"===i?C+w/2:"end"===i?E:C,T=[],R=0;R<f.length;R++){var P=f[R],M=P.getBoundingClientRect(),I=M.height,N=M.width,O=M.top,D=M.right,A=M.bottom,L=M.left;if("if-needed"===r&&x>=0&&C>=0&&_<=h&&E<=m&&x>=O&&_<=A&&C>=L&&E<=D)return T;var z=getComputedStyle(P),F=parseInt(z.borderLeftWidth,10),B=parseInt(z.borderTopWidth,10),j=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in P?P.offsetWidth-P.clientWidth-F-j:0,U="offsetHeight"in P?P.offsetHeight-P.clientHeight-B-V:0,G="offsetWidth"in P?0===P.offsetWidth?0:N/P.offsetWidth:0,K="offsetHeight"in P?0===P.offsetHeight?0:I/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-h:"nearest"===o?cR(v,v+h,h,B,V,v+S,v+S+y,y):S-h/2,$="start"===i?k:"center"===i?k-m/2:"end"===i?k-m:cR(g,g+m,m,F,j,g+k,g+k+w,w),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?S-O-B:"end"===o?S-A+V+U:"nearest"===o?cR(O,A,I,B,V+U,S,S+y,y):S-(O+I/2)+U/2,$="start"===i?k-L-F:"center"===i?k-(L+N/2)+W/2:"end"===i?k-D+j+W:cR(L,D,N,F,j+W,k,k+w,w);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/K,P.scrollHeight-I/K+U))),k+=q-($=Math.max(0,Math.min(q+$/G,P.scrollWidth-N/G+W)))}T.push({el:P,top:H,left:$})}return T}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function pR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function mR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function hR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function gR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function vR(){return String(uR++)}function bR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function yR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=wR(t,r)?t[r]:e[r],n)),{})}function wR(e,t){return void 0!==e[t]}function xR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function ER(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=_R(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function _R(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?_R(1,0,n,r,!1):_R(-1,n-1,n,r,!1):-1}function CR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(pR(t,e,n)||r&&pR(t,n.document.activeElement,n))))}const SR=mR((e=>{TR(e).textContent=""}),500);function kR(e,t){const n=TR(t);e&&(n.textContent=e,SR(t))}function TR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const RR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function PR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${AR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const MR=mR(((e,t)=>{kR(e(),t)}),200),IR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;function NR(e){let{id:t=`downshift-${vR()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,v.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function OR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function DR(e){return/^\S{1}$/.test(e)}function AR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function LR(e){const t=(0,v.useRef)(e);return t.current=e,t}function zR(e,t,n){const r=(0,v.useRef)(),o=(0,v.useRef)(),i=(0,v.useCallback)(((t,n)=>{o.current=n,t=yR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,v.useReducer)(i,t),l=LR(n),c=(0,v.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,v.useEffect)((()=>{u&&r.current&&r.current!==a&&PR(u,yR(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function FR(e,t,n){const[r,o]=zR(e,t,n);return[yR(r,n),o]}const BR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:fR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function jR(e,t,n){void 0===n&&(n=RR);const r=e[`default${AR(t)}`];return void 0!==r?r:n[t]}function VR(e,t,n){void 0===n&&(n=RR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${AR(t)}`];return void 0!==o?o:jR(e,t,n)}function HR(e){const t=VR(e,"selectedItem"),n=VR(e,"isOpen"),r=VR(e,"highlightedIndex"),o=VR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function $R(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):ER(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function WR(e,t,n,r){const o=(0,v.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,v.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!CR(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||CR(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let UR=()=>dR;function GR(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,v.useEffect)((()=>{r||MR((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function KR(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,v.useRef)(!0);return IR((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let qR=dR;function YR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:$R(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:$R(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:jR(o,"highlightedIndex"),isOpen:jR(o,"isOpen"),selectedItem:jR(o,"selectedItem"),inputValue:jR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function XR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}iR().array.isRequired,iR().func,iR().func,iR().func,iR().bool,iR().number,iR().number,iR().number,iR().bool,iR().bool,iR().bool,iR().any,iR().any,iR().any,iR().string,iR().string,iR().string,iR().func,iR().string,iR().func,iR().func,iR().func,iR().func,iR().func,iR().shape({addEventListener:iR().func,removeEventListener:iR().func,document:iR().shape({getElementById:iR().func,activeElement:iR().any,body:iR().any})});var ZR=mc(mc({},BR),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),JR=dR;const QR=0,eP=1,tP=2,nP=3,rP=4,oP=5,iP=6,aP=7,sP=8,lP=9,cP=10,uP=11,dP=12,fP=13,pP=14,mP=15,hP=16,gP=17,vP=18,bP=19,yP=20,wP=21,xP=22;var EP=Object.freeze({__proto__:null,MenuKeyDownArrowDown:QR,MenuKeyDownArrowUp:eP,MenuKeyDownEscape:tP,MenuKeyDownHome:nP,MenuKeyDownEnd:rP,MenuKeyDownEnter:oP,MenuKeyDownSpaceButton:iP,MenuKeyDownCharacter:aP,MenuBlur:sP,MenuMouseLeave:lP,ItemMouseMove:cP,ItemClick:uP,ToggleButtonClick:dP,ToggleButtonKeyDownArrowDown:fP,ToggleButtonKeyDownArrowUp:pP,ToggleButtonKeyDownCharacter:mP,FunctionToggleMenu:hP,FunctionOpenMenu:gP,FunctionCloseMenu:vP,FunctionSetHighlightedIndex:bP,FunctionSelectItem:yP,FunctionSetInputValue:wP,FunctionReset:xP});function _P(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case uP:i={isOpen:jR(r,"isOpen"),highlightedIndex:jR(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case mP:{const n=t.key,o=`${e.inputValue}${n}`,a=XR({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case fP:i={highlightedIndex:$R(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case pP:i={highlightedIndex:$R(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case oP:case iP:i={isOpen:jR(r,"isOpen"),highlightedIndex:jR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case nP:i={highlightedIndex:_R(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case rP:i={highlightedIndex:_R(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case tP:case sP:i={isOpen:!1,highlightedIndex:-1};break;case aP:{const n=t.key,o=`${e.inputValue}${n}`,a=XR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case QR:i={highlightedIndex:ER(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case eP:i={highlightedIndex:ER(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case yP:i={selectedItem:t.selectedItem};break;default:return YR(e,t,EP)}return{...e,...i}}function CP(e){void 0===e&&(e={}),JR(e,CP);const t={...ZR,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=HR(t),[d,f]=FR(_P,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,b=(0,v.useRef)(null),y=(0,v.useRef)(null),w=(0,v.useRef)({}),x=(0,v.useRef)(!0),E=(0,v.useRef)(null),_=NR(t),C=(0,v.useRef)(),S=(0,v.useRef)(!0),k=LR({state:d,props:t}),T=(0,v.useCallback)((e=>w.current[_.getItemId(e)]),[_]);GR(c,[p,m,g,n],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),GR(l,[h],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const R=KR({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,v.useEffect)((()=>(E.current=mR((e=>{e({type:wP,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,v.useEffect)((()=>{g&&E.current(f)}),[f,g]),qR({isInitialMount:S.current,props:t,state:d}),(0,v.useEffect)((()=>{S.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&b.current&&(x.current=!1,b.current.focus())}),[p]),(0,v.useEffect)((()=>{S.current||(C.current=n.length)}));const P=WR(p,[y,b],o,(()=>{f({type:sP})})),M=UR("getMenuProps","getToggleButtonProps");(0,v.useEffect)((()=>{S.current=!1}),[]),(0,v.useEffect)((()=>{p||(w.current={})}),[p]);const I=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:fP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:pP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),N=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:QR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:eP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:nP,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:rP,getItemNodeFromIndex:T})},Escape(){f({type:tP})},Enter(e){e.preventDefault(),f({type:oP})}," "(e){e.preventDefault(),f({type:iP})}})),[f,T]),O=(0,v.useCallback)((()=>{f({type:hP})}),[f]),D=(0,v.useCallback)((()=>{f({type:vP})}),[f]),A=(0,v.useCallback)((()=>{f({type:gP})}),[f]),L=(0,v.useCallback)((e=>{f({type:bP,highlightedIndex:e})}),[f]),z=(0,v.useCallback)((e=>{f({type:yP,selectedItem:e})}),[f]),F=(0,v.useCallback)((()=>{f({type:xP})}),[f]),B=(0,v.useCallback)((e=>{f({type:wP,inputValue:e})}),[f]),j=(0,v.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,v.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return M("getMenuProps",l,r,y),{[r]:gR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:hR(n,(()=>{f({type:lP})})),onKeyDown:hR(o,(e=>{const t=xR(e);t&&N[t]?N[t](e):DR(t)&&f({type:aP,key:t,getItemNodeFromIndex:T})})),onBlur:hR(i,(()=>{if(!1===x.current)return void(x.current=!0);!P.current.isMouseDown&&f({type:sP})})),...s}}),[f,k,N,P,M,_,T]),H=(0,v.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{f({type:dP})},c=e=>{const t=xR(e);t&&I[t]?I[t](e):DR(t)&&f({type:mP,key:t,getItemNodeFromIndex:T})},u={[o]:gR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=hR(n,l),u.onKeyDown=hR(r,c)),M("getToggleButtonProps",s,o,b),u}),[f,k,I,M,_,T]),$=(0,v.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{f({type:uP,index:n})},p=OR(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:_.getItemId(p),[i]:gR(a,(e=>{e&&(w.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=hR(o,d)),m.onMouseMove=hR(r,(()=>{n!==c.highlightedIndex&&(R.current=!1,f({type:cP,index:n,disabled:s}))})),m}),[f,k,R,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:F,setInputValue:B,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}CP.stateChangeTypes=EP;iR().array.isRequired,iR().func,iR().func,iR().func,iR().bool,iR().number,iR().number,iR().number,iR().bool,iR().bool,iR().bool,iR().any,iR().any,iR().any,iR().string,iR().string,iR().string,iR().string,iR().string,iR().string,iR().func,iR().string,iR().string,iR().func,iR().func,iR().func,iR().func,iR().func,iR().func,iR().shape({addEventListener:iR().func,removeEventListener:iR().func,document:iR().shape({getElementById:iR().func,activeElement:iR().any,body:iR().any})});iR().array,iR().array,iR().array,iR().func,iR().func,iR().func,iR().number,iR().number,iR().number,iR().func,iR().func,iR().string,iR().string,iR().shape({addEventListener:iR().func,removeEventListener:iR().func,document:iR().shape({getElementById:iR().func,activeElement:iR().any,body:iR().any})});const SP=e=>e.__nextUnconstrainedWidth?"":ip(cg,"{min-width:130px;}",""),kP=hd(_g,{target:"eswuck60"})(SP,";"),TP=e=>e?.name,RP=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case CP.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case CP.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function PP(e){const{__next36pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:r,hideLabelFromVision:o,label:i,describedBy:s,options:u,onChange:d,size:f="default",value:p,onMouseOver:m,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=e,{getLabelProps:y,getToggleButtonProps:w,getMenuProps:x,getItemProps:E,isOpen:_,highlightedIndex:C,selectedItem:S}=CP({initialSelectedItem:u[0],items:u,itemToString:TP,onSelectedItemChange:d,...null!=p?{selectedItem:p}:void 0,stateReducer:RP}),[k,T]=(0,a.useState)(!1);n||Zl()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const R=x({className:"components-custom-select-control__menu","aria-hidden":!_}),P=(0,a.useCallback)((e=>{e.stopPropagation(),R?.onKeyDown?.(e)}),[R]);return R["aria-activedescendant"]?.startsWith("downshift-null")&&delete R["aria-activedescendant"],(0,a.createElement)("div",{className:l()("components-custom-select-control",r)},o?(0,a.createElement)(bd,{as:"label",...y()},i):(0,a.createElement)($v,{...y({className:"components-custom-select-control__label"})},i),(0,a.createElement)(kP,{__next36pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,a.createElement)(Ry,null)},(0,a.createElement)(_y,{onMouseOver:m,onMouseOut:h,as:"button",onFocus:function(e){T(!0),g?.(e)},onBlur:function(e){T(!1),v?.(e)},selectSize:f,__next36pxDefaultSize:t,...w({"aria-label":i,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(S?(0,c.sprintf)((0,c.__)("Currently selected: %s"),S.name):(0,c.__)("No selection"))})},TP(S),b&&S.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__hint"},S.__experimentalHint))),(0,a.createElement)("ul",{...R,onKeyDown:P},_&&u.map(((e,n)=>(0,a.createElement)("li",{...E({item:e,index:n,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":n===C,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===S&&(0,a.createElement)(ky,{icon:l_,className:"components-custom-select-control__item-icon"}))))))}function MP(e){return(0,a.createElement)(PP,{...e,__experimentalShowSelectedHint:!1})}function IP(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function NP(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function OP(e,t){const n=IP(e);if(isNaN(t))return NP(e,NaN);if(!t)return n;const r=n.getDate(),o=NP(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);return r>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}let DP={};function AP(){return DP}function LP(e,t){const n=AP(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=IP(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function zP(e,t){return function(e,t){const n=IP(e);return isNaN(t)?NP(e,NaN):t?(n.setDate(n.getDate()+t),n):n}(e,7*t)}function FP(e,t){return OP(e,12*t)}function BP(e){const t=IP(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function jP(e,t){const n=IP(e.start),r=IP(e.end);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(IP(a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?l.reverse():l}function VP(e){const t=IP(e);return t.setDate(1),t.setHours(0,0,0,0),t}function HP(e,t){const n=AP(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=IP(e),i=o.getDay(),a=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function $P(e,t){return+IP(e)==+IP(t)}function WP(e,t){const n=IP(e),r=n.getFullYear(),o=n.getDate(),i=NP(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const a=function(e){const t=IP(e),n=t.getFullYear(),r=t.getMonth(),o=NP(e,0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(i);return n.setMonth(t,Math.min(o,a)),n}function UP(){return function(e){const t=IP(e);return t.setHours(0,0,0,0),t}(Date.now())}var GP,KP;!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(GP||(GP={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(KP||(KP={}));var qP=function(e,t,n){return($P(e,t)||function(e,t){const n=IP(e),r=IP(t);return n.getTime()>r.getTime()}(e,t))&&($P(e,n)||function(e,t){return+IP(e)<+IP(t)}(e,n))},YP=function(e){return function(e,t){let n=IP(e);return isNaN(+n)?NP(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=WP(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},XP=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?KP.SUNDAY:n,o=t.viewing,i=void 0===o?new Date:o,a=t.selected,s=void 0===a?[]:a,l=t.numberOfMonths,c=void 0===l?1:l,u=(0,v.useState)(i),d=u[0],f=u[1],p=(0,v.useCallback)((function(){return f(UP())}),[f]),m=(0,v.useCallback)((function(e){return f((function(t){return WP(t,e)}))}),[]),h=(0,v.useCallback)((function(){return f((function(e){return function(e,t){return OP(e,-t)}(e,1)}))}),[]),g=(0,v.useCallback)((function(){return f((function(e){return OP(e,1)}))}),[]),b=(0,v.useCallback)((function(e){return f((function(t){return function(e,t){const n=IP(e);return isNaN(+n)?NP(e,NaN):(n.setFullYear(t),n)}(t,e)}))}),[]),y=(0,v.useCallback)((function(){return f((function(e){return function(e,t){return FP(e,-t)}(e,1)}))}),[]),w=(0,v.useCallback)((function(){return f((function(e){return FP(e,1)}))}),[]),x=(0,v.useState)(s.map(YP)),E=x[0],_=x[1],C=(0,v.useCallback)((function(e){return E.findIndex((function(t){return $P(t,e)}))>-1}),[E]),S=(0,v.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,v.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!$P(t,e)}))}))}),[]),T=(0,v.useCallback)((function(e,t){return C(e)?k(e):S(e,t)}),[k,C,S]),R=(0,v.useCallback)((function(e,t,n){_(n?jP({start:e,end:t}):function(n){return n.concat(jP({start:e,end:t}))})}),[]),P=(0,v.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!jP({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,v.useMemo)((function(){return function(e,t){const n=IP(e.start),r=IP(e.end);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(IP(a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}({start:VP(d),end:BP(OP(d,c-1))}).map((function(e){return function(e,t){const n=IP(e.start),r=IP(e.end);let o=+n>+r;const i=LP(o?r:n,t),a=LP(o?n:r,t);i.setHours(15),a.setHours(15);const s=+a.getTime();let l=i,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);const u=[];for(;+l<=s;)l.setHours(0),u.push(IP(l)),l=zP(l,c),l.setHours(15);return o?u.reverse():u}({start:VP(e),end:BP(e)},{weekStartsOn:r}).map((function(e){return jP({start:LP(e,{weekStartsOn:r}),end:HP(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:YP,inRange:qP,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:g,viewYear:b,viewPreviousYear:y,viewNextYear:w,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:C,select:S,deselect:k,toggle:T,selectRange:R,deselectRange:P,calendar:M}};function ZP(e){return ZP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZP(e)}function JP(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function QP(e){JP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ZP(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function eM(e){JP(1,arguments);var t=QP(e);return t.setHours(0,0,0,0),t}function tM(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function nM(e,t){JP(2,arguments);var n=QP(e),r=tM(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function rM(e,t){return JP(2,arguments),nM(e,-tM(t))}function oM(e){if(JP(1,arguments),!function(e){return JP(1,arguments),e instanceof Date||"object"===ZP(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=QP(e);return!isNaN(Number(t))}function iM(e,t){return JP(2,arguments),function(e,t){JP(2,arguments);var n=QP(e).getTime(),r=tM(t);return new Date(n+r)}(e,-tM(t))}function aM(e){JP(1,arguments);var t=QP(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function sM(e){JP(1,arguments);var t=QP(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=aM(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=aM(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function lM(e){JP(1,arguments);var t=QP(e),n=aM(t).getTime()-function(e){JP(1,arguments);var t=sM(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),aM(n)}(t).getTime();return Math.round(n/6048e5)+1}var cM={};function uM(){return cM}function dM(e,t){var n,r,o,i,a,s,l,c;JP(1,arguments);var u=uM(),d=tM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=QP(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function fM(e,t){var n,r,o,i,a,s,l,c;JP(1,arguments);var u=QP(e),d=u.getUTCFullYear(),f=uM(),p=tM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=dM(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=dM(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function pM(e,t){JP(1,arguments);var n=QP(e),r=dM(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;JP(1,arguments);var u=uM(),d=tM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=fM(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),dM(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function mM(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var hM={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return mM("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):mM(n+1,2)},d:function(e,t){return mM(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return mM(e.getUTCHours()%12||12,t.length)},H:function(e,t){return mM(e.getUTCHours(),t.length)},m:function(e,t){return mM(e.getUTCMinutes(),t.length)},s:function(e,t){return mM(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return mM(Math.floor(r*Math.pow(10,n-3)),t.length)}},gM=hM,vM="midnight",bM="noon",yM="morning",wM="afternoon",xM="evening",EM="night",_M={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return gM.y(e,t)},Y:function(e,t,n,r){var o=fM(e,r),i=o>0?o:1-o;return"YY"===t?mM(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):mM(i,t.length)},R:function(e,t){return mM(sM(e),t.length)},u:function(e,t){return mM(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return mM(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return mM(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return gM.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return mM(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=pM(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):mM(o,t.length)},I:function(e,t,n){var r=lM(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):mM(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):gM.d(e,t)},D:function(e,t,n){var r=function(e){JP(1,arguments);var t=QP(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):mM(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return mM(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return mM(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return mM(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?bM:0===o?vM:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?xM:o>=12?wM:o>=4?yM:EM,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return gM.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):gM.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):mM(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):mM(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):gM.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):gM.s(e,t)},S:function(e,t){return gM.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return SM(o);case"XXXX":case"XX":return kM(o);default:return kM(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return SM(o);case"xxxx":case"xx":return kM(o);default:return kM(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+CM(o,":");default:return"GMT"+kM(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+CM(o,":");default:return"GMT"+kM(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return mM(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return mM((r._originalDate||e).getTime(),t.length)}};function CM(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+mM(i,2)}function SM(e,t){return e%60==0?(e>0?"-":"+")+mM(Math.abs(e)/60,2):kM(e,t)}function kM(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+mM(Math.floor(o/60),2)+n+mM(o%60,2)}var TM=_M,RM=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},PM=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},MM={p:PM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return RM(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",RM(o,t)).replace("{{time}}",PM(i,t))}},IM=MM;var NM=["D","DD"],OM=["YY","YYYY"];function DM(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},LM=function(e,t,n){var r,o=AM[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function zM(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var FM={date:zM({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:zM({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:zM({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},BM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jM=function(e,t,n,r){return BM[e]};function VM(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var HM={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:VM({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:VM({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:VM({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:VM({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:VM({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},$M=HM;function WM(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var UM,GM={ordinalNumber:(UM={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(UM.matchPattern);if(!n)return null;var r=n[0],o=e.match(UM.parsePattern);if(!o)return null;var i=UM.valueCallback?UM.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:WM({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:WM({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:WM({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:WM({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:WM({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},KM={code:"en-US",formatDistance:LM,formatLong:FM,formatRelative:jM,localize:$M,match:GM,options:{weekStartsOn:0,firstWeekContainsDate:1}},qM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,YM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XM=/^'([^]*?)'?$/,ZM=/''/g,JM=/[a-zA-Z]/;function QM(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,g,v,b,y,w;JP(2,arguments);var x=String(t),E=uM(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:KM,C=tM(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=tM(null!==(p=null!==(m=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==m?m:null===(y=E.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=QP(e);if(!oM(k))throw new RangeError("Invalid time value");var T=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),R=iM(k,T),P={firstWeekContainsDate:C,weekStartsOn:S,locale:_,_originalDate:k},M=x.match(YM).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,IM[t])(e,_.formatLong):e})).join("").match(qM).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(XM);if(!t)return e;return t[1].replace(ZM,"'")}(r);var i=TM[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==OM.indexOf(e)}(r)||DM(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==NM.indexOf(e)}(r)||DM(r,t,String(e)),i(R,r,_.localize,P);if(o.match(JM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function eI(e,t){JP(2,arguments);var n=QP(e),r=QP(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function tI(e,t){JP(2,arguments);var n=QP(e),r=QP(t);return n.getTime()===r.getTime()}function nI(e,t){JP(2,arguments);var n=eM(e),r=eM(t);return n.getTime()===r.getTime()}function rI(e,t){JP(2,arguments);var n=QP(e),r=tM(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function oI(e,t){return JP(2,arguments),rI(e,7*tM(t))}var iI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var aI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),sI=window.wp.date;const lI=hd("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),cI=hd(db,{target:"e105ri6r4"})("margin-bottom:",ah(4),";"),uI=hd(p_,{target:"e105ri6r3"})("font-size:",jh.fontSize,";font-weight:",jh.fontWeight,";strong{font-weight:",jh.fontWeightHeading,";}"),dI=hd("div",{target:"e105ri6r2"})("column-gap:",ah(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",ah(2),";"),fI=hd("div",{target:"e105ri6r1"})("color:",Hp.gray[700],";font-size:",jh.fontSize,";line-height:",jh.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),pI=hd(xd,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",ah(7),";width:",ah(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Hp.ui.theme};\n\t\t\tcolor: ${Hp.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Hp.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Hp.white:Hp.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function mI(e){return"string"==typeof e?new Date(e):QP(e)}const hI="yyyy-MM-dd'T'HH:mm:ss";function gI({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,a.useRef)();return(0,a.useEffect)((()=>{d.current&&r&&o&&d.current.focus()}),[r]),(0,a.createElement)(pI,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":vI(e,n,l),column:t,isSelected:n,isToday:i,hasEvents:l>0,onClick:c,onKeyDown:u},(0,sI.dateI18n)("j",e,-e.getTimezoneOffset()))}function vI(e,t,n){const{formats:r}=(0,sI.getSettings)(),o=(0,sI.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,c.sprintf)((0,c._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,c.sprintf)((0,c.__)("%1$s. Selected"),o):n>0?(0,c.sprintf)((0,c._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}var bI=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?mI(e):new Date,{calendar:l,viewing:u,setSelected:d,setViewing:f,isSelected:p,viewPreviousMonth:m,viewNextMonth:h}=XP({selected:[eM(s)],viewing:eM(s),weekStartsOn:i}),[g,v]=(0,a.useState)(eM(s)),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(e);return e!==w&&(x(e),d([eM(s)]),f(eM(s)),v(eM(s))),(0,a.createElement)(lI,{className:"components-datetime__date",role:"application","aria-label":(0,c.__)("Calendar")},(0,a.createElement)(cI,null,(0,a.createElement)(xd,{icon:(0,c.isRTL)()?iI:aI,variant:"tertiary","aria-label":(0,c.__)("View previous month"),onClick:()=>{m(),v(rM(g,1)),o?.(QM(rM(u,1),hI))}}),(0,a.createElement)(uI,{level:3},(0,a.createElement)("strong",null,(0,sI.dateI18n)("F",u,-u.getTimezoneOffset()))," ",(0,sI.dateI18n)("Y",u,-u.getTimezoneOffset())),(0,a.createElement)(xd,{icon:(0,c.isRTL)()?aI:iI,variant:"tertiary","aria-label":(0,c.__)("View next month"),onClick:()=>{h(),v(nM(g,1)),o?.(QM(nM(u,1),hI))}})),(0,a.createElement)(dI,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,a.createElement)(fI,{key:e.toString()},(0,sI.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,i)=>eI(e,u)?(0,a.createElement)(gI,{key:e.toString(),day:e,column:i+1,isSelected:p(e),isFocusable:tI(e,g),isFocusAllowed:b,isToday:nI(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>nI(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(QM(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),hI))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=rI(e,(0,c.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=rI(e,(0,c.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return JP(2,arguments),oI(e,-tM(t))}(e,1)),"ArrowDown"===t.key&&(n=oI(e,1)),"PageUp"===t.key&&(n=rM(e,1)),"PageDown"===t.key&&(n=nM(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;JP(1,arguments);var u=uM(),d=tM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=QP(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=eM(function(e,t){var n,r,o,i,a,s,l,c;JP(1,arguments);var u=uM(),d=tM(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=QP(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),v(n),eI(n,u)||(f(n),o?.(QM(n,hI))))}}):null))))))};function yI(e){JP(1,arguments);var t=QP(e);return t.setSeconds(0,0),t}function wI(e,t){JP(2,arguments);var n=QP(e),r=tM(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){JP(1,arguments);var t=QP(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}const xI=hd("div",{target:"evcr23110"})("box-sizing:border-box;font-size:",jh.fontSize,";"),EI=hd("fieldset",{target:"evcr2319"})("border:0;margin:0 0 ",ah(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),_I=hd("div",{target:"evcr2318"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),CI=ip("&&& ",dg,"{padding-left:",ah(2),";padding-right:",ah(2),";text-align:center;}",""),SI=hd(mb,{target:"evcr2317"})(CI," width:",ah(9),";&&& ",dg,"{padding-right:0;}&&& ",hg,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),kI=hd("span",{target:"evcr2316"})("border-top:",jh.borderWidth," solid ",Hp.gray[700],";border-bottom:",jh.borderWidth," solid ",Hp.gray[700],";line-height:calc(\n\t\t",jh.controlHeight," - ",jh.borderWidth," * 2\n\t);display:inline-block;"),TI=hd(mb,{target:"evcr2315"})(CI," width:",ah(9),";&&& ",dg,"{padding-left:0;}&&& ",hg,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),RI=hd("div",{target:"evcr2314"})({name:"1ff36h2",styles:"flex-grow:1"}),PI=hd(Iy,{target:"evcr2313"})("height:36px;",_y,"{line-height:30px;}"),MI=hd(mb,{target:"evcr2312"})(CI," width:",ah(9),";"),II=hd(mb,{target:"evcr2311"})(CI," width:",ah(14),";"),NI=hd("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"});var OI=()=>{const{timezone:e}=(0,sI.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?(0,c.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,a.createElement)(Qf,{position:"top center",text:o},(0,a.createElement)(NI,{className:"components-datetime__timezone"},r))};function DI(e,t){return t?(e%12+12)%24:e%12}function AI(e){return(t,n)=>{const r={...t};return n.type!==_v&&n.type!==Iv&&n.type!==Pv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var LI=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,a.useState)((()=>t?yI(mI(t)):new Date));(0,a.useEffect)((()=>{o(t?yI(mI(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:u,hours:d,am:f}=(0,a.useMemo)((()=>({day:QM(r,"dd"),month:QM(r,"MM"),year:QM(r,"yyyy"),minutes:QM(r,"mm"),hours:QM(r,e?"hh":"HH"),am:QM(r,"a")})),[r,e]),p=t=>(i,{event:a})=>{if(!(a.target instanceof HTMLInputElement))return;if(!a.target.validity.valid)return;let s=Number(i);"hours"===t&&e&&(s=DI(s,"PM"===f));const l=function(e,t){if(JP(2,arguments),"object"!==ZP(t)||null===t)throw new RangeError("values parameter must be an object");var n=QP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=wI(n,t.month)),null!=t.date&&n.setDate(tM(t.date)),null!=t.hours&&n.setHours(tM(t.hours)),null!=t.minutes&&n.setMinutes(tM(t.minutes)),null!=t.seconds&&n.setSeconds(tM(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(tM(t.milliseconds)),n)}(r,{[t]:s});o(l),n?.(QM(l,hI))};function m(e){return()=>{if(f===e)return;const t=parseInt(d,10),i=function(e,t){JP(2,arguments);var n=QP(e),r=tM(t);return n.setHours(r),n}(r,DI(t,"PM"===e));o(i),n?.(QM(i,hI))}}const h=(0,a.createElement)(MI,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,c.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),g=(0,a.createElement)(RI,null,(0,a.createElement)(PI,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,c.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,c.__)("January")},{value:"02",label:(0,c.__)("February")},{value:"03",label:(0,c.__)("March")},{value:"04",label:(0,c.__)("April")},{value:"05",label:(0,c.__)("May")},{value:"06",label:(0,c.__)("June")},{value:"07",label:(0,c.__)("July")},{value:"08",label:(0,c.__)("August")},{value:"09",label:(0,c.__)("September")},{value:"10",label:(0,c.__)("October")},{value:"11",label:(0,c.__)("November")},{value:"12",label:(0,c.__)("December")}],onChange:e=>{const t=wI(r,Number(e)-1);o(t),n?.(QM(t,hI))}}));return(0,a.createElement)(xI,{className:"components-datetime__time"},(0,a.createElement)(EI,null,(0,a.createElement)(qv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Time")),(0,a.createElement)(db,{className:"components-datetime__time-wrapper"},(0,a.createElement)(_I,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,a.createElement)(SI,{className:"components-datetime__time-field-hours-input",label:(0,c.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:AI(2)}),(0,a.createElement)(kI,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,a.createElement)(TI,{className:"components-datetime__time-field-minutes-input",label:(0,c.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:u,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:AI(2)})),e&&(0,a.createElement)(QC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,a.createElement)(xd,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",onClick:m("AM")},(0,c.__)("AM")),(0,a.createElement)(xd,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",onClick:m("PM")},(0,c.__)("PM"))),(0,a.createElement)(gh,null),(0,a.createElement)(OI,null))),(0,a.createElement)(EI,null,(0,a.createElement)(qv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Date")),(0,a.createElement)(db,{className:"components-datetime__time-wrapper"},e?(0,a.createElement)(a.Fragment,null,g,h):(0,a.createElement)(a.Fragment,null,h,g),(0,a.createElement)(II,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,c.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:AI(4)}))))};const zI=hd(d_,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),FI=()=>{};const BI=(0,a.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=FI,onChange:o,events:i,startOfWeek:s},l){return(0,a.createElement)(zI,{ref:l,className:"components-datetime",spacing:4},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(LI,{currentTime:e,onChange:o,is12Hour:t}),(0,a.createElement)(bI,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})))}));var jI=BI;var VI=[{name:(0,c._x)("None","Size of a UI element"),slug:"none"},{name:(0,c._x)("Small","Size of a UI element"),slug:"small"},{name:(0,c._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,c._x)("Large","Size of a UI element"),slug:"large"},{name:(0,c._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var HI=function(e){const{label:t,value:n,sizes:r=VI,icon:o,onChange:i,className:s=""}=e,u=(0,a.createElement)(a.Fragment,null,o&&(0,a.createElement)(ec,{icon:o}),t);return(0,a.createElement)(Iy,{className:l()(s,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,c.__)("Default"),value:""},...t]})(r)})};const $I={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},WI=(0,a.createContext)(!1),{Consumer:UI,Provider:GI}=WI;function KI({className:e,children:t,isDisabled:n=!0,...r}){const o=Qu();return(0,a.createElement)(GI,{value:n},(0,a.createElement)("div",{inert:n?"true":void 0,className:n?o($I,e,"components-disabled"):void 0,...r},t))}KI.Context=WI,KI.Consumer=UI;var qI=KI;const YI="is-dragging-components-draggable";var XI=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:d}){const f=(0,a.useRef)(null),p=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>()=>{p.current()}),[]),(0,a.createElement)(a.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const a=r.createElement("div");a.style.top="0",a.style.left="0";const d=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(d.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(d),e.dataTransfer.setDragImage(d,0,0)),a.classList.add("components-draggable__clone"),i&&a.classList.add(i);let m=0,h=0;if(f.current){m=e.clientX,h=e.clientY,a.style.transform=`translate( ${m}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,a.appendChild(t),r.body.appendChild(a)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,l=t.left;a.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,m=l-0,h=i-0,a.style.transform=`translate( ${m}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),a.appendChild(c),o?r.body.appendChild(a):n?.appendChild(a)}let g=e.clientX,v=e.clientY;const b=(0,u.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=m+e.clientX-g,r=h+e.clientY-v;a.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,m=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(YI),t&&t(e),p.current=()=>{a&&a.parentNode&&a.parentNode.removeChild(a),d&&d.parentNode&&d.parentNode.removeChild(d),r.body.classList.remove(YI),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),d&&(0,a.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))};var ZI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var JI=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[s,d]=(0,a.useState)(),[f,p]=(0,a.useState)(),[m,h]=(0,a.useState)(),g=(0,u.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,Jl.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){d(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,Jl.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){d(!1),h(void 0)},onDragEnter(){p(!0)},onDragLeave(){p(!1)}}),v=(0,u.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},w={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,a.createElement)(ql.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,a.createElement)(ql.div,{variants:w},(0,a.createElement)(ky,{icon:ZI,className:"components-drop-zone__content-icon"}),(0,a.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,c.__)("Drop files to upload")))));const x=l()("components-drop-zone",e,{"is-active":(s||f)&&("file"===m&&n||"html"===m&&r||"default"===m&&o),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${m}`]:!!m});return(0,a.createElement)("div",{...i,ref:g,className:x},v?b:(0,a.createElement)(Ym,null,b))};function QI({children:e}){return Zl()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}var eN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function tN(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Ap([Lp]);var nN=function({values:e}){return e?(0,a.createElement)(gy,{colorValue:tN(e,"135deg")}):(0,a.createElement)(ec,{icon:eN})};function rN({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,l]=(0,a.useState)(!1);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(xd,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e))},(0,a.createElement)(db,{justify:"flex-start",spacing:2},t?(0,a.createElement)(gy,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,a.createElement)(ec,{icon:eN}),(0,a.createElement)("span",null,e))),s&&(0,a.createElement)(E_,{className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o}))}var oN=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,a.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,a.createElement)(rN,{key:s,label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}}))))};const iN=["#333","#CCC"];function aN({value:e,onChange:t}){const n=!!e,r=n?e:iN,o=tN(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,a.createElement)(Bk,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}var sN=function({clearable:e=!0,unsetable:t=!0,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,onChange:l}){const[u,d]=(0,a.useMemo)((()=>{return!(e=n)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Op(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[n]),f="unset"===s,p=(0,a.createElement)(u_.Option,{key:"unset",value:"unset",isSelected:f,tooltipText:(0,c.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{l(f?void 0:"unset")}}),m=r.map((({colors:e,slug:t,name:n})=>{const r={background:tN(e,"135deg"),color:"transparent"},o=null!=n?n:(0,c.sprintf)((0,c.__)("Duotone code: %s"),t),i=n?(0,c.sprintf)((0,c.__)("Duotone: %s"),n):o,u=oc()(e,s);return(0,a.createElement)(u_.Option,{key:t,value:e,isSelected:u,"aria-label":i,tooltipText:o,style:r,onClick:()=>{l(u?void 0:e)}})}));return(0,a.createElement)(u_,{options:t?[p,...m]:m,actions:!!e&&(0,a.createElement)(u_.ButtonAction,{onClick:()=>l(void 0)},(0,c.__)("Clear"))},(0,a.createElement)(gh,{paddingTop:4},(0,a.createElement)(d_,{spacing:3},!o&&!i&&(0,a.createElement)(aN,{value:f?void 0:s,onChange:l}),!i&&(0,a.createElement)(oN,{labels:[(0,c.__)("Shadows"),(0,c.__)("Highlights")],colors:n,value:f?void 0:s,disableCustomColors:o,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=u),e[1]||(e[1]=d);const t=e.length>=2?e:void 0;l(t)}}))))};var lN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const cN=hd(ky,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var uN=(0,a.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...s}=e,u=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=l()("components-external-link",o),f=!!n?.startsWith("#");return(0,a.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:u,ref:t},r,(0,a.createElement)(bd,{as:"span"},(0,c.__)("(opens in a new tab)")),(0,a.createElement)(cN,{icon:lN,className:"components-external-link__icon"}))}));const dN={width:200,height:170},fN=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function pN(e){return Math.round(100*e)}const mN=hd("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),hN=hd("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),gN=hd("div",{target:"eeew7dm6"})("background:",Hp.gray[100],";box-sizing:border-box;height:",dN.height,"px;max-width:280px;min-width:",dN.width,"px;width:100%;"),vN=hd(F_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var bN={name:"1mn7kwb",styles:"padding-bottom:1em"};const yN=({__nextHasNoMarginBottom:e})=>e?void 0:bN;var wN={name:"1mn7kwb",styles:"padding-bottom:1em"};const xN=({hasHelpText:e=!1})=>e?wN:void 0,EN=hd(_h,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",xN," ",yN,";"),_N=hd("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(({showOverlay:e})=>e?1:0),";"),CN=hd("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),SN=hd(CN,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),kN=hd(CN,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),TN=0,RN=100,PN=()=>{};function MN({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=PN,point:r={x:.5,y:.5}}){const o=pN(r.x),i=pN(r.y),s=(e,t)=>{if(void 0===e)return;const o=parseInt(e,10);isNaN(o)||n({...r,[t]:o/100})};return(0,a.createElement)(EN,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t},(0,a.createElement)(IN,{label:(0,c.__)("Left"),"aria-label":(0,c.__)("Focal point left position"),value:[o,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,a.createElement)(IN,{label:(0,c.__)("Top"),"aria-label":(0,c.__)("Focal point top position"),value:[i,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"}))}function IN(e){return(0,a.createElement)(vN,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:RN,min:TN,units:[{value:"%",label:"%"}],...e})}const NN=hd("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:48px;margin:-24px 0 0 -24px;position:absolute;user-select:none;width:48px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.6 );border-radius:50%;backdrop-filter:blur( 4px );box-shadow:rgb( 0 0 0 / 20% ) 0px 0px 10px;",(({isDragging:e})=>e&&"cursor: grabbing;"),";");function ON({left:e="50%",top:t="50%",...n}){const r=l()("components-focal-point-picker__icon_container"),o={left:e,top:t};return(0,a.createElement)(NN,{...n,className:r,style:o})}function DN({bounds:e,...t}){return(0,a.createElement)(_N,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,a.createElement)(SN,{style:{top:"33%"}}),(0,a.createElement)(SN,{style:{top:"66%"}}),(0,a.createElement)(kN,{style:{left:"33%"}}),(0,a.createElement)(kN,{style:{left:"66%"}}))}function AN({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,a.createElement)(gN,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||fN.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,a.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,a.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}var LN=function e({__nextHasNoMarginBottom:t,autoPlay:n=!0,className:r,help:o,label:i,onChange:s,onDrag:d,onDragEnd:f,onDragStart:p,resolvePoint:m,url:h,value:g={x:.5,y:.5},...v}){const[b,y]=(0,a.useState)(g),[w,x]=(0,a.useState)(!1),{startDrag:E,endDrag:_,isDragging:C}=(0,u.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=I(e);t&&(p?.(t,e),y(t))},onDragMove:e=>{e.preventDefault();const t=I(e);t&&(d?.(t,e),y(t))},onDragEnd:()=>{f?.(),s?.(b)}}),{x:S,y:k}=C?b:g,T=(0,a.useRef)(null),[R,P]=(0,a.useState)(dN),M=(0,a.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;P(e>0&&t>0?{width:e,height:t}:{...dN})}));(0,a.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,u.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const I=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/R.width,a=(t-r)/R.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),N({x:i,y:a})},N=e=>{var t;const n=null!==(t=m?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},O={left:S*R.width,top:k*R.height},D=l()("components-focal-point-picker-control",r),A=`inspector-focal-point-picker-control-${(0,u.useInstanceId)(e)}`;return sc((()=>{x(!0);const e=window.setTimeout((()=>{x(!1)}),600);return()=>window.clearTimeout(e)}),[S,k]),(0,a.createElement)(qv,{...v,__nextHasNoMarginBottom:t,label:i,id:A,help:o,className:D},(0,a.createElement)(mN,{className:"components-focal-point-picker-wrapper"},(0,a.createElement)(hN,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:S,y:k},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,s?.(N(r))},onMouseDown:E,onBlur:()=>{C&&_()},ref:T,role:"button",tabIndex:-1},(0,a.createElement)(DN,{bounds:R,showOverlay:w}),(0,a.createElement)(AN,{alt:(0,c.__)("Media preview"),autoPlay:n,onLoad:M.current,src:h}),(0,a.createElement)(ON,{...O,isDragging:C}))),(0,a.createElement)(MN,{__nextHasNoMarginBottom:t,hasHelpText:!!o,point:{x:S,y:k},onChange:e=>{s?.(N(e))}}))};function zN({iframeRef:e,...t}){const n=(0,u.useMergeRefs)([e,(0,u.useFocusableIframe)()]);return Zl()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,a.createElement)("iframe",{ref:n,...t})}var FN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function BN(e){const[t,...n]=e;if(!t)return null;const[,r]=M_(t.size);return n.every((e=>{const[,t]=M_(e.size);return t===r}))?r:null}const jN=hd("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),VN=hd(db,{target:"e8tqeku4"})("height:",ah(4),";"),HN=hd(xd,{target:"e8tqeku3"})("margin-top:",ah(-1),";"),$N=hd(qv.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",ah(1),";justify-content:flex-start;margin-bottom:0;"),WN=hd("span",{target:"e8tqeku1"})("color:",Hp.gray[700],";"),UN=hd("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${ah(6)};`),";"),GN={key:"default",name:(0,c.__)("Default"),value:void 0},KN={key:"custom",name:(0,c.__)("Custom")};var qN=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:s,onSelectCustom:l}=e,u=!!BN(n),d=[GN,...n.map((e=>{let t;if(u){const[n]=M_(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[KN]],f=r?null!==(t=d.find((e=>e.value===r)))&&void 0!==t?t:KN:GN;return(0,a.createElement)(PP,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,c.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,c.sprintf)((0,c.__)("Currently selected font size: %s"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===KN?l():s(e.value)},size:i})};const YN=e=>{const t=ip("border-color:",Hp.ui.border,";","");return ip(e&&t," &:hover{border-color:",Hp.ui.borderHover,";}&:focus-within{border-color:",Hp.ui.borderFocus,";box-shadow:",jh.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},XN=e=>ip("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),ZN={name:"7whenc",styles:"display:flex;width:100%"},JN=hd("div",{target:"eakva831"})("background:",Hp.gray[900],";border-radius:",jh.controlBorderRadius,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",jh.transitionDurationFast," ease;",$p("transition")," z-index:1;outline:2px solid transparent;outline-offset:-3px;"),QN=hd("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function eO(e){void 0===e&&(e={});var t=Jp(e),n=t.state,r=t.loop,o=void 0===r||r,i=m(t,["state","loop"]),a=(0,v.useState)(n),s=a[0],l=a[1],c=wm(p(p({},i),{},{loop:o}));return p(p({},c),{},{state:s,setState:l})}var tO=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],nO=[].concat(tO,["value","checked","unstable_checkOnFocus"]),rO=z({as:"div",useHook:B({name:"RadioGroup",compose:Rm,keys:tO,useProps:function(e,t){return p({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return R(e,t,n)}});var oO=(0,a.memo)((function({containerRef:e,containerWidth:t,isAdaptiveWidth:n,state:r}){const[o,i]=(0,a.useState)(0),[s,l]=(0,a.useState)(0),[c,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const t=e?.current;if(!t)return;const n=t.querySelector(`[data-value="${r}"]`);if(f(!!n),!n)return;const o=window.setTimeout((()=>{const{width:e,x:r}=n.getBoundingClientRect(),{x:o}=t.getBoundingClientRect();i(r-o-1),l(e)}),100);let a;return c||(a=window.requestAnimationFrame((()=>{u(!0)}))),()=>{window.clearTimeout(o),window.cancelAnimationFrame(a)}}),[c,e,t,r,n]),d?(0,a.createElement)(JN,{role:"presentation",style:{transform:`translateX(${o}px)`,transition:c?void 0:"none",width:s}}):null}));const iO=(0,a.createContext)({});var aO=iO;const sO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=eO({baseId:(0,u.useInstanceId)(sO,"toggle-group-control-as-radio-group").toString(),state:i}),m=(0,u.usePrevious)(i);return sc((()=>{m!==p.state&&r(p.state)}),[p.state]),sc((()=>{i!==p.state&&p.setState(i)}),[i]),(0,a.createElement)(aO.Provider,{value:{...p,isBlock:!t,size:o}},(0,a.createElement)(rO,{...p,"aria-label":n,as:vd,...s,ref:(0,u.useMergeRefs)([c,l])},d,(0,a.createElement)(oO,{state:p.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))}));const lO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=(0,u.useInstanceId)(lO,"toggle-group-control-as-button-group").toString(),[m,h]=(0,a.useState)(i),g={baseId:p,state:m,setState:h},v=(0,u.usePrevious)(i);return sc((()=>{v!==g.state&&r(g.state)}),[g.state]),sc((()=>{i!==g.state&&g.setState(i)}),[i]),(0,a.createElement)(aO.Provider,{value:{...g,isBlock:!t,isDeselectable:!0,size:o}},(0,a.createElement)(vd,{"aria-label":n,...s,ref:(0,u.useMergeRefs)([c,l]),role:"group"},d,(0,a.createElement)(oO,{state:g.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))})),cO=()=>{};const uO=td((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:s=!1,label:l,hideLabelFromVision:c=!1,help:u,onChange:d=cO,size:f="default",value:p,children:m,...h}=ed(e,"ToggleGroupControl"),g=Qu(),v=(0,a.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>ip("background:",Hp.ui.background,";border:1px solid transparent;border-radius:",jh.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",jh.transitionDurationFastest," linear;",$p("transition")," ",XN(n)," ",!t&&YN(e),";",""))({isBlock:i,isDeselectable:s,size:f}),i&&ZN,r)),[r,g,i,s,f]),b=s?lO:sO;return(0,a.createElement)(qv,{help:u,__nextHasNoMarginBottom:n},!c&&(0,a.createElement)(QN,null,(0,a.createElement)(qv.VisualLabel,null,l)),(0,a.createElement)(b,{...h,children:m,className:v,isAdaptiveWidth:o,label:l,onChange:d,ref:t,size:f,value:p}))}),"ToggleGroupControl");var dO=uO;function fO(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function pO(e,t){var n=Ee(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var mO=B({name:"Radio",compose:Se,keys:nO,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=m(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return p(p({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=m(t,["ref","onChange","onClick"]),a=(0,v.useRef)(null),s=(0,v.useState)(!0),l=s[0],c=s[1],u=fO(e),d=G(e.currentId===e.id),f=G(r),h=G(o);!function(e){var t=(0,v.useState)((function(){return fO(e)}))[0],n=(0,v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var g=(0,v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),b=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),e.defaultPrevented||l||pO(e.currentTarget,g)}),[g,l]);return(0,v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&pO(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),p({ref:V(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:g,onClick:b},i)}}),hO=z({as:"input",memo:!0,useHook:mO});const gO=hd("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),vO={name:"82a6rk",styles:"flex:1"},bO=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>ip("align-items:center;appearance:none;background:transparent;border:none;border-radius:",jh.controlBorderRadius,";color:",Hp.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",jh.transitionDurationFast," linear,color ",jh.transitionDurationFast," linear,font-weight 60ms linear;",$p("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",jh.toggleGroupControlBackgroundColor,";}",e&&wO," ",t&&EO({size:r})," ",n&&yO,";",""),yO=ip("color:",Hp.white,";&:active{background:transparent;}",""),wO=ip("color:",Hp.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Hp.white,",0 0 0 ",jh.borderWidthFocus," ",Hp.ui.theme,";outline:2px solid transparent;}",""),xO=hd("div",{target:"et6ln9s0"})("display:flex;font-size:",jh.fontSize,";line-height:1;"),EO=({size:e="default"})=>ip("color:",Hp.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),{ButtonContentView:_O,LabelView:CO}=n,SO=({showTooltip:e,text:t,children:n})=>e&&t?(0,a.createElement)(Qf,{text:t,position:"top center"},n):(0,a.createElement)(a.Fragment,null,n);const kO=td((function e(t,n){const r=(0,a.useContext)(iO),o=ed({...t,id:(0,u.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:s=!1,size:l="default",...c}=r,{className:d,isIcon:f=!1,value:p,children:m,showTooltip:h=!1,...g}=o,v=c.state===p,b=Qu(),y=b(i&&vO),w=b(bO({isDeselectable:s,isIcon:f,isPressed:v,size:l}),d),x={...g,className:w,"data-value":p,ref:n};return(0,a.createElement)(CO,{className:y},(0,a.createElement)(SO,{showTooltip:h,text:g["aria-label"]},s?(0,a.createElement)("button",{...x,"aria-pressed":v,type:"button",onClick:()=>{s&&v?c.setState(void 0):c.setState(p)}},(0,a.createElement)(_O,null,m)):(0,a.createElement)(hO,{...x,...c,as:"button",value:p},(0,a.createElement)(_O,null,m))))}),"ToggleGroupControlOptionBase");var TO=kO;var RO=(0,a.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,a.createElement)(TO,{...r,"aria-label":o,ref:t},n)}));const PO=[(0,c.__)("S"),(0,c.__)("M"),(0,c.__)("L"),(0,c.__)("XL"),(0,c.__)("XXL")],MO=[(0,c.__)("Small"),(0,c.__)("Medium"),(0,c.__)("Large"),(0,c.__)("Extra Large"),(0,c.__)("Extra Extra Large")];var IO=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,a.createElement)(dO,{__nextHasNoMarginBottom:r,label:(0,c.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,a.createElement)(RO,{key:e.slug,value:e.size,label:PO[t],"aria-label":e.name||MO[t],showTooltip:!0}))))};const NO=(0,a.forwardRef)(((e,t)=>{const{__nextHasNoMarginBottom:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:u,value:d,withSlider:f=!1,withReset:p=!0}=e;n||Zl()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const m=I_({availableUnits:u||["px","em","rem"]}),h=o.length>5,g=o.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,a.useState)(!i&&v),w=(0,a.useMemo)((()=>{if(b)return(0,c.__)("Custom");if(!h)return g?g.name||MO[o.indexOf(g)]:"";const e=BN(o);return e?`(${e})`:""}),[b,h,g,o]);if(0===o.length&&i)return null;const x="string"==typeof d||"string"==typeof o[0]?.size,[E,_]=M_(d,m),C=!!_&&["em","rem"].includes(_);return(0,a.createElement)(jN,{ref:t,className:"components-font-size-picker"},(0,a.createElement)(bd,{as:"legend"},(0,c.__)("Font size")),(0,a.createElement)(gh,null,(0,a.createElement)(VN,{className:"components-font-size-picker__header"},(0,a.createElement)($N,{"aria-label":`${(0,c.__)("Size")} ${w||""}`},(0,c.__)("Size"),w&&(0,a.createElement)(WN,{className:"components-font-size-picker__header__hint"},w)),!i&&(0,a.createElement)(HN,{label:b?(0,c.__)("Use size preset"):(0,c.__)("Set custom size"),icon:FN,onClick:()=>{y(!b)},isPressed:b,isSmall:!0}))),(0,a.createElement)(UN,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&h&&!b&&(0,a.createElement)(qN,{fontSizes:o,value:d,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,a.createElement)(IO,{fontSizes:o,value:d,__nextHasNoMarginBottom:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))}}),!i&&b&&(0,a.createElement)(_h,{className:"components-font-size-picker__custom-size-control"},(0,a.createElement)(Ch,{isBlock:!0},(0,a.createElement)(F_,{label:(0,c.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:x?e:parseInt(e,10))},size:l,units:x?m:[],min:0})),f&&(0,a.createElement)(Ch,{isBlock:!0},(0,a.createElement)(gh,{marginX:2,marginBottom:0},(0,a.createElement)(lw,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:(0,c.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:x?e+(null!=_?_:"px"):e)},min:0,max:C?10:100,step:C?.1:1}))),p&&(0,a.createElement)(Ch,null,(0,a.createElement)(wd,{disabled:void 0===d,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==l?"small":"default"},(0,c.__)("Reset"))))))}));var OO=NO;var DO=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const l=(0,a.useRef)(null),c=()=>{l.current?.click()},u=i?i({openFileDialog:c}):(0,a.createElement)(xd,{onClick:c,...s},t);return(0,a.createElement)("div",{className:"components-form-file-upload"},u,(0,a.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))};const AO=()=>{};var LO=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=AO,...s}=e,c=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,a.createElement)("span",{className:c},(0,a.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...s}),(0,a.createElement)("span",{className:"components-form-toggle__track"}),(0,a.createElement)("span",{className:"components-form-toggle__thumb"}))};const zO=()=>{};function FO({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:s=zO,onMouseEnter:d,onMouseLeave:f,messages:p,termPosition:m,termsCount:h}){const g=(0,u.useInstanceId)(FO),v=l()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),b=r(e),y=(0,c.sprintf)((0,c.__)("%1$s (%2$s of %3$s)"),b,m,h);return(0,a.createElement)("span",{className:v,onMouseEnter:d,onMouseLeave:f,title:n},(0,a.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,a.createElement)(bd,{as:"span"},y),(0,a.createElement)("span",{"aria-hidden":"true"},b)),(0,a.createElement)(xd,{className:"components-form-token-field__remove-token",icon:Kb,onClick:i?void 0:()=>s({value:e}),label:p.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const BO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&ip("padding-top:",ah(t?1:.5),";padding-bottom:",ah(t?1:.5),";",""),jO=hd(_h,{target:"ehq8nmi0"})("padding:7px;",BO,";"),VO=e=>e;var HO=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:s=(0,c.__)("Add item"),className:d,suggestions:f=[],maxSuggestions:p=100,value:m=[],displayTransform:h=VO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:w=!1,disabled:x=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,c.__)("Item added."),removed:(0,c.__)("Item removed."),remove:(0,c.__)("Remove item"),__experimentalInvalid:(0,c.__)("Invalid item")},__experimentalRenderItem:C,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:T=!0,__next40pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:M=!1}=WT(t,"wp.components.FormTokenField"),I=(0,u.useInstanceId)(e),[N,O]=(0,a.useState)(""),[D,A]=(0,a.useState)(0),[L,z]=(0,a.useState)(!1),[F,B]=(0,a.useState)(!1),[j,V]=(0,a.useState)(-1),[H,$]=(0,a.useState)(!1),W=(0,u.usePrevious)(f),U=(0,u.usePrevious)(m),G=(0,a.useRef)(null),K=(0,a.useRef)(null),q=(0,u.useDebounce)(kb.speak,500);function Y(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(){fe()&&k(N)?z(!1):(O(""),A(0),z(!1),B(!1),V(-1),$(!1))}function J(e){e.target===K.current&&L&&e.preventDefault()}function Q(e){se(e.value),Y()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),b(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(m[e])}function re(){const e=ue();e<m.length&&(se(m[e]),function(e){A(m.length-Math.max(e,-1)-1)}(e))}function oe(){let e=!1;const t=function(){if(-1!==j)return ce()[j];return}();return t?(ae(t),e=!0):fe()&&(ae(N),e=!0),e}function ie(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return m.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...m];e.splice(ue(),0,...t),v(e)}}function ae(e){k(e)?(ie([e]),(0,kb.speak)(_.added,"assertive"),O(""),V(-1),$(!1),B(!S),L&&Y()):(0,kb.speak)(_.__experimentalInvalid,"assertive")}function se(e){const t=m.filter((t=>le(t)!==le(e)));v(t),(0,kb.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=N,t=f,n=m,r=p,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function ue(){return m.length-D}function de(){return 0===N.length}function fe(){return g(N).length>0}function pe(e=!0){const t=N.trim().length>1,n=ce(N),r=n.length>0,o=X()&&S;if(B(o||t&&r),e&&(P&&t&&r?(V(0),$(!0)):(V(-1),$(!1))),t){const e=r?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,c.__)("No results.");q(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,a.createElement)(Ch,{key:"token-"+r},(0,a.createElement)(FO,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||w,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&x,messages:_,termsCount:s,termPosition:i}))}(0,a.useEffect)((()=>{L&&!X()&&Y()}),[L]),(0,a.useEffect)((()=>{const e=!kf()(f,W||[]);(e||m!==U)&&pe(e)}),[f,W,m,U]),(0,a.useEffect)((()=>{pe()}),[N]),(0,a.useEffect)((()=>{pe()}),[P]),x&&L&&(z(!1),O(""));const he=l()(d,"components-form-token-field__input-container",{"is-active":L,"is-disabled":x});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return x||(ge=Object.assign({},ge,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,m.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(N,f,m,p,g).length:e)-1)),$(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(N,f,m,p,g).length)),$(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":E&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),B(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(N),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),B(S||F)):z(!1),"function"==typeof y&&y(e)}})),(0,a.createElement)("div",{...ge},(0,a.createElement)($v,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},s),(0,a.createElement)("div",{ref:K,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,a.createElement)(jO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:R,hasTokens:!!m.length},function(){const e=m.map(me);return e.splice(ue(),0,function(){const e={instanceId:I,autoCapitalize:n,autoComplete:r,placeholder:0===m.length?i:"",key:"input",disabled:x,value:N,onBlur:Z,isExpanded:F,selectedSuggestionIndex:j};return(0,a.createElement)(FT,{...e,onChange:o&&m.length>=o?void 0:ee,ref:G})}()),e}()),F&&(0,a.createElement)(HT,{instanceId:I,match:g(N),displayTransform:h,suggestions:ve,selectedIndex:j,scrollIntoView:H,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:C})),!M&&(0,a.createElement)(gh,{marginBottom:2}),T&&(0,a.createElement)(Uv,{id:`components-form-token-suggestions-howto-${I}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:M},E?(0,c.__)("Separate with commas, spaces, or the Enter key."):(0,c.__)("Separate with commas or the Enter key.")))};const $O=()=>(0,a.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:"4",cy:"4",r:"4"}));function WO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,a.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,c.__)("Guide controls")},Array.from({length:t}).map(((r,o)=>(0,a.createElement)("li",{key:o,"aria-current":o===e?"step":void 0},(0,a.createElement)(xd,{key:o,icon:(0,a.createElement)($O,null),"aria-label":(0,c.sprintf)((0,c.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)})))))}var UO=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,c.__)("Finish"),onFinish:o,pages:i=[]}){const s=(0,a.useRef)(null),[u,d]=(0,a.useState)(0);var f;(0,a.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[u]),(0,a.useEffect)((()=>{a.Children.count(e)&&Zl()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),a.Children.count(e)&&(i=null!==(f=a.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const p=u>0,m=u<i.length-1,h=()=>{p&&d(u-1)},g=()=>{m&&d(u+1)};return 0===i.length?null:(0,a.createElement)(tR,{className:l()("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,a.createElement)("div",{className:"components-guide__container"},(0,a.createElement)("div",{className:"components-guide__page"},i[u].image,i.length>1&&(0,a.createElement)(WO,{currentPage:u,numberOfPages:i.length,setCurrentPage:d}),i[u].content),(0,a.createElement)("div",{className:"components-guide__footer"},p&&(0,a.createElement)(xd,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,c.__)("Previous")),m&&(0,a.createElement)(xd,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,c.__)("Next")),!m&&(0,a.createElement)(xd,{className:"components-guide__finish-button",variant:"primary",onClick:o},r))))};function GO(e){return(0,a.useEffect)((()=>{Zl()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,a.createElement)("div",{...e})}var KO=(0,a.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return Zl()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,a.createElement)(xd,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const qO=td((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=ed(e,"Item"),{spacedAround:l,size:c}=_k(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Qu(),p=(0,a.useMemo)((()=>f("button"===d&&ck,xk[u]||xk.medium,dk,l&&hk,n)),[d,n,f,u,l]),m=f(uk);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...s}}(e);return(0,a.createElement)("div",{role:n,className:r},(0,a.createElement)(vd,{...o,ref:t}))}),"Item");var YO=qO;var XO=td((function(e,t){const n=ed(e,"InputControlPrefixWrapper");return(0,a.createElement)(gh,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function ZO({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,u.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}var JO=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,a.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,a.createElement)(ZO,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o})));return a.Children.count(e)?(0,a.createElement)("div",{ref:o},i,e):(0,a.createElement)(a.Fragment,null,i)};var QO=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,s=(0,u.useInstanceId)(e);if(!a.Children.count(n))return null;const c=`components-menu-group-label-${s}`,d=l()(r,"components-menu-group",{"has-hidden-separator":i});return(0,a.createElement)("div",{className:d},o&&(0,a.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),(0,a.createElement)("div",{role:"group","aria-labelledby":o?c:void 0},n))};var eD=(0,a.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:s="right",shortcut:c,isSelected:u,role:d="menuitem",suffix:f,...p}=e;return o=l()("components-menu-item__button",o),r&&(n=(0,a.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,a.createElement)("span",{className:"components-menu-item__item"},n),(0,a.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,a.cloneElement)(i,{className:l()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,a.createElement)(xd,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?i:void 0,className:o,...p},(0,a.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,a.createElement)(Kf,{className:"components-menu-item__shortcut",shortcut:c}),!f&&i&&"right"===s&&(0,a.createElement)(ec,{icon:i}),f)}));const tD=()=>{};var nD=function({choices:e=[],onHover:t=tD,onSelect:n,value:r}){return(0,a.createElement)(a.Fragment,null,e.map((e=>{const o=r===e.value;return(0,a.createElement)(eD,{key:e.value,role:"menuitemradio",icon:o&&l_,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};var rD=(0,a.forwardRef)((function({eventToOffset:e,...t},n){return(0,a.createElement)(uT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})}));const oD="root",iD=100,aD=()=>{},sD=()=>{},lD=(0,a.createContext)({activeItem:void 0,activeMenu:oD,setActiveMenu:aD,navigationTree:{items:{},getItem:sD,addItem:aD,removeItem:aD,menus:{},getMenu:sD,addMenu:aD,removeMenu:aD,childMenu:{},traverseMenu:aD,isMenuEmpty:()=>!1}}),cD=()=>(0,a.useContext)(lD);var uD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const dD=(0,a.forwardRef)((function({__nextHasNoMarginBottom:e,className:t,onChange:n,onKeyDown:r,value:o,label:i,placeholder:s=(0,c.__)("Search"),hideLabelFromVision:d=!0,help:f,onClose:p,...m},h){const g=(0,a.useRef)(),v=`components-search-control-${(0,u.useInstanceId)(dD)}`;return(0,a.createElement)(qv,{__nextHasNoMarginBottom:e,label:i,id:v,hideLabelFromVision:d,help:f,className:l()(t,"components-search-control")},(0,a.createElement)("div",{className:"components-search-control__input-wrapper"},(0,a.createElement)("input",{...m,ref:(0,u.useMergeRefs)([g,h]),className:"components-search-control__input",id:v,type:"search",placeholder:s,onChange:e=>n(e.target.value),onKeyDown:r,autoComplete:"off",value:o||""}),(0,a.createElement)("div",{className:"components-search-control__icon"},p?(0,a.createElement)(xd,{icon:Kb,label:(0,c.__)("Close search"),onClick:p}):o?(0,a.createElement)(xd,{icon:Kb,label:(0,c.__)("Reset search"),onClick:()=>{n(""),g.current?.focus()}}):(0,a.createElement)(ky,{icon:uD}))))}));var fD=dD;const pD=hd("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",ah(4),";overflow:hidden;"),mD=hd("div",{target:"eeiismy10"})("margin-top:",ah(6),";margin-bottom:",ah(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",ah(6),";}.components-navigation__group+.components-navigation__group{margin-top:",ah(6),";}"),hD=hd(xd,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),gD=hd("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),vD=hd("span",{target:"eeiismy7"})("height:",ah(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",ah(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),bD=hd(fD,{target:"eeiismy6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),yD=hd(p_,{target:"eeiismy5"})("min-height:",ah(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",ah(2),";padding:",(()=>(0,c.isRTL)()?`${ah(1)} ${ah(4)} ${ah(1)} ${ah(2)}`:`${ah(1)} ${ah(2)} ${ah(1)} ${ah(4)}`),";"),wD=hd("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",ah(2)," ",ah(4),";",ph({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Hp.ui.theme,";color:",Hp.white,";>button,>a{color:",Hp.white,";opacity:1;}}>svg path{color:",Hp.gray[600],";}"),xD=hd("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",ah(1.5)," ",ah(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),ED=hd("span",{target:"eeiismy2"})("display:flex;margin-right:",ah(2),";"),_D=hd("span",{target:"eeiismy1"})("margin-left:",(()=>(0,c.isRTL)()?"0":ah(2)),";margin-right:",(()=>(0,c.isRTL)()?ah(2):"0"),";display:inline-flex;padding:",ah(1)," ",ah(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",$p("animation"),";"),CD=hd(rg,{target:"eeiismy0"})((()=>(0,c.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function SD(){const[e,t]=(0,a.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const kD=()=>{};var TD=function({activeItem:e,activeMenu:t=oD,children:n,className:r,onActivateMenu:o=kD}){const[i,s]=(0,a.useState)(t),[u,d]=(0,a.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=SD(),{nodes:o,getNode:i,addNode:s,removeNode:l}=SD(),[c,u]=(0,a.useState)({}),d=e=>c[e]||[],f=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,c.isRTL)()?"right":"left",m=(e,t=p)=>{f.getMenu(e)&&(d(t),s(e),o(e))},h=(0,a.useRef)(!1);(0,a.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,a.useEffect)((()=>{t!==i&&m(t)}),[t]);const g={activeItem:e,activeMenu:i,setActiveMenu:m,navigationTree:f},v=l()("components-navigation",r),b=Vm({type:"slide-in",origin:u});return(0,a.createElement)(pD,{className:v},(0,a.createElement)("div",{key:i,className:b?l()({[b]:h.current&&u}):void 0},(0,a.createElement)(lD.Provider,{value:g},n)))};var RD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var PD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const MD=(0,a.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:s,navigationTree:u}=cD(),d=l()("components-navigation__back-button",t),f=void 0!==o?u.getMenu(o)?.title:void 0,p=(0,c.isRTL)()?RD:PD;return(0,a.createElement)(hD,{className:d,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,c.isRTL)()?"left":"right";o&&!e.defaultPrevented&&s(o,t)}},(0,a.createElement)(ky,{icon:p}),e||f||(0,c.__)("Back"))}));var ID=MD;const ND=(0,a.createContext)({group:void 0});let OD=0;var DD=function({children:e,className:t,title:n}){const[r]=(0,a.useState)("group-"+ ++OD),{navigationTree:{items:o}}=cD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,a.createElement)(ND.Provider,{value:i},e);const s=`components-navigation__group-title-${r}`,c=l()("components-navigation__group",t);return(0,a.createElement)(ND.Provider,{value:i},(0,a.createElement)("li",{className:c},n&&(0,a.createElement)(yD,{className:"components-navigation__group-title",id:s,level:3},n),(0,a.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function AD(e){const{badge:t,title:n}=e;return(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(CD,{className:"components-navigation__item-title",as:"span"},n),t&&(0,a.createElement)(_D,{className:"components-navigation__item-badge"},t))}const LD=(0,a.createContext)({menu:void 0,search:""}),zD=()=>(0,a.useContext)(LD),FD=e=>Cb()(e).replace(/^\//,"").toLowerCase(),BD=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=cD(),{group:i}=(0,a.useContext)(ND),{menu:s,search:l}=zD();(0,a.useEffect)((()=>{const a=n===s,c=!l||void 0!==t.title&&((e,t)=>-1!==FD(e).indexOf(FD(t)))(t.title,l);return r(e,{...t,group:i,menu:s,_isVisible:a&&c}),()=>{o(e)}}),[n,l])};let jD=0;function VD(e){const{children:t,className:n,title:r,href:o,...i}=e,[s]=(0,a.useState)("item-"+ ++jD);BD(s,e);const{navigationTree:c}=cD();if(!c.getItem(s)?._isVisible)return null;const u=l()("components-navigation__item",n);return(0,a.createElement)(wD,{className:u,...i},t)}const HD=()=>{};var $D=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:s,onClick:u=HD,title:d,icon:f,hideIfTargetMenuEmpty:p,isText:m,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=cD();if(p&&s&&b(s))return null;const y=i&&g===i,w=l()(r,{"is-active":y}),x=(0,c.isRTL)()?PD:RD,E=n?e:{...e,onClick:void 0},_=m?h:{as:xd,href:o,onClick:e=>{s&&v(s),u(e)},"aria-current":y?"page":void 0,...h};return(0,a.createElement)(VD,{...E,className:w},n||(0,a.createElement)(xD,{..._},f&&(0,a.createElement)(ED,null,(0,a.createElement)(ky,{icon:f})),(0,a.createElement)(AD,{title:d,badge:t}),s&&(0,a.createElement)(ky,{icon:x})))};var WD=(0,u.createHigherOrderComponent)((e=>t=>(0,a.createElement)(e,{...t,speak:kb.speak,debouncedSpeak:(0,u.useDebounce)(kb.speak,500)})),"withSpokenMessages");var UD=WD((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=cD(),{menu:s}=zD(),l=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),iD);return()=>{clearTimeout(e)}}),[]),(0,a.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,c.sprintf)((0,c._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const u=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,c.sprintf)((0,c.__)("Search %s"),o?.toLowerCase()).trim();return(0,a.createElement)("div",{className:"components-navigation__menu-title-search"},(0,a.createElement)(bD,{autoComplete:"off",className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),u())},placeholder:f,onClose:u,ref:l,type:"search",value:r}))}));function GD({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,a.useState)(!1),{menu:l}=zD(),u=(0,a.useRef)(null);if(!r)return null;const d=`components-navigation__menu-title-${l}`,f=(0,c.sprintf)((0,c.__)("Search in %s"),r);return(0,a.createElement)(gD,{className:"components-navigation__menu-title"},!i&&(0,a.createElement)(yD,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,a.createElement)("span",{id:d},r),(e||o)&&(0,a.createElement)(vD,null,o,e&&(0,a.createElement)(xd,{isSmall:!0,variant:"tertiary",label:f,onClick:()=>s(!0),ref:u},(0,a.createElement)(ky,{icon:uD})))),i&&(0,a.createElement)("div",{className:Vm({type:"slide-in",origin:"left"})},(0,a.createElement)(UD,{onCloseSearch:()=>{s(!1),setTimeout((()=>{u.current?.focus()}),iD)},onSearch:t,search:n,title:r})))}function KD({search:e}){const{navigationTree:{items:t}}=cD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,a.createElement)(wD,null,(0,a.createElement)(xD,null,(0,c.__)("No results found.")," "))}var qD=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=oD,onBackButtonClick:s,onSearch:c,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,g]=(0,a.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=cD(),r=e.menu||oD;(0,a.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=cD(),b={menu:i,search:h};if(v!==i)return(0,a.createElement)(LD.Provider,{value:b},n);const y=!!c,w=y?d:h,x=y?c:g,E=`components-navigation__menu-title-${i}`,_=l()("components-navigation__menu",r);return(0,a.createElement)(LD.Provider,{value:b},(0,a.createElement)(mD,{className:_},(u||s)&&(0,a.createElement)(ID,{backButtonLabel:t,parentMenu:u,onClick:s}),p&&(0,a.createElement)(GD,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,a.createElement)(fT,null,(0,a.createElement)("ul",{"aria-labelledby":E},n,w&&!f&&(0,a.createElement)(KD,{search:w})))))};const YD=(0,a.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});function XD(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(JD(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var p=u("CHAR"),m=u("NAME"),h=u("PATTERN");if(m||h){var g=p||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=p||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",w=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:w,modifier:u("MODIFIER")||""})}else d("END")}}return a}function ZD(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(tA(e,n,t),n,t)}function JD(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function QD(e){return e&&e.sensitive?"":"i"}function eA(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,p=n.endsWith,m="[".concat(JD(void 0===p?"":p),"]|$"),h="[".concat(JD(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=JD(u(y));else{var w=JD(u(y.prefix)),x=JD(u(y.suffix));if(y.pattern)if(t&&t.push(y),w||x)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";g+="(?:".concat(w,"((?:").concat(y.pattern,")(?:").concat(x).concat(w,"(?:").concat(y.pattern,"))*)").concat(x,")").concat(E)}else g+="(?:".concat(w,"(").concat(y.pattern,")").concat(x,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(w).concat(x,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var _=e[e.length-1],C="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),C||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,QD(n))}(XD(e,n),t,n)}function tA(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return tA(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),QD(n))}(e,t,n):eA(e,t,n)}function nA(e,t){return ZD(t,{decode:decodeURIComponent})(e)}function rA(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var oA={name:"15bx5k",styles:"overflow-x:hidden"};const iA=td((function(e,t){const{initialPath:n,children:r,className:o,...i}=ed(e,"NavigatorProvider"),[s,l]=(0,a.useState)([{path:n}]),c=(0,a.useRef)([]),[u,d]=(0,a.useReducer)(rA,[]),f=(0,a.useRef)([]);(0,a.useEffect)((()=>{f.current=u}),[u]),(0,a.useEffect)((()=>{c.current=s}),[s]);const p=(0,a.useRef)(),m=(0,a.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(p.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=nA(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return p.current&&t&&kf()(t.params,p.current.params)&&t.id===p.current.id?p.current:t})(e);return p.current=t,t}),[u,s]),h=(0,a.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,a.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,a.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,a.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,a.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==nA(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),w=(0,a.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:m?m.params:{},match:m?m.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,m,b,v,y,h,g]),x=Qu(),E=(0,a.useMemo)((()=>x(oA,o)),[o,x]);return(0,a.createElement)(vd,{ref:t,className:E,...i},(0,a.createElement)(YD.Provider,{value:w},r))}),"NavigatorProvider");var aA=iA,sA=window.wp.escapeHtml;var lA={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const cA=td((function(e,t){const n=(0,a.useId)(),{children:r,className:o,path:i,...s}=ed(e,"NavigatorScreen"),l=(0,u.useReducedMotion)(),{location:d,match:f,addScreen:p,removeScreen:m}=(0,a.useContext)(YD),h=f===n,g=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e={id:n,path:(0,sA.escapeAttribute)(i)};return p(e),()=>m(e)}),[n,i,p,m]);const v=Qu(),b=(0,a.useMemo)((()=>v(lA,o)),[o,v]),y=(0,a.useRef)(d);(0,a.useEffect)((()=>{y.current=d}),[d]);const w=d.isInitial&&!d.isBack;(0,a.useEffect)((()=>{if(w||!h||!g.current||y.current.hasRestoredFocus||d.skipFocus)return;const e=g.current.ownerDocument.activeElement;if(g.current.contains(e))return;let t=null;if(d.isBack&&d?.focusTargetSelector&&(t=g.current.querySelector(d.focusTargetSelector)),!t){const e=Jl.focus.tabbable.find(g.current)[0];t=null!=e?e:g.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,d.isBack,d.focusTargetSelector,d.skipFocus]);const x=(0,u.useMergeRefs)([t,g]);if(!h)return null;if(l)return(0,a.createElement)(vd,{ref:x,className:b,...s},r);const E={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},_=!(d.isInitial&&!d.isBack)&&{opacity:0,x:(0,c.isRTL)()&&d.isBack||!(0,c.isRTL)()&&!d.isBack?50:-50},C={animate:E,exit:{delay:0,opacity:0,x:!(0,c.isRTL)()&&d.isBack||(0,c.isRTL)()&&!d.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:_};return(0,a.createElement)(ql.div,{ref:x,className:b,...s,...C},r)}),"NavigatorScreen");var uA=cA;var dA=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,a.useContext)(YD);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const fA=(e,t)=>`[${e}="${t}"]`;var pA=td((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=xd,attributeName:o="id",...i}=ed(e,"NavigatorButton"),s=(0,sA.escapeAttribute)(t),{goTo:l}=dA();return{as:r,onClick:(0,a.useCallback)((e=>{e.preventDefault(),l(s,{focusTargetSelector:fA(o,s)}),n?.(e)}),[l,n,o,s]),...i,[o]:s}}(e);return(0,a.createElement)(vd,{ref:t,...n})}),"NavigatorButton");function mA(e){const{onClick:t,as:n=xd,goToParent:r=!1,...o}=ed(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=dA();return{as:n,onClick:(0,a.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}var hA=td((function(e,t){const n=mA(e);return(0,a.createElement)(vd,{ref:t,...n})}),"NavigatorBackButton");var gA=td((function(e,t){const n=mA({...e,goToParent:!0});return(0,a.createElement)(vd,{ref:t,...n})}),"NavigatorToParentButton");const vA=()=>{};function bA(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var yA=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=vA,isDismissible:i=!0,actions:s=[],politeness:u=bA(t),__unstableHTML:d,onDismiss:f=vA}){!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,kb.speak)(n,t)}),[n,t])}(r,u);const p=l()(e,"components-notice","is-"+t,{"is-dismissible":i});return d&&"string"==typeof n&&(n=(0,a.createElement)(a.RawHTML,null,n)),(0,a.createElement)("div",{className:p},(0,a.createElement)("div",{className:"components-notice__content"},n,(0,a.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},c)=>{let u=r;return"primary"===r||o||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,a.createElement)(xd,{key:c,href:s,variant:u,onClick:s?void 0:i,className:l()("components-notice__action",e)},t)})))),i&&(0,a.createElement)(xd,{className:"components-notice__dismiss",icon:Yl,label:(0,c.__)("Dismiss this notice"),onClick:e=>{e?.preventDefault?.(),f(),o()},showTooltip:!1}))};const wA=()=>{};var xA=function({notices:e,onRemove:t=wA,className:n,children:r}){const o=e=>()=>t(e);return n=l()("components-notice-list",n),(0,a.createElement)("div",{className:n},r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,a.createElement)(yA,{...n,key:e.id,onRemove:o(e.id)},e.content)})))};var EA=function({label:e,children:t}){return(0,a.createElement)("div",{className:"components-panel__header"},e&&(0,a.createElement)("h2",null,e),t)};var _A=(0,a.forwardRef)((function({header:e,className:t,children:n},r){const o=l()(t,"components-panel");return(0,a.createElement)("div",{className:o,ref:r},e&&(0,a.createElement)(EA,{label:e}),n)}));var CA=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const SA=()=>{};const kA=(0,a.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,a.createElement)("h2",{className:"components-panel__body-title"},(0,a.createElement)(xd,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,a.createElement)("span",{"aria-hidden":"true"},(0,a.createElement)(ec,{className:"components-panel__arrow",icon:e?CA:Ty})),n,t&&(0,a.createElement)(ec,{icon:t,className:"components-panel__icon",size:20}))):null)),TA=(0,a.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:s,onToggle:c=SA,opened:d,title:f,scrollAfterOpen:p=!0}=e,[m,h]=Oy(d,{initial:void 0===s||s,fallback:!1}),g=(0,a.useRef)(null),v=(0,u.useReducedMotion)()?"auto":"smooth",b=(0,a.useRef)();b.current=p,sc((()=>{m&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[m,v]);const y=l()("components-panel__body",o,{"is-opened":m});return(0,a.createElement)("div",{className:y,ref:(0,u.useMergeRefs)([g,t])},(0,a.createElement)(kA,{icon:i,isOpened:Boolean(m),onClick:e=>{e.preventDefault();const t=!m;h(t),c(t)},title:f,...n}),"function"==typeof r?r({opened:Boolean(m)}):m&&r)}));var RA=TA;var PA=(0,a.forwardRef)((function({className:e,children:t},n){return(0,a.createElement)("div",{className:l()("components-panel__row",e),ref:n},t)}));const MA=(0,a.createElement)(r.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,a.createElement)(r.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var IA=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:s,preview:c,isColumnLayout:d,withIllustration:f,...p}=e,[m,{width:h}]=(0,u.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=l()("components-placeholder",i,g,f?"has-illustration":null),b=l()("components-placeholder__fieldset",{"is-column-layout":d});return(0,a.createElement)("div",{...p,className:v},f?MA:null,m,s,c&&(0,a.createElement)("div",{className:"components-placeholder__preview"},c),(0,a.createElement)("div",{className:"components-placeholder__label"},(0,a.createElement)(ec,{icon:t}),r),(0,a.createElement)("fieldset",{className:b},!!o&&(0,a.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};const NA=e=>e.every((e=>null!==e.parent));function OA(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!NA(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}var DA=window.wp.htmlEntities;function AA(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,DA.decodeEntities)(e.name)},...AA(e.children||[],t+1)]))}var LA=function({label:e,noOptionLabel:t,onChange:n,selectedId:r,tree:o=[],...i}){const s=(0,a.useMemo)((()=>[t&&{value:"",label:t},...AA(o)].filter((e=>!!e))),[t,o]);return(0,a.createElement)(My,{label:e,options:s,onChange:n,value:r,...i})};function zA({label:e,noOptionLabel:t,authorList:n,selectedAuthorId:r,onChange:o}){if(!n)return null;const i=OA(n);return(0,a.createElement)(LA,{label:e,noOptionLabel:t,onChange:o,tree:i,selectedId:void 0!==r?String(r):void 0,__nextHasNoMarginBottom:!0})}function FA({label:e,noOptionLabel:t,categoriesList:n,selectedCategoryId:r,onChange:o,...i}){const s=(0,a.useMemo)((()=>OA(n)),[n]);return(0,a.createElement)(LA,{label:e,noOptionLabel:t,onChange:o,tree:s,selectedId:void 0!==r?String(r):void 0,...i,__nextHasNoMarginBottom:!0})}function BA(e){return"categoriesList"in e}function jA(e){return"categorySuggestions"in e}var VA=function({authorList:e,selectedAuthorId:t,numberOfItems:n,order:r,orderBy:o,maxItems:i=100,minItems:s=1,onAuthorChange:l,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:f,...p}){return(0,a.createElement)(d_,{spacing:"4",className:"components-query-controls"},[d&&f&&(0,a.createElement)(Iy,{__nextHasNoMarginBottom:!0,key:"query-controls-order-select",label:(0,c.__)("Order by"),value:`${o}/${r}`,options:[{label:(0,c.__)("Newest to oldest"),value:"date/desc"},{label:(0,c.__)("Oldest to newest"),value:"date/asc"},{label:(0,c.__)("A → Z"),value:"title/asc"},{label:(0,c.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==r&&d(n),t!==o&&f(t)}}),BA(p)&&p.categoriesList&&p.onCategoryChange&&(0,a.createElement)(FA,{key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,c.__)("Category"),noOptionLabel:(0,c.__)("All"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),jA(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,a.createElement)(HO,{__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,c.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),l&&(0,a.createElement)(zA,{key:"query-controls-author-select",authorList:e,label:(0,c.__)("Author"),noOptionLabel:(0,c.__)("All"),selectedAuthorId:t,onChange:l}),u&&(0,a.createElement)(lw,{__nextHasNoMarginBottom:!0,key:"query-controls-range-control",label:(0,c.__)("Number of items"),value:n,onChange:u,min:s,max:i,required:!0})])};var HA=(0,a.createContext)({state:null,setState:()=>{}});var $A=(0,a.forwardRef)((function({children:e,value:t,...n},r){const o=(0,a.useContext)(HA),i=o.state===t;return(0,a.createElement)(hO,{ref:r,as:xd,variant:i?"primary":"secondary",value:t,...o,...n},e||t)}));var WA=(0,a.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,...i},s){const l=eO({state:n,baseId:i.id}),c={...l,disabled:r,state:null!=t?t:l.state,setState:null!=o?o:l.setState};return(0,a.createElement)(HA.Provider,{value:c},(0,a.createElement)(rO,{ref:s,as:QC,"aria-label":e,...l,...i}))}));var UA=function e(t){const{label:n,className:r,selected:o,help:i,onChange:s,hideLabelFromVision:c,options:d=[],...f}=t,p=`inspector-radio-control-${(0,u.useInstanceId)(e)}`,m=e=>s(e.target.value);return d?.length?(0,a.createElement)(qv,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:l()(r,"components-radio-control")},(0,a.createElement)(d_,{spacing:1},d.map(((e,t)=>(0,a.createElement)("div",{key:`${p}-${t}`,className:"components-radio-control__option"},(0,a.createElement)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:m,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...f}),(0,a.createElement)("label",{htmlFor:`${p}-${t}`},e.label)))))):null},GA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KA=function(){return KA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},KA.apply(this,arguments)},qA={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},YA={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},XA={width:"20px",height:"20px",position:"absolute"},ZA={top:KA(KA({},qA),{top:"-5px"}),right:KA(KA({},YA),{left:void 0,right:"-5px"}),bottom:KA(KA({},qA),{top:void 0,bottom:"-5px"}),left:KA(KA({},YA),{left:"-5px"}),topRight:KA(KA({},XA),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:KA(KA({},XA),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:KA(KA({},XA),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:KA(KA({},XA),{left:"-10px",top:"-10px",cursor:"nw-resize"})},JA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return GA(t,e),t.prototype.render=function(){return v.createElement("div",{className:this.props.className||"",style:KA(KA({position:"absolute",userSelect:"none"},ZA[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(v.PureComponent),QA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eL=function(){return eL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eL.apply(this,arguments)},tL={width:"auto",height:"auto"},nL=function(e,t,n){return Math.max(Math.min(e,n),t)},rL=function(e,t){return Math.round(e/t)*t},oL=function(e,t){return new RegExp(e,"i").test(t)},iL=function(e){return Boolean(e.touches&&e.touches.length)},aL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},sL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},lL=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},cL=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],uL="__resizable_base__",dL=function(e){function t(t){var n,r,o,i,a=e.call(this,t)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.appendBase=function(){if(!a.resizable||!a.window)return null;var e=a.parentNode;if(!e)return null;var t=a.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(uL):t.className+=uL,e.appendChild(t),t},a.removeBase=function(e){var t=a.parentNode;t&&t.removeChild(e)},a.state={isResizing:!1,width:null!==(r=null===(n=a.propsSize)||void 0===n?void 0:n.width)&&void 0!==r?r:"auto",height:null!==(i=null===(o=a.propsSize)||void 0===o?void 0:o.height)&&void 0!==i?i:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return QA(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||tL},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){var n;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(n=e.propsSize[t])||void 0===n?void 0:n.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return sL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?sL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?sL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&oL("left",i),s=o&&oL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n,r=this.props.scale||1,o=(n=this.props.resizeRatio||1,Array.isArray(n)?n:[n,n]),i=o[0],a=o[1],s=this.state,l=s.direction,c=s.original,u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,m=c.width,h=c.height,g=f||0,v=p||0;return oL("right",l)&&(m=c.width+(e-c.x)*i/r,d&&(h=(m-v)/this.ratio+g)),oL("left",l)&&(m=c.width-(e-c.x)*i/r,d&&(h=(m-v)/this.ratio+g)),oL("bottom",l)&&(h=c.height+(t-c.y)*a/r,d&&(m=(h-g)*this.ratio+v)),oL("top",l)&&(h=c.height-(t-c.y)*a/r,d&&(m=(h-g)*this.ratio+v)),{newWidth:m,newHeight:h}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(i){var m=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,g=(l-p)/this.ratio+f,v=(c-p)/this.ratio+f,b=Math.max(l,m),y=Math.min(c,h),w=Math.max(u,g),x=Math.min(d,v);e=nL(e,b,y),t=nL(t,w,x)}else e=nL(e,l,c),t=nL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&iL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:eL(eL({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&iL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=iL(e)?e.touches[0].clientX:e.clientX,l=iL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,m=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=lL(r,e.width,t,n),o=lL(o,e.height,t,n),i=lL(i,e.width,t,n),a=lL(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(m,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=h.maxWidth,o=h.maxHeight,i=h.minWidth,a=h.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=aL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=aL(v,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=w.newWidth,v=w.newHeight,this.props.grid){var x=rL(b,this.props.grid[0]),E=rL(v,this.props.grid[1]),_=this.props.snapGap||0;b=0===_||Math.abs(x-b)<=_?x:b,v=0===_||Math.abs(E-v)<=_?E:v}var C={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/m.width*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(p.endsWith("%"))v=v/m.height*100+"%";else if(p.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var S={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?S.flexBasis=S.width:"column"===this.flexDir&&(S.flexBasis=S.height);var k=this.state.width!==S.width,T=this.state.height!==S.height,R=this.state.flexBasis!==S.flexBasis,P=k||T||R;P&&(0,Dt.flushSync)((function(){t.setState(S)})),this.props.onResize&&P&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t,n,r=this.state,o=r.isResizing,i=r.direction,a=r.original;if(o&&this.resizable){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,s),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(n=this.props.size.height)&&void 0!==n?n:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:eL(eL({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,n;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(n=e.height)&&void 0!==n?n:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?v.createElement(JA,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return v.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==cL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=eL(eL(eL({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return v.createElement(r,eL({style:n,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&v.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(v.PureComponent);const fL=()=>{},pL={bottom:"bottom",corner:"corner"};function mL({axis:e,fadeTimeout:t=180,onResize:n=fL,position:r=pL.bottom,showPx:o=!1}){const[i,s]=(0,u.useResizeObserver)(),l=!!e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),{width:m,height:h}=s,g=(0,a.useRef)(h),v=(0,a.useRef)(m),b=(0,a.useRef)(),y=(0,a.useCallback)((()=>{b.current&&window.clearTimeout(b.current),b.current=window.setTimeout((()=>{l||(d(!1),p(!1))}),t)}),[t,l]);(0,a.useEffect)((()=>{if(!(null!==m||null!==h))return;const e=m!==v.current,t=h!==g.current;if(e||t){if(m&&!v.current&&h&&!g.current)return v.current=m,void(g.current=h);e&&(d(!0),v.current=m),t&&(p(!0),g.current=h),n({width:m,height:h}),y()}}),[m,h,n,y]);const w=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=pL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===pL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:h,moveX:c,moveY:f,position:r,showPx:o,width:m});return{label:w,resizeListener:i}}const hL=hd("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),gL=hd("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),vL=hd("div",{target:"e1wq7y4k1"})("background:",Hp.gray[900],";border-radius:2px;box-sizing:border-box;font-family:",Fv("default.fontFamily"),";font-size:12px;color:",Hp.ui.textDark,";padding:4px 8px;position:relative;"),bL=hd(rg,{target:"e1wq7y4k0"})("&&&{color:",Hp.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const yL=(0,a.forwardRef)((function({label:e,position:t=pL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===pL.bottom,l=t===pL.corner;if(!i)return null;let u={opacity:i?1:void 0,zIndex:n},d={};return s&&(u={...u,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(u={...u,position:"absolute",top:4,right:(0,c.isRTL)()?void 0:4,left:(0,c.isRTL)()?4:void 0}),(0,a.createElement)(gL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:u,...r},(0,a.createElement)(vL,{className:"components-resizable-tooltip__tooltip",style:d},(0,a.createElement)(bL,{as:"span"},e)))}));var wL=yL;const xL=()=>{};const EL=(0,a.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=xL,position:s=pL.bottom,showPx:c=!0,zIndex:u=1e3,...d},f){const{label:p,resizeListener:m}=mL({axis:e,fadeTimeout:n,onResize:i,showPx:c,position:s});if(!r)return null;const h=l()("components-resize-tooltip",t);return(0,a.createElement)(hL,{"aria-hidden":"true",className:h,ref:f,...d},m,(0,a.createElement)(wL,{"aria-hidden":d["aria-hidden"],label:p,position:s,ref:o,zIndex:u}))}));var _L=EL;const CL="components-resizable-box__handle",SL="components-resizable-box__side-handle",kL="components-resizable-box__corner-handle",TL={top:l()(CL,SL,"components-resizable-box__handle-top"),right:l()(CL,SL,"components-resizable-box__handle-right"),bottom:l()(CL,SL,"components-resizable-box__handle-bottom"),left:l()(CL,SL,"components-resizable-box__handle-left"),topLeft:l()(CL,kL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(CL,kL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(CL,kL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(CL,kL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},RL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},PL={top:RL,right:RL,bottom:RL,left:RL,topLeft:RL,topRight:RL,bottomRight:RL,bottomLeft:RL};var ML=(0,a.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},s){return(0,a.createElement)(dL,{className:l()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:TL,handleStyles:PL,ref:s,...i},t,r&&(0,a.createElement)(_L,{...o}))}));var IL=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==a.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,a.createElement)(o,{className:"components-responsive-wrapper"},(0,a.createElement)("div",null,(0,a.cloneElement)(n,{className:l()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})))};const NL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vmin|vmax|vh|vw)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};var OL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i}){const s=(0,a.useRef)(),[l,c]=(0,a.useState)(0),[d,f]=(0,a.useState)(0);function p(i=!1){if(!function(){try{return!!s.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:l,ownerDocument:c}=s.current;if(!i&&null!==l?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,a.createElement)("html",{lang:c.documentElement.lang,className:n},(0,a.createElement)("head",null,(0,a.createElement)("title",null,t),(0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,a.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,a.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,a.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${NL.toString()})();`}}),o.map((e=>(0,a.createElement)("script",{key:e,src:e})))));l.open(),l.write("<!DOCTYPE html>"+(0,a.renderToString)(u)),l.close()}return(0,a.useEffect)((()=>{function e(){p(!1)}function t(e){const t=s.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(c(n.width),f(n.height))}p();const n=s.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.addEventListener("message",t)}}),[]),(0,a.useEffect)((()=>{p()}),[t,r,o]),(0,a.useEffect)((()=>{p(!0)}),[e,n]),(0,a.createElement)("iframe",{ref:(0,u.useMergeRefs)([s,(0,u.useFocusableIframe)()]),title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})};const DL=(0,a.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:s=null,explicitDismiss:u=!1,onDismiss:d,listRef:f},p){function m(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,kb.speak)(n,t)}),[n,t])}(n,r),(0,a.useEffect)((()=>{const e=setTimeout((()=>{u||(d?.(),i?.())}),1e4);return()=>clearTimeout(e)}),[d,i,u]);const h=l()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!u});o&&o.length>1&&("undefined"!=typeof process&&process.env,o=[o[0]]);const g=l()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,a.createElement)("div",{ref:p,className:h,onClick:u?void 0:m,tabIndex:0,role:u?"":"button",onKeyPress:u?void 0:m,"aria-label":u?"":(0,c.__)("Dismiss this notice")},(0,a.createElement)("div",{className:g},s&&(0,a.createElement)("div",{className:"components-snackbar__icon"},s),t,o.map((({label:e,onClick:t,url:n},r)=>(0,a.createElement)(xd,{key:r,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),u&&(0,a.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m},"✕")))}));var AL=DL;const LL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}};var zL=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,a.useRef)(null),i=(0,u.useReducedMotion)();t=l()("components-snackbar-list",t);const s=e=>()=>r?.(e.id);return(0,a.createElement)("div",{className:t,tabIndex:-1,ref:o},n,(0,a.createElement)(Ym,null,e.map((e=>{const{content:t,...n}=e;return(0,a.createElement)(ql.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?void 0:LL},(0,a.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,a.createElement)(AL,{...n,onRemove:s(e),listRef:o},e.content)))}))))};const FL=ap`
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
 `,BL=hd("svg",{target:"ea4tfvq2"})("width:",jh.spinnerSize,"px;height:",jh.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Hp.ui.theme,";overflow:visible;opacity:1;background-color:transparent;"),jL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},VL=hd("circle",{target:"ea4tfvq1"})(jL,";stroke:",Hp.gray[300],";"),HL=hd("path",{target:"ea4tfvq0"})(jL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",FL,";");var $L=(0,a.forwardRef)((function({className:e,...t},n){return(0,a.createElement)(BL,{className:l()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,a.createElement)(VL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,a.createElement)(HL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var WL=td((function(e,t){const n=IS(e);return(0,a.createElement)(vd,{...n,ref:t})}),"Surface");const UL=({tabId:e,children:t,selected:n,...r})=>(0,a.createElement)(xd,{role:"tab",tabIndex:n?void 0:-1,"aria-selected":n,id:e,__experimentalIsFocusable:!0,...r},t),GL=(0,a.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:s="is-active",onSelect:c},d)=>{var f;const p=(0,u.useInstanceId)(GL,"tab-panel"),[m,h]=(0,a.useState)(),g=(0,a.useCallback)((e=>{h(e),c?.(e)}),[c]),v=n.find((({name:e})=>e===m)),b=`${p}-${null!==(f=v?.name)&&void 0!==f?f:"none"}`;return(0,a.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,o,g]),(0,a.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g]),(0,a.createElement)("div",{className:e,ref:d},(0,a.createElement)(fT,{role:"tablist",orientation:i,onNavigate:r?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},n.map((e=>(0,a.createElement)(UL,{className:l()("components-tab-panel__tabs-item",e.className,{[s]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>g(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),v&&(0,a.createElement)("div",{key:b,"aria-labelledby":b,role:"tabpanel",id:`${b}-view`,className:"components-tab-panel__tab-content"},t(v)))}));var KL=GL;const qL=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,className:l,onChange:c,type:d="text",...f}=e,p=`inspector-text-control-${(0,u.useInstanceId)(qL)}`;return(0,a.createElement)(qv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:l},(0,a.createElement)("input",{className:"components-text-control__input",type:d,id:p,value:i,onChange:e=>c(e.target.value),"aria-describedby":s?p+"__help":void 0,ref:t,...f}))}));var YL=qL;const XL=ip("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",jh.radiusBlockUi,";border:",jh.borderWidth," solid ",Hp.ui.border,";",""),ZL=ip("border-color:",Hp.ui.theme,";box-shadow:0 0 0 calc( ",jh.borderWidthFocus," - ",jh.borderWidth," ) ",Hp.ui.theme,";outline:2px solid transparent;","");var JL={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const QL=ip("display:block;font-family:",Fv("default.fontFamily"),";padding:6px 8px;",XL,";font-size:",Fv("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${JL["small"]})`,"{font-size:",Fv("default.fontSize"),";line-height:normal;}&:focus{",ZL,";}&::-webkit-input-placeholder{color:",Hp.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Hp.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Hp.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Hp.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Hp.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Hp.ui.lightGrayPlaceholder,";}}","");const ez=hd("textarea",{target:"e1w5nnrk0"})("width:100%;",QL,";");var tz=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:l,rows:c=4,className:d,...f}=t,p=`inspector-textarea-control-${(0,u.useInstanceId)(e)}`;return(0,a.createElement)(qv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:d},(0,a.createElement)(ez,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,...f}))};var nz=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,a.createElement)(a.Fragment,null,t);const o=new RegExp(`(${Pb(r)})`,"gi");return(0,a.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,a.createElement)("mark",null)})};var rz=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));var oz=function(e){const{children:t}=e;return(0,a.createElement)("div",{className:"components-tip"},(0,a.createElement)(ky,{icon:rz}),(0,a.createElement)("p",null,t))};var iz=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,u.useInstanceId)(e)}`,d=Qu()("components-toggle-control",i,!t&&ip({marginBottom:ah(3)},"",""));let f,p;return o&&("function"==typeof o?void 0!==r&&(p=o(r)):p=o,p&&(f=c+"__help")),(0,a.createElement)(qv,{id:c,help:p,className:d,__nextHasNoMarginBottom:!0},(0,a.createElement)(db,{justify:"flex-start",spacing:3},(0,a.createElement)(LO,{id:c,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,a.createElement)(oh,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};const az=(0,a.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,a.createElement)(TO,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,a.createElement)(ec,{icon:n}))}));var sz=az,lz=(0,v.createContext)(!0),cz=Object.defineProperty,uz=Object.defineProperties,dz=Object.getOwnPropertyDescriptors,fz=Object.getOwnPropertySymbols,pz=Object.prototype.hasOwnProperty,mz=Object.prototype.propertyIsEnumerable,hz=(e,t,n)=>t in e?cz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gz=(e,t)=>{for(var n in t||(t={}))pz.call(t,n)&&hz(e,n,t[n]);if(fz)for(var n of fz(t))mz.call(t,n)&&hz(e,n,t[n]);return e},vz=(e,t)=>uz(e,dz(t)),bz=(e,t)=>{var n={};for(var r in e)pz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&fz)for(var r of fz(e))t.indexOf(r)<0&&mz.call(e,r)&&(n[r]=e[r]);return n},yz=Object.defineProperty,wz=Object.defineProperties,xz=Object.getOwnPropertyDescriptors,Ez=Object.getOwnPropertySymbols,_z=Object.prototype.hasOwnProperty,Cz=Object.prototype.propertyIsEnumerable,Sz=(e,t,n)=>t in e?yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kz=(e,t)=>{for(var n in t||(t={}))_z.call(t,n)&&Sz(e,n,t[n]);if(Ez)for(var n of Ez(t))Cz.call(t,n)&&Sz(e,n,t[n]);return e},Tz=(e,t)=>wz(e,xz(t));function Rz(...e){}function Pz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Mz(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Iz(e){return e}function Nz(...e){for(const t of e)if(void 0!==t)return t}function Oz(e){return function(e){return!!e&&!!(0,v.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var Dz,Az="undefined"!=typeof window&&!!(null==(Dz=window.document)?void 0:Dz.createElement);function Lz(e){return e?e.ownerDocument||e:document}function zz(e,t=!1){const{activeElement:n}=Lz(e);if(!(null==n?void 0:n.nodeName))return null;if("IFRAME"===n.tagName&&n.contentDocument)return zz(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Lz(n).getElementById(e);if(t)return t}}return n}function Fz(e,t){return e===t||e.contains(t)}function Bz(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==jz.indexOf(e.type)}var jz=["button","color","file","image","reset","submit"];function Vz(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Hz(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function $z(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return $z(e.parentElement)||document.scrollingElement||document.body}var Wz=gz({},b),Uz=Wz.useId,Gz=(Wz.useDeferredValue,Wz.useInsertionEffect),Kz=Az?v.useLayoutEffect:v.useEffect;function qz(e){const t=(0,v.useRef)(e);return Kz((()=>{t.current=e})),t}function Yz(e){const t=(0,v.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Gz?Gz((()=>{t.current=e})):t.current=e,(0,v.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Xz(...e){return(0,v.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function Zz(e){if(Uz){const t=Uz();return e||t}const[t,n]=(0,v.useState)(e);return Kz((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Jz(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,v.useState)((()=>n(t)));return Kz((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}Symbol("setNextState");function Qz(e){return Yz("function"==typeof e?e:()=>e)}function eF(e,t,n=[]){const r=(0,v.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return vz(gz({},e),{wrapElement:r})}var tF=o(7557);function nF(e){return v.forwardRef(((t,n)=>e(gz({ref:n},t))))}function rF(e){const t=nF(e);return v.memo(t)}function oF(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=bz(n,["as","wrapElement","render"]);let s;const l=Xz(t.ref,Oz(i));if(r&&"string"!=typeof r)s=(0,tF.jsx)(r,vz(gz({},a),{render:i}));else if(v.isValidElement(i)){const e=vz(gz({},i.props),{ref:l});s=v.cloneElement(i,function(e,t){const n=gz({},e);for(const r in t){if(!Pz(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?gz(gz({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(a,e))}else if(i)s=i(a);else if("function"==typeof t.children){const e=a,{children:n}=e,r=bz(e,["children"]);s=t.children(r)}else s=r?(0,tF.jsx)(r,gz({},a)):(0,tF.jsx)(e,gz({},a));return o?o(s):s}function iF(e){return(t={})=>{const n=e(t),r={};for(const e in n)Pz(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function aF(e){return Boolean(e.currentTarget&&!Fz(e.currentTarget,e.target))}function sF(e){return e.target===e.currentTarget}function lF(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=Tz(kz({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function cF(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function uF(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function dF(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(dF(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var fF="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function pF(e){return!!Vz(e,fF)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(Vz(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function mF(e){const t=zz(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function hF(e){!function(e){const t=zz(e);if(!t)return!1;if(Fz(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}(e)&&pF(e)&&e.focus()}var gF=Az&&!!Az&&/mac|iphone|ipad|ipod/i.test(navigator.platform)&&/apple/i.test(navigator.vendor),vF=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function bF(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function yF(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function wF(e,t){return Yz((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var xF=!0;function EF(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(xF=!1))}function _F(e){e.metaKey||e.ctrlKey||e.altKey||(xF=!0)}var CF=iF((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=bz(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,v.useRef)(null);(0,v.useEffect)((()=>{n&&(dF("mousedown",EF,!0),dF("keydown",_F,!0))}),[n]),gF&&(0,v.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!bF(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&a.disabled,c=!!l&&!r,[u,d]=(0,v.useState)(!1);(0,v.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,v.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{pF(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=wF(a.onKeyPressCapture,l),p=wF(a.onMouseDownCapture,l),m=wF(a.onClickCapture,l),h=a.onMouseDown,g=Yz((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!gF)return;if(aF(e))return;if(!Bz(t)&&!bF(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),uF(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||hF(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),null==i||i(e),e.defaultPrevented)return;if(!n)return;const r=e.currentTarget;r&&mF(r)&&d(!0)},y=a.onKeyDownCapture,w=Yz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!sF(e))return;const t=e.currentTarget;queueMicrotask((()=>b(e,t)))})),x=a.onFocusCapture,E=Yz((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!n)return;if(!sF(e))return void d(!1);const t=e.currentTarget,r=()=>b(e,t);xF||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:vF.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):uF(e.target,"focusout",r)})),_=a.onBlur,C=Yz((e=>{null==_||_(e),n&&function(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Fz(n,r)}(e)&&d(!1)})),S=(0,v.useContext)(lz),k=Yz((e=>{n&&o&&e&&S&&queueMicrotask((()=>{mF(e)||pF(e)&&e.focus()}))})),T=Jz(s,a.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),P=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=c?gz({pointerEvents:"none"},a.style):a.style;return a=vz(gz({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:Xz(s,k,a.ref),style:M,tabIndex:yF(n,c,R,P,a.tabIndex),disabled:!(!P||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:f,onClickCapture:m,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:w,onFocusCapture:E,onBlur:C})}));nF((e=>oF("div",e=CF(e))));function SF(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Bz(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Bz(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var kF=iF((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=bz(t,["clickOnEnter","clickOnSpace"]);const i=(0,v.useRef)(null),a=Jz(i,o.as),s=o.type,[l,c]=(0,v.useState)((()=>!!a&&Bz({tagName:a,type:s})));(0,v.useEffect)((()=>{i.current&&c(Bz(i.current))}),[]);const[u,d]=(0,v.useState)(!1),f=(0,v.useRef)(!1),p="data-command"in o,m=o.onKeyDown,h=Yz((e=>{null==m||m(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(!sF(e))return;if(Hz(t))return;if(t.isContentEditable)return;const i=n&&"Enter"===e.key,a=r&&" "===e.key,s="Enter"===e.key&&!n,l=" "===e.key&&!r;if(s||l)e.preventDefault();else if(i||a){const n=SF(e);if(i){if(!n){e.preventDefault();const n=e,{view:r}=n,o=bz(n,["view"]),i=()=>cF(t,o);Az&&/firefox\//i.test(navigator.userAgent)?uF(t,"keyup",i):queueMicrotask(i)}}else a&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),g=o.onKeyUp,b=Yz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(e.metaKey)return;const t=r&&" "===e.key;if(f.current&&t&&(f.current=!1,!SF(e))){d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=bz(n,["view"]);queueMicrotask((()=>cF(t,o)))}}));return o=vz(gz({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:Xz(i,o.ref),onKeyDown:h,onKeyUp:b}),o=CF(o)}));nF((e=>oF("button",e=kF(e))));var TF=(0,v.createContext)(void 0),RF=iF((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=Iz,element:i}=t,a=bz(t,["store","shouldRegisterItem","getItem","element"]);const s=(0,v.useContext)(TF);n=n||s;const l=Zz(a.id),c=(0,v.useRef)(i);return(0,v.useEffect)((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),a=vz(gz({},a),{ref:Xz(c,a.ref)})}));nF((e=>oF("div",RF(e))));function PF(e,t){return t&&e.item(t)||null}var MF=Symbol("FOCUS_SILENTLY");function IF(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var NF=(0,v.createContext)(void 0),OF=(0,v.createContext)(void 0),DF=(0,v.createContext)(void 0);function AF(e,t){const n=e.__unstableInternals;return function(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}(n,"Invalid store"),n[t]}function LF(e,...t){let n=e,r=n,o=Symbol(),i=!1;const a=new Set,s=new Set,l=new Set,c=new Set,u=new WeakMap,d=new WeakMap,f=(e,t,n=!1)=>{const r=n?c:l;return r.add(t),d.set(t,e),()=>{var e;null==(e=u.get(t))||e(),u.delete(t),d.delete(t),r.delete(t)}},p=(e,i)=>{if(!Pz(n,e))return;const s=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(i,n[e]);if(s===n[e])return;t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,s)}));const f=n;n=Tz(kz({},n),{[e]:s});const p=Symbol();o=p,a.add(e);const m=(t,r,o)=>{var i;const a=d.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=u.get(t))||i(),u.set(t,t(n,r)))};l.forEach((e=>m(e,f))),queueMicrotask((()=>{if(o!==p)return;const e=n;c.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{if(i)return Rz;if(!t.length)return Rz;i=!0;const e=(r=n,Object.keys(r)).map((e=>Mz(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&Pz(r,e))return BF(t,[e],(t=>p(e,t[e])))})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map(FF);return Mz(...e,...o,...a,(()=>{i=!1}))},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(u.set(t,t(n,n)),f(e,t)),batch:(e,t)=>(u.set(t,t(n,r)),f(e,t,!0)),pick:e=>LF(function(e,t){const n={};for(const r of t)Pz(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>LF(function(e,t){const n=kz({},e);for(const e of t)Pz(n,e)&&delete n[e];return n}(n,e),m)}};return m}function zF(e,...t){if(e)return AF(e,"setup")(...t)}function FF(e,...t){if(e)return AF(e,"init")(...t)}function BF(e,...t){if(e)return AF(e,"sync")(...t)}function jF(e,...t){if(e)return AF(e,"batch")(...t)}var VF=o(635),{useSyncExternalStore:HF}=VF,$F=()=>()=>{},WF=!1;function UF(e,t=Iz){const n=v.useCallback((t=>e?function(e,...t){if(e)return AF(e,"subscribe")(...t)}(e,null,t):$F()),[e]),r=()=>{if(!e)return;const n=e.getState(),r="function"==typeof t?t:null,o="string"==typeof t?t:null;return r?r(n):o&&Pz(n,o)?n[o]:void 0};return HF(n,r,r)}function GF(e,t,n,r){const o=Pz(t,n)?t[n]:void 0,i=qz({value:o,setValue:r?t[r]:void 0});Kz((()=>{let t=!1;return queueMicrotask((()=>{t=!0})),BF(e,[n],((e,r)=>{const{value:o,setValue:a}=i.current;a&&e[n]!==r[n]&&e[n]!==o&&function(e,t=!0){if(WF||!t)return void e();WF=!0;const n=console.error;try{(0,Dt.flushSync)(e)}finally{console.error=n,WF=!1}}((()=>a(e[n])),t)}))}),[e,n]),Kz((()=>jF(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))),[e,n,o])}function KF(e){const t=function(e){const t=(0,v.useRef)();return void 0===t.current&&(t.current=e()),t.current}(e);Kz((()=>FF(t)),[t]);const n=v.useCallback((e=>UF(t,e)),[t]);return v.useMemo((()=>vz(gz({},t),{useState:n})),[t,n])}function qF(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function YF(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=$z(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=PF(t,l))?void 0:o.element;if(!a)continue;const u=qF(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var XF=iF((e=>{var t,n=e,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,getItem:s,"aria-setsize":l,"aria-posinset":c}=n,u=bz(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const d=(0,v.useContext)(DF);r=r||d;const f=Zz(u.id),p=(0,v.useRef)(null),m=(0,v.useContext)(OF),h=UF(r,(e=>o||((null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),g=u.disabled&&!u.accessibleWhenDisabled,b=(0,v.useCallback)((e=>{const t=vz(gz({},e),{id:f||e.id,rowId:h,disabled:!!g});return s?s(t):t}),[f,h,g,s]),y=u.onFocus,w=(0,v.useRef)(!1),x=Yz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(aF(e))return;if(!f)return;if(!r)return;const{activeId:t,virtualFocus:n,baseElement:o}=r.getState();if(function(e,t){return!sF(e)&&IF(t,e.target)}(e,r))return;if(t!==f&&r.setActiveId(f),!n)return;if(!sF(e))return;if((i=e.currentTarget).isContentEditable||Hz(i)||"INPUT"===i.tagName&&!Bz(i))return;var i;if(!o)return;w.current=!0;e.relatedTarget===o||IF(r,e.relatedTarget)?function(e){e[MF]=!0,e.focus()}(o):o.focus()})),E=u.onBlurCapture,_=Yz((e=>{if(null==E||E(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&w.current&&(w.current=!1,e.preventDefault(),e.stopPropagation())})),C=u.onKeyDown,S=Qz(i),k=Qz(a),T=Yz((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!sF(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(f),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1),End:()=>!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1),PageUp:()=>YF(t,r,null==r?void 0:r.up,!0),PageDown:()=>YF(t,r,null==r?void 0:r.down)}[e.key];if(l){const t=l();if(S(e)||void 0!==t){if(!k(e))return;e.preventDefault(),r.move(t)}}})),R=UF(r,(e=>e.baseElement||void 0)),P=(0,v.useMemo)((()=>({id:f,baseElement:R})),[f,R]);u=eF(u,(e=>(0,tF.jsx)(NF.Provider,{value:P,children:e})),[P]);const M=UF(r,(e=>e.activeId===f)),I=UF(r,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,v.useState)(n);return Kz((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(p,u);let O;M&&(!function(e){return"option"===e||"treeitem"===e}(N)?I&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(N)&&(O=!0):O=!0);const D=UF(r,(e=>null!=l?l:(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),A=UF(r,(e=>{if(null!=c)return c;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===h));return m.ariaPosInSet+t.findIndex((e=>e.id===f))})),L=null==(t=UF(r,(e=>!e.renderedItems.length||!e.virtualFocus&&e.activeId===f)))||t;return u=vz(gz({id:f,"aria-selected":O,"data-active-item":M?"":void 0},u),{ref:Xz(p,u.ref),tabIndex:L?u.tabIndex:-1,onFocus:x,onBlurCapture:_,onKeyDown:T}),u=kF(u),u=RF(vz(gz({store:r},u),{getItem:b,shouldRegisterItem:!!f&&u.shouldRegisterItem})),vz(gz({},u),{"aria-setsize":D,"aria-posinset":A})}));rF((e=>oF("button",XF(e))));var ZF=iF((e=>{var t=e,{store:n}=t,r=bz(t,["store"]);return r=XF(gz({store:n},r))})),JF=rF((e=>oF("button",ZF(e))));var QF=(0,a.createContext)(void 0);var eB=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useContext)(QF),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof process&&process.env,null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,a.createElement)(t,{...s},e):i?e(s):null;const l=i?e:t&&(0,a.createElement)(t,null);return(0,a.createElement)(JF,{...s,store:o,render:l})}));var tB=({children:e,className:t})=>(0,a.createElement)("div",{className:t},e);var nB=(0,a.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:s,...c},u){return(0,a.useContext)(QF)?(0,a.createElement)(eB,{className:l()("components-toolbar-button",t),...r,...c,ref:u},(t=>(0,a.createElement)(xd,{label:s,isPressed:o,disabled:i,...t},e))):(0,a.createElement)(tB,{className:n},(0,a.createElement)(xd,{ref:u,icon:c.icon,label:s,shortcut:c.shortcut,"data-subscript":c.subscript,onClick:e=>{e.stopPropagation(),c.onClick&&c.onClick(e)},className:l()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...c},e))}));var rB=({className:e,children:t,...n})=>(0,a.createElement)("div",{className:e,...n},t);var oB=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,a.createElement)(gT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,a.useContext)(QF)?(0,a.createElement)(eB,{...t},r):r(t)};var iB=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const s=(0,a.useContext)(QF);if(!(e&&e.length||t))return null;const c=l()(s?"components-toolbar-group":"components-toolbar",n);let u=e;return Array.isArray(u[0])||(u=[u]),r?(0,a.createElement)(oB,{label:o,controls:u,className:c,children:t,...i}):(0,a.createElement)(rB,{className:c,...i},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,a.createElement)(nB,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null,...e}))))),t)};function aB(e,t){return GF(e,t,"items","setItems"),e}function sB(e,t){return GF(e=aB(e,t),t,"activeId","setActiveId"),GF(e,t,"includesBaseElement"),GF(e,t,"virtualFocus"),GF(e,t,"orientation"),GF(e,t,"rtl"),GF(e,t,"focusLoop"),GF(e,t,"focusWrap"),GF(e,t,"focusShift"),e}function lB(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function cB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Nz(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Nz(null==n?void 0:n.renderedItems,[])},a=LF({renderedItems:i.renderedItems}),s=LF(i,e.store),l=()=>{const e=lB(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};zF(s,(()=>jF(a,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame(l);if("function"!=typeof IntersectionObserver)return;const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Lz(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(l))}),{root:r});return e.renderedItems.forEach((e=>{e.element&&o.observe(e.element)})),()=>{cancelAnimationFrame(n),o.disconnect()}}))));const c=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=kz(kz({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},u=e=>c(e,(e=>s.setState("items",e)),!0);return Tz(kz({},s),{registerItem:u,renderItem:e=>Mz(u(e),c(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=s.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null}})}function uB(e){const t=[];for(const n of e)t.push(...n);return t}function dB(e){return e.slice().reverse()}var fB={id:null};function pB(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function mB(e,t){return e.filter((e=>e.rowId===t))}function hB(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function gB(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function vB(e,t,n){const r=gB(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?pB(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function bB(e){const t=hB(e),n=gB(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(Tz(kz({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function yB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=cB(e),o=Nz(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=LF(Tz(kz({},r.getState()),{activeId:o,baseElement:Nz(null==n?void 0:n.baseElement,null),includesBaseElement:Nz(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:Nz(null==n?void 0:n.moves,0),orientation:Nz(e.orientation,null==n?void 0:n.orientation,"both"),rtl:Nz(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:Nz(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:Nz(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:Nz(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:Nz(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);zF(i,(()=>BF(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=pB(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?dB(e):e;if(null==s)return null==(o=pB(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=pB(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=mB(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(m?t||"horizontal":t),y=c&&c!==b,w=m&&u&&u!==b;if(n=n||!m&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[fB]:[],...e.slice(0,r)]}(w&&!n?f:mB(f,p.rowId),s,n),t=pB(e,s);return null==t?void 0:t.id}if(w){const e=pB(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const x=pB(v,s);return!x&&n?null:null==x?void 0:x.id};return Tz(kz(kz({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=pB(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=pB(dB(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=pB(n))?void 0:t.rowId)&&o;return a(dB(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=bB(uB(vB(hB(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=bB(dB(uB(vB(hB(n),t,s))));return a(l,"vertical",o,e)}})}function wB(e={}){const t={},n=KF((()=>function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return yB(Tz(kz({},e),{orientation:Nz(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:Nz(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}(gz(gz({},e),t))));return function(e,t){return sB(e,t)}(n,e)}var xB=(0,v.createContext)(void 0);function EB(e){return e.some((e=>!!e.rowId))}function _B(e,t,n){return Yz((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=PF(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!sF(e))return!1;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(e))return!1;const n=e.target;if(!n)return!0;if(Hz(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=EB(t.renderedItems),r=null===t.activeId,o=n&&!r,i="Home"===e.key||"End"===e.key;if(!o&&i)return!1}return!e.isPropagationStopped()}(r,i))return;const s=r,{view:l}=s,c=bz(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var CB=iF((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=bz(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=(0,v.useRef)(null),l=function(e){const[t,n]=(0,v.useState)(!1),r=(0,v.useCallback)((()=>n(!0)),[]),o=e.useState((t=>PF(e,t.activeId)));return(0,v.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),c=n.useState("moves");(0,v.useEffect)((()=>{var e;if(!c)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=PF(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(kz({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[c,r,o]),Kz((()=>{if(!r)return;if(!c)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=s.current;s.current=null,o&&lF(o,{relatedTarget:e}),mF(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=Tz(kz({},t),{bubbles:!0});e.dispatchEvent(new FocusEvent("focusin",o))}(e,{relatedTarget:o}):e.focus()}),[c,r]);const u=n.useState("activeId"),d=n.useState("virtualFocus");Kz((()=>{var e;if(!r)return;if(!d)return;const t=s.current;if(s.current=null,!t)return;lF(t,{relatedTarget:(null==(e=PF(n,u))?void 0:e.element)||zz(t)})}),[u,d,r]);const f=_B(n,a.onKeyDownCapture,s),p=_B(n,a.onKeyUpCapture,s),m=a.onFocusCapture,h=Yz((e=>{if(null==m||m(e),e.defaultPrevented)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[MF];return delete e[MF],t}(e.currentTarget);sF(e)&&o&&(e.stopPropagation(),s.current=r)})),g=a.onFocus,b=Yz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?sF(e)&&!IF(n,t)&&queueMicrotask(l):sF(e)&&n.setActiveId(null)})),y=a.onBlurCapture,w=Yz((e=>{var t;if(null==y||y(e),e.defaultPrevented)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=PF(n,o))?void 0:t.element,a=e.relatedTarget,l=IF(n,a),c=s.current;if(s.current=null,sF(e)&&l)a===i?c&&c!==a&&lF(c,e):i&&lF(i,e),e.stopPropagation();else{!IF(n,e.target)&&i&&lF(i,e)}})),x=a.onKeyDown,E=Qz(i),_=Yz((e=>{var t;if(null==x||x(e),e.defaultPrevented)return;if(!sF(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=PF(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=EB(i),d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(uB(dB(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!E(e))return;e.preventDefault(),n.move(t)}}}));a=eF(a,(e=>(0,tF.jsx)(DF.Provider,{value:n,children:e})),[n]);const C=n.useState((e=>{var t;return r&&e.virtualFocus?null==(t=PF(n,e.activeId))?void 0:t.id:void 0}));a=vz(gz({"aria-activedescendant":C},a),{ref:Xz(r?n.setBaseElement:null,a.ref),onKeyDownCapture:f,onKeyUpCapture:p,onFocusCapture:h,onFocus:b,onBlurCapture:w,onKeyDown:_});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=CF(gz({focusable:S},a))}));nF((e=>oF("div",CB(e))));var SB=iF((e=>{var t=e,{store:n}=t,r=bz(t,["store"]);const o=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=eF(r,(e=>(0,tF.jsx)(xB.Provider,{value:n,children:e})),[n]),r=gz({role:"toolbar","aria-orientation":o},r),r=CB(gz({store:n},r))})),kB=nF((e=>oF("div",SB(e))));var TB=(0,a.forwardRef)((function({label:e,...t},n){const r=wB({focusLoop:!0,rtl:(0,c.isRTL)()});return(0,a.createElement)(QF.Provider,{value:r},(0,a.createElement)(kB,{ref:n,"aria-label":e,store:r,...t}))}));const RB={DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}};var PB=(0,a.forwardRef)((function({className:e,label:t,...n},r){if(!t)return Zl()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,a.createElement)(iB,{...n,className:e});const o=l()("components-accessible-toolbar",e);return(0,a.createElement)(uc,{value:RB},(0,a.createElement)(TB,{className:o,label:t,ref:r,...n}))}));var MB=(0,a.forwardRef)((function(e,t){return(0,a.useContext)(QF)?(0,a.createElement)(eB,{ref:t,...e.toggleProps},(t=>(0,a.createElement)(gT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,a.createElement)(gT,{...e})}));const IB={columns:e=>ip("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:ip("column-gap:",ah(2),";row-gap:",ah(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},NB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},OB=ip(IB.item.fullWidth," gap:",ah(2),";.components-dropdown-menu{margin:",ah(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",ah(6),";}",""),DB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},AB=ip(IB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",jv,"{margin-bottom:0;",Vv,":last-child{margin-bottom:0;}}",Uv,"{margin-bottom:0;}&& ",mg,"{label{line-height:1.4em;}}",""),LB={name:"eivff4",styles:"display:none"},zB={name:"16gsvie",styles:"min-width:200px"},FB=hd("span",{target:"ews648u0"})("color:",Hp.ui.themeDark10,";font-size:11px;font-weight:500;line-height:1.4;",ph({marginLeft:ah(3)})," text-transform:uppercase;"),BB=ip("color:",Hp.gray[900],";&&[aria-disabled='true']{color:",Hp.gray[700],";opacity:1;&:hover{color:",Hp.gray[700],";}",FB,"{opacity:0.3;}}",""),jB=()=>{},VB=(0,a.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:jB,deregisterPanelItem:jB,flagItemCustomization:jB,registerResetAllFilter:jB,deregisterResetAllFilter:jB,areAllOptionalControlsHidden:!0}),HB=()=>(0,a.useContext)(VB);const $B=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,a.createElement)(FB,{"aria-hidden":!0},(0,c.__)("Reset"));return(0,a.createElement)(QO,{label:(0,c.__)("Defaults")},t.map((([t,o])=>o?(0,a.createElement)(eD,{key:t,className:e,role:"menuitem",label:(0,c.sprintf)((0,c.__)("Reset %s"),t),onClick:()=>{n(t),(0,kb.speak)((0,c.sprintf)((0,c.__)("%s reset to default"),t),"assertive")},suffix:r},t):(0,a.createElement)(eD,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},WB=({items:e,toggleItem:t})=>e.length?(0,a.createElement)(QO,{label:(0,c.__)("Tools")},e.map((([e,n])=>{const r=n?(0,c.sprintf)((0,c.__)("Hide and reset %s"),e):(0,c.sprintf)((0,c.__)("Show %s"),e);return(0,a.createElement)(eD,{key:e,icon:n&&l_,isSelected:n,label:r,onClick:()=>{n?(0,kb.speak)((0,c.sprintf)((0,c.__)("%s hidden and reset to default"),e),"assertive"):(0,kb.speak)((0,c.sprintf)((0,c.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,UB=td(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:u,menuItems:d,resetAll:f,toggleItem:p,...m}=function(e){const{className:t,headingLevel:n=2,...r}=ed(e,"ToolsPanelHeader"),o=Qu(),i=(0,a.useMemo)((()=>o(OB,t)),[t,o]),s=(0,a.useMemo)((()=>o(zB)),[o]),l=(0,a.useMemo)((()=>o(DB)),[o]),c=(0,a.useMemo)((()=>o(BB)),[o]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:f}=HB();return{...r,areAllOptionalControlsHidden:f,defaultControlsItemClassName:c,dropdownMenuClassName:s,hasMenuItems:d,headingClassName:l,headingLevel:n,menuItems:u,className:i}}(e);if(!u)return null;const h=Object.entries(d?.default||{}),g=Object.entries(d?.optional||{}),v=n?vh:lk,b=(0,c.sprintf)((0,c._x)("%s options","Button label to reveal tool panel options"),u),y=n?(0,c.__)("All options are currently hidden"):void 0,w=[...h,...g].some((([,e])=>e));return(0,a.createElement)(db,{...m,ref:t},(0,a.createElement)(p_,{level:l,className:s},u),i&&(0,a.createElement)(gT,{icon:v,label:b,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:y}},(()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)($B,{items:h,toggleItem:p,itemClassName:r}),(0,a.createElement)(WB,{items:g,toggleItem:p}),(0,a.createElement)(QO,null,(0,a.createElement)(eD,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,kb.speak)((0,c.__)("All options reset"),"assertive"))}},(0,c.__)("Reset all")))))))}),"ToolsPanelHeader");var GB=UB;const KB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},qB=e=>e&&0===Object.keys(e).length;function YB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c,...u}=ed(e,"ToolsPanel"),d=(0,a.useRef)(!1),f=d.current;(0,a.useEffect)((()=>{f&&(d.current=!1)}),[f]);const[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)([]),[v,b]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),g((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,g]),w=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,a.useCallback)((e=>{b((t=>[...t,e]))}),[b]),E=(0,a.useCallback)((e=>{b((t=>t.filter((t=>t!==e))))}),[b]),[_,C]=(0,a.useState)({default:{},optional:{}});(0,a.useEffect)((()=>{C((e=>KB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:h})))}),[p,C,h]);const S=(0,a.useCallback)(((e,t="default")=>{C((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[C]),[k,T]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(qB(_?.default)&&!qB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));T(e)}}),[_,T]);const R=Qu(),P=(0,a.useMemo)((()=>{const e=i&&ip(">div:not( :first-of-type ){display:grid;",IB.columns(2)," ",IB.spacing," ",IB.item.fullWidth,";}","");const n=qB(_?.default)&&k&&NB;return R((e=>ip(IB.columns(e)," ",IB.spacing," border-top:",jh.borderWidth," solid ",Hp.gray[300],";margin-top:-1px;padding:",ah(4),";",""))(2),e,n,t)}),[k,t,R,i,_]),M=(0,a.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};C(r)}),[_,p,C]),I=(0,a.useCallback)((()=>{"function"==typeof r&&(d.current=!0,r(v));const e=KB({panelItems:p,menuItemOrder:h,shouldReset:!0});C(e)}),[p,v,r,C,h]),N=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},O=N(p),D=N([...p].reverse());return{...u,headingLevel:n,panelContext:(0,a.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:w,deregisterResetAllFilter:E,firstDisplayedItem:O,flagItemCustomization:S,hasMenuItems:!!p.length,isResetting:d.current,lastDisplayedItem:D,menuItems:_,panelId:o,registerPanelItem:y,registerResetAllFilter:x,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c})),[k,w,E,O,S,D,_,o,p,x,y,s,l,c]),resetAllItems:I,toggleItem:M,className:P}}var XB=td(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:l,...c}=YB(e);return(0,a.createElement)(U_,{...c,columns:2,ref:t},(0,a.createElement)(VB.Provider,{value:o},(0,a.createElement)(GB,{label:r,resetAll:i,toggleItem:s,headingLevel:l}),n))}),"ToolsPanel");const ZB=()=>{};const JB=td(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=ZB,onDeselect:l,onSelect:c,...d}=ed(e,"ToolsPanelItem"),{panelId:f,menuItems:p,registerResetAllFilter:m,deregisterResetAllFilter:h,registerPanelItem:g,deregisterPanelItem:v,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:E,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:C}=HB(),S=(0,a.useCallback)(n,[i,n]),k=(0,a.useCallback)(s,[i,s]),T=(0,u.usePrevious)(f),R=f===i||null===f;(0,a.useEffect)((()=>(R&&null!==T&&g({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===T&&f||f===i)&&v(o)})),[f,R,r,o,S,i,T,g,v]),(0,a.useEffect)((()=>(R&&m(k),()=>{R&&h(k)})),[m,h,k,R]);const P=r?"default":"optional",M=p?.[P]?.[o],I=(0,u.usePrevious)(M),N=void 0!==p?.[P]?.[o],O=n(),D=(0,u.usePrevious)(O),A=O&&!D;(0,a.useEffect)((()=>{A&&(r||null===f)&&b(o,P)}),[f,A,r,P,o,b]),(0,a.useEffect)((()=>{N&&!y&&R&&(!M||O||I||c?.(),!M&&I&&l?.())}),[R,M,N,y,O,I,c,l]);const L=r?void 0!==p?.[P]?.[o]:M,z=Qu(),F=(0,a.useMemo)((()=>z(AB,w&&!L&&LB,t,x===o&&_,E===o&&C)),[L,w,t,z,x,E,_,C,o]);return{...d,isShown:L,shouldRenderPlaceholder:w,className:F}}(e);return r?(0,a.createElement)(vd,{...i,ref:t},n):o?(0,a.createElement)(vd,{...i,ref:t}):null}),"ToolsPanelItem");var QB=JB,ej=window.wp.keycodes;const tj=(0,a.createContext)(void 0),nj=tj.Provider;function rj({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,a.createElement)(nj,{value:r},e)}function oj(e){return Jl.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const ij=(0,a.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const l=(0,a.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![ej.UP,ej.DOWN,ej.LEFT,ej.RIGHT,ej.HOME,ej.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=oj(u),f=d.indexOf(l),p=0===f,m=p&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===ej.RIGHT;if([ej.LEFT,ej.RIGHT].includes(o)){let r;if(r=o===ej.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(o===ej.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}oj(o)?.[0]?.focus()}if(o===ej.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=oj(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(m)return;d[r].focus(),e.preventDefault()}else if([ej.UP,ej.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===ej.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=oj(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([ej.HOME,ej.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===ej.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=oj(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,a.createElement)(rj,null,(0,a.createElement)("div",{role:"application","aria-label":o},(0,a.createElement)("table",{...i,role:"treegrid",onKeyDown:l,ref:s},(0,a.createElement)("tbody",null,e))))}));var aj=ij;var sj=(0,a.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,a.createElement)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o},e)}));const lj=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:l}=(0,a.useContext)(tj);let c;s&&(c=s===("current"in i?i.current:void 0)?0:-1);const u={ref:i,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,a.createElement)(t,{...u},e):null}));var cj=lj;var uj=(0,a.forwardRef)((function({children:e,...t},n){return(0,a.createElement)(cj,{ref:n,...t},e)}));var dj=(0,a.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,a.createElement)("td",{...n,role:"gridcell"},t?(0,a.createElement)(a.Fragment,null,e):(0,a.createElement)(uj,{ref:r},e))}));function fj(e){e.stopPropagation()}var pj=(0,a.forwardRef)(((e,t)=>(Zl()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,a.createElement)("div",{...e,ref:t,onMouseDown:fj}))));function mj(e){return ef((0,a.useContext)(nf).fills,{sync:!0}).get(e)}const hj=hd("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>ip({marginInlineStart:e},"","")),";}",(({zIndex:e})=>ip({zIndex:e},"","")),";");var gj={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const vj=hd("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",hj,"{position:relative;justify-self:start;",(({isLayered:e})=>e?gj:void 0),";}");const bj=td((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...l}=ed(e,"ZStack"),c=cb(n),u=c.length-1,d=c.map(((e,t)=>{const n=i?u-t:t,r=o?s*t:s,l=(0,a.isValidElement)(e)?e.key:t;return(0,a.createElement)(hj,{offsetAmount:r,zIndex:n,key:l},e)}));return(0,a.createElement)(vj,{...l,className:r,isLayered:o,ref:t},d)}),"ZStack");var yj=bj;const wj={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function xj(e=wj){const t=(0,a.useRef)(null),[n,r]=(0,a.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,u.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,u.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>ej.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>ej.isKeyboardEvent[e](t,n)))&&o(1)}}}var Ej=(0,u.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,a.createElement)("div",{...xj(t)},(0,a.createElement)(e,{...n}))),"navigateRegions");var _j=(0,u.createHigherOrderComponent)((e=>function(t){const n=(0,u.useConstrainedTabbing)();return(0,a.createElement)("div",{ref:n,tabIndex:-1},(0,a.createElement)(e,{...t}))}),"withConstrainedTabbing"),Cj=e=>(0,u.createHigherOrderComponent)((t=>class extends a.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);oc()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,a.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,a.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),Sj=window.wp.hooks;const kj=16;function Tj(e){return(0,u.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends a.Component{constructor(n){super(n),void 0===r&&(r=(0,Sj.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,Sj.addAction)("hookRemoved",n,s),(0,Sj.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,Sj.removeAction)("hookRemoved",n),(0,Sj.removeAction)("hookAdded",n))}render(){return(0,a.createElement)(r,{...this.props})}}o.instances=[];const i=(0,u.debounce)((()=>{r=(0,Sj.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),kj);function s(t){t===e&&i()}return o}),"withFilters")}var Rj=(0,u.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,u.useFocusReturn)(e);return(0,a.createElement)("div",{ref:r},(0,a.createElement)(t,{...n}))};if((n=e)instanceof a.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const Pj=({children:e})=>(Zl()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e);var Mj=(0,u.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,a.useState)([]),s=(0,a.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:yf()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),l={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,a.createElement)(xA,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,a.createElement)(e,{...l,ref:r}):(0,a.createElement)(e,{...l})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,a.forwardRef)(t)):t}),"withNotices"),Ij=window.wp.privateApis;function Nj(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Oj(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Dj(...e){return(0,v.useCallback)(Oj(...e),e)}function Aj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,v.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,v.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,v.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=(0,v.useMemo)((()=>a),Object.values(a));return(0,v.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=(0,v.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Lj(r,...t)]}function Lj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,v.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function zj(e){const t=(0,v.useRef)(e);return(0,v.useEffect)((()=>{t.current=e})),(0,v.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Fj({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,v.useState)(e),[r]=n,o=(0,v.useRef)(r),i=zj(t);return(0,v.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=zj(n);return[a,(0,v.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const Bj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(Hj);if(i){const e=i.props.children,n=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):(0,v.isValidElement)(e)?e.props.children:null:t));return(0,v.createElement)(jj,sd({},r,{ref:t}),(0,v.isValidElement)(e)?(0,v.cloneElement)(e,void 0,n):null)}return(0,v.createElement)(jj,sd({},r,{ref:t}),n)}));Bj.displayName="Slot";const jj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,v.isValidElement)(n)?(0,v.cloneElement)(n,{...$j(r,n.props),ref:Oj(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));jj.displayName="SlotClone";const Vj=({children:e})=>(0,v.createElement)(v.Fragment,null,e);function Hj(e){return(0,v.isValidElement)(e)&&e.type===Vj}function $j(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Wj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,v.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?Bj:t;return(0,v.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,v.createElement)(i,sd({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Uj(e,t){e&&(0,Dt.flushSync)((()=>e.dispatchEvent(t)))}function Gj(e){const t=e+"CollectionProvider",[n,r]=Aj(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=y().useRef(null),i=y().useRef(new Map).current;return y().createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=y().forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Dj(t,i(s,n).collectionRef);return y().createElement(Bj,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=y().forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=y().useRef(null),s=Dj(t,a),l=i(c,n);return y().useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),y().createElement(Bj,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=y().useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Kj=(0,v.createContext)(void 0);function qj(e){const t=(0,v.useContext)(Kj);return e||t||"ltr"}const Yj="dismissableLayer.update",Xj="dismissableLayer.pointerDownOutside",Zj="dismissableLayer.focusOutside";let Jj;const Qj=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eV=(0,v.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,v.useContext)(Qj),[d,f]=(0,v.useState)(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,v.useState)({}),h=Dj(t,(e=>f(e))),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=zj(e),r=(0,v.useRef)(!1),o=(0,v.useRef)((()=>{}));return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){nV(Xj,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=zj(e),r=(0,v.useRef)(!1);return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){nV(Zj,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=zj(e);(0,v.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),(0,v.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Jj=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),tV(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Jj)}}),[d,p,r,u]),(0,v.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),tV())}),[d,u]),(0,v.useEffect)((()=>{const e=()=>m({});return document.addEventListener(Yj,e),()=>document.removeEventListener(Yj,e)}),[]),(0,v.createElement)(Wj.div,sd({},c,{ref:h,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:Nj(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Nj(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Nj(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function tV(){const e=new CustomEvent(Yj);document.dispatchEvent(e)}function nV(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Uj(o,i):o.dispatchEvent(i)}let rV=0;function oV(){(0,v.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:iV()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:iV()),rV++,()=>{1===rV&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),rV--}}),[])}function iV(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const aV="focusScope.autoFocusOnMount",sV="focusScope.autoFocusOnUnmount",lV={bubbles:!1,cancelable:!0},cV=(0,v.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,v.useState)(null),c=zj(o),u=zj(i),d=(0,v.useRef)(null),f=Dj(t,(e=>l(e))),p=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:pV(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||pV(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),(0,v.useEffect)((()=>{if(s){mV.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(aV,lV);s.addEventListener(aV,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(pV(r,{select:t}),document.activeElement!==n)return}((e=uV(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&pV(s))}return()=>{s.removeEventListener(aV,c),setTimeout((()=>{const e=new CustomEvent(sV,lV);s.addEventListener(sV,u),s.dispatchEvent(e),e.defaultPrevented||pV(null!=t?t:document.body,{select:!0}),s.removeEventListener(sV,u),mV.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,v.useCallback)((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=uV(e),n=dV(t,e),r=dV(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&pV(i,{select:!0})):(e.preventDefault(),n&&pV(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,v.createElement)(Wj.div,sd({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function uV(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dV(e,t){for(const n of e)if(!fV(n,{upTo:t}))return n}function fV(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function pV(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const mV=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=hV(e,t),e.unshift(t)},remove(t){var n;e=hV(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function hV(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const gV=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},vV=v["useId".toString()]||(()=>{});let bV=0;function yV(e){const[t,n]=v.useState(vV());return gV((()=>{e||n((e=>null!=e?e:String(bV++)))}),[e]),e||(t?`radix-${t}`:"")}function wV(e){return e.split("-")[0]}function xV(e){return e.split("-")[1]}function EV(e){return["top","bottom"].includes(wV(e))?"x":"y"}function _V(e){return"y"===e?"height":"width"}function CV(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=EV(t),l=_V(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(wV(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(xV(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function SV(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function kV(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function TV(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=SV(p),h=s[f?"floating"===d?"reference":"floating":d],g=kV(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=kV(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const RV=Math.min,PV=Math.max;function MV(e,t,n){return PV(e,RV(t,n))}const IV=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=SV(r),u={x:o,y:i},d=EV(a),f=xV(a),p=_V(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=MV(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?C<E?E-C:_-C:0),data:{[d]:S,centerOffset:C-S}}}}),NV={left:"right",right:"left",bottom:"top",top:"bottom"};function OV(e){return e.replace(/left|right|bottom|top/g,(e=>NV[e]))}function DV(e,t,n){void 0===n&&(n=!1);const r=xV(e),o=EV(e),i=_V(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=OV(a)),{main:a,cross:OV(a)}}const AV={start:"end",end:"start"};function LV(e){return e.replace(/start|end/g,(e=>AV[e]))}const zV=["top","right","bottom","left"],FV=(zV.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=wV(r),g=d||(h!==a&&p?function(e){const t=OV(e);return[LV(e),t,LV(t)]}(a):[OV(a)]),v=[a,...g],b=await TV(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=DV(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});function BV(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jV(e){return zV.some((t=>e[t]>=0))}const VV=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=BV(await TV(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:jV(t)}}}case"escaped":{const t=BV(await TV(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:jV(t)}}}default:return{}}}}},HV=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=wV(n),s=xV(n),l="x"===EV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function $V(e){return"x"===e?"y":"x"}const WV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await TV(t,l),d=EV(wV(o)),f=$V(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=MV(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=MV(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},UV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=EV(o),f=$V(d);let p=u[d],m=u[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b,y,w;const e="y"===d?"width":"height",t=["top","left"].includes(wV(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(y=null==(w=a.offset)?void 0:w[f])?y:0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},GV=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...s}=e,l=await TV(t,s),c=wV(n),u=xV(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=PV(l.left,0),m=PV(l.right,0),h=PV(l.top,0),g=PV(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:PV(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:PV(l.left,l.right)):l[f])},b=await o.getDimensions(i.floating);null==a||a({...t,...v});const y=await o.getDimensions(i.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function KV(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function qV(e){if(null==e)return window;if(!KV(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function YV(e){return qV(e).getComputedStyle(e)}function XV(e){return KV(e)?"":e?(e.nodeName||"").toLowerCase():""}function ZV(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function JV(e){return e instanceof qV(e).HTMLElement}function QV(e){return e instanceof qV(e).Element}function eH(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qV(e).ShadowRoot||e instanceof ShadowRoot)}function tH(e){const{overflow:t,overflowX:n,overflowY:r}=YV(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function nH(e){return["table","td","th"].includes(XV(e))}function rH(e){const t=/firefox/i.test(ZV()),n=YV(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function oH(){return!/^((?!chrome|android).)*safari/i.test(ZV())}const iH=Math.min,aH=Math.max,sH=Math.round;function lH(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&JV(e)&&(l=e.offsetWidth>0&&sH(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&sH(s.height)/e.offsetHeight||1);const u=QV(e)?qV(e):window,d=!oH()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function cH(e){return(t=e,(t instanceof qV(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function uH(e){return QV(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dH(e){return lH(cH(e)).left+uH(e).scrollLeft}function fH(e,t,n){const r=JV(t),o=cH(t),i=lH(e,r&&function(e){const t=lH(e);return sH(t.width)!==e.offsetWidth||sH(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==XV(t)||tH(o))&&(a=uH(t)),JV(t)){const e=lH(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=dH(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function pH(e){return"html"===XV(e)?e:e.assignedSlot||e.parentNode||(eH(e)?e.host:null)||cH(e)}function mH(e){return JV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function hH(e){const t=qV(e);let n=mH(e);for(;n&&nH(n)&&"static"===getComputedStyle(n).position;)n=mH(n);return n&&("html"===XV(n)||"body"===XV(n)&&"static"===getComputedStyle(n).position&&!rH(n))?t:n||function(e){let t=pH(e);for(eH(t)&&(t=t.host);JV(t)&&!["html","body"].includes(XV(t));){if(rH(t))return t;t=t.parentNode}return null}(e)||t}function gH(e){if(JV(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=lH(e);return{width:t.width,height:t.height}}function vH(e){const t=pH(e);return["html","body","#document"].includes(XV(t))?e.ownerDocument.body:JV(t)&&tH(t)?t:vH(t)}function bH(e,t){var n;void 0===t&&(t=[]);const r=vH(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=qV(r),a=o?[i].concat(i.visualViewport||[],tH(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(bH(a))}function yH(e,t,n){return"viewport"===t?kV(function(e,t){const n=qV(e),r=cH(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=oH();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):QV(t)?function(e,t){const n=lH(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):kV(function(e){var t;const n=cH(e),r=uH(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=aH(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=aH(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+dH(e);const l=-r.scrollTop;return"rtl"===YV(o||n).direction&&(s+=aH(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(cH(e)))}function wH(e){const t=bH(e),n=["absolute","fixed"].includes(YV(e).position)&&JV(e)?hH(e):e;return QV(n)?t.filter((e=>QV(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eH(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==XV(e))):[]}const xH={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?wH(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=yH(t,n,o);return e.top=aH(r.top,e.top),e.right=iH(r.right,e.right),e.bottom=iH(r.bottom,e.bottom),e.left=aH(r.left,e.left),e}),yH(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=JV(n),i=cH(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==XV(n)||tH(i))&&(a=uH(n)),JV(n))){const e=lH(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:QV,getDimensions:gH,getOffsetParent:hH,getDocumentElement:cH,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:fH(t,hH(n),r),floating:{...gH(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===YV(e).direction};function EH(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...QV(e)?bH(e):[],...bH(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),QV(e)&&!s&&f.observe(e),f.observe(t)}let p=s?lH(e):null;return s&&function t(){const r=lH(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const _H=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=CV(l,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:b,reset:y}=await h({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,f={...f,[m]:{...f[m],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=CV(l,d,s))),n=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:xH,...n});var CH="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function SH(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!SH(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!SH(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function kH(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=v.useRef(null),a=v.useRef(null),s=function(e){const t=v.useRef(e);return CH((()=>{t.current=e})),t}(o),l=v.useRef(null),[c,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=v.useState(t);SH(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=v.useCallback((()=>{i.current&&a.current&&_H(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&Dt.flushSync((()=>{u(e)}))}))}),[d,n,r]);CH((()=>{m.current&&p()}),[p]);const m=v.useRef(!1);CH((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=v.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),g=v.useCallback((e=>{i.current=e,h()}),[h]),b=v.useCallback((e=>{a.current=e,h()}),[h]),y=v.useMemo((()=>({reference:i,floating:a})),[]);return v.useMemo((()=>({...c,update:p,refs:y,reference:g,floating:b})),[c,p,y,g,b])}const TH=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?IV({element:t.current,padding:n}).fn(e):{}:t?IV({element:t,padding:n}).fn(e):{};var r}}};const RH="Popper",[PH,MH]=Aj(RH),[IH,NH]=PH(RH),OH=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,v.useState)(null);return(0,v.createElement)(IH,{scope:t,anchor:r,onAnchorChange:o},n)},DH="PopperAnchor",AH=(0,v.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=NH(DH,n),a=(0,v.useRef)(null),s=Dj(t,a);return(0,v.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,v.createElement)(Wj.div,sd({},o,{ref:s}))})),LH="PopperContent",[zH,FH]=PH(LH),[BH,jH]=PH(LH,{hasParent:!1,positionUpdateFns:new Set}),VH=(0,v.forwardRef)(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:E,..._}=e,C=NH(LH,u),[S,k]=(0,v.useState)(null),T=Dj(t,(e=>k(e))),[R,P]=(0,v.useState)(null),M=function(e){const[t,n]=(0,v.useState)(void 0);return gV((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(R),I=null!==(n=null==M?void 0:M.width)&&void 0!==n?n:0,N=null!==(r=null==M?void 0:M.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),D="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},A=Array.isArray(g)?g:[g],L=A.length>0,z={padding:D,boundary:A.filter($H),altBoundary:L},{reference:F,floating:B,strategy:j,x:V,y:H,placement:$,middlewareData:W,update:U}=kH({strategy:"fixed",placement:O,whileElementsMounted:EH,middleware:[WH(),HV({mainAxis:f+N,alignmentAxis:m}),x?WV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?UV():void 0,...z}):void 0,R?TH({element:R,padding:h}):void 0,x?FV({...z}):void 0,GV({...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),UH({arrowWidth:I,arrowHeight:N}),w?VV({strategy:"referenceHidden"}):void 0].filter(HH)});gV((()=>{F(C.anchor)}),[F,C.anchor]);const G=null!==V&&null!==H,[K,q]=GH($),Y=zj(E);gV((()=>{G&&(null==Y||Y())}),[G,Y]);const X=null===(o=W.arrow)||void 0===o?void 0:o.x,Z=null===(i=W.arrow)||void 0===i?void 0:i.y,J=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[Q,ee]=(0,v.useState)();gV((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:te,positionUpdateFns:ne}=jH(LH,u),re=!te;(0,v.useLayoutEffect)((()=>{if(!re)return ne.add(U),()=>{ne.delete(U)}}),[re,ne,U]),gV((()=>{re&&G&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,G,ne]);const oe={"data-side":K,"data-align":q,..._,ref:T,style:{..._.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:j,left:0,top:0,transform:G?`translate3d(${Math.round(V)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},(0,v.createElement)(zH,{scope:u,placedSide:K,onArrowChange:P,arrowX:X,arrowY:Z,shouldHideArrow:J},re?(0,v.createElement)(BH,{scope:u,hasParent:!0,positionUpdateFns:ne},(0,v.createElement)(Wj.div,oe)):(0,v.createElement)(Wj.div,oe)))}));function HH(e){return void 0!==e}function $H(e){return null!==e}const WH=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),UH=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=GH(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function GH(e){const[t,n="center"]=e.split("-");return[t,n]}const KH=OH,qH=AH,YH=VH,XH=(0,v.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?At().createPortal((0,v.createElement)(Wj.div,sd({},o,{ref:t})),r):null}));const ZH=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,v.useState)(),r=(0,v.useRef)({}),o=(0,v.useRef)(e),i=(0,v.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,v.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,v.useEffect)((()=>{const e=JH(r.current);i.current="mounted"===s?e:"none"}),[s]),gV((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=JH(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),gV((()=>{if(t){const e=e=>{const n=JH(r.current).includes(e.animationName);e.target===t&&n&&(0,Dt.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=JH(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,v.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),i=Dj(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,v.cloneElement)(o,{ref:i}):null};function JH(e){return(null==e?void 0:e.animationName)||"none"}ZH.displayName="Presence";const QH="rovingFocusGroup.onEntryFocus",e$={bubbles:!1,cancelable:!0},t$="RovingFocusGroup",[n$,r$,o$]=Gj(t$),[i$,a$]=Aj(t$,[o$]),[s$,l$]=i$(t$),c$=(0,v.forwardRef)(((e,t)=>(0,v.createElement)(n$.Provider,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(n$.Slot,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(u$,sd({},e,{ref:t})))))),u$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=(0,v.useRef)(null),f=Dj(t,d),p=qj(i),[m=null,h]=Fj({prop:a,defaultProp:s,onChange:l}),[g,b]=(0,v.useState)(!1),y=zj(c),w=r$(n),x=(0,v.useRef)(!1),[E,_]=(0,v.useState)(0);return(0,v.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(QH,y),()=>e.removeEventListener(QH,y)}),[y]),(0,v.createElement)(s$,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,v.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,v.useCallback)((()=>b(!0)),[]),onFocusableItemAdd:(0,v.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,v.useCallback)((()=>_((e=>e-1))),[])},(0,v.createElement)(Wj.div,sd({tabIndex:g||0===E?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Nj(e.onMouseDown,(()=>{x.current=!0})),onFocus:Nj(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(QH,e$);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===m)),r=[t,n,...e].filter(Boolean).map((e=>e.ref.current));m$(r)}}x.current=!1})),onBlur:Nj(e.onBlur,(()=>b(!1)))})))})),d$="RovingFocusGroupItem",f$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=yV(),l=i||s,c=l$(d$,n),u=c.currentTabStopId===l,d=r$(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,v.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,v.createElement)(n$.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,v.createElement)(Wj.span,sd({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:Nj(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:Nj(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:Nj(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:p$[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();const o=d().filter((e=>e.focusable));let i=o.map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>m$(i)))}var n,r}))})))})),p$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function m$(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const h$=c$,g$=f$;var v$=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},b$=new WeakMap,y$=new WeakMap,w$={},x$=0,E$=function(e){return e&&(e.host||E$(e.parentNode))},_$=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=E$(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);w$[n]||(w$[n]=new WeakMap);var i=w$[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(b$.get(e)||0)+1,c=(i.get(e)||0)+1;b$.set(e,l),i.set(e,c),a.push(e),1===l&&o&&y$.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),x$++,function(){a.forEach((function(e){var t=b$.get(e)-1,o=i.get(e)-1;b$.set(e,t),i.set(e,o),t||(y$.has(e)||e.removeAttribute(r),y$.delete(e)),o||e.removeAttribute(n)})),--x$||(b$=new WeakMap,b$=new WeakMap,y$=new WeakMap,w$={})}},C$=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||v$(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_$(r,o,n,"aria-hidden")):function(){return null}},S$="right-scroll-bar-position",k$="width-before-scroll-bar";function T$(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var R$="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,P$=new WeakMap;function M$(e,t){var n=function(e,t){var n=(0,v.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return T$(e,t)}))}));return R$((function(){var t=P$.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||T$(e,null)})),o.forEach((function(e){r.has(e)||T$(e,i)}))}P$.set(n,e)}),[e]),n}function I$(e){return e}function N$(e,t){void 0===t&&(t=I$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var O$=function(e){void 0===e&&(e={});var t=N$(null);return t.options=mc({async:!0,ssr:!1},e),t}(),D$=function(){},A$=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:D$,onWheelCapture:D$,onTouchMoveCapture:D$}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,y=hc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=M$([n,t]),E=mc(mc({},y),o);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:O$,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?v.cloneElement(v.Children.only(s),mc(mc({},E),{ref:x})):v.createElement(b,mc({},E,{className:l,ref:x}),s))}));A$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},A$.classNames={fullWidth:k$,zeroRight:S$};var L$,z$=function(e){var t=e.sideCar,n=hc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,mc({},n))};z$.isSideCarExport=!0;function F$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=L$||o.nc;return t&&e.setAttribute("nonce",t),e}var B$=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=F$())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},j$=function(){var e=function(){var e=B$();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},V$={left:0,top:0,right:0,gap:0},H$=function(e){return parseInt(e||"",10)||0},$$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return V$;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[H$(n),H$(r),H$(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},W$=j$(),U$="data-scroll-locked",G$=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(U$,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(S$," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(k$," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(S$," .").concat(S$," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(k$," .").concat(k$," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(U$,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},K$=function(){var e=parseInt(document.body.getAttribute(U$)||"0",10);return isFinite(e)?e:0},q$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;v.useEffect((function(){return document.body.setAttribute(U$,(K$()+1).toString()),function(){var e=K$()-1;e<=0?document.body.removeAttribute(U$):document.body.setAttribute(U$,e.toString())}}),[]);var i=v.useMemo((function(){return $$(o)}),[o]);return v.createElement(W$,{styles:G$(i,!t,o,n?"":"!important")})},Y$=!1;if("undefined"!=typeof window)try{var X$=Object.defineProperty({},"passive",{get:function(){return Y$=!0,!0}});window.addEventListener("test",X$,X$),window.removeEventListener("test",X$,X$)}catch(e){Y$=!1}var Z$=!!Y$&&{passive:!1},J$=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Q$=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eW(e,n)){var r=tW(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},eW=function(e,t){return"v"===e?function(e){return J$(e,"overflowY")}(t):function(e){return J$(e,"overflowX")}(t)},tW=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},nW=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rW=function(e){return[e.deltaX,e.deltaY]},oW=function(e){return e&&"current"in e?e.current:e},iW=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},aW=0,sW=[];var lW,cW=(lW=function(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(aW++)[0],i=v.useState((function(){return j$()}))[0],a=v.useRef(e);v.useEffect((function(){a.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=gc([e.lockRef.current],(e.shards||[]).map(oW),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=nW(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Q$(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Q$(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=tW(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&eW(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),l=v.useCallback((function(e){var n=e;if(sW.length&&sW[sW.length-1]===i){var r="deltaY"in n?rW(n):nW(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(oW).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=v.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=v.useCallback((function(e){n.current=nW(e),r.current=void 0}),[]),d=v.useCallback((function(t){c(t.type,rW(t),t.target,s(t,e.lockRef.current))}),[]),f=v.useCallback((function(t){c(t.type,nW(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return sW.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Z$),document.addEventListener("touchmove",l,Z$),document.addEventListener("touchstart",u,Z$),function(){sW=sW.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,Z$),document.removeEventListener("touchmove",l,Z$),document.removeEventListener("touchstart",u,Z$)}}),[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:iW(o)}):null,p?v.createElement(q$,{gapMode:"margin"}):null)},O$.useMedium(lW),z$),uW=v.forwardRef((function(e,t){return v.createElement(A$,mc({},e,{ref:t,sideCar:cW}))}));uW.classNames=A$.classNames;var dW=uW;const fW=["Enter"," "],pW=["ArrowUp","PageDown","End"],mW=["ArrowDown","PageUp","Home",...pW],hW={ltr:[...fW,"ArrowRight"],rtl:[...fW,"ArrowLeft"]},gW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vW="Menu",[bW,yW,wW]=Gj(vW),[xW,EW]=Aj(vW,[wW,MH,a$]),_W=MH(),CW=a$(),[SW,kW]=xW(vW),[TW,RW]=xW(vW),PW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=_W(t),[l,c]=(0,v.useState)(null),u=(0,v.useRef)(!1),d=zj(i),f=qj(o);return(0,v.useEffect)((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,v.createElement)(KH,s,(0,v.createElement)(SW,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,v.createElement)(TW,{scope:t,onClose:(0,v.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},MW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=_W(n);return(0,v.createElement)(qH,sd({},o,r,{ref:t}))})),IW="MenuPortal",[NW,OW]=xW(IW,{forceMount:void 0}),DW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=kW(IW,t);return(0,v.createElement)(NW,{scope:t,forceMount:n},(0,v.createElement)(ZH,{present:n||i.open},(0,v.createElement)(XH,{asChild:!0,container:o},r)))},AW="MenuContent",[LW,zW]=xW(AW),FW=(0,v.forwardRef)(((e,t)=>{const n=OW(AW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=kW(AW,e.__scopeMenu),a=RW(AW,e.__scopeMenu);return(0,v.createElement)(bW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(ZH,{present:r||i.open},(0,v.createElement)(bW.Slot,{scope:e.__scopeMenu},a.modal?(0,v.createElement)(BW,sd({},o,{ref:t})):(0,v.createElement)(jW,sd({},o,{ref:t})))))})),BW=(0,v.forwardRef)(((e,t)=>{const n=kW(AW,e.__scopeMenu),r=(0,v.useRef)(null),o=Dj(t,r);return(0,v.useEffect)((()=>{const e=r.current;if(e)return C$(e)}),[]),(0,v.createElement)(VW,sd({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Nj(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),jW=(0,v.forwardRef)(((e,t)=>{const n=kW(AW,e.__scopeMenu);return(0,v.createElement)(VW,sd({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),VW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=kW(AW,n),b=RW(AW,n),y=_W(n),w=CW(n),x=yW(n),[E,_]=(0,v.useState)(null),C=(0,v.useRef)(null),S=Dj(t,C,g.onContentChange),k=(0,v.useRef)(0),T=(0,v.useRef)(""),R=(0,v.useRef)(0),P=(0,v.useRef)(null),M=(0,v.useRef)("right"),I=(0,v.useRef)(0),N=m?dW:v.Fragment,O=m?{as:Bj,allowPinchZoom:!0}:void 0,D=e=>{var t,n;const r=T.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=o.map((e=>e.textValue)),l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;const c=1===o.length;c&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(s,r,a),c=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,v.useEffect)((()=>()=>window.clearTimeout(k.current)),[]),oV();const A=(0,v.useCallback)((e=>{var t,n;return M.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return(0,v.createElement)(LW,{scope:n,searchRef:T,onItemEnter:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),onItemLeave:(0,v.useCallback)((e=>{var t;A(e)||(null===(t=C.current)||void 0===t||t.focus(),_(null))}),[A]),onTriggerLeave:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),pointerGraceTimerRef:R,onPointerGraceIntentChange:(0,v.useCallback)((e=>{P.current=e}),[])},(0,v.createElement)(N,O,(0,v.createElement)(cV,{asChild:!0,trapped:o,onMountAutoFocus:Nj(i,(e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,v.createElement)(eV,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,v.createElement)(h$,sd({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:Nj(l,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,v.createElement)(YH,sd({role:"menu","aria-orientation":"vertical","data-state":mU(g.open),"data-radix-menu-content":"",dir:b.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:Nj(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=C.current;if(e.target!==o)return;if(!mW.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));pW.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:Nj(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")})),onPointerMove:Nj(e.onPointerMove,vU((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";M.current=t,I.current=e.clientX}})))})))))))})),HW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Wj.div,sd({role:"group"},r,{ref:t}))})),$W=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Wj.div,sd({},r,{ref:t}))})),WW="MenuItem",UW="menu.itemSelect",GW=(0,v.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,v.useRef)(null),a=RW(WW,e.__scopeMenu),s=zW(WW,e.__scopeMenu),l=Dj(t,i),c=(0,v.useRef)(!1);return(0,v.createElement)(KW,sd({},o,{ref:l,disabled:n,onClick:Nj(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(UW,{bubbles:!0,cancelable:!0});e.addEventListener(UW,(e=>null==r?void 0:r(e)),{once:!0}),Uj(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:Nj(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:Nj(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||fW.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),KW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=zW(WW,n),s=CW(n),l=(0,v.useRef)(null),c=Dj(t,l),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)("");return(0,v.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,v.createElement)(bW.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,v.createElement)(g$,sd({asChild:!0},s,{focusable:!r}),(0,v.createElement)(Wj.div,sd({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:Nj(e.onPointerMove,vU((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:Nj(e.onPointerLeave,vU((e=>a.onItemLeave(e)))),onFocus:Nj(e.onFocus,(()=>d(!0))),onBlur:Nj(e.onBlur,(()=>d(!1)))}))))})),qW=(0,v.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,v.createElement)(nU,{scope:e.__scopeMenu,checked:n},(0,v.createElement)(GW,sd({role:"menuitemcheckbox","aria-checked":hU(n)?"mixed":n},o,{ref:t,"data-state":gU(n),onSelect:Nj(o.onSelect,(()=>null==r?void 0:r(!!hU(n)||!n)),{checkForDefaultPrevented:!1})})))})),YW="MenuRadioGroup",[XW,ZW]=xW(YW,{value:void 0,onValueChange:()=>{}}),JW=(0,v.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=zj(r);return(0,v.createElement)(XW,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,v.createElement)(HW,sd({},o,{ref:t})))})),QW="MenuRadioItem",eU=(0,v.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=ZW(QW,e.__scopeMenu),i=n===o.value;return(0,v.createElement)(nU,{scope:e.__scopeMenu,checked:i},(0,v.createElement)(GW,sd({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":gU(i),onSelect:Nj(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),tU="MenuItemIndicator",[nU,rU]=xW(tU,{checked:!1}),oU=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=rU(tU,n);return(0,v.createElement)(ZH,{present:r||hU(i.checked)||!0===i.checked},(0,v.createElement)(Wj.span,sd({},o,{ref:t,"data-state":gU(i.checked)})))})),iU=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Wj.div,sd({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),aU="MenuSub",[sU,lU]=xW(aU),cU=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=kW(aU,t),a=_W(t),[s,l]=(0,v.useState)(null),[c,u]=(0,v.useState)(null),d=zj(o);return(0,v.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,v.createElement)(KH,a,(0,v.createElement)(SW,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,v.createElement)(sU,{scope:t,contentId:yV(),triggerId:yV(),trigger:s,onTriggerChange:l},n)))},uU="MenuSubTrigger",dU=(0,v.forwardRef)(((e,t)=>{const n=kW(uU,e.__scopeMenu),r=RW(uU,e.__scopeMenu),o=lU(uU,e.__scopeMenu),i=zW(uU,e.__scopeMenu),a=(0,v.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,v.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,v.useEffect)((()=>u),[u]),(0,v.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,v.createElement)(MW,sd({asChild:!0},c),(0,v.createElement)(KW,sd({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":mU(n.open)},e,{ref:Oj(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Nj(e.onPointerMove,vU((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:Nj(e.onPointerLeave,vU((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,l=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:Nj(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||hW[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),fU="MenuSubContent",pU=(0,v.forwardRef)(((e,t)=>{const n=OW(AW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=kW(AW,e.__scopeMenu),a=RW(AW,e.__scopeMenu),s=lU(fU,e.__scopeMenu),l=(0,v.useRef)(null),c=Dj(t,l);return(0,v.createElement)(bW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(ZH,{present:r||i.open},(0,v.createElement)(bW.Slot,{scope:e.__scopeMenu},(0,v.createElement)(VW,sd({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Nj(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:Nj(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:Nj(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=gW[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function mU(e){return e?"open":"closed"}function hU(e){return"indeterminate"===e}function gU(e){return hU(e)?"indeterminate":e?"checked":"unchecked"}function vU(e){return t=>"mouse"===t.pointerType?e(t):void 0}const bU=PW,yU=MW,wU=DW,xU=FW,EU=HW,_U=$W,CU=GW,SU=qW,kU=JW,TU=eU,RU=oU,PU=iU,MU=cU,IU=dU,NU=pU,OU="DropdownMenu",[DU,AU]=Aj(OU,[EW]),LU=EW(),[zU,FU]=DU(OU),BU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=LU(t),c=(0,v.useRef)(null),[u=!1,d]=Fj({prop:o,defaultProp:i,onChange:a});return(0,v.createElement)(zU,{scope:t,triggerId:yV(),triggerRef:c,contentId:yV(),open:u,onOpenChange:d,onOpenToggle:(0,v.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,v.createElement)(bU,sd({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},jU="DropdownMenuTrigger",VU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=FU(jU,n),a=LU(n);return(0,v.createElement)(yU,sd({asChild:!0},a),(0,v.createElement)(Wj.button,sd({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Oj(t,i.triggerRef),onPointerDown:Nj(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Nj(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),HU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=LU(t);return(0,v.createElement)(wU,sd({},r,n))},$U="DropdownMenuContent",WU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=FU($U,n),i=LU(n),a=(0,v.useRef)(!1);return(0,v.createElement)(xU,sd({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:Nj(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:Nj(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),UU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(EU,sd({},o,r,{ref:t}))})),GU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(_U,sd({},o,r,{ref:t}))})),KU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(CU,sd({},o,r,{ref:t}))})),qU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(SU,sd({},o,r,{ref:t}))})),YU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(kU,sd({},o,r,{ref:t}))})),XU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(TU,sd({},o,r,{ref:t}))})),ZU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(RU,sd({},o,r,{ref:t}))})),JU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(PU,sd({},o,r,{ref:t}))})),QU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(IU,sd({},o,r,{ref:t}))})),eG=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=LU(n);return(0,v.createElement)(NU,sd({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),tG=BU,nG=VU,rG=HU,oG=WU,iG=UU,aG=GU,sG=KU,lG=qU,cG=YU,uG=XU,dG=ZU,fG=JU,pG=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=LU(t),[s=!1,l]=Fj({prop:r,defaultProp:i,onChange:o});return(0,v.createElement)(MU,sd({},a,{open:s,onOpenChange:l}),n)},mG=QU,hG=eG;var gG=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const vG="2px",bG="400ms",yG="cubic-bezier( 0.16, 1, 0.3, 1 )",wG=ah(2),xG=ah(7),EG=ah(2),_G=ah(2.5),CG=Hp.ui.borderDisabled,SG=Hp.gray[900],kG=`0 0 0 ${jh.borderWidth} ${CG}, ${jh.popoverShadow}`,TG=`0 0 0 ${jh.borderWidth} ${SG}`,RG=ap({"0%":{opacity:0,transform:`translateY(${vG})`},"100%":{opacity:1,transform:"translateY(0)"}}),PG=ap({"0%":{opacity:0,transform:`translateX(-${vG})`},"100%":{opacity:1,transform:"translateX(0)"}}),MG=ap({"0%":{opacity:0,transform:`translateY(-${vG})`},"100%":{opacity:1,transform:"translateY(0)"}}),IG=ap({"0%":{opacity:0,transform:`translateX(${vG})`},"100%":{opacity:1,transform:"translateX(0)"}}),NG=e=>ip("min-width:220px;background-color:",Hp.ui.background,";border-radius:",jh.radiusBlockUi,";padding:",wG,";box-shadow:","toolbar"===e?TG:kG,";animation-duration:",bG,";animation-timing-function:",yG,";will-change:transform,opacity;&[data-side='top']{animation-name:",MG,";}&[data-side='right']{animation-name:",IG,";}&[data-side='bottom']{animation-name:",RG,";}&[data-side='left']{animation-name:",PG,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),OG=ip("width:",xG,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",EG," );margin-top:",ah(-2),";margin-bottom:",ah(-2),";",""),DG=ip("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",ah(6),";margin-top:",ah(-2),";margin-bottom:",ah(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),AG=hd("span",{target:"e1kdzosf11"})(OG,";"),LG=hd("span",{target:"e1kdzosf10"})(DG,";"),zG=ip("all:unset;font-size:",Fv("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Hp.gray[900],";border-radius:",jh.radiusBlockUi,";display:flex;align-items:center;padding:",ah(2)," ",_G," ",ah(2)," ",EG,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",Hp.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",AG," ) ){padding-inline-start:",xG,";}",""),FG=hd(oG,{target:"e1kdzosf9"})((e=>NG(e.variant)),";"),BG=hd(hG,{target:"e1kdzosf8"})((e=>NG(e.variant)),";"),jG=hd(sG,{target:"e1kdzosf7"})(zG,";"),VG=hd(lG,{target:"e1kdzosf6"})(zG,";"),HG=hd(uG,{target:"e1kdzosf5"})(zG,";"),$G=hd(mG,{target:"e1kdzosf4"})(zG," &[data-state='open']{background-color:",Hp.gray[100],";}"),WG=hd(aG,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",ah(8),";padding:",ah(2)," ",_G," ",ah(2)," ",xG,";color:",Hp.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),UG=hd(fG,{target:"e1kdzosf2"})("height:",jh.borderWidth,";background-color:",(e=>"toolbar"===e.variant?SG:CG),";margin:",ah(2)," calc( -1 * ",wG," );"),GG=hd(dG,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),KG=hd(ec,{target:"e1kdzosf0"})(ph({transform:`scaleX(1) translateX(${ah(2)})`},{transform:`scaleX(-1) translateX(${ah(2)})`})(),";"),qG=(0,a.createContext)({variant:void 0,portalContainer:null}),YG=nd((e=>{const{defaultOpen:t,open:n,onOpenChange:r,modal:o=!0,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,children:d,trigger:f,variant:p}=ed(e,"DropdownMenu"),m=rf(Vf),h=m.ref?.current,g=(0,a.useMemo)((()=>({variant:p,portalContainer:h})),[p,h]);return(0,a.createElement)(tG,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:(0,c.isRTL)()?"rtl":"ltr"},(0,a.createElement)(nG,{asChild:!0},f),(0,a.createElement)(rG,{container:h},(0,a.createElement)(FG,{side:i,align:l,sideOffset:s,alignOffset:u,loop:!0,variant:p},(0,a.createElement)(qG.Provider,{value:g},d))))}),"DropdownMenu"),XG=(0,a.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,a.createElement)(jG,{...r,ref:o},t&&(0,a.createElement)(AG,null,t),e,n&&(0,a.createElement)(LG,null,n)))),ZG=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:12,cy:12,r:3,fill:"currentColor"})),{lock:JG,unlock:QG}=(0,Ij.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),eK={};JG(eK,{CustomSelectControl:PP,__experimentalPopoverLegacyPositionToPlacement:Af,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...Of(t)}},ComponentsContext:lc,DropdownMenuV2:YG,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,a.createElement)(VG,{...r,checked:t},(0,a.createElement)(AG,null,(0,a.createElement)(GG,null,("indeterminate"===t||!0===t)&&(0,a.createElement)(ec,{icon:"indeterminate"===t?qb:l_,size:24}))),e,n&&(0,a.createElement)(LG,null,n)),DropdownMenuGroupV2:e=>(0,a.createElement)(iG,{...e}),DropdownMenuItemV2:XG,DropdownMenuLabelV2:e=>(0,a.createElement)(WG,{...e}),DropdownMenuRadioGroupV2:e=>(0,a.createElement)(cG,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,a.createElement)(HG,{...n},(0,a.createElement)(AG,null,(0,a.createElement)(GG,null,(0,a.createElement)(ec,{icon:ZG,size:22}))),e,t&&(0,a.createElement)(LG,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,a.useContext)(qG);return(0,a.createElement)(UG,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:s})=>{const{variant:l,portalContainer:c}=(0,a.useContext)(qG);return(0,a.createElement)(pG,{defaultOpen:e,open:t,onOpenChange:n},(0,a.createElement)($G,{disabled:r,textValue:o},s),(0,a.createElement)(rG,{container:c},(0,a.createElement)(BG,{loop:!0,sideOffset:16,alignOffset:-8,variant:l},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,a.createElement)(KG,{icon:gG,size:24}),children:n})=>(0,a.createElement)(a.Fragment,null,e&&(0,a.createElement)(AG,null,e),n,t&&(0,a.createElement)(LG,null,t))})}(),(window.wp=window.wp||{}).components=i}();

Zerion Mini Shell 1.0