@emailmaker/emailmaker 1.0.116 → 1.0.117-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +275 -109
  2. package/asset-manifest.json +27 -27
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +235 -38
  5. package/emailmaker.js +1 -1
  6. package/iframe/429.js +1 -1
  7. package/iframe/766.js +1 -1
  8. package/iframe/iframe-eblock.3b8240bd8d75c6ee2a77.html +1 -0
  9. package/iframe/iframe.3b8240bd8d75c6ee2a77.html +1 -0
  10. package/iframe/index.html +1 -1
  11. package/iframe/js/525.7e478fc1.js +1 -0
  12. package/iframe/js/667.4d0450c5.js +1 -0
  13. package/iframe/js/882.46943f9a.js +1 -0
  14. package/iframe/sandbox-eblock.js +1 -1
  15. package/package.json +1 -1
  16. package/static/css/{369.d740f134.chunk.css → 5072.f959228f.chunk.css} +2 -2
  17. package/static/css/{main.8c8bed31.css → main.f5e75ca4.css} +2 -2
  18. package/static/js/{1902.9e9ca2af.js → 1902.fa7e9fe6.js} +3 -3
  19. package/static/js/{2854.10396f08.js → 2854.95e1c8d0.js} +2 -2
  20. package/static/js/5072.e5ce1614.js +3 -0
  21. package/static/js/598.61e6a78a.js +2 -0
  22. package/static/js/8430.12bfa59b.js +2 -0
  23. package/static/js/{8580.4f3e7c56.js → 8580.47fa4f83.js} +2 -2
  24. package/static/js/{8727.97602af2.js → 8727.ef480f4b.js} +2 -2
  25. package/static/js/{emailmaker_core.d07551cd.js → emailmaker_core.1f145e15.js} +2 -2
  26. package/iframe/iframe-eblock.612f5e3292f38c64ed91.html +0 -1
  27. package/iframe/iframe.612f5e3292f38c64ed91.html +0 -1
  28. package/iframe/js/525.5461ecf3.js +0 -1
  29. package/iframe/js/667.25c21b63.js +0 -1
  30. package/iframe/js/882.de4b06e1.js +0 -1
  31. package/static/js/369.05739401.js +0 -3
  32. package/static/js/5215.a9897c36.js +0 -2
  33. package/static/js/6438.78acfa4a.js +0 -2
  34. /package/iframe/js/{525.5461ecf3.js.LICENSE.txt → 525.7e478fc1.js.LICENSE.txt} +0 -0
  35. /package/iframe/js/{667.25c21b63.js.LICENSE.txt → 667.4d0450c5.js.LICENSE.txt} +0 -0
  36. /package/iframe/js/{882.de4b06e1.js.LICENSE.txt → 882.46943f9a.js.LICENSE.txt} +0 -0
  37. /package/static/js/{1902.9e9ca2af.js.LICENSE.txt → 1902.fa7e9fe6.js.LICENSE.txt} +0 -0
  38. /package/static/js/{369.05739401.js.LICENSE.txt → 5072.e5ce1614.js.LICENSE.txt} +0 -0
@@ -1,3 +0,0 @@
1
- /*! For license information please see 369.05739401.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[369],{12759:(e,t,n)=>{function r(e){return e?e.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}n.d(t,{R$:()=>r,W6:()=>a,j3:()=>o});class a{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,a._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return a._allCodicons}}var o;a._allCodicons=[],a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolCustomColor=new a("symbol-customcolor",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.circleSmallFilled=new a("circle-small-filled",{fontCharacter:"\\eb8a"}),a.debugStackframeDot=new a("debug-stackframe-dot",a.circleSmallFilled.definition),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"}),a.newLine=new a("newline",{fontCharacter:"\\ebea"}),a.layout=new a("layout",{fontCharacter:"\\ebeb"}),a.layoutActivitybarLeft=new a("layout-activitybar-left",{fontCharacter:"\\ebec"}),a.layoutActivitybarRight=new a("layout-activitybar-right",{fontCharacter:"\\ebed"}),a.layoutPanelLeft=new a("layout-panel-left",{fontCharacter:"\\ebee"}),a.layoutPanelCenter=new a("layout-panel-center",{fontCharacter:"\\ebef"}),a.layoutPanelJustify=new a("layout-panel-justify",{fontCharacter:"\\ebf0"}),a.layoutPanelRight=new a("layout-panel-right",{fontCharacter:"\\ebf1"}),a.layoutPanel=new a("layout-panel",{fontCharacter:"\\ebf2"}),a.layoutSidebarLeft=new a("layout-sidebar-left",{fontCharacter:"\\ebf3"}),a.layoutSidebarRight=new a("layout-sidebar-right",{fontCharacter:"\\ebf4"}),a.layoutStatusbar=new a("layout-statusbar",{fontCharacter:"\\ebf5"}),a.layoutMenubar=new a("layout-menubar",{fontCharacter:"\\ebf6"}),a.layoutCentered=new a("layout-centered",{fontCharacter:"\\ebf7"}),a.layoutSidebarRightOff=new a("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),a.layoutPanelOff=new a("layout-panel-off",{fontCharacter:"\\ec01"}),a.layoutSidebarLeftOff=new a("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),a.target=new a("target",{fontCharacter:"\\ebf8"}),a.indent=new a("indent",{fontCharacter:"\\ebf9"}),a.recordSmall=new a("record-small",{fontCharacter:"\\ebfa"}),a.errorSmall=new a("error-small",{fontCharacter:"\\ebfb"}),a.arrowCircleDown=new a("arrow-circle-down",{fontCharacter:"\\ebfc"}),a.arrowCircleLeft=new a("arrow-circle-left",{fontCharacter:"\\ebfd"}),a.arrowCircleRight=new a("arrow-circle-right",{fontCharacter:"\\ebfe"}),a.arrowCircleUp=new a("arrow-circle-up",{fontCharacter:"\\ebff"}),a.heartFilled=new a("heart-filled",{fontCharacter:"\\ec04"}),a.map=new a("map",{fontCharacter:"\\ec05"}),a.mapFilled=new a("map-filled",{fontCharacter:"\\ec06"}),a.circleSmall=new a("circle-small",{fontCharacter:"\\ec07"}),a.bellSlash=new a("bell-slash",{fontCharacter:"\\ec08"}),a.bellSlashDot=new a("bell-slash-dot",{fontCharacter:"\\ec09"}),a.commentUnresolved=new a("comment-unresolved",{fontCharacter:"\\ec0a"}),a.dialogError=new a("dialog-error",a.error.definition),a.dialogWarning=new a("dialog-warning",a.warning.definition),a.dialogInfo=new a("dialog-info",a.info.definition),a.dialogClose=new a("dialog-close",a.close.definition),a.treeItemExpanded=new a("tree-item-expanded",a.chevronDown.definition),a.treeFilterOnTypeOn=new a("tree-filter-on-type-on",a.listFilter.definition),a.treeFilterOnTypeOff=new a("tree-filter-on-type-off",a.listSelection.definition),a.treeFilterClear=new a("tree-filter-clear",a.close.definition),a.treeItemLoading=new a("tree-item-loading",a.loading.definition),a.menuSelection=new a("menu-selection",a.check.definition),a.menuSubmenu=new a("menu-submenu",a.chevronRight.definition),a.menuBarMore=new a("menubar-more",a.more.definition),a.scrollbarButtonLeft=new a("scrollbar-button-left",a.triangleLeft.definition),a.scrollbarButtonRight=new a("scrollbar-button-right",a.triangleRight.definition),a.scrollbarButtonUp=new a("scrollbar-button-up",a.triangleUp.definition),a.scrollbarButtonDown=new a("scrollbar-button-down",a.triangleDown.definition),a.toolBarMore=new a("toolbar-more",a.more.definition),a.quickInputBack=new a("quick-input-back",a.arrowLeft.definition),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof a)return["codicon","codicon-"+e.id];const r=t.exec(e.id);if(!r)return n(a.error);const[,o,i]=r,s=["codicon","codicon-"+o];return i&&s.push("codicon-modifier-"+i.substr(1)),s}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(o||(o={}))},21336:(e,t,n)=>{n.d(t,{AL:()=>l,D7:()=>p,EM:()=>f,MB:()=>c,M_:()=>o,Qg:()=>d,aD:()=>u,cU:()=>i,dz:()=>a,iH:()=>h});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(m.isErrorNoTelemetry(e))throw new m(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function a(e){c(e)||r.onUnexpectedError(e)}function o(e){c(e)||r.onUnexpectedExternalError(e)}function i(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:m.isErrorNoTelemetry(e)}}return e}const s="Canceled";function c(e){return e instanceof l||e instanceof Error&&e.name===s&&e.message===s}class l extends Error{constructor(){super(s),this.name=this.message}}function u(){const e=new Error(s);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class f extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class m extends Error{constructor(e){super(e),this.name="ErrorNoTelemetry"}static fromError(e){if(e instanceof m)return e;const t=new m;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"ErrorNoTelemetry"===e.name}}class p extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,p.prototype)}}},56095:(e,t,n)=>{n.d(t,{AS:()=>h,BO:()=>v,Cm:()=>p,HE:()=>b,St:()=>y,Xm:()=>d,jG:()=>g,lC:()=>l,mp:()=>w,qE:()=>f,s:()=>m});var r=n(58258),a=n(87577);let o=null;function i(e){return null===o||void 0===o||o.trackDisposable(e),e}function s(e){null===o||void 0===o||o.markAsDisposed(e)}function c(e,t){null===o||void 0===o||o.setParent(e,t)}function l(e){return null===o||void 0===o||o.markAsSingleton(e),e}class u extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function d(e){return"function"===typeof e.dispose&&0===e.dispose.length}function h(e){if(a.f.is(e)){const n=[];for(const r of e)if(r)try{r.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new u(n);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=m(()=>h(e));return function(e,t){if(o)for(const n of e)o.setParent(n,t)}(e,t),t}function m(e){const t=i({dispose:(0,r.O)(()=>{s(t),e()})});return t}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,i(this)}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING:this._toDispose.add(e),e}}p.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new p,i(this),c(this._store,this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}});class b{constructor(){this._isDisposed=!1,i(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&c(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,s(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&c(e,null),e}}class w{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class y{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,i(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,s(this))},this}}class v{constructor(e){this.object=e}dispose(){}}},80402:(e,t,n)=>{n.d(t,{B6:()=>A,Fd:()=>w,LC:()=>p,P8:()=>m,Pi:()=>f,er:()=>d,iZ:()=>y,n4:()=>h,o1:()=>v,pD:()=>g,su:()=>l,uJ:()=>b});var r=n(64471),a=n(10461),o=n(52120),i=n(47916),s=n(9221),c=n(62553);function l(e){return(0,c.I)(e,!0)}class u{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:(0,s.UD)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,n=!1){if(e.scheme===t.scheme){if(e.scheme===a.ny.file)return r._1(l(e),l(t),this._ignorePathCasing(e))&&e.query===t.query&&(n||e.fragment===t.fragment);if(C(e.authority,t.authority))return r._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(n||e.fragment===t.fragment)}return!1}joinPath(e,...t){return c.r.joinPath(e,...t)}basenameOrAuthority(e){return m(e)||e.authority}basename(e){return o.SA.basename(e.path)}extname(e){return o.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===a.ny.file?t=c.r.file(o.pD(l(e))).path:(t=o.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===a.ny.file?c.r.file(o.S8(l(e))).path:o.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!C(e.authority,t.authority))return;if(e.scheme===a.ny.file){const n=o.V8(l(e),l(t));return i.uF?r.TH(n):n}let n=e.path||"/";const s=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,s.length);e<t&&(n.charCodeAt(e)===s.charCodeAt(e)||n.charAt(e).toLowerCase()===s.charAt(e).toLowerCase());e++);n=s.substr(0,e)+n.substr(e)}return o.SA.relative(n,s)}resolvePath(e,t){if(e.scheme===a.ny.file){const n=c.r.file(o.hd(l(e),t));return e.with({authority:n.authority,path:n.path})}return t=r.kb(t),e.with({path:o.SA.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&"/"===e.path[0]}isEqualAuthority(e,t){return e===t||void 0!==e&&void 0!==t&&(0,s.Q_)(e,t)}hasTrailingPathSeparator(e,t=o.Vn){if(e.scheme===a.ny.file){const n=l(e);return n.length>r.Zn(n).length&&n[n.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=o.Vn){return S(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=o.Vn){let n=!1;if(e.scheme===a.ny.file){const a=l(e);n=void 0!==a&&a.length===r.Zn(a).length&&a[a.length-1]===t}else{t="/";const r=e.path;n=1===r.length&&47===r.charCodeAt(r.length-1)}return n||S(e,t)?e:e.with({path:e.path+"/"})}}const d=new u(()=>!1),h=(new u(e=>e.scheme!==a.ny.file||!i.j9),new u(e=>!0),d.isEqual.bind(d)),f=(d.isEqualOrParent.bind(d),d.getComparisonKey.bind(d),d.basenameOrAuthority.bind(d)),m=d.basename.bind(d),p=d.extname.bind(d),g=d.dirname.bind(d),b=d.joinPath.bind(d),w=d.normalizePath.bind(d),y=d.relativePath.bind(d),v=d.resolvePath.bind(d),C=(d.isAbsolutePath.bind(d),d.isEqualAuthority.bind(d)),S=d.hasTrailingPathSeparator.bind(d);d.removeTrailingPathSeparator.bind(d),d.addTrailingPathSeparator.bind(d);var A;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(A||(A={}))},33579:(e,t,n)=>{n.d(t,{C1:()=>o,Ym:()=>r,kF:()=>a});const r={ctrlCmd:!1,alt:!1};var a,o;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(a||(a={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(o||(o={}));new class{constructor(e){this.options=e}}},49555:(e,t,n)=>{n.d(t,{Du:()=>h,Su:()=>f,aI:()=>d,b7:()=>u});var r=n(9221),a=n(47916),o=n(97257);let i,s,c;function l(){return i||(i=new TextDecoder("UTF-16LE")),i}function u(){return c||(c=a.cm()?l():(s||(s=new TextDecoder("UTF-16BE")),s)),c}const d="undefined"!==typeof TextDecoder;let h,f;function m(e,t,n){const r=[];let a=0;for(let i=0;i<n;i++){const n=o.$l(e,t);t+=2,r[a++]=String.fromCharCode(n)}return r.join("")}d?(h=e=>new p(e),f=function(e,t,n){const r=new Uint16Array(e.buffer,t,n);if(n>0&&(65279===r[0]||65534===r[0]))return m(e,t,n);return l().decode(r)}):(h=e=>new g,f=m);class p{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return u().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||r.pc(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}class g{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}},68077:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(33029);class a extends r.V{constructor(e){super(0);for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}const o=function(e){const t={};return n=>(t.hasOwnProperty(n)||(t[n]=e(n)),t[n])}(e=>new a(e))},80681:(e,t,n)=>{n.d(t,{L:()=>r});const r=(0,n(10174).u1)("languageService")},88638:(e,t,n)=>{n.d(t,{A5:()=>r,Dg:()=>c,F4:()=>d,L5:()=>u,R3:()=>a,VW:()=>o,Wo:()=>l,X2:()=>s,vd:()=>h});var r,a,o,i=n(75007);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(a||(a={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(o||(o={}));class s{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,i.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class c{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class l{constructor(e,t,n,r,a,o){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=a,this._isTracked=o}}class u{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class d{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function h(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},48349:(e,t,n)=>{n.d(t,{S:()=>r});const r=(0,n(10174).u1)("modelService")},81897:(e,t,n)=>{n.d(t,{b:()=>r});const r=(0,n(10174).u1)("textModelService")},91504:(e,t,n)=>{n.d(t,{E6:()=>u,Hw:()=>o,YN:()=>a,b2:()=>r,gf:()=>s,n9:()=>c,oq:()=>i,tu:()=>d,vp:()=>l});var r,a,o,i,s,c,l,u,d,h=n(54500);!function(e){e.noSelection=h.kg("noSelection","No selection"),e.singleSelectionRange=h.kg("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=h.kg("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=h.kg("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=h.kg("multiSelection","{0} selections"),e.emergencyConfOn=h.kg("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=h.kg("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=h.kg("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=h.kg("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=h.kg("readonlyEditor"," in a read-only code editor"),e.editableEditor=h.kg("editableEditor"," in a code editor"),e.changeConfigToOnMac=h.kg("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=h.kg("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=h.kg("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=h.kg("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=h.kg("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=h.kg("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=h.kg("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=h.kg("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=h.kg("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=h.kg("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=h.kg("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=h.kg("showAccessibilityHelpAction","Show Accessibility Help")}(r||(r={})),function(e){e.inspectTokensAction=h.kg("inspectTokens","Developer: Inspect Tokens")}(a||(a={})),function(e){e.gotoLineActionLabel=h.kg("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=h.kg("helpQuickAccess","Show all Quick Access Providers")}(i||(i={})),function(e){e.quickCommandActionLabel=h.kg("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.kg("quickCommandActionHelp","Show And Run Commands")}(s||(s={})),function(e){e.quickOutlineActionLabel=h.kg("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(c||(c={})),function(e){e.editorViewAccessibleLabel=h.kg("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.kg("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=h.kg("toggleHighContrast","Toggle High Contrast Theme")}(u||(u={})),function(e){e.bulkEditServiceSummary=h.kg("bulkEditServiceSummary","Made {0} edits in {1} files")}(d||(d={}))},30831:(e,t,n)=>{n.d(t,{QE:()=>ze,XB:()=>Te,Zc:()=>je});n(86460),n(23513),n(30054),n(30011),n(53323);var r=n(9221),a=n(68026),o=n(9569),i=n(11779),s=n(3390),c=n(56095),l=n(47916),u=n(85360),d=n(62553),h=n(32340),f=n(73820),m=n(29158),p=n(62456),g=n(13462),b=n(48349),w=n(81897),y=n(57651),v=n(92542),C=n(55368),S=n(59018),A=n(26714),E=n(18934),_=n(10174),k=n(22889),L=n(64642),R=n(56788),N=n(26254),T=n(34349),x=n(82988),O=n(21764),D=n(20242),P=n(99794),I=n(79386),M=n(98526),j=n(2484),B=n(91504),F=n(80402),U=n(25812),$=n(79040),q=n(46718),z=n(65223),Y=n(96464),K=n(99948),H=n(79515),Z=n(48419),W=n(28557),V=n(95038),G=n(52057),Q=n(6167),X=n(80681),J=n(62502),ee=n(54569),te=n(41034),ne=n(77965),re=n(52558),ae=n(15703),oe=n(22688),ie=n(12544),se=n(18086),ce=n(79423),le=n(66828),ue=n(36573),de=n(25800),he=n(63817),fe=n(96055),me=n(78104),pe=n(42832),ge=n(41494),be=n(77964),we=n(51350),ye=n(89822),ve=n(77702),Ce=(n(12345),n(26423)),Se=function(e,t,n,r){var a,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},Ae=function(e,t){return function(n,r){t(n,r,e)}},Ee=function(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}c((r=r.apply(e,t||[])).next())})};class _e{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new i.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let ke=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new c.BO(new _e(t))):Promise.reject(new Error("Model not found"))}};ke=Se([Ae(0,b.S)],ke);class Le{show(){return Le.NULL_PROGRESS_RUNNER}showWhile(e,t){return Ee(this,void 0,void 0,function*(){yield e})}}Le.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Re{info(e){return this.notify({severity:u.A.Info,message:e})}warn(e){return this.notify({severity:u.A.Warning,message:e})}error(e){return this.notify({severity:u.A.Error,message:e})}notify(e){switch(e.severity){case u.A.Error:case u.A.Warning:}return Re.NO_OP}status(e,t){return c.jG.None}}Re.NO_OP=new D.Kz;let Ne=class{constructor(e){this._onWillExecuteCommand=new i.vl,this._onDidExecuteCommand=new i.vl,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const n=v.wb.getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const r=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(r)}catch(r){return Promise.reject(r)}}};Ne=Se([Ae(0,_._Y)],Ne);let Te=class extends k.E{constructor(e,t,n,r,i,s){super(e,t,n,r,i),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const l=e=>{const t=new c.Cm;t.add(a.ko(e,a.Bx.KEY_DOWN,e=>{const t=new o.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())})),t.add(a.ko(e,a.Bx.KEY_UP,e=>{const t=new o.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()})),this._domNodeListeners.push(new xe(e,t))},u=e=>{for(let t=0;t<this._domNodeListeners.length;t++){const n=this._domNodeListeners[t];n.domNode===e&&(this._domNodeListeners.splice(t,1),n.dispose())}},d=e=>{e.getOption(55)||l(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(d)),this._register(s.onCodeEditorRemove(e=>{e.getOption(55)||u(e.getContainerDomNode())})),s.listCodeEditors().forEach(d);const h=e=>{l(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(h)),this._register(s.onDiffEditorRemove(e=>{u(e.getContainerDomNode())})),s.listDiffEditors().forEach(h)}addDynamicKeybinding(e,t,n,r){const a=(0,s.ZU)(t,l.OS),o=new c.Cm;return a&&(this._dynamicKeybindings.push({keybinding:a.parts,command:e,when:r,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),o.add((0,c.s)(()=>{for(let t=0;t<this._dynamicKeybindings.length;t++){if(this._dynamicKeybindings[t].command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver()}}))),o.add(v.wb.registerCommand(e,n)),this.updateResolver(),o}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(N.f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new R.f(e,t,e=>this._log(e))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const n=[];let r=0;for(const a of e){const e=a.when||void 0,o=a.keybinding;if(o){const i=x.j.resolveUserBinding(o,l.OS);for(const o of i)n[r++]=new T.u(o,a.command,a.commandArgs,e,t,null,!1)}else n[r++]=new T.u(void 0,a.command,a.commandArgs,e,t,null,!1)}return n}resolveKeyboardEvent(e){const t=new s.h$(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new x.j(t,l.OS)}};Te=Se([Ae(0,A.fN),Ae(1,v.wT),Ae(2,I.k),Ae(3,D.Ot),Ae(4,$.rr),Ae(5,U.T)],Te);class xe extends c.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function Oe(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof d.r)}class De{constructor(){this._onDidChangeConfiguration=new i.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new S.Vk(new Ce.z,new S.S1,new S.S1,new S.S1)}getValue(e,t){const n="string"===typeof e?e:void 0,r=Oe(e)?e:Oe(t)?t:{};return this._configuration.getValue(n,r,void 0)}updateValues(e){const t={data:this._configuration.toData()},n=[];for(const r of e){const[e,t]=r;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),n.push(e))}if(n.length>0){const e=new S.Xm({keys:n,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,n,r){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let Pe=class{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new i.vl,this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})})}getValue(e,t,n){const r=(p.y.isIPosition(t)?t:null)?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof r?this.configurationService.getValue():this.configurationService.getValue(r)}};Pe=Se([Ae(0,C.pG)],Pe);let Ie=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"string"===typeof n&&"auto"!==n?n:l.j9||l.zx?"\n":"\r\n"}};Ie=Se([Ae(0,C.pG)],Ie);class Me{constructor(){const e=d.r.from({scheme:Me.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new M.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Me.SCHEME?this.workspace.folders[0]:null}}function je(e,t,n){if(!t)return;if(!(e instanceof De))return;const r=[];Object.keys(t).forEach(e=>{(0,f.vf)(e)&&r.push([`editor.${e}`,t[e]]),n&&(0,f.Gn)(e)&&r.push([`diffEditor.${e}`,t[e]])}),r.length>0&&e.updateValues(r)}Me.SCHEME="inmemory";let Be=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Ee(this,void 0,void 0,function*(){const t=new Map;for(const r of e){if(!(r instanceof h.cw))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let n=t.get(e);n||(n=[],t.set(e,n)),n.push(m.k.replaceMove(g.Q.lift(r.textEdit.range),r.textEdit.text))}let n=0,a=0;for(const[e,r]of t)e.pushStackElement(),e.pushEditOperations([],r,()=>[]),e.pushStackElement(),a+=1,n+=r.length;return{ariaSummary:r.GP(B.tu.bulkEditServiceSummary,n,a)}})}};Be=Se([Ae(0,b.S)],Be);let Fe=class extends Y.Y{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,n){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,n)}};Fe=Se([Ae(0,j.x),Ae(1,U.T)],Fe);class Ue extends K.g{constructor(){super()}}class $e extends $.Kc{constructor(){super(new $.Cr)}}let qe=class extends H.K{constructor(e,t,n,r,a){super(e,t,n,r,a),this.configure({blockMouse:!1})}};var ze;qe=Se([Ae(0,I.k),Ae(1,D.Ot),Ae(2,z.l),Ae(3,L.b),Ae(4,Z.Gy)],qe),(0,W.v)(C.pG,De),(0,W.v)(y.U,Pe),(0,W.v)(y.J,Ie),(0,W.v)(M.VR,Me),(0,W.v)(O.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,F.P8)(e)}}),(0,W.v)(I.k,class{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}),(0,W.v)(E.X,class{confirm(e){return this.doConfirm(e).then(e=>({confirmed:e,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,n,r){return Promise.resolve({choice:0})}}),(0,W.v)(D.Ot,Re),(0,W.v)(ge.DR,be.m),(0,W.v)(X.L,Ue),(0,W.v)(ae.L,re.Sx),(0,W.v)($.rr,$e),(0,W.v)(b.S,te.JW),(0,W.v)(ee.A,J.D),(0,W.v)(A.fN,de.i7),(0,W.v)(P.G5,class{withProgress(e,t,n){return t({report:()=>{}})}}),(0,W.v)(P.N8,Le),(0,W.v)(ve.CS,ve.pc),(0,W.v)(G.w,Q.Bc),(0,W.v)(h.nu,Be),(0,W.v)(q.L,class{constructor(){this._neverEmitter=new i.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}),(0,W.v)(w.b,ke),(0,W.v)(ie.j,oe.s),(0,W.v)(pe.PE,pe.aG),(0,W.v)(v.wT,Ne),(0,W.v)(L.b,Te),(0,W.v)(ye.GK,ne.oC),(0,W.v)(z.l,Fe),(0,W.v)(we.Cr,V.J),(0,W.v)(ue.h,le.w),(0,W.v)(z.Z,qe),(0,W.v)(se.ez,ce.$),function(e){const t=new me.a;for(const[a,o]of(0,W.N)())t.set(a,o);const n=new fe.n(t,!0);t.set(_._Y,n),e.get=function(e){const r=t.get(e);if(!r)throw new Error("Missing service "+e);return r instanceof he.d?n.invokeFunction(t=>t.get(e)):r};let r=!1;e.initialize=function(e){if(r)return n;r=!0;for(const[n,r]of(0,W.N)())t.get(n)||t.set(n,r);for(const n in e)if(e.hasOwnProperty(n)){const r=(0,_.u1)(n);t.get(r)instanceof he.d&&t.set(r,e[n])}return n}}(ze||(ze={}))},54500:(e,t,n)=>{n.d(t,{AM:()=>i,kg:()=>o});let r="undefined"!==typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function a(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(e,n)=>{const r=n[0],a=t[r];let o=e;return"string"===typeof a?o=a:"number"!==typeof a&&"boolean"!==typeof a&&void 0!==a&&null!==a||(o=String(a)),o}),r&&(n="\uff3b"+n.replace(/[aouei]/g,"$&$&")+"\uff3d"),n}function o(e,t,...n){return a(t,n)}function i(e){}},10174:(e,t,n)=>{var r;n.d(t,{_$:()=>r,_Y:()=>a,u1:()=>o}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));const a=o("instantiationService");function o(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,n,a){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,n){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n}],t[r.DI_TARGET]=t)}(t,e,a)};return t.toString=()=>e,r.serviceIds.set(e,t),t}},4950:(e,t,n)=>{n.r(t),n.d(t,{Keyframes:()=>s.A,NaNLinter:()=>c.cH,StyleContext:()=>l.Ay,StyleProvider:()=>l.N7,Theme:()=>u.Sx,_experimental:()=>p,createCache:()=>l.VC,createTheme:()=>u.an,extractStyle:()=>r.A,genCalc:()=>u.Q7,getComputedToken:()=>a.lO,legacyLogicalPropertiesTransformer:()=>d.A,legacyNotSelectorLinter:()=>c.Qn,logicalPropertiesLinter:()=>c.bM,parentSelectorLinter:()=>c.QY,px2remTransformer:()=>h.A,token2CSSVar:()=>m.Ki,unit:()=>f.zA,useCSSVarRegister:()=>o.Ay,useCacheToken:()=>a.Ay,useStyleRegister:()=>i.Ay});var r=n(5658),a=n(44965),o=n(54691),i=n(38596),s=n(25755),c=n(57888),l=n(51752),u=n(95026),d=n(88820),h=n(93585),f=n(99487),m=n(60092),p={supportModernCSS:function(){return(0,f.n6)()&&(0,f.kZ)()}}},12591:(e,t,n)=>{n.d(t,{BD:()=>m});var r=n(42660),a=n(88710);const o="data-rc-order",i="data-rc-priority",s="rc-util-key",c=new Map;function l({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:s}function u(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function d(e){return Array.from((c.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function h(e,t={}){if(!(0,r.A)())return null;const{csp:n,prepend:a,priority:s=0}=t,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),l="prependQueue"===c,h=document.createElement("style");h.setAttribute(o,c),l&&s&&h.setAttribute(i,`${s}`),n?.nonce&&(h.nonce=n?.nonce),h.innerHTML=e;const f=u(t),{firstChild:m}=f;if(a){if(l){const e=(t.styles||d(f)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(o)))return!1;const t=Number(e.getAttribute(i)||0);return s>=t});if(e.length)return f.insertBefore(h,e[e.length-1].nextSibling),h}f.insertBefore(h,m)}else f.appendChild(h);return h}function f(e,t={}){let{styles:n}=t;return n||=d(u(t)),n.find(n=>n.getAttribute(l(t))===e)}function m(e,t,n={}){const r=u(n),o=d(r),i={...n,styles:o};!function(e,t){const n=c.get(e);if(!n||!(0,a.A)(document,n)){const n=h("",t),{parentNode:r}=n;c.set(e,r),e.removeChild(n)}}(r,i);const s=f(t,i);if(s)return i.csp?.nonce&&s.nonce!==i.csp?.nonce&&(s.nonce=i.csp?.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const m=h(e,i);return m.setAttribute(l(i),t),m}},55492:(e,t,n)=>{n.d(t,{kw:()=>c});let r={};const a=[];function o(e,t){0}function i(e,t){0}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){s(o,e,t)}c.preMessage=e=>{a.push(e)},c.resetWarned=function(){r={}},c.noteOnce=function(e,t){s(i,e,t)}},29142:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(50760),a=n(31734);const o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,i){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=o.has(t);if((0,a.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===i)return!0;if(n&&s>1)return!1;o.add(t);var l=s+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],l))return!1;return!0}if(t&&i&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(i)){var d=Object.keys(t);return d.length===Object.keys(i).length&&d.every(function(n){return e(t[n],i[n],l)})}return!1}(e,t)}},88260:(e,t,n)=>{var r,a;n.d(t,{N_:()=>p,ok:()=>w});var o=n(1936),i=n(18005),s=n(84075),c=n(90648);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const h=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(y){}new Map;(r||(r=n.t(o,2))).startTransition,(a||(a=n.t(i,2))).flushSync,(r||(r=n.t(o,2))).useId;const f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,m=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p=o.forwardRef(function(e,t){let n,{onClick:r,relative:a,reloadDocument:i,replace:d,state:p,target:g,to:b,preventScrollReset:w,viewTransition:v}=e,C=u(e,h),{basename:S}=o.useContext(s.jb),A=!1;if("string"===typeof b&&m.test(b)&&(n=b,f))try{let e=new URL(window.location.href),t=b.startsWith("//")?new URL(e.protocol+b):new URL(b),n=(0,c.pb)(t.pathname,S);t.origin===e.origin&&null!=n?b=n+t.search+t.hash:A=!0}catch(y){}let E=(0,s.$P)(b,{relative:a}),_=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:l,viewTransition:u}=void 0===t?{}:t,d=(0,s.Zp)(),h=(0,s.zy)(),f=(0,s.x$)(e,{relative:l});return o.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,c.AO)(h)===(0,c.AO)(f);d(e,{replace:n,state:a,preventScrollReset:i,relative:l,viewTransition:u})}},[h,d,f,r,a,n,e,i,l,u])}(b,{replace:d,state:p,target:g,preventScrollReset:w,relative:a,viewTransition:v});return o.createElement("a",l({},C,{href:n||E,onClick:A||i?r:function(e){r&&r(e),e.defaultPrevented||_(e)},ref:t,target:g}))});var g,b;function w(e){let t=o.useRef(d(e)),n=o.useRef(!1),r=(0,s.zy)(),a=o.useMemo(()=>function(e,t){let n=d(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(r.search,n.current?null:t.current),[r.search]),i=(0,s.Zp)(),c=o.useCallback((e,t)=>{const r=d("function"===typeof e?e(a):e);n.current=!0,i("?"+r,t)},[i,a]);return[a,c]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(g||(g={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},1331:(e,t,n)=>{n.d(t,{A6:()=>l,AH:()=>p,BF:()=>d,Cn:()=>b,K8:()=>m,Lv:()=>S,M6:()=>u,ST:()=>h,Sb:()=>w,TM:()=>a,b6:()=>E,d1:()=>k,ih:()=>v,ir:()=>C,rq:()=>A,uE:()=>c,uL:()=>_,vq:()=>s,wz:()=>f});var r=n(43083);function a(e){return"<!DOCTYPE "+e.name+(e.publicId?' PUBLIC "'+e.publicId+'"':"")+(!e.publicId&&e.systemId?" SYSTEM":"")+(e.systemId?' "'+e.systemId+'"':"")+">"}const o=Object.create(null);function i(e,t){const n=o[e]||(o[e]=Object.create(null));let r=n[t];if("boolean"!==typeof r){const a=document.createElement(e)[t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(e,t)=>t.toUpperCase())];r=n[t]="undefined"!==typeof a&&"boolean"!==typeof a}return r}function s(e){return e.nodeType===Node.ELEMENT_NODE}function c(e){return s(e)&&!e.ownerSVGElement}function l(e){return"IMG"===e.tagName}function u(e){return"AMP-IMG"===e.tagName}function d(e){return"FORM"===e.tagName}function h(e){return"STYLE"===e.tagName}function f(e){return e.nodeType===Node.DOCUMENT_NODE}function m(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}let p;var g;function b(e){return e.nodeType===Node.COMMENT_NODE}function w(e){const t=e.getRootNode()||window.document;return function(e){return e&&!!e.host&&!!e.mode}(t)?t:null}(g=p||(p={})).isStyleRule=function(e){return"CSSStyleRule"===e.constructor.name},g.isImportRule=function(e){return"CSSImportRule"===e.constructor.name},g.isMediaRule=function(e){return"CSSMediaRule"===e.constructor.name},g.isFontFaceRule=function(e){return"CSSFontFaceRule"===e.constructor.name},g.isPageRule=function(e){return"CSSPageRule"===e.constructor.name},g.isKeyframesRule=function(e){return"CSSKeyframesRule"===e.constructor.name},g.isKeyframeRuleRule=function(e){return"CSSKeyframeRule"===e.constructor.name},g.isNamespaceRule=function(e){return"CSSNamespaceRule"===e.constructor.name},g.isCounterStyleRule=function(e){return"CSSCounterStyleRule"===e.constructor.name},g.isSupportsRule=function(e){return"CSSSupportsRule"===e.constructor.name},g.isFontFeatureValuesRuleRule=function(e){return"CSSFontFeatureValuesRule"===e.constructor.name};const y=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function v(e){const t=E(e).matchAll(y);if(t)for(const n of t){const[,e,,t,r]=n;return{open:e,close:r,content:t}}}function C(e){return e.nodeType===Node.TEXT_NODE}function S(e){return"TABLE"===e.tagName}async function A(e,t=5e3){return"undefined"===typeof e.complete||e.complete?getComputedStyle(e):new Promise((n,r)=>{setTimeout(n,t),e.onload=()=>n(getComputedStyle(e)),e.onerror=e=>{}})}function E(e){if(s(e))return function(e){var t;const n=(null===(t=Object.getOwnPropertyDescriptor(e,"$$tagName"))||void 0===t?void 0:t.value)||e.tagName.toLowerCase(),a=function(e){const t=e.tagName.toLowerCase();let n="";for(const r of e.attributes){const e=r.name,a=r.value;n+=""!==a||"em"===e||i(t,e)?` ${e}="${a.replaceAll('"',"'")}"`:` ${e}`}return n}(e);return r.n1.has(n.toLowerCase())?"vk-snippet-end"===n?`<${n}${a}/>`:`<${n}${a}>`:h(e)?`<${n}${a}>${e.innerHTML}</${n}>`:`<${n}${a}>${_(e)}</${n}>`}(e);if(f(e))return[...e.childNodes].map(e=>E(e)).join("");if(function(e){return e.nodeType===Node.DOCUMENT_TYPE_NODE}(e))return a(e);const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function _(e){let t="";for(const n of e.childNodes)t+=E(n);return t}function k(e,t){for(const o of[...e.childNodes])o.remove();let n=t.find(e=>function(e){return"HTML"===e.tagName}(e)),r=t.find(e=>function(e){return"BODY"===e.tagName}(e)),a=e;n||(n=document.createElement("html"),e.appendChild(n),a=n,r||(r=document.createElement("body"),n.appendChild(r),a=r));for(const o of t)a===e&&C(o)?a.appendChild(document.createComment(`%%%{{{${o.data}}}}%%%`)):a.appendChild(o)}},51121:(e,t,n)=>{n.d(t,{$$:()=>p,Os:()=>f});var r=n(92882),a=n(26230),o=n(21944);const i=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"],s=new r.H(i),c=new a.X(s);const l=new Set(["onclick","onload","onchange","onsubmit","onmouseover","onkeydown","onerror"]),u=new Set(["script","style","xmp"]);const d=e=>{let t=e.indexOf("&");for(;-1!==t;){if(-1!==e.indexOf(";",t))return!0;t=e.indexOf("&",t+1)}return!1};function h(e,t,n){let r=e.tagName.toLowerCase();"html"===r&&(r="div");const a=`<${r} ${t}="${n}"/>`,o=function(e){let t;switch(null===e||void 0===e?void 0:e.toLowerCase()){case"tr":t=document.createElement("table");break;case"td":t=document.createElement("tr");break;case"head":case"body":t=document.createElement("html");break;case"documenttype":case"html":{const e=document.implementation.createHTMLDocument();for(const t of[...e.childNodes])t.remove();return e}default:t=document.createElement("div")}return t}(r);if(o instanceof Document)return;o.innerHTML=a;const i=o.querySelector(r);if(!i)throw new Error("targetElement is not defined");const s=i.getAttributeNode(t);s&&e.setAttributeNode(s.cloneNode())}function f(e,t,n){try{r=t,(a=e.tagName)&&u.has(a.toLowerCase())||l.has(r.toLowerCase())||d(n)?h(e,t,n):e.setAttribute(t,n)}catch{h(e,t,n)}var r,a}function m(e,t=!0){const n=e.content;switch(e.type){case o.Z.ROOT:{const n=document.implementation.createHTMLDocument();for(const e of[...n.childNodes])n.removeChild(e);if(t)for(const t of e.children)n.appendChild(m(t));return n}case o.Z.DOCTYPE:return(new DOMParser).parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case o.Z.COMMENT:return document.createComment(n||"");case o.Z.ELEMENT:if(e.tag){const n=document.createElement(e.tag);if(Object.defineProperty(n,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const t of e.attributeNames){const a=e.attributes[t];try{f(n,t,"string"===typeof a?a:"")}catch(r){}}if(t)for(const t of e.children)n.appendChild(m(t));return n}return document.createTextNode("<");case o.Z.HTML:return function(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}return document.createTextNode("")}(n||"");default:throw new Error("unsupported node")}}function p(e){var t;return(t=e,c.parse(t)).roots.map(e=>m(e))}},69986:(e,t,n)=>{n.d(t,{Km:()=>N,Sc:()=>R,Nh:()=>E});var r=n(1331),a=n(51121),o=n(29338),i=n(1528);const s="amp-custom";function c(e,t,n){for(const a of t)if(r.AH.isStyleRule(a)){const t=a.selectorText.split(/\+>~/).flatMap(e=>e.trim().split(" "));if(1===t.length&&t[0].trim().startsWith(".em-"))for(const o of a.style){if("important"===a.style.getPropertyPriority(o))for(const t of e.querySelectorAll(a.selectorText))if((0,r.uE)(t)){const e=t.style;for(const r of[...e])if(r.startsWith(o)){const a=n(r,e.getPropertyValue(r)),o=t.getAttribute("class");t.setAttribute("class",o?`${a} ${o}`:a),e.removeProperty(r)}}}}else r.AH.isMediaRule(a)&&c(e,a.cssRules,n)}function l(e,t){const n=t.sheet;if(n){const a=new Set;c(e,n.cssRules,(e,o)=>{const i=function(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}(e,o),s=[...n.cssRules],c=`.${i} { ${e}: ${o} }`;return s.find(e=>r.AH.isStyleRule(e)&&e.selectorText===`.${i}`)||a.has(c)||(a.add(c),t.innerHTML=`\n.${i} { ${e}: ${o} };\n${t.innerHTML}`),i}),a.size&&(t.innerHTML=`\n${[...a].join("\n")};\n${t.innerHTML}`)}else;const a=t.innerHTML,o=a.replace(/!important/g,"");a!==o&&(t.innerHTML=o)}const u='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',d="<!doctype html>";async function h(e,t={}){const n=document.createElement("amp-img"),o=await(0,r.rq)(e)||void 0,s=[];try{let c=e;for(;c&&(0,r.uE)(c);){const e=getComputedStyle(c);"none"===(null===e||void 0===e?void 0:e.display)&&(c.style.display="initial",s.push([c,c.style.display])),c=c.parentElement}const l=null!==o&&void 0!==o&&o.height?`${parseInt(o.height)}`:"",u=null!==o&&void 0!==o&&o.width?`${parseInt(o.width)}`:"",d=(0,i.xm)(e);let h=!1;if(d){const t=d.getAttribute("width");try{let n=u?`${u}px`:"";t||(d.setAttribute("width","720px"),n=getComputedStyle(e).width||""),d.setAttribute("width",!t||parseInt(t)>320?"320px":"720px"),n!==(getComputedStyle(e).width||"")&&(h=!0)}finally{t&&d.setAttribute("width",t||"")}}const f=e.src||e.srcset.split(",")[0];"100%"===e.style.width&&e.style.removeProperty("width"),"100%"===e.style.maxWidth&&e.style.removeProperty("max-width"),t={...(0,i.gu)(e),alt:e.alt,width:u,height:l,src:f,layout:h?"responsive":"fixed",...t};for(const e of Object.keys(t))(0,a.Os)(n,e,t[e])}finally{for(const[e,t]of s)e.style.display=t}return n}function f(e){const t=document.createElement("img"),{layout:n,height:r,...o}=(0,i.gu)(e),s="responsive"===n;for(const i of Object.keys(o))(0,a.Os)(t,i,o[i]);return s&&(t.style.maxWidth=o.width||"0px",t.style.width="100%"),t}var m=n(95583),p=n(65174),g=n(20414);function b(e,t){return`${g.gP}/${e.toLowerCase()}-${t}.js`}var w=n(29747);const y=new Map;const v=new Map;const C="$GLOBAL_ATTRS",S=new Map;async function A(){if(!S.size){var e;const t=null===(e=(await(0,w.F)()).attrLists.find(e=>e.name===C))||void 0===e?void 0:e.attrs;if(t)for(const e of t)S.set(e.name,e)}return S}function E(e){var t;return(0,r.vq)(e)&&(e.tagName.startsWith("AMP")||"FORM"===e.tagName||"TEMPLATE"===e.tagName&&"amp-mustache"===(null===(t=e.getAttribute("type"))||void 0===t?void 0:t.toLowerCase()))}function _(e,t,n){var a,o,i;if(t)if((0,r.vq)(e))switch(e.tagName.toLowerCase()){case"body":case n("script"):case"style":case"meta":case"title":return;case"head":case"html":c();break;default:s()||c()}else(0,r.wz)(e)?c():(0,r.ir)(e)&&(null!==(a=e.textContent)&&void 0!==a&&a.trim()||null!==(o=e.nextSibling)&&void 0!==o&&null!==(i=o.textContent)&&void 0!==i&&i.trim()&&(0,r.ir)(e.nextSibling))&&s();function s(){const n=t.compareDocumentPosition(e);if(!(8&n)){if(2&n)return t.insertBefore(e,t.firstChild),!0;if(4&n)return t.appendChild(e),!0}return!1}function c(){const r=[...e.childNodes];for(let e=r.length-1;e>=0;e--)_(r[e],t,n)}}async function k(e,t){const n=new Set,c=t.commit,u=e=>t.replaceSelectors(e.toLowerCase());if(t.replaceImages&&await async function(e,t){const n=[...e.querySelectorAll("img")],r=[];for(const o of n)r.push(h(o).then(e=>[o,e],()=>[o,void 0]));const a=[...e.querySelectorAll("picture")];for(const o of a){const e=o.querySelector("img");e?r.push(h(e).then(e=>[o,e],()=>[o,void 0])):r.push([o,void 0])}if(r.length){const e=await Promise.all(r);for(const[t,n]of e)n?t.replaceWith(n):t.remove();null===t||void 0===t||t()}}(e,c),t.injectExtensions){const k=t.replaceSelectors(g.Vq);if(!e.querySelector(k)){const L=t.createElementFn("script");L.setAttribute("src",g.zq),L.setAttribute("async","");(0,i.xy)(e).appendChild(L),null===c||void 0===c||c()}}t.injectRequiredTags&&((0,p.y)(e,t.createElementFn,u),function(e){const t=e.doctype;if(t){if((0,r.TM)(t)===d)return;const n=(new DOMParser).parseFromString(d,"text/html").doctype;e.replaceChild(n,t)}else{const t=(new DOMParser).parseFromString(d,"text/html").doctype;e.insertBefore(t,e.firstChild)}}(e),(0,o.R)(e),(0,m.C)(e),null===c||void 0===c||c()),t.replaceStylesAndLinks&&(!function(e){const t=(0,i.xy)(e),n=e.querySelectorAll('link[rel="stylesheet"]'),r=[...e.querySelectorAll("style")].filter(e=>!e.hasAttribute("amp4email-boilerplate"));if(1===r.length){const n=r[0];if(n.parentElement===t&&""===n.getAttribute(s))return void l(e,n)}const a=[];for(const o of r)a.push(o.innerHTML),o.remove();if(a.length){const n=e.createElement("style");n.innerHTML=`\n${a.join("")}\n`,n.setAttribute(s,""),t.append(n),l(e,n)}for(const o of n)o.remove()}(e),null===c||void 0===c||c());const f=await(0,w.F)(),C=await async function(){if(!y.size){const e=await(0,w.F)(),t=e.tags;for(let n=0;n<t.length;n++){const r=t[n],{selector:a,attrs:o,attrLists:i}=r,s=(null===i||void 0===i?void 0:i.flatMap(t=>e.attrLists.filter(({name:e})=>e===t).flatMap(e=>e.attrs)))||[];y.set(a,{...r,priority:n,attrs:new Map([...o,...s].map(e=>[e.name,e]))})}}return y}(),S=new Set(t.removeUnsupportedTags?e.querySelectorAll("*"):[]),E=new Map;for(let[R,N]of C)if(!N.deprecation){R=u(R);let T=[...e.querySelectorAll(R)].filter(e=>!E.has(e));N.unique&&T.length&&(T=[T[0]]),t.injectRequiredTags&&N.required&&!T.length&&(T=[...T,t.createElementFn(N.name)]);for(const x of T){if(t.injectRequiredAttributes&&x.getAttribute("on")&&!x.getAttribute("tabindex")&&x.setAttribute("tabindex","0"),t.removeUnsupportedStyles){let D=!1;for(const P of[...x.classList])P.startsWith("i-amphtml")&&(D=!0,x.classList.remove(P));D&&!x.classList.length&&x.removeAttribute("class")}const O=E.get(x);O&&O.priority>N.priority||E.set(x,N)}}null===c||void 0===c||c();for(const[I,M]of E){if(t.injectExtensions&&M.requiresExtension)for(const F of M.requiresExtension)n.add(F);const j=M.requiredParent?"$ROOT"===M.requiredParent?e:e.querySelector(M.requiredParent):null;!j||I.parentNode&&!t.moveInvalidTagPosition?I.parentNode||e.body.appendChild(I):j!==I.parentNode&&("HEAD"===M.name||(0,r.vq)(j)&&"HEAD"===j.tagName?j.insertBefore(I,j.firstChild):j.appendChild(I)),t.removeUnsupportedTags&&S.delete(I),null===c||void 0===c||c();const B=await A();if(t.removeUnsupportedAttributes||t.injectRequiredAttributes){const U=M.attrs,$=t.injectRequiredAttributes?new Set([...U].map(([e,t])=>t).filter(e=>e.required&&e.value)):void 0,q=I.getAttributeNames();for(const z of q){const Y=U.get(z)||B.get(z);if(Y){if("id"===z||"class"===z||"style"===z){null===$||void 0===$||$.delete(Y);continue}if(t.removeUnsupportedAttributes){const K=I.getAttribute(z);if(Y.value&&Y.value.indexOf(K)<0){I.removeAttribute(z);continue}if(Y.valueRegex){if(!new RegExp(Y.valueRegex).test(K)){I.removeAttribute(z);continue}}if(Y.disallowedValueRegex){if(new RegExp(Y.disallowedValueRegex).test(K)){I.removeAttribute(z);continue}}const H=Y.valueUrl;if(H)if(""===K){if(!H.allowEmpty){I.removeAttribute(z);continue}}else if(K.indexOf("\x3c!--")>0&&K.indexOf("--\x3e")>0);else if(!H.allowRelative){if(K.startsWith("#")||K.startsWith("/")){I.removeAttribute(z);continue}{const Z=H.protocol.length?H.protocol:["https"],W=K.substring(0,K.indexOf(":"));if(W){if(Z.indexOf(W)<0){const V=Z[0]+K.substring(K.indexOf(":"));if(!URL.canParse(V)){I.removeAttribute(z);continue}(0,a.Os)(I,z,V)}else if(!URL.canParse(K)){I.removeAttribute(z);continue}}else{const G=Z[0]+K;if(!URL.canParse(G)){I.removeAttribute(z);continue}(0,a.Os)(I,z,G)}}}}null===$||void 0===$||$.delete(Y)}else{if("id"===z||"class"===z||"style"===z)continue;t.removeUnsupportedAttributes&&I.removeAttribute(z)}}if($)for(const Q of $)(0,a.Os)(I,Q.name,Q.value[0])}null===c||void 0===c||c()}t.moveInvalidTagPosition&&(_(e,e.body,u),null===c||void 0===c||c());for(const X of S)X.remove();if(null===c||void 0===c||c(),t.removeUnsupportedStyles){const J=e.querySelectorAll("*"),ee=await async function(){if(!v.size){const e=await(0,w.F)();for(const t of e.declarations)v.set(t.name,t)}return v}();function te(e){const t=e.cssText.replaceAll(/\".*\"/g,"").replaceAll(/\'.*\'/g,"").replaceAll(/\/\*.*\*\/|(-moz-|-ms-|-o-|-webkit-)+\w+(?=:)/g,"").match(/[a-z-]+(?=:[^before|after|hover])/gi)||[];for(const n of t){if(!n)continue;const t=e.getPropertyValue(n);"important"===e.getPropertyPriority(n)&&e.setProperty(n,t);const r=ee.get(n);if(r){if(r.value)r.value.indexOf(t)<0&&e.removeProperty(n);else if(r.valueRegex){new RegExp(r.valueRegex).test(t)||e.removeProperty(n)}}else e.removeProperty(n)}null===c||void 0===c||c()}function ne(e){return"CSSStyleRule"===e.constructor.name}function re(e){return"CSSMediaRule"===e.constructor.name}function ae(e){const t=e.cssRules;for(let n=t.length-1;n>=0;n--){const r=t[n];ne(r)?r.selectorText.indexOf("[")>=0||r.selectorText.indexOf(":")>=0?e.deleteRule(n):(te(r.style),r.style.cssText||e.deleteRule(n)):re(r)?(ae(r),r.cssRules.length||e.deleteRule(n)):e.deleteRule(n)}}for(const ie of J)if((0,r.uE)(ie)){const se=ie.getAttribute("style");se&&(te(ie.style),ie.style.length?ie.style.cssText!==se&&ie.setAttribute("style",ie.style.cssText):ie.removeAttribute("style"))}const oe=e.querySelector("style[amp-custom]");if(oe){const ce=oe.sheet;ce&&(ae(ce),oe.innerHTML=[...ce.cssRules].map(e=>e.cssText).join("\n")),null===c||void 0===c||c()}}await async function(e,t,n){for(const{name:r,versions:a}of t){const t=n.replaceSelectors("amp-mustache"===r?`script[async][custom-template='${r}']`:`script[async][custom-element='${r}']`);if(!e.querySelector(t)){const t=(0,i.xy)(e),o=n.createElementFn("script"),s=b(r,a.findLast(e=>"latest"!==e)||"v0");o.setAttribute("async",""),o.setAttribute("amp-mustache"===r?"custom-template":"custom-element",r),o.setAttribute("src",s),t.appendChild(o),t.appendChild(e.createTextNode("\n"))}}}(e,f.extensions.filter(({name:e})=>n.has(e)),t)}function L(e,t){return Object.keys(t).reduce((e,n)=>e.replaceAll(n,t[n]),e)}function R(e,t={}){const{correct:n=!0,injectExtensions:r=!0,mappedTags:a={}}=t;return k(e,{replaceImages:n,replaceStylesAndLinks:n,injectRequiredTags:n,injectExtensions:r,formsAsAmpForms:r,injectRequiredAttributes:n,moveInvalidTagPosition:n,removeUnsupportedTags:n,removeUnsupportedAttributes:n,removeUnsupportedStyles:n,createElementFn:t=>e.createElement(a[t.toLowerCase()]||t),replaceSelectors:e=>L(e.toLowerCase(),a),commit:t.commit})}function N(e,t={}){const{correct:n=!0,removeExtensions:a=!0,mappedTags:c={}}=t,l=t.commit,h=t=>e.createElement(c[t.toLowerCase()]||t),m=e=>L(e,c);if(n){!function(e,t){const n=[...e.querySelectorAll("amp-img")];for(const r of n)r.replaceWith(f(r));n.length&&(null===t||void 0===t||t())}(e),function(e){const t=e.doctype;if(t&&(0,r.TM)(t).toLowerCase()===d){const n=(new DOMParser).parseFromString(u,"text/html").doctype;e.replaceChild(n,t)}}(e),function(e){const t=e.querySelector(`style[${s}]`);t&&t.removeAttribute(s)}(e),(0,o.C)(e);const t=(0,i.ep)(e);t.removeAttribute("\u26a14email"),t.removeAttribute("data-css-strict"),null===l||void 0===l||l()}a&&(!function(e,t){const n=e.querySelectorAll("*"),r=e.querySelectorAll(t.replaceSelectors("script[src]"));for(const o of r){var a;null!==(a=o.getAttribute("src"))&&void 0!==a&&a.startsWith(g.gP)&&o.remove()}for(const o of n)E(o)&&"FORM"!==o.tagName&&o.remove()}(e,{formsAsAmpForms:t.removeExtensions,createElementFn:h,replaceSelectors:m}),null===l||void 0===l||l())}},86080:(e,t,n)=>{n.d(t,{Ay:()=>i,oK:()=>c});const r=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),a=new Set(["https:","http:","file:"]),o=e=>{const t=e.indexOf(":");if(t<=0)return!1;const n=e.substring(0,t+1);return!!/^[a-zA-Z][a-zA-Z0-9+\-.]*:$/.test(n)&&(n.endsWith(":")&&!n.includes(".")&&!a.has(n))};function i(e,t){if(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t},!e)return"";if(s(e)&&(e=c(e)),"string"!==typeof t.defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e)||o(e))return e;const n=e.startsWith("//"),a=!n&&/^\.*\//.test(e);let i,l;try{i=a?new URL(e,"undefined"!==typeof document?document.baseURI:"http://localhost/").toString():e}catch{i=e}try{l=new URL(i)}catch{const t=document.createElement("a");t.href=e,l=new URL(t.href)}if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===l.protocol&&(l.protocol="http:"),t.forceHttps&&"http:"===l.protocol&&(l.protocol="https:"),t.stripAuthentication&&(l.username="",l.password=""),t.stripHash?l.hash="":t.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,n="";for(;;){const r=e.exec(l.pathname);if(!r)break;const a=r.index;n+=l.pathname.slice(t,a).replace(/\/{2,}/g,"/"),n+=r[0],t=a+r[0].length}n+=l.pathname.slice(t).replace(/\/{2,}/g,"/"),l.pathname=n;try{l.pathname=decodeURI(l.pathname)}catch{}}if(t.removeDirectoryIndex){let e=l.pathname.split("/");const n=e[e.length-1];Array.isArray(t.removeDirectoryIndex)&&r(n,t.removeDirectoryIndex)&&(e=e.slice(0,-1),l.pathname=e.join("/")+"/")}if(t.stripWWW&&/^www\.(?!www\.)[a-z\d\-]+(\.[a-z.\-]{2,63})+$/.test(l.hostname||"")&&(l.hostname=l.hostname.replace(/^www\./,"")),Array.isArray(t.removeQueryParameters))for(const o of[...l.searchParams.keys()])r(o,t.removeQueryParameters)&&l.searchParams.delete(o);if(t.sortQueryParameters){l.searchParams.sort();try{l.search=decodeURIComponent(l.search)}catch{}}t.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,"")),t.removeExplicitPort&&l.port&&(l.port="");let u=l.toString();return t.removeSingleSlash||"/"!==l.pathname||e.endsWith("/")||""!==l.hash||(u=u.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===l.pathname)&&""===l.hash&&t.removeSingleSlash&&(u=u.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(u=u.replace(/^https?:\/\//,"//")),u}function s(e){if(!e)return!1;const t=e[0];return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||function(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}(t)}function c(e){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")||!s(e)||/^(mailto:|tel:|fax:|sms:|geo:|blob:|data:|javascript:)/i.test(e))return e;if(e.startsWith("/"))return window.location.origin+e;const t=window.location.href,n=t.lastIndexOf("/");return(-1!==n?t.slice(0,n+1):t+"/")+e}},57549:(e,t,n)=>{n.d(t,{Fc:()=>K.A,qw:()=>s.A,eu:()=>T,Qp:()=>U.A,$n:()=>c.A,Zp:()=>x.A,FN:()=>ne.A,vx:()=>d.A,Xl:()=>F.X,Sc:()=>h.A,fv:()=>X.A,tL:()=>me.t,it:()=>me.A,Mw:()=>O.A,LW:()=>pe.A,lr:()=>f.A,cG:()=>J.A,FQ:()=>fe.A,ms:()=>$.A,HQ:()=>l.A,Sv:()=>D.Ay,so:()=>ee.A,lV:()=>u.A,BK:()=>ve.A,Qx:()=>Ce.A,Qm:()=>Se.A,Ok:()=>we.Ok,sQ:()=>we.sQ,nD:()=>we.nD,eZ:()=>we.eZ,vp:()=>we.vp,mw:()=>we.mw,v6:()=>we.v6,L1:()=>we.L1,y9:()=>we.y9,n6:()=>we.n6,Pr:()=>we.Pr,H6:()=>we.H6,VX:()=>ye.A,_V:()=>P.A,pd:()=>m.A,YI:()=>p.A,$k:()=>de.A,CN:()=>I.C,Layout:()=>te.A,xl:()=>he.A,N_:()=>re.A,B8:()=>I.A,W1:()=>q.A,aF:()=>H.A,dK:()=>B.dK,T8:()=>ge.A,fz:()=>ae.A,_2:()=>b.A,iS:()=>Z.A,sx:()=>C.A,XD:()=>be.A,Q7:()=>M.A,fI:()=>Q.A,DO:()=>g.A,$q:()=>z.A,Select:()=>y.A,EA:()=>j.A,$x:()=>G.A,tK:()=>W.A,N7:()=>a.StyleProvider,dO:()=>v.A,bs:()=>B.bs,zj:()=>B.zj,XI:()=>B.Ay,tU:()=>Y.A,vw:()=>F.A,EY:()=>oe.A,fs:()=>w.A,NP:()=>r.Ay,hE:()=>ie.A,m_:()=>V.A,Typography:()=>se.A,Upload:()=>S.A,ti:()=>i.default,Aj:()=>o.A,tS:()=>r.tS,tN:()=>r.tN,rd:()=>r.rd});var r=n(43167),a=n(4950),o=n(4964),i=n(81045),s=n(13419),c=n(6426),l=n(47207),u=(n(97297),n(16633)),d=(n(6619),n(36486)),h=n(27699),f=(n(89197),n(72629)),m=n(17142),p=n(61503),g=n(84631),b=n(51913),w=(n(13724),n(67393)),y=n(3327),v=n(48077),C=n(41408),S=n(40852),A=n(1936),E=n(30290),_=n(6056),k=n.n(_);n(46177),n(78892);const L=({children:e,padding:t,className:n,...r})=>A.createElement("div",Object.assign({className:k()("avatar-actions",{"avatar-actions--padding":t},n)},r),e);L.displayName="AvatarActions";const R=A.forwardRef(({selected:e,className:t,...n},r)=>A.createElement(E.A,Object.assign({ref:r,className:k()({"avatar--selected":e},t)},n)));R.displayName="Avatar";const N=R;N.Group=E.A.Group;const T=N;n(89294);var x=n(26395),O=(n(32751),n(83675)),D=n(79431),P=n(84412),I=n(17280),M=n(54124),j=n(32632),B=n(36725),F=n(76626),U=n(3690),$=n(35259),q=(n(21414),n(9612)),z=n(24503),Y=n(70626),K=n(46007),H=n(33836),Z=n(8461),W=(n(54961),n(64668)),V=n(73974),G=n(85537),Q=n(77595),X=n(88145),J=n(92611),ee=n(93944),te=n(129),ne=n(76387),re=n(49514),ae=n(72838),oe=n(46338),ie=n(22641),se=n(31492),ce=n(93974);const le=["SliderGroup","SliderTemplates","SliderBlocks","SliderAdaptive","SliderMagic"],ue=(0,A.forwardRef)(({data:e=[],sliderStyle:t,customDots:n=!1,...r},a)=>{const o=(0,A.useRef)(null);return A.createElement(A.Fragment,null,A.createElement(ce.A,{items:le,onChange:e=>{var t;return null===(t=o.current)||void 0===t?void 0:t.goTo(e)}}),A.createElement(ne.A,Object.assign({data:e,carouselRef:o,dots:!1,header:!0},r)))});ue.displayName="CustomCarousel";var de=n(21419),he=n(42245),fe=n(27496),me=n(13763),pe=n(37266),ge=n(43477),be=n(1756),we=n(66017),ye=n(33367),ve=n(44423),Ce=n(19844),Se=n(78395);n(47588)},2783:(e,t,n)=>{n.r(t),n.d(t,{FileManagerApiError:()=>r});class r extends Error{constructor(e,t,n,a){super(e),this.code=void 0,this.httpStatus=void 0,this.details=void 0,this.name="FileManagerApiError",this.code=t,this.httpStatus=n,this.details=a,Error.captureStackTrace&&Error.captureStackTrace(this,r)}}},36234:(e,t,n)=>{n.d(t,{D3:()=>d,RS:()=>u});var r=n(69962),a=n(1936),o=n(40713),i=n(99182),s=n(83111),c=n(38615);const l=(0,o.Q)();function u(e,t,n){e instanceof c.m||(e=(0,s.My)(e));e.getOrCreateInstance(l,()=>new i.v).fire({id:t,payload:n})}const d=(e,t)=>{const n=function(e){return(0,s.My)(e).getOrCreateInstance(l,()=>new i.v).addEventListener}((0,r.Pj)());(0,a.useEffect)(()=>{const r=n(({id:n,payload:r})=>{n===e&&t(r)});return()=>r.dispose()},[n,e,t])}},65185:(e,t,n)=>{n.d(t,{Zc:()=>u,_q:()=>d,cZ:()=>c,dB:()=>l,ml:()=>h});var r=n(69962),a=n(40713),o=n(83111),i=n(59059),s=n(1936);function c(e){return(0,a.Q)(e)}function l(e,t){return(0,o.My)(e).getOrCreateInstance(t,()=>new i.lt)}function u(e,t){return(0,o.My)(e).getOrCreateInstance(t,()=>new i.lt).event}function d(e){return h(e).event}function h(e){const t=(0,r.Pj)();return(0,s.useMemo)(()=>l(t,e),[t,e])}},11822:(e,t,n)=>{n.d(t,{qy:()=>O,An:()=>N,T5:()=>z,pH:()=>A,Ay:()=>_,$l:()=>E,SR:()=>U,hs:()=>F,Ce:()=>B,gZ:()=>$,CM:()=>R,PJ:()=>P,bc:()=>x});var r=n(15938),a=n.n(r),o=n(30338),i=n(15301),s=n(1331),c=n(51121),l=n(28589);const u=Symbol("Error");function d(e){return Promise.all(e.map(e=>e instanceof Promise?e.catch(e=>u):e)).then(e=>e.filter(e=>e!==u))}var h=n(4889),f=n(61578),m=n(45386),p=n(22148),g=n(11628);class b extends f.j{constructor(e){super(),this._commitPromise=void 0,this._mutationCollector=void 0,this._onLostSummaries=e=>{try{this._mutationCollector.stop(),(0,p.f)(e)}finally{this._mutationCollector.start()}},this._mutationCollector=this.addDisposable(new m.R({rootNode:e,oldPreviousSibling:!0})),this._mutationCollector.onLost(this._onLostSummaries)}commit(){if(this._commitPromise)return this._commitPromise;{const e=()=>new Promise(e=>{const t=this._mutationCollector.onMutate(n=>{this._commitPromise=void 0,e(),t.dispose()});(0,g.A)(()=>{this._commitPromise=void 0,e(),t.dispose()})});return this._commitPromise=e().catch(e=>{})}}}var w=n(59059);function y(e,t){const n=new w.lt,r=new w.lt;try{const a=(0,c.$$)(e),o=document.implementation.createHTMLDocument();return(0,s.d1)(o,a),{document:o,handleRender:r.event,handleReadHtml:n.event,async run(){if(r.hasListeners()){const a=document.createElement("iframe");a.style.position="absolute",a.style.left="-10000px",document.body.appendChild(a);const i=a.contentWindow.document,c=new b(a.contentDocument);try{if(t){const[e,n]=t;void 0!==e&&a.setAttribute("width",String(e)),void 0!==n&&a.setAttribute("height",String(n))}(0,s.d1)(i,[...o.childNodes]),c.commit()}catch(e){throw e}finally{try{try{await r.fire({managedNodeController:c,contentDocument:i})}catch(e){}const t={contentDocument:i,html:(0,s.b6)(i)};try{await n.fire(t)}finally{return t.html}}finally{a.parentNode===document.body&&document.body.removeChild(a)}}}else{const e={contentDocument:o,html:(0,s.b6)(o)};try{await n.fire(e)}finally{return e.html}}}}}catch(a){throw a}}const v=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,C="data:message/rfc822 eml,";function S(e){return e.replaceAll(/[\\\/:*?"<>|]/g,"_")}async function A(e,t,n,r,a){const o={Subject:e,"X-Unsent":1,"Content-Type":"function"===typeof a?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(o).reduce((e,t)=>`${e}${t}:${o[t]}\n`,C)}\n${"function"===typeof a?await I(t,n,r,a):(await d(Object.keys(a).map(async e=>`\n--boundary-string\nContent-Type: ${e}\n\n${await I(t,n,r,a[e])}\n\n\n`))).join("")+"----boundary_string--"}`}function E(e,t=!0){const n=e.replace("\\","/").split("/"),r=n[n.length-1];return t?S(r):r}function _(e){const t=e.replace("\\","/").split("/"),n=t[t.length-1],r=n.lastIndexOf("."),a=n.slice(r+1);return-1!==r&&function(e){return!(e.length>8||e.length<1)&&!/[^\x00-\x7F]/.test(e)&&!/[\\\/:*?"<>|&=%]/.test(e)&&!!/[a-zA-Z]/.test(e)&&!/^\d+$/.test(e)}(a)?[S(n.slice(0,r)),a]:[S(n),""]}function k(e){return U(e).then(e=>$(e))}function L(e){return e.replace("<script","<___script").replace("<\/script>","</___script>")}const R=new i.uI(e=>{e.escape("<script","<\/script>",e=>L(e)).unescape("<___script","</___script>",e=>e.replace("<___script","<script").replace("</___script>","<\/script>")),e.escape("<script","/>",e=>L(e)).unescape("<___script","/>",e=>e.replace("<___script","<script")),(0,i.Hk)(e)});async function N(e,t,n){const r=y(e=R.getEscapedText(e),n);try{const n=r.document,o=n.querySelectorAll("tbody");for(const e of o)e.replaceWith(...e.childNodes);n.querySelectorAll("em-replace").forEach(e=>{if(e.hasAttribute("text")&&(e.insertAdjacentHTML("beforebegin",e.getAttribute("text")),e.parentNode.removeChild(e)),e.hasAttribute("src")){const t=e.querySelector("img");t.setAttribute("src",e.getAttribute("src")),e.replaceWith(t)}});try{await t(r,e)}catch(a){}e=await r.run()}catch(a){throw a}return R.getUnescapedText(e)}function T(e,t,n){try{if("function"===typeof n){const r=[];return String.prototype.replace.call(e,t,function(){return r.push(n.apply(void 0,arguments)),""}),d(r).then(function(n){return String.prototype.replace.call(e,t,function(){return n.shift()})})}return Promise.resolve(String.prototype.replace.call(e,t,n))}catch(r){return Promise.reject(r)}}async function x(e,t,n=new Map,r){await async function(e,t,n=new Map,r){const a=e=>{let r=n.get(e);return r||(r=t(e),n.set(e,r)),r instanceof Promise?r:Promise.resolve(r)};function o(e){return T(e,v,async(e,t="",n)=>`url(${t}${await a(n)}${t})`)}async function i(e){const t=e.getAttribute("style");if(t){const n=await o(t);t!==n&&(e.setAttribute("style",n),r&&r())}}const l=document.createNodeIterator(e,NodeFilter.SHOW_ALL),u=[];for(;;){const e=l.nextNode();if(null===e)break;if((0,s.vq)(e)){u.push(i(e));const t=e.getAttribute("background");if(t&&u.push(a(t).then(n=>{e.setAttribute("background",n||t),r&&r()})),(0,s.A6)(e)||(0,s.M6)(e)){const t=e.getAttribute("src"),n=t&&R.hasDetectedMappings(t,!0,!0)?t:("src"in e?e.src:"")||t;n&&u.push(a(n).then(t=>{t||(t=n),e.setAttribute("src",t),r&&r()}))}if((0,s.ST)(e)){const t=e.innerHTML;t&&u.push(o(t).then(n=>{n!==t&&(e.innerHTML=n,r&&r())}))}}else if((0,s.Cn)(e)){const t=(0,s.ih)(e),n=null===t||void 0===t?void 0:t.content;n&&u.push(T(n,/<v:fill.*>/gi,async e=>{const t=await T(e,/src="([^"]*)"/gi,async(e,t)=>`src="${await a(t)||t}"`);return T(t,/src='([^']*)'/gi,async(e,t)=>`src='${await a(t)||t}'`)}).then(a=>{n!==a&&(e.replaceWith((0,c.$$)(`${t.open}${a}${t.close}`)[0]),r&&r())}))}}return d(u)}(e,t,n,r)}const O=800;function D(e,t,n){let r=e.href;if(r=(0,h.o)(r),r&&e.protocol.startsWith("http")){const a=function(e){const t=new Map;let n=0;for(;n>=0;)if(n=e.indexOf("\x3c!--",n),n>=0){const r=e.indexOf("--\x3e",n);t.set(e.substring(n,r+3),(0,l.l)()),n=r}return t}(r);a.forEach((e,t)=>{r=r.replaceAll(t,e)});const o=r.indexOf("#");let i=o>=0?r.substring(0,o):r;const s=o>=0?r.substring(o+1):"",c=r.indexOf("?"),u=c>=0?i.substring(c+1):"";if(i=c>=0?i.substring(0,c):i,e.host!==document.location.host){const o=new Map(u.split("&").filter(e=>e.indexOf("=")>=0).map(e=>e.split("=")));let c=u;if(t){const e=Object.keys(t);for(const n of e)t[n]&&!o.has(n)&&(c=c+(c?"&":"")+`${n}=${t[n]}`)}c!==u&&(r=i+(c?`?${c}`:"")+(s?`#${s}`:""),a.forEach((e,t)=>{r=r.replaceAll(e,t)}),e.setAttribute("href",r),n&&n())}}}async function P(e,t,n,r){let[a,o]=t||[O];return"number"===typeof a&&(a+="px"),"number"===typeof o&&(o+="px"),e=await N(e,async e=>{const t=e.document;await x(t,e=>R.getEscapedText(e)!==e?e:(0,h.o)(e));const a=t.querySelectorAll("a");for(const r of a)D(r,n);if(r)return r(e)},[a,o])}async function I(e,t,n,r){let[a,o]=t||[O];return"number"===typeof a&&(a+="px"),"number"===typeof o&&(o+="px"),e=(e=await N(e,async e=>{const t=e.document;if(await x(t,e=>R.getEscapedText(e)!==e?e:(0,h.o)(e)),e.handleRender(async({contentDocument:e,managedNodeController:t})=>{const r=e.querySelectorAll("*");for(const a of r)if((0,s.A6)(a)){const e=await(0,s.rq)(a);if(e){const t=parseInt(e.height),n=parseInt(e.width);isNaN(t)||a.setAttribute("height",String(t)),isNaN(n)||a.getAttribute("width")||a.setAttribute("width",String(n))}t.commit()}else if((0,s.Lv)(a)){const e=parseInt(getComputedStyle(a).width);isNaN(e)||"BODY"===a.parentElement.tagName||a.setAttribute("width",String(e)),t.commit()}else"TD"===a.tagName||"A"===a.tagName&&D(a,n,()=>t.commit())}),r)return r(e)},[a,o])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const M="images",j=40;async function B(e,t,n,r=k,a){const i=Object.create(null);let[s,c]=t||[O];"number"===typeof s&&(s+="px"),"number"===typeof c&&(c+="px");const l=new Set,u=await N(e,async e=>{const t=e.document;await x(t,async e=>{R.getEscapedText(e)===e&&(e=(0,h.o)(e));const t=await r(e);let[n,a]=_(e);if(n.length>j&&(n=function(){const e=new Date;return`${e.toISOString().slice(2,10).replace(/-/g,"").concat("_",e.toTimeString().slice(0,5).replace(/:/g,""))}_${Array.from({length:8},()=>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))).join("")}`}()),!a||!o.A.getType(a))try{a=o.A.getExtension(t.type)}catch(d){}let s=`${n}.${a}`,c=1;for(;l.has(s);)s=`${n}(${++c}).${a}`;l.add(s);const u=`${M}/${s}`;return i[u]=t,u});const s=t.querySelectorAll("a");for(const r of s)D(r,n);if(a)return a(e)},[s,c]);return i["index.html"]=new Blob([u],{type:"text/html;charset=utf-8"}),i}function F(e){const t=new(a());for(const n of Object.keys(e)){let r=t;const a=n.split("/"),o=a.length-1;for(let e=0;e<o;e++)r=t.folder(a[e]);r.file(a[o],e[n])}return t.generateAsync({type:"blob",compression:"DEFLATE"})}function U(e){const t=new Image;return t.crossOrigin="anonymous",new Promise((n,r)=>{t.onload=()=>n(t),t.onerror=r,t.src=e})}function $(e,t="image/png",n){const r=document.createElement("canvas");r.width=e.width,r.height=e.height;return r.getContext("2d").drawImage(e,0,0),new Promise((e,a)=>r.toBlob(t=>t?e(t):a("blob is null"),t,Number(n)||0))}function q(e){var t;const n=null===(t=e.ownerDocument)||void 0===t?void 0:t.body;if(n&&function(e,t){do{if(e===t)return!0;e=e.parentNode}while(e);return!1}(e,n)){if((0,s.vq)(e)){if("IMG"===e.tagName)return"";if("SPAN"===e.tagName&&e.classList.contains("preheader"))return""}if("#text"===e.nodeName)return e.textContent}return e.childNodes?[...e.childNodes].map(q).join(""):""}function z(e){const t=y(e),{document:n}=t;try{return q(n).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}catch(r){return""}}},7314:(e,t,n)=>{n.d(t,{kx:()=>d,$Z:()=>b,Xb:()=>h,VA:()=>p,fn:()=>w,aD:()=>g,TW:()=>f});var r=n(94994),a=n(1936),o=n(29461),i=n(30831),s=n(48349),c=n(80681);function l(e,t,n,r){return e.createModel(t,n,r)}function u(e,t,n){const r=i.QE.get(c.L),a=r.getLanguageIdByMimeType(t)||t;return function(e,t,n,r,a){if(n=n||"",!r){const r=n.indexOf("\n");let o=n;return-1!==r&&(o=n.substring(0,r)),l(e,n,t.createByFilepathOrFirstLine(a||null,o),a)}return l(e,n,t.createById(r),a)}(i.QE.get(s.S),r,e,a,n)}const d=(0,a.createContext)(null);function h(){(0,r.OI)()._updateThemeOrColorMap()}function f(e){const t=(0,r.yc)(),[n,o]=(0,a.useState)({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)});return(0,a.useEffect)(()=>{const n=e.onDidChangeContent(()=>{setTimeout(()=>o({canUndo:t.canUndo(e.uri),canRedo:t.canRedo(e.uri)}))});return()=>{n.dispose()}},[e,t]),n}function m(e){var t;const n=(null===e||void 0===e||null===(t=e.actual)||void 0===t?void 0:t._data)||new o.Ov;return n instanceof o.Ov?n:o.Ov.deserialize(n)}function p(e){const t=(0,r.yc)();return{undo:()=>t.undo(e.uri),redo:()=>t.redo(e.uri),clear:()=>t.removeElements(e.uri),getPast:()=>{var n,r;return(null===(n=t._editStacks.get(e.uri.toString()))||void 0===n||null===(r=n._past)||void 0===r?void 0:r.map(m))||[]},getFuture:()=>{var n,r;return(null===(n=t._editStacks.get(e.uri.toString()))||void 0===n||null===(r=n._future)||void 0===r?void 0:r.map(m))||[]},canUndo:()=>t.canUndo(e.uri),canRedo:()=>t.canRedo(e.uri),createSnapshot:()=>t.createSnapshot(e.uri),restoreSnapshot:e=>t.restoreSnapshot(e)}}function g(e){return(0,a.useMemo)(()=>p(e),[e])}function b(e=""){const t=u(e,"text");return t.setEOL(0),t}function w(){return(0,a.useContext)(d)}},4889:(e,t,n)=>{n.d(t,{o:()=>r.oK});var r=n(86080)},85986:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(1936),a=n(57549),o=n(96040),i=n(68876),s=n(69962),c=n(84075),l=n(47706),u=n(487),d=n(89591),h=n(45988),f=n(68069),m=n(52898),p=n(41244),g=n(93506),b=(n(69480),n(22817));const{name:w,type:y,tags:v,group:C}={name:"name",type:"type",tags:"tags",group:"group"},S={[w]:"",[y]:[],[v]:[],[C]:[]},A=({isBlocks:e=!1,templateEmailId:t=!1,showBlockTypeSelect:n=!0})=>{const{__:A}=(0,l.s9)(),{projectId:E}=(0,c.g)(),[_]=a.lV.useForm(),{data:k}=(0,h.h1)(),L=(0,s.wA)(),R=(0,s.d4)(f.b9),N=(0,s.d4)(m.CT),T=(0,s.d4)(b.GD),{token:x}=(0,a.rd)(),O=(0,i.rD)(),D=(0,s.Pj)(),P=e?R:N,{isSuccess:I,data:M}=u.Nq.endpoints.getProject.select(+E)(D.getState(),{skip:t}),{isSuccess:j,data:B}=(0,d.sl)(+t,{skip:!t}),F=(0,r.useCallback)(()=>{L(e?(0,f.om)({}):(0,m.om)({}))},[L,e]);(0,r.useEffect)(()=>{F()},[F]),(0,r.useEffect)(()=>{},[j,B,t]),(0,r.useEffect)(()=>{},[I,M,e,t]);const[U,$]=(0,r.useState)([]);let q;(0,r.useEffect)(()=>{if(k){const e=k.schema.properties.acf.properties.type.items.enum;let t=[];for(let n in e)t.push({label:A(g.jg[e[n]]),value:e[n]});$(t)}},[k,A]);const[z,Y]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const n=t?j&&(0,p._q)(B,g.zh).filter(e=>{var t;return null===P||void 0===P||null===(t=P.tags)||void 0===t?void 0:t.includes(e.id)}).map(e=>e.name)||[]:I&&(0,p._q)(M,e?g.YY:g.zh).filter(e=>{var t;return null===P||void 0===P||null===(t=P.tags)||void 0===t?void 0:t.includes(e.id)}).map(e=>e.name)||[];_.setFieldsValue({tags:n})},[I,P,e,_,M,j,B,t]),(0,r.useEffect)(()=>{_.setFieldsValue({group:T})},[_,T]),r.createElement("div",{className:"cards-search"},r.createElement(a.lV,{form:_,name:"cards_search_form",initialValues:{...S},onValuesChange:n=>{const r=Object.keys(n)[0],a=_.getFieldsValue(!0);switch(r){case v:const o=t?(0,p._q)(B,g.zh).filter(e=>n[r].includes(e.name)).map(e=>e.id)||null:(0,p._q)(M,e?g.YY:g.zh).filter(e=>n[r].includes(e.name)).map(e=>e.id)||null;L(e?(0,f.om)({...P,tags:o}):(0,m.om)({...P,tags:o}));break;case y:L(e?(0,f.om)({...P,type:a.type||null}):(0,m.om)({...P,type:a.type||null}));break;case w:q&&window.clearTimeout(q),q=window.setTimeout(function(){L(e?(0,f.om)({...P,name:a.name}):(0,m.om)({...P,name:a.name}))},100);break;case C:L(e?(0,f.om)({...P,group:a.group||null}):(0,m.om)({...P,group:a.group||null}))}},autoComplete:"off"},r.createElement(a.fI,{wrap:!1,gutter:0},r.createElement(a.lV.Item,{className:"cards-search__by-title",name:w},r.createElement(a.pd,{placeholder:A("Search by title"),allowClear:!0,variant:"outlined",size:"large",prefix:r.createElement(o.Ay,{icon:"SearchSmIcon",size:22,strokeWidth:null===O||void 0===O?void 0:O.iconStrokeWidth,className:"cards-search__search-icon",style:{cursor:"pointer"}})})),e&&n&&r.createElement(a.lV.Item,{className:"cards-search__type-select",name:y,rules:[{message:A("Please choose the block type")}]},r.createElement(a.Select,{placeholder:A("Filter by type"),options:U,suffixIcon:r.createElement(o.Ay,{icon:"BuildOutlined",style:{fontSize:"16px",color:x.colorText},onClick:()=>Y(!z),className:"input-icon"}),allowClear:!0,open:z,onDropdownVisibleChange:e=>{Y(e)}})))))}},62135:(e,t,n)=>{n.d(t,{rG:()=>i.rG,pw:()=>r.p,Xl:()=>a.X,QO:()=>u.Q,OY:()=>d.O,gM:()=>l,Si:()=>o.Si,hO:()=>o.hO});n(1936),n(47706),n(93953);n(62669),n(96040),n(6056),n(63078);n(85660);var r=n(10641),a=(n(88745),n(54729)),o=n(50003),i=n(46018),s=n(51826);n(3132);s.w.ai;const c={plan_expiring:{id:"plan_expiring",bannerTone:"warning",titleKey:"Your plan will expire soon",subtitleKey:"If you do not pay, you will be switched to the free plan automatically.",showPay:!0,showAutopay:!1,debugLabelKey:"Banner modal: plan expiring soon (Figma 48097013)"},ai_low:{id:"ai_low",bannerTone:"warning",bannerVariant:"aiUsageCenter",titleKey:"Your generations are running out soon",subtitleKey:"You are running out of AI tool usage.",showPay:!0,showAutopay:!0,debugLabelKey:"Banner modal: AI usage low (Figma 48097014)"},plan_activated:{id:"plan_activated",bannerTone:"accent",titleKey:"Your plan is activated",subtitleKey:"Payment was successful. Your plan features are now available.",showPay:!1,showAutopay:!0,debugLabelKey:"Banner modal: plan activated (Figma 48097015)"},package_activated:{id:"package_activated",bannerTone:"accent",bannerVariant:"packageBonus",titleKey:"Your package is activated",subtitleKey:"Payment was successful. New AI generations are now available.",showPay:!1,showAutopay:!0,debugLabelKey:"Banner modal: package activated (Figma 48097016)"}};function l(e){return c[e]}var u=n(31206),d=n(24808)},50003:(e,t,n)=>{n.d(t,{Si:()=>a,hO:()=>o});const r={email_10_30:{id:"email_10_30",titleKey:"You have used up the number of emails you can create on your current plan",subtitleKey:"You can increase the number of emails right now.",usageResource:"email_generate",previous:10,next:30,showSecondaryBuy:!1,debugLabelKey:"Limit modal: emails 10\u219230"},email_30_300:{id:"email_30_300",titleKey:"You have used up the number of emails you can create on your current plan",subtitleKey:"You can increase the number of emails right now.",usageResource:"email_generate",previous:30,next:300,showSecondaryBuy:!1,debugLabelKey:"Limit modal: emails 30\u2192300"},email_300_inf:{id:"email_300_inf",titleKey:"You have used up the number of emails you can create on your current plan",subtitleKey:"You can increase the number of emails right now.",usageResource:"email_generate",previous:300,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: emails 300\u2192\u221e"},ai_10_50:{id:"ai_10_50",titleKey:"You have used up your AI generations",subtitleKey:"You can add more generations right now; they are billed separately from the generations included in your plan.",usageResource:"ai",previous:10,next:50,showSecondaryBuy:!1,debugLabelKey:"Limit modal: AI 10\u219250"},ai_30_150:{id:"ai_30_150",titleKey:"You have used up your AI generations",subtitleKey:"You can add more generations right now; they are billed separately from the generations included in your plan.",usageResource:"ai",previous:30,next:150,showSecondaryBuy:!1,debugLabelKey:"Limit modal: AI 30\u2192150"},ai_150_inf:{id:"ai_150_inf",titleKey:"You have used up your AI generations",subtitleKey:"You can add more generations right now; they are billed separately from the generations included in your plan.",usageResource:"ai",previous:150,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: AI 150\u2192\u221e"},optimization_exceeded:{id:"optimization_exceeded",titleKey:"You have used up your optimisation limit",subtitleKey:"You can increase the limit by changing your plan or buying an extra package.",usageResource:"optimization",previous:0,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: optimization exhausted"},image_generate_exceeded:{id:"image_generate_exceeded",titleKey:"You have used up your image generation limit",subtitleKey:"You can increase the limit by changing your plan or buying an extra package.",usageResource:"image_generate",previous:0,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: image_generate exhausted"},preview_exceeded:{id:"preview_exceeded",titleKey:"You have used up your preview (test send) limit",subtitleKey:"You can increase the limit by changing your plan or buying an extra package.",usageResource:"preview",previous:0,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: preview exhausted"},link_check_exceeded:{id:"link_check_exceeded",titleKey:"You have used up your link check limit",subtitleKey:"You can increase the limit by changing your plan or buying an extra package.",usageResource:"link_check",previous:0,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: link_check exhausted"},image_check_exceeded:{id:"image_check_exceeded",titleKey:"You have used up your image check limit",subtitleKey:"You can increase the limit by changing your plan or buying an extra package.",usageResource:"image_check",previous:0,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: image_check exhausted"},spam_check_exceeded:{id:"spam_check_exceeded",titleKey:"You have used up your spam check limit",subtitleKey:"You can increase the limit by changing your plan or buying an extra package.",usageResource:"spam_check",previous:0,next:"infinity",showSecondaryBuy:!1,debugLabelKey:"Limit modal: spam_check exhausted"}};function a(e){return r[e]}function o(e){return"infinity"===e?"\u221e":e}},93953:(e,t,n)=>{n.d(t,{XL:()=>a,h2:()=>r,w6:()=>s});const r={MONTHLY:"Monthly",EARLY:"Early"},a={CLOUDPAYMENT:"cloudpayment",STRIPE:"stripe"},o={FREE:3891,PERSONAL:{MONTHLY:13719,YEARLY:13720},STANDARD:{MONTHLY:3892,YEARLY:5295},PROFESSIONAL:{MONTHLY:3893,YEARLY:5294},ENTERPRISE:{MONTHLY:3894,YEARLY:5296}},i={FREE:3891,PERSONAL:{MONTHLY:4965,YEARLY:4966},ADVANCED:{MONTHLY:3892,YEARLY:4953},PRO:{MONTHLY:3893,YEARLY:4952},ENTERPRISE:{MONTHLY:3894,YEARLY:4954}},s=(a.CLOUDPAYMENT,a.STRIPE,(e,t)=>{const n=t===r.MONTHLY;return e===a.CLOUDPAYMENT?[o.FREE,n?o.PERSONAL.MONTHLY:o.PERSONAL.YEARLY,n?o.STANDARD.MONTHLY:o.STANDARD.YEARLY,n?o.PROFESSIONAL.MONTHLY:o.PROFESSIONAL.YEARLY,n?o.ENTERPRISE.MONTHLY:o.ENTERPRISE.YEARLY]:e===a.STRIPE?[i.FREE,n?i.PERSONAL.MONTHLY:i.PERSONAL.YEARLY,n?i.ADVANCED.MONTHLY:i.ADVANCED.YEARLY,n?i.PRO.MONTHLY:i.PRO.YEARLY,n?i.ENTERPRISE.MONTHLY:i.ENTERPRISE.YEARLY]:[]})},63078:(e,t,n)=>{var r=n(51826);r.w.projects,r.w.emails,r.w.blocks,r.w.users,r.w.ai,r.w.email_generate,r.w.image_generate,r.w.preview,r.w.link_check,r.w.image_check,r.w.spam_check,r.w.preview,r.w.image_generate,r.w.email_generate},16400:(e,t,n)=>{n.d(t,{mr:()=>a});const r={ai:[{units:100,priceRub:990},{units:500,priceRub:3990},{units:1e3,priceRub:6990}],email_generate:[{units:50,priceRub:490},{units:200,priceRub:1490}],image_generate:[{units:50,priceRub:490},{units:200,priceRub:1490}],optimization:[{units:50,priceRub:490},{units:200,priceRub:1490}],preview:[{units:50,priceRub:290},{units:200,priceRub:990}],link_check:[{units:100,priceRub:290},{units:500,priceRub:990}],image_check:[{units:100,priceRub:290},{units:500,priceRub:990}],spam_check:[{units:50,priceRub:390},{units:200,priceRub:1190}],users:[],emails:[],blocks:[],projects:[]};function a(e){if(null==e)return[];switch(e){case"ai":return r.ai;case"email_generate":return r.email_generate;case"image_generate":return r.image_generate;case"optimization":return r.optimization;case"preview":return r.preview;case"link_check":return r.link_check;case"image_check":return r.image_check;case"spam_check":return r.spam_check;case"users":case"emails":case"blocks":case"projects":return[];default:return e}}},22884:(e,t,n)=>{n.d(t,{U:()=>h});var r=n(1936),a=n(61518),o=n(91480),i=n(51432),s=n(2527),c=n(93506),l=n(93953),u=n(39601),d=n(85660);const h=e=>{const{currentUser:t,payPeriod:n,promoData:h,onPaymentStart:f,onPaymentSuccess:m}=e,p="cloudpayment",[g,b]=(0,a.O)(),[w]=(0,i.on)(),y=(0,o.u)(),v=(0,s.p)(),C=b.isLoading||b.isSuccess;(0,r.useEffect)(()=>{if(p===l.XL.CLOUDPAYMENT){const e=document.createElement("script");e.src="https://widget.cloudpayments.ru/bundles/cloudpayments.js",e.async=!0,document.body.appendChild(e)}},[p]);const S=(0,r.useCallback)((e,r,a,o)=>{const i=v.get(c.A9.em_token),s=new window.cp.CloudPayments,u={},f=new Date;f.setMonth(f.getMonth()+(n===l.h2.EARLY?12:1)),f.setDate(f.getDate()-1);const p=(0,d.BS)(),g=n===l.h2.EARLY?` (${a}${p} x 12)`:"",b=h.promocode?` with promo code ${h.promocode}`:"",C=`Payment for ${n===l.h2.EARLY?"annual":"monthly"} subscription ${r}${g}${b}`,S=n===l.h2.EARLY?12*a:+a,A=(0,d.w_)(S,h.discount,o),E={Items:[{label:C,price:S,quantity:1,amount:A,vat:0}],calculationPlace:"https://emailmaker.ru",taxationSystem:1,email:t.email,amounts:{electronic:A}},_={Items:[{label:C,price:S,quantity:1,amount:S,vat:0}],calculationPlace:"https://emailmaker.ru",taxationSystem:1,email:t.email,amounts:{electronic:S}},k={interval:"Month",period:n===l.h2.EARLY?12:1,customerReceipt:_,PersonalDate:f},L={...E,Items:[{...E.Items[0],amount:S}],amounts:{electronic:S}};u.CloudPayments={CustomerReceipt:L,recurrent:k,subscription:e,token:i,promocode:h.promocode||""},s.pay("charge",{publicId:"pk_e8c7c303759283dc35cf4ad7b396c",description:C,amount:A,currency:(0,d.Wk)(),accountId:t.email,email:t.email,data:u,promocode:h.promocode||null},{onSuccess:function(){},onFail:function(){},onComplete:function(e){e.success&&setTimeout(()=>{w(void 0).then(e=>{y({event:"payment",action:"payment_success",data:e.data})}),null===m||void 0===m||m();try{window.dispatchEvent(new CustomEvent("em-billing-plan-payment-success"))}catch{}},3e3)}})},[t,n,h,v,w,y,m]),A=(0,r.useCallback)((e,r)=>{const a=v.get(c.A9.em_token),o={email:t.email,subscription:e,price:+r,amount:n===l.h2.EARLY?12*r:+r,token:a,discount:h.discount};g(JSON.stringify(o)).then(e=>{var t,n;if(200===(null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.status)){try{sessionStorage.setItem(u.rn,"1")}catch{}window.location.href=e.data.checkout_url}else e.error})},[t,n,h,v,g]),E=(0,r.useCallback)((e,t,n,r,a,o,i)=>{null===f||void 0===f||f(e);(0,d.i5)(t,r,a,h,o)?p===l.XL.CLOUDPAYMENT?S(e,t,n,o):p===l.XL.STRIPE&&A(e,n):i()},[p,S,A,f,h]),_=(0,r.useCallback)((e,t,n,r,a,o)=>!!(0,d.i5)(t,r,a,h,o)&&(p===l.XL.CLOUDPAYMENT?(S(e,t,n,o),!0):p===l.XL.STRIPE&&(A(e,n),!0)),[p,S,A,h]);return{gateway:p,initiatePayment:E,startPlanCardPayment:_,isPaymentLoading:C}}},92080:(e,t,n)=>{function r(e){if(!e||"string"!==typeof e)return"";const t=e.trim();if(/^\d{2}\.\d{2}\.\d{4}/.test(t))return t.slice(0,10);if(/^\d{4}-\d{2}-\d{2}/.test(t)){const[e,n,r]=t.slice(0,10).split("-");return`${r}.${n}.${e}`}return t}function a(e,t,n){const r=Math.floor(Math.max(0,e));return n(t("%d day","%d days",r),r)}function o(e){if(!e||"string"!==typeof e)return 0;const t=e.trim();let n;if(/^\d{4}-\d{2}-\d{2}/.test(t))n=new Date(t);else{const[e,r,a]=t.split(/[.\-/]/);n=e&&r&&a?new Date(Number(a),Number(r)-1,Number(e)):new Date(t)}if(Number.isNaN(n.getTime()))return 0;const r=new Date;r.setHours(0,0,0,0),n.setHours(0,0,0,0);const a=Math.ceil((n.getTime()-r.getTime())/864e5);return Math.max(0,a)}n.d(t,{Kh:()=>r,WU:()=>o,XQ:()=>a})},22422:(e,t,n)=>{function r(e){if(""===e||null===e||void 0===e)return 0;const t=Number(e);return Number.isNaN(t)?0:t}n.d(t,{o:()=>r})},85660:(e,t,n)=>{n.d(t,{BS:()=>o,EP:()=>a,Wk:()=>i,i5:()=>c,ku:()=>u,w_:()=>l});var r=n(93506);function a(){return"emailmaker"===r.oy}function o(){return a()?"$":"\u20bd"}function i(){return a()?"USD":"RUB"}function s(){return a()?"en-US":"ru-RU"}function c(e,t,n,r,a){const o=null!==n&&void 0!==n?n:"";return("Personal"===e||"Advanced"===e||"Pro"===e||t)&&("Community"===o||"Free"===o||r.is_for_hard_pay&&a)}new Set(["Free","Community","Personal"]);const l=(e,t,n)=>{if(!t||!n)return e;const r=e-e*t/100;return 10*Math.floor(r/10)};function u(e){return`${e.toLocaleString(s())} ${o()}`}},20587:(e,t,n)=>{n.d(t,{E:()=>i,I:()=>o});var r=n(47085),a=n(28589);function o({code:e,...t},n){var r,o;const i=n.getState();return{...t,...e?{html:e}:{},renderGuid:(0,a.l)(),project:null===(r=i.projectSlice)||void 0===r||null===(o=r.project)||void 0===o?void 0:o.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function i({html:e,renderGuid:t,...n},a){const o=a.getState(),{project:i,config:s}=o.configSlice;return(0,r.TB)({...n,code:e,project:void 0===i?n.project:i,utm_parameters:s.UTMEnabled?n.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0})}},57296:(e,t,n)=>{n.r(t),n.d(t,{default:()=>gt});var r=n(77447),a=(n(59687),n(19141)),o=n(57549),i=n(1936),s=n(69962),c=n(51432);const l=({onLoad:e,children:t})=>{(0,i.useEffect)(()=>{e&&e()},[e]);const n=(0,s.wA)();return(0,i.useMemo)(()=>n(c.Q2.endpoints.getMe.initiate({})),[n]),t};var u=n(55054),d=n(84075),h=n(60915),f=n(41244),m=n(3875),p=n(19684),g=n(1331);const b={height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},w=({children:e,handleBeforeRender:t})=>{const[n,r]=(0,i.useState)(),a=(0,m.ZU)(),c=(0,s.d4)(p.p5),l=(0,i.useRef)(!1),u=(0,m.cR)();return(0,i.useLayoutEffect)(()=>{l.current||(l.current=!0,t&&t())},[]),i.createElement(o.N7,{container:(0,g.Sb)(u)||document.head},i.createElement("div",{className:"App blocks-app blocks-plugin",style:a?{}:{visibility:"hidden"}},c&&i.createElement("style",{dangerouslySetInnerHTML:{__html:c}}),i.createElement(m.fh.Provider,{value:n},e),i.createElement("div",{ref:r,className:"blocks-modal-container"})),!a&&i.createElement(o.$x,{size:"large",style:b},i.createElement(o.tK,{size:"large"})))};var y=n(20263),v=n(70529),C=n(9478),S=n(79465),A=n(61140),E=n(83231),_=n(57097);var k=n(79613),L=n(65893),R=n(65185);var N=n(22162);var T=n(89660);var x=n(45988),O=n(49793);const D=(0,O.Qq)(),P=(0,O.Qq)(),I=(0,R.cZ)(),M=(0,R.cZ)();var j=n(89591),B=n(28589);function F(e,t){const n=`${e}\0${null!==t&&void 0!==t?t:""}`;let r=5381;for(let a=0;a<n.length;a++)r=Math.imul(r,33)+n.charCodeAt(a);return r>>>0||1}const U=(0,O.Qq)(),$=(0,O.Qq)();var q=n(27092);var z=n(44004);y.di.createIdentifier();var Y=n(1327);var K=n(64886),H=n(50760),Z=n(22403);function W(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function V(e,t){var n,r;(0,Z.A)(1,arguments);var a=function(e){(0,Z.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,H.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):new Date(NaN)}(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");var o=String(null!==(n=null===t||void 0===t?void 0:t.format)&&void 0!==n?n:"extended"),i=String(null!==(r=null===t||void 0===t?void 0:t.representation)&&void 0!==r?r:"complete");if("extended"!==o&&"basic"!==o)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l="extended"===o?"-":"",u="extended"===o?":":"";if("time"!==i){var d=W(a.getDate(),2),h=W(a.getMonth()+1,2),f=W(a.getFullYear(),4);s="".concat(f).concat(l).concat(h).concat(l).concat(d)}if("date"!==i){var m=a.getTimezoneOffset();if(0!==m){var p=Math.abs(m),g=W(Math.floor(p/60),2),b=W(p%60,2);c="".concat(m<0?"+":"-").concat(g,":").concat(b)}else c="Z";var w=""===s?"":"T",y=[W(a.getHours(),2),W(a.getMinutes(),2),W(a.getSeconds(),2)].join(u);s="".concat(s).concat(w).concat(y).concat(c)}return s}const G=(0,O.Qq)();var Q=n(487);var X=n(25413);var J=n(14154);var ee=n(91875);const te={addUserToProjectApiMock:function(e){(0,_.l)(e)(ee.B,{addUserToProject:()=>{}})},AiApiMock:function(e){(0,_.l)(e)(E.Zs,{sendMessage:({body:e})=>t=>t({body:e}).catch(()=>new Promise(e=>setTimeout(e,1e3))),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,O.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};(0,_.l)(e)(c.Q2,{userRegistration:()=>{},getSchema:()=>e=>e({}),getMe:()=>t,editMe:e=>t={...t,...e},getSubscriptions:()=>[]})},blocksApiMock:function(e){const t=(0,_.l)(e),n=D(e),r=n.byForeignKey("project"),a=P(e),o=a.byForeignKey("parent"),{dispatch:i,getState:s}=(0,O.KA)(e),c=(0,O.PL)(e);c.addDisposable(n.onChange(()=>i(x.VM.util.invalidateTags(["Blocks"])))),c.addDisposable(n.onSave(({prev:e,patch:t,value:n})=>{(e=e?{...e,...t}:t)&&n.html===e.html&&n.title===e.title&&(n.renderGuid=e.renderGuid)},Number.MIN_VALUE));const l=(0,R.dB)(e,M),u=(0,R.dB)(e,I);t(x.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await r.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then(({data:e})=>e)},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>async t=>{try{const t=s().configSlice.project||"",n=(await u.fire({project:t,emailId:e.emailId||""})).filter(e=>e);if(n.length)return n.flat()}catch(n){}return t(e)},getTemplateBlocks:e=>async t=>{try{const t=s().configSlice.project||"",n=(await l.fire({project:t,emailId:e.emailId||""})).filter(e=>e);if(n.length)return n.flat()}catch(n){}return t(e)},async getBlock(e){const t=s().projectSlice.project.id;return r.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await o.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async t=>{const r=await n.create(e);return s().configSlice.config.preventSendDataToEM||t(r).catch(e=>{}),r},editBlock:({blockId:e,...t})=>n.update(e,t),deleteBlock:e=>n.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>a.create({...t,parent:e})})},commentsApiMock:function(e){const t=(0,_.l)(e),n=G(e),r=n.byForeignKey("post"),{dispatch:a}=(0,O.KA)(e);(0,O.PL)(e).addDisposable(n.onChange(()=>a(K.Jg.util.invalidateTags(["Comments"])))),t(K.Jg,{getComments:e=>r.get(e).then(({data:e})=>e),addComment({subjectId:e,author:t,parent:r,content:a,author_name:o,author_email:i,targetId:s}){const c={post:e,author:t,author_name:o,author_email:i,content:a,parent:r,target_id:s,date:V(new Date),author_avatar_urls:{}};return n.create(c)},deleteComment:e=>n.remove(e),editComment:({commentId:e,...t})=>n.update(e,t),deleteTarget:e=>n.update(e,{target_id:""})})},emailsApiMock:function(e){const t=U(e),n=$(e),r=n.byForeignKey("parent"),{dispatch:a,getState:o}=(0,O.KA)(e),i=(0,O.PL)(e),s=(0,_.l)(e);i.addDisposable(t.onChange(async()=>{a(j.GY.util.invalidateTags(["Email"]))})),i.addDisposable(n.onChange(()=>{a(j.GY.util.invalidateTags(["EmailAutosaves"]))})),i.addDisposable(t.onSave(({prev:e,patch:t,value:n})=>{(e=e?{...e,...t}:t)&&n.subject===e.subject&&n.html===e.html&&n.preheader===e.preheader&&n.title===e.title&&(n.renderGuid=e.renderGuid)},Number.MIN_VALUE)),s(j.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(r.clear(),async a=>{if(o().configSlice.config.revisionService){const r=await a({emailId:e,page:t});for(const e of r.data)n.cache.add(e.id,e);return r}return{...await r.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...n}){const r=await t.create(n,{source:e});return r.renderGuid||(r.renderGuid=(0,B.l)()),r},editEmail:e=>async n=>{const{emailId:r,source:a,...i}=e;return o().configSlice.config.revisionService&&await n(e),t.update(r,i,{source:a})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>({...e,id:F(e.name,e.parent),taxonomy:"emailtags"}),getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async r=>(o().configSlice.config.revisionService&&await r({emailId:e,body:t}),await n.create({...t,parent:e,modified:(new Date).toString()}))})},emailRawApiMock:function(e){(0,_.l)(e)(Y.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(v.f5)}})},imageApiMock:function(e){(0,_.l)(e)(T.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,_.l)(e)(q.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e()})},notificationsApiMock:function(e){(0,_.l)(e)(X.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(v.f5)}})},projectsApiMock:function(e){let t;(0,_.l)(e)(Q.Nq,{getProjects:(e={page:1})=>[],getProject:e=>n=>t||(t=n(e).then(t=>({...t,id:e}))),addProject(e){throw new Error},editProject:({projectId:e,...n})=>t=t.then(t=>({...t,...n,id:e})),deleteProject(e){throw new Error}})},proxyApiMock:function(e){const t=(0,_.l)(e),n=(0,R.dB)(e,L.AZ.FILE_PROXY_EVENT_ID);t(k.Z8,{getFile:async({url:t,tryFetch:r=!0,type:a})=>async o=>{const i=e.getState(),{project:s}=i.configSlice,c=(await n.fire({url:t,project:s})).filter(e=>e instanceof Blob)[0];if(!c)return o({url:t,tryFetch:r,type:a});switch(a){case"json":return JSON.parse(await c.text());case"text":return c.text();default:return c}}})},recoverPasswordApiMock:function(e){(0,_.l)(e)(J.yR,{resetPassword(e){throw new Error(v.f5)},setPassword(e){throw new Error(v.f5)},validateRecoverPasswordCode(e){throw new Error(v.f5)}})},saveFileApiMock:function(e){const t=(0,_.l)(e);if(!y.di.getInstance(e,v.Lz))throw new Error("Something was wrong");const n=(0,R.dB)(e,L.AZ.UPLOAD_EVENT_ID),r=(0,R.dB)(e,L.AZ.ON_SEND_TESTEMAIL_ID),a=(0,R.dB)(e,L.AZ.ON_SEND_LIVEPREVIEW_ID);t(z.yH,{uploadImage:t=>async r=>{const a=e.getState(),{project:o}=a.configSlice,i="tmp"===t.folder?null:await n.fire({file:t.file,project:o}),s=i?i.find(e=>e):null;return s?[{file_url:s,project:o}]:r({...t,user_id:String((await y.di.getInstanceAsync(e,v.sZ)).app_id)})},sendTestEmail:t=>async n=>{const a=e.getState(),{project:o}=a.configSlice;(await r.fire({project:o,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some(e=>!1===e)&&await n({...t,user_id:String((await y.di.getInstanceAsync(e,v.sZ)).app_id)})},async sendLivePreview(t){const n=e.getState(),{project:r}=n.configSlice;(await a.fire({project:r,id:t.email,subject:t.subject,html:t.content})).some(e=>!1===e)},sendShortLink:e=>t=>t(e)})},tokenApiMock:function(e){(0,_.l)(e)(N.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}},ne=te;var re=n(49141);function ae(e){return oe(async t=>e(t))}function oe(e){return(0,A.y)(async t=>{const n=await t.getInstanceAsync(v.ax);return await e(n)})}const ie=(0,A.y)(async e=>{const t=(0,S.y)(e);e.inject(v.ax,t);const n=e.getInstance(v.Ef);return n&&(await(0,re.qT)(t,n),await(0,re.tF)(t)),(0,_.B)(t,ne),{instance:{}}});var se=n(72749),ce=n(7331),le=n(63148),ue=n(52976),de=n(63873),he=n(99466),fe=n(44454),me=n(91785),pe=n(41007),ge=n(52248),be=n(89600),we=n(98173),ye=n(93506),ve=n(68876),Ce=n(2527),Se=n(6403);const Ae=()=>{const e=(0,s.wA)(),t=(0,Ce.p)(),n=(0,s.d4)(we.C1);(0,i.useEffect)(()=>{const t=null===n||void 0===n?void 0:n.code_editor;t&&e((0,we.ww)(t))},[n,e]),(0,i.useEffect)(()=>{const n=t.get(ye.A9.em_token),r=t.get(ye.A9.promocode);n&&r&&(e(be.So.endpoints.checkPromo.initiate({code:r,type:"by_link"})),t.remove(ye.A9.promocode))},[e,t]);const r=(0,s.d4)(p.s0),a=r.project?(0,ve.Mu)(r):void 0;return(0,Se.O5)(),ye.EW.isPlugin&&void 0===a?i.createElement(i.Fragment,null):i.createElement(i.Fragment,null,i.createElement(ge.A,null),i.createElement(d.BV,null,i.createElement(d.qh,{path:"/",element:i.createElement(fe.A,null,i.createElement(le.A,null))},i.createElement(d.qh,{index:!0,element:i.createElement(me.A,{to:a||"error"})}),i.createElement(d.qh,{path:"emails"},i.createElement(d.qh,{index:!0,element:i.createElement(pe.A,null)}),i.createElement(d.qh,{path:"new",element:i.createElement(pe.A,null)})),i.createElement(d.qh,{path:"projects"},i.createElement(d.qh,{path:":projectId",element:i.createElement(he.A,null)},i.createElement(d.qh,{path:"emails"},i.createElement(d.qh,{path:":emailId",element:i.createElement(ue.A,null)},i.createElement(d.qh,{path:":preview",element:i.createElement(ue.A,null)})),i.createElement(d.qh,{path:"new",element:i.createElement(ue.A,null)}),i.createElement(d.qh,{path:"new_from"},i.createElement(d.qh,{path:":emailId",element:i.createElement(de.A,null)}))))),i.createElement(d.qh,{path:"*",element:i.createElement(ce.A,null)}))))};class Ee{constructor({shadowRoot:e,markerAttr:t="data-emailmaker"}){this.shadowRoot=void 0,this.markerAttr=void 0,this.observer=void 0,this.addedKeys=new Set,this.handleMutations=e=>{for(const t of e)for(const e of t.addedNodes)1===e.nodeType&&(e instanceof HTMLStyleElement||e instanceof HTMLLinkElement)&&e.hasAttribute(this.markerAttr)&&this.cloneAndInjectNode(e)},this.shadowRoot=e,this.markerAttr=t,this.observer=new MutationObserver(this.handleMutations),this.observer.observe(document.head,{childList:!0,subtree:!1}),this.syncExistingStyles()}syncExistingStyles(){const e=document.querySelectorAll(`style[${this.markerAttr}], link[${this.markerAttr}]`);for(let t=e.length-1;t>=0;t--)this.cloneAndInjectNode(e[t])}getNodeKey(e){return"STYLE"===e.tagName?(e.textContent||"").trim():"LINK"===e.tagName?e.href:null}cloneAndInjectNode(e){const t=this.getNodeKey(e);if(!t||this.addedKeys.has(t))return;const n=e.cloneNode(!0);this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild),this.addedKeys.add(t)}dispose(){this.observer.disconnect(),this.addedKeys.clear()}}Symbol("ElementCloneSymb");const _e=ae(e=>{let t=null;const n=(0,se.My)(e),r=(0,L.dB)(n,L.AZ.ON_CHUNKS_LOADED),c=y.di.getInstance(e,v.Lz);let p,b=!1;const S=()=>{b||(b=!0,r.fire())};return{instance:{getElement:()=>t},async setOptions(n){let b=await(0,C.x)(n.element,c);const{instance:A}=y.di.getInstance(e,v.Cd)||{};if(t!==b&&(c.addDisposable(r.event(()=>{n.handleChunkLoaded&&n.handleChunkLoaded()})),t&&C.s.delete(t),!(b&&C.s.has(b)&&A))){if(p&&p.dispose(),t=b,p=c.addDisposable(new f.jG),b){C.s.set(b,A);const e=(0,g.Sb)(b);e&&p.addDisposable(new Ee({shadowRoot:e}))}else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};p.addDispose(t),b=e}return(t=>new Promise((n,r)=>{var c;if(null!==(c=p)&&void 0!==c&&c.isDisposed())n();else{const r=(0,u.H)(t);r.render(i.createElement(i.StrictMode,null,i.createElement(s.Kq,{store:e},i.createElement(l,{onLoad:n},i.createElement(m.or.Provider,{value:{element:t}},i.createElement(d.fS,null,i.createElement(o.N7,{container:(0,g.K8)(t)?document.head:t},i.createElement(h.Y,null,i.createElement(w,{handleBeforeRender:S},i.createElement(a.A,null,i.createElement(Ae,null))))))))))),p.addDispose(n),p.addDispose(()=>r.unmount())}}))(b)}},dispose(){var e;null===(e=p)||void 0===e||e.dispose()}}});function ke(e){return{emails:U(e),blocks:D(e),emailRevisions:$(e),blocksRevision:P(e),comments:G(e)}}var Le=n(51597),Re=n(52898),Ne=n(61062);function Te(e,t){var n;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(n=t.tags)||void 0===n?void 0:n.map(e=>Number(e))}}var xe=n(47085);function Oe({code:e,...t},n){var r,a;const o=n.getState();return{...t,...e?{html:e}:{},renderGuid:(0,B.l)(),project:null===(r=o.projectSlice)||void 0===r||null===(a=r.project)||void 0===a?void 0:a.id}}function De({html:e,renderGuid:t,...n},r){const a=r.getState(),{project:o}=a.configSlice;return(0,xe.TB)({...n,code:e,project:void 0===o?n.project:o,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}var Pe=n(20587);function Ie(e,t,n){const r=t.getState();var a,o;void 0===n&&(n=void 0===e.post?null===(a=r.emailSlice)||void 0===a||null===(o=a.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:n}}function Me(e,t){return(0,xe.TB)({...e,link:void 0,comment_status:void 0})}function je({code:e,...t},n,r){const a=n.getState();var o,i;void 0===r&&(r=void 0===t.parent?null===(o=a.emailSlice)||void 0===o||null===(i=o.email)||void 0===i?void 0:i.id:t.parent);return{...t,...e?{html:e}:{},parent:r}}function Be({html:e,...t},n){return(0,xe.TB)({...t,code:e,guid:void 0,compiled:(0,xe.TB)({html:e,ampHtml:e&&""})})}var Fe=n(4799),Ue=n(20110),$e=n(69986),qe=n(20414),ze=n(14139),Ye=n(32463),Ke=n(11822);const He=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(qe.gP))}(e)||(0,$e.Nh)(e)||(0,g.BF)(e);async function Ze(e,t={amp:!0,text:!1}){const n=!0===t||"object"===typeof t&&t.amp,r=!0===t||"object"===typeof t&&t.text;let a;"string"===typeof e&&(e={code:e});const o={html:"",ampHtml:"",text:""};try{o.html=e.code?await(0,Ke.PJ)(e.code||"",[Ke.qy],e.utm_parameters,async e=>{a=(e=>{if(He(e))return!0;if((0,g.vq)(e)||(0,g.wz)(e))for(const t of e.querySelectorAll("*"))if(He(t))return!0;return!1})(e.document),a&&await(0,Ye.e)(e,"html")}):""}catch(i){}try{o.ampHtml=n&&e.code&&a?await(0,Ke.PJ)(e.code||"",[Ke.qy],e.utm_parameters,async e=>{await(0,Ye.e)(e,"amp")}):""}catch(i){}try{o.text=r&&e.code?await(0,Ke.PJ)(e.code||"",[Ke.qy],e.utm_parameters,async e=>{e.handleReadHtml(e=>{e.html=(0,Ue.G9)(e.contentDocument,ze.l)})}):""}catch(i){}return{...e,compiled:o}}var We=n(83111),Ve=n(48952),Ge=n(36234),Qe=n(45092);const Xe="EXTERNAL";class Je extends f.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,Fe.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,We.My)(e);this._dataSources=ke(t),this._eventLock=function(e){const t=Object.values(ke(e));return{suspendChange(){t.forEach(e=>e.suspendChange())},resumeChange(){t.forEach(e=>e.resumeChange())}}}(t);const n=(0,R.Zc)(e,L.AZ.ON_MODEL_CHANGE),r=(0,R.Zc)(e,L.AZ.ON_EMAIL_CHANGED_ID);this.addDisposable(n(e=>{this._model=e})),this.addDisposable(r(e=>{this._currentEmail=e})),this.addDisposable(y.di.addService(e,Qe.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await y.di.getInstanceAsync(this._store,v.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const n=await this._store.dispatch(j.GY.endpoints.getTemplateEmail.initiate(e));n.error||(t={...n.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter(e=>e.project===t).map(e=>De(e,this._store))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter(e=>e.post===t.id).map(e=>Me(e,this._store))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter(e=>e.parent===t.id).map(e=>Be(e,this._store))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter(e=>void 0!==e.id).map(e=>[e.id,Oe(e,this._store)]))}async setEmailRevisions(e=[],t){const{cache:n}=this._dataSources.emailRevisions,r=e.filter(e=>void 0!==e.id).map(e=>[e.id,je(e,this._store,t)]);await n.setAll(r)}async setComments(e=[],t){const{cache:n}=this._dataSources.comments,r=e.filter(e=>void 0!==e.id).map(e=>[e.id,Ie(e,this._store,t)]);await n.setAll(r)}async getEmail(e=!0){const t=this._store.getState(),n=t.emailSlice.email.id?t.emailSlice.email:t.newEmailSlice.email;return Ze((0,Pe.E)({...n,html:this._model?this._model.getValue():n.html},this._store),e)}async compileEmail(e=!0){const t=this._store.getState(),n=t.emailSlice.email.id?t.emailSlice.email:t.newEmailSlice.email;return Ze((0,Pe.E)({...n,html:this._model?this._model.getValue():n.html},this._store),e)}setEmailMeta(e){const t=this._store.getState();if(Boolean(t.emailSlice.email.id)){const n=t.emailSlice.email.id;void 0!==n&&this._dataSources.emails.cache.addOrUpdate(n,t=>{if(!t)return t;const n={...t};var r;void 0===e?delete n.meta:n.meta={...null!==(r=t.meta)&&void 0!==r?r:{},...e};return n}),this._store.dispatch((0,Re.QV)(e))}else this._store.dispatch((0,Ne.Qx)(e))}async setEmail(e,t,n=!1){const r=this._dataSources.emails,a=r.cache,o=await this.getProject();e="string"===typeof e?{code:e}:{...e};let i=(0,Pe.I)(e,this._store);const s=i.id;let c=s;if(void 0!==s?i={...await r.get(s),...i,project:o}:(i={...i,project:o},c=(0,B.l)(),delete i.project),t){const e=await this.getTemplateEmail(String(t));e&&(i={...e,id:String(t),...i})}await a.setAll([[c,i]]),n&&this._runShowCommand({isNew:void 0===s,id:c,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,Ve.b)(this._prevCommand,e)?(0,Ge.RS)(this._store,Le._1,t):this._store.dispatch((0,p.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:n,blocks:r,autosaves:a,comments:o,templateId:i}="string"===typeof(t=e)?{email:{code:t}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(t)?{email:t}:{...t,email:"string"===typeof t.email?{code:t.email}:t.email||{}},s=[];s.push(this.setBlocks(r)),void 0!==n.id&&(s.push(this.setComments(o)),s.push(this.setEmailRevisions(a))),s.push(this.setEmail(n,Number(i),!0)),await Promise.all(s)}}catch(n){}finally{this._eventLock.resumeChange()}var t;return new Promise(e=>{const t=(0,R.Zc)(this._store,L.AZ.ON_EMAIL_INIT_ID)(()=>{t.dispose(),e()})})}_save(){return new Promise(async e=>{const t=this._dataSources.emails,n=this.addDisposable(t.onSave(({value:t,source:r})=>{r===Xe&&(n.dispose(),e((0,Pe.E)(t,this._store)))},Number.MIN_VALUE));(0,Ge.RS)(this._store,Le.Kp,Xe)})}getCodeErrors(){var e;const t=this._store.getState(),n=this._model;return n?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map(e=>Te(n,e)):void 0}}var et=n(59059),tt=n(36255),nt=n(39608);class rt extends f.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,R.Zc)(e,L.AZ.ON_MODEL_CHANGE);this.addDisposable(t(e=>{this._model=e}))}_get(){const e=this._store,t=(0,We.My)(e),{blocks:n,emails:r,comments:a,emailRevisions:o}=ke(t),i=(0,R.Zc)(e,L.AZ.ON_SHARE_ID),s=(0,R.Zc)(e,L.AZ.ON_SHOW_PREVIEW_ID),c=(0,R.Zc)(e,L.AZ.ON_EMAIL_CLONE_ID),l=(0,R.Zc)(e,L.AZ.ON_CODE_VALIDATE_ID),u=(0,R.Zc)(e,L.AZ.ON_SUBJECT_CHANGED_ID),d=(0,R.Zc)(e,L.AZ.ON_EMAIL_CHANGED_ID),h=(0,R.Zc)(e,L.AZ.ON_PREHEADER_CHANGED_ID),f=(0,R.Zc)(e,L.AZ.ON_SAVEBUTTON_CLICK_ID),m=(0,R.Zc)(e,L.AZ.ON_NEXTBUTTON_CLICK_ID),g=(0,R.Zc)(e,L.AZ.ON_SEND_LIVEPREVIEW_ID),b=(0,R.Zc)(e,L.AZ.ON_SEND_TESTEMAIL_ID),w=(0,R.Zc)(e,M),y=(0,R.Zc)(e,L.AZ.ON_CONTENT_CHANGED_ID),v=(0,R.Zc)(e,I),C=(0,R.Zc)(e,L.AZ.ON_PREVIOUSBUTTON_CLICK_ID),S=(0,R.Zc)(e,L.AZ.ON_SEND_EMAIL_MODAL_ID),A=(0,et.pb)((0,R.Zc)(e,L.AZ.ON_EMAIL_INIT_ID),e=>!e.reset);return{handlePreheaderChanged:(0,tt.m)(h),handleSubjectChanged:(0,tt.m)(u),handleValidate:(0,tt.m)(l,e=>this._model?e.map(e=>Te(this._model,e)):[]),handleReadEmail:(0,tt.m)(r.handlerRead,e=>e,t=>t&&(0,Pe.I)(t,e)),handleSaveEmail:(0,tt.m)(r.onSave,function({prev:t,patch:n,value:r,source:a}){const o=t?(0,Pe.E)(t,e):void 0;return{prev:o,patch:(0,nt.g)(o,(0,Pe.E)(n,e)),value:(0,Pe.E)(r,e),source:a}},t=>t?(0,Pe.I)(t,e):void 0),handleRemoveEmail:(0,tt.m)(r.onRemove,({value:t,source:n})=>({value:(0,Pe.E)(t,e),source:n}),()=>{}),handleReadCommonBlocks:(0,tt.m)(w,e=>e.project,t=>null===t||void 0===t?void 0:t.map(t=>Oe(t,e))),handleReadTemplateBlocks:(0,tt.m)(v,e=>e,t=>null===t||void 0===t?void 0:t.map(t=>Oe(t,e))),handleReadBlocks:(0,tt.m)(n.byForeignKey("project").handleRead,t=>(0,p.jY)(e.getState())||String(t),t=>null===t||void 0===t?void 0:t.map(t=>Oe(t,e))),handleSaveBlock:(0,tt.m)(n.onSave,function({prev:t,patch:n,value:r,source:a}){const o=t?De(t,e):void 0;return{prev:o,patch:(0,nt.g)(o,De(n,e)),value:De(r,e),source:a}},t=>t?Oe(t,e):void 0),handleRemoveBlock:(0,tt.m)(n.onRemove,({value:t,source:n})=>({value:De(t,e),source:n}),()=>{}),handleReadComments:(0,tt.m)(a.byForeignKey("post").handleRead,e=>e,t=>null===t||void 0===t?void 0:t.map(t=>Ie(t,e))),handleSaveComment:(0,tt.m)(a.onSave,function({prev:e,patch:t,value:n,source:r}){const a=e?Me(e):void 0;return{prev:a,patch:(0,nt.g)(a,Me(t)),value:Me(n),source:r}},t=>t?Ie(t,e):void 0),handleRemoveComment:(0,tt.m)(a.onRemove,({value:e,source:t})=>({value:Me(e),source:t}),()=>{}),handleReadEmailRevisions:(0,tt.m)(o.byForeignKey("parent").handleRead,e=>e,t=>null===t||void 0===t?void 0:t.map(t=>je(t,e))),handleEmailAutosave:(0,tt.m)(o.onSave,function({prev:e,patch:t,value:n,source:r}){return{value:Be(n),source:r}},t=>t?je(t,e):void 0),handleRemoveEmailAutoSave:(0,tt.m)(o.onRemove,({value:e,source:t})=>({value:Be(e),source:t}),()=>{}),handleEmailChanged:(0,tt.m)((0,et.sg)(d,100),t=>(0,Pe.E)(t,e)),handleEmailInit:(0,tt.m)(A,t=>(0,Pe.E)(t,e)),handlePreviousButtonClick:(0,tt.m)(C,t=>(0,Pe.E)(t,e)),handleNextButtonClick:(0,tt.m)(m,t=>(0,Pe.E)(t,e)),handleSaveButtonClick:(0,tt.m)(f,t=>(0,Pe.E)(t,e)),handleHtmlChanged:(0,tt.m)((0,et.sg)(y,100)),handleTestEmailSend:(0,tt.m)(b,({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}})),handleTestEmailModal:(0,tt.m)(S,t=>(0,Pe.E)(t,e)),handleCloneEmail:(0,tt.m)(c,t=>(0,Pe.E)(t,e)),handleShareEmail:(0,tt.m)(i),handlePreviewEmail:(0,tt.m)(s),handleLivePreviewEmail:(0,tt.m)(g)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let n=this._listenersUpdaters;if(!n){n=this._listenersUpdaters={};for(const e of Object.keys(t))n[e]=this.addDisposable(new tt.U(t[e]))}for(const r of Object.keys(t))n[r].setListener(e[r])}}const at=oe(e=>{const t=new Je(e),n=new rt(e);return{async setOptions(e){n.setOptions(e),await t.show(e.content)},instance:{...n.get(),show:e=>t.show(e),save:()=>t.save(),getEmail:()=>t.getEmail(),setEmailMeta(e){t.setEmailMeta(e)},getBlocks:()=>t.getBlocks(),getEmailRevisions:()=>t.getEmailRevisions(),getComments:()=>t.getComments(),compileEmail:async(e,n=!0)=>e?Ze(e,n):await t.compileEmail(n),getCodeErrors:()=>t.getCodeErrors()}}});var ot=n(7314);const it=(0,r.l)(e=>{let t;const n=(0,O.PL)(e),r=(0,L.Zc)(e,L.AZ.ON_MODEL_CHANGE);return n.addDisposable(r(e=>{t=(0,ot.VA)(e)})),{instance:{undoRedoService:{undo:()=>t.undo(),redo:()=>t.redo(),clear:()=>t.clear(),getPast:()=>t.getPast(),getFuture:()=>t.getFuture(),canUndo:()=>t.canUndo(),canRedo:()=>t.canRedo(),createSnapshot:()=>t.createSnapshot(),restoreSnapshot:e=>t.restoreSnapshot(e)}}}});var st=n(24524),ct=n(40867);function lt(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}function ut(e){return e.getState()[p.Ay.name]}const dt=ae(e=>{const t=(0,O.PL)(e),n=(0,tt.m)((0,R.Zc)(e,L.AZ.ON_LIMIT_ID)),r=t.addDisposable(new tt.U(n)),a=(0,tt.m)((0,R.Zc)(e,L.AZ.READ_LOCALE)),o=t.addDisposable(new tt.U(a)),i=(0,tt.m)((0,R.Zc)(e,L.AZ.ON_TRANSLATE_ID)),s=t.addDisposable(new tt.U(i)),l=e.dispatch,u=y.di.getInstanceAsync(e,v.sZ).then(e=>(null===e||void 0===e?void 0:e.app_config)||{},e=>({})),d=(0,Fe.y)(),h=(0,Fe.y)();let m;const g=e=>"number"===typeof e?String(e):"string"===typeof e?e:void 0,b=async t=>{l((0,p.rh)(t));const{locale:n,theme:r,codeModeDirection:a,editor:o}=ut(e).config;void 0!==a&&("none"===a?l((0,ct.N6)(!1)):(l((0,ct.N6)(!0)),l((0,ct.Uf)(a))));const i=await(0,O.wz)(e);var s;await l(c.Q2.endpoints.editMe.initiate({...i,code_editor:o?(s=o,{font_size:s.fontSize,font_family:s.fontFamily,tab_size:s.tabSize,word_wrap:s.wordWrap,minimap:s.minimap,insert_spaces:s.insertSpaces}):i.code_editor,locale:("string"===typeof n?n:i.locale)||"ru_RU",theme:"string"===typeof r?r:i.theme}))};let w;const C=d.decorate(async({config:n={},project:r,user:a,advancedConfigs:o},i)=>{await b({advancedConfigs:o,user:n,serverSide:await u}),(e=>{void 0!==e&&l((0,p.bn)(String(e)))})(r);const{didReset:s}=await(async(n,r)=>{if(!n){const t=await(0,O.wz)(e);return m=g(null===t||void 0===t?void 0:t.id),{didReset:!1}}const a=await(0,O.wz)(e),o=void 0!==n.id?g(n.id):g(null===a||void 0===a?void 0:a.id),i=void 0!==m?String(m):void 0,s=void 0!==o?String(o):void 0,u=void 0!==i&&void 0!==s&&i!==s,d={...a,email:"",password:"",...n,id:o};if(void 0!==n.id||null!==a&&void 0!==a&&a.id||delete d.id,await l(c.Q2.endpoints.editMe.initiate(d)),u&&r){var h;const t=y.di.getInstance(e,v.Cd);if(null!==t&&void 0!==t&&null!==(h=t.instance)&&void 0!==h&&h.reset)return await t.instance.reset(r),{didReset:!0}}return m=s,d.id&&t.addDisposable(y.di.addService(e,Qe.jY,{execute(e){e.headers.append("user_id",d.id)}})),{didReset:!1}})(a,i);s||(n=>{n&&t.addDisposable(y.di.addService(e,Qe.jY,{execute(e){e.headers.append("project_id",String(n))}}))})(r)});return{setOptions:h.decorate(async t=>{const{config:n={},project:a,user:i,advancedConfigs:c,handleReadLocale:l,handleLimitUsage:u,handleTranslate:d,storageProvider:h}=t;y.di.inject(e,st.M4,h),o.setListener(l),r.setListener(u),s.setListener(d),await C({config:n,project:a,user:i,advancedConfigs:c},t).catch(e=>{}),w&&w.dispose(),w=new f.jG}),instance:{setConfig:h.decorate(async t=>{await b({advancedConfigs:ut(e).advancedConfigs,serverSide:await u,user:t})}),getConfig:()=>function(e){var t,n;const r=e.getState(),a=r[we.Ay.name],o=r[p.Ay.name],i=r[ct.Ay.name];return{...o.config,theme:null===(t=a.currentUser)||void 0===t?void 0:t.theme,locale:null===(n=a.currentUser)||void 0===n?void 0:n.locale,codeModeDirection:i.isCodeMode?i.codeModeDirection:"none",editor:lt(a.monacoOptions)}}(e),updateConfig:h.decorate(async t=>{await b({advancedConfigs:ut(e).advancedConfigs,serverSide:await u,user:{...ut(e).user,...t}})}),handleReadLocale:a,handleLimitUsage:n,handleTranslate:i}}});function ht(e){return"string"===typeof e?e:e?i.createElement("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function ft(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,xe.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:ht(e.message),description:ht(e.description),btn:ht(e.btn),onClose:e.onClose,duration:e.duration,icon:ht(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:ht(e.closeIcon),props:e.props,role:e.role})}const mt=(0,r.l)(e=>{const t=e.getInstance(v.Lz),n=(0,L.Zc)(e,L.AZ.ON_NOTIFICATION),r=(0,et.pb)(n,e=>"error"===e.type),a=(0,et.pb)(n,e=>"success"===e.type),o=(0,tt.m)(n,e=>e,e=>"string"===typeof e||"object"===typeof e?ft(e):e),i=(0,tt.m)(r,e=>e,e=>"string"===typeof e||"object"===typeof e?ft(e,"error"):e),s=(0,tt.m)(a,e=>e,e=>"string"===typeof e||"object"===typeof e?ft(e):e),c=t.addDisposable(new tt.U(o)),l=t.addDisposable(new tt.U(i)),u=t.addDisposable(new tt.U(s));return{setOptions({handleNotify:e,handleSuccess:t,handleError:n}){c.setListener(e),l.setListener(n),u.setListener(t)},instance:{notify(t){(0,Ge.RS)(e,Le.Sb,{placement:"bottomRight",...ft(t)})},handleNotify:o,handleError:i,handleSuccess:s}}}),pt=(0,r.l)(e=>{const t=e.getInstance(v.Lz),n=(0,L.Zc)(e,L.AZ.UPLOAD_EVENT_ID),r=(0,L.Zc)(e,L.AZ.FILE_PROXY_EVENT_ID),a=(0,L.dB)(e,L.AZ.PROXY_URL_EVENT_ID).event,o=(0,tt.m)(n),i=(0,tt.m)(a),s=(0,tt.m)(r),c=t.addDisposable(new tt.U(o)),l=t.addDisposable(new tt.U(s)),u=t.addDisposable(new tt.U(i));return{setOptions(e){c.setListener(e.handleLoadImage),l.setListener(e.handleFileProxy),u.setListener(e.handleUrlProxy)},instance:{handleLoadImage:o,handleFileProxy:s,handleUrlProxy:i}}}),gt=(0,r.E)([ie,mt,dt,pt,_e,it,at])},39477:(e,t,n)=>{n.d(t,{rm:()=>o});var r=n(37816),a=n(58513);function o(){const e=(0,a.EU)();return(0,r.h)(e).getIsolationScope()}},42414:(e,t,n)=>{n.d(t,{gV:()=>a});var r=n(39477);function a(e){(0,r.rm)().setUser(e)}},54845:(e,t,n)=>{n.d(t,{qO:()=>o});var r=n(22931),a=n(82558);function o(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,a.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}},34129:(e,t,n)=>{n.d(t,{Yz:()=>u});var r=n(58513),a=n(64035),o=n(6732);const i={};function s(){return l().enabled}function c(e,...t){a.T&&s()&&function(e){if(!("console"in o.O))return e();const t=o.O.console,n={},r=Object.keys(i);r.forEach(e=>{const r=i[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}(()=>{o.O.console[e](`Sentry Logger [${e}]:`,...t)})}function l(){return a.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const u={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:s,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},66115:(e,t,n)=>{n.d(t,{Qd:()=>o,Qg:()=>i});const r=Object.prototype.toString;function a(e,t){return r.call(e)===`[object ${t}]`}function o(e){return a(e,"Object")}function i(e){return Boolean(e?.then&&"function"===typeof e.then)}},22931:(e,t,n)=>{n.d(t,{eJ:()=>i});var r=n(62650),a=n(6732);let o;function i(e=function(){const e=a.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,r.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return o||(o=[1e7]+1e3+4e3+8e3+1e11),o.replace(/[018]/g,e=>(e^(16*(0,r.hY)()&15)>>e/4).toString(16))}},13216:(e,t,n)=>{n.d(t,{my:()=>o});var r=n(64035),a=n(34129);function o(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&a.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}},52510:(e,t,n)=>{n.d(t,{e:()=>a});var r=n(22931);function a(){return(0,r.eJ)()}},38126:(e,t,n)=>{function r(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}n.d(t,{xv:()=>r})},82558:(e,t,n)=>{n.d(t,{lu:()=>i,zf:()=>c});var r=n(62650),a=n(6732);const o=1e3;function i(){return(0,r.Wk)()/o}let s;function c(){return(s??(s=function(){const{performance:e}=a.O;if(!e?.now||!e.timeOrigin)return i;const t=e.timeOrigin;return()=>(t+(0,r.Qw)(()=>e.now()))/o}()))()}},30338:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(77007),a=n(4056);const o=new(n(25016).A)(a.A,r.A)._freeze()}}]);
3
- //# sourceMappingURL=369.05739401.js.map