diff --git a/docs/962.6d0f74c0.iframe.bundle.js b/docs/494.e1f4e243.iframe.bundle.js similarity index 50% rename from docs/962.6d0f74c0.iframe.bundle.js rename to docs/494.e1f4e243.iframe.bundle.js index aa560682d..39d52513f 100644 --- a/docs/962.6d0f74c0.iframe.bundle.js +++ b/docs/494.e1f4e243.iframe.bundle.js @@ -1,5 +1,5 @@ -/*! For license information please see 962.6d0f74c0.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunk_automattic_jetpack_storybook=self.webpackChunk_automattic_jetpack_storybook||[]).push([[962],{"../../../node_modules/.pnpm/@automattic+format-currency@1.0.0-alpha.0/node_modules/@automattic/format-currency/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{LR:()=>getCurrencyObject});var objectSpread=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/objectSpread.js"),arrayLikeToArray=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var unsupportedIterableToArray=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return(0,arrayLikeToArray.Z)(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||(0,unsupportedIterableToArray.Z)(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var defineProperty=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),browser=__webpack_require__("../../../node_modules/.pnpm/debug@4.3.1/node_modules/debug/src/browser.js"),browser_default=__webpack_require__.n(browser),lib=__webpack_require__("../../../node_modules/.pnpm/interpolate-components@1.1.1/node_modules/interpolate-components/lib/index.js"),tannin=__webpack_require__("../../../node_modules/.pnpm/tannin@1.2.0/node_modules/tannin/index.js"),lru=__webpack_require__("../../../node_modules/.pnpm/lru@3.1.0/node_modules/lru/index.js"),lru_default=__webpack_require__.n(lru),_1=__webpack_require__("../../../node_modules/.pnpm/hash.js@1.1.7/node_modules/hash.js/lib/hash/sha/1.js"),_1_default=__webpack_require__.n(_1),events=__webpack_require__("../../../node_modules/.pnpm/events@3.3.0/node_modules/events/events.js"),PATTERN=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function sprintf(string,args){var i;if(!Array.isArray(args))for(args=new Array(arguments.length-1),i=1;i3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep)),(s[1]||"").length3||args.length>2&&"object"==typeof args[1]&&"object"==typeof args[2])&&warn("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",simpleArguments(args),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===args.length&&"string"==typeof original&&"string"==typeof args[1]&&warn("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",simpleArguments(args));for(var options={},i=0;i=0;i--){var lookup=translationLookup[i](Object.assign({},options));if(i18n.state.locale[lookup.original])return getTranslationFromTannin(i18n.state.tannin,lookup)}return null}function I18N(){if(!(this instanceof I18N))return new I18N;this.defaultLocaleSlug="en",this.defaultPluralForms=function(n){return 1===n?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:lru_default()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new events.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}I18N.throwErrors=!1,I18N.prototype.on=function(){var _this$stateObserver;(_this$stateObserver=this.stateObserver).on.apply(_this$stateObserver,arguments)},I18N.prototype.off=function(){var _this$stateObserver2;(_this$stateObserver2=this.stateObserver).off.apply(_this$stateObserver2,arguments)},I18N.prototype.emit=function(){var _this$stateObserver3;(_this$stateObserver3=this.stateObserver).emit.apply(_this$stateObserver3,arguments)},I18N.prototype.numberFormat=function(number){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},decimals="number"==typeof options?options:options.decimals||0,decPoint=options.decPoint||this.state.numberFormatSettings.decimal_point||".",thousandsSep=options.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return number_format(number,decimals,decPoint,thousandsSep)},I18N.prototype.configure=function(options){Object.assign(this,options||{}),this.setLocale()},I18N.prototype.setLocale=function(localeData){var _this$state$locale$te,_this$state$locale$,_this$state$locale$$m;if(localeData&&localeData[""]&&localeData[""]["key-hash"]){var keyHash=localeData[""]["key-hash"],transform=function transform(string,hashLength){var lookupPrefix=!1===hashLength?"":String(hashLength);if(void 0!==hashCache[lookupPrefix+string])return hashCache[lookupPrefix+string];var hash=_1_default()().update(string).digest("hex");return hashCache[lookupPrefix+string]=hashLength?hash.substr(0,hashLength):hash},generateLookup=function generateLookup(hashLength){return function(options){return options.context?(options.original=transform(options.context+String.fromCharCode(4)+options.original,hashLength),delete options.context):options.original=transform(options.original,hashLength),options}};if("sha1"===keyHash.substr(0,4))if(4===keyHash.length)translationLookup.push(generateLookup(!1));else{var variableHashLengthPos=keyHash.substr(5).indexOf("-");if(variableHashLengthPos<0){var hashLength=Number(keyHash.substr(5));translationLookup.push(generateLookup(hashLength))}else for(var minHashLength=Number(keyHash.substr(5,variableHashLengthPos)),maxHashLength=Number(keyHash.substr(6+variableHashLengthPos)),_hashLength=minHashLength;_hashLength<=maxHashLength;_hashLength++)translationLookup.push(generateLookup(_hashLength))}}if(localeData&&localeData[""].localeSlug)if(localeData[""].localeSlug===this.state.localeSlug){if(localeData===this.state.locale)return;Object.assign(this.state.locale,localeData)}else this.state.locale=Object.assign({},localeData);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(_this$state$locale$te=this.state.locale["text directionltr"])||void 0===_this$state$locale$te?void 0:_this$state$locale$te[0])||(null===(_this$state$locale$=this.state.locale[""])||void 0===_this$state$locale$||null===(_this$state$locale$$m=_this$state$locale$.momentjs_locale)||void 0===_this$state$locale$$m?void 0:_this$state$locale$$m.textDirection),this.state.tannin=new tannin.Z((0,defineProperty.Z)({},"messages",this.state.locale)),this.state.numberFormatSettings.decimal_point=getTranslationFromTannin(this.state.tannin,normalizeTranslateArguments(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=getTranslationFromTannin(this.state.tannin,normalizeTranslateArguments(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},I18N.prototype.getLocale=function(){return this.state.locale},I18N.prototype.getLocaleSlug=function(){return this.state.localeSlug},I18N.prototype.isRtl=function(){return"rtl"===this.state.textDirection},I18N.prototype.addTranslations=function(localeData){for(var prop in localeData)""!==prop&&(this.state.tannin.data.messages[prop]=localeData[prop]);this.stateObserver.emit("change")},I18N.prototype.hasTranslation=function(){return!!getTranslation(this,normalizeTranslateArguments(arguments))},I18N.prototype.translate=function(){var options=normalizeTranslateArguments(arguments),translation=getTranslation(this,options);if(translation||(translation=getTranslationFromTannin(this.state.tannin,options)),options.args){var sprintfArgs=Array.isArray(options.args)?options.args.slice(0):[options.args];sprintfArgs.unshift(translation);try{translation=sprintf.apply(void 0,_toConsumableArray(sprintfArgs))}catch(error){if(!window||!window.console)return;var errorMethod=this.throwErrors?"error":"warn";"string"!=typeof error?window.console[errorMethod](error):window.console[errorMethod]("i18n sprintf error:",sprintfArgs)}}return options.components&&(translation=(0,lib.Z)({mixedString:translation,components:options.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(hook){translation=hook(translation,options)})),translation},I18N.prototype.reRenderTranslations=function(){debug("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},I18N.prototype.registerComponentUpdateHook=function(callback){this.componentUpdateHooks.push(callback)},I18N.prototype.registerTranslateHook=function(callback){this.translateHooks.push(callback)};const i18n=I18N;var objectSpread2=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/objectSpread2.js");function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{},currencyDefaults=currencies_getCurrencyDefaults(code);if(!currencyDefaults||isNaN(number))return null;var _currencyDefaults$opt2=(0,objectSpread.Z)({},currencyDefaults,options),decimal=_currencyDefaults$opt2.decimal,grouping=_currencyDefaults$opt2.grouping,precision=_currencyDefaults$opt2.precision,symbol=_currencyDefaults$opt2.symbol,sign=number<0?"-":"",absNumber=Math.abs(number),rawInteger=Math.floor(absNumber),integer=esm_numberFormat(rawInteger,{decimals:0,thousandsSep:grouping,decPoint:decimal}),fraction=precision>0?esm_numberFormat(absNumber-rawInteger,{decimals:precision,thousandsSep:grouping,decPoint:decimal}).slice(1):"";return{sign,symbol,integer,fraction}}},"../../../node_modules/.pnpm/@base2+pretty-print-object@1.0.1/node_modules/@base2/pretty-print-object/dist/index.js":function(__unused_webpack_module,exports){"use strict";var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _emotion_sheet__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@emotion+sheet@1.0.3/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js"),stylis__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Tokenizer.js"),stylis__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Utility.js"),stylis__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Middleware.js"),stylis__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Serializer.js"),stylis__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Parser.js"),getRules=function getRules(value,points){return(0,stylis__WEBPACK_IMPORTED_MODULE_0__.cE)(function toRules(parsed,points){var index=-1,character=44;do{switch((0,stylis__WEBPACK_IMPORTED_MODULE_0__.r)(character)){case 0:38===character&&12===(0,stylis__WEBPACK_IMPORTED_MODULE_0__.fj)()&&(points[index]=1),parsed[index]+=(0,stylis__WEBPACK_IMPORTED_MODULE_0__.QU)(stylis__WEBPACK_IMPORTED_MODULE_0__.FK-1);break;case 2:parsed[index]+=(0,stylis__WEBPACK_IMPORTED_MODULE_0__.iF)(character);break;case 4:if(44===character){parsed[++index]=58===(0,stylis__WEBPACK_IMPORTED_MODULE_0__.fj)()?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=(0,stylis__WEBPACK_IMPORTED_MODULE_1__.Dp)(character)}}while(character=(0,stylis__WEBPACK_IMPORTED_MODULE_0__.lp)());return parsed}((0,stylis__WEBPACK_IMPORTED_MODULE_0__.un)(value),points))},fixedElements=new WeakMap,compat=function compat(element){if("rule"===element.type&&element.parent&&element.length){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;"rule"!==parent.type;)if(!(parent=parent.parent))return;if((1!==element.props.length||58===value.charCodeAt(0)||fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _emotion_sheet__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@emotion+sheet@1.0.3/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js"),stylis__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Tokenizer.js"),stylis__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Utility.js"),stylis__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Middleware.js"),stylis__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Serializer.js"),stylis__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/stylis@4.0.10/node_modules/stylis/src/Parser.js"),identifierWithPointTracking=function identifierWithPointTracking(begin,points,index){for(var previous=0,character=0;previous=character,character=(0,stylis__WEBPACK_IMPORTED_MODULE_0__.fj)(),38===previous&&12===character&&(points[index]=1),!(0,stylis__WEBPACK_IMPORTED_MODULE_0__.r)(character);)(0,stylis__WEBPACK_IMPORTED_MODULE_0__.lp)();return(0,stylis__WEBPACK_IMPORTED_MODULE_0__.tP)(begin,stylis__WEBPACK_IMPORTED_MODULE_0__.FK)},getRules=function getRules(value,points){return(0,stylis__WEBPACK_IMPORTED_MODULE_0__.cE)(function toRules(parsed,points){var index=-1,character=44;do{switch((0,stylis__WEBPACK_IMPORTED_MODULE_0__.r)(character)){case 0:38===character&&12===(0,stylis__WEBPACK_IMPORTED_MODULE_0__.fj)()&&(points[index]=1),parsed[index]+=identifierWithPointTracking(stylis__WEBPACK_IMPORTED_MODULE_0__.FK-1,points,index);break;case 2:parsed[index]+=(0,stylis__WEBPACK_IMPORTED_MODULE_0__.iF)(character);break;case 4:if(44===character){parsed[++index]=58===(0,stylis__WEBPACK_IMPORTED_MODULE_0__.fj)()?"&\f":"",points[index]=parsed[index].length;break}default:parsed[index]+=(0,stylis__WEBPACK_IMPORTED_MODULE_1__.Dp)(character)}}while(character=(0,stylis__WEBPACK_IMPORTED_MODULE_0__.lp)());return parsed}((0,stylis__WEBPACK_IMPORTED_MODULE_0__.un)(value),points))},fixedElements=new WeakMap,compat=function compat(element){if("rule"===element.type&&element.parent&&element.length){for(var value=element.value,parent=element.parent,isImplicitRule=element.column===parent.column&&element.line===parent.line;"rule"!==parent.type;)if(!(parent=parent.parent))return;if((1!==element.props.length||58===value.charCodeAt(0)||fixedElements.get(parent))&&!isImplicitRule){fixedElements.set(element,!0);for(var points=[],rules=getRules(value,points),parentRules=parent.props,i=0,k=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>is_prop_valid_browser_esm});var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/;const is_prop_valid_browser_esm=function memoize(fn){var cache={};return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91}))},"../../../node_modules/.pnpm/@emotion+memoize@0.7.5/node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function memoize(fn){var cache=Object.create(null);return function(arg){return void 0===cache[arg]&&(cache[arg]=fn(arg)),cache[arg]}}},"../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-element-99289b21.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{T:()=>ThemeContext,a:()=>ThemeProvider,u:()=>useTheme,w:()=>withEmotionCache});var react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),emotion_cache_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+cache@11.4.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.0/node_modules/@babel/runtime/helpers/esm/extends.js");const weak_memoize_browser_esm=function weakMemoize(func){var cache=new WeakMap;return function(arg){if(cache.has(arg))return cache.get(arg);var ret=func(arg);return cache.set(arg,ret),ret}};__webpack_require__("../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),Object.prototype.hasOwnProperty;var EmotionCacheContext=(0,react.createContext)("undefined"!=typeof HTMLElement?(0,emotion_cache_browser_esm.Z)({key:"css"}):null);EmotionCacheContext.Provider;var withEmotionCache=function withEmotionCache(func){return(0,react.forwardRef)((function(props,ref){var cache=(0,react.useContext)(EmotionCacheContext);return func(props,cache,ref)}))},ThemeContext=(0,react.createContext)({});var useTheme=function useTheme(){return(0,react.useContext)(ThemeContext)},createCacheWithTheme=weak_memoize_browser_esm((function(outerTheme){return weak_memoize_browser_esm((function(theme){return function getTheme(outerTheme,theme){return"function"==typeof theme?theme(outerTheme):(0,esm_extends.Z)({},outerTheme,theme)}(outerTheme,theme)}))})),ThemeProvider=function ThemeProvider(props){var theme=(0,react.useContext)(ThemeContext);return props.theme!==theme&&(theme=createCacheWithTheme(theme)(props.theme)),(0,react.createElement)(ThemeContext.Provider,{value:theme},props.children)}},"../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{xB:()=>Global,iv:()=>css,F4:()=>keyframes});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_emotion_element_99289b21_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__=(__webpack_require__("../../../node_modules/.pnpm/@emotion+cache@11.4.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),__webpack_require__("../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-element-99289b21.browser.esm.js")),_emotion_utils__WEBPACK_IMPORTED_MODULE_6__=(__webpack_require__("../../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"),__webpack_require__("../../../node_modules/.pnpm/@emotion+utils@1.0.0/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js")),_emotion_serialize__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),_emotion_sheet__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@emotion+sheet@1.0.3/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js"),Global=(0,_emotion_element_99289b21_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__.w)((function(props,cache){var styles=props.styles,serialized=(0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_3__.O)([styles],void 0,(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_emotion_element_99289b21_browser_esm_js__WEBPACK_IMPORTED_MODULE_4__.T)),sheetRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();return(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((function(){var key=cache.key+"-global",sheet=new _emotion_sheet__WEBPACK_IMPORTED_MODULE_5__.m({key,nonce:cache.sheet.nonce,container:cache.sheet.container,speedy:cache.sheet.isSpeedy}),rehydrating=!1,node=document.querySelector('style[data-emotion="'+key+" "+serialized.name+'"]');return cache.sheet.tags.length&&(sheet.before=cache.sheet.tags[0]),null!==node&&(rehydrating=!0,node.setAttribute("data-emotion",key),sheet.hydrate([node])),sheetRef.current=[sheet,rehydrating],function(){sheet.flush()}}),[cache]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)((function(){var sheetRefCurrent=sheetRef.current,sheet=sheetRefCurrent[0];if(sheetRefCurrent[1])sheetRefCurrent[1]=!1;else{if(void 0!==serialized.next&&(0,_emotion_utils__WEBPACK_IMPORTED_MODULE_6__.M)(cache,serialized.next,!0),sheet.tags.length){var element=sheet.tags[sheet.tags.length-1].nextElementSibling;sheet.before=element,sheet.flush()}cache.insert("",serialized,sheet,!1)}}),[cache,serialized.name]),null}));function css(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_3__.O)(args)}var keyframes=function keyframes(){var insertable=css.apply(void 0,arguments),name="animation-"+insertable.name;return{name,styles:"@keyframes "+name+"{"+insertable.styles+"}",anim:1,toString:function toString(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},"../../../node_modules/.pnpm/@emotion+react@11.5.0_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-element-99289b21.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>CacheProvider,_:()=>__unsafe_useEmotionCache});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_emotion_cache__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@emotion+cache@11.5.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),EmotionCacheContext=(__webpack_require__("../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),Object.prototype.hasOwnProperty,(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)("undefined"!=typeof HTMLElement?(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__.Z)({key:"css"}):null));var CacheProvider=EmotionCacheContext.Provider,__unsafe_useEmotionCache=function useEmotionCache(){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext)}},"../../../node_modules/.pnpm/@emotion+react@11.5.0_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{iv:()=>css,F4:()=>keyframes});__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),__webpack_require__("../../../node_modules/.pnpm/@emotion+cache@11.5.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),__webpack_require__("../../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");var _emotion_serialize__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js");function css(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_3__.O)(args)}var keyframes=function keyframes(){var insertable=css.apply(void 0,arguments),name="animation-"+insertable.name;return{name,styles:"@keyframes "+name+"{"+insertable.styles+"}",anim:1,toString:function toString(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},"../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>serializeStyles});const hash_browser_esm=function murmur2(str){for(var k,h=0,i=0,len=str.length;len>=4;++i,len-=4)k=1540483477*(65535&(k=255&str.charCodeAt(i)|(255&str.charCodeAt(++i))<<8|(255&str.charCodeAt(++i))<<16|(255&str.charCodeAt(++i))<<24))+(59797*(k>>>16)<<16),h=1540483477*(65535&(k^=k>>>24))+(59797*(k>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(len){case 3:h^=(255&str.charCodeAt(i+2))<<16;case 2:h^=(255&str.charCodeAt(i+1))<<8;case 1:h=1540483477*(65535&(h^=255&str.charCodeAt(i)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)};const unitless_browser_esm={animationIterationCount: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};var emotion_memoize_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+memoize@0.7.5/node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js"),hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function isCustomProperty(property){return 45===property.charCodeAt(1)},isProcessableValue=function isProcessableValue(value){return null!=value&&"boolean"!=typeof value},processStyleName=(0,emotion_memoize_browser_esm.Z)((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function processStyleValue(key,value){switch(key){case"animation":case"animationName":if("string"==typeof value)return value.replace(animationRegex,(function(match,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1}))}return 1===unitless_browser_esm[key]||isCustomProperty(key)||"number"!=typeof value||0===value?value:value+"px"};function handleInterpolation(mergedProps,registered,interpolation){if(null==interpolation)return"";if(void 0!==interpolation.__emotion_styles)return interpolation;switch(typeof interpolation){case"boolean":return"";case"object":if(1===interpolation.anim)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(void 0!==interpolation.styles){var next=interpolation.next;if(void 0!==next)for(;void 0!==next;)cursor={name:next.name,styles:next.styles,next:cursor},next=next.next;return interpolation.styles+";"}return function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{m:()=>StyleSheet});var StyleSheet=function(){function StyleSheet(options){var _this=this;this._insertTag=function(tag){var before;before=0===_this.tags.length?_this.prepend?_this.container.firstChild:_this.before:_this.tags[_this.tags.length-1].nextSibling,_this.container.insertBefore(tag,before),_this.tags.push(tag)},this.isSpeedy=void 0===options.speedy||options.speedy,this.tags=[],this.ctr=0,this.nonce=options.nonce,this.key=options.key,this.container=options.container,this.prepend=options.prepend,this.before=null}var _proto=StyleSheet.prototype;return _proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag)},_proto.insert=function insert(rule){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function createStyleElement(options){var tag=document.createElement("style");return tag.setAttribute("data-emotion",options.key),void 0!==options.nonce&&tag.setAttribute("nonce",options.nonce),tag.appendChild(document.createTextNode("")),tag.setAttribute("data-s",""),tag}(this));var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=function sheetForTag(tag){if(tag.sheet)return tag.sheet;for(var i=0;i{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>emotion_styled_base_browser_esm});var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.0/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),emotion_memoize_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+memoize@0.7.5/node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js"),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|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)-.*))$/;const emotion_is_prop_valid_browser_esm=(0,emotion_memoize_browser_esm.Z)((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91}));var emotion_element_99289b21_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-element-99289b21.browser.esm.js"),emotion_utils_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+utils@1.0.0/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"),emotion_serialize_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),testOmitPropsOnStringTag=emotion_is_prop_valid_browser_esm,testOmitPropsOnComponent=function testOmitPropsOnComponent(key){return"theme"!==key},getDefaultShouldForwardProp=function getDefaultShouldForwardProp(tag){return"string"==typeof tag&&tag.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp};const emotion_styled_base_browser_esm=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>getRegisteredStyles,M:()=>insertStyles});function getRegisteredStyles(registered,registeredStyles,classNames){var rawClassName="";return classNames.split(" ").forEach((function(className){void 0!==registered[className]?registeredStyles.push(registered[className]+";"):rawClassName+=className+" "})),rawClassName}var insertStyles=function insertStyles(cache,serialized,isStringTag){var className=cache.key+"-"+serialized.name;if(!1===isStringTag&&void 0===cache.registered[className]&&(cache.registered[className]=serialized.styles),void 0===cache.inserted[serialized.name]){var current=serialized;do{cache.insert(serialized===current?"."+className:"",current,cache.sheet,!0);current=current.next}while(void 0!==current)}}},"../../../node_modules/.pnpm/@mdx-js+react@1.6.22_react@17.0.2/node_modules/@mdx-js/react/dist/esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Zo:()=>MDXProvider,kt:()=>createElement});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext({}),useMDXComponents=function useMDXComponents(components){var contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext),allComponents=contextComponents;return components&&(allComponents=function isFunction(obj){return"function"==typeof obj}(components)?components(contextComponents):_objectSpread2(_objectSpread2({},contextComponents),components)),allComponents},MDXProvider=function MDXProvider(props){var allComponents=useMDXComponents(props.components);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},props.children)},DEFAULTS={inlineCode:"code",wrapper:function wrapper(_ref){var children=_ref.children;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,{},children)}},MDXCreateElement=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(props,ref){var propComponents=props.components,mdxType=props.mdxType,originalType=props.originalType,parentName=props.parentName,etc=_objectWithoutProperties(props,["components","mdxType","originalType","parentName"]),components=useMDXComponents(propComponents),type=mdxType,Component=components["".concat(parentName,".").concat(type)]||components[type]||DEFAULTS[type]||originalType;return propComponents?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,_objectSpread2(_objectSpread2({ref},etc),{},{components:propComponents})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,_objectSpread2({ref},etc))}));function createElement(type,props){var args=arguments,mdxType=props&&props.mdxType;if("string"==typeof type||mdxType){var argsLength=args.length,createElementArgArray=new Array(argsLength);createElementArgArray[0]=MDXCreateElement;var newProps={};for(var key in props)hasOwnProperty.call(props,key)&&(newProps[key]=props[key]);newProps.originalType=type,newProps.mdxType="string"==typeof type?type:mdxType,createElementArgArray[1]=newProps;for(var i=2;i{"use strict";__webpack_require__.d(__webpack_exports__,{we:()=>top,I:()=>bottom,F2:()=>right,t$:()=>left,d7:()=>auto,mv:()=>basePlacements,BL:()=>start,ut:()=>end,zV:()=>clippingParents,Pj:()=>viewport,k5:()=>popper,YP:()=>reference,bw:()=>variationPlacements,Ct:()=>placements,xs:()=>modifierPhases});var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])}),[]),modifierPhases=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},"../../../node_modules/.pnpm/@popperjs+core@2.10.2/node_modules/@popperjs/core/lib/popper.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getBoundingClientRect(element,includeScale){void 0===includeScale&&(includeScale=!1);var rect=element.getBoundingClientRect();return{width:rect.width/1,height:rect.height/1,top:rect.top/1,right:rect.right/1,bottom:rect.bottom/1,left:rect.left/1,x:rect.left/1,y:rect.top/1}}function getWindow(node){if(null==node)return window;if("[object Window]"!==node.toString()){var ownerDocument=node.ownerDocument;return ownerDocument&&ownerDocument.defaultView||window}return node}function getWindowScroll(node){var win=getWindow(node);return{scrollLeft:win.pageXOffset,scrollTop:win.pageYOffset}}function isElement(node){return node instanceof getWindow(node).Element||node instanceof Element}function isHTMLElement(node){return node instanceof getWindow(node).HTMLElement||node instanceof HTMLElement}function isShadowRoot(node){return"undefined"!=typeof ShadowRoot&&(node instanceof getWindow(node).ShadowRoot||node instanceof ShadowRoot)}function getNodeName(element){return element?(element.nodeName||"").toLowerCase():null}function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){void 0===isFixed&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=rect.width/element.offsetWidth||1,scaleY=rect.height/element.offsetHeight||1;return 1!==scaleX||1!==scaleY}(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&(("body"!==getNodeName(offsetParent)||isScrollParent(documentElement))&&(scroll=function getNodeScroll(node){return node!==getWindow(node)&&isHTMLElement(node)?function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}(node):getWindowScroll(node)}(offsetParent)),isHTMLElement(offsetParent)?((offsets=getBoundingClientRect(offsetParent,!0)).x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function getParentNode(element){return"html"===getNodeName(element)?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getScrollParent(node){return["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;void 0===list&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===(null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function isTableElement(element){return["table","td","th"].indexOf(getNodeName(element))>=0}function getTrueOffsetParent(element){return isHTMLElement(element)&&"fixed"!==getComputedStyle(element).position?element.offsetParent:null}function getOffsetParent(element){for(var window=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&"static"===getComputedStyle(offsetParent).position;)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&("html"===getNodeName(offsetParent)||"body"===getNodeName(offsetParent)&&"static"===getComputedStyle(offsetParent).position)?window:offsetParent||function getContainingBlock(element){var isFirefox=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(element)&&"fixed"===getComputedStyle(element).position)return null;for(var currentNode=getParentNode(element);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if("none"!==css.transform||"none"!==css.perspective||"paint"===css.contain||-1!==["transform","perspective"].indexOf(css.willChange)||isFirefox&&"filter"===css.willChange||isFirefox&&css.filter&&"none"!==css.filter)return currentNode;currentNode=currentNode.parentNode}return null}(element)||window}__webpack_require__.d(__webpack_exports__,{fi:()=>popper_createPopper});var enums=__webpack_require__("../../../node_modules/.pnpm/@popperjs+core@2.10.2/node_modules/@popperjs/core/lib/enums.js");function order(modifiers){var map=new Map,visited=new Set,result=[];function sort(modifier){visited.add(modifier.name),[].concat(modifier.requires||[],modifier.requiresIfExists||[]).forEach((function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier)}})),result.push(modifier)}return modifiers.forEach((function(modifier){map.set(modifier.name,modifier)})),modifiers.forEach((function(modifier){visited.has(modifier.name)||sort(modifier)})),result}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return!args.some((function(element){return!(element&&"function"==typeof element.getBoundingClientRect)}))}function popperGenerator(generatorOptions){void 0===generatorOptions&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=void 0===_generatorOptions$def?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=void 0===_generatorOptions$def2?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){void 0===options&&(options=defaultOptions);var fn,pending,state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference,popper},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function setOptions(setOptionsAction){var options="function"==typeof setOptionsAction?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options),state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return enums.xs.reduce((function(acc,phase){return acc.concat(orderedModifiers.filter((function(modifier){return modifier.phase===phase})))}),[])}(function mergeByName(modifiers){var merged=modifiers.reduce((function(merged,current){var existing=merged[current.name];return merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged}),{});return Object.keys(merged).map((function(key){return merged[key]}))}([].concat(defaultModifiers,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter((function(m){return m.enabled})),function runModifierEffects(){state.orderedModifiers.forEach((function(_ref3){var name=_ref3.name,_ref3$options=_ref3.options,options=void 0===_ref3$options?{}:_ref3$options,effect=_ref3.effect;if("function"==typeof effect){var cleanupFn=effect({state,name,instance,options}),noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn)}}))}(),instance.update()},forceUpdate:function forceUpdate(){if(!isDestroyed){var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(areValidElements(reference,popper)){state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),"fixed"===state.options.strategy),popper:getLayoutRect(popper)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach((function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)}));for(var index=0;index=0?"x":"y"}function computeOffsets(_ref){var offsets,reference=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference.x+reference.width/2-element.width/2,commonY=reference.y+reference.height/2-element.height/2;switch(basePlacement){case enums.we:offsets={x:commonX,y:reference.y-element.height};break;case enums.I:offsets={x:commonX,y:reference.y+reference.height};break;case enums.F2:offsets={x:reference.x+reference.width,y:commonY};break;case enums.t$:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y}}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(null!=mainAxis){var len="y"===mainAxis?"height":"width";switch(variation){case enums.BL:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case enums.ut:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2)}}return offsets}const modifiers_popperOffsets={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement})},data:{}};var math_max=Math.max,math_min=Math.min,round=Math.round,unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(_ref2){var _Object$assign2,popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,_ref3=!0===roundOffsets?function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y,dpr=window.devicePixelRatio||1;return{x:round(round(x*dpr)/dpr)||0,y:round(round(y*dpr)/dpr)||0}}(offsets):"function"==typeof roundOffsets?roundOffsets(offsets):offsets,_ref3$x=_ref3.x,x=void 0===_ref3$x?0:_ref3$x,_ref3$y=_ref3.y,y=void 0===_ref3$y?0:_ref3$y,hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=enums.t$,sideY=enums.we,win=window;if(adaptive){var offsetParent=getOffsetParent(popper),heightProp="clientHeight",widthProp="clientWidth";offsetParent===getWindow(popper)&&"static"!==getComputedStyle(offsetParent=getDocumentElement(popper)).position&&"absolute"===position&&(heightProp="scrollHeight",widthProp="scrollWidth"),offsetParent=offsetParent,placement!==enums.we&&(placement!==enums.t$&&placement!==enums.F2||variation!==enums.ut)||(sideY=enums.I,y-=offsetParent[heightProp]-popperRect.height,y*=gpuAcceleration?1:-1),placement!==enums.t$&&(placement!==enums.we&&placement!==enums.I||variation!==enums.ut)||(sideX=enums.F2,x-=offsetParent[widthProp]-popperRect.width,x*=gpuAcceleration?1:-1)}var _Object$assign,commonStyles=Object.assign({position},adaptive&&unsetSides);return gpuAcceleration?Object.assign({},commonStyles,((_Object$assign={})[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign)):Object.assign({},commonStyles,((_Object$assign2={})[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}const modifiers_offset={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset=void 0===_options$offset?[0,0]:_options$offset,data=enums.Ct.reduce((function(acc,placement){return acc[placement]=function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement),invertDistance=[enums.t$,enums.we].indexOf(basePlacement)>=0?-1:1,_ref="function"==typeof offset?offset(Object.assign({},rects,{placement})):offset,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[enums.t$,enums.F2].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}(placement,state.rects,offset),acc}),{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;null!=state.modifiersData.popperOffsets&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data}};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(function(matched){return hash[matched]}))}var getOppositeVariationPlacement_hash={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,(function(matched){return getOppositeVariationPlacement_hash[matched]}))}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return!0;next=next.parentNode||next.host}while(next)}return!1}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getClientRectFromMixedType(element,clippingParent){return clippingParent===enums.Pj?rectToClientRect(function getViewportRect(element){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;return visualViewport&&(width=visualViewport.width,height=visualViewport.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(x=visualViewport.offsetLeft,y=visualViewport.offsetTop)),{width,height,x:x+getWindowScrollBarX(element),y}}(element)):isHTMLElement(clippingParent)?function getInnerBoundingClientRect(element){var rect=getBoundingClientRect(element);return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}(clippingParent):rectToClientRect(function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=null==(_element$ownerDocumen=element.ownerDocument)?void 0:_element$ownerDocumen.body,width=math_max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=math_max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return"rtl"===getComputedStyle(body||html).direction&&(x+=math_max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}(getDocumentElement(element)))}function getClippingRect(element,boundary,rootBoundary){var mainClippingParents="clippingParents"===boundary?function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element)),clipperElement=["absolute","fixed"].indexOf(getComputedStyle(element).position)>=0&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents.filter((function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&"body"!==getNodeName(clippingParent)})):[]}(element):[].concat(boundary),clippingParents=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents[0],clippingRect=clippingParents.reduce((function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent);return accRect.top=math_max(rect.top,accRect.top),accRect.right=math_min(rect.right,accRect.right),accRect.bottom=math_min(rect.bottom,accRect.bottom),accRect.left=math_max(rect.left,accRect.left),accRect}),getClientRectFromMixedType(element,firstClippingParent));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function mergePaddingObject(paddingObject){return Object.assign({},{top:0,right:0,bottom:0,left:0},paddingObject)}function expandToHashMap(value,keys){return keys.reduce((function(hashMap,key){return hashMap[key]=value,hashMap}),{})}function detectOverflow(state,options){void 0===options&&(options={});var _options=options,_options$placement=_options.placement,placement=void 0===_options$placement?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=void 0===_options$boundary?enums.zV:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=void 0===_options$rootBoundary?enums.Pj:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=void 0===_options$elementConte?enums.k5:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=void 0!==_options$altBoundary&&_options$altBoundary,_options$padding=_options.padding,padding=void 0===_options$padding?0:_options$padding,paddingObject=mergePaddingObject("number"!=typeof padding?padding:expandToHashMap(padding,enums.mv)),altContext=elementContext===enums.k5?enums.YP:enums.k5,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets)),elementClientRect=elementContext===enums.k5?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===enums.k5&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach((function(key){var multiply=[enums.F2,enums.I].indexOf(key)>=0?1:-1,axis=[enums.we,enums.I].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset[axis]*multiply}))}return overflowOffsets}function within(min,value,max){return math_max(min,math_min(value,max))}const modifiers_preventOverflow={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0!==_options$altAxis&&_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=void 0===_options$tether||_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=void 0===_options$tetherOffset?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=function getAltAxis(axis){return"x"===axis?"y":"x"}(mainAxis),popperOffsets=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue="function"==typeof tetherOffset?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,data={x:0,y:0};if(popperOffsets){if(checkMainAxis||checkAltAxis){var mainSide="y"===mainAxis?enums.we:enums.t$,altSide="y"===mainAxis?enums.I:enums.F2,len="y"===mainAxis?"height":"width",offset=popperOffsets[mainAxis],min=popperOffsets[mainAxis]+overflow[mainSide],max=popperOffsets[mainAxis]-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===enums.BL?referenceRect[len]:popperRect[len],maxLen=variation===enums.BL?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-tetherOffsetValue:minLen-arrowLen-arrowPaddingMin-tetherOffsetValue,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+tetherOffsetValue:maxLen+arrowLen+arrowPaddingMax+tetherOffsetValue,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?"y"===mainAxis?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=state.modifiersData.offset?state.modifiersData.offset[state.placement][mainAxis]:0,tetherMin=popperOffsets[mainAxis]+minOffset-offsetModifierValue-clientOffset,tetherMax=popperOffsets[mainAxis]+maxOffset-offsetModifierValue;if(checkMainAxis){var preventedOffset=within(tether?math_min(min,tetherMin):min,offset,tether?math_max(max,tetherMax):max);popperOffsets[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset}if(checkAltAxis){var _mainSide="x"===mainAxis?enums.we:enums.t$,_altSide="x"===mainAxis?enums.I:enums.F2,_offset=popperOffsets[altAxis],_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],_preventedOffset=within(tether?math_min(_min,tetherMin):_min,_offset,tether?math_max(_max,tetherMax):_max);popperOffsets[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset}}state.modifiersData[name]=data}},requiresIfExists:["offset"]};const modifiers_arrow={name:"arrow",enabled:!0,phase:"main",fn:function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),len=[enums.t$,enums.F2].indexOf(basePlacement)>=0?"height":"width";if(arrowElement&&popperOffsets){var paddingObject=function toPaddingObject(padding,state){return mergePaddingObject("number"!=typeof(padding="function"==typeof padding?padding(Object.assign({},state.rects,{placement:state.placement})):padding)?padding:expandToHashMap(padding,enums.mv))}(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp="y"===axis?enums.we:enums.t$,maxProp="y"===axis?enums.I:enums.F2,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len],startDiff=popperOffsets[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?"y"===axis?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min=paddingObject[minProp],max=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset=within(min,center,max),axisProp=axis;state.modifiersData[name]=((_state$modifiersData$={})[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$)}},effect:function arrow_effect(_ref2){var state=_ref2.state,_options$element=_ref2.options.element,arrowElement=void 0===_options$element?"[data-popper-arrow]":_options$element;null!=arrowElement&&("string"!=typeof arrowElement||(arrowElement=state.elements.popper.querySelector(arrowElement)))&&contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getSideOffsets(overflow,rect,preventedOffsets){return void 0===preventedOffsets&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return[enums.we,enums.F2,enums.I,enums.t$].some((function(side){return overflow[side]>=0}))}var popper_createPopper=popperGenerator({defaultModifiers:[eventListeners,modifiers_popperOffsets,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(_ref4){var state=_ref4.state,options=_ref4.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=void 0===_options$gpuAccelerat||_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=void 0===_options$adaptive||_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=void 0===_options$roundOffsets||_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration};null!=state.modifiersData.popperOffsets&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),null!=state.modifiersData.arrow&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach((function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];isHTMLElement(element)&&getNodeName(element)&&(Object.assign(element.style,style),Object.keys(attributes).forEach((function(name){var value=attributes[name];!1===value?element.removeAttribute(name):element.setAttribute(name,!0===value?"":value)})))}))},effect:function applyStyles_effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach((function(name){var element=state.elements[name],attributes=state.attributes[name]||{},style=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]).reduce((function(style,property){return style[property]="",style}),{});isHTMLElement(element)&&getNodeName(element)&&(Object.assign(element.style,style),Object.keys(attributes).forEach((function(attribute){element.removeAttribute(attribute)})))}))}},requires:["computeStyles"]},modifiers_offset,{name:"flip",enabled:!0,phase:"main",fn:function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=void 0===_options$mainAxis||_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=void 0===_options$altAxis||_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=void 0===_options$flipVariatio||_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),fallbackPlacements=specifiedFallbackPlacements||(basePlacement===preferredPlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===enums.d7)return[];var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}(preferredPlacement)),placements=[preferredPlacement].concat(fallbackPlacements).reduce((function(acc,placement){return acc.concat(getBasePlacement(placement)===enums.d7?function computeAutoPlacement(state,options){void 0===options&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=void 0===_options$allowedAutoP?enums.Ct:_options$allowedAutoP,variation=getVariation(placement),placements=variation?flipVariations?enums.bw:enums.bw.filter((function(placement){return getVariation(placement)===variation})):enums.mv,allowedPlacements=placements.filter((function(placement){return allowedAutoPlacements.indexOf(placement)>=0}));0===allowedPlacements.length&&(allowedPlacements=placements);var overflows=allowedPlacements.reduce((function(acc,placement){return acc[placement]=detectOverflow(state,{placement,boundary,rootBoundary,padding})[getBasePlacement(placement)],acc}),{});return Object.keys(overflows).sort((function(a,b){return overflows[a]-overflows[b]}))}(state,{placement,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement)}),[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements[0],i=0;i=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?enums.F2:enums.t$:isStartVariation?enums.I:enums.we;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every((function(check){return check}))){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks)}if(makeFallbackChecks)for(var _loop=function _loop(_i){var fittingPlacement=placements.find((function(placement){var checks=checksMap.get(placement);if(checks)return checks.slice(0,_i).every((function(check){return check}))}));if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=flipVariations?3:1;_i>0;_i--){if("break"===_loop(_i))break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},modifiers_preventOverflow,modifiers_arrow,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped})}}]})},"../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yHighlight.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_logger_6_4_4_node_modules_storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_addon_a11y_6_4_4_react_17_0_2_node_modules_storybook_addon_a11y_dist_esm_a11yHighlight_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yHighlight.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_addon_a11y_6_4_4_react_17_0_2_node_modules_storybook_addon_a11y_dist_esm_a11yHighlight_js__WEBPACK_IMPORTED_MODULE_0__).forEach((function(key){var value=_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_addon_a11y_6_4_4_react_17_0_2_node_modules_storybook_addon_a11y_dist_esm_a11yHighlight_js__WEBPACK_IMPORTED_MODULE_0__[key];switch(key){case"args":case"argTypes":return _home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_logger_6_4_4_node_modules_storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__.HZ)(loader,!1)}));case"parameters":return(0,_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.set.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js");var global_window=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-events@6.4.4/node_modules/@storybook/core-events/dist/esm/index.js"),constants=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/constants.js");module=__webpack_require__.hmd(module);var a11yHighlight_document=window_default().document;module&&module.hot;var channel=esm.KP.getChannel(),resetHighlight=function resetHighlight(){var id=constants.w_,sheetToBeRemoved=a11yHighlight_document.getElementById(id);sheetToBeRemoved&&sheetToBeRemoved.parentNode.removeChild(sheetToBeRemoved)};channel.on(dist_esm.STORY_CHANGED,resetHighlight),channel.on(constants.FP.HIGHLIGHT,(function highlight(infos){var id=constants.w_;resetHighlight();var elements=Array.from(new Set(infos.elements)),sheet=a11yHighlight_document.createElement("style");sheet.setAttribute("id",id),sheet.innerHTML=elements.map((function(target){return"".concat(target,"{\n ").concat(function highlightStyle(color){return"\n outline: 2px dashed ".concat(color,";\n outline-offset: 2px;\n box-shadow: 0 0 0 6px rgba(255,255,255,0.6);\n")}(infos.color),"\n }")})).join(" "),a11yHighlight_document.head.appendChild(sheet)}))},"../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/regenerator-runtime@0.13.9/node_modules/regenerator-runtime/runtime.js");var global__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_3__),_storybook_addons__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/constants.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}module=__webpack_require__.hmd(module);var document=global__WEBPACK_IMPORTED_MODULE_3___default().document,globalWindow=global__WEBPACK_IMPORTED_MODULE_3___default().window;module&&module.hot;var activeStoryId,channel=_storybook_addons__WEBPACK_IMPORTED_MODULE_5__.KP.getChannel(),active=!1,getElement=function getElement(){var storyRoot=document.getElementById("story-root");return storyRoot?storyRoot.childNodes:document.getElementById("root")},handleRequest=function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark((function _callee(storyId){var _yield$getParams;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,getParams(storyId);case 2:if(_yield$getParams=_context.sent,_yield$getParams.manual){_context.next=7;break}return _context.next=7,run(storyId);case 7:case"end":return _context.stop()}}),_callee)})));return function handleRequest(_x){return _ref.apply(this,arguments)}}(),run=function(){var _ref2=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(storyId){var input,axe,_input$element,element,config,_input$options,options,result;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return activeStoryId=storyId,_context2.prev=1,_context2.next=4,getParams(storyId);case 4:if(input=_context2.sent,active){_context2.next=18;break}return active=!0,channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.RUNNING),_context2.next=10,Promise.all([__webpack_require__.e(51),__webpack_require__.e(337)]).then(__webpack_require__.t.bind(__webpack_require__,"../../../node_modules/.pnpm/axe-core@4.3.5/node_modules/axe-core/axe.js",23));case 10:return axe=_context2.sent,_input$element=input.element,element=void 0===_input$element?getElement():_input$element,config=input.config,_input$options=input.options,options=void 0===_input$options?{}:_input$options,axe.reset(),config&&axe.configure(config),_context2.next=16,axe.run(element,options);case 16:result=_context2.sent,activeStoryId===storyId?channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.RESULT,result):(active=!1,run(activeStoryId));case 18:_context2.next=23;break;case 20:_context2.prev=20,_context2.t0=_context2.catch(1),channel.emit(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.ERROR,_context2.t0);case 23:return _context2.prev=23,active=!1,_context2.finish(23);case 26:case"end":return _context2.stop()}}),_callee2,null,[[1,20,23,26]])})));return function run(_x2){return _ref2.apply(this,arguments)}}(),getParams=function(){var _ref3=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(storyId){var _ref4,parameters;return regeneratorRuntime.wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.next=2,globalWindow.__STORYBOOK_STORY_STORE__.loadStory({storyId});case 2:if(_context3.t0=_context3.sent,_context3.t0){_context3.next=5;break}_context3.t0={};case 5:return _ref4=_context3.t0,parameters=_ref4.parameters,_context3.abrupt("return",parameters.a11y||{config:{},options:{restoreScroll:!0}});case 8:case"end":return _context3.stop()}}),_callee3)})));return function getParams(_x3){return _ref3.apply(this,arguments)}}();channel.on(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.REQUEST,handleRequest),channel.on(_constants__WEBPACK_IMPORTED_MODULE_4__.FP.MANUAL,run)},"../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_logger_6_4_4_node_modules_storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_addon_a11y_6_4_4_react_17_0_2_node_modules_storybook_addon_a11y_dist_esm_a11yRunner_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/a11yRunner.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_addon_a11y_6_4_4_react_17_0_2_node_modules_storybook_addon_a11y_dist_esm_a11yRunner_js__WEBPACK_IMPORTED_MODULE_0__).forEach((function(key){var value=_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_addon_a11y_6_4_4_react_17_0_2_node_modules_storybook_addon_a11y_dist_esm_a11yRunner_js__WEBPACK_IMPORTED_MODULE_0__[key];switch(key){case"args":case"argTypes":return _home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_logger_6_4_4_node_modules_storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__.HZ)(loader,!1)}));case"parameters":return(0,_home_runner_work_jetpack_jetpack_node_modules_pnpm_storybook_client_api_6_4_4_react_17_0_2_node_modules_storybook_client_api__WEBPACK_IMPORTED_MODULE_2__.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{w_:()=>HIGHLIGHT_STYLE_ID,FP:()=>EVENTS});var ADDON_ID="storybook/a11y",HIGHLIGHT_STYLE_ID=("".concat(ADDON_ID,"/panel"),"a11yHighlight"),EVENTS={RESULT:"".concat(ADDON_ID,"/result"),REQUEST:"".concat(ADDON_ID,"/request"),RUNNING:"".concat(ADDON_ID,"/running"),ERROR:"".concat(ADDON_ID,"/error"),MANUAL:"".concat(ADDON_ID,"/manual"),HIGHLIGHT:"".concat(ADDON_ID,"/highlight")}},"../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/index.js":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{VO:()=>withA11y});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js");var _templateObject,util_deprecate__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js"),util_deprecate__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(util_deprecate__WEBPACK_IMPORTED_MODULE_2__),ts_dedent__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js");__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-a11y@6.4.4_react@17.0.2/node_modules/@storybook/addon-a11y/dist/esm/constants.js");(module=__webpack_require__.hmd(module))&&module.hot;var withA11y=util_deprecate__WEBPACK_IMPORTED_MODULE_2___default()((function(storyFn,storyContext){return storyFn(storyContext)}),(0,ts_dedent__WEBPACK_IMPORTED_MODULE_4__.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n withA11y(options) is deprecated, please configure addon-a11y using the addParameter api:\n\n addParameters({\n a11y: options,\n });\n\n More at: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#removed-witha11y-decorator\n "]))))},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/index.js":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{action:()=>action,withActions:()=>withActions});"".concat("storybook/actions","/panel");var EVENT_ID="".concat("storybook/actions","/action-event"),v4=(__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/index.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/uuid-browser@3.1.0/node_modules/uuid-browser/v4.js")),v4_default=__webpack_require__.n(v4),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),config={depth:10,clearOnStoryChange:!0,limit:50};function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var findProto=function findProto(obj,callback){var proto=Object.getPrototypeOf(obj);return!proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=function isReactSyntheticEvent(e){return Boolean("object"===_typeof(e)&&e&&findProto(e,(function(proto){return/^Synthetic(?:Base)?Event$/.test(proto.constructor.name)}))&&"function"==typeof e.persist)},serializeArg=function serializeArg(a){if(isReactSyntheticEvent(a)){var e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();var viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=null==viewDescriptor?void 0:viewDescriptor.value;return"object"===_typeof(view)&&"Window"===(null==view?void 0:view.constructor.name)&&Object.defineProperty(e,"view",Object.assign({},viewDescriptor,{value:Object.create(view.constructor.prototype)})),e}return a};function action(name){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},actionOptions=Object.assign({},config,options),handler=function actionHandler(){for(var channel=esm.KP.getChannel(),id=v4_default()(),minDepth=5,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:Object.assign({},actionOptions,{maxDepth:minDepth+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1})};channel.emit(EVENT_ID,actionDisplayToEmit)};return handler}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1?_len-1:0),_key=1;_key<_len;_key++)handles[_key-1]=arguments[_key];var actionsObject=actionsFn.apply(void 0,handles);return Object.entries(actionsObject).map((function(_ref){var _ref2=withActions_slicedToArray(_ref,2),key=_ref2[0],action=_ref2[1],_key$match2=withActions_slicedToArray(key.match(delegateEventSplitter),3),eventName=(_key$match2[0],_key$match2[1]),selector=_key$match2[2];return{eventName,handler:function handler(e){selector&&!hasMatchInAncestry(e.target,selector)||action(e)}}}))},applyEventHandlers=browser_default()((function(actionsFn){for(var _len2=arguments.length,handles=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)handles[_key2-1]=arguments[_key2];(0,hooks.d4)((function(){if(null!=root){var handlers=createHandlers.apply(void 0,[actionsFn].concat(handles));return handlers.forEach((function(_ref3){var eventName=_ref3.eventName,handler=_ref3.handler;return root.addEventListener(eventName,handler)})),function(){return handlers.forEach((function(_ref4){var eventName=_ref4.eventName,handler=_ref4.handler;return root.removeEventListener(eventName,handler)}))}}}),[root,actionsFn,handles])}),(0,ts_dedent_esm.C)(withActions_templateObject||(withActions_templateObject=function withActions_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n withActions(options) is deprecated, please configure addon-actions using the addParameter api:\n\n addParameters({\n actions: {\n handles: options\n },\n });\n "])))),withActions=function makeDecorator(_ref){var name=_ref.name,parameterName=_ref.parameterName,wrapper=_ref.wrapper,_ref$skipIfNoParamete=_ref.skipIfNoParametersOrOptions,skipIfNoParametersOrOptions=void 0!==_ref$skipIfNoParamete&&_ref$skipIfNoParamete,decorator=function decorator(options){return function(storyFn,context){var parameters=context.parameters&&context.parameters[parameterName];return parameters&¶meters.disable?storyFn(context):!skipIfNoParametersOrOptions||options||parameters?wrapper(storyFn,context,{options,parameters}):storyFn(context)}};return function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return"function"==typeof args[0]?decorator().apply(void 0,args):function(){if(arguments.length>1)return args.length>1?decorator(args).apply(void 0,arguments):decorator.apply(void 0,args).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(name,"() is not allowed,\n instead use addDecorator(").concat(name,") and pass options with the '").concat(parameterName,"' parameter"))}}}({name:"withActions",parameterName:"actions",skipIfNoParametersOrOptions:!0,wrapper:function wrapper(getStory,context,_ref5){var parameters=_ref5.parameters,options=_ref5.options;return function applyDeprecatedOptions(actionsFn,options){options&&applyEventHandlers(actionsFn,options)}(actions,options),parameters&¶meters.handles&&applyEventHandlers.apply(void 0,[actions].concat(_toConsumableArray(parameters.handles))),getStory(context)}});(module=__webpack_require__.hmd(module))&&module.hot},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionDisplay.js":()=>{},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionOptions.js":()=>{},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionsFunction.js":()=>{},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionsMap.js":()=>{},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js":()=>{},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js":()=>{},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _ActionDisplay__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionDisplay.js");__webpack_require__.o(_ActionDisplay__WEBPACK_IMPORTED_MODULE_0__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _ActionDisplay__WEBPACK_IMPORTED_MODULE_0__.action}}),__webpack_require__.o(_ActionDisplay__WEBPACK_IMPORTED_MODULE_0__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _ActionDisplay__WEBPACK_IMPORTED_MODULE_0__.withActions}});var _ActionsFunction__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionsFunction.js");__webpack_require__.o(_ActionsFunction__WEBPACK_IMPORTED_MODULE_1__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _ActionsFunction__WEBPACK_IMPORTED_MODULE_1__.action}}),__webpack_require__.o(_ActionsFunction__WEBPACK_IMPORTED_MODULE_1__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _ActionsFunction__WEBPACK_IMPORTED_MODULE_1__.withActions}});var _ActionOptions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionOptions.js");__webpack_require__.o(_ActionOptions__WEBPACK_IMPORTED_MODULE_2__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _ActionOptions__WEBPACK_IMPORTED_MODULE_2__.action}}),__webpack_require__.o(_ActionOptions__WEBPACK_IMPORTED_MODULE_2__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _ActionOptions__WEBPACK_IMPORTED_MODULE_2__.withActions}});var _ActionsMap__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/ActionsMap.js");__webpack_require__.o(_ActionsMap__WEBPACK_IMPORTED_MODULE_3__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _ActionsMap__WEBPACK_IMPORTED_MODULE_3__.action}}),__webpack_require__.o(_ActionsMap__WEBPACK_IMPORTED_MODULE_3__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _ActionsMap__WEBPACK_IMPORTED_MODULE_3__.withActions}});var _DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/DecoratorFunction.js");__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__.action}}),__webpack_require__.o(_DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _DecoratorFunction__WEBPACK_IMPORTED_MODULE_4__.withActions}});var _HandlerFunction__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/models/HandlerFunction.js");__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_5__,"action")&&__webpack_require__.d(__webpack_exports__,{action:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_5__.action}}),__webpack_require__.o(_HandlerFunction__WEBPACK_IMPORTED_MODULE_5__,"withActions")&&__webpack_require__.d(__webpack_exports__,{withActions:function(){return _HandlerFunction__WEBPACK_IMPORTED_MODULE_5__.withActions}})},"../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/preset/addArgs.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var addArgs_namespaceObject={};__webpack_require__.r(addArgs_namespaceObject),__webpack_require__.d(addArgs_namespaceObject,{argsEnhancers:()=>argsEnhancers});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),dist_esm=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/index.js"));function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{"use strict";var addDecorator_namespaceObject={};__webpack_require__.r(addDecorator_namespaceObject),__webpack_require__.d(addDecorator_namespaceObject,{decorators:()=>decorators});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),decorators=[__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-actions@6.4.4_react@17.0.2/node_modules/@storybook/addon-actions/dist/esm/index.js").withActions];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addDecorator_namespaceObject).forEach((function(key){var value=addDecorator_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";var addDecorator_namespaceObject={};__webpack_require__.r(addDecorator_namespaceObject),__webpack_require__.d(addDecorator_namespaceObject,{decorators:()=>decorators});var _templateObject,ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),hooks=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js")),global_window=("".concat("storybook/background","/update"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window),ts_dedent_esm=__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js");function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var withGrid_templateObject,helpers_document=window_default().document,helpers_window=window_default().window,clearStyles=function clearStyles(selector){(Array.isArray(selector)?selector:[selector]).forEach(clearStyle)},clearStyle=function clearStyle(selector){var element=helpers_document.getElementById(selector);element&&element.parentElement.removeChild(element)},browser=__webpack_require__("../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js");var deprecatedCellSizeWarning=__webpack_require__.n(browser)()((function(){}),(0,ts_dedent_esm.C)(withGrid_templateObject||(withGrid_templateObject=function withGrid_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Backgrounds Addon: The cell size parameter has been changed.\n\n - parameters.grid.cellSize should now be parameters.backgrounds.grid.cellSize\n See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-grid-parameter\n "])))),decorators=[function withGrid(StoryFn,context){var _globals$BACKGROUNDS_,_parameters$grid,_gridParameters$offse,_gridParameters$offse2,gridSize,globals=context.globals,parameters=context.parameters,gridParameters=parameters.backgrounds.grid,isActive=!0===(null===(_globals$BACKGROUNDS_=globals.backgrounds)||void 0===_globals$BACKGROUNDS_?void 0:_globals$BACKGROUNDS_.grid)&&!0!==gridParameters.disable,cellAmount=gridParameters.cellAmount,cellSize=gridParameters.cellSize,opacity=gridParameters.opacity,isInDocs="docs"===context.viewMode;null!==(_parameters$grid=parameters.grid)&&void 0!==_parameters$grid&&_parameters$grid.cellSize?(gridSize=parameters.grid.cellSize,deprecatedCellSizeWarning()):gridSize=cellSize;var defaultOffset=void 0===parameters.layout||"padded"===parameters.layout?16:0,offsetX=null!==(_gridParameters$offse=gridParameters.offsetX)&&void 0!==_gridParameters$offse?_gridParameters$offse:isInDocs?20:defaultOffset,offsetY=null!==(_gridParameters$offse2=gridParameters.offsetY)&&void 0!==_gridParameters$offse2?_gridParameters$offse2:isInDocs?20:defaultOffset,gridStyles=(0,hooks.Ye)((function(){var selector="docs"===context.viewMode?"#anchor--".concat(context.id," .docs-story"):".sb-show-main",backgroundSize=["".concat(gridSize*cellAmount,"px ").concat(gridSize*cellAmount,"px"),"".concat(gridSize*cellAmount,"px ").concat(gridSize*cellAmount,"px"),"".concat(gridSize,"px ").concat(gridSize,"px"),"".concat(gridSize,"px ").concat(gridSize,"px")].join(", ");return"\n ".concat(selector," {\n background-size: ").concat(backgroundSize," !important;\n background-position: ").concat(offsetX,"px ").concat(offsetY,"px, ").concat(offsetX,"px ").concat(offsetY,"px, ").concat(offsetX,"px ").concat(offsetY,"px, ").concat(offsetX,"px ").concat(offsetY,"px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ").concat(opacity,") 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ").concat(opacity,") 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ").concat(opacity/2,") 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ").concat(opacity/2,") 1px, transparent 1px) !important;\n }\n ")}),[gridSize]);return(0,hooks.d4)((function(){var selectorId="docs"===context.viewMode?"addon-backgrounds-grid-docs-".concat(context.id):"addon-backgrounds-grid";isActive?function addGridStyle(selector,css){var existingStyle=helpers_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=helpers_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css,helpers_document.head.appendChild(style)}}(selectorId,gridStyles):clearStyles(selectorId)}),[isActive,gridStyles,context]),StoryFn()},function withBackground(StoryFn,context){var _globals$BACKGROUNDS_,globals=context.globals,parameters=context.parameters,globalsBackgroundColor=null===(_globals$BACKGROUNDS_=globals.backgrounds)||void 0===_globals$BACKGROUNDS_?void 0:_globals$BACKGROUNDS_.value,backgroundsConfig=parameters.backgrounds,selectedBackgroundColor=(0,hooks.Ye)((function(){return backgroundsConfig.disable?"transparent":function getBackgroundColorByName(currentSelectedValue){var backgrounds=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],defaultName=arguments.length>2?arguments[2]:void 0;if("transparent"===currentSelectedValue)return"transparent";if(backgrounds.find((function(background){return background.value===currentSelectedValue})))return currentSelectedValue;var defaultBackground=backgrounds.find((function(background){return background.name===defaultName}));if(defaultBackground)return defaultBackground.value;if(defaultName){var availableColors=backgrounds.map((function(background){return background.name})).join(", ");esm.kg.warn((0,ts_dedent_esm.C)(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n Backgrounds Addon: could not find the default color "','".\n These are the available colors for your story based on your configuration:\n ',".\n "])),defaultName,availableColors))}return"transparent"}(globalsBackgroundColor,backgroundsConfig.values,backgroundsConfig.default)}),[backgroundsConfig,globalsBackgroundColor]),isActive=(0,hooks.Ye)((function(){return selectedBackgroundColor&&"transparent"!==selectedBackgroundColor}),[selectedBackgroundColor]),selector="docs"===context.viewMode?"#anchor--".concat(context.id," .docs-story"):".sb-show-main",backgroundStyles=(0,hooks.Ye)((function(){return"\n ".concat(selector," {\n background: ").concat(selectedBackgroundColor," !important;\n ").concat(function isReduceMotionEnabled(){return helpers_window.matchMedia("(prefers-reduced-motion: reduce)").matches}()?"":"transition: background-color 0.3s;","\n }\n ")}),[selectedBackgroundColor,selector]);return(0,hooks.d4)((function(){var selectorId="docs"===context.viewMode?"addon-backgrounds-docs-".concat(context.id):"addon-backgrounds-color";isActive?function addBackgroundStyle(selector,css,storyId){var existingStyle=helpers_document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=helpers_document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css;var gridStyleSelector="addon-backgrounds-grid".concat(storyId?"-docs-".concat(storyId):""),existingGridStyle=helpers_document.getElementById(gridStyleSelector);existingGridStyle?existingGridStyle.parentElement.insertBefore(style,existingGridStyle):helpers_document.head.appendChild(style)}}(selectorId,backgroundStyles,"docs"===context.viewMode?context.id:null):clearStyles(selectorId)}),[isActive,backgroundStyles,context]),StoryFn()}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addDecorator_namespaceObject).forEach((function(key){var value=addDecorator_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";var addParameter_namespaceObject={};__webpack_require__.r(addParameter_namespaceObject),__webpack_require__.d(addParameter_namespaceObject,{parameters:()=>parameters});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),parameters={backgrounds:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addParameter_namespaceObject).forEach((function(key){var value=addParameter_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AddContext:()=>AddContext,Anchor:()=>Anchor,AnchorMdx:()=>AnchorMdx,ArgsTable:()=>ArgsTable,CURRENT_SELECTION:()=>CURRENT_SELECTION,Canvas:()=>Canvas,CodeOrSourceMdx:()=>CodeOrSourceMdx,ColorItem:()=>ColorItem,ColorPalette:()=>ColorPalette,ComponentsTable:()=>ComponentsTable,Description:()=>DescriptionContainer,DescriptionType:()=>DescriptionType,DocsContainer:()=>DocsContainer,DocsContext:()=>DocsContext,DocsPage:()=>DocsPage,DocsStory:()=>DocsStory,HeaderMdx:()=>HeaderMdx,HeadersMdx:()=>HeadersMdx,Heading:()=>Heading,IconGallery:()=>IconGallery,IconItem:()=>IconItem,Meta:()=>Meta,PRIMARY_STORY:()=>PRIMARY_STORY,Preview:()=>Preview_Preview,Primary:()=>Primary,Props:()=>Props,Source:()=>Source,SourceContainer:()=>SourceContainer,SourceContext:()=>SourceContext,SourceState:()=>SourceState,Stories:()=>Stories,Story:()=>Story,StoryTable:()=>StoryTable,Subheading:()=>Subheading,Subtitle:()=>Subtitle,Title:()=>Title,Typeset:()=>Typeset,Wrapper:()=>Wrapper_Wrapper,anchorBlockIdFromId:()=>anchorBlockIdFromId,assertIsFn:()=>assertIsFn,extractComponentArgTypes:()=>extractComponentArgTypes,extractTitle:()=>extractTitle,getComponent:()=>getComponent,getDescriptionProps:()=>getDescriptionProps,getSourceProps:()=>getSourceProps,getStoryId:()=>getStoryId,getStoryProps:()=>getStoryProps,lookupStoryId:()=>lookupStoryId,storyBlockIdFromId:()=>storyBlockIdFromId});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.values.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js");var react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),polished_esm=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),getBlockBackgroundStyle=function getBlockBackgroundStyle(theme){return{borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:"1px solid ".concat(theme.appBorderColor)}},DocumentFormatting=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/DocumentFormatting.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ItemTitle=esm.zo.div((function(_ref){var theme=_ref.theme;return{fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}})),ItemSubtitle=esm.zo.div((function(_ref2){var theme=_ref2.theme;return{color:"light"===theme.base?(0,polished_esm.DZ)(.2,theme.color.defaultText):(0,polished_esm.DZ)(.6,theme.color.defaultText)}})),ItemDescription=esm.zo.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=esm.zo.div((function(_ref3){var theme=_ref3.theme;return{flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?(0,polished_esm.DZ)(.4,theme.color.defaultText):(0,polished_esm.DZ)(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}})),SwatchLabels=esm.zo.div({display:"flex",flexDirection:"row"}),Swatch=esm.zo.div((function(_ref4){return{position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:_ref4.background,content:'""'}}})),SwatchColors=esm.zo.div((function(_ref5){var theme=_ref5.theme;return Object.assign({},getBlockBackgroundStyle(theme),{display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})})),SwatchSpecimen=esm.zo.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=esm.zo.div({flex:1,display:"flex",flexDirection:"row"}),Item=esm.zo.div({display:"flex",alignItems:"flex-start"}),ListName=esm.zo.div({flex:"0 0 30%"}),ListSwatches=esm.zo.div({flex:1}),ListHeading=esm.zo.div((function(_ref6){var theme=_ref6.theme;return{display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?(0,polished_esm.DZ)(.4,theme.color.defaultText):(0,polished_esm.DZ)(.6,theme.color.defaultText)}})),List=esm.zo.div((function(_ref7){return{fontSize:_ref7.theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}}));function renderSwatch(color,index){return react.createElement(Swatch,{key:"".concat(color,"-").concat(index),title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return react.createElement(SwatchLabel,{key:"".concat(color,"-").concat(index),title:color},react.createElement("div",null,color,colorDescription&&react.createElement("span",null,colorDescription)))}function renderSwatchSpecimen(colors){return Array.isArray(colors)?react.createElement(SwatchSpecimen,null,react.createElement(SwatchColors,null,colors.map((function(color,index){return renderSwatch(color,index)}))),react.createElement(SwatchLabels,null,colors.map((function(color,index){return renderSwatchLabel(color,index)})))):react.createElement(SwatchSpecimen,null,react.createElement(SwatchColors,null,Object.values(colors).map((function(color,index){return renderSwatch(color,index)}))),react.createElement(SwatchLabels,null,Object.keys(colors).map((function(color,index){return renderSwatchLabel(color,index,colors[color])}))))}renderSwatch.displayName="renderSwatch",renderSwatchLabel.displayName="renderSwatchLabel",renderSwatchSpecimen.displayName="renderSwatchSpecimen";var ColorItem=function ColorItem(_ref8){var title=_ref8.title,subtitle=_ref8.subtitle,colors=_ref8.colors;return react.createElement(Item,null,react.createElement(ItemDescription,null,react.createElement(ItemTitle,null,title),react.createElement(ItemSubtitle,null,subtitle)),react.createElement(Swatches,null,renderSwatchSpecimen(colors)))};ColorItem.displayName="ColorItem";var ColorPalette=function ColorPalette(_ref9){var children=_ref9.children,props=_objectWithoutProperties(_ref9,["children"]);return react.createElement(DocumentFormatting.i9,null,react.createElement(List,_extends({},props,{className:"docblock-colorpalette"}),react.createElement(ListHeading,null,react.createElement(ListName,null,"Name"),react.createElement(ListSwatches,null,"Swatches")),children))};ColorPalette.displayName="ColorPalette";__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js");function IconGallery_extends(){return IconGallery_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ItemLabel=esm.zo.div((function(_ref){var theme=_ref.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}})),ItemSpecimen=esm.zo.div((function(_ref2){var theme=_ref2.theme;return Object.assign({},getBlockBackgroundStyle(theme),{overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})})),IconGallery_Item=esm.zo.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),IconGallery_List=esm.zo.div({display:"flex",flexFlow:"row wrap"}),IconItem=function IconItem(_ref3){var name=_ref3.name,children=_ref3.children;return react.createElement(IconGallery_Item,null,react.createElement(ItemSpecimen,null,children),react.createElement(ItemLabel,null,name))};IconItem.displayName="IconItem";var IconGallery=function IconGallery(_ref4){var children=_ref4.children,props=IconGallery_objectWithoutProperties(_ref4,["children"]);return react.createElement(DocumentFormatting.i9,null,react.createElement(IconGallery_List,IconGallery_extends({},props,{className:"docblock-icongallery"}),children))};IconGallery.displayName="IconGallery";var shared=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/shared.js");function Typeset_extends(){return Typeset_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Label=esm.zo.div((function(_ref){var theme=_ref.theme;return{marginRight:30,fontSize:"".concat(theme.typography.size.s1,"px"),color:"light"===theme.base?(0,polished_esm.DZ)(.4,theme.color.defaultText):(0,polished_esm.DZ)(.6,theme.color.defaultText)}})),Sample=esm.zo.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=esm.zo.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper=esm.zo.div(shared.YX,(function(_ref2){var theme=_ref2.theme;return Object.assign({},getBlockBackgroundStyle(theme),{margin:"25px 0 40px",padding:"30px 20px"})})),Typeset=function Typeset(_ref3){var fontFamily=_ref3.fontFamily,fontSizes=_ref3.fontSizes,fontWeight=_ref3.fontWeight,sampleText=_ref3.sampleText,props=Typeset_objectWithoutProperties(_ref3,["fontFamily","fontSizes","fontWeight","sampleText"]);return react.createElement(Wrapper,Typeset_extends({},props,{className:"docblock-typeset"}),fontSizes.map((function(size){return react.createElement(TypeSpecimen,{key:size},react.createElement(Label,null,size),react.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||"Was he a beast if music could move him so?"))})))};Typeset.displayName="Typeset";var anchorBlockIdFromId=function anchorBlockIdFromId(storyId){return"anchor--".concat(storyId)},Anchor=function Anchor(_ref){var storyId=_ref.storyId,children=_ref.children;return react.createElement("div",{id:anchorBlockIdFromId(storyId)},children)},mapValues=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js")),mapValues_default=__webpack_require__.n(mapValues),dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/index.js"),addons_dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),filterArgTypes=__webpack_require__("../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/filterArgTypes.js"),core_events_dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-events@6.4.4/node_modules/@storybook/core-events/dist/esm/index.js"),global_window=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window);void 0===global_window.window.__DOCS_CONTEXT__&&(global_window.window.__DOCS_CONTEXT__=(0,react.createContext)({}),global_window.window.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=global_window.window.__DOCS_CONTEXT__,CURRENT_SELECTION=".",PRIMARY_STORY="^",getComponentName=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),function getComponentName(component){if(component)return"string"==typeof component?component.includes("-")?function titleCase(str){return str.split("-").map((function(part){return part.charAt(0).toUpperCase()+part.slice(1)})).join("")}(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name});function scrollToElement(element){var block=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";element.scrollIntoView({behavior:"smooth",block,inline:"nearest"})}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js");var react_dist_esm=__webpack_require__("../../../node_modules/.pnpm/@mdx-js+react@1.6.22_react@17.0.2/node_modules/@mdx-js/react/dist/esm.js");__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.reflect.construct.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function IFrame_extends(){return IFrame_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var EventSource=window_default().EventSource,CONFIG_TYPE=window_default().CONFIG_TYPE,LoaderWrapper=esm.zo.div((function(_ref){var _ref$size=_ref.size,size=void 0===_ref$size?32:_ref$size;return{borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-size/2,marginLeft:-size/2,height:size,width:size,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:"".concat(rotate360," 0.7s linear infinite"),mixBlendMode:"difference"}})),ProgressWrapper=esm.zo.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=esm.zo.div((function(_ref2){var theme=_ref2.theme;return{position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:(0,polished_esm.DZ)(.8,theme.color.secondary),overflow:"hidden",cursor:"progress"}})),ProgressBar=esm.zo.div((function(_ref3){return{position:"absolute",top:0,left:0,height:"100%",background:_ref3.theme.color.secondary}})),ProgressMessage=esm.zo.div((function(_ref4){var theme=_ref4.theme;return{minHeight:"2em",fontSize:"".concat(theme.typography.size.s1,"px"),color:theme.barTextColor}})),ErrorIcon=(0,esm.zo)(icon.P)((function(_ref5){return{width:20,height:20,marginBottom:"0.5rem",color:_ref5.theme.color.mediumdark}})),ellipsis=(0,emotion_react_browser_esm.F4)(Loader_templateObject||(Loader_templateObject=function Loader_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(['\n from { content: "..." }\n 33% { content: "." }\n 66% { content: ".." }\n to { content: "..." }\n']))),Ellipsis=esm.zo.span({"&::after":{content:"'...'",animation:"".concat(ellipsis," 1s linear infinite"),animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),PureLoader=function PureLoader(_ref6){var progress=_ref6.progress,error=_ref6.error,size=_ref6.size,props=Loader_objectWithoutProperties(_ref6,["progress","error","size"]);if(error)return react.createElement(ProgressWrapper,Loader_extends({"aria-label":error.toString(),"aria-live":"polite",role:"status"},props),react.createElement(ErrorIcon,{icon:"lightningoff"}),react.createElement(ProgressMessage,null,error.message));if(progress){var value=progress.value,modules=progress.modules,message=progress.message;return modules&&(message+=" ".concat(modules.complete," / ").concat(modules.total," modules")),react.createElement(ProgressWrapper,Loader_extends({"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":100*value,"aria-valuetext":message,role:"progressbar"},props),react.createElement(ProgressTrack,null,react.createElement(ProgressBar,{style:{width:"".concat(100*value,"%")}})),react.createElement(ProgressMessage,null,message,value<1&&react.createElement(Ellipsis,{key:message})))}return react.createElement(LoaderWrapper,Loader_extends({"aria-label":"Content is loading...","aria-live":"polite",role:"status",size},props))};PureLoader.displayName="PureLoader";var Loader=function Loader(props){var _useState2=_slicedToArray((0,react.useState)(void 0),2),progress=_useState2[0],setProgress=_useState2[1],_useState4=_slicedToArray((0,react.useState)(void 0),2),error=_useState4[0],setError=_useState4[1];return(0,react.useEffect)((function(){if("DEVELOPMENT"===CONFIG_TYPE&&EventSource){var lastProgress,eventSource=new EventSource("/progress");return eventSource.onmessage=function(event){try{lastProgress=JSON.parse(event.data),setProgress(lastProgress)}catch(e){setError(e),eventSource.close()}},eventSource.onerror=function(){lastProgress&&1!==lastProgress.value&&setError(new Error("Connection closed")),eventSource.close()},function(){return eventSource.close()}}}),[]),react.createElement(PureLoader,Loader_extends({progress,error},props))};function Story_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function Story_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}Loader.displayName="Loader";var StoryError;!function(StoryError){StoryError.NO_STORY="No component or story to display"}(StoryError||(StoryError={}));var InlineStory=function InlineStory(_ref){var storyFn=_ref.storyFn,height=_ref.height,id=_ref.id;return react.createElement(react.Fragment,null,height?react.createElement("style",null,"#story--".concat(id," { min-height: ").concat(height,"; transform: translateZ(0); overflow: auto }")):null,react.createElement(react.Fragment,null,storyFn?(0,react.createElement)(storyFn):react.createElement(EmptyBlock.V,null,function MISSING_STORY(id){return id?'Story "'.concat(id,"\" doesn't exist."):StoryError.NO_STORY}(id))))};InlineStory.displayName="InlineStory";var IFrameStory=function IFrameStory(_ref2){var id=_ref2.id,title=_ref2.title,_ref2$height=_ref2.height,height=void 0===_ref2$height?"500px":_ref2$height;return react.createElement("div",{style:{width:"100%",height}},react.createElement(ZoomContext.Consumer,null,(function(_ref3){var scale=_ref3.scale;return react.createElement(IFrame,{key:"iframe",id:"iframe--".concat(id),title,src:"".concat("iframe.html","?id=").concat(id,"&viewMode=story"),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}})})))};IFrameStory.displayName="IFrameStory";var Story_Story=function Story(_ref4){_ref4.children;var error=_ref4.error,inline=_ref4.inline,props=Story_objectWithoutProperties(_ref4,["children","error","inline"]),id=props.id,title=props.title,height=props.height;return error?react.createElement(EmptyBlock.V,null,error):inline?react.createElement(InlineStory,props):react.createElement(IFrameStory,{id,title,height})},StorySkeleton=function StorySkeleton(){return react.createElement(Loader,null)};StorySkeleton.displayName="StorySkeleton";var dist=__webpack_require__("../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/index.js");__webpack_require__("../../../node_modules/.pnpm/regenerator-runtime@0.13.9/node_modules/regenerator-runtime/runtime.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useStory_slicedToArray(arr,i){return function useStory_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function useStory_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function useStory_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return useStory_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return useStory_arrayLikeToArray(o,minLen)}(arr,i)||function useStory_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function useStory_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"}})))}Promise.all([storyFnRan,rendered]).then((function(){channel.emit(core_events_dist_esm.default.STORY_RENDERED,storyId)}))}return react.createElement("div",{id:storyBlockIdFromId(story.id)},react.createElement(react_dist_esm.Zo,{components:dist_esm.ne},react.createElement(Story_Story,storyProps)))};function ArgsTable_extends(){return ArgsTable_extends=Object.assign||function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,id=_ref3.id,storyById=_ref3.storyById,_ref4=props,of=_ref4.of,_ref5=props,story=_ref5.story,_storyById2=storyById(id),component=_storyById2.component;if(isShortcut(of)||isShortcut(story))return component||null;if(!of)throw new Error(dist_esm.ArgsTableError.NO_COMPONENT);return of},addComponentTabs=function addComponentTabs(tabs,components,context,include,exclude,sort){return Object.assign({},tabs,mapValues_default()(components,(function(comp){return{rows:extractComponentArgTypes(comp,context,include,exclude),sort}})))},StoryTable=function StoryTable(props){var context=(0,react.useContext)(DocsContext),currentId=context.id,componentStories=context.componentStories,storyName=props.story,component=props.component,subcomponents=props.subcomponents,showComponent=props.showComponent,include=props.include,exclude=props.exclude,sort=props.sort;try{var storyId;switch(storyName){case CURRENT_SELECTION:storyId=currentId;break;case PRIMARY_STORY:storyId=componentStories()[0].id;break;default:storyId=lookupStoryId(storyName,context)}var story=useStory(storyId,context),_useArgs=function useArgs(storyId,context){var channel=addons_dist_esm.KP.getChannel(),story=context.storyById(storyId);if(!story)throw new Error("Unknown story: ".concat(storyId));var storyContext=context.getStoryContext(story),_useState2=ArgsTable_slicedToArray((0,react.useState)(storyContext.args),2),args=_useState2[0],setArgs=_useState2[1];return(0,react.useEffect)((function(){var cb=function cb(changed){changed.storyId===storyId&&setArgs(changed.args)};return channel.on(core_events_dist_esm.default.STORY_ARGS_UPDATED,cb),function(){return channel.off(core_events_dist_esm.default.STORY_ARGS_UPDATED,cb)}}),[storyId]),[args,(0,react.useCallback)((function(updatedArgs){return channel.emit(core_events_dist_esm.default.UPDATE_STORY_ARGS,{storyId,updatedArgs})}),[storyId]),(0,react.useCallback)((function(argNames){return channel.emit(core_events_dist_esm.default.RESET_STORY_ARGS,{storyId,argNames})}),[storyId])]}(storyId,context),_useArgs2=ArgsTable_slicedToArray(_useArgs,3),args=_useArgs2[0],updateArgs=_useArgs2[1],resetArgs=_useArgs2[2];if(!story)return react.createElement(dist_esm.ArgsTable,{isLoading:!0,updateArgs,resetArgs});var argTypes=(0,filterArgTypes.h)(story.argTypes,include,exclude),mainLabel=getComponentName(component)||"Story",tabs=ArgsTable_defineProperty({},mainLabel,{rows:argTypes,args,updateArgs,resetArgs}),storyHasArgsWithControls=argTypes&&Object.values(argTypes).find((function(v){return!(null==v||!v.control)}));if(storyHasArgsWithControls||(updateArgs=null,resetArgs=null,tabs={}),!component||storyHasArgsWithControls&&!showComponent||(tabs=addComponentTabs(tabs,ArgsTable_defineProperty({},mainLabel,component),context,include,exclude)),subcomponents){if(Array.isArray(subcomponents))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");tabs=addComponentTabs(tabs,subcomponents,context,include,exclude)}return react.createElement(dist_esm.TabbedArgsTable,{tabs,sort})}catch(err){return react.createElement(dist_esm.ArgsTable,{error:err.message})}},ComponentsTable=function ComponentsTable(props){var context=(0,react.useContext)(DocsContext),components=props.components,include=props.include,exclude=props.exclude,sort=props.sort,tabs=addComponentTabs({},components,context,include,exclude);return react.createElement(dist_esm.TabbedArgsTable,{tabs,sort})},ArgsTable=function ArgsTable(props){var context=(0,react.useContext)(DocsContext),id=context.id,_storyById3=(0,context.storyById)(id),controls=_storyById3.parameters.controls,subcomponents=_storyById3.subcomponents,_ref6=props,include=_ref6.include,exclude=_ref6.exclude,components=_ref6.components,sortProp=_ref6.sort,storyName=props.story,sort=sortProp||(null==controls?void 0:controls.sort),main=getComponent(props,context);if(storyName)return react.createElement(StoryTable,ArgsTable_extends({},props,{component:main,subcomponents,sort}));if(!components&&!subcomponents){var mainProps;try{mainProps={rows:extractComponentArgTypes(main,context,include,exclude)}}catch(err){mainProps={error:err.message}}return react.createElement(dist_esm.ArgsTable,ArgsTable_extends({},mainProps,{sort}))}if(components)return react.createElement(ComponentsTable,ArgsTable_extends({},props,{components,sort}));var mainLabel=getComponentName(main);return react.createElement(ComponentsTable,ArgsTable_extends({},props,{components:Object.assign(ArgsTable_defineProperty({},mainLabel,main),subcomponents),sort}))};ArgsTable.defaultProps={of:CURRENT_SELECTION};__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js");var blocks_Source=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/Source.js"),ActionBar=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/ActionBar/ActionBar.js"),bar=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/bar/bar.js"),bar_button=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/bar/button.js");function Toolbar_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function Toolbar_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Zoom=function Zoom(_ref){var zoom=_ref.zoom,resetZoom=_ref.resetZoom;return react.createElement(react.Fragment,null,react.createElement(bar_button.hU,{key:"zoomin",onClick:function onClick(e){e.preventDefault(),zoom(.8)},title:"Zoom in"},react.createElement(icon.P,{icon:"zoom"})),react.createElement(bar_button.hU,{key:"zoomout",onClick:function onClick(e){e.preventDefault(),zoom(1.25)},title:"Zoom out"},react.createElement(icon.P,{icon:"zoomout"})),react.createElement(bar_button.hU,{key:"zoomreset",onClick:function onClick(e){e.preventDefault(),resetZoom()},title:"Reset zoom"},react.createElement(icon.P,{icon:"zoomreset"})))},Eject=function Eject(_ref2){var baseUrl=_ref2.baseUrl,storyId=_ref2.storyId;return react.createElement(bar_button.hU,{key:"opener",href:"".concat(baseUrl,"?id=").concat(storyId),target:"_blank",title:"Open canvas in new tab"},react.createElement(icon.P,{icon:"share"}))};Eject.displayName="Eject";var Bar=(0,esm.zo)(bar.j)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=function Toolbar(_ref3){var isLoading=_ref3.isLoading,storyId=_ref3.storyId,baseUrl=_ref3.baseUrl,zoom=_ref3.zoom,resetZoom=_ref3.resetZoom,rest=Toolbar_objectWithoutProperties(_ref3,["isLoading","storyId","baseUrl","zoom","resetZoom"]);return react.createElement(Bar,rest,react.createElement(react.Fragment,{key:"left"},isLoading?[1,2,3].map((function(key){return react.createElement(bar_button.Z$,{key})})):react.createElement(Zoom,{zoom,resetZoom})),react.createElement(react.Fragment,{key:"right"},storyId&&(isLoading?react.createElement(bar_button.Z$,null):react.createElement(Eject,{storyId,baseUrl}))))};Toolbar.displayName="Toolbar";var browserSupportsCssZoom_globalWindow=window_default().window;function browserSupportsCssZoom(){try{return void 0!==browserSupportsCssZoom_globalWindow.document.implementation.createHTMLDocument("").body.style.zoom}catch(error){return!1}}function ZoomElement_slicedToArray(arr,i){return function ZoomElement_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function ZoomElement_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function ZoomElement_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return ZoomElement_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZoomElement_arrayLikeToArray(o,minLen)}(arr,i)||function ZoomElement_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZoomElement_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i *":{zoom:1/scale}}:{height:height+50,transformOrigin:"top left",transform:"scale(".concat(1/scale,")")}}));function ZoomElement(_ref2){var scale=_ref2.scale,children=_ref2.children,componentWrapperRef=react.useRef(null),_useState2=ZoomElement_slicedToArray((0,react.useState)(0),2),height=_useState2[0],setHeight=_useState2[1];return(0,react.useEffect)((function(){componentWrapperRef.current&&setHeight(componentWrapperRef.current.getBoundingClientRect().height)}),[scale,componentWrapperRef.current]),react.createElement(ZoomElementWrapper,{scale,height},react.createElement("div",{ref:componentWrapperRef,className:"innerZoomElementWrapper"},children))}function ZoomIFrame_typeof(obj){return ZoomIFrame_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},ZoomIFrame_typeof(obj)}function ZoomIFrame_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function ZoomIFrame_defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function Preview_extends(){return Preview_extends=Object.assign||function(target){for(var i=1;i *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}}}),(function(_ref2){var _ref2$layout=_ref2.layout,layout=void 0===_ref2$layout?"padded":_ref2$layout;return"centered"===layout||"padded"===layout?{padding:"30px 20px",margin:-10,"& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}}),(function(_ref3){var _ref3$layout=_ref3.layout;return"centered"===(void 0===_ref3$layout?"padded":_ref3$layout)?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}}),(function(_ref4){var columns=_ref4.columns;return columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:"calc(100% / ".concat(columns," - 20px)")}}:{}})),StyledSource=(0,esm.zo)(blocks_Source.Hw)((function(_ref5){var theme=_ref5.theme;return{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":(0,polished_esm._j)(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":(0,polished_esm._j)(.05,theme.background.content)}}})),PreviewContainer=esm.zo.div((function(_ref6){var theme=_ref6.theme,withSource=_ref6.withSource,isExpanded=_ref6.isExpanded;return Object.assign({position:"relative",overflow:"hidden",margin:"25px 0 40px"},getBlockBackgroundStyle(theme),{borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0})}),(function(_ref7){return _ref7.withToolbar&&{paddingTop:40}}));function Preview_getStoryId(children){if(1===react.Children.count(children)){var elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,esm.zo)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=esm.zo.div({overflow:"hidden",position:"relative"}),Preview=function Preview(_ref8){var isLoading=_ref8.isLoading,isColumn=_ref8.isColumn,columns=_ref8.columns,children=_ref8.children,withSource=_ref8.withSource,_ref8$withToolbar=_ref8.withToolbar,withToolbar=void 0!==_ref8$withToolbar&&_ref8$withToolbar,_ref8$isExpanded=_ref8.isExpanded,isExpanded=void 0!==_ref8$isExpanded&&_ref8$isExpanded,additionalActions=_ref8.additionalActions,className=_ref8.className,props=Preview_objectWithoutProperties(_ref8,["isLoading","isColumn","columns","children","withSource","withToolbar","isExpanded","additionalActions","className"]),_useState2=Preview_slicedToArray((0,react.useState)(isExpanded),2),expanded=_useState2[0],_getSource=function getSource(withSource,expanded,setExpanded){switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:function onClick(){return setExpanded(!1)}}};case expanded:return{source:react.createElement(StyledSource,Preview_extends({},withSource,{dark:!0})),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:function onClick(){return setExpanded(!1)}}};default:return{source:react.createElement(StyledSource,Preview_extends({},withSource,{dark:!0})),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:function onClick(){return setExpanded(!0)}}}}}(withSource,expanded,_useState2[1]),source=_getSource.source,actionItem=_getSource.actionItem,_useState4=Preview_slicedToArray((0,react.useState)(1),2),scale=_useState4[0],setScale=_useState4[1],previewClasses=[className].concat(["sbdocs","sbdocs-preview"]),defaultActionItems=withSource?[actionItem]:[],_useState6=Preview_slicedToArray((0,react.useState)(additionalActions?_toConsumableArray(additionalActions):[]),2),additionalActionItems=_useState6[0],setAdditionalActionItems=_useState6[1],actionItems=[].concat(defaultActionItems,_toConsumableArray(additionalActionItems)),layout=function getLayout(children){return children.reduce((function(result,c){return result||("string"==typeof c||"number"==typeof c?"padded":c.props&&c.props.parameters&&c.props.parameters.layout||"padded")}),void 0)}(1===react.Children.count(children)?[children]:children),globalWindow=window_default().window,copyToClipboard=(0,react.useCallback)(function(){var _ref9=function Preview_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){Preview_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){Preview_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(text){var _yield$import;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,__webpack_require__.e(839).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter/syntaxhighlighter.js"));case 2:_yield$import=_context.sent,(0,_yield$import.createCopyToClipboardFunction)();case 5:case"end":return _context.stop()}}),_callee)})));return function(_x){return _ref9.apply(this,arguments)}}(),[]);return react.createElement(PreviewContainer,Preview_extends({withSource,withToolbar},props,{className:previewClasses.join(" ")}),withToolbar&&react.createElement(PositionedToolbar,{isLoading,border:!0,zoom:function zoom(z){return setScale(scale*z)},resetZoom:function resetZoom(){return setScale(1)},storyId:Preview_getStoryId(children),baseUrl:"./iframe.html"}),react.createElement(ZoomContext.Provider,{value:{scale}},react.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&function onCopyCapture(e){e.preventDefault(),0===additionalActionItems.filter((function(item){return"Copied"===item.title})).length&©ToClipboard(source.props.code).then((function(){setAdditionalActionItems([].concat(_toConsumableArray(additionalActionItems),[{title:"Copied",onClick:function onClick(){}}])),globalWindow.setTimeout((function(){return setAdditionalActionItems(additionalActionItems.filter((function(item){return"Copied"!==item.title})))}),1500)}))}},react.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react.createElement(Zoom_Zoom_Element,{scale},Array.isArray(children)?children.map((function(child,i){return react.createElement("div",{key:i},child)})):react.createElement("div",null,children))),react.createElement(ActionBar.o,{actionItems}))),withSource&&expanded&&source)};Preview.displayName="Preview";var StyledPreview=(0,esm.zo)(Preview)((function(){return{".docs-story":{paddingTop:32,paddingBottom:40}}})),PreviewSkeleton=function PreviewSkeleton(){return react.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react.createElement(StorySkeleton,null))};PreviewSkeleton.displayName="PreviewSkeleton";var fast_deep_equal=__webpack_require__("../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),esm_shared=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/shared.js");function SourceContainer_slicedToArray(arr,i){return function SourceContainer_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function SourceContainer_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function SourceContainer_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return SourceContainer_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SourceContainer_arrayLikeToArray(o,minLen)}(arr,i)||function SourceContainer_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SourceContainer_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Canvas=function Canvas(props){var _getPreviewProps=function getPreviewProps(_ref,docsContext,sourceContext){var withSource=_ref.withSource,mdxSource=_ref.mdxSource,children=_ref.children,props=Canvas_objectWithoutProperties(_ref,["withSource","mdxSource","children"]),mdxComponentAnnotations=docsContext.mdxComponentAnnotations,mdxStoryNameToKey=docsContext.mdxStoryNameToKey,sourceState=withSource,isLoading=!1;if(sourceState===SourceState.NONE)return{isLoading,previewProps:props};if(mdxSource)return{isLoading,previewProps:Object.assign({},props,{withSource:getSourceProps({code:decodeURI(mdxSource)},docsContext,sourceContext)})};var targetIds=(Array.isArray(children)?children:[children]).filter((function(c){return c.props&&(c.props.id||c.props.name)})).map((function(s){return s.props.id||(0,dist.toId)(mdxComponentAnnotations.id||mdxComponentAnnotations.title,(0,dist.storyNameFromExport)(mdxStoryNameToKey[s.props.name]))})),sourceProps=getSourceProps({ids:targetIds},docsContext,sourceContext);return sourceState||(sourceState=sourceProps.state),{isLoading:isLoading=useStories(targetIds,docsContext).some((function(s){return!s})),previewProps:Object.assign({},props,{withSource:sourceProps,isExpanded:sourceState===SourceState.OPEN})}}(props,(0,react.useContext)(DocsContext),(0,react.useContext)(SourceContext)),isLoading=_getPreviewProps.isLoading,previewProps=_getPreviewProps.previewProps,children=props.children;return isLoading?react.createElement(PreviewSkeleton,null):react.createElement(react_dist_esm.Zo,{components:dist_esm.ne},react.createElement(Preview,previewProps,children))},index_module=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("../../../node_modules/.pnpm/markdown-to-jsx@7.1.3_react@17.0.2/node_modules/markdown-to-jsx/dist/index.module.js")),Description=function Description(_ref){var markdown=_ref.markdown;return react.createElement(DocumentFormatting.i9,null,react.createElement(index_module.Z,{options:{forceBlock:!0,overrides:DocumentFormatting.wx}},markdown))};Description.displayName="Description";var DescriptionType,docgen=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/lib/docgen/index.js");!function(DescriptionType){DescriptionType.INFO="info",DescriptionType.NOTES="notes",DescriptionType.DOCGEN="docgen",DescriptionType.LEGACY_5_2="legacy-5.2",DescriptionType.AUTO="auto"}(DescriptionType||(DescriptionType={}));var getNotes=function getNotes(notes){return notes&&("string"==typeof notes?notes:(0,docgen.Bd)(notes.markdown)||(0,docgen.Bd)(notes.text))},getInfo=function getInfo(info){return info&&("string"==typeof info?info:(0,docgen.Bd)(info.text))},noDescription=function noDescription(component){return null},getDescriptionProps=function getDescriptionProps(_ref,_ref2){var of=_ref.of,type=_ref.type,markdown=_ref.markdown,children=_ref.children,id=_ref2.id,_storyById=(0,_ref2.storyById)(id),component=_storyById.component,parameters=_storyById.parameters;if(children||markdown)return{markdown:children||markdown};var notes=parameters.notes,info=parameters.info,_ref3=parameters.docs||{},_ref3$extractComponen=_ref3.extractComponentDescription,extractComponentDescription=void 0===_ref3$extractComponen?noDescription:_ref3$extractComponen,description=_ref3.description,target=of===CURRENT_SELECTION?component:of,componentDescriptionParameter=null==description?void 0:description.component;if(componentDescriptionParameter)return{markdown:componentDescriptionParameter};switch(type){case DescriptionType.INFO:return{markdown:getInfo(info)};case DescriptionType.NOTES:return{markdown:getNotes(notes)};case DescriptionType.LEGACY_5_2:return{markdown:"\n".concat(getNotes(notes)||getInfo(info)||"","\n\n").concat(extractComponentDescription(target)||"","\n").trim()};case DescriptionType.DOCGEN:case DescriptionType.AUTO:default:return{markdown:extractComponentDescription(target,Object.assign({component},parameters))}}},DescriptionContainer=function DescriptionContainer(props){var context=(0,react.useContext)(DocsContext),markdown=getDescriptionProps(props,context).markdown;return markdown?react.createElement(Description,{markdown}):null};function DocsPage_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}DescriptionContainer.defaultProps={of:"."};var DocsPage_Title=esm.zo.h1(shared.YX,(function(_ref){var theme=_ref.theme;return DocsPage_defineProperty({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.black,lineHeight:"32px"},"@media (min-width: ".concat(600,"px)"),{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:".5rem"})})),DocsPage_Subtitle=esm.zo.h2(shared.YX,(function(_ref3){var _ref4,theme=_ref3.theme;return DocsPage_defineProperty(_ref4={fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15},"@media (min-width: ".concat(600,"px)"),{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24}),DocsPage_defineProperty(_ref4,"color",(0,polished_esm.DZ)(.25,theme.color.defaultText)),_ref4})),DocsContent=esm.zo.div({maxWidth:1e3,width:"100%"}),DocsWrapper=esm.zo.div((function(_ref5){return DocsPage_defineProperty({background:_ref5.theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box"},"@media (min-width: ".concat(600,"px)"),{})})),STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,extractTitle=function extractTitle(_ref){var title=_ref.title,groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups&&groups[groups.length-1]||title},Title=function Title(_ref2){var children=_ref2.children,context=(0,react.useContext)(DocsContext),text=children;return text||(text=extractTitle(context)),text?react.createElement(DocsPage_Title,{className:"sbdocs-title"},text):null},Subtitle=function Subtitle(_ref){var children=_ref.children,_useContext=(0,react.useContext)(DocsContext),id=_useContext.id,parameters=(0,_useContext.storyById)(id).parameters,text=children;return text||(text=null==parameters?void 0:parameters.componentSubtitle),text?react.createElement(DocsPage_Subtitle,{className:"sbdocs-subtitle"},text):null},browser=__webpack_require__("../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),ts_dedent_esm=__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js");__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.starts-with.js");function mdx_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function mdx_extends(){return mdx_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var mdx_document=window_default().document,assertIsFn=function assertIsFn(val){if("function"!=typeof val)throw new Error("Expected story function, got: ".concat(val));return val},AddContext=function AddContext(props){var children=props.children,rest=mdx_objectWithoutProperties(props,["children"]),parentContext=react.useContext(DocsContext);return react.createElement(DocsContext.Provider,{value:Object.assign({},parentContext,rest)},children)},CodeOrSourceMdx=function CodeOrSourceMdx(_ref){var className=_ref.className,children=_ref.children,rest=mdx_objectWithoutProperties(_ref,["className","children"]);if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react.createElement(DocumentFormatting.EK,null,children);var language=className&&className.split("-");return react.createElement(blocks_Source.Hw,mdx_extends({language:language&&language[1]||"plaintext",format:!1,code:children},rest))};function mdx_navigate(url){addons_dist_esm.KP.getChannel().emit(core_events_dist_esm.NAVIGATE_URL,url)}var DocsStory_templateObject,A=DocumentFormatting.wx.a,AnchorInPage=function AnchorInPage(_ref2){var hash=_ref2.hash,children=_ref2.children;return react.createElement(A,{href:hash,target:"_self",onClick:function onClick(event){var id=hash.substring(1);mdx_document.getElementById(id)&&mdx_navigate(hash)}},children)},AnchorMdx=function AnchorMdx(props){var href=props.href,target=props.target,children=props.children,rest=mdx_objectWithoutProperties(props,["href","target","children"]);if(href){if(href.startsWith("#"))return react.createElement(AnchorInPage,{hash:href},children);if("_blank"!==target)return react.createElement(A,mdx_extends({href,onClick:function onClick(event){event.preventDefault(),mdx_navigate(event.currentTarget.getAttribute("href"))},target},rest),children)}return react.createElement(A,props)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(0,esm.zo)(DocumentFormatting.wx[headerType])({"& svg":{visibility:"hidden"},"&:hover svg":{visibility:"visible"}})))}),{}),OcticonAnchor=esm.zo.a((function(){return{float:"left",paddingRight:"4px",marginLeft:"-20px",color:"inherit"}})),HeaderWithOcticonAnchor=function HeaderWithOcticonAnchor(_ref3){var as=_ref3.as,id=_ref3.id,children=_ref3.children,rest=mdx_objectWithoutProperties(_ref3,["as","id","children"]),OcticonHeader=OcticonHeaders[as],hash="#".concat(id);return react.createElement(OcticonHeader,mdx_extends({id},rest),react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:function onClick(event){mdx_document.getElementById(id)&&mdx_navigate(hash)}},react.createElement("svg",{viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16","aria-hidden":"true",fill:"currentColor"},react.createElement("path",{fillRule:"evenodd",d:"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"}))),children)},HeaderMdx=function HeaderMdx(props){var as=props.as,id=props.id,children=props.children,rest=mdx_objectWithoutProperties(props,["as","id","children"]);if(id)return react.createElement(HeaderWithOcticonAnchor,mdx_extends({as,id},rest),children);var Header=DocumentFormatting.wx[as];return react.createElement(Header,props)},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((function(acc,headerType){return Object.assign({},acc,mdx_defineProperty({},headerType,(function(props){return react.createElement(HeaderMdx,mdx_extends({as:headerType},props))})))}),{}),Subheading=function Subheading(_ref){var children=_ref.children;if(_ref.disableAnchor||"string"!=typeof children)return react.createElement(DocumentFormatting.H3,null,children);var tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)};var warnStoryDescription=browser_default()((function(){}),(0,ts_dedent_esm.C)(DocsStory_templateObject||(DocsStory_templateObject=function DocsStory_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Deprecated parameter: docs.storyDescription => docs.description.story\n \n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#docs-description-parameter\n "])))),DocsStory=function DocsStory(_ref){var description,_docs$description,id=_ref.id,name=_ref.name,_ref$expanded=_ref.expanded,expanded=void 0===_ref$expanded||_ref$expanded,_ref$withToolbar=_ref.withToolbar,withToolbar=void 0!==_ref$withToolbar&&_ref$withToolbar,_ref$parameters=_ref.parameters,parameters=void 0===_ref$parameters?{}:_ref$parameters,docs=parameters.docs;expanded&&docs&&((description=null===(_docs$description=docs.description)||void 0===_docs$description?void 0:_docs$description.story)||(description=docs.storyDescription)&&warnStoryDescription());var subheading=expanded&&name;return react.createElement(Anchor,{storyId:id},subheading&&react.createElement(Subheading,null,subheading),description&&react.createElement(DescriptionContainer,{markdown:description}),react.createElement(Canvas,{withToolbar},react.createElement(Story,{id,parameters})))};function Primary_extends(){return Primary_extends=Object.assign||function(target){for(var i=1;i docs.theme\n\n https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/theming.md#storybook-theming\n"])))),DocsContainer=function DocsContainer(_ref){var context=_ref.context,children=_ref.children,storyId=context.id,_storyById$parameters=(0,context.storyById)(storyId).parameters,_storyById$parameters2=_storyById$parameters.options,options=void 0===_storyById$parameters2?{}:_storyById$parameters2,_storyById$parameters3=_storyById$parameters.docs,docs=void 0===_storyById$parameters3?{}:_storyById$parameters3,themeVars=docs.theme;!themeVars&&options.theme&&(warnOptionsTheme(),themeVars=options.theme);var theme=ensure(themeVars),allComponents=Object.assign({},defaultComponents,docs.components);return(0,react.useEffect)((function(){var url;try{url=new URL(DocsContainer_globalWindow.parent.location)}catch(err){return}if(url.hash){var element=DocsContainer_document.getElementById(url.hash.substring(1));element&&setTimeout((function(){scrollToElement(element)}),200)}else{var _element=DocsContainer_document.getElementById(anchorBlockIdFromId(storyId))||DocsContainer_document.getElementById(storyBlockIdFromId(storyId));if(_element){var allStories=_element.parentElement.querySelectorAll('[id|="anchor-"]'),scrollTarget=_element;allStories&&allStories[0]===_element&&(scrollTarget=DocsContainer_document.getElementById("docs-root")),setTimeout((function(){scrollToElement(scrollTarget,"start")}),200)}}}),[storyId]),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,null,react.createElement(emotion_element_99289b21_browser_esm.a,{theme},react.createElement(react_dist_esm.Zo,{components:allComponents},react.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},react.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children))))))},Meta_document=window_default().document;var Preview_templateObject,Meta=function Meta(){return"docs"===new URL(Meta_document.location).searchParams.get("viewMode")?function renderAnchor(){var context=(0,react.useContext)(DocsContext),anchorId=function getFirstStoryId(docsContext){var stories=docsContext.componentStories();return stories.length>0?stories[0].id:null}(context)||context.id;return react.createElement(Anchor,{storyId:anchorId})}():null};var Props_templateObject,Preview_Preview=browser_default()((function(props){return react.createElement(Canvas,props)}),(0,ts_dedent_esm.C)(Preview_templateObject||(Preview_templateObject=function Preview_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Preview doc block has been renamed to Canvas.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));var Props=browser_default()((function(props){return react.createElement(ArgsTable,props)}),(0,ts_dedent_esm.C)(Props_templateObject||(Props_templateObject=function Props_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Props doc block has been renamed to ArgsTable.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewprops-renamed\n "]))));Props.defaultProps={of:CURRENT_SELECTION};var Wrapper_Wrapper=function Wrapper(_ref){var children=_ref.children;return react.createElement("div",{style:{fontFamily:"sans-serif"}},children)}},"../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/frameworks/common/config.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{argTypesEnhancers:()=>argTypesEnhancers,parameters:()=>config_parameters});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),parameters=(__webpack_require__("../../../node_modules/.pnpm/regenerator-runtime@0.13.9/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"));function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}var _getPage,_getContainer,config_parameters={docs:{inlineStories:!1,getContainer:(_getContainer=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/blocks/index.js"));case 2:return _context.abrupt("return",_context.sent.DocsContainer);case 3:case"end":return _context.stop()}}),_callee)}))),function getContainer(){return _getContainer.apply(this,arguments)}),getPage:(_getPage=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/blocks/index.js"));case 2:return _context2.abrupt("return",_context2.sent.DocsPage);case 3:case"end":return _context2.stop()}}),_callee2)}))),function getPage(){return _getPage.apply(this,arguments)}),iframeHeight:100}},argTypesEnhancers=[function enhanceArgTypes(context){var component=context.component,userArgTypes=context.argTypes,_context$parameters$d=context.parameters.docs,extractArgTypes=(void 0===_context$parameters$d?{}:_context$parameters$d).extractArgTypes,extractedArgTypes=extractArgTypes&&component?extractArgTypes(component):{};return extractedArgTypes?(0,parameters.f)(extractedArgTypes,userArgTypes):userArgTypes}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{decorators:()=>decorators,parameters:()=>parameters});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),prop_types=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),docgen=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/lib/docgen/index.js"),utils=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/lib/utils.js"));function generateFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];if(hasParams){var funcParams=params.map((function(x){var prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?"".concat(prettyName,": ").concat(typeName):prettyName}));funcParts.push("(".concat(funcParams.join(", "),")"))}else funcParts.push("()");return hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}function generateShortFuncSignature(params,returns){var hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";var funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push("=> ".concat(returns.getTypeName())),funcParts.join(" ")}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.includes.js");var html_tags=__webpack_require__("../../../node_modules/.pnpm/html-tags@3.1.0/node_modules/html-tags/index.js");function isHtmlTag(tagName){return html_tags.includes(tagName.toLowerCase())}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.starts-with.js");var escodegen=__webpack_require__("../../../node_modules/.pnpm/escodegen@2.0.0/node_modules/escodegen/escodegen.js"),ts_dedent_esm=__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS=Object.assign({},BASIC_OPTIONS,{format:{newline:""}}),PRETTY_OPTIONS=Object.assign({},BASIC_OPTIONS);function generateCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,escodegen.R_)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return compact?generateCompactObjectCode(ast):generateCode(ast)}function generateCompactObjectCode(ast){var result=generateCode(ast,!0);return result.endsWith(" }")||(result="".concat(result.slice(0,-1)," }")),result}function generateArrayCode(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return compact?generateCompactArrayCode(ast):generateMultilineArrayCode(ast)}function generateMultilineArrayCode(ast){var result=generateCode(ast);return result.endsWith(" }]")&&(result=(0,ts_dedent_esm.C)(result)),result}function generateCompactArrayCode(ast){var result=generateCode(ast,!0);return result.startsWith("[ ")&&(result=result.replace("[ ","[")),result}var InspectionType,isMemo=function isMemo(component){return component.$$typeof===Symbol.for("react.memo")};!function(InspectionType){InspectionType.IDENTIFIER="Identifier",InspectionType.LITERAL="Literal",InspectionType.OBJECT="Object",InspectionType.ARRAY="Array",InspectionType.FUNCTION="Function",InspectionType.CLASS="Class",InspectionType.ELEMENT="Element",InspectionType.UNKNOWN="Unknown"}(InspectionType||(InspectionType={}));__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js");var acorn=__webpack_require__("../../../node_modules/.pnpm/acorn@7.4.1/node_modules/acorn/dist/acorn.mjs"),acorn_jsx=__webpack_require__("../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@7.4.1/node_modules/acorn-jsx/index.js"),acorn_jsx_default=__webpack_require__.n(acorn_jsx);function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=base),function c(node,st,override){var type=override||node.type,found=visitors[type];baseVisitor[type](node,st,c),found&&found(node,st)}(node,state,override)}Object.create;function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var base={};base.Program=base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;i1&&void 0!==arguments[1]&&arguments[1];return cleanPropTypes(generateObjectCode(ast,compact))}function prettyArray(ast){var compact=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return cleanPropTypes(generateCode(ast,compact))}function generateTypeFromString(value,originalTypeName){var short,compact,full,_inspectValue=inspectValue(value),inferredType=_inspectValue.inferredType,ast=_inspectValue.ast,type=inferredType.type;switch(type){case InspectionType.IDENTIFIER:case InspectionType.LITERAL:short=value,compact=value;break;case InspectionType.OBJECT:short="object",compact=1===inferredType.depth?prettyObject(ast,!0):null,full=prettyObject(ast);break;case InspectionType.ELEMENT:var identifier=inferredType.identifier;short=null==identifier||isHtmlTag(identifier)?"element":identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break;case InspectionType.ARRAY:short="array",compact=inferredType.depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break;default:short=function getCaptionForInspectionType(type){switch(type){case InspectionType.OBJECT:return"object";case InspectionType.ARRAY:return"array";case InspectionType.CLASS:return"class";case InspectionType.FUNCTION:return"func";case InspectionType.ELEMENT:return"element";default:return"custom"}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short,compact,full,inferredType:type})}function objectOf(of){return"objectOf(".concat(of,")")}function generateEnum(type){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateEnumValue=function generateEnumValue(_ref7){var value=_ref7.value;return _ref7.computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v),short=_generateEnumValue.short,compact=_generateEnumValue.compact,full=_generateEnumValue.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.ENUM,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.ENUM,short:type.value,compact:type.value})}function braceAfter(of){return"".concat(of,"[]")}function braceAround(of){return"[".concat(of,"]")}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case PropTypesType.CUSTOM:return function generateCustom(_ref5){var raw=_ref5.raw;return null!=raw?generateTypeFromString(raw,PropTypesType.CUSTOM):createTypeDef({name:PropTypesType.CUSTOM,short:"custom",compact:"custom"})}(type);case PropTypesType.FUNC:return function generateFunc(extractedProp){var jsDocTags=extractedProp.jsDocTags;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:PropTypesType.FUNC,short:"func",compact:"func"}):createTypeDef({name:PropTypesType.FUNC,short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case PropTypesType.SHAPE:return function generateShape(type,extractedProp){var fields=Object.keys(type.value).map((function(key){return"".concat(key,": ").concat(generateType(type.value[key],extractedProp).full)})).join(", "),_inspectValue2=inspectValue("{ ".concat(fields," }")),inferredType=_inspectValue2.inferredType,ast=_inspectValue2.ast,depth=inferredType.depth;return createTypeDef({name:PropTypesType.SHAPE,short:"object",compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case PropTypesType.INSTANCEOF:return createTypeDef({name:PropTypesType.INSTANCEOF,short:type.value,compact:type.value});case PropTypesType.OBJECTOF:return function generateObjectOf(type,extractedProp){var _generateType=generateType(type.value,extractedProp),short=_generateType.short,compact=_generateType.compact,full=_generateType.full;return createTypeDef({name:PropTypesType.OBJECTOF,short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:objectOf(full)})}(type,extractedProp);case PropTypesType.UNION:return function generateUnion(type,extractedProp){if(Array.isArray(type.value)){var values=type.value.reduce((function(acc,v){var _generateType2=generateType(v,extractedProp),short=_generateType2.short,compact=_generateType2.compact,full=_generateType2.full;return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:PropTypesType.UNION,short:values.short.join(" | "),compact:values.compact.every((function(x){return null!=x}))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:PropTypesType.UNION,short:type.value,compact:null})}(type,extractedProp);case PropTypesType.ENUM:return generateEnum(type);case PropTypesType.ARRAYOF:return function generateArray(type,extractedProp){var _generateType3=generateType(type.value,extractedProp),name=_generateType3.name,short=_generateType3.short,compact=_generateType3.compact,full=_generateType3.full,inferredType=_generateType3.inferredType;if(name===PropTypesType.CUSTOM){if(inferredType===InspectionType.OBJECT)return createArrayOfObjectTypeDef(short,compact,full)}else if(name===PropTypesType.SHAPE)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:PropTypesType.ARRAYOF,short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}function generateObject(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(1===inferredType.depth){var compactObject=generateObjectCode(ast,!0);if(!(0,utils.fW)(compactObject))return(0,utils.Ir)(compactObject)}return(0,utils.Ir)("object",generateObjectCode(ast))}function generateArray_generateArray(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(inferredType.depth<=2){var compactArray=generateArrayCode(ast,!0);if(!(0,utils.fW)(compactArray))return(0,utils.Ir)(compactArray)}return(0,utils.Ir)("array",generateArrayCode(ast))}function getPrettyIdentifier(inferredType){var type=inferredType.type,identifier=inferredType.identifier;switch(type){case InspectionType.FUNCTION:return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case InspectionType.ELEMENT:return getPrettyElementIdentifier(identifier);default:return identifier}}function getPrettyFuncIdentifier(identifier,hasArguments){return"".concat(identifier,hasArguments?"( ... )":"()")}function getPrettyElementIdentifier(identifier){return"<".concat(identifier," />")}function createDefaultValue(defaultValue){try{var inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case InspectionType.OBJECT:return generateObject(inspectionResult);case InspectionType.FUNCTION:return function createDefaultValue_generateFunc(_ref){var inferredType=_ref.inferredType,ast=_ref.ast;if(null!=inferredType.identifier)return(0,utils.Ir)(getPrettyIdentifier(inferredType),generateCode(ast));var prettyCaption=generateCode(ast,!0);return(0,utils.fW)(prettyCaption)?(0,utils.Ir)("func",generateCode(ast)):(0,utils.Ir)(prettyCaption)}(inspectionResult);case InspectionType.ELEMENT:return function generateElement(defaultValue,inspectionResult){var inferredType=inspectionResult.inferredType,identifier=inferredType.identifier;if(null!=identifier&&!isHtmlTag(identifier)){var prettyIdentifier=getPrettyIdentifier(inferredType);return(0,utils.Ir)(prettyIdentifier,defaultValue)}return(0,utils.fW)(defaultValue)?(0,utils.Ir)("element",defaultValue):(0,utils.Ir)(defaultValue)}(defaultValue,inspectionResult);case InspectionType.ARRAY:return generateArray_generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}!function(PropTypesType){PropTypesType.CUSTOM="custom",PropTypesType.ANY="any",PropTypesType.FUNC="func",PropTypesType.SHAPE="shape",PropTypesType.OBJECT="object",PropTypesType.INSTANCEOF="instanceOf",PropTypesType.OBJECTOF="objectOf",PropTypesType.UNION="union",PropTypesType.ENUM="enum",PropTypesType.ARRAYOF="arrayOf",PropTypesType.ELEMENT="element",PropTypesType.ELEMENTTYPE="elementType",PropTypesType.NODE="node"}(PropTypesType||(PropTypesType={}));__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js");var isPlainObject=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject),isFunction=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"),isFunction_default=__webpack_require__.n(isFunction),isString=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"),isString_default=__webpack_require__.n(isString),cjs=__webpack_require__("../../../node_modules/.pnpm/react-element-to-jsx-string@14.3.4_react@17.0.2/node_modules/react-element-to-jsx-string/dist/cjs/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){var name=func.name;return""!==name&&"anonymous"!==name&&name!==propName?name:null}var DEFAULT_TYPE_RESOLVERS={string:function stringResolver(rawDefaultProp){return(0,utils.Ir)(JSON.stringify(rawDefaultProp))},object:function objectResolver(rawDefaultProp){return isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type?function generateReactObject(rawDefaultProp){var type=rawDefaultProp.type,displayName=type.displayName,jsx=(0,cjs.ZP)(rawDefaultProp,{});if(null!=displayName){var prettyIdentifier=getPrettyElementIdentifier(displayName);return(0,utils.Ir)(prettyIdentifier,jsx)}if(isString_default()(type)&&isHtmlTag(type)){var jsxSummary=(0,cjs.ZP)(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!(0,utils.fW)(jsxSummary))return(0,utils.Ir)(jsxSummary)}return(0,utils.Ir)("element",jsx)}(rawDefaultProp):isPlainObject_default()(rawDefaultProp)?generateObject(inspectValue(JSON.stringify(rawDefaultProp))):Array.isArray(rawDefaultProp)?generateArray_generateArray(inspectValue(JSON.stringify(rawDefaultProp))):(0,utils.Ir)("object")},function:function functionResolver(rawDefaultProp,propDef){var inspectionResult,isElement=!1;if(isFunction_default()(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction_default()(rawDefaultProp.prototype.render))isElement=!0;else{var innerElement;try{var _ref=(inspectionResult=inspectValue(rawDefaultProp.toString())).inferredType,hasParams=_ref.hasParams,params=_ref.params;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch(e){}}var funcName=extractFunctionName(rawDefaultProp,propDef.name);if(null!=funcName){if(isElement)return(0,utils.Ir)(getPrettyElementIdentifier(funcName));null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString()));var _hasParams=inspectionResult.inferredType.hasParams;return(0,utils.Ir)(getPrettyFuncIdentifier(funcName,_hasParams))}return(0,utils.Ir)(isElement?"element":"func")},default:function defaultResolver(rawDefaultProp){return(0,utils.Ir)(rawDefaultProp.toString())}};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef){var typeResolvers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DEFAULT_TYPE_RESOLVERS;try{switch(_typeof(rawDefaultProp)){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.find.js");var rawDefaultPropTypeResolvers=function createTypeResolvers(){var customResolvers=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({},DEFAULT_TYPE_RESOLVERS,customResolvers)}({function:function funcResolver(rawDefaultProp,_ref){var name=_ref.name,type=_ref.type,isElement="element"===type.summary||"elementType"===type.summary,funcName=extractFunctionName(rawDefaultProp,name);if(null!=funcName){if(isElement)return(0,utils.Ir)(getPrettyElementIdentifier(funcName));var hasParams=inspectValue(rawDefaultProp.toString()).inferredType.hasParams;return(0,utils.Ir)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,utils.Ir)(isElement?"element":"func")}});function enhancePropTypesProp(extractedProp,rawDefaultProp){var propDef=extractedProp.propDef,newtype=function createType(extractedProp){var type=extractedProp.docgenInfo.type;if(null==type)return null;try{switch(type.name){case PropTypesType.CUSTOM:case PropTypesType.SHAPE:case PropTypesType.INSTANCEOF:case PropTypesType.OBJECTOF:case PropTypesType.UNION:case PropTypesType.ENUM:case PropTypesType.ARRAYOF:var _generateType4=generateType(type,extractedProp),short=_generateType4.short,compact=_generateType4.compact,full=_generateType4.full;return null==compact||(0,utils._A)(compact)?(0,utils.Ir)(short,full):(0,utils.Ir)(compact);case PropTypesType.FUNC:var detail,_generateType5=generateType(type,extractedProp),_short=_generateType5.short,_full=_generateType5.full,summary=_short;return _full.length<150?summary=_full:detail=function toMultilineSignature(signature){return signature.replace(/,/g,",\r\n")}(_full),(0,utils.Ir)(summary,detail);default:return null}}catch(e){console.error(e)}return null}(extractedProp);null!=newtype&&(propDef.type=newtype);var defaultValue=extractedProp.docgenInfo.defaultValue;if(null!=defaultValue&&null!=defaultValue.value){var newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){var _newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,rawDefaultPropTypeResolvers);null!=_newDefaultValue&&(propDef.defaultValue=_newDefaultValue)}return propDef}function enhancePropTypesProps(extractedProps,component){var rawDefaultProps=null!=component.defaultProps?component.defaultProps:{};return function keepOriginalDefinitionOrder(extractedProps,component){var propTypes=component.propTypes;return null!=propTypes?Object.keys(propTypes).map((function(x){return extractedProps.find((function(y){return y.name===x}))})).filter((function(x){return x})):extractedProps}(extractedProps.map((function(x){return enhancePropTypesProp(x,rawDefaultProps[x.propDef.name])})),component)}function enhanceTypeScriptProps(extractedProps){return extractedProps.map((function(prop){return function enhanceTypeScriptProp(extractedProp,rawDefaultProp){var propDef=extractedProp.propDef,defaultValue=extractedProp.docgenInfo.defaultValue;if(null!=defaultValue&&null!=defaultValue.value){var newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){var _newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef);null!=_newDefaultValue&&(propDef.defaultValue=_newDefaultValue)}return propDef}(prop)}))}var propTypesMap=new Map;function getPropDefs(component,section){var processedComponent=component;(0,docgen.Px)(component)||component.propTypes||!isMemo(component)||(processedComponent=component.type);var extractedProps=(0,docgen.Je)(processedComponent,section);if(0===extractedProps.length)return[];switch(extractedProps[0].typeSystem){case docgen.p5.JAVASCRIPT:return enhancePropTypesProps(extractedProps,component);case docgen.p5.TYPESCRIPT:return enhanceTypeScriptProps(extractedProps);default:return extractedProps.map((function(x){return x.propDef}))}}Object.keys(prop_types_default()).forEach((function(typeName){var type=prop_types_default()[typeName];propTypesMap.set(type,typeName),propTypesMap.set(type.isRequired,typeName)}));__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.match.js");var _templateObject,react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),browser=__webpack_require__("../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),hooks=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js"),shared=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/shared.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var applyBeforeRender=function applyBeforeRender(domString,options){return"function"!=typeof options.onBeforeRender?domString:browser_default()(options.onBeforeRender,(0,ts_dedent_esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n StoryFn.parameters.jsx.onBeforeRender was deprecated.\n Prefer StoryFn.parameters.jsx.transformSource instead.\n See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-onbeforerender for details.\n "]))))(domString)},renderJsx=function renderJsx(code,options){if(void 0===code)return esm.kg.warn("Too many skip or undefined component"),null;for(var renderedJSX=code,Type=renderedJSX.type,i=0;i1)return esm.kg.warn("Trying to skip an array of elements"),null;void 0===renderedJSX.props.children?(esm.kg.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,renderedJSX.props))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}var displayNameDefaults="string"==typeof options.displayName?{showFunctions:!0,displayName:function displayName(){return options.displayName}}:{displayName:function displayName(el){return el.type.displayName||(0,docgen.jq)(el.type,"displayName")||("_default"!==el.type.name?el.type.name:null)||("function"==typeof el.type?"No Display Name":null)||(function isForwardRef(component){return component.$$typeof===Symbol.for("react.forward_ref")}(el.type)?el.type.render.name:null)||(isMemo(el.type)?el.type.type.name:null)||el.type}},filterDefaults={filterProps:function filterProps(value,key){return void 0!==value}},opts=Object.assign({},displayNameDefaults,filterDefaults,options);return react.Children.map(code,(function(c){var child="number"==typeof c?c.toString():c,string=applyBeforeRender((0,cjs.ZP)(child,opts),options);if(string.indexOf(""")>-1){var matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((function(match){string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n").replace(/function\s+noRefCheck\(\)\s+\{\}/,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=function mdxToJsx(node){if(!function isMdx(node){var _node$type,_node$props;return"MDXCreateElement"===(null===(_node$type=node.type)||void 0===_node$type?void 0:_node$type.displayName)&&!(null===(_node$props=node.props)||void 0===_node$props||!_node$props.mdxType)}(node))return node;var _node$props2=node.props,originalType=(_node$props2.mdxType,_node$props2.originalType),children=_node$props2.children,rest=_objectWithoutProperties(_node$props2,["mdxType","originalType","children"]),jsxChildren=[];children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx));return react.createElement.apply(void 0,[originalType,rest].concat(_toConsumableArray(jsxChildren)))},parameters={docs:{inlineStories:!0,prepareForInline:function prepareForInline(storyFn){return storyFn()},extractArgTypes:function extractArgTypes(component){if(component){var _extractProps=function extractProps(component){return{rows:getPropDefs(component,"props")}}(component),rows=_extractProps.rows;if(rows)return rows.reduce((function(acc,row){var name=row.name,description=row.description,type=row.type,sbType=row.sbType,defaultSummary=row.defaultValue,jsDocTags=row.jsDocTags,required=row.required;return acc[name]={name,description,type:Object.assign({required},sbType),table:{type,jsDocTags,defaultValue:defaultSummary}},acc}),{})}return null},extractComponentDescription:docgen.VF}},decorators=[function jsxDecorator(storyFn,context){var _context$parameters$d2,_context$parameters$d3,channel=dist_esm.KP.getChannel(),skip=function skipJsxRender(context){var _context$parameters$d,sourceParams=null==context||null===(_context$parameters$d=context.parameters.docs)||void 0===_context$parameters$d?void 0:_context$parameters$d.source,isArgsStory=null==context?void 0:context.parameters.__isArgsStory;return(null==sourceParams?void 0:sourceParams.type)!==shared.PO.DYNAMIC&&(!isArgsStory||(null==sourceParams?void 0:sourceParams.code)||(null==sourceParams?void 0:sourceParams.type)===shared.PO.CODE)}(context),story=storyFn(),jsx="";if((0,hooks.d4)((function(){skip||channel.emit(shared.g,(context||{}).id,jsx)})),skip)return story;var options=Object.assign({},defaultOpts,(null==context?void 0:context.parameters.jsx)||{}),storyJsx=null!=context&&null!==(_context$parameters$d2=context.parameters.docs)&&void 0!==_context$parameters$d2&&null!==(_context$parameters$d3=_context$parameters$d2.source)&&void 0!==_context$parameters$d3&&_context$parameters$d3.excludeDecorators?context.originalStoryFn(context.args,context):story,sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);return rendered&&(jsx=function applyTransformSource(domString,options,context){return"function"!=typeof options.transformSource?domString:options.transformSource(domString,context)}(rendered,options,context)),story}];function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{aT:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.AddContext,Xz:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Canvas,h_:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Meta,Hw:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Source,oG:()=>_blocks__WEBPACK_IMPORTED_MODULE_0__.Story});var _blocks__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/blocks/index.js")},"../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/lib/docgen/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var TypeSystem;__webpack_require__.d(__webpack_exports__,{p5:()=>TypeSystem,VF:()=>extractComponentDescription,Je:()=>extractComponentProps,jq:()=>getDocgenSection,Px:()=>hasDocgen,Bd:()=>str}),function(TypeSystem){TypeSystem.JAVASCRIPT="JavaScript",TypeSystem.FLOW="Flow",TypeSystem.TYPESCRIPT="TypeScript",TypeSystem.UNKNOWN="Unknown"}(TypeSystem||(TypeSystem={}));var str=function str(obj){if(!obj)return"";if("string"==typeof obj)return obj;throw new Error("Description: expected string, got: ".concat(JSON.stringify(obj)))};__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js");function hasDocgen(component){return!!component.__docgenInfo}function getDocgenSection(component,section){return hasDocgen(component)?component.__docgenInfo[section]:null}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js");var doctrine=__webpack_require__("../../../node_modules/.pnpm/doctrine@3.0.0/node_modules/doctrine/lib/doctrine.js");function containsJsDoc(value){return null!=value&&value.includes("@")}function parse(content,tags){var ast;try{ast=doctrine.parse(content,{tags,sloppy:!0})}catch(e){throw console.error(e),new Error("Cannot parse JSDoc tags.")}return ast}var DEFAULT_OPTIONS={tags:["param","arg","argument","returns","ignore"]};function extractJsDocTags(ast){for(var extractedTags={params:null,returns:null,ignore:!1},i=0;i /,proptypes_convert_convert=function convert(type){var name=type.name,raw=type.raw,computed=type.computed,value=type.value,base={};switch(void 0!==raw&&(base.raw=raw),name){case"enum":var _values=computed?value:value.map((function(v){return function trimQuotes(str){return str.replace(QUOTE_REGEX,"")}(v.value)}));return Object.assign({},base,{name,value:_values});case"string":case"number":case"symbol":case"object":return Object.assign({},base,{name});case"func":return Object.assign({},base,{name:"function"});case"bool":case"boolean":return Object.assign({},base,{name:"boolean"});case"arrayOf":case"array":return Object.assign({},base,{name:"array",value:value&&convert(value)});case"objectOf":return Object.assign({},base,{name,value:convert(value)});case"shape":case"exact":var values=mapValues_default()(value,(function(field){return convert(field)}));return Object.assign({},base,{name:"object",value:values});case"union":return Object.assign({},base,{name:"union",value:value.map((function(v){return convert(v)}))});default:if((null==name?void 0:name.indexOf("|"))>0)try{var literalValues=name.split("|").map((function(v){return JSON.parse(v)}));return Object.assign({},base,{name:"enum",value:literalValues})}catch(err){}var otherVal=value?"".concat(name,"(").concat(value,")"):name,otherName=SIGNATURE_REGEXP.test(name)?"function":"other";return Object.assign({},base,{name:otherName,value:otherVal})}},convert=function convert(docgenInfo){var type=docgenInfo.type,tsType=docgenInfo.tsType,flowType=docgenInfo.flowType;return null!=type?proptypes_convert_convert(type):null!=tsType?convert_convert(tsType):null!=flowType?flow_convert_convert(flowType):null};function createPropDef_createType(type){return null!=type?(0,utils.Ir)(type.name):null}function createPropDef_createDefaultValue(defaultValue,type){if(null!=defaultValue){var value=defaultValue.value;if(!isDefaultValueBlacklisted(value))return function isReactDocgenTypescript(defaultValue){var computed=defaultValue.computed,func=defaultValue.func;return void 0===computed&&void 0===func}(defaultValue)&&function isStringValued(type){return!!type&&("string"===type.name||"enum"===type.name&&Array.isArray(type.value)&&type.value.every((function(_ref){var tv=_ref.value;return"string"==typeof tv&&'"'===tv[0]&&'"'===tv[tv.length-1]})))}(type)?(0,utils.Ir)(JSON.stringify(value)):(0,utils.Ir)(value)}return null}function createBasicPropDef(name,type,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name,type:createPropDef_createType(type),required,description,defaultValue:createPropDef_createDefaultValue(defaultValue,type)}}function applyJsDocResult(propDef,jsDocParsingResult){if(jsDocParsingResult.includesJsDoc){var description=jsDocParsingResult.description,extractedTags=jsDocParsingResult.extractedTags;null!=description&&(propDef.description=jsDocParsingResult.description);var hasParams=null!=extractedTags.params,hasReturns=null!=extractedTags.returns&&null!=extractedTags.returns.type;(hasParams||hasReturns)&&(propDef.jsDocTags={params:hasParams&&extractedTags.params.map((function(x){return{name:x.getPrettyName(),description:x.description}})),returns:hasReturns&&{description:extractedTags.returns.description}})}return propDef}var javaScriptFactory=function javaScriptFactory(propName,docgenInfo,jsDocParsingResult){var propDef=createBasicPropDef(propName,docgenInfo.type,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},tsFactory=function tsFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createTsPropDef(propName,docgenInfo){var description=docgenInfo.description,required=docgenInfo.required;return{name:propName,type:createType_createType(docgenInfo),required,description,defaultValue:createDefaultValue_createDefaultValue(docgenInfo)}}(propName,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},flowFactory=function flowFactory(propName,docgenInfo,jsDocParsingResult){var propDef=function createFlowPropDef(propName,docgenInfo){var flowType=docgenInfo.flowType,description=docgenInfo.description,required=docgenInfo.required,defaultValue=docgenInfo.defaultValue;return{name:propName,type:createType(flowType),required,description,defaultValue:createDefaultValue(defaultValue,flowType)}}(propName,docgenInfo);return propDef.sbType=convert(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},unknownFactory=function unknownFactory(propName,docgenInfo,jsDocParsingResult){return applyJsDocResult(createBasicPropDef(propName,{name:"unknown"},docgenInfo),jsDocParsingResult)},getPropDefFactory=function getPropDefFactory(typeSystem){switch(typeSystem){case TypeSystem.JAVASCRIPT:return javaScriptFactory;case TypeSystem.TYPESCRIPT:return tsFactory;case TypeSystem.FLOW:return flowFactory;default:return unknownFactory}},getTypeSystem=function getTypeSystem(docgenInfo){return null!=docgenInfo.type?TypeSystem.JAVASCRIPT:null!=docgenInfo.flowType?TypeSystem.FLOW:null!=docgenInfo.tsType?TypeSystem.TYPESCRIPT:TypeSystem.UNKNOWN},extractComponentProps=function extractComponentProps(component,section){var docgenSection=getDocgenSection(component,section);return function isValidDocgenSection(docgenSection){return null!=docgenSection&&Object.keys(docgenSection).length>0}(docgenSection)?Array.isArray(docgenSection)?function extractComponentSectionArray(docgenSection){var typeSystem=getTypeSystem(docgenSection[0]),createPropDef=getPropDefFactory(typeSystem);return docgenSection.map((function(item){var _item$type,sanitizedItem=item;return null!==(_item$type=item.type)&&void 0!==_item$type&&_item$type.elements&&(sanitizedItem=Object.assign({},item,{type:Object.assign({},item.type,{value:item.type.elements})})),extractProp(sanitizedItem.name,sanitizedItem,typeSystem,createPropDef)}))}(docgenSection):function extractComponentSectionObject(docgenSection){var docgenPropsKeys=Object.keys(docgenSection),typeSystem=getTypeSystem(docgenSection[docgenPropsKeys[0]]),createPropDef=getPropDefFactory(typeSystem);return docgenPropsKeys.map((function(propName){var docgenInfo=docgenSection[propName];return null!=docgenInfo?extractProp(propName,docgenInfo,typeSystem,createPropDef):null})).filter(Boolean)}(docgenSection):[]};function extractProp(propName,docgenInfo,typeSystem,createPropDef){var jsDocParsingResult=function parseJsDoc(value){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DEFAULT_OPTIONS;if(!containsJsDoc(value))return{includesJsDoc:!1,ignore:!1};var jsDocAst=parse(value,options.tags),extractedTags=extractJsDocTags(jsDocAst);return extractedTags.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:jsDocAst.description,extractedTags}}(docgenInfo.description);return jsDocParsingResult.includesJsDoc&&jsDocParsingResult.ignore?null:{propDef:createPropDef(propName,docgenInfo,jsDocParsingResult),jsDocTags:jsDocParsingResult.extractedTags,docgenInfo,typeSystem}}function extractComponentDescription(component){return null!=component&&function getDocgenDescription(component){return hasDocgen(component)&&str(component.__docgenInfo.description)}(component)}},"../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/lib/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{_A:()=>isTooLongForTypeSummary,fW:()=>isTooLongForDefaultValueSummary,Ir:()=>createSummaryValue});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js");function isTooLongForTypeSummary(value){return value.length>90}function isTooLongForDefaultValueSummary(value){return value.length>50}function createSummaryValue(summary,detail){return summary===detail?{summary}:{summary,detail}}},"../../../node_modules/.pnpm/@storybook+addon-docs@6.4.4_84596b3912f086f18e89ee6e8229b10b/node_modules/@storybook/addon-docs/dist/esm/shared.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>SNIPPET_RENDERED,PO:()=>SourceType});"".concat("storybook/docs","/panel");var SourceType,SNIPPET_RENDERED="".concat("storybook/docs","/snippet-rendered");!function(SourceType){SourceType.AUTO="auto",SourceType.CODE="code",SourceType.DYNAMIC="dynamic"}(SourceType||(SourceType={}))},"../../../node_modules/.pnpm/@storybook+addon-measure@6.4.4_react@17.0.2/node_modules/@storybook/addon-measure/dist/esm/preset/addDecorator.js-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var addDecorator_namespaceObject={};__webpack_require__.r(addDecorator_namespaceObject),__webpack_require__.d(addDecorator_namespaceObject,{decorators:()=>decorators,globals:()=>globals});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),hooks=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js"),global_window=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.number.to-fixed.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window);function getDocumentWidthAndHeight(){var container=window_default().document.documentElement,height=Math.max(container.scrollHeight,container.offsetHeight);return{width:Math.max(container.scrollWidth,container.offsetWidth),height}}function setCanvasWidthAndHeight(canvas,context,_ref){var width=_ref.width,height=_ref.height;canvas.style.width="".concat(width,"px"),canvas.style.height="".concat(height,"px");var scale=window_default().window.devicePixelRatio;canvas.width=Math.floor(width*scale),canvas.height=Math.floor(height*scale),context.scale(scale,scale)}var state={};function init(){state.canvas||(state=function createCanvas(){var canvas=window_default().document.createElement("canvas");canvas.id="storybook-addon-measure";var context=canvas.getContext("2d"),_getDocumentWidthAndH=getDocumentWidthAndHeight(),width=_getDocumentWidthAndH.width,height=_getDocumentWidthAndH.height;return setCanvasWidthAndHeight(canvas,context,{width,height}),canvas.style.position="absolute",canvas.style.left="0",canvas.style.top="0",canvas.style.zIndex="100000",canvas.style.pointerEvents="none",window_default().document.body.appendChild(canvas),{canvas,context,width,height}}())}function clear(){state.context&&state.context.clearRect(0,0,state.width,state.height)}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js");var colors={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"};function roundedRect(context,_ref){var x=_ref.x,y=_ref.y,w=_ref.w,h=_ref.h,r=_ref.r;x-=w/2,y-=h/2,w<2*r&&(r=w/2),h<2*r&&(r=h/2),context.beginPath(),context.moveTo(x+r,y),context.arcTo(x+w,y,x+w,y+h,r),context.arcTo(x+w,y+h,x,y+h,r),context.arcTo(x,y+h,x,y,r),context.arcTo(x,y,x+w,y,r),context.closePath()}function positionCoordinate(position,_ref2){var padding=_ref2.padding,border=_ref2.border,width=_ref2.width,height=_ref2.height,top=_ref2.top,left=_ref2.left,contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom,x=left+border.left+padding.left,y=top+border.top+padding.top;return"top"===position?x+=contentWidth/2:"right"===position?(x+=contentWidth,y+=contentHeight/2):"bottom"===position?(x+=contentWidth/2,y+=contentHeight):"left"===position?y+=contentHeight/2:"center"===position&&(x+=contentWidth/2,y+=contentHeight/2),{x,y}}function offset(type,position,_ref3,labelPaddingSize,external){var margin=_ref3.margin,border=_ref3.border,padding=_ref3.padding,shift=function shift(dir){return 0},offsetX=0,offsetY=0,locationMultiplier=external?1:.5,labelPaddingShift=external?2*labelPaddingSize:0;return"padding"===type?shift=function shift(dir){return padding[dir]*locationMultiplier+labelPaddingShift}:"border"===type?shift=function shift(dir){return padding[dir]+border[dir]*locationMultiplier+labelPaddingShift}:"margin"===type&&(shift=function shift(dir){return padding[dir]+border[dir]+margin[dir]*locationMultiplier+labelPaddingShift}),"top"===position?offsetY=-shift("top"):"right"===position?offsetX=shift("right"):"bottom"===position?offsetY=shift("bottom"):"left"===position&&(offsetX=-shift("left")),{offsetX,offsetY}}function collide(a,b){return Math.abs(a.x-b.x)4&&void 0!==arguments[4]&&arguments[4],_positionCoordinate=positionCoordinate(position,measurements),x=_positionCoordinate.x,y=_positionCoordinate.y,_offset=offset(type,position,measurements,7,external),offsetX=_offset.offsetX,offsetY=_offset.offsetY;x+=offsetX,y+=offsetY;var _configureText=configureText(context,text),w=_configureText.w,h=_configureText.h;if(prevRect&&collide({x,y,w,h},prevRect)){var adjusted=overlapAdjustment(position,{x,y,w,h},prevRect);x=adjusted.x,y=adjusted.y}return textWithRect(context,type,{x,y,w,h},text)}(context,measurements,l,rects[idx-1],external);rects[idx]=rect}))}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iMath.abs(windowExtremities_right-extremities.right)?"left":"right",y:distances_top>distances_bottom?"top":"bottom"}}function drawBoxModel(element){return function(context){if(element&&context){var measurements=function measureElement(element){var style=window_default().getComputedStyle(element),_element$getBoundingC=element.getBoundingClientRect(),top=_element$getBoundingC.top,left=_element$getBoundingC.left,right=_element$getBoundingC.right,bottom=_element$getBoundingC.bottom,width=_element$getBoundingC.width,height=_element$getBoundingC.height,marginTop=style.marginTop,marginBottom=style.marginBottom,marginLeft=style.marginLeft,marginRight=style.marginRight,paddingTop=style.paddingTop,paddingBottom=style.paddingBottom,paddingLeft=style.paddingLeft,paddingRight=style.paddingRight,borderBottomWidth=style.borderBottomWidth,borderTopWidth=style.borderTopWidth,borderLeftWidth=style.borderLeftWidth,borderRightWidth=style.borderRightWidth;top+=window_default().window.scrollY,left+=window_default().window.scrollX,bottom+=window_default().window.scrollY,right+=window_default().window.scrollX;var margin={top:pxToNumber(marginTop),bottom:pxToNumber(marginBottom),left:pxToNumber(marginLeft),right:pxToNumber(marginRight)},padding={top:pxToNumber(paddingTop),bottom:pxToNumber(paddingBottom),left:pxToNumber(paddingLeft),right:pxToNumber(paddingRight)},border={top:pxToNumber(borderTopWidth),bottom:pxToNumber(borderBottomWidth),left:pxToNumber(borderLeftWidth),right:pxToNumber(borderRightWidth)},extremities={top:top-margin.top,bottom:bottom+margin.bottom,left:left-margin.left,right:right+margin.right};return{margin,padding,border,top,left,bottom,right,width,height,extremities,floatingAlignment:floatingAlignment(extremities)}}(element),marginLabels=function drawMargin(context,_ref){var margin=_ref.margin,width=_ref.width,height=_ref.height,top=_ref.top,left=_ref.left,bottom=_ref.bottom,right=_ref.right,marginHeight=height+margin.bottom+margin.top;return context.fillStyle=visualizer_colors_margin,context.fillRect(left,top-margin.top,width,margin.top),context.fillRect(right,top-margin.top,margin.right,marginHeight),context.fillRect(left,bottom,width,margin.bottom),context.fillRect(left-margin.left,top-margin.top,margin.left,marginHeight),filterZeroValues([{type:"margin",text:round(margin.top),position:"top"},{type:"margin",text:round(margin.right),position:"right"},{type:"margin",text:round(margin.bottom),position:"bottom"},{type:"margin",text:round(margin.left),position:"left"}])}(context,measurements),paddingLabels=function drawPadding(context,_ref2){var padding=_ref2.padding,border=_ref2.border,width=_ref2.width,height=_ref2.height,top=_ref2.top,left=_ref2.left,bottom=_ref2.bottom,right=_ref2.right,paddingWidth=width-border.left-border.right,paddingHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=visualizer_colors_padding,context.fillRect(left+border.left,top+border.top,paddingWidth,padding.top),context.fillRect(right-padding.right-border.right,top+padding.top+border.top,padding.right,paddingHeight),context.fillRect(left+border.left,bottom-padding.bottom-border.bottom,paddingWidth,padding.bottom),context.fillRect(left+border.left,top+padding.top+border.top,padding.left,paddingHeight),filterZeroValues([{type:"padding",text:padding.top,position:"top"},{type:"padding",text:padding.right,position:"right"},{type:"padding",text:padding.bottom,position:"bottom"},{type:"padding",text:padding.left,position:"left"}])}(context,measurements),borderLabels=function drawBorder(context,_ref3){var border=_ref3.border,width=_ref3.width,height=_ref3.height,top=_ref3.top,left=_ref3.left,bottom=_ref3.bottom,right=_ref3.right,borderHeight=height-border.top-border.bottom;return context.fillStyle=visualizer_colors_border,context.fillRect(left,top,width,border.top),context.fillRect(left,bottom-border.bottom,width,border.bottom),context.fillRect(left,top+border.top,border.left,borderHeight),context.fillRect(right-border.right,top+border.top,border.right,borderHeight),filterZeroValues([{type:"border",text:border.top,position:"top"},{type:"border",text:border.right,position:"right"},{type:"border",text:border.bottom,position:"bottom"},{type:"border",text:border.left,position:"left"}])}(context,measurements),contentLabels=function drawContent(context,_ref4){var padding=_ref4.padding,border=_ref4.border,width=_ref4.width,height=_ref4.height,top=_ref4.top,left=_ref4.left,contentWidth=width-border.left-border.right-padding.left-padding.right,contentHeight=height-padding.top-padding.bottom-border.top-border.bottom;return context.fillStyle=visualizer_colors_content,context.fillRect(left+border.left+padding.left,top+border.top+padding.top,contentWidth,contentHeight),[{type:"content",position:"center",text:"".concat(round(contentWidth)," x ").concat(round(contentHeight))}]}(context,measurements),externalLabels=measurements.width<=90||measurements.height<=30;!function labelStacks(context,measurements,labels,externalLabels){var stacks=labels.reduce((function(acc,l){return Object.prototype.hasOwnProperty.call(acc,l.position)||(acc[l.position]=[]),acc[l.position].push(l),acc}),{});stacks.top&&drawStack(context,measurements,stacks.top,externalLabels),stacks.right&&drawStack(context,measurements,stacks.right,externalLabels),stacks.bottom&&drawStack(context,measurements,stacks.bottom,externalLabels),stacks.left&&drawStack(context,measurements,stacks.left,externalLabels),stacks.center&&drawStack(context,measurements,stacks.center,externalLabels)}(context,measurements,[].concat(_toConsumableArray(contentLabels),_toConsumableArray(paddingLabels),_toConsumableArray(borderLabels),_toConsumableArray(marginLabels)),externalLabels)}}}function drawSelectedElement(element){!function draw(callback){clear(),callback(state.context)}(drawBoxModel(element))}var nodeAtPointerRef,pointer={x:0,y:0};function findAndDrawElement(x,y){nodeAtPointerRef=function deepElementFromPoint(x,y){var element=window_default().document.elementFromPoint(x,y);return function crawlShadows(node){if(node&&node.shadowRoot){var nestedElement=node.shadowRoot.elementFromPoint(x,y);return node.isEqualNode(nestedElement)?node:nestedElement.shadowRoot?crawlShadows(nestedElement):nestedElement}return node}(element)||element}(x,y),drawSelectedElement(nodeAtPointerRef)}var ADDON_ID="storybook/measure-addon";"".concat(ADDON_ID,"/tool"),"".concat(ADDON_ID,"/result"),"".concat(ADDON_ID,"/request"),"".concat(ADDON_ID,"/clear");var decorators=[function withMeasure(StoryFn,context){var measureEnabled=context.globals.measureEnabled;return(0,hooks.d4)((function(){var onMouseMove=function onMouseMove(event){window.requestAnimationFrame((function(){event.stopPropagation(),pointer.x=event.clientX,pointer.y=event.clientY}))};return document.addEventListener("mousemove",onMouseMove),function(){document.removeEventListener("mousemove",onMouseMove)}}),[]),(0,hooks.d4)((function(){var onResize=function onResize(){window.requestAnimationFrame((function(){!function rescale(){setCanvasWidthAndHeight(state.canvas,state.context,{width:0,height:0});var _getDocumentWidthAndH2=getDocumentWidthAndHeight(),width=_getDocumentWidthAndH2.width,height=_getDocumentWidthAndH2.height;setCanvasWidthAndHeight(state.canvas,state.context,{width,height}),state.width=width,state.height=height}()}))};return measureEnabled&&(document.addEventListener("mouseover",(function onMouseOver(event){window.requestAnimationFrame((function(){event.stopPropagation(),findAndDrawElement(event.clientX,event.clientY)}))})),init(),window.addEventListener("resize",onResize),findAndDrawElement(pointer.x,pointer.y)),function(){window.removeEventListener("resize",onResize),function destroy(){state.canvas&&(clear(),state.canvas.parentNode.removeChild(state.canvas),state={})}()}}),[measureEnabled]),StoryFn()}],globals=function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"measureEnabled",!1);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function addDecorator_js_generated_config_entry_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addDecorator_namespaceObject).forEach((function(key){var value=addDecorator_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";var addDecorator_namespaceObject={};__webpack_require__.r(addDecorator_namespaceObject),__webpack_require__.d(addDecorator_namespaceObject,{decorators:()=>decorators,globals:()=>globals});var _templateObject,ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),hooks=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js"),global_window=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window),clearStyles=function clearStyles(selector){(Array.isArray(selector)?selector:[selector]).forEach(clearStyle)},clearStyle=function clearStyle(selector){var element=window_default().document.getElementById(selector);element&&element.parentElement&&element.parentElement.removeChild(element)},ts_dedent_esm=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"));function outlineCSS(selector){return(0,ts_dedent_esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n "," body {\n outline: 1px solid #2980b9 !important;\n }\n\n "," article {\n outline: 1px solid #3498db !important;\n }\n\n "," nav {\n outline: 1px solid #0088c3 !important;\n }\n\n "," aside {\n outline: 1px solid #33a0ce !important;\n }\n\n "," section {\n outline: 1px solid #66b8da !important;\n }\n\n "," header {\n outline: 1px solid #99cfe7 !important;\n }\n\n "," footer {\n outline: 1px solid #cce7f3 !important;\n }\n\n "," h1 {\n outline: 1px solid #162544 !important;\n }\n\n "," h2 {\n outline: 1px solid #314e6e !important;\n }\n\n "," h3 {\n outline: 1px solid #3e5e85 !important;\n }\n\n "," h4 {\n outline: 1px solid #449baf !important;\n }\n\n "," h5 {\n outline: 1px solid #c7d1cb !important;\n }\n\n "," h6 {\n outline: 1px solid #4371d0 !important;\n }\n\n "," main {\n outline: 1px solid #2f4f90 !important;\n }\n\n "," address {\n outline: 1px solid #1a2c51 !important;\n }\n\n "," div {\n outline: 1px solid #036cdb !important;\n }\n\n "," p {\n outline: 1px solid #ac050b !important;\n }\n\n "," hr {\n outline: 1px solid #ff063f !important;\n }\n\n "," pre {\n outline: 1px solid #850440 !important;\n }\n\n "," blockquote {\n outline: 1px solid #f1b8e7 !important;\n }\n\n "," ol {\n outline: 1px solid #ff050c !important;\n }\n\n "," ul {\n outline: 1px solid #d90416 !important;\n }\n\n "," li {\n outline: 1px solid #d90416 !important;\n }\n\n "," dl {\n outline: 1px solid #fd3427 !important;\n }\n\n "," dt {\n outline: 1px solid #ff0043 !important;\n }\n\n "," dd {\n outline: 1px solid #e80174 !important;\n }\n\n "," figure {\n outline: 1px solid #ff00bb !important;\n }\n\n "," figcaption {\n outline: 1px solid #bf0032 !important;\n }\n\n "," table {\n outline: 1px solid #00cc99 !important;\n }\n\n "," caption {\n outline: 1px solid #37ffc4 !important;\n }\n\n "," thead {\n outline: 1px solid #98daca !important;\n }\n\n "," tbody {\n outline: 1px solid #64a7a0 !important;\n }\n\n "," tfoot {\n outline: 1px solid #22746b !important;\n }\n\n "," tr {\n outline: 1px solid #86c0b2 !important;\n }\n\n "," th {\n outline: 1px solid #a1e7d6 !important;\n }\n\n "," td {\n outline: 1px solid #3f5a54 !important;\n }\n\n "," col {\n outline: 1px solid #6c9a8f !important;\n }\n\n "," colgroup {\n outline: 1px solid #6c9a9d !important;\n }\n\n "," button {\n outline: 1px solid #da8301 !important;\n }\n\n "," datalist {\n outline: 1px solid #c06000 !important;\n }\n\n "," fieldset {\n outline: 1px solid #d95100 !important;\n }\n\n "," form {\n outline: 1px solid #d23600 !important;\n }\n\n "," input {\n outline: 1px solid #fca600 !important;\n }\n\n "," keygen {\n outline: 1px solid #b31e00 !important;\n }\n\n "," label {\n outline: 1px solid #ee8900 !important;\n }\n\n "," legend {\n outline: 1px solid #de6d00 !important;\n }\n\n "," meter {\n outline: 1px solid #e8630c !important;\n }\n\n "," optgroup {\n outline: 1px solid #b33600 !important;\n }\n\n "," option {\n outline: 1px solid #ff8a00 !important;\n }\n\n "," output {\n outline: 1px solid #ff9619 !important;\n }\n\n "," progress {\n outline: 1px solid #e57c00 !important;\n }\n\n "," select {\n outline: 1px solid #e26e0f !important;\n }\n\n "," textarea {\n outline: 1px solid #cc5400 !important;\n }\n\n "," details {\n outline: 1px solid #33848f !important;\n }\n\n "," summary {\n outline: 1px solid #60a1a6 !important;\n }\n\n "," command {\n outline: 1px solid #438da1 !important;\n }\n\n "," menu {\n outline: 1px solid #449da6 !important;\n }\n\n "," del {\n outline: 1px solid #bf0000 !important;\n }\n\n "," ins {\n outline: 1px solid #400000 !important;\n }\n\n "," img {\n outline: 1px solid #22746b !important;\n }\n\n "," iframe {\n outline: 1px solid #64a7a0 !important;\n }\n\n "," embed {\n outline: 1px solid #98daca !important;\n }\n\n "," object {\n outline: 1px solid #00cc99 !important;\n }\n\n "," param {\n outline: 1px solid #37ffc4 !important;\n }\n\n "," video {\n outline: 1px solid #6ee866 !important;\n }\n\n "," audio {\n outline: 1px solid #027353 !important;\n }\n\n "," source {\n outline: 1px solid #012426 !important;\n }\n\n "," canvas {\n outline: 1px solid #a2f570 !important;\n }\n\n "," track {\n outline: 1px solid #59a600 !important;\n }\n\n "," map {\n outline: 1px solid #7be500 !important;\n }\n\n "," area {\n outline: 1px solid #305900 !important;\n }\n\n "," a {\n outline: 1px solid #ff62ab !important;\n }\n\n "," em {\n outline: 1px solid #800b41 !important;\n }\n\n "," strong {\n outline: 1px solid #ff1583 !important;\n }\n\n "," i {\n outline: 1px solid #803156 !important;\n }\n\n "," b {\n outline: 1px solid #cc1169 !important;\n }\n\n "," u {\n outline: 1px solid #ff0430 !important;\n }\n\n "," s {\n outline: 1px solid #f805e3 !important;\n }\n\n "," small {\n outline: 1px solid #d107b2 !important;\n }\n\n "," abbr {\n outline: 1px solid #4a0263 !important;\n }\n\n "," q {\n outline: 1px solid #240018 !important;\n }\n\n "," cite {\n outline: 1px solid #64003c !important;\n }\n\n "," dfn {\n outline: 1px solid #b4005a !important;\n }\n\n "," sub {\n outline: 1px solid #dba0c8 !important;\n }\n\n "," sup {\n outline: 1px solid #cc0256 !important;\n }\n\n "," time {\n outline: 1px solid #d6606d !important;\n }\n\n "," code {\n outline: 1px solid #e04251 !important;\n }\n\n "," kbd {\n outline: 1px solid #5e001f !important;\n }\n\n "," samp {\n outline: 1px solid #9c0033 !important;\n }\n\n "," var {\n outline: 1px solid #d90047 !important;\n }\n\n "," mark {\n outline: 1px solid #ff0053 !important;\n }\n\n "," bdi {\n outline: 1px solid #bf3668 !important;\n }\n\n "," bdo {\n outline: 1px solid #6f1400 !important;\n }\n\n "," ruby {\n outline: 1px solid #ff7b93 !important;\n }\n\n "," rt {\n outline: 1px solid #ff2f54 !important;\n }\n\n "," rp {\n outline: 1px solid #803e49 !important;\n }\n\n "," span {\n outline: 1px solid #cc2643 !important;\n }\n\n "," br {\n outline: 1px solid #db687d !important;\n }\n\n "," wbr {\n outline: 1px solid #db175b !important;\n }"])),selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector,selector)}var decorators=[function withOutline(StoryFn,context){var isActive=!0===context.globals.outline,isInDocs="docs"===context.viewMode,outlineStyles=(0,hooks.Ye)((function(){return outlineCSS(isInDocs?"#anchor--".concat(context.id," .docs-story"):".sb-show-main")}),[context]);return(0,hooks.d4)((function(){var selectorId=isInDocs?"addon-outline-docs-".concat(context.id):"addon-outline";return isActive?function addOutlineStyles(selector,css){var existingStyle=window_default().document.getElementById(selector);if(existingStyle)existingStyle.innerHTML!==css&&(existingStyle.innerHTML=css);else{var style=window_default().document.createElement("style");style.setAttribute("id",selector),style.innerHTML=css,window_default().document.head.appendChild(style)}}(selectorId,outlineStyles):clearStyles(selectorId),function(){clearStyles(selectorId)}}),[isActive,outlineStyles,context]),StoryFn()}],globals=function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},"outline",!1);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function addDecorator_js_generated_config_entry_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(addDecorator_namespaceObject).forEach((function(key){var value=addDecorator_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{c8:()=>HooksContext,DM:()=>applyHooks,Ye:()=>useMemo,d4:()=>useEffect});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.weak-map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.set.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js");var global__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_19__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),_storybook_core_events__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-events@6.4.4/node_modules/@storybook/core-events/dist/esm/index.js"),_index__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js");function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i25)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return hooks.addRenderListeners(),result}}},invalidHooksError=function invalidHooksError(){return new Error("Storybook preview hooks can only be called inside decorators and story functions.")};function getHooksContextOrNull(){return globalWindow.STORYBOOK_HOOKS_CONTEXT||null}function getHooksContextOrThrow(){var hooks=getHooksContextOrNull();if(null==hooks)throw invalidHooksError();return hooks}function useMemoLike(name,nextCreate,deps){var _useHook=function useHook(name,callback,deps){var hooks=getHooksContextOrThrow();if("MOUNT"===hooks.currentPhase){null==deps||Array.isArray(deps)||_storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn("".concat(name," received a final argument that is not an array (instead, received ").concat(deps,"). When specified, the final argument must be an array."));var _hook={name,deps};return hooks.currentHooks.push(_hook),callback(_hook),_hook}if("UPDATE"===hooks.currentPhase){var _hook2=hooks.getNextHook();if(null==_hook2)throw new Error("Rendered more hooks than during the previous render.");return _hook2.name!==name&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn("Storybook has detected a change in the order of Hooks".concat(hooks.currentDecoratorName?" called by ".concat(hooks.currentDecoratorName):"",". This will lead to bugs and errors if not fixed.")),null!=deps&&null==_hook2.deps&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn("".concat(name," received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.")),null!=deps&&null!=_hook2.deps&&deps.length!==_hook2.deps.length&&_storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn("The final argument passed to ".concat(name," changed size between renders. The order and size of this array must remain constant.\nPrevious: ").concat(_hook2.deps,"\nIncoming: ").concat(deps)),null!=deps&&null!=_hook2.deps&&function areDepsEqual(deps,nextDeps){return deps.length===nextDeps.length&&deps.every((function(dep,i){return dep===nextDeps[i]}))}(deps,_hook2.deps)||(callback(_hook2),_hook2.deps=deps),_hook2}throw invalidHooksError()}(name,(function(hook){hook.memoizedState=nextCreate()}),deps);return _useHook.memoizedState}function useMemo(nextCreate,deps){return useMemoLike("useMemo",nextCreate,deps)}function useEffect(create,deps){var hooks=getHooksContextOrThrow(),effect=useMemoLike("useEffect",(function(){return{create}}),deps);hooks.currentEffects.includes(effect)||hooks.currentEffects.push(effect)}},"../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{KP:()=>addons});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.values.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js");var types,global_window=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js");__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.find.js");!function(types){types.TAB="tab",types.PANEL="panel",types.TOOL="tool",types.TOOLEXTRA="toolextra",types.PREVIEW="preview",types.NOTES_ELEMENT="notes-element"}(types||(types={}));var AddonStore=function AddonStore(){var _this=this;!function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,AddonStore),this.loaders={},this.elements={},this.config={},this.channel=void 0,this.serverChannel=void 0,this.promise=void 0,this.resolve=void 0,this.getChannel=function(){if(!_this.channel)throw new Error("Accessing non-existent addons channel, see https://storybook.js.org/basics/faq/#why-is-there-no-addons-channel");return _this.channel},this.getServerChannel=function(){if(!_this.serverChannel)throw new Error("Accessing non-existent serverChannel");return _this.serverChannel},this.ready=function(){return _this.promise},this.hasChannel=function(){return!!_this.channel},this.hasServerChannel=function(){return!!_this.serverChannel},this.setChannel=function(channel){_this.channel=channel,_this.resolve()},this.setServerChannel=function(channel){_this.serverChannel=channel},this.getElements=function(type){return _this.elements[type]||(_this.elements[type]={}),_this.elements[type]},this.addPanel=function(name,options){_this.add(name,Object.assign({type:types.PANEL},options))},this.add=function(name,addon){var type=addon.type;_this.getElements(type)[name]=Object.assign({id:name},addon)},this.setConfig=function(value){Object.assign(_this.config,value)},this.getConfig=function(){return _this.config},this.register=function(name,registerCallback){_this.loaders[name]&&esm.kg.warn("".concat(name," was loaded twice, this could have bad side-effects")),_this.loaders[name]=registerCallback},this.loadAddons=function(api){Object.values(_this.loaders).forEach((function(value){return value(api)}))},this.promise=new Promise((function(res){_this.resolve=function(){return res(_this.getChannel())}}))},KEY="__STORYBOOK_ADDONS";var addons=function getAddonsStore(){return window_default()[KEY]||(window_default()[KEY]=new AddonStore),window_default()[KEY]}()},"../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ti:()=>ClientApi,My:()=>addArgTypesEnhancer,_C:()=>addArgsEnhancer,$9:()=>addDecorator,HZ:()=>addLoader,h1:()=>addParameters,$P:()=>setGlobalRender});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.set.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.values.js");var browser=__webpack_require__("../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js"),browser_default=__webpack_require__.n(browser),esm=__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),global_window=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),dist=__webpack_require__("../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/index.js"),esm_parameters=__webpack_require__("../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"),normalizeInputTypes=__webpack_require__("../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/normalizeInputTypes.js"),synchronous_promise=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.constructor.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/synchronous-promise@2.0.15/node_modules/synchronous-promise/index.js")),stable=__webpack_require__("../../../node_modules/.pnpm/stable@0.1.8/node_modules/stable/stable.js"),stable_default=__webpack_require__.n(stable),STORY_KIND_PATH_SEPARATOR=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.trim.js"),/\s*\/\s*/);var sortStoriesCommon=function sortStoriesCommon(stories,storySortParameter,fileNameOrder){var sortFn;storySortParameter?(sortFn="function"==typeof storySortParameter?storySortParameter:function storySort(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(a,b){if(a.title===b.title&&!options.includeNames)return 0;var method=options.method||"configure",order=options.order||[],storyTitleA=a.title.trim().split(STORY_KIND_PATH_SEPARATOR),storyTitleB=b.title.trim().split(STORY_KIND_PATH_SEPARATOR);options.includeNames&&(storyTitleA.push(a.name),storyTitleB.push(b.name));for(var depth=0;storyTitleA[depth]||storyTitleB[depth];){if(!storyTitleA[depth])return-1;if(!storyTitleB[depth])return 1;var nameA=storyTitleA[depth],nameB=storyTitleB[depth];if(nameA!==nameB){var indexA=order.indexOf(nameA),indexB=order.indexOf(nameB),indexWildcard=order.indexOf("*");return-1!==indexA||-1!==indexB?(-1===indexA&&(indexA=-1!==indexWildcard?indexWildcard:order.length),-1===indexB&&(indexB=-1!==indexWildcard?indexWildcard:order.length),indexA-indexB):"configure"===method?0:nameA.localeCompare(nameB,options.locales?options.locales:void 0,{numeric:!0,sensitivity:"accent"})}var index=order.indexOf(nameA);order=-1!==index&&Array.isArray(order[index+1])?order[index+1]:[],depth+=1}return 0}}(storySortParameter),stable_default().inplace(stories,sortFn)):stable_default().inplace(stories,(function(s1,s2){return fileNameOrder.indexOf(s1.importPath)-fileNameOrder.indexOf(s2.importPath)}));return stories},toIndexEntry=function toIndexEntry(story){return{id:story.id,title:story.title,name:story.name,importPath:story.parameters.fileName}},startCase=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/startCase.js")),startCase_default=__webpack_require__.n(startCase),path_ignored_=__webpack_require__("?d7aa"),path_ignored_default=__webpack_require__.n(path_ignored_),slash=__webpack_require__("../../../node_modules/.pnpm/slash@3.0.0/node_modules/slash/index.js"),slash_default=__webpack_require__.n(slash);function _toArray(arr){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0?last.substr(0,dotIndex):last;parts[parts.length-1]=stripped;var _parts2=_toArray(parts),first=_parts2[0],rest=_parts2.slice(1);return""===first&&(parts=rest),parts.join("/")}(slash_default()(path_ignored_default().join(titlePrefix,suffix))))}};function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _slicedToArray(arr,i){return function StoryStoreFacade_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function StoryStoreFacade_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return StoryStoreFacade_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return StoryStoreFacade_arrayLikeToArray(o,minLen)}(arr,i)||function StoryStoreFacade_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStoreFacade_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i ","\n \n Are you using a V7-style sort function in V6 compatibility mode?\n \n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort\n "])),storySortParameter,err.message));throw err}return{v:3,stories:sortedV7.reduce((function(acc,s){return acc[s.id]=_this2.stories[s.id],acc}),{})}}},{key:"clearFilenameExports",value:function clearFilenameExports(fileName){var _this3=this;this.csfExports[fileName]&&(Object.entries(this.stories).forEach((function(_ref3){var _ref4=_slicedToArray(_ref3,2),id=_ref4[0];_ref4[1].importPath===fileName&&delete _this3.stories[id]})),this.csfExports[fileName]={})}},{key:"addStoriesFromExports",value:function addStoriesFromExports(fileName,fileExports){var _this4=this;if(this.csfExports[fileName]!==fileExports){this.clearFilenameExports(fileName);var defaultExport=fileExports.default,__namedExportsOrder=fileExports.__namedExportsOrder,namedExports=_objectWithoutProperties(fileExports,["default","__namedExportsOrder"]),_ref5=defaultExport||{},componentId=_ref5.id,title=_ref5.title;if(title=title||function autoTitle(fileName,storiesEntries){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function ClientApi_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function ClientApi_defineProperties(target,props){for(var i=0;i1&&void 0!==arguments[1])||arguments[1];checkMethod("addDecorator",deprecationWarning),singleton.addDecorator(decorator)},addParameters=function addParameters(parameters){var deprecationWarning=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];checkMethod("addParameters",deprecationWarning),singleton.addParameters(parameters)},addLoader=function addLoader(loader){var deprecationWarning=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];checkMethod("addLoader",deprecationWarning),singleton.addLoader(loader)},addArgsEnhancer=function addArgsEnhancer(enhancer){checkMethod("addArgsEnhancer",!1),singleton.addArgsEnhancer(enhancer)},addArgTypesEnhancer=function addArgTypesEnhancer(enhancer){checkMethod("addArgTypesEnhancer",!1),singleton.addArgTypesEnhancer(enhancer)},setGlobalRender=function setGlobalRender(render){checkMethod("setGlobalRender",!1),singleton.facade.projectAnnotations.render=render},invalidStoryTypes=new Set(["string","number","boolean","symbol"]),ClientApi=function(){function ClientApi(){var _this=this,_ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},storyStore=_ref.storyStore;ClientApi_classCallCheck(this,ClientApi),this.facade=void 0,this.storyStore=void 0,this.addons=void 0,this.onImportFnChanged=void 0,this.lastFileName=0,this.setAddon=browser_default()((function(addon){_this.addons=Object.assign({},_this.addons,addon)}),(0,esm.C)(_templateObject3||(_templateObject3=ClientApi_taggedTemplateLiteral(["\n `setAddon` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "],["\n \\`setAddon\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-setaddon\n "])))),this.addDecorator=function(decorator){_this.facade.projectAnnotations.decorators.push(decorator)},this.clearDecorators=browser_default()((function(){_this.facade.projectAnnotations.decorators=[]}),(0,esm.C)(_templateObject4||(_templateObject4=ClientApi_taggedTemplateLiteral(["\n `clearDecorators` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "],["\n \\`clearDecorators\\` is deprecated and will be removed in Storybook 7.0.\n\n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-cleardecorators\n "])))),this.addParameters=function(_ref2){var globals=_ref2.globals,globalTypes=_ref2.globalTypes,parameters=ClientApi_objectWithoutProperties(_ref2,["globals","globalTypes"]);_this.facade.projectAnnotations.parameters=(0,esm_parameters.f)(_this.facade.projectAnnotations.parameters,parameters),globals&&(_this.facade.projectAnnotations.globals=Object.assign({},_this.facade.projectAnnotations.globals,globals)),globalTypes&&(_this.facade.projectAnnotations.globalTypes=Object.assign({},_this.facade.projectAnnotations.globalTypes,(0,normalizeInputTypes.x)(globalTypes)))},this.addLoader=function(loader){_this.facade.projectAnnotations.loaders.push(loader)},this.addArgsEnhancer=function(enhancer){_this.facade.projectAnnotations.argsEnhancers.push(enhancer)},this.addArgTypesEnhancer=function(enhancer){_this.facade.projectAnnotations.argTypesEnhancers.push(enhancer)},this.storiesOf=function(kind,m){if(!kind&&"string"!=typeof kind)throw new Error("Invalid or missing kind provided for stories, should be a string");if(m||dist_esm.kg.warn("Missing 'module' parameter for story with a kind of '".concat(kind,"'. It will break your HMR")),m){var proto=Object.getPrototypeOf(m);proto.exports&&proto.exports.default&&dist_esm.kg.error("Illegal mix of CSF default export and storiesOf calls in a single file: ".concat(proto.i))}for(var baseFilename=m&&m.id?"".concat(m.id):(_this.lastFileName++).toString(),fileName=baseFilename,i=1;_this.facade.csfExports[fileName]&&Object.keys(_this.facade.csfExports[fileName]).length>0;)i+=1,fileName="".concat(baseFilename,"-").concat(i);m&&m.hot&&m.hot.accept&&(m.hot.accept(),m.hot.dispose((function(){_this.facade.clearFilenameExports(fileName),setTimeout((function(){var _this$onImportFnChang;null===(_this$onImportFnChang=_this.onImportFnChanged)||void 0===_this$onImportFnChang||_this$onImportFnChang.call(_this,{importFn:_this.importFn.bind(_this)})}),0)})));var hasAdded=!1,api={kind:kind.toString(),add:function add(){return api},addDecorator:function addDecorator(){return api},addLoader:function addLoader(){return api},addParameters:function addParameters(){return api}};Object.keys(_this.addons).forEach((function(name){var addon=_this.addons[name];api[name]=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return addon.apply(api,args),api}}));var meta={id:(0,dist.sanitize)(kind),title:kind,decorators:[],loaders:[],parameters:{}};_this.facade.csfExports[fileName]={default:meta};var counter=0;return api.add=function(storyName,storyFn){var parameters=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(hasAdded=!0,"string"!=typeof storyName)throw new Error('Invalid or missing storyName provided for a "'.concat(kind,'" story.'));if(!storyFn||Array.isArray(storyFn)||invalidStoryTypes.has(_typeof(storyFn)))throw new Error('Cannot load story "'.concat(storyName,'" in "').concat(kind,'" due to invalid format. Storybook expected a function/object but received ').concat(_typeof(storyFn)," instead."));var decorators=parameters.decorators,loaders=parameters.loaders,component=parameters.component,args=parameters.args,argTypes=parameters.argTypes,storyParameters=ClientApi_objectWithoutProperties(parameters,["decorators","loaders","component","args","argTypes"]),storyId=parameters.__id||(0,dist.toId)(kind,storyName),csfExports=_this.facade.csfExports[fileName];return csfExports["story".concat(counter)]={name:storyName,parameters:Object.assign({fileName,__id:storyId},storyParameters),decorators,loaders,args,argTypes,component,render:storyFn},counter+=1,_this.facade.stories[storyId]={id:storyId,title:csfExports.default.title,name:storyName,importPath:fileName},api},api.addDecorator=function(decorator){if(hasAdded)throw new Error("You cannot add a decorator after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.decorators.push(decorator),api},api.addLoader=function(loader){if(hasAdded)throw new Error("You cannot add a loader after the first story for a kind.");return meta.loaders.push(loader),api},api.addParameters=function(_ref3){var component=_ref3.component,args=_ref3.args,argTypes=_ref3.argTypes,parameters=ClientApi_objectWithoutProperties(_ref3,["component","args","argTypes"]);if(hasAdded)throw new Error("You cannot add parameters after the first story for a kind.\nRead more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories");return meta.parameters=(0,esm_parameters.f)(meta.parameters,parameters),component&&(meta.component=component),args&&(meta.args=Object.assign({},meta.args,args)),argTypes&&(meta.argTypes=Object.assign({},meta.argTypes,argTypes)),api},api},this.getStorybook=function(){var stories=_this.storyStore.storyIndex.stories,kinds={};return Object.entries(stories).forEach((function(_ref4){var _ref5=ClientApi_slicedToArray(_ref4,2),storyId=_ref5[0],_ref5$=_ref5[1],title=_ref5$.title,name=_ref5$.name,importPath=_ref5$.importPath;kinds[title]||(kinds[title]={kind:title,fileName:importPath,stories:[]});var storyFn=_this.storyStore.fromId(storyId).storyFn;kinds[title].stories.push({name,render:storyFn})})),Object.values(kinds)},this.raw=function(){return _this.storyStore.raw()},this.facade=new StoryStoreFacade,this.addons={},this.storyStore=storyStore,singleton=this}return function ClientApi_createClass(Constructor,protoProps,staticProps){return protoProps&&ClientApi_defineProperties(Constructor.prototype,protoProps),staticProps&&ClientApi_defineProperties(Constructor,staticProps),Constructor}(ClientApi,[{key:"importFn",value:function importFn(path){return this.facade.importFn(path)}},{key:"getStoryIndex",value:function getStoryIndex(){if(!this.storyStore)throw new Error("Cannot get story index before setting storyStore");return this.facade.getStoryIndex(this.storyStore)}},{key:"_storyStore",get:function get(){return this.storyStore}}]),ClientApi}()},"../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{kg:()=>logger,IH:()=>once,IC:()=>pretty});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.set.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js");var global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__),LOGLEVEL=global__WEBPACK_IMPORTED_MODULE_8___default().LOGLEVEL,console=global__WEBPACK_IMPORTED_MODULE_8___default().console,levels={trace:1,debug:2,info:3,warn:4,error:5,silent:10},currentLogLevelNumber=levels[LOGLEVEL]||levels.info,logger={trace:function trace(message){for(var _len=arguments.length,rest=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)rest[_key-1]=arguments[_key];return currentLogLevelNumber<=levels.trace&&console.trace.apply(console,[message].concat(rest))},debug:function debug(message){for(var _len2=arguments.length,rest=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)rest[_key2-1]=arguments[_key2];return currentLogLevelNumber<=levels.debug&&console.debug.apply(console,[message].concat(rest))},info:function info(message){for(var _len3=arguments.length,rest=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)rest[_key3-1]=arguments[_key3];return currentLogLevelNumber<=levels.info&&console.info.apply(console,[message].concat(rest))},warn:function warn(message){for(var _len4=arguments.length,rest=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)rest[_key4-1]=arguments[_key4];return currentLogLevelNumber<=levels.warn&&console.warn.apply(console,[message].concat(rest))},error:function error(message){for(var _len5=arguments.length,rest=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++)rest[_key5-1]=arguments[_key5];return currentLogLevelNumber<=levels.error&&console.error.apply(console,[message].concat(rest))},log:function log(message){for(var _len6=arguments.length,rest=new Array(_len6>1?_len6-1:0),_key6=1;_key6<_len6;_key6++)rest[_key6-1]=arguments[_key6];return currentLogLevelNumber1?_len7-1:0),_key7=1;_key7<_len7;_key7++)rest[_key7-1]=arguments[_key7];return logger[type].apply(logger,[message].concat(rest))}}};once.clear=function(){return logged.clear()},once.trace=once("trace"),once.debug=once("debug"),once.info=once("info"),once.warn=once("warn"),once.error=once("error"),once.log=once("log");var pretty=function pretty(type){return function(){for(var argArray=[],_len8=arguments.length,args=new Array(_len8),_key8=0;_key8<_len8;_key8++)args[_key8]=arguments[_key8];if(args.length){var reResultArray,startTagRe=//gi,endTagRe=/<\/span>/gi;for(argArray.push(args[0].replace(startTagRe,"%c").replace(endTagRe,"%c"));reResultArray=startTagRe.exec(args[0]);)argArray.push(reResultArray[2]),argArray.push("");for(var j=1;j{"use strict";__webpack_require__.d(__webpack_exports__,{o:()=>ActionBar});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js");function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Container=_storybook_theming__WEBPACK_IMPORTED_MODULE_5__.zo.div((function(_ref){return{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:_ref.theme.background.content,zIndex:1}})),ActionButton=_storybook_theming__WEBPACK_IMPORTED_MODULE_5__.zo.button((function(_ref2){var theme=_ref2.theme;return{margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:"1px solid ".concat(theme.appBorderColor),borderLeft:"1px solid ".concat(theme.appBorderColor),marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:"1px solid ".concat(theme.appBorderColor)},"& + *":{borderLeft:"1px solid ".concat(theme.appBorderColor),borderRadius:0},"&:focus":{boxShadow:"".concat(theme.color.secondary," 0 -3px 0 0 inset"),outline:"0 none"}}}),(function(_ref3){return _ref3.disabled&&{cursor:"not-allowed",opacity:.5}}));ActionButton.displayName="ActionButton";var ActionBar=function ActionBar(_ref4){var actionItems=_ref4.actionItems,props=_objectWithoutProperties(_ref4,["actionItems"]);return react__WEBPACK_IMPORTED_MODULE_4__.createElement(Container,props,actionItems.map((function(_ref5,index){var title=_ref5.title,className=_ref5.className,onClick=_ref5.onClick,disabled=_ref5.disabled;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(ActionButton,{key:index,className,onClick,disabled},title)})))};ActionBar.displayName="ActionBar"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/ScrollArea/ScrollArea.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>ScrollArea});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var GlobalScrollAreaStyles=react__WEBPACK_IMPORTED_MODULE_5__.lazy((function(){return __webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/ScrollArea/GlobalScrollAreaStyles.js"))})),OverlayScrollbars=react__WEBPACK_IMPORTED_MODULE_5__.lazy((function(){return __webpack_require__.e(567).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/ScrollArea/OverlayScrollbars.js"))})),Scroller=function Scroller(_ref){_ref.horizontal,_ref.vertical;var props=_objectWithoutProperties(_ref,["horizontal","vertical"]);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(react__WEBPACK_IMPORTED_MODULE_5__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_5__.createElement("div",props)},react__WEBPACK_IMPORTED_MODULE_5__.createElement(GlobalScrollAreaStyles,null),react__WEBPACK_IMPORTED_MODULE_5__.createElement(OverlayScrollbars,_extends({options:{scrollbars:{autoHide:"leave"}}},props)))};Scroller.displayName="Scroller";var ScrollArea=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_6__.zo)(Scroller)((function(_ref2){return _ref2.vertical?{overflowY:"auto",height:"100%"}:{overflowY:"hidden"}}),(function(_ref3){return _ref3.horizontal?{overflowX:"auto",width:"100%"}:{overflowX:"hidden"}}));ScrollArea.defaultProps={horizontal:!1,vertical:!1}},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/bar/bar.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{j:()=>FlexBar});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js");var react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),_ScrollArea_ScrollArea__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/ScrollArea/ScrollArea.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Side=_storybook_theming__WEBPACK_IMPORTED_MODULE_12__.zo.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",flexShrink:0,marginLeft:3,marginRight:3},(function(_ref){return _ref.left?{"& > *":{marginLeft:4}}:{}}),(function(_ref2){return _ref2.right?{marginLeft:30,"& > *":{marginRight:4}}:{}}));Side.displayName="Side";var Bar=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_12__.zo)((function(_ref3){var children=_ref3.children,className=_ref3.className;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(_ScrollArea_ScrollArea__WEBPACK_IMPORTED_MODULE_13__.x,{horizontal:!0,vertical:!1,className},children)}))((function(_ref4){return{color:_ref4.theme.barTextColor,width:"100%",height:40,flexShrink:0,overflow:"auto",overflowY:"hidden"}}),(function(_ref5){var theme=_ref5.theme;return _ref5.border?{boxShadow:"".concat(theme.appBorderColor," 0 -1px 0 0 inset"),background:theme.barBg}:{}}));Bar.displayName="Bar";var BarInner=_storybook_theming__WEBPACK_IMPORTED_MODULE_12__.zo.div((function(_ref6){return{display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:_ref6.bgColor||""}})),FlexBar=function FlexBar(_ref7){var children=_ref7.children,backgroundColor=_ref7.backgroundColor,rest=_objectWithoutProperties(_ref7,["children","backgroundColor"]),_Children$toArray2=_slicedToArray(react__WEBPACK_IMPORTED_MODULE_11__.Children.toArray(children),2),left=_Children$toArray2[0],right=_Children$toArray2[1];return react__WEBPACK_IMPORTED_MODULE_11__.createElement(Bar,rest,react__WEBPACK_IMPORTED_MODULE_11__.createElement(BarInner,{bgColor:backgroundColor},react__WEBPACK_IMPORTED_MODULE_11__.createElement(Side,{left:!0},left),right?react__WEBPACK_IMPORTED_MODULE_11__.createElement(Side,{right:!0},right):null))};FlexBar.displayName="FlexBar",FlexBar.displayName="FlexBar"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/bar/button.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Y6:()=>TabButton,hU:()=>IconButton,Z$:()=>IconButtonSkeleton});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@emotion+is-prop-valid@0.8.8/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js"),polished__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),_popperjs_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/@popperjs+core@2.10.2/node_modules/@popperjs/core/lib/enums.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ButtonOrLink=function ButtonOrLink(_ref){var children=_ref.children,restProps=_objectWithoutProperties(_ref,["children"]);return null!=restProps.href?react__WEBPACK_IMPORTED_MODULE_3__.createElement("a",restProps,children):react__WEBPACK_IMPORTED_MODULE_3__.createElement("button",_extends({type:"button"},restProps),children)},TabButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_5__.Z})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},(function(_ref2){return{padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:_ref2.theme.color.secondary}}}),(function(_ref3){var active=_ref3.active,textColor=_ref3.textColor,theme=_ref3.theme;return active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:"transparent"}}));TabButton.displayName="TabButton";var IconButton=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo)(ButtonOrLink,{shouldForwardProp:_storybook_theming__WEBPACK_IMPORTED_MODULE_5__.Z})((function(){return{alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}}),(function(_ref4){var active=_ref4.active,theme=_ref4.theme;return active?{backgroundColor:theme.background.hoverable,color:theme.color.secondary}:{}}),(function(_ref5){var disabled=_ref5.disabled,theme=_ref5.theme;return disabled?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:(0,polished__WEBPACK_IMPORTED_MODULE_6__.DZ)(.88,theme.color.secondary),color:theme.color.secondary},"&:focus-visible":{outline:_popperjs_core__WEBPACK_IMPORTED_MODULE_7__.d7},"&:focus:not(:focus-visible)":{outline:"none"}}}));IconButton.displayName="IconButton";var IconPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo.div((function(_ref6){var theme=_ref6.theme;return{width:14,height:14,backgroundColor:theme.appBorderColor,animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite")}})),IconButtonSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo.div((function(){return{marginTop:6,padding:7,height:28}})),IconButtonSkeleton=function IconButtonSkeleton(){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(IconButtonSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement(IconPlaceholder,null))};IconButtonSkeleton.displayName="IconButtonSkeleton"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/ArgsTable/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ArgsTable:()=>ArgsTable,ArgsTableError:()=>ArgsTableError,TabbedArgsTable:()=>TabbedArgsTable});__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/ArgsTable/types.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js");var react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),pickBy=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js"),pickBy_default=__webpack_require__.n(pickBy),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),polished_esm=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),icon=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/icon/icon.js"),index_module=__webpack_require__("../../../node_modules/.pnpm/markdown-to-jsx@7.1.3_react@17.0.2/node_modules/markdown-to-jsx/dist/index.module.js"),shared=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/shared.js")),Table=esm.zo.table((function(_ref){var theme=_ref.theme;return{"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:(0,shared.CI)({theme}),"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}}})),ArgJsDoc=function ArgJsDoc(_ref2){var tags=_ref2.tags,params=(tags.params||[]).filter((function(x){return x.description})),hasDisplayableParams=0!==params.length,hasDisplayableReturns=null!=tags.returns&&null!=tags.returns.description;return hasDisplayableParams||hasDisplayableReturns?react.createElement(Table,null,react.createElement("tbody",null,hasDisplayableParams&¶ms.map((function(x){return react.createElement("tr",{key:x.name},react.createElement("td",null,react.createElement("code",null,x.name)),react.createElement("td",null,x.description))})),hasDisplayableReturns&&react.createElement("tr",{key:"returns"},react.createElement("td",null,react.createElement("code",null,"Returns")),react.createElement("td",null,tags.returns.description)))):null};ArgJsDoc.displayName="ArgJsDoc";__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.to-string.js");var memoizerific=__webpack_require__("../../../node_modules/.pnpm/memoizerific@1.11.3/node_modules/memoizerific/memoizerific.js"),memoizerific_default=__webpack_require__.n(memoizerific),uniq=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js"),uniq_default=__webpack_require__.n(uniq),lazy_WithTooltip=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/tooltip/lazy-WithTooltip.js"),lazy_syntaxhighlighter=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1])||arguments[1],items=summaryItems;return isExpanded||(items=summaryItems.slice(0,8)),items.map((function(item){return react.createElement(ArgText,{key:item,text:""===item?'""':item})}))},ArgSummary=function ArgSummary(_ref7){var value=_ref7.value,initialExpandedArgs=_ref7.initialExpandedArgs,summary=value.summary,detail=value.detail,_useState2=_slicedToArray((0,react.useState)(!1),2),isOpen=_useState2[0],setIsOpen=_useState2[1],_useState4=_slicedToArray((0,react.useState)(initialExpandedArgs||!1),2),isExpanded=_useState4[0],setIsExpanded=_useState4[1];if(null==summary)return null;var summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react.createElement(ArgText,{text:summaryAsString});var summaryItems=function getSummaryItems(summary){if(!summary)return[summary];var summaryItems=summary.split("|").map((function(value){return value.trim()}));return uniq_default()(summaryItems)}(summaryAsString),itemsCount=summaryItems.length;return itemsCount>8?react.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react.createElement(ExpandButton,{onClick:function onClick(){return setIsExpanded(!isExpanded)}},isExpanded?"Show less...":"Show ".concat(itemsCount-8," more..."))):react.createElement(Summary,null,renderSummaryItems(summaryItems))}return react.createElement(lazy_WithTooltip.D,{closeOnClick:!0,trigger:"click",placement:"bottom",tooltipShown:isOpen,onVisibilityChange:function onVisibilityChange(isVisible){setIsOpen(isVisible)},tooltip:react.createElement(Detail,{width:calculateDetailWidth(detail)},react.createElement(lazy_syntaxhighlighter.d,{language:"jsx",format:!1},detail))},react.createElement(Expandable,{className:"sbdocs-expandable"},react.createElement("span",null,summaryAsString),react.createElement(ArrowIcon,{icon:isOpen?"arrowup":"arrowdown"})))};ArgSummary.displayName="ArgSummary";var ArgValue=function ArgValue(_ref8){var value=_ref8.value,initialExpandedArgs=_ref8.initialExpandedArgs;return null==value?react.createElement(EmptyArg,null):react.createElement(ArgSummary,{value,initialExpandedArgs})},controls=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/index.js"),global_window=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js")),window_default=__webpack_require__.n(global_window),cloneDeep=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js"),cloneDeep_default=__webpack_require__.n(cloneDeep),emotion_element_99289b21_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-element-99289b21.browser.esm.js"),prop_types=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("../../../node_modules/.pnpm/prop-types@15.7.2/node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types);__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.repeat.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function getObjectType(obj){return null===obj||"object"!==_typeof(obj)||Array.isArray(obj)||"function"!=typeof obj[Symbol.iterator]?Object.prototype.toString.call(obj).slice(8,-1):"Iterable"}function isComponentWillChange(oldValue,newValue){var oldType=getObjectType(oldValue),newType=getObjectType(newValue);return("Function"===oldType||"Function"===newType)&&newType!==oldType}const inputUsageTypes_KEY="key",inputUsageTypes_VALUE="value";function JsonValue_typeof(obj){return JsonValue_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},JsonValue_typeof(obj)}function JsonValue_toConsumableArray(arr){return function JsonValue_arrayWithoutHoles(arr){if(Array.isArray(arr))return JsonValue_arrayLikeToArray(arr)}(arr)||function JsonValue_iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||function JsonValue_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return JsonValue_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JsonValue_arrayLikeToArray(o,minLen)}(arr)||function JsonValue_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JsonValue_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.background.app,borderColor:theme.color.border}}})),Button=esm.zo.button((function(_ref2){var theme=_ref2.theme,primary=_ref2.primary;return{border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}})),ActionIcon=(0,esm.zo)(icon.P)((function(_ref3){var theme=_ref3.theme,icon=_ref3.icon,disabled=_ref3.disabled;return{display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.color.mediumdark,"&:hover":disabled?{}:{color:"subtract"===icon?theme.color.negative:theme.color.ancillary},"svg + &":{marginLeft:0}}})),Input=esm.zo.input((function(_ref4){var theme=_ref4.theme,placeholder=_ref4.placeholder;return{outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:"1px solid ".concat(theme.color.border),borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:"1px solid ".concat(theme.color.secondary)}}})),RawButton=(0,esm.zo)(bar_button.hU)((function(_ref5){var theme=_ref5.theme;return{position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:"1px solid ".concat(theme.color.border),borderRadius:3,color:theme.color.mediumdark,fontSize:"9px",fontWeight:"bold",span:{marginLeft:3,marginTop:1}}})),RawInput=(0,esm.zo)(esm_form.l.Textarea)((function(_ref6){var theme=_ref6.theme;return{flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=function dispatchEnterKey(event){event.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=function selectValue(event){event.currentTarget.select()},getCustomStyleFunction=function getCustomStyleFunction(theme){return function(){return{name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}}},ObjectControl=function ObjectControl(_ref7){var name=_ref7.name,value=_ref7.value,onChange=_ref7.onChange,theme=(0,emotion_element_99289b21_browser_esm.u)(),data=(0,react.useMemo)((function(){return value&&cloneDeep_default()(value)}),[value]),hasData=null!=data,_useState2=Object_slicedToArray((0,react.useState)(!hasData),2),showRaw=_useState2[0],setShowRaw=_useState2[1],_useState4=Object_slicedToArray((0,react.useState)(null),2),parseError=_useState4[0],setParseError=_useState4[1],updateRaw=(0,react.useCallback)((function(raw){try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e){setParseError(e)}}),[onChange]),_useState6=Object_slicedToArray((0,react.useState)(!1),2),forceVisible=_useState6[0],setForceVisible=_useState6[1],onForceVisible=(0,react.useCallback)((function(){onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react.useRef)(null);if((0,react.useEffect)((function(){forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react.createElement(esm_form.l.Button,{id:(0,helpers.O)(name),onClick:onForceVisible},"Set object");var rawJSONForm=react.createElement(RawInput,{ref:htmlElRef,id:(0,helpers.d)(name),name,defaultValue:null===value?"":JSON.stringify(value,null,2),onBlur:function onBlur(event){return updateRaw(event.target.value)},placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null});return react.createElement(Wrapper,null,["Object","Array"].includes(getObjectType(data))&&react.createElement(RawButton,{onClick:function onClick(){return setShowRaw((function(v){return!v}))}},react.createElement(icon.P,{icon:showRaw?"eyeclose":"eye"}),react.createElement("span",null,"RAW")),showRaw?rawJSONForm:react.createElement(JsonTree,{data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react.createElement(Button,{type:"submit"},"Save"),addButtonElement:react.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react.createElement(ActionIcon,{icon:"subtract"}),inputElement:function inputElement(_,__,___,key){return key?react.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react.createElement(Input,null)},fallback:rawJSONForm}))};ObjectControl.displayName="ObjectControl";__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.bold.js");var Label=esm.zo.label((function(_ref){var theme=_ref.theme;return{lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:"".concat((0,polished_esm.jb)(.05,theme.appBorderColor)),borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset !important")}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:(0,polished_esm.DZ)(.4,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:"".concat((0,polished_esm.jb)(.3,theme.appBorderColor)," 0 0 0 1px inset")},"&:active":{boxShadow:"".concat((0,polished_esm.jb)(.05,theme.appBorderColor)," 0 0 0 2px inset"),color:(0,polished_esm.jb)(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.background.app,boxShadow:"".concat((0,polished_esm.jb)(.1,theme.appBorderColor)," 0 0 2px"),color:theme.color.defaultText,padding:"7px 15px"}}})),BooleanControl=function BooleanControl(_ref2){var name=_ref2.name,value=_ref2.value,_onChange=_ref2.onChange,onBlur=_ref2.onBlur,onFocus=_ref2.onFocus,onSetFalse=(0,react.useCallback)((function(){return _onChange(!1)}),[_onChange]);return void 0===value?react.createElement(esm_form.l.Button,{id:(0,helpers.O)(name),onClick:onSetFalse},"Set boolean"):react.createElement(Label,{htmlFor:name,title:value?"Change to false":"Change to true"},react.createElement("input",{id:(0,helpers.d)(name),type:"checkbox",onChange:function onChange(e){return _onChange(e.target.checked)},checked:value||!1,name,onBlur,onFocus}),react.createElement("span",null,"False"),react.createElement("span",null,"True"))};function Date_slicedToArray(arr,i){return function Date_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function Date_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function Date_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return Date_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Date_arrayLikeToArray(o,minLen)}(arr,i)||function Date_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Date_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i code":{whiteSpace:"pre-wrap"}}})),Type=esm.zo.div((function(_ref3){var theme=_ref3.theme,hasDescription=_ref3.hasDescription;return{color:"light"===theme.base?(0,polished_esm.DZ)(.1,theme.color.defaultText):(0,polished_esm.DZ)(.2,theme.color.defaultText),marginTop:hasDescription?4:0}})),TypeWithJsDoc=esm.zo.div((function(_ref4){var theme=_ref4.theme,hasDescription=_ref4.hasDescription;return{color:"light"===theme.base?(0,polished_esm.DZ)(.1,theme.color.defaultText):(0,polished_esm.DZ)(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}})),StyledTd=esm.zo.td((function(_ref5){_ref5.theme;return{paddingLeft:_ref5.expandable?"40px !important":"20px !important"}})),ArgRow=function ArgRow(props){var _row$type,row=props.row,updateArgs=props.updateArgs,compact=props.compact,expandable=props.expandable,initialExpandedArgs=props.initialExpandedArgs,name=row.name,description=row.description,table=row.table||{},type=table.type||row.type,defaultValue=table.defaultValue||row.defaultValue,required=null===(_row$type=row.type)||void 0===_row$type?void 0:_row$type.required,hasDescription=null!=description&&""!==description;return react.createElement("tr",null,react.createElement(StyledTd,{expandable},react.createElement(Name,null,name),required?react.createElement(Required,{title:"Required"},"*"):null),compact?null:react.createElement("td",null,hasDescription&&react.createElement(Description,null,react.createElement(index_module.Z,null,description)),null!=table.jsDocTags?react.createElement(react.Fragment,null,react.createElement(TypeWithJsDoc,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs})),react.createElement(ArgJsDoc,{tags:table.jsDocTags})):react.createElement(Type,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react.createElement("td",null,react.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react.createElement("td",null,react.createElement(ArgControl,props)):null)};function SectionRow_slicedToArray(arr,i){return function SectionRow_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function SectionRow_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function SectionRow_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return SectionRow_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SectionRow_arrayLikeToArray(o,minLen)}(arr,i)||function SectionRow_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SectionRow_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i td":{backgroundColor:"".concat(theme.background.hoverable," !important"),boxShadow:"".concat(theme.color.mediumlight," 0 - 1px 0 0 inset"),cursor:"row-resize"}}})),ClickIntercept=esm.zo.button((function(){return{background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}})),SectionRow=function SectionRow(_ref7){var _ref7$level=_ref7.level,level=void 0===_ref7$level?"section":_ref7$level,label=_ref7.label,children=_ref7.children,_ref7$initialExpanded=_ref7.initialExpanded,initialExpanded=void 0===_ref7$initialExpanded||_ref7$initialExpanded,_ref7$colSpan=_ref7.colSpan,colSpan=void 0===_ref7$colSpan?3:_ref7$colSpan,_useState2=SectionRow_slicedToArray((0,react.useState)(initialExpanded),2),expanded=_useState2[0],setExpanded=_useState2[1],Level="subsection"===level?Subsection:Section,itemCount=(null==children?void 0:children.length)||0,caption="subsection"===level?"".concat(itemCount," item").concat(1!==itemCount?"s":""):"",icon=expanded?"arrowdown":"arrowright",helperText="".concat(expanded?"Hide":"Side"," ").concat("subsection"===level?itemCount:label," item").concat(1!==itemCount?"s":"");return react.createElement(react.Fragment,null,react.createElement(StyledTr,{title:helperText},react.createElement(Level,{colSpan:1},react.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:0},helperText),react.createElement(FlexWrapper,null,react.createElement(ExpanderIcon,{icon}),label)),react.createElement(SectionRow_StyledTd,{colSpan:colSpan-1},react.createElement(ClickIntercept,{onClick:function onClick(e){return setExpanded(!expanded)},tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},EmptyBlock=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/EmptyBlock.js");function link_extends(){return link_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var LinkInner=esm.zo.span((function(_ref){return _ref.withArrow?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}}),(function(_ref2){return _ref2.containsIcon?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}})),A=esm.zo.a((function(_ref3){var theme=_ref3.theme;return{display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:theme.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:(0,polished_esm._j)(.07,theme.color.secondary),"svg path":{fill:(0,polished_esm._j)(.07,theme.color.secondary)}},"&:active":{color:(0,polished_esm._j)(.1,theme.color.secondary),"svg path":{fill:(0,polished_esm._j)(.1,theme.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:theme.color.secondary}}}}),(function(_ref4){var colors,theme=_ref4.theme,secondary=_ref4.secondary,tertiary=_ref4.tertiary;return secondary&&(colors=[theme.color.mediumdark,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.color.mediumdark]),colors?{color:colors[0],"svg path":{fill:colors[0]},"&:hover":{color:colors[1],"svg path":{fill:colors[1]}},"&:active":{color:colors[2],"svg path":{fill:colors[2]}}}:{}}),(function(_ref5){return _ref5.nochrome?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}}),(function(_ref6){var theme=_ref6.theme;return _ref6.inverse?{color:theme.color.lightest,"svg path":{fill:theme.color.lightest},"&:hover":{color:theme.color.lighter,"svg path":{fill:theme.color.lighter}},"&:active":{color:theme.color.light,"svg path":{fill:theme.color.light}}}:{}}),(function(_ref7){return _ref7.isButton?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}})),Link=function Link(_ref8){var cancel=_ref8.cancel,children=_ref8.children,onClick=_ref8.onClick,withArrow=_ref8.withArrow,containsIcon=_ref8.containsIcon,className=_ref8.className,rest=_objectWithoutProperties(_ref8,["cancel","children","onClick","withArrow","containsIcon","className"]);return react.createElement(A,link_extends({},rest,{onClick:onClick&&cancel?function(e){return function cancelled(e,cb){(function isPlainLeftClick(e){return!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)})(e)&&(e.preventDefault(),cb(e))}(e,onClick)}:onClick,className}),react.createElement(LinkInner,{withArrow,containsIcon},children,withArrow&&react.createElement(icon.P,{icon:"arrowright"})))};Link.displayName="Link",Link.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentFormatting=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/DocumentFormatting.js");function ArgsTable_extends(){return ArgsTable_extends=Object.assign||function(target){for(var i=1;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react.createElement(DocumentFormatting.i9,null,react.createElement(TableWrapper,{"aria-hidden":isLoading,compact,inAddonPanel,isLoading,className:"docblock-argstable"},react.createElement("thead",{className:"docblock-argstable-head"},react.createElement("tr",null,react.createElement("th",null,react.createElement("span",null,"Name")),compact?null:react.createElement("th",null,react.createElement("span",null,"Description")),compact?null:react.createElement("th",null,react.createElement("span",null,"Default")),updateArgs?react.createElement("th",null,react.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react.createElement(ResetButton,{onClick:function onClick(){return resetArgs()},title:"Reset controls"},react.createElement(icon.P,{icon:"undo","aria-hidden":!0})))):null)),react.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((function(row){return react.createElement(ArgRow,ArgsTable_extends({key:row.key,row,arg:args&&args[row.key]},common))})),Object.entries(groups.ungroupedSubsections).map((function(_ref9){var _ref10=ArgsTable_slicedToArray(_ref9,2),subcategory=_ref10[0],subsection=_ref10[1];return react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((function(row){return react.createElement(ArgRow,ArgsTable_extends({key:row.key,row,arg:args&&args[row.key],expandable},common))})))})),Object.entries(groups.sections).map((function(_ref11){var _ref12=ArgsTable_slicedToArray(_ref11,2),category=_ref12[0],section=_ref12[1];return react.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map((function(row){return react.createElement(ArgRow,ArgsTable_extends({key:row.key,row,arg:args&&args[row.key]},common))})),Object.entries(section.subsections).map((function(_ref13){var _ref14=ArgsTable_slicedToArray(_ref13,2),subcategory=_ref14[0],subsection=_ref14[1];return react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((function(row){return react.createElement(ArgRow,ArgsTable_extends({key:row.key,row,arg:args&&args[row.key],expandable},common))})))})))})))))};ArgsTable.displayName="ArgsTable";var dist=__webpack_require__("../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/index.js");function placeholder_slicedToArray(arr,i){return function placeholder_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function placeholder_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function placeholder_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return placeholder_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return placeholder_arrayLikeToArray(o,minLen)}(arr,i)||function placeholder_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function placeholder_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Title=esm.zo.div((function(_ref){return{fontWeight:_ref.theme.typography.weight.bold}})),Desc=esm.zo.div(),Message=esm.zo.div((function(_ref2){var theme=_ref2.theme;return{padding:30,textAlign:"center",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1}})),Placeholder=function Placeholder(_ref3){var children=_ref3.children,props=placeholder_objectWithoutProperties(_ref3,["children"]),_Children$toArray2=placeholder_slicedToArray(react.Children.toArray(children),2),title=_Children$toArray2[0],desc=_Children$toArray2[1];return react.createElement(Message,props,react.createElement(Title,null,title),desc&&react.createElement(Desc,null,desc))};Placeholder.displayName="Placeholder";var bar=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/bar/bar.js");function tabs_typeof(obj){return tabs_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},tabs_typeof(obj)}function tabs_defineProperties(target,props){for(var i=0;i *:first-child".concat("/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"),{position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:"calc(100% - ".concat(bordered?2:0,"px)"),overflow:"auto"}):{}})),VisuallyHidden=esm.zo.div((function(_ref7){return _ref7.active?{display:"block"}:{display:"none"}})),Tabs=(0,react.memo)((function(_ref11){var children=_ref11.children,selected=_ref11.selected,actions=_ref11.actions,absolute=_ref11.absolute,bordered=_ref11.bordered,tools=_ref11.tools,backgroundColor=_ref11.backgroundColor,htmlId=_ref11.id,list=function childrenToList(children,selected){return react.Children.toArray(children).map((function(_ref9,index){var _ref9$props=_ref9.props,title=_ref9$props.title,id=_ref9$props.id,color=_ref9$props.color,childrenOfChild=_ref9$props.children,content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return{active:selected?id===selected:0===index,title,id,color,render:"function"==typeof content?content:function(_ref10){var active=_ref10.active,key=_ref10.key;return react.createElement(VisuallyHidden,{key,active,role:"tabpanel"},content)}}}))}(children,selected);return list.length?react.createElement(tabs_Wrapper,{absolute,bordered,id:htmlId},react.createElement(bar.j,{border:!0,backgroundColor},react.createElement(TabBar,{role:"tablist"},list.map((function(_ref12){var title=_ref12.title,id=_ref12.id,active=_ref12.active,color=_ref12.color,tabTitle="function"==typeof title?title():title;return react.createElement(bar_button.Y6,{id:"tabbutton-".concat((0,dist.sanitize)(tabTitle)),className:"tabbutton ".concat(active?"tabbutton-active":""),type:"button",key:id,active,textColor:color,onClick:function onClick(e){e.preventDefault(),actions.onSelect(id)},role:"tab"},tabTitle)}))),tools?react.createElement(react.Fragment,null,tools):null),react.createElement(Content,{id:"panel-tab-content",bordered,absolute},list.map((function(_ref13){var id=_ref13.id,active=_ref13.active;return(0,_ref13.render)({key:id,active})})))):react.createElement(Placeholder,null,react.createElement(react.Fragment,{key:"title"},"Nothing found"))}));Tabs.displayName="Tabs",Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1};var TabsState=function(_Component){!function tabs_inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&tabs_setPrototypeOf(subClass,superClass)}(TabsState,_Component);var _super=tabs_createSuper(TabsState);function TabsState(props){var _this;return function tabs_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,TabsState),(_this=_super.call(this,props)).handlers={onSelect:function onSelect(id){return _this.setState({selected:id})}},_this.state={selected:props.initial},_this}return function tabs_createClass(Constructor,protoProps,staticProps){return protoProps&&tabs_defineProperties(Constructor.prototype,protoProps),staticProps&&tabs_defineProperties(Constructor,staticProps),Constructor}(TabsState,[{key:"render",value:function render(){var _this$props=this.props,_this$props$bordered=_this$props.bordered,bordered=void 0!==_this$props$bordered&&_this$props$bordered,_this$props$absolute=_this$props.absolute,absolute=void 0!==_this$props$absolute&&_this$props$absolute,children=_this$props.children,backgroundColor=_this$props.backgroundColor,selected=this.state.selected;return react.createElement(Tabs,{bordered,absolute,selected,backgroundColor,actions:this.handlers},children)}}]),TabsState}(react.Component);function TabbedArgsTable_slicedToArray(arr,i){return function TabbedArgsTable_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function TabbedArgsTable_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function TabbedArgsTable_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return TabbedArgsTable_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TabbedArgsTable_arrayLikeToArray(o,minLen)}(arr,i)||function TabbedArgsTable_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TabbedArgsTable_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}TabsState.displayName="TabsState",TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:""};var TabbedArgsTable=function TabbedArgsTable(_ref){var tabs=_ref.tabs,props=TabbedArgsTable_objectWithoutProperties(_ref,["tabs"]),entries=Object.entries(tabs);return 1===entries.length?react.createElement(ArgsTable,TabbedArgsTable_extends({},entries[0][1],props)):react.createElement(TabsState,null,entries.map((function(entry){var _entry=TabbedArgsTable_slicedToArray(entry,2),label=_entry[0],table=_entry[1],id="prop_table_div_".concat(label);return react.createElement("div",{key:id,id,title:label},(function(_ref2){return _ref2.active?react.createElement(ArgsTable,TabbedArgsTable_extends({key:"prop_table_".concat(label)},table,props)):null}))})))};TabbedArgsTable.displayName="TabbedArgsTable"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/ArgsTable/types.js":()=>{},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/EmptyBlock.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{V:()=>EmptyBlock});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),polished__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),_typography_shared__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/shared.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{ui:()=>SourceError,Hw:()=>Source,iS:()=>StyledSyntaxHighlighter});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/create.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-element-99289b21.browser.esm.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/convert.js"),_EmptyBlock__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/EmptyBlock.js"),_syntaxhighlighter_lazy_syntaxhighlighter__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var SourceError,StyledSyntaxHighlighter=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo)(_syntaxhighlighter_lazy_syntaxhighlighter__WEBPACK_IMPORTED_MODULE_5__.d)((function(_ref){var theme=_ref.theme;return{fontSize:"".concat(theme.typography.size.s2-1,"px"),lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}}));!function(SourceError){SourceError.NO_STORY="There’s no story here.",SourceError.SOURCE_UNAVAILABLE="Oh no! The source is not available."}(SourceError||(SourceError={}));var SourceSkeletonWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo.div((function(_ref2){var theme=_ref2.theme;return{background:theme.background.content,borderRadius:theme.appBorderRadius,border:"1px solid ".concat(theme.appBorderColor),boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}})),SourceSkeletonPlaceholder=_storybook_theming__WEBPACK_IMPORTED_MODULE_4__.zo.div((function(_ref3){var theme=_ref3.theme;return{animation:"".concat(theme.animation.glow," 1.5s ease-in-out infinite"),background:theme.appBorderColor,height:17,marginTop:1,width:"60%","&:first-child":{margin:0}}})),SourceSkeleton=function SourceSkeleton(){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}))};SourceSkeleton.displayName="SourceSkeleton";var Source=function Source(props){var _ref4=props,isLoading=_ref4.isLoading,error=_ref4.error;if(isLoading)return react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeleton,null);if(error)return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_EmptyBlock__WEBPACK_IMPORTED_MODULE_6__.V,null,error);var _ref5=props,language=_ref5.language,code=_ref5.code,dark=_ref5.dark,format=_ref5.format,rest=_objectWithoutProperties(_ref5,["language","code","dark","format"]),syntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSyntaxHighlighter,_extends({bordered:!0,copyable:!0,format,language,className:"docblock-source"},rest),code);if(void 0===dark)return syntaxHighlighter;var overrideTheme=dark?_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.n.dark:_storybook_theming__WEBPACK_IMPORTED_MODULE_7__.n.light;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_8__.a,{theme:(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.O)(overrideTheme)},syntaxHighlighter)};Source.displayName="Source",Source.defaultProps={format:!1}},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ArgsTable:()=>_ArgsTable__WEBPACK_IMPORTED_MODULE_0__.ArgsTable,ArgsTableError:()=>_ArgsTable__WEBPACK_IMPORTED_MODULE_0__.ArgsTableError,TabbedArgsTable:()=>_ArgsTable__WEBPACK_IMPORTED_MODULE_0__.TabbedArgsTable});var _ArgsTable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/ArgsTable/index.js")},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/helpers.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>getControlId,O:()=>getControlSetterButtonId});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js");var getControlId=function getControlId(value){return"control-".concat(value.replace(/\s+/g,"-"))},getControlSetterButtonId=function getControlSetterButtonId(value){return"set-".concat(value.replace(/\s+/g,"-"))}},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{t:()=>ColorControl});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_types__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/types.js");__webpack_require__.o(_types__WEBPACK_IMPORTED_MODULE_3__,"ArgsTable")&&__webpack_require__.d(__webpack_exports__,{ArgsTable:function(){return _types__WEBPACK_IMPORTED_MODULE_3__.ArgsTable}}),__webpack_require__.o(_types__WEBPACK_IMPORTED_MODULE_3__,"ArgsTableError")&&__webpack_require__.d(__webpack_exports__,{ArgsTableError:function(){return _types__WEBPACK_IMPORTED_MODULE_3__.ArgsTableError}}),__webpack_require__.o(_types__WEBPACK_IMPORTED_MODULE_3__,"TabbedArgsTable")&&__webpack_require__.d(__webpack_exports__,{TabbedArgsTable:function(){return _types__WEBPACK_IMPORTED_MODULE_3__.TabbedArgsTable}});var LazyColorControl=react__WEBPACK_IMPORTED_MODULE_2__.lazy((function(){return __webpack_require__.e(472).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/Color.js"))})),ColorControl=function ColorControl(props){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazyColorControl,props))};ColorControl.displayName="ColorControl"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/react-editable-json-tree/utils/parse.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function parse(string){var result=string;if(0===result.indexOf("function"))return eval("(".concat(result,")"));try{result=JSON.parse(string)}catch(e){}return result}__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=parse},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/types.js":()=>{},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/form/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>Form});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),react=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"));function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var Wrapper=esm.zo.label((function(_ref){var theme=_ref.theme;return{display:"flex",borderBottom:"1px solid ".concat(theme.appBorderColor),margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}})),Label=esm.zo.span((function(_ref2){return{minWidth:100,fontWeight:_ref2.theme.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}})),Field=function Field(_ref3){var label=_ref3.label,children=_ref3.children,props=_objectWithoutProperties(_ref3,["label","children"]);return react.createElement(Wrapper,props,label?react.createElement(Label,null,react.createElement("span",null,label)):null,children)};Field.displayName="Field",Field.defaultProps={label:void 0};var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/extends.js"),objectWithoutPropertiesLoose=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");const use_isomorphic_layout_effect_browser_esm=react.useLayoutEffect;const use_latest_esm=function useLatest(value){var ref=(0,react.useRef)(value);return use_isomorphic_layout_effect_browser_esm((function(){ref.current=value})),ref};var updateRef=function updateRef(ref,value){"function"!=typeof ref?ref.current=value:ref(value)};const use_composed_ref_esm=function useComposedRef(libRef,userRef){var prevUserRef=(0,react.useRef)();return(0,react.useCallback)((function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance)}),[userRef])};var HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function forceHiddenStyles(node){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach((function(key){node.style.setProperty(key,HIDDEN_TEXTAREA_STYLE[key],"important")}))},hiddenTextarea=null;var noop=function noop(){},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE=!!document.documentElement.currentStyle,TextareaAutosize=function TextareaAutosize(_ref,userRef){var cacheMeasurements=_ref.cacheMeasurements,maxRows=_ref.maxRows,minRows=_ref.minRows,_ref$onChange=_ref.onChange,onChange=void 0===_ref$onChange?noop:_ref$onChange,_ref$onHeightChange=_ref.onHeightChange,onHeightChange=void 0===_ref$onHeightChange?noop:_ref$onHeightChange,props=(0,objectWithoutPropertiesLoose.Z)(_ref,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var isControlled=void 0!==props.value,libRef=(0,react.useRef)(null),ref=use_composed_ref_esm(libRef,userRef),heightRef=(0,react.useRef)(0),measurementsCacheRef=(0,react.useRef)(),resizeTextarea=function resizeTextarea(){var node=libRef.current,nodeSizingData=cacheMeasurements&&measurementsCacheRef.current?measurementsCacheRef.current:function getSizingData(node){var style=window.getComputedStyle(node);if(null===style)return null;var sizingStyle=function pick(props,obj){return props.reduce((function(acc,prop){return acc[prop]=obj[prop],acc}),{})}(SIZING_STYLE,style),boxSizing=sizingStyle.boxSizing;return""===boxSizing?null:(isIE&&"border-box"===boxSizing&&(sizingStyle.width=parseFloat(sizingStyle.width)+parseFloat(sizingStyle.borderRightWidth)+parseFloat(sizingStyle.borderLeftWidth)+parseFloat(sizingStyle.paddingRight)+parseFloat(sizingStyle.paddingLeft)+"px"),{sizingStyle,paddingSize:parseFloat(sizingStyle.paddingBottom)+parseFloat(sizingStyle.paddingTop),borderSize:parseFloat(sizingStyle.borderBottomWidth)+parseFloat(sizingStyle.borderTopWidth)})}(node);if(nodeSizingData){measurementsCacheRef.current=nodeSizingData;var _calculateNodeHeight=function calculateNodeHeight(sizingData,value,minRows,maxRows){void 0===minRows&&(minRows=1),void 0===maxRows&&(maxRows=1/0),hiddenTextarea||((hiddenTextarea=document.createElement("textarea")).setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),null===hiddenTextarea.parentNode&&document.body.appendChild(hiddenTextarea);var paddingSize=sizingData.paddingSize,borderSize=sizingData.borderSize,sizingStyle=sizingData.sizingStyle,boxSizing=sizingStyle.boxSizing;Object.keys(sizingStyle).forEach((function(_key){var key=_key;hiddenTextarea.style[key]=sizingStyle[key]})),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=value;var height=function getHeight(node,sizingData){var height=node.scrollHeight;return"border-box"===sizingData.sizingStyle.boxSizing?height+sizingData.borderSize:height-sizingData.paddingSize}(hiddenTextarea,sizingData);hiddenTextarea.value="x";var rowHeight=hiddenTextarea.scrollHeight-paddingSize,minHeight=rowHeight*minRows;"border-box"===boxSizing&&(minHeight=minHeight+paddingSize+borderSize),height=Math.max(minHeight,height);var maxHeight=rowHeight*maxRows;return"border-box"===boxSizing&&(maxHeight=maxHeight+paddingSize+borderSize),[height=Math.min(maxHeight,height),rowHeight]}(nodeSizingData,node.value||node.placeholder||"x",minRows,maxRows),height=_calculateNodeHeight[0],rowHeight=_calculateNodeHeight[1];heightRef.current!==height&&(heightRef.current=height,node.style.setProperty("height",height+"px","important"),onHeightChange(height,{rowHeight}))}};return(0,react.useLayoutEffect)(resizeTextarea),function useWindowResizeListener(listener){var latestListener=use_latest_esm(listener);(0,react.useLayoutEffect)((function(){var handler=function handler(event){latestListener.current(event)};return window.addEventListener("resize",handler),function(){window.removeEventListener("resize",handler)}}),[])}(resizeTextarea),(0,react.createElement)("textarea",(0,esm_extends.Z)({},props,{onChange:function handleChange(event){isControlled||resizeTextarea(),onChange(event)},ref}))};const react_textarea_autosize_browser_esm=(0,react.forwardRef)(TextareaAutosize);__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.small.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js");var polished_esm=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ButtonWrapper=esm.zo.button((function(_ref){var small=_ref.small,theme=_ref.theme;return{border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:small?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transition:"all 150ms ease-out",transform:"translate3d(0,0,0)",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:"".concat(small?theme.typography.size.s1:theme.typography.size.s2-1,"px"),fontWeight:theme.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:small?14:16,width:small?14:16,verticalAlign:"top",marginRight:small?4:6,marginTop:small?-1:-2,marginBottom:small?-1:-2,pointerEvents:"none",path:{fill:"currentColor"}}}}),(function(_ref2){return _ref2.disabled?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{}}),(function(_ref3){var containsIcon=_ref3.containsIcon,small=_ref3.small;return containsIcon?Object.assign({svg:{display:"block",margin:0}},small?{padding:9}:{padding:12}):{}}),(function(_ref4){var color,theme=_ref4.theme,primary=_ref4.primary,secondary=_ref4.secondary,gray=_ref4.gray;return gray?color=theme.color.medium:secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),color?{background:color,color:gray?theme.color.darkest:theme.color.lightest,"&:hover":{background:(0,polished_esm._j)(.05,color)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:"".concat((0,polished_esm.m4)(color,1)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat((0,polished_esm.m4)(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref5){var theme=_ref5.theme,tertiary=_ref5.tertiary,inForm=_ref5.inForm,small=_ref5.small;return tertiary?Object.assign({background:"light"===theme.base?(0,polished_esm._j)(.02,theme.input.background):(0,polished_esm.$n)(.02,theme.input.background),color:theme.input.color,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius},inForm&&small?{padding:"10px 16px"}:{},{"&:hover":Object.assign({background:"light"===theme.base?(0,polished_esm._j)(.05,theme.input.background):(0,polished_esm.$n)(.05,theme.input.background)},inForm?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}),"&:active":{background:theme.input.background},"&:focus":{boxShadow:"".concat((0,polished_esm.m4)(theme.color.secondary,1)," 0 0 0 1px inset"),outline:"none"}}):{}}),(function(_ref6){var theme=_ref6.theme;return _ref6.outline?{boxShadow:"".concat((0,polished_esm.DZ)(.8,theme.color.defaultText)," 0 0 0 1px inset"),color:(0,polished_esm.DZ)(.3,theme.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:"".concat((0,polished_esm.DZ)(.5,theme.color.defaultText)," 0 0 0 1px inset"),outline:"none"},"&:active":{boxShadow:"".concat((0,polished_esm.DZ)(.5,theme.color.defaultText)," 0 0 0 2px inset"),color:(0,polished_esm.DZ)(0,theme.color.defaultText)}}:{}}),(function(_ref7){var theme=_ref7.theme,outline=_ref7.outline,primary=_ref7.primary,color=theme.color.primary;return outline&&primary?{boxShadow:"".concat(color," 0 0 0 1px inset"),color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat((0,polished_esm.m4)(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat((0,polished_esm.m4)(color,.2)," 0 8px 18px 0px")}}:{}}),(function(_ref8){var color,theme=_ref8.theme,outline=_ref8.outline,primary=_ref8.primary;return _ref8.secondary?color=theme.color.secondary:primary&&(color=theme.color.primary),outline&&color?{boxShadow:"".concat(color," 0 0 0 1px inset"),color,"svg path":{fill:color},"&:hover":{boxShadow:"".concat(color," 0 0 0 1px inset"),background:"transparent"},"&:active":{background:color,boxShadow:"".concat(color," 0 0 0 1px inset"),color:theme.color.tertiary},"&:focus":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat((0,polished_esm.m4)(color,.4)," 0 1px 9px 2px"),outline:"none"},"&:focus:hover":{boxShadow:"".concat(color," 0 0 0 1px inset, ").concat((0,polished_esm.m4)(color,.2)," 0 8px 18px 0px")}}:{}})),ButtonLink=ButtonWrapper.withComponent("a",{target:"ex9hp6v0",label:"ButtonLink"}),Button=Object.assign((0,react.forwardRef)((function(_ref9,ref){var isLink=_ref9.isLink,children=_ref9.children,props=Button_objectWithoutProperties(_ref9,["isLink","children"]);return isLink?react.createElement(ButtonLink,_extends({},props,{ref}),children):react.createElement(ButtonWrapper,_extends({},props,{ref}),children)})),{defaultProps:{isLink:!1}});function input_extends(){return input_extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var styleResets={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=function styles(_ref){var theme=_ref.theme;return Object.assign({},styleResets,{transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:theme.input.color||"inherit",background:theme.input.background,boxShadow:"".concat(theme.input.border," 0 0 0 1px inset"),borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px","&:focus":{boxShadow:"".concat(theme.color.secondary," 0 0 0 1px inset"),outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 3em ".concat(theme.color.lightest," inset")},"::placeholder":{color:theme.color.mediumdark}})},sizes=function sizes(_ref2){switch(_ref2.size){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}},alignment=function alignment(_ref3){switch(_ref3.align){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}},validation=function validation(_ref4){var valid=_ref4.valid,theme=_ref4.theme;switch(valid){case"valid":return{boxShadow:"".concat(theme.color.positive," 0 0 0 1px inset !important")};case"error":return{boxShadow:"".concat(theme.color.negative," 0 0 0 1px inset !important")};case"warn":return{boxShadow:"".concat(theme.color.warning," 0 0 0 1px inset")};default:return{}}},Input=Object.assign((0,esm.zo)((0,react.forwardRef)((function(_ref5,ref){_ref5.size,_ref5.valid,_ref5.align;var props=input_objectWithoutProperties(_ref5,["size","valid","align"]);return react.createElement("input",input_extends({},props,{ref}))})))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign((0,esm.zo)((0,react.forwardRef)((function(_ref6,ref){_ref6.size,_ref6.valid,_ref6.align;var props=input_objectWithoutProperties(_ref6,["size","valid","align"]);return react.createElement("select",input_extends({},props,{ref}))})))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign((0,esm.zo)((0,react.forwardRef)((function(_ref7,ref){_ref7.size,_ref7.valid,_ref7.align;var props=input_objectWithoutProperties(_ref7,["size","valid","align"]);return react.createElement(react_textarea_autosize_browser_esm,input_extends({},props,{ref}))})))(styles,sizes,alignment,validation,(function(_ref8){var _ref8$height=_ref8.height;return{overflow:"visible",maxHeight:void 0===_ref8$height?400:_ref8$height}})),{displayName:"Textarea"}),ButtonStyled=(0,esm.zo)((0,react.forwardRef)((function(_ref9,ref){_ref9.size,_ref9.valid,_ref9.align;var props=input_objectWithoutProperties(_ref9,["size","valid","align"]);return react.createElement(Button,input_extends({},props,{ref}))})))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),input_Button=Object.assign((0,react.forwardRef)((function(props,ref){return react.createElement(ButtonStyled,input_extends({},props,{tertiary:!0,small:!0,inForm:!0,ref}))})),{displayName:"Button"}),Form=Object.assign(esm.zo.form({boxSizing:"border-box",width:"100%"}),{Field,Input,Select,Textarea,Button:input_Button})},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/icon/icon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>Icons});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js");const icon_icons={mobile:"M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z",watch:"M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z",tablet:"M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z",browser:"M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z",sidebar:"M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z",sidebaralt:"M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z",bottombar:"M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z",useralt:"M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z",user:"M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0",useradd:"M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z",users:"M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z",profile:"M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z",bookmark:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z",bookmarkhollow:"M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z",book:"M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z",repository:"M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z",star:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z",starhollow:"M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z",circle:"M1024 512A512 512 0 110 512a512 512 0 011024 0z",circlehollow:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z",heart:"M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z",hearthollow:"M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z",facehappy:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",facesad:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",faceneutral:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z",lock:"M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z",unlock:"M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z",key:"M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z",arrowleftalt:"M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z",arrowrightalt:"M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z",sync:"M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z",reply:"M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z",undo:"M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z",transfer:"M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z",redirect:"M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z",expand:"M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z",expandalt:"M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4",collapse:"M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4",grow:"M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z",arrowleft:"M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z",arrowup:"M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z",arrowdown:"M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z",arrowright:"M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z",chevrondown:"M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z",back:"M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z",download:"M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z",upload:"M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z",proceed:"M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4",info:"M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z",question:"M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z",support:"M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08",alert:"M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z",bell:"M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z",rss:"M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z",edit:"M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z",paintbrush:"M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z",close:"M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z",closeAlt:"M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z",trash:"M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z",cross:"M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z",delete:"M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z",add:"M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z",subtract:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z",plus:"M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z",document:"M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z",folder:"M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z",component:"M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z",calendar:"M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z",graphline:"M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z",docchart:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z",doclist:"M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z",category:"M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z",grid:"M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z",copy:"M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z",certificate:"M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z",print:"M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z",listunordered:"M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z",graphbar:"M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z",menu:"M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z",filter:"M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z",ellipsis:"M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z",cog:"M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z",wrench:"M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z",nut:"M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91",camera:"M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z",eye:"M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z",eyeclose:"M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z",photo:"M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z",video:"M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z",speaker:"M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z",phone:"M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z",flag:"M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z",pin:"M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z",compass:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z",globe:"M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z",location:"M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z",search:"M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60",zoom:"M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z",zoomout:"M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z",zoomreset:"M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z",timer:"M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z",time:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z",lightning:"M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z",lightningoff:"M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z",dashboard:"M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z",hourglass:"M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z",play:"M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z",playnext:"M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z",playback:"M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z",stop:"M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z",stopalt:"M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z",rewind:"m631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z",fastforward:"M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z",email:"M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z",link:"M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z",paperclip:"M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z",box:"M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z",structure:"M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z",cpu:"M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z",memory:"M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z",database:"M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z",power:"M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z",outbox:"M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z",share:"M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z",button:"M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z",form:"M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z",check:"M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z",batchaccept:"M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z",batchdeny:"M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z",home:"M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z",admin:"M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z",paragraph:"M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z",basket:"M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z",credit:"M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z",shield:"M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z",beaker:"M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z",thumbsup:"M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z",mirror:"M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z",switchalt:"M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z",commit:"M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z",branch:"M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z",merge:"M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z",pullrequest:"M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z",chromatic:"M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z",twitter:"M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z",google:"M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z",gdrive:"M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z",youtube:"M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z",facebook:"M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z",medium:"M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z",graphql:"M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z",redux:"M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z",github:"M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0",bitbucket:"M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z",gitlab:"M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z",azuredevops:"M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z",discord:"M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z",contrast:"M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z",unfold:"M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z",sharealt:"M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z",accessibility:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z",accessibilityalt:"M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z",markup:"M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512",outline:"M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z",verified:"M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z",comment:"M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z",commentadd:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z",requestchange:"M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z",comments:"M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z",ruler:"M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z"};var Svg=esm.zo.svg({shapeRendering:"inherit",transform:"translate3d(0,0,0)"},(function(_ref){return _ref.inline?{display:"inline-block"}:{display:"block"}}));function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}Svg.displayName="Svg";var Path=esm.zo.path({fill:"currentColor"}),Icons=react.memo((function(_ref){var icon=_ref.icon,symbol=_ref.symbol,props=_objectWithoutProperties(_ref,["icon","symbol"]);return react.createElement(Svg,_extends({viewBox:"0 0 1024 1024"},props),symbol?react.createElement("use",{xlinkHref:"#icon--".concat(symbol)}):react.createElement(Path,{d:icon_icons[icon]}))}))},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ne:()=>resetComponents});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/DocumentFormatting.js"),_blocks__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/index.js");__webpack_require__.o(_blocks__WEBPACK_IMPORTED_MODULE_4__,"ArgsTable")&&__webpack_require__.d(__webpack_exports__,{ArgsTable:function(){return _blocks__WEBPACK_IMPORTED_MODULE_4__.ArgsTable}}),__webpack_require__.o(_blocks__WEBPACK_IMPORTED_MODULE_4__,"ArgsTableError")&&__webpack_require__.d(__webpack_exports__,{ArgsTableError:function(){return _blocks__WEBPACK_IMPORTED_MODULE_4__.ArgsTableError}}),__webpack_require__.o(_blocks__WEBPACK_IMPORTED_MODULE_4__,"TabbedArgsTable")&&__webpack_require__.d(__webpack_exports__,{TabbedArgsTable:function(){return _blocks__WEBPACK_IMPORTED_MODULE_4__.TabbedArgsTable}});var _controls__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/controls/index.js");__webpack_require__.o(_controls__WEBPACK_IMPORTED_MODULE_5__,"ArgsTable")&&__webpack_require__.d(__webpack_exports__,{ArgsTable:function(){return _controls__WEBPACK_IMPORTED_MODULE_5__.ArgsTable}}),__webpack_require__.o(_controls__WEBPACK_IMPORTED_MODULE_5__,"ArgsTableError")&&__webpack_require__.d(__webpack_exports__,{ArgsTableError:function(){return _controls__WEBPACK_IMPORTED_MODULE_5__.ArgsTableError}}),__webpack_require__.o(_controls__WEBPACK_IMPORTED_MODULE_5__,"TabbedArgsTable")&&__webpack_require__.d(__webpack_exports__,{TabbedArgsTable:function(){return _controls__WEBPACK_IMPORTED_MODULE_5__.TabbedArgsTable}});var resetComponents={};Object.keys(_typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_6__.wx).forEach((function(key){resetComponents[key]=(0,react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)((function(props,ref){return(0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(key,Object.assign({},props,{ref}))}))}))},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{d:()=>SyntaxHighlighter});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),LazySyntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_2__.lazy((function(){return __webpack_require__.e(839).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/syntaxhighlighter/syntaxhighlighter.js"))})),SyntaxHighlighter=function SyntaxHighlighter(props){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazySyntaxHighlighter,props))};SyntaxHighlighter.displayName="SyntaxHighlighter"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/tooltip/lazy-WithTooltip.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>WithTooltip,D:()=>WithTooltipPure});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),LazyWithTooltip=react__WEBPACK_IMPORTED_MODULE_2__.lazy((function(){return __webpack_require__.e(992).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/tooltip/WithTooltip.js")).then((function(mod){return{default:mod.WithTooltip}}))})),WithTooltip=function WithTooltip(props){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazyWithTooltip,props))};WithTooltip.displayName="WithTooltip";var LazyWithTooltipPure=react__WEBPACK_IMPORTED_MODULE_2__.lazy((function(){return __webpack_require__.e(992).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/tooltip/WithTooltip.js")).then((function(mod){return{default:mod.WithTooltipPure}}))})),WithTooltipPure=function WithTooltipPure(props){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazyWithTooltipPure,props))};WithTooltipPure.displayName="WithTooltipPure"},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/DocumentFormatting.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{H2:()=>H2,H3:()=>H3,EK:()=>Code,i9:()=>ResetWrapper,wx:()=>components});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js");var react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),_storybook_theming__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js"),_shared__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/shared.js"),_blocks_Source__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/blocks/Source.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var H1=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.h1(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.g$,(function(_ref){var theme=_ref.theme;return{fontSize:"".concat(theme.typography.size.l1,"px"),fontWeight:theme.typography.weight.black}})),H2=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.h2(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.g$,(function(_ref2){var theme=_ref2.theme;return{fontSize:"".concat(theme.typography.size.m2,"px"),paddingBottom:4,borderBottom:"1px solid ".concat(theme.appBorderColor)}})),H3=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.h3(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.g$,(function(_ref3){var theme=_ref3.theme;return{fontSize:"".concat(theme.typography.size.m1,"px")}})),H4=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.h4(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.g$,(function(_ref4){var theme=_ref4.theme;return{fontSize:"".concat(theme.typography.size.s3,"px")}})),H5=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.h5(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.g$,(function(_ref5){var theme=_ref5.theme;return{fontSize:"".concat(theme.typography.size.s2,"px")}})),H6=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.h6(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.g$,(function(_ref6){var theme=_ref6.theme;return{fontSize:"".concat(theme.typography.size.s2,"px"),color:theme.color.dark}})),Pre=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.pre(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.vl,(function(_ref7){return{fontFamily:_ref7.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}})),Link=function Link(_ref8){var input=_ref8.href,children=_ref8.children,props=_objectWithoutProperties(_ref8,["href","children"]),isStorybookPath=/^\//.test(input),isAnchorUrl=/^#.*/.test(input),href=isStorybookPath?"?path=".concat(input):input,target=isAnchorUrl?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_8__.createElement("a",_extends({href,target},props),children)};Link.displayName="Link";var A=(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo)(Link)(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,(function(_ref9){return{fontSize:"inherit",lineHeight:"24px",color:_ref9.theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}})),HR=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.hr((function(_ref10){var theme=_ref10.theme;return{border:"0 none",borderTop:"1px solid ".concat(theme.appBorderColor),height:4,padding:0}})),DL=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.dl(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,Object.assign({},_shared__WEBPACK_IMPORTED_MODULE_10__.vl,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),Blockquote=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.blockquote(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.vl,(function(_ref11){var theme=_ref11.theme;return{borderLeft:"4px solid ".concat(theme.color.medium),padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}})),Table=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.table(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.vl,(function(_ref12){var theme=_ref12.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:"1px solid ".concat(theme.appBorderColor),backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:"1px solid ".concat(theme.appBorderColor),margin:0,padding:"6px 13px"},"& tr td":{border:"1px solid ".concat(theme.appBorderColor),color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}})),Img=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.img({maxWidth:"100%"}),Div=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.div(_shared__WEBPACK_IMPORTED_MODULE_10__.YX),Span=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.span(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,(function(_ref13){var theme=_ref13.theme;return{"&.frame":{display:"block",overflow:"hidden","& > span":{border:"1px solid ".concat(theme.color.medium),display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}})),listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},LI=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.li(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,(function(_ref14){var theme=_ref14.theme;return{fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":(0,_shared__WEBPACK_IMPORTED_MODULE_10__.CI)({theme})}})),UL=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.ul(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.vl,Object.assign({},listCommon,{listStyle:"disc"})),OL=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.ol(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.vl,Object.assign({},listCommon,{listStyle:"decimal"})),P=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.p(_shared__WEBPACK_IMPORTED_MODULE_10__.YX,_shared__WEBPACK_IMPORTED_MODULE_10__.vl,(function(_ref15){var theme=_ref15.theme;return{fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":(0,_shared__WEBPACK_IMPORTED_MODULE_10__.CI)({theme})}})),DefaultCodeBlock=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.code((function(_ref16){return{fontFamily:_ref16.theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}}),_shared__WEBPACK_IMPORTED_MODULE_10__.CI),isInlineCodeRegex=/[\n\r]/g,isReactChildString=function isReactChildString(child){return"string"==typeof child},Code=function Code(_ref17){var _language$,className=_ref17.className,children=_ref17.children,props=_objectWithoutProperties(_ref17,["className","children"]),language=(className||"").match(/lang-(\S+)/),childrenArray=react__WEBPACK_IMPORTED_MODULE_8__.Children.toArray(children);return!childrenArray.filter(isReactChildString).some((function(child){return child.match(isInlineCodeRegex)}))?react__WEBPACK_IMPORTED_MODULE_8__.createElement(DefaultCodeBlock,_extends({},props,{className}),childrenArray):react__WEBPACK_IMPORTED_MODULE_8__.createElement(_blocks_Source__WEBPACK_IMPORTED_MODULE_11__.iS,_extends({bordered:!0,copyable:!0,language:null!==(_language$=null==language?void 0:language[1])&&void 0!==_language$?_language$:"plaintext",format:!1},props),children)};Code.displayName="Code";var TT=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.title(_shared__WEBPACK_IMPORTED_MODULE_10__.CI),ResetWrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_9__.zo.div(_shared__WEBPACK_IMPORTED_MODULE_10__.YX),nameSpaceClassNames=function nameSpaceClassNames(_ref18,key){var props=Object.assign({},_ref18),classes=[props.class,props.className];return delete props.class,props.className=["sbdocs","sbdocs-".concat(key)].concat(classes).filter(Boolean).join(" "),props},components={h1:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H1,nameSpaceClassNames(props,"h1"))},h2:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H2,nameSpaceClassNames(props,"h2"))},h3:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H3,nameSpaceClassNames(props,"h3"))},h4:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H4,nameSpaceClassNames(props,"h4"))},h5:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H5,nameSpaceClassNames(props,"h5"))},h6:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H6,nameSpaceClassNames(props,"h6"))},pre:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Pre,nameSpaceClassNames(props,"pre"))},a:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(A,nameSpaceClassNames(props,"a"))},hr:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(HR,nameSpaceClassNames(props,"hr"))},dl:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(DL,nameSpaceClassNames(props,"dl"))},blockquote:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Blockquote,nameSpaceClassNames(props,"blockquote"))},table:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Table,nameSpaceClassNames(props,"table"))},img:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Img,nameSpaceClassNames(props,"img"))},div:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Div,nameSpaceClassNames(props,"div"))},span:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Span,nameSpaceClassNames(props,"span"))},li:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(LI,nameSpaceClassNames(props,"li"))},ul:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(UL,nameSpaceClassNames(props,"ul"))},ol:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(OL,nameSpaceClassNames(props,"ol"))},p:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(P,nameSpaceClassNames(props,"p"))},code:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Code,nameSpaceClassNames(props,"code"))},tt:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(TT,nameSpaceClassNames(props,"tt"))},resetwrapper:function(props){return react__WEBPACK_IMPORTED_MODULE_8__.createElement(ResetWrapper,nameSpaceClassNames(props,"resetwrapper"))}}},"../../../node_modules/.pnpm/@storybook+components@6.4.4_react@17.0.2/node_modules/@storybook/components/dist/esm/typography/shared.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{g$:()=>headerCommon,CI:()=>codeCommon,YX:()=>withReset,vl:()=>withMargin});var polished__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),headerCommon=function headerCommon(_ref){return{margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:_ref.theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}},codeCommon=function codeCommon(_ref2){var theme=_ref2.theme;return{lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?"1px solid ".concat(theme.color.mediumlight):"1px solid ".concat(theme.color.darker),color:"light"===theme.base?(0,polished__WEBPACK_IMPORTED_MODULE_0__.DZ)(.1,theme.color.defaultText):(0,polished__WEBPACK_IMPORTED_MODULE_0__.DZ)(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border}},withReset=function withReset(_ref3){var theme=_ref3.theme;return{fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}},withMargin={margin:"16px 0"}},"../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/globals/globals.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var global__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js");__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_0__)().window.STORYBOOK_REACT_CLASSES={}},"../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/globals/polyfills.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__("../../../node_modules/.pnpm/regenerator-runtime@0.13.9/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("../../../node_modules/.pnpm/airbnb-js-shims@2.2.1/node_modules/airbnb-js-shims/index.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/features/symbol/index.js")},"../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ClientApi:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.ti,StoryStore:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.ag,start:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.BL,toId:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.KK});var _preview__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/preview/index.js"),_preview_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/preview/types.js"),__WEBPACK_REEXPORT_OBJECT__={};for(const __WEBPACK_IMPORT_KEY__ in _preview_types__WEBPACK_IMPORTED_MODULE_1__)["default","ClientApi","StoryStore","start","toId"].indexOf(__WEBPACK_IMPORT_KEY__)<0&&(__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__]=()=>_preview_types__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]);__webpack_require__.d(__webpack_exports__,__WEBPACK_REEXPORT_OBJECT__)},"../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/preview/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ti:()=>ClientApi.ti,ag:()=>StoryStore,BL:()=>start,KK:()=>dist.toId});var _templateObject,ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),memoizerific=(__webpack_require__("../../../node_modules/.pnpm/regenerator-runtime@0.13.9/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.values.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/memoizerific@1.11.3/node_modules/memoizerific/memoizerific.js")),memoizerific_default=__webpack_require__.n(memoizerific),mapValues=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"),mapValues_default=__webpack_require__.n(mapValues),pick=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js"),pick_default=__webpack_require__.n(pick),global_window=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),window_default=__webpack_require__.n(global_window),synchronous_promise=__webpack_require__("../../../node_modules/.pnpm/synchronous-promise@2.0.15/node_modules/synchronous-promise/index.js"),esm=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.find.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("../../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"));function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:{v:3,stories:{}},stories=_ref.stories;_classCallCheck(this,StoryIndexStore),this.channel=void 0,this.stories=void 0,this.stories=stories}return function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}(StoryIndexStore,[{key:"storyIdFromSpecifier",value:function storyIdFromSpecifier(specifier){var storyIds=Object.keys(this.stories);if("*"===specifier)return storyIds[0];if("string"==typeof specifier)return storyIds.indexOf(specifier)>=0?specifier:storyIds.find((function(storyId){return storyId.startsWith(specifier)}));var name=specifier.name,title=specifier.title,match=Object.entries(this.stories).find((function(_ref2){var _ref3=_slicedToArray(_ref2,2),story=(_ref3[0],_ref3[1]);return story.name===name&&story.title===title}));return match&&match[0]}},{key:"storyIdToEntry",value:function storyIdToEntry(storyId){var storyEntry=this.stories[storyId];if(!storyEntry)throw new Error((0,esm.C)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["Couldn't find story matching '","' after HMR.\n - Did you remove it from your CSF file?\n - Are you sure a story with that id exists?\n - Please check your stories field of your main.js config.\n - Also check the browser console and terminal for error messages."])),storyId));return storyEntry}}]),StoryIndexStore}(),fast_deep_equal=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.find-index.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.fill.js"),__webpack_require__("../../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js")),fast_deep_equal_default=__webpack_require__.n(fast_deep_equal),dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),isPlainObject=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"),isPlainObject_default=__webpack_require__.n(isPlainObject);function args_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return args_arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||args_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function args_slicedToArray(arr,i){return function args_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function args_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||args_unsupportedIterableToArray(arr,i)||function args_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function args_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return args_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?args_arrayLikeToArray(o,minLen):void 0}}function args_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=value.length?res:res.concat(new Array(value.length-update.length).fill(void 0))}return isPlainObject_default()(value)&&isPlainObject_default()(update)?Object.keys(Object.assign({},value,update)).reduce((function(acc,key){var diff=deepDiff(null==value?void 0:value[key],null==update?void 0:update[key]);return diff===DEEPLY_EQUAL?acc:Object.assign(acc,_defineProperty({},key,diff))}),{}):update};function groupArgsByTarget(_ref7){var args=_ref7.args,argTypes=_ref7.argTypes,groupedArgs={};return Object.entries(args).forEach((function(_ref8){var _ref9=args_slicedToArray(_ref8,2),name=_ref9[0],value=_ref9[1],_ref10$target=(argTypes[name]||{}).target,target=void 0===_ref10$target?"":_ref10$target;groupedArgs[target]=groupedArgs[target]||{},groupedArgs[target][name]=value})),groupedArgs}function ArgsStore_defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i StoryFn.storyName\n- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.\n"]))),deprecatedStoryAnnotationWarning=browser_default()((function(){}),deprecatedStoryAnnotation);function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var checkDisallowedParameters=function checkDisallowedParameters(parameters){parameters&&(function checkGlobals(parameters){var globals=parameters.globals,globalTypes=parameters.globalTypes;(globals||globalTypes)&&dist_esm.kg.error("Global args/argTypes can only be set globally",JSON.stringify({globals,globalTypes}))}(parameters),function checkStorySort(parameters){var options=parameters.options;null!=options&&options.storySort&&dist_esm.kg.error("The storySort option parameter can only be set globally")}(parameters))};function processCSFFile(moduleExports,importPath,title){var defaultExport=moduleExports.default,namedExports=(moduleExports.__namedExportsOrder,_objectWithoutProperties(moduleExports,["default","__namedExportsOrder"])),id=defaultExport.id,argTypes=defaultExport.argTypes,meta=Object.assign({id:(0,dist.sanitize)(id||title)},defaultExport,{title},argTypes&&{argTypes:(0,normalizeInputTypes.x)(argTypes)},{parameters:Object.assign({fileName:importPath},defaultExport.parameters)});checkDisallowedParameters(meta.parameters);var csfFile={meta,stories:{}};return Object.keys(namedExports).forEach((function(key){if((0,dist.isExportStory)(key,meta)){var storyMeta=function normalizeStory(key,storyAnnotations,meta){var userStoryFn,storyObject;"function"==typeof storyAnnotations?(userStoryFn=storyAnnotations,storyObject=storyAnnotations):storyObject=storyAnnotations;var story=storyObject.story;story&&(dist_esm.kg.debug("deprecated story",story),deprecatedStoryAnnotationWarning());var exportName=(0,dist.storyNameFromExport)(key),name="function"!=typeof storyObject&&storyObject.name||storyObject.storyName||(null==story?void 0:story.name)||exportName,decorators=[].concat(normalizeStory_toConsumableArray(storyObject.decorators||[]),normalizeStory_toConsumableArray((null==story?void 0:story.decorators)||[])),parameters=Object.assign({},null==story?void 0:story.parameters,storyObject.parameters),args=Object.assign({},null==story?void 0:story.args,storyObject.args),argTypes=Object.assign({},null==story?void 0:story.argTypes,storyObject.argTypes),loaders=[].concat(normalizeStory_toConsumableArray(storyObject.loaders||[]),normalizeStory_toConsumableArray((null==story?void 0:story.loaders)||[])),_storyObject2=storyObject,render=_storyObject2.render,play=_storyObject2.play,id=parameters.__id||(0,dist.toId)(meta.id||meta.title,exportName);return Object.assign({id,name,decorators,parameters,args,argTypes:(0,normalizeInputTypes.x)(argTypes),loaders},render&&{render},userStoryFn&&{userStoryFn},play&&{play})}(key,namedExports[key],meta);checkDisallowedParameters(storyMeta.parameters),csfFile.stories[storyMeta.id]=storyMeta}})),csfFile}var prepareStory_templateObject,esm_parameters=__webpack_require__("../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js"),hooks=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/hooks.js");function decorators_objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function decorators_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function defaultDecorateStory(storyFn,decorators){var contextStore={},bindWithContext=function bindWithContext(decoratedStoryFn){return function(update){return contextStore.value=Object.assign({},contextStore.value,function sanitizeStoryContextUpdate(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _ref.componentId,_ref.title,_ref.kind,_ref.id,_ref.name,_ref.story,_ref.parameters,_ref.initialArgs,_ref.argTypes,decorators_objectWithoutProperties(_ref,["componentId","title","kind","id","name","story","parameters","initialArgs","argTypes"])}(update)),decoratedStoryFn(contextStore.value)}},decoratedWithContextStore=decorators.reduce((function(story,decorator){return function decorateStory(storyFn,decorator,bindWithContext){var boundStoryFunction=bindWithContext(storyFn);return function(context){return decorator(boundStoryFunction,context)}}(story,decorator,bindWithContext)}),storyFn);return function(context){return contextStore.value=context,decoratedWithContextStore(context)}}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function prepareStory_slicedToArray(arr,i){return function prepareStory_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function prepareStory_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||prepareStory_unsupportedIterableToArray(arr,i)||function prepareStory_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function prepareStory_toConsumableArray(arr){return function prepareStory_arrayWithoutHoles(arr){if(Array.isArray(arr))return prepareStory_arrayLikeToArray(arr)}(arr)||function prepareStory_iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||prepareStory_unsupportedIterableToArray(arr)||function prepareStory_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function prepareStory_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return prepareStory_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?prepareStory_arrayLikeToArray(o,minLen):void 0}}function prepareStory_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0;var passedArgs=Object.assign({},projectAnnotations.args,componentAnnotations.args,storyAnnotations.args),contextForEnhancers={componentId:componentAnnotations.id,title,kind:title,id,name,story:name,component:componentAnnotations.component,subcomponents:componentAnnotations.subcomponents,parameters,initialArgs:passedArgs,argTypes:passedArgTypes};contextForEnhancers.argTypes=argTypesEnhancers.reduce((function(accumulatedArgTypes,enhancer){return enhancer(Object.assign({},contextForEnhancers,{argTypes:accumulatedArgTypes}))}),contextForEnhancers.argTypes);var defaultArgs=Object.entries(contextForEnhancers.argTypes).reduce((function(acc,_ref){var _ref2=prepareStory_slicedToArray(_ref,2),arg=_ref2[0],defaultValue=_ref2[1].defaultValue;return void 0!==defaultValue&&(acc[arg]=defaultValue),acc}),{});Object.keys(defaultArgs).length>0&&argTypeDefaultValueWarning();var initialArgsBeforeEnhancers=Object.assign({},defaultArgs,passedArgs);contextForEnhancers.initialArgs=argsEnhancers.reduce((function(accumulatedArgs,enhancer){return Object.assign({},accumulatedArgs,enhancer(Object.assign({},contextForEnhancers,{initialArgs:accumulatedArgs})))}),initialArgsBeforeEnhancers),null!==(_global$FEATURES=window_default().FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.breakingChangesV7||(contextForEnhancers.parameters=Object.assign({},contextForEnhancers.parameters,{__id:id,globals:projectAnnotations.globals,globalTypes:projectAnnotations.globalTypes,args:contextForEnhancers.initialArgs,argTypes:contextForEnhancers.argTypes}));var applyLoaders=function(){var _ref3=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(context){var loadResults,loaded;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,Promise.all(loaders.map((function(loader){return loader(context)})));case 2:return loadResults=_context.sent,loaded=Object.assign.apply(Object,[{}].concat(prepareStory_toConsumableArray(loadResults))),_context.abrupt("return",Object.assign({},context,{loaded}));case 5:case"end":return _context.stop()}}),_callee)})));return function applyLoaders(_x){return _ref3.apply(this,arguments)}}(),undecoratedStoryFn=function undecoratedStoryFn(context){var mappedArgs=Object.entries(context.args).reduce((function(acc,_ref4){var _context$argTypes$key,_ref5=prepareStory_slicedToArray(_ref4,2),key=_ref5[0],val=_ref5[1],mapping=null===(_context$argTypes$key=context.argTypes[key])||void 0===_context$argTypes$key?void 0:_context$argTypes$key.mapping;return acc[key]=mapping&&val in mapping?mapping[val]:val,acc}),{}),mappedContext=Object.assign({},context,{args:mappedArgs}),_context$parameters$p=context.parameters.passArgsFirst;return void 0===_context$parameters$p||_context$parameters$p?render(mappedContext.args,mappedContext):render(mappedContext)},decoratedStoryFn=(0,hooks.DM)(applyDecorators)(undecoratedStoryFn,decorators),playFunction=storyAnnotations.play;return Object.freeze(Object.assign({},contextForEnhancers,{originalStoryFn:render,undecoratedStoryFn,unboundStoryFn:function unboundStoryFn(context){var _global$FEATURES2,finalContext=context;if(null!==(_global$FEATURES2=window_default().FEATURES)&&void 0!==_global$FEATURES2&&_global$FEATURES2.argTypeTargetsV7){var argsByTarget=groupArgsByTarget(Object.assign({args:context.args},context));finalContext=Object.assign({},context,{allArgs:context.args,argsByTarget,args:argsByTarget[""]||{}})}return decoratedStoryFn(finalContext)},applyLoaders,playFunction}))}function inferArgTypes_typeof(obj){return inferArgTypes_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},inferArgTypes_typeof(obj)}var inferType=function inferType(value,name,visited){var type=inferArgTypes_typeof(value);switch(type){case"boolean":case"string":case"number":case"function":case"symbol":return{name:type}}return value?visited.has(value)?(dist_esm.kg.warn((0,esm.C)(inferArgTypes_templateObject||(inferArgTypes_templateObject=function inferArgTypes_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n We've detected a cycle in arg '","'. Args should be JSON-serializable.\n\n Consider using the mapping feature or fully custom args:\n - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values\n - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args\n "])),name)),{name:"other",value:"cyclic object"}):(visited.add(value),Array.isArray(value)?{name:"array",value:value.length>0?inferType(value[0],name,new Set(visited)):{name:"other",value:"unknown"}}:{name:"object",value:mapValues_default()(value,(function(field){return inferType(field,name,new Set(visited))}))}):{name:"object",value:{}}},inferArgTypes=function inferArgTypes(context){var id=context.id,_context$argTypes=context.argTypes,userArgTypes=void 0===_context$argTypes?{}:_context$argTypes,_context$initialArgs=context.initialArgs,initialArgs=void 0===_context$initialArgs?{}:_context$initialArgs,argTypes=mapValues_default()(initialArgs,(function(arg,key){return{name:key,type:inferType(arg,"".concat(id,".").concat(key),new Set)}})),userArgTypesNames=mapValues_default()(userArgTypes,(function(argType,key){return{name:key}}));return(0,esm_parameters.f)(argTypes,userArgTypesNames,userArgTypes)};inferArgTypes.secondPass=!0;var filterArgTypes=__webpack_require__("../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/filterArgTypes.js"),inferControls=function inferControls(context){var argTypes=context.argTypes,_context$parameters=context.parameters,__isArgsStory=_context$parameters.__isArgsStory,_context$parameters$c=_context$parameters.controls,_context$parameters$c2=(_context$parameters$c=void 0===_context$parameters$c?{}:_context$parameters$c).include,include=void 0===_context$parameters$c2?null:_context$parameters$c2,_context$parameters$c3=_context$parameters$c.exclude,exclude=void 0===_context$parameters$c3?null:_context$parameters$c3,_context$parameters$c4=_context$parameters$c.matchers,matchers=void 0===_context$parameters$c4?{}:_context$parameters$c4;if(!__isArgsStory)return argTypes;var filteredArgTypes=(0,filterArgTypes.h)(argTypes,include,exclude),withControls=mapValues_default()(filteredArgTypes,(function(argType,name){return(null==argType?void 0:argType.type)&&function inferControl(argType,name,matchers){var type=argType.type,options=argType.options;if(type||options){if(matchers.color&&matchers.color.test(name)){var controlType=argType.type.name;if("string"===controlType)return{control:{type:"color"}};dist_esm.kg.warn('Addon controls: Control of type color only supports string, received "'.concat(controlType,'" instead'))}if(matchers.date&&matchers.date.test(name))return{control:{type:"date"}};switch(type.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":var value=type.value;return{control:{type:(null==value?void 0:value.length)<=5?"radio":"select"},options:value};case"function":case"symbol":return null;default:return{control:{type:options?"select":"object"}}}}}(argType,name,matchers)}));return(0,esm_parameters.f)(withControls,filteredArgTypes)};inferControls.secondPass=!0;function StoryStore_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function StoryStore_slicedToArray(arr,i){return function StoryStore_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function StoryStore_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||StoryStore_unsupportedIterableToArray(arr,i)||function StoryStore_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function StoryStore_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function StoryStore_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){StoryStore_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){StoryStore_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function StoryStore_defineProperties(target,props){for(var i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var parseArgsParam_templateObject,StoryStore=function(){function StoryStore(){var _this=this;!function StoryStore_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,StoryStore),this.storyIndex=void 0,this.importFn=void 0,this.projectAnnotations=void 0,this.globals=void 0,this.args=void 0,this.hooks=void 0,this.cachedCSFFiles=void 0,this.processCSFFileWithCache=void 0,this.prepareStoryWithCache=void 0,this.initializationPromise=void 0,this.resolveInitializationPromise=void 0,this.getStoriesJsonData=function(){var value=_this.getSetStoriesPayload(),allowedParameters=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:mapValues_default()(value.stories,(function(story){var _global$FEATURES;return Object.assign({},pick_default()(story,["id","name","title"]),{importPath:_this.storyIndex.stories[story.id].importPath},!(null!==(_global$FEATURES=window_default().FEATURES)&&void 0!==_global$FEATURES&&_global$FEATURES.breakingChangesV7)&&{kind:story.title,story:story.name,parameters:Object.assign({},pick_default()(story.parameters,allowedParameters),{fileName:_this.storyIndex.stories[story.id].importPath})})}))}},this.globals=new GlobalsStore,this.args=new ArgsStore,this.hooks={},this.processCSFFileWithCache=memoizerific_default()(1e3)(processCSFFile),this.prepareStoryWithCache=memoizerific_default()(1e4)(prepareStory),this.initializationPromise=new synchronous_promise.SynchronousPromise((function(resolve){_this.resolveInitializationPromise=resolve}))}var _loadStory,_onStoriesChanged;return function StoryStore_createClass(Constructor,protoProps,staticProps){return protoProps&&StoryStore_defineProperties(Constructor.prototype,protoProps),staticProps&&StoryStore_defineProperties(Constructor,staticProps),Constructor}(StoryStore,[{key:"setProjectAnnotations",value:function setProjectAnnotations(projectAnnotations){this.projectAnnotations=function normalizeProjectAnnotations(_ref){var argTypes=_ref.argTypes,globalTypes=_ref.globalTypes,argTypesEnhancers=_ref.argTypesEnhancers,annotations=StoryStore_objectWithoutProperties(_ref,["argTypes","globalTypes","argTypesEnhancers"]);return Object.assign({},argTypes&&{argTypes:(0,normalizeInputTypes.x)(argTypes)},globalTypes&&{globalTypes:(0,normalizeInputTypes.x)(globalTypes)},{argTypesEnhancers:[].concat(StoryStore_toConsumableArray(argTypesEnhancers||[]),[inferArgTypes,inferControls])},annotations)}(projectAnnotations);var globals=projectAnnotations.globals,globalTypes=projectAnnotations.globalTypes;this.globals.set({globals,globalTypes})}},{key:"initialize",value:function initialize(_ref2){var storyIndex=_ref2.storyIndex,importFn=_ref2.importFn,_ref2$cache=_ref2.cache,cache=void 0!==_ref2$cache&&_ref2$cache;return this.storyIndex=new StoryIndexStore(storyIndex),this.importFn=importFn,this.resolveInitializationPromise(),cache?this.cacheAllCSFFiles():synchronous_promise.SynchronousPromise.resolve()}},{key:"onStoriesChanged",value:(_onStoriesChanged=StoryStore_asyncToGenerator(regeneratorRuntime.mark((function _callee(_ref3){var importFn,storyIndex;return regeneratorRuntime.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(importFn=_ref3.importFn,storyIndex=_ref3.storyIndex,importFn&&(this.importFn=importFn),storyIndex&&(this.storyIndex.stories=storyIndex.stories),!this.cachedCSFFiles){_context.next=6;break}return _context.next=6,this.cacheAllCSFFiles();case 6:case"end":return _context.stop()}}),_callee,this)}))),function onStoriesChanged(_x){return _onStoriesChanged.apply(this,arguments)})},{key:"loadCSFFileByStoryId",value:function loadCSFFileByStoryId(storyId){var _this2=this,_this$storyIndex$stor=this.storyIndex.storyIdToEntry(storyId),importPath=_this$storyIndex$stor.importPath,title=_this$storyIndex$stor.title;return this.importFn(importPath).then((function(moduleExports){return _this2.processCSFFileWithCache(moduleExports,importPath,title)}))}},{key:"loadAllCSFFiles",value:function loadAllCSFFiles(){var _this3=this,importPaths={};Object.entries(this.storyIndex.stories).forEach((function(_ref4){var _ref5=StoryStore_slicedToArray(_ref4,2),storyId=_ref5[0],importPath=_ref5[1].importPath;importPaths[importPath]=storyId}));var csfFilePromiseList=Object.entries(importPaths).map((function(_ref6){var _ref7=StoryStore_slicedToArray(_ref6,2),importPath=_ref7[0],storyId=_ref7[1];return _this3.loadCSFFileByStoryId(storyId).then((function(csfFile){return{importPath,csfFile}}))}));return synchronous_promise.SynchronousPromise.all(csfFilePromiseList).then((function(list){return list.reduce((function(acc,_ref8){var importPath=_ref8.importPath,csfFile=_ref8.csfFile;return acc[importPath]=csfFile,acc}),{})}))}},{key:"cacheAllCSFFiles",value:function cacheAllCSFFiles(){var _this4=this;return this.loadAllCSFFiles().then((function(csfFiles){_this4.cachedCSFFiles=csfFiles}))}},{key:"loadStory",value:(_loadStory=StoryStore_asyncToGenerator(regeneratorRuntime.mark((function _callee2(_ref9){var storyId,csfFile;return regeneratorRuntime.wrap((function _callee2$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return storyId=_ref9.storyId,_context2.next=3,this.initializationPromise;case 3:return _context2.next=5,this.loadCSFFileByStoryId(storyId);case 5:return csfFile=_context2.sent,_context2.abrupt("return",this.storyFromCSFFile({storyId,csfFile}));case 7:case"end":return _context2.stop()}}),_callee2,this)}))),function loadStory(_x2){return _loadStory.apply(this,arguments)})},{key:"storyFromCSFFile",value:function storyFromCSFFile(_ref10){var storyId=_ref10.storyId,csfFile=_ref10.csfFile,storyAnnotations=csfFile.stories[storyId];if(!storyAnnotations)throw new Error("Didn't find '".concat(storyId,"' in CSF file, this is unexpected"));var componentAnnotations=csfFile.meta,story=this.prepareStoryWithCache(storyAnnotations,componentAnnotations,this.projectAnnotations);return this.args.setInitial(story),this.hooks[story.id]=this.hooks[story.id]||new hooks.c8,story}},{key:"componentStoriesFromCSFFile",value:function componentStoriesFromCSFFile(_ref11){var _this5=this,csfFile=_ref11.csfFile;return Object.keys(csfFile.stories).map((function(storyId){return _this5.storyFromCSFFile({storyId,csfFile})}))}},{key:"getStoryContext",value:function getStoryContext(story){return Object.assign({},story,{args:this.args.get(story.id),globals:this.globals.get(),hooks:this.hooks[story.id]})}},{key:"cleanupStory",value:function cleanupStory(story){this.hooks[story.id].clean()}},{key:"extract",value:function extract(){var _this6=this,options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeDocsOnly:!1};if(!this.cachedCSFFiles)throw new Error("Cannot call extract() unless you call cacheAllCSFFiles() first.");return Object.entries(this.storyIndex.stories).reduce((function(acc,_ref12){var _ref13=StoryStore_slicedToArray(_ref12,2),storyId=_ref13[0],importPath=_ref13[1].importPath,csfFile=_this6.cachedCSFFiles[importPath],story=_this6.storyFromCSFFile({storyId,csfFile});return!options.includeDocsOnly&&story.parameters.docsOnly||(acc[storyId]=Object.entries(story).reduce((function(storyAcc,_ref14){var _ref15=StoryStore_slicedToArray(_ref14,2),key=_ref15[0],value=_ref15[1];return"function"==typeof value?storyAcc:Array.isArray(value)?Object.assign(storyAcc,StoryStore_defineProperty({},key,value.slice().sort())):Object.assign(storyAcc,StoryStore_defineProperty({},key,value))}),{args:story.initialArgs})),acc}),{})}},{key:"getSetStoriesPayload",value:function getSetStoriesPayload(){var stories=this.extract({includeDocsOnly:!0}),kindParameters=Object.values(stories).reduce((function(acc,_ref16){return acc[_ref16.title]={},acc}),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters,stories}}},{key:"raw",value:function raw(){var _this7=this;return Object.values(this.extract()).map((function(_ref17){var id=_ref17.id;return _this7.fromId(id)}))}},{key:"fromId",value:function fromId(storyId){var importPath,_this8=this;if(!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");try{importPath=this.storyIndex.storyIdToEntry(storyId).importPath}catch(err){return null}var csfFile=this.cachedCSFFiles[importPath],story=this.storyFromCSFFile({storyId,csfFile});return Object.assign({},story,{storyFn:function storyFn(update){var context=Object.assign({},_this8.getStoryContext(story),{viewMode:"story"});return story.unboundStoryFn(Object.assign({},context,update))}})}}]),StoryStore}(),core_events_dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-events@6.4.4/node_modules/@storybook/core-events/dist/esm/index.js"),addons_dist_esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+addons@6.4.4_react@17.0.2/node_modules/@storybook/addons/dist/esm/index.js"),lib=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.search.js"),__webpack_require__("../../../node_modules/.pnpm/qs@6.10.1/node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib);__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.ends-with.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.split.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.replace.js");function parseArgsParam_slicedToArray(arr,i){return function parseArgsParam_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function parseArgsParam_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function parseArgsParam_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return parseArgsParam_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return parseArgsParam_arrayLikeToArray(o,minLen)}(arr,i)||function parseArgsParam_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function parseArgsParam_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"",value=arguments.length>1?arguments[1]:void 0;return null!==key&&(!(""===key||!VALIDATION_REGEXP.test(key))&&(null==value||(value instanceof Date||("number"==typeof value||"boolean"==typeof value||("string"==typeof value?VALIDATION_REGEXP.test(value)||NUMBER_REGEXP.test(value)||HEX_REGEXP.test(value)||COLOR_REGEXP.test(value):Array.isArray(value)?value.every((function(v){return validateArgs(key,v)})):!!isPlainObject_default()(value)&&Object.entries(value).every((function(_ref){var _ref2=parseArgsParam_slicedToArray(_ref,2),k=_ref2[0],v=_ref2[1];return validateArgs(k,v)})))))))},QS_OPTIONS={delimiter:";",allowDots:!0,allowSparse:!0,decoder:function(_decoder){function decoder(_x,_x2,_x3,_x4){return _decoder.apply(this,arguments)}return decoder.toString=function(){return _decoder.toString()},decoder}((function(str,defaultDecoder,charset,type){if("value"===type&&str.startsWith("!")){if("!undefined"===str)return;if("!null"===str)return null;if(str.startsWith("!date(")&&str.endsWith(")"))return new Date(str.slice(6,-1));if(str.startsWith("!hex(")&&str.endsWith(")"))return"#".concat(str.slice(5,-1));var color=str.slice(1).match(COLOR_REGEXP);if(color)return str.startsWith("!rgba")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],", ").concat(color[5],")"):str.startsWith("!hsla")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%, ").concat(color[5],")"):str.startsWith("!rgb")?"".concat(color[1],"(").concat(color[2],", ").concat(color[3],", ").concat(color[4],")"):"".concat(color[1],"(").concat(color[2],", ").concat(color[3],"%, ").concat(color[4],"%)")}return"value"===type&&NUMBER_REGEXP.test(str)?Number(str):defaultDecoder(str,defaultDecoder,charset)}))},parseArgsParam=function parseArgsParam(argsString){var parts=argsString.split(";").map((function(part){return part.replace("=","~").replace(":","=")}));return Object.entries(lib_default().parse(parts.join(";"),QS_OPTIONS)).reduce((function(acc,_ref3){var _ref4=parseArgsParam_slicedToArray(_ref3,2),key=_ref4[0],value=_ref4[1];return validateArgs(key,value)?Object.assign(acc,function parseArgsParam_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},key,value)):(dist_esm.IH.warn((0,esm.C)(parseArgsParam_templateObject||(parseArgsParam_templateObject=function parseArgsParam_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n Omitted potentially unsafe URL args.\n\n More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url\n "])))),acc)}),{})};function UrlStore_defineProperties(target,props){for(var i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var UrlStore_history=window_default().history,UrlStore_document=window_default().document;var WebView_templateObject,getQueryString=function getQueryString(_ref){var selection=_ref.selection,extraParams=_ref.extraParams,_document$location$se=UrlStore_document.location.search,search=void 0===_document$location$se?"":_document$location$se,_qs$parse=lib_default().parse(search,{ignoreQueryPrefix:!0}),rest=(_qs$parse.path,_qs$parse.selectedKind,_qs$parse.selectedStory,UrlStore_objectWithoutProperties(_qs$parse,["path","selectedKind","selectedStory"]));return lib_default().stringify(Object.assign({},rest,extraParams,selection&&{id:selection.storyId,viewMode:selection.viewMode}),{encode:!1,addQueryPrefix:!0})},getFirstString=function getFirstString(v){return"string"==typeof v?v:Array.isArray(v)?getFirstString(v[0]):function isObject(val){return null!=val&&"object"===UrlStore_typeof(val)&&!1===Array.isArray(val)}(v)?getFirstString(Object.values(v)):void 0},deprecatedLegacyQuery=browser_default()((function(){return 0}),"URL formats with `selectedKind` and `selectedName` query parameters are deprecated.\nUse `id=$storyId` instead.\nSee https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-url-structure"),getSelectionSpecifierFromPath=function getSelectionSpecifierFromPath(){var query=lib_default().parse(UrlStore_document.location.search,{ignoreQueryPrefix:!0}),args="string"==typeof query.args?parseArgsParam(query.args):void 0,globals="string"==typeof query.globals?parseArgsParam(query.globals):void 0,viewMode=getFirstString(query.viewMode);"string"==typeof viewMode&&viewMode.match(/docs|story/)||(viewMode="story");var path=getFirstString(query.path),storyId=path?function pathToId(path){var match=(path||"").match(/^\/story\/(.+)/);if(!match)throw new Error("Invalid path '".concat(path,"', must start with '/story/'"));return match[1]}(path):getFirstString(query.id);if(storyId)return{storySpecifier:storyId,args,globals,viewMode};var title=getFirstString(query.selectedKind),name=getFirstString(query.selectedStory);return title&&name?(deprecatedLegacyQuery(),{storySpecifier:{title,name},args,globals,viewMode}):null},UrlStore=function(){function UrlStore(){!function UrlStore_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}(this,UrlStore),this.selectionSpecifier=void 0,this.selection=void 0,this.selectionSpecifier=getSelectionSpecifierFromPath()}return function UrlStore_createClass(Constructor,protoProps,staticProps){return protoProps&&UrlStore_defineProperties(Constructor.prototype,protoProps),staticProps&&UrlStore_defineProperties(Constructor,staticProps),Constructor}(UrlStore,[{key:"setSelection",value:function setSelection(selection){this.selection=selection,function setPath(selection){if(selection){var query=getQueryString({selection}),_document$location$ha=UrlStore_document.location.hash,hash=void 0===_document$location$ha?"":_document$location$ha;UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}(this.selection)}},{key:"setQueryParams",value:function setQueryParams(queryParams){var query=getQueryString({extraParams:queryParams}),_document$location$ha2=UrlStore_document.location.hash,hash=void 0===_document$location$ha2?"":_document$location$ha2;UrlStore_history.replaceState({},"","".concat(UrlStore_document.location.pathname).concat(query).concat(hash))}}]),UrlStore}(),ansi_to_html=__webpack_require__("../../../node_modules/.pnpm/ansi-to-html@0.6.15/node_modules/ansi-to-html/lib/ansi_to_html.js"),ansi_to_html_default=__webpack_require__.n(ansi_to_html);function WebView_slicedToArray(arr,i){return function WebView_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function WebView_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function WebView_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return WebView_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WebView_arrayLikeToArray(o,minLen)}(arr,i)||function WebView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WebView_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&void 0!==arguments[0]?arguments[0]:"padded";if("none"===layout)return WebView_document.body.classList.remove(this.currentLayoutClass),void(this.currentLayoutClass=null);this.checkIfLayoutExists(layout);var layoutClass=layoutClassMap[layout];WebView_document.body.classList.remove(this.currentLayoutClass),WebView_document.body.classList.add(layoutClass),this.currentLayoutClass=layoutClass}},{key:"checkIfLayoutExists",value:function checkIfLayoutExists(layout){layoutClassMap[layout]||dist_esm.kg.warn((0,esm.C)(WebView_templateObject||(WebView_templateObject=function WebView_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["The desired layout: "," is not a valid option.\n The possible options are: ",", none."])),layout,Object.keys(layoutClassMap).join(", ")))}},{key:"showMode",value:function showMode(mode){Object.keys(Mode).forEach((function(otherMode){otherMode===mode?WebView_document.body.classList.add(classes[otherMode]):WebView_document.body.classList.remove(classes[otherMode])}))}},{key:"showErrorDisplay",value:function showErrorDisplay(_ref){var _ref$message=_ref.message,message=void 0===_ref$message?"":_ref$message,_ref$stack=_ref.stack,header=message,detail=void 0===_ref$stack?"":_ref$stack,parts=message.split("\n");parts.length>1&&(header=WebView_slicedToArray(parts,1)[0],detail=parts.slice(1).join("\n"));WebView_document.getElementById("error-message").innerHTML=ansiConverter.toHtml(header),WebView_document.getElementById("error-stack").innerHTML=ansiConverter.toHtml(detail),this.showMode(Mode.ERROR)}},{key:"showNoPreview",value:function showNoPreview(){var _this$storyRoot,_this$docsRoot;this.testing||(this.showMode(Mode.NOPREVIEW),null===(_this$storyRoot=this.storyRoot())||void 0===_this$storyRoot||_this$storyRoot.setAttribute("hidden","true"),null===(_this$docsRoot=this.docsRoot())||void 0===_this$docsRoot||_this$docsRoot.setAttribute("hidden","true"))}},{key:"showPreparingStory",value:function showPreparingStory(){this.showMode(Mode.PREPARING_STORY)}},{key:"showPreparingDocs",value:function showPreparingDocs(){this.showMode(Mode.PREPARING_DOCS)}},{key:"showMain",value:function showMain(){this.showMode(Mode.MAIN)}},{key:"showDocs",value:function showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}},{key:"showStory",value:function showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}}]),WebView}();function PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function PreviewWeb_asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){PreviewWeb_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)}))}}function PreviewWeb_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function PreviewWeb_defineProperties(target,props){for(var i=0;i0&&void 0!==_args8[0]?_args8[0]:{},persistedArgs=_ref9.persistedArgs,selection=this.urlStore.selection){_context8.next=4;break}throw new Error("Cannot render story as no selection was made");case 4:return storyId=selection.storyId,storyIdChanged=(null===(_this$previousSelecti=this.previousSelection)||void 0===_this$previousSelecti?void 0:_this$previousSelecti.storyId)!==storyId,viewModeChanged=(null===(_this$previousSelecti2=this.previousSelection)||void 0===_this$previousSelecti2?void 0:_this$previousSelecti2.viewMode)!==selection.viewMode,"story"===selection.viewMode?this.view.showPreparingStory():this.view.showPreparingDocs(),_context8.prev=8,_context8.next=11,this.storyStore.loadStory({storyId});case 11:story=_context8.sent,_context8.next=21;break;case 14:return _context8.prev=14,_context8.t0=_context8.catch(8),_context8.next=18,this.cleanupPreviousRender();case 18:return this.previousStory=null,this.renderStoryLoadingException(storyId,_context8.t0),_context8.abrupt("return");case 21:if(implementationChanged=!storyIdChanged&&this.previousStory&&story!==this.previousStory,persistedArgs&&this.storyStore.args.updateFromPersisted(story,persistedArgs),!this.previousStory||storyIdChanged||implementationChanged||viewModeChanged){_context8.next=27;break}return this.channel.emit(core_events_dist_esm.default.STORY_UNCHANGED,storyId),this.view.showMain(),_context8.abrupt("return");case 27:return _context8.next=29,this.cleanupPreviousRender({unmountDocs:viewModeChanged});case 29:if(this.previousSelection&&(storyIdChanged||viewModeChanged)&&this.channel.emit(core_events_dist_esm.default.STORY_CHANGED,storyId),this.previousSelection=selection,this.previousStory=story,_this$storyStore$getS=this.storyStore.getStoryContext(story),parameters=_this$storyStore$getS.parameters,initialArgs=_this$storyStore$getS.initialArgs,argTypes=_this$storyStore$getS.argTypes,args=_this$storyStore$getS.args,null!==(_global$FEATURES6=window_default().FEATURES)&&void 0!==_global$FEATURES6&&_global$FEATURES6.storyStoreV7&&this.channel.emit(core_events_dist_esm.default.STORY_PREPARED,{id:storyId,parameters,initialArgs,argTypes,args}),(implementationChanged||persistedArgs)&&this.channel.emit(core_events_dist_esm.default.STORY_ARGS_UPDATED,{storyId,args}),"docs"!==selection.viewMode&&!story.parameters.docsOnly){_context8.next=41;break}return _context8.next=38,this.renderDocs({story});case 38:this.previousCleanup=_context8.sent,_context8.next=42;break;case 41:this.previousCleanup=this.renderStory({story});case 42:case"end":return _context8.stop()}}),_callee8,this,[[8,14]])}))),function renderSelection(){return _renderSelection.apply(this,arguments)})},{key:"renderDocs",value:(_renderDocs=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee11(_ref10){var _global$FEATURES8,story,id,title,name,csfFile,docsContext,render,_this6=this;return regeneratorRuntime.wrap((function _callee11$(_context11){for(;;)switch(_context11.prev=_context11.next){case 0:return story=_ref10.story,id=story.id,title=story.title,name=story.name,_context11.next=4,this.storyStore.loadCSFFileByStoryId(id);case 4:return csfFile=_context11.sent,docsContext={id,title,name,storyById:function storyById(storyId){return _this6.storyStore.storyFromCSFFile({storyId,csfFile})},componentStories:function componentStories(){return _this6.storyStore.componentStoriesFromCSFFile({csfFile})},loadStory:function loadStory(storyId){return _this6.storyStore.loadStory({storyId})},renderStoryToElement:this.renderStoryToElement.bind(this),getStoryContext:function getStoryContext(renderedStory){return Object.assign({},_this6.storyStore.getStoryContext(renderedStory),{viewMode:"docs"})}},render=function(){var _ref11=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){var _global$FEATURES7,fullDocsContext,renderer,element;return regeneratorRuntime.wrap((function _callee9$(_context9){for(;;)switch(_context9.prev=_context9.next){case 0:return fullDocsContext=Object.assign({},docsContext,!(null!==(_global$FEATURES7=window_default().FEATURES)&&void 0!==_global$FEATURES7&&_global$FEATURES7.breakingChangesV7)&&_this6.storyStore.getStoryContext(story)),_context9.next=3,__webpack_require__.e(244).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+preview-web@6.4.4_react@17.0.2/node_modules/@storybook/preview-web/dist/esm/renderDocs.js"));case 3:renderer=_context9.sent,element=_this6.view.prepareForDocs(),renderer.renderDocs(story,fullDocsContext,element,(function(){return _this6.channel.emit(core_events_dist_esm.default.DOCS_RENDERED,id)}));case 6:case"end":return _context9.stop()}}),_callee9)})));return function render(){return _ref11.apply(this,arguments)}}(),render(),null!==(_global$FEATURES8=window_default().FEATURES)&&void 0!==_global$FEATURES8&&_global$FEATURES8.modernInlineRender||(this.channel.on(core_events_dist_esm.default.UPDATE_GLOBALS,render),this.channel.on(core_events_dist_esm.default.UPDATE_STORY_ARGS,render),this.channel.on(core_events_dist_esm.default.RESET_STORY_ARGS,render)),_context11.abrupt("return",PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){var _global$FEATURES9;return regeneratorRuntime.wrap((function _callee10$(_context10){for(;;)switch(_context10.prev=_context10.next){case 0:null!==(_global$FEATURES9=window_default().FEATURES)&&void 0!==_global$FEATURES9&&_global$FEATURES9.modernInlineRender||(_this6.channel.off(core_events_dist_esm.default.UPDATE_GLOBALS,render),_this6.channel.off(core_events_dist_esm.default.UPDATE_STORY_ARGS,render),_this6.channel.off(core_events_dist_esm.default.RESET_STORY_ARGS,render));case 1:case"end":return _context10.stop()}}),_callee10)}))));case 10:case"end":return _context11.stop()}}),_callee11,this)}))),function renderDocs(_x4){return _renderDocs.apply(this,arguments)})},{key:"renderStory",value:function renderStory(_ref13){var _this7=this,story=_ref13.story,element=this.view.prepareForStory(story),id=story.id,componentId=story.componentId,title=story.title,name=story.name,renderContext={componentId,title,kind:title,id,name,story:name,showMain:function showMain(){return _this7.view.showMain()},showError:function showError(err){return _this7.renderError(id,err)},showException:function showException(err){return _this7.renderException(id,err)}};return this.renderStoryToElement({story,renderContext,element})}},{key:"renderStoryToElement",value:function renderStoryToElement(_ref14){var phase,_this8=this,story=_ref14.story,renderContextWithoutStoryContext=_ref14.renderContext,canvasElement=_ref14.element,id=story.id,applyLoaders=story.applyLoaders,unboundStoryFn=story.unboundStoryFn,playFunction=story.playFunction,notYetRendered=!0,isPending=function isPending(){return["rendering","playing"].includes(phase)};this.abortController=createController();var render=function(){var _ref15=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee14(){var _ref16,_ref16$initial,initial,_ref16$forceRemount,forceRemount,abortSignal,runPhase,loadedContext,renderStoryContext,renderContext,_args14=arguments;return regeneratorRuntime.wrap((function _callee14$(_context14){for(;;)switch(_context14.prev=_context14.next){case 0:return _ref16=_args14.length>0&&void 0!==_args14[0]?_args14[0]:{},_ref16$initial=_ref16.initial,initial=void 0!==_ref16$initial&&_ref16$initial,_ref16$forceRemount=_ref16.forceRemount,(forceRemount=void 0!==_ref16$forceRemount&&_ref16$forceRemount)&&!initial&&(_this8.abortController.abort(),_this8.abortController=createController()),abortSignal=_this8.abortController.signal,runPhase=function(){var _ref17=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee12(phaseName,phaseFn){return regeneratorRuntime.wrap((function _callee12$(_context12){for(;;)switch(_context12.prev=_context12.next){case 0:if(phase=phaseName,_this8.channel.emit(core_events_dist_esm.default.STORY_RENDER_PHASE_CHANGED,{newPhase:phase,storyId:id}),!phaseFn){_context12.next=5;break}return _context12.next=5,phaseFn();case 5:abortSignal.aborted&&(phase="aborted",_this8.channel.emit(core_events_dist_esm.default.STORY_RENDER_PHASE_CHANGED,{newPhase:phase,storyId:id}));case 6:case"end":return _context12.stop()}}),_callee12)})));return function runPhase(_x5,_x6){return _ref17.apply(this,arguments)}}(),_context14.prev=4,_context14.next=7,runPhase("loading",PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee13(){return regeneratorRuntime.wrap((function _callee13$(_context13){for(;;)switch(_context13.prev=_context13.next){case 0:return _context13.next=2,applyLoaders(Object.assign({},_this8.storyStore.getStoryContext(story),{viewMode:canvasElement===_this8.view.storyRoot()?"story":"docs"}));case 2:loadedContext=_context13.sent;case 3:case"end":return _context13.stop()}}),_callee13)}))));case 7:if(!abortSignal.aborted){_context14.next=9;break}return _context14.abrupt("return");case 9:return renderStoryContext=Object.assign({},loadedContext,_this8.storyStore.getStoryContext(story),{abortSignal,canvasElement}),renderContext=Object.assign({},renderContextWithoutStoryContext,{forceRemount:forceRemount||notYetRendered,storyContext:renderStoryContext,storyFn:function storyFn(){return unboundStoryFn(renderStoryContext)},unboundStoryFn}),_context14.next=13,runPhase("rendering",(function(){return _this8.renderToDOM(renderContext,canvasElement)}));case 13:if(notYetRendered=!1,!abortSignal.aborted){_context14.next=16;break}return _context14.abrupt("return");case 16:if(!forceRemount||!playFunction){_context14.next=25;break}return _this8.disableKeyListeners=!0,_context14.next=20,runPhase("playing",(function(){return playFunction(renderContext.storyContext)}));case 20:return _context14.next=22,runPhase("played");case 22:if(_this8.disableKeyListeners=!1,!abortSignal.aborted){_context14.next=25;break}return _context14.abrupt("return");case 25:return _context14.next=27,runPhase("completed",(function(){return _this8.channel.emit(core_events_dist_esm.default.STORY_RENDERED,id)}));case 27:_context14.next=32;break;case 29:_context14.prev=29,_context14.t0=_context14.catch(4),renderContextWithoutStoryContext.showException(_context14.t0);case 32:case"end":return _context14.stop()}}),_callee14,null,[[4,29]])})));return function render(){return _ref15.apply(this,arguments)}}();render({initial:!0,forceRemount:!0});var remountStoryIfMatches=function remountStoryIfMatches(_ref19){_ref19.storyId===story.id&&render({forceRemount:!0})},rerenderStoryIfMatches=function rerenderStoryIfMatches(_ref20){_ref20.storyId===story.id&&render()};return this.channel.on(core_events_dist_esm.default.UPDATE_GLOBALS,render),this.channel.on(core_events_dist_esm.default.FORCE_RE_RENDER,render),this.channel.on(core_events_dist_esm.default.FORCE_REMOUNT,remountStoryIfMatches),this.channel.on(core_events_dist_esm.default.UPDATE_STORY_ARGS,rerenderStoryIfMatches),this.channel.on(core_events_dist_esm.default.RESET_STORY_ARGS,rerenderStoryIfMatches),PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee15(){return regeneratorRuntime.wrap((function _callee15$(_context15){for(;;)switch(_context15.prev=_context15.next){case 0:if(_this8.abortController.abort(),_this8.storyStore.cleanupStory(story),_this8.channel.off(core_events_dist_esm.default.UPDATE_GLOBALS,render),_this8.channel.off(core_events_dist_esm.default.FORCE_RE_RENDER,render),_this8.channel.off(core_events_dist_esm.default.FORCE_REMOUNT,remountStoryIfMatches),_this8.channel.off(core_events_dist_esm.default.UPDATE_STORY_ARGS,rerenderStoryIfMatches),_this8.channel.off(core_events_dist_esm.default.RESET_STORY_ARGS,rerenderStoryIfMatches),isPending()){_context15.next=9;break}return _context15.abrupt("return");case 9:return _context15.next=11,new Promise((function(resolve){return setTimeout(resolve,0)}));case 11:if(isPending()){_context15.next=13;break}return _context15.abrupt("return");case 13:return _context15.next=15,new Promise((function(resolve){return setTimeout(resolve,0)}));case 15:if(isPending()){_context15.next=17;break}return _context15.abrupt("return");case 17:return _context15.next=19,new Promise((function(resolve){return setTimeout(resolve,0)}));case 19:if(isPending()){_context15.next=21;break}return _context15.abrupt("return");case 21:return window_default().window.location.reload(),_context15.next=24,new Promise((function(){}));case 24:case"end":return _context15.stop()}}),_callee15)})))}},{key:"cleanupPreviousRender",value:(_cleanupPreviousRender=PreviewWeb_asyncToGenerator(regeneratorRuntime.mark((function _callee16(){var _this$previousStory,_this$previousStory$p,_this$previousSelecti3,_ref22,_ref22$unmountDocs,unmountDocs,previousViewMode,_args16=arguments;return regeneratorRuntime.wrap((function _callee16$(_context16){for(;;)switch(_context16.prev=_context16.next){case 0:if(_ref22=_args16.length>0&&void 0!==_args16[0]?_args16[0]:{},_ref22$unmountDocs=_ref22.unmountDocs,unmountDocs=void 0===_ref22$unmountDocs||_ref22$unmountDocs,previousViewMode=null!==(_this$previousStory=this.previousStory)&&void 0!==_this$previousStory&&null!==(_this$previousStory$p=_this$previousStory.parameters)&&void 0!==_this$previousStory$p&&_this$previousStory$p.docsOnly?"docs":null===(_this$previousSelecti3=this.previousSelection)||void 0===_this$previousSelecti3?void 0:_this$previousSelecti3.viewMode,!unmountDocs||"docs"!==previousViewMode){_context16.next=6;break}return _context16.next=5,__webpack_require__.e(244).then(__webpack_require__.bind(__webpack_require__,"../../../node_modules/.pnpm/@storybook+preview-web@6.4.4_react@17.0.2/node_modules/@storybook/preview-web/dist/esm/renderDocs.js"));case 5:_context16.sent.unmountDocs(this.view.docsRoot());case 6:if(!this.previousCleanup){_context16.next=9;break}return _context16.next=9,this.previousCleanup();case 9:case"end":return _context16.stop()}}),_callee16,this)}))),function cleanupPreviousRender(){return _cleanupPreviousRender.apply(this,arguments)})},{key:"renderPreviewEntryError",value:function renderPreviewEntryError(reason,err){dist_esm.kg.error(reason),dist_esm.kg.error(err),this.view.showErrorDisplay(err),this.channel.emit(core_events_dist_esm.default.CONFIG_ERROR,err)}},{key:"renderMissingStory",value:function renderMissingStory(){this.view.showNoPreview(),this.channel.emit(core_events_dist_esm.default.STORY_MISSING)}},{key:"renderStoryLoadingException",value:function renderStoryLoadingException(storySpecifier,err){dist_esm.kg.error("Unable to load story '".concat(storySpecifier,"':")),dist_esm.kg.error(err),this.view.showErrorDisplay(err),this.channel.emit(core_events_dist_esm.default.STORY_MISSING,storySpecifier)}},{key:"renderException",value:function renderException(storyId,err){this.channel.emit(core_events_dist_esm.default.STORY_THREW_EXCEPTION,err),this.channel.emit(core_events_dist_esm.default.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId}),err!==core_events_dist_esm.IGNORED_EXCEPTION&&(this.view.showErrorDisplay(err),dist_esm.kg.error("Error rendering story '".concat(storyId,"':")),dist_esm.kg.error(err))}},{key:"renderError",value:function renderError(storyId,_ref23){var title=_ref23.title,description=_ref23.description;dist_esm.kg.error("Error rendering story ".concat(title,": ").concat(description)),this.channel.emit(core_events_dist_esm.default.STORY_ERRORED,{title,description}),this.channel.emit(core_events_dist_esm.default.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId}),this.view.showErrorDisplay({message:title,stack:description})}}]),PreviewWeb}();__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.number.is-integer.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.url.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.immediate.js");function esm_taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function esm_classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function esm_defineProperties(target,props){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},transport=_ref.transport,_ref$async=_ref.async,async=void 0!==_ref$async&&_ref$async;esm_classCallCheck(this,Channel),this.isAsync=void 0,this.sender=generateRandomId(),this.events={},this.data={},this.transport=void 0,this.addPeerListener=browser_default()((function(eventName,listener){_this.addListener(eventName,listener)}),(0,esm.C)(esm_templateObject||(esm_templateObject=esm_taggedTemplateLiteral(["\n channel.addPeerListener is deprecated\n "])))),this.isAsync=async,transport&&(this.transport=transport,this.transport.setHandler((function(event){return _this.handleEvent(event)})))}return function esm_createClass(Constructor,protoProps,staticProps){return protoProps&&esm_defineProperties(Constructor.prototype,protoProps),staticProps&&esm_defineProperties(Constructor,staticProps),Constructor}(Channel,[{key:"hasTransport",get:function get(){return!!this.transport}},{key:"addListener",value:function addListener(eventName,listener){this.events[eventName]=this.events[eventName]||[],this.events[eventName].push(listener)}},{key:"emit",value:function emit(eventName){for(var _this2=this,_len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var event={type:eventName,args,from:this.sender},options={};args.length>=1&&args[0]&&args[0].options&&(options=args[0].options);var handler=function handler(){_this2.transport&&_this2.transport.send(event,options),_this2.handleEvent(event)};this.isAsync?setImmediate(handler):handler()}},{key:"last",value:function last(eventName){return this.data[eventName]}},{key:"eventNames",value:function eventNames(){return Object.keys(this.events)}},{key:"listenerCount",value:function listenerCount(eventName){var listeners=this.listeners(eventName);return listeners?listeners.length:0}},{key:"listeners",value:function listeners(eventName){var listeners=this.events[eventName];return listeners||void 0}},{key:"once",value:function once(eventName,listener){var onceListener=this.onceListener(eventName,listener);this.addListener(eventName,onceListener)}},{key:"removeAllListeners",value:function removeAllListeners(eventName){eventName?this.events[eventName]&&delete this.events[eventName]:this.events={}}},{key:"removeListener",value:function removeListener(eventName,listener){var listeners=this.listeners(eventName);listeners&&(this.events[eventName]=listeners.filter((function(l){return l!==listener})))}},{key:"on",value:function on(eventName,listener){this.addListener(eventName,listener)}},{key:"off",value:function off(eventName,listener){this.removeListener(eventName,listener)}},{key:"handleEvent",value:function handleEvent(event){var listeners=this.listeners(event.type);listeners&&listeners.length&&listeners.forEach((function(fn){fn.apply(event,event.args)})),this.data[event.type]=event.args}},{key:"onceListener",value:function onceListener(eventName,listener){var _this3=this,onceListener=function onceListener(){return _this3.removeListener(eventName,onceListener),listener.apply(void 0,arguments)};return onceListener}}]),Channel}();var telejson_dist_esm=__webpack_require__("../../../node_modules/.pnpm/telejson@5.3.3/node_modules/telejson/dist/esm/index.js");function esm_toConsumableArray(arr){return function esm_arrayWithoutHoles(arr){if(Array.isArray(arr))return esm_arrayLikeToArray(arr)}(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||function esm_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function esm_iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}function esm_slicedToArray(arr,i){return esm_arrayWithHoles(arr)||function esm_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||esm_unsupportedIterableToArray(arr,i)||esm_nonIterableRest()}function esm_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function esm_unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return esm_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?esm_arrayLikeToArray(o,minLen):void 0}}function esm_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i manager ':' preview ',eventString=Object.values(core_events_dist_esm).includes(event.type)?''.concat(event.type,""):''.concat(event.type,"");if(refId&&(event.refId=refId),event.source="preview"===this.config.page?rawEvent.origin:getEventSourceUrl(rawEvent),!event.source)return void dist_esm.IC.error("".concat(pageString," received ").concat(eventString," but was unable to determine the source of the event"));var message="".concat(pageString," received ").concat(eventString," (").concat(data.length,")");dist_esm.IC.debug.apply(dist_esm.IC,[esm_location.origin!==event.source?message:"".concat(message,' (on ').concat(esm_location.origin," from ").concat(event.source,")")].concat(esm_toConsumableArray(event.args))),this.handler(event)}}catch(error){dist_esm.kg.error(error)}}}]),PostmsgTransport}(),getEventSourceUrl=function getEventSourceUrl(event){var _frames$filter=esm_toConsumableArray(esm_document.querySelectorAll("iframe[data-is-storybook]")).filter((function(element){try{return element.contentWindow===event.source}catch(err){}var origin,src=element.getAttribute("src");try{origin=new URL(src,esm_document.location).origin}catch(err){return!1}return origin===event.origin})),_frames$filter2=function _toArray(arr){return esm_arrayWithHoles(arr)||esm_iterableToArray(arr)||esm_unsupportedIterableToArray(arr)||esm_nonIterableRest()}(_frames$filter),frame=_frames$filter2[0],remainder=_frames$filter2.slice(1);if(frame&&0===remainder.length){var src=frame.getAttribute("src"),_URL2=new URL(src,esm_document.location),protocol=_URL2.protocol,host=_URL2.host,pathname=_URL2.pathname;return"".concat(protocol,"//").concat(host).concat(pathname)}return remainder.length>0&&dist_esm.kg.error("found multiple candidates for event source"),null};function createChannel(_ref5){var page=_ref5.page,transport=new PostmsgTransport({page});return new channels_dist_esm({transport})}__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.map.js");function executeLoadable_slicedToArray(arr,i){return function executeLoadable_arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function executeLoadable_iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function executeLoadable_unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return executeLoadable_arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return executeLoadable_arrayLikeToArray(o,minLen)}(arr,i)||function executeLoadable_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function executeLoadable_arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i1&&void 0!==arguments[1]?arguments[1]:{},decorateStory=_ref.decorateStory,render=_ref.render;if(null!=FEATURES&&FEATURES.storyStoreV7)return{forceReRender:removedApi("forceReRender"),getStorybook:removedApi("getStorybook"),configure:removedApi("configure"),clientApi:{addDecorator:removedApi("clientApi.addDecorator"),addParameters:removedApi("clientApi.addParameters"),clearDecorators:removedApi("clientApi.clearDecorators"),addLoader:removedApi("clientApi.addLoader"),setAddon:removedApi("clientApi.setAddon"),getStorybook:removedApi("clientApi.getStorybook"),storiesOf:removedApi("clientApi.storiesOf"),raw:removedApi("raw")}};var channel=createChannel({page:"preview"});addons_dist_esm.KP.setChannel(channel);var clientApi=new ClientApi.ti,preview=new PreviewWeb,initialized=!1,importFn=function importFn(path){return clientApi.importFn(path)};function onStoriesChanged(){var storyIndex=clientApi.getStoryIndex();preview.onStoriesChanged({storyIndex,importFn})}return clientApi.onImportFnChanged=onStoriesChanged,clientApi.storyStore=preview.storyStore,start_globalWindow&&(start_globalWindow.__STORYBOOK_CLIENT_API__=clientApi,start_globalWindow.__STORYBOOK_ADDONS_CHANNEL__=channel,start_globalWindow.__STORYBOOK_PREVIEW__=preview,start_globalWindow.__STORYBOOK_STORY_STORE__=preview.storyStore),{forceReRender:function forceReRender(){return channel.emit(core_events_dist_esm.default.FORCE_RE_RENDER)},getStorybook:function getStorybook(){return[]},raw:function raw(){},clientApi,configure:function configure(framework,loadable,m){var showDeprecationWarning=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];showDeprecationWarning&&configureDeprecationWarning(),clientApi.addParameters({framework});var getProjectAnnotations=function getProjectAnnotations(){var _executeLoadableForCh=executeLoadableForChanges(loadable,m),added=_executeLoadableForCh.added,removed=_executeLoadableForCh.removed;return Array.from(added.entries()).forEach((function(_ref2){var _ref3=start_slicedToArray(_ref2,2),fileName=_ref3[0],fileExports=_ref3[1];return clientApi.facade.addStoriesFromExports(fileName,fileExports)})),Array.from(removed.entries()).forEach((function(_ref4){var fileName=start_slicedToArray(_ref4,1)[0];return clientApi.facade.clearFilenameExports(fileName)})),Object.assign({},clientApi.facade.projectAnnotations,{render,renderToDOM,applyDecorators:decorateStory})};initialized?(getProjectAnnotations(),onStoriesChanged()):(preview.initialize({getStoryIndex:function getStoryIndex(){return clientApi.getStoryIndex()},importFn,getProjectAnnotations}),initialized=!0)}}}dist.toId,ClientApi.ti},"../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/preview/types.js":()=>{},"../../../node_modules/.pnpm/@storybook+core-events@6.4.4/node_modules/@storybook/core-events/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var events;__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__,CHANNEL_CREATED:()=>CHANNEL_CREATED,CONFIG_ERROR:()=>CONFIG_ERROR,STORY_INDEX_INVALIDATED:()=>STORY_INDEX_INVALIDATED,STORY_SPECIFIED:()=>STORY_SPECIFIED,SET_STORIES:()=>SET_STORIES,SET_CURRENT_STORY:()=>SET_CURRENT_STORY,CURRENT_STORY_WAS_SET:()=>CURRENT_STORY_WAS_SET,FORCE_RE_RENDER:()=>FORCE_RE_RENDER,FORCE_REMOUNT:()=>FORCE_REMOUNT,STORY_PREPARED:()=>STORY_PREPARED,STORY_CHANGED:()=>STORY_CHANGED,STORY_UNCHANGED:()=>STORY_UNCHANGED,STORY_RENDERED:()=>STORY_RENDERED,STORY_MISSING:()=>STORY_MISSING,STORY_ERRORED:()=>STORY_ERRORED,STORY_THREW_EXCEPTION:()=>STORY_THREW_EXCEPTION,STORY_RENDER_PHASE_CHANGED:()=>STORY_RENDER_PHASE_CHANGED,UPDATE_STORY_ARGS:()=>UPDATE_STORY_ARGS,STORY_ARGS_UPDATED:()=>STORY_ARGS_UPDATED,RESET_STORY_ARGS:()=>RESET_STORY_ARGS,SET_GLOBALS:()=>SET_GLOBALS,UPDATE_GLOBALS:()=>UPDATE_GLOBALS,GLOBALS_UPDATED:()=>GLOBALS_UPDATED,REGISTER_SUBSCRIPTION:()=>REGISTER_SUBSCRIPTION,PREVIEW_KEYDOWN:()=>PREVIEW_KEYDOWN,SELECT_STORY:()=>SELECT_STORY,STORIES_COLLAPSE_ALL:()=>STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL:()=>STORIES_EXPAND_ALL,DOCS_RENDERED:()=>DOCS_RENDERED,SHARED_STATE_CHANGED:()=>SHARED_STATE_CHANGED,SHARED_STATE_SET:()=>SHARED_STATE_SET,NAVIGATE_URL:()=>NAVIGATE_URL,UPDATE_QUERY_PARAMS:()=>UPDATE_QUERY_PARAMS,IGNORED_EXCEPTION:()=>IGNORED_EXCEPTION}),function(events){events.CHANNEL_CREATED="channelCreated",events.CONFIG_ERROR="configError",events.STORY_INDEX_INVALIDATED="storyIndexInvalidated",events.STORY_SPECIFIED="storySpecified",events.SET_STORIES="setStories",events.SET_CURRENT_STORY="setCurrentStory",events.CURRENT_STORY_WAS_SET="currentStoryWasSet",events.FORCE_RE_RENDER="forceReRender",events.FORCE_REMOUNT="forceRemount",events.STORY_PREPARED="storyPrepared",events.STORY_CHANGED="storyChanged",events.STORY_UNCHANGED="storyUnchanged",events.STORY_RENDERED="storyRendered",events.STORY_MISSING="storyMissing",events.STORY_ERRORED="storyErrored",events.STORY_THREW_EXCEPTION="storyThrewException",events.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",events.UPDATE_STORY_ARGS="updateStoryArgs",events.STORY_ARGS_UPDATED="storyArgsUpdated",events.RESET_STORY_ARGS="resetStoryArgs",events.SET_GLOBALS="setGlobals",events.UPDATE_GLOBALS="updateGlobals",events.GLOBALS_UPDATED="globalsUpdated",events.REGISTER_SUBSCRIPTION="registerSubscription",events.PREVIEW_KEYDOWN="previewKeydown",events.SELECT_STORY="selectStory",events.STORIES_COLLAPSE_ALL="storiesCollapseAll",events.STORIES_EXPAND_ALL="storiesExpandAll",events.DOCS_RENDERED="docsRendered",events.SHARED_STATE_CHANGED="sharedStateChanged",events.SHARED_STATE_SET="sharedStateSet",events.NAVIGATE_URL="navigateUrl",events.UPDATE_QUERY_PARAMS="updateQueryParams"}(events||(events={}));const __WEBPACK_DEFAULT_EXPORT__=events;var CHANNEL_CREATED=events.CHANNEL_CREATED,CONFIG_ERROR=events.CONFIG_ERROR,STORY_INDEX_INVALIDATED=events.STORY_INDEX_INVALIDATED,STORY_SPECIFIED=events.STORY_SPECIFIED,SET_STORIES=events.SET_STORIES,SET_CURRENT_STORY=events.SET_CURRENT_STORY,CURRENT_STORY_WAS_SET=events.CURRENT_STORY_WAS_SET,FORCE_RE_RENDER=events.FORCE_RE_RENDER,FORCE_REMOUNT=events.FORCE_REMOUNT,STORY_PREPARED=events.STORY_PREPARED,STORY_CHANGED=events.STORY_CHANGED,STORY_UNCHANGED=events.STORY_UNCHANGED,STORY_RENDERED=events.STORY_RENDERED,STORY_MISSING=events.STORY_MISSING,STORY_ERRORED=events.STORY_ERRORED,STORY_THREW_EXCEPTION=events.STORY_THREW_EXCEPTION,STORY_RENDER_PHASE_CHANGED=events.STORY_RENDER_PHASE_CHANGED,UPDATE_STORY_ARGS=events.UPDATE_STORY_ARGS,STORY_ARGS_UPDATED=events.STORY_ARGS_UPDATED,RESET_STORY_ARGS=events.RESET_STORY_ARGS,SET_GLOBALS=events.SET_GLOBALS,UPDATE_GLOBALS=events.UPDATE_GLOBALS,GLOBALS_UPDATED=events.GLOBALS_UPDATED,REGISTER_SUBSCRIPTION=events.REGISTER_SUBSCRIPTION,PREVIEW_KEYDOWN=events.PREVIEW_KEYDOWN,SELECT_STORY=events.SELECT_STORY,STORIES_COLLAPSE_ALL=events.STORIES_COLLAPSE_ALL,STORIES_EXPAND_ALL=events.STORIES_EXPAND_ALL,DOCS_RENDERED=events.DOCS_RENDERED,SHARED_STATE_CHANGED=events.SHARED_STATE_CHANGED,SHARED_STATE_SET=events.SHARED_STATE_SET,NAVIGATE_URL=events.NAVIGATE_URL,UPDATE_QUERY_PARAMS=events.UPDATE_QUERY_PARAMS,IGNORED_EXCEPTION=new Error("ignoredException")},"../../../node_modules/.pnpm/@storybook+core@6.4.4_3a2a84c4eb733561d5bd0896fafa3385/node_modules/@storybook/core/client.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("../../../node_modules/.pnpm/@storybook+core@6.4.4_3a2a84c4eb733561d5bd0896fafa3385/node_modules/@storybook/core/dist/cjs/index.js")},"../../../node_modules/.pnpm/@storybook+core@6.4.4_3a2a84c4eb733561d5bd0896fafa3385/node_modules/@storybook/core/dist/cjs/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _coreClient=__webpack_require__("../../../node_modules/.pnpm/@storybook+core-client@6.4.4_react@17.0.2+webpack@5.64.1/node_modules/@storybook/core-client/dist/esm/index.js");Object.keys(_coreClient).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_coreClient[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _coreClient[key]}}))}))},"../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/SBType.js":()=>{},"../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/index.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _exportNames={sanitize:!0,toId:!0,storyNameFromExport:!0,isExportStory:!0,parseKind:!0};exports.isExportStory=function isExportStory(key,_ref){var includeStories=_ref.includeStories,excludeStories=_ref.excludeStories;return"__esModule"!==key&&(!includeStories||matches(key,includeStories))&&(!excludeStories||!matches(key,excludeStories))},exports.parseKind=exports.storyNameFromExport=exports.toId=exports.sanitize=void 0;var _startCase=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/startCase.js")),_story=__webpack_require__("../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/story.js");function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};exports.sanitize=sanitize;var sanitizeSafe=function sanitizeSafe(string,part){var sanitized=sanitize(string);if(""===sanitized)throw new Error("Invalid ".concat(part," '").concat(string,"', must include alphanumeric characters"));return sanitized};exports.toId=function toId(kind,name){return"".concat(sanitizeSafe(kind,"kind")).concat(name?"--".concat(sanitizeSafe(name,"name")):"")};function matches(storyKey,arrayOrRegex){return Array.isArray(arrayOrRegex)?arrayOrRegex.includes(storyKey):storyKey.match(arrayOrRegex)}exports.storyNameFromExport=function storyNameFromExport(key){return(0,_startCase.default)(key)};exports.parseKind=function parseKind(kind,_ref2){var rootSeparator=_ref2.rootSeparator,groupSeparator=_ref2.groupSeparator,_kind$split2=_slicedToArray(kind.split(rootSeparator,2),2),root=_kind$split2[0],remainder=_kind$split2[1];return{root:remainder?root:null,groups:(remainder||kind).split(groupSeparator).filter((function(i){return!!i}))}}},"../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/story.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _SBType=__webpack_require__("../../../node_modules/.pnpm/@storybook+csf@0.0.2--canary.87bc651.0/node_modules/@storybook/csf/dist/SBType.js");Object.keys(_SBType).forEach((function(key){"default"!==key&&"__esModule"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SBType[key]}})}))},"../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/index.js":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{storiesOf:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.ML,setAddon:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.fV,addDecorator:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.$9,addParameters:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.h1,configure:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.jQ,getStorybook:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.pn,raw:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.LZ,forceReRender:()=>_preview__WEBPACK_IMPORTED_MODULE_0__.nr});var _preview__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/index.js"),_preview_types_6_3__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/types-6-3.js"),__WEBPACK_REEXPORT_OBJECT__={};for(const __WEBPACK_IMPORT_KEY__ in _preview_types_6_3__WEBPACK_IMPORTED_MODULE_1__)["default","storiesOf","setAddon","addDecorator","addParameters","configure","getStorybook","raw","forceReRender"].indexOf(__WEBPACK_IMPORT_KEY__)<0&&(__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__]=()=>_preview_types_6_3__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]);__webpack_require__.d(__webpack_exports__,__WEBPACK_REEXPORT_OBJECT__),(module=__webpack_require__.hmd(module))&&module.hot},"../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var config_namespaceObject={};__webpack_require__.r(config_namespaceObject),__webpack_require__.d(config_namespaceObject,{parameters:()=>parameters,render:()=>render.s,renderToDOM:()=>render.A});var ClientApi=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-api@6.4.4_react@17.0.2/node_modules/@storybook/client-api/dist/esm/ClientApi.js"),esm=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js"),render=__webpack_require__("../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/render.js"),parameters={framework:"react"};function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Object.keys(config_namespaceObject).forEach((function(key){var value=config_namespaceObject[key];switch(key){case"args":case"argTypes":return esm.kg.warn("Invalid args/argTypes in config, ignoring.",JSON.stringify(value));case"decorators":return value.forEach((function(decorator){return(0,ClientApi.$9)(decorator,!1)}));case"loaders":return value.forEach((function(loader){return(0,ClientApi.HZ)(loader,!1)}));case"parameters":return(0,ClientApi.h1)(function _objectSpread(target){for(var i=1;i{"use strict";__webpack_require__.d(__webpack_exports__,{$9:()=>addDecorator,h1:()=>addParameters,jQ:()=>configure,nr:()=>forceReRender,pn:()=>getStorybook,LZ:()=>raw,fV:()=>setAddon,ML:()=>storiesOf});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js");var client=__webpack_require__("../../../node_modules/.pnpm/@storybook+core@6.4.4_3a2a84c4eb733561d5bd0896fafa3385/node_modules/@storybook/core/client.js"),global_window=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),globalWindow=__webpack_require__.n(global_window)().window;globalWindow&&(globalWindow.STORYBOOK_ENV="react");var render=__webpack_require__("../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/render.js"),framework="react",api=(0,client.start)(render.A,{render:render.s}),storiesOf=function storiesOf(kind,m){return api.clientApi.storiesOf(kind,m).addParameters({framework})},configure=function configure(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return api.configure.apply(api,[framework].concat(args))},addDecorator=api.clientApi.addDecorator,addParameters=api.clientApi.addParameters,setAddon=(api.clientApi.clearDecorators,api.clientApi.setAddon),forceReRender=api.forceReRender,getStorybook=api.clientApi.getStorybook,raw=api.clientApi.raw},"../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/render.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>render,A:()=>renderToDOM});__webpack_require__("../../../node_modules/.pnpm/regenerator-runtime@0.13.9/node_modules/regenerator-runtime/runtime.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.promise.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.reflect.construct.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js");var global__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("../../../node_modules/.pnpm/react-dom@17.0.2_react@17.0.2/node_modules/react-dom/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i{},"../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/types-6-3.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);var _types_6_0__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+react@6.4.4_a1651566fe124c2574fe1c6587536f43/node_modules/@storybook/react/dist/esm/client/preview/types-6-0.js"),__WEBPACK_REEXPORT_OBJECT__={};for(const __WEBPACK_IMPORT_KEY__ in _types_6_0__WEBPACK_IMPORTED_MODULE_0__)"default"!==__WEBPACK_IMPORT_KEY__&&(__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__]=()=>_types_6_0__WEBPACK_IMPORTED_MODULE_0__[__WEBPACK_IMPORT_KEY__]);__webpack_require__.d(__webpack_exports__,__WEBPACK_REEXPORT_OBJECT__)},"../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/filterArgTypes.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>filterArgTypes});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.match.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js");var lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js"),lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_5__),matches=function matches(name,descriptor){return Array.isArray(descriptor)?descriptor.includes(name):name.match(descriptor)},filterArgTypes=function filterArgTypes(argTypes,include,exclude){return include||exclude?argTypes&&lodash_pickBy__WEBPACK_IMPORTED_MODULE_5___default()(argTypes,(function(argType,key){var name=argType.name||key;return(!include||matches(name,include))&&(!exclude||!matches(name,exclude))})):argTypes}},"../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/normalizeInputTypes.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>normalizeInputTypes});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js");var lodash_mapValues__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"),lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_3__);function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var normalizeInputType=function normalizeInputType(inputType,key){var type=inputType.type,control=inputType.control,rest=_objectWithoutProperties(inputType,["type","control"]),normalized=Object.assign({name:key},rest);return type&&(normalized.type=function normalizeType(type){return"string"==typeof type?{name:type}:type}(type)),control?normalized.control=function normalizeControl(control){return"string"==typeof control?{type:control}:control}(control):!1===control&&(normalized.control={disable:!0}),normalized},normalizeInputTypes=function normalizeInputTypes(inputTypes){return lodash_mapValues__WEBPACK_IMPORTED_MODULE_3___default()(inputTypes,normalizeInputType)}},"../../../node_modules/.pnpm/@storybook+store@6.4.4_react@17.0.2/node_modules/@storybook/store/dist/esm/parameters.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>combineParameters});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.map.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js");var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"),lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_15__);function _toConsumableArray(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(iter))return Array.from(iter)}(arr)||_unsupportedIterableToArray(arr)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||_unsupportedIterableToArray(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i{"use strict";__webpack_require__.d(__webpack_exports__,{$_:()=>color,Oq:()=>background,cp:()=>typography});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.join.js");var polished__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),color={primary:"#FF4785",secondary:"#1EA7FD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F8F8F8",light:"#F3F3F3",mediumlight:"#EEEEEE",medium:"#DDDDDD",mediumdark:"#999999",dark:"#666666",darker:"#444444",darkest:"#333333",border:"rgba(0,0,0,.1)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#333333",inverseText:"#FFFFFF"},background={app:"#F6F9FC",bar:"#FFFFFF",content:color.lightest,gridCellSize:10,hoverable:(0,polished__WEBPACK_IMPORTED_MODULE_1__.DZ)(.93,color.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},typography={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700,black:900},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}}},"../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/convert.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{O:()=>convert});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,polished_esm=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),esm_base=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/base.js"),emotion_react_browser_esm=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("../../../node_modules/.pnpm/@emotion+react@11.4.1_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"));function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var easing={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},rotate360=(0,emotion_react_browser_esm.F4)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n"]))),glow=(0,emotion_react_browser_esm.F4)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n"]))),animation={rotate360,glow,float:(0,emotion_react_browser_esm.F4)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n"]))),jiggle:(0,emotion_react_browser_esm.F4)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n"]))),inlineGlow:(0,emotion_react_browser_esm.iv)("animation:",glow," 1.5s ease-in-out infinite;color:transparent;cursor:progress;;label:inlineGlow;"),hoverable:{name:"1o7rzh8-hoverable",styles:"transition:all 150ms ease-out;transform:translate3d(0,0,0);&:hover{transform:translate3d(0,-2px,0);}&:active{transform:translate3d(0,0,0);};label:hoverable;"}},utils=(__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.function.name.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.from.js"),__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/utils.js"));function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||function _iterableToArrayLimit(arr,i){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(arr)))return;var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var lightSyntaxColors={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},darkSyntaxColors={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},createColors=function createColors(vars){return{primary:vars.colorPrimary,secondary:vars.colorSecondary,tertiary:esm_base.$_.tertiary,ancillary:esm_base.$_.ancillary,orange:esm_base.$_.orange,gold:esm_base.$_.gold,green:esm_base.$_.green,seafoam:esm_base.$_.seafoam,purple:esm_base.$_.purple,ultraviolet:esm_base.$_.ultraviolet,lightest:esm_base.$_.lightest,lighter:esm_base.$_.lighter,light:esm_base.$_.light,mediumlight:esm_base.$_.mediumlight,medium:esm_base.$_.medium,mediumdark:esm_base.$_.mediumdark,dark:esm_base.$_.dark,darker:esm_base.$_.darker,darkest:esm_base.$_.darkest,border:esm_base.$_.border,positive:esm_base.$_.positive,negative:esm_base.$_.negative,warning:esm_base.$_.warning,critical:esm_base.$_.critical,defaultText:vars.textColor||esm_base.$_.darkest,inverseText:vars.textInverseColor||esm_base.$_.lightest}},convert=function convert(){var inherit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:esm_create.n[(0,utils.Q$)()],base=inherit.base,colorSecondary=(inherit.colorPrimary,inherit.colorSecondary),appBg=inherit.appBg,appContentBg=inherit.appContentBg,appBorderColor=inherit.appBorderColor,appBorderRadius=inherit.appBorderRadius,fontBase=inherit.fontBase,fontCode=inherit.fontCode,textColor=inherit.textColor,barTextColor=(inherit.textInverseColor,inherit.barTextColor),barSelectedColor=inherit.barSelectedColor,barBg=inherit.barBg,inputBg=inherit.inputBg,inputBorder=inherit.inputBorder,inputTextColor=inherit.inputTextColor,inputBorderRadius=inherit.inputBorderRadius,brandTitle=inherit.brandTitle,brandUrl=inherit.brandUrl,brandImage=inherit.brandImage,gridCellSize=inherit.gridCellSize,rest=_objectWithoutProperties(inherit,["base","colorPrimary","colorSecondary","appBg","appContentBg","appBorderColor","appBorderRadius","fontBase","fontCode","textColor","textInverseColor","barTextColor","barSelectedColor","barBg","inputBg","inputBorder","inputTextColor","inputBorderRadius","brandTitle","brandUrl","brandImage","gridCellSize"]);return Object.assign({},rest||{},{base,color:createColors(inherit),background:{app:appBg,bar:barBg,content:appContentBg,gridCellSize:gridCellSize||esm_base.Oq.gridCellSize,hoverable:esm_base.Oq.hoverable,positive:esm_base.Oq.positive,negative:esm_base.Oq.negative,warning:esm_base.Oq.warning,critical:esm_base.Oq.critical},typography:{fonts:{base:fontBase,mono:fontCode},weight:esm_base.cp.weight,size:esm_base.cp.size},animation,easing,input:{border:inputBorder,background:inputBg,color:inputTextColor,borderRadius:inputBorderRadius},layoutMargin:10,appBorderColor,appBorderRadius,barTextColor,barSelectedColor:barSelectedColor||colorSecondary,barBg,brand:{title:brandTitle,url:brandUrl,image:brandImage||(brandTitle?null:void 0)},code:create({colors:"light"===base?lightSyntaxColors:darkSyntaxColors,mono:fontCode}),addonActionsTheme:Object.assign({},"light"===base?chromeLight:chromeDark,{BASE_FONT_FAMILY:fontCode,BASE_FONT_SIZE:esm_base.cp.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:textColor,ARROW_COLOR:(0,polished_esm.jb)(.2,appBorderColor),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:fontCode,TREENODE_FONT_SIZE:esm_base.cp.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12})})}},"../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/create.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{n:()=>themes});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.assign.js");var light=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/themes/light.js"),base=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/base.js");const dark={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:"#2f2f2f",appContentBg:base.$_.darkest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:base.cp.fonts.base,fontCode:base.cp.fonts.mono,textColor:base.$_.lightest,textInverseColor:base.$_.darkest,textMutedColor:base.$_.mediumdark,barTextColor:"#999999",barSelectedColor:base.$_.secondary,barBg:base.$_.darkest,inputBg:"#3f3f3f",inputBorder:"rgba(0,0,0,.3)",inputTextColor:base.$_.lightest,inputBorderRadius:4};var utils=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/utils.js"),themes={light:light.Z,dark,normal:light.Z};(0,utils.Q$)()},"../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{GG:()=>ignoreSsrWarning,zo:()=>styled});__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");var emotion_styled_base_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+styled@11.3.0_91407f9eb4eb8e1117ab61d4d046dc59/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),newStyled=(__webpack_require__("../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),emotion_styled_base_browser_esm.Z.bind());["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(tagName){newStyled[tagName]=newStyled(tagName)}));const emotion_styled_browser_esm=newStyled;__webpack_require__("../../../node_modules/.pnpm/@emotion+is-prop-valid@0.8.8/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js");var styled=emotion_styled_browser_esm,ignoreSsrWarning="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"},"../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/themes/light.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/base.js");const __WEBPACK_DEFAULT_EXPORT__={base:"light",colorPrimary:"#FF4785",colorSecondary:"#1EA7FD",appBg:_base__WEBPACK_IMPORTED_MODULE_0__.Oq.app,appContentBg:_base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest,appBorderColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.border,appBorderRadius:4,fontBase:_base__WEBPACK_IMPORTED_MODULE_0__.cp.fonts.base,fontCode:_base__WEBPACK_IMPORTED_MODULE_0__.cp.fonts.mono,textColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.darkest,textInverseColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest,textMutedColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.dark,barTextColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.mediumdark,barSelectedColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.secondary,barBg:_base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest,inputBg:_base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest,inputBorder:_base__WEBPACK_IMPORTED_MODULE_0__.$_.border,inputTextColor:_base__WEBPACK_IMPORTED_MODULE_0__.$_.darkest,inputBorderRadius:4}},"../../../node_modules/.pnpm/@storybook+theming@6.4.4_react@17.0.2/node_modules/@storybook/theming/dist/esm/utils.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TE:()=>mkColor,tG:()=>lightenColor,r5:()=>darkenColor,Q$:()=>getPreferredColorScheme});__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("../../../node_modules/.pnpm/core-js@3.19.1/node_modules/core-js/modules/web.dom-collections.iterator.js");var polished__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../../node_modules/.pnpm/polished@4.1.3/node_modules/polished/dist/polished.esm.js"),global__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../../node_modules/.pnpm/global@4.4.0/node_modules/global/window.js"),global__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__),_storybook_client_logger__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../../node_modules/.pnpm/@storybook+client-logger@6.4.4/node_modules/@storybook/client-logger/dist/esm/index.js");function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(obj){return typeof obj}:function _typeof(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}var globalWindow=global__WEBPACK_IMPORTED_MODULE_8___default().window,mkColor=function mkColor(color){return{color}},colorFactory=function colorFactory(type){return function(color){if(!function isColorString(color){return"string"==typeof color||(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_9__.kg.warn("Color passed to theme object should be a string. Instead "+"".concat(color,"(").concat(_typeof(color),") was passed.")),!1)}(color))return color;if(!function isValidColorForPolished(color){return!/(gradient|var|calc)/.test(color)}(color))return color;try{return function applyPolished(type,color){return"darken"===type?(0,polished__WEBPACK_IMPORTED_MODULE_10__.m4)("".concat((0,polished__WEBPACK_IMPORTED_MODULE_10__._j)(1,color)),.95):"lighten"===type?(0,polished__WEBPACK_IMPORTED_MODULE_10__.m4)("".concat((0,polished__WEBPACK_IMPORTED_MODULE_10__.$n)(1,color)),.95):color}(type,color)}catch(error){return color}}},lightenColor=colorFactory("lighten"),darkenColor=colorFactory("darken"),getPreferredColorScheme=function getPreferredColorScheme(){return globalWindow&&globalWindow.matchMedia&&globalWindow.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},"../../../node_modules/.pnpm/@wordpress+a11y@3.2.4/node_modules/@wordpress/a11y/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{D:()=>speak});var build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+i18n@4.2.4/node_modules/@wordpress/i18n/build-module/index.js");function addContainer(){let ariaLive=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite";const container=document.createElement("div");container.id=`a11y-speak-${ariaLive}`,container.className="a11y-speak-region",container.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),container.setAttribute("aria-live",ariaLive),container.setAttribute("aria-relevant","additions text"),container.setAttribute("aria-atomic","true");const{body}=document;return body&&body.appendChild(container),container}let previousMessage="";function speak(message,ariaLive){!function clear(){const regions=document.getElementsByClassName("a11y-speak-region"),introText=document.getElementById("a11y-speak-intro-text");for(let i=0;i]+>/g," "),previousMessage===message&&(message+=" "),previousMessage=message,message}(message);const introText=document.getElementById("a11y-speak-intro-text"),containerAssertive=document.getElementById("a11y-speak-assertive"),containerPolite=document.getElementById("a11y-speak-polite");containerAssertive&&"assertive"===ariaLive?containerAssertive.textContent=message:containerPolite&&(containerPolite.textContent=message),introText&&introText.removeAttribute("hidden")}!function domReady(callback){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",callback):callback())}((function setup(){const introText=document.getElementById("a11y-speak-intro-text"),containerAssertive=document.getElementById("a11y-speak-assertive"),containerPolite=document.getElementById("a11y-speak-polite");null===introText&&function addIntroText(){const introText=document.createElement("p");introText.id="a11y-speak-intro-text",introText.className="a11y-speak-intro-text",introText.textContent=(0,build_module.__)("Notifications"),introText.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),introText.setAttribute("hidden","hidden");const{body}=document;return body&&body.appendChild(introText),introText}(),null===containerAssertive&&addContainer("assertive"),null===containerPolite&&addContainer("polite")}))},"../../../node_modules/.pnpm/@wordpress+api-fetch@5.2.6/node_modules/@wordpress/api-fetch/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>api_fetch_build_module});var build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+i18n@4.2.4/node_modules/@wordpress/i18n/build-module/index.js");const nonce=function createNonceMiddleware(nonce){const middleware=(options,next)=>{const{headers={}}=options;for(const headerName in headers)if("x-wp-nonce"===headerName.toLowerCase()&&headers[headerName]===middleware.nonce)return next(options);return next({...options,headers:{...headers,"X-WP-Nonce":middleware.nonce}})};return middleware.nonce=nonce,middleware},namespace_endpoint=(options,next)=>{let namespaceTrimmed,endpointTrimmed,path=options.path;return"string"==typeof options.namespace&&"string"==typeof options.endpoint&&(namespaceTrimmed=options.namespace.replace(/^\/|\/$/g,""),endpointTrimmed=options.endpoint.replace(/^\//,""),path=endpointTrimmed?namespaceTrimmed+"/"+endpointTrimmed:namespaceTrimmed),delete options.namespace,delete options.endpoint,next({...options,path})},root_url=rootURL=>(options,next)=>namespace_endpoint(options,(optionsWithPath=>{let apiRoot,url=optionsWithPath.url,path=optionsWithPath.path;return"string"==typeof path&&(apiRoot=rootURL,-1!==rootURL.indexOf("?")&&(path=path.replace("?","&")),path=path.replace(/^\//,""),"string"==typeof apiRoot&&-1!==apiRoot.indexOf("?")&&(path=path.replace("?","&")),url=apiRoot+path),next({...optionsWithPath,url})}));function normalizePath(path){const splitted=path.split("?"),query=splitted[1],base=splitted[0];return query?base+"?"+query.split("&").map((entry=>entry.split("="))).sort(((a,b)=>a[0].localeCompare(b[0]))).map((pair=>pair.join("="))).join("&"):base}var get_query_args=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/get-query-args.js");function getQueryArg(url,arg){return(0,get_query_args.w)(url)[arg]}const preloading=function createPreloadingMiddleware(preloadedData){const cache=Object.keys(preloadedData).reduce(((result,path)=>(result[normalizePath(path)]=preloadedData[path],result)),{});return(options,next)=>{const{parse=!0}=options;let rawPath=options.path;if(!rawPath&&options.url){const pathFromQuery=getQueryArg(options.url,"rest_route");"string"==typeof pathFromQuery&&(rawPath=pathFromQuery)}if("string"==typeof rawPath){const method=options.method||"GET",path=normalizePath(rawPath);if("GET"===method&&cache[path]){const cacheData=cache[path];return delete cache[path],Promise.resolve(parse?cacheData.body:new window.Response(JSON.stringify(cacheData.body),{status:200,statusText:"OK",headers:cacheData.headers}))}if("OPTIONS"===method&&cache[method]&&cache[method][path]){const cacheData=cache[method][path];return delete cache[method][path],Promise.resolve(parse?cacheData.body:cacheData)}}return next(options)}};var add_query_args=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/add-query-args.js");const modifyQuery=(_ref,queryArgs)=>{let{path,url,...options}=_ref;return{...options,url:url&&(0,add_query_args.f)(url,queryArgs),path:path&&(0,add_query_args.f)(path,queryArgs)}},parseResponse=response=>response.json?response.json():Promise.reject(response),getNextPageUrl=response=>{const{next}=(linkHeader=>{if(!linkHeader)return{};const match=linkHeader.match(/<([^>]+)>; rel="next"/);return match?{next:match[1]}:{}})(response.headers.get("link"));return next},fetch_all_middleware=async(options,next)=>{if(!1===options.parse)return next(options);if(!(options=>{const pathIsUnbounded=!!options.path&&-1!==options.path.indexOf("per_page=-1"),urlIsUnbounded=!!options.url&&-1!==options.url.indexOf("per_page=-1");return pathIsUnbounded||urlIsUnbounded})(options))return next(options);const response=await api_fetch_build_module({...modifyQuery(options,{per_page:100}),parse:!1}),results=await parseResponse(response);if(!Array.isArray(results))return results;let nextPage=getNextPageUrl(response);if(!nextPage)return results;let mergedResults=[].concat(results);for(;nextPage;){const nextResponse=await api_fetch_build_module({...options,path:void 0,url:nextPage,parse:!1}),nextResults=await parseResponse(nextResponse);mergedResults=mergedResults.concat(nextResults),nextPage=getNextPageUrl(nextResponse)}return mergedResults},OVERRIDE_METHODS=new Set(["PATCH","PUT","DELETE"]),DEFAULT_METHOD="GET";function hasQueryArg(url,arg){return void 0!==getQueryArg(url,arg)}const response_parseResponse=function(response){let shouldParseResponse=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return shouldParseResponse?204===response.status?null:response.json?response.json():Promise.reject(response):response},parseJsonAndNormalizeError=response=>{const invalidJsonError={code:"invalid_json",message:(0,build_module.__)("The response is not a valid JSON response.")};if(!response||!response.json)throw invalidJsonError;return response.json().catch((()=>{throw invalidJsonError}))},parseResponseAndNormalizeError=function(response){let shouldParseResponse=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(response_parseResponse(response,shouldParseResponse)).catch((res=>parseAndThrowError(res,shouldParseResponse)))};function parseAndThrowError(response){let shouldParseResponse=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!shouldParseResponse)throw response;return parseJsonAndNormalizeError(response).then((error=>{const unknownError={code:"unknown_error",message:(0,build_module.__)("An unknown error occurred.")};throw error||unknownError}))}const media_upload=(options,next)=>{if(!function isMediaUploadRequest(options){const isCreateMethod=!!options.method&&"POST"===options.method;return(!!options.path&&-1!==options.path.indexOf("/wp/v2/media")||!!options.url&&-1!==options.url.indexOf("/wp/v2/media"))&&isCreateMethod}(options))return next(options);let retries=0;const postProcess=attachmentId=>(retries++,next({path:`/wp/v2/media/${attachmentId}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>retries<5?postProcess(attachmentId):(next({path:`/wp/v2/media/${attachmentId}?force=true`,method:"DELETE"}),Promise.reject()))));return next({...options,parse:!1}).catch((response=>{const attachmentId=response.headers.get("x-wp-upload-attachment-id");return response.status>=500&&response.status<600&&attachmentId?postProcess(attachmentId).catch((()=>!1!==options.parse?Promise.reject({code:"post_process",message:(0,build_module.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(response))):parseAndThrowError(response,options.parse)})).then((response=>parseResponseAndNormalizeError(response,options.parse)))},DEFAULT_HEADERS={Accept:"application/json, */*;q=0.1"},DEFAULT_OPTIONS={credentials:"include"},middlewares=[(options,next)=>("string"!=typeof options.url||hasQueryArg(options.url,"_locale")||(options.url=(0,add_query_args.f)(options.url,{_locale:"user"})),"string"!=typeof options.path||hasQueryArg(options.path,"_locale")||(options.path=(0,add_query_args.f)(options.path,{_locale:"user"})),next(options)),namespace_endpoint,(options,next)=>{const{method=DEFAULT_METHOD}=options;return OVERRIDE_METHODS.has(method.toUpperCase())&&(options={...options,headers:{...options.headers,"X-HTTP-Method-Override":method,"Content-Type":"application/json"},method:"POST"}),next(options)},fetch_all_middleware];const checkStatus=response=>{if(response.status>=200&&response.status<300)return response;throw response};let fetchHandler=nextOptions=>{const{url,path,data,parse=!0,...remainingOptions}=nextOptions;let{body,headers}=nextOptions;headers={...DEFAULT_HEADERS,...headers},data&&(body=JSON.stringify(data),headers["Content-Type"]="application/json");return window.fetch(url||path||window.location.href,{...DEFAULT_OPTIONS,...remainingOptions,body,headers}).then((value=>Promise.resolve(value).then(checkStatus).catch((response=>parseAndThrowError(response,parse))).then((response=>parseResponseAndNormalizeError(response,parse)))),(err=>{if(err&&"AbortError"===err.name)throw err;throw{code:"fetch_error",message:(0,build_module.__)("You are probably offline.")}}))};function apiFetch(options){return middlewares.reduceRight(((next,middleware)=>workingOptions=>middleware(workingOptions,next)),fetchHandler)(options).catch((error=>"rest_cookie_invalid_nonce"!==error.code?Promise.reject(error):window.fetch(apiFetch.nonceEndpoint).then(checkStatus).then((data=>data.text())).then((text=>(apiFetch.nonceMiddleware.nonce=text,apiFetch(options))))))}apiFetch.use=function registerMiddleware(middleware){middlewares.unshift(middleware)},apiFetch.setFetchHandler=function setFetchHandler(newFetchHandler){fetchHandler=newFetchHandler},apiFetch.createNonceMiddleware=nonce,apiFetch.createPreloadingMiddleware=preloading,apiFetch.createRootURLMiddleware=root_url,apiFetch.fetchAllMiddleware=fetch_all_middleware,apiFetch.mediaUploadMiddleware=media_upload;const api_fetch_build_module=apiFetch},"../../../node_modules/.pnpm/@wordpress+autop@3.2.3/node_modules/@wordpress/autop/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>autop,A:()=>removep});const htmlSplitRegex=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function replaceInHtmlTags(haystack,replacePairs){const textArr=function htmlSplit(input){const parts=[];let match,workingInput=input;for(;match=workingInput.match(htmlSplitRegex);){const index=match.index;parts.push(workingInput.slice(0,index)),parts.push(match[0]),workingInput=workingInput.slice(index+match[0].length)}return workingInput.length&&parts.push(workingInput),parts}(haystack);let changed=!1;const needles=Object.keys(replacePairs);for(let i=1;i1&&void 0!==arguments[1])||arguments[1];const preTags=[];if(""===text.trim())return"";if(-1!==(text+="\n").indexOf(""),lastText=textParts.pop();text="";for(let i=0;i";preTags.push([name,textPart.substr(start)+""]),text+=textPart.substr(0,start)+name}text+=lastText}const allBlocks="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(text=replaceInHtmlTags(text=(text=(text=(text=text.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+allBlocks+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==text.indexOf("")&&(text=(text=(text=text.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===text.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==text.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));const texts=(text=text.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return text="",texts.forEach((textPiece=>{text+="

"+textPiece.replace(/^\n*|\n*$/g,"")+"

\n"})),text=(text=(text=(text=(text=(text=(text=(text=text.replace(/

\s*<\/p>/g,"")).replace(/

([^<]+)<\/(div|address|form)>/g,"

$1

")).replace(new RegExp("

\\s*(]*>)\\s*

","g"),"$1")).replace(/

(/g,"$1")).replace(/

]*)>/gi,"

")).replace(/<\/blockquote><\/p>/g,"

")).replace(new RegExp("

\\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

","g"),"$1"),br&&(text=(text=(text=(text=text.replace(/<(script|style).*?<\/\\1>/g,(match=>match[0].replace(/\n/g,"")))).replace(/
|/g,"
")).replace(/(
)?\s*\n/g,((a,b)=>b?a:"
\n"))).replace(//g,"\n")),text=(text=(text=text.replace(new RegExp("(]*>)\\s*
","g"),"$1")).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

"),preTags.forEach((preTag=>{const[name,original]=preTag;text=text.replace(name,original)})),-1!==text.indexOf("\x3c!-- wpnl --\x3e")&&(text=text.replace(/\s?\s?/g,"\n")),text}function removep(html){const blocklist="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",blocklist1=blocklist+"|div|p",blocklist2=blocklist+"|pre",preserve=[];let preserveLinebreaks=!1,preserveBr=!1;return html?(-1===html.indexOf("]*>[\s\S]*?<\/\1>/g,(match=>(preserve.push(match),"")))),-1!==html.indexOf("]*>[\s\S]+?<\/pre>/g,(a=>(a=(a=a.replace(/
(\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")))),-1!==html.indexOf("[caption")&&(preserveBr=!0,html=html.replace(/\[caption[\s\S]+?\[\/caption\]/g,(a=>a.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")))),-1!==(html=(html=(html=(html=(html=(html=(html=(html=(html=(html=(html=(html=(html=(html=(html=html.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+blocklist1+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

/gi,"\n\n")).replace(/\s*

/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
\s*/gi,((_,space)=>space&&-1!==space.indexOf("\n")?"\n\n":"\n"))).replace(/\s*

\s*/g,"
\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+blocklist2+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==html.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==html.indexOf("/g,(a=>a.replace(/[\r\n]+/g,"")))),html=(html=(html=(html=html.replace(/<\/p#>/g,"

\n")).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),preserveLinebreaks&&(html=html.replace(//g,"\n")),preserveBr&&(html=html.replace(/]*)>/g,"")),preserve.length&&(html=html.replace(//g,(()=>preserve.shift()))),html):""}},"../../../node_modules/.pnpm/@wordpress+blob@3.2.2/node_modules/@wordpress/blob/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ZR:()=>createBlobURL,TR:()=>getBlobByURL,UQ:()=>getBlobTypeByURL,Vg:()=>revokeBlobURL,Gu:()=>isBlobURL});const{createObjectURL,revokeObjectURL}=window.URL,cache={};function createBlobURL(file){const url=createObjectURL(file);return cache[url]=file,url}function getBlobByURL(url){return cache[url]}function getBlobTypeByURL(url){var _getBlobByURL;return null===(_getBlobByURL=getBlobByURL(url))||void 0===_getBlobByURL?void 0:_getBlobByURL.type.split("/")[0]}function revokeBlobURL(url){cache[url]&&revokeObjectURL(url),delete cache[url]}function isBlobURL(url){return!(!url||!url.indexOf)&&0===url.indexOf("blob:")}},"../../../node_modules/.pnpm/@wordpress+block-editor@8.0.7_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/block-editor/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{aE:()=>AlignmentControl,RE:()=>AlignmentToolbar,Dh:()=>BlockAlignmentControl,nu:()=>BlockAlignmentToolbar,Q4:()=>BlockContextProvider,Zp:()=>block_controls,$H:()=>keyboard_shortcuts,B5:()=>provider,wD:()=>block_icon,N$:()=>block_inspector,WD:()=>BlockList,G3:()=>block_preview,u9:()=>BlockTools,_l:()=>BlockVerticalAlignmentControl,nZ:()=>BlockVerticalAlignmentToolbar,VZ:()=>color_palette,ro:()=>contrast_checker,gv:()=>inner_blocks,Af:()=>inspector_controls,om:()=>media_placeholder,mS:()=>media_replace_flow,R:()=>media_upload,VA:()=>media_upload_check,uy:()=>observe_typing,WQ:()=>panel_color_settings,f3:()=>plain_text,Ho:()=>rich_text,Wx:()=>RichTextShortcut,oe:()=>RichTextToolbarButton,wE:()=>url_input,_$:()=>url_popover,v3:()=>warning,o2:()=>writing_flow,At:()=>block_alignment_matrix_control,Hb:()=>BlockContentOverlay,pY:()=>block_full_height_alignment_control,b4:()=>block_pattern_setup,G6:()=>block_variation_picker,fG:()=>getBorderClassesAndStyles,Ti:()=>getColorClassesAndStyles,$R:()=>__experimentalGetGradientClass,qL:()=>__experimentalGetMatchingVariation,Ge:()=>getSpacingClassesAndStyles,JZ:()=>ImageEditingProvider,C9:()=>ImageEditor,lf:()=>ImageSizeControl,n_:()=>ImageURLInputUI,Ml:()=>link_control,T8:()=>list_view,nC:()=>panel_color_gradient_settings,rT:()=>UnitControl,P1:()=>useBorderProps,Yj:()=>useColorProps,ok:()=>__experimentalUseGradient,a$:()=>useNoRecursiveRenders,kL:()=>__unstableRichTextInputEvent,Gd:()=>getColorClassName,M9:()=>getColorObjectByAttributeValues,Gr:()=>getColorObjectByColorValue,rS:()=>getFontSizeClass,h:()=>store,Fu:()=>transform_styles,Wo:()=>useBlockProps,ni:()=>useCachedTruthy,fh:()=>useInnerBlocksProps,yu:()=>useSetting,$c:()=>withColors});var selectors_namespaceObject={};__webpack_require__.r(selectors_namespaceObject),__webpack_require__.d(selectors_namespaceObject,{__experimentalGetActiveBlockIdByBlockNames:()=>__experimentalGetActiveBlockIdByBlockNames,__experimentalGetAllowedBlocks:()=>__experimentalGetAllowedBlocks,__experimentalGetAllowedPatterns:()=>__experimentalGetAllowedPatterns,__experimentalGetBlockListSettingsForBlocks:()=>__experimentalGetBlockListSettingsForBlocks,__experimentalGetDirectInsertBlock:()=>__experimentalGetDirectInsertBlock,__experimentalGetLastBlockAttributeChanges:()=>__experimentalGetLastBlockAttributeChanges,__experimentalGetParsedPattern:()=>__experimentalGetParsedPattern,__experimentalGetPatternTransformItems:()=>__experimentalGetPatternTransformItems,__experimentalGetPatternsByBlockTypes:()=>__experimentalGetPatternsByBlockTypes,__experimentalGetReusableBlockTitle:()=>__experimentalGetReusableBlockTitle,__unstableGetBlockWithoutInnerBlocks:()=>__unstableGetBlockWithoutInnerBlocks,__unstableGetClientIdWithClientIdsTree:()=>__unstableGetClientIdWithClientIdsTree,__unstableGetClientIdsTree:()=>__unstableGetClientIdsTree,__unstableIsLastBlockChangeIgnored:()=>__unstableIsLastBlockChangeIgnored,areInnerBlocksControlled:()=>areInnerBlocksControlled,canInsertBlockType:()=>canInsertBlockType,canInsertBlocks:()=>canInsertBlocks,canMoveBlock:()=>canMoveBlock,canMoveBlocks:()=>canMoveBlocks,canRemoveBlock:()=>canRemoveBlock,canRemoveBlocks:()=>canRemoveBlocks,didAutomaticChange:()=>didAutomaticChange,getAdjacentBlockClientId:()=>getAdjacentBlockClientId,getBlock:()=>getBlock,getBlockAttributes:()=>getBlockAttributes,getBlockCount:()=>getBlockCount,getBlockHierarchyRootClientId:()=>getBlockHierarchyRootClientId,getBlockIndex:()=>getBlockIndex,getBlockInsertionPoint:()=>getBlockInsertionPoint,getBlockListSettings:()=>getBlockListSettings,getBlockMode:()=>getBlockMode,getBlockName:()=>getBlockName,getBlockOrder:()=>getBlockOrder,getBlockParents:()=>getBlockParents,getBlockParentsByBlockName:()=>getBlockParentsByBlockName,getBlockRootClientId:()=>getBlockRootClientId,getBlockSelectionEnd:()=>getBlockSelectionEnd,getBlockSelectionStart:()=>getBlockSelectionStart,getBlockTransformItems:()=>getBlockTransformItems,getBlocks:()=>getBlocks,getBlocksByClientId:()=>getBlocksByClientId,getClientIdsOfDescendants:()=>getClientIdsOfDescendants,getClientIdsWithDescendants:()=>getClientIdsWithDescendants,getDraggedBlockClientIds:()=>getDraggedBlockClientIds,getFirstMultiSelectedBlockClientId:()=>getFirstMultiSelectedBlockClientId,getGlobalBlockCount:()=>getGlobalBlockCount,getInserterItems:()=>getInserterItems,getLastMultiSelectedBlockClientId:()=>getLastMultiSelectedBlockClientId,getLowestCommonAncestorWithSelectedBlock:()=>getLowestCommonAncestorWithSelectedBlock,getMultiSelectedBlockClientIds:()=>getMultiSelectedBlockClientIds,getMultiSelectedBlocks:()=>getMultiSelectedBlocks,getMultiSelectedBlocksEndClientId:()=>getMultiSelectedBlocksEndClientId,getMultiSelectedBlocksStartClientId:()=>getMultiSelectedBlocksStartClientId,getNextBlockClientId:()=>getNextBlockClientId,getPreviousBlockClientId:()=>getPreviousBlockClientId,getSelectedBlock:()=>getSelectedBlock,getSelectedBlockClientId:()=>getSelectedBlockClientId,getSelectedBlockClientIds:()=>getSelectedBlockClientIds,getSelectedBlockCount:()=>getSelectedBlockCount,getSelectedBlocksInitialCaretPosition:()=>getSelectedBlocksInitialCaretPosition,getSelectionEnd:()=>getSelectionEnd,getSelectionStart:()=>getSelectionStart,getSettings:()=>getSettings,getTemplate:()=>getTemplate,getTemplateLock:()=>getTemplateLock,hasBlockMovingClientId:()=>selectors_hasBlockMovingClientId,hasInserterItems:()=>hasInserterItems,hasMultiSelection:()=>hasMultiSelection,hasSelectedBlock:()=>hasSelectedBlock,hasSelectedInnerBlock:()=>hasSelectedInnerBlock,isAncestorBeingDragged:()=>isAncestorBeingDragged,isAncestorMultiSelected:()=>isAncestorMultiSelected,isBlockBeingDragged:()=>isBlockBeingDragged,isBlockHighlighted:()=>isBlockHighlighted,isBlockInsertionPointVisible:()=>isBlockInsertionPointVisible,isBlockMultiSelected:()=>isBlockMultiSelected,isBlockSelected:()=>isBlockSelected,isBlockValid:()=>isBlockValid,isBlockWithinSelection:()=>isBlockWithinSelection,isCaretWithinFormattedText:()=>selectors_isCaretWithinFormattedText,isDraggingBlocks:()=>isDraggingBlocks,isFirstMultiSelectedBlock:()=>isFirstMultiSelectedBlock,isLastBlockChangePersistent:()=>isLastBlockChangePersistent,isMultiSelecting:()=>selectors_isMultiSelecting,isNavigationMode:()=>selectors_isNavigationMode,isSelectionEnabled:()=>selectors_isSelectionEnabled,isTyping:()=>selectors_isTyping,isValidTemplate:()=>isValidTemplate,wasBlockJustInserted:()=>wasBlockJustInserted});var actions_namespaceObject={};__webpack_require__.r(actions_namespaceObject),__webpack_require__.d(actions_namespaceObject,{__unstableMarkAutomaticChange:()=>__unstableMarkAutomaticChange,__unstableMarkLastChangeAsPersistent:()=>__unstableMarkLastChangeAsPersistent,__unstableMarkNextChangeAsNotPersistent:()=>__unstableMarkNextChangeAsNotPersistent,__unstableSaveReusableBlock:()=>__unstableSaveReusableBlock,clearSelectedBlock:()=>clearSelectedBlock,duplicateBlocks:()=>duplicateBlocks,enterFormattedText:()=>enterFormattedText,exitFormattedText:()=>exitFormattedText,flashBlock:()=>flashBlock,hideInsertionPoint:()=>hideInsertionPoint,insertAfterBlock:()=>insertAfterBlock,insertBeforeBlock:()=>insertBeforeBlock,insertBlock:()=>insertBlock,insertBlocks:()=>insertBlocks,insertDefaultBlock:()=>insertDefaultBlock,mergeBlocks:()=>mergeBlocks,moveBlockToPosition:()=>moveBlockToPosition,moveBlocksDown:()=>moveBlocksDown,moveBlocksToPosition:()=>moveBlocksToPosition,moveBlocksUp:()=>moveBlocksUp,multiSelect:()=>multiSelect,receiveBlocks:()=>receiveBlocks,removeBlock:()=>removeBlock,removeBlocks:()=>removeBlocks,replaceBlock:()=>replaceBlock,replaceBlocks:()=>replaceBlocks,replaceInnerBlocks:()=>replaceInnerBlocks,resetBlocks:()=>resetBlocks,resetSelection:()=>resetSelection,selectBlock:()=>selectBlock,selectNextBlock:()=>selectNextBlock,selectPreviousBlock:()=>selectPreviousBlock,selectionChange:()=>selectionChange,setBlockMovingClientId:()=>setBlockMovingClientId,setHasControlledInnerBlocks:()=>setHasControlledInnerBlocks,setNavigationMode:()=>setNavigationMode,setTemplateValidity:()=>setTemplateValidity,showInsertionPoint:()=>showInsertionPoint,startDraggingBlocks:()=>startDraggingBlocks,startMultiSelect:()=>startMultiSelect,startTyping:()=>startTyping,stopDraggingBlocks:()=>stopDraggingBlocks,stopMultiSelect:()=>stopMultiSelect,stopTyping:()=>stopTyping,synchronizeTemplate:()=>synchronizeTemplate,toggleBlockHighlight:()=>toggleBlockHighlight,toggleBlockMode:()=>toggleBlockMode,toggleSelection:()=>toggleSelection,updateBlock:()=>updateBlock,updateBlockAttributes:()=>updateBlockAttributes,updateBlockListSettings:()=>updateBlockListSettings,updateSettings:()=>updateSettings,validateBlocksToTemplate:()=>validateBlocksToTemplate});var store_actions_namespaceObject={};__webpack_require__.r(store_actions_namespaceObject),__webpack_require__.d(store_actions_namespaceObject,{registerShortcut:()=>registerShortcut,unregisterShortcut:()=>unregisterShortcut});var store_selectors_namespaceObject={};__webpack_require__.r(store_selectors_namespaceObject),__webpack_require__.d(store_selectors_namespaceObject,{getAllShortcutKeyCombinations:()=>getAllShortcutKeyCombinations,getAllShortcutRawKeyCombinations:()=>getAllShortcutRawKeyCombinations,getCategoryShortcuts:()=>getCategoryShortcuts,getShortcutAliases:()=>getShortcutAliases,getShortcutDescription:()=>getShortcutDescription,getShortcutKeyCombination:()=>getShortcutKeyCombination,getShortcutRepresentation:()=>getShortcutRepresentation});var tooltip_styles_namespaceObject={};__webpack_require__.r(tooltip_styles_namespaceObject),__webpack_require__.d(tooltip_styles_namespaceObject,{TooltipContent:()=>TooltipContent,TooltipPopoverView:()=>TooltipPopoverView,TooltipShortcut:()=>TooltipShortcut,noOutline:()=>noOutline});var build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+blocks@11.1.4_react@17.0.2/node_modules/@wordpress/blocks/build-module/index.js"),hooks_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+hooks@3.2.2/node_modules/@wordpress/hooks/build-module/index.js");(0,hooks_build_module.KJ)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function migrateLightBlockWrapper(settings){const{apiVersion=1}=settings;return apiVersion<2&&(0,build_module.zb)(settings,"lightBlockWrapper",!1)&&(settings.apiVersion=2),settings}));var esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),classnames=__webpack_require__("../../../node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),lodash=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),create_higher_order_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"),style_provider=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/style-provider/index.js"),toolbar_context=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-context/index.js"),toolbar_group=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-group/index.js"),use_select=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/use-select/index.js"),slot_fill=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/slot-fill/index.js");const block_controls_groups={default:(0,slot_fill.up)("BlockControls"),block:(0,slot_fill.up)("BlockControlsBlock"),inline:(0,slot_fill.up)("BlockFormatControls"),other:(0,slot_fill.up)("BlockControlsOther"),parent:(0,slot_fill.up)("BlockControlsParent")};var data_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/index.js"),redux_store=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/redux-store/index.js"),turbo_combine_reducers=__webpack_require__("../../../node_modules/.pnpm/turbo-combine-reducers@1.0.2/node_modules/turbo-combine-reducers/index.js"),turbo_combine_reducers_default=__webpack_require__.n(turbo_combine_reducers),i18n_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+i18n@4.2.4/node_modules/@wordpress/i18n/build-module/index.js");const PREFERENCES_DEFAULTS={insertUsage:{}},SETTINGS_DEFAULTS={alignWide:!1,supportsLayout:!0,colors:[{name:(0,i18n_build_module.__)("Black"),slug:"black",color:"#000000"},{name:(0,i18n_build_module.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,i18n_build_module.__)("White"),slug:"white",color:"#ffffff"},{name:(0,i18n_build_module.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,i18n_build_module.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,i18n_build_module.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,i18n_build_module.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,i18n_build_module.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,i18n_build_module.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,i18n_build_module.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,i18n_build_module.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,i18n_build_module.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,i18n_build_module._x)("Small","font size name"),size:13,slug:"small"},{name:(0,i18n_build_module._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,i18n_build_module._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,i18n_build_module._x)("Large","font size name"),size:36,slug:"large"},{name:(0,i18n_build_module._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,i18n_build_module.__)("Thumbnail")},{slug:"medium",name:(0,i18n_build_module.__)("Medium")},{slug:"large",name:(0,i18n_build_module.__)("Large")},{slug:"full",name:(0,i18n_build_module.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__unstableGalleryWithImageBlocks:!1,gradients:[{name:(0,i18n_build_module.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,i18n_build_module.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,i18n_build_module.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,i18n_build_module.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,i18n_build_module.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,i18n_build_module.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,i18n_build_module.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,i18n_build_module.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,i18n_build_module.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,i18n_build_module.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,i18n_build_module.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,i18n_build_module.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function insertAt(array,elements,index){return[...array.slice(0,index),...(0,lodash.castArray)(elements),...array.slice(index)]}function moveTo(array,from,to){let count=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const withoutMovedElements=[...array];return withoutMovedElements.splice(from,count),insertAt(withoutMovedElements,array.slice(from,from+count),to)}function mapBlockOrder(blocks){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const result={[rootClientId]:[]};return blocks.forEach((block=>{const{clientId,innerBlocks}=block;result[rootClientId].push(clientId),Object.assign(result,mapBlockOrder(innerBlocks,clientId))})),result}function mapBlockParents(blocks){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return blocks.reduce(((result,block)=>Object.assign(result,{[block.clientId]:rootClientId},mapBlockParents(block.innerBlocks,block.clientId))),{})}function flattenBlocks(blocks){let transform=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lodash.identity;const result={},stack=[...blocks];for(;stack.length;){const{innerBlocks,...block}=stack.shift();stack.push(...innerBlocks),result[block.clientId]=transform(block)}return result}function getFlattenedBlocksWithoutAttributes(blocks){return flattenBlocks(blocks,(block=>(0,lodash.omit)(block,"attributes")))}function getFlattenedBlockAttributes(blocks){return flattenBlocks(blocks,(block=>block.attributes))}function getNestedBlockClientIds(blocksOrder){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",controlledInnerBlocks=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,lodash.reduce)(blocksOrder[rootClientId],((result,clientId)=>controlledInnerBlocks[clientId]?result:[...result,clientId,...getNestedBlockClientIds(blocksOrder,clientId)]),[])}function isUpdatingSameBlockAttribute(action,lastAction){return"UPDATE_BLOCK_ATTRIBUTES"===action.type&&void 0!==lastAction&&"UPDATE_BLOCK_ATTRIBUTES"===lastAction.type&&(0,lodash.isEqual)(action.clientIds,lastAction.clientIds)&&function hasSameKeys(a,b){return(0,lodash.isEqual)((0,lodash.keys)(a),(0,lodash.keys)(b))}(action.attributes,lastAction.attributes)}function buildBlockTree(state,blocks){const result={},stack=[...blocks],flattenedBlocks=[...blocks];for(;stack.length;){const block=stack.shift();stack.push(...block.innerBlocks),flattenedBlocks.push(...block.innerBlocks)}for(const block of flattenedBlocks)result[block.clientId]={};for(const block of flattenedBlocks)result[block.clientId]=Object.assign(result[block.clientId],{...state.byClientId[block.clientId],attributes:state.attributes[block.clientId],innerBlocks:block.innerBlocks.map((subBlock=>result[subBlock.clientId]))});return result}function updateParentInnerBlocksInTree(state,tree,updatedClientIds){let updateChildrenOfUpdatedClientIds=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const uncontrolledParents=new Set([]),controlledParents=new Set;for(const clientId of updatedClientIds){let current=updateChildrenOfUpdatedClientIds?clientId:state.parents[clientId];do{if(state.controlledInnerBlocks[current]){controlledParents.add(current);break}uncontrolledParents.add(current),current=state.parents[current]}while(void 0!==current)}for(const clientId of uncontrolledParents)tree[clientId]={...tree[clientId]};for(const clientId of uncontrolledParents)tree[clientId].innerBlocks=(state.order[clientId]||[]).map((subClientId=>tree[subClientId]));for(const clientId of controlledParents)tree["controlled||"+clientId]={innerBlocks:(state.order[clientId]||[]).map((subClientId=>tree[subClientId]))};return tree}const blocks=(0,lodash.flow)(turbo_combine_reducers_default(),(reducer=>(state,action)=>{if(state&&"SAVE_REUSABLE_BLOCK_SUCCESS"===action.type){const{id,updatedId}=action;if(id===updatedId)return state;(state={...state}).attributes=(0,lodash.mapValues)(state.attributes,((attributes,clientId)=>{const{name}=state.byClientId[clientId];return"core/block"===name&&attributes.ref===id?{...attributes,ref:updatedId}:attributes}))}return reducer(state,action)}),(reducer=>function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;const newState=reducer(state,action);if(newState===state)return state;switch(newState.tree=state.tree?state.tree:{},action.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const subTree=buildBlockTree(newState,action.blocks);newState.tree=updateParentInnerBlocksInTree(newState,{...newState.tree,...subTree},action.rootClientId?[action.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":newState.tree=updateParentInnerBlocksInTree(newState,{...newState.tree,[action.clientId]:{...newState.tree[action.clientId],...newState.byClientId[action.clientId],attributes:newState.attributes[action.clientId]}},[action.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const newSubTree=action.clientIds.reduce(((result,clientId)=>(result[clientId]={...newState.tree[clientId],attributes:newState.attributes[clientId]},result)),{});newState.tree=updateParentInnerBlocksInTree(newState,{...newState.tree,...newSubTree},action.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const subTree=buildBlockTree(newState,action.blocks);newState.tree=updateParentInnerBlocksInTree(newState,{...(0,lodash.omit)(newState.tree,action.replacedClientIds.concat(action.replacedClientIds.map((clientId=>"controlled||"+clientId)))),...subTree},action.blocks.map((b=>b.clientId)),!1);const parentsOfRemovedBlocks=[];for(const clientId of action.clientIds)void 0===state.parents[clientId]||""!==state.parents[clientId]&&!newState.byClientId[state.parents[clientId]]||parentsOfRemovedBlocks.push(state.parents[clientId]);newState.tree=updateParentInnerBlocksInTree(newState,newState.tree,parentsOfRemovedBlocks,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const parentsOfRemovedBlocks=[];for(const clientId of action.clientIds)void 0===state.parents[clientId]||""!==state.parents[clientId]&&!newState.byClientId[state.parents[clientId]]||parentsOfRemovedBlocks.push(state.parents[clientId]);newState.tree=updateParentInnerBlocksInTree(newState,(0,lodash.omit)(newState.tree,action.removedClientIds.concat(action.removedClientIds.map((clientId=>"controlled||"+clientId)))),parentsOfRemovedBlocks,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const updatedBlockUids=[];action.fromRootClientId&&updatedBlockUids.push(action.fromRootClientId),action.toRootClientId&&updatedBlockUids.push(action.toRootClientId),action.fromRootClientId&&action.fromRootClientId||updatedBlockUids.push(""),newState.tree=updateParentInnerBlocksInTree(newState,newState.tree,updatedBlockUids,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const updatedBlockUids=[action.rootClientId?action.rootClientId:""];newState.tree=updateParentInnerBlocksInTree(newState,newState.tree,updatedBlockUids,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const updatedBlockUids=(0,lodash.keys)((0,lodash.omitBy)(newState.attributes,((attributes,clientId)=>"core/block"!==newState.byClientId[clientId].name||attributes.ref!==action.updatedId)));newState.tree=updateParentInnerBlocksInTree(newState,{...newState.tree,...updatedBlockUids.reduce(((result,clientId)=>(result[clientId]={...newState.byClientId[clientId],attributes:newState.attributes[clientId],innerBlocks:newState.tree[clientId].innerBlocks},result)),{})},updatedBlockUids,!1)}}return newState}),(reducer=>(state,action)=>{const getAllChildren=clientIds=>{let result=clientIds;for(let i=0;i(state,action)=>{if("REPLACE_INNER_BLOCKS"!==action.type)return reducer(state,action);const nestedControllers={};if(Object.keys(state.controlledInnerBlocks).length){const stack=[...action.blocks];for(;stack.length;){const{innerBlocks,...block}=stack.shift();stack.push(...innerBlocks),state.controlledInnerBlocks[block.clientId]&&(nestedControllers[block.clientId]=!0)}}let stateAfterBlocksRemoval=state;state.order[action.rootClientId]&&(stateAfterBlocksRemoval=reducer(stateAfterBlocksRemoval,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:nestedControllers,clientIds:state.order[action.rootClientId]}));let stateAfterInsert=stateAfterBlocksRemoval;return action.blocks.length&&(stateAfterInsert=reducer(stateAfterInsert,{...action,type:"INSERT_BLOCKS",index:0}),stateAfterInsert.order={...stateAfterInsert.order,...(0,lodash.reduce)(nestedControllers,((result,value,key)=>(state.order[key]&&(result[key]=state.order[key]),result)),{})}),stateAfterInsert}),(reducer=>(state,action)=>{if("RESET_BLOCKS"===action.type){var _state$order,_state$controlledInne,_state$controlledInne2;const visibleClientIds=getNestedBlockClientIds(null!==(_state$order=null==state?void 0:state.order)&&void 0!==_state$order?_state$order:{},"",null!==(_state$controlledInne=null==state?void 0:state.controlledInnerBlocks)&&void 0!==_state$controlledInne?_state$controlledInne:{}),controlledInnerBlocks=Object.keys((0,lodash.pickBy)(null!==(_state$controlledInne2=null==state?void 0:state.controlledInnerBlocks)&&void 0!==_state$controlledInne2?_state$controlledInne2:{})),newState={...state,byClientId:{...(0,lodash.omit)(null==state?void 0:state.byClientId,visibleClientIds),...getFlattenedBlocksWithoutAttributes(action.blocks)},attributes:{...(0,lodash.omit)(null==state?void 0:state.attributes,visibleClientIds),...getFlattenedBlockAttributes(action.blocks)},order:{...(0,lodash.omit)(null==state?void 0:state.order,visibleClientIds),...(0,lodash.omit)(mapBlockOrder(action.blocks),controlledInnerBlocks)},parents:{...(0,lodash.omit)(null==state?void 0:state.parents,visibleClientIds),...mapBlockParents(action.blocks)},controlledInnerBlocks:(null==state?void 0:state.controlledInnerBlocks)||{}},subTree=buildBlockTree(newState,action.blocks);return newState.tree={...(0,lodash.omit)(null==state?void 0:state.tree,visibleClientIds),...subTree,"":{innerBlocks:action.blocks.map((subBlock=>subTree[subBlock.clientId]))}},newState}return reducer(state,action)}),(function withPersistentBlockChange(reducer){let lastAction,markNextChangeAsNotPersistent=!1;return(state,action)=>{let nextState=reducer(state,action);const isExplicitPersistentChange="MARK_LAST_CHANGE_AS_PERSISTENT"===action.type||markNextChangeAsNotPersistent;if(state===nextState&&!isExplicitPersistentChange){var _state$isPersistentCh;markNextChangeAsNotPersistent="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===action.type;const nextIsPersistentChange=null===(_state$isPersistentCh=null==state?void 0:state.isPersistentChange)||void 0===_state$isPersistentCh||_state$isPersistentCh;return state.isPersistentChange===nextIsPersistentChange?state:{...nextState,isPersistentChange:nextIsPersistentChange}}return nextState={...nextState,isPersistentChange:isExplicitPersistentChange?!markNextChangeAsNotPersistent:!isUpdatingSameBlockAttribute(action,lastAction)},lastAction=action,markNextChangeAsNotPersistent="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===action.type,nextState}}),(function withIgnoredBlockChange(reducer){const IGNORED_ACTION_TYPES=new Set(["RECEIVE_BLOCKS"]);return(state,action)=>{const nextState=reducer(state,action);return nextState!==state&&(nextState.isIgnoredChange=IGNORED_ACTION_TYPES.has(action.type)),nextState}}))({byClientId(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...state,...getFlattenedBlocksWithoutAttributes(action.blocks)};case"UPDATE_BLOCK":if(!state[action.clientId])return state;const changes=(0,lodash.omit)(action.updates,"attributes");return(0,lodash.isEmpty)(changes)?state:{...state,[action.clientId]:{...state[action.clientId],...changes}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return action.blocks?{...(0,lodash.omit)(state,action.replacedClientIds),...getFlattenedBlocksWithoutAttributes(action.blocks)}:state;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,lodash.omit)(state,action.removedClientIds)}return state},attributes(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...state,...getFlattenedBlockAttributes(action.blocks)};case"UPDATE_BLOCK":return state[action.clientId]&&action.updates.attributes?{...state,[action.clientId]:{...state[action.clientId],...action.updates.attributes}}:state;case"UPDATE_BLOCK_ATTRIBUTES":{if(action.clientIds.every((id=>!state[id])))return state;const next=action.clientIds.reduce(((accumulator,id)=>({...accumulator,[id]:(0,lodash.reduce)(action.uniqueByBlock?action.attributes[id]:action.attributes,((result,value,key)=>(value!==result[key]&&((result=function getMutateSafeObject(original,working){return original===working?{...original}:working}(state[id],result))[key]=value),result)),state[id])})),{});return action.clientIds.every((id=>next[id]===state[id]))?state:{...state,...next}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return action.blocks?{...(0,lodash.omit)(state,action.replacedClientIds),...getFlattenedBlockAttributes(action.blocks)}:state;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,lodash.omit)(state,action.removedClientIds)}return state},order(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_BLOCKS":{const blockOrder=mapBlockOrder(action.blocks);return{...state,...(0,lodash.omit)(blockOrder,""),"":((null==state?void 0:state[""])||[]).concat(blockOrder[""])}}case"INSERT_BLOCKS":{const{rootClientId=""}=action,subState=state[rootClientId]||[],mappedBlocks=mapBlockOrder(action.blocks,rootClientId),{index=subState.length}=action;return{...state,...mappedBlocks,[rootClientId]:insertAt(subState,mappedBlocks[rootClientId],index)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId="",toRootClientId="",clientIds}=action,{index=state[toRootClientId].length}=action;if(fromRootClientId===toRootClientId){const fromIndex=state[toRootClientId].indexOf(clientIds[0]);return{...state,[toRootClientId]:moveTo(state[toRootClientId],fromIndex,index,clientIds.length)}}return{...state,[fromRootClientId]:(0,lodash.without)(state[fromRootClientId],...clientIds),[toRootClientId]:insertAt(state[toRootClientId],clientIds,index)}}case"MOVE_BLOCKS_UP":{const{clientIds,rootClientId=""}=action,firstClientId=(0,lodash.first)(clientIds),subState=state[rootClientId];if(!subState.length||firstClientId===(0,lodash.first)(subState))return state;const firstIndex=subState.indexOf(firstClientId);return{...state,[rootClientId]:moveTo(subState,firstIndex,firstIndex-1,clientIds.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds,rootClientId=""}=action,firstClientId=(0,lodash.first)(clientIds),lastClientId=(0,lodash.last)(clientIds),subState=state[rootClientId];if(!subState.length||lastClientId===(0,lodash.last)(subState))return state;const firstIndex=subState.indexOf(firstClientId);return{...state,[rootClientId]:moveTo(subState,firstIndex,firstIndex+1,clientIds.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds}=action;if(!action.blocks)return state;const mappedBlocks=mapBlockOrder(action.blocks);return(0,lodash.flow)([nextState=>(0,lodash.omit)(nextState,action.replacedClientIds),nextState=>({...nextState,...(0,lodash.omit)(mappedBlocks,"")}),nextState=>(0,lodash.mapValues)(nextState,(subState=>(0,lodash.reduce)(subState,((result,clientId)=>clientId===clientIds[0]?[...result,...mappedBlocks[""]]:(-1===clientIds.indexOf(clientId)&&result.push(clientId),result)),[])))])(state)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,lodash.flow)([nextState=>(0,lodash.omit)(nextState,action.removedClientIds),nextState=>(0,lodash.mapValues)(nextState,(subState=>(0,lodash.without)(subState,...action.removedClientIds)))])(state)}return state},parents(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_BLOCKS":return{...state,...mapBlockParents(action.blocks)};case"INSERT_BLOCKS":return{...state,...mapBlockParents(action.blocks,action.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...state,...action.clientIds.reduce(((accumulator,id)=>(accumulator[id]=action.toRootClientId||"",accumulator)),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...(0,lodash.omit)(state,action.replacedClientIds),...mapBlockParents(action.blocks,state[action.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,lodash.omit)(state,action.removedClientIds)}return state},controlledInnerBlocks(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type,clientId,hasControlledInnerBlocks}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===type?{...state,[clientId]:hasControlledInnerBlocks}:state}});function selectionHelper(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"CLEAR_SELECTED_BLOCK":return state.clientId?{}:state;case"SELECT_BLOCK":return action.clientId===state.clientId?state:{clientId:action.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return action.updateSelection&&action.blocks.length?{clientId:action.blocks[0].clientId}:state;case"REMOVE_BLOCKS":return action.clientIds&&action.clientIds.length&&-1!==action.clientIds.indexOf(state.clientId)?{}:state;case"REPLACE_BLOCKS":{if(-1===action.clientIds.indexOf(state.clientId))return state;const blockToSelect=action.blocks[action.indexToSelect]||action.blocks[action.blocks.length-1];return blockToSelect?blockToSelect.clientId===state.clientId?state:{clientId:blockToSelect.clientId}:{}}}return state}const reducer=turbo_combine_reducers_default()({blocks,isTyping:function isTyping(){let state=arguments.length>0&&void 0!==arguments[0]&&arguments[0],action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return state},draggedBlocks:function draggedBlocks(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"START_DRAGGING_BLOCKS":return action.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return state},isCaretWithinFormattedText:function isCaretWithinFormattedText(){let state=arguments.length>0&&void 0!==arguments[0]&&arguments[0],action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return state},selection:function selection(){var _state$selectionStart,_state$selectionEnd;let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:action.clientId,attributeKey:action.attributeKey,offset:action.startOffset},selectionEnd:{clientId:action.clientId,attributeKey:action.attributeKey,offset:action.endOffset}};case"RESET_SELECTION":const{selectionStart,selectionEnd}=action;return{selectionStart,selectionEnd};case"MULTI_SELECT":const{start,end}=action;return{selectionStart:{clientId:start},selectionEnd:{clientId:end}};case"RESET_BLOCKS":const startClientId=null==state||null===(_state$selectionStart=state.selectionStart)||void 0===_state$selectionStart?void 0:_state$selectionStart.clientId,endClientId=null==state||null===(_state$selectionEnd=state.selectionEnd)||void 0===_state$selectionEnd?void 0:_state$selectionEnd.clientId;if(!startClientId&&!endClientId)return state;if(!action.blocks.some((block=>block.clientId===startClientId)))return{selectionStart:{},selectionEnd:{}};if(!action.blocks.some((block=>block.clientId===endClientId)))return{...state,selectionEnd:state.selectionStart}}return{selectionStart:selectionHelper(state.selectionStart,action),selectionEnd:selectionHelper(state.selectionEnd,action)}},isMultiSelecting:function isMultiSelecting(){let state=arguments.length>0&&void 0!==arguments[0]&&arguments[0],action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return state},isSelectionEnabled:function isSelectionEnabled(){let state=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],action=arguments.length>1?arguments[1]:void 0;return"TOGGLE_SELECTION"===action.type?action.isSelectionEnabled:state},initialPosition:function initialPosition(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,action=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===action.type&&void 0!==action.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(action.type)?action.initialPosition:state},blocksMode:function blocksMode(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===action.type){const{clientId}=action;return{...state,[clientId]:state[clientId]&&"html"===state[clientId]?"visual":"html"}}return state},blockListSettings:function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return(0,lodash.omit)(state,action.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId}=action;return action.settings?(0,lodash.isEqual)(state[clientId],action.settings)?state:{...state,[clientId]:action.settings}:state.hasOwnProperty(clientId)?(0,lodash.omit)(state,clientId):state}}return state},insertionPoint:function insertionPoint(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"SHOW_INSERTION_POINT":const{rootClientId,index,__unstableWithInserter}=action;return{rootClientId,index,__unstableWithInserter};case"HIDE_INSERTION_POINT":return null}return state},template:function template(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},action=arguments.length>1?arguments[1]:void 0;return"SET_TEMPLATE_VALIDITY"===action.type?{...state,isValid:action.isValid}:state},settings:function settings(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:SETTINGS_DEFAULTS,action=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===action.type?{...state,...action.settings}:state},preferences:function preferences(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PREFERENCES_DEFAULTS,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return action.blocks.reduce(((prevState,block)=>{const{attributes,name:blockName}=block,match=(0,data_build_module.Ys)(build_module.h).getActiveBlockVariation(blockName,attributes);let id=null!=match&&match.name?`${blockName}/${match.name}`:blockName;const insert={name:id};return"core/block"===blockName&&(insert.ref=attributes.ref,id+="/"+attributes.ref),{...prevState,insertUsage:{...prevState.insertUsage,[id]:{time:action.time,count:prevState.insertUsage[id]?prevState.insertUsage[id].count+1:1,insert}}}}),state)}return state},lastBlockAttributesChange:function lastBlockAttributesChange(state,action){switch(action.type){case"UPDATE_BLOCK":if(!action.updates.attributes)break;return{[action.clientId]:action.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return action.clientIds.reduce(((accumulator,id)=>({...accumulator,[id]:action.uniqueByBlock?action.attributes[id]:action.attributes})),{})}return null},isNavigationMode:function isNavigationMode(){let state=arguments.length>0&&void 0!==arguments[0]&&arguments[0],action=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==action.type&&("SET_NAVIGATION_MODE"===action.type?action.isNavigationMode:state)},hasBlockMovingClientId:function hasBlockMovingClientId(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,action=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===action.type?action.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===action.type?null:state},automaticChangeStatus:function automaticChangeStatus(state,action){switch(action.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===state?"final":void 0;case"SELECTION_CHANGE":return"final"!==state?state:void 0;case"START_TYPING":case"STOP_TYPING":return state}},highlightedBlock:function highlightedBlock(state,action){switch(action.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId,isHighlighted}=action;return isHighlighted?clientId:state===clientId?null:state;case"SELECT_BLOCK":if(action.clientId!==state)return null}return state},lastBlockInserted:function lastBlockInserted(){var _action$meta;let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"INSERT_BLOCKS":if(!action.blocks.length)return state;return{clientId:action.blocks[0].clientId,source:null===(_action$meta=action.meta)||void 0===_action$meta?void 0:_action$meta.source};case"RESET_BLOCKS":return{}}return state}});var rememo=__webpack_require__("../../../node_modules/.pnpm/rememo@3.0.0/node_modules/rememo/es/rememo.js"),platform=__webpack_require__("../../../node_modules/.pnpm/@wordpress+element@4.0.4/node_modules/@wordpress/element/build-module/platform.js"),symbol=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/symbol.js");const EMPTY_ARRAY=[];function getBlockName(state,clientId){const block=state.blocks.byClientId[clientId];if("web"!==platform.Z.OS&&"core/social-link"===(null==block?void 0:block.name)){const attributes=state.blocks.attributes[clientId],{service}=attributes;return service?`core/social-link-${service}`:"core/social-link"}return block?block.name:null}function isBlockValid(state,clientId){const block=state.blocks.byClientId[clientId];return!!block&&block.isValid}function getBlockAttributes(state,clientId){return state.blocks.byClientId[clientId]?state.blocks.attributes[clientId]:null}function getBlock(state,clientId){return state.blocks.byClientId[clientId]?state.blocks.tree[clientId]:null}const __unstableGetBlockWithoutInnerBlocks=(0,rememo.Z)(((state,clientId)=>{const block=state.blocks.byClientId[clientId];return block?{...block,attributes:getBlockAttributes(state,clientId)}:null}),((state,clientId)=>[state.blocks.byClientId[clientId],state.blocks.attributes[clientId]]));function getBlocks(state,rootClientId){var _state$blocks$tree$tr;const treeKey=rootClientId&&areInnerBlocksControlled(state,rootClientId)?"controlled||"+rootClientId:rootClientId||"";return(null===(_state$blocks$tree$tr=state.blocks.tree[treeKey])||void 0===_state$blocks$tree$tr?void 0:_state$blocks$tree$tr.innerBlocks)||EMPTY_ARRAY}const __unstableGetClientIdWithClientIdsTree=(0,rememo.Z)(((state,clientId)=>({clientId,innerBlocks:__unstableGetClientIdsTree(state,clientId)})),(state=>[state.blocks.order])),__unstableGetClientIdsTree=(0,rememo.Z)((function(state){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,lodash.map)(getBlockOrder(state,rootClientId),(clientId=>__unstableGetClientIdWithClientIdsTree(state,clientId)))}),(state=>[state.blocks.order])),getClientIdsOfDescendants=(state,clientIds)=>(0,lodash.flatMap)(clientIds,(clientId=>{const descendants=getBlockOrder(state,clientId);return[...descendants,...getClientIdsOfDescendants(state,descendants)]})),getClientIdsWithDescendants=(0,rememo.Z)((state=>{const topLevelIds=getBlockOrder(state);return[...topLevelIds,...getClientIdsOfDescendants(state,topLevelIds)]}),(state=>[state.blocks.order])),getGlobalBlockCount=(0,rememo.Z)(((state,blockName)=>{const clientIds=getClientIdsWithDescendants(state);return blockName?(0,lodash.reduce)(clientIds,((accumulator,clientId)=>state.blocks.byClientId[clientId].name===blockName?accumulator+1:accumulator),0):clientIds.length}),(state=>[state.blocks.order,state.blocks.byClientId])),getBlocksByClientId=(0,rememo.Z)(((state,clientIds)=>(0,lodash.map)((0,lodash.castArray)(clientIds),(clientId=>getBlock(state,clientId)))),((state,clientIds)=>(0,lodash.map)((0,lodash.castArray)(clientIds),(clientId=>state.blocks.tree[clientId]))));function getBlockCount(state,rootClientId){return getBlockOrder(state,rootClientId).length}function getSelectionStart(state){return state.selection.selectionStart}function getSelectionEnd(state){return state.selection.selectionEnd}function getBlockSelectionStart(state){return state.selection.selectionStart.clientId}function getBlockSelectionEnd(state){return state.selection.selectionEnd.clientId}function getSelectedBlockCount(state){const multiSelectedBlockCount=getMultiSelectedBlockClientIds(state).length;return multiSelectedBlockCount||(state.selection.selectionStart.clientId?1:0)}function hasSelectedBlock(state){const{selectionStart,selectionEnd}=state.selection;return!!selectionStart.clientId&&selectionStart.clientId===selectionEnd.clientId}function getSelectedBlockClientId(state){const{selectionStart,selectionEnd}=state.selection,{clientId}=selectionStart;return clientId&&clientId===selectionEnd.clientId?clientId:null}function getSelectedBlock(state){const clientId=getSelectedBlockClientId(state);return clientId?getBlock(state,clientId):null}function getBlockRootClientId(state,clientId){return void 0!==state.blocks.parents[clientId]?state.blocks.parents[clientId]:null}const getBlockParents=(0,rememo.Z)((function(state,clientId){let ascending=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const parents=[];let current=clientId;for(;state.blocks.parents[current];)current=state.blocks.parents[current],parents.push(current);return ascending?parents:parents.reverse()}),(state=>[state.blocks.parents])),getBlockParentsByBlockName=(0,rememo.Z)((function(state,clientId,blockName){let ascending=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const parents=getBlockParents(state,clientId,ascending);return(0,lodash.map)((0,lodash.filter)((0,lodash.map)(parents,(id=>({id,name:getBlockName(state,id)}))),(_ref=>{let{name}=_ref;return Array.isArray(blockName)?blockName.includes(name):name===blockName})),(_ref2=>{let{id}=_ref2;return id}))}),(state=>[state.blocks.parents]));function getBlockHierarchyRootClientId(state,clientId){let parent,current=clientId;do{parent=current,current=state.blocks.parents[current]}while(current);return parent}function getLowestCommonAncestorWithSelectedBlock(state,clientId){const selectedId=getSelectedBlockClientId(state),clientParents=[...getBlockParents(state,clientId),clientId],selectedParents=[...getBlockParents(state,selectedId),selectedId];let lowestCommonAncestor;const maxDepth=Math.min(clientParents.length,selectedParents.length);for(let index=0;index2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===startClientId&&(startClientId=getSelectedBlockClientId(state)),void 0===startClientId&&(startClientId=modifier<0?getFirstMultiSelectedBlockClientId(state):getLastMultiSelectedBlockClientId(state)),!startClientId)return null;const rootClientId=getBlockRootClientId(state,startClientId);if(null===rootClientId)return null;const{order}=state.blocks,orderSet=order[rootClientId],index=orderSet.indexOf(startClientId),nextIndex=index+1*modifier;return nextIndex<0||nextIndex===orderSet.length?null:orderSet[nextIndex]}function getPreviousBlockClientId(state,startClientId){return getAdjacentBlockClientId(state,startClientId,-1)}function getNextBlockClientId(state,startClientId){return getAdjacentBlockClientId(state,startClientId,1)}function getSelectedBlocksInitialCaretPosition(state){return state.initialPosition}const getSelectedBlockClientIds=(0,rememo.Z)((state=>{const{selectionStart,selectionEnd}=state.selection;if(void 0===selectionStart.clientId||void 0===selectionEnd.clientId)return EMPTY_ARRAY;if(selectionStart.clientId===selectionEnd.clientId)return[selectionStart.clientId];const rootClientId=getBlockRootClientId(state,selectionStart.clientId);if(null===rootClientId)return EMPTY_ARRAY;const blockOrder=getBlockOrder(state,rootClientId),startIndex=blockOrder.indexOf(selectionStart.clientId),endIndex=blockOrder.indexOf(selectionEnd.clientId);return startIndex>endIndex?blockOrder.slice(endIndex,startIndex+1):blockOrder.slice(startIndex,endIndex+1)}),(state=>[state.blocks.order,state.selection.selectionStart.clientId,state.selection.selectionEnd.clientId]));function getMultiSelectedBlockClientIds(state){const{selectionStart,selectionEnd}=state.selection;return selectionStart.clientId===selectionEnd.clientId?EMPTY_ARRAY:getSelectedBlockClientIds(state)}const getMultiSelectedBlocks=(0,rememo.Z)((state=>{const multiSelectedBlockClientIds=getMultiSelectedBlockClientIds(state);return multiSelectedBlockClientIds.length?multiSelectedBlockClientIds.map((clientId=>getBlock(state,clientId))):EMPTY_ARRAY}),(state=>[...getSelectedBlockClientIds.getDependants(state),state.blocks.byClientId,state.blocks.order,state.blocks.attributes]));function getFirstMultiSelectedBlockClientId(state){return(0,lodash.first)(getMultiSelectedBlockClientIds(state))||null}function getLastMultiSelectedBlockClientId(state){return(0,lodash.last)(getMultiSelectedBlockClientIds(state))||null}function isFirstMultiSelectedBlock(state,clientId){return getFirstMultiSelectedBlockClientId(state)===clientId}function isBlockMultiSelected(state,clientId){return-1!==getMultiSelectedBlockClientIds(state).indexOf(clientId)}const isAncestorMultiSelected=(0,rememo.Z)(((state,clientId)=>{let ancestorClientId=clientId,isMultiSelected=!1;for(;ancestorClientId&&!isMultiSelected;)ancestorClientId=getBlockRootClientId(state,ancestorClientId),isMultiSelected=isBlockMultiSelected(state,ancestorClientId);return isMultiSelected}),(state=>[state.blocks.order,state.selection.selectionStart.clientId,state.selection.selectionEnd.clientId]));function getMultiSelectedBlocksStartClientId(state){const{selectionStart,selectionEnd}=state.selection;return selectionStart.clientId===selectionEnd.clientId?null:selectionStart.clientId||null}function getMultiSelectedBlocksEndClientId(state){const{selectionStart,selectionEnd}=state.selection;return selectionStart.clientId===selectionEnd.clientId?null:selectionEnd.clientId||null}function getBlockOrder(state,rootClientId){return state.blocks.order[rootClientId||""]||EMPTY_ARRAY}function getBlockIndex(state,clientId,rootClientId){return getBlockOrder(state,rootClientId).indexOf(clientId)}function isBlockSelected(state,clientId){const{selectionStart,selectionEnd}=state.selection;return selectionStart.clientId===selectionEnd.clientId&&selectionStart.clientId===clientId}function hasSelectedInnerBlock(state,clientId){let deep=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,lodash.some)(getBlockOrder(state,clientId),(innerClientId=>isBlockSelected(state,innerClientId)||isBlockMultiSelected(state,innerClientId)||deep&&hasSelectedInnerBlock(state,innerClientId,deep)))}function isBlockWithinSelection(state,clientId){if(!clientId)return!1;const clientIds=getMultiSelectedBlockClientIds(state),index=clientIds.indexOf(clientId);return index>-1&&indexisBlockBeingDragged(state,parentClientId)))}function selectors_isCaretWithinFormattedText(state){return state.isCaretWithinFormattedText}function getBlockInsertionPoint(state){let rootClientId,index;const{insertionPoint,selection:{selectionEnd}}=state;if(null!==insertionPoint)return insertionPoint;const{clientId}=selectionEnd;return clientId?(rootClientId=getBlockRootClientId(state,clientId)||void 0,index=getBlockIndex(state,selectionEnd.clientId,rootClientId)+1):index=getBlockOrder(state).length,{rootClientId,index}}function isBlockInsertionPointVisible(state){return null!==state.insertionPoint}function isValidTemplate(state){return state.template.isValid}function getTemplate(state){return state.settings.template}function getTemplateLock(state,rootClientId){if(!rootClientId)return state.settings.templateLock;const blockListSettings=getBlockListSettings(state,rootClientId);return blockListSettings?blockListSettings.templateLock:null}const checkAllowList=function(list,item){let defaultResult=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,lodash.isBoolean)(list)?list:(0,lodash.isArray)(list)?!(!list.includes("core/post-content")||null!==item)||list.includes(item):defaultResult},canInsertBlockTypeUnmemoized=function(state,blockName){let blockType,rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(blockName&&"object"==typeof blockName?(blockType=blockName,blockName=blockType.name):blockType=(0,build_module.ck)(blockName),!blockType)return!1;const{allowedBlockTypes}=getSettings(state),isBlockAllowedInEditor=checkAllowList(allowedBlockTypes,blockName,!0);if(!isBlockAllowedInEditor)return!1;const isLocked=!!getTemplateLock(state,rootClientId);if(isLocked)return!1;const parentBlockListSettings=getBlockListSettings(state,rootClientId);if(rootClientId&&void 0===parentBlockListSettings)return!1;const parentAllowedBlocks=null==parentBlockListSettings?void 0:parentBlockListSettings.allowedBlocks,hasParentAllowedBlock=checkAllowList(parentAllowedBlocks,blockName),blockAllowedParentBlocks=blockType.parent,parentName=getBlockName(state,rootClientId),hasBlockAllowedParent=checkAllowList(blockAllowedParentBlocks,parentName);return null!==hasParentAllowedBlock&&null!==hasBlockAllowedParent?hasParentAllowedBlock||hasBlockAllowedParent:null!==hasParentAllowedBlock?hasParentAllowedBlock:null===hasBlockAllowedParent||hasBlockAllowedParent},canInsertBlockType=(0,rememo.Z)(canInsertBlockTypeUnmemoized,((state,blockName,rootClientId)=>[state.blockListSettings[rootClientId],state.blocks.byClientId[rootClientId],state.settings.allowedBlockTypes,state.settings.templateLock]));function canInsertBlocks(state,clientIds){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return clientIds.every((id=>canInsertBlockType(state,getBlockName(state,id),rootClientId)))}function canRemoveBlock(state,clientId){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const attributes=getBlockAttributes(state,clientId);if(null===attributes)return!0;const{lock}=attributes,parentIsLocked=!!getTemplateLock(state,rootClientId);return void 0===lock||void 0===(null==lock?void 0:lock.remove)?!parentIsLocked:!(null!=lock&&lock.remove)}function canRemoveBlocks(state,clientIds){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return clientIds.every((clientId=>canRemoveBlock(state,clientId,rootClientId)))}function canMoveBlock(state,clientId){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const attributes=getBlockAttributes(state,clientId);if(null===attributes)return;const{lock}=attributes,parentIsLocked="all"===getTemplateLock(state,rootClientId);return void 0===lock||void 0===(null==lock?void 0:lock.move)?!parentIsLocked:!(null!=lock&&lock.move)}function canMoveBlocks(state,clientIds){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return clientIds.every((clientId=>canMoveBlock(state,clientId,rootClientId)))}function getInsertUsage(state,id){var _state$preferences$in,_state$preferences$in2;return null!==(_state$preferences$in=null===(_state$preferences$in2=state.preferences.insertUsage)||void 0===_state$preferences$in2?void 0:_state$preferences$in2[id])&&void 0!==_state$preferences$in?_state$preferences$in:null}const canIncludeBlockTypeInInserter=(state,blockType,rootClientId)=>!!(0,build_module.zb)(blockType,"inserter",!0)&&canInsertBlockTypeUnmemoized(state,blockType.name,rootClientId),getItemFromVariation=(state,item)=>variation=>{const variationId=`${item.id}/${variation.name}`,{time,count=0}=getInsertUsage(state,variationId)||{};return{...item,id:variationId,icon:variation.icon||item.icon,title:variation.title||item.title,description:variation.description||item.description,category:variation.category||item.category,example:variation.hasOwnProperty("example")?variation.example:item.example,initialAttributes:{...item.initialAttributes,...variation.attributes},innerBlocks:variation.innerBlocks,keywords:variation.keywords||item.keywords,frecency:calculateFrecency(time,count)}},calculateFrecency=(time,count)=>{if(!time)return count;const duration=Date.now()-time;switch(!0){case duration<36e5:return 4*count;case duration<864e5:return 2*count;case duration<6048e5:return count/2;default:return count/4}},buildBlockTypeItem=(state,_ref3)=>{let{buildScope="inserter"}=_ref3;return blockType=>{const id=blockType.name;let isDisabled=!1;(0,build_module.zb)(blockType.name,"multiple",!0)||(isDisabled=(0,lodash.some)(getBlocksByClientId(state,getClientIdsWithDescendants(state)),{name:blockType.name}));const{time,count=0}=getInsertUsage(state,id)||{},blockItemBase={id,name:blockType.name,title:blockType.title,icon:blockType.icon,isDisabled,frecency:calculateFrecency(time,count)};if("transform"===buildScope)return blockItemBase;const inserterVariations=(0,build_module.Nr)(blockType.name,"inserter");return{...blockItemBase,initialAttributes:{},description:blockType.description,category:blockType.category,keywords:blockType.keywords,variations:inserterVariations,example:blockType.example,utility:1}}},getInserterItems=(0,rememo.Z)((function(state){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const buildBlockTypeInserterItem=buildBlockTypeItem(state,{buildScope:"inserter"}),blockParserTokenizer=/^\s*)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,buildReusableBlockInserterItem=reusableBlock=>{let icon=symbol.Z;if("web"===platform.Z.OS){const rawBlockMatch=("string"==typeof reusableBlock.content.raw?reusableBlock.content.raw:reusableBlock.content).match(blockParserTokenizer);if(rawBlockMatch){const[,,namespace="core/",blockName]=rawBlockMatch,referencedBlockType=(0,build_module.ck)(namespace+blockName);referencedBlockType&&(icon=referencedBlockType.icon)}}const id=`core/block/${reusableBlock.id}`,{time,count=0}=getInsertUsage(state,id)||{},frecency=calculateFrecency(time,count);return{id,name:"core/block",initialAttributes:{ref:reusableBlock.id},title:reusableBlock.title.raw,icon,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency}},blockTypeInserterItems=(0,build_module.U8)().filter((blockType=>canIncludeBlockTypeInInserter(state,blockType,rootClientId))).map(buildBlockTypeInserterItem),reusableBlockInserterItems=canInsertBlockTypeUnmemoized(state,"core/block",rootClientId)?getReusableBlocks(state).map(buildReusableBlockInserterItem):[],items=blockTypeInserterItems.reduce(((accumulator,item)=>{const{variations=[]}=item;if(variations.some((_ref4=>{let{isDefault}=_ref4;return isDefault}))||accumulator.push(item),variations.length){const variationMapper=getItemFromVariation(state,item);accumulator.push(...variations.map(variationMapper))}return accumulator}),[]),groupByType=(blocks,block)=>{const{core,noncore}=blocks;return(block.name.startsWith("core/")?core:noncore).push(block),blocks},{core:coreItems,noncore:nonCoreItems}=items.reduce(groupByType,{core:[],noncore:[]}),sortedBlockTypes=[...coreItems,...nonCoreItems];return[...sortedBlockTypes,...reusableBlockInserterItems]}),((state,rootClientId)=>[state.blockListSettings[rootClientId],state.blocks.byClientId,state.blocks.order,state.preferences.insertUsage,state.settings.allowedBlockTypes,state.settings.templateLock,getReusableBlocks(state),(0,build_module.U8)()])),getBlockTransformItems=(0,rememo.Z)((function(state,blocks){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const buildBlockTypeTransformItem=buildBlockTypeItem(state,{buildScope:"transform"}),blockTypeTransformItems=(0,build_module.U8)().filter((blockType=>canIncludeBlockTypeInInserter(state,blockType,rootClientId))).map(buildBlockTypeTransformItem),itemsByName=(0,lodash.mapKeys)(blockTypeTransformItems,(_ref5=>{let{name}=_ref5;return name})),possibleTransforms=(0,build_module.ff)(blocks).reduce(((accumulator,block)=>(itemsByName[null==block?void 0:block.name]&&accumulator.push(itemsByName[block.name]),accumulator)),[]),possibleBlockTransformations=(0,lodash.orderBy)(possibleTransforms,(block=>itemsByName[block.name].frecency),"desc");return possibleBlockTransformations}),((state,rootClientId)=>[state.blockListSettings[rootClientId],state.blocks.byClientId,state.preferences.insertUsage,state.settings.allowedBlockTypes,state.settings.templateLock,(0,build_module.U8)()])),hasInserterItems=(0,rememo.Z)((function(state){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const hasBlockType=(0,lodash.some)((0,build_module.U8)(),(blockType=>canIncludeBlockTypeInInserter(state,blockType,rootClientId)));if(hasBlockType)return!0;const hasReusableBlock=canInsertBlockTypeUnmemoized(state,"core/block",rootClientId)&&getReusableBlocks(state).length>0;return hasReusableBlock}),((state,rootClientId)=>[state.blockListSettings[rootClientId],state.blocks.byClientId,state.settings.allowedBlockTypes,state.settings.templateLock,getReusableBlocks(state),(0,build_module.U8)()])),__experimentalGetAllowedBlocks=(0,rememo.Z)((function(state){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(rootClientId)return(0,lodash.filter)((0,build_module.U8)(),(blockType=>canIncludeBlockTypeInInserter(state,blockType,rootClientId)))}),((state,rootClientId)=>[state.blockListSettings[rootClientId],state.blocks.byClientId,state.settings.allowedBlockTypes,state.settings.templateLock,(0,build_module.U8)()])),__experimentalGetDirectInsertBlock=(0,rememo.Z)((function(state){var _state$blockListSetti,_state$blockListSetti2;let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!rootClientId)return;const defaultBlock=null===(_state$blockListSetti=state.blockListSettings[rootClientId])||void 0===_state$blockListSetti?void 0:_state$blockListSetti.__experimentalDefaultBlock,directInsert=null===(_state$blockListSetti2=state.blockListSettings[rootClientId])||void 0===_state$blockListSetti2?void 0:_state$blockListSetti2.__experimentalDirectInsert;return defaultBlock&&directInsert?"function"==typeof directInsert?directInsert(getBlock(state,rootClientId))?defaultBlock:null:defaultBlock:void 0}),((state,rootClientId)=>[state.blockListSettings[rootClientId],state.blocks.tree[rootClientId]])),__experimentalGetParsedPattern=(0,rememo.Z)(((state,patternName)=>{const pattern=state.settings.__experimentalBlockPatterns.find((_ref6=>{let{name}=_ref6;return name===patternName}));return pattern?{...pattern,blocks:(0,build_module.Qc)(pattern.content)}:null}),(state=>[state.settings.__experimentalBlockPatterns])),getAllAllowedPatterns=(0,rememo.Z)((state=>{const patterns=state.settings.__experimentalBlockPatterns,{allowedBlockTypes}=getSettings(state),parsedPatterns=patterns.filter((_ref7=>{let{inserter=!0}=_ref7;return!!inserter})).map((_ref8=>{let{name}=_ref8;return __experimentalGetParsedPattern(state,name)})),allowedPatterns=parsedPatterns.filter((_ref9=>{let{blocks}=_ref9;return((blocks,allowedBlockTypes)=>{if((0,lodash.isBoolean)(allowedBlockTypes))return allowedBlockTypes;const blocksQueue=[...blocks];for(;blocksQueue.length>0;){var _block$innerBlocks;const block=blocksQueue.shift();if(!checkAllowList(allowedBlockTypes,block.name||block.blockName,!0))return!1;null===(_block$innerBlocks=block.innerBlocks)||void 0===_block$innerBlocks||_block$innerBlocks.forEach((innerBlock=>{blocksQueue.push(innerBlock)}))}return!0})(blocks,allowedBlockTypes)}));return allowedPatterns}),(state=>[state.settings.__experimentalBlockPatterns,state.settings.allowedBlockTypes])),__experimentalGetAllowedPatterns=(0,rememo.Z)((function(state){let rootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const availableParsedPatterns=getAllAllowedPatterns(state),patternsAllowed=(0,lodash.filter)(availableParsedPatterns,(_ref10=>{let{blocks}=_ref10;return blocks.every((_ref11=>{let{name}=_ref11;return canInsertBlockType(state,name,rootClientId)}))}));return patternsAllowed}),((state,rootClientId)=>[state.settings.__experimentalBlockPatterns,state.settings.allowedBlockTypes,state.settings.templateLock,state.blockListSettings[rootClientId],state.blocks.byClientId[rootClientId]])),__experimentalGetPatternsByBlockTypes=(0,rememo.Z)((function(state,blockNames){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!blockNames)return EMPTY_ARRAY;const patterns=__experimentalGetAllowedPatterns(state,rootClientId),normalizedBlockNames=Array.isArray(blockNames)?blockNames:[blockNames];return patterns.filter((pattern=>{var _pattern$blockTypes,_pattern$blockTypes$s;return null==pattern||null===(_pattern$blockTypes=pattern.blockTypes)||void 0===_pattern$blockTypes||null===(_pattern$blockTypes$s=_pattern$blockTypes.some)||void 0===_pattern$blockTypes$s?void 0:_pattern$blockTypes$s.call(_pattern$blockTypes,(blockName=>normalizedBlockNames.includes(blockName)))}))}),((state,rootClientId)=>[...__experimentalGetAllowedPatterns.getDependants(state,rootClientId)])),__experimentalGetPatternTransformItems=(0,rememo.Z)((function(state,blocks){let rootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!blocks)return EMPTY_ARRAY;if(blocks.some((_ref12=>{let{clientId,innerBlocks}=_ref12;return innerBlocks.length||areInnerBlocksControlled(state,clientId)})))return EMPTY_ARRAY;const selectedBlockNames=Array.from(new Set(blocks.map((_ref13=>{let{name}=_ref13;return name}))));return __experimentalGetPatternsByBlockTypes(state,selectedBlockNames,rootClientId)}),((state,rootClientId)=>[...__experimentalGetPatternsByBlockTypes.getDependants(state,rootClientId)]));function getBlockListSettings(state,clientId){return state.blockListSettings[clientId]}function getSettings(state){return state.settings}function isLastBlockChangePersistent(state){return state.blocks.isPersistentChange}const __experimentalGetBlockListSettingsForBlocks=(0,rememo.Z)((function(state){let clientIds=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return clientIds.reduce(((blockListSettingsForBlocks,clientId)=>state.blockListSettings[clientId]?{...blockListSettingsForBlocks,[clientId]:state.blockListSettings[clientId]}:blockListSettingsForBlocks),{})}),(state=>[state.blockListSettings])),__experimentalGetReusableBlockTitle=(0,rememo.Z)(((state,ref)=>{var _reusableBlock$title;const reusableBlock=(0,lodash.find)(getReusableBlocks(state),(block=>block.id===ref));return reusableBlock?null===(_reusableBlock$title=reusableBlock.title)||void 0===_reusableBlock$title?void 0:_reusableBlock$title.raw:null}),(state=>[getReusableBlocks(state)]));function __unstableIsLastBlockChangeIgnored(state){return state.blocks.isIgnoredChange}function __experimentalGetLastBlockAttributeChanges(state){return state.lastBlockAttributesChange}function getReusableBlocks(state){var _state$settings$__exp,_state$settings;return null!==(_state$settings$__exp=null==state||null===(_state$settings=state.settings)||void 0===_state$settings?void 0:_state$settings.__experimentalReusableBlocks)&&void 0!==_state$settings$__exp?_state$settings$__exp:EMPTY_ARRAY}function selectors_isNavigationMode(state){return state.isNavigationMode}function selectors_hasBlockMovingClientId(state){return state.hasBlockMovingClientId}function didAutomaticChange(state){return!!state.automaticChangeStatus}function isBlockHighlighted(state,clientId){return state.highlightedBlock===clientId}function areInnerBlocksControlled(state,clientId){return!!state.blocks.controlledInnerBlocks[clientId]}const __experimentalGetActiveBlockIdByBlockNames=(0,rememo.Z)(((state,validBlockNames)=>{if(!validBlockNames.length)return null;const selectedBlockClientId=getSelectedBlockClientId(state);if(validBlockNames.includes(getBlockName(state,selectedBlockClientId)))return selectedBlockClientId;const multiSelectedBlockClientIds=getMultiSelectedBlockClientIds(state),entityAreaParents=getBlockParentsByBlockName(state,selectedBlockClientId||multiSelectedBlockClientIds[0],validBlockNames);return entityAreaParents?(0,lodash.last)(entityAreaParents):null}),((state,validBlockNames)=>[state.selection.selectionStart.clientId,state.selection.selectionEnd.clientId,validBlockNames]));function wasBlockJustInserted(state,clientId,source){const{lastBlockInserted}=state;return lastBlockInserted.clientId===clientId&&lastBlockInserted.source===source}var a11y_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+a11y@3.2.4/node_modules/@wordpress/a11y/build-module/index.js"),rich_text_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+rich-text@5.0.6_react@17.0.2/node_modules/@wordpress/rich-text/build-module/index.js"),deprecated_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+deprecated@3.2.3/node_modules/@wordpress/deprecated/build-module/index.js");const resetBlocks=blocks=>_ref2=>{let{dispatch}=_ref2;dispatch({type:"RESET_BLOCKS",blocks}),dispatch(validateBlocksToTemplate(blocks))},validateBlocksToTemplate=blocks=>_ref3=>{let{select,dispatch}=_ref3;const template=select.getTemplate(),templateLock=select.getTemplateLock(),isBlocksValidToTemplate=!template||"all"!==templateLock||(0,build_module.aW)(blocks,template);if(isBlocksValidToTemplate!==select.isValidTemplate())return dispatch.setTemplateValidity(isBlocksValidToTemplate),isBlocksValidToTemplate};function resetSelection(selectionStart,selectionEnd,initialPosition){return{type:"RESET_SELECTION",selectionStart,selectionEnd,initialPosition}}function receiveBlocks(blocks){return(0,deprecated_build_module.Z)('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks}}function updateBlockAttributes(clientIds,attributes){let uniqueByBlock=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:(0,lodash.castArray)(clientIds),attributes,uniqueByBlock}}function updateBlock(clientId,updates){return{type:"UPDATE_BLOCK",clientId,updates}}function selectBlock(clientId){let initialPosition=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition,clientId}}const selectPreviousBlock=clientId=>_ref4=>{let{select,dispatch}=_ref4;const previousBlockClientId=select.getPreviousBlockClientId(clientId);previousBlockClientId&&dispatch.selectBlock(previousBlockClientId,-1)},selectNextBlock=clientId=>_ref5=>{let{select,dispatch}=_ref5;const nextBlockClientId=select.getNextBlockClientId(clientId);nextBlockClientId&&dispatch.selectBlock(nextBlockClientId)};function startMultiSelect(){return{type:"START_MULTI_SELECT"}}function stopMultiSelect(){return{type:"STOP_MULTI_SELECT"}}const multiSelect=(start,end)=>_ref6=>{let{select,dispatch}=_ref6;if(select.getBlockRootClientId(start)!==select.getBlockRootClientId(end))return;dispatch({type:"MULTI_SELECT",start,end});const blockCount=select.getSelectedBlockCount();(0,a11y_build_module.D)((0,i18n_build_module.gB)((0,i18n_build_module._n)("%s block selected.","%s blocks selected.",blockCount),blockCount),"assertive")};function clearSelectedBlock(){return{type:"CLEAR_SELECTED_BLOCK"}}function toggleSelection(){let isSelectionEnabled=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled}}function getBlocksWithDefaultStylesApplied(blocks,blockEditorSettings){var _blockEditorSettings$,_blockEditorSettings$2;const preferredStyleVariations=null!==(_blockEditorSettings$=null==blockEditorSettings||null===(_blockEditorSettings$2=blockEditorSettings.__experimentalPreferredStyleVariations)||void 0===_blockEditorSettings$2?void 0:_blockEditorSettings$2.value)&&void 0!==_blockEditorSettings$?_blockEditorSettings$:{};return blocks.map((block=>{var _block$attributes;const blockName=block.name;if(!(0,build_module.zb)(blockName,"defaultStylePicker",!0))return block;if(!preferredStyleVariations[blockName])return block;const className=null===(_block$attributes=block.attributes)||void 0===_block$attributes?void 0:_block$attributes.className;if(null!=className&&className.includes("is-style-"))return block;const{attributes={}}=block,blockStyle=preferredStyleVariations[blockName];return{...block,attributes:{...attributes,className:`${className||""} is-style-${blockStyle}`.trim()}}}))}const replaceBlocks=function(clientIds,blocks,indexToSelect){let initialPosition=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,meta=arguments.length>4?arguments[4]:void 0;return _ref7=>{let{select,dispatch}=_ref7;clientIds=(0,lodash.castArray)(clientIds),blocks=getBlocksWithDefaultStylesApplied((0,lodash.castArray)(blocks),select.getSettings());const rootClientId=select.getBlockRootClientId((0,lodash.first)(clientIds));for(let index=0;index{let{select,dispatch}=_ref;if(select.getBlockCount()>0)return;const{__unstableHasCustomAppender}=select.getSettings();__unstableHasCustomAppender||dispatch.insertDefaultBlock()}))}};function replaceBlock(clientId,block){return replaceBlocks(clientId,block)}const createOnMove=type=>(clientIds,rootClientId)=>_ref8=>{let{select,dispatch}=_ref8;select.canMoveBlocks(clientIds,rootClientId)&&dispatch({type,clientIds:(0,lodash.castArray)(clientIds),rootClientId})},moveBlocksDown=createOnMove("MOVE_BLOCKS_DOWN"),moveBlocksUp=createOnMove("MOVE_BLOCKS_UP"),moveBlocksToPosition=function(clientIds){let fromRootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",toRootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",index=arguments.length>3?arguments[3]:void 0;return _ref9=>{let{select,dispatch}=_ref9;if(select.canMoveBlocks(clientIds,fromRootClientId)){if(fromRootClientId!==toRootClientId){if(!select.canRemoveBlocks(clientIds,fromRootClientId))return;if(!select.canInsertBlocks(clientIds,toRootClientId))return}dispatch({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId,toRootClientId,clientIds,index})}}};function moveBlockToPosition(clientId){let fromRootClientId=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",toRootClientId=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",index=arguments.length>3?arguments[3]:void 0;return moveBlocksToPosition([clientId],fromRootClientId,toRootClientId,index)}function insertBlock(block,index,rootClientId,updateSelection,meta){return insertBlocks([block],index,rootClientId,updateSelection,0,meta)}const insertBlocks=function(blocks,index,rootClientId){let updateSelection=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],initialPosition=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,meta=arguments.length>5?arguments[5]:void 0;return _ref10=>{let{select,dispatch}=_ref10;(0,lodash.isObject)(initialPosition)&&(meta=initialPosition,initialPosition=0,(0,deprecated_build_module.Z)("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),blocks=getBlocksWithDefaultStylesApplied((0,lodash.castArray)(blocks),select.getSettings());const allowedBlocks=[];for(const block of blocks){select.canInsertBlockType(block.name,rootClientId)&&allowedBlocks.push(block)}allowedBlocks.length&&dispatch({type:"INSERT_BLOCKS",blocks:allowedBlocks,index,rootClientId,time:Date.now(),updateSelection,initialPosition:updateSelection?initialPosition:null,meta})}};function showInsertionPoint(rootClientId,index){let __unstableOptions=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter}=__unstableOptions;return{type:"SHOW_INSERTION_POINT",rootClientId,index,__unstableWithInserter}}function hideInsertionPoint(){return{type:"HIDE_INSERTION_POINT"}}function setTemplateValidity(isValid){return{type:"SET_TEMPLATE_VALIDITY",isValid}}const synchronizeTemplate=()=>_ref11=>{let{select,dispatch}=_ref11;dispatch({type:"SYNCHRONIZE_TEMPLATE"});const blocks=select.getBlocks(),template=select.getTemplate(),updatedBlockList=(0,build_module.fw)(blocks,template);dispatch.resetBlocks(updatedBlockList)},mergeBlocks=(firstBlockClientId,secondBlockClientId)=>_ref12=>{let{select,dispatch}=_ref12;const blocks=[firstBlockClientId,secondBlockClientId];dispatch({type:"MERGE_BLOCKS",blocks});const[clientIdA,clientIdB]=blocks,blockA=select.getBlock(clientIdA),blockAType=(0,build_module.ck)(blockA.name);if(blockAType&&!blockAType.merge)return void dispatch.selectBlock(blockA.clientId);const blockB=select.getBlock(clientIdB),blockBType=(0,build_module.ck)(blockB.name),{clientId,attributeKey,offset}=select.getSelectionStart(),attributeDefinition=(clientId===clientIdA?blockAType:blockBType).attributes[attributeKey],canRestoreTextSelection=(clientId===clientIdA||clientId===clientIdB)&&void 0!==attributeKey&&void 0!==offset&&!!attributeDefinition;attributeDefinition||("number"==typeof attributeKey?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof attributeKey):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const cloneA=(0,build_module.Wm)(blockA),cloneB=(0,build_module.Wm)(blockB);if(canRestoreTextSelection){const selectedBlock=clientId===clientIdA?cloneA:cloneB,html=selectedBlock.attributes[attributeKey],{multiline:multilineTag,__unstableMultilineWrapperTags:multilineWrapperTags,__unstablePreserveWhiteSpace:preserveWhiteSpace}=attributeDefinition,value=(0,rich_text_build_module.$T)((0,rich_text_build_module.Ue)({html,multilineTag,multilineWrapperTags,preserveWhiteSpace}),"†",offset,offset);selectedBlock.attributes[attributeKey]=(0,rich_text_build_module.Jz)({value,multilineTag,preserveWhiteSpace})}const blocksWithTheSameType=blockA.name===blockB.name?[cloneB]:(0,build_module.m4)(cloneB,blockA.name);if(!blocksWithTheSameType||!blocksWithTheSameType.length)return;const updatedAttributes=blockAType.merge(cloneA.attributes,blocksWithTheSameType[0].attributes);if(canRestoreTextSelection){const newAttributeKey=(0,lodash.findKey)(updatedAttributes,(v=>"string"==typeof v&&-1!==v.indexOf("†"))),convertedHtml=updatedAttributes[newAttributeKey],{multiline:multilineTag,__unstableMultilineWrapperTags:multilineWrapperTags,__unstablePreserveWhiteSpace:preserveWhiteSpace}=blockAType.attributes[newAttributeKey],convertedValue=(0,rich_text_build_module.Ue)({html:convertedHtml,multilineTag,multilineWrapperTags,preserveWhiteSpace}),newOffset=convertedValue.text.indexOf("†"),newValue=(0,rich_text_build_module.Od)(convertedValue,newOffset,newOffset+1),newHtml=(0,rich_text_build_module.Jz)({value:newValue,multilineTag,preserveWhiteSpace});updatedAttributes[newAttributeKey]=newHtml,dispatch.selectionChange(blockA.clientId,newAttributeKey,newOffset,newOffset)}dispatch.replaceBlocks([blockA.clientId,blockB.clientId],[{...blockA,attributes:{...blockA.attributes,...updatedAttributes}},...blocksWithTheSameType.slice(1)],0)},removeBlocks=function(clientIds){let selectPrevious=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _ref13=>{let{select,dispatch}=_ref13;if(!clientIds||!clientIds.length)return;clientIds=(0,lodash.castArray)(clientIds);const rootClientId=select.getBlockRootClientId(clientIds[0]);select.canRemoveBlocks(clientIds,rootClientId)&&(selectPrevious&&dispatch.selectPreviousBlock(clientIds[0]),dispatch({type:"REMOVE_BLOCKS",clientIds}),dispatch((_ref=>{let{select,dispatch}=_ref;if(select.getBlockCount()>0)return;const{__unstableHasCustomAppender}=select.getSettings();__unstableHasCustomAppender||dispatch.insertDefaultBlock()})))}};function removeBlock(clientId,selectPrevious){return removeBlocks([clientId],selectPrevious)}function replaceInnerBlocks(rootClientId,blocks){let updateSelection=arguments.length>2&&void 0!==arguments[2]&&arguments[2],initialPosition=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId,blocks,updateSelection,initialPosition:updateSelection?initialPosition:null,time:Date.now()}}function toggleBlockMode(clientId){return{type:"TOGGLE_BLOCK_MODE",clientId}}function startTyping(){return{type:"START_TYPING"}}function stopTyping(){return{type:"STOP_TYPING"}}function startDraggingBlocks(){let clientIds=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds}}function stopDraggingBlocks(){return{type:"STOP_DRAGGING_BLOCKS"}}function enterFormattedText(){return{type:"ENTER_FORMATTED_TEXT"}}function exitFormattedText(){return{type:"EXIT_FORMATTED_TEXT"}}function selectionChange(clientId,attributeKey,startOffset,endOffset){return{type:"SELECTION_CHANGE",clientId,attributeKey,startOffset,endOffset}}function insertDefaultBlock(attributes,rootClientId,index){const defaultBlockName=(0,build_module.UT)();if(!defaultBlockName)return;return insertBlock((0,build_module.j4)(defaultBlockName,attributes),index,rootClientId)}function updateBlockListSettings(clientId,settings){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId,settings}}function updateSettings(settings){return{type:"UPDATE_SETTINGS",settings}}function __unstableSaveReusableBlock(id,updatedId){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id,updatedId}}function __unstableMarkLastChangeAsPersistent(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function __unstableMarkNextChangeAsNotPersistent(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const __unstableMarkAutomaticChange=()=>_ref14=>{let{dispatch}=_ref14;dispatch({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback=cb=>setTimeout(cb,100)}=window;requestIdleCallback((()=>{dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},setNavigationMode=function(){let isNavigationMode=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return _ref15=>{let{dispatch}=_ref15;dispatch({type:"SET_NAVIGATION_MODE",isNavigationMode}),isNavigationMode?(0,a11y_build_module.D)((0,i18n_build_module.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):(0,a11y_build_module.D)((0,i18n_build_module.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},setBlockMovingClientId=function(){let hasBlockMovingClientId=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return _ref16=>{let{dispatch}=_ref16;dispatch({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId}),hasBlockMovingClientId&&(0,a11y_build_module.D)((0,i18n_build_module.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))}},duplicateBlocks=function(clientIds){let updateSelection=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _ref17=>{let{select,dispatch}=_ref17;if(!clientIds||!clientIds.length)return;const blocks=select.getBlocksByClientId(clientIds);if((0,lodash.some)(blocks,(block=>!block)))return;const blockNames=blocks.map((block=>block.name));if(blockNames.some((blockName=>!(0,build_module.zb)(blockName,"multiple",!0))))return;const rootClientId=select.getBlockRootClientId(clientIds[0]),lastSelectedIndex=select.getBlockIndex((0,lodash.last)((0,lodash.castArray)(clientIds)),rootClientId),clonedBlocks=blocks.map((block=>(0,build_module.mR)(block)));return dispatch.insertBlocks(clonedBlocks,lastSelectedIndex+1,rootClientId,updateSelection),clonedBlocks.length>1&&updateSelection&&dispatch.multiSelect((0,lodash.first)(clonedBlocks).clientId,(0,lodash.last)(clonedBlocks).clientId),clonedBlocks.map((block=>block.clientId))}},insertBeforeBlock=clientId=>_ref18=>{let{select,dispatch}=_ref18;if(!clientId)return;const rootClientId=select.getBlockRootClientId(clientId);if(select.getTemplateLock(rootClientId))return;const firstSelectedIndex=select.getBlockIndex(clientId,rootClientId);return dispatch.insertDefaultBlock({},rootClientId,firstSelectedIndex)},insertAfterBlock=clientId=>_ref19=>{let{select,dispatch}=_ref19;if(!clientId)return;const rootClientId=select.getBlockRootClientId(clientId);if(select.getTemplateLock(rootClientId))return;const firstSelectedIndex=select.getBlockIndex(clientId,rootClientId);return dispatch.insertDefaultBlock({},rootClientId,firstSelectedIndex+1)};function toggleBlockHighlight(clientId,isHighlighted){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId,isHighlighted}}const flashBlock=clientId=>async _ref20=>{let{dispatch}=_ref20;dispatch(toggleBlockHighlight(clientId,!0)),await new Promise((resolve=>setTimeout(resolve,150))),dispatch(toggleBlockHighlight(clientId,!1))};function setHasControlledInnerBlocks(clientId,hasControlledInnerBlocks){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks,clientId}}const storeConfig={reducer,selectors:selectors_namespaceObject,actions:actions_namespaceObject,__experimentalUseThunks:!0},store=(0,redux_store.Z)("core/block-editor",{...storeConfig,persist:["preferences"]});(0,data_build_module.R9)("core/block-editor",{...storeConfig,persist:["preferences"]});const DEFAULT_BLOCK_EDIT_CONTEXT={name:"",isSelected:!1},Context=(0,react.createContext)(DEFAULT_BLOCK_EDIT_CONTEXT),{Provider}=Context;function useBlockEditContext(){return(0,react.useContext)(Context)}function useDisplayBlockControls(){const{isSelected,clientId,name}=useBlockEditContext();return(0,use_select.Z)((select=>{if(isSelected)return!0;const{getBlockName,isFirstMultiSelectedBlock,getMultiSelectedBlockClientIds}=select(store);return!!isFirstMultiSelectedBlock(clientId)&&getMultiSelectedBlockClientIds().every((id=>getBlockName(id)===name))}),[clientId,isSelected,name])}function BlockControlsFill(_ref){let{group="default",controls,children,__experimentalShareWithChildBlocks=!1}=_ref;const Fill=function useBlockControlsFill(group,shareWithChildBlocks){const isDisplayed=useDisplayBlockControls(),{clientId}=useBlockEditContext(),isParentDisplayed=(0,use_select.Z)((select=>{const{getBlockName,hasSelectedInnerBlock}=select(store),{hasBlockSupport}=select(build_module.h);return shareWithChildBlocks&&hasBlockSupport(getBlockName(clientId),"__experimentalExposeControlsToChildren",!1)&&hasSelectedInnerBlock(clientId)}),[shareWithChildBlocks,clientId]);var _groups$group;return isDisplayed?null===(_groups$group=block_controls_groups[group])||void 0===_groups$group?void 0:_groups$group.Fill:isParentDisplayed?block_controls_groups.parent.Fill:null}(group,__experimentalShareWithChildBlocks);return Fill?(0,react.createElement)(style_provider.Z,{document},(0,react.createElement)(Fill,null,(fillProps=>{const value=(0,lodash.isEmpty)(fillProps)?null:fillProps;return(0,react.createElement)(toolbar_context.Z.Provider,{value},"default"===group&&(0,react.createElement)(toolbar_group.Z,{controls}),children)}))):null}var use_slot=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js");function BlockControlsSlot(_ref){let{group="default",...props}=_ref;const accessibleToolbarState=(0,react.useContext)(toolbar_context.Z),Slot=block_controls_groups[group].Slot,slot=(0,use_slot.Z)(Slot.__unstableName);return Boolean(slot.fills&&slot.fills.length)?"default"===group?(0,react.createElement)(Slot,(0,esm_extends.Z)({},props,{bubblesVirtually:!0,fillProps:accessibleToolbarState})):(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(Slot,(0,esm_extends.Z)({},props,{bubblesVirtually:!0,fillProps:accessibleToolbarState}))):null}const BlockControls=BlockControlsFill;BlockControls.Slot=BlockControlsSlot;const block_controls=BlockControls;var toolbar_dropdown_menu=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-dropdown-menu/index.js"),menu_group=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/menu-group/index.js"),menu_item=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/menu-item/index.js"),svg=__webpack_require__("../../../node_modules/.pnpm/@wordpress+primitives@3.0.4/node_modules/@wordpress/primitives/build-module/svg/index.js");const align_none=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),position_left=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),position_center=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"})),position_right=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),stretch_wide=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),stretch_full_width=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),justify_left=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),justify_center=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),justify_right=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),justify_space_between=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),arrow_right=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),arrow_down=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"}));var component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/flex/flex/component.js"),flex_item_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/flex/flex-item/component.js"),build_module_button=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/button/index.js"),toggle_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toggle-control/index.js");function appendSelectors(selectors){let append=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return selectors.split(",").map((subselector=>`.editor-styles-wrapper ${subselector} ${append}`)).join(",")}const deprecatedFlags={"color.palette":settings=>void 0===settings.colors?void 0:settings.colors,"color.gradients":settings=>void 0===settings.gradients?void 0:settings.gradients,"color.custom":settings=>void 0===settings.disableCustomColors?void 0:!settings.disableCustomColors,"color.customGradient":settings=>void 0===settings.disableCustomGradients?void 0:!settings.disableCustomGradients,"typography.fontSizes":settings=>void 0===settings.fontSizes?void 0:settings.fontSizes,"typography.customFontSize":settings=>void 0===settings.disableCustomFontSizes?void 0:!settings.disableCustomFontSizes,"typography.lineHeight":settings=>settings.enableCustomLineHeight,"spacing.units":settings=>{if(void 0!==settings.enableCustomUnits)return!0===settings.enableCustomUnits?["px","em","rem","vh","vw","%"]:settings.enableCustomUnits},"spacing.padding":settings=>settings.enableCustomSpacing},prefixedFlags={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function useSetting(path){const{name:blockName}=useBlockEditContext(),setting=(0,use_select.Z)((select=>{var _get;const settings=select(store).getSettings(),normalizedPath=(path=>prefixedFlags[path]||path)(path),defaultsPath=`__experimentalFeatures.${normalizedPath}`,blockPath=`__experimentalFeatures.blocks.${blockName}.${normalizedPath}`,experimentalFeaturesResult=null!==(_get=(0,lodash.get)(settings,blockPath))&&void 0!==_get?_get:(0,lodash.get)(settings,defaultsPath);var _ref,_experimentalFeatures;if(void 0!==experimentalFeaturesResult)return build_module.yg[normalizedPath]?null!==(_ref=null!==(_experimentalFeatures=experimentalFeaturesResult.custom)&&void 0!==_experimentalFeatures?_experimentalFeatures:experimentalFeaturesResult.theme)&&void 0!==_ref?_ref:experimentalFeaturesResult.default:experimentalFeaturesResult;const deprecatedSettingsValue=deprecatedFlags[normalizedPath]?deprecatedFlags[normalizedPath](settings):void 0;return void 0!==deprecatedSettingsValue?deprecatedSettingsValue:"typography.dropCap"===normalizedPath||void 0}),[blockName,path]);return setting}const icons={left:justify_left,center:justify_center,right:justify_right,"space-between":justify_space_between};const ui=function ui_JustifyContentUI(_ref){let{allowedControls=["left","center","right","space-between"],isCollapsed=!0,onChange,value,popoverProps,isToolbar}=_ref;const handleClick=next=>{onChange(next===value?void 0:next)},icon=value?icons[value]:icons.left,allControls=[{name:"left",icon:justify_left,title:(0,i18n_build_module.__)("Justify items left"),isActive:"left"===value,onClick:()=>handleClick("left")},{name:"center",icon:justify_center,title:(0,i18n_build_module.__)("Justify items center"),isActive:"center"===value,onClick:()=>handleClick("center")},{name:"right",icon:justify_right,title:(0,i18n_build_module.__)("Justify items right"),isActive:"right"===value,onClick:()=>handleClick("right")},{name:"space-between",icon:justify_space_between,title:(0,i18n_build_module.__)("Space between items"),isActive:"space-between"===value,onClick:()=>handleClick("space-between")}],UIComponent=isToolbar?toolbar_group.Z:toolbar_dropdown_menu.Z,extraProps=isToolbar?{isCollapsed}:{};return(0,react.createElement)(UIComponent,(0,esm_extends.Z)({icon,popoverProps,label:(0,i18n_build_module.__)("Change items justification"),controls:allControls.filter((elem=>allowedControls.includes(elem.name)))},extraProps))};function JustifyContentControl(props){return(0,react.createElement)(ui,(0,esm_extends.Z)({},props,{isToolbar:!1}))}const justifyContentMap={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},alignItemsMap={left:"flex-start",right:"flex-end",center:"center"},flexWrapOptions=["wrap","nowrap"],flex={name:"flex",label:(0,i18n_build_module.__)("Flex"),inspectorControls:function FlexLayoutInspectorControls(_ref){let{layout={},onChange}=_ref;const{allowOrientation=!0}=layout;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(component.Z,null,(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(FlexLayoutJustifyContentControl,{layout,onChange})),(0,react.createElement)(flex_item_component.Z,null,allowOrientation&&(0,react.createElement)(OrientationControl,{layout,onChange}))),(0,react.createElement)(FlexWrapControl,{layout,onChange}))},toolBarControls:function FlexLayoutToolbarControls(_ref2){let{layout={},onChange,layoutBlockSupport}=_ref2;return null!=layoutBlockSupport&&layoutBlockSupport.allowSwitching?null:(0,react.createElement)(block_controls,{group:"block",__experimentalShareWithChildBlocks:!0},(0,react.createElement)(FlexLayoutJustifyContentControl,{layout,onChange,isToolbar:!0}))},save:function FlexLayoutStyle(_ref3){let{selector,layout}=_ref3;const{orientation="horizontal",setCascadingProperties=!1}=layout,hasBlockGapStylesSupport=null!==useSetting("spacing.blockGap"),justifyContent=justifyContentMap[layout.justifyContent]||justifyContentMap.left,flexWrap=flexWrapOptions.includes(layout.flexWrap)?layout.flexWrap:"wrap";let rowOrientation=`\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tjustify-content: ${justifyContent};\n\t\t`;setCascadingProperties&&(rowOrientation+=`\n\t\t\t--layout-justification-setting: ${justifyContent};\n\t\t\t--layout-direction: row;\n\t\t\t--layout-wrap: ${flexWrap};\n\t\t\t--layout-justify: ${justifyContent};\n\t\t\t--layout-align: center;\n\t\t\t`);const alignItems=alignItemsMap[layout.justifyContent]||alignItemsMap.left;let columnOrientation=`\n\t\tflex-direction: column;\n\t\talign-items: ${alignItems};\n\t\t`;return setCascadingProperties&&(columnOrientation+=`\n\t\t\t--layout-justification-setting: ${alignItems};\n\t\t\t--layout-direction: column;\n\t\t\t--layout-justify: initial;\n\t\t\t--layout-align: ${alignItems};\n\t\t\t`),(0,react.createElement)("style",null,`\n\t\t\t\t${appendSelectors(selector)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tgap: ${hasBlockGapStylesSupport?"var( --wp--style--block-gap, 0.5em )":"0.5em"};\n\t\t\t\t\tflex-wrap: ${flexWrap};\n\t\t\t\t\t${"horizontal"===orientation?rowOrientation:columnOrientation}\n\t\t\t\t}\n\n\t\t\t\t${appendSelectors(selector,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(layout){const{orientation="horizontal"}=layout;return orientation},getAlignments:()=>[]};function FlexLayoutJustifyContentControl(_ref4){let{layout,onChange,isToolbar=!1}=_ref4;const{justifyContent="left",orientation="horizontal"}=layout,onJustificationChange=value=>{onChange({...layout,justifyContent:value})},allowedControls=["left","center","right"];if("horizontal"===orientation&&allowedControls.push("space-between"),isToolbar)return(0,react.createElement)(JustifyContentControl,{allowedControls,value:justifyContent,onChange:onJustificationChange,popoverProps:{position:"bottom right",isAlternate:!0}});const justificationOptions=[{value:"left",icon:justify_left,label:(0,i18n_build_module.__)("Justify items left")},{value:"center",icon:justify_center,label:(0,i18n_build_module.__)("Justify items center")},{value:"right",icon:justify_right,label:(0,i18n_build_module.__)("Justify items right")}];return"horizontal"===orientation&&justificationOptions.push({value:"space-between",icon:justify_space_between,label:(0,i18n_build_module.__)("Space between items")}),(0,react.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},(0,react.createElement)("legend",null,(0,i18n_build_module.__)("Justification")),(0,react.createElement)("div",null,justificationOptions.map((_ref5=>{let{value,icon,label}=_ref5;return(0,react.createElement)(build_module_button.Z,{key:value,label,icon,isPressed:justifyContent===value,onClick:()=>onJustificationChange(value)})}))))}function FlexWrapControl(_ref6){let{layout,onChange}=_ref6;const{flexWrap="wrap"}=layout;return(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Allow to wrap to multiple lines"),onChange:value=>{onChange({...layout,flexWrap:value?"wrap":"nowrap"})},checked:"wrap"===flexWrap})}function OrientationControl(_ref7){let{layout,onChange}=_ref7;const{orientation="horizontal"}=layout;return(0,react.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},(0,react.createElement)("legend",null,(0,i18n_build_module.__)("Orientation")),(0,react.createElement)(build_module_button.Z,{label:"horizontal",icon:arrow_right,isPressed:"horizontal"===orientation,onClick:()=>onChange({...layout,orientation:"horizontal"})}),(0,react.createElement)(build_module_button.Z,{label:"vertical",icon:arrow_down,isPressed:"vertical"===orientation,onClick:()=>onChange({...layout,orientation:"vertical"})}))}var utils=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/unit-control/utils.js"),unit_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/unit-control/index.js"),build_module_icon=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/icon/index.js");const flow={name:"default",label:(0,i18n_build_module.__)("Flow"),inspectorControls:function DefaultLayoutInspectorControls(_ref){let{layout,onChange}=_ref;const{wideSize,contentSize}=layout,units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["%","px","em","rem","vw"]});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,react.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,react.createElement)(unit_control.ZP,{label:(0,i18n_build_module.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:contentSize||wideSize||"",onChange:nextWidth=>{nextWidth=0>parseFloat(nextWidth)?"0":nextWidth,onChange({...layout,contentSize:nextWidth})},units}),(0,react.createElement)(build_module_icon.Z,{icon:position_center})),(0,react.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,react.createElement)(unit_control.ZP,{label:(0,i18n_build_module.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:wideSize||contentSize||"",onChange:nextWidth=>{nextWidth=0>parseFloat(nextWidth)?"0":nextWidth,onChange({...layout,wideSize:nextWidth})},units}),(0,react.createElement)(build_module_icon.Z,{icon:stretch_wide}))),(0,react.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},(0,react.createElement)(build_module_button.Z,{variant:"secondary",isSmall:!0,disabled:!contentSize&&!wideSize,onClick:()=>onChange({contentSize:void 0,wideSize:void 0,inherit:!1})},(0,i18n_build_module.__)("Reset"))),(0,react.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,i18n_build_module.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function DefaultLayoutToolbarControls(){return null},save:function DefaultLayoutStyle(_ref2){let{selector,layout={}}=_ref2;const{contentSize,wideSize}=layout,hasBlockGapStylesSupport=null!==useSetting("spacing.blockGap");let style=contentSize||wideSize?`\n\t\t\t\t\t${appendSelectors(selector,"> *")} {\n\t\t\t\t\t\tmax-width: ${null!=contentSize?contentSize:wideSize};\n\t\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t${appendSelectors(selector,'> [data-align="wide"]')} {\n\t\t\t\t\t\tmax-width: ${null!=wideSize?wideSize:contentSize};\n\t\t\t\t\t}\n\n\t\t\t\t\t${appendSelectors(selector,'> [data-align="full"]')} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return style+=`\n\t\t\t${appendSelectors(selector,'> [data-align="left"]')} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-right: 2em;\n\t\t\t}\n\n\t\t\t${appendSelectors(selector,'> [data-align="right"]')} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-left: 2em;\n\t\t\t}\n\n\t\t`,hasBlockGapStylesSupport&&(style+=`\n\t\t\t\t${appendSelectors(selector,"> *")} {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t\t${appendSelectors(selector,"> * + *")} {\n\t\t\t\t\tmargin-top: var( --wp--style--block-gap );\n\t\t\t\t}\n\t\t\t`),(0,react.createElement)("style",null,style)},getOrientation:()=>"vertical",getAlignments(layout){const alignmentInfo=function getAlignmentsInfo(layout){const{contentSize,wideSize}=layout,alignmentInfo={},sizeRegex=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;sizeRegex.test(contentSize)&&(alignmentInfo.none=(0,i18n_build_module.gB)((0,i18n_build_module.__)("Max %s wide"),contentSize));sizeRegex.test(wideSize)&&(alignmentInfo.wide=(0,i18n_build_module.gB)((0,i18n_build_module.__)("Max %s wide"),wideSize));return alignmentInfo}(layout);if(void 0!==layout.alignments)return layout.alignments.includes("none")||layout.alignments.unshift("none"),layout.alignments.map((alignment=>({name:alignment,info:alignmentInfo[alignment]})));const{contentSize,wideSize}=layout,alignments=[{name:"left"},{name:"center"},{name:"right"}];return contentSize&&alignments.unshift({name:"full"}),wideSize&&alignments.unshift({name:"wide",info:alignmentInfo.wide}),alignments.unshift({name:"none",info:alignmentInfo.none}),alignments}};const layoutTypes=[flow,flex];function getLayoutType(){let name=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return layoutTypes.find((layoutType=>layoutType.name===name))}const defaultLayout={type:"default"},Layout=(0,react.createContext)(defaultLayout),LayoutProvider=Layout.Provider;function useLayout(){return(0,react.useContext)(Layout)}function LayoutStyle(_ref){let{layout={},...props}=_ref;const layoutType=getLayoutType(layout.type);return layoutType?(0,react.createElement)(layoutType.save,(0,esm_extends.Z)({layout},props)):null}const DEFAULT_CONTROLS=["none","left","center","right","wide","full"],WIDE_CONTROLS=["wide","full"];function useAvailableAlignments(){let controls=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DEFAULT_CONTROLS;controls.includes("none")||(controls=["none",...controls]);const{wideControlsEnabled=!1,themeSupportsLayout}=(0,use_select.Z)((select=>{const{getSettings}=select(store),settings=getSettings();return{wideControlsEnabled:settings.alignWide,themeSupportsLayout:settings.supportsLayout}}),[]),layout=useLayout(),layoutType=getLayoutType(null==layout?void 0:layout.type),layoutAlignments=layoutType.getAlignments(layout);if(themeSupportsLayout){const alignments=layoutAlignments.filter((_ref=>{let{name:alignmentName}=_ref;return controls.includes(alignmentName)}));return 1===alignments.length&&"none"===alignments[0].name?[]:alignments}if("default"!==layoutType.name)return[];const{alignments:availableAlignments=DEFAULT_CONTROLS}=layout,enabledControls=controls.filter((control=>(layout.alignments||wideControlsEnabled||!WIDE_CONTROLS.includes(control))&&availableAlignments.includes(control))).map((enabledControl=>({name:enabledControl})));return 1===enabledControls.length&&"none"===enabledControls[0].name?[]:enabledControls}const BLOCK_ALIGNMENTS_CONTROLS={none:{icon:align_none,title:(0,i18n_build_module.__)("None")},left:{icon:position_left,title:(0,i18n_build_module.__)("Align left")},center:{icon:position_center,title:(0,i18n_build_module.__)("Align center")},right:{icon:position_right,title:(0,i18n_build_module.__)("Align right")},wide:{icon:stretch_wide,title:(0,i18n_build_module.__)("Wide width")},full:{icon:stretch_full_width,title:(0,i18n_build_module.__)("Full width")}},POPOVER_PROPS={isAlternate:!0};const block_alignment_control_ui=function BlockAlignmentUI(_ref){let{value,onChange,controls,isToolbar,isCollapsed=!0}=_ref;const enabledControls=useAvailableAlignments(controls);if(!!!enabledControls.length)return null;function onChangeAlignment(align){onChange([value,"none"].includes(align)?void 0:align)}const activeAlignmentControl=BLOCK_ALIGNMENTS_CONTROLS[value],defaultAlignmentControl=BLOCK_ALIGNMENTS_CONTROLS.none,UIComponent=isToolbar?toolbar_group.Z:toolbar_dropdown_menu.Z,commonProps={popoverProps:POPOVER_PROPS,icon:activeAlignmentControl?activeAlignmentControl.icon:defaultAlignmentControl.icon,label:(0,i18n_build_module.__)("Align"),toggleProps:{describedBy:(0,i18n_build_module.__)("Change alignment")}},extraProps=isToolbar||platform.Z.isNative?{isCollapsed:isToolbar?isCollapsed:void 0,controls:enabledControls.map((_ref2=>{let{name:controlName}=_ref2;return{...BLOCK_ALIGNMENTS_CONTROLS[controlName],isActive:value===controlName||!value&&"none"===controlName,role:isCollapsed?"menuitemradio":void 0,onClick:()=>onChangeAlignment(controlName)}}))}:{children:_ref3=>{let{onClose}=_ref3;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(menu_group.Z,{className:"block-editor-block-alignment-control__menu-group"},enabledControls.map((_ref4=>{let{name:controlName,info}=_ref4;const{icon,title}=BLOCK_ALIGNMENTS_CONTROLS[controlName],isSelected=controlName===value||!value&&"none"===controlName;return(0,react.createElement)(menu_item.Z,{key:controlName,icon,iconPosition:"left",className:classnames_default()("components-dropdown-menu__menu-item",{"is-active":isSelected}),isSelected,onClick:()=>{onChangeAlignment(controlName),onClose()},role:"menuitemradio",info},title)}))))}};return(0,react.createElement)(UIComponent,(0,esm_extends.Z)({},commonProps,extraProps))};function BlockAlignmentControl(props){return(0,react.createElement)(block_alignment_control_ui,(0,esm_extends.Z)({},props,{isToolbar:!1}))}function BlockAlignmentToolbar(props){return(0,react.createElement)(block_alignment_control_ui,(0,esm_extends.Z)({},props,{isToolbar:!0}))}const ALL_ALIGNMENTS=["left","center","right","wide","full"],WIDE_ALIGNMENTS=["wide","full"];function getValidAlignments(blockAlign){let validAlignments,hasWideBlockSupport=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],hasWideEnabled=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return validAlignments=Array.isArray(blockAlign)?ALL_ALIGNMENTS.filter((value=>blockAlign.includes(value))):!0===blockAlign?[...ALL_ALIGNMENTS]:[],!hasWideEnabled||!0===blockAlign&&!hasWideBlockSupport?(0,lodash.without)(validAlignments,...WIDE_ALIGNMENTS):validAlignments}const withToolbarControls=(0,create_higher_order_component.Z)((BlockEdit=>props=>{const{name:blockName}=props,validAlignments=useAvailableAlignments(getValidAlignments((0,build_module.Dx)(blockName,"align"),(0,build_module.zb)(blockName,"alignWide",!0))).map((_ref=>{let{name}=_ref;return name}));return(0,react.createElement)(react.Fragment,null,!!validAlignments.length&&(0,react.createElement)(block_controls,{group:"block",__experimentalShareWithChildBlocks:!0},(0,react.createElement)(BlockAlignmentControl,{value:props.attributes.align,onChange:nextAlign=>{if(!nextAlign){var _blockType$attributes,_blockType$attributes2;const blockType=(0,build_module.ck)(props.name);(null==blockType||null===(_blockType$attributes=blockType.attributes)||void 0===_blockType$attributes||null===(_blockType$attributes2=_blockType$attributes.align)||void 0===_blockType$attributes2?void 0:_blockType$attributes2.default)&&(nextAlign="")}props.setAttributes({align:nextAlign})},controls:validAlignments})),(0,react.createElement)(BlockEdit,props))}),"withToolbarControls"),withDataAlign=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{const{name,attributes}=props,{align}=attributes,validAlignments=useAvailableAlignments(getValidAlignments((0,build_module.Dx)(name,"align"),(0,build_module.zb)(name,"alignWide",!0)));if(void 0===align)return(0,react.createElement)(BlockListBlock,props);let wrapperProps=props.wrapperProps;return validAlignments.some((alignment=>alignment.name===align))&&(wrapperProps={...wrapperProps,"data-align":align}),(0,react.createElement)(BlockListBlock,(0,esm_extends.Z)({},props,{wrapperProps}))}));(0,hooks_build_module.KJ)("blocks.registerBlockType","core/align/addAttribute",(function addAttribute(settings){return(0,lodash.has)(settings.attributes,["align","type"])||(0,build_module.zb)(settings,"align")&&(settings.attributes={...settings.attributes,align:{type:"string",enum:[...ALL_ALIGNMENTS,""]}}),settings})),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/editor/align/with-data-align",withDataAlign),(0,hooks_build_module.KJ)("editor.BlockEdit","core/editor/align/with-toolbar-controls",withToolbarControls),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function addAssignedAlign(props,blockType,attributes){const{align}=attributes;return getValidAlignments((0,build_module.Dx)(blockType,"align"),(0,build_module.zb)(blockType,"alignWide",!0)).includes(align)&&(props.className=classnames_default()(`align${align}`,props.className)),props})),(0,hooks_build_module.KJ)("blocks.registerBlockType","core/lock/addAttribute",(function lock_addAttribute(settings){return(0,lodash.has)(settings.attributes,["lock","type"])||(settings.attributes={...settings.attributes,lock:{type:"object"}}),settings}));var text_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/text-control/index.js"),external_link=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/external-link/index.js"),body=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/panel/body.js"),context=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/tools-panel/context.js");const inspector_controls_groups={default:(0,slot_fill.up)("InspectorControls"),advanced:(0,slot_fill.up)("InspectorAdvancedControls"),dimensions:(0,slot_fill.up)("InspectorControlsDimensions"),typography:(0,slot_fill.up)("InspectorControlsTypography")};__webpack_require__("../../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");function InspectorControlsFill(_ref){var _groups$group;let{__experimentalGroup:group="default",children}=_ref;const isDisplayed=useDisplayBlockControls(),Fill=null===(_groups$group=inspector_controls_groups[group])||void 0===_groups$group?void 0:_groups$group.Fill;return Fill&&isDisplayed?(0,react.createElement)(style_provider.Z,{document},(0,react.createElement)(Fill,null,(fillProps=>{const value=(0,lodash.isEmpty)(fillProps)?null:fillProps;return(0,react.createElement)(context.h.Provider,{value},children)}))):null}const library_reset=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M7 11.5h10V13H7z"}));var check=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/check.js");const library_plus=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),more_vertical=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var dropdown_menu=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/dropdown-menu/index.js"),context_connect=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/ui/context/context-connect.js"),view_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/view/component.js"),use_context_system=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/ui/context/use-context-system.js"),hook=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/flex/flex/hook.js");const ALIGNMENTS={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-start",justify:"flex-end"},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"}},V_ALIGNMENTS={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-start",align:"flex-end"},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:{justify:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function useHStack(props){const{alignment="edge",children,direction,spacing=2,...otherProps}=(0,use_context_system.y)(props,"HStack"),align=function getAlignmentProps(alignment){let direction=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"row";if((0,lodash.isNil)(alignment))return{};const props="column"===direction?V_ALIGNMENTS:ALIGNMENTS;return alignment in props?props[alignment]:{align:alignment}}(alignment,direction),validChildren=function getValidChildren(children){return"string"==typeof children?[children]:react.Children.toArray(children).filter((child=>(0,react.isValidElement)(child)))}(children),propsForFlex={children:validChildren.map(((child,index)=>{const _key=child.key||`hstack-${index}`;return(0,context_connect.H)(child,["Spacer"])?(0,react.createElement)(flex_item_component.Z,(0,esm_extends.Z)({isBlock:!0,key:_key},child.props)):child})),direction,justify:"center",...align,...otherProps,gap:spacing};return(0,hook.k)(propsForFlex)}const h_stack_component=(0,context_connect.Iq)((function HStack(props,forwardedRef){const hStackProps=useHStack(props);return(0,react.createElement)(view_component.Z,(0,esm_extends.Z)({},hStackProps,{ref:forwardedRef}))}),"HStack");var text_hook=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/text/hook.js"),font_size=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/ui/utils/font-size.js"),colors_values=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/utils/colors-values.js"),config_values=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/utils/config-values.js");const heading_component=(0,context_connect.Iq)((function Heading(props,forwardedRef){const headerProps=function useHeading(props){const{as:asProp,level=2,...otherProps}=(0,use_context_system.y)(props,"Heading"),as=asProp||`h${level}`,a11yProps={};return"string"==typeof as&&"h"!==as[0]&&(a11yProps.role="heading",a11yProps["aria-level"]="string"==typeof level?parseInt(level):level),{...(0,text_hook.Z)({color:colors_values.DM.darkGray.heading,size:(0,font_size.gZ)(level),isBlock:!0,weight:config_values.Z.fontWeightHeading,...otherProps}),...a11yProps,as}}(props);return(0,react.createElement)(view_component.Z,(0,esm_extends.Z)({},headerProps,{ref:forwardedRef}))}),"Heading");var styles=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/tools-panel/styles.js"),use_cx=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js");const noop=()=>{},DefaultControlsGroup=_ref=>{let{items,onClose,toggleItem}=_ref;return items.length?(0,react.createElement)(menu_group.Z,null,items.map((_ref2=>{let[label,hasValue]=_ref2;const icon=hasValue?library_reset:check.Z,itemLabel=hasValue?(0,i18n_build_module.gB)((0,i18n_build_module.__)("Reset %s"),label):void 0;return(0,react.createElement)(menu_item.Z,{key:label,icon,isSelected:!0,disabled:!hasValue,label:itemLabel,onClick:()=>{toggleItem(label),onClose()},role:"menuitemcheckbox"},label)}))):null},OptionalControlsGroup=_ref3=>{let{items,onClose,toggleItem}=_ref3;return items.length?(0,react.createElement)(menu_group.Z,null,items.map((_ref4=>{let[label,isSelected]=_ref4;const itemLabel=isSelected?(0,i18n_build_module.gB)((0,i18n_build_module.__)("Hide and reset %s"),label):(0,i18n_build_module.gB)((0,i18n_build_module.__)("Show %s"),label);return(0,react.createElement)(menu_item.Z,{key:label,icon:isSelected&&check.Z,isSelected,label:itemLabel,onClick:()=>{toggleItem(label),onClose()},role:"menuitemcheckbox"},label)}))):null},tools_panel_header_component=(0,context_connect.Iq)(((props,forwardedRef)=>{const{areAllOptionalControlsHidden,dropdownMenuClassName,hasMenuItems,headingClassName,label:labelText,menuItems,resetAll,toggleItem,...headerProps}=function useToolsPanelHeader(props){const{className,...otherProps}=(0,use_context_system.y)(props,"ToolsPanelHeader"),cx=(0,use_cx.I)(),classes=(0,react.useMemo)((()=>cx(styles.FN,className)),[className]),dropdownMenuClassName=(0,react.useMemo)((()=>cx(styles.h_)),[]),headingClassName=(0,react.useMemo)((()=>cx(styles.d5)),[]),{menuItems,hasMenuItems,areAllOptionalControlsHidden}=(0,context.K)();return{...otherProps,areAllOptionalControlsHidden,dropdownMenuClassName,hasMenuItems,headingClassName,menuItems,className:classes}}(props);if(!labelText)return null;const defaultItems=Object.entries((null==menuItems?void 0:menuItems.default)||{}),optionalItems=Object.entries((null==menuItems?void 0:menuItems.optional)||{}),dropDownMenuIcon=areAllOptionalControlsHidden?library_plus:more_vertical,dropDownMenuLabelText=areAllOptionalControlsHidden?(0,i18n_build_module._x)("View and add options","Button label to reveal tool panel options"):(0,i18n_build_module._x)("View options","Button label to reveal tool panel options");return(0,react.createElement)(h_stack_component,(0,esm_extends.Z)({},headerProps,{ref:forwardedRef}),(0,react.createElement)(heading_component,{level:2,className:headingClassName},labelText),hasMenuItems&&(0,react.createElement)(dropdown_menu.Z,{icon:dropDownMenuIcon,label:dropDownMenuLabelText,menuProps:{className:dropdownMenuClassName},toggleProps:{isSmall:!0}},(_ref5=>{let{onClose=noop}=_ref5;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(DefaultControlsGroup,{items:defaultItems,onClose,toggleItem}),(0,react.createElement)(OptionalControlsGroup,{items:optionalItems,onClose,toggleItem}),(0,react.createElement)(menu_group.Z,null,(0,react.createElement)(menu_item.Z,{variant:"tertiary",onClick:()=>{resetAll(),onClose()}},(0,i18n_build_module.__)("Reset all"))))})))}),"ToolsPanelHeader"),generateMenuItems=_ref=>{let{panelItems,shouldReset}=_ref;const menuItems={default:{},optional:{}};return panelItems.forEach((_ref2=>{let{hasValue,isShownByDefault,label}=_ref2;menuItems[isShownByDefault?"default":"optional"][label]=!shouldReset&&hasValue()})),menuItems};function useToolsPanel(props){const{className,resetAll,panelId,hasInnerWrapper,shouldRenderPlaceholderItems,...otherProps}=(0,use_context_system.y)(props,"ToolsPanel"),isResetting=(0,react.useRef)(!1),wasResetting=isResetting.current;(0,react.useEffect)((()=>{wasResetting&&(isResetting.current=!1)}),[wasResetting]);const[panelItems,setPanelItems]=(0,react.useState)([]),[menuItems,setMenuItems]=(0,react.useState)({default:{},optional:{}});(0,react.useEffect)((()=>{const items=generateMenuItems({panelItems,shouldReset:!1});setMenuItems(items)}),[panelItems]);const[areAllOptionalControlsHidden,setAreAllOptionalControlsHidden]=(0,react.useState)(!1);(0,react.useEffect)((()=>{if(menuItems.optional){const optionalItems=Object.entries(menuItems.optional),allControlsHidden=optionalItems.length>0&&!optionalItems.some((_ref3=>{let[,isSelected]=_ref3;return isSelected}));setAreAllOptionalControlsHidden(allControlsHidden)}}),[menuItems.optional]);const cx=(0,use_cx.I)(),classes=(0,react.useMemo)((()=>{const hasDefaultMenuItems=(null==menuItems?void 0:menuItems.default)&&!!Object.keys(null==menuItems?void 0:menuItems.default).length,wrapperStyle=hasInnerWrapper&&styles.cg(2),emptyStyle=!hasDefaultMenuItems&&areAllOptionalControlsHidden&&styles.sq;return cx(styles.DK,wrapperStyle,emptyStyle,className)}),[className,hasInnerWrapper,menuItems,areAllOptionalControlsHidden]),panelContext={panelId,menuItems,registerPanelItem:item=>{setPanelItems((items=>[...items,item]))},deregisterPanelItem:label=>{const index=panelItems.findIndex((item=>item.label===label));-1!==index&&setPanelItems((items=>items.splice(index,1)))},flagItemCustomization:function(label){let group=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";setMenuItems({...menuItems,[group]:{...menuItems[group],[label]:!0}})},areAllOptionalControlsHidden,hasMenuItems:!!panelItems.length,isResetting:isResetting.current,shouldRenderPlaceholderItems};return{...otherProps,panelContext,resetAllItems:()=>{"function"==typeof resetAll&&(isResetting.current=!0,resetAll((()=>{const filters=[];return panelItems.forEach((item=>{item.resetAllFilter&&filters.push(item.resetAllFilter)})),filters})()));const resetMenuItems=generateMenuItems({panelItems,shouldReset:!0});setMenuItems(resetMenuItems)},toggleItem:label=>{const currentItem=panelItems.find((item=>item.label===label));if(!currentItem)return;const menuGroup=currentItem.isShownByDefault?"default":"optional",newMenuItems={...menuItems,[menuGroup]:{...menuItems[menuGroup],[label]:!menuItems[menuGroup][label]}};setMenuItems(newMenuItems)},className:classes}}var emotion_react_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+react@11.5.0_@babel+core@7.16.0+react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");const utils_ALIGNMENTS={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"}};var use_responsive_value=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/ui/utils/use-responsive-value.js");function useGrid(props){const{align,alignment,className,columnGap,columns=2,gap=3,isInline=!1,justify,rowGap,rows,templateColumns,templateRows,...otherProps}=(0,use_context_system.y)(props,"Grid"),columnsAsArray=Array.isArray(columns)?columns:[columns],column=(0,use_responsive_value.V)(columnsAsArray),rowsAsArray=Array.isArray(rows)?rows:[rows],row=(0,use_responsive_value.V)(rowsAsArray),gridTemplateColumns=templateColumns||!!columns&&`repeat( ${column}, 1fr )`,gridTemplateRows=templateRows||!!rows&&`repeat( ${row}, 1fr )`,cx=(0,use_cx.I)();return{...otherProps,className:(0,react.useMemo)((()=>{const alignmentProps=function utils_getAlignmentProps(alignment){return alignment?utils_ALIGNMENTS[alignment]:{}}(alignment),gridClasses=(0,emotion_react_browser_esm.iv)({alignItems:align,display:isInline?"inline-grid":"grid",gap:`calc( ${config_values.Z.gridBase} * ${gap} )`,gridTemplateColumns:gridTemplateColumns||void 0,gridTemplateRows:gridTemplateRows||void 0,gridRowGap:rowGap,gridColumnGap:columnGap,justifyContent:justify,verticalAlign:isInline?"middle":void 0,...alignmentProps},"","");return cx(gridClasses,className)}),[align,alignment,className,columnGap,gap,gridTemplateColumns,gridTemplateRows,isInline,justify,rowGap])}}const grid_component=(0,context_connect.Iq)((function Grid(props,forwardedRef){const gridProps=useGrid(props);return(0,react.createElement)(view_component.Z,(0,esm_extends.Z)({},gridProps,{ref:forwardedRef}))}),"Grid"),tools_panel_component=(0,context_connect.Iq)(((props,forwardedRef)=>{const{children,label,panelContext,resetAllItems,toggleItem,className}=useToolsPanel(props);return(0,react.createElement)(grid_component,{columns:2,className,ref:forwardedRef},(0,react.createElement)(context.h.Provider,{value:panelContext},(0,react.createElement)(tools_panel_header_component,{label,resetAll:resetAllItems,toggleItem}),children))}),"ToolsPanel");var use_dispatch=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js");const cleanEmptyObject=object=>{if(!(0,lodash.isObject)(object)||Array.isArray(object))return object;const cleanedNestedObjects=(0,lodash.pickBy)((0,lodash.mapValues)(object,cleanEmptyObject),lodash.identity);return(0,lodash.isEmpty)(cleanedNestedObjects)?void 0:cleanedNestedObjects};function BlockSupportToolsPanel(_ref){let{children,group,label}=_ref;const{clientId,attributes}=(0,use_select.Z)((select=>{const{getBlockAttributes,getSelectedBlockClientId}=select(store),selectedBlockClientId=getSelectedBlockClientId();return{clientId:selectedBlockClientId,attributes:getBlockAttributes(selectedBlockClientId)}}),[]),{updateBlockAttributes}=(0,use_dispatch.Z)(store);return(0,react.createElement)(tools_panel_component,{className:`${group}-block-support-panel`,label,resetAll:function(){let resetFilters=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{style}=attributes;let newAttributes={style};resetFilters.forEach((resetFilter=>{newAttributes={...newAttributes,...resetFilter(newAttributes)}})),newAttributes={...newAttributes,style:cleanEmptyObject(newAttributes.style)},updateBlockAttributes(clientId,newAttributes)},key:clientId,panelId:clientId,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0},children)}function BlockSupportSlotContainer(_ref){let{Slot,...props}=_ref;const toolsPanelContext=(0,react.useContext)(context.h);return(0,react.createElement)(Slot,(0,esm_extends.Z)({},props,{fillProps:toolsPanelContext}))}__webpack_require__("../../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");function InspectorControlsSlot(_ref){var _groups$group;let{__experimentalGroup:group="default",bubblesVirtually=!0,label,...props}=_ref;const Slot=null===(_groups$group=inspector_controls_groups[group])||void 0===_groups$group?void 0:_groups$group.Slot,slot=(0,use_slot.Z)(null==Slot?void 0:Slot.__unstableName);if(!Slot||!slot)return null;return Boolean(slot.fills&&slot.fills.length)?label?(0,react.createElement)(BlockSupportToolsPanel,{group,label},(0,react.createElement)(BlockSupportSlotContainer,(0,esm_extends.Z)({},props,{bubblesVirtually,Slot}))):(0,react.createElement)(Slot,(0,esm_extends.Z)({},props,{bubblesVirtually})):null}const InspectorControls=InspectorControlsFill;InspectorControls.Slot=InspectorControlsSlot;const InspectorAdvancedControls=props=>(0,react.createElement)(InspectorControlsFill,(0,esm_extends.Z)({},props,{__experimentalGroup:"advanced"}));InspectorAdvancedControls.Slot=props=>(0,react.createElement)(InspectorControlsSlot,(0,esm_extends.Z)({},props,{__experimentalGroup:"advanced"})),InspectorAdvancedControls.slotName="InspectorAdvancedControls";const inspector_controls=InspectorControls,ANCHOR_REGEX=/[\s#]/g;const withInspectorControl=(0,create_higher_order_component.Z)((BlockEdit=>props=>{if((0,build_module.zb)(props.name,"anchor")&&props.isSelected){const isWeb="web"===platform.Z.OS,textControl=(0,react.createElement)(text_control.Z,{className:"html-anchor-control",label:(0,i18n_build_module.__)("HTML anchor"),help:(0,react.createElement)(react.Fragment,null,(0,i18n_build_module.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),isWeb&&(0,react.createElement)(external_link.Z,{href:(0,i18n_build_module.__)("https://wordpress.org/support/article/page-jumps/")},(0,i18n_build_module.__)("Learn more about anchors"))),value:props.attributes.anchor||"",placeholder:isWeb?null:(0,i18n_build_module.__)("Add an anchor"),onChange:nextValue=>{nextValue=nextValue.replace(ANCHOR_REGEX,"-"),props.setAttributes({anchor:nextValue})},autoCapitalize:"none",autoComplete:"off"});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(BlockEdit,props),isWeb&&(0,react.createElement)(inspector_controls,{__experimentalGroup:"advanced"},textControl),!isWeb&&"core/heading"===props.name&&(0,react.createElement)(inspector_controls,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Heading settings")},textControl)))}return(0,react.createElement)(BlockEdit,props)}),"withInspectorControl");(0,hooks_build_module.KJ)("blocks.registerBlockType","core/anchor/attribute",(function anchor_addAttribute(settings){return(0,lodash.has)(settings.attributes,["anchor","type"])||(0,build_module.zb)(settings,"anchor")&&(settings.attributes={...settings.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),settings})),(0,hooks_build_module.KJ)("editor.BlockEdit","core/editor/anchor/with-inspector-control",withInspectorControl),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function addSaveProps(extraProps,blockType,attributes){return(0,build_module.zb)(blockType,"anchor")&&(extraProps.id=""===attributes.anchor?null:attributes.anchor),extraProps}));const custom_class_name_withInspectorControl=(0,create_higher_order_component.Z)((BlockEdit=>props=>(0,build_module.zb)(props.name,"customClassName",!0)&&props.isSelected?(0,react.createElement)(react.Fragment,null,(0,react.createElement)(BlockEdit,props),(0,react.createElement)(inspector_controls,{__experimentalGroup:"advanced"},(0,react.createElement)(text_control.Z,{autoComplete:"off",label:(0,i18n_build_module.__)("Additional CSS class(es)"),value:props.attributes.className||"",onChange:nextValue=>{props.setAttributes({className:""!==nextValue?nextValue:void 0})},help:(0,i18n_build_module.__)("Separate multiple classes with spaces.")}))):(0,react.createElement)(BlockEdit,props)),"withInspectorControl");(0,hooks_build_module.KJ)("blocks.registerBlockType","core/custom-class-name/attribute",(function custom_class_name_addAttribute(settings){return(0,build_module.zb)(settings,"customClassName",!0)&&(settings.attributes={...settings.attributes,className:{type:"string"}}),settings})),(0,hooks_build_module.KJ)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",custom_class_name_withInspectorControl),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function custom_class_name_addSaveProps(extraProps,blockType,attributes){return(0,build_module.zb)(blockType,"customClassName",!0)&&attributes.className&&(extraProps.className=classnames_default()(extraProps.className,attributes.className)),extraProps})),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function addGeneratedClassName(extraProps,blockType){return(0,build_module.zb)(blockType,"className",!0)&&("string"==typeof extraProps.className?extraProps.className=(0,lodash.uniq)([(0,build_module.Vk)(blockType.name),...extraProps.className.split(" ")]).join(" ").trim():extraProps.className=(0,build_module.Vk)(blockType.name)),extraProps}));var react_dom=__webpack_require__("../../../node_modules/.pnpm/react-dom@17.0.2_react@17.0.2/node_modules/react-dom/index.js"),use_instance_id=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js"),async_mode_provider_context=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/async-mode-provider/context.js"),use_viewport_match=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-viewport-match/index.js"),use_merge_refs=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-merge-refs/index.js"),raw_html=__webpack_require__("../../../node_modules/.pnpm/@wordpress+element@4.0.4/node_modules/@wordpress/element/build-module/raw-html.js");function withFilters(hookName){return(0,create_higher_order_component.Z)((OriginalComponent=>{const namespace="core/with-filters/"+hookName;let FilteredComponent;class FilteredComponentRenderer extends react.Component{constructor(){super(...arguments),function ensureFilteredComponent(){void 0===FilteredComponent&&(FilteredComponent=(0,hooks_build_module.O)(hookName,OriginalComponent))}()}componentDidMount(){FilteredComponentRenderer.instances.push(this),1===FilteredComponentRenderer.instances.length&&((0,hooks_build_module.KG)("hookRemoved",namespace,onHooksUpdated),(0,hooks_build_module.KG)("hookAdded",namespace,onHooksUpdated))}componentWillUnmount(){FilteredComponentRenderer.instances=(0,lodash.without)(FilteredComponentRenderer.instances,this),0===FilteredComponentRenderer.instances.length&&((0,hooks_build_module.iR)("hookRemoved",namespace),(0,hooks_build_module.iR)("hookAdded",namespace))}render(){return(0,react.createElement)(FilteredComponent,this.props)}}FilteredComponentRenderer.instances=[];const throttledForceUpdate=(0,lodash.debounce)((()=>{FilteredComponent=(0,hooks_build_module.O)(hookName,OriginalComponent),FilteredComponentRenderer.instances.forEach((instance=>{instance.forceUpdate()}))}),16);function onHooksUpdated(updatedHookName){updatedHookName===hookName&&throttledForceUpdate()}return FilteredComponentRenderer}),"withFilters")}var with_select=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/with-select/index.js"),with_dispatch=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/with-dispatch/index.js"),compose=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/higher-order/compose.js"),pure=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/higher-order/pure/index.js");const if_condition=predicate=>(0,create_higher_order_component.Z)((WrappedComponent=>props=>predicate(props)?(0,react.createElement)(WrappedComponent,props):null),"ifCondition");var safe_html=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/safe-html.js");const block_context_Context=(0,react.createContext)({});function BlockContextProvider(_ref){let{value,children}=_ref;const context=(0,react.useContext)(block_context_Context),nextValue=(0,react.useMemo)((()=>({...context,...value})),[context,value]);return(0,react.createElement)(block_context_Context.Provider,{value:nextValue,children})}const block_context=block_context_Context,DEFAULT_BLOCK_CONTEXT={},edit=withFilters("editor.BlockEdit")((props=>{const{attributes={},name}=props,blockType=(0,build_module.ck)(name),blockContext=(0,react.useContext)(block_context),context=(0,react.useMemo)((()=>blockType&&blockType.usesContext?(0,lodash.pick)(blockContext,blockType.usesContext):DEFAULT_BLOCK_CONTEXT),[blockType,blockContext]);if(!blockType)return null;const Component=blockType.edit||blockType.save;if(blockType.apiVersion>1)return(0,react.createElement)(Component,(0,esm_extends.Z)({},props,{context}));const generatedClassName=(0,build_module.zb)(blockType,"className",!0)?(0,build_module.Vk)(name):null,className=classnames_default()(generatedClassName,attributes.className);return(0,react.createElement)(Component,(0,esm_extends.Z)({},props,{context,className}))}));function BlockEdit(props){const{name,isSelected,clientId}=props,context={name,isSelected,clientId};return(0,react.createElement)(Provider,{value:(0,react.useMemo)((()=>context),Object.values(context))},(0,react.createElement)(edit,props))}var modal=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/modal/index.js");const more_horizontal=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));const warning=function Warning(_ref){let{className,actions,children,secondaryActions}=_ref;return(0,react.createElement)("div",{className:classnames_default()(className,"block-editor-warning")},(0,react.createElement)("div",{className:"block-editor-warning__contents"},(0,react.createElement)("p",{className:"block-editor-warning__message"},children),(react.Children.count(actions)>0||secondaryActions)&&(0,react.createElement)("div",{className:"block-editor-warning__actions"},react.Children.count(actions)>0&&react.Children.map(actions,((action,i)=>(0,react.createElement)("span",{key:i,className:"block-editor-warning__action"},action))),secondaryActions&&(0,react.createElement)(dropdown_menu.Z,{className:"block-editor-warning__secondary",icon:more_horizontal,label:(0,i18n_build_module.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,react.createElement)(menu_group.Z,null,secondaryActions.map(((item,pos)=>(0,react.createElement)(menu_item.Z,{onClick:item.onClick,key:pos},item.title)))))))))};var character=__webpack_require__("../../../node_modules/.pnpm/diff@4.0.2/node_modules/diff/lib/diff/character.js");function BlockView(_ref){let{title,rawContent,renderedContent,action,actionText,className}=_ref;return(0,react.createElement)("div",{className},(0,react.createElement)("div",{className:"block-editor-block-compare__content"},(0,react.createElement)("h2",{className:"block-editor-block-compare__heading"},title),(0,react.createElement)("div",{className:"block-editor-block-compare__html"},rawContent),(0,react.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,react.createElement)(raw_html.Z,null,(0,safe_html.Z)(renderedContent)))),(0,react.createElement)("div",{className:"block-editor-block-compare__action"},(0,react.createElement)(build_module_button.Z,{variant:"secondary",tabIndex:"0",onClick:action},actionText)))}const block_compare=function BlockCompare(_ref){let{block,onKeep,onConvert,convertor,convertButtonText}=_ref;const converted=function getConvertedContent(convertedBlock){const newContent=(0,lodash.castArray)(convertedBlock).map((item=>(0,build_module.kD)(item.name,item.attributes,item.innerBlocks)));return newContent.join("")}(convertor(block)),difference=function getDifference(originalContent,newContent){return(0,character.Kx)(originalContent,newContent).map(((item,pos)=>{const classes=classnames_default()({"block-editor-block-compare__added":item.added,"block-editor-block-compare__removed":item.removed});return(0,react.createElement)("span",{key:pos,className:classes},item.value)}))}(block.originalContent,converted);return(0,react.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,react.createElement)(BlockView,{title:(0,i18n_build_module.__)("Current"),className:"block-editor-block-compare__current",action:onKeep,actionText:(0,i18n_build_module.__)("Convert to HTML"),rawContent:block.originalContent,renderedContent:block.originalContent}),(0,react.createElement)(BlockView,{title:(0,i18n_build_module.__)("After Conversion"),className:"block-editor-block-compare__converted",action:onConvert,actionText:convertButtonText,rawContent:difference,renderedContent:converted}))};const blockToBlocks=block=>(0,build_module.AF)({HTML:block.originalContent}),block_invalid_warning=(0,compose.Z)([(0,with_select.Z)(((select,_ref3)=>{let{clientId}=_ref3;return{block:select(store).getBlock(clientId)}})),(0,with_dispatch.Z)(((dispatch,_ref4)=>{let{block}=_ref4;const{replaceBlock}=dispatch(store);return{convertToClassic(){replaceBlock(block.clientId,(block=>(0,build_module.j4)("core/freeform",{content:block.originalContent}))(block))},convertToHTML(){replaceBlock(block.clientId,(block=>(0,build_module.j4)("core/html",{content:block.originalContent}))(block))},convertToBlocks(){replaceBlock(block.clientId,blockToBlocks(block))},attemptBlockRecovery(){replaceBlock(block.clientId,(_ref2=>{let{name,attributes,innerBlocks}=_ref2;return(0,build_module.j4)(name,attributes,innerBlocks)})(block))}}}))])((function BlockInvalidWarning(_ref){let{convertToHTML,convertToBlocks,convertToClassic,attemptBlockRecovery,block}=_ref;const hasHTMLBlock=!!(0,build_module.ck)("core/html"),[compare,setCompare]=(0,react.useState)(!1),onCompare=(0,react.useCallback)((()=>setCompare(!0)),[]),onCompareClose=(0,react.useCallback)((()=>setCompare(!1)),[]),hiddenActions=(0,react.useMemo)((()=>[{title:(0,i18n_build_module._x)("Resolve","imperative verb"),onClick:onCompare},hasHTMLBlock&&{title:(0,i18n_build_module.__)("Convert to HTML"),onClick:convertToHTML},{title:(0,i18n_build_module.__)("Convert to Classic Block"),onClick:convertToClassic}].filter(Boolean)),[onCompare,convertToHTML,convertToClassic]);return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(warning,{actions:[(0,react.createElement)(build_module_button.Z,{key:"recover",onClick:attemptBlockRecovery,variant:"primary"},(0,i18n_build_module.__)("Attempt Block Recovery"))],secondaryActions:hiddenActions},(0,i18n_build_module.__)("This block contains unexpected or invalid content.")),compare&&(0,react.createElement)(modal.Z,{title:(0,i18n_build_module.__)("Resolve Block"),onRequestClose:onCompareClose,className:"block-editor-block-compare"},(0,react.createElement)(block_compare,{block,onKeep:convertToHTML,onConvert:convertToBlocks,convertor:blockToBlocks,convertButtonText:(0,i18n_build_module.__)("Convert to Blocks")})))})),block_crash_warning_warning=(0,react.createElement)(warning,{className:"block-editor-block-list__block-crash-warning"},(0,i18n_build_module.__)("This block has encountered an error and cannot be previewed.")),block_crash_warning=()=>block_crash_warning_warning;class BlockCrashBoundary extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}const block_crash_boundary=BlockCrashBoundary;var lib=__webpack_require__("../../../node_modules/.pnpm/react-autosize-textarea@7.1.0_react@17.0.2/node_modules/react-autosize-textarea/lib/index.js");const block_html=function BlockHTML(_ref){let{clientId}=_ref;const[html,setHtml]=(0,react.useState)(""),block=(0,use_select.Z)((select=>select(store).getBlock(clientId)),[clientId]),{updateBlock}=(0,use_dispatch.Z)(store);return(0,react.useEffect)((()=>{setHtml((0,build_module.Jo)(block))}),[block]),(0,react.createElement)(lib.Z,{className:"block-editor-block-list__block-html-textarea",value:html,onBlur:()=>{const blockType=(0,build_module.ck)(block.name);if(!blockType)return;const attributes=(0,build_module.DJ)(blockType,html,block.attributes),content=html||(0,build_module.kD)(blockType,attributes),isValid=!html||(0,build_module.cb)(blockType,attributes,content);updateBlock(clientId,{attributes,originalContent:content,isValid}),html||setHtml({content})},onChange:event=>setHtml(event.target.value)})};let updateQueue=makeQueue();const raf=fn=>schedule(fn,updateQueue);let writeQueue=makeQueue();raf.write=fn=>schedule(fn,writeQueue);let onStartQueue=makeQueue();raf.onStart=fn=>schedule(fn,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=fn=>schedule(fn,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=fn=>schedule(fn,onFinishQueue);let timeouts=[];raf.setTimeout=(handler,ms)=>{let time=raf.now()+ms,cancel=()=>{let i=timeouts.findIndex((t=>t.cancel==cancel));~i&&timeouts.splice(i,1),__raf.count-=~i?1:0},timeout={time,handler,cancel};return timeouts.splice(findTimeout(time),0,timeout),__raf.count+=1,start(),timeout};let findTimeout=time=>~(~timeouts.findIndex((t=>t.time>time))||~timeouts.length);raf.cancel=fn=>{updateQueue.delete(fn),writeQueue.delete(fn)},raf.sync=fn=>{sync=!0,raf.batchedUpdates(fn),sync=!1},raf.throttle=fn=>{let lastArgs;function queuedFn(){try{fn(...lastArgs)}finally{lastArgs=null}}function throttled(...args){lastArgs=args,raf.onStart(queuedFn)}return throttled.handler=fn,throttled.cancel=()=>{onStartQueue.delete(queuedFn),lastArgs=null},throttled};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=impl=>nativeRaf=impl,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=fn=>fn(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,sync=!1;function schedule(fn,queue){sync?(queue.delete(fn),fn(0)):(queue.add(fn),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let prevTs=ts;ts=raf.now();let count=findTimeout(ts);count&&(eachSafely(timeouts.splice(0,count),(t=>t.handler())),__raf.count-=count),onStartQueue.flush(),updateQueue.flush(prevTs?Math.min(64,ts-prevTs):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()}function makeQueue(){let next=new Set,current=next;return{add(fn){__raf.count+=current!=next||next.has(fn)?0:1,next.add(fn)},delete:fn=>(__raf.count-=current==next&&next.has(fn)?1:0,next.delete(fn)),flush(arg){current.size&&(next=new Set,__raf.count-=current.size,eachSafely(current,(fn=>fn(arg)&&next.add(fn))),__raf.count+=next.size,current=next)}}}function eachSafely(values,each){values.forEach((value=>{try{each(value)}catch(e){raf.catch(e)}}))}const __raf={count:0,clear(){ts=-1,timeouts=[],onStartQueue=makeQueue(),updateQueue=makeQueue(),onFrameQueue=makeQueue(),writeQueue=makeQueue(),onFinishQueue=makeQueue(),__raf.count=0}};function react_spring_shared_esm_noop(){}const react_spring_shared_esm_is={arr:Array.isArray,obj:a=>!!a&&"Object"===a.constructor.name,fun:a=>"function"==typeof a,str:a=>"string"==typeof a,num:a=>"number"==typeof a,und:a=>void 0===a};function isEqual(a,b){if(react_spring_shared_esm_is.arr(a)){if(!react_spring_shared_esm_is.arr(b)||a.length!==b.length)return!1;for(let i=0;iobj.forEach(fn);function eachProp(obj,fn,ctx){if(react_spring_shared_esm_is.arr(obj))for(let i=0;ireact_spring_shared_esm_is.und(a)?[]:react_spring_shared_esm_is.arr(a)?a:[a];function flush(queue,iterator){if(queue.size){const items=Array.from(queue);queue.clear(),react_spring_shared_esm_each(items,iterator)}}const flushCalls=(queue,...args)=>flush(queue,(fn=>fn(...args)));let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=react_spring_shared_esm_noop;var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:globals=>{globals.to&&(to=globals.to),globals.now&&(raf.now=globals.now),void 0!==globals.colors&&(colors$1=globals.colors),null!=globals.skipAnimation&&(skipAnimation=globals.skipAnimation),globals.createStringInterpolator&&(createStringInterpolator$1=globals.createStringInterpolator),globals.requestAnimationFrame&&raf.use(globals.requestAnimationFrame),globals.batchedUpdates&&(raf.batchedUpdates=globals.batchedUpdates),globals.willAdvance&&(willAdvance=globals.willAdvance),globals.frameLoop&&(raf.frameLoop=globals.frameLoop)}});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(animation){priority>animation.priority?(startQueue.add(animation),raf.onStart(flushStartQueue)):(startSafely(animation),raf(advance))},advance,sort(animation){if(priority)raf.onFrame((()=>frameLoop.sort(animation)));else{const prevIndex=currentFrame.indexOf(animation);~prevIndex&&(currentFrame.splice(prevIndex,1),startUnsafely(animation))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(animation){currentFrame.includes(animation)||startUnsafely(animation)}function startUnsafely(animation){currentFrame.splice(function findIndex(arr,test){const index=arr.findIndex(test);return index<0?arr.length:index}(currentFrame,(other=>other.priority>animation.priority)),0,animation)}function advance(dt){const nextFrame=prevFrame;for(let i=0;i0}const NUMBER="[-+]?\\d*\\.?\\d+";function call(...parts){return"\\(\\s*("+parts.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hsla=new RegExp("hsla"+call(NUMBER,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function hue2rgb(p,q,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p+6*(q-p)*t:t<.5?q:t<2/3?p+(q-p)*(2/3-t)*6:p}function hslToRgb(h,s,l){const q=l<.5?l*(1+s):l+s-l*s,p=2*l-q,r=hue2rgb(p,q,h+1/3),g=hue2rgb(p,q,h),b=hue2rgb(p,q,h-1/3);return Math.round(255*r)<<24|Math.round(255*g)<<16|Math.round(255*b)<<8}function parse255(str){const int=parseInt(str,10);return int<0?0:int>255?255:int}function parse360(str){return(parseFloat(str)%360+360)%360/360}function parse1(str){const num=parseFloat(str);return num<0?0:num>1?255:Math.round(255*num)}function parsePercentage(str){const int=parseFloat(str);return int<0?0:int>100?1:int/100}function colorToRgba(input){let int32Color=function normalizeColor(color){let match;return"number"==typeof color?color>>>0===color&&color>=0&&color<=4294967295?color:null:(match=hex6.exec(color))?parseInt(match[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[color]?colors$1[color]:(match=rgb.exec(color))?(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|255)>>>0:(match=rgba.exec(color))?(parse255(match[1])<<24|parse255(match[2])<<16|parse255(match[3])<<8|parse1(match[4]))>>>0:(match=hex3.exec(color))?parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+"ff",16)>>>0:(match=hex8.exec(color))?parseInt(match[1],16)>>>0:(match=hex4.exec(color))?parseInt(match[1]+match[1]+match[2]+match[2]+match[3]+match[3]+match[4]+match[4],16)>>>0:(match=hsl.exec(color))?(255|hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3])))>>>0:(match=hsla.exec(color))?(hslToRgb(parse360(match[1]),parsePercentage(match[2]),parsePercentage(match[3]))|parse1(match[4]))>>>0:null}(input);return null===int32Color?input:(int32Color=int32Color||0,`rgba(${(4278190080&int32Color)>>>24}, ${(16711680&int32Color)>>>16}, ${(65280&int32Color)>>>8}, ${(255&int32Color)/255})`)}const createInterpolator=(range,output,extrapolate)=>{if(react_spring_shared_esm_is.fun(range))return range;if(react_spring_shared_esm_is.arr(range))return createInterpolator({range,output,extrapolate});if(react_spring_shared_esm_is.str(range.output[0]))return createStringInterpolator$1(range);const config=range,outputRange=config.output,inputRange=config.range||[0,1],extrapolateLeft=config.extrapolateLeft||config.extrapolate||"extend",extrapolateRight=config.extrapolateRight||config.extrapolate||"extend",easing=config.easing||(t=>t);return input=>{const range=function findRange(input,inputRange){for(var i=1;i=input);++i);return i-1}(input,inputRange);return function interpolate(input,inputMin,inputMax,outputMin,outputMax,easing,extrapolateLeft,extrapolateRight,map){let result=map?map(input):input;if(resultinputMax){if("identity"===extrapolateRight)return result;"clamp"===extrapolateRight&&(result=inputMax)}if(outputMin===outputMax)return outputMin;if(inputMin===inputMax)return input<=inputMin?outputMin:outputMax;inputMin===-1/0?result=-result:inputMax===1/0?result-=inputMin:result=(result-inputMin)/(inputMax-inputMin);result=easing(result),outputMin===-1/0?result=-result:outputMax===1/0?result+=outputMin:result=result*(outputMax-outputMin)+outputMin;return result}(input,inputRange[range],inputRange[range+1],outputRange[range],outputRange[range+1],easing,extrapolateLeft,extrapolateRight,config.map)}};function react_spring_shared_esm_extends(){return react_spring_shared_esm_extends=Object.assign||function(target){for(var i=1;iBoolean(arg&&arg[$get]),getFluidValue=arg=>arg&&arg[$get]?arg[$get]():arg,getFluidObservers=target=>target[$observers]||null;function callFluidObservers(target,event){let observers=target[$observers];observers&&observers.forEach((observer=>{!function callFluidObserver(observer,event){observer.eventObserved?observer.eventObserved(event):observer(event)}(observer,event)}))}class FluidValue{constructor(get){if(this[$get]=void 0,this[$observers]=void 0,!get&&!(get=this.get))throw Error("Unknown getter");setFluidGetter(this,get)}}const setFluidGetter=(target,get)=>setHidden(target,$get,get);function addFluidObserver(target,observer){if(target[$get]){let observers=target[$observers];observers||setHidden(target,$observers,observers=new Set),observers.has(observer)||(observers.add(observer),target.observerAdded&&target.observerAdded(observers.size,observer))}return observer}function removeFluidObserver(target,observer){let observers=target[$observers];if(observers&&observers.has(observer)){const count=observers.size-1;count?observers.delete(observer):target[$observers]=null,target.observerRemoved&&target.observerRemoved(count,observer)}}const setHidden=(target,key,value)=>Object.defineProperty(target,key,{value,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i");let namedColorRegex;const rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,rgbaRound=(_,p1,p2,p3,p4)=>`rgba(${Math.round(p1)}, ${Math.round(p2)}, ${Math.round(p3)}, ${p4})`,createStringInterpolator=config=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const output=config.output.map((value=>getFluidValue(value).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),keyframes=output.map((value=>value.match(numberRegex).map(Number))),interpolators=keyframes[0].map(((_,i)=>keyframes.map((values=>{if(!(i in values))throw Error('The arity of each "output" value must be equal');return values[i]})))).map((output=>createInterpolator(react_spring_shared_esm_extends({},config,{output}))));return input=>{var _output$find;const missingUnit=!unitRegex.test(output[0])&&(null==(_output$find=output.find((value=>unitRegex.test(value))))?void 0:_output$find.replace(numberRegex,""));let i=0;return output[0].replace(numberRegex,(()=>`${interpolators[i++](input)}${missingUnit||""}`)).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=fn=>{const func=fn;let called=!1;if("function"!=typeof func)throw new TypeError(`${prefix}once requires a function parameter`);return(...args)=>{called||(func(...args),called=!0)}},warnInterpolate=once(console.warn);const warnDirectCall=once(console.warn);function isAnimatedString(value){return react_spring_shared_esm_is.str(value)&&("#"==value[0]||/\d/.test(value)||value in(colors$1||{}))}const react_spring_shared_esm_useOnce=effect=>(0,react.useEffect)(effect,emptyDeps),emptyDeps=[];function react_spring_shared_esm_useForceUpdate(){const update=(0,react.useState)()[1],mounted=(0,react.useState)(makeMountedRef)[0];return react_spring_shared_esm_useOnce(mounted.unmount),()=>{mounted.current&&update({})}}function makeMountedRef(){const mounted={current:!0,unmount:()=>()=>{mounted.current=!1}};return mounted}function react_spring_shared_esm_usePrev(value){const prevRef=(0,react.useRef)();return(0,react.useEffect)((()=>{prevRef.current=value})),prevRef.current}const react_spring_shared_esm_useLayoutEffect="undefined"!=typeof window&&window.document&&window.document.createElement?react.useLayoutEffect:react.useEffect,$node=Symbol.for("Animated:node"),getAnimated=owner=>owner&&owner[$node],setAnimated=(owner,node)=>{return obj=owner,key=$node,value=node,Object.defineProperty(obj,key,{value,writable:!0,configurable:!0});var obj,key,value},getPayload=owner=>owner&&owner[$node]&&owner[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{constructor(_value){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=_value,react_spring_shared_esm_is.num(this._value)&&(this.lastPosition=this._value)}static create(value){return new AnimatedValue(value)}getPayload(){return[this]}getValue(){return this._value}setValue(value,step){return react_spring_shared_esm_is.num(value)&&(this.lastPosition=value,step&&(value=Math.round(value/step)*step,this.done&&(this.lastPosition=value))),this._value!==value&&(this._value=value,!0)}reset(){const{done}=this;this.done=!1,react_spring_shared_esm_is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,done&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(value){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[value,value]})}static create(value){return new AnimatedString(value)}getValue(){let value=this._string;return null==value?this._string=this._toString(this._value):value}setValue(value){if(react_spring_shared_esm_is.str(value)){if(value==this._string)return!1;this._string=value,this._value=1}else{if(!super.setValue(value))return!1;this._string=null}return!0}reset(goal){goal&&(this._toString=createInterpolator({output:[this.getValue(),goal]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(source){super(),this.source=source,this.setValue(source)}getValue(animated){const values={};return eachProp(this.source,((source,key)=>{var value;(value=source)&&value[$node]===value?values[key]=source.getValue(animated):hasFluidValue(source)?values[key]=getFluidValue(source):animated||(values[key]=source)})),values}setValue(source){this.source=source,this.payload=this._makePayload(source)}reset(){this.payload&&react_spring_shared_esm_each(this.payload,(node=>node.reset()))}_makePayload(source){if(source){const payload=new Set;return eachProp(source,this._addToPayload,payload),Array.from(payload)}}_addToPayload(source){TreeContext.dependencies&&hasFluidValue(source)&&TreeContext.dependencies.add(source);const payload=getPayload(source);payload&&react_spring_shared_esm_each(payload,(node=>this.add(node)))}}class AnimatedArray extends AnimatedObject{constructor(source){super(source)}static create(source){return new AnimatedArray(source)}getValue(){return this.source.map((node=>node.getValue()))}setValue(source){const payload=this.getPayload();return source.length==payload.length?payload.map(((node,i)=>node.setValue(source[i]))).some(Boolean):(super.setValue(source.map(makeAnimated)),!0)}}function makeAnimated(value){return(isAnimatedString(value)?AnimatedString:AnimatedValue).create(value)}function getAnimatedType(value){const parentNode=getAnimated(value);return parentNode?parentNode.constructor:react_spring_shared_esm_is.arr(value)?AnimatedArray:isAnimatedString(value)?AnimatedString:AnimatedValue}function react_spring_animated_esm_extends(){return react_spring_animated_esm_extends=Object.assign||function(target){for(var i=1;i{const hasInstance=!react_spring_shared_esm_is.fun(Component)||Component.prototype&&Component.prototype.isReactComponent;return(0,react.forwardRef)(((givenProps,givenRef)=>{const instanceRef=(0,react.useRef)(null),ref=hasInstance&&(0,react.useCallback)((value=>{instanceRef.current=function updateRef(ref,value){ref&&(react_spring_shared_esm_is.fun(ref)?ref(value):ref.current=value);return value}(givenRef,value)}),[givenRef]),[props,deps]=function getAnimatedState(props,host){const dependencies=new Set;TreeContext.dependencies=dependencies,props.style&&(props=react_spring_animated_esm_extends({},props,{style:host.createAnimatedStyle(props.style)}));return props=new AnimatedObject(props),TreeContext.dependencies=null,[props,dependencies]}(givenProps,host),forceUpdate=react_spring_shared_esm_useForceUpdate(),callback=()=>{const instance=instanceRef.current;if(hasInstance&&!instance)return;!1===(!!instance&&host.applyAnimatedValues(instance,props.getValue(!0)))&&forceUpdate()},observer=new PropsObserver(callback,deps),observerRef=(0,react.useRef)();react_spring_shared_esm_useLayoutEffect((()=>{const lastObserver=observerRef.current;observerRef.current=observer,react_spring_shared_esm_each(deps,(dep=>addFluidObserver(dep,observer))),lastObserver&&(react_spring_shared_esm_each(lastObserver.deps,(dep=>removeFluidObserver(dep,lastObserver))),raf.cancel(lastObserver.update))})),(0,react.useEffect)(callback,[]),react_spring_shared_esm_useOnce((()=>()=>{const observer=observerRef.current;react_spring_shared_esm_each(observer.deps,(dep=>removeFluidObserver(dep,observer)))}));const usedProps=host.getComponentProps(props.getValue());return react.createElement(Component,react_spring_animated_esm_extends({},usedProps,{ref}))}))};class PropsObserver{constructor(update,deps){this.update=update,this.deps=deps}eventObserved(event){"change"==event.type&&raf.write(this.update)}}const cacheKey=Symbol.for("AnimatedComponent"),getDisplayName=arg=>react_spring_shared_esm_is.str(arg)?arg:arg&&react_spring_shared_esm_is.str(arg.displayName)?arg.displayName:react_spring_shared_esm_is.fun(arg)&&arg.name||null;function react_spring_core_esm_extends(){return react_spring_core_esm_extends=Object.assign||function(target){for(var i=1;i!0===value||!!(key&&value&&(react_spring_shared_esm_is.fun(value)?value(key):react_spring_shared_esm_toArray(value).includes(key))),resolveProp=(prop,key)=>react_spring_shared_esm_is.obj(prop)?key&&prop[key]:prop,getDefaultProp=(props,key)=>!0===props.default?props[key]:props.default?props.default[key]:void 0,noopTransform=value=>value,getDefaultProps=(props,transform=noopTransform)=>{let keys=DEFAULT_PROPS;props.default&&!0!==props.default&&(props=props.default,keys=Object.keys(props));const defaults={};for(const key of keys){const value=transform(props[key],key);react_spring_shared_esm_is.und(value)||(defaults[key]=value)}return defaults},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function inferTo(props){const to=function getForwardProps(props){const forward={};let count=0;if(eachProp(props,((value,prop)=>{RESERVED_PROPS[prop]||(forward[prop]=value,count++)})),count)return forward}(props);if(to){const out={to};return eachProp(props,((val,key)=>key in to||(out[key]=val))),out}return react_spring_core_esm_extends({},props)}function computeGoal(value){return value=getFluidValue(value),react_spring_shared_esm_is.arr(value)?value.map(computeGoal):isAnimatedString(value)?globals.createStringInterpolator({range:[0,1],output:[value,value]})(1):value}function hasProps(props){for(const _ in props)return!0;return!1}function isAsyncTo(to){return react_spring_shared_esm_is.fun(to)||react_spring_shared_esm_is.arr(to)&&react_spring_shared_esm_is.obj(to[0])}function detachRefs(ctrl,ref){var _ctrl$ref;null==(_ctrl$ref=ctrl.ref)||_ctrl$ref.delete(ctrl),null==ref||ref.delete(ctrl)}function replaceRef(ctrl,ref){var _ctrl$ref2;ref&&ctrl.ref!==ref&&(null==(_ctrl$ref2=ctrl.ref)||_ctrl$ref2.delete(ctrl),ref.add(ctrl),ctrl.ref=ref)}const defaults=react_spring_core_esm_extends({},{tension:170,friction:26},{mass:1,damping:1,easing:t=>t,clamp:!1});class AnimationConfig{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,defaults)}}function sanitizeConfig(config,props){if(react_spring_shared_esm_is.und(props.decay)){const isTensionConfig=!react_spring_shared_esm_is.und(props.tension)||!react_spring_shared_esm_is.und(props.friction);!isTensionConfig&&react_spring_shared_esm_is.und(props.frequency)&&react_spring_shared_esm_is.und(props.damping)&&react_spring_shared_esm_is.und(props.mass)||(config.duration=void 0,config.decay=void 0),isTensionConfig&&(config.frequency=void 0)}else config.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(callId,{key,props,defaultProps,state,actions}){return new Promise(((resolve,reject)=>{var _props$cancel;let delay,timeout,cancel=matchProp(null!=(_props$cancel=props.cancel)?_props$cancel:null==defaultProps?void 0:defaultProps.cancel,key);if(cancel)onStart();else{react_spring_shared_esm_is.und(props.pause)||(state.paused=matchProp(props.pause,key));let pause=null==defaultProps?void 0:defaultProps.pause;!0!==pause&&(pause=state.paused||matchProp(pause,key)),delay=callProp(props.delay||0,key),pause?(state.resumeQueue.add(onResume),actions.pause()):(actions.resume(),onResume())}function onPause(){state.resumeQueue.add(onResume),state.timeouts.delete(timeout),timeout.cancel(),delay=timeout.time-raf.now()}function onResume(){delay>0?(timeout=raf.setTimeout(onStart,delay),state.pauseQueue.add(onPause),state.timeouts.add(timeout)):onStart()}function onStart(){state.pauseQueue.delete(onPause),state.timeouts.delete(timeout),callId<=(state.cancelId||0)&&(cancel=!0);try{actions.start(react_spring_core_esm_extends({},props,{callId,cancel}),resolve)}catch(err){reject(err)}}}))}const getCombinedResult=(target,results)=>1==results.length?results[0]:results.some((result=>result.cancelled))?getCancelledResult(target.get()):results.every((result=>result.noop))?getNoopResult(target.get()):getFinishedResult(target.get(),results.every((result=>result.finished))),getNoopResult=value=>({value,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(value,finished,cancelled=!1)=>({value,finished,cancelled}),getCancelledResult=value=>({value,cancelled:!0,finished:!1});function runAsync(to,props,state,target){const{callId,parentId,onRest}=props,{asyncTo:prevTo,promise:prevPromise}=state;return parentId||to!==prevTo||props.reset?state.promise=(async()=>{state.asyncId=callId,state.asyncTo=to;const defaultProps=getDefaultProps(props,((value,key)=>"onRest"===key?void 0:value));let preventBail,bail;const bailPromise=new Promise(((resolve,reject)=>(preventBail=resolve,bail=reject))),bailIfEnded=bailSignal=>{const bailResult=callId<=(state.cancelId||0)&&getCancelledResult(target)||callId!==state.asyncId&&getFinishedResult(target,!1);if(bailResult)throw bailSignal.result=bailResult,bail(bailSignal),bailSignal},animate=(arg1,arg2)=>{const bailSignal=new BailSignal,skipAnimationSignal=new SkipAniamtionSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(state),skipAnimationSignal.result=getFinishedResult(target,!1),bail(skipAnimationSignal),skipAnimationSignal;bailIfEnded(bailSignal);const props=react_spring_shared_esm_is.obj(arg1)?react_spring_core_esm_extends({},arg1):react_spring_core_esm_extends({},arg2,{to:arg1});props.parentId=callId,eachProp(defaultProps,((value,key)=>{react_spring_shared_esm_is.und(props[key])&&(props[key]=value)}));const result=await target.start(props);return bailIfEnded(bailSignal),state.paused&&await new Promise((resume=>{state.resumeQueue.add(resume)})),result})()};let result;if(globals.skipAnimation)return stopAsync(state),getFinishedResult(target,!1);try{let animating;animating=react_spring_shared_esm_is.arr(to)?(async queue=>{for(const props of queue)await animate(props)})(to):Promise.resolve(to(animate,target.stop.bind(target))),await Promise.all([animating.then(preventBail),bailPromise]),result=getFinishedResult(target.get(),!0,!1)}catch(err){if(err instanceof BailSignal)result=err.result;else{if(!(err instanceof SkipAniamtionSignal))throw err;result=err.result}}finally{callId==state.asyncId&&(state.asyncId=parentId,state.asyncTo=parentId?prevTo:void 0,state.promise=parentId?prevPromise:void 0)}return react_spring_shared_esm_is.fun(onRest)&&raf.batchedUpdates((()=>{onRest(result,target,target.item)})),result})():prevPromise}function stopAsync(state,cancelId){flush(state.timeouts,(t=>t.cancel())),state.pauseQueue.clear(),state.resumeQueue.clear(),state.asyncId=state.asyncTo=state.promise=void 0,cancelId&&(state.cancelId=cancelId)}class BailSignal extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class SkipAniamtionSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=value=>value instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...args){super(...args),this.id=nextId$1++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(priority){this._priority!=priority&&(this._priority=priority,this._onPriorityChange(priority))}get(){const node=getAnimated(this);return node&&node.getValue()}to(...args){return globals.to(this,args)}interpolate(...args){return function react_spring_shared_esm_deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}(),globals.to(this,args)}toJSON(){return this.get()}observerAdded(count){1==count&&this._attach()}observerRemoved(count){0==count&&this._detach()}_attach(){}_detach(){}_onChange(value,idle=!1){callFluidObservers(this,{type:"change",parent:this,value,idle})}_onPriorityChange(priority){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority})}}const $P=Symbol.for("SpringPhase"),hasAnimated=target=>(1&target[$P])>0,isAnimating=target=>(2&target[$P])>0,isPaused=target=>(4&target[$P])>0,setActiveBit=(target,active)=>active?target[$P]|=3:target[$P]&=-3,setPausedBit=(target,paused)=>paused?target[$P]|=4:target[$P]&=-5;class SpringValue extends FrameValue{constructor(arg1,arg2){if(super(),this.key=void 0,this.animation=new Animation,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!react_spring_shared_esm_is.und(arg1)||!react_spring_shared_esm_is.und(arg2)){const props=react_spring_shared_esm_is.obj(arg1)?react_spring_core_esm_extends({},arg1):react_spring_core_esm_extends({},arg2,{from:arg1});react_spring_shared_esm_is.und(props.default)&&(props.default=!0),this.start(props)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const node=getAnimated(this);return node instanceof AnimatedValue?node.lastVelocity||0:node.getPayload().map((node=>node.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}advance(dt){let idle=!0,changed=!1;const anim=this.animation;let{config,toValues}=anim;const payload=getPayload(anim.to);!payload&&hasFluidValue(anim.to)&&(toValues=react_spring_shared_esm_toArray(getFluidValue(anim.to))),anim.values.forEach(((node,i)=>{if(node.done)return;const to=node.constructor==AnimatedString?1:payload?payload[i].lastPosition:toValues[i];let finished=anim.immediate,position=to;if(!finished){if(position=node.lastPosition,config.tension<=0)return void(node.done=!0);let elapsed=node.elapsedTime+=dt;const from=anim.fromValues[i],v0=null!=node.v0?node.v0:node.v0=react_spring_shared_esm_is.arr(config.velocity)?config.velocity[i]:config.velocity;let velocity;if(react_spring_shared_esm_is.und(config.duration))if(config.decay){const decay=!0===config.decay?.998:config.decay,e=Math.exp(-(1-decay)*elapsed);position=from+v0/(1-decay)*(1-e),finished=Math.abs(node.lastPosition-position)<.1,velocity=v0*e}else{velocity=null==node.lastVelocity?v0:node.lastVelocity;const precision=config.precision||(from==to?.005:Math.min(1,.001*Math.abs(to-from))),restVelocity=config.restVelocity||precision/10,bounceFactor=config.clamp?0:config.bounce,canBounce=!react_spring_shared_esm_is.und(bounceFactor),isGrowing=from==to?node.v0>0:fromrestVelocity,isMoving||(finished=Math.abs(to-position)<=precision,!finished));++n){canBounce&&(isBouncing=position==to||position>to==isGrowing,isBouncing&&(velocity=-velocity*bounceFactor,position=to));velocity+=(1e-6*-config.tension*(position-to)+.001*-config.friction*velocity)/config.mass*step,position+=velocity*step}}else{let p=1;config.duration>0&&(this._memoizedDuration!==config.duration&&(this._memoizedDuration=config.duration,node.durationProgress>0&&(node.elapsedTime=config.duration*node.durationProgress,elapsed=node.elapsedTime+=dt)),p=(config.progress||0)+elapsed/this._memoizedDuration,p=p>1?1:p<0?0:p,node.durationProgress=p),position=from+config.easing(p)*(to-from),velocity=(position-node.lastPosition)/dt,finished=1==p}node.lastVelocity=velocity,Number.isNaN(position)&&(console.warn("Got NaN while animating:",this),finished=!0)}payload&&!payload[i].done&&(finished=!1),finished?node.done=!0:idle=!1,node.setValue(position,config.round)&&(changed=!0)}));const node=getAnimated(this),currVal=node.getValue();if(idle){const finalVal=getFluidValue(anim.to);currVal===finalVal&&!changed||config.decay?changed&&config.decay&&this._onChange(currVal):(node.setValue(finalVal),this._onChange(finalVal)),this._stop()}else changed&&this._onChange(currVal)}set(value){return raf.batchedUpdates((()=>{this._stop(),this._focus(value),this._set(value)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to,config}=this.animation;raf.batchedUpdates((()=>{this._onStart(),config.decay||this._set(to,!1),this._stop()}))}return this}update(props){return(this.queue||(this.queue=[])).push(props),this}start(to,arg2){let queue;return react_spring_shared_esm_is.und(to)?(queue=this.queue||[],this.queue=[]):queue=[react_spring_shared_esm_is.obj(to)?to:react_spring_core_esm_extends({},arg2,{to})],Promise.all(queue.map((props=>this._update(props)))).then((results=>getCombinedResult(this,results)))}stop(cancel){const{to}=this.animation;return this._focus(this.get()),stopAsync(this._state,cancel&&this._lastCallId),raf.batchedUpdates((()=>this._stop(to,cancel))),this}reset(){this._update({reset:!0})}eventObserved(event){"change"==event.type?this._start():"priority"==event.type&&(this.priority=event.priority+1)}_prepareNode(props){const key=this.key||"";let{to,from}=props;to=react_spring_shared_esm_is.obj(to)?to[key]:to,(null==to||isAsyncTo(to))&&(to=void 0),from=react_spring_shared_esm_is.obj(from)?from[key]:from,null==from&&(from=void 0);const range={to,from};return hasAnimated(this)||(props.reverse&&([to,from]=[from,to]),from=getFluidValue(from),react_spring_shared_esm_is.und(from)?getAnimated(this)||this._set(to):this._set(from)),range}_update(_ref,isLoop){let props=react_spring_core_esm_extends({},_ref);const{key,defaultProps}=this;props.default&&Object.assign(defaultProps,getDefaultProps(props,((value,prop)=>/^on/.test(prop)?resolveProp(value,key):value))),mergeActiveFn(this,props,"onProps"),sendEvent(this,"onProps",props,this);const range=this._prepareNode(props);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const state=this._state;return scheduleProps(++this._lastCallId,{key,props,defaultProps,state,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(state.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(state.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,range)}}).then((result=>{if(props.loop&&result.finished&&(!isLoop||!result.noop)){const nextProps=createLoopUpdate(props);if(nextProps)return this._update(nextProps,!0)}return result}))}_merge(range,props,resolve){if(props.cancel)return this.stop(!0),resolve(getCancelledResult(this));const hasToProp=!react_spring_shared_esm_is.und(range.to),hasFromProp=!react_spring_shared_esm_is.und(range.from);if(hasToProp||hasFromProp){if(!(props.callId>this._lastToId))return resolve(getCancelledResult(this));this._lastToId=props.callId}const{key,defaultProps,animation:anim}=this,{to:prevTo,from:prevFrom}=anim;let{to=prevTo,from=prevFrom}=range;!hasFromProp||hasToProp||props.default&&!react_spring_shared_esm_is.und(to)||(to=from),props.reverse&&([to,from]=[from,to]);const hasFromChanged=!isEqual(from,prevFrom);hasFromChanged&&(anim.from=from),from=getFluidValue(from);const hasToChanged=!isEqual(to,prevTo);hasToChanged&&this._focus(to);const hasAsyncTo=isAsyncTo(props.to),{config}=anim,{decay,velocity}=config;(hasToProp||hasFromProp)&&(config.velocity=0),props.config&&!hasAsyncTo&&function mergeConfig(config,newConfig,defaultConfig){defaultConfig&&(sanitizeConfig(defaultConfig=react_spring_core_esm_extends({},defaultConfig),newConfig),newConfig=react_spring_core_esm_extends({},defaultConfig,newConfig)),sanitizeConfig(config,newConfig),Object.assign(config,newConfig);for(const key in defaults)null==config[key]&&(config[key]=defaults[key]);let{mass,frequency,damping}=config;return react_spring_shared_esm_is.und(frequency)||(frequency<.01&&(frequency=.01),damping<0&&(damping=0),config.tension=Math.pow(2*Math.PI/frequency,2)*mass,config.friction=4*Math.PI*damping*mass/frequency),config}(config,callProp(props.config,key),props.config!==defaultProps.config?callProp(defaultProps.config,key):void 0);let node=getAnimated(this);if(!node||react_spring_shared_esm_is.und(to))return resolve(getFinishedResult(this,!0));const reset=react_spring_shared_esm_is.und(props.reset)?hasFromProp&&!props.default:!react_spring_shared_esm_is.und(from)&&matchProp(props.reset,key),value=reset?from:this.get(),goal=computeGoal(to),isAnimatable=react_spring_shared_esm_is.num(goal)||react_spring_shared_esm_is.arr(goal)||isAnimatedString(goal),immediate=!hasAsyncTo&&(!isAnimatable||matchProp(defaultProps.immediate||props.immediate,key));if(hasToChanged){const nodeType=getAnimatedType(to);if(nodeType!==node.constructor){if(!immediate)throw Error(`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`);node=this._set(goal)}}const goalType=node.constructor;let started=hasFluidValue(to),finished=!1;if(!started){const hasValueChanged=reset||!hasAnimated(this)&&hasFromChanged;(hasToChanged||hasValueChanged)&&(finished=isEqual(computeGoal(value),goal),started=!finished),(isEqual(anim.immediate,immediate)||immediate)&&isEqual(config.decay,decay)&&isEqual(config.velocity,velocity)||(started=!0)}if(finished&&isAnimating(this)&&(anim.changed&&!reset?started=!0:started||this._stop(prevTo)),!hasAsyncTo&&((started||hasFluidValue(prevTo))&&(anim.values=node.getPayload(),anim.toValues=hasFluidValue(to)?null:goalType==AnimatedString?[1]:react_spring_shared_esm_toArray(goal)),anim.immediate!=immediate&&(anim.immediate=immediate,immediate||reset||this._set(prevTo)),started)){const{onRest}=anim;react_spring_shared_esm_each(ACTIVE_EVENTS,(type=>mergeActiveFn(this,props,type)));const result=getFinishedResult(this,checkFinished(this,prevTo));flushCalls(this._pendingCalls,result),this._pendingCalls.add(resolve),anim.changed&&raf.batchedUpdates((()=>{anim.changed=!reset,null==onRest||onRest(result,this),reset?callProp(defaultProps.onRest,result):null==anim.onStart||anim.onStart(result,this)}))}reset&&this._set(value),hasAsyncTo?resolve(runAsync(props.to,props,this._state,this)):started?this._start():isAnimating(this)&&!hasToChanged?this._pendingCalls.add(resolve):resolve(getNoopResult(value))}_focus(value){const anim=this.animation;value!==anim.to&&(getFluidObservers(this)&&this._detach(),anim.to=value,getFluidObservers(this)&&this._attach())}_attach(){let priority=0;const{to}=this.animation;hasFluidValue(to)&&(addFluidObserver(to,this),isFrameValue(to)&&(priority=to.priority+1)),this.priority=priority}_detach(){const{to}=this.animation;hasFluidValue(to)&&removeFluidObserver(to,this)}_set(arg,idle=!0){const value=getFluidValue(arg);if(!react_spring_shared_esm_is.und(value)){const oldNode=getAnimated(this);if(!oldNode||!isEqual(value,oldNode.getValue())){const nodeType=getAnimatedType(value);oldNode&&oldNode.constructor==nodeType?oldNode.setValue(value):setAnimated(this,nodeType.create(value)),oldNode&&raf.batchedUpdates((()=>{this._onChange(value,idle)}))}}return getAnimated(this)}_onStart(){const anim=this.animation;anim.changed||(anim.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,anim.to)),this))}_onChange(value,idle){idle||(this._onStart(),callProp(this.animation.onChange,value,this)),callProp(this.defaultProps.onChange,value,this),super._onChange(value,idle)}_start(){const anim=this.animation;getAnimated(this).reset(getFluidValue(anim.to)),anim.immediate||(anim.fromValues=anim.values.map((node=>node.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(goal,cancel){if(isAnimating(this)){setActiveBit(this,!1);const anim=this.animation;react_spring_shared_esm_each(anim.values,(node=>{node.done=!0})),anim.toValues&&(anim.onChange=anim.onPause=anim.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const result=cancel?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=goal?goal:anim.to));flushCalls(this._pendingCalls,result),anim.changed&&(anim.changed=!1,sendEvent(this,"onRest",result,this))}}}function checkFinished(target,to){const goal=computeGoal(to);return isEqual(computeGoal(target.get()),goal)}function createLoopUpdate(props,loop=props.loop,to=props.to){let loopRet=callProp(loop);if(loopRet){const overrides=!0!==loopRet&&inferTo(loopRet),reverse=(overrides||props).reverse,reset=!overrides||overrides.reset;return createUpdate(react_spring_core_esm_extends({},props,{loop,default:!1,pause:void 0,to:!reverse||isAsyncTo(to)?to:void 0,from:reset?props.from:void 0,reset},overrides))}}function createUpdate(props){const{to,from}=props=inferTo(props),keys=new Set;return react_spring_shared_esm_is.obj(to)&&findDefined(to,keys),react_spring_shared_esm_is.obj(from)&&findDefined(from,keys),props.keys=keys.size?Array.from(keys):null,props}function declareUpdate(props){const update=createUpdate(props);return react_spring_shared_esm_is.und(update.default)&&(update.default=getDefaultProps(update)),update}function findDefined(values,keys){eachProp(values,((value,key)=>null!=value&&keys.add(key)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(target,props,type){target.animation[type]=props[type]!==getDefaultProp(props,type)?resolveProp(props[type],target.key):void 0}function sendEvent(target,type,...args){var _target$animation$typ,_target$animation,_target$defaultProps$,_target$defaultProps;null==(_target$animation$typ=(_target$animation=target.animation)[type])||_target$animation$typ.call(_target$animation,...args),null==(_target$defaultProps$=(_target$defaultProps=target.defaultProps)[type])||_target$defaultProps$.call(_target$defaultProps,...args)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(props,flush){this.id=nextId++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),flush&&(this._flush=flush),props&&this.start(react_spring_core_esm_extends({default:!0},props))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((spring=>spring.idle))}get item(){return this._item}set item(item){this._item=item}get(){const values={};return this.each(((spring,key)=>values[key]=spring.get())),values}set(values){for(const key in values){const value=values[key];react_spring_shared_esm_is.und(value)||this.springs[key].set(value)}}update(props){return props&&this.queue.push(createUpdate(props)),this}start(props){let{queue}=this;return props?queue=react_spring_shared_esm_toArray(props).map(createUpdate):this.queue=[],this._flush?this._flush(this,queue):(prepareKeys(this,queue),flushUpdateQueue(this,queue))}stop(arg,keys){if(arg!==!!arg&&(keys=arg),keys){const springs=this.springs;react_spring_shared_esm_each(react_spring_shared_esm_toArray(keys),(key=>springs[key].stop(!!arg)))}else stopAsync(this._state,this._lastAsyncId),this.each((spring=>spring.stop(!!arg)));return this}pause(keys){if(react_spring_shared_esm_is.und(keys))this.start({pause:!0});else{const springs=this.springs;react_spring_shared_esm_each(react_spring_shared_esm_toArray(keys),(key=>springs[key].pause()))}return this}resume(keys){if(react_spring_shared_esm_is.und(keys))this.start({pause:!1});else{const springs=this.springs;react_spring_shared_esm_each(react_spring_shared_esm_toArray(keys),(key=>springs[key].resume()))}return this}each(iterator){eachProp(this.springs,iterator)}_onFrame(){const{onStart,onChange,onRest}=this._events,active=this._active.size>0,changed=this._changed.size>0;(active&&!this._started||changed&&!this._started)&&(this._started=!0,flush(onStart,(([onStart,result])=>{result.value=this.get(),onStart(result,this,this._item)})));const idle=!active&&this._started,values=changed||idle&&onRest.size?this.get():null;changed&&onChange.size&&flush(onChange,(([onChange,result])=>{result.value=values,onChange(result,this,this._item)})),idle&&(this._started=!1,flush(onRest,(([onRest,result])=>{result.value=values,onRest(result,this,this._item)})))}eventObserved(event){if("change"==event.type)this._changed.add(event.parent),event.idle||this._active.add(event.parent);else{if("idle"!=event.type)return;this._active.delete(event.parent)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(ctrl,queue){return Promise.all(queue.map((props=>flushUpdate(ctrl,props)))).then((results=>getCombinedResult(ctrl,results)))}async function flushUpdate(ctrl,props,isLoop){const{keys,to,from,loop,onRest,onResolve}=props,defaults=react_spring_shared_esm_is.obj(props.default)&&props.default;loop&&(props.loop=!1),!1===to&&(props.to=null),!1===from&&(props.from=null);const asyncTo=react_spring_shared_esm_is.arr(to)||react_spring_shared_esm_is.fun(to)?to:void 0;asyncTo?(props.to=void 0,props.onRest=void 0,defaults&&(defaults.onRest=void 0)):react_spring_shared_esm_each(BATCHED_EVENTS,(key=>{const handler=props[key];if(react_spring_shared_esm_is.fun(handler)){const queue=ctrl._events[key];props[key]=({finished,cancelled})=>{const result=queue.get(handler);result?(finished||(result.finished=!1),cancelled&&(result.cancelled=!0)):queue.set(handler,{value:null,finished:finished||!1,cancelled:cancelled||!1})},defaults&&(defaults[key]=props[key])}}));const state=ctrl._state;props.pause===!state.paused?(state.paused=props.pause,flushCalls(props.pause?state.pauseQueue:state.resumeQueue)):state.paused&&(props.pause=!0);const promises=(keys||Object.keys(ctrl.springs)).map((key=>ctrl.springs[key].start(props))),cancel=!0===props.cancel||!0===getDefaultProp(props,"cancel");(asyncTo||cancel&&state.asyncId)&&promises.push(scheduleProps(++ctrl._lastAsyncId,{props,state,actions:{pause:react_spring_shared_esm_noop,resume:react_spring_shared_esm_noop,start(props,resolve){cancel?(stopAsync(state,ctrl._lastAsyncId),resolve(getCancelledResult(ctrl))):(props.onRest=onRest,resolve(runAsync(asyncTo,props,state,ctrl)))}}})),state.paused&&await new Promise((resume=>{state.resumeQueue.add(resume)}));const result=getCombinedResult(ctrl,await Promise.all(promises));if(loop&&result.finished&&(!isLoop||!result.noop)){const nextProps=createLoopUpdate(props,loop,to);if(nextProps)return prepareKeys(ctrl,[nextProps]),flushUpdate(ctrl,nextProps,!0)}return onResolve&&raf.batchedUpdates((()=>onResolve(result,ctrl,ctrl.item))),result}function getSprings(ctrl,props){const springs=react_spring_core_esm_extends({},ctrl.springs);return props&&react_spring_shared_esm_each(react_spring_shared_esm_toArray(props),(props=>{react_spring_shared_esm_is.und(props.keys)&&(props=createUpdate(props)),react_spring_shared_esm_is.obj(props.to)||(props=react_spring_core_esm_extends({},props,{to:void 0})),prepareSprings(springs,props,(key=>createSpring(key)))})),setSprings(ctrl,springs),springs}function setSprings(ctrl,springs){eachProp(springs,((spring,key)=>{ctrl.springs[key]||(ctrl.springs[key]=spring,addFluidObserver(spring,ctrl))}))}function createSpring(key,observer){const spring=new SpringValue;return spring.key=key,observer&&addFluidObserver(spring,observer),spring}function prepareSprings(springs,props,create){props.keys&&react_spring_shared_esm_each(props.keys,(key=>{(springs[key]||(springs[key]=create(key)))._prepareNode(props)}))}function prepareKeys(ctrl,queue){react_spring_shared_esm_each(queue,(props=>{prepareSprings(ctrl.springs,props,(key=>createSpring(key,ctrl)))}))}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}const _excluded$3=["children"],SpringContext=_ref=>{let{children}=_ref,props=_objectWithoutPropertiesLoose(_ref,_excluded$3);const inherited=(0,react.useContext)(ctx),pause=props.pause||!!inherited.pause,immediate=props.immediate||!!inherited.immediate;props=function useMemoOne(getResult,inputs){const[initial]=(0,react.useState)((()=>({inputs,result:getResult()}))),committed=(0,react.useRef)(),prevCache=committed.current;let cache=prevCache;cache?Boolean(inputs&&cache.inputs&&function areInputsEqual(next,prev){if(next.length!==prev.length)return!1;for(let i=0;i{committed.current=cache,prevCache==initial&&(initial.inputs=initial.result=void 0)}),[cache]),cache.result}((()=>({pause,immediate})),[pause,immediate]);const{Provider}=ctx;return react.createElement(Provider,{value:props},children)},ctx=function makeContext(target,init){return Object.assign(target,react.createContext(init)),target.Provider._context=target,target.Consumer._context=target,target}(SpringContext,{});SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const current=[],SpringRef=function SpringRef(props){!function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}();const results=[];return react_spring_shared_esm_each(current,((ctrl,i)=>{if(react_spring_shared_esm_is.und(props))results.push(ctrl.start());else{const update=_getProps(props,ctrl,i);update&&results.push(ctrl.start(update))}})),results};SpringRef.current=current,SpringRef.add=function(ctrl){current.includes(ctrl)||current.push(ctrl)},SpringRef.delete=function(ctrl){const i=current.indexOf(ctrl);~i&¤t.splice(i,1)},SpringRef.pause=function(){return react_spring_shared_esm_each(current,(ctrl=>ctrl.pause(...arguments))),this},SpringRef.resume=function(){return react_spring_shared_esm_each(current,(ctrl=>ctrl.resume(...arguments))),this},SpringRef.set=function(values){react_spring_shared_esm_each(current,(ctrl=>ctrl.set(values)))},SpringRef.start=function(props){const results=[];return react_spring_shared_esm_each(current,((ctrl,i)=>{if(react_spring_shared_esm_is.und(props))results.push(ctrl.start());else{const update=this._getProps(props,ctrl,i);update&&results.push(ctrl.start(update))}})),results},SpringRef.stop=function(){return react_spring_shared_esm_each(current,(ctrl=>ctrl.stop(...arguments))),this},SpringRef.update=function(props){return react_spring_shared_esm_each(current,((ctrl,i)=>ctrl.update(this._getProps(props,ctrl,i)))),this};const _getProps=function _getProps(arg,ctrl,index){return react_spring_shared_esm_is.fun(arg)?arg(index,ctrl):arg};return SpringRef._getProps=_getProps,SpringRef};function useSprings(length,props,deps){const propsFn=react_spring_shared_esm_is.fun(props)&&props;propsFn&&!deps&&(deps=[]);const ref=(0,react.useMemo)((()=>propsFn||3==arguments.length?SpringRef():void 0),[]),layoutId=(0,react.useRef)(0),forceUpdate=react_spring_shared_esm_useForceUpdate(),state=(0,react.useMemo)((()=>({ctrls:[],queue:[],flush(ctrl,updates){const springs=getSprings(ctrl,updates);return layoutId.current>0&&!state.queue.length&&!Object.keys(springs).some((key=>!ctrl.springs[key]))?flushUpdateQueue(ctrl,updates):new Promise((resolve=>{setSprings(ctrl,springs),state.queue.push((()=>{resolve(flushUpdateQueue(ctrl,updates))})),forceUpdate()}))}})),[]),ctrls=(0,react.useRef)([...state.ctrls]),updates=[],prevLength=react_spring_shared_esm_usePrev(length)||0;function declareUpdates(startIndex,endIndex){for(let i=startIndex;i{react_spring_shared_esm_each(ctrls.current.slice(length,prevLength),(ctrl=>{detachRefs(ctrl,ref),ctrl.stop(!0)})),ctrls.current.length=length,declareUpdates(prevLength,length)}),[length]),(0,react.useMemo)((()=>{declareUpdates(0,Math.min(prevLength,length))}),deps);const springs=ctrls.current.map(((ctrl,i)=>getSprings(ctrl,updates[i]))),context=(0,react.useContext)(SpringContext),prevContext=react_spring_shared_esm_usePrev(context),hasContext=context!==prevContext&&hasProps(context);react_spring_shared_esm_useLayoutEffect((()=>{layoutId.current++,state.ctrls=ctrls.current;const{queue}=state;queue.length&&(state.queue=[],react_spring_shared_esm_each(queue,(cb=>cb()))),react_spring_shared_esm_each(ctrls.current,((ctrl,i)=>{null==ref||ref.add(ctrl),hasContext&&ctrl.start({default:context});const update=updates[i];update&&(replaceRef(ctrl,update.ref),ctrl.ref?ctrl.queue.push(update):ctrl.start(update))}))})),react_spring_shared_esm_useOnce((()=>()=>{react_spring_shared_esm_each(state.ctrls,(ctrl=>ctrl.stop(!0)))}));const values=springs.map((x=>react_spring_core_esm_extends({},x)));return ref?[values,ref]:values}function useSpring(props,deps){const isFn=react_spring_shared_esm_is.fun(props),[[values],ref]=useSprings(1,isFn?props:[props],isFn?deps||[]:deps);return isFn||2==arguments.length?[values,ref]:values}let TransitionPhase;!function(TransitionPhase){TransitionPhase.MOUNT="mount",TransitionPhase.ENTER="enter",TransitionPhase.UPDATE="update",TransitionPhase.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(source,args){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=source,this.calc=createInterpolator(...args);const value=this._get(),nodeType=getAnimatedType(value);setAnimated(this,nodeType.create(value))}advance(_dt){const value=this._get();isEqual(value,this.get())||(getAnimated(this).setValue(value),this._onChange(value,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const inputs=react_spring_shared_esm_is.arr(this.source)?this.source.map(getFluidValue):react_spring_shared_esm_toArray(getFluidValue(this.source));return this.calc(...inputs)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,react_spring_shared_esm_each(getPayload(this),(node=>{node.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let priority=1;react_spring_shared_esm_each(react_spring_shared_esm_toArray(this.source),(source=>{hasFluidValue(source)&&addFluidObserver(source,this),isFrameValue(source)&&(source.idle||this._active.add(source),priority=Math.max(priority,source.priority+1))})),this.priority=priority,this._start()}_detach(){react_spring_shared_esm_each(react_spring_shared_esm_toArray(this.source),(source=>{hasFluidValue(source)&&removeFluidObserver(source,this)})),this._active.clear(),becomeIdle(this)}eventObserved(event){"change"==event.type?event.idle?this.advance():(this._active.add(event.parent),this._start()):"idle"==event.type?this._active.delete(event.parent):"priority"==event.type&&(this.priority=react_spring_shared_esm_toArray(this.source).reduce(((highest,parent)=>Math.max(highest,(isFrameValue(parent)?parent.priority:0)+1)),0))}}function isIdle(source){return!1!==source.idle}function checkIdle(active){return!active.size||Array.from(active).every(isIdle)}function becomeIdle(self){self.idle||(self.idle=!0,react_spring_shared_esm_each(getPayload(self),(node=>{node.done=!0})),callFluidObservers(self,{type:"idle",parent:self}))}globals.assign({createStringInterpolator,to:(source,args)=>new Interpolation(source,args)});frameLoop.advance;function react_spring_web_esm_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}const react_spring_web_esm_excluded$2=["style","children","scrollTop","scrollLeft"],isCustomPropRE=/^--/;function dangerousStyleValue(name,value){return null==value||"boolean"==typeof value||""===value?"":"number"!=typeof value||0===value||isCustomPropRE.test(name)||isUnitlessNumber.hasOwnProperty(name)&&isUnitlessNumber[name]?(""+value).trim():value+"px"}const attributeCache={};let isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((acc,prop)=>(prefixes.forEach((prefix=>acc[((prefix,key)=>prefix+key.charAt(0).toUpperCase()+key.substring(1))(prefix,prop)]=acc[prop])),acc)),isUnitlessNumber);const react_spring_web_esm_excluded$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(value,unit)=>react_spring_shared_esm_is.num(value)&&0!==value?value+unit:value,isValueIdentity=(value,id)=>react_spring_shared_esm_is.arr(value)?value.every((v=>isValueIdentity(v,id))):react_spring_shared_esm_is.num(value)?value===id:parseFloat(value)===id;class AnimatedStyle extends AnimatedObject{constructor(_ref){let{x,y,z}=_ref,style=react_spring_web_esm_objectWithoutPropertiesLoose(_ref,react_spring_web_esm_excluded$1);const inputs=[],transforms=[];(x||y||z)&&(inputs.push([x||0,y||0,z||0]),transforms.push((xyz=>[`translate3d(${xyz.map((v=>addUnit(v,"px"))).join(",")})`,isValueIdentity(xyz,0)]))),eachProp(style,((value,key)=>{if("transform"===key)inputs.push([value||""]),transforms.push((transform=>[transform,""===transform]));else if(domTransforms.test(key)){if(delete style[key],react_spring_shared_esm_is.und(value))return;const unit=pxTransforms.test(key)?"px":degTransforms.test(key)?"deg":"";inputs.push(react_spring_shared_esm_toArray(value)),transforms.push("rotate3d"===key?([x,y,z,deg])=>[`rotate3d(${x},${y},${z},${addUnit(deg,unit)})`,isValueIdentity(deg,0)]:input=>[`${key}(${input.map((v=>addUnit(v,unit))).join(",")})`,isValueIdentity(input,key.startsWith("scale")?1:0)])}})),inputs.length&&(style.transform=new FluidTransform(inputs,transforms)),super(style)}}class FluidTransform extends FluidValue{constructor(inputs,transforms){super(),this._value=null,this.inputs=inputs,this.transforms=transforms}get(){return this._value||(this._value=this._get())}_get(){let transform="",identity=!0;return react_spring_shared_esm_each(this.inputs,((input,i)=>{const arg1=getFluidValue(input[0]),[t,id]=this.transforms[i](react_spring_shared_esm_is.arr(arg1)?arg1:input.map(getFluidValue));transform+=" "+t,identity=identity&&id})),identity?"none":transform}observerAdded(count){1==count&&react_spring_shared_esm_each(this.inputs,(input=>react_spring_shared_esm_each(input,(value=>hasFluidValue(value)&&addFluidObserver(value,this)))))}observerRemoved(count){0==count&&react_spring_shared_esm_each(this.inputs,(input=>react_spring_shared_esm_each(input,(value=>hasFluidValue(value)&&removeFluidObserver(value,this)))))}eventObserved(event){"change"==event.type&&(this._value=null),callFluidObservers(this,event)}}const react_spring_web_esm_excluded=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:react_dom.unstable_batchedUpdates,createStringInterpolator,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const host=((components,{applyAnimatedValues:_applyAnimatedValues=(()=>!1),createAnimatedStyle:_createAnimatedStyle=(style=>new AnimatedObject(style)),getComponentProps:_getComponentProps=(props=>props)}={})=>{const hostConfig={applyAnimatedValues:_applyAnimatedValues,createAnimatedStyle:_createAnimatedStyle,getComponentProps:_getComponentProps},animated=Component=>{const displayName=getDisplayName(Component)||"Anonymous";return(Component=react_spring_shared_esm_is.str(Component)?animated[Component]||(animated[Component]=withAnimated(Component,hostConfig)):Component[cacheKey]||(Component[cacheKey]=withAnimated(Component,hostConfig))).displayName=`Animated(${displayName})`,Component};return eachProp(components,((Component,key)=>{react_spring_shared_esm_is.arr(components)&&(key=getDisplayName(Component)),animated[key]=animated(Component)})),{animated}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function applyAnimatedValues(instance,props){if(!instance.nodeType||!instance.setAttribute)return!1;const isFilterElement="filter"===instance.nodeName||instance.parentNode&&"filter"===instance.parentNode.nodeName,_ref=props,{style,children,scrollTop,scrollLeft}=_ref,attributes=react_spring_web_esm_objectWithoutPropertiesLoose(_ref,react_spring_web_esm_excluded$2),values=Object.values(attributes),names=Object.keys(attributes).map((name=>isFilterElement||instance.hasAttribute(name)?name:attributeCache[name]||(attributeCache[name]=name.replace(/([A-Z])/g,(n=>"-"+n.toLowerCase())))));void 0!==children&&(instance.textContent=children);for(let name in style)if(style.hasOwnProperty(name)){const value=dangerousStyleValue(name,style[name]);isCustomPropRE.test(name)?instance.style.setProperty(name,value):instance.style[name]=value}names.forEach(((name,i)=>{instance.setAttribute(name,values[i])})),void 0!==scrollTop&&(instance.scrollTop=scrollTop),void 0!==scrollLeft&&(instance.scrollLeft=scrollLeft)},createAnimatedStyle:style=>new AnimatedStyle(style),getComponentProps:_ref=>react_spring_web_esm_objectWithoutPropertiesLoose(_ref,react_spring_web_esm_excluded)}),animated=host.animated;var use_reduced_motion=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-reduced-motion/index.js"),get_computed_style=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/get-computed-style.js");function getScrollContainer(node){if(node){if(node.scrollHeight>node.clientHeight){const{overflowY}=(0,get_computed_style.Z)(node);if(/(auto|scroll)/.test(overflowY))return node}return getScrollContainer(node.parentNode)}}const counterReducer=state=>state+1,getAbsolutePosition=element=>({top:element.offsetTop,left:element.offsetLeft});const use_moving_animation=function useMovingAnimation(_ref){let{isSelected,adjustScrolling,enableAnimation,triggerAnimationOnChange}=_ref;const ref=(0,react.useRef)(),prefersReducedMotion=(0,use_reduced_motion.Z)()||!enableAnimation,[triggeredAnimation,triggerAnimation]=(0,react.useReducer)(counterReducer,0),[finishedAnimation,endAnimation]=(0,react.useReducer)(counterReducer,0),[transform,setTransform]=(0,react.useState)({x:0,y:0}),previous=(0,react.useMemo)((()=>ref.current?getAbsolutePosition(ref.current):null),[triggerAnimationOnChange]),preserveScrollPosition=(0,react.useMemo)((()=>{if(!adjustScrolling||!ref.current)return()=>{};const scrollContainer=getScrollContainer(ref.current);if(!scrollContainer)return()=>{};const prevRect=ref.current.getBoundingClientRect();return()=>{const diff=ref.current.getBoundingClientRect().top-prevRect.top;diff&&(scrollContainer.scrollTop+=diff)}}),[triggerAnimationOnChange,adjustScrolling]);function onChange(_ref3){let{value}=_ref3,{x,y}=value;x=Math.round(x),y=Math.round(y),x===onChange.x&&y===onChange.y||(!function onFrameChange(_ref2){let{x,y}=_ref2;if(!ref.current)return;const isMoving=0===x&&0===y;ref.current.style.transformOrigin=isMoving?"":"center",ref.current.style.transform=isMoving?"":`translate3d(${x}px,${y}px,0)`,ref.current.style.zIndex=!isSelected||isMoving?"":"1",preserveScrollPosition()}({x,y}),onChange.x=x,onChange.y=y)}return(0,react.useLayoutEffect)((()=>{triggeredAnimation&&endAnimation()}),[triggeredAnimation]),(0,react.useLayoutEffect)((()=>{if(!previous)return;if(prefersReducedMotion)return void preserveScrollPosition();ref.current.style.transform="";const destination=getAbsolutePosition(ref.current);triggerAnimation(),setTransform({x:Math.round(previous.left-destination.left),y:Math.round(previous.top-destination.top)})}),[triggerAnimationOnChange]),onChange.x=0,onChange.y=0,useSpring({from:{x:transform.x,y:transform.y},to:{x:0,y:0},reset:triggeredAnimation!==finishedAnimation,config:{mass:5,tension:2e3,friction:200},immediate:prefersReducedMotion,onChange}),ref};var dom_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/index.js");function isTextField(node){return function isHTMLInputElement(node){return!!node&&"INPUT"===node.nodeName}(node)&&node.type&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number"].includes(node.type)||"TEXTAREA"===node.nodeName||"true"===node.contentEditable}var place_caret_at_horizontal_edge=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/place-caret-at-horizontal-edge.js");const BLOCK_SELECTOR=".block-editor-block-list__block",APPENDER_SELECTOR=".block-list-appender";function isInsideRootBlock(blockElement,element){return element.closest([BLOCK_SELECTOR,APPENDER_SELECTOR].join(","))===blockElement}function useFocusFirstElement(clientId){const ref=(0,react.useRef)(),initialPosition=function useInitialPosition(clientId){return(0,use_select.Z)((select=>{const{getSelectedBlocksInitialCaretPosition,isMultiSelecting,isNavigationMode,isBlockSelected}=select(store);if(isBlockSelected(clientId)&&!isMultiSelecting()&&!isNavigationMode())return getSelectedBlocksInitialCaretPosition()}),[clientId])}(clientId);return(0,react.useEffect)((()=>{if(null==initialPosition)return;if(!ref.current)return;const{ownerDocument}=ref.current;if(ref.current.contains(ownerDocument.activeElement))return;const textInputs=dom_build_module.T_.tabbable.find(ref.current).filter((node=>isTextField(node))),isReverse=-1===initialPosition,target=(isReverse?lodash.last:lodash.first)(textInputs)||ref.current;isInsideRootBlock(ref.current,target)?(0,place_caret_at_horizontal_edge.Z)(target,isReverse):ref.current.focus()}),[initialPosition]),ref}var use_ref_effect=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-ref-effect/index.js");function listener(event){if(event.defaultPrevented)return;const action="mouseover"===event.type?"add":"remove";event.preventDefault(),event.currentTarget.classList[action]("is-hovered")}function useIsHovered(){const isEnabled=(0,use_select.Z)((select=>{const{isNavigationMode,getSettings}=select(store);return isNavigationMode()||getSettings().outlineMode}),[]);return(0,use_ref_effect.Z)((node=>{if(isEnabled)return node.addEventListener("mouseout",listener),node.addEventListener("mouseover",listener),()=>{node.removeEventListener("mouseout",listener),node.removeEventListener("mouseover",listener),node.classList.remove("is-hovered")}}),[isEnabled])}function useBlockClassNames(clientId){return(0,use_select.Z)((select=>{const{isBlockBeingDragged,isBlockHighlighted,isBlockSelected,isBlockMultiSelected,getBlockName,getSettings,hasSelectedInnerBlock,isTyping,__experimentalGetActiveBlockIdByBlockNames:getActiveBlockIdByBlockNames}=select(store),{__experimentalSpotlightEntityBlocks:spotlightEntityBlocks,outlineMode}=getSettings(),isDragging=isBlockBeingDragged(clientId),isSelected=isBlockSelected(clientId),name=getBlockName(clientId),isAncestorOfSelectedBlock=hasSelectedInnerBlock(clientId,!0),activeEntityBlockId=getActiveBlockIdByBlockNames(spotlightEntityBlocks);return classnames_default()({"is-selected":isSelected,"is-highlighted":isBlockHighlighted(clientId),"is-multi-selected":isBlockMultiSelected(clientId),"is-reusable":(0,build_module.vr)((0,build_module.ck)(name)),"is-dragging":isDragging,"has-child-selected":isAncestorOfSelectedBlock,"has-active-entity":activeEntityBlockId,"is-active-entity":activeEntityBlockId===clientId,"remove-outline":isSelected&&outlineMode&&isTyping()})}),[clientId])}function useBlockDefaultClassName(clientId){return(0,use_select.Z)((select=>{const name=select(store).getBlockName(clientId),blockType=(0,build_module.ck)(name);if((null==blockType?void 0:blockType.apiVersion)>1)return(0,build_module.Vk)(name)}),[clientId])}function useBlockCustomClassName(clientId){return(0,use_select.Z)((select=>{const{getBlockName,getBlockAttributes}=select(store),attributes=getBlockAttributes(clientId);if(null==attributes||!attributes.className)return;const blockType=(0,build_module.ck)(getBlockName(clientId));return(null==blockType?void 0:blockType.apiVersion)>1?attributes.className:void 0}),[clientId])}function useBlockMovingModeClassNames(clientId){return(0,use_select.Z)((select=>{const{hasBlockMovingClientId,canInsertBlockType,getBlockName,getBlockRootClientId,isBlockSelected}=select(store);if(!isBlockSelected(clientId))return;const movingClientId=hasBlockMovingClientId();return movingClientId?classnames_default()("is-block-moving-mode",{"can-insert-moving-block":canInsertBlockType(getBlockName(movingClientId),getBlockRootClientId(clientId))}):void 0}),[clientId])}function useFocusHandler(clientId){const{isBlockSelected}=(0,use_select.Z)(store),{selectBlock,selectionChange}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{function onFocus(event){isBlockSelected(clientId)?event.target.isContentEditable||selectionChange(clientId):isInsideRootBlock(node,event.target)&&selectBlock(clientId)}return node.addEventListener("focusin",onFocus),()=>{node.removeEventListener("focusin",onFocus)}}),[isBlockSelected,selectBlock])}var keycodes_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+keycodes@3.2.4/node_modules/@wordpress/keycodes/build-module/index.js");function useEventHandlers(clientId){const isSelected=(0,use_select.Z)((select=>select(store).isBlockSelected(clientId)),[clientId]),{getBlockRootClientId,getBlockIndex}=(0,use_select.Z)(store),{insertDefaultBlock,removeBlock}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{if(isSelected)return node.addEventListener("keydown",onKeyDown),node.addEventListener("dragstart",onDragStart),()=>{node.removeEventListener("keydown",onKeyDown),node.removeEventListener("dragstart",onDragStart)};function onKeyDown(event){const{keyCode,target}=event;keyCode!==keycodes_build_module.K5&&keyCode!==keycodes_build_module.ZH&&keyCode!==keycodes_build_module.yY||target!==node||isTextField(target)||(event.preventDefault(),keyCode===keycodes_build_module.K5?insertDefaultBlock({},getBlockRootClientId(clientId),getBlockIndex(clientId)+1):removeBlock(clientId))}function onDragStart(event){event.preventDefault()}}),[clientId,isSelected,getBlockRootClientId,getBlockIndex,insertDefaultBlock,removeBlock])}function useNavModeExit(clientId){const{isNavigationMode,isBlockSelected}=(0,use_select.Z)(store),{setNavigationMode,selectBlock}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{function onMouseDown(event){isNavigationMode()&&!event.defaultPrevented&&(event.preventDefault(),isBlockSelected(clientId)?setNavigationMode(!1):selectBlock(clientId))}return node.addEventListener("mousedown",onMouseDown),()=>{node.addEventListener("mousedown",onMouseDown)}}),[clientId,isNavigationMode,isBlockSelected,setNavigationMode])}var dom_scroll_into_view_lib=__webpack_require__("../../../node_modules/.pnpm/dom-scroll-into-view@1.2.1/node_modules/dom-scroll-into-view/lib/index.js"),lib_default=__webpack_require__.n(dom_scroll_into_view_lib);function useScrollIntoView(clientId){const ref=(0,react.useRef)(),isSelectionEnd=(0,use_select.Z)((select=>{const{isBlockSelected,getBlockSelectionEnd}=select(store);return isBlockSelected(clientId)||getBlockSelectionEnd()===clientId}),[clientId]);return(0,react.useEffect)((()=>{if(!isSelectionEnd)return;const extentNode=ref.current;if(!extentNode)return;if(extentNode.contains(extentNode.ownerDocument.activeElement))return;const scrollContainer=getScrollContainer(extentNode)||extentNode.ownerDocument.defaultView;scrollContainer&&lib_default()(extentNode,scrollContainer,{onlyScrollIfNeeded:!0})}),[isSelectionEnd]),ref}const BlockRefs=(0,react.createContext)();function BlockRefsProvider(_ref){let{children}=_ref;const value=(0,react.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,react.createElement)(BlockRefs.Provider,{value},children)}function useBlockRefProvider(clientId){const{refs,callbacks}=(0,react.useContext)(BlockRefs),ref=(0,react.useRef)();return(0,react.useLayoutEffect)((()=>(refs.set(ref,clientId),()=>{refs.delete(ref)})),[clientId]),(0,use_ref_effect.Z)((element=>{ref.current=element,callbacks.forEach(((id,setElement)=>{clientId===id&&setElement(element)}))}),[clientId])}function useBlockRef(clientId){const{refs}=(0,react.useContext)(BlockRefs),freshClientId=(0,react.useRef)();return freshClientId.current=clientId,(0,react.useMemo)((()=>({get current(){let element=null;for(const[ref,id]of refs.entries())id===freshClientId.current&&ref.current&&(element=ref.current);return element}})),[])}function useBlockElement(clientId){const{callbacks}=(0,react.useContext)(BlockRefs),ref=useBlockRef(clientId),[element,setElement]=(0,react.useState)(null);return(0,react.useLayoutEffect)((()=>{if(clientId)return callbacks.set(setElement,clientId),()=>{callbacks.delete(setElement)}}),[clientId]),ref.current||element}function toggleRichText(container,toggle){Array.from(container.closest(".is-root-container").querySelectorAll(".rich-text")).forEach((node=>{toggle?node.setAttribute("contenteditable",!0):node.removeAttribute("contenteditable")}))}function useMultiSelection(clientId){const{startMultiSelect,stopMultiSelect,multiSelect,selectBlock}=(0,use_dispatch.Z)(store),{isSelectionEnabled,isBlockSelected,getBlockParents,getBlockSelectionStart,hasMultiSelection}=(0,use_select.Z)(store);return(0,use_ref_effect.Z)((node=>{const{ownerDocument}=node,{defaultView}=ownerDocument;let anchorElement,rafId;function onSelectionChange(_ref){let{isSelectionEnd}=_ref;const selection=defaultView.getSelection();if(!selection.rangeCount||selection.isCollapsed)return void toggleRichText(node,!0);const endClientId=function getBlockClientId(node){for(;node&&node.nodeType!==node.ELEMENT_NODE;)node=node.parentNode;if(!node)return;const blockNode=node.closest(BLOCK_SELECTOR);return blockNode?blockNode.id.slice("block-".length):void 0}(selection.focusNode);if(clientId===endClientId){if(selectBlock(clientId),isSelectionEnd&&(toggleRichText(node,!0),selection.rangeCount)){const{commonAncestorContainer}=selection.getRangeAt(0);anchorElement.contains(commonAncestorContainer)&&anchorElement.focus()}}else{const startPath=[...getBlockParents(clientId),clientId],endPath=[...getBlockParents(endClientId),endClientId],depth=Math.min(startPath.length,endPath.length)-1;multiSelect(startPath[depth],endPath[depth])}}function onSelectionEnd(){ownerDocument.removeEventListener("selectionchange",onSelectionChange),defaultView.removeEventListener("mouseup",onSelectionEnd),rafId=defaultView.requestAnimationFrame((()=>{onSelectionChange({isSelectionEnd:!0}),stopMultiSelect()}))}function onMouseLeave(_ref2){let{buttons}=_ref2;1===buttons&&isSelectionEnabled()&&isBlockSelected(clientId)&&(anchorElement=ownerDocument.activeElement,startMultiSelect(),ownerDocument.addEventListener("selectionchange",onSelectionChange),defaultView.addEventListener("mouseup",onSelectionEnd),toggleRichText(node,!1))}function onMouseDown(event){if(isSelectionEnabled()&&0===event.button)if(event.shiftKey){const blockSelectionStart=getBlockSelectionStart(),startParents=getBlockParents(blockSelectionStart);if(blockSelectionStart&&blockSelectionStart!==clientId&&(null==startParents||!startParents.includes(clientId))){const startPath=[...startParents,blockSelectionStart],endPath=[...getBlockParents(clientId),clientId],depth=Math.min(startPath.length,endPath.length)-1,start=startPath[depth],end=endPath[depth];start!==end&&(toggleRichText(node,!1),multiSelect(start,end),event.preventDefault())}}else hasMultiSelection()&&selectBlock(clientId)}return node.addEventListener("mousedown",onMouseDown),node.addEventListener("mouseleave",onMouseLeave),()=>{node.removeEventListener("mousedown",onMouseDown),node.removeEventListener("mouseleave",onMouseLeave),ownerDocument.removeEventListener("selectionchange",onSelectionChange),defaultView.removeEventListener("mouseup",onSelectionEnd),defaultView.cancelAnimationFrame(rafId)}}),[clientId,startMultiSelect,stopMultiSelect,multiSelect,selectBlock,isSelectionEnabled,isBlockSelected,getBlockParents])}function useIntersectionObserver(){const observer=(0,react.useContext)(IntersectionObserver);return(0,use_ref_effect.Z)((node=>{if(observer)return observer.observe(node),()=>{observer.unobserve(node)}}),[observer])}__webpack_require__("../../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");function useBlockProps(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId,className,wrapperProps={},isAligned}=(0,react.useContext)(BlockListBlockContext),{index,mode,name,blockApiVersion,blockTitle,isPartOfSelection,adjustScrolling,enableAnimation}=(0,use_select.Z)((select=>{const{getBlockRootClientId,getBlockIndex,getBlockMode,getBlockName,isTyping,getGlobalBlockCount,isBlockSelected,isBlockMultiSelected,isAncestorMultiSelected,isFirstMultiSelectedBlock}=select(store),isSelected=isBlockSelected(clientId),isPartOfMultiSelection=isBlockMultiSelected(clientId)||isAncestorMultiSelected(clientId),blockName=getBlockName(clientId),rootClientId=getBlockRootClientId(clientId),blockType=(0,build_module.ck)(blockName);return{index:getBlockIndex(clientId,rootClientId),mode:getBlockMode(clientId),name:blockName,blockApiVersion:(null==blockType?void 0:blockType.apiVersion)||1,blockTitle:null==blockType?void 0:blockType.title,isPartOfSelection:isSelected||isPartOfMultiSelection,adjustScrolling:isSelected||isFirstMultiSelectedBlock(clientId),enableAnimation:!isTyping()&&getGlobalBlockCount()<=200}}),[clientId]),blockLabel=(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block: %s"),blockTitle),htmlSuffix="html"!==mode||__unstableIsHtml?"":"-visual",mergedRefs=(0,use_merge_refs.Z)([props.ref,useFocusFirstElement(clientId),useScrollIntoView(clientId),useBlockRefProvider(clientId),useFocusHandler(clientId),useMultiSelection(clientId),useEventHandlers(clientId),useNavModeExit(clientId),useIsHovered(),useIntersectionObserver(),use_moving_animation({isSelected:isPartOfSelection,adjustScrolling,enableAnimation,triggerAnimationOnChange:index})]),blockEditContext=useBlockEditContext();return blockApiVersion<2&&blockEditContext.clientId,{...wrapperProps,...props,ref:mergedRefs,id:`block-${clientId}${htmlSuffix}`,tabIndex:0,role:"document","aria-label":blockLabel,"data-block":clientId,"data-type":name,"data-title":blockTitle,className:classnames_default()(classnames_default()("block-editor-block-list__block",{"wp-block":!isAligned}),className,props.className,wrapperProps.className,useBlockClassNames(clientId),useBlockDefaultClassName(clientId),useBlockCustomClassName(clientId),useBlockMovingModeClassNames(clientId)),style:{...wrapperProps.style,...props.style}}}useBlockProps.save=build_module.dF;const BlockListBlockContext=(0,react.createContext)();function Block(_ref){let{children,isHtml,...props}=_ref;return(0,react.createElement)("div",useBlockProps(props,{__unstableIsHtml:isHtml}),children)}const applyWithSelect=(0,with_select.Z)(((select,_ref3)=>{let{clientId,rootClientId}=_ref3;const{isBlockSelected,getBlockMode,isSelectionEnabled,getTemplateLock,__unstableGetBlockWithoutInnerBlocks,canRemoveBlock,canMoveBlock}=select(store),block=__unstableGetBlockWithoutInnerBlocks(clientId),isSelected=isBlockSelected(clientId),templateLock=getTemplateLock(rootClientId),canRemove=canRemoveBlock(clientId,rootClientId),canMove=canMoveBlock(clientId,rootClientId),{name,attributes,isValid}=block||{};return{mode:getBlockMode(clientId),isSelectionEnabled:isSelectionEnabled(),isLocked:!!templateLock,canRemove,canMove,block,name,attributes,isValid,isSelected}})),applyWithDispatch=(0,with_dispatch.Z)(((dispatch,ownProps,_ref4)=>{let{select}=_ref4;const{updateBlockAttributes,insertBlocks,mergeBlocks,replaceBlocks,toggleSelection,__unstableMarkLastChangeAsPersistent}=dispatch(store);return{setAttributes(newAttributes){const{getMultiSelectedBlockClientIds}=select(store),multiSelectedBlockClientIds=getMultiSelectedBlockClientIds(),{clientId}=ownProps,clientIds=multiSelectedBlockClientIds.length?multiSelectedBlockClientIds:[clientId];updateBlockAttributes(clientIds,newAttributes)},onInsertBlocks(blocks,index){const{rootClientId}=ownProps;insertBlocks(blocks,index,rootClientId)},onInsertBlocksAfter(blocks){const{clientId,rootClientId}=ownProps,{getBlockIndex}=select(store),index=getBlockIndex(clientId,rootClientId);insertBlocks(blocks,index+1,rootClientId)},onMerge(forward){const{clientId}=ownProps,{getPreviousBlockClientId,getNextBlockClientId}=select(store);if(forward){const nextBlockClientId=getNextBlockClientId(clientId);nextBlockClientId&&mergeBlocks(clientId,nextBlockClientId)}else{const previousBlockClientId=getPreviousBlockClientId(clientId);previousBlockClientId&&mergeBlocks(previousBlockClientId,clientId)}},onReplace(blocks,indexToSelect,initialPosition){blocks.length&&!(0,build_module.ZP)(blocks[blocks.length-1])&&__unstableMarkLastChangeAsPersistent(),replaceBlocks([ownProps.clientId],blocks,indexToSelect,initialPosition)},toggleSelection(selectionEnabled){toggleSelection(selectionEnabled)}}})),block=(0,compose.Z)(pure.Z,applyWithSelect,applyWithDispatch,if_condition((_ref5=>{let{block}=_ref5;return!!block})),withFilters("editor.BlockListBlock"))((function BlockListBlock(_ref2){let{mode,isLocked,canRemove,clientId,isSelected,isSelectionEnabled,className,name,isValid,attributes,wrapperProps,setAttributes,onReplace,onInsertBlocksAfter,onMerge,toggleSelection}=_ref2;const{removeBlock}=(0,use_dispatch.Z)(store),onRemove=(0,react.useCallback)((()=>removeBlock(clientId)),[clientId]);let blockEdit=(0,react.createElement)(BlockEdit,{name,isSelected,attributes,setAttributes,insertBlocksAfter:isLocked?void 0:onInsertBlocksAfter,onReplace:canRemove?onReplace:void 0,onRemove:canRemove?onRemove:void 0,mergeBlocks:canRemove?onMerge:void 0,clientId,isSelectionEnabled,toggleSelection});const blockType=(0,build_module.ck)(name);null!=blockType&&blockType.getEditWrapperProps&&(wrapperProps=function mergeWrapperProps(propsA,propsB){const newProps={...propsA,...propsB};return propsA&&propsB&&propsA.className&&propsB.className&&(newProps.className=classnames_default()(propsA.className,propsB.className)),propsA&&propsB&&propsA.style&&propsB.style&&(newProps.style={...propsA.style,...propsB.style}),newProps}(wrapperProps,blockType.getEditWrapperProps(attributes)));const isAligned=wrapperProps&&!!wrapperProps["data-align"];let block;if(isAligned&&(blockEdit=(0,react.createElement)("div",{className:"wp-block","data-align":wrapperProps["data-align"]},blockEdit)),isValid)block="html"===mode?(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",{style:{display:"none"}},blockEdit),(0,react.createElement)(Block,{isHtml:!0},(0,react.createElement)(block_html,{clientId}))):(null==blockType?void 0:blockType.apiVersion)>1?blockEdit:(0,react.createElement)(Block,wrapperProps,blockEdit);else{const saveContent=(0,build_module.kD)(blockType,attributes);block=(0,react.createElement)(Block,{className:"has-warning"},(0,react.createElement)(block_invalid_warning,{clientId}),(0,react.createElement)(raw_html.Z,null,(0,safe_html.Z)(saveContent)))}const value={clientId,className,wrapperProps:(0,lodash.omit)(wrapperProps,["data-align"]),isAligned},memoizedValue=(0,react.useMemo)((()=>value),Object.values(value));return(0,react.createElement)(BlockListBlockContext.Provider,{value:memoizedValue},(0,react.createElement)(block_crash_boundary,{fallback:(0,react.createElement)(Block,{className:"has-warning"},(0,react.createElement)(block_crash_warning,null))},block))}));var html_entities_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+html-entities@3.2.3/node_modules/@wordpress/html-entities/build-module/index.js"),dropdown=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/dropdown/index.js"),visually_hidden_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/visually-hidden/component.js"),search_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/search-control/index.js"),create_interpolate_element=__webpack_require__("../../../node_modules/.pnpm/@wordpress+element@4.0.4/node_modules/@wordpress/element/build-module/create-interpolate-element.js");const tip=function Tip(props){return(0,react.createElement)("div",{className:"components-tip"},(0,react.createElement)(svg.Wj,{width:"24",height:"24",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{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"})),(0,react.createElement)("p",null,props.children))},globalTips=[(0,create_interpolate_element.Z)((0,i18n_build_module.__)("While writing, you can press / to quickly insert new blocks."),{kbd:(0,react.createElement)("kbd",null)}),(0,create_interpolate_element.Z)((0,i18n_build_module.__)("Indent a list by pressing space at the beginning of a line."),{kbd:(0,react.createElement)("kbd",null)}),(0,create_interpolate_element.Z)((0,i18n_build_module.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:(0,react.createElement)("kbd",null)}),(0,i18n_build_module.__)("Drag files into the editor to automatically insert media blocks."),(0,i18n_build_module.__)("Change a block's type by pressing the block icon on the toolbar.")];const tips=function Tips(){const[randomIndex]=(0,react.useState)(Math.floor(Math.random()*globalTips.length));return(0,react.createElement)(tip,null,globalTips[randomIndex])};var components_build_module_icon=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/icon/index.js"),block_default=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/block-default.js");const block_icon=(0,react.memo)((function BlockIcon(_ref){var _icon;let{icon,showColors=!1,className}=_ref;"block-default"===(null===(_icon=icon)||void 0===_icon?void 0:_icon.src)&&(icon={src:block_default.Z});const renderedIcon=(0,react.createElement)(components_build_module_icon.Z,{icon:icon&&icon.src?icon.src:icon}),style=showColors?{backgroundColor:icon&&icon.background,color:icon&&icon.foreground}:{};return(0,react.createElement)("span",{style,className:classnames_default()("block-editor-block-icon",className,{"has-colors":showColors})},renderedIcon)}));const block_card=function BlockCard(_ref){let{title,icon,description,blockType}=_ref;return blockType&&((0,deprecated_build_module.Z)("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title,icon,description}=blockType)),(0,react.createElement)("div",{className:"block-editor-block-card"},(0,react.createElement)(block_icon,{icon,showColors:!0}),(0,react.createElement)("div",{className:"block-editor-block-card__content"},(0,react.createElement)("h2",{className:"block-editor-block-card__title"},title),(0,react.createElement)("span",{className:"block-editor-block-card__description"},description)))};var registry_provider_context=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/registry-provider/context.js");const with_registry=(0,create_higher_order_component.Z)((OriginalComponent=>props=>(0,react.createElement)(registry_provider_context.yE,null,(registry=>(0,react.createElement)(OriginalComponent,(0,esm_extends.Z)({},props,{registry}))))),"withRegistry");var build_module_registry=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/registry.js");const withRegistryProvider=(0,create_higher_order_component.Z)((WrappedComponent=>with_registry((_ref=>{let{useSubRegistry=!0,registry,...props}=_ref;if(!useSubRegistry)return(0,react.createElement)(WrappedComponent,(0,esm_extends.Z)({registry},props));const[subRegistry,setSubRegistry]=(0,react.useState)(null);return(0,react.useEffect)((()=>{const newRegistry=(0,build_module_registry.p)({},registry);newRegistry.registerStore("core/block-editor",storeConfig),setSubRegistry(newRegistry)}),[registry]),subRegistry?(0,react.createElement)(registry_provider_context.ZP,{value:subRegistry},(0,react.createElement)(WrappedComponent,(0,esm_extends.Z)({registry:subRegistry},props))):null}))),"withRegistryProvider"),with_registry_provider=withRegistryProvider;var use_registry=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/registry-provider/use-registry.js");function useBlockSync(_ref){let{clientId=null,value:controlledBlocks,selection:controlledSelection,onChange=lodash.noop,onInput=lodash.noop}=_ref;const registry=(0,use_registry.Z)(),{resetBlocks,resetSelection,replaceInnerBlocks,setHasControlledInnerBlocks,__unstableMarkNextChangeAsNotPersistent}=registry.dispatch(store),{getBlockName,getBlocks}=registry.select(store),pendingChanges=(0,react.useRef)({incoming:null,outgoing:[]}),subscribed=(0,react.useRef)(!1),onInputRef=(0,react.useRef)(onInput),onChangeRef=(0,react.useRef)(onChange);(0,react.useEffect)((()=>{onInputRef.current=onInput,onChangeRef.current=onChange}),[onInput,onChange]),(0,react.useEffect)((()=>{pendingChanges.current.outgoing.includes(controlledBlocks)?(0,lodash.last)(pendingChanges.current.outgoing)===controlledBlocks&&(pendingChanges.current.outgoing=[]):getBlocks(clientId)!==controlledBlocks&&(pendingChanges.current.outgoing=[],(()=>{if(controlledBlocks)if(__unstableMarkNextChangeAsNotPersistent(),clientId){setHasControlledInnerBlocks(clientId,!0),__unstableMarkNextChangeAsNotPersistent();const storeBlocks=controlledBlocks.map((block=>(0,build_module.Wm)(block)));subscribed.current&&(pendingChanges.current.incoming=storeBlocks),replaceInnerBlocks(clientId,storeBlocks)}else subscribed.current&&(pendingChanges.current.incoming=controlledBlocks),resetBlocks(controlledBlocks)})(),controlledSelection&&resetSelection(controlledSelection.selectionStart,controlledSelection.selectionEnd,controlledSelection.initialPosition))}),[controlledBlocks,clientId]),(0,react.useEffect)((()=>{const{getSelectionStart,getSelectionEnd,getSelectedBlocksInitialCaretPosition,isLastBlockChangePersistent,__unstableIsLastBlockChangeIgnored}=registry.select(store);let blocks=getBlocks(clientId),isPersistent=isLastBlockChangePersistent(),previousAreBlocksDifferent=!1;subscribed.current=!0;const unsubscribe=registry.subscribe((()=>{if(null!==clientId&&null===getBlockName(clientId))return;const newIsPersistent=isLastBlockChangePersistent(),newBlocks=getBlocks(clientId),areBlocksDifferent=newBlocks!==blocks;if(blocks=newBlocks,areBlocksDifferent&&(pendingChanges.current.incoming||__unstableIsLastBlockChangeIgnored()))return pendingChanges.current.incoming=null,void(isPersistent=newIsPersistent);if(areBlocksDifferent||previousAreBlocksDifferent&&!areBlocksDifferent&&newIsPersistent&&!isPersistent){isPersistent=newIsPersistent,pendingChanges.current.outgoing.push(blocks);(isPersistent?onChangeRef.current:onInputRef.current)(blocks,{selection:{selectionStart:getSelectionStart(),selectionEnd:getSelectionEnd(),initialPosition:getSelectedBlocksInitialCaretPosition()}})}previousAreBlocksDifferent=areBlocksDifferent}));return()=>unsubscribe()}),[registry,clientId])}const provider=with_registry_provider((function BlockEditorProvider(props){const{children,settings}=props,{updateSettings}=(0,use_dispatch.Z)(store);return(0,react.useEffect)((()=>{updateSettings(settings)}),[settings]),useBlockSync(props),(0,react.createElement)(BlockRefsProvider,null,children)}));var disabled=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/disabled/index.js");function LiveBlockPreview(_ref){let{onClick}=_ref;return(0,react.createElement)("div",{tabIndex:0,role:"button",onClick,onKeyPress:onClick},(0,react.createElement)(disabled.Z,null,(0,react.createElement)(BlockList,null)))}var use_resize_observer=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-resize-observer/index.js");function useBlockSelectionClearer(){const{hasSelectedBlock,hasMultiSelection}=(0,use_select.Z)(store),{clearSelectedBlock}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{function onMouseDown(event){(hasSelectedBlock()||hasMultiSelection())&&event.target===node&&clearSelectedBlock()}return node.addEventListener("mousedown",onMouseDown),()=>{node.removeEventListener("mousedown",onMouseDown)}}),[hasSelectedBlock,hasMultiSelection,clearSelectedBlock])}function getDeepestNode(node,type){const child="start"===type?"firstChild":"lastChild",sibling="start"===type?"nextSibling":"previousSibling";for(;node[child];)for(node=node[child];node.nodeType===node.TEXT_NODE&&/^[ \t\n]*$/.test(node.data)&&node[sibling];)node=node[sibling];return node}function selector(select){const{isMultiSelecting,getMultiSelectedBlockClientIds,hasMultiSelection,getSelectedBlockClientId}=select(store);return{isMultiSelecting:isMultiSelecting(),multiSelectedBlockClientIds:getMultiSelectedBlockClientIds(),hasMultiSelection:hasMultiSelection(),selectedBlockClientId:getSelectedBlockClientId()}}function use_multi_selection_useMultiSelection(){const{isMultiSelecting,multiSelectedBlockClientIds,hasMultiSelection,selectedBlockClientId}=(0,use_select.Z)(selector,[]),selectedRef=useBlockRef(selectedBlockClientId),startRef=useBlockRef((0,lodash.first)(multiSelectedBlockClientIds)),endRef=useBlockRef((0,lodash.last)(multiSelectedBlockClientIds));return(0,use_ref_effect.Z)((node=>{const{ownerDocument}=node,{defaultView}=ownerDocument;if(!hasMultiSelection||isMultiSelecting){if(!selectedBlockClientId||isMultiSelecting)return;const selection=defaultView.getSelection();if(selection.rangeCount&&!selection.isCollapsed){const blockNode=selectedRef.current,{startContainer,endContainer}=selection.getRangeAt(0);!blockNode||blockNode.contains(startContainer)&&blockNode.contains(endContainer)||selection.removeAllRanges()}return}const{length}=multiSelectedBlockClientIds;if(length<2)return;if(!startRef.current||!endRef.current)return;node.focus();const selection=defaultView.getSelection(),range=ownerDocument.createRange(),startNode=getDeepestNode(startRef.current,"start"),endNode=getDeepestNode(endRef.current,"end");!function use_multi_selection_toggleRichText(container,toggle){Array.from(container.querySelectorAll(".rich-text")).forEach((node=>{toggle?node.setAttribute("contenteditable",!0):node.removeAttribute("contenteditable")}))}(node,!1),range.setStartBefore(startNode),range.setEndAfter(endNode),selection.removeAllRanges(),selection.addRange(range)}),[hasMultiSelection,isMultiSelecting,multiSelectedBlockClientIds,selectedBlockClientId])}function isFormElement(element){const{tagName}=element;return"INPUT"===tagName||"BUTTON"===tagName||"SELECT"===tagName||"TEXTAREA"===tagName}var is_rtl=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/is-rtl.js");function getRangeHeight(range){const rects=Array.from(range.getClientRects());if(!rects.length)return;const highestTop=Math.min(...rects.map((_ref=>{let{top}=_ref;return top})));return Math.max(...rects.map((_ref2=>{let{bottom}=_ref2;return bottom})))-highestTop}var get_rectangle_from_range=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/get-rectangle-from-range.js"),assert_is_defined=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/utils/assert-is-defined.js");function isSelectionForward(selection){const{anchorNode,focusNode,anchorOffset,focusOffset}=selection;(0,assert_is_defined.c)(anchorNode,"anchorNode"),(0,assert_is_defined.c)(focusNode,"focusNode");const position=anchorNode.compareDocumentPosition(focusNode);return!(position&anchorNode.DOCUMENT_POSITION_PRECEDING)&&(!!(position&anchorNode.DOCUMENT_POSITION_FOLLOWING)||(0!==position||anchorOffset<=focusOffset))}var hidden_caret_range_from_point=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/hidden-caret-range-from-point.js"),is_input_or_text_area=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/is-input-or-text-area.js");function isEdge(container,isReverse){let onlyVertical=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,is_input_or_text_area.Z)(container)&&"number"==typeof container.selectionStart)return container.selectionStart===container.selectionEnd&&(isReverse?0===container.selectionStart:container.value.length===container.selectionStart);if(!container.isContentEditable)return!0;const{ownerDocument}=container,{defaultView}=ownerDocument;(0,assert_is_defined.c)(defaultView,"defaultView");const selection=defaultView.getSelection();if(!selection||!selection.rangeCount)return!1;const range=selection.getRangeAt(0),collapsedRange=range.cloneRange(),isForward=isSelectionForward(selection),isCollapsed=selection.isCollapsed;isCollapsed||collapsedRange.collapse(!isForward);const collapsedRangeRect=(0,get_rectangle_from_range.Z)(collapsedRange),rangeRect=(0,get_rectangle_from_range.Z)(range);if(!collapsedRangeRect||!rangeRect)return!1;const rangeHeight=getRangeHeight(range);if(!isCollapsed&&rangeHeight&&rangeHeight>collapsedRangeRect.height&&isForward===isReverse)return!1;const isReverseDir=(0,is_rtl.Z)(container)?!isReverse:isReverse,containerRect=container.getBoundingClientRect(),x=isReverseDir?containerRect.left+1:containerRect.right-1,y=isReverse?containerRect.top+1:containerRect.bottom-1,testRange=(0,hidden_caret_range_from_point.Z)(ownerDocument,x,y,container);if(!testRange)return!1;const testRect=(0,get_rectangle_from_range.Z)(testRange);if(!testRect)return!1;const verticalSide=isReverse?"top":"bottom",horizontalSide=isReverseDir?"left":"right",verticalDiff=testRect[verticalSide]-rangeRect[verticalSide],horizontalDiff=testRect[horizontalSide]-collapsedRangeRect[horizontalSide],hasVerticalDiff=Math.abs(verticalDiff)<=1,hasHorizontalDiff=Math.abs(horizontalDiff)<=1;return onlyVertical?hasVerticalDiff:hasVerticalDiff&&hasHorizontalDiff}function isVerticalEdge(container,isReverse){return isEdge(container,isReverse,!0)}function isHorizontalEdge(container,isReverse){return isEdge(container,isReverse)}var place_caret_at_edge=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/place-caret-at-edge.js");function getClosestTabbable(target,isReverse,containerElement,onlyVertical){let targetRect,focusableNodes=dom_build_module.T_.focusable.find(containerElement);return isReverse&&(focusableNodes=(0,lodash.reverse)(focusableNodes)),focusableNodes=focusableNodes.slice(focusableNodes.indexOf(target)+1),onlyVertical&&(targetRect=target.getBoundingClientRect()),(0,lodash.find)(focusableNodes,(function isTabCandidate(node){if(!dom_build_module.T_.tabbable.isTabbableIndex(node))return!1;if(node.isContentEditable&&"true"!==node.contentEditable)return!1;if(onlyVertical){const nodeRect=node.getBoundingClientRect();if(nodeRect.left>=targetRect.right||nodeRect.right<=targetRect.left)return!1}return!0}))}function useArrowNav(){const{getSelectedBlockClientId,getMultiSelectedBlocksStartClientId,getMultiSelectedBlocksEndClientId,getPreviousBlockClientId,getNextBlockClientId,getFirstMultiSelectedBlockClientId,getLastMultiSelectedBlockClientId,getSettings,hasMultiSelection}=(0,use_select.Z)(store),{multiSelect,selectBlock}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{let verticalRect;function onMouseDown(){verticalRect=null}function expandSelection(isReverse){const selectedBlockClientId=getSelectedBlockClientId(),selectionStartClientId=getMultiSelectedBlocksStartClientId(),selectionEndClientId=getMultiSelectedBlocksEndClientId(),selectionBeforeEndClientId=getPreviousBlockClientId(selectionEndClientId||selectedBlockClientId),selectionAfterEndClientId=getNextBlockClientId(selectionEndClientId||selectedBlockClientId),nextSelectionEndClientId=isReverse?selectionBeforeEndClientId:selectionAfterEndClientId;nextSelectionEndClientId&&(selectionStartClientId===nextSelectionEndClientId?selectBlock(nextSelectionEndClientId):multiSelect(selectionStartClientId||selectedBlockClientId,nextSelectionEndClientId))}function moveSelection(isReverse){const selectedFirstClientId=getFirstMultiSelectedBlockClientId(),selectedLastClientId=getLastMultiSelectedBlockClientId(),focusedBlockClientId=isReverse?selectedFirstClientId:selectedLastClientId;focusedBlockClientId&&selectBlock(focusedBlockClientId)}function isTabbableEdge(target,isReverse){const closestTabbable=getClosestTabbable(target,isReverse,node);return!closestTabbable||!function isInSameBlock(a,b){return a.closest(BLOCK_SELECTOR)===b.closest(BLOCK_SELECTOR)}(target,closestTabbable)}function onKeyDown(event){const{keyCode,target}=event,isUp=keyCode===keycodes_build_module.UP,isDown=keyCode===keycodes_build_module.WV,isLeft=keyCode===keycodes_build_module.RL,isRight=keyCode===keycodes_build_module.pX,isReverse=isUp||isLeft,isHorizontal=isLeft||isRight,isVertical=isUp||isDown,isNav=isHorizontal||isVertical,isShift=event.shiftKey,hasModifier=isShift||event.ctrlKey||event.altKey||event.metaKey,isNavEdge=isVertical?isVerticalEdge:isHorizontalEdge,{ownerDocument}=node,{defaultView}=ownerDocument;if(hasMultiSelection()){if(isNav){(isShift?expandSelection:moveSelection)(isReverse),event.preventDefault()}return}if(isVertical?verticalRect||(verticalRect=function computeCaretRect(win){const selection=win.getSelection();(0,assert_is_defined.c)(selection,"selection");const range=selection.rangeCount?selection.getRangeAt(0):null;return range?(0,get_rectangle_from_range.Z)(range):null}(defaultView)):verticalRect=null,event.defaultPrevented)return;if(!isNav)return;if(!function isNavigationCandidate(element,keyCode,hasModifier){if((keyCode===keycodes_build_module.UP||keyCode===keycodes_build_module.WV)&&!hasModifier)return!0;const{tagName}=element;return"INPUT"!==tagName&&"TEXTAREA"!==tagName}(target,keyCode,hasModifier))return;const isReverseDir=(0,is_rtl.Z)(target)?!isReverse:isReverse,{keepCaretInsideBlock}=getSettings(),selectedBlockClientId=getSelectedBlockClientId();if(isShift){const selectionEndClientId=getMultiSelectedBlocksEndClientId(),selectionBeforeEndClientId=getPreviousBlockClientId(selectionEndClientId||selectedBlockClientId),selectionAfterEndClientId=getNextBlockClientId(selectionEndClientId||selectedBlockClientId);(isReverse&&selectionBeforeEndClientId||!isReverse&&selectionAfterEndClientId)&&isTabbableEdge(target,isReverse)&&isNavEdge(target,isReverse)&&(expandSelection(isReverse),event.preventDefault())}else if(isVertical&&isVerticalEdge(target,isReverse)&&!keepCaretInsideBlock){const closestTabbable=getClosestTabbable(target,isReverse,node,!0);closestTabbable&&(!function placeCaretAtVerticalEdge(container,isReverse,rect){return(0,place_caret_at_edge.Z)(container,isReverse,null==rect?void 0:rect.left)}(closestTabbable,isReverse,verticalRect),event.preventDefault())}else if(isHorizontal&&defaultView.getSelection().isCollapsed&&isHorizontalEdge(target,isReverseDir)&&!keepCaretInsideBlock){const closestTabbable=getClosestTabbable(target,isReverseDir,node);(0,place_caret_at_horizontal_edge.Z)(closestTabbable,isReverse),event.preventDefault()}}return node.addEventListener("mousedown",onMouseDown),node.addEventListener("keydown",onKeyDown),()=>{node.removeEventListener("mousedown",onMouseDown),node.removeEventListener("keydown",onKeyDown)}}),[])}function isDeepChild(query,container,propName){let candidate=container;do{if(query===candidate)return!0;candidate=candidate[propName]}while(candidate);return!1}const store_reducer=function reducer_reducer(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"REGISTER_SHORTCUT":return{...state,[action.name]:{category:action.category,keyCombination:action.keyCombination,aliases:action.aliases,description:action.description}};case"UNREGISTER_SHORTCUT":return(0,lodash.omit)(state,action.name)}return state};function registerShortcut(_ref){let{name,category,description,keyCombination,aliases}=_ref;return{type:"REGISTER_SHORTCUT",name,category,keyCombination,aliases,description}}function unregisterShortcut(name){return{type:"UNREGISTER_SHORTCUT",name}}const selectors_EMPTY_ARRAY=[],FORMATTING_METHODS={display:keycodes_build_module.E_,raw:keycodes_build_module.Ac,ariaLabel:keycodes_build_module.J3};function getKeyCombinationRepresentation(shortcut,representation){return shortcut?shortcut.modifier?FORMATTING_METHODS[representation][shortcut.modifier](shortcut.character):shortcut.character:null}function getShortcutKeyCombination(state,name){return state[name]?state[name].keyCombination:null}function getShortcutRepresentation(state,name){let representation=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display";const shortcut=getShortcutKeyCombination(state,name);return getKeyCombinationRepresentation(shortcut,representation)}function getShortcutDescription(state,name){return state[name]?state[name].description:null}function getShortcutAliases(state,name){return state[name]&&state[name].aliases?state[name].aliases:selectors_EMPTY_ARRAY}const getAllShortcutKeyCombinations=(0,rememo.Z)(((state,name)=>(0,lodash.compact)([getShortcutKeyCombination(state,name),...getShortcutAliases(state,name)])),((state,name)=>[state[name]])),getAllShortcutRawKeyCombinations=(0,rememo.Z)(((state,name)=>getAllShortcutKeyCombinations(state,name).map((combination=>getKeyCombinationRepresentation(combination,"raw")))),((state,name)=>[state[name]])),getCategoryShortcuts=(0,rememo.Z)(((state,categoryName)=>Object.entries(state).filter((_ref=>{let[,shortcut]=_ref;return shortcut.category===categoryName})).map((_ref2=>{let[name]=_ref2;return name}))),(state=>[state])),store_store=(0,redux_store.Z)("core/keyboard-shortcuts",{reducer:store_reducer,actions:store_actions_namespaceObject,selectors:store_selectors_namespaceObject});function useShortcutEventMatch(){const{getAllShortcutKeyCombinations}=(0,use_select.Z)(store_store);return function isMatch(name,event){return getAllShortcutKeyCombinations(name).some((_ref=>{let{modifier,character}=_ref;return keycodes_build_module.vd[modifier](event,character)}))}}(0,data_build_module.z2)(store_store);const context_context=(0,react.createContext)();function useShortcut(name,callback){let{isDisabled}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const shortcuts=(0,react.useContext)(context_context),isMatch=useShortcutEventMatch(),callbackRef=(0,react.useRef)();callbackRef.current=callback,(0,react.useEffect)((()=>{if(!isDisabled)return shortcuts.current.add(_callback),()=>{shortcuts.current.delete(_callback)};function _callback(event){isMatch(name,event)&&callbackRef.current(event)}}),[name,isDisabled])}const{Provider:shortcut_provider_Provider}=context_context;function useSelectAll(){const{getBlockOrder,getSelectedBlockClientIds,getBlockRootClientId}=(0,use_select.Z)(store),{multiSelect}=(0,use_dispatch.Z)(store),isMatch=useShortcutEventMatch();return(0,use_ref_effect.Z)((node=>{function onKeyDown(event){if(!isMatch("core/block-editor/select-all",event))return;if(!function isEntirelySelected(element){if((0,is_input_or_text_area.Z)(element))return 0===element.selectionStart&&element.value.length===element.selectionEnd;if(!element.isContentEditable)return!0;const{ownerDocument}=element,{defaultView}=ownerDocument;(0,assert_is_defined.c)(defaultView,"defaultView");const selection=defaultView.getSelection();(0,assert_is_defined.c)(selection,"selection");const range=selection.rangeCount?selection.getRangeAt(0):null;if(!range)return!0;const{startContainer,endContainer,startOffset,endOffset}=range;if(startContainer===element&&endContainer===element&&0===startOffset&&endOffset===element.childNodes.length)return!0;const lastChild=element.lastChild;(0,assert_is_defined.c)(lastChild,"lastChild");const endContainerContentLength=endContainer.nodeType===endContainer.TEXT_NODE?endContainer.data.length:endContainer.childNodes.length;return isDeepChild(startContainer,element,"firstChild")&&isDeepChild(endContainer,element,"lastChild")&&0===startOffset&&endOffset===endContainerContentLength}(event.target))return;const selectedClientIds=getSelectedBlockClientIds(),[firstSelectedClientId]=selectedClientIds,rootClientId=getBlockRootClientId(firstSelectedClientId);let blockClientIds=getBlockOrder(rootClientId);selectedClientIds.length===blockClientIds.length&&(blockClientIds=getBlockOrder(getBlockRootClientId(rootClientId)));const firstClientId=(0,lodash.first)(blockClientIds),lastClientId=(0,lodash.last)(blockClientIds);firstClientId!==lastClientId&&(multiSelect(firstClientId,lastClientId),event.preventDefault())}return node.addEventListener("keydown",onKeyDown),()=>{node.removeEventListener("keydown",onKeyDown)}}),[])}function useWritingFlow(){const[before,ref,after]=function useTabNav(){const container=(0,react.useRef)(),focusCaptureBeforeRef=(0,react.useRef)(),focusCaptureAfterRef=(0,react.useRef)(),lastFocus=(0,react.useRef)(),{hasMultiSelection,getSelectedBlockClientId,getBlockCount}=(0,use_select.Z)(store),{setNavigationMode}=(0,use_dispatch.Z)(store),focusCaptureTabIndex=(0,use_select.Z)((select=>select(store).isNavigationMode()),[])?void 0:"0",noCapture=(0,react.useRef)();function onFocusCapture(event){if(noCapture.current)noCapture.current=null;else if(hasMultiSelection())container.current.focus();else if(getSelectedBlockClientId())lastFocus.current.focus();else{setNavigationMode(!0);const action=event.target.compareDocumentPosition(container.current)&event.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";dom_build_module.T_.tabbable[action](event.target).focus()}}const before=(0,react.createElement)("div",{ref:focusCaptureBeforeRef,tabIndex:focusCaptureTabIndex,onFocus:onFocusCapture}),after=(0,react.createElement)("div",{ref:focusCaptureAfterRef,tabIndex:focusCaptureTabIndex,onFocus:onFocusCapture}),ref=(0,use_ref_effect.Z)((node=>{function onKeyDown(event){if(event.defaultPrevented)return;if(event.keyCode===keycodes_build_module.hY&&!hasMultiSelection())return event.preventDefault(),void setNavigationMode(!0);if(event.keyCode!==keycodes_build_module.Mf)return;const isShift=event.shiftKey,direction=isShift?"findPrevious":"findNext";if(!hasMultiSelection()&&!getSelectedBlockClientId())return void(event.target===node&&setNavigationMode(!0));if(isFormElement(event.target)&&isFormElement(dom_build_module.T_.tabbable[direction](event.target)))return;const next=isShift?focusCaptureBeforeRef:focusCaptureAfterRef;noCapture.current=!0,next.current.focus({preventScroll:!0})}function onFocusOut(event){lastFocus.current=event.target;const{ownerDocument}=node;event.relatedTarget||ownerDocument.activeElement!==ownerDocument.body||0!==getBlockCount()||node.focus()}function preventScrollOnTab(event){var _event$target;if(event.keyCode!==keycodes_build_module.Mf)return;if("region"===(null===(_event$target=event.target)||void 0===_event$target?void 0:_event$target.getAttribute("role")))return;if(container.current===event.target)return;const direction=event.shiftKey?"findPrevious":"findNext",target=dom_build_module.T_.tabbable[direction](event.target);target!==focusCaptureBeforeRef.current&&target!==focusCaptureAfterRef.current||(event.preventDefault(),target.focus({preventScroll:!0}))}const{ownerDocument}=node,{defaultView}=ownerDocument;return defaultView.addEventListener("keydown",preventScrollOnTab),node.addEventListener("keydown",onKeyDown),node.addEventListener("focusout",onFocusOut),()=>{defaultView.removeEventListener("keydown",preventScrollOnTab),node.removeEventListener("keydown",onKeyDown),node.removeEventListener("focusout",onFocusOut)}}),[]);return[before,(0,use_merge_refs.Z)([container,ref]),after]}(),hasMultiSelection=(0,use_select.Z)((select=>select(store).hasMultiSelection()),[]);return[before,(0,use_merge_refs.Z)([ref,use_multi_selection_useMultiSelection(),useSelectAll(),useArrowNav(),(0,use_ref_effect.Z)((node=>{if(node.tabIndex=-1,hasMultiSelection)return node.setAttribute("aria-label",(0,i18n_build_module.__)("Multiple selected blocks")),()=>{node.removeAttribute("aria-label")}}),[hasMultiSelection])]),after]}const writing_flow=(0,react.forwardRef)((function WritingFlow(_ref,forwardedRef){let{children,...props}=_ref;const[before,ref,after]=useWritingFlow();return(0,react.createElement)(react.Fragment,null,before,(0,react.createElement)("div",(0,esm_extends.Z)({},props,{ref:(0,use_merge_refs.Z)([ref,forwardedRef]),className:classnames_default()(props.className,"block-editor-writing-flow")}),children),after)}));function useParsedAssets(html){return(0,react.useMemo)((()=>{const doc=document.implementation.createHTMLDocument("");return doc.body.innerHTML=html,Array.from(doc.body.children)}),[html])}const iframe=(0,react.forwardRef)((function Iframe(_ref3,ref){var _window$__editorAsset,_window$__editorAsset2;let{contentRef,children,head,tabIndex=0,...props}=_ref3;const[,forceRender]=(0,react.useReducer)((()=>({}))),[iframeDocument,setIframeDocument]=(0,react.useState)(),[bodyClasses,setBodyClasses]=(0,react.useState)([]),styles=useParsedAssets(null===(_window$__editorAsset=window.__editorAssets)||void 0===_window$__editorAsset?void 0:_window$__editorAsset.styles),scripts=useParsedAssets(null===(_window$__editorAsset2=window.__editorAssets)||void 0===_window$__editorAsset2?void 0:_window$__editorAsset2.scripts),clearerRef=useBlockSelectionClearer(),[before,writingFlowRef,after]=useWritingFlow(),setRef=(0,use_ref_effect.Z)((node=>{function setDocumentIfReady(){const{contentDocument,ownerDocument}=node,{readyState,documentElement}=contentDocument;return("interactive"===readyState||"complete"===readyState)&&(function bubbleEvents(doc){const{defaultView}=doc,{frameElement}=defaultView;function bubbleEvent(event){const constructorName=Object.getPrototypeOf(event).constructor.name,Constructor=window[constructorName],init={};for(const key in event)init[key]=event[key];if(event instanceof defaultView.MouseEvent){const rect=frameElement.getBoundingClientRect();init.clientX+=rect.left,init.clientY+=rect.top}const newEvent=new Constructor(event.type,init);!frameElement.dispatchEvent(newEvent)&&event.preventDefault()}const eventTypes=["dragover"];for(const name of eventTypes)doc.addEventListener(name,bubbleEvent)}(contentDocument),setIframeDocument(contentDocument),clearerRef(documentElement),setBodyClasses(Array.from(ownerDocument.body.classList).filter((name=>name.startsWith("admin-color-")||"wp-embed-responsive"===name))),contentDocument.dir=ownerDocument.dir,documentElement.removeChild(contentDocument.head),documentElement.removeChild(contentDocument.body),!0)}setDocumentIfReady()||node.addEventListener("load",(()=>{setDocumentIfReady()}))}),[]),headRef=(0,use_ref_effect.Z)((element=>{scripts.reduce(((promise,script)=>promise.then((()=>async function loadScript(head,_ref2){let{id,src}=_ref2;return new Promise(((resolve,reject)=>{const script=head.ownerDocument.createElement("script");script.id=id,src?(script.src=src,script.onload=()=>resolve(),script.onerror=()=>reject()):resolve(),head.appendChild(script)}))}(element,script)))),Promise.resolve()).finally((()=>{forceRender()}))}),[]),bodyRef=(0,use_merge_refs.Z)([contentRef,clearerRef,writingFlowRef]);return(0,react.useEffect)((()=>{iframeDocument&&function styleSheetsCompat(doc){Array.from(document.styleSheets).forEach((styleSheet=>{try{styleSheet.cssRules}catch(e){return}const{ownerNode,cssRules}=styleSheet;if(!cssRules)return;if("LINK"!==ownerNode.tagName)return;if("wp-reset-editor-styles-css"===ownerNode.id)return;const isMatch=Array.from(cssRules).find((_ref=>{let{selectorText}=_ref;return selectorText&&(selectorText.includes(".editor-styles-wrapper")||selectorText.includes(".wp-block"))}));if(isMatch&&!doc.getElementById(ownerNode.id)){console.warn(`Stylesheet ${ownerNode.id} was not properly added.\nFor blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).\nFor themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`,ownerNode.outerHTML),doc.head.appendChild(ownerNode.cloneNode(!0));const inlineCssId=ownerNode.id.replace("-css","-inline-css"),inlineCssElement=document.getElementById(inlineCssId);inlineCssElement&&doc.head.appendChild(inlineCssElement.cloneNode(!0))}}))}(iframeDocument)}),[iframeDocument]),head=(0,react.createElement)(react.Fragment,null,(0,react.createElement)("style",null,"body{margin:0}"),styles.map((_ref4=>{let{tagName,href,id,rel,media,textContent}=_ref4;const TagName=tagName.toLowerCase();return"style"===TagName?(0,react.createElement)(TagName,{id,key:id},textContent):(0,react.createElement)(TagName,{href,id,rel,media,key:id})})),head),(0,react.createElement)(react.Fragment,null,tabIndex>=0&&before,(0,react.createElement)("iframe",(0,esm_extends.Z)({},props,{ref:(0,use_merge_refs.Z)([ref,setRef]),tabIndex,title:(0,i18n_build_module.__)("Editor canvas")}),iframeDocument&&(0,react_dom.createPortal)((0,react.createElement)(react.Fragment,null,(0,react.createElement)("head",{ref:headRef},head),(0,react.createElement)("body",{ref:bodyRef,className:classnames_default()("editor-styles-wrapper",...bodyClasses)},(0,react.createElement)(style_provider.Z,{document:iframeDocument},children))),iframeDocument.documentElement)),tabIndex>=0&&after)}));var colord=__webpack_require__("../../../node_modules/.pnpm/colord@2.9.1/node_modules/colord/index.mjs"),names=__webpack_require__("../../../node_modules/.pnpm/colord@2.9.1/node_modules/colord/plugins/names.mjs"),a11y=__webpack_require__("../../../node_modules/.pnpm/colord@2.9.1/node_modules/colord/plugins/a11y.mjs"),traverse=__webpack_require__("../../../node_modules/.pnpm/traverse@0.6.6/node_modules/traverse/index.js"),traverse_default=__webpack_require__.n(traverse);const commentre=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function parse(css,options){options=options||{};let lineno=1,column=1;function updatePosition(str){const lines=str.match(/\n/g);lines&&(lineno+=lines.length);const i=str.lastIndexOf("\n");column=~i?str.length-i:column+str.length}function position(){const start={line:lineno,column};return function(node){return node.position=new Position(start),whitespace(),node}}function Position(start){this.start=start,this.end={line:lineno,column},this.source=options.source}Position.prototype.content=css;const errorsList=[];function error(msg){const err=new Error(options.source+":"+lineno+":"+column+": "+msg);if(err.reason=msg,err.filename=options.source,err.line=lineno,err.column=column,err.source=css,!options.silent)throw err;errorsList.push(err)}function open(){return match(/^{\s*/)}function close(){return match(/^}/)}function rules(){let node;const accumulator=[];for(whitespace(),comments(accumulator);css.length&&"}"!==css.charAt(0)&&(node=atrule()||rule());)!1!==node&&(accumulator.push(node),comments(accumulator));return accumulator}function match(re){const m=re.exec(css);if(!m)return;const str=m[0];return updatePosition(str),css=css.slice(str.length),m}function whitespace(){match(/^\s*/)}function comments(accumulator){let c;for(accumulator=accumulator||[];c=comment();)!1!==c&&accumulator.push(c);return accumulator}function comment(){const pos=position();if("/"!==css.charAt(0)||"*"!==css.charAt(1))return;let i=2;for(;""!==css.charAt(i)&&("*"!==css.charAt(i)||"/"!==css.charAt(i+1));)++i;if(i+=2,""===css.charAt(i-1))return error("End of comment missing");const str=css.slice(2,i-2);return column+=2,updatePosition(str),css=css.slice(i),column+=2,pos({type:"comment",comment:str})}function selector(){const m=match(/^([^{]+)/);if(m)return trim(m[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(matched){return matched.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(s){return s.replace(/\u200C/g,",")}))}function declaration(){const pos=position();let prop=match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!prop)return;if(prop=trim(prop[0]),!match(/^:\s*/))return error("property missing ':'");const val=match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),ret=pos({type:"declaration",property:prop.replace(commentre,""),value:val?trim(val[0]).replace(commentre,""):""});return match(/^[;\s]*/),ret}function declarations(){const decls=[];if(!open())return error("missing '{'");let decl;for(comments(decls);decl=declaration();)!1!==decl&&(decls.push(decl),comments(decls));return close()?decls:error("missing '}'")}function keyframe(){let m;const vals=[],pos=position();for(;m=match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)vals.push(m[1]),match(/^,\s*/);if(vals.length)return pos({type:"keyframe",values:vals,declarations:declarations()})}const atimport=_compileAtrule("import"),atcharset=_compileAtrule("charset"),atnamespace=_compileAtrule("namespace");function _compileAtrule(name){const re=new RegExp("^@"+name+"\\s*([^;]+);");return function(){const pos=position(),m=match(re);if(!m)return;const ret={type:name};return ret[name]=m[1].trim(),pos(ret)}}function atrule(){if("@"===css[0])return function atkeyframes(){const pos=position();let m=match(/^@([-\w]+)?keyframes\s*/);if(!m)return;const vendor=m[1];if(m=match(/^([-\w]+)\s*/),!m)return error("@keyframes missing name");const name=m[1];if(!open())return error("@keyframes missing '{'");let frame,frames=comments();for(;frame=keyframe();)frames.push(frame),frames=frames.concat(comments());return close()?pos({type:"keyframes",name,vendor,keyframes:frames}):error("@keyframes missing '}'")}()||function atmedia(){const pos=position(),m=match(/^@media *([^{]+)/);if(!m)return;const media=trim(m[1]);if(!open())return error("@media missing '{'");const style=comments().concat(rules());return close()?pos({type:"media",media,rules:style}):error("@media missing '}'")}()||function atcustommedia(){const pos=position(),m=match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(m)return pos({type:"custom-media",name:trim(m[1]),media:trim(m[2])})}()||function atsupports(){const pos=position(),m=match(/^@supports *([^{]+)/);if(!m)return;const supports=trim(m[1]);if(!open())return error("@supports missing '{'");const style=comments().concat(rules());return close()?pos({type:"supports",supports,rules:style}):error("@supports missing '}'")}()||atimport()||atcharset()||atnamespace()||function atdocument(){const pos=position(),m=match(/^@([-\w]+)?document *([^{]+)/);if(!m)return;const vendor=trim(m[1]),doc=trim(m[2]);if(!open())return error("@document missing '{'");const style=comments().concat(rules());return close()?pos({type:"document",document:doc,vendor,rules:style}):error("@document missing '}'")}()||function atpage(){const pos=position();if(!match(/^@page */))return;const sel=selector()||[];if(!open())return error("@page missing '{'");let decl,decls=comments();for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:"page",selectors:sel,declarations:decls}):error("@page missing '}'")}()||function athost(){const pos=position();if(!match(/^@host\s*/))return;if(!open())return error("@host missing '{'");const style=comments().concat(rules());return close()?pos({type:"host",rules:style}):error("@host missing '}'")}()||function atfontface(){const pos=position();if(!match(/^@font-face\s*/))return;if(!open())return error("@font-face missing '{'");let decl,decls=comments();for(;decl=declaration();)decls.push(decl),decls=decls.concat(comments());return close()?pos({type:"font-face",declarations:decls}):error("@font-face missing '}'")}()}function rule(){const pos=position(),sel=selector();return sel?(comments(),pos({type:"rule",selectors:sel,declarations:declarations()})):error("selector missing")}return addParent(function stylesheet(){const rulesList=rules();return{type:"stylesheet",stylesheet:{source:options.source,rules:rulesList,parsingErrors:errorsList}}}())}function trim(str){return str?str.replace(/^\s+|\s+$/g,""):""}function addParent(obj,parent){const isNode=obj&&"string"==typeof obj.type,childParent=isNode?obj:parent;for(const k in obj){const value=obj[k];Array.isArray(value)?value.forEach((function(v){addParent(v,childParent)})):value&&"object"==typeof value&&addParent(value,childParent)}return isNode&&Object.defineProperty(obj,"parent",{configurable:!0,writable:!0,enumerable:!1,value:parent||null}),obj}var inherits_browser=__webpack_require__("../../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"),inherits_browser_default=__webpack_require__.n(inherits_browser);const compiler=Compiler;function Compiler(opts){this.options=opts||{}}Compiler.prototype.emit=function(str){return str},Compiler.prototype.visit=function(node){return this[node.type](node)},Compiler.prototype.mapVisit=function(nodes,delim){let buf="";delim=delim||"";for(let i=0,length=nodes.length;inode=>{if("declaration"===node.type){const updatedURLs=function getURLs(value){const reg=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let match;const URLs=[];for(;null!==(match=reg.exec(value));){const meta={source:match[0],before:match[1],quote:match[2],value:match[3],after:match[4]};isValidURL(meta)&&URLs.push(meta)}return URLs}(node.value).map(function processURL(baseURL){return meta=>({...meta,newUrl:"url("+meta.before+meta.quote+getResourcePath(meta.value,baseURL)+meta.quote+meta.after+")"})}(rootURL));return{...node,value:(raw=node.value,URLs=updatedURLs,URLs.forEach((item=>{raw=raw.replace(item.source,item.newUrl)})),raw)}}var raw,URLs;return node},IS_ROOT_TAG=/^(body|html|:root).*$/,transforms_wrap=function(namespace){let ignore=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return node=>{const updateSelector=selector=>ignore.includes(selector.trim())?selector:selector.match(IS_ROOT_TAG)?selector.replace(/^(body|html|:root)/,namespace):namespace+" "+selector;return"rule"===node.type?{...node,selectors:node.selectors.map(updateSelector)}:node}},transform_styles=function(styles){let wrapperClassName=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,lodash.map)(styles,(_ref=>{let{css,baseURL,__experimentalNoWrapper=!1}=_ref;const transforms=[];return wrapperClassName&&!__experimentalNoWrapper&&transforms.push(transforms_wrap(wrapperClassName)),baseURL&&transforms.push(url_rewrite(baseURL)),transforms.length?transform_styles_traverse(css,(0,compose.Z)(transforms)):css}))};function useDarkThemeBodyClassName(styles){return(0,react.useCallback)((node=>{if(!node)return;const{ownerDocument}=node,{defaultView,body}=ownerDocument,canvas=ownerDocument.querySelector(".editor-styles-wrapper");let backgroundColor;if(canvas)backgroundColor=defaultView.getComputedStyle(canvas,null).getPropertyValue("background-color");else{const tempCanvas=ownerDocument.createElement("div");tempCanvas.classList.add("editor-styles-wrapper"),body.appendChild(tempCanvas),backgroundColor=defaultView.getComputedStyle(tempCanvas,null).getPropertyValue("background-color"),body.removeChild(tempCanvas)}const colordBackgroundColor=(0,colord.Vi)(backgroundColor);colordBackgroundColor.luminance()>.5||0===colordBackgroundColor.alpha()?body.classList.remove("is-dark-theme"):body.classList.add("is-dark-theme")}),[styles])}function EditorStyles(_ref){let{styles}=_ref;const transformedStyles=(0,react.useMemo)((()=>transform_styles(styles,".editor-styles-wrapper")),[styles]);return(0,react.createElement)(react.Fragment,null,(0,react.createElement)("style",{ref:useDarkThemeBodyClassName(styles)}),transformedStyles.map(((css,index)=>(0,react.createElement)("style",{key:index},css))))}let MemoizedBlockList;(0,colord.l7)([names.Z,a11y.Z]);const auto=function AutoBlockPreview(_ref){let{viewportWidth,__experimentalPadding}=_ref;const[containerResizeListener,{width:containerWidth}]=(0,use_resize_observer.Z)(),[contentResizeListener,{height:contentHeight}]=(0,use_resize_observer.Z)(),styles=(0,use_select.Z)((select=>select(store).getSettings().styles),[]);MemoizedBlockList=MemoizedBlockList||(0,pure.Z)(BlockList);const scale=containerWidth/viewportWidth;return(0,react.createElement)("div",{className:"block-editor-block-preview__container"},containerResizeListener,(0,react.createElement)(disabled.Z,{className:"block-editor-block-preview__content",style:{transform:`scale(${scale})`,height:contentHeight*scale}},(0,react.createElement)(iframe,{head:(0,react.createElement)(EditorStyles,{styles}),contentRef:(0,use_ref_effect.Z)((bodyElement=>{const{ownerDocument:{documentElement}}=bodyElement;documentElement.classList.add("block-editor-block-preview__content-iframe"),documentElement.style.position="absolute",documentElement.style.width="100%",bodyElement.style.padding=__experimentalPadding+"px"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:viewportWidth,height:contentHeight,pointerEvents:"none"}},contentResizeListener,(0,react.createElement)(MemoizedBlockList,{renderAppender:!1}))))};const block_preview=(0,react.memo)((function BlockPreview(_ref){let{blocks,__experimentalPadding=0,viewportWidth=1200,__experimentalLive=!1,__experimentalOnClick}=_ref;const originalSettings=(0,use_select.Z)((select=>select(store).getSettings()),[]),settings=(0,react.useMemo)((()=>{const _settings={...originalSettings};return _settings.__experimentalBlockPatterns=[],_settings}),[originalSettings]),renderedBlocks=(0,react.useMemo)((()=>(0,lodash.castArray)(blocks)),[blocks]);return blocks&&0!==blocks.length?(0,react.createElement)(provider,{value:renderedBlocks,settings},__experimentalLive?(0,react.createElement)(LiveBlockPreview,{onClick:__experimentalOnClick}):(0,react.createElement)(auto,{viewportWidth,__experimentalPadding})):null}));const preview_panel=function InserterPreviewPanel(_ref){var _hoveredItemBlockType,_hoveredItemBlockType2;let{item}=_ref;const{name,title,icon,description,initialAttributes}=item,hoveredItemBlockType=(0,build_module.ck)(name),isReusable=(0,build_module.vr)(item);return(0,react.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,react.createElement)("div",{className:"block-editor-inserter__preview"},isReusable||null!=hoveredItemBlockType&&hoveredItemBlockType.example?(0,react.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,react.createElement)(block_preview,{__experimentalPadding:16,viewportWidth:null!==(_hoveredItemBlockType=null===(_hoveredItemBlockType2=hoveredItemBlockType.example)||void 0===_hoveredItemBlockType2?void 0:_hoveredItemBlockType2.viewportWidth)&&void 0!==_hoveredItemBlockType?_hoveredItemBlockType:500,blocks:hoveredItemBlockType.example?(0,build_module.Wf)(item.name,{attributes:{...hoveredItemBlockType.example.attributes,...initialAttributes},innerBlocks:hoveredItemBlockType.example.innerBlocks}):(0,build_module.j4)(name,initialAttributes)})):(0,react.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,i18n_build_module.__)("No Preview Available."))),!isReusable&&(0,react.createElement)(block_card,{title,icon,description}))};var use_async_list=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-async-list/index.js"),CompositeItem=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/Composite/CompositeItem.js");const inserter_listbox_context=(0,react.createContext)();const inserter_listbox_item=(0,react.forwardRef)((function InserterListboxItem(_ref,ref){let{isFirst,as:Component,children,...props}=_ref;const state=(0,react.useContext)(inserter_listbox_context);return(0,react.createElement)(CompositeItem.A,(0,esm_extends.Z)({ref,state,role:"option",focusable:!0},props),(htmlProps=>{const propsWithTabIndex={...htmlProps,tabIndex:isFirst?0:htmlProps.tabIndex};return Component?(0,react.createElement)(Component,propsWithTabIndex,children):"function"==typeof children?children(propsWithTabIndex):(0,react.createElement)(build_module_button.Z,propsWithTabIndex,children)}))})),bodyClass="is-dragging-components-draggable";function Draggable(_ref){let{children,onDragStart,onDragOver,onDragEnd,cloneClassname,elementId,transferData,__experimentalTransferDataType:transferDataType="text",__experimentalDragComponent:dragComponent}=_ref;const dragComponentRef=(0,react.useRef)(null),cleanup=(0,react.useRef)((()=>{}));return(0,react.useEffect)((()=>()=>{cleanup.current()}),[]),(0,react.createElement)(react.Fragment,null,children({onDraggableStart:function start(event){const{ownerDocument}=event.target;event.dataTransfer.setData(transferDataType,JSON.stringify(transferData));const cloneWrapper=ownerDocument.createElement("div");cloneWrapper.style.top=0,cloneWrapper.style.left=0;const dragImage=ownerDocument.createElement("div");"function"==typeof event.dataTransfer.setDragImage&&(dragImage.classList.add("components-draggable__invisible-drag-image"),ownerDocument.body.appendChild(dragImage),event.dataTransfer.setDragImage(dragImage,0,0)),cloneWrapper.classList.add("components-draggable__clone"),cloneClassname&&cloneWrapper.classList.add(cloneClassname);let x=0,y=0;if(dragComponentRef.current){x=event.clientX,y=event.clientY,cloneWrapper.style.transform=`translate( ${x}px, ${y}px )`;const clonedDragComponent=ownerDocument.createElement("div");clonedDragComponent.innerHTML=dragComponentRef.current.innerHTML,cloneWrapper.appendChild(clonedDragComponent),ownerDocument.body.appendChild(cloneWrapper)}else{const element=ownerDocument.getElementById(elementId),elementRect=element.getBoundingClientRect(),elementWrapper=element.parentNode,elementTopOffset=parseInt(elementRect.top,10),elementLeftOffset=parseInt(elementRect.left,10);cloneWrapper.style.width=`${elementRect.width+0}px`;const clone=element.cloneNode(!0);clone.id=`clone-${elementId}`,x=elementLeftOffset-0,y=elementTopOffset-0,cloneWrapper.style.transform=`translate( ${x}px, ${y}px )`,Array.from(clone.querySelectorAll("iframe")).forEach((child=>child.parentNode.removeChild(child))),cloneWrapper.appendChild(clone),elementWrapper.appendChild(cloneWrapper)}let cursorLeft=event.clientX,cursorTop=event.clientY;const throttledDragOver=(0,lodash.throttle)((function over(e){if(cursorLeft===e.clientX&&cursorTop===e.clientY)return;const nextX=x+e.clientX-cursorLeft,nextY=y+e.clientY-cursorTop;cloneWrapper.style.transform=`translate( ${nextX}px, ${nextY}px )`,cursorLeft=e.clientX,cursorTop=e.clientY,x=nextX,y=nextY,onDragOver&&onDragOver(e)}),16);let timerId;ownerDocument.addEventListener("dragover",throttledDragOver),ownerDocument.body.classList.add(bodyClass),event.persist(),onDragStart&&(timerId=setTimeout((()=>onDragStart(event)))),cleanup.current=()=>{cloneWrapper&&cloneWrapper.parentNode&&cloneWrapper.parentNode.removeChild(cloneWrapper),dragImage&&dragImage.parentNode&&dragImage.parentNode.removeChild(dragImage),ownerDocument.body.classList.remove(bodyClass),ownerDocument.removeEventListener("dragover",throttledDragOver),clearTimeout(timerId)}},onDraggableEnd:function end(event){event.preventDefault(),cleanup.current(),onDragEnd&&onDragEnd(event)}}),dragComponent&&(0,react.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:dragComponentRef},dragComponent))}const drag_handle=(0,react.createElement)(svg.Wj,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},(0,react.createElement)(svg.y$,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function BlockDraggableChip(_ref){let{count,icon}=_ref;return(0,react.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,react.createElement)("div",{className:"block-editor-block-draggable-chip"},(0,react.createElement)(component.Z,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,react.createElement)(flex_item_component.Z,null,icon?(0,react.createElement)(block_icon,{icon}):(0,i18n_build_module.gB)((0,i18n_build_module._n)("%d block","%d blocks",count),count)),(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(block_icon,{icon:drag_handle})))))}const inserter_draggable_blocks=_ref=>{let{isEnabled,blocks,icon,children}=_ref;const transferData={type:"inserter",blocks};return(0,react.createElement)(Draggable,{__experimentalTransferDataType:"wp-blocks",transferData,__experimentalDragComponent:(0,react.createElement)(BlockDraggableChip,{count:blocks.length,icon})},(_ref2=>{let{onDraggableStart,onDraggableEnd}=_ref2;return children({draggable:isEnabled,onDragStart:isEnabled?onDraggableStart:void 0,onDragEnd:isEnabled?onDraggableEnd:void 0})}))};function isAppleOS(){let _window=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform}=_window.navigator;return-1!==platform.indexOf("Mac")||["iPad","iPhone"].includes(platform)}const inserter_list_item=(0,react.memo)((function InserterListItem(_ref){let{className,isFirst,item,onSelect,onHover,isDraggable,...props}=_ref;const isDragging=(0,react.useRef)(!1),itemIconStyle=item.icon?{backgroundColor:item.icon.background,color:item.icon.foreground}:{},blocks=(0,react.useMemo)((()=>[(0,build_module.j4)(item.name,item.initialAttributes,(0,build_module.ne)(item.innerBlocks))]),[item.name,item.initialAttributes,item.initialAttributes]);return(0,react.createElement)(inserter_draggable_blocks,{isEnabled:isDraggable&&!item.disabled,blocks,icon:item.icon},(_ref2=>{let{draggable,onDragStart,onDragEnd}=_ref2;return(0,react.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable,onDragStart:event=>{isDragging.current=!0,onDragStart&&(onHover(null),onDragStart(event))},onDragEnd:event=>{isDragging.current=!1,onDragEnd&&onDragEnd(event)}},(0,react.createElement)(inserter_listbox_item,(0,esm_extends.Z)({isFirst,className:classnames_default()("block-editor-block-types-list__item",className),disabled:item.isDisabled,onClick:event=>{event.preventDefault(),onSelect(item,isAppleOS()?event.metaKey:event.ctrlKey),onHover(null)},onKeyDown:event=>{const{keyCode}=event;keyCode===keycodes_build_module.K5&&(event.preventDefault(),onSelect(item,isAppleOS()?event.metaKey:event.ctrlKey),onHover(null))},onFocus:()=>{isDragging.current||onHover(item)},onMouseEnter:()=>{isDragging.current||onHover(item)},onMouseLeave:()=>onHover(null),onBlur:()=>onHover(null)},props),(0,react.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:itemIconStyle},(0,react.createElement)(block_icon,{icon:item.icon,showColors:!0})),(0,react.createElement)("span",{className:"block-editor-block-types-list__item-title"},item.title)))}))}));const group=(0,react.forwardRef)((function InserterListboxGroup(props,ref){const[shouldSpeak,setShouldSpeak]=(0,react.useState)(!1);return(0,react.useEffect)((()=>{shouldSpeak&&(0,a11y_build_module.D)((0,i18n_build_module.__)("Use left and right arrow keys to move through blocks"))}),[shouldSpeak]),(0,react.createElement)("div",(0,esm_extends.Z)({ref,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{setShouldSpeak(!0)},onBlur:event=>{!event.currentTarget.contains(event.relatedTarget)&&setShouldSpeak(!1)}},props))}));var _rollupPluginBabelHelpers_1f0bf8c2=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/_rollupPluginBabelHelpers-1f0bf8c2.js"),createComponent=__webpack_require__("../../../node_modules/.pnpm/reakit-system@0.15.2_react@17.0.2/node_modules/reakit-system/es/createComponent.js"),createHook=__webpack_require__("../../../node_modules/.pnpm/reakit-system@0.15.2_react@17.0.2/node_modules/reakit-system/es/createHook.js"),useForkRef=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/useForkRef.js"),useIsomorphicEffect=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/useIsomorphicEffect.js"),findEnabledItemById_8ddca752=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/findEnabledItemById-8ddca752.js"),_keys_6742f591=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/__keys-6742f591.js"),Id=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/Id/Id.js"),Role=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/Role/Role.js"),useGroup=(0,createHook.B)({name:"Group",compose:Role.q,keys:[],useProps:function useProps(_,htmlProps){return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({role:"group"},htmlProps)}}),useCompositeGroup=((0,createComponent.L)({as:"div",useHook:useGroup}),(0,createHook.B)({name:"CompositeGroup",compose:[useGroup,Id.i],keys:_keys_6742f591.a,propsAreEqual:function propsAreEqual(prev,next){if(!next.id||prev.id!==next.id)return useGroup.unstable_propsAreEqual(prev,next);var prevCurrentId=prev.currentId,prevProps=(prev.unstable_moves,(0,_rollupPluginBabelHelpers_1f0bf8c2._)(prev,["currentId","unstable_moves"])),nextCurrentId=next.currentId,nextProps=(next.unstable_moves,(0,_rollupPluginBabelHelpers_1f0bf8c2._)(next,["currentId","unstable_moves"]));if(prev.items&&next.items){var prevCurrentItem=(0,findEnabledItemById_8ddca752.f)(prev.items,prevCurrentId),nextCurrentItem=(0,findEnabledItemById_8ddca752.f)(next.items,nextCurrentId),prevGroupId=null==prevCurrentItem?void 0:prevCurrentItem.groupId,nextGroupId=null==nextCurrentItem?void 0:nextCurrentItem.groupId;if(next.id===nextGroupId||next.id===prevGroupId)return!1}return useGroup.unstable_propsAreEqual(prevProps,nextProps)},useProps:function useProps(options,_ref){var htmlRef=_ref.ref,htmlProps=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_ref,["ref"]),ref=(0,react.useRef)(null),id=options.id;return(0,useIsomorphicEffect.Y)((function(){var _options$registerGrou;if(id)return null===(_options$registerGrou=options.registerGroup)||void 0===_options$registerGrou||_options$registerGrou.call(options,{id,ref}),function(){var _options$unregisterGr;null===(_options$unregisterGr=options.unregisterGroup)||void 0===_options$unregisterGr||_options$unregisterGr.call(options,id)}}),[id,options.registerGroup,options.unregisterGroup]),(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({ref:(0,useForkRef.c)(ref,htmlRef)},htmlProps)}})),CompositeGroup=(0,createComponent.L)({as:"div",useHook:useCompositeGroup});const inserter_listbox_row=(0,react.forwardRef)((function InserterListboxRow(props,ref){const state=(0,react.useContext)(inserter_listbox_context);return(0,react.createElement)(CompositeGroup,(0,esm_extends.Z)({state,role:"presentation",ref},props))}));const block_types_list=function BlockTypesList(_ref){let{items=[],onSelect,onHover=()=>{},children,label,isDraggable=!0}=_ref;return(0,react.createElement)(group,{className:"block-editor-block-types-list","aria-label":label},function chunk(array,size){const chunks=[];for(let i=0,j=array.length;i(0,react.createElement)(inserter_listbox_row,{key:i},row.map(((item,j)=>(0,react.createElement)(inserter_list_item,{key:item.id,item,className:(0,build_module.hq)(item.id),onSelect,onHover,isDraggable,isFirst:0===i&&0===j})))))),children)};const panel=function InserterPanel(_ref){let{title,icon,children}=_ref;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,react.createElement)("h2",{className:"block-editor-inserter__panel-title"},title),(0,react.createElement)(components_build_module_icon.Z,{icon})),(0,react.createElement)("div",{className:"block-editor-inserter__panel-content"},children))},use_block_types_state=(rootClientId,onInsert)=>{const{categories,collections,items}=(0,use_select.Z)((select=>{const{getInserterItems}=select(store),{getCategories,getCollections}=select(build_module.h);return{categories:getCategories(),collections:getCollections(),items:getInserterItems(rootClientId)}}),[rootClientId]),onSelectItem=(0,react.useCallback)(((_ref,shouldFocusBlock)=>{let{name,initialAttributes,innerBlocks}=_ref;const insertedBlock=(0,build_module.j4)(name,initialAttributes,(0,build_module.ne)(innerBlocks));onInsert(insertedBlock,void 0,shouldFocusBlock)}),[onInsert]);return[items,categories,collections,onSelectItem]};var CompositeState=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/Composite/CompositeState.js");const inserter_listbox=function InserterListbox(_ref){let{children}=_ref;const compositeState=(0,CompositeState.u)({shift:!0,wrap:"horizontal"});return(0,react.createElement)(inserter_listbox_context.Provider,{value:compositeState},children)},block_types_tab_EMPTY_ARRAY=[];const block_types_tab=function BlockTypesTab(_ref){let{rootClientId,onInsert,onHover,showMostUsedBlocks}=_ref;const[items,categories,collections,onSelectItem]=use_block_types_state(rootClientId,onInsert),suggestedItems=(0,react.useMemo)((()=>(0,lodash.orderBy)(items,["frecency"],["desc"]).slice(0,6)),[items]),uncategorizedItems=(0,react.useMemo)((()=>items.filter((item=>!item.category))),[items]),itemsPerCategory=(0,react.useMemo)((()=>(0,lodash.flow)((itemList=>itemList.filter((item=>item.category&&"reusable"!==item.category))),(itemList=>(0,lodash.groupBy)(itemList,"category")))(items)),[items]),itemsPerCollection=(0,react.useMemo)((()=>{const result={...collections};return Object.keys(collections).forEach((namespace=>{result[namespace]=items.filter((item=>(item=>item.name.split("/")[0])(item)===namespace)),0===result[namespace].length&&delete result[namespace]})),result}),[items,collections]);(0,react.useEffect)((()=>()=>onHover(null)),[]);const currentlyRenderedCategories=(0,use_async_list.Z)(categories),didRenderAllCategories=categories.length===currentlyRenderedCategories.length,collectionEntries=(0,react.useMemo)((()=>Object.entries(collections)),[collections]),currentlyRenderedCollections=(0,use_async_list.Z)(didRenderAllCategories?collectionEntries:block_types_tab_EMPTY_ARRAY);return(0,react.createElement)(inserter_listbox,null,(0,react.createElement)("div",null,showMostUsedBlocks&&!!suggestedItems.length&&(0,react.createElement)(panel,{title:(0,i18n_build_module._x)("Most used","blocks")},(0,react.createElement)(block_types_list,{items:suggestedItems,onSelect:onSelectItem,onHover,label:(0,i18n_build_module._x)("Most used","blocks")})),(0,lodash.map)(currentlyRenderedCategories,(category=>{const categoryItems=itemsPerCategory[category.slug];return categoryItems&&categoryItems.length?(0,react.createElement)(panel,{key:category.slug,title:category.title,icon:category.icon},(0,react.createElement)(block_types_list,{items:categoryItems,onSelect:onSelectItem,onHover,label:category.title})):null})),didRenderAllCategories&&uncategorizedItems.length>0&&(0,react.createElement)(panel,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,i18n_build_module.__)("Uncategorized")},(0,react.createElement)(block_types_list,{items:uncategorizedItems,onSelect:onSelectItem,onHover,label:(0,i18n_build_module.__)("Uncategorized")})),(0,lodash.map)(currentlyRenderedCollections,(_ref2=>{let[namespace,collection]=_ref2;const collectionItems=itemsPerCollection[namespace];return collectionItems&&collectionItems.length?(0,react.createElement)(panel,{key:namespace,title:collection.title,icon:collection.icon},(0,react.createElement)(block_types_list,{items:collectionItems,onSelect:onSelectItem,onHover,label:collection.title})):null}))))};var select_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/select-control/index.js");const pattern_panel=function PatternInserterPanel(_ref){let{selectedCategory,patternCategories,onClickCategory,openPatternExplorer}=_ref;const isMobile=(0,use_viewport_match.Z)("medium","<"),className=classnames_default()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return(0,react.createElement)(component.Z,{justify:"space-between",align:"start",gap:"4",className},(0,react.createElement)(flex_item_component.Z,{isBlock:!0},(0,react.createElement)(select_control.Z,{className:"block-editor-inserter__panel-dropdown",label:(0,i18n_build_module.__)("Filter patterns"),hideLabelFromVision:!0,value:selectedCategory.name,onChange:selected=>{onClickCategory(patternCategories.find((patternCategory=>selected===patternCategory.name)))},onBlur:event=>{null!=event&&event.relatedTarget||event.stopPropagation()},options:(()=>{const options=[];return patternCategories.map((patternCategory=>options.push({value:patternCategory.name,label:patternCategory.label}))),options})()})),!isMobile&&(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(build_module_button.Z,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:(0,i18n_build_module.__)("Explore all patterns"),onClick:()=>openPatternExplorer()},(0,i18n_build_module._x)("Explore","Label for showing all block patterns"))))};var notices_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+notices@3.2.7_react@17.0.2/node_modules/@wordpress/notices/build-module/index.js");const use_patterns_state=(onInsert,rootClientId)=>{const{patternCategories,patterns}=(0,use_select.Z)((select=>{const{__experimentalGetAllowedPatterns,getSettings}=select(store);return{patterns:__experimentalGetAllowedPatterns(rootClientId),patternCategories:getSettings().__experimentalBlockPatternCategories}}),[rootClientId]),{createSuccessNotice}=(0,use_dispatch.Z)(notices_build_module.h),onClickPattern=(0,react.useCallback)(((pattern,blocks)=>{onInsert((0,lodash.map)(blocks,(block=>(0,build_module.Wm)(block))),pattern.name),createSuccessNotice((0,i18n_build_module.gB)((0,i18n_build_module.__)('Block pattern "%s" inserted.'),pattern.title),{type:"snackbar"})}),[]);return[patterns,patternCategories,onClickPattern]};var Composite=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/Composite/Composite.js");function BlockPattern(_ref){let{isDraggable,pattern,onClick,composite}=_ref;const{blocks,viewportWidth}=pattern,descriptionId=`block-editor-block-patterns-list__item-description-${(0,use_instance_id.Z)(BlockPattern)}`;return(0,react.createElement)(inserter_draggable_blocks,{isEnabled:isDraggable,blocks},(_ref2=>{let{draggable,onDragStart,onDragEnd}=_ref2;return(0,react.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":pattern.title,"aria-describedby":pattern.description?descriptionId:void 0,draggable,onDragStart,onDragEnd},(0,react.createElement)(CompositeItem.A,(0,esm_extends.Z)({role:"option",as:"div"},composite,{className:"block-editor-block-patterns-list__item",onClick:()=>onClick(pattern,blocks)}),(0,react.createElement)(block_preview,{blocks,viewportWidth}),(0,react.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},pattern.title),!!pattern.description&&(0,react.createElement)(visually_hidden_component.Z,{id:descriptionId},pattern.description)))}))}function BlockPatternPlaceholder(){return(0,react.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}const block_patterns_list=function BlockPatternList(_ref3){let{isDraggable,blockPatterns,shownPatterns,onClickPattern,orientation,label=(0,i18n_build_module.__)("Block Patterns")}=_ref3;const composite=(0,CompositeState.u)({orientation});return(0,react.createElement)(Composite.b,(0,esm_extends.Z)({},composite,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":label}),blockPatterns.map((pattern=>shownPatterns.includes(pattern)?(0,react.createElement)(BlockPattern,{key:pattern.name,pattern,onClick:onClickPattern,isDraggable,composite}):(0,react.createElement)(BlockPatternPlaceholder,{key:pattern.name}))))};function PatternCategoriesList(_ref){let{selectedCategory,patternCategories,onClickCategory}=_ref;const baseClassName="block-editor-block-patterns-explorer__sidebar";return(0,react.createElement)("div",{className:`${baseClassName}__categories-list`},patternCategories.map((_ref2=>{let{name,label}=_ref2;return(0,react.createElement)(build_module_button.Z,{key:name,label,className:`${baseClassName}__categories-list__item`,isPressed:selectedCategory===name,onClick:()=>{onClickCategory(name)}},label)})))}function PatternsExplorerSearch(_ref3){let{filterValue,setFilterValue}=_ref3;return(0,react.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,react.createElement)(search_control.Z,{onChange:setFilterValue,value:filterValue,label:(0,i18n_build_module.__)("Search for patterns"),placeholder:(0,i18n_build_module.__)("Search")}))}const sidebar=function PatternExplorerSidebar(_ref4){let{selectedCategory,patternCategories,onClickCategory,filterValue,setFilterValue}=_ref4;return(0,react.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,react.createElement)(PatternsExplorerSearch,{filterValue,setFilterValue}),!filterValue&&(0,react.createElement)(PatternCategoriesList,{selectedCategory,patternCategories,onClickCategory}))};var use_debounce=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-debounce/index.js");const no_results=function InserterNoResults(){return(0,react.createElement)("div",{className:"block-editor-inserter__no-results"},(0,react.createElement)(build_module_icon.Z,{className:"block-editor-inserter__no-results-icon",icon:block_default.Z}),(0,react.createElement)("p",null,(0,i18n_build_module.__)("No results found.")))};const use_insertion_point=function useInsertionPoint(_ref){let{rootClientId="",insertionIndex,clientId,isAppender,onSelect,shouldFocusBlock=!0}=_ref;const{getSelectedBlock}=(0,use_select.Z)(store),{destinationRootClientId,destinationIndex}=(0,use_select.Z)((select=>{const{getSelectedBlockClientId,getBlockRootClientId,getBlockIndex,getBlockOrder}=select(store),selectedBlockClientId=getSelectedBlockClientId();let _destinationIndex,_destinationRootClientId=rootClientId;return void 0!==insertionIndex?_destinationIndex=insertionIndex:clientId?_destinationIndex=getBlockIndex(clientId,_destinationRootClientId):!isAppender&&selectedBlockClientId?(_destinationRootClientId=getBlockRootClientId(selectedBlockClientId),_destinationIndex=getBlockIndex(selectedBlockClientId,_destinationRootClientId)+1):_destinationIndex=getBlockOrder(_destinationRootClientId).length,{destinationRootClientId:_destinationRootClientId,destinationIndex:_destinationIndex}}),[rootClientId,insertionIndex,clientId,isAppender]),{replaceBlocks,insertBlocks,showInsertionPoint,hideInsertionPoint}=(0,use_dispatch.Z)(store),onInsertBlocks=(0,react.useCallback)((function(blocks,meta){let shouldForceFocusBlock=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const selectedBlock=getSelectedBlock();!isAppender&&selectedBlock&&(0,build_module.ZP)(selectedBlock)?replaceBlocks(selectedBlock.clientId,blocks,null,shouldFocusBlock||shouldForceFocusBlock?0:null,meta):insertBlocks(blocks,destinationIndex,destinationRootClientId,!0,shouldFocusBlock||shouldForceFocusBlock?0:null,meta);const message=(0,i18n_build_module.gB)((0,i18n_build_module._n)("%d block added.","%d blocks added.",(0,lodash.castArray)(blocks).length),(0,lodash.castArray)(blocks).length);(0,a11y_build_module.D)(message),onSelect&&onSelect()}),[isAppender,getSelectedBlock,replaceBlocks,insertBlocks,destinationRootClientId,destinationIndex,onSelect,shouldFocusBlock]),onToggleInsertionPoint=(0,react.useCallback)((show=>{show?showInsertionPoint(destinationRootClientId,destinationIndex):hideInsertionPoint()}),[showInsertionPoint,hideInsertionPoint,destinationRootClientId,destinationIndex]);return[destinationRootClientId,onInsertBlocks,onToggleInsertionPoint]},defaultGetName=item=>item.name||"",defaultGetTitle=item=>item.title,defaultGetDescription=item=>item.description||"",defaultGetKeywords=item=>item.keywords||[],defaultGetCategory=item=>item.category,defaultGetCollection=()=>null;function normalizeSearchInput(){let input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return input=(0,lodash.deburr)(input),input=input.replace(/^\//,""),input=input.toLowerCase(),input}const getNormalizedSearchTerms=function(){let input=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,lodash.words)(normalizeSearchInput(input))},removeMatchingTerms=(unmatchedTerms,unprocessedTerms)=>(0,lodash.differenceWith)(unmatchedTerms,getNormalizedSearchTerms(unprocessedTerms),((unmatchedTerm,unprocessedTerm)=>unprocessedTerm.includes(unmatchedTerm))),searchBlockItems=(items,categories,collections,searchInput)=>{if(0===getNormalizedSearchTerms(searchInput).length)return items;const config={getCategory:item=>{var _find;return null===(_find=(0,lodash.find)(categories,{slug:item.category}))||void 0===_find?void 0:_find.title},getCollection:item=>{var _collections$item$nam;return null===(_collections$item$nam=collections[item.name.split("/")[0]])||void 0===_collections$item$nam?void 0:_collections$item$nam.title}};return searchItems(items,searchInput,config)},searchItems=function(){let items=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],searchInput=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",config=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const normalizedSearchTerms=getNormalizedSearchTerms(searchInput);if(0===normalizedSearchTerms.length)return items;const rankedItems=items.map((item=>[item,getItemSearchRank(item,searchInput,config)])).filter((_ref=>{let[,rank]=_ref;return rank>0}));return rankedItems.sort(((_ref2,_ref3)=>{let[,rank1]=_ref2,[,rank2]=_ref3;return rank2-rank1})),rankedItems.map((_ref4=>{let[item]=_ref4;return item}))};function getItemSearchRank(item,searchTerm){let config=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName=defaultGetName,getTitle=defaultGetTitle,getDescription=defaultGetDescription,getKeywords=defaultGetKeywords,getCategory=defaultGetCategory,getCollection=defaultGetCollection}=config,name=getName(item),title=getTitle(item),description=getDescription(item),keywords=getKeywords(item),category=getCategory(item),collection=getCollection(item),normalizedSearchInput=normalizeSearchInput(searchTerm),normalizedTitle=normalizeSearchInput(title);let rank=0;if(normalizedSearchInput===normalizedTitle)rank+=30;else if(normalizedTitle.startsWith(normalizedSearchInput))rank+=20;else{const terms=[name,title,description,...keywords,category,collection].join(" "),normalizedSearchTerms=(0,lodash.words)(normalizedSearchInput);0===removeMatchingTerms(normalizedSearchTerms,terms).length&&(rank+=10)}return 0!==rank&&name.startsWith("core/")&&rank++,rank}function PatternsListHeader(_ref){let{filterValue,filteredBlockPatternsLength}=_ref;return filterValue?(0,react.createElement)(heading_component,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,i18n_build_module.gB)((0,i18n_build_module._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',filteredBlockPatternsLength),filteredBlockPatternsLength,filterValue)):null}const patterns_list=function PatternList(_ref2){let{filterValue,selectedCategory,patternCategories}=_ref2;const debouncedSpeak=(0,use_debounce.Z)(a11y_build_module.D,500),[destinationRootClientId,onInsertBlocks]=use_insertion_point({shouldFocusBlock:!0}),[allPatterns,,onSelectBlockPattern]=use_patterns_state(onInsertBlocks,destinationRootClientId),registeredPatternCategories=(0,react.useMemo)((()=>patternCategories.map((patternCategory=>patternCategory.name))),[patternCategories]),filteredBlockPatterns=(0,react.useMemo)((()=>filterValue?searchItems(allPatterns,filterValue):allPatterns.filter((pattern=>{var _pattern$categories,_pattern$categories2;return"uncategorized"===selectedCategory?!(null!==(_pattern$categories=pattern.categories)&&void 0!==_pattern$categories&&_pattern$categories.length)||pattern.categories.every((category=>!registeredPatternCategories.includes(category))):null===(_pattern$categories2=pattern.categories)||void 0===_pattern$categories2?void 0:_pattern$categories2.includes(selectedCategory)}))),[filterValue,selectedCategory,allPatterns]);(0,react.useEffect)((()=>{if(!filterValue)return;const count=filteredBlockPatterns.length,resultsFoundMessage=(0,i18n_build_module.gB)((0,i18n_build_module._n)("%d result found.","%d results found.",count),count);debouncedSpeak(resultsFoundMessage)}),[filterValue,debouncedSpeak]);const currentShownPatterns=(0,use_async_list.Z)(filteredBlockPatterns,{step:2}),hasItems=!(null==filteredBlockPatterns||!filteredBlockPatterns.length);return(0,react.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},hasItems&&(0,react.createElement)(PatternsListHeader,{filterValue,filteredBlockPatternsLength:filteredBlockPatterns.length}),(0,react.createElement)(inserter_listbox,null,!hasItems&&(0,react.createElement)(no_results,null),hasItems&&(0,react.createElement)(block_patterns_list,{shownPatterns:currentShownPatterns,blockPatterns:filteredBlockPatterns,onClickPattern:onSelectBlockPattern,isDraggable:!1})))};function PatternsExplorer(_ref){let{initialCategory,patternCategories}=_ref;const[filterValue,setFilterValue]=(0,react.useState)(""),[selectedCategory,setSelectedCategory]=(0,react.useState)(null==initialCategory?void 0:initialCategory.name);return(0,react.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,react.createElement)(sidebar,{selectedCategory,patternCategories,onClickCategory:setSelectedCategory,filterValue,setFilterValue}),(0,react.createElement)(patterns_list,{filterValue,selectedCategory,patternCategories}))}const explorer=function PatternsExplorerModal(_ref2){let{onModalClose,...restProps}=_ref2;return(0,react.createElement)(modal.Z,{title:(0,i18n_build_module.__)("Patterns"),closeLabel:(0,i18n_build_module.__)("Close"),onRequestClose:onModalClose,isFullScreen:!0},(0,react.createElement)(PatternsExplorer,restProps))};function BlockPatternsCategory(_ref){let{rootClientId,onInsert,selectedCategory,populatedCategories}=_ref;const[allPatterns,,onClick]=use_patterns_state(onInsert,rootClientId),getPatternIndex=(0,react.useCallback)((pattern=>{var _pattern$categories;if(null===(_pattern$categories=pattern.categories)||void 0===_pattern$categories||!_pattern$categories.length)return 1/0;const indexedCategories=populatedCategories.reduce(((accumulator,_ref2,index)=>{let{name}=_ref2;return accumulator[name]=index,accumulator}),{});return Math.min(...pattern.categories.map((cat=>void 0!==indexedCategories[cat]?indexedCategories[cat]:1/0)))}),[populatedCategories]),currentCategoryPatterns=(0,react.useMemo)((()=>allPatterns.filter((pattern=>{var _pattern$categories2;return"uncategorized"===selectedCategory.name?getPatternIndex(pattern)===1/0:null===(_pattern$categories2=pattern.categories)||void 0===_pattern$categories2?void 0:_pattern$categories2.includes(selectedCategory.name)}))),[allPatterns,selectedCategory]),orderedPatterns=(0,react.useMemo)((()=>currentCategoryPatterns.sort(((a,b)=>getPatternIndex(a)-getPatternIndex(b)))),[currentCategoryPatterns,getPatternIndex]),currentShownPatterns=(0,use_async_list.Z)(orderedPatterns);return currentCategoryPatterns.length?(0,react.createElement)("div",{className:"block-editor-inserter__panel-content"},(0,react.createElement)(block_patterns_list,{shownPatterns:currentShownPatterns,blockPatterns:currentCategoryPatterns,onClickPattern:onClick,label:selectedCategory.label,orientation:"vertical",isDraggable:!0})):null}const block_patterns_tab=function BlockPatternsTabs(_ref3){let{rootClientId,onInsert,onClickCategory,selectedCategory}=_ref3;const[showPatternsExplorer,setShowPatternsExplorer]=(0,react.useState)(!1),[allPatterns,allCategories]=use_patterns_state(),hasRegisteredCategory=(0,react.useCallback)((pattern=>!(!pattern.categories||!pattern.categories.length)&&pattern.categories.some((cat=>allCategories.some((category=>category.name===cat))))),[allCategories]),populatedCategories=(0,react.useMemo)((()=>{const categories=allCategories.filter((category=>allPatterns.some((pattern=>{var _pattern$categories3;return null===(_pattern$categories3=pattern.categories)||void 0===_pattern$categories3?void 0:_pattern$categories3.includes(category.name)})))).sort(((_ref4,_ref5)=>{let{name:currentName}=_ref4,{name:nextName}=_ref5;return[currentName,nextName].includes("featured")?"featured"===currentName?-1:1:0}));return allPatterns.some((pattern=>!hasRegisteredCategory(pattern)))&&!categories.find((category=>"uncategorized"===category.name))&&categories.push({name:"uncategorized",label:(0,i18n_build_module._x)("Uncategorized")}),categories}),[allPatterns,allCategories]),patternCategory=selectedCategory||populatedCategories[0];return(0,react.createElement)(react.Fragment,null,!showPatternsExplorer&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)(pattern_panel,{selectedCategory:patternCategory,patternCategories:populatedCategories,onClickCategory,openPatternExplorer:()=>setShowPatternsExplorer(!0)}),(0,react.createElement)(BlockPatternsCategory,{rootClientId,onInsert,selectedCategory:patternCategory,populatedCategories})),showPatternsExplorer&&(0,react.createElement)(explorer,{initialCategory:patternCategory,patternCategories:populatedCategories,onModalClose:()=>setShowPatternsExplorer(!1)}))};var add_query_args=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/add-query-args.js");function ReusableBlocksList(_ref){let{onHover,onInsert,rootClientId}=_ref;const[items,,,onSelectItem]=use_block_types_state(rootClientId,onInsert),filteredItems=(0,react.useMemo)((()=>items.filter((_ref2=>{let{category}=_ref2;return"reusable"===category}))),[items]);return 0===filteredItems.length?(0,react.createElement)(no_results,null):(0,react.createElement)(panel,{title:(0,i18n_build_module.__)("Reusable blocks")},(0,react.createElement)(block_types_list,{items:filteredItems,onSelect:onSelectItem,onHover,label:(0,i18n_build_module.__)("Reusable blocks")}))}const reusable_blocks_tab=function ReusableBlocksTab(_ref3){let{rootClientId,onInsert,onHover}=_ref3;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(ReusableBlocksList,{onHover,onInsert,rootClientId}),(0,react.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,react.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:(0,add_query_args.f)("edit.php",{post_type:"wp_block"})},(0,i18n_build_module.__)("Manage Reusable blocks"))))},{Fill:__unstableInserterMenuExtension,Slot}=(0,slot_fill.up)("__unstableInserterMenuExtension");__unstableInserterMenuExtension.Slot=Slot;const inserter_menu_extension=__unstableInserterMenuExtension,search_results_EMPTY_ARRAY=[];const search_results=function InserterSearchResults(_ref){let{filterValue,onSelect,onHover,rootClientId,clientId,isAppender,__experimentalInsertionIndex,maxBlockPatterns,maxBlockTypes,showBlockDirectory=!1,isDraggable=!0,shouldFocusBlock=!0}=_ref;const debouncedSpeak=(0,use_debounce.Z)(a11y_build_module.D,500),[destinationRootClientId,onInsertBlocks]=use_insertion_point({onSelect,rootClientId,clientId,isAppender,insertionIndex:__experimentalInsertionIndex,shouldFocusBlock}),[blockTypes,blockTypeCategories,blockTypeCollections,onSelectBlockType]=use_block_types_state(destinationRootClientId,onInsertBlocks),[patterns,,onSelectBlockPattern]=use_patterns_state(onInsertBlocks,destinationRootClientId),filteredBlockTypes=(0,react.useMemo)((()=>{const results=searchBlockItems((0,lodash.orderBy)(blockTypes,["frecency"],["desc"]),blockTypeCategories,blockTypeCollections,filterValue);return void 0!==maxBlockTypes?results.slice(0,maxBlockTypes):results}),[filterValue,blockTypes,blockTypeCategories,blockTypeCollections,maxBlockTypes]),filteredBlockPatterns=(0,react.useMemo)((()=>{const results=searchItems(patterns,filterValue);return void 0!==maxBlockPatterns?results.slice(0,maxBlockPatterns):results}),[filterValue,patterns,maxBlockPatterns]);(0,react.useEffect)((()=>{if(!filterValue)return;const count=filteredBlockTypes.length+filteredBlockPatterns.length,resultsFoundMessage=(0,i18n_build_module.gB)((0,i18n_build_module._n)("%d result found.","%d results found.",count),count);debouncedSpeak(resultsFoundMessage)}),[filterValue,debouncedSpeak]);const currentShownBlockTypes=(0,use_async_list.Z)(filteredBlockTypes,{step:9}),currentShownPatterns=(0,use_async_list.Z)(currentShownBlockTypes.length===filteredBlockTypes.length?filteredBlockPatterns:search_results_EMPTY_ARRAY),hasItems=!(0,lodash.isEmpty)(filteredBlockTypes)||!(0,lodash.isEmpty)(filteredBlockPatterns);return(0,react.createElement)(inserter_listbox,null,!showBlockDirectory&&!hasItems&&(0,react.createElement)(no_results,null),!!filteredBlockTypes.length&&(0,react.createElement)(panel,{title:(0,react.createElement)(visually_hidden_component.Z,null,(0,i18n_build_module.__)("Blocks"))},(0,react.createElement)(block_types_list,{items:currentShownBlockTypes,onSelect:onSelectBlockType,onHover,label:(0,i18n_build_module.__)("Blocks"),isDraggable})),!!filteredBlockTypes.length&&!!filteredBlockPatterns.length&&(0,react.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!filteredBlockPatterns.length&&(0,react.createElement)(panel,{title:(0,react.createElement)(visually_hidden_component.Z,null,(0,i18n_build_module.__)("Block Patterns"))},(0,react.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,react.createElement)(block_patterns_list,{shownPatterns:currentShownPatterns,blockPatterns:filteredBlockPatterns,onClickPattern:onSelectBlockPattern,isDraggable}))),showBlockDirectory&&(0,react.createElement)(inserter_menu_extension.Slot,{fillProps:{onSelect:onSelectBlockType,onHover,filterValue,hasItems,rootClientId:destinationRootClientId}},(fills=>fills.length?fills:hasItems?null:(0,react.createElement)(no_results,null))))};var tab_panel=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/tab-panel/index.js");const blocksTab={name:"blocks",title:(0,i18n_build_module.__)("Blocks")},patternsTab={name:"patterns",title:(0,i18n_build_module.__)("Patterns")},reusableBlocksTab={name:"reusable",title:(0,i18n_build_module.__)("Reusable")};const tabs=function InserterTabs(_ref){let{children,showPatterns=!1,showReusableBlocks=!1,onSelect}=_ref;const tabs=(0,react.useMemo)((()=>{const tempTabs=[blocksTab];return showPatterns&&tempTabs.push(patternsTab),showReusableBlocks&&tempTabs.push(reusableBlocksTab),tempTabs}),[blocksTab,showPatterns,patternsTab,showReusableBlocks,reusableBlocksTab]);return(0,react.createElement)(tab_panel.Z,{className:"block-editor-inserter__tabs",tabs,onSelect},children)};const menu=function InserterMenu(_ref){let{rootClientId,clientId,isAppender,__experimentalInsertionIndex,onSelect,showInserterHelpPanel,showMostUsedBlocks,__experimentalFilterValue="",shouldFocusBlock=!0}=_ref;const[filterValue,setFilterValue]=(0,react.useState)(__experimentalFilterValue),[hoveredItem,setHoveredItem]=(0,react.useState)(null),[selectedPatternCategory,setSelectedPatternCategory]=(0,react.useState)(null),[destinationRootClientId,onInsertBlocks,onToggleInsertionPoint]=use_insertion_point({rootClientId,clientId,isAppender,insertionIndex:__experimentalInsertionIndex,shouldFocusBlock}),{showPatterns,hasReusableBlocks}=(0,use_select.Z)((select=>{var _getSettings$__experi;const{__experimentalGetAllowedPatterns,getSettings}=select(store);return{showPatterns:!!__experimentalGetAllowedPatterns(destinationRootClientId).length,hasReusableBlocks:!(null===(_getSettings$__experi=getSettings().__experimentalReusableBlocks)||void 0===_getSettings$__experi||!_getSettings$__experi.length)}}),[destinationRootClientId]),onInsert=(0,react.useCallback)(((blocks,meta,shouldForceFocusBlock)=>{onInsertBlocks(blocks,meta,shouldForceFocusBlock),onSelect()}),[onInsertBlocks,onSelect]),onInsertPattern=(0,react.useCallback)(((blocks,patternName)=>{onInsertBlocks(blocks,{patternName}),onSelect()}),[onInsertBlocks,onSelect]),onHover=(0,react.useCallback)((item=>{onToggleInsertionPoint(!!item),setHoveredItem(item)}),[onToggleInsertionPoint,setHoveredItem]),onClickPatternCategory=(0,react.useCallback)((patternCategory=>{setSelectedPatternCategory(patternCategory)}),[setSelectedPatternCategory]),blocksTab=(0,react.useMemo)((()=>(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",{className:"block-editor-inserter__block-list"},(0,react.createElement)(block_types_tab,{rootClientId:destinationRootClientId,onInsert,onHover,showMostUsedBlocks})),showInserterHelpPanel&&(0,react.createElement)("div",{className:"block-editor-inserter__tips"},(0,react.createElement)(visually_hidden_component.Z,{as:"h2"},(0,i18n_build_module.__)("A tip for using the block editor")),(0,react.createElement)(tips,null)))),[destinationRootClientId,onInsert,onHover,filterValue,showMostUsedBlocks,showInserterHelpPanel]),patternsTab=(0,react.useMemo)((()=>(0,react.createElement)(block_patterns_tab,{rootClientId:destinationRootClientId,onInsert:onInsertPattern,onClickCategory:onClickPatternCategory,selectedCategory:selectedPatternCategory})),[destinationRootClientId,onInsertPattern,onClickPatternCategory,selectedPatternCategory]),reusableBlocksTab=(0,react.useMemo)((()=>(0,react.createElement)(reusable_blocks_tab,{rootClientId:destinationRootClientId,onInsert,onHover})),[destinationRootClientId,onInsert,onHover]),getCurrentTab=(0,react.useCallback)((tab=>"blocks"===tab.name?blocksTab:"patterns"===tab.name?patternsTab:reusableBlocksTab),[blocksTab,patternsTab,reusableBlocksTab]);return(0,react.createElement)("div",{className:"block-editor-inserter__menu"},(0,react.createElement)("div",{className:"block-editor-inserter__main-area"},(0,react.createElement)("div",{className:"block-editor-inserter__content"},(0,react.createElement)(search_control.Z,{className:"block-editor-inserter__search",onChange:value=>{hoveredItem&&setHoveredItem(null),setFilterValue(value)},value:filterValue,label:(0,i18n_build_module.__)("Search for blocks and patterns"),placeholder:(0,i18n_build_module.__)("Search")}),!!filterValue&&(0,react.createElement)(search_results,{filterValue,onSelect,onHover,rootClientId,clientId,isAppender,__experimentalInsertionIndex,showBlockDirectory:!0,shouldFocusBlock}),!filterValue&&(showPatterns||hasReusableBlocks)&&(0,react.createElement)(tabs,{showPatterns,showReusableBlocks:hasReusableBlocks},getCurrentTab),!filterValue&&!showPatterns&&!hasReusableBlocks&&blocksTab)),showInserterHelpPanel&&hoveredItem&&(0,react.createElement)(preview_panel,{item:hoveredItem}))};function QuickInserter(_ref){let{onSelect,rootClientId,clientId,isAppender}=_ref;const[filterValue,setFilterValue]=(0,react.useState)(""),[destinationRootClientId,onInsertBlocks]=use_insertion_point({onSelect,rootClientId,clientId,isAppender}),[blockTypes]=use_block_types_state(destinationRootClientId,onInsertBlocks),[patterns]=use_patterns_state(onInsertBlocks,destinationRootClientId),showPatterns=patterns.length&&!!filterValue,showSearch=showPatterns&&patterns.length>6||blockTypes.length>6,{setInserterIsOpened,insertionIndex}=(0,use_select.Z)((select=>{const{getSettings,getBlockIndex,getBlockCount}=select(store),index=getBlockIndex(clientId,rootClientId);return{setInserterIsOpened:getSettings().__experimentalSetIsInserterOpened,insertionIndex:-1===index?getBlockCount():index}}),[clientId,rootClientId]);(0,react.useEffect)((()=>{setInserterIsOpened&&setInserterIsOpened(!1)}),[setInserterIsOpened]);return(0,react.createElement)("div",{className:classnames_default()("block-editor-inserter__quick-inserter",{"has-search":showSearch,"has-expand":setInserterIsOpened})},showSearch&&(0,react.createElement)(search_control.Z,{className:"block-editor-inserter__search",value:filterValue,onChange:value=>{setFilterValue(value)},label:(0,i18n_build_module.__)("Search for blocks and patterns"),placeholder:(0,i18n_build_module.__)("Search")}),(0,react.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,react.createElement)(search_results,{filterValue,onSelect,rootClientId,clientId,isAppender,maxBlockPatterns:showPatterns?2:0,maxBlockTypes:6,isDraggable:!1})),setInserterIsOpened&&(0,react.createElement)(build_module_button.Z,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{setInserterIsOpened({rootClientId,insertionIndex,filterValue})},"aria-label":(0,i18n_build_module.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,i18n_build_module.__)("Browse all")))}const defaultRenderToggle=_ref=>{let label,{onToggle,disabled,isOpen,blockTitle,hasSingleBlockType,toggleProps={}}=_ref;label=hasSingleBlockType?(0,i18n_build_module.gB)((0,i18n_build_module._x)("Add %s","directly add the only allowed block"),blockTitle):(0,i18n_build_module._x)("Add block","Generic label for block inserter button");const{onClick,...rest}=toggleProps;return(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({icon:library_plus,label,tooltipPosition:"bottom",onClick:function handleClick(event){onToggle&&onToggle(event),onClick&&onClick(event)},className:"block-editor-inserter__toggle","aria-haspopup":!hasSingleBlockType&&"true","aria-expanded":!hasSingleBlockType&&isOpen,disabled},rest))};class Inserter extends react.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(isOpen){const{onToggle}=this.props;onToggle&&onToggle(isOpen)}renderToggle(_ref2){let{onToggle,isOpen}=_ref2;const{disabled,blockTitle,hasSingleBlockType,directInsertBlock,toggleProps,hasItems,renderToggle=defaultRenderToggle}=this.props;return renderToggle({onToggle,isOpen,disabled:disabled||!hasItems,blockTitle,hasSingleBlockType,directInsertBlock,toggleProps})}renderContent(_ref3){let{onClose}=_ref3;const{rootClientId,clientId,isAppender,showInserterHelpPanel,__experimentalIsQuick:isQuick}=this.props;return isQuick?(0,react.createElement)(QuickInserter,{onSelect:()=>{onClose()},rootClientId,clientId,isAppender}):(0,react.createElement)(menu,{onSelect:()=>{onClose()},rootClientId,clientId,isAppender,showInserterHelpPanel})}render(){const{position,hasSingleBlockType,directInsertBlock,insertOnlyAllowedBlock,__experimentalIsQuick:isQuick,onSelectOrClose}=this.props;return hasSingleBlockType||null!=directInsertBlock&&directInsertBlock.length?this.renderToggle({onToggle:insertOnlyAllowedBlock}):(0,react.createElement)(dropdown.Z,{className:"block-editor-inserter",contentClassName:classnames_default()("block-editor-inserter__popover",{"is-quick":isQuick}),position,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,i18n_build_module.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:onSelectOrClose})}}const inserter=(0,compose.Z)([(0,with_select.Z)(((select,_ref4)=>{let{clientId,rootClientId}=_ref4;const{getBlockRootClientId,hasInserterItems,__experimentalGetAllowedBlocks,__experimentalGetDirectInsertBlock}=select(store),{getBlockVariations}=select(build_module.h);rootClientId=rootClientId||getBlockRootClientId(clientId)||void 0;const allowedBlocks=__experimentalGetAllowedBlocks(rootClientId),directInsertBlock=__experimentalGetDirectInsertBlock(rootClientId),hasSingleBlockType=1===(0,lodash.size)(allowedBlocks)&&0===(0,lodash.size)(getBlockVariations(allowedBlocks[0].name,"inserter"));let allowedBlockType=!1;return hasSingleBlockType&&(allowedBlockType=allowedBlocks[0]),{hasItems:hasInserterItems(rootClientId),hasSingleBlockType,blockTitle:allowedBlockType?allowedBlockType.title:"",allowedBlockType,directInsertBlock,rootClientId}})),(0,with_dispatch.Z)(((dispatch,ownProps,_ref5)=>{let{select}=_ref5;return{insertOnlyAllowedBlock(){const{rootClientId,clientId,isAppender,hasSingleBlockType,allowedBlockType,directInsertBlock,onSelectOrClose}=ownProps;if(!(hasSingleBlockType||null!=directInsertBlock&&directInsertBlock.length))return;const{insertBlock}=dispatch(store);insertBlock(null!=directInsertBlock&&directInsertBlock.length?(0,build_module.j4)(...directInsertBlock):(0,build_module.j4)(allowedBlockType.name),function getInsertionIndex(){const{getBlockIndex,getBlockSelectionEnd,getBlockOrder,getBlockRootClientId}=select(store);if(clientId)return getBlockIndex(clientId,rootClientId);const end=getBlockSelectionEnd();return!isAppender&&end&&getBlockRootClientId(end)===rootClientId?getBlockIndex(end,rootClientId)+1:getBlockOrder(rootClientId).length}(),rootClientId),onSelectOrClose&&onSelectOrClose();const message=(0,i18n_build_module.gB)((0,i18n_build_module.__)("%s block added"),allowedBlockType.title);(0,a11y_build_module.D)(message)}}})),if_condition((_ref6=>{let{hasItems,isAppender,rootClientId,clientId}=_ref6;return hasItems||!isAppender&&!rootClientId&&!clientId}))])(Inserter);const default_block_appender=(0,compose.Z)((0,with_select.Z)(((select,ownProps)=>{const{getBlockCount,getBlockName,isBlockValid,getSettings,getTemplateLock}=select(store),isEmpty=!getBlockCount(ownProps.rootClientId),isLastBlockDefault=getBlockName(ownProps.lastBlockClientId)===(0,build_module.UT)(),isLastBlockValid=isBlockValid(ownProps.lastBlockClientId),{bodyPlaceholder}=getSettings();return{isVisible:isEmpty||!isLastBlockDefault||!isLastBlockValid,showPrompt:isEmpty,isLocked:!!getTemplateLock(ownProps.rootClientId),placeholder:bodyPlaceholder}})),(0,with_dispatch.Z)(((dispatch,ownProps)=>{const{insertDefaultBlock,startTyping}=dispatch(store);return{onAppend(){const{rootClientId}=ownProps;insertDefaultBlock(void 0,rootClientId),startTyping()}}})))((function DefaultBlockAppender(_ref){let{isLocked,isVisible,onAppend,showPrompt,placeholder,rootClientId}=_ref;if(isLocked||!isVisible)return null;const value=(0,html_entities_build_module.S)(placeholder)||(0,i18n_build_module.__)("Type / to choose a block");return(0,react.createElement)("div",{"data-root-client-id":rootClientId||"",className:classnames_default()("block-editor-default-block-appender",{"has-visible-prompt":showPrompt})},(0,react.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":(0,i18n_build_module.__)("Add block"),className:"block-editor-default-block-appender__content",onFocus:onAppend},showPrompt?value:"\ufeff"),(0,react.createElement)(inserter,{rootClientId,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));var tooltip=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/tooltip/index.js");function ButtonBlockAppender(_ref,ref){let{rootClientId,className,onFocus,tabIndex}=_ref;return(0,react.createElement)(inserter,{position:"bottom center",rootClientId,__experimentalIsQuick:!0,renderToggle:_ref2=>{let label,{onToggle,disabled,isOpen,blockTitle,hasSingleBlockType}=_ref2;label=hasSingleBlockType?(0,i18n_build_module.gB)((0,i18n_build_module._x)("Add %s","directly add the only allowed block"),blockTitle):(0,i18n_build_module._x)("Add block","Generic label for block inserter button");const isToggleButton=!hasSingleBlockType;let inserterButton=(0,react.createElement)(build_module_button.Z,{ref,onFocus,tabIndex,className:classnames_default()(className,"block-editor-button-block-appender"),onClick:onToggle,"aria-haspopup":isToggleButton?"true":void 0,"aria-expanded":isToggleButton?isOpen:void 0,disabled,label},!hasSingleBlockType&&(0,react.createElement)(visually_hidden_component.Z,{as:"span"},label),(0,react.createElement)(build_module_icon.Z,{icon:library_plus}));return(isToggleButton||hasSingleBlockType)&&(inserterButton=(0,react.createElement)(tooltip.Z,{text:label},inserterButton)),inserterButton},isAppender:!0})}(0,react.forwardRef)(((props,ref)=>((0,deprecated_build_module.Z)("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender"}),ButtonBlockAppender(props,ref))));const button_block_appender=(0,react.forwardRef)(ButtonBlockAppender);const block_list_appender=(0,with_select.Z)(((select,_ref2)=>{let{rootClientId}=_ref2;const{getBlockOrder,canInsertBlockType,getTemplateLock,getSelectedBlockClientId}=select(store);return{isLocked:!!getTemplateLock(rootClientId),blockClientIds:getBlockOrder(rootClientId),canInsertDefaultBlock:canInsertBlockType((0,build_module.UT)(),rootClientId),selectedBlockClientId:getSelectedBlockClientId()}}))((function BlockListAppender(_ref){let appender,{blockClientIds,rootClientId,canInsertDefaultBlock,isLocked,renderAppender:CustomAppender,className,selectedBlockClientId,tagName:TagName="div"}=_ref;if(isLocked||!1===CustomAppender)return null;if(CustomAppender)appender=(0,react.createElement)(CustomAppender,null);else{const isDocumentAppender=!rootClientId,isParentSelected=selectedBlockClientId===rootClientId,isAnotherDefaultAppenderAlreadyDisplayed=selectedBlockClientId&&!blockClientIds.includes(selectedBlockClientId);if(!isDocumentAppender&&!isParentSelected&&(!selectedBlockClientId||isAnotherDefaultAppenderAlreadyDisplayed))return null;appender=canInsertDefaultBlock?(0,react.createElement)(default_block_appender,{rootClientId,lastBlockClientId:(0,lodash.last)(blockClientIds)}):(0,react.createElement)(button_block_appender,{rootClientId,className:"block-list-appender__toggle"})}return(0,react.createElement)(TagName,{tabIndex:-1,className:classnames_default()("block-list-appender wp-block",className),"data-block":!0},appender)}));var popover=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/popover/index.js"),tslib_es6=__webpack_require__("../../../node_modules/.pnpm/tslib@2.3.1/node_modules/tslib/tslib.es6.js"),createDefinition=function(propNames){return{isEnabled:function(props){return propNames.some((function(name){return!!props[name]}))}}},featureDefinitions={measureLayout:createDefinition(["layout","layoutId","drag","_layoutResetTransform"]),animation:createDefinition(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:createDefinition(["exit"]),drag:createDefinition(["drag","dragControls"]),focus:createDefinition(["whileFocus"]),hover:createDefinition(["whileHover","onHoverStart","onHoverEnd"]),tap:createDefinition(["whileTap","onTap","onTapStart","onTapCancel"]),pan:createDefinition(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:createDefinition(["layout","layoutId"])};var LazyContext=(0,react.createContext)({strict:!1}),featureNames=Object.keys(featureDefinitions),numFeatures=featureNames.length;var MotionConfigContext=(0,react.createContext)({transformPagePoint:function(p){return p},isStatic:!1}),MotionContext=(0,react.createContext)({});var PresenceContext_PresenceContext=(0,react.createContext)(null);function useConstant(init){var ref=(0,react.useRef)(null);return null===ref.current&&(ref.current=init()),ref.current}function usePresence(){var context=(0,react.useContext)(PresenceContext_PresenceContext);if(null===context)return[!0,null];var isPresent=context.isPresent,onExitComplete=context.onExitComplete,register=context.register,id=useUniqueId();(0,react.useEffect)((function(){return register(id)}),[]);return!isPresent&&onExitComplete?[!1,function(){return null==onExitComplete?void 0:onExitComplete(id)}]:[!0]}function isPresent(context){return null===context||context.isPresent}var counter=0,incrementId=function(){return counter++},useUniqueId=function(){return useConstant(incrementId)},LayoutGroupContext=(0,react.createContext)(null),isBrowser="undefined"!=typeof window,useIsomorphicLayoutEffect=isBrowser?react.useLayoutEffect:react.useEffect;function useVisualElement(Component,visualState,props,createVisualElement){var config=(0,react.useContext)(MotionConfigContext),lazyContext=(0,react.useContext)(LazyContext),parent=function useVisualElementContext(){return(0,react.useContext)(MotionContext).visualElement}(),presenceContext=(0,react.useContext)(PresenceContext_PresenceContext),layoutId=function useLayoutId(_a){var layoutId=_a.layoutId,layoutGroupId=(0,react.useContext)(LayoutGroupContext);return layoutGroupId&&void 0!==layoutId?layoutGroupId+"-"+layoutId:layoutId}(props),visualElementRef=(0,react.useRef)(void 0);createVisualElement||(createVisualElement=lazyContext.renderer),!visualElementRef.current&&createVisualElement&&(visualElementRef.current=createVisualElement(Component,{visualState,parent,props:(0,tslib_es6.pi)((0,tslib_es6.pi)({},props),{layoutId}),presenceId:null==presenceContext?void 0:presenceContext.id,blockInitialAnimation:!1===(null==presenceContext?void 0:presenceContext.initial)}));var visualElement=visualElementRef.current;return useIsomorphicLayoutEffect((function(){visualElement&&(visualElement.setProps((0,tslib_es6.pi)((0,tslib_es6.pi)((0,tslib_es6.pi)({},config),props),{layoutId})),visualElement.isPresent=isPresent(presenceContext),visualElement.isPresenceRoot=!parent||parent.presenceId!==(null==presenceContext?void 0:presenceContext.id),visualElement.syncRender())})),(0,react.useEffect)((function(){var _a;visualElement&&(null===(_a=visualElement.animationState)||void 0===_a||_a.animateChanges())})),useIsomorphicLayoutEffect((function(){return function(){return null==visualElement?void 0:visualElement.notifyUnmount()}}),[]),visualElement}function isRefObject(ref){return"object"==typeof ref&&Object.prototype.hasOwnProperty.call(ref,"current")}function isVariantLabels(v){return Array.isArray(v)}function isVariantLabel(v){return"string"==typeof v||isVariantLabels(v)}function resolveVariantFromProps(props,definition,custom,currentValues,currentVelocity){var _a;return void 0===currentValues&&(currentValues={}),void 0===currentVelocity&&(currentVelocity={}),"string"==typeof definition&&(definition=null===(_a=props.variants)||void 0===_a?void 0:_a[definition]),"function"==typeof definition?definition(null!=custom?custom:props.custom,currentValues,currentVelocity):definition}function resolveVariant(visualElement,definition,custom){var props=visualElement.getProps();return resolveVariantFromProps(props,definition,null!=custom?custom:props.custom,function getCurrent(visualElement){var current={};return visualElement.forEachValue((function(value,key){return current[key]=value.get()})),current}(visualElement),function getVelocity(visualElement){var velocity={};return visualElement.forEachValue((function(value,key){return velocity[key]=value.getVelocity()})),velocity}(visualElement))}function checkIfControllingVariants(props){var _a;return"function"==typeof(null===(_a=props.animate)||void 0===_a?void 0:_a.start)||isVariantLabel(props.initial)||isVariantLabel(props.animate)||isVariantLabel(props.whileHover)||isVariantLabel(props.whileDrag)||isVariantLabel(props.whileTap)||isVariantLabel(props.whileFocus)||isVariantLabel(props.exit)}function checkIfVariantNode(props){return Boolean(checkIfControllingVariants(props)||props.variants)}function useCreateMotionContext(props,isStatic){var _a=function getCurrentTreeVariants(props,context){if(checkIfControllingVariants(props)){var initial=props.initial,animate=props.animate;return{initial:!1===initial||isVariantLabel(initial)?initial:void 0,animate:isVariantLabel(animate)?animate:void 0}}return!1!==props.inherit?context:{}}(props,(0,react.useContext)(MotionContext)),initial=_a.initial,animate=_a.animate;return(0,react.useMemo)((function(){return{initial,animate}}),isStatic?[variantLabelsAsDependency(initial),variantLabelsAsDependency(animate)]:[])}function variantLabelsAsDependency(prop){return Array.isArray(prop)?prop.join(" "):prop}function motion_createMotionComponent(_a){var preloadedFeatures=_a.preloadedFeatures,createVisualElement=_a.createVisualElement,useRender=_a.useRender,useVisualState=_a.useVisualState,Component=_a.Component;return preloadedFeatures&&function loadFeatures(features){for(var key in features){var Component=features[key];null!==Component&&(featureDefinitions[key].Component=Component)}}(preloadedFeatures),(0,react.forwardRef)((function MotionComponent(props,externalRef){var isStatic=(0,react.useContext)(MotionConfigContext).isStatic,features=null,context=useCreateMotionContext(props,isStatic),visualState=useVisualState(props,isStatic);return!isStatic&&isBrowser&&(context.visualElement=useVisualElement(Component,visualState,props,createVisualElement),features=function useFeatures(props,visualElement,preloadedFeatures){var features=[];if((0,react.useContext)(LazyContext),!visualElement)return null;for(var i=0;i-1||/[A-Z]/.test(Component))}var valueScaleCorrection={};var transformAxes=["","X","Y","Z"],transformProps=["transformPerspective","x","y","z"];function sortTransformProps(a,b){return transformProps.indexOf(a)-transformProps.indexOf(b)}["translate","scale","rotate","skew"].forEach((function(operationKey){return transformAxes.forEach((function(axesKey){return transformProps.push(operationKey+axesKey)}))}));var transformPropSet=new Set(transformProps);function isTransformProp(key){return transformPropSet.has(key)}var transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(key){return transformOriginProps.has(key)}function isForcedMotionValue(key,_a){var layout=_a.layout,layoutId=_a.layoutId;return isTransformProp(key)||isTransformOriginProp(key)||(layout||void 0!==layoutId)&&(!!valueScaleCorrection[key]||"opacity"===key)}var isMotionValue=function(value){return null!==value&&"object"==typeof value&&value.getVelocity},translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function isCSSVariable(key){return key.startsWith("--")}var getValueAsType=function(value,type){return type&&"number"==typeof value?type.transform(value):value},clamp=function(min,max){return function(v){return Math.max(Math.min(v,max),min)}},sanitize=function(v){return v%1?Number(v.toFixed(5)):v},floatRegex=/(-)?([\d]*\.?[\d])+/g,utils_colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function isString(v){return"string"==typeof v}var createUnitType=function(unit){return{test:function(v){return isString(v)&&v.endsWith(unit)&&1===v.split(" ").length},parse:parseFloat,transform:function(v){return""+v+unit}}},degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage=(0,tslib_es6.pi)((0,tslib_es6.pi)({},percent),{parse:function(v){return percent.parse(v)/100},transform:function(v){return percent.transform(100*v)}}),number={test:function(v){return"number"==typeof v},parse:parseFloat,transform:function(v){return v}},alpha=(0,tslib_es6.pi)((0,tslib_es6.pi)({},number),{transform:clamp(0,1)}),scale=(0,tslib_es6.pi)((0,tslib_es6.pi)({},number),{default:1}),type_int_int=(0,tslib_es6.pi)((0,tslib_es6.pi)({},number),{transform:Math.round}),numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:type_int_int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:type_int_int};function buildHTMLStyles(state,latestValues,projection,layoutState,options,transformTemplate,buildProjectionTransform,buildProjectionTransformOrigin){var _a,style=state.style,vars=state.vars,transform=state.transform,transformKeys=state.transformKeys,transformOrigin=state.transformOrigin;transformKeys.length=0;var hasTransform=!1,hasTransformOrigin=!1,transformIsNone=!0;for(var key in latestValues){var value=latestValues[key];if(isCSSVariable(key))vars[key]=value;else{var valueType=numberValueTypes[key],valueAsType=getValueAsType(value,valueType);if(isTransformProp(key)){if(hasTransform=!0,transform[key]=valueAsType,transformKeys.push(key),!transformIsNone)continue;value!==(null!==(_a=valueType.default)&&void 0!==_a?_a:0)&&(transformIsNone=!1)}else if(isTransformOriginProp(key))transformOrigin[key]=valueAsType,hasTransformOrigin=!0;else if((null==projection?void 0:projection.isHydrated)&&(null==layoutState?void 0:layoutState.isHydrated)&&valueScaleCorrection[key]){var correctedValue=valueScaleCorrection[key].process(value,layoutState,projection),applyTo=valueScaleCorrection[key].applyTo;if(applyTo)for(var num=applyTo.length,i=0;i0?-1:1)*((d-e)*f)/g}):(envelope=function(undampedFreq){return Math.exp(-undampedFreq*duration)*((undampedFreq-velocity)*duration+1)-.001},derivative=function(undampedFreq){return Math.exp(-undampedFreq*duration)*(duration*duration*(velocity-undampedFreq))});var undampedFreq=function approximateRoot(envelope,derivative,initialGuess){for(var result=initialGuess,i=1;i<12;i++)result-=envelope(result)/derivative(result);return result}(envelope,derivative,5/duration);if(duration*=1e3,isNaN(undampedFreq))return{stiffness:100,damping:10,duration};var stiffness=Math.pow(undampedFreq,2)*mass;return{stiffness,damping:2*dampingRatio*Math.sqrt(mass*stiffness),duration}}function calcAngularFreq(undampedFreq,dampingRatio){return undampedFreq*Math.sqrt(1-dampingRatio*dampingRatio)}var durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(options,keys){return keys.some((function(key){return void 0!==options[key]}))}function spring(_a){var _b=_a.from,from=void 0===_b?0:_b,_c=_a.to,to=void 0===_c?1:_c,_d=_a.restSpeed,restSpeed=void 0===_d?2:_d,restDelta=_a.restDelta,options=(0,tslib_es6._T)(_a,["from","to","restSpeed","restDelta"]),state={done:!1,value:from},_e=function getSpringOptions(options){var springOptions=(0,tslib_es6.pi)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},options);if(!isSpringType(options,physicsKeys)&&isSpringType(options,durationKeys)){var derived=findSpring(options);(springOptions=(0,tslib_es6.pi)((0,tslib_es6.pi)((0,tslib_es6.pi)({},springOptions),derived),{velocity:0,mass:1})).isResolvedFromDuration=!0}return springOptions}(options),stiffness=_e.stiffness,damping=_e.damping,mass=_e.mass,velocity=_e.velocity,duration=_e.duration,isResolvedFromDuration=_e.isResolvedFromDuration,resolveSpring=zero,resolveVelocity=zero;function createSpring(){var initialVelocity=velocity?-velocity/1e3:0,initialDelta=to-from,dampingRatio=damping/(2*Math.sqrt(stiffness*mass)),undampedAngularFreq=Math.sqrt(stiffness/mass)/1e3;if(null!=restDelta||(restDelta=Math.abs(to-from)<=1?.01:.4),dampingRatio<1){var angularFreq_1=calcAngularFreq(undampedAngularFreq,dampingRatio);resolveSpring=function(t){var envelope=Math.exp(-dampingRatio*undampedAngularFreq*t);return to-envelope*((initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)/angularFreq_1*Math.sin(angularFreq_1*t)+initialDelta*Math.cos(angularFreq_1*t))},resolveVelocity=function(t){var envelope=Math.exp(-dampingRatio*undampedAngularFreq*t);return dampingRatio*undampedAngularFreq*envelope*(Math.sin(angularFreq_1*t)*(initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)/angularFreq_1+initialDelta*Math.cos(angularFreq_1*t))-envelope*(Math.cos(angularFreq_1*t)*(initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)-angularFreq_1*initialDelta*Math.sin(angularFreq_1*t))}}else if(1===dampingRatio)resolveSpring=function(t){return to-Math.exp(-undampedAngularFreq*t)*(initialDelta+(initialVelocity+undampedAngularFreq*initialDelta)*t)};else{var dampedAngularFreq_1=undampedAngularFreq*Math.sqrt(dampingRatio*dampingRatio-1);resolveSpring=function(t){var envelope=Math.exp(-dampingRatio*undampedAngularFreq*t),freqForT=Math.min(dampedAngularFreq_1*t,300);return to-envelope*((initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)*Math.sinh(freqForT)+dampedAngularFreq_1*initialDelta*Math.cosh(freqForT))/dampedAngularFreq_1}}}return createSpring(),{next:function(t){var current=resolveSpring(t);if(isResolvedFromDuration)state.done=t>=duration;else{var currentVelocity=1e3*resolveVelocity(t),isBelowVelocityThreshold=Math.abs(currentVelocity)<=restSpeed,isBelowDisplacementThreshold=Math.abs(to-current)<=restDelta;state.done=isBelowVelocityThreshold&&isBelowDisplacementThreshold}return state.value=state.done?to:current,state},flipTarget:function(){var _a;velocity=-velocity,from=(_a=[to,from])[0],to=_a[1],createSpring()}}}spring.needsInterpolation=function(a,b){return"string"==typeof a||"string"==typeof b};var zero=function(_t){return 0},progress=function(from,to,value){var toFromDifference=to-from;return 0===toFromDifference?1:(value-from)/toFromDifference},mix=function(from,to,progress){return-progress*from+progress*to+from},isColorString=function(type,testProp){return function(v){return Boolean(isString(v)&&singleColorRegex.test(v)&&v.startsWith(type)||testProp&&Object.prototype.hasOwnProperty.call(v,testProp))}},splitColor=function(aName,bName,cName){return function(v){var _a;if(!isString(v))return v;var _b=v.match(floatRegex),a=_b[0],b=_b[1],c=_b[2],alpha=_b[3];return(_a={})[aName]=parseFloat(a),_a[bName]=parseFloat(b),_a[cName]=parseFloat(c),_a.alpha=void 0!==alpha?parseFloat(alpha):1,_a}},clampRgbUnit=clamp(0,255),rgbUnit=(0,tslib_es6.pi)((0,tslib_es6.pi)({},number),{transform:function(v){return Math.round(clampRgbUnit(v))}}),rgba_rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:function(_a){var red=_a.red,green=_a.green,blue=_a.blue,_b=_a.alpha,alpha$1=void 0===_b?1:_b;return"rgba("+rgbUnit.transform(red)+", "+rgbUnit.transform(green)+", "+rgbUnit.transform(blue)+", "+sanitize(alpha.transform(alpha$1))+")"}};var hex={test:isColorString("#"),parse:function parseHex(v){var r="",g="",b="",a="";return v.length>5?(r=v.substr(1,2),g=v.substr(3,2),b=v.substr(5,2),a=v.substr(7,2)):(r=v.substr(1,1),g=v.substr(2,1),b=v.substr(3,1),a=v.substr(4,1),r+=r,g+=g,b+=b,a+=a),{red:parseInt(r,16),green:parseInt(g,16),blue:parseInt(b,16),alpha:a?parseInt(a,16)/255:1}},transform:rgba_rgba.transform},hsla_hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:function(_a){var hue=_a.hue,saturation=_a.saturation,lightness=_a.lightness,_b=_a.alpha,alpha$1=void 0===_b?1:_b;return"hsla("+Math.round(hue)+", "+percent.transform(sanitize(saturation))+", "+percent.transform(sanitize(lightness))+", "+sanitize(alpha.transform(alpha$1))+")"}},mixLinearColor=function(from,to,v){var fromExpo=from*from,toExpo=to*to;return Math.sqrt(Math.max(0,v*(toExpo-fromExpo)+fromExpo))},colorTypes=[hex,rgba_rgba,hsla_hsla],getColorType=function(v){return colorTypes.find((function(type){return type.test(v)}))},notAnimatable=function(color){return"'"+color+"' is not an animatable color. Use the equivalent color code instead."},mixColor=function(from,to){var fromColorType=getColorType(from),toColorType=getColorType(to);notAnimatable(from),notAnimatable(to),fromColorType.transform,toColorType.transform;var fromColor=fromColorType.parse(from),toColor=toColorType.parse(to),blended=(0,tslib_es6.pi)({},fromColor),mixFunc=fromColorType===hsla_hsla?mix:mixLinearColor;return function(v){for(var key in blended)"alpha"!==key&&(blended[key]=mixFunc(fromColor[key],toColor[key],v));return blended.alpha=mix(fromColor.alpha,toColor.alpha,v),fromColorType.transform(blended)}},color={test:function(v){return rgba_rgba.test(v)||hex.test(v)||hsla_hsla.test(v)},parse:function(v){return rgba_rgba.test(v)?rgba_rgba.parse(v):hsla_hsla.test(v)?hsla_hsla.parse(v):hex.parse(v)},transform:function(v){return isString(v)?v:v.hasOwnProperty("red")?rgba_rgba.transform(v):hsla_hsla.transform(v)}};function analyse(v){var values=[],numColors=0,colors=v.match(utils_colorRegex);colors&&(numColors=colors.length,v=v.replace(utils_colorRegex,"${c}"),values.push.apply(values,colors.map(color.parse)));var numbers=v.match(floatRegex);return numbers&&(v=v.replace(floatRegex,"${n}"),values.push.apply(values,numbers.map(number.parse))),{values,numColors,tokenised:v}}function complex_parse(v){return analyse(v).values}function createTransformer(v){var _a=analyse(v),values=_a.values,numColors=_a.numColors,tokenised=_a.tokenised,numValues=values.length;return function(v){for(var output=tokenised,i=0;i0},parse:complex_parse,createTransformer,getAnimatableNone:function getAnimatableNone(v){var parsed=complex_parse(v);return createTransformer(v)(parsed.map(convertNumbersToZero))}},isNum=function(v){return"number"==typeof v};function getMixer(origin,target){return isNum(origin)?function(v){return mix(origin,target,v)}:color.test(origin)?mixColor(origin,target):mixComplex(origin,target)}var mixArray=function(from,to){var output=(0,tslib_es6.ev)([],from),numValues=output.length,blendValue=from.map((function(fromThis,i){return getMixer(fromThis,to[i])}));return function(v){for(var i=0;iinput[inputLength-1]&&(input=[].concat(input),output=[].concat(output),input.reverse(),output.reverse());var mixers=createMixers(output,ease,mixer),interpolator=2===inputLength?function fastInterpolate(_a,_b){var from=_a[0],to=_a[1],mixer=_b[0];return function(v){return mixer(progress(from,to,v))}}(input,mixers):function slowInterpolate(input,mixers){var inputLength=input.length,lastInputIndex=inputLength-1;return function(v){var mixerIndex=0,foundMixerIndex=!1;if(v<=input[0]?foundMixerIndex=!0:v>=input[lastInputIndex]&&(mixerIndex=lastInputIndex-1,foundMixerIndex=!0),!foundMixerIndex){for(var i=1;iv||i===lastInputIndex);i++);mixerIndex=i-1}var progressInRange=progress(input[mixerIndex],input[mixerIndex+1],v);return mixers[mixerIndex](progressInRange)}}(input,mixers);return isClamp?function(v){return interpolator(clamp_clamp(input[0],input[inputLength-1],v))}:interpolator}var power,reverseEasing=function(easing){return function(p){return 1-easing(1-p)}},mirrorEasing=function(easing){return function(p){return p<=.5?easing(2*p)/2:(2-easing(2*(1-p)))/2}},createBackIn=function(power){return function(p){return p*p*((power+1)*p-power)}},easing_linear=function(p){return p},easeIn=(power=2,function(p){return Math.pow(p,power)}),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=function(p){return 1-Math.sin(Math.acos(p))},circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(1.525),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=function(power){var backEasing=createBackIn(power);return function(p){return(p*=2)<1?.5*backEasing(p):.5*(2-Math.pow(2,-10*(p-1)))}}(1.525),bounceOut=function(p){if(1===p||0===p)return p;var p2=p*p;return p<.36363636363636365?7.5625*p2:p<.7272727272727273?9.075*p2-9.9*p+3.4:p<.9?12.066481994459833*p2-19.63545706371191*p+8.898060941828255:10.8*p*p-20.52*p+10.72},bounceIn=reverseEasing(bounceOut);function defaultEasing(values,easing){return values.map((function(){return easing||easeInOut})).splice(0,values.length-1)}function keyframes(_a){var _b=_a.from,from=void 0===_b?0:_b,_c=_a.to,to=void 0===_c?1:_c,ease=_a.ease,offset=_a.offset,_d=_a.duration,duration=void 0===_d?300:_d,state={done:!1,value:from},values=Array.isArray(to)?to:[from,to],times=function convertOffsetToTimes(offset,duration){return offset.map((function(o){return o*duration}))}(offset&&offset.length===values.length?offset:function defaultOffset(values){var numValues=values.length;return values.map((function(_value,i){return 0!==i?i/(numValues-1):0}))}(values),duration);function createInterpolator(){return interpolate_interpolate(times,values,{ease:Array.isArray(ease)?ease:defaultEasing(values,ease)})}var interpolator=createInterpolator();return{next:function(t){return state.value=interpolator(t),state.done=t>=duration,state},flipTarget:function(){values.reverse(),interpolator=createInterpolator()}}}var types={keyframes,spring,decay:function decay(_a){var _b=_a.velocity,velocity=void 0===_b?0:_b,_c=_a.from,from=void 0===_c?0:_c,_d=_a.power,power=void 0===_d?.8:_d,_e=_a.timeConstant,timeConstant=void 0===_e?350:_e,_f=_a.restDelta,restDelta=void 0===_f?.5:_f,modifyTarget=_a.modifyTarget,state={done:!1,value:from},amplitude=power*velocity,ideal=from+amplitude,target=void 0===modifyTarget?ideal:modifyTarget(ideal);return target!==ideal&&(amplitude=target-from),{next:function(t){var delta=-amplitude*Math.exp(-t/timeConstant);return state.done=!(delta>restDelta||delta<-restDelta),state.value=state.done?target:target+delta,state},flipTarget:function(){}}}};var getCurrentTime="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},onNextFrame="undefined"!=typeof window?function(callback){return window.requestAnimationFrame(callback)}:function(callback){return setTimeout((function(){return callback(getCurrentTime())}),16.666666666666668)};var useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1,es_frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce((function(acc,key){return acc[key]=function createRenderStep(runNextFrame){var toRun=[],toRunNextFrame=[],numToRun=0,isProcessing=!1,toKeepAlive=new WeakSet,step={schedule:function(callback,keepAlive,immediate){void 0===keepAlive&&(keepAlive=!1),void 0===immediate&&(immediate=!1);var addToCurrentFrame=immediate&&isProcessing,buffer=addToCurrentFrame?toRun:toRunNextFrame;return keepAlive&&toKeepAlive.add(callback),-1===buffer.indexOf(callback)&&(buffer.push(callback),addToCurrentFrame&&isProcessing&&(numToRun=toRun.length)),callback},cancel:function(callback){var index=toRunNextFrame.indexOf(callback);-1!==index&&toRunNextFrame.splice(index,1),toKeepAlive.delete(callback)},process:function(frameData){var _a;if(isProcessing=!0,toRun=(_a=[toRunNextFrame,toRun])[0],(toRunNextFrame=_a[1]).length=0,numToRun=toRun.length)for(var i=0;i=duration+delay:elapsed<=-delay}(elapsed,computedDuration,repeatDelay,isForwardPlayback)&&repeat():function complete(){driverControls.stop(),onComplete&&onComplete()}())}return autoplay&&function play(){null==onPlay||onPlay(),(driverControls=driver(update)).start()}(),{stop:function(){null==onStop||onStop(),driverControls.stop()}}}function velocityPerSecond(velocity,frameDuration){return frameDuration?velocity*(1e3/frameDuration):0}var secondsToMilliseconds=function(seconds){return 1e3*seconds},a=function(a1,a2){return 1-3*a2+3*a1},b=function(a1,a2){return 3*a2-6*a1},c=function(a1){return 3*a1},calcBezier=function(t,a1,a2){return((a(a1,a2)*t+b(a1,a2))*t+c(a1))*t},getSlope=function(t,a1,a2){return 3*a(a1,a2)*t*t+2*b(a1,a2)*t+c(a1)};function cubicBezier(mX1,mY1,mX2,mY2){if(mX1===mY1&&mX2===mY2)return easing_linear;for(var sampleValues=new Float32Array(11),i=0;i<11;++i)sampleValues[i]=calcBezier(.1*i,mX1,mX2);function getTForX(aX){for(var intervalStart=0,currentSample=1;10!==currentSample&&sampleValues[currentSample]<=aX;++currentSample)intervalStart+=.1;--currentSample;var guessForT=intervalStart+.1*((aX-sampleValues[currentSample])/(sampleValues[currentSample+1]-sampleValues[currentSample])),initialSlope=getSlope(guessForT,mX1,mX2);return initialSlope>=.001?function newtonRaphsonIterate(aX,aGuessT,mX1,mX2){for(var i=0;i<8;++i){var currentSlope=getSlope(aGuessT,mX1,mX2);if(0===currentSlope)return aGuessT;aGuessT-=(calcBezier(aGuessT,mX1,mX2)-aX)/currentSlope}return aGuessT}(aX,guessForT,mX1,mX2):0===initialSlope?guessForT:function binarySubdivide(aX,aA,aB,mX1,mX2){var currentX,currentT,i=0;do{(currentX=calcBezier(currentT=aA+(aB-aA)/2,mX1,mX2)-aX)>0?aB=currentT:aA=currentT}while(Math.abs(currentX)>1e-7&&++i<10);return currentT}(aX,intervalStart,intervalStart+.1,mX1,mX2)}return function(t){return 0===t||1===t?t:calcBezier(getTForX(t),mY1,mY2)}}var easingLookup={linear:easing_linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut:function(p){return p<.5?.5*(1-bounceOut(1-2*p)):.5*bounceOut(2*p-1)+.5},bounceOut},easingDefinitionToFunction=function(definition){if(Array.isArray(definition)){definition.length;var _a=(0,tslib_es6.CR)(definition,4);return cubicBezier(_a[0],_a[1],_a[2],_a[3])}return"string"==typeof definition?easingLookup[definition]:definition},isAnimatable=function(key,value){return"zIndex"!==key&&(!("number"!=typeof value&&!Array.isArray(value))||!("string"!=typeof value||!complex.test(value)||value.startsWith("url(")))},underDampedSpring=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},criticallyDampedSpring=function(to){return{type:"spring",stiffness:550,damping:0===to?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},linearTween=function(){return{type:"keyframes",ease:"linear",duration:.3}},default_transitions_keyframes=function(values){return{type:"keyframes",duration:.8,values}},defaultTransitions={x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,opacity:linearTween,backgroundColor:linearTween,color:linearTween,default:criticallyDampedSpring},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(v){var _a=v.slice(0,-1).split("("),name=_a[0],value=_a[1];if("drop-shadow"===name)return v;var number=(value.match(floatRegex)||[])[0];if(!number)return v;var unit=value.replace(number,""),defaultValue=maxDefaults.has(name)?1:0;return number!==value&&(defaultValue*=100),name+"("+defaultValue+unit+")"}var functionRegex=/([a-z-]*)\(.*?\)/g,filter=(0,tslib_es6.pi)((0,tslib_es6.pi)({},complex),{getAnimatableNone:function(v){var functions=v.match(functionRegex);return functions?functions.map(applyDefaultFilter).join(" "):v}}),defaultValueTypes=(0,tslib_es6.pi)((0,tslib_es6.pi)({},numberValueTypes),{color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter}),getDefaultValueType=function(key){return defaultValueTypes[key]};function animatable_none_getAnimatableNone(key,value){var _a,defaultValueType=getDefaultValueType(key);return defaultValueType!==filter&&(defaultValueType=complex),null===(_a=defaultValueType.getAnimatableNone)||void 0===_a?void 0:_a.call(defaultValueType,value)}function convertTransitionToAnimationOptions(_a){var ease=_a.ease,times=_a.times,yoyo=_a.yoyo,flip=_a.flip,loop=_a.loop,transition=(0,tslib_es6._T)(_a,["ease","times","yoyo","flip","loop"]),options=(0,tslib_es6.pi)({},transition);return times&&(options.offset=times),transition.duration&&(options.duration=secondsToMilliseconds(transition.duration)),transition.repeatDelay&&(options.repeatDelay=secondsToMilliseconds(transition.repeatDelay)),ease&&(options.ease=function(ease){return Array.isArray(ease)&&"number"!=typeof ease[0]}(ease)?ease.map(easingDefinitionToFunction):easingDefinitionToFunction(ease)),"tween"===transition.type&&(options.type="keyframes"),(yoyo||loop||flip)&&(!0,yoyo?options.repeatType="reverse":loop?options.repeatType="loop":flip&&(options.repeatType="mirror"),options.repeat=loop||yoyo||flip||transition.repeat),"spring"!==transition.type&&(options.type="keyframes"),options}function getPopmotionAnimationOptions(transition,options,key){var _a;return Array.isArray(options.to)&&(null!==(_a=transition.duration)&&void 0!==_a||(transition.duration=.8)),function hydrateKeyframes(options){return Array.isArray(options.to)&&null===options.to[0]&&(options.to=(0,tslib_es6.ev)([],(0,tslib_es6.CR)(options.to)),options.to[0]=options.from),options}(options),function isTransitionDefined(_a){_a.when,_a.delay,_a.delayChildren,_a.staggerChildren,_a.staggerDirection,_a.repeat,_a.repeatType,_a.repeatDelay,_a.from;var transition=(0,tslib_es6._T)(_a,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(transition).length}(transition)||(transition=(0,tslib_es6.pi)((0,tslib_es6.pi)({},transition),function(valueKey,to){var transitionFactory;return transitionFactory=isKeyframesTarget(to)?default_transitions_keyframes:defaultTransitions[valueKey]||defaultTransitions.default,(0,tslib_es6.pi)({to},transitionFactory(to))}(key,options.to))),(0,tslib_es6.pi)((0,tslib_es6.pi)({},options),convertTransitionToAnimationOptions(transition))}function getAnimation(key,value,target,transition,onComplete){var _a,valueTransition=getValueTransition(transition,key),origin=null!==(_a=valueTransition.from)&&void 0!==_a?_a:value.get(),isTargetAnimatable=isAnimatable(key,target);"none"===origin&&isTargetAnimatable&&"string"==typeof target?origin=animatable_none_getAnimatableNone(key,target):isZero(origin)&&"string"==typeof target?origin=getZeroUnit(target):!Array.isArray(target)&&isZero(target)&&"string"==typeof origin&&(target=getZeroUnit(origin));var isOriginAnimatable=isAnimatable(key,origin);return isOriginAnimatable&&isTargetAnimatable&&!1!==valueTransition.type?function start(){var options={from:origin,to:target,velocity:value.getVelocity(),onComplete,onUpdate:function(v){return value.set(v)}};return"inertia"===valueTransition.type||"decay"===valueTransition.type?function inertia(_a){var currentAnimation,_b=_a.from,from=void 0===_b?0:_b,_c=_a.velocity,velocity=void 0===_c?0:_c,min=_a.min,max=_a.max,_d=_a.power,power=void 0===_d?.8:_d,_e=_a.timeConstant,timeConstant=void 0===_e?750:_e,_f=_a.bounceStiffness,bounceStiffness=void 0===_f?500:_f,_g=_a.bounceDamping,bounceDamping=void 0===_g?10:_g,_h=_a.restDelta,restDelta=void 0===_h?1:_h,modifyTarget=_a.modifyTarget,driver=_a.driver,onUpdate=_a.onUpdate,onComplete=_a.onComplete;function isOutOfBounds(v){return void 0!==min&&vmax}function boundaryNearest(v){return void 0===min?max:void 0===max||Math.abs(min-v)boundary_1||-1===heading_1&&v-1&&arr.splice(index,1)}var SubscriptionManager=function(){function SubscriptionManager(){this.subscriptions=[]}return SubscriptionManager.prototype.add=function(handler){var _this=this;return addUniqueItem(this.subscriptions,handler),function(){return removeItem(_this.subscriptions,handler)}},SubscriptionManager.prototype.notify=function(a,b,c){var numSubscriptions=this.subscriptions.length;if(numSubscriptions)if(1===numSubscriptions)this.subscriptions[0](a,b,c);else for(var i=0;iremovedVariantIndex&&propIsVariant,definitionList=Array.isArray(prop)?prop:[prop],resolvedValues=definitionList.reduce(buildResolvedTypeValues,{});!1===activeDelta&&(resolvedValues={});var _b=typeState.prevResolvedValues,prevResolvedValues=void 0===_b?{}:_b,allKeys=(0,tslib_es6.pi)((0,tslib_es6.pi)({},prevResolvedValues),resolvedValues),markToAnimate=function(key){shouldAnimateType=!0,removedKeys.delete(key),typeState.needsAnimating[key]=!0};for(var key in allKeys){var next=resolvedValues[key],prev=prevResolvedValues[key];encounteredKeys.hasOwnProperty(key)||(next!==prev?isKeyframesTarget(next)&&isKeyframesTarget(prev)?shallowCompare(next,prev)?typeState.protectedKeys[key]=!0:markToAnimate(key):void 0!==next?markToAnimate(key):removedKeys.add(key):void 0!==next&&removedKeys.has(key)?markToAnimate(key):typeState.protectedKeys[key]=!0)}typeState.prevProp=prop,typeState.prevResolvedValues=resolvedValues,typeState.isActive&&(encounteredKeys=(0,tslib_es6.pi)((0,tslib_es6.pi)({},encounteredKeys),resolvedValues)),isInitialRender&&visualElement.blockInitialAnimation&&(shouldAnimateType=!1),shouldAnimateType&&!isInherited&&animations.push.apply(animations,(0,tslib_es6.ev)([],(0,tslib_es6.CR)(definitionList.map((function(animation){return{animation,options:(0,tslib_es6.pi)({type},options)}})))))},i=0;i=3;if(isPanStarted||isDistancePastThreshold){var point=info.point,timestamp=getFrameData().timestamp;_this.history.push((0,tslib_es6.pi)((0,tslib_es6.pi)({},point),{timestamp}));var _a=_this.handlers,onStart=_a.onStart,onMove=_a.onMove;isPanStarted||(onStart&&onStart(_this.lastMoveEvent,info),_this.startEvent=_this.lastMoveEvent),onMove&&onMove(_this.lastMoveEvent,info)}}},this.handlePointerMove=function(event,info){_this.lastMoveEvent=event,_this.lastMoveEventInfo=transformPoint(info,_this.transformPagePoint),isMouseEvent(event)&&0===event.buttons?_this.handlePointerUp(event,info):es.update(_this.updatePoint,!0)},this.handlePointerUp=function(event,info){_this.end();var _a=_this.handlers,onEnd=_a.onEnd,onSessionEnd=_a.onSessionEnd,panInfo=getPanInfo(transformPoint(info,_this.transformPagePoint),_this.history);_this.startEvent&&onEnd&&onEnd(event,panInfo),onSessionEnd&&onSessionEnd(event,panInfo)},!(isTouchEvent(event)&&event.touches.length>1)){this.handlers=handlers,this.transformPagePoint=transformPagePoint;var initialInfo=transformPoint(extractEventInfo(event),this.transformPagePoint),point=initialInfo.point,timestamp=getFrameData().timestamp;this.history=[(0,tslib_es6.pi)((0,tslib_es6.pi)({},point),{timestamp})];var onSessionStart=handlers.onSessionStart;onSessionStart&&onSessionStart(event,getPanInfo(initialInfo,this.history)),this.removeListeners=pipe(addPointerEvent(window,"pointermove",this.handlePointerMove),addPointerEvent(window,"pointerup",this.handlePointerUp),addPointerEvent(window,"pointercancel",this.handlePointerUp))}}return PanSession.prototype.updateHandlers=function(handlers){this.handlers=handlers},PanSession.prototype.end=function(){this.removeListeners&&this.removeListeners(),cancelSync.update(this.updatePoint)},PanSession}();function transformPoint(info,transformPagePoint){return transformPagePoint?{point:transformPagePoint(info.point)}:info}function subtractPoint(a,b){return{x:a.x-b.x,y:a.y-b.y}}function getPanInfo(_a,history){var point=_a.point;return{point,delta:subtractPoint(point,lastDevicePoint(history)),offset:subtractPoint(point,startDevicePoint(history)),velocity:PanSession_getVelocity(history,.1)}}function startDevicePoint(history){return history[0]}function lastDevicePoint(history){return history[history.length-1]}function PanSession_getVelocity(history,timeDelta){if(history.length<2)return{x:0,y:0};for(var i=history.length-1,timestampedPoint=null,lastPoint=lastDevicePoint(history);i>=0&&(timestampedPoint=history[i],!(lastPoint.timestamp-timestampedPoint.timestamp>secondsToMilliseconds(timeDelta)));)i--;if(!timestampedPoint)return{x:0,y:0};var time=(lastPoint.timestamp-timestampedPoint.timestamp)/1e3;if(0===time)return{x:0,y:0};var currentVelocity={x:(lastPoint.x-timestampedPoint.x)/time,y:(lastPoint.y-timestampedPoint.y)/time};return currentVelocity.x===1/0&&(currentVelocity.x=0),currentVelocity.y===1/0&&(currentVelocity.y=0),currentVelocity}function noop_noop(any){return any}function convertBoundingBoxToAxisBox(_a){var top=_a.top;return{x:{min:_a.left,max:_a.right},y:{min:top,max:_a.bottom}}}var zeroDelta={translate:0,scale:1,origin:0,originPoint:0};function delta(){return{x:(0,tslib_es6.pi)({},zeroDelta),y:(0,tslib_es6.pi)({},zeroDelta)}}function eachAxis(handler){return[handler("x"),handler("y")]}function applyConstraints(point,_a,elastic){var min=_a.min,max=_a.max;return void 0!==min&&pointmax&&(point=elastic?mix(max,point,elastic.max):Math.min(point,max)),point}function calcRelativeAxisConstraints(axis,min,max){return{min:void 0!==min?axis.min+min:void 0,max:void 0!==max?axis.max+max-(axis.max-axis.min):void 0}}function calcViewportAxisConstraints(layoutAxis,constraintsAxis){var _a,min=constraintsAxis.min-layoutAxis.min,max=constraintsAxis.max-layoutAxis.max;return constraintsAxis.max-constraintsAxis.minsourceLength?origin=progress(target.min,target.max-sourceLength,source.min):sourceLength>targetLength&&(origin=progress(source.min,source.max-targetLength,target.min)),clamp_clamp(0,1,origin)}function updateAxisDelta(delta,source,target,origin){void 0===origin&&(origin=.5),delta.origin=origin,delta.originPoint=mix(source.min,source.max,delta.origin),delta.scale=calcLength(target)/calcLength(source),isNear(delta.scale,1,1e-4)&&(delta.scale=1),delta.translate=mix(target.min,target.max,delta.origin)-delta.originPoint,isNear(delta.translate)&&(delta.translate=0)}function updateBoxDelta(delta,source,target,origin){updateAxisDelta(delta.x,source.x,target.x,defaultOrigin(origin.originX)),updateAxisDelta(delta.y,source.y,target.y,defaultOrigin(origin.originY))}function defaultOrigin(origin){return"number"==typeof origin?origin:.5}function calcRelativeAxis(target,relative,parent){target.min=parent.min+relative.min,target.max=target.min+calcLength(relative)}var compareByDepth=function(a,b){return a.depth-b.depth};function isProjecting(visualElement){return visualElement.projection.isEnabled||visualElement.shouldResetTransform()}function collectProjectingAncestors(visualElement,ancestors){void 0===ancestors&&(ancestors=[]);var parent=visualElement.parent;return parent&&collectProjectingAncestors(parent,ancestors),isProjecting(visualElement)&&ancestors.push(visualElement),ancestors}function updateLayoutMeasurement(visualElement){if(!visualElement.shouldResetTransform()){var layoutState=visualElement.getLayoutState();visualElement.notifyBeforeLayoutMeasure(layoutState.layout),layoutState.isHydrated=!0,layoutState.layout=visualElement.measureViewportBox(),layoutState.layoutCorrected=function copyAxisBox(box){return{x:(0,tslib_es6.pi)({},box.x),y:(0,tslib_es6.pi)({},box.y)}}(layoutState.layout),visualElement.notifyLayoutMeasure(layoutState.layout,visualElement.prevViewportBox||layoutState.layout),es.update((function(){return visualElement.rebaseProjectionTarget()}))}}function calcRelativeOffsetAxis(parent,child){return{min:child.min-parent.min,max:child.max-parent.min}}function calcRelativeOffset(parent,child){return{x:calcRelativeOffsetAxis(parent.x,child.x),y:calcRelativeOffsetAxis(parent.y,child.y)}}function checkIfParentHasChanged(prev,next){var prevId=prev.getLayoutId(),nextId=next.getLayoutId();return prevId!==nextId||void 0===nextId&&prev!==next}function isDraggable(visualElement){var _a=visualElement.getProps(),drag=_a.drag,_dragX=_a._dragX;return drag&&!_dragX}function resetAxis(axis,originAxis){axis.min=originAxis.min,axis.max=originAxis.max}function scalePoint(point,scale,originPoint){return originPoint+scale*(point-originPoint)}function applyPointDelta(point,translate,scale,originPoint,boxScale){return void 0!==boxScale&&(point=scalePoint(point,boxScale,originPoint)),scalePoint(point,scale,originPoint)+translate}function applyAxisDelta(axis,translate,scale,originPoint,boxScale){void 0===translate&&(translate=0),void 0===scale&&(scale=1),axis.min=applyPointDelta(axis.min,translate,scale,originPoint,boxScale),axis.max=applyPointDelta(axis.max,translate,scale,originPoint,boxScale)}function applyBoxDelta(box,_a){var x=_a.x,y=_a.y;applyAxisDelta(box.x,x.translate,x.scale,x.originPoint),applyAxisDelta(box.y,y.translate,y.scale,y.originPoint)}function applyAxisTransforms(final,axis,transforms,_a){var _b=(0,tslib_es6.CR)(_a,3),key=_b[0],scaleKey=_b[1],originKey=_b[2];final.min=axis.min,final.max=axis.max;var axisOrigin=void 0!==transforms[originKey]?transforms[originKey]:.5,originPoint=mix(axis.min,axis.max,axisOrigin);applyAxisDelta(final,transforms[key],transforms[scaleKey],originPoint,transforms.scale)}var xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function applyBoxTransforms(finalBox,box,transforms){applyAxisTransforms(finalBox.x,box.x,transforms,xKeys),applyAxisTransforms(finalBox.y,box.y,transforms,yKeys)}function removePointDelta(point,translate,scale,originPoint,boxScale){return point=scalePoint(point-=translate,1/scale,originPoint),void 0!==boxScale&&(point=scalePoint(point,1/boxScale,originPoint)),point}function removeAxisTransforms(axis,transforms,_a){var _b=(0,tslib_es6.CR)(_a,3),key=_b[0],scaleKey=_b[1],originKey=_b[2];!function removeAxisDelta(axis,translate,scale,origin,boxScale){void 0===translate&&(translate=0),void 0===scale&&(scale=1),void 0===origin&&(origin=.5);var originPoint=mix(axis.min,axis.max,origin)-translate;axis.min=removePointDelta(axis.min,translate,scale,originPoint,boxScale),axis.max=removePointDelta(axis.max,translate,scale,originPoint,boxScale)}(axis,transforms[key],transforms[scaleKey],transforms[originKey],transforms.scale)}function removeBoxTransforms(box,transforms){removeAxisTransforms(box.x,transforms,xKeys),removeAxisTransforms(box.y,transforms,yKeys)}var unresolvedJobs=new Set;function pushJob(stack,job,pointer){stack[pointer]||(stack[pointer]=[]),stack[pointer].push(job)}function batchLayout(callback){return unresolvedJobs.add(callback),function(){return unresolvedJobs.delete(callback)}}function flushLayout(){if(unresolvedJobs.size){var pointer=0,reads=[[]],writes=[],setRead=function(job){return pushJob(reads,job,pointer)},setWrite=function(job){pushJob(writes,job,pointer),pointer++};unresolvedJobs.forEach((function(callback){callback(setRead,setWrite),pointer=0})),unresolvedJobs.clear();for(var numStacks=writes.length,i=0;i<=numStacks;i++)reads[i]&&reads[i].forEach(executeJob),writes[i]&&writes[i].forEach(executeJob)}}var lastPointerEvent,executeJob=function(job){return job()},elementDragControls=new WeakMap,VisualElementDragControls=function(){function VisualElementDragControls(_a){var visualElement=_a.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=visualElement,this.visualElement.enableLayoutProjection(),elementDragControls.set(visualElement,this)}return VisualElementDragControls.prototype.start=function(originEvent,_a){var _this=this,_b=void 0===_a?{}:_a,_c=_b.snapToCursor,snapToCursor=void 0!==_c&&_c,cursorProgress=_b.cursorProgress,transformPagePoint=this.props.transformPagePoint;this.panSession=new PanSession(originEvent,{onSessionStart:function(event){var _a;_this.stopMotion();var initialPoint=function getViewportPointFromEvent(event){return extractEventInfo(event,"client")}(event).point;null===(_a=_this.cancelLayout)||void 0===_a||_a.call(_this),_this.cancelLayout=batchLayout((function(read,write){var ancestors=collectProjectingAncestors(_this.visualElement),children=function collectProjectingChildren(visualElement){var children=[],addChild=function(child){isProjecting(child)&&children.push(child),child.children.forEach(addChild)};return visualElement.children.forEach(addChild),children.sort(compareByDepth)}(_this.visualElement),tree=(0,tslib_es6.ev)((0,tslib_es6.ev)([],(0,tslib_es6.CR)(ancestors)),(0,tslib_es6.CR)(children)),hasManuallySetCursorOrigin=!1;_this.isLayoutDrag()&&_this.visualElement.lockProjectionTarget(),write((function(){tree.forEach((function(element){return element.resetTransform()}))})),read((function(){updateLayoutMeasurement(_this.visualElement),children.forEach(updateLayoutMeasurement)})),write((function(){tree.forEach((function(element){return element.restoreTransform()})),snapToCursor&&(hasManuallySetCursorOrigin=_this.snapToCursor(initialPoint))})),read((function(){Boolean(_this.getAxisMotionValue("x")&&!_this.isExternalDrag())||_this.visualElement.rebaseProjectionTarget(!0,_this.visualElement.measureViewportBox(!1)),_this.visualElement.scheduleUpdateLayoutProjection();var projection=_this.visualElement.projection;eachAxis((function(axis){if(!hasManuallySetCursorOrigin){var _a=projection.target[axis],min=_a.min,max=_a.max;_this.cursorProgress[axis]=cursorProgress?cursorProgress[axis]:progress(min,max,initialPoint[axis])}var axisValue=_this.getAxisMotionValue(axis);axisValue&&(_this.originPoint[axis]=axisValue.get())}))})),write((function(){flushSync.update(),flushSync.preRender(),flushSync.render(),flushSync.postRender()})),read((function(){return _this.resolveDragConstraints()}))}))},onStart:function(event,info){var _a,_b,_c,_d=_this.props,drag=_d.drag,dragPropagation=_d.dragPropagation;(!drag||dragPropagation||(_this.openGlobalLock&&_this.openGlobalLock(),_this.openGlobalLock=getGlobalLock(drag),_this.openGlobalLock))&&(flushLayout(),_this.isDragging=!0,_this.currentDirection=null,null===(_b=(_a=_this.props).onDragStart)||void 0===_b||_b.call(_a,event,info),null===(_c=_this.visualElement.animationState)||void 0===_c||_c.setActive(AnimationType.Drag,!0))},onMove:function(event,info){var _a,_b,_c,_d,_e=_this.props,dragPropagation=_e.dragPropagation,dragDirectionLock=_e.dragDirectionLock;if(dragPropagation||_this.openGlobalLock){var offset=info.offset;if(dragDirectionLock&&null===_this.currentDirection)return _this.currentDirection=function getCurrentDirection(offset,lockThreshold){void 0===lockThreshold&&(lockThreshold=10);var direction=null;Math.abs(offset.y)>lockThreshold?direction="y":Math.abs(offset.x)>lockThreshold&&(direction="x");return direction}(offset),void(null!==_this.currentDirection&&(null===(_b=(_a=_this.props).onDirectionLock)||void 0===_b||_b.call(_a,_this.currentDirection)));_this.updateAxis("x",info.point,offset),_this.updateAxis("y",info.point,offset),null===(_d=(_c=_this.props).onDrag)||void 0===_d||_d.call(_c,event,info),lastPointerEvent=event}},onSessionEnd:function(event,info){return _this.stop(event,info)}},{transformPagePoint})},VisualElementDragControls.prototype.resolveDragConstraints=function(){var _this=this,_a=this.props,dragConstraints=_a.dragConstraints,dragElastic=_a.dragElastic,layout=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!dragConstraints&&(isRefObject(dragConstraints)?this.resolveRefConstraints(layout,dragConstraints):function calcRelativeConstraints(layoutBox,_a){var top=_a.top,left=_a.left,bottom=_a.bottom,right=_a.right;return{x:calcRelativeAxisConstraints(layoutBox.x,left,right),y:calcRelativeAxisConstraints(layoutBox.y,top,bottom)}}(layout,dragConstraints)),this.elastic=function resolveDragElastic(dragElastic){return!1===dragElastic?dragElastic=0:!0===dragElastic&&(dragElastic=.35),{x:resolveAxisElastic(dragElastic,"left","right"),y:resolveAxisElastic(dragElastic,"top","bottom")}}(dragElastic),this.constraints&&!this.hasMutatedConstraints&&eachAxis((function(axis){_this.getAxisMotionValue(axis)&&(_this.constraints[axis]=function rebaseAxisConstraints(layout,constraints){var relativeConstraints={};return void 0!==constraints.min&&(relativeConstraints.min=constraints.min-layout.min),void 0!==constraints.max&&(relativeConstraints.max=constraints.max-layout.min),relativeConstraints}(layout[axis],_this.constraints[axis]))}))},VisualElementDragControls.prototype.resolveRefConstraints=function(layoutBox,constraints){var _a=this.props,onMeasureDragConstraints=_a.onMeasureDragConstraints,transformPagePoint=_a.transformPagePoint,constraintsElement=constraints.current;this.constraintsBox=getBoundingBox(constraintsElement,transformPagePoint);var measuredConstraints=function calcViewportConstraints(layoutBox,constraintsBox){return{x:calcViewportAxisConstraints(layoutBox.x,constraintsBox.x),y:calcViewportAxisConstraints(layoutBox.y,constraintsBox.y)}}(layoutBox,this.constraintsBox);if(onMeasureDragConstraints){var userConstraints=onMeasureDragConstraints(function convertAxisBoxToBoundingBox(_a){var x=_a.x,y=_a.y;return{top:y.min,bottom:y.max,left:x.min,right:x.max}}(measuredConstraints));this.hasMutatedConstraints=!!userConstraints,userConstraints&&(measuredConstraints=convertBoundingBoxToAxisBox(userConstraints))}return measuredConstraints},VisualElementDragControls.prototype.cancelDrag=function(){var _a,_b;this.visualElement.unlockProjectionTarget(),null===(_a=this.cancelLayout)||void 0===_a||_a.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(_b=this.visualElement.animationState)||void 0===_b||_b.setActive(AnimationType.Drag,!1)},VisualElementDragControls.prototype.stop=function(event,info){var _a,_b,_c;null===(_a=this.panSession)||void 0===_a||_a.end(),this.panSession=null;var isDragging=this.isDragging;if(this.cancelDrag(),isDragging){var velocity=info.velocity;this.animateDragEnd(velocity),null===(_c=(_b=this.props).onDragEnd)||void 0===_c||_c.call(_b,event,info)}},VisualElementDragControls.prototype.snapToCursor=function(point){var _this=this;return eachAxis((function(axis){if(shouldDrag(axis,_this.props.drag,_this.currentDirection)){var axisValue=_this.getAxisMotionValue(axis);if(!axisValue)return _this.cursorProgress[axis]=.5,!0;var box=_this.visualElement.getLayoutState().layout,length_1=box[axis].max-box[axis].min,center=box[axis].min+length_1/2,offset=point[axis]-center;_this.originPoint[axis]=point[axis],axisValue.set(offset)}})).includes(!0)},VisualElementDragControls.prototype.updateAxis=function(axis,point,offset){if(shouldDrag(axis,this.props.drag,this.currentDirection))return this.getAxisMotionValue(axis)?this.updateAxisMotionValue(axis,offset):this.updateVisualElementAxis(axis,point)},VisualElementDragControls.prototype.updateAxisMotionValue=function(axis,offset){var axisValue=this.getAxisMotionValue(axis);if(offset&&axisValue){var nextValue=this.originPoint[axis]+offset[axis],update=this.constraints?applyConstraints(nextValue,this.constraints[axis],this.elastic[axis]):nextValue;axisValue.set(update)}},VisualElementDragControls.prototype.updateVisualElementAxis=function(axis,point){var _a,axisLayout=this.visualElement.getLayoutState().layout[axis],axisLength=axisLayout.max-axisLayout.min,axisProgress=this.cursorProgress[axis],min=function calcConstrainedMinPoint(point,length,progress,constraints,elastic){var min=point-length*progress;return constraints?applyConstraints(min,constraints,elastic):min}(point[axis],axisLength,axisProgress,null===(_a=this.constraints)||void 0===_a?void 0:_a[axis],this.elastic[axis]);this.visualElement.setProjectionTargetAxis(axis,min,min+axisLength)},VisualElementDragControls.prototype.setProps=function(_a){var _b=_a.drag,drag=void 0!==_b&&_b,_c=_a.dragDirectionLock,dragDirectionLock=void 0!==_c&&_c,_d=_a.dragPropagation,dragPropagation=void 0!==_d&&_d,_e=_a.dragConstraints,dragConstraints=void 0!==_e&&_e,_f=_a.dragElastic,dragElastic=void 0===_f?.35:_f,_g=_a.dragMomentum,dragMomentum=void 0===_g||_g,remainingProps=(0,tslib_es6._T)(_a,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,tslib_es6.pi)({drag,dragDirectionLock,dragPropagation,dragConstraints,dragElastic,dragMomentum},remainingProps)},VisualElementDragControls.prototype.getAxisMotionValue=function(axis){var _a=this.props,layout=_a.layout,layoutId=_a.layoutId,dragKey="_drag"+axis.toUpperCase();return this.props[dragKey]?this.props[dragKey]:layout||void 0!==layoutId?void 0:this.visualElement.getValue(axis,0)},VisualElementDragControls.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},VisualElementDragControls.prototype.isExternalDrag=function(){var _a=this.props,_dragX=_a._dragX,_dragY=_a._dragY;return _dragX||_dragY},VisualElementDragControls.prototype.animateDragEnd=function(velocity){var _this=this,_a=this.props,drag=_a.drag,dragMomentum=_a.dragMomentum,dragElastic=_a.dragElastic,dragTransition=_a.dragTransition,isRelative=function convertToRelativeProjection(visualElement,isLayoutDrag){void 0===isLayoutDrag&&(isLayoutDrag=!0);var offset,projectionParent=visualElement.getProjectionParent();return!!projectionParent&&(isLayoutDrag?removeBoxTransforms(offset=calcRelativeOffset(projectionParent.projection.target,visualElement.projection.target),projectionParent.getLatestValues()):offset=calcRelativeOffset(projectionParent.getLayoutState().layout,visualElement.getLayoutState().layout),eachAxis((function(axis){return visualElement.setProjectionTargetAxis(axis,offset[axis].min,offset[axis].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),constraints=this.constraints||{};if(isRelative&&Object.keys(constraints).length&&this.isLayoutDrag()){var projectionParent=this.visualElement.getProjectionParent();if(projectionParent){var relativeConstraints_1=calcRelativeOffset(projectionParent.projection.targetFinal,constraints);eachAxis((function(axis){var _a=relativeConstraints_1[axis],min=_a.min,max=_a.max;constraints[axis]={min:isNaN(min)?void 0:min,max:isNaN(max)?void 0:max}}))}}var momentumAnimations=eachAxis((function(axis){var _a;if(shouldDrag(axis,drag,_this.currentDirection)){var transition=null!==(_a=null==constraints?void 0:constraints[axis])&&void 0!==_a?_a:{},bounceStiffness=dragElastic?200:1e6,bounceDamping=dragElastic?40:1e7,inertia=(0,tslib_es6.pi)((0,tslib_es6.pi)({type:"inertia",velocity:dragMomentum?velocity[axis]:0,bounceStiffness,bounceDamping,timeConstant:750,restDelta:1,restSpeed:10},dragTransition),transition);return _this.getAxisMotionValue(axis)?_this.startAxisValueAnimation(axis,inertia):_this.visualElement.startLayoutAnimation(axis,inertia,isRelative)}}));return Promise.all(momentumAnimations).then((function(){var _a,_b;null===(_b=(_a=_this.props).onDragTransitionEnd)||void 0===_b||_b.call(_a)}))},VisualElementDragControls.prototype.stopMotion=function(){var _this=this;eachAxis((function(axis){var axisValue=_this.getAxisMotionValue(axis);axisValue?axisValue.stop():_this.visualElement.stopLayoutAnimation()}))},VisualElementDragControls.prototype.startAxisValueAnimation=function(axis,transition){var axisValue=this.getAxisMotionValue(axis);if(axisValue){var currentValue=axisValue.get();return axisValue.set(currentValue),axisValue.set(currentValue),startAnimation(axis,axisValue,0,transition)}},VisualElementDragControls.prototype.scalePoint=function(){var _this=this,_a=this.props,drag=_a.drag;if(isRefObject(_a.dragConstraints)&&this.constraintsBox){this.stopMotion();var boxProgress={x:0,y:0};eachAxis((function(axis){boxProgress[axis]=delta_calc_calcOrigin(_this.visualElement.projection.target[axis],_this.constraintsBox[axis])})),this.updateConstraints((function(){eachAxis((function(axis){if(shouldDrag(axis,drag,null)){var _a=function calcPositionFromProgress(axis,constraints,progress){var axisLength=axis.max-axis.min,min=mix(constraints.min,constraints.max-axisLength,progress);return{min,max:min+axisLength}}(_this.visualElement.projection.target[axis],_this.constraintsBox[axis],boxProgress[axis]),min=_a.min,max=_a.max;_this.visualElement.setProjectionTargetAxis(axis,min,max)}}))})),setTimeout(flushLayout,1)}},VisualElementDragControls.prototype.updateConstraints=function(onReady){var _this=this;this.cancelLayout=batchLayout((function(read,write){var ancestors=collectProjectingAncestors(_this.visualElement);write((function(){return ancestors.forEach((function(element){return element.resetTransform()}))})),read((function(){return updateLayoutMeasurement(_this.visualElement)})),write((function(){return ancestors.forEach((function(element){return element.restoreTransform()}))})),read((function(){_this.resolveDragConstraints()})),onReady&&write(onReady)}))},VisualElementDragControls.prototype.mount=function(visualElement){var _this=this,stopPointerListener=addPointerEvent(visualElement.getInstance(),"pointerdown",(function(event){var _a=_this.props,drag=_a.drag,_b=_a.dragListener;drag&&(void 0===_b||_b)&&_this.start(event)})),stopResizeListener=addDomEvent(window,"resize",(function(){_this.scalePoint()})),stopLayoutUpdateListener=visualElement.onLayoutUpdate((function(){_this.isDragging&&_this.resolveDragConstraints()})),prevDragCursor=visualElement.prevDragCursor;return prevDragCursor&&this.start(lastPointerEvent,{cursorProgress:prevDragCursor}),function(){null==stopPointerListener||stopPointerListener(),null==stopResizeListener||stopResizeListener(),null==stopLayoutUpdateListener||stopLayoutUpdateListener(),_this.cancelDrag()}},VisualElementDragControls}();function shouldDrag(direction,drag,currentDirection){return!(!0!==drag&&drag!==direction||null!==currentDirection&¤tDirection!==direction)}var Presence,VisibilityAction,drag={pan:makeRenderlessComponent((function usePanGesture(_a){var onPan=_a.onPan,onPanStart=_a.onPanStart,onPanEnd=_a.onPanEnd,onPanSessionStart=_a.onPanSessionStart,visualElement=_a.visualElement,hasPanEvents=onPan||onPanStart||onPanEnd||onPanSessionStart,panSession=(0,react.useRef)(null),transformPagePoint=(0,react.useContext)(MotionConfigContext).transformPagePoint,handlers={onSessionStart:onPanSessionStart,onStart:onPanStart,onMove:onPan,onEnd:function(event,info){panSession.current=null,onPanEnd&&onPanEnd(event,info)}};(0,react.useEffect)((function(){null!==panSession.current&&panSession.current.updateHandlers(handlers)})),usePointerEvent(visualElement,"pointerdown",hasPanEvents&&function onPointerDown(event){panSession.current=new PanSession(event,handlers,{transformPagePoint})}),useUnmountEffect((function(){return panSession.current&&panSession.current.end()}))})),drag:makeRenderlessComponent((function useDrag(props){var groupDragControls=props.dragControls,visualElement=props.visualElement,transformPagePoint=(0,react.useContext)(MotionConfigContext).transformPagePoint,dragControls=useConstant((function(){return new VisualElementDragControls({visualElement})}));dragControls.setProps((0,tslib_es6.pi)((0,tslib_es6.pi)({},props),{transformPagePoint})),(0,react.useEffect)((function(){return groupDragControls&&groupDragControls.subscribe(dragControls)}),[dragControls]),(0,react.useEffect)((function(){return dragControls.mount(visualElement)}),[])}))};function css_variables_conversion_isCSSVariable(value){return"string"==typeof value&&value.startsWith("var(--")}!function(Presence){Presence[Presence.Entering=0]="Entering",Presence[Presence.Present=1]="Present",Presence[Presence.Exiting=2]="Exiting"}(Presence||(Presence={})),function(VisibilityAction){VisibilityAction[VisibilityAction.Hide=0]="Hide",VisibilityAction[VisibilityAction.Show=1]="Show"}(VisibilityAction||(VisibilityAction={}));var cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(current,element,depth){void 0===depth&&(depth=1);var _a=(0,tslib_es6.CR)(function parseCSSVariable(current){var match=cssVariableRegex.exec(current);if(!match)return[,];var _a=(0,tslib_es6.CR)(match,3);return[_a[1],_a[2]]}(current),2),token=_a[0],fallback=_a[1];if(token){var resolved=window.getComputedStyle(element).getPropertyValue(token);return resolved?resolved.trim():css_variables_conversion_isCSSVariable(fallback)?getVariableValue(fallback,element,depth+1):fallback}}function pixelsToPercent(pixels,axis){return pixels/(axis.max-axis.min)*100}var borderCorrectionDefinition={process:function correctBorderRadius(latest,_layoutState,_a){var target=_a.target;if("string"==typeof latest){if(!px.test(latest))return latest;latest=parseFloat(latest)}return pixelsToPercent(latest,target.x)+"% "+pixelsToPercent(latest,target.y)+"%"}},defaultScaleCorrectors={borderRadius:(0,tslib_es6.pi)((0,tslib_es6.pi)({},borderCorrectionDefinition),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:borderCorrectionDefinition,borderTopRightRadius:borderCorrectionDefinition,borderBottomLeftRadius:borderCorrectionDefinition,borderBottomRightRadius:borderCorrectionDefinition,boxShadow:{process:function correctBoxShadow(latest,_a){var delta=_a.delta,treeScale=_a.treeScale,original=latest,containsCSSVariables=latest.includes("var("),cssVariables=[];containsCSSVariables&&(latest=latest.replace(cssVariableRegex,(function(match){return cssVariables.push(match),"_$css"})));var shadow=complex.parse(latest);if(shadow.length>5)return original;var template=complex.createTransformer(latest),offset="number"!=typeof shadow[0]?1:0,xScale=delta.x.scale*treeScale.x,yScale=delta.y.scale*treeScale.y;shadow[0+offset]/=xScale,shadow[1+offset]/=yScale;var averageScale=mix(xScale,yScale,.5);"number"==typeof shadow[2+offset]&&(shadow[2+offset]/=averageScale),"number"==typeof shadow[3+offset]&&(shadow[3+offset]/=averageScale);var output=template(shadow);if(containsCSSVariables){var i_1=0;output=output.replace("_$css",(function(){var cssVariable=cssVariables[i_1];return i_1++,cssVariable}))}return output}}},Animate=function(_super){function Animate(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},_this.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},_this.isAnimating={x:!1,y:!1},_this.stopAxisAnimation={x:void 0,y:void 0},_this.isAnimatingTree=!1,_this.animate=function(target,origin,_a){void 0===_a&&(_a={});var originBox=_a.originBox,targetBox=_a.targetBox,visibilityAction=_a.visibilityAction,shouldStackAnimate=_a.shouldStackAnimate,onComplete=_a.onComplete,prevParent=_a.prevParent,config=(0,tslib_es6._T)(_a,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),_b=_this.props,visualElement=_b.visualElement,layout=_b.layout;if(!1===shouldStackAnimate)return _this.isAnimatingTree=!1,_this.safeToRemove();if(!_this.isAnimatingTree||!0===shouldStackAnimate){shouldStackAnimate&&(_this.isAnimatingTree=!0),origin=originBox||origin,target=targetBox||target;var isRelative=!1,projectionParent=visualElement.getProjectionParent();if(projectionParent){var prevParentViewportBox=projectionParent.prevViewportBox,parentLayout=projectionParent.getLayoutState().layout;prevParent&&(targetBox&&(parentLayout=prevParent.getLayoutState().layout),originBox&&!checkIfParentHasChanged(prevParent,projectionParent)&&prevParent.prevViewportBox&&(prevParentViewportBox=prevParent.prevViewportBox)),prevParentViewportBox&&isProvidedCorrectDataForRelativeSharedLayout(prevParent,originBox,targetBox)&&(isRelative=!0,origin=calcRelativeOffset(prevParentViewportBox,origin),target=calcRelativeOffset(parentLayout,target))}var boxHasMoved=hasMoved(origin,target),animations=eachAxis((function(axis){var _a,_b;if("position"===layout){var targetLength=target[axis].max-target[axis].min;origin[axis].max=origin[axis].min+targetLength}if(!visualElement.projection.isTargetLocked)return void 0===visibilityAction?boxHasMoved?_this.animateAxis(axis,target[axis],origin[axis],(0,tslib_es6.pi)((0,tslib_es6.pi)({},config),{isRelative})):(null===(_b=(_a=_this.stopAxisAnimation)[axis])||void 0===_b||_b.call(_a),visualElement.setProjectionTargetAxis(axis,target[axis].min,target[axis].max,isRelative)):void visualElement.setVisibility(visibilityAction===VisibilityAction.Show)}));return visualElement.syncRender(),Promise.all(animations).then((function(){_this.isAnimatingTree=!1,onComplete&&onComplete(),visualElement.notifyLayoutAnimationComplete()}))}},_this}return(0,tslib_es6.ZT)(Animate,_super),Animate.prototype.componentDidMount=function(){var _this=this,visualElement=this.props.visualElement;visualElement.animateMotionValue=startAnimation,visualElement.enableLayoutProjection(),this.unsubLayoutReady=visualElement.onLayoutUpdate(this.animate),visualElement.layoutSafeToRemove=function(){return _this.safeToRemove()},function addScaleCorrection(correctors){for(var key in correctors)valueScaleCorrection[key]=correctors[key]}(defaultScaleCorrectors)},Animate.prototype.componentWillUnmount=function(){var _this=this;this.unsubLayoutReady(),eachAxis((function(axis){var _a,_b;return null===(_b=(_a=_this.stopAxisAnimation)[axis])||void 0===_b?void 0:_b.call(_a)}))},Animate.prototype.animateAxis=function(axis,target,origin,_a){var _b,_c,_this=this,_d=void 0===_a?{}:_a,transition=_d.transition,isRelative=_d.isRelative;if(!this.isAnimating[axis]||!axisIsEqual(target,this.currentAnimationTarget[axis])){null===(_c=(_b=this.stopAxisAnimation)[axis])||void 0===_c||_c.call(_b),this.isAnimating[axis]=!0;var visualElement=this.props.visualElement,frameTarget=this.frameTarget[axis],layoutProgress=visualElement.getProjectionAnimationProgress()[axis];layoutProgress.clearListeners(),layoutProgress.set(0),layoutProgress.set(0);var frame=function(){var p=layoutProgress.get()/1e3;!function tweenAxis(target,prev,next,p){target.min=mix(prev.min,next.min,p),target.max=mix(prev.max,next.max,p)}(frameTarget,origin,target,p),visualElement.setProjectionTargetAxis(axis,frameTarget.min,frameTarget.max,isRelative)};frame();var unsubscribeProgress=layoutProgress.onChange(frame);this.stopAxisAnimation[axis]=function(){_this.isAnimating[axis]=!1,layoutProgress.stop(),unsubscribeProgress()},this.currentAnimationTarget[axis]=target;var layoutTransition=transition||visualElement.getDefaultTransition()||defaultLayoutTransition;return startAnimation("x"===axis?"layoutX":"layoutY",layoutProgress,1e3,layoutTransition&&getValueTransition(layoutTransition,"layout")).then(this.stopAxisAnimation[axis])}},Animate.prototype.safeToRemove=function(){var _a,_b;null===(_b=(_a=this.props).safeToRemove)||void 0===_b||_b.call(_a)},Animate.prototype.render=function(){return null},Animate}(react.Component);function hasMoved(a,b){return!(isZeroBox(a)||isZeroBox(b)||axisIsEqual(a.x,b.x)&&axisIsEqual(a.y,b.y))}var zeroAxis={min:0,max:0};function isZeroBox(a){return axisIsEqual(a.x,zeroAxis)&&axisIsEqual(a.y,zeroAxis)}function axisIsEqual(a,b){return a.min===b.min&&a.max===b.max}var defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]};function isProvidedCorrectDataForRelativeSharedLayout(prevParent,originBox,targetBox){return prevParent||!prevParent&&!(originBox||targetBox)}var defaultHandler={layoutReady:function(child){return child.notifyLayoutReady()}};function createBatcher(){var queue=new Set;return{add:function(child){return queue.add(child)},flush:function(_a){var _b=void 0===_a?defaultHandler:_a,layoutReady=_b.layoutReady,parent=_b.parent;batchLayout((function(read,write){var order=Array.from(queue).sort(compareByDepth),ancestors=parent?collectProjectingAncestors(parent):[];write((function(){(0,tslib_es6.ev)((0,tslib_es6.ev)([],(0,tslib_es6.CR)(ancestors)),(0,tslib_es6.CR)(order)).forEach((function(element){return element.resetTransform()}))})),read((function(){order.forEach(updateLayoutMeasurement)})),write((function(){ancestors.forEach((function(element){return element.restoreTransform()})),order.forEach(layoutReady)})),read((function(){order.forEach((function(child){child.isPresent&&(child.presence=Presence.Present)}))})),write((function(){flushSync.preRender(),flushSync.render()})),read((function(){es.postRender((function(){return order.forEach(assignProjectionToSnapshot)})),queue.clear()}))})),flushLayout()}}}function assignProjectionToSnapshot(child){child.prevViewportBox=child.projection.target}var SharedLayoutContext=(0,react.createContext)(createBatcher()),FramerTreeLayoutContext=(0,react.createContext)(createBatcher());function isSharedLayout(context){return!!context.forceUpdate}var Measure=function(_super){function Measure(){return null!==_super&&_super.apply(this,arguments)||this}return(0,tslib_es6.ZT)(Measure,_super),Measure.prototype.componentDidMount=function(){var _a=this.props,syncLayout=_a.syncLayout,framerSyncLayout=_a.framerSyncLayout,visualElement=_a.visualElement;isSharedLayout(syncLayout)&&syncLayout.register(visualElement),isSharedLayout(framerSyncLayout)&&framerSyncLayout.register(visualElement),visualElement.onUnmount((function(){isSharedLayout(syncLayout)&&syncLayout.remove(visualElement),isSharedLayout(framerSyncLayout)&&framerSyncLayout.remove(visualElement)}))},Measure.prototype.getSnapshotBeforeUpdate=function(){var _a=this.props,syncLayout=_a.syncLayout,visualElement=_a.visualElement;return isSharedLayout(syncLayout)?syncLayout.syncUpdate():(!function snapshotViewportBox(visualElement){visualElement.shouldResetTransform()||(visualElement.prevViewportBox=visualElement.measureViewportBox(!1),visualElement.rebaseProjectionTarget(!1,visualElement.prevViewportBox))}(visualElement),syncLayout.add(visualElement)),null},Measure.prototype.componentDidUpdate=function(){var syncLayout=this.props.syncLayout;isSharedLayout(syncLayout)||syncLayout.flush()},Measure.prototype.render=function(){return null},Measure}(react.Component);var layoutAnimations={measureLayout:function MeasureContextProvider(props){var syncLayout=(0,react.useContext)(SharedLayoutContext),framerSyncLayout=(0,react.useContext)(FramerTreeLayoutContext);return react.createElement(Measure,(0,tslib_es6.pi)({},props,{syncLayout,framerSyncLayout}))},layoutAnimation:function AnimateLayoutContextProvider(props){var safeToRemove=(0,tslib_es6.CR)(usePresence(),2)[1];return react.createElement(Animate,(0,tslib_es6.pi)({},props,{safeToRemove}))}};function createLayoutState(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:delta(),deltaFinal:delta(),deltaTransform:""}}var zeroLayout=createLayoutState();function buildLayoutProjectionTransform(_a,treeScale,latestTransform){var x=_a.x,y=_a.y,transform="translate3d("+x.translate/treeScale.x+"px, "+y.translate/treeScale.y+"px, 0) ";if(latestTransform){var rotate=latestTransform.rotate,rotateX=latestTransform.rotateX,rotateY=latestTransform.rotateY;rotate&&(transform+="rotate("+rotate+") "),rotateX&&(transform+="rotateX("+rotateX+") "),rotateY&&(transform+="rotateY("+rotateY+") ")}return transform+="scale("+x.scale+", "+y.scale+")",latestTransform||transform!==identityProjection?transform:""}function buildLayoutProjectionTransformOrigin(_a){var deltaFinal=_a.deltaFinal;return 100*deltaFinal.x.origin+"% "+100*deltaFinal.y.origin+"% 0"}var identityProjection=buildLayoutProjectionTransform(zeroLayout.delta,zeroLayout.treeScale,{x:1,y:1}),lifecycles_names=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function updateLayoutDeltas(_a,_b,treePath,transformOrigin){var delta=_a.delta,layout=_a.layout,layoutCorrected=_a.layoutCorrected,treeScale=_a.treeScale,target=_b.target;!function resetBox(box,originBox){resetAxis(box.x,originBox.x),resetAxis(box.y,originBox.y)}(layoutCorrected,layout),function applyTreeDeltas(box,treeScale,treePath){var treeLength=treePath.length;if(treeLength){var node,delta;treeScale.x=treeScale.y=1;for(var i=0;i=0;i--){var ancestor=element.path[i];if(ancestor.projection.isEnabled){foundParent=ancestor;break}}projectionParent=foundParent}return projectionParent},resolveRelativeTargetBox:function(){var relativeParent=element.getProjectionParent();if(projection.relativeTarget&&relativeParent&&(function calcRelativeBox(projection,parentProjection){calcRelativeAxis(projection.target.x,projection.relativeTarget.x,parentProjection.target.x),calcRelativeAxis(projection.target.y,projection.relativeTarget.y,parentProjection.target.y)}(projection,relativeParent.projection),isDraggable(relativeParent))){var target=projection.target;applyBoxTransforms(target,target,relativeParent.getLatestValues())}},shouldResetTransform:function(){return Boolean(props._layoutResetTransform)},pointTo:function(newLead){leadProjection=newLead.projection,leadLatestValues=newLead.getLatestValues(),null==unsubscribeFromLeadVisualElement||unsubscribeFromLeadVisualElement(),unsubscribeFromLeadVisualElement=pipe(newLead.onSetAxisTarget(element.scheduleUpdateLayoutProjection),newLead.onLayoutAnimationComplete((function(){var _a;element.isPresent?element.presence=Presence.Present:null===(_a=element.layoutSafeToRemove)||void 0===_a||_a.call(element)})))},isPresent:!0,presence:Presence.Entering});return element}};function fireResolveRelativeTargetBox(child){child.resolveRelativeTargetBox()}function fireUpdateLayoutProjection(child){child.updateLayoutProjection()}var BoundingBoxDimension,variantProps=(0,tslib_es6.ev)(["initial"],(0,tslib_es6.CR)(variantPriorityOrder)),numVariantProps=variantProps.length,positionalKeys=new Set(["width","height","top","left","right","bottom","x","y"]),isPositionalKey=function(key){return positionalKeys.has(key)},setAndResetVelocity=function(value,to){value.set(to,!1),value.set(to)},isNumOrPxType=function(v){return v===number||v===px};!function(BoundingBoxDimension){BoundingBoxDimension.width="width",BoundingBoxDimension.height="height",BoundingBoxDimension.left="left",BoundingBoxDimension.right="right",BoundingBoxDimension.top="top",BoundingBoxDimension.bottom="bottom"}(BoundingBoxDimension||(BoundingBoxDimension={}));var getPosFromMatrix=function(matrix,pos){return parseFloat(matrix.split(", ")[pos])},getTranslateFromMatrix=function(pos2,pos3){return function(_bbox,_a){var transform=_a.transform;if("none"===transform||!transform)return 0;var matrix3d=transform.match(/^matrix3d\((.+)\)$/);if(matrix3d)return getPosFromMatrix(matrix3d[1],pos3);var matrix=transform.match(/^matrix\((.+)\)$/);return matrix?getPosFromMatrix(matrix[1],pos2):0}},transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformProps.filter((function(key){return!transformKeys.has(key)}));var positionalValues={width:function(_a){var x=_a.x;return x.max-x.min},height:function(_a){var y=_a.y;return y.max-y.min},top:function(_bbox,_a){var top=_a.top;return parseFloat(top)},left:function(_bbox,_a){var left=_a.left;return parseFloat(left)},bottom:function(_a,_b){var y=_a.y,top=_b.top;return parseFloat(top)+(y.max-y.min)},right:function(_a,_b){var x=_a.x,left=_b.left;return parseFloat(left)+(x.max-x.min)},x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)},checkAndConvertChangedValueTypes=function(visualElement,target,origin,transitionEnd){void 0===origin&&(origin={}),void 0===transitionEnd&&(transitionEnd={}),target=(0,tslib_es6.pi)({},target),transitionEnd=(0,tslib_es6.pi)({},transitionEnd);var targetPositionalKeys=Object.keys(target).filter(isPositionalKey),removedTransformValues=[],hasAttemptedToRemoveTransformValues=!1,changedValueTypeKeys=[];if(targetPositionalKeys.forEach((function(key){var value=visualElement.getValue(key);if(visualElement.hasValue(key)){var toType,from=origin[key],to=target[key],fromType=findDimensionValueType(from);if(isKeyframesTarget(to))for(var numKeyframes=to.length,i=null===to[0]?1:0;i{if(!scrollableRef)return;function onWheel(event){const{deltaX,deltaY}=event;scrollableRef.current.scrollBy(deltaX,deltaY)}const options={passive:!0};return node.addEventListener("wheel",onWheel,options),()=>{node.removeEventListener("wheel",onWheel,options)}}),[scrollableRef])}const InsertionPointOpenRef=(0,react.createContext)();function InsertionPointPopover(_ref){let{__unstablePopoverSlot,__unstableContentRef}=_ref;const{selectBlock}=(0,use_dispatch.Z)(store),openRef=(0,react.useContext)(InsertionPointOpenRef),ref=(0,react.useRef)(),{orientation,previousClientId,nextClientId,rootClientId,isInserterShown}=(0,use_select.Z)((select=>{var _getBlockListSettings;const{getBlockOrder,getBlockListSettings,getBlockInsertionPoint,isBlockBeingDragged,getPreviousBlockClientId,getNextBlockClientId}=select(store),insertionPoint=getBlockInsertionPoint(),order=getBlockOrder(insertionPoint.rootClientId);if(!order.length)return{};let _previousClientId=order[insertionPoint.index-1],_nextClientId=order[insertionPoint.index];for(;isBlockBeingDragged(_previousClientId);)_previousClientId=getPreviousBlockClientId(_previousClientId);for(;isBlockBeingDragged(_nextClientId);)_nextClientId=getNextBlockClientId(_nextClientId);return{previousClientId:_previousClientId,nextClientId:_nextClientId,orientation:(null===(_getBlockListSettings=getBlockListSettings(insertionPoint.rootClientId))||void 0===_getBlockListSettings?void 0:_getBlockListSettings.orientation)||"vertical",rootClientId:insertionPoint.rootClientId,isInserterShown:null==insertionPoint?void 0:insertionPoint.__unstableWithInserter}}),[]),previousElement=useBlockElement(previousClientId),nextElement=useBlockElement(nextClientId),isVertical="vertical"===orientation,style=(0,react.useMemo)((()=>{if(!previousElement&&!nextElement)return{};const previousRect=previousElement?previousElement.getBoundingClientRect():null,nextRect=nextElement?nextElement.getBoundingClientRect():null;if(isVertical)return{width:previousElement?previousElement.offsetWidth:nextElement.offsetWidth,height:nextRect&&previousRect?nextRect.top-previousRect.bottom:0};let width=0;return previousRect&&nextRect&&(width=(0,i18n_build_module.dZ)()?previousRect.left-nextRect.right:nextRect.left-previousRect.right),{width,height:previousElement?previousElement.offsetHeight:nextElement.offsetHeight}}),[previousElement,nextElement]),getAnchorRect=(0,react.useCallback)((()=>{if(!previousElement&&!nextElement)return{};const{ownerDocument}=previousElement||nextElement,previousRect=previousElement?previousElement.getBoundingClientRect():null,nextRect=nextElement?nextElement.getBoundingClientRect():null;return isVertical?(0,i18n_build_module.dZ)()?{top:previousRect?previousRect.bottom:nextRect.top,left:previousRect?previousRect.right:nextRect.right,right:previousRect?previousRect.left:nextRect.left,bottom:nextRect?nextRect.top:previousRect.bottom,ownerDocument}:{top:previousRect?previousRect.bottom:nextRect.top,left:previousRect?previousRect.left:nextRect.left,right:previousRect?previousRect.right:nextRect.right,bottom:nextRect?nextRect.top:previousRect.bottom,ownerDocument}:(0,i18n_build_module.dZ)()?{top:previousRect?previousRect.top:nextRect.top,left:previousRect?previousRect.left:nextRect.right,right:nextRect?nextRect.right:previousRect.left,bottom:previousRect?previousRect.bottom:nextRect.bottom,ownerDocument}:{top:previousRect?previousRect.top:nextRect.top,left:previousRect?previousRect.right:nextRect.left,right:nextRect?nextRect.left:previousRect.right,bottom:previousRect?previousRect.bottom:nextRect.bottom,ownerDocument}}),[previousElement,nextElement]),popoverScrollRef=usePopoverScroll(__unstableContentRef),disableMotion=(0,use_reduced_motion.Z)(),className=classnames_default()("block-editor-block-list__insertion-point","is-"+orientation);const showInsertionPointInserter=previousElement&&nextElement&&isInserterShown,lineVariants={start:{...isVertical?{height:0,left:"50%",right:"50%",y:0}:{width:0,top:"50%",bottom:"50%",x:0},opacity:0},rest:{...isVertical?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:showInsertionPointInserter?.4:0}},hover:{...isVertical?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:.4}}},inserterVariants={start:{scale:disableMotion?1:0},rest:{scale:1,transition:{delay:.2}}};return(0,react.createElement)(popover.Z,{ref:popoverScrollRef,noArrow:!0,animate:!1,getAnchorRect,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:__unstablePopoverSlot||null,key:nextClientId+"--"+rootClientId},(0,react.createElement)(motion.div,{layout:!disableMotion,initial:disableMotion?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref,tabIndex:-1,onClick:function onClick(event){event.target===ref.current&&nextClientId&&selectBlock(nextClientId,-1)},onFocus:function onFocus(event){event.target!==ref.current&&(openRef.current=!0)},className:classnames_default()(className,{"is-with-inserter":showInsertionPointInserter}),style},(0,react.createElement)(motion.div,{variants:lineVariants,className:"block-editor-block-list__insertion-point-indicator"}),showInsertionPointInserter&&(0,react.createElement)(motion.div,{variants:inserterVariants,className:classnames_default()("block-editor-block-list__insertion-point-inserter")},(0,react.createElement)(inserter,{position:"bottom center",clientId:nextClientId,rootClientId,__experimentalIsQuick:!0,onToggle:isOpen=>{openRef.current=isOpen},onSelectOrClose:()=>{openRef.current=!1}}))))}function InsertionPoint(_ref2){let{children,__unstablePopoverSlot,__unstableContentRef}=_ref2;const isVisible=(0,use_select.Z)((select=>select(store).isBlockInsertionPointVisible()),[]);return(0,react.createElement)(InsertionPointOpenRef.Provider,{value:(0,react.useRef)(!1)},isVisible&&(0,react.createElement)(InsertionPointPopover,{__unstablePopoverSlot,__unstableContentRef}),children)}function useInBetweenInserter(){const openRef=(0,react.useContext)(InsertionPointOpenRef),hasReducedUI=(0,use_select.Z)((select=>select(store).getSettings().hasReducedUI),[]),{getBlockListSettings,getBlockRootClientId,getBlockIndex,isBlockInsertionPointVisible,isMultiSelecting,getSelectedBlockClientIds,getTemplateLock}=(0,use_select.Z)(store),{showInsertionPoint,hideInsertionPoint}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{if(!hasReducedUI)return node.addEventListener("mousemove",onMouseMove),()=>{node.removeEventListener("mousemove",onMouseMove)};function onMouseMove(event){var _getBlockListSettings,_element$parentElemen;if(openRef.current)return;if(isMultiSelecting())return;if(!event.target.classList.contains("block-editor-block-list__layout"))return void(isBlockInsertionPointVisible()&&hideInsertionPoint());let rootClientId;if(!event.target.classList.contains("is-root-container")){rootClientId=(event.target.getAttribute("data-block")?event.target:event.target.closest("[data-block]")).getAttribute("data-block")}if(getTemplateLock(rootClientId))return;const orientation=(null===(_getBlockListSettings=getBlockListSettings(rootClientId))||void 0===_getBlockListSettings?void 0:_getBlockListSettings.orientation)||"vertical",rect=event.target.getBoundingClientRect(),offsetTop=event.clientY-rect.top,offsetLeft=event.clientX-rect.left;let element=Array.from(event.target.children).find((blockEl=>blockEl.classList.contains("wp-block")&&"vertical"===orientation&&blockEl.offsetTop>offsetTop||blockEl.classList.contains("wp-block")&&"horizontal"===orientation&&blockEl.offsetLeft>offsetLeft));if(!element)return;if(!element.id&&(element=element.firstElementChild,!element))return;if(null===(_element$parentElemen=element.parentElement)||void 0===_element$parentElemen?void 0:_element$parentElemen.closest(".block-editor-block-content-overlay.overlay-active"))return;const clientId=element.id.slice("block-".length);if(!clientId)return;if(getSelectedBlockClientIds().includes(clientId))return;const elementRect=element.getBoundingClientRect();if("horizontal"===orientation&&(event.clientY>elementRect.bottom||event.clientYelementRect.right||event.clientX{setTimeout((()=>callback(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,cancelIdleCallback="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;function useBlockDisplayInformation(clientId){return(0,use_select.Z)((select=>{if(!clientId)return null;const{getBlockName,getBlockAttributes}=select(store),{getBlockType,getActiveBlockVariation}=select(build_module.h),blockName=getBlockName(clientId),blockType=getBlockType(blockName);if(!blockType)return null;const attributes=getBlockAttributes(clientId),match=getActiveBlockVariation(blockName,attributes),blockTypeInfo={title:blockType.title,icon:blockType.icon,description:blockType.description,anchor:null==attributes?void 0:attributes.anchor};return match?{title:match.title||blockType.title,icon:match.icon||blockType.icon,description:match.description||blockType.description}:blockTypeInfo}),[clientId])}function BlockTitle(_ref){let{clientId}=_ref;const{attributes,name,reusableBlockTitle}=(0,use_select.Z)((select=>{if(!clientId)return{};const{getBlockName,getBlockAttributes,__experimentalGetReusableBlockTitle}=select(store),blockName=getBlockName(clientId);if(!blockName)return{};const isReusable=(0,build_module.vr)((0,build_module.ck)(blockName));return{attributes:getBlockAttributes(clientId),name:blockName,reusableBlockTitle:isReusable&&__experimentalGetReusableBlockTitle(getBlockAttributes(clientId).ref)}}),[clientId]),blockInformation=useBlockDisplayInformation(clientId);if(!name||!blockInformation)return null;const blockType=(0,build_module.ck)(name),blockLabel=blockType?(0,build_module.Iu)(blockType,attributes):null,label=reusableBlockTitle||blockLabel;return label&&label!==blockType.title?(0,lodash.truncate)(label,{length:35}):blockInformation.title}const block_draggable=_ref=>{let{children,clientIds,cloneClassname,onDragStart,onDragEnd}=_ref;const{srcRootClientId,isDraggable,icon}=(0,use_select.Z)((select=>{var _getBlockType;const{getBlockRootClientId,getTemplateLock,getBlockName}=select(store),rootClientId=getBlockRootClientId(clientIds[0]),templateLock=rootClientId?getTemplateLock(rootClientId):null,blockName=getBlockName(clientIds[0]);return{srcRootClientId:rootClientId,isDraggable:"all"!==templateLock,icon:null===(_getBlockType=(0,build_module.ck)(blockName))||void 0===_getBlockType?void 0:_getBlockType.icon}}),[clientIds]),isDragging=(0,react.useRef)(!1),[startScrolling,scrollOnDragOver,stopScrolling]=function useScrollWhenDragging(){const dragStartY=(0,react.useRef)(null),velocityY=(0,react.useRef)(null),scrollParentY=(0,react.useRef)(null),scrollEditorInterval=(0,react.useRef)(null);return(0,react.useEffect)((()=>()=>{scrollEditorInterval.current&&(clearInterval(scrollEditorInterval.current),scrollEditorInterval.current=null)}),[]),[(0,react.useCallback)((event=>{dragStartY.current=event.clientY,scrollParentY.current=getScrollContainer(event.target),scrollEditorInterval.current=setInterval((()=>{if(scrollParentY.current&&velocityY.current){const newTop=scrollParentY.current.scrollTop+velocityY.current;scrollParentY.current.scroll({top:newTop})}}),25)}),[]),(0,react.useCallback)((event=>{if(!scrollParentY.current)return;const scrollParentHeight=scrollParentY.current.offsetHeight,offsetDragStartPosition=dragStartY.current-scrollParentY.current.offsetTop,offsetDragPosition=event.clientY-scrollParentY.current.offsetTop;if(event.clientY>offsetDragStartPosition){const moveableDistance=Math.max(scrollParentHeight-offsetDragStartPosition-50,0),distancePercentage=Math.max(offsetDragPosition-offsetDragStartPosition-50,0)/moveableDistance;velocityY.current=25*distancePercentage}else if(event.clientY{dragStartY.current=null,scrollParentY.current=null,scrollEditorInterval.current&&(clearInterval(scrollEditorInterval.current),scrollEditorInterval.current=null)}]}(),{startDraggingBlocks,stopDraggingBlocks}=(0,use_dispatch.Z)(store);if((0,react.useEffect)((()=>()=>{isDragging.current&&stopDraggingBlocks()}),[]),!isDraggable)return children({isDraggable:!1});const transferData={type:"block",srcClientIds:clientIds,srcRootClientId};return(0,react.createElement)(Draggable,{cloneClassname,__experimentalTransferDataType:"wp-blocks",transferData,onDragStart:event=>{startDraggingBlocks(clientIds),isDragging.current=!0,startScrolling(event),onDragStart&&onDragStart()},onDragOver:scrollOnDragOver,onDragEnd:()=>{stopDraggingBlocks(),isDragging.current=!1,stopScrolling(),onDragEnd&&onDragEnd()},__experimentalDragComponent:(0,react.createElement)(BlockDraggableChip,{count:clientIds.length,icon})},(_ref2=>{let{onDraggableStart,onDraggableEnd}=_ref2;return children({draggable:!0,onDragStart:onDraggableStart,onDragEnd:onDraggableEnd})}))};const block_selection_button=function BlockSelectionButton(_ref){let{clientId,rootClientId,blockElement}=_ref;const blockInformation=useBlockDisplayInformation(clientId),selected=(0,use_select.Z)((select=>{var _getBlockListSettings;const{getBlock,getBlockIndex,hasBlockMovingClientId,getBlockListSettings}=select(store),index=getBlockIndex(clientId,rootClientId),{name,attributes}=getBlock(clientId);return{index,name,attributes,blockMovingMode:hasBlockMovingClientId(),orientation:null===(_getBlockListSettings=getBlockListSettings(rootClientId))||void 0===_getBlockListSettings?void 0:_getBlockListSettings.orientation}}),[clientId,rootClientId]),{index,name,attributes,blockMovingMode,orientation}=selected,{setNavigationMode,removeBlock}=(0,use_dispatch.Z)(store),ref=(0,react.useRef)(),blockType=(0,build_module.ck)(name),label=(0,build_module.DK)(blockType,attributes,index+1,orientation);(0,react.useEffect)((()=>{ref.current.focus(),(0,a11y_build_module.D)(label)}),[label]);const{hasBlockMovingClientId,getBlockIndex,getBlockRootClientId,getClientIdsOfDescendants,getSelectedBlockClientId,getMultiSelectedBlocksEndClientId,getPreviousBlockClientId,getNextBlockClientId,isNavigationMode}=(0,use_select.Z)(store),{selectBlock,clearSelectedBlock,setBlockMovingClientId,moveBlockToPosition}=(0,use_dispatch.Z)(store),classNames=classnames_default()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!blockMovingMode}),dragHandleLabel=(0,i18n_build_module.__)("Drag");return(0,react.createElement)("div",{className:classNames},(0,react.createElement)(component.Z,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(block_icon,{icon:null==blockInformation?void 0:blockInformation.icon,showColors:!0})),(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(block_draggable,{clientIds:[clientId]},(draggableProps=>(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({icon:drag_handle,className:"block-selection-button_drag-handle","aria-hidden":"true",label:dragHandleLabel,tabIndex:"-1"},draggableProps))))),(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(build_module_button.Z,{ref,onClick:()=>setNavigationMode(!1),onKeyDown:function onKeyDown(event){const{keyCode}=event,isUp=keyCode===keycodes_build_module.UP,isDown=keyCode===keycodes_build_module.WV,isLeft=keyCode===keycodes_build_module.RL,isRight=keyCode===keycodes_build_module.pX,isTab=keyCode===keycodes_build_module.Mf,isEscape=keyCode===keycodes_build_module.hY,isEnter=keyCode===keycodes_build_module.K5,isSpace=keyCode===keycodes_build_module.L_,isShift=event.shiftKey;if(keyCode===keycodes_build_module.ZH||keyCode===keycodes_build_module.yY)return removeBlock(clientId),void event.preventDefault();const selectedBlockClientId=getSelectedBlockClientId(),selectionEndClientId=getMultiSelectedBlocksEndClientId(),selectionBeforeEndClientId=getPreviousBlockClientId(selectionEndClientId||selectedBlockClientId),selectionAfterEndClientId=getNextBlockClientId(selectionEndClientId||selectedBlockClientId),navigateUp=isTab&&isShift||isUp,navigateDown=isTab&&!isShift||isDown,navigateOut=isLeft,navigateIn=isRight;let focusedBlockUid;if(navigateUp)focusedBlockUid=selectionBeforeEndClientId;else if(navigateDown)focusedBlockUid=selectionAfterEndClientId;else if(navigateOut){var _getBlockRootClientId;focusedBlockUid=null!==(_getBlockRootClientId=getBlockRootClientId(selectedBlockClientId))&&void 0!==_getBlockRootClientId?_getBlockRootClientId:selectedBlockClientId}else if(navigateIn){var _getClientIdsOfDescen;focusedBlockUid=null!==(_getClientIdsOfDescen=getClientIdsOfDescendants([selectedBlockClientId])[0])&&void 0!==_getClientIdsOfDescen?_getClientIdsOfDescen:selectedBlockClientId}const startingBlockClientId=hasBlockMovingClientId();if(isEscape&&isNavigationMode()&&(clearSelectedBlock(),event.preventDefault()),isEscape&&startingBlockClientId&&!event.defaultPrevented&&(setBlockMovingClientId(null),event.preventDefault()),(isEnter||isSpace)&&startingBlockClientId){const sourceRoot=getBlockRootClientId(startingBlockClientId),destRoot=getBlockRootClientId(selectedBlockClientId),sourceBlockIndex=getBlockIndex(startingBlockClientId,sourceRoot);let destinationBlockIndex=getBlockIndex(selectedBlockClientId,destRoot);sourceBlockIndex{!function focusFirstTabbableIn(container){const[firstTabbable]=dom_build_module.T_.tabbable.find(container);firstTabbable&&firstTabbable.focus()}(ref.current)}),[]);useShortcut("core/block-editor/focus-toolbar",focusToolbar),(0,react.useEffect)((()=>{initialFocusOnMount&&focusToolbar()}),[isAccessibleToolbar,initialFocusOnMount,focusToolbar]),(0,react.useEffect)((()=>{let raf=0;return initialIndex&&!initialFocusOnMount&&(raf=window.requestAnimationFrame((()=>{const items=getAllToolbarItemsIn(ref.current),index=initialIndex||0;items[index]&&function hasFocusWithin(container){return container.contains(container.ownerDocument.activeElement)}(ref.current)&&items[index].focus()}))),()=>{if(window.cancelAnimationFrame(raf),!onIndexChange||!ref.current)return;const index=getAllToolbarItemsIn(ref.current).findIndex((item=>0===item.tabIndex));onIndexChange(index)}}),[initialIndex,initialFocusOnMount])}const navigable_toolbar=function NavigableToolbar(_ref){let{children,focusOnMount,__experimentalInitialIndex:initialIndex,__experimentalOnIndexChange:onIndexChange,...props}=_ref;const ref=(0,react.useRef)(),isAccessibleToolbar=function useIsAccessibleToolbar(ref){const[isAccessibleToolbar,setIsAccessibleToolbar]=(0,react.useState)(!0),determineIsAccessibleToolbar=(0,react.useCallback)((()=>{const onlyToolbarItem=function hasOnlyToolbarItem(elements){return!elements.some((element=>!("toolbarItem"in element.dataset)))}(dom_build_module.T_.tabbable.find(ref.current));onlyToolbarItem||(0,deprecated_build_module.Z)("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),setIsAccessibleToolbar(onlyToolbarItem)}),[]);return(0,react.useLayoutEffect)((()=>{const observer=new window.MutationObserver(determineIsAccessibleToolbar);return observer.observe(ref.current,{childList:!0,subtree:!0}),()=>observer.disconnect()}),[isAccessibleToolbar]),isAccessibleToolbar}(ref);return useToolbarFocus(ref,focusOnMount,isAccessibleToolbar,initialIndex,onIndexChange),isAccessibleToolbar?(0,react.createElement)(toolbar,(0,esm_extends.Z)({label:props["aria-label"],ref},props),children):(0,react.createElement)(navigable_container_menu.Z,(0,esm_extends.Z)({orientation:"horizontal",role:"toolbar",ref},props),children)};var toolbar_item=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-item/index.js"),chevron_right=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/chevron-right.js"),chevron_left=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/chevron-left.js"),chevron_up=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/chevron-up.js"),chevron_down=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/chevron-down.js");function getBlockMoverDescription(selectedCount,type,firstIndex,isFirst,isLast,dir,orientation){const position=firstIndex+1,getMovementDirection=moveDirection=>"up"===moveDirection?"horizontal"===orientation?(0,i18n_build_module.dZ)()?"right":"left":"up":"down"===moveDirection?"horizontal"===orientation?(0,i18n_build_module.dZ)()?"left":"right":"down":null;if(selectedCount>1)return function getMultiBlockMoverDescription(selectedCount,firstIndex,isFirst,isLast,dir){const position=firstIndex+1;if(dir<0&&isFirst)return(0,i18n_build_module.__)("Blocks cannot be moved up as they are already at the top");if(dir>0&&isLast)return(0,i18n_build_module.__)("Blocks cannot be moved down as they are already at the bottom");if(dir<0&&!isFirst)return(0,i18n_build_module.gB)((0,i18n_build_module._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",selectedCount),selectedCount,position);if(dir>0&&!isLast)return(0,i18n_build_module.gB)((0,i18n_build_module._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",selectedCount),selectedCount,position)}(selectedCount,firstIndex,isFirst,isLast,dir);if(isFirst&&isLast)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %s is the only block, and cannot be moved"),type);if(dir>0&&!isLast){const movementDirection=getMovementDirection("down");if("down"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Move %1$s block from position %2$d down to position %3$d"),type,position,position+1);if("left"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Move %1$s block from position %2$d left to position %3$d"),type,position,position+1);if("right"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Move %1$s block from position %2$d right to position %3$d"),type,position,position+1)}if(dir>0&&isLast){const movementDirection=getMovementDirection("down");if("down"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$s is at the end of the content and can’t be moved down"),type);if("left"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$s is at the end of the content and can’t be moved left"),type);if("right"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$s is at the end of the content and can’t be moved right"),type)}if(dir<0&&!isFirst){const movementDirection=getMovementDirection("up");if("up"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Move %1$s block from position %2$d up to position %3$d"),type,position,position-1);if("left"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Move %1$s block from position %2$d left to position %3$d"),type,position,position-1);if("right"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Move %1$s block from position %2$d right to position %3$d"),type,position,position-1)}if(dir<0&&isFirst){const movementDirection=getMovementDirection("up");if("up"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$s is at the beginning of the content and can’t be moved up"),type);if("left"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$s is at the beginning of the content and can’t be moved left"),type);if("right"===movementDirection)return(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$s is at the beginning of the content and can’t be moved right"),type)}}const getArrowIcon=(direction,orientation)=>"up"===direction?"horizontal"===orientation?(0,i18n_build_module.dZ)()?chevron_right.Z:chevron_left.Z:chevron_up.Z:"down"===direction?"horizontal"===orientation?(0,i18n_build_module.dZ)()?chevron_left.Z:chevron_right.Z:chevron_down.Z:null,getMovementDirectionLabel=(moveDirection,orientation)=>"up"===moveDirection?"horizontal"===orientation?(0,i18n_build_module.dZ)()?(0,i18n_build_module.__)("Move right"):(0,i18n_build_module.__)("Move left"):(0,i18n_build_module.__)("Move up"):"down"===moveDirection?"horizontal"===orientation?(0,i18n_build_module.dZ)()?(0,i18n_build_module.__)("Move left"):(0,i18n_build_module.__)("Move right"):(0,i18n_build_module.__)("Move down"):null,BlockMoverButton=(0,react.forwardRef)(((_ref,ref)=>{let{clientIds,direction,orientation:moverOrientation,...props}=_ref;const instanceId=(0,use_instance_id.Z)(BlockMoverButton),blocksCount=(0,lodash.castArray)(clientIds).length,{blockType,isDisabled,rootClientId,isFirst,isLast,firstIndex,orientation="vertical"}=(0,use_select.Z)((select=>{const{getBlockIndex,getBlockRootClientId,getBlockOrder,getBlock,getBlockListSettings}=select(store),normalizedClientIds=(0,lodash.castArray)(clientIds),firstClientId=(0,lodash.first)(normalizedClientIds),blockRootClientId=getBlockRootClientId(firstClientId),firstBlockIndex=getBlockIndex(firstClientId,blockRootClientId),lastBlockIndex=getBlockIndex((0,lodash.last)(normalizedClientIds),blockRootClientId),blockOrder=getBlockOrder(blockRootClientId),block=getBlock(firstClientId),isFirstBlock=0===firstBlockIndex,isLastBlock=lastBlockIndex===blockOrder.length-1,{orientation:blockListOrientation}=getBlockListSettings(blockRootClientId)||{};return{blockType:block?(0,build_module.ck)(block.name):null,isDisabled:"up"===direction?isFirstBlock:isLastBlock,rootClientId:blockRootClientId,firstIndex:firstBlockIndex,isFirst:isFirstBlock,isLast:isLastBlock,orientation:moverOrientation||blockListOrientation}}),[clientIds,direction]),{moveBlocksDown,moveBlocksUp}=(0,use_dispatch.Z)(store),moverFunction="up"===direction?moveBlocksUp:moveBlocksDown,descriptionId=`block-editor-block-mover-button__description-${instanceId}`;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({ref,className:classnames_default()("block-editor-block-mover-button",`is-${direction}-button`),icon:getArrowIcon(direction,orientation),label:getMovementDirectionLabel(direction,orientation),"aria-describedby":descriptionId},props,{onClick:isDisabled?null:event=>{moverFunction(clientIds,rootClientId),props.onClick&&props.onClick(event)},"aria-disabled":isDisabled})),(0,react.createElement)("span",{id:descriptionId,className:"block-editor-block-mover-button__description"},getBlockMoverDescription(blocksCount,blockType&&blockType.title,firstIndex,isFirst,isLast,"up"===direction?-1:1,orientation)))})),BlockMoverUpButton=(0,react.forwardRef)(((props,ref)=>(0,react.createElement)(BlockMoverButton,(0,esm_extends.Z)({direction:"up",ref},props)))),BlockMoverDownButton=(0,react.forwardRef)(((props,ref)=>(0,react.createElement)(BlockMoverButton,(0,esm_extends.Z)({direction:"down",ref},props))));const block_mover=(0,with_select.Z)(((select,_ref2)=>{var _getBlockListSettings;let{clientIds}=_ref2;const{getBlock,getBlockIndex,getBlockListSettings,canMoveBlocks,getBlockOrder,getBlockRootClientId}=select(store),normalizedClientIds=(0,lodash.castArray)(clientIds),firstClientId=(0,lodash.first)(normalizedClientIds),block=getBlock(firstClientId),rootClientId=getBlockRootClientId((0,lodash.first)(normalizedClientIds)),firstIndex=getBlockIndex(firstClientId,rootClientId),isFirst=0===firstIndex,isLast=getBlockIndex((0,lodash.last)(normalizedClientIds),rootClientId)===getBlockOrder(rootClientId).length-1;return{blockType:block?(0,build_module.ck)(block.name):null,canMove:canMoveBlocks(clientIds,rootClientId),rootClientId,firstIndex,isFirst,isLast,orientation:null===(_getBlockListSettings=getBlockListSettings(rootClientId))||void 0===_getBlockListSettings?void 0:_getBlockListSettings.orientation}}))((function BlockMover(_ref){let{isFirst,isLast,clientIds,canMove,isHidden,rootClientId,orientation,hideDragHandle}=_ref;const[isFocused,setIsFocused]=(0,react.useState)(!1),onFocus=()=>setIsFocused(!0),onBlur=()=>setIsFocused(!1);if(!canMove||isFirst&&isLast&&!rootClientId)return null;const dragHandleLabel=(0,i18n_build_module.__)("Drag");return(0,react.createElement)("div",{className:classnames_default()("block-editor-block-mover",{"is-visible":isFocused||!isHidden,"is-horizontal":"horizontal"===orientation})},!hideDragHandle&&(0,react.createElement)(block_draggable,{clientIds,cloneClassname:"block-editor-block-mover__drag-clone"},(draggableProps=>(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({icon:drag_handle,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:dragHandleLabel,tabIndex:"-1"},draggableProps)))),(0,react.createElement)(toolbar_group.Z,{className:"block-editor-block-mover__move-button-container"},(0,react.createElement)(toolbar_item.Z,{onFocus,onBlur},(itemProps=>(0,react.createElement)(BlockMoverUpButton,(0,esm_extends.Z)({clientIds},itemProps)))),(0,react.createElement)(toolbar_item.Z,{onFocus,onBlur},(itemProps=>(0,react.createElement)(BlockMoverDownButton,(0,esm_extends.Z)({clientIds},itemProps))))))}));var toolbar_button=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-button/index.js");const{clearTimeout:utils_clearTimeout,setTimeout:utils_setTimeout}=window,DEBOUNCE_TIMEOUT=200;function useDebouncedShowMovers(_ref){let{ref,isFocused,debounceTimeout=DEBOUNCE_TIMEOUT,onChange=lodash.noop}=_ref;const[showMovers,setShowMovers]=(0,react.useState)(!1),timeoutRef=(0,react.useRef)(),handleOnChange=nextIsFocused=>{null!=ref&&ref.current&&setShowMovers(nextIsFocused),onChange(nextIsFocused)},shouldHideMovers=()=>{const isHovered=(null==ref?void 0:ref.current)&&ref.current.matches(":hover");return!isFocused&&!isHovered},clearTimeoutRef=()=>{const timeout=timeoutRef.current;timeout&&utils_clearTimeout&&utils_clearTimeout(timeout)};return(0,react.useEffect)((()=>()=>clearTimeoutRef()),[]),{showMovers,debouncedShowMovers:event=>{event&&event.stopPropagation(),clearTimeoutRef(),showMovers||handleOnChange(!0)},debouncedHideMovers:event=>{event&&event.stopPropagation(),clearTimeoutRef(),timeoutRef.current=utils_setTimeout((()=>{shouldHideMovers()&&handleOnChange(!1)}),debounceTimeout)}}}function useShowMoversGestures(_ref2){let{ref,debounceTimeout=DEBOUNCE_TIMEOUT,onChange=lodash.noop}=_ref2;const[isFocused,setIsFocused]=(0,react.useState)(!1),{showMovers,debouncedShowMovers,debouncedHideMovers}=useDebouncedShowMovers({ref,debounceTimeout,isFocused,onChange}),registerRef=(0,react.useRef)(!1),isFocusedWithin=()=>(null==ref?void 0:ref.current)&&ref.current.contains(ref.current.ownerDocument.activeElement);return(0,react.useEffect)((()=>{const node=ref.current,handleOnFocus=()=>{isFocusedWithin()&&(setIsFocused(!0),debouncedShowMovers())},handleOnBlur=()=>{isFocusedWithin()||(setIsFocused(!1),debouncedHideMovers())};return node&&!registerRef.current&&(node.addEventListener("focus",handleOnFocus,!0),node.addEventListener("blur",handleOnBlur,!0),registerRef.current=!0),()=>{node&&(node.removeEventListener("focus",handleOnFocus),node.removeEventListener("blur",handleOnBlur))}}),[ref,registerRef,setIsFocused,debouncedShowMovers,debouncedHideMovers]),{showMovers,gestures:{onMouseMove:debouncedShowMovers,onMouseLeave:debouncedHideMovers}}}function BlockParentSelector(){const{selectBlock,toggleBlockHighlight}=(0,use_dispatch.Z)(store),{firstParentClientId,shouldHide,hasReducedUI}=(0,use_select.Z)((select=>{const{getBlockName,getBlockParents,getSelectedBlockClientId,getSettings}=select(store),{hasBlockSupport}=select(build_module.h),parents=getBlockParents(getSelectedBlockClientId()),_firstParentClientId=parents[parents.length-1],parentBlockName=getBlockName(_firstParentClientId),_parentBlockType=(0,build_module.ck)(parentBlockName),settings=getSettings();return{firstParentClientId:_firstParentClientId,shouldHide:!hasBlockSupport(_parentBlockType,"__experimentalParentSelector",!0),hasReducedUI:settings.hasReducedUI}}),[]),blockInformation=useBlockDisplayInformation(firstParentClientId),nodeRef=(0,react.useRef)(),{gestures:showMoversGestures}=useShowMoversGestures({ref:nodeRef,onChange(isFocused){isFocused&&hasReducedUI||toggleBlockHighlight(firstParentClientId,isFocused)}});return shouldHide||void 0===firstParentClientId?null:(0,react.createElement)("div",(0,esm_extends.Z)({className:"block-editor-block-parent-selector",key:firstParentClientId,ref:nodeRef},showMoversGestures),(0,react.createElement)(toolbar_button.Z,{className:"block-editor-block-parent-selector__button",onClick:()=>selectBlock(firstParentClientId),label:(0,i18n_build_module.gB)((0,i18n_build_module.__)("Select %s"),blockInformation.title),showTooltip:!0,icon:(0,react.createElement)(block_icon,{icon:blockInformation.icon})}))}const library_stack=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{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 PreviewBlockPopover(_ref){let{blocks}=_ref;return(0,react.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,react.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,react.createElement)(popover.Z,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},(0,react.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,react.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,i18n_build_module.__)("Preview")),(0,react.createElement)(block_preview,{viewportWidth:500,blocks})))))}const block_transformations_menu=_ref=>{let{className,possibleBlockTransformations,onSelect,blocks}=_ref;const[hoveredTransformItemName,setHoveredTransformItemName]=(0,react.useState)();return(0,react.createElement)(menu_group.Z,{label:(0,i18n_build_module.__)("Transform to"),className},hoveredTransformItemName&&(0,react.createElement)(PreviewBlockPopover,{blocks:(0,build_module.m4)(blocks,hoveredTransformItemName)}),possibleBlockTransformations.map((item=>{const{name,icon,title,isDisabled}=item;return(0,react.createElement)(menu_item.Z,{key:name,className:(0,build_module.hq)(name),onClick:event=>{event.preventDefault(),onSelect(name)},disabled:isDisabled,onMouseLeave:()=>setHoveredTransformItemName(null),onMouseEnter:()=>setHoveredTransformItemName(name)},(0,react.createElement)(block_icon,{icon,showColors:!0}),title)})))};class TokenList{constructor(){let initialValue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.value=initialValue,this._currentValue,this._valueAsArray}entries(){return this._valueAsArray.entries(...arguments)}forEach(){return this._valueAsArray.forEach(...arguments)}keys(){return this._valueAsArray.keys(...arguments)}values(){return this._valueAsArray.values(...arguments)}get value(){return this._currentValue}set value(value){value=String(value),this._valueAsArray=(0,lodash.uniq)((0,lodash.compact)(value.split(/\s+/g))),this._currentValue=this._valueAsArray.join(" ")}get length(){return this._valueAsArray.length}toString(){return this.value}*[Symbol.iterator](){return yield*this._valueAsArray}item(index){return this._valueAsArray[index]}contains(item){return-1!==this._valueAsArray.indexOf(item)}add(){for(var _len=arguments.length,items=new Array(_len),_key=0;_key<_len;_key++)items[_key]=arguments[_key];this.value+=" "+items.join(" ")}remove(){for(var _len2=arguments.length,items=new Array(_len2),_key2=0;_key2<_len2;_key2++)items[_key2]=arguments[_key2];this.value=(0,lodash.without)(this._valueAsArray,...items).join(" ")}toggle(token,force){return void 0===force&&(force=!this.contains(token)),force?this.add(token):this.remove(token),force}replace(token,newToken){return!!this.contains(token)&&(this.remove(token),this.add(newToken),!0)}supports(){return!0}}const EMPTY_OBJECT={};function BlockStyleItem(_ref2){let{genericPreviewBlock,viewportWidth,style,isActive,onBlur,onHover,onSelect,styleClassName,itemRole}=_ref2;const previewBlocks=(0,react.useMemo)((()=>({...genericPreviewBlock,attributes:{...genericPreviewBlock.attributes,className:styleClassName}})),[genericPreviewBlock,styleClassName]);return(0,react.createElement)("div",{key:style.name,className:classnames_default()("block-editor-block-styles__item",{"is-active":isActive}),onClick:()=>onSelect(),onKeyDown:event=>{keycodes_build_module.K5!==event.keyCode&&keycodes_build_module.L_!==event.keyCode||(event.preventDefault(),onSelect())},onMouseEnter:onHover,onMouseLeave:onBlur,role:itemRole||"button",tabIndex:"0","aria-label":style.label||style.name},(0,react.createElement)("div",{className:"block-editor-block-styles__item-preview"},(0,react.createElement)(block_preview,{viewportWidth,blocks:previewBlocks})),(0,react.createElement)("div",{className:"block-editor-block-styles__item-label"},style.label||style.name))}const block_styles=function BlockStyles(_ref){let{clientId,onSwitch=lodash.noop,onHoverClassName=lodash.noop,itemRole}=_ref;const{styles,block,type,className}=(0,use_select.Z)((select=>{const{getBlock}=select(store),block=getBlock(clientId);if(!block)return EMPTY_OBJECT;const blockType=(0,build_module.ck)(block.name),{getBlockStyles}=select(build_module.h);return{block,type:blockType,styles:getBlockStyles(block.name),className:block.attributes.className||""}}),[clientId]),{updateBlockAttributes}=(0,use_dispatch.Z)(store),genericPreviewBlock=function useGenericPreviewBlock(block,type){return(0,react.useMemo)((()=>{const example=null==type?void 0:type.example,blockName=null==type?void 0:type.name;return example&&blockName?(0,build_module.Wf)(blockName,{attributes:example.attributes,innerBlocks:example.innerBlocks}):block?(0,build_module.Wm)(block):void 0}),[null!=type&&type.example?null==block?void 0:block.name:block,type])}(block,type);if(!styles||0===styles.length)return null;const renderedStyles=(0,lodash.find)(styles,"isDefault")?styles:[{name:"default",label:(0,i18n_build_module._x)("Default","block style"),isDefault:!0},...styles],activeStyle=function getActiveStyle(styles,className){for(const style of new TokenList(className).values()){if(-1===style.indexOf("is-style-"))continue;const potentialStyleName=style.substring(9),activeStyle=(0,lodash.find)(styles,{name:potentialStyleName});if(activeStyle)return activeStyle}return(0,lodash.find)(styles,"isDefault")}(renderedStyles,className);return(0,react.createElement)("div",{className:"block-editor-block-styles"},renderedStyles.map((style=>{var _type$example$viewpor,_type$example;const styleClassName=function replaceActiveStyle(className,activeStyle,newStyle){const list=new TokenList(className);return activeStyle&&list.remove("is-style-"+activeStyle.name),list.add("is-style-"+newStyle.name),list.value}(className,activeStyle,style);return(0,react.createElement)(BlockStyleItem,{genericPreviewBlock,viewportWidth:null!==(_type$example$viewpor=null===(_type$example=type.example)||void 0===_type$example?void 0:_type$example.viewportWidth)&&void 0!==_type$example$viewpor?_type$example$viewpor:500,className,isActive:activeStyle===style,key:style.name,onSelect:()=>{updateBlockAttributes(clientId,{className:styleClassName}),onHoverClassName(null),onSwitch()},onBlur:()=>onHoverClassName(null),onHover:()=>onHoverClassName(styleClassName),style,styleClassName,itemRole})})))};function BlockStylesMenu(_ref){let{hoveredBlock,onSwitch}=_ref;const{name,clientId}=hoveredBlock,[hoveredClassName,setHoveredClassName]=(0,react.useState)(),blockType=(0,use_select.Z)((select=>select(build_module.h).getBlockType(name)),[name]);return(0,react.createElement)(menu_group.Z,{label:(0,i18n_build_module.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},hoveredClassName&&(0,react.createElement)(PreviewBlockPopover,{blocks:blockType&&blockType.example?(0,build_module.Wf)(blockType.name,{attributes:{...blockType.example.attributes,className:hoveredClassName},innerBlocks:blockType.example.innerBlocks}):(0,build_module.Wm)(hoveredBlock,{className:hoveredClassName})}),(0,react.createElement)(block_styles,{clientId,onSwitch,onHoverClassName:setHoveredClassName,itemRole:"menuitem"}))}const getMatchingBlockByName=function(block,selectedBlockName){let consumedBlocks=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const{clientId,name,innerBlocks=[]}=block;if(!consumedBlocks.has(clientId)){if(name===selectedBlockName)return block;for(const innerBlock of innerBlocks){const match=getMatchingBlockByName(innerBlock,selectedBlockName,consumedBlocks);if(match)return match}}},transformMatchingBlock=(match,selectedBlock)=>{const retainedBlockAttributes=((name,attributes)=>{const contentAttributes=(0,build_module.A$)(name,"content");return null!=contentAttributes&&contentAttributes.length?contentAttributes.reduce(((_accumulator,attribute)=>(attributes[attribute]&&(_accumulator[attribute]=attributes[attribute]),_accumulator)),{}):attributes})(selectedBlock.name,selectedBlock.attributes);match.attributes={...match.attributes,...retainedBlockAttributes}},use_transformed_patterns=(patterns,selectedBlocks)=>(0,react.useMemo)((()=>patterns.reduce(((accumulator,_pattern)=>{const transformedBlocks=((selectedBlocks,patternBlocks)=>{const _patternBlocks=patternBlocks.map((block=>(0,build_module.Wm)(block))),consumedBlocks=new Set;for(const selectedBlock of selectedBlocks){let isMatch=!1;for(const patternBlock of _patternBlocks){const match=getMatchingBlockByName(patternBlock,selectedBlock.name,consumedBlocks);if(match){isMatch=!0,consumedBlocks.add(match.clientId),transformMatchingBlock(match,selectedBlock);break}}if(!isMatch)return}return _patternBlocks})(selectedBlocks,_pattern.blocks);return transformedBlocks&&accumulator.push({..._pattern,transformedBlocks}),accumulator}),[])),[patterns,selectedBlocks]);function PreviewPatternsPopover(_ref2){let{patterns,onSelect}=_ref2;return(0,react.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,react.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,react.createElement)(popover.Z,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,react.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,react.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,i18n_build_module.__)("Preview")),(0,react.createElement)(BlockPatternsList,{patterns,onSelect})))))}function BlockPatternsList(_ref3){let{patterns,onSelect}=_ref3;const composite=(0,CompositeState.u)();return(0,react.createElement)(Composite.b,(0,esm_extends.Z)({},composite,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,i18n_build_module.__)("Patterns list")}),patterns.map((pattern=>(0,react.createElement)(pattern_transformations_menu_BlockPattern,{key:pattern.name,pattern,onSelect,composite}))))}function pattern_transformations_menu_BlockPattern(_ref4){let{pattern,onSelect,composite}=_ref4;const baseClassName="block-editor-block-switcher__preview-patterns-container",descriptionId=(0,use_instance_id.Z)(pattern_transformations_menu_BlockPattern,`${baseClassName}-list__item-description`);return(0,react.createElement)("div",{className:`${baseClassName}-list__list-item`,"aria-label":pattern.title,"aria-describedby":pattern.description?descriptionId:void 0},(0,react.createElement)(CompositeItem.A,(0,esm_extends.Z)({role:"option",as:"div"},composite,{className:`${baseClassName}-list__item`,onClick:()=>onSelect(pattern.transformedBlocks)}),(0,react.createElement)(block_preview,{blocks:pattern.transformedBlocks,viewportWidth:pattern.viewportWidth||500}),(0,react.createElement)("div",{className:`${baseClassName}-list__item-title`},pattern.title)),!!pattern.description&&(0,react.createElement)(visually_hidden_component.Z,{id:descriptionId},pattern.description))}const pattern_transformations_menu=function PatternTransformationsMenu(_ref){let{blocks,patterns:statePatterns,onSelect}=_ref;const[showTransforms,setShowTransforms]=(0,react.useState)(!1),patterns=use_transformed_patterns(statePatterns,blocks);return patterns.length?(0,react.createElement)(menu_group.Z,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},showTransforms&&(0,react.createElement)(PreviewPatternsPopover,{patterns,onSelect}),(0,react.createElement)(menu_item.Z,{onClick:event=>{event.preventDefault(),setShowTransforms(!showTransforms)},icon:chevron_right.Z},(0,i18n_build_module.__)("Patterns"))):null},BlockSwitcherDropdownMenu=_ref=>{let{clientIds,blocks}=_ref;const{replaceBlocks}=(0,use_dispatch.Z)(store),blockInformation=useBlockDisplayInformation(blocks[0].clientId),{possibleBlockTransformations,canRemove,hasBlockStyles,icon,blockTitle,patterns}=(0,use_select.Z)((select=>{var _getBlockType2;const{getBlockRootClientId,getBlockTransformItems,__experimentalGetPatternTransformItems}=select(store),{getBlockStyles,getBlockType}=select(build_module.h),{canRemoveBlocks}=select(store),rootClientId=getBlockRootClientId((0,lodash.castArray)(clientIds)[0]),[{name:firstBlockName}]=blocks,_isSingleBlockSelected=1===blocks.length,styles=_isSingleBlockSelected&&getBlockStyles(firstBlockName);let _icon;if(_isSingleBlockSelected)_icon=null==blockInformation?void 0:blockInformation.icon;else{var _getBlockType;_icon=1===(0,lodash.uniq)(blocks.map((_ref2=>{let{name}=_ref2;return name}))).length?null===(_getBlockType=getBlockType(firstBlockName))||void 0===_getBlockType?void 0:_getBlockType.icon:library_stack}return{possibleBlockTransformations:getBlockTransformItems(blocks,rootClientId),canRemove:canRemoveBlocks(clientIds,rootClientId),hasBlockStyles:!(null==styles||!styles.length),icon:_icon,blockTitle:null===(_getBlockType2=getBlockType(firstBlockName))||void 0===_getBlockType2?void 0:_getBlockType2.title,patterns:__experimentalGetPatternTransformItems(blocks,rootClientId)}}),[clientIds,blocks,null==blockInformation?void 0:blockInformation.icon]),isReusable=1===blocks.length&&(0,build_module.vr)(blocks[0]),isTemplate=1===blocks.length&&(0,build_module.zQ)(blocks[0]),hasPossibleBlockTransformations=!!possibleBlockTransformations.length&&canRemove,hasPatternTransformation=!(null==patterns||!patterns.length)&&canRemove;if(!hasBlockStyles&&!hasPossibleBlockTransformations)return(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(toolbar_button.Z,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:blockTitle,icon:(0,react.createElement)(block_icon,{icon,showColors:!0})}));const blockSwitcherLabel=blockTitle,blockSwitcherDescription=1===blocks.length?(0,i18n_build_module.gB)((0,i18n_build_module.__)("%s: Change block type or style"),blockTitle):(0,i18n_build_module.gB)((0,i18n_build_module._n)("Change type of %d block","Change type of %d blocks",blocks.length),blocks.length),showDropDown=hasBlockStyles||hasPossibleBlockTransformations||hasPatternTransformation;return(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(toolbar_item.Z,null,(toggleProps=>(0,react.createElement)(dropdown_menu.Z,{className:"block-editor-block-switcher",label:blockSwitcherLabel,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_icon,{icon,className:"block-editor-block-switcher__toggle",showColors:!0}),(isReusable||isTemplate)&&(0,react.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},(0,react.createElement)(BlockTitle,{clientId:clientIds}))),toggleProps:{describedBy:blockSwitcherDescription,...toggleProps},menuProps:{orientation:"both"}},(_ref3=>{let{onClose}=_ref3;return showDropDown&&(0,react.createElement)("div",{className:"block-editor-block-switcher__container"},hasPatternTransformation&&(0,react.createElement)(pattern_transformations_menu,{blocks,patterns,onSelect:transformedBlocks=>{(transformedBlocks=>{replaceBlocks(clientIds,transformedBlocks)})(transformedBlocks),onClose()}}),hasPossibleBlockTransformations&&(0,react.createElement)(block_transformations_menu,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations,blocks,onSelect:name=>{(name=>{replaceBlocks(clientIds,(0,build_module.m4)(blocks,name))})(name),onClose()}}),hasBlockStyles&&(0,react.createElement)(BlockStylesMenu,{hoveredBlock:blocks[0],onSwitch:onClose}))})))))},block_switcher=_ref4=>{let{clientIds}=_ref4;const blocks=(0,use_select.Z)((select=>select(store).getBlocksByClientId(clientIds)),[clientIds]);return!blocks.length||blocks.some((block=>!block))?null:(0,react.createElement)(BlockSwitcherDropdownMenu,{clientIds,blocks})};var use_copy_to_clipboard=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-copy-to-clipboard/index.js");function useNotifyCopy(){const{getBlockName}=(0,use_select.Z)(store),{getBlockType}=(0,use_select.Z)(build_module.h),{createSuccessNotice}=(0,use_dispatch.Z)(notices_build_module.h);return(0,react.useCallback)(((eventType,selectedBlockClientIds)=>{let notice="";if(1===selectedBlockClientIds.length){var _getBlockType;const clientId=selectedBlockClientIds[0],title=null===(_getBlockType=getBlockType(getBlockName(clientId)))||void 0===_getBlockType?void 0:_getBlockType.title;notice="copy"===eventType?(0,i18n_build_module.gB)((0,i18n_build_module.__)('Copied "%s" to clipboard.'),title):(0,i18n_build_module.gB)((0,i18n_build_module.__)('Moved "%s" to clipboard.'),title)}else notice="copy"===eventType?(0,i18n_build_module.gB)((0,i18n_build_module._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",selectedBlockClientIds.length),selectedBlockClientIds.length):(0,i18n_build_module.gB)((0,i18n_build_module._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",selectedBlockClientIds.length),selectedBlockClientIds.length);createSuccessNotice(notice,{type:"snackbar"})}),[])}function BlockActions(_ref){let{clientIds,children,__experimentalUpdateSelection:updateSelection}=_ref;const{canInsertBlockType,getBlockRootClientId,getBlocksByClientId,canMoveBlocks,canRemoveBlocks}=(0,use_select.Z)(store),{getDefaultBlockName,getGroupingBlockName}=(0,use_select.Z)(build_module.h),blocks=getBlocksByClientId(clientIds),rootClientId=getBlockRootClientId(clientIds[0]),canDuplicate=(0,lodash.every)(blocks,(block=>!!block&&(0,build_module.zb)(block.name,"multiple",!0)&&canInsertBlockType(block.name,rootClientId))),canInsertDefaultBlock=canInsertBlockType(getDefaultBlockName(),rootClientId),canMove=canMoveBlocks(clientIds,rootClientId),canRemove=canRemoveBlocks(clientIds,rootClientId),{removeBlocks,replaceBlocks,duplicateBlocks,insertAfterBlock,insertBeforeBlock,flashBlock,setBlockMovingClientId,setNavigationMode,selectBlock}=(0,use_dispatch.Z)(store),notifyCopy=useNotifyCopy();return children({canDuplicate,canInsertDefaultBlock,canMove,canRemove,rootClientId,blocks,onDuplicate:()=>duplicateBlocks(clientIds,updateSelection),onRemove:()=>removeBlocks(clientIds,updateSelection),onInsertBefore(){insertBeforeBlock((0,lodash.first)((0,lodash.castArray)(clientIds)))},onInsertAfter(){insertAfterBlock((0,lodash.last)((0,lodash.castArray)(clientIds)))},onMoveTo(){setNavigationMode(!0),selectBlock(clientIds[0]),setBlockMovingClientId(clientIds[0])},onGroup(){if(!blocks.length)return;const groupingBlockName=getGroupingBlockName(),newBlocks=(0,build_module.m4)(blocks,groupingBlockName);newBlocks&&replaceBlocks(clientIds,newBlocks)},onUngroup(){if(!blocks.length)return;const innerBlocks=blocks[0].innerBlocks;innerBlocks.length&&replaceBlocks(clientIds,innerBlocks)},onCopy(){const selectedBlockClientIds=blocks.map((_ref2=>{let{clientId}=_ref2;return clientId}));1===blocks.length&&flashBlock(selectedBlockClientIds[0]),notifyCopy("copy",selectedBlockClientIds)}})}const block_mode_toggle=(0,compose.Z)([(0,with_select.Z)(((select,_ref2)=>{let{clientId}=_ref2;const{getBlock,getBlockMode,getSettings}=select(store),block=getBlock(clientId),isCodeEditingEnabled=getSettings().codeEditingEnabled;return{mode:getBlockMode(clientId),blockType:block?(0,build_module.ck)(block.name):null,isCodeEditingEnabled}})),(0,with_dispatch.Z)(((dispatch,_ref3)=>{let{onToggle=lodash.noop,clientId}=_ref3;return{onToggleMode(){dispatch(store).toggleBlockMode(clientId),onToggle()}}}))])((function BlockModeToggle(_ref){let{blockType,mode,onToggleMode,small=!1,isCodeEditingEnabled=!0}=_ref;if(!(0,build_module.zb)(blockType,"html",!0)||!isCodeEditingEnabled)return null;const label="visual"===mode?(0,i18n_build_module.__)("Edit as HTML"):(0,i18n_build_module.__)("Edit visually");return(0,react.createElement)(menu_item.Z,{onClick:onToggleMode},!small&&label)}));const block_html_convert_button=(0,compose.Z)((0,with_select.Z)(((select,_ref)=>{let{clientId}=_ref;const block=select(store).getBlock(clientId);return{block,shouldRender:block&&"core/html"===block.name}})),(0,with_dispatch.Z)(((dispatch,_ref2)=>{let{block}=_ref2;return{onClick:()=>dispatch(store).replaceBlocks(block.clientId,(0,build_module.AF)({HTML:(0,build_module.Jo)(block)}))}})))((function BlockConvertButton(_ref){let{shouldRender,onClick,small}=_ref;if(!shouldRender)return null;const label=(0,i18n_build_module.__)("Convert to Blocks");return(0,react.createElement)(menu_item.Z,{onClick},!small&&label)})),{Fill:__unstableBlockSettingsMenuFirstItem,Slot:block_settings_menu_first_item_Slot}=(0,slot_fill.up)("__unstableBlockSettingsMenuFirstItem");__unstableBlockSettingsMenuFirstItem.Slot=block_settings_menu_first_item_Slot;const block_settings_menu_first_item=__unstableBlockSettingsMenuFirstItem;function ConvertToGroupButton(_ref){let{clientIds,isGroupable,isUngroupable,blocksSelection,groupingBlockName,onClose=()=>{}}=_ref;const{replaceBlocks}=(0,use_dispatch.Z)(store);return isGroupable||isUngroupable?(0,react.createElement)(react.Fragment,null,isGroupable&&(0,react.createElement)(menu_item.Z,{onClick:()=>{(()=>{const newBlocks=(0,build_module.m4)(blocksSelection,groupingBlockName);newBlocks&&replaceBlocks(clientIds,newBlocks)})(),onClose()}},(0,i18n_build_module._x)("Group","verb")),isUngroupable&&(0,react.createElement)(menu_item.Z,{onClick:()=>{(()=>{const innerBlocks=blocksSelection[0].innerBlocks;innerBlocks.length&&replaceBlocks(clientIds,innerBlocks)})(),onClose()}},(0,i18n_build_module._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill,Slot:block_settings_menu_controls_Slot}=(0,slot_fill.up)("BlockSettingsMenuControls");function BlockSettingsMenuControls(_ref2){let{...props}=_ref2;return(0,react.createElement)(style_provider.Z,{document},(0,react.createElement)(Fill,props))}BlockSettingsMenuControls.Slot=_ref=>{let{fillProps,clientIds=null}=_ref;const{selectedBlocks,selectedClientIds}=(0,use_select.Z)((select=>{const{getBlocksByClientId,getSelectedBlockClientIds}=select(store),ids=null!==clientIds?clientIds:getSelectedBlockClientIds();return{selectedBlocks:(0,lodash.map)((0,lodash.compact)(getBlocksByClientId(ids)),(block=>block.name)),selectedClientIds:ids}}),[clientIds]),convertToGroupButtonProps=function useConvertToGroupButtonProps(){const{clientIds,isGroupable,isUngroupable,blocksSelection,groupingBlockName}=(0,use_select.Z)((select=>{var _blocksSelection$;const{getBlockRootClientId,getBlocksByClientId,canInsertBlockType,getSelectedBlockClientIds}=select(store),{getGroupingBlockName}=select(build_module.h),_clientIds=getSelectedBlockClientIds(),_groupingBlockName=getGroupingBlockName(),groupingBlockAvailable=canInsertBlockType(_groupingBlockName,null!=_clientIds&&_clientIds.length?getBlockRootClientId(_clientIds[0]):void 0),_blocksSelection=getBlocksByClientId(_clientIds),isSingleGroupingBlock=1===_blocksSelection.length&&(null===(_blocksSelection$=_blocksSelection[0])||void 0===_blocksSelection$?void 0:_blocksSelection$.name)===_groupingBlockName;return{clientIds:_clientIds,isGroupable:groupingBlockAvailable&&_blocksSelection.length&&!isSingleGroupingBlock,isUngroupable:isSingleGroupingBlock&&!!_blocksSelection[0].innerBlocks.length,blocksSelection:_blocksSelection,groupingBlockName:_groupingBlockName}}),[]);return{clientIds,isGroupable,isUngroupable,blocksSelection,groupingBlockName}}(),{isGroupable,isUngroupable}=convertToGroupButtonProps,showConvertToGroupButton=isGroupable||isUngroupable;return(0,react.createElement)(block_settings_menu_controls_Slot,{fillProps:{...fillProps,selectedBlocks,selectedClientIds}},(fills=>{if((null==fills?void 0:fills.length)>0||showConvertToGroupButton)return(0,react.createElement)(menu_group.Z,null,fills,(0,react.createElement)(ConvertToGroupButton,(0,esm_extends.Z)({},convertToGroupButtonProps,{onClose:null==fillProps?void 0:fillProps.onClose})))}))};const block_settings_menu_controls=BlockSettingsMenuControls,block_settings_dropdown_POPOVER_PROPS={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function CopyMenuItem(_ref){let{blocks,onCopy}=_ref;const ref=(0,use_copy_to_clipboard.Z)((()=>(0,build_module.qC)(blocks)),onCopy);return(0,react.createElement)(menu_item.Z,{ref},(0,i18n_build_module.__)("Copy"))}const block_settings_dropdown=function BlockSettingsDropdown(_ref2){let{clientIds,__experimentalSelectBlock,children,...props}=_ref2;const blockClientIds=(0,lodash.castArray)(clientIds),count=blockClientIds.length,firstBlockClientId=blockClientIds[0],{onlyBlock,title}=(0,use_select.Z)((select=>{var _getBlockType;const{getBlockCount,getBlockName}=select(store),{getBlockType}=select(build_module.h);return{onlyBlock:1===getBlockCount(),title:null===(_getBlockType=getBlockType(getBlockName(firstBlockClientId)))||void 0===_getBlockType?void 0:_getBlockType.title}}),[firstBlockClientId]),shortcuts=(0,use_select.Z)((select=>{const{getShortcutRepresentation}=select(store_store);return{duplicate:getShortcutRepresentation("core/block-editor/duplicate"),remove:getShortcutRepresentation("core/block-editor/remove"),insertAfter:getShortcutRepresentation("core/block-editor/insert-after"),insertBefore:getShortcutRepresentation("core/block-editor/insert-before")}}),[]),updateSelection=(0,react.useCallback)(__experimentalSelectBlock?async clientIdsPromise=>{const ids=await clientIdsPromise;ids&&ids[0]&&__experimentalSelectBlock(ids[0])}:lodash.noop,[__experimentalSelectBlock]),label=(0,i18n_build_module.gB)((0,i18n_build_module.__)("Remove %s"),title),removeBlockLabel=1===count?label:(0,i18n_build_module.__)("Remove blocks");return(0,react.createElement)(BlockActions,{clientIds,__experimentalUpdateSelection:!__experimentalSelectBlock},(_ref3=>{let{canDuplicate,canInsertDefaultBlock,canMove,canRemove,onDuplicate,onInsertAfter,onInsertBefore,onRemove,onCopy,onMoveTo,blocks}=_ref3;return(0,react.createElement)(dropdown_menu.Z,(0,esm_extends.Z)({icon:more_vertical,label:(0,i18n_build_module.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:block_settings_dropdown_POPOVER_PROPS,noIcons:!0},props),(_ref4=>{let{onClose}=_ref4;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(menu_group.Z,null,(0,react.createElement)(block_settings_menu_first_item.Slot,{fillProps:{onClose}}),1===count&&(0,react.createElement)(block_html_convert_button,{clientId:firstBlockClientId}),(0,react.createElement)(CopyMenuItem,{blocks,onCopy}),canDuplicate&&(0,react.createElement)(menu_item.Z,{onClick:(0,lodash.flow)(onClose,onDuplicate,updateSelection),shortcut:shortcuts.duplicate},(0,i18n_build_module.__)("Duplicate")),canInsertDefaultBlock&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)(menu_item.Z,{onClick:(0,lodash.flow)(onClose,onInsertBefore),shortcut:shortcuts.insertBefore},(0,i18n_build_module.__)("Insert before")),(0,react.createElement)(menu_item.Z,{onClick:(0,lodash.flow)(onClose,onInsertAfter),shortcut:shortcuts.insertAfter},(0,i18n_build_module.__)("Insert after"))),canMove&&!onlyBlock&&(0,react.createElement)(menu_item.Z,{onClick:(0,lodash.flow)(onClose,onMoveTo)},(0,i18n_build_module.__)("Move to")),1===count&&(0,react.createElement)(block_mode_toggle,{clientId:firstBlockClientId,onToggle:onClose})),(0,react.createElement)(block_settings_menu_controls.Slot,{fillProps:{onClose},clientIds}),"function"==typeof children?children({onClose}):react.Children.map((child=>(0,react.cloneElement)(child,{onClose}))),canRemove&&(0,react.createElement)(menu_group.Z,null,(0,react.createElement)(menu_item.Z,{onClick:(0,lodash.flow)(onClose,onRemove,updateSelection),shortcut:shortcuts.remove},removeBlockLabel)))}))}))};const block_settings_menu=function BlockSettingsMenu(_ref){let{clientIds,...props}=_ref;return(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(toolbar_item.Z,null,(toggleProps=>(0,react.createElement)(block_settings_dropdown,(0,esm_extends.Z)({clientIds,toggleProps},props)))))};function BlockToolbar(_ref){let{hideDragHandle}=_ref;const{blockClientIds,blockClientId,blockType,hasFixedToolbar,hasReducedUI,isValid,isVisual}=(0,use_select.Z)((select=>{const{getBlockName,getBlockMode,getSelectedBlockClientIds,isBlockValid,getBlockRootClientId,getSettings}=select(store),selectedBlockClientIds=getSelectedBlockClientIds(),selectedBlockClientId=selectedBlockClientIds[0],blockRootClientId=getBlockRootClientId(selectedBlockClientId),settings=getSettings();return{blockClientIds:selectedBlockClientIds,blockClientId:selectedBlockClientId,blockType:selectedBlockClientId&&(0,build_module.ck)(getBlockName(selectedBlockClientId)),hasFixedToolbar:settings.hasFixedToolbar,hasReducedUI:settings.hasReducedUI,rootClientId:blockRootClientId,isValid:selectedBlockClientIds.every((id=>isBlockValid(id))),isVisual:selectedBlockClientIds.every((id=>"visual"===getBlockMode(id)))}}),[]),{toggleBlockHighlight}=(0,use_dispatch.Z)(store),nodeRef=(0,react.useRef)(),{showMovers,gestures:showMoversGestures}=useShowMoversGestures({ref:nodeRef,onChange(isFocused){isFocused&&hasReducedUI||toggleBlockHighlight(blockClientId,isFocused)}}),displayHeaderToolbar=(0,use_viewport_match.Z)("medium","<")||hasFixedToolbar;if(blockType&&!(0,build_module.zb)(blockType,"__experimentalToolbar",!0))return null;const shouldShowMovers=displayHeaderToolbar||showMovers;if(0===blockClientIds.length)return null;const shouldShowVisualToolbar=isValid&&isVisual,isMultiToolbar=blockClientIds.length>1,classes=classnames_default()("block-editor-block-toolbar",shouldShowMovers&&"is-showing-movers");return(0,react.createElement)("div",{className:classes},!isMultiToolbar&&!displayHeaderToolbar&&(0,react.createElement)(BlockParentSelector,{clientIds:blockClientIds}),(0,react.createElement)("div",(0,esm_extends.Z)({ref:nodeRef},showMoversGestures),(shouldShowVisualToolbar||isMultiToolbar)&&(0,react.createElement)(toolbar_group.Z,{className:"block-editor-block-toolbar__block-controls"},(0,react.createElement)(block_switcher,{clientIds:blockClientIds}),(0,react.createElement)(block_mover,{clientIds:blockClientIds,hideDragHandle:hideDragHandle||hasReducedUI}))),shouldShowVisualToolbar&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_controls.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,react.createElement)(block_controls.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,react.createElement)(block_controls.Slot,{className:"block-editor-block-toolbar__slot"}),(0,react.createElement)(block_controls.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,react.createElement)(block_controls.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),(0,react.createElement)(block_settings_menu,{clientIds:blockClientIds}))}const block_contextual_toolbar=function BlockContextualToolbar(_ref){let{focusOnMount,isFixed,...props}=_ref;const{blockType,hasParents,showParentSelector}=(0,use_select.Z)((select=>{const{getBlockName,getBlockParents,getSelectedBlockClientIds}=select(store),{getBlockType}=select(build_module.h),selectedBlockClientIds=getSelectedBlockClientIds(),selectedBlockClientId=selectedBlockClientIds[0],parents=getBlockParents(selectedBlockClientId),parentBlockType=getBlockType(getBlockName(parents[parents.length-1]));return{blockType:selectedBlockClientId&&getBlockType(getBlockName(selectedBlockClientId)),hasParents:parents.length,showParentSelector:(0,build_module.zb)(parentBlockType,"__experimentalParentSelector",!0)&&selectedBlockClientIds.length<=1}}),[]);if(blockType&&!(0,build_module.zb)(blockType,"__experimentalToolbar",!0))return null;const classes=classnames_default()("block-editor-block-contextual-toolbar",{"has-parent":hasParents&&showParentSelector,"is-fixed":isFixed});return(0,react.createElement)(navigable_toolbar,(0,esm_extends.Z)({focusOnMount,className:classes,"aria-label":(0,i18n_build_module.__)("Block tools")},props),(0,react.createElement)(BlockToolbar,{hideDragHandle:isFixed}))};function block_popover_selector(select){const{isNavigationMode,isMultiSelecting,hasMultiSelection,isTyping,isCaretWithinFormattedText,getSettings,getLastMultiSelectedBlockClientId}=select(store);return{isNavigationMode:isNavigationMode(),isMultiSelecting:isMultiSelecting(),isTyping:isTyping(),isCaretWithinFormattedText:isCaretWithinFormattedText(),hasMultiSelection:hasMultiSelection(),hasFixedToolbar:getSettings().hasFixedToolbar,lastClientId:getLastMultiSelectedBlockClientId()}}function BlockPopover(_ref){let{clientId,rootClientId,isValid,isEmptyDefaultBlock,capturingClientId,__unstablePopoverSlot,__unstableContentRef}=_ref;const{isNavigationMode,isMultiSelecting,isTyping,isCaretWithinFormattedText,hasMultiSelection,hasFixedToolbar,lastClientId}=(0,use_select.Z)(block_popover_selector,[]),isInsertionPointVisible=(0,use_select.Z)((select=>{const{isBlockInsertionPointVisible,getBlockInsertionPoint,getBlockOrder}=select(store);if(!isBlockInsertionPointVisible())return!1;const insertionPoint=getBlockInsertionPoint();return getBlockOrder(insertionPoint.rootClientId)[insertionPoint.index]===clientId}),[clientId]),isLargeViewport=(0,use_viewport_match.Z)("medium"),[isToolbarForced,setIsToolbarForced]=(0,react.useState)(!1),[isInserterShown,setIsInserterShown]=(0,react.useState)(!1),{stopTyping}=(0,use_dispatch.Z)(store),showEmptyBlockSideInserter=!isTyping&&!isNavigationMode&&isEmptyDefaultBlock&&isValid,shouldShowBreadcrumb=isNavigationMode,shouldShowContextualToolbar=!isNavigationMode&&!hasFixedToolbar&&isLargeViewport&&!showEmptyBlockSideInserter&&!isMultiSelecting&&(!isTyping||isCaretWithinFormattedText);useShortcut("core/block-editor/focus-toolbar",(()=>{setIsToolbarForced(!0),stopTyping(!0)}),{isDisabled:!!(isNavigationMode||shouldShowContextualToolbar||hasFixedToolbar||isEmptyDefaultBlock)}),(0,react.useEffect)((()=>{shouldShowContextualToolbar||setIsToolbarForced(!1)}),[shouldShowContextualToolbar]);const initialToolbarItemIndexRef=(0,react.useRef)(),selectedElement=useBlockElement(clientId),lastSelectedElement=useBlockElement(lastClientId),capturingElement=useBlockElement(capturingClientId),popoverScrollRef=usePopoverScroll(__unstableContentRef);if(!(shouldShowBreadcrumb||shouldShowContextualToolbar||isToolbarForced||showEmptyBlockSideInserter))return null;let node=selectedElement;if(!node)return null;capturingClientId&&(node=capturingElement);let anchorRef=node;if(hasMultiSelection){if(!lastSelectedElement)return null;anchorRef={top:node,bottom:lastSelectedElement}}const popoverPosition=showEmptyBlockSideInserter?"top left right":"top right left",{ownerDocument}=node,stickyBoundaryElement=showEmptyBlockSideInserter?void 0:ownerDocument.defaultView.frameElement||getScrollContainer(node)||ownerDocument.body;return(0,react.createElement)(popover.Z,{ref:popoverScrollRef,noArrow:!0,animate:!1,position:popoverPosition,focusOnMount:!1,anchorRef,className:classnames_default()("block-editor-block-list__block-popover",{"is-insertion-point-visible":isInsertionPointVisible}),__unstableStickyBoundaryElement:stickyBoundaryElement,__unstableSlotName:__unstablePopoverSlot||null,__unstableBoundaryParent:!0,__unstableObserveElement:node,shouldAnchorIncludePadding:!0,__unstableEditorCanvasWrapper:null==__unstableContentRef?void 0:__unstableContentRef.current},(shouldShowContextualToolbar||isToolbarForced)&&(0,react.createElement)("div",{onFocus:function onFocus(){setIsInserterShown(!0)},onBlur:function onBlur(){setIsInserterShown(!1)},tabIndex:-1,className:classnames_default()("block-editor-block-list__block-popover-inserter",{"is-visible":isInserterShown})},(0,react.createElement)(inserter,{clientId,rootClientId,__experimentalIsQuick:!0})),(shouldShowContextualToolbar||isToolbarForced)&&(0,react.createElement)(block_contextual_toolbar,{focusOnMount:isToolbarForced,__experimentalInitialIndex:initialToolbarItemIndexRef.current,__experimentalOnIndexChange:index=>{initialToolbarItemIndexRef.current=index},key:clientId}),shouldShowBreadcrumb&&(0,react.createElement)(block_selection_button,{clientId,rootClientId,blockElement:node}),showEmptyBlockSideInserter&&(0,react.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},(0,react.createElement)(inserter,{position:"bottom right",rootClientId,clientId,__experimentalIsQuick:!0})))}function wrapperSelector(select){const{getSelectedBlockClientId,getFirstMultiSelectedBlockClientId,getBlockRootClientId,getBlock,getBlockParents,__experimentalGetBlockListSettingsForBlocks}=select(store),clientId=getSelectedBlockClientId()||getFirstMultiSelectedBlockClientId();if(!clientId)return;const{name,attributes={},isValid}=getBlock(clientId)||{},blockParentsClientIds=getBlockParents(clientId),parentBlockListSettings=__experimentalGetBlockListSettingsForBlocks(blockParentsClientIds),capturingClientId=(0,lodash.find)(blockParentsClientIds,(parentClientId=>{var _parentBlockListSetti;return null===(_parentBlockListSetti=parentBlockListSettings[parentClientId])||void 0===_parentBlockListSetti?void 0:_parentBlockListSetti.__experimentalCaptureToolbars}));return{clientId,rootClientId:getBlockRootClientId(clientId),name,isValid,isEmptyDefaultBlock:name&&(0,build_module.ZP)({name,attributes}),capturingClientId}}function WrappedBlockPopover(_ref2){let{__unstablePopoverSlot,__unstableContentRef}=_ref2;const selected=(0,use_select.Z)(wrapperSelector,[]);if(!selected)return null;const{clientId,rootClientId,name,isValid,isEmptyDefaultBlock,capturingClientId}=selected;return name?(0,react.createElement)(BlockPopover,{clientId,rootClientId,isValid,isEmptyDefaultBlock,capturingClientId,__unstablePopoverSlot,__unstableContentRef}):null}function BlockToolsBackCompat(_ref){let{children}=_ref;const openRef=(0,react.useContext)(InsertionPointOpenRef),isDisabled=(0,react.useContext)(disabled.Z.Context);return openRef||isDisabled?children:((0,deprecated_build_module.Z)('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools"}),(0,react.createElement)(InsertionPoint,{__unstablePopoverSlot:"block-toolbar"},(0,react.createElement)(WrappedBlockPopover,{__unstablePopoverSlot:"block-toolbar"}),children))}const with_client_id=(0,create_higher_order_component.Z)((WrappedComponent=>props=>{const{clientId}=useBlockEditContext();return(0,react.createElement)(WrappedComponent,(0,esm_extends.Z)({},props,{clientId}))}),"withClientId"),inner_blocks_button_block_appender=with_client_id((_ref=>{let{clientId,showSeparator,isFloating,onAddBlock,isToggle}=_ref;return(0,react.createElement)(button_block_appender,{className:classnames_default()({"block-list-appender__toggle":isToggle}),rootClientId:clientId,showSeparator,isFloating,onAddBlock})})),inner_blocks_default_block_appender=(0,compose.Z)([with_client_id,(0,with_select.Z)(((select,_ref2)=>{let{clientId}=_ref2;const{getBlockOrder}=select(store),blockClientIds=getBlockOrder(clientId);return{lastBlockClientId:(0,lodash.last)(blockClientIds)}}))])((_ref=>{let{clientId,lastBlockClientId}=_ref;return(0,react.createElement)(default_block_appender,{rootClientId:clientId,lastBlockClientId})}));var is_shallow_equal_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+is-shallow-equal@4.2.1/node_modules/@wordpress/is-shallow-equal/build-module/index.js");const BLOCK_CONTEXT_CACHE=new WeakMap;var use_memo_one_esm=__webpack_require__("../../../node_modules/.pnpm/use-memo-one@1.1.2_react@17.0.2/node_modules/use-memo-one/dist/use-memo-one.esm.js");function useThrottle(fn,wait,options){const throttled=(0,use_memo_one_esm.Pr)((()=>(0,lodash.throttle)(fn,wait,options)),[fn,wait,options]);return(0,react.useEffect)((()=>()=>throttled.cancel()),[throttled]),throttled}function useFreshRef(value){const ref=(0,react.useRef)();return ref.current=value,ref}function useDropZone(_ref){let{isDisabled,onDrop:_onDrop,onDragStart:_onDragStart,onDragEnter:_onDragEnter,onDragLeave:_onDragLeave,onDragEnd:_onDragEnd,onDragOver:_onDragOver}=_ref;const onDropRef=useFreshRef(_onDrop),onDragStartRef=useFreshRef(_onDragStart),onDragEnterRef=useFreshRef(_onDragEnter),onDragLeaveRef=useFreshRef(_onDragLeave),onDragEndRef=useFreshRef(_onDragEnd),onDragOverRef=useFreshRef(_onDragOver);return(0,use_ref_effect.Z)((element=>{if(isDisabled)return;let isDragging=!1;const{ownerDocument}=element;function maybeDragStart(event){isDragging||(isDragging=!0,ownerDocument.removeEventListener("dragenter",maybeDragStart),ownerDocument.addEventListener("dragend",maybeDragEnd),ownerDocument.addEventListener("mousemove",maybeDragEnd),onDragStartRef.current&&onDragStartRef.current(event))}function onDragEnter(event){event.preventDefault(),element.contains(event.relatedTarget)||onDragEnterRef.current&&onDragEnterRef.current(event)}function onDragOver(event){!event.defaultPrevented&&onDragOverRef.current&&onDragOverRef.current(event),event.preventDefault()}function onDragLeave(event){(function isElementInZone(targetToCheck){const{defaultView}=ownerDocument;if(!(targetToCheck&&defaultView&&targetToCheck instanceof defaultView.HTMLElement&&element.contains(targetToCheck)))return!1;let elementToCheck=targetToCheck;do{if(elementToCheck.dataset.isDropZone)return elementToCheck===element}while(elementToCheck=elementToCheck.parentElement);return!1})(event.relatedTarget)||onDragLeaveRef.current&&onDragLeaveRef.current(event)}function onDrop(event){event.defaultPrevented||(event.preventDefault(),event.dataTransfer&&event.dataTransfer.files.length,onDropRef.current&&onDropRef.current(event),maybeDragEnd(event))}function maybeDragEnd(event){isDragging&&(isDragging=!1,ownerDocument.addEventListener("dragenter",maybeDragStart),ownerDocument.removeEventListener("dragend",maybeDragEnd),ownerDocument.removeEventListener("mousemove",maybeDragEnd),onDragEndRef.current&&onDragEndRef.current(event))}return element.dataset.isDropZone="true",element.addEventListener("drop",onDrop),element.addEventListener("dragenter",onDragEnter),element.addEventListener("dragover",onDragOver),element.addEventListener("dragleave",onDragLeave),ownerDocument.addEventListener("dragenter",maybeDragStart),()=>{delete element.dataset.isDropZone,element.removeEventListener("drop",onDrop),element.removeEventListener("dragenter",onDragEnter),element.removeEventListener("dragover",onDragOver),element.removeEventListener("dragleave",onDragLeave),ownerDocument.removeEventListener("dragend",maybeDragEnd),ownerDocument.removeEventListener("mousemove",maybeDragEnd),ownerDocument.addEventListener("dragenter",maybeDragStart)}}),[isDisabled])}function getFilesFromDataTransfer(dataTransfer){const files=Array.from(dataTransfer.files);return Array.from(dataTransfer.items).forEach((item=>{const file=item.getAsFile();file&&!files.find((_ref=>{let{name,type,size}=_ref;return name===file.name&&type===file.type&&size===file.size}))&&files.push(file)})),files}function onBlockDrop(targetRootClientId,targetBlockIndex,getBlockIndex,getClientIdsOfDescendants,moveBlocksToPosition,insertBlocks,clearSelectedBlock){return event=>{const{srcRootClientId:sourceRootClientId,srcClientIds:sourceClientIds,type:dropType,blocks}=function parseDropEvent(event){let result={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!event.dataTransfer)return result;try{result=Object.assign(result,JSON.parse(event.dataTransfer.getData("wp-blocks")))}catch(err){return result}return result}(event);if("inserter"===dropType){clearSelectedBlock();const blocksToInsert=blocks.map((block=>(0,build_module.Wm)(block)));insertBlocks(blocksToInsert,targetBlockIndex,targetRootClientId,!0,null)}if("block"===dropType){const sourceBlockIndex=getBlockIndex(sourceClientIds[0],sourceRootClientId);if(sourceRootClientId===targetRootClientId&&sourceBlockIndex===targetBlockIndex)return;if(sourceClientIds.includes(targetRootClientId)||getClientIdsOfDescendants(sourceClientIds).some((id=>id===targetRootClientId)))return;const isAtSameLevel=sourceRootClientId===targetRootClientId,draggedBlockCount=sourceClientIds.length;moveBlocksToPosition(sourceClientIds,sourceRootClientId,targetRootClientId,isAtSameLevel&&sourceBlockIndexselect(store).getSettings().mediaUpload),[]),{canInsertBlockType,getBlockIndex,getClientIdsOfDescendants}=(0,use_select.Z)(store),{insertBlocks,moveBlocksToPosition,updateBlockAttributes,clearSelectedBlock}=(0,use_dispatch.Z)(store),_onDrop=onBlockDrop(targetRootClientId,targetBlockIndex,getBlockIndex,getClientIdsOfDescendants,moveBlocksToPosition,insertBlocks,clearSelectedBlock),_onFilesDrop=function onFilesDrop(targetRootClientId,targetBlockIndex,hasUploadPermissions,updateBlockAttributes,canInsertBlockType,insertBlocks){return files=>{if(!hasUploadPermissions)return;const transformation=(0,build_module.MC)((0,build_module.Xn)("from"),(transform=>"files"===transform.type&&canInsertBlockType(transform.blockName,targetRootClientId)&&transform.isMatch(files)));if(transformation){const blocks=transformation.transform(files,updateBlockAttributes);insertBlocks(blocks,targetBlockIndex,targetRootClientId)}}}(targetRootClientId,targetBlockIndex,hasUploadPermissions,updateBlockAttributes,canInsertBlockType,insertBlocks),_onHTMLDrop=function onHTMLDrop(targetRootClientId,targetBlockIndex,insertBlocks){return HTML=>{const blocks=(0,build_module.ag)({HTML,mode:"BLOCKS"});blocks.length&&insertBlocks(blocks,targetBlockIndex,targetRootClientId)}}(targetRootClientId,targetBlockIndex,insertBlocks);return event=>{const files=getFilesFromDataTransfer(event.dataTransfer),html=event.dataTransfer.getData("text/html");files.length?_onFilesDrop(files):html?_onHTMLDrop(html):_onDrop(event)}}function getDistanceFromPointToEdge(point,rect,edge){const isHorizontal="top"===edge||"bottom"===edge,{x,y}=point,pointLateralPosition=isHorizontal?x:y,pointForwardPosition=isHorizontal?y:x,edgeStart=isHorizontal?rect.left:rect.top,edgeEnd=isHorizontal?rect.right:rect.bottom,edgeForwardPosition=rect[edge];let edgeLateralPosition;return edgeLateralPosition=pointLateralPosition>=edgeStart&&pointLateralPosition<=edgeEnd?pointLateralPosition:pointLateralPosition2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return allowedEdges.forEach((edge=>{const distance=getDistanceFromPointToEdge(point,rect,edge);(void 0===candidateDistance||distance{const rect=element.getBoundingClientRect(),[distance,edge]=getDistanceToNearestEdge(position,rect,allowedEdges);if(void 0===candidateDistance||distance0&&void 0!==arguments[0]?arguments[0]:{};const[targetBlockIndex,setTargetBlockIndex]=(0,react.useState)(null),isLockedAll=(0,use_select.Z)((select=>{const{getTemplateLock}=select(store);return"all"===getTemplateLock(targetRootClientId)}),[targetRootClientId]),{getBlockListSettings}=(0,use_select.Z)(store),{showInsertionPoint,hideInsertionPoint}=(0,use_dispatch.Z)(store),onBlockDrop=useOnBlockDrop(targetRootClientId,targetBlockIndex),throttled=useThrottle((0,react.useCallback)(((event,currentTarget)=>{var _getBlockListSettings;const targetIndex=getNearestBlockIndex(Array.from(currentTarget.children).filter((element=>element.classList.contains("wp-block"))),{x:event.clientX,y:event.clientY},null===(_getBlockListSettings=getBlockListSettings(targetRootClientId))||void 0===_getBlockListSettings?void 0:_getBlockListSettings.orientation);setTargetBlockIndex(void 0===targetIndex?0:targetIndex),null!==targetIndex&&showInsertionPoint(targetRootClientId,targetIndex)}),[]),200);return useDropZone({isDisabled:isLockedAll,onDrop:onBlockDrop,onDragOver(event){throttled(event,event.currentTarget)},onDragLeave(){throttled.cancel(),hideInsertionPoint(),setTargetBlockIndex(null)},onDragEnd(){throttled.cancel(),hideInsertionPoint(),setTargetBlockIndex(null)}})}function UncontrolledInnerBlocks(props){const{clientId,allowedBlocks,__experimentalDefaultBlock,__experimentalDirectInsert,template,templateLock,wrapperRef,templateInsertUpdatesSelection,__experimentalCaptureToolbars:captureToolbars,__experimentalAppenderTagName,renderAppender,orientation,placeholder,__experimentalLayout}=props;!function useNestedSettingsUpdate(clientId,allowedBlocks,__experimentalDefaultBlock,__experimentalDirectInsert,templateLock,captureToolbars,orientation,layout){const{updateBlockListSettings}=(0,use_dispatch.Z)(store),{blockListSettings,parentLock}=(0,use_select.Z)((select=>{const rootClientId=select(store).getBlockRootClientId(clientId);return{blockListSettings:select(store).getBlockListSettings(clientId),parentLock:select(store).getTemplateLock(rootClientId)}}),[clientId]),_allowedBlocks=(0,react.useMemo)((()=>allowedBlocks),allowedBlocks);(0,react.useLayoutEffect)((()=>{const newSettings={allowedBlocks:_allowedBlocks,templateLock:void 0===templateLock?parentLock:templateLock};if(void 0!==captureToolbars&&(newSettings.__experimentalCaptureToolbars=captureToolbars),void 0!==orientation)newSettings.orientation=orientation;else{const layoutType=getLayoutType(null==layout?void 0:layout.type);newSettings.orientation=layoutType.getOrientation(layout)}void 0!==__experimentalDefaultBlock&&(newSettings.__experimentalDefaultBlock=__experimentalDefaultBlock),void 0!==__experimentalDirectInsert&&(newSettings.__experimentalDirectInsert=__experimentalDirectInsert),(0,is_shallow_equal_build_module.ZP)(blockListSettings,newSettings)||updateBlockListSettings(clientId,newSettings)}),[clientId,blockListSettings,_allowedBlocks,__experimentalDefaultBlock,__experimentalDirectInsert,templateLock,parentLock,captureToolbars,orientation,updateBlockListSettings,layout])}(clientId,allowedBlocks,__experimentalDefaultBlock,__experimentalDirectInsert,templateLock,captureToolbars,orientation,__experimentalLayout),function useInnerBlockTemplateSync(clientId,template,templateLock,templateInsertUpdatesSelection){const{getSelectedBlocksInitialCaretPosition}=(0,use_select.Z)(store),{replaceInnerBlocks}=(0,use_dispatch.Z)(store),innerBlocks=(0,use_select.Z)((select=>select(store).getBlocks(clientId)),[clientId]),existingTemplate=(0,react.useRef)(null);(0,react.useLayoutEffect)((()=>{if((0===innerBlocks.length||"all"===templateLock)&&!(0,lodash.isEqual)(template,existingTemplate.current)){existingTemplate.current=template;const nextBlocks=(0,build_module.fw)(innerBlocks,template);(0,lodash.isEqual)(nextBlocks,innerBlocks)||replaceInnerBlocks(clientId,nextBlocks,0===innerBlocks.length&&templateInsertUpdatesSelection&&0!==nextBlocks.length,getSelectedBlocksInitialCaretPosition())}}),[innerBlocks,template,templateLock,clientId])}(clientId,template,templateLock,templateInsertUpdatesSelection);const context=(0,use_select.Z)((select=>{const block=select(store).getBlock(clientId),blockType=(0,build_module.ck)(block.name);if(blockType&&blockType.providesContext)return function getBlockContext(attributes,blockType){BLOCK_CONTEXT_CACHE.has(blockType)||BLOCK_CONTEXT_CACHE.set(blockType,new WeakMap);const blockTypeCache=BLOCK_CONTEXT_CACHE.get(blockType);if(!blockTypeCache.has(attributes)){const context=(0,lodash.mapValues)(blockType.providesContext,(attributeName=>attributes[attributeName]));blockTypeCache.set(attributes,context)}return blockTypeCache.get(attributes)}(block.attributes,blockType)}),[clientId]);return(0,react.createElement)(BlockContextProvider,{value:context},(0,react.createElement)(BlockListItems,{rootClientId:clientId,renderAppender,__experimentalAppenderTagName,__experimentalLayout,wrapperRef,placeholder}))}function ControlledInnerBlocks(props){return useBlockSync(props),(0,react.createElement)(UncontrolledInnerBlocks,props)}const ForwardedInnerBlocks=(0,react.forwardRef)(((props,ref)=>{const innerBlocksProps=useInnerBlocksProps({ref},props);return(0,react.createElement)("div",{className:"block-editor-inner-blocks"},(0,react.createElement)("div",innerBlocksProps))}));function useInnerBlocksProps(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId}=useBlockEditContext(),isSmallScreen=(0,use_viewport_match.Z)("medium","<"),{__experimentalCaptureToolbars,hasOverlay}=(0,use_select.Z)((select=>{if(!clientId)return{};const{getBlockName,isBlockSelected,hasSelectedInnerBlock,isNavigationMode}=select(store),blockName=getBlockName(clientId),enableClickThrough=isNavigationMode()||isSmallScreen;return{__experimentalCaptureToolbars:select(build_module.h).hasBlockSupport(blockName,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==blockName&&!isBlockSelected(clientId)&&!hasSelectedInnerBlock(clientId,!0)&&enableClickThrough}}),[clientId,isSmallScreen]),ref=(0,use_merge_refs.Z)([props.ref,useBlockDropZone({rootClientId:clientId})]),innerBlocksProps={__experimentalCaptureToolbars,...options},InnerBlocks=innerBlocksProps.value&&innerBlocksProps.onChange?ControlledInnerBlocks:UncontrolledInnerBlocks;return{...props,ref,className:classnames_default()(props.className,"block-editor-block-list__layout",{"has-overlay":hasOverlay}),children:clientId?(0,react.createElement)(InnerBlocks,(0,esm_extends.Z)({},innerBlocksProps,{clientId})):(0,react.createElement)(BlockListItems,options)}}useInnerBlocksProps.save=build_module.cZ,ForwardedInnerBlocks.DefaultBlockAppender=inner_blocks_default_block_appender,ForwardedInnerBlocks.ButtonBlockAppender=inner_blocks_button_block_appender,ForwardedInnerBlocks.Content=()=>useInnerBlocksProps.save().children;const inner_blocks=ForwardedInnerBlocks,elementContext=(0,react.createContext)(),IntersectionObserver=(0,react.createContext)();function Root(_ref){let{className,...settings}=_ref;const[element,setElement]=(0,react.useState)(),isLargeViewport=(0,use_viewport_match.Z)("medium"),{isOutlineMode,isFocusMode,isNavigationMode}=(0,use_select.Z)((select=>{const{getSettings,isNavigationMode:_isNavigationMode}=select(store),{outlineMode,focusMode}=getSettings();return{isOutlineMode:outlineMode,isFocusMode:focusMode,isNavigationMode:_isNavigationMode()}}),[]),innerBlocksProps=useInnerBlocksProps({ref:(0,use_merge_refs.Z)([useBlockSelectionClearer(),useInBetweenInserter(),setElement]),className:classnames_default()("is-root-container",className,{"is-outline-mode":isOutlineMode,"is-focus-mode":isFocusMode&&isLargeViewport,"is-navigate-mode":isNavigationMode})},settings);return(0,react.createElement)(elementContext.Provider,{value:element},(0,react.createElement)("div",innerBlocksProps))}function BlockList(settings){return function usePreParsePatterns(){const patterns=(0,use_select.Z)((_select=>_select(store).getSettings().__experimentalBlockPatterns),[]);return(0,react.useEffect)((()=>{if(null==patterns||!patterns.length)return;let handle,index=-1;const callback=()=>{index++,index>=patterns.length||((0,data_build_module.Ys)(store).__experimentalGetParsedPattern(patterns[index].name),handle=requestIdleCallback(callback))};return handle=requestIdleCallback(callback),()=>cancelIdleCallback(handle)}),[patterns]),null}(),(0,react.createElement)(BlockToolsBackCompat,null,(0,react.createElement)(Provider,{value:DEFAULT_BLOCK_EDIT_CONTEXT},(0,react.createElement)(Root,settings)))}function Items(_ref2){let{placeholder,rootClientId,renderAppender,__experimentalAppenderTagName,__experimentalLayout:layout=defaultLayout}=_ref2;const[intersectingBlocks,setIntersectingBlocks]=(0,react.useState)(new Set),intersectionObserver=(0,react.useMemo)((()=>{const{IntersectionObserver:Observer}=window;if(Observer)return new Observer((entries=>{setIntersectingBlocks((oldIntersectingBlocks=>{const newIntersectingBlocks=new Set(oldIntersectingBlocks);for(const entry of entries){const clientId=entry.target.getAttribute("data-block");newIntersectingBlocks[entry.isIntersecting?"add":"delete"](clientId)}return newIntersectingBlocks}))}))}),[setIntersectingBlocks]),{order,selectedBlocks}=(0,use_select.Z)((select=>{const{getBlockOrder,getSelectedBlockClientIds}=select(store);return{order:getBlockOrder(rootClientId),selectedBlocks:getSelectedBlockClientIds()}}),[rootClientId]);return(0,react.createElement)(LayoutProvider,{value:layout},(0,react.createElement)(IntersectionObserver.Provider,{value:intersectionObserver},order.map((clientId=>(0,react.createElement)(async_mode_provider_context.ZP,{key:clientId,value:!intersectingBlocks.has(clientId)&&!selectedBlocks.includes(clientId)},(0,react.createElement)(block,{rootClientId,clientId}))))),order.length<1&&placeholder,(0,react.createElement)(block_list_appender,{tagName:__experimentalAppenderTagName,rootClientId,renderAppender}))}function BlockListItems(props){return(0,react.createElement)(async_mode_provider_context.ZP,{value:!1},(0,react.createElement)(Items,props))}BlockList.__unstableElementContext=elementContext;var base_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/base-control/index.js");const ConnectedVStack=(0,context_connect.Iq)((function VStack(props,forwardedRef){const vStackProps=function useVStack(props){const{expanded=!1,...otherProps}=(0,use_context_system.y)(props,"VStack");return useHStack({direction:"column",expanded,...otherProps})}(props);return(0,react.createElement)(view_component.Z,(0,esm_extends.Z)({},vStackProps,{ref:forwardedRef}))}),"VStack"),v_stack_component=ConnectedVStack;var toggle_group_control_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control/component.js"),toggle_group_control_option_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toggle-group-control/toggle-group-control-option/component.js"),library_settings=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/settings.js"),space=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/ui/utils/space.js");const isDefined=o=>null!=o;const spacer_component=(0,context_connect.Iq)((function Spacer(props,forwardedRef){const spacerProps=function useSpacer(props){const{className,margin,marginBottom=2,marginLeft,marginRight,marginTop,marginX,marginY,padding,paddingBottom,paddingLeft,paddingRight,paddingTop,paddingX,paddingY,...otherProps}=(0,use_context_system.y)(props,"Spacer");return{...otherProps,className:(0,use_cx.I)()(isDefined(margin)&&(0,emotion_react_browser_esm.iv)("margin:",(0,space.D)(margin),";",""),isDefined(marginY)&&(0,emotion_react_browser_esm.iv)("margin-bottom:",(0,space.D)(marginY),";margin-top:",(0,space.D)(marginY),";",""),isDefined(marginX)&&(0,emotion_react_browser_esm.iv)("margin-left:",(0,space.D)(marginX),";margin-right:",(0,space.D)(marginX),";",""),isDefined(marginTop)&&(0,emotion_react_browser_esm.iv)("margin-top:",(0,space.D)(marginTop),";",""),isDefined(marginBottom)&&(0,emotion_react_browser_esm.iv)("margin-bottom:",(0,space.D)(marginBottom),";",""),isDefined(marginLeft)&&(0,emotion_react_browser_esm.iv)("margin-left:",(0,space.D)(marginLeft),";",""),isDefined(marginRight)&&(0,emotion_react_browser_esm.iv)("margin-right:",(0,space.D)(marginRight),";",""),isDefined(padding)&&(0,emotion_react_browser_esm.iv)("padding:",(0,space.D)(padding),";",""),isDefined(paddingY)&&(0,emotion_react_browser_esm.iv)("padding-bottom:",(0,space.D)(paddingY),";padding-top:",(0,space.D)(paddingY),";",""),isDefined(paddingX)&&(0,emotion_react_browser_esm.iv)("padding-left:",(0,space.D)(paddingX),";padding-right:",(0,space.D)(paddingX),";",""),isDefined(paddingTop)&&(0,emotion_react_browser_esm.iv)("padding-top:",(0,space.D)(paddingTop),";",""),isDefined(paddingBottom)&&(0,emotion_react_browser_esm.iv)("padding-bottom:",(0,space.D)(paddingBottom),";",""),isDefined(paddingLeft)&&(0,emotion_react_browser_esm.iv)("padding-left:",(0,space.D)(paddingLeft),";",""),isDefined(paddingRight)&&(0,emotion_react_browser_esm.iv)("padding-right:",(0,space.D)(paddingRight),";",""),className)}}(props);return(0,react.createElement)(view_component.Z,(0,esm_extends.Z)({},spacerProps,{ref:forwardedRef}))}),"Spacer");var emotion_styled_base_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+styled@11.3.0_91407f9eb4eb8e1117ab61d4d046dc59/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),number_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/number-control/index.js"),range_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/range-control/index.js"),base_control_styles=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/base-control/styles/base-control-styles.js"),input_control_styles=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/input-control/styles/input-control-styles.js"),input_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/input-control/index.js");const NumberControlWrapper=(0,emotion_styled_base_browser_esm.Z)(number_control.Z,{target:"ez9hsf46"})(input_control_styles.W2,"{width:",(0,space.D)(24),";}"),SelectControl=(0,emotion_styled_base_browser_esm.Z)(select_control.Z,{target:"ez9hsf45"})("margin-left:",(0,space.D)(-2),";width:5em;",input_control_styles.Kg,"{display:none;}"),RangeControl=(0,emotion_styled_base_browser_esm.Z)(range_control.Z,{target:"ez9hsf44"})("flex:1;",base_control_styles.ob,"{margin-bottom:0;}"),inputHeightStyle=`\n&&& ${input_control_styles.II} {\n\theight: 40px;\n}`,interactiveHueStyles=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${(0,space.D)(2)} );\n\tmargin-left: ${(0,space.D)(1)};\n}`,AuxiliaryColorArtefactWrapper=(0,emotion_styled_base_browser_esm.Z)("div",{target:"ez9hsf43"})("padding:",(0,space.D)(2)," ",(0,space.D)(4),";"),ColorfulWrapper=(0,emotion_styled_base_browser_esm.Z)("div",{target:"ez9hsf42"})("width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",(0,space.D)(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",(0,space.D)(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 ",config_values.Z.borderWidthFocus," #fff;}",interactiveHueStyles," ",base_control_styles.ob,"{margin-bottom:0;}",inputHeightStyle,";"),DetailsControlButton=(0,emotion_styled_base_browser_esm.Z)(build_module_button.Z,{target:"ez9hsf41"})("&&&&&{min-width:",(0,space.D)(6),";padding:0;}"),ColorHexInputControl=(0,emotion_styled_base_browser_esm.Z)(input_control.Z,{target:"ez9hsf40"})({name:"1287a6j",styles:"width:8em"});var text_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/text/component.js"),shallowEqual=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/shallowEqual.js"),dom=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/dom.js"),lib_popper=__webpack_require__("../../../node_modules/.pnpm/@popperjs+core@2.10.2/node_modules/@popperjs/core/lib/popper.js"),IdState=__webpack_require__("../../../node_modules/.pnpm/reakit@1.3.10_react@17.0.2/node_modules/reakit/es/Id/IdState.js");function useDisclosureState(initialState){void 0===initialState&&(initialState={});var _useSealedState=(0,useSealedState.T)(initialState),_useSealedState$visib=_useSealedState.visible,initialVisible=void 0!==_useSealedState$visib&&_useSealedState$visib,_useSealedState$anima=_useSealedState.animated,initialAnimated=void 0!==_useSealedState$anima&&_useSealedState$anima,sealed=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_useSealedState,["visible","animated"]),id=(0,IdState.C)(sealed),_React$useState=(0,react.useState)(initialVisible),visible=_React$useState[0],setVisible=_React$useState[1],_React$useState2=(0,react.useState)(initialAnimated),animated=_React$useState2[0],setAnimated=_React$useState2[1],_React$useState3=(0,react.useState)(!1),animating=_React$useState3[0],setAnimating=_React$useState3[1],lastVisible=function useLastValue(value){var lastValue=(0,react.useRef)(null);return(0,useIsomorphicEffect.Y)((function(){lastValue.current=value}),[value]),lastValue}(visible),visibleHasChanged=null!=lastVisible.current&&lastVisible.current!==visible;animated&&!animating&&visibleHasChanged&&setAnimating(!0),(0,react.useEffect)((function(){if("number"==typeof animated&&animating){var timeout=setTimeout((function(){return setAnimating(!1)}),animated);return function(){clearTimeout(timeout)}}return function(){}}),[animated,animating]);var show=(0,react.useCallback)((function(){return setVisible(!0)}),[]),hide=(0,react.useCallback)((function(){return setVisible(!1)}),[]),toggle=(0,react.useCallback)((function(){return setVisible((function(v){return!v}))}),[]),stopAnimation=(0,react.useCallback)((function(){return setAnimating(!1)}),[]);return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({},id),{},{visible,animated,animating,show,hide,toggle,setVisible,setAnimated,stopAnimation})}var isSafari=(0,dom.N)("Mac")&&!(0,dom.N)("Chrome")&&(0,dom.N)("Safari");function applyStyles(styles){return function(prevStyles){return styles&&!(0,shallowEqual.w)(prevStyles,styles)?styles:prevStyles}}function usePopoverState(initialState){void 0===initialState&&(initialState={});var _useSealedState=(0,useSealedState.T)(initialState),_useSealedState$gutte=_useSealedState.gutter,gutter=void 0===_useSealedState$gutte?12:_useSealedState$gutte,_useSealedState$place=_useSealedState.placement,sealedPlacement=void 0===_useSealedState$place?"bottom":_useSealedState$place,_useSealedState$unsta=_useSealedState.unstable_flip,flip=void 0===_useSealedState$unsta||_useSealedState$unsta,sealedOffset=_useSealedState.unstable_offset,_useSealedState$unsta2=_useSealedState.unstable_preventOverflow,preventOverflow=void 0===_useSealedState$unsta2||_useSealedState$unsta2,_useSealedState$unsta3=_useSealedState.unstable_fixed,fixed=void 0!==_useSealedState$unsta3&&_useSealedState$unsta3,_useSealedState$modal=_useSealedState.modal,modal=void 0!==_useSealedState$modal&&_useSealedState$modal,sealed=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_useSealedState,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),popper=(0,react.useRef)(null),referenceRef=(0,react.useRef)(null),popoverRef=(0,react.useRef)(null),arrowRef=(0,react.useRef)(null),_React$useState=(0,react.useState)(sealedPlacement),originalPlacement=_React$useState[0],place=_React$useState[1],_React$useState2=(0,react.useState)(sealedPlacement),placement=_React$useState2[0],setPlacement=_React$useState2[1],offset=(0,react.useState)(sealedOffset||[0,gutter])[0],_React$useState4=(0,react.useState)({position:"fixed",left:"100%",top:"100%"}),popoverStyles=_React$useState4[0],setPopoverStyles=_React$useState4[1],_React$useState5=(0,react.useState)({}),arrowStyles=_React$useState5[0],setArrowStyles=_React$useState5[1],dialog=function useDialogState(initialState){void 0===initialState&&(initialState={});var _useSealedState=(0,useSealedState.T)(initialState),_useSealedState$modal=_useSealedState.modal,initialModal=void 0===_useSealedState$modal||_useSealedState$modal,disclosure=useDisclosureState((0,_rollupPluginBabelHelpers_1f0bf8c2._)(_useSealedState,["modal"])),_React$useState=(0,react.useState)(initialModal),modal=_React$useState[0],setModal=_React$useState[1],disclosureRef=(0,react.useRef)(null);return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({},disclosure),{},{modal,setModal,unstable_disclosureRef:disclosureRef})}((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({modal},sealed)),update=(0,react.useCallback)((function(){return!!popper.current&&(popper.current.forceUpdate(),!0)}),[]),updateState=(0,react.useCallback)((function(state){state.placement&&setPlacement(state.placement),state.styles&&(setPopoverStyles(applyStyles(state.styles.popper)),arrowRef.current&&setArrowStyles(applyStyles(state.styles.arrow)))}),[]);return(0,useIsomorphicEffect.Y)((function(){return referenceRef.current&&popoverRef.current&&(popper.current=(0,lib_popper.fi)(referenceRef.current,popoverRef.current,{placement:originalPlacement,strategy:fixed?"fixed":"absolute",onFirstUpdate:isSafari?updateState:void 0,modifiers:[{name:"eventListeners",enabled:dialog.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:flip,options:{padding:8}},{name:"offset",options:{offset}},{name:"preventOverflow",enabled:preventOverflow,options:{tetherOffset:function tetherOffset(){var _arrowRef$current;return(null===(_arrowRef$current=arrowRef.current)||void 0===_arrowRef$current?void 0:_arrowRef$current.clientWidth)||0}}},{name:"arrow",enabled:!!arrowRef.current,options:{element:arrowRef.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:dialog.visible&&!0,fn:function fn(_ref){var state=_ref.state;return updateState(state)}}]})),function(){popper.current&&(popper.current.destroy(),popper.current=null)}}),[originalPlacement,fixed,dialog.visible,flip,offset,preventOverflow]),(0,react.useEffect)((function(){if(dialog.visible){var id=window.requestAnimationFrame((function(){var _popper$current;null===(_popper$current=popper.current)||void 0===_popper$current||_popper$current.forceUpdate()}));return function(){window.cancelAnimationFrame(id)}}}),[dialog.visible]),(0,_rollupPluginBabelHelpers_1f0bf8c2.a)((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({},dialog),{},{unstable_referenceRef:referenceRef,unstable_popoverRef:popoverRef,unstable_arrowRef:arrowRef,unstable_popoverStyles:popoverStyles,unstable_arrowStyles:arrowStyles,unstable_update:update,unstable_originalPlacement:originalPlacement,placement,place})}var globalState={currentTooltipId:null,listeners:new Set,subscribe:function subscribe(listener){var _this=this;return this.listeners.add(listener),function(){_this.listeners.delete(listener)}},show:function show(id){this.currentTooltipId=id,this.listeners.forEach((function(listener){return listener(id)}))},hide:function hide(id){this.currentTooltipId===id&&(this.currentTooltipId=null,this.listeners.forEach((function(listener){return listener(null)})))}};var useLiveRef=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/useLiveRef.js"),TOOLTIP_STATE_KEYS=["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"],TOOLTIP_KEYS=[].concat(TOOLTIP_STATE_KEYS,["unstable_portal"]),TOOLTIP_REFERENCE_KEYS=TOOLTIP_STATE_KEYS,useTooltipReference=(0,createHook.B)({name:"TooltipReference",compose:Role.q,keys:TOOLTIP_REFERENCE_KEYS,useProps:function useProps(options,_ref){var htmlRef=_ref.ref,htmlOnFocus=_ref.onFocus,htmlOnBlur=_ref.onBlur,htmlOnMouseEnter=_ref.onMouseEnter,htmlOnMouseLeave=_ref.onMouseLeave,htmlProps=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_ref,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),onFocusRef=(0,useLiveRef.c)(htmlOnFocus),onBlurRef=(0,useLiveRef.c)(htmlOnBlur),onMouseEnterRef=(0,useLiveRef.c)(htmlOnMouseEnter),onMouseLeaveRef=(0,useLiveRef.c)(htmlOnMouseLeave),onFocus=(0,react.useCallback)((function(event){var _onFocusRef$current,_options$show;null===(_onFocusRef$current=onFocusRef.current)||void 0===_onFocusRef$current||_onFocusRef$current.call(onFocusRef,event),event.defaultPrevented||null===(_options$show=options.show)||void 0===_options$show||_options$show.call(options)}),[options.show]),onBlur=(0,react.useCallback)((function(event){var _onBlurRef$current,_options$hide;null===(_onBlurRef$current=onBlurRef.current)||void 0===_onBlurRef$current||_onBlurRef$current.call(onBlurRef,event),event.defaultPrevented||null===(_options$hide=options.hide)||void 0===_options$hide||_options$hide.call(options)}),[options.hide]),onMouseEnter=(0,react.useCallback)((function(event){var _onMouseEnterRef$curr,_options$show2;null===(_onMouseEnterRef$curr=onMouseEnterRef.current)||void 0===_onMouseEnterRef$curr||_onMouseEnterRef$curr.call(onMouseEnterRef,event),event.defaultPrevented||null===(_options$show2=options.show)||void 0===_options$show2||_options$show2.call(options)}),[options.show]),onMouseLeave=(0,react.useCallback)((function(event){var _onMouseLeaveRef$curr,_options$hide2;null===(_onMouseLeaveRef$curr=onMouseLeaveRef.current)||void 0===_onMouseLeaveRef$curr||_onMouseLeaveRef$curr.call(onMouseLeaveRef,event),event.defaultPrevented||null===(_options$hide2=options.hide)||void 0===_options$hide2||_options$hide2.call(options)}),[options.hide]);return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({ref:(0,useForkRef.c)(options.unstable_referenceRef,htmlRef),tabIndex:0,onFocus,onBlur,onMouseEnter,onMouseLeave,"aria-describedby":options.baseId},htmlProps)}}),TooltipReference=(0,createComponent.L)({as:"div",useHook:useTooltipReference});const TooltipContext=(0,react.createContext)({});var getDocument=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/getDocument.js"),isSelfTarget=__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/isSelfTarget.js"),DISCLOSURE_CONTENT_KEYS=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useDisclosureContent=(0,createHook.B)({name:"DisclosureContent",compose:Role.q,keys:DISCLOSURE_CONTENT_KEYS,useProps:function useProps(options,_ref){var htmlOnTransitionEnd=_ref.onTransitionEnd,htmlOnAnimationEnd=_ref.onAnimationEnd,htmlStyle=_ref.style,htmlProps=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_ref,["onTransitionEnd","onAnimationEnd","style"]),animating=options.animated&&options.animating,_React$useState=(0,react.useState)(null),transition=_React$useState[0],setTransition=_React$useState[1],hidden=!options.visible&&!animating,style=hidden?(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({display:"none"},htmlStyle):htmlStyle,onTransitionEndRef=(0,useLiveRef.c)(htmlOnTransitionEnd),onAnimationEndRef=(0,useLiveRef.c)(htmlOnAnimationEnd),raf=(0,react.useRef)(0);(0,react.useEffect)((function(){if(options.animated)return raf.current=window.requestAnimationFrame((function(){raf.current=window.requestAnimationFrame((function(){options.visible?setTransition("enter"):setTransition(animating?"leave":null)}))})),function(){return window.cancelAnimationFrame(raf.current)}}),[options.animated,options.visible,animating]);var onEnd=(0,react.useCallback)((function(event){var _options$stopAnimatio;(0,isSelfTarget.U)(event)&&(animating&&!0===options.animated&&(null===(_options$stopAnimatio=options.stopAnimation)||void 0===_options$stopAnimatio||_options$stopAnimatio.call(options)))}),[options.animated,animating,options.stopAnimation]),onTransitionEnd=(0,react.useCallback)((function(event){var _onTransitionEndRef$c;null===(_onTransitionEndRef$c=onTransitionEndRef.current)||void 0===_onTransitionEndRef$c||_onTransitionEndRef$c.call(onTransitionEndRef,event),onEnd(event)}),[onEnd]),onAnimationEnd=(0,react.useCallback)((function(event){var _onAnimationEndRef$cu;null===(_onAnimationEndRef$cu=onAnimationEndRef.current)||void 0===_onAnimationEndRef$cu||_onAnimationEndRef$cu.call(onAnimationEndRef,event),onEnd(event)}),[onEnd]);return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({id:options.baseId,"data-enter":"enter"===transition?"":void 0,"data-leave":"leave"===transition?"":void 0,onTransitionEnd,onAnimationEnd,hidden,style},htmlProps)}}),canUseDOM=((0,createComponent.L)({as:"div",useHook:useDisclosureContent}),__webpack_require__("../../../node_modules/.pnpm/reakit-utils@0.15.2_react@17.0.2/node_modules/reakit-utils/es/canUseDOM.js"));function getBodyElement(){return canUseDOM.N?document.body:null}var PortalContext=(0,react.createContext)(getBodyElement());function Portal(_ref){var children=_ref.children,context=(0,react.useContext)(PortalContext)||getBodyElement(),hostNode=(0,react.useState)((function(){if(canUseDOM.N){var element=document.createElement("div");return element.className=Portal.__className,element}return null}))[0];return(0,useIsomorphicEffect.Y)((function(){if(hostNode&&context)return context.appendChild(hostNode),function(){context.removeChild(hostNode)}}),[hostNode,context]),hostNode?(0,react_dom.createPortal)((0,react.createElement)(PortalContext.Provider,{value:hostNode},children),hostNode):null}function globallyHideTooltipOnEscape(event){event.defaultPrevented||"Escape"===event.key&&globalState.show(null)}Portal.__className="__reakit-portal",Portal.__selector="."+Portal.__className;var useTooltip=(0,createHook.B)({name:"Tooltip",compose:useDisclosureContent,keys:TOOLTIP_KEYS,useOptions:function useOptions(_ref){var _ref$unstable_portal=_ref.unstable_portal,unstable_portal=void 0===_ref$unstable_portal||_ref$unstable_portal,options=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_ref,["unstable_portal"]);return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({unstable_portal},options)},useProps:function useProps(options,_ref2){var htmlRef=_ref2.ref,htmlStyle=_ref2.style,htmlWrapElement=_ref2.wrapElement,htmlProps=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_ref2,["ref","style","wrapElement"]);(0,react.useEffect)((function(){var _options$unstable_pop;(0,getDocument.M)(null===(_options$unstable_pop=options.unstable_popoverRef)||void 0===_options$unstable_pop?void 0:_options$unstable_pop.current).addEventListener("keydown",globallyHideTooltipOnEscape)}),[]);var wrapElement=(0,react.useCallback)((function(element){return options.unstable_portal&&(element=(0,react.createElement)(Portal,null,element)),htmlWrapElement?htmlWrapElement(element):element}),[options.unstable_portal,htmlWrapElement]);return(0,_rollupPluginBabelHelpers_1f0bf8c2.a)({ref:(0,useForkRef.c)(options.unstable_popoverRef,htmlRef),role:"tooltip",style:(0,_rollupPluginBabelHelpers_1f0bf8c2.a)((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({},options.unstable_popoverStyles),{},{pointerEvents:"none"},htmlStyle),wrapElement},htmlProps)}}),Tooltip=(0,createComponent.L)({as:"div",memo:!0,useHook:useTooltip});const shortcut_component=(0,context_connect.Iq)((function Shortcut(props,forwardedRef){const{as:asProp="span",shortcut,className,...otherProps}=(0,use_context_system.y)(props,"Shortcut");if(!shortcut)return null;let displayText,ariaLabel;return"string"==typeof shortcut?displayText=shortcut:(displayText=shortcut.display,ariaLabel=shortcut.ariaLabel),(0,react.createElement)(view_component.Z,(0,esm_extends.Z)({as:asProp,className,"aria-label":ariaLabel,ref:forwardedRef},otherProps),displayText)}),"Shortcut");const TooltipContent=(0,emotion_react_browser_esm.iv)("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",config_values.Z.transitionDurationFastest," ease;&[data-enter]{opacity:1;}",""),TooltipPopoverView=(0,emotion_styled_base_browser_esm.Z)("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:",colors_values.DM.white,";padding:4px 8px;"),noOutline={name:"12mkfdx",styles:"outline:none"},TooltipShortcut=(0,emotion_styled_base_browser_esm.Z)(shortcut_component,{target:"e7tfjmw0"})("display:inline-block;margin-left:",(0,space.D)(1),";"),{TooltipPopoverView:content_TooltipPopoverView}=tooltip_styles_namespaceObject;const tooltip_content=(0,context_connect.Iq)((function content_TooltipContent(props,forwardedRef){const{children,className,...otherProps}=(0,use_context_system.y)(props,"TooltipContent"),{tooltip}=(0,react.useContext)(TooltipContext),classes=(0,use_cx.I)()(TooltipContent,className);return(0,react.createElement)(Tooltip,(0,esm_extends.Z)({as:view_component.Z},otherProps,tooltip,{className:classes,ref:forwardedRef}),(0,react.createElement)(content_TooltipPopoverView,null,children))}),"TooltipContent");const ConnectedTooltip=(0,context_connect.Iq)((function component_Tooltip(props,forwardedRef){const{animated=!0,animationDuration=160,baseId,children,content,focusable=!0,gutter=4,id,modal=!0,placement,visible=!1,shortcut,...otherProps}=(0,use_context_system.y)(props,"Tooltip"),tooltip=function useTooltipState(initialState){void 0===initialState&&(initialState={});var _useSealedState=(0,useSealedState.T)(initialState),_useSealedState$place=_useSealedState.placement,placement=void 0===_useSealedState$place?"top":_useSealedState$place,_useSealedState$unsta=_useSealedState.unstable_timeout,initialTimeout=void 0===_useSealedState$unsta?0:_useSealedState$unsta,sealed=(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_useSealedState,["placement","unstable_timeout"]),_React$useState=(0,react.useState)(initialTimeout),timeout=_React$useState[0],setTimeout=_React$useState[1],showTimeout=(0,react.useRef)(null),hideTimeout=(0,react.useRef)(null),_usePopoverState=usePopoverState((0,_rollupPluginBabelHelpers_1f0bf8c2.a)((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({},sealed),{},{placement})),popover=(_usePopoverState.modal,_usePopoverState.setModal,(0,_rollupPluginBabelHelpers_1f0bf8c2._)(_usePopoverState,["modal","setModal"])),clearTimeouts=(0,react.useCallback)((function(){null!==showTimeout.current&&window.clearTimeout(showTimeout.current),null!==hideTimeout.current&&window.clearTimeout(hideTimeout.current)}),[]),hide=(0,react.useCallback)((function(){clearTimeouts(),popover.hide(),hideTimeout.current=window.setTimeout((function(){globalState.hide(popover.baseId)}),timeout)}),[clearTimeouts,popover.hide,timeout,popover.baseId]),show=(0,react.useCallback)((function(){clearTimeouts(),!timeout||globalState.currentTooltipId?(globalState.show(popover.baseId),popover.show()):(globalState.show(null),showTimeout.current=window.setTimeout((function(){globalState.show(popover.baseId),popover.show()}),timeout))}),[clearTimeouts,timeout,popover.show,popover.baseId]);return(0,react.useEffect)((function(){return globalState.subscribe((function(id){id!==popover.baseId&&(clearTimeouts(),popover.visible&&popover.hide())}))}),[popover.baseId,clearTimeouts,popover.visible,popover.hide]),(0,react.useEffect)((function(){return function(){clearTimeouts(),globalState.hide(popover.baseId)}}),[clearTimeouts,popover.baseId]),(0,_rollupPluginBabelHelpers_1f0bf8c2.a)((0,_rollupPluginBabelHelpers_1f0bf8c2.a)({},popover),{},{hide,show,unstable_timeout:timeout,unstable_setTimeout:setTimeout})}({animated:animated?animationDuration:void 0,baseId:baseId||id,gutter,placement,visible,...otherProps}),contextProps=(0,react.useMemo)((()=>({tooltip})),[tooltip]);return(0,react.createElement)(TooltipContext.Provider,{value:contextProps},content&&(0,react.createElement)(tooltip_content,{unstable_portal:modal,ref:forwardedRef},content,shortcut&&(0,react.createElement)(TooltipShortcut,{shortcut})),children&&(0,react.createElement)(TooltipReference,(0,esm_extends.Z)({},tooltip,children.props,{ref:null==children?void 0:children.ref}),(referenceProps=>(focusable||(referenceProps.tabIndex=void 0),(0,react.cloneElement)(children,referenceProps)))))}),"Tooltip"),tooltip_component=ConnectedTooltip,ValueDisplay=_ref=>{let{values}=_ref;return(0,react.createElement)(react.Fragment,null,values.map((_ref2=>{let[value,abbreviation]=_ref2;return(0,react.createElement)(flex_item_component.Z,{key:abbreviation,isBlock:!0,display:"flex"},(0,react.createElement)(text_component.Z,{color:"blue"},abbreviation),(0,react.createElement)(text_component.Z,null,value))})))},HslDisplay=_ref3=>{let{color,enableAlpha}=_ref3;const{h,s,l,a}=color.toHsl(),values=[[Math.floor(h),"H"],[Math.round(100*s),"S"],[Math.round(100*l),"L"]];return enableAlpha&&values.push([Math.round(100*a),"A"]),(0,react.createElement)(ValueDisplay,{values})},RgbDisplay=_ref4=>{let{color,enableAlpha}=_ref4;const{r,g,b,a}=color.toRgb(),values=[[r,"R"],[g,"G"],[b,"B"]];return enableAlpha&&values.push([Math.round(100*a),"A"]),(0,react.createElement)(ValueDisplay,{values})},HexDisplay=_ref5=>{let{color}=_ref5;const colorWithoutHash=color.toHex().slice(1).toUpperCase();return(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(text_component.Z,{color:"blue"},"#"),(0,react.createElement)(text_component.Z,null,colorWithoutHash))},ColorDisplay=_ref6=>{let{color,colorType,enableAlpha}=_ref6;const[copiedColor,setCopiedColor]=(0,react.useState)(null),copyTimer=(0,react.useRef)(),props={color,enableAlpha},Component=(colorType=>{switch(colorType){case"hsl":return HslDisplay;case"rgb":return RgbDisplay;default:return HexDisplay}})(colorType),copyRef=(0,use_copy_to_clipboard.Z)((()=>{switch(colorType){case"hsl":return color.toHslString();case"rgb":return color.toRgbString();default:return color.toHex()}}),(()=>{copyTimer.current&&clearTimeout(copyTimer.current),setCopiedColor(color.toHex()),copyTimer.current=setTimeout((()=>{setCopiedColor(null),copyTimer.current=void 0}),3e3)}));return(0,react.useEffect)((()=>()=>{copyTimer.current&&clearTimeout(copyTimer.current)}),[]),(0,react.createElement)(tooltip_component,{content:(0,react.createElement)(text_component.Z,{color:"white"},copiedColor===color.toHex()?(0,i18n_build_module.__)("Copied!"):(0,i18n_build_module.__)("Copy"))},(0,react.createElement)(component.Z,{justify:"flex-start",gap:(0,space.D)(1),ref:copyRef,style:{height:30}},(0,react.createElement)(Component,props)))},InputWithSlider=_ref=>{let{min,max,label,abbreviation,onChange,value}=_ref;return(0,react.createElement)(spacer_component,{as:h_stack_component,spacing:4},(0,react.createElement)(NumberControlWrapper,{min,max,label,hideLabelFromVision:!0,value,onChange,prefix:(0,react.createElement)(spacer_component,{as:text_component.Z,paddingLeft:(0,space.D)(3.5),color:"blue",lineHeight:1},abbreviation),hideHTMLArrows:!0}),(0,react.createElement)(RangeControl,{label,hideLabelFromVision:!0,min,max,value,onChange,withInputField:!1}))},RgbInput=_ref=>{let{color,onChange,enableAlpha}=_ref;const{r,g,b,a}=color.toRgb();return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(InputWithSlider,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:nextR=>onChange((0,colord.Vi)({r:nextR,g,b,a}))}),(0,react.createElement)(InputWithSlider,{min:0,max:255,label:"Green",abbreviation:"G",value:g,onChange:nextG=>onChange((0,colord.Vi)({r,g:nextG,b,a}))}),(0,react.createElement)(InputWithSlider,{min:0,max:255,label:"Blue",abbreviation:"B",value:b,onChange:nextB=>onChange((0,colord.Vi)({r,g,b:nextB,a}))}),enableAlpha&&(0,react.createElement)(InputWithSlider,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:nextA=>onChange((0,colord.Vi)({r,g,b,a:nextA/100}))}))},HslInput=_ref=>{let{color,onChange,enableAlpha}=_ref;const{h,s,l,a}=color.toHsl();return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(InputWithSlider,{min:0,max:359,label:"Hue",abbreviation:"H",value:h,onChange:nextH=>{onChange((0,colord.Vi)({h:nextH,s,l,a}))}}),(0,react.createElement)(InputWithSlider,{min:0,max:100,label:"Saturation",abbreviation:"S",value:s,onChange:nextS=>{onChange((0,colord.Vi)({h,s:nextS,l,a}))}}),(0,react.createElement)(InputWithSlider,{min:0,max:100,label:"Lightness",abbreviation:"L",value:l,onChange:nextL=>{onChange((0,colord.Vi)({h,s,l:nextL,a}))}}),enableAlpha&&(0,react.createElement)(InputWithSlider,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*a),onChange:nextA=>{onChange((0,colord.Vi)({h,s,l,a:nextA/100}))}}))},HexInput=_ref=>{let{color,onChange,enableAlpha}=_ref;return(0,react.createElement)(ColorHexInputControl,{prefix:(0,react.createElement)(spacer_component,{as:text_component.Z,marginLeft:(0,space.D)(3.5),color:"blue",lineHeight:1},"#"),value:color.toHex().slice(1).toUpperCase(),onChange:nextValue=>{onChange((0,colord.Vi)("#"+nextValue))},onValidate:value=>{if(!(0,colord.Vi)("#"+value).isValid())throw new Error("Invalid hex color input")},maxLength:enableAlpha?8:6,label:(0,i18n_build_module.__)("Hex color"),hideLabelFromVision:!0})},ColorInput=_ref=>{let{colorType,color,onChange,enableAlpha}=_ref;const props={color,onChange,enableAlpha};switch(colorType){case"hsl":return(0,react.createElement)(HslInput,props);case"rgb":return(0,react.createElement)(RgbInput,props);default:return(0,react.createElement)(HexInput,props)}};var index_module=__webpack_require__("../../../node_modules/.pnpm/react-colorful@5.5.0_react@17.0.2/node_modules/react-colorful/dist/index.module.js");const Picker=_ref=>{let{color,enableAlpha,onChange}=_ref;const Component=enableAlpha?index_module.ef:index_module.W_,rgbColor=(0,react.useMemo)((()=>color.toRgbString()),[color]);return(0,react.createElement)(Component,{color:rgbColor,onChange:nextColor=>{onChange((0,colord.Vi)(nextColor))}})};(0,colord.l7)([names.Z]);const options=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],ConnectedColorPicker=(0,context_connect.Iq)(((props,forwardedRef)=>{const{enableAlpha=!1,color,onChange,defaultValue="#fff",copyFormat,...divProps}=(0,use_context_system.y)(props,"ColorPicker"),safeColordColor=(0,react.useMemo)((()=>color?(0,colord.Vi)(color):(0,colord.Vi)(defaultValue)),[color,defaultValue]),handleChange=(0,react.useCallback)((nextValue=>{onChange(nextValue.toHex())}),[onChange]),[showInputs,setShowInputs]=(0,react.useState)(!1),[colorType,setColorType]=(0,react.useState)(copyFormat||"hex");return(0,react.createElement)(ColorfulWrapper,(0,esm_extends.Z)({ref:forwardedRef},divProps),(0,react.createElement)(Picker,{onChange:handleChange,color:safeColordColor,enableAlpha}),(0,react.createElement)(AuxiliaryColorArtefactWrapper,null,(0,react.createElement)(h_stack_component,{justify:"space-between"},showInputs?(0,react.createElement)(SelectControl,{options,value:colorType,onChange:nextColorType=>setColorType(nextColorType),label:(0,i18n_build_module.__)("Color format"),hideLabelFromVision:!0}):(0,react.createElement)(ColorDisplay,{color:safeColordColor,colorType:copyFormat||colorType,enableAlpha}),(0,react.createElement)(DetailsControlButton,{isSmall:!0,onClick:()=>setShowInputs(!showInputs),icon:library_settings.Z,isPressed:showInputs,label:showInputs?(0,i18n_build_module.__)("Hide detailed inputs"):(0,i18n_build_module.__)("Show detailed inputs")})),(0,react.createElement)(spacer_component,{margin:4}),showInputs&&(0,react.createElement)(ColorInput,{colorType,color:safeColordColor,onChange:handleChange,enableAlpha})))}),"ColorPicker"),color_picker_component=ConnectedColorPicker;var memize=__webpack_require__("../../../node_modules/.pnpm/memize@1.1.0/node_modules/memize/index.js");function isLegacyProps(props){var _props$color;return void 0!==props.onChangeComplete||void 0!==props.disableAlpha||"string"==typeof(null===(_props$color=props.color)||void 0===_props$color?void 0:_props$color.hex)}const transformColorStringToLegacyColor=__webpack_require__.n(memize)()((color=>{const colordColor=(0,colord.Vi)(color),hex=colordColor.toHex(),rgb=colordColor.toRgb(),hsv=colordColor.toHsv(),hsl=colordColor.toHsl();return{hex,rgb,hsv,hsl,source:"hex",oldHue:hsl.h}}));const LegacyAdapter=props=>(0,react.createElement)(color_picker_component,function useDeprecatedProps(props){const onChange=(0,react.useCallback)((color=>{var _props$onChange;return isLegacyProps(props)?props.onChangeComplete(transformColorStringToLegacyColor(color)):null===(_props$onChange=props.onChange)||void 0===_props$onChange?void 0:_props$onChange.call(props,color)}),[props.onChangeComplete,props.onChange]),color=(0,react.useMemo)((()=>isLegacyProps(props)?function getColorFromLegacyProps(props){if(void 0!==(null==props?void 0:props.color))return"string"==typeof props.color?props.color:props.color.hex?props.color.hex:void 0}(props):props.color),[props.color]),enableAlpha=(0,react.useMemo)((()=>isLegacyProps(props)?!props.disableAlpha:props.enableAlpha),[props.disableAlpha,props.enableAlpha]);return{...isLegacyProps(props)?{}:props,onChange,color,enableAlpha}}(props));function CircularOptionPicker(_ref5){let{actions,className,options,children}=_ref5;return(0,react.createElement)("div",{className:classnames_default()("components-circular-option-picker",className)},(0,react.createElement)("div",{className:"components-circular-option-picker__swatches"},options),children,actions&&(0,react.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},actions))}CircularOptionPicker.Option=function Option(_ref){let{className,isSelected,selectedIconProps,tooltipText,...additionalProps}=_ref;const optionButton=(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({isPressed:isSelected,className:"components-circular-option-picker__option"},additionalProps));return(0,react.createElement)("div",{className:classnames_default()(className,"components-circular-option-picker__option-wrapper")},tooltipText?(0,react.createElement)(tooltip.Z,{text:tooltipText},optionButton):optionButton,isSelected&&(0,react.createElement)(build_module_icon.Z,(0,esm_extends.Z)({icon:check.Z},selectedIconProps||{})))},CircularOptionPicker.ButtonAction=function ButtonAction(_ref4){let{className,children,...additionalProps}=_ref4;return(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({className:classnames_default()("components-circular-option-picker__clear",className),isSmall:!0,variant:"secondary"},additionalProps),children)},CircularOptionPicker.DropdownLinkAction=function DropdownLinkAction(_ref2){let{buttonProps,className,dropdownProps,linkText}=_ref2;return(0,react.createElement)(dropdown.Z,(0,esm_extends.Z)({className:classnames_default()("components-circular-option-picker__dropdown-link-action",className),renderToggle:_ref3=>{let{isOpen,onToggle}=_ref3;return(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({"aria-expanded":isOpen,"aria-haspopup":"true",onClick:onToggle,variant:"link"},buttonProps),linkText)}},dropdownProps))};const ColorHeading=(0,emotion_styled_base_browser_esm.Z)(heading_component,{target:"e1uu5br00"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"});function SinglePalette(_ref){let{className,clearColor,colors,onChange,value,actions}=_ref;const colorOptions=(0,react.useMemo)((()=>(0,lodash.map)(colors,(_ref2=>{let{color,name}=_ref2;const colordColor=(0,colord.Vi)(color);return(0,react.createElement)(CircularOptionPicker.Option,{key:color,isSelected:value===color,selectedIconProps:value===color?{fill:colordColor.contrast()>colordColor.contrast("#000")?"#fff":"#000"}:{},tooltipText:name||(0,i18n_build_module.gB)((0,i18n_build_module.__)("Color code: %s"),color),style:{backgroundColor:color,color},onClick:value===color?clearColor:()=>onChange(color),"aria-label":name?(0,i18n_build_module.gB)((0,i18n_build_module.__)("Color: %s"),name):(0,i18n_build_module.gB)((0,i18n_build_module.__)("Color code: %s"),color)})}))),[colors,value,onChange,clearColor]);return(0,react.createElement)(CircularOptionPicker,{className,options:colorOptions,actions})}function MultiplePalettes(_ref3){let{className,clearColor,colors,onChange,value,actions}=_ref3;return(0,react.createElement)(v_stack_component,{spacing:3,className},colors.map(((_ref4,index)=>{let{name,colors:colorPalette}=_ref4;return(0,react.createElement)(v_stack_component,{spacing:2,key:index},(0,react.createElement)(ColorHeading,null,name),(0,react.createElement)(SinglePalette,{clearColor,colors:colorPalette,onChange,value,actions:colors.length===index+1?actions:null}))})))}function ColorPalette(_ref5){let{clearable=!0,className,colors,disableCustomColors=!1,enableAlpha,onChange,value,__experimentalHasMultipleOrigins=!1}=_ref5;const clearColor=(0,react.useCallback)((()=>onChange(void 0)),[onChange]),Component=__experimentalHasMultipleOrigins?MultiplePalettes:SinglePalette;return(0,react.createElement)(v_stack_component,{spacing:3,className},!disableCustomColors&&(0,react.createElement)(dropdown.Z,{contentClassName:"components-color-palette__custom-color-dropdown-content",renderContent:()=>(0,react.createElement)(LegacyAdapter,{color:value,onChange:color=>onChange(color),enableAlpha}),renderToggle:_ref6=>{let{isOpen,onToggle}=_ref6;return(0,react.createElement)("button",{className:"components-color-palette__custom-color","aria-expanded":isOpen,"aria-haspopup":"true",onClick:onToggle,"aria-label":(0,i18n_build_module.__)("Custom color picker"),style:{background:value}},value)}}),(0,react.createElement)(Component,{clearable,clearColor,colors,onChange,value,actions:!!clearable&&(0,react.createElement)(CircularOptionPicker.ButtonAction,{onClick:clearColor},(0,i18n_build_module.__)("Clear"))}))}(0,colord.l7)([names.Z,a11y.Z]);var flex_block_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/flex/flex-block/component.js"),use_isomorphic_layout_effect=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-isomorphic-layout-effect/index.js");const angle_picker_control_styles_Root=(0,emotion_styled_base_browser_esm.Z)(component.Z,{target:"e65ony43"})("margin-bottom:",(0,space.D)(2),";"),CircleRoot=(0,emotion_styled_base_browser_esm.Z)("div",{target:"e65ony42"})("border-radius:50%;border:",config_values.Z.borderWidth," solid ",colors_values.DM.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;"),CircleIndicatorWrapper=(0,emotion_styled_base_browser_esm.Z)("div",{target:"e65ony41"})({name:"1bhd2sw",styles:"box-sizing:border-box;position:relative;width:100%;height:100%"}),CircleIndicator=(0,emotion_styled_base_browser_esm.Z)("div",{target:"e65ony40"})("background:",colors_values.DM.admin.theme,";border-radius:50%;border:",3,"px solid ",colors_values.DM.admin.theme,";bottom:0;box-sizing:border-box;display:block;height:0px;left:0;margin:auto;position:absolute;right:0;top:-",16,"px;width:0px;");const angle_circle=function AngleCircle(_ref){let{value,onChange,...props}=_ref;const angleCircleRef=(0,react.useRef)(),angleCircleCenter=(0,react.useRef)(),previousCursorValue=(0,react.useRef)(),changeAngleToPosition=event=>{const{x:centerX,y:centerY}=angleCircleCenter.current,{ownerDocument}=angleCircleRef.current;event.preventDefault(),ownerDocument.activeElement.blur(),onChange(function getAngle(centerX,centerY,pointX,pointY){const y=pointY-centerY,x=pointX-centerX,angleInRadians=Math.atan2(y,x),angleInDeg=Math.round(angleInRadians*(180/Math.PI))+90;if(angleInDeg<0)return 360+angleInDeg;return angleInDeg}(centerX,centerY,event.clientX,event.clientY))},{startDrag,isDragging}=function useDragging(_ref){let{onDragStart,onDragMove,onDragEnd}=_ref;const[isDragging,setIsDragging]=(0,react.useState)(!1),eventsRef=(0,react.useRef)({onDragStart,onDragMove,onDragEnd});(0,use_isomorphic_layout_effect.Z)((()=>{eventsRef.current.onDragStart=onDragStart,eventsRef.current.onDragMove=onDragMove,eventsRef.current.onDragEnd=onDragEnd}),[onDragStart,onDragMove,onDragEnd]);const onMouseMove=(0,react.useCallback)((event=>eventsRef.current.onDragMove&&eventsRef.current.onDragMove(event)),[]),endDrag=(0,react.useCallback)((event=>{eventsRef.current.onDragEnd&&eventsRef.current.onDragEnd(event),document.removeEventListener("mousemove",onMouseMove),document.removeEventListener("mouseup",endDrag),setIsDragging(!1)}),[]),startDrag=(0,react.useCallback)((event=>{eventsRef.current.onDragStart&&eventsRef.current.onDragStart(event),document.addEventListener("mousemove",onMouseMove),document.addEventListener("mouseup",endDrag),setIsDragging(!0)}),[]);return(0,react.useEffect)((()=>()=>{isDragging&&(document.removeEventListener("mousemove",onMouseMove),document.removeEventListener("mouseup",endDrag))}),[isDragging]),{startDrag,endDrag,isDragging}}({onDragStart:event=>{(()=>{const rect=angleCircleRef.current.getBoundingClientRect();angleCircleCenter.current={x:rect.x+rect.width/2,y:rect.y+rect.height/2}})(),changeAngleToPosition(event)},onDragMove:changeAngleToPosition,onDragEnd:changeAngleToPosition});return(0,react.useEffect)((()=>{isDragging?(void 0===previousCursorValue.current&&(previousCursorValue.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=previousCursorValue.current||null,previousCursorValue.current=void 0)}),[isDragging]),(0,react.createElement)(CircleRoot,(0,esm_extends.Z)({ref:angleCircleRef,onMouseDown:startDrag,className:"components-angle-picker-control__angle-circle",style:isDragging?{cursor:"grabbing"}:void 0},props),(0,react.createElement)(CircleIndicatorWrapper,{style:value?{transform:`rotate(${value}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper"},(0,react.createElement)(CircleIndicator,{className:"components-angle-picker-control__angle-circle-indicator"})))};function AnglePickerControl(_ref){let{className,label=(0,i18n_build_module.__)("Angle"),onChange,value}=_ref;const classes=classnames_default()("components-angle-picker-control",className);return(0,react.createElement)(angle_picker_control_styles_Root,{className:classes},(0,react.createElement)(flex_block_component.Z,null,(0,react.createElement)(input_control.Z,{label,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:unprocessedValue=>{const inputValue=""!==unprocessedValue?parseInt(unprocessedValue,10):0;onChange(inputValue)},step:"1",value,hideHTMLArrows:!0,suffix:(0,react.createElement)(spacer_component,{as:text_component.Z,marginRight:(0,space.D)(3),style:{color:"var( --wp-admin-theme-color )"}},"°")})),(0,react.createElement)(flex_item_component.Z,{style:{marginLeft:(0,space.D)(4),marginBottom:(0,space.D)(1),marginTop:"auto"}},(0,react.createElement)(angle_circle,{"aria-hidden":"true",value,onChange})))}const COLOR_POPOVER_PROPS={className:"components-custom-gradient-picker__color-picker-popover",position:"top"};function clampPercent(value){return Math.max(0,Math.min(100,value))}function updateControlPoint(points,index,newPoint){const newValue=points.slice();return newValue[index]=newPoint,newValue}function updateControlPointPosition(points,index,newPosition){if(function isOverlapping(value,initialIndex,newPosition){let minDistance=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const initialPosition=value[initialIndex].position,minPosition=Math.min(initialPosition,newPosition),maxPosition=Math.max(initialPosition,newPosition);return value.some(((_ref,index)=>{let{position}=_ref;return index!==initialIndex&&(Math.abs(position-newPosition){const relativePosition=getHorizontalRelativeGradientPosition(event.clientX,gradientPickerDomRef.current,16),{initialPosition,index,significantMoveHappened}=controlPointMoveState.current;!significantMoveHappened&&Math.abs(initialPosition-relativePosition)>=5&&(controlPointMoveState.current.significantMoveHappened=!0),onChange(updateControlPointPosition(controlPoints,index,relativePosition))},cleanEventListeners=()=>{window&&window.removeEventListener&&controlPointMoveState.current&&controlPointMoveState.current.listenersActivated&&(window.removeEventListener("mousemove",onMouseMove),window.removeEventListener("mouseup",cleanEventListeners),onStopControlPointChange(),controlPointMoveState.current.listenersActivated=!1)};return(0,react.useEffect)((()=>()=>{cleanEventListeners()}),[]),controlPoints.map(((point,index)=>{const initialPosition=null==point?void 0:point.position;return ignoreMarkerPosition!==initialPosition&&(0,react.createElement)(dropdown.Z,{key:index,onClose:onStopControlPointChange,renderToggle:_ref3=>{let{isOpen,onToggle}=_ref3;return(0,react.createElement)(ControlPointButton,{key:index,onClick:()=>{controlPointMoveState.current&&controlPointMoveState.current.significantMoveHappened||(isOpen?onStopControlPointChange():onStartControlPointChange(),onToggle())},onMouseDown:()=>{window&&window.addEventListener&&(controlPointMoveState.current={initialPosition,index,significantMoveHappened:!1,listenersActivated:!0},onStartControlPointChange(),window.addEventListener("mousemove",onMouseMove),window.addEventListener("mouseup",cleanEventListeners))},onKeyDown:event=>{event.keyCode===keycodes_build_module.RL?(event.stopPropagation(),onChange(updateControlPointPosition(controlPoints,index,clampPercent(point.position-10)))):event.keyCode===keycodes_build_module.pX&&(event.stopPropagation(),onChange(updateControlPointPosition(controlPoints,index,clampPercent(point.position+10))))},isOpen,position:point.position,color:point.color})},renderContent:_ref4=>{let{onClose}=_ref4;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(LegacyAdapter,{enableAlpha:!disableAlpha,color:point.color,onChange:color=>{onChange(updateControlPointColor(controlPoints,index,(0,colord.Vi)(color).toRgbString()))}}),!disableRemove&&(0,react.createElement)(build_module_button.Z,{className:"components-custom-gradient-picker__remove-control-point",onClick:()=>{onChange(function removeControlPoint(points,index){return points.filter(((point,pointIndex)=>pointIndex!==index))}(controlPoints,index)),onClose()},variant:"link"},(0,i18n_build_module.__)("Remove Control Point")))},popoverProps:COLOR_POPOVER_PROPS})}))}ControlPoints.InsertPoint=function InsertPoint(_ref5){let{value:controlPoints,onChange,onOpenInserter,onCloseInserter,insertPosition,disableAlpha}=_ref5;const[alreadyInsertedPoint,setAlreadyInsertedPoint]=(0,react.useState)(!1);return(0,react.createElement)(dropdown.Z,{className:"components-custom-gradient-picker__inserter",onClose:()=>{onCloseInserter()},renderToggle:_ref6=>{let{isOpen,onToggle}=_ref6;return(0,react.createElement)(build_module_button.Z,{"aria-expanded":isOpen,"aria-haspopup":"true",onClick:()=>{isOpen?onCloseInserter():(setAlreadyInsertedPoint(!1),onOpenInserter()),onToggle()},className:"components-custom-gradient-picker__insert-point",icon:library_plus,style:{left:null!==insertPosition?`${insertPosition}%`:void 0}})},renderContent:()=>(0,react.createElement)(LegacyAdapter,{enableAlpha:!disableAlpha,onChange:color=>{alreadyInsertedPoint?onChange(function updateControlPointColorByPosition(points,position,newColor){const index=points.findIndex((point=>point.position===position));return updateControlPointColor(points,index,newColor)}(controlPoints,insertPosition,(0,colord.Vi)(color).toRgbString())):(onChange(function addControlPoint(points,position,color){const nextIndex=points.findIndex((point=>point.position>position)),newPoint={color,position},newPoints=points.slice();return newPoints.splice(nextIndex-1,0,newPoint),newPoints}(controlPoints,insertPosition,(0,colord.Vi)(color).toRgbString())),setAlreadyInsertedPoint(!0))}}),popoverProps:COLOR_POPOVER_PROPS})};const control_points=ControlPoints;function customGradientBarReducer(state,action){switch(action.type){case"MOVE_INSERTER":if("IDLE"===state.id||"MOVING_INSERTER"===state.id)return{id:"MOVING_INSERTER",insertPosition:action.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===state.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===state.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:state.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===state.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===state.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===state.id)return{id:"IDLE"}}return state}const customGradientBarReducerInitialState={id:"IDLE"};function CustomGradientBar(_ref){let{background,hasGradient,value:controlPoints,onChange,disableInserter=!1,disableAlpha=!1}=_ref;const gradientPickerDomRef=(0,react.useRef)(),[gradientBarState,gradientBarStateDispatch]=(0,react.useReducer)(customGradientBarReducer,customGradientBarReducerInitialState),onMouseEnterAndMove=event=>{const insertPosition=getHorizontalRelativeGradientPosition(event.clientX,gradientPickerDomRef.current,16);(0,lodash.some)(controlPoints,(_ref2=>{let{position}=_ref2;return Math.abs(insertPosition-position)<10}))?"MOVING_INSERTER"===gradientBarState.id&&gradientBarStateDispatch({type:"STOP_INSERTER_MOVE"}):gradientBarStateDispatch({type:"MOVE_INSERTER",insertPosition})},isMovingInserter="MOVING_INSERTER"===gradientBarState.id,isInsertingControlPoint="INSERTING_CONTROL_POINT"===gradientBarState.id;return(0,react.createElement)("div",{ref:gradientPickerDomRef,className:classnames_default()("components-custom-gradient-picker__gradient-bar",{"has-gradient":hasGradient}),onMouseEnter:onMouseEnterAndMove,onMouseMove:onMouseEnterAndMove,style:{background},onMouseLeave:()=>{gradientBarStateDispatch({type:"STOP_INSERTER_MOVE"})}},(0,react.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},!disableInserter&&(isMovingInserter||isInsertingControlPoint)&&(0,react.createElement)(control_points.InsertPoint,{disableAlpha,insertPosition:gradientBarState.insertPosition,value:controlPoints,onChange,onOpenInserter:()=>{gradientBarStateDispatch({type:"OPEN_INSERTER"})},onCloseInserter:()=>{gradientBarStateDispatch({type:"CLOSE_INSERTER"})}}),(0,react.createElement)(control_points,{disableAlpha,disableRemove:disableInserter,gradientPickerDomRef,ignoreMarkerPosition:isInsertingControlPoint?gradientBarState.insertPosition:void 0,value:controlPoints,onChange,onStartControlPointChange:()=>{gradientBarStateDispatch({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{gradientBarStateDispatch({type:"STOP_CONTROL_CHANGE"})}})))}var node=__webpack_require__("../../../node_modules/.pnpm/gradient-parser@0.1.5/node_modules/gradient-parser/build/node.js");const DEFAULT_GRADIENT="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",HORIZONTAL_GRADIENT_ORIENTATION={type:"angular",value:90},GRADIENT_OPTIONS=[{value:"linear-gradient",label:(0,i18n_build_module.__)("Linear")},{value:"radial-gradient",label:(0,i18n_build_module.__)("Radial")}],DIRECTIONAL_ORIENTATION_ANGLE_MAP={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 serializeGradientColorStop(_ref2){let{type,value,length}=_ref2;return`${function serializeGradientColor(_ref){let{type,value}=_ref;return"literal"===type?value:"hex"===type?`#${value}`:`${type}(${value.join(",")})`}({type,value})} ${function serializeGradientPosition(position){if(!position)return"";const{value,type}=position;return`${value}${type}`}(length)}`}function serializeGradient(_ref3){let{type,orientation,colorStops}=_ref3;const serializedOrientation=function serializeGradientOrientation(orientation){if(orientation&&"angular"===orientation.type)return`${orientation.value}deg`}(orientation),serializedColorStops=colorStops.sort(((colorStop1,colorStop2)=>(0,lodash.get)(colorStop1,["length","value"],0)-(0,lodash.get)(colorStop2,["length","value"],0))).map(serializeGradientColorStop);return`${type}(${(0,lodash.compact)([serializedOrientation,...serializedColorStops]).join(",")})`}function hasUnsupportedLength(item){return void 0===item.length||"%"!==item.length.type}function getStopCssColor(colorStop){switch(colorStop.type){case"hex":return`#${colorStop.value}`;case"literal":return colorStop.value;case"rgb":case"rgba":return`${colorStop.type}(${colorStop.value.join(",")})`;default:return"transparent"}}(0,colord.l7)([names.Z]);const SelectWrapper=(0,emotion_styled_base_browser_esm.Z)(flex_block_component.Z,{target:"e99xvul1"})({name:"1gvx10y",styles:"flex-grow:5"}),AccessoryWrapper=(0,emotion_styled_base_browser_esm.Z)(flex_block_component.Z,{target:"e99xvul0"})({name:"1gvx10y",styles:"flex-grow:5"}),GradientAnglePicker=_ref=>{let{gradientAST,hasGradient,onChange}=_ref;const angle=(0,lodash.get)(gradientAST,["orientation","value"],180);return(0,react.createElement)(AnglePickerControl,{onChange:newAngle=>{onChange(serializeGradient({...gradientAST,orientation:{type:"angular",value:newAngle}}))},labelPosition:"top",value:hasGradient?angle:""})},GradientTypePicker=_ref2=>{let{gradientAST,hasGradient,onChange}=_ref2;const{type}=gradientAST;return(0,react.createElement)(select_control.Z,{className:"components-custom-gradient-picker__type-picker",label:(0,i18n_build_module.__)("Type"),labelPosition:"top",onChange:next=>{"linear-gradient"===next&&onChange(serializeGradient({...gradientAST,...gradientAST.orientation?{}:{orientation:HORIZONTAL_GRADIENT_ORIENTATION},type:"linear-gradient"})),"radial-gradient"===next&&onChange(serializeGradient({...(0,lodash.omit)(gradientAST,["orientation"]),type:"radial-gradient"}))},options:GRADIENT_OPTIONS,value:hasGradient&&type})};function CustomGradientPicker(_ref3){let{value,onChange}=_ref3;const gradientAST=function getGradientAstWithDefault(value){var _gradientAST$orientat;let gradientAST;try{gradientAST=node.parse(value)[0],gradientAST.value=value}catch(error){gradientAST=node.parse(DEFAULT_GRADIENT)[0],gradientAST.value=DEFAULT_GRADIENT}if("directional"===(null===(_gradientAST$orientat=gradientAST.orientation)||void 0===_gradientAST$orientat?void 0:_gradientAST$orientat.type)&&(gradientAST.orientation.type="angular",gradientAST.orientation.value=DIRECTIONAL_ORIENTATION_ANGLE_MAP[gradientAST.orientation.value].toString()),gradientAST.colorStops.some(hasUnsupportedLength)){const{colorStops}=gradientAST,step=100/(colorStops.length-1);colorStops.forEach(((stop,index)=>{stop.length={value:step*index,type:"%"}})),gradientAST.value=serializeGradient(gradientAST)}return gradientAST}(value),background=function getLinearGradientRepresentation(gradientAST){return serializeGradient({type:"linear-gradient",orientation:HORIZONTAL_GRADIENT_ORIENTATION,colorStops:gradientAST.colorStops})}(gradientAST),hasGradient=gradientAST.value!==DEFAULT_GRADIENT,controlPoints=gradientAST.colorStops.map((colorStop=>({color:getStopCssColor(colorStop),position:parseInt(colorStop.length.value)})));return(0,react.createElement)("div",{className:"components-custom-gradient-picker"},(0,react.createElement)(CustomGradientBar,{background,hasGradient,value:controlPoints,onChange:newControlPoints=>{onChange(serializeGradient(function getGradientAstWithControlPoints(gradientAST,newControlPoints){return{...gradientAST,colorStops:newControlPoints.map((_ref=>{let{position,color}=_ref;const{r,g,b,a}=(0,colord.Vi)(color).toRgb();return{length:{type:"%",value:position.toString()},type:a<1?"rgba":"rgb",value:a<1?[r,g,b,a]:[r,g,b]}}))}}(gradientAST,newControlPoints)))}}),(0,react.createElement)(component.Z,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,react.createElement)(SelectWrapper,null,(0,react.createElement)(GradientTypePicker,{gradientAST,hasGradient,onChange})),(0,react.createElement)(AccessoryWrapper,null,"linear-gradient"===gradientAST.type&&(0,react.createElement)(GradientAnglePicker,{gradientAST,hasGradient,onChange}))))}function SingleOrigin(_ref){let{className,clearGradient,gradients,onChange,value,actions,content}=_ref;const gradientOptions=(0,react.useMemo)((()=>(0,lodash.map)(gradients,(_ref2=>{let{gradient,name}=_ref2;return(0,react.createElement)(CircularOptionPicker.Option,{key:gradient,value:gradient,isSelected:value===gradient,tooltipText:name||(0,i18n_build_module.gB)((0,i18n_build_module.__)("Gradient code: %s"),gradient),style:{color:"rgba( 0,0,0,0 )",background:gradient},onClick:value===gradient?clearGradient:()=>onChange(gradient),"aria-label":name?(0,i18n_build_module.gB)((0,i18n_build_module.__)("Gradient: %s"),name):(0,i18n_build_module.gB)((0,i18n_build_module.__)("Gradient code: %s"),gradient)})}))),[gradients,value,onChange,clearGradient]);return(0,react.createElement)(CircularOptionPicker,{className,options:gradientOptions,actions},content)}function MultipleOrigin(_ref3){let{className,clearGradient,gradients,onChange,value,actions,content}=_ref3;return(0,react.createElement)(v_stack_component,{spacing:3,className},gradients.map(((_ref4,index)=>{let{name,gradients:gradientSet}=_ref4;return(0,react.createElement)(v_stack_component,{spacing:2,key:index},(0,react.createElement)(ColorHeading,null,name),(0,react.createElement)(SingleOrigin,(0,esm_extends.Z)({clearGradient,gradients:gradientSet,onChange,value},gradients.length===index+1?{actions,content}:{})))})))}function GradientPicker(_ref5){let{className,gradients,onChange,value,clearable=!0,disableCustomGradients=!1,__experimentalHasMultipleOrigins}=_ref5;const clearGradient=(0,react.useCallback)((()=>onChange(void 0)),[onChange]),Component=__experimentalHasMultipleOrigins?MultipleOrigin:SingleOrigin;return(0,react.createElement)(Component,{className,clearable,clearGradient,gradients,onChange,value,actions:clearable&&(0,react.createElement)(CircularOptionPicker.ButtonAction,{onClick:clearGradient},(0,i18n_build_module.__)("Clear")),content:!disableCustomGradients&&(0,react.createElement)(CustomGradientPicker,{value,onChange})})}const colorsAndGradientKeys=["colors","disableCustomColors","gradients","disableCustomGradients"];function ColorGradientControlInner(_ref){let{colors,gradients,disableCustomColors,disableCustomGradients,__experimentalHasMultipleOrigins,className,label,onColorChange,onGradientChange,colorValue,gradientValue,clearable,showTitle=!0,enableAlpha}=_ref;const canChooseAColor=onColorChange&&(!(0,lodash.isEmpty)(colors)||!disableCustomColors),canChooseAGradient=onGradientChange&&(!(0,lodash.isEmpty)(gradients)||!disableCustomGradients),[currentTab,setCurrentTab]=(0,react.useState)(gradientValue?"gradient":!!canChooseAColor&&"color");return canChooseAColor||canChooseAGradient?(0,react.createElement)(base_control.Z,{className:classnames_default()("block-editor-color-gradient-control",className)},(0,react.createElement)("fieldset",null,(0,react.createElement)(v_stack_component,{spacing:1},showTitle&&(0,react.createElement)("legend",null,(0,react.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,react.createElement)(base_control.Z.VisualLabel,null,label))),canChooseAColor&&canChooseAGradient&&(0,react.createElement)(toggle_group_control_component.Z,{value:currentTab,onChange:setCurrentTab,label:(0,i18n_build_module.__)("Select color type"),hideLabelFromVision:!0,isBlock:!0},(0,react.createElement)(toggle_group_control_option_component.Z,{value:"color",label:(0,i18n_build_module.__)("Solid")}),(0,react.createElement)(toggle_group_control_option_component.Z,{value:"gradient",label:(0,i18n_build_module.__)("Gradient")})),("color"===currentTab||!canChooseAGradient)&&(0,react.createElement)(ColorPalette,{value:colorValue,onChange:canChooseAGradient?newColor=>{onColorChange(newColor),onGradientChange()}:onColorChange,colors,disableCustomColors,__experimentalHasMultipleOrigins,clearable,enableAlpha}),("gradient"===currentTab||!canChooseAColor)&&(0,react.createElement)(GradientPicker,{value:gradientValue,onChange:canChooseAColor?newGradient=>{onGradientChange(newGradient),onColorChange()}:onGradientChange,gradients,disableCustomGradients,__experimentalHasMultipleOrigins,clearable})))):null}function ColorGradientControlSelect(props){const colorGradientSettings={};return colorGradientSettings.colors=useSetting("color.palette"),colorGradientSettings.gradients=useSetting("color.gradients"),colorGradientSettings.disableCustomColors=!useSetting("color.custom"),colorGradientSettings.disableCustomGradients=!useSetting("color.customGradient"),(0,react.createElement)(ColorGradientControlInner,(0,esm_extends.Z)({},colorGradientSettings,props))}const control=function ColorGradientControl(props){return(0,lodash.every)(colorsAndGradientKeys,(key=>props.hasOwnProperty(key)))?(0,react.createElement)(ColorGradientControlInner,props):(0,react.createElement)(ColorGradientControlSelect,props)};function useCommonSingleMultipleSelects(){return{disableCustomColors:!useSetting("color.custom"),disableCustomGradients:!useSetting("color.customGradient")}}function useMultipleOriginColorsAndGradients(){const colorGradientSettings=useCommonSingleMultipleSelects(),customColors=useSetting("color.palette.custom"),themeColors=useSetting("color.palette.theme"),defaultColors=useSetting("color.palette.default"),shouldDisplayDefaultColors=useSetting("color.defaultPalette");colorGradientSettings.colors=(0,react.useMemo)((()=>{const result=[];return themeColors&&themeColors.length&&result.push({name:(0,i18n_build_module._x)("Theme","Indicates this palette comes from the theme."),colors:themeColors}),shouldDisplayDefaultColors&&defaultColors&&defaultColors.length&&result.push({name:(0,i18n_build_module._x)("Default","Indicates this palette comes from WordPress."),colors:defaultColors}),customColors&&customColors.length&&result.push({name:(0,i18n_build_module._x)("Custom","Indicates this palette comes from the theme."),colors:customColors}),result}),[defaultColors,themeColors,customColors]);const customGradients=useSetting("color.gradients.custom"),themeGradients=useSetting("color.gradients.theme"),defaultGradients=useSetting("color.gradients.default"),shouldDisplayDefaultGradients=useSetting("color.defaultGradients");return colorGradientSettings.gradients=(0,react.useMemo)((()=>{const result=[];return themeGradients&&themeGradients.length&&result.push({name:(0,i18n_build_module._x)("Theme","Indicates this palette comes from the theme."),gradients:themeGradients}),shouldDisplayDefaultGradients&&defaultGradients&&defaultGradients.length&&result.push({name:(0,i18n_build_module._x)("Default","Indicates this palette comes from WordPress."),gradients:defaultGradients}),customGradients&&customGradients.length&&result.push({name:(0,i18n_build_module._x)("Custom","Indicates this palette is created by the user."),gradients:customGradients}),result}),[customGradients,themeGradients,defaultGradients]),colorGradientSettings}(0,colord.l7)([names.Z,a11y.Z]);const getColorObjectByAttributeValues=(colors,definedColor,customColor)=>{if(definedColor){const colorObj=(0,lodash.find)(colors,{slug:definedColor});if(colorObj)return colorObj}return{color:customColor}},getColorObjectByColorValue=(colors,colorValue)=>(0,lodash.find)(colors,{color:colorValue});function getColorClassName(colorContextName,colorSlug){if(colorContextName&&colorSlug)return`has-${(0,lodash.kebabCase)(colorSlug)}-${colorContextName}`}const border_color_EMPTY_ARRAY=[];function BorderColorEdit(props){const{attributes:{borderColor,style},setAttributes}=props,colorGradientSettings=useMultipleOriginColorsAndGradients(),availableColors=colorGradientSettings.colors.reduce(((colors,origin)=>colors.concat(origin.colors)),[]),[colorValue,setColorValue]=(0,react.useState)((()=>{var _getColorObjectByAttr,_style$border;return null===(_getColorObjectByAttr=getColorObjectByAttributeValues(availableColors,borderColor,null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.color))||void 0===_getColorObjectByAttr?void 0:_getColorObjectByAttr.color}));return(0,react.createElement)(control,(0,esm_extends.Z)({label:(0,i18n_build_module.__)("Color"),colorValue,onColorChange:value=>{setColorValue(value);const colorObject=getColorObjectByColorValue(availableColors,value),newStyle={...style,border:{...null==style?void 0:style.border,color:null!=colorObject&&colorObject.slug?void 0:value}},newNamedColor=null!=colorObject&&colorObject.slug?colorObject.slug:void 0;setAttributes({style:cleanEmptyObject(newStyle),borderColor:newNamedColor})},clearable:!1,__experimentalHasMultipleOrigins:!0},colorGradientSettings))}function border_color_addSaveProps(props,blockType,attributes){var _style$border2;if(!hasBorderSupport(blockType,"color")||shouldSkipSerialization(blockType))return props;const{borderColor,style}=attributes,borderColorClass=getColorClassName("border-color",borderColor),newClassName=classnames_default()(props.className,{"has-border-color":borderColor||(null==style||null===(_style$border2=style.border)||void 0===_style$border2?void 0:_style$border2.color),[borderColorClass]:!!borderColorClass});return props.className=newClassName||void 0,props}const withBorderColorPaletteStyles=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{var _getColorObjectByAttr2,_props$wrapperProps;const{name,attributes}=props,{borderColor}=attributes,colors=useSetting("color.palette")||border_color_EMPTY_ARRAY;if(!hasBorderSupport(name,"color")||shouldSkipSerialization(name))return(0,react.createElement)(BlockListBlock,props);const extraStyles={borderColor:borderColor?null===(_getColorObjectByAttr2=getColorObjectByAttributeValues(colors,borderColor))||void 0===_getColorObjectByAttr2?void 0:_getColorObjectByAttr2.color:void 0};let wrapperProps=props.wrapperProps;return wrapperProps={...props.wrapperProps,style:{...extraStyles,...null===(_props$wrapperProps=props.wrapperProps)||void 0===_props$wrapperProps?void 0:_props$wrapperProps.style}},(0,react.createElement)(BlockListBlock,(0,esm_extends.Z)({},props,{wrapperProps}))}));function mode(inputArray){return[...inputArray].sort(((a,b)=>inputArray.filter((v=>v===b)).length-inputArray.filter((v=>v===a)).length)).shift()}function getAllValue(){let values=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof values)return values;const parsedValues=Object.values(values).map((value=>(0,utils.n2)(value))),allValues=parsedValues.map((value=>value[0])),allUnits=parsedValues.map((value=>value[1])),value=allValues.every((v=>v===allValues[0]))?allValues[0]:"",unit=mode(allUnits),allValue=0===value||value?`${value}${unit}`:null;return allValue}function hasMixedValues(){let values=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const allValue=getAllValue(values),isMixed=isNaN(parseFloat(allValue));return isMixed}function hasDefinedValues(values){if(!values)return!1;if("string"==typeof values)return!0;return!!Object.values(values).filter((value=>!!value||0===value)).length}function AllInputControl(_ref){let{onChange,values,...props}=_ref;const allValue=getAllValue(values),isMixed=hasDefinedValues(values)&&hasMixedValues(values),allPlaceholder=isMixed?(0,i18n_build_module.__)("Mixed"):null;return(0,react.createElement)(unit_control.ZP,(0,esm_extends.Z)({},props,{"aria-label":(0,i18n_build_module.__)("Border radius"),disableUnits:isMixed,isOnly:!0,value:allValue,onChange,placeholder:allPlaceholder}))}(0,hooks_build_module.KJ)("blocks.registerBlockType","core/border/addAttributes",(function addAttributes(settings){return hasBorderSupport(settings,"color")?settings.attributes.borderColor?settings:{...settings,attributes:{...settings.attributes,borderColor:{type:"string"}}}:settings})),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/border/addSaveProps",border_color_addSaveProps),(0,hooks_build_module.KJ)("blocks.registerBlockType","core/border/addEditProps",(function addEditProps(settings){if(!hasBorderSupport(settings,"color")||shouldSkipSerialization(settings))return settings;const existingGetEditWrapperProps=settings.getEditWrapperProps;return settings.getEditWrapperProps=attributes=>{let props={};return existingGetEditWrapperProps&&(props=existingGetEditWrapperProps(attributes)),border_color_addSaveProps(props,settings,attributes)},settings})),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/border/with-border-color-palette-styles",withBorderColorPaletteStyles);const CORNERS={topLeft:(0,i18n_build_module.__)("Top left"),topRight:(0,i18n_build_module.__)("Top right"),bottomLeft:(0,i18n_build_module.__)("Bottom left"),bottomRight:(0,i18n_build_module.__)("Bottom right")};function BoxInputControls(_ref){let{onChange,values:valuesProp,...props}=_ref;const values="string"!=typeof valuesProp?valuesProp:{topLeft:valuesProp,topRight:valuesProp,bottomLeft:valuesProp,bottomRight:valuesProp};return(0,react.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(CORNERS).map((_ref2=>{let[key,label]=_ref2;return(0,react.createElement)(unit_control.ZP,(0,esm_extends.Z)({},props,{key,"aria-label":label,value:values[key],onChange:(corner=key,next=>{onChange&&onChange({...values,[corner]:next||void 0})})}));var corner})))}var library_link=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/link.js"),link_off=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/link-off.js");function LinkedButton(_ref){let{isLinked,...props}=_ref;const label=isLinked?(0,i18n_build_module.__)("Unlink Radii"):(0,i18n_build_module.__)("Link Radii");return(0,react.createElement)(tooltip.Z,{text:label},(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({},props,{className:"component-border-radius-control__linked-button",isPrimary:isLinked,isSecondary:!isLinked,isSmall:!0,icon:isLinked?library_link.Z:link_off.Z,iconSize:16,"aria-label":label})))}const DEFAULT_VALUES={topLeft:null,topRight:null,bottomLeft:null,bottomRight:null},MAX_BORDER_RADIUS_VALUES={px:100,em:20,rem:20};function BorderRadiusControl(_ref){let{onChange,values}=_ref;const[isLinked,setIsLinked]=(0,react.useState)(!hasDefinedValues(values)||!hasMixedValues(values)),units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["px","em","rem"]}),unit=function getAllUnit(){let values=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("string"==typeof values){const[,unit]=(0,utils.n2)(values);return unit||"px"}const allUnits=Object.values(values).map((value=>{const[,unit]=(0,utils.n2)(value);return unit}));return mode(allUnits)||"px"}(values),unitConfig=units&&units.find((item=>item.value===unit)),step=(null==unitConfig?void 0:unitConfig.step)||1,[allValue]=(0,utils.n2)(getAllValue(values));return(0,react.createElement)("fieldset",{className:"components-border-radius-control"},(0,react.createElement)("legend",null,(0,i18n_build_module.__)("Radius")),(0,react.createElement)("div",{className:"components-border-radius-control__wrapper"},isLinked?(0,react.createElement)(react.Fragment,null,(0,react.createElement)(AllInputControl,{className:"components-border-radius-control__unit-control",values,min:0,onChange,unit,units}),(0,react.createElement)(range_control.Z,{className:"components-border-radius-control__range-control",value:allValue,min:0,max:MAX_BORDER_RADIUS_VALUES[unit],initialPosition:0,withInputField:!1,onChange:next=>{onChange(void 0!==next?`${next}${unit}`:void 0)},step})):(0,react.createElement)(BoxInputControls,{min:0,onChange,values:values||DEFAULT_VALUES,units}),(0,react.createElement)(LinkedButton,{onClick:()=>setIsLinked(!isLinked),isLinked})))}function BorderRadiusEdit(props){var _style$border;const{attributes:{style},setAttributes}=props;return(0,react.createElement)(BorderRadiusControl,{values:null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.radius,onChange:newRadius=>{let newStyle={...style,border:{...null==style?void 0:style.border,radius:newRadius}};void 0!==newRadius&&""!==newRadius||(newStyle=cleanEmptyObject(newStyle)),setAttributes({style:newStyle})}})}const line_solid=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,react.createElement)(svg.y$,{d:"M5 11.25h14v1.5H5z"})),line_dashed=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"})),line_dotted=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},(0,react.createElement)(svg.y$,{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"})),BORDER_STYLES=[{label:(0,i18n_build_module.__)("Solid"),icon:line_solid,value:"solid"},{label:(0,i18n_build_module.__)("Dashed"),icon:line_dashed,value:"dashed"},{label:(0,i18n_build_module.__)("Dotted"),icon:line_dotted,value:"dotted"}];function BorderStyleControl(_ref){let{onChange,value}=_ref;return(0,react.createElement)("fieldset",{className:"components-border-style-control"},(0,react.createElement)("legend",null,(0,i18n_build_module.__)("Style")),(0,react.createElement)("div",{className:"components-border-style-control__buttons"},BORDER_STYLES.map((borderStyle=>(0,react.createElement)(build_module_button.Z,{key:borderStyle.value,icon:borderStyle.icon,isSmall:!0,isPressed:borderStyle.value===value,onClick:()=>onChange(borderStyle.value===value?void 0:borderStyle.value),"aria-label":borderStyle.label})))))}const BorderStyleEdit=props=>{var _style$border;const{attributes:{style},setAttributes}=props;return(0,react.createElement)(BorderStyleControl,{value:null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.style,onChange:newBorderStyle=>{const newStyleAttributes={...style,border:{...null==style?void 0:style.border,style:newBorderStyle}};setAttributes({style:cleanEmptyObject(newStyleAttributes)})}})},BorderWidthEdit=props=>{const{attributes:{borderColor,style},setAttributes}=props,{width,color:customBorderColor,style:borderStyle}=(null==style?void 0:style.border)||{},[styleSelection,setStyleSelection]=(0,react.useState)(),[colorSelection,setColorSelection]=(0,react.useState)();(0,react.useEffect)((()=>{"none"!==borderStyle&&setStyleSelection(borderStyle)}),[borderStyle]),(0,react.useEffect)((()=>{(borderColor||customBorderColor)&&setColorSelection({name:borderColor||void 0,color:customBorderColor||void 0})}),[borderColor,customBorderColor]);const units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["px","em","rem"]});return(0,react.createElement)(unit_control.ZP,{value:width,label:(0,i18n_build_module.__)("Width"),min:0,onChange:newWidth=>{let newStyle={...style,border:{...null==style?void 0:style.border,width:newWidth}},borderPaletteColor=borderColor;const hasZeroWidth=0===parseFloat(newWidth);hasZeroWidth&&(borderPaletteColor=void 0,newStyle.border.color=void 0,newStyle.border.style="none"),hasZeroWidth||"none"!==borderStyle||(newStyle.border.style=styleSelection),hasZeroWidth||void 0!==borderColor||(borderPaletteColor=null==colorSelection?void 0:colorSelection.name,newStyle.border.color=null==colorSelection?void 0:colorSelection.color),void 0!==newWidth&&""!==newWidth||(newStyle=cleanEmptyObject(newStyle)),setAttributes({borderColor:borderPaletteColor,style:newStyle})},units})};function BorderPanel(props){const isDisabled=useIsBorderDisabled(props),isSupported=hasBorderSupport(props.name),isColorSupported=useSetting("border.color")&&hasBorderSupport(props.name,"color"),isRadiusSupported=useSetting("border.radius")&&hasBorderSupport(props.name,"radius"),isStyleSupported=useSetting("border.style")&&hasBorderSupport(props.name,"style"),isWidthSupported=useSetting("border.width")&&hasBorderSupport(props.name,"width");return isDisabled||!isSupported?null:(0,react.createElement)(inspector_controls,null,(0,react.createElement)(body.Z,{className:"block-editor-hooks__border-controls",title:(0,i18n_build_module.__)("Border"),initialOpen:!1},(isWidthSupported||isStyleSupported)&&(0,react.createElement)("div",{className:"block-editor-hooks__border-controls-row"},isWidthSupported&&(0,react.createElement)(BorderWidthEdit,props),isStyleSupported&&(0,react.createElement)(BorderStyleEdit,props)),isColorSupported&&(0,react.createElement)(BorderColorEdit,props),isRadiusSupported&&(0,react.createElement)(BorderRadiusEdit,props)))}function hasBorderSupport(blockName){let feature=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if("web"!==platform.Z.OS)return!1;const support=(0,build_module.Dx)(blockName,"__experimentalBorder");return!0===support||("any"===feature?!!(null!=support&&support.color||null!=support&&support.radius||null!=support&&support.width||null!=support&&support.style):!(null==support||!support[feature]))}function shouldSkipSerialization(blockType){const support=(0,build_module.Dx)(blockType,"__experimentalBorder");return null==support?void 0:support.__experimentalSkipSerialization}const useIsBorderDisabled=()=>[!useSetting("border.color"),!useSetting("border.radius"),!useSetting("border.style"),!useSetting("border.width")].every(Boolean);function __experimentalGetGradientClass(gradientSlug){if(gradientSlug)return`has-${gradientSlug}-gradient-background`}function getGradientValueBySlug(gradients,slug){const gradient=(0,lodash.find)(gradients,["slug",slug]);return gradient&&gradient.gradient}function __experimentalGetGradientObjectByGradientValue(gradients,value){return(0,lodash.find)(gradients,["gradient",value])}function getGradientSlugByValue(gradients,value){const gradient=__experimentalGetGradientObjectByGradientValue(gradients,value);return gradient&&gradient.slug}function __experimentalUseGradient(){let{gradientAttribute="gradient",customGradientAttribute="customGradient"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId}=useBlockEditContext(),{gradients:gradientsPerOrigin}=useSetting("color")||{},allGradients=(0,react.useMemo)((()=>[...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.custom)||[],...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.theme)||[],...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.default)||[]]),[gradientsPerOrigin]),{gradient,customGradient}=(0,use_select.Z)((select=>{const{getBlockAttributes}=select(store),attributes=getBlockAttributes(clientId)||{};return{customGradient:attributes[customGradientAttribute],gradient:attributes[gradientAttribute]}}),[clientId,gradientAttribute,customGradientAttribute]),{updateBlockAttributes}=(0,use_dispatch.Z)(store),setGradient=(0,react.useCallback)((newGradientValue=>{const slug=getGradientSlugByValue(allGradients,newGradientValue);updateBlockAttributes(clientId,slug?{[gradientAttribute]:slug,[customGradientAttribute]:void 0}:{[gradientAttribute]:void 0,[customGradientAttribute]:newGradientValue})}),[allGradients,clientId,updateBlockAttributes]),gradientClass=__experimentalGetGradientClass(gradient);let gradientValue;return gradientValue=gradient?getGradientValueBySlug(allGradients,gradient):customGradient,{gradientClass,gradientValue,setGradient}}const color_indicator=_ref=>{let{className,colorValue,...props}=_ref;return(0,react.createElement)("span",(0,esm_extends.Z)({className:classnames_default()("component-color-indicator",className),style:{background:colorValue}},props))},colorIndicatorAriaLabel=(0,i18n_build_module.__)("(%s: color %s)"),gradientIndicatorAriaLabel=(0,i18n_build_module.__)("(%s: gradient %s)"),panel_color_gradient_settings_colorsAndGradientKeys=["colors","disableCustomColors","gradients","disableCustomGradients"],Indicators=_ref=>{let{colors,gradients,settings}=_ref;return settings.map(((_ref2,index)=>{let ariaLabel,{colorValue,gradientValue,label,colors:availableColors,gradients:availableGradients}=_ref2;if(!colorValue&&!gradientValue)return null;if(colorValue){const colorObject=getColorObjectByColorValue(availableColors||colors,colorValue);ariaLabel=(0,i18n_build_module.gB)(colorIndicatorAriaLabel,label.toLowerCase(),colorObject&&colorObject.name||colorValue)}else{const gradientObject=__experimentalGetGradientObjectByGradientValue(availableGradients||gradients,colorValue);ariaLabel=(0,i18n_build_module.gB)(gradientIndicatorAriaLabel,label.toLowerCase(),gradientObject&&gradientObject.name||gradientValue)}return(0,react.createElement)(color_indicator,{key:index,colorValue:colorValue||gradientValue,"aria-label":ariaLabel})}))},PanelColorGradientSettingsInner=_ref3=>{let{className,colors,gradients,disableCustomColors,disableCustomGradients,children,settings,title,showTitle=!0,__experimentalHasMultipleOrigins,enableAlpha,...props}=_ref3;if((0,lodash.isEmpty)(colors)&&(0,lodash.isEmpty)(gradients)&&disableCustomColors&&disableCustomGradients&&(0,lodash.every)(settings,(setting=>(0,lodash.isEmpty)(setting.colors)&&(0,lodash.isEmpty)(setting.gradients)&&(void 0===setting.disableCustomColors||setting.disableCustomColors)&&(void 0===setting.disableCustomGradients||setting.disableCustomGradients))))return null;const titleElement=(0,react.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},title,(0,react.createElement)(Indicators,{colors,gradients,settings}));return(0,react.createElement)(body.Z,(0,esm_extends.Z)({className:classnames_default()("block-editor-panel-color-gradient-settings",className),title:showTitle?titleElement:void 0},props),settings.map(((setting,index)=>(0,react.createElement)(control,(0,esm_extends.Z)({showTitle,key:index,colors,gradients,disableCustomColors,disableCustomGradients,__experimentalHasMultipleOrigins,enableAlpha},setting)))),children)},PanelColorGradientSettingsSingleSelect=props=>{const colorGradientSettings=useCommonSingleMultipleSelects();return colorGradientSettings.colors=useSetting("color.palette"),colorGradientSettings.gradients=useSetting("color.gradients"),(0,react.createElement)(PanelColorGradientSettingsInner,(0,esm_extends.Z)({},colorGradientSettings,props))},PanelColorGradientSettingsMultipleSelect=props=>{const colorGradientSettings=useMultipleOriginColorsAndGradients();return(0,react.createElement)(PanelColorGradientSettingsInner,(0,esm_extends.Z)({},colorGradientSettings,props))},panel_color_gradient_settings=props=>(0,lodash.every)(panel_color_gradient_settings_colorsAndGradientKeys,(key=>props.hasOwnProperty(key)))?(0,react.createElement)(PanelColorGradientSettingsInner,props):props.__experimentalHasMultipleOrigins?(0,react.createElement)(PanelColorGradientSettingsMultipleSelect,props):(0,react.createElement)(PanelColorGradientSettingsSingleSelect,props);var notice=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/notice/index.js");function ContrastCheckerMessage(_ref){let{colordBackgroundColor,colordTextColor,backgroundColor,textColor}=_ref;const msg=colordBackgroundColor.brightness(){(0,a11y_build_module.D)((0,i18n_build_module.__)("This color combination may be hard for people to read."))}),[backgroundColor,textColor]),(0,react.createElement)("div",{className:"block-editor-contrast-checker"},(0,react.createElement)(notice.Z,{spokenMessage:null,status:"warning",isDismissible:!1},msg))}(0,colord.l7)([names.Z,a11y.Z]);const contrast_checker=function ContrastChecker(_ref2){let{backgroundColor,fallbackBackgroundColor,fallbackTextColor,fontSize,isLargeText,textColor}=_ref2;if(!backgroundColor&&!fallbackBackgroundColor||!textColor&&!fallbackTextColor)return null;const colordBackgroundColor=(0,colord.Vi)(backgroundColor||fallbackBackgroundColor),colordTextColor=(0,colord.Vi)(textColor||fallbackTextColor);return 1!==colordBackgroundColor.alpha()||1!==colordTextColor.alpha()||colordTextColor.isReadable(colordBackgroundColor,{level:"AA",size:isLargeText||!1!==isLargeText&&fontSize>=24?"large":"small"})?null:(0,react.createElement)(ContrastCheckerMessage,{backgroundColor,textColor,colordBackgroundColor,colordTextColor})};function color_panel_getComputedStyle(node){return node.ownerDocument.defaultView.getComputedStyle(node)}function ColorPanel(_ref){let{settings,clientId,enableContrastChecking=!0,showTitle=!0}=_ref;const[detectedBackgroundColor,setDetectedBackgroundColor]=(0,react.useState)(),[detectedColor,setDetectedColor]=(0,react.useState)(),ref=useBlockRef(clientId);return(0,react.useEffect)((()=>{if(!enableContrastChecking)return;if(!ref.current)return;setDetectedColor(color_panel_getComputedStyle(ref.current).color);let backgroundColorNode=ref.current,backgroundColor=color_panel_getComputedStyle(backgroundColorNode).backgroundColor;for(;"rgba(0, 0, 0, 0)"===backgroundColor&&backgroundColorNode.parentNode&&backgroundColorNode.parentNode.nodeType===backgroundColorNode.parentNode.ELEMENT_NODE;)backgroundColorNode=backgroundColorNode.parentNode,backgroundColor=color_panel_getComputedStyle(backgroundColorNode).backgroundColor;setDetectedBackgroundColor(backgroundColor)})),(0,react.createElement)(inspector_controls,null,(0,react.createElement)(panel_color_gradient_settings,{title:(0,i18n_build_module.__)("Color"),initialOpen:!1,settings,showTitle,__experimentalHasMultipleOrigins:!0},enableContrastChecking&&(0,react.createElement)(contrast_checker,{backgroundColor:detectedBackgroundColor,textColor:detectedColor})))}const hasColorSupport=blockType=>{const colorSupport=(0,build_module.Dx)(blockType,"color");return colorSupport&&(!0===colorSupport.link||!0===colorSupport.gradient||!1!==colorSupport.background||!1!==colorSupport.text)},color_shouldSkipSerialization=blockType=>{const colorSupport=(0,build_module.Dx)(blockType,"color");return null==colorSupport?void 0:colorSupport.__experimentalSkipSerialization},hasGradientSupport=blockType=>{const colorSupport=(0,build_module.Dx)(blockType,"color");return(0,lodash.isObject)(colorSupport)&&!!colorSupport.gradients};function color_addSaveProps(props,blockType,attributes){var _style$color,_style$color2,_style$color3,_style$color4,_style$elements,_style$elements$link;if(!hasColorSupport(blockType)||color_shouldSkipSerialization(blockType))return props;const hasGradient=hasGradientSupport(blockType),{backgroundColor,textColor,gradient,style}=attributes,backgroundClass=getColorClassName("background-color",backgroundColor),gradientClass=__experimentalGetGradientClass(gradient),textClass=getColorClassName("color",textColor),newClassName=classnames_default()(props.className,textClass,gradientClass,{[backgroundClass]:!(hasGradient&&null!=style&&null!==(_style$color=style.color)&&void 0!==_style$color&&_style$color.gradient||!backgroundClass),"has-text-color":textColor||(null==style||null===(_style$color2=style.color)||void 0===_style$color2?void 0:_style$color2.text),"has-background":backgroundColor||(null==style||null===(_style$color3=style.color)||void 0===_style$color3?void 0:_style$color3.background)||hasGradient&&(gradient||(null==style||null===(_style$color4=style.color)||void 0===_style$color4?void 0:_style$color4.gradient)),"has-link-color":null==style||null===(_style$elements=style.elements)||void 0===_style$elements||null===(_style$elements$link=_style$elements.link)||void 0===_style$elements$link?void 0:_style$elements$link.color});return props.className=newClassName||void 0,props}const getLinkColorFromAttributeValue=(colors,value)=>{const attributeParsed=/var:preset\|color\|(.+)/.exec(value);return attributeParsed&&attributeParsed[1]?getColorObjectByAttributeValues(colors,attributeParsed[1]).color:value};function ColorEdit(props){var _solidsPerOrigin$them,_gradientsPerOrigin$t,_style$color6,_style$color7,_style$color8,_style$elements2,_style$elements2$link,_style$elements2$link2,_style$elements3,_style$elements3$link,_style$elements3$link2;const{name:blockName,attributes}=props,{palette:solidsPerOrigin,gradients:gradientsPerOrigin,customGradient:areCustomGradientsEnabled,custom:areCustomSolidsEnabled,text:isTextEnabled,background:isBackgroundEnabled,link:isLinkEnabled}=useSetting("color")||{},solidsEnabled=areCustomSolidsEnabled||!(null!=solidsPerOrigin&&solidsPerOrigin.theme)||(null==solidsPerOrigin||null===(_solidsPerOrigin$them=solidsPerOrigin.theme)||void 0===_solidsPerOrigin$them?void 0:_solidsPerOrigin$them.length)>0,gradientsEnabled=areCustomGradientsEnabled||!(null!=gradientsPerOrigin&&gradientsPerOrigin.theme)||(null==gradientsPerOrigin||null===(_gradientsPerOrigin$t=gradientsPerOrigin.theme)||void 0===_gradientsPerOrigin$t?void 0:_gradientsPerOrigin$t.length)>0,allSolids=(0,react.useMemo)((()=>[...(null==solidsPerOrigin?void 0:solidsPerOrigin.custom)||[],...(null==solidsPerOrigin?void 0:solidsPerOrigin.theme)||[],...(null==solidsPerOrigin?void 0:solidsPerOrigin.default)||[]]),[solidsPerOrigin]),allGradients=(0,react.useMemo)((()=>[...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.custom)||[],...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.theme)||[],...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.default)||[]]),[gradientsPerOrigin]),localAttributes=(0,react.useRef)(attributes);if((0,react.useEffect)((()=>{localAttributes.current=attributes}),[attributes]),!hasColorSupport(blockName))return null;const hasLinkColor=(blockType=>{if("web"!==platform.Z.OS)return!1;const colorSupport=(0,build_module.Dx)(blockType,"color");return(0,lodash.isObject)(colorSupport)&&!!colorSupport.link})(blockName)&&isLinkEnabled&&solidsEnabled,hasTextColor=(blockType=>{const colorSupport=(0,build_module.Dx)(blockType,"color");return colorSupport&&!1!==colorSupport.text})(blockName)&&isTextEnabled&&solidsEnabled,hasBackgroundColor=(blockType=>{const colorSupport=(0,build_module.Dx)(blockType,"color");return colorSupport&&!1!==colorSupport.background})(blockName)&&isBackgroundEnabled&&solidsEnabled,hasGradientColor=hasGradientSupport(blockName)&&gradientsEnabled;if(!(hasLinkColor||hasTextColor||hasBackgroundColor||hasGradientColor))return null;const{style,textColor,backgroundColor,gradient}=attributes;let gradientValue;if(hasGradientColor&&gradient)gradientValue=getGradientValueBySlug(allGradients,gradient);else if(hasGradientColor){var _style$color5;gradientValue=null==style||null===(_style$color5=style.color)||void 0===_style$color5?void 0:_style$color5.gradient}const onChangeColor=name=>value=>{var _localAttributes$curr,_localAttributes$curr2;const colorObject=getColorObjectByColorValue(allSolids,value),attributeName=name+"Color",newStyle={...localAttributes.current.style,color:{...null===(_localAttributes$curr=localAttributes.current)||void 0===_localAttributes$curr||null===(_localAttributes$curr2=_localAttributes$curr.style)||void 0===_localAttributes$curr2?void 0:_localAttributes$curr2.color,[name]:null!=colorObject&&colorObject.slug?void 0:value}},newNamedColor=null!=colorObject&&colorObject.slug?colorObject.slug:void 0,newAttributes={style:cleanEmptyObject(newStyle),[attributeName]:newNamedColor};props.setAttributes(newAttributes),localAttributes.current={...localAttributes.current,...newAttributes}};return(0,react.createElement)(ColorPanel,{enableContrastChecking:!("web"!==platform.Z.OS||gradient||null!=style&&null!==(_style$color6=style.color)&&void 0!==_style$color6&&_style$color6.gradient),clientId:props.clientId,settings:[...hasTextColor?[{label:(0,i18n_build_module.__)("Text color"),onColorChange:onChangeColor("text"),colorValue:getColorObjectByAttributeValues(allSolids,textColor,null==style||null===(_style$color7=style.color)||void 0===_style$color7?void 0:_style$color7.text).color}]:[],...hasBackgroundColor||hasGradientColor?[{label:(0,i18n_build_module.__)("Background color"),onColorChange:hasBackgroundColor?onChangeColor("background"):void 0,colorValue:getColorObjectByAttributeValues(allSolids,backgroundColor,null==style||null===(_style$color8=style.color)||void 0===_style$color8?void 0:_style$color8.background).color,gradientValue,onGradientChange:hasGradientColor?value=>{const slug=getGradientSlugByValue(allGradients,value);let newAttributes;if(slug){var _localAttributes$curr3,_localAttributes$curr4,_localAttributes$curr5;const newStyle={...null===(_localAttributes$curr3=localAttributes.current)||void 0===_localAttributes$curr3?void 0:_localAttributes$curr3.style,color:{...null===(_localAttributes$curr4=localAttributes.current)||void 0===_localAttributes$curr4||null===(_localAttributes$curr5=_localAttributes$curr4.style)||void 0===_localAttributes$curr5?void 0:_localAttributes$curr5.color,gradient:void 0}};newAttributes={style:cleanEmptyObject(newStyle),gradient:slug}}else{var _localAttributes$curr6,_localAttributes$curr7,_localAttributes$curr8;const newStyle={...null===(_localAttributes$curr6=localAttributes.current)||void 0===_localAttributes$curr6?void 0:_localAttributes$curr6.style,color:{...null===(_localAttributes$curr7=localAttributes.current)||void 0===_localAttributes$curr7||null===(_localAttributes$curr8=_localAttributes$curr7.style)||void 0===_localAttributes$curr8?void 0:_localAttributes$curr8.color,gradient:value}};newAttributes={style:cleanEmptyObject(newStyle),gradient:void 0}}props.setAttributes(newAttributes),localAttributes.current={...localAttributes.current,...newAttributes}}:void 0}]:[],...hasLinkColor?[{label:(0,i18n_build_module.__)("Link Color"),onColorChange:value=>{const colorObject=getColorObjectByColorValue(allSolids,value),newLinkColorValue=null!=colorObject&&colorObject.slug?`var:preset|color|${colorObject.slug}`:value,newStyle=cleanEmptyObject(function immutableSet(object,path,value){return(0,lodash.setWith)(object?(0,lodash.clone)(object):{},path,value,lodash.clone)}(style,["elements","link","color","text"],newLinkColorValue));props.setAttributes({style:newStyle})},colorValue:getLinkColorFromAttributeValue(allSolids,null==style||null===(_style$elements2=style.elements)||void 0===_style$elements2||null===(_style$elements2$link=_style$elements2.link)||void 0===_style$elements2$link||null===(_style$elements2$link2=_style$elements2$link.color)||void 0===_style$elements2$link2?void 0:_style$elements2$link2.text),clearable:!(null==style||null===(_style$elements3=style.elements)||void 0===_style$elements3||null===(_style$elements3$link=_style$elements3.link)||void 0===_style$elements3$link||null===(_style$elements3$link2=_style$elements3$link.color)||void 0===_style$elements3$link2||!_style$elements3$link2.text)}]:[]]})}const withColorPaletteStyles=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{var _getColorObjectByAttr,_getColorObjectByAttr2,_props$wrapperProps;const{name,attributes}=props,{backgroundColor,textColor}=attributes,{palette:solidsPerOrigin}=useSetting("color")||{},colors=(0,react.useMemo)((()=>[...(null==solidsPerOrigin?void 0:solidsPerOrigin.custom)||[],...(null==solidsPerOrigin?void 0:solidsPerOrigin.theme)||[],...(null==solidsPerOrigin?void 0:solidsPerOrigin.default)||[]]),[solidsPerOrigin]);if(!hasColorSupport(name)||color_shouldSkipSerialization(name))return(0,react.createElement)(BlockListBlock,props);const extraStyles={color:textColor?null===(_getColorObjectByAttr=getColorObjectByAttributeValues(colors,textColor))||void 0===_getColorObjectByAttr?void 0:_getColorObjectByAttr.color:void 0,backgroundColor:backgroundColor?null===(_getColorObjectByAttr2=getColorObjectByAttributeValues(colors,backgroundColor))||void 0===_getColorObjectByAttr2?void 0:_getColorObjectByAttr2.color:void 0};let wrapperProps=props.wrapperProps;return wrapperProps={...props.wrapperProps,style:{...extraStyles,...null===(_props$wrapperProps=props.wrapperProps)||void 0===_props$wrapperProps?void 0:_props$wrapperProps.style}},(0,react.createElement)(BlockListBlock,(0,esm_extends.Z)({},props,{wrapperProps}))}));(0,hooks_build_module.KJ)("blocks.registerBlockType","core/color/addAttribute",(function color_addAttributes(settings){return hasColorSupport(settings)?(settings.attributes.backgroundColor||Object.assign(settings.attributes,{backgroundColor:{type:"string"}}),settings.attributes.textColor||Object.assign(settings.attributes,{textColor:{type:"string"}}),hasGradientSupport(settings)&&!settings.attributes.gradient&&Object.assign(settings.attributes,{gradient:{type:"string"}}),settings):settings})),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/color/addSaveProps",color_addSaveProps),(0,hooks_build_module.KJ)("blocks.registerBlockType","core/color/addEditProps",(function color_addEditProps(settings){if(!hasColorSupport(settings)||color_shouldSkipSerialization(settings))return settings;const existingGetEditWrapperProps=settings.getEditWrapperProps;return settings.getEditWrapperProps=attributes=>{let props={};return existingGetEditWrapperProps&&(props=existingGetEditWrapperProps(attributes)),color_addSaveProps(props,settings,attributes)},settings})),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/color/with-color-palette-styles",withColorPaletteStyles);var tools_panel_item_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/tools-panel/tools-panel-item/component.js"),custom_select_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/custom-select-control/index.js");const FONT_STYLES=[{name:(0,i18n_build_module.__)("Regular"),value:"normal"},{name:(0,i18n_build_module.__)("Italic"),value:"italic"}],FONT_WEIGHTS=[{name:(0,i18n_build_module.__)("Thin"),value:"100"},{name:(0,i18n_build_module.__)("Extra Light"),value:"200"},{name:(0,i18n_build_module.__)("Light"),value:"300"},{name:(0,i18n_build_module.__)("Regular"),value:"400"},{name:(0,i18n_build_module.__)("Medium"),value:"500"},{name:(0,i18n_build_module.__)("Semi Bold"),value:"600"},{name:(0,i18n_build_module.__)("Bold"),value:"700"},{name:(0,i18n_build_module.__)("Extra Bold"),value:"800"},{name:(0,i18n_build_module.__)("Black"),value:"900"}],getFontAppearanceLabel=(hasFontStyles,hasFontWeights)=>hasFontStyles?hasFontWeights?(0,i18n_build_module.__)("Appearance"):(0,i18n_build_module.__)("Font style"):(0,i18n_build_module.__)("Font weight");function FontAppearanceControl(props){const{onChange,hasFontStyles=!0,hasFontWeights=!0,value:{fontStyle,fontWeight}}=props,hasStylesOrWeights=hasFontStyles||hasFontWeights,label=getFontAppearanceLabel(hasFontStyles,hasFontWeights),defaultOption={key:"default",name:(0,i18n_build_module.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},selectOptions=(0,react.useMemo)((()=>hasFontStyles&&hasFontWeights?(()=>{const combinedOptions=[defaultOption];return FONT_STYLES.forEach((_ref=>{let{name:styleName,value:styleValue}=_ref;FONT_WEIGHTS.forEach((_ref2=>{let{name:weightName,value:weightValue}=_ref2;const optionName="normal"===styleValue?weightName:(0,i18n_build_module.gB)((0,i18n_build_module.__)("%1$s %2$s"),weightName,styleName);combinedOptions.push({key:`${styleValue}-${weightValue}`,name:optionName,style:{fontStyle:styleValue,fontWeight:weightValue}})}))})),combinedOptions})():hasFontStyles?(()=>{const combinedOptions=[defaultOption];return FONT_STYLES.forEach((_ref3=>{let{name,value}=_ref3;combinedOptions.push({key:value,name,style:{fontStyle:value,fontWeight:void 0}})})),combinedOptions})():(()=>{const combinedOptions=[defaultOption];return FONT_WEIGHTS.forEach((_ref4=>{let{name,value}=_ref4;combinedOptions.push({key:value,name,style:{fontStyle:void 0,fontWeight:value}})})),combinedOptions})()),[props.options]),currentSelection=selectOptions.find((option=>option.style.fontStyle===fontStyle&&option.style.fontWeight===fontWeight))||selectOptions[0];return hasStylesOrWeights&&(0,react.createElement)(custom_select_control.Z,{className:"components-font-appearance-control",label,describedBy:currentSelection?hasFontStyles?hasFontWeights?(0,i18n_build_module.gB)((0,i18n_build_module.__)("Currently selected font appearance: %s"),currentSelection.name):(0,i18n_build_module.gB)((0,i18n_build_module.__)("Currently selected font style: %s"),currentSelection.name):(0,i18n_build_module.gB)((0,i18n_build_module.__)("Currently selected font weight: %s"),currentSelection.name):(0,i18n_build_module.__)("No selected font appearance"),options:selectOptions,value:currentSelection,onChange:_ref5=>{let{selectedItem}=_ref5;return onChange(selectedItem.style)}})}function LineHeightControl(_ref){let{value:lineHeight,onChange}=_ref;const isDefined=function isLineHeightDefined(lineHeight){return void 0!==lineHeight&&""!==lineHeight}(lineHeight),value=isDefined?lineHeight:"";return(0,react.createElement)("div",{className:"block-editor-line-height-control"},(0,react.createElement)(text_control.Z,{autoComplete:"off",onKeyDown:event=>{const{keyCode}=event;keyCode!==keycodes_build_module.xE||isDefined||(event.preventDefault(),onChange("0"))},onChange:nextValue=>{if(isDefined)return void onChange(nextValue);let adjustedNextValue=nextValue;switch(nextValue){case"0.1":adjustedNextValue=1.6;break;case"0":adjustedNextValue=1.4}onChange(adjustedNextValue)},label:(0,i18n_build_module.__)("Line height"),placeholder:1.5,step:.1,type:"number",value,min:0}))}function LineHeightEdit(props){var _style$typography;const{attributes:{style},setAttributes}=props;return(0,react.createElement)(LineHeightControl,{value:null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.lineHeight,onChange:newLineHeightValue=>{const newStyle={...style,typography:{...null==style?void 0:style.typography,lineHeight:newLineHeightValue}};setAttributes({style:cleanEmptyObject(newStyle)})}})}function useIsLineHeightDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const isDisabled=!useSetting("typography.lineHeight");return!(0,build_module.zb)(blockName,"typography.lineHeight")||isDisabled}function FontAppearanceEdit(props){var _style$typography,_style$typography2;const{attributes:{style},setAttributes}=props,hasFontStyles=!useIsFontStyleDisabled(props),hasFontWeights=!useIsFontWeightDisabled(props),fontStyle=null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.fontStyle,fontWeight=null==style||null===(_style$typography2=style.typography)||void 0===_style$typography2?void 0:_style$typography2.fontWeight;return(0,react.createElement)(FontAppearanceControl,{onChange:newStyles=>{setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,fontStyle:newStyles.fontStyle,fontWeight:newStyles.fontWeight}})})},hasFontStyles,hasFontWeights,value:{fontStyle,fontWeight}})}function useIsFontStyleDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const styleSupport=(0,build_module.zb)(blockName,"typography.__experimentalFontStyle"),hasFontStyles=useSetting("typography.fontStyle");return!styleSupport||!hasFontStyles}function useIsFontWeightDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const weightSupport=(0,build_module.zb)(blockName,"typography.__experimentalFontWeight"),hasFontWeights=useSetting("typography.fontWeight");return!weightSupport||!hasFontWeights}function useIsFontAppearanceDisabled(props){const stylesDisabled=useIsFontStyleDisabled(props),weightsDisabled=useIsFontWeightDisabled(props);return stylesDisabled&&weightsDisabled}function FontFamilyControl(_ref){let{value="",onChange,fontFamilies,...props}=_ref;const blockLevelFontFamilies=useSetting("typography.fontFamilies");if(fontFamilies||(fontFamilies=blockLevelFontFamilies),(0,lodash.isEmpty)(fontFamilies))return null;const options=[{value:"",label:(0,i18n_build_module.__)("Default")},...fontFamilies.map((_ref2=>{let{fontFamily,name}=_ref2;return{value:fontFamily,label:name||fontFamily}}))];return(0,react.createElement)(select_control.Z,(0,esm_extends.Z)({label:(0,i18n_build_module.__)("Font family"),options,value,onChange,labelPosition:"top"},props))}const FONT_FAMILY_SUPPORT_KEY="typography.__experimentalFontFamily";function font_family_addSaveProps(props,blockType,attributes){if(!(0,build_module.zb)(blockType,FONT_FAMILY_SUPPORT_KEY))return props;if((0,build_module.zb)(blockType,"typography.__experimentalSkipSerialization"))return props;if(null==attributes||!attributes.fontFamily)return props;const classes=new TokenList(props.className);classes.add(`has-${(0,lodash.kebabCase)(null==attributes?void 0:attributes.fontFamily)}-font-family`);const newClassName=classes.value;return props.className=newClassName||void 0,props}function FontFamilyEdit(_ref){var _find;let{setAttributes,attributes:{fontFamily}}=_ref;const fontFamilies=useSetting("typography.fontFamilies"),value=null===(_find=(0,lodash.find)(fontFamilies,(_ref2=>{let{slug}=_ref2;return fontFamily===slug})))||void 0===_find?void 0:_find.fontFamily;return(0,react.createElement)(FontFamilyControl,{className:"block-editor-hooks-font-family-control",fontFamilies,value,onChange:function onChange(newValue){const predefinedFontFamily=(0,lodash.find)(fontFamilies,(_ref3=>{let{fontFamily:f}=_ref3;return f===newValue}));setAttributes({fontFamily:null==predefinedFontFamily?void 0:predefinedFontFamily.slug})}})}function useIsFontFamilyDisabled(_ref4){let{name}=_ref4;const fontFamilies=useSetting("typography.fontFamilies");return!fontFamilies||0===fontFamilies.length||!(0,build_module.zb)(name,FONT_FAMILY_SUPPORT_KEY)}(0,hooks_build_module.KJ)("blocks.registerBlockType","core/fontFamily/addAttribute",(function font_family_addAttributes(settings){return(0,build_module.zb)(settings,FONT_FAMILY_SUPPORT_KEY)?(settings.attributes.fontFamily||Object.assign(settings.attributes,{fontFamily:{type:"string"}}),settings):settings})),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",font_family_addSaveProps),(0,hooks_build_module.KJ)("blocks.registerBlockType","core/fontFamily/addEditProps",(function font_family_addEditProps(settings){if(!(0,build_module.zb)(settings,FONT_FAMILY_SUPPORT_KEY))return settings;const existingGetEditWrapperProps=settings.getEditWrapperProps;return settings.getEditWrapperProps=attributes=>{let props={};return existingGetEditWrapperProps&&(props=existingGetEditWrapperProps(attributes)),font_family_addSaveProps(props,settings,attributes)},settings}));const getFontSize=(fontSizes,fontSizeAttribute,customFontSizeAttribute)=>{if(fontSizeAttribute){const fontSizeObject=(0,lodash.find)(fontSizes,{slug:fontSizeAttribute});if(fontSizeObject)return fontSizeObject}return{size:customFontSizeAttribute}};function getFontSizeClass(fontSizeSlug){if(fontSizeSlug)return`has-${(0,lodash.kebabCase)(fontSizeSlug)}-font-size`}const DEFAULT_FONT_SIZE_OPTION={slug:"default",name:(0,i18n_build_module.__)("Default")},CUSTOM_FONT_SIZE_OPTION={slug:"custom",name:(0,i18n_build_module.__)("Custom")};function splitValueAndUnitFromSize(size){const[,numericValue,unit]=size.split(/(\d+)/);return[numericValue,unit]}function isSimpleCssValue(value){return/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i.test(value)}function getFontSizeOptions(useSelectControl,optionsArray,disableCustomFontSizes){return disableCustomFontSizes&&!optionsArray.length?null:useSelectControl?function getSelectOptions(optionsArray,disableCustomFontSizes){return[DEFAULT_FONT_SIZE_OPTION,...optionsArray,...disableCustomFontSizes?[]:[CUSTOM_FONT_SIZE_OPTION]].map((_ref=>{let{slug,name,size}=_ref;return{key:slug,name,size,__experimentalHint:size&&isSimpleCssValue(size)&&parseInt(size)}}))}(optionsArray,disableCustomFontSizes):function getToggleGroupOptions(optionsArray){return optionsArray.map((_ref2=>{let{slug,size,name}=_ref2,label=size;if("string"==typeof size){const[numericValue]=splitValueAndUnitFromSize(size);label=numericValue}return{key:slug,value:size,label,name}}))}(optionsArray)}const font_size_picker=(0,react.forwardRef)((function FontSizePicker(_ref,ref){var _fontSizes$,_value$endsWith;let{fallbackFontSize,fontSizes=[],disableCustomFontSizes=!1,onChange,value,withSlider=!1,withReset=!0}=_ref;const hasUnits=[typeof value,typeof(null==fontSizes||null===(_fontSizes$=fontSizes[0])||void 0===_fontSizes$?void 0:_fontSizes$.size)].includes("string"),noUnitsValue=hasUnits?parseInt(value):value,isPixelValue="number"==typeof value||(null==value||null===(_value$endsWith=value.endsWith)||void 0===_value$endsWith?void 0:_value$endsWith.call(value,"px")),units=(0,utils.nj)({availableUnits:["px","em","rem"]}),shouldUseSelectControl=fontSizes.length>5||fontSizes.some((_ref2=>{let{size}=_ref2;return!isSimpleCssValue(size)})),options=(0,react.useMemo)((()=>getFontSizeOptions(shouldUseSelectControl,fontSizes,disableCustomFontSizes)),[shouldUseSelectControl,fontSizes,disableCustomFontSizes]),selectedOption=function getSelectedOption(fontSizes,value){return value?fontSizes.find((font=>font.size===value))||CUSTOM_FONT_SIZE_OPTION:DEFAULT_FONT_SIZE_OPTION}(fontSizes,value),isCustomValue="custom"===selectedOption.slug,[showCustomValueControl,setShowCustomValueControl]=(0,react.useState)(!disableCustomFontSizes&&isCustomValue),headerHint=(0,react.useMemo)((()=>{if(showCustomValueControl)return`(${(0,i18n_build_module.__)("Custom")})`;if(isCustomValue)return isSimpleCssValue(value)&&`(${value})`;if(shouldUseSelectControl)return isSimpleCssValue(null==selectedOption?void 0:selectedOption.size)&&`(${null==selectedOption?void 0:selectedOption.size})`;let hint=selectedOption.name;if("string"==typeof selectedOption.size){const[,unit]=splitValueAndUnitFromSize(selectedOption.size);hint+=`(${unit})`}return hint}),[showCustomValueControl,null==selectedOption?void 0:selectedOption.slug,value,isCustomValue]);if(!options)return null;const currentFontSizeSR=(0,i18n_build_module.gB)((0,i18n_build_module.__)("Currently selected font size: %s"),selectedOption.name),baseClassName="components-font-size-picker";return(0,react.createElement)("fieldset",(0,esm_extends.Z)({className:baseClassName},ref?{}:{ref}),(0,react.createElement)(visually_hidden_component.Z,{as:"legend"},(0,i18n_build_module.__)("Font size")),(0,react.createElement)(component.Z,{justify:"space-between",className:`${baseClassName}__header`},(0,react.createElement)(flex_item_component.Z,null,(0,i18n_build_module.__)("Size"),headerHint&&(0,react.createElement)("span",{className:`${baseClassName}__header__hint`},headerHint)),!disableCustomFontSizes&&(0,react.createElement)(flex_item_component.Z,null,(0,react.createElement)(build_module_button.Z,{label:showCustomValueControl?(0,i18n_build_module.__)("Use size preset"):(0,i18n_build_module.__)("Set custom size"),showTooltip:!1,icon:library_settings.Z,onClick:()=>{setShowCustomValueControl(!showCustomValueControl)},isPressed:showCustomValueControl,isSmall:!0}))),(0,react.createElement)("div",{className:`${baseClassName}__controls`},!!fontSizes.length&&shouldUseSelectControl&&!showCustomValueControl&&(0,react.createElement)(custom_select_control.Z,{className:`${baseClassName}__select`,label:(0,i18n_build_module.__)("Font size"),hideLabelFromVision:!0,describedBy:currentFontSizeSR,options,value:options.find((option=>option.key===selectedOption.slug)),onChange:_ref3=>{let{selectedItem}=_ref3;onChange(hasUnits?selectedItem.size:Number(selectedItem.size)),"custom"===selectedItem.key&&setShowCustomValueControl(!0)}}),!shouldUseSelectControl&&!showCustomValueControl&&(0,react.createElement)(toggle_group_control_component.Z,{label:(0,i18n_build_module.__)("Font size"),hideLabelFromVision:!0,value,onChange:newValue=>{onChange(hasUnits?newValue:Number(newValue))},isBlock:!0},options.map((option=>(0,react.createElement)(toggle_group_control_option_component.Z,{key:option.key,value:option.value,label:option.label,"aria-label":option.name,showTooltip:!0})))),!withSlider&&!disableCustomFontSizes&&showCustomValueControl&&(0,react.createElement)(component.Z,{justify:"space-between",className:`${baseClassName}__custom-size-control`},(0,react.createElement)(flex_item_component.Z,{isBlock:!0},(0,react.createElement)(unit_control.ZP,{label:(0,i18n_build_module.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value,onChange:nextSize=>{0!==parseFloat(nextSize)&&nextSize?onChange(hasUnits?nextSize:parseInt(nextSize,10)):onChange(void 0)},units:!!hasUnits&&units})),withReset&&(0,react.createElement)(flex_item_component.Z,{isBlock:!0},(0,react.createElement)(build_module_button.Z,{className:"components-color-palette__clear",disabled:void 0===value,onClick:()=>{onChange(void 0)},isSmall:!0,variant:"secondary"},(0,i18n_build_module.__)("Reset"))))),withSlider&&(0,react.createElement)(range_control.Z,{className:`${baseClassName}__custom-input`,label:(0,i18n_build_module.__)("Custom Size"),value:isPixelValue&&noUnitsValue||"",initialPosition:fallbackFontSize,onChange:newValue=>{onChange(hasUnits?newValue+"px":newValue)},min:12,max:100}))}));const font_sizes_font_size_picker=function font_size_picker_FontSizePicker(props){const fontSizes=useSetting("typography.fontSizes"),disableCustomFontSizes=!useSetting("typography.customFontSize");return(0,react.createElement)(font_size_picker,(0,esm_extends.Z)({},props,{fontSizes,disableCustomFontSizes}))};function font_size_addSaveProps(props,blockType,attributes){if(!(0,build_module.zb)(blockType,"typography.fontSize"))return props;if((0,build_module.zb)(blockType,"typography.__experimentalSkipSerialization"))return props;const classes=new TokenList(props.className);classes.add(getFontSizeClass(attributes.fontSize));const newClassName=classes.value;return props.className=newClassName||void 0,props}function FontSizeEdit(props){var _style$typography,_style$typography2;const{attributes:{fontSize,style},setAttributes}=props,fontSizes=useSetting("typography.fontSizes"),fontSizeObject=getFontSize(fontSizes,fontSize,null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.fontSize),fontSizeValue=(null==fontSizeObject?void 0:fontSizeObject.size)||(null==style||null===(_style$typography2=style.typography)||void 0===_style$typography2?void 0:_style$typography2.fontSize)||fontSize;return(0,react.createElement)(font_sizes_font_size_picker,{onChange:value=>{const fontSizeSlug=function getFontSizeObjectByValue(fontSizes,value){return(0,lodash.find)(fontSizes,{size:value})||{size:value}}(fontSizes,value).slug;setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,fontSize:fontSizeSlug?void 0:value}}),fontSize:fontSizeSlug})},value:fontSizeValue,withReset:!1})}function useIsFontSizeDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const fontSizes=useSetting("typography.fontSizes"),hasFontSizes=!(null==fontSizes||!fontSizes.length);return!(0,build_module.zb)(blockName,"typography.fontSize")||!hasFontSizes}const withFontSizeInlineStyles=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{var _style$typography4,_style$typography5;const fontSizes=useSetting("typography.fontSizes"),{name:blockName,attributes:{fontSize,style},wrapperProps}=props;if(!(0,build_module.zb)(blockName,"typography.fontSize")||(0,build_module.zb)(blockName,"typography.__experimentalSkipSerialization")||!fontSize||null!=style&&null!==(_style$typography4=style.typography)&&void 0!==_style$typography4&&_style$typography4.fontSize)return(0,react.createElement)(BlockListBlock,props);const fontSizeValue=getFontSize(fontSizes,fontSize,null==style||null===(_style$typography5=style.typography)||void 0===_style$typography5?void 0:_style$typography5.fontSize).size,newProps={...props,wrapperProps:{...wrapperProps,style:{fontSize:fontSizeValue,...null==wrapperProps?void 0:wrapperProps.style}}};return(0,react.createElement)(BlockListBlock,newProps)}),"withFontSizeInlineStyles");(0,hooks_build_module.KJ)("blocks.registerBlockType","core/font/addAttribute",(function font_size_addAttributes(settings){return(0,build_module.zb)(settings,"typography.fontSize")?(settings.attributes.fontSize||Object.assign(settings.attributes,{fontSize:{type:"string"}}),settings):settings})),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/font/addSaveProps",font_size_addSaveProps),(0,hooks_build_module.KJ)("blocks.registerBlockType","core/font/addEditProps",(function font_size_addEditProps(settings){if(!(0,build_module.zb)(settings,"typography.fontSize"))return settings;const existingGetEditWrapperProps=settings.getEditWrapperProps;return settings.getEditWrapperProps=attributes=>{let props={};return existingGetEditWrapperProps&&(props=existingGetEditWrapperProps(attributes)),font_size_addSaveProps(props,settings,attributes)},settings})),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",withFontSizeInlineStyles);const format_underline=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"}));var format_strikethrough=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/format-strikethrough.js");const TEXT_DECORATIONS=[{name:(0,i18n_build_module.__)("Underline"),value:"underline",icon:format_underline},{name:(0,i18n_build_module.__)("Strikethrough"),value:"line-through",icon:format_strikethrough.Z}];function TextDecorationControl(_ref){let{value,onChange}=_ref;return(0,react.createElement)("fieldset",{className:"block-editor-text-decoration-control"},(0,react.createElement)("legend",null,(0,i18n_build_module.__)("Decoration")),(0,react.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},TEXT_DECORATIONS.map((textDecoration=>(0,react.createElement)(build_module_button.Z,{key:textDecoration.value,icon:textDecoration.icon,isSmall:!0,isPressed:textDecoration.value===value,onClick:()=>onChange(textDecoration.value===value?void 0:textDecoration.value),"aria-label":textDecoration.name})))))}function TextDecorationEdit(props){var _style$typography;const{attributes:{style},setAttributes}=props;return(0,react.createElement)(TextDecorationControl,{value:null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.textDecoration,onChange:function onChange(newDecoration){setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,textDecoration:newDecoration}})})}})}function useIsTextDecorationDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const notSupported=!(0,build_module.zb)(blockName,"typography.__experimentalTextDecoration"),hasTextDecoration=useSetting("typography.textDecoration");return notSupported||!hasTextDecoration}const format_uppercase=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),format_lowercase=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),format_capitalize=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),TEXT_TRANSFORMS=[{name:(0,i18n_build_module.__)("Uppercase"),value:"uppercase",icon:format_uppercase},{name:(0,i18n_build_module.__)("Lowercase"),value:"lowercase",icon:format_lowercase},{name:(0,i18n_build_module.__)("Capitalize"),value:"capitalize",icon:format_capitalize}];function TextTransformControl(_ref){let{value,onChange}=_ref;return(0,react.createElement)("fieldset",{className:"block-editor-text-transform-control"},(0,react.createElement)("legend",null,(0,i18n_build_module.__)("Letter case")),(0,react.createElement)("div",{className:"block-editor-text-transform-control__buttons"},TEXT_TRANSFORMS.map((textTransform=>(0,react.createElement)(build_module_button.Z,{key:textTransform.value,icon:textTransform.icon,isSmall:!0,isPressed:value===textTransform.value,"aria-label":textTransform.name,onClick:()=>onChange(value===textTransform.value?void 0:textTransform.value)})))))}function TextTransformEdit(props){var _style$typography;const{attributes:{style},setAttributes}=props;return(0,react.createElement)(TextTransformControl,{value:null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.textTransform,onChange:function onChange(newTransform){setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,textTransform:newTransform}})})}})}function useIsTextTransformDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const notSupported=!(0,build_module.zb)(blockName,"typography.__experimentalTextTransform"),hasTextTransforms=useSetting("typography.textTransform");return notSupported||!hasTextTransforms}function LetterSpacingControl(_ref){let{value,onChange,__unstableInputWidth="60px"}=_ref;const units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return(0,react.createElement)(unit_control.ZP,{label:(0,i18n_build_module.__)("Letter-spacing"),value,__unstableInputWidth,units,onChange})}function LetterSpacingEdit(props){var _style$typography;const{attributes:{style},setAttributes}=props;return(0,react.createElement)(LetterSpacingControl,{value:null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.letterSpacing,onChange:function onChange(newSpacing){setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,letterSpacing:newSpacing}})})},__unstableInputWidth:!1})}function useIsLetterSpacingDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const notSupported=!(0,build_module.zb)(blockName,"typography.__experimentalLetterSpacing"),hasLetterSpacing=useSetting("typography.letterSpacing");return notSupported||!hasLetterSpacing}const TYPOGRAPHY_SUPPORT_KEYS=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight",FONT_FAMILY_SUPPORT_KEY,"typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function TypographyPanel(props){const{clientId}=props,isFontFamilyDisabled=useIsFontFamilyDisabled(props),isFontSizeDisabled=useIsFontSizeDisabled(props),isFontAppearanceDisabled=useIsFontAppearanceDisabled(props),isLineHeightDisabled=useIsLineHeightDisabled(props),isTextDecorationDisabled=useIsTextDecorationDisabled(props),isTextTransformDisabled=useIsTextTransformDisabled(props),isLetterSpacingDisabled=useIsLetterSpacingDisabled(props),hasFontStyles=!useIsFontStyleDisabled(props),hasFontWeights=!useIsFontWeightDisabled(props),isDisabled=function useIsTypographyDisabled(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const configs=[useIsFontAppearanceDisabled(props),useIsFontSizeDisabled(props),useIsLineHeightDisabled(props),useIsFontFamilyDisabled(props),useIsTextDecorationDisabled(props),useIsTextTransformDisabled(props),useIsLetterSpacingDisabled(props)];return configs.filter(Boolean).length===configs.length}(props),isSupported=hasTypographySupport(props.name);if(isDisabled||!isSupported)return null;const defaultControls=(0,build_module.Dx)(props.name,["typography","__experimentalDefaultControls"]),createResetAllFilter=attribute=>newAttributes=>{var _newAttributes$style;return{...newAttributes,style:{...newAttributes.style,typography:{...null===(_newAttributes$style=newAttributes.style)||void 0===_newAttributes$style?void 0:_newAttributes$style.typography,[attribute]:void 0}}}};return(0,react.createElement)(inspector_controls,{__experimentalGroup:"typography"},!isFontFamilyDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{hasValue:()=>function hasFontFamilyValue(props){return!!props.attributes.fontFamily}(props),label:(0,i18n_build_module.__)("Font family"),onDeselect:()=>function resetFontFamily(_ref5){let{setAttributes}=_ref5;setAttributes({fontFamily:void 0})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.fontFamily,resetAllFilter:newAttributes=>({...newAttributes,fontFamily:void 0}),panelId:clientId},(0,react.createElement)(FontFamilyEdit,props)),!isFontSizeDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{hasValue:()=>function hasFontSizeValue(props){var _style$typography3;const{fontSize,style}=props.attributes;return!!fontSize||!(null==style||null===(_style$typography3=style.typography)||void 0===_style$typography3||!_style$typography3.fontSize)}(props),label:(0,i18n_build_module.__)("Font size"),onDeselect:()=>function resetFontSize(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({fontSize:void 0,style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,fontSize:void 0}})})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.fontSize,resetAllFilter:newAttributes=>{var _newAttributes$style2;return{...newAttributes,fontSize:void 0,style:{...newAttributes.style,typography:{...null===(_newAttributes$style2=newAttributes.style)||void 0===_newAttributes$style2?void 0:_newAttributes$style2.typography,fontSize:void 0}}}},panelId:clientId},(0,react.createElement)(FontSizeEdit,props)),!isFontAppearanceDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{className:"single-column",hasValue:()=>function hasFontAppearanceValue(props){var _props$attributes$sty;const{fontStyle,fontWeight}=(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty?void 0:_props$attributes$sty.typography)||{};return!!fontStyle||!!fontWeight}(props),label:getFontAppearanceLabel(hasFontStyles,hasFontWeights),onDeselect:()=>function resetFontAppearance(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,fontStyle:void 0,fontWeight:void 0}})})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.fontAppearance,resetAllFilter:newAttributes=>{var _newAttributes$style3;return{...newAttributes,style:{...newAttributes.style,typography:{...null===(_newAttributes$style3=newAttributes.style)||void 0===_newAttributes$style3?void 0:_newAttributes$style3.typography,fontStyle:void 0,fontWeight:void 0}}}},panelId:clientId},(0,react.createElement)(FontAppearanceEdit,props)),!isLineHeightDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{className:"single-column",hasValue:()=>function hasLineHeightValue(props){var _props$attributes$sty,_props$attributes$sty2;return!(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.typography)||void 0===_props$attributes$sty2||!_props$attributes$sty2.lineHeight)}(props),label:(0,i18n_build_module.__)("Line height"),onDeselect:()=>function resetLineHeight(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,lineHeight:void 0}})})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.lineHeight,resetAllFilter:createResetAllFilter("lineHeight"),panelId:clientId},(0,react.createElement)(LineHeightEdit,props)),!isTextDecorationDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{className:"single-column",hasValue:()=>function hasTextDecorationValue(props){var _props$attributes$sty,_props$attributes$sty2;return!(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.typography)||void 0===_props$attributes$sty2||!_props$attributes$sty2.textDecoration)}(props),label:(0,i18n_build_module.__)("Decoration"),onDeselect:()=>function resetTextDecoration(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,textDecoration:void 0}})})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.textDecoration,resetAllFilter:createResetAllFilter("textDecoration"),panelId:clientId},(0,react.createElement)(TextDecorationEdit,props)),!isTextTransformDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{className:"single-column",hasValue:()=>function hasTextTransformValue(props){var _props$attributes$sty,_props$attributes$sty2;return!(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.typography)||void 0===_props$attributes$sty2||!_props$attributes$sty2.textTransform)}(props),label:(0,i18n_build_module.__)("Letter case"),onDeselect:()=>function resetTextTransform(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,textTransform:void 0}})})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.textTransform,resetAllFilter:createResetAllFilter("textTransform"),panelId:clientId},(0,react.createElement)(TextTransformEdit,props)),!isLetterSpacingDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{className:"single-column",hasValue:()=>function hasLetterSpacingValue(props){var _props$attributes$sty,_props$attributes$sty2;return!(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.typography)||void 0===_props$attributes$sty2||!_props$attributes$sty2.letterSpacing)}(props),label:(0,i18n_build_module.__)("Letter-spacing"),onDeselect:()=>function resetLetterSpacing(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,typography:{...null==style?void 0:style.typography,letterSpacing:void 0}})})}(props),isShownByDefault:null==defaultControls?void 0:defaultControls.letterSpacing,resetAllFilter:createResetAllFilter("letterSpacing"),panelId:clientId},(0,react.createElement)(LetterSpacingEdit,props)))}const hasTypographySupport=blockName=>TYPOGRAPHY_SUPPORT_KEYS.some((key=>(0,build_module.zb)(blockName,key)));function hasGapSupport(blockType){const support=(0,build_module.Dx)(blockType,SPACING_SUPPORT_KEY);return!!(!0===support||null!=support&&support.blockGap)}function useIsGapDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const isDisabled=!useSetting("spacing.blockGap");return!hasGapSupport(blockName)||isDisabled}function GapEdit(props){var _style$spacing;const{clientId,attributes:{style},setAttributes}=props,units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["%","px","em","rem","vw"]}),ref=useBlockRef(clientId);if(useIsGapDisabled(props))return null;return platform.Z.select({web:(0,react.createElement)(react.Fragment,null,(0,react.createElement)(unit_control.ZP,{label:(0,i18n_build_module.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:next=>{var _window;const newStyle={...style,spacing:{...null==style?void 0:style.spacing,blockGap:next}};setAttributes({style:cleanEmptyObject(newStyle)});const isSafari=(null===(_window=window)||void 0===_window?void 0:_window.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var _ref$current$parentNo;ref.current&&isSafari&&(null===(_ref$current$parentNo=ref.current.parentNode)||void 0===_ref$current$parentNo||_ref$current$parentNo.replaceChild(ref.current,ref.current))},units,value:null==style||null===(_style$spacing=style.spacing)||void 0===_style$spacing?void 0:_style$spacing.blockGap})),native:null})}var box_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/box-control/index.js");function hasMarginSupport(blockType){const support=(0,build_module.Dx)(blockType,SPACING_SUPPORT_KEY);return!!(!0===support||null!=support&&support.margin)}function useIsMarginDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const isDisabled=!useSetting("spacing.margin"),isInvalid=!useIsDimensionsSupportValid(blockName,"margin");return!hasMarginSupport(blockName)||isDisabled||isInvalid}function MarginEdit(props){var _style$spacing;const{name:blockName,attributes:{style},setAttributes}=props,units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["%","px","em","rem","vw"]}),sides=useCustomSides(blockName,"margin"),splitOnAxis=sides&&sides.some((side=>AXIAL_SIDES.includes(side)));if(useIsMarginDisabled(props))return null;return platform.Z.select({web:(0,react.createElement)(react.Fragment,null,(0,react.createElement)(box_control.Z,{values:null==style||null===(_style$spacing=style.spacing)||void 0===_style$spacing?void 0:_style$spacing.margin,onChange:next=>{const newStyle={...style,spacing:{...null==style?void 0:style.spacing,margin:next}};setAttributes({style:cleanEmptyObject(newStyle)})},onChangeShowVisualizer:next=>{const newStyle={...style,visualizers:{margin:next}};setAttributes({style:cleanEmptyObject(newStyle)})},label:(0,i18n_build_module.__)("Margin"),sides,units,allowReset:!1,splitOnAxis})),native:null})}function hasPaddingSupport(blockType){const support=(0,build_module.Dx)(blockType,SPACING_SUPPORT_KEY);return!!(!0===support||null!=support&&support.padding)}function useIsPaddingDisabled(){let{name:blockName}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const isDisabled=!useSetting("spacing.padding"),isInvalid=!useIsDimensionsSupportValid(blockName,"padding");return!hasPaddingSupport(blockName)||isDisabled||isInvalid}function PaddingEdit(props){var _style$spacing;const{name:blockName,attributes:{style},setAttributes}=props,units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["%","px","em","rem","vw"]}),sides=useCustomSides(blockName,"padding"),splitOnAxis=sides&&sides.some((side=>AXIAL_SIDES.includes(side)));if(useIsPaddingDisabled(props))return null;return platform.Z.select({web:(0,react.createElement)(react.Fragment,null,(0,react.createElement)(box_control.Z,{values:null==style||null===(_style$spacing=style.spacing)||void 0===_style$spacing?void 0:_style$spacing.padding,onChange:next=>{const newStyle={...style,spacing:{...null==style?void 0:style.spacing,padding:next}};setAttributes({style:cleanEmptyObject(newStyle)})},onChangeShowVisualizer:next=>{const newStyle={...style,visualizers:{padding:next}};setAttributes({style:cleanEmptyObject(newStyle)})},label:(0,i18n_build_module.__)("Padding"),sides,units,allowReset:!1,splitOnAxis})),native:null})}const SPACING_SUPPORT_KEY="spacing",ALL_SIDES=["top","right","bottom","left"],AXIAL_SIDES=["vertical","horizontal"];function DimensionsPanel(props){const isGapDisabled=useIsGapDisabled(props),isPaddingDisabled=useIsPaddingDisabled(props),isMarginDisabled=useIsMarginDisabled(props),isDisabled=useIsDimensionsDisabled(props),isSupported=function hasDimensionsSupport(blockName){if("web"!==platform.Z.OS)return!1;return hasGapSupport(blockName)||hasPaddingSupport(blockName)||hasMarginSupport(blockName)}(props.name);if(isDisabled||!isSupported)return null;const defaultSpacingControls=(0,build_module.Dx)(props.name,[SPACING_SUPPORT_KEY,"__experimentalDefaultControls"]),createResetAllFilter=attribute=>newAttributes=>{var _newAttributes$style;return{...newAttributes,style:{...newAttributes.style,spacing:{...null===(_newAttributes$style=newAttributes.style)||void 0===_newAttributes$style?void 0:_newAttributes$style.spacing,[attribute]:void 0}}}};return(0,react.createElement)(inspector_controls,{__experimentalGroup:"dimensions"},!isPaddingDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{hasValue:()=>function hasPaddingValue(props){var _props$attributes$sty,_props$attributes$sty2;return void 0!==(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.spacing)||void 0===_props$attributes$sty2?void 0:_props$attributes$sty2.padding)}(props),label:(0,i18n_build_module.__)("Padding"),onDeselect:()=>function resetPadding(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,spacing:{...null==style?void 0:style.spacing,padding:void 0}})})}(props),resetAllFilter:createResetAllFilter("padding"),isShownByDefault:null==defaultSpacingControls?void 0:defaultSpacingControls.padding,panelId:props.clientId},(0,react.createElement)(PaddingEdit,props)),!isMarginDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{hasValue:()=>function hasMarginValue(props){var _props$attributes$sty,_props$attributes$sty2;return void 0!==(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.spacing)||void 0===_props$attributes$sty2?void 0:_props$attributes$sty2.margin)}(props),label:(0,i18n_build_module.__)("Margin"),onDeselect:()=>function resetMargin(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:cleanEmptyObject({...style,spacing:{...null==style?void 0:style.spacing,margin:void 0}})})}(props),resetAllFilter:createResetAllFilter("margin"),isShownByDefault:null==defaultSpacingControls?void 0:defaultSpacingControls.margin,panelId:props.clientId},(0,react.createElement)(MarginEdit,props)),!isGapDisabled&&(0,react.createElement)(tools_panel_item_component.Z,{hasValue:()=>function hasGapValue(props){var _props$attributes$sty,_props$attributes$sty2;return void 0!==(null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.spacing)||void 0===_props$attributes$sty2?void 0:_props$attributes$sty2.blockGap)}(props),label:(0,i18n_build_module.__)("Block spacing"),onDeselect:()=>function resetGap(_ref){let{attributes={},setAttributes}=_ref;const{style}=attributes;setAttributes({style:{...style,spacing:{...null==style?void 0:style.spacing,blockGap:void 0}}})}(props),resetAllFilter:createResetAllFilter("blockGap"),isShownByDefault:null==defaultSpacingControls?void 0:defaultSpacingControls.blockGap,panelId:props.clientId},(0,react.createElement)(GapEdit,props)))}const useIsDimensionsDisabled=function(){let props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const gapDisabled=useIsGapDisabled(props),paddingDisabled=useIsPaddingDisabled(props),marginDisabled=useIsMarginDisabled(props);return gapDisabled&&paddingDisabled&&marginDisabled};function useCustomSides(blockName,feature){const support=(0,build_module.Dx)(blockName,SPACING_SUPPORT_KEY);if(support&&"boolean"!=typeof support[feature])return support[feature]}function useIsDimensionsSupportValid(blockName,feature){const sides=useCustomSides(blockName,feature);return!(sides&&sides.some((side=>ALL_SIDES.includes(side)))&&sides.some((side=>AXIAL_SIDES.includes(side))))||(console.warn(`The ${feature} support for the "${blockName}" block can not be configured to support both axial and arbitrary sides.`),!1)}const styleSupportKeys=[...TYPOGRAPHY_SUPPORT_KEYS,"__experimentalBorder","color",SPACING_SUPPORT_KEY],hasStyleSupport=blockType=>styleSupportKeys.some((key=>(0,build_module.zb)(blockType,key)));function compileStyleValue(uncompiledValue){if((0,lodash.startsWith)(uncompiledValue,"var:")){return`var(--wp--${uncompiledValue.slice("var:".length).split("|").join("--")})`}return uncompiledValue}function getInlineStyles(){let styles=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const output={};return Object.keys(build_module.$L).forEach((propKey=>{const path=build_module.$L[propKey].value,subPaths=build_module.$L[propKey].properties;if((0,lodash.has)(styles,path)&&"elements"!==(0,lodash.first)(path)){const styleValue=(0,lodash.get)(styles,path);subPaths&&!(0,lodash.isString)(styleValue)?Object.entries(subPaths).forEach((entry=>{const[name,subPath]=entry,value=(0,lodash.get)(styleValue,[subPath]);value&&(output[name]=compileStyleValue(value))})):output[propKey]=compileStyleValue((0,lodash.get)(styles,path))}})),output}const skipSerializationPathsEdit={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[`${SPACING_SUPPORT_KEY}.__experimentalSkipSerialization`]:["spacing"]},skipSerializationPathsSave={...skipSerializationPathsEdit,[`${SPACING_SUPPORT_KEY}`]:["spacing.blockGap"]};function style_addSaveProps(props,blockType,attributes){let skipPaths=arguments.length>3&&void 0!==arguments[3]?arguments[3]:skipSerializationPathsSave;if(!hasStyleSupport(blockType))return props;let{style}=attributes;return(0,lodash.forEach)(skipPaths,((path,indicator)=>{(0,build_module.Dx)(blockType,indicator)&&(style=(0,lodash.omit)(style,path))})),props.style={...getInlineStyles(style),...props.style},props}const withBlockControls=(0,create_higher_order_component.Z)((BlockEdit=>props=>{const shouldDisplayControls=useDisplayBlockControls();return(0,react.createElement)(react.Fragment,null,shouldDisplayControls&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)(ColorEdit,props),(0,react.createElement)(TypographyPanel,props),(0,react.createElement)(BorderPanel,props),(0,react.createElement)(DimensionsPanel,props)),(0,react.createElement)(BlockEdit,props))}),"withToolbarControls"),withElementsStyles=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{var _props$attributes$sty,_props$attributes$sty2;const elements=null===(_props$attributes$sty=props.attributes.style)||void 0===_props$attributes$sty?void 0:_props$attributes$sty.elements,blockElementsContainerIdentifier=`wp-elements-${(0,use_instance_id.Z)(BlockListBlock)}`,styles=function compileElementsStyles(selector){let elements=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,lodash.map)(elements,((styles,element)=>{const elementStyles=getInlineStyles(styles);return(0,lodash.isEmpty)(elementStyles)?"":[`.${selector} ${build_module.qO[element]}{`,...(0,lodash.map)(elementStyles,((value,property)=>`\t${(0,lodash.kebabCase)(property)}: ${value};`)),"}"].join("\n")})).join("\n")}(blockElementsContainerIdentifier,null===(_props$attributes$sty2=props.attributes.style)||void 0===_props$attributes$sty2?void 0:_props$attributes$sty2.elements),element=(0,react.useContext)(BlockList.__unstableElementContext);return(0,react.createElement)(react.Fragment,null,elements&&element&&(0,react_dom.createPortal)((0,react.createElement)("style",{dangerouslySetInnerHTML:{__html:styles}}),element),(0,react.createElement)(BlockListBlock,(0,esm_extends.Z)({},props,{className:elements?classnames_default()(props.className,blockElementsContainerIdentifier):props.className})))}));(0,hooks_build_module.KJ)("blocks.registerBlockType","core/style/addAttribute",(function style_addAttribute(settings){return hasStyleSupport(settings)?(settings.attributes.style||Object.assign(settings.attributes,{style:{type:"object"}}),settings):settings})),(0,hooks_build_module.KJ)("blocks.getSaveContent.extraProps","core/style/addSaveProps",style_addSaveProps),(0,hooks_build_module.KJ)("blocks.registerBlockType","core/style/addEditProps",(function style_addEditProps(settings){if(!hasStyleSupport(settings))return settings;const existingGetEditWrapperProps=settings.getEditWrapperProps;return settings.getEditWrapperProps=attributes=>{let props={};return existingGetEditWrapperProps&&(props=existingGetEditWrapperProps(attributes)),style_addSaveProps(props,settings,attributes,skipSerializationPathsEdit)},settings})),(0,hooks_build_module.KJ)("editor.BlockEdit","core/style/with-block-controls",withBlockControls),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/editor/with-elements-styles",withElementsStyles);const library_swatch=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{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"}));const build_module_swatch=function Swatch(_ref){let{fill}=_ref;return fill?(0,react.createElement)("span",{className:"components-swatch",style:{background:fill}}):(0,react.createElement)(components_build_module_icon.Z,{icon:library_swatch})};function getGradientFromCSSColors(){let colors=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],angle=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"90deg";const l=100/colors.length,stops=colors.map(((c,i)=>`${c} ${i*l}%, ${c} ${(i+1)*l}%`)).join(", ");return`linear-gradient( ${angle}, ${stops} )`}(0,colord.l7)([names.Z]);const duotone_swatch=function DuotoneSwatch(_ref){let{values}=_ref;return(0,react.createElement)(build_module_swatch,{fill:values&&getGradientFromCSSColors(values,"135deg")})};function ColorOption(_ref){let{label,value,colors,disableCustomColors,enableAlpha,onChange}=_ref;const[isOpen,setIsOpen]=(0,react.useState)(!1);return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(build_module_button.Z,{className:"components-color-list-picker__swatch-button",icon:(0,react.createElement)(build_module_swatch,{fill:value}),onClick:()=>setIsOpen((prev=>!prev))},label),isOpen&&(0,react.createElement)(ColorPalette,{className:"components-color-list-picker__color-picker",colors,value,clearable:!1,onChange,disableCustomColors,enableAlpha}))}const color_list_picker=function ColorListPicker(_ref2){let{colors,labels,value=[],disableCustomColors,enableAlpha,onChange}=_ref2;return(0,react.createElement)("div",{className:"components-color-list-picker"},labels.map(((label,index)=>(0,react.createElement)(ColorOption,{key:index,label,value:value[index],colors,disableCustomColors,enableAlpha,onChange:newColor=>{const newColors=value.slice();newColors[index]=newColor,onChange(newColors)}}))))},PLACEHOLDER_VALUES=["#333","#CCC"];function CustomDuotoneBar(_ref){let{value,onChange}=_ref;const hasGradient=!!value,values=hasGradient?value:PLACEHOLDER_VALUES,background=getGradientFromCSSColors(values),controlPoints=function getColorStopsFromColors(colors){return colors.map(((color,i)=>({position:100*i/(colors.length-1),color})))}(values);return(0,react.createElement)(CustomGradientBar,{disableInserter:!0,background,hasGradient,value:controlPoints,onChange:newColorStops=>{const newValue=function getColorsFromColorStops(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((_ref4=>{let{color}=_ref4;return color}))}(newColorStops);onChange(newValue)}})}const duotone_picker=function DuotonePicker(_ref){let{clearable=!0,colorPalette,duotonePalette,disableCustomColors,disableCustomDuotone,value,onChange}=_ref;const[defaultDark,defaultLight]=(0,react.useMemo)((()=>function getDefaultColors(palette){return!palette||palette.length<2?["#000","#fff"]:palette.map((_ref=>{let{color}=_ref;return{color,brightness:(0,colord.Vi)(color).brightness()}})).reduce(((_ref2,current)=>{let[min,max]=_ref2;return[current.brightness<=min.brightness?current:min,current.brightness>=max.brightness?current:max]}),[{brightness:1},{brightness:0}]).map((_ref3=>{let{color}=_ref3;return color}))}(colorPalette)),[colorPalette]);return(0,react.createElement)(CircularOptionPicker,{options:duotonePalette.map((_ref2=>{let{colors,slug,name}=_ref2;const style={background:getGradientFromCSSColors(colors,"135deg"),color:"transparent"},tooltipText=null!=name?name:(0,i18n_build_module.gB)((0,i18n_build_module.__)("Duotone code: %s"),slug),label=name?(0,i18n_build_module.gB)((0,i18n_build_module.__)("Duotone: %s"),name):tooltipText,isSelected=(0,lodash.isEqual)(colors,value);return(0,react.createElement)(CircularOptionPicker.Option,{key:slug,value:colors,isSelected,"aria-label":label,tooltipText,style,onClick:()=>{onChange(isSelected?void 0:colors)}})})),actions:!!clearable&&(0,react.createElement)(CircularOptionPicker.ButtonAction,{onClick:()=>onChange(void 0)},(0,i18n_build_module.__)("Clear"))},!disableCustomColors&&!disableCustomDuotone&&(0,react.createElement)(CustomDuotoneBar,{value,onChange}),!disableCustomDuotone&&(0,react.createElement)(color_list_picker,{labels:[(0,i18n_build_module.__)("Shadows"),(0,i18n_build_module.__)("Highlights")],colors:colorPalette,value,disableCustomColors,enableAlpha:!0,onChange:newColors=>{newColors[0]||(newColors[0]=defaultDark),newColors[1]||(newColors[1]=defaultLight);const newValue=newColors.length>=2?newColors:void 0;onChange(newValue)}}))};const duotone_control=function DuotoneControl(_ref){let{colorPalette,duotonePalette,disableCustomColors,disableCustomDuotone,value,onChange}=_ref;return(0,react.createElement)(dropdown.Z,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,i18n_build_module.__)("Duotone"),isAlternate:!0},renderToggle:_ref2=>{let{isOpen,onToggle}=_ref2;return(0,react.createElement)(toolbar_button.Z,{showTooltip:!0,onClick:onToggle,"aria-haspopup":"true","aria-expanded":isOpen,onKeyDown:event=>{isOpen||event.keyCode!==keycodes_build_module.WV||(event.preventDefault(),onToggle())},label:(0,i18n_build_module.__)("Apply duotone filter"),icon:(0,react.createElement)(duotone_swatch,{values:value})})},renderContent:()=>(0,react.createElement)(menu_group.Z,{label:(0,i18n_build_module.__)("Duotone")},(0,react.createElement)("div",{className:"block-editor-duotone-control__description"},(0,i18n_build_module.__)("Create a two-tone color effect without losing your original image.")),(0,react.createElement)(duotone_picker,{colorPalette,duotonePalette,disableCustomColors,disableCustomDuotone,value,onChange}))})},duotone_EMPTY_ARRAY=[];function getValuesFromColors(){let colors=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const values={r:[],g:[],b:[],a:[]};return colors.forEach((color=>{const rgbColor=(0,colord.Vi)(color).toRgb();values.r.push(rgbColor.r/255),values.g.push(rgbColor.g/255),values.b.push(rgbColor.b/255),values.a.push(rgbColor.a)})),values}function DuotoneFilter(_ref){let{selector,id,values}=_ref;const stylesheet=`\n${selector} {\n\tfilter: url( #${id} );\n}\n`;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(svg.Wj,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},(0,react.createElement)("defs",null,(0,react.createElement)("filter",{id},(0,react.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),(0,react.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},(0,react.createElement)("feFuncR",{type:"table",tableValues:values.r.join(" ")}),(0,react.createElement)("feFuncG",{type:"table",tableValues:values.g.join(" ")}),(0,react.createElement)("feFuncB",{type:"table",tableValues:values.b.join(" ")}),(0,react.createElement)("feFuncA",{type:"table",tableValues:values.a.join(" ")})),(0,react.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"})))),(0,react.createElement)("style",{dangerouslySetInnerHTML:{__html:stylesheet}}))}function DuotonePanel(_ref2){var _style$color;let{attributes,setAttributes}=_ref2;const style=null==attributes?void 0:attributes.style,duotone=null==style||null===(_style$color=style.color)||void 0===_style$color?void 0:_style$color.duotone,duotonePalette=useSetting("color.duotone")||duotone_EMPTY_ARRAY,colorPalette=useSetting("color.palette")||duotone_EMPTY_ARRAY,disableCustomColors=!useSetting("color.custom"),disableCustomDuotone=!useSetting("color.customDuotone")||0===(null==colorPalette?void 0:colorPalette.length)&&disableCustomColors;return 0===(null==duotonePalette?void 0:duotonePalette.length)&&disableCustomDuotone?null:(0,react.createElement)(block_controls,{group:"block",__experimentalShareWithChildBlocks:!0},(0,react.createElement)(duotone_control,{duotonePalette,colorPalette,disableCustomDuotone,disableCustomColors,value:duotone,onChange:newDuotone=>{const newStyle={...style,color:{...null==style?void 0:style.color,duotone:newDuotone}};setAttributes({style:newStyle})}}))}(0,colord.l7)([names.Z]);const withDuotoneControls=(0,create_higher_order_component.Z)((BlockEdit=>props=>{const hasDuotoneSupport=(0,build_module.zb)(props.name,"color.__experimentalDuotone");return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(BlockEdit,props),hasDuotoneSupport&&(0,react.createElement)(DuotonePanel,props))}),"withDuotoneControls");const withDuotoneStyles=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{var _props$attributes,_props$attributes$sty,_props$attributes$sty2;const duotoneSupport=(0,build_module.Dx)(props.name,"color.__experimentalDuotone"),values=null==props||null===(_props$attributes=props.attributes)||void 0===_props$attributes||null===(_props$attributes$sty=_props$attributes.style)||void 0===_props$attributes$sty||null===(_props$attributes$sty2=_props$attributes$sty.color)||void 0===_props$attributes$sty2?void 0:_props$attributes$sty2.duotone;if(!duotoneSupport||!values)return(0,react.createElement)(BlockListBlock,props);const id=`wp-duotone-${(0,use_instance_id.Z)(BlockListBlock)}`,selectorsGroup=function scopeSelector(scope,selector){const scopes=scope.split(","),selectors=selector.split(","),selectorsScoped=[];return scopes.forEach((outer=>{selectors.forEach((inner=>{selectorsScoped.push(`${outer.trim()} ${inner.trim()}`)}))})),selectorsScoped.join(", ")}(`.editor-styles-wrapper .${id}`,duotoneSupport),className=classnames_default()(null==props?void 0:props.className,id),element=(0,react.useContext)(BlockList.__unstableElementContext);return(0,react.createElement)(react.Fragment,null,element&&(0,react_dom.createPortal)((0,react.createElement)(DuotoneFilter,{selector:selectorsGroup,id,values:getValuesFromColors(values)}),element),(0,react.createElement)(BlockListBlock,(0,esm_extends.Z)({},props,{className})))}),"withDuotoneStyles");(0,hooks_build_module.KJ)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function addDuotoneAttributes(settings){return(0,build_module.zb)(settings,"color.__experimentalDuotone")?(settings.attributes.style||Object.assign(settings.attributes,{style:{type:"object"}}),settings):settings})),(0,hooks_build_module.KJ)("editor.BlockEdit","core/editor/duotone/with-editor-controls",withDuotoneControls),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/editor/duotone/with-styles",withDuotoneStyles);var button_group=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/button-group/index.js");function LayoutPanel(_ref){let{setAttributes,attributes,name:blockName}=_ref;const{layout}=attributes,defaultThemeLayout=useSetting("layout"),themeSupportsLayout=(0,use_select.Z)((select=>{const{getSettings}=select(store);return getSettings().supportsLayout}),[]),layoutBlockSupport=(0,build_module.Dx)(blockName,"__experimentalLayout",{}),{allowSwitching,allowEditing=!0,allowInheriting=!0,default:defaultBlockLayout}=layoutBlockSupport;if(!allowEditing)return null;const usedLayout=layout||defaultBlockLayout||{},{inherit=!1,type="default"}=usedLayout;if("default"===type&&!themeSupportsLayout)return null;const layoutType=getLayoutType(type),onChangeLayout=newLayout=>setAttributes({layout:newLayout});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(inspector_controls,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Layout")},allowInheriting&&!!defaultThemeLayout&&(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Inherit default layout"),checked:!!inherit,onChange:()=>setAttributes({layout:{inherit:!inherit}})}),!inherit&&allowSwitching&&(0,react.createElement)(LayoutTypeSwitcher,{type,onChange:newType=>setAttributes({layout:{type:newType}})}),!inherit&&layoutType&&(0,react.createElement)(layoutType.inspectorControls,{layout:usedLayout,onChange:onChangeLayout,layoutBlockSupport}))),!inherit&&layoutType&&(0,react.createElement)(layoutType.toolBarControls,{layout:usedLayout,onChange:onChangeLayout,layoutBlockSupport}))}function LayoutTypeSwitcher(_ref2){let{type,onChange}=_ref2;return(0,react.createElement)(button_group.Z,null,function getLayoutTypes(){return layoutTypes}().map((_ref3=>{let{name,label}=_ref3;return(0,react.createElement)(build_module_button.Z,{key:name,isPressed:type===name,onClick:()=>onChange(name)},label)})))}const withInspectorControls=(0,create_higher_order_component.Z)((BlockEdit=>props=>{const{name:blockName}=props;return[(0,build_module.zb)(blockName,"__experimentalLayout")&&(0,react.createElement)(LayoutPanel,(0,esm_extends.Z)({key:"layout"},props)),(0,react.createElement)(BlockEdit,(0,esm_extends.Z)({key:"edit"},props))]}),"withInspectorControls"),withLayoutStyles=(0,create_higher_order_component.Z)((BlockListBlock=>props=>{const{name,attributes}=props,shouldRenderLayoutStyles=(0,build_module.zb)(name,"__experimentalLayout"),id=(0,use_instance_id.Z)(BlockListBlock),defaultThemeLayout=useSetting("layout")||{},element=(0,react.useContext)(BlockList.__unstableElementContext),{layout}=attributes,{default:defaultBlockLayout}=(0,build_module.Dx)(name,"__experimentalLayout")||{},usedLayout=null!=layout&&layout.inherit?defaultThemeLayout:layout||defaultBlockLayout||{},className=classnames_default()(null==props?void 0:props.className,{[`wp-container-${id}`]:shouldRenderLayoutStyles});return(0,react.createElement)(react.Fragment,null,shouldRenderLayoutStyles&&element&&(0,react_dom.createPortal)((0,react.createElement)(LayoutStyle,{selector:`.wp-container-${id}`,layout:usedLayout}),element),(0,react.createElement)(BlockListBlock,(0,esm_extends.Z)({},props,{className})))}));(0,hooks_build_module.KJ)("blocks.registerBlockType","core/layout/addAttribute",(function layout_addAttribute(settings){return(0,lodash.has)(settings.attributes,["layout","type"])||(0,build_module.zb)(settings,"__experimentalLayout")&&(settings.attributes={...settings.attributes,layout:{type:"object"}}),settings})),(0,hooks_build_module.KJ)("editor.BlockListBlock","core/editor/layout/with-layout-styles",withLayoutStyles),(0,hooks_build_module.KJ)("editor.BlockEdit","core/editor/layout/with-inspector-controls",withInspectorControls);const use_border_props_EMPTY_ARRAY=[];function getBorderClassesAndStyles(_ref){var _style$border;let{borderColor,style}=_ref;const borderStyles=(null==style?void 0:style.border)||{},borderClass=getColorClassName("border-color",borderColor);return{className:classnames_default()({[borderClass]:!!borderClass,"has-border-color":borderColor||(null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.color)})||void 0,style:getInlineStyles({border:borderStyles})}}function useBorderProps(attributes){const colors=useSetting("color.palette")||use_border_props_EMPTY_ARRAY,borderProps=getBorderClassesAndStyles(attributes);if(attributes.borderColor){const borderColorObject=getColorObjectByAttributeValues(colors,attributes.borderColor);borderProps.style.borderColor=borderColorObject.color}return borderProps}function getColorClassesAndStyles(attributes){var _style$color,_style$color2,_style$color3,_style$color4,_style$elements,_style$elements$link;const{backgroundColor,textColor,gradient,style}=attributes,backgroundClass=getColorClassName("background-color",backgroundColor),textClass=getColorClassName("color",textColor),gradientClass=__experimentalGetGradientClass(gradient),hasGradient=gradientClass||(null==style||null===(_style$color=style.color)||void 0===_style$color?void 0:_style$color.gradient);return{className:classnames_default()(textClass,gradientClass,{[backgroundClass]:!hasGradient&&!!backgroundClass,"has-text-color":textColor||(null==style||null===(_style$color2=style.color)||void 0===_style$color2?void 0:_style$color2.text),"has-background":backgroundColor||(null==style||null===(_style$color3=style.color)||void 0===_style$color3?void 0:_style$color3.background)||gradient||(null==style||null===(_style$color4=style.color)||void 0===_style$color4?void 0:_style$color4.gradient),"has-link-color":null==style||null===(_style$elements=style.elements)||void 0===_style$elements||null===(_style$elements$link=_style$elements.link)||void 0===_style$elements$link?void 0:_style$elements$link.color})||void 0,style:getInlineStyles({color:(null==style?void 0:style.color)||{}})}}function useColorProps(attributes){const{backgroundColor,textColor,gradient}=attributes,{palette:solidsPerOrigin,gradients:gradientsPerOrigin}=useSetting("color")||{},colors=(0,react.useMemo)((()=>[...(null==solidsPerOrigin?void 0:solidsPerOrigin.custom)||[],...(null==solidsPerOrigin?void 0:solidsPerOrigin.theme)||[],...(null==solidsPerOrigin?void 0:solidsPerOrigin.default)||[]]),[solidsPerOrigin]),gradients=(0,react.useMemo)((()=>[...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.custom)||[],...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.theme)||[],...(null==gradientsPerOrigin?void 0:gradientsPerOrigin.default)||[]]),[gradientsPerOrigin]),colorProps=getColorClassesAndStyles(attributes);if(backgroundColor){const backgroundColorObject=getColorObjectByAttributeValues(colors,backgroundColor);colorProps.style.backgroundColor=backgroundColorObject.color}if(gradient&&(colorProps.style.background=getGradientValueBySlug(gradients,gradient)),textColor){const textColorObject=getColorObjectByAttributeValues(colors,textColor);colorProps.style.color=textColorObject.color}return colorProps}function getSpacingClassesAndStyles(attributes){const{style}=attributes;return{style:getInlineStyles({spacing:(null==style?void 0:style.spacing)||{}})}}function useCachedTruthy(value){const[cachedValue,setCachedValue]=(0,react.useState)(value);return(0,react.useEffect)((()=>{value&&setCachedValue(value)}),[value]),cachedValue}const withEditorColorPalette=()=>(0,create_higher_order_component.Z)((WrappedComponent=>props=>{const{palette:colorPerOrigin}=useSetting("color")||{},allColors=(0,react.useMemo)((()=>[...(null==colorPerOrigin?void 0:colorPerOrigin.custom)||[],...(null==colorPerOrigin?void 0:colorPerOrigin.theme)||[],...(null==colorPerOrigin?void 0:colorPerOrigin.default)||[]]),[colorPerOrigin]);return(0,react.createElement)(WrappedComponent,(0,esm_extends.Z)({},props,{colors:allColors}))}),"withEditorColorPalette");function createColorHOC(colorTypes,withColorPalette){const colorMap=(0,lodash.reduce)(colorTypes,((colorObject,colorType)=>({...colorObject,...(0,lodash.isString)(colorType)?{[colorType]:(0,lodash.kebabCase)(colorType)}:colorType})),{});return(0,compose.Z)([withColorPalette,WrappedComponent=>class extends react.Component{constructor(props){super(props),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(colorValue){const{colors}=this.props;return function getMostReadableColor(colors,colorValue){const colordColor=(0,colord.Vi)(colorValue);return(0,lodash.maxBy)(colors,(_ref=>{let{color}=_ref;return colordColor.contrast(color)})).color}(colors,colorValue)}createSetters(){return(0,lodash.reduce)(colorMap,((settersAccumulator,colorContext,colorAttributeName)=>{const upperFirstColorAttributeName=(0,lodash.upperFirst)(colorAttributeName),customColorAttributeName=`custom${upperFirstColorAttributeName}`;return settersAccumulator[`set${upperFirstColorAttributeName}`]=this.createSetColor(colorAttributeName,customColorAttributeName),settersAccumulator}),{})}createSetColor(colorAttributeName,customColorAttributeName){return colorValue=>{const colorObject=getColorObjectByColorValue(this.props.colors,colorValue);this.props.setAttributes({[colorAttributeName]:colorObject&&colorObject.slug?colorObject.slug:void 0,[customColorAttributeName]:colorObject&&colorObject.slug?void 0:colorValue})}}static getDerivedStateFromProps(_ref,previousState){let{attributes,colors}=_ref;return(0,lodash.reduce)(colorMap,((newState,colorContext,colorAttributeName)=>{const colorObject=getColorObjectByAttributeValues(colors,attributes[colorAttributeName],attributes[`custom${(0,lodash.upperFirst)(colorAttributeName)}`]),previousColorObject=previousState[colorAttributeName];return(null==previousColorObject?void 0:previousColorObject.color)===colorObject.color&&previousColorObject?newState[colorAttributeName]=previousColorObject:newState[colorAttributeName]={...colorObject,class:getColorClassName(colorContext,colorObject.slug)},newState}),{})}render(){return(0,react.createElement)(WrappedComponent,(0,esm_extends.Z)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function withColors(){const withColorPalette=withEditorColorPalette();for(var _len2=arguments.length,colorTypes=new Array(_len2),_key2=0;_key2<_len2;_key2++)colorTypes[_key2]=arguments[_key2];return(0,create_higher_order_component.Z)(createColorHOC(colorTypes,withColorPalette),"withColors")}var align_left=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/align-left.js"),align_center=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/align-center.js"),align_right=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/align-right.js");const DEFAULT_ALIGNMENT_CONTROLS=[{icon:align_left.Z,title:(0,i18n_build_module.__)("Align text left"),align:"left"},{icon:align_center.Z,title:(0,i18n_build_module.__)("Align text center"),align:"center"},{icon:align_right.Z,title:(0,i18n_build_module.__)("Align text right"),align:"right"}],ui_POPOVER_PROPS={position:"bottom right",isAlternate:!0};const alignment_control_ui=function AlignmentUI(_ref){let{value,onChange,alignmentControls=DEFAULT_ALIGNMENT_CONTROLS,label=(0,i18n_build_module.__)("Align"),describedBy=(0,i18n_build_module.__)("Change text alignment"),isCollapsed=!0,isToolbar}=_ref;function applyOrUnset(align){return()=>onChange(value===align?void 0:align)}const activeAlignment=(0,lodash.find)(alignmentControls,(control=>control.align===value)),UIComponent=isToolbar?toolbar_group.Z:toolbar_dropdown_menu.Z,extraProps=isToolbar?{isCollapsed}:{};return(0,react.createElement)(UIComponent,(0,esm_extends.Z)({icon:function setIcon(){return activeAlignment?activeAlignment.icon:(0,i18n_build_module.dZ)()?align_right.Z:align_left.Z}(),label,toggleProps:{describedBy},popoverProps:ui_POPOVER_PROPS,controls:alignmentControls.map((control=>{const{align}=control,isActive=value===align;return{...control,isActive,role:isCollapsed?"menuitemradio":void 0,onClick:applyOrUnset(align)}}))},extraProps))};function AlignmentControl(props){return(0,react.createElement)(alignment_control_ui,(0,esm_extends.Z)({},props,{isToolbar:!1}))}function AlignmentToolbar(props){return(0,react.createElement)(alignment_control_ui,(0,esm_extends.Z)({},props,{isToolbar:!0}))}const library_fullscreen=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));const block_full_height_alignment_control=function BlockFullHeightAlignmentControl(_ref){let{isActive,label=(0,i18n_build_module.__)("Toggle full height"),onToggle,isDisabled}=_ref;return(0,react.createElement)(toolbar_button.Z,{isActive,icon:library_fullscreen,label,onClick:()=>onToggle(!isActive),disabled:isDisabled})},GRID=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],ALIGNMENT_LABEL={"top left":(0,i18n_build_module.__)("Top Left"),"top center":(0,i18n_build_module.__)("Top Center"),"top right":(0,i18n_build_module.__)("Top Right"),"center left":(0,i18n_build_module.__)("Center Left"),"center center":(0,i18n_build_module.__)("Center Center"),"center right":(0,i18n_build_module.__)("Center Right"),"bottom left":(0,i18n_build_module.__)("Bottom Left"),"bottom center":(0,i18n_build_module.__)("Bottom Center"),"bottom right":(0,i18n_build_module.__)("Bottom Right")},alignment_matrix_control_utils_ALIGNMENTS=(0,lodash.flattenDeep)(GRID);function transformValue(value){return("center"===value?"center center":value).replace("-"," ")}function getItemId(prefixId,value){return`${prefixId}-${transformValue(value).replace(" ","-")}`}var reduce_motion=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/utils/reduce-motion.js");var _ref={name:"lp9rn7",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const rootBase=()=>_ref,alignment_matrix_control_styles_Root=(0,emotion_styled_base_browser_esm.Z)("div",{target:"e1od1u4s3"})(rootBase,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(_ref2=>{let{size=92}=_ref2;return(0,emotion_react_browser_esm.iv)("grid-template-rows:repeat( 3, calc( ",size,"px / 3 ) );width:",size,"px;","")}),";"),Row=(0,emotion_styled_base_browser_esm.Z)("div",{target:"e1od1u4s2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),pointBase=props=>(0,emotion_react_browser_esm.iv)("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",(0,reduce_motion.r)("transition")," ",(_ref3=>{let{isActive}=_ref3;const boxShadow=isActive?`0 0 0 2px ${colors_values.DM.black}`:null,pointColor=isActive?colors_values.DM.black:colors_values.DM.lightGray[800],pointColorHover=isActive?colors_values.DM.black:colors_values.DM.blue.medium.focus;return(0,emotion_react_browser_esm.iv)("box-shadow:",boxShadow,";color:",pointColor,";*:hover>&{color:",pointColorHover,";}","")})(props),";",""),Point=(0,emotion_styled_base_browser_esm.Z)("span",{target:"e1od1u4s1"})("height:6px;width:6px;",pointBase,";"),Cell=(0,emotion_styled_base_browser_esm.Z)("span",{target:"e1od1u4s0"})({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 cell_Cell(_ref){let{isActive=!1,value,...props}=_ref;const tooltipText=ALIGNMENT_LABEL[value];return(0,react.createElement)(tooltip.Z,{text:tooltipText},(0,react.createElement)(CompositeItem.A,(0,esm_extends.Z)({as:Cell,role:"gridcell"},props),(0,react.createElement)(visually_hidden_component.Z,null,value),(0,react.createElement)(Point,{isActive,role:"presentation"})))}(0,emotion_styled_base_browser_esm.Z)("div",{target:"elqsdmc2"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const alignment_matrix_control_icon_styles_Root=(0,emotion_styled_base_browser_esm.Z)("div",{target:"elqsdmc1"})("transform-origin:top left;height:100%;width:100%;",rootBase,";",(()=>(0,emotion_react_browser_esm.iv)({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(_ref=>{let{disablePointerEvents}=_ref;return(0,emotion_react_browser_esm.iv)({pointerEvents:disablePointerEvents?"none":null},"","")}),";"),alignment_matrix_control_icon_styles_Point=(0,emotion_styled_base_browser_esm.Z)("span",{target:"elqsdmc0"})("height:2px;width:2px;",pointBase,";",(_ref2=>{let{isActive}=_ref2;const boxShadow=isActive?"0 0 0 1px currentColor":null;return(0,emotion_react_browser_esm.iv)("box-shadow:",boxShadow,";color:currentColor;*:hover>&{color:currentColor;}","")}),";"),alignment_matrix_control_icon_styles_Cell=Cell,BASE_SIZE=24;function AlignmentMatrixControl(_ref){let{className,id,label=(0,i18n_build_module.__)("Alignment Matrix Control"),defaultValue="center center",value,onChange=lodash.noop,width=92,...props}=_ref;const[immutableDefaultValue]=(0,react.useState)(null!=value?value:defaultValue),baseId=function useBaseId(id){const instanceId=(0,use_instance_id.Z)(AlignmentMatrixControl,"alignment-matrix-control");return id||instanceId}(id),initialCurrentId=getItemId(baseId,immutableDefaultValue),composite=(0,CompositeState.u)({baseId,currentId:initialCurrentId,rtl:(0,i18n_build_module.dZ)()});(0,react.useEffect)((()=>{void 0!==value&&composite.setCurrentId(getItemId(baseId,value))}),[value,composite.setCurrentId]);const classes=classnames_default()("component-alignment-matrix-control",className);return(0,react.createElement)(Composite.b,(0,esm_extends.Z)({},props,composite,{"aria-label":label,as:alignment_matrix_control_styles_Root,className:classes,role:"grid",width}),GRID.map(((cells,index)=>(0,react.createElement)(CompositeGroup,(0,esm_extends.Z)({},composite,{as:Row,role:"row",key:index}),cells.map((cell=>{const cellId=getItemId(baseId,cell),isActive=composite.currentId===cellId;return(0,react.createElement)(cell_Cell,(0,esm_extends.Z)({},composite,{id:cellId,isActive,key:cell,value:cell,onFocus:()=>{onChange(cell)},tabIndex:isActive?0:-1}))}))))))}AlignmentMatrixControl.Icon=function AlignmentMatrixControlIcon(_ref){let{className,disablePointerEvents=!0,size=BASE_SIZE,style={},value="center",...props}=_ref;const alignIndex=function getAlignmentIndex(){const item=transformValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"center").replace("-"," "),index=alignment_matrix_control_utils_ALIGNMENTS.indexOf(item);return index>-1?index:void 0}(value),scale=(size/BASE_SIZE).toFixed(2),classes=classnames_default()("component-alignment-matrix-control-icon",className),styles={...style,transform:`scale(${scale})`};return(0,react.createElement)(alignment_matrix_control_icon_styles_Root,(0,esm_extends.Z)({},props,{className:classes,disablePointerEvents,role:"presentation",size,style:styles}),alignment_matrix_control_utils_ALIGNMENTS.map(((align,index)=>{const isActive=alignIndex===index;return(0,react.createElement)(alignment_matrix_control_icon_styles_Cell,{key:align},(0,react.createElement)(alignment_matrix_control_icon_styles_Point,{isActive}))})))};const block_alignment_matrix_control=function BlockAlignmentMatrixControl(props){const{label=(0,i18n_build_module.__)("Change matrix alignment"),onChange=lodash.noop,value="center",isDisabled}=props,icon=(0,react.createElement)(AlignmentMatrixControl.Icon,{value}),className="block-editor-block-alignment-matrix-control",popoverClassName=`${className}__popover`;return(0,react.createElement)(dropdown.Z,{position:"bottom right",className,popoverProps:{className:popoverClassName,isAlternate:!0},renderToggle:_ref=>{let{onToggle,isOpen}=_ref;return(0,react.createElement)(toolbar_button.Z,{onClick:onToggle,"aria-haspopup":"true","aria-expanded":isOpen,onKeyDown:event=>{isOpen||event.keyCode!==keycodes_build_module.WV||(event.preventDefault(),onToggle())},label,icon,showTooltip:!0,disabled:isDisabled})},renderContent:()=>(0,react.createElement)(AlignmentMatrixControl,{hasFocusBorder:!1,onChange,value})})};function BlockContentOverlay(_ref){let{clientId,tagName:TagName="div",wrapperProps,className}=_ref;const[isOverlayActive,setIsOverlayActive]=(0,react.useState)(!0),[isHovered,setIsHovered]=(0,react.useState)(!1),{isParentSelected,hasChildSelected,isDraggingBlocks,isParentHighlighted}=(0,use_select.Z)((select=>{const{isBlockSelected,hasSelectedInnerBlock,isDraggingBlocks:_isDraggingBlocks,isBlockHighlighted}=select(store);return{isParentSelected:isBlockSelected(clientId),hasChildSelected:hasSelectedInnerBlock(clientId,!0),isDraggingBlocks:_isDraggingBlocks(),isParentHighlighted:isBlockHighlighted(clientId)}}),[clientId]),classes=classnames_default()("block-editor-block-content-overlay",null==wrapperProps?void 0:wrapperProps.className,className,{"overlay-active":isOverlayActive,"parent-highlighted":isParentHighlighted,"is-dragging-blocks":isDraggingBlocks});return(0,react.useEffect)((()=>{isParentSelected||hasChildSelected||isOverlayActive||setIsOverlayActive(!0),isParentSelected&&!isHovered&&isOverlayActive&&setIsOverlayActive(!1),hasChildSelected&&isOverlayActive&&setIsOverlayActive(!1)}),[isParentSelected,hasChildSelected,isOverlayActive,isHovered]),(0,react.createElement)(TagName,(0,esm_extends.Z)({},wrapperProps,{className:classes,onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1),onMouseUp:isOverlayActive?()=>setIsOverlayActive(!1):void 0}),null==wrapperProps?void 0:wrapperProps.children)}var build_module_placeholder=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/placeholder/index.js"),layout=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/layout.js");const block_variation_picker=function BlockVariationPicker(_ref){let{icon=layout.Z,label=(0,i18n_build_module.__)("Choose variation"),instructions=(0,i18n_build_module.__)("Select a variation to start with."),variations,onSelect,allowSkip}=_ref;const classes=classnames_default()("block-editor-block-variation-picker",{"has-many-variations":variations.length>4});return(0,react.createElement)(build_module_placeholder.Z,{icon,label,instructions,className:classes},(0,react.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,i18n_build_module.__)("Block variations")},variations.map((variation=>(0,react.createElement)("li",{key:variation.name},(0,react.createElement)(build_module_button.Z,{variant:"secondary",icon:variation.icon,iconSize:48,onClick:()=>onSelect(variation),className:"block-editor-block-variation-picker__variation",label:variation.description||variation.title}),(0,react.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},variation.title))))),allowSkip&&(0,react.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,react.createElement)(build_module_button.Z,{variant:"link",onClick:()=>onSelect()},(0,i18n_build_module.__)("Skip"))))};var grid=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/grid.js");const VIEWMODES_carousel="carousel",VIEWMODES_grid="grid",Actions=_ref=>{let{onStartBlank,onBlockPatternSelect}=_ref;return(0,react.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},(0,react.createElement)(build_module_button.Z,{onClick:onStartBlank},(0,i18n_build_module.__)("Start blank")),(0,react.createElement)(build_module_button.Z,{variant:"primary",onClick:onBlockPatternSelect},(0,i18n_build_module.__)("Choose")))},CarouselNavigation=_ref2=>{let{handlePrevious,handleNext,activeSlide,totalSlides}=_ref2;return(0,react.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},(0,react.createElement)(build_module_button.Z,{icon:chevron_left.Z,label:(0,i18n_build_module.__)("Previous pattern"),onClick:handlePrevious,disabled:0===activeSlide}),(0,react.createElement)(build_module_button.Z,{icon:chevron_right.Z,label:(0,i18n_build_module.__)("Next pattern"),onClick:handleNext,disabled:activeSlide===totalSlides-1}))},setup_toolbar=_ref3=>{let{viewMode,setViewMode,handlePrevious,handleNext,activeSlide,totalSlides,onBlockPatternSelect,onStartBlank}=_ref3;const isCarouselView=viewMode===VIEWMODES_carousel,displayControls=(0,react.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},(0,react.createElement)(build_module_button.Z,{icon:stretch_full_width,label:(0,i18n_build_module.__)("Carousel view"),onClick:()=>setViewMode(VIEWMODES_carousel),isPressed:isCarouselView}),(0,react.createElement)(build_module_button.Z,{icon:grid.Z,label:(0,i18n_build_module.__)("Grid view"),onClick:()=>setViewMode(VIEWMODES_grid),isPressed:viewMode===VIEWMODES_grid}));return(0,react.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},isCarouselView&&(0,react.createElement)(CarouselNavigation,{handlePrevious,handleNext,activeSlide,totalSlides}),displayControls,isCarouselView&&(0,react.createElement)(Actions,{onBlockPatternSelect,onStartBlank}))};const use_patterns_setup=function usePatternsSetup(clientId,blockName,filterPatternsFn){return(0,use_select.Z)((select=>{const{getBlockRootClientId,__experimentalGetPatternsByBlockTypes,__experimentalGetAllowedPatterns}=select(store),rootClientId=getBlockRootClientId(clientId);return filterPatternsFn?__experimentalGetAllowedPatterns(rootClientId).filter(filterPatternsFn):__experimentalGetPatternsByBlockTypes(blockName,rootClientId)}),[clientId,blockName,filterPatternsFn])},SetupContent=_ref=>{let{viewMode,activeSlide,patterns,onBlockPatternSelect}=_ref;const composite=(0,CompositeState.u)(),containerClass="block-editor-block-pattern-setup__container";if(viewMode===VIEWMODES_carousel){const slideClass=new Map([[activeSlide,"active-slide"],[activeSlide-1,"previous-slide"],[activeSlide+1,"next-slide"]]);return(0,react.createElement)("div",{className:containerClass},(0,react.createElement)("ul",{className:"carousel-container"},patterns.map(((pattern,index)=>(0,react.createElement)(BlockPatternSlide,{className:slideClass.get(index)||"",key:pattern.name,pattern})))))}return(0,react.createElement)(Composite.b,(0,esm_extends.Z)({},composite,{role:"listbox",className:containerClass,"aria-label":(0,i18n_build_module.__)("Patterns list")}),patterns.map((pattern=>(0,react.createElement)(block_pattern_setup_BlockPattern,{key:pattern.name,pattern,onSelect:onBlockPatternSelect,composite}))))};function block_pattern_setup_BlockPattern(_ref2){let{pattern,onSelect,composite}=_ref2;const baseClassName="block-editor-block-pattern-setup-list",{blocks,title,description,viewportWidth=700}=pattern,descriptionId=(0,use_instance_id.Z)(block_pattern_setup_BlockPattern,`${baseClassName}__item-description`);return(0,react.createElement)("div",{className:`${baseClassName}__list-item`,"aria-label":pattern.title,"aria-describedby":pattern.description?descriptionId:void 0},(0,react.createElement)(CompositeItem.A,(0,esm_extends.Z)({role:"option",as:"div"},composite,{className:`${baseClassName}__item`,onClick:()=>onSelect(blocks)}),(0,react.createElement)(block_preview,{blocks,viewportWidth}),(0,react.createElement)("div",{className:`${baseClassName}__item-title`},title)),!!description&&(0,react.createElement)(visually_hidden_component.Z,{id:descriptionId},description))}function BlockPatternSlide(_ref3){let{className,pattern}=_ref3;const{blocks,title,description}=pattern,descriptionId=(0,use_instance_id.Z)(BlockPatternSlide,"block-editor-block-pattern-setup-list__item-description");return(0,react.createElement)("li",{className:`pattern-slide ${className}`,"aria-label":title,"aria-describedby":description?descriptionId:void 0},(0,react.createElement)(block_preview,{blocks,__experimentalLive:!0}),!!description&&(0,react.createElement)(visually_hidden_component.Z,{id:descriptionId},description))}const block_pattern_setup=_ref4=>{let{clientId,blockName,filterPatternsFn,startBlankComponent,onBlockPatternSelect}=_ref4;const[viewMode,setViewMode]=(0,react.useState)(VIEWMODES_carousel),[activeSlide,setActiveSlide]=(0,react.useState)(0),[showBlank,setShowBlank]=(0,react.useState)(!1),{replaceBlock}=(0,use_dispatch.Z)(store),patterns=use_patterns_setup(clientId,blockName,filterPatternsFn);if(null==patterns||!patterns.length||showBlank)return startBlankComponent;const onPatternSelectCallback=onBlockPatternSelect||(blocks=>{const clonedBlocks=blocks.map((block=>(0,build_module.Wm)(block)));replaceBlock(clientId,clonedBlocks)});return(0,react.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${viewMode}`},(0,react.createElement)(setup_toolbar,{viewMode,setViewMode,activeSlide,totalSlides:patterns.length,handleNext:()=>{setActiveSlide((active=>active+1))},handlePrevious:()=>{setActiveSlide((active=>active-1))},onBlockPatternSelect:()=>{onPatternSelectCallback(patterns[activeSlide].blocks)},onStartBlank:()=>{setShowBlank(!0)}}),(0,react.createElement)(SetupContent,{viewMode,activeSlide,patterns,onBlockPatternSelect:onPatternSelectCallback}))},alignBottom=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),alignCenter=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),ui_BLOCK_ALIGNMENTS_CONTROLS={top:{icon:(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:(0,i18n_build_module._x)("Align top","Block vertical alignment setting")},center:{icon:alignCenter,title:(0,i18n_build_module._x)("Align middle","Block vertical alignment setting")},bottom:{icon:alignBottom,title:(0,i18n_build_module._x)("Align bottom","Block vertical alignment setting")}},ui_DEFAULT_CONTROLS=["top","center","bottom"],block_vertical_alignment_control_ui_POPOVER_PROPS={isAlternate:!0};const block_vertical_alignment_control_ui=function BlockVerticalAlignmentUI(_ref){let{value,onChange,controls=ui_DEFAULT_CONTROLS,isCollapsed=!0,isToolbar}=_ref;const activeAlignment=ui_BLOCK_ALIGNMENTS_CONTROLS[value],defaultAlignmentControl=ui_BLOCK_ALIGNMENTS_CONTROLS.top,UIComponent=isToolbar?toolbar_group.Z:toolbar_dropdown_menu.Z,extraProps=isToolbar?{isCollapsed}:{};return(0,react.createElement)(UIComponent,(0,esm_extends.Z)({popoverProps:block_vertical_alignment_control_ui_POPOVER_PROPS,icon:activeAlignment?activeAlignment.icon:defaultAlignmentControl.icon,label:(0,i18n_build_module._x)("Change vertical alignment","Block vertical alignment setting label"),controls:controls.map((control=>{return{...ui_BLOCK_ALIGNMENTS_CONTROLS[control],isActive:value===control,role:isCollapsed?"menuitemradio":void 0,onClick:(align=control,()=>onChange(value===align?void 0:align))};var align}))},extraProps))};function BlockVerticalAlignmentControl(props){return(0,react.createElement)(block_vertical_alignment_control_ui,(0,esm_extends.Z)({},props,{isToolbar:!1}))}function BlockVerticalAlignmentToolbar(props){return(0,react.createElement)(block_vertical_alignment_control_ui,(0,esm_extends.Z)({},props,{isToolbar:!0}))}const with_color_context=(0,create_higher_order_component.Z)((WrappedComponent=>props=>{const colorsFeature=useSetting("color.palette"),disableCustomColorsFeature=!useSetting("color.custom"),colors=void 0===props.colors?colorsFeature:props.colors,disableCustomColors=void 0===props.disableCustomColors?disableCustomColorsFeature:props.disableCustomColors,hasColorsToChoose=!(0,lodash.isEmpty)(colors)||!disableCustomColors;return(0,react.createElement)(WrappedComponent,(0,esm_extends.Z)({},props,{colors,disableCustomColors,hasColorsToChoose}))}),"withColorContext"),color_palette=with_color_context(ColorPalette);var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)};var __assign=function(){return __assign=Object.assign||function __assign(t){for(var s,i=1,n=arguments.length;ifittingHeight*aspect?{width:fittingHeight*aspect,height:fittingHeight}:{width:fittingWidth,height:fittingWidth/aspect}}function restrictPosition(position,mediaSize,cropSize,zoom,rotation){void 0===rotation&&(rotation=0);var _a=translateSize(mediaSize.width,mediaSize.height,rotation),width=_a.width,height=_a.height;return{x:restrictPositionCoord(position.x,width,cropSize.width,zoom),y:restrictPositionCoord(position.y,height,cropSize.height,zoom)}}function restrictPositionCoord(position,mediaSize,cropSize,zoom){var maxPosition=mediaSize*zoom/2-cropSize/2;return Math.min(maxPosition,Math.max(position,-maxPosition))}function getDistanceBetweenPoints(pointA,pointB){return Math.sqrt(Math.pow(pointA.y-pointB.y,2)+Math.pow(pointA.x-pointB.x,2))}function getRotationBetweenPoints(pointA,pointB){return 180*Math.atan2(pointB.y-pointA.y,pointB.x-pointA.x)/Math.PI}function computeCroppedArea(crop,mediaSize,cropSize,aspect,zoom,rotation,restrictPosition){void 0===rotation&&(rotation=0),void 0===restrictPosition&&(restrictPosition=!0);var limitAreaFn=restrictPosition&&0===rotation?limitArea:noOp,croppedAreaPercentages={x:limitAreaFn(100,((mediaSize.width-cropSize.width/zoom)/2-crop.x/zoom)/mediaSize.width*100),y:limitAreaFn(100,((mediaSize.height-cropSize.height/zoom)/2-crop.y/zoom)/mediaSize.height*100),width:limitAreaFn(100,cropSize.width/mediaSize.width*100/zoom),height:limitAreaFn(100,cropSize.height/mediaSize.height*100/zoom)},widthInPixels=Math.round(limitAreaFn(mediaSize.naturalWidth,croppedAreaPercentages.width*mediaSize.naturalWidth/100)),heightInPixels=Math.round(limitAreaFn(mediaSize.naturalHeight,croppedAreaPercentages.height*mediaSize.naturalHeight/100)),sizePixels=mediaSize.naturalWidth>=mediaSize.naturalHeight*aspect?{width:Math.round(heightInPixels*aspect),height:heightInPixels}:{width:widthInPixels,height:Math.round(widthInPixels/aspect)};return{croppedAreaPercentages,croppedAreaPixels:__assign(__assign({},sizePixels),{x:Math.round(limitAreaFn(mediaSize.naturalWidth-sizePixels.width,croppedAreaPercentages.x*mediaSize.naturalWidth/100)),y:Math.round(limitAreaFn(mediaSize.naturalHeight-sizePixels.height,croppedAreaPercentages.y*mediaSize.naturalHeight/100))})}}function limitArea(max,value){return Math.min(max,Math.max(0,value))}function noOp(_max,value){return value}function getInitialCropFromCroppedAreaPixels(croppedAreaPixels,mediaSize,cropSize){var mediaZoom=mediaSize.width/mediaSize.naturalWidth,zoom=function getZoomFromCroppedAreaPixels(croppedAreaPixels,mediaSize,cropSize){var mediaZoom=mediaSize.width/mediaSize.naturalWidth;if(cropSize)return cropSize.height>cropSize.width?cropSize.height/mediaZoom/croppedAreaPixels.height:cropSize.width/mediaZoom/croppedAreaPixels.width;var aspect=croppedAreaPixels.width/croppedAreaPixels.height;return mediaSize.naturalWidth>=mediaSize.naturalHeight*aspect?mediaSize.naturalHeight/croppedAreaPixels.height:mediaSize.naturalWidth/croppedAreaPixels.width}(croppedAreaPixels,mediaSize,cropSize),cropZoom=mediaZoom*zoom;return{crop:{x:((mediaSize.naturalWidth-croppedAreaPixels.width)/2-croppedAreaPixels.x)*cropZoom,y:((mediaSize.naturalHeight-croppedAreaPixels.height)/2-croppedAreaPixels.y)*cropZoom},zoom}}function getCenter(a,b){return{x:(b.x+a.x)/2,y:(b.y+a.y)/2}}function rotateAroundMidPoint(x,y,xMid,yMid,degrees){var cos=Math.cos,sin=Math.sin,radian=degrees*Math.PI/180;return[(x-xMid)*cos(radian)-(y-yMid)*sin(radian)+xMid,(x-xMid)*sin(radian)+(y-yMid)*cos(radian)+yMid]}function translateSize(width,height,rotation){var centerX=width/2,centerY=height/2,outerBounds=[rotateAroundMidPoint(0,0,centerX,centerY,rotation),rotateAroundMidPoint(width,0,centerX,centerY,rotation),rotateAroundMidPoint(width,height,centerX,centerY,rotation),rotateAroundMidPoint(0,height,centerX,centerY,rotation)],minX=Math.min.apply(Math,outerBounds.map((function(p){return p[0]}))),maxX=Math.max.apply(Math,outerBounds.map((function(p){return p[0]}))),minY=Math.min.apply(Math,outerBounds.map((function(p){return p[1]})));return{width:maxX-minX,height:Math.max.apply(Math,outerBounds.map((function(p){return p[1]})))-minY}}function classNames(){for(var args=[],_i=0;_i0})).join(" ").trim()}var Cropper=function(_super){function Cropper(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.imageRef=null,_this.videoRef=null,_this.containerRef=null,_this.styleRef=null,_this.containerRect=null,_this.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},_this.dragStartPosition={x:0,y:0},_this.dragStartCrop={x:0,y:0},_this.lastPinchDistance=0,_this.lastPinchRotation=0,_this.rafDragTimeout=null,_this.rafPinchTimeout=null,_this.wheelTimer=null,_this.state={cropSize:null,hasWheelJustStarted:!1},_this.preventZoomSafari=function(e){return e.preventDefault()},_this.cleanEvents=function(){document.removeEventListener("mousemove",_this.onMouseMove),document.removeEventListener("mouseup",_this.onDragStopped),document.removeEventListener("touchmove",_this.onTouchMove),document.removeEventListener("touchend",_this.onDragStopped)},_this.clearScrollEvent=function(){_this.containerRef&&_this.containerRef.removeEventListener("wheel",_this.onWheel),_this.wheelTimer&&clearTimeout(_this.wheelTimer)},_this.onMediaLoad=function(){_this.computeSizes(),_this.emitCropData(),_this.setInitialCrop(),_this.props.onMediaLoaded&&_this.props.onMediaLoaded(_this.mediaSize)},_this.setInitialCrop=function(){var _a=_this.props,initialCroppedAreaPixels=_a.initialCroppedAreaPixels,cropSize=_a.cropSize;if(initialCroppedAreaPixels){var _b=getInitialCropFromCroppedAreaPixels(initialCroppedAreaPixels,_this.mediaSize,cropSize),crop=_b.crop,zoom=_b.zoom;_this.props.onCropChange(crop),_this.props.onZoomChange&&_this.props.onZoomChange(zoom)}},_this.computeSizes=function(){var _a,_b,_c,_d,_e,_f,mediaRef=_this.imageRef||_this.videoRef;if(mediaRef&&_this.containerRef){_this.containerRect=_this.containerRef.getBoundingClientRect(),_this.mediaSize={width:mediaRef.offsetWidth,height:mediaRef.offsetHeight,naturalWidth:(null===(_a=_this.imageRef)||void 0===_a?void 0:_a.naturalWidth)||(null===(_b=_this.videoRef)||void 0===_b?void 0:_b.videoWidth)||0,naturalHeight:(null===(_c=_this.imageRef)||void 0===_c?void 0:_c.naturalHeight)||(null===(_d=_this.videoRef)||void 0===_d?void 0:_d.videoHeight)||0};var cropSize=_this.props.cropSize?_this.props.cropSize:getCropSize(mediaRef.offsetWidth,mediaRef.offsetHeight,_this.containerRect.width,_this.containerRect.height,_this.props.aspect,_this.props.rotation);(null===(_e=_this.state.cropSize)||void 0===_e?void 0:_e.height)===cropSize.height&&(null===(_f=_this.state.cropSize)||void 0===_f?void 0:_f.width)===cropSize.width||_this.props.onCropSizeChange&&_this.props.onCropSizeChange(cropSize),_this.setState({cropSize},_this.recomputeCropPosition)}},_this.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",_this.onMouseMove),document.addEventListener("mouseup",_this.onDragStopped),_this.onDragStart(Cropper.getMousePoint(e))},_this.onMouseMove=function(e){return _this.onDrag(Cropper.getMousePoint(e))},_this.onTouchStart=function(e){document.addEventListener("touchmove",_this.onTouchMove,{passive:!1}),document.addEventListener("touchend",_this.onDragStopped),2===e.touches.length?_this.onPinchStart(e):1===e.touches.length&&_this.onDragStart(Cropper.getTouchPoint(e.touches[0]))},_this.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?_this.onPinchMove(e):1===e.touches.length&&_this.onDrag(Cropper.getTouchPoint(e.touches[0]))},_this.onDragStart=function(_a){var _b,_c,x=_a.x,y=_a.y;_this.dragStartPosition={x,y},_this.dragStartCrop=__assign({},_this.props.crop),null===(_c=(_b=_this.props).onInteractionStart)||void 0===_c||_c.call(_b)},_this.onDrag=function(_a){var x=_a.x,y=_a.y;_this.rafDragTimeout&&window.cancelAnimationFrame(_this.rafDragTimeout),_this.rafDragTimeout=window.requestAnimationFrame((function(){if(_this.state.cropSize&&void 0!==x&&void 0!==y){var offsetX=x-_this.dragStartPosition.x,offsetY=y-_this.dragStartPosition.y,requestedPosition={x:_this.dragStartCrop.x+offsetX,y:_this.dragStartCrop.y+offsetY},newPosition=_this.props.restrictPosition?restrictPosition(requestedPosition,_this.mediaSize,_this.state.cropSize,_this.props.zoom,_this.props.rotation):requestedPosition;_this.props.onCropChange(newPosition)}}))},_this.onDragStopped=function(){var _a,_b;_this.cleanEvents(),_this.emitCropData(),null===(_b=(_a=_this.props).onInteractionEnd)||void 0===_b||_b.call(_a)},_this.onWheel=function(e){e.preventDefault();var point=Cropper.getMousePoint(e),pixelY=normalize_wheel_default()(e).pixelY,newZoom=_this.props.zoom-pixelY*_this.props.zoomSpeed/200;_this.setNewZoom(newZoom,point),_this.state.hasWheelJustStarted||_this.setState({hasWheelJustStarted:!0},(function(){var _a,_b;return null===(_b=(_a=_this.props).onInteractionStart)||void 0===_b?void 0:_b.call(_a)})),_this.wheelTimer&&clearTimeout(_this.wheelTimer),_this.wheelTimer=window.setTimeout((function(){return _this.setState({hasWheelJustStarted:!1},(function(){var _a,_b;return null===(_b=(_a=_this.props).onInteractionEnd)||void 0===_b?void 0:_b.call(_a)}))}),250)},_this.getPointOnContainer=function(_a){var x=_a.x,y=_a.y;if(!_this.containerRect)throw new Error("The Cropper is not mounted");return{x:_this.containerRect.width/2-(x-_this.containerRect.left),y:_this.containerRect.height/2-(y-_this.containerRect.top)}},_this.getPointOnMedia=function(_a){var x=_a.x,y=_a.y,_b=_this.props,crop=_b.crop,zoom=_b.zoom;return{x:(x+crop.x)/zoom,y:(y+crop.y)/zoom}},_this.setNewZoom=function(zoom,point){if(_this.state.cropSize&&_this.props.onZoomChange){var zoomPoint=_this.getPointOnContainer(point),zoomTarget=_this.getPointOnMedia(zoomPoint),newZoom=Math.min(_this.props.maxZoom,Math.max(zoom,_this.props.minZoom)),requestedPosition={x:zoomTarget.x*newZoom-zoomPoint.x,y:zoomTarget.y*newZoom-zoomPoint.y},newPosition=_this.props.restrictPosition?restrictPosition(requestedPosition,_this.mediaSize,_this.state.cropSize,newZoom,_this.props.rotation):requestedPosition;_this.props.onCropChange(newPosition),_this.props.onZoomChange(newZoom)}},_this.getCropData=function(){return _this.state.cropSize?computeCroppedArea(_this.props.restrictPosition?restrictPosition(_this.props.crop,_this.mediaSize,_this.state.cropSize,_this.props.zoom,_this.props.rotation):_this.props.crop,_this.mediaSize,_this.state.cropSize,_this.getAspect(),_this.props.zoom,_this.props.rotation,_this.props.restrictPosition):null},_this.emitCropData=function(){var cropData=_this.getCropData();if(cropData){var croppedAreaPercentages=cropData.croppedAreaPercentages,croppedAreaPixels=cropData.croppedAreaPixels;_this.props.onCropComplete&&_this.props.onCropComplete(croppedAreaPercentages,croppedAreaPixels),_this.props.onCropAreaChange&&_this.props.onCropAreaChange(croppedAreaPercentages,croppedAreaPixels)}},_this.emitCropAreaChange=function(){var cropData=_this.getCropData();if(cropData){var croppedAreaPercentages=cropData.croppedAreaPercentages,croppedAreaPixels=cropData.croppedAreaPixels;_this.props.onCropAreaChange&&_this.props.onCropAreaChange(croppedAreaPercentages,croppedAreaPixels)}},_this.recomputeCropPosition=function(){if(_this.state.cropSize){var newPosition=_this.props.restrictPosition?restrictPosition(_this.props.crop,_this.mediaSize,_this.state.cropSize,_this.props.zoom,_this.props.rotation):_this.props.crop;_this.props.onCropChange(newPosition),_this.emitCropData()}},_this}return function __extends(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}(Cropper,_super),Cropper.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},Cropper.prototype.componentWillUnmount=function(){var _a;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(_a=this.styleRef.parentNode)||void 0===_a||_a.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},Cropper.prototype.componentDidUpdate=function(prevProps){var _a,_b,_c,_d,_e,_f,_g,_h,_j;prevProps.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):prevProps.aspect!==this.props.aspect?this.computeSizes():prevProps.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(_a=prevProps.cropSize)||void 0===_a?void 0:_a.height)!==(null===(_b=this.props.cropSize)||void 0===_b?void 0:_b.height)||(null===(_c=prevProps.cropSize)||void 0===_c?void 0:_c.width)!==(null===(_d=this.props.cropSize)||void 0===_d?void 0:_d.width)?this.computeSizes():(null===(_e=prevProps.crop)||void 0===_e?void 0:_e.x)===(null===(_f=this.props.crop)||void 0===_f?void 0:_f.x)&&(null===(_g=prevProps.crop)||void 0===_g?void 0:_g.y)===(null===(_h=this.props.crop)||void 0===_h?void 0:_h.y)||this.emitCropAreaChange(),prevProps.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),prevProps.video!==this.props.video&&(null===(_j=this.videoRef)||void 0===_j||_j.load())},Cropper.prototype.getAspect=function(){var _a=this.props,cropSize=_a.cropSize,aspect=_a.aspect;return cropSize?cropSize.width/cropSize.height:aspect},Cropper.prototype.onPinchStart=function(e){var pointA=Cropper.getTouchPoint(e.touches[0]),pointB=Cropper.getTouchPoint(e.touches[1]);this.lastPinchDistance=getDistanceBetweenPoints(pointA,pointB),this.lastPinchRotation=getRotationBetweenPoints(pointA,pointB),this.onDragStart(getCenter(pointA,pointB))},Cropper.prototype.onPinchMove=function(e){var _this=this,pointA=Cropper.getTouchPoint(e.touches[0]),pointB=Cropper.getTouchPoint(e.touches[1]),center=getCenter(pointA,pointB);this.onDrag(center),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var distance=getDistanceBetweenPoints(pointA,pointB),newZoom=_this.props.zoom*(distance/_this.lastPinchDistance);_this.setNewZoom(newZoom,center),_this.lastPinchDistance=distance;var rotation=getRotationBetweenPoints(pointA,pointB),newRotation=_this.props.rotation+(rotation-_this.lastPinchRotation);_this.props.onRotationChange&&_this.props.onRotationChange(newRotation),_this.lastPinchRotation=rotation}))},Cropper.prototype.render=function(){var _this=this,_a=this.props,image=_a.image,video=_a.video,mediaProps=_a.mediaProps,transform=_a.transform,_b=_a.crop,x=_b.x,y=_b.y,rotation=_a.rotation,zoom=_a.zoom,cropShape=_a.cropShape,showGrid=_a.showGrid,_c=_a.style,containerStyle=_c.containerStyle,cropAreaStyle=_c.cropAreaStyle,mediaStyle=_c.mediaStyle,_d=_a.classes,containerClassName=_d.containerClassName,cropAreaClassName=_d.cropAreaClassName,mediaClassName=_d.mediaClassName,objectFit=_a.objectFit;return react.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function ref(el){return _this.containerRef=el},"data-testid":"container",style:containerStyle,className:classNames("reactEasyCrop_Container",containerClassName)},image?react.createElement("img",__assign({alt:"",className:classNames("reactEasyCrop_Image","contain"===objectFit&&"reactEasyCrop_Contain","horizontal-cover"===objectFit&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===objectFit&&"reactEasyCrop_Cover_Vertical",mediaClassName)},mediaProps,{src:image,ref:function ref(el){return _this.imageRef=el},style:__assign(__assign({},mediaStyle),{transform:transform||"translate("+x+"px, "+y+"px) rotate("+rotation+"deg) scale("+zoom+")"}),onLoad:this.onMediaLoad})):video&&react.createElement("video",__assign({autoPlay:!0,loop:!0,muted:!0,className:classNames("reactEasyCrop_Video","contain"===objectFit&&"reactEasyCrop_Contain","horizontal-cover"===objectFit&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===objectFit&&"reactEasyCrop_Cover_Vertical",mediaClassName)},mediaProps,{ref:function ref(el){return _this.videoRef=el},onLoadedMetadata:this.onMediaLoad,style:__assign(__assign({},mediaStyle),{transform:transform||"translate("+x+"px, "+y+"px) rotate("+rotation+"deg) scale("+zoom+")"}),controls:!1}),(Array.isArray(video)?video:[{src:video}]).map((function(item){return react.createElement("source",__assign({key:item.src},item))}))),this.state.cropSize&&react.createElement("div",{style:__assign(__assign({},cropAreaStyle),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:classNames("reactEasyCrop_CropArea","round"===cropShape&&"reactEasyCrop_CropAreaRound",showGrid&&"reactEasyCrop_CropAreaGrid",cropAreaClassName)}))},Cropper.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},Cropper.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},Cropper.getTouchPoint=function(touch){return{x:Number(touch.clientX),y:Number(touch.clientY)}},Cropper}(react.Component);const react_easy_crop_index_module=Cropper;var spinner=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/spinner/index.js");const constants_POPOVER_PROPS={position:"bottom right",isAlternate:!0};var api_fetch_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+api-fetch@5.2.6/node_modules/@wordpress/api-fetch/build-module/index.js");function useTransformImage(imageProperties,isEditing){const transformState=function useTransformState(_ref){let{url,naturalWidth,naturalHeight}=_ref;const[editedUrl,setEditedUrl]=(0,react.useState)(),[crop,setCrop]=(0,react.useState)(),[position,setPosition]=(0,react.useState)({x:0,y:0}),[zoom,setZoom]=(0,react.useState)(),[rotation,setRotation]=(0,react.useState)(),[aspect,setAspect]=(0,react.useState)(),[defaultAspect,setDefaultAspect]=(0,react.useState)(),initializeTransformValues=(0,react.useCallback)((()=>{setPosition({x:0,y:0}),setZoom(100),setRotation(0),setAspect(naturalWidth/naturalHeight),setDefaultAspect(naturalWidth/naturalHeight)}),[naturalWidth,naturalHeight,setPosition,setZoom,setRotation,setAspect,setDefaultAspect]),rotateClockwise=(0,react.useCallback)((()=>{const angle=(rotation+90)%360;let naturalAspectRatio=naturalWidth/naturalHeight;if(rotation%180==90&&(naturalAspectRatio=naturalHeight/naturalWidth),0===angle)return setEditedUrl(),setRotation(angle),setAspect(1/aspect),void setPosition({x:-position.y*naturalAspectRatio,y:position.x*naturalAspectRatio});const el=new window.Image;el.src=url,el.onload=function editImage(event){const canvas=document.createElement("canvas");let translateX=0,translateY=0;angle%180?(canvas.width=event.target.height,canvas.height=event.target.width):(canvas.width=event.target.width,canvas.height=event.target.height),90!==angle&&180!==angle||(translateX=canvas.width),270!==angle&&180!==angle||(translateY=canvas.height);const context=canvas.getContext("2d");context.translate(translateX,translateY),context.rotate(angle*Math.PI/180),context.drawImage(event.target,0,0),canvas.toBlob((blob=>{setEditedUrl(URL.createObjectURL(blob)),setRotation(angle),setAspect(1/aspect),setPosition({x:-position.y*naturalAspectRatio,y:position.x*naturalAspectRatio})}))};const imgCrossOrigin=(0,hooks_build_module.O)("media.crossOrigin",void 0,url);"string"==typeof imgCrossOrigin&&(el.crossOrigin=imgCrossOrigin)}),[rotation,naturalWidth,naturalHeight,setEditedUrl,setRotation,setAspect,setPosition]);return(0,react.useMemo)((()=>({editedUrl,setEditedUrl,crop,setCrop,position,setPosition,zoom,setZoom,rotation,setRotation,rotateClockwise,aspect,setAspect,defaultAspect,initializeTransformValues})),[editedUrl,setEditedUrl,crop,setCrop,position,setPosition,zoom,setZoom,rotation,setRotation,rotateClockwise,aspect,setAspect,defaultAspect,initializeTransformValues])}(imageProperties),{initializeTransformValues}=transformState;return(0,react.useEffect)((()=>{isEditing&&initializeTransformValues()}),[isEditing,initializeTransformValues]),transformState}const ImageEditingContext=(0,react.createContext)({}),useImageEditingContext=()=>(0,react.useContext)(ImageEditingContext);function ImageEditingProvider(_ref){let{id,url,naturalWidth,naturalHeight,isEditing,onFinishEditing,onSaveImage,children}=_ref;const transformImage=useTransformImage({url,naturalWidth,naturalHeight},isEditing),saveImage=function useSaveImage(_ref){let{crop,rotation,height,width,aspect,url,id,onSaveImage,onFinishEditing}=_ref;const{createErrorNotice}=(0,use_dispatch.Z)(notices_build_module.h),[isInProgress,setIsInProgress]=(0,react.useState)(!1),cancel=(0,react.useCallback)((()=>{setIsInProgress(!1),onFinishEditing()}),[setIsInProgress,onFinishEditing]),apply=(0,react.useCallback)((()=>{setIsInProgress(!0);let attrs={};(crop.width<99.9||crop.height<99.9)&&(attrs=crop),rotation>0&&(attrs.rotation=rotation),attrs.src=url,(0,api_fetch_build_module.Z)({path:`/wp/v2/media/${id}/edit`,method:"POST",data:attrs}).then((response=>{onSaveImage({id:response.id,url:response.source_url,height:height&&width?width/aspect:void 0})})).catch((error=>{createErrorNotice((0,i18n_build_module.gB)((0,i18n_build_module.__)("Could not edit image. %s"),error.message),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{setIsInProgress(!1),onFinishEditing()}))}),[setIsInProgress,crop,rotation,height,width,aspect,url,onSaveImage,createErrorNotice,setIsInProgress,onFinishEditing]);return(0,react.useMemo)((()=>({isInProgress,apply,cancel})),[isInProgress,apply,cancel])}({id,url,onSaveImage,onFinishEditing,...transformImage}),providerValue=(0,react.useMemo)((()=>({...transformImage,...saveImage})),[transformImage,saveImage]);return(0,react.createElement)(ImageEditingContext.Provider,{value:providerValue},children)}function ImageCropper(_ref){let{url,width,height,clientWidth,naturalHeight,naturalWidth}=_ref;const{isInProgress,editedUrl,position,zoom,aspect,setPosition,setCrop,setZoom,rotation}=useImageEditingContext();let editedHeight=height||clientWidth*naturalHeight/naturalWidth;return rotation%180==90&&(editedHeight=clientWidth*naturalWidth/naturalHeight),(0,react.createElement)("div",{className:classnames_default()("wp-block-image__crop-area",{"is-applying":isInProgress}),style:{width:width||clientWidth,height:editedHeight}},(0,react.createElement)(react_easy_crop_index_module,{image:editedUrl||url,disabled:isInProgress,minZoom:1,maxZoom:3,crop:position,zoom:zoom/100,aspect,onCropChange:setPosition,onCropComplete:newCropPercent=>{setCrop(newCropPercent)},onZoomChange:newZoom=>{setZoom(100*newZoom)}}),isInProgress&&(0,react.createElement)(spinner.Z,null))}var search=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/search.js");function ZoomDropdown(){const{isInProgress,zoom,setZoom}=useImageEditingContext();return(0,react.createElement)(dropdown.Z,{contentClassName:"wp-block-image__zoom",popoverProps:constants_POPOVER_PROPS,renderToggle:_ref=>{let{isOpen,onToggle}=_ref;return(0,react.createElement)(toolbar_button.Z,{icon:search.Z,label:(0,i18n_build_module.__)("Zoom"),onClick:onToggle,"aria-expanded":isOpen,disabled:isInProgress})},renderContent:()=>(0,react.createElement)(range_control.Z,{label:(0,i18n_build_module.__)("Zoom"),min:100,max:300,value:Math.round(zoom),onChange:setZoom})})}const aspect_ratio=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function AspectGroup(_ref){let{aspectRatios,isDisabled,label,onClick,value}=_ref;return(0,react.createElement)(menu_group.Z,{label},aspectRatios.map((_ref2=>{let{title,aspect}=_ref2;return(0,react.createElement)(menu_item.Z,{key:aspect,disabled:isDisabled,onClick:()=>{onClick(aspect)},role:"menuitemradio",isSelected:aspect===value,icon:aspect===value?check.Z:void 0},title)})))}function AspectRatioDropdown(_ref3){let{toggleProps}=_ref3;const{isInProgress,aspect,setAspect,defaultAspect}=useImageEditingContext();return(0,react.createElement)(dropdown_menu.Z,{icon:aspect_ratio,label:(0,i18n_build_module.__)("Aspect Ratio"),popoverProps:constants_POPOVER_PROPS,toggleProps,className:"wp-block-image__aspect-ratio"},(_ref4=>{let{onClose}=_ref4;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(AspectGroup,{isDisabled:isInProgress,onClick:newAspect=>{setAspect(newAspect),onClose()},value:aspect,aspectRatios:[{title:(0,i18n_build_module.__)("Original"),aspect:defaultAspect},{title:(0,i18n_build_module.__)("Square"),aspect:1}]}),(0,react.createElement)(AspectGroup,{label:(0,i18n_build_module.__)("Landscape"),isDisabled:isInProgress,onClick:newAspect=>{setAspect(newAspect),onClose()},value:aspect,aspectRatios:[{title:(0,i18n_build_module.__)("16:10"),aspect:1.6},{title:(0,i18n_build_module.__)("16:9"),aspect:16/9},{title:(0,i18n_build_module.__)("4:3"),aspect:4/3},{title:(0,i18n_build_module.__)("3:2"),aspect:1.5}]}),(0,react.createElement)(AspectGroup,{label:(0,i18n_build_module.__)("Portrait"),isDisabled:isInProgress,onClick:newAspect=>{setAspect(newAspect),onClose()},value:aspect,aspectRatios:[{title:(0,i18n_build_module.__)("10:16"),aspect:.625},{title:(0,i18n_build_module.__)("9:16"),aspect:9/16},{title:(0,i18n_build_module.__)("3:4"),aspect:3/4},{title:(0,i18n_build_module.__)("2:3"),aspect:2/3}]}))}))}const rotate_right=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function RotationButton(){const{isInProgress,rotateClockwise}=useImageEditingContext();return(0,react.createElement)(toolbar_button.Z,{icon:rotate_right,label:(0,i18n_build_module.__)("Rotate"),onClick:rotateClockwise,disabled:isInProgress})}function FormControls(){const{isInProgress,apply,cancel}=useImageEditingContext();return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(toolbar_button.Z,{onClick:apply,disabled:isInProgress},(0,i18n_build_module.__)("Apply")),(0,react.createElement)(toolbar_button.Z,{onClick:cancel},(0,i18n_build_module.__)("Cancel")))}function ImageEditor(_ref){let{url,width,height,clientWidth,naturalHeight,naturalWidth}=_ref;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(ImageCropper,{url,width,height,clientWidth,naturalHeight,naturalWidth}),(0,react.createElement)(block_controls,null,(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(ZoomDropdown,null),(0,react.createElement)(toolbar_item.Z,null,(toggleProps=>(0,react.createElement)(AspectRatioDropdown,{toggleProps}))),(0,react.createElement)(RotationButton,null)),(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(FormControls,null))))}const IMAGE_SIZE_PRESETS=[25,50,75,100];function ImageSizeControl(_ref){let{imageWidth,imageHeight,imageSizeOptions=[],isResizable=!0,slug,width,height,onChange,onChangeImage=lodash.noop}=_ref;const{currentHeight,currentWidth,updateDimension,updateDimensions}=function useDimensionHandler(customHeight,customWidth,defaultHeight,defaultWidth,onChange){var _ref,_ref2;const[currentWidth,setCurrentWidth]=(0,react.useState)(null!==(_ref=null!=customWidth?customWidth:defaultWidth)&&void 0!==_ref?_ref:""),[currentHeight,setCurrentHeight]=(0,react.useState)(null!==(_ref2=null!=customHeight?customHeight:defaultHeight)&&void 0!==_ref2?_ref2:"");return(0,react.useEffect)((()=>{void 0===customWidth&&void 0!==defaultWidth&&setCurrentWidth(defaultWidth),void 0===customHeight&&void 0!==defaultHeight&&setCurrentHeight(defaultHeight)}),[defaultWidth,defaultHeight]),(0,react.useEffect)((()=>{void 0!==customWidth&&Number.parseInt(customWidth)!==Number.parseInt(currentWidth)&&setCurrentWidth(customWidth),void 0!==customHeight&&Number.parseInt(customHeight)!==Number.parseInt(currentHeight)&&setCurrentHeight(customHeight)}),[customWidth,customHeight]),{currentHeight,currentWidth,updateDimension:(dimension,value)=>{"width"===dimension?setCurrentWidth(value):setCurrentHeight(value),onChange({[dimension]:""===value?void 0:parseInt(value,10)})},updateDimensions:(nextHeight,nextWidth)=>{setCurrentHeight(null!=nextHeight?nextHeight:defaultHeight),setCurrentWidth(null!=nextWidth?nextWidth:defaultWidth),onChange({height:nextHeight,width:nextWidth})}}}(height,width,imageHeight,imageWidth,onChange);return(0,react.createElement)(react.Fragment,null,!(0,lodash.isEmpty)(imageSizeOptions)&&(0,react.createElement)(select_control.Z,{label:(0,i18n_build_module.__)("Image size"),value:slug,options:imageSizeOptions,onChange:onChangeImage}),isResizable&&(0,react.createElement)("div",{className:"block-editor-image-size-control"},(0,react.createElement)("p",{className:"block-editor-image-size-control__row"},(0,i18n_build_module.__)("Image dimensions")),(0,react.createElement)("div",{className:"block-editor-image-size-control__row"},(0,react.createElement)(text_control.Z,{type:"number",className:"block-editor-image-size-control__width",label:(0,i18n_build_module.__)("Width"),value:currentWidth,min:1,onChange:value=>updateDimension("width",value)}),(0,react.createElement)(text_control.Z,{type:"number",className:"block-editor-image-size-control__height",label:(0,i18n_build_module.__)("Height"),value:currentHeight,min:1,onChange:value=>updateDimension("height",value)})),(0,react.createElement)("div",{className:"block-editor-image-size-control__row"},(0,react.createElement)(button_group.Z,{"aria-label":(0,i18n_build_module.__)("Image size presets")},IMAGE_SIZE_PRESETS.map((scale=>{const scaledWidth=Math.round(imageWidth*(scale/100)),scaledHeight=Math.round(imageHeight*(scale/100)),isCurrent=currentWidth===scaledWidth&¤tHeight===scaledHeight;return(0,react.createElement)(build_module_button.Z,{key:scale,isSmall:!0,variant:isCurrent?"primary":void 0,isPressed:isCurrent,onClick:()=>updateDimensions(scaledHeight,scaledWidth)},scale,"%")}))),(0,react.createElement)(build_module_button.Z,{isSmall:!0,onClick:()=>updateDimensions()},(0,i18n_build_module.__)("Reset")))))}var keyboard_return=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/keyboard-return.js");const settings_drawer=_ref=>{let{value,onChange=lodash.noop,settings}=_ref;if(!settings||!settings.length)return null;const handleSettingChange=setting=>newValue=>{onChange({...value,[setting.id]:newValue})},theSettings=settings.map((setting=>(0,react.createElement)(toggle_control.Z,{className:"block-editor-link-control__setting",key:setting.id,label:setting.title,onChange:handleSettingChange(setting),checked:!!value&&!!value[setting.id]})));return(0,react.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,react.createElement)(visually_hidden_component.Z,{as:"legend"},(0,i18n_build_module.__)("Currently selected link settings")),theSettings)};var with_spoken_messages=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/higher-order/with-spoken-messages/index.js"),with_safe_timeout=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/higher-order/with-safe-timeout/index.js"),with_instance_id=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/higher-order/with-instance-id/index.js"),is_url=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/is-url.js");class URLInput extends react.Component{constructor(props){super(props),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=props.autocompleteRef||(0,react.createRef)(),this.inputRef=(0,react.createRef)(),this.updateSuggestions=(0,lodash.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(prevProps){const{showSuggestions,selectedSuggestion}=this.state,{value,__experimentalShowInitialSuggestions=!1}=this.props;showSuggestions&&null!==selectedSuggestion&&this.suggestionNodes[selectedSuggestion]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,lib_default()(this.suggestionNodes[selectedSuggestion],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),prevProps.value===value||this.props.disableSuggestions||this.isUpdatingSuggestions||(null!=value&&value.length?this.updateSuggestions(value):__experimentalShowInitialSuggestions&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var _this$suggestionsRequ,_this$suggestionsRequ2;null===(_this$suggestionsRequ=this.suggestionsRequest)||void 0===_this$suggestionsRequ||null===(_this$suggestionsRequ2=_this$suggestionsRequ.cancel)||void 0===_this$suggestionsRequ2||_this$suggestionsRequ2.call(_this$suggestionsRequ),delete this.suggestionsRequest}bindSuggestionNode(index){return ref=>{this.suggestionNodes[index]=ref}}shouldShowInitialSuggestions(){const{suggestions}=this.state,{__experimentalShowInitialSuggestions=!1,value}=this.props;return!this.isUpdatingSuggestions&&__experimentalShowInitialSuggestions&&!(value&&value.length)&&!(suggestions&&suggestions.length)}updateSuggestions(){var _value;let value=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{__experimentalFetchLinkSuggestions:fetchLinkSuggestions,__experimentalHandleURLSuggestions:handleURLSuggestions}=this.props;if(!fetchLinkSuggestions)return;const isInitialSuggestions=!(null!==(_value=value)&&void 0!==_value&&_value.length);if(value=value.trim(),!isInitialSuggestions&&(value.length<2||!handleURLSuggestions&&(0,is_url.P)(value)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const request=fetchLinkSuggestions(value,{isInitialSuggestions});request.then((suggestions=>{this.suggestionsRequest===request&&(this.setState({suggestions,loading:!1,showSuggestions:!!suggestions.length}),suggestions.length?this.props.debouncedSpeak((0,i18n_build_module.gB)((0,i18n_build_module._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",suggestions.length),suggestions.length),"assertive"):this.props.debouncedSpeak((0,i18n_build_module.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)})).catch((()=>{this.suggestionsRequest===request&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)})),this.suggestionsRequest=request}onChange(event){const inputValue=event.target.value;this.props.onChange(inputValue),this.props.disableSuggestions||this.updateSuggestions(inputValue)}onFocus(){const{suggestions}=this.state,{disableSuggestions,value}=this.props;!value||disableSuggestions||this.isUpdatingSuggestions||suggestions&&suggestions.length||this.updateSuggestions(value)}onKeyDown(event){const{showSuggestions,selectedSuggestion,suggestions,loading}=this.state;if(!showSuggestions||!suggestions.length||loading){switch(event.keyCode){case keycodes_build_module.UP:0!==event.target.selectionStart&&(event.preventDefault(),event.target.setSelectionRange(0,0));break;case keycodes_build_module.WV:this.props.value.length!==event.target.selectionStart&&(event.preventDefault(),event.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case keycodes_build_module.K5:this.props.onSubmit&&this.props.onSubmit(null,event)}return}const suggestion=this.state.suggestions[this.state.selectedSuggestion];switch(event.keyCode){case keycodes_build_module.UP:{event.preventDefault();const previousIndex=selectedSuggestion?selectedSuggestion-1:suggestions.length-1;this.setState({selectedSuggestion:previousIndex});break}case keycodes_build_module.WV:{event.preventDefault();const nextIndex=null===selectedSuggestion||selectedSuggestion===suggestions.length-1?0:selectedSuggestion+1;this.setState({selectedSuggestion:nextIndex});break}case keycodes_build_module.Mf:null!==this.state.selectedSuggestion&&(this.selectLink(suggestion),this.props.speak((0,i18n_build_module.__)("Link selected.")));break;case keycodes_build_module.K5:null!==this.state.selectedSuggestion?(this.selectLink(suggestion),this.props.onSubmit&&this.props.onSubmit(suggestion,event)):this.props.onSubmit&&this.props.onSubmit(null,event)}}selectLink(suggestion){this.props.onChange(suggestion.url,suggestion),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(suggestion){this.selectLink(suggestion),this.inputRef.current.focus()}static getDerivedStateFromProps(_ref,_ref2){let{value,instanceId,disableSuggestions,__experimentalShowInitialSuggestions=!1}=_ref,{showSuggestions}=_ref2,shouldShowSuggestions=showSuggestions;const hasValue=value&&value.length;return __experimentalShowInitialSuggestions||hasValue||(shouldShowSuggestions=!1),!0===disableSuggestions&&(shouldShowSuggestions=!1),{showSuggestions:shouldShowSuggestions,suggestionsListboxId:`block-editor-url-input-suggestions-${instanceId}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${instanceId}`}}render(){return(0,react.createElement)(react.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label,className,isFullWidth,instanceId,placeholder=(0,i18n_build_module.__)("Paste URL or type to search"),__experimentalRenderControl:renderControl,value=""}=this.props,{loading,showSuggestions,selectedSuggestion,suggestionsListboxId,suggestionOptionIdPrefix}=this.state,controlProps={id:`url-input-control-${instanceId}`,label,className:classnames_default()("block-editor-url-input",className,{"is-full-width":isFullWidth})},inputProps={value,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder,onKeyDown:this.onKeyDown,role:"combobox","aria-label":(0,i18n_build_module.__)("URL"),"aria-expanded":showSuggestions,"aria-autocomplete":"list","aria-owns":suggestionsListboxId,"aria-activedescendant":null!==selectedSuggestion?`${suggestionOptionIdPrefix}-${selectedSuggestion}`:void 0,ref:this.inputRef};return renderControl?renderControl(controlProps,inputProps,loading):(0,react.createElement)(base_control.Z,controlProps,(0,react.createElement)("input",inputProps),loading&&(0,react.createElement)(spinner.Z,null))}renderSuggestions(){const{className,__experimentalRenderSuggestions:renderSuggestions,value="",__experimentalShowInitialSuggestions=!1}=this.props,{showSuggestions,suggestions,selectedSuggestion,suggestionsListboxId,suggestionOptionIdPrefix,loading}=this.state,suggestionsListProps={id:suggestionsListboxId,ref:this.autocompleteRef,role:"listbox"},buildSuggestionItemProps=(suggestion,index)=>({role:"option",tabIndex:"-1",id:`${suggestionOptionIdPrefix}-${index}`,ref:this.bindSuggestionNode(index),"aria-selected":index===selectedSuggestion});return(0,lodash.isFunction)(renderSuggestions)&&showSuggestions&&suggestions.length?renderSuggestions({suggestions,selectedSuggestion,suggestionsListProps,buildSuggestionItemProps,isLoading:loading,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:__experimentalShowInitialSuggestions&&!(value&&value.length)}):!(0,lodash.isFunction)(renderSuggestions)&&showSuggestions&&suggestions.length?(0,react.createElement)(popover.Z,{position:"bottom",noArrow:!0,focusOnMount:!1},(0,react.createElement)("div",(0,esm_extends.Z)({},suggestionsListProps,{className:classnames_default()("block-editor-url-input__suggestions",`${className}__suggestions`)}),suggestions.map(((suggestion,index)=>(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({},buildSuggestionItemProps(0,index),{key:suggestion.id,className:classnames_default()("block-editor-url-input__suggestion",{"is-selected":index===selectedSuggestion}),onClick:()=>this.handleOnClick(suggestion)}),suggestion.title))))):null}}const url_input=(0,compose.Z)(with_safe_timeout.Z,with_spoken_messages.Z,with_instance_id.Z,(0,with_select.Z)(((select,props)=>{if((0,lodash.isFunction)(props.__experimentalFetchLinkSuggestions))return;const{getSettings}=select(store);return{__experimentalFetchLinkSuggestions:getSettings().__experimentalFetchLinkSuggestions}})))(URLInput),search_create_button=_ref=>{let text,{searchTerm,onClick,itemProps,isSelected,buttonText}=_ref;return searchTerm?(text=buttonText?(0,lodash.isFunction)(buttonText)?buttonText(searchTerm):buttonText:(0,create_interpolate_element.Z)((0,i18n_build_module.gB)((0,i18n_build_module.__)("Create: %s"),searchTerm),{mark:(0,react.createElement)("mark",null)}),(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({},itemProps,{className:classnames_default()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":isSelected}),onClick}),(0,react.createElement)(build_module_icon.Z,{className:"block-editor-link-control__search-item-icon",icon:library_plus}),(0,react.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,react.createElement)("span",{className:"block-editor-link-control__search-item-title"},text)))):null};function filterURLForDisplay(url){let maxLength=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,filteredURL=url.replace(/^(?:https?:)\/\/(?:www\.)?/,"");filteredURL.match(/^[^\/]+\/$/)&&(filteredURL=filteredURL.replace("/",""));const mediaRegexp=/([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/;if(!maxLength||filteredURL.length<=maxLength||!filteredURL.match(mediaRegexp))return filteredURL;filteredURL=filteredURL.split("?")[0];const urlPieces=filteredURL.split("/"),file=urlPieces[urlPieces.length-1];if(file.length<=maxLength)return"…"+filteredURL.slice(-maxLength);const index=file.lastIndexOf("."),[fileName,extension]=[file.slice(0,index),file.slice(index+1)],truncatedFile=fileName.slice(-3)+"."+extension;return file.slice(0,maxLength-truncatedFile.length-1)+"…"+truncatedFile}var safe_decode_uri=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/safe-decode-uri.js");const text_highlight=_ref=>{let{text="",highlight=""}=_ref;const trimmedHighlightText=highlight.trim();if(!trimmedHighlightText)return text;const regex=new RegExp(`(${(0,lodash.escapeRegExp)(trimmedHighlightText)})`,"gi");return(0,create_interpolate_element.Z)(text.replace(regex,"$&"),{mark:(0,react.createElement)("mark",null)})},library_globe=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"})),search_item=_ref=>{let{itemProps,suggestion,isSelected=!1,onClick,isURL=!1,searchTerm="",shouldShowType=!1}=_ref;return(0,react.createElement)(build_module_button.Z,(0,esm_extends.Z)({},itemProps,{onClick,className:classnames_default()("block-editor-link-control__search-item",{"is-selected":isSelected,"is-url":isURL,"is-entity":!isURL})}),isURL&&(0,react.createElement)(build_module_icon.Z,{className:"block-editor-link-control__search-item-icon",icon:library_globe}),(0,react.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,react.createElement)("span",{className:"block-editor-link-control__search-item-title"},(0,react.createElement)(text_highlight,{text:suggestion.title,highlight:searchTerm})),(0,react.createElement)("span",{"aria-hidden":!isURL,className:"block-editor-link-control__search-item-info"},!isURL&&(filterURLForDisplay((0,safe_decode_uri.x)(suggestion.url))||""),isURL&&(0,i18n_build_module.__)("Press ENTER to add this link"))),shouldShowType&&suggestion.type&&(0,react.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===suggestion.type?"tag":suggestion.type))},DEFAULT_LINK_SETTINGS=[{id:"opensInNewTab",title:(0,i18n_build_module.__)("Open in new tab")}];function LinkControlSearchResults(_ref){let{instanceId,withCreateSuggestion,currentInputValue,handleSuggestionClick,suggestionsListProps,buildSuggestionItemProps,suggestions,selectedSuggestion,isLoading,isInitialSuggestions,createSuggestionButtonText,suggestionsQuery}=_ref;const resultsListClasses=classnames_default()("block-editor-link-control__search-results",{"is-loading":isLoading}),directLinkEntryTypes=["url","mailto","tel","internal"],isSingleDirectEntryResult=1===suggestions.length&&directLinkEntryTypes.includes(suggestions[0].type.toLowerCase()),shouldShowCreateSuggestion=withCreateSuggestion&&!isSingleDirectEntryResult&&!isInitialSuggestions,shouldShowSuggestionsTypes=!(null!=suggestionsQuery&&suggestionsQuery.type),searchResultsLabelId=`block-editor-link-control-search-results-label-${instanceId}`,labelText=isInitialSuggestions?(0,i18n_build_module.__)("Recently updated"):(0,i18n_build_module.gB)((0,i18n_build_module.__)('Search results for "%s"'),currentInputValue),searchResultsLabel=(0,react.createElement)(isInitialSuggestions?react.Fragment:visually_hidden_component.Z,{},(0,react.createElement)("span",{className:"block-editor-link-control__search-results-label",id:searchResultsLabelId},labelText));return(0,react.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},searchResultsLabel,(0,react.createElement)("div",(0,esm_extends.Z)({},suggestionsListProps,{className:resultsListClasses,"aria-labelledby":searchResultsLabelId}),suggestions.map(((suggestion,index)=>shouldShowCreateSuggestion&&"__CREATE__"===suggestion.type?(0,react.createElement)(search_create_button,{searchTerm:currentInputValue,buttonText:createSuggestionButtonText,onClick:()=>handleSuggestionClick(suggestion),key:suggestion.type,itemProps:buildSuggestionItemProps(suggestion,index),isSelected:index===selectedSuggestion}):"__CREATE__"===suggestion.type?null:(0,react.createElement)(search_item,{key:`${suggestion.id}-${suggestion.type}`,itemProps:buildSuggestionItemProps(suggestion,index),suggestion,index,onClick:()=>{handleSuggestionClick(suggestion)},isSelected:index===selectedSuggestion,isURL:directLinkEntryTypes.includes(suggestion.type.toLowerCase()),searchTerm:currentInputValue,shouldShowType:shouldShowSuggestionsTypes})))))}var get_protocol=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/get-protocol.js"),prepend_http=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/prepend-http.js");function isURLLike(val){const isInternal=(0,lodash.startsWith)(val,"#");return(0,is_url.P)(val)||val&&val.includes("www.")||isInternal}const handleNoop=()=>Promise.resolve([]),handleDirectEntry=val=>{let type="URL";const protocol=(0,get_protocol.E)(val)||"";return protocol.includes("mailto")&&(type="mailto"),protocol.includes("tel")&&(type="tel"),(0,lodash.startsWith)(val,"#")&&(type="internal"),Promise.resolve([{id:val,title:val,url:"URL"===type?(0,prepend_http.u)(val):val,type}])};function useSearchHandler(suggestionsQuery,allowDirectEntry,withCreateSuggestion,withURLSuggestion){const{fetchSearchSuggestions}=(0,use_select.Z)((select=>{const{getSettings}=select(store);return{fetchSearchSuggestions:getSettings().__experimentalFetchLinkSuggestions}}),[]),directEntryHandler=allowDirectEntry?handleDirectEntry:handleNoop;return(0,react.useCallback)(((val,_ref)=>{let{isInitialSuggestions}=_ref;return isURLLike(val)?directEntryHandler(val,{isInitialSuggestions}):(async(val,suggestionsQuery,fetchSearchSuggestions,directEntryHandler,withCreateSuggestion,withURLSuggestion)=>{const{isInitialSuggestions}=suggestionsQuery;let results=await Promise.all([fetchSearchSuggestions(val,suggestionsQuery),directEntryHandler(val)]);return results=val.includes(" ")||!withURLSuggestion||isInitialSuggestions?results[0]:results[0].concat(results[1]),isInitialSuggestions||isURLLike(val)||!withCreateSuggestion?results:results.concat({title:val,url:val,type:"__CREATE__"})})(val,{...suggestionsQuery,isInitialSuggestions},fetchSearchSuggestions,directEntryHandler,withCreateSuggestion,withURLSuggestion)}),[directEntryHandler,fetchSearchSuggestions,withCreateSuggestion])}const noopSearchHandler=()=>Promise.resolve([]),LinkControlSearchInput=(0,react.forwardRef)(((_ref,ref)=>{let{value,children,currentLink={},className=null,placeholder=null,withCreateSuggestion=!1,onCreateSuggestion=lodash.noop,onChange=lodash.noop,onSelect=lodash.noop,showSuggestions=!0,renderSuggestions=props=>(0,react.createElement)(LinkControlSearchResults,props),fetchSuggestions=null,allowDirectEntry=!0,showInitialSuggestions=!1,suggestionsQuery={},withURLSuggestion=!0,createSuggestionButtonText,useLabel=!1}=_ref;const genericSearchHandler=useSearchHandler(suggestionsQuery,allowDirectEntry,withCreateSuggestion,withURLSuggestion),searchHandler=showSuggestions?fetchSuggestions||genericSearchHandler:noopSearchHandler,instanceId=(0,use_instance_id.Z)(LinkControlSearchInput),[focusedSuggestion,setFocusedSuggestion]=(0,react.useState)(),onSuggestionSelected=async selectedSuggestion=>{let suggestion=selectedSuggestion;if("__CREATE__"!==selectedSuggestion.type)(allowDirectEntry||suggestion&&Object.keys(suggestion).length>=1)&&onSelect({...(0,lodash.omit)(currentLink,"id","url"),...suggestion},suggestion);else try{var _suggestion;suggestion=await onCreateSuggestion(selectedSuggestion.title),null!==(_suggestion=suggestion)&&void 0!==_suggestion&&_suggestion.url&&onSelect(suggestion)}catch(e){}},inputClasses=classnames_default()(className,{"has-no-label":!useLabel});return(0,react.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,react.createElement)(url_input,{label:useLabel?"URL":void 0,className:inputClasses,value,onChange:(selection,suggestion)=>{onChange(selection),setFocusedSuggestion(suggestion)},placeholder:null!=placeholder?placeholder:(0,i18n_build_module.__)("Search or type url"),__experimentalRenderSuggestions:showSuggestions?props=>renderSuggestions({...props,instanceId,withCreateSuggestion,currentInputValue:value,createSuggestionButtonText,suggestionsQuery,handleSuggestionClick:suggestion=>{props.handleSuggestionClick&&props.handleSuggestionClick(suggestion),onSuggestionSelected(suggestion)}}):null,__experimentalFetchLinkSuggestions:searchHandler,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:showInitialSuggestions,onSubmit:(suggestion,event)=>{var _value$trim;const hasSuggestion=suggestion||focusedSuggestion;hasSuggestion||null!=value&&null!==(_value$trim=value.trim())&&void 0!==_value$trim&&_value$trim.length?onSuggestionSelected(hasSuggestion||{url:value}):event.preventDefault()},ref}),children)})),search_input=LinkControlSearchInput,library_info=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));var library_edit=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/edit.js"),strip_html=__webpack_require__("../../../node_modules/.pnpm/@wordpress+dom@3.2.7/node_modules/@wordpress/dom/build-module/dom/strip-html.js");const{Slot:ViewerSlot,Fill:ViewerFill}=(0,slot_fill.up)("BlockEditorLinkControlViewer");function use_rich_url_data_reducer(state,action){switch(action.type){case"RESOLVED":return{...state,isFetching:!1,richData:action.richData};case"ERROR":return{...state,isFetching:!1,richData:null};case"LOADING":return{...state,isFetching:!0};default:throw new Error(`Unexpected action type ${action.type}`)}}const use_rich_url_data=function useRemoteUrlData(url){const[state,dispatch]=(0,react.useReducer)(use_rich_url_data_reducer,{richData:null,isFetching:!1}),{fetchRichUrlData}=(0,use_select.Z)((select=>{const{getSettings}=select(store);return{fetchRichUrlData:getSettings().__experimentalFetchRichUrlData}}),[]);return(0,react.useEffect)((()=>{if(null!=url&&url.length&&fetchRichUrlData&&"undefined"!=typeof AbortController){dispatch({type:"LOADING"});const controller=new window.AbortController,signal=controller.signal;return fetchRichUrlData(url,{signal}).then((urlData=>{dispatch({type:"RESOLVED",richData:urlData})})).catch((()=>{signal.aborted||dispatch({type:"ERROR"})})),()=>{controller.abort()}}}),[url]),state};function LinkPreview(_ref){let{value,onEditClick,hasRichPreviews=!1,hasUnlinkControl=!1,onRemove}=_ref;const showRichPreviews=hasRichPreviews?null==value?void 0:value.url:null,{richData,isFetching}=use_rich_url_data(showRichPreviews),hasRichData=richData&&Object.keys(richData).length,displayURL=value&&filterURLForDisplay((0,safe_decode_uri.x)(value.url),16)||"",displayTitle=(null==richData?void 0:richData.title)||(null==value?void 0:value.title)||displayURL,isEmptyURL=!value.url.length;let icon;return icon=null!=richData&&richData.icon?(0,react.createElement)("img",{src:null==richData?void 0:richData.icon,alt:""}):isEmptyURL?(0,react.createElement)(build_module_icon.Z,{icon:library_info,size:32}):(0,react.createElement)(build_module_icon.Z,{icon:library_globe}),(0,react.createElement)("div",{"aria-label":(0,i18n_build_module.__)("Currently selected"),"aria-selected":"true",className:classnames_default()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":hasRichData,"is-fetching":!!isFetching,"is-preview":!0,"is-error":isEmptyURL})},(0,react.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,react.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,react.createElement)("span",{className:classnames_default()("block-editor-link-control__search-item-icon",{"is-image":null==richData?void 0:richData.icon})},icon),(0,react.createElement)("span",{className:"block-editor-link-control__search-item-details"},isEmptyURL?(0,react.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},"Link is empty"):(0,react.createElement)(react.Fragment,null,(0,react.createElement)(external_link.Z,{className:"block-editor-link-control__search-item-title",href:value.url},(0,strip_html.Z)(displayTitle)),(null==value?void 0:value.url)&&(0,react.createElement)("span",{className:"block-editor-link-control__search-item-info"},displayURL)))),(0,react.createElement)(build_module_button.Z,{icon:library_edit.Z,label:(0,i18n_build_module.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:onEditClick,iconSize:24}),hasUnlinkControl&&(0,react.createElement)(build_module_button.Z,{icon:link_off.Z,label:(0,i18n_build_module.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:onRemove,iconSize:24}),(0,react.createElement)(ViewerSlot,{fillProps:value})),(hasRichData&&((null==richData?void 0:richData.image)||(null==richData?void 0:richData.description))||isFetching)&&(0,react.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},((null==richData?void 0:richData.image)||isFetching)&&(0,react.createElement)("div",{"aria-hidden":!(null!=richData&&richData.image),className:classnames_default()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=richData&&richData.image)})},(null==richData?void 0:richData.image)&&(0,react.createElement)("img",{src:null==richData?void 0:richData.image,alt:""})),((null==richData?void 0:richData.description)||isFetching)&&(0,react.createElement)("div",{"aria-hidden":!(null!=richData&&richData.description),className:classnames_default()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=richData&&richData.description)})},(null==richData?void 0:richData.description)&&(0,react.createElement)(text_component.Z,{truncate:!0,numberOfLines:"2"},richData.description))))}const makeCancelable=promise=>{let hasCanceled_=!1;return{promise:new Promise(((resolve,reject)=>{promise.then((val=>hasCanceled_?reject({isCanceled:!0}):resolve(val)),(error=>reject(hasCanceled_?{isCanceled:!0}:error)))})),cancel(){hasCanceled_=!0}}};function LinkControl(_ref){var _currentInputValue$tr,_value$url,_value$url$trim;let{searchInputPlaceholder,value,settings=DEFAULT_LINK_SETTINGS,onChange=lodash.noop,onRemove,noDirectEntry=!1,showSuggestions=!0,showInitialSuggestions,forceIsEditingLink,createSuggestion,withCreateSuggestion,inputValue:propInputValue="",suggestionsQuery={},noURLSuggestion=!1,createSuggestionButtonText,hasRichPreviews=!1,hasTextControl=!1,renderControlBottom=null}=_ref;void 0===withCreateSuggestion&&createSuggestion&&(withCreateSuggestion=!0);const isMounting=(0,react.useRef)(!0),wrapperNode=(0,react.useRef)(),textInputRef=(0,react.useRef)(),[internalInputValue,setInternalInputValue]=(0,react.useState)((null==value?void 0:value.url)||""),[internalTextValue,setInternalTextValue]=(0,react.useState)((null==value?void 0:value.title)||""),currentInputValue=propInputValue||internalInputValue,[isEditingLink,setIsEditingLink]=(0,react.useState)(void 0!==forceIsEditingLink?forceIsEditingLink:!value||!value.url),isEndingEditWithFocus=(0,react.useRef)(!1),currentInputIsEmpty=!(null!=currentInputValue&&null!==(_currentInputValue$tr=currentInputValue.trim())&&void 0!==_currentInputValue$tr&&_currentInputValue$tr.length);function stopEditing(){var _wrapperNode$current;isEndingEditWithFocus.current=!(null===(_wrapperNode$current=wrapperNode.current)||void 0===_wrapperNode$current||!_wrapperNode$current.contains(wrapperNode.current.ownerDocument.activeElement)),setIsEditingLink(!1)}(0,react.useEffect)((()=>{void 0!==forceIsEditingLink&&forceIsEditingLink!==isEditingLink&&setIsEditingLink(forceIsEditingLink)}),[forceIsEditingLink]),(0,react.useEffect)((()=>{if(isMounting.current)return void(isMounting.current=!1);const whichFocusTargetIndex=null!=textInputRef&&textInputRef.current?1:0;(dom_build_module.T_.focusable.find(wrapperNode.current)[whichFocusTargetIndex]||wrapperNode.current).focus(),isEndingEditWithFocus.current=!1}),[isEditingLink]),(0,react.useEffect)((()=>{null!=value&&value.title&&value.title!==internalTextValue&&setInternalTextValue(value.title),null!=value&&value.url&&setInternalInputValue(value.url)}),[value]);const{createPage,isCreatingPage,errorMessage}=function useCreatePage(handleCreatePage){const cancelableCreateSuggestion=(0,react.useRef)(),[isCreatingPage,setIsCreatingPage]=(0,react.useState)(!1),[errorMessage,setErrorMessage]=(0,react.useState)(null);return(0,react.useEffect)((()=>()=>{cancelableCreateSuggestion.current&&cancelableCreateSuggestion.current.cancel()}),[]),{createPage:async function(suggestionTitle){setIsCreatingPage(!0),setErrorMessage(null);try{return cancelableCreateSuggestion.current=makeCancelable(Promise.resolve(handleCreatePage(suggestionTitle))),await cancelableCreateSuggestion.current.promise}catch(error){if(error&&error.isCanceled)return;throw setErrorMessage(error.message||(0,i18n_build_module.__)("An unknown error occurred during creation. Please try again.")),error}finally{setIsCreatingPage(!1)}},isCreatingPage,errorMessage}}(createSuggestion),handleSubmit=()=>{currentInputValue===(null==value?void 0:value.url)&&internalTextValue===(null==value?void 0:value.title)||onChange({url:currentInputValue,title:internalTextValue}),stopEditing()},shownUnlinkControl=onRemove&&value&&!isEditingLink&&!isCreatingPage,showSettingsDrawer=!(null==settings||!settings.length),showTextControl=(null==value||null===(_value$url=value.url)||void 0===_value$url||null===(_value$url$trim=_value$url.trim())||void 0===_value$url$trim?void 0:_value$url$trim.length)>0&&hasTextControl;return(0,react.createElement)("div",{tabIndex:-1,ref:wrapperNode,className:"block-editor-link-control"},isCreatingPage&&(0,react.createElement)("div",{className:"block-editor-link-control__loading"},(0,react.createElement)(spinner.Z,null)," ",(0,i18n_build_module.__)("Creating"),"…"),(isEditingLink||!value)&&!isCreatingPage&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",{className:classnames_default()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":showTextControl})},showTextControl&&(0,react.createElement)(text_control.Z,{ref:textInputRef,className:"block-editor-link-control__field block-editor-link-control__text-content",label:"Text",value:internalTextValue,onChange:setInternalTextValue,onKeyDown:event=>{const{keyCode}=event;keyCode!==keycodes_build_module.K5||currentInputIsEmpty||(event.preventDefault(),handleSubmit())}}),(0,react.createElement)(search_input,{currentLink:value,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:searchInputPlaceholder,value:currentInputValue,withCreateSuggestion,onCreateSuggestion:createPage,onChange:setInternalInputValue,onSelect:updatedValue=>{onChange({...updatedValue,title:internalTextValue||(null==updatedValue?void 0:updatedValue.title)}),stopEditing()},showInitialSuggestions,allowDirectEntry:!noDirectEntry,showSuggestions,suggestionsQuery,withURLSuggestion:!noURLSuggestion,createSuggestionButtonText,useLabel:showTextControl},(0,react.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,react.createElement)(build_module_button.Z,{onClick:handleSubmit,label:(0,i18n_build_module.__)("Submit"),icon:keyboard_return.Z,className:"block-editor-link-control__search-submit",disabled:currentInputIsEmpty})))),errorMessage&&(0,react.createElement)(notice.Z,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},errorMessage)),value&&!isEditingLink&&!isCreatingPage&&(0,react.createElement)(LinkPreview,{key:null==value?void 0:value.url,value,onEditClick:()=>setIsEditingLink(!0),hasRichPreviews,hasUnlinkControl:shownUnlinkControl,onRemove}),showSettingsDrawer&&(0,react.createElement)("div",{className:"block-editor-link-control__tools"},(0,react.createElement)(settings_drawer,{value,settings,onChange})),renderControlBottom&&renderControlBottom())}LinkControl.ViewerFill=ViewerFill;const link_control=LinkControl;const RovingTabIndexContext=(0,react.createContext)(),RovingTabIndexProvider=RovingTabIndexContext.Provider;function RovingTabIndex(_ref){let{children}=_ref;const[lastFocusedElement,setLastFocusedElement]=(0,react.useState)(),providerValue=(0,react.useMemo)((()=>({lastFocusedElement,setLastFocusedElement})),[lastFocusedElement]);return(0,react.createElement)(RovingTabIndexProvider,{value:providerValue},children)}function getRowFocusables(rowElement){const focusablesInRow=dom_build_module.T_.focusable.find(rowElement,{sequential:!0});if(focusablesInRow&&focusablesInRow.length)return focusablesInRow.filter((focusable=>focusable.closest('[role="row"]')===rowElement))}const tree_grid=(0,react.forwardRef)((function TreeGrid(_ref,ref){let{children,onExpandRow=()=>{},onCollapseRow=()=>{},...props}=_ref;const onKeyDown=(0,react.useCallback)((event=>{const{keyCode,metaKey,ctrlKey,altKey,shiftKey}=event;if(metaKey||ctrlKey||altKey||shiftKey||!(0,lodash.includes)([keycodes_build_module.UP,keycodes_build_module.WV,keycodes_build_module.RL,keycodes_build_module.pX],keyCode))return;event.stopPropagation();const{activeElement}=document,{currentTarget:treeGridElement}=event;if(!treeGridElement.contains(activeElement))return;const activeRow=activeElement.closest('[role="row"]'),focusablesInRow=getRowFocusables(activeRow),currentColumnIndex=focusablesInRow.indexOf(activeElement);if((0,lodash.includes)([keycodes_build_module.RL,keycodes_build_module.pX],keyCode)){let nextIndex;if(nextIndex=keyCode===keycodes_build_module.RL?Math.max(0,currentColumnIndex-1):Math.min(currentColumnIndex+1,focusablesInRow.length-1),nextIndex===currentColumnIndex){if(keyCode===keycodes_build_module.RL){var _activeRow$ariaLevel,_getRowFocusables,_getRowFocusables$;if("true"===(null==activeRow?void 0:activeRow.ariaExpanded))return onCollapseRow(activeRow),void event.preventDefault();const level=Math.max(parseInt(null!==(_activeRow$ariaLevel=null==activeRow?void 0:activeRow.ariaLevel)&&void 0!==_activeRow$ariaLevel?_activeRow$ariaLevel:1,10)-1,1),rows=Array.from(treeGridElement.querySelectorAll('[role="row"]'));let parentRow=activeRow;for(let i=rows.indexOf(activeRow);i>=0;i--)if(parseInt(rows[i].ariaLevel,10)===level){parentRow=rows[i];break}null===(_getRowFocusables=getRowFocusables(parentRow))||void 0===_getRowFocusables||null===(_getRowFocusables$=_getRowFocusables[0])||void 0===_getRowFocusables$||_getRowFocusables$.focus()}else{if("false"===(null==activeRow?void 0:activeRow.ariaExpanded))return onExpandRow(activeRow),void event.preventDefault();const focusableItems=getRowFocusables(activeRow);var _focusableItems;if(focusableItems.length>0)null===(_focusableItems=focusableItems[focusableItems.length-1])||void 0===_focusableItems||_focusableItems.focus()}return void event.preventDefault()}focusablesInRow[nextIndex].focus(),event.preventDefault()}else if((0,lodash.includes)([keycodes_build_module.UP,keycodes_build_module.WV],keyCode)){const rows=Array.from(treeGridElement.querySelectorAll('[role="row"]')),currentRowIndex=rows.indexOf(activeRow);let nextRowIndex;if(nextRowIndex=keyCode===keycodes_build_module.UP?Math.max(0,currentRowIndex-1):Math.min(currentRowIndex+1,rows.length-1),nextRowIndex===currentRowIndex)return void event.preventDefault();const focusablesInNextRow=getRowFocusables(rows[nextRowIndex]);if(!focusablesInNextRow||!focusablesInNextRow.length)return void event.preventDefault();focusablesInNextRow[Math.min(currentColumnIndex,focusablesInNextRow.length-1)].focus(),event.preventDefault()}}),[]);return(0,react.createElement)(RovingTabIndex,null,(0,react.createElement)("table",(0,esm_extends.Z)({},props,{role:"treegrid",onKeyDown,ref}),(0,react.createElement)("tbody",null,children)))})),roving_tab_index_item=(0,react.forwardRef)((function RovingTabIndexItem(_ref,forwardedRef){let{children,as:Component,...props}=_ref;const localRef=(0,react.useRef)(),ref=forwardedRef||localRef,{lastFocusedElement,setLastFocusedElement}=(0,react.useContext)(RovingTabIndexContext);let tabIndex;lastFocusedElement&&(tabIndex=lastFocusedElement===ref.current?0:-1);const allProps={ref,tabIndex,onFocus:event=>setLastFocusedElement(event.target),...props};return"function"==typeof children?children(allProps):(0,react.createElement)(Component,allProps,children)})),item=(0,react.forwardRef)((function TreeGridItem(_ref,ref){let{children,...props}=_ref;return(0,react.createElement)(roving_tab_index_item,(0,esm_extends.Z)({ref},props),children)})),cell=(0,react.forwardRef)((function TreeGridCell(_ref,ref){let{children,withoutGridItem=!1,...props}=_ref;return(0,react.createElement)("td",(0,esm_extends.Z)({},props,{role:"gridcell"}),withoutGridItem?children:(0,react.createElement)(item,{ref},children))}));const row=(0,react.forwardRef)((function TreeGridRow(_ref,ref){let{children,level,positionInSet,setSize,isExpanded,...props}=_ref;return(0,react.createElement)("tr",(0,esm_extends.Z)({},props,{ref,role:"row","aria-level":level,"aria-posinset":positionInSet,"aria-setsize":setSize,"aria-expanded":isExpanded}),children)})),AnimatedTreeGridRow=animated(row);function ListViewLeaf(_ref){let{isSelected,position,level,rowCount,children,className,path,...props}=_ref;const ref=use_moving_animation({isSelected,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:path});return(0,react.createElement)(AnimatedTreeGridRow,(0,esm_extends.Z)({ref,className:classnames_default()("block-editor-list-view-leaf",className),level,positionInSet:position,setSize:rowCount},props),children)}const chevron_right_small=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function ListViewExpander(_ref){let{onClick}=_ref;return(0,react.createElement)("span",{className:"block-editor-list-view__expander",onClick:event=>onClick(event,{forceToggle:!0}),"aria-hidden":"true"},(0,react.createElement)(build_module_icon.Z,{icon:chevron_right_small}))}const block_select_button=(0,react.forwardRef)((function ListViewBlockSelectButton(_ref,ref){let{className,block:{clientId},isSelected,onClick,onToggleExpanded,position,siblingBlockCount,level,tabIndex,onFocus,onDragStart,onDragEnd,draggable}=_ref;const blockInformation=useBlockDisplayInformation(clientId),descriptionId=`list-view-block-select-button__${(0,use_instance_id.Z)(ListViewBlockSelectButton)}`,blockPositionDescription=((position,siblingCount,level)=>(0,i18n_build_module.gB)((0,i18n_build_module.__)("Block %1$d of %2$d, Level %3$d"),position,siblingCount,level))(position,siblingBlockCount,level);return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(build_module_button.Z,{className:classnames_default()("block-editor-list-view-block-select-button",className),onClick,"aria-describedby":descriptionId,ref,tabIndex,onFocus,onDragStart,onDragEnd,draggable},(0,react.createElement)(ListViewExpander,{onClick:onToggleExpanded}),(0,react.createElement)(block_icon,{icon:null==blockInformation?void 0:blockInformation.icon,showColors:!0}),(0,react.createElement)(BlockTitle,{clientId}),(null==blockInformation?void 0:blockInformation.anchor)&&(0,react.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},blockInformation.anchor),isSelected&&(0,react.createElement)(visually_hidden_component.Z,null,(0,i18n_build_module.__)("(selected block)"))),(0,react.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:descriptionId},blockPositionDescription))})),ListViewBlockContents=(0,react.forwardRef)(((_ref,ref)=>{let{onClick,onToggleExpanded,block,isSelected,position,siblingBlockCount,level,...props}=_ref;const{clientId}=block,{blockMovingClientId,selectedBlockInBlockEditor}=(0,use_select.Z)((select=>{const{getBlockRootClientId,hasBlockMovingClientId,getSelectedBlockClientId}=select(store);return{rootClientId:getBlockRootClientId(clientId)||"",blockMovingClientId:hasBlockMovingClientId(),selectedBlockInBlockEditor:getSelectedBlockClientId()}}),[clientId]),isBlockMoveTarget=blockMovingClientId&&selectedBlockInBlockEditor===clientId,className=classnames_default()("block-editor-list-view-block-contents",{"is-dropping-before":isBlockMoveTarget});return(0,react.createElement)(block_draggable,{clientIds:[block.clientId]},(_ref2=>{let{draggable,onDragStart,onDragEnd}=_ref2;return(0,react.createElement)(block_select_button,(0,esm_extends.Z)({ref,className,block,onClick,onToggleExpanded,isSelected,position,siblingBlockCount,level,draggable,onDragStart,onDragEnd},props))}))})),block_contents=ListViewBlockContents,ListViewContext=(0,react.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),useListViewContext=()=>(0,react.useContext)(ListViewContext);const list_view_block=(0,react.memo)((function ListViewBlock(_ref){let{block,isDragged,isSelected,isBranchSelected,selectBlock,position,level,rowCount,siblingBlockCount,showBlockMovers,path,isExpanded}=_ref;const cellRef=(0,react.useRef)(null),[isHovered,setIsHovered]=(0,react.useState)(!1),{clientId}=block,{toggleBlockHighlight}=(0,use_dispatch.Z)(store),{__experimentalFeatures:withExperimentalFeatures,__experimentalPersistentListViewFeatures:withExperimentalPersistentListViewFeatures,__experimentalHideContainerBlockActions:hideContainerBlockActions,isTreeGridMounted,expand,collapse}=useListViewContext(),hasRenderedMovers=showBlockMovers&&siblingBlockCount>0,moverCellClassName=classnames_default()("block-editor-list-view-block__mover-cell",{"is-visible":isHovered||isSelected}),listViewBlockSettingsClassName=classnames_default()("block-editor-list-view-block__menu-cell",{"is-visible":isHovered||isSelected});(0,react.useEffect)((()=>{withExperimentalPersistentListViewFeatures&&!isTreeGridMounted&&isSelected&&cellRef.current.focus()}),[]);const highlightBlock=withExperimentalPersistentListViewFeatures?toggleBlockHighlight:()=>{},onMouseEnter=(0,react.useCallback)((()=>{setIsHovered(!0),highlightBlock(clientId,!0)}),[clientId,setIsHovered,highlightBlock]),onMouseLeave=(0,react.useCallback)((()=>{setIsHovered(!1),highlightBlock(clientId,!1)}),[clientId,setIsHovered,highlightBlock]),selectEditorBlock=(0,react.useCallback)((event=>{event.stopPropagation(),selectBlock(clientId)}),[clientId,selectBlock]),toggleExpanded=(0,react.useCallback)((event=>{event.stopPropagation(),!0===isExpanded?collapse(clientId):!1===isExpanded&&expand(clientId)}),[clientId,expand,collapse,isExpanded]),showBlockActions=withExperimentalFeatures&&(!hideContainerBlockActions||hideContainerBlockActions&&level>1),hideBlockActions=withExperimentalFeatures&&!showBlockActions;let colSpan;hasRenderedMovers?colSpan=2:hideBlockActions&&(colSpan=3);const classes=classnames_default()({"is-selected":isSelected,"is-branch-selected":withExperimentalPersistentListViewFeatures&&isBranchSelected,"is-dragging":isDragged,"has-single-cell":hideBlockActions});return(0,react.createElement)(ListViewLeaf,{className:classes,onMouseEnter,onMouseLeave,onFocus:onMouseEnter,onBlur:onMouseLeave,level,position,rowCount,path,id:`list-view-block-${clientId}`,"data-block":clientId,isExpanded},(0,react.createElement)(cell,{className:"block-editor-list-view-block__contents-cell",colSpan,ref:cellRef},(_ref2=>{let{ref,tabIndex,onFocus}=_ref2;return(0,react.createElement)("div",{className:"block-editor-list-view-block__contents-container"},(0,react.createElement)(block_contents,{block,onClick:selectEditorBlock,onToggleExpanded:toggleExpanded,isSelected,position,siblingBlockCount,level,ref,tabIndex,onFocus}))})),hasRenderedMovers&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)(cell,{className:moverCellClassName,withoutGridItem:!0},(0,react.createElement)(item,null,(_ref3=>{let{ref,tabIndex,onFocus}=_ref3;return(0,react.createElement)(BlockMoverUpButton,{orientation:"vertical",clientIds:[clientId],ref,tabIndex,onFocus})})),(0,react.createElement)(item,null,(_ref4=>{let{ref,tabIndex,onFocus}=_ref4;return(0,react.createElement)(BlockMoverDownButton,{orientation:"vertical",clientIds:[clientId],ref,tabIndex,onFocus})})))),showBlockActions&&(0,react.createElement)(cell,{className:listViewBlockSettingsClassName},(_ref5=>{let{ref,tabIndex,onFocus}=_ref5;return(0,react.createElement)(block_settings_dropdown,{clientIds:[clientId],icon:more_vertical,toggleProps:{ref,className:"block-editor-list-view-block__menu",tabIndex,onFocus},disableOpenOnArrowDown:!0,__experimentalSelectBlock:selectEditorBlock})})))}));function countBlocks(block,expandedState,draggedClientIds){var _expandedState$block$;if(null==draggedClientIds?void 0:draggedClientIds.includes(block.clientId))return 0;return null===(_expandedState$block$=expandedState[block.clientId])||void 0===_expandedState$block$||_expandedState$block$?1+block.innerBlocks.reduce(countReducer(expandedState,draggedClientIds),0):1}const countReducer=(expandedState,draggedClientIds)=>(count,block)=>{var _expandedState$block$2;if(null==draggedClientIds?void 0:draggedClientIds.includes(block.clientId))return count;return(null===(_expandedState$block$2=expandedState[block.clientId])||void 0===_expandedState$block$2||_expandedState$block$2)&&block.innerBlocks.length>0?count+countBlocks(block,expandedState,draggedClientIds):count+1};function ListViewBranch(props){const{blocks,selectBlock,showBlockMovers,showNestedBlocks,selectedClientIds,level=1,path="",isBranchSelected=!1,listPosition=0,fixedListWindow}=props,{expandedState,draggedClientIds,__experimentalPersistentListViewFeatures}=useListViewContext(),filteredBlocks=(0,lodash.compact)(blocks),blockCount=filteredBlocks.length;let nextPosition=listPosition;return(0,react.createElement)(react.Fragment,null,filteredBlocks.map(((block,index)=>{var _expandedState$client;const{clientId,innerBlocks}=block;index>0&&(nextPosition+=countBlocks(filteredBlocks[index-1],expandedState,draggedClientIds));const usesWindowing=__experimentalPersistentListViewFeatures,{itemInView}=fixedListWindow,blockInView=!usesWindowing||itemInView(nextPosition),position=index+1,updatedPath=path.length>0?`${path}_${position}`:`${position}`,hasNestedBlocks=showNestedBlocks&&!!innerBlocks&&!!innerBlocks.length,isExpanded=hasNestedBlocks?null===(_expandedState$client=expandedState[clientId])||void 0===_expandedState$client||_expandedState$client:void 0,isDragged=!(null==draggedClientIds||!draggedClientIds.includes(clientId)),showBlock=isDragged||blockInView,isSelected=((clientId,selectedBlockClientIds)=>(0,lodash.isArray)(selectedBlockClientIds)&&selectedBlockClientIds.length?-1!==selectedBlockClientIds.indexOf(clientId):selectedBlockClientIds===clientId)(clientId,selectedClientIds),isSelectedBranch=isBranchSelected||isSelected&&hasNestedBlocks;return(0,react.createElement)(async_mode_provider_context.ZP,{key:clientId,value:!isSelected},showBlock&&(0,react.createElement)(list_view_block,{block,selectBlock,isSelected,isBranchSelected:isSelectedBranch,isDragged,level,position,rowCount:blockCount,siblingBlockCount:blockCount,showBlockMovers,path:updatedPath,isExpanded,listPosition:nextPosition}),!showBlock&&(0,react.createElement)("tr",null,(0,react.createElement)("td",{className:"block-editor-list-view-placeholder"})),hasNestedBlocks&&isExpanded&&!isDragged&&(0,react.createElement)(ListViewBranch,{blocks:innerBlocks,selectBlock,showBlockMovers,showNestedBlocks,level:level+1,path:updatedPath,listPosition:nextPosition+1,fixedListWindow,isBranchSelected:isSelectedBranch,selectedClientIds}))})))}ListViewBranch.defaultProps={selectBlock:()=>{}};const branch=(0,react.memo)(ListViewBranch);function ListViewDropIndicator(_ref){let{listViewRef,blockDropTarget}=_ref;const{rootClientId,clientId,dropPosition}=blockDropTarget||{},[rootBlockElement,blockElement]=(0,react.useMemo)((()=>{if(!listViewRef.current)return[];return[rootClientId?listViewRef.current.querySelector(`[data-block="${rootClientId}"]`):void 0,clientId?listViewRef.current.querySelector(`[data-block="${clientId}"]`):void 0]}),[rootClientId,clientId]),targetElement=blockElement||rootBlockElement,getDropIndicatorIndent=(0,react.useCallback)((()=>{if(!rootBlockElement)return 0;const targetElementRect=targetElement.getBoundingClientRect();return rootBlockElement.querySelector(".block-editor-block-icon").getBoundingClientRect().right-targetElementRect.left}),[rootBlockElement,targetElement]),style=(0,react.useMemo)((()=>{if(!targetElement)return{};const indent=getDropIndicatorIndent();return{width:targetElement.offsetWidth-indent}}),[getDropIndicatorIndent,targetElement]),getAnchorRect=(0,react.useCallback)((()=>{if(!targetElement)return{};const ownerDocument=targetElement.ownerDocument,rect=targetElement.getBoundingClientRect(),indent=getDropIndicatorIndent(),anchorRect={left:rect.left+indent,right:rect.right,width:0,height:rect.height,ownerDocument};return"top"===dropPosition?{...anchorRect,top:rect.top,bottom:rect.top}:"bottom"===dropPosition||"inside"===dropPosition?{...anchorRect,top:rect.bottom,bottom:rect.bottom}:{}}),[targetElement,dropPosition,getDropIndicatorIndent]);return targetElement?(0,react.createElement)(popover.Z,{noArrow:!0,animate:!1,getAnchorRect,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},(0,react.createElement)("div",{style,className:"block-editor-list-view-drop-indicator__line"})):null}function isPointContainedByRect(point,rect){return rect.left<=point.x&&rect.right>=point.x&&rect.top<=point.y&&rect.bottom>=point.y}const ALLOWED_DROP_EDGES=["top","bottom"];function useListViewDropZone(){const{getBlockRootClientId,getBlockIndex,getBlockCount,getDraggedBlockClientIds,canInsertBlocks}=(0,use_select.Z)(store),[target,setTarget]=(0,react.useState)(),{rootClientId:targetRootClientId,blockIndex:targetBlockIndex}=target||{},onBlockDrop=useOnBlockDrop(targetRootClientId,targetBlockIndex),draggedBlockClientIds=getDraggedBlockClientIds(),throttled=useThrottle((0,react.useCallback)(((event,currentTarget)=>{const position={x:event.clientX,y:event.clientY},isBlockDrag=!(null==draggedBlockClientIds||!draggedBlockClientIds.length),newTarget=function getListViewDropTarget(blocksData,position){let candidateEdge,candidateBlockData,candidateDistance,candidateRect;for(const blockData of blocksData){if(blockData.isDraggedBlock)continue;const rect=blockData.element.getBoundingClientRect(),[distance,edge]=getDistanceToNearestEdge(position,rect,ALLOWED_DROP_EDGES),isCursorWithinBlock=isPointContainedByRect(position,rect);if(void 0===candidateDistance||distance0||function isNestingGesture(point,rect){const blockCenterX=rect.left+rect.width/2;return point.x>blockCenterX}(position,candidateRect)))return{rootClientId:candidateBlockData.clientId,blockIndex:0,dropPosition:"inside"};if(!candidateBlockData.canInsertDraggedBlocksAsSibling)return;const offset=isDraggingBelow?1:0;return{rootClientId:candidateBlockData.rootClientId,clientId:candidateBlockData.clientId,blockIndex:candidateBlockData.blockIndex+offset,dropPosition:candidateEdge}}(Array.from(currentTarget.querySelectorAll("[data-block]")).map((blockElement=>{const clientId=blockElement.dataset.block,rootClientId=getBlockRootClientId(clientId);return{clientId,rootClientId,blockIndex:getBlockIndex(clientId,rootClientId),element:blockElement,isDraggedBlock:!!isBlockDrag&&draggedBlockClientIds.includes(clientId),innerBlockCount:getBlockCount(clientId),canInsertDraggedBlocksAsSibling:!isBlockDrag||canInsertBlocks(draggedBlockClientIds,rootClientId),canInsertDraggedBlocksAsChild:!isBlockDrag||canInsertBlocks(draggedBlockClientIds,clientId)}})),position);newTarget&&setTarget(newTarget)}),[draggedBlockClientIds]),200);return{ref:useDropZone({onDrop:onBlockDrop,onDragOver(event){throttled(event,event.currentTarget)},onDragEnd(){throttled.cancel(),setTarget(null)}}),target}}const list_view_noop=()=>{},expanded=(state,action)=>{switch(action.type){case"expand":return{...state,[action.clientId]:!0};case"collapse":return{...state,[action.clientId]:!1};default:return state}};const list_view=(0,react.forwardRef)((function ListView(_ref,ref){let{blocks,onSelect=list_view_noop,__experimentalFeatures,__experimentalPersistentListViewFeatures,__experimentalHideContainerBlockActions,showNestedBlocks,showBlockMovers,...props}=_ref;const{clientIdsTree,draggedClientIds,selectedClientIds}=function useListViewClientIds(blocks){return(0,use_select.Z)((select=>{const{getDraggedBlockClientIds,getSelectedBlockClientIds,__unstableGetClientIdsTree}=select(store);return{selectedClientIds:getSelectedBlockClientIds(),draggedClientIds:getDraggedBlockClientIds(),clientIdsTree:blocks||__unstableGetClientIdsTree()}}),[blocks])}(blocks),{selectBlock}=(0,use_dispatch.Z)(store),{visibleBlockCount}=(0,use_select.Z)((select=>{const{getGlobalBlockCount,getClientIdsOfDescendants}=select(store),draggedBlockCount=(null==draggedClientIds?void 0:draggedClientIds.length)>0?getClientIdsOfDescendants(draggedClientIds).length+1:0;return{visibleBlockCount:getGlobalBlockCount()-draggedBlockCount}}),[draggedClientIds]),selectEditorBlock=(0,react.useCallback)((clientId=>{selectBlock(clientId),onSelect(clientId)}),[selectBlock,onSelect]),[expandedState,setExpandedState]=(0,react.useReducer)(expanded,{}),{ref:dropZoneRef,target:blockDropTarget}=useListViewDropZone(),elementRef=(0,react.useRef)(),treeGridRef=(0,use_merge_refs.Z)([elementRef,dropZoneRef,ref]),isMounted=(0,react.useRef)(!1);(0,react.useEffect)((()=>{isMounted.current=!0}),[]);const[fixedListWindow]=function useFixedWindowList(elementRef,itemHeight,totalItems,options){var _options$initWindowSi,_options$useWindowing;const initWindowSize=null!==(_options$initWindowSi=null==options?void 0:options.initWindowSize)&&void 0!==_options$initWindowSi?_options$initWindowSi:30,useWindowing=null===(_options$useWindowing=null==options?void 0:options.useWindowing)||void 0===_options$useWindowing||_options$useWindowing,[fixedListWindow,setFixedListWindow]=(0,react.useState)({visibleItems:initWindowSize,start:0,end:initWindowSize,itemInView:index=>index>=0&&index<=initWindowSize});return(0,react.useLayoutEffect)((()=>{var _scrollContainer$owne,_scrollContainer$owne2,_scrollContainer$owne3,_scrollContainer$owne4;if(!useWindowing)return;const scrollContainer=getScrollContainer(elementRef.current),measureWindow=initRender=>{var _options$windowOversc;if(!scrollContainer)return;const visibleItems=Math.ceil(scrollContainer.clientHeight/itemHeight),windowOverscan=initRender?visibleItems:null!==(_options$windowOversc=null==options?void 0:options.windowOverscan)&&void 0!==_options$windowOversc?_options$windowOversc:visibleItems,firstViewableIndex=Math.floor(scrollContainer.scrollTop/itemHeight),start=Math.max(0,firstViewableIndex-windowOverscan),end=Math.min(totalItems-1,firstViewableIndex+visibleItems+windowOverscan);setFixedListWindow((lastWindow=>{const nextWindow={visibleItems,start,end,itemInView:index=>start<=index&&index<=end};return lastWindow.start!==nextWindow.start||lastWindow.end!==nextWindow.end||lastWindow.visibleItems!==nextWindow.visibleItems?nextWindow:lastWindow}))};measureWindow(!0);const debounceMeasureList=(0,lodash.debounce)((()=>{measureWindow()}),16);return null==scrollContainer||scrollContainer.addEventListener("scroll",debounceMeasureList),null==scrollContainer||null===(_scrollContainer$owne=scrollContainer.ownerDocument)||void 0===_scrollContainer$owne||null===(_scrollContainer$owne2=_scrollContainer$owne.defaultView)||void 0===_scrollContainer$owne2||_scrollContainer$owne2.addEventListener("resize",debounceMeasureList),null==scrollContainer||null===(_scrollContainer$owne3=scrollContainer.ownerDocument)||void 0===_scrollContainer$owne3||null===(_scrollContainer$owne4=_scrollContainer$owne3.defaultView)||void 0===_scrollContainer$owne4||_scrollContainer$owne4.addEventListener("resize",debounceMeasureList),()=>{var _scrollContainer$owne5,_scrollContainer$owne6;null==scrollContainer||scrollContainer.removeEventListener("scroll",debounceMeasureList),null==scrollContainer||null===(_scrollContainer$owne5=scrollContainer.ownerDocument)||void 0===_scrollContainer$owne5||null===(_scrollContainer$owne6=_scrollContainer$owne5.defaultView)||void 0===_scrollContainer$owne6||_scrollContainer$owne6.removeEventListener("resize",debounceMeasureList)}}),[itemHeight,elementRef,totalItems]),(0,react.useLayoutEffect)((()=>{var _scrollContainer$owne7,_scrollContainer$owne8;if(!useWindowing)return;const scrollContainer=getScrollContainer(elementRef.current),handleKeyDown=event=>{switch(event.keyCode){case keycodes_build_module.Sd:return null==scrollContainer?void 0:scrollContainer.scrollTo({top:0});case keycodes_build_module.uR:return null==scrollContainer?void 0:scrollContainer.scrollTo({top:totalItems*itemHeight});case keycodes_build_module.wx:return null==scrollContainer?void 0:scrollContainer.scrollTo({top:scrollContainer.scrollTop-fixedListWindow.visibleItems*itemHeight});case keycodes_build_module.Bi:return null==scrollContainer?void 0:scrollContainer.scrollTo({top:scrollContainer.scrollTop+fixedListWindow.visibleItems*itemHeight})}};return null==scrollContainer||null===(_scrollContainer$owne7=scrollContainer.ownerDocument)||void 0===_scrollContainer$owne7||null===(_scrollContainer$owne8=_scrollContainer$owne7.defaultView)||void 0===_scrollContainer$owne8||_scrollContainer$owne8.addEventListener("keydown",handleKeyDown),()=>{var _scrollContainer$owne9,_scrollContainer$owne10;null==scrollContainer||null===(_scrollContainer$owne9=scrollContainer.ownerDocument)||void 0===_scrollContainer$owne9||null===(_scrollContainer$owne10=_scrollContainer$owne9.defaultView)||void 0===_scrollContainer$owne10||_scrollContainer$owne10.removeEventListener("keydown",handleKeyDown)}}),[totalItems,itemHeight,elementRef,fixedListWindow.visibleItems]),[fixedListWindow,setFixedListWindow]}(elementRef,36,visibleBlockCount,{useWindowing:__experimentalPersistentListViewFeatures,windowOverscan:40}),expand=(0,react.useCallback)((clientId=>{clientId&&setExpandedState({type:"expand",clientId})}),[setExpandedState]),collapse=(0,react.useCallback)((clientId=>{clientId&&setExpandedState({type:"collapse",clientId})}),[setExpandedState]),expandRow=(0,react.useCallback)((row=>{var _row$dataset;expand(null==row||null===(_row$dataset=row.dataset)||void 0===_row$dataset?void 0:_row$dataset.block)}),[expand]),collapseRow=(0,react.useCallback)((row=>{var _row$dataset2;collapse(null==row||null===(_row$dataset2=row.dataset)||void 0===_row$dataset2?void 0:_row$dataset2.block)}),[collapse]),contextValue=(0,react.useMemo)((()=>({__experimentalFeatures,__experimentalPersistentListViewFeatures,__experimentalHideContainerBlockActions,isTreeGridMounted:isMounted.current,draggedClientIds,expandedState,expand,collapse})),[__experimentalFeatures,__experimentalPersistentListViewFeatures,__experimentalHideContainerBlockActions,isMounted.current,draggedClientIds,expandedState,expand,collapse]);return(0,react.createElement)(async_mode_provider_context.ZP,{value:!0},(0,react.createElement)(ListViewDropIndicator,{listViewRef:elementRef,blockDropTarget}),(0,react.createElement)(tree_grid,{className:"block-editor-list-view-tree","aria-label":(0,i18n_build_module.__)("Block navigation structure"),ref:treeGridRef,onCollapseRow:collapseRow,onExpandRow:expandRow},(0,react.createElement)(ListViewContext.Provider,{value:contextValue},(0,react.createElement)(branch,(0,esm_extends.Z)({blocks:clientIdsTree,selectBlock:selectEditorBlock,showNestedBlocks,showBlockMovers,fixedListWindow,selectedClientIds},props)))))}));var build_module_serialize=__webpack_require__("../../../node_modules/.pnpm/@wordpress+element@4.0.4/node_modules/@wordpress/element/build-module/serialize.js"),form_file_upload=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/form-file-upload/index.js"),media=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/media.js"),upload=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/upload.js");const media_upload=withFilters("editor.MediaUpload")((()=>null));const media_upload_check=function MediaUploadCheck(_ref){let{fallback=null,children}=_ref;const hasUploadPermissions=(0,use_select.Z)((select=>{const{getSettings}=select(store);return!!getSettings().mediaUpload}),[]);return hasUploadPermissions?children:fallback},media_replace_flow=(0,compose.Z)([(0,with_dispatch.Z)((dispatch=>{const{createNotice,removeNotice}=dispatch(notices_build_module.h);return{createNotice,removeNotice}})),withFilters("editor.MediaReplaceFlow")])((_ref=>{let{mediaURL,mediaId,allowedTypes,accept,onSelect,onSelectURL,onFilesUpload=lodash.noop,name=(0,i18n_build_module.__)("Replace"),createNotice,removeNotice,children}=_ref;const[mediaURLValue,setMediaURLValue]=(0,react.useState)(mediaURL),mediaUpload=(0,use_select.Z)((select=>select(store).getSettings().mediaUpload),[]),editMediaButtonRef=(0,react.createRef)(),errorNoticeID=(0,lodash.uniqueId)("block-editor/media-replace-flow/error-notice/"),onError=message=>{const errorElement=document.createElement("div");errorElement.innerHTML=(0,build_module_serialize.ZP)(message);const renderMsg=errorElement.textContent||errorElement.innerText||"";setTimeout((()=>{createNotice("error",renderMsg,{speak:!0,id:errorNoticeID,isDismissible:!0})}),1e3)},selectMedia=media=>{setMediaURLValue(media.url),onSelect(media),(0,a11y_build_module.D)((0,i18n_build_module.__)("The media file has been replaced")),removeNotice(errorNoticeID)},openOnArrowDown=event=>{event.keyCode===keycodes_build_module.WV&&(event.preventDefault(),event.target.click())};return(0,react.createElement)(dropdown.Z,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:_ref3=>{let{isOpen,onToggle}=_ref3;return(0,react.createElement)(toolbar_button.Z,{ref:editMediaButtonRef,"aria-expanded":isOpen,"aria-haspopup":"true",onClick:onToggle,onKeyDown:openOnArrowDown},name)},renderContent:_ref4=>{let{onClose}=_ref4;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(navigable_container_menu.Z,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,react.createElement)(media_upload,{value:mediaId,onSelect:media=>selectMedia(media),allowedTypes,render:_ref5=>{let{open}=_ref5;return(0,react.createElement)(menu_item.Z,{icon:media.Z,onClick:open},(0,i18n_build_module.__)("Open Media Library"))}}),(0,react.createElement)(media_upload_check,null,(0,react.createElement)(form_file_upload.Z,{onChange:event=>{(event=>{const files=event.target.files;onFilesUpload(files),mediaUpload({allowedTypes,filesList:files,onFileChange:_ref2=>{let[media]=_ref2;selectMedia(media)},onError})})(event)},accept,render:_ref6=>{let{openFileDialog}=_ref6;return(0,react.createElement)(menu_item.Z,{icon:upload.Z,onClick:()=>{openFileDialog()}},(0,i18n_build_module.__)("Upload"))}})),children),onSelectURL&&(0,react.createElement)("form",{className:"block-editor-media-flow__url-input"},(0,react.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},(0,i18n_build_module.__)("Current media URL:")),(0,react.createElement)(link_control,{value:{url:mediaURLValue},settings:[],showSuggestions:!1,onChange:_ref7=>{let{url}=_ref7;setMediaURLValue(url),onSelectURL(url),editMediaButtonRef.current.focus()}})))}})}));var presenceId=0;function getPresenceId(){var id=presenceId;return presenceId++,id}var PresenceChild=function(_a){var children=_a.children,initial=_a.initial,isPresent=_a.isPresent,onExitComplete=_a.onExitComplete,custom=_a.custom,presenceAffectsLayout=_a.presenceAffectsLayout,presenceChildren=useConstant(newChildrenMap),id=useConstant(getPresenceId),context=(0,react.useMemo)((function(){return{id,initial,isPresent,custom,onExitComplete:function(childId){presenceChildren.set(childId,!0);var allComplete=!0;presenceChildren.forEach((function(isComplete){isComplete||(allComplete=!1)})),allComplete&&(null==onExitComplete||onExitComplete())},register:function(childId){return presenceChildren.set(childId,!1),function(){return presenceChildren.delete(childId)}}}}),presenceAffectsLayout?void 0:[isPresent]);return(0,react.useMemo)((function(){presenceChildren.forEach((function(_,key){return presenceChildren.set(key,!1)}))}),[isPresent]),react.useEffect((function(){!isPresent&&!presenceChildren.size&&(null==onExitComplete||onExitComplete())}),[isPresent]),react.createElement(PresenceContext_PresenceContext.Provider,{value:context},children)};function newChildrenMap(){return new Map}function getChildKey(child){return child.key||""}var AnimatePresence=function(_a){var children=_a.children,custom=_a.custom,_b=_a.initial,initial=void 0===_b||_b,onExitComplete=_a.onExitComplete,exitBeforeEnter=_a.exitBeforeEnter,_c=_a.presenceAffectsLayout,presenceAffectsLayout=void 0===_c||_c,forceRender=function use_force_update_useForceUpdate(){var unloadingRef=(0,react.useRef)(!1),_a=(0,tslib_es6.CR)((0,react.useState)(0),2),forcedRenderCount=_a[0],setForcedRenderCount=_a[1];return useUnmountEffect((function(){return unloadingRef.current=!0})),(0,react.useCallback)((function(){!unloadingRef.current&&setForcedRenderCount(forcedRenderCount+1)}),[forcedRenderCount])}(),layoutContext=(0,react.useContext)(SharedLayoutContext);isSharedLayout(layoutContext)&&(forceRender=layoutContext.forceUpdate);var isInitialRender=(0,react.useRef)(!0),filteredChildren=function onlyElements(children){var filtered=[];return react.Children.forEach(children,(function(child){(0,react.isValidElement)(child)&&filtered.push(child)})),filtered}(children),presentChildren=(0,react.useRef)(filteredChildren),allChildren=(0,react.useRef)(new Map).current,exiting=(0,react.useRef)(new Set).current;if(function updateChildLookup(children,allChildren){children.forEach((function(child){var key=getChildKey(child);allChildren.set(key,child)}))}(filteredChildren,allChildren),isInitialRender.current)return isInitialRender.current=!1,react.createElement(react.Fragment,null,filteredChildren.map((function(child){return react.createElement(PresenceChild,{key:getChildKey(child),isPresent:!0,initial:!!initial&&void 0,presenceAffectsLayout},child)})));for(var childrenToRender=(0,tslib_es6.ev)([],(0,tslib_es6.CR)(filteredChildren)),presentKeys=presentChildren.current.map(getChildKey),targetKeys=filteredChildren.map(getChildKey),numPresent=presentKeys.length,i=0;i0?_type="file":(0,lodash.includes)(event.dataTransfer.types,"text/html")&&(_type="html"),setType(_type)},onDragEnd(){setIsDraggingOverDocument(!1),setType()},onDragEnter(){setIsDraggingOverElement(!0)},onDragLeave(){setIsDraggingOverElement(!1)}}),disableMotion=(0,use_reduced_motion.Z)();let children;const backdrop={hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},foreground={hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}};isDraggingOverElement&&(children=(0,react.createElement)(motion.div,{variants:backdrop,initial:disableMotion?"show":"hidden",animate:"show",exit:disableMotion?"show":"exit",className:"components-drop-zone__content"},(0,react.createElement)(motion.div,{variants:foreground},(0,react.createElement)(build_module_icon.Z,{icon:upload.Z,className:"components-drop-zone__content-icon"}),(0,react.createElement)("span",{className:"components-drop-zone__content-text"},label||(0,i18n_build_module.__)("Drop files to upload")))));const classes=classnames_default()("components-drop-zone",className,{"is-active":(isDraggingOverDocument||isDraggingOverElement)&&("file"===type&&onFilesDrop||"html"===type&&onHTMLDrop||"default"===type&&onDrop),"is-dragging-over-document":isDraggingOverDocument,"is-dragging-over-element":isDraggingOverElement,[`is-dragging-${type}`]:!!type});return(0,react.createElement)("div",{ref,className:classes},disableMotion?children:(0,react.createElement)(AnimatePresence,null,children))}function LinkViewerURL(_ref){let{url,urlLabel,className}=_ref;const linkClassName=classnames_default()(className,"block-editor-url-popover__link-viewer-url");return url?(0,react.createElement)(external_link.Z,{className:linkClassName,href:url},urlLabel||filterURLForDisplay((0,safe_decode_uri.x)(url))):(0,react.createElement)("span",{className:linkClassName})}function URLPopover(_ref){let{additionalControls,children,renderSettings,position="bottom center",focusOnMount="firstElement",...popoverProps}=_ref;const[isSettingsExpanded,setIsSettingsExpanded]=(0,react.useState)(!1),showSettings=!!renderSettings&&isSettingsExpanded;return(0,react.createElement)(popover.Z,(0,esm_extends.Z)({className:"block-editor-url-popover",focusOnMount,position},popoverProps),(0,react.createElement)("div",{className:"block-editor-url-popover__input-container"},(0,react.createElement)("div",{className:"block-editor-url-popover__row"},children,!!renderSettings&&(0,react.createElement)(build_module_button.Z,{className:"block-editor-url-popover__settings-toggle",icon:chevron_down.Z,label:(0,i18n_build_module.__)("Link settings"),onClick:()=>{setIsSettingsExpanded(!isSettingsExpanded)},"aria-expanded":isSettingsExpanded})),showSettings&&(0,react.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},renderSettings())),additionalControls&&!showSettings&&(0,react.createElement)("div",{className:"block-editor-url-popover__additional-controls"},additionalControls))}URLPopover.LinkEditor=function LinkEditor(_ref){let{autocompleteRef,className,onChangeInputValue,value,...props}=_ref;return(0,react.createElement)("form",(0,esm_extends.Z)({className:classnames_default()("block-editor-url-popover__link-editor",className)},props),(0,react.createElement)(url_input,{value,onChange:onChangeInputValue,autocompleteRef}),(0,react.createElement)(build_module_button.Z,{icon:keyboard_return.Z,label:(0,i18n_build_module.__)("Apply"),type:"submit"}))},URLPopover.LinkViewer=function LinkViewer(_ref){let{className,linkClassName,onEditLinkClick,url,urlLabel,...props}=_ref;return(0,react.createElement)("div",(0,esm_extends.Z)({className:classnames_default()("block-editor-url-popover__link-viewer",className)},props),(0,react.createElement)(LinkViewerURL,{url,urlLabel,className:linkClassName}),onEditLinkClick&&(0,react.createElement)(build_module_button.Z,{icon:library_edit.Z,label:(0,i18n_build_module.__)("Edit"),onClick:onEditLinkClick}))};const url_popover=URLPopover,InsertFromURLPopover=_ref=>{let{src,onChange,onSubmit,onClose}=_ref;return(0,react.createElement)(url_popover,{onClose},(0,react.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit},(0,react.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,i18n_build_module.__)("URL"),placeholder:(0,i18n_build_module.__)("Paste or type URL"),onChange,value:src}),(0,react.createElement)(build_module_button.Z,{className:"block-editor-media-placeholder__url-input-submit-button",icon:keyboard_return.Z,label:(0,i18n_build_module.__)("Apply"),type:"submit"})))};const media_placeholder=withFilters("editor.MediaPlaceholder")((function MediaPlaceholder(_ref2){let{value={},allowedTypes,className,icon,labels={},mediaPreview,notices,isAppender,accept,addToGallery,multiple=!1,handleUpload=!0,dropZoneUIOnly,disableDropZone,disableMediaButtons,onError,onSelect,onCancel,onSelectURL,onDoubleClick,onFilesPreUpload=lodash.noop,onHTMLDrop=lodash.noop,children,mediaLibraryButton,placeholder,style}=_ref2;const mediaUpload=(0,use_select.Z)((select=>{const{getSettings}=select(store);return getSettings().mediaUpload}),[]),[src,setSrc]=(0,react.useState)(""),[isURLInputVisible,setIsURLInputVisible]=(0,react.useState)(!1);(0,react.useEffect)((()=>{var _value$src;setSrc(null!==(_value$src=null==value?void 0:value.src)&&void 0!==_value$src?_value$src:"")}),[null==value?void 0:value.src]);const onChangeSrc=event=>{setSrc(event.target.value)},openURLInput=()=>{setIsURLInputVisible(!0)},closeURLInput=()=>{setIsURLInputVisible(!1)},onSubmitSrc=event=>{event.preventDefault(),src&&onSelectURL&&(onSelectURL(src),closeURLInput())},onFilesUpload=files=>{if(!handleUpload)return onSelect(files);let setMedia;if(onFilesPreUpload(files),multiple)if(addToGallery){let lastMediaPassed=[];setMedia=newMedia=>{const filteredMedia=(null!=value?value:[]).filter((item=>item.id?!lastMediaPassed.some((_ref3=>{let{id}=_ref3;return Number(id)===Number(item.id)})):!lastMediaPassed.some((_ref4=>{let{urlSlug}=_ref4;return item.url.includes(urlSlug)}))));onSelect(filteredMedia.concat(newMedia)),lastMediaPassed=newMedia.map((media=>{const cutOffIndex=media.url.lastIndexOf("."),urlSlug=media.url.slice(0,cutOffIndex);return{id:media.id,urlSlug}}))}}else setMedia=onSelect;else setMedia=_ref5=>{let[media]=_ref5;return onSelect(media)};mediaUpload({allowedTypes,filesList:files,onFileChange:setMedia,onError})},onUpload=event=>{onFilesUpload(event.target.files)},renderPlaceholder=null!=placeholder?placeholder:content=>{let{instructions,title}=labels;if(mediaUpload||onSelectURL||(instructions=(0,i18n_build_module.__)("To edit this block, you need permission to upload media.")),void 0===instructions||void 0===title){const typesAllowed=null!=allowedTypes?allowedTypes:[],[firstAllowedType]=typesAllowed,isOneType=1===typesAllowed.length,isAudio=isOneType&&"audio"===firstAllowedType,isImage=isOneType&&"image"===firstAllowedType,isVideo=isOneType&&"video"===firstAllowedType;void 0===instructions&&mediaUpload&&(instructions=(0,i18n_build_module.__)("Upload a media file or pick one from your media library."),isAudio?instructions=(0,i18n_build_module.__)("Upload an audio file, pick one from your media library, or add one with a URL."):isImage?instructions=(0,i18n_build_module.__)("Upload an image file, pick one from your media library, or add one with a URL."):isVideo&&(instructions=(0,i18n_build_module.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===title&&(title=(0,i18n_build_module.__)("Media"),isAudio?title=(0,i18n_build_module.__)("Audio"):isImage?title=(0,i18n_build_module.__)("Image"):isVideo&&(title=(0,i18n_build_module.__)("Video")))}const placeholderClassName=classnames_default()("block-editor-media-placeholder",className,{"is-appender":isAppender});return(0,react.createElement)(build_module_placeholder.Z,{icon,label:title,instructions,className:placeholderClassName,notices,onDoubleClick,preview:mediaPreview,style},content,children)},renderDropZone=()=>disableDropZone?null:(0,react.createElement)(DropZoneComponent,{onFilesDrop:onFilesUpload,onHTMLDrop}),renderCancelLink=()=>onCancel&&(0,react.createElement)(build_module_button.Z,{className:"block-editor-media-placeholder__cancel-button",title:(0,i18n_build_module.__)("Cancel"),variant:"link",onClick:onCancel},(0,i18n_build_module.__)("Cancel")),renderUrlSelectionUI=()=>onSelectURL&&(0,react.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},(0,react.createElement)(build_module_button.Z,{className:"block-editor-media-placeholder__button",onClick:openURLInput,isPressed:isURLInputVisible,variant:"tertiary"},(0,i18n_build_module.__)("Insert from URL")),isURLInputVisible&&(0,react.createElement)(InsertFromURLPopover,{src,onChange:onChangeSrc,onSubmit:onSubmitSrc,onClose:closeURLInput}));return dropZoneUIOnly||disableMediaButtons?(dropZoneUIOnly&&(0,deprecated_build_module.Z)("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),(0,react.createElement)(media_upload_check,null,renderDropZone())):(0,react.createElement)(media_upload_check,{fallback:renderPlaceholder(renderUrlSelectionUI())},(()=>{const libraryButton=null!=mediaLibraryButton?mediaLibraryButton:_ref6=>{let{open}=_ref6;return(0,react.createElement)(build_module_button.Z,{variant:"tertiary",onClick:()=>{open()}},(0,i18n_build_module.__)("Media Library"))},uploadMediaLibraryButton=(0,react.createElement)(media_upload,{addToGallery,gallery:multiple&&!(!allowedTypes||0===allowedTypes.length)&&allowedTypes.every((allowedType=>"image"===allowedType||allowedType.startsWith("image/"))),multiple,onSelect,allowedTypes,value:Array.isArray(value)?value.map((_ref7=>{let{id}=_ref7;return id})):value.id,render:libraryButton});if(mediaUpload&&isAppender)return(0,react.createElement)(react.Fragment,null,renderDropZone(),(0,react.createElement)(form_file_upload.Z,{onChange:onUpload,accept,multiple,render:_ref8=>{let{openFileDialog}=_ref8;const content=(0,react.createElement)(react.Fragment,null,(0,react.createElement)(build_module_button.Z,{variant:"primary",className:classnames_default()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:openFileDialog},(0,i18n_build_module.__)("Upload")),uploadMediaLibraryButton,renderUrlSelectionUI(),renderCancelLink());return renderPlaceholder(content)}}));if(mediaUpload){const content=(0,react.createElement)(react.Fragment,null,renderDropZone(),(0,react.createElement)(form_file_upload.Z,{variant:"primary",className:classnames_default()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:onUpload,accept,multiple},(0,i18n_build_module.__)("Upload")),uploadMediaLibraryButton,renderUrlSelectionUI(),renderCancelLink());return renderPlaceholder(content)}return renderPlaceholder(uploadMediaLibraryButton)})())})),panel_color_settings=_ref=>{let{colorSettings,...props}=_ref;const settings=colorSettings.map((_ref2=>{let{value,onChange,...otherSettings}=_ref2;return{...otherSettings,colorValue:value,onColorChange:onChange}}));return(0,react.createElement)(panel_color_gradient_settings,(0,esm_extends.Z)({settings,gradients:[],disableCustomGradients:!0},props))};function getDefaultUseItems(autocompleter){return filterValue=>{const[items,setItems]=(0,react.useState)([]);return(0,react.useLayoutEffect)((()=>{const{options,isDebounced}=autocompleter,loadOptions=(0,lodash.debounce)((()=>{const promise=Promise.resolve("function"==typeof options?options(filterValue):options).then((optionsData=>{if(promise.canceled)return;const keyedOptions=optionsData.map(((optionData,optionIndex)=>({key:`${autocompleter.name}-${optionIndex}`,value:optionData,label:autocompleter.getOptionLabel(optionData),keywords:autocompleter.getOptionKeywords?autocompleter.getOptionKeywords(optionData):[],isDisabled:!!autocompleter.isOptionDisabled&&autocompleter.isOptionDisabled(optionData)}))),search=new RegExp("(?:\\b|\\s|^)"+(0,lodash.escapeRegExp)(filterValue),"i");setItems(function filterOptions(search){let options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],maxResults=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const filtered=[];for(let i=0;isearch.test((0,lodash.deburr)(keyword))))&&(filtered.push(option),filtered.length===maxResults))break}return filtered}(search,keyedOptions))}));return promise}),isDebounced?250:0),promise=loadOptions();return()=>{loadOptions.cancel(),promise&&(promise.canceled=!0)}}),[filterValue]),[items]}}function useAutocomplete(_ref){let{record,onChange,onReplace,completers,contentRef}=_ref;const debouncedSpeak=(0,use_debounce.Z)(a11y_build_module.D,500),instanceId=(0,use_instance_id.Z)(useAutocomplete),[selectedIndex,setSelectedIndex]=(0,react.useState)(0),[filteredOptions,setFilteredOptions]=(0,react.useState)([]),[filterValue,setFilterValue]=(0,react.useState)(""),[autocompleter,setAutocompleter]=(0,react.useState)(null),[AutocompleterUI,setAutocompleterUI]=(0,react.useState)(null),[backspacing,setBackspacing]=(0,react.useState)(!1);function select(option){const{getOptionCompletion}=autocompleter||{};if(!option.isDisabled){if(getOptionCompletion){const completion=getOptionCompletion(option.value,filterValue),{action,value}=void 0===completion.action||void 0===completion.value?{action:"insert-at-caret",value:completion}:completion;if("replace"===action)return void onReplace([value]);"insert-at-caret"===action&&function insertCompletion(replacement){const end=record.start,start=end-autocompleter.triggerPrefix.length-filterValue.length,toInsert=(0,rich_text_build_module.Ue)({html:(0,build_module_serialize.ZP)(replacement)});onChange((0,rich_text_build_module.$T)(record,toInsert,start,end))}(value)}reset()}}function reset(){setSelectedIndex(0),setFilteredOptions([]),setFilterValue(""),setAutocompleter(null),setAutocompleterUI(null)}let textContent;(0,rich_text_build_module.zb)(record)&&(textContent=(0,rich_text_build_module.FB)((0,rich_text_build_module.tP)(record,0))),(0,react.useEffect)((()=>{if(!textContent)return void reset();const text=(0,lodash.deburr)(textContent),textAfterSelection=(0,rich_text_build_module.FB)((0,rich_text_build_module.tP)(record,void 0,(0,rich_text_build_module.FB)(record).length)),completer=(0,lodash.find)(completers,(_ref2=>{let{triggerPrefix,allowContext}=_ref2;const index=text.lastIndexOf(triggerPrefix);if(-1===index)return!1;const textWithoutTrigger=text.slice(index+triggerPrefix.length);if(textWithoutTrigger.length>50)return!1;const mismatch=0===filteredOptions.length,hasOneTriggerWord=1===textWithoutTrigger.split(/\s/).length,matchingWhileBackspacing=backspacing&&textWithoutTrigger.split(/\s/).length<=3;return!(mismatch&&!matchingWhileBackspacing&&!hasOneTriggerWord)&&(!(allowContext&&!allowContext(text.slice(0,index),textAfterSelection))&&(!/^\s/.test(textWithoutTrigger)&&!/\s\s+$/.test(textWithoutTrigger)&&/[\u0000-\uFFFF]*$/.test(textWithoutTrigger)))}));if(!completer)return void reset();const safeTrigger=(0,lodash.escapeRegExp)(completer.triggerPrefix),match=text.slice(text.lastIndexOf(completer.triggerPrefix)).match(new RegExp(`${safeTrigger}([\0-￿]*)$`)),query=match&&match[1];setAutocompleter(completer),setAutocompleterUI((()=>completer!==autocompleter?function getAutoCompleterUI(autocompleter){const useItems=autocompleter.useItems?autocompleter.useItems:getDefaultUseItems(autocompleter);return function AutocompleterUI(_ref){let{filterValue,instanceId,listBoxId,className,selectedIndex,onChangeOptions,onSelect,onReset,value,contentRef}=_ref;const[items]=useItems(filterValue),anchorRef=(0,rich_text_build_module.uT)({ref:contentRef,value});return(0,react.useLayoutEffect)((()=>{onChangeOptions(items)}),[items]),!items.length>0?null:(0,react.createElement)(popover.Z,{focusOnMount:!1,onClose:onReset,position:"top right",className:"components-autocomplete__popover",anchorRef},(0,react.createElement)("div",{id:listBoxId,role:"listbox",className:"components-autocomplete__results"},(0,lodash.map)(items,((option,index)=>(0,react.createElement)(build_module_button.Z,{key:option.key,id:`components-autocomplete-item-${instanceId}-${option.key}`,role:"option","aria-selected":index===selectedIndex,disabled:option.isDisabled,className:classnames_default()("components-autocomplete__result",className,{"is-selected":index===selectedIndex}),onClick:()=>onSelect(option)},option.label)))))}}(completer):AutocompleterUI)),setFilterValue(query)}),[textContent]);const{key:selectedKey=""}=filteredOptions[selectedIndex]||{},{className}=autocompleter||{},isExpanded=!!autocompleter&&filteredOptions.length>0,listBoxId=isExpanded?`components-autocomplete-listbox-${instanceId}`:null;return{listBoxId,activeId:isExpanded?`components-autocomplete-item-${instanceId}-${selectedKey}`:null,onKeyDown:function handleKeyDown(event){if(setBackspacing(event.keyCode===keycodes_build_module.ZH),autocompleter&&0!==filteredOptions.length&&!event.defaultPrevented){switch(event.keyCode){case keycodes_build_module.UP:setSelectedIndex((0===selectedIndex?filteredOptions.length:selectedIndex)-1);break;case keycodes_build_module.WV:setSelectedIndex((selectedIndex+1)%filteredOptions.length);break;case keycodes_build_module.hY:setAutocompleter(null),setAutocompleterUI(null),event.preventDefault();break;case keycodes_build_module.K5:select(filteredOptions[selectedIndex]);break;case keycodes_build_module.RL:case keycodes_build_module.pX:return void reset();default:return}event.preventDefault()}},popover:void 0!==record.start&&AutocompleterUI&&(0,react.createElement)(AutocompleterUI,{className,filterValue,instanceId,listBoxId,selectedIndex,onChangeOptions:function onChangeOptions(options){setSelectedIndex(options.length===filteredOptions.length?selectedIndex:0),setFilteredOptions(options),function announce(options){debouncedSpeak&&(options.length?debouncedSpeak((0,i18n_build_module.gB)((0,i18n_build_module._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",options.length),options.length),"assertive"):debouncedSpeak((0,i18n_build_module.__)("No results."),"assertive"))}(options)},onSelect:select,value:record,contentRef,reset})}}const autocompleters_block=function createBlockCompleter(){return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(filterValue){const{rootClientId,selectedBlockName}=(0,use_select.Z)((select=>{const{getSelectedBlockClientId,getBlockName,getBlockInsertionPoint}=select(store),selectedBlockClientId=getSelectedBlockClientId();return{selectedBlockName:selectedBlockClientId?getBlockName(selectedBlockClientId):null,rootClientId:getBlockInsertionPoint().rootClientId}}),[]),[items,categories,collections]=use_block_types_state(rootClientId,lodash.noop),filteredItems=(0,react.useMemo)((()=>(filterValue.trim()?searchBlockItems(items,categories,collections,filterValue):(0,lodash.orderBy)(items,["frecency"],["desc"])).filter((item=>item.name!==selectedBlockName)).slice(0,9)),[filterValue,selectedBlockName,items,categories,collections]),options=(0,react.useMemo)((()=>filteredItems.map((blockItem=>{const{title,icon,isDisabled}=blockItem;return{key:`block-${blockItem.id}`,value:blockItem,label:(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_icon,{key:"icon",icon,showColors:!0}),title),isDisabled}}))),[filteredItems]);return[options]},allowContext:(before,after)=>!(/\S/.test(before)||/\S/.test(after)),getOptionCompletion(inserterItem){const{name,initialAttributes,innerBlocks}=inserterItem;return{action:"replace",value:(0,build_module.j4)(name,initialAttributes,(0,build_module.ne)(innerBlocks))}}}}(),autocomplete_EMPTY_ARRAY=[];function useCompleters(_ref){let{completers=autocomplete_EMPTY_ARRAY}=_ref;const{name}=useBlockEditContext();return(0,react.useMemo)((()=>{let filteredCompleters=completers;return(name===(0,build_module.UT)()||(0,build_module.Dx)(name,"__experimentalSlashInserter",!1))&&(filteredCompleters=filteredCompleters.concat([autocompleters_block])),(0,hooks_build_module.H7)("editor.Autocomplete.completers")&&(filteredCompleters===completers&&(filteredCompleters=filteredCompleters.map(lodash.clone)),filteredCompleters=(0,hooks_build_module.O)("editor.Autocomplete.completers",filteredCompleters,name)),filteredCompleters}),[completers,name])}function useBlockEditorAutocompleteProps(props){return function useAutocompleteProps(options){const ref=(0,react.useRef)(),onKeyDownRef=(0,react.useRef)(),{popover,listBoxId,activeId,onKeyDown}=useAutocomplete({...options,contentRef:ref});return onKeyDownRef.current=onKeyDown,{ref:(0,use_merge_refs.Z)([ref,(0,use_ref_effect.Z)((element=>{function _onKeyDown(event){onKeyDownRef.current(event)}return element.addEventListener("keydown",_onKeyDown),()=>{element.removeEventListener("keydown",_onKeyDown)}}),[])]),children:popover,"aria-autocomplete":listBoxId?"list":void 0,"aria-owns":listBoxId,"aria-activedescendant":activeId}}({...props,completers:useCompleters(props)})}const format_toolbar_POPOVER_PROPS={position:"bottom right",isAlternate:!0},format_toolbar=()=>(0,react.createElement)(react.Fragment,null,["bold","italic","link"].map((format=>(0,react.createElement)(slot_fill.g7,{name:`RichText.ToolbarControls.${format}`,key:format}))),(0,react.createElement)(slot_fill.g7,{name:"RichText.ToolbarControls"},(fills=>{if(!fills.length)return null;const allProps=fills.map((_ref=>{let[{props}]=_ref;return props})),hasActive=allProps.some((_ref2=>{let{isActive}=_ref2;return isActive}));return(0,react.createElement)(toolbar_item.Z,null,(toggleProps=>(0,react.createElement)(dropdown_menu.Z,{icon:chevron_down.Z,label:(0,i18n_build_module.__)("More"),toggleProps:{...toggleProps,className:classnames_default()(toggleProps.className,{"is-pressed":hasActive}),describedBy:(0,i18n_build_module.__)("Displays more block tools")},controls:(0,lodash.orderBy)(fills.map((_ref3=>{let[{props}]=_ref3;return props})),"title"),popoverProps:format_toolbar_POPOVER_PROPS})))}))),format_toolbar_container=_ref=>{let{inline,anchorRef}=_ref;return inline?(0,react.createElement)(popover.Z,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},(0,react.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(format_toolbar,null)))):(0,react.createElement)(block_controls,{group:"inline"},(0,react.createElement)(format_toolbar,null))};function useUndoAutomaticChange(){const{didAutomaticChange,getSettings}=(0,use_select.Z)(store);return(0,use_ref_effect.Z)((element=>{function onKeyDown(event){const{keyCode}=event;event.defaultPrevented||keyCode!==keycodes_build_module.yY&&keyCode!==keycodes_build_module.ZH&&keyCode!==keycodes_build_module.hY||didAutomaticChange()&&(event.preventDefault(),getSettings().__experimentalUndo())}return element.addEventListener("keydown",onKeyDown),()=>{element.removeEventListener("keydown",onKeyDown)}}),[])}var blob_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+blob@3.2.2/node_modules/@wordpress/blob/build-module/index.js");function filePasteHandler(files){return files.filter((_ref=>{let{type}=_ref;return/^image\/(?:jpe?g|png|gif)$/.test(type)})).map((file=>``)).join("")}var shortcode_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+shortcode@3.2.3/node_modules/@wordpress/shortcode/build-module/index.js");function addActiveFormats(value,activeFormats){if(null!=activeFormats&&activeFormats.length){let index=value.formats.length;for(;index--;)value.formats[index]=[...activeFormats,...value.formats[index]||[]]}}function getMultilineTag(multiline){if(!0===multiline||"p"===multiline||"li"===multiline)return!0===multiline?"p":multiline}function getAllowedFormats(_ref){let{allowedFormats,formattingControls,disableFormats}=_ref;return disableFormats?getAllowedFormats.EMPTY_ARRAY:allowedFormats||formattingControls?allowedFormats||((0,deprecated_build_module.Z)("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),formattingControls.map((name=>`core/${name}`))):void 0}getAllowedFormats.EMPTY_ARRAY=[];function splitValue(_ref){let{value,pastedBlocks=[],onReplace,onSplit,onSplitMiddle,multilineTag}=_ref;if(!onReplace||!onSplit)return;const blocks=[],[before,after]=(0,rich_text_build_module.Vl)(value),hasPastedBlocks=pastedBlocks.length>0;let lastPastedBlockIndex=-1;const isAfterOriginal=(0,rich_text_build_module.xb)(before)&&!(0,rich_text_build_module.xb)(after);hasPastedBlocks&&(0,rich_text_build_module.xb)(before)||(blocks.push(onSplit((0,rich_text_build_module.Jz)({value:before,multilineTag}),!isAfterOriginal)),lastPastedBlockIndex+=1),hasPastedBlocks?(blocks.push(...pastedBlocks),lastPastedBlockIndex+=pastedBlocks.length):onSplitMiddle&&blocks.push(onSplitMiddle()),(hasPastedBlocks||onSplitMiddle)&&(0,rich_text_build_module.xb)(after)||blocks.push(onSplit((0,rich_text_build_module.Jz)({value:after,multilineTag}),isAfterOriginal));onReplace(blocks,hasPastedBlocks?lastPastedBlockIndex:1,hasPastedBlocks?-1:0)}function adjustLines(value,isMultiline){return isMultiline?(0,rich_text_build_module.gx)(value,/\n+/g,rich_text_build_module.M4):(0,rich_text_build_module.gx)(value,new RegExp(rich_text_build_module.M4,"g"),"\n")}function usePasteHandler(props){const propsRef=(0,react.useRef)(props);return propsRef.current=props,(0,use_ref_effect.Z)((element=>{function _onPaste(event){const{isSelected,disableFormats,onChange,value,formatTypes,tagName,onReplace,onSplit,onSplitMiddle,__unstableEmbedURLOnPaste,multilineTag,preserveWhiteSpace,pastePlainText}=propsRef.current;if(!isSelected)return void event.preventDefault();const{clipboardData}=event;let plainText="",html="";try{plainText=clipboardData.getData("text/plain"),html=clipboardData.getData("text/html")}catch(error1){try{html=clipboardData.getData("Text")}catch(error2){return}}if(html=function removeWindowsFragments(html){const startReg=/.*/s,endReg=/.*/s;return html.replace(startReg,"").replace(endReg,"")}(html),html=function removeCharsetMetaTag(html){const metaTag="";if(html.startsWith(metaTag))return html.slice(metaTag.length);return html}(html),event.preventDefault(),window.console.log("Received HTML:\n\n",html),window.console.log("Received plain text:\n\n",plainText),disableFormats)return void onChange((0,rich_text_build_module.$T)(value,plainText));const transformed=formatTypes.reduce(((accumlator,_ref)=>{let{__unstablePasteRule}=_ref;return __unstablePasteRule&&accumlator===value&&(accumlator=__unstablePasteRule(value,{html,plainText})),accumlator}),value);if(transformed!==value)return void onChange(transformed);const files=[...getFilesFromDataTransfer(clipboardData)];if("true"===clipboardData.getData("rich-text")){const pastedMultilineTag=clipboardData.getData("rich-text-multi-line-tag")||void 0;let pastedValue=(0,rich_text_build_module.Ue)({html,multilineTag:pastedMultilineTag,multilineWrapperTags:"li"===pastedMultilineTag?["ul","ol"]:void 0,preserveWhiteSpace});return pastedValue=adjustLines(pastedValue,!!multilineTag),addActiveFormats(pastedValue,value.activeFormats),void onChange((0,rich_text_build_module.$T)(value,pastedValue))}if(pastePlainText)return void onChange((0,rich_text_build_module.$T)(value,(0,rich_text_build_module.Ue)({text:plainText})));if(files&&files.length&&!html){const content=(0,build_module.ag)({HTML:filePasteHandler(files),mode:"BLOCKS",tagName,preserveWhiteSpace});return window.console.log("Received items:\n\n",files),void(onReplace&&(0,rich_text_build_module.xb)(value)?onReplace(content):splitValue({value,pastedBlocks:content,onReplace,onSplit,onSplitMiddle,multilineTag}))}let mode=onReplace&&onSplit?"AUTO":"INLINE";var text;"AUTO"===mode&&(0,rich_text_build_module.xb)(value)&&(text=plainText,(0,shortcode_build_module.kd)(".*").test(text))&&(mode="BLOCKS"),__unstableEmbedURLOnPaste&&(0,rich_text_build_module.xb)(value)&&(0,is_url.P)(plainText.trim())&&(mode="BLOCKS");const content=(0,build_module.ag)({HTML:html,plainText,mode,tagName,preserveWhiteSpace});if("string"==typeof content){let valueToInsert=(0,rich_text_build_module.Ue)({html:content});valueToInsert=adjustLines(valueToInsert,!!multilineTag),addActiveFormats(valueToInsert,value.activeFormats),onChange((0,rich_text_build_module.$T)(value,valueToInsert))}else content.length>0&&(onReplace&&(0,rich_text_build_module.xb)(value)?onReplace(content,content.length-1,-1):splitValue({value,pastedBlocks:content,onReplace,onSplit,onSplitMiddle,multilineTag}))}return element.addEventListener("paste",_onPaste),()=>{element.removeEventListener("paste",_onPaste)}}),[])}function useInputRules(props){const{__unstableMarkLastChangeAsPersistent,__unstableMarkAutomaticChange}=(0,use_dispatch.Z)(store),propsRef=(0,react.useRef)(props);return propsRef.current=props,(0,use_ref_effect.Z)((element=>{function inputRule(){const{value,onReplace}=propsRef.current;if(!onReplace)return;const{start,text}=value;if(" "!==text.slice(start-1,start))return;const trimmedTextBefore=text.slice(0,start).trim(),prefixTransforms=(0,build_module.Xn)("from").filter((_ref=>{let{type}=_ref;return"prefix"===type})),transformation=(0,build_module.MC)(prefixTransforms,(_ref2=>{let{prefix}=_ref2;return trimmedTextBefore===prefix}));if(!transformation)return;const content=(0,rich_text_build_module.Jz)({value:(0,rich_text_build_module.tP)(value,start,text.length)});onReplace([transformation.transform(content)]),__unstableMarkAutomaticChange()}function onInput(event){const{inputType,type}=event,{value,onChange,__unstableAllowPrefixTransformations,formatTypes}=propsRef.current;if("insertText"!==inputType&&"compositionend"!==type)return;__unstableAllowPrefixTransformations&&inputRule&&inputRule();const transformed=formatTypes.reduce(((accumlator,_ref3)=>{let{__unstableInputRule}=_ref3;return __unstableInputRule&&(accumlator=__unstableInputRule(accumlator)),accumlator}),value);transformed!==value&&(__unstableMarkLastChangeAsPersistent(),onChange({...transformed,activeFormats:value.activeFormats}),__unstableMarkAutomaticChange())}return element.addEventListener("input",onInput),element.addEventListener("compositionend",onInput),()=>{element.removeEventListener("input",onInput),element.removeEventListener("compositionend",onInput)}}),[])}function useEnter(props){const{__unstableMarkAutomaticChange}=(0,use_dispatch.Z)(store),propsRef=(0,react.useRef)(props);return propsRef.current=props,(0,use_ref_effect.Z)((element=>{function onKeyDown(event){if(event.defaultPrevented)return;const{removeEditorOnlyFormats,value,onReplace,onSplit,onSplitMiddle,multilineTag,onChange,disableLineBreaks,onSplitAtEnd}=propsRef.current;if(event.keyCode!==keycodes_build_module.K5)return;event.preventDefault();const _value={...value};_value.formats=removeEditorOnlyFormats(value);const canSplit=onReplace&&onSplit;if(onReplace){const transforms=(0,build_module.Xn)("from").filter((_ref=>{let{type}=_ref;return"enter"===type})),transformation=(0,build_module.MC)(transforms,(item=>item.regExp.test(_value.text)));transformation&&(onReplace([transformation.transform({content:_value.text})]),__unstableMarkAutomaticChange())}if(multilineTag)event.shiftKey?disableLineBreaks||onChange((0,rich_text_build_module.$T)(_value,"\n")):canSplit&&(0,rich_text_build_module.If)(_value)?splitValue({value:_value,onReplace,onSplit,onSplitMiddle,multilineTag}):onChange((0,rich_text_build_module.cw)(_value));else{const{text,start,end}=_value,canSplitAtEnd=onSplitAtEnd&&start===end&&end===text.length;event.shiftKey||!canSplit&&!canSplitAtEnd?disableLineBreaks||onChange((0,rich_text_build_module.$T)(_value,"\n")):!canSplit&&canSplitAtEnd?onSplitAtEnd():canSplit&&splitValue({value:_value,onReplace,onSplit,onSplitMiddle,multilineTag})}}return element.addEventListener("keydown",onKeyDown),()=>{element.removeEventListener("keydown",onKeyDown)}}),[])}function formatTypesSelector(select){return select(rich_text_build_module.h).getFormatTypes()}const interactiveContentTags=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function useShortcuts(keyboardShortcuts){return(0,use_ref_effect.Z)((element=>{function onKeyDown(event){for(const keyboardShortcut of keyboardShortcuts.current)keyboardShortcut(event)}return element.addEventListener("keydown",onKeyDown),()=>{element.removeEventListener("keydown",onKeyDown)}}),[])}function useInputEvents(inputEvents){return(0,use_ref_effect.Z)((element=>{function onInput(event){for(const keyboardShortcut of inputEvents.current)keyboardShortcut(event)}return element.addEventListener("input",onInput),()=>{element.removeEventListener("input",onInput)}}),[])}function FormatEdit(_ref){let{formatTypes,onChange,onFocus,value,forwardedRef}=_ref;return formatTypes.map((settings=>{const{name,edit:Edit}=settings;if(!Edit)return null;const activeFormat=(0,rich_text_build_module.Ye)(value,name);let isActive=void 0!==activeFormat;const activeObject=(0,rich_text_build_module.Jj)(value),isObjectActive=void 0!==activeObject&&activeObject.type===name;if("core/link"===name&&!(0,rich_text_build_module.zb)(value)){const formats=value.formats,linkFormatAtStart=(0,lodash.find)(formats[value.start],{type:"core/link"}),linkFormatAtEnd=(0,lodash.find)(formats[value.end-1],{type:"core/link"});linkFormatAtStart&&linkFormatAtEnd&&linkFormatAtStart===linkFormatAtEnd||(isActive=!1)}return(0,react.createElement)(Edit,{key:name,isActive,activeAttributes:isActive&&activeFormat.attributes||{},isObjectActive,activeObjectAttributes:isObjectActive&&activeObject.attributes||{},value,onChange,onFocus,contentRef:forwardedRef})}))}const keyboardShortcutContext=(0,react.createContext)(),inputEventContext=(0,react.createContext)();const ForwardedRichTextContainer=(0,react.forwardRef)((function RichTextWrapper(_ref,forwardedRef){let{children,tagName="div",value:originalValue="",onChange:originalOnChange,isSelected:originalIsSelected,multiline,inlineToolbar,wrapperClassName,autocompleters,onReplace,placeholder,allowedFormats,formattingControls,withoutInteractiveFormatting,onRemove,onMerge,onSplit,__unstableOnSplitAtEnd:onSplitAtEnd,__unstableOnSplitMiddle:onSplitMiddle,identifier,preserveWhiteSpace,__unstablePastePlainText:pastePlainText,__unstableEmbedURLOnPaste,__unstableDisableFormats:disableFormats,disableLineBreaks,unstableOnFocus,__unstableAllowPrefixTransformations,...props}=_ref;const instanceId=(0,use_instance_id.Z)(RichTextWrapper);identifier=identifier||instanceId,props=function removeNativeProps(props){return(0,lodash.omit)(props,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(props);const anchorRef=(0,react.useRef)(),{clientId}=useBlockEditContext(),{selectionStart,selectionEnd,isSelected,disabled}=(0,use_select.Z)((select=>{const{getSelectionStart,getSelectionEnd,isMultiSelecting,hasMultiSelection}=select(store),selectionStart=getSelectionStart(),selectionEnd=getSelectionEnd();let isSelected;return void 0===originalIsSelected?isSelected=selectionStart.clientId===clientId&&selectionStart.attributeKey===identifier:originalIsSelected&&(isSelected=selectionStart.clientId===clientId),{selectionStart:isSelected?selectionStart.offset:void 0,selectionEnd:isSelected?selectionEnd.offset:void 0,isSelected,disabled:isMultiSelecting()||hasMultiSelection()}})),{selectionChange}=(0,use_dispatch.Z)(store),multilineTag=getMultilineTag(multiline),adjustedAllowedFormats=getAllowedFormats({allowedFormats,formattingControls,disableFormats}),hasFormats=!adjustedAllowedFormats||adjustedAllowedFormats.length>0;let adjustedValue=originalValue,adjustedOnChange=originalOnChange;Array.isArray(originalValue)&&(adjustedValue=build_module.pI.toHTML(originalValue),adjustedOnChange=newValue=>originalOnChange(build_module.pI.fromDOM((0,rich_text_build_module._b)(document,newValue).childNodes)));const onSelectionChange=(0,react.useCallback)(((start,end)=>{selectionChange(clientId,identifier,start,end)}),[clientId,identifier]),{formatTypes,prepareHandlers,valueHandlers,changeHandlers,dependencies}=function useFormatTypes(_ref){let{clientId,identifier,withoutInteractiveFormatting,allowedFormats}=_ref;const allFormatTypes=(0,use_select.Z)(formatTypesSelector,[]),formatTypes=(0,react.useMemo)((()=>allFormatTypes.filter((_ref2=>{let{name,tagName}=_ref2;return!(allowedFormats&&!allowedFormats.includes(name)||withoutInteractiveFormatting&&interactiveContentTags.has(tagName))}))),[allFormatTypes,allowedFormats,interactiveContentTags]),keyedSelected=(0,use_select.Z)((select=>formatTypes.reduce(((accumulator,type)=>(type.__experimentalGetPropsForEditableTreePreparation&&(accumulator[type.name]=type.__experimentalGetPropsForEditableTreePreparation(select,{richTextIdentifier:identifier,blockClientId:clientId})),accumulator)),{})),[formatTypes,clientId,identifier]),dispatch=(0,use_dispatch.Z)(),prepareHandlers=[],valueHandlers=[],changeHandlers=[],dependencies=[];return formatTypes.forEach((type=>{if(type.__experimentalCreatePrepareEditableTree){const selected=keyedSelected[type.name],handler=type.__experimentalCreatePrepareEditableTree(selected,{richTextIdentifier:identifier,blockClientId:clientId});type.__experimentalCreateOnChangeEditableValue?valueHandlers.push(handler):prepareHandlers.push(handler);for(const key in selected)dependencies.push(selected[key])}if(type.__experimentalCreateOnChangeEditableValue){let dispatchers={};type.__experimentalGetPropsForEditableTreeChangeHandler&&(dispatchers=type.__experimentalGetPropsForEditableTreeChangeHandler(dispatch,{richTextIdentifier:identifier,blockClientId:clientId})),changeHandlers.push(type.__experimentalCreateOnChangeEditableValue({...keyedSelected[type.name]||{},...dispatchers},{richTextIdentifier:identifier,blockClientId:clientId}))}})),{formatTypes,prepareHandlers,valueHandlers,changeHandlers,dependencies}}({clientId,identifier,withoutInteractiveFormatting,allowedFormats:adjustedAllowedFormats});function removeEditorOnlyFormats(value){return formatTypes.forEach((formatType=>{formatType.__experimentalCreatePrepareEditableTree&&(value=(0,rich_text_build_module.Ir)(value,formatType.name,0,value.text.length))})),value.formats}const{value,onChange,ref:richTextRef}=(0,rich_text_build_module.o2)({value:adjustedValue,onChange(html,_ref2){let{__unstableFormats,__unstableText}=_ref2;adjustedOnChange(html),Object.values(changeHandlers).forEach((changeHandler=>{changeHandler(__unstableFormats,__unstableText)}))},selectionStart,selectionEnd,onSelectionChange,placeholder,__unstableIsSelected:isSelected,__unstableMultilineTag:multilineTag,__unstableDisableFormats:disableFormats,preserveWhiteSpace,__unstableDependencies:[...dependencies,tagName],__unstableAfterParse:function addEditorOnlyFormats(value){return valueHandlers.reduce(((accumulator,fn)=>fn(accumulator,value.text)),value.formats)},__unstableBeforeSerialize:removeEditorOnlyFormats,__unstableAddInvisibleFormats:function addInvisibleFormats(value){return prepareHandlers.reduce(((accumulator,fn)=>fn(accumulator,value.text)),value.formats)}}),autocompleteProps=useBlockEditorAutocompleteProps({onReplace,completers:autocompleters,record:value,onChange});!function useCaretInFormat(_ref){let{value}=_ref;const hasActiveFormats=value.activeFormats&&!!value.activeFormats.length,{isCaretWithinFormattedText}=(0,use_select.Z)(store),{enterFormattedText,exitFormattedText}=(0,use_dispatch.Z)(store);(0,react.useEffect)((()=>{hasActiveFormats?isCaretWithinFormattedText()||enterFormattedText():isCaretWithinFormattedText()&&exitFormattedText()}),[hasActiveFormats])}({value}),function useMarkPersistent(_ref){let{html,value}=_ref;const previousText=(0,react.useRef)(),hasActiveFormats=value.activeFormats&&!!value.activeFormats.length,{__unstableMarkLastChangeAsPersistent}=(0,use_dispatch.Z)(store);(0,react.useLayoutEffect)((()=>{if(previousText.current){if(previousText.current!==value.text){const timeout=window.setTimeout((()=>{__unstableMarkLastChangeAsPersistent()}),1e3);return previousText.current=value.text,()=>{window.clearTimeout(timeout)}}__unstableMarkLastChangeAsPersistent()}else previousText.current=value.text}),[html,hasActiveFormats])}({html:adjustedValue,value});const keyboardShortcuts=(0,react.useRef)(new Set),inputEvents=(0,react.useRef)(new Set);function onFocus(){anchorRef.current.focus()}const TagName=tagName,content=(0,react.createElement)(react.Fragment,null,isSelected&&(0,react.createElement)(keyboardShortcutContext.Provider,{value:keyboardShortcuts},(0,react.createElement)(inputEventContext.Provider,{value:inputEvents},(0,react.createElement)(popover.Z.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},children&&children({value,onChange,onFocus}),(0,react.createElement)(FormatEdit,{value,onChange,onFocus,formatTypes,forwardedRef:anchorRef})))),isSelected&&hasFormats&&(0,react.createElement)(format_toolbar_container,{inline:inlineToolbar,anchorRef:anchorRef.current}),(0,react.createElement)(TagName,(0,esm_extends.Z)({role:"textbox","aria-multiline":!0,"aria-label":placeholder},props,autocompleteProps,{ref:(0,use_merge_refs.Z)([autocompleteProps.ref,props.ref,richTextRef,useInputRules({value,onChange,__unstableAllowPrefixTransformations,formatTypes,onReplace}),(0,use_ref_effect.Z)((node=>{function onKeydown(event){(keycodes_build_module.vd.primary(event,"z")||keycodes_build_module.vd.primary(event,"y")||keycodes_build_module.vd.primaryShift(event,"z"))&&event.preventDefault()}return node.addEventListener("keydown",onKeydown),()=>{node.addEventListener("keydown",onKeydown)}}),[]),useShortcuts(keyboardShortcuts),useInputEvents(inputEvents),useUndoAutomaticChange(),usePasteHandler({isSelected,disableFormats,onChange,value,formatTypes,tagName,onReplace,onSplit,onSplitMiddle,__unstableEmbedURLOnPaste,multilineTag,preserveWhiteSpace,pastePlainText}),useEnter({removeEditorOnlyFormats,value,onReplace,onSplit,onSplitMiddle,multilineTag,onChange,disableLineBreaks,onSplitAtEnd}),anchorRef,forwardedRef]),contentEditable:!disabled||void 0,suppressContentEditableWarning:!disabled,className:classnames_default()("block-editor-rich-text__editable",props.className,"rich-text"),onFocus:unstableOnFocus,onKeyDown:function onKeyDown(event){const{keyCode}=event;if(!event.defaultPrevented&&(keyCode===keycodes_build_module.yY||keyCode===keycodes_build_module.ZH)){const{start,end,text}=value,isReverse=keyCode===keycodes_build_module.ZH,hasActiveFormats=value.activeFormats&&!!value.activeFormats.length;if(!(0,rich_text_build_module.zb)(value)||hasActiveFormats||isReverse&&0!==start||!isReverse&&end!==text.length)return;onMerge&&onMerge(!isReverse),onRemove&&(0,rich_text_build_module.xb)(value)&&isReverse&&onRemove(!isReverse),event.preventDefault()}}})));if(!wrapperClassName)return content;(0,deprecated_build_module.Z)("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"});const className=classnames_default()("block-editor-rich-text",wrapperClassName);return(0,react.createElement)("div",{className},content)}));ForwardedRichTextContainer.Content=_ref3=>{let{value,tagName:Tag,multiline,...props}=_ref3;Array.isArray(value)&&(value=build_module.pI.toHTML(value));const MultilineTag=getMultilineTag(multiline);!value&&MultilineTag&&(value=`<${MultilineTag}>`);const content=(0,react.createElement)(raw_html.Z,null,value);return Tag?(0,react.createElement)(Tag,(0,lodash.omit)(props,["format"]),content):content},ForwardedRichTextContainer.isEmpty=value=>!value||0===value.length;const rich_text=ForwardedRichTextContainer,EditableText=(0,react.forwardRef)(((props,ref)=>(0,react.createElement)(rich_text,(0,esm_extends.Z)({ref},props,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))));EditableText.Content=_ref=>{let{value="",tagName:Tag="div",...props}=_ref;return(0,react.createElement)(Tag,props,value)};const editable_text=EditableText,PlainText=(0,react.forwardRef)(((_ref,ref)=>{let{__experimentalVersion,...props}=_ref;if(2===__experimentalVersion)return(0,react.createElement)(editable_text,(0,esm_extends.Z)({ref},props));const{className,onChange,...remainingProps}=props;return(0,react.createElement)(lib.Z,(0,esm_extends.Z)({ref,className:classnames_default()("block-editor-plain-text",className),onChange:event=>onChange(event.target.value)},remainingProps))})),plain_text=PlainText;function RichTextShortcut(_ref){let{character,type,onUse}=_ref;const keyboardShortcuts=(0,react.useContext)(keyboardShortcutContext),onUseRef=(0,react.useRef)();return onUseRef.current=onUse,(0,react.useEffect)((()=>{function callback(event){keycodes_build_module.vd[type](event,character)&&(onUseRef.current(),event.preventDefault())}return keyboardShortcuts.current.add(callback),()=>{keyboardShortcuts.current.delete(callback)}}),[character,type]),null}function RichTextToolbarButton(_ref){let shortcut,{name,shortcutType,shortcutCharacter,...props}=_ref,fillName="RichText.ToolbarControls";return name&&(fillName+=`.${name}`),shortcutType&&shortcutCharacter&&(shortcut=keycodes_build_module.E_[shortcutType](shortcutCharacter)),(0,react.createElement)(slot_fill.de,{name:fillName},(0,react.createElement)(toolbar_button.Z,(0,esm_extends.Z)({},props,{shortcut})))}function __unstableRichTextInputEvent(_ref){let{inputType,onInput}=_ref;const callbacks=(0,react.useContext)(inputEventContext),onInputRef=(0,react.useRef)();return onInputRef.current=onInput,(0,react.useEffect)((()=>{function callback(event){event.inputType===inputType&&(onInputRef.current(),event.preventDefault())}return callbacks.current.add(callback),()=>{callbacks.current.delete(callback)}}),[inputType]),null}function UnitControl(_ref){let{units:unitsProp,...props}=_ref;const units=(0,utils.nj)({availableUnits:useSetting("spacing.units")||["%","px","em","rem","vw"],units:unitsProp});return(0,react.createElement)(unit_control.ZP,(0,esm_extends.Z)({units},props))}var library_close=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/close.js");const NEW_TAB_REL=["noreferrer","noopener"],icon=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,react.createElement)(svg.y$,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),(0,react.createElement)(svg.y$,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),ImageURLInputUI=_ref=>{let{linkDestination,onChangeUrl,url,mediaType="image",mediaUrl,mediaLink,linkTarget,linkClass,rel}=_ref;const[isOpen,setIsOpen]=(0,react.useState)(!1),openLinkUI=(0,react.useCallback)((()=>{setIsOpen(!0)})),[isEditingLink,setIsEditingLink]=(0,react.useState)(!1),[urlInput,setUrlInput]=(0,react.useState)(null),autocompleteRef=(0,react.useRef)(null),startEditLink=(0,react.useCallback)((()=>{"media"!==linkDestination&&"attachment"!==linkDestination||setUrlInput(""),setIsEditingLink(!0)})),stopEditLink=(0,react.useCallback)((()=>{setIsEditingLink(!1)})),closeLinkUI=(0,react.useCallback)((()=>{setUrlInput(null),stopEditLink(),setIsOpen(!1)})),removeNewTabRel=currentRel=>{let newRel=currentRel;return void 0===currentRel||(0,lodash.isEmpty)(newRel)||(0,lodash.isEmpty)(newRel)||((0,lodash.each)(NEW_TAB_REL,(relVal=>{const regExp=new RegExp("\\b"+relVal+"\\b","gi");newRel=newRel.replace(regExp,"")})),newRel!==currentRel&&(newRel=newRel.trim()),(0,lodash.isEmpty)(newRel)&&(newRel=void 0)),newRel},onFocusOutside=(0,react.useCallback)((()=>event=>{const autocompleteElement=autocompleteRef.current;autocompleteElement&&autocompleteElement.contains(event.target)||(setIsOpen(!1),setUrlInput(null),stopEditLink())})),onSubmitLinkChange=(0,react.useCallback)((()=>event=>{if(urlInput){var _getLinkDestinations$;const selectedDestination=(null===(_getLinkDestinations$=getLinkDestinations().find((destination=>destination.url===urlInput)))||void 0===_getLinkDestinations$?void 0:_getLinkDestinations$.linkDestination)||"custom";onChangeUrl({href:urlInput,linkDestination:selectedDestination})}stopEditLink(),setUrlInput(null),event.preventDefault()})),onLinkRemove=(0,react.useCallback)((()=>{onChangeUrl({linkDestination:"none",href:""})})),getLinkDestinations=()=>{const linkDestinations=[{linkDestination:"media",title:(0,i18n_build_module.__)("Media File"),url:"image"===mediaType?mediaUrl:void 0,icon}];return"image"===mediaType&&mediaLink&&linkDestinations.push({linkDestination:"attachment",title:(0,i18n_build_module.__)("Attachment Page"),url:"image"===mediaType?mediaLink:void 0,icon:(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,react.createElement)(svg.y$,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),linkDestinations},advancedOptions=(0,react.createElement)(react.Fragment,null,(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Open in new tab"),onChange:value=>{const updatedLinkTarget=(value=>{const newLinkTarget=value?"_blank":void 0;let updatedRel;return updatedRel=newLinkTarget||rel?removeNewTabRel(rel):void 0,{linkTarget:newLinkTarget,rel:updatedRel}})(value);onChangeUrl(updatedLinkTarget)},checked:"_blank"===linkTarget}),(0,react.createElement)(text_control.Z,{label:(0,i18n_build_module.__)("Link Rel"),value:removeNewTabRel(rel)||"",onChange:value=>{onChangeUrl({rel:value})}}),(0,react.createElement)(text_control.Z,{label:(0,i18n_build_module.__)("Link CSS Class"),value:linkClass||"",onChange:value=>{onChangeUrl({linkClass:value})}})),linkEditorValue=null!==urlInput?urlInput:url,urlLabel=((0,lodash.find)(getLinkDestinations(),["linkDestination",linkDestination])||{}).title;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(toolbar_button.Z,{icon:library_link.Z,className:"components-toolbar__control",label:url?(0,i18n_build_module.__)("Edit link"):(0,i18n_build_module.__)("Insert link"),"aria-expanded":isOpen,onClick:openLinkUI}),isOpen&&(0,react.createElement)(url_popover,{onFocusOutside:onFocusOutside(),onClose:closeLinkUI,renderSettings:()=>advancedOptions,additionalControls:!linkEditorValue&&(0,react.createElement)(navigable_container_menu.Z,null,(0,lodash.map)(getLinkDestinations(),(link=>(0,react.createElement)(menu_item.Z,{key:link.linkDestination,icon:link.icon,onClick:()=>{setUrlInput(null),(value=>{const linkDestinations=getLinkDestinations();let linkDestinationInput;linkDestinationInput=value?((0,lodash.find)(linkDestinations,(destination=>destination.url===value))||{linkDestination:"custom"}).linkDestination:"none",onChangeUrl({linkDestination:linkDestinationInput,href:value})})(link.url),stopEditLink()}},link.title))))},(!url||isEditingLink)&&(0,react.createElement)(url_popover.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:linkEditorValue,onChangeInputValue:setUrlInput,onSubmit:onSubmitLinkChange(),autocompleteRef}),url&&!isEditingLink&&(0,react.createElement)(react.Fragment,null,(0,react.createElement)(url_popover.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url,onEditLinkClick:startEditLink,urlLabel}),(0,react.createElement)(build_module_button.Z,{icon:library_close.Z,label:(0,i18n_build_module.__)("Remove link"),onClick:onLinkRemove}))))},skip_to_selected_block=(0,with_select.Z)((select=>({selectedBlockClientId:select(store).getBlockSelectionStart()})))((_ref=>{let{selectedBlockClientId}=_ref;const ref=useBlockRef(selectedBlockClientId);return selectedBlockClientId?(0,react.createElement)(build_module_button.Z,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{ref.current.focus()}},(0,i18n_build_module.__)("Skip to the selected block")):null})),defaultSettings={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-/:-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function stripTags(settings,text){return text.replace(settings.HTMLRegExp,"\n")}function transposeAstralsToCountableChar(settings,text){return text.replace(settings.astralRegExp,"a")}function stripHTMLEntities(settings,text){return text.replace(settings.HTMLEntityRegExp,"")}function stripConnectors(settings,text){return text.replace(settings.connectorRegExp," ")}function stripRemovables(settings,text){return text.replace(settings.removeRegExp,"")}function stripHTMLComments(settings,text){return text.replace(settings.HTMLcommentRegExp,"")}function stripShortcodes(settings,text){return settings.shortcodesRegExp?text.replace(settings.shortcodesRegExp,"\n"):text}function stripSpaces(settings,text){return text.replace(settings.spaceRegExp," ")}function transposeHTMLEntitiesToCountableChars(settings,text){return text.replace(settings.HTMLEntityRegExp,"a")}function countCharacters(text,regex,settings){var _text$match$length2,_text$match2;return text=(0,lodash.flow)(stripTags.bind(null,settings),stripHTMLComments.bind(null,settings),stripShortcodes.bind(null,settings),transposeAstralsToCountableChar.bind(null,settings),stripSpaces.bind(null,settings),transposeHTMLEntitiesToCountableChars.bind(null,settings))(text),null!==(_text$match$length2=null===(_text$match2=(text+="\n").match(regex))||void 0===_text$match2?void 0:_text$match2.length)&&void 0!==_text$match$length2?_text$match$length2:0}function count(text,type,userSettings){const settings=function loadSettings(type,userSettings){var _settings$l10n$shortc,_settings$l10n;const settings=(0,lodash.extend)({},defaultSettings,userSettings);return settings.shortcodes=null!==(_settings$l10n$shortc=null===(_settings$l10n=settings.l10n)||void 0===_settings$l10n?void 0:_settings$l10n.shortcodes)&&void 0!==_settings$l10n$shortc?_settings$l10n$shortc:[],settings.shortcodes&&settings.shortcodes.length&&(settings.shortcodesRegExp=new RegExp("\\[\\/?(?:"+settings.shortcodes.join("|")+")[^\\]]*?\\]","g")),settings.type=type,"characters_excluding_spaces"!==settings.type&&"characters_including_spaces"!==settings.type&&(settings.type="words"),settings}(type,userSettings);let matchRegExp;switch(settings.type){case"words":return matchRegExp=settings.wordsRegExp,function countWords(text,regex,settings){var _text$match$length,_text$match;return text=(0,lodash.flow)(stripTags.bind(null,settings),stripHTMLComments.bind(null,settings),stripShortcodes.bind(null,settings),stripSpaces.bind(null,settings),stripHTMLEntities.bind(null,settings),stripConnectors.bind(null,settings),stripRemovables.bind(null,settings))(text),null!==(_text$match$length=null===(_text$match=(text+="\n").match(regex))||void 0===_text$match?void 0:_text$match.length)&&void 0!==_text$match$length?_text$match$length:0}(text,matchRegExp,settings);case"characters_including_spaces":return matchRegExp=settings.characters_including_spacesRegExp,countCharacters(text,matchRegExp,settings);case"characters_excluding_spaces":return matchRegExp=settings.characters_excluding_spacesRegExp,countCharacters(text,matchRegExp,settings);default:return 0}}const multi_selection_inspector=(0,with_select.Z)((select=>{const{getMultiSelectedBlocks}=select(store);return{blocks:getMultiSelectedBlocks()}}))((function MultiSelectionInspector(_ref){let{blocks}=_ref;const words=count((0,build_module.qC)(blocks),"words");return(0,react.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},(0,react.createElement)(block_icon,{icon:library_stack,showColors:!0}),(0,react.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},(0,react.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},(0,i18n_build_module.gB)((0,i18n_build_module._n)("%d block","%d blocks",blocks.length),blocks.length)),(0,react.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},(0,i18n_build_module.gB)((0,i18n_build_module._n)("%d word","%d words",words),words))))}));function DefaultStylePicker(_ref){let{blockName}=_ref;const{preferredStyle,onUpdatePreferredStyleVariations,styles}=(0,use_select.Z)((select=>{var _preferredStyleVariat,_preferredStyleVariat2;const preferredStyleVariations=select(store).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==preferredStyleVariations||null===(_preferredStyleVariat=preferredStyleVariations.value)||void 0===_preferredStyleVariat?void 0:_preferredStyleVariat[blockName],onUpdatePreferredStyleVariations:null!==(_preferredStyleVariat2=null==preferredStyleVariations?void 0:preferredStyleVariations.onChange)&&void 0!==_preferredStyleVariat2?_preferredStyleVariat2:null,styles:select(build_module.h).getBlockStyles(blockName)}}),[blockName]),selectOptions=(0,react.useMemo)((()=>[{label:(0,i18n_build_module.__)("Not set"),value:""},...styles.map((_ref2=>{let{label,name}=_ref2;return{label,value:name}}))]),[styles]),selectOnChange=(0,react.useCallback)((blockStyle=>{onUpdatePreferredStyleVariations(blockName,blockStyle)}),[blockName,onUpdatePreferredStyleVariations]);return onUpdatePreferredStyleVariations&&(0,react.createElement)(select_control.Z,{options:selectOptions,value:preferredStyle||"",label:(0,i18n_build_module.__)("Default Style"),onChange:selectOnChange})}var menu_items_choice=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/menu-items-choice/index.js");const __experimentalGetMatchingVariation=(blockAttributes,variations)=>{if(!variations||!blockAttributes)return;const matches=variations.filter((_ref=>{let{attributes}=_ref;return!(!attributes||!Object.keys(attributes).length)&&(0,lodash.isMatch)(blockAttributes,attributes)}));return 1===matches.length?matches[0]:void 0};const block_variation_transforms=function __experimentalBlockVariationTransforms(_ref){let{blockClientId}=_ref;const[selectedValue,setSelectedValue]=(0,react.useState)(),{updateBlockAttributes}=(0,use_dispatch.Z)(store),{variations,blockAttributes}=(0,use_select.Z)((select=>{const{getBlockVariations}=select(build_module.h),{getBlockName,getBlockAttributes}=select(store),blockName=blockClientId&&getBlockName(blockClientId);return{variations:blockName&&getBlockVariations(blockName,"transform"),blockAttributes:getBlockAttributes(blockClientId)}}),[blockClientId]);if((0,react.useEffect)((()=>{var _getMatchingVariation;setSelectedValue(null===(_getMatchingVariation=__experimentalGetMatchingVariation(blockAttributes,variations))||void 0===_getMatchingVariation?void 0:_getMatchingVariation.name)}),[blockAttributes,variations]),null==variations||!variations.length)return null;const selectOptions=variations.map((_ref2=>{let{name,title,description}=_ref2;return{value:name,label:title,info:description}})),onSelectVariation=variationName=>{updateBlockAttributes(blockClientId,{...variations.find((_ref3=>{let{name}=_ref3;return name===variationName})).attributes})},baseClass="block-editor-block-variation-transforms";return(0,react.createElement)(dropdown_menu.Z,{className:baseClass,label:(0,i18n_build_module.__)("Transform to variation"),text:(0,i18n_build_module.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${baseClass}__popover`},icon:chevron_down.Z,toggleProps:{iconPosition:"right"}},(()=>(0,react.createElement)("div",{className:`${baseClass}__container`},(0,react.createElement)(menu_group.Z,null,(0,react.createElement)(menu_items_choice.Z,{choices:selectOptions,value:selectedValue,onSelect:onSelectVariation})))))},BlockInspectorSingleBlock=_ref2=>{let{clientId,blockName,hasBlockStyles,bubblesVirtually}=_ref2;const blockInformation=useBlockDisplayInformation(clientId);return(0,react.createElement)("div",{className:"block-editor-block-inspector"},(0,react.createElement)(block_card,blockInformation),(0,react.createElement)(block_variation_transforms,{blockClientId:clientId}),hasBlockStyles&&(0,react.createElement)("div",null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Styles")},(0,react.createElement)(block_styles,{clientId}),(0,build_module.zb)(blockName,"defaultStylePicker",!0)&&(0,react.createElement)(DefaultStylePicker,{blockName}))),(0,react.createElement)(inspector_controls.Slot,{bubblesVirtually}),(0,react.createElement)(inspector_controls.Slot,{__experimentalGroup:"typography",bubblesVirtually,label:(0,i18n_build_module.__)("Typography")}),(0,react.createElement)(inspector_controls.Slot,{__experimentalGroup:"dimensions",bubblesVirtually,label:(0,i18n_build_module.__)("Dimensions")}),(0,react.createElement)("div",null,(0,react.createElement)(AdvancedControls,{bubblesVirtually})),(0,react.createElement)(skip_to_selected_block,{key:"back"}))},AdvancedControls=_ref3=>{let{bubblesVirtually}=_ref3;const slot=(0,use_slot.Z)(InspectorAdvancedControls.slotName);return Boolean(slot.fills&&slot.fills.length)?(0,react.createElement)(body.Z,{className:"block-editor-block-inspector__advanced",title:(0,i18n_build_module.__)("Advanced"),initialOpen:!1},(0,react.createElement)(inspector_controls.Slot,{__experimentalGroup:"advanced",bubblesVirtually})):null},block_inspector=_ref=>{let{showNoBlockSelectedMessage=!0,bubblesVirtually=!0}=_ref;const{count,hasBlockStyles,selectedBlockName,selectedBlockClientId,blockType}=(0,use_select.Z)((select=>{const{getSelectedBlockClientId,getSelectedBlockCount,getBlockName}=select(store),{getBlockStyles}=select(build_module.h),_selectedBlockClientId=getSelectedBlockClientId(),_selectedBlockName=_selectedBlockClientId&&getBlockName(_selectedBlockClientId),_blockType=_selectedBlockName&&(0,build_module.ck)(_selectedBlockName),blockStyles=_selectedBlockName&&getBlockStyles(_selectedBlockName);return{count:getSelectedBlockCount(),selectedBlockClientId:_selectedBlockClientId,selectedBlockName:_selectedBlockName,blockType:_blockType,hasBlockStyles:blockStyles&&blockStyles.length>0}}),[]);if(count>1)return(0,react.createElement)("div",{className:"block-editor-block-inspector"},(0,react.createElement)(multi_selection_inspector,null),(0,react.createElement)(inspector_controls.Slot,{bubblesVirtually}));const isSelectedBlockUnregistered=selectedBlockName===(0,build_module.qy)();return blockType&&selectedBlockClientId&&!isSelectedBlockUnregistered?(0,react.createElement)(BlockInspectorSingleBlock,{clientId:selectedBlockClientId,blockName:blockType.name,hasBlockStyles,bubblesVirtually}):showNoBlockSelectedMessage?(0,react.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,i18n_build_module.__)("No block selected.")):null};function BlockTools(_ref){let{children,__unstableContentRef,...props}=_ref;const isLargeViewport=(0,use_viewport_match.Z)("medium"),hasFixedToolbar=(0,use_select.Z)((select=>select(store).getSettings().hasFixedToolbar),[]),isMatch=useShortcutEventMatch(),{getSelectedBlockClientIds,getBlockRootClientId}=(0,use_select.Z)(store),{duplicateBlocks,removeBlocks,insertAfterBlock,insertBeforeBlock,clearSelectedBlock,moveBlocksUp,moveBlocksDown}=(0,use_dispatch.Z)(store);return(0,react.createElement)("div",(0,esm_extends.Z)({},props,{onKeyDown:function onKeyDown(event){if(isMatch("core/block-editor/move-up",event)){const clientIds=getSelectedBlockClientIds();if(clientIds.length){event.preventDefault();const rootClientId=getBlockRootClientId((0,lodash.first)(clientIds));moveBlocksUp(clientIds,rootClientId)}}else if(isMatch("core/block-editor/move-down",event)){const clientIds=getSelectedBlockClientIds();if(clientIds.length){event.preventDefault();const rootClientId=getBlockRootClientId((0,lodash.first)(clientIds));moveBlocksDown(clientIds,rootClientId)}}else if(isMatch("core/block-editor/duplicate",event)){const clientIds=getSelectedBlockClientIds();clientIds.length&&(event.preventDefault(),duplicateBlocks(clientIds))}else if(isMatch("core/block-editor/remove",event)){const clientIds=getSelectedBlockClientIds();clientIds.length&&(event.preventDefault(),removeBlocks(clientIds))}else if(isMatch("core/block-editor/insert-after",event)){const clientIds=getSelectedBlockClientIds();clientIds.length&&(event.preventDefault(),insertAfterBlock((0,lodash.last)(clientIds)))}else if(isMatch("core/block-editor/insert-before",event)){const clientIds=getSelectedBlockClientIds();clientIds.length&&(event.preventDefault(),insertBeforeBlock((0,lodash.first)(clientIds)))}else if(isMatch("core/block-editor/delete-multi-selection",event)){const clientIds=getSelectedBlockClientIds();clientIds.length>1&&(event.preventDefault(),removeBlocks(clientIds))}else if(isMatch("core/block-editor/unselect",event)){getSelectedBlockClientIds().length>1&&(event.preventDefault(),clearSelectedBlock(),event.target.ownerDocument.defaultView.getSelection().removeAllRanges())}}}),(0,react.createElement)(InsertionPoint,{__unstableContentRef},(hasFixedToolbar||!isLargeViewport)&&(0,react.createElement)(block_contextual_toolbar,{isFixed:!0}),(0,react.createElement)(WrappedBlockPopover,{__unstableContentRef}),(0,react.createElement)(popover.Z.Slot,{name:"block-toolbar",ref:usePopoverScroll(__unstableContentRef)}),children,(0,react.createElement)(popover.Z.Slot,{name:"__unstable-block-tools-after",ref:usePopoverScroll(__unstableContentRef)})))}function KeyboardShortcuts(){return null}KeyboardShortcuts.Register=function KeyboardShortcutsRegister(){const{registerShortcut}=(0,use_dispatch.Z)(store_store);return(0,react.useEffect)((()=>{registerShortcut({name:"core/block-editor/duplicate",category:"block",description:(0,i18n_build_module.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),registerShortcut({name:"core/block-editor/remove",category:"block",description:(0,i18n_build_module.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),registerShortcut({name:"core/block-editor/insert-before",category:"block",description:(0,i18n_build_module.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),registerShortcut({name:"core/block-editor/insert-after",category:"block",description:(0,i18n_build_module.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),registerShortcut({name:"core/block-editor/delete-multi-selection",category:"block",description:(0,i18n_build_module.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),registerShortcut({name:"core/block-editor/select-all",category:"selection",description:(0,i18n_build_module.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),registerShortcut({name:"core/block-editor/unselect",category:"selection",description:(0,i18n_build_module.__)("Clear selection."),keyCombination:{character:"escape"}}),registerShortcut({name:"core/block-editor/focus-toolbar",category:"global",description:(0,i18n_build_module.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),registerShortcut({name:"core/block-editor/move-up",category:"block",description:(0,i18n_build_module.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),registerShortcut({name:"core/block-editor/move-down",category:"block",description:(0,i18n_build_module.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[registerShortcut]),null};const keyboard_shortcuts=KeyboardShortcuts,KEY_DOWN_ELIGIBLE_KEY_CODES=new Set([keycodes_build_module.UP,keycodes_build_module.pX,keycodes_build_module.WV,keycodes_build_module.RL,keycodes_build_module.K5,keycodes_build_module.ZH]);function useTypingObserver(){const isTyping=(0,use_select.Z)((select=>select(store).isTyping())),{startTyping,stopTyping}=(0,use_dispatch.Z)(store),ref1=function useMouseMoveTypingReset(){const isTyping=(0,use_select.Z)((select=>select(store).isTyping()),[]),{stopTyping}=(0,use_dispatch.Z)(store);return(0,use_ref_effect.Z)((node=>{if(!isTyping)return;const{ownerDocument}=node;let lastClientX,lastClientY;function stopTypingOnMouseMove(event){const{clientX,clientY}=event;lastClientX&&lastClientY&&(lastClientX!==clientX||lastClientY!==clientY)&&stopTyping(),lastClientX=clientX,lastClientY=clientY}return ownerDocument.addEventListener("mousemove",stopTypingOnMouseMove),()=>{ownerDocument.removeEventListener("mousemove",stopTypingOnMouseMove)}}),[isTyping,stopTyping])}(),ref2=(0,use_ref_effect.Z)((node=>{const{ownerDocument}=node,{defaultView}=ownerDocument;if(isTyping){let timerId;function stopTypingOnNonTextField(event){const{target}=event;timerId=defaultView.setTimeout((()=>{isTextField(target)||stopTyping()}))}function stopTypingOnEscapeKey(event){const{keyCode}=event;keyCode!==keycodes_build_module.hY&&keyCode!==keycodes_build_module.Mf||stopTyping()}function stopTypingOnSelectionUncollapse(){const selection=defaultView.getSelection();selection.rangeCount>0&&selection.getRangeAt(0).collapsed||stopTyping()}return node.addEventListener("focus",stopTypingOnNonTextField),node.addEventListener("keydown",stopTypingOnEscapeKey),ownerDocument.addEventListener("selectionchange",stopTypingOnSelectionUncollapse),()=>{defaultView.clearTimeout(timerId),node.removeEventListener("focus",stopTypingOnNonTextField),node.removeEventListener("keydown",stopTypingOnEscapeKey),ownerDocument.removeEventListener("selectionchange",stopTypingOnSelectionUncollapse)}}function startTypingInTextField(event){const{type,target}=event;isTextField(target)&&node.contains(target)&&("keydown"!==type||function isKeyDownEligibleForStartTyping(event){const{keyCode,shiftKey}=event;return!shiftKey&&KEY_DOWN_ELIGIBLE_KEY_CODES.has(keyCode)}(event))&&startTyping()}return node.addEventListener("keypress",startTypingInTextField),node.addEventListener("keydown",startTypingInTextField),()=>{node.removeEventListener("keypress",startTypingInTextField),node.removeEventListener("keydown",startTypingInTextField)}}),[isTyping,startTyping,stopTyping]);return(0,use_merge_refs.Z)([ref1,ref2])}const observe_typing=function ObserveTyping(_ref){let{children}=_ref;return(0,react.createElement)("div",{ref:useTypingObserver()},children)},RenderedRefsContext=(0,react.createContext)({});function addToBlockType(renderedBlocks,blockName,uniqueId){const result={...renderedBlocks,[blockName]:renderedBlocks[blockName]?new Set(renderedBlocks[blockName]):new Set};return result[blockName].add(uniqueId),result}function useNoRecursiveRenders(uniqueId){var _previouslyRenderedBl;let blockName=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const previouslyRenderedBlocks=(0,react.useContext)(RenderedRefsContext),{name}=useBlockEditContext();blockName=blockName||name;const hasAlreadyRendered=Boolean(null===(_previouslyRenderedBl=previouslyRenderedBlocks[blockName])||void 0===_previouslyRenderedBl?void 0:_previouslyRenderedBl.has(uniqueId)),newRenderedBlocks=(0,react.useMemo)((()=>addToBlockType(previouslyRenderedBlocks,blockName,uniqueId)),[previouslyRenderedBlocks,blockName,uniqueId]),Provider=(0,react.useCallback)((_ref=>{let{children}=_ref;return(0,react.createElement)(RenderedRefsContext.Provider,{value:newRenderedBlocks},children)}),[newRenderedBlocks]);return[hasAlreadyRendered,Provider]}},"../../../node_modules/.pnpm/@wordpress+block-library@6.0.11_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/block-library/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Pr:()=>registerCoreBlocks});var archives_namespaceObject={};__webpack_require__.r(archives_namespaceObject),__webpack_require__.d(archives_namespaceObject,{metadata:()=>metadata,name:()=>archives_name,settings:()=>settings});var build_module_audio_namespaceObject={};__webpack_require__.r(build_module_audio_namespaceObject),__webpack_require__.d(build_module_audio_namespaceObject,{metadata:()=>audio_metadata,name:()=>audio_name,settings:()=>audio_settings});var button_namespaceObject={};__webpack_require__.r(button_namespaceObject),__webpack_require__.d(button_namespaceObject,{metadata:()=>button_metadata,name:()=>button_name,settings:()=>button_settings});var build_module_buttons_namespaceObject={};__webpack_require__.r(build_module_buttons_namespaceObject),__webpack_require__.d(build_module_buttons_namespaceObject,{metadata:()=>buttons_metadata,name:()=>buttons_name,settings:()=>buttons_settings});var build_module_actions_namespaceObject={};__webpack_require__.r(build_module_actions_namespaceObject),__webpack_require__.d(build_module_actions_namespaceObject,{__experimentalBatch:()=>__experimentalBatch,__experimentalReceiveCurrentGlobalStylesId:()=>__experimentalReceiveCurrentGlobalStylesId,__experimentalReceiveThemeBaseGlobalStyles:()=>__experimentalReceiveThemeBaseGlobalStyles,__experimentalSaveSpecifiedEntityEdits:()=>__experimentalSaveSpecifiedEntityEdits,__unstableCreateUndoLevel:()=>__unstableCreateUndoLevel,addEntities:()=>addEntities,deleteEntityRecord:()=>deleteEntityRecord,editEntityRecord:()=>editEntityRecord,receiveAutosaves:()=>receiveAutosaves,receiveCurrentTheme:()=>receiveCurrentTheme,receiveCurrentUser:()=>receiveCurrentUser,receiveEmbedPreview:()=>receiveEmbedPreview,receiveEntityRecords:()=>receiveEntityRecords,receiveThemeSupports:()=>receiveThemeSupports,receiveUploadPermissions:()=>receiveUploadPermissions,receiveUserPermission:()=>receiveUserPermission,receiveUserQuery:()=>receiveUserQuery,redo:()=>redo,saveEditedEntityRecord:()=>saveEditedEntityRecord,saveEntityRecord:()=>saveEntityRecord,undo:()=>undo});var build_module_selectors_namespaceObject={};__webpack_require__.r(build_module_selectors_namespaceObject),__webpack_require__.d(build_module_selectors_namespaceObject,{__experimentalGetCurrentGlobalStylesId:()=>__experimentalGetCurrentGlobalStylesId,__experimentalGetCurrentThemeBaseGlobalStyles:()=>__experimentalGetCurrentThemeBaseGlobalStyles,__experimentalGetDirtyEntityRecords:()=>__experimentalGetDirtyEntityRecords,__experimentalGetEntitiesBeingSaved:()=>__experimentalGetEntitiesBeingSaved,__experimentalGetEntityRecordNoResolver:()=>__experimentalGetEntityRecordNoResolver,__experimentalGetTemplateForLink:()=>__experimentalGetTemplateForLink,canUser:()=>canUser,canUserEditEntityRecord:()=>canUserEditEntityRecord,getAuthors:()=>getAuthors,getAutosave:()=>getAutosave,getAutosaves:()=>getAutosaves,getCurrentTheme:()=>getCurrentTheme,getCurrentUser:()=>getCurrentUser,getEditedEntityRecord:()=>getEditedEntityRecord,getEmbedPreview:()=>getEmbedPreview,getEntitiesByKind:()=>getEntitiesByKind,getEntity:()=>getEntity,getEntityRecord:()=>getEntityRecord,getEntityRecordEdits:()=>getEntityRecordEdits,getEntityRecordNonTransientEdits:()=>getEntityRecordNonTransientEdits,getEntityRecords:()=>getEntityRecords,getLastEntityDeleteError:()=>getLastEntityDeleteError,getLastEntitySaveError:()=>getLastEntitySaveError,getRawEntityRecord:()=>getRawEntityRecord,getRedoEdit:()=>getRedoEdit,getReferenceByDistinctEdits:()=>getReferenceByDistinctEdits,getThemeSupports:()=>getThemeSupports,getUndoEdit:()=>getUndoEdit,getUserQueryResults:()=>getUserQueryResults,hasEditsForEntityRecord:()=>hasEditsForEntityRecord,hasEntityRecords:()=>hasEntityRecords,hasFetchedAutosaves:()=>hasFetchedAutosaves,hasRedo:()=>hasRedo,hasUndo:()=>hasUndo,isAutosavingEntityRecord:()=>isAutosavingEntityRecord,isDeletingEntityRecord:()=>isDeletingEntityRecord,isPreviewEmbedFallback:()=>isPreviewEmbedFallback,isRequestingEmbedPreview:()=>isRequestingEmbedPreview,isSavingEntityRecord:()=>isSavingEntityRecord});var resolvers_namespaceObject={};__webpack_require__.r(resolvers_namespaceObject),__webpack_require__.d(resolvers_namespaceObject,{__experimentalGetCurrentGlobalStylesId:()=>resolvers_experimentalGetCurrentGlobalStylesId,__experimentalGetCurrentThemeBaseGlobalStyles:()=>resolvers_experimentalGetCurrentThemeBaseGlobalStyles,__experimentalGetTemplateForLink:()=>resolvers_experimentalGetTemplateForLink,canUser:()=>resolvers_canUser,canUserEditEntityRecord:()=>resolvers_canUserEditEntityRecord,getAuthors:()=>resolvers_getAuthors,getAutosave:()=>resolvers_getAutosave,getAutosaves:()=>resolvers_getAutosaves,getCurrentTheme:()=>resolvers_getCurrentTheme,getCurrentUser:()=>resolvers_getCurrentUser,getEditedEntityRecord:()=>resolvers_getEditedEntityRecord,getEmbedPreview:()=>resolvers_getEmbedPreview,getEntityRecord:()=>resolvers_getEntityRecord,getEntityRecords:()=>resolvers_getEntityRecords,getRawEntityRecord:()=>resolvers_getRawEntityRecord,getThemeSupports:()=>resolvers_getThemeSupports});var build_module_calendar_namespaceObject={};__webpack_require__.r(build_module_calendar_namespaceObject),__webpack_require__.d(build_module_calendar_namespaceObject,{metadata:()=>calendar_metadata,name:()=>calendar_name,settings:()=>calendar_settings});var categories_namespaceObject={};__webpack_require__.r(categories_namespaceObject),__webpack_require__.d(categories_namespaceObject,{metadata:()=>categories_metadata,name:()=>categories_name,settings:()=>categories_settings});var freeform_namespaceObject={};__webpack_require__.r(freeform_namespaceObject),__webpack_require__.d(freeform_namespaceObject,{metadata:()=>freeform_metadata,name:()=>freeform_name,settings:()=>freeform_settings});var code_namespaceObject={};__webpack_require__.r(code_namespaceObject),__webpack_require__.d(code_namespaceObject,{metadata:()=>code_metadata,name:()=>code_name,settings:()=>code_settings});var build_module_column_namespaceObject={};__webpack_require__.r(build_module_column_namespaceObject),__webpack_require__.d(build_module_column_namespaceObject,{metadata:()=>column_metadata,name:()=>column_name,settings:()=>column_settings});var build_module_columns_namespaceObject={};__webpack_require__.r(build_module_columns_namespaceObject),__webpack_require__.d(build_module_columns_namespaceObject,{metadata:()=>columns_metadata,name:()=>columns_name,settings:()=>columns_settings});var build_module_comment_author_avatar_namespaceObject={};__webpack_require__.r(build_module_comment_author_avatar_namespaceObject),__webpack_require__.d(build_module_comment_author_avatar_namespaceObject,{metadata:()=>comment_author_avatar_metadata,name:()=>comment_author_avatar_name,settings:()=>comment_author_avatar_settings});var build_module_comment_author_name_namespaceObject={};__webpack_require__.r(build_module_comment_author_name_namespaceObject),__webpack_require__.d(build_module_comment_author_name_namespaceObject,{metadata:()=>comment_author_name_metadata,name:()=>comment_author_name_name,settings:()=>comment_author_name_settings});var build_module_comment_content_namespaceObject={};__webpack_require__.r(build_module_comment_content_namespaceObject),__webpack_require__.d(build_module_comment_content_namespaceObject,{metadata:()=>comment_content_metadata,name:()=>comment_content_name,settings:()=>comment_content_settings});var comment_date_namespaceObject={};__webpack_require__.r(comment_date_namespaceObject),__webpack_require__.d(comment_date_namespaceObject,{metadata:()=>comment_date_metadata,name:()=>comment_date_name,settings:()=>comment_date_settings});var comment_edit_link_namespaceObject={};__webpack_require__.r(comment_edit_link_namespaceObject),__webpack_require__.d(comment_edit_link_namespaceObject,{metadata:()=>comment_edit_link_metadata,name:()=>comment_edit_link_name,settings:()=>comment_edit_link_settings});var build_module_comment_reply_link_namespaceObject={};__webpack_require__.r(build_module_comment_reply_link_namespaceObject),__webpack_require__.d(build_module_comment_reply_link_namespaceObject,{metadata:()=>comment_reply_link_metadata,name:()=>comment_reply_link_name,settings:()=>comment_reply_link_settings});var comment_template_namespaceObject={};__webpack_require__.r(comment_template_namespaceObject),__webpack_require__.d(comment_template_namespaceObject,{metadata:()=>comment_template_metadata,name:()=>comment_template_name,settings:()=>comment_template_settings});var comments_query_loop_namespaceObject={};__webpack_require__.r(comments_query_loop_namespaceObject),__webpack_require__.d(comments_query_loop_namespaceObject,{metadata:()=>comments_query_loop_metadata,name:()=>comments_query_loop_name,settings:()=>comments_query_loop_settings});var build_module_cover_namespaceObject={};__webpack_require__.r(build_module_cover_namespaceObject),__webpack_require__.d(build_module_cover_namespaceObject,{metadata:()=>cover_metadata,name:()=>cover_name,settings:()=>cover_settings});var embed_namespaceObject={};__webpack_require__.r(embed_namespaceObject),__webpack_require__.d(embed_namespaceObject,{metadata:()=>embed_metadata,name:()=>embed_name,settings:()=>embed_settings});var build_module_file_namespaceObject={};__webpack_require__.r(build_module_file_namespaceObject),__webpack_require__.d(build_module_file_namespaceObject,{metadata:()=>file_metadata,name:()=>file_name,settings:()=>file_settings});var store_actions_namespaceObject={};__webpack_require__.r(store_actions_namespaceObject),__webpack_require__.d(store_actions_namespaceObject,{setIsMatching:()=>setIsMatching});var store_selectors_namespaceObject={};__webpack_require__.r(store_selectors_namespaceObject),__webpack_require__.d(store_selectors_namespaceObject,{isViewportMatch:()=>isViewportMatch});var build_module_store_actions_namespaceObject={};__webpack_require__.r(build_module_store_actions_namespaceObject),__webpack_require__.d(build_module_store_actions_namespaceObject,{disableComplementaryArea:()=>disableComplementaryArea,enableComplementaryArea:()=>enableComplementaryArea,pinItem:()=>pinItem,setFeatureDefaults:()=>setFeatureDefaults,setFeatureValue:()=>setFeatureValue,toggleFeature:()=>toggleFeature,unpinItem:()=>unpinItem});var build_module_store_selectors_namespaceObject={};__webpack_require__.r(build_module_store_selectors_namespaceObject),__webpack_require__.d(build_module_store_selectors_namespaceObject,{getActiveComplementaryArea:()=>getActiveComplementaryArea,isFeatureActive:()=>isFeatureActive,isItemPinned:()=>isItemPinned});var build_module_gallery_namespaceObject={};__webpack_require__.r(build_module_gallery_namespaceObject),__webpack_require__.d(build_module_gallery_namespaceObject,{metadata:()=>gallery_metadata,name:()=>gallery_name,settings:()=>gallery_settings});var build_module_group_namespaceObject={};__webpack_require__.r(build_module_group_namespaceObject),__webpack_require__.d(build_module_group_namespaceObject,{metadata:()=>group_metadata,name:()=>group_name,settings:()=>group_settings});var build_module_heading_namespaceObject={};__webpack_require__.r(build_module_heading_namespaceObject),__webpack_require__.d(build_module_heading_namespaceObject,{metadata:()=>heading_metadata,name:()=>heading_name,settings:()=>heading_settings});var home_link_namespaceObject={};__webpack_require__.r(home_link_namespaceObject),__webpack_require__.d(home_link_namespaceObject,{metadata:()=>home_link_metadata,name:()=>home_link_name,settings:()=>home_link_settings});var build_module_html_namespaceObject={};__webpack_require__.r(build_module_html_namespaceObject),__webpack_require__.d(build_module_html_namespaceObject,{metadata:()=>html_metadata,name:()=>html_name,settings:()=>html_settings});var build_module_image_namespaceObject={};__webpack_require__.r(build_module_image_namespaceObject),__webpack_require__.d(build_module_image_namespaceObject,{metadata:()=>image_metadata,name:()=>image_name,settings:()=>image_settings});var latest_comments_namespaceObject={};__webpack_require__.r(latest_comments_namespaceObject),__webpack_require__.d(latest_comments_namespaceObject,{metadata:()=>latest_comments_metadata,name:()=>latest_comments_name,settings:()=>latest_comments_settings});var latest_posts_namespaceObject={};__webpack_require__.r(latest_posts_namespaceObject),__webpack_require__.d(latest_posts_namespaceObject,{metadata:()=>latest_posts_metadata,name:()=>latest_posts_name,settings:()=>latest_posts_settings});var build_module_list_namespaceObject={};__webpack_require__.r(build_module_list_namespaceObject),__webpack_require__.d(build_module_list_namespaceObject,{metadata:()=>list_metadata,name:()=>list_name,settings:()=>list_settings});var loginout_namespaceObject={};__webpack_require__.r(loginout_namespaceObject),__webpack_require__.d(loginout_namespaceObject,{metadata:()=>loginout_metadata,name:()=>loginout_name,settings:()=>loginout_settings});var media_text_namespaceObject={};__webpack_require__.r(media_text_namespaceObject),__webpack_require__.d(media_text_namespaceObject,{metadata:()=>media_text_metadata,name:()=>media_text_name,settings:()=>media_text_settings});var missing_namespaceObject={};__webpack_require__.r(missing_namespaceObject),__webpack_require__.d(missing_namespaceObject,{metadata:()=>missing_metadata,name:()=>missing_name,settings:()=>missing_settings});var build_module_more_namespaceObject={};__webpack_require__.r(build_module_more_namespaceObject),__webpack_require__.d(build_module_more_namespaceObject,{metadata:()=>more_metadata,name:()=>more_name,settings:()=>more_settings});var build_module_navigation_namespaceObject={};__webpack_require__.r(build_module_navigation_namespaceObject),__webpack_require__.d(build_module_navigation_namespaceObject,{metadata:()=>navigation_metadata,name:()=>navigation_name,settings:()=>navigation_settings});var navigation_area_namespaceObject={};__webpack_require__.r(navigation_area_namespaceObject),__webpack_require__.d(navigation_area_namespaceObject,{metadata:()=>navigation_area_metadata,name:()=>navigation_area_name,settings:()=>navigation_area_settings});var navigation_link_namespaceObject={};__webpack_require__.r(navigation_link_namespaceObject),__webpack_require__.d(navigation_link_namespaceObject,{metadata:()=>navigation_link_metadata,name:()=>navigation_link_name,settings:()=>navigation_link_settings});var navigation_submenu_namespaceObject={};__webpack_require__.r(navigation_submenu_namespaceObject),__webpack_require__.d(navigation_submenu_namespaceObject,{metadata:()=>navigation_submenu_metadata,name:()=>navigation_submenu_name,settings:()=>navigation_submenu_settings});var nextpage_namespaceObject={};__webpack_require__.r(nextpage_namespaceObject),__webpack_require__.d(nextpage_namespaceObject,{metadata:()=>nextpage_metadata,name:()=>nextpage_name,settings:()=>nextpage_settings});var pattern_namespaceObject={};__webpack_require__.r(pattern_namespaceObject),__webpack_require__.d(pattern_namespaceObject,{metadata:()=>pattern_metadata,name:()=>pattern_name,settings:()=>pattern_settings});var page_list_namespaceObject={};__webpack_require__.r(page_list_namespaceObject),__webpack_require__.d(page_list_namespaceObject,{metadata:()=>page_list_metadata,name:()=>page_list_name,settings:()=>page_list_settings});var build_module_paragraph_namespaceObject={};__webpack_require__.r(build_module_paragraph_namespaceObject),__webpack_require__.d(build_module_paragraph_namespaceObject,{metadata:()=>paragraph_metadata,name:()=>paragraph_name,settings:()=>paragraph_settings});var build_module_post_author_namespaceObject={};__webpack_require__.r(build_module_post_author_namespaceObject),__webpack_require__.d(build_module_post_author_namespaceObject,{metadata:()=>post_author_metadata,name:()=>post_author_name,settings:()=>post_author_settings});var post_comment_namespaceObject={};__webpack_require__.r(post_comment_namespaceObject),__webpack_require__.d(post_comment_namespaceObject,{metadata:()=>post_comment_metadata,name:()=>post_comment_name,settings:()=>post_comment_settings});var build_module_post_comments_namespaceObject={};__webpack_require__.r(build_module_post_comments_namespaceObject),__webpack_require__.d(build_module_post_comments_namespaceObject,{metadata:()=>post_comments_metadata,name:()=>post_comments_name,settings:()=>post_comments_settings});var build_module_post_comments_count_namespaceObject={};__webpack_require__.r(build_module_post_comments_count_namespaceObject),__webpack_require__.d(build_module_post_comments_count_namespaceObject,{metadata:()=>post_comments_count_metadata,name:()=>post_comments_count_name,settings:()=>post_comments_count_settings});var build_module_post_comments_form_namespaceObject={};__webpack_require__.r(build_module_post_comments_form_namespaceObject),__webpack_require__.d(build_module_post_comments_form_namespaceObject,{metadata:()=>post_comments_form_metadata,name:()=>post_comments_form_name,settings:()=>post_comments_form_settings});var post_comments_link_namespaceObject={};__webpack_require__.r(post_comments_link_namespaceObject),__webpack_require__.d(post_comments_link_namespaceObject,{metadata:()=>post_comments_link_metadata,name:()=>post_comments_link_name,settings:()=>post_comments_link_settings});var build_module_post_content_namespaceObject={};__webpack_require__.r(build_module_post_content_namespaceObject),__webpack_require__.d(build_module_post_content_namespaceObject,{metadata:()=>post_content_metadata,name:()=>post_content_name,settings:()=>post_content_settings});var build_module_post_date_namespaceObject={};__webpack_require__.r(build_module_post_date_namespaceObject),__webpack_require__.d(build_module_post_date_namespaceObject,{metadata:()=>post_date_metadata,name:()=>post_date_name,settings:()=>post_date_settings});var build_module_post_excerpt_namespaceObject={};__webpack_require__.r(build_module_post_excerpt_namespaceObject),__webpack_require__.d(build_module_post_excerpt_namespaceObject,{metadata:()=>post_excerpt_metadata,name:()=>post_excerpt_name,settings:()=>post_excerpt_settings});var build_module_post_featured_image_namespaceObject={};__webpack_require__.r(build_module_post_featured_image_namespaceObject),__webpack_require__.d(build_module_post_featured_image_namespaceObject,{metadata:()=>post_featured_image_metadata,name:()=>post_featured_image_name,settings:()=>post_featured_image_settings});var post_navigation_link_namespaceObject={};__webpack_require__.r(post_navigation_link_namespaceObject),__webpack_require__.d(post_navigation_link_namespaceObject,{metadata:()=>post_navigation_link_metadata,name:()=>post_navigation_link_name,settings:()=>post_navigation_link_settings});var post_template_namespaceObject={};__webpack_require__.r(post_template_namespaceObject),__webpack_require__.d(post_template_namespaceObject,{metadata:()=>post_template_metadata,name:()=>post_template_name,settings:()=>post_template_settings});var post_terms_namespaceObject={};__webpack_require__.r(post_terms_namespaceObject),__webpack_require__.d(post_terms_namespaceObject,{metadata:()=>post_terms_metadata,name:()=>post_terms_name,settings:()=>post_terms_settings});var build_module_post_title_namespaceObject={};__webpack_require__.r(build_module_post_title_namespaceObject),__webpack_require__.d(build_module_post_title_namespaceObject,{metadata:()=>post_title_metadata,name:()=>post_title_name,settings:()=>post_title_settings});var build_module_preformatted_namespaceObject={};__webpack_require__.r(build_module_preformatted_namespaceObject),__webpack_require__.d(build_module_preformatted_namespaceObject,{metadata:()=>preformatted_metadata,name:()=>preformatted_name,settings:()=>preformatted_settings});var build_module_pullquote_namespaceObject={};__webpack_require__.r(build_module_pullquote_namespaceObject),__webpack_require__.d(build_module_pullquote_namespaceObject,{metadata:()=>pullquote_metadata,name:()=>pullquote_name,settings:()=>pullquote_settings});var query_namespaceObject={};__webpack_require__.r(query_namespaceObject),__webpack_require__.d(query_namespaceObject,{metadata:()=>query_metadata,name:()=>query_name,settings:()=>query_settings});var build_module_query_pagination_namespaceObject={};__webpack_require__.r(build_module_query_pagination_namespaceObject),__webpack_require__.d(build_module_query_pagination_namespaceObject,{metadata:()=>query_pagination_metadata,name:()=>query_pagination_name,settings:()=>query_pagination_settings});var build_module_query_pagination_next_namespaceObject={};__webpack_require__.r(build_module_query_pagination_next_namespaceObject),__webpack_require__.d(build_module_query_pagination_next_namespaceObject,{metadata:()=>query_pagination_next_metadata,name:()=>query_pagination_next_name,settings:()=>query_pagination_next_settings});var build_module_query_pagination_numbers_namespaceObject={};__webpack_require__.r(build_module_query_pagination_numbers_namespaceObject),__webpack_require__.d(build_module_query_pagination_numbers_namespaceObject,{metadata:()=>query_pagination_numbers_metadata,name:()=>query_pagination_numbers_name,settings:()=>query_pagination_numbers_settings});var build_module_query_pagination_previous_namespaceObject={};__webpack_require__.r(build_module_query_pagination_previous_namespaceObject),__webpack_require__.d(build_module_query_pagination_previous_namespaceObject,{metadata:()=>query_pagination_previous_metadata,name:()=>query_pagination_previous_name,settings:()=>query_pagination_previous_settings});var query_title_namespaceObject={};__webpack_require__.r(query_title_namespaceObject),__webpack_require__.d(query_title_namespaceObject,{metadata:()=>query_title_metadata,name:()=>query_title_name,settings:()=>query_title_settings});var build_module_quote_namespaceObject={};__webpack_require__.r(build_module_quote_namespaceObject),__webpack_require__.d(build_module_quote_namespaceObject,{metadata:()=>quote_metadata,name:()=>quote_name,settings:()=>quote_settings});var reusable_blocks_build_module_store_actions_namespaceObject={};__webpack_require__.r(reusable_blocks_build_module_store_actions_namespaceObject),__webpack_require__.d(reusable_blocks_build_module_store_actions_namespaceObject,{__experimentalConvertBlockToStatic:()=>__experimentalConvertBlockToStatic,__experimentalConvertBlocksToReusable:()=>__experimentalConvertBlocksToReusable,__experimentalDeleteReusableBlock:()=>__experimentalDeleteReusableBlock,__experimentalSetEditingReusableBlock:()=>__experimentalSetEditingReusableBlock});var reusable_blocks_build_module_store_selectors_namespaceObject={};__webpack_require__.r(reusable_blocks_build_module_store_selectors_namespaceObject),__webpack_require__.d(reusable_blocks_build_module_store_selectors_namespaceObject,{__experimentalIsEditingReusableBlock:()=>__experimentalIsEditingReusableBlock});var block_namespaceObject={};__webpack_require__.r(block_namespaceObject),__webpack_require__.d(block_namespaceObject,{metadata:()=>block_metadata,name:()=>block_name,settings:()=>block_settings});var build_module_rss_namespaceObject={};__webpack_require__.r(build_module_rss_namespaceObject),__webpack_require__.d(build_module_rss_namespaceObject,{metadata:()=>rss_metadata,name:()=>rss_name,settings:()=>rss_settings});var search_namespaceObject={};__webpack_require__.r(search_namespaceObject),__webpack_require__.d(search_namespaceObject,{metadata:()=>search_metadata,name:()=>search_name,settings:()=>search_settings});var build_module_separator_namespaceObject={};__webpack_require__.r(build_module_separator_namespaceObject),__webpack_require__.d(build_module_separator_namespaceObject,{metadata:()=>separator_metadata,name:()=>separator_name,settings:()=>build_module_separator_settings});var build_module_shortcode_namespaceObject={};__webpack_require__.r(build_module_shortcode_namespaceObject),__webpack_require__.d(build_module_shortcode_namespaceObject,{metadata:()=>shortcode_metadata,name:()=>shortcode_name,settings:()=>shortcode_settings});var build_module_site_logo_namespaceObject={};__webpack_require__.r(build_module_site_logo_namespaceObject),__webpack_require__.d(build_module_site_logo_namespaceObject,{metadata:()=>site_logo_metadata,name:()=>site_logo_name,settings:()=>site_logo_settings});var site_tagline_namespaceObject={};__webpack_require__.r(site_tagline_namespaceObject),__webpack_require__.d(site_tagline_namespaceObject,{metadata:()=>site_tagline_metadata,name:()=>site_tagline_name,settings:()=>site_tagline_settings});var site_title_namespaceObject={};__webpack_require__.r(site_title_namespaceObject),__webpack_require__.d(site_title_namespaceObject,{metadata:()=>site_title_metadata,name:()=>site_title_name,settings:()=>site_title_settings});var social_link_namespaceObject={};__webpack_require__.r(social_link_namespaceObject),__webpack_require__.d(social_link_namespaceObject,{metadata:()=>social_link_metadata,name:()=>social_link_name,settings:()=>social_link_settings});var social_links_namespaceObject={};__webpack_require__.r(social_links_namespaceObject),__webpack_require__.d(social_links_namespaceObject,{metadata:()=>social_links_metadata,name:()=>social_links_name,settings:()=>social_links_settings});var spacer_namespaceObject={};__webpack_require__.r(spacer_namespaceObject),__webpack_require__.d(spacer_namespaceObject,{metadata:()=>spacer_metadata,name:()=>spacer_name,settings:()=>spacer_settings});var build_module_table_namespaceObject={};__webpack_require__.r(build_module_table_namespaceObject),__webpack_require__.d(build_module_table_namespaceObject,{metadata:()=>table_metadata,name:()=>table_name,settings:()=>table_settings});var tag_cloud_namespaceObject={};__webpack_require__.r(tag_cloud_namespaceObject),__webpack_require__.d(tag_cloud_namespaceObject,{metadata:()=>tag_cloud_metadata,name:()=>tag_cloud_name,settings:()=>tag_cloud_settings});var template_part_namespaceObject={};__webpack_require__.r(template_part_namespaceObject),__webpack_require__.d(template_part_namespaceObject,{metadata:()=>template_part_metadata,name:()=>template_part_name,settings:()=>template_part_settings});var build_module_term_description_namespaceObject={};__webpack_require__.r(build_module_term_description_namespaceObject),__webpack_require__.d(build_module_term_description_namespaceObject,{metadata:()=>term_description_metadata,name:()=>term_description_name,settings:()=>term_description_settings});var text_columns_namespaceObject={};__webpack_require__.r(text_columns_namespaceObject),__webpack_require__.d(text_columns_namespaceObject,{metadata:()=>text_columns_metadata,name:()=>text_columns_name,settings:()=>text_columns_settings});var build_module_verse_namespaceObject={};__webpack_require__.r(build_module_verse_namespaceObject),__webpack_require__.d(build_module_verse_namespaceObject,{metadata:()=>verse_metadata,name:()=>verse_name,settings:()=>verse_settings});var build_module_video_namespaceObject={};__webpack_require__.r(build_module_video_namespaceObject),__webpack_require__.d(build_module_video_namespaceObject,{metadata:()=>video_metadata,name:()=>video_name,settings:()=>video_settings});var build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+blocks@11.1.4_react@17.0.2/node_modules/@wordpress/blocks/build-module/index.js"),react=__webpack_require__("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),svg=__webpack_require__("../../../node_modules/.pnpm/@wordpress+primitives@3.0.4/node_modules/@wordpress/primitives/build-module/svg/index.js");const library_archive=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));var body=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/panel/body.js"),toggle_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toggle-control/index.js"),disabled=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/disabled/index.js"),i18n_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+i18n@4.2.4/node_modules/@wordpress/i18n/build-module/index.js"),block_editor_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+block-editor@8.0.7_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/block-editor/build-module/index.js"),esm_extends=__webpack_require__("../../../node_modules/.pnpm/@babel+runtime@7.16.3/node_modules/@babel/runtime/helpers/esm/extends.js"),with_select=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/with-select/index.js"),deprecated_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+deprecated@3.2.3/node_modules/@wordpress/deprecated/build-module/index.js"),lodash=__webpack_require__("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),use_previous=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-previous/index.js"),use_debounce=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-debounce/index.js"),raw_html=__webpack_require__("../../../node_modules/.pnpm/@wordpress+element@4.0.4/node_modules/@wordpress/element/build-module/raw-html.js"),api_fetch_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+api-fetch@5.2.6/node_modules/@wordpress/api-fetch/build-module/index.js"),add_query_args=__webpack_require__("../../../node_modules/.pnpm/@wordpress+url@3.3.1/node_modules/@wordpress/url/build-module/add-query-args.js"),build_module_placeholder=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/placeholder/index.js"),spinner=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/spinner/index.js");function DefaultEmptyResponsePlaceholder(_ref){let{className}=_ref;return(0,react.createElement)(build_module_placeholder.Z,{className},(0,i18n_build_module.__)("Block rendered as empty."))}function DefaultErrorResponsePlaceholder(_ref2){let{response,className}=_ref2;const errorMessage=(0,i18n_build_module.gB)((0,i18n_build_module.__)("Error loading block: %s"),response.errorMsg);return(0,react.createElement)(build_module_placeholder.Z,{className},errorMessage)}function DefaultLoadingResponsePlaceholder(_ref3){let{children,showLoader}=_ref3;return(0,react.createElement)("div",{style:{position:"relative"}},showLoader&&(0,react.createElement)("div",{style:{position:"absolute",top:"50%",left:"50%",marginTop:"-9px",marginLeft:"-9px"}},(0,react.createElement)(spinner.Z,null)),(0,react.createElement)("div",{style:{opacity:showLoader?"0.3":1}},children))}function ServerSideRender(props){const{attributes,block,className,httpMethod="GET",urlQueryArgs,EmptyResponsePlaceholder=DefaultEmptyResponsePlaceholder,ErrorResponsePlaceholder=DefaultErrorResponsePlaceholder,LoadingResponsePlaceholder=DefaultLoadingResponsePlaceholder}=props,isMountedRef=(0,react.useRef)(!0),[showLoader,setShowLoader]=(0,react.useState)(!1),fetchRequestRef=(0,react.useRef)(),[response,setResponse]=(0,react.useState)(null),prevProps=(0,use_previous.Z)(props),[isLoading,setIsLoading]=(0,react.useState)(!1);function fetchData(){if(!isMountedRef.current)return;setIsLoading(!0);const sanitizedAttributes=attributes&&(0,build_module.t9)(block,attributes),isPostRequest="POST"===httpMethod,path=function rendererPath(block){let attributes=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,urlQueryArgs=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,add_query_args.f)(`/wp/v2/block-renderer/${block}`,{context:"edit",...null!==attributes?{attributes}:{},...urlQueryArgs})}(block,isPostRequest?null:null!=sanitizedAttributes?sanitizedAttributes:null,urlQueryArgs),data=isPostRequest?{attributes:null!=sanitizedAttributes?sanitizedAttributes:null}:null,fetchRequest=fetchRequestRef.current=(0,api_fetch_build_module.Z)({path,data,method:isPostRequest?"POST":"GET"}).then((fetchResponse=>{isMountedRef.current&&fetchRequest===fetchRequestRef.current&&fetchResponse&&setResponse(fetchResponse.rendered)})).catch((error=>{isMountedRef.current&&fetchRequest===fetchRequestRef.current&&setResponse({error:!0,errorMsg:error.message})})).finally((()=>{isMountedRef.current&&fetchRequest===fetchRequestRef.current&&setIsLoading(!1)}));return fetchRequest}const debouncedFetchData=(0,use_debounce.Z)(fetchData,500);(0,react.useEffect)((()=>()=>{isMountedRef.current=!1}),[]),(0,react.useEffect)((()=>{void 0===prevProps?fetchData():(0,lodash.isEqual)(prevProps,props)||debouncedFetchData()})),(0,react.useEffect)((()=>{if(!isLoading)return;const timeout=setTimeout((()=>{setShowLoader(!0)}),1e3);return()=>clearTimeout(timeout)}),[isLoading]);const hasResponse=!!response,hasEmptyResponse=""===response,hasError=null==response?void 0:response.error;return hasEmptyResponse||!hasResponse?(0,react.createElement)(EmptyResponsePlaceholder,props):hasError?(0,react.createElement)(ErrorResponsePlaceholder,(0,esm_extends.Z)({response},props)):isLoading?(0,react.createElement)(LoadingResponsePlaceholder,(0,esm_extends.Z)({},props,{showLoader}),hasResponse&&(0,react.createElement)(raw_html.Z,{className},response)):(0,react.createElement)(raw_html.Z,{className},response)}const EMPTY_OBJECT={},ExportedServerSideRender=(0,with_select.Z)((select=>{const coreEditorSelect=select("core/editor");if(coreEditorSelect){const currentPostId=coreEditorSelect.getCurrentPostId();if(currentPostId&&"number"==typeof currentPostId)return{currentPostId}}return EMPTY_OBJECT}))((_ref=>{let{urlQueryArgs=EMPTY_OBJECT,currentPostId,...props}=_ref;const newUrlQueryArgs=(0,react.useMemo)((()=>currentPostId?{post_id:currentPostId,...urlQueryArgs}:urlQueryArgs),[currentPostId,urlQueryArgs]);return(0,react.createElement)(ServerSideRender,(0,esm_extends.Z)({urlQueryArgs:newUrlQueryArgs},props))}));window&&window.wp&&window.wp.components&&(window.wp.components.ServerSideRender=(0,react.forwardRef)(((props,ref)=>((0,deprecated_build_module.Z)("wp.components.ServerSideRender",{since:"5.3",alternative:"wp.serverSideRender"}),(0,react.createElement)(ExportedServerSideRender,(0,esm_extends.Z)({},props,{ref}))))));const server_side_render_build_module=ExportedServerSideRender;const metadata={apiVersion:2,name:"core/archives",title:"Archives",category:"widgets",description:"Display a monthly archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-archives-editor"},{name:archives_name}=metadata,settings={icon:library_archive,example:{},edit:function ArchivesEdit(_ref){let{attributes,setAttributes}=_ref;const{showPostCounts,displayAsDropdown}=attributes;return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Archives settings")},(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Display as dropdown"),checked:displayAsDropdown,onChange:()=>setAttributes({displayAsDropdown:!displayAsDropdown})}),(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Show post counts"),checked:showPostCounts,onChange:()=>setAttributes({showPostCounts:!showPostCounts})}))),(0,react.createElement)("div",(0,block_editor_build_module.Wo)(),(0,react.createElement)(disabled.Z,null,(0,react.createElement)(server_side_render_build_module,{block:"core/archives",attributes}))))}},library_audio=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),deprecated=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save(_ref){let{attributes}=_ref;const{autoplay,caption,loop,preload,src}=attributes;return(0,react.createElement)("figure",null,(0,react.createElement)("audio",{controls:"controls",src,autoPlay:autoplay,loop,preload}),!block_editor_build_module.Ho.isEmpty(caption)&&(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"figcaption",value:caption}))}}];var blob_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+blob@3.2.2/node_modules/@wordpress/blob/build-module/index.js"),select_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/select-control/index.js"),v4=__webpack_require__("../../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/v4.js"),create_higher_order_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/utils/create-higher-order-component/index.js"),classnames=__webpack_require__("../../../node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),build_module_notice=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/notice/index.js");const list=function NoticeList(_ref){let{notices,onRemove=lodash.noop,className,children}=_ref;return className=classnames_default()("components-notice-list",className),(0,react.createElement)("div",{className},children,[...notices].reverse().map((notice=>{return(0,react.createElement)(build_module_notice.Z,(0,esm_extends.Z)({},(0,lodash.omit)(notice,["content"]),{key:notice.id,onRemove:(id=notice.id,()=>onRemove(id))}),notice.content);var id})))},with_notices=(0,create_higher_order_component.Z)((OriginalComponent=>{function Component(props,ref){const[noticeList,setNoticeList]=(0,react.useState)([]),noticeOperations=(0,react.useMemo)((()=>{const createNotice=notice=>{const noticeToAdd=notice.id?notice:{...notice,id:(0,v4.Z)()};setNoticeList((current=>[...current,noticeToAdd]))};return{createNotice,createErrorNotice:msg=>{createNotice({status:"error",content:msg})},removeNotice:id=>{setNoticeList((current=>current.filter((notice=>notice.id!==id))))},removeAllNotices:()=>{setNoticeList([])}}}),[]),propsOut={...props,noticeList,noticeOperations,noticeUI:noticeList.length>0&&(0,react.createElement)(list,{className:"components-with-notices-ui",notices:noticeList,onRemove:noticeOperations.removeNotice})};return isForwardRef?(0,react.createElement)(OriginalComponent,(0,esm_extends.Z)({},propsOut,{ref})):(0,react.createElement)(OriginalComponent,propsOut)}let isForwardRef;const{render}=OriginalComponent;return"function"==typeof render?(isForwardRef=!0,(0,react.forwardRef)(Component)):Component}));var use_select=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/use-select/index.js");const ASPECT_RATIOS=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}];var dedupe=__webpack_require__("../../../node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/dedupe.js"),dedupe_default=__webpack_require__.n(dedupe),memize=__webpack_require__("../../../node_modules/.pnpm/memize@1.1.0/node_modules/memize/index.js"),memize_default=__webpack_require__.n(memize),serialize=__webpack_require__("../../../node_modules/.pnpm/@wordpress+element@4.0.4/node_modules/@wordpress/element/build-module/serialize.js");const{name:DEFAULT_EMBED_BLOCK}={apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},findMoreSuitableBlock=url=>{var _getBlockVariations2;return null===(_getBlockVariations2=(0,build_module.Nr)(DEFAULT_EMBED_BLOCK))||void 0===_getBlockVariations2?void 0:_getBlockVariations2.find((_ref2=>{let{patterns}=_ref2;return function(url){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((pattern=>url.match(pattern)))}(url,patterns)}))},isFromWordPress=html=>html&&html.includes('class="wp-embedded-content"'),createUpgradedEmbedBlock=function(props){var _getBlockVariations3;let attributesFromPreview=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{preview,attributes={}}=props,{url,providerNameSlug,type,...restAttributes}=attributes;if(!url||!(0,build_module.ck)(DEFAULT_EMBED_BLOCK))return;const matchedBlock=findMoreSuitableBlock(url),isCurrentBlockWP="wordpress"===providerNameSlug||"wp-embed"===type,shouldCreateNewBlock=!isCurrentBlockWP&&matchedBlock&&(matchedBlock.attributes.providerNameSlug!==providerNameSlug||!providerNameSlug);if(shouldCreateNewBlock)return(0,build_module.j4)(DEFAULT_EMBED_BLOCK,{url,...restAttributes,...matchedBlock.attributes});const wpVariation=null===(_getBlockVariations3=(0,build_module.Nr)(DEFAULT_EMBED_BLOCK))||void 0===_getBlockVariations3?void 0:_getBlockVariations3.find((_ref3=>{let{name}=_ref3;return"wordpress"===name}));return wpVariation&&preview&&isFromWordPress(preview.html)&&!isCurrentBlockWP?(0,build_module.j4)(DEFAULT_EMBED_BLOCK,{url,...wpVariation.attributes,...attributesFromPreview}):void 0},removeAspectRatioClasses=existingClassNames=>{if(!existingClassNames)return existingClassNames;const aspectRatioClassNames=ASPECT_RATIOS.reduce(((accumulator,_ref4)=>{let{className}=_ref4;return accumulator[className]=!1,accumulator}),{"wp-has-aspect-ratio":!1});return dedupe_default()(existingClassNames,aspectRatioClassNames)};function getClassNames(html,existingClassNames){let allowResponsive=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!allowResponsive)return removeAspectRatioClasses(existingClassNames);const previewDocument=document.implementation.createHTMLDocument("");previewDocument.body.innerHTML=html;const iframe=previewDocument.body.querySelector("iframe");if(iframe&&iframe.height&&iframe.width){const aspectRatio=(iframe.width/iframe.height).toFixed(2);for(let ratioIndex=0;ratioIndex=potentialRatio.ratio){return aspectRatio-potentialRatio.ratio>.1?removeAspectRatioClasses(existingClassNames):dedupe_default()(removeAspectRatioClasses(existingClassNames),potentialRatio.className,"wp-has-aspect-ratio")}}}return existingClassNames}const getAttributesFromPreview=memize_default()((function(preview,title,currentClassNames,isResponsive){let allowResponsive=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!preview)return{};const attributes={};let{type="rich"}=preview;const{html,provider_name:providerName}=preview,providerNameSlug=(0,lodash.kebabCase)((providerName||title).toLowerCase());return isFromWordPress(html)&&(type="wp-embed"),(html||"photo"===type)&&(attributes.type=type,attributes.providerNameSlug=providerNameSlug),attributes.className=getClassNames(html,currentClassNames,isResponsive&&allowResponsive),attributes})),ALLOWED_MEDIA_TYPES=["audio"];const edit=with_notices((function AudioEdit(_ref){let{attributes,noticeOperations,setAttributes,onReplace,isSelected,noticeUI,insertBlocksAfter}=_ref;const{id,autoplay,caption,loop,preload,src}=attributes,blockProps=(0,block_editor_build_module.Wo)(),mediaUpload=(0,use_select.Z)((select=>{const{getSettings}=select(block_editor_build_module.h);return getSettings().mediaUpload}),[]);function toggleAttribute(attribute){return newValue=>{setAttributes({[attribute]:newValue})}}function onSelectURL(newSrc){if(newSrc!==src){const embedBlock=createUpgradedEmbedBlock({attributes:{url:newSrc}});if(void 0!==embedBlock)return void onReplace(embedBlock);setAttributes({src:newSrc,id:void 0})}}function onUploadError(message){noticeOperations.removeAllNotices(),noticeOperations.createErrorNotice(message)}function onSelectAudio(media){media&&media.url?setAttributes({src:media.url,id:media.id}):setAttributes({src:void 0,id:void 0})}return(0,react.useEffect)((()=>{if(!id&&(0,blob_build_module.Gu)(src)){const file=(0,blob_build_module.TR)(src);file&&mediaUpload({filesList:[file],onFileChange:_ref2=>{let[{id:mediaId,url}]=_ref2;setAttributes({id:mediaId,src:url})},onError:e=>{setAttributes({src:void 0,id:void 0}),noticeOperations.createErrorNotice(e)},allowedTypes:ALLOWED_MEDIA_TYPES})}}),[]),src?(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_editor_build_module.Zp,{group:"other"},(0,react.createElement)(block_editor_build_module.mS,{mediaId:id,mediaURL:src,allowedTypes:ALLOWED_MEDIA_TYPES,accept:"audio/*",onSelect:onSelectAudio,onSelectURL,onError:onUploadError})),(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Audio settings")},(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Autoplay"),onChange:toggleAttribute("autoplay"),checked:autoplay,help:function getAutoplayHelp(checked){return checked?(0,i18n_build_module.__)("Autoplay may cause usability issues for some users."):null}}),(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Loop"),onChange:toggleAttribute("loop"),checked:loop}),(0,react.createElement)(select_control.Z,{label:(0,i18n_build_module._x)("Preload","noun; Audio block parameter"),value:preload||"",onChange:value=>setAttributes({preload:value||void 0}),options:[{value:"",label:(0,i18n_build_module.__)("Browser default")},{value:"auto",label:(0,i18n_build_module.__)("Auto")},{value:"metadata",label:(0,i18n_build_module.__)("Metadata")},{value:"none",label:(0,i18n_build_module._x)("None",'"Preload" value')}]}))),(0,react.createElement)("figure",blockProps,(0,react.createElement)(disabled.Z,{isDisabled:!isSelected},(0,react.createElement)("audio",{controls:"controls",src})),(!block_editor_build_module.Ho.isEmpty(caption)||isSelected)&&(0,react.createElement)(block_editor_build_module.Ho,{tagName:"figcaption","aria-label":(0,i18n_build_module.__)("Audio caption text"),placeholder:(0,i18n_build_module.__)("Add caption"),value:caption,onChange:value=>setAttributes({caption:value}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>insertBlocksAfter((0,build_module.j4)("core/paragraph"))}))):(0,react.createElement)("div",blockProps,(0,react.createElement)(block_editor_build_module.om,{icon:(0,react.createElement)(block_editor_build_module.wD,{icon:library_audio}),onSelect:onSelectAudio,onSelectURL,accept:"audio/*",allowedTypes:ALLOWED_MEDIA_TYPES,value:attributes,notices:noticeUI,onError:onUploadError}))}));const transforms={from:[{type:"files",isMatch:files=>1===files.length&&0===files[0].type.indexOf("audio/"),transform(files){const file=files[0];return(0,build_module.j4)("core/audio",{src:(0,blob_build_module.ZR)(file)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:_ref=>{let{named:{src,mp3,m4a,ogg,wav,wma}}=_ref;return src||mp3||m4a||ogg||wav||wma}},loop:{type:"string",shortcode:_ref2=>{let{named:{loop}}=_ref2;return loop}},autoplay:{type:"string",shortcode:_ref3=>{let{named:{autoplay}}=_ref3;return autoplay}},preload:{type:"string",shortcode:_ref4=>{let{named:{preload}}=_ref4;return preload}}}}]},audio_transforms=transforms,audio_metadata={apiVersion:2,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:audio_name}=audio_metadata,audio_settings={icon:library_audio,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"}},transforms:audio_transforms,deprecated,edit,save:function save(_ref){let{attributes}=_ref;const{autoplay,caption,loop,preload,src}=attributes;return src&&(0,react.createElement)("figure",block_editor_build_module.Wo.save(),(0,react.createElement)("audio",{controls:"controls",src,autoPlay:autoplay,loop,preload}),!block_editor_build_module.Ho.isEmpty(caption)&&(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"figcaption",value:caption}))}};var library_button=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/button.js"),higher_order_compose=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/higher-order/compose.js");const cleanEmptyObject=object=>{if(!(0,lodash.isObject)(object)||Array.isArray(object))return object;const cleanedNestedObjects=(0,lodash.pickBy)((0,lodash.mapValues)(object,cleanEmptyObject),lodash.identity);return(0,lodash.isEmpty)(cleanedNestedObjects)?void 0:cleanedNestedObjects},clean_empty_object=cleanEmptyObject;function migrate_font_family(attributes){var _attributes$style,_attributes$style$typ;if(null==attributes||null===(_attributes$style=attributes.style)||void 0===_attributes$style||null===(_attributes$style$typ=_attributes$style.typography)||void 0===_attributes$style$typ||!_attributes$style$typ.fontFamily)return attributes;const atts=(0,lodash.cloneDeep)(attributes),fontFamily=atts.style.typography.fontFamily.split("|").pop();return delete atts.style.typography.fontFamily,atts.style=clean_empty_object(atts.style),{...atts,fontFamily}}const migrateBorderRadius=attributes=>{var _newAttributes$style,_newAttributes$style$,_newAttributes$style2;const{borderRadius,...newAttributes}=attributes,oldBorderRadius=[borderRadius,null===(_newAttributes$style=newAttributes.style)||void 0===_newAttributes$style||null===(_newAttributes$style$=_newAttributes$style.border)||void 0===_newAttributes$style$?void 0:_newAttributes$style$.radius].find((possibleBorderRadius=>"number"==typeof possibleBorderRadius&&0!==possibleBorderRadius));return oldBorderRadius?{...newAttributes,style:{...newAttributes.style,border:{...null===(_newAttributes$style2=newAttributes.style)||void 0===_newAttributes$style2?void 0:_newAttributes$style2.border,radius:`${oldBorderRadius}px`}}}:newAttributes},migrateCustomColorsAndGradients=attributes=>{if(!attributes.customTextColor&&!attributes.customBackgroundColor&&!attributes.customGradient)return attributes;const style={color:{}};return attributes.customTextColor&&(style.color.text=attributes.customTextColor),attributes.customBackgroundColor&&(style.color.background=attributes.customBackgroundColor),attributes.customGradient&&(style.color.gradient=attributes.customGradient),{...(0,lodash.omit)(attributes,["customTextColor","customBackgroundColor","customGradient"]),style}},oldColorsMigration=attributes=>migrateCustomColorsAndGradients((0,lodash.omit)({...attributes,customTextColor:attributes.textColor&&"#"===attributes.textColor[0]?attributes.textColor:void 0,customBackgroundColor:attributes.color&&"#"===attributes.color[0]?attributes.color:void 0},["color","textColor"])),blockAttributes={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},v10={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save(_ref){var _style$border,_style$typography;let{attributes,className}=_ref;const{fontSize,linkTarget,rel,style,text,title,url,width}=attributes;if(!text)return null;const borderProps=(0,block_editor_build_module.fG)(attributes),colorProps=(0,block_editor_build_module.Ti)(attributes),spacingProps=(0,block_editor_build_module.Ge)(attributes),buttonClasses=classnames_default()("wp-block-button__link",colorProps.className,borderProps.className,{"no-border-radius":0===(null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.radius)}),buttonStyle={...borderProps.style,...colorProps.style,...spacingProps.style},wrapperClasses=classnames_default()(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||(null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.fontSize)});return(0,react.createElement)("div",block_editor_build_module.Wo.save({className:wrapperClasses}),(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))},migrate:migrate_font_family,isEligible(_ref2){var _style$typography2;let{style}=_ref2;return null==style||null===(_style$typography2=style.typography)||void 0===_style$typography2?void 0:_style$typography2.fontFamily}},deprecated_deprecated=[v10,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible(_ref3){var _style$border2;let{style}=_ref3;return"number"==typeof(null==style||null===(_style$border2=style.border)||void 0===_style$border2?void 0:_style$border2.radius)},save(_ref4){var _style$border3,_style$border4,_style$typography3;let{attributes,className}=_ref4;const{fontSize,linkTarget,rel,style,text,title,url,width}=attributes;if(!text)return null;const borderRadius=null==style||null===(_style$border3=style.border)||void 0===_style$border3?void 0:_style$border3.radius,colorProps=(0,block_editor_build_module.Ti)(attributes),buttonClasses=classnames_default()("wp-block-button__link",colorProps.className,{"no-border-radius":0===(null==style||null===(_style$border4=style.border)||void 0===_style$border4?void 0:_style$border4.radius)}),buttonStyle={borderRadius:borderRadius||void 0,...colorProps.style},wrapperClasses=classnames_default()(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||(null==style||null===(_style$typography3=style.typography)||void 0===_style$typography3?void 0:_style$typography3.fontSize)});return(0,react.createElement)("div",block_editor_build_module.Wo.save({className:wrapperClasses}),(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))},migrate:(0,higher_order_compose.Z)(migrate_font_family,migrateBorderRadius)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save(_ref5){let{attributes,className}=_ref5;const{borderRadius,linkTarget,rel,text,title,url,width}=attributes,colorProps=(0,block_editor_build_module.Ti)(attributes),buttonClasses=classnames_default()("wp-block-button__link",colorProps.className,{"no-border-radius":0===borderRadius}),buttonStyle={borderRadius:borderRadius?borderRadius+"px":void 0,...colorProps.style},wrapperClasses=classnames_default()(className,{[`has-custom-width wp-block-button__width-${width}`]:width});return(0,react.createElement)("div",block_editor_build_module.Wo.save({className:wrapperClasses}),(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))},migrate:(0,higher_order_compose.Z)(migrate_font_family,migrateBorderRadius)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save(_ref6){let{attributes,className}=_ref6;const{borderRadius,linkTarget,rel,text,title,url,width}=attributes,colorProps=(0,block_editor_build_module.Ti)(attributes),buttonClasses=classnames_default()("wp-block-button__link",colorProps.className,{"no-border-radius":0===borderRadius}),buttonStyle={borderRadius:borderRadius?borderRadius+"px":void 0,...colorProps.style},wrapperClasses=classnames_default()(className,{[`has-custom-width wp-block-button__width-${width}`]:width});return(0,react.createElement)("div",block_editor_build_module.Wo.save({className:wrapperClasses}),(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))},migrate:(0,higher_order_compose.Z)(migrate_font_family,migrateBorderRadius)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save(_ref7){let{attributes}=_ref7;const{borderRadius,linkTarget,rel,text,title,url}=attributes,buttonClasses=classnames_default()("wp-block-button__link",{"no-border-radius":0===borderRadius}),buttonStyle={borderRadius:borderRadius?borderRadius+"px":void 0};return(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel})},migrate:migrateBorderRadius},{supports:{align:!0,alignWide:!1},attributes:{...blockAttributes,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:attributes=>!!attributes.customTextColor||!!attributes.customBackgroundColor||!!attributes.customGradient,migrate:(0,higher_order_compose.Z)(migrateBorderRadius,migrateCustomColorsAndGradients),save(_ref8){let{attributes}=_ref8;const{backgroundColor,borderRadius,customBackgroundColor,customTextColor,customGradient,linkTarget,gradient,rel,text,textColor,title,url}=attributes,textClass=(0,block_editor_build_module.Gd)("color",textColor),backgroundClass=!customGradient&&(0,block_editor_build_module.Gd)("background-color",backgroundColor),gradientClass=(0,block_editor_build_module.$R)(gradient),buttonClasses=classnames_default()("wp-block-button__link",{"has-text-color":textColor||customTextColor,[textClass]:textClass,"has-background":backgroundColor||customBackgroundColor||customGradient||gradient,[backgroundClass]:backgroundClass,"no-border-radius":0===borderRadius,[gradientClass]:gradientClass}),buttonStyle={background:customGradient||void 0,backgroundColor:backgroundClass||customGradient||gradient?void 0:customBackgroundColor,color:textClass?void 0:customTextColor,borderRadius:borderRadius?borderRadius+"px":void 0};return(0,react.createElement)("div",null,(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))}},{attributes:{...blockAttributes,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:attribute=>attribute.className&&attribute.className.includes("is-style-squared"),migrate(attributes){let newClassName=attributes.className;return newClassName&&(newClassName=newClassName.replace(/is-style-squared[\s]?/,"").trim()),migrateBorderRadius(migrateCustomColorsAndGradients({...attributes,className:newClassName||void 0,borderRadius:0}))},save(_ref9){let{attributes}=_ref9;const{backgroundColor,customBackgroundColor,customTextColor,linkTarget,rel,text,textColor,title,url}=attributes,textClass=(0,block_editor_build_module.Gd)("color",textColor),backgroundClass=(0,block_editor_build_module.Gd)("background-color",backgroundColor),buttonClasses=classnames_default()("wp-block-button__link",{"has-text-color":textColor||customTextColor,[textClass]:textClass,"has-background":backgroundColor||customBackgroundColor,[backgroundClass]:backgroundClass}),buttonStyle={backgroundColor:backgroundClass?void 0:customBackgroundColor,color:textClass?void 0:customTextColor};return(0,react.createElement)("div",null,(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))}},{attributes:{...blockAttributes,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:oldColorsMigration,save(_ref10){let{attributes}=_ref10;const{url,text,title,backgroundColor,textColor,customBackgroundColor,customTextColor}=attributes,textClass=(0,block_editor_build_module.Gd)("color",textColor),backgroundClass=(0,block_editor_build_module.Gd)("background-color",backgroundColor),buttonClasses=classnames_default()("wp-block-button__link",{"has-text-color":textColor||customTextColor,[textClass]:textClass,"has-background":backgroundColor||customBackgroundColor,[backgroundClass]:backgroundClass}),buttonStyle={backgroundColor:backgroundClass?void 0:customBackgroundColor,color:textClass?void 0:customTextColor};return(0,react.createElement)("div",null,(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text}))}},{attributes:{...blockAttributes,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(_ref11){let{attributes}=_ref11;const{url,text,title,align,color,textColor}=attributes,buttonStyle={backgroundColor:color,color:textColor};return(0,react.createElement)("div",{className:`align${align}`},(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:"wp-block-button__link",href:url,title,style:buttonStyle,value:text}))},migrate:oldColorsMigration},{attributes:{...blockAttributes,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(_ref12){let{attributes}=_ref12;const{url,text,title,align,color,textColor}=attributes;return(0,react.createElement)("div",{className:`align${align}`,style:{backgroundColor:color}},(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",href:url,title,style:{color:textColor},value:text}))},migrate:oldColorsMigration}],button_deprecated=deprecated_deprecated;var button_group=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/button-group/index.js"),build_module_button=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/button/index.js"),toolbar_button=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-button/index.js"),popover=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/popover/index.js"),text_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/text-control/index.js"),keycodes_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+keycodes@3.2.4/node_modules/@wordpress/keycodes/build-module/index.js"),library_link=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/link.js"),link_off=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/link-off.js");function WidthPanel(_ref){let{selectedWidth,setAttributes}=_ref;return(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Width settings")},(0,react.createElement)(button_group.Z,{"aria-label":(0,i18n_build_module.__)("Button width")},[25,50,75,100].map((widthValue=>(0,react.createElement)(build_module_button.Z,{key:widthValue,isSmall:!0,variant:widthValue===selectedWidth?"primary":void 0,onClick:()=>function handleChange(newWidth){setAttributes({width:selectedWidth===newWidth?void 0:newWidth})}(widthValue)},widthValue,"%")))))}const button_edit=function ButtonEdit(props){var _style$border;const{attributes,setAttributes,className,isSelected,onReplace,mergeBlocks}=props,{linkTarget,placeholder,rel,style,text,url,width}=attributes,onSetLinkRel=(0,react.useCallback)((value=>{setAttributes({rel:value})}),[setAttributes]),borderProps=(0,block_editor_build_module.P1)(attributes),colorProps=(0,block_editor_build_module.Yj)(attributes),spacingProps=(0,block_editor_build_module.Ge)(attributes),ref=(0,react.useRef)(),richTextRef=(0,react.useRef)(),blockProps=(0,block_editor_build_module.Wo)({ref,onKeyDown:function onKeyDown(event){if(keycodes_build_module.vd.primary(event,"k"))startEditing(event);else if(keycodes_build_module.vd.primaryShift(event,"k")){var _richTextRef$current;unlink(),null===(_richTextRef$current=richTextRef.current)||void 0===_richTextRef$current||_richTextRef$current.focus()}}}),[isEditingURL,setIsEditingURL]=(0,react.useState)(!1),isURLSet=!!url,opensInNewTab="_blank"===linkTarget;function startEditing(event){event.preventDefault(),setIsEditingURL(!0)}function unlink(){setAttributes({url:void 0,linkTarget:void 0,rel:void 0}),setIsEditingURL(!1)}return(0,react.useEffect)((()=>{isSelected||setIsEditingURL(!1)}),[isSelected]),(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",(0,esm_extends.Z)({},blockProps,{className:classnames_default()(blockProps.className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":blockProps.style.fontSize})}),(0,react.createElement)(block_editor_build_module.Ho,{ref:richTextRef,"aria-label":(0,i18n_build_module.__)("Button text"),placeholder:placeholder||(0,i18n_build_module.__)("Add text…"),value:text,onChange:value=>function setButtonText(newText){setAttributes({text:newText.replace(/<\/?a[^>]*>/g,"")})}(value),withoutInteractiveFormatting:!0,className:classnames_default()(className,"wp-block-button__link",colorProps.className,borderProps.className,{"no-border-radius":0===(null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.radius)}),style:{...borderProps.style,...colorProps.style,...spacingProps.style},onSplit:value=>(0,build_module.j4)("core/button",{...attributes,text:value}),onReplace,onMerge:mergeBlocks,identifier:"text"})),(0,react.createElement)(block_editor_build_module.Zp,{group:"block"},!isURLSet&&(0,react.createElement)(toolbar_button.Z,{name:"link",icon:library_link.Z,title:(0,i18n_build_module.__)("Link"),shortcut:keycodes_build_module.E_.primary("k"),onClick:startEditing}),isURLSet&&(0,react.createElement)(toolbar_button.Z,{name:"link",icon:link_off.Z,title:(0,i18n_build_module.__)("Unlink"),shortcut:keycodes_build_module.E_.primaryShift("k"),onClick:unlink,isActive:!0})),isSelected&&(isEditingURL||isURLSet)&&(0,react.createElement)(popover.Z,{position:"bottom center",onClose:()=>{var _richTextRef$current2;setIsEditingURL(!1),null===(_richTextRef$current2=richTextRef.current)||void 0===_richTextRef$current2||_richTextRef$current2.focus()},anchorRef:null==ref?void 0:ref.current,focusOnMount:!!isEditingURL&&"firstElement"},(0,react.createElement)(block_editor_build_module.Ml,{className:"wp-block-navigation-link__inline-link-input",value:{url,opensInNewTab},onChange:_ref2=>{let{url:newURL="",opensInNewTab:newOpensInNewTab}=_ref2;setAttributes({url:newURL}),opensInNewTab!==newOpensInNewTab&&function onToggleOpenInNewTab(value){const newLinkTarget=value?"_blank":void 0;let updatedRel=rel;newLinkTarget&&!rel?updatedRel="noreferrer noopener":newLinkTarget||"noreferrer noopener"!==rel||(updatedRel=void 0),setAttributes({linkTarget:newLinkTarget,rel:updatedRel})}(newOpensInNewTab)},onRemove:()=>{var _richTextRef$current3;unlink(),null===(_richTextRef$current3=richTextRef.current)||void 0===_richTextRef$current3||_richTextRef$current3.focus()},forceIsEditingLink:isEditingURL})),(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(WidthPanel,{selectedWidth:width,setAttributes})),(0,react.createElement)(block_editor_build_module.Af,{__experimentalGroup:"advanced"},(0,react.createElement)(text_control.Z,{label:(0,i18n_build_module.__)("Link rel"),value:rel||"",onChange:onSetLinkRel})))};const button_metadata={apiVersion:2,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:button_name}=button_metadata,button_settings={icon:library_button.Z,example:{attributes:{className:"is-style-fill",text:(0,i18n_build_module.__)("Call to Action")}},edit:button_edit,save:function save_save(_ref){var _style$border,_style$typography;let{attributes,className}=_ref;const{fontSize,linkTarget,rel,style,text,title,url,width}=attributes;if(!text)return null;const borderProps=(0,block_editor_build_module.fG)(attributes),colorProps=(0,block_editor_build_module.Ti)(attributes),spacingProps=(0,block_editor_build_module.Ge)(attributes),buttonClasses=classnames_default()("wp-block-button__link",colorProps.className,borderProps.className,{"no-border-radius":0===(null==style||null===(_style$border=style.border)||void 0===_style$border?void 0:_style$border.radius)}),buttonStyle={...borderProps.style,...colorProps.style,...spacingProps.style},wrapperClasses=classnames_default()(className,{[`has-custom-width wp-block-button__width-${width}`]:width,"has-custom-font-size":fontSize||(null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.fontSize)});return(0,react.createElement)("div",block_editor_build_module.Wo.save({className:wrapperClasses}),(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"a",className:buttonClasses,href:url,title,style:buttonStyle,value:text,target:linkTarget,rel}))},deprecated:button_deprecated,merge:(a,_ref)=>{let{text=""}=_ref;return{...a,text:(a.text||"")+text}}},library_buttons=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"})),migrateWithLayout=attributes=>{if(attributes.layout)return attributes;const{contentJustification,orientation,...updatedAttributes}=attributes;return(contentJustification||orientation)&&Object.assign(updatedAttributes,{layout:{type:"flex",...contentJustification&&{justifyContent:contentJustification},...orientation&&{orientation}}}),updatedAttributes},buttons_deprecated_deprecated=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:_ref=>{let{contentJustification,orientation}=_ref;return!!contentJustification||!!orientation},migrate:migrateWithLayout,save(_ref2){let{attributes:{contentJustification,orientation}}=_ref2;return(0,react.createElement)("div",block_editor_build_module.Wo.save({className:classnames_default()({[`is-content-justification-${contentJustification}`]:contentJustification,"is-vertical":"vertical"===orientation})}),(0,react.createElement)(block_editor_build_module.gv.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,react.createElement)("div",null,(0,react.createElement)(block_editor_build_module.gv.Content,null)),isEligible(_ref3){let{align}=_ref3;return align&&["center","left","right"].includes(align)},migrate:attributes=>migrateWithLayout({...attributes,align:void 0,contentJustification:attributes.align})}],buttons_deprecated=buttons_deprecated_deprecated;var rich_text_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+rich-text@5.0.6_react@17.0.2/node_modules/@wordpress/rich-text/build-module/index.js");const{name:transforms_name}={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},transforms_transforms={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:buttons=>(0,build_module.j4)(transforms_name,{},buttons.map((attributes=>(0,build_module.j4)("core/button",attributes))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:buttons=>(0,build_module.j4)(transforms_name,{},buttons.map((attributes=>{const element=(0,rich_text_build_module._b)(document,attributes.content),text=element.innerText||"",link=element.querySelector("a"),url=null==link?void 0:link.getAttribute("href");return(0,build_module.j4)("core/button",{text,url})}))),isMatch:paragraphs=>paragraphs.every((attributes=>{const element=(0,rich_text_build_module._b)(document,attributes.content),text=element.innerText||"",links=element.querySelectorAll("a");return text.length<=30&&links.length<=1}))}]},buttons_transforms=transforms_transforms,ALLOWED_BLOCKS=[button_name];const buttons_edit=function ButtonsEdit(_ref){let{attributes:{layout={}}}=_ref;const blockProps=(0,block_editor_build_module.Wo)(),preferredStyle=(0,use_select.Z)((select=>{var _preferredStyleVariat;const preferredStyleVariations=select(block_editor_build_module.h).getSettings().__experimentalPreferredStyleVariations;return null==preferredStyleVariations||null===(_preferredStyleVariat=preferredStyleVariations.value)||void 0===_preferredStyleVariat?void 0:_preferredStyleVariat[button_name]}),[]),innerBlocksProps=(0,block_editor_build_module.fh)(blockProps,{allowedBlocks:ALLOWED_BLOCKS,template:[[button_name,{className:preferredStyle&&`is-style-${preferredStyle}`}]],__experimentalLayout:layout,templateInsertUpdatesSelection:!0});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)("div",innerBlocksProps))};const buttons_metadata={apiVersion:2,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:buttons_name}=buttons_metadata,buttons_settings={icon:library_buttons,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,i18n_build_module.__)("Find out more")}},{name:"core/button",attributes:{text:(0,i18n_build_module.__)("Contact us")}}]},deprecated:buttons_deprecated,transforms:buttons_transforms,edit:buttons_edit,save:function buttons_save_save(){const innerBlocksProps=block_editor_build_module.fh.save(block_editor_build_module.Wo.save());return(0,react.createElement)("div",innerBlocksProps)}},library_calendar=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));var moment=__webpack_require__("../../../node_modules/.pnpm/moment@2.29.1/node_modules/moment/moment.js"),moment_default=__webpack_require__.n(moment),data_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/index.js"),redux_store=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/redux-store/index.js"),turbo_combine_reducers=__webpack_require__("../../../node_modules/.pnpm/turbo-combine-reducers@1.0.2/node_modules/turbo-combine-reducers/index.js"),turbo_combine_reducers_default=__webpack_require__.n(turbo_combine_reducers),is_shallow_equal_build_module=__webpack_require__("../../../node_modules/.pnpm/@wordpress+is-shallow-equal@4.2.1/node_modules/@wordpress/is-shallow-equal/build-module/index.js");const if_matching_action=isMatch=>reducer=>(state,action)=>void 0===state||isMatch(action)?reducer(state,action):state,replace_action=replacer=>reducer=>(state,action)=>reducer(state,replacer(action));function conservativeMapItem(item,nextItem){if(!item)return nextItem;let hasChanges=!1;const result={};for(const key in nextItem)(0,lodash.isEqual)(item[key],nextItem[key])?result[key]=item[key]:(hasChanges=!0,result[key]=nextItem[key]);if(!hasChanges)return item;for(const key in item)result.hasOwnProperty(key)||(result[key]=item[key]);return result}const on_sub_key=actionProperty=>reducer=>function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;const key=action[actionProperty];if(void 0===key)return state;const nextKeyState=reducer(state[key],action);return nextKeyState===state[key]?state:{...state,[key]:nextKeyState}};function receiveItems(items,edits){return{type:"RECEIVE_ITEMS",items:(0,lodash.castArray)(items),persistedEdits:edits}}function removeItems(kind,name,records){let invalidateCache=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:(0,lodash.castArray)(records),kind,name,invalidateCache}}function receiveQueriedItems(items){let query=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},edits=arguments.length>2?arguments[2]:void 0;return{...receiveItems(items,edits),query}}let maxItems=null;async function defaultProcessor(requests){if(null===maxItems){const preflightResponse=await(0,api_fetch_build_module.Z)({path:"/batch/v1",method:"OPTIONS"});maxItems=preflightResponse.endpoints[0].args.requests.maxItems}const results=[];for(const batchRequests of(0,lodash.chunk)(requests,maxItems)){const batchResponse=await(0,api_fetch_build_module.Z)({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:batchRequests.map((request=>({path:request.path,body:request.data,method:request.method,headers:request.headers})))}});let batchResults;batchResults=batchResponse.failed?batchResponse.responses.map((response=>({error:null==response?void 0:response.body}))):batchResponse.responses.map((response=>{const result={};return response.status>=200&&response.status<300?result.output=response.body:result.error=response.body,result})),results.push(...batchResults)}return results}class ObservableSet{constructor(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];this.set=new Set(...args),this.subscribers=new Set}get size(){return this.set.size}add(){return this.set.add(...arguments),this.subscribers.forEach((subscriber=>subscriber())),this}delete(){const isSuccess=this.set.delete(...arguments);return this.subscribers.forEach((subscriber=>subscriber())),isSuccess}subscribe(subscriber){return this.subscribers.add(subscriber),()=>{this.subscribers.delete(subscriber)}}}function receiveUserQuery(queryID,users){return{type:"RECEIVE_USER_QUERY",users:(0,lodash.castArray)(users),queryID}}function receiveCurrentUser(currentUser){return{type:"RECEIVE_CURRENT_USER",currentUser}}function addEntities(entities){return{type:"ADD_ENTITIES",entities}}function receiveEntityRecords(kind,name,records,query){let action,invalidateCache=arguments.length>4&&void 0!==arguments[4]&&arguments[4],edits=arguments.length>5?arguments[5]:void 0;return"postType"===kind&&(records=(0,lodash.castArray)(records).map((record=>"auto-draft"===record.status?{...record,title:""}:record))),action=query?receiveQueriedItems(records,query,edits):receiveItems(records,edits),{...action,kind,name,invalidateCache}}function receiveCurrentTheme(currentTheme){return{type:"RECEIVE_CURRENT_THEME",currentTheme}}function __experimentalReceiveCurrentGlobalStylesId(currentGlobalStylesId){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:currentGlobalStylesId}}function __experimentalReceiveThemeBaseGlobalStyles(stylesheet,globalStyles){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet,globalStyles}}function receiveThemeSupports(){return(0,deprecated_build_module.Z)("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function receiveEmbedPreview(url,preview){return{type:"RECEIVE_EMBED_PREVIEW",url,preview}}const deleteEntityRecord=function(kind,name,recordId,query){let{__unstableFetch=api_fetch_build_module.Z}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return async _ref=>{let{dispatch}=_ref;const entities=await dispatch(getKindEntities(kind)),entity=(0,lodash.find)(entities,{kind,name});let error,deletedRecord=!1;if(!entity||null!=entity&&entity.__experimentalNoFetch)return;const lock=await dispatch.__unstableAcquireStoreLock("core",["entities","data",kind,name,recordId],{exclusive:!0});try{dispatch({type:"DELETE_ENTITY_RECORD_START",kind,name,recordId});try{let path=`${entity.baseURL}/${recordId}`;query&&(path=(0,add_query_args.f)(path,query)),deletedRecord=await __unstableFetch({path,method:"DELETE"}),await dispatch(removeItems(kind,name,recordId,!0))}catch(_error){error=_error}return dispatch({type:"DELETE_ENTITY_RECORD_FINISH",kind,name,recordId,error}),deletedRecord}finally{dispatch.__unstableReleaseStoreLock(lock)}}},editEntityRecord=function(kind,name,recordId,edits){let options=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return _ref2=>{let{select,dispatch}=_ref2;const entity=select.getEntity(kind,name);if(!entity)throw new Error(`The entity being edited (${kind}, ${name}) does not have a loaded config.`);const{transientEdits={},mergedEdits={}}=entity,record=select.getRawEntityRecord(kind,name,recordId),editedRecord=select.getEditedEntityRecord(kind,name,recordId),edit={kind,name,recordId,edits:Object.keys(edits).reduce(((acc,key)=>{const recordValue=record[key],editedRecordValue=editedRecord[key],value=mergedEdits[key]?{...editedRecordValue,...edits[key]}:edits[key];return acc[key]=(0,lodash.isEqual)(recordValue,value)?void 0:value,acc}),{}),transientEdits};dispatch({type:"EDIT_ENTITY_RECORD",...edit,meta:{undo:!options.undoIgnore&&{...edit,edits:Object.keys(edits).reduce(((acc,key)=>(acc[key]=editedRecord[key],acc)),{})}}})}},undo=()=>_ref3=>{let{select,dispatch}=_ref3;const undoEdit=select.getUndoEdit();undoEdit&&dispatch({type:"EDIT_ENTITY_RECORD",...undoEdit,meta:{isUndo:!0}})},redo=()=>_ref4=>{let{select,dispatch}=_ref4;const redoEdit=select.getRedoEdit();redoEdit&&dispatch({type:"EDIT_ENTITY_RECORD",...redoEdit,meta:{isRedo:!0}})};function __unstableCreateUndoLevel(){return{type:"CREATE_UNDO_LEVEL"}}const saveEntityRecord=function(kind,name,record){let{isAutosave=!1,__unstableFetch=api_fetch_build_module.Z}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return async _ref5=>{let{select,resolveSelect,dispatch}=_ref5;const entities=await dispatch(getKindEntities(kind)),entity=(0,lodash.find)(entities,{kind,name});if(!entity||null!=entity&&entity.__experimentalNoFetch)return;const entityIdKey=entity.key||DEFAULT_ENTITY_KEY,recordId=record[entityIdKey],lock=await dispatch.__unstableAcquireStoreLock("core",["entities","data",kind,name,recordId||(0,v4.Z)()],{exclusive:!0});try{for(const[key,value]of Object.entries(record))if("function"==typeof value){const evaluatedValue=value(select.getEditedEntityRecord(kind,name,recordId));dispatch.editEntityRecord(kind,name,recordId,{[key]:evaluatedValue},{undoIgnore:!0}),record[key]=evaluatedValue}let updatedRecord,error;dispatch({type:"SAVE_ENTITY_RECORD_START",kind,name,recordId,isAutosave});try{const path=`${entity.baseURL}${recordId?"/"+recordId:""}`,persistedRecord=select.getRawEntityRecord(kind,name,recordId);if(isAutosave){const currentUser=select.getCurrentUser(),currentUserId=currentUser?currentUser.id:void 0,autosavePost=resolveSelect.getAutosave(persistedRecord.type,persistedRecord.id,currentUserId);let data={...persistedRecord,...autosavePost,...record};if(data=Object.keys(data).reduce(((acc,key)=>(["title","excerpt","content"].includes(key)&&(acc[key]=data[key]),acc)),{status:"auto-draft"===data.status?"draft":data.status}),updatedRecord=await __unstableFetch({path:`${path}/autosaves`,method:"POST",data}),persistedRecord.id===updatedRecord.id){let newRecord={...persistedRecord,...data,...updatedRecord};newRecord=Object.keys(newRecord).reduce(((acc,key)=>(["title","excerpt","content"].includes(key)?acc[key]=newRecord[key]:acc[key]="status"===key?"auto-draft"===persistedRecord.status&&"draft"===newRecord.status?newRecord.status:persistedRecord.status:persistedRecord[key],acc)),{}),dispatch.receiveEntityRecords(kind,name,newRecord,void 0,!0)}else dispatch.receiveAutosaves(persistedRecord.id,updatedRecord)}else{let edits=record;entity.__unstablePrePersist&&(edits={...edits,...entity.__unstablePrePersist(persistedRecord,edits)}),updatedRecord=await __unstableFetch({path,method:recordId?"PUT":"POST",data:edits}),dispatch.receiveEntityRecords(kind,name,updatedRecord,void 0,!0,edits)}}catch(_error){error=_error}return dispatch({type:"SAVE_ENTITY_RECORD_FINISH",kind,name,recordId,error,isAutosave}),updatedRecord}finally{dispatch.__unstableReleaseStoreLock(lock)}}},__experimentalBatch=requests=>async _ref6=>{let{dispatch}=_ref6;const batch=function createBatch(){let processor=arguments.length>0&&void 0!==arguments[0]?arguments[0]:defaultProcessor,lastId=0,queue=[];const pending=new ObservableSet;return{add(inputOrThunk){const id=++lastId;pending.add(id);const add=input=>new Promise(((resolve,reject)=>{queue.push({input,resolve,reject}),pending.delete(id)}));return(0,lodash.isFunction)(inputOrThunk)?Promise.resolve(inputOrThunk(add)).finally((()=>{pending.delete(id)})):add(inputOrThunk)},async run(){let results;pending.size&&await new Promise((resolve=>{const unsubscribe=pending.subscribe((()=>{pending.size||(unsubscribe(),resolve())}))}));try{if(results=await processor(queue.map((_ref=>{let{input}=_ref;return input}))),results.length!==queue.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(error){for(const{reject}of queue)reject(error);throw error}let isSuccess=!0;for(const[result,{resolve,reject}]of(0,lodash.zip)(results,queue)){var _result$output;null!=result&&result.error?(reject(result.error),isSuccess=!1):resolve(null!==(_result$output=null==result?void 0:result.output)&&void 0!==_result$output?_result$output:result)}return queue=[],isSuccess}}}(),api={saveEntityRecord:(kind,name,record,options)=>batch.add((add=>dispatch.saveEntityRecord(kind,name,record,{...options,__unstableFetch:add}))),saveEditedEntityRecord:(kind,name,recordId,options)=>batch.add((add=>dispatch.saveEditedEntityRecord(kind,name,recordId,{...options,__unstableFetch:add}))),deleteEntityRecord:(kind,name,recordId,query,options)=>batch.add((add=>dispatch.deleteEntityRecord(kind,name,recordId,query,{...options,__unstableFetch:add})))},resultPromises=requests.map((request=>request(api))),[,...results]=await Promise.all([batch.run(),...resultPromises]);return results},saveEditedEntityRecord=(kind,name,recordId,options)=>async _ref7=>{let{select,dispatch}=_ref7;if(!select.hasEditsForEntityRecord(kind,name,recordId))return;const entities=await dispatch(getKindEntities(kind)),entity=(0,lodash.find)(entities,{kind,name});if(!entity)return;const entityIdKey=entity.key||DEFAULT_ENTITY_KEY,edits=select.getEntityRecordNonTransientEdits(kind,name,recordId),record={[entityIdKey]:recordId,...edits};return await dispatch.saveEntityRecord(kind,name,record,options)},__experimentalSaveSpecifiedEntityEdits=(kind,name,recordId,itemsToSave,options)=>async _ref8=>{let{select,dispatch}=_ref8;if(!select.hasEditsForEntityRecord(kind,name,recordId))return;const edits=select.getEntityRecordNonTransientEdits(kind,name,recordId),editsToSave={};for(const edit in edits)itemsToSave.some((item=>item===edit))&&(editsToSave[edit]=edits[edit]);return await dispatch.saveEntityRecord(kind,name,editsToSave,options)};function receiveUploadPermissions(hasUploadPermissions){return{type:"RECEIVE_USER_PERMISSION",key:"create/media",isAllowed:hasUploadPermissions}}function receiveUserPermission(key,isAllowed){return{type:"RECEIVE_USER_PERMISSION",key,isAllowed}}function receiveAutosaves(postId,autosaves){return{type:"RECEIVE_AUTOSAVES",postId,autosaves:(0,lodash.castArray)(autosaves)}}const DEFAULT_ENTITY_KEY="id",POST_RAW_ATTRIBUTES=["title","excerpt","content"],defaultEntities=[{label:(0,i18n_build_module.__)("Base"),name:"__unstableBase",kind:"root",baseURL:"/"},{label:(0,i18n_build_module.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:record=>(0,lodash.get)(record,["title"],(0,i18n_build_module.__)("Site Title"))},{label:(0,i18n_build_module.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"},rawAttributes:POST_RAW_ATTRIBUTES},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,i18n_build_module.__)("Media")},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,i18n_build_module.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",plural:"sidebars",transientEdits:{blocks:!0},label:(0,i18n_build_module.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,i18n_build_module.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,i18n_build_module.__)("Widget types")},{label:(0,i18n_build_module.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:(0,i18n_build_module.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,i18n_build_module.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,i18n_build_module.__)("Menu Item"),rawAttributes:["title","content"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,i18n_build_module.__)("Menu Location"),key:"name"},{name:"navigationArea",kind:"root",baseURL:"/wp/v2/block-navigation-areas",baseURLParams:{context:"edit"},plural:"navigationAreas",label:(0,i18n_build_module.__)("Navigation Area"),key:"name",getTitle:record=>null==record?void 0:record.description},{label:(0,i18n_build_module.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:record=>{var _record$title;return(null==record||null===(_record$title=record.title)||void 0===_record$title?void 0:_record$title.rendered)||(null==record?void 0:record.title)}},{label:(0,i18n_build_module.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:(0,i18n_build_module.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"}],kinds=[{name:"postType",loadEntities:async function loadPostTypeEntities(){const postTypes=await(0,api_fetch_build_module.Z)({path:"/wp/v2/types?context=edit"});return(0,lodash.map)(postTypes,((postType,name)=>{var _postType$rest_namesp;const isTemplate=["wp_template","wp_template_part"].includes(name);return{kind:"postType",baseURL:`/${null!==(_postType$rest_namesp=null==postType?void 0:postType.rest_namespace)&&void 0!==_postType$rest_namesp?_postType$rest_namesp:"wp/v2"}/${postType.rest_base}`,baseURLParams:{context:"edit"},name,label:postType.labels.singular_name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:POST_RAW_ATTRIBUTES,getTitle:record=>{var _record$title2;return(null==record||null===(_record$title2=record.title)||void 0===_record$title2?void 0:_record$title2.rendered)||(null==record?void 0:record.title)||(isTemplate?(0,lodash.startCase)(record.slug):String(record.id))},__unstablePrePersist:isTemplate?void 0:prePersistPostType,__unstable_rest_base:postType.rest_base}}))}},{name:"taxonomy",loadEntities:async function loadTaxonomyEntities(){const taxonomies=await(0,api_fetch_build_module.Z)({path:"/wp/v2/taxonomies?context=edit"});return(0,lodash.map)(taxonomies,((taxonomy,name)=>{var _taxonomy$rest_namesp;return{kind:"taxonomy",baseURL:`/${null!==(_taxonomy$rest_namesp=null==taxonomy?void 0:taxonomy.rest_namespace)&&void 0!==_taxonomy$rest_namesp?_taxonomy$rest_namesp:"wp/v2"}/${taxonomy.rest_base}`,baseURLParams:{context:"edit"},name,label:taxonomy.labels.singular_name}}))}}],prePersistPostType=(persistedRecord,edits)=>{const newEdits={};return"auto-draft"===(null==persistedRecord?void 0:persistedRecord.status)&&(edits.status||newEdits.status||(newEdits.status="draft"),edits.title&&"Auto Draft"!==edits.title||newEdits.title||null!=persistedRecord&&persistedRecord.title&&"Auto Draft"!==(null==persistedRecord?void 0:persistedRecord.title)||(newEdits.title="")),newEdits};const getMethodName=function(kind,name){let prefix=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"get",usePlural=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const entity=(0,lodash.find)(defaultEntities,{kind,name}),kindPrefix="root"===kind?"":(0,lodash.upperFirst)((0,lodash.camelCase)(kind)),nameSuffix=(0,lodash.upperFirst)((0,lodash.camelCase)(name))+(usePlural?"s":""),suffix=usePlural&&entity.plural?(0,lodash.upperFirst)((0,lodash.camelCase)(entity.plural)):nameSuffix;return`${prefix}${kindPrefix}${suffix}`},getKindEntities=kind=>async _ref=>{let{select,dispatch}=_ref,entities=select.getEntitiesByKind(kind);if(entities&&0!==entities.length)return entities;const kindConfig=(0,lodash.find)(kinds,{name:kind});return kindConfig?(entities=await kindConfig.loadEntities(),dispatch(addEntities(entities)),entities):[]};const get_normalized_comma_separable=function getNormalizedCommaSeparable(value){return"string"==typeof value?value.split(","):Array.isArray(value)?value:null};const get_query_parts=function withWeakMapCache(fn){const cache=new WeakMap;return key=>{let value;return cache.has(key)?value=cache.get(key):(value=fn(key),(0,lodash.isObjectLike)(key)&&cache.set(key,value)),value}}((function getQueryParts(query){const parts={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},keys=Object.keys(query).sort();for(let i=0;i=nextItemIdsStartIndex&&i"query"in action)),replace_action((action=>action.query?{...action,...get_query_parts(action.query)}:action)),on_sub_key("context"),on_sub_key("stableKey")])((function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,action=arguments.length>1?arguments[1]:void 0;const{type,page,perPage,key=DEFAULT_ENTITY_KEY}=action;return"RECEIVE_ITEMS"!==type?state:getMergedItemIds(state||[],(0,lodash.map)(action.items,key),page,perPage)})),reducer=turbo_combine_reducers_default()({items:function items(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_ITEMS":{const context=getContextFromAction(action),key=action.key||DEFAULT_ENTITY_KEY;return{...state,[context]:{...state[context],...action.items.reduce(((accumulator,value)=>{var _state$context;const itemId=value[key];return accumulator[itemId]=conservativeMapItem(null==state||null===(_state$context=state[context])||void 0===_state$context?void 0:_state$context[itemId],value),accumulator}),{})}}}case"REMOVE_ITEMS":return(0,lodash.mapValues)(state,(contextState=>(0,lodash.omit)(contextState,action.itemIds)))}return state},itemIsComplete:function itemIsComplete(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_ITEMS":{const context=getContextFromAction(action),{query,key=DEFAULT_ENTITY_KEY}=action,queryParts=query?get_query_parts(query):{},isCompleteQuery=!query||!Array.isArray(queryParts.fields);return{...state,[context]:{...state[context],...action.items.reduce(((result,item)=>{var _state$context2;const itemId=item[key];return result[itemId]=(null==state||null===(_state$context2=state[context])||void 0===_state$context2?void 0:_state$context2[itemId])||isCompleteQuery,result}),{})}}}case"REMOVE_ITEMS":return(0,lodash.mapValues)(state,(contextState=>(0,lodash.omit)(contextState,action.itemIds)))}return state},queries:function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_ITEMS":return receiveQueries(state,action);case"REMOVE_ITEMS":const removedItems=action.itemIds.reduce(((result,itemId)=>(result[itemId]=!0,result)),{});return(0,lodash.mapValues)(state,(contextQueries=>(0,lodash.mapValues)(contextQueries,(queryItems=>(0,lodash.filter)(queryItems,(queryId=>!removedItems[queryId]))))));default:return state}}});function entity(entityConfig){return(0,lodash.flowRight)([if_matching_action((action=>action.name&&action.kind&&action.name===entityConfig.name&&action.kind===entityConfig.kind)),replace_action((action=>({...action,key:entityConfig.key||DEFAULT_ENTITY_KEY})))])(turbo_combine_reducers_default()({queriedData:reducer,edits:function(){var _action$query$context,_action$query;let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"RECEIVE_ITEMS":if("default"!==(null!==(_action$query$context=null==action||null===(_action$query=action.query)||void 0===_action$query?void 0:_action$query.context)&&void 0!==_action$query$context?_action$query$context:"default"))return state;const nextState={...state};for(const record of action.items){const recordId=record[action.key],edits=nextState[recordId];if(!edits)continue;const nextEdits=Object.keys(edits).reduce(((acc,key)=>((0,lodash.isEqual)(edits[key],(0,lodash.get)(record[key],"raw",record[key]))||action.persistedEdits&&(0,lodash.isEqual)(edits[key],action.persistedEdits[key])||(acc[key]=edits[key]),acc)),{});Object.keys(nextEdits).length?nextState[recordId]=nextEdits:delete nextState[recordId]}return nextState;case"EDIT_ENTITY_RECORD":const nextEdits={...state[action.recordId],...action.edits};return Object.keys(nextEdits).forEach((key=>{void 0===nextEdits[key]&&delete nextEdits[key]})),{...state,[action.recordId]:nextEdits}}return state},saving:function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...state,[action.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===action.type,error:action.error,isAutosave:action.isAutosave}}}return state},deleting:function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...state,[action.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===action.type,error:action.error}}}return state}}))}function entitiesConfig(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:defaultEntities,action=arguments.length>1?arguments[1]:void 0;return"ADD_ENTITIES"===action.type?[...state,...action.entities]:state}const UNDO_INITIAL_STATE=[];let lastEditAction;UNDO_INITIAL_STATE.offset=0;const build_module_reducer=turbo_combine_reducers_default()({terms:function terms(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_TERMS"===action.type?{...state,[action.taxonomy]:action.terms}:state},users:function users(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_USER_QUERY"===action.type?{byId:{...state.byId,...(0,lodash.keyBy)(action.users,"id")},queries:{...state.queries,[action.queryID]:(0,lodash.map)(action.users,(user=>user.id))}}:state},currentTheme:function currentTheme(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CURRENT_THEME"===action.type?action.currentTheme.stylesheet:state},currentGlobalStylesId:function currentGlobalStylesId(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===action.type?action.id:state},currentUser:function currentUser(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CURRENT_USER"===action.type?action.currentUser:state},themeBaseGlobalStyles:function themeBaseGlobalStyles(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_THEME_GLOBAL_STYLES"===action.type?{...state,[action.stylesheet]:action.globalStyles}:state},taxonomies:function taxonomies(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_TAXONOMIES"===action.type?action.taxonomies:state},entities:function(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;const newConfig=entitiesConfig(state.config,action);let entitiesDataReducer=state.reducer;if(!entitiesDataReducer||newConfig!==state.config){const entitiesByKind=(0,lodash.groupBy)(newConfig,"kind");entitiesDataReducer=turbo_combine_reducers_default()(Object.entries(entitiesByKind).reduce(((memo,_ref)=>{let[kind,subEntities]=_ref;const kindReducer=turbo_combine_reducers_default()(subEntities.reduce(((kindMemo,entityConfig)=>({...kindMemo,[entityConfig.name]:entity(entityConfig)})),{}));return memo[kind]=kindReducer,memo}),{}))}const newData=entitiesDataReducer(state.data,action);return newData===state.data&&newConfig===state.config&&entitiesDataReducer===state.reducer?state:{reducer:entitiesDataReducer,data:newData,config:newConfig}},undo:function reducer_undo(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:UNDO_INITIAL_STATE,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":let isCreateUndoLevel="CREATE_UNDO_LEVEL"===action.type;const isUndoOrRedo=!isCreateUndoLevel&&(action.meta.isUndo||action.meta.isRedo);let nextState;if(isCreateUndoLevel?action=lastEditAction:isUndoOrRedo||(lastEditAction=Object.keys(action.edits).some((key=>!action.transientEdits[key]))?action:{...action,edits:{...lastEditAction&&lastEditAction.edits,...action.edits}}),isUndoOrRedo){if(nextState=[...state],nextState.offset=state.offset+(action.meta.isUndo?-1:1),!state.flattenedUndo)return nextState;isCreateUndoLevel=!0,action=lastEditAction}if(!action.meta.undo)return state;if(!isCreateUndoLevel&&!Object.keys(action.edits).some((key=>!action.transientEdits[key])))return nextState=[...state],nextState.flattenedUndo={...state.flattenedUndo,...action.edits},nextState.offset=state.offset,nextState;nextState=nextState||state.slice(0,state.offset||void 0),nextState.offset=nextState.offset||0,nextState.pop(),isCreateUndoLevel||nextState.push({kind:action.meta.undo.kind,name:action.meta.undo.name,recordId:action.meta.undo.recordId,edits:{...state.flattenedUndo,...action.meta.undo.edits}});const comparisonUndoEdits=Object.values(action.meta.undo.edits).filter((edit=>"function"!=typeof edit)),comparisonEdits=Object.values(action.edits).filter((edit=>"function"!=typeof edit));return(0,is_shallow_equal_build_module.ZP)(comparisonUndoEdits,comparisonEdits)||nextState.push({kind:action.kind,name:action.name,recordId:action.recordId,edits:isCreateUndoLevel?{...state.flattenedUndo,...action.edits}:action.edits}),nextState}return state},embedPreviews:function embedPreviews(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;if("RECEIVE_EMBED_PREVIEW"===action.type){const{url,preview}=action;return{...state,[url]:preview}}return state},userPermissions:function userPermissions(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;return"RECEIVE_USER_PERMISSION"===action.type?{...state,[action.key]:action.isAllowed}:state},autosaves:function autosaves(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},action=arguments.length>1?arguments[1]:void 0;if("RECEIVE_AUTOSAVES"===action.type){const{postId,autosaves:autosavesData}=action;return{...state,[postId]:autosavesData}}return state}});var rememo=__webpack_require__("../../../node_modules/.pnpm/rememo@3.0.0/node_modules/rememo/es/rememo.js"),factory=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/factory.js"),equivalent_key_map=__webpack_require__("../../../node_modules/.pnpm/equivalent-key-map@0.2.2/node_modules/equivalent-key-map/equivalent-key-map.js"),equivalent_key_map_default=__webpack_require__.n(equivalent_key_map);const queriedItemsCacheByState=new WeakMap;function getQueriedItemsUncached(state,query){var _state$queries,_state$queries$contex;const{stableKey,page,perPage,include,fields,context}=get_query_parts(query);let itemIds;if(null!==(_state$queries=state.queries)&&void 0!==_state$queries&&null!==(_state$queries$contex=_state$queries[context])&&void 0!==_state$queries$contex&&_state$queries$contex[stableKey]&&(itemIds=state.queries[context][stableKey]),!itemIds)return null;const startOffset=-1===perPage?0:(page-1)*perPage,endOffset=-1===perPage?itemIds.length:Math.min(startOffset+perPage,itemIds.length),items=[];for(let i=startOffset;i1&&void 0!==arguments[1]?arguments[1]:{},queriedItemsCache=queriedItemsCacheByState.get(state);if(queriedItemsCache){const queriedItems=queriedItemsCache.get(query);if(void 0!==queriedItems)return queriedItems}else queriedItemsCache=new(equivalent_key_map_default()),queriedItemsCacheByState.set(state,queriedItemsCache);const items=getQueriedItemsUncached(state,query);return queriedItemsCache.set(query,items),items}));const selectors_EMPTY_OBJECT={},EMPTY_ARRAY=[],isRequestingEmbedPreview=(0,factory.M)((select=>(state,url)=>select("core").isResolving("getEmbedPreview",[url])));function getAuthors(state,query){(0,deprecated_build_module.Z)("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const path=(0,add_query_args.f)("/wp/v2/users/?who=authors&per_page=100",query);return getUserQueryResults(state,path)}function getCurrentUser(state){return state.currentUser}const getUserQueryResults=(0,rememo.Z)(((state,queryID)=>{const queryResults=state.users.queries[queryID];return(0,lodash.map)(queryResults,(id=>state.users.byId[id]))}),((state,queryID)=>[state.users.queries[queryID],state.users.byId]));function getEntitiesByKind(state,kind){return(0,lodash.filter)(state.entities.config,{kind})}function getEntity(state,kind,name){return(0,lodash.find)(state.entities.config,{kind,name})}const getEntityRecord=(0,rememo.Z)(((state,kind,name,key,query)=>{var _query$context,_queriedState$items$c;const queriedState=(0,lodash.get)(state.entities.data,[kind,name,"queriedData"]);if(!queriedState)return;const context=null!==(_query$context=null==query?void 0:query.context)&&void 0!==_query$context?_query$context:"default";if(void 0===query){var _queriedState$itemIsC;if(null===(_queriedState$itemIsC=queriedState.itemIsComplete[context])||void 0===_queriedState$itemIsC||!_queriedState$itemIsC[key])return;return queriedState.items[context][key]}const item=null===(_queriedState$items$c=queriedState.items[context])||void 0===_queriedState$items$c?void 0:_queriedState$items$c[key];if(item&&query._fields){const filteredItem={},fields=get_normalized_comma_separable(query._fields);for(let f=0;f{var _query$context2;const context=null!==(_query$context2=null==query?void 0:query.context)&&void 0!==_query$context2?_query$context2:"default";return[(0,lodash.get)(state.entities.data,[kind,name,"queriedData","items",context,recordId]),(0,lodash.get)(state.entities.data,[kind,name,"queriedData","itemIsComplete",context,recordId])]}));function __experimentalGetEntityRecordNoResolver(state,kind,name,key){return getEntityRecord(state,kind,name,key)}const getRawEntityRecord=(0,rememo.Z)(((state,kind,name,key)=>{const record=getEntityRecord(state,kind,name,key);return record&&Object.keys(record).reduce(((accumulator,_key)=>(!function isRawAttribute(entity,attribute){return(entity.rawAttributes||[]).includes(attribute)}(getEntity(state,kind,name),_key)?accumulator[_key]=record[_key]:accumulator[_key]=(0,lodash.get)(record[_key],"raw",record[_key]),accumulator)),{})}),((state,kind,name,recordId,query)=>{var _query$context3;const context=null!==(_query$context3=null==query?void 0:query.context)&&void 0!==_query$context3?_query$context3:"default";return[state.entities.config,(0,lodash.get)(state.entities.data,[kind,name,"queriedData","items",context,recordId]),(0,lodash.get)(state.entities.data,[kind,name,"queriedData","itemIsComplete",context,recordId])]}));function hasEntityRecords(state,kind,name,query){return Array.isArray(getEntityRecords(state,kind,name,query))}function getEntityRecords(state,kind,name,query){const queriedState=(0,lodash.get)(state.entities.data,[kind,name,"queriedData"]);return queriedState?getQueriedItems(queriedState,query):EMPTY_ARRAY}const __experimentalGetDirtyEntityRecords=(0,rememo.Z)((state=>{const{entities:{data}}=state,dirtyRecords=[];return Object.keys(data).forEach((kind=>{Object.keys(data[kind]).forEach((name=>{const primaryKeys=Object.keys(data[kind][name].edits).filter((primaryKey=>getEntityRecord(state,kind,name,primaryKey)&&hasEditsForEntityRecord(state,kind,name,primaryKey)));if(primaryKeys.length){const entity=getEntity(state,kind,name);primaryKeys.forEach((primaryKey=>{var _entity$getTitle;const entityRecord=getEditedEntityRecord(state,kind,name,primaryKey);dirtyRecords.push({key:entityRecord[entity.key||DEFAULT_ENTITY_KEY],title:(null==entity||null===(_entity$getTitle=entity.getTitle)||void 0===_entity$getTitle?void 0:_entity$getTitle.call(entity,entityRecord))||"",name,kind})}))}}))})),dirtyRecords}),(state=>[state.entities.data])),__experimentalGetEntitiesBeingSaved=(0,rememo.Z)((state=>{const{entities:{data}}=state,recordsBeingSaved=[];return Object.keys(data).forEach((kind=>{Object.keys(data[kind]).forEach((name=>{const primaryKeys=Object.keys(data[kind][name].saving).filter((primaryKey=>isSavingEntityRecord(state,kind,name,primaryKey)));if(primaryKeys.length){const entity=getEntity(state,kind,name);primaryKeys.forEach((primaryKey=>{var _entity$getTitle2;const entityRecord=getEditedEntityRecord(state,kind,name,primaryKey);recordsBeingSaved.push({key:entityRecord[entity.key||DEFAULT_ENTITY_KEY],title:(null==entity||null===(_entity$getTitle2=entity.getTitle)||void 0===_entity$getTitle2?void 0:_entity$getTitle2.call(entity,entityRecord))||"",name,kind})}))}}))})),recordsBeingSaved}),(state=>[state.entities.data]));function getEntityRecordEdits(state,kind,name,recordId){return(0,lodash.get)(state.entities.data,[kind,name,"edits",recordId])}const getEntityRecordNonTransientEdits=(0,rememo.Z)(((state,kind,name,recordId)=>{const{transientEdits}=getEntity(state,kind,name)||{},edits=getEntityRecordEdits(state,kind,name,recordId)||{};return transientEdits?Object.keys(edits).reduce(((acc,key)=>(transientEdits[key]||(acc[key]=edits[key]),acc)),{}):edits}),((state,kind,name,recordId)=>[state.entities.config,(0,lodash.get)(state.entities.data,[kind,name,"edits",recordId])]));function hasEditsForEntityRecord(state,kind,name,recordId){return isSavingEntityRecord(state,kind,name,recordId)||Object.keys(getEntityRecordNonTransientEdits(state,kind,name,recordId)).length>0}const getEditedEntityRecord=(0,rememo.Z)(((state,kind,name,recordId)=>({...getRawEntityRecord(state,kind,name,recordId),...getEntityRecordEdits(state,kind,name,recordId)})),((state,kind,name,recordId,query)=>{var _query$context4;const context=null!==(_query$context4=null==query?void 0:query.context)&&void 0!==_query$context4?_query$context4:"default";return[state.entities.config,(0,lodash.get)(state.entities.data,[kind,name,"queriedData","items",context,recordId]),(0,lodash.get)(state.entities.data,[kind,name,"queriedData","itemIsComplete",context,recordId]),(0,lodash.get)(state.entities.data,[kind,name,"edits",recordId])]}));function isAutosavingEntityRecord(state,kind,name,recordId){const{pending,isAutosave}=(0,lodash.get)(state.entities.data,[kind,name,"saving",recordId],{});return Boolean(pending&&isAutosave)}function isSavingEntityRecord(state,kind,name,recordId){return(0,lodash.get)(state.entities.data,[kind,name,"saving",recordId,"pending"],!1)}function isDeletingEntityRecord(state,kind,name,recordId){return(0,lodash.get)(state.entities.data,[kind,name,"deleting",recordId,"pending"],!1)}function getLastEntitySaveError(state,kind,name,recordId){return(0,lodash.get)(state.entities.data,[kind,name,"saving",recordId,"error"])}function getLastEntityDeleteError(state,kind,name,recordId){return(0,lodash.get)(state.entities.data,[kind,name,"deleting",recordId,"error"])}function getCurrentUndoOffset(state){return state.undo.offset}function getUndoEdit(state){return state.undo[state.undo.length-2+getCurrentUndoOffset(state)]}function getRedoEdit(state){return state.undo[state.undo.length+getCurrentUndoOffset(state)]}function hasUndo(state){return Boolean(getUndoEdit(state))}function hasRedo(state){return Boolean(getRedoEdit(state))}function getCurrentTheme(state){return getEntityRecord(state,"root","theme",state.currentTheme)}function __experimentalGetCurrentGlobalStylesId(state){return state.currentGlobalStylesId}function getThemeSupports(state){var _getCurrentTheme$them,_getCurrentTheme;return null!==(_getCurrentTheme$them=null===(_getCurrentTheme=getCurrentTheme(state))||void 0===_getCurrentTheme?void 0:_getCurrentTheme.theme_supports)&&void 0!==_getCurrentTheme$them?_getCurrentTheme$them:selectors_EMPTY_OBJECT}function getEmbedPreview(state,url){return state.embedPreviews[url]}function isPreviewEmbedFallback(state,url){const preview=state.embedPreviews[url],oEmbedLinkCheck=''+url+"";return!!preview&&preview.html===oEmbedLinkCheck}function canUser(state,action,resource,id){const key=(0,lodash.compact)([action,resource,id]).join("/");return(0,lodash.get)(state,["userPermissions",key])}function canUserEditEntityRecord(state,kind,name,recordId){const entity=getEntity(state,kind,name);if(!entity)return!1;return canUser(state,"update",entity.__unstable_rest_base,recordId)}function getAutosaves(state,postType,postId){return state.autosaves[postId]}function getAutosave(state,postType,postId,authorId){if(void 0===authorId)return;const autosaves=state.autosaves[postId];return(0,lodash.find)(autosaves,{author:authorId})}const hasFetchedAutosaves=(0,factory.M)((select=>(state,postType,postId)=>select("core").hasFinishedResolution("getAutosaves",[postType,postId]))),getReferenceByDistinctEdits=(0,rememo.Z)((()=>[]),(state=>[state.undo.length,state.undo.offset,state.undo.flattenedUndo]));function __experimentalGetTemplateForLink(state,link){const records=getEntityRecords(state,"postType","wp_template",{"find-template":link}),template=null!=records&&records.length?records[0]:null;return template?getEditedEntityRecord(state,"postType","wp_template",template.id):template}function __experimentalGetCurrentThemeBaseGlobalStyles(state){const currentTheme=getCurrentTheme(state);return currentTheme?state.themeBaseGlobalStyles[currentTheme.stylesheet]:null}const forward_resolver=resolverName=>function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return async _ref=>{let{resolveSelect}=_ref;await resolveSelect[resolverName](...args)}},resolvers_getAuthors=query=>async _ref=>{let{dispatch}=_ref;const path=(0,add_query_args.f)("/wp/v2/users/?who=authors&per_page=100",query),users=await(0,api_fetch_build_module.Z)({path});dispatch.receiveUserQuery(path,users)},resolvers_getCurrentUser=()=>async _ref2=>{let{dispatch}=_ref2;const currentUser=await(0,api_fetch_build_module.Z)({path:"/wp/v2/users/me"});dispatch.receiveCurrentUser(currentUser)},resolvers_getEntityRecord=function(kind,name){let key=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",query=arguments.length>3?arguments[3]:void 0;return async _ref3=>{let{select,dispatch}=_ref3;const entities=await dispatch(getKindEntities(kind)),entity=(0,lodash.find)(entities,{kind,name});if(!entity||null!=entity&&entity.__experimentalNoFetch)return;const lock=await dispatch.__unstableAcquireStoreLock("core",["entities","data",kind,name,key],{exclusive:!1});try{void 0!==query&&query._fields&&(query={...query,_fields:(0,lodash.uniq)([...get_normalized_comma_separable(query._fields)||[],entity.key||DEFAULT_ENTITY_KEY]).join()});const path=(0,add_query_args.f)(entity.baseURL+(key?"/"+key:""),{...entity.baseURLParams,...query});if(void 0!==query){query={...query,include:[key]};if(select.hasEntityRecords(kind,name,query))return}const record=await(0,api_fetch_build_module.Z)({path});dispatch.receiveEntityRecords(kind,name,record,query)}catch(error){}finally{dispatch.__unstableReleaseStoreLock(lock)}}},resolvers_getRawEntityRecord=forward_resolver("getEntityRecord"),resolvers_getEditedEntityRecord=forward_resolver("getEntityRecord"),resolvers_getEntityRecords=function(kind,name){let query=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return async _ref4=>{let{dispatch}=_ref4;const entities=await dispatch(getKindEntities(kind)),entity=(0,lodash.find)(entities,{kind,name});if(!entity||null!=entity&&entity.__experimentalNoFetch)return;const lock=await dispatch.__unstableAcquireStoreLock("core",["entities","data",kind,name],{exclusive:!1});try{var _query;query._fields&&(query={...query,_fields:(0,lodash.uniq)([...get_normalized_comma_separable(query._fields)||[],entity.key||DEFAULT_ENTITY_KEY]).join()});const path=(0,add_query_args.f)(entity.baseURL,{...entity.baseURLParams,...query});let records=Object.values(await(0,api_fetch_build_module.Z)({path}));if(query._fields&&(records=records.map((record=>(query._fields.split(",").forEach((field=>{record.hasOwnProperty(field)||(record[field]=void 0)})),record)))),dispatch.receiveEntityRecords(kind,name,records,query),!(null!==(_query=query)&&void 0!==_query&&_query._fields||query.context)){const key=entity.key||DEFAULT_ENTITY_KEY,resolutionsArgs=records.filter((record=>record[key])).map((record=>[kind,name,record[key]]));dispatch({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:resolutionsArgs}),dispatch({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:resolutionsArgs})}}catch(error){}finally{dispatch.__unstableReleaseStoreLock(lock)}}};resolvers_getEntityRecords.shouldInvalidate=(action,kind,name)=>("RECEIVE_ITEMS"===action.type||"REMOVE_ITEMS"===action.type)&&action.invalidateCache&&kind===action.kind&&name===action.name;const resolvers_getCurrentTheme=()=>async _ref5=>{let{dispatch,resolveSelect}=_ref5;const activeThemes=await resolveSelect.getEntityRecords("root","theme",{status:"active"});dispatch.receiveCurrentTheme(activeThemes[0])},resolvers_getThemeSupports=forward_resolver("getCurrentTheme"),resolvers_getEmbedPreview=url=>async _ref6=>{let{dispatch}=_ref6;try{const embedProxyResponse=await(0,api_fetch_build_module.Z)({path:(0,add_query_args.f)("/oembed/1.0/proxy",{url})});dispatch.receiveEmbedPreview(url,embedProxyResponse)}catch(error){dispatch.receiveEmbedPreview(url,!1)}},resolvers_canUser=(action,resource,id)=>async _ref7=>{let{dispatch}=_ref7;const method={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[action];if(!method)throw new Error(`'${action}' is not a valid action.`);const path=id?`/wp/v2/${resource}/${id}`:`/wp/v2/${resource}`;let response,allowHeader;try{response=await(0,api_fetch_build_module.Z)({path,method:id?"GET":"OPTIONS",parse:!1})}catch(error){return}allowHeader=(0,lodash.hasIn)(response,["headers","get"])?response.headers.get("allow"):(0,lodash.get)(response,["headers","Allow"],"");const key=(0,lodash.compact)([action,resource,id]).join("/"),isAllowed=(0,lodash.includes)(allowHeader,method);dispatch.receiveUserPermission(key,isAllowed)},resolvers_canUserEditEntityRecord=(kind,name,recordId)=>async _ref8=>{let{dispatch}=_ref8;const entities=await dispatch(getKindEntities(kind)),entity=(0,lodash.find)(entities,{kind,name});if(!entity)return;const resource=entity.__unstable_rest_base;await dispatch(resolvers_canUser("update",resource,recordId))},resolvers_getAutosaves=(postType,postId)=>async _ref9=>{let{dispatch,resolveSelect}=_ref9;const{rest_base:restBase}=await resolveSelect.getPostType(postType),autosaves=await(0,api_fetch_build_module.Z)({path:`/wp/v2/${restBase}/${postId}/autosaves?context=edit`});autosaves&&autosaves.length&&dispatch.receiveAutosaves(postId,autosaves)},resolvers_getAutosave=(postType,postId)=>async _ref10=>{let{resolveSelect}=_ref10;await resolveSelect.getAutosaves(postType,postId)},resolvers_experimentalGetTemplateForLink=link=>async _ref11=>{let template,{dispatch,resolveSelect}=_ref11;try{template=await window.fetch((0,add_query_args.f)(link,{"_wp-find-template":!0})).then((res=>res.json())).then((_ref12=>{let{data}=_ref12;return data}))}catch(e){}if(!template)return;const record=await resolveSelect.getEntityRecord("postType","wp_template",template.id);record&&dispatch.receiveEntityRecords("postType","wp_template",[record],{"find-template":link})};resolvers_experimentalGetTemplateForLink.shouldInvalidate=action=>("RECEIVE_ITEMS"===action.type||"REMOVE_ITEMS"===action.type)&&action.invalidateCache&&"postType"===action.kind&&"wp_template"===action.name;const resolvers_experimentalGetCurrentGlobalStylesId=()=>async _ref13=>{let{dispatch,resolveSelect}=_ref13;const activeThemes=await resolveSelect.getEntityRecords("root","theme",{status:"active"}),globalStylesURL=(0,lodash.get)(activeThemes,[0,"_links","wp:user-global-styles",0,"href"]);if(globalStylesURL){const globalStylesObject=await(0,api_fetch_build_module.Z)({url:globalStylesURL});dispatch.__experimentalReceiveCurrentGlobalStylesId(globalStylesObject.id)}},resolvers_experimentalGetCurrentThemeBaseGlobalStyles=()=>async _ref14=>{let{resolveSelect,dispatch}=_ref14;const currentTheme=await resolveSelect.getCurrentTheme(),themeGlobalStyles=await(0,api_fetch_build_module.Z)({path:`/wp/v2/global-styles/themes/${currentTheme.stylesheet}`});await dispatch.__experimentalReceiveThemeBaseGlobalStyles(currentTheme.stylesheet,themeGlobalStyles)};function deepCopyLocksTreePath(tree,path){const newTree={...tree};let currentNode=newTree;for(const branchName of path)currentNode.children={...currentNode.children,[branchName]:{locks:[],children:{},...currentNode.children[branchName]}},currentNode=currentNode.children[branchName];return newTree}function getNode(tree,path){let currentNode=tree;for(const branchName of path){const nextNode=currentNode.children[branchName];if(!nextNode)return null;currentNode=nextNode}return currentNode}function hasConflictingLock(_ref,locks){let{exclusive}=_ref;return!(!exclusive||!locks.length)||!(exclusive||!locks.filter((lock=>lock.exclusive)).length)}const DEFAULT_STATE={requests:[],tree:{locks:[],children:{}}};function locks(){let state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DEFAULT_STATE,action=arguments.length>1?arguments[1]:void 0;switch(action.type){case"ENQUEUE_LOCK_REQUEST":{const{request}=action;return{...state,requests:[request,...state.requests]}}case"GRANT_LOCK_REQUEST":{const{lock,request}=action,{store,path}=request,storePath=[store,...path],newTree=deepCopyLocksTreePath(state.tree,storePath),node=getNode(newTree,storePath);return node.locks=[...node.locks,lock],{...state,requests:state.requests.filter((r=>r!==request)),tree:newTree}}case"RELEASE_LOCK":{const{lock}=action,storePath=[lock.store,...lock.path],newTree=deepCopyLocksTreePath(state.tree,storePath),node=getNode(newTree,storePath);return node.locks=node.locks.filter((l=>l!==lock)),{...state,tree:newTree}}}return state}function isLockAvailable(state,store,path,_ref){let{exclusive}=_ref;const storePath=[store,...path],locks=state.tree;for(const node of function*iteratePath(tree,path){let currentNode=tree;yield currentNode;for(const branchName of path){const nextNode=currentNode.children[branchName];if(!nextNode)break;yield nextNode,currentNode=nextNode}}(locks,storePath))if(hasConflictingLock({exclusive},node.locks))return!1;const node=getNode(locks,storePath);if(!node)return!0;for(const descendant of function*iterateDescendants(node){const stack=Object.values(node.children);for(;stack.length;){const childNode=stack.pop();yield childNode,stack.push(...Object.values(childNode.children))}}(node))if(hasConflictingLock({exclusive},descendant.locks))return!1;return!0}function createLocks(){let state=locks(void 0,{type:"@@INIT"});function processPendingLockRequests(){for(const request of function getPendingLockRequests(state){return state.requests}(state)){const{store,path,exclusive,notifyAcquired}=request;if(isLockAvailable(state,store,path,{exclusive})){const lock={store,path,exclusive};state=locks(state,{type:"GRANT_LOCK_REQUEST",lock,request}),notifyAcquired(lock)}}}return{acquire:function acquire(store,path,exclusive){return new Promise((resolve=>{state=locks(state,{type:"ENQUEUE_LOCK_REQUEST",request:{store,path,exclusive,notifyAcquired:resolve}}),processPendingLockRequests()}))},release:function release(lock){state=locks(state,{type:"RELEASE_LOCK",lock}),processPendingLockRequests()}}}function createLocksActions(){const locks=createLocks();return{__unstableAcquireStoreLock:function __unstableAcquireStoreLock(store,path,_ref){let{exclusive}=_ref;return()=>locks.acquire(store,path,exclusive)},__unstableReleaseStoreLock:function __unstableReleaseStoreLock(lock){return()=>locks.release(lock)}}}var use_dispatch=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/use-dispatch/use-dispatch.js");const entity_provider_EMPTY_ARRAY=[],entity_provider_entities={...defaultEntities.reduce(((acc,entity)=>(acc[entity.kind]||(acc[entity.kind]={}),acc[entity.kind][entity.name]={context:(0,react.createContext)()},acc)),{}),...kinds.reduce(((acc,kind)=>(acc[kind.name]={},acc)),{})},entity_provider_getEntity=(kind,type)=>{if(!entity_provider_entities[kind])throw new Error(`Missing entity config for kind: ${kind}.`);return entity_provider_entities[kind][type]||(entity_provider_entities[kind][type]={context:(0,react.createContext)()}),entity_provider_entities[kind][type]};function EntityProvider(_ref){let{kind,type,id,children}=_ref;const Provider=entity_provider_getEntity(kind,type).context.Provider;return(0,react.createElement)(Provider,{value:id},children)}function useEntityId(kind,type){return(0,react.useContext)(entity_provider_getEntity(kind,type).context)}function useEntityProp(kind,type,prop,_id){const providerId=useEntityId(kind,type),id=null!=_id?_id:providerId,{value,fullValue}=(0,use_select.Z)((select=>{const{getEntityRecord,getEditedEntityRecord}=select("core"),entity=getEntityRecord(kind,type,id),editedEntity=getEditedEntityRecord(kind,type,id);return entity&&editedEntity?{value:editedEntity[prop],fullValue:entity[prop]}:{}}),[kind,type,id,prop]),{editEntityRecord}=(0,use_dispatch.Z)("core");return[value,(0,react.useCallback)((newValue=>{editEntityRecord(kind,type,id,{[prop]:newValue})}),[kind,type,id,prop]),fullValue]}function useEntityBlockEditor(kind,type){let{id:_id}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const providerId=useEntityId(kind,type),id=null!=_id?_id:providerId,{content,blocks}=(0,use_select.Z)((select=>{const{getEditedEntityRecord}=select("core"),editedEntity=getEditedEntityRecord(kind,type,id);return{blocks:editedEntity.blocks,content:editedEntity.content}}),[kind,type,id]),{__unstableCreateUndoLevel,editEntityRecord}=(0,use_dispatch.Z)("core");(0,react.useEffect)((()=>{if(content&&"function"!=typeof content&&!blocks){const parsedContent=(0,build_module.Qc)(content);editEntityRecord(kind,type,id,{blocks:parsedContent},{undoIgnore:!0})}}),[content]);const onChange=(0,react.useCallback)(((newBlocks,options)=>{const{selection}=options,edits={blocks:newBlocks,selection};if(blocks===edits.blocks)return __unstableCreateUndoLevel(kind,type,id);edits.content=_ref2=>{let{blocks:blocksForSerialization=[]}=_ref2;return(0,build_module.qm)(blocksForSerialization)},editEntityRecord(kind,type,id,edits)}),[kind,type,id,blocks]),onInput=(0,react.useCallback)(((newBlocks,options)=>{const{selection}=options;editEntityRecord(kind,type,id,{blocks:newBlocks,selection})}),[kind,type,id]);return[null!=blocks?blocks:entity_provider_EMPTY_ARRAY,onInput,onChange]}const entitySelectors=defaultEntities.reduce(((result,entity)=>{const{kind,name}=entity;return result[getMethodName(kind,name)]=(state,key,query)=>getEntityRecord(state,kind,name,key,query),result[getMethodName(kind,name,"get",!0)]=function(state){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return getEntityRecords(state,kind,name,...args)},result}),{}),entityResolvers=defaultEntities.reduce(((result,entity)=>{const{kind,name}=entity;result[getMethodName(kind,name)]=(key,query)=>resolvers_getEntityRecord(kind,name,key,query);const pluralMethodName=getMethodName(kind,name,"get",!0);return result[pluralMethodName]=function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return resolvers_getEntityRecords(kind,name,...args)},result[pluralMethodName].shouldInvalidate=function(action){for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++)args[_key3-1]=arguments[_key3];return resolvers_getEntityRecords.shouldInvalidate(action,kind,name,...args)},result}),{}),entityActions=defaultEntities.reduce(((result,entity)=>{const{kind,name}=entity;return result[getMethodName(kind,name,"save")]=key=>saveEntityRecord(kind,name,key),result[getMethodName(kind,name,"delete")]=(key,query)=>deleteEntityRecord(kind,name,key,query),result}),{}),store=(0,redux_store.Z)("core",{reducer:build_module_reducer,actions:{...build_module_actions_namespaceObject,...entityActions,...createLocksActions()},selectors:{...build_module_selectors_namespaceObject,...entitySelectors},resolvers:{...resolvers_namespaceObject,...entityResolvers},__experimentalUseThunks:!0});(0,data_build_module.z2)(store);const getYearMonth=memize_default()((date=>{if(!date)return{};const momentDate=moment_default()(date);return{year:momentDate.year(),month:momentDate.month()+1}}));const calendar_metadata={apiVersion:2,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0},style:"wp-block-calendar"},{name:calendar_name}=calendar_metadata,calendar_settings={icon:library_calendar,example:{},edit:function CalendarEdit(_ref){let{attributes}=_ref;const blockProps=(0,block_editor_build_module.Wo)(),{date,hasPosts,hasPostsResolved}=(0,use_select.Z)((select=>{const{getEntityRecords,hasFinishedResolution}=select(store),singlePublishedPostQuery={status:"publish",per_page:1},posts=getEntityRecords("postType","post",singlePublishedPostQuery),postsResolved=hasFinishedResolution("getEntityRecords",["postType","post",singlePublishedPostQuery]);let _date;const editorSelectors=select("core/editor");if(editorSelectors){"post"===editorSelectors.getEditedPostAttribute("type")&&(_date=editorSelectors.getEditedPostAttribute("date"))}return{date:_date,hasPostsResolved:postsResolved,hasPosts:postsResolved&&1===(null==posts?void 0:posts.length)}}),[]);return hasPosts?(0,react.createElement)("div",blockProps,(0,react.createElement)(disabled.Z,null,(0,react.createElement)(server_side_render_build_module,{block:"core/calendar",attributes:{...attributes,...getYearMonth(date)}}))):(0,react.createElement)("div",blockProps,(0,react.createElement)(build_module_placeholder.Z,{icon:library_calendar,label:(0,i18n_build_module.__)("Calendar")},hasPostsResolved?(0,i18n_build_module.__)("No published posts found."):(0,react.createElement)(spinner.Z,null)))}},library_category=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/visually-hidden/component.js"),use_instance_id=__webpack_require__("../../../node_modules/.pnpm/@wordpress+compose@5.0.6_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js");const library_pin=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,react.createElement)(svg.y$,{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"}));const categories_metadata={apiVersion:2,name:"core/categories",title:"Categories",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:categories_name}=categories_metadata,categories_settings={icon:library_category,example:{},edit:function CategoriesEdit(_ref){let{attributes:{displayAsDropdown,showHierarchy,showPostCounts,showOnlyTopLevel},setAttributes}=_ref;const selectId=(0,use_instance_id.Z)(CategoriesEdit,"blocks-category-select"),{categories,isRequesting}=(0,use_select.Z)((select=>{const{getEntityRecords,isResolving}=select(store),query={per_page:-1,hide_empty:!0,context:"view"};return showOnlyTopLevel&&(query.parent=0),{categories:getEntityRecords("taxonomy","category",query),isRequesting:isResolving("getEntityRecords",["taxonomy","category",query])}}),[showOnlyTopLevel]),getCategoriesList=parentId=>null!=categories&&categories.length?null===parentId?categories:categories.filter((_ref2=>{let{parent}=_ref2;return parent===parentId})):[],getCategoryListClassName=level=>`wp-block-categories__list wp-block-categories__list-level-${level}`,toggleAttribute=attributeName=>newValue=>setAttributes({[attributeName]:newValue}),renderCategoryName=name=>name?(0,lodash.unescape)(name).trim():(0,i18n_build_module.__)("(Untitled)"),renderCategoryListItem=(category,level)=>{const childCategories=getCategoriesList(category.id),{id,link,count,name}=category;return(0,react.createElement)("li",{key:id},(0,react.createElement)("a",{href:link,target:"_blank",rel:"noreferrer noopener"},renderCategoryName(name)),showPostCounts&&(0,react.createElement)("span",{className:"wp-block-categories__post-count"},` (${count})`),showHierarchy&&!!childCategories.length&&(0,react.createElement)("ul",{className:getCategoryListClassName(level+1)},childCategories.map((childCategory=>renderCategoryListItem(childCategory,level+1)))))},renderCategoryDropdownItem=(category,level)=>{const{id,count,name}=category,childCategories=getCategoriesList(id);return[(0,react.createElement)("option",{key:id},(0,lodash.times)(3*level,(()=>" ")),renderCategoryName(name),showPostCounts&&` (${count})`),showHierarchy&&!!childCategories.length&&childCategories.map((childCategory=>renderCategoryDropdownItem(childCategory,level+1)))]};return(0,react.createElement)("div",(0,block_editor_build_module.Wo)(),(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Categories settings")},(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Display as dropdown"),checked:displayAsDropdown,onChange:toggleAttribute("displayAsDropdown")}),(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Show post counts"),checked:showPostCounts,onChange:toggleAttribute("showPostCounts")}),(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Show only top level categories"),checked:showOnlyTopLevel,onChange:toggleAttribute("showOnlyTopLevel")}),!showOnlyTopLevel&&(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Show hierarchy"),checked:showHierarchy,onChange:toggleAttribute("showHierarchy")}))),isRequesting&&(0,react.createElement)(build_module_placeholder.Z,{icon:library_pin,label:(0,i18n_build_module.__)("Categories")},(0,react.createElement)(spinner.Z,null)),!isRequesting&&0===(null==categories?void 0:categories.length)&&(0,react.createElement)("p",null,(0,i18n_build_module.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!isRequesting&&(null==categories?void 0:categories.length)>0&&(displayAsDropdown?(()=>{const categoriesList=getCategoriesList(showHierarchy?0:null);return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(component.Z,{as:"label",htmlFor:selectId},(0,i18n_build_module.__)("Categories")),(0,react.createElement)("select",{id:selectId,className:"wp-block-categories__dropdown"},categoriesList.map((category=>renderCategoryDropdownItem(category,0)))))})():(()=>{const categoriesList=getCategoriesList(showHierarchy?0:null);return(0,react.createElement)("ul",{className:getCategoryListClassName(0)},categoriesList.map((category=>renderCategoryListItem(category,0))))})()))}},library_classic=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));var toolbar_group=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/toolbar-group/index.js");const convert_to_blocks_button=_ref=>{let{clientId}=_ref;const{replaceBlocks}=(0,use_dispatch.Z)(block_editor_build_module.h),block=(0,use_select.Z)((select=>select(block_editor_build_module.h).getBlock(clientId)),[clientId]);return(0,react.createElement)(toolbar_button.Z,{onClick:()=>replaceBlocks(block.clientId,(0,build_module.AF)({HTML:(0,build_module.qC)(block)}))},(0,i18n_build_module.__)("Convert to blocks"))},{wp:edit_wp}=window;const freeform_metadata={apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:freeform_name}=freeform_metadata,freeform_settings={icon:library_classic,edit:function ClassicEdit(_ref){let{clientId,attributes:{content},setAttributes,onReplace}=_ref;const{getMultiSelectedBlockClientIds}=(0,use_select.Z)(block_editor_build_module.h),didMount=(0,react.useRef)(!1);return(0,react.useEffect)((()=>{if(!didMount.current)return;const editor=window.tinymce.get(`editor-${clientId}`);(null==editor?void 0:editor.getContent())!==content&&editor.setContent(content||"")}),[content]),(0,react.useEffect)((()=>{const{baseURL,suffix}=window.wpEditorL10n.tinymce;function onSetup(editor){let bookmark;content&&editor.on("loadContent",(()=>editor.setContent(content))),editor.on("blur",(()=>{var _getMultiSelectedBloc;bookmark=editor.selection.getBookmark(2,!0);const scrollContainer=document.querySelector(".interface-interface-skeleton__content"),scrollPosition=scrollContainer.scrollTop;return null!==(_getMultiSelectedBloc=getMultiSelectedBlockClientIds())&&void 0!==_getMultiSelectedBloc&&_getMultiSelectedBloc.length||setAttributes({content:editor.getContent()}),editor.once("focus",(()=>{bookmark&&(editor.selection.moveToBookmark(bookmark),scrollContainer.scrollTop!==scrollPosition&&(scrollContainer.scrollTop=scrollPosition))})),!1})),editor.on("mousedown touchstart",(()=>{bookmark=null}));const debouncedOnChange=(0,lodash.debounce)((()=>{const value=editor.getContent();value!==editor._lastChange&&(editor._lastChange=value,setAttributes({content:value}))}),250);editor.on("Paste Change input Undo Redo",debouncedOnChange),editor.on("remove",debouncedOnChange.cancel),editor.on("keydown",(event=>{keycodes_build_module.vd.primary(event,"z")&&event.stopPropagation(),event.keyCode!==keycodes_build_module.ZH&&event.keyCode!==keycodes_build_module.yY||!function isTmceEmpty(editor){const body=editor.getBody();return!(body.childNodes.length>1)&&(0===body.childNodes.length||!(body.childNodes[0].childNodes.length>1)&&/^\n?$/.test(body.innerText||body.textContent))}(editor)||(onReplace([]),event.preventDefault(),event.stopImmediatePropagation());const{altKey}=event;altKey&&event.keyCode===keycodes_build_module.kC&&event.stopPropagation()})),editor.on("init",(()=>{const rootNode=editor.getBody();rootNode.ownerDocument.activeElement===rootNode&&(rootNode.blur(),editor.focus())}))}function initialize(){const{settings}=window.wpEditorL10n.tinymce;edit_wp.oldEditor.initialize(`editor-${clientId}`,{tinymce:{...settings,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${clientId}`,setup:onSetup}})}function onReadyStateChange(){"complete"===document.readyState&&initialize()}return didMount.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:baseURL,suffix}),"complete"===document.readyState?initialize():document.addEventListener("readystatechange",onReadyStateChange),()=>{document.removeEventListener("readystatechange",onReadyStateChange),edit_wp.oldEditor.remove(`editor-${clientId}`)}}),[]),(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_editor_build_module.Zp,null,(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(convert_to_blocks_button,{clientId}))),(0,react.createElement)("div",(0,block_editor_build_module.Wo)(),(0,react.createElement)("div",{key:"toolbar",id:`toolbar-${clientId}`,className:"block-library-classic__toolbar",onClick:function focus(){const editor=window.tinymce.get(`editor-${clientId}`);editor&&editor.focus()},"data-placeholder":(0,i18n_build_module.__)("Classic"),onKeyDown:function onToolbarKeyDown(event){event.stopPropagation(),event.nativeEvent.stopImmediatePropagation()}}),(0,react.createElement)("div",{key:"editor",id:`editor-${clientId}`,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function freeform_save_save(_ref){let{attributes}=_ref;const{content}=attributes;return(0,react.createElement)(raw_html.Z,null,content)}};var code=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/code.js");function escapeOpeningSquareBrackets(content){return content.replace(/\[/g,"[")}function escapeProtocolInIsolatedUrls(content){return content.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}const code_transforms={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,build_module.j4)("core/code")},{type:"block",blocks:["core/html"],transform:_ref=>{let{content}=_ref;return(0,build_module.j4)("core/code",{content})}},{type:"raw",isMatch:node=>"PRE"===node.nodeName&&1===node.children.length&&"CODE"===node.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},code_metadata={apiVersion:2,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0,__experimentalSelector:".wp-block-code > code",typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{text:!0,background:!0,gradients:!0}},style:"wp-block-code"},{name:code_name}=code_metadata,code_settings={icon:code.Z,example:{attributes:{content:(0,i18n_build_module.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:code_transforms,edit:function CodeEdit(_ref){let{attributes,setAttributes,onRemove}=_ref;const blockProps=(0,block_editor_build_module.Wo)();return(0,react.createElement)("pre",blockProps,(0,react.createElement)(block_editor_build_module.Ho,{tagName:"code",value:attributes.content,onChange:content=>setAttributes({content}),onRemove,placeholder:(0,i18n_build_module.__)("Write code…"),"aria-label":(0,i18n_build_module.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function code_save_save(_ref){let{attributes}=_ref;return(0,react.createElement)("pre",block_editor_build_module.Wo.save(),(0,react.createElement)(block_editor_build_module.Ho.Content,{tagName:"code",value:(content=attributes.content,(0,lodash.flow)(escapeOpeningSquareBrackets,escapeProtocolInIsolatedUrls)(content||""))}));var content}},library_column=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})),column_deprecated_deprecated=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible(_ref){let{width}=_ref;return isFinite(width)},migrate:attributes=>({...attributes,width:`${attributes.width}%`}),save(_ref2){let{attributes}=_ref2;const{verticalAlignment,width}=attributes,wrapperClasses=classnames_default()({[`is-vertically-aligned-${verticalAlignment}`]:verticalAlignment}),style={flexBasis:width+"%"};return(0,react.createElement)("div",{className:wrapperClasses,style},(0,react.createElement)(block_editor_build_module.gv.Content,null))}}],column_deprecated=column_deprecated_deprecated;var utils=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/unit-control/utils.js"),unit_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/unit-control/index.js");const column_edit=function ColumnEdit(_ref){let{attributes:{verticalAlignment,width,templateLock=!1,allowedBlocks},setAttributes,clientId}=_ref;const classes=classnames_default()("block-core-columns",{[`is-vertically-aligned-${verticalAlignment}`]:verticalAlignment}),units=(0,utils.nj)({availableUnits:(0,block_editor_build_module.yu)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds,hasChildBlocks,rootClientId}=(0,use_select.Z)((select=>{const{getBlockOrder,getBlockRootClientId}=select(block_editor_build_module.h),rootId=getBlockRootClientId(clientId);return{hasChildBlocks:getBlockOrder(clientId).length>0,rootClientId:rootId,columnsIds:getBlockOrder(rootId)}}),[clientId]),{updateBlockAttributes}=(0,use_dispatch.Z)(block_editor_build_module.h),widthWithUnit=Number.isFinite(width)?width+"%":width,blockProps=(0,block_editor_build_module.Wo)({className:classes,style:widthWithUnit?{flexBasis:widthWithUnit}:void 0}),columnsCount=columnsIds.length,currentColumnPosition=columnsIds.indexOf(clientId)+1,label=(0,i18n_build_module.gB)((0,i18n_build_module.__)("%1$s (%2$d of %3$d)"),blockProps["aria-label"],currentColumnPosition,columnsCount),innerBlocksProps=(0,block_editor_build_module.fh)({...blockProps,"aria-label":label},{templateLock,allowedBlocks,renderAppender:hasChildBlocks?void 0:block_editor_build_module.gv.ButtonBlockAppender});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_editor_build_module.Zp,null,(0,react.createElement)(block_editor_build_module.nZ,{onChange:value=>{setAttributes({verticalAlignment:value}),updateBlockAttributes(rootClientId,{verticalAlignment:null})},value:verticalAlignment})),(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Column settings")},(0,react.createElement)(unit_control.ZP,{label:(0,i18n_build_module.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:width||"",onChange:nextWidth=>{nextWidth=0>parseFloat(nextWidth)?"0":nextWidth,setAttributes({width:nextWidth})},units}))),(0,react.createElement)("div",innerBlocksProps))};const column_metadata={apiVersion:2,name:"core/column",title:"Column",category:"text",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}}}},{name:column_name}=column_metadata,column_settings={icon:library_column,edit:column_edit,save:function column_save_save(_ref){let{attributes}=_ref;const{verticalAlignment,width}=attributes,wrapperClasses=classnames_default()({[`is-vertically-aligned-${verticalAlignment}`]:verticalAlignment});let style;if(width&&/\d/.test(width)){let flexBasis=Number.isFinite(width)?width+"%":width;if(!Number.isFinite(width)&&null!=width&&width.endsWith("%")){const multiplier=1e12;flexBasis=Math.round(Number.parseFloat(width)*multiplier)/multiplier+"%"}style={flexBasis}}const blockProps=block_editor_build_module.Wo.save({className:wrapperClasses,style}),innerBlocksProps=block_editor_build_module.fh.save(blockProps);return(0,react.createElement)("div",innerBlocksProps)},deprecated:column_deprecated},library_columns=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function getDeprecatedLayoutColumn(originalContent){let columnMatch,{doc}=getDeprecatedLayoutColumn;doc||(doc=document.implementation.createHTMLDocument(""),getDeprecatedLayoutColumn.doc=doc),doc.body.innerHTML=originalContent;for(const classListItem of doc.body.firstChild.classList)if(columnMatch=classListItem.match(/^layout-column-(\d+)$/))return Number(columnMatch[1])-1}const columns_deprecated=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:attributes=>{if(!attributes.customTextColor&&!attributes.customBackgroundColor)return attributes;const style={color:{}};return attributes.customTextColor&&(style.color.text=attributes.customTextColor),attributes.customBackgroundColor&&(style.color.background=attributes.customBackgroundColor),{...(0,lodash.omit)(attributes,["customTextColor","customBackgroundColor"]),style,isStackedOnMobile:!0}},save(_ref){let{attributes}=_ref;const{verticalAlignment,backgroundColor,customBackgroundColor,textColor,customTextColor}=attributes,backgroundClass=(0,block_editor_build_module.Gd)("background-color",backgroundColor),textClass=(0,block_editor_build_module.Gd)("color",textColor),className=classnames_default()({"has-background":backgroundColor||customBackgroundColor,"has-text-color":textColor||customTextColor,[backgroundClass]:backgroundClass,[textClass]:textClass,[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment}),style={backgroundColor:backgroundClass?void 0:customBackgroundColor,color:textClass?void 0:customTextColor};return(0,react.createElement)("div",{className:className||void 0,style},(0,react.createElement)(block_editor_build_module.gv.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(attributes,innerBlocks)=>!!innerBlocks.some((innerBlock=>/layout-column-\d+/.test(innerBlock.originalContent)))&&innerBlocks.some((innerBlock=>void 0!==getDeprecatedLayoutColumn(innerBlock.originalContent))),migrate(attributes,innerBlocks){const migratedInnerBlocks=innerBlocks.reduce(((accumulator,innerBlock)=>{const{originalContent}=innerBlock;let columnIndex=getDeprecatedLayoutColumn(originalContent);return void 0===columnIndex&&(columnIndex=0),accumulator[columnIndex]||(accumulator[columnIndex]=[]),accumulator[columnIndex].push(innerBlock),accumulator}),[]).map((columnBlocks=>(0,build_module.j4)("core/column",{},columnBlocks)));return[{...(0,lodash.omit)(attributes,["columns"]),isStackedOnMobile:!0},migratedInnerBlocks]},save(_ref2){let{attributes}=_ref2;const{columns}=attributes;return(0,react.createElement)("div",{className:`has-${columns}-columns`},(0,react.createElement)(block_editor_build_module.gv.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(attributes,innerBlocks)=>[attributes={...(0,lodash.omit)(attributes,["columns"]),isStackedOnMobile:!0},innerBlocks],save(_ref3){let{attributes}=_ref3;const{verticalAlignment,columns}=attributes,wrapperClasses=classnames_default()(`has-${columns}-columns`,{[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment});return(0,react.createElement)("div",{className:wrapperClasses},(0,react.createElement)(block_editor_build_module.gv.Content,null))}}];var range_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/range-control/index.js"),with_dispatch=__webpack_require__("../../../node_modules/.pnpm/@wordpress+data@6.1.4_react@17.0.2/node_modules/@wordpress/data/build-module/components/with-dispatch/index.js");const toWidthPrecision=value=>{const unitlessValue=parseFloat(value);return Number.isFinite(unitlessValue)?parseFloat(unitlessValue.toFixed(2)):void 0};function getEffectiveColumnWidth(block,totalBlockCount){const{width=100/totalBlockCount}=block.attributes;return toWidthPrecision(width)}function getTotalColumnsWidth(blocks){let totalBlockCount=arguments.length>1&&void 0!==arguments[1]?arguments[1]:blocks.length;return(0,lodash.sumBy)(blocks,(block=>getEffectiveColumnWidth(block,totalBlockCount)))}function getColumnWidths(blocks){let totalBlockCount=arguments.length>1&&void 0!==arguments[1]?arguments[1]:blocks.length;return blocks.reduce(((accumulator,block)=>{const width=getEffectiveColumnWidth(block,totalBlockCount);return Object.assign(accumulator,{[block.clientId]:width})}),{})}function getRedistributedColumnWidths(blocks,availableWidth){let totalBlockCount=arguments.length>2&&void 0!==arguments[2]?arguments[2]:blocks.length;const totalWidth=getTotalColumnsWidth(blocks,totalBlockCount);return(0,lodash.mapValues)(getColumnWidths(blocks,totalBlockCount),(width=>toWidthPrecision(availableWidth*width/totalWidth)))}function getMappedColumnWidths(blocks,widths){return blocks.map((block=>(0,lodash.merge)({},block,{attributes:{width:`${widths[block.clientId]}%`}})))}const edit_ALLOWED_BLOCKS=["core/column"];const ColumnsEditContainerWrapper=(0,with_dispatch.Z)(((dispatch,ownProps,registry)=>({updateAlignment(verticalAlignment){const{clientId,setAttributes}=ownProps,{updateBlockAttributes}=dispatch(block_editor_build_module.h),{getBlockOrder}=registry.select(block_editor_build_module.h);setAttributes({verticalAlignment});getBlockOrder(clientId).forEach((innerBlockClientId=>{updateBlockAttributes(innerBlockClientId,{verticalAlignment})}))},updateColumns(previousColumns,newColumns){const{clientId}=ownProps,{replaceInnerBlocks}=dispatch(block_editor_build_module.h),{getBlocks}=registry.select(block_editor_build_module.h);let innerBlocks=getBlocks(clientId);const hasExplicitWidths=function hasExplicitPercentColumnWidths(blocks){return blocks.every((block=>{var _blockWidth$endsWith;const blockWidth=block.attributes.width;return Number.isFinite(null!=blockWidth&&null!==(_blockWidth$endsWith=blockWidth.endsWith)&&void 0!==_blockWidth$endsWith&&_blockWidth$endsWith.call(blockWidth,"%")?parseFloat(blockWidth):blockWidth)}))}(innerBlocks),isAddingColumn=newColumns>previousColumns;if(isAddingColumn&&hasExplicitWidths){const newColumnWidth=toWidthPrecision(100/newColumns);innerBlocks=[...getMappedColumnWidths(innerBlocks,getRedistributedColumnWidths(innerBlocks,100-newColumnWidth)),...(0,lodash.times)(newColumns-previousColumns,(()=>(0,build_module.j4)("core/column",{width:`${newColumnWidth}%`})))]}else if(isAddingColumn)innerBlocks=[...innerBlocks,...(0,lodash.times)(newColumns-previousColumns,(()=>(0,build_module.j4)("core/column")))];else if(innerBlocks=(0,lodash.dropRight)(innerBlocks,previousColumns-newColumns),hasExplicitWidths){innerBlocks=getMappedColumnWidths(innerBlocks,getRedistributedColumnWidths(innerBlocks,100))}replaceInnerBlocks(clientId,innerBlocks)}})))((function ColumnsEditContainer(_ref){let{attributes,setAttributes,updateAlignment,updateColumns,clientId}=_ref;const{isStackedOnMobile,verticalAlignment}=attributes,{count}=(0,use_select.Z)((select=>({count:select(block_editor_build_module.h).getBlockCount(clientId)})),[clientId]),classes=classnames_default()({[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment,"is-not-stacked-on-mobile":!isStackedOnMobile}),blockProps=(0,block_editor_build_module.Wo)({className:classes}),innerBlocksProps=(0,block_editor_build_module.fh)(blockProps,{allowedBlocks:edit_ALLOWED_BLOCKS,orientation:"horizontal",renderAppender:!1});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_editor_build_module.Zp,null,(0,react.createElement)(block_editor_build_module.nZ,{onChange:updateAlignment,value:verticalAlignment})),(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,null,(0,react.createElement)(range_control.Z,{label:(0,i18n_build_module.__)("Columns"),value:count,onChange:value=>updateColumns(count,value),min:1,max:Math.max(6,count)}),count>6&&(0,react.createElement)(build_module_notice.Z,{status:"warning",isDismissible:!1},(0,i18n_build_module.__)("This column count exceeds the recommended amount and may cause visual breakage.")),(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Stack on mobile"),checked:isStackedOnMobile,onChange:()=>setAttributes({isStackedOnMobile:!isStackedOnMobile})}))),(0,react.createElement)("div",innerBlocksProps))}));function Placeholder(_ref2){let{clientId,name,setAttributes}=_ref2;const{blockType,defaultVariation,variations}=(0,use_select.Z)((select=>{const{getBlockVariations,getBlockType,getDefaultBlockVariation}=select(build_module.h);return{blockType:getBlockType(name),defaultVariation:getDefaultBlockVariation(name,"block"),variations:getBlockVariations(name,"block")}}),[name]),{replaceInnerBlocks}=(0,use_dispatch.Z)(block_editor_build_module.h),blockProps=(0,block_editor_build_module.Wo)();return(0,react.createElement)("div",blockProps,(0,react.createElement)(block_editor_build_module.G6,{icon:(0,lodash.get)(blockType,["icon","src"]),label:(0,lodash.get)(blockType,["title"]),variations,onSelect:function(){let nextVariation=arguments.length>0&&void 0!==arguments[0]?arguments[0]:defaultVariation;nextVariation.attributes&&setAttributes(nextVariation.attributes),nextVariation.innerBlocks&&replaceInnerBlocks(clientId,(0,build_module.ne)(nextVariation.innerBlocks),!0)},allowSkip:!0}))}const columns_edit=props=>{const{clientId}=props,Component=(0,use_select.Z)((select=>select(block_editor_build_module.h).getBlocks(clientId).length>0),[clientId])?ColumnsEditContainerWrapper:Placeholder;return(0,react.createElement)(Component,props)};const columns_variations=[{name:"one-column-full",title:(0,i18n_build_module.__)("100"),description:(0,i18n_build_module.__)("One column"),icon:(0,react.createElement)(svg.Wj,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,i18n_build_module.__)("50 / 50"),description:(0,i18n_build_module.__)("Two columns; equal split"),icon:(0,react.createElement)(svg.Wj,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,i18n_build_module.__)("30 / 70"),description:(0,i18n_build_module.__)("Two columns; one-third, two-thirds split"),icon:(0,react.createElement)(svg.Wj,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,i18n_build_module.__)("70 / 30"),description:(0,i18n_build_module.__)("Two columns; two-thirds, one-third split"),icon:(0,react.createElement)(svg.Wj,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,i18n_build_module.__)("33 / 33 / 33"),description:(0,i18n_build_module.__)("Three columns; equal split"),icon:(0,react.createElement)(svg.Wj,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,i18n_build_module.__)("25 / 50 / 25"),description:(0,i18n_build_module.__)("Three columns; wide center column"),icon:(0,react.createElement)(svg.Wj,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],columns_transforms_transforms={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:blocks=>{const columnWidth=+(100/blocks.length).toFixed(2),innerBlocksTemplate=blocks.map((_ref=>{let{name,attributes,innerBlocks}=_ref;return["core/column",{width:`${columnWidth}%`},[[name,{...attributes},innerBlocks]]]}));return(0,build_module.j4)("core/columns",{},(0,build_module.ne)(innerBlocksTemplate))},isMatch:_ref2=>{let{length:selectedBlocksLength}=_ref2;return selectedBlocksLength&&selectedBlocksLength<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:(attributes,innerBlocks)=>{const{align,backgroundColor,textColor,style,mediaAlt:alt,mediaId:id,mediaPosition,mediaSizeSlug:sizeSlug,mediaType,mediaUrl:url,mediaWidth,verticalAlignment}=attributes;let media;if("image"!==mediaType&&mediaType)media=["core/video",{id,src:url}];else{media=["core/image",{...{id,alt,url,sizeSlug},...{href:attributes.href,linkClass:attributes.linkClass,linkDestination:attributes.linkDestination,linkTarget:attributes.linkTarget,rel:attributes.rel}}]}const innerBlocksTemplate=[["core/column",{width:`${mediaWidth}%`},[media]],["core/column",{width:100-mediaWidth+"%"},innerBlocks]];return"right"===mediaPosition&&innerBlocksTemplate.reverse(),(0,build_module.j4)("core/columns",{align,backgroundColor,textColor,style,verticalAlignment},(0,build_module.ne)(innerBlocksTemplate))}}]},columns_transforms=columns_transforms_transforms,columns_metadata={apiVersion:2,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{blockGap:!0,margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{blockGap:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:columns_name}=columns_metadata,columns_settings={icon:library_columns,variations:columns_variations,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,i18n_build_module.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:columns_deprecated,edit:columns_edit,save:function columns_save_save(_ref){let{attributes}=_ref;const{isStackedOnMobile,verticalAlignment}=attributes,className=classnames_default()({[`are-vertically-aligned-${verticalAlignment}`]:verticalAlignment,"is-not-stacked-on-mobile":!isStackedOnMobile}),blockProps=block_editor_build_module.Wo.save({className}),innerBlocksProps=block_editor_build_module.fh.save(blockProps);return(0,react.createElement)("div",innerBlocksProps)},transforms:columns_transforms},comment_author_avatar=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M7.25 16.4371C6.16445 15.2755 5.5 13.7153 5.5 12C5.5 8.41015 8.41015 5.5 12 5.5C15.5899 5.5 18.5 8.41015 18.5 12C18.5 13.7153 17.8356 15.2755 16.75 16.4371V16C16.75 14.4812 15.5188 13.25 14 13.25L10 13.25C8.48122 13.25 7.25 14.4812 7.25 16V16.4371ZM8.75 17.6304C9.70606 18.1835 10.8161 18.5 12 18.5C13.1839 18.5 14.2939 18.1835 15.25 17.6304V16C15.25 15.3096 14.6904 14.75 14 14.75L10 14.75C9.30964 14.75 8.75 15.3096 8.75 16V17.6304ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM14 10C14 11.1046 13.1046 12 12 12C10.8954 12 10 11.1046 10 10C10 8.89543 10.8954 8 12 8C13.1046 8 14 8.89543 14 10Z",fillRule:"evenodd",clipRule:"evenodd",fill:"black"}));var extendStatics,__extends=(extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)},function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}),__assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i{isAxisControlled||(setMoveX(!1),setMoveY(!1))};(0,react.useEffect)((()=>{if(!(null!==width||null!==height))return;const didWidthChange=width!==widthRef.current,didHeightChange=height!==heightRef.current;if(didWidthChange||didHeightChange){if(width&&!widthRef.current&&height&&!heightRef.current)return widthRef.current=width,void(heightRef.current=height);didWidthChange&&(setMoveX(!0),widthRef.current=width),didHeightChange&&(setMoveY(!0),heightRef.current=height),onResize({width,height}),moveTimeoutRef.current&&utils_clearTimeout(moveTimeoutRef.current),moveTimeoutRef.current=utils_setTimeout(unsetMoveXY,fadeTimeout)}}),[width,height]);const label=function getSizeLabel(_ref2){let{axis,height,moveX=!1,moveY=!1,position=POSITIONS.bottom,showPx=!1,width}=_ref2;if(!moveX&&!moveY)return;if(position===POSITIONS.corner)return`${width} x ${height}`;const labelUnit=showPx?" px":"";if(axis){if("x"===axis&&moveX)return`${width}${labelUnit}`;if("y"===axis&&moveY)return`${height}${labelUnit}`}if(moveX&&moveY)return`${width} x ${height}`;if(moveX)return`${width}${labelUnit}`;if(moveY)return`${height}${labelUnit}`;return}({axis,height,moveX,moveY,position,showPx,width});return{label,resizeListener}}var emotion_styled_base_browser_esm=__webpack_require__("../../../node_modules/.pnpm/@emotion+styled@11.3.0_91407f9eb4eb8e1117ab61d4d046dc59/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),text_component=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/text/component.js"),colors_values=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/utils/colors-values.js");const Root=(0,emotion_styled_base_browser_esm.Z)("div",{target:"ekdag503"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),TooltipWrapper=(0,emotion_styled_base_browser_esm.Z)("div",{target:"ekdag502"})({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"}),Tooltip=(0,emotion_styled_base_browser_esm.Z)("div",{target:"ekdag501"})("background:",colors_values.DM.ui.border,";border-radius:2px;box-sizing:border-box;font-size:12px;color:",colors_values.DM.ui.textDark,";padding:4px 8px;position:relative;"),LabelText=(0,emotion_styled_base_browser_esm.Z)(text_component.Z,{target:"ekdag500"})("&&&{color:",colors_values.DM.ui.textDark,";display:block;font-size:13px;line-height:1.4;}");const ForwardedComponent=(0,react.forwardRef)((function Label(_ref,ref){let{label,position=POSITIONS.corner,zIndex=1e3,...props}=_ref;const showLabel=!!label,isBottom=position===POSITIONS.bottom,isCorner=position===POSITIONS.corner;if(!showLabel)return null;let style={opacity:showLabel?1:void 0,zIndex},labelStyle={};return isBottom&&(style={...style,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},labelStyle={transform:"translate(0, 100%)"}),isCorner&&(style={...style,position:"absolute",top:4,right:(0,i18n_build_module.dZ)()?void 0:4,left:(0,i18n_build_module.dZ)()?4:void 0}),(0,react.createElement)(TooltipWrapper,(0,esm_extends.Z)({"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref,style},props),(0,react.createElement)(Tooltip,{className:"components-resizable-tooltip__tooltip",style:labelStyle},(0,react.createElement)(LabelText,{as:"span"},label)))})),resize_tooltip_label=ForwardedComponent;const resize_tooltip=(0,react.forwardRef)((function ResizeTooltip(_ref,ref){let{axis,className,fadeTimeout=180,isVisible=!0,labelRef,onResize=lodash.noop,position=POSITIONS.bottom,showPx=!0,zIndex=1e3,...props}=_ref;const{label,resizeListener}=useResizeLabel({axis,fadeTimeout,onResize,showPx,position});if(!isVisible)return null;const classes=classnames_default()("components-resize-tooltip",className);return(0,react.createElement)(Root,(0,esm_extends.Z)({"aria-hidden":"true",className:classes,ref},props),resizeListener,(0,react.createElement)(resize_tooltip_label,{"aria-hidden":props["aria-hidden"],label,position,ref:labelRef,zIndex}))})),HANDLE_CLASS_NAME="components-resizable-box__handle",SIDE_HANDLE_CLASS_NAME="components-resizable-box__side-handle",CORNER_HANDLE_CLASS_NAME="components-resizable-box__corner-handle",HANDLE_CLASSES={top:classnames_default()(HANDLE_CLASS_NAME,SIDE_HANDLE_CLASS_NAME,"components-resizable-box__handle-top"),right:classnames_default()(HANDLE_CLASS_NAME,SIDE_HANDLE_CLASS_NAME,"components-resizable-box__handle-right"),bottom:classnames_default()(HANDLE_CLASS_NAME,SIDE_HANDLE_CLASS_NAME,"components-resizable-box__handle-bottom"),left:classnames_default()(HANDLE_CLASS_NAME,SIDE_HANDLE_CLASS_NAME,"components-resizable-box__handle-left"),topLeft:classnames_default()(HANDLE_CLASS_NAME,CORNER_HANDLE_CLASS_NAME,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:classnames_default()(HANDLE_CLASS_NAME,CORNER_HANDLE_CLASS_NAME,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:classnames_default()(HANDLE_CLASS_NAME,CORNER_HANDLE_CLASS_NAME,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:classnames_default()(HANDLE_CLASS_NAME,CORNER_HANDLE_CLASS_NAME,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},HANDLE_STYLES_OVERRIDES={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},HANDLE_STYLES={top:HANDLE_STYLES_OVERRIDES,right:HANDLE_STYLES_OVERRIDES,bottom:HANDLE_STYLES_OVERRIDES,left:HANDLE_STYLES_OVERRIDES,topLeft:HANDLE_STYLES_OVERRIDES,topRight:HANDLE_STYLES_OVERRIDES,bottomRight:HANDLE_STYLES_OVERRIDES,bottomLeft:HANDLE_STYLES_OVERRIDES};const resizable_box=(0,react.forwardRef)((function ResizableBox(_ref,ref){let{className,children,showHandle=!0,__experimentalShowTooltip:showTooltip=!1,__experimentalTooltipProps:tooltipProps={},...props}=_ref;return(0,react.createElement)(Resizable,(0,esm_extends.Z)({className:classnames_default()("components-resizable-box__container",showHandle&&"has-show-handle",className),handleClasses:HANDLE_CLASSES,handleStyles:HANDLE_STYLES,ref},props),children,showTooltip&&(0,react.createElement)(resize_tooltip,tooltipProps))}));const comment_author_avatar_metadata={apiVersion:2,name:"core/comment-author-avatar",title:"Comment Author Avatar",category:"theme",parent:["core/comment-template"],description:"Add the avatar of this comment's author.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,links:!1}}},{name:comment_author_avatar_name}=comment_author_avatar_metadata,comment_author_avatar_settings={icon:comment_author_avatar,edit:function Edit(_ref){let{attributes,context:{commentId},setAttributes}=_ref;const{height,width}=attributes,[avatars]=useEntityProp("root","comment","author_avatar_urls",commentId),[authorName]=useEntityProp("root","comment","author_name",commentId),avatarUrls=avatars?Object.values(avatars):null,sizes=avatars?Object.keys(avatars):null,minSize=sizes?sizes[0]:24,maxSize=sizes?sizes[sizes.length-1]:96,blockProps=(0,block_editor_build_module.Wo)(),maxSizeBuffer=Math.floor(2.5*maxSize),inspectorControls=(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Avatar Settings")},(0,react.createElement)(range_control.Z,{label:(0,i18n_build_module.__)("Image size"),onChange:newWidth=>setAttributes({width:newWidth,height:newWidth}),min:minSize,max:maxSizeBuffer,initialPosition:width,value:width}))),displayAvatar=avatarUrls?(0,react.createElement)(resizable_box,{size:{width,height},onResizeStop:(event,direction,elt,delta)=>{setAttributes({height:parseInt(height+delta.height,10),width:parseInt(width+delta.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,i18n_build_module.dZ)(),bottom:!0,left:(0,i18n_build_module.dZ)()},minWidth:minSize,maxWidth:maxSizeBuffer},(0,react.createElement)("img",(0,esm_extends.Z)({src:avatarUrls[avatarUrls.length-1],alt:`${authorName} ${(0,i18n_build_module.__)("Avatar")}`},blockProps))):(0,react.createElement)("p",blockProps,(0,i18n_build_module._x)("Comment Author Avatar","block title"));return(0,react.createElement)(react.Fragment,null,inspectorControls,(0,react.createElement)("div",null,displayAvatar))}},comment_author_name=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"#FFFFFF"},(0,react.createElement)(svg.y$,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,react.createElement)(svg.y$,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,react.createElement)(svg.Cd,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));const v1={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:migrate_font_family,isEligible(_ref){var _style$typography;let{style}=_ref;return null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.fontFamily}},comment_author_name_deprecated=[v1],comment_author_name_metadata={apiVersion:2,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",parent:["core/comment-template"],description:"Add the author name of this comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},{name:comment_author_name_name}=comment_author_name_metadata,comment_author_name_settings={icon:comment_author_name,edit:function edit_Edit(_ref){let{attributes:{isLink,linkTarget,textAlign},context:{commentId},setAttributes}=_ref;const blockProps=(0,block_editor_build_module.Wo)({className:classnames_default()({[`has-text-align-${textAlign}`]:textAlign})}),displayName=(0,use_select.Z)((select=>{const{getEntityRecord}=select(store),comment=getEntityRecord("root","comment",commentId),authorName=null==comment?void 0:comment.author_name;if(comment&&!authorName){var _user$name;const user=getEntityRecord("root","user",comment.author);return null!==(_user$name=null==user?void 0:user.name)&&void 0!==_user$name?_user$name:(0,i18n_build_module.__)("Anonymous")}return null!=authorName?authorName:""}),[commentId]),blockControls=(0,react.createElement)(block_editor_build_module.Zp,{group:"block"},(0,react.createElement)(block_editor_build_module.aE,{value:textAlign,onChange:newAlign=>setAttributes({textAlign:newAlign})})),inspectorControls=(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Link settings")},(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Link to authors URL"),onChange:()=>setAttributes({isLink:!isLink}),checked:isLink}),isLink&&(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Open in new tab"),onChange:value=>setAttributes({linkTarget:value?"_blank":"_self"}),checked:"_blank"===linkTarget})));if(!commentId||!displayName)return(0,react.createElement)(react.Fragment,null,inspectorControls,blockControls,(0,react.createElement)("div",blockProps,(0,react.createElement)("p",null,(0,i18n_build_module._x)("Comment Author","block title"))));const displayAuthor=isLink?(0,react.createElement)("a",{href:"#comment-author-pseudo-link",onClick:event=>event.preventDefault()},displayName):(0,react.createElement)("p",null,displayName);return(0,react.createElement)(react.Fragment,null,inspectorControls,blockControls,(0,react.createElement)("div",blockProps,displayAuthor))},deprecated:comment_author_name_deprecated},comment_content=(0,react.createElement)(svg.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const comment_content_metadata={apiVersion:2,name:"core/comment-content",title:"Comment Content",category:"theme",parent:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:comment_content_name}=comment_content_metadata,comment_content_settings={icon:comment_content,edit:function comment_content_edit_Edit(_ref){let{setAttributes,attributes:{textAlign},context:{commentId}}=_ref;const blockProps=(0,block_editor_build_module.Wo)({className:classnames_default()({[`has-text-align-${textAlign}`]:textAlign})}),[content]=useEntityProp("root","comment","content",commentId),blockControls=(0,react.createElement)(block_editor_build_module.Zp,{group:"block"},(0,react.createElement)(block_editor_build_module.aE,{value:textAlign,onChange:newAlign=>setAttributes({textAlign:newAlign})}));return commentId&&content?(0,react.createElement)(react.Fragment,null,blockControls,(0,react.createElement)("div",blockProps,(0,react.createElement)(disabled.Z,null,(0,react.createElement)(raw_html.Z,{key:"html"},content.rendered)))):(0,react.createElement)(react.Fragment,null,blockControls,(0,react.createElement)("div",blockProps,(0,react.createElement)("p",null,(0,i18n_build_module._x)("Comment Content","block title"))))}},post_date=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,react.createElement)(svg.y$,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"}));__webpack_require__("../../../node_modules/.pnpm/moment-timezone@0.5.34/node_modules/moment-timezone/moment-timezone.js"),__webpack_require__("../../../node_modules/.pnpm/moment-timezone@0.5.34/node_modules/moment-timezone/moment-timezone-utils.js");const VALID_UTC_OFFSET=/^[+-][0-1][0-9](:?[0-9][0-9])?$/;let build_module_settings={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:"",abbr:""}};function __experimentalGetSettings(){return build_module_settings}function setupWPTimezone(){moment_default().tz.add(moment_default().tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-build_module_settings.timezone.offset||0]}))}const formatMap={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S(momentDate){const num=momentDate.format("D");return momentDate.format("Do").replace(num,"")},w:"d",z:momentDate=>(parseInt(momentDate.format("DDD"),10)-1).toString(),W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:momentDate=>momentDate.daysInMonth(),L:momentDate=>momentDate.isLeapYear()?"1":"0",o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B(momentDate){const timezoned=moment_default()(momentDate).utcOffset(60),seconds=parseInt(timezoned.format("s"),10),minutes=parseInt(timezoned.format("m"),10),hours=parseInt(timezoned.format("H"),10);return parseInt(((seconds+60*minutes+3600*hours)/86.4).toString(),10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:momentDate=>momentDate.isDST()?"1":"0",O:"ZZ",P:"Z",T:"z",Z(momentDate){const offset=momentDate.format("Z"),sign="-"===offset[0]?-1:1,parts=offset.substring(1).split(":").map((n=>parseInt(n,10)));return sign*(60*parts[0]+parts[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function format(dateFormat){let i,char,dateValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;const newFormat=[],momentDate=moment_default()(dateValue);for(i=0;i1&&void 0!==arguments[1]?arguments[1]:new Date,timezone=arguments.length>2?arguments[2]:void 0;if(!0===timezone)return gmdateI18n(dateFormat,dateValue);!1===timezone&&(timezone=void 0);const dateMoment=buildMoment(dateValue,timezone);return dateMoment.locale(build_module_settings.l10n.locale),format(dateFormat,dateMoment)}function gmdateI18n(dateFormat){let dateValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;const dateMoment=moment_default()(dateValue).utc();return dateMoment.locale(build_module_settings.l10n.locale),format(dateFormat,dateMoment)}function buildMoment(dateValue){let timezone=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const dateMoment=moment_default()(dateValue);return timezone&&!isUTCOffset(timezone)?dateMoment.tz(timezone):timezone&&isUTCOffset(timezone)?dateMoment.utcOffset(timezone):build_module_settings.timezone.string?dateMoment.tz(build_module_settings.timezone.string):dateMoment.utcOffset(build_module_settings.timezone.offset)}function isUTCOffset(offset){return"number"==typeof offset||VALID_UTC_OFFSET.test(offset)}setupWPTimezone();var custom_select_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/custom-select-control/index.js");const deprecated_v1={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:migrate_font_family,isEligible(_ref){var _style$typography;let{style}=_ref;return null==style||null===(_style$typography=style.typography)||void 0===_style$typography?void 0:_style$typography.fontFamily}},comment_date_deprecated=[deprecated_v1],comment_date_metadata={apiVersion:2,name:"core/comment-date",title:"Comment Date",category:"theme",parent:["core/comment-template"],description:"Add the date of this comment.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:comment_date_name}=comment_date_metadata,comment_date_settings={icon:post_date,edit:function comment_date_edit_Edit(_ref){let{attributes:{format,isLink},context:{commentId},setAttributes}=_ref;const blockProps=(0,block_editor_build_module.Wo)(),[date]=useEntityProp("root","comment","date",commentId),[siteDateFormat]=useEntityProp("root","site","date_format"),settings=__experimentalGetSettings(),formatOptions=Object.values(settings.formats).map((formatOption=>({key:formatOption,name:dateI18n(formatOption,date||new Date)}))),resolvedFormat=format||siteDateFormat||settings.formats.date,inspectorControls=(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Format settings")},(0,react.createElement)(custom_select_control.Z,{hideLabelFromVision:!0,label:(0,i18n_build_module.__)("Date Format"),options:formatOptions,onChange:_ref2=>{let{selectedItem}=_ref2;return setAttributes({format:selectedItem.key})},value:formatOptions.find((option=>option.key===resolvedFormat))})),(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Link settings")},(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Link to comment"),onChange:()=>setAttributes({isLink:!isLink}),checked:isLink})));if(!commentId||!date)return(0,react.createElement)(react.Fragment,null,inspectorControls,(0,react.createElement)("div",blockProps,(0,react.createElement)("p",null,(0,i18n_build_module._x)("Comment Date","block title"))));let commentDate=(0,react.createElement)("time",{dateTime:dateI18n("c",date)},dateI18n(resolvedFormat,date));return isLink&&(commentDate=(0,react.createElement)("a",{href:"#comment-date-pseudo-link",onClick:event=>event.preventDefault()},commentDate)),(0,react.createElement)(react.Fragment,null,inspectorControls,(0,react.createElement)("div",blockProps,commentDate))},deprecated:comment_date_deprecated};var library_edit=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/edit.js");const comment_edit_link_metadata={apiVersion:2,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",parent:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},{name:comment_edit_link_name}=comment_edit_link_metadata,comment_edit_link_settings={icon:library_edit.Z,edit:function comment_edit_link_edit_Edit(_ref){let{attributes:{linkTarget,textAlign},setAttributes}=_ref;const blockProps=(0,block_editor_build_module.Wo)({className:classnames_default()({[`has-text-align-${textAlign}`]:textAlign})}),blockControls=(0,react.createElement)(block_editor_build_module.Zp,{group:"block"},(0,react.createElement)(block_editor_build_module.aE,{value:textAlign,onChange:newAlign=>setAttributes({textAlign:newAlign})})),inspectorControls=(0,react.createElement)(block_editor_build_module.Af,null,(0,react.createElement)(body.Z,{title:(0,i18n_build_module.__)("Link settings")},(0,react.createElement)(toggle_control.Z,{label:(0,i18n_build_module.__)("Open in new tab"),onChange:value=>setAttributes({linkTarget:value?"_blank":"_self"}),checked:"_blank"===linkTarget})));return(0,react.createElement)(react.Fragment,null,blockControls,inspectorControls,(0,react.createElement)("div",blockProps,(0,react.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:event=>event.preventDefault()},(0,i18n_build_module.__)("Edit"))))}},comment_reply_link=(0,react.createElement)(svg.Wj,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,react.createElement)(svg.y$,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));const comment_reply_link_edit=function comment_reply_link_edit_Edit(_ref){let{setAttributes,attributes:{textAlign}}=_ref;const blockProps=(0,block_editor_build_module.Wo)({className:classnames_default()({[`has-text-align-${textAlign}`]:textAlign})}),blockControls=(0,react.createElement)(block_editor_build_module.Zp,{group:"block"},(0,react.createElement)(block_editor_build_module.aE,{value:textAlign,onChange:newAlign=>setAttributes({textAlign:newAlign})}));return(0,react.createElement)(react.Fragment,null,blockControls,(0,react.createElement)("div",blockProps,(0,react.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:event=>event.preventDefault()},(0,i18n_build_module.__)("Reply"))))},comment_reply_link_metadata={apiVersion:2,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",parent:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},html:!1}},{name:comment_reply_link_name}=comment_reply_link_metadata,comment_reply_link_settings={edit:comment_reply_link_edit,icon:comment_reply_link};var layout=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/layout.js");const TEMPLATE=[["core/comment-author-avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function CommentTemplateInnerBlocks(){const innerBlocksProps=(0,block_editor_build_module.fh)({},{template:TEMPLATE});return(0,react.createElement)("li",innerBlocksProps)}const comment_template_metadata={apiVersion:2,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments-query-loop"],description:"Contains the block elements used to render a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["queryId","queryPerPage","postId"],supports:{reusable:!1,html:!1,align:!0}},{name:comment_template_name}=comment_template_metadata,comment_template_settings={icon:layout.Z,edit:function CommentTemplateEdit(_ref){let{clientId,context:{postId,queryPerPage}}=_ref;const blockProps=(0,block_editor_build_module.Wo)(),[activeBlockContext,setActiveBlockContext]=(0,react.useState)(),{comments,blocks}=(0,use_select.Z)((select=>{const{getEntityRecords}=select(store),{getBlocks}=select(block_editor_build_module.h);return{comments:getEntityRecords("root","comment",{post:postId,status:"approve",per_page:queryPerPage,order:"asc"}),blocks:getBlocks(clientId)}}),[queryPerPage,postId,clientId]),blockContexts=(0,react.useMemo)((()=>null==comments?void 0:comments.map((comment=>({commentId:comment.id})))),[comments]);return comments?comments.length?(0,react.createElement)("ul",blockProps,blockContexts&&blockContexts.map((blockContext=>(0,react.createElement)(block_editor_build_module.Q4,{key:blockContext.commentId,value:blockContext},blockContext===(activeBlockContext||blockContexts[0])?(0,react.createElement)(CommentTemplateInnerBlocks,null):(0,react.createElement)("li",null,(0,react.createElement)(block_editor_build_module.G3,{blocks,__experimentalLive:!0,__experimentalOnClick:()=>setActiveBlockContext(blockContext)})))))):(0,react.createElement)("p",blockProps," ",(0,i18n_build_module.__)("No results found.")):(0,react.createElement)("p",blockProps,(0,react.createElement)(spinner.Z,null))},save:function CommentTemplateSave(){return(0,react.createElement)(block_editor_build_module.gv.Content,null)}},post_comments=(0,react.createElement)(svg.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,react.createElement)(svg.y$,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));var dropdown=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/dropdown/index.js"),base_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/base-control/index.js"),number_control=__webpack_require__("../../../node_modules/.pnpm/@wordpress+components@19.1.1_@babel+core@7.16.0+react@17.0.2/node_modules/@wordpress/components/build-module/number-control/index.js"),library_settings=__webpack_require__("../../../node_modules/.pnpm/@wordpress+icons@6.1.1/node_modules/@wordpress/icons/build-module/library/settings.js");function CommentsQueryLoopToolbar(_ref){let{queryPerPage,setQuery}=_ref;return(0,react.createElement)(toolbar_group.Z,null,(0,react.createElement)(dropdown.Z,{renderToggle:_ref2=>{let{onToggle}=_ref2;return(0,react.createElement)(toolbar_button.Z,{icon:library_settings.Z,label:(0,i18n_build_module.__)("Display settings"),onClick:onToggle})},renderContent:()=>(0,react.createElement)(react.Fragment,null,(0,react.createElement)(base_control.Z,null,(0,react.createElement)(number_control.Z,{__unstableInputWidth:"60px",label:(0,i18n_build_module.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:value=>{const num=parseInt(value,10);isNaN(num)||num<1||num>100||setQuery({queryPerPage:num})},step:"1",value:queryPerPage,isDragEnabled:!1})))}))}const edit_TEMPLATE=[["core/comment-template"]];const comments_query_loop_metadata={apiVersion:2,name:"core/comments-query-loop",title:"Comments Query Loop",category:"theme",description:"An advanced block that allows displaying post comments based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},queryPerPage:{type:"number",default:4},tagName:{type:"string",default:"div"}},providesContext:{queryId:"queryId",queryPerPage:"queryPerPage"},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0}}},{name:comments_query_loop_name}=comments_query_loop_metadata,comments_query_loop_settings={icon:post_comments,edit:function CommentsQueryLoopEdit(_ref){let{attributes,setAttributes}=_ref;const{queryPerPage,tagName:TagName}=attributes,blockProps=(0,block_editor_build_module.Wo)(),innerBlocksProps=(0,block_editor_build_module.fh)(blockProps,{template:edit_TEMPLATE});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(block_editor_build_module.Zp,null,(0,react.createElement)(CommentsQueryLoopToolbar,{queryPerPage,setQuery:setAttributes})),(0,react.createElement)(block_editor_build_module.Af,{__experimentalGroup:"advanced"},(0,react.createElement)(select_control.Z,{label:(0,i18n_build_module.__)("HTML element"),options:[{label:(0,i18n_build_module.__)("Default (

)"),value:"div"},{label:"
",value:"section"},{label:"