File Editor
Directories:
.. (Back)
packages
Files:
152486453d0e39071cdb.bundle.js
294b4bf3066815c5927f.bundle.min.js
2f08057553c95b827d30.bundle.min.js
4748df03726015eef04f.bundle.min.js
49d9a23b08ff2c138b03.bundle.min.js
49d9a23b08ff2c138b03.bundle.min.js.LICENSE.txt
7b18c3f2f2bfffda289f.bundle.js
9c42cff515a6191fddaf.bundle.min.js
a730ee9caa710006b307.bundle.js
accordion.8799675460c73eb48972.bundle.min.js
accordion.c16b88b2e8a0c50189bc.bundle.js
admin-feedback.js
admin-feedback.min.js
admin-modules.js
admin-modules.min.js
admin-modules.min.js.LICENSE.txt
admin-notifications.js
admin-notifications.min.js
admin-notifications.min.js.LICENSE.txt
admin-top-bar.js
admin-top-bar.min.js
admin.js
admin.min.js
admin.min.js.LICENSE.txt
ai-admin.js
ai-admin.min.js
ai-admin.min.js.LICENSE.txt
ai-gutenberg.js
ai-gutenberg.min.js
ai-gutenberg.min.js.LICENSE.txt
ai-layout.js
ai-layout.min.js
ai-layout.min.js.LICENSE.txt
ai-media-library.js
ai-media-library.min.js
ai-media-library.min.js.LICENSE.txt
ai.js
ai.min.js
ai.min.js.LICENSE.txt
alert.c3c6a3fdf4745bd26b7f.bundle.js
alert.cbc2a0fee74ee3ed0419.bundle.min.js
announcements-app.js
announcements-app.min.js
announcements-app.min.js.LICENSE.txt
app-loader.js
app-loader.min.js
app-packages.js
app-packages.min.js
app-packages.min.js.LICENSE.txt
app.js
app.min.js
app.min.js.LICENSE.txt
atomic-widgets-editor.js
atomic-widgets-editor.min.js
b7931adecb98651a09c7.bundle.min.js
bdd4030576f6a94a4f0d.bundle.js
beta-tester.js
beta-tester.min.js
c96bb3445f3bc9de7d26.bundle.min.js
checklist.js
checklist.min.js
checklist.min.js.LICENSE.txt
common-modules.js
common-modules.min.js
common.js
common.min.js
common.min.js.LICENSE.txt
contact-buttons.31aad77620f461830ce9.bundle.min.js
contact-buttons.a5e2cc7274ba4c94eb66.bundle.js
container-converter.js
container-converter.min.js
container.a7f0a15dfa05df34e1f7.bundle.js
container.c65a2a923085e1120e75.bundle.min.js
counter.02cef29c589e742d4c8c.bundle.min.js
counter.3f74a246dff765f39aea.bundle.js
d91e4d7f57d57af2aab9.bundle.min.js
d9299811bc70ddb82fbf.bundle.js
dev-tools.js
dev-tools.min.js
e-home-screen.js
e-home-screen.min.js
e-wc-product-editor.js
e-wc-product-editor.min.js
e-wc-product-editor.min.js.LICENSE.txt
e3f753621bf9be55ec4d.bundle.js
editor-document.js
editor-document.min.js
editor-environment-v2.js
editor-environment-v2.min.js
editor-loader-v1.js
editor-loader-v1.min.js
editor-loader-v2.js
editor-loader-v2.min.js
editor-modules.js
editor-modules.min.js
editor-modules.min.js.LICENSE.txt
editor-notifications.js
editor-notifications.min.js
editor-notifications.min.js.LICENSE.txt
editor.js
editor.min.js
editor.min.js.LICENSE.txt
element-manager-admin.js
element-manager-admin.min.js
element-manager-admin.min.js.LICENSE.txt
elementor-admin-bar.js
elementor-admin-bar.min.js
f634673e5824ceb13f3d.bundle.js
fa0cbd4c7b6a8ad83224.bundle.js
fd6a00ae23a1bc2c6190.bundle.js
floating-bars.1ebb83f158244b35bda6.bundle.js
floating-bars.e4547b87bc6fb09381ca.bundle.min.js
floating-elements-modal.js
floating-elements-modal.min.js
frontend-modules.js
frontend-modules.min.js
frontend.js
frontend.min.js
gutenberg.js
gutenberg.min.js
image-carousel.4455c6362492d9067512.bundle.min.js
image-carousel.9399f19d95d7300cbc2e.bundle.js
import-export-admin.js
import-export-admin.min.js
kit-elements-defaults-editor.js
kit-elements-defaults-editor.min.js
kit-elements-defaults-editor.min.js.LICENSE.txt
kit-library.1f8d31888dc9d19dd031.bundle.min.js
kit-library.ac1a4cd5deae5526ce49.bundle.js
lightbox.01a419d1fcdd47a75a77.bundle.min.js
lightbox.2c9ae19597fcd2a76c3a.bundle.js
media-hints.js
media-hints.min.js
nested-accordion.82e5c4e9017e457a5f2e.bundle.js
nested-accordion.c3b109b714293a16bd95.bundle.min.js
nested-accordion.js
nested-accordion.min.js
nested-accordion.min.js.LICENSE.txt
nested-elements.js
nested-elements.min.js
nested-tabs.js
nested-tabs.min.js
nested-tabs.min.js.LICENSE.txt
nested-title-keyboard-handler.0b608656da2be746fb80.bundle.min.js
nested-title-keyboard-handler.92a73d7a8a75bcb8cd67.bundle.js
new-template.js
new-template.min.js
notes.js
notes.min.js
onboarding.4a4002ff7ea58bfa166e.bundle.min.js
onboarding.5ceee1b219b66e943cb0.bundle.js
progress.6d15c16f0f5c4792940f.bundle.js
progress.985f012a6336ab21cb44.bundle.min.js
responsive-bar.js
responsive-bar.min.js
styleguide-app-initiator.js
styleguide-app-initiator.min.js
styleguide-app-initiator.min.js.LICENSE.txt
styleguide.js
styleguide.min.js
tabs.520bc2ed4560c561029e.bundle.js
tabs.c2af5be7f9cb3cdcf3d5.bundle.min.js
text-editor.2c35aafbe5bf0e127950.bundle.min.js
text-editor.2f2f7e0ea1e16387a004.bundle.js
text-path.39fb59e43970222f5a3e.bundle.min.js
text-path.39fb59e43970222f5a3e.bundle.min.js.LICENSE.txt
text-path.a20877e832db83423958.bundle.js
toggle.31881477c45ff5cf9d4d.bundle.min.js
toggle.d79746a764407a0828ee.bundle.js
video.78c625e89ab767d621c5.bundle.min.js
video.817bd6a65a1542503aac.bundle.js
web-cli.js
web-cli.min.js
web-cli.min.js.LICENSE.txt
webpack.runtime.js
webpack.runtime.min.js
wp-audio.75f0ced143febb8cd31a.bundle.min.js
wp-audio.b8efdc046bc9df72a075.bundle.js
Create New File
Create
Edit File: ai-admin.min.js
/*! elementor - v3.25.0 - 13-11-2024 */ /*! For license information please see ai-admin.min.js.LICENSE.txt */ (()=>{var i={66535:(i,C,w)=>{"use strict";var x=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;_interopRequireWildcard(w(87363));var O=_interopRequireWildcard(w(61533)),S=w(37634);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==x(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var O={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(O,k,I):O[k]=i[k]}return O.default=i,w&&w.set(i,O),O}var k={render:function render(i,C){var w;try{var x=(0,S.createRoot)(C);x.render(i),w=function unmountFunction(){x.unmount()}}catch(x){O.render(i,C),w=function unmountFunction(){O.unmountComponentAtNode(C)}}return{unmount:w}}};C.default=k},17927:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.vocalTones=C.translateLanguages=C.textareaAutocomplete=C.textAutocomplete=C.codeHtmlAutocomplete=C.codeCssAutocomplete=void 0;var x=w(38003),O=[(0,x.__)("Craft a catchy slogan for","elementor"),(0,x.__)("Write a strong section header for","elementor"),(0,x.__)("Create a blog title for","elementor"),(0,x.__)("Suggest a 4 word headline for","elementor"),(0,x.__)("Write an attention grabbing title for","elementor")];C.textAutocomplete=O;var S=[(0,x.__)("Write a product description for","elementor"),(0,x.__)("Create a blog post for","elementor"),(0,x.__)("Craft an about us section for","elementor"),(0,x.__)("Offer a few sentences to invite visitors to","elementor"),(0,x.__)("Write microcopy for a submission form that includes","elementor")];C.textareaAutocomplete=S;var k=[(0,x.__)("GA event fired on every button element click (assume GA was loaded)","elementor"),(0,x.__)("Iframe code to embed a Spotify widget on my web page. My ID is 1234567890","elementor"),(0,x.__)("Write an embed code of Google Analytics","elementor"),(0,x.__)("Write an embed code of Facebook Pixel","elementor"),(0,x.__)("HTML code that embeds the following PDF into a webpage: link to PDF","elementor")];C.codeHtmlAutocomplete=k;var I=[(0,x.__)("On hover, animate 20% bigger, rotate 10 deg CCW","elementor"),(0,x.__)("Add a circle-shaped clip mask, semi transparent on hover","elementor"),(0,x.__)("Rainbow colored animated text gradient","elementor"),(0,x.__)("Add a 3D shadow to the text","elementor")];C.codeCssAutocomplete=I;var R=[{label:(0,x.__)("Casual","elementor")},{label:(0,x.__)("Confidence","elementor")},{label:(0,x.__)("Formal","elementor")},{label:(0,x.__)("Friendly","elementor")},{label:(0,x.__)("Inspirational","elementor")},{label:(0,x.__)("Motivational","elementor")},{label:(0,x.__)("Nostalgic","elementor")},{label:(0,x.__)("Playful","elementor")},{label:(0,x.__)("Professional","elementor")},{label:(0,x.__)("Scientific","elementor")},{label:(0,x.__)("Straightforward","elementor")},{label:(0,x.__)("Witty","elementor")}];C.vocalTones=R;var j=[{label:(0,x.__)("Arabic","elementor"),value:"ar-SA"},{label:(0,x.__)("Chinese","elementor"),value:"zh-CN"},{label:(0,x.__)("Czech","elementor"),value:"cs-CZ"},{label:(0,x.__)("Danish","elementor"),value:"da-DK"},{label:(0,x.__)("Dutch","elementor"),value:"nl-NL"},{label:(0,x.__)("English","elementor"),value:"en-US"},{label:(0,x.__)("Finnish","elementor"),value:"fi-FI"},{label:(0,x.__)("French","elementor"),value:"fr-FR"},{label:(0,x.__)("German","elementor"),value:"de-DE"},{label:(0,x.__)("Greek","elementor"),value:"el-GR"},{label:(0,x.__)("Hebrew","elementor"),value:"he-IL"},{label:(0,x.__)("Hungarian","elementor"),value:"hu-HU"},{label:(0,x.__)("Indonesian","elementor"),value:"id-ID"},{label:(0,x.__)("Italian","elementor"),value:"it-IT"},{label:(0,x.__)("Japanese","elementor"),value:"ja-JP"},{label:(0,x.__)("Korean","elementor"),value:"ko-KR"},{label:(0,x.__)("Persian","elementor"),value:"fa-IR"},{label:(0,x.__)("Polish","elementor"),value:"pl-PL"},{label:(0,x.__)("Portuguese","elementor"),value:"pt-PT"},{label:(0,x.__)("Russian","elementor"),value:"ru-RU"},{label:(0,x.__)("Spanish","elementor"),value:"es-ES"},{label:(0,x.__)("Swedish","elementor"),value:"sv-SE"},{label:(0,x.__)("Thai","elementor"),value:"th-TH"},{label:(0,x.__)("Turkish","elementor"),value:"tr-TR"},{label:(0,x.__)("Vietnamese","elementor"),value:"vi-VN"}];C.translateLanguages=j},46183:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.uploadImage=C.toggleFavoriteHistoryItem=C.setStatusFeedback=C.setGetStarted=C.getUserInformation=C.getTextToImageGeneration=C.getRemoteFrontendConfig=C.getRemoteConfig=C.getLayoutPromptEnhanced=C.getImageToImageUpscale=C.getImageToImageReplaceBackground=C.getImageToImageRemoveText=C.getImageToImageRemoveBackground=C.getImageToImageOutPainting=C.getImageToImageMaskGeneration=C.getImageToImageMaskCleanup=C.getImageToImageGeneration=C.getImagePromptEnhanced=C.getHistory=C.getFeaturedImage=C.getExcerpt=C.getEditText=C.getCustomCode=C.getCustomCSS=C.getCompletionText=C.generateLayout=C.deleteHistoryItem=void 0;var O=x(w(93231));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}var S=function request(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=arguments.length>3?arguments[3]:void 0;return Object.keys(C).length&&(window.elementorAiCurrentContext?C.context=window.elementorAiCurrentContext:C.context=window.elementorWpAiCurrentContext),new Promise((function(O,S){var k=elementorCommon.ajax.addRequest(i,{success:O,error:S,data:C},w);x&&k.jqXhr&&x.addEventListener("abort",k.jqXhr.abort)}))};C.getUserInformation=function getUserInformation(i){return S("ai_get_user_information",void 0,i)};C.getRemoteConfig=function getRemoteConfig(){return S("ai_get_remote_config")};C.getRemoteFrontendConfig=function getRemoteFrontendConfig(i,C){return S("ai_get_remote_frontend_config",{payload:i},C)};C.getCompletionText=function getCompletionText(i){return S("ai_get_completion_text",{payload:i})};C.getExcerpt=function getExcerpt(i){return S("ai_get_excerpt",{payload:i})};C.getFeaturedImage=function getFeaturedImage(i){return S("ai_get_featured_image",{payload:i})};C.getEditText=function getEditText(i){return S("ai_get_edit_text",{payload:i})};C.getCustomCode=function getCustomCode(i){return S("ai_get_custom_code",{payload:i})};C.getCustomCSS=function getCustomCSS(i){return S("ai_get_custom_css",{payload:i})};C.setGetStarted=function setGetStarted(){return S("ai_set_get_started")};C.setStatusFeedback=function setStatusFeedback(i){return S("ai_set_status_feedback",{response_id:i})};C.getTextToImageGeneration=function getTextToImageGeneration(i){return S("ai_get_text_to_image",{payload:i})};C.getImageToImageGeneration=function getImageToImageGeneration(i){return S("ai_get_image_to_image",{payload:i})};C.getImageToImageMaskCleanup=function getImageToImageMaskCleanup(i){return S("ai_get_image_to_image_mask_cleanup",{payload:i})};C.getImageToImageMaskGeneration=function getImageToImageMaskGeneration(i){return S("ai_get_image_to_image_mask",{payload:i})};C.getImageToImageOutPainting=function getImageToImageOutPainting(i){return S("ai_get_image_to_image_outpainting",{payload:i})};C.getImageToImageUpscale=function getImageToImageUpscale(i){return S("ai_get_image_to_image_upscale",{payload:i})};C.getImageToImageRemoveBackground=function getImageToImageRemoveBackground(i){return S("ai_get_image_to_image_remove_background",{payload:i})};C.getImageToImageReplaceBackground=function getImageToImageReplaceBackground(i){return S("ai_get_image_to_image_replace_background",{payload:i})};C.getImageToImageRemoveText=function getImageToImageRemoveText(i){return S("ai_get_image_to_image_remove_text",{image:i})};C.getImagePromptEnhanced=function getImagePromptEnhanced(i){return S("ai_get_image_prompt_enhancer",{prompt:i})};C.uploadImage=function uploadImage(i){return S("ai_upload_image",function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,O.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}({},i))};C.generateLayout=function generateLayout(i,C){return S("ai_generate_layout",i,!0,C)};C.getLayoutPromptEnhanced=function getLayoutPromptEnhanced(i,C){return S("ai_get_layout_prompt_enhancer",{prompt:i,enhance_type:C})};C.getHistory=function getHistory(i,C,w){return S("ai_get_history",{type:i,page:C,limit:w})};C.deleteHistoryItem=function deleteHistoryItem(i){return S("ai_delete_history_item",{id:i})};C.toggleFavoriteHistoryItem=function toggleFavoriteHistoryItem(i){return S("ai_toggle_favorite_history_item",{id:i})}},74270:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=x(w(23615)),I=x(w(88450)),R=w(35879),j=w(36619),W=function App(i){return O.default.createElement(S.DirectionProvider,{rtl:i.isRTL},O.default.createElement(S.ThemeProvider,{colorScheme:i.colorScheme},O.default.createElement(R.RequestIdsProvider,null,O.default.createElement(I.default,{type:i.type,controlType:i.controlType,onClose:i.onClose,onConnect:j.onConnect,getControlValue:i.getControlValue,setControlValue:i.setControlValue,additionalOptions:i.additionalOptions}))))};W.propTypes={colorScheme:k.default.oneOf(["auto","light","dark"]),type:k.default.string,controlType:k.default.string,onClose:k.default.func,getControlValue:k.default.func,setControlValue:k.default.func,additionalOptions:k.default.object,isRTL:k.default.bool};var N=W;C.default=N},95748:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.AlertDialog=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=function AlertDialog(i){var C=(0,S.useState)(!0),w=(0,k.default)(C,2),x=w[0],O=w[1];return x?S.default.createElement(I.Dialog,{open:!0,maxWidth:"lg"},S.default.createElement(I.DialogContent,{sx:{padding:0}},S.default.createElement(I.Typography,{sx:{textAlign:"center",padding:3}},i.message),S.default.createElement(I.Stack,{alignItems:"center",spacing:2,marginBottom:2},S.default.createElement(I.Button,{variant:"contained",type:"button",color:"primary",onClick:function onClick(){var C;O(!1),null===(C=i.onClose)||void 0===C||C.call(i)}},(0,R.__)("Close","elementor"))))):null};C.AlertDialog=W,W.propTypes={message:j.default.string.isRequired,onClose:j.default.func}},78029:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=x(w(23615)),j=w(34029),W=(0,k.styled)((function ElementorLogo(i){return O.default.createElement(k.SvgIcon,(0,S.default)({viewBox:"0 0 32 32"},i),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"}))}))((function(i){var C=i.theme;return{width:C.spacing(3),height:C.spacing(3),"& path":{fill:C.palette.text.primary}}})),N=function DialogHeader(i){return O.default.createElement(k.AppBar,{sx:{fontWeight:"normal"},color:"transparent",position:"relative"},O.default.createElement(k.Toolbar,{variant:"dense"},O.default.createElement(W,{sx:{mr:1}}),O.default.createElement(k.Typography,{component:"span",variant:"subtitle2",sx:{fontWeight:"bold",textTransform:"uppercase"}},(0,I.__)("AI","elementor")),O.default.createElement(k.Chip,{label:(0,I.__)("Beta","elementor"),color:"default",size:"small",sx:{ml:1}}),O.default.createElement(k.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{ml:"auto"}},i.children,O.default.createElement(k.IconButton,{size:"small","aria-label":"close",onClick:i.onClose,sx:{"&.MuiButtonBase-root":{mr:-1}}},O.default.createElement(j.XIcon,null)))))};N.propTypes={onClose:R.default.func.isRequired,children:R.default.oneOfType([R.default.arrayOf(R.default.node),R.default.node])};var G=N;C.default=G},4466:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=w(34029),j=function GenerateButton(i){return O.default.createElement(k.Button,(0,S.default)({variant:"contained",endIcon:O.default.createElement(R.AIIcon,{fontSize:"small"}),disabled:!prompt,"aria-label":(0,I.__)("search","elementor"),type:"submit",size:"small"},i))};C.default=j},71871:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=["sx","BoxProps"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N=function Loader(i){var C=i.sx,w=void 0===C?{}:C,x=i.BoxProps,k=void 0===x?{}:x,j=(0,I.default)(i,W);return O.default.createElement(R.Box,(0,S.default)({width:"100%",display:"flex",alignItems:"center"},k,{sx:_objectSpread({px:1.5,minHeight:function minHeight(i){return i.spacing(5)}},k.sx||{})}),O.default.createElement(R.LinearProgress,(0,S.default)({color:"secondary"},j,{sx:_objectSpread({width:"100%"},w)})))};N.propTypes={sx:j.default.object,BoxProps:j.default.object};var G=N;C.default=G},93970:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=x(w(23615)),I=function PromptActionSelection(i){var C=function labelToDashCash(i){return i.toLowerCase().replace(/ /g,"-")}(i.label),w=i.wrapperStyle,x=void 0===w?{maxWidth:138}:w;return O.default.createElement(S.FormControl,{size:"small",color:"secondary",fullWidth:!0,sx:x},O.default.createElement(S.InputLabel,{id:C},i.label),O.default.createElement(S.Select,{id:C,labelId:C,label:i.label,value:i.value||"",onChange:i.onChange,disabled:i.disabled,sx:{"&.Mui-disabled .MuiSelect-nativeInput":{backgroundColor:"initial",opacity:0}}},i.options.map((function(i){var C;return O.default.createElement(S.MenuItem,{dense:!0,key:i.label,value:null!==(C=i.value)&&void 0!==C?C:i.label},i.label)}))))};I.propTypes={label:k.default.string.isRequired,options:k.default.arrayOf(k.default.shape({label:k.default.string.isRequired,value:k.default.string})).isRequired,onChange:k.default.func.isRequired,value:k.default.string,wrapperStyle:k.default.object,disabled:k.default.bool};var R=I;C.default=R},77655:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=function PromptAction(i){return O.default.createElement(k.Chip,(0,S.default)({size:"large",color:"secondary",variant:"outlined"},i))};C.default=I},59441:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(93231)),R=x(w(40131)),j=w(36626),W=x(w(23615)),N=x(w(49529)),G=x(w(78029));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,I.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var $=function DraggablePaper(i){var C=(0,S.useState)({x:0,y:0}),w=(0,R.default)(C,2),x=w[0],O=w[1],I=(0,S.useRef)(null),W=(0,S.useRef)(null),G=function handlePositionBoundaries(){clearTimeout(W.current),W.current=setTimeout((function(){var i,C=null===(i=I.current)||void 0===i?void 0:i.getBoundingClientRect().top;C<0&&O((function(i){return _objectSpread(_objectSpread({},i),{},{y:i.y-C})}))}),50)};return(0,S.useEffect)((function(){var i=new ResizeObserver(G);return i.observe(I.current),function(){i.disconnect()}}),[]),S.default.createElement(N.default,{position:x,onDrag:function onDrag(i,C){var w=C.x,x=C.y;return O({x:w,y:x})},handle:".MuiAppBar-root",cancel:'[class*="MuiDialogContent-root"]',bounds:"parent"},S.default.createElement(j.Paper,(0,k.default)({},i,{ref:I})))},J=function PromptDialog(i){return S.default.createElement(j.Dialog,(0,k.default)({scroll:"paper",open:!0,fullWidth:!0,hideBackdrop:!0,PaperComponent:$,disableScrollLock:!0,sx:{"& .MuiDialog-container":{alignItems:"flex-start",mt:"18vh"}},PaperProps:{sx:{m:0,maxHeight:"76vh"}}},i),i.children)};J.propTypes={onClose:W.default.func.isRequired,children:W.default.node,maxWidth:W.default.oneOf(["xs","sm","md","lg","xl",!1])},J.Header=G.default,J.Content=j.DialogContent;var re=J;C.default=re},86960:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=O(w(73119)),I=O(w(70966)),R=w(36626),j=w(38003),W=O(w(23615)),N=["error","onRetry","actionPosition"],G=function PromptErrorMessage(i){var C=i.error,w=i.onRetry,O=void 0===w?function(){}:w,W=i.actionPosition,G=void 0===W?"default":W,$=(0,I.default)(i,N);function getQuotaReachedTrailMessage(i){return i?{text:S.default.createElement(R.AlertTitle,null,x((0,j.__)("You've used all AI credits for %s.","elementor"),i.toLowerCase())),description:(0,j.__)("Upgrade now to keep using this feature. You still have credits for other AI features (Text, Code, Images, Containers, etc.)","elementor"),buttonText:(0,j.__)("Upgrade now","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}}:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("It's time to upgrade.","elementor")),description:(0,j.__)("Enjoy the free trial? Upgrade now for unlimited access to built-in image, text and custom code generators.","elementor"),buttonText:(0,j.__)("Upgrade","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}}}var J=function getErrorMessage(){var i,w=C.message||C,x=null===(i=C.extra_data)||void 0===i?void 0:i.featureName,k={default:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},service_outage_internal:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},invalid_connect_data:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:S.default.createElement(S.default.Fragment,null,(0,j.__)("Try exiting Elementor and sign in again.","elementor")," ",S.default.createElement("a",{href:"https://elementor.com/help/disconnecting-reconnecting-your-elementor-account/",target:"_blank",rel:"noreferrer"},(0,j.__)("Show me how","elementor"))),buttonText:(0,j.__)("Reconnect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},not_connected:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("You aren't connected to Elementor AI.","elementor")),description:(0,j.__)("Elementor AI is just a few clicks away. Connect your account to instantly create texts and custom code.","elementor"),buttonText:(0,j.__)("Connect","elementor"),buttonAction:function buttonAction(){return window.open(window.ElementorAiConfig.connect_url)}},quota_reached_trail:getQuotaReachedTrailMessage(x),quota_reached_subscription:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("Looks like you're out of credits.","elementor")),description:(0,j.__)("Ready to take it to the next level?","elementor"),buttonText:(0,j.__)("Upgrade now","elementor"),buttonAction:function buttonAction(){return window.open("https://go.elementor.com/ai-popup-purchase-limit-reached/","_blank")}},rate_limit_network:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("Whoa! Slow down there.","elementor")),description:(0,j.__)("We can’t process that many requests so fast. Try again in 15 minutes.","elementor")},invalid_prompts:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("We were unable to generate that prompt.","elementor")),description:(0,j.__)("Seems like the prompt contains words that could generate harmful content. Write a different prompt to continue.","elementor")},service_unavailable:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},request_timeout_error:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("There was a glitch.","elementor")),description:(0,j.__)("Wait a moment and give it another go, or try tweaking the prompt.","elementor"),buttonText:(0,j.__)("Try again","elementor"),buttonAction:O},invalid_token:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("Try again","elementor")),description:(0,j.__)("Try exiting Elementor and sign in again.","elementor"),buttonText:(0,j.__)("Reconnect","elementor"),buttonAction:O},file_too_large:{text:S.default.createElement(R.AlertTitle,null,(0,j.__)("The file is too large.","elementor")),description:(0,j.__)("Please upload a file that is less than 4MB.","elementor")}};return k[w]||k.default}(),re=(null==J?void 0:J.buttonText)&&S.default.createElement(R.Button,{color:"inherit",size:"small",variant:"outlined",onClick:J.buttonAction},J.buttonText);return S.default.createElement(R.Alert,(0,k.default)({severity:J.severity||"error",action:"default"===G&&re},$),J.text,J.description,"bottom"===G&&S.default.createElement(R.Box,{sx:{mt:1}},re))};G.propTypes={error:W.default.oneOfType([W.default.object,W.default.string]),onRetry:W.default.func,actionPosition:W.default.oneOf(["default","bottom"])};var $=G;C.default=$},10905:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useSubscribeOnPromptHistoryAction=C.usePromptHistoryAction=C.PromptHistoryActionProvider=C.PromptHistoryActionContext=C.ACTION_TYPES=void 0;var S,k,I,R,j=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),W=x(w(40131)),N=x(w(93231)),G=x(w(23615)),$=w(62219),J=w(78293);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _createForOfIteratorHelper(i,C){var w="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(!w){if(Array.isArray(i)||(w=function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i))||C&&i&&"number"==typeof i.length){w&&(i=w);var x=0,O=function F(){};return{s:O,n:function n(){return x>=i.length?{done:!0}:{done:!1,value:i[x++]}},e:function e(i){throw i},f:O}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,k=!0,I=!1;return{s:function s(){w=w.call(i)},n:function n(){var i=w.next();return k=i.done,i},e:function e(i){I=!0,S=i},f:function f(){try{k||null==w.return||w.return()}finally{if(I)throw S}}}}function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x}var re=(0,j.createContext)({});C.PromptHistoryActionContext=re;var oe={type:"",id:"",data:null},ie=Object.freeze({REUSE:"reuse",EDIT:"edit",RESTORE:"restore",REMOVE:"remove"});C.ACTION_TYPES=ie;var le=(R={},(0,N.default)(R,$.HISTORY_TYPES.TEXT,(S={},(0,N.default)(S,ie.REUSE,!0),(0,N.default)(S,ie.EDIT,!0),(0,N.default)(S,ie.REMOVE,!0),S)),(0,N.default)(R,$.HISTORY_TYPES.CODE,(k={},(0,N.default)(k,ie.REUSE,!0),(0,N.default)(k,ie.REMOVE,!0),k)),(0,N.default)(R,$.HISTORY_TYPES.IMAGE,(I={},(0,N.default)(I,ie.RESTORE,!0),(0,N.default)(I,ie.REMOVE,!0),I)),R),ue=function PromptHistoryActionProvider(i){var C=i.children,w=(0,j.useState)(oe),x=(0,W.default)(w,2),O=x[0],S=x[1];return j.default.createElement(re.Provider,{value:{state:O,dispatch:S}},C)};C.PromptHistoryActionProvider=ue,ue.propTypes={children:G.default.node};C.usePromptHistoryAction=function usePromptHistoryAction(){var i=(0,j.useContext)(re),C=i.state,w=i.dispatch,x=(0,J.usePromptHistoryContext)(),O=x.historyType,S=x.onClose,k=function closeModalAfterAction(i){return function(){i.apply(void 0,arguments),S()}};return{promptHistoryAction:C,onPromptReuse:k((function onPromptReuse(i,C){return w({type:ie.REUSE,id:i,data:C})})),onResultEdit:k((function onResultEdit(i,C){return w({type:ie.EDIT,id:i,data:C})})),onImagesRestore:k((function onImagesRestore(i,C){return w({type:ie.RESTORE,id:i,data:C})})),getAllowedActions:function getAllowedActions(){return le[O]||{}}}};C.useSubscribeOnPromptHistoryAction=function useSubscribeOnPromptHistoryAction(i){var C=(0,j.useContext)(re).state;(0,j.useEffect)((function(){if(C.type){var w,x=_createForOfIteratorHelper(i);try{for(x.s();!(w=x.n()).done;){var O=w.value;C.type===(null==O?void 0:O.type)&&(null==O||O.handler(C))}}catch(i){x.e(i)}finally{x.f()}}}),[C])}},78293:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.usePromptHistoryContext=C.PromptHistoryProvider=C.PromptHistoryContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(23615)),R=w(62219),j=w(8227);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=(0,S.createContext)({});C.PromptHistoryContext=W;var N=".e-ai-dialog-content",G=function getContainer(){return document.querySelector(N)},$=function getContainerHeight(){var i=document.querySelector(N);return null==i?void 0:i.clientHeight},J=function getContentHeight(){return document.querySelector(N).children[0].clientHeight+50},re=function setContentHeight(i){var C=document.querySelector(N);C.style.height="auto"!==i?"".concat(i,"px"):"auto"},oe=function PromptHistoryProvider(i){var C=i.historyType,w=i.children,x=(0,S.useState)(!1);return S.default.createElement(W.Provider,{value:{historyType:C,showHistoryState:x}},w)};C.PromptHistoryProvider=oe,oe.propTypes={historyType:I.default.oneOf(Object.values(R.HISTORY_TYPES)).isRequired,children:I.default.node};C.usePromptHistoryContext=function usePromptHistoryContext(){var i=(0,S.useContext)(W),C=i.historyType,w=i.showHistoryState,x=(0,k.default)(w,2),O=x[0],I=x[1],N=(0,S.useState)(!1),oe=(0,k.default)(N,2),ie=oe[0],le=oe[1],ue=(0,S.useState)(!1),ce=(0,k.default)(ue,2),se=ce[0],de=ce[1];(0,S.useEffect)((function(){if(O!==ie||O!==se)return C===R.HISTORY_TYPES.IMAGE?function handleFullScreenHistoryState(){if(O)return le(!0),void setTimeout((function(){return de(!0)}),200);de(!1),setTimeout((function(){return le(!1)}),500)}():void function handleDefaultHistoryState(){if(O){var i=J();return re(i),void setTimeout((function(){if(i<(0,j.vh)(61))return re((0,j.vh)(61)),setTimeout((function(){return le(!0)}),200),void setTimeout((function(){return de(!0)}),300);le(!0),de(!0)}),20)}de(!1),setTimeout((function(){le(!1),re(J()),setTimeout((function(){return re("auto")}),300)}),500)}()}),[O]);return{historyType:C,isOpen:se,isModalOpen:ie,showHistory:O,onOpen:function onOpen(){I(!0)},onClose:function onClose(){I(!1)},getContainer:G,getContainerHeight:$}}},2456:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.renderPeriods=C.groupPromptHistoryData=C.LAST_7_DAYS_KEY=C.LAST_30_DAYS_KEY=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(9833)),I=w(38003),R=w(22809),j=x(w(27199));function _createForOfIteratorHelper(i,C){var w="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(!w){if(Array.isArray(i)||(w=function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i))||C&&i&&"number"==typeof i.length){w&&(i=w);var x=0,O=function F(){};return{s:O,n:function n(){return x>=i.length?{done:!0}:{done:!1,value:i[x++]}},e:function e(i){throw i},f:O}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,k=!0,I=!1;return{s:function s(){w=w.call(i)},n:function n(){var i=w.next();return k=i.done,i},e:function e(i){I=!0,S=i},f:function f(){try{k||null==w.return||w.return()}finally{if(I)throw S}}}}function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x}var W="date",N="7-days";C.LAST_7_DAYS_KEY=N;var G="30-days";C.LAST_30_DAYS_KEY=G;var $=(0,I.__)("F","elementor"),J=function groupPromptHistoryData(i){var C,w,x=function sortPromptHistoryData(i){return(0,k.default)(i).sort((function(i,C){return new Date(C[W])-new Date(i[W])}))}(i),O=new Date,j=(C={},(0,S.default)(C,N,{label:(0,I.__)("Last 7 days","elementor"),items:[]}),(0,S.default)(C,G,{label:(0,I.__)("Last 30 days","elementor"),items:[]}),C),J=_createForOfIteratorHelper(x);try{for(J.s();!(w=J.n()).done;){var re=w.value,oe=new Date(re[W]),ie=(0,R.daysDiff)(oe,O);if(ie<=7)j[N].items.push(re);else if(ie<=30)j[G].items.push(re);else{var le=oe.getMonth();j[le]||(j[le]={label:(0,R.translateDate)($,oe),items:[]}),j[le].items.push(re)}}}catch(i){J.e(i)}finally{J.f()}return j};C.groupPromptHistoryData=J;C.renderPeriods=function renderPeriods(i){var C,w,x,S,k=i.items,I=i.onDelete,W=J(k),$=[];null!==(C=W[N])&&void 0!==C&&null!==(w=C.items)&&void 0!==w&&w.length&&$.push(O.default.createElement(j.default,{periodTitle:W[N].label,onHistoryItemDelete:I,historyItems:W[N].items})),null!==(x=W[G])&&void 0!==x&&null!==(S=x.items)&&void 0!==S&&S.length&&$.push(O.default.createElement(j.default,{periodTitle:W[G].label,onHistoryItemDelete:I,historyItems:W[G].items}));for(var re=R.MONTH_DECEMBER_INDEX;re>=R.MONTH_JANUARY_INDEX;re--)W[re]&&$.push(O.default.createElement(j.default,{periodTitle:W[re].label,onHistoryItemDelete:I,historyItems:W[re].items}));return $}},63693:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S=x(w(87363)),k=x(w(73119)),I=x(w(70966)),R=x(w(79769)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(34029),$=["isActive"],J=(0,j.styled)(j.IconButton)(O||(O=(0,R.default)(["\n margin-right: ",";\n\n ","\n"])),(function(i){return i.theme.spacing(2)}),(function(i){var C=i.isActive,w=i.theme;return C&&"\n background-color: ".concat(w.palette.action.hover,";\n color: ").concat(w.palette.text.tertiary,";\n ")})),re=function PromptHistoryButton(i){var C=i.isActive,w=(0,I.default)(i,$);return S.default.createElement(J,(0,k.default)({"aria-label":(0,W.__)("Show prompt history","elementor"),type:"button",size:"small",isActive:C},w),S.default.createElement(G.HistoryIcon,null))};re.propTypes={isActive:N.default.bool.isRequired};var oe=re;C.default=oe},97662:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=w(36626),j=w(38003),W=x(w(87984)),N=x(w(78632)),G=x(w(69447)),$=x(w(86960)),J=w(2456),re=x(w(6688)),oe=x(w(43674)),ie=x(w(49821)),le=w(78293),ue=x(w(66390));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ce=["invalid_connect_data","no_subscription"],se=function PromptHistoryModal(i){var C=(0,S.useRef)((function(){})),w=(0,S.useRef)(null),x=(0,le.usePromptHistoryContext)(),O=x.historyType,se=x.onClose,de=(0,W.default)(O),he=de.items,ge=de.meta,ye=de.isLoading,ve=de.error,Ce=de.fetchData,Se=de.deleteItemById,Pe=(0,G.default)(),Ie=Pe.isLoading,Re=Pe.error,Me=Pe.deleteItem,De=ve||Re,Fe=ye||Ie,He=ge&&(null==ge?void 0:ge.currentPage)===(null==ge?void 0:ge.totalPages),Ue=(null==he?void 0:he.length)>0&&(null==ge?void 0:ge.allowedDays)<90&&He;(0,S.useEffect)((function(){C.current=(0,I.default)(k.default.mark((function _callee(){return k.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Ce({page:1,limit:10}));case 1:case"end":return i.stop()}}),_callee)}))),C.current()}),[]);var Ge=function(){var i=(0,I.default)(k.default.mark((function _callee4(i){return k.default.wrap((function _callee4$(w){for(;;)switch(w.prev=w.next){case 0:return C.current=(0,I.default)(k.default.mark((function _callee3(){return k.default.wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Me(i);case 2:return C.abrupt("return",C.sent);case 3:case"end":return C.stop()}}),_callee3)}))),w.next=3,C.current();case 3:Re||Se(i);case 4:case"end":return w.stop()}}),_callee4)})));return function onHistoryItemDelete(C){return i.apply(this,arguments)}}();return S.default.createElement(ue.default,i,S.default.createElement(N.default,{onClose:se}),De&&!ce.includes(De)&&S.default.createElement($.default,{error:De,onRetry:C.current,sx:{position:"absolute",zIndex:1,marginTop:Fe?.5:"revert"}}),Fe&&S.default.createElement(R.LinearProgress,{role:"progressbar","aria-label":(0,j.__)("Loading","elementor"),color:"secondary"}),S.default.createElement(R.Box,{sx:{overflowY:"scroll",height:"85%"},ref:w},De&&ce.includes(De)&&S.default.createElement(ie.default,{variant:"full",historyType:O}),!De&&0===(null==he?void 0:he.length)&&S.default.createElement(re.default,{historyType:O}),(null==he?void 0:he.length)>0&&S.default.createElement(oe.default,{loadMore:function loadNext(){Fe||He||(C.current=(0,I.default)(k.default.mark((function _callee2(){return k.default.wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Ce({page:ge.currentPage+1,limit:10}));case 1:case"end":return i.stop()}}),_callee2)}))),C.current())},getScrollParent:function getScrollParent(){return w.current},useWindow:!1,isReverse:!1,threshold:30,initialLoad:!1,hasMore:!He},(0,J.renderPeriods)({items:he,onDelete:Ge})),Ue&&S.default.createElement(ie.default,{variant:"small",historyType:O})))};C.default=se},62219:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.getTranslatedPromptHistoryType=C.TRANSLATED_HISTORY_TYPES_FALLBACK=C.TRANSLATED_HISTORY_TYPES=C.HISTORY_TYPES=void 0;var O,S=x(w(93231)),k=w(38003),I=Object.freeze({ALL:"all",TEXT:"text",CODE:"code",IMAGE:"images",BLOCK:"blocks"});C.HISTORY_TYPES=I;var R=(0,k.__)("things","elementor");C.TRANSLATED_HISTORY_TYPES_FALLBACK=R;var j=Object.freeze((O={},(0,S.default)(O,I.TEXT,(0,k.__)("texts","elementor")),(0,S.default)(O,I.CODE,(0,k.__)("code","elementor")),(0,S.default)(O,I.IMAGE,(0,k.__)("images","elementor")),(0,S.default)(O,I.BLOCK,(0,k.__)("blocks","elementor")),O));C.TRANSLATED_HISTORY_TYPES=j;C.getTranslatedPromptHistoryType=function getTranslatedPromptHistoryType(i){return j[i]?j[i]:R}},76719:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(63693)),k=x(w(97662)),I=w(78293),R="prompt-history-modal",j=function PromptHistory(){var i=(0,I.usePromptHistoryContext)(),C=i.isOpen,w=i.isModalOpen,x=i.onOpen,j=i.onClose;return O.default.createElement(O.default.Fragment,null,O.default.createElement(S.default,{isActive:C,onClick:function onClick(){return C?j():x()},"aria-haspopup":"dialog","aria-controls":R}),w&&O.default.createElement(k.default,{id:R}))};C.default=j},60315:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(23615)),k=x(w(28221)),I=w(34029),R=x(w(94345)),j=O.default.createElement(I.AIIcon,{"data-testid":"e-ph-fi"}),W=Object.freeze({"enhance-image-prompt":O.default.createElement(k.default,null),"get-text":O.default.createElement(k.default,null),"edit-text":O.default.createElement(k.default,null),"custom-css":O.default.createElement(R.default,null),"custom-code":O.default.createElement(R.default,null)}),N=function PromptHistoryActionIcon(i){var C=i.action;return W[C]?W[C]:j};N.propTypes={action:S.default.string.isRequired};var G=N;C.default=G},66390:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S=x(w(87363)),k=x(w(73119)),I=x(w(70966)),R=x(w(79769)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(78293),$=["children"],J=(0,j.styled)(j.Box)(O||(O=(0,R.default)(["\n width: 360px;\n position: relative;\n margin-top: ",";\n margin-right: ",";\n background-color: ",";\n border-radius: ",";\n height: ",";\n\n @media screen and (max-width: 456px) {\n width: 320px;\n }\n\n @media screen and (max-width: 420px) {\n width: 230px;\n }\n"])),(function(i){return i.theme.spacing(2)}),(function(i){return i.theme.spacing(2)}),(function(i){return i.theme.palette.background.paper}),(function(i){var C=i.theme;return"".concat(C.shape.borderRadius,"px")}),(function(i){var C=i.height;return"calc( ".concat(C,"px - 32px )")})),re=function ModalContainer(i){var C=i.children,w=(0,I.default)(i,$),x=(0,G.usePromptHistoryContext)(),O=x.isOpen,R=x.isModalOpen,N=x.onClose,re=x.getContainerHeight,oe=x.getContainer;return S.default.createElement(j.Modal,(0,k.default)({container:oe(),open:R,hideBackdrop:!0,onClose:N,sx:{position:"absolute"}},w),S.default.createElement(j.Backdrop,{open:!0,sx:{position:"absolute",justifyContent:"flex-end",alignItems:"flex-start"},"aria-hidden":!1},S.default.createElement(j.Slide,{direction:"left",in:O,timeout:500,easing:"ease-in-out"},S.default.createElement(J,{"aria-label":(0,W.__)("Prompt history modal","elementor"),height:re()},C))))};re.propTypes={isOpen:N.default.bool.isRequired,isModalOpen:N.default.bool.isRequired,onClose:N.default.func.isRequired,children:N.default.oneOfType([N.default.arrayOf(N.default.node),N.default.node])};var oe=re;C.default=oe},6688:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=w(36626),I=w(38003),R=O(w(23615)),j=w(62219),W=function PromptHistoryEmpty(i){var C=i.historyType;return S.default.createElement(k.Stack,{justifyContent:"center",sx:{height:"100%",textAlign:"center"},"data-testid":"e-ph-empty"},S.default.createElement(k.Typography,{variant:"h6"},(0,I.__)("Prepare to be amazed","elementor")),S.default.createElement(k.Typography,{variant:"body1"},x((0,I.__)("This is where you'll find all the %s you've generated using Elementor AI.","elementor"),(0,j.getTranslatedPromptHistoryType)(C))))};W.propTypes={historyType:R.default.oneOf(Object.values(j.HISTORY_TYPES)).isRequired};var N=W;C.default=N},78632:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=w(34029),j=(0,S.styled)(S.Box)((function(i){var C=i.theme;return{marginTop:0,padding:C.spacing(1.5),borderBottom:"1px solid ".concat(C.palette.action.focus),display:"flex",alignItems:"center",justifyContent:"space-between"}})),W=function PromptHistoryModalHeader(i){var C=i.onClose;return O.default.createElement(j,null,O.default.createElement(S.Typography,{fontWeight:"bolder",variant:"h6",sx:{userSelect:"none"}},(0,k.__)("History","elementor")),O.default.createElement(S.IconButton,{size:"small","aria-label":(0,k.__)("Hide prompt history","elementor"),onClick:C},O.default.createElement(R.XIcon,{fontSize:"small"})))};W.propTypes={onClose:I.default.func.isRequired};var N=W;C.default=N},93798:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=x(w(33977)),W=["tooltipTitle"],N=function ActionButton(i){var C=i.tooltipTitle,w=(0,k.default)(i,W);return O.default.createElement(j.default,{title:C,placement:"top"},O.default.createElement(I.IconButton,(0,S.default)({type:"button",size:"small",disableRipple:!0,disableFocusRipple:!0,disableTouchRipple:!0},w)))};N.propTypes={tooltipTitle:R.default.string.isRequired};var G=N;C.default=G},57951:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S,k=x(w(87363)),I=x(w(79769)),R=w(36626),j=x(w(23615)),W=(0,R.styled)(R.Typography)(O||(O=(0,I.default)(["\n color: ",";\n"])),(function(i){return i.theme.palette.secondary.light})),N=(0,R.styled)("img")(S||(S=(0,I.default)(["\n height: 72px;\n width: 72px;\n object-fit: cover;\n margin-right: ",";\n"])),(function(i){return i.theme.spacing(.5)})),G=function PromptHistoryItemSecondaryContent(i){var C=i.date,w=i.thumbnails;return k.default.createElement(R.Stack,{direction:"column",width:"90%"},k.default.createElement(W,{variant:"caption"},C),(null==w?void 0:w.length)>0&&k.default.createElement(R.Stack,{flexDirection:"row",mt:1},w.map((function(i){return k.default.createElement(N,{key:"thumbnail-".concat(i.seed),alt:"",src:i.image_url})}))))};G.propTypes={date:j.default.string.isRequired,thumbnails:j.default.array};var $=G;C.default=$},68383:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S=x(w(87363)),k=x(w(79769)),I=w(36626),R=x(w(23615)),j=x(w(33977)),W=(0,I.styled)(I.Typography)(O||(O=(0,k.default)(["\n margin-bottom: ",";\n"])),(function(i){return i.theme.spacing(.5)})),N=function PromptHistoryItemTitle(i){var C=i.prompt;return S.default.createElement(j.default,{title:C,arrow:!1,placement:"bottom-start"},S.default.createElement(W,{variant:"body2",noWrap:!0,paragraph:!0},C))};N.propTypes={prompt:R.default.string.isRequired};var G=N;C.default=G},49496:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O,S,k,I,R=x(w(87363)),j=x(w(70966)),W=x(w(79769)),N=w(36626),G=w(38003),$=x(w(23615)),J=x(w(33375)),re=w(34029),oe=x(w(71688)),ie=x(w(93798)),le=w(10905),ue=x(w(60315)),ce=x(w(28965)),se=x(w(68383)),de=x(w(57951)),he=["id","date","onHistoryItemDelete"],ge=(0,N.styled)(N.ListItem)(O||(O=(0,W.default)(["\n & .e-prompt-history-item-actions {\n position: absolute;\n top: -9999px;\n }\n\n &:hover,\n &:focus-visible,\n &:focus-within {\n .MuiTypography-body2 {\n font-weight: 700;\n max-width: ",";\n }\n\n .e-prompt-history-item-actions {\n position: relative;\n top: -3px;\n }\n }\n"])),(function(i){var C=i.actionsCount;return"calc(100% - ".concat(C," * 26px)")})),ye=(0,N.styled)(N.ListItemButton)(S||(S=(0,W.default)(["\n padding: ",";\n align-items: flex-start;\n cursor: inherit;\n"])),(function(i){return i.theme.spacing(.5,2)})),ve=(0,N.styled)(N.ListItemIcon)(k||(k=(0,W.default)(["\n min-width: auto;\n\n & > .MuiSvgIcon-root {\n margin-right: ",";\n font-size: 1rem;\n position: relative;\n top: ",";\n }\n"])),(function(i){return i.theme.spacing(1.5)}),(function(i){return i.theme.spacing(.5)})),Ce=(0,N.styled)(N.Box)(I||(I=(0,W.default)(["\n & .MuiSvgIcon-root {\n font-size: 1rem;\n }\n"]))),Se=function PromptHistoryItem(i){var C=i.id,w=i.date,x=i.onHistoryItemDelete,O=(0,j.default)(i,he),S=(0,le.usePromptHistoryAction)(),k=S.getAllowedActions,I=S.onPromptReuse,W=S.onResultEdit,$=S.onImagesRestore,Se=O.action,Pe=O.prompt,Ie=O.text,Re=O.images,Me=O.thumbnails,De=O.imageType,Fe=O.ratio,He=k();return R.default.createElement(ge,{tabIndex:"0","data-testid":"e-ph-i",disableGutters:!0,disablePadding:!0,actionsCount:Object.keys(He).length},R.default.createElement(ye,{component:"div",role:void 0},R.default.createElement(ve,null,R.default.createElement(ue.default,{action:Se})),R.default.createElement(N.ListItemText,{disableTypography:!0,primary:R.default.createElement(N.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",height:"16px"},R.default.createElement(se.default,{prompt:Pe}),R.default.createElement(Ce,{className:"e-prompt-history-item-actions"},He[le.ACTION_TYPES.REMOVE]&&R.default.createElement(ie.default,{onClick:function onClick(){return x(C)},"aria-label":(0,G.__)("Remove item","elementor"),tooltipTitle:(0,G.__)("Remove","elementor")},R.default.createElement(re.TrashIcon,null)),He[le.ACTION_TYPES.REUSE]&&R.default.createElement(ie.default,{onClick:function onClick(){return I(C,Pe)},"aria-label":(0,G.__)("Reuse prompt","elementor"),tooltipTitle:(0,G.__)("Reuse prompt","elementor")},R.default.createElement(ce.default,null)),He[le.ACTION_TYPES.RESTORE]&&R.default.createElement(ie.default,{onClick:function onClick(){return $(C,{prompt:Pe,images:Re,imageType:De,ratio:Fe})},"aria-label":(0,G.__)("Restore","elementor"),tooltipTitle:(0,G.__)("Restore","elementor")},R.default.createElement(oe.default,null)),He[le.ACTION_TYPES.EDIT]&&R.default.createElement(ie.default,{onClick:function onClick(){return W(C,Ie)},"aria-label":(0,G.__)("Edit result","elementor"),tooltipTitle:(0,G.__)("Edit","elementor")},R.default.createElement(J.default,null)))),secondary:R.default.createElement(de.default,{date:w,thumbnails:Me})})))};Se.propTypes={id:$.default.string.isRequired,action:$.default.string.isRequired,prompt:$.default.string.isRequired,date:$.default.string.isRequired,onHistoryItemDelete:$.default.func.isRequired,text:$.default.string,images:$.default.array,thumbnails:$.default.array,imageType:$.default.string,ratio:$.default.string};var Pe=Se;C.default=Pe},27199:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(49496)),N=w(22809),G=["id","date"],$=(0,I.styled)(I.List)((function(i){var C=i.theme;return{borderBottom:"1px solid ".concat(C.palette.action.focus)}})),J=(0,I.styled)(I.Typography)((function(i){var C=i.theme;return{padding:C.spacing(1.5,2),color:C.palette.secondary.light}})),re=(0,R.__)("F j, g:i A","elementor"),oe=function PromptHistoryPeriod(i){var C=i.periodTitle,w=i.historyItems,x=i.onHistoryItemDelete;return O.default.createElement($,{"data-testid":"e-ph-p",subheader:O.default.createElement(I.ListSubheader,{disableSticky:!0,disableGutters:!0},O.default.createElement(J,{variant:"body2",role:"heading","aria-level":"6"},C))},w.map((function(i){var C=i.id,w=i.date,I=(0,k.default)(i,G);return O.default.createElement(W.default,(0,S.default)({key:C,date:(0,N.translateDate)(re,w),onHistoryItemDelete:function onHistoryItemDelete(){return x(C)},id:C},I))})))};oe.propTypes={periodTitle:j.default.string.isRequired,historyItems:j.default.array.isRequired,onHistoryItemDelete:j.default.func.isRequired};var ie=oe;C.default=ie},49821:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S,k=O(w(87363)),I=O(w(93231)),R=w(36626),j=w(38003),W=O(w(23615)),N=w(34029),G=w(62219),$="full",J="small",re=(S={},(0,I.default)(S,$,(0,j.__)("Want to see your %s generation history for as far as the past 90 days?","elementor")),(0,I.default)(S,J,(0,j.__)("Want to see your %s generation history for the past 90 days?","elementor")),S),oe=function PromptHistoryUpgrade(i){var C=i.variant,w=i.historyType;return k.default.createElement(R.Stack,{justifyContent:"center",sx:{height:J===C?"auto":"100%",textAlign:"center",p:2},"data-testid":"e-ph-upgrade-".concat(C)},k.default.createElement(R.Typography,{variant:"body1",sx:{marginBottom:2}},function getMessage(i,C){var w=re[i]||re[$],O=(0,G.getTranslatedPromptHistoryType)(C);return x(w,O)}(C,w)),k.default.createElement(R.Button,{variant:"contained",color:"promotion",size:"small",href:"https://go.elementor.com/ai-popup-purchase-dropdown/",target:"_blank",rel:"noopener noreferrer",startIcon:k.default.createElement(N.UpgradeIcon,null),sx:{width:"50%",alignSelf:"center","&:hover":{color:"promotion.contrastText"}}},(0,j.__)("Upgrade now","elementor")))};oe.propTypes={variant:W.default.oneOf([$,J]).isRequired,historyType:W.default.oneOf(Object.values(G.HISTORY_TYPES)).isRequired};var ie=oe;C.default=ie},84515:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=function PromptLibraryLink(i){return O.default.createElement(S.Typography,{variant:"body2",color:"text.secondary"},(0,k.__)("For more suggestions, explore our")," ",O.default.createElement(S.Link,{href:i.libraryLink,className:"elementor-clickable",target:"_blank"},(0,k.__)("prompt library")))};R.propTypes={libraryLink:I.default.string};var j=R;C.default=j},51391:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=w(38003),R=x(w(3491));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var j=(0,S.forwardRef)((function(i,C){return S.default.createElement(R.default,(0,k.default)({name:"prompt",placeholder:(0,I.__)("Describe the text and tone you want to use","elementor")+"..."},i,{ref:C}))}));C.default=j},79619:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=function PromptSuggestions(i){var C;return O.default.createElement(S.Box,null,O.default.createElement(S.Typography,{variant:"subtitle1",color:"text.secondary"},(0,k.__)("Suggested prompts","elementor")+":"),O.default.createElement(S.Stack,{direction:"column",alignItems:"flex-start",gap:1,sx:{my:1}},null===(C=i.suggestions)||void 0===C?void 0:C.map((function(C,w){var x;return O.default.createElement(S.Chip,{key:w,variant:"outlined",size:"large",color:"secondary",label:(null===(x=i.suggestionFilter)||void 0===x?void 0:x.call(i,C))||C,onClick:function onClick(){return i.onSelect(C)}})}))),i.children)};R.propTypes={suggestions:I.default.arrayOf(I.default.string),onSelect:I.default.func.isRequired,suggestionFilter:I.default.func,children:I.default.node};var j=R;C.default=j},87105:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=w(36626),R=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var j=(0,S.forwardRef)((function(i,C){return S.default.createElement(I.TextField,(0,k.default)({inputRef:C,multiline:!0,minRows:4,maxRows:20,color:"secondary"},i))}));j.propTypes={value:R.default.string,onChange:R.default.func,helperText:R.default.string};var W=j;C.default=W},33977:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=["children"],W=function Tooltip(i){var C=i.children,w=(0,k.default)(i,j);return O.default.createElement(I.Tooltip,(0,S.default)({componentsProps:{tooltip:{sx:{'&.MuiTooltip-tooltip[class*="MuiTooltip-tooltipPlacement"]':{m:0,fontSize:"10px",fontWeight:500,lineHeight:"1.4em"},py:.5,px:1}}}},w),C)};W.propTypes={children:R.default.oneOfType([R.default.arrayOf(R.default.node),R.default.node])};var N=W;C.default=N},39453:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=["children"],W=function OverlayBarText(i){var C=i.children,w=(0,k.default)(i,j);return O.default.createElement(I.Typography,(0,S.default)({variant:"caption",color:"common.white"},w),C)};W.propTypes={children:R.default.node};var N=W;C.default=N},28932:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(36626),O=(0,x.styled)(x.Stack)((function(i){var C=i.theme,w=i.position,x={width:"100%",position:"absolute",left:0,padding:C.spacing(2.5)};return"top"===w?x.top=0:"bottom"===w&&(x.bottom=0),x}));C.default=O},22231:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(36626),O=(0,x.styled)(x.Box)((function(i){var C=i.theme;return{width:"100%",height:"100%",position:"absolute",backgroundColor:"rgba(0,0,0,0.5)",transition:"opacity ".concat(C.transitions.duration.short,"ms ").concat(C.transitions.easing.easeInOut),opacity:0,"&:hover":{opacity:1}}}));C.default=O},86300:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N=function Panel(i){var C=i.sx,w=void 0===C?{}:C,x=(0,I.default)(i,W);return O.default.createElement(O.default.Fragment,null,O.default.createElement(R.Box,(0,S.default)({sx:_objectSpread({p:4,width:360,flexShrink:0,height:"100%",overflowY:"auto"},w)},x),x.children),O.default.createElement(R.Divider,{orientation:"vertical"}))};N.propTypes={children:j.default.node,sx:j.default.object};var G=N;C.default=G},3491:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=w(36626),R=x(w(23615)),j=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=(0,I.styled)(I.TextField)((function(){return{".wp-admin & .MuiInputBase-input, & .MuiInputBase-input:focus":{backgroundColor:"initial",boxShadow:"none",border:0,color:"inherit",outline:0,padding:"16.5px 14px 16.5px 0","&.MuiInputBase-inputSizeSmall":{padding:"8.5px 14px 8.5px 0"}}}})),N=(0,S.forwardRef)((function(i,C){return S.default.createElement(W,(0,k.default)({autoFocus:!0,fullWidth:!0,required:!0,size:"small",color:"secondary",InputProps:{autoComplete:"off",startAdornment:S.default.createElement(I.InputAdornment,{position:"start"},S.default.createElement(j.SearchIcon,null))},placeholder:i.placeholder,name:i.name,value:i.value,onChange:i.onChange},i,{inputRef:C}))}));N.propTypes={placeholder:R.default.string,name:R.default.string,value:R.default.string,onChange:R.default.func};var G=N;C.default=G},7124:(i,C,w)=>{"use strict";var x=w(38003).__,O=w(23615),S=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var k=S(w(87363)),I=S(w(73119)),R=S(w(70966)),j=w(36626),W=["onClose"],N=function UpgradeBanner(i){var C=i.onClose,w=(0,R.default)(i,W);return k.default.createElement(j.Alert,(0,I.default)({icon:!1,action:k.default.createElement(j.AlertAction,{onClick:function onClick(){return window.open("https://go.elementor.com/ai-banner-free-upgrade/","_blank")}},x("Upgrade","elementor")),variant:"filled",color:"promotion",onClose:C},w),x("You’re using a limited license. Get maximum access to Elementor AI.","elementor"))};N.propTypes={onClose:O.func,sx:O.object};var G=N;C.default=G},46369:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(23615)),W=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var N=(0,I.styled)(I.Paper)((function(i){var C=i.theme;return{position:"relative",'[data-popper-placement="top"] &':{marginBottom:C.spacing(2.5)},'[data-popper-placement="bottom"] &':{marginTop:C.spacing(2.5)},padding:C.spacing(3),boxShadow:C.shadows[4],zIndex:"9999"}})),G=(0,I.styled)(I.Box)((function(i){var C=i.theme;return{width:C.spacing(5),height:C.spacing(2.5),position:"absolute",overflow:"hidden",left:"50% !important",transform:"translateX(-50%) rotate(var(--rotate, 0deg)) !important",'[data-popper-placement="top"] &':{top:"100%"},'[data-popper-placement="bottom"] &':{"--rotate":"180deg",top:"calc(".concat(C.spacing(2.5)," * -1)")},"&::after":{backgroundColor:C.palette.background.paper,content:'""',display:"block",position:"absolute",width:C.spacing(2.5),height:C.spacing(2.5),top:0,left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"1px 1px 5px 0px rgba(0, 0, 0, 0.2)",backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"}}})),$=[(0,R.__)("Get spot-on suggestions from AI Copilot and AI Context with appropriate designs, layouts, and content for your business.","elementor"),(0,R.__)("Generate professional texts about any topic, in any tone.","elementor"),(0,R.__)("Effortlessly create or enhance stunning images and bring your ideas to life.","elementor"),(0,R.__)("Unleash infinite possibilities with the custom code generator.","elementor"),(0,R.__)("Access 30-days of AI History with the AI Starter plan and 90-days with the Power plan.","elementor")],J=(0,I.styled)(I.Chip)((function(){return{"& .MuiChip-label":{lineHeight:1.5},"& .MuiSvgIcon-root.MuiChip-icon":{fontSize:"1.25rem"}}})),re=function UpgradeChip(i){var C=i.hasSubscription,w=void 0!==C&&C,x=i.usagePercentage,O=void 0===x?0:x,j=(0,S.useState)(!1),re=(0,k.default)(j,2),oe=re[0],ie=re[1],le=(0,S.useRef)(null),ue=(0,S.useRef)(null),ce="https://go.elementor.com/ai-popup-purchase-dropdown/";w&&(ce=O>=100?"https://go.elementor.com/ai-popup-upgrade-limit-reached/":"https://go.elementor.com/ai-popup-upgrade-limit-reached-80-percent/");var se=w?(0,R.__)("Upgrade Elementor AI","elementor"):(0,R.__)("Get Elementor AI","elementor");return S.default.createElement(I.Box,{component:"span","aria-owns":oe?"e-ai-upgrade-popover":void 0,"aria-haspopup":"true",onMouseEnter:function showPopover(){return ie(!0)},onMouseLeave:function hidePopover(){return ie(!1)},ref:le,display:"flex",alignItems:"center"},S.default.createElement(J,{color:"promotion",label:(0,R.__)("Upgrade","elementor"),icon:S.default.createElement(W.AIIcon,null),size:"small"}),S.default.createElement(I.Popper,{open:oe,anchorEl:le.current,sx:{zIndex:"170001",maxWidth:300},modifiers:[{name:"arrow",enabled:!0,options:{element:ue.current}}]},S.default.createElement(N,null,S.default.createElement(G,{ref:ue}),S.default.createElement(I.Typography,{variant:"h5",color:"text.primary"},(0,R.__)("Unlimited access to Elementor AI","elementor")),S.default.createElement(I.List,{sx:{mb:1}},$.map((function(i,C){return S.default.createElement(I.ListItem,{key:C,disableGutters:!0,sx:{alignItems:"flex-start"}},S.default.createElement(I.ListItemIcon,null,S.default.createElement(W.CheckedCircleIcon,null)),S.default.createElement(I.ListItemText,{sx:{m:0}},S.default.createElement(I.Typography,{variant:"body2"},i)))}))),S.default.createElement(I.Button,{variant:"contained",color:"promotion",size:"small",href:ce,target:"_blank",startIcon:S.default.createElement(W.AIIcon,null),sx:{"&:hover":{color:"promotion.contrastText"}}},se))))},oe=re;C.default=oe,re.propTypes={hasSubscription:j.default.bool,usagePercentage:j.default.number}},24256:(i,C,w)=>{"use strict";var x=w(38003).sprintf,O=w(38003).__,S=w(23615),k=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var I,R,j,W,N,G,$=k(w(87363)),J=k(w(70966)),re=k(w(73119)),oe=k(w(93231)),ie=w(36626),le=w(44220),ue=["onClose","usagePercentage","hasSubscription","feature"],ce="subscription",se="noSubscription",de=function getUsageTitle(i){return x(O("You’ve used %s of credits for this AI feature.","elementor"),i)},he=de("95%"),ge=de("80%"),ye=de("75%"),ve=O("Get maximum access.","elementor"),Ce=Object.keys(le.FREE_TRIAL_FEATURES_NAMES),Se=[{threshold:95,title:(I={},(0,oe.default)(I,ce,he),(0,oe.default)(I,se,he),I),url:(R={},(0,oe.default)(R,ce,"https://go.elementor.com/ai-banner-paid-95-limit-reach/"),(0,oe.default)(R,se,"https://go.elementor.com/ai-banner-free-95-limit-reach/"),R),color:"error"},{threshold:80,title:(j={},(0,oe.default)(j,ce,ge),(0,oe.default)(j,se,ge),j),url:(W={},(0,oe.default)(W,ce,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),(0,oe.default)(W,se,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),W),color:"warning"},{threshold:75,title:(N={},(0,oe.default)(N,ce,ye),(0,oe.default)(N,se,ye),N),url:(G={},(0,oe.default)(G,ce,"https://go.elementor.com/ai-banner-paid-80-limit-reach/"),(0,oe.default)(G,se,"https://go.elementor.com/ai-banner-free-80-limit-reach/"),G),color:"warning"}],Pe=function UpgradeButton(i){return $.default.createElement(ie.Button,(0,re.default)({color:"inherit",variant:"outlined",sx:{border:"2px solid"}},i),O("Upgrade now","elementor"))},Ie=function UsageLimitAlert(i){i.onClose;var C,w=i.usagePercentage,S=i.hasSubscription,k=i.feature,I=(0,J.default)(i,ue),R=Se.find((function(i){var C=i.threshold;return w>=C}));if(!R)return null;var j=S?ce:se,W=(C={},(0,oe.default)(C,ce,ve),(0,oe.default)(C,se,function getDescriptionNoSubscription(i){var C=Ce.filter((function(C){return C!==i})).map((function(i){return le.FREE_TRIAL_FEATURES_NAMES[i]})).join(", ");return x(O("Upgrade now to keep using this feature. You still have credits for other AI features (%s, etc.)","elementor"),C)}(k)),C),N=R.title,G=R.url,de=R.color;return $.default.createElement(ie.Alert,(0,re.default)({severity:"warning",action:$.default.createElement(Pe,{onClick:function handleUpgradeClick(){return window.open(G[j],"_blank")}}),color:de},I),$.default.createElement(ie.AlertTitle,null,N[j]),W[j])};Ie.propTypes={onClose:S.func,usagePercentage:S.number,hasSubscription:S.bool,feature:S.string};var Re=Ie;C.default=Re},86076:(i,C,w)=>{"use strict";var x=w(23615),O=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=O(w(87363)),k=O(w(7124)),I=O(w(24256)),R=O(w(66604)),j=function UsageMessages(i){var C=i.hasSubscription,w=i.usagePercentage,x=i.sx,O=i.feature,j=(0,R.default)({usagePercentage:w,hasSubscription:C}),W=j.showBanner,N=j.markBannerAsViewed;return S.default.createElement(S.default.Fragment,null,W&&S.default.createElement(k.default,{onClose:N,sx:x}),S.default.createElement(I.default,{hasSubscription:C,usagePercentage:w,sx:x,feature:O}))};j.propTypes={hasSubscription:x.bool,usagePercentage:x.number,sx:x.object,feature:x.string};var W=j;C.default=W},90246:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.VoicePromotionAlert=void 0;var O=x(w(93231)),S=x(w(87363)),k=w(36626),I=x(w(21103)),R=x(w(24395)),j=x(w(23615)),W=w(38003);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,O.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N=function VoicePromotionAlert(i){var C=(0,R.default)(i.introductionKey),w=C.isViewed,x=C.markAsViewed;return w?null:S.default.createElement(k.Box,{sx:_objectSpread({mt:2},i.sx),alignItems:"top"},S.default.createElement(k.Alert,{severity:"info",variant:"standard",icon:S.default.createElement(I.default,{sx:{alignSelf:"flex-start"}}),onClose:x},(0,W.__)("Get improved results from AI by adding personal context.","elementor"),S.default.createElement(k.Link,{onClick:function onClick(){return $e.route("panel/global/menu")},className:"elementor-clickable",style:{textDecoration:"none"},color:"info.main",href:"#"},(0,W.__)("Let’s do it","elementor"))))};C.VoicePromotionAlert=N,N.propTypes={sx:j.default.object,introductionKey:j.default.string};var G=N;C.default=G},30313:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=x(w(78029)),N=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var G=function WizardDialog(i){return O.default.createElement(R.Dialog,{open:!0,onClose:i.onClose,fullWidth:!0,hideBackdrop:!0,maxWidth:"lg",PaperProps:{sx:{height:"88vh"}},sx:{zIndex:9999}},i.children)};G.propTypes={onClose:j.default.func.isRequired,children:j.default.node.isRequired};var $=function WizardDialogContent(i){var C=i.sx,w=void 0===C?{}:C,x=(0,I.default)(i,N);return O.default.createElement(R.DialogContent,(0,S.default)({},x,{sx:_objectSpread({display:"flex",flexDirection:"column",justifyContent:"center"},w)}))};$.propTypes={sx:j.default.object},G.Header=W.default,G.Content=$;var J=G;C.default=J},35879:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.RequestIdsProvider=void 0,C.generateIds=function generateIds(i){var C;i.id=j().toString(),null!==(C=i.elements)&&void 0!==C&&C.length&&i.elements.map((function(i){return generateIds(i)}));return i},C.useRequestIds=C.getUniqueId=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var R=(0,S.createContext)({});C.useRequestIds=function useRequestIds(){var i=(0,S.useContext)(R);if(!i)throw new Error("useRequestIds must be used within a RequestIdsProvider");return i};var j=function getUniqueId(i){return i+"-"+Math.random().toString(16).substr(2,7)};C.getUniqueId=j,window.EDITOR_SESSION_ID=window.EDITOR_SESSION_ID||j("editor-session");var W=function RequestIdsProvider(i){var C=(0,S.useRef)(window.EDITOR_SESSION_ID),w=(0,S.useRef)(""),x=(0,S.useRef)(""),O=(0,S.useRef)(""),I=(0,S.useRef)("");w.current=j("session");var W=(0,S.useState)(0),N=(0,k.default)(W,2),G=N[0],$=N[1];return S.default.createElement(R.Provider,{value:{editorSessionId:C,sessionId:w,generateId:x,batchId:O,requestId:I,setGenerate:function setGenerate(){return x.current=j("generate"),x},setBatch:function setBatch(){return O.current=j("batch"),O},setRequest:function setRequest(){return I.current=j("request"),I},usagePercentage:G,updateUsagePercentage:function updateUsagePercentage(i){$(i)}}},i.children)};C.RequestIdsProvider=W,W.propTypes={children:I.default.node.isRequired};var N=R;C.default=N},22809:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.translateDate=C.daysDiff=C.MONTH_JANUARY_INDEX=C.MONTH_DECEMBER_INDEX=void 0;C.MONTH_DECEMBER_INDEX=12;C.MONTH_JANUARY_INDEX=0;C.translateDate=function translateDate(i,C,w){var x,O;return null!==(x=window.wp)&&void 0!==x&&x.date?(0,(null===(O=window.wp)||void 0===O?void 0:O.date).dateI18n)(i,C,w):C};C.daysDiff=function daysDiff(i,C){var w=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),x=Date.UTC(C.getFullYear(),C.getMonth(),C.getDate());return Math.floor((x-w)/864e5)}},44220:(i,C,w)=>{"use strict";var x=w(38003).__;Object.defineProperty(C,"__esModule",{value:!0}),C.FREE_TRIAL_FEATURES_NAMES=void 0;var O={TEXT:x("Text","elementor"),IMAGES:x("Images","elementor"),CODE:x("Code","elementor"),CONTAINERS:x("Containers","elementor")};C.FREE_TRIAL_FEATURES_NAMES=O},8227:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.vh=void 0;C.vh=function vh(i){return i*Math.max(document.documentElement.clientHeight,window.innerHeight||0)/100}},5348:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(93231)),k=x(w(10029)),I=w(46183),R=x(w(60675));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var j=function(){var i=(0,k.default)(O.default.mark((function _callee(i,C){var w,x,S;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:if(w=C.codeLanguage,x=C.htmlMarkup,S=C.elementId,"css"!==w){O.next=3;break}return O.abrupt("return",(0,I.getCustomCSS)(_objectSpread(_objectSpread({},i),{},{html_markup:x,element_id:S})));case 3:return O.abrupt("return",(0,I.getCustomCode)(_objectSpread(_objectSpread({},i),{},{language:w})));case 4:case"end":return O.stop()}}),_callee)})));return function getCodeResult(C,w){return i.apply(this,arguments)}}(),W=function useCodePrompt(i){var C=i.codeLanguage,w=i.htmlMarkup,x=i.elementId,O=i.initialCredits;return(0,R.default)((function(i){return j(i,{codeLanguage:C,htmlMarkup:w,elementId:x})}),{credits:O})};C.default=W},69447:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=x(w(40131)),I=w(87363),R=w(46183),j=function useDeletePromptHistoryItem(){var i=(0,I.useState)(!1),C=(0,k.default)(i,2),w=C[0],x=C[1],j=(0,I.useState)(""),W=(0,k.default)(j,2),N=W[0],G=W[1],$=function(){var i=(0,S.default)(O.default.mark((function _callee(i){return O.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",new Promise((function(C,w){G(""),x(!0),(0,R.deleteHistoryItem)(i).then((function(){C(!0)})).catch((function(i){var C=(null==i?void 0:i.responseText)||i;G(C),w(C)})).finally((function(){return x(!1)}))})));case 1:case"end":return C.stop()}}),_callee)})));return function deleteItem(C){return i.apply(this,arguments)}}();return{isLoading:w,error:N,deleteItem:$}};C.default=j},66690:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=function useImageNavigation(i){var C=(0,S.useState)(-1),w=(0,O.default)(C,2),x=w[0],k=w[1],I={reset:function reset(){return k(-1)},prev:function prev(){var C=x+1;C>=i.length&&(C=0),k(C)},next:function next(){var C=x-1;C<0&&(C=i.length-1),k(C)}};return{zoomIndex:x,setZoomIndex:k,actions:I}};C.default=k},30420:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=function useImagesPreload(){var i=(0,S.useState)(!1),C=(0,O.default)(i,2),w=C[0],x=C[1];return{ready:w,preloadImages:function preloadImages(i){x(!1),Promise.all(i.map((function(i){return function loadImage(i){return new Promise((function(C,w){var x=new Image;x.src=i,x.onload=function(){return C(i)},x.onerror=function(i){return w(i)}}))}(i)}))).then((function(){return x(!0)})).catch((function(i){return console.log("Failed to load images",i)}))}}};C.default=k},24395:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=function useIntroduction(i){var C,w,x,k,I=window.elementor?null===(C=window.elementor.config)||void 0===C?void 0:C.user:null===(w=window.elementorAdmin)||void 0===w||null===(x=w.config)||void 0===x?void 0:x.user,R=(0,S.useState)(!(null==I||null===(k=I.introduction)||void 0===k||!k[i])),j=(0,O.default)(R,2),W=j[0],N=j[1];return{isViewed:W,markAsViewed:function markAsViewed(){return i?new Promise((function(C,w){W&&w(),N(!0),elementorCommon.ajax.addRequest("introduction_viewed",{data:{introductionKey:i},error:function error(){N(!1),w()},success:function success(){N(!0),null!=I&&I.introduction&&(I.introduction[i]=!0),C()}})})):Promise.reject()}}};var O=x(w(40131)),S=w(87363)},8817:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(60675)),k=w(25455),I=new Map([["media",O.getImagePromptEnhanced],["layout",O.getLayoutPromptEnhanced]]),R=function usePromptEnhancer(i,C){var w=(0,k.useConfig)().mode,x=(0,S.default)((function(){return function getResult(i,C,w){if(!I.has(C))throw new Error("Invalid prompt type: ".concat(C));return I.get(C)(i,w)}(i,C,w)}),i),O=x.data,R=x.isLoading;return{enhance:x.send,isEnhancing:R,enhancedPrompt:null==O?void 0:O.result}};C.default=R},87984:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(9833)),k=x(w(10029)),I=x(w(40131)),R=x(w(93231)),j=w(87363),W=w(46183);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,R.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N=function getImageThumbnailURL(i,C){return i?"".concat(i,"/?o=").concat(btoa(C,!1)):C},G=function normalizeItems(i){var C=i.meta,w=i.items;return null==w?void 0:w.map((function(i){var w,x,O,S,k,I,R,j,W,G;return{id:null==i?void 0:i.elementorApiId,date:null==i?void 0:i.createdAt,action:null==i?void 0:i.action,prompt:null==i||null===(w=i.request)||void 0===w?void 0:w.prompt,imageType:null==i||null===(x=i.request)||void 0===x?void 0:x.image_type,ratio:null==i||null===(O=i.request)||void 0===O?void 0:O.ratio,text:null==i||null===(S=i.response)||void 0===S||null===(k=S.results)||void 0===k?void 0:k.text,images:null==i||null===(I=i.response)||void 0===I||null===(R=I.results)||void 0===R?void 0:R.images,thumbnails:null==i||null===(j=i.response)||void 0===j||null===(W=j.results)||void 0===W||null===(G=W.images)||void 0===G?void 0:G.map((function(i){return _objectSpread(_objectSpread({},i),{},{image_url:N(C.thumbnailUrl,i.image_url)})}))}}))},$=function usePromptHistory(i){var C=(0,j.useState)(!1),w=(0,I.default)(C,2),x=w[0],R=w[1],N=(0,j.useState)({}),$=(0,I.default)(N,2),J=$[0],re=$[1],oe=(0,j.useState)(""),ie=(0,I.default)(oe,2),le=ie[0],ue=ie[1],ce=function(){var C=(0,k.default)(O.default.mark((function _callee(C){var w,x;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:return w=C.page,x=C.limit,O.abrupt("return",new Promise((function(C,O){R(!0),(0,W.getHistory)(i,w,x).then((function(i){var w=JSON.parse(JSON.stringify(J));w.meta=i.meta,w.items=[].concat((0,S.default)((null==w?void 0:w.items)||[]),(0,S.default)(G(i))),re(w),C(!0)})).catch((function(i){var C=(null==i?void 0:i.responseText)||i;ue(C),O(C)})).finally((function(){return R(!1)}))})));case 2:case"end":return O.stop()}}),_callee)})));return function fetchData(i){return C.apply(this,arguments)}}();return{isLoading:x,error:le,items:J.items,meta:J.meta,fetchData:ce,deleteItemById:function deleteItemById(i){var C=J.items.findIndex((function(C){return C.id===i}));if(-1===C)return!1;var w=JSON.parse(JSON.stringify(J));return w.items.splice(C,1),re(w),!0}}};C.default=$},60675:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(93231)),k=x(w(10029)),I=x(w(40131)),R=x(w(70966)),j=w(87363),W=w(46183),N=w(35879),G=["text","response_id","usage","images"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var $=function normalizeResponse(i){var C=i.text,w=i.response_id,x=i.usage,O=i.images,S=(0,R.default)(i,G),k=x?x.quota-x.usedQuota:0,I={result:C||O,responseId:w,credits:Math.max(k,0),usagePercentage:null==x?void 0:x.usagePercentage};return S.base_template_id&&(I.baseTemplateId=S.base_template_id),I.type=S.template_type,I},J=function usePrompt(i,C){var w=(0,j.useState)(!1),x=(0,I.default)(w,2),S=x[0],R=x[1],G=(0,j.useState)(""),J=(0,I.default)(G,2),re=J[0],oe=J[1],ie=(0,j.useState)(C),le=(0,I.default)(ie,2),ue=le[0],ce=le[1],se=(0,N.useRequestIds)(),de=se.updateUsagePercentage,he=se.usagePercentage;(0,j.useEffect)((function(){var i=null==ue?void 0:ue.usagePercentage;i&&i!==he&&de(i)}),[ue,he,de]);var ge=(0,N.useRequestIds)(),ye=ge.setRequest,ve=ge.editorSessionId,Ce=ge.sessionId,Se=ge.generateId,Pe=ge.batchId,Ie=function(){var C=(0,k.default)(O.default.mark((function _callee(C){return O.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise((function(w,x){oe(""),R(!0);var O=ye(),S={editorSessionId:ve.current,sessionId:Ce.current,generateId:Se.current,batchId:Pe.current,requestId:O.current};C=_objectSpread(_objectSpread({},C),{},{requestIds:S}),i(C).then((function(i){var C=$(i);ce(C),w(C)})).catch((function(i){var C=(null==i?void 0:i.responseText)||i;oe(C),x(C)})).finally((function(){return R(!1)}))})));case 1:case"end":return w.stop()}}),_callee)})));return function send(i){return C.apply(this,arguments)}}();return{isLoading:S,error:re,data:ue,setResult:function setResult(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,w=_objectSpread({},ue);w.result=i,C&&(w.responseId=C),ce(w)},reset:function reset(){ce((function(i){return{credits:i.credits,result:"",responseId:""}})),oe(""),R(!1)},send:Ie,sendUsageData:function sendUsageData(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue;return i.responseId&&(0,W.setStatusFeedback)(i.responseId)}}};C.default=J},65441:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=w(46183),I=x(w(60675)),R=function(){var i=(0,S.default)(O.default.mark((function _callee(i){return O.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(null==i||!i.instruction){C.next=2;break}return C.abrupt("return",(0,k.getEditText)(i));case 2:return C.abrupt("return",(0,k.getCompletionText)(i));case 3:case"end":return C.stop()}}),_callee)})));return function getTextResult(C){return i.apply(this,arguments)}}(),j=function useTextPrompt(i){return(0,I.default)(R,i)};C.default=j},74859:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.useTimeout=void 0;var O=x(w(40131)),S=w(87363);C.useTimeout=function useTimeout(i){var C=(0,S.useState)(!1),w=(0,O.default)(C,2),x=w[0],k=w[1],I=(0,S.useRef)(null);return(0,S.useEffect)((function(){return I.current=setTimeout((function(){k(!0)}),i),function(){clearTimeout(I.current)}}),[i]),[x,function turnOffTimeout(){clearTimeout(I.current),k(!1)}]}},66604:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.USAGE_PERCENTAGE_THRESHOLD=void 0;var O=x(w(24395));C.USAGE_PERCENTAGE_THRESHOLD=75;var S=function useUpgradeMessage(i){var C=i.usagePercentage,w=i.hasSubscription,x=(0,O.default)("e-ai-upgrade-message"),S=!w;return{showBadge:C>=75||S,showBanner:!x.isViewed&&S&&C<75,markBannerAsViewed:x.markAsViewed}};C.default=S},5647:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(93231)),k=x(w(10029)),I=x(w(40131)),R=w(87363),j=w(46183),W=x(w(23615));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N=function useUserInfo(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],C=(0,R.useState)(!1),w=(0,I.default)(C,2),x=w[0],S=w[1],W=(0,R.useState)(!1),N=(0,I.default)(W,2),G=N[0],$=N[1],J=(0,R.useState)({is_connected:!1,is_get_started:!1,connect_url:"",usage:{hasAiSubscription:!1,quota:0,usedQuota:0}}),re=(0,I.default)(J,2),oe=re[0],ie=re[1],le=oe.usage.quota-oe.usage.usedQuota,ue=oe.usage.quota?oe.usage.usedQuota/oe.usage.quota*100:0,ce=function(){var C=(0,k.default)(O.default.mark((function _callee(){var C;return O.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return $(!0),w.next=3,(0,j.getUserInformation)(i);case 3:C=w.sent,ie((function(i){return _objectSpread(_objectSpread({},i),C)})),S(!0),$(!1);case 7:case"end":return w.stop()}}),_callee)})));return function fetchData(){return C.apply(this,arguments)}}();return x||G||ce(),{isLoading:G,isLoaded:x,isConnected:oe.is_connected,isGetStarted:oe.is_get_started,connectUrl:oe.connect_url,builderUrl:oe.usage.builderUrl,hasSubscription:oe.usage.hasAiSubscription,credits:le<0?0:le,usagePercentage:Math.round(ue),fetchData:ce}};N.propTypes={immediately:W.default.bool};var G=N;C.default=G},62682:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.53033 7.46967C9.82322 7.76256 9.82322 8.23744 9.53033 8.53033L6.81066 11.25H19C19.4142 11.25 19.75 11.5858 19.75 12C19.75 12.4142 19.4142 12.75 19 12.75H6.81066L9.53033 15.4697C9.82322 15.7626 9.82322 16.2374 9.53033 16.5303C9.23744 16.8232 8.76256 16.8232 8.46967 16.5303L4.46967 12.5303C4.17678 12.2374 4.17678 11.7626 4.46967 11.4697L8.46967 7.46967C8.76256 7.17678 9.23744 7.17678 9.53033 7.46967Z"}))}));C.default=I},88371:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=w(36626),k=x(w(87363)),I=k.default.forwardRef((function(i,C){return k.default.createElement(S.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),k.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8815 2.25919C20.9203 2.25301 20.9599 2.24983 21 2.24988C21.0827 2.24978 21.1629 2.26335 21.2384 2.2887C21.367 2.33162 21.4784 2.40776 21.5642 2.5058C21.6895 2.64891 21.76 2.83868 21.749 3.03992C21.7477 3.06492 21.7452 3.08966 21.7414 3.11407C21.3311 6.09743 20.124 8.91507 18.2472 11.2703C16.5079 13.4529 14.2532 15.1635 11.6906 16.2509C11.8289 17.1168 11.7249 18.0054 11.3884 18.8177C11.0289 19.6857 10.4201 20.4275 9.63896 20.9495C8.85782 21.4714 7.93946 21.75 7 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V17C2.25 16.0605 2.52858 15.1421 3.05052 14.361C3.57246 13.5799 4.3143 12.9711 5.18225 12.6115C5.99455 12.2751 6.88314 12.1711 7.74905 12.3094C8.83643 9.74682 10.547 7.49212 12.7296 5.75287C15.0837 3.87693 17.8998 2.67012 20.8815 2.25919ZM10.0984 16.0649C10.077 16.0082 10.0629 15.9506 10.0557 15.893C9.89413 15.4471 9.63624 15.04 9.2981 14.7019C8.96001 14.3638 8.55301 14.1059 8.10721 13.9444C8.04953 13.9372 7.99178 13.9231 7.93499 13.9016C7.90509 13.8903 7.87632 13.8773 7.84877 13.8628C7.77794 13.8436 7.70633 13.8268 7.63404 13.8124C7.0036 13.687 6.35014 13.7514 5.75628 13.9974C5.16242 14.2433 4.65484 14.6599 4.29772 15.1944C3.94061 15.7288 3.75 16.3572 3.75 17V20.25H7C7.64279 20.25 8.27114 20.0594 8.8056 19.7022C9.34006 19.3451 9.75662 18.8376 10.0026 18.2437C10.2486 17.6498 10.313 16.9964 10.1876 16.3659C10.1732 16.2935 10.1563 16.2218 10.1371 16.1509C10.1226 16.1234 10.1097 16.0947 10.0984 16.0649ZM10.3588 13.6412C10.7069 13.9894 10.9969 14.3876 11.2204 14.8204C12.2258 14.3839 13.1782 13.8417 14.0621 13.2048C13.3066 11.827 12.173 10.6933 10.7952 9.93782C10.1583 10.8218 9.61603 11.7741 9.17957 12.7795C9.61238 13.0031 10.0106 13.293 10.3588 13.6412ZM11.7434 8.75107C13.1943 9.59789 14.4021 10.8057 15.2489 12.2565C15.9093 11.6727 16.5204 11.0304 17.0741 10.3355C18.5698 8.45849 19.5983 6.25889 20.0821 3.9179C17.7411 4.40165 15.5415 5.43018 13.6644 6.92595C12.9696 7.47964 12.3273 8.0907 11.7434 8.75107Z"}))}));C.default=I},21103:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({},i,{ref:C}),S.default.createElement("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.default.createElement("g",{clipPath:"url(#clip0_10743_8902)"},S.default.createElement("path",{d:"M2.75 10.0833H3.66667M11 2.75V3.66667M18.3333 10.0833H19.25M5.13333 5.13333L5.775 5.775M16.8667 5.13333L16.225 5.775",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),S.default.createElement("path",{d:"M9.16675 16.041C8.70841 15.1243 6.91205 13.2842 6.62523 12.366C6.3384 11.4477 6.34775 10.4626 6.65195 9.54997C6.95615 8.63738 7.53978 7.84362 8.32016 7.28116C9.10054 6.71869 10.0381 6.41602 11.0001 6.41602C11.962 6.41602 12.8996 6.71869 13.68 7.28116C14.4604 7.84362 15.044 8.63738 15.3482 9.54997C15.6524 10.4626 15.6618 11.4477 15.3749 12.366C15.0881 13.2842 13.2917 15.1243 12.8334 16.041C12.8334 16.041 12.7597 17.3762 12.8334 17.8743C12.8334 18.3606 12.6403 18.8269 12.2964 19.1707C11.9526 19.5145 11.4863 19.7077 11.0001 19.7077C10.5139 19.7077 10.0475 19.5145 9.70372 19.1707C9.3599 18.8269 9.16675 18.3606 9.16675 17.8743C9.2405 17.3762 9.16675 16.041 9.16675 16.041Z",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),S.default.createElement("path",{d:"M10.0833 16.5H11.9166",stroke:"#2563EB",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),S.default.createElement("defs",null,S.default.createElement("clipPath",{id:"clip0_10743_8902"},S.default.createElement("rect",{width:"22",height:"22",fill:"white"})))))}));C.default=I},82752:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5303 18.2803C15.8232 17.9874 15.8232 17.5126 15.5303 17.2197L10.0607 11.75L15.5303 6.28033C15.8232 5.98744 15.8232 5.51256 15.5303 5.21967C15.2374 4.92678 14.7626 4.92678 14.4697 5.21967L8.46967 11.2197C8.17678 11.5126 8.17678 11.9874 8.46967 12.2803L14.4697 18.2803C14.7626 18.5732 15.2374 18.5732 15.5303 18.2803Z"}))}));C.default=I},49448:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.46967 18.2803C8.17678 17.9874 8.17678 17.5126 8.46967 17.2197L13.9393 11.75L8.46967 6.28033C8.17678 5.98744 8.17678 5.51256 8.46967 5.21967C8.76256 4.92678 9.23744 4.92678 9.53033 5.21967L15.5303 11.2197C15.8232 11.5126 15.8232 11.9874 15.5303 12.2803L9.53033 18.2803C9.23744 18.5732 8.76256 18.5732 8.46967 18.2803Z"}))}));C.default=I},78230:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 16 16"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6668 11.8334H3.66679C3.53235 11.8334 3.40357 11.7792 3.30952 11.6832L0.505518 8.81921L0.504041 8.81772C0.287672 8.59928 0.16626 8.30423 0.16626 7.99671C0.16626 7.68849 0.288225 7.3928 0.505518 7.17421L0.506568 7.17316L7.17323 0.506492L7.17429 0.505442C7.39288 0.288149 7.68857 0.166183 7.99679 0.166183C8.30501 0.166183 8.6007 0.288149 8.81929 0.505442L8.82034 0.50649L12.1547 3.84088C12.372 4.05947 12.494 4.35516 12.494 4.66338C12.494 4.97134 12.3722 5.26679 12.1553 5.48533L12.1547 5.48588L6.86473 10.8334H10.6668C10.9429 10.8334 11.1668 11.0572 11.1668 11.3334C11.1668 11.6095 10.9429 11.8334 10.6668 11.8334ZM7.87959 1.21435C7.91079 1.18349 7.9529 1.16618 7.99679 1.16618C8.04067 1.16618 8.08278 1.18349 8.11398 1.21434L11.4455 4.54588C11.4763 4.57707 11.494 4.61951 11.494 4.66338C11.494 4.70741 11.4766 4.74965 11.4455 4.78088L11.4447 4.78174L10.0411 6.20059L6.46721 2.62673L7.87959 1.21435ZM5.7601 3.33383L1.21473 7.87921C1.18387 7.91041 1.16626 7.95282 1.16626 7.99671C1.16626 8.04074 1.18368 8.08298 1.21473 8.11421L1.2174 8.11691L3.877 10.8334H5.4581L9.33779 6.91152L5.7601 3.33383Z"}))}));C.default=I},94345:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",d:"M7.53 7.47a.75.75 0 0 1 0 1.06L4.06 12l3.47 3.47a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0ZM16.47 7.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06L19.94 12l-3.47-3.47a.75.75 0 0 1 0-1.06ZM14.182 3.272a.75.75 0 0 1 .546.91l-4 16a.75.75 0 0 1-1.456-.364l4-16a.75.75 0 0 1 .91-.546Z",clipRule:"evenodd"}))}));C.default=I},85541:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 3.75C8.30964 3.75 7.75 4.30964 7.75 5V15C7.75 15.6904 8.30964 16.25 9 16.25H19C19.6904 16.25 20.25 15.6904 20.25 15V5C20.25 4.30964 19.6904 3.75 19 3.75H9ZM6.25 5C6.25 3.48122 7.48122 2.25 9 2.25H19C20.5188 2.25 21.75 3.48122 21.75 5V15C21.75 16.5188 20.5188 17.75 19 17.75H9C7.48122 17.75 6.25 16.5188 6.25 15V5Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 7.75C4.66848 7.75 4.35054 7.8817 4.11612 8.11612C3.8817 8.35054 3.75 8.66848 3.75 9V19C3.75 19.3315 3.8817 19.6495 4.11612 19.8839C4.35054 20.1183 4.66848 20.25 5 20.25H15C15.3315 20.25 15.6495 20.1183 15.8839 19.8839C16.1183 19.6495 16.25 19.3315 16.25 19V17C16.25 16.5858 16.5858 16.25 17 16.25C17.4142 16.25 17.75 16.5858 17.75 17V19C17.75 19.7293 17.4603 20.4288 16.9445 20.9445C16.4288 21.4603 15.7293 21.75 15 21.75H5C4.27065 21.75 3.57118 21.4603 3.05546 20.9445C2.53973 20.4288 2.25 19.7293 2.25 19V9C2.25 8.27065 2.53973 7.57118 3.05546 7.05546C3.57118 6.53973 4.27065 6.25 5 6.25H7C7.41421 6.25 7.75 6.58579 7.75 7C7.75 7.41421 7.41421 7.75 7 7.75H5Z"}))}));C.default=I},68873:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6667 0.208496C17.0534 0.208496 17.4244 0.362142 17.6979 0.635632C17.9714 0.909123 18.125 1.28006 18.125 1.66683V11.6668C18.125 12.0536 17.9714 12.4245 17.6979 12.698C17.4244 12.9715 17.0534 13.1252 16.6667 13.1252H14.7917V16.6668C14.7917 17.0536 14.638 17.4245 14.3645 17.698C14.091 17.9715 13.7201 18.1252 13.3333 18.1252H3.33333C2.94656 18.1252 2.57563 17.9715 2.30214 17.698C2.02865 17.4245 1.875 17.0536 1.875 16.6668V6.66683C1.875 6.28005 2.02865 5.90912 2.30214 5.63563C2.57563 5.36214 2.94656 5.2085 3.33333 5.2085H5.20833V1.66683C5.20833 1.28005 5.36198 0.909122 5.63547 0.635632C5.90896 0.362142 6.27989 0.208496 6.66667 0.208496H16.6667ZM6.66667 1.4585C6.61141 1.4585 6.55842 1.48045 6.51935 1.51952C6.48028 1.55859 6.45833 1.61158 6.45833 1.66683V3.54183H8.54167V1.4585H6.66667ZM3.125 9.79183V16.6668C3.125 16.7221 3.14695 16.7751 3.18602 16.8141C3.22509 16.8532 3.27808 16.8752 3.33333 16.8752H13.3333C13.3886 16.8752 13.4416 16.8532 13.4806 16.8141C13.5197 16.7751 13.5417 16.7221 13.5417 16.6668V13.1252H6.66667C6.27989 13.1252 5.90896 12.9715 5.63547 12.698C5.36198 12.4245 5.20833 12.0536 5.20833 11.6668V9.79183H3.125ZM5.20833 8.54183H3.125V6.66683C3.125 6.61158 3.14695 6.55859 3.18602 6.51952C3.22509 6.48045 3.27808 6.4585 3.33333 6.4585H5.20833V8.54183ZM6.45833 11.6668C6.45833 11.7221 6.48028 11.7751 6.51935 11.8141C6.55842 11.8532 6.61141 11.8752 6.66667 11.8752H16.6667C16.7219 11.8752 16.7749 11.8532 16.814 11.8141C16.853 11.7751 16.875 11.7221 16.875 11.6668V4.79183H6.45833V11.6668ZM9.79167 1.4585V3.54183H16.875V1.66683C16.875 1.61157 16.853 1.55858 16.814 1.51952C16.7749 1.48045 16.7219 1.4585 16.6667 1.4585H9.79167Z"}))}));C.default=I},90350:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.25C4.41421 16.25 4.75 16.5858 4.75 17V19C4.75 19.3315 4.8817 19.6495 5.11612 19.8839C5.35054 20.1183 5.66848 20.25 6 20.25H18C18.3315 20.25 18.6495 20.1183 18.8839 19.8839C19.1183 19.6495 19.25 19.3315 19.25 19V17C19.25 16.5858 19.5858 16.25 20 16.25C20.4142 16.25 20.75 16.5858 20.75 17V19C20.75 19.7293 20.4603 20.4288 19.9445 20.9445C19.4288 21.4603 18.7293 21.75 18 21.75H6C5.27065 21.75 4.57118 21.4603 4.05546 20.9445C3.53973 20.4288 3.25 19.7293 3.25 19V17C3.25 16.5858 3.58579 16.25 4 16.25Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46967 10.4697C6.76256 10.1768 7.23744 10.1768 7.53033 10.4697L12 14.9393L16.4697 10.4697C16.7626 10.1768 17.2374 10.1768 17.5303 10.4697C17.8232 10.7626 17.8232 11.2374 17.5303 11.5303L12.5303 16.5303C12.2374 16.8232 11.7626 16.8232 11.4697 16.5303L6.46967 11.5303C6.17678 11.2374 6.17678 10.7626 6.46967 10.4697Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4V16C12.75 16.4142 12.4142 16.75 12 16.75C11.5858 16.75 11.25 16.4142 11.25 16V4C11.25 3.58579 11.5858 3.25 12 3.25Z"}))}));C.default=I},33375:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9697 4.96967C14.6408 4.29858 15.5509 3.92157 16.5 3.92157C17.4491 3.92157 18.3592 4.29858 19.0303 4.96967C19.7014 5.64075 20.0784 6.55094 20.0784 7.5C20.0784 8.44905 19.7014 9.35924 19.0303 10.0303L8.53033 20.5303C8.38968 20.671 8.19891 20.75 8 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V16C3.25 15.8011 3.32902 15.6103 3.46967 15.4697L13.9697 4.96967ZM16.5 5.42157C15.9488 5.42157 15.4201 5.64055 15.0303 6.03033L4.75 16.3107V19.25H7.68934L17.9697 8.96967C18.3595 8.57989 18.5784 8.05123 18.5784 7.5C18.5784 6.94876 18.3595 6.42011 17.9697 6.03033C17.5799 5.64055 17.0512 5.42157 16.5 5.42157Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9697 5.96967C13.2626 5.67677 13.7374 5.67677 14.0303 5.96967L18.0303 9.96967C18.3232 10.2626 18.3232 10.7374 18.0303 11.0303C17.7374 11.3232 17.2626 11.3232 16.9697 11.0303L12.9697 7.03033C12.6768 6.73743 12.6768 6.26256 12.9697 5.96967Z"}))}));C.default=I},46819:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.11612 5.11612C5.35054 4.8817 5.66848 4.75 6 4.75H18C18.3315 4.75 18.6495 4.8817 18.8839 5.11612C19.1183 5.35054 19.25 5.66848 19.25 6V18C19.25 18.3315 19.1183 18.6495 18.8839 18.8839C18.6495 19.1183 18.3315 19.25 18 19.25H11.7335C11.7444 19.1709 11.75 19.0908 11.75 19.01V14.01C11.75 13.8051 11.7141 13.604 11.6457 13.4149L16.25 8.81066V11C16.25 11.4142 16.5858 11.75 17 11.75C17.4142 11.75 17.75 11.4142 17.75 11V7C17.75 6.89831 17.7298 6.80134 17.6931 6.71291C17.6565 6.62445 17.6022 6.54158 17.5303 6.46967C17.4584 6.39776 17.3755 6.34351 17.2871 6.30691C17.1993 6.27051 17.1031 6.2503 17.0022 6.25C17.0015 6.25 17.0007 6.25 17 6.25H16.9997H13C12.5858 6.25 12.25 6.58579 12.25 7C12.25 7.41421 12.5858 7.75 13 7.75H15.1893L10.5803 12.359C10.3956 12.2941 10.1995 12.26 10 12.26H5C4.91585 12.26 4.83232 12.2661 4.75 12.278V6C4.75 5.66848 4.8817 5.35054 5.11612 5.11612ZM4.75 14.01V18C4.75 18.3315 4.8817 18.6495 5.11612 18.8839C5.35054 19.1183 5.66848 19.25 6 19.25H10.07C10.11 19.2383 10.1468 19.2168 10.1768 19.1868C10.2237 19.1399 10.25 19.0763 10.25 19.01V14.01C10.25 13.9437 10.2237 13.8801 10.1768 13.8332C10.1299 13.7863 10.0663 13.76 10 13.76H5C4.9337 13.76 4.87011 13.7863 4.82322 13.8332C4.77634 13.8801 4.75 13.9437 4.75 14.01ZM3.25 14.01V6C3.25 5.27065 3.53973 4.57118 4.05546 4.05546C4.57118 3.53973 5.27065 3.25 6 3.25H18C18.7293 3.25 19.4288 3.53973 19.9445 4.05546C20.4603 4.57118 20.75 5.27065 20.75 6V18C20.75 18.7293 20.4603 19.4288 19.9445 19.9445C19.4288 20.4603 18.7293 20.75 18 20.75H10.187C10.1251 20.7566 10.0627 20.76 10 20.76H5C4.53587 20.76 4.09075 20.5756 3.76256 20.2474C3.43438 19.9193 3.25 19.4741 3.25 19.01V18V14.01Z"}))}));C.default=I},18578:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=O.default.forwardRef((function(i,C){return O.default.createElement(k.SvgIcon,(0,S.default)({viewBox:"0 0 24 24"},i,{ref:C}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.30691 2.71291C2.27024 2.80134 2.25 2.89831 2.25 3V8C2.25 8.41421 2.58579 8.75 3 8.75C3.41421 8.75 3.75 8.41421 3.75 8V4.81066L10.0056 11.0663L10.0057 11.0663C10.8022 11.8631 11.2497 12.9434 11.25 14.07V14.0702V15V21C11.25 21.4142 11.5858 21.75 12 21.75C12.4142 21.75 12.75 21.4142 12.75 21V15V14.0702V14.07C12.7503 12.9434 13.1979 11.863 13.9944 11.0663L20.25 4.81066V8C20.25 8.41421 20.5858 8.75 21 8.75C21.4142 8.75 21.75 8.41421 21.75 8V3C21.75 2.98706 21.7497 2.97419 21.749 2.96141C21.7446 2.87376 21.7251 2.79009 21.6931 2.71291C21.6565 2.62445 21.6022 2.54158 21.5303 2.46967C21.4584 2.39776 21.3755 2.34351 21.2871 2.30691C21.1987 2.27024 21.1017 2.25 21 2.25H16C15.5858 2.25 15.25 2.58579 15.25 3C15.25 3.41421 15.5858 3.75 16 3.75H19.1893L12.9337 10.0057L12.9336 10.0057C12.5656 10.3739 12.2526 10.7867 12 11.2316C11.7474 10.7867 11.4344 10.3739 11.0664 10.0057L11.0663 10.0057L4.81066 3.75H8C8.41421 3.75 8.75 3.41421 8.75 3C8.75 2.58579 8.41421 2.25 8 2.25H3C2.7937 2.25 2.60686 2.33329 2.47126 2.46808C2.47073 2.46861 2.4702 2.46914 2.46967 2.46967C2.46914 2.4702 2.46861 2.47073 2.46808 2.47126C2.39696 2.5428 2.34324 2.62511 2.30691 2.71291Z"}))}));C.default=I},49294:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3.25H8C8.41421 3.25 8.75 3.58579 8.75 4C8.75 4.41421 8.41421 4.75 8 4.75H5.81066L10.5303 9.46967C10.8232 9.76256 10.8232 10.2374 10.5303 10.5303C10.2374 10.8232 9.76256 10.8232 9.46967 10.5303L4.75 5.81066V8C4.75 8.41421 4.41421 8.75 4 8.75C3.58579 8.75 3.25 8.41421 3.25 8V4C3.25 3.58579 3.58579 3.25 4 3.25ZM13.4697 13.4697C13.7626 13.1768 14.2374 13.1768 14.5303 13.4697L19.25 18.1893V16C19.25 15.5858 19.5858 15.25 20 15.25C20.4142 15.25 20.75 15.5858 20.75 16V20C20.75 20.4142 20.4142 20.75 20 20.75H16C15.5858 20.75 15.25 20.4142 15.25 20C15.25 19.5858 15.5858 19.25 16 19.25H18.1893L13.4697 14.5303C13.1768 14.2374 13.1768 13.7626 13.4697 13.4697Z"}))}));C.default=I},7882:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 3.25C15.5858 3.25 15.25 3.58579 15.25 4C15.25 4.41421 15.5858 4.75 16 4.75H18.1893L13.4697 9.46967C13.1768 9.76256 13.1768 10.2374 13.4697 10.5303C13.7626 10.8232 14.2374 10.8232 14.5303 10.5303L19.25 5.81066V8C19.25 8.41421 19.5858 8.75 20 8.75C20.4142 8.75 20.75 8.41421 20.75 8V4C20.75 3.80806 20.6768 3.61612 20.5303 3.46967C20.4584 3.39776 20.3755 3.34351 20.2871 3.30691C20.1987 3.27024 20.1017 3.25 20 3.25H16ZM4 15.25C4.41421 15.25 4.75 15.5858 4.75 16V18.1893L9.46967 13.4697C9.76256 13.1768 10.2374 13.1768 10.5303 13.4697C10.8232 13.7626 10.8232 14.2374 10.5303 14.5303L5.81066 19.25H8C8.41421 19.25 8.75 19.5858 8.75 20C8.75 20.4142 8.41421 20.75 8 20.75H4C3.80806 20.75 3.61612 20.6768 3.46967 20.5303C3.39776 20.4584 3.34351 20.3755 3.30691 20.2871C3.27024 20.1987 3.25 20.1017 3.25 20V16C3.25 15.5858 3.58579 15.25 4 15.25ZM20.75 16V20C20.75 20.1017 20.7298 20.1987 20.6931 20.2871C20.6565 20.3755 20.6022 20.4584 20.5303 20.5303C20.4584 20.6022 20.3755 20.6565 20.2871 20.6931C20.2099 20.7251 20.1262 20.7446 20.0386 20.749C20.0258 20.7497 20.0129 20.75 20 20.75H16C15.5858 20.75 15.25 20.4142 15.25 20C15.25 19.5858 15.5858 19.25 16 19.25H18.1893L13.4697 14.5303C13.1768 14.2374 13.1768 13.7626 13.4697 13.4697C13.7626 13.1768 14.2374 13.1768 14.5303 13.4697L19.25 18.1893V16C19.25 15.5858 19.5858 15.25 20 15.25C20.4142 15.25 20.75 15.5858 20.75 16ZM3.71291 3.30691C3.80134 3.27024 3.89831 3.25 4 3.25H8C8.41421 3.25 8.75 3.58579 8.75 4C8.75 4.41421 8.41421 4.75 8 4.75H5.81066L10.5303 9.46967C10.8232 9.76256 10.8232 10.2374 10.5303 10.5303C10.2374 10.8232 9.76256 10.8232 9.46967 10.5303L4.75 5.81066V8C4.75 8.41421 4.41421 8.75 4 8.75C3.58579 8.75 3.25 8.41421 3.25 8V4C3.25 3.7937 3.33329 3.60686 3.46808 3.47126C3.46861 3.47073 3.46914 3.4702 3.46967 3.46967C3.4702 3.46914 3.47073 3.46861 3.47126 3.46808C3.5428 3.39696 3.62511 3.34324 3.71291 3.30691Z"}))}));C.default=I},30344:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.8125 11.9996C7.29473 11.9996 6.875 12.4473 6.875 12.9996V18.9996C6.875 19.5519 7.29473 19.9996 7.8125 19.9996H17.1875C17.7053 19.9996 18.125 19.5519 18.125 18.9996V12.9996C18.125 12.4473 17.7053 11.9996 17.1875 11.9996H7.8125ZM5 12.9996C5 11.3428 6.2592 9.99963 7.8125 9.99963H17.1875C18.7408 9.99963 20 11.3428 20 12.9996V18.9996C20 20.6565 18.7408 21.9996 17.1875 21.9996H7.8125C6.2592 21.9996 5 20.6565 5 18.9996V12.9996Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 3.90527C11.7044 3.90527 10.9413 4.22134 10.3787 4.78395C9.81607 5.34656 9.5 6.10962 9.5 6.90527V10.9053C9.5 11.4576 9.05228 11.9053 8.5 11.9053C7.94772 11.9053 7.5 11.4576 7.5 10.9053V6.90527C7.5 5.57919 8.02678 4.30742 8.96447 3.36974C9.90215 2.43206 11.1739 1.90527 12.5 1.90527C13.8261 1.90527 15.0979 2.43206 16.0355 3.36974C16.9732 4.30742 17.5 5.57919 17.5 6.90527V10.9053C17.5 11.4576 17.0523 11.9053 16.5 11.9053C15.9477 11.9053 15.5 11.4576 15.5 10.9053V6.90527C15.5 6.10962 15.1839 5.34656 14.6213 4.78395C14.0587 4.22134 13.2956 3.90527 12.5 3.90527Z"}),S.default.createElement("path",{d:"M6 12H19V20H6V12Z"}))}));C.default=I},7377:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.46967 3.46967C3.76256 3.17678 4.23744 3.17678 4.53033 3.46967L9.25 8.18934V6C9.25 5.58579 9.58579 5.25 10 5.25C10.4142 5.25 10.75 5.58579 10.75 6V10C10.75 10.4142 10.4142 10.75 10 10.75H6C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25H8.18934L3.46967 4.53033C3.17678 4.23744 3.17678 3.76256 3.46967 3.46967ZM14 13.25H18C18.4142 13.25 18.75 13.5858 18.75 14C18.75 14.4142 18.4142 14.75 18 14.75H15.8107L20.5303 19.4697C20.8232 19.7626 20.8232 20.2374 20.5303 20.5303C20.2374 20.8232 19.7626 20.8232 19.4697 20.5303L14.75 15.8107V18C14.75 18.4142 14.4142 18.75 14 18.75C13.5858 18.75 13.25 18.4142 13.25 18V14C13.25 13.5858 13.5858 13.25 14 13.25Z"}))}));C.default=I},78170:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{d:"M12 2.69231C6.8595 2.69231 2.69231 6.8595 2.69231 12C2.69231 17.1405 6.8595 21.3077 12 21.3077C17.1405 21.3077 21.3077 17.1405 21.3077 12C21.3077 6.8595 17.1405 2.69231 12 2.69231ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 7.76923C12.4673 7.76923 12.8462 8.14807 12.8462 8.61538V11.1538H15.3846C15.8519 11.1538 16.2308 11.5327 16.2308 12C16.2308 12.4673 15.8519 12.8462 15.3846 12.8462H12.8462V15.3846C12.8462 15.8519 12.4673 16.2308 12 16.2308C11.5327 16.2308 11.1538 15.8519 11.1538 15.3846V12.8462H8.61538C8.14807 12.8462 7.76923 12.4673 7.76923 12C7.76923 11.5327 8.14807 11.1538 8.61538 11.1538H11.1538V8.61538C11.1538 8.14807 11.5327 7.76923 12 7.76923Z"}))}));C.default=I},61433:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{d:"M15.5303 5.46967C15.2374 5.17678 14.7626 5.17678 14.4697 5.46967C14.1768 5.76256 14.1768 6.23744 14.4697 6.53033L17.1893 9.25H8C6.74022 9.25 5.53204 9.75044 4.64124 10.6412C3.75044 11.532 3.25 12.7402 3.25 14C3.25 15.2598 3.75044 16.468 4.64124 17.3588C5.53204 18.2496 6.74022 18.75 8 18.75H9C9.41421 18.75 9.75 18.4142 9.75 18C9.75 17.5858 9.41421 17.25 9 17.25H8C7.13805 17.25 6.3114 16.9076 5.7019 16.2981C5.09241 15.6886 4.75 14.862 4.75 14C4.75 13.138 5.09241 12.3114 5.7019 11.7019C6.3114 11.0924 7.13805 10.75 8 10.75H17.1893L14.4697 13.4697C14.1768 13.7626 14.1768 14.2374 14.4697 14.5303C14.7626 14.8232 15.2374 14.8232 15.5303 14.5303L19.5303 10.5303C19.6768 10.3839 19.75 10.1919 19.75 10C19.75 9.89831 19.7298 9.80134 19.6931 9.71291C19.6565 9.62445 19.6022 9.54158 19.5303 9.46967L15.5303 5.46967Z"}))}));C.default=I},28965:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55012 4.45178C9.23098 3.48072 11.1845 3.08925 13.1097 3.33767C15.035 3.58609 16.8251 4.46061 18.2045 5.82653C19.5838 7.19245 20.4757 8.97399 20.743 10.8967C20.8 11.307 20.5136 11.6858 20.1033 11.7428C19.6931 11.7998 19.3142 11.5135 19.2572 11.1032C19.0353 9.50635 18.2945 8.02677 17.149 6.89236C16.0035 5.75795 14.5167 5.03165 12.9178 4.82534C11.3189 4.61902 9.69644 4.94414 8.30047 5.75061C7.24361 6.36117 6.36093 7.22198 5.72541 8.24995H8.00009C8.41431 8.24995 8.75009 8.58574 8.75009 8.99995C8.75009 9.41417 8.41431 9.74995 8.00009 9.74995H4.51686C4.5055 9.75021 4.49412 9.75021 4.48272 9.74995H4.00009C3.58588 9.74995 3.25009 9.41417 3.25009 8.99995V4.99995C3.25009 4.58574 3.58588 4.24995 4.00009 4.24995C4.41431 4.24995 4.75009 4.58574 4.75009 4.99995V7.00691C5.48358 5.96916 6.43655 5.0951 7.55012 4.45178Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.89686 12.2571C4.30713 12.2001 4.68594 12.4864 4.74295 12.8967C4.96487 14.4936 5.70565 15.9731 6.85119 17.1075C7.99673 18.242 9.48347 18.9683 11.0824 19.1746C12.6813 19.3809 14.3037 19.0558 15.6997 18.2493C16.7566 17.6387 17.6393 16.7779 18.2748 15.75H16.0001C15.5859 15.75 15.2501 15.4142 15.2501 15C15.2501 14.5857 15.5859 14.25 16.0001 14.25H19.4833C19.4947 14.2497 19.5061 14.2497 19.5175 14.25H20.0001C20.4143 14.25 20.7501 14.5857 20.7501 15V19C20.7501 19.4142 20.4143 19.75 20.0001 19.75C19.5859 19.75 19.2501 19.4142 19.2501 19V16.993C18.5166 18.0307 17.5636 18.9048 16.4501 19.5481C14.7692 20.5192 12.8157 20.9107 10.8904 20.6622C8.9652 20.4138 7.17504 19.5393 5.79572 18.1734C4.4164 16.8074 3.52443 15.0259 3.25723 13.1032C3.20022 12.6929 3.48658 12.3141 3.89686 12.2571Z"}))}));C.default=I},36138:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 16 16"},i,{ref:C}),S.default.createElement("path",{d:"M5.74996 2.50038C5.74996 2.2242 5.52607 2.00031 5.24989 2.00031C4.9737 2.00031 4.74981 2.2242 4.74981 2.50038V2.50705C4.74981 2.78323 4.9737 3.00712 5.24989 3.00712C5.52607 3.00712 5.74996 2.78323 5.74996 2.50705V2.50038Z"}),S.default.createElement("path",{d:"M7.9997 2.00031C8.27588 2.00031 8.49978 2.2242 8.49978 2.50038V2.50705C8.49978 2.78323 8.27588 3.00712 7.9997 3.00712C7.72352 3.00712 7.49963 2.78323 7.49963 2.50705V2.50038C7.49963 2.2242 7.72352 2.00031 7.9997 2.00031Z"}),S.default.createElement("path",{d:"M11.2496 2.50038C11.2496 2.2242 11.0257 2.00031 10.7495 2.00031C10.4733 2.00031 10.2494 2.2242 10.2494 2.50038V2.50705C10.2494 2.78323 10.4733 3.00712 10.7495 3.00712C11.0257 3.00712 11.2496 2.78323 11.2496 2.50705V2.50038Z"}),S.default.createElement("path",{d:"M13.4993 2.00031C13.7755 2.00031 13.9994 2.2242 13.9994 2.50038V2.50705C13.9994 2.78323 13.7755 3.00712 13.4993 3.00712C13.2231 3.00712 12.9993 2.78323 12.9993 2.50705V2.50038C12.9993 2.2242 13.2231 2.00031 13.4993 2.00031Z"}),S.default.createElement("path",{d:"M13.9994 5.25019C13.9994 4.97401 13.7755 4.75012 13.4993 4.75012C13.2231 4.75012 12.9993 4.97401 12.9993 5.25019V5.25686C12.9993 5.53304 13.2231 5.75694 13.4993 5.75694C13.7755 5.75694 13.9994 5.53304 13.9994 5.25686V5.25019Z"}),S.default.createElement("path",{d:"M13.9994 8.00001C13.9994 7.72382 13.7755 7.49993 13.4993 7.49993C13.2231 7.49993 12.9993 7.72382 12.9993 8.00001V8.00667C12.9993 8.28286 13.2231 8.50675 13.4993 8.50675C13.7755 8.50675 13.9994 8.28286 13.9994 8.00667V8.00001Z"}),S.default.createElement("path",{d:"M2.50007 7.49993C2.77626 7.49993 3.00015 7.72382 3.00015 8.00001V8.00667C3.00015 8.28286 2.77626 8.50675 2.50007 8.50675C2.22389 8.50675 2 8.28286 2 8.00667V8.00001C2 7.72382 2.22389 7.49993 2.50007 7.49993Z"}),S.default.createElement("path",{d:"M3.00015 5.25019C3.00015 4.97401 2.77626 4.75012 2.50007 4.75012C2.22389 4.75012 2 4.97401 2 5.25019V5.25686C2 5.53304 2.22389 5.75694 2.50007 5.75694C2.77626 5.75694 3.00015 5.53304 3.00015 5.25686V5.25019Z"}),S.default.createElement("path",{d:"M2.50007 2.00031C2.77626 2.00031 3.00015 2.2242 3.00015 2.50038V2.50705C3.00015 2.78323 2.77626 3.00712 2.50007 3.00712C2.22389 3.00712 2 2.78323 2 2.50705V2.50038C2 2.2242 2.22389 2.00031 2.50007 2.00031Z"}),S.default.createElement("path",{d:"M9.37461 7.31255C9.94411 7.31255 10.4058 6.85088 10.4058 6.28137C10.4058 5.71187 9.94411 5.25019 9.37461 5.25019C8.8051 5.25019 8.34343 5.71187 8.34343 6.28137C8.34343 6.85088 8.8051 7.31255 9.37461 7.31255Z"}),S.default.createElement("path",{d:"M9.37461 9.21061L7.6724 7.44357L7.66567 7.43672C7.27331 7.04478 6.79598 6.81248 6.28107 6.81248C5.76615 6.81248 5.28883 7.04478 4.89647 7.43672L4.88973 7.44358L2.13992 10.2982C2.05015 10.3913 2 10.5157 2 10.6451V13.4996C2 13.7758 2.22389 13.9997 2.50007 13.9997H13.4993C13.7755 13.9997 13.9994 13.7758 13.9994 13.4996V10.6451C13.9994 10.6365 13.9992 10.6279 13.9988 10.6194C13.9958 10.562 13.9833 10.5072 13.9627 10.4566C13.9409 10.403 13.9093 10.3523 13.8681 10.3073C13.8651 10.304 13.8621 10.3008 13.859 10.2976L12.4846 8.87085L12.4778 8.86399C12.0855 8.47205 11.6082 8.23975 11.0932 8.23975C10.5783 8.23975 10.101 8.47205 9.70864 8.86399L9.70191 8.87084L9.37461 9.21061ZM5.60649 8.14113L3.00015 10.8468V12.9996H12.9993V10.8468L11.7678 9.5684C11.5234 9.32549 11.2897 9.2399 11.0932 9.2399C10.8968 9.2399 10.6631 9.32549 10.4187 9.5684L10.069 9.93142L11.1097 11.0118C11.3013 11.2107 11.2954 11.5272 11.0965 11.7188C10.8975 11.9104 10.581 11.9045 10.3894 11.7056L9.01604 10.28C9.01482 10.2787 9.01361 10.2775 9.01241 10.2762L6.95564 8.14113C6.7112 7.89822 6.4775 7.81263 6.28107 7.81263C6.08463 7.81263 5.85094 7.89822 5.60649 8.14113Z"}))}));C.default=I},37069:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 16 16"},i,{ref:C}),S.default.createElement("path",{d:"M4.35355 1.64645C4.54882 1.84171 4.54882 2.15829 4.35355 2.35355L2.35355 4.35355C2.15829 4.54882 1.84171 4.54882 1.64645 4.35355C1.45118 4.15829 1.45118 3.84171 1.64645 3.64645L3.64645 1.64645C3.84171 1.45118 4.15829 1.45118 4.35355 1.64645Z"}),S.default.createElement("path",{d:"M7.68689 1.64645C7.88215 1.84171 7.88215 2.15829 7.68689 2.35355L2.35355 7.68689C2.15829 7.88215 1.84171 7.88215 1.64645 7.68689C1.45118 7.49162 1.45118 7.17504 1.64645 6.97978L6.97978 1.64645C7.17504 1.45118 7.49162 1.45118 7.68689 1.64645Z"}),S.default.createElement("path",{d:"M11.0202 1.64645C11.2155 1.84171 11.2155 2.15829 11.0202 2.35355L6.68689 6.68689C6.49162 6.88215 6.17504 6.88215 5.97978 6.68689C5.78452 6.49162 5.78452 6.17504 5.97978 5.97978L10.3131 1.64645C10.5084 1.45118 10.825 1.45118 11.0202 1.64645Z"}),S.default.createElement("path",{d:"M14.3536 1.64645C14.5488 1.84171 14.5488 2.15829 14.3536 2.35355L11.0202 5.68689C10.825 5.88215 10.5084 5.88215 10.3131 5.68689C10.1179 5.49162 10.1179 5.17504 10.3131 4.97978L13.6464 1.64645C13.8417 1.45118 14.1583 1.45118 14.3536 1.64645Z"}),S.default.createElement("path",{d:"M14.3536 4.97978C14.5488 5.17504 14.5488 5.49162 14.3536 5.68689L12.0202 8.02022C11.825 8.21548 11.5084 8.21548 11.3131 8.02022C11.1179 7.82496 11.1179 7.50838 11.3131 7.31311L13.6464 4.97978C13.8417 4.78452 14.1583 4.78452 14.3536 4.97978Z"}),S.default.createElement("path",{d:"M14.3536 8.31311C14.5488 8.50838 14.5488 8.82496 14.3536 9.02022L14.0202 9.35355C13.825 9.54882 13.5084 9.54882 13.3131 9.35355C13.1179 9.15829 13.1179 8.84171 13.3131 8.64645L13.6464 8.31311C13.8417 8.11785 14.1583 8.11785 14.3536 8.31311Z"}),S.default.createElement("path",{d:"M10.3333 7C10.3333 7.55228 9.88562 8 9.33333 8C8.78105 8 8.33333 7.55228 8.33333 7C8.33333 6.44772 8.78105 6 9.33333 6C9.88562 6 10.3333 6.44772 10.3333 7Z"}),S.default.createElement("path",{d:"M6.33333 8.5C6.14679 8.5 5.92267 8.58153 5.6867 8.81725C5.67587 8.82806 5.66455 8.83838 5.65278 8.84816L2.5 11.4665V13.5H13.5V11.2318C13.5 10.9556 13.7239 10.7318 14 10.7318C14.2761 10.7318 14.5 10.9556 14.5 11.2318V14C14.5 14.2761 14.2761 14.5 14 14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V11.2318C1.5 11.0831 1.56617 10.9421 1.68056 10.8471L4.99717 8.09274C5.37661 7.72073 5.83674 7.5 6.33333 7.5C6.83746 7.5 7.304 7.72747 7.6867 8.10976L7.69343 8.11662L11.0268 11.5769C11.2183 11.7758 11.2124 12.0923 11.0136 12.2839C10.8147 12.4755 10.4981 12.4696 10.3066 12.2707L6.97679 8.81408C6.74199 8.5808 6.51904 8.5 6.33333 8.5Z"}),S.default.createElement("path",{d:"M10.3564 10.1984L9.69343 10.8866C9.50185 11.0854 9.18532 11.0914 8.98645 10.8998C8.78757 10.7082 8.78166 10.3917 8.97324 10.1928L9.6399 9.50073L9.64663 9.49387C10.4992 8.64223 11.843 8.83788 12.6387 9.45172C12.6435 9.45538 12.6482 9.45913 12.6528 9.46297L14.3194 10.8471C14.5319 11.0235 14.5611 11.3388 14.3846 11.5512C14.2082 11.7636 13.893 11.7928 13.6806 11.6164L12.0213 10.2384C11.4855 9.82976 10.7405 9.81862 10.3564 10.1984Z"}))}));C.default=I},71688:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",d:"M11.913 3.22a8.781 8.781 0 0 1 3.367.634.75.75 0 1 1-.56 1.392A7.281 7.281 0 0 0 8.25 18.24V15a.75.75 0 0 1 1.5 0v4.433a.73.73 0 0 1 0 .034V20a.75.75 0 0 1-.75.75H4a.75.75 0 0 1 0-1.5h3.045a8.782 8.782 0 0 1 4.868-16.03ZM18.37 6.41a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM13 19.19a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM16.84 17.62a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM19.37 14.35a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0v-.01a.75.75 0 0 1 .75-.75ZM19.94 10.25a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-1.5 0V11a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}));C.default=I},28221:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",d:"M4.25 5A.75.75 0 0 1 5 4.25h14a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V5.75H5.75V7a.75.75 0 0 1-1.5 0V5Z",clipRule:"evenodd"}),S.default.createElement("path",{fillRule:"evenodd",d:"M12 4.25a.75.75 0 0 1 .75.75v14a.75.75 0 0 1-1.5 0V5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}),S.default.createElement("path",{fillRule:"evenodd",d:"M9.25 19a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))}));C.default=I},58155:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{d:"M9.53033 6.53033C9.82322 6.23744 9.82322 5.76256 9.53033 5.46967C9.23744 5.17678 8.76256 5.17678 8.46967 5.46967L4.46967 9.46967C4.39776 9.54158 4.34351 9.62445 4.30691 9.71291C4.27024 9.80134 4.25 9.89831 4.25 10C4.25 10.1017 4.27024 10.1987 4.30691 10.2871C4.34351 10.3755 4.39776 10.4584 4.46967 10.5303L8.46967 14.5303C8.76256 14.8232 9.23744 14.8232 9.53033 14.5303C9.82322 14.2374 9.82322 13.7626 9.53033 13.4697L6.81066 10.75H16C16.862 10.75 17.6886 11.0924 18.2981 11.7019C18.9076 12.3114 19.25 13.138 19.25 14C19.25 14.862 18.9076 15.6886 18.2981 16.2981C17.6886 16.9076 16.862 17.25 16 17.25H15C14.5858 17.25 14.25 17.5858 14.25 18C14.25 18.4142 14.5858 18.75 15 18.75H16C17.2598 18.75 18.468 18.2496 19.3588 17.3588C20.2496 16.468 20.75 15.2598 20.75 14C20.75 12.7402 20.2496 11.532 19.3588 10.6412C18.468 9.75044 17.2598 9.25 16 9.25H6.81066L9.53033 6.53033Z"}))}));C.default=I},55995:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2.25C9.41421 2.25 9.75 2.58579 9.75 3C9.75 3.33152 9.8817 3.64946 10.1161 3.88388C10.3505 4.1183 10.6685 4.25 11 4.25C11.4142 4.25 11.75 4.58579 11.75 5C11.75 5.41421 11.4142 5.75 11 5.75C10.6685 5.75 10.3505 5.8817 10.1161 6.11612C9.8817 6.35054 9.75 6.66848 9.75 7C9.75 7.41421 9.41421 7.75 9 7.75C8.58579 7.75 8.25 7.41421 8.25 7C8.25 6.66848 8.1183 6.35054 7.88388 6.11612C7.64946 5.8817 7.33152 5.75 7 5.75C6.58579 5.75 6.25 5.41421 6.25 5C6.25 4.58579 6.58579 4.25 7 4.25C7.33152 4.25 7.64946 4.1183 7.88388 3.88388C8.1183 3.64946 8.25 3.33152 8.25 3C8.25 2.58579 8.58579 2.25 9 2.25ZM9 4.88746C8.98182 4.90673 8.96333 4.92576 8.94454 4.94454C8.92576 4.96333 8.90673 4.98182 8.88746 5C8.90673 5.01818 8.92576 5.03667 8.94454 5.05546C8.96333 5.07424 8.98182 5.09327 9 5.11254C9.01818 5.09327 9.03667 5.07424 9.05546 5.05546C9.07424 5.03667 9.09327 5.01818 9.11254 5C9.09327 4.98182 9.07424 4.96333 9.05546 4.94454C9.03667 4.92576 9.01818 4.90673 9 4.88746Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5303 2.46967C18.2374 2.17678 17.7626 2.17678 17.4697 2.46967L2.46967 17.4697C2.17678 17.7626 2.17678 18.2374 2.46967 18.5303L5.46967 21.5303C5.76256 21.8232 6.23744 21.8232 6.53033 21.5303L21.5303 6.53033C21.8232 6.23744 21.8232 5.76256 21.5303 5.46967L18.5303 2.46967ZM18 7.93934L19.9393 6L18 4.06066L16.0607 6L18 7.93934ZM15 7.06066L16.9393 9L6 19.9393L4.06066 18L15 7.06066Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.75 13C19.75 12.5858 19.4142 12.25 19 12.25C18.5858 12.25 18.25 12.5858 18.25 13C18.25 13.3315 18.1183 13.6495 17.8839 13.8839C17.6495 14.1183 17.3315 14.25 17 14.25C16.5858 14.25 16.25 14.5858 16.25 15C16.25 15.4142 16.5858 15.75 17 15.75C17.3315 15.75 17.6495 15.8817 17.8839 16.1161C18.1183 16.3505 18.25 16.6685 18.25 17C18.25 17.4142 18.5858 17.75 19 17.75C19.4142 17.75 19.75 17.4142 19.75 17C19.75 16.6685 19.8817 16.3505 20.1161 16.1161C20.3505 15.8817 20.6685 15.75 21 15.75C21.4142 15.75 21.75 15.4142 21.75 15C21.75 14.5858 21.4142 14.25 21 14.25C20.6685 14.25 20.3505 14.1183 20.1161 13.8839C19.8817 13.6495 19.75 13.3315 19.75 13ZM18.9445 14.9445C18.9633 14.9258 18.9818 14.9067 19 14.8875C19.0182 14.9067 19.0367 14.9258 19.0555 14.9445C19.0742 14.9633 19.0933 14.9818 19.1125 15C19.0933 15.0182 19.0742 15.0367 19.0555 15.0555C19.0367 15.0742 19.0182 15.0933 19 15.1125C18.9818 15.0933 18.9633 15.0742 18.9445 15.0555C18.9258 15.0367 18.9067 15.0182 18.8875 15C18.9067 14.9818 18.9258 14.9633 18.9445 14.9445Z"}))}));C.default=I},54572:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.16707 3.95837C4.11182 3.95837 4.05883 3.98032 4.01976 4.01939C3.98069 4.05846 3.95874 4.11145 3.95874 4.16671V6.04171H6.04207V3.95837H4.16707ZM4.16707 2.70837C3.7803 2.70837 3.40937 2.86202 3.13588 3.13551C2.86239 3.409 2.70874 3.77993 2.70874 4.16671V15.8334C2.70874 16.2201 2.86239 16.5911 3.13588 16.8646C3.40937 17.1381 3.7803 17.2917 4.16707 17.2917H15.8337C16.2205 17.2917 16.5914 17.1381 16.8649 16.8646C17.1384 16.5911 17.2921 16.2201 17.2921 15.8334V4.16671C17.2921 3.77993 17.1384 3.409 16.8649 3.13551C16.5914 2.86202 16.2205 2.70837 15.8337 2.70837H4.16707ZM7.29207 3.95837V6.04171H16.0421V4.16671C16.0421 4.11145 16.0201 4.05846 15.9811 4.01939C15.942 3.98032 15.889 3.95837 15.8337 3.95837H7.29207ZM16.0421 7.29171H3.95874V15.8334C3.95874 15.8886 3.98069 15.9416 4.01976 15.9807C4.05883 16.0198 4.11182 16.0417 4.16707 16.0417H15.8337C15.889 16.0417 15.942 16.0198 15.9811 15.9807C16.0201 15.9416 16.0421 15.8886 16.0421 15.8334V7.29171Z"}))}));C.default=I},941:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{d:"M12 2.69231C6.8595 2.69231 2.69231 6.8595 2.69231 12C2.69231 17.1405 6.8595 21.3077 12 21.3077C17.1405 21.3077 21.3077 17.1405 21.3077 12C21.3077 6.8595 17.1405 2.69231 12 2.69231ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM9.14527 9.14527C9.47571 8.81483 10.0115 8.81483 10.3419 9.14527L12 10.8034L13.6581 9.14527C13.9885 8.81483 14.5243 8.81483 14.8547 9.14527C15.1852 9.47571 15.1852 10.0115 14.8547 10.3419L13.1966 12L14.8547 13.6581C15.1852 13.9885 15.1852 14.5243 14.8547 14.8547C14.5243 15.1852 13.9885 15.1852 13.6581 14.8547L12 13.1966L10.3419 14.8547C10.0115 15.1852 9.47571 15.1852 9.14527 14.8547C8.81483 14.5243 8.81483 13.9885 9.14527 13.6581L10.8034 12L9.14527 10.3419C8.81483 10.0115 8.81483 9.47571 9.14527 9.14527Z"}))}));C.default=I},80897:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(73119)),S=x(w(87363)),k=w(36626),I=S.default.forwardRef((function(i,C){return S.default.createElement(k.SvgIcon,(0,O.default)({viewBox:"0 0 24 24"},i,{ref:C}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75ZM2.25 10C2.25 5.71979 5.71979 2.25 10 2.25C14.2802 2.25 17.75 5.71979 17.75 10C17.75 14.2802 14.2802 17.75 10 17.75C5.71979 17.75 2.25 14.2802 2.25 10Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 10C6.25 9.58579 6.58579 9.25 7 9.25H13C13.4142 9.25 13.75 9.58579 13.75 10C13.75 10.4142 13.4142 10.75 13 10.75H7C6.58579 10.75 6.25 10.4142 6.25 10Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6.25C10.4142 6.25 10.75 6.58579 10.75 7V13C10.75 13.4142 10.4142 13.75 10 13.75C9.58579 13.75 9.25 13.4142 9.25 13V7C9.25 6.58579 9.58579 6.25 10 6.25Z"}),S.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4697 14.4697C14.7626 14.1768 15.2374 14.1768 15.5303 14.4697L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L14.4697 15.5303C14.1768 15.2374 14.1768 14.7626 14.4697 14.4697Z"}))}));C.default=I},42637:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=x(w(23615)),I=function LayoutAppWrapper(i){return O.default.createElement(S.DirectionProvider,{rtl:i.isRTL},O.default.createElement(S.ThemeProvider,{colorScheme:i.colorScheme},i.children))};I.propTypes={children:k.default.node,isRTL:k.default.bool,colorScheme:k.default.oneOf(["auto","light","dark"])};var R=I;C.default=R},78949:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(23615)),k=x(w(26457)),I=w(77292),R=w(25455),j=w(84157),W=w(35879),N=function LayoutApp(i){return O.default.createElement(j.RemoteConfigProvider,{onError:i.onClose},O.default.createElement(W.RequestIdsProvider,null,O.default.createElement(R.ConfigProvider,{mode:i.mode,attachmentsTypes:i.attachmentsTypes,onClose:i.onClose,onConnect:i.onConnect,onData:i.onData,onInsert:i.onInsert,onSelect:i.onSelect,onGenerate:i.onGenerate,currentContext:i.currentContext,hasPro:i.hasPro},O.default.createElement(k.default,{attachments:i.attachments}))))};N.propTypes={mode:S.default.oneOf(R.LAYOUT_APP_MODES).isRequired,attachmentsTypes:I.AttachmentsTypesPropType,attachments:S.default.arrayOf(I.AttachmentPropType),onClose:S.default.func.isRequired,onConnect:S.default.func.isRequired,onData:S.default.func.isRequired,onInsert:S.default.func.isRequired,onSelect:S.default.func.isRequired,onGenerate:S.default.func.isRequired,currentContext:S.default.object,hasPro:S.default.bool};var G=N;C.default=G},26457:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(65345)),R=x(w(16068)),j=x(w(96587)),W=x(w(71871)),N=x(w(46369)),G=x(w(5647)),$=x(w(30313)),J=x(w(42493)),re=x(w(23615)),oe=w(77292),ie=w(25455),le=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ue=function LayoutContent(i){var C=(0,G.default)(),w=C.isLoading,x=C.isConnected,O=C.isGetStarted,re=C.connectUrl,oe=C.fetchData,ue=C.hasSubscription,ce=C.usagePercentage,se=(0,ie.useConfig)(),de=se.onClose,he=se.onConnect,ge=(0,le.useRequestIds)(),ye=ge.updateUsagePercentage,ve=ge.usagePercentage,Ce=(0,S.useState)(!1),Se=(0,k.default)(Ce,2),Pe=Se[0],Ie=Se[1];if((0,S.useEffect)((function(){Pe||w||!ce&&0!==ce||(ye(ce),Ie(!0))}),[w,ce,Pe,ye]),w||!Pe)return S.default.createElement(J.default,{onClose:de},S.default.createElement(J.default.Header,{onClose:de}),S.default.createElement(J.default.Content,{dividers:!0},S.default.createElement(W.default,{BoxProps:{sx:{px:3}}})));if(!x)return S.default.createElement($.default,{onClose:de},S.default.createElement(J.default,{onClose:de}),S.default.createElement($.default.Content,{dividers:!0},S.default.createElement(I.default,{connectUrl:re,onSuccess:function onSuccess(i){he(i),oe()}})));if(!O)return S.default.createElement($.default,{onClose:de},S.default.createElement(J.default,{onClose:de}),S.default.createElement($.default.Content,{dividers:!0},S.default.createElement(j.default,{onSuccess:oe})));var Re=!ue||80<=ve;return S.default.createElement(R.default,{attachments:i.attachments,DialogHeaderProps:{children:Re&&S.default.createElement(N.default,{hasSubscription:ue,usagePercentage:ve})}})};ue.propTypes={attachments:re.default.arrayOf(oe.AttachmentPropType)};var ce=ue;C.default=ce},88450:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(93231)),R=x(w(40131)),j=x(w(23615)),W=x(w(85157)),N=x(w(65345)),G=x(w(69714)),$=x(w(96587)),J=x(w(5647)),re=x(w(30313)),oe=x(w(59441)),ie=x(w(46369)),le=x(w(62193)),ue=x(w(76719)),ce=w(62219),se=w(10905),de=w(78293),he=x(w(66604)),ge=x(w(86076)),ye=w(36626),ve=x(w(71871)),Ce=w(35879),Se=w(44220);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,I.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var Pe=function PageContent(i){var C,w=i.type,x=i.controlType,O=i.onClose,I=i.onConnect,j=i.getControlValue,Pe=i.setControlValue,Ie=i.additionalOptions,Re=(null!==(C=null==Ie?void 0:Ie.useCustomInit)&&void 0!==C?C:J.default)(),Me=Re.isLoading,De=Re.isConnected,Fe=Re.isGetStarted,He=Re.connectUrl,Ue=Re.fetchData,Ge=Re.hasSubscription,Ze=Re.credits,Ke=Re.usagePercentage,Qe=(0,Ce.useRequestIds)(),et=Qe.updateUsagePercentage,tt=Qe.usagePercentage,nt=(0,S.useState)(!1),rt=(0,R.default)(nt,2),ot=rt[0],at=rt[1];(0,S.useEffect)((function(){ot||Me||!Ke&&0!==Ke||(et(Ke),at(!0))}),[Me,Ke,ot,et]);var it=(0,he.default)({usagePercentage:tt,hasSubscription:Ge}).showBadge,lt=(0,S.useState)({pointerEvents:"none"}),ut=(0,R.default)(lt,2),ct=ut[0],st=ut[1],dt=(0,S.useRef)(null),ft={sx:{zIndex:17e4,"& .MuiDialog-container":{alignItems:"flex-start",mt:"media"===w?"2.5vh":"18vh"},"& .MuiDialogContent-root":{willChange:"height",transition:"height 300ms ease-in-out",position:"relative"},"& .MuiBox-root":{boxSizing:"border-box"}},PaperProps:{sx:{m:0,maxHeight:"media"===w?"95vh":"76vh",height:"auto"}}},pt={sx:_objectSpread(_objectSpread({},ft.sx),ct),PaperProps:{onMouseEnter:function onMouseEnter(){clearTimeout(dt.current),st({pointerEvents:"all"})},onMouseLeave:function onMouseLeave(){clearTimeout(dt.current),dt.current=setTimeout((function(){st({pointerEvents:"none"})}),200)},sx:_objectSpread(_objectSpread({},ft.PaperProps.sx),{},{pointerEvents:"auto"})}},mt=function maybeRenderUpgradeChip(){if(it)return S.default.createElement(ie.default,{hasSubscription:Ge,usagePercentage:tt})};return Me||!ot?S.default.createElement(oe.default,(0,k.default)({onClose:O},ft,{maxWidth:"media"===w?"lg":"sm"}),S.default.createElement(oe.default.Header,{onClose:O}),S.default.createElement(oe.default.Content,{dividers:!0},(null==Ie?void 0:Ie.loadingTitle)&&S.default.createElement(ye.Box,{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}},S.default.createElement(ye.Typography,{variant:"body1",color:"secondary"},null==Ie?void 0:Ie.loadingTitle)),S.default.createElement(ve.default,null))):De?Fe?"media"===w?S.default.createElement(de.PromptHistoryProvider,{historyType:ce.HISTORY_TYPES.IMAGE},S.default.createElement(se.PromptHistoryActionProvider,null,S.default.createElement(le.default,{onClose:O,getControlValue:j,setControlValue:Pe,additionalOptions:Ie,credits:Ze,maybeRenderUpgradeChip:mt,DialogProps:ft,hasSubscription:Ge,usagePercentage:tt}))):"code"===w?S.default.createElement(oe.default,(0,k.default)({onClose:O},pt),S.default.createElement(de.PromptHistoryProvider,{historyType:ce.HISTORY_TYPES.CODE},S.default.createElement(se.PromptHistoryActionProvider,null,S.default.createElement(oe.default.Header,{onClose:O},S.default.createElement(ue.default,null),mt()),S.default.createElement(oe.default.Content,{className:"e-ai-dialog-content",dividers:!0},S.default.createElement(G.default,{onClose:O,getControlValue:j,setControlValue:Pe,additionalOptions:Ie,credits:Ze,usagePercentage:tt},S.default.createElement(ge.default,{hasSubscription:Ge,usagePercentage:tt,sx:{mb:2},feature:Se.FREE_TRIAL_FEATURES_NAMES.CODE})))))):S.default.createElement(oe.default,(0,k.default)({onClose:O},ft),S.default.createElement(de.PromptHistoryProvider,{historyType:ce.HISTORY_TYPES.TEXT},S.default.createElement(se.PromptHistoryActionProvider,null,S.default.createElement(oe.default.Header,{onClose:O},S.default.createElement(ue.default,null),mt()),S.default.createElement(oe.default.Content,{className:"e-ai-dialog-content",dividers:!0},S.default.createElement(W.default,{type:w,controlType:x,onClose:O,getControlValue:j,setControlValue:Pe,additionalOptions:Ie,credits:Ze,usagePercentage:tt},S.default.createElement(ge.default,{hasSubscription:Ge,usagePercentage:tt,sx:{mb:2},feature:Se.FREE_TRIAL_FEATURES_NAMES.TEXT})))))):S.default.createElement(re.default,{onClose:O},S.default.createElement(re.default.Header,{onClose:O}),S.default.createElement(re.default.Content,{dividers:!0},S.default.createElement($.default,{onSuccess:Ue}))):S.default.createElement(re.default,{onClose:O},S.default.createElement(re.default.Header,{onClose:O}),S.default.createElement(re.default.Content,{dividers:!0},S.default.createElement(N.default,{connectUrl:He,onSuccess:function onSuccess(i){I(i),Ue()}})))};Pe.propTypes={type:j.default.string,controlType:j.default.string,onClose:j.default.func.isRequired,onConnect:j.default.func,getControlValue:j.default.func.isRequired,setControlValue:j.default.func.isRequired,additionalOptions:j.default.object};var Ie=Pe;C.default=Ie},65345:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=w(36626),I=w(38003),R=x(w(23615)),j=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=function Connect(i){var C=i.connectUrl,w=i.onSuccess,x=(0,S.useRef)();return(0,S.useEffect)((function(){jQuery.fn.elementorConnect&&jQuery(x.current).elementorConnect({success:function success(i,C){return w(C)},error:function error(){throw new Error("Elementor AI: Failed to connect.")}})}),[]),S.default.createElement(k.Stack,{alignItems:"center",gap:2},S.default.createElement(j.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),S.default.createElement(k.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,I.__)("Step into the future with Elementor AI","elementor")),S.default.createElement(k.Typography,{variant:"body2"},(0,I.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),S.default.createElement(k.Typography,{variant:"caption",sx:{maxWidth:520,textAlign:"center"}},(0,I.__)('By clicking "Connect", I approve the ',"elementor"),S.default.createElement(k.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,I.__)("Terms of Service","elementor"))," & ",S.default.createElement(k.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,I.__)("Privacy Policy","elementor")),(0,I.__)(" of the Elementor AI service.","elementor")),S.default.createElement(k.Button,{ref:x,href:C,variant:"contained",sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,I.__)("Connect","elementor")))};W.propTypes={connectUrl:R.default.string.isRequired,onSuccess:R.default.func.isRequired};var N=W;C.default=N},56577:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(70966)),R=w(36626),j=w(38003),W=x(w(23615)),N=x(w(87105)),G=["node","inline","children","defaultValue","onInsert"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var $=function CodeBlock(i){i.node;var C=i.inline,w=i.children,x=i.defaultValue,O=i.onInsert,W=(0,I.default)(i,G),$=(0,S.useRef)(null);return C?S.default.createElement("code",W):S.default.createElement(R.Box,{sx:{position:"relative"},dir:"ltr"},S.default.createElement(N.default,(0,k.default)({fullWidth:!0,ref:$,defaultValue:w[0],sx:{mb:1},helperText:(0,j.__)("Code generated by AI may be inaccurate.","elementor")},W)),S.default.createElement(R.Button,{size:"small",variant:"contained",onClick:function onClick(){return O(x+"\n"+$.current.value)},sx:{position:"absolute",right:"11px /* @noflip */",bottom:"44px"}},(0,j.__)("Insert","elementor")))};$.propTypes={node:W.default.object,inline:W.default.bool,children:W.default.arrayOf(W.default.node).isRequired,defaultValue:W.default.string,onInsert:W.default.func.isRequired};var J=$;C.default=J},69714:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(73119)),R=x(w(10029)),j=x(w(40131)),W=x(w(93231)),N=w(36626),G=w(38003),$=x(w(23615)),J=x(w(51068)),re=w(17927),oe=x(w(71871)),ie=x(w(51391)),le=x(w(79619)),ue=x(w(4466)),ce=x(w(86960)),se=x(w(56577)),de=x(w(5348)),he=w(10905),ge=x(w(84515)),ye=w(35879),ve=w(90246),Ce=w(88293);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,W.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var Se=(0,N.styled)(N.Box)((function(){return{"& p":{mb:"10px",fontSize:"13px",lineHeight:"1.5"},"& pre":{position:"relative"},"& textarea":{fontSize:"13px",lineHeight:"1.7"}}})),Pe=function FormCode(i){var C=i.onClose,w=i.getControlValue,x=i.setControlValue,O=i.additionalOptions,W=i.credits,$=i.children,Pe=(0,de.default)(_objectSpread(_objectSpread({},O),{},{credits:W})),Ie=Pe.data,Re=Pe.isLoading,Me=Pe.error,De=Pe.reset,Fe=Pe.send,He=Pe.sendUsageData,Ue=(0,Ce.splitText)(Ie.result),Ge=Ue.code,Ze=Ue.details,Ke=(0,S.useState)(""),Qe=(0,j.default)(Ke,2),et=Qe[0],tt=Qe[1],nt=(0,ye.useRequestIds)().setGenerate,rt=(0,S.useRef)(function generateUniqueId(){return"custom-css-".concat(Math.random().toString(36).substr(2,9))}());(0,he.useSubscribeOnPromptHistoryAction)([{type:he.ACTION_TYPES.REUSE,handler:function handler(i){De(),tt(i.data)}}]);var ot=(0,S.useRef)((function(){})),at=re.codeHtmlAutocomplete,it="";"css"===(null==O?void 0:O.codeLanguage)?(at=re.codeCssAutocomplete,it="https://go.elementor.com/ai-prompt-library-css/"):it=null!=O&&O.htmlMarkup?"https://go.elementor.com/ai-prompt-library-html/":"https://go.elementor.com/ai-prompt-library-custom-code/";var lt=!et,ut=function(){var i=(0,R.default)(k.default.mark((function _callee(i){var C;return k.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return i.preventDefault(),nt(),ot.current=function(){return Fe({prompt:et})},w.next=5,ot.current();case 5:C=w.sent,"css"===(null==O?void 0:O.codeLanguage)&&C.result&&ct((0,Ce.splitText)(C.result).code);case 7:case"end":return w.stop()}}),_callee)})));return function handleSubmit(C){return i.apply(this,arguments)}}();(0,S.useEffect)((function(){return function(){ft()}}),[]);var ct=function showCssPreview(i){var C=st(i);dt(C)},st=function parseCSS(i){var C=null==O?void 0:O.elementId,w="document"===C?elementor.config.document.settings.cssWrapperSelector:".elementor-element.elementor-element-".concat(C);return i&&i.replace(/`/g,"").replace(/^css\s*/i,"").replace(/selector/g,w)},dt=function insertStyleTag(i){var C=document.createElement("style");C.id=rt.current,C.appendChild(document.createTextNode(i)),elementorFrontend.elements.$body[0].appendChild(C)},ft=function removeStyleTag(){var i=elementorFrontend.elements.$body[0].querySelector("#".concat(rt.current));i&&i.remove()},pt=function applyPrompt(i){He(),x(i),C()};return Re?S.default.createElement(oe.default,null):S.default.createElement(S.default.Fragment,null,Me&&S.default.createElement(ce.default,{error:Me,onRetry:ot.current,sx:{mb:2.5}}),$,!Ie.result&&S.default.createElement(N.Box,{component:"form",onSubmit:ut},S.default.createElement(N.Box,{sx:{pb:1.5}},S.default.createElement(ie.default,{placeholder:(0,G.__)("Describe the code you want to use...","elementor"),name:"prompt",value:et,color:"secondary",onChange:function onChange(i){return tt(i.target.value)}})),lt&&S.default.createElement(le.default,{suggestions:at,onSelect:tt},S.default.createElement(ge.default,{libraryLink:it})),S.default.createElement(N.Stack,{direction:"row",alignItems:"center",sx:{py:1.5,mt:4}},S.default.createElement(N.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},S.default.createElement(ue.default,null,(0,G.__)("Generate code","elementor"))))),Ie.result&&S.default.createElement(Se,null,S.default.createElement(J.default,{components:{code:function code(i){return S.default.createElement(se.default,(0,I.default)({},i,{defaultValue:w(),onInsert:pt}))}}},Ge),Ze,S.default.createElement(ve.VoicePromotionAlert,{introductionKey:"ai-context-code-promotion"}),S.default.createElement(N.Stack,{direction:"row",alignItems:"center",sx:{mt:4}},S.default.createElement(N.Stack,{direction:"row",gap:1,justifyContent:"flex-end",flexGrow:1},S.default.createElement(N.Button,{size:"small",color:"secondary",variant:"text",onClick:function onClick(){ft(),De()}},(0,G.__)("New prompt","elementor"))))))};Pe.propTypes={onClose:$.default.func.isRequired,getControlValue:$.default.func.isRequired,setControlValue:$.default.func.isRequired,additionalOptions:$.default.shape({codeLanguage:$.default.string,htmlMarkup:$.default.string,elementId:$.default.string,initialCredits:$.default.number}),credits:$.default.number,children:$.default.node};var Ie=Pe;C.default=Ie},88293:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.splitText=function splitText(i){if(!i)return{};var C=i.match(/```([\s\S]*?)```/),w=C?"```".concat(C[1],"```").trim():"",x=i.match(/```[\s\S]*?```([\s\S]*)/),O=null==x?void 0:x[1].trim();return{code:w,details:O}}},28378:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.USER_VARIATION_SOURCE=C.USER_URL_SOURCE=C.MENU_TYPE_LIBRARY=C.ELEMENTOR_LIBRARY_SOURCE=C.ATTACHMENT_TYPE_URL=C.ATTACHMENT_TYPE_JSON=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(46567),I=x(w(865)),R=x(w(40097)),j=x(w(54572)),W=x(w(68873)),N=w(38003),G=x(w(23615)),$=w(77292),J=w(36626),re="json";C.ATTACHMENT_TYPE_JSON=re;var oe="url";C.ATTACHMENT_TYPE_URL=oe;var ie="library";C.MENU_TYPE_LIBRARY=ie;C.USER_VARIATION_SOURCE="user-variation";C.ELEMENTOR_LIBRARY_SOURCE="elementor-library";C.USER_URL_SOURCE="user-url";var le=function Attachments(i){return i.attachments.length?O.default.createElement(J.Stack,{direction:"row",spacing:1},i.attachments.map((function(C,w){switch(C.type){case re:return O.default.createElement(I.default,(0,S.default)({key:w},i));case oe:return O.default.createElement(R.default,(0,S.default)({key:w},i));default:return null}}))):O.default.createElement(k.Menu,{disabled:i.disabled,onAttach:i.onAttach,items:[{title:(0,N.__)("Reference a website","elementor"),icon:j.default,type:oe},{title:(0,N.__)("Create variations from Template Library","elementor"),icon:W.default,type:ie}]})};le.propTypes={attachments:G.default.arrayOf($.AttachmentPropType).isRequired,onAttach:G.default.func.isRequired,onDetach:G.default.func,disabled:G.default.bool};var ue=le;C.default=ue},31282:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.AttachDialog=void 0;var O=x(w(87363)),S=w(51542),k=x(w(23615)),I=w(73202),R=w(28378),j=function AttachDialog(i){var C=i.type,w=i.url;switch(C){case R.ATTACHMENT_TYPE_URL:return O.default.createElement(S.UrlDialog,{url:w,onAttach:i.onAttach,onClose:i.onClose});case R.MENU_TYPE_LIBRARY:return O.default.createElement(I.LibraryDialog,{onAttach:i.onAttach,onClose:i.onClose})}return null};C.AttachDialog=j,j.propTypes={type:k.default.string,onAttach:k.default.func,onClose:k.default.func,url:k.default.string};var W=j;C.default=W},73202:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.LibraryDialog=void 0;var O=x(w(23615)),S=w(87363),k=w(28378),I=function LibraryDialog(i){var C=(0,S.useRef)(!1);return(0,S.useEffect)((function(){var w=function onLibraryHide(){C.current||i.onClose()};return $e.components.get("library").layout.getModal().on("hide",w),function(){$e.components.get("library").layout.getModal().off("hide",w)}}),[i]),(0,S.useEffect)((function(){var w=function onMessage(w){var x=w.data,O=x.type,S=x.json,I=x.html,R=x.label,j=x.source;switch(O){case"library/attach:start":C.current=!0;break;case"library/attach":i.onAttach([{type:k.ATTACHMENT_TYPE_JSON,previewHTML:I,content:S,label:R,source:j}]),C.current=!1,i.onClose()}};return window.addEventListener("message",w),function(){window.removeEventListener("message",w)}})),$e.run("library/open",{toDefault:!0,mode:"ai-attachment"}),C.current=!1,null};C.LibraryDialog=I,I.propTypes={onAttach:O.default.func.isRequired,onClose:O.default.func.isRequired}},46567:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.Menu=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=x(w(941)),j=x(w(78170)),W=x(w(23615)),N=w(31282),G=x(w(24395));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var $=function Menu(i){var C=(0,S.useState)(!1),w=(0,k.default)(C,2),x=w[0],O=w[1],W=(0,S.useState)(null),$=(0,k.default)(W,2),J=$[0],re=$[1],oe=(0,I.useTheme)().direction,ie=(0,S.useRef)(null),le=(0,G.default)("e-ai-attachment-badge"),ue=le.isViewed,ce=le.markAsViewed;return S.default.createElement(S.default.Fragment,null,S.default.createElement(I.IconButton,{size:"small",ref:ie,disabled:i.disabled,onClick:function onClick(){O(!0),ue||ce()},color:"secondary"},x?S.default.createElement(R.default,{fontSize:"small"}):ue?S.default.createElement(j.default,{fontSize:"small"}):S.default.createElement(I.Badge,{color:"primary",badgeContent:" ",variant:"dot"},S.default.createElement(j.default,{fontSize:"small"}))),S.default.createElement(I.Popover,{open:x,anchorEl:ie.current,onClose:function onClose(){return O(!1)},anchorOrigin:{vertical:"bottom",horizontal:"rtl"===oe?"right":"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===oe?"right":"left"}},S.default.createElement(I.Stack,{sx:{width:440}},i.items.map((function(i){var C=i.icon;return S.default.createElement(I.MenuItem,{key:i.type,onClick:function onClick(){re(i.type),O(!1)}},S.default.createElement(I.ListItemIcon,null,S.default.createElement(C,null)),i.title)})))),S.default.createElement(N.AttachDialog,{type:J,onAttach:i.onAttach,onClose:function onClose(){O(!1),re(null)}}))};C.Menu=$,$.propTypes={items:W.default.arrayOf(W.default.shape({title:W.default.string.isRequired,type:W.default.string.isRequired,icon:W.default.elementType})).isRequired,onAttach:W.default.func.isRequired,disabled:W.default.bool}},42335:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.PromptPowerNotice=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(24395));C.PromptPowerNotice=function PromptPowerNotice(){var i=(0,I.default)("e-ai-builder-attachments-power"),C=i.isViewed,w=i.markAsViewed;return C?null:O.default.createElement(S.Box,{sx:{pt:2,px:2,pb:0}},O.default.createElement(S.Alert,{severity:"info",onClose:function onClose(){return w()}},O.default.createElement(S.Typography,{variant:"body2",display:"inline-block",sx:{paddingInlineEnd:1}},(0,k.__)("You’ve got the power.","elementor")),O.default.createElement(S.Typography,{variant:"body2",display:"inline-block"},(0,k.__)("Craft your prompt to affect content, images and/or colors - whichever you decide.","elementor"))))}},865:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.ThumbnailJson=void 0;var O=x(w(87363)),S=w(88482),k=x(w(23615)),I=w(36626),R=w(77292),j=function ThumbnailJson(i){var C,w=null===(C=i.attachments)||void 0===C?void 0:C.find((function(i){return"json"===i.type}));return w?w.previewHTML?O.default.createElement(S.Thumbnail,{html:w.previewHTML,disabled:i.disabled}):O.default.createElement(I.Skeleton,{animation:"wave",variant:"rounded",width:60,height:60}):null};C.ThumbnailJson=j,j.propTypes={attachments:k.default.arrayOf(R.AttachmentPropType).isRequired,disabled:k.default.bool};var W=j;C.default=W},40097:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.ThumbnailUrl=void 0;var O=x(w(87363)),S=w(88482),k=w(38003),I=x(w(23615)),R=w(36626),j=w(34029),W=w(77292),N=function ThumbnailUrl(i){var C,w=null===(C=i.attachments)||void 0===C?void 0:C.find((function(i){return"url"===i.type}));return w?O.default.createElement(R.Box,{sx:{position:"relative","&:hover::before":{content:'""',position:"absolute",userSelect:"none",inset:0,backgroundColor:"rgba(0,0,0,0.6)",borderRadius:1,zIndex:1},"&:hover .remove-attachment":{display:"flex"}}},O.default.createElement(R.IconButton,{className:"remove-attachment",size:"small","aria-label":(0,k.__)("Remove","elementor"),disabled:i.disabled,onClick:function onClick(C){C.stopPropagation(),i.onDetach()},sx:{display:"none",position:"absolute",insetInlineEnd:4,insetBlockStart:4,backgroundColor:"secondary.main",zIndex:1,borderRadius:1,p:"3px","&:hover":{backgroundColor:"secondary.dark"}}},O.default.createElement(j.TrashIcon,{sx:{fontSize:"1.125rem",color:"common.white"}})),O.default.createElement(S.Thumbnail,{disabled:i.disabled,html:w.previewHTML})):null};C.ThumbnailUrl=N,N.propTypes={attachments:I.default.arrayOf(W.AttachmentPropType).isRequired,disabled:I.default.bool,onDetach:I.default.func};var G=N;C.default=G},88482:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.Thumbnail=C.THUMBNAIL_SIZE=void 0;var O,S=x(w(87363)),k=x(w(79769)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(63993)),N=64;C.THUMBNAIL_SIZE=N;var G=W.default.body(O||(O=(0,k.default)(["\n\thtml, body {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\toverflow: hidden;\n\t}\n\n\tbody > * {\n\t\twidth: 100% !important;\n\t}\n\n\tbody > img {\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\tbody:has(> img) {\n\t\theight: ","px\n\t}\n"])),N),$=function Thumbnail(i){var C,w,x,O,k=null===(C=i.html.match('data-width="(?<width>\\d+)"'))||void 0===C||null===(w=C.groups)||void 0===w?void 0:w.width,j=null===(x=i.html.match('data-height="(?<height>\\d+)"'))||void 0===x||null===(O=x.groups)||void 0===O?void 0:O.height,W=k?parseInt(k):N,$=j?parseInt(j):N,J=Math.min($,W),re=N/J,oe=$>W?(N-N*($/W))/2:0,ie=W>$?(N-N*(W/$))/2:0;return S.default.createElement(I.Box,{dir:"ltr",sx:{position:"relative",cursor:"default",overflow:"hidden",border:"1px solid",borderColor:"grey.300",borderRadius:1,boxSizing:"border-box",width:N,height:N,opacity:i.disabled?.5:1}},S.default.createElement("iframe",{title:(0,R.__)("Preview","elementor"),sandbox:"",srcDoc:"<style>"+G.componentStyle.rules.join("")+"</style>"+i.html,style:{border:"none",overflow:"hidden",width:W,height:$,transform:"scale(".concat(re,")"),transformOrigin:"".concat(ie,"px ").concat(oe,"px")}}))};C.Thumbnail=$,$.propTypes={html:j.default.string.isRequired,disabled:j.default.bool}},51542:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.UrlDialog=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(36626),R=x(w(23615)),j=w(38003),W=w(95748),N=w(74859),G=w(28378),$=w(84157),J=x(w(5647)),re=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var oe=function UrlDialog(i){var C=(0,N.useTimeout)(1e4),w=(0,k.default)(C,2),x=w[0],O=w[1],R=(0,J.default)(),oe=R.isLoading,ie=R.usagePercentage,le=(0,re.useRequestIds)().updateUsagePercentage,ue=(0,S.useState)(!1),ce=(0,k.default)(ue,2),se=ce[0],de=ce[1],he=(0,$.useRemoteConfig)().remoteConfig[$.CONFIG_KEYS.WEB_BASED_BUILDER_URL],ge=(he?new URL(he):{}).origin,ye=(0,S.useRef)(!1);return(0,S.useEffect)((function(){se||oe||!ie&&0!==ie||(le(ie),de(!0))}),[oe,ie,se,le]),(0,S.useEffect)((function(){if(!ye.current)try{window.$e.run("ai-integration/open-choose-element",{url:i.url}),ye.current=!0}catch(i){console.error(i)}}),[ye.current]),(0,S.useEffect)((function(){var C=function onMessage(C){if(C.origin===ge){var w=C.data,x=w.type,S=w.html,k=w.url;switch(x){case"element-selector/close":ye.current=!1,i.onClose();break;case"element-selector/loaded":O(),ye.current=!0;break;case"element-selector/attach":i.onAttach([{type:"url",previewHTML:S,content:S,label:k?new URL(k).href:"",source:G.USER_URL_SOURCE}])}}};return window.addEventListener("message",C),function(){window.removeEventListener("message",C)}}),[ge,i,O]),S.default.createElement(S.default.Fragment,null,!ye.current&&!x&&S.default.createElement(I.Dialog,{open:!0,maxWidth:"lg"},S.default.createElement(I.Typography,{sx:{textAlign:"center",padding:3}},(0,j.__)("Loading...","elementor"))),x&&S.default.createElement(W.AlertDialog,{message:(0,j.__)("The app is not responding. Please try again later. (#408)","elementor"),onClose:i.onClose}))};C.UrlDialog=oe,oe.propTypes={onAttach:R.default.func.isRequired,onClose:R.default.func.isRequired,url:R.default.string}},42493:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(93231)),R=x(w(40131)),j=x(w(70966)),W=w(36626),N=w(38003),G=x(w(23615)),$=x(w(59441)),J=w(34029),re=["sx","PaperProps"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,I.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var oe=(0,W.styled)($.default)((function(){return{"& .MuiDialog-container":{marginTop:0,alignItems:"flex-end",paddingBottom:"16vh"},"& .MuiPaper-root":{margin:0,maxHeight:"80vh"}}})),ie=function DialogHeader(i){var C=i.onClose,w=i.children;return S.default.createElement(W.AppBar,{sx:{fontWeight:"normal"},color:"transparent",position:"relative"},S.default.createElement(W.Toolbar,{variant:"dense"},S.default.createElement(J.AIIcon,{sx:{mr:1}}),S.default.createElement(W.Typography,{component:"span",variant:"subtitle2",sx:{fontWeight:"bold",textTransform:"uppercase"}},(0,N.__)("AI","elementor")),S.default.createElement(W.Chip,{label:(0,N.__)("Beta","elementor"),color:"default",size:"small",sx:{ml:1}}),S.default.createElement(W.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{ml:"auto"}},w,S.default.createElement(W.IconButton,{size:"small","aria-label":"close",onClick:C,sx:{"&.MuiButtonBase-root":{mr:-1}}},S.default.createElement(J.XIcon,null)))))};ie.propTypes={children:G.default.node,onClose:G.default.func.isRequired};var le=(0,W.styled)($.default.Content)((function(){return{"&.MuiDialogContent-root":{padding:0}}})),ue=function LayoutDialog(i){var C=i.sx,w=void 0===C?{}:C,x=i.PaperProps,O=void 0===x?{}:x,I=(0,j.default)(i,re),W=(0,S.useState)({pointerEvents:"none"}),N=(0,R.default)(W,2),G=N[0],$=N[1],J=(0,S.useRef)(null);return S.default.createElement(oe,(0,k.default)({maxWidth:"md",PaperProps:_objectSpread({sx:{pointerEvents:"auto"},onMouseEnter:function onMouseEnter(){clearTimeout(J.current),$({pointerEvents:"all"})},onMouseLeave:function onMouseLeave(){clearTimeout(J.current),J.current=setTimeout((function(){$({pointerEvents:"none"})}),200)}},O)},I,{sx:_objectSpread(_objectSpread({},G),w)}))};ue.propTypes={sx:G.default.object,PaperProps:G.default.object},ue.Header=ie,ue.Content=le;var ce=ue;C.default=ce},71855:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.ProTemplateIndicator=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=w(38003),R=w(36626),j=x(w(30344));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var W=(0,R.styled)(R.Paper)((function(i){var C=i.theme;return{position:"relative",padding:C.spacing(3),boxShadow:C.shadows[4],zIndex:"9999"}})),N=(0,R.styled)(R.Box)((function(i){var C=i.theme;return{position:"absolute",width:C.spacing(5),height:C.spacing(5),overflow:"hidden",left:"100% !important",transform:"translateX(-50%) translateY(-50%) rotate(var(--rotate, 0deg)) !important","&::after":{backgroundColor:C.palette.background.paper,content:'""',display:"block",position:"absolute",width:C.spacing(2.5),height:C.spacing(2.5),top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%) rotate(45deg)",boxShadow:"5px -5px 5px 0px rgba(0, 0, 0, 0.2)",backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"}}}));C.ProTemplateIndicator=function ProTemplateIndicator(){var i=(0,I.__)("Go Pro","elementor"),C=(0,S.useState)(!1),w=(0,k.default)(C,2),x=w[0],O=w[1],G=(0,S.useRef)(null),$=(0,S.useRef)(null);return S.default.createElement(R.Box,{flexDirection:"row-reverse",component:"span",display:"flex",onMouseLeave:function hidePopover(){return O(!1)},alignItems:"center"},S.default.createElement(R.IconButton,{ref:G,onMouseEnter:function showPopover(){return O(!0)},onClick:function onClick(i){return i.stopPropagation()},"aria-owns":x?"e-pro-upgrade-popover":void 0,"aria-haspopup":"true",sx:{m:1,"&:hover":{backgroundColor:"action.selected"}}},S.default.createElement(j.default,{sx:{color:"text.primary"}})),S.default.createElement(R.Popper,{open:x,popperOptions:{placement:"left-start",modifiers:[{name:"arrow",enabled:!0,options:{element:$.current,padding:5}},{name:"offset",options:{offset:[0,10]}}]},anchorEl:G.current,sx:{zIndex:"9999",maxWidth:300}},S.default.createElement(W,null,S.default.createElement(N,{ref:$}),S.default.createElement(R.Stack,{alignItems:"start",spacing:2},S.default.createElement(R.Chip,{color:"promotion",variant:"outlined",size:"small",label:(0,I.__)("Pro","elementor"),icon:S.default.createElement(j.default,null)}),S.default.createElement(R.Typography,{variant:"body2"},(0,I.__)("This result includes an Elementor Pro widget that's not available with your current plan. Upgrade to use all the widgets in this result.","elementor")),S.default.createElement(R.Button,{variant:"contained",color:"promotion",size:"small",href:"https://go.elementor.com/go-pro-ai/",target:"_blank",sx:{alignSelf:"flex-end"}},i)))))}},40271:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(70966)),R=x(w(73119)),j=x(w(93231)),W=w(36626),N=x(w(23615)),G=w(38003),$=x(w(84515)),J=w(25455),re=["onSubmit"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,j.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var oe=(0,S.forwardRef)((function(i,C){return S.default.createElement(W.TextField,(0,R.default)({autoFocus:!0,multiline:!0,size:"small",maxRows:3,color:"secondary",variant:"standard"},i,{inputRef:C,InputProps:_objectSpread(_objectSpread({},i.InputProps),{},{type:"search",sx:{pt:0}})}))}));oe.propTypes={InputProps:N.default.object};var ie=function PaperComponent(i){var C=(0,J.useConfig)().mode,w=J.MODE_VARIATION===C?"https://go.elementor.com/ai-prompt-library-variations/":"https://go.elementor.com/ai-prompt-library-containers/";return S.default.createElement(W.Paper,(0,R.default)({},i,{elevation:8,sx:{borderRadius:2}}),S.default.createElement(W.Typography,{component:W.Box,color:function color(i){return i.palette.text.tertiary},variant:"caption",paddingX:2,paddingY:1},(0,G.__)("Suggested Prompts","elementor")),S.default.createElement(W.Divider,null),i.children,S.default.createElement(W.Stack,{sx:{m:2}},S.default.createElement($.default,{libraryLink:w})))};ie.propTypes={children:N.default.node};var le=function PromptAutocomplete(i){var C=i.onSubmit,w=(0,I.default)(i,re),x=(0,S.useState)(!1),O=(0,k.default)(x,2),j=O[0],N=O[1],G=(0,W.useTheme)(),$=parseInt(G.spacing(4));return S.default.createElement(W.Autocomplete,(0,R.default)({PaperComponent:ie,ListboxProps:{sx:{maxHeight:5*$}},renderOption:function renderOption(i,C){return S.default.createElement(W.Typography,(0,R.default)({},i,{title:C.text,noWrap:!0,variant:"body2",component:W.Box,sx:{"&.MuiAutocomplete-option":{display:"block",minHeight:$}}}),C.text)},freeSolo:!0,fullWidth:!0,disableClearable:!0,open:j,onClose:function onClose(i){var C;return N("A"===(null===(C=i.relatedTarget)||void 0===C?void 0:C.tagName))},onKeyDown:function onKeyDown(i){"Enter"!==i.key||i.shiftKey||j?"/"===i.key&&""===i.target.value&&(i.preventDefault(),N(!0)):C(i)}},w))};le.propTypes={onSubmit:N.default.func.isRequired},le.TextInput=oe;var ue=le;C.default=ue},47432:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(73119)),R=x(w(70966)),j=w(36626),W=w(38003),N=x(w(23615)),G=x(w(40271)),$=x(w(89216)),J=x(w(78025)),re=x(w(62682)),oe=x(w(33375)),ie=x(w(8817)),le=x(w(28378)),ue=w(25455),ce=w(77292),se=["tooltip"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var de=Object.freeze([{text:(0,W.__)("Hero section on [topic] with heading, text, buttons on the right, and an image on the left","elementor.com")},{text:(0,W.__)("About Us section on [topic] with heading, text, and big image below","elementor.com")},{text:(0,W.__)("Team section with four image boxes showcasing team members","elementor.com")},{text:(0,W.__)("FAQ section with a toggle widget showcasing FAQs about [topic]","elementor.com")},{text:(0,W.__)("Gallery section with a carousel displaying three images at once","elementor.com")},{text:(0,W.__)("Contact section with a form for [topic]","elementor.com")},{text:(0,W.__)("Client section featuring companies' logos","elementor.com")},{text:(0,W.__)("Testimonial section with testimonials, each featuring a star rating and an image","elementor.com")},{text:(0,W.__)("Service section about [topic], showcasing four services with buttons","elementor.com")},{text:(0,W.__)("Stats section with counters displaying data about [topic]","elementor.com")},{text:(0,W.__)("Quote section with colored background, featuring a centered quote","elementor.com")},{text:(0,W.__)("Pricing section for [topic] with a pricing list","elementor.com")},{text:(0,W.__)("Subscribe section featuring a simple email form, inviting users to stay informed on [topic]","elementor.com")}]),he=function IconButtonWithTooltip(i){var C=i.tooltip,w=(0,R.default)(i,se);return S.default.createElement(j.Tooltip,{title:C},S.default.createElement(j.Box,{component:"span",sx:{cursor:w.disabled?"default":"pointer"}},S.default.createElement(j.IconButton,w)))};he.propTypes={tooltip:N.default.string,disabled:N.default.bool};var ge=function BackButton(i){return S.default.createElement(he,(0,I.default)({size:"small",color:"secondary",tooltip:(0,W.__)("Back to results","elementor")},i),S.default.createElement(re.default,null))},ye=function EditButton(i){return S.default.createElement(he,(0,I.default)({size:"small",color:"primary",tooltip:(0,W.__)("Edit prompt","elementor")},i),S.default.createElement(oe.default,null))},ve=function GenerateButton(i){return S.default.createElement(J.default,(0,I.default)({size:"small",fullWidth:!1},i),(0,W.__)("Generate","elementor"))},Ce=(0,S.forwardRef)((function(i,C){var w,x=i.attachments,O=i.isActive,R=i.isLoading,N=i.showActions,J=void 0!==N&&N,re=i.onAttach,oe=i.onDetach,ce=i.onSubmit,se=i.onBack,he=i.onEdit,Ce=i.shouldResetPrompt,Se=void 0!==Ce&&Ce,Pe=(0,S.useState)(""),Ie=(0,k.default)(Pe,2),Re=Ie[0],Me=Ie[1];(0,S.useEffect)((function(){Se&&Me("")}),[Se]);var De=(0,ie.default)(Re,"layout"),Fe=De.isEnhancing,He=De.enhance,Ue=(0,S.useRef)(""),Ge=(0,ue.useConfig)().attachmentsTypes,Ze=R||Fe||!O,Ke=""===Re&&!x.length,Qe=Ze||Ke,et=Ge[(null===(w=x[0])||void 0===w?void 0:w.type)||""],tt=(null==et?void 0:et.promptSuggestions)||de,nt=(null==et?void 0:et.promptPlaceholder)||(0,W.__)("Press '/' for suggested prompts or describe the layout you want to create","elementor");return S.default.createElement(j.Stack,{component:"form",onSubmit:function onSubmit(i){return ce(i,Re)},direction:"row",sx:{p:3},alignItems:"start",gap:1},S.default.createElement(j.Stack,{direction:"row",alignItems:"start",flexGrow:1,spacing:2},J&&(O?S.default.createElement(ge,{disabled:R||Fe,onClick:function handleBack(){Me(Ue.current),se()}}):S.default.createElement(ye,{disabled:R,onClick:function handleEdit(){Ue.current=Re,he()}})),S.default.createElement(le.default,{attachments:x,onAttach:re,onDetach:oe,disabled:Ze}),S.default.createElement(G.default,{value:Re,disabled:Ze,onSubmit:function onSubmit(i){return ce(i,Re)},options:tt,onChange:function onChange(i,C){return Me(C.text+" ")},renderInput:function renderInput(i){return S.default.createElement(G.default.TextInput,(0,I.default)({},i,{ref:C,onChange:function onChange(i){return Me(i.target.value)},placeholder:nt}))}})),S.default.createElement($.default,{size:"small",disabled:Qe||""===Re,isLoading:Fe,onClick:function onClick(){return He().then((function(i){var C=i.result;return Me(C)}))}}),S.default.createElement(ve,{disabled:Qe}))}));Ce.propTypes={isActive:N.default.bool,onAttach:N.default.func,onDetach:N.default.func,isLoading:N.default.bool,showActions:N.default.bool,onSubmit:N.default.func.isRequired,onBack:N.default.func.isRequired,onEdit:N.default.func.isRequired,attachments:N.default.arrayOf(ce.AttachmentPropType),shouldResetPrompt:N.default.bool};var Se=Ce;C.default=Se},88976:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(36626),O=(0,x.styled)(x.Box,{shouldForwardProp:function shouldForwardProp(i){return"outlineOffset"!==i}})((function(i){var C=i.theme,w=i.selected,x=i.height,O=i.disabled,S=i.outlineOffset,k=void 0===S?"0px":S,I=w?C.palette.text.primary:C.palette.text.disabled,R="2px solid ".concat(I);return{height:x,cursor:O?"default":"pointer",overflow:"hidden",boxSizing:"border-box",backgroundPosition:"top center",backgroundSize:"100% auto",backgroundRepeat:"no-repeat",backgroundColor:C.palette.common.white,borderRadius:.5*C.shape.borderRadius,outlineOffset:k,outline:R,opacity:O?"0.4":"1",transition:"all 50ms linear","&:hover":O?{}:{outlineColor:C.palette.text.primary}}}));C.default=O},78305:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=ScreenshotUnavailable;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(23615)),R=w(38003),j=x(w(88976));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}function ScreenshotUnavailable(i){return O.default.createElement(j.default,(0,S.default)({},i,{sx:_objectSpread(_objectSpread({},i.sx||{}),{},{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"background.paper",color:"text.tertiary",fontStyle:"italic",fontSize:"12px",paddingInline:12,textAlign:"center",lineHeight:1.5})}),(0,R.__)("Preview unavailable","elementor"))}ScreenshotUnavailable.propTypes={sx:I.default.object}},90031:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=w(36626),I=x(w(23615)),R=x(w(88976)),j=x(w(78305)),W=x(w(10987));function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N="138px",G=function Screenshot(i){var C=i.url,w=i.type,x=i.isLoading,S=void 0!==x&&x,I=i.isSelected,G=void 0!==I&&I,$=i.isPlaceholder,J=i.disabled,re=i.onClick,oe=i.sx,ie=void 0===oe?{}:oe,le=i.outlineOffset;return $?O.default.createElement(k.Box,{sx:_objectSpread({height:N},ie)}):S?O.default.createElement(k.Skeleton,{width:"100%",animation:"wave",variant:"rounded",height:N,sx:ie}):C?O.default.createElement(R.default,{selected:G,disabled:J,sx:_objectSpread({backgroundImage:"url('".concat(C,"')")},ie),onClick:re,height:N,outlineOffset:le},O.default.createElement(W.default,{type:w})):O.default.createElement(j.default,{selected:G,disabled:J,sx:ie,onClick:re,height:N,outlineOffset:le})};G.propTypes={isSelected:I.default.bool,isLoading:I.default.bool,isPlaceholder:I.default.bool,disabled:I.default.bool,onClick:I.default.func.isRequired,url:I.default.string,type:I.default.string,sx:I.default.object,outlineOffset:I.default.string};var $=G;C.default=$},10987:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(23615)),k=w(25455),I=w(71855),R=function TemplateBadge(i){var C=(0,k.useConfig)().hasPro;return"Pro"!==i.type||C?null:O.default.createElement(I.ProTemplateIndicator,null)},j=R;C.default=j,R.propTypes={type:S.default.string}},88387:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=["onClose","onCancel","title","text"],N=function UnsavedChangesAlert(i){var C=i.onClose,w=i.onCancel,x=i.title,j=i.text,N=(0,k.default)(i,W);return O.default.createElement(I.Dialog,(0,S.default)({"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},N),O.default.createElement(I.DialogTitle,{id:"unsaved-changes-alert-title"},x),O.default.createElement(I.DialogContent,null,O.default.createElement(I.DialogContentText,{id:"unsaved-changes-alert-description"},j)),O.default.createElement(I.DialogActions,null,O.default.createElement(I.Button,{onClick:w,color:"secondary"},(0,R.__)("Cancel","elementor")),O.default.createElement(I.Button,{onClick:C,color:"error",variant:"contained"},(0,R.__)("Yes, leave","elementor"))))};N.propTypes={title:j.default.string,text:j.default.string,onCancel:j.default.func,onClose:j.default.func};var G=N;C.default=G},25455:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.useConfig=C.default=C.MODE_VARIATION=C.MODE_LAYOUT=C.LAYOUT_APP_MODES=C.ConfigProvider=void 0;var O=x(w(87363)),S=x(w(23615)),k="layout";C.MODE_LAYOUT=k;var I="variation";C.MODE_VARIATION=I;var R=[k,I];C.LAYOUT_APP_MODES=R;var j=O.default.createContext({});C.useConfig=function useConfig(){return O.default.useContext(j)};var W=function ConfigProvider(i){return O.default.createElement(j.Provider,{value:{mode:i.mode,attachmentsTypes:i.attachmentsTypes,onClose:i.onClose,onConnect:i.onConnect,onData:i.onData,onInsert:i.onInsert,onSelect:i.onSelect,onGenerate:i.onGenerate,currentContext:i.currentContext,hasPro:i.hasPro}},i.children)};C.ConfigProvider=W,W.propTypes={mode:S.default.oneOf(R).isRequired,children:S.default.node.isRequired,attachmentsTypes:S.default.object.isRequired,onClose:S.default.func.isRequired,onConnect:S.default.func.isRequired,onData:S.default.func.isRequired,onInsert:S.default.func.isRequired,onSelect:S.default.func.isRequired,onGenerate:S.default.func.isRequired,currentContext:S.default.object,hasPro:S.default.bool};var N=j;C.default=N},84157:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useRemoteConfig=C.RemoteConfigProvider=C.CONFIG_KEYS=void 0;var S=x(w(50824)),k=x(w(10029)),I=x(w(40131)),R=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),j=x(w(23615)),W=w(46183);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var N=R.default.createContext({});C.useRemoteConfig=function useRemoteConfig(){return R.default.useContext(N)};C.CONFIG_KEYS={WEB_BASED_BUILDER_URL:"webBasedBuilderUrl",AUTH_TOKEN:"jwt"};var G=function RemoteConfigProvider(i){var C=(0,R.useState)(!1),w=(0,I.default)(C,2),x=w[0],O=w[1],j=(0,R.useState)(!1),G=(0,I.default)(j,2),$=G[0],J=G[1],re=(0,R.useState)(!1),oe=(0,I.default)(re,2),ie=oe[0],le=oe[1],ue=(0,R.useState)({}),ce=(0,I.default)(ue,2),se=ce[0],de=ce[1],he=function(){var i=(0,k.default)(S.default.mark((function _callee(){var i;return S.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return O(!0),le(!1),C.prev=2,C.next=5,(0,W.getRemoteConfig)().finally((function(){J(!0),O(!1)}));case 5:if((i=C.sent).config){C.next=8;break}throw new Error("Invalid remote config");case 8:de(i.config),C.next=16;break;case 11:C.prev=11,C.t0=C.catch(2),le(!0),J(!0),O(!1);case 16:case"end":return C.stop()}}),_callee,null,[[2,11]])})));return function fetchData(){return i.apply(this,arguments)}}();return(0,R.useEffect)((function(){return window.addEventListener("elementor/connect/success",he),function(){window.removeEventListener("elementor/connect/success",he)}}),[]),$||x||he(),R.default.createElement(N.Provider,{value:{isLoading:x,isLoaded:$,isError:ie,remoteConfig:se}},i.children)};C.RemoteConfigProvider=G,G.propTypes={children:j.default.node.isRequired,onError:j.default.func.isRequired}},88882:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(60675)),k=function useLayoutPrompt(i,C){return(0,S.default)((function(C,w){return C.variationType=i,(0,O.generateLayout)(C,w)}),C)};C.default=k},15764:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(10029)),k=x(w(40131)),I=w(87363),R=x(w(88882)),j=function useScreenshot(i,C){var w=(0,I.useState)(""),x=(0,k.default)(w,2),j=x[0],W=x[1],N=(0,I.useState)(!1),G=(0,k.default)(N,2),$=G[0],J=G[1],re=(0,R.default)(i,null);return{generate:function generate(i,w){return J(!0),W(""),re.send(i,w).then(function(){var i=(0,S.default)(O.default.mark((function _callee(i){var w;return O.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,C(i.result);case 2:return(w=x.sent).sendUsageData=function(){return re.sendUsageData(i)},w.baseTemplateId=i.baseTemplateId,w.type=i.type,x.abrupt("return",w);case 7:case"end":return x.stop()}}),_callee)})));return function(C){return i.apply(this,arguments)}}()).catch((function(i){throw W(i.extra_data?i:i.message||i),i})).finally((function(){return J(!1)}))},error:j,isLoading:$}};C.default=j},12451:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(9833)),k=x(w(10029)),I=x(w(40131)),R=w(87363),j=x(w(15764)),W=w(25455),N=w(35879),G={isPending:!0},$=function useScreenshots(i){var C=i.onData,w=(0,R.useState)([]),x=(0,I.default)(w,2),$=x[0],J=x[1],re=(0,W.useConfig)().currentContext,oe=(0,N.useRequestIds)(),ie=oe.editorSessionId,le=oe.sessionId,ue=oe.setRequest,ce=oe.setBatch,se=oe.setGenerate,de=(0,R.useRef)(""),he=ce(),ge=[(0,j.default)(0,C),(0,j.default)(1,C),(0,j.default)(2,C)],ye=ge.length,ve=ge.every((function(i){return null==i?void 0:i.error}))?ge[0].error:"",Ce=ge.some((function(i){return null==i?void 0:i.isLoading})),Se=(0,R.useRef)(null),Pe=function(){var i=(0,k.default)(O.default.mark((function _callee(i,C){var w,x,k,I;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:return Se.current=new AbortController,w=function onGenerate(i){return J((function(C){var w=(0,S.default)(C),x=w.indexOf(G);return w[x]=i,w})),!0},x=function onError(){return J((function(i){var C=(0,S.default)(i),w=C.lastIndexOf(G);return C[w]={isError:!0},C})),!1},k=ge.map((function(O){var S=O.generate,k=$.map((function(i){return i.baseTemplateId||""}));return S({prompt:i,prevGeneratedIds:k,currentContext:re,ids:{editorSessionId:ie.current,sessionId:le.current,generateId:de.current,batchId:he.current,requestId:ue().current},attachments:C.map((function(i){return{type:i.type,content:i.content,label:i.label,source:i.source}}))},Se.current.signal).then(w).catch(x)})),O.next=6,Promise.all(k);case 6:I=O.sent,I.every((function(i){return!1===i}))&&J((function(i){var C=(0,S.default)(i);return C.splice(-1*ye),C}));case 9:case"end":return O.stop()}}),_callee)})));return function createScreenshots(C,w){return i.apply(this,arguments)}}();return{generate:function generate(i,C){var w=Array(ye).fill(G);de.current=se().current,J(w),Pe(i,C)},regenerate:function regenerate(i,C){var w=Array(ye).fill(G);J((function(i){return[].concat((0,S.default)(i),(0,S.default)(w))})),Pe(i,C)},screenshots:$,isLoading:Ce,error:ve,abort:function abort(){var i;return null===(i=Se.current)||void 0===i?void 0:i.abort()}}};C.default=$},24:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.SCREENSHOTS_PER_PAGE=C.MAX_PAGES=void 0;var O=x(w(40131)),S=w(87363);C.SCREENSHOTS_PER_PAGE=3;C.MAX_PAGES=5;var k=function useSlider(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},C=i.slidesCount,w=void 0===C?0:C,x=i.slidesPerPage,k=void 0===x?3:x,I=i.gapPercentage,R=void 0===I?2:I,j=(0,S.useState)(1),W=(0,O.default)(j,2),N=W[0],G=W[1],$=(100-R*(k-1))/k,J=($+R)*k*(N-1)*-1,re=Math.ceil(w/k);return(0,S.useEffect)((function(){N>1&&N>re&&G(re)}),[re]),{currentPage:N,setCurrentPage:G,pagesCount:re,slidesPerPage:k,gapPercentage:R,offsetXPercentage:J,slideWidthPercentage:$}};C.default=k},16068:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(9833)),I=x(w(70966)),R=x(w(40131)),j=x(w(73119)),W=x(w(23615)),N=w(38003),G=w(36626),$=x(w(86960)),J=x(w(88387)),re=x(w(42493)),oe=x(w(47432)),ie=x(w(28965)),le=x(w(90031)),ue=x(w(12451)),ce=_interopRequireWildcard(w(24)),se=x(w(7377)),de=x(w(49294)),he=w(25455),ge=w(77292),ye=w(42335),ve=w(28378),Ce=x(w(31282)),Se=x(w(50429)),Pe=w(90246),Ie=["children"];function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}var Re=(0,G.withDirection)(se.default),Me=(0,G.withDirection)(de.default),De=function RegenerateButton(i){return S.default.createElement(G.Button,(0,j.default)({size:"small",color:"secondary",startIcon:S.default.createElement(ie.default,null)},i),(0,N.__)("Regenerate","elementor"))},Fe=function UseLayoutButton(i){return S.default.createElement(G.Button,(0,j.default)({size:"small",variant:"contained"},i),(0,N.__)("Use Layout","elementor"))};Fe.propTypes={sx:W.default.object};var He=function isRegenerateButtonDisabled(i,C,w){return!(!C&&!w)||i.length>=ce.SCREENSHOTS_PER_PAGE*ce.MAX_PAGES},Ue=function FormLayout(i){var C,w,x=i.DialogHeaderProps,O=void 0===x?{}:x,W=i.DialogContentProps,ie=void 0===W?{}:W,se=i.attachments,de=(0,he.useConfig)(),ge=de.attachmentsTypes,Ue=de.onData,Ge=de.onInsert,Ze=de.onSelect,Ke=de.onClose,Qe=de.onGenerate,et=(0,ue.default)({onData:Ue}),tt=et.screenshots,nt=et.generate,rt=et.regenerate,ot=et.isLoading,at=et.error,it=et.abort,lt=(0,ce.default)({slidesCount:tt.length}),ut=lt.currentPage,ct=lt.setCurrentPage,st=lt.pagesCount,dt=lt.gapPercentage,ft=lt.slidesPerPage,pt=lt.offsetXPercentage,mt=lt.slideWidthPercentage,ht=(0,S.useState)(-1),gt=(0,R.default)(ht,2),yt=gt[0],vt=gt[1],bt=(0,S.useState)(!1),_t=(0,R.default)(bt,2),Ct=_t[0],wt=_t[1],Et=(0,S.useState)(!0),xt=(0,R.default)(Et,2),Ot=xt[0],St=xt[1],Pt=(0,S.useState)([]),kt=(0,R.default)(Pt,2),It=kt[0],Tt=kt[1],Rt=(0,S.useState)(!1),jt=(0,R.default)(Rt,2),At=jt[0],Mt=jt[1],Dt=(0,S.useState)(!1),Lt=(0,R.default)(Dt,2),Bt=Lt[0],Wt=Lt[1],qt=(0,S.useRef)((function(){})),Ft=(0,S.useRef)(null),Nt=null===(C=tt[yt])||void 0===C?void 0:C.template,Ht=ie.children,zt=(0,I.default)(ie,Ie),Ut=!(!at||0!==tt.length),Vt=Ot||Ut,Gt=function abortAndClose(){it(),Ke()},$t=function onCloseIntent(){if(""!==Ft.current.value.trim()||tt.length>0)return wt(!0);Gt()},Yt=function handleScreenshotClick(i,C){return function(){Vt||(vt(i),Ze(C))}},Zt=function onAttach(i){i.forEach((function(i){if(!ge[i.type])throw new Error("Invalid attachment type: ".concat(i.type));var C=ge[i.type];!i.previewHTML&&C.previewGenerator&&C.previewGenerator(i.content).then((function(C){i.previewHTML=C,Tt((function(C){return C.map((function(C){return C.content===i.content?i:C}))}))}))})),Tt(i),Mt(!1),St(!0)};return(0,S.useEffect)((function(){var i;(null===(i=tt[0])||void 0===i?void 0:i.template)&&(Ze(tt[0].template),vt(0))}),[null===(w=tt[0])||void 0===w?void 0:w.template]),(0,S.useEffect)((function(){null!=se&&se.length&&Zt(se)}),[]),S.default.createElement(re.default,{onClose:$t},S.default.createElement(re.default.Header,(0,j.default)({onClose:$t},O),O.children,S.default.createElement(G.Tooltip,{title:Bt?(0,N.__)("Expand","elementor"):(0,N.__)("Minimize","elementor")},S.default.createElement(G.IconButton,{size:"small","aria-label":"minimize",onClick:function onClick(){return Wt((function(i){return!i}))}},Bt?S.default.createElement(Me,null):S.default.createElement(Re,null)))),S.default.createElement(re.default.Content,(0,j.default)({dividers:!0},zt),S.default.createElement(G.Collapse,{in:!Bt},Ht&&S.default.createElement(G.Box,{sx:{pt:2,px:2,pb:0}},Ht),It.length>0&&S.default.createElement(ye.PromptPowerNotice,null),at&&S.default.createElement(G.Box,{sx:{pt:2,px:2,pb:0}},S.default.createElement($.default,{error:at,onRetry:qt.current})),Ct&&S.default.createElement(J.default,{open:Ct,title:(0,N.__)("Leave Elementor AI?","elementor"),text:(0,N.__)("Your progress will be deleted, and can't be recovered.","elementor"),onClose:Gt,onCancel:function onCancel(){return wt(!1)}}),At&&S.default.createElement(Ce.default,{type:ve.ATTACHMENT_TYPE_URL,url:Ft.current.value,onAttach:Zt,onClose:function onClose(){Mt(!1)}}),S.default.createElement(oe.default,{shouldResetPrompt:At,ref:Ft,isActive:Vt,isLoading:ot,showActions:tt.length>0||ot,attachmentsTypes:ge,attachments:It,onAttach:Zt,onDetach:function onDetach(i){Tt((function(C){var w=(0,k.default)(C);return w.splice(i,1),w})),St(!0)},onSubmit:function handleGenerate(i,C){i.preventDefault(),""===C.trim()&&0===It.length||((0,Se.default)(C)?Mt(!0):(Qe(),qt.current=function(){vt(-1),nt(C,It)},qt.current(),St(!1),ct(1)))},onBack:function onBack(){return St(!1)},onEdit:function onEdit(){return St(!0)}}),(tt.length>0||ot)&&S.default.createElement(S.default.Fragment,null,S.default.createElement(G.Divider,null),S.default.createElement(G.Box,{sx:{p:1.5}},S.default.createElement(G.Box,{sx:{overflow:"hidden",p:.5}},S.default.createElement(G.Box,{sx:{display:"flex",transition:"all 0.4s ease",gap:"".concat(dt,"%"),transform:"translateX(".concat(pt,"%)")}},tt.map((function(i,C){var w=i.screenshot,x=i.type,O=i.template,k=i.isError,I=i.isPending;return S.default.createElement(le.default,{key:C,url:w,type:x,disabled:Vt,isPlaceholder:k,isLoading:I,isSelected:yt===C,onClick:Yt(C,O),outlineOffset:"2px",sx:{flex:"0 0 ".concat(mt,"%")}})})))),S.default.createElement(Pe.VoicePromotionAlert,{introductionKey:"ai-context-layout-promotion"})),tt.length>0&&S.default.createElement(G.Box,{sx:{pt:0,px:2,pb:2},display:"grid",gridTemplateColumns:"repeat(3, 1fr)",justifyItems:"center"},S.default.createElement(De,{onClick:function handleRegenerate(){qt.current=function(){rt(Ft.current.value,It),ct(st+1)},qt.current()},disabled:He(tt,ot,Vt),sx:{justifySelf:"start"}}),tt.length>ft&&S.default.createElement(G.Pagination,{page:ut,count:st,disabled:Vt,onChange:function onChange(i,C){return ct(C)}}),S.default.createElement(Fe,{onClick:function applyTemplate(){Ge(Nt),tt[yt].sendUsageData(),Gt()},disabled:Vt||-1===yt,sx:{justifySelf:"end",gridColumn:3}}))))))};Ue.propTypes={DialogHeaderProps:W.default.object,DialogContentProps:W.default.object,attachments:W.default.arrayOf(ge.AttachmentPropType)};var Ge=Ue;C.default=Ge},99502:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(82752)),N=["children"],G=(0,I.withDirection)(W.default),$=function BackButton(i){var C=i.children,w=(0,k.default)(i,N);return O.default.createElement(I.Button,(0,S.default)({size:"small",variant:"text",color:"secondary",startIcon:O.default.createElement(G,null)},w),C||(0,R.__)("Back","elementor"))};$.propTypes={children:j.default.node};var J=$;C.default=J},89216:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=x(w(55995)),N=["isLoading"],G=(0,I.withDirection)(W.default),$=function EnhanceButton(i){var C=i.isLoading,w=(0,k.default)(i,N);return O.default.createElement(I.Tooltip,{title:(0,R.__)("Enhance prompt","elementor")},O.default.createElement(I.Box,{component:"span",sx:{cursor:w.disabled?"default":"pointer"}},O.default.createElement(I.IconButton,(0,S.default)({size:"small",color:"secondary"},w),C?O.default.createElement(I.CircularProgress,{color:"secondary",size:20}):O.default.createElement(G,{fontSize:"small"}))))};$.propTypes={disabled:j.default.bool,isLoading:j.default.bool};var J=$;C.default=J},50691:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=x(w(22231)),W=x(w(28932)),N=x(w(39453)),G=w(86802),$=["children"],J=["alt","src","text","children","aspectRatio","variant","OverlayBarProps"],re=Object.keys(G.IMAGE_ASPECT_RATIO),oe=function Gallery(i){var C=i.children,w=(0,k.default)(i,$);return O.default.createElement(I.ImageList,(0,S.default)({width:"100%",cols:2,gap:24},w),C)};oe.propTypes={children:R.default.node};var ie=function GalleryImage(i){var C=i.alt,w=i.src,x=i.text,R=i.children,G=i.aspectRatio,$=void 0===G?"1:1":G,re=i.variant,oe=void 0===re?"contained":re,ie=i.OverlayBarProps,le=void 0===ie?{}:ie,ue=(0,k.default)(i,J),ce={};return"thumbnail"===oe?(ce.width="100%",ce.maxHeight="238px",ce.minWidth="230px"):(ce.width="auto",ce.height="auto",ce.maxWidth="100%",ce.maxHeight="1:1"===$?"initial":"100%",ce.objectFit="contain",ce.aspectRatio=$.replace(":"," / ")),O.default.createElement(I.ImageListItem,ue,O.default.createElement(I.Box,{display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:"contained"===oe?336:"auto",position:"relative",overflow:"hidden"}},O.default.createElement("img",{alt:C,src:w,style:ce})),R&&O.default.createElement(j.default,null,O.default.createElement(W.default,(0,S.default)({gap:1,position:"bottom"},le),x&&O.default.createElement(N.default,null,x),R)))};ie.propTypes={alt:R.default.string,src:R.default.string,text:R.default.string,children:R.default.node,BoxProps:R.default.object,OverlayBarProps:R.default.object,aspectRatio:R.default.oneOf(re),variant:R.default.oneOf(["contained","thumbnail"])},oe.Image=ie;var le=oe;C.default=le},12970:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=x(w(28965)),j=function GenerateAgainSubmit(i){return O.default.createElement(k.Button,(0,S.default)({fullWidth:!0,type:"submit",variant:"contained",color:"secondary",startIcon:O.default.createElement(R.default,null),sx:{color:"background.paper"}},i),(0,I.__)("Generate again","elementor"))};C.default=j},66467:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(4466)),I=w(38003),R=x(w(90246)),j=function GenerateImagesSubmit(i){return O.default.createElement(O.default.Fragment,null,O.default.createElement(k.default,(0,S.default)({size:"medium",fullWidth:!0},i),(0,I.__)("Generate images","elementor")),O.default.createElement(R.default,{introductionKey:"ai-context-media-promotion"}))};C.default=j},49566:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=w(34029),R=function GenerateLoader(){return O.default.createElement(S.Stack,{alignItems:"center",justifyContent:"center",gap:2,width:"100%"},O.default.createElement(I.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),O.default.createElement(S.Typography,{variant:"h5",sx:{color:"text.primary"}},(0,k.__)("Bringing your vision to life...","elementor")),O.default.createElement(S.Typography,{variant:"body1"},(0,k.__)("Hold tight, painting dreams might take a moment.","elementor")),O.default.createElement(S.Box,{sx:{px:1.5,py:2.5,width:"100%",maxWidth:600}},O.default.createElement(S.LinearProgress,{color:"inherit"})))};C.default=R},78025:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=x(w(23615)),j=function GenerateSubmit(i){return O.default.createElement(k.Button,(0,S.default)({fullWidth:!0,size:"medium",type:"submit",variant:"contained"},i),i.children||(0,I.__)("Generate","elementor"))};j.propTypes={children:R.default.node};var W=j;C.default=W},21619:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(70966)),I=x(w(73119)),R=w(36626),j=w(38003),W=x(w(23615)),N=x(w(85541)),G=x(w(33375)),$=x(w(90350)),J=x(w(80897)),re=["children"],oe=["sx"],ie=["sx"],le=["sx"],ue=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var ce=(0,R.withDirection)(G.default),se=(0,R.withDirection)(N.default),de=(0,R.withDirection)(J.default),he=function Tooltip(i){return O.default.createElement(R.Tooltip,(0,I.default)({PopperProps:{sx:{"&.MuiTooltip-popper .MuiTooltip-tooltip.MuiTooltip-tooltipPlacementBottom":{mt:1}}}},i))},ge=function ImageActions(i){var C=i.children,w=(0,k.default)(i,re);return O.default.createElement(R.Box,(0,I.default)({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:1},w),C)};ge.propTypes={children:W.default.node};var ye=function UseImage(i){i.sx;var C=(0,k.default)(i,oe);return O.default.createElement(R.Button,(0,I.default)({size:"small",variant:"contained",startIcon:O.default.createElement($.default,null)},C),(0,j.__)("Use Image","elementor"))};ye.propTypes={sx:W.default.object};var ve=function EditIcon(i){var C=i.sx,w=void 0===C?{}:C,x=(0,k.default)(i,ie);return O.default.createElement(he,{title:(0,j.__)("Edit","elementor")},O.default.createElement(R.IconButton,(0,I.default)({sx:_objectSpread({mr:-1.5,ml:.5,color:"common.white","&:hover":{color:"common.white"}},w)},x),O.default.createElement(ce,null)))};ve.propTypes={sx:W.default.object};var Ce=function ZoomIcon(i){var C=i.sx,w=void 0===C?{}:C,x=(0,k.default)(i,le);return O.default.createElement(he,{title:(0,j.__)("Zoom","elementor")},O.default.createElement(R.IconButton,(0,I.default)({color:"secondary","aria-label":(0,j.__)("Zoom","elementor"),sx:_objectSpread({color:"common.white","&:hover":{color:"common.white"}},w)},x),O.default.createElement(de,null)))};Ce.propTypes={sx:W.default.object};var Se=function CopyIcon(i){var C=i.sx,w=void 0===C?{}:C,x=(0,k.default)(i,ue);return O.default.createElement(he,{title:(0,j.__)("Copy prompt","elementor")},O.default.createElement(R.IconButton,(0,I.default)({sx:_objectSpread({mr:-1.5,ml:.5,color:"common.white","&:hover":{color:"common.white"}},w)},x),O.default.createElement(se,null)))};Se.propTypes={sx:W.default.object},ge.UseImage=ye,ge.EditImage=function EditImage(i){return O.default.createElement(R.Button,(0,I.default)({size:"small",color:"secondary",startIcon:O.default.createElement(ce,null)},i),(0,j.__)("Edit","elementor"))},ge.EditIcon=ve,ge.ZoomIcon=Ce,ge.CopyIcon=Se;var Pe=ge;C.default=Pe},38793:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=["children"],W=function ImageForm(i){var C=i.children,w=(0,k.default)(i,j);return O.default.createElement(I.Box,(0,S.default)({component:"form"},w),O.default.createElement(I.Stack,{spacing:2.5},C))};W.propTypes={children:R.default.node};var N=W;C.default=N},84123:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(40131)),I=x(w(93970)),R=w(38003),j=w(86802),W=Object.entries(j.IMAGE_ASPECT_RATIO).map((function(i){var C=(0,k.default)(i,2),w=C[0];return{label:C[1].label,value:w}})),N=function ImageRatioSelect(i){return O.default.createElement(I.default,(0,S.default)({options:W,wrapperStyle:{width:"100%"},label:(0,R.__)("Aspect ratio","elementor")},i))};C.default=N},57239:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(73119)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=x(w(82752)),N=x(w(49448)),G=["onPrev","onNext","children"],$=["children","startAction","sx"],J=["src","alt"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var re=(0,R.withDirection)(W.default),oe=(0,R.withDirection)(N.default),ie=function ImageSlider(i){var C=i.onPrev,w=i.onNext,x=i.children,S=(0,I.default)(i,G);return O.default.createElement(R.Stack,(0,k.default)({alignItems:"flex-start",spacing:.5},S),O.default.createElement(R.Stack,{direction:"row",spacing:2.5,alignSelf:"center",alignItems:"center"},O.default.createElement(R.IconButton,{onClick:C,size:"large",color:"secondary"},O.default.createElement(re,null)),O.default.createElement(R.Stack,{spacing:.5,justifyContent:"space-around",alignItems:"center"},x),O.default.createElement(R.IconButton,{onClick:w,size:"large",color:"secondary"},O.default.createElement(oe,null))))};ie.propTypes={onPrev:j.default.func.isRequired,onNext:j.default.func.isRequired,children:j.default.node.isRequired};var le=function Actions(i){var C=i.children,w=i.startAction,x=i.sx,S=void 0===x?{}:x,j=(0,I.default)(i,$);return O.default.createElement(R.Box,(0,k.default)({display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%"},j,{sx:_objectSpread({mb:1.5},S)}),w,O.default.createElement(R.Stack,{direction:"row",spacing:2,justifyContent:"flex-end",flexGrow:1,width:"100%"},C))};le.propTypes={sx:j.default.object,startAction:j.default.node,children:j.default.node.isRequired};var ue=function Image(i){var C=i.src,w=i.alt,x=void 0===w?"":w,S=(0,I.default)(i,J);return O.default.createElement(R.Box,{display:"flex",justifyContent:"center",alignItems:"center"},O.default.createElement("img",(0,k.default)({src:C,alt:x},S)))};ue.propTypes={alt:j.default.string,src:j.default.string.isRequired},ie.Actions=le,ie.Image=ue;var ce=ie;C.default=ce},75703:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(40131)),I=x(w(70966)),R=x(w(23615)),j=w(38003),W=x(w(93970)),N=w(86802),G=["type"],$=function ImageStyleSelect(i){var C,w=i.type,x=void 0===w?"":w,R=(0,I.default)(i,G),$=Object.entries((null===(C=N.IMAGE_PROMPT_CATEGORIES[x])||void 0===C?void 0:C.subCategories)||{}).map((function(i){var C=(0,k.default)(i,2),w=C[0];return{label:C[1],value:w}}));return O.default.createElement(W.default,(0,S.default)({options:$,wrapperStyle:{width:"100%"},label:(0,j.__)("Style","elementor")},R))};$.propTypes={type:R.default.string.isRequired};var J=$;C.default=J},50198:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(40131)),I=x(w(93970)),R=w(38003),j=w(86802),W=Object.entries(j.IMAGE_PROMPT_CATEGORIES).map((function(i){var C=(0,k.default)(i,2),w=C[0];return{label:C[1].label,value:w}})),N=function ImageTypeSelect(i){return O.default.createElement(I.default,(0,S.default)({options:W,wrapperStyle:{width:"100%"},label:(0,R.__)("Image type","elementor")},i))};C.default=N},69425:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=x(w(98608)),N=x(w(66690)),G=x(w(57239)),$=x(w(21619)),J=x(w(50691)),re=x(w(99502)),oe=x(w(20273)),ie=["children","sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var le=function Container(i){var C=i.children,w=i.sx,x=void 0===w?{}:w,k=(0,I.default)(i,ie);return O.default.createElement(R.Box,(0,S.default)({flexGrow:1},k,{sx:_objectSpread({overflowY:"scroll"},x)}),C)};le.propTypes={sx:j.default.object,children:j.default.node};var ue=function ImagesDisplay(i){var C=i.images,w=i.aspectRatio,x=void 0===w?"1:1":w,S=i.onUseImage,k=i.onEditImage,I=i.transparentContainer,j=void 0!==I&&I,ie=(0,N.default)(C),ue=ie.zoomIndex,ce=ie.setZoomIndex,se=ie.actions,de=(0,W.default)(x),he=de.width,ge=de.height;if(ue>-1){var ye=C[ue];return O.default.createElement(le,null,O.default.createElement(G.default,{onPrev:se.prev,onNext:se.next},O.default.createElement(G.default.Actions,{startAction:O.default.createElement(re.default,{onClick:se.reset})},O.default.createElement($.default.EditImage,{onClick:function onClick(){return k(ye)}}),O.default.createElement($.default.UseImage,{onClick:function onClick(){return S(ye)}})),O.default.createElement(G.default.Image,{src:ye.image_url,style:{maxWidth:"630px",width:"100%",height:"auto"}})))}if(1===C.length){var ve=C[0],Ce={width:he,height:ge};return j&&(Ce.backgroundImage="linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%)",Ce.backgroundSize="20px 20px",Ce.backgroundPosition="0 0, 0 10px, 10px -10px, -10px 0px"),O.default.createElement(le,{flexDirection:"column"},O.default.createElement(oe.default,null,O.default.createElement(oe.default.Image,{src:ve.image_url||ve.url,style:Ce,alt:"generated-image"},O.default.createElement(oe.default.Actions,null,O.default.createElement($.default.EditImage,{onClick:function onClick(){return k(ve)}}),O.default.createElement($.default.UseImage,{onClick:function onClick(){return S(ve)}})))))}return O.default.createElement(le,null,O.default.createElement(J.default,null,C.map((function(i,C){return O.default.createElement(J.default.Image,{key:"result-".concat(i.seed),alt:"generated-".concat(C),src:i.image_url,aspectRatio:x,"data-testid":"e-gallery-image"},O.default.createElement($.default,null,O.default.createElement($.default.UseImage,{onClick:function onClick(){return S(i)},size:"medium",fullWidth:!0}),O.default.createElement(R.Stack,{direction:"row",spacing:.25,alignItems:"center"},O.default.createElement($.default.ZoomIcon,{onClick:function onClick(){return ce(C)},size:"medium"}),O.default.createElement($.default.EditIcon,{onClick:function onClick(){return k(i)},size:"medium"}))))}))))};ue.propTypes={images:j.default.array,aspectRatio:j.default.string,onUseImage:j.default.func,onEditImage:j.default.func,transparentContainer:j.default.bool},ue.Container=le;var ce=ue;C.default=ce},69870:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=w(36626),I=w(38003),R=function NewPromptButton(i){return O.default.createElement(k.Button,(0,S.default)({fullWidth:!0,variant:"text",color:"secondary"},i),(0,I.__)("New prompt","elementor"))};C.default=R},65875:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=x(w(23615)),j=x(w(87105)),W=x(w(89216)),N=x(w(8817)),G=["disabled","onChange"],$=function PromptField(i){var C=i.disabled,w=i.onChange,x=(0,k.default)(i,G),R=(0,N.default)(x.value,"media"),$=R.enhance,J=R.isEnhancing;return O.default.createElement(j.default,(0,S.default)({minRows:3,maxRows:6,InputProps:{endAdornment:O.default.createElement(I.InputAdornment,{position:"end",sx:{position:"absolute",bottom:"24px",right:"8px"}},O.default.createElement(W.default,{isLoading:J,disabled:C||J||!x.value,onClick:function onClick(){$(prompt).then((function(i){var C=i.result;return w(C)}))}}))},sx:{"& .MuiInputBase-input.MuiOutlinedInput-input.MuiInputBase-inputMultiline":{pb:5,width:"89%"}},onKeyDown:function onKeyDown(i){"Tab"===i.key&&(i.preventDefault(),w(x.placeholder))}},x,{onChange:function onChange(i){return w(i.target.value)},disabled:C||J}))};$.propTypes={value:R.default.string,disabled:R.default.bool,placeholder:R.default.string,onChange:R.default.func.isRequired};var J=$;C.default=J},20273:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(93231)),k=x(w(73119)),I=x(w(70966)),R=w(36626),j=x(w(23615)),W=["children"],N=["children","sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,S.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var G=function SingleImagePreview(i){var C=i.children,w=(0,I.default)(i,W);return O.default.createElement(R.Box,(0,k.default)({display:"flex"},w),C)};G.propTypes={children:j.default.node.isRequired};var $=function Actions(i){var C=i.children,w=i.sx,x=void 0===w?{}:w,S=(0,I.default)(i,N);return O.default.createElement(R.Box,(0,k.default)({display:"flex",width:"100%",justifyContent:"flex-end",alignItems:"center"},S,{sx:_objectSpread({mb:1.5},x)}),O.default.createElement(R.Stack,{direction:"row",spacing:2,justifyContent:"flex-end",width:"100%"},C))};$.propTypes={sx:j.default.object,children:j.default.node.isRequired};var J=function Image(i){var C=i.src,w=i.alt,x=i.style,S=void 0===x?{}:x,k=i.children;return O.default.createElement(R.Box,{margin:"0 auto"},k,O.default.createElement("img",{src:C,alt:w,style:_objectSpread({maxWidth:"100%",width:"auto",maxHeight:"100%"},S)}))};J.propTypes={style:j.default.object,children:j.default.node,src:j.default.string.isRequired,alt:j.default.string.isRequired},G.Actions=$,G.Image=J;var re=G;C.default=re},94810:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(70966)),I=w(36626),R=w(38003),j=x(w(23615)),W=["onClose","onCancel"],N=function UnsavedChangesAlert(i){var C=i.onClose,w=i.onCancel,x=(0,k.default)(i,W);return O.default.createElement(I.Dialog,(0,S.default)({sx:{zIndex:2e5},"aria-labelledby":"unsaved-changes-alert-title","aria-describedby":"unsaved-changes-alert-description"},x),O.default.createElement(I.DialogTitle,{id:"unsaved-changes-alert-title"},(0,R.__)("Leave Elementor AI?","elementor")),O.default.createElement(I.DialogContent,null,O.default.createElement(I.DialogContentText,{id:"unsaved-changes-alert-description"},(0,R.__)("Images will be gone forever and we won’t be able to recover them.","elementor"))),O.default.createElement(I.DialogActions,null,O.default.createElement(I.Button,{onClick:w,color:"secondary"},(0,R.__)("Cancel","elementor")),O.default.createElement(I.Button,{onClick:C,color:"error",variant:"contained"},(0,R.__)("Yes, leave","elementor"))))};N.propTypes={onClose:j.default.func,onCancel:j.default.func};var G=N;C.default=G},38415:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(73119)),k=x(w(93231)),I=x(w(70966)),R=x(w(86300)),j=w(36626),W=x(w(23615)),N=x(w(71871)),G=x(w(49566)),$=x(w(86960)),J=x(w(99502)),re=w(29859),oe=w(27305),ie=x(w(86076)),le=w(44220),ue=["sx"],ce=["primary","secondary"],se=["primary","secondary"],de=["children"],he=["isLoading","isGenerating","children"],ge=["sx"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var ye=function ViewBackButton(i){var C=i.sx,w=void 0===C?{}:C,x=(0,I.default)(i,ue),k=(0,re.useLocation)().back;return O.default.createElement(J.default,(0,S.default)({onClick:function onClick(i){i.preventDefault(),k()}},x,{sx:_objectSpread({mb:1,alignSelf:"flex-start"},w)}))};ye.propTypes={sx:W.default.object};var ve=function PanelHeading(i){var C=i.primary,w=i.secondary,x=(0,I.default)(i,ce);return O.default.createElement(j.Stack,(0,S.default)({spacing:1,sx:{mb:3}},x),O.default.createElement(j.Typography,{variant:"h4"},C),w&&O.default.createElement(j.Typography,{variant:"body1",color:"secondary"},w))};ve.propTypes={primary:W.default.string.isRequired,secondary:W.default.string};var Ce=function ContentHeading(i){var C=i.primary,w=i.secondary,x=(0,I.default)(i,se);return O.default.createElement(j.Stack,(0,S.default)({gap:1.5,sx:{mb:3}},x),O.default.createElement(j.Typography,{variant:"h6"},C),w&&O.default.createElement(j.Typography,{variant:"subtitle1",color:"secondary"},w))};Ce.propTypes={primary:W.default.string.isRequired,secondary:W.default.string};var Se=function View(i){var C=i.children,w=(0,I.default)(i,de);return O.default.createElement(j.Box,(0,S.default)({className:"e-ai-dialog-content",display:"flex",sx:{overflowY:"auto",position:"relative"},height:"100%"},w),C)},Pe=function Content(i){var C=i.isLoading,w=void 0!==C&&C,x=i.isGenerating,k=void 0!==x&&x,R=i.children,W=(0,I.default)(i,he);return k?O.default.createElement(G.default,null):w?O.default.createElement(j.Box,{sx:{width:"100%",maxWidth:600,margin:"0 auto",alignSelf:"center"}},O.default.createElement(N.default,{color:"inherit"})):O.default.createElement(j.Box,(0,S.default)({sx:{overflowY:"scroll",p:4},flexGrow:1},W),R)};Pe.propTypes={children:W.default.node,isLoading:W.default.bool,isGenerating:W.default.bool};var Ie=function ErrorMessage(i){var C=i.sx,w=void 0===C?{}:C,x=(0,I.default)(i,ge);return O.default.createElement($.default,(0,S.default)({actionPosition:"bottom"},x,{sx:_objectSpread({mb:2.5},w)}))};Ie.propTypes={sx:W.default.object};var Re=function ViewPanel(i){var C=(0,oe.useGlobalSettings)(),w=C.hasSubscription,x=C.usagePercentage;return O.default.createElement(R.default,null,O.default.createElement(ie.default,{hasSubscription:w,usagePercentage:x,sx:{mb:4},feature:le.FREE_TRIAL_FEATURES_NAMES.IMAGES}),i.children)};Re.propTypes={children:W.default.node},Se.Panel=Re,Se.Content=Pe,Se.BackButton=ye,Se.ErrorMessage=Ie,Se.PanelHeading=ve,Se.ContentHeading=Ce,Se.propTypes={children:W.default.node};var Me=Se;C.default=Me},86802:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.LOCATIONS=C.IMAGE_PROMPT_SETTINGS=C.IMAGE_PROMPT_CATEGORIES=C.IMAGE_PLACEHOLDERS_HOSTS=C.IMAGE_ASPECT_RATIO=void 0;var x=w(38003);C.LOCATIONS={RESIZE:"resize",GENERATE:"generate",VARIATIONS:"variations",IMAGE_TOOLS:"image-tools",IN_PAINTING:"in-painting",OUT_PAINTING:"out-painting",REMOVE_BACKGROUND:"remove-background",REPLACE_BACKGROUND:"replace-background",REMOVE_TEXT:"remove-text",CLEANUP:"cleanup"};C.IMAGE_PROMPT_SETTINGS={IMAGE_TYPE:"image_type",IMAGE_STYLE:"style_preset",IMAGE_STRENGTH:"image_strength",IMAGE_RATIO:"ratio",IMAGE_ZOOM:"zoom",IMAGE_UPSCALE:"upscale_to"};var O={"":{label:(0,x.__)("None","elementor"),subCategories:{}},photographic:{label:(0,x.__)("Photographic","elementor"),subCategories:{"":(0,x.__)("None","elementor"),landscape:(0,x.__)("Landscape","elementor"),macro:(0,x.__)("Macro","elementor"),portrait:(0,x.__)("Portrait","elementor"),"long-exposure":(0,x.__)("Long Exposure","elementor"),product:(0,x.__)("Product","elementor"),photorealistic:(0,x.__)("Photorealistic","elementor")}},background:{label:(0,x.__)("Background","elementor"),subCategories:{"":(0,x.__)("None","elementor"),floral:(0,x.__)("Floral","elementor"),gradient:(0,x.__)("Gradient","elementor"),mosaic:(0,x.__)("Mosaic","elementor"),neon:(0,x.__)("Neon","elementor"),bokeh:(0,x.__)("Bokeh","elementor")}},handmade:{label:(0,x.__)("Handmade","elementor"),subCategories:{"":(0,x.__)("None","elementor"),doodle:(0,x.__)("Doodle","elementor"),"line-art":(0,x.__)("Line Art","elementor"),"oil-painting":(0,x.__)("Oil Painting","elementor"),"pencil-drawing":(0,x.__)("Pencil Drawing","elementor"),watercolor:(0,x.__)("Watercolor","elementor")}},"digital-art":{label:(0,x.__)("Digital Art","elementor"),subCategories:{"":(0,x.__)("None","elementor"),amine:(0,x.__)("Anime","elementor"),cartoon:(0,x.__)("Cartoon","elementor"),cinematic:(0,x.__)("Cinematic","elementor"),"comic-book":(0,x.__)("Comic Book","elementor"),"fantasy-art":(0,x.__)("Fantasy Art","elementor"),isometric:(0,x.__)("Isometric","elementor"),vector:(0,x.__)("Vector","elementor"),"pixel-art":(0,x.__)("Pixel Art","elementor"),"low-poly":(0,x.__)("Low Poly","elementor"),"neon-punk":(0,x.__)("Neon Punk","elementor")}},"3d":{label:(0,x.__)("3D","elementor"),subCategories:{"":(0,x.__)("None","elementor"),clay:(0,x.__)("Clay","elementor"),digital:(0,x.__)("Digital","elementor"),origami:(0,x.__)("Origami","elementor"),stone:(0,x.__)("Stone","elementor"),wood:(0,x.__)("Wood","elementor")}}};C.IMAGE_PROMPT_CATEGORIES=O;var S={"1:1":{width:512,height:512,label:(0,x.__)("Square","elementor")+" (1:1)"},"3:2":{width:640,height:448,label:(0,x.__)("Landscape","elementor")+" (3:2)"},"4:3":{width:640,height:448,label:(0,x.__)("Landscape","elementor")+" (4:3)"},"16:9":{width:704,height:384,label:(0,x.__)("Landscape","elementor")+" (16:9)"},"2:3":{width:448,height:640,label:(0,x.__)("Portrait","elementor")+" (2:3)"},"3:4":{width:448,height:640,label:(0,x.__)("Portrait","elementor")+" (3:4)"},"9:16":{width:384,height:704,label:(0,x.__)("Portrait","elementor")+" (9:16)"}};C.IMAGE_ASPECT_RATIO=S;C.IMAGE_PLACEHOLDERS_HOSTS={WIREFRAME:"gene-\\d+\\.live\\.strattic\\.io"}},24607:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useEditImage=C.SET_LOADING=C.SET_ASPECT_RATIO=C.RESET=C.EditImageProvider=C.EditImageContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(93231)),R=x(w(23615)),j=x(w(98608)),W=w(82643);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,I.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var N=(0,S.createContext)({});C.EditImageContext=N;var G="SET_STATE",$="SET_ASPECT_RATIO";C.SET_ASPECT_RATIO=$;var J="SET_LOADING";C.SET_LOADING=J;var re="RESET";C.RESET=re;var oe={id:"",url:"",isLoading:!1,aspectRatio:"1:1"},ie=function reducer(i,C){var w=C.type,x=C.payload;switch(w){case G:return _objectSpread(_objectSpread({},i),x);case $:return _objectSpread(_objectSpread({},i),{},{aspectRatio:x});case J:return _objectSpread(_objectSpread({},i),{},{isLoading:x});case re:return oe;default:throw Error("Unknown action.")}},le=function EditImageProvider(i){var C=i.children,w=i.imageData,x=_objectSpread(_objectSpread({},oe),w),O=(0,S.useReducer)(ie,x),I=(0,k.default)(O,2),R=I[0],j=I[1];return S.default.createElement(N.Provider,{value:{state:R,dispatch:j}},C)};C.EditImageProvider=le,le.propTypes={children:R.default.node,imageData:R.default.object};C.useEditImage=function useEditImage(){var i=(0,S.useContext)(N),C=i.state,w=i.dispatch,x=C.id,O=C.url,k=C.aspectRatio,I=C.isLoading,R=(0,j.default)(k),oe=R.width,ie=R.height;return(0,S.useEffect)((function(){if(x){w({type:J,payload:!0});var i=new Image;i.src=O,i.onload=function(){var C=(0,W.getAspectRatioSizes)(i.width,i.height).ratio;w({type:G,payload:{aspectRatio:C,isLoading:!1}})}}}),[x]),{editImage:C,isLoading:I,aspectRatio:k,width:oe,height:ie,setEditImage:function setEditImage(i){return w({type:G,payload:i})},setAspectRatio:function setAspectRatio(i){return w({type:$,payload:i})},reset:function reset(){return w({type:re})}}}},49021:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useGlobalActions=C.GlobalActionsProvider=C.GlobalActionsContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var I=(0,S.createContext)({});C.GlobalActionsContext=I;var R=function GlobalActionsProvider(i){var C=i.actions,w=i.children;return S.default.createElement(I.Provider,{value:C},w)};C.GlobalActionsProvider=R,R.propTypes={actions:k.default.object,children:k.default.node};C.useGlobalActions=function useGlobalActions(){return(0,S.useContext)(I)}},27305:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useGlobalSettings=C.GlobalSettingsProvider=C.GlobalSettingsContext=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var I=(0,S.createContext)({});C.GlobalSettingsContext=I;var R=function GlobalSettingsProvider(i){var C=i.settings,w=i.children;return S.default.createElement(I.Provider,{value:C},w)};C.GlobalSettingsProvider=R,R.propTypes={settings:k.default.object,children:k.default.node};C.useGlobalSettings=function useGlobalSettings(){return(0,S.useContext)(I)}},29859:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.useLocation=C.RoutesContext=C.NAVIGATE=C.LocationProvider=C.BACK=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(9833)),R=x(w(93231)),j=x(w(23615));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,R.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var W=(0,S.createContext)(null);C.RoutesContext=W;var N="NAVIGATE";C.NAVIGATE=N;var G="BACK";C.BACK=G;var $={current:"",history:[]},J=function reducer(i,C){var w=C.type,x=C.payload;switch(w){case N:return _objectSpread(_objectSpread({},i),{},{current:x,history:[].concat((0,I.default)(i.history),[x])});case G:return _objectSpread(_objectSpread({},i),{},{current:i.history[i.history.length-2],history:i.history.slice(0,i.history.length-1)});default:return i}},re=function LocationProvider(i){var C=i.children,w=(0,S.useReducer)(J,$),x=(0,k.default)(w,2),O=x[0],I=x[1];return S.default.createElement(W.Provider,{value:{state:O,dispatch:I}},C)};C.LocationProvider=re,re.propTypes={children:j.default.node};C.useLocation=function useLocation(){var i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).current,C=(0,S.useContext)(W),w=C.state,x=C.dispatch,O=function navigate(i){x({type:N,payload:i})};return(0,S.useEffect)((function(){i&&O(i)}),[]),{current:w.current,history:w.history,navigate:O,back:function back(){x({type:G})}}}},96718:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(50824)),S=x(w(70966)),k=x(w(10029)),I=x(w(93231)),R=w(24607),j=x(w(6250)),W=w(49021),N=["image"];function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,I.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var G=function normalizeImageData(i){return null!=i&&i.imageUrl?_objectSpread(_objectSpread({},i),{},{image_url:i.imageUrl,use_gallery_image:!0}):i},$=function useImageActions(){var i=(0,R.useEditImage)(),C=i.editImage,w=i.setEditImage,x=(0,W.useGlobalActions)(),I=x.setControlValue,$=x.saveAndClose,J=(0,j.default)(),re=J.attachmentData,oe=J.isUploading,ie=J.uploadError,le=J.upload,ue=J.resetUpload,ce=function upload(i,C){return le({image:G(i),prompt:C||i.prompt})},se=function(){var i=(0,k.default)(O.default.mark((function _callee(i,w){var x,k;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:if(!(C.url===i.url)){O.next=4;break}return C.image,x=(0,S.default)(C,N),O.abrupt("return",x);case 4:return O.next=6,ce(i,w);case 6:return k=O.sent,O.abrupt("return",k.image);case 8:case"end":return O.stop()}}),_callee)})));return function getFinalImage(C,w){return i.apply(this,arguments)}}(),de=function(){var i=(0,k.default)(O.default.mark((function _callee2(i,C){var x;return O.default.wrap((function _callee2$(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,ce(i,C);case 2:x=O.sent,w(x.image);case 4:case"end":return O.stop()}}),_callee2)})));return function edit(C,w){return i.apply(this,arguments)}}(),he=function(){var i=(0,k.default)(O.default.mark((function _callee3(i,C){var w;return O.default.wrap((function _callee3$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,se(i,C);case 2:w=x.sent,I(w),$();case 5:case"end":return x.stop()}}),_callee3)})));return function use(C,w){return i.apply(this,arguments)}}();return{use:he,edit:de,reset:ue,error:ie,data:re,isLoading:oe}};C.default=$},87327:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(87363),S=x(w(60675)),k=w(49021),I=function useImagePrompt(){var i=S.default.apply(void 0,arguments),C=(0,k.useGlobalActions)(),w=C.setHasUnsavedChanges,x=C.state;return(0,O.useEffect)((function(){var C;null!==(C=i.data)&&void 0!==C&&C.result&&w(!0)}),[i.data]),(0,O.useEffect)((function(){x.isAllSaved&&i.sendUsageData()}),[x.isAllSaved]),i};C.default=I},98608:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=w(86802),O=function useImageSize(i){var C=x.IMAGE_ASPECT_RATIO[i];return{width:C.width,height:C.height}};C.default=O},6250:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=w(46183),I=function useImageUpload(){var i=(0,S.useState)(!1),C=(0,O.default)(i,2),w=C[0],x=C[1],I=(0,S.useState)(""),R=(0,O.default)(I,2),j=R[0],W=R[1],N=(0,S.useState)({}),G=(0,O.default)(N,2),$=G[0],J=G[1];return{upload:function upload(i){var C=i.image,w=i.prompt;return new Promise((function(i,O){W(""),J({}),x(!0),(0,k.uploadImage)({image:C,prompt:w}).then((function(C){J(C),i(C)})).catch((function(i){var C=(null==i?void 0:i.responseText)||i;W(C),O(C)})).finally((function(){return x(!1)}))}))},resetUpload:function resetUpload(){W(""),J({}),x(!1)},isUploading:w,uploadError:j,attachmentData:$}};C.default=I},73838:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=C.IMAGE_ZOOM=C.IMAGE_UPSCALE=C.IMAGE_TYPE=C.IMAGE_STYLE=C.IMAGE_STRENGTH=C.IMAGE_RATIO=void 0;var O=x(w(93231)),S=x(w(40131)),k=w(87363),I=w(86802);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,O.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var R=I.IMAGE_PROMPT_SETTINGS.IMAGE_TYPE,j=I.IMAGE_PROMPT_SETTINGS.IMAGE_STYLE,W=I.IMAGE_PROMPT_SETTINGS.IMAGE_STRENGTH,N=I.IMAGE_PROMPT_SETTINGS.IMAGE_RATIO,G=I.IMAGE_PROMPT_SETTINGS.IMAGE_ZOOM,$=I.IMAGE_PROMPT_SETTINGS.IMAGE_UPSCALE;C.IMAGE_UPSCALE=$,C.IMAGE_ZOOM=G,C.IMAGE_RATIO=N,C.IMAGE_STRENGTH=W,C.IMAGE_STYLE=j,C.IMAGE_TYPE=R;var J=function usePromptSettings(){var i,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},w=C.type,x=void 0===w?"":w,I=C.style,J=void 0===I?"":I,re=C.imageWeight,oe=void 0===re?0:re,ie=C.aspectRatio,le=void 0===ie?"1:1":ie,ue=C.zoom,ce=void 0===ue?"1":ue,se=C.upScaleTo,de=void 0===se?"512":se,he=(0,k.useState)((i={},(0,O.default)(i,R,x),(0,O.default)(i,j,J),(0,O.default)(i,W,oe),(0,O.default)(i,N,le),(0,O.default)(i,G,ce),(0,O.default)(i,$,de),i)),ge=(0,S.default)(he,2),ye=ge[0],ve=ge[1];return{settings:ye,updateSettings:function updateSettings(i){return ve((function(C){return _objectSpread(_objectSpread({},C),i)}))},resetSettings:function resetSettings(){var i;ve((i={},(0,O.default)(i,R,x),(0,O.default)(i,j,""),(0,O.default)(i,W,0),(0,O.default)(i,N,le),(0,O.default)(i,G,"1"),(0,O.default)(i,$,"512"),i))}}};C.default=J},62193:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(73119)),I=x(w(40131)),R=x(w(93231)),j=w(29859),W=w(36626),N=x(w(23615)),G=x(w(59441)),$=x(w(46930)),J=x(w(94810)),re=w(24607),oe=w(49021),ie=w(27305),le=x(w(76719));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,R.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var ue={isAllSaved:!1,hasUnsavedChanges:!1},ce="SET_UNSAVED_CHANGES",se="SAVE_AND_CLOSE",de=function reducer(i,C){var w=C.type,x=C.payload;switch(w){case ce:return _objectSpread(_objectSpread({},i),{},{hasUnsavedChanges:x,isAllSaved:!x&&i.isAllSaved});case se:return _objectSpread(_objectSpread({},i),{},{isAllSaved:!0,hasUnsavedChanges:!1});default:throw Error("Unknown action.")}},he=function FormMedia(i){var C=i.onClose,w=i.DialogProps,x=i.getControlValue,O=i.setControlValue,R=i.additionalOptions,N=i.maybeRenderUpgradeChip,he=i.hasSubscription,ge=i.usagePercentage,ye=(0,S.useReducer)(de,ue),ve=(0,I.default)(ye,2),Ce=ve[0],Se=ve[1],Pe=(0,S.useState)(!1),Ie=(0,I.default)(Pe,2),Re=Ie[0],Me=Ie[1],De=function onCloseIntent(){Ce.hasUnsavedChanges?Me(!0):C()},Fe=x()===(null==R?void 0:R.defaultValue)?{}:x(),He={initialImageType:(null==R?void 0:R.defaultImageType)||"",hasSubscription:he,usagePercentage:ge},Ue={state:Ce,getControlValue:x,setControlValue:O,saveAndClose:function saveAndClose(){return Se({type:se})},close:De,setHasUnsavedChanges:function setHasUnsavedChanges(i){return Se({type:ce,payload:i})}};return(0,S.useEffect)((function(){Ce.isAllSaved&&C()}),[Ce.isAllSaved]),S.default.createElement(S.default.Fragment,null,S.default.createElement(G.default,(0,k.default)({id:"e-form-media",onClose:function onClose(){return De()},maxWidth:"lg"},w),S.default.createElement(G.default.Header,{onClose:function onClose(){return De()}},S.default.createElement(le.default,null),N()),S.default.createElement(W.Divider,null),S.default.createElement(ie.GlobalSettingsProvider,{settings:He},S.default.createElement(oe.GlobalActionsProvider,{actions:Ue},S.default.createElement(j.LocationProvider,null,S.default.createElement(re.EditImageProvider,{imageData:Fe},S.default.createElement($.default,{additionalOptions:R})))))),Re&&S.default.createElement(J.default,{onClose:C,onCancel:function onCancel(){return Me(!1)},open:!0}))};he.propTypes={onClose:N.default.func.isRequired,DialogProps:N.default.object,getControlValue:N.default.func.isRequired,setControlValue:N.default.func.isRequired,additionalOptions:N.default.object,credits:N.default.number,maybeRenderUpgradeChip:N.default.func,hasSubscription:N.default.bool,usagePercentage:N.default.number};var ge=he;C.default=ge},46930:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(38415)),I=x(w(71871)),R=w(86802),j=x(w(93190)),W=x(w(45168)),N=x(w(72269)),G=x(w(26774)),$=x(w(33845)),J=x(w(62292)),re=x(w(64874)),oe=x(w(77474)),ie=x(w(42742)),le=w(29859),ue=w(24607),ce=w(10905),se=x(w(23615)),de=x(w(15059));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var he=function MediaOutlet(i){var C=i.additionalOptions,w=void 0===C?null:C,x=(0,ue.useEditImage)().editImage,O=(0,le.useLocation)({current:(null==w?void 0:w.location)||R.LOCATIONS.GENERATE}),se=O.current,he=O.navigate;return(0,S.useEffect)((function(){var i=new RegExp(R.IMAGE_PLACEHOLDERS_HOSTS.WIREFRAME),C=x.url&&!i.test(new URL(x.url).host);x.id&&C&&he(R.LOCATIONS.IMAGE_TOOLS)}),[x.id,x.url]),(0,ce.useSubscribeOnPromptHistoryAction)([{type:ce.ACTION_TYPES.RESTORE,handler:function handler(){se!==R.LOCATIONS.GENERATE&&he(R.LOCATIONS.GENERATE)}}]),se?S.default.createElement(S.default.Fragment,null,se===R.LOCATIONS.GENERATE&&S.default.createElement(j.default,{textToImageHook:null!=w&&w.textToImageHook?null==w?void 0:w.textToImageHook:de.default,predefinedPrompt:null==w?void 0:w.predefinedPrompt,initialSettings:null==w?void 0:w.initialSettings}),se===R.LOCATIONS.IMAGE_TOOLS&&S.default.createElement(W.default,null),se===R.LOCATIONS.VARIATIONS&&S.default.createElement(J.default,null),se===R.LOCATIONS.IN_PAINTING&&S.default.createElement(G.default,null),se===R.LOCATIONS.OUT_PAINTING&&S.default.createElement($.default,null),se===R.LOCATIONS.RESIZE&&S.default.createElement(N.default,null),se===R.LOCATIONS.REPLACE_BACKGROUND&&S.default.createElement(re.default,null),se===R.LOCATIONS.REMOVE_BACKGROUND&&S.default.createElement(oe.default,null),se===R.LOCATIONS.CLEANUP&&S.default.createElement(ie.default,null)):S.default.createElement(k.default,{alignItems:"center"},S.default.createElement(I.default,null))},ge=he;C.default=ge,he.propTypes={additionalOptions:se.default.object}},82643:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.getAspectRatioSizes=C.fetchImageAsBase64=void 0;var O=x(w(50824)),S=x(w(10029)),k=x(w(93231)),I=x(w(40131)),R=w(86802);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}C.getAspectRatioSizes=function getAspectRatioSizes(i,C){var w=Object.keys(R.IMAGE_ASPECT_RATIO),x=i/C,O=w[0],S=1/0;return w.forEach((function(i){var C=i.split(":").map(Number),w=(0,I.default)(C,2),k=w[0],R=w[1],j=Math.abs(x-k/R);j<S&&(S=j,O=i)})),function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}({ratio:O},R.IMAGE_ASPECT_RATIO[O])};var j=function(){var i=(0,S.default)(O.default.mark((function _callee(i){var C,w,x;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,O.next=3,fetch(i);case 3:return C=O.sent,O.next=6,C.blob();case 6:return w=O.sent,x=new FileReader,O.abrupt("return",new Promise((function(i,C){x.onloadend=function(){i(x.result)},x.onerror=C,x.readAsDataURL(w)})));case 11:throw O.prev=11,O.t0=O.catch(0),O.t0;case 14:case"end":return O.stop()}}),_callee,null,[[0,11]])})));return function fetchImageAsBase64(C){return i.apply(this,arguments)}}();C.fetchImageAsBase64=j},81084:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(23866),$=x(w(58155)),J=x(w(61433));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var re="rgba(255, 255, 255)",oe=(0,j.withDirection)($.default),ie=(0,j.withDirection)(J.default),le=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{position:"absolute",width:w,height:w,borderRadius:"50%",backgroundColor:re,pointerEvents:"none",transform:"translate(".concat("rtl"===C.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),ue=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{width:w/2,height:w/2,borderRadius:"50%",backgroundColor:C.palette.secondary.main}})),ce=function CleanupContent(i){var C=i.editImage,w=i.setMask,x=i.setIsCanvasChanged,O=i.width,N=i.height,$=(0,S.useRef)(),J=(0,S.useState)(30),ce=(0,R.default)(J,2),se=ce[0],de=ce[1],he=(0,S.useRef)();return(0,S.useEffect)((function(){var i=document.querySelector(".eui-in-painting-canvas"),C=function positionElement(C){var w=i.getBoundingClientRect(),x=w.left,O=w.top,S=w.width,k=w.height,I=C.clientX-x,R=C.clientY-O;I>0&&I<S&&R>0&&R<k&&(he.current.style.left="".concat(I,"px"),he.current.style.top="".concat(R,"px"))};return window.addEventListener("mousemove",C),function(){window.removeEventListener("mousemove",C)}}),[se]),S.default.createElement(j.Stack,{alignItems:"flex-start",spacing:.5,flexGrow:1},S.default.createElement(j.Stack,{width:"100%",direction:"row",spacing:3,alignSelf:"center",justifyContent:"center",sx:{mb:2.5}},S.default.createElement(j.Stack,{direction:"row",gap:1},S.default.createElement(j.Tooltip,{title:(0,W.__)("Undo","elementor")},S.default.createElement(j.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return $.current.undo()},sx:{px:0}},S.default.createElement(oe,null))),S.default.createElement(j.Tooltip,{title:(0,W.__)("Redo","elementor")},S.default.createElement(j.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return $.current.redo()},sx:{px:0}},S.default.createElement(ie,null)))),S.default.createElement(j.FormControl,{size:"small",color:"secondary",sx:{minWidth:120}},S.default.createElement(j.InputLabel,{id:"stroke"},"Stroke"),S.default.createElement(j.Select,{autoWidth:!0,label:"Stroke",value:se,id:"demo-simple-select",labelId:"demo-simple-select-label",onChange:function onChange(i){return de(i.target.value)},MenuProps:{PaperProps:{sx:{maxWidth:120}},MenuListProps:{sx:{minWidth:120}}},sx:{"& .MuiSelect-select .MuiListItemIcon-root":{mr:.25,width:"initial",minWidth:"initial",justifyContent:"flex-start"}}},[10,20,30,40,50].map((function(i){return S.default.createElement(j.MenuItem,{key:"stroke-width-option-"+i,value:i},S.default.createElement(j.Stack,{direction:"row",alignItems:"center",gap:1},S.default.createElement(j.ListItemIcon,{sx:{width:30,display:"flex",justifyContent:"center"}},S.default.createElement(ue,{size:i})),S.default.createElement(j.ListItemText,null,i)))}))))),S.default.createElement("div",{style:{margin:"0 auto",position:"relative",cursor:"none",overflow:"hidden"}},S.default.createElement(le,{ref:he,size:se}),S.default.createElement(G.ReactSketchCanvas,{className:"eui-in-painting-canvas",withViewBox:!0,ref:$,height:N+"px",width:O+"px",strokeWidth:se,strokeColor:re,canvasColor:"rgba(0, 0, 0)",backgroundImage:C.url,onStroke:function onStroke(){return x(!0)},onChange:(0,I.default)(k.default.mark((function _callee(){var i;return k.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,$.current.exportSvg();case 2:i=C.sent,w(i);case 4:case"end":return C.stop()}}),_callee)})))})))};ce.propTypes={setMask:N.default.func.isRequired,setIsCanvasChanged:N.default.func.isRequired,width:N.default.number.isRequired,height:N.default.number.isRequired,editImage:N.default.object.isRequired};var se=ce;C.default=se},67089:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useCleanup(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageMaskCleanup)(i)}),i)};C.default=k},42742:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(38003),W=x(w(38415)),N=w(36626),G=x(w(38793)),$=x(w(81084)),J=x(w(78025)),re=x(w(12970)),oe=x(w(69870)),ie=x(w(69425)),le=x(w(73838)),ue=x(w(67089)),ce=w(24607),se=x(w(96718)),de=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var he=function Cleanup(){var i=(0,de.useRequestIds)().setGenerate,C=(0,S.useState)(""),w=(0,R.default)(C,2),x=w[0],O=w[1],he=(0,S.useState)(!1),ge=(0,R.default)(he,2),ye=ge[0],ve=ge[1],Ce=(0,le.default)(),Se=Ce.settings,Pe=Ce.resetSettings,Ie=(0,ce.useEditImage)(),Re=Ie.editImage,Me=Ie.width,De=Ie.height,Fe=(0,se.default)(),He=Fe.use,Ue=Fe.edit,Ge=Fe.isLoading,Ze=(0,ue.default)(),Ke=Ze.data,Qe=Ze.send,et=Ze.isLoading,tt=Ze.error,nt=Ze.reset,rt=et||Ge,ot=function(){var C=(0,I.default)(k.default.mark((function _callee(C){return k.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:C.preventDefault(),i(),Qe({settings:Se,image:Re,mask:x});case 3:case"end":return w.stop()}}),_callee)})));return function handleSubmit(i){return C.apply(this,arguments)}}();return S.default.createElement(W.default,null,S.default.createElement(W.default.Panel,null,S.default.createElement(W.default.BackButton,null),S.default.createElement(W.default.PanelHeading,{primary:(0,j.__)("Cleanup","elementor"),secondary:(0,j.__)("Remove unwanted area from your image.","elementor")}),tt&&S.default.createElement(W.default.ErrorMessage,{error:tt,onRetry:ot}),S.default.createElement(G.default,{onSubmit:ot},null!=Ke&&Ke.result?S.default.createElement(N.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(re.default,{disabled:rt}),S.default.createElement(oe.default,{disabled:rt,onClick:function onClick(){Pe(),nt()}})):S.default.createElement(J.default,{disabled:rt||!ye}))),S.default.createElement(W.default.Content,{isGenerating:rt},null!=Ke&&Ke.result?S.default.createElement(ie.default,{images:Ke.result,aspectRatio:Re.aspectRatio,onUseImage:He,onEditImage:Ue}):S.default.createElement($.default,{editImage:Re,width:Me,height:De,setMask:O,setIsCanvasChanged:ve})))};C.default=he},91819:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(40131)),S=w(87363),k=x(w(30420)),I=function useSuggestedImages(i){var C=i.selectedType,w=(0,S.useState)(!1),x=(0,O.default)(w,2),I=x[0],R=x[1],j=(0,S.useState)({images:[]}),W=(0,O.default)(j,2),N=W[0],G=W[1],$=(0,k.default)(),J=$.ready,re=$.preloadImages,oe=(0,S.useMemo)((function(){var i=function shuffleImages(i){return i.map((function(i){return[Math.random(),i]})).sort((function(i,C){return(0,O.default)(i,1)[0]-(0,O.default)(C,1)[0]})).map((function(i){return(0,O.default)(i,2)[1]}))}(N.images);if(!C)return i;var w=i.filter((function(i){return i.imageType.includes(C)}));return w.length?w:i}),[C,N]);return(0,S.useEffect)((function(){0!==(null==N?void 0:N.images.length)?re(N.images.map((function(i){return i.thumbnailUrl}))):function fetchImages(){R(!0),fetch("https://my.elementor.com/ai/images-prompt-gallery/ai-gallery.json").then((function(i){return i.json()})).then((function(i){return G(i)})).catch((function(i){return console.log(i.message)})).finally((function(){return R(!1)}))}()}),[N]),{imagesData:oe,isLoading:!J||I}};C.default=I},15059:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useTextToImage(i){return(0,S.default)(O.getTextToImageGeneration,i)};C.default=k},93190:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(93231)),I=x(w(40131)),R=w(36626),j=w(38003),W=x(w(38415)),N=x(w(50691)),G=x(w(38793)),$=x(w(65875)),J=x(w(50198)),re=x(w(75703)),oe=x(w(84123)),ie=x(w(12970)),le=x(w(69870)),ue=x(w(66467)),ce=x(w(69425)),se=x(w(21619)),de=_interopRequireWildcard(w(73838)),he=x(w(91819)),ge=x(w(96718)),ye=w(27305),ve=w(10905),Ce=x(w(84515)),Se=w(35879),Pe=x(w(23615)),Ie=x(w(64355));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}var Re=function Generate(i){var C=i.textToImageHook,w=i.predefinedPrompt,x=void 0===w?"":w,O=i.initialSettings,Pe=void 0===O?{}:O,Re=(0,S.useState)(x),Me=(0,I.default)(Re,2),De=Me[0],Fe=Me[1],He=(0,Se.useRequestIds)().setGenerate,Ue=(0,ye.useGlobalSettings)().initialImageType,Ge=(0,de.default)(function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,k.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}({type:Ue},Pe)),Ze=Ge.settings,Ke=Ge.updateSettings,Qe=Ge.resetSettings,et=(0,he.default)({selectedType:Ze[de.IMAGE_TYPE]}),tt=et.imagesData,nt=et.isLoading,rt=function getPromptPlaceholder(i){return null!=i&&i.length?i[Math.floor(Math.random()*i.length)].prompt:(0,j.__)("describe your image","elementor")}(tt),ot=C({}),at=ot.data,it=ot.setResult,lt=ot.send,ut=ot.isLoading,ct=ot.error,st=ot.reset,dt=(0,ge.default)(),ft=dt.use,pt=dt.edit,mt=dt.isLoading,ht=nt||ut||mt,gt=(0,S.useMemo)((function(){return Ze[de.IMAGE_RATIO]}),[null==at?void 0:at.result]),yt=function handleSubmit(i){i.preventDefault(),He(),Ze[de.IMAGE_STYLE]||(Ze[de.IMAGE_STYLE]="general"),lt({prompt:De,settings:Ze})},vt=function handleCopyPrompt(i){var C,w=i.prompt,x=i.imageType;Fe(w);var O=x.split("/"),S=(0,I.default)(O,2),R=S[0],j=S[1];Ke((C={},(0,k.default)(C,de.IMAGE_TYPE,R),(0,k.default)(C,de.IMAGE_STYLE,j),C))};return(0,ve.useSubscribeOnPromptHistoryAction)([{type:ve.ACTION_TYPES.RESTORE,handler:function handler(i){var C,w,x,O;vt({prompt:null===(C=i.data)||void 0===C?void 0:C.prompt,imageType:(null===(w=i.data)||void 0===w?void 0:w.imageType)||""}),Ke((0,k.default)({},de.IMAGE_RATIO,null===(x=i.data)||void 0===x?void 0:x.ratio)),it(null===(O=i.data)||void 0===O?void 0:O.images,i.id)}}]),S.default.createElement(W.default,null,S.default.createElement(W.default.Panel,null,S.default.createElement(W.default.PanelHeading,{primary:(0,j.__)("Imagine anything create everything","elementor"),secondary:(0,j.__)("Generate images by selecting the desired type and style, and entering a prompt.","elementor")}),ct&&S.default.createElement(W.default.ErrorMessage,{error:ct,onRetry:yt}),S.default.createElement(G.default,{onSubmit:yt},S.default.createElement($.default,{"data-testid":"e-image-prompt",value:De,disabled:ht,placeholder:rt,onChange:Fe}),S.default.createElement(J.default,{disabled:ht,value:Ze[de.IMAGE_TYPE],onChange:function onChange(i){return Ke((0,k.default)({},de.IMAGE_TYPE,i.target.value))}}),S.default.createElement(re.default,{type:Ze[de.IMAGE_TYPE],value:Ze[de.IMAGE_STYLE],disabled:ht||!Ze[de.IMAGE_TYPE]||!1,onChange:function onChange(i){return Ke((0,k.default)({},de.IMAGE_STYLE,i.target.value))}}),S.default.createElement(oe.default,{disabled:ht,value:Ze[de.IMAGE_RATIO],onChange:function onChange(i){return Ke((0,k.default)({},de.IMAGE_RATIO,i.target.value))}}),null!=at&&at.result?S.default.createElement(R.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(ie.default,{disabled:ht||""===De}),S.default.createElement(le.default,{disabled:ht,onClick:function onClick(){Qe(),Fe(""),st()}})):S.default.createElement(ue.default,{disabled:ht||""===De}))),S.default.createElement(W.default.Content,{isLoading:nt||mt,isGenerating:ut},null!=at&&at.result?S.default.createElement(ce.default,{images:null==at?void 0:at.result,aspectRatio:gt,onUseImage:ft,onEditImage:pt}):S.default.createElement(S.default.Fragment,null,x?S.default.createElement(Ie.default,null):S.default.createElement(S.default.Fragment,null,S.default.createElement(W.default.ContentHeading,{primary:(0,j.__)("Spark your imagination with images generated by our community","elementor")}),S.default.createElement(R.Stack,{sx:{mb:3}},S.default.createElement(Ce.default,{libraryLink:"https://go.elementor.com/ai-prompt-library-image/"})),S.default.createElement(N.default,{cols:3},null==tt?void 0:tt.map((function(i){return S.default.createElement(N.default.Image,{variant:"thumbnail",key:i.prompt,alt:i.prompt,text:i.prompt,src:i.thumbnailUrl},S.default.createElement(se.default,null,S.default.createElement(se.default.UseImage,{onClick:function onClick(){return ft(i)},fullWidth:!0}),S.default.createElement(se.default.CopyIcon,{onClick:function onClick(){return vt(i)}}),S.default.createElement(se.default.EditIcon,{onClick:function onClick(){return pt(i)}})))})))))))};Re.propTypes={predefinedPrompt:Pe.default.string,textToImageHook:Pe.default.func,initialSettings:Pe.default.object};var Me=Re;C.default=Me},67779:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(20273)),k=w(38003),I=x(w(21619)),R=w(24607),j=x(w(96718)),W=function ImageToolsContent(){var i=(0,R.useEditImage)(),C=i.editImage,w=i.width,x=i.height,W=(0,j.default)().use;return O.default.createElement(S.default,null,O.default.createElement(S.default.Image,{src:C.url,style:{width:w,height:x},alt:C.alt||(0,k.__)("Image preview","elementor")},O.default.createElement(S.default.Actions,null,O.default.createElement(I.default.UseImage,{onClick:function onClick(){return W(C)}}))))};C.default=W},12883:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(23615)),R=x(w(7882)),j=x(w(88371)),W=x(w(18578)),N=x(w(46819)),G=x(w(36138)),$=x(w(37069)),J=x(w(78230)),re=w(86802),oe=w(29859),ie=function TeaserDrawing(){return O.default.createElement(S.SvgIcon,{viewBox:"0 0 184 80",sx:{width:184,height:80}},O.default.createElement("g",{clipPath:"url(#clip0_3127_96542)"},O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.6014 1.36364C49.6014 0.610521 48.9907 0 48.2373 0C47.4839 0 46.8731 0.610521 46.8731 1.36364C46.8731 1.9664 46.6336 2.54448 46.2072 2.9707C45.7808 3.39692 45.2025 3.63636 44.5995 3.63636C43.8461 3.63636 43.2354 4.24689 43.2354 5C43.2354 5.75311 43.8461 6.36364 44.5995 6.36364C45.2025 6.36364 45.7808 6.60308 46.2072 7.0293C46.6336 7.45552 46.8731 8.0336 46.8731 8.63636C46.8731 9.38948 47.4839 10 48.2373 10C48.9907 10 49.6014 9.38948 49.6014 8.63636C49.6014 8.0336 49.8409 7.45552 50.2673 7.0293C50.6937 6.60308 51.272 6.36364 51.875 6.36364C52.6284 6.36364 53.2392 5.75311 53.2392 5C53.2392 4.24689 52.6284 3.63636 51.875 3.63636C51.272 3.63636 50.6937 3.39692 50.2673 2.9707C49.8409 2.54448 49.6014 1.9664 49.6014 1.36364ZM48.1364 4.89917C48.1706 4.86501 48.2042 4.83041 48.2373 4.79538C48.2703 4.83041 48.304 4.86501 48.3381 4.89917C48.3723 4.93333 48.4069 4.96694 48.4419 5C48.4069 5.03306 48.3723 5.06667 48.3381 5.10083C48.304 5.13499 48.2703 5.16959 48.2373 5.20462C48.2042 5.16959 48.1706 5.13499 48.1364 5.10083C48.1022 5.06667 48.0676 5.03306 48.0326 5C48.0676 4.96694 48.1022 4.93333 48.1364 4.89917Z",fill:"#69727D"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.6927 22.3677C66.6927 21.6177 66.082 21.0098 65.3286 21.0098C64.5752 21.0098 63.9644 21.6177 63.9644 22.3677C63.9644 22.9679 63.7249 23.5436 63.2985 23.968C62.8721 24.3924 62.2938 24.6309 61.6908 24.6309C60.9374 24.6309 60.3267 25.2388 60.3267 25.9888C60.3267 26.7387 60.9374 27.3467 61.6908 27.3467C62.2938 27.3467 62.8721 27.5851 63.2985 28.0096C63.7249 28.434 63.9644 29.0096 63.9644 29.6099C63.9644 30.3598 64.5752 30.9678 65.3286 30.9678C66.082 30.9678 66.6927 30.3598 66.6927 29.6099C66.6927 29.0096 66.9323 28.434 67.3586 28.0096C67.785 27.5851 68.3633 27.3467 68.9663 27.3467C69.7197 27.3467 70.3305 26.7387 70.3305 25.9888C70.3305 25.2388 69.7197 24.6309 68.9663 24.6309C68.3633 24.6309 67.785 24.3924 67.3586 23.968C66.9323 23.5436 66.6927 22.9679 66.6927 22.3677ZM65.2277 25.8884C65.2619 25.8544 65.2955 25.8199 65.3286 25.785C65.3616 25.8199 65.3953 25.8544 65.4294 25.8884C65.4636 25.9224 65.4982 25.9559 65.5333 25.9888C65.4982 26.0217 65.4636 26.0552 65.4294 26.0892C65.3953 26.1232 65.3616 26.1577 65.3286 26.1925C65.2955 26.1577 65.2619 26.1232 65.2277 26.0892C65.1935 26.0552 65.1589 26.0217 65.1239 25.9888C65.1589 25.9559 65.1935 25.9224 65.2277 25.8884Z",fill:"#69727D"}),O.default.createElement("path",{d:"M53.9717 12L57.2198 17.0456L3.24796 51.4731L-0.000164873 46.4275L53.9717 12Z",fill:"#69727D"}),O.default.createElement("path",{d:"M64.9761 5L68.2242 10.0456L57.2612 17.0387L54.013 11.9931L64.9761 5Z",fill:"#E6E8EA"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M65.7284 9.49923L64.432 7.48537L56.5088 12.5394L57.8052 14.5533L65.7284 9.49923ZM64.9761 5L54.013 11.9931L57.2612 17.0387L68.2242 10.0456L64.9761 5Z",fill:"#69727D"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M128 41C128 43.7687 121.671 46.2089 112.052 47.6451L114.482 74.7976C114.494 74.8647 114.5 74.9322 114.5 75C114.5 75.0001 114.5 75.0002 114.5 75.0003C114.513 75.1456 114.487 75.2779 114.43 75.3982C113.514 77.9735 103.8 80 91.95 80C79.496 80 69.4 77.7614 69.4 75C69.4 74.8146 69.4456 74.6315 69.5343 74.4513L71.2141 47.5326C62.0087 46.0835 56 43.6977 56 41C56 36.5817 72.1177 33 92 33C111.882 33 128 36.5817 128 41Z",fill:"#69727D"}),O.default.createElement("path",{d:"M106.685 3.08259C112.562 16.564 109.338 34.1761 106.713 41.4407C106.713 41.4407 105.151 41.9127 100.894 41.9715C96.6371 42.0303 95.0251 41.9866 95.0251 41.4558C95.0252 40.9249 94.6272 34.6461 96.4177 22.3308C98.0343 11.2116 102.692 5.02553 105.448 2.75675C105.865 2.4137 106.47 2.58777 106.685 3.08259Z",fill:"#E6E8EA"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.883 4.66783C105.347 4.17219 106.14 4.35208 106.38 4.9873C108.716 11.1748 109.254 18.1507 108.889 24.5355C108.513 31.1152 107.184 36.9856 105.954 40.5842C105.778 40.6166 105.55 40.6541 105.265 40.6927C104.388 40.8119 102.974 40.9423 100.88 40.9712C98.7385 41.0008 97.3196 41.0031 96.4377 40.9371C96.2614 40.9239 96.1203 40.9088 96.0088 40.8935C95.9567 39.0573 95.8782 32.9919 97.4073 22.4743C98.766 13.1288 102.302 7.42438 104.883 4.66783ZM106.713 41.4403L107.002 42.3975C107.305 42.3062 107.546 42.0773 107.653 41.7802C109 38.0524 110.481 31.7376 110.886 24.6496C111.29 17.5654 110.626 9.61894 107.602 2.68255C107.147 1.63949 105.792 1.17814 104.812 1.98425C101.838 4.43294 97.0752 10.8574 95.4281 22.1866C93.7715 33.5811 93.975 39.865 94.0187 41.2138C94.0225 41.3324 94.0251 41.4128 94.0251 41.4552C94.025 42.261 94.695 42.5983 95.0067 42.7098C95.3591 42.8358 95.8079 42.8956 96.2886 42.9316C97.2769 43.0055 98.7924 43.0002 100.908 42.971C103.071 42.9411 104.566 42.806 105.534 42.6745C106.018 42.6088 106.371 42.5438 106.61 42.4932C106.729 42.4679 106.82 42.4461 106.885 42.4296C106.917 42.4214 106.943 42.4144 106.962 42.409L106.987 42.4021L106.996 42.3995L106.999 42.3984L107.001 42.398C107.001 42.398 107.002 42.3975 106.713 41.4403ZM106.426 40.4822L106.428 40.4817L106.43 40.4812C106.43 40.4812 106.429 40.4814 106.426 40.4822Z",fill:"#69727D"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.22 13.8372C104.787 15.7536 104.996 18.3439 104.953 21.2589C104.907 24.4148 104.569 27.8559 104.134 31.0529C103.7 34.2469 103.172 37.1799 102.753 39.3152C102.544 40.3824 102.361 41.2491 102.232 41.8481C102.22 41.9009 102.209 41.9516 102.199 42.0001H100.503C100.526 38.5025 100.676 33.4168 101.183 28.2866C101.724 22.8227 102.66 17.4299 104.22 13.8372ZM103 43.0001C103.974 43.2266 103.974 43.2264 103.974 43.2262L103.978 43.2093L103.989 43.1613C103.999 43.1192 104.013 43.0571 104.031 42.976C104.067 42.814 104.12 42.5763 104.186 42.2713C104.318 41.6613 104.503 40.7819 104.716 39.7006C105.14 37.5391 105.675 34.5658 106.116 31.3223C106.556 28.0818 106.905 24.5541 106.953 21.2881C107 18.0456 106.753 14.9635 105.943 12.6671C105.815 12.3045 105.676 11.9539 105.512 11.6797C105.394 11.4809 105.045 10.9388 104.371 10.9076C103.702 10.8766 103.301 11.3772 103.156 11.5722C102.959 11.8385 102.774 12.1912 102.594 12.5778C100.767 16.4945 99.7565 22.3931 99.1929 28.0897C98.6258 33.8211 98.5 39.4812 98.5 43.0001V44.0001H103.794L103.974 43.2262L103 43.0001Z",fill:"#69727D"}),O.default.createElement("path",{d:"M79.2952 3.08259C73.4181 16.564 76.6423 34.1761 79.2676 41.4407C79.2676 41.4407 80.8299 41.9127 85.0867 41.9715C89.3434 42.0303 90.9554 41.9866 90.9554 41.4558C90.9553 40.9249 91.3533 34.6461 89.5628 22.3308C87.9462 11.2116 83.2888 5.02553 80.5325 2.75675C80.1157 2.4137 79.511 2.58777 79.2952 3.08259Z",fill:"#E6E8EA"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.0978 4.66783C80.6337 4.17219 79.8403 4.35208 79.6005 4.9873C77.2644 11.1748 76.7267 18.1507 77.0914 24.5355C77.4671 31.1152 78.7963 36.9856 80.0267 40.5842C80.2028 40.6166 80.4308 40.6541 80.7155 40.6927C81.5929 40.8119 83.0069 40.9423 85.1005 40.9712C87.242 41.0008 88.6609 41.0031 89.5427 40.9371C89.7191 40.9239 89.8602 40.9088 89.9716 40.8935C90.0238 39.0573 90.1023 32.9919 88.5732 22.4743C87.2145 13.1288 83.6789 7.42438 81.0978 4.66783ZM79.2676 41.4403L78.9784 42.3975C78.676 42.3062 78.4345 42.0773 78.3271 41.7802C76.98 38.0524 75.4994 31.7376 75.0946 24.6496C74.69 17.5654 75.3547 9.61894 78.3786 2.68255C78.8333 1.63949 80.1887 1.17814 81.168 1.98425C84.1429 4.43294 88.9053 10.8574 90.5524 22.1866C92.209 33.5811 92.0055 39.865 91.9618 41.2138C91.958 41.3324 91.9554 41.4128 91.9554 41.4552C91.9554 42.261 91.2855 42.5983 90.9737 42.7098C90.6214 42.8358 90.1726 42.8956 89.6919 42.9316C88.7036 43.0055 87.1881 43.0002 85.0728 42.971C82.9096 42.9411 81.4141 42.806 80.4462 42.6745C79.9621 42.6088 79.6094 42.5438 79.3707 42.4932C79.2514 42.4679 79.1605 42.4461 79.0958 42.4296C79.0635 42.4214 79.0377 42.4144 79.0182 42.409L78.9937 42.4021L78.9849 42.3995L78.9814 42.3984L78.9798 42.398C78.9798 42.398 78.9784 42.3975 79.2676 41.4403ZM79.5541 40.4822L79.5526 40.4817L79.5507 40.4812C79.5507 40.4812 79.5514 40.4814 79.5541 40.4822Z",fill:"#69727D"}),O.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M81.7604 13.8372C81.1939 15.7536 80.9847 18.3439 81.0272 21.2589C81.0733 24.4148 81.4118 27.8559 81.8464 31.0529C82.2805 34.2469 82.8081 37.1799 83.2274 39.3152C83.4369 40.3824 83.6192 41.2491 83.7488 41.8481C83.7603 41.9009 83.7713 41.9516 83.7819 42.0001H85.4771C85.4542 38.5025 85.3049 33.4168 84.7973 28.2866C84.2567 22.8227 83.32 17.4299 81.7604 13.8372ZM82.9805 43.0001C82.0065 43.2266 82.0064 43.2264 82.0064 43.2262L82.0025 43.2093L81.9914 43.1613C81.9818 43.1192 81.9677 43.0571 81.9494 42.976C81.913 42.814 81.8602 42.5763 81.7941 42.2713C81.6621 41.6613 81.4772 40.7819 81.2648 39.7006C80.8404 37.5391 80.3054 34.5658 79.8646 31.3223C79.4241 28.0818 79.0751 24.5541 79.0275 21.2881C78.9801 18.0456 79.227 14.9635 80.0375 12.6671C80.1655 12.3045 80.305 11.9539 80.4683 11.6797C80.5868 11.4809 80.9351 10.9388 81.6092 10.9076C82.2782 10.8766 82.6793 11.3772 82.8241 11.5722C83.0217 11.8385 83.2064 12.1912 83.3867 12.5778C85.2136 16.4945 86.224 22.3931 86.7876 28.0897C87.3546 33.8211 87.4805 39.4812 87.4805 43.0001V44.0001H82.1863L82.0064 43.2262L82.9805 43.0001Z",fill:"#69727D"})),O.default.createElement("defs",null,O.default.createElement("clipPath",{id:"clip0_3127_96542"},O.default.createElement("rect",{width:"184",height:"80",fill:"white"}))))},le=(0,S.styled)(S.Box)((function(i){var C=i.theme;return{height:"calc(100% - ".concat(C.spacing(13),")")}})),ue=(0,S.styled)(S.Box)((function(i){return{position:"sticky",top:"100%",padding:i.theme.spacing(4,0,1)}})),ce=function ImageToolsPanel(){var i=(0,oe.useLocation)().navigate,C=[{label:(0,k.__)("Expand Image","elementor"),Icon:R.default,onClick:function onClick(){return i(re.LOCATIONS.OUT_PAINTING)}},{label:(0,k.__)("Generative Fill","elementor"),Icon:j.default,onClick:function onClick(){return i(re.LOCATIONS.IN_PAINTING)}},{label:(0,k.__)("Resize","elementor"),Icon:N.default,onClick:function onClick(){return i(re.LOCATIONS.RESIZE)}},{label:(0,k.__)("Variations","elementor"),Icon:W.default,onClick:function onClick(){return i(re.LOCATIONS.VARIATIONS)}},{label:(0,k.__)("Remove Background","elementor"),Icon:G.default,onClick:function onClick(){return i(re.LOCATIONS.REMOVE_BACKGROUND)}},{label:(0,k.__)("Replace Background","elementor"),Icon:$.default,onClick:function onClick(){return i(re.LOCATIONS.REPLACE_BACKGROUND)}},{label:(0,k.__)("Cleanup","elementor"),Icon:J.default,onClick:function onClick(){return i(re.LOCATIONS.CLEANUP)}}];return O.default.createElement(le,null,O.default.createElement(S.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:1,justifyContent:"center"},C.map((function(i){var C=i.label,w=i.Icon,x=i.onClick;return O.default.createElement(S.Button,{onClick:x,key:C,variant:"outlined",color:"secondary",disabled:!1,sx:{py:3,fontSize:"12px",height:"auto",borderRadius:"4px"}},O.default.createElement(S.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},O.default.createElement(w,{sx:{mb:.5}}),C))}))),O.default.createElement(ue,{display:"flex",flexDirection:"column",alignItems:"center"},O.default.createElement(ie,null),O.default.createElement(S.Typography,{variant:"body2",align:"center",color:"secondary",sx:{mt:2}},(0,k.__)("Stay tuned! More incredible AI tools are coming your way soon.","elementor"))))};ce.propTypes={generateNewPrompt:I.default.func,panelActive:I.default.bool};var se=ce;C.default=se},45168:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=x(w(38415)),k=w(38003),I=x(w(12883)),R=x(w(67779)),j=w(29859),W=w(86802),N=function ImageTools(){var i=(0,j.useLocation)().navigate;return O.default.createElement(S.default,null,O.default.createElement(S.default.Panel,null,O.default.createElement(S.default.BackButton,{onClick:function onClick(){return i(W.LOCATIONS.GENERATE)}},(0,k.__)("Generate with a prompt","elementor")),O.default.createElement(S.default.PanelHeading,{primary:(0,k.__)("Edit with AI","elementor")}),O.default.createElement(I.default,null)),O.default.createElement(S.default.Content,null,O.default.createElement(R.default,null)))};C.default=N},37358:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useInPainting(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageMaskGeneration)(i)}),i)};C.default=k},96258:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(23866),$=x(w(58155)),J=x(w(61433));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var re="rgba(255, 255, 255)",oe=(0,j.withDirection)($.default),ie=(0,j.withDirection)(J.default),le=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{position:"absolute",width:w,height:w,borderRadius:"50%",backgroundColor:re,pointerEvents:"none",transform:"translate(".concat("rtl"===C.direction?"50%":"-50%",", -50%)"),border:"1px solid #fff"}})),ue=(0,j.styled)(j.Box,{shouldForwardProp:function shouldForwardProp(i){return"size"===i}})((function(i){var C=i.theme,w=i.size;return{width:w/2,height:w/2,borderRadius:"50%",backgroundColor:C.palette.secondary.main}})),ce=function InPaintingContent(i){var C=i.editImage,w=i.setMask,x=i.setIsCanvasChanged,O=i.width,N=i.height,$=(0,S.useRef)(),J=(0,S.useState)(30),ce=(0,R.default)(J,2),se=ce[0],de=ce[1],he=(0,S.useRef)();return(0,S.useEffect)((function(){var i=document.querySelector(".eui-in-painting-canvas"),C=function positionElement(C){var w=i.getBoundingClientRect(),x=w.left,O=w.top,S=w.width,k=w.height,I=C.clientX-x,R=C.clientY-O;I>0&&I<S&&R>0&&R<k&&(he.current.style.left="".concat(I,"px"),he.current.style.top="".concat(R,"px"))};return window.addEventListener("mousemove",C),function(){window.removeEventListener("mousemove",C)}}),[se]),S.default.createElement(j.Stack,{alignItems:"flex-start",spacing:.5,flexGrow:1},S.default.createElement(j.Stack,{width:"100%",direction:"row",spacing:3,alignSelf:"center",justifyContent:"center",sx:{mb:2.5}},S.default.createElement(j.Stack,{direction:"row",gap:1},S.default.createElement(j.Tooltip,{title:(0,W.__)("Undo","elementor")},S.default.createElement(j.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return $.current.undo()},sx:{px:0}},S.default.createElement(oe,null))),S.default.createElement(j.Tooltip,{title:(0,W.__)("Redo","elementor")},S.default.createElement(j.Button,{variant:"outlined",color:"secondary",onClick:function onClick(){return $.current.redo()},sx:{px:0}},S.default.createElement(ie,null)))),S.default.createElement(j.FormControl,{size:"small",color:"secondary",sx:{minWidth:120}},S.default.createElement(j.InputLabel,{id:"stroke"},"Stroke"),S.default.createElement(j.Select,{autoWidth:!0,label:"Stroke",value:se,id:"demo-simple-select",labelId:"demo-simple-select-label",onChange:function onChange(i){return de(i.target.value)},MenuProps:{PaperProps:{sx:{maxWidth:120}},MenuListProps:{sx:{minWidth:120}}},sx:{"& .MuiSelect-select .MuiListItemIcon-root":{mr:.25,width:"initial",minWidth:"initial",justifyContent:"flex-start"}}},[10,20,30,40,50].map((function(i){return S.default.createElement(j.MenuItem,{key:"stroke-width-option-"+i,value:i},S.default.createElement(j.Stack,{direction:"row",alignItems:"center",gap:1},S.default.createElement(j.ListItemIcon,{sx:{width:30,display:"flex",justifyContent:"center"}},S.default.createElement(ue,{size:i})),S.default.createElement(j.ListItemText,null,i)))}))))),S.default.createElement("div",{style:{margin:"0 auto",position:"relative",cursor:"none",overflow:"hidden"}},S.default.createElement(le,{ref:he,size:se}),S.default.createElement(G.ReactSketchCanvas,{className:"eui-in-painting-canvas",withViewBox:!0,ref:$,height:N+"px",width:O+"px",strokeWidth:se,strokeColor:re,canvasColor:"rgba(0, 0, 0)",backgroundImage:C.url,onStroke:function onStroke(){return x(!0)},onChange:(0,I.default)(k.default.mark((function _callee(){var i;return k.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,$.current.exportSvg();case 2:i=C.sent,w(i);case 4:case"end":return C.stop()}}),_callee)})))})))};ce.propTypes={setMask:N.default.func.isRequired,setIsCanvasChanged:N.default.func.isRequired,width:N.default.number.isRequired,height:N.default.number.isRequired,editImage:N.default.object.isRequired};var se=ce;C.default=se},26774:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(38415)),G=x(w(38793)),$=x(w(65875)),J=x(w(96258)),re=x(w(78025)),oe=x(w(12970)),ie=x(w(69870)),le=x(w(69425)),ue=x(w(73838)),ce=x(w(37358)),se=w(24607),de=x(w(96718)),he=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ge=function InPainting(){var i=(0,S.useState)(""),C=(0,R.default)(i,2),w=C[0],x=C[1],O=(0,he.useRequestIds)().setGenerate,ge=(0,S.useState)(""),ye=(0,R.default)(ge,2),ve=ye[0],Ce=ye[1],Se=(0,S.useState)(!1),Pe=(0,R.default)(Se,2),Ie=Pe[0],Re=Pe[1],Me=(0,ue.default)(),De=Me.settings,Fe=Me.resetSettings,He=(0,se.useEditImage)(),Ue=He.editImage,Ge=He.width,Ze=He.height,Ke=(0,de.default)(),Qe=Ke.use,et=Ke.edit,tt=Ke.isLoading,nt=(0,ce.default)(),rt=nt.data,ot=nt.send,at=nt.isLoading,it=nt.error,lt=nt.reset,ut=at||tt,ct=function(){var i=(0,I.default)(k.default.mark((function _callee(i){var C;return k.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:i.preventDefault(),C=w||"Remove object and fill based on the surroundings",O(),ot({prompt:C,settings:De,image:Ue,mask:ve});case 4:case"end":return x.stop()}}),_callee)})));return function handleSubmit(C){return i.apply(this,arguments)}}();return S.default.createElement(N.default,null,S.default.createElement(N.default.Panel,null,S.default.createElement(N.default.BackButton,null),S.default.createElement(N.default.PanelHeading,{primary:(0,W.__)("Generative Fill","elementor"),secondary:(0,W.__)("Mark an area and edit it with a prompt.","elementor")}),it&&S.default.createElement(N.default.ErrorMessage,{error:it,onRetry:ct}),S.default.createElement(G.default,{onSubmit:ct},S.default.createElement($.default,{value:w,disabled:ut,onChange:x,placeholder:(0,W.__)("Describe what you want to generate in the marked area (English only)","elementor")}),null!=rt&&rt.result?S.default.createElement(j.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(oe.default,{disabled:ut}),S.default.createElement(ie.default,{disabled:ut,onClick:function onClick(){Fe(),x(""),lt()}})):S.default.createElement(re.default,{disabled:ut||!w||!Ie}))),S.default.createElement(N.default.Content,{isGenerating:ut},null!=rt&&rt.result?S.default.createElement(le.default,{images:rt.result,aspectRatio:Ue.aspectRatio,onUseImage:Qe,onEditImage:et}):S.default.createElement(J.default,{editImage:Ue,width:Ge,height:Ze,setMask:Ce,setIsCanvasChanged:Re})))};C.default=ge},13167:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useOutPainting(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageOutPainting)(i)}),i)};C.default=k},33845:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(50824)),I=x(w(93231)),R=x(w(10029)),j=x(w(40131)),W=w(36626),N=w(38003),G=x(w(38415)),$=x(w(38793)),J=x(w(84123)),re=x(w(78025)),oe=x(w(12970)),ie=x(w(20828)),le=x(w(69425)),ue=w(24607),ce=x(w(96718)),se=_interopRequireWildcard(w(73838)),de=x(w(13167)),he=w(35879),ge=w(82643);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}var ye=function OutPainting(){var i=(0,S.useState)({width:0,height:0}),C=(0,j.default)(i,2),w=C[0],x=C[1],O=(0,S.useState)({x:.5,y:.5}),ye=(0,j.default)(O,2),ve=ye[0],Ce=ye[1],Se=(0,S.useState)(""),Pe=(0,j.default)(Se,2),Ie=Pe[0],Re=Pe[1],Me=(0,he.useRequestIds)().setGenerate,De=(0,ue.useEditImage)(),Fe=De.editImage,He=De.aspectRatio,Ue=(0,se.default)({aspectRatio:He}),Ge=Ue.settings,Ze=Ue.updateSettings,Ke=(0,ce.default)(),Qe=Ke.use,et=Ke.edit,tt=Ke.isLoading,nt=(0,de.default)(),rt=nt.data,ot=nt.send,at=nt.isLoading,it=nt.error,lt=at||tt,ut=(0,S.useMemo)((function(){return Ge[se.IMAGE_RATIO]}),[null==rt?void 0:rt.result]),ct=!(null==rt||!rt.result),st=function(){var i=(0,R.default)(k.default.mark((function _callee(i){var C;return k.default.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:return i.preventDefault(),Me(),x.next=4,(0,ge.fetchImageAsBase64)(Fe.url);case 4:C=x.sent,ot({settings:Ge,image:Fe,mask:Ie,size:w,position:ve,image_base64:C});case 6:case"end":return x.stop()}}),_callee)})));return function handleSubmit(C){return i.apply(this,arguments)}}();return S.default.createElement(G.default,null,S.default.createElement(G.default.Panel,null,S.default.createElement(G.default.BackButton,null),S.default.createElement(G.default.PanelHeading,{primary:(0,N.__)("Expand Image","elementor"),secondary:(0,N.__)("Position image in it’s new size to generate content around the edges.","elementor")}),it&&S.default.createElement(G.default.ErrorMessage,{error:it,onRetry:st}),S.default.createElement($.default,{onSubmit:st},S.default.createElement(J.default,{disabled:lt||ct,value:Ge[se.IMAGE_RATIO],onChange:function onChange(i){return Ze((0,I.default)({},se.IMAGE_RATIO,i.target.value))}}),S.default.createElement(W.FormControl,{sx:{width:"100%",mb:2.5}},S.default.createElement(W.Slider,{marks:!0,id:"zoom",name:"zoom",max:1,min:.1,step:.1,color:"secondary",defaultValue:1,disabled:lt||ct,valueLabelDisplay:"auto","aria-labelledby":"image-size-slider","aria-label":(0,N.__)("Reference strength","elementor"),onChange:function onChange(i,C){return Ze((0,I.default)({},se.IMAGE_ZOOM,C))}}),S.default.createElement(W.Typography,{id:"image-size-slider",variant:"caption",gutterBottom:!0},(0,N.__)("Original image size","elementor"))),null!=rt&&rt.result?S.default.createElement(W.Stack,{gap:2,sx:{my:2.5}},S.default.createElement(oe.default,{disabled:lt})):S.default.createElement(re.default,{disabled:lt}))),S.default.createElement(G.default.Content,{isGenerating:lt},ct?S.default.createElement(le.default,{onUseImage:Qe,onEditImage:et,images:rt.result,aspectRatio:ut}):S.default.createElement(ie.default,{setMask:Re,editImage:Fe,scale:Ge[se.IMAGE_ZOOM],aspectRatio:Ge[se.IMAGE_RATIO],setImageSize:x,setPosition:Ce})))};C.default=ye},20828:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=w(36626),j=x(w(23615)),W=x(w(78462)),N=x(w(98608));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var G=function OutPaintingContent(i){var C=i.scale,w=i.setMask,x=i.editImage,O=i.aspectRatio,j=i.setImageSize,G=i.setPosition,$=(0,S.useRef)(),J=(0,S.useRef)({x:.5,y:.5}),re=(0,N.default)(O),oe=re.width,ie=re.height,le={width:oe,height:ie},ue=function(){var i=(0,I.default)(k.default.mark((function _callee(){var i;return k.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,$.current.getImageScaledToCanvas().toDataURL();case 2:i=C.sent,w(i);case 4:case"end":return C.stop()}}),_callee)})));return function updateMask(){return i.apply(this,arguments)}}(),ce=function(){var i=(0,I.default)(k.default.mark((function _callee2(i){return k.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return J.current={x:i.x,y:i.y},C.next=3,ue();case 3:G(J.current);case 4:case"end":return C.stop()}}),_callee2)})));return function onPositionChange(C){return i.apply(this,arguments)}}(),se=function(){var i=(0,I.default)(k.default.mark((function _callee3(){return k.default.wrap((function _callee3$(i){for(;;)switch(i.prev=i.next){case 0:return le={width:le.width*C,height:le.height*C},i.next=3,ue();case 3:j(le);case 4:case"end":return i.stop()}}),_callee3)})));return function onImageChange(){return i.apply(this,arguments)}}();return S.default.createElement(R.Stack,{alignItems:"center",spacing:.5,flexGrow:1},S.default.createElement(W.default,{ref:$,image:x.url,style:{backgroundImage:"linear-gradient(45deg, #bbb 25%, transparent 25%), linear-gradient(-45deg, #bbb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bbb 75%), linear-gradient(-45deg, transparent 75%, #bbb 75%)",backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",outline:"2px dashed #000",marginTop:"12px"},color:[0,0,0,.9],rotate:0,border:0,allowZoomOut:!0,backgroundColor:"transparent",showGrid:!0,onImageChange:se,onPositionChange:function onPositionChange(i){return ce(i)},width:oe,height:ie,scale:C}))};G.propTypes={scale:j.default.number.isRequired,setMask:j.default.func.isRequired,editImage:j.default.object.isRequired,aspectRatio:j.default.string.isRequired,setImageSize:j.default.func.isRequired,setPosition:j.default.func.isRequired};var $=G;C.default=$},94818:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useRemoveBackground(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageRemoveBackground)(i)}),i)};C.default=k},77474:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(38003),I=x(w(38415)),R=x(w(78025)),j=x(w(38793)),W=x(w(69425)),N=x(w(20273)),G=w(24607),$=x(w(96718)),J=x(w(94818)),re=x(w(69870)),oe=w(86802),ie=w(29859),le=x(w(98608)),ue=w(35879),ce=function RemoveBackground(){var i=(0,G.useEditImage)().editImage,C=(0,ue.useRequestIds)().setGenerate,w=(0,$.default)(),x=w.use,ce=w.edit,se=w.isLoading,de=(0,J.default)(),he=de.data,ge=de.send,ye=de.isLoading,ve=de.error,Ce=(0,ie.useLocation)().navigate,Se=ye||se,Pe=(0,le.default)(i.aspectRatio),Ie=Pe.width,Re=Pe.height,Me=function handleSubmit(w){w.preventDefault(),C(),ge({image:i})};return O.default.createElement(I.default,null,O.default.createElement(I.default.Panel,null,O.default.createElement(I.default.BackButton,null),O.default.createElement(I.default.PanelHeading,{primary:(0,k.__)("Remove Background","elementor"),secondary:(0,k.__)("Create an image of the subject with a transparent background","elementor")}),ve&&O.default.createElement(I.default.ErrorMessage,{error:ve,onRetry:Me}),O.default.createElement(j.default,{onSubmit:Me},null!=he&&he.result?O.default.createElement(re.default,{variant:"contained",disabled:Se,onClick:function onClick(){return Ce(oe.LOCATIONS.GENERATE)}}):O.default.createElement(R.default,{disabled:Se},(0,k.__)("Remove Background","elementor")))),O.default.createElement(I.default.Content,{isGenerating:Se},null!=he&&he.result?O.default.createElement(S.Box,null,O.default.createElement(W.default,{transparentContainer:!0,onUseImage:x,onEditImage:ce,images:he.result,aspectRatio:i.aspectRatio})):O.default.createElement(S.Box,null,O.default.createElement(N.default,null,O.default.createElement(N.default.Image,{src:i.url,alt:i.alt,style:{width:Ie,height:Re}})))))};C.default=ce},19171:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useReplaceBackground(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageReplaceBackground)(i)}),i)};C.default=k},64874:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(40131)),I=x(w(38415)),R=w(38003),j=x(w(78025)),W=x(w(38793)),N=x(w(69425)),G=x(w(20273)),$=w(24607),J=x(w(96718)),re=x(w(19171)),oe=x(w(65875)),ie=w(86802),le=x(w(69870)),ue=w(29859),ce=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var se=function ReplaceBackground(){var i=(0,S.useState)(""),C=(0,k.default)(i,2),w=C[0],x=C[1],O=(0,ce.useRequestIds)().setGenerate,se=(0,$.useEditImage)().editImage,de=(0,J.default)(),he=de.use,ge=de.edit,ye=de.isLoading,ve=(0,re.default)(),Ce=ve.data,Se=ve.send,Pe=ve.isLoading,Ie=ve.error,Re=(0,ue.useLocation)().navigate,Me=Pe||ye,De=function handleSubmit(i){i.preventDefault(),O(),Se({prompt:w,image:se})};return S.default.createElement(I.default,null,S.default.createElement(I.default.Panel,null,S.default.createElement(I.default.BackButton,null),S.default.createElement(I.default.PanelHeading,{primary:(0,R.__)("Replace Background","elementor"),secondary:(0,R.__)("Generate a new background with a prompt.","elementor")}),Ie&&S.default.createElement(I.default.ErrorMessage,{error:Ie,onRetry:De}),S.default.createElement(W.default,{onSubmit:De},S.default.createElement(oe.default,{value:w,disabled:Me,onChange:x,placeholder:(0,R.__)("Describe what you want to generate in the background (English only)","elementor")}),S.default.createElement(j.default,{disabled:Me||""===w,color:null!=Ce&&Ce.result?"secondary":"primary"},null!=Ce&&Ce.result?(0,R.__)("Generate Again","elementor"):(0,R.__)("Replace Background","elementor")),(null==Ce?void 0:Ce.result)&&S.default.createElement(le.default,{disabled:Me,onClick:function onClick(){return Re(ie.LOCATIONS.GENERATE)}}))),S.default.createElement(I.default.Content,{isGenerating:Me},null!=Ce&&Ce.result?S.default.createElement(N.default,{onUseImage:he,onEditImage:ge,images:Ce.result,aspectRatio:se.aspectRatio}):S.default.createElement(G.default,null,S.default.createElement(G.default.Image,{src:se.url,alt:se.alt,style:{width:se.width,height:se.height}}))))};C.default=se},73781:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useResize(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageUpscale)(i)}),i)};C.default=k},72269:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=x(w(87363)),k=x(w(93231)),I=w(36626),R=w(38003),j=x(w(38415)),W=x(w(78025)),N=x(w(38793)),G=x(w(69425)),$=x(w(20273)),J=w(24607),re=x(w(73781)),oe=x(w(96718)),ie=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(73838)),le=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var ue=function Resize(){var i=(0,J.useEditImage)(),C=i.editImage,w=i.width,x=(0,le.useRequestIds)().setGenerate,O=(0,oe.default)(),ue=O.use,ce=O.edit,se=O.isLoading,de=(0,ie.default)(),he=de.settings,ge=de.updateSettings,ye=(0,re.default)(),ve=ye.data,Ce=ye.send,Se=ye.isLoading,Pe=ye.error,Ie=Se||se,Re=function handleSubmit(i){i.preventDefault(),x(),Ce({promptSettings:he,image:C})};return S.default.createElement(j.default,null,S.default.createElement(j.default.Panel,null,S.default.createElement(j.default.BackButton,null),S.default.createElement(j.default.PanelHeading,{primary:(0,R.__)("Resize","elementor"),secondary:(0,R.__)("Make an image larger and improve it’s resolution.","elementor")}),Pe&&S.default.createElement(j.default.ErrorMessage,{error:Pe,onRetry:Re}),S.default.createElement(N.default,{onSubmit:Re},S.default.createElement(I.Stack,{spacing:.2},S.default.createElement(I.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},S.default.createElement(I.Typography,{variant:"caption"},"512px"),S.default.createElement(I.Typography,{variant:"caption"},"2048px")),S.default.createElement(I.Slider,{marks:!0,step:64,min:512,max:2048,id:"upscale_to",color:"secondary",name:"upscale_to",disabled:Ie,defaultValue:w,valueLabelDisplay:"auto","aria-label":(0,R.__)("Upscale to","elementor"),onChange:function onChange(i,C){return ge((0,k.default)({},ie.IMAGE_UPSCALE,C))}}),S.default.createElement(I.Box,{display:"flex",justifyContent:"space-between",alignItems:"center"},S.default.createElement(I.Typography,{variant:"caption"},(0,R.__)("Current","elementor")),S.default.createElement(I.Typography,{variant:"caption"},(0,R.__)("Output","elementor")))),S.default.createElement(W.default,{disabled:Ie}))),S.default.createElement(j.default.Content,{isGenerating:Ie},null!=ve&&ve.result?S.default.createElement(G.default,{onUseImage:ue,onEditImage:ce,images:ve.result,aspectRatio:C.aspectRatio}):S.default.createElement($.default,null,S.default.createElement($.default.Image,{src:C.url,alt:C.alt,style:{width:C.width,height:C.height}}))))};C.default=ue},64355:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=x(w(87363)),S=w(36626),k=w(34029),I=function ImagesPlaceholder(){return O.default.createElement(S.Box,{sx:{overflowY:"scroll"},flexGrow:1},O.default.createElement(S.Box,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:3},Array(4).fill(!0).map((function(i,C){return O.default.createElement(S.Box,{key:"placeholder-".concat(C),display:"flex",justifyContent:"center",alignItems:"center",sx:{bgcolor:"action.selected",height:336}},O.default.createElement(k.AIIcon,{color:"secondary",sx:{fontSize:36}}))}))))};I.propTypes={};var R=I;C.default=R},80449:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var O=w(46183),S=x(w(87327)),k=function useImageToImage(i){return(0,S.default)((function fetchAction(i){return(0,O.getImageToImageGeneration)(i)}),i)};C.default=k},62292:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=_interopRequireWildcard(w(87363)),k=x(w(40131)),I=w(36626),R=w(38003),j=x(w(38415)),W=x(w(38793)),N=x(w(12970)),G=x(w(66467)),$=x(w(69425)),J=x(w(64355)),re=x(w(80449)),oe=x(w(96718)),ie=w(24607),le=_interopRequireWildcard(w(73838)),ue=w(35879);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}return x.default=i,w&&w.set(i,x),x}var ce=function Variations(){var i,C=(0,S.useState)(""),w=(0,k.default)(C,1)[0],x=(0,ue.useRequestIds)().setGenerate,O=(0,ie.useEditImage)(),ce=O.editImage,se=O.aspectRatio,de=(0,le.default)({aspectRatio:se,imageWeight:45}).settings,he=(0,re.default)(),ge=he.data,ye=he.send,ve=he.isLoading,Ce=he.error,Se=(0,oe.default)(),Pe=Se.use,Ie=Se.edit,Re=Se.isLoading,Me=ve||Re,De=(0,S.useMemo)((function(){return de[le.IMAGE_RATIO]}),[null==ge?void 0:ge.result]),Fe=function handleSubmit(i){i.preventDefault(),x(),ye({prompt:w,settings:de,image:ce})};return S.default.createElement(j.default,null,S.default.createElement(j.default.Panel,null,S.default.createElement(j.default.BackButton,null),S.default.createElement(j.default.PanelHeading,{primary:(0,R.__)("Variations","elementor"),secondary:(0,R.__)("Create new versions of the original image.","elementor")}),Ce&&S.default.createElement(j.default.ErrorMessage,{error:Ce,onRetry:Fe}),S.default.createElement(W.default,{onSubmit:Fe},S.default.createElement(I.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"action.selected"}},S.default.createElement("img",{src:(null==ce?void 0:ce.image_url)||(null==ce?void 0:ce.url),alt:w,style:{width:"auto",height:"auto",maxWidth:"100%",maxHeight:166,objectFit:"contained"}})),S.default.createElement(I.Stack,{gap:2,sx:{my:2.5}},(null==ge||null===(i=ge.result)||void 0===i?void 0:i.length)>0?S.default.createElement(N.default,{disabled:Me}):S.default.createElement(G.default,{disabled:Me})))),S.default.createElement(j.default.Content,{isGenerating:Me},null!=ge&&ge.result?S.default.createElement($.default,{images:ge.result,aspectRatio:De,onUseImage:Pe,onEditImage:Ie}):S.default.createElement(J.default,null)))};ce.propTypes={};var se=ce;C.default=se},85157:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(34029),$=x(w(71871)),J=x(w(51391)),re=x(w(87105)),oe=x(w(79619)),ie=x(w(84515)),le=x(w(93970)),ue=x(w(4466)),ce=x(w(77655)),se=x(w(86960)),de=x(w(65441)),he=w(17927),ge=w(10905),ye=w(35879),ve=w(90246);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var Ce=[{label:(0,W.__)("Simplify language","elementor"),icon:S.default.createElement(G.MessageIcon,{fontSize:"small"}),value:"Simplify the language of the following message"},{label:(0,W.__)("Make it longer","elementor"),icon:S.default.createElement(G.ExpandIcon,{fontSize:"small"}),value:"Make the following message longer"},{label:(0,W.__)("Make it shorter","elementor"),icon:S.default.createElement(G.ShrinkIcon,{fontSize:"small"}),value:"Make the following message shorter"},{label:(0,W.__)("Fix spelling & grammar","elementor"),icon:S.default.createElement(G.AIIcon,{fontSize:"small"}),value:"Fix the spelling and grammar of the following message"}],Se=[{label:(0,W.__)("Change tone","elementor"),options:he.vocalTones,getInstruction:function getInstruction(i){return"Change the tone of the following message to ".concat(i)}},{label:(0,W.__)("Translate to","elementor"),options:he.translateLanguages,getInstruction:function getInstruction(i){return"Translate the following message to ".concat(i)}}],Pe=function FormText(i){var C,w,x,O=i.type,N=i.onClose,G=i.getControlValue,Pe=i.setControlValue,Ie=i.additionalOptions,Re=i.credits,Me=i.children,De=G()===(null==Ie?void 0:Ie.defaultValue)?"":G(),Fe=(0,de.default)({result:null!==(C=null==De?void 0:De.result)&&void 0!==C?C:De,credits:null!==(w=null==De?void 0:De.credits)&&void 0!==w?w:Re,responseId:null==De?void 0:De.responseId}),He=Fe.data,Ue=Fe.isLoading,Ge=Fe.error,Ze=Fe.setResult,Ke=Fe.reset,Qe=Fe.send,et=Fe.sendUsageData,tt=Ge||(null==Ie?void 0:Ie.initError),nt=(0,S.useState)(""),rt=(0,R.default)(nt,2),ot=rt[0],at=rt[1],it=(0,ye.useRequestIds)().setGenerate;(0,ge.useSubscribeOnPromptHistoryAction)([{type:ge.ACTION_TYPES.REUSE,handler:function handler(i){Ke(),at(i.data)}},{type:ge.ACTION_TYPES.EDIT,handler:function handler(i){Ze(i.data)}}]);var lt=(0,S.useRef)(null),ut=(0,S.useRef)(null),ct=(0,S.useRef)(null!==(x=Ie.initRetry)&&void 0!==x?x:function(){}),st="textarea"===O?he.textareaAutocomplete:he.textAutocomplete,dt=!ot,ft=function(){var i=(0,I.default)(k.default.mark((function _callee(i){return k.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:it(),ct.current=function(){return Qe({input:ut.current.value,instruction:i})},ct.current();case 3:case"end":return C.stop()}}),_callee)})));return function handleCustomInstruction(C){return i.apply(this,arguments)}}();return Ue?S.default.createElement($.default,null):S.default.createElement(S.default.Fragment,null,tt&&S.default.createElement(se.default,{error:tt,onRetry:ct.current,sx:{mb:2.5}}),Me,!He.result&&S.default.createElement(j.Box,{component:"form",onSubmit:function handleSubmit(i){i.preventDefault(),it(),ct.current=function(){return Qe({prompt:ot})},ct.current()}},S.default.createElement(j.Box,{sx:{mb:2.5}},S.default.createElement(J.default,{ref:lt,placeholder:(0,W.__)("Describe the text and tone you want to use...","elementor"),name:"prompt",value:ot,onChange:function onChange(i){return at(i.target.value)}})),dt&&S.default.createElement(oe.default,{suggestions:st,onSelect:function handleSuggestion(i){at(i+" "),lt.current.focus()},suggestionFilter:function suggestionFilter(i){return i+"..."}},S.default.createElement(ie.default,{libraryLink:"https://go.elementor.com/ai-prompt-library-text/"})),Ie.hideAiContext?null:S.default.createElement(ve.VoicePromotionAlert,{introductionKey:"ai-context-text-promotion",sx:{mb:2}}),S.default.createElement(j.Stack,{direction:"row",alignItems:"center",sx:{pb:1.5,mt:2}},S.default.createElement(j.Stack,{direction:"row",justifyContent:"flex-end",flexGrow:1},S.default.createElement(ue.default,null,(0,W.__)("Generate text","elementor"))))),He.result&&S.default.createElement(j.Box,{sx:{mt:1}},S.default.createElement(re.default,{fullWidth:!0,ref:ut,value:He.result,helperText:(0,W.__)("Text generated by AI may be inaccurate or offensive.","elementor"),onChange:function onChange(i){return Ze(i.target.value)}}),S.default.createElement(j.Grid,{container:!0,spacing:1,sx:{mt:2.5}},Ce.map((function(i){var C=i.label,w=i.icon,x=i.value;return S.default.createElement(j.Grid,{item:!0,key:C},S.default.createElement(ce.default,{label:C,icon:w,onClick:function onClick(){return ft(x)}}))}))),S.default.createElement(j.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mt:2.5}},Se.map((function(i){var C=i.label,w=i.options,x=i.getInstruction;return S.default.createElement(le.default,{key:C,label:C,options:w,onChange:function onChange(i){return ft(x(i.target.value))}})}))),Ie.hideAiContext?null:S.default.createElement(ve.VoicePromotionAlert,{introductionKey:"ai-context-text-promotion",sx:{mb:2}}),S.default.createElement(j.Stack,{direction:"row",alignItems:"center",sx:{my:1}},S.default.createElement(j.Stack,{direction:"row",gap:1,justifyContent:"flex-end",flexGrow:1},S.default.createElement(j.Button,{size:"small",color:"secondary",variant:"text",onClick:Ke},(0,W.__)("New prompt","elementor")),S.default.createElement(j.Button,{size:"small",variant:"contained",color:"primary",onClick:function applyPrompt(){et(),Pe(ut.current.value),N()}},(0,W.__)("Use text","elementor"))))))};Pe.propTypes={type:N.default.string.isRequired,controlType:N.default.string,onClose:N.default.func.isRequired,getControlValue:N.default.func.isRequired,setControlValue:N.default.func.isRequired,additionalOptions:N.default.object,credits:N.default.number,usagePercentage:N.default.number,children:N.default.node};var Ie=Pe;C.default=Ie},96587:(i,C,w)=>{"use strict";var x=w(73203),O=w(7501);Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var S=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==O(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in i)if("default"!==k&&Object.prototype.hasOwnProperty.call(i,k)){var I=S?Object.getOwnPropertyDescriptor(i,k):null;I&&(I.get||I.set)?Object.defineProperty(x,k,I):x[k]=i[k]}x.default=i,w&&w.set(i,x);return x}(w(87363)),k=x(w(50824)),I=x(w(10029)),R=x(w(40131)),j=w(36626),W=w(38003),N=x(w(23615)),G=w(46183),$=w(34029);function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}var J=function GetStarted(i){var C=i.onSuccess,w=(0,S.useState)(!1),x=(0,R.default)(w,2),O=x[0],N=x[1],J=function(){var i=(0,I.default)(k.default.mark((function _callee(){return k.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,G.setGetStarted)();case 2:C();case 3:case"end":return i.stop()}}),_callee)})));return function onGetStartedClick(){return i.apply(this,arguments)}}();return S.default.createElement(j.Stack,{alignItems:"center",gap:1.5},S.default.createElement($.AIIcon,{sx:{color:"text.primary",fontSize:"60px",mb:1}}),S.default.createElement(j.Typography,{variant:"h4",sx:{color:"text.primary"}},(0,W.__)("Step into the future with Elementor AI","elementor")),S.default.createElement(j.Typography,{variant:"body2"},(0,W.__)("Create smarter with AI text and code generators built right into the editor.","elementor")),S.default.createElement(j.Stack,{direction:"row",gap:1.5,alignItems:"flex-start"},S.default.createElement(j.Checkbox,{id:"e-ai-terms-approval",color:"secondary",checked:O,onClick:function onClick(){return N((function(i){return!i}))}}),S.default.createElement(j.Stack,null,S.default.createElement(j.Typography,{variant:"caption",sx:{maxWidth:520},component:"label",htmlFor:"e-ai-terms-approval"},(0,W.__)("I approve the ","elementor"),S.default.createElement(j.Link,{href:"https://go.elementor.com/ai-terms/",target:"_blank",color:"info.main"},(0,W.__)("Terms of Service","elementor"))," & ",S.default.createElement(j.Link,{href:"https://go.elementor.com/ai-privacy-policy/",target:"_blank",color:"info.main"},(0,W.__)("Privacy Policy","elementor")),(0,W.__)(" of the Elementor AI service.","elementor"),S.default.createElement("br",null),(0,W.__)("This includes consenting to the collection and use of data to improve user experience.","elementor")))),S.default.createElement(j.Button,{disabled:!O,variant:"contained",onClick:J,sx:{mt:1,"&:hover":{color:"primary.contrastText"}}},(0,W.__)("Get Started","elementor")))};J.propTypes={onSuccess:N.default.func.isRequired};var re=J;C.default=re},77292:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.AttachmentsTypesPropType=C.AttachmentPropType=void 0;var O=x(w(23615)),S=O.default.shape({type:O.default.string,previewHTML:O.default.string,content:O.default.string,label:O.default.string,source:O.default.string});C.AttachmentPropType=S;var k=O.default.shape({type:O.default.shape({promptPlaceholder:O.default.string,promptSuggestions:O.default.arrayOf(O.default.shape({text:O.default.string.isRequired})),previewGenerator:O.default.func})});C.AttachmentsTypesPropType=k},36619:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.renderLayoutApp=C.openPanel=C.onConnect=C.importToEditor=C.getUiConfig=C.closePanel=C.WEB_BASED_PROMPTS=C.VARIATIONS_PROMPTS=void 0;var O=x(w(87363)),S=x(w(50824)),k=x(w(10029)),I=x(w(66535)),R=w(5389),j=x(w(78949)),W=w(24271),N=w(48096),G=w(38003),$=x(w(42637)),J=w(35879),re=function closePanel(){$e.run("panel/close"),$e.components.get("panel").blockUserInteractions()};C.closePanel=re;var oe=function openPanel(){$e.run("panel/open"),$e.components.get("panel").unblockUserInteractions()};C.openPanel=oe;var ie=function onConnect(i){elementorCommon.config.library_connect.is_connected=!0,elementorCommon.config.library_connect.current_access_level=i.kits_access_level||i.access_level||0,elementorCommon.config.library_connect.current_access_tier=i.access_tier};C.onConnect=ie;var le=function getUiConfig(){var i,C;return{colorScheme:(null===(i=elementor)||void 0===i||null===(C=i.getPreferences)||void 0===C?void 0:C.call(i,"ui_theme"))||"auto",isRTL:elementorCommon.config.isRTL}};C.getUiConfig=le;var ue=[{text:(0,G.__)("Minimalist design with bold typography about","elementor")},{text:(0,G.__)("Elegant style with serif fonts discussing","elementor")},{text:(0,G.__)("Retro vibe with muted colors and classic fonts about","elementor")},{text:(0,G.__)("Futuristic design with neon accents about","elementor")},{text:(0,G.__)("Professional look with clean lines for","elementor")},{text:(0,G.__)("Earthy tones and organic shapes featuring","elementor")},{text:(0,G.__)("Luxurious theme with rich colors discussing","elementor")},{text:(0,G.__)("Tech-inspired style with modern fonts about","elementor")},{text:(0,G.__)("Warm hues with comforting visuals about","elementor")}];C.VARIATIONS_PROMPTS=ue;var ce=[{text:(0,G.__)("Change the content to be about [topic]","elementor")},{text:(0,G.__)("Generate lorem ipsum placeholder text for all paragraphs","elementor")},{text:(0,G.__)("Revise the content to focus on [topic] and then translate it into Spanish","elementor")},{text:(0,G.__)("Shift the focus of the content to [topic] in order to showcase our company's mission and values","elementor")},{text:(0,G.__)("Alter the content to provide helpful tips related to [topic]","elementor")},{text:(0,G.__)("Adjust the content to include FAQs and answers for common inquiries about [topic]","elementor")}];C.WEB_BASED_PROMPTS=ce;var se=(0,G.__)("Press '/' for suggestions or describe the changes you want to apply (optional)...","elementor");C.renderLayoutApp=function renderLayoutApp(){var i,C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{parentContainer:null,mode:"",at:null,onClose:null,onGenerate:null,onInsert:null,onRenderApp:null,onSelect:null,attachments:[]};re();var w=(0,R.createPreviewContainer)(C.parentContainer,{at:C.at}),x=le(),N=x.colorScheme,G=x.isRTL,J=document.createElement("div");document.body.append(J);var de,he=window.elementorFrontend.elements.$window[0].getComputedStyle(window.elementorFrontend.elements.$body[0]),ge=I.default.render(O.default.createElement($.default,{isRTL:G,colorScheme:N},O.default.createElement(j.default,{mode:C.mode,currentContext:{body:{backgroundColor:he.backgroundColor,backgroundImage:he.backgroundImage}},attachmentsTypes:{json:{promptSuggestions:ue,promptPlaceholder:se,previewGenerator:(de=(0,k.default)(S.default.mark((function _callee(i){var C;return S.default.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,(0,W.takeScreenshot)(i);case 2:return C=w.sent,w.abrupt("return",'<img src="'.concat(C,'" />'));case 4:case"end":return w.stop()}}),_callee)}))),function previewGenerator(i){return de.apply(this,arguments)})},url:{promptPlaceholder:se,promptSuggestions:ce}},attachments:C.attachments||[],onClose:function onClose(){var i;w.destroy(),null===(i=C.onClose)||void 0===i||i.call(C),ye(),J.remove(),oe()},onConnect:ie,onGenerate:function onGenerate(){var i;null===(i=C.onGenerate)||void 0===i||i.call(C,{previewContainer:w})},onData:function(){var i=(0,k.default)(S.default.mark((function _callee2(i){var C;return S.default.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,(0,W.takeScreenshot)(i);case 2:return C=w.sent,w.abrupt("return",{screenshot:C,template:i});case 4:case"end":return w.stop()}}),_callee2)})));return function(C){return i.apply(this,arguments)}}(),onSelect:function onSelect(i){var x;null===(x=C.onSelect)||void 0===x||x.call(C),w.setContent(i)},onInsert:C.onInsert,hasPro:elementor.helpers.hasPro()})),J),ye=ge.unmount;null===(i=C.onRenderApp)||void 0===i||i.call(C,{previewContainer:w})};C.importToEditor=function importToEditor(i){var C=i.parentContainer,w=i.at,x=i.template,O=i.historyTitle,S=i.replace,k=void 0!==S&&S,I=(0,N.startHistoryLog)({type:"import",title:O});k&&$e.run("document/elements/delete",{container:C.children.at(w)}),$e.run("document/elements/create",{container:C,model:(0,J.generateIds)(x),options:{at:w,edit:!0}}),I()}},48096:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.startHistoryLog=function startHistoryLog(i){var C=i.type,w=i.title,x=$e.internal("document/history/start-log",{type:C,title:w});return function(){return $e.internal("document/history/end-log",{id:x})}},C.toggleHistory=function toggleHistory(i){elementor.documents.getCurrent().history.setActive(i)}},5389:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.createPreviewContainer=function createPreviewContainer(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=new Map,x=function createIdleContainer(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=createContainer(i,{elType:"container"},C);return w.view.$el.addClass(j),w}(i,C);function getAllContainers(){return[].concat((0,S.default)(w.values()),[x])}return{init:function init(){showContainer(x)},reset:function reset(){deleteContainers((0,S.default)(w.values())),w.clear(),showContainer(x)},setContent:function setContent(x){if(x){if(function hideContainers(i){i.forEach((function(i){i.view.$el.addClass(R)}))}(getAllContainers()),!w.has(x)){var O=createContainer(i,x,C);w.set(x,O)}showContainer(w.get(x))}},destroy:function destroy(){deleteContainers(getAllContainers()),w.clear()}}};var O=x(w(93231)),S=x(w(9833)),k=w(48096);function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){(0,O.default)(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}var I="e-ai-preview-container",R=I+"--hidden",j=I+"--idle";function createContainer(i,C){var w=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,k.toggleHistory)(!1);var x=$e.run("document/elements/create",{container:i,model:_objectSpread(_objectSpread({},C),{},{id:"".concat(I,"-").concat(elementorCommon.helpers.getUniqueId().toString())}),options:_objectSpread(_objectSpread({},w),{},{edit:!1})});return(0,k.toggleHistory)(!0),x.view.$el.addClass(R),x}function showContainer(i){i.view.$el.removeClass(R),setTimeout((function(){i.view.$el[0].scrollIntoView({behavior:"smooth",block:"start"})}))}function deleteContainers(i){(0,k.toggleHistory)(!1),$e.run("document/elements/delete",{containers:i}),(0,k.toggleHistory)(!0)}},24271:(i,C,w)=>{"use strict";var x=w(73203);Object.defineProperty(C,"__esModule",{value:!0}),C.takeScreenshot=void 0;var O=x(w(50824)),S=x(w(9833)),k=x(w(10029)),I=w(62478),R=w(48096),j=w(35879),W=function(){var i=(0,k.default)(O.default.mark((function _callee(i){var C,w,x;return O.default.wrap((function _callee$(O){for(;;)switch(O.prev=O.next){case 0:if(i){O.next=2;break}return O.abrupt("return","");case 2:return(0,R.toggleHistory)(!1),C=createHiddenWrapper(),wrapContainer(w=createContainer(i),C),elementor.getPreviewView().$childViewContainer[0].appendChild(C),O.next=9,waitForContainer(w.id);case 9:if(!i.elements.length){O.next=12;break}return O.next=12,Promise.all(i.elements.map((function(i){return waitForContainer(i.id)})));case 12:return O.prev=12,O.next=15,function toWebp(i){return _toWebp.apply(this,arguments)}(w.view.$el[0],{quality:.01,imagePlaceholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="});case 15:x=O.sent,O.next=21;break;case 18:O.prev=18,O.t0=O.catch(12),x="";case 21:return deleteContainer(w),C.remove(),(0,R.toggleHistory)(!0),O.abrupt("return",x);case 25:case"end":return O.stop()}}),_callee,null,[[12,18]])})));return function takeScreenshot(C){return i.apply(this,arguments)}}();function _toWebp(){return _toWebp=(0,k.default)(O.default.mark((function _callee3(i){var C,w,x,S=arguments;return O.default.wrap((function _callee3$(O){for(;;)switch(O.prev=O.next){case 0:return w=S.length>1&&void 0!==S[1]?S[1]:{},O.next=3,(0,I.toCanvas)(i,w);case 3:return x=O.sent,O.abrupt("return",x.toDataURL("image/webp",null!==(C=w.quality)&&void 0!==C?C:1));case 5:case"end":return O.stop()}}),_callee3)}))),_toWebp.apply(this,arguments)}function createHiddenWrapper(){var i=document.createElement("div");return i.style.position="fixed",i.style.opacity="0",i.style.inset="0",i}function createContainer(i){var C=(0,j.generateIds)(i);return C.id="e-ai-screenshot-container-".concat(C.id),$e.run("document/elements/create",{container:elementor.getPreviewContainer(),model:C,options:{edit:!1}})}function deleteContainer(i){return $e.run("document/elements/delete",{container:i})}function waitForContainer(i){var C=function sleep(i){return new Promise((function(C){return setTimeout(C,i)}))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3),w=new Promise((function(C){elementorFrontend.hooks.addAction("frontend/element_ready/global",function(){var w=(0,k.default)(O.default.mark((function _callee2(w){var x;return O.default.wrap((function _callee2$(O){for(;;)switch(O.prev=O.next){case 0:if(w.data("id")!==i){O.next=5;break}return x=(0,S.default)(w[0].querySelectorAll("img")),O.next=4,Promise.all(x.map(waitForImage));case 4:C();case 5:case"end":return O.stop()}}),_callee2)})));return function(i){return w.apply(this,arguments)}}())}));return Promise.any([C,w])}function waitForImage(i){return i.complete?Promise.resolve():new Promise((function(C){i.addEventListener("load",C),i.addEventListener("error",(function(){i.remove(),C()}))}))}function wrapContainer(i,C){var w=i.view.$el[0];w.parentNode.insertBefore(C,w),C.appendChild(w)}C.takeScreenshot=W},38944:(i,C,w)=>{"use strict";function r(i){var C,w,x="";if("string"==typeof i||"number"==typeof i)x+=i;else if("object"==typeof i)if(Array.isArray(i))for(C=0;C<i.length;C++)i[C]&&(w=r(i[C]))&&(x&&(x+=" "),x+=w);else for(C in i)i[C]&&(x&&(x+=" "),x+=C);return x}function clsx(){for(var i,C,w=0,x="";w<arguments.length;)(i=arguments[w++])&&(C=r(i))&&(x&&(x+=" "),x+=C);return x}w.r(C),w.d(C,{clsx:()=>clsx,default:()=>x});const x=clsx},50229:i=>{"use strict";var C=Object.prototype.hasOwnProperty,w=Object.prototype.toString,x=Object.defineProperty,O=Object.getOwnPropertyDescriptor,S=function isArray(i){return"function"==typeof Array.isArray?Array.isArray(i):"[object Array]"===w.call(i)},k=function isPlainObject(i){if(!i||"[object Object]"!==w.call(i))return!1;var x,O=C.call(i,"constructor"),S=i.constructor&&i.constructor.prototype&&C.call(i.constructor.prototype,"isPrototypeOf");if(i.constructor&&!O&&!S)return!1;for(x in i);return void 0===x||C.call(i,x)},I=function setProperty(i,C){x&&"__proto__"===C.name?x(i,C.name,{enumerable:!0,configurable:!0,value:C.newValue,writable:!0}):i[C.name]=C.newValue},R=function getProperty(i,w){if("__proto__"===w){if(!C.call(i,w))return;if(O)return O(i,w).value}return i[w]};i.exports=function extend(){var i,C,w,x,O,j,W=arguments[0],N=1,G=arguments.length,$=!1;for("boolean"==typeof W&&($=W,W=arguments[1]||{},N=2),(null==W||"object"!=typeof W&&"function"!=typeof W)&&(W={});N<G;++N)if(null!=(i=arguments[N]))for(C in i)w=R(W,C),W!==(x=R(i,C))&&($&&x&&(k(x)||(O=S(x)))?(O?(O=!1,j=w&&S(w)?w:[]):j=w&&k(w)?w:{},I(W,{name:C,newValue:extend($,j,x)})):void 0!==x&&I(W,{name:C,newValue:x}));return W}},55839:(i,C,w)=>{"use strict";var x=w(12097),O={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},S={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},k={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},I={};function getStatics(i){return x.isMemo(i)?k:I[i.$$typeof]||O}I[x.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I[x.Memo]=k;var R=Object.defineProperty,j=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,N=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,$=Object.prototype;i.exports=function hoistNonReactStatics(i,C,w){if("string"!=typeof C){if($){var x=G(C);x&&x!==$&&hoistNonReactStatics(i,x,w)}var O=j(C);W&&(O=O.concat(W(C)));for(var k=getStatics(i),I=getStatics(C),J=0;J<O.length;++J){var re=O[J];if(!(S[re]||w&&w[re]||I&&I[re]||k&&k[re])){var oe=N(C,re);try{R(i,re,oe)}catch(i){}}}}return i}},14173:(i,C)=>{"use strict";var w="function"==typeof Symbol&&Symbol.for,x=w?Symbol.for("react.element"):60103,O=w?Symbol.for("react.portal"):60106,S=w?Symbol.for("react.fragment"):60107,k=w?Symbol.for("react.strict_mode"):60108,I=w?Symbol.for("react.profiler"):60114,R=w?Symbol.for("react.provider"):60109,j=w?Symbol.for("react.context"):60110,W=w?Symbol.for("react.async_mode"):60111,N=w?Symbol.for("react.concurrent_mode"):60111,G=w?Symbol.for("react.forward_ref"):60112,$=w?Symbol.for("react.suspense"):60113,J=w?Symbol.for("react.suspense_list"):60120,re=w?Symbol.for("react.memo"):60115,oe=w?Symbol.for("react.lazy"):60116,ie=w?Symbol.for("react.block"):60121,le=w?Symbol.for("react.fundamental"):60117,ue=w?Symbol.for("react.responder"):60118,ce=w?Symbol.for("react.scope"):60119;function z(i){if("object"==typeof i&&null!==i){var C=i.$$typeof;switch(C){case x:switch(i=i.type){case W:case N:case S:case I:case k:case $:return i;default:switch(i=i&&i.$$typeof){case j:case G:case oe:case re:case R:return i;default:return C}}case O:return C}}}function A(i){return z(i)===N}C.AsyncMode=W,C.ConcurrentMode=N,C.ContextConsumer=j,C.ContextProvider=R,C.Element=x,C.ForwardRef=G,C.Fragment=S,C.Lazy=oe,C.Memo=re,C.Portal=O,C.Profiler=I,C.StrictMode=k,C.Suspense=$,C.isAsyncMode=function(i){return A(i)||z(i)===W},C.isConcurrentMode=A,C.isContextConsumer=function(i){return z(i)===j},C.isContextProvider=function(i){return z(i)===R},C.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===x},C.isForwardRef=function(i){return z(i)===G},C.isFragment=function(i){return z(i)===S},C.isLazy=function(i){return z(i)===oe},C.isMemo=function(i){return z(i)===re},C.isPortal=function(i){return z(i)===O},C.isProfiler=function(i){return z(i)===I},C.isStrictMode=function(i){return z(i)===k},C.isSuspense=function(i){return z(i)===$},C.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===S||i===N||i===I||i===k||i===$||i===J||"object"==typeof i&&null!==i&&(i.$$typeof===oe||i.$$typeof===re||i.$$typeof===R||i.$$typeof===j||i.$$typeof===G||i.$$typeof===le||i.$$typeof===ue||i.$$typeof===ce||i.$$typeof===ie)},C.typeOf=z},12097:(i,C,w)=>{"use strict";i.exports=w(14173)},62478:(i,C,w)=>{"use strict";w.r(C),w.d(C,{getFontEmbedCSS:()=>getFontEmbedCSS,toBlob:()=>toBlob,toCanvas:()=>toCanvas,toJpeg:()=>toJpeg,toPixelData:()=>toPixelData,toPng:()=>toPng,toSvg:()=>toSvg});const x=(()=>{let i=0;return()=>(i+=1,`u${`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4)}${i}`)})();function toArray(i){const C=[];for(let w=0,x=i.length;w<x;w++)C.push(i[w]);return C}function px(i,C){const w=(i.ownerDocument.defaultView||window).getComputedStyle(i).getPropertyValue(C);return w?parseFloat(w.replace("px","")):0}function getImageSize(i,C={}){return{width:C.width||function getNodeWidth(i){const C=px(i,"border-left-width"),w=px(i,"border-right-width");return i.clientWidth+C+w}(i),height:C.height||function getNodeHeight(i){const C=px(i,"border-top-width"),w=px(i,"border-bottom-width");return i.clientHeight+C+w}(i)}}const O=16384;function createImage(i){return new Promise(((C,w)=>{const x=new Image;x.decode=()=>C(x),x.onload=()=>C(x),x.onerror=w,x.crossOrigin="anonymous",x.decoding="async",x.src=i}))}async function nodeToDataURL(i,C,w){const x="http://www.w3.org/2000/svg",O=document.createElementNS(x,"svg"),S=document.createElementNS(x,"foreignObject");return O.setAttribute("width",`${C}`),O.setAttribute("height",`${w}`),O.setAttribute("viewBox",`0 0 ${C} ${w}`),S.setAttribute("width","100%"),S.setAttribute("height","100%"),S.setAttribute("x","0"),S.setAttribute("y","0"),S.setAttribute("externalResourcesRequired","true"),O.appendChild(S),S.appendChild(i),async function svgToDataURL(i){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(i))).then(encodeURIComponent).then((i=>`data:image/svg+xml;charset=utf-8,${i}`))}(O)}const isInstanceOfElement=(i,C)=>{if(i instanceof C)return!0;const w=Object.getPrototypeOf(i);return null!==w&&(w.constructor.name===C.name||isInstanceOfElement(w,C))};function getPseudoElementStyle(i,C,w){const x=`.${i}:${C}`,O=w.cssText?function formatCSSText(i){const C=i.getPropertyValue("content");return`${i.cssText} content: '${C.replace(/'|"/g,"")}';`}(w):function formatCSSProperties(i){return toArray(i).map((C=>`${C}: ${i.getPropertyValue(C)}${i.getPropertyPriority(C)?" !important":""};`)).join(" ")}(w);return document.createTextNode(`${x}{${O}}`)}function clonePseudoElement(i,C,w){const O=window.getComputedStyle(i,w),S=O.getPropertyValue("content");if(""===S||"none"===S)return;const k=x();try{C.className=`${C.className} ${k}`}catch(i){return}const I=document.createElement("style");I.appendChild(getPseudoElementStyle(k,w,O)),C.appendChild(I)}const S="application/font-woff",k="image/jpeg",I={woff:S,woff2:S,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:k,jpeg:k,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function getMimeType(i){const C=function getExtension(i){const C=/\.([^./]*?)$/g.exec(i);return C?C[1]:""}(i).toLowerCase();return I[C]||""}function isDataUrl(i){return-1!==i.search(/^(data:)/)}function makeDataUrl(i,C){return`data:${C};base64,${i}`}async function fetchAsDataURL(i,C,w){const x=await fetch(i,C);if(404===x.status)throw new Error(`Resource "${x.url}" not found`);const O=await x.blob();return new Promise(((i,C)=>{const S=new FileReader;S.onerror=C,S.onloadend=()=>{try{i(w({res:x,result:S.result}))}catch(i){C(i)}},S.readAsDataURL(O)}))}const R={};async function resourceToDataURL(i,C,w){const x=function getCacheKey(i,C,w){let x=i.replace(/\?.*/,"");return w&&(x=i),/ttf|otf|eot|woff2?/i.test(x)&&(x=x.replace(/.*\//,"")),C?`[${C}]${x}`:x}(i,C,w.includeQueryParams);if(null!=R[x])return R[x];let O;w.cacheBust&&(i+=(/\?/.test(i)?"&":"?")+(new Date).getTime());try{const x=await fetchAsDataURL(i,w.fetchRequestInit,(({res:i,result:w})=>(C||(C=i.headers.get("Content-Type")||""),function getContentFromDataUrl(i){return i.split(/,/)[1]}(w))));O=makeDataUrl(x,C)}catch(C){O=w.imagePlaceholder||"";let x=`Failed to fetch resource: ${i}`;C&&(x="string"==typeof C?C:C.message),x&&console.warn(x)}return R[x]=O,O}async function cloneSingleNode(i,C){return isInstanceOfElement(i,HTMLCanvasElement)?async function cloneCanvasElement(i){const C=i.toDataURL();return"data:,"===C?i.cloneNode(!1):createImage(C)}(i):isInstanceOfElement(i,HTMLVideoElement)?async function cloneVideoElement(i,C){if(i.currentSrc){const C=document.createElement("canvas"),w=C.getContext("2d");return C.width=i.clientWidth,C.height=i.clientHeight,null==w||w.drawImage(i,0,0,C.width,C.height),createImage(C.toDataURL())}const w=i.poster,x=getMimeType(w);return createImage(await resourceToDataURL(w,x,C))}(i,C):isInstanceOfElement(i,HTMLIFrameElement)?async function cloneIFrameElement(i){var C;try{if(null===(C=null==i?void 0:i.contentDocument)||void 0===C?void 0:C.body)return await cloneNode(i.contentDocument.body,{},!0)}catch(i){}return i.cloneNode(!1)}(i):i.cloneNode(!1)}const isSlotElement=i=>null!=i.tagName&&"SLOT"===i.tagName.toUpperCase();function decorate(i,C){return isInstanceOfElement(C,Element)&&(!function cloneCSSStyle(i,C){const w=C.style;if(!w)return;const x=window.getComputedStyle(i);x.cssText?(w.cssText=x.cssText,w.transformOrigin=x.transformOrigin):toArray(x).forEach((O=>{let S=x.getPropertyValue(O);if("font-size"===O&&S.endsWith("px")){const i=Math.floor(parseFloat(S.substring(0,S.length-2)))-.1;S=`${i}px`}isInstanceOfElement(i,HTMLIFrameElement)&&"display"===O&&"inline"===S&&(S="block"),"d"===O&&C.getAttribute("d")&&(S=`path(${C.getAttribute("d")})`),w.setProperty(O,S,x.getPropertyPriority(O))}))}(i,C),function clonePseudoElements(i,C){clonePseudoElement(i,C,":before"),clonePseudoElement(i,C,":after")}(i,C),function cloneInputValue(i,C){isInstanceOfElement(i,HTMLTextAreaElement)&&(C.innerHTML=i.value),isInstanceOfElement(i,HTMLInputElement)&&C.setAttribute("value",i.value)}(i,C),function cloneSelectValue(i,C){if(isInstanceOfElement(i,HTMLSelectElement)){const w=C,x=Array.from(w.children).find((C=>i.value===C.getAttribute("value")));x&&x.setAttribute("selected","")}}(i,C)),C}async function cloneNode(i,C,w){return w||!C.filter||C.filter(i)?Promise.resolve(i).then((i=>cloneSingleNode(i,C))).then((w=>async function cloneChildren(i,C,w){var x,O;let S=[];return S=isSlotElement(i)&&i.assignedNodes?toArray(i.assignedNodes()):isInstanceOfElement(i,HTMLIFrameElement)&&(null===(x=i.contentDocument)||void 0===x?void 0:x.body)?toArray(i.contentDocument.body.childNodes):toArray((null!==(O=i.shadowRoot)&&void 0!==O?O:i).childNodes),0===S.length||isInstanceOfElement(i,HTMLVideoElement)||await S.reduce(((i,x)=>i.then((()=>cloneNode(x,w))).then((i=>{i&&C.appendChild(i)}))),Promise.resolve()),C}(i,w,C))).then((C=>decorate(i,C))).then((i=>async function ensureSVGSymbols(i,C){const w=i.querySelectorAll?i.querySelectorAll("use"):[];if(0===w.length)return i;const x={};for(let O=0;O<w.length;O++){const S=w[O].getAttribute("xlink:href");if(S){const w=i.querySelector(S),O=document.querySelector(S);w||!O||x[S]||(x[S]=await cloneNode(O,C,!0))}}const O=Object.values(x);if(O.length){const C="http://www.w3.org/1999/xhtml",w=document.createElementNS(C,"svg");w.setAttribute("xmlns",C),w.style.position="absolute",w.style.width="0",w.style.height="0",w.style.overflow="hidden",w.style.display="none";const x=document.createElementNS(C,"defs");w.appendChild(x);for(let i=0;i<O.length;i++)x.appendChild(O[i]);i.appendChild(w)}return i}(i,C))):null}const j=/url\((['"]?)([^'"]+?)\1\)/g,W=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,N=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function embed_resources_embed(i,C,w,x,O){try{const S=w?function resolveUrl(i,C){if(i.match(/^[a-z]+:\/\//i))return i;if(i.match(/^\/\//))return window.location.protocol+i;if(i.match(/^[a-z]+:/i))return i;const w=document.implementation.createHTMLDocument(),x=w.createElement("base"),O=w.createElement("a");return w.head.appendChild(x),w.body.appendChild(O),C&&(x.href=C),O.href=i,O.href}(C,w):C,k=getMimeType(C);let I;if(O){I=makeDataUrl(await O(S),k)}else I=await resourceToDataURL(S,k,x);return i.replace(function toRegex(i){const C=i.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${C})(['"]?\\))`,"g")}(C),`$1${I}$3`)}catch(i){}return i}function shouldEmbed(i){return-1!==i.search(j)}async function embedResources(i,C,w){if(!shouldEmbed(i))return i;const x=function filterPreferredFontFormat(i,{preferredFontFormat:C}){return C?i.replace(N,(i=>{for(;;){const[w,,x]=W.exec(i)||[];if(!x)return"";if(x===C)return`src: ${w};`}})):i}(i,w),O=function parseURLs(i){const C=[];return i.replace(j,((i,w,x)=>(C.push(x),i))),C.filter((i=>!isDataUrl(i)))}(x);return O.reduce(((i,x)=>i.then((i=>embed_resources_embed(i,x,C,w)))),Promise.resolve(x))}async function embedProp(i,C,w){var x;const O=null===(x=C.style)||void 0===x?void 0:x.getPropertyValue(i);if(O){const x=await embedResources(O,null,w);return C.style.setProperty(i,x,C.style.getPropertyPriority(i)),!0}return!1}async function embedImages(i,C){isInstanceOfElement(i,Element)&&(await async function embedBackground(i,C){await embedProp("background",i,C)||await embedProp("background-image",i,C),await embedProp("mask",i,C)||await embedProp("mask-image",i,C)}(i,C),await async function embedImageNode(i,C){const w=isInstanceOfElement(i,HTMLImageElement);if((!w||isDataUrl(i.src))&&(!isInstanceOfElement(i,SVGImageElement)||isDataUrl(i.href.baseVal)))return;const x=w?i.src:i.href.baseVal,O=await resourceToDataURL(x,getMimeType(x),C);await new Promise(((C,x)=>{i.onload=C,i.onerror=x;const S=i;S.decode&&(S.decode=C),"lazy"===S.loading&&(S.loading="eager"),w?(i.srcset="",i.src=O):i.href.baseVal=O}))}(i,C),await async function embedChildren(i,C){const w=toArray(i.childNodes).map((i=>embedImages(i,C)));await Promise.all(w).then((()=>i))}(i,C))}const G={};async function fetchCSS(i){let C=G[i];if(null!=C)return C;const w=await fetch(i);return C={url:i,cssText:await w.text()},G[i]=C,C}async function embedFonts(i,C){let w=i.cssText;const x=/url\(["']?([^"')]+)["']?\)/g,O=(w.match(/url\([^)]+\)/g)||[]).map((async O=>{let S=O.replace(x,"$1");return S.startsWith("https://")||(S=new URL(S,i.url).href),fetchAsDataURL(S,C.fetchRequestInit,(({result:i})=>(w=w.replace(O,`url(${i})`),[O,i])))}));return Promise.all(O).then((()=>w))}function parseCSS(i){if(null==i)return[];const C=[];let w=i.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const x=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const i=x.exec(w);if(null===i)break;C.push(i[0])}w=w.replace(x,"");const O=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,S=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let i=O.exec(w);if(null===i){if(i=S.exec(w),null===i)break;O.lastIndex=S.lastIndex}else S.lastIndex=O.lastIndex;C.push(i[0])}return C}async function parseWebFontRules(i,C){if(null==i.ownerDocument)throw new Error("Provided element is not within a Document");const w=toArray(i.ownerDocument.styleSheets),x=await async function getCSSRules(i,C){const w=[],x=[];return i.forEach((w=>{if("cssRules"in w)try{toArray(w.cssRules||[]).forEach(((i,O)=>{if(i.type===CSSRule.IMPORT_RULE){let S=O+1;const k=fetchCSS(i.href).then((i=>embedFonts(i,C))).then((i=>parseCSS(i).forEach((i=>{try{w.insertRule(i,i.startsWith("@import")?S+=1:w.cssRules.length)}catch(C){console.error("Error inserting rule from remote css",{rule:i,error:C})}})))).catch((i=>{console.error("Error loading remote css",i.toString())}));x.push(k)}}))}catch(O){const S=i.find((i=>null==i.href))||document.styleSheets[0];null!=w.href&&x.push(fetchCSS(w.href).then((i=>embedFonts(i,C))).then((i=>parseCSS(i).forEach((i=>{S.insertRule(i,w.cssRules.length)})))).catch((i=>{console.error("Error loading remote stylesheet",i)}))),console.error("Error inlining remote css file",O)}})),Promise.all(x).then((()=>(i.forEach((i=>{if("cssRules"in i)try{toArray(i.cssRules||[]).forEach((i=>{w.push(i)}))}catch(C){console.error(`Error while reading CSS rules from ${i.href}`,C)}})),w)))}(w,C);return function getWebFontRules(i){return i.filter((i=>i.type===CSSRule.FONT_FACE_RULE)).filter((i=>shouldEmbed(i.style.getPropertyValue("src"))))}(x)}async function getWebFontCSS(i,C){const w=await parseWebFontRules(i,C);return(await Promise.all(w.map((i=>{const w=i.parentStyleSheet?i.parentStyleSheet.href:null;return embedResources(i.cssText,w,C)})))).join("\n")}async function toSvg(i,C={}){const{width:w,height:x}=getImageSize(i,C),O=await cloneNode(i,C,!0);await async function embedWebFonts(i,C){const w=null!=C.fontEmbedCSS?C.fontEmbedCSS:C.skipFonts?null:await getWebFontCSS(i,C);if(w){const C=document.createElement("style"),x=document.createTextNode(w);C.appendChild(x),i.firstChild?i.insertBefore(C,i.firstChild):i.appendChild(C)}}(O,C),await embedImages(O,C),function applyStyle(i,C){const{style:w}=i;C.backgroundColor&&(w.backgroundColor=C.backgroundColor),C.width&&(w.width=`${C.width}px`),C.height&&(w.height=`${C.height}px`);const x=C.style;return null!=x&&Object.keys(x).forEach((i=>{w[i]=x[i]})),i}(O,C);return await nodeToDataURL(O,w,x)}async function toCanvas(i,C={}){const{width:w,height:x}=getImageSize(i,C),S=await toSvg(i,C),k=await createImage(S),I=document.createElement("canvas"),R=I.getContext("2d"),j=C.pixelRatio||function getPixelRatio(){let i,C;try{C=process}catch(i){}const w=C&&C.env?C.env.devicePixelRatio:null;return w&&(i=parseInt(w,10),Number.isNaN(i)&&(i=1)),i||window.devicePixelRatio||1}(),W=C.canvasWidth||w,N=C.canvasHeight||x;return I.width=W*j,I.height=N*j,C.skipAutoScale||function checkCanvasDimensions(i){(i.width>O||i.height>O)&&(i.width>O&&i.height>O?i.width>i.height?(i.height*=O/i.width,i.width=O):(i.width*=O/i.height,i.height=O):i.width>O?(i.height*=O/i.width,i.width=O):(i.width*=O/i.height,i.height=O))}(I),I.style.width=`${W}`,I.style.height=`${N}`,C.backgroundColor&&(R.fillStyle=C.backgroundColor,R.fillRect(0,0,I.width,I.height)),R.drawImage(k,0,0,I.width,I.height),I}async function toPixelData(i,C={}){const{width:w,height:x}=getImageSize(i,C);return(await toCanvas(i,C)).getContext("2d").getImageData(0,0,w,x).data}async function toPng(i,C={}){return(await toCanvas(i,C)).toDataURL()}async function toJpeg(i,C={}){return(await toCanvas(i,C)).toDataURL("image/jpeg",C.quality||1)}async function toBlob(i,C={}){const w=await toCanvas(i,C),x=await function canvasToBlob(i,C={}){return i.toBlob?new Promise((w=>{i.toBlob(w,C.type?C.type:"image/png",C.quality?C.quality:1)})):new Promise((w=>{const x=window.atob(i.toDataURL(C.type?C.type:void 0,C.quality?C.quality:void 0).split(",")[1]),O=x.length,S=new Uint8Array(O);for(let i=0;i<O;i+=1)S[i]=x.charCodeAt(i);w(new Blob([S],{type:C.type?C.type:"image/png"}))}))}(w);return x}async function getFontEmbedCSS(i,C={}){return getWebFontCSS(i,C)}},3812:i=>{var C=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,w=/\n/g,x=/^\s*/,O=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,S=/^:\s*/,k=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I=/^[;\s]*/,R=/^\s+|\s+$/g,j="";function trim(i){return i?i.replace(R,j):j}i.exports=function(i,R){if("string"!=typeof i)throw new TypeError("First argument must be a string");if(!i)return[];R=R||{};var W=1,N=1;function updatePosition(i){var C=i.match(w);C&&(W+=C.length);var x=i.lastIndexOf("\n");N=~x?i.length-x:N+i.length}function position(){var i={line:W,column:N};return function(C){return C.position=new Position(i),whitespace(),C}}function Position(i){this.start=i,this.end={line:W,column:N},this.source=R.source}Position.prototype.content=i;var G=[];function error(C){var w=new Error(R.source+":"+W+":"+N+": "+C);if(w.reason=C,w.filename=R.source,w.line=W,w.column=N,w.source=i,!R.silent)throw w;G.push(w)}function match(C){var w=C.exec(i);if(w){var x=w[0];return updatePosition(x),i=i.slice(x.length),w}}function whitespace(){match(x)}function comments(i){var C;for(i=i||[];C=comment();)!1!==C&&i.push(C);return i}function comment(){var C=position();if("/"==i.charAt(0)&&"*"==i.charAt(1)){for(var w=2;j!=i.charAt(w)&&("*"!=i.charAt(w)||"/"!=i.charAt(w+1));)++w;if(w+=2,j===i.charAt(w-1))return error("End of comment missing");var x=i.slice(2,w-2);return N+=2,updatePosition(x),i=i.slice(w),N+=2,C({type:"comment",comment:x})}}function declaration(){var i=position(),w=match(O);if(w){if(comment(),!match(S))return error("property missing ':'");var x=match(k),R=i({type:"declaration",property:trim(w[0].replace(C,j)),value:x?trim(x[0].replace(C,j)):j});return match(I),R}}return whitespace(),function declarations(){var i,C=[];for(comments(C);i=declaration();)!1!==i&&(C.push(i),comments(C));return C}()}},48809:i=>{i.exports=function isBuffer(i){return null!=i&&null!=i.constructor&&"function"==typeof i.constructor.isBuffer&&i.constructor.isBuffer(i)}},58772:(i,C,w)=>{"use strict";var x=w(90331);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,i.exports=function(){function shim(i,C,w,O,S,k){if(k!==x){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}}function getShim(){return shim}shim.isRequired=shim;var i={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return i.PropTypes=i,i}},23615:(i,C,w)=>{i.exports=w(58772)()},90331:i=>{"use strict";i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},78462:function(i,C,w){i.exports=function(i,C){"use strict";function o(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var w=o(i),x=o(C);function r(i,C){for(var w=0;w<C.length;w++){var x=C[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(i,x.key,x)}}function s(i,C,w){return C in i?Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):i[C]=w,i}function u(){return(u=Object.assign||function(i){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(i[x]=w[x])}return i}).apply(this,arguments)}function a(i,C){var w,x=Object.keys(i);return Object.getOwnPropertySymbols&&(w=Object.getOwnPropertySymbols(i),C&&(w=w.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),x.push.apply(x,w)),x}function y(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?a(Object(w),!0).forEach((function(C){s(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):a(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}function h(i){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)})(i)}function c(i,C){return(c=Object.setPrototypeOf||function(i,C){return i.__proto__=C,i})(i,C)}function l(i,C){if(null==i)return{};var w,x=function(i,C){if(null==i)return{};for(var w,x={},O=Object.keys(i),S=0;S<O.length;S++)w=O[S],0<=C.indexOf(w)||(x[w]=i[w]);return x}(i,C);if(Object.getOwnPropertySymbols)for(var O=Object.getOwnPropertySymbols(i),S=0;S<O.length;S++)w=O[S],0<=C.indexOf(w)||Object.prototype.propertyIsEnumerable.call(i,w)&&(x[w]=i[w]);return x}function d(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function p(i){var C=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(i){return!1}}();return function(){var w,x,O=h(i);return!(x=C?(w=h(this).constructor,Reflect.construct(O,arguments,w)):O.apply(this,arguments))||"object"!=typeof x&&"function"!=typeof x?d(this):x}}function m(i,C){return function(i){if(Array.isArray(i))return i}(i)||function(i,C){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(i)){var w=[],x=!0,O=!1,S=void 0;try{for(var k,I=i[Symbol.iterator]();!(x=(k=I.next()).done)&&(w.push(k.value),!C||w.length!==C);x=!0);}catch(i){O=!0,S=i}finally{try{x||null==I.return||I.return()}finally{if(O)throw S}}return w}}(i,C)||g(i,C)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(i,C){if(i){if("string"==typeof i)return f(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);return"Object"===w&&i.constructor&&(w=i.constructor.name),"Map"===w||"Set"===w?Array.from(i):"Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?f(i,C):void 0}}function f(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x}function v(i,C){return new Promise((function(w,x){var O,S=new Image;S.onload=function(){return w(S)},S.onerror=x,0==(null!==(O=i)&&!!O.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&C&&(S.crossOrigin=C),S.src=i}))}var O,S=!("undefined"==typeof window||"undefined"==typeof navigator||!("ontouchstart"in window||0<navigator.msMaxTouchPoints)),k="undefined"!=typeof File,I={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},R=S?I.touch:I.desktop,j="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,W={x:.5,y:.5},N=function(){!function(i,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(C&&C.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),C&&c(i,C)}(a,x.default.Component);var i,C,w,O=p(a);function a(i){var C;return function(i,C){if(!(i instanceof C))throw new TypeError("Cannot call a class as a function")}(this,a),s(d(C=O.call(this,i)),"state",{drag:!1,my:null,mx:null,image:W}),s(d(C),"handleImageReady",(function(i){var w=C.getInitialSize(i.width,i.height);w.resource=i,w.x=.5,w.y=.5,w.backgroundColor=C.props.backgroundColor,C.setState({drag:!1,image:w},C.props.onImageReady),C.props.onLoadSuccess(w)})),s(d(C),"clearImage",(function(){C.canvas.getContext("2d").clearRect(0,0,C.canvas.width,C.canvas.height),C.setState({image:W})})),s(d(C),"handleMouseDown",(function(i){(i=i||window.event).preventDefault(),C.setState({drag:!0,mx:null,my:null})})),s(d(C),"handleMouseUp",(function(){C.state.drag&&(C.setState({drag:!1}),C.props.onMouseUp())})),s(d(C),"handleMouseMove",(function(i){var w,x,O,S,k,I,R,j,W,N,G,$,J,re,oe,ie;i=i||window.event,!1!==C.state.drag&&(i.preventDefault(),O={mx:w=i.targetTouches?i.targetTouches[0].pageX:i.clientX,my:x=i.targetTouches?i.targetTouches[0].pageY:i.clientY},ie=C.props.rotate,ie=(ie%=360)<0?ie+360:ie,C.state.mx&&C.state.my&&(S=C.state.mx-w,k=C.state.my-x,I=C.state.image.width*C.props.scale,R=C.state.image.height*C.props.scale,W=(j=C.getCroppingRect()).x,N=j.y,W*=I,N*=R,G=function(i){return i*(Math.PI/180)},$=Math.cos(G(ie)),re=N+-S*(J=Math.sin(G(ie)))+k*$,oe={x:(W+S*$+k*J)/I+1/C.props.scale*C.getXScale()/2,y:re/R+1/C.props.scale*C.getYScale()/2},C.props.onPositionChange(oe),O.image=y(y({},C.state.image),oe)),C.setState(O),C.props.onMouseMove(i))})),s(d(C),"setCanvas",(function(i){C.canvas=i})),C.canvas=null,C}return i=a,(C=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(j=1);var i,C,w=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(w),document&&(i=!!function(){var i=!1;try{var C=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(C){i=!1}return i}()&&{passive:!1},C=R.native,document.addEventListener(C.move,this.handleMouseMove,i),document.addEventListener(C.up,this.handleMouseUp,i),S&&(document.addEventListener(C.mouseMove,this.handleMouseMove,i),document.addEventListener(C.mouseUp,this.handleMouseUp,i)))}},{key:"componentDidUpdate",value:function(i,C){this.props.image&&this.props.image!==i.image||this.props.width!==i.width||this.props.height!==i.height||this.props.backgroundColor!==i.backgroundColor?this.loadImage(this.props.image):this.props.image||C.image===W||this.clearImage();var w=this.canvas.getContext("2d");w.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(w),this.paintImage(w,this.state.image,this.props.border),i.image===this.props.image&&i.width===this.props.width&&i.height===this.props.height&&i.position===this.props.position&&i.scale===this.props.scale&&i.rotate===this.props.rotate&&C.my===this.state.my&&C.mx===this.state.mx&&C.image.x===this.state.image.x&&C.image.y===this.state.image.y&&C.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var i;document&&(i=R.native,document.removeEventListener(i.move,this.handleMouseMove,!1),document.removeEventListener(i.up,this.handleMouseUp,!1),S&&(document.removeEventListener(i.mouseMove,this.handleMouseMove,!1),document.removeEventListener(i.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(i){var C=0<arguments.length&&void 0!==i?i:this.props.border;return Array.isArray(C)?C:[C,C]}},{key:"getDimensions",value:function(){var i=this.props,C=i.width,w=i.height,x=i.rotate,O=i.border,S={},k=m(this.getBorders(O),2),I=k[0],R=k[1],j=C,W=w;return this.isVertical()?(S.width=W,S.height=j):(S.width=j,S.height=W),S.width+=2*I,S.height+=2*R,{canvas:S,rotate:x,width:C,height:w,border:O}}},{key:"getImage",value:function(){var i=this.getCroppingRect(),C=this.state.image;i.x*=C.resource.width,i.y*=C.resource.height,i.width*=C.resource.width,i.height*=C.resource.height;var w=document.createElement("canvas");this.isVertical()?(w.width=i.height,w.height=i.width):(w.width=i.width,w.height=i.height);var x=w.getContext("2d");return x.translate(w.width/2,w.height/2),x.rotate(this.props.rotate*Math.PI/180),x.translate(-w.width/2,-w.height/2),this.isVertical()&&x.translate((w.width-w.height)/2,(w.height-w.width)/2),C.backgroundColor&&(x.fillStyle=C.backgroundColor,x.fillRect(-i.x,-i.y,C.resource.width,C.resource.height)),x.drawImage(C.resource,-i.x,-i.y),w}},{key:"getImageScaledToCanvas",value:function(){var i=this.getDimensions(),C=i.width,w=i.height,x=document.createElement("canvas");return this.isVertical()?(x.width=w,x.height=C):(x.width=C,x.height=w),this.paintImage(x.getContext("2d"),this.state.image,0,1),x}},{key:"getXScale",value:function(){var i=this.props.width/this.props.height,C=this.state.image.width/this.state.image.height;return Math.min(1,i/C)}},{key:"getYScale",value:function(){var i=this.props.height/this.props.width,C=this.state.image.height/this.state.image.width;return Math.min(1,i/C)}},{key:"getCroppingRect",value:function(){var i=this.props.position||{x:this.state.image.x,y:this.state.image.y},C=1/this.props.scale*this.getXScale(),w=1/this.props.scale*this.getYScale(),x={x:i.x-C/2,y:i.y-w/2,width:C,height:w},O=0,S=1-x.width,k=0,I=1-x.height;return(this.props.disableBoundaryChecks||1<C||1<w)&&(O=-x.width,k=-x.height,I=S=1),y(y({},x),{},{x:Math.max(O,Math.min(x.x,S)),y:Math.max(k,Math.min(x.y,I))})}},{key:"loadImage",value:function(i){var C;k&&i instanceof File?this.loadingImage=(C=i,new Promise((function(i,w){var x=new FileReader;x.onload=function(C){try{var x=v(C.target.result);i(x)}catch(C){w(C)}},x.readAsDataURL(C)})).then(this.handleImageReady).catch(this.props.onLoadFailure)):"string"==typeof i&&(this.loadingImage=v(i,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(i,C){var w,x,O=this.getDimensions();return C/i<O.height/O.width?x=i*((w=this.getDimensions().height)/C):w=C*((x=this.getDimensions().width)/i),{height:w,width:x}}},{key:"paintImage",value:function(i,C,w,x){var O,S=3<arguments.length&&void 0!==x?x:j;C.resource&&(O=this.calculatePosition(C,w),i.save(),i.translate(i.canvas.width/2,i.canvas.height/2),i.rotate(this.props.rotate*Math.PI/180),i.translate(-i.canvas.width/2,-i.canvas.height/2),this.isVertical()&&i.translate((i.canvas.width-i.canvas.height)/2,(i.canvas.height-i.canvas.width)/2),i.scale(S,S),i.globalCompositeOperation="destination-over",i.drawImage(C.resource,O.x,O.y,O.width,O.height),C.backgroundColor&&(i.fillStyle=C.backgroundColor,i.fillRect(O.x,O.y,O.width,O.height)),i.restore())}},{key:"calculatePosition",value:function(i,C){i=i||this.state.image;var w=m(this.getBorders(C),2),x=w[0],O=w[1],S=this.getCroppingRect(),k=i.width*this.props.scale,I=i.height*this.props.scale,R=-S.x*k,j=-S.y*I;return this.isVertical()?(R+=O,j+=x):(R+=x,j+=O),{x:R,y:j,height:I,width:k}}},{key:"paint",value:function(i){i.save(),i.scale(j,j),i.translate(0,0),i.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var C,w,x,O,S,k,I,R,W=this.props.borderRadius,N=this.getDimensions(),G=m(this.getBorders(N.border),2),$=G[0],J=G[1],re=N.canvas.height,oe=N.canvas.width;W=Math.max(W,0),W=Math.min(W,oe/2-$,re/2-J),i.beginPath(),C=i,O=oe-2*(w=$),S=re-2*(x=J),0===(k=W)?C.rect(w,x,O,S):(I=O-k,R=S-k,C.translate(w,x),C.arc(k,k,k,Math.PI,1.5*Math.PI),C.lineTo(I,0),C.arc(I,k,k,1.5*Math.PI,2*Math.PI),C.lineTo(O,R),C.arc(I,R,k,2*Math.PI,.5*Math.PI),C.lineTo(k,S),C.arc(k,R,k,.5*Math.PI,Math.PI),C.translate(-w,-x)),i.rect(oe,0,-oe,re),i.fill("evenodd"),i.restore()}},{key:"render",value:function(){var i=this.props,C=(i.scale,i.rotate,i.image,i.border,i.borderRadius,i.width,i.height,i.position,i.color,i.backgroundColor,i.style),w=(i.crossOrigin,i.onLoadFailure,i.onLoadSuccess,i.onImageReady,i.onImageChange,i.onMouseUp,i.onMouseMove,i.onPositionChange,i.disableBoundaryChecks,i.disableHiDPIScaling,i.disableCanvasRotation,l(i,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),O=this.getDimensions(),k={width:O.canvas.width,height:O.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},I={width:O.canvas.width*j,height:O.canvas.height*j,style:y(y({},k),C)};return I[R.react.down]=this.handleMouseDown,S&&(I[R.react.mouseDown]=this.handleMouseDown),x.default.createElement("canvas",u({ref:this.setCanvas},I,w))}}])&&r(i.prototype,C),w&&r(i,w),a}();return s(N,"propTypes",{scale:w.default.number,rotate:w.default.number,image:w.default.oneOfType([w.default.string].concat(function(i){if(Array.isArray(i))return f(i)}(O=k?[w.default.instanceOf(File)]:[])||function(i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(i))return Array.from(i)}(O)||g(O)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),border:w.default.oneOfType([w.default.number,w.default.arrayOf(w.default.number)]),borderRadius:w.default.number,width:w.default.number,height:w.default.number,position:w.default.shape({x:w.default.number,y:w.default.number}),color:w.default.arrayOf(w.default.number),backgroundColor:w.default.string,crossOrigin:w.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:w.default.func,onLoadSuccess:w.default.func,onImageReady:w.default.func,onImageChange:w.default.func,onMouseUp:w.default.func,onMouseMove:w.default.func,onPositionChange:w.default.func,disableBoundaryChecks:w.default.bool,disableHiDPIScaling:w.default.bool,disableCanvasRotation:w.default.bool}),s(N,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),N}(w(23615),w(87363))},37634:(i,C,w)=>{"use strict";var x=w(61533);C.createRoot=x.createRoot,C.hydrateRoot=x.hydrateRoot},55322:(i,C,w)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"DraggableCore",{enumerable:!0,get:function get(){return W.default}}),C.default=void 0;var x=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in i)if("default"!==S&&Object.prototype.hasOwnProperty.call(i,S)){var k=O?Object.getOwnPropertyDescriptor(i,S):null;k&&(k.get||k.set)?Object.defineProperty(x,S,k):x[S]=i[S]}x.default=i,w&&w.set(i,x);return x}(w(87363)),O=_interopRequireDefault(w(23615)),S=_interopRequireDefault(w(61533)),k=_interopRequireDefault(w(38944)),I=w(88065),R=w(39237),j=w(70972),W=_interopRequireDefault(w(50700)),N=_interopRequireDefault(w(73936)),G=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _extends(){return _extends=Object.assign||function(i){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(i[x]=w[x])}return i},_extends.apply(this,arguments)}function _objectWithoutProperties(i,C){if(null==i)return{};var w,x,O=function _objectWithoutPropertiesLoose(i,C){if(null==i)return{};var w,x,O={},S=Object.keys(i);for(x=0;x<S.length;x++)w=S[x],C.indexOf(w)>=0||(O[w]=i[w]);return O}(i,C);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(i);for(x=0;x<S.length;x++)w=S[x],C.indexOf(w)>=0||Object.prototype.propertyIsEnumerable.call(i,w)&&(O[w]=i[w])}return O}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){_defineProperty(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}function _slicedToArray(i,C){return function _arrayWithHoles(i){if(Array.isArray(i))return i}(i)||function _iterableToArrayLimit(i,C){var w=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null==w)return;var x,O,S=[],k=!0,I=!1;try{for(w=w.call(i);!(k=(x=w.next()).done)&&(S.push(x.value),!C||S.length!==C);k=!0);}catch(i){I=!0,O=i}finally{try{k||null==w.return||w.return()}finally{if(I)throw O}}return S}(i,C)||function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i,C)||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(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x}function _defineProperties(i,C){for(var w=0;w<C.length;w++){var x=C[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(i,x.key,x)}}function _setPrototypeOf(i,C){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(i,C){return i.__proto__=C,i},_setPrototypeOf(i,C)}function _createSuper(i){var C=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(i){return!1}}();return function _createSuperInternal(){var w,x=_getPrototypeOf(i);if(C){var O=_getPrototypeOf(this).constructor;w=Reflect.construct(x,arguments,O)}else w=x.apply(this,arguments);return function _possibleConstructorReturn(i,C){if(C&&("object"===_typeof(C)||"function"==typeof C))return C;if(void 0!==C)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(i)}(this,w)}}function _assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _getPrototypeOf(i){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(i){return i.__proto__||Object.getPrototypeOf(i)},_getPrototypeOf(i)}function _defineProperty(i,C,w){return C in i?Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):i[C]=w,i}var $=function(i){!function _inherits(i,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(C&&C.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),C&&_setPrototypeOf(i,C)}(Draggable,i);var C=_createSuper(Draggable);function Draggable(i){var w;return function _classCallCheck(i,C){if(!(i instanceof C))throw new TypeError("Cannot call a class as a function")}(this,Draggable),_defineProperty(_assertThisInitialized(w=C.call(this,i)),"onDragStart",(function(i,C){if((0,N.default)("Draggable: onDragStart: %j",C),!1===w.props.onStart(i,(0,R.createDraggableData)(_assertThisInitialized(w),C)))return!1;w.setState({dragging:!0,dragged:!0})})),_defineProperty(_assertThisInitialized(w),"onDrag",(function(i,C){if(!w.state.dragging)return!1;(0,N.default)("Draggable: onDrag: %j",C);var x=(0,R.createDraggableData)(_assertThisInitialized(w),C),O={x:x.x,y:x.y};if(w.props.bounds){var S=O.x,k=O.y;O.x+=w.state.slackX,O.y+=w.state.slackY;var I=_slicedToArray((0,R.getBoundPosition)(_assertThisInitialized(w),O.x,O.y),2),j=I[0],W=I[1];O.x=j,O.y=W,O.slackX=w.state.slackX+(S-O.x),O.slackY=w.state.slackY+(k-O.y),x.x=O.x,x.y=O.y,x.deltaX=O.x-w.state.x,x.deltaY=O.y-w.state.y}if(!1===w.props.onDrag(i,x))return!1;w.setState(O)})),_defineProperty(_assertThisInitialized(w),"onDragStop",(function(i,C){if(!w.state.dragging)return!1;if(!1===w.props.onStop(i,(0,R.createDraggableData)(_assertThisInitialized(w),C)))return!1;(0,N.default)("Draggable: onDragStop: %j",C);var x={dragging:!1,slackX:0,slackY:0};if(Boolean(w.props.position)){var O=w.props.position,S=O.x,k=O.y;x.x=S,x.y=k}w.setState(x)})),w.state={dragging:!1,dragged:!1,x:i.position?i.position.x:i.defaultPosition.x,y:i.position?i.position.y:i.defaultPosition.y,prevPropsPosition:_objectSpread({},i.position),slackX:0,slackY:0,isElementSVG:!1},!i.position||i.onDrag||i.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),w}return function _createClass(i,C,w){return C&&_defineProperties(i.prototype,C),w&&_defineProperties(i,w),Object.defineProperty(i,"prototype",{writable:!1}),i}(Draggable,[{key:"componentDidMount",value:function componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function findDOMNode(){var i,C,w;return null!==(i=null===(C=this.props)||void 0===C||null===(w=C.nodeRef)||void 0===w?void 0:w.current)&&void 0!==i?i:S.default.findDOMNode(this)}},{key:"render",value:function render(){var i,C=this.props,w=(C.axis,C.bounds,C.children),O=C.defaultPosition,S=C.defaultClassName,j=C.defaultClassNameDragging,N=C.defaultClassNameDragged,$=C.position,J=C.positionOffset,re=(C.scale,_objectWithoutProperties(C,G)),oe={},ie=null,le=!Boolean($)||this.state.dragging,ue=$||O,ce={x:(0,R.canDragX)(this)&&le?this.state.x:ue.x,y:(0,R.canDragY)(this)&&le?this.state.y:ue.y};this.state.isElementSVG?ie=(0,I.createSVGTransform)(ce,J):oe=(0,I.createCSSTransform)(ce,J);var se=(0,k.default)(w.props.className||"",S,(_defineProperty(i={},j,this.state.dragging),_defineProperty(i,N,this.state.dragged),i));return x.createElement(W.default,_extends({},re,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),x.cloneElement(x.Children.only(w),{className:se,style:_objectSpread(_objectSpread({},w.props.style),oe),transform:ie}))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(i,C){var w=i.position,x=C.prevPropsPosition;return!w||x&&w.x===x.x&&w.y===x.y?null:((0,N.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:x}),{x:w.x,y:w.y,prevPropsPosition:_objectSpread({},w)})}}]),Draggable}(x.Component);C.default=$,_defineProperty($,"displayName","Draggable"),_defineProperty($,"propTypes",_objectSpread(_objectSpread({},W.default.propTypes),{},{axis:O.default.oneOf(["both","x","y","none"]),bounds:O.default.oneOfType([O.default.shape({left:O.default.number,right:O.default.number,top:O.default.number,bottom:O.default.number}),O.default.string,O.default.oneOf([!1])]),defaultClassName:O.default.string,defaultClassNameDragging:O.default.string,defaultClassNameDragged:O.default.string,defaultPosition:O.default.shape({x:O.default.number,y:O.default.number}),positionOffset:O.default.shape({x:O.default.oneOfType([O.default.number,O.default.string]),y:O.default.oneOfType([O.default.number,O.default.string])}),position:O.default.shape({x:O.default.number,y:O.default.number}),className:j.dontSetMe,style:j.dontSetMe,transform:j.dontSetMe})),_defineProperty($,"defaultProps",_objectSpread(_objectSpread({},W.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},50700:(i,C,w)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var x=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in i)if("default"!==S&&Object.prototype.hasOwnProperty.call(i,S)){var k=O?Object.getOwnPropertyDescriptor(i,S):null;k&&(k.get||k.set)?Object.defineProperty(x,S,k):x[S]=i[S]}x.default=i,w&&w.set(i,x);return x}(w(87363)),O=_interopRequireDefault(w(23615)),S=_interopRequireDefault(w(61533)),k=w(88065),I=w(39237),R=w(70972),j=_interopRequireDefault(w(73936));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function _slicedToArray(i,C){return function _arrayWithHoles(i){if(Array.isArray(i))return i}(i)||function _iterableToArrayLimit(i,C){var w=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null==w)return;var x,O,S=[],k=!0,I=!1;try{for(w=w.call(i);!(k=(x=w.next()).done)&&(S.push(x.value),!C||S.length!==C);k=!0);}catch(i){I=!0,O=i}finally{try{k||null==w.return||w.return()}finally{if(I)throw O}}return S}(i,C)||function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i,C)||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(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x}function _defineProperties(i,C){for(var w=0;w<C.length;w++){var x=C[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(i,x.key,x)}}function _setPrototypeOf(i,C){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(i,C){return i.__proto__=C,i},_setPrototypeOf(i,C)}function _createSuper(i){var C=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(i){return!1}}();return function _createSuperInternal(){var w,x=_getPrototypeOf(i);if(C){var O=_getPrototypeOf(this).constructor;w=Reflect.construct(x,arguments,O)}else w=x.apply(this,arguments);return function _possibleConstructorReturn(i,C){if(C&&("object"===_typeof(C)||"function"==typeof C))return C;if(void 0!==C)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(i)}(this,w)}}function _assertThisInitialized(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _getPrototypeOf(i){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(i){return i.__proto__||Object.getPrototypeOf(i)},_getPrototypeOf(i)}function _defineProperty(i,C,w){return C in i?Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):i[C]=w,i}var W={start:"touchstart",move:"touchmove",stop:"touchend"},N={start:"mousedown",move:"mousemove",stop:"mouseup"},G=N,$=function(i){!function _inherits(i,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(C&&C.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),C&&_setPrototypeOf(i,C)}(DraggableCore,i);var C=_createSuper(DraggableCore);function DraggableCore(){var i;!function _classCallCheck(i,C){if(!(i instanceof C))throw new TypeError("Cannot call a class as a function")}(this,DraggableCore);for(var w=arguments.length,x=new Array(w),O=0;O<w;O++)x[O]=arguments[O];return _defineProperty(_assertThisInitialized(i=C.call.apply(C,[this].concat(x))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),_defineProperty(_assertThisInitialized(i),"mounted",!1),_defineProperty(_assertThisInitialized(i),"handleDragStart",(function(C){if(i.props.onMouseDown(C),!i.props.allowAnyClick&&"number"==typeof C.button&&0!==C.button)return!1;var w=i.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var x=w.ownerDocument;if(!(i.props.disabled||!(C.target instanceof x.defaultView.Node)||i.props.handle&&!(0,k.matchesSelectorAndParentsTo)(C.target,i.props.handle,w)||i.props.cancel&&(0,k.matchesSelectorAndParentsTo)(C.target,i.props.cancel,w))){"touchstart"===C.type&&C.preventDefault();var O=(0,k.getTouchIdentifier)(C);i.setState({touchIdentifier:O});var S=(0,I.getControlPosition)(C,O,_assertThisInitialized(i));if(null!=S){var R=S.x,W=S.y,N=(0,I.createCoreData)(_assertThisInitialized(i),R,W);(0,j.default)("DraggableCore: handleDragStart: %j",N),(0,j.default)("calling",i.props.onStart),!1!==i.props.onStart(C,N)&&!1!==i.mounted&&(i.props.enableUserSelectHack&&(0,k.addUserSelectStyles)(x),i.setState({dragging:!0,lastX:R,lastY:W}),(0,k.addEvent)(x,G.move,i.handleDrag),(0,k.addEvent)(x,G.stop,i.handleDragStop))}}})),_defineProperty(_assertThisInitialized(i),"handleDrag",(function(C){var w=(0,I.getControlPosition)(C,i.state.touchIdentifier,_assertThisInitialized(i));if(null!=w){var x=w.x,O=w.y;if(Array.isArray(i.props.grid)){var S=x-i.state.lastX,k=O-i.state.lastY,R=_slicedToArray((0,I.snapToGrid)(i.props.grid,S,k),2);if(S=R[0],k=R[1],!S&&!k)return;x=i.state.lastX+S,O=i.state.lastY+k}var W=(0,I.createCoreData)(_assertThisInitialized(i),x,O);if((0,j.default)("DraggableCore: handleDrag: %j",W),!1!==i.props.onDrag(C,W)&&!1!==i.mounted)i.setState({lastX:x,lastY:O});else try{i.handleDragStop(new MouseEvent("mouseup"))}catch(C){var N=document.createEvent("MouseEvents");N.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.handleDragStop(N)}}})),_defineProperty(_assertThisInitialized(i),"handleDragStop",(function(C){if(i.state.dragging){var w=(0,I.getControlPosition)(C,i.state.touchIdentifier,_assertThisInitialized(i));if(null!=w){var x=w.x,O=w.y;if(Array.isArray(i.props.grid)){var S=x-i.state.lastX||0,R=O-i.state.lastY||0,W=_slicedToArray((0,I.snapToGrid)(i.props.grid,S,R),2);S=W[0],R=W[1],x=i.state.lastX+S,O=i.state.lastY+R}var N=(0,I.createCoreData)(_assertThisInitialized(i),x,O);if(!1===i.props.onStop(C,N)||!1===i.mounted)return!1;var $=i.findDOMNode();$&&i.props.enableUserSelectHack&&(0,k.removeUserSelectStyles)($.ownerDocument),(0,j.default)("DraggableCore: handleDragStop: %j",N),i.setState({dragging:!1,lastX:NaN,lastY:NaN}),$&&((0,j.default)("DraggableCore: Removing handlers"),(0,k.removeEvent)($.ownerDocument,G.move,i.handleDrag),(0,k.removeEvent)($.ownerDocument,G.stop,i.handleDragStop))}}})),_defineProperty(_assertThisInitialized(i),"onMouseDown",(function(C){return G=N,i.handleDragStart(C)})),_defineProperty(_assertThisInitialized(i),"onMouseUp",(function(C){return G=N,i.handleDragStop(C)})),_defineProperty(_assertThisInitialized(i),"onTouchStart",(function(C){return G=W,i.handleDragStart(C)})),_defineProperty(_assertThisInitialized(i),"onTouchEnd",(function(C){return G=W,i.handleDragStop(C)})),i}return function _createClass(i,C,w){return C&&_defineProperties(i.prototype,C),w&&_defineProperties(i,w),Object.defineProperty(i,"prototype",{writable:!1}),i}(DraggableCore,[{key:"componentDidMount",value:function componentDidMount(){this.mounted=!0;var i=this.findDOMNode();i&&(0,k.addEvent)(i,W.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.mounted=!1;var i=this.findDOMNode();if(i){var C=i.ownerDocument;(0,k.removeEvent)(C,N.move,this.handleDrag),(0,k.removeEvent)(C,W.move,this.handleDrag),(0,k.removeEvent)(C,N.stop,this.handleDragStop),(0,k.removeEvent)(C,W.stop,this.handleDragStop),(0,k.removeEvent)(i,W.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,k.removeUserSelectStyles)(C)}}},{key:"findDOMNode",value:function findDOMNode(){var i,C,w;return null!==(i=this.props)&&void 0!==i&&i.nodeRef?null===(C=this.props)||void 0===C||null===(w=C.nodeRef)||void 0===w?void 0:w.current:S.default.findDOMNode(this)}},{key:"render",value:function render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),DraggableCore}(x.Component);C.default=$,_defineProperty($,"displayName","DraggableCore"),_defineProperty($,"propTypes",{allowAnyClick:O.default.bool,disabled:O.default.bool,enableUserSelectHack:O.default.bool,offsetParent:function offsetParent(i,C){if(i[C]&&1!==i[C].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:O.default.arrayOf(O.default.number),handle:O.default.string,cancel:O.default.string,nodeRef:O.default.object,onStart:O.default.func,onDrag:O.default.func,onStop:O.default.func,onMouseDown:O.default.func,scale:O.default.number,className:R.dontSetMe,style:R.dontSetMe,transform:R.dontSetMe}),_defineProperty($,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function onStart(){},onDrag:function onDrag(){},onStop:function onStop(){},onMouseDown:function onMouseDown(){},scale:1})},49529:(i,C,w)=>{"use strict";var x=w(55322),O=x.default,S=x.DraggableCore;i.exports=O,i.exports.default=O,i.exports.DraggableCore=S},88065:(i,C,w)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),C.addClassName=addClassName,C.addEvent=function addEvent(i,C,w,x){if(!i)return;var O=_objectSpread({capture:!0},x);i.addEventListener?i.addEventListener(C,w,O):i.attachEvent?i.attachEvent("on"+C,w):i["on"+C]=w},C.addUserSelectStyles=function addUserSelectStyles(i){if(!i)return;var C=i.getElementById("react-draggable-style-el");C||((C=i.createElement("style")).type="text/css",C.id="react-draggable-style-el",C.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",C.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",i.getElementsByTagName("head")[0].appendChild(C));i.body&&addClassName(i.body,"react-draggable-transparent-selection")},C.createCSSTransform=function createCSSTransform(i,C){var w=getTranslation(i,C,"px");return _defineProperty({},(0,O.browserPrefixToKey)("transform",O.default),w)},C.createSVGTransform=function createSVGTransform(i,C){return getTranslation(i,C,"")},C.getTouch=function getTouch(i,C){return i.targetTouches&&(0,x.findInArray)(i.targetTouches,(function(i){return C===i.identifier}))||i.changedTouches&&(0,x.findInArray)(i.changedTouches,(function(i){return C===i.identifier}))},C.getTouchIdentifier=function getTouchIdentifier(i){if(i.targetTouches&&i.targetTouches[0])return i.targetTouches[0].identifier;if(i.changedTouches&&i.changedTouches[0])return i.changedTouches[0].identifier},C.getTranslation=getTranslation,C.innerHeight=function innerHeight(i){var C=i.clientHeight,w=i.ownerDocument.defaultView.getComputedStyle(i);return C-=(0,x.int)(w.paddingTop),C-=(0,x.int)(w.paddingBottom)},C.innerWidth=function innerWidth(i){var C=i.clientWidth,w=i.ownerDocument.defaultView.getComputedStyle(i);return C-=(0,x.int)(w.paddingLeft),C-=(0,x.int)(w.paddingRight)},C.matchesSelector=matchesSelector,C.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(i,C,w){var x=i;do{if(matchesSelector(x,C))return!0;if(x===w)return!1;x=x.parentNode}while(x);return!1},C.offsetXYFromParent=function offsetXYFromParent(i,C,w){var x=C===C.ownerDocument.body?{left:0,top:0}:C.getBoundingClientRect(),O=(i.clientX+C.scrollLeft-x.left)/w,S=(i.clientY+C.scrollTop-x.top)/w;return{x:O,y:S}},C.outerHeight=function outerHeight(i){var C=i.clientHeight,w=i.ownerDocument.defaultView.getComputedStyle(i);return C+=(0,x.int)(w.borderTopWidth),C+=(0,x.int)(w.borderBottomWidth)},C.outerWidth=function outerWidth(i){var C=i.clientWidth,w=i.ownerDocument.defaultView.getComputedStyle(i);return C+=(0,x.int)(w.borderLeftWidth),C+=(0,x.int)(w.borderRightWidth)},C.removeClassName=removeClassName,C.removeEvent=function removeEvent(i,C,w,x){if(!i)return;var O=_objectSpread({capture:!0},x);i.removeEventListener?i.removeEventListener(C,w,O):i.detachEvent?i.detachEvent("on"+C,w):i["on"+C]=null},C.removeUserSelectStyles=function removeUserSelectStyles(i){if(!i)return;try{if(i.body&&removeClassName(i.body,"react-draggable-transparent-selection"),i.selection)i.selection.empty();else{var C=(i.defaultView||window).getSelection();C&&"Caret"!==C.type&&C.removeAllRanges()}}catch(i){}};var x=w(70972),O=function _interopRequireWildcard(i,C){if(!C&&i&&i.__esModule)return i;if(null===i||"object"!==_typeof(i)&&"function"!=typeof i)return{default:i};var w=_getRequireWildcardCache(C);if(w&&w.has(i))return w.get(i);var x={},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in i)if("default"!==S&&Object.prototype.hasOwnProperty.call(i,S)){var k=O?Object.getOwnPropertyDescriptor(i,S):null;k&&(k.get||k.set)?Object.defineProperty(x,S,k):x[S]=i[S]}x.default=i,w&&w.set(i,x);return x}(w(42249));function _getRequireWildcardCache(i){if("function"!=typeof WeakMap)return null;var C=new WeakMap,w=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(i){return i?w:C})(i)}function ownKeys(i,C){var w=Object.keys(i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(i);C&&(x=x.filter((function(C){return Object.getOwnPropertyDescriptor(i,C).enumerable}))),w.push.apply(w,x)}return w}function _objectSpread(i){for(var C=1;C<arguments.length;C++){var w=null!=arguments[C]?arguments[C]:{};C%2?ownKeys(Object(w),!0).forEach((function(C){_defineProperty(i,C,w[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(w)):ownKeys(Object(w)).forEach((function(C){Object.defineProperty(i,C,Object.getOwnPropertyDescriptor(w,C))}))}return i}function _defineProperty(i,C,w){return C in i?Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):i[C]=w,i}var S="";function matchesSelector(i,C){return S||(S=(0,x.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(C){return(0,x.isFunction)(i[C])}))),!!(0,x.isFunction)(i[S])&&i[S](C)}function getTranslation(i,C,w){var x=i.x,O=i.y,S="translate(".concat(x).concat(w,",").concat(O).concat(w,")");if(C){var k="".concat("string"==typeof C.x?C.x:C.x+w),I="".concat("string"==typeof C.y?C.y:C.y+w);S="translate(".concat(k,", ").concat(I,")")+S}return S}function addClassName(i,C){i.classList?i.classList.add(C):i.className.match(new RegExp("(?:^|\\s)".concat(C,"(?!\\S)")))||(i.className+=" ".concat(C))}function removeClassName(i,C){i.classList?i.classList.remove(C):i.className=i.className.replace(new RegExp("(?:^|\\s)".concat(C,"(?!\\S)"),"g"),"")}},42249:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.browserPrefixToKey=browserPrefixToKey,C.browserPrefixToStyle=function browserPrefixToStyle(i,C){return C?"-".concat(C.toLowerCase(),"-").concat(i):i},C.default=void 0,C.getPrefix=getPrefix;var w=["Moz","Webkit","O","ms"];function getPrefix(){var i,C,x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var O=null===(i=window.document)||void 0===i||null===(C=i.documentElement)||void 0===C?void 0:C.style;if(!O)return"";if(x in O)return"";for(var S=0;S<w.length;S++)if(browserPrefixToKey(x,w[S])in O)return w[S];return""}function browserPrefixToKey(i,C){return C?"".concat(C).concat(function kebabToTitleCase(i){for(var C="",w=!0,x=0;x<i.length;x++)w?(C+=i[x].toUpperCase(),w=!1):"-"===i[x]?w=!0:C+=i[x];return C}(i)):i}var x=getPrefix();C.default=x},73936:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function log(){0}},39237:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.canDragX=function canDragX(i){return"both"===i.props.axis||"x"===i.props.axis},C.canDragY=function canDragY(i){return"both"===i.props.axis||"y"===i.props.axis},C.createCoreData=function createCoreData(i,C,w){var O=i.state,S=!(0,x.isNum)(O.lastX),k=findDOMNode(i);return S?{node:k,deltaX:0,deltaY:0,lastX:C,lastY:w,x:C,y:w}:{node:k,deltaX:C-O.lastX,deltaY:w-O.lastY,lastX:O.lastX,lastY:O.lastY,x:C,y:w}},C.createDraggableData=function createDraggableData(i,C){var w=i.props.scale;return{node:C.node,x:i.state.x+C.deltaX/w,y:i.state.y+C.deltaY/w,deltaX:C.deltaX/w,deltaY:C.deltaY/w,lastX:i.state.x,lastY:i.state.y}},C.getBoundPosition=function getBoundPosition(i,C,w){if(!i.props.bounds)return[C,w];var S=i.props.bounds;S="string"==typeof S?S:function cloneBounds(i){return{left:i.left,top:i.top,right:i.right,bottom:i.bottom}}(S);var k=findDOMNode(i);if("string"==typeof S){var I,R=k.ownerDocument,j=R.defaultView;if(!((I="parent"===S?k.parentNode:R.querySelector(S))instanceof j.HTMLElement))throw new Error('Bounds selector "'+S+'" could not find an element.');var W=I,N=j.getComputedStyle(k),G=j.getComputedStyle(W);S={left:-k.offsetLeft+(0,x.int)(G.paddingLeft)+(0,x.int)(N.marginLeft),top:-k.offsetTop+(0,x.int)(G.paddingTop)+(0,x.int)(N.marginTop),right:(0,O.innerWidth)(W)-(0,O.outerWidth)(k)-k.offsetLeft+(0,x.int)(G.paddingRight)-(0,x.int)(N.marginRight),bottom:(0,O.innerHeight)(W)-(0,O.outerHeight)(k)-k.offsetTop+(0,x.int)(G.paddingBottom)-(0,x.int)(N.marginBottom)}}(0,x.isNum)(S.right)&&(C=Math.min(C,S.right));(0,x.isNum)(S.bottom)&&(w=Math.min(w,S.bottom));(0,x.isNum)(S.left)&&(C=Math.max(C,S.left));(0,x.isNum)(S.top)&&(w=Math.max(w,S.top));return[C,w]},C.getControlPosition=function getControlPosition(i,C,w){var x="number"==typeof C?(0,O.getTouch)(i,C):null;if("number"==typeof C&&!x)return null;var S=findDOMNode(w),k=w.props.offsetParent||S.offsetParent||S.ownerDocument.body;return(0,O.offsetXYFromParent)(x||i,k,w.props.scale)},C.snapToGrid=function snapToGrid(i,C,w){var x=Math.round(C/i[0])*i[0],O=Math.round(w/i[1])*i[1];return[x,O]};var x=w(70972),O=w(88065);function findDOMNode(i){var C=i.findDOMNode();if(!C)throw new Error("<DraggableCore>: Unmounted during event!");return C}},70972:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.dontSetMe=function dontSetMe(i,C,w){if(i[C])return new Error("Invalid prop ".concat(C," passed to ").concat(w," - do not set this, set it on the child."))},C.findInArray=function findInArray(i,C){for(var w=0,x=i.length;w<x;w++)if(C.apply(C,[i[w],w,i]))return i[w]},C.int=function int(i){return parseInt(i,10)},C.isFunction=function isFunction(i){return"function"==typeof i||"[object Function]"===Object.prototype.toString.call(i)},C.isNum=function isNum(i){return"number"==typeof i&&!isNaN(i)}},78326:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});var x=function(){function defineProperties(i,C){for(var w=0;w<C.length;w++){var x=C[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(i,x.key,x)}}return function(i,C,w){return C&&defineProperties(i.prototype,C),w&&defineProperties(i,w),i}}(),O=w(87363),S=_interopRequireDefault(O),k=_interopRequireDefault(w(23615));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}var I=function(i){function InfiniteScroll(i){!function _classCallCheck(i,C){if(!(i instanceof C))throw new TypeError("Cannot call a class as a function")}(this,InfiniteScroll);var C=function _possibleConstructorReturn(i,C){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!C||"object"!=typeof C&&"function"!=typeof C?i:C}(this,(InfiniteScroll.__proto__||Object.getPrototypeOf(InfiniteScroll)).call(this,i));return C.scrollListener=C.scrollListener.bind(C),C.eventListenerOptions=C.eventListenerOptions.bind(C),C.mousewheelListener=C.mousewheelListener.bind(C),C}return function _inherits(i,C){if("function"!=typeof C&&null!==C)throw new TypeError("Super expression must either be null or a function, not "+typeof C);i.prototype=Object.create(C&&C.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(i,C):i.__proto__=C)}(InfiniteScroll,i),x(InfiniteScroll,[{key:"componentDidMount",value:function componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function componentDidUpdate(){if(this.props.isReverse&&this.loadMore){var i=this.getParentElement(this.scrollComponent);i.scrollTop=i.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function isPassiveSupported(){var i=!1,C={get passive(){i=!0}};try{document.addEventListener("test",null,C),document.removeEventListener("test",null,C)}catch(i){}return i}},{key:"eventListenerOptions",value:function eventListenerOptions(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function setDefaultLoader(i){this.defaultLoader=i}},{key:"detachMousewheelListener",value:function detachMousewheelListener(){var i=window;!1===this.props.useWindow&&(i=this.scrollComponent.parentNode),i.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function detachScrollListener(){var i=window;!1===this.props.useWindow&&(i=this.getParentElement(this.scrollComponent)),i.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function getParentElement(i){var C=this.props.getScrollParent&&this.props.getScrollParent();return null!=C?C:i&&i.parentNode}},{key:"filterProps",value:function filterProps(i){return i}},{key:"attachScrollListener",value:function attachScrollListener(){var i=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&i){var C=window;!1===this.props.useWindow&&(C=i),C.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),C.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),C.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function mousewheelListener(i){1!==i.deltaY||this.isPassiveSupported()||i.preventDefault()}},{key:"scrollListener",value:function scrollListener(){var i=this.scrollComponent,C=window,w=this.getParentElement(i),x=void 0;if(this.props.useWindow){var O=document.documentElement||document.body.parentNode||document.body,S=void 0!==C.pageYOffset?C.pageYOffset:O.scrollTop;x=this.props.isReverse?S:this.calculateOffset(i,S)}else x=this.props.isReverse?w.scrollTop:i.scrollHeight-w.scrollTop-w.clientHeight;x<Number(this.props.threshold)&&i&&null!==i.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=w.scrollHeight,this.beforeScrollTop=w.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function calculateOffset(i,C){return i?this.calculateTopPosition(i)+(i.offsetHeight-C-window.innerHeight):0}},{key:"calculateTopPosition",value:function calculateTopPosition(i){return i?i.offsetTop+this.calculateTopPosition(i.offsetParent):0}},{key:"render",value:function render(){var i=this,C=this.filterProps(this.props),w=C.children,x=C.element,O=C.hasMore,k=(C.initialLoad,C.isReverse),I=C.loader,R=(C.loadMore,C.pageStart,C.ref),j=(C.threshold,C.useCapture,C.useWindow,C.getScrollParent,function _objectWithoutProperties(i,C){var w={};for(var x in i)C.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(i,x)&&(w[x]=i[x]);return w}(C,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));j.ref=function(C){i.scrollComponent=C,R&&R(C)};var W=[w];return O&&(I?k?W.unshift(I):W.push(I):this.defaultLoader&&(k?W.unshift(this.defaultLoader):W.push(this.defaultLoader))),S.default.createElement(x,j,W)}}]),InfiniteScroll}(O.Component);I.propTypes={children:k.default.node.isRequired,element:k.default.node,hasMore:k.default.bool,initialLoad:k.default.bool,isReverse:k.default.bool,loader:k.default.node,loadMore:k.default.func.isRequired,pageStart:k.default.number,ref:k.default.func,getScrollParent:k.default.func,threshold:k.default.number,useCapture:k.default.bool,useWindow:k.default.bool},I.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},C.default=I,i.exports=C.default},43674:(i,C,w)=>{i.exports=w(78326)},58702:(i,C)=>{"use strict";var w,x=Symbol.for("react.element"),O=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),j=Symbol.for("react.context"),W=Symbol.for("react.server_context"),N=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen");function v(i){if("object"==typeof i&&null!==i){var C=i.$$typeof;switch(C){case x:switch(i=i.type){case S:case I:case k:case G:case $:return i;default:switch(i=i&&i.$$typeof){case W:case j:case N:case re:case J:case R:return i;default:return C}}case O:return C}}}w=Symbol.for("react.module.reference"),C.ContextConsumer=j,C.ContextProvider=R,C.Element=x,C.ForwardRef=N,C.Fragment=S,C.Lazy=re,C.Memo=J,C.Portal=O,C.Profiler=I,C.StrictMode=k,C.Suspense=G,C.SuspenseList=$,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(i){return v(i)===j},C.isContextProvider=function(i){return v(i)===R},C.isElement=function(i){return"object"==typeof i&&null!==i&&i.$$typeof===x},C.isForwardRef=function(i){return v(i)===N},C.isFragment=function(i){return v(i)===S},C.isLazy=function(i){return v(i)===re},C.isMemo=function(i){return v(i)===J},C.isPortal=function(i){return v(i)===O},C.isProfiler=function(i){return v(i)===I},C.isStrictMode=function(i){return v(i)===k},C.isSuspense=function(i){return v(i)===G},C.isSuspenseList=function(i){return v(i)===$},C.isValidElementType=function(i){return"string"==typeof i||"function"==typeof i||i===S||i===I||i===k||i===G||i===$||i===oe||"object"==typeof i&&null!==i&&(i.$$typeof===re||i.$$typeof===J||i.$$typeof===R||i.$$typeof===j||i.$$typeof===N||i.$$typeof===w||void 0!==i.getModuleId)},C.typeOf=v},19185:(i,C,w)=>{"use strict";i.exports=w(58702)},23866:(i,C,w)=>{"use strict";w.r(C),w.d(C,{Canvas:()=>N,ReactSketchCanvas:()=>G});var x=w(87363);function asyncGeneratorStep(i,C,w,x,O,S,k){try{var I=i[S](k),R=I.value}catch(i){return void w(i)}I.done?C(R):Promise.resolve(R).then(x,O)}function _extends(){return _extends=Object.assign||function(i){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(i[x]=w[x])}return i},_extends.apply(this,arguments)}var O={exports:{}};!function(i){var C=function(i){var C,w=Object.prototype,x=w.hasOwnProperty,O="function"==typeof Symbol?Symbol:{},S=O.iterator||"@@iterator",k=O.asyncIterator||"@@asyncIterator",I=O.toStringTag||"@@toStringTag";function define(i,C,w){return Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}),i[C]}try{define({},"")}catch(i){define=function(i,C,w){return i[C]=w}}function wrap(i,C,w,x){var O=C&&C.prototype instanceof Generator?C:Generator,S=Object.create(O.prototype),k=new Context(x||[]);return S._invoke=function makeInvokeMethod(i,C,w){var x=R;return function invoke(O,S){if(x===W)throw new Error("Generator is already running");if(x===N){if("throw"===O)throw S;return doneResult()}for(w.method=O,w.arg=S;;){var k=w.delegate;if(k){var I=maybeInvokeDelegate(k,w);if(I){if(I===G)continue;return I}}if("next"===w.method)w.sent=w._sent=w.arg;else if("throw"===w.method){if(x===R)throw x=N,w.arg;w.dispatchException(w.arg)}else"return"===w.method&&w.abrupt("return",w.arg);x=W;var $=tryCatch(i,C,w);if("normal"===$.type){if(x=w.done?N:j,$.arg===G)continue;return{value:$.arg,done:w.done}}"throw"===$.type&&(x=N,w.method="throw",w.arg=$.arg)}}}(i,w,k),S}function tryCatch(i,C,w){try{return{type:"normal",arg:i.call(C,w)}}catch(i){return{type:"throw",arg:i}}}i.wrap=wrap;var R="suspendedStart",j="suspendedYield",W="executing",N="completed",G={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var $={};define($,S,(function(){return this}));var J=Object.getPrototypeOf,re=J&&J(J(values([])));re&&re!==w&&x.call(re,S)&&($=re);var oe=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create($);function defineIteratorMethods(i){["next","throw","return"].forEach((function(C){define(i,C,(function(i){return this._invoke(C,i)}))}))}function AsyncIterator(i,C){function invoke(w,O,S,k){var I=tryCatch(i[w],i,O);if("throw"!==I.type){var R=I.arg,j=R.value;return j&&"object"==typeof j&&x.call(j,"__await")?C.resolve(j.__await).then((function(i){invoke("next",i,S,k)}),(function(i){invoke("throw",i,S,k)})):C.resolve(j).then((function(i){R.value=i,S(R)}),(function(i){return invoke("throw",i,S,k)}))}k(I.arg)}var w;this._invoke=function enqueue(i,x){function callInvokeWithMethodAndArg(){return new C((function(C,w){invoke(i,x,C,w)}))}return w=w?w.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(i,w){var x=i.iterator[w.method];if(x===C){if(w.delegate=null,"throw"===w.method){if(i.iterator.return&&(w.method="return",w.arg=C,maybeInvokeDelegate(i,w),"throw"===w.method))return G;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var O=tryCatch(x,i.iterator,w.arg);if("throw"===O.type)return w.method="throw",w.arg=O.arg,w.delegate=null,G;var S=O.arg;return S?S.done?(w[i.resultName]=S.value,w.next=i.nextLoc,"return"!==w.method&&(w.method="next",w.arg=C),w.delegate=null,G):S:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,G)}function pushTryEntry(i){var C={tryLoc:i[0]};1 in i&&(C.catchLoc=i[1]),2 in i&&(C.finallyLoc=i[2],C.afterLoc=i[3]),this.tryEntries.push(C)}function resetTryEntry(i){var C=i.completion||{};C.type="normal",delete C.arg,i.completion=C}function Context(i){this.tryEntries=[{tryLoc:"root"}],i.forEach(pushTryEntry,this),this.reset(!0)}function values(i){if(i){var w=i[S];if(w)return w.call(i);if("function"==typeof i.next)return i;if(!isNaN(i.length)){var O=-1,k=function next(){for(;++O<i.length;)if(x.call(i,O))return next.value=i[O],next.done=!1,next;return next.value=C,next.done=!0,next};return k.next=k}}return{next:doneResult}}function doneResult(){return{value:C,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(oe,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,I,"GeneratorFunction"),i.isGeneratorFunction=function(i){var C="function"==typeof i&&i.constructor;return!!C&&(C===GeneratorFunction||"GeneratorFunction"===(C.displayName||C.name))},i.mark=function(i){return Object.setPrototypeOf?Object.setPrototypeOf(i,GeneratorFunctionPrototype):(i.__proto__=GeneratorFunctionPrototype,define(i,I,"GeneratorFunction")),i.prototype=Object.create(oe),i},i.awrap=function(i){return{__await:i}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,k,(function(){return this})),i.AsyncIterator=AsyncIterator,i.async=function(C,w,x,O,S){void 0===S&&(S=Promise);var k=new AsyncIterator(wrap(C,w,x,O),S);return i.isGeneratorFunction(w)?k:k.next().then((function(i){return i.done?i.value:k.next()}))},defineIteratorMethods(oe),define(oe,I,"Generator"),define(oe,S,(function(){return this})),define(oe,"toString",(function(){return"[object Generator]"})),i.keys=function(i){var C=[];for(var w in i)C.push(w);return C.reverse(),function next(){for(;C.length;){var w=C.pop();if(w in i)return next.value=w,next.done=!1,next}return next.done=!0,next}},i.values=values,Context.prototype={constructor:Context,reset:function(i){if(this.prev=0,this.next=0,this.sent=this._sent=C,this.done=!1,this.delegate=null,this.method="next",this.arg=C,this.tryEntries.forEach(resetTryEntry),!i)for(var w in this)"t"===w.charAt(0)&&x.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=C)},stop:function(){this.done=!0;var i=this.tryEntries[0].completion;if("throw"===i.type)throw i.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var w=this;function handle(x,O){return k.type="throw",k.arg=i,w.next=x,O&&(w.method="next",w.arg=C),!!O}for(var O=this.tryEntries.length-1;O>=0;--O){var S=this.tryEntries[O],k=S.completion;if("root"===S.tryLoc)return handle("end");if(S.tryLoc<=this.prev){var I=x.call(S,"catchLoc"),R=x.call(S,"finallyLoc");if(I&&R){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0);if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}else if(I){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}}}},abrupt:function(i,C){for(var w=this.tryEntries.length-1;w>=0;--w){var O=this.tryEntries[w];if(O.tryLoc<=this.prev&&x.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var S=O;break}}S&&("break"===i||"continue"===i)&&S.tryLoc<=C&&C<=S.finallyLoc&&(S=null);var k=S?S.completion:{};return k.type=i,k.arg=C,S?(this.method="next",this.next=S.finallyLoc,G):this.complete(k)},complete:function(i,C){if("throw"===i.type)throw i.arg;return"break"===i.type||"continue"===i.type?this.next=i.arg:"return"===i.type?(this.rval=this.arg=i.arg,this.method="return",this.next="end"):"normal"===i.type&&C&&(this.next=C),G},finish:function(i){for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C];if(w.finallyLoc===i)return this.complete(w.completion,w.afterLoc),resetTryEntry(w),G}},catch:function(i){for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C];if(w.tryLoc===i){var x=w.completion;if("throw"===x.type){var O=x.arg;resetTryEntry(w)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(i,w,x){return this.delegate={iterator:values(i),resultName:w,nextLoc:x},"next"===this.method&&(this.arg=C),G}},i}(i.exports);try{regeneratorRuntime=C}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=C:Function("r","regeneratorRuntime = r")(C)}}(O);var S=O.exports,k=function SvgPath(i){var C=i.paths,w=i.id,O=i.strokeWidth,S=i.strokeColor,k=i.command,I=void 0===k?R:k;if(1===C.length){var j=C[0],W=j.x,N=j.y,G=O/2;return x.createElement("circle",{key:w,id:w,cx:W,cy:N,r:G,stroke:S,fill:S})}var $=C.reduce((function(i,C,w,x){return 0===w?"M "+C.x+","+C.y:i+" "+I(C,w,x)}),"");return x.createElement("path",{key:w,id:w,d:$,fill:"none",strokeLinecap:"round",stroke:S,strokeWidth:O})},I=function controlPoint(i){var C=i.current,w=i.next,x=i.previous,O=i.reverse,S=function line(i,C){var w=C.x-i.x,x=C.y-i.y;return{length:Math.sqrt(Math.pow(w,2)+Math.pow(x,2)),angle:Math.atan2(x,w)}}(x||C,w||C),k=S.angle+(O?Math.PI:0),I=.2*S.length;return[C.x+Math.cos(k)*I,C.y+Math.sin(k)*I]},R=function bezierCommand(i,C,w){var x=null,O=null;switch(C){case 0:var S=I({current:i});x=S[0],O=S[1];break;case 1:var k=I({current:w[C-1],next:i});x=k[0],O=k[1];break;default:var R=I({current:w[C-1],previous:w[C-2],next:i});x=R[0],O=R[1]}var j=I({current:i,previous:w[C-1],next:w[C+1],reverse:!0});return"C "+x+","+O+" "+j[0]+","+j[1]+" "+i.x+", "+i.y},j=function Paths(i){var C=i.id,w=i.paths;return x.createElement(x.Fragment,null,w.map((function(i,w){return x.createElement(k,{key:C+"__"+w,paths:i.paths,id:C+"__"+w,strokeWidth:i.strokeWidth,strokeColor:i.strokeColor,command:R})})))},W=function loadImage(i){return new Promise((function(C,w){var x=new Image;x.addEventListener("load",(function(){x.width>0&&C(x),w("Image not found")})),x.addEventListener("error",(function(i){return w(i)})),x.src=i,x.setAttribute("crossorigin","anonymous")}))};function getCanvasWithViewBox(i){var C,w=null==(C=i.firstChild)?void 0:C.cloneNode(!0),x=i.offsetWidth,O=i.offsetHeight;return w.setAttribute("viewBox","0 0 "+x+" "+O),w.setAttribute("width",x.toString()),w.setAttribute("height",O.toString()),{svgCanvas:w,width:x,height:O}}var N=x.forwardRef((function(i,C){var w=i.paths,O=i.isDrawing,I=i.onPointerDown,R=i.onPointerMove,N=i.onPointerUp,G=i.id,$=void 0===G?"react-sketch-canvas":G,J=i.width,re=void 0===J?"100%":J,oe=i.height,ie=void 0===oe?"100%":oe,le=i.className,ue=void 0===le?"react-sketch-canvas":le,ce=i.canvasColor,se=void 0===ce?"red":ce,de=i.backgroundImage,he=void 0===de?"":de,ge=i.exportWithBackgroundImage,ye=void 0!==ge&&ge,ve=i.preserveBackgroundImageAspectRatio,Ce=void 0===ve?"none":ve,Se=i.allowOnlyPointerType,Pe=void 0===Se?"all":Se,Ie=i.style,Re=void 0===Ie?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:Ie,Me=i.svgStyle,De=void 0===Me?{}:Me,Fe=x.useRef(null),He=function getCoordinates(i){var C,w,x,O=null==(C=Fe.current)?void 0:C.getBoundingClientRect(),S=null!=(w=window.scrollX)?w:0,k=null!=(x=window.scrollY)?x:0;return O?{x:i.pageX-O.left-S,y:i.pageY-O.top-k}:{x:0,y:0}},Ue=function handlePointerUp(i){"mouse"===i.pointerType&&0!==i.button||"all"!==Pe&&i.pointerType!==Pe||N()};x.useImperativeHandle(C,(function(){return{exportImage:function exportImage(i){return new Promise(function(){var C=function _asyncToGenerator(i){return function(){var C=this,w=arguments;return new Promise((function(x,O){var S=i.apply(C,w);function _next(i){asyncGeneratorStep(S,x,O,_next,_throw,"next",i)}function _throw(i){asyncGeneratorStep(S,x,O,_next,_throw,"throw",i)}_next(void 0)}))}}(S.mark((function _callee(C,w){var x,O,k,I,R,j,N,G;return S.wrap((function _callee$(S){for(;;)switch(S.prev=S.next){case 0:if(S.prev=0,x=Fe.current){S.next=4;break}throw Error("Canvas not rendered yet");case 4:return O=getCanvasWithViewBox(x),k=O.svgCanvas,I=O.width,R=O.height,j="data:image/svg+xml;base64,"+btoa(k.outerHTML),S.next=8,W(j);case 8:if(S.t0=S.sent,N=[S.t0],!ye){S.next=21;break}return S.prev=11,S.next=14,W(he);case 14:G=S.sent,N.push(G),S.next=21;break;case 18:S.prev=18,S.t1=S.catch(11),console.warn("exportWithBackgroundImage props is set without a valid background image URL. This option is ignored");case 21:Promise.all(N).then((function(w){var x=document.createElement("canvas");x.setAttribute("width",I.toString()),x.setAttribute("height",R.toString());var O=x.getContext("2d");if(!O)throw Error("Canvas not rendered yet");w.reverse().forEach((function(i){O.drawImage(i,0,0)})),C(x.toDataURL("image/"+i))})).catch((function(i){throw i})),S.next=27;break;case 24:S.prev=24,S.t2=S.catch(0),w(S.t2);case 27:case"end":return S.stop()}}),_callee,null,[[0,24],[11,18]])})));return function(i,w){return C.apply(this,arguments)}}())},exportSvg:function exportSvg(){return new Promise((function(i,C){try{var w,x=null!=(w=Fe.current)?w:null;if(null!==x){var O,S,k=getCanvasWithViewBox(x).svgCanvas;if(ye)return void i(k.outerHTML);null==(O=k.querySelector("#"+$+"__background"))||O.remove(),null==(S=k.querySelector("#"+$+"__canvas-background"))||S.setAttribute("fill",se),i(k.outerHTML)}C(new Error("Canvas not loaded"))}catch(i){C(i)}}))}}})),x.useEffect((function(){return document.addEventListener("pointerup",Ue),function(){document.removeEventListener("pointerup",Ue)}}),[Ue]);var Ge=w.filter((function(i){return!i.drawMode})),Ze=0,Ke=w.reduce((function(i,C){return C.drawMode?(void 0===i[Ze]&&(i[Ze]=[]),i[Ze].push(C),i):(Ze+=1,i)}),[[]]);return x.createElement("div",{role:"presentation",ref:Fe,className:ue,style:_extends({touchAction:"none",width:re,height:ie},Re),"touch-action":"none",onPointerDown:function handlePointerDown(i){if(!("all"!==Pe&&i.pointerType!==Pe||"mouse"===i.pointerType&&0!==i.button)){var C=He(i);I(C)}},onPointerMove:function handlePointerMove(i){if(O&&("all"===Pe||i.pointerType===Pe)){var C=He(i);R(C)}},onPointerUp:Ue},x.createElement("svg",{version:"1.1",baseProfile:"full",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:_extends({width:"100%",height:"100%"},De),id:$},x.createElement("g",{id:$+"__eraser-stroke-group",display:"none"},x.createElement("rect",{id:$+"__mask-background",x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),Ge.map((function(i,C){return x.createElement(k,{key:$+"__eraser-"+C,id:$+"__eraser-"+C,paths:i.paths,strokeColor:"#000000",strokeWidth:i.strokeWidth})}))),x.createElement("defs",null,he&&x.createElement("pattern",{id:$+"__background",x:"0",y:"0",width:"100%",height:"100%",patternUnits:"userSpaceOnUse"},x.createElement("image",{x:"0",y:"0",width:"100%",height:"100%",xlinkHref:he,preserveAspectRatio:Ce})),Ge.map((function(i,C){return x.createElement("mask",{id:$+"__eraser-mask-"+C,key:$+"__eraser-mask-"+C,maskUnits:"userSpaceOnUse"},x.createElement("use",{href:"#"+$+"__mask-background"}),Array.from({length:Ge.length-C},(function(i,w){return w+C})).map((function(i){return x.createElement("use",{key:i.toString(),href:"#"+$+"__eraser-"+i.toString()})})))}))),x.createElement("g",{id:$+"__canvas-background-group"},x.createElement("rect",{id:$+"__canvas-background",x:"0",y:"0",width:"100%",height:"100%",fill:he?"url(#"+$+"__background)":se})),Ke.map((function(i,C){return x.createElement("g",{id:$+"__stroke-group-"+C,key:$+"__stroke-group-"+C,mask:"url(#"+$+"__eraser-mask-"+C+")"},x.createElement(j,{id:$,paths:i}))}))))})),G=x.forwardRef((function(i,C){var w=i.id,O=void 0===w?"react-sketch-canvas":w,S=i.width,k=void 0===S?"100%":S,I=i.height,R=void 0===I?"100%":I,j=i.className,W=void 0===j?"":j,G=i.canvasColor,$=void 0===G?"white":G,J=i.strokeColor,re=void 0===J?"red":J,oe=i.backgroundImage,ie=void 0===oe?"":oe,le=i.exportWithBackgroundImage,ue=void 0!==le&&le,ce=i.preserveBackgroundImageAspectRatio,se=void 0===ce?"none":ce,de=i.strokeWidth,he=void 0===de?4:de,ge=i.eraserWidth,ye=void 0===ge?8:ge,ve=i.allowOnlyPointerType,Ce=void 0===ve?"all":ve,Se=i.style,Pe=void 0===Se?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:Se,Ie=i.svgStyle,Re=void 0===Ie?{}:Ie,Me=i.onChange,De=void 0===Me?function(i){}:Me,Fe=i.onStroke,He=void 0===Fe?function(i,C){}:Fe,Ue=i.withTimestamp,Ge=void 0!==Ue&&Ue,Ze=x.createRef(),Ke=x.useState(!0),Qe=Ke[0],et=Ke[1],tt=x.useState(!1),nt=tt[0],rt=tt[1],ot=x.useState([]),at=ot[0],it=ot[1],lt=x.useState([]),ut=lt[0],ct=lt[1],st=x.useState([]),dt=st[0],ft=st[1],pt=x.useCallback((function(){var i,C,w=null!=(i=null==(C=dt.slice(-1))?void 0:C[0])?i:null;null!==w?He(w,!w.drawMode):console.warn("No stroke found!")}),[nt]);x.useEffect((function(){pt()}),[nt]),x.useEffect((function(){De(dt)}),[dt]),x.useImperativeHandle(C,(function(){return{eraseMode:function eraseMode(i){et(!i)},clearCanvas:function clearCanvas(){it([].concat(dt)),ft([])},undo:function undo(){if(0!==at.length)return ft([].concat(at)),void it([]);ct((function(i){return[].concat(i,dt.slice(-1))})),ft((function(i){return i.slice(0,-1)}))},redo:function redo(){0!==ut.length&&(ft((function(i){return[].concat(i,ut.slice(-1))})),ct((function(i){return i.slice(0,-1)})))},exportImage:function exportImage(i){var C,exportImage=null==(C=Ze.current)?void 0:C.exportImage;if(exportImage)return exportImage(i);throw Error("Export function called before canvas loaded")},exportSvg:function exportSvg(){return new Promise((function(i,C){var w,x=null==(w=Ze.current)?void 0:w.exportSvg;x?x().then((function(C){i(C)})).catch((function(i){C(i)})):C(Error("Export function called before canvas loaded"))}))},exportPaths:function exportPaths(){return new Promise((function(i,C){try{i(dt)}catch(i){C(i)}}))},loadPaths:function loadPaths(i){ft((function(C){return[].concat(C,i)}))},getSketchingTime:function getSketchingTime(){return new Promise((function(i,C){Ge||C(new Error("Set 'withTimestamp' prop to get sketching time"));try{i(dt.reduce((function(i,C){var w,x,O=null!=(w=C.startTimestamp)?w:0;return i+((null!=(x=C.endTimestamp)?x:0)-O)}),0))}catch(i){C(i)}}))},resetCanvas:function resetCanvas(){it([]),ct([]),ft([])}}}));return x.createElement(N,{ref:Ze,id:O,width:k,height:R,className:W,canvasColor:$,backgroundImage:ie,exportWithBackgroundImage:ue,preserveBackgroundImageAspectRatio:se,allowOnlyPointerType:Ce,style:Pe,svgStyle:Re,paths:dt,isDrawing:nt,onPointerDown:function handlePointerDown(i){rt(!0),ct([]);var C={drawMode:Qe,strokeColor:Qe?re:"#000000",strokeWidth:Qe?he:ye,paths:[i]};Ge&&(C=_extends({},C,{startTimestamp:Date.now(),endTimestamp:0})),ft((function(i){return[].concat(i,[C])}))},onPointerMove:function handlePointerMove(i){if(nt){var C=dt.slice(-1)[0],w=_extends({},C,{paths:[].concat(C.paths,[i])});ft((function(i){return[].concat(i.slice(0,-1),[w])}))}},onPointerUp:function handlePointerUp(){var i,C;if(nt&&(rt(!1),Ge)){var w=null!=(i=null==(C=dt.slice(-1))?void 0:C[0])?i:null;if(null!==w){var x=_extends({},w,{endTimestamp:Date.now()});ft((function(i){return[].concat(i.slice(0,-1),[x])}))}}}})}))},74445:i=>{i.exports=function shallowEqual(i,C,w,x){var O=w?w.call(x,i,C):void 0;if(void 0!==O)return!!O;if(i===C)return!0;if("object"!=typeof i||!i||"object"!=typeof C||!C)return!1;var S=Object.keys(i),k=Object.keys(C);if(S.length!==k.length)return!1;for(var I=Object.prototype.hasOwnProperty.bind(C),R=0;R<S.length;R++){var j=S[R];if(!I(j))return!1;var W=i[j],N=C[j];if(!1===(O=w?w.call(x,W,N,j):void 0)||void 0===O&&W!==N)return!1}return!0}},55862:(i,C,w)=>{var x=w(3812);function StyleToObject(i,C){var w,O=null;if(!i||"string"!=typeof i)return O;for(var S,k,I=x(i),R="function"==typeof C,j=0,W=I.length;j<W;j++)S=(w=I[j]).property,k=w.value,R?C(S,k,w):k&&(O||(O={}),O[S]=k);return O}i.exports=StyleToObject,i.exports.default=StyleToObject},63993:(i,C,w)=>{"use strict";w.r(C),w.d(C,{ServerStyleSheet:()=>ft,StyleSheetConsumer:()=>Ke,StyleSheetContext:()=>Ze,StyleSheetManager:()=>me,ThemeConsumer:()=>ct,ThemeContext:()=>ut,ThemeProvider:()=>Le,__PRIVATE__:()=>pt,createGlobalStyle:()=>$e,css:()=>Ae,default:()=>mt,isStyledComponent:()=>_,keyframes:()=>We,useTheme:()=>Xe,version:()=>ie,withTheme:()=>Je});var x=w(19185),O=w(87363),S=w.n(O),k=w(74445),I=w.n(k);const R=function stylis_min(i){function M(i,x,O,S,k){for(var I,N,$,J,re,oe=0,ie=0,he=0,ye=0,Ce=0,Se=0,Pe=$=I=0,Ie=0,Re=0,Me=0,De=0,Fe=O.length,He=Fe-1,Ue="",Ge="",Ze="",Ke="";Ie<Fe;){if(N=O.charCodeAt(Ie),Ie===He&&0!==ie+ye+he+oe&&(0!==ie&&(N=47===ie?10:47),ye=he=oe=0,Fe++,He++),0===ie+ye+he+oe){if(Ie===He&&(0<Re&&(Ue=Ue.replace(w,"")),0<Ue.trim().length)){switch(N){case 32:case 9:case 59:case 13:case 10:break;default:Ue+=O.charAt(Ie)}N=59}switch(N){case 123:for(I=(Ue=Ue.trim()).charCodeAt(0),$=1,De=++Ie;Ie<Fe;){switch(N=O.charCodeAt(Ie)){case 123:$++;break;case 125:$--;break;case 47:switch(N=O.charCodeAt(Ie+1)){case 42:case 47:e:{for(Pe=Ie+1;Pe<He;++Pe)switch(O.charCodeAt(Pe)){case 47:if(42===N&&42===O.charCodeAt(Pe-1)&&Ie+2!==Pe){Ie=Pe+1;break e}break;case 10:if(47===N){Ie=Pe+1;break e}}Ie=Pe}}break;case 91:N++;case 40:N++;case 34:case 39:for(;Ie++<He&&O.charCodeAt(Ie)!==N;);}if(0===$)break;Ie++}if($=O.substring(De,Ie),0===I&&(I=(Ue=Ue.replace(C,"").trim()).charCodeAt(0)),64===I){switch(0<Re&&(Ue=Ue.replace(w,"")),N=Ue.charCodeAt(1)){case 100:case 109:case 115:case 45:Re=x;break;default:Re=de}if(De=($=M(x,Re,$,N,k+1)).length,0<ge&&(re=H(3,$,Re=X(de,Ue,Me),x,ue,le,De,N,k,S),Ue=Re.join(""),void 0!==re&&0===(De=($=re.trim()).length)&&(N=0,$="")),0<De)switch(N){case 115:Ue=Ue.replace(G,ea);case 100:case 109:case 45:$=Ue+"{"+$+"}";break;case 107:$=(Ue=Ue.replace(R,"$1 $2"))+"{"+$+"}",$=1===se||2===se&&L("@"+$,3)?"@-webkit-"+$+"@"+$:"@"+$;break;default:$=Ue+$,112===S&&(Ge+=$,$="")}else $=""}else $=M(x,X(x,Ue,Me),$,S,k+1);Ze+=$,$=Me=Re=Pe=I=0,Ue="",N=O.charCodeAt(++Ie);break;case 125:case 59:if(1<(De=(Ue=(0<Re?Ue.replace(w,""):Ue).trim()).length))switch(0===Pe&&(I=Ue.charCodeAt(0),45===I||96<I&&123>I)&&(De=(Ue=Ue.replace(" ",":")).length),0<ge&&void 0!==(re=H(1,Ue,x,i,ue,le,Ge.length,S,k,S))&&0===(De=(Ue=re.trim()).length)&&(Ue="\0\0"),I=Ue.charCodeAt(0),N=Ue.charCodeAt(1),I){case 0:break;case 64:if(105===N||99===N){Ke+=Ue+O.charAt(Ie);break}default:58!==Ue.charCodeAt(De-1)&&(Ge+=P(Ue,I,N,Ue.charCodeAt(2)))}Me=Re=Pe=I=0,Ue="",N=O.charCodeAt(++Ie)}}switch(N){case 13:case 10:47===ie?ie=0:0===1+I&&107!==S&&0<Ue.length&&(Re=1,Ue+="\0"),0<ge*ve&&H(0,Ue,x,i,ue,le,Ge.length,S,k,S),le=1,ue++;break;case 59:case 125:if(0===ie+ye+he+oe){le++;break}default:switch(le++,J=O.charAt(Ie),N){case 9:case 32:if(0===ye+oe+ie)switch(Ce){case 44:case 58:case 9:case 32:J="";break;default:32!==N&&(J=" ")}break;case 0:J="\\0";break;case 12:J="\\f";break;case 11:J="\\v";break;case 38:0===ye+ie+oe&&(Re=Me=1,J="\f"+J);break;case 108:if(0===ye+ie+oe+ce&&0<Pe)switch(Ie-Pe){case 2:112===Ce&&58===O.charCodeAt(Ie-3)&&(ce=Ce);case 8:111===Se&&(ce=Se)}break;case 58:0===ye+ie+oe&&(Pe=Ie);break;case 44:0===ie+he+ye+oe&&(Re=1,J+="\r");break;case 34:case 39:0===ie&&(ye=ye===N?0:0===ye?N:ye);break;case 91:0===ye+ie+he&&oe++;break;case 93:0===ye+ie+he&&oe--;break;case 41:0===ye+ie+oe&&he--;break;case 40:if(0===ye+ie+oe){if(0===I)if(2*Ce+3*Se==533);else I=1;he++}break;case 64:0===ie+he+ye+oe+Pe+$&&($=1);break;case 42:case 47:if(!(0<ye+oe+he))switch(ie){case 0:switch(2*N+3*O.charCodeAt(Ie+1)){case 235:ie=47;break;case 220:De=Ie,ie=42}break;case 42:47===N&&42===Ce&&De+2!==Ie&&(33===O.charCodeAt(De+2)&&(Ge+=O.substring(De,Ie+1)),J="",ie=0)}}0===ie&&(Ue+=J)}Se=Ce,Ce=N,Ie++}if(0<(De=Ge.length)){if(Re=x,0<ge&&(void 0!==(re=H(2,Ge,Re,i,ue,le,De,S,k,S))&&0===(Ge=re).length))return Ke+Ge+Ze;if(Ge=Re.join(",")+"{"+Ge+"}",0!=se*ce){switch(2!==se||L(Ge,2)||(ce=0),ce){case 111:Ge=Ge.replace(W,":-moz-$1")+Ge;break;case 112:Ge=Ge.replace(j,"::-webkit-input-$1")+Ge.replace(j,"::-moz-$1")+Ge.replace(j,":-ms-input-$1")+Ge}ce=0}}return Ke+Ge+Ze}function X(i,C,w){var x=C.trim().split(k);C=x;var O=x.length,S=i.length;switch(S){case 0:case 1:var I=0;for(i=0===S?"":i[0]+" ";I<O;++I)C[I]=Z(i,C[I],w).trim();break;default:var R=I=0;for(C=[];I<O;++I)for(var j=0;j<S;++j)C[R++]=Z(i[j]+" ",x[I],w).trim()}return C}function Z(i,C,w){var x=C.charCodeAt(0);switch(33>x&&(x=(C=C.trim()).charCodeAt(0)),x){case 38:return C.replace(I,"$1"+i.trim());case 58:return i.trim()+C.replace(I,"$1"+i.trim());default:if(0<1*w&&0<C.indexOf("\f"))return C.replace(I,(58===i.charCodeAt(0)?"":"$1")+i.trim())}return i+C}function P(i,C,w,k){var I=i+";",R=2*C+3*w+4*k;if(944===R){i=I.indexOf(":",9)+1;var j=I.substring(i,I.length-1).trim();return j=I.substring(0,i).trim()+j+";",1===se||2===se&&L(j,1)?"-webkit-"+j+j:j}if(0===se||2===se&&!L(I,1))return I;switch(R){case 1015:return 97===I.charCodeAt(10)?"-webkit-"+I+I:I;case 951:return 116===I.charCodeAt(3)?"-webkit-"+I+I:I;case 963:return 110===I.charCodeAt(5)?"-webkit-"+I+I:I;case 1009:if(100!==I.charCodeAt(4))break;case 969:case 942:return"-webkit-"+I+I;case 978:return"-webkit-"+I+"-moz-"+I+I;case 1019:case 983:return"-webkit-"+I+"-moz-"+I+"-ms-"+I+I;case 883:if(45===I.charCodeAt(8))return"-webkit-"+I+I;if(0<I.indexOf("image-set(",11))return I.replace(ie,"$1-webkit-$2")+I;break;case 932:if(45===I.charCodeAt(4))switch(I.charCodeAt(5)){case 103:return"-webkit-box-"+I.replace("-grow","")+"-webkit-"+I+"-ms-"+I.replace("grow","positive")+I;case 115:return"-webkit-"+I+"-ms-"+I.replace("shrink","negative")+I;case 98:return"-webkit-"+I+"-ms-"+I.replace("basis","preferred-size")+I}return"-webkit-"+I+"-ms-"+I+I;case 964:return"-webkit-"+I+"-ms-flex-"+I+I;case 1023:if(99!==I.charCodeAt(8))break;return"-webkit-box-pack"+(j=I.substring(I.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+I+"-ms-flex-pack"+j+I;case 1005:return O.test(I)?I.replace(x,":-webkit-")+I.replace(x,":-moz-")+I:I;case 1e3:switch(C=(j=I.substring(13).trim()).indexOf("-")+1,j.charCodeAt(0)+j.charCodeAt(C)){case 226:j=I.replace(N,"tb");break;case 232:j=I.replace(N,"tb-rl");break;case 220:j=I.replace(N,"lr");break;default:return I}return"-webkit-"+I+"-ms-"+j+I;case 1017:if(-1===I.indexOf("sticky",9))break;case 975:switch(C=(I=i).length-10,R=(j=(33===I.charCodeAt(C)?I.substring(0,C):I).substring(i.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|j.charCodeAt(7))){case 203:if(111>j.charCodeAt(8))break;case 115:I=I.replace(j,"-webkit-"+j)+";"+I;break;case 207:case 102:I=I.replace(j,"-webkit-"+(102<R?"inline-":"")+"box")+";"+I.replace(j,"-webkit-"+j)+";"+I.replace(j,"-ms-"+j+"box")+";"+I}return I+";";case 938:if(45===I.charCodeAt(5))switch(I.charCodeAt(6)){case 105:return j=I.replace("-items",""),"-webkit-"+I+"-webkit-box-"+j+"-ms-flex-"+j+I;case 115:return"-webkit-"+I+"-ms-flex-item-"+I.replace(J,"")+I;default:return"-webkit-"+I+"-ms-flex-line-pack"+I.replace("align-content","").replace(J,"")+I}break;case 973:case 989:if(45!==I.charCodeAt(3)||122===I.charCodeAt(4))break;case 931:case 953:if(!0===oe.test(i))return 115===(j=i.substring(i.indexOf(":")+1)).charCodeAt(0)?P(i.replace("stretch","fill-available"),C,w,k).replace(":fill-available",":stretch"):I.replace(j,"-webkit-"+j)+I.replace(j,"-moz-"+j.replace("fill-",""))+I;break;case 962:if(I="-webkit-"+I+(102===I.charCodeAt(5)?"-ms-"+I:"")+I,211===w+k&&105===I.charCodeAt(13)&&0<I.indexOf("transform",10))return I.substring(0,I.indexOf(";",27)+1).replace(S,"$1-webkit-$2")+I}return I}function L(i,C){var w=i.indexOf(1===C?":":"{"),x=i.substring(0,3!==C?w:10);return w=i.substring(w+1,i.length-1),ye(2!==C?x:x.replace(re,"$1"),w,C)}function ea(i,C){var w=P(C,C.charCodeAt(0),C.charCodeAt(1),C.charCodeAt(2));return w!==C+";"?w.replace($," or ($1)").substring(4):"("+C+")"}function H(i,C,w,x,O,S,k,I,R,j){for(var W,N=0,G=C;N<ge;++N)switch(W=he[N].call(B,i,G,w,x,O,S,k,I,R,j)){case void 0:case!1:case!0:case null:break;default:G=W}if(G!==C)return G}function U(i){return void 0!==(i=i.prefix)&&(ye=null,i?"function"!=typeof i?se=1:(se=2,ye=i):se=0),U}function B(i,C){var w=i;if(33>w.charCodeAt(0)&&(w=w.trim()),w=[w],0<ge){var x=H(-1,C,w,w,ue,le,0,0,0,0);void 0!==x&&"string"==typeof x&&(C=x)}var O=M(de,w,C,0,0);return 0<ge&&(void 0!==(x=H(-2,O,w,w,ue,le,O.length,0,0,0))&&(O=x)),"",ce=0,le=ue=1,O}var C=/^\0+/g,w=/[\0\r\f]/g,x=/: */g,O=/zoo|gra/,S=/([,: ])(transform)/g,k=/,\r+?/g,I=/([\t\r\n ])*\f?&/g,R=/@(k\w+)\s*(\S*)\s*/,j=/::(place)/g,W=/:(read-only)/g,N=/[svh]\w+-[tblr]{2}/,G=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,J=/-self|flex-/g,re=/[^]*?(:[rp][el]a[\w-]+)[^]*/,oe=/stretch|:\s*\w+\-(?:conte|avail)/,ie=/([^-])(image-set\()/,le=1,ue=1,ce=0,se=1,de=[],he=[],ge=0,ye=null,ve=0;return B.use=function T(i){switch(i){case void 0:case null:ge=he.length=0;break;default:if("function"==typeof i)he[ge++]=i;else if("object"==typeof i)for(var C=0,w=i.length;C<w;++C)T(i[C]);else ve=0|!!i}return T},B.set=U,void 0!==i&&U(i),B};const j={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};function memoize(i){var C=Object.create(null);return function(w){return void 0===C[w]&&(C[w]=i(w)),C[w]}}var W=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,N=memoize((function(i){return W.test(i)||111===i.charCodeAt(0)&&110===i.charCodeAt(1)&&i.charCodeAt(2)<91})),G=w(55839),$=w.n(G);function y(){return(y=Object.assign||function(i){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(i[x]=w[x])}return i}).apply(this,arguments)}var v=function(i,C){for(var w=[i[0]],x=0,O=C.length;x<O;x+=1)w.push(C[x],i[x+1]);return w},g=function(i){return null!==i&&"object"==typeof i&&"[object Object]"===(i.toString?i.toString():Object.prototype.toString.call(i))&&!(0,x.typeOf)(i)},J=Object.freeze([]),re=Object.freeze({});function E(i){return"function"==typeof i}function b(i){return i.displayName||i.name||"Component"}function _(i){return i&&"string"==typeof i.styledComponentId}var oe="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ie="5.3.11",le="undefined"!=typeof window&&"HTMLElement"in window,ue=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY))),ce={};function D(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x<C;x++)w[x-1]=arguments[x];throw new Error("An error occurred. See https://git.io/JUIaE#"+i+" for more information."+(w.length>0?" Args: "+w.join(", "):""))}var se=function(){function e(i){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=i}var i=e.prototype;return i.indexOfGroup=function(i){for(var C=0,w=0;w<i;w++)C+=this.groupSizes[w];return C},i.insertRules=function(i,C){if(i>=this.groupSizes.length){for(var w=this.groupSizes,x=w.length,O=x;i>=O;)(O<<=1)<0&&D(16,""+i);this.groupSizes=new Uint32Array(O),this.groupSizes.set(w),this.length=O;for(var S=x;S<O;S++)this.groupSizes[S]=0}for(var k=this.indexOfGroup(i+1),I=0,R=C.length;I<R;I++)this.tag.insertRule(k,C[I])&&(this.groupSizes[i]++,k++)},i.clearGroup=function(i){if(i<this.length){var C=this.groupSizes[i],w=this.indexOfGroup(i),x=w+C;this.groupSizes[i]=0;for(var O=w;O<x;O++)this.tag.deleteRule(w)}},i.getGroup=function(i){var C="";if(i>=this.length||0===this.groupSizes[i])return C;for(var w=this.groupSizes[i],x=this.indexOfGroup(i),O=x+w,S=x;S<O;S++)C+=this.tag.getRule(S)+"/*!sc*/\n";return C},e}(),de=new Map,he=new Map,ge=1,V=function(i){if(de.has(i))return de.get(i);for(;he.has(ge);)ge++;var C=ge++;return de.set(i,C),he.set(C,i),C},B=function(i){return he.get(i)},z=function(i,C){C>=ge&&(ge=C+1),de.set(i,C),he.set(C,i)},ye="style["+oe+'][data-styled-version="5.3.11"]',ve=new RegExp("^"+oe+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(i,C,w){for(var x,O=w.split(","),S=0,k=O.length;S<k;S++)(x=O[S])&&i.registerName(C,x)},F=function(i,C){for(var w=(C.textContent||"").split("/*!sc*/\n"),x=[],O=0,S=w.length;O<S;O++){var k=w[O].trim();if(k){var I=k.match(ve);if(I){var R=0|parseInt(I[1],10),j=I[2];0!==R&&(z(j,R),L(i,j,I[3]),i.getTag().insertRules(R,x)),x.length=0}else x.push(k)}}},Y=function(){return w.nc},q=function(i){var C=document.head,w=i||C,x=document.createElement("style"),O=function(i){for(var C=i.childNodes,w=C.length;w>=0;w--){var x=C[w];if(x&&1===x.nodeType&&x.hasAttribute(oe))return x}}(w),S=void 0!==O?O.nextSibling:null;x.setAttribute(oe,"active"),x.setAttribute("data-styled-version","5.3.11");var k=Y();return k&&x.setAttribute("nonce",k),w.insertBefore(x,S),x},Ce=function(){function e(i){var C=this.element=q(i);C.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var C=document.styleSheets,w=0,x=C.length;w<x;w++){var O=C[w];if(O.ownerNode===i)return O}D(17)}(C),this.length=0}var i=e.prototype;return i.insertRule=function(i,C){try{return this.sheet.insertRule(C,i),this.length++,!0}catch(i){return!1}},i.deleteRule=function(i){this.sheet.deleteRule(i),this.length--},i.getRule=function(i){var C=this.sheet.cssRules[i];return void 0!==C&&"string"==typeof C.cssText?C.cssText:""},e}(),Se=function(){function e(i){var C=this.element=q(i);this.nodes=C.childNodes,this.length=0}var i=e.prototype;return i.insertRule=function(i,C){if(i<=this.length&&i>=0){var w=document.createTextNode(C),x=this.nodes[i];return this.element.insertBefore(w,x||null),this.length++,!0}return!1},i.deleteRule=function(i){this.element.removeChild(this.nodes[i]),this.length--},i.getRule=function(i){return i<this.length?this.nodes[i].textContent:""},e}(),Pe=function(){function e(i){this.rules=[],this.length=0}var i=e.prototype;return i.insertRule=function(i,C){return i<=this.length&&(this.rules.splice(i,0,C),this.length++,!0)},i.deleteRule=function(i){this.rules.splice(i,1),this.length--},i.getRule=function(i){return i<this.length?this.rules[i]:""},e}(),Ie=le,Re={isServer:!le,useCSSOMInjection:!ue},Me=function(){function e(i,C,w){void 0===i&&(i=re),void 0===C&&(C={}),this.options=y({},Re,{},i),this.gs=C,this.names=new Map(w),this.server=!!i.isServer,!this.server&&le&&Ie&&(Ie=!1,function(i){for(var C=document.querySelectorAll(ye),w=0,x=C.length;w<x;w++){var O=C[w];O&&"active"!==O.getAttribute(oe)&&(F(i,O),O.parentNode&&O.parentNode.removeChild(O))}}(this))}e.registerId=function(i){return V(i)};var i=e.prototype;return i.reconstructWithOptions=function(i,C){return void 0===C&&(C=!0),new e(y({},this.options,{},i),this.gs,C&&this.names||void 0)},i.allocateGSInstance=function(i){return this.gs[i]=(this.gs[i]||0)+1},i.getTag=function(){return this.tag||(this.tag=(w=(C=this.options).isServer,x=C.useCSSOMInjection,O=C.target,i=w?new Pe(O):x?new Ce(O):new Se(O),new se(i)));var i,C,w,x,O},i.hasNameForId=function(i,C){return this.names.has(i)&&this.names.get(i).has(C)},i.registerName=function(i,C){if(V(i),this.names.has(i))this.names.get(i).add(C);else{var w=new Set;w.add(C),this.names.set(i,w)}},i.insertRules=function(i,C,w){this.registerName(i,C),this.getTag().insertRules(V(i),w)},i.clearNames=function(i){this.names.has(i)&&this.names.get(i).clear()},i.clearRules=function(i){this.getTag().clearGroup(V(i)),this.clearNames(i)},i.clearTag=function(){this.tag=void 0},i.toString=function(){return function(i){for(var C=i.getTag(),w=C.length,x="",O=0;O<w;O++){var S=B(O);if(void 0!==S){var k=i.names.get(S),I=C.getGroup(O);if(k&&I&&k.size){var R=oe+".g"+O+'[id="'+S+'"]',j="";void 0!==k&&k.forEach((function(i){i.length>0&&(j+=i+",")})),x+=""+I+R+'{content:"'+j+'"}/*!sc*/\n'}}}return x}(this)},e}(),De=/(a)(d)/gi,K=function(i){return String.fromCharCode(i+(i>25?39:97))};function Q(i){var C,w="";for(C=Math.abs(i);C>52;C=C/52|0)w=K(C%52)+w;return(K(C%52)+w).replace(De,"$1-$2")}var ee=function(i,C){for(var w=C.length;w;)i=33*i^C.charCodeAt(--w);return i},te=function(i){return ee(5381,i)};function ne(i){for(var C=0;C<i.length;C+=1){var w=i[C];if(E(w)&&!_(w))return!1}return!0}var Fe=te("5.3.11"),He=function(){function e(i,C,w){this.rules=i,this.staticRulesId="",this.isStatic=(void 0===w||w.isStatic)&&ne(i),this.componentId=C,this.baseHash=ee(Fe,C),this.baseStyle=w,Me.registerId(C)}return e.prototype.generateAndInjectStyles=function(i,C,w){var x=this.componentId,O=[];if(this.baseStyle&&O.push(this.baseStyle.generateAndInjectStyles(i,C,w)),this.isStatic&&!w.hash)if(this.staticRulesId&&C.hasNameForId(x,this.staticRulesId))O.push(this.staticRulesId);else{var S=_e(this.rules,i,C,w).join(""),k=Q(ee(this.baseHash,S)>>>0);if(!C.hasNameForId(x,k)){var I=w(S,"."+k,void 0,x);C.insertRules(x,k,I)}O.push(k),this.staticRulesId=k}else{for(var R=this.rules.length,j=ee(this.baseHash,w.hash),W="",N=0;N<R;N++){var G=this.rules[N];if("string"==typeof G)W+=G;else if(G){var $=_e(G,i,C,w),J=Array.isArray($)?$.join(""):$;j=ee(j,J+N),W+=J}}if(W){var re=Q(j>>>0);if(!C.hasNameForId(x,re)){var oe=w(W,"."+re,void 0,x);C.insertRules(x,re,oe)}O.push(re)}}return O.join(" ")},e}(),Ue=/^\s*\/\/.*$/gm,Ge=[":","[",".","#"];function ae(i){var C,w,x,O,S=void 0===i?re:i,k=S.options,I=void 0===k?re:k,j=S.plugins,W=void 0===j?J:j,N=new R(I),G=[],$=function(i){function t(C){if(C)try{i(C+"}")}catch(i){}}return function(C,w,x,O,S,k,I,R,j,W){switch(C){case 1:if(0===j&&64===w.charCodeAt(0))return i(w+";"),"";break;case 2:if(0===R)return w+"/*|*/";break;case 3:switch(R){case 102:case 112:return i(x[0]+w),"";default:return w+(0===W?"/*|*/":"")}case-2:w.split("/*|*/}").forEach(t)}}}((function(i){G.push(i)})),f=function(i,x,S){return 0===x&&-1!==Ge.indexOf(S[w.length])||S.match(O)?i:"."+C};function m(i,S,k,I){void 0===I&&(I="&");var R=i.replace(Ue,""),j=S&&k?k+" "+S+" { "+R+" }":R;return C=I,w=S,x=new RegExp("\\"+w+"\\b","g"),O=new RegExp("(\\"+w+"\\b){2,}"),N(k||!S?"":S,j)}return N.use([].concat(W,[function(i,C,O){2===i&&O.length&&O[0].lastIndexOf(w)>0&&(O[0]=O[0].replace(x,f))},$,function(i){if(-2===i){var C=G;return G=[],C}}])),m.hash=W.length?W.reduce((function(i,C){return C.name||D(15),ee(i,C.name)}),5381).toString():"",m}var Ze=S().createContext(),Ke=Ze.Consumer,Qe=S().createContext(),et=(Qe.Consumer,new Me),tt=ae();function pe(){return(0,O.useContext)(Ze)||et}function fe(){return(0,O.useContext)(Qe)||tt}function me(i){var C=(0,O.useState)(i.stylisPlugins),w=C[0],x=C[1],k=pe(),R=(0,O.useMemo)((function(){var C=k;return i.sheet?C=i.sheet:i.target&&(C=C.reconstructWithOptions({target:i.target},!1)),i.disableCSSOMInjection&&(C=C.reconstructWithOptions({useCSSOMInjection:!1})),C}),[i.disableCSSOMInjection,i.sheet,i.target]),j=(0,O.useMemo)((function(){return ae({options:{prefix:!i.disableVendorPrefixes},plugins:w})}),[i.disableVendorPrefixes,w]);return(0,O.useEffect)((function(){I()(w,i.stylisPlugins)||x(i.stylisPlugins)}),[i.stylisPlugins]),S().createElement(Ze.Provider,{value:R},S().createElement(Qe.Provider,{value:j},i.children))}var nt=function(){function e(i,C){var w=this;this.inject=function(i,C){void 0===C&&(C=tt);var x=w.name+C.hash;i.hasNameForId(w.id,x)||i.insertRules(w.id,x,C(w.rules,x,"@keyframes"))},this.toString=function(){return D(12,String(w.name))},this.name=i,this.id="sc-keyframes-"+i,this.rules=C}return e.prototype.getName=function(i){return void 0===i&&(i=tt),this.name+i.hash},e}(),rt=/([A-Z])/,ot=/([A-Z])/g,at=/^ms-/,we=function(i){return"-"+i.toLowerCase()};function Ee(i){return rt.test(i)?i.replace(ot,we).replace(at,"-ms-"):i}var be=function(i){return null==i||!1===i||""===i};function _e(i,C,w,x){if(Array.isArray(i)){for(var O,S=[],k=0,I=i.length;k<I;k+=1)""!==(O=_e(i[k],C,w,x))&&(Array.isArray(O)?S.push.apply(S,O):S.push(O));return S}return be(i)?"":_(i)?"."+i.styledComponentId:E(i)?"function"!=typeof(R=i)||R.prototype&&R.prototype.isReactComponent||!C?i:_e(i(C),C,w,x):i instanceof nt?w?(i.inject(w,x),i.getName(x)):i:g(i)?function e(i,C){var w,x,O=[];for(var S in i)i.hasOwnProperty(S)&&!be(i[S])&&(Array.isArray(i[S])&&i[S].isCss||E(i[S])?O.push(Ee(S)+":",i[S],";"):g(i[S])?O.push.apply(O,e(i[S],S)):O.push(Ee(S)+": "+(w=S,(null==(x=i[S])||"boolean"==typeof x||""===x?"":"number"!=typeof x||0===x||w in j||w.startsWith("--")?String(x).trim():x+"px")+";")));return C?[C+" {"].concat(O,["}"]):O}(i):i.toString();var R}var Ne=function(i){return Array.isArray(i)&&(i.isCss=!0),i};function Ae(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x<C;x++)w[x-1]=arguments[x];return E(i)||g(i)?Ne(_e(v(J,[i].concat(w)))):0===w.length&&1===i.length&&"string"==typeof i[0]?i:Ne(_e(v(i,w)))}new Set;var Oe=function(i,C,w){return void 0===w&&(w=re),i.theme!==w.theme&&i.theme||C||w.theme},it=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lt=/(^-|-$)/g;function je(i){return i.replace(it,"-").replace(lt,"")}var Te=function(i){return Q(te(i)>>>0)};function xe(i){return"string"==typeof i&&!0}var ke=function(i){return"function"==typeof i||"object"==typeof i&&null!==i&&!Array.isArray(i)},Ve=function(i){return"__proto__"!==i&&"constructor"!==i&&"prototype"!==i};function Be(i,C,w){var x=i[w];ke(C)&&ke(x)?ze(x,C):i[w]=C}function ze(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x<C;x++)w[x-1]=arguments[x];for(var O=0,S=w;O<S.length;O++){var k=S[O];if(ke(k))for(var I in k)Ve(I)&&Be(i,k[I],I)}return i}var ut=S().createContext(),ct=ut.Consumer;function Le(i){var C=(0,O.useContext)(ut),w=(0,O.useMemo)((function(){return function(i,C){return i?E(i)?i(C):Array.isArray(i)||"object"!=typeof i?D(8):C?y({},C,{},i):i:D(14)}(i.theme,C)}),[i.theme,C]);return i.children?S().createElement(ut.Provider,{value:w},i.children):null}var st={};function Ye(i,C,w){var x=_(i),k=!xe(i),I=C.attrs,R=void 0===I?J:I,j=C.componentId,W=void 0===j?function(i,C){var w="string"!=typeof i?"sc":je(i);st[w]=(st[w]||0)+1;var x=w+"-"+Te("5.3.11"+w+st[w]);return C?C+"-"+x:x}(C.displayName,C.parentComponentId):j,G=C.displayName,oe=void 0===G?function(i){return xe(i)?"styled."+i:"Styled("+b(i)+")"}(i):G,ie=C.displayName&&C.componentId?je(C.displayName)+"-"+C.componentId:C.componentId||W,le=x&&i.attrs?Array.prototype.concat(i.attrs,R).filter(Boolean):R,ue=C.shouldForwardProp;x&&i.shouldForwardProp&&(ue=C.shouldForwardProp?function(w,x,O){return i.shouldForwardProp(w,x,O)&&C.shouldForwardProp(w,x,O)}:i.shouldForwardProp);var ce,se=new He(w,ie,x?i.componentStyle:void 0),de=se.isStatic&&0===R.length,P=function(i,C){return function(i,C,w,x){var S=i.attrs,k=i.componentStyle,I=i.defaultProps,R=i.foldedComponentIds,j=i.shouldForwardProp,W=i.styledComponentId,G=i.target,$=function(i,C,w){void 0===i&&(i=re);var x=y({},C,{theme:i}),O={};return w.forEach((function(i){var C,w,S,k=i;for(C in E(k)&&(k=k(x)),k)x[C]=O[C]="className"===C?(w=O[C],S=k[C],w&&S?w+" "+S:w||S):k[C]})),[x,O]}(Oe(C,(0,O.useContext)(ut),I)||re,C,S),J=$[0],oe=$[1],ie=function(i,C,w,x){var O=pe(),S=fe();return C?i.generateAndInjectStyles(re,O,S):i.generateAndInjectStyles(w,O,S)}(k,x,J),le=w,ue=oe.$as||C.$as||oe.as||C.as||G,ce=xe(ue),se=oe!==C?y({},C,{},oe):C,de={};for(var he in se)"$"!==he[0]&&"as"!==he&&("forwardedAs"===he?de.as=se[he]:(j?j(he,N,ue):!ce||N(he))&&(de[he]=se[he]));return C.style&&oe.style!==C.style&&(de.style=y({},C.style,{},oe.style)),de.className=Array.prototype.concat(R,W,ie!==W?ie:null,C.className,oe.className).filter(Boolean).join(" "),de.ref=le,(0,O.createElement)(ue,de)}(ce,i,C,de)};return P.displayName=oe,(ce=S().forwardRef(P)).attrs=le,ce.componentStyle=se,ce.displayName=oe,ce.shouldForwardProp=ue,ce.foldedComponentIds=x?Array.prototype.concat(i.foldedComponentIds,i.styledComponentId):J,ce.styledComponentId=ie,ce.target=x?i.target:i,ce.withComponent=function(i){var x=C.componentId,O=function(i,C){if(null==i)return{};var w,x,O={},S=Object.keys(i);for(x=0;x<S.length;x++)w=S[x],C.indexOf(w)>=0||(O[w]=i[w]);return O}(C,["componentId"]),S=x&&x+"-"+(xe(i)?i:je(b(i)));return Ye(i,y({},O,{attrs:le,componentId:S}),w)},Object.defineProperty(ce,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=x?ze({},i.defaultProps,C):C}}),Object.defineProperty(ce,"toString",{value:function(){return"."+ce.styledComponentId}}),k&&$()(ce,i,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),ce}var qe=function(i){return function e(i,C,w){if(void 0===w&&(w=re),!(0,x.isValidElementType)(C))return D(1,String(C));var s=function(){return i(C,w,Ae.apply(void 0,arguments))};return s.withConfig=function(x){return e(i,C,y({},w,{},x))},s.attrs=function(x){return e(i,C,y({},w,{attrs:Array.prototype.concat(w.attrs,x).filter(Boolean)}))},s}(Ye,i)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(i){qe[i]=qe(i)}));var dt=function(){function e(i,C){this.rules=i,this.componentId=C,this.isStatic=ne(i),Me.registerId(this.componentId+1)}var i=e.prototype;return i.createStyles=function(i,C,w,x){var O=x(_e(this.rules,C,w,x).join(""),""),S=this.componentId+i;w.insertRules(S,S,O)},i.removeStyles=function(i,C){C.clearRules(this.componentId+i)},i.renderStyles=function(i,C,w,x){i>2&&Me.registerId(this.componentId+i),this.removeStyles(i,w),this.createStyles(i,C,w,x)},e}();function $e(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x<C;x++)w[x-1]=arguments[x];var k=Ae.apply(void 0,[i].concat(w)),I="sc-global-"+Te(JSON.stringify(k)),R=new dt(k,I);function d(i){var C=pe(),w=fe(),x=(0,O.useContext)(ut),S=(0,O.useRef)(C.allocateGSInstance(I)).current;return C.server&&h(S,i,C,x,w),(0,O.useLayoutEffect)((function(){if(!C.server)return h(S,i,C,x,w),function(){return R.removeStyles(S,C)}}),[S,i,C,x,w]),null}function h(i,C,w,x,O){if(R.isStatic)R.renderStyles(i,ce,w,O);else{var S=y({},C,{theme:Oe(C,x,d.defaultProps)});R.renderStyles(i,S,w,O)}}return S().memo(d)}function We(i){for(var C=arguments.length,w=new Array(C>1?C-1:0),x=1;x<C;x++)w[x-1]=arguments[x];var O=Ae.apply(void 0,[i].concat(w)).join(""),S=Te(O);return new nt(S,O)}var ft=function(){function e(){var i=this;this._emitSheetCSS=function(){var C=i.instance.toString();if(!C)return"";var w=Y();return"<style "+[w&&'nonce="'+w+'"',oe+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+C+"</style>"},this.getStyleTags=function(){return i.sealed?D(2):i._emitSheetCSS()},this.getStyleElement=function(){var C;if(i.sealed)return D(2);var w=((C={})[oe]="",C["data-styled-version"]="5.3.11",C.dangerouslySetInnerHTML={__html:i.instance.toString()},C),x=Y();return x&&(w.nonce=x),[S().createElement("style",y({},w,{key:"sc-0-0"}))]},this.seal=function(){i.sealed=!0},this.instance=new Me({isServer:!0}),this.sealed=!1}var i=e.prototype;return i.collectStyles=function(i){return this.sealed?D(2):S().createElement(me,{sheet:this.instance},i)},i.interleaveWithNodeStream=function(i){return D(3)},e}(),Je=function(i){var C=S().forwardRef((function(C,w){var x=(0,O.useContext)(ut),k=i.defaultProps,I=Oe(C,x,k);return S().createElement(i,y({},C,{theme:I,ref:w}))}));return $()(C,i),C.displayName="WithTheme("+b(i)+")",C},Xe=function(){return(0,O.useContext)(ut)},pt={StyleSheet:Me,masterSheet:et};const mt=qe},37244:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function isFQDN(i,C){(0,x.default)(i),(C=(0,O.default)(C,S)).allow_trailing_dot&&"."===i[i.length-1]&&(i=i.substring(0,i.length-1));!0===C.allow_wildcard&&0===i.indexOf("*.")&&(i=i.substring(2));var w=i.split("."),k=w[w.length-1];if(C.require_tld){if(w.length<2)return!1;if(!C.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(k))return!1;if(/\s/.test(k))return!1}if(!C.allow_numeric_tld&&/^\d+$/.test(k))return!1;return w.every((function(i){return!(i.length>63&&!C.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)&&(!/[\uff01-\uff5e]/.test(i)&&(!/^-|-$/.test(i)&&!(!C.allow_underscores&&/_/.test(i)))))}))};var x=_interopRequireDefault(w(7774)),O=_interopRequireDefault(w(85092));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}var S={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};i.exports=C.default,i.exports.default=C.default},91540:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function isIP(i){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,x.default)(i),!(C=String(C)))return isIP(i,4)||isIP(i,6);if("4"===C)return k.test(i);if("6"===C)return R.test(i);return!1};var x=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}(w(7774));var O="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",S="(".concat(O,"[.]){3}").concat(O),k=new RegExp("^".concat(S,"$")),I="(?:[0-9a-fA-F]{1,4})",R=new RegExp("^("+"(?:".concat(I,":){7}(?:").concat(I,"|:)|")+"(?:".concat(I,":){6}(?:").concat(S,"|:").concat(I,"|:)|")+"(?:".concat(I,":){5}(?::").concat(S,"|(:").concat(I,"){1,2}|:)|")+"(?:".concat(I,":){4}(?:(:").concat(I,"){0,1}:").concat(S,"|(:").concat(I,"){1,3}|:)|")+"(?:".concat(I,":){3}(?:(:").concat(I,"){0,2}:").concat(S,"|(:").concat(I,"){1,4}|:)|")+"(?:".concat(I,":){2}(?:(:").concat(I,"){0,3}:").concat(S,"|(:").concat(I,"){1,5}|:)|")+"(?:".concat(I,":){1}(?:(:").concat(I,"){0,4}:").concat(S,"|(:").concat(I,"){1,6}|:)|")+"(?::((?::".concat(I,"){0,5}:").concat(S,"|(?::").concat(I,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");i.exports=C.default,i.exports.default=C.default},50429:(i,C,w)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function isURL(i,C){if((0,x.default)(i),!i||/[\s<>]/.test(i))return!1;if(0===i.indexOf("mailto:"))return!1;if((C=(0,k.default)(C,I)).validate_length&&i.length>=2083)return!1;if(!C.allow_fragments&&i.includes("#"))return!1;if(!C.allow_query_components&&(i.includes("?")||i.includes("&")))return!1;var w,j,W,N,G,$,J,re;if(J=i.split("#"),i=J.shift(),J=i.split("?"),i=J.shift(),(J=i.split("://")).length>1){if(w=J.shift().toLowerCase(),C.require_valid_protocol&&-1===C.protocols.indexOf(w))return!1}else{if(C.require_protocol)return!1;if("//"===i.slice(0,2)){if(!C.allow_protocol_relative_urls)return!1;J[0]=i.slice(2)}}if(""===(i=J.join("://")))return!1;if(J=i.split("/"),""===(i=J.shift())&&!C.require_host)return!0;if((J=i.split("@")).length>1){if(C.disallow_auth)return!1;if(""===J[0])return!1;if((j=J.shift()).indexOf(":")>=0&&j.split(":").length>2)return!1;var oe=function _slicedToArray(i,C){return function _arrayWithHoles(i){if(Array.isArray(i))return i}(i)||function _iterableToArrayLimit(i,C){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(i)))return;var w=[],x=!0,O=!1,S=void 0;try{for(var k,I=i[Symbol.iterator]();!(x=(k=I.next()).done)&&(w.push(k.value),!C||w.length!==C);x=!0);}catch(i){O=!0,S=i}finally{try{x||null==I.return||I.return()}finally{if(O)throw S}}return w}(i,C)||function _unsupportedIterableToArray(i,C){if(!i)return;if("string"==typeof i)return _arrayLikeToArray(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);"Object"===w&&i.constructor&&(w=i.constructor.name);if("Map"===w||"Set"===w)return Array.from(i);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return _arrayLikeToArray(i,C)}(i,C)||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.")}()}(j.split(":"),2),ie=oe[0],le=oe[1];if(""===ie&&""===le)return!1}N=J.join("@"),$=null,re=null;var ue=N.match(R);ue?(W="",re=ue[1],$=ue[2]||null):(W=(J=N.split(":")).shift(),J.length&&($=J.join(":")));if(null!==$&&$.length>0){if(G=parseInt($,10),!/^[0-9]+$/.test($)||G<=0||G>65535)return!1}else if(C.require_port)return!1;if(C.host_whitelist)return checkHost(W,C.host_whitelist);if(""===W&&!C.require_host)return!0;if(!((0,S.default)(W)||(0,O.default)(W,C)||re&&(0,S.default)(re,6)))return!1;if(W=W||re,C.host_blacklist&&checkHost(W,C.host_blacklist))return!1;return!0};var x=_interopRequireDefault(w(7774)),O=_interopRequireDefault(w(37244)),S=_interopRequireDefault(w(91540)),k=_interopRequireDefault(w(85092));function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}}function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x}var I={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},R=/^\[([^\]]+)\](?::([0-9]+))?$/;function checkHost(i,C){for(var w=0;w<C.length;w++){var x=C[w];if(i===x||(O=x,"[object RegExp]"===Object.prototype.toString.call(O)&&x.test(i)))return!0}var O;return!1}i.exports=C.default,i.exports.default=C.default},7774:(i,C)=>{"use strict";function _typeof(i){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(i){return typeof i}:function _typeof(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(i)}Object.defineProperty(C,"__esModule",{value:!0}),C.default=function assertString(i){if(!("string"==typeof i||i instanceof String)){var C=_typeof(i);throw null===i?C="null":"object"===C&&(C=i.constructor.name),new TypeError("Expected a string but received a ".concat(C))}},i.exports=C.default,i.exports.default=C.default},85092:(i,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.default=function merge(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},C=arguments.length>1?arguments[1]:void 0;for(var w in C)void 0===i[w]&&(i[w]=C[w]);return i},i.exports=C.default,i.exports.default=C.default},87363:i=>{"use strict";i.exports=React},61533:i=>{"use strict";i.exports=ReactDOM},34029:i=>{"use strict";i.exports=elementorV2.icons},36626:i=>{"use strict";i.exports=elementorV2.ui},38003:i=>{"use strict";i.exports=wp.i18n},98106:i=>{i.exports=function _arrayLikeToArray(i,C){(null==C||C>i.length)&&(C=i.length);for(var w=0,x=new Array(C);w<C;w++)x[w]=i[w];return x},i.exports.__esModule=!0,i.exports.default=i.exports},17358:i=>{i.exports=function _arrayWithHoles(i){if(Array.isArray(i))return i},i.exports.__esModule=!0,i.exports.default=i.exports},34102:(i,C,w)=>{var x=w(98106);i.exports=function _arrayWithoutHoles(i){if(Array.isArray(i))return x(i)},i.exports.__esModule=!0,i.exports.default=i.exports},10029:i=>{function asyncGeneratorStep(i,C,w,x,O,S,k){try{var I=i[S](k),R=I.value}catch(i){return void w(i)}I.done?C(R):Promise.resolve(R).then(x,O)}i.exports=function _asyncToGenerator(i){return function(){var C=this,w=arguments;return new Promise((function(x,O){var S=i.apply(C,w);function _next(i){asyncGeneratorStep(S,x,O,_next,_throw,"next",i)}function _throw(i){asyncGeneratorStep(S,x,O,_next,_throw,"throw",i)}_next(void 0)}))}},i.exports.__esModule=!0,i.exports.default=i.exports},93231:(i,C,w)=>{var x=w(74040);i.exports=function _defineProperty(i,C,w){return(C=x(C))in i?Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}):i[C]=w,i},i.exports.__esModule=!0,i.exports.default=i.exports},73119:i=>{function _extends(){return i.exports=_extends=Object.assign?Object.assign.bind():function(i){for(var C=1;C<arguments.length;C++){var w=arguments[C];for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(i[x]=w[x])}return i},i.exports.__esModule=!0,i.exports.default=i.exports,_extends.apply(this,arguments)}i.exports=_extends,i.exports.__esModule=!0,i.exports.default=i.exports},73203:i=>{i.exports=function _interopRequireDefault(i){return i&&i.__esModule?i:{default:i}},i.exports.__esModule=!0,i.exports.default=i.exports},68:i=>{i.exports=function _iterableToArray(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)},i.exports.__esModule=!0,i.exports.default=i.exports},40608:i=>{i.exports=function _iterableToArrayLimit(i,C){var w=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=w){var x,O,S,k,I=[],R=!0,j=!1;try{if(S=(w=w.call(i)).next,0===C){if(Object(w)!==w)return;R=!1}else for(;!(R=(x=S.call(w)).done)&&(I.push(x.value),I.length!==C);R=!0);}catch(i){j=!0,O=i}finally{try{if(!R&&null!=w.return&&(k=w.return(),Object(k)!==k))return}finally{if(j)throw O}}return I}},i.exports.__esModule=!0,i.exports.default=i.exports},56894:i=>{i.exports=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.")},i.exports.__esModule=!0,i.exports.default=i.exports},91282:i=>{i.exports=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.")},i.exports.__esModule=!0,i.exports.default=i.exports},70966:(i,C,w)=>{var x=w(22412);i.exports=function _objectWithoutProperties(i,C){if(null==i)return{};var w,O,S=x(i,C);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(i);for(O=0;O<k.length;O++)w=k[O],C.indexOf(w)>=0||Object.prototype.propertyIsEnumerable.call(i,w)&&(S[w]=i[w])}return S},i.exports.__esModule=!0,i.exports.default=i.exports},22412:i=>{i.exports=function _objectWithoutPropertiesLoose(i,C){if(null==i)return{};var w,x,O={},S=Object.keys(i);for(x=0;x<S.length;x++)w=S[x],C.indexOf(w)>=0||(O[w]=i[w]);return O},i.exports.__esModule=!0,i.exports.default=i.exports},21337:(i,C,w)=>{var x=w(7501).default;function _regeneratorRuntime(){"use strict";i.exports=_regeneratorRuntime=function _regeneratorRuntime(){return w},i.exports.__esModule=!0,i.exports.default=i.exports;var C,w={},O=Object.prototype,S=O.hasOwnProperty,k=Object.defineProperty||function(i,C,w){i[C]=w.value},I="function"==typeof Symbol?Symbol:{},R=I.iterator||"@@iterator",j=I.asyncIterator||"@@asyncIterator",W=I.toStringTag||"@@toStringTag";function define(i,C,w){return Object.defineProperty(i,C,{value:w,enumerable:!0,configurable:!0,writable:!0}),i[C]}try{define({},"")}catch(C){define=function define(i,C,w){return i[C]=w}}function wrap(i,C,w,x){var O=C&&C.prototype instanceof Generator?C:Generator,S=Object.create(O.prototype),I=new Context(x||[]);return k(S,"_invoke",{value:makeInvokeMethod(i,w,I)}),S}function tryCatch(i,C,w){try{return{type:"normal",arg:i.call(C,w)}}catch(i){return{type:"throw",arg:i}}}w.wrap=wrap;var N="suspendedStart",G="suspendedYield",$="executing",J="completed",re={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var oe={};define(oe,R,(function(){return this}));var ie=Object.getPrototypeOf,le=ie&&ie(ie(values([])));le&&le!==O&&S.call(le,R)&&(oe=le);var ue=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(oe);function defineIteratorMethods(i){["next","throw","return"].forEach((function(C){define(i,C,(function(i){return this._invoke(C,i)}))}))}function AsyncIterator(i,C){function invoke(w,O,k,I){var R=tryCatch(i[w],i,O);if("throw"!==R.type){var j=R.arg,W=j.value;return W&&"object"==x(W)&&S.call(W,"__await")?C.resolve(W.__await).then((function(i){invoke("next",i,k,I)}),(function(i){invoke("throw",i,k,I)})):C.resolve(W).then((function(i){j.value=i,k(j)}),(function(i){return invoke("throw",i,k,I)}))}I(R.arg)}var w;k(this,"_invoke",{value:function value(i,x){function callInvokeWithMethodAndArg(){return new C((function(C,w){invoke(i,x,C,w)}))}return w=w?w.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(i,w,x){var O=N;return function(S,k){if(O===$)throw new Error("Generator is already running");if(O===J){if("throw"===S)throw k;return{value:C,done:!0}}for(x.method=S,x.arg=k;;){var I=x.delegate;if(I){var R=maybeInvokeDelegate(I,x);if(R){if(R===re)continue;return R}}if("next"===x.method)x.sent=x._sent=x.arg;else if("throw"===x.method){if(O===N)throw O=J,x.arg;x.dispatchException(x.arg)}else"return"===x.method&&x.abrupt("return",x.arg);O=$;var j=tryCatch(i,w,x);if("normal"===j.type){if(O=x.done?J:G,j.arg===re)continue;return{value:j.arg,done:x.done}}"throw"===j.type&&(O=J,x.method="throw",x.arg=j.arg)}}}function maybeInvokeDelegate(i,w){var x=w.method,O=i.iterator[x];if(O===C)return w.delegate=null,"throw"===x&&i.iterator.return&&(w.method="return",w.arg=C,maybeInvokeDelegate(i,w),"throw"===w.method)||"return"!==x&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+x+"' method")),re;var S=tryCatch(O,i.iterator,w.arg);if("throw"===S.type)return w.method="throw",w.arg=S.arg,w.delegate=null,re;var k=S.arg;return k?k.done?(w[i.resultName]=k.value,w.next=i.nextLoc,"return"!==w.method&&(w.method="next",w.arg=C),w.delegate=null,re):k:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,re)}function pushTryEntry(i){var C={tryLoc:i[0]};1 in i&&(C.catchLoc=i[1]),2 in i&&(C.finallyLoc=i[2],C.afterLoc=i[3]),this.tryEntries.push(C)}function resetTryEntry(i){var C=i.completion||{};C.type="normal",delete C.arg,i.completion=C}function Context(i){this.tryEntries=[{tryLoc:"root"}],i.forEach(pushTryEntry,this),this.reset(!0)}function values(i){if(i||""===i){var w=i[R];if(w)return w.call(i);if("function"==typeof i.next)return i;if(!isNaN(i.length)){var O=-1,k=function next(){for(;++O<i.length;)if(S.call(i,O))return next.value=i[O],next.done=!1,next;return next.value=C,next.done=!0,next};return k.next=k}}throw new TypeError(x(i)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,k(ue,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),k(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,W,"GeneratorFunction"),w.isGeneratorFunction=function(i){var C="function"==typeof i&&i.constructor;return!!C&&(C===GeneratorFunction||"GeneratorFunction"===(C.displayName||C.name))},w.mark=function(i){return Object.setPrototypeOf?Object.setPrototypeOf(i,GeneratorFunctionPrototype):(i.__proto__=GeneratorFunctionPrototype,define(i,W,"GeneratorFunction")),i.prototype=Object.create(ue),i},w.awrap=function(i){return{__await:i}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,j,(function(){return this})),w.AsyncIterator=AsyncIterator,w.async=function(i,C,x,O,S){void 0===S&&(S=Promise);var k=new AsyncIterator(wrap(i,C,x,O),S);return w.isGeneratorFunction(C)?k:k.next().then((function(i){return i.done?i.value:k.next()}))},defineIteratorMethods(ue),define(ue,W,"Generator"),define(ue,R,(function(){return this})),define(ue,"toString",(function(){return"[object Generator]"})),w.keys=function(i){var C=Object(i),w=[];for(var x in C)w.push(x);return w.reverse(),function next(){for(;w.length;){var i=w.pop();if(i in C)return next.value=i,next.done=!1,next}return next.done=!0,next}},w.values=values,Context.prototype={constructor:Context,reset:function reset(i){if(this.prev=0,this.next=0,this.sent=this._sent=C,this.done=!1,this.delegate=null,this.method="next",this.arg=C,this.tryEntries.forEach(resetTryEntry),!i)for(var w in this)"t"===w.charAt(0)&&S.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=C)},stop:function stop(){this.done=!0;var i=this.tryEntries[0].completion;if("throw"===i.type)throw i.arg;return this.rval},dispatchException:function dispatchException(i){if(this.done)throw i;var w=this;function handle(x,O){return k.type="throw",k.arg=i,w.next=x,O&&(w.method="next",w.arg=C),!!O}for(var x=this.tryEntries.length-1;x>=0;--x){var O=this.tryEntries[x],k=O.completion;if("root"===O.tryLoc)return handle("end");if(O.tryLoc<=this.prev){var I=S.call(O,"catchLoc"),R=S.call(O,"finallyLoc");if(I&&R){if(this.prev<O.catchLoc)return handle(O.catchLoc,!0);if(this.prev<O.finallyLoc)return handle(O.finallyLoc)}else if(I){if(this.prev<O.catchLoc)return handle(O.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<O.finallyLoc)return handle(O.finallyLoc)}}}},abrupt:function abrupt(i,C){for(var w=this.tryEntries.length-1;w>=0;--w){var x=this.tryEntries[w];if(x.tryLoc<=this.prev&&S.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var O=x;break}}O&&("break"===i||"continue"===i)&&O.tryLoc<=C&&C<=O.finallyLoc&&(O=null);var k=O?O.completion:{};return k.type=i,k.arg=C,O?(this.method="next",this.next=O.finallyLoc,re):this.complete(k)},complete:function complete(i,C){if("throw"===i.type)throw i.arg;return"break"===i.type||"continue"===i.type?this.next=i.arg:"return"===i.type?(this.rval=this.arg=i.arg,this.method="return",this.next="end"):"normal"===i.type&&C&&(this.next=C),re},finish:function finish(i){for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C];if(w.finallyLoc===i)return this.complete(w.completion,w.afterLoc),resetTryEntry(w),re}},catch:function _catch(i){for(var C=this.tryEntries.length-1;C>=0;--C){var w=this.tryEntries[C];if(w.tryLoc===i){var x=w.completion;if("throw"===x.type){var O=x.arg;resetTryEntry(w)}return O}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(i,w,x){return this.delegate={iterator:values(i),resultName:w,nextLoc:x},"next"===this.method&&(this.arg=C),re}},w}i.exports=_regeneratorRuntime,i.exports.__esModule=!0,i.exports.default=i.exports},40131:(i,C,w)=>{var x=w(17358),O=w(40608),S=w(35068),k=w(56894);i.exports=function _slicedToArray(i,C){return x(i)||O(i,C)||S(i,C)||k()},i.exports.__esModule=!0,i.exports.default=i.exports},79769:i=>{i.exports=function _taggedTemplateLiteral(i,C){return C||(C=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(C)}}))},i.exports.__esModule=!0,i.exports.default=i.exports},9833:(i,C,w)=>{var x=w(34102),O=w(68),S=w(35068),k=w(91282);i.exports=function _toConsumableArray(i){return x(i)||O(i)||S(i)||k()},i.exports.__esModule=!0,i.exports.default=i.exports},56027:(i,C,w)=>{var x=w(7501).default;i.exports=function toPrimitive(i,C){if("object"!=x(i)||!i)return i;var w=i[Symbol.toPrimitive];if(void 0!==w){var O=w.call(i,C||"default");if("object"!=x(O))return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===C?String:Number)(i)},i.exports.__esModule=!0,i.exports.default=i.exports},74040:(i,C,w)=>{var x=w(7501).default,O=w(56027);i.exports=function toPropertyKey(i){var C=O(i,"string");return"symbol"==x(C)?C:String(C)},i.exports.__esModule=!0,i.exports.default=i.exports},7501:i=>{function _typeof(C){return i.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},i.exports.__esModule=!0,i.exports.default=i.exports,_typeof(C)}i.exports=_typeof,i.exports.__esModule=!0,i.exports.default=i.exports},35068:(i,C,w)=>{var x=w(98106);i.exports=function _unsupportedIterableToArray(i,C){if(i){if("string"==typeof i)return x(i,C);var w=Object.prototype.toString.call(i).slice(8,-1);return"Object"===w&&i.constructor&&(w=i.constructor.name),"Map"===w||"Set"===w?Array.from(i):"Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?x(i,C):void 0}},i.exports.__esModule=!0,i.exports.default=i.exports},50824:(i,C,w)=>{var x=w(21337)();i.exports=x;try{regeneratorRuntime=x}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},51068:(i,C,w)=>{"use strict";w.r(C),w.d(C,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var x={};w.r(x),w.d(x,{attentionMarkers:()=>At,contentInitial:()=>Pt,disable:()=>Mt,document:()=>St,flow:()=>It,flowInitial:()=>kt,insideSpan:()=>jt,string:()=>Tt,text:()=>Rt});var O={};w.r(O),w.d(O,{boolean:()=>$t,booleanish:()=>Yt,commaOrSpaceSeparated:()=>Jt,commaSeparated:()=>Qt,number:()=>Kt,overloadedBoolean:()=>Zt,spaceSeparated:()=>Xt});const S=["http","https","mailto","tel"];function uriTransformer(i){const C=(i||"").trim(),w=C.charAt(0);if("#"===w||"/"===w)return C;const x=C.indexOf(":");if(-1===x)return C;let O=-1;for(;++O<S.length;){const i=S[O];if(x===i.length&&C.slice(0,i.length).toLowerCase()===i)return C}return O=C.indexOf("?"),-1!==O&&x>O?C:(O=C.indexOf("#"),-1!==O&&x>O?C:"javascript:void(0)")}var k=w(87363),I=w(48809);function stringifyPosition(i){return i&&"object"==typeof i?"position"in i||"type"in i?position(i.position):"start"in i||"end"in i?position(i):"line"in i||"column"in i?point(i):"":""}function point(i){return index(i&&i.line)+":"+index(i&&i.column)}function position(i){return point(i&&i.start)+"-"+point(i&&i.end)}function index(i){return i&&"number"==typeof i?i:1}class VFileMessage extends Error{constructor(i,C,w){const x=[null,null];let O={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof C&&(w=C,C=void 0),"string"==typeof w){const i=w.indexOf(":");-1===i?x[1]=w:(x[0]=w.slice(0,i),x[1]=w.slice(i+1))}C&&("type"in C||"position"in C?C.position&&(O=C.position):"start"in C||"end"in C?O=C:("line"in C||"column"in C)&&(O.start=C)),this.name=stringifyPosition(C)||"1:1",this.message="object"==typeof i?i.message:i,this.stack="","object"==typeof i&&i.stack&&(this.stack=i.stack),this.reason=this.message,this.fatal,this.line=O.start.line,this.column=O.start.column,this.position=O,this.source=x[0],this.ruleId=x[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.fatal=null,VFileMessage.prototype.column=null,VFileMessage.prototype.line=null,VFileMessage.prototype.source=null,VFileMessage.prototype.ruleId=null,VFileMessage.prototype.position=null;const R={basename:function basename(i,C){if(void 0!==C&&"string"!=typeof C)throw new TypeError('"ext" argument must be a string');assertPath(i);let w,x=0,O=-1,S=i.length;if(void 0===C||0===C.length||C.length>i.length){for(;S--;)if(47===i.charCodeAt(S)){if(w){x=S+1;break}}else O<0&&(w=!0,O=S+1);return O<0?"":i.slice(x,O)}if(C===i)return"";let k=-1,I=C.length-1;for(;S--;)if(47===i.charCodeAt(S)){if(w){x=S+1;break}}else k<0&&(w=!0,k=S+1),I>-1&&(i.charCodeAt(S)===C.charCodeAt(I--)?I<0&&(O=S):(I=-1,O=k));x===O?O=k:O<0&&(O=i.length);return i.slice(x,O)},dirname:function dirname(i){if(assertPath(i),0===i.length)return".";let C,w=-1,x=i.length;for(;--x;)if(47===i.charCodeAt(x)){if(C){w=x;break}}else C||(C=!0);return w<0?47===i.charCodeAt(0)?"/":".":1===w&&47===i.charCodeAt(0)?"//":i.slice(0,w)},extname:function extname(i){assertPath(i);let C,w=i.length,x=-1,O=0,S=-1,k=0;for(;w--;){const I=i.charCodeAt(w);if(47!==I)x<0&&(C=!0,x=w+1),46===I?S<0?S=w:1!==k&&(k=1):S>-1&&(k=-1);else if(C){O=w+1;break}}if(S<0||x<0||0===k||1===k&&S===x-1&&S===O+1)return"";return i.slice(S,x)},join:function join(...i){let C,w=-1;for(;++w<i.length;)assertPath(i[w]),i[w]&&(C=void 0===C?i[w]:C+"/"+i[w]);return void 0===C?".":function normalize(i){assertPath(i);const C=47===i.charCodeAt(0);let w=function normalizeString(i,C){let w,x,O="",S=0,k=-1,I=0,R=-1;for(;++R<=i.length;){if(R<i.length)w=i.charCodeAt(R);else{if(47===w)break;w=47}if(47===w){if(k===R-1||1===I);else if(k!==R-1&&2===I){if(O.length<2||2!==S||46!==O.charCodeAt(O.length-1)||46!==O.charCodeAt(O.length-2))if(O.length>2){if(x=O.lastIndexOf("/"),x!==O.length-1){x<0?(O="",S=0):(O=O.slice(0,x),S=O.length-1-O.lastIndexOf("/")),k=R,I=0;continue}}else if(O.length>0){O="",S=0,k=R,I=0;continue}C&&(O=O.length>0?O+"/..":"..",S=2)}else O.length>0?O+="/"+i.slice(k+1,R):O=i.slice(k+1,R),S=R-k-1;k=R,I=0}else 46===w&&I>-1?I++:I=-1}return O}(i,!C);0!==w.length||C||(w=".");w.length>0&&47===i.charCodeAt(i.length-1)&&(w+="/");return C?"/"+w:w}(C)},sep:"/"};function assertPath(i){if("string"!=typeof i)throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}const j={cwd:function cwd(){return"/"}};function isUrl(i){return null!==i&&"object"==typeof i&&i.href&&i.origin}function urlToPath(i){if("string"==typeof i)i=new URL(i);else if(!isUrl(i)){const C=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+i+"`");throw C.code="ERR_INVALID_ARG_TYPE",C}if("file:"!==i.protocol){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return function getPathFromURLPosix(i){if(""!==i.hostname){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const C=i.pathname;let w=-1;for(;++w<C.length;)if(37===C.charCodeAt(w)&&50===C.charCodeAt(w+1)){const i=C.charCodeAt(w+2);if(70===i||102===i){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(C)}(i)}const W=["history","path","basename","stem","extname","dirname"];class VFile{constructor(i){let C;C=i?"string"==typeof i||function buffer(i){return I(i)}(i)?{value:i}:isUrl(i)?{path:i}:i:{},this.data={},this.messages=[],this.history=[],this.cwd=j.cwd(),this.value,this.stored,this.result,this.map;let w,x=-1;for(;++x<W.length;){const i=W[x];i in C&&void 0!==C[i]&&null!==C[i]&&(this[i]="history"===i?[...C[i]]:C[i])}for(w in C)W.includes(w)||(this[w]=C[w])}get path(){return this.history[this.history.length-1]}set path(i){isUrl(i)&&(i=urlToPath(i)),assertNonEmpty(i,"path"),this.path!==i&&this.history.push(i)}get dirname(){return"string"==typeof this.path?R.dirname(this.path):void 0}set dirname(i){lib_assertPath(this.basename,"dirname"),this.path=R.join(i||"",this.basename)}get basename(){return"string"==typeof this.path?R.basename(this.path):void 0}set basename(i){assertNonEmpty(i,"basename"),assertPart(i,"basename"),this.path=R.join(this.dirname||"",i)}get extname(){return"string"==typeof this.path?R.extname(this.path):void 0}set extname(i){if(assertPart(i,"extname"),lib_assertPath(this.dirname,"extname"),i){if(46!==i.charCodeAt(0))throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=R.join(this.dirname,this.stem+(i||""))}get stem(){return"string"==typeof this.path?R.basename(this.path,this.extname):void 0}set stem(i){assertNonEmpty(i,"stem"),assertPart(i,"stem"),this.path=R.join(this.dirname||"",i+(this.extname||""))}toString(i){return(this.value||"").toString(i||void 0)}message(i,C,w){const x=new VFileMessage(i,C,w);return this.path&&(x.name=this.path+":"+x.name,x.file=this.path),x.fatal=!1,this.messages.push(x),x}info(i,C,w){const x=this.message(i,C,w);return x.fatal=null,x}fail(i,C,w){const x=this.message(i,C,w);throw x.fatal=!0,x}}function assertPart(i,C){if(i&&i.includes(R.sep))throw new Error("`"+C+"` cannot be a path: did not expect `"+R.sep+"`")}function assertNonEmpty(i,C){if(!i)throw new Error("`"+C+"` cannot be empty")}function lib_assertPath(i,C){if(!i)throw new Error("Setting `"+C+"` requires `path` to be set too")}function bail(i){if(i)throw i}var N=w(50229);function isPlainObject(i){if("object"!=typeof i||null===i)return!1;const C=Object.getPrototypeOf(i);return!(null!==C&&C!==Object.prototype&&null!==Object.getPrototypeOf(C)||Symbol.toStringTag in i||Symbol.iterator in i)}function trough(){const i=[],C={run:function run(...C){let w=-1;const x=C.pop();if("function"!=typeof x)throw new TypeError("Expected function as last argument, not "+x);!function next(O,...S){const k=i[++w];let I=-1;if(O)x(O);else{for(;++I<C.length;)null!==S[I]&&void 0!==S[I]||(S[I]=C[I]);C=S,k?function wrap(i,C){let w;return wrapped;function wrapped(...C){const x=i.length>C.length;let O;x&&C.push(done);try{O=i.apply(this,C)}catch(i){if(x&&w)throw i;return done(i)}x||(O instanceof Promise?O.then(then,done):O instanceof Error?done(O):then(O))}function done(i,...x){w||(w=!0,C(i,...x))}function then(i){done(null,i)}}(k,next)(...S):x(null,...S)}}(null,...C)},use:function use(w){if("function"!=typeof w)throw new TypeError("Expected `middelware` to be a function, not "+w);return i.push(w),C}};return C}const G=function base(){const i=trough(),C=[];let w,x={},O=-1;return processor.data=function data(i,C){if("string"==typeof i)return 2===arguments.length?(assertUnfrozen("data",w),x[i]=C,processor):$.call(x,i)&&x[i]||null;if(i)return assertUnfrozen("data",w),x=i,processor;return x},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function freeze(){if(w)return processor;for(;++O<C.length;){const[w,...x]=C[O];if(!1===x[0])continue;!0===x[0]&&(x[0]=void 0);const S=w.call(processor,...x);"function"==typeof S&&i.use(S)}return w=!0,O=Number.POSITIVE_INFINITY,processor},processor.attachers=C,processor.use=function use(i,...O){let S;if(assertUnfrozen("use",w),null==i);else if("function"==typeof i)addPlugin(i,...O);else{if("object"!=typeof i)throw new TypeError("Expected usable value, not `"+i+"`");Array.isArray(i)?addList(i):addPreset(i)}S&&(x.settings=Object.assign(x.settings||{},S));return processor;function add(i){if("function"==typeof i)addPlugin(i);else{if("object"!=typeof i)throw new TypeError("Expected usable value, not `"+i+"`");if(Array.isArray(i)){const[C,...w]=i;addPlugin(C,...w)}else addPreset(i)}}function addPreset(i){addList(i.plugins),i.settings&&(S=Object.assign(S||{},i.settings))}function addList(i){let C=-1;if(null==i);else{if(!Array.isArray(i))throw new TypeError("Expected a list of plugins, not `"+i+"`");for(;++C<i.length;){add(i[C])}}}function addPlugin(i,w){let x,O=-1;for(;++O<C.length;)if(C[O][0]===i){x=C[O];break}x?(isPlainObject(x[1])&&isPlainObject(w)&&(w=N(!0,x[1],w)),x[1]=w):C.push([...arguments])}},processor.parse=function parse(i){processor.freeze();const C=vfile(i),w=processor.Parser;if(assertParser("parse",w),newable(w,"parse"))return new w(String(C),C).parse();return w(String(C),C)},processor.stringify=function stringify(i,C){processor.freeze();const w=vfile(C),x=processor.Compiler;if(assertCompiler("stringify",x),assertNode(i),newable(x,"compile"))return new x(i,w).compile();return x(i,w)},processor.run=function run(C,w,x){assertNode(C),processor.freeze(),x||"function"!=typeof w||(x=w,w=void 0);if(!x)return new Promise(executor);function executor(O,S){function done(i,w,k){w=w||C,i?S(i):O?O(w):x(null,w,k)}i.run(C,vfile(w),done)}executor(null,x)},processor.runSync=function runSync(i,C){let w,x;return processor.run(i,C,done),assertDone("runSync","run",x),w;function done(i,C){bail(i),w=C,x=!0}},processor.process=function process(i,C){if(processor.freeze(),assertParser("process",processor.Parser),assertCompiler("process",processor.Compiler),!C)return new Promise(executor);function executor(w,x){const O=vfile(i);function done(i,O){i||!O?x(i):w?w(O):C(null,O)}processor.run(processor.parse(O),O,((i,C,w)=>{if(!i&&C&&w){const x=processor.stringify(C,w);null==x||(!function looksLikeAVFileValue(i){return"string"==typeof i||I(i)}(x)?w.result=x:w.value=x),done(i,w)}else done(i)}))}executor(null,C)},processor.processSync=function processSync(i){let C;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);const w=vfile(i);return processor.process(w,done),assertDone("processSync","process",C),w;function done(i){C=!0,bail(i)}},processor;function processor(){const i=base();let w=-1;for(;++w<C.length;)i.use(...C[w]);return i.data(N(!0,{},x)),i}}().freeze(),$={}.hasOwnProperty;function newable(i,C){return"function"==typeof i&&i.prototype&&(function keys(i){let C;for(C in i)if($.call(i,C))return!0;return!1}(i.prototype)||C in i.prototype)}function assertParser(i,C){if("function"!=typeof C)throw new TypeError("Cannot `"+i+"` without `Parser`")}function assertCompiler(i,C){if("function"!=typeof C)throw new TypeError("Cannot `"+i+"` without `Compiler`")}function assertUnfrozen(i,C){if(C)throw new Error("Cannot call `"+i+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(i){if(!isPlainObject(i)||"string"!=typeof i.type)throw new TypeError("Expected node, got `"+i+"`")}function assertDone(i,C,w){if(!w)throw new Error("`"+i+"` finished async. Use `"+C+"` instead")}function vfile(i){return function looksLikeAVFile(i){return Boolean(i&&"object"==typeof i&&"message"in i&&"messages"in i)}(i)?i:new VFile(i)}const J={};function one(i,C,w){if(function node(i){return Boolean(i&&"object"==typeof i)}(i)){if("value"in i)return"html"!==i.type||w?i.value:"";if(C&&"alt"in i&&i.alt)return i.alt;if("children"in i)return lib_all(i.children,C,w)}return Array.isArray(i)?lib_all(i,C,w):""}function lib_all(i,C,w){const x=[];let O=-1;for(;++O<i.length;)x[O]=one(i[O],C,w);return x.join("")}function splice(i,C,w,x){const O=i.length;let S,k=0;if(C=C<0?-C>O?0:O+C:C>O?O:C,w=w>0?w:0,x.length<1e4)S=Array.from(x),S.unshift(C,w),i.splice(...S);else for(w&&i.splice(C,w);k<x.length;)S=x.slice(k,k+1e4),S.unshift(C,0),i.splice(...S),k+=1e4,C+=1e4}function push(i,C){return i.length>0?(splice(i,i.length,0,C),i):C}const re={}.hasOwnProperty;function syntaxExtension(i,C){let w;for(w in C){const x=(re.call(i,w)?i[w]:void 0)||(i[w]={}),O=C[w];let S;if(O)for(S in O){re.call(x,S)||(x[S]=[]);const i=O[S];constructs(x[S],Array.isArray(i)?i:i?[i]:[])}}}function constructs(i,C){let w=-1;const x=[];for(;++w<C.length;)("after"===C[w].add?i:x).push(C[w]);splice(i,0,0,x)}const oe=regexCheck(/[A-Za-z]/),ie=regexCheck(/[\dA-Za-z]/),le=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(i){return null!==i&&(i<32||127===i)}const ue=regexCheck(/\d/),ce=regexCheck(/[\dA-Fa-f]/),se=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(i){return null!==i&&i<-2}function markdownLineEndingOrSpace(i){return null!==i&&(i<0||32===i)}function markdownSpace(i){return-2===i||-1===i||32===i}const de=regexCheck(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),he=regexCheck(/\s/);function regexCheck(i){return function check(C){return null!==C&&i.test(String.fromCharCode(C))}}function factorySpace(i,C,w,x){const O=x?x-1:Number.POSITIVE_INFINITY;let S=0;return function start(x){if(markdownSpace(x))return i.enter(w),prefix(x);return C(x)};function prefix(x){return markdownSpace(x)&&S++<O?(i.consume(x),prefix):(i.exit(w),C(x))}}const ge={tokenize:function initializeContent(i){const C=i.attempt(this.parser.constructs.contentInitial,(function afterContentStartConstruct(w){if(null===w)return void i.consume(w);return i.enter("lineEnding"),i.consume(w),i.exit("lineEnding"),factorySpace(i,C,"linePrefix")}),(function paragraphInitial(C){return i.enter("paragraph"),lineStart(C)}));let w;return C;function lineStart(C){const x=i.enter("chunkText",{contentType:"text",previous:w});return w&&(w.next=x),w=x,data(C)}function data(C){return null===C?(i.exit("chunkText"),i.exit("paragraph"),void i.consume(C)):markdownLineEnding(C)?(i.consume(C),i.exit("chunkText"),lineStart):(i.consume(C),data)}}};const ye={tokenize:function initializeDocument(i){const C=this,w=[];let x,O,S,k=0;return start;function start(x){if(k<w.length){const O=w[k];return C.containerState=O[1],i.attempt(O[0].continuation,documentContinue,checkNewContainers)(x)}return checkNewContainers(x)}function documentContinue(i){if(k++,C.containerState._closeFlow){C.containerState._closeFlow=void 0,x&&closeFlow();const w=C.events.length;let O,S=w;for(;S--;)if("exit"===C.events[S][0]&&"chunkFlow"===C.events[S][1].type){O=C.events[S][1].end;break}exitContainers(k);let I=w;for(;I<C.events.length;)C.events[I][1].end=Object.assign({},O),I++;return splice(C.events,S+1,0,C.events.slice(w)),C.events.length=I,checkNewContainers(i)}return start(i)}function checkNewContainers(O){if(k===w.length){if(!x)return documentContinued(O);if(x.currentConstruct&&x.currentConstruct.concrete)return flowStart(O);C.interrupt=Boolean(x.currentConstruct&&!x._gfmTableDynamicInterruptHack)}return C.containerState={},i.check(ve,thereIsANewContainer,thereIsNoNewContainer)(O)}function thereIsANewContainer(i){return x&&closeFlow(),exitContainers(k),documentContinued(i)}function thereIsNoNewContainer(i){return C.parser.lazy[C.now().line]=k!==w.length,S=C.now().offset,flowStart(i)}function documentContinued(w){return C.containerState={},i.attempt(ve,containerContinue,flowStart)(w)}function containerContinue(i){return k++,w.push([C.currentConstruct,C.containerState]),documentContinued(i)}function flowStart(w){return null===w?(x&&closeFlow(),exitContainers(0),void i.consume(w)):(x=x||C.parser.flow(C.now()),i.enter("chunkFlow",{contentType:"flow",previous:O,_tokenizer:x}),flowContinue(w))}function flowContinue(w){return null===w?(writeToChild(i.exit("chunkFlow"),!0),exitContainers(0),void i.consume(w)):markdownLineEnding(w)?(i.consume(w),writeToChild(i.exit("chunkFlow")),k=0,C.interrupt=void 0,start):(i.consume(w),flowContinue)}function writeToChild(i,w){const I=C.sliceStream(i);if(w&&I.push(null),i.previous=O,O&&(O.next=i),O=i,x.defineSkip(i.start),x.write(I),C.parser.lazy[i.start.line]){let i=x.events.length;for(;i--;)if(x.events[i][1].start.offset<S&&(!x.events[i][1].end||x.events[i][1].end.offset>S))return;const w=C.events.length;let O,I,R=w;for(;R--;)if("exit"===C.events[R][0]&&"chunkFlow"===C.events[R][1].type){if(O){I=C.events[R][1].end;break}O=!0}for(exitContainers(k),i=w;i<C.events.length;)C.events[i][1].end=Object.assign({},I),i++;splice(C.events,R+1,0,C.events.slice(w)),C.events.length=i}}function exitContainers(x){let O=w.length;for(;O-- >x;){const x=w[O];C.containerState=x[1],x[0].exit.call(C,i)}w.length=x}function closeFlow(){x.write([null]),O=void 0,x=void 0,C.containerState._closeFlow=void 0}}},ve={tokenize:function tokenizeContainer(i,C,w){return factorySpace(i,i.attempt(this.parser.constructs.document,C,w),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Ce={tokenize:function tokenizeBlankLine(i,C,w){return function start(C){return markdownSpace(C)?factorySpace(i,after,"linePrefix")(C):after(C)};function after(i){return null===i||markdownLineEnding(i)?C(i):w(i)}},partial:!0};function subtokenize(i){const C={};let w,x,O,S,k,I,R,j=-1;for(;++j<i.length;){for(;j in C;)j=C[j];if(w=i[j],j&&"chunkFlow"===w[1].type&&"listItemPrefix"===i[j-1][1].type&&(I=w[1]._tokenizer.events,O=0,O<I.length&&"lineEndingBlank"===I[O][1].type&&(O+=2),O<I.length&&"content"===I[O][1].type))for(;++O<I.length&&"content"!==I[O][1].type;)"chunkText"===I[O][1].type&&(I[O][1]._isInFirstContentOfListItem=!0,O++);if("enter"===w[0])w[1].contentType&&(Object.assign(C,subcontent(i,j)),j=C[j],R=!0);else if(w[1]._container){for(O=j,x=void 0;O--&&(S=i[O],"lineEnding"===S[1].type||"lineEndingBlank"===S[1].type);)"enter"===S[0]&&(x&&(i[x][1].type="lineEndingBlank"),S[1].type="lineEnding",x=O);x&&(w[1].end=Object.assign({},i[x][1].start),k=i.slice(x,j),k.unshift(w),splice(i,x,j-x+1,k))}}return!R}function subcontent(i,C){const w=i[C][1],x=i[C][2];let O=C-1;const S=[],k=w._tokenizer||x.parser[w.contentType](w.start),I=k.events,R=[],j={};let W,N,G=-1,$=w,J=0,re=0;const oe=[re];for(;$;){for(;i[++O][1]!==$;);S.push(O),$._tokenizer||(W=x.sliceStream($),$.next||W.push(null),N&&k.defineSkip($.start),$._isInFirstContentOfListItem&&(k._gfmTasklistFirstContentOfListItem=!0),k.write(W),$._isInFirstContentOfListItem&&(k._gfmTasklistFirstContentOfListItem=void 0)),N=$,$=$.next}for($=w;++G<I.length;)"exit"===I[G][0]&&"enter"===I[G-1][0]&&I[G][1].type===I[G-1][1].type&&I[G][1].start.line!==I[G][1].end.line&&(re=G+1,oe.push(re),$._tokenizer=void 0,$.previous=void 0,$=$.next);for(k.events=[],$?($._tokenizer=void 0,$.previous=void 0):oe.pop(),G=oe.length;G--;){const C=I.slice(oe[G],oe[G+1]),w=S.pop();R.unshift([w,w+C.length-1]),splice(i,w,2,C)}for(G=-1;++G<R.length;)j[J+R[G][0]]=J+R[G][1],J+=R[G][1]-R[G][0]-1;return j}const Se={tokenize:function tokenizeContent(i,C){let w;return function chunkStart(C){return i.enter("content"),w=i.enter("chunkContent",{contentType:"content"}),chunkInside(C)};function chunkInside(C){return null===C?contentEnd(C):markdownLineEnding(C)?i.check(Pe,contentContinue,contentEnd)(C):(i.consume(C),chunkInside)}function contentEnd(w){return i.exit("chunkContent"),i.exit("content"),C(w)}function contentContinue(C){return i.consume(C),i.exit("chunkContent"),w.next=i.enter("chunkContent",{contentType:"content",previous:w}),w=w.next,chunkInside}},resolve:function resolveContent(i){return subtokenize(i),i}},Pe={tokenize:function tokenizeContinuation(i,C,w){const x=this;return function startLookahead(C){return i.exit("chunkContent"),i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),factorySpace(i,prefixed,"linePrefix")};function prefixed(O){if(null===O||markdownLineEnding(O))return w(O);const S=x.events[x.events.length-1];return!x.parser.constructs.disable.null.includes("codeIndented")&&S&&"linePrefix"===S[1].type&&S[2].sliceSerialize(S[1],!0).length>=4?C(O):i.interrupt(x.parser.constructs.flow,w,C)(O)}},partial:!0};const Ie={tokenize:function initializeFlow(i){const C=this,w=i.attempt(Ce,(function atBlankEnding(x){if(null===x)return void i.consume(x);return i.enter("lineEndingBlank"),i.consume(x),i.exit("lineEndingBlank"),C.currentConstruct=void 0,w}),i.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(i,i.attempt(this.parser.constructs.flow,afterConstruct,i.attempt(Se,afterConstruct)),"linePrefix")));return w;function afterConstruct(x){if(null!==x)return i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),C.currentConstruct=void 0,w;i.consume(x)}}};const Re={resolveAll:createResolver()},Me=initializeFactory("string"),De=initializeFactory("text");function initializeFactory(i){return{tokenize:function initializeText(C){const w=this,x=this.parser.constructs[i],O=C.attempt(x,start,notText);return start;function start(i){return atBreak(i)?O(i):notText(i)}function notText(i){if(null!==i)return C.enter("data"),C.consume(i),data;C.consume(i)}function data(i){return atBreak(i)?(C.exit("data"),O(i)):(C.consume(i),data)}function atBreak(i){if(null===i)return!0;const C=x[i];let O=-1;if(C)for(;++O<C.length;){const i=C[O];if(!i.previous||i.previous.call(w,w.previous))return!0}return!1}},resolveAll:createResolver("text"===i?resolveAllLineSuffixes:void 0)}}function createResolver(i){return function resolveAllText(C,w){let x,O=-1;for(;++O<=C.length;)void 0===x?C[O]&&"data"===C[O][1].type&&(x=O,O++):C[O]&&"data"===C[O][1].type||(O!==x+2&&(C[x][1].end=C[O-1][1].end,C.splice(x+2,O-x-2),O=x+2),x=void 0);return i?i(C,w):C}}function resolveAllLineSuffixes(i,C){let w=0;for(;++w<=i.length;)if((w===i.length||"lineEnding"===i[w][1].type)&&"data"===i[w-1][1].type){const x=i[w-1][1],O=C.sliceStream(x);let S,k=O.length,I=-1,R=0;for(;k--;){const i=O[k];if("string"==typeof i){for(I=i.length;32===i.charCodeAt(I-1);)R++,I--;if(I)break;I=-1}else if(-2===i)S=!0,R++;else if(-1!==i){k++;break}}if(R){const O={type:w===i.length||S||R<2?"lineSuffix":"hardBreakTrailing",start:{line:x.end.line,column:x.end.column-R,offset:x.end.offset-R,_index:x.start._index+k,_bufferIndex:k?I:x.start._bufferIndex+I},end:Object.assign({},x.end)};x.end=Object.assign({},O.start),x.start.offset===x.end.offset?Object.assign(x,O):(i.splice(w,0,["enter",O,C],["exit",O,C]),w+=2)}w++}return i}function resolveAll(i,C,w){const x=[];let O=-1;for(;++O<i.length;){const S=i[O].resolveAll;S&&!x.includes(S)&&(C=S(C,w),x.push(S))}return C}function createTokenizer(i,C,w){let x=Object.assign(w?Object.assign({},w):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const O={},S=[];let k=[],I=[],R=!0;const j={consume:function consume(i){markdownLineEnding(i)?(x.line++,x.column=1,x.offset+=-3===i?2:1,accountForPotentialSkip()):-1!==i&&(x.column++,x.offset++);x._bufferIndex<0?x._index++:(x._bufferIndex++,x._bufferIndex===k[x._index].length&&(x._bufferIndex=-1,x._index++));W.previous=i,R=!0},enter:function enter(i,C){const w=C||{};return w.type=i,w.start=now(),W.events.push(["enter",w,W]),I.push(w),w},exit:function exit(i){const C=I.pop();return C.end=now(),W.events.push(["exit",C,W]),C},attempt:constructFactory((function onsuccessfulconstruct(i,C){addResult(i,C.from)})),check:constructFactory(onsuccessfulcheck),interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},W={previous:null,code:null,containerState:{},events:[],parser:i,sliceStream,sliceSerialize:function sliceSerialize(i,C){return function serializeChunks(i,C){let w=-1;const x=[];let O;for(;++w<i.length;){const S=i[w];let k;if("string"==typeof S)k=S;else switch(S){case-5:k="\r";break;case-4:k="\n";break;case-3:k="\r\n";break;case-2:k=C?" ":"\t";break;case-1:if(!C&&O)continue;k=" ";break;default:k=String.fromCharCode(S)}O=-2===S,x.push(k)}return x.join("")}(sliceStream(i),C)},now,defineSkip:function defineSkip(i){O[i.line]=i.column,accountForPotentialSkip()},write:function write(i){if(k=push(k,i),main(),null!==k[k.length-1])return[];return addResult(C,0),W.events=resolveAll(S,W.events,W),W.events}};let N,G=C.tokenize.call(W,j);return C.resolveAll&&S.push(C),W;function sliceStream(i){return function sliceChunks(i,C){const w=C.start._index,x=C.start._bufferIndex,O=C.end._index,S=C.end._bufferIndex;let k;if(w===O)k=[i[w].slice(x,S)];else{if(k=i.slice(w,O),x>-1){const i=k[0];"string"==typeof i?k[0]=i.slice(x):k.shift()}S>0&&k.push(i[O].slice(0,S))}return k}(k,i)}function now(){const{line:i,column:C,offset:w,_index:O,_bufferIndex:S}=x;return{line:i,column:C,offset:w,_index:O,_bufferIndex:S}}function main(){let i;for(;x._index<k.length;){const C=k[x._index];if("string"==typeof C)for(i=x._index,x._bufferIndex<0&&(x._bufferIndex=0);x._index===i&&x._bufferIndex<C.length;)go(C.charCodeAt(x._bufferIndex));else go(C)}}function go(i){R=void 0,N=i,G=G(i)}function onsuccessfulcheck(i,C){C.restore()}function constructFactory(i,C){return function hook(w,O,S){let k,N,G,$;return Array.isArray(w)?handleListOfConstructs(w):"tokenize"in w?handleListOfConstructs([w]):function handleMapOfConstructs(i){return start;function start(C){const w=null!==C&&i[C],x=null!==C&&i.null;return handleListOfConstructs([...Array.isArray(w)?w:w?[w]:[],...Array.isArray(x)?x:x?[x]:[]])(C)}}(w);function handleListOfConstructs(i){return k=i,N=0,0===i.length?S:handleConstruct(i[N])}function handleConstruct(i){return function start(w){$=function store(){const i=now(),C=W.previous,w=W.currentConstruct,O=W.events.length,S=Array.from(I);return{restore,from:O};function restore(){x=i,W.previous=C,W.currentConstruct=w,W.events.length=O,I=S,accountForPotentialSkip()}}(),G=i,i.partial||(W.currentConstruct=i);if(i.name&&W.parser.constructs.disable.null.includes(i.name))return nok(w);return i.tokenize.call(C?Object.assign(Object.create(W),C):W,j,ok,nok)(w)}}function ok(C){return R=!0,i(G,$),O}function nok(i){return R=!0,$.restore(),++N<k.length?handleConstruct(k[N]):S}}}function addResult(i,C){i.resolveAll&&!S.includes(i)&&S.push(i),i.resolve&&splice(W.events,C,W.events.length-C,i.resolve(W.events.slice(C),W)),i.resolveTo&&(W.events=i.resolveTo(W.events,W))}function accountForPotentialSkip(){x.line in O&&x.column<2&&(x.column=O[x.line],x.offset+=O[x.line]-1)}}const Fe={name:"thematicBreak",tokenize:function tokenizeThematicBreak(i,C,w){let x,O=0;return function start(C){return i.enter("thematicBreak"),function before(i){return x=i,atBreak(i)}(C)};function atBreak(S){return S===x?(i.enter("thematicBreakSequence"),sequence(S)):O>=3&&(null===S||markdownLineEnding(S))?(i.exit("thematicBreak"),C(S)):w(S)}function sequence(C){return C===x?(i.consume(C),O++,sequence):(i.exit("thematicBreakSequence"),markdownSpace(C)?factorySpace(i,atBreak,"whitespace")(C):atBreak(C))}}};const He={name:"list",tokenize:function tokenizeListStart(i,C,w){const x=this,O=x.events[x.events.length-1];let S=O&&"linePrefix"===O[1].type?O[2].sliceSerialize(O[1],!0).length:0,k=0;return function start(C){const O=x.containerState.type||(42===C||43===C||45===C?"listUnordered":"listOrdered");if("listUnordered"===O?!x.containerState.marker||C===x.containerState.marker:ue(C)){if(x.containerState.type||(x.containerState.type=O,i.enter(O,{_container:!0})),"listUnordered"===O)return i.enter("listItemPrefix"),42===C||45===C?i.check(Fe,w,atMarker)(C):atMarker(C);if(!x.interrupt||49===C)return i.enter("listItemPrefix"),i.enter("listItemValue"),inside(C)}return w(C)};function inside(C){return ue(C)&&++k<10?(i.consume(C),inside):(!x.interrupt||k<2)&&(x.containerState.marker?C===x.containerState.marker:41===C||46===C)?(i.exit("listItemValue"),atMarker(C)):w(C)}function atMarker(C){return i.enter("listItemMarker"),i.consume(C),i.exit("listItemMarker"),x.containerState.marker=x.containerState.marker||C,i.check(Ce,x.interrupt?w:onBlank,i.attempt(Ue,endOfPrefix,otherPrefix))}function onBlank(i){return x.containerState.initialBlankLine=!0,S++,endOfPrefix(i)}function otherPrefix(C){return markdownSpace(C)?(i.enter("listItemPrefixWhitespace"),i.consume(C),i.exit("listItemPrefixWhitespace"),endOfPrefix):w(C)}function endOfPrefix(w){return x.containerState.size=S+x.sliceSerialize(i.exit("listItemPrefix"),!0).length,C(w)}},continuation:{tokenize:function tokenizeListContinuation(i,C,w){const x=this;return x.containerState._closeFlow=void 0,i.check(Ce,onBlank,notBlank);function onBlank(w){return x.containerState.furtherBlankLines=x.containerState.furtherBlankLines||x.containerState.initialBlankLine,factorySpace(i,C,"listItemIndent",x.containerState.size+1)(w)}function notBlank(w){return x.containerState.furtherBlankLines||!markdownSpace(w)?(x.containerState.furtherBlankLines=void 0,x.containerState.initialBlankLine=void 0,notInCurrentItem(w)):(x.containerState.furtherBlankLines=void 0,x.containerState.initialBlankLine=void 0,i.attempt(Ge,C,notInCurrentItem)(w))}function notInCurrentItem(O){return x.containerState._closeFlow=!0,x.interrupt=void 0,factorySpace(i,i.attempt(He,C,w),"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O)}}},exit:function tokenizeListEnd(i){i.exit(this.containerState.type)}},Ue={tokenize:function tokenizeListItemPrefixWhitespace(i,C,w){const x=this;return factorySpace(i,(function afterPrefix(i){const O=x.events[x.events.length-1];return!markdownSpace(i)&&O&&"listItemPrefixWhitespace"===O[1].type?C(i):w(i)}),"listItemPrefixWhitespace",x.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ge={tokenize:function tokenizeIndent(i,C,w){const x=this;return factorySpace(i,(function afterPrefix(i){const O=x.events[x.events.length-1];return O&&"listItemIndent"===O[1].type&&O[2].sliceSerialize(O[1],!0).length===x.containerState.size?C(i):w(i)}),"listItemIndent",x.containerState.size+1)},partial:!0};const Ze={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(i,C,w){const x=this;return function start(C){if(62===C){const w=x.containerState;return w.open||(i.enter("blockQuote",{_container:!0}),w.open=!0),i.enter("blockQuotePrefix"),i.enter("blockQuoteMarker"),i.consume(C),i.exit("blockQuoteMarker"),after}return w(C)};function after(w){return markdownSpace(w)?(i.enter("blockQuotePrefixWhitespace"),i.consume(w),i.exit("blockQuotePrefixWhitespace"),i.exit("blockQuotePrefix"),C):(i.exit("blockQuotePrefix"),C(w))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(i,C,w){const x=this;return function contStart(C){if(markdownSpace(C))return factorySpace(i,contBefore,"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C);return contBefore(C)};function contBefore(x){return i.attempt(Ze,C,w)(x)}}},exit:function exit(i){i.exit("blockQuote")}};function factoryDestination(i,C,w,x,O,S,k,I,R){const j=R||Number.POSITIVE_INFINITY;let W=0;return function start(C){if(60===C)return i.enter(x),i.enter(O),i.enter(S),i.consume(C),i.exit(S),enclosedBefore;if(null===C||32===C||41===C||asciiControl(C))return w(C);return i.enter(x),i.enter(k),i.enter(I),i.enter("chunkString",{contentType:"string"}),raw(C)};function enclosedBefore(w){return 62===w?(i.enter(S),i.consume(w),i.exit(S),i.exit(O),i.exit(x),C):(i.enter(I),i.enter("chunkString",{contentType:"string"}),enclosed(w))}function enclosed(C){return 62===C?(i.exit("chunkString"),i.exit(I),enclosedBefore(C)):null===C||60===C||markdownLineEnding(C)?w(C):(i.consume(C),92===C?enclosedEscape:enclosed)}function enclosedEscape(C){return 60===C||62===C||92===C?(i.consume(C),enclosed):enclosed(C)}function raw(O){return W||null!==O&&41!==O&&!markdownLineEndingOrSpace(O)?W<j&&40===O?(i.consume(O),W++,raw):41===O?(i.consume(O),W--,raw):null===O||32===O||40===O||asciiControl(O)?w(O):(i.consume(O),92===O?rawEscape:raw):(i.exit("chunkString"),i.exit(I),i.exit(k),i.exit(x),C(O))}function rawEscape(C){return 40===C||41===C||92===C?(i.consume(C),raw):raw(C)}}function factoryLabel(i,C,w,x,O,S){const k=this;let I,R=0;return function start(C){return i.enter(x),i.enter(O),i.consume(C),i.exit(O),i.enter(S),atBreak};function atBreak(j){return R>999||null===j||91===j||93===j&&!I||94===j&&!R&&"_hiddenFootnoteSupport"in k.parser.constructs?w(j):93===j?(i.exit(S),i.enter(O),i.consume(j),i.exit(O),i.exit(x),C):markdownLineEnding(j)?(i.enter("lineEnding"),i.consume(j),i.exit("lineEnding"),atBreak):(i.enter("chunkString",{contentType:"string"}),labelInside(j))}function labelInside(C){return null===C||91===C||93===C||markdownLineEnding(C)||R++>999?(i.exit("chunkString"),atBreak(C)):(i.consume(C),I||(I=!markdownSpace(C)),92===C?labelEscape:labelInside)}function labelEscape(C){return 91===C||92===C||93===C?(i.consume(C),R++,labelInside):labelInside(C)}}function factoryTitle(i,C,w,x,O,S){let k;return function start(C){if(34===C||39===C||40===C)return i.enter(x),i.enter(O),i.consume(C),i.exit(O),k=40===C?41:C,begin;return w(C)};function begin(w){return w===k?(i.enter(O),i.consume(w),i.exit(O),i.exit(x),C):(i.enter(S),atBreak(w))}function atBreak(C){return C===k?(i.exit(S),begin(k)):null===C?w(C):markdownLineEnding(C)?(i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),factorySpace(i,atBreak,"linePrefix")):(i.enter("chunkString",{contentType:"string"}),inside(C))}function inside(C){return C===k||null===C||markdownLineEnding(C)?(i.exit("chunkString"),atBreak(C)):(i.consume(C),92===C?escape:inside)}function escape(C){return C===k||92===C?(i.consume(C),inside):inside(C)}}function factoryWhitespace(i,C){let w;return function start(x){if(markdownLineEnding(x))return i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),w=!0,start;if(markdownSpace(x))return factorySpace(i,start,w?"linePrefix":"lineSuffix")(x);return C(x)}}function normalizeIdentifier(i){return i.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ke={name:"definition",tokenize:function tokenizeDefinition(i,C,w){const x=this;let O;return function start(C){return i.enter("definition"),function before(C){return factoryLabel.call(x,i,labelAfter,w,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}(C)};function labelAfter(C){return O=normalizeIdentifier(x.sliceSerialize(x.events[x.events.length-1][1]).slice(1,-1)),58===C?(i.enter("definitionMarker"),i.consume(C),i.exit("definitionMarker"),markerAfter):w(C)}function markerAfter(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,destinationBefore)(C):destinationBefore(C)}function destinationBefore(C){return factoryDestination(i,destinationAfter,w,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function destinationAfter(C){return i.attempt(Qe,after,after)(C)}function after(C){return markdownSpace(C)?factorySpace(i,afterWhitespace,"whitespace")(C):afterWhitespace(C)}function afterWhitespace(S){return null===S||markdownLineEnding(S)?(i.exit("definition"),x.parser.defined.push(O),C(S)):w(S)}}},Qe={tokenize:function tokenizeTitleBefore(i,C,w){return function titleBefore(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,beforeMarker)(C):w(C)};function beforeMarker(C){return factoryTitle(i,titleAfter,w,"definitionTitle","definitionTitleMarker","definitionTitleString")(C)}function titleAfter(C){return markdownSpace(C)?factorySpace(i,titleAfterOptionalWhitespace,"whitespace")(C):titleAfterOptionalWhitespace(C)}function titleAfterOptionalWhitespace(i){return null===i||markdownLineEnding(i)?C(i):w(i)}},partial:!0};const et={name:"codeIndented",tokenize:function tokenizeCodeIndented(i,C,w){const x=this;return function start(C){return i.enter("codeIndented"),factorySpace(i,afterPrefix,"linePrefix",5)(C)};function afterPrefix(i){const C=x.events[x.events.length-1];return C&&"linePrefix"===C[1].type&&C[2].sliceSerialize(C[1],!0).length>=4?atBreak(i):w(i)}function atBreak(C){return null===C?after(C):markdownLineEnding(C)?i.attempt(tt,atBreak,after)(C):(i.enter("codeFlowValue"),inside(C))}function inside(C){return null===C||markdownLineEnding(C)?(i.exit("codeFlowValue"),atBreak(C)):(i.consume(C),inside)}function after(w){return i.exit("codeIndented"),C(w)}}},tt={tokenize:function tokenizeFurtherStart(i,C,w){const x=this;return furtherStart;function furtherStart(C){return x.parser.lazy[x.now().line]?w(C):markdownLineEnding(C)?(i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),furtherStart):factorySpace(i,afterPrefix,"linePrefix",5)(C)}function afterPrefix(i){const O=x.events[x.events.length-1];return O&&"linePrefix"===O[1].type&&O[2].sliceSerialize(O[1],!0).length>=4?C(i):markdownLineEnding(i)?furtherStart(i):w(i)}},partial:!0};const nt={name:"headingAtx",tokenize:function tokenizeHeadingAtx(i,C,w){let x=0;return function start(C){return i.enter("atxHeading"),function before(C){return i.enter("atxHeadingSequence"),sequenceOpen(C)}(C)};function sequenceOpen(C){return 35===C&&x++<6?(i.consume(C),sequenceOpen):null===C||markdownLineEndingOrSpace(C)?(i.exit("atxHeadingSequence"),atBreak(C)):w(C)}function atBreak(w){return 35===w?(i.enter("atxHeadingSequence"),sequenceFurther(w)):null===w||markdownLineEnding(w)?(i.exit("atxHeading"),C(w)):markdownSpace(w)?factorySpace(i,atBreak,"whitespace")(w):(i.enter("atxHeadingText"),data(w))}function sequenceFurther(C){return 35===C?(i.consume(C),sequenceFurther):(i.exit("atxHeadingSequence"),atBreak(C))}function data(C){return null===C||35===C||markdownLineEndingOrSpace(C)?(i.exit("atxHeadingText"),atBreak(C)):(i.consume(C),data)}},resolve:function resolveHeadingAtx(i,C){let w,x,O=i.length-2,S=3;"whitespace"===i[S][1].type&&(S+=2);O-2>S&&"whitespace"===i[O][1].type&&(O-=2);"atxHeadingSequence"===i[O][1].type&&(S===O-1||O-4>S&&"whitespace"===i[O-2][1].type)&&(O-=S+1===O?2:4);O>S&&(w={type:"atxHeadingText",start:i[S][1].start,end:i[O][1].end},x={type:"chunkText",start:i[S][1].start,end:i[O][1].end,contentType:"text"},splice(i,S,O-S+1,[["enter",w,C],["enter",x,C],["exit",x,C],["exit",w,C]]));return i}};const rt={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(i,C,w){const x=this;let O;return function start(C){let S,k=x.events.length;for(;k--;)if("lineEnding"!==x.events[k][1].type&&"linePrefix"!==x.events[k][1].type&&"content"!==x.events[k][1].type){S="paragraph"===x.events[k][1].type;break}if(!x.parser.lazy[x.now().line]&&(x.interrupt||S))return i.enter("setextHeadingLine"),O=C,function before(C){return i.enter("setextHeadingLineSequence"),inside(C)}(C);return w(C)};function inside(C){return C===O?(i.consume(C),inside):(i.exit("setextHeadingLineSequence"),markdownSpace(C)?factorySpace(i,after,"lineSuffix")(C):after(C))}function after(x){return null===x||markdownLineEnding(x)?(i.exit("setextHeadingLine"),C(x)):w(x)}},resolveTo:function resolveToSetextUnderline(i,C){let w,x,O,S=i.length;for(;S--;)if("enter"===i[S][0]){if("content"===i[S][1].type){w=S;break}"paragraph"===i[S][1].type&&(x=S)}else"content"===i[S][1].type&&i.splice(S,1),O||"definition"!==i[S][1].type||(O=S);const k={type:"setextHeading",start:Object.assign({},i[x][1].start),end:Object.assign({},i[i.length-1][1].end)};i[x][1].type="setextHeadingText",O?(i.splice(x,0,["enter",k,C]),i.splice(O+1,0,["exit",i[w][1],C]),i[w][1].end=Object.assign({},i[O][1].end)):i[w][1]=k;return i.push(["exit",k,C]),i}};const ot=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],it={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(i,C,w){const x=this;let O,S,k,I,R;return function start(C){return function before(C){return i.enter("htmlFlow"),i.enter("htmlFlowData"),i.consume(C),open}(C)};function open(I){return 33===I?(i.consume(I),declarationOpen):47===I?(i.consume(I),S=!0,tagCloseStart):63===I?(i.consume(I),O=3,x.interrupt?C:continuationDeclarationInside):oe(I)?(i.consume(I),k=String.fromCharCode(I),tagName):w(I)}function declarationOpen(S){return 45===S?(i.consume(S),O=2,commentOpenInside):91===S?(i.consume(S),O=5,I=0,cdataOpenInside):oe(S)?(i.consume(S),O=4,x.interrupt?C:continuationDeclarationInside):w(S)}function commentOpenInside(O){return 45===O?(i.consume(O),x.interrupt?C:continuationDeclarationInside):w(O)}function cdataOpenInside(O){const S="CDATA[";return O===S.charCodeAt(I++)?(i.consume(O),6===I?x.interrupt?C:continuation:cdataOpenInside):w(O)}function tagCloseStart(C){return oe(C)?(i.consume(C),k=String.fromCharCode(C),tagName):w(C)}function tagName(I){if(null===I||47===I||62===I||markdownLineEndingOrSpace(I)){const R=47===I,j=k.toLowerCase();return R||S||!at.includes(j)?ot.includes(k.toLowerCase())?(O=6,R?(i.consume(I),basicSelfClosing):x.interrupt?C(I):continuation(I)):(O=7,x.interrupt&&!x.parser.lazy[x.now().line]?w(I):S?completeClosingTagAfter(I):completeAttributeNameBefore(I)):(O=1,x.interrupt?C(I):continuation(I))}return 45===I||ie(I)?(i.consume(I),k+=String.fromCharCode(I),tagName):w(I)}function basicSelfClosing(O){return 62===O?(i.consume(O),x.interrupt?C:continuation):w(O)}function completeClosingTagAfter(C){return markdownSpace(C)?(i.consume(C),completeClosingTagAfter):completeEnd(C)}function completeAttributeNameBefore(C){return 47===C?(i.consume(C),completeEnd):58===C||95===C||oe(C)?(i.consume(C),completeAttributeName):markdownSpace(C)?(i.consume(C),completeAttributeNameBefore):completeEnd(C)}function completeAttributeName(C){return 45===C||46===C||58===C||95===C||ie(C)?(i.consume(C),completeAttributeName):completeAttributeNameAfter(C)}function completeAttributeNameAfter(C){return 61===C?(i.consume(C),completeAttributeValueBefore):markdownSpace(C)?(i.consume(C),completeAttributeNameAfter):completeAttributeNameBefore(C)}function completeAttributeValueBefore(C){return null===C||60===C||61===C||62===C||96===C?w(C):34===C||39===C?(i.consume(C),R=C,completeAttributeValueQuoted):markdownSpace(C)?(i.consume(C),completeAttributeValueBefore):completeAttributeValueUnquoted(C)}function completeAttributeValueQuoted(C){return C===R?(i.consume(C),R=null,completeAttributeValueQuotedAfter):null===C||markdownLineEnding(C)?w(C):(i.consume(C),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(C){return null===C||34===C||39===C||47===C||60===C||61===C||62===C||96===C||markdownLineEndingOrSpace(C)?completeAttributeNameAfter(C):(i.consume(C),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(i){return 47===i||62===i||markdownSpace(i)?completeAttributeNameBefore(i):w(i)}function completeEnd(C){return 62===C?(i.consume(C),completeAfter):w(C)}function completeAfter(C){return null===C||markdownLineEnding(C)?continuation(C):markdownSpace(C)?(i.consume(C),completeAfter):w(C)}function continuation(C){return 45===C&&2===O?(i.consume(C),continuationCommentInside):60===C&&1===O?(i.consume(C),continuationRawTagOpen):62===C&&4===O?(i.consume(C),continuationClose):63===C&&3===O?(i.consume(C),continuationDeclarationInside):93===C&&5===O?(i.consume(C),continuationCdataInside):!markdownLineEnding(C)||6!==O&&7!==O?null===C||markdownLineEnding(C)?(i.exit("htmlFlowData"),continuationStart(C)):(i.consume(C),continuation):(i.exit("htmlFlowData"),i.check(lt,continuationAfter,continuationStart)(C))}function continuationStart(C){return i.check(ut,continuationStartNonLazy,continuationAfter)(C)}function continuationStartNonLazy(C){return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),continuationBefore}function continuationBefore(C){return null===C||markdownLineEnding(C)?continuationStart(C):(i.enter("htmlFlowData"),continuation(C))}function continuationCommentInside(C){return 45===C?(i.consume(C),continuationDeclarationInside):continuation(C)}function continuationRawTagOpen(C){return 47===C?(i.consume(C),k="",continuationRawEndTag):continuation(C)}function continuationRawEndTag(C){if(62===C){const w=k.toLowerCase();return at.includes(w)?(i.consume(C),continuationClose):continuation(C)}return oe(C)&&k.length<8?(i.consume(C),k+=String.fromCharCode(C),continuationRawEndTag):continuation(C)}function continuationCdataInside(C){return 93===C?(i.consume(C),continuationDeclarationInside):continuation(C)}function continuationDeclarationInside(C){return 62===C?(i.consume(C),continuationClose):45===C&&2===O?(i.consume(C),continuationDeclarationInside):continuation(C)}function continuationClose(C){return null===C||markdownLineEnding(C)?(i.exit("htmlFlowData"),continuationAfter(C)):(i.consume(C),continuationClose)}function continuationAfter(w){return i.exit("htmlFlow"),C(w)}},resolveTo:function resolveToHtmlFlow(i){let C=i.length;for(;C--&&("enter"!==i[C][0]||"htmlFlow"!==i[C][1].type););C>1&&"linePrefix"===i[C-2][1].type&&(i[C][1].start=i[C-2][1].start,i[C+1][1].start=i[C-2][1].start,i.splice(C-2,2));return i},concrete:!0},lt={tokenize:function tokenizeBlankLineBefore(i,C,w){return function start(x){return i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),i.attempt(Ce,C,w)}},partial:!0},ut={tokenize:function tokenizeNonLazyContinuationStart(i,C,w){const x=this;return function start(C){if(markdownLineEnding(C))return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),after;return w(C)};function after(i){return x.parser.lazy[x.now().line]?w(i):C(i)}},partial:!0};const ct={tokenize:function tokenizeNonLazyContinuation(i,C,w){const x=this;return function start(C){if(null===C)return w(C);return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),lineStart};function lineStart(i){return x.parser.lazy[x.now().line]?w(i):C(i)}},partial:!0},st={name:"codeFenced",tokenize:function tokenizeCodeFenced(i,C,w){const x=this,O={tokenize:function tokenizeCloseStart(i,C,w){let O=0;return startBefore;function startBefore(C){return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),start}function start(C){return i.enter("codeFencedFence"),markdownSpace(C)?factorySpace(i,beforeSequenceClose,"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):beforeSequenceClose(C)}function beforeSequenceClose(C){return C===S?(i.enter("codeFencedFenceSequence"),sequenceClose(C)):w(C)}function sequenceClose(C){return C===S?(O++,i.consume(C),sequenceClose):O>=I?(i.exit("codeFencedFenceSequence"),markdownSpace(C)?factorySpace(i,sequenceCloseAfter,"whitespace")(C):sequenceCloseAfter(C)):w(C)}function sequenceCloseAfter(x){return null===x||markdownLineEnding(x)?(i.exit("codeFencedFence"),C(x)):w(x)}},partial:!0};let S,k=0,I=0;return function start(C){return function beforeSequenceOpen(C){const w=x.events[x.events.length-1];return k=w&&"linePrefix"===w[1].type?w[2].sliceSerialize(w[1],!0).length:0,S=C,i.enter("codeFenced"),i.enter("codeFencedFence"),i.enter("codeFencedFenceSequence"),sequenceOpen(C)}(C)};function sequenceOpen(C){return C===S?(I++,i.consume(C),sequenceOpen):I<3?w(C):(i.exit("codeFencedFenceSequence"),markdownSpace(C)?factorySpace(i,infoBefore,"whitespace")(C):infoBefore(C))}function infoBefore(w){return null===w||markdownLineEnding(w)?(i.exit("codeFencedFence"),x.interrupt?C(w):i.check(ct,atNonLazyBreak,after)(w)):(i.enter("codeFencedFenceInfo"),i.enter("chunkString",{contentType:"string"}),info(w))}function info(C){return null===C||markdownLineEnding(C)?(i.exit("chunkString"),i.exit("codeFencedFenceInfo"),infoBefore(C)):markdownSpace(C)?(i.exit("chunkString"),i.exit("codeFencedFenceInfo"),factorySpace(i,metaBefore,"whitespace")(C)):96===C&&C===S?w(C):(i.consume(C),info)}function metaBefore(C){return null===C||markdownLineEnding(C)?infoBefore(C):(i.enter("codeFencedFenceMeta"),i.enter("chunkString",{contentType:"string"}),meta(C))}function meta(C){return null===C||markdownLineEnding(C)?(i.exit("chunkString"),i.exit("codeFencedFenceMeta"),infoBefore(C)):96===C&&C===S?w(C):(i.consume(C),meta)}function atNonLazyBreak(C){return i.attempt(O,after,contentBefore)(C)}function contentBefore(C){return i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),contentStart}function contentStart(C){return k>0&&markdownSpace(C)?factorySpace(i,beforeContentChunk,"linePrefix",k+1)(C):beforeContentChunk(C)}function beforeContentChunk(C){return null===C||markdownLineEnding(C)?i.check(ct,atNonLazyBreak,after)(C):(i.enter("codeFlowValue"),contentChunk(C))}function contentChunk(C){return null===C||markdownLineEnding(C)?(i.exit("codeFlowValue"),beforeContentChunk(C)):(i.consume(C),contentChunk)}function after(w){return i.exit("codeFenced"),C(w)}},concrete:!0};const dt=document.createElement("i");function decodeNamedCharacterReference(i){const C="&"+i+";";dt.innerHTML=C;const w=dt.textContent;return(59!==w.charCodeAt(w.length-1)||"semi"===i)&&(w!==C&&w)}const ft={name:"characterReference",tokenize:function tokenizeCharacterReference(i,C,w){const x=this;let O,S,k=0;return function start(C){return i.enter("characterReference"),i.enter("characterReferenceMarker"),i.consume(C),i.exit("characterReferenceMarker"),open};function open(C){return 35===C?(i.enter("characterReferenceMarkerNumeric"),i.consume(C),i.exit("characterReferenceMarkerNumeric"),numeric):(i.enter("characterReferenceValue"),O=31,S=ie,value(C))}function numeric(C){return 88===C||120===C?(i.enter("characterReferenceMarkerHexadecimal"),i.consume(C),i.exit("characterReferenceMarkerHexadecimal"),i.enter("characterReferenceValue"),O=6,S=ce,value):(i.enter("characterReferenceValue"),O=7,S=ue,value(C))}function value(I){if(59===I&&k){const O=i.exit("characterReferenceValue");return S!==ie||decodeNamedCharacterReference(x.sliceSerialize(O))?(i.enter("characterReferenceMarker"),i.consume(I),i.exit("characterReferenceMarker"),i.exit("characterReference"),C):w(I)}return S(I)&&k++<O?(i.consume(I),value):w(I)}}};const pt={name:"characterEscape",tokenize:function tokenizeCharacterEscape(i,C,w){return function start(C){return i.enter("characterEscape"),i.enter("escapeMarker"),i.consume(C),i.exit("escapeMarker"),inside};function inside(x){return se(x)?(i.enter("characterEscapeValue"),i.consume(x),i.exit("characterEscapeValue"),i.exit("characterEscape"),C):w(x)}}};const mt={name:"lineEnding",tokenize:function tokenizeLineEnding(i,C){return function start(w){return i.enter("lineEnding"),i.consume(w),i.exit("lineEnding"),factorySpace(i,C,"linePrefix")}}};const ht={name:"labelEnd",tokenize:function tokenizeLabelEnd(i,C,w){const x=this;let O,S,k=x.events.length;for(;k--;)if(("labelImage"===x.events[k][1].type||"labelLink"===x.events[k][1].type)&&!x.events[k][1]._balanced){O=x.events[k][1];break}return function start(C){if(!O)return w(C);if(O._inactive)return labelEndNok(C);return S=x.parser.defined.includes(normalizeIdentifier(x.sliceSerialize({start:O.end,end:x.now()}))),i.enter("labelEnd"),i.enter("labelMarker"),i.consume(C),i.exit("labelMarker"),i.exit("labelEnd"),after};function after(C){return 40===C?i.attempt(gt,labelEndOk,S?labelEndOk:labelEndNok)(C):91===C?i.attempt(yt,labelEndOk,S?referenceNotFull:labelEndNok)(C):S?labelEndOk(C):labelEndNok(C)}function referenceNotFull(C){return i.attempt(vt,labelEndOk,labelEndNok)(C)}function labelEndOk(i){return C(i)}function labelEndNok(i){return O._balanced=!0,w(i)}},resolveTo:function resolveToLabelEnd(i,C){let w,x,O,S,k=i.length,I=0;for(;k--;)if(w=i[k][1],x){if("link"===w.type||"labelLink"===w.type&&w._inactive)break;"enter"===i[k][0]&&"labelLink"===w.type&&(w._inactive=!0)}else if(O){if("enter"===i[k][0]&&("labelImage"===w.type||"labelLink"===w.type)&&!w._balanced&&(x=k,"labelLink"!==w.type)){I=2;break}}else"labelEnd"===w.type&&(O=k);const R={type:"labelLink"===i[x][1].type?"link":"image",start:Object.assign({},i[x][1].start),end:Object.assign({},i[i.length-1][1].end)},j={type:"label",start:Object.assign({},i[x][1].start),end:Object.assign({},i[O][1].end)},W={type:"labelText",start:Object.assign({},i[x+I+2][1].end),end:Object.assign({},i[O-2][1].start)};return S=[["enter",R,C],["enter",j,C]],S=push(S,i.slice(x+1,x+I+3)),S=push(S,[["enter",W,C]]),S=push(S,resolveAll(C.parser.constructs.insideSpan.null,i.slice(x+I+4,O-3),C)),S=push(S,[["exit",W,C],i[O-2],i[O-1],["exit",j,C]]),S=push(S,i.slice(O+1)),S=push(S,[["exit",R,C]]),splice(i,x,i.length,S),i},resolveAll:function resolveAllLabelEnd(i){let C=-1;for(;++C<i.length;){const w=i[C][1];"labelImage"!==w.type&&"labelLink"!==w.type&&"labelEnd"!==w.type||(i.splice(C+1,"labelImage"===w.type?4:2),w.type="data",C++)}return i}},gt={tokenize:function tokenizeResource(i,C,w){return function resourceStart(C){return i.enter("resource"),i.enter("resourceMarker"),i.consume(C),i.exit("resourceMarker"),resourceBefore};function resourceBefore(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,resourceOpen)(C):resourceOpen(C)}function resourceOpen(C){return 41===C?resourceEnd(C):factoryDestination(i,resourceDestinationAfter,resourceDestinationMissing,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(C)}function resourceDestinationAfter(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,resourceBetween)(C):resourceEnd(C)}function resourceDestinationMissing(i){return w(i)}function resourceBetween(C){return 34===C||39===C||40===C?factoryTitle(i,resourceTitleAfter,w,"resourceTitle","resourceTitleMarker","resourceTitleString")(C):resourceEnd(C)}function resourceTitleAfter(C){return markdownLineEndingOrSpace(C)?factoryWhitespace(i,resourceEnd)(C):resourceEnd(C)}function resourceEnd(x){return 41===x?(i.enter("resourceMarker"),i.consume(x),i.exit("resourceMarker"),i.exit("resource"),C):w(x)}}},yt={tokenize:function tokenizeReferenceFull(i,C,w){const x=this;return function referenceFull(C){return factoryLabel.call(x,i,referenceFullAfter,referenceFullMissing,"reference","referenceMarker","referenceString")(C)};function referenceFullAfter(i){return x.parser.defined.includes(normalizeIdentifier(x.sliceSerialize(x.events[x.events.length-1][1]).slice(1,-1)))?C(i):w(i)}function referenceFullMissing(i){return w(i)}}},vt={tokenize:function tokenizeReferenceCollapsed(i,C,w){return function referenceCollapsedStart(C){return i.enter("reference"),i.enter("referenceMarker"),i.consume(C),i.exit("referenceMarker"),referenceCollapsedOpen};function referenceCollapsedOpen(x){return 93===x?(i.enter("referenceMarker"),i.consume(x),i.exit("referenceMarker"),i.exit("reference"),C):w(x)}}};const bt={name:"labelStartImage",tokenize:function tokenizeLabelStartImage(i,C,w){const x=this;return function start(C){return i.enter("labelImage"),i.enter("labelImageMarker"),i.consume(C),i.exit("labelImageMarker"),open};function open(C){return 91===C?(i.enter("labelMarker"),i.consume(C),i.exit("labelMarker"),i.exit("labelImage"),after):w(C)}function after(i){return 94===i&&"_hiddenFootnoteSupport"in x.parser.constructs?w(i):C(i)}},resolveAll:ht.resolveAll};function classifyCharacter(i){return null===i||markdownLineEndingOrSpace(i)||he(i)?1:de(i)?2:void 0}const _t={name:"attention",tokenize:function tokenizeAttention(i,C){const w=this.parser.constructs.attentionMarkers.null,x=this.previous,O=classifyCharacter(x);let S;return function start(C){return S=C,i.enter("attentionSequence"),inside(C)};function inside(k){if(k===S)return i.consume(k),inside;const I=i.exit("attentionSequence"),R=classifyCharacter(k),j=!R||2===R&&O||w.includes(k),W=!O||2===O&&R||w.includes(x);return I._open=Boolean(42===S?j:j&&(O||!W)),I._close=Boolean(42===S?W:W&&(R||!j)),C(k)}},resolveAll:function resolveAllAttention(i,C){let w,x,O,S,k,I,R,j,W=-1;for(;++W<i.length;)if("enter"===i[W][0]&&"attentionSequence"===i[W][1].type&&i[W][1]._close)for(w=W;w--;)if("exit"===i[w][0]&&"attentionSequence"===i[w][1].type&&i[w][1]._open&&C.sliceSerialize(i[w][1]).charCodeAt(0)===C.sliceSerialize(i[W][1]).charCodeAt(0)){if((i[w][1]._close||i[W][1]._open)&&(i[W][1].end.offset-i[W][1].start.offset)%3&&!((i[w][1].end.offset-i[w][1].start.offset+i[W][1].end.offset-i[W][1].start.offset)%3))continue;I=i[w][1].end.offset-i[w][1].start.offset>1&&i[W][1].end.offset-i[W][1].start.offset>1?2:1;const N=Object.assign({},i[w][1].end),G=Object.assign({},i[W][1].start);movePoint(N,-I),movePoint(G,I),S={type:I>1?"strongSequence":"emphasisSequence",start:N,end:Object.assign({},i[w][1].end)},k={type:I>1?"strongSequence":"emphasisSequence",start:Object.assign({},i[W][1].start),end:G},O={type:I>1?"strongText":"emphasisText",start:Object.assign({},i[w][1].end),end:Object.assign({},i[W][1].start)},x={type:I>1?"strong":"emphasis",start:Object.assign({},S.start),end:Object.assign({},k.end)},i[w][1].end=Object.assign({},S.start),i[W][1].start=Object.assign({},k.end),R=[],i[w][1].end.offset-i[w][1].start.offset&&(R=push(R,[["enter",i[w][1],C],["exit",i[w][1],C]])),R=push(R,[["enter",x,C],["enter",S,C],["exit",S,C],["enter",O,C]]),R=push(R,resolveAll(C.parser.constructs.insideSpan.null,i.slice(w+1,W),C)),R=push(R,[["exit",O,C],["enter",k,C],["exit",k,C],["exit",x,C]]),i[W][1].end.offset-i[W][1].start.offset?(j=2,R=push(R,[["enter",i[W][1],C],["exit",i[W][1],C]])):j=0,splice(i,w-1,W-w+3,R),W=w+R.length-j-2;break}W=-1;for(;++W<i.length;)"attentionSequence"===i[W][1].type&&(i[W][1].type="data");return i}};function movePoint(i,C){i.column+=C,i.offset+=C,i._bufferIndex+=C}const Ct={name:"autolink",tokenize:function tokenizeAutolink(i,C,w){let x=0;return function start(C){return i.enter("autolink"),i.enter("autolinkMarker"),i.consume(C),i.exit("autolinkMarker"),i.enter("autolinkProtocol"),open};function open(C){return oe(C)?(i.consume(C),schemeOrEmailAtext):emailAtext(C)}function schemeOrEmailAtext(i){return 43===i||45===i||46===i||ie(i)?(x=1,schemeInsideOrEmailAtext(i)):emailAtext(i)}function schemeInsideOrEmailAtext(C){return 58===C?(i.consume(C),x=0,urlInside):(43===C||45===C||46===C||ie(C))&&x++<32?(i.consume(C),schemeInsideOrEmailAtext):(x=0,emailAtext(C))}function urlInside(x){return 62===x?(i.exit("autolinkProtocol"),i.enter("autolinkMarker"),i.consume(x),i.exit("autolinkMarker"),i.exit("autolink"),C):null===x||32===x||60===x||asciiControl(x)?w(x):(i.consume(x),urlInside)}function emailAtext(C){return 64===C?(i.consume(C),emailAtSignOrDot):le(C)?(i.consume(C),emailAtext):w(C)}function emailAtSignOrDot(i){return ie(i)?emailLabel(i):w(i)}function emailLabel(w){return 46===w?(i.consume(w),x=0,emailAtSignOrDot):62===w?(i.exit("autolinkProtocol").type="autolinkEmail",i.enter("autolinkMarker"),i.consume(w),i.exit("autolinkMarker"),i.exit("autolink"),C):emailValue(w)}function emailValue(C){if((45===C||ie(C))&&x++<63){const w=45===C?emailValue:emailLabel;return i.consume(C),w}return w(C)}}};const wt={name:"htmlText",tokenize:function tokenizeHtmlText(i,C,w){const x=this;let O,S,k;return function start(C){return i.enter("htmlText"),i.enter("htmlTextData"),i.consume(C),open};function open(C){return 33===C?(i.consume(C),declarationOpen):47===C?(i.consume(C),tagCloseStart):63===C?(i.consume(C),instruction):oe(C)?(i.consume(C),tagOpen):w(C)}function declarationOpen(C){return 45===C?(i.consume(C),commentOpenInside):91===C?(i.consume(C),S=0,cdataOpenInside):oe(C)?(i.consume(C),declaration):w(C)}function commentOpenInside(C){return 45===C?(i.consume(C),commentEnd):w(C)}function comment(C){return null===C?w(C):45===C?(i.consume(C),commentClose):markdownLineEnding(C)?(k=comment,lineEndingBefore(C)):(i.consume(C),comment)}function commentClose(C){return 45===C?(i.consume(C),commentEnd):comment(C)}function commentEnd(i){return 62===i?end(i):45===i?commentClose(i):comment(i)}function cdataOpenInside(C){const x="CDATA[";return C===x.charCodeAt(S++)?(i.consume(C),6===S?cdata:cdataOpenInside):w(C)}function cdata(C){return null===C?w(C):93===C?(i.consume(C),cdataClose):markdownLineEnding(C)?(k=cdata,lineEndingBefore(C)):(i.consume(C),cdata)}function cdataClose(C){return 93===C?(i.consume(C),cdataEnd):cdata(C)}function cdataEnd(C){return 62===C?end(C):93===C?(i.consume(C),cdataEnd):cdata(C)}function declaration(C){return null===C||62===C?end(C):markdownLineEnding(C)?(k=declaration,lineEndingBefore(C)):(i.consume(C),declaration)}function instruction(C){return null===C?w(C):63===C?(i.consume(C),instructionClose):markdownLineEnding(C)?(k=instruction,lineEndingBefore(C)):(i.consume(C),instruction)}function instructionClose(i){return 62===i?end(i):instruction(i)}function tagCloseStart(C){return oe(C)?(i.consume(C),tagClose):w(C)}function tagClose(C){return 45===C||ie(C)?(i.consume(C),tagClose):tagCloseBetween(C)}function tagCloseBetween(C){return markdownLineEnding(C)?(k=tagCloseBetween,lineEndingBefore(C)):markdownSpace(C)?(i.consume(C),tagCloseBetween):end(C)}function tagOpen(C){return 45===C||ie(C)?(i.consume(C),tagOpen):47===C||62===C||markdownLineEndingOrSpace(C)?tagOpenBetween(C):w(C)}function tagOpenBetween(C){return 47===C?(i.consume(C),end):58===C||95===C||oe(C)?(i.consume(C),tagOpenAttributeName):markdownLineEnding(C)?(k=tagOpenBetween,lineEndingBefore(C)):markdownSpace(C)?(i.consume(C),tagOpenBetween):end(C)}function tagOpenAttributeName(C){return 45===C||46===C||58===C||95===C||ie(C)?(i.consume(C),tagOpenAttributeName):tagOpenAttributeNameAfter(C)}function tagOpenAttributeNameAfter(C){return 61===C?(i.consume(C),tagOpenAttributeValueBefore):markdownLineEnding(C)?(k=tagOpenAttributeNameAfter,lineEndingBefore(C)):markdownSpace(C)?(i.consume(C),tagOpenAttributeNameAfter):tagOpenBetween(C)}function tagOpenAttributeValueBefore(C){return null===C||60===C||61===C||62===C||96===C?w(C):34===C||39===C?(i.consume(C),O=C,tagOpenAttributeValueQuoted):markdownLineEnding(C)?(k=tagOpenAttributeValueBefore,lineEndingBefore(C)):markdownSpace(C)?(i.consume(C),tagOpenAttributeValueBefore):(i.consume(C),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(C){return C===O?(i.consume(C),O=void 0,tagOpenAttributeValueQuotedAfter):null===C?w(C):markdownLineEnding(C)?(k=tagOpenAttributeValueQuoted,lineEndingBefore(C)):(i.consume(C),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueUnquoted(C){return null===C||34===C||39===C||60===C||61===C||96===C?w(C):47===C||62===C||markdownLineEndingOrSpace(C)?tagOpenBetween(C):(i.consume(C),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuotedAfter(i){return 47===i||62===i||markdownLineEndingOrSpace(i)?tagOpenBetween(i):w(i)}function end(x){return 62===x?(i.consume(x),i.exit("htmlTextData"),i.exit("htmlText"),C):w(x)}function lineEndingBefore(C){return i.exit("htmlTextData"),i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),lineEndingAfter}function lineEndingAfter(C){return markdownSpace(C)?factorySpace(i,lineEndingAfterPrefix,"linePrefix",x.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):lineEndingAfterPrefix(C)}function lineEndingAfterPrefix(C){return i.enter("htmlTextData"),k(C)}}};const Et={name:"labelStartLink",tokenize:function tokenizeLabelStartLink(i,C,w){const x=this;return function start(C){return i.enter("labelLink"),i.enter("labelMarker"),i.consume(C),i.exit("labelMarker"),i.exit("labelLink"),after};function after(i){return 94===i&&"_hiddenFootnoteSupport"in x.parser.constructs?w(i):C(i)}},resolveAll:ht.resolveAll};const xt={name:"hardBreakEscape",tokenize:function tokenizeHardBreakEscape(i,C,w){return function start(C){return i.enter("hardBreakEscape"),i.consume(C),after};function after(x){return markdownLineEnding(x)?(i.exit("hardBreakEscape"),C(x)):w(x)}}};const Ot={name:"codeText",tokenize:function tokenizeCodeText(i,C,w){let x,O,S=0;return function start(C){return i.enter("codeText"),i.enter("codeTextSequence"),sequenceOpen(C)};function sequenceOpen(C){return 96===C?(i.consume(C),S++,sequenceOpen):(i.exit("codeTextSequence"),between(C))}function between(C){return null===C?w(C):32===C?(i.enter("space"),i.consume(C),i.exit("space"),between):96===C?(O=i.enter("codeTextSequence"),x=0,sequenceClose(C)):markdownLineEnding(C)?(i.enter("lineEnding"),i.consume(C),i.exit("lineEnding"),between):(i.enter("codeTextData"),data(C))}function data(C){return null===C||32===C||96===C||markdownLineEnding(C)?(i.exit("codeTextData"),between(C)):(i.consume(C),data)}function sequenceClose(w){return 96===w?(i.consume(w),x++,sequenceClose):x===S?(i.exit("codeTextSequence"),i.exit("codeText"),C(w)):(O.type="codeTextData",data(w))}},resolve:function resolveCodeText(i){let C,w,x=i.length-4,O=3;if(!("lineEnding"!==i[O][1].type&&"space"!==i[O][1].type||"lineEnding"!==i[x][1].type&&"space"!==i[x][1].type))for(C=O;++C<x;)if("codeTextData"===i[C][1].type){i[O][1].type="codeTextPadding",i[x][1].type="codeTextPadding",O+=2,x-=2;break}C=O-1,x++;for(;++C<=x;)void 0===w?C!==x&&"lineEnding"!==i[C][1].type&&(w=C):C!==x&&"lineEnding"!==i[C][1].type||(i[w][1].type="codeTextData",C!==w+2&&(i[w][1].end=i[C-1][1].end,i.splice(w+2,C-w-2),x-=C-w-2,C=w+2),w=void 0);return i},previous:function previous(i){return 96!==i||"characterEscape"===this.events[this.events.length-1][1].type}};const St={42:He,43:He,45:He,48:He,49:He,50:He,51:He,52:He,53:He,54:He,55:He,56:He,57:He,62:Ze},Pt={91:Ke},kt={[-2]:et,[-1]:et,32:et},It={35:nt,42:Fe,45:[rt,Fe],60:it,61:rt,95:Fe,96:st,126:st},Tt={38:ft,92:pt},Rt={[-5]:mt,[-4]:mt,[-3]:mt,33:bt,38:ft,42:_t,60:[Ct,wt],91:Et,92:[xt,pt],93:ht,95:_t,96:Ot},jt={null:[_t,Re]},At={null:[42,95]},Mt={null:[]};function parse(i){const C=function combineExtensions(i){const C={};let w=-1;for(;++w<i.length;)syntaxExtension(C,i[w]);return C}([x,...(i||{}).extensions||[]]),w={defined:[],lazy:{},constructs:C,content:create(ge),document:create(ye),flow:create(Ie),string:create(Me),text:create(De)};return w;function create(i){return function creator(C){return createTokenizer(w,i,C)}}}const Dt=/[\0\t\n\r]/g;function decodeNumericCharacterReference(i,C){const w=Number.parseInt(i,C);return w<9||11===w||w>13&&w<32||w>126&&w<160||w>55295&&w<57344||w>64975&&w<65008||65535==(65535&w)||65534==(65535&w)||w>1114111?"":String.fromCharCode(w)}const Lt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode(i,C,w){if(C)return C;if(35===w.charCodeAt(0)){const i=w.charCodeAt(1),C=120===i||88===i;return decodeNumericCharacterReference(w.slice(C?2:1),C?16:10)}return decodeNamedCharacterReference(w)||i}const Bt={}.hasOwnProperty,fromMarkdown=function(i,C,w){return"string"!=typeof C&&(w=C,C=void 0),function compiler(i){const C={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(image),label:buffer,link:opener(link),listItem:opener(listItem),listItemValue:onenterlistitemvalue,listOrdered:opener(list,onenterlistordered),listUnordered:opener(list),paragraph:opener(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(strong),thematicBreak:opener(thematicBreak)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(C,(i||{}).mdastExtensions||[]);const w={};return compile;function compile(i){let w={type:"root",children:[]};const x={stack:[w],tokenStack:[],config:C,enter,exit,buffer,resume,setData,getData},O=[];let S=-1;for(;++S<i.length;)if("listOrdered"===i[S][1].type||"listUnordered"===i[S][1].type)if("enter"===i[S][0])O.push(S);else{S=prepareList(i,O.pop(),S)}for(S=-1;++S<i.length;){const w=C[i[S][0]];Bt.call(w,i[S][1].type)&&w[i[S][1].type].call(Object.assign({sliceSerialize:i[S][2].sliceSerialize},x),i[S][1])}if(x.tokenStack.length>0){const i=x.tokenStack[x.tokenStack.length-1];(i[1]||defaultOnError).call(x,void 0,i[0])}for(w.position={start:lib_point(i.length>0?i[0][1].start:{line:1,column:1,offset:0}),end:lib_point(i.length>0?i[i.length-2][1].end:{line:1,column:1,offset:0})},S=-1;++S<C.transforms.length;)w=C.transforms[S](w)||w;return w}function prepareList(i,C,w){let x,O,S,k,I=C-1,R=-1,j=!1;for(;++I<=w;){const C=i[I];if("listUnordered"===C[1].type||"listOrdered"===C[1].type||"blockQuote"===C[1].type?("enter"===C[0]?R++:R--,k=void 0):"lineEndingBlank"===C[1].type?"enter"===C[0]&&(!x||k||R||S||(S=I),k=void 0):"linePrefix"===C[1].type||"listItemValue"===C[1].type||"listItemMarker"===C[1].type||"listItemPrefix"===C[1].type||"listItemPrefixWhitespace"===C[1].type||(k=void 0),!R&&"enter"===C[0]&&"listItemPrefix"===C[1].type||-1===R&&"exit"===C[0]&&("listUnordered"===C[1].type||"listOrdered"===C[1].type)){if(x){let k=I;for(O=void 0;k--;){const C=i[k];if("lineEnding"===C[1].type||"lineEndingBlank"===C[1].type){if("exit"===C[0])continue;O&&(i[O][1].type="lineEndingBlank",j=!0),C[1].type="lineEnding",O=k}else if("linePrefix"!==C[1].type&&"blockQuotePrefix"!==C[1].type&&"blockQuotePrefixWhitespace"!==C[1].type&&"blockQuoteMarker"!==C[1].type&&"listItemIndent"!==C[1].type)break}S&&(!O||S<O)&&(x._spread=!0),x.end=Object.assign({},O?i[O][1].start:C[1].end),i.splice(O||I,0,["exit",x,C[2]]),I++,w++}"listItemPrefix"===C[1].type&&(x={type:"listItem",_spread:!1,start:Object.assign({},C[1].start),end:void 0},i.splice(I,0,["enter",x,C[2]]),I++,w++,S=void 0,k=!0)}}return i[C][1]._spread=j,w}function setData(i,C){w[i]=C}function getData(i){return w[i]}function opener(i,C){return open;function open(w){enter.call(this,i(w),w),C&&C.call(this,w)}}function buffer(){this.stack.push({type:"fragment",children:[]})}function enter(i,C,w){return this.stack[this.stack.length-1].children.push(i),this.stack.push(i),this.tokenStack.push([C,w]),i.position={start:lib_point(C.start)},i}function closer(i){return close;function close(C){i&&i.call(this,C),exit.call(this,C)}}function exit(i,C){const w=this.stack.pop(),x=this.tokenStack.pop();if(!x)throw new Error("Cannot close `"+i.type+"` ("+stringifyPosition({start:i.start,end:i.end})+"): it’s not open");if(x[0].type!==i.type)if(C)C.call(this,i,x[0]);else{(x[1]||defaultOnError).call(this,i,x[0])}return w.position.end=lib_point(i.end),w}function resume(){return function lib_toString(i,C){const w=C||J;return one(i,"boolean"!=typeof w.includeImageAlt||w.includeImageAlt,"boolean"!=typeof w.includeHtml||w.includeHtml)}(this.stack.pop())}function onenterlistordered(){setData("expectingFirstListItemValue",!0)}function onenterlistitemvalue(i){if(getData("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(i),10),setData("expectingFirstListItemValue")}}function onexitcodefencedfenceinfo(){const i=this.resume();this.stack[this.stack.length-1].lang=i}function onexitcodefencedfencemeta(){const i=this.resume();this.stack[this.stack.length-1].meta=i}function onexitcodefencedfence(){getData("flowCodeInside")||(this.buffer(),setData("flowCodeInside",!0))}function onexitcodefenced(){const i=this.resume();this.stack[this.stack.length-1].value=i.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),setData("flowCodeInside")}function onexitcodeindented(){const i=this.resume();this.stack[this.stack.length-1].value=i.replace(/(\r?\n|\r)$/g,"")}function onexitdefinitionlabelstring(i){const C=this.resume(),w=this.stack[this.stack.length-1];w.label=C,w.identifier=normalizeIdentifier(this.sliceSerialize(i)).toLowerCase()}function onexitdefinitiontitlestring(){const i=this.resume();this.stack[this.stack.length-1].title=i}function onexitdefinitiondestinationstring(){const i=this.resume();this.stack[this.stack.length-1].url=i}function onexitatxheadingsequence(i){const C=this.stack[this.stack.length-1];if(!C.depth){const w=this.sliceSerialize(i).length;C.depth=w}}function onexitsetextheadingtext(){setData("setextHeadingSlurpLineEnding",!0)}function onexitsetextheadinglinesequence(i){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(i).charCodeAt(0)?1:2}function onexitsetextheading(){setData("setextHeadingSlurpLineEnding")}function onenterdata(i){const C=this.stack[this.stack.length-1];let w=C.children[C.children.length-1];w&&"text"===w.type||(w=text(),w.position={start:lib_point(i.start)},C.children.push(w)),this.stack.push(w)}function onexitdata(i){const C=this.stack.pop();C.value+=this.sliceSerialize(i),C.position.end=lib_point(i.end)}function onexitlineending(i){const w=this.stack[this.stack.length-1];if(getData("atHardBreak")){return w.children[w.children.length-1].position.end=lib_point(i.end),void setData("atHardBreak")}!getData("setextHeadingSlurpLineEnding")&&C.canContainEols.includes(w.type)&&(onenterdata.call(this,i),onexitdata.call(this,i))}function onexithardbreak(){setData("atHardBreak",!0)}function onexithtmlflow(){const i=this.resume();this.stack[this.stack.length-1].value=i}function onexithtmltext(){const i=this.resume();this.stack[this.stack.length-1].value=i}function onexitcodetext(){const i=this.resume();this.stack[this.stack.length-1].value=i}function onexitlink(){const i=this.stack[this.stack.length-1];if(getData("inReference")){const C=getData("referenceType")||"shortcut";i.type+="Reference",i.referenceType=C,delete i.url,delete i.title}else delete i.identifier,delete i.label;setData("referenceType")}function onexitimage(){const i=this.stack[this.stack.length-1];if(getData("inReference")){const C=getData("referenceType")||"shortcut";i.type+="Reference",i.referenceType=C,delete i.url,delete i.title}else delete i.identifier,delete i.label;setData("referenceType")}function onexitlabeltext(i){const C=this.sliceSerialize(i),w=this.stack[this.stack.length-2];w.label=function decodeString(i){return i.replace(Lt,decode)}(C),w.identifier=normalizeIdentifier(C).toLowerCase()}function onexitlabel(){const i=this.stack[this.stack.length-1],C=this.resume(),w=this.stack[this.stack.length-1];if(setData("inReference",!0),"link"===w.type){const C=i.children;w.children=C}else w.alt=C}function onexitresourcedestinationstring(){const i=this.resume();this.stack[this.stack.length-1].url=i}function onexitresourcetitlestring(){const i=this.resume();this.stack[this.stack.length-1].title=i}function onexitresource(){setData("inReference")}function onenterreference(){setData("referenceType","collapsed")}function onexitreferencestring(i){const C=this.resume(),w=this.stack[this.stack.length-1];w.label=C,w.identifier=normalizeIdentifier(this.sliceSerialize(i)).toLowerCase(),setData("referenceType","full")}function onexitcharacterreferencemarker(i){setData("characterReferenceType",i.type)}function onexitcharacterreferencevalue(i){const C=this.sliceSerialize(i),w=getData("characterReferenceType");let x;if(w)x=decodeNumericCharacterReference(C,"characterReferenceMarkerNumeric"===w?10:16),setData("characterReferenceType");else{x=decodeNamedCharacterReference(C)}const O=this.stack.pop();O.value+=x,O.position.end=lib_point(i.end)}function onexitautolinkprotocol(i){onexitdata.call(this,i);this.stack[this.stack.length-1].url=this.sliceSerialize(i)}function onexitautolinkemail(i){onexitdata.call(this,i);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(i)}function blockQuote(){return{type:"blockquote",children:[]}}function codeFlow(){return{type:"code",lang:null,meta:null,value:""}}function codeText(){return{type:"inlineCode",value:""}}function definition(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function emphasis(){return{type:"emphasis",children:[]}}function heading(){return{type:"heading",depth:void 0,children:[]}}function hardBreak(){return{type:"break"}}function html(){return{type:"html",value:""}}function image(){return{type:"image",title:null,url:"",alt:null}}function link(){return{type:"link",title:null,url:"",children:[]}}function list(i){return{type:"list",ordered:"listOrdered"===i.type,start:null,spread:i._spread,children:[]}}function listItem(i){return{type:"listItem",spread:i._spread,checked:null,children:[]}}function paragraph(){return{type:"paragraph",children:[]}}function strong(){return{type:"strong",children:[]}}function text(){return{type:"text",value:""}}function thematicBreak(){return{type:"thematicBreak"}}}(w)(function postprocess(i){for(;!subtokenize(i););return i}(parse(w).document().write(function preprocess(){let i,C=1,w="",x=!0;return function preprocessor(O,S,k){const I=[];let R,j,W,N,G;for(O=w+O.toString(S),W=0,w="",x&&(65279===O.charCodeAt(0)&&W++,x=void 0);W<O.length;){if(Dt.lastIndex=W,R=Dt.exec(O),N=R&&void 0!==R.index?R.index:O.length,G=O.charCodeAt(N),!R){w=O.slice(W);break}if(10===G&&W===N&&i)I.push(-3),i=void 0;else switch(i&&(I.push(-5),i=void 0),W<N&&(I.push(O.slice(W,N)),C+=N-W),G){case 0:I.push(65533),C++;break;case 9:for(j=4*Math.ceil(C/4),I.push(-2);C++<j;)I.push(-1);break;case 10:I.push(-4),C=1;break;default:i=!0,C=1}W=N+1}return k&&(i&&I.push(-5),w&&I.push(w),I.push(null)),I}}()(i,C,!0))))};function lib_point(i){return{line:i.line,column:i.column,offset:i.offset}}function configure(i,C){let w=-1;for(;++w<C.length;){const x=C[w];Array.isArray(x)?configure(i,x):extension(i,x)}}function extension(i,C){let w;for(w in C)if(Bt.call(C,w))if("canContainEols"===w){const x=C[w];x&&i[w].push(...x)}else if("transforms"===w){const x=C[w];x&&i[w].push(...x)}else if("enter"===w||"exit"===w){const x=C[w];x&&Object.assign(i[w],x)}}function defaultOnError(i,C){throw i?new Error("Cannot close `"+i.type+"` ("+stringifyPosition({start:i.start,end:i.end})+"): a different token (`"+C.type+"`, "+stringifyPosition({start:C.start,end:C.end})+") is open"):new Error("Cannot close document, a token (`"+C.type+"`, "+stringifyPosition({start:C.start,end:C.end})+") is still open")}function remarkParse(i){Object.assign(this,{Parser:C=>{const w=this.data("settings");return fromMarkdown(C,Object.assign({},w,i,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function normalizeUri(i){const C=[];let w=-1,x=0,O=0;for(;++w<i.length;){const S=i.charCodeAt(w);let k="";if(37===S&&ie(i.charCodeAt(w+1))&&ie(i.charCodeAt(w+2)))O=2;else if(S<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(S))||(k=String.fromCharCode(S));else if(S>55295&&S<57344){const C=i.charCodeAt(w+1);S<56320&&C>56319&&C<57344?(k=String.fromCharCode(S,C),O=1):k=""}else k=String.fromCharCode(S);k&&(C.push(i.slice(x,w),encodeURIComponent(k)),x=w+O+1,k=""),O&&(w+=O,O=0)}return C.join("")+i.slice(x)}const convert=function(i){if(null==i)return ok;if("string"==typeof i)return function typeFactory(i){return castFactory(type);function type(C){return C&&C.type===i}}(i);if("object"==typeof i)return Array.isArray(i)?function anyFactory(i){const C=[];let w=-1;for(;++w<i.length;)C[w]=convert(i[w]);return castFactory(any);function any(...i){let w=-1;for(;++w<C.length;)if(C[w].call(this,...i))return!0;return!1}}(i):function propsFactory(i){return castFactory(all);function all(C){let w;for(w in i)if(C[w]!==i[w])return!1;return!0}}(i);if("function"==typeof i)return castFactory(i);throw new Error("Expected function, string, or object as test")};function castFactory(i){return function assertion(C,...w){return Boolean(C&&"object"==typeof C&&"type"in C&&Boolean(i.call(this,C,...w)))}}function ok(){return!0}const visitParents=function(i,C,w,x){"function"==typeof C&&"function"!=typeof w&&(x=w,w=C,C=null);const O=convert(C),S=x?-1:1;!function factory(i,k,I){const R=i&&"object"==typeof i?i:{};if("string"==typeof R.type){const C="string"==typeof R.tagName?R.tagName:"string"==typeof R.name?R.name:void 0;Object.defineProperty(visit,"name",{value:"node ("+i.type+(C?"<"+C+">":"")+")"})}return visit;function visit(){let R,j,W,N=[];if((!C||O(i,k,I[I.length-1]||null))&&(N=function toResult(i){if(Array.isArray(i))return i;if("number"==typeof i)return[true,i];return[i]}(w(i,I)),false===N[0]))return N;if(i.children&&"skip"!==N[0])for(j=(x?i.children.length:-1)+S,W=I.concat(i);j>-1&&j<i.children.length;){if(R=factory(i.children[j],j,W)(),false===R[0])return R;j="number"==typeof R[1]?R[1]:j+S}return N}}(i,void 0,[])()};const visit=function(i,C,w,x){"function"==typeof C&&"function"!=typeof w&&(x=w,w=C,C=null),visitParents(i,C,(function overload(i,C){const x=C[C.length-1];return w(i,x?x.children.indexOf(i):null,x)}),x)},Wt=unist_util_position_lib_point("start"),qt=unist_util_position_lib_point("end");function unist_util_position_lib_point(i){return function point(C){const w=C&&C.position&&C.position[i]||{};return{line:w.line||null,column:w.column||null,offset:w.offset>-1?w.offset:null}}}const Ft={}.hasOwnProperty;function clean(i){return String(i||"").toUpperCase()}function footnoteReference(i,C){const w=String(C.identifier).toUpperCase(),x=normalizeUri(w.toLowerCase()),O=i.footnoteOrder.indexOf(w);let S;-1===O?(i.footnoteOrder.push(w),i.footnoteCounts[w]=1,S=i.footnoteOrder.length):(i.footnoteCounts[w]++,S=O+1);const k=i.footnoteCounts[w],I={type:"element",tagName:"a",properties:{href:"#"+i.clobberPrefix+"fn-"+x,id:i.clobberPrefix+"fnref-"+x+(k>1?"-"+k:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(S)}]};i.patch(C,I);const R={type:"element",tagName:"sup",properties:{},children:[I]};return i.patch(C,R),i.applyData(C,R)}function revert(i,C){const w=C.referenceType;let x="]";if("collapsed"===w?x+="[]":"full"===w&&(x+="["+(C.label||C.identifier)+"]"),"imageReference"===C.type)return{type:"text",value:"!["+C.alt+x};const O=i.all(C),S=O[0];S&&"text"===S.type?S.value="["+S.value:O.unshift({type:"text",value:"["});const k=O[O.length-1];return k&&"text"===k.type?k.value+=x:O.push({type:"text",value:x}),O}function listItemLoose(i){const C=i.spread;return null==C?i.children.length>1:C}const Nt=9,Ht=32;function trimLines(i){const C=String(i),w=/\r?\n|\r/g;let x=w.exec(C),O=0;const S=[];for(;x;)S.push(trimLine(C.slice(O,x.index),O>0,!0),x[0]),O=x.index+x[0].length,x=w.exec(C);return S.push(trimLine(C.slice(O),O>0,!1)),S.join("")}function trimLine(i,C,w){let x=0,O=i.length;if(C){let C=i.codePointAt(x);for(;C===Nt||C===Ht;)x++,C=i.codePointAt(x)}if(w){let C=i.codePointAt(O-1);for(;C===Nt||C===Ht;)O--,C=i.codePointAt(O-1)}return O>x?i.slice(x,O):""}const zt={blockquote:function blockquote(i,C){const w={type:"element",tagName:"blockquote",properties:{},children:i.wrap(i.all(C),!0)};return i.patch(C,w),i.applyData(C,w)},break:function hardBreak(i,C){const w={type:"element",tagName:"br",properties:{},children:[]};return i.patch(C,w),[i.applyData(C,w),{type:"text",value:"\n"}]},code:function code(i,C){const w=C.value?C.value+"\n":"",x=C.lang?C.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,O={};x&&(O.className=["language-"+x]);let S={type:"element",tagName:"code",properties:O,children:[{type:"text",value:w}]};return C.meta&&(S.data={meta:C.meta}),i.patch(C,S),S=i.applyData(C,S),S={type:"element",tagName:"pre",properties:{},children:[S]},i.patch(C,S),S},delete:function strikethrough(i,C){const w={type:"element",tagName:"del",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},emphasis:function emphasis(i,C){const w={type:"element",tagName:"em",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},footnoteReference,footnote:function footnote(i,C){const w=i.footnoteById;let x=1;for(;x in w;)x++;const O=String(x);return w[O]={type:"footnoteDefinition",identifier:O,children:[{type:"paragraph",children:C.children}],position:C.position},footnoteReference(i,{type:"footnoteReference",identifier:O,position:C.position})},heading:function heading(i,C){const w={type:"element",tagName:"h"+C.depth,properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},html:function html(i,C){if(i.dangerous){const w={type:"raw",value:C.value};return i.patch(C,w),i.applyData(C,w)}return null},imageReference:function imageReference(i,C){const w=i.definition(C.identifier);if(!w)return revert(i,C);const x={src:normalizeUri(w.url||""),alt:C.alt};null!==w.title&&void 0!==w.title&&(x.title=w.title);const O={type:"element",tagName:"img",properties:x,children:[]};return i.patch(C,O),i.applyData(C,O)},image:function image_image(i,C){const w={src:normalizeUri(C.url)};null!==C.alt&&void 0!==C.alt&&(w.alt=C.alt),null!==C.title&&void 0!==C.title&&(w.title=C.title);const x={type:"element",tagName:"img",properties:w,children:[]};return i.patch(C,x),i.applyData(C,x)},inlineCode:function inlineCode(i,C){const w={type:"text",value:C.value.replace(/\r?\n|\r/g," ")};i.patch(C,w);const x={type:"element",tagName:"code",properties:{},children:[w]};return i.patch(C,x),i.applyData(C,x)},linkReference:function linkReference(i,C){const w=i.definition(C.identifier);if(!w)return revert(i,C);const x={href:normalizeUri(w.url||"")};null!==w.title&&void 0!==w.title&&(x.title=w.title);const O={type:"element",tagName:"a",properties:x,children:i.all(C)};return i.patch(C,O),i.applyData(C,O)},link:function link_link(i,C){const w={href:normalizeUri(C.url)};null!==C.title&&void 0!==C.title&&(w.title=C.title);const x={type:"element",tagName:"a",properties:w,children:i.all(C)};return i.patch(C,x),i.applyData(C,x)},listItem:function listItem(i,C,w){const x=i.all(C),O=w?function listLoose(i){let C=!1;if("list"===i.type){C=i.spread||!1;const w=i.children;let x=-1;for(;!C&&++x<w.length;)C=listItemLoose(w[x])}return C}(w):listItemLoose(C),S={},k=[];if("boolean"==typeof C.checked){const i=x[0];let w;i&&"element"===i.type&&"p"===i.tagName?w=i:(w={type:"element",tagName:"p",properties:{},children:[]},x.unshift(w)),w.children.length>0&&w.children.unshift({type:"text",value:" "}),w.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:C.checked,disabled:!0},children:[]}),S.className=["task-list-item"]}let I=-1;for(;++I<x.length;){const i=x[I];(O||0!==I||"element"!==i.type||"p"!==i.tagName)&&k.push({type:"text",value:"\n"}),"element"!==i.type||"p"!==i.tagName||O?k.push(i):k.push(...i.children)}const R=x[x.length-1];R&&(O||"element"!==R.type||"p"!==R.tagName)&&k.push({type:"text",value:"\n"});const j={type:"element",tagName:"li",properties:S,children:k};return i.patch(C,j),i.applyData(C,j)},list:function list_list(i,C){const w={},x=i.all(C);let O=-1;for("number"==typeof C.start&&1!==C.start&&(w.start=C.start);++O<x.length;){const i=x[O];if("element"===i.type&&"li"===i.tagName&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){w.className=["contains-task-list"];break}}const S={type:"element",tagName:C.ordered?"ol":"ul",properties:w,children:i.wrap(x,!0)};return i.patch(C,S),i.applyData(C,S)},paragraph:function paragraph(i,C){const w={type:"element",tagName:"p",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},root:function root(i,C){const w={type:"root",children:i.wrap(i.all(C))};return i.patch(C,w),i.applyData(C,w)},strong:function strong(i,C){const w={type:"element",tagName:"strong",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},table:function table(i,C){const w=i.all(C),x=w.shift(),O=[];if(x){const w={type:"element",tagName:"thead",properties:{},children:i.wrap([x],!0)};i.patch(C.children[0],w),O.push(w)}if(w.length>0){const x={type:"element",tagName:"tbody",properties:{},children:i.wrap(w,!0)},S=Wt(C.children[1]),k=qt(C.children[C.children.length-1]);S.line&&k.line&&(x.position={start:S,end:k}),O.push(x)}const S={type:"element",tagName:"table",properties:{},children:i.wrap(O,!0)};return i.patch(C,S),i.applyData(C,S)},tableCell:function tableCell(i,C){const w={type:"element",tagName:"td",properties:{},children:i.all(C)};return i.patch(C,w),i.applyData(C,w)},tableRow:function tableRow(i,C,w){const x=w?w.children:void 0,O=0===(x?x.indexOf(C):1)?"th":"td",S=w&&"table"===w.type?w.align:void 0,k=S?S.length:C.children.length;let I=-1;const R=[];for(;++I<k;){const w=C.children[I],x={},k=S?S[I]:void 0;k&&(x.align=k);let j={type:"element",tagName:O,properties:x,children:[]};w&&(j.children=i.all(w),i.patch(w,j),j=i.applyData(C,j)),R.push(j)}const j={type:"element",tagName:"tr",properties:{},children:i.wrap(R,!0)};return i.patch(C,j),i.applyData(C,j)},text:function handlers_text_text(i,C){const w={type:"text",value:trimLines(String(C.value))};return i.patch(C,w),i.applyData(C,w)},thematicBreak:function thematic_break_thematicBreak(i,C){const w={type:"element",tagName:"hr",properties:{},children:[]};return i.patch(C,w),i.applyData(C,w)},toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){return null}const Ut={}.hasOwnProperty;function createState(i,C){const w=C||{},x=w.allowDangerousHtml||!1,O={};return state.dangerous=x,state.clobberPrefix=void 0===w.clobberPrefix||null===w.clobberPrefix?"user-content-":w.clobberPrefix,state.footnoteLabel=w.footnoteLabel||"Footnotes",state.footnoteLabelTagName=w.footnoteLabelTagName||"h2",state.footnoteLabelProperties=w.footnoteLabelProperties||{className:["sr-only"]},state.footnoteBackLabel=w.footnoteBackLabel||"Back to content",state.unknownHandler=w.unknownHandler,state.passThrough=w.passThrough,state.handlers={...zt,...w.handlers},state.definition=function definitions(i){const C=Object.create(null);if(!i||!i.type)throw new Error("mdast-util-definitions expected node");return visit(i,"definition",(i=>{const w=clean(i.identifier);w&&!Ft.call(C,w)&&(C[w]=i)})),function definition(i){const w=clean(i);return w&&Ft.call(C,w)?C[w]:null}}(i),state.footnoteById=O,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function oneBound(i,C){return state_one(state,i,C)},state.all=function allBound(i){return state_all(state,i)},state.wrap=state_wrap,state.augment=augment,visit(i,"footnoteDefinition",(i=>{const C=String(i.identifier).toUpperCase();Ut.call(O,C)||(O[C]=i)})),state;function augment(i,C){if(i&&"data"in i&&i.data){const w=i.data;w.hName&&("element"!==C.type&&(C={type:"element",tagName:"",properties:{},children:[]}),C.tagName=w.hName),"element"===C.type&&w.hProperties&&(C.properties={...C.properties,...w.hProperties}),"children"in C&&C.children&&w.hChildren&&(C.children=w.hChildren)}if(i){const w="type"in i?i:{position:i};(function generated(i){return!(i&&i.position&&i.position.start&&i.position.start.line&&i.position.start.column&&i.position.end&&i.position.end.line&&i.position.end.column)})(w)||(C.position={start:Wt(w),end:qt(w)})}return C}function state(i,C,w,x){return Array.isArray(w)&&(x=w,w={}),augment(i,{type:"element",tagName:C,properties:w||{},children:x||[]})}}function patch(i,C){i.position&&(C.position=function lib_position(i){return{start:Wt(i),end:qt(i)}}(i))}function applyData(i,C){let w=C;if(i&&i.data){const C=i.data.hName,x=i.data.hChildren,O=i.data.hProperties;"string"==typeof C&&("element"===w.type?w.tagName=C:w={type:"element",tagName:C,properties:{},children:[]}),"element"===w.type&&O&&(w.properties={...w.properties,...O}),"children"in w&&w.children&&null!=x&&(w.children=x)}return w}function state_one(i,C,w){const x=C&&C.type;if(!x)throw new Error("Expected node, got `"+C+"`");return Ut.call(i.handlers,x)?i.handlers[x](i,C,w):i.passThrough&&i.passThrough.includes(x)?"children"in C?{...C,children:state_all(i,C)}:C:i.unknownHandler?i.unknownHandler(i,C,w):function defaultUnknownHandler(i,C){const w=C.data||{},x=!("value"in C)||Ut.call(w,"hProperties")||Ut.call(w,"hChildren")?{type:"element",tagName:"div",properties:{},children:state_all(i,C)}:{type:"text",value:C.value};return i.patch(C,x),i.applyData(C,x)}(i,C)}function state_all(i,C){const w=[];if("children"in C){const x=C.children;let O=-1;for(;++O<x.length;){const S=state_one(i,x[O],C);if(S){if(O&&"break"===x[O-1].type&&(Array.isArray(S)||"text"!==S.type||(S.value=S.value.replace(/^\s+/,"")),!Array.isArray(S)&&"element"===S.type)){const i=S.children[0];i&&"text"===i.type&&(i.value=i.value.replace(/^\s+/,""))}Array.isArray(S)?w.push(...S):w.push(S)}}}return w}function state_wrap(i,C){const w=[];let x=-1;for(C&&w.push({type:"text",value:"\n"});++x<i.length;)x&&w.push({type:"text",value:"\n"}),w.push(i[x]);return C&&i.length>0&&w.push({type:"text",value:"\n"}),w}function toHast(i,C){const w=createState(i,C),x=w.one(i,null),O=function footer(i){const C=[];let w=-1;for(;++w<i.footnoteOrder.length;){const x=i.footnoteById[i.footnoteOrder[w]];if(!x)continue;const O=i.all(x),S=String(x.identifier).toUpperCase(),k=normalizeUri(S.toLowerCase());let I=0;const R=[];for(;++I<=i.footnoteCounts[S];){const C={type:"element",tagName:"a",properties:{href:"#"+i.clobberPrefix+"fnref-"+k+(I>1?"-"+I:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:i.footnoteBackLabel},children:[{type:"text",value:"↩"}]};I>1&&C.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(I)}]}),R.length>0&&R.push({type:"text",value:" "}),R.push(C)}const j=O[O.length-1];if(j&&"element"===j.type&&"p"===j.tagName){const i=j.children[j.children.length-1];i&&"text"===i.type?i.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...R)}else O.push(...R);const W={type:"element",tagName:"li",properties:{id:i.clobberPrefix+"fn-"+k},children:i.wrap(O,!0)};i.patch(x,W),C.push(W)}if(0!==C.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(i.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:i.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:i.wrap(C,!0)},{type:"text",value:"\n"}]}}(w);return O&&x.children.push({type:"text",value:"\n"},O),Array.isArray(x)?{type:"root",children:x}:x}const lib=function(i,C){return i&&"run"in i?function bridge(i,C){return(w,x,O)=>{i.run(toHast(w,C),x,(i=>{O(i)}))}}(i,C):function mutate(i){return C=>toHast(C,i)}(i||C)};var Vt=w(23615);class Schema{constructor(i,C,w){this.property=i,this.normal=C,w&&(this.space=w)}}function merge(i,C){const w={},x={};let O=-1;for(;++O<i.length;)Object.assign(w,i[O].property),Object.assign(x,i[O].normal);return new Schema(w,x,C)}function normalize_normalize(i){return i.toLowerCase()}Schema.prototype.property={},Schema.prototype.normal={},Schema.prototype.space=null;class Info{constructor(i,C){this.property=i,this.attribute=C}}Info.prototype.space=null,Info.prototype.boolean=!1,Info.prototype.booleanish=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.number=!1,Info.prototype.commaSeparated=!1,Info.prototype.spaceSeparated=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.mustUseProperty=!1,Info.prototype.defined=!1;let Gt=0;const $t=increment(),Yt=increment(),Zt=increment(),Kt=increment(),Xt=increment(),Qt=increment(),Jt=increment();function increment(){return 2**++Gt}const en=Object.keys(O);class DefinedInfo extends Info{constructor(i,C,w,x){let S=-1;if(super(i,C),mark(this,"space",x),"number"==typeof w)for(;++S<en.length;){const i=en[S];mark(this,en[S],(w&O[i])===O[i])}}}function mark(i,C,w){w&&(i[C]=w)}DefinedInfo.prototype.defined=!0;const tn={}.hasOwnProperty;function create(i){const C={},w={};let x;for(x in i.properties)if(tn.call(i.properties,x)){const O=i.properties[x],S=new DefinedInfo(x,i.transform(i.attributes||{},x),O,i.space);i.mustUseProperty&&i.mustUseProperty.includes(x)&&(S.mustUseProperty=!0),C[x]=S,w[normalize_normalize(x)]=x,w[normalize_normalize(S.attribute)]=x}return new Schema(C,w,i.space)}const nn=create({space:"xlink",transform:(i,C)=>"xlink:"+C.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rn=create({space:"xml",transform:(i,C)=>"xml:"+C.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(i,C){return C in i?i[C]:C}function caseInsensitiveTransform(i,C){return caseSensitiveTransform(i,C.toLowerCase())}const on=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),an=create({transform:(i,C)=>"role"===C?C:"aria-"+C.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:Kt,ariaColIndex:Kt,ariaColSpan:Kt,ariaControls:Xt,ariaCurrent:null,ariaDescribedBy:Xt,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:Xt,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:Xt,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xt,ariaLevel:Kt,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:Xt,ariaPlaceholder:null,ariaPosInSet:Kt,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:Xt,ariaRowCount:Kt,ariaRowIndex:Kt,ariaRowSpan:Kt,ariaSelected:Yt,ariaSetSize:Kt,ariaSort:null,ariaValueMax:Kt,ariaValueMin:Kt,ariaValueNow:Kt,ariaValueText:null,role:null}}),ln=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qt,acceptCharset:Xt,accessKey:Xt,action:null,allow:null,allowFullScreen:$t,allowPaymentRequest:$t,allowUserMedia:$t,alt:null,as:null,async:$t,autoCapitalize:null,autoComplete:Xt,autoFocus:$t,autoPlay:$t,capture:$t,charSet:null,checked:$t,cite:null,className:Xt,cols:Kt,colSpan:null,content:null,contentEditable:Yt,controls:$t,controlsList:Xt,coords:Kt|Qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$t,defer:$t,dir:null,dirName:null,disabled:$t,download:Zt,draggable:Yt,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$t,formTarget:null,headers:Xt,height:Kt,hidden:$t,high:Kt,href:null,hrefLang:null,htmlFor:Xt,httpEquiv:Xt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:$t,itemId:null,itemProp:Xt,itemRef:Xt,itemScope:$t,itemType:Xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$t,low:Kt,manifest:null,max:null,maxLength:Kt,media:null,method:null,min:null,minLength:Kt,multiple:$t,muted:$t,name:null,nonce:null,noModule:$t,noValidate:$t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$t,optimum:Kt,pattern:null,ping:Xt,placeholder:null,playsInline:$t,poster:null,preload:null,readOnly:$t,referrerPolicy:null,rel:Xt,required:$t,reversed:$t,rows:Kt,rowSpan:Kt,sandbox:Xt,scope:null,scoped:$t,seamless:$t,selected:$t,shape:null,size:Kt,sizes:null,slot:null,span:Kt,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Kt,step:null,style:null,tabIndex:Kt,target:null,title:null,translate:null,type:null,typeMustMatch:$t,useMap:null,value:Yt,width:Kt,wrap:null,align:null,aLink:null,archive:Xt,axis:null,background:null,bgColor:null,border:Kt,borderColor:null,bottomMargin:Kt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$t,declare:$t,event:null,face:null,frame:null,frameBorder:null,hSpace:Kt,leftMargin:Kt,link:null,longDesc:null,lowSrc:null,marginHeight:Kt,marginWidth:Kt,noResize:$t,noHref:$t,noShade:$t,noWrap:$t,object:null,profile:null,prompt:null,rev:null,rightMargin:Kt,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:Kt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Kt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$t,disableRemotePlayback:$t,prefix:null,property:null,results:Kt,security:null,unselectable:null}}),un=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:Jt,accentHeight:Kt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Kt,amplitude:Kt,arabicForm:null,ascent:Kt,attributeName:null,attributeType:null,azimuth:Kt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Kt,by:null,calcMode:null,capHeight:Kt,className:Xt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Kt,diffuseConstant:Kt,direction:null,display:null,dur:null,divisor:Kt,dominantBaseline:null,download:$t,dx:null,dy:null,edgeMode:null,editable:null,elevation:Kt,enableBackground:null,end:null,event:null,exponent:Kt,externalResourcesRequired:null,fill:null,fillOpacity:Kt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qt,g2:Qt,glyphName:Qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Kt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Kt,horizOriginX:Kt,horizOriginY:Kt,id:null,ideographic:Kt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Kt,k:Kt,k1:Kt,k2:Kt,k3:Kt,k4:Kt,kernelMatrix:Jt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Kt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Kt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Kt,overlineThickness:Kt,paintOrder:null,panose1:null,path:null,pathLength:Kt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Kt,pointsAtY:Kt,pointsAtZ:Kt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jt,rev:Jt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jt,requiredFeatures:Jt,requiredFonts:Jt,requiredFormats:Jt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Kt,specularExponent:Kt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Kt,strikethroughThickness:Kt,string:null,stroke:null,strokeDashArray:Jt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Kt,strokeOpacity:Kt,strokeWidth:null,style:null,surfaceScale:Kt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jt,tabIndex:Kt,tableValues:null,target:null,targetX:Kt,targetY:Kt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jt,to:null,transform:null,u1:null,u2:null,underlinePosition:Kt,underlineThickness:Kt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Kt,values:null,vAlphabetic:Kt,vMathematical:Kt,vectorEffect:null,vHanging:Kt,vIdeographic:Kt,version:null,vertAdvY:Kt,vertOriginX:Kt,vertOriginY:Kt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Kt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),cn=merge([rn,nn,on,an,ln],"html"),sn=merge([rn,nn,on,an,un],"svg");function rehypeFilter(i){if(i.allowedElements&&i.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(i.allowedElements||i.disallowedElements||i.allowElement)return C=>{visit(C,"element",((C,w,x)=>{const O=x;let S;if(i.allowedElements?S=!i.allowedElements.includes(C.tagName):i.disallowedElements&&(S=i.disallowedElements.includes(C.tagName)),!S&&i.allowElement&&"number"==typeof w&&(S=!i.allowElement(C,w,O)),S&&"number"==typeof w)return i.unwrapDisallowed&&C.children?O.children.splice(w,1,...C.children):O.children.splice(w,1),w}))}}var dn=w(19185);function whitespace(i){const C=i&&"object"==typeof i&&"text"===i.type?i.value||"":i;return"string"==typeof C&&""===C.replace(/[ \t\n\f\r]/g,"")}const fn=/^data[-\w.:]+$/i,pn=/-[a-z]/g,mn=/[A-Z]/g;function kebab(i){return"-"+i.toLowerCase()}function camelcase(i){return i.charAt(1).toUpperCase()}const hn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const gn=w(55862),yn={}.hasOwnProperty,vn=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(i,C){const w=[];let x,O=-1;for(;++O<C.children.length;)x=C.children[O],"element"===x.type?w.push(toReact(i,x,O,C)):"text"===x.type?"element"===C.type&&vn.has(C.tagName)&&whitespace(x)||w.push(x.value):"raw"!==x.type||i.options.skipHtml||w.push(x.value);return w}function toReact(i,C,w,x){const O=i.options,S=void 0===O.transformLinkUri?uriTransformer:O.transformLinkUri,I=i.schema,R=C.tagName,j={};let W,N=I;if("html"===I.space&&"svg"===R&&(N=sn,i.schema=N),C.properties)for(W in C.properties)yn.call(C.properties,W)&&addProperty(j,W,C.properties[W],i);"ol"!==R&&"ul"!==R||i.listDepth++;const G=childrenToReact(i,C);"ol"!==R&&"ul"!==R||i.listDepth--,i.schema=I;const $=C.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},J=O.components&&yn.call(O.components,R)?O.components[R]:R,re="string"==typeof J||J===k.Fragment;if(!dn.isValidElementType(J))throw new TypeError(`Component for name \`${R}\` not defined or is not renderable`);if(j.key=w,"a"===R&&O.linkTarget&&(j.target="function"==typeof O.linkTarget?O.linkTarget(String(j.href||""),C.children,"string"==typeof j.title?j.title:null):O.linkTarget),"a"===R&&S&&(j.href=S(String(j.href||""),C.children,"string"==typeof j.title?j.title:null)),re||"code"!==R||"element"!==x.type||"pre"===x.tagName||(j.inline=!0),re||"h1"!==R&&"h2"!==R&&"h3"!==R&&"h4"!==R&&"h5"!==R&&"h6"!==R||(j.level=Number.parseInt(R.charAt(1),10)),"img"===R&&O.transformImageUri&&(j.src=O.transformImageUri(String(j.src||""),String(j.alt||""),"string"==typeof j.title?j.title:null)),!re&&"li"===R&&"element"===x.type){const i=function getInputElement(i){let C=-1;for(;++C<i.children.length;){const w=i.children[C];if("element"===w.type&&"input"===w.tagName)return w}return null}(C);j.checked=i&&i.properties?Boolean(i.properties.checked):null,j.index=getElementsBeforeCount(x,C),j.ordered="ol"===x.tagName}return re||"ol"!==R&&"ul"!==R||(j.ordered="ol"===R,j.depth=i.listDepth),"td"!==R&&"th"!==R||(j.align&&(j.style||(j.style={}),j.style.textAlign=j.align,delete j.align),re||(j.isHeader="th"===R)),re||"tr"!==R||"element"!==x.type||(j.isHeader=Boolean("thead"===x.tagName)),O.sourcePos&&(j["data-sourcepos"]=function flattenPosition(i){return[i.start.line,":",i.start.column,"-",i.end.line,":",i.end.column].map(String).join("")}($)),!re&&O.rawSourcePos&&(j.sourcePosition=C.position),!re&&O.includeElementIndex&&(j.index=getElementsBeforeCount(x,C),j.siblingCount=getElementsBeforeCount(x)),re||(j.node=C),G.length>0?k.createElement(J,j,G):k.createElement(J,j)}function getElementsBeforeCount(i,C){let w=-1,x=0;for(;++w<i.children.length&&i.children[w]!==C;)"element"===i.children[w].type&&x++;return x}function addProperty(i,C,w,x){const O=function find(i,C){const w=normalize_normalize(C);let x=C,O=Info;if(w in i.normal)return i.property[i.normal[w]];if(w.length>4&&"data"===w.slice(0,4)&&fn.test(C)){if("-"===C.charAt(4)){const i=C.slice(5).replace(pn,camelcase);x="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=C.slice(4);if(!pn.test(i)){let w=i.replace(mn,kebab);"-"!==w.charAt(0)&&(w="-"+w),C="data"+w}}O=DefinedInfo}return new O(x,C)}(x.schema,C);let S=w;null!=S&&S==S&&(Array.isArray(S)&&(S=O.commaSeparated?function comma_separated_tokens_stringify(i,C){const w=C||{};return(""===i[i.length-1]?[...i,""]:i).join((w.padRight?" ":"")+","+(!1===w.padLeft?"":" ")).trim()}(S):function stringify(i){return i.join(" ").trim()}(S)),"style"===O.property&&"string"==typeof S&&(S=function parseStyle(i){const C={};try{gn(i,iterator)}catch{}return C;function iterator(i,w){const x="-ms-"===i.slice(0,4)?`ms-${i.slice(4)}`:i;C[x.replace(/-([a-z])/g,styleReplacer)]=w}}(S)),O.space&&O.property?i[yn.call(hn,O.property)?hn[O.property]:O.property]=S:O.attribute&&(i[O.attribute]=S))}function styleReplacer(i,C){return C.toUpperCase()}const bn={}.hasOwnProperty,_n="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cn={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(i){for(const C in Cn)if(bn.call(Cn,C)&&bn.call(i,C)){const i=Cn[C];console.warn(`[react-markdown] Warning: please ${i.to?`use \`${i.to}\` instead of`:"remove"} \`${C}\` (see <${_n}#${i.id}> for more info)`),delete Cn[C]}const C=G().use(remarkParse).use(i.remarkPlugins||[]).use(lib,{...i.remarkRehypeOptions,allowDangerousHtml:!0}).use(i.rehypePlugins||[]).use(rehypeFilter,i),w=new VFile;"string"==typeof i.children?w.value=i.children:void 0!==i.children&&null!==i.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${i.children}\`)`);const x=C.runSync(C.parse(w),w);if("root"!==x.type)throw new TypeError("Expected a `root` node");let O=k.createElement(k.Fragment,{},childrenToReact({options:i,schema:cn,listDepth:0},x));return i.className&&(O=k.createElement("div",{className:i.className},O)),O}ReactMarkdown.propTypes={children:Vt.string,className:Vt.string,allowElement:Vt.func,allowedElements:Vt.arrayOf(Vt.string),disallowedElements:Vt.arrayOf(Vt.string),unwrapDisallowed:Vt.bool,remarkPlugins:Vt.arrayOf(Vt.oneOfType([Vt.object,Vt.func,Vt.arrayOf(Vt.oneOfType([Vt.bool,Vt.string,Vt.object,Vt.func,Vt.arrayOf(Vt.any)]))])),rehypePlugins:Vt.arrayOf(Vt.oneOfType([Vt.object,Vt.func,Vt.arrayOf(Vt.oneOfType([Vt.bool,Vt.string,Vt.object,Vt.func,Vt.arrayOf(Vt.any)]))])),sourcePos:Vt.bool,rawSourcePos:Vt.bool,skipHtml:Vt.bool,includeElementIndex:Vt.bool,transformLinkUri:Vt.oneOfType([Vt.func,Vt.bool]),linkTarget:Vt.oneOfType([Vt.func,Vt.string]),transformImageUri:Vt.func,components:Vt.object}}},C={};function __webpack_require__(w){var x=C[w];if(void 0!==x)return x.exports;var O=C[w]={exports:{}};return i[w].call(O.exports,O,O.exports,__webpack_require__),O.exports}__webpack_require__.n=i=>{var C=i&&i.__esModule?()=>i.default:()=>i;return __webpack_require__.d(C,{a:C}),C},__webpack_require__.d=(i,C)=>{for(var w in C)__webpack_require__.o(C,w)&&!__webpack_require__.o(i,w)&&Object.defineProperty(i,w,{enumerable:!0,get:C[w]})},__webpack_require__.o=(i,C)=>Object.prototype.hasOwnProperty.call(i,C),__webpack_require__.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},__webpack_require__.nc=void 0,(()=>{"use strict";var i=__webpack_require__(73203)(__webpack_require__(74270));window.__UNSTABLE__elementorAI={App:i.default}})()})();
Save Changes
Rename File
Rename