@openzeppelin/contracts-mcp 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/cairo.html +1 -1
- package/apps/confidential.html +1 -1
- package/apps/solidity.html +2 -2
- package/apps/stellar.html +1 -1
- package/apps/stylus.html +1 -1
- package/apps/tron.html +2 -2
- package/apps/uniswap-hooks.html +1 -1
- package/dist/solidity/tools/erc20.d.ts.map +1 -1
- package/dist/solidity/tools/erc20.js +2 -1
- package/dist/solidity/tools/erc20.js.map +1 -1
- package/dist/solidity/tools/rwa.d.ts.map +1 -1
- package/dist/solidity/tools/rwa.js +2 -1
- package/dist/solidity/tools/rwa.js.map +1 -1
- package/dist/solidity/tools/stablecoin.d.ts.map +1 -1
- package/dist/solidity/tools/stablecoin.js +2 -1
- package/dist/solidity/tools/stablecoin.js.map +1 -1
- package/dist/stellar/tools/fungible.d.ts.map +1 -1
- package/dist/stellar/tools/fungible.js +3 -1
- package/dist/stellar/tools/fungible.js.map +1 -1
- package/dist/stellar/tools/non-fungible.d.ts.map +1 -1
- package/dist/stellar/tools/non-fungible.js +4 -1
- package/dist/stellar/tools/non-fungible.js.map +1 -1
- package/dist/stellar/tools/stablecoin.d.ts.map +1 -1
- package/dist/stellar/tools/stablecoin.js +3 -1
- package/dist/stellar/tools/stablecoin.js.map +1 -1
- package/dist/tron/tools/erc20.js +1 -1
- package/dist/tron/tools/erc20.js.map +1 -1
- package/package.json +4 -4
- package/src/solidity/tools/erc20.ts +2 -0
- package/src/solidity/tools/rwa.ts +2 -0
- package/src/solidity/tools/stablecoin.ts +2 -0
- package/src/stellar/tools/fungible.ts +4 -0
- package/src/stellar/tools/non-fungible.ts +6 -0
- package/src/stellar/tools/stablecoin.ts +4 -0
- package/src/tron/tools/erc20.ts +2 -2
package/apps/solidity.html
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<script>
|
|
16
|
-
!function(){"use strict";var e=[],t=[];!function(n,i){if(n&&"undefined"!=typeof document){var r,o=!0===i.prepend?"prepend":"append",a=!0===i.singleTag,s="string"==typeof i.container?document.querySelector(i.container):document.getElementsByTagName("head")[0];if(a){var c=e.indexOf(s);-1===c&&(c=e.push(s)-1,t[c]={}),r=t[c]&&t[c][o]?t[c][o]:t[c][o]=l()}else r=l();65279===n.charCodeAt(0)&&(n=n.substring(1)),r.styleSheet?r.styleSheet.cssText+=n:r.appendChild(document.createTextNode(n))}function l(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),i.attributes)for(var t=Object.keys(i.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],i.attributes[t[n]]);var r="prepend"===o?"afterbegin":"beforeend";return s.insertAdjacentElement(r,e),e}}("pre code.hljs {\n display: block;\n overflow-x: auto;\n padding: 1em\n}\ncode.hljs {\n padding: 3px 5px\n}\n/*\n\nAtom One Dark by Daniel Gamage\nOriginal One Dark Syntax theme from https://github.com/atom/one-dark-syntax\n\nbase: #282c34\nmono-1: #abb2bf\nmono-2: #818896\nmono-3: #5c6370\nhue-1: #56b6c2\nhue-2: #61aeee\nhue-3: #c678dd\nhue-4: #98c379\nhue-5: #e06c75\nhue-5-2: #be5046\nhue-6: #d19a66\nhue-6-2: #e6c07b\n\n*/\n.hljs {\n color: #abb2bf;\n background: #282c34\n}\n.hljs-comment,\n.hljs-quote {\n color: #5c6370;\n font-style: italic\n}\n.hljs-doctag,\n.hljs-keyword,\n.hljs-formula {\n color: #c678dd\n}\n.hljs-section,\n.hljs-name,\n.hljs-selector-tag,\n.hljs-deletion,\n.hljs-subst {\n color: #e06c75\n}\n.hljs-literal {\n color: #56b6c2\n}\n.hljs-string,\n.hljs-regexp,\n.hljs-addition,\n.hljs-attribute,\n.hljs-meta .hljs-string {\n color: #98c379\n}\n.hljs-attr,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-type,\n.hljs-selector-class,\n.hljs-selector-attr,\n.hljs-selector-pseudo,\n.hljs-number {\n color: #d19a66\n}\n.hljs-symbol,\n.hljs-bullet,\n.hljs-link,\n.hljs-meta,\n.hljs-selector-id,\n.hljs-title {\n color: #61aeee\n}\n.hljs-built_in,\n.hljs-title.class_,\n.hljs-class .hljs-title {\n color: #e6c07b\n}\n.hljs-emphasis {\n font-style: italic\n}\n.hljs-strong {\n font-weight: bold\n}\n.hljs-link {\n text-decoration: underline\n}\n\n.visible {\n visibility: visible\n}\n\n.invisible {\n visibility: hidden\n}\n\n.collapse {\n visibility: collapse\n}\n\n.fixed {\n position: fixed\n}\n\n.absolute {\n position: absolute\n}\n\n.relative {\n position: relative\n}\n\n.bottom-1 {\n bottom: 0.25rem\n}\n\n.bottom-4 {\n bottom: 1rem\n}\n\n.bottom-8 {\n bottom: 2rem\n}\n\n.bottom-\\[3\\.75rem\\] {\n bottom: 3.75rem\n}\n\n.left-4 {\n left: 1rem\n}\n\n.right-0 {\n right: 0px\n}\n\n.right-4 {\n right: 1rem\n}\n\n.right-8 {\n right: 2rem\n}\n\n.z-20 {\n z-index: 20\n}\n\n.z-50 {\n z-index: 50\n}\n\n.m-0 {\n margin: 0px\n}\n\n.m-\\[2px\\] {\n margin: 2px\n}\n\n.mb-1 {\n margin-bottom: 0.25rem\n}\n\n.ml-1 {\n margin-left: 0.25rem\n}\n\n.ml-2 {\n margin-left: 0.5rem\n}\n\n.ml-auto {\n margin-left: auto\n}\n\n.mr-2 {\n margin-right: 0.5rem\n}\n\n.block {\n display: block\n}\n\n.flex {\n display: flex\n}\n\n.grid {\n display: grid\n}\n\n.contents {\n display: contents\n}\n\n.hidden {\n display: none\n}\n\n.h-10 {\n height: 2.5rem\n}\n\n.h-14 {\n height: 3.5rem\n}\n\n.h-32 {\n height: 8rem\n}\n\n.h-6 {\n height: 1.5rem\n}\n\n.h-\\[32px\\] {\n height: 32px\n}\n\n.h-\\[36px\\] {\n height: 36px\n}\n\n.h-\\[calc\\(100\\%-188px\\)\\] {\n height: calc(100% - 188px)\n}\n\n.h-\\[calc\\(100\\%-800px\\)\\] {\n height: calc(100% - 800px)\n}\n\n.h-full {\n height: 100%\n}\n\n.max-h-full {\n max-height: 100%\n}\n\n.min-h-0 {\n min-height: 0px\n}\n\n.min-h-\\[200px\\] {\n min-height: 200px\n}\n\n.w-10 {\n width: 2.5rem\n}\n\n.w-32 {\n width: 8rem\n}\n\n.w-6 {\n width: 1.5rem\n}\n\n.w-60 {\n width: 15rem\n}\n\n.w-80 {\n width: 20rem\n}\n\n.w-\\[32px\\] {\n width: 32px\n}\n\n.w-\\[36px\\] {\n width: 36px\n}\n\n.w-\\[40rem\\] {\n width: 40rem\n}\n\n.w-full {\n width: 100%\n}\n\n.min-w-0 {\n min-width: 0px\n}\n\n.min-w-\\[14rem\\] {\n min-width: 14rem\n}\n\n.min-w-\\[40px\\] {\n min-width: 40px\n}\n\n.max-w-\\[400px\\] {\n max-width: 400px\n}\n\n.max-w-\\[42\\%\\] {\n max-width: 42%\n}\n\n.flex-1 {\n flex: 1 1 0%\n}\n\n.flex-none {\n flex: none\n}\n\n.shrink-0 {\n flex-shrink: 0\n}\n\n.grow {\n flex-grow: 1\n}\n\n.basis-0 {\n flex-basis: 0px\n}\n\n.rotate-45 {\n --tw-rotate: 45deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0\n }\n 100% {\n opacity: 1\n }\n}\n\n.animate-fade-in {\n animation: fade-in 0.3s ease-out\n}\n\n@keyframes fade-up {\n 0% {\n opacity: 0;\n transform: translateY(1rem)\n }\n 100% {\n opacity: 1;\n transform: translateY(0)\n }\n}\n\n.animate-fade-up {\n animation: fade-up 0.2s ease-out\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg)\n }\n}\n\n.animate-spin-slow {\n animation: spin 2s linear infinite\n}\n\n.cursor-pointer {\n cursor: pointer\n}\n\n.resize-none {\n resize: none\n}\n\n.resize {\n resize: both\n}\n\n.grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr))\n}\n\n.grid-cols-\\[2fr\\2c 1fr\\] {\n grid-template-columns: 2fr 1fr\n}\n\n.flex-row {\n flex-direction: row\n}\n\n.flex-col {\n flex-direction: column\n}\n\n.flex-col-reverse {\n flex-direction: column-reverse\n}\n\n.flex-wrap {\n flex-wrap: wrap\n}\n\n.items-center {\n align-items: center\n}\n\n.justify-center {\n justify-content: center\n}\n\n.justify-between {\n justify-content: space-between\n}\n\n.gap-2 {\n gap: 0.5rem\n}\n\n.gap-3 {\n gap: 0.75rem\n}\n\n.gap-4 {\n gap: 1rem\n}\n\n.overflow-auto {\n overflow: auto\n}\n\n.overflow-hidden {\n overflow: hidden\n}\n\n.overflow-x-auto {\n overflow-x: auto\n}\n\n.overflow-y-auto {\n overflow-y: auto\n}\n\n.rounded-full {\n border-radius: 9999px\n}\n\n.rounded-md {\n border-radius: 0.375rem\n}\n\n.rounded-xl {\n border-radius: 0.75rem\n}\n\n.border {\n border-width: 1px\n}\n\n.border-0 {\n border-width: 0px\n}\n\n.border-b {\n border-bottom-width: 1px\n}\n\n.border-r {\n border-right-width: 1px\n}\n\n.border-solid {\n border-style: solid\n}\n\n.border-none {\n border-style: none\n}\n\n.border-\\[var\\(--gray-3\\)\\] {\n border-color: var(--gray-3)\n}\n\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1))\n}\n\n.bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-400 {\n --tw-bg-opacity: 1;\n background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1))\n}\n\n.bg-transparent {\n background-color: transparent\n}\n\n.p-2 {\n padding: 0.5rem\n}\n\n.p-3 {\n padding: 0.75rem\n}\n\n.p-4 {\n padding: 1rem\n}\n\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem\n}\n\n.pr-2 {\n padding-right: 0.5rem\n}\n\n.text-center {\n text-align: center\n}\n\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem\n}\n\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n\n.font-bold {\n font-weight: 700\n}\n\n.lowercase {\n text-transform: lowercase\n}\n\n.italic {\n font-style: italic\n}\n\n.text-gray-50 {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity, 1))\n}\n\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1))\n}\n\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1))\n}\n\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n\n.underline {\n text-decoration-line: underline\n}\n\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.shadow-xl {\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)\n}\n\n*,\n*:before,\n*:after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nhtml {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n}\n\ncode {\n font-family: var(--monospace);\n font-size: 1em;\n}\n\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n}\n:root {\n --sans-serif: system-ui, sans-serif;\n --monospace: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;\n\n /* Colors */\n\n --text-color: #333333;\n\n --gray-1: #f9fafb;\n --gray-2: #eff1f3;\n --gray-3: #d8dbe2;\n --gray-4: #818998;\n --gray-5: #575c66;\n --gray-6: #2c374b;\n\n --blue-1: #f5f6ff;\n --blue-2: #4e5de4;\n --blue-3: #343f9d;\n\n --yellow-1: #fffaeb;\n --yellow-2: #ffcc33;\n --yellow-3: #b27700;\n\n --red-1: #feecec;\n --red-2: #f53d3d;\n --red-3: #aa0909;\n\n --solidity-blue-1: #51d4ff;\n --solidity-blue-2: #4e5de4;\n\n --cairo-orange: #fe4a3c;\n\n --polkadot-pink: #ff2670;\n\n --stylus-pink: #e3066e;\n\n --stellar-black: #0f0f0f;\n\n --confidential-black: #000000;\n --confidential-yellow: #ffd208;\n\n --uniswap-pink: #f50eb4;\n\n /* TRON Red, per the official brand palette (PANTONE 185C). */\n --tron-red: #dc062b;\n\n /* Dimensions (scale taken from Tailwind) */\n\n --size-1: 0.25rem;\n --size-2: 0.5rem;\n --size-3: 0.75rem;\n --size-4: 1rem;\n --size-8: 2rem;\n --size-64: 16rem;\n\n /* Font Sizes */\n\n --text-small: 0.875rem;\n\n /* Utilities */\n\n --shadow: 0 2px 3px rgba(0, 0, 0, 0.1);\n\n --icon-adjust: 0.125em;\n}\n.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}\n[data-tippy-root]{max-width:calc(100vw - 10px)}\n.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}\n.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}\n.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}\n.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}\n.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}\n.tippy-box[data-placement^=left]>.tippy-arrow{right:0}\n.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}\n.tippy-box[data-placement^=right]>.tippy-arrow{left:0}\n.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}\n.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}\n.tippy-arrow{width:16px;height:16px;color:#333}\n.tippy-arrow:before{content:\"\";position:absolute;border-color:transparent;border-style:solid}\n.tippy-content{position:relative;padding:5px 9px;z-index:1}\n.tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}\n.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}\n.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}\n.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}\n.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}\n.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}\n.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}\n:root {\n --tippy-background: #333;\n --tippy-text: var(--gray-3);\n --tippy-border: rgba(0, 8, 16, 0.15);\n}\n.tippy-box[data-theme~='light'] {\n --tippy-background: #fffffff5;\n --tippy-text: #333;\n}\n.tippy-box[data-theme~='light-yellow'] {\n --tippy-background: var(--yellow-1);\n --tippy-text: #333;\n}\n.tippy-box[data-theme~='light-red'] {\n --tippy-background: var(--red-1);\n --tippy-text: #333;\n}\n.tippy-box {\n background-color: var(--tippy-background);\n background-clip: padding-box;\n color: var(--tippy-text);\n box-shadow: var(--shadow);\n font-weight: initial;\n font-variant: initial;\n text-transform: none;\n}\n.tippy-box[data-theme~='border'] {\n border: 1px solid var(--tippy-border);\n}\n.tippy-box > .tippy-backdrop {\n background-color: var(--tippy-background);\n}\n.tippy-box[data-theme~='border'] > .tippy-arrow:after {\n content: '';\n position: absolute;\n z-index: -1;\n border-color: transparent;\n border-style: solid;\n}\n.tippy-box[data-placement^='top'] > .tippy-arrow:before {\n border-top-color: var(--tippy-background);\n}\n.tippy-box[data-placement^='bottom'] > .tippy-arrow:before {\n border-bottom-color: var(--tippy-background);\n bottom: 16px;\n}\n.tippy-box[data-placement^='left'] > .tippy-arrow:before {\n border-left-color: var(--tippy-background);\n}\n.tippy-box[data-placement^='right'] > .tippy-arrow:before {\n border-right-color: var(--tippy-background);\n right: 16px;\n}\n.tippy-box[data-theme~='border'][data-placement^='top'] > .tippy-arrow:after {\n border-top-color: var(--tippy-border);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px;\n}\n.tippy-box[data-theme~='border'][data-placement^='bottom'] > .tippy-arrow:after {\n border-bottom-color: var(--tippy-border);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px;\n}\n.tippy-box[data-theme~='border'][data-placement^='left'] > .tippy-arrow:after {\n border-left-color: var(--tippy-border);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px;\n}\n.tippy-box[data-theme~='border'][data-placement^='right'] > .tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: var(--tippy-border);\n}\n.container {\n background-color: var(--gray-1);\n min-width: 32rem;\n}\n.header {\n font-size: var(--text-small);\n}\n.tab {\n color: var(--gray-5);\n}\n.tab button:hover,\n.overflow-btn:hover {\n background-color: var(--gray-2);\n}\n/* Global .overflow-menu button with .selected class */\n.overflow-menu button.selected {\n order: unset;\n}\n.tab button,\n.overflow-btn {\n border: 0;\n background-color: transparent;\n padding: var(--size-2) var(--size-4);\n border-radius: 20px;\n cursor: pointer;\n transition: background-color ease-in-out 0.2s;\n}\n/* Global .action-button */\n.action-button {\n padding: 7px;\n border-radius: 20px;\n transition: background-color ease-in-out 0.2s;\n background-color: var(--gray-1);\n border: 1px solid var(--gray-3);\n color: var(--gray-6);\n cursor: pointer;\n}\n/* Hover and active states for .action-button */\n.action-button:hover {\n background-color: var(--gray-2);\n}\n.action-button:active,\n.action-button.active {\n background-color: var(--gray-2);\n}\n/* .icon inside .action-button */\n.action-button .icon {\n margin: 0 var(--size-1);\n}\n/* Disabled state */\n.action-button.disabled {\n color: var(--gray-4);\n}\n/* Button with text */\n.with-text {\n padding-right: var(--size-3);\n}\n/* Controls container */\n.controls {\n background-color: white;\n padding: var(--size-4);\n}\n/* Controls footer */\n.controls-footer {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n color: var(--gray-5);\n margin-top: var(--size-3);\n padding: 0 var(--size-2);\n font-size: var(--text-small);\n}\n/* Apply left margin to every element after the first child */\n.controls-footer > * + * {\n margin-left: var(--size-3);\n}\n/* .icon inside .controls-footer */\n.controls-footer .icon {\n margin-right: 0.2em;\n opacity: 0.8;\n}\n/* Links inside .controls-footer */\n.controls-footer a {\n color: inherit;\n text-decoration: none;\n}\n/* Hover effect for links */\n.controls-footer a:hover {\n color: var(--text-color);\n}\n.download-option-content {\n margin-left: var(--size-3);\n font-size: var(--text-small);\n}\n.download-option-content > :first-child {\n margin-bottom: var(--size-2);\n color: var(--gray-6);\n font-weight: bold;\n}\n.download-option-content > :not(:first-child) {\n margin-top: var(--size-1);\n color: var(--gray-5);\n}\n.download-option {\n display: flex;\n padding: var(--size-2);\n text-align: left;\n background: none;\n border: 1px solid transparent;\n border-radius: 4px;\n cursor: pointer;\n}\n/* The .icon inside .download-option */\n.download-option :global(.icon) {\n margin-top: var(--icon-adjust);\n}\n/* When the previous sibling is not hovered */\n:not(:hover) + .download-option {\n border-top: 1px solid var(--gray-2);\n}\n/* Hover and focus states */\n.download-option:hover,\n.download-option:focus {\n background-color: var(--gray-1);\n border: 1px solid var(--gray-3);\n}\n/* Direct or nested div inside .download-option */\n.download-option div {\n display: block;\n}\n\n/* General */\n\nbody {\n color: var(--text-color);\n font-family: var(--sans-serif);\n}\n\nsvg.vertical-align {\n vertical-align: calc(-1 * var(--icon-adjust));\n}\n\nsvg.keepcolor {\n fill: currentColor;\n}\n\nsvg.icon {\n vertical-align: calc(-1 * var(--icon-adjust));\n flex: 0 0 auto;\n height: 1em;\n width: 1em;\n fill: currentColor;\n}\n\ninput:not([type]),\ninput[type='text'],\ninput[type='number'],\ninput[type='datetime-local'] {\n border: 1px solid var(--gray-3);\n padding: var(--size-2) var(--size-3);\n border-radius: 6px;\n}\n\n/* Hide up and down arrows in numeric input fields */\n\ninput[type='number']::-webkit-outer-spin-button,\ninput[type='number']::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\ninput[type='number'] {\n -moz-appearance: textfield;\n -webkit-appearance: textfield;\n appearance: textfield;\n}\n\n/* Components */\n\n.controls-section {\n display: flex;\n flex-direction: column;\n}\n\n.controls-section + .controls-section {\n margin-top: var(--size-4);\n padding-top: var(--size-4);\n border-top: 1px solid var(--gray-3);\n }\n\n.controls-section > * + * {\n margin-top: var(--size-3);\n }\n\n.controls-section h1 {\n margin-top: 0;\n margin-bottom: 0;\n text-transform: lowercase;\n font-variant: small-caps;\n font-size: var(--text-small);\n color: var(--gray-4);\n font-weight: 600;\n }\n\n.subcontrol::before {\n content: '└';\n color: var(--gray-3);\n}\n\n.checkbox-group {\n display: flex;\n flex-direction: column;\n}\n\n.checkbox-group > * {\n display: flex;\n align-items: center;\n padding: var(--size-2);\n }\n\n.checkbox-group input {\n margin-right: var(--size-2);\n }\n\n.checkbox-group .tooltip {\n margin-left: auto;\n }\n\n.checkbox-group .checked {\n background-color: var(--blue-1);\n }\n\n.labeled-input {\n display: flex;\n flex-direction: column;\n}\n\n.labeled-input > span {\n font-size: var(--text-small);\n }\n\n.labeled-input > input {\n margin-top: var(--size-1);\n width: 100%;\n }\n\n.tooltip-container,\n.checkbox-group > *,\n.labeled-input {\n --tooltip-opacity: 0.15;\n}\n\n.tooltip-container:hover, .checkbox-group > *:hover, .labeled-input:hover {\n --tooltip-opacity: 0.5;\n }\n\ninput.input-inline {\n padding: 0.25em;\n height: 1.5em;\n width: 2em;\n max-width: 100%;\n text-align: center;\n}\n\n.has-error {\n box-shadow: 0 0 var(--size-1) var(--red-2);\n}\n\n.import-link {\n color: inherit;\n}\n\n.comment-link {\n color: #7d828d;\n}\n\n.glimmery {\n background: conic-gradient(rgb(196, 181, 253), rgb(110, 231, 183), rgb(249, 168, 212));\n}\n\n.hljs.-solidity {\n background: linear-gradient(30deg, #151a24, #2b323e);\n}\n\n.hljs.-cairo {\n background: linear-gradient(30deg, #191717, #2a0f0f);\n}\n\n.hljs.-stylus {\n background: linear-gradient(30deg, #181215, #360c1f);\n}\n\n.light-link {\n color: white;\n}\n\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))\n}\n\n.hover\\:bg-white:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))\n}\n",{});const n=Object.freeze({status:"aborted"});function i(e,t,n){function i(n,i){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:i,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,i);const r=a.prototype,o=Object.keys(r);for(let e=0;e<o.length;e++){const t=o[e];t in n||(n[t]=r[t].bind(n))}}const r=n?.Parent??Object;class o extends r{}function a(e){var t;const r=n?.Parent?new o:this;i(r,e),(t=r._zod).deferred??(t.deferred=[]);for(const e of r._zod.deferred)e();return r}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const r=Symbol("zod_brand");class o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class a extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const s={};function c(e){return e&&Object.assign(s,e),s}function l(e){const t=Object.values(e).filter(e=>"number"==typeof e),n=Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t);return n}function u(e,t="|"){return e.map(e=>U(e)).join(t)}function d(e,t){return"bigint"==typeof t?t.toString():t}function p(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function m(e){return null==e}function f(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function h(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(0===r&&/\d?e-\d?/.test(i)){const e=i.match(/\d?e-(\d?)/);e?.[1]&&(r=Number.parseInt(e[1]))}const o=n>r?n:r;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}const g=Symbol("evaluating");function v(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==g)return void 0===i&&(i=g,i=n()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function $(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function b(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function y(e){return JSON.stringify(e)}function k(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const _="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function x(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const w=p(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function I(e){if(!1===x(e))return!1;const t=e.constructor;if(void 0===t)return!0;if("function"!=typeof t)return!0;const n=t.prototype;return!1!==x(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function S(e){return I(e)?{...e}:Array.isArray(e)?[...e]:e}const E=new Set(["string","number","symbol"]),C=new Set(["string","number","bigint","boolean","symbol","undefined"]);function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function O(e,t,n){const i=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(i._zod.parent=e),i}function T(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function U(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function R(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}const A={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},P={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function N(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return O(e,b(e._zod.def,{get shape(){const e={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(e[i]=n.shape[i])}return $(this,"shape",e),e},checks:[]}))}function j(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const r=b(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete i[e]}return $(this,"shape",i),i},checks:[]});return O(e,r)}function D(e,t){if(!I(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const n=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=b(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return $(this,"shape",n),n}});return O(e,i)}function M(e,t){if(!I(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=b(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return $(this,"shape",n),n}});return O(e,n)}function Z(e,t){const n=b(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return $(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return O(e,n)}function L(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=b(t._zod.def,{get shape(){const i=t._zod.def.shape,r={...i};if(n)for(const t in n){if(!(t in i))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(r[t]=e?new e({type:"optional",innerType:i[t]}):i[t])}else for(const t in i)r[t]=e?new e({type:"optional",innerType:i[t]}):i[t];return $(this,"shape",r),r},checks:[]});return O(t,r)}function q(e,t,n){const i=b(t._zod.def,{get shape(){const i=t._zod.def.shape,r={...i};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(r[t]=new e({type:"nonoptional",innerType:i[t]}))}else for(const t in i)r[t]=new e({type:"nonoptional",innerType:i[t]});return $(this,"shape",r),r}});return O(t,i)}function B(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function F(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function H(e){return"string"==typeof e?e:e?.message}function V(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const r=H(e.inst?._zod.def?.error?.(e))??H(t?.error?.(e))??H(n.customError?.(e))??H(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function J(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function W(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function G(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(null===e)return"null";if(Array.isArray(e))return"array";const t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}}return t}function K(...e){const[t,n,i]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:i}:{...t}}function X(e){const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Y(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Q=Object.freeze({__proto__:null,BIGINT_FORMAT_RANGES:P,Class:class{constructor(...e){}},NUMBER_FORMAT_RANGES:A,aborted:B,allowsEval:w,assert:function(e){},assertEqual:function(e){return e},assertIs:function(e){},assertNever:function(e){throw new Error("Unexpected value in exhaustive check")},assertNotEqual:function(e){return e},assignProp:$,base64ToUint8Array:X,base64urlToUint8Array:function(e){const t=e.replace(/-/g,"+").replace(/_/g,"/");return X(t+"=".repeat((4-t.length%4)%4))},cached:p,captureStackTrace:_,cleanEnum:function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},cleanRegex:f,clone:O,cloneDef:function(e){return b(e._zod.def)},createTransparentProxy:function(e){let t;return new Proxy({},{get:(n,i,r)=>(t??(t=e()),Reflect.get(t,i,r)),set:(n,i,r,o)=>(t??(t=e()),Reflect.set(t,i,r,o)),has:(n,i)=>(t??(t=e()),Reflect.has(t,i)),deleteProperty:(n,i)=>(t??(t=e()),Reflect.deleteProperty(t,i)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,i)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)),defineProperty:(n,i,r)=>(t??(t=e()),Reflect.defineProperty(t,i,r))})},defineLazy:v,esc:y,escapeRegex:z,extend:D,finalizeIssue:V,floatSafeRemainder:h,getElementAtPath:function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},getEnumValues:l,getLengthableOrigin:W,getParsedType:e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":"undefined"!=typeof Map&&e instanceof Map?"map":"undefined"!=typeof Set&&e instanceof Set?"set":"undefined"!=typeof Date&&e instanceof Date?"date":"undefined"!=typeof File&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},getSizableOrigin:J,hexToUint8Array:function(e){const t=e.replace(/^0x/,"");if(t.length%2!=0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n},isObject:x,isPlainObject:I,issue:K,joinValues:u,jsonStringifyReplacer:d,merge:Z,mergeDefs:b,normalizeParams:T,nullish:m,numKeys:function(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},objectClone:function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},omit:j,optionalKeys:R,parsedType:G,partial:L,pick:N,prefixIssues:F,primitiveTypes:C,promiseAllObject:function(e){const t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{const n={};for(let i=0;i<t.length;i++)n[t[i]]=e[i];return n})},propertyKeyTypes:E,randomString:function(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(26*Math.random())];return n},required:q,safeExtend:M,shallowClone:S,slugify:k,stringifyPrimitive:U,uint8ArrayToBase64:Y,uint8ArrayToBase64url:function(e){return Y(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},uint8ArrayToHex:function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},unwrapMessage:H});const ee=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,d,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},te=i("$ZodError",ee),ne=i("$ZodError",ee,{Parent:Error});function ie(e,t=e=>e.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function re(e,t=e=>e.message){const n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code&&r.errors.length)r.errors.map(e=>i({issues:e}));else if("invalid_key"===r.code)i({issues:r.issues});else if("invalid_element"===r.code)i({issues:r.issues});else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}function oe(e,t=e=>e.message){const n={errors:[]},i=(e,r=[])=>{var o,a;for(const s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>i({issues:e},s.path));else if("invalid_key"===s.code)i({issues:s.issues},s.path);else if("invalid_element"===s.code)i({issues:s.issues},s.path);else{const e=[...r,...s.path];if(0===e.length){n.errors.push(t(s));continue}let i=n,c=0;for(;c<e.length;){const n=e[c],r=c===e.length-1;"string"==typeof n?(i.properties??(i.properties={}),(o=i.properties)[n]??(o[n]={errors:[]}),i=i.properties[n]):(i.items??(i.items=[]),(a=i.items)[n]??(a[n]={errors:[]}),i=i.items[n]),r&&i.errors.push(t(s)),c++}}};return i(e),n}function ae(e){const t=[],n=e.map(e=>"object"==typeof e?e.key:e);for(const e of n)"number"==typeof e?t.push(`[${e}]`):"symbol"==typeof e?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push("."),t.push(e));return t.join("")}function se(e){const t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(const e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ae(e.path)}`);return t.join("\n")}const ce=e=>(t,n,i,r)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new o;if(s.issues.length){const t=new(r?.Err??e)(s.issues.map(e=>V(e,a,c())));throw _(t,r?.callee),t}return s.value},le=ce(ne),ue=e=>async(t,n,i,r)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const t=new(r?.Err??e)(a.issues.map(e=>V(e,o,c())));throw _(t,r?.callee),t}return a.value},de=ue(ne),pe=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},r);if(a instanceof Promise)throw new o;return a.issues.length?{success:!1,error:new(e??te)(a.issues.map(e=>V(e,r,c())))}:{success:!0,data:a.value}},me=pe(ne),fe=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>V(e,r,c())))}:{success:!0,data:o.value}},he=fe(ne),ge=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ce(e)(t,n,r)},ve=ge(ne),$e=e=>(t,n,i)=>ce(e)(t,n,i),be=$e(ne),ye=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ue(e)(t,n,r)},ke=ye(ne),_e=e=>async(t,n,i)=>ue(e)(t,n,i),xe=_e(ne),we=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return pe(e)(t,n,r)},Ie=we(ne),Se=e=>(t,n,i)=>pe(e)(t,n,i),Ee=Se(ne),Ce=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return fe(e)(t,n,r)},ze=Ce(ne),Oe=e=>async(t,n,i)=>fe(e)(t,n,i),Te=Oe(ne),Ue=/^[cC][^\s-]{8,}$/,Re=/^[0-9a-z]+$/,Ae=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pe=/^[0-9a-vA-V]{20}$/,Ne=/^[A-Za-z0-9]{27}$/,je=/^[a-zA-Z0-9_-]{21}$/,De=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Me=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ze=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Le=Ze(4),qe=Ze(6),Be=Ze(7),Fe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,He=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Ve=He;function Je(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}const We=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ge=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ke=e=>{const t=z(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Xe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ye=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,et=/^[A-Za-z0-9_-]*$/,tt=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,nt=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,it=/^\+[1-9]\d{6,14}$/,rt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ot=new RegExp(`^${rt}$`);function at(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function st(e){return new RegExp(`^${at(e)}$`)}function ct(e){const t=at({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${rt}T(?:${i})$`)}const lt=e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`),ut=/^-?\d+n?$/,dt=/^-?\d+$/,pt=/^-?\d+(?:\.\d+)?$/,mt=/^(?:true|false)$/i,ft=/^null$/i,ht=/^undefined$/i,gt=/^[^A-Z]*$/,vt=/^[^a-z]*$/,$t=/^[0-9a-fA-F]*$/;function bt(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function yt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const kt=bt(22,"=="),_t=yt(22),xt=bt(27,"="),wt=yt(27),It=bt(43,"="),St=yt(43),Et=bt(64,""),Ct=yt(64),zt=bt(86,"=="),Ot=yt(86);var Tt=Object.freeze({__proto__:null,base64:Qe,base64url:et,bigint:ut,boolean:mt,browserEmail:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cidrv4:Xe,cidrv6:Ye,cuid:Ue,cuid2:Re,date:ot,datetime:ct,domain:nt,duration:De,e164:it,email:Fe,emoji:Je,extendedDuration:/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,guid:Me,hex:$t,hostname:tt,html5Email:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,idnEmail:Ve,integer:dt,ipv4:We,ipv6:Ge,ksuid:Ne,lowercase:gt,mac:Ke,md5_base64:kt,md5_base64url:_t,md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:je,null:ft,number:pt,rfc5322Email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,sha1_base64:xt,sha1_base64url:wt,sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:It,sha256_base64url:St,sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Et,sha384_base64url:Ct,sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:zt,sha512_base64url:Ot,sha512_hex:/^[0-9a-fA-F]{128}$/,string:lt,time:st,ulid:Ae,undefined:ht,unicodeEmail:He,uppercase:vt,uuid:Ze,uuid4:Le,uuid6:qe,uuid7:Be,xid:Pe});const Ut=i("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Rt={number:"number",bigint:"bigint",object:"date"},At=i("$ZodCheckLessThan",(e,t)=>{Ut.init(e,t);const n=Rt[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pt=i("$ZodCheckGreaterThan",(e,t)=>{Ut.init(e,t);const n=Rt[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nt=i("$ZodCheckMultipleOf",(e,t)=>{Ut.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===h(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),jt=i("$ZodCheckNumberFormat",(e,t)=>{Ut.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[r,o]=A[t.format];e._zod.onattach.push(e=>{const i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o,n&&(i.pattern=dt)}),e._zod.check=a=>{const s=a.value;if(n){if(!Number.isInteger(s))return void a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}))}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Dt=i("$ZodCheckBigIntFormat",(e,t)=>{Ut.init(e,t);const[n,i]=P[t.format];e._zod.onattach.push(e=>{const r=e._zod.bag;r.format=t.format,r.minimum=n,r.maximum=i}),e._zod.check=r=>{const o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Mt=i("$ZodCheckMaxSize",(e,t)=>{var n;Ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;i.size<=t.maximum||n.issues.push({origin:J(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Zt=i("$ZodCheckMinSize",(e,t)=>{var n;Ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;i.size>=t.minimum||n.issues.push({origin:J(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Lt=i("$ZodCheckSizeEquals",(e,t)=>{var n;Ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{const i=n.value,r=i.size;if(r===t.size)return;const o=r>t.size;n.issues.push({origin:J(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),qt=i("$ZodCheckMaxLength",(e,t)=>{var n;Ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const r=W(i);n.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Bt=i("$ZodCheckMinLength",(e,t)=>{var n;Ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const r=W(i);n.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ft=i("$ZodCheckLengthEquals",(e,t)=>{var n;Ut.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{const i=n.value,r=i.length;if(r===t.length)return;const o=W(i),a=r>t.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ht=i("$ZodCheckStringFormat",(e,t)=>{var n,i;Ut.init(e,t),e._zod.onattach.push(e=>{const n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Vt=i("$ZodCheckRegex",(e,t)=>{Ht.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Jt=i("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gt),Ht.init(e,t)}),Wt=i("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=vt),Ht.init(e,t)}),Gt=i("$ZodCheckIncludes",(e,t)=>{Ut.init(e,t);const n=z(t.includes),i=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Kt=i("$ZodCheckStartsWith",(e,t)=>{Ut.init(e,t);const n=new RegExp(`^${z(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Xt=i("$ZodCheckEndsWith",(e,t)=>{Ut.init(e,t);const n=new RegExp(`.*${z(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Yt(e,t,n){e.issues.length&&t.issues.push(...F(n,e.issues))}const Qt=i("$ZodCheckProperty",(e,t)=>{Ut.init(e,t),e._zod.check=e=>{const n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Yt(n,e,t.property));Yt(n,e,t.property)}}),en=i("$ZodCheckMimeType",(e,t)=>{Ut.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),tn=i("$ZodCheckOverwrite",(e,t)=>{Ut.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class nn{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),i=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of i)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const rn={major:4,minor:3,patch:6},on=i("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rn;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const t of i)for(const n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let i,r=B(e);for(const a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;const t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new o;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s;e.issues.length!==t&&(r||(r=B(e,t)))});else{if(e.issues.length===t)continue;r||(r=B(e,t))}}return i?i.then(()=>e):e},n=(n,r,a)=>{if(B(n))return n.aborted=!0,n;const s=t(r,i,a);if(s instanceof Promise){if(!1===a.async)throw new o;return s.then(t=>e._zod.parse(t,a))}return e._zod.parse(s,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if("backward"===a.direction){const t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}const s=e._zod.parse(r,a);if(s instanceof Promise){if(!1===a.async)throw new o;return s.then(e=>t(e,i,a))}return t(s,i,a)}}v(e,"~standard",()=>({validate:t=>{try{const n=me(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return he(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),an=i("$ZodString",(e,t)=>{on.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??lt(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch(i){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),sn=i("$ZodStringFormat",(e,t)=>{Ht.init(e,t),an.init(e,t)}),cn=i("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Me),sn.init(e,t)}),ln=i("$ZodUUID",(e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ze(e))}else t.pattern??(t.pattern=Ze());sn.init(e,t)}),un=i("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fe),sn.init(e,t)}),dn=i("$ZodURL",(e,t)=>{sn.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=r.href:n.value=i)}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),pn=i("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Je()),sn.init(e,t)}),mn=i("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=je),sn.init(e,t)}),fn=i("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ue),sn.init(e,t)}),hn=i("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Re),sn.init(e,t)}),gn=i("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ae),sn.init(e,t)}),vn=i("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pe),sn.init(e,t)}),$n=i("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ne),sn.init(e,t)}),bn=i("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ct(t)),sn.init(e,t)}),yn=i("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ot),sn.init(e,t)}),kn=i("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=st(t)),sn.init(e,t)}),_n=i("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=De),sn.init(e,t)}),xn=i("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=We),sn.init(e,t),e._zod.bag.format="ipv4"}),wn=i("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ge),sn.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),In=i("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ke(t.delimiter)),sn.init(e,t),e._zod.bag.format="mac"}),Sn=i("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Xe),sn.init(e,t)}),En=i("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ye),sn.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(2!==i.length)throw new Error;const[e,t]=i;if(!t)throw new Error;const n=Number(t);if(`${n}`!==t)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Cn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const zn=i("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Qe),sn.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Cn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function On(e){if(!et.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return Cn(t.padEnd(4*Math.ceil(t.length/4),"="))}const Tn=i("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=et),sn.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{On(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Un=i("$ZodE164",(e,t)=>{t.pattern??(t.pattern=it),sn.init(e,t)});function Rn(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return(!("typ"in r)||"JWT"===r?.typ)&&(!!r.alg&&(!t||"alg"in r&&r.alg===t))}catch{return!1}}const An=i("$ZodJWT",(e,t)=>{sn.init(e,t),e._zod.check=n=>{Rn(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Pn=i("$ZodCustomStringFormat",(e,t)=>{sn.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Nn=i("$ZodNumber",(e,t)=>{on.init(e,t),e._zod.pattern=e._zod.bag.pattern??pt,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const r=n.value;if("number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r))return n;const o="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),jn=i("$ZodNumberFormat",(e,t)=>{jt.init(e,t),Nn.init(e,t)}),Dn=i("$ZodBoolean",(e,t)=>{on.init(e,t),e._zod.pattern=mt,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const r=n.value;return"boolean"==typeof r||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Mn=i("$ZodBigInt",(e,t)=>{on.init(e,t),e._zod.pattern=ut,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Zn=i("$ZodBigIntFormat",(e,t)=>{Dt.init(e,t),Mn.init(e,t)}),Ln=i("$ZodSymbol",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>{const i=t.value;return"symbol"==typeof i||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),qn=i("$ZodUndefined",(e,t)=>{on.init(e,t),e._zod.pattern=ht,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{const i=t.value;return void 0===i||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),Bn=i("$ZodNull",(e,t)=>{on.init(e,t),e._zod.pattern=ft,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const i=t.value;return null===i||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),Fn=i("$ZodAny",(e,t)=>{on.init(e,t),e._zod.parse=e=>e}),Hn=i("$ZodUnknown",(e,t)=>{on.init(e,t),e._zod.parse=e=>e}),Vn=i("$ZodNever",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),Jn=i("$ZodVoid",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>{const i=t.value;return void 0===i||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),Wn=i("$ZodDate",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}const r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Gn(e,t,n){e.issues.length&&t.issues.push(...F(n,e.issues)),t.value[n]=e.value}const Kn=i("$ZodArray",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let e=0;e<r.length;e++){const a=r[e],s=t.element._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(t=>Gn(t,n,e))):Gn(s,n,e)}return o.length?Promise.all(o).then(()=>n):n}});function Xn(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...F(n,e.issues))}void 0===e.value?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Yn(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=R(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Qn(e,t,n,i,r,o){const a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,u="optional"===c.optout;for(const r in t){if(s.has(r))continue;if("never"===l){a.push(r);continue}const o=c.run({value:t[r],issues:[]},i);o instanceof Promise?e.push(o.then(e=>Xn(e,n,r,t,u))):Xn(o,n,r,t,u)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const ei=i("$ZodObject",(e,t)=>{on.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){const e=t.shape;Object.defineProperty(t,"shape",{get:()=>{const n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}const i=p(()=>Yn(t));v(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const i=e[t]._zod;if(i.values){n[t]??(n[t]=new Set);for(const e of i.values)n[t].add(e)}}return n});const r=x,o=t.catchall;let a;e._zod.parse=(t,n)=>{a??(a=i.value);const s=t.value;if(!r(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};const c=[],l=a.shape;for(const e of a.keys){const i=l[e],r="optional"===i._zod.optout,o=i._zod.run({value:s[e],issues:[]},n);o instanceof Promise?c.push(o.then(n=>Xn(n,t,e,s,r))):Xn(o,t,e,s,r)}return o?Qn(c,s,t,n,i.value,e):c.length?Promise.all(c).then(()=>t):t}}),ti=i("$ZodObjectJIT",(e,t)=>{ei.init(e,t);const n=e._zod.parse,i=p(()=>Yn(t));let r;const o=x,a=!s.jitless,c=a&&w.value,l=t.catchall;let u;e._zod.parse=(s,d)=>{u??(u=i.value);const p=s.value;return o(p)?a&&c&&!1===d?.async&&!0!==d.jitless?(r||(r=(e=>{const t=new nn(["shape","payload","ctx"]),n=i.value,r=e=>{const t=y(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const o=Object.create(null);let a=0;for(const e of n.keys)o[e]="key_"+a++;t.write("const newResult = {};");for(const i of n.keys){const n=o[i],a=y(i),s=e[i],c="optional"===s?._zod?.optout;t.write(`const ${n} = ${r(i)};`),c?t.write(`\n if (${n}.issues.length) {\n if (${a} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${a}, ...iss.path] : [${a}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${a} in input) {\n newResult[${a}] = undefined;\n }\n } else {\n newResult[${a}] = ${n}.value;\n }\n \n `):t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${a}, ...iss.path] : [${a}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${a} in input) {\n newResult[${a}] = undefined;\n }\n } else {\n newResult[${a}] = ${n}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");const s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),s=r(s,d),l?Qn([],p,s,d,u,e):s):n(s,d):(s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s)}});function ni(e,t,n,i){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const r=e.filter(e=>!B(e));return 1===r.length?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,i,c())))}),t)}const ii=i("$ZodUnion",(e,t)=>{on.init(e,t),v(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),v(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),v(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),v(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>f(e.source)).join("|")})$`)}});const n=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:r.value,issues:[]},o);if(t instanceof Promise)s.push(t),a=!0;else{if(0===t.issues.length)return t;s.push(t)}}return a?Promise.all(s).then(t=>ni(t,r,e,o)):ni(s,r,e,o)}});function ri(e,t,n,i){const r=e.filter(e=>0===e.issues.length);return 1===r.length?(t.value=r[0].value,t):(0===r.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,i,c())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}const oi=i("$ZodXor",(e,t)=>{ii.init(e,t),t.inclusive=!1;const n=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:r.value,issues:[]},o);t instanceof Promise?(s.push(t),a=!0):s.push(t)}return a?Promise.all(s).then(t=>ri(t,r,e,o)):ri(s,r,e,o)}}),ai=i("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ii.init(e,t);const n=e._zod.parse;v(e._zod,"propValues",()=>{const e={};for(const n of t.options){const i=n._zod.propValues;if(!i||0===Object.keys(i).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(const[t,n]of Object.entries(i)){e[t]||(e[t]=new Set);for(const i of n)e[t].add(i)}}return e});const i=p(()=>{const e=t.options,n=new Map;for(const i of e){const e=i._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const t of e){if(n.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,i)}}return n});e._zod.parse=(r,o)=>{const a=r.value;if(!x(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),si=i("$ZodIntersection",(e,t)=>{on.init(e,t),e._zod.parse=(e,n)=>{const i=e.value,r=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return r instanceof Promise||o instanceof Promise?Promise.all([r,o]).then(([t,n])=>li(e,t,n)):li(e,r,o)}});function ci(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(I(e)&&I(t)){const n=Object.keys(t),i=Object.keys(e).filter(e=>-1!==n.indexOf(e)),r={...e,...t};for(const n of i){const i=ci(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r[n]=i.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const r=ci(e[i],t[i]);if(!r.valid)return{valid:!1,mergeErrorPath:[i,...r.mergeErrorPath]};n.push(r.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function li(e,t,n){const i=new Map;let r;for(const n of t.issues)if("unrecognized_keys"===n.code){r??(r=n);for(const e of n.keys)i.has(e)||i.set(e,{}),i.get(e).l=!0}else e.issues.push(n);for(const t of n.issues)if("unrecognized_keys"===t.code)for(const e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);const o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&r&&e.issues.push({...r,keys:o}),B(e))return e;const a=ci(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const ui=i("$ZodTuple",(e,t)=>{on.init(e,t);const n=t.items;e._zod.parse=(i,r)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],s=[...n].reverse().findIndex(e=>"optional"!==e._zod.optin),c=-1===s?0:n.length-s;if(!t.rest){const t=o.length>n.length,r=o.length<c-1;if(t||r)return i.issues.push({...t?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(const e of n){if(l++,l>=o.length&&l>=c)continue;const t=e._zod.run({value:o[l],issues:[]},r);t instanceof Promise?a.push(t.then(e=>di(e,i,l))):di(t,i,l)}if(t.rest){const e=o.slice(n.length);for(const n of e){l++;const e=t.rest._zod.run({value:n,issues:[]},r);e instanceof Promise?a.push(e.then(e=>di(e,i,l))):di(e,i,l)}}return a.length?Promise.all(a).then(()=>i):i}});function di(e,t,n){e.issues.length&&t.issues.push(...F(n,e.issues)),t.value[n]=e.value}const pi=i("$ZodRecord",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!I(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const o=[],a=t.keyType._zod.values;if(a){n.value={};const s=new Set;for(const e of a)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){s.add("number"==typeof e?e.toString():e);const a=t.valueType._zod.run({value:r[e],issues:[]},i);a instanceof Promise?o.push(a.then(t=>{t.issues.length&&n.issues.push(...F(e,t.issues)),n.value[e]=t.value})):(a.issues.length&&n.issues.push(...F(e,a.issues)),n.value[e]=a.value)}let c;for(const e in r)s.has(e)||(c=c??[],c.push(e));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(const a of Reflect.ownKeys(r)){if("__proto__"===a)continue;let s=t.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof a&&pt.test(a)&&s.issues.length){const e=t.keyType._zod.run({value:Number(a),issues:[]},i);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?n.value[a]=r[a]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>V(e,i,c())),input:a,path:[a],inst:e});continue}const l=t.valueType._zod.run({value:r[a],issues:[]},i);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&n.issues.push(...F(a,e.issues)),n.value[s.value]=e.value})):(l.issues.length&&n.issues.push(...F(a,l.issues)),n.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),mi=i("$ZodMap",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const o=[];n.value=new Map;for(const[a,s]of r){const c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([t,o])=>{fi(t,o,n,a,r,e,i)})):fi(c,l,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function fi(e,t,n,i,r,o,a){e.issues.length&&(E.has(typeof i)?n.issues.push(...F(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(e=>V(e,a,c()))})),t.issues.length&&(E.has(typeof i)?n.issues.push(...F(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(e=>V(e,a,c()))})),n.value.set(e.value,t.value)}const hi=i("$ZodSet",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const o=[];n.value=new Set;for(const e of r){const r=t.valueType._zod.run({value:e,issues:[]},i);r instanceof Promise?o.push(r.then(e=>gi(e,n))):gi(r,n)}return o.length?Promise.all(o).then(()=>n):n}});function gi(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const vi=i("$ZodEnum",(e,t)=>{on.init(e,t);const n=l(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(e=>E.has(typeof e)).map(e=>"string"==typeof e?z(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{const o=t.value;return i.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),$i=i("$ZodLiteral",(e,t)=>{if(on.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?z(e):e?z(e.toString()):String(e)).join("|")})$`),e._zod.parse=(i,r)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),bi=i("$ZodFile",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),yi=i("$ZodTransform",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);const r=t.transform(n.value,n);if(i.async){return(r instanceof Promise?r:Promise.resolve(r)).then(e=>(n.value=e,n))}if(r instanceof Promise)throw new o;return n.value=r,n}});function ki(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const _i=i("$ZodOptional",(e,t)=>{on.init(e,t),e._zod.optin="optional",e._zod.optout="optional",v(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),v(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${f(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(t=>ki(t,e.value)):ki(i,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),xi=i("$ZodExactOptional",(e,t)=>{_i.init(e,t),v(e._zod,"values",()=>t.innerType._zod.values),v(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),wi=i("$ZodNullable",(e,t)=>{on.init(e,t),v(e._zod,"optin",()=>t.innerType._zod.optin),v(e._zod,"optout",()=>t.innerType._zod.optout),v(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${f(e.source)}|null)$`):void 0}),v(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),Ii=i("$ZodDefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Si(e,t)):Si(i,t)}});function Si(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Ei=i("$ZodPrefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Ci=i("$ZodNonOptional",(e,t)=>{on.init(e,t),v(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,i)=>{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(t=>zi(t,e)):zi(r,e)}});function zi(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Oi=i("$ZodSuccess",(e,t)=>{on.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new a("ZodSuccess");const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===i.issues.length,e)}}),Ti=i("$ZodCatch",(e,t)=>{on.init(e,t),v(e._zod,"optin",()=>t.innerType._zod.optin),v(e._zod,"optout",()=>t.innerType._zod.optout),v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>V(e,n,c()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>V(e,n,c()))},input:e.value}),e.issues=[]),e)}}),Ui=i("$ZodNaN",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Ri=i("$ZodPipe",(e,t)=>{on.init(e,t),v(e._zod,"values",()=>t.in._zod.values),v(e._zod,"optin",()=>t.in._zod.optin),v(e._zod,"optout",()=>t.out._zod.optout),v(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){const i=t.out._zod.run(e,n);return i instanceof Promise?i.then(e=>Ai(e,t.in,n)):Ai(i,t.in,n)}const i=t.in._zod.run(e,n);return i instanceof Promise?i.then(e=>Ai(e,t.out,n)):Ai(i,t.out,n)}});function Ai(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Pi=i("$ZodCodec",(e,t)=>{on.init(e,t),v(e._zod,"values",()=>t.in._zod.values),v(e._zod,"optin",()=>t.in._zod.optin),v(e._zod,"optout",()=>t.out._zod.optout),v(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){const i=t.in._zod.run(e,n);return i instanceof Promise?i.then(e=>Ni(e,t,n)):Ni(i,t,n)}{const i=t.out._zod.run(e,n);return i instanceof Promise?i.then(e=>Ni(e,t,n)):Ni(i,t,n)}}});function Ni(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){const i=t.transform(e.value,e);return i instanceof Promise?i.then(i=>ji(e,i,t.out,n)):ji(e,i,t.out,n)}{const i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(i=>ji(e,i,t.in,n)):ji(e,i,t.in,n)}}function ji(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}const Di=i("$ZodReadonly",(e,t)=>{on.init(e,t),v(e._zod,"propValues",()=>t.innerType._zod.propValues),v(e._zod,"values",()=>t.innerType._zod.values),v(e._zod,"optin",()=>t.innerType?._zod?.optin),v(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(Mi):Mi(i)}});function Mi(e){return e.value=Object.freeze(e.value),e}const Zi=i("$ZodTemplateLiteral",(e,t)=>{on.init(e,t);const n=[];for(const e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);const t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${e._zod.traits}`);const i=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,r))}else{if(null!==e&&!C.has(typeof e))throw new Error(`Invalid template literal part: ${e}`);n.push(z(`${e}`))}e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(n,i)=>"string"!=typeof n.value?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Li=i("$ZodFunction",(e,t)=>(on.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw new Error("implement() must be called with a function");return function(...n){const i=e._def.input?le(e._def.input,n):n,r=Reflect.apply(t,this,i);return e._def.output?le(e._def.output,r):r}},e.implementAsync=t=>{if("function"!=typeof t)throw new Error("implementAsync() must be called with a function");return async function(...n){const i=e._def.input?await de(e._def.input,n):n,r=await Reflect.apply(t,this,i);return e._def.output?await de(e._def.output,r):r}},e._zod.parse=(t,n)=>{if("function"!=typeof t.value)return t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}),t;const i=e._def.output&&"promise"===e._def.output._zod.def.type;return t.value=i?e.implementAsync(t.value):e.implement(t.value),t},e.input=(...t)=>{const n=e.constructor;return Array.isArray(t[0])?new n({type:"function",input:new ui({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}):new n({type:"function",input:t[0],output:e._def.output})},e.output=t=>new(0,e.constructor)({type:"function",input:e._def.input,output:t}),e)),qi=i("$ZodPromise",(e,t)=>{on.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),Bi=i("$ZodLazy",(e,t)=>{on.init(e,t),v(e._zod,"innerType",()=>t.getter()),v(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),v(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),v(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),v(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Fi=i("$ZodCustom",(e,t)=>{Ut.init(e,t),on.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(t=>Hi(t,n,i,e));Hi(r,n,i,e)}});function Hi(e,t,n,i){if(!e){const e={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(e.params=i._zod.def.params),t.issues.push(K(e))}}const Vi=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}const n={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${r}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${r}`}case"invalid_value":return 1===e.values.length?`مدخلات غير مقبولة: يفترض إدخال ${U(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()} ${i.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${i.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${u(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}};const Ji=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(t){return e[t]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${r}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${r}`}case"invalid_value":return 1===e.values.length?`Yanlış dəyər: gözlənilən ${U(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()} ${i.unit??"element"}`:`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${i.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${e.keys.length>1?"lar":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış açar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}};function Wi(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:1===o?t:o>=2&&o<=4?n:i}const Gi=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(t){return e[t]??null}const n={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${r}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${r}`}case"invalid_value":return 1===e.values.length?`Няправільны ўвод: чакалася ${U(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);if(i){const t=Wi(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${i.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);if(i){const t=Wi(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${i.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:"ends_with"===t.format?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:"includes"===t.format?`Няправільны радок: павінен змяшчаць "${t.includes}"`:"regex"===t.format?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${u(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}};const Ki=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(t){return e[t]??null}const n={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${r}`:`Невалиден вход: очакван ${t}, получен ${r}`}case"invalid_value":return 1===e.values.length?`Невалиден вход: очакван ${U(e.values[0])}`:`Невалидна опция: очаквано едно от ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Твърде голямо: очаква се ${e.origin??"стойност"} да съдържа ${n}${e.maximum.toString()} ${i.unit??"елемента"}`:`Твърде голямо: очаква се ${e.origin??"стойност"} да бъде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${i.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;if("starts_with"===t.format)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if("ends_with"===t.format)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if("includes"===t.format)return`Невалиден низ: трябва да включва "${t.includes}"`;if("regex"===t.format)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let i="Невалиден";return"emoji"===t.format&&(i="Невалидно"),"datetime"===t.format&&(i="Невалидно"),"date"===t.format&&(i="Невалидна"),"time"===t.format&&(i="Невалидно"),"duration"===t.format&&(i="Невалидна"),`${i} ${n[t.format]??e.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case"unrecognized_keys":return`Неразпознат${e.keys.length>1?"и":""} ключ${e.keys.length>1?"ове":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${e.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${e.origin}`}}};const Xi=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}const n={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${r}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${r}`}case"invalid_value":return 1===e.values.length?`Valor invàlid: s'esperava ${U(e.values[0])}`:`Opció invàlida: s'esperava una de ${u(e.values," o ")}`;case"too_big":{const n=e.inclusive?"com a màxim":"menys de",i=t(e.origin);return i?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${n} ${e.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"com a mínim":"més de",i=t(e.origin);return i?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${e.origin}`}}};const Yi=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(t){return e[t]??null}const n={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${r}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${r}`}case"invalid_value":return 1===e.values.length?`Neplatný vstup: očekáváno ${U(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${n}${e.maximum.toString()} ${i.unit??"prvků"}`:`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${n}${e.minimum.toString()} ${i.unit??"prvků"}`:`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${e.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${u(e.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${e.origin}`}}};const Qi=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(t){return e[t]??null}const n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${r}`:`Ugyldigt input: forventede ${t}, fik ${r}`}case"invalid_value":return 1===e.values.length?`Ugyldig værdi: forventede ${U(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin),o=i[e.origin]??e.origin;return r?`For stor: forventede ${o??"value"} ${r.verb} ${n} ${e.maximum.toString()} ${r.unit??"elementer"}`:`For stor: forventede ${o??"value"} havde ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin),o=i[e.origin]??e.origin;return r?`For lille: forventede ${o} ${r.verb} ${n} ${e.minimum.toString()} ${r.unit}`:`For lille: forventede ${o} havde ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: skal starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: skal ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: skal indeholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${e.origin}`;default:return"Ugyldigt input"}}};const er=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(t){return e[t]??null}const n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${r}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${r}`}case"invalid_value":return 1===e.values.length?`Ungültige Eingabe: erwartet ${U(e.values[0])}`:`Ungültige Option: erwartet eine von ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ist`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${e.origin}`}}};const tr=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(t){return e[t]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input);return`Invalid input: expected ${t}, received ${i[n]??n}`}case"invalid_value":return 1===e.values.length?`Invalid input: expected ${U(e.values[0])}`:`Invalid option: expected one of ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Too big: expected ${e.origin??"value"} to have ${n}${e.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${i.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}};function nr(){return{localeError:tr()}}const ir=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(t){return e[t]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${r}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${r}`}case"invalid_value":return 1===e.values.length?`Nevalida enigo: atendiĝis ${U(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${n}${e.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${i.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}};const rr=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(t){return e[t]??null}const n={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${r}`:`Entrada inválida: se esperaba ${t}, recibido ${r}`}case"invalid_value":return 1===e.values.length?`Entrada inválida: se esperaba ${U(e.values[0])}`:`Opción inválida: se esperaba una de ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin),o=i[e.origin]??e.origin;return r?`Demasiado grande: se esperaba que ${o??"valor"} tuviera ${n}${e.maximum.toString()} ${r.unit??"elementos"}`:`Demasiado grande: se esperaba que ${o??"valor"} fuera ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin),o=i[e.origin]??e.origin;return r?`Demasiado pequeño: se esperaba que ${o} tuviera ${n}${e.minimum.toString()} ${r.unit}`:`Demasiado pequeño: se esperaba que ${o} fuera ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Cadena inválida: debe comenzar con "${t.prefix}"`:"ends_with"===t.format?`Cadena inválida: debe terminar en "${t.suffix}"`:"includes"===t.format?`Cadena inválida: debe incluir "${t.includes}"`:"regex"===t.format?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[e.origin]??e.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[e.origin]??e.origin}`}}};const or=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}const n={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${r} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${r} دریافت شد`}case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: میبایست ${U(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${u(e.values,"|")} میبود`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} ${i.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} باشد`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${i.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case"invalid_format":{const t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${u(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}};const ar=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(t){return e[t]??null}const n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${r}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${r}`}case"invalid_value":return 1===e.values.length?`Virheellinen syöte: täytyy olla ${U(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Liian suuri: ${i.subject} täytyy olla ${n}${e.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Liian pieni: ${i.subject} täytyy olla ${n}${e.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${u(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};const sr=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}const n={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN",number:"nombre",array:"tableau"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${r} reçu`:`Entrée invalide : ${t} attendu, ${r} reçu`}case"invalid_value":return 1===e.values.length?`Entrée invalide : ${U(e.values[0])} attendu`:`Option invalide : une valeur parmi ${u(e.values,"|")} attendue`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Trop grand : ${e.origin??"valeur"} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"élément(s)"}`:`Trop grand : ${e.origin??"valeur"} doit être ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Trop petit : ${e.origin} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${e.origin} doit être ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${u(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};const cr=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}const n={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${r}`:`Entrée invalide : attendu ${t}, reçu ${r}`}case"invalid_value":return 1===e.values.length?`Entrée invalide : attendu ${U(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"≤":"<",i=t(e.origin);return i?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${n}${e.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"≥":">",i=t(e.origin);return i?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${u(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};const lr=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=t=>t?e[t]:void 0,i=t=>{const i=n(t);return i?i.label:t??e.unknown.label},r=e=>`ה${i(e)}`,o=e=>{const t=n(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},a=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},c={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const n=t.expected,r=c[n??""]??i(n),o=G(t.input),a=c[o]??e[o]?.label??o;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${a}`:`קלט לא תקין: צריך להיות ${r}, התקבל ${a}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${U(t.values[0])}`;const e=t.values.map(e=>U(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;const n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(", ")} או ${n}`}case"too_big":{const e=a(t.origin),n=r(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`}if("array"===t.origin||"set"===t.origin){return`גדול מדי: ${n} ${"set"===t.origin?"צריכה":"צריך"} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`}`.trim()}const i=t.inclusive?"<=":"<",s=o(t.origin??"value");return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${i}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??"גדול"} מדי: ${n} ${s} ${i}${t.maximum.toString()}`}case"too_small":{const e=a(t.origin),n=r(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`}if("array"===t.origin||"set"===t.origin){const i="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){return`קטן מדי: ${n} ${i} להכיל ${t.origin,"לפחות פריט אחד"}`}return`קטן מדי: ${n} ${i} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`}`.trim()}const i=t.inclusive?">=":">",s=o(t.origin??"value");return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${i}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??"קטן"} מדי: ${n} ${s} ${i}${t.minimum.toString()}`}case"invalid_format":{const e=t;if("starts_with"===e.format)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if("ends_with"===e.format)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if("includes"===e.format)return`המחרוזת חייבת לכלול "${e.includes}"`;if("regex"===e.format)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;const n=s[e.format];return`${n?.label??e.format} לא ${"f"===(n?.gender??"m")?"תקינה":"תקין"}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${u(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r(t.origin??"array")}`}}};const ur=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}const n={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${r}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${r}`}case"invalid_value":return 1===e.values.length?`Érvénytelen bemenet: a várt érték ${U(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${n}${e.maximum.toString()} ${i.unit??"elem"}`:`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${i.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${e.origin}`}}};function dr(e,t,n){return 1===Math.abs(e)?t:n}function pr(e){if(!e)return"";const t=e[e.length-1];return e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")}const mr=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(t){return e[t]??null}const n={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${r}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${r}`}case"invalid_value":return 1===e.values.length?`Սխալ մուտքագրում․ սպասվում էր ${U(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);if(i){const t=dr(Number(e.maximum),i.unit.one,i.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${pr(e.origin??"արժեք")} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${pr(e.origin??"արժեք")} լինի ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);if(i){const t=dr(Number(e.minimum),i.unit.one,i.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${pr(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${pr(e.origin)} լինի ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:"ends_with"===t.format?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:"includes"===t.format?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:"regex"===t.format?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${e.keys.length>1?"ներ":""}. ${u(e.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${pr(e.origin)}-ում`;case"invalid_union":default:return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${pr(e.origin)}-ում`}}};const fr=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}const n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${r}`:`Input tidak valid: diharapkan ${t}, diterima ${r}`}case"invalid_value":return 1===e.values.length?`Input tidak valid: diharapkan ${U(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${n}${e.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}};const hr=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(t){return e[t]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${r} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${r} þar sem á að vera ${t}`}case"invalid_value":return 1===e.values.length?`Rangt gildi: gert ráð fyrir ${U(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} hafi ${n}${e.maximum.toString()} ${i.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} sé ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${i.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ógildur strengur: verður að byrja á "${t.prefix}"`:"ends_with"===t.format?`Ógildur strengur: verður að enda á "${t.suffix}"`:"includes"===t.format?`Ógildur strengur: verður að innihalda "${t.includes}"`:"regex"===t.format?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`Óþekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${u(e.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${e.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${e.origin}`}}};const gr=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}const n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${r}`:`Input non valido: atteso ${t}, ricevuto ${r}`}case"invalid_value":return 1===e.values.length?`Input non valido: atteso ${U(e.values[0])}`:`Opzione non valida: atteso uno tra ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Troppo grande: ${e.origin??"valore"} deve avere ${n}${e.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${u(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}};const vr=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}const n={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${r}が入力されました`:`無効な入力: ${t}が期待されましたが、${r}が入力されました`}case"invalid_value":return 1===e.values.length?`無効な入力: ${U(e.values[0])}が期待されました`:`無効な選択: ${u(e.values,"、")}のいずれかである必要があります`;case"too_big":{const n=e.inclusive?"以下である":"より小さい",i=t(e.origin);return i?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${i.unit??"要素"}${n}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${n}必要があります`}case"too_small":{const n=e.inclusive?"以上である":"より大きい",i=t(e.origin);return i?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${i.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${u(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}};const $r=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(t){return e[t]??null}const n={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${r}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${r}`}case"invalid_value":return 1===e.values.length?`არასწორი შეყვანა: მოსალოდნელი ${U(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${u(e.values,"|")}-დან`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:"ends_with"===t.format?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:"includes"===t.format?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:"regex"===t.format?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${e.keys.length>1?"ები":"ი"}: ${u(e.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`}}};const br=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}const n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${r}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${r}`}case"invalid_value":return 1===e.values.length?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${U(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()} ${i.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${i.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${u(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}};function yr(){return{localeError:br()}}const kr=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}const n={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${r}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${r}입니다`}case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${U(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${u(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const n=e.inclusive?"이하":"미만",i="미만"===n?"이어야 합니다":"여야 합니다",r=t(e.origin),o=r?.unit??"요소";return r?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${o} ${n}${i}`:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${n}${i}`}case"too_small":{const n=e.inclusive?"이상":"초과",i="이상"===n?"이어야 합니다":"여야 합니다",r=t(e.origin),o=r?.unit??"요소";return r?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${o} ${n}${i}`:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${n}${i}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${u(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}};const _r=e=>e.charAt(0).toUpperCase()+e.slice(1);function xr(e){const t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||0===n?"many":1===n?"one":"few"}const wr=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,n,i,r){const o=e[t]??null;return null===o?o:{unit:o.unit[n],verb:o.verb[r][i?"inclusive":"notInclusive"]}}const n={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${r}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${r}, o tikėtasi - ${t}`}case"invalid_value":return 1===e.values.length?`Privalo būti ${U(e.values[0])}`:`Privalo būti vienas iš ${u(e.values,"|")} pasirinkimų`;case"too_big":{const n=i[e.origin]??e.origin,r=t(e.origin,xr(Number(e.maximum)),e.inclusive??!1,"smaller");if(r?.verb)return`${_r(n??e.origin??"reikšmė")} ${r.verb} ${e.maximum.toString()} ${r.unit??"elementų"}`;const o=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${_r(n??e.origin??"reikšmė")} turi būti ${o} ${e.maximum.toString()} ${r?.unit}`}case"too_small":{const n=i[e.origin]??e.origin,r=t(e.origin,xr(Number(e.minimum)),e.inclusive??!1,"bigger");if(r?.verb)return`${_r(n??e.origin??"reikšmė")} ${r.verb} ${e.minimum.toString()} ${r.unit??"elementų"}`;const o=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${_r(n??e.origin??"reikšmė")} turi būti ${o} ${e.minimum.toString()} ${r?.unit}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Eilutė privalo prasidėti "${t.prefix}"`:"ends_with"===t.format?`Eilutė privalo pasibaigti "${t.suffix}"`:"includes"===t.format?`Eilutė privalo įtraukti "${t.includes}"`:"regex"===t.format?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${u(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{const t=i[e.origin]??e.origin;return`${_r(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}};const Ir=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}const n={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${r}`:`Грешен внес: се очекува ${t}, примено ${r}`}case"invalid_value":return 1===e.values.length?`Invalid input: expected ${U(e.values[0])}`:`Грешана опција: се очекува една ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${n}${e.maximum.toString()} ${i.unit??"елементи"}`:`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${i.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${u(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}};const Sr=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}const n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${r}`:`Input tidak sah: dijangka ${t}, diterima ${r}`}case"invalid_value":return 1===e.values.length?`Input tidak sah: dijangka ${U(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Terlalu besar: dijangka ${e.origin??"nilai"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Terlalu kecil: dijangka ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${u(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}};const Er=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(t){return e[t]??null}const n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${r}`:`Ongeldige invoer: verwacht ${t}, ontving ${r}`}case"invalid_value":return 1===e.values.length?`Ongeldige invoer: verwacht ${U(e.values[0])}`:`Ongeldige optie: verwacht één van ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin),r="date"===e.origin?"laat":"string"===e.origin?"lang":"groot";return i?`Te ${r}: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${r}: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} is`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin),r="date"===e.origin?"vroeg":"string"===e.origin?"kort":"klein";return i?`Te ${r}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${r}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:"ends_with"===t.format?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:"includes"===t.format?`Ongeldige tekst: moet "${t.includes}" bevatten`:"regex"===t.format?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}};const Cr=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}const n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${r}`:`Ugyldig input: forventet ${t}, fikk ${r}`}case"invalid_value":return 1===e.values.length?`Ugyldig verdi: forventet ${U(e.values[0])}`:`Ugyldig valg: forventet en av ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}};const zr=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(t){return e[t]??null}const n={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${r}`:`Fâsit giren: umulan ${t}, alınan ${r}`}case"invalid_value":return 1===e.values.length?`Fâsit giren: umulan ${U(e.values[0])}`:`Fâsit tercih: mûteberler ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} ${i.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} olmalıydı.`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${i.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};const Or=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}const n={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${r} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${r} ترلاسه شو`}case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${U(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${u(e.values,"|")} څخه وای`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} ${i.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} وي`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${i.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${u(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}};const Tr=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(t){return e[t]??null}const n={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${r}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${r}`}case"invalid_value":return 1===e.values.length?`Nieprawidłowe dane wejściowe: oczekiwano ${U(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.maximum.toString()} ${i.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.minimum.toString()} ${i.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}};const Ur=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}const n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${r}`:`Tipo inválido: esperado ${t}, recebido ${r}`}case"invalid_value":return 1===e.values.length?`Entrada inválida: esperado ${U(e.values[0])}`:`Opção inválida: esperada uma das ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${n}${e.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Chave inválida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${e.origin}`;default:return"Campo inválido"}}};function Rr(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:1===o?t:o>=2&&o<=4?n:i}const Ar=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(t){return e[t]??null}const n={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${r}`:`Неверный ввод: ожидалось ${t}, получено ${r}`}case"invalid_value":return 1===e.values.length?`Неверный ввод: ожидалось ${U(e.values[0])}`:`Неверный вариант: ожидалось одно из ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);if(i){const t=Rr(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);if(i){const t=Rr(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}};const Pr=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}const n={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${r}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${r}`}case"invalid_value":return 1===e.values.length?`Neveljaven vnos: pričakovano ${U(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${n}${e.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${i.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${u(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}};const Nr=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(t){return e[t]??null}const n={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${r}`:`Ogiltig inmatning: förväntat ${t}, fick ${r}`}case"invalid_value":return 1===e.values.length?`Ogiltig inmatning: förväntat ${U(e.values[0])}`:`Ogiltigt val: förväntade en av ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()} ${i.unit??"element"}`:`För stor(t): förväntat ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()} ${i.unit}`:`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${e.origin??"värdet"}`}}};const jr=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}const n={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${r}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${r}`}case"invalid_value":return 1===e.values.length?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${U(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${u(e.values,"|")} இல் ஒன்று`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ${i.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${i.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}};const Dr=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}const n={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${r}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${r}`}case"invalid_value":return 1===e.values.length?`ค่าไม่ถูกต้อง: ควรเป็น ${U(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"ไม่เกิน":"น้อยกว่า",i=t(e.origin);return i?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()} ${i.unit??"รายการ"}`:`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"อย่างน้อย":"มากกว่า",i=t(e.origin);return i?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${i.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${u(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};const Mr=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(t){return e[t]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${r}`:`Geçersiz değer: beklenen ${t}, alınan ${r}`}case"invalid_value":return 1===e.values.length?`Geçersiz değer: beklenen ${U(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Çok büyük: beklenen ${e.origin??"değer"} ${n}${e.maximum.toString()} ${i.unit??"öğe"}`:`Çok büyük: beklenen ${e.origin??"değer"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${i.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} içinde geçersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} içinde geçersiz değer`}}};const Zr=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}const n={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${r}`:`Неправильні вхідні дані: очікується ${t}, отримано ${r}`}case"invalid_value":return 1===e.values.length?`Неправильні вхідні дані: очікується ${U(e.values[0])}`:`Неправильна опція: очікується одне з ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Занадто велике: очікується, що ${e.origin??"значення"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"елементів"}`:`Занадто велике: очікується, що ${e.origin??"значення"} буде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Занадто мале: очікується, що ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}};function Lr(){return{localeError:Zr()}}const qr=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}const n={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${r} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${r} موصول ہوا`}case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${U(e.values[0])} متوقع تھا`:`غلط آپشن: ${u(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`بہت بڑا: ${e.origin??"ویلیو"} کے ${n}${e.maximum.toString()} ${i.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${i.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${u(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}};const Br=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(t){return e[t]??null}const n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${r}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${r}`}case"invalid_value":return 1===e.values.length?`Noto‘g‘ri kirish: kutilgan ${U(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Juda katta: kutilgan ${e.origin??"qiymat"} ${n}${e.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${e.origin??"qiymat"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:"ends_with"===t.format?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:"includes"===t.format?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:"regex"===t.format?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${e.keys.length>1?"lar":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto‘g‘ri`;case"invalid_union":default:return"Noto‘g‘ri kirish";case"invalid_element":return`${e.origin} da noto‘g‘ri qiymat`}}};const Fr=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(t){return e[t]??null}const n={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${r}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${r}`}case"invalid_value":return 1===e.values.length?`Đầu vào không hợp lệ: mong đợi ${U(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"phần tử"}`:`Quá lớn: mong đợi ${e.origin??"giá trị"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Quá nhỏ: mong đợi ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${u(e.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${e.origin}`}}};const Hr=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}const n={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${r}`:`无效输入:期望 ${t},实际接收 ${r}`}case"invalid_value":return 1===e.values.length?`无效输入:期望 ${U(e.values[0])}`:`无效选项:期望以下之一 ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()} ${i.unit??"个元素"}`:`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${i.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}};const Vr=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}const n={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${r}`:`無效的輸入值:預期為 ${t},但收到 ${r}`}case"invalid_value":return 1===e.values.length?`無效的輸入值:預期為 ${U(e.values[0])}`:`無效的選項:預期為以下其中之一 ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()} ${i.unit??"個元素"}`:`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${i.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${u(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}};const Jr=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(t){return e[t]??null}const n={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${r}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${r}`}case"invalid_value":return 1===e.values.length?`Ìbáwọlé aṣìṣe: a ní láti fi ${U(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??"iye"} ${i.verb} ${n}${e.maximum} ${i.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${i.verb} ${n}${e.minimum} ${i.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:"ends_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:"includes"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:"regex"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${u(e.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${e.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${e.origin}`}}};var Wr,Gr=Object.freeze({__proto__:null,ar:function(){return{localeError:Vi()}},az:function(){return{localeError:Ji()}},be:function(){return{localeError:Gi()}},bg:function(){return{localeError:Ki()}},ca:function(){return{localeError:Xi()}},cs:function(){return{localeError:Yi()}},da:function(){return{localeError:Qi()}},de:function(){return{localeError:er()}},en:nr,eo:function(){return{localeError:ir()}},es:function(){return{localeError:rr()}},fa:function(){return{localeError:or()}},fi:function(){return{localeError:ar()}},fr:function(){return{localeError:sr()}},frCA:function(){return{localeError:cr()}},he:function(){return{localeError:lr()}},hu:function(){return{localeError:ur()}},hy:function(){return{localeError:mr()}},id:function(){return{localeError:fr()}},is:function(){return{localeError:hr()}},it:function(){return{localeError:gr()}},ja:function(){return{localeError:vr()}},ka:function(){return{localeError:$r()}},kh:function(){return yr()},km:yr,ko:function(){return{localeError:kr()}},lt:function(){return{localeError:wr()}},mk:function(){return{localeError:Ir()}},ms:function(){return{localeError:Sr()}},nl:function(){return{localeError:Er()}},no:function(){return{localeError:Cr()}},ota:function(){return{localeError:zr()}},pl:function(){return{localeError:Tr()}},ps:function(){return{localeError:Or()}},pt:function(){return{localeError:Ur()}},ru:function(){return{localeError:Ar()}},sl:function(){return{localeError:Pr()}},sv:function(){return{localeError:Nr()}},ta:function(){return{localeError:jr()}},th:function(){return{localeError:Dr()}},tr:function(){return{localeError:Mr()}},ua:function(){return Lr()},uk:Lr,ur:function(){return{localeError:qr()}},uz:function(){return{localeError:Br()}},vi:function(){return{localeError:Fr()}},yo:function(){return{localeError:Jr()}},zhCN:function(){return{localeError:Hr()}},zhTW:function(){return{localeError:Vr()}}});const Kr=Symbol("ZodOutput"),Xr=Symbol("ZodInput");class Yr{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Qr(){return new Yr}(Wr=globalThis).__zod_globalRegistry??(Wr.__zod_globalRegistry=Qr());const eo=globalThis.__zod_globalRegistry;function to(e,t){return new e({type:"string",...T(t)})}function no(e,t){return new e({type:"string",coerce:!0,...T(t)})}function io(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}function ro(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}function oo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}function ao(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}function so(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}function co(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}function lo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}function uo(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}function po(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}function mo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}function fo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}function ho(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}function go(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}function vo(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}function $o(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}function bo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}function yo(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(t)})}function ko(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}function _o(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}function xo(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}function wo(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}function Io(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}function So(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}const Eo={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Co(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}function zo(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}function Oo(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}function To(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}function Uo(e,t){return new e({type:"number",checks:[],...T(t)})}function Ro(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}function Ao(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}function Po(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}function No(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}function jo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}function Do(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}function Mo(e,t){return new e({type:"boolean",...T(t)})}function Zo(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}function Lo(e,t){return new e({type:"bigint",...T(t)})}function qo(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}function Bo(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}function Fo(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}function Ho(e,t){return new e({type:"symbol",...T(t)})}function Vo(e,t){return new e({type:"undefined",...T(t)})}function Jo(e,t){return new e({type:"null",...T(t)})}function Wo(e){return new e({type:"any"})}function Go(e){return new e({type:"unknown"})}function Ko(e,t){return new e({type:"never",...T(t)})}function Xo(e,t){return new e({type:"void",...T(t)})}function Yo(e,t){return new e({type:"date",...T(t)})}function Qo(e,t){return new e({type:"date",coerce:!0,...T(t)})}function ea(e,t){return new e({type:"nan",...T(t)})}function ta(e,t){return new At({check:"less_than",...T(t),value:e,inclusive:!1})}function na(e,t){return new At({check:"less_than",...T(t),value:e,inclusive:!0})}function ia(e,t){return new Pt({check:"greater_than",...T(t),value:e,inclusive:!1})}function ra(e,t){return new Pt({check:"greater_than",...T(t),value:e,inclusive:!0})}function oa(e){return ia(0,e)}function aa(e){return ta(0,e)}function sa(e){return na(0,e)}function ca(e){return ra(0,e)}function la(e,t){return new Nt({check:"multiple_of",...T(t),value:e})}function ua(e,t){return new Mt({check:"max_size",...T(t),maximum:e})}function da(e,t){return new Zt({check:"min_size",...T(t),minimum:e})}function pa(e,t){return new Lt({check:"size_equals",...T(t),size:e})}function ma(e,t){return new qt({check:"max_length",...T(t),maximum:e})}function fa(e,t){return new Bt({check:"min_length",...T(t),minimum:e})}function ha(e,t){return new Ft({check:"length_equals",...T(t),length:e})}function ga(e,t){return new Vt({check:"string_format",format:"regex",...T(t),pattern:e})}function va(e){return new Jt({check:"string_format",format:"lowercase",...T(e)})}function $a(e){return new Wt({check:"string_format",format:"uppercase",...T(e)})}function ba(e,t){return new Gt({check:"string_format",format:"includes",...T(t),includes:e})}function ya(e,t){return new Kt({check:"string_format",format:"starts_with",...T(t),prefix:e})}function ka(e,t){return new Xt({check:"string_format",format:"ends_with",...T(t),suffix:e})}function _a(e,t,n){return new Qt({check:"property",property:e,schema:t,...T(n)})}function xa(e,t){return new en({check:"mime_type",mime:e,...T(t)})}function wa(e){return new tn({check:"overwrite",tx:e})}function Ia(e){return wa(t=>t.normalize(e))}function Sa(){return wa(e=>e.trim())}function Ea(){return wa(e=>e.toLowerCase())}function Ca(){return wa(e=>e.toUpperCase())}function za(){return wa(e=>k(e))}function Oa(e,t,n){return new e({type:"array",element:t,...T(n)})}function Ta(e,t){return new e({type:"file",...T(t)})}function Ua(e,t,n){const i=T(n);i.abort??(i.abort=!0);return new e({type:"custom",check:"custom",fn:t,...i})}function Ra(e,t,n){return new e({type:"custom",check:"custom",fn:t,...T(n)})}function Aa(e){const t=Pa(n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(K(e,n.value,t._zod.def));else{const i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(K(i))}},e(n.value,n)));return t}function Pa(e,t){const n=new Ut({check:"custom",...T(t)});return n._zod.check=e,n}function Na(e){const t=new Ut({check:"describe"});return t._zod.onattach=[t=>{const n=eo.get(t)??{};eo.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function ja(e){const t=new Ut({check:"meta"});return t._zod.onattach=[t=>{const n=eo.get(t)??{};eo.add(t,{...n,...e})}],t._zod.check=()=>{},t}function Da(e,t){const n=T(t);let i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(i=i.map(e=>"string"==typeof e?e.toLowerCase():e),r=r.map(e=>"string"==typeof e?e.toLowerCase():e));const o=new Set(i),a=new Set(r),s=e.Codec??Pi,c=e.Boolean??Dn,l=new s({type:"pipe",in:new(e.String??an)({type:"string",error:n.error}),out:new c({type:"boolean",error:n.error}),transform:(e,t)=>{let i=e;return"sensitive"!==n.case&&(i=i.toLowerCase()),!!o.has(i)||!a.has(i)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:t.value,inst:l,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?i[0]||"true":r[0]||"false",error:n.error});return l}function Ma(e,t,n,i={}){const r=T(i),o={...T(i),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...r};n instanceof RegExp&&(o.pattern=n);return new e(o)}function Za(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??eo,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function La(e,t,n={path:[],schemaPath:[]}){var i;const r=e._zod.def,o=t.seen.get(e);if(o){o.count++;return n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema}const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{const i={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,i);else{const n=a.schema,o=t.processors[r.type];if(!o)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);o(e,t,n,i)}const o=e._zod.parent;o&&(a.ref||(a.ref=o),La(o,t,i),t.seen.get(o).isParent=!0)}const c=t.metadataRegistry.get(e);c&&Object.assign(a.schema,c),"input"===t.io&&Fa(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault;return t.seen.get(e).schema}function qa(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const t of e.seen.entries()){const n=e.metadataRegistry.get(t[0])?.id;if(n){const e=i.get(n);if(e&&e!==t[0])throw new Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(n,t[0])}}const r=t=>{if(t[1].schema.$ref)return;const i=t[1],{ref:r,defId:o}=(t=>{const i="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const n=e.external.registry.get(t[0])?.id,r=e.external.uri??(e=>e);if(n)return{ref:r(n)};const o=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=o,{defId:o,ref:`${r("__shared")}#/${i}/${o}`}}if(t[1]===n)return{ref:"#"};const r=`#/${i}/`,o=t[1].schema.id??"__schema"+e.counter++;return{defId:o,ref:r+o}})(t);i.def={...i.schema},o&&(i.defId=o);const a=i.schema;for(const e in a)delete a[e];a.$ref=r};if("throw"===e.cycles)for(const t of e.seen.entries()){const e=t[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const i=n[1];if(t===n[0]){r(n);continue}if(e.external){const i=e.external.registry.get(n[0])?.id;if(t!==n[0]&&i){r(n);continue}}const o=e.metadataRegistry.get(n[0])?.id;o?r(n):(i.cycle||i.count>1&&"ref"===e.reused)&&r(n)}}function Ba(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=t=>{const n=e.seen.get(t);if(null===n.ref)return;const r=n.def??n.schema,o={...r},a=n.ref;if(n.ref=null,a){i(a);const n=e.seen.get(a),s=n.schema;!s.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Object.assign(r,s):(r.allOf=r.allOf??[],r.allOf.push(s)),Object.assign(r,o);if(t._zod.parent===a)for(const e in r)"$ref"!==e&&"allOf"!==e&&(e in o||delete r[e]);if(s.$ref&&n.def)for(const e in r)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(r[e])===JSON.stringify(n.def[e])&&delete r[e]}const s=t._zod.parent;if(s&&s!==a){i(s);const t=e.seen.get(s);if(t?.schema.$ref&&(r.$ref=t.schema.$ref,t.def))for(const e in r)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(r[e])===JSON.stringify(t.def[e])&&delete r[e]}e.override({zodSchema:t,jsonSchema:r,path:n.path??[]})};for(const t of[...e.seen.entries()].reverse())i(t[0]);const r={};if("draft-2020-12"===e.target?r.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?r.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(n)}Object.assign(r,n.def??n.schema);const o=e.external?.defs??{};for(const t of e.seen.entries()){const e=t[1];e.def&&e.defId&&(o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?r.$defs=o:r.definitions=o);try{const n=JSON.parse(JSON.stringify(r));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:Va(t,"input",e.processors),output:Va(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw new Error("Error converting schema to JSON.")}}function Fa(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return Fa(i.element,n);if("set"===i.type)return Fa(i.valueType,n);if("lazy"===i.type)return Fa(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return Fa(i.innerType,n);if("intersection"===i.type)return Fa(i.left,n)||Fa(i.right,n);if("record"===i.type||"map"===i.type)return Fa(i.keyType,n)||Fa(i.valueType,n);if("pipe"===i.type)return Fa(i.in,n)||Fa(i.out,n);if("object"===i.type){for(const e in i.shape)if(Fa(i.shape[e],n))return!0;return!1}if("union"===i.type){for(const e of i.options)if(Fa(e,n))return!0;return!1}if("tuple"===i.type){for(const e of i.items)if(Fa(e,n))return!0;return!(!i.rest||!Fa(i.rest,n))}return!1}const Ha=(e,t={})=>n=>{const i=Za({...n,processors:t});return La(e,i),qa(i,e),Ba(i,e)},Va=(e,t,n={})=>i=>{const{libraryOptions:r,target:o}=i??{},a=Za({...r??{},target:o,io:t,processors:n});return La(e,a),qa(a,e),Ba(a,e)},Ja={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Wa=(e,t,n,i)=>{const r=n;r.type="string";const{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if("number"==typeof o&&(r.minLength=o),"number"==typeof a&&(r.maxLength=a),s&&(r.format=Ja[s]??s,""===r.format&&delete r.format,"time"===s&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){const e=[...c];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},Ga=(e,t,n,i)=>{const r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof s&&s.includes("int")?r.type="integer":r.type="number","number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),"number"==typeof o&&(r.minimum=o,"number"==typeof u&&"draft-04"!==t.target&&(u>=o?delete r.minimum:delete r.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),"number"==typeof a&&(r.maximum=a,"number"==typeof l&&"draft-04"!==t.target&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),"number"==typeof c&&(r.multipleOf=c)},Ka=(e,t,n,i)=>{n.type="boolean"},Xa=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("BigInt cannot be represented in JSON Schema")},Ya=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Symbols cannot be represented in JSON Schema")},Qa=(e,t,n,i)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},es=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Undefined cannot be represented in JSON Schema")},ts=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Void cannot be represented in JSON Schema")},ns=(e,t,n,i)=>{n.not={}},is=(e,t,n,i)=>{},rs=(e,t,n,i)=>{},os=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Date cannot be represented in JSON Schema")},as=(e,t,n,i)=>{const r=l(e._zod.def.entries);r.every(e=>"number"==typeof e)&&(n.type="number"),r.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=r},ss=(e,t,n,i)=>{const r=e._zod.def,o=[];for(const e of r.values)if(void 0===e){if("throw"===t.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===t.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(e))}else o.push(e);if(0===o.length);else if(1===o.length){const e=o[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else o.every(e=>"number"==typeof e)&&(n.type="number"),o.every(e=>"string"==typeof e)&&(n.type="string"),o.every(e=>"boolean"==typeof e)&&(n.type="boolean"),o.every(e=>null===e)&&(n.type="null"),n.enum=o},cs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("NaN cannot be represented in JSON Schema")},ls=(e,t,n,i)=>{const r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},us=(e,t,n,i)=>{const r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;void 0!==a&&(o.minLength=a),void 0!==s&&(o.maxLength=s),c?1===c.length?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(r,o)},ds=(e,t,n,i)=>{n.type="boolean"},ps=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")},ms=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Function types cannot be represented in JSON Schema")},fs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")},hs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Map cannot be represented in JSON Schema")},gs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Set cannot be represented in JSON Schema")},vs=(e,t,n,i)=>{const r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;"number"==typeof a&&(r.minItems=a),"number"==typeof s&&(r.maxItems=s),r.type="array",r.items=La(o.element,t,{...i,path:[...i.path,"items"]})},$s=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object",r.properties={};const a=o.shape;for(const e in a)r.properties[e]=La(a[e],t,{...i,path:[...i.path,"properties",e]});const s=new Set(Object.keys(a)),c=new Set([...s].filter(e=>{const n=o.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));c.size>0&&(r.required=Array.from(c)),"never"===o.catchall?._zod.def.type?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=La(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)},bs=(e,t,n,i)=>{const r=e._zod.def,o=!1===r.inclusive,a=r.options.map((e,n)=>La(e,t,{...i,path:[...i.path,o?"oneOf":"anyOf",n]}));o?n.oneOf=a:n.anyOf=a},ys=(e,t,n,i)=>{const r=e._zod.def,o=La(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=La(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},ks=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="array";const a="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",c=o.items.map((e,n)=>La(e,t,{...i,path:[...i.path,a,n]})),l=o.rest?La(o.rest,t,{...i,path:[...i.path,s,..."openapi-3.0"===t.target?[o.items.length]:[]]}):null;"draft-2020-12"===t.target?(r.prefixItems=c,l&&(r.items=l)):"openapi-3.0"===t.target?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));const{minimum:u,maximum:d}=e._zod.bag;"number"==typeof u&&(r.minItems=u),"number"==typeof d&&(r.maxItems=d)},_s=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object";const a=o.keyType,s=a._zod.bag,c=s?.patterns;if("loose"===o.mode&&c&&c.size>0){const e=La(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(const t of c)r.patternProperties[t.source]=e}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(r.propertyNames=La(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=La(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const l=a._zod.values;if(l){const e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(r.required=e)}},xs=(e,t,n,i)=>{const r=e._zod.def,o=La(r.innerType,t,i),a=t.seen.get(e);"openapi-3.0"===t.target?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},ws=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType},Is=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Ss=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Es=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);let o;t.seen.get(e).ref=r.innerType;try{o=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},Cs=(e,t,n,i)=>{const r=e._zod.def,o="input"===t.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;La(o,t,i);t.seen.get(e).ref=o},zs=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType,n.readOnly=!0},Os=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType},Ts=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType},Us=(e,t,n,i)=>{const r=e._zod.innerType;La(r,t,i);t.seen.get(e).ref=r},Rs={string:Wa,number:Ga,boolean:Ka,bigint:Xa,symbol:Ya,null:Qa,undefined:es,void:ts,never:ns,any:is,unknown:rs,date:os,enum:as,literal:ss,nan:cs,template_literal:ls,file:us,success:ds,custom:ps,function:ms,transform:fs,map:hs,set:gs,array:vs,object:$s,union:bs,intersection:ys,tuple:ks,record:_s,nullable:xs,nonoptional:ws,default:Is,prefault:Ss,catch:Es,pipe:Cs,readonly:zs,promise:Os,optional:Ts,lazy:Us};function As(e,t){if("_idmap"in e){const n=e,i=Za({...t,processors:Rs}),r={};for(const e of n._idmap.entries()){const[t,n]=e;La(n,i)}const o={},a={registry:n,uri:t?.uri,defs:r};i.external=a;for(const e of n._idmap.entries()){const[t,n]=e;qa(i,n),o[t]=Ba(i,n)}if(Object.keys(r).length>0){const e="draft-2020-12"===i.target?"$defs":"definitions";o.__shared={[e]:r}}return{schemas:o}}const n=Za({...t,processors:Rs});return La(e,n),qa(n,e),Ba(n,e)}var Ps=Object.freeze({__proto__:null}),Ns=Object.freeze({__proto__:null,$ZodAny:Fn,$ZodArray:Kn,$ZodAsyncError:o,$ZodBase64:zn,$ZodBase64URL:Tn,$ZodBigInt:Mn,$ZodBigIntFormat:Zn,$ZodBoolean:Dn,$ZodCIDRv4:Sn,$ZodCIDRv6:En,$ZodCUID:fn,$ZodCUID2:hn,$ZodCatch:Ti,$ZodCheck:Ut,$ZodCheckBigIntFormat:Dt,$ZodCheckEndsWith:Xt,$ZodCheckGreaterThan:Pt,$ZodCheckIncludes:Gt,$ZodCheckLengthEquals:Ft,$ZodCheckLessThan:At,$ZodCheckLowerCase:Jt,$ZodCheckMaxLength:qt,$ZodCheckMaxSize:Mt,$ZodCheckMimeType:en,$ZodCheckMinLength:Bt,$ZodCheckMinSize:Zt,$ZodCheckMultipleOf:Nt,$ZodCheckNumberFormat:jt,$ZodCheckOverwrite:tn,$ZodCheckProperty:Qt,$ZodCheckRegex:Vt,$ZodCheckSizeEquals:Lt,$ZodCheckStartsWith:Kt,$ZodCheckStringFormat:Ht,$ZodCheckUpperCase:Wt,$ZodCodec:Pi,$ZodCustom:Fi,$ZodCustomStringFormat:Pn,$ZodDate:Wn,$ZodDefault:Ii,$ZodDiscriminatedUnion:ai,$ZodE164:Un,$ZodEmail:un,$ZodEmoji:pn,$ZodEncodeError:a,$ZodEnum:vi,$ZodError:te,$ZodExactOptional:xi,$ZodFile:bi,$ZodFunction:Li,$ZodGUID:cn,$ZodIPv4:xn,$ZodIPv6:wn,$ZodISODate:yn,$ZodISODateTime:bn,$ZodISODuration:_n,$ZodISOTime:kn,$ZodIntersection:si,$ZodJWT:An,$ZodKSUID:$n,$ZodLazy:Bi,$ZodLiteral:$i,$ZodMAC:In,$ZodMap:mi,$ZodNaN:Ui,$ZodNanoID:mn,$ZodNever:Vn,$ZodNonOptional:Ci,$ZodNull:Bn,$ZodNullable:wi,$ZodNumber:Nn,$ZodNumberFormat:jn,$ZodObject:ei,$ZodObjectJIT:ti,$ZodOptional:_i,$ZodPipe:Ri,$ZodPrefault:Ei,$ZodPromise:qi,$ZodReadonly:Di,$ZodRealError:ne,$ZodRecord:pi,$ZodRegistry:Yr,$ZodSet:hi,$ZodString:an,$ZodStringFormat:sn,$ZodSuccess:Oi,$ZodSymbol:Ln,$ZodTemplateLiteral:Zi,$ZodTransform:yi,$ZodTuple:ui,$ZodType:on,$ZodULID:gn,$ZodURL:dn,$ZodUUID:ln,$ZodUndefined:qn,$ZodUnion:ii,$ZodUnknown:Hn,$ZodVoid:Jn,$ZodXID:vn,$ZodXor:oi,$brand:r,$constructor:i,$input:Xr,$output:Kr,Doc:nn,JSONSchema:Ps,JSONSchemaGenerator:class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=Za({processors:Rs,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return La(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),qa(this.ctx,e);const n=Ba(this.ctx,e),{"~standard":i,...r}=n;return r}},NEVER:n,TimePrecision:Eo,_any:Wo,_array:Oa,_base64:xo,_base64url:wo,_bigint:Lo,_boolean:Mo,_catch:function(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})},_check:Pa,_cidrv4:ko,_cidrv6:_o,_coercedBigint:qo,_coercedBoolean:Zo,_coercedDate:Qo,_coercedNumber:Ro,_coercedString:no,_cuid:mo,_cuid2:fo,_custom:Ua,_date:Yo,_decode:$e,_decodeAsync:_e,_default:function(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():S(n)}})},_discriminatedUnion:function(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...T(i)})},_e164:Io,_email:io,_emoji:uo,_encode:ge,_encodeAsync:ye,_endsWith:ka,_enum:function(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t;return new e({type:"enum",entries:i,...T(n)})},_file:Ta,_float32:Po,_float64:No,_gt:ia,_gte:ra,_guid:ro,_includes:ba,_int:Ao,_int32:jo,_int64:Bo,_intersection:function(e,t,n){return new e({type:"intersection",left:t,right:n})},_ipv4:$o,_ipv6:bo,_isoDate:zo,_isoDateTime:Co,_isoDuration:To,_isoTime:Oo,_jwt:So,_ksuid:vo,_lazy:function(e,t){return new e({type:"lazy",getter:t})},_length:ha,_literal:function(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(n)})},_lowercase:va,_lt:ta,_lte:na,_mac:yo,_map:function(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...T(i)})},_max:na,_maxLength:ma,_maxSize:ua,_mime:xa,_min:ra,_minLength:fa,_minSize:da,_multipleOf:la,_nan:ea,_nanoid:po,_nativeEnum:function(e,t,n){return new e({type:"enum",entries:t,...T(n)})},_negative:aa,_never:Ko,_nonnegative:ca,_nonoptional:function(e,t,n){return new e({type:"nonoptional",innerType:t,...T(n)})},_nonpositive:sa,_normalize:Ia,_null:Jo,_nullable:function(e,t){return new e({type:"nullable",innerType:t})},_number:Uo,_optional:function(e,t){return new e({type:"optional",innerType:t})},_overwrite:wa,_parse:ce,_parseAsync:ue,_pipe:function(e,t,n){return new e({type:"pipe",in:t,out:n})},_positive:oa,_promise:function(e,t){return new e({type:"promise",innerType:t})},_property:_a,_readonly:function(e,t){return new e({type:"readonly",innerType:t})},_record:function(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...T(i)})},_refine:Ra,_regex:ga,_safeDecode:Se,_safeDecodeAsync:Oe,_safeEncode:we,_safeEncodeAsync:Ce,_safeParse:pe,_safeParseAsync:fe,_set:function(e,t,n){return new e({type:"set",valueType:t,...T(n)})},_size:pa,_slugify:za,_startsWith:ya,_string:to,_stringFormat:Ma,_stringbool:Da,_success:function(e,t){return new e({type:"success",innerType:t})},_superRefine:Aa,_symbol:Ho,_templateLiteral:function(e,t,n){return new e({type:"template_literal",parts:t,...T(n)})},_toLowerCase:Ea,_toUpperCase:Ca,_transform:function(e,t){return new e({type:"transform",transform:t})},_trim:Sa,_tuple:function(e,t,n,i){const r=n instanceof on;return new e({type:"tuple",items:t,rest:r?n:null,...T(r?i:n)})},_uint32:Do,_uint64:Fo,_ulid:ho,_undefined:Vo,_union:function(e,t,n){return new e({type:"union",options:t,...T(n)})},_unknown:Go,_uppercase:$a,_url:lo,_uuid:oo,_uuidv4:ao,_uuidv6:so,_uuidv7:co,_void:Xo,_xid:go,_xor:function(e,t,n){return new e({type:"union",options:t,inclusive:!1,...T(n)})},clone:O,config:c,createStandardJSONSchemaMethod:Va,createToJSONSchemaMethod:Ha,decode:be,decodeAsync:xe,describe:Na,encode:ve,encodeAsync:ke,extractDefs:qa,finalize:Ba,flattenError:ie,formatError:re,globalConfig:s,globalRegistry:eo,initializeContext:Za,isValidBase64:Cn,isValidBase64URL:On,isValidJWT:Rn,locales:Gr,meta:ja,parse:le,parseAsync:de,prettifyError:se,process:La,regexes:Tt,registry:Qr,safeDecode:Ee,safeDecodeAsync:Te,safeEncode:Ie,safeEncodeAsync:ze,safeParse:me,safeParseAsync:he,toDotPath:ae,toJSONSchema:As,treeifyError:oe,util:Q,version:rn});function js(e){return!!e._zod}function Ds(e,t){if(js(e)){return me(e,t)}return e.safeParse(t)}var Ms=Object.freeze({__proto__:null,endsWith:ka,gt:ia,gte:ra,includes:ba,length:ha,lowercase:va,lt:ta,lte:na,maxLength:ma,maxSize:ua,mime:xa,minLength:fa,minSize:da,multipleOf:la,negative:aa,nonnegative:ca,nonpositive:sa,normalize:Ia,overwrite:wa,positive:oa,property:_a,regex:ga,size:pa,slugify:za,startsWith:ya,toLowerCase:Ea,toUpperCase:Ca,trim:Sa,uppercase:$a});const Zs=i("ZodISODateTime",(e,t)=>{bn.init(e,t),fc.init(e,t)});function Ls(e){return Co(Zs,e)}const qs=i("ZodISODate",(e,t)=>{yn.init(e,t),fc.init(e,t)});function Bs(e){return zo(qs,e)}const Fs=i("ZodISOTime",(e,t)=>{kn.init(e,t),fc.init(e,t)});function Hs(e){return Oo(Fs,e)}const Vs=i("ZodISODuration",(e,t)=>{_n.init(e,t),fc.init(e,t)});function Js(e){return To(Vs,e)}var Ws=Object.freeze({__proto__:null,ZodISODate:qs,ZodISODateTime:Zs,ZodISODuration:Vs,ZodISOTime:Fs,date:Bs,datetime:Ls,duration:Js,time:Hs});const Gs=(e,t)=>{te.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>re(e,t)},flatten:{value:t=>ie(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,d,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,d,2)}},isEmpty:{get:()=>0===e.issues.length}})},Ks=i("ZodError",Gs),Xs=i("ZodError",Gs,{Parent:Error}),Ys=ce(Xs),Qs=ue(Xs),ec=pe(Xs),tc=fe(Xs),nc=ge(Xs),ic=$e(Xs),rc=ye(Xs),oc=_e(Xs),ac=we(Xs),sc=Se(Xs),cc=Ce(Xs),lc=Oe(Xs),uc=i("ZodType",(e,t)=>(on.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Va(e,"input"),output:Va(e,"output")}}),e.toJSONSchema=Ha(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(b(t,{checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>O(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Ys(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ec(e,t,n),e.parseAsync=async(t,n)=>Qs(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>tc(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>nc(e,t,n),e.decode=(t,n)=>ic(e,t,n),e.encodeAsync=async(t,n)=>rc(e,t,n),e.decodeAsync=async(t,n)=>oc(e,t,n),e.safeEncode=(t,n)=>ac(e,t,n),e.safeDecode=(t,n)=>sc(e,t,n),e.safeEncodeAsync=async(t,n)=>cc(e,t,n),e.safeDecodeAsync=async(t,n)=>lc(e,t,n),e.refine=(t,n)=>e.check(id(t,n)),e.superRefine=t=>e.check(rd(t)),e.overwrite=t=>e.check(wa(t)),e.optional=()=>_u(e),e.exactOptional=()=>wu(e),e.nullable=()=>Su(e),e.nullish=()=>_u(Su(e)),e.nonoptional=t=>Ru(e,t),e.array=()=>ql(e),e.or=t=>Gl([e,t]),e.and=t=>tu(e,t),e.transform=t=>Lu(e,yu(t)),e.default=t=>zu(e,t),e.prefault=t=>Tu(e,t),e.catch=t=>ju(e,t),e.pipe=t=>Lu(e,t),e.readonly=()=>Hu(e),e.describe=t=>{const n=e.clone();return eo.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>eo.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return eo.get(e);const n=e.clone();return eo.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),dc=i("_ZodString",(e,t)=>{an.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Wa(e,t,n);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ga(...t)),e.includes=(...t)=>e.check(ba(...t)),e.startsWith=(...t)=>e.check(ya(...t)),e.endsWith=(...t)=>e.check(ka(...t)),e.min=(...t)=>e.check(fa(...t)),e.max=(...t)=>e.check(ma(...t)),e.length=(...t)=>e.check(ha(...t)),e.nonempty=(...t)=>e.check(fa(1,...t)),e.lowercase=t=>e.check(va(t)),e.uppercase=t=>e.check($a(t)),e.trim=()=>e.check(Sa()),e.normalize=(...t)=>e.check(Ia(...t)),e.toLowerCase=()=>e.check(Ea()),e.toUpperCase=()=>e.check(Ca()),e.slugify=()=>e.check(za())}),pc=i("ZodString",(e,t)=>{an.init(e,t),dc.init(e,t),e.email=t=>e.check(io(hc,t)),e.url=t=>e.check(lo(wc,t)),e.jwt=t=>e.check(So(il,t)),e.emoji=t=>e.check(uo(Ec,t)),e.guid=t=>e.check(ro(vc,t)),e.uuid=t=>e.check(oo(bc,t)),e.uuidv4=t=>e.check(ao(bc,t)),e.uuidv6=t=>e.check(so(bc,t)),e.uuidv7=t=>e.check(co(bc,t)),e.nanoid=t=>e.check(po(zc,t)),e.guid=t=>e.check(ro(vc,t)),e.cuid=t=>e.check(mo(Tc,t)),e.cuid2=t=>e.check(fo(Rc,t)),e.ulid=t=>e.check(ho(Pc,t)),e.base64=t=>e.check(xo(Xc,t)),e.base64url=t=>e.check(wo(Qc,t)),e.xid=t=>e.check(go(jc,t)),e.ksuid=t=>e.check(vo(Mc,t)),e.ipv4=t=>e.check($o(Lc,t)),e.ipv6=t=>e.check(bo(Hc,t)),e.cidrv4=t=>e.check(ko(Jc,t)),e.cidrv6=t=>e.check(_o(Gc,t)),e.e164=t=>e.check(Io(tl,t)),e.datetime=t=>e.check(Ls(t)),e.date=t=>e.check(Bs(t)),e.time=t=>e.check(Hs(t)),e.duration=t=>e.check(Js(t))});function mc(e){return to(pc,e)}const fc=i("ZodStringFormat",(e,t)=>{sn.init(e,t),dc.init(e,t)}),hc=i("ZodEmail",(e,t)=>{un.init(e,t),fc.init(e,t)});function gc(e){return io(hc,e)}const vc=i("ZodGUID",(e,t)=>{cn.init(e,t),fc.init(e,t)});function $c(e){return ro(vc,e)}const bc=i("ZodUUID",(e,t)=>{ln.init(e,t),fc.init(e,t)});function yc(e){return oo(bc,e)}function kc(e){return ao(bc,e)}function _c(e){return so(bc,e)}function xc(e){return co(bc,e)}const wc=i("ZodURL",(e,t)=>{dn.init(e,t),fc.init(e,t)});function Ic(e){return lo(wc,e)}function Sc(e){return lo(wc,{protocol:/^https?$/,hostname:nt,...T(e)})}const Ec=i("ZodEmoji",(e,t)=>{pn.init(e,t),fc.init(e,t)});function Cc(e){return uo(Ec,e)}const zc=i("ZodNanoID",(e,t)=>{mn.init(e,t),fc.init(e,t)});function Oc(e){return po(zc,e)}const Tc=i("ZodCUID",(e,t)=>{fn.init(e,t),fc.init(e,t)});function Uc(e){return mo(Tc,e)}const Rc=i("ZodCUID2",(e,t)=>{hn.init(e,t),fc.init(e,t)});function Ac(e){return fo(Rc,e)}const Pc=i("ZodULID",(e,t)=>{gn.init(e,t),fc.init(e,t)});function Nc(e){return ho(Pc,e)}const jc=i("ZodXID",(e,t)=>{vn.init(e,t),fc.init(e,t)});function Dc(e){return go(jc,e)}const Mc=i("ZodKSUID",(e,t)=>{$n.init(e,t),fc.init(e,t)});function Zc(e){return vo(Mc,e)}const Lc=i("ZodIPv4",(e,t)=>{xn.init(e,t),fc.init(e,t)});function qc(e){return $o(Lc,e)}const Bc=i("ZodMAC",(e,t)=>{In.init(e,t),fc.init(e,t)});function Fc(e){return yo(Bc,e)}const Hc=i("ZodIPv6",(e,t)=>{wn.init(e,t),fc.init(e,t)});function Vc(e){return bo(Hc,e)}const Jc=i("ZodCIDRv4",(e,t)=>{Sn.init(e,t),fc.init(e,t)});function Wc(e){return ko(Jc,e)}const Gc=i("ZodCIDRv6",(e,t)=>{En.init(e,t),fc.init(e,t)});function Kc(e){return _o(Gc,e)}const Xc=i("ZodBase64",(e,t)=>{zn.init(e,t),fc.init(e,t)});function Yc(e){return xo(Xc,e)}const Qc=i("ZodBase64URL",(e,t)=>{Tn.init(e,t),fc.init(e,t)});function el(e){return wo(Qc,e)}const tl=i("ZodE164",(e,t)=>{Un.init(e,t),fc.init(e,t)});function nl(e){return Io(tl,e)}const il=i("ZodJWT",(e,t)=>{An.init(e,t),fc.init(e,t)});function rl(e){return So(il,e)}const ol=i("ZodCustomStringFormat",(e,t)=>{Pn.init(e,t),fc.init(e,t)});function al(e,t,n={}){return Ma(ol,e,t,n)}function sl(e){return Ma(ol,"hostname",tt,e)}function cl(e){return Ma(ol,"hex",$t,e)}function ll(e,t){const n=`${e}_${t?.enc??"hex"}`,i=Tt[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return Ma(ol,n,i,t)}const ul=i("ZodNumber",(e,t)=>{Nn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ga(e,t,n),e.gt=(t,n)=>e.check(ia(t,n)),e.gte=(t,n)=>e.check(ra(t,n)),e.min=(t,n)=>e.check(ra(t,n)),e.lt=(t,n)=>e.check(ta(t,n)),e.lte=(t,n)=>e.check(na(t,n)),e.max=(t,n)=>e.check(na(t,n)),e.int=t=>e.check(ml(t)),e.safe=t=>e.check(ml(t)),e.positive=t=>e.check(ia(0,t)),e.nonnegative=t=>e.check(ra(0,t)),e.negative=t=>e.check(ta(0,t)),e.nonpositive=t=>e.check(na(0,t)),e.multipleOf=(t,n)=>e.check(la(t,n)),e.step=(t,n)=>e.check(la(t,n)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function dl(e){return Uo(ul,e)}const pl=i("ZodNumberFormat",(e,t)=>{jn.init(e,t),ul.init(e,t)});function ml(e){return Ao(pl,e)}function fl(e){return Po(pl,e)}function hl(e){return No(pl,e)}function gl(e){return jo(pl,e)}function vl(e){return Do(pl,e)}const $l=i("ZodBoolean",(e,t)=>{Dn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Ka(0,0,t)});function bl(e){return Mo($l,e)}const yl=i("ZodBigInt",(e,t)=>{Mn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Xa(0,e),e.gte=(t,n)=>e.check(ra(t,n)),e.min=(t,n)=>e.check(ra(t,n)),e.gt=(t,n)=>e.check(ia(t,n)),e.gte=(t,n)=>e.check(ra(t,n)),e.min=(t,n)=>e.check(ra(t,n)),e.lt=(t,n)=>e.check(ta(t,n)),e.lte=(t,n)=>e.check(na(t,n)),e.max=(t,n)=>e.check(na(t,n)),e.positive=t=>e.check(ia(BigInt(0),t)),e.negative=t=>e.check(ta(BigInt(0),t)),e.nonpositive=t=>e.check(na(BigInt(0),t)),e.nonnegative=t=>e.check(ra(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(la(t,n));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function kl(e){return Lo(yl,e)}const _l=i("ZodBigIntFormat",(e,t)=>{Zn.init(e,t),yl.init(e,t)});function xl(e){return Bo(_l,e)}function wl(e){return Fo(_l,e)}const Il=i("ZodSymbol",(e,t)=>{Ln.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Ya(0,e)});function Sl(e){return Ho(Il,e)}const El=i("ZodUndefined",(e,t)=>{qn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>es(0,e)});function Cl(e){return Vo(El,e)}const zl=i("ZodNull",(e,t)=>{Bn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Qa(0,e,t)});function Ol(e){return Jo(zl,e)}const Tl=i("ZodAny",(e,t)=>{Fn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function Ul(){return Wo(Tl)}const Rl=i("ZodUnknown",(e,t)=>{Hn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function Al(){return Go(Rl)}const Pl=i("ZodNever",(e,t)=>{Vn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ns(0,0,t)});function Nl(e){return Ko(Pl,e)}const jl=i("ZodVoid",(e,t)=>{Jn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ts(0,e)});function Dl(e){return Xo(jl,e)}const Ml=i("ZodDate",(e,t)=>{Wn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>os(0,e),e.min=(t,n)=>e.check(ra(t,n)),e.max=(t,n)=>e.check(na(t,n));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Zl(e){return Yo(Ml,e)}const Ll=i("ZodArray",(e,t)=>{Kn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>vs(e,t,n,i),e.element=t.element,e.min=(t,n)=>e.check(fa(t,n)),e.nonempty=t=>e.check(fa(1,t)),e.max=(t,n)=>e.check(ma(t,n)),e.length=(t,n)=>e.check(ha(t,n)),e.unwrap=()=>e.element});function ql(e,t){return Oa(Ll,e,t)}function Bl(e){const t=e._zod.def.shape;return mu(Object.keys(t))}const Fl=i("ZodObject",(e,t)=>{ti.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>$s(e,t,n,i),v(e,"shape",()=>t.shape),e.keyof=()=>mu(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Al()}),e.loose=()=>e.clone({...e._zod.def,catchall:Al()}),e.strict=()=>e.clone({...e._zod.def,catchall:Nl()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>D(e,t),e.safeExtend=t=>M(e,t),e.merge=t=>Z(e,t),e.pick=t=>N(e,t),e.omit=t=>j(e,t),e.partial=(...t)=>L(ku,e,t[0]),e.required=(...t)=>q(Uu,e,t[0])});function Hl(e,t){const n={type:"object",shape:e??{},...T(t)};return new Fl(n)}function Vl(e,t){return new Fl({type:"object",shape:e,catchall:Nl(),...T(t)})}function Jl(e,t){return new Fl({type:"object",shape:e,catchall:Al(),...T(t)})}const Wl=i("ZodUnion",(e,t)=>{ii.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>bs(e,t,n,i),e.options=t.options});function Gl(e,t){return new Wl({type:"union",options:e,...T(t)})}const Kl=i("ZodXor",(e,t)=>{Wl.init(e,t),oi.init(e,t),e._zod.processJSONSchema=(t,n,i)=>bs(e,t,n,i),e.options=t.options});function Xl(e,t){return new Kl({type:"union",options:e,inclusive:!1,...T(t)})}const Yl=i("ZodDiscriminatedUnion",(e,t)=>{Wl.init(e,t),ai.init(e,t)});function Ql(e,t,n){return new Yl({type:"union",options:t,discriminator:e,...T(n)})}const eu=i("ZodIntersection",(e,t)=>{si.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ys(e,t,n,i)});function tu(e,t){return new eu({type:"intersection",left:e,right:t})}const nu=i("ZodTuple",(e,t)=>{ui.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ks(e,t,n,i),e.rest=t=>e.clone({...e._zod.def,rest:t})});function iu(e,t,n){const i=t instanceof on;return new nu({type:"tuple",items:e,rest:i?t:null,...T(i?n:t)})}const ru=i("ZodRecord",(e,t)=>{pi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>_s(e,t,n,i),e.keyType=t.keyType,e.valueType=t.valueType});function ou(e,t,n){return new ru({type:"record",keyType:e,valueType:t,...T(n)})}function au(e,t,n){const i=O(e);return i._zod.values=void 0,new ru({type:"record",keyType:i,valueType:t,...T(n)})}function su(e,t,n){return new ru({type:"record",keyType:e,valueType:t,mode:"loose",...T(n)})}const cu=i("ZodMap",(e,t)=>{mi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>hs(0,e),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(da(...t)),e.nonempty=t=>e.check(da(1,t)),e.max=(...t)=>e.check(ua(...t)),e.size=(...t)=>e.check(pa(...t))});function lu(e,t,n){return new cu({type:"map",keyType:e,valueType:t,...T(n)})}const uu=i("ZodSet",(e,t)=>{hi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>gs(0,e),e.min=(...t)=>e.check(da(...t)),e.nonempty=t=>e.check(da(1,t)),e.max=(...t)=>e.check(ua(...t)),e.size=(...t)=>e.check(pa(...t))});function du(e,t){return new uu({type:"set",valueType:e,...T(t)})}const pu=i("ZodEnum",(e,t)=>{vi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>as(e,0,n),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,i)=>{const r={};for(const i of e){if(!n.has(i))throw new Error(`Key ${i} not found in enum`);r[i]=t.entries[i]}return new pu({...t,checks:[],...T(i),entries:r})},e.exclude=(e,i)=>{const r={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete r[t]}return new pu({...t,checks:[],...T(i),entries:r})}});function mu(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new pu({type:"enum",entries:n,...T(t)})}function fu(e,t){return new pu({type:"enum",entries:e,...T(t)})}const hu=i("ZodLiteral",(e,t)=>{$i.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ss(e,t,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gu(e,t){return new hu({type:"literal",values:Array.isArray(e)?e:[e],...T(t)})}const vu=i("ZodFile",(e,t)=>{bi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>us(e,0,n),e.min=(t,n)=>e.check(da(t,n)),e.max=(t,n)=>e.check(ua(t,n)),e.mime=(t,n)=>e.check(xa(Array.isArray(t)?t:[t],n))});function $u(e){return Ta(vu,e)}const bu=i("ZodTransform",(e,t)=>{yi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>fs(0,e),e._zod.parse=(n,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);n.addIssue=i=>{if("string"==typeof i)n.issues.push(K(i,n.value,t));else{const t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(K(t))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(e=>(n.value=e,n)):(n.value=r,n)}});function yu(e){return new bu({type:"transform",transform:e})}const ku=i("ZodOptional",(e,t)=>{_i.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ts(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function _u(e){return new ku({type:"optional",innerType:e})}const xu=i("ZodExactOptional",(e,t)=>{xi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ts(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function wu(e){return new xu({type:"optional",innerType:e})}const Iu=i("ZodNullable",(e,t)=>{wi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>xs(e,t,n,i),e.unwrap=()=>e._zod.def.innerType});function Su(e){return new Iu({type:"nullable",innerType:e})}function Eu(e){return _u(Su(e))}const Cu=i("ZodDefault",(e,t)=>{Ii.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Is(e,t,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function zu(e,t){return new Cu({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():S(t)}})}const Ou=i("ZodPrefault",(e,t)=>{Ei.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ss(e,t,n,i),e.unwrap=()=>e._zod.def.innerType});function Tu(e,t){return new Ou({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():S(t)}})}const Uu=i("ZodNonOptional",(e,t)=>{Ci.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ws(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function Ru(e,t){return new Uu({type:"nonoptional",innerType:e,...T(t)})}const Au=i("ZodSuccess",(e,t)=>{Oi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ds(0,0,t),e.unwrap=()=>e._zod.def.innerType});function Pu(e){return new Au({type:"success",innerType:e})}const Nu=i("ZodCatch",(e,t)=>{Ti.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Es(e,t,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ju(e,t){return new Nu({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}const Du=i("ZodNaN",(e,t)=>{Ui.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>cs(0,e)});function Mu(e){return ea(Du,e)}const Zu=i("ZodPipe",(e,t)=>{Ri.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Cs(e,t,0,i),e.in=t.in,e.out=t.out});function Lu(e,t){return new Zu({type:"pipe",in:e,out:t})}const qu=i("ZodCodec",(e,t)=>{Zu.init(e,t),Pi.init(e,t)});function Bu(e,t,n){return new qu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const Fu=i("ZodReadonly",(e,t)=>{Di.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>zs(e,t,n,i),e.unwrap=()=>e._zod.def.innerType});function Hu(e){return new Fu({type:"readonly",innerType:e})}const Vu=i("ZodTemplateLiteral",(e,t)=>{Zi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ls(e,0,n)});function Ju(e,t){return new Vu({type:"template_literal",parts:e,...T(t)})}const Wu=i("ZodLazy",(e,t)=>{Bi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Us(e,t,0,i),e.unwrap=()=>e._zod.def.getter()});function Gu(e){return new Wu({type:"lazy",getter:e})}const Ku=i("ZodPromise",(e,t)=>{qi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Os(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function Xu(e){return new Ku({type:"promise",innerType:e})}const Yu=i("ZodFunction",(e,t)=>{Li.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ms(0,e)});function Qu(e){return new Yu({type:"function",input:Array.isArray(e?.input)?iu(e?.input):e?.input??ql(Al()),output:e?.output??Al()})}const ed=i("ZodCustom",(e,t)=>{Fi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ps(0,e)});function td(e){const t=new Ut({check:"custom"});return t._zod.check=e,t}function nd(e,t){return Ua(ed,e??(()=>!0),t)}function id(e,t={}){return Ra(ed,e,t)}function rd(e){return Aa(e)}const od=Na,ad=ja;function sd(e,t={}){const n=new ed({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...T(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}const cd=(...e)=>Da({Codec:qu,Boolean:$l,String:pc},...e);function ld(e){const t=Gu(()=>Gl([mc(e),dl(),bl(),Ol(),ql(t),ou(mc(),t)]));return t}function ud(e,t){return Lu(yu(e),t)}const dd={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function pd(e){c({customError:e})}function md(){return c().customError}var fd;fd||(fd={});const hd={...Object.freeze({__proto__:null,ZodAny:Tl,ZodArray:Ll,ZodBase64:Xc,ZodBase64URL:Qc,ZodBigInt:yl,ZodBigIntFormat:_l,ZodBoolean:$l,ZodCIDRv4:Jc,ZodCIDRv6:Gc,ZodCUID:Tc,ZodCUID2:Rc,ZodCatch:Nu,ZodCodec:qu,ZodCustom:ed,ZodCustomStringFormat:ol,ZodDate:Ml,ZodDefault:Cu,ZodDiscriminatedUnion:Yl,ZodE164:tl,ZodEmail:hc,ZodEmoji:Ec,ZodEnum:pu,ZodExactOptional:xu,ZodFile:vu,ZodFunction:Yu,ZodGUID:vc,ZodIPv4:Lc,ZodIPv6:Hc,ZodIntersection:eu,ZodJWT:il,ZodKSUID:Mc,ZodLazy:Wu,ZodLiteral:hu,ZodMAC:Bc,ZodMap:cu,ZodNaN:Du,ZodNanoID:zc,ZodNever:Pl,ZodNonOptional:Uu,ZodNull:zl,ZodNullable:Iu,ZodNumber:ul,ZodNumberFormat:pl,ZodObject:Fl,ZodOptional:ku,ZodPipe:Zu,ZodPrefault:Ou,ZodPromise:Ku,ZodReadonly:Fu,ZodRecord:ru,ZodSet:uu,ZodString:pc,ZodStringFormat:fc,ZodSuccess:Au,ZodSymbol:Il,ZodTemplateLiteral:Vu,ZodTransform:bu,ZodTuple:nu,ZodType:uc,ZodULID:Pc,ZodURL:wc,ZodUUID:bc,ZodUndefined:El,ZodUnion:Wl,ZodUnknown:Rl,ZodVoid:jl,ZodXID:jc,ZodXor:Kl,_ZodString:dc,_default:zu,_function:Qu,any:Ul,array:ql,base64:Yc,base64url:el,bigint:kl,boolean:bl,catch:ju,check:td,cidrv4:Wc,cidrv6:Kc,codec:Bu,cuid:Uc,cuid2:Ac,custom:nd,date:Zl,describe:od,discriminatedUnion:Ql,e164:nl,email:gc,emoji:Cc,enum:mu,exactOptional:wu,file:$u,float32:fl,float64:hl,function:Qu,guid:$c,hash:ll,hex:cl,hostname:sl,httpUrl:Sc,instanceof:sd,int:ml,int32:gl,int64:xl,intersection:tu,ipv4:qc,ipv6:Vc,json:ld,jwt:rl,keyof:Bl,ksuid:Zc,lazy:Gu,literal:gu,looseObject:Jl,looseRecord:su,mac:Fc,map:lu,meta:ad,nan:Mu,nanoid:Oc,nativeEnum:fu,never:Nl,nonoptional:Ru,null:Ol,nullable:Su,nullish:Eu,number:dl,object:Hl,optional:_u,partialRecord:au,pipe:Lu,prefault:Tu,preprocess:ud,promise:Xu,readonly:Hu,record:ou,refine:id,set:du,strictObject:Vl,string:mc,stringFormat:al,stringbool:cd,success:Pu,superRefine:rd,symbol:Sl,templateLiteral:Ju,transform:yu,tuple:iu,uint32:vl,uint64:wl,ulid:Nc,undefined:Cl,union:Gl,unknown:Al,url:Ic,uuid:yc,uuidv4:kc,uuidv6:_c,uuidv7:xc,void:Dl,xid:Dc,xor:Xl}),...Ms,iso:Ws},gd=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function vd(e,t){if(void 0!==e.not){if("object"==typeof e.not&&0===Object.keys(e.not).length)return hd.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==e.unevaluatedItems)throw new Error("unevaluatedItems is not supported");if(void 0!==e.unevaluatedProperties)throw new Error("unevaluatedProperties is not supported");if(void 0!==e.if||void 0!==e.then||void 0!==e.else)throw new Error("Conditional schemas (if/then/else) are not supported");if(void 0!==e.dependentSchemas||void 0!==e.dependentRequired)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return hd.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const i=function(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=e.slice(1).split("/").filter(Boolean);if(0===n.length)return t.rootSchema;const i="draft-2020-12"===t.version?"$defs":"definitions";if(n[0]===i){const i=n[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}(n,t),r=$d(i,t);return t.refs.set(n,r),t.processing.delete(n),r}if(void 0!==e.enum){const n=e.enum;if("openapi-3.0"===t.version&&!0===e.nullable&&1===n.length&&null===n[0])return hd.null();if(0===n.length)return hd.never();if(1===n.length)return hd.literal(n[0]);if(n.every(e=>"string"==typeof e))return hd.enum(n);const i=n.map(e=>hd.literal(e));return i.length<2?i[0]:hd.union([i[0],i[1],...i.slice(2)])}if(void 0!==e.const)return hd.literal(e.const);const n=e.type;if(Array.isArray(n)){const i=n.map(n=>vd({...e,type:n},t));return 0===i.length?hd.never():1===i.length?i[0]:hd.union(i)}if(!n)return hd.any();let i;switch(n){case"string":{let t=hd.string();if(e.format){const n=e.format;"email"===n?t=t.check(hd.email()):"uri"===n||"uri-reference"===n?t=t.check(hd.url()):"uuid"===n||"guid"===n?t=t.check(hd.uuid()):"date-time"===n?t=t.check(hd.iso.datetime()):"date"===n?t=t.check(hd.iso.date()):"time"===n?t=t.check(hd.iso.time()):"duration"===n?t=t.check(hd.iso.duration()):"ipv4"===n?t=t.check(hd.ipv4()):"ipv6"===n?t=t.check(hd.ipv6()):"mac"===n?t=t.check(hd.mac()):"cidr"===n?t=t.check(hd.cidrv4()):"cidr-v6"===n?t=t.check(hd.cidrv6()):"base64"===n?t=t.check(hd.base64()):"base64url"===n?t=t.check(hd.base64url()):"e164"===n?t=t.check(hd.e164()):"jwt"===n?t=t.check(hd.jwt()):"emoji"===n?t=t.check(hd.emoji()):"nanoid"===n?t=t.check(hd.nanoid()):"cuid"===n?t=t.check(hd.cuid()):"cuid2"===n?t=t.check(hd.cuid2()):"ulid"===n?t=t.check(hd.ulid()):"xid"===n?t=t.check(hd.xid()):"ksuid"===n&&(t=t.check(hd.ksuid()))}"number"==typeof e.minLength&&(t=t.min(e.minLength)),"number"==typeof e.maxLength&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),i=t;break}case"number":case"integer":{let t="integer"===n?hd.number().int():hd.number();"number"==typeof e.minimum&&(t=t.min(e.minimum)),"number"==typeof e.maximum&&(t=t.max(e.maximum)),"number"==typeof e.exclusiveMinimum?t=t.gt(e.exclusiveMinimum):!0===e.exclusiveMinimum&&"number"==typeof e.minimum&&(t=t.gt(e.minimum)),"number"==typeof e.exclusiveMaximum?t=t.lt(e.exclusiveMaximum):!0===e.exclusiveMaximum&&"number"==typeof e.maximum&&(t=t.lt(e.maximum)),"number"==typeof e.multipleOf&&(t=t.multipleOf(e.multipleOf)),i=t;break}case"boolean":i=hd.boolean();break;case"null":i=hd.null();break;case"object":{const n={},r=e.properties||{},o=new Set(e.required||[]);for(const[e,i]of Object.entries(r)){const r=$d(i,t);n[e]=o.has(e)?r:r.optional()}if(e.propertyNames){const r=$d(e.propertyNames,t),o=e.additionalProperties&&"object"==typeof e.additionalProperties?$d(e.additionalProperties,t):hd.any();if(0===Object.keys(n).length){i=hd.record(r,o);break}const a=hd.object(n).passthrough(),s=hd.looseRecord(r,o);i=hd.intersection(a,s);break}if(e.patternProperties){const r=e.patternProperties,o=Object.keys(r),a=[];for(const e of o){const n=$d(r[e],t),i=hd.string().regex(new RegExp(e));a.push(hd.looseRecord(i,n))}const s=[];if(Object.keys(n).length>0&&s.push(hd.object(n).passthrough()),s.push(...a),0===s.length)i=hd.object({}).passthrough();else if(1===s.length)i=s[0];else{let e=hd.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=hd.intersection(e,s[t]);i=e}break}const a=hd.object(n);i=!1===e.additionalProperties?a.strict():"object"==typeof e.additionalProperties?a.catchall($d(e.additionalProperties,t)):a.passthrough();break}case"array":{const n=e.prefixItems,r=e.items;if(n&&Array.isArray(n)){const o=n.map(e=>$d(e,t)),a=r&&"object"==typeof r&&!Array.isArray(r)?$d(r,t):void 0;i=a?hd.tuple(o).rest(a):hd.tuple(o),"number"==typeof e.minItems&&(i=i.check(hd.minLength(e.minItems))),"number"==typeof e.maxItems&&(i=i.check(hd.maxLength(e.maxItems)))}else if(Array.isArray(r)){const n=r.map(e=>$d(e,t)),o=e.additionalItems&&"object"==typeof e.additionalItems?$d(e.additionalItems,t):void 0;i=o?hd.tuple(n).rest(o):hd.tuple(n),"number"==typeof e.minItems&&(i=i.check(hd.minLength(e.minItems))),"number"==typeof e.maxItems&&(i=i.check(hd.maxLength(e.maxItems)))}else if(void 0!==r){const n=$d(r,t);let o=hd.array(n);"number"==typeof e.minItems&&(o=o.min(e.minItems)),"number"==typeof e.maxItems&&(o=o.max(e.maxItems)),i=o}else i=hd.array(hd.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),void 0!==e.default&&(i=i.default(e.default)),i}function $d(e,t){if("boolean"==typeof e)return e?hd.any():hd.never();let n=vd(e,t);const i=e.type||void 0!==e.enum||void 0!==e.const;if(e.anyOf&&Array.isArray(e.anyOf)){const r=e.anyOf.map(e=>$d(e,t)),o=hd.union(r);n=i?hd.intersection(n,o):o}if(e.oneOf&&Array.isArray(e.oneOf)){const r=e.oneOf.map(e=>$d(e,t)),o=hd.xor(r);n=i?hd.intersection(n,o):o}if(e.allOf&&Array.isArray(e.allOf))if(0===e.allOf.length)n=i?n:hd.any();else{let r=i?n:$d(e.allOf[0],t);for(let n=i?0:1;n<e.allOf.length;n++)r=hd.intersection(r,$d(e.allOf[n],t));n=r}!0===e.nullable&&"openapi-3.0"===t.version&&(n=hd.nullable(n)),!0===e.readOnly&&(n=hd.readonly(n));const r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const t of o)t in e&&(r[t]=e[t]);const a=["contentEncoding","contentMediaType","contentSchema"];for(const t of a)t in e&&(r[t]=e[t]);for(const t of Object.keys(e))gd.has(t)||(r[t]=e[t]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function bd(e,t){if("boolean"==typeof e)return e?hd.any():hd.never();const n=function(e,t){const n=e.$schema;return"https://json-schema.org/draft/2020-12/schema"===n?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===n?"draft-7":"http://json-schema.org/draft-04/schema#"===n?"draft-4":t??"draft-2020-12"}(e,t?.defaultTarget);return $d(e,{version:n,defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??eo})}var yd=Object.freeze({__proto__:null,bigint:function(e){return qo(yl,e)},boolean:function(e){return Zo($l,e)},date:function(e){return Qo(Ml,e)},number:function(e){return Ro(ul,e)},string:function(e){return no(pc,e)}});c(nr());var kd=Object.freeze({__proto__:null,$brand:r,$input:Xr,$output:Kr,NEVER:n,TimePrecision:Eo,ZodAny:Tl,ZodArray:Ll,ZodBase64:Xc,ZodBase64URL:Qc,ZodBigInt:yl,ZodBigIntFormat:_l,ZodBoolean:$l,ZodCIDRv4:Jc,ZodCIDRv6:Gc,ZodCUID:Tc,ZodCUID2:Rc,ZodCatch:Nu,ZodCodec:qu,ZodCustom:ed,ZodCustomStringFormat:ol,ZodDate:Ml,ZodDefault:Cu,ZodDiscriminatedUnion:Yl,ZodE164:tl,ZodEmail:hc,ZodEmoji:Ec,ZodEnum:pu,ZodError:Ks,ZodExactOptional:xu,ZodFile:vu,get ZodFirstPartyTypeKind(){return fd},ZodFunction:Yu,ZodGUID:vc,ZodIPv4:Lc,ZodIPv6:Hc,ZodISODate:qs,ZodISODateTime:Zs,ZodISODuration:Vs,ZodISOTime:Fs,ZodIntersection:eu,ZodIssueCode:dd,ZodJWT:il,ZodKSUID:Mc,ZodLazy:Wu,ZodLiteral:hu,ZodMAC:Bc,ZodMap:cu,ZodNaN:Du,ZodNanoID:zc,ZodNever:Pl,ZodNonOptional:Uu,ZodNull:zl,ZodNullable:Iu,ZodNumber:ul,ZodNumberFormat:pl,ZodObject:Fl,ZodOptional:ku,ZodPipe:Zu,ZodPrefault:Ou,ZodPromise:Ku,ZodReadonly:Fu,ZodRealError:Xs,ZodRecord:ru,ZodSet:uu,ZodString:pc,ZodStringFormat:fc,ZodSuccess:Au,ZodSymbol:Il,ZodTemplateLiteral:Vu,ZodTransform:bu,ZodTuple:nu,ZodType:uc,ZodULID:Pc,ZodURL:wc,ZodUUID:bc,ZodUndefined:El,ZodUnion:Wl,ZodUnknown:Rl,ZodVoid:jl,ZodXID:jc,ZodXor:Kl,_ZodString:dc,_default:zu,_function:Qu,any:Ul,array:ql,base64:Yc,base64url:el,bigint:kl,boolean:bl,catch:ju,check:td,cidrv4:Wc,cidrv6:Kc,clone:O,codec:Bu,coerce:yd,config:c,core:Ns,cuid:Uc,cuid2:Ac,custom:nd,date:Zl,decode:ic,decodeAsync:oc,describe:od,discriminatedUnion:Ql,e164:nl,email:gc,emoji:Cc,encode:nc,encodeAsync:rc,endsWith:ka,enum:mu,exactOptional:wu,file:$u,flattenError:ie,float32:fl,float64:hl,formatError:re,fromJSONSchema:bd,function:Qu,getErrorMap:md,globalRegistry:eo,gt:ia,gte:ra,guid:$c,hash:ll,hex:cl,hostname:sl,httpUrl:Sc,includes:ba,instanceof:sd,int:ml,int32:gl,int64:xl,intersection:tu,ipv4:qc,ipv6:Vc,iso:Ws,json:ld,jwt:rl,keyof:Bl,ksuid:Zc,lazy:Gu,length:ha,literal:gu,locales:Gr,looseObject:Jl,looseRecord:su,lowercase:va,lt:ta,lte:na,mac:Fc,map:lu,maxLength:ma,maxSize:ua,meta:ad,mime:xa,minLength:fa,minSize:da,multipleOf:la,nan:Mu,nanoid:Oc,nativeEnum:fu,negative:aa,never:Nl,nonnegative:ca,nonoptional:Ru,nonpositive:sa,normalize:Ia,null:Ol,nullable:Su,nullish:Eu,number:dl,object:Hl,optional:_u,overwrite:wa,parse:Ys,parseAsync:Qs,partialRecord:au,pipe:Lu,positive:oa,prefault:Tu,preprocess:ud,prettifyError:se,promise:Xu,property:_a,readonly:Hu,record:ou,refine:id,regex:ga,regexes:Tt,registry:Qr,safeDecode:sc,safeDecodeAsync:lc,safeEncode:ac,safeEncodeAsync:cc,safeParse:ec,safeParseAsync:tc,set:du,setErrorMap:pd,size:pa,slugify:za,startsWith:ya,strictObject:Vl,string:mc,stringFormat:al,stringbool:cd,success:Pu,superRefine:rd,symbol:Sl,templateLiteral:Ju,toJSONSchema:As,toLowerCase:Ea,toUpperCase:Ca,transform:yu,treeifyError:oe,trim:Sa,tuple:iu,uint32:vl,uint64:wl,ulid:Nc,undefined:Cl,union:Gl,unknown:Al,uppercase:$a,url:Ic,util:Q,uuid:yc,uuidv4:kc,uuidv6:_c,uuidv7:xc,void:Dl,xid:Dc,xor:Xl}),_d=Object.freeze({__proto__:null,$brand:r,$input:Xr,$output:Kr,NEVER:n,TimePrecision:Eo,ZodAny:Tl,ZodArray:Ll,ZodBase64:Xc,ZodBase64URL:Qc,ZodBigInt:yl,ZodBigIntFormat:_l,ZodBoolean:$l,ZodCIDRv4:Jc,ZodCIDRv6:Gc,ZodCUID:Tc,ZodCUID2:Rc,ZodCatch:Nu,ZodCodec:qu,ZodCustom:ed,ZodCustomStringFormat:ol,ZodDate:Ml,ZodDefault:Cu,ZodDiscriminatedUnion:Yl,ZodE164:tl,ZodEmail:hc,ZodEmoji:Ec,ZodEnum:pu,ZodError:Ks,ZodExactOptional:xu,ZodFile:vu,get ZodFirstPartyTypeKind(){return fd},ZodFunction:Yu,ZodGUID:vc,ZodIPv4:Lc,ZodIPv6:Hc,ZodISODate:qs,ZodISODateTime:Zs,ZodISODuration:Vs,ZodISOTime:Fs,ZodIntersection:eu,ZodIssueCode:dd,ZodJWT:il,ZodKSUID:Mc,ZodLazy:Wu,ZodLiteral:hu,ZodMAC:Bc,ZodMap:cu,ZodNaN:Du,ZodNanoID:zc,ZodNever:Pl,ZodNonOptional:Uu,ZodNull:zl,ZodNullable:Iu,ZodNumber:ul,ZodNumberFormat:pl,ZodObject:Fl,ZodOptional:ku,ZodPipe:Zu,ZodPrefault:Ou,ZodPromise:Ku,ZodReadonly:Fu,ZodRealError:Xs,ZodRecord:ru,ZodSet:uu,ZodString:pc,ZodStringFormat:fc,ZodSuccess:Au,ZodSymbol:Il,ZodTemplateLiteral:Vu,ZodTransform:bu,ZodTuple:nu,ZodType:uc,ZodULID:Pc,ZodURL:wc,ZodUUID:bc,ZodUndefined:El,ZodUnion:Wl,ZodUnknown:Rl,ZodVoid:jl,ZodXID:jc,ZodXor:Kl,_ZodString:dc,_default:zu,_function:Qu,any:Ul,array:ql,base64:Yc,base64url:el,bigint:kl,boolean:bl,catch:ju,check:td,cidrv4:Wc,cidrv6:Kc,clone:O,codec:Bu,coerce:yd,config:c,core:Ns,cuid:Uc,cuid2:Ac,custom:nd,date:Zl,decode:ic,decodeAsync:oc,describe:od,discriminatedUnion:Ql,e164:nl,email:gc,emoji:Cc,encode:nc,encodeAsync:rc,endsWith:ka,enum:mu,exactOptional:wu,file:$u,flattenError:ie,float32:fl,float64:hl,formatError:re,fromJSONSchema:bd,function:Qu,getErrorMap:md,globalRegistry:eo,gt:ia,gte:ra,guid:$c,hash:ll,hex:cl,hostname:sl,httpUrl:Sc,includes:ba,instanceof:sd,int:ml,int32:gl,int64:xl,intersection:tu,ipv4:qc,ipv6:Vc,iso:Ws,json:ld,jwt:rl,keyof:Bl,ksuid:Zc,lazy:Gu,length:ha,literal:gu,locales:Gr,looseObject:Jl,looseRecord:su,lowercase:va,lt:ta,lte:na,mac:Fc,map:lu,maxLength:ma,maxSize:ua,meta:ad,mime:xa,minLength:fa,minSize:da,multipleOf:la,nan:Mu,nanoid:Oc,nativeEnum:fu,negative:aa,never:Nl,nonnegative:ca,nonoptional:Ru,nonpositive:sa,normalize:Ia,null:Ol,nullable:Su,nullish:Eu,number:dl,object:Hl,optional:_u,overwrite:wa,parse:Ys,parseAsync:Qs,partialRecord:au,pipe:Lu,positive:oa,prefault:Tu,preprocess:ud,prettifyError:se,promise:Xu,property:_a,readonly:Hu,record:ou,refine:id,regex:ga,regexes:Tt,registry:Qr,safeDecode:sc,safeDecodeAsync:lc,safeEncode:ac,safeEncodeAsync:cc,safeParse:ec,safeParseAsync:tc,set:du,setErrorMap:pd,size:pa,slugify:za,startsWith:ya,strictObject:Vl,string:mc,stringFormat:al,stringbool:cd,success:Pu,superRefine:rd,symbol:Sl,templateLiteral:Ju,toJSONSchema:As,toLowerCase:Ea,toUpperCase:Ca,transform:yu,treeifyError:oe,trim:Sa,tuple:iu,uint32:vl,uint64:wl,ulid:Nc,undefined:Cl,union:Gl,unknown:Al,uppercase:$a,url:Ic,util:Q,uuid:yc,uuidv4:kc,uuidv6:_c,uuidv7:xc,void:Dl,xid:Dc,xor:Xl,z:kd});const xd="io.modelcontextprotocol/related-task",wd="2.0",Id=nd(e=>null!==e&&("object"==typeof e||"function"==typeof e)),Sd=Gl([mc(),dl().int()]),Ed=mc();Jl({ttl:dl().optional(),pollInterval:dl().optional()});const Cd=Hl({ttl:dl().optional()}),zd=Hl({taskId:mc()}),Od=Jl({progressToken:Sd.optional(),[xd]:zd.optional()}),Td=Hl({_meta:Od.optional()}),Ud=Td.extend({task:Cd.optional()}),Rd=Hl({method:mc(),params:Td.loose().optional()}),Ad=Hl({_meta:Od.optional()}),Pd=Hl({method:mc(),params:Ad.loose().optional()}),Nd=Jl({_meta:Od.optional()}),jd=Gl([mc(),dl().int()]),Dd=Hl({jsonrpc:gu(wd),id:jd,...Rd.shape}).strict(),Md=e=>Dd.safeParse(e).success,Zd=Hl({jsonrpc:gu(wd),...Pd.shape}).strict(),Ld=Hl({jsonrpc:gu(wd),id:jd,result:Nd}).strict(),qd=e=>Ld.safeParse(e).success;var Bd;!function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"}(Bd||(Bd={}));const Fd=Hl({jsonrpc:gu(wd),id:jd.optional(),error:Hl({code:dl().int(),message:mc(),data:Al().optional()})}).strict(),Hd=Gl([Dd,Zd,Ld,Fd]);Gl([Ld,Fd]);const Vd=Nd.strict(),Jd=Ad.extend({requestId:jd.optional(),reason:mc().optional()}),Wd=Pd.extend({method:gu("notifications/cancelled"),params:Jd}),Gd=Hl({src:mc(),mimeType:mc().optional(),sizes:ql(mc()).optional(),theme:mu(["light","dark"]).optional()}),Kd=Hl({icons:ql(Gd).optional()}),Xd=Hl({name:mc(),title:mc().optional()}),Yd=Xd.extend({...Xd.shape,...Kd.shape,version:mc(),websiteUrl:mc().optional(),description:mc().optional()}),Qd=tu(Hl({applyDefaults:bl().optional()}),ou(mc(),Al())),ep=ud(e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e,tu(Hl({form:Qd.optional(),url:Id.optional()}),ou(mc(),Al()).optional())),tp=Jl({list:Id.optional(),cancel:Id.optional(),requests:Jl({sampling:Jl({createMessage:Id.optional()}).optional(),elicitation:Jl({create:Id.optional()}).optional()}).optional()}),np=Jl({list:Id.optional(),cancel:Id.optional(),requests:Jl({tools:Jl({call:Id.optional()}).optional()}).optional()}),ip=Hl({experimental:ou(mc(),Id).optional(),sampling:Hl({context:Id.optional(),tools:Id.optional()}).optional(),elicitation:ep.optional(),roots:Hl({listChanged:bl().optional()}).optional(),tasks:tp.optional(),extensions:ou(mc(),Id).optional()}),rp=Td.extend({protocolVersion:mc(),capabilities:ip,clientInfo:Yd}),op=Rd.extend({method:gu("initialize"),params:rp}),ap=Hl({experimental:ou(mc(),Id).optional(),logging:Id.optional(),completions:Id.optional(),prompts:Hl({listChanged:bl().optional()}).optional(),resources:Hl({subscribe:bl().optional(),listChanged:bl().optional()}).optional(),tools:Hl({listChanged:bl().optional()}).optional(),tasks:np.optional(),extensions:ou(mc(),Id).optional()}),sp=Nd.extend({protocolVersion:mc(),capabilities:ap,serverInfo:Yd,instructions:mc().optional()}),cp=Pd.extend({method:gu("notifications/initialized"),params:Ad.optional()}),lp=Rd.extend({method:gu("ping"),params:Td.optional()}),up=Hl({progress:dl(),total:_u(dl()),message:_u(mc())}),dp=Hl({...Ad.shape,...up.shape,progressToken:Sd}),pp=Pd.extend({method:gu("notifications/progress"),params:dp}),mp=Td.extend({cursor:Ed.optional()}),fp=Rd.extend({params:mp.optional()}),hp=Nd.extend({nextCursor:Ed.optional()}),gp=mu(["working","input_required","completed","failed","cancelled"]),vp=Hl({taskId:mc(),status:gp,ttl:Gl([dl(),Ol()]),createdAt:mc(),lastUpdatedAt:mc(),pollInterval:_u(dl()),statusMessage:_u(mc())}),$p=Nd.extend({task:vp}),bp=Ad.merge(vp),yp=Pd.extend({method:gu("notifications/tasks/status"),params:bp}),kp=Rd.extend({method:gu("tasks/get"),params:Td.extend({taskId:mc()})}),_p=Nd.merge(vp),xp=Rd.extend({method:gu("tasks/result"),params:Td.extend({taskId:mc()})});Nd.loose();const wp=fp.extend({method:gu("tasks/list")}),Ip=hp.extend({tasks:ql(vp)}),Sp=Rd.extend({method:gu("tasks/cancel"),params:Td.extend({taskId:mc()})}),Ep=Nd.merge(vp),Cp=Hl({uri:mc(),mimeType:_u(mc()),_meta:ou(mc(),Al()).optional()}),zp=Cp.extend({text:mc()}),Op=mc().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Tp=Cp.extend({blob:Op}),Up=mu(["user","assistant"]),Rp=Hl({audience:ql(Up).optional(),priority:dl().min(0).max(1).optional(),lastModified:Ls({offset:!0}).optional()}),Ap=Hl({...Xd.shape,...Kd.shape,uri:mc(),description:_u(mc()),mimeType:_u(mc()),size:_u(dl()),annotations:Rp.optional(),_meta:_u(Jl({}))}),Pp=Hl({...Xd.shape,...Kd.shape,uriTemplate:mc(),description:_u(mc()),mimeType:_u(mc()),annotations:Rp.optional(),_meta:_u(Jl({}))}),Np=fp.extend({method:gu("resources/list")}),jp=hp.extend({resources:ql(Ap)}),Dp=fp.extend({method:gu("resources/templates/list")}),Mp=hp.extend({resourceTemplates:ql(Pp)}),Zp=Td.extend({uri:mc()}),Lp=Zp,qp=Rd.extend({method:gu("resources/read"),params:Lp}),Bp=Nd.extend({contents:ql(Gl([zp,Tp]))}),Fp=Pd.extend({method:gu("notifications/resources/list_changed"),params:Ad.optional()}),Hp=Zp,Vp=Rd.extend({method:gu("resources/subscribe"),params:Hp}),Jp=Zp,Wp=Rd.extend({method:gu("resources/unsubscribe"),params:Jp}),Gp=Ad.extend({uri:mc()}),Kp=Pd.extend({method:gu("notifications/resources/updated"),params:Gp}),Xp=Hl({name:mc(),description:_u(mc()),required:_u(bl())}),Yp=Hl({...Xd.shape,...Kd.shape,description:_u(mc()),arguments:_u(ql(Xp)),_meta:_u(Jl({}))}),Qp=fp.extend({method:gu("prompts/list")}),em=hp.extend({prompts:ql(Yp)}),tm=Td.extend({name:mc(),arguments:ou(mc(),mc()).optional()}),nm=Rd.extend({method:gu("prompts/get"),params:tm}),im=Hl({type:gu("text"),text:mc(),annotations:Rp.optional(),_meta:ou(mc(),Al()).optional()}),rm=Hl({type:gu("image"),data:Op,mimeType:mc(),annotations:Rp.optional(),_meta:ou(mc(),Al()).optional()}),om=Hl({type:gu("audio"),data:Op,mimeType:mc(),annotations:Rp.optional(),_meta:ou(mc(),Al()).optional()}),am=Hl({type:gu("tool_use"),name:mc(),id:mc(),input:ou(mc(),Al()),_meta:ou(mc(),Al()).optional()}),sm=Hl({type:gu("resource"),resource:Gl([zp,Tp]),annotations:Rp.optional(),_meta:ou(mc(),Al()).optional()}),cm=Ap.extend({type:gu("resource_link")}),lm=Gl([im,rm,om,cm,sm]),um=Hl({role:Up,content:lm}),dm=Nd.extend({description:mc().optional(),messages:ql(um)}),pm=Pd.extend({method:gu("notifications/prompts/list_changed"),params:Ad.optional()}),mm=Hl({title:mc().optional(),readOnlyHint:bl().optional(),destructiveHint:bl().optional(),idempotentHint:bl().optional(),openWorldHint:bl().optional()}),fm=Hl({taskSupport:mu(["required","optional","forbidden"]).optional()}),hm=Hl({...Xd.shape,...Kd.shape,description:mc().optional(),inputSchema:Hl({type:gu("object"),properties:ou(mc(),Id).optional(),required:ql(mc()).optional()}).catchall(Al()),outputSchema:Hl({type:gu("object"),properties:ou(mc(),Id).optional(),required:ql(mc()).optional()}).catchall(Al()).optional(),annotations:mm.optional(),execution:fm.optional(),_meta:ou(mc(),Al()).optional()}),gm=fp.extend({method:gu("tools/list")}),vm=hp.extend({tools:ql(hm)}),$m=Nd.extend({content:ql(lm).default([]),structuredContent:ou(mc(),Al()).optional(),isError:bl().optional()});$m.or(Nd.extend({toolResult:Al()}));const bm=Ud.extend({name:mc(),arguments:ou(mc(),Al()).optional()}),ym=Rd.extend({method:gu("tools/call"),params:bm}),km=Pd.extend({method:gu("notifications/tools/list_changed"),params:Ad.optional()});Hl({autoRefresh:bl().default(!0),debounceMs:dl().int().nonnegative().default(300)});const _m=mu(["debug","info","notice","warning","error","critical","alert","emergency"]),xm=Td.extend({level:_m}),wm=Rd.extend({method:gu("logging/setLevel"),params:xm}),Im=Ad.extend({level:_m,logger:mc().optional(),data:Al()}),Sm=Pd.extend({method:gu("notifications/message"),params:Im}),Em=Hl({name:mc().optional()}),Cm=Hl({hints:ql(Em).optional(),costPriority:dl().min(0).max(1).optional(),speedPriority:dl().min(0).max(1).optional(),intelligencePriority:dl().min(0).max(1).optional()}),zm=Hl({mode:mu(["auto","required","none"]).optional()}),Om=Hl({type:gu("tool_result"),toolUseId:mc().describe("The unique identifier for the corresponding tool call."),content:ql(lm).default([]),structuredContent:Hl({}).loose().optional(),isError:bl().optional(),_meta:ou(mc(),Al()).optional()}),Tm=Ql("type",[im,rm,om]),Um=Ql("type",[im,rm,om,am,Om]),Rm=Hl({role:Up,content:Gl([Um,ql(Um)]),_meta:ou(mc(),Al()).optional()}),Am=Ud.extend({messages:ql(Rm),modelPreferences:Cm.optional(),systemPrompt:mc().optional(),includeContext:mu(["none","thisServer","allServers"]).optional(),temperature:dl().optional(),maxTokens:dl().int(),stopSequences:ql(mc()).optional(),metadata:Id.optional(),tools:ql(hm).optional(),toolChoice:zm.optional()}),Pm=Rd.extend({method:gu("sampling/createMessage"),params:Am}),Nm=Nd.extend({model:mc(),stopReason:_u(mu(["endTurn","stopSequence","maxTokens"]).or(mc())),role:Up,content:Tm}),jm=Nd.extend({model:mc(),stopReason:_u(mu(["endTurn","stopSequence","maxTokens","toolUse"]).or(mc())),role:Up,content:Gl([Um,ql(Um)])}),Dm=Hl({type:gu("boolean"),title:mc().optional(),description:mc().optional(),default:bl().optional()}),Mm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),minLength:dl().optional(),maxLength:dl().optional(),format:mu(["email","uri","date","date-time"]).optional(),default:mc().optional()}),Zm=Hl({type:mu(["number","integer"]),title:mc().optional(),description:mc().optional(),minimum:dl().optional(),maximum:dl().optional(),default:dl().optional()}),Lm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),enum:ql(mc()),default:mc().optional()}),qm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),oneOf:ql(Hl({const:mc(),title:mc()})),default:mc().optional()}),Bm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),enum:ql(mc()),enumNames:ql(mc()).optional(),default:mc().optional()}),Fm=Gl([Lm,qm]),Hm=Gl([Hl({type:gu("array"),title:mc().optional(),description:mc().optional(),minItems:dl().optional(),maxItems:dl().optional(),items:Hl({type:gu("string"),enum:ql(mc())}),default:ql(mc()).optional()}),Hl({type:gu("array"),title:mc().optional(),description:mc().optional(),minItems:dl().optional(),maxItems:dl().optional(),items:Hl({anyOf:ql(Hl({const:mc(),title:mc()}))}),default:ql(mc()).optional()})]),Vm=Gl([Bm,Fm,Hm]),Jm=Gl([Vm,Dm,Mm,Zm]),Wm=Gl([Ud.extend({mode:gu("form").optional(),message:mc(),requestedSchema:Hl({type:gu("object"),properties:ou(mc(),Jm),required:ql(mc()).optional()})}),Ud.extend({mode:gu("url"),message:mc(),elicitationId:mc(),url:mc().url()})]),Gm=Rd.extend({method:gu("elicitation/create"),params:Wm}),Km=Ad.extend({elicitationId:mc()}),Xm=Pd.extend({method:gu("notifications/elicitation/complete"),params:Km}),Ym=Nd.extend({action:mu(["accept","decline","cancel"]),content:ud(e=>null===e?void 0:e,ou(mc(),Gl([mc(),dl(),bl(),ql(mc())])).optional())}),Qm=Hl({type:gu("ref/resource"),uri:mc()}),ef=Hl({type:gu("ref/prompt"),name:mc()}),tf=Td.extend({ref:Gl([ef,Qm]),argument:Hl({name:mc(),value:mc()}),context:Hl({arguments:ou(mc(),mc()).optional()}).optional()}),nf=Rd.extend({method:gu("completion/complete"),params:tf}),rf=Nd.extend({completion:Jl({values:ql(mc()).max(100),total:_u(dl().int()),hasMore:_u(bl())})}),of=Hl({uri:mc().startsWith("file://"),name:mc().optional(),_meta:ou(mc(),Al()).optional()}),af=Rd.extend({method:gu("roots/list"),params:Td.optional()}),sf=Nd.extend({roots:ql(of)}),cf=Pd.extend({method:gu("notifications/roots/list_changed"),params:Ad.optional()});Gl([lp,op,nf,wm,nm,Qp,Np,Dp,qp,Vp,Wp,ym,gm,kp,xp,wp,Sp]),Gl([Wd,pp,cp,cf,yp]),Gl([Vd,Nm,jm,Ym,sf,_p,Ip,$p]),Gl([lp,Pm,Gm,af,kp,xp,wp,Sp]),Gl([Wd,pp,Sm,Kp,Fp,km,pm,yp,Xm]),Gl([Vd,sp,rf,dm,em,jp,Mp,Bp,$m,vm,_p,Ip,$p]);class lf extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,t,n){if(e===Bd.UrlElicitationRequired&&n){const e=n;if(e.elicitations)return new uf(e.elicitations,t)}return new lf(e,t,n)}}class uf extends lf{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(Bd.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}function df(e){return"completed"===e||"failed"===e||"cancelled"===e}function pf(e){const t=function(e){if(!e)return;let t;if(js(e)){const n=e;t=n._zod?.def?.shape}else t=e.shape;if(t){if("function"==typeof t)try{return t()}catch{return}return t}}(e),n=t?.method;if(!n)throw new Error("Schema is missing a method literal");const i=function(e){if(js(e)){const t=e,n=t._zod?.def;if(n){if(void 0!==n.value)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}}const t=e._def;if(t){if(void 0!==t.value)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}const n=e.value;if(void 0!==n)return n}(n);if("string"!=typeof i)throw new Error("Schema method literal must be a string");return i}function mf(e,t){const n=Ds(e,t);if(!n.success)throw n.error;return n.data}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");class ff{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Wd,e=>{this._oncancel(e)}),this.setNotificationHandler(pp,e=>{this._onprogress(e)}),this.setRequestHandler(lp,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(kp,async(e,t)=>{const n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new lf(Bd.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(xp,async(e,t)=>{const n=async()=>{const i=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(i,t.sessionId);){if("response"===e.type||"error"===e.type){const t=e.message,n=t.id,i=this._requestResolvers.get(n);if(i)if(this._requestResolvers.delete(n),"response"===e.type)i(t);else{const e=t;i(new lf(e.error.code,e.error.message,e.error.data))}else{const t="response"===e.type?"Response":"Error";this._onerror(new Error(`${t} handler missing for request ${n}`))}continue}await(this._transport?.send(e.message,{relatedRequestId:t.requestId}))}}const r=await this._taskStore.getTask(i,t.sessionId);if(!r)throw new lf(Bd.InvalidParams,`Task not found: ${i}`);if(!df(r.status))return await this._waitForTaskUpdate(i,t.signal),await n();if(df(r.status)){const e=await this._taskStore.getTaskResult(i,t.sessionId);return this._clearTaskQueue(i),{...e,_meta:{...e._meta,[xd]:{taskId:i}}}}return await n()};return await n()}),this.setRequestHandler(wp,async(e,t)=>{try{const{tasks:n,nextCursor:i}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:i,_meta:{}}}catch(e){throw new lf(Bd.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Sp,async(e,t)=>{try{const n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new lf(Bd.InvalidParams,`Task not found: ${e.params.taskId}`);if(df(n.status))throw new lf(Bd.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,"cancelled","Client cancelled task execution.",t.sessionId),this._clearTaskQueue(e.params.taskId);const i=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!i)throw new lf(Bd.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...i}}catch(e){if(e instanceof lf)throw e;throw new lf(Bd.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;const t=this._requestHandlerAbortControllers.get(e.params.requestId);t?.abort(e.params.reason)}_setupTimeout(e,t,n,i,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:i})}_resetTimeout(e){const t=this._timeoutInfo.get(e);if(!t)return!1;const n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),lf.fromError(Bd.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){const t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;const t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};const n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};const i=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{var n;i?.(e,t),qd(e)||(n=e,Fd.safeParse(n).success)?this._onresponse(e):Md(e)?this._onrequest(e,t):(e=>Zd.safeParse(e).success)(e)?this._onnotification(e):this._onerror(new Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(const e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();const t=lf.fromError(Bd.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){const t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;void 0!==t&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(new Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){const n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,i=this._transport,r=e.params?._meta?.[xd]?.taskId;if(void 0===n){const t={jsonrpc:"2.0",id:e.id,error:{code:Bd.MethodNotFound,message:"Method not found"}};return void(r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:t,timestamp:Date.now()},i?.sessionId).catch(e=>this._onerror(new Error(`Failed to enqueue error response: ${e}`))):i?.send(t).catch(e=>this._onerror(new Error(`Failed to send an error response: ${e}`))))}const o=new AbortController;this._requestHandlerAbortControllers.set(e.id,o);const a=(s=e.params,Ud.safeParse(s).success?e.params.task:void 0);var s;const c=this._taskStore?this.requestTaskStore(e,i?.sessionId):void 0,l={signal:o.signal,sessionId:i?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(o.signal.aborted)return;const n={relatedRequestId:e.id};r&&(n.relatedTask={taskId:r}),await this.notification(t,n)},sendRequest:async(t,n,i)=>{if(o.signal.aborted)throw new lf(Bd.ConnectionClosed,"Request was cancelled");const a={...i,relatedRequestId:e.id};r&&!a.relatedTask&&(a.relatedTask={taskId:r});const s=a.relatedTask?.taskId??r;return s&&c&&await c.updateTaskStatus(s,"input_required"),await this.request(t,n,a)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:r,taskStore:c,taskRequestedTtl:a?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,l)).then(async t=>{if(o.signal.aborted)return;const n={result:t,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:n,timestamp:Date.now()},i?.sessionId):await(i?.send(n))},async t=>{if(o.signal.aborted)return;const n={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:Bd.InternalError,message:t.message??"Internal error",...void 0!==t.data&&{data:t.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:n,timestamp:Date.now()},i?.sessionId):await(i?.send(n))}).catch(e=>this._onerror(new Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===o&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:t,...n}=e.params,i=Number(t),r=this._progressHandlers.get(i);if(!r)return void this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));const o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(e){return this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),void o(e)}r(n)}_onresponse(e){const t=Number(e.id),n=this._requestResolvers.get(t);if(n){if(this._requestResolvers.delete(t),qd(e))n(e);else{n(new lf(e.error.code,e.error.message,e.error.data))}return}const i=this._responseHandlers.get(t);if(void 0===i)return void this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));this._responseHandlers.delete(t),this._cleanupTimeout(t);let r=!1;if(qd(e)&&e.result&&"object"==typeof e.result){const n=e.result;if(n.task&&"object"==typeof n.task){const e=n.task;"string"==typeof e.taskId&&(r=!0,this._taskProgressTokens.set(e.taskId,t))}}if(r||this._progressHandlers.delete(t),qd(e))i(e);else{i(lf.fromError(e.error.code,e.error.message,e.error.data))}}get transport(){return this._transport}async close(){await(this._transport?.close())}async*requestStream(e,t,n){const{task:i}=n??{};if(!i){try{const i=await this.request(e,t,n);yield{type:"result",result:i}}catch(e){yield{type:"error",error:e instanceof lf?e:new lf(Bd.InternalError,String(e))}}return}let r;try{const i=await this.request(e,$p,n);if(!i.task)throw new lf(Bd.InternalError,"Task creation did not return a task");for(r=i.task.taskId,yield{type:"taskCreated",task:i.task};;){const e=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:e},df(e.status)){if("completed"===e.status){const e=await this.getTaskResult({taskId:r},t,n);yield{type:"result",result:e}}else"failed"===e.status?yield{type:"error",error:new lf(Bd.InternalError,`Task ${r} failed`)}:"cancelled"===e.status&&(yield{type:"error",error:new lf(Bd.InternalError,`Task ${r} was cancelled`)});return}if("input_required"===e.status){const e=await this.getTaskResult({taskId:r},t,n);return void(yield{type:"result",result:e})}const i=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,i)),n?.signal?.throwIfAborted()}}catch(e){yield{type:"error",error:e instanceof lf?e:new lf(Bd.InternalError,String(e))}}}request(e,t,n){const{relatedRequestId:i,resumptionToken:r,onresumptiontoken:o,task:a,relatedTask:s}=n??{};return new Promise((c,l)=>{const u=e=>{l(e)};if(!this._transport)return void u(new Error("Not connected"));if(!0===this._options?.enforceStrictCapabilities)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(e){return void u(e)}n?.signal?.throwIfAborted();const d=this._requestMessageId++,p={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),p.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),a&&(p.params={...p.params,task:a}),s&&(p.params={...p.params,_meta:{...p.params?._meta||{},[xd]:s}});const m=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(e)}},{relatedRequestId:i,resumptionToken:r,onresumptiontoken:o}).catch(e=>this._onerror(new Error(`Failed to send cancellation: ${e}`)));const t=e instanceof lf?e:new lf(Bd.RequestTimeout,String(e));l(t)};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{const n=Ds(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener("abort",()=>{m(n?.signal?.reason)});const f=n?.timeout??6e4;this._setupTimeout(d,f,n?.maxTotalTimeout,()=>m(lf.fromError(Bd.RequestTimeout,"Request timed out",{timeout:f})),n?.resetTimeoutOnProgress??!1);const h=s?.taskId;if(h){const e=e=>{const t=this._responseHandlers.get(d);t?t(e):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,e),this._enqueueTaskMessage(h,{type:"request",message:p,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})}else this._transport.send(p,{relatedRequestId:i,resumptionToken:r,onresumptiontoken:o}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:"tasks/get",params:e},_p,t)}async getTaskResult(e,t,n){return this.request({method:"tasks/result",params:e},t,n)}async listTasks(e,t){return this.request({method:"tasks/list",params:e},Ip,t)}async cancelTask(e,t){return this.request({method:"tasks/cancel",params:e},Ep,t)}async notification(e,t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const n=t?.relatedTask?.taskId;if(n){const i={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[xd]:t.relatedTask}}};return void await this._enqueueTaskMessage(n,{type:"notification",message:i,timestamp:Date.now()})}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;return this._pendingDebouncedNotifications.add(e.method),void Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:"2.0"};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[xd]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))})}let i={...e,jsonrpc:"2.0"};t?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[xd]:t.relatedTask}}}),await this._transport.send(i,t)}setRequestHandler(e,t){const n=pf(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,i)=>{const r=mf(e,n);return Promise.resolve(t(r,i))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){const n=pf(e);this._notificationHandlers.set(n,n=>{const i=mf(e,n);return Promise.resolve(t(i))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const t=this._taskProgressTokens.get(e);void 0!==t&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const i=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,i)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){const n=await this._taskMessageQueue.dequeueAll(e,t);for(const t of n)if("request"===t.type&&Md(t.message)){const n=t.message.id,i=this._requestResolvers.get(n);i?(i(new lf(Bd.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(n)):this._onerror(new Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{const t=await(this._taskStore?.getTask(e));t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,i)=>{if(t.aborted)return void i(new lf(Bd.InvalidRequest,"Request cancelled"));const r=setTimeout(e,n);t.addEventListener("abort",()=>{clearTimeout(r),i(new lf(Bd.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,t){const n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async i=>{if(!e)throw new Error("No request provided");return await n.createTask(i,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{const i=await n.getTask(e,t);if(!i)throw new lf(Bd.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(e,i,r)=>{await n.storeTaskResult(e,i,r,t);const o=await n.getTask(e,t);if(o){const t=yp.parse({method:"notifications/tasks/status",params:o});await this.notification(t),df(o.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,i,r)=>{const o=await n.getTask(e,t);if(!o)throw new lf(Bd.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(df(o.status))throw new lf(Bd.InvalidParams,`Cannot update task "${e}" from terminal status "${o.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,i,r,t);const a=await n.getTask(e,t);if(a){const t=yp.parse({method:"notifications/tasks/status",params:a});await this.notification(t),df(a.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}}function hf(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}var gf;gf=function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"&&new Proxy(gf,{get:(e,t)=>(typeof require<"u"?require:e)[t]});class vf extends ff{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let i=n.shape.method.value;this._registeredMethods.add(i);let r=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),r.onHandler?.(n);for(let e of[...r.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let i=n.listeners.indexOf(t);-1!==i&&n.listeners.splice(i,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,"setRequestHandler"),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,"setNotificationHandler"),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}}class $f{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource)return void console.debug("Ignoring message from unknown source",e);let n=Hd.safeParse(e.data);n.success?(console.debug("Parsed message",n.data),this.onmessage?.(n.data)):"2.0"!==e.data?.jsonrpc?console.debug("Ignoring non-JSON-RPC message",n.error.message,e):(console.error("Failed to parse message",n.error.message,e),this.onerror?.(Error("Invalid JSON-RPC message received: "+n.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(e,t){"ui/notifications/tool-input-partial"!==e.method&&console.debug("Sending message",e),this.eventTarget.postMessage(e,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var bf=Gl([gu("light"),gu("dark")]).describe("Color theme preference for the host environment."),yf=Gl([gu("inline"),gu("fullscreen"),gu("pip")]).describe("Display mode for UI presentation."),kf=ou(Gl([gu("--color-background-primary"),gu("--color-background-secondary"),gu("--color-background-tertiary"),gu("--color-background-inverse"),gu("--color-background-ghost"),gu("--color-background-info"),gu("--color-background-danger"),gu("--color-background-success"),gu("--color-background-warning"),gu("--color-background-disabled"),gu("--color-text-primary"),gu("--color-text-secondary"),gu("--color-text-tertiary"),gu("--color-text-inverse"),gu("--color-text-ghost"),gu("--color-text-info"),gu("--color-text-danger"),gu("--color-text-success"),gu("--color-text-warning"),gu("--color-text-disabled"),gu("--color-border-primary"),gu("--color-border-secondary"),gu("--color-border-tertiary"),gu("--color-border-inverse"),gu("--color-border-ghost"),gu("--color-border-info"),gu("--color-border-danger"),gu("--color-border-success"),gu("--color-border-warning"),gu("--color-border-disabled"),gu("--color-ring-primary"),gu("--color-ring-secondary"),gu("--color-ring-inverse"),gu("--color-ring-info"),gu("--color-ring-danger"),gu("--color-ring-success"),gu("--color-ring-warning"),gu("--font-sans"),gu("--font-mono"),gu("--font-weight-normal"),gu("--font-weight-medium"),gu("--font-weight-semibold"),gu("--font-weight-bold"),gu("--font-text-xs-size"),gu("--font-text-sm-size"),gu("--font-text-md-size"),gu("--font-text-lg-size"),gu("--font-heading-xs-size"),gu("--font-heading-sm-size"),gu("--font-heading-md-size"),gu("--font-heading-lg-size"),gu("--font-heading-xl-size"),gu("--font-heading-2xl-size"),gu("--font-heading-3xl-size"),gu("--font-text-xs-line-height"),gu("--font-text-sm-line-height"),gu("--font-text-md-line-height"),gu("--font-text-lg-line-height"),gu("--font-heading-xs-line-height"),gu("--font-heading-sm-line-height"),gu("--font-heading-md-line-height"),gu("--font-heading-lg-line-height"),gu("--font-heading-xl-line-height"),gu("--font-heading-2xl-line-height"),gu("--font-heading-3xl-line-height"),gu("--border-radius-xs"),gu("--border-radius-sm"),gu("--border-radius-md"),gu("--border-radius-lg"),gu("--border-radius-xl"),gu("--border-radius-full"),gu("--border-width-regular"),gu("--shadow-hairline"),gu("--shadow-sm"),gu("--shadow-md"),gu("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."),Gl([mc(),Cl()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");Hl({method:gu("ui/open-link"),params:Hl({url:mc().describe("URL to open in the host's browser")})});var _f=Hl({isError:bl().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),xf=Hl({isError:bl().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),wf=Hl({isError:bl().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();Hl({method:gu("ui/notifications/sandbox-proxy-ready"),params:Hl({})});var If=Hl({connectDomains:ql(mc()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted → no network connections (secure default)"),resourceDomains:ql(mc()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:ql(mc()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:ql(mc()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Sf=Hl({camera:Hl({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:Hl({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:Hl({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:Hl({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});Hl({method:gu("ui/notifications/size-changed"),params:Hl({width:dl().optional().describe("New width in pixels."),height:dl().optional().describe("New height in pixels.")})});var Ef=Hl({method:gu("ui/notifications/tool-input"),params:Hl({arguments:ou(mc(),Al().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),Cf=Hl({method:gu("ui/notifications/tool-input-partial"),params:Hl({arguments:ou(mc(),Al().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),zf=Hl({method:gu("ui/notifications/tool-cancelled"),params:Hl({reason:mc().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),Of=Hl({fonts:mc().optional()}),Tf=Hl({variables:kf.optional().describe("CSS variables for theming the app."),css:Of.optional().describe("CSS blocks that apps can inject.")}),Uf=Hl({method:gu("ui/resource-teardown"),params:Hl({})});ou(mc(),Al());var Rf=Hl({text:Hl({}).optional().describe("Host supports text content blocks."),image:Hl({}).optional().describe("Host supports image content blocks."),audio:Hl({}).optional().describe("Host supports audio content blocks."),resource:Hl({}).optional().describe("Host supports resource content blocks."),resourceLink:Hl({}).optional().describe("Host supports resource link content blocks."),structuredContent:Hl({}).optional().describe("Host supports structured content.")});Hl({method:gu("ui/notifications/request-teardown"),params:Hl({}).optional()});var Af=Hl({experimental:ou(mc(),ou(mc(),Ul()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:Hl({}).optional().describe("Host supports opening external URLs."),downloadFile:Hl({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:Hl({listChanged:bl().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:Hl({listChanged:bl().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:Hl({}).optional().describe("Host accepts log messages."),sandbox:Hl({permissions:Sf.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:If.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:Rf.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:Rf.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:Hl({tools:Hl({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Pf=Hl({experimental:ou(mc(),ou(mc(),Ul()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),tools:Hl({listChanged:bl().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:ql(yf).optional().describe("Display modes the app supports.")});Hl({method:gu("ui/notifications/initialized"),params:Hl({}).optional()}),Hl({csp:If.optional().describe("Content Security Policy configuration for UI resources."),permissions:Sf.optional().describe("Sandbox permissions requested by the UI resource."),domain:mc().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."),prefersBorder:bl().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border")}),Hl({method:gu("ui/request-display-mode"),params:Hl({mode:yf.describe("The display mode being requested.")})});var Nf=Hl({mode:yf.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),jf=Gl([gu("model"),gu("app")]).describe("Tool visibility scope - who can access the tool.");Hl({resourceUri:mc().optional(),visibility:ql(jf).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'),csp:Nl().optional(),permissions:Nl().optional()}),Hl({mimeTypes:ql(mc()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Hl({method:gu("ui/download-file"),params:Hl({contents:ql(Gl([sm,cm])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),Hl({method:gu("ui/message"),params:Hl({role:gu("user").describe('Message role, currently only "user" is supported.'),content:ql(lm).describe("Message content blocks (text, image, etc.).")})}),Hl({method:gu("ui/notifications/sandbox-resource-ready"),params:Hl({html:mc().describe("HTML content to load into the inner iframe."),sandbox:mc().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:If.optional().describe("CSP configuration from resource metadata."),permissions:Sf.optional().describe("Sandbox permissions from resource metadata.")})});var Df=Hl({method:gu("ui/notifications/tool-result"),params:$m.describe("Standard MCP tool execution result.")}),Mf=Hl({toolInfo:Hl({id:jd.optional().describe("JSON-RPC id of the tools/call request."),tool:hm.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:bf.optional().describe("Current color theme preference."),styles:Tf.optional().describe("Style configuration for theming the app."),displayMode:yf.optional().describe("How the UI is currently displayed."),availableDisplayModes:ql(yf).optional().describe("Display modes the host supports."),containerDimensions:Gl([Hl({height:dl().describe("Fixed container height in pixels.")}),Hl({maxHeight:Gl([dl(),Cl()]).optional().describe("Maximum container height in pixels.")})]).and(Gl([Hl({width:dl().describe("Fixed container width in pixels.")}),Hl({maxWidth:Gl([dl(),Cl()]).optional().describe("Maximum container width in pixels.")})])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."),locale:mc().optional().describe("User's language and region preference in BCP 47 format."),timeZone:mc().optional().describe("User's timezone in IANA format."),userAgent:mc().optional().describe("Host application identifier."),platform:Gl([gu("web"),gu("desktop"),gu("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:Hl({touch:bl().optional().describe("Whether the device supports touch input."),hover:bl().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:Hl({top:dl().describe("Top safe area inset in pixels."),right:dl().describe("Right safe area inset in pixels."),bottom:dl().describe("Bottom safe area inset in pixels."),left:dl().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),Zf=Hl({method:gu("ui/notifications/host-context-changed"),params:Mf.describe("Partial context update containing only changed fields.")});Hl({method:gu("ui/update-model-context"),params:Hl({content:ql(lm).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ou(mc(),Al().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Hl({method:gu("ui/initialize"),params:Hl({appInfo:Yd.describe("App identification (name and version)."),appCapabilities:Pf.describe("Features and capabilities this app provides."),protocolVersion:mc().describe("Protocol version this app supports.")})});var Lf=Hl({protocolVersion:mc().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Yd.describe("Host application identification and version."),hostCapabilities:Af.describe("Features and capabilities provided by the host."),hostContext:Mf.describe("Rich context about the host environment.")}).passthrough(),qf={target:"draft-2020-12"};async function Bf(e,t){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[t](qf);if("zod"===n.vendor){let{z:n}=await Promise.resolve().then(function(){return _d});return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Ff(e,t,n=""){let i=await e["~standard"].validate(t);if(i.issues){let e=i.issues.map(e=>{let t=e.path?.map(e=>"object"==typeof e?e.key:e).join(".");return t?`${t}: ${e.message}`:e.message}).join("; ");throw Error(n+e)}return i.value}class Hf extends vf{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Ef,toolinputpartial:Cf,toolresult:Df,toolcancelled:zf,hostcontextchanged:Zf};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(e){if(!Hf.ONE_SHOT_EVENTS.has(e)||this._everHadListener.has(e))return;if(this._everHadListener.add(e),!this._initializedSent)return;let t=`[ext-apps] "${String(e)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(t);console.warn(t)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){"hostcontextchanged"===e&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||c({jitless:!0}),this.setRequestHandler(lp,e=>(console.log("Received ping:",e.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(e){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=function(e,t){const n={...e};for(const e in t){const i=e,r=t[i];if(void 0===r)continue;const o=n[i];hf(o)&&hf(r)?n[i]={...o,...r}:n[i]=r}return n}(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let i=this,r=()=>{i._initializedSent&&i._capabilities.tools?.listChanged&&i.sendToolListChanged()},o=void 0!==t.inputSchema,a={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,r()},disable(){this.enabled=!1,r()},update(e){Object.assign(this,e),r()},remove(){i._registeredTools[e]===a&&(delete i._registeredTools[e],r())},handler:async(t,i)=>{if(!a.enabled)throw Error(`Tool ${e} is disabled`);let r;if(o){let o=a.inputSchema,s=o?await Ff(o,t??{},`Invalid input for tool ${e}: `):t??{};r=await n(s,i)}else r=await n(i);return a.outputSchema&&!r.isError&&(r.structuredContent=await Ff(a.outputSchema,r.structuredContent,`Invalid output for tool ${e}: `)),r}};return this._registeredTools[e]=a,this._capabilities.tools||this.transport||this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),r(),a}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Bf(t.inputSchema,"input"):{type:"object",properties:{}}};return t.outputSchema&&(n.outputSchema=await Bf(t.outputSchema,"output")),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(e){this.setEventHandler("toolinput",e)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(e){this.setEventHandler("toolinputpartial",e)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(e){this.setEventHandler("toolresult",e)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(e){this.setEventHandler("toolcancelled",e)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(e){this.setEventHandler("hostcontextchanged",e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Uf,(e,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(ym,(e,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(gm,(e,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if("sampling/createMessage"===e)if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(e){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(e,t){if(this._assertInitialized("callServerTool"),"string"==typeof e)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:e},$m,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:e},Bp,t)}async listServerResources(e,t){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:e},jp,t)}async createSamplingMessage(e,t){this._assertInitialized("createSamplingMessage");let n=e.tools?jm:Nm;return await this.request({method:"sampling/createMessage",params:e},n,t)}sendMessage(e,t){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:e},wf,t)}sendLog(e){return this.notification({method:"notifications/message",params:e})}updateModelContext(e,t){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:e},Vd,t)}openLink(e,t){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:e},_f,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:e},xf,t)}requestTeardown(e={}){return this.notification({method:"ui/notifications/request-teardown",params:e})}requestDisplayMode(e,t){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:e},Nf,t)}sendSizeChanged(e){return this.notification({method:"ui/notifications/size-changed",params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,i=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let i=document.documentElement,r=i.style.height;i.style.height="max-content";let o=Math.ceil(i.getBoundingClientRect().height);i.style.height=r;let a=Math.ceil(window.innerWidth);a===t&&o===n||(t=a,n=o,this.sendSizeChanged({width:a,height:o}))}))};i();let r=new ResizeObserver(i);return r.observe(document.documentElement),r.observe(document.body),()=>r.disconnect()}async connect(e=new $f(window.parent,window.parent),t){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:"2026-01-26"}},Lf,t);if(void 0===e)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}}function Vf(){}function Jf(e,t){for(const n in t)e[n]=t[n];return e}function Wf(e){return e()}function Gf(){return Object.create(null)}function Kf(e){e.forEach(Wf)}function Xf(e){return"function"==typeof e}function Yf(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Qf(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return Vf;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function eh(e,t,n,i){if(e){const r=th(e,t,n,i);return e[0](r)}}function th(e,t,n,i){return e[1]&&i?Jf(n.ctx.slice(),e[1](i(t))):n.ctx}function nh(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|r[i];return e}return t.dirty|r}return t.dirty}function ih(e,t,n,i,r,o){if(r){const a=th(t,n,i,o);e.p(a,r)}}function rh(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function oh(e,t){const n={};t=new Set(t);for(const i in e)t.has(i)||"$"===i[0]||(n[i]=e[i]);return n}function ah(e){return e&&Xf(e.destroy)?e.destroy:Vf}function sh(e,t){e.appendChild(t)}function ch(e,t,n){const i=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;if(t&&t.host)return t;return e.ownerDocument}(e);if(!i.getElementById(t)){const e=dh("style");e.id=t,e.textContent=n,function(e,t){sh(e.head||e,t),t.sheet}(i,e)}}function lh(e,t,n){e.insertBefore(t,n||null)}function uh(e){e.parentNode&&e.parentNode.removeChild(e)}function dh(e){return document.createElement(e)}function ph(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function mh(e){return document.createTextNode(e)}function fh(){return mh(" ")}function hh(){return mh("")}function gh(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function vh(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $h(e){let t;return{p(...n){t=n,t.forEach(t=>e.push(t))},r(){t.forEach(t=>e.splice(e.indexOf(t),1))}}}function bh(e){return""===e?null:+e}function yh(e,t){t=""+t,e.data!==t&&(e.data=t)}function kh(e,t){e.value=null==t?"":t}function _h(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function xh(e,t,n){e.classList[n?"add":"remove"](t)}class wh{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=ph(t.nodeName):this.e=dh(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)lh(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(uh)}}function Ih(e,t){return new e(t)}let Sh;function Eh(e){Sh=e}function Ch(){if(!Sh)throw new Error("Function called outside component initialization");return Sh}function zh(e){Ch().$$.on_mount.push(e)}const Oh=[],Th=[];let Uh=[];const Rh=[],Ah=Promise.resolve();let Ph=!1;function Nh(e){Uh.push(e)}function jh(e){Rh.push(e)}const Dh=new Set;let Mh=0;function Zh(){if(0!==Mh)return;const e=Sh;do{try{for(;Mh<Oh.length;){const e=Oh[Mh];Mh++,Eh(e),Lh(e.$$)}}catch(e){throw Oh.length=0,Mh=0,e}for(Eh(null),Oh.length=0,Mh=0;Th.length;)Th.pop()();for(let e=0;e<Uh.length;e+=1){const t=Uh[e];Dh.has(t)||(Dh.add(t),t())}Uh.length=0}while(Oh.length);for(;Rh.length;)Rh.pop()();Ph=!1,Dh.clear(),Eh(e)}function Lh(e){if(null!==e.fragment){e.update(),Kf(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Nh)}}const qh=new Set;let Bh;function Fh(){Bh={r:0,c:[],p:Bh}}function Hh(){Bh.r||Kf(Bh.c),Bh=Bh.p}function Vh(e,t){e&&e.i&&(qh.delete(e),e.i(t))}function Jh(e,t,n,i){if(e&&e.o){if(qh.has(e))return;qh.add(e),Bh.c.push(()=>{qh.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Wh(e,t,n){const i=e.$$.props[t];void 0!==i&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function Gh(e){e&&e.c()}function Kh(e,t,n,i){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),i||Nh(()=>{const t=e.$$.on_mount.map(Wf).filter(Xf);e.$$.on_destroy?e.$$.on_destroy.push(...t):Kf(t),e.$$.on_mount=[]}),o.forEach(Nh)}function Xh(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];Uh.forEach(i=>-1===e.indexOf(i)?t.push(i):n.push(i)),n.forEach(e=>e()),Uh=t}(n.after_update),Kf(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Yh(e,t){-1===e.$$.dirty[0]&&(Oh.push(e),Ph||(Ph=!0,Ah.then(Zh)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Qh(e,t,n,i,r,o,a,s=[-1]){const c=Sh;Eh(e);const l=e.$$={fragment:null,ctx:[],props:o,update:Vf,not_equal:r,bound:Gf(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Gf(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let u=!1;if(l.ctx=n?n(e,t.props||{},(t,n,...i)=>{const o=i.length?i[0]:n;return l.ctx&&r(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),u&&Yh(e,t)),n}):[],l.update(),u=!0,Kf(l.before_update),l.fragment=!!i&&i(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach(uh)}else l.fragment&&l.fragment.c();t.intro&&Vh(e.$$.fragment),Kh(e,t.target,t.anchor,t.customElement),Zh()}Eh(c)}class eg{$destroy(){Xh(this,1),this.$destroy=Vf}$on(e,t){if(!Xf(t))return Vf;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const tg=[];function ng(e,t=Vf){let n;const i=new Set;function r(t){if(Yf(e,t)&&(e=t,n)){const t=!tg.length;for(const t of i)t[1](),tg.push(t,e);if(t){for(let e=0;e<tg.length;e+=2)tg[e][0](tg[e+1]);tg.length=0}}}return{set:r,update:function(t){r(t(e))},subscribe:function(o,a=Vf){const s=[o,a];return i.add(s),1===i.size&&(n=t(r)||Vf),o(e),()=>{i.delete(s),0===i.size&&n&&(n(),n=null)}}}}const ig={message:!1,updateModelContext:!1,openLinks:!1};class rg extends Error{constructor(e="Update cancelled"){super(e),this.name="HandoffCancelledError"}}function og(e){const t=e.getHostCapabilities();return{message:null!=t?.message,updateModelContext:null!=t?.updateModelContext,openLinks:null!=t?.openLinks}}function ag(e){return e.message}function sg(e,t){return`I refined this contract in the Wizard UI beyond the initial MCP tool result. Here is the current generated source.\n\n\`\`\`${e}\n${t.trimEnd()}\n\`\`\``}async function cg(e){if(!navigator.clipboard?.writeText)throw new Error("Clipboard is not available in this host.");await navigator.clipboard.writeText(e)}const lg="mcp-external-links";function ug(e){ch(e,"svelte-h4n0sq",".mcp-shell.svelte-h4n0sq{height:var(--mcp-app-height);min-height:var(--mcp-app-height);background-color:var(--gray-1);box-sizing:border-box;font-size:12px;--text-small:0.75rem;--size-1:0.2rem;--size-2:0.35rem;--size-3:0.55rem;--size-4:0.7rem}.mcp-shell.svelte-h4n0sq .controls{padding:var(--size-3)}.mcp-shell.svelte-h4n0sq pre code.hljs{font-size:0.7rem;line-height:1.35}.footer.svelte-h4n0sq{display:flex;flex-direction:column;gap:0.35rem}.drift-notice.svelte-h4n0sq{padding:0.4rem 0.55rem;border:1px solid var(--gray-3);border-radius:8px;background:color-mix(in srgb, var(--gray-2) 65%, transparent)}.drift-text.svelte-h4n0sq{margin:0;font-size:0.75rem;line-height:1.4;color:var(--gray-5);text-align:left}.actions.svelte-h4n0sq{display:flex;justify-content:flex-end;align-items:center;gap:0.75rem}.actions.drifted.svelte-h4n0sq{justify-content:space-between}.restore-link.svelte-h4n0sq{padding:0;border:none;background:none;color:var(--gray-4);font:inherit;font-size:0.75rem;text-decoration:underline;cursor:pointer}.restore-link.svelte-h4n0sq:hover{color:var(--gray-5)}.restore-confirm.svelte-h4n0sq{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.35rem 0.5rem;font-size:0.75rem;color:var(--gray-5)}.restore-confirm-btn.svelte-h4n0sq{padding:0;border:none;background:none;color:var(--solidity-blue-2);font:inherit;font-size:0.75rem;font-weight:600;text-decoration:underline;cursor:pointer}.restore-confirm-btn.cancel.svelte-h4n0sq{color:var(--gray-4);font-weight:500}.use-button.svelte-h4n0sq{padding:0.45rem 0.9rem;border-radius:16px;border:1px solid var(--gray-3);background-color:var(--solidity-blue-2);color:white;font-weight:600;font-size:0.75rem;cursor:pointer}.use-button.drifted.svelte-h4n0sq:not(.disabled):not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb, var(--solidity-blue-2) 35%, transparent)}.use-button.disabled.svelte-h4n0sq,.use-button.svelte-h4n0sq:disabled{opacity:0.5;cursor:not-allowed}.status.svelte-h4n0sq{margin:0;max-width:100%;font-size:0.75rem;text-align:right}.status.hint.svelte-h4n0sq{color:var(--gray-4)}.status.error.svelte-h4n0sq{color:var(--red-3)}.no-select.svelte-h4n0sq{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tippy-box{font-size:12px;line-height:1.35}.tippy-box .tippy-content{padding:0.35rem 0.5rem}html.mcp-no-open-links .tippy-box a[href]{display:none}")}const dg=e=>({}),pg=e=>({});function mg(e){let t;return{c(){t=dh("div"),t.innerHTML='<p class="drift-text svelte-h4n0sq">Preview differs from the original tool run. The agent's reply from that run still matches the original\n settings. Send updates to the agent for it to see the new code.</p>',vh(t,"class","drift-notice svelte-h4n0sq")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function fg(e){let t;function n(e,t){return e[11]?gg:hg}let i=n(e),r=i(e);return{c(){r.c(),t=hh()},m(e,n){r.m(e,n),lh(e,t,n)},p(e,o){i===(i=n(e))&&r?r.p(e,o):(r.d(1),r=i(e),r&&(r.c(),r.m(t.parentNode,t)))},d(e){r.d(e),e&&uh(t)}}}function hg(e){let t,n,i;return{c(){t=dh("button"),t.textContent="Restore original",vh(t,"type","button"),vh(t,"class","restore-link svelte-h4n0sq")},m(r,o){lh(r,t,o),n||(i=gh(t,"click",e[25]),n=!0)},p:Vf,d(e){e&&uh(t),n=!1,i()}}}function gg(e){let t,n,i,r,o,a,s;return{c(){t=dh("span"),n=mh("Restore original settings?\n "),i=dh("button"),i.textContent="Confirm",r=fh(),o=dh("button"),o.textContent="Cancel",vh(i,"type","button"),vh(i,"class","restore-confirm-btn svelte-h4n0sq"),vh(o,"type","button"),vh(o,"class","restore-confirm-btn cancel svelte-h4n0sq"),vh(t,"class","restore-confirm svelte-h4n0sq")},m(c,l){lh(c,t,l),sh(t,n),sh(t,i),sh(t,r),sh(t,o),a||(s=[gh(i,"click",e[23]),gh(o,"click",e[24])],a=!0)},p:Vf,d(e){e&&uh(t),a=!1,Kf(s)}}}function vg(e){let t;return{c(){t=mh("Send Updates to Agent")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function $g(e){let t;return{c(){t=mh("Copy to Clipboard")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function bg(e){let t;return{c(){t=mh(e[8])},m(e,n){lh(e,t,n)},p(e,n){256&n&&yh(t,e[8])},d(e){e&&uh(t)}}}function yg(e){let t,n=e[12]?"Copying…":"Sending…";return{c(){t=mh(n)},m(e,n){lh(e,t,n)},p(e,i){4096&i&&n!==(n=e[12]?"Copying…":"Sending…")&&yh(t,n)},d(e){e&&uh(t)}}}function kg(e){let t;return{c(){t=mh("Connecting…")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function _g(e){let t,n;return{c(){t=dh("p"),n=mh(e[10]),vh(t,"class","status hint svelte-h4n0sq")},m(e,i){lh(e,t,i),sh(t,n)},p(e,t){1024&t&&yh(n,e[10])},d(e){e&&uh(t)}}}function xg(e){let t,n;return{c(){t=dh("p"),n=mh(e[9]),vh(t,"class","status error svelte-h4n0sq")},m(e,i){lh(e,t,i),sh(t,n)},p(e,t){512&t&&yh(n,e[9])},d(e){e&&uh(t)}}}function wg(e){let t,n,i;return{c(){t=dh("p"),n=mh("Could not connect to host: "),i=mh(e[4]),vh(t,"class","status error svelte-h4n0sq")},m(e,r){lh(e,t,r),sh(t,n),sh(t,i)},p(e,t){16&t&&yh(i,e[4])},d(e){e&&uh(t)}}}function Ig(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k;const _=e[22].controls,x=eh(_,e,e[21],pg);let w=e[5]&&mg(),I=e[5]&&e[6]&&fg(e);function S(e,t){return e[3]||e[4]?e[7]?yg:e[8]?bg:e[12]?$g:vg:kg}let E=S(e),C=E(e);function z(e,t){return e[4]?wg:e[9]?xg:e[10]?_g:void 0}let O=z(e),T=O&&O(e);return{c(){t=dh("div"),n=dh("div"),i=dh("div"),x&&x.c(),r=fh(),o=dh("div"),a=dh("pre"),s=mh(" "),c=dh("code"),u=mh("\n "),d=fh(),p=dh("div"),w&&w.c(),m=fh(),f=dh("div"),I&&I.c(),h=fh(),g=dh("button"),C.c(),$=fh(),T&&T.c(),vh(i,"class","controls min-w-[14rem] w-60 max-w-[42%] flex flex-col shrink-0 overflow-auto border-r border-[var(--gray-3)]"),vh(c,"class",l="hljs "+e[2]+" grow overflow-auto p-2 "+(e[1]?"no-select":"")+" svelte-h4n0sq"),vh(a,"class","flex flex-col grow basis-0 overflow-auto m-0"),vh(o,"class","output flex flex-col grow min-w-0 overflow-hidden"),vh(n,"class","flex flex-row grow min-h-0 overflow-hidden rounded-xl border border-[var(--gray-3)]"),vh(g,"class","use-button svelte-h4n0sq"),g.disabled=e[13],vh(g,"title",v=e[12]?"Copy to Clipboard":void 0),xh(g,"disabled",e[13]),xh(g,"drifted",e[5]),vh(f,"class","actions svelte-h4n0sq"),xh(f,"drifted",e[5]),vh(p,"class","footer shrink-0 svelte-h4n0sq"),vh(t,"class","mcp-shell flex flex-col gap-2 p-2 min-h-0 svelte-h4n0sq")},m(l,v){lh(l,t,v),sh(t,n),sh(n,i),x&&x.m(i,null),sh(n,r),sh(n,o),sh(o,a),sh(a,s),sh(a,c),c.innerHTML=e[0],sh(a,u),sh(t,d),sh(t,p),w&&w.m(p,null),sh(p,m),sh(p,f),I&&I.m(f,null),sh(f,h),sh(f,g),C.m(g,null),sh(p,$),T&&T.m(p,null),b=!0,y||(k=[gh(a,"click",e[15]),gh(g,"click",e[14])],y=!0)},p(e,[t]){x&&x.p&&(!b||2097152&t)&&ih(x,_,e,e[21],b?nh(_,e[21],t,dg):rh(e[21]),pg),(!b||1&t)&&(c.innerHTML=e[0]),(!b||6&t&&l!==(l="hljs "+e[2]+" grow overflow-auto p-2 "+(e[1]?"no-select":"")+" svelte-h4n0sq"))&&vh(c,"class",l),e[5]?w||(w=mg(),w.c(),w.m(p,m)):w&&(w.d(1),w=null),e[5]&&e[6]?I?I.p(e,t):(I=fg(e),I.c(),I.m(f,h)):I&&(I.d(1),I=null),E===(E=S(e))&&C?C.p(e,t):(C.d(1),C=E(e),C&&(C.c(),C.m(g,null))),(!b||8192&t)&&(g.disabled=e[13]),(!b||4096&t&&v!==(v=e[12]?"Copy to Clipboard":void 0))&&vh(g,"title",v),(!b||8192&t)&&xh(g,"disabled",e[13]),(!b||32&t)&&xh(g,"drifted",e[5]),(!b||32&t)&&xh(f,"drifted",e[5]),O===(O=z(e))&&T?T.p(e,t):(T&&T.d(1),T=O&&O(e),T&&(T.c(),T.m(p,null)))},i(e){b||(Vh(x,e),b=!0)},o(e){Jh(x,e),b=!1},d(e){e&&uh(t),x&&x.d(e),w&&w.d(),I&&I.d(),C.d(),T&&T.d(),y=!1,Kf(k)}}}function Sg(e,t,n){let i,r,o,a,s,c,l,{$$slots:u={},$$scope:d}=t,{highlightedCode:p}=t,{hasErrors:m=!1}=t,{highlightClass:f="-solidity"}=t,{code:h=""}=t,{fence:g}=t,{hostConnected:v=!1}=t,{hostConnectError:$}=t,{hostSendCaps:b=ig}=t,{mcpApp:y}=t,{drifted:k=!1}=t,{onRestoreOriginal:_}=t,x=!1,w=!1;const I=ng({canOpen:!1});var S,E;function C(e){l&&clearTimeout(l),n(8,a=e),l=setTimeout(()=>{n(8,a=void 0),l=void 0},1e3)}function z(e,t){return n=>{const i=n.target,r=i instanceof Element?i.closest(e)?.getAttribute("href"):void 0;r&&!r.startsWith("#")&&(n.preventDefault(),n.stopPropagation(),b.openLinks&&async function(e,t){if((await e.openLink({url:t})).isError)throw new Error("Host denied opening the link.")}(y,r).catch(e=>console.warn(`[mcp-apps] ${t} openLink failed`,e)))}}S=lg,E=I,Ch().$$.context.set(S,E);const O=z("a[href]","code preview"),T=z(".tippy-box a[href]","tippy");zh(()=>(document.addEventListener("click",T,!0),()=>document.removeEventListener("click",T,!0)));return e.$$set=e=>{"highlightedCode"in e&&n(0,p=e.highlightedCode),"hasErrors"in e&&n(1,m=e.hasErrors),"highlightClass"in e&&n(2,f=e.highlightClass),"code"in e&&n(16,h=e.code),"fence"in e&&n(17,g=e.fence),"hostConnected"in e&&n(3,v=e.hostConnected),"hostConnectError"in e&&n(4,$=e.hostConnectError),"hostSendCaps"in e&&n(18,b=e.hostSendCaps),"mcpApp"in e&&n(19,y=e.mcpApp),"drifted"in e&&n(5,k=e.drifted),"onRestoreOriginal"in e&&n(6,_=e.onRestoreOriginal),"$$scope"in e&&n(21,d=e.$$scope)},e.$$.update=()=>{32&e.$$.dirty&&(k||n(11,w=!1)),262144&e.$$.dirty&&I.set({canOpen:b.openLinks}),262144&e.$$.dirty&&document.documentElement.classList.toggle("mcp-no-open-links",!b.openLinks),262144&e.$$.dirty&&n(20,i=ag(b)),1048584&e.$$.dirty&&n(12,r=v&&!i),65946&e.$$.dirty&&n(13,o=m||x||!h||!v||!!$||!!a)},[p,m,f,v,$,k,_,x,a,s,c,w,r,o,async function(){if(!o){n(9,s=void 0),n(10,c=void 0),n(7,x=!0);try{if(r)return await cg(h),void C("Copied");await async function(e,t,n){const i=og(e);if(!ag(i))throw new Error("This host does not support sending the contract to the agent.");if(i.updateModelContext)try{await e.updateModelContext({content:[{type:"text",text:t}]})}catch(e){console.warn("[mcp-apps] updateModelContext failed",e)}if((await e.sendMessage({role:"user",content:[{type:"text",text:sg(n,t)}]})).isError)throw new rg}(y,h,g),C("Sent")}catch(e){if(e instanceof rg)return void n(10,c=e.message);console.error("[mcp-apps] Send Updates to Agent failed",e),n(9,s=e instanceof Error?e.message:String(e));try{await cg(h),C("Copied")}catch{}}finally{n(7,x=!1)}}},O,h,g,b,y,i,d,u,()=>{n(11,w=!1),_()},()=>n(11,w=!1),()=>n(11,w=!0)]}class Eg extends eg{constructor(e){super(),Qh(this,e,Sg,Ig,Yf,{highlightedCode:0,hasErrors:1,highlightClass:2,code:16,fence:17,hostConnected:3,hostConnectError:4,hostSendCaps:18,mcpApp:19,drifted:5,onRestoreOriginal:6},ug)}}function Cg(e){return structuredClone(e)}function zg(e){let t,n,i,r;const o=[{errors:e[7]},e[1].controlProps?.(e[2],e[6])??{}];function a(t){e[15](t)}var s=e[1].controls[e[2]];function c(e){let t={};for(let e=0;e<o.length;e+=1)t=Jf(t,o[e]);return void 0!==e[6]&&(t.opts=e[6]),{props:t}}return s&&(t=Ih(s,c(e)),Th.push(()=>Wh(t,"opts",a))),{c(){t&&Gh(t.$$.fragment),i=hh()},m(e,n){t&&Kh(t,e,n),lh(e,i,n),r=!0},p(e,r){const l=198&r?function(e,t){const n={},i={},r={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(i[e]=1);for(const e in s)r[e]||(n[e]=s[e],r[e]=1);e[o]=s}else for(const e in a)r[e]=1}for(const e in i)e in n||(n[e]=void 0);return n}(o,[128&r&&{errors:e[7]},70&r&&(u=e[1].controlProps?.(e[2],e[6])??{},"object"==typeof u&&null!==u?u:{})]):{};var u;if(!n&&64&r&&(n=!0,l.opts=e[6],jh(()=>n=!1)),6&r&&s!==(s=e[1].controls[e[2]])){if(t){Fh();const e=t;Jh(e.$$.fragment,1,0,()=>{Xh(e,1)}),Hh()}s?(t=Ih(s,c(e)),Th.push(()=>Wh(t,"opts",a)),Gh(t.$$.fragment),Vh(t.$$.fragment,1),Kh(t,i.parentNode,i)):t=null}else s&&t.$set(l)},i(e){r||(t&&Vh(t.$$.fragment,e),r=!0)},o(e){t&&Jh(t.$$.fragment,e),r=!1},d(e){e&&uh(i),t&&Xh(t,e)}}}function Og(e){let t,n;return t=new Eg({props:{highlightedCode:e[11],hasErrors:e[8],code:e[9],highlightClass:e[1].highlightClass,fence:e[1].fence,hostConnected:e[3],hostConnectError:e[4],hostSendCaps:e[5],mcpApp:e[0],drifted:e[10],onRestoreOriginal:e[12],$$slots:{controls:[zg]},$$scope:{ctx:e}}}),{c(){Gh(t.$$.fragment)},m(e,i){Kh(t,e,i),n=!0},p(e,[n]){const i={};2048&n&&(i.highlightedCode=e[11]),256&n&&(i.hasErrors=e[8]),512&n&&(i.code=e[9]),2&n&&(i.highlightClass=e[1].highlightClass),2&n&&(i.fence=e[1].fence),8&n&&(i.hostConnected=e[3]),16&n&&(i.hostConnectError=e[4]),32&n&&(i.hostSendCaps=e[5]),1&n&&(i.mcpApp=e[0]),1024&n&&(i.drifted=e[10]),524486&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(Vh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Xh(t,e)}}}function Tg(e,t,n){let i,r,o,a,s,c,l,u,{adapter:d}=t,{kind:p}=t,{mcpApp:m}=t,{hostConnected:f=!1}=t,{hostConnectError:h}=t,{hostSendCaps:g=ig}=t,v=d.emptyContract();function $(e){try{return d.print(d.build(e))}catch{return}}function b(e,t){if(!e)return;const i=function(e,t,n){return void 0===e||"result"===n&&!t}(l,a,t),r={...s??{},...e,kind:p};if(n(6,s=r),!i)return;const o=function(e,t,n){const i=n(e);if(void 0!==i)return{opts:Cg(e),code:i,supersedesOpts:!1};const r=n(t);return void 0!==r?{opts:Cg(t),code:r,supersedesOpts:!0}:void 0}(r,{...e,kind:p},$);void 0!==o&&(c=o.opts,n(13,l=o.code),o.supersedesOpts&&n(6,s=Cg(o.opts)))}return m.ontoolinput=e=>{b(e.arguments,"input")},m.ontoolresult=e=>{const t=e.structuredContent;t?.opts&&b(t.opts,"result")},e.$$set=e=>{"adapter"in e&&n(1,d=e.adapter),"kind"in e&&n(2,p=e.kind),"mcpApp"in e&&n(0,m=e.mcpApp),"hostConnected"in e&&n(3,f=e.hostConnected),"hostConnectError"in e&&n(4,h=e.hostConnectError),"hostSendCaps"in e&&n(5,g=e.hostSendCaps)},e.$$.update=()=>{if(66&e.$$.dirty&&s)try{n(14,v=d.build(s)),n(7,u=void 0)}catch(e){const t=e instanceof Error?e.message:String(e);n(7,u=d.optionsErrors(e)??{_:t||"Failed to build contract"})}16386&e.$$.dirty&&n(9,i=d.print(v)),546&e.$$.dirty&&n(11,r=g.openLinks?d.injectHyperlinks(d.highlight(i)):d.highlight(i)),128&e.$$.dirty&&n(8,o=void 0!==u),8960&e.$$.dirty&&n(10,a=function(e){const{originalCode:t,code:n,hasErrors:i}=e;return void 0!==t&&(i||n!==t)}({originalCode:l,code:i,hasErrors:o}))},[m,d,p,f,h,g,s,u,o,i,a,r,function(){null!=c&&n(6,s=Cg(c))},l,v,function(e){s=e,n(6,s)}]}class Ug extends eg{constructor(e){super(),Qh(this,e,Tg,Og,Yf,{adapter:1,kind:2,mcpApp:0,hostConnected:3,hostConnectError:4,hostSendCaps:5})}}const Rg=560;const Ag=["pure","view","nonpayable","payable"];function Pg(e,t){return Ag[Math.max(Ag.indexOf(e),Ag.indexOf(t))]}class Ng{constructor(e){this.license="MIT",this.upgradeable=!1,this.topLevelComments=[],this.natspecTags=[],this.constructorArgs=[],this.constructorCode=[],this.variableOrErrorMap=new Map,this.parentMap=new Map,this.functionMap=new Map,this.libraryMap=new Map,this.structMap=new Map,this.name=function(e,t=!1){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/^[^a-zA-Z$_]+/,"").replace(/^(.)/,e=>t?e.toUpperCase():e).replace(/[^\w$]+(.?)/g,(e,t)=>t.toUpperCase())}(e,!0)}get parents(){return[...this.parentMap.values()].filter(e=>!e.importOnly).sort((e,t)=>"Initializable"===e.contract.name?-1:"Initializable"===t.contract.name?1:0)}get imports(){return[...[...this.parentMap.values()].map(e=>e.contract),...[...this.libraryMap.values()].map(e=>e.library)]}get libraries(){return[...this.libraryMap.values()]}get functions(){return[...this.functionMap.values()]}get structs(){return[...this.structMap.values()]}get variableOrErrorDefinitions(){return[...this.variableOrErrorMap.values()]}updateParentMap(e,t=[],n={}){const i=this.parentMap.has(e.name);return this.parentMap=new Map(this.parentMap).set(e.name,{contract:e,params:t,...n}),!i}addParent(e,t=[]){return this.updateParentMap(e,t)}addImportOnly(e){return this.updateParentMap(e,[],{importOnly:!0})}addConstructionOnly(e,t=[]){return this.updateParentMap(e,t,{constructionOnly:!0})}addLibrary(e,t){let n=!1;if(this.libraryMap.has(e.name)){const i=this.libraryMap.get(e.name),r=i.usingFor.size;t.forEach(e=>i.usingFor.add(e)),n=i.usingFor.size>r}else this.libraryMap.set(e.name,{library:e,usingFor:new Set(t)}),n=!0;return n}addOverride(e,t,n){const i=this.addFunction(t);i.override.add(e),n&&(i.mutability=Pg(i.mutability,n))}addModifier(e,t){this.addFunction(t).modifiers.push(e)}addTopLevelComment(e){this.topLevelComments.push(e)}addNatspecTag(e,t){if(!/^(@custom:)?[a-z][a-z\-]*$/.exec(e))throw new Error(`Invalid natspec key: ${e}`);this.natspecTags.push({key:e,value:t})}addFunction(e){const t=[e.name,"(",...e.args.map(e=>e.name),")"].join(""),n=this.functionMap.get(t);if(void 0!==n)return n;{const n={override:new Set,modifiers:[],code:[],mutability:"nonpayable",final:!1,comments:[],...e};return this.functionMap.set(t,n),n}}addStruct(e){const t=this.structMap.get(e.name);if(void 0!==t)return t;{const t={...e};return this.structMap.set(e.name,t),t}}addConstructorArgument(e){this.constructorArgs.push(e)}addConstructorCode(e){this.constructorCode.push(e)}addFunctionCode(e,t,n){const i=this.addFunction(t);if(i.final)throw new Error(`Function ${t.name} is already finalized`);i.code.push(e),n&&(i.mutability=Pg(i.mutability,n))}setFunctionBody(e,t,n){const i=this.addFunction(t);if(i.code.length>0)throw new Error(`Function ${t.name} has additional code`);i.code.push(...e),i.final=!0,n&&(i.mutability=n)}setFunctionComments(e,t){const n=this.addFunction(t);if(n.comments.length>0)throw new Error(`Function ${t.name} already has comments`);n.comments=e}addStateVariable(e,t){if(t)throw new Error("State variables should not be used when upgradeable is true. Set namespaced storage instead.");return this._addVariableOrErrorDefinition({code:e})}addConstantOrImmutableOrErrorDefinition(e,t){return this._addVariableOrErrorDefinition({code:e,comments:t})}_addVariableOrErrorDefinition(e){const t=this.variableOrErrorMap.has(e.code);return this.variableOrErrorMap.set(e.code,e),!t}addStructVariable(e,t){let n=this.structMap.get(e.name);n||(n=this.addStruct(e));const i=n.variables.includes(t);return i||n.variables.push(t),!i}}const jg={name:"supportsInterface",kind:"public",args:[{name:"interfaceId",type:"bytes4"}],returns:["bool"],mutability:"view"};function Dg(e,t){switch(t){case"ownable":e.addParent(Zg.Ownable,[{lit:"initialOwner"}])&&e.addConstructorArgument({type:"address",name:"initialOwner"});break;case"roles":e.addParent(Zg.AccessControl)&&(e.addConstructorArgument({type:"address",name:"defaultAdmin"}),e.addConstructorCode("_grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin);")),e.addOverride(Zg.AccessControl,jg);break;case"managed":e.addParent(Zg.AccessManaged,[{lit:"initialAuthority"}])&&e.addConstructorArgument({type:"address",name:"initialAuthority"})}}function Mg(e,t,n,i,r){switch(!1===n&&(n="ownable"),Dg(e,n),n){case"ownable":e.addModifier("onlyOwner",t);break;case"roles":{const n=i+"_ROLE",o=e.addConstantOrImmutableOrErrorDefinition(`bytes32 public constant ${n} = keccak256("${n}");`);r&&o&&(e.addConstructorArgument({type:"address",name:r}),e.addConstructorCode(`_grantRole(${n}, ${r});`)),e.addModifier(`onlyRole(${n})`,t);break}case"managed":e.addModifier("restricted",t)}}const Zg={Ownable:{name:"Ownable",path:"@openzeppelin/contracts/access/Ownable.sol"},AccessControl:{name:"AccessControl",path:"@openzeppelin/contracts/access/AccessControl.sol"},AccessManaged:{name:"AccessManaged",path:"@openzeppelin/contracts/access/manager/AccessManaged.sol"}};function Lg(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Object.assign({name:e},t)]))}function qg(e,t){Mg(e,Bg.pause,t,"PAUSER","pauser"),e.addFunctionCode("_pause();",Bg.pause),Mg(e,Bg.unpause,t,"PAUSER","pauser"),e.addFunctionCode("_unpause();",Bg.unpause)}const Bg=Lg({pause:{kind:"public",args:[]},unpause:{kind:"public",args:[]}});class Fg extends Error{constructor(e){super("Invalid options"),this.messages=e}}const Hg=/[\n\r\u2028\u2029]/u;function Vg(e,t){if(Hg.test(e))throw new Fg({[t]:"Must not contain line breaks"})}const Jg={license:"MIT"};function Wg(e,t){const{securityContact:n,license:i}=t;n&&(Vg(n,"securityContact"),e.addNatspecTag("@custom:security-contact",n)),i&&(Vg(i,"license"),e.license=i)}const Gg={access:!1,upgradeable:!1,info:Jg};function Kg(e){return{access:e.access??!1,upgradeable:e.upgradeable??!1,info:{...Gg.info,...e.info??{}}}}function Xg(e,t,n){if(!1!==t)switch(e.upgradeable=!0,e.addParent({name:"Initializable",path:"@openzeppelin/contracts/proxy/utils/Initializable.sol",transpiled:!1}),t){case"transparent":break;case"uups":{n();const t={name:"UUPSUpgradeable",path:"@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol",transpiled:!1};e.addParent(t),e.addOverride(t,Qg._authorizeUpgrade),e.setFunctionBody([],Qg._authorizeUpgrade);break}default:throw new Error("Unknown value for `upgradeable`")}}function Yg(e,t,n){Xg(e,t,()=>{Mg(e,Qg._authorizeUpgrade,n,"UPGRADER","upgrader")})}const Qg=Lg({_authorizeUpgrade:{args:[{name:"newImplementation",type:"address"}],kind:"internal"}});function ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tv,nv;var iv=function(){if(nv)return tv;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,i="",r=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=s,a=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),r=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return i}nv=1;var n={resolve:function(){for(var n,i="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a;o>=0?a=arguments[o]:(void 0===n&&(n=process.cwd()),a=n),e(a),0!==a.length&&(i=a+"/"+i,r=47===a.charCodeAt(0))}return i=t(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(n){if(e(n),0===n.length)return".";var i=47===n.charCodeAt(0),r=47===n.charCodeAt(n.length-1);return 0!==(n=t(n,!i)).length||i||(n="."),n.length>0&&r&&(n+="/"),i?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,i=0;i<arguments.length;++i){var r=arguments[i];e(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":n.normalize(t)},relative:function(t,i){if(e(t),e(i),t===i)return"";if((t=n.resolve(t))===(i=n.resolve(i)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var o=t.length,a=o-r,s=1;s<i.length&&47===i.charCodeAt(s);++s);for(var c=i.length-s,l=a<c?a:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===i.charCodeAt(s+d))return i.slice(s+d+1);if(0===d)return i.slice(s+d)}else a>l&&(47===t.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var p=t.charCodeAt(r+d);if(p!==i.charCodeAt(s+d))break;47===p&&(u=d)}var m="";for(d=r+u+1;d<=o;++d)d!==o&&47!==t.charCodeAt(d)||(0===m.length?m+="..":m+="/..");return m.length>0?m+i.slice(s+u):(s+=u,47===i.charCodeAt(s)&&++s,i.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),i=47===n,r=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(n=t.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":t.slice(0,r)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var i,r=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,c=-1;for(i=t.length-1;i>=0;--i){var l=t.charCodeAt(i);if(47===l){if(!a){r=i+1;break}}else-1===c&&(a=!1,c=i+1),s>=0&&(l===n.charCodeAt(s)?-1===--s&&(o=i):(s=-1,o=c))}return r===o?o=c:-1===o&&(o=t.length),t.slice(r,o)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!a){r=i+1;break}}else-1===o&&(a=!1,o=i+1);return-1===o?"":t.slice(r,o)},extname:function(t){e(t);for(var n=-1,i=0,r=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===r&&(o=!1,r=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){i=s+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":t.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var i,r=t.charCodeAt(0),o=47===r;o?(n.root="/",i=1):i=0;for(var a=-1,s=0,c=-1,l=!0,u=t.length-1,d=0;u>=i;--u)if(47!==(r=t.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===r?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===d||1===d&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?t.slice(1,c):t.slice(s,c)):(0===s&&o?(n.name=t.slice(1,a),n.base=t.slice(1,c)):(n.name=t.slice(s,a),n.base=t.slice(s,c)),n.ext=t.slice(a,c)),s>0?n.dir=t.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,tv=n}(),rv=ev(iv);function ov(e){return e.transpiled??!/^I[A-Z]/.test(e.name)}function av(e){return"Initializable"===e?e:e.replace(/(Upgradeable)?(?=\.|$)/,"Upgradeable")}function sv(e,t={}){const n=e.upgradeable,i=t.transformName??(e=>e);return{upgradeable:n,transformName:e=>{const t=n&&ov(e)?av(e.name):e.name;return i(t)},transformInitName:e=>i(e.name),transformImport:e=>{const i=n&&ov(e)?function(e){const{dir:t,ext:n,name:i}=rv.parse(e.path);return{...e,name:av(e.name),path:rv.posix.format({ext:n,dir:t.replace(/^@openzeppelin\/contracts/,"@openzeppelin/contracts-upgradeable"),name:av(i)})}}(e):e;return t.transformImport?.(i)??i},formulaId:t.formulaId??"erc7201",additionalCompatibleLibraries:t.additionalCompatibleLibraries??[]}}const cv=Symbol("whitespace");function lv(...e){return function(e,...t){return[...uv(0,t,e)].join("\n")+"\n"}(4,...e)}function*uv(e,t,n){for(const i of t)i===cv?yield"":Array.isArray(i)?yield*uv(e+1,i,n):yield" ".repeat(e*n)+i}function dv(...e){return e.filter(e=>e.length>0).flatMap(e=>[cv,...e]).slice(1)}var pv="0.8.27";function mv(e,t){return e.imports.some(e=>e.path.startsWith(t))}var fv="git+https://github.com/OpenZeppelin/openzeppelin-community-contracts.git#b0ddd27";function hv(){return function(e,t){const n=t.split("#");if(!t.startsWith("git+")||2!==n.length)throw new Error(`Expected package dependency for ${e} in format git+<url>#<commit-hash>, but got ${t}`);const i=n[1];if(!/^[a-fA-F0-9]{7,40}$/.test(i))throw new Error(`Expected git commit hash for package dependency ${e} to have between 7 and 40 hex chars, but got ${i}`);return i.toLowerCase()}("@openzeppelin/community-contracts",fv)}function gv(e,t){const n=sv(e,t),i=e.structs.map(e=>function(e,{formulaId:t}){const[n,i,r]=[e.comments,e.name,e.variables],o=void 0!==e.namespaceId?[`/// @custom:storage-location ${t}:${e.namespaceId}`]:[],a=[...o,...n],s=r.length>0?"{":"{}";a.push([`struct ${i}`,s].join(" ")),r.length>0&&a.push(r,"}");return a}(e,n)),r=function(e,t){const n={};for(const i in e)n[i]=t(e[i]);return n}(function(e){const t={code:[],modifiers:[],override:[]};for(const n of e.functions)n.code.length>0?t.code.push(n):n.modifiers.length>0?t.modifiers.push(n):t.override.push(n);return t}(e),e=>e.map(e=>function(e,t){const{transformName:n}=t;if(e.override.size<=1&&0===e.modifiers.length&&0===e.code.length&&!e.final)return[];const i=[e.kind];"nonpayable"!==e.mutability&&i.push(e.mutability);1===e.override.size?i.push("override"):e.override.size>1&&i.push(`override(${[...e.override].map(n).join(", ")})`);i.push(...e.modifiers),e.returns?.length&&i.push(`returns (${e.returns.join(", ")})`);const r=[...e.code];if(e.override.size>0&&!e.final){const t=`super.${e.name}(${e.args.map(e=>e.name).join(", ")});`;r.push(e.returns?.length?"return "+t:t)}return i.length+e.code.length>1?Sv(e.comments,"function "+e.name,e.args.map(e=>Ev(e,t)),i,r):[]}(e,n))),o=r.override.some(e=>e.length>0);return lv(...dv([`// SPDX-License-Identifier: ${e.license}`,bv(e,n),`pragma solidity ^${pv};`],function(e,t){const n=new Map;for(const i of e){const{name:e,path:r}=t.transformImport(i);n.get(r)?.add(e)??n.set(r,new Set([e]))}return Array.from(n.keys()).sort().map(e=>`import {${Array.from(n.get(e)).sort().join(", ")}} from "${e}";`)}(e.imports,n),[...Cv(e.topLevelComments,e.natspecTags.length>0),...(a=e.natspecTags,a.map(({key:e,value:t})=>`/// ${e} ${t}`)),[`contract ${e.name}`,...yv(e,n),"{"].join(" "),dv(zv(e,n),...i,vv(e.variableOrErrorDefinitions),$v(e.variableOrErrorDefinitions),kv(e,n),...r.code,...r.modifiers,o?["// The following functions are overrides required by Solidity."]:[],...r.override),"}"]));var a}function vv(e){const t=e.filter(e=>e.comments?.length);return dv(...t.map(e=>[...e.comments,e.code]))}function $v(e){const t=e.filter(e=>!e.comments?.length);return t.map(e=>e.code)}function bv(e,t,n){const i=[],r={imports:e.imports.map(e=>t.transformImport(e))};if(mv(r,"@openzeppelin/contracts")&&i.push({nameAndVersion:"OpenZeppelin Contracts ^5.7.0"}),mv(r,"@openzeppelin/community-contracts"))try{const e=hv();i.push({nameAndVersion:`OpenZeppelin Community Contracts commit ${e}`})}catch(e){console.error(e)}if(0===i.length)return"";if(1===i.length)return`// Compatible with ${i[0].nameAndVersion}`;{const e="OpenZeppelin ";if(i[0].nameAndVersion.startsWith(e))for(let t=1;t<i.length;t++)i[t].nameAndVersion.startsWith(e)&&!i[t].alwaysKeepOzPrefix&&(i[t].nameAndVersion=i[t].nameAndVersion.slice(e.length));const t=i.map(e=>e.nameAndVersion);return`// Compatible with ${t.slice(0,-1).join(", ")} and ${t.slice(-1)}`}}function yv(e,{transformName:t}){const n=e.parents.filter(e=>!e.constructionOnly);return n.length>0?["is "+n.map(e=>t(e.contract)).join(", ")]:[]}function kv(e,t){const n=e.parents.some(e=>e.params.length>0),i=e.constructorCode.length>0,r=e.parents.filter(xv);if(n||i||t.upgradeable&&r.length>0){if(t.upgradeable){const n=r.filter(e=>ov(e.contract)),i=e.parents.filter(e=>!ov(e.contract)&&"Initializable"!==e.contract.name&&"UUPSUpgradeable"!==e.contract.name),o=Sv([i.length>0?"/// @custom:oz-upgrades-unsafe-allow-reachable constructor":"/// @custom:oz-upgrades-unsafe-allow constructor"],"constructor",[],i.flatMap(e=>wv(e,t)),["_disableInitializers();"]),a=Sv([],"function initialize",e.constructorArgs.map(e=>Ev(e,t)),["public","initializer"],dv(n.flatMap(e=>wv(e,t)).map(e=>e+";"),e.constructorCode));return dv(o,n.length>0?a:[])}return Sv([],"constructor",e.constructorArgs.map(e=>Ev(e,t)),e.parents.flatMap(e=>wv(e,t)),e.constructorCode)}return t.upgradeable?_v:[]}const _v=["/// @custom:oz-upgrades-unsafe-allow constructor","constructor() {",["_disableInitializers();"],"}"];function xv(e){return!["Initializable"].includes(e.contract.name)}function wv({contract:e,params:t},n){const i=n.upgradeable&&ov(e),r=i?`__${n.transformInitName(e)}_init`:n.transformName(e);return i||t.length>0?[r+"("+t.map(Iv).join(", ")+")"]:[]}function Iv(e){if("object"==typeof e){if("lit"in e)return e.lit;if("note"in e)return`${Iv(e.value)} /* ${e.note} */`;throw Error("Unknown value type")}if("number"==typeof e){if(Number.isSafeInteger(e))return e.toFixed(0);throw new Error(`Number not representable (${e})`)}return/[^\x20-\x7E]/u.test(t=e)?`unicode"${t.replace(/[\\"\r\n\x0b]/gu,e=>'"'===e?'\\"':"\\"===e?"\\\\":"\n"===e?"\\n":"\r"===e?"\\r":"\\x0b")}"`:`"${t.replace(/[\\"]/g,"\\$&")}"`;var t}function Sv(e,t,n,i,r){const o=[...e],a=[t,...n,...i].map(e=>e.length).reduce((e,t)=>e+t),s=r.length>0?"{":"{}";return a<=72?o.push([`${t}(${n.join(", ")})`,...i,s].join(" ")):o.push(`${t}(${n.join(", ")})`,i,s),r.length>0&&o.push(r,"}"),o}function Ev(e,{transformName:t}){let n;return"string"==typeof e.type?(/^[A-Z]/.test(e.type)&&e.type,n=e.type):n=t(e.type),[n,e.name].join(" ")}function Cv(e,t=!1){const n=e.map(e=>`// ${e}`);return e.length>0&&t&&n.push("//"),n}function zv(e,{transformName:t}){return e.libraries&&0!==e.libraries.length?e.libraries.sort((e,t)=>e.library.name.localeCompare(t.library.name)).map(e=>{const n=Array.from(e.usingFor).sort((e,t)=>e.localeCompare(t));return`using ${t(e.library)} for ${n.join(", ")};`}):[]}const Ov="blocknumber",Tv=Lg({clock:{kind:"public",args:[],returns:["uint48"],mutability:"view"},CLOCK_MODE:{kind:"public",args:[],returns:["string memory"],mutability:"pure"}});function Uv(e,t,n){"timestamp"===n&&(e.addOverride(t,Tv.clock),e.setFunctionBody(["return uint48(block.timestamp);"],Tv.clock),e.setFunctionComments(["// solhint-disable-next-line func-name-mixedcase"],Tv.CLOCK_MODE),e.addOverride(t,Tv.CLOCK_MODE),e.setFunctionBody(['return "mode=timestamp";'],Tv.CLOCK_MODE))}function Rv(e){if(e<=0)throw new Error(`Number of bits must be positive (actual '${e}').`);if(e%8!=0)throw new Error(`The number of bits must be a multiple of 8 (actual '${e}').`);return BigInt("0x"+"ff".repeat(e/8))}const Av={uint8:Rv(8),uint16:Rv(16),uint32:Rv(32),uint64:Rv(64),uint128:Rv(128),uint256:Rv(256)},Pv=Av.uint256;function Nv(e,t,n){const i=function(e,t){if(!/^\d+$/.test(e))throw new Fg({[t]:"Not a valid number"});return BigInt(e)}(e,t);if(i>Av[n])throw new Fg({[t]:`Value is greater than ${n} max value`});return i}const jv=BigInt(2**32-1),Dv=BigInt(32);function Mv(e,t=!1){return t?{h:Number(e&jv),l:Number(e>>Dv&jv)}:{h:0|Number(e>>Dv&jv),l:0|Number(e&jv)}}function Zv(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Lv(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");
|
|
16
|
+
!function(){"use strict";var e=[],t=[];!function(n,i){if(n&&"undefined"!=typeof document){var r,o=!0===i.prepend?"prepend":"append",a=!0===i.singleTag,s="string"==typeof i.container?document.querySelector(i.container):document.getElementsByTagName("head")[0];if(a){var c=e.indexOf(s);-1===c&&(c=e.push(s)-1,t[c]={}),r=t[c]&&t[c][o]?t[c][o]:t[c][o]=l()}else r=l();65279===n.charCodeAt(0)&&(n=n.substring(1)),r.styleSheet?r.styleSheet.cssText+=n:r.appendChild(document.createTextNode(n))}function l(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),i.attributes)for(var t=Object.keys(i.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],i.attributes[t[n]]);var r="prepend"===o?"afterbegin":"beforeend";return s.insertAdjacentElement(r,e),e}}("pre code.hljs {\n display: block;\n overflow-x: auto;\n padding: 1em\n}\ncode.hljs {\n padding: 3px 5px\n}\n/*\n\nAtom One Dark by Daniel Gamage\nOriginal One Dark Syntax theme from https://github.com/atom/one-dark-syntax\n\nbase: #282c34\nmono-1: #abb2bf\nmono-2: #818896\nmono-3: #5c6370\nhue-1: #56b6c2\nhue-2: #61aeee\nhue-3: #c678dd\nhue-4: #98c379\nhue-5: #e06c75\nhue-5-2: #be5046\nhue-6: #d19a66\nhue-6-2: #e6c07b\n\n*/\n.hljs {\n color: #abb2bf;\n background: #282c34\n}\n.hljs-comment,\n.hljs-quote {\n color: #5c6370;\n font-style: italic\n}\n.hljs-doctag,\n.hljs-keyword,\n.hljs-formula {\n color: #c678dd\n}\n.hljs-section,\n.hljs-name,\n.hljs-selector-tag,\n.hljs-deletion,\n.hljs-subst {\n color: #e06c75\n}\n.hljs-literal {\n color: #56b6c2\n}\n.hljs-string,\n.hljs-regexp,\n.hljs-addition,\n.hljs-attribute,\n.hljs-meta .hljs-string {\n color: #98c379\n}\n.hljs-attr,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-type,\n.hljs-selector-class,\n.hljs-selector-attr,\n.hljs-selector-pseudo,\n.hljs-number {\n color: #d19a66\n}\n.hljs-symbol,\n.hljs-bullet,\n.hljs-link,\n.hljs-meta,\n.hljs-selector-id,\n.hljs-title {\n color: #61aeee\n}\n.hljs-built_in,\n.hljs-title.class_,\n.hljs-class .hljs-title {\n color: #e6c07b\n}\n.hljs-emphasis {\n font-style: italic\n}\n.hljs-strong {\n font-weight: bold\n}\n.hljs-link {\n text-decoration: underline\n}\n\n.visible {\n visibility: visible\n}\n\n.invisible {\n visibility: hidden\n}\n\n.collapse {\n visibility: collapse\n}\n\n.fixed {\n position: fixed\n}\n\n.absolute {\n position: absolute\n}\n\n.relative {\n position: relative\n}\n\n.bottom-1 {\n bottom: 0.25rem\n}\n\n.bottom-4 {\n bottom: 1rem\n}\n\n.bottom-8 {\n bottom: 2rem\n}\n\n.bottom-\\[3\\.75rem\\] {\n bottom: 3.75rem\n}\n\n.left-4 {\n left: 1rem\n}\n\n.right-0 {\n right: 0px\n}\n\n.right-4 {\n right: 1rem\n}\n\n.right-8 {\n right: 2rem\n}\n\n.z-20 {\n z-index: 20\n}\n\n.z-50 {\n z-index: 50\n}\n\n.m-0 {\n margin: 0px\n}\n\n.m-\\[2px\\] {\n margin: 2px\n}\n\n.mb-1 {\n margin-bottom: 0.25rem\n}\n\n.ml-1 {\n margin-left: 0.25rem\n}\n\n.ml-2 {\n margin-left: 0.5rem\n}\n\n.ml-auto {\n margin-left: auto\n}\n\n.mr-2 {\n margin-right: 0.5rem\n}\n\n.block {\n display: block\n}\n\n.flex {\n display: flex\n}\n\n.grid {\n display: grid\n}\n\n.contents {\n display: contents\n}\n\n.hidden {\n display: none\n}\n\n.h-10 {\n height: 2.5rem\n}\n\n.h-14 {\n height: 3.5rem\n}\n\n.h-32 {\n height: 8rem\n}\n\n.h-6 {\n height: 1.5rem\n}\n\n.h-\\[32px\\] {\n height: 32px\n}\n\n.h-\\[36px\\] {\n height: 36px\n}\n\n.h-\\[calc\\(100\\%-188px\\)\\] {\n height: calc(100% - 188px)\n}\n\n.h-\\[calc\\(100\\%-800px\\)\\] {\n height: calc(100% - 800px)\n}\n\n.h-full {\n height: 100%\n}\n\n.max-h-full {\n max-height: 100%\n}\n\n.min-h-0 {\n min-height: 0px\n}\n\n.min-h-\\[200px\\] {\n min-height: 200px\n}\n\n.w-10 {\n width: 2.5rem\n}\n\n.w-32 {\n width: 8rem\n}\n\n.w-6 {\n width: 1.5rem\n}\n\n.w-60 {\n width: 15rem\n}\n\n.w-80 {\n width: 20rem\n}\n\n.w-\\[32px\\] {\n width: 32px\n}\n\n.w-\\[36px\\] {\n width: 36px\n}\n\n.w-\\[40rem\\] {\n width: 40rem\n}\n\n.w-full {\n width: 100%\n}\n\n.min-w-0 {\n min-width: 0px\n}\n\n.min-w-\\[14rem\\] {\n min-width: 14rem\n}\n\n.min-w-\\[40px\\] {\n min-width: 40px\n}\n\n.max-w-\\[400px\\] {\n max-width: 400px\n}\n\n.max-w-\\[42\\%\\] {\n max-width: 42%\n}\n\n.flex-1 {\n flex: 1 1 0%\n}\n\n.flex-none {\n flex: none\n}\n\n.shrink-0 {\n flex-shrink: 0\n}\n\n.grow {\n flex-grow: 1\n}\n\n.basis-0 {\n flex-basis: 0px\n}\n\n.rotate-45 {\n --tw-rotate: 45deg;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0\n }\n 100% {\n opacity: 1\n }\n}\n\n.animate-fade-in {\n animation: fade-in 0.3s ease-out\n}\n\n@keyframes fade-up {\n 0% {\n opacity: 0;\n transform: translateY(1rem)\n }\n 100% {\n opacity: 1;\n transform: translateY(0)\n }\n}\n\n.animate-fade-up {\n animation: fade-up 0.2s ease-out\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg)\n }\n}\n\n.animate-spin-slow {\n animation: spin 2s linear infinite\n}\n\n.cursor-pointer {\n cursor: pointer\n}\n\n.resize-none {\n resize: none\n}\n\n.resize {\n resize: both\n}\n\n.grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr))\n}\n\n.grid-cols-\\[2fr\\2c 1fr\\] {\n grid-template-columns: 2fr 1fr\n}\n\n.flex-row {\n flex-direction: row\n}\n\n.flex-col {\n flex-direction: column\n}\n\n.flex-col-reverse {\n flex-direction: column-reverse\n}\n\n.flex-wrap {\n flex-wrap: wrap\n}\n\n.items-center {\n align-items: center\n}\n\n.justify-center {\n justify-content: center\n}\n\n.justify-between {\n justify-content: space-between\n}\n\n.gap-2 {\n gap: 0.5rem\n}\n\n.gap-3 {\n gap: 0.75rem\n}\n\n.gap-4 {\n gap: 1rem\n}\n\n.overflow-auto {\n overflow: auto\n}\n\n.overflow-hidden {\n overflow: hidden\n}\n\n.overflow-x-auto {\n overflow-x: auto\n}\n\n.overflow-y-auto {\n overflow-y: auto\n}\n\n.rounded-full {\n border-radius: 9999px\n}\n\n.rounded-md {\n border-radius: 0.375rem\n}\n\n.rounded-xl {\n border-radius: 0.75rem\n}\n\n.border {\n border-width: 1px\n}\n\n.border-0 {\n border-width: 0px\n}\n\n.border-b {\n border-bottom-width: 1px\n}\n\n.border-r {\n border-right-width: 1px\n}\n\n.border-solid {\n border-style: solid\n}\n\n.border-none {\n border-style: none\n}\n\n.border-\\[var\\(--gray-3\\)\\] {\n border-color: var(--gray-3)\n}\n\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1))\n}\n\n.bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-400 {\n --tw-bg-opacity: 1;\n background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1))\n}\n\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1))\n}\n\n.bg-transparent {\n background-color: transparent\n}\n\n.p-2 {\n padding: 0.5rem\n}\n\n.p-3 {\n padding: 0.75rem\n}\n\n.p-4 {\n padding: 1rem\n}\n\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem\n}\n\n.pr-2 {\n padding-right: 0.5rem\n}\n\n.text-center {\n text-align: center\n}\n\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem\n}\n\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n\n.font-bold {\n font-weight: 700\n}\n\n.lowercase {\n text-transform: lowercase\n}\n\n.italic {\n font-style: italic\n}\n\n.text-gray-50 {\n --tw-text-opacity: 1;\n color: rgb(249 250 251 / var(--tw-text-opacity, 1))\n}\n\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1))\n}\n\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1))\n}\n\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n\n.underline {\n text-decoration-line: underline\n}\n\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.shadow-xl {\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)\n}\n\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)\n}\n\n*,\n*:before,\n*:after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nhtml {\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n}\n\ncode {\n font-family: var(--monospace);\n font-size: 1em;\n}\n\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit;\n font-size: inherit;\n color: inherit;\n}\n:root {\n --sans-serif: system-ui, sans-serif;\n --monospace: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;\n\n /* Colors */\n\n --text-color: #333333;\n\n --gray-1: #f9fafb;\n --gray-2: #eff1f3;\n --gray-3: #d8dbe2;\n --gray-4: #818998;\n --gray-5: #575c66;\n --gray-6: #2c374b;\n\n --blue-1: #f5f6ff;\n --blue-2: #4e5de4;\n --blue-3: #343f9d;\n\n --yellow-1: #fffaeb;\n --yellow-2: #ffcc33;\n --yellow-3: #b27700;\n\n --red-1: #feecec;\n --red-2: #f53d3d;\n --red-3: #aa0909;\n\n --solidity-blue-1: #51d4ff;\n --solidity-blue-2: #4e5de4;\n\n --cairo-orange: #fe4a3c;\n\n --polkadot-pink: #ff2670;\n\n --stylus-pink: #e3066e;\n\n --stellar-black: #0f0f0f;\n\n --confidential-black: #000000;\n --confidential-yellow: #ffd208;\n\n --uniswap-pink: #f50eb4;\n\n /* TRON Red, per the official brand palette (PANTONE 185C). */\n --tron-red: #dc062b;\n\n /* Dimensions (scale taken from Tailwind) */\n\n --size-1: 0.25rem;\n --size-2: 0.5rem;\n --size-3: 0.75rem;\n --size-4: 1rem;\n --size-8: 2rem;\n --size-64: 16rem;\n\n /* Font Sizes */\n\n --text-small: 0.875rem;\n\n /* Utilities */\n\n --shadow: 0 2px 3px rgba(0, 0, 0, 0.1);\n\n --icon-adjust: 0.125em;\n}\n.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}\n[data-tippy-root]{max-width:calc(100vw - 10px)}\n.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}\n.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}\n.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}\n.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}\n.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}\n.tippy-box[data-placement^=left]>.tippy-arrow{right:0}\n.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}\n.tippy-box[data-placement^=right]>.tippy-arrow{left:0}\n.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}\n.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}\n.tippy-arrow{width:16px;height:16px;color:#333}\n.tippy-arrow:before{content:\"\";position:absolute;border-color:transparent;border-style:solid}\n.tippy-content{position:relative;padding:5px 9px;z-index:1}\n.tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}\n.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}\n.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}\n.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}\n.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}\n.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}\n.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}\n:root {\n --tippy-background: #333;\n --tippy-text: var(--gray-3);\n --tippy-border: rgba(0, 8, 16, 0.15);\n}\n.tippy-box[data-theme~='light'] {\n --tippy-background: #fffffff5;\n --tippy-text: #333;\n}\n.tippy-box[data-theme~='light-yellow'] {\n --tippy-background: var(--yellow-1);\n --tippy-text: #333;\n}\n.tippy-box[data-theme~='light-red'] {\n --tippy-background: var(--red-1);\n --tippy-text: #333;\n}\n.tippy-box {\n background-color: var(--tippy-background);\n background-clip: padding-box;\n color: var(--tippy-text);\n box-shadow: var(--shadow);\n font-weight: initial;\n font-variant: initial;\n text-transform: none;\n}\n.tippy-box[data-theme~='border'] {\n border: 1px solid var(--tippy-border);\n}\n.tippy-box > .tippy-backdrop {\n background-color: var(--tippy-background);\n}\n.tippy-box[data-theme~='border'] > .tippy-arrow:after {\n content: '';\n position: absolute;\n z-index: -1;\n border-color: transparent;\n border-style: solid;\n}\n.tippy-box[data-placement^='top'] > .tippy-arrow:before {\n border-top-color: var(--tippy-background);\n}\n.tippy-box[data-placement^='bottom'] > .tippy-arrow:before {\n border-bottom-color: var(--tippy-background);\n bottom: 16px;\n}\n.tippy-box[data-placement^='left'] > .tippy-arrow:before {\n border-left-color: var(--tippy-background);\n}\n.tippy-box[data-placement^='right'] > .tippy-arrow:before {\n border-right-color: var(--tippy-background);\n right: 16px;\n}\n.tippy-box[data-theme~='border'][data-placement^='top'] > .tippy-arrow:after {\n border-top-color: var(--tippy-border);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px;\n}\n.tippy-box[data-theme~='border'][data-placement^='bottom'] > .tippy-arrow:after {\n border-bottom-color: var(--tippy-border);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px;\n}\n.tippy-box[data-theme~='border'][data-placement^='left'] > .tippy-arrow:after {\n border-left-color: var(--tippy-border);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px;\n}\n.tippy-box[data-theme~='border'][data-placement^='right'] > .tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: var(--tippy-border);\n}\n.container {\n background-color: var(--gray-1);\n min-width: 0;\n width: 100%;\n box-sizing: border-box;\n}\n.wizard-panes {\n position: relative;\n min-width: 0;\n}\n.wizard-panes .controls,\n.wizard-panes .output {\n height: calc(100vh - 84px);\n min-width: 0;\n}\n.header .tab {\n flex: 1 1 auto;\n min-width: 0;\n}\n.wizard-panes::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: 0;\n width: var(--controls-fade-width, 18rem);\n max-width: 100%;\n height: 4.5rem;\n pointer-events: none;\n background: linear-gradient(to top, rgb(255, 255, 255) 25%, rgba(255, 255, 255, 0.85) 55%, transparent);\n border-bottom-left-radius: 1.5rem;\n z-index: 1;\n opacity: 1;\n transition: opacity 0.15s ease;\n}\n.wizard-panes.controls-at-end::after {\n opacity: 0;\n}\n.wizard-panes .controls {\n scrollbar-width: thin;\n scrollbar-color: var(--gray-3) transparent;\n}\n.wizard-panes .controls::-webkit-scrollbar {\n width: 8px;\n}\n.wizard-panes .controls::-webkit-scrollbar-thumb {\n background: var(--gray-3);\n border-radius: 8px;\n}\n@media (max-width: 720px) {\n .container,\n .page-container {\n overflow: visible;\n }\n\n /* Flatten wrappers so the stack is tabs → options → actions → code. */\n .header,\n .wizard-panes {\n display: contents;\n }\n\n .wizard-panes::after {\n display: none;\n }\n\n .tab {\n order: 0;\n flex: 0 0 auto;\n width: 100%;\n min-width: 0;\n }\n\n .wizard-panes .controls,\n .wizard-panes .output {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n height: auto;\n resize: none;\n }\n\n .wizard-panes .controls {\n order: 1;\n /* rem, not vh: the embed iframe is sized to content, so vh would recurse. */\n max-height: 22rem;\n border-radius: 1.5rem;\n box-shadow: none;\n -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);\n mask-image: linear-gradient(to bottom, #000 78%, transparent);\n }\n\n .wizard-panes.controls-at-end .controls {\n -webkit-mask-image: none;\n mask-image: none;\n }\n\n .action {\n order: 2;\n z-index: 5;\n justify-content: flex-end;\n flex-wrap: nowrap;\n width: 100%;\n box-sizing: border-box;\n margin-left: 0;\n /* Collapse the container gap so this toolbar sits on the code card. */\n margin-bottom: -1rem;\n padding: 0.4rem 0.6rem;\n background-color: white;\n border-radius: 1.5rem 1.5rem 0 0;\n }\n\n .action .action-button {\n padding: 7px 12px;\n }\n\n .wizard-panes .output {\n order: 3;\n min-height: 32rem;\n margin-top: 0;\n border-radius: 0 0 1.5rem 1.5rem;\n }\n}\n.header {\n font-size: var(--text-small);\n}\n.tab {\n color: var(--gray-5);\n}\n.tab button:hover,\n.overflow-btn:hover {\n background-color: var(--gray-2);\n}\n/* Global .overflow-menu button with .selected class */\n.overflow-menu button.selected {\n order: unset;\n}\n.tab button,\n.overflow-btn {\n border: 0;\n background-color: transparent;\n padding: var(--size-2) var(--size-4);\n border-radius: 20px;\n cursor: pointer;\n transition: background-color ease-in-out 0.2s;\n}\n/* Global .action-button */\n.action-button {\n padding: 7px;\n border-radius: 20px;\n transition: background-color ease-in-out 0.2s;\n background-color: var(--gray-1);\n border: 1px solid var(--gray-3);\n color: var(--gray-6);\n cursor: pointer;\n}\n/* Hover and active states for .action-button */\n.action-button:hover {\n background-color: var(--gray-2);\n}\n.action-button:active,\n.action-button.active {\n background-color: var(--gray-2);\n}\n/* .icon inside .action-button */\n.action-button .icon {\n margin: 0 var(--size-1);\n}\n/* Disabled state */\n.action-button.disabled {\n color: var(--gray-4);\n}\n/* Button with text */\n.with-text {\n padding-right: var(--size-3);\n}\n/* Controls container */\n.controls {\n background-color: white;\n padding: var(--size-4);\n}\n/* Controls footer */\n.controls-footer {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n color: var(--gray-5);\n margin-top: var(--size-3);\n padding: 0 var(--size-2);\n font-size: var(--text-small);\n}\n/* Apply left margin to every element after the first child */\n.controls-footer > * + * {\n margin-left: var(--size-3);\n}\n/* .icon inside .controls-footer */\n.controls-footer .icon {\n margin-right: 0.2em;\n opacity: 0.8;\n}\n/* Links inside .controls-footer */\n.controls-footer a {\n color: inherit;\n text-decoration: none;\n}\n/* Hover effect for links */\n.controls-footer a:hover {\n color: var(--text-color);\n}\n.download-option-content {\n margin-left: var(--size-3);\n font-size: var(--text-small);\n}\n.download-option-content > :first-child {\n margin-bottom: var(--size-2);\n color: var(--gray-6);\n font-weight: bold;\n}\n.download-option-content > :not(:first-child) {\n margin-top: var(--size-1);\n color: var(--gray-5);\n}\n.download-option {\n display: flex;\n padding: var(--size-2);\n text-align: left;\n background: none;\n border: 1px solid transparent;\n border-radius: 4px;\n cursor: pointer;\n}\n/* The .icon inside .download-option */\n.download-option :global(.icon) {\n margin-top: var(--icon-adjust);\n}\n/* When the previous sibling is not hovered */\n:not(:hover) + .download-option {\n border-top: 1px solid var(--gray-2);\n}\n/* Hover and focus states */\n.download-option:hover,\n.download-option:focus {\n background-color: var(--gray-1);\n border: 1px solid var(--gray-3);\n}\n/* Direct or nested div inside .download-option */\n.download-option div {\n display: block;\n}\n\n/* General */\n\nbody {\n color: var(--text-color);\n font-family: var(--sans-serif);\n}\n\nsvg.vertical-align {\n vertical-align: calc(-1 * var(--icon-adjust));\n}\n\nsvg.keepcolor {\n fill: currentColor;\n}\n\nsvg.icon {\n vertical-align: calc(-1 * var(--icon-adjust));\n flex: 0 0 auto;\n height: 1em;\n width: 1em;\n fill: currentColor;\n}\n\ninput:not([type]),\ninput[type='text'],\ninput[type='number'],\ninput[type='datetime-local'] {\n border: 1px solid var(--gray-3);\n padding: var(--size-2) var(--size-3);\n border-radius: 6px;\n}\n\n/* Hide up and down arrows in numeric input fields */\n\ninput[type='number']::-webkit-outer-spin-button,\ninput[type='number']::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\ninput[type='number'] {\n -moz-appearance: textfield;\n -webkit-appearance: textfield;\n appearance: textfield;\n}\n\n/* Components */\n\n.controls-section {\n display: flex;\n flex-direction: column;\n}\n\n.controls-section + .controls-section {\n margin-top: var(--size-4);\n padding-top: var(--size-4);\n border-top: 1px solid var(--gray-3);\n }\n\n.controls-section > * + * {\n margin-top: var(--size-3);\n }\n\n.controls-section h1 {\n margin-top: 0;\n margin-bottom: 0;\n text-transform: lowercase;\n font-variant: small-caps;\n font-size: var(--text-small);\n color: var(--gray-4);\n font-weight: 600;\n }\n\n.subcontrol::before {\n content: '└';\n color: var(--gray-3);\n}\n\n.checkbox-group {\n display: flex;\n flex-direction: column;\n}\n\n.checkbox-group > * {\n display: flex;\n align-items: center;\n padding: var(--size-2);\n }\n\n.checkbox-group input {\n margin-right: var(--size-2);\n }\n\n.checkbox-group .tooltip {\n margin-left: auto;\n }\n\n.checkbox-group .checked {\n background-color: var(--blue-1);\n }\n\n.labeled-input {\n display: flex;\n flex-direction: column;\n}\n\n.labeled-input > span {\n font-size: var(--text-small);\n }\n\n.labeled-input > input {\n margin-top: var(--size-1);\n width: 100%;\n }\n\n.tooltip-container,\n.checkbox-group > *,\n.labeled-input {\n --tooltip-opacity: 0.15;\n}\n\n.tooltip-container:hover, .checkbox-group > *:hover, .labeled-input:hover {\n --tooltip-opacity: 0.5;\n }\n\ninput.input-inline {\n padding: 0.25em;\n height: 1.5em;\n width: 2em;\n max-width: 100%;\n text-align: center;\n}\n\n.has-error {\n box-shadow: inset 0 0 0 1px var(--red-2);\n}\n\n.import-link {\n color: inherit;\n}\n\n.comment-link {\n color: #7d828d;\n}\n\n.glimmery {\n background: conic-gradient(rgb(196, 181, 253), rgb(110, 231, 183), rgb(249, 168, 212));\n}\n\n.hljs.-solidity {\n background: linear-gradient(30deg, #151a24, #2b323e);\n}\n\n.hljs.-cairo {\n background: linear-gradient(30deg, #191717, #2a0f0f);\n}\n\n.hljs.-stylus {\n background: linear-gradient(30deg, #181215, #360c1f);\n}\n\n.light-link {\n color: white;\n}\n\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))\n}\n\n.hover\\:bg-white:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))\n}\n",{});const n=Object.freeze({status:"aborted"});function i(e,t,n){function i(n,i){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:i,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,i);const r=a.prototype,o=Object.keys(r);for(let e=0;e<o.length;e++){const t=o[e];t in n||(n[t]=r[t].bind(n))}}const r=n?.Parent??Object;class o extends r{}function a(e){var t;const r=n?.Parent?new o:this;i(r,e),(t=r._zod).deferred??(t.deferred=[]);for(const e of r._zod.deferred)e();return r}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}const r=Symbol("zod_brand");class o extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class a extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const s={};function c(e){return e&&Object.assign(s,e),s}function l(e){const t=Object.values(e).filter(e=>"number"==typeof e),n=Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t);return n}function u(e,t="|"){return e.map(e=>T(e)).join(t)}function d(e,t){return"bigint"==typeof t?t.toString():t}function p(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function m(e){return null==e}function f(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function h(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(0===r&&/\d?e-\d?/.test(i)){const e=i.match(/\d?e-(\d?)/);e?.[1]&&(r=Number.parseInt(e[1]))}const o=n>r?n:r;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}const g=Symbol("evaluating");function v(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==g)return void 0===i&&(i=g,i=n()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function b(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function $(...e){const t={};for(const n of e){const e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function y(e){return JSON.stringify(e)}function k(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const _="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function x(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const w=p(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function C(e){if(!1===x(e))return!1;const t=e.constructor;if(void 0===t)return!0;if("function"!=typeof t)return!0;const n=t.prototype;return!1!==x(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function I(e){return C(e)?{...e}:Array.isArray(e)?[...e]:e}const E=new Set(["string","number","symbol"]),S=new Set(["string","number","bigint","boolean","symbol","undefined"]);function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function O(e,t,n){const i=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(i._zod.parent=e),i}function A(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function T(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function P(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}const U={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},R={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function N(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return O(e,$(e._zod.def,{get shape(){const e={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(e[i]=n.shape[i])}return b(this,"shape",e),e},checks:[]}))}function j(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const r=$(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const e in t){if(!(e in n.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete i[e]}return b(this,"shape",i),i},checks:[]});return O(e,r)}function D(e,t){if(!C(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const n=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=$(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return b(this,"shape",n),n}});return O(e,i)}function M(e,t){if(!C(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=$(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return b(this,"shape",n),n}});return O(e,n)}function Z(e,t){const n=$(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return b(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return O(e,n)}function L(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=$(t._zod.def,{get shape(){const i=t._zod.def.shape,r={...i};if(n)for(const t in n){if(!(t in i))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(r[t]=e?new e({type:"optional",innerType:i[t]}):i[t])}else for(const t in i)r[t]=e?new e({type:"optional",innerType:i[t]}):i[t];return b(this,"shape",r),r},checks:[]});return O(t,r)}function B(e,t,n){const i=$(t._zod.def,{get shape(){const i=t._zod.def.shape,r={...i};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(r[t]=new e({type:"nonoptional",innerType:i[t]}))}else for(const t in i)r[t]=new e({type:"nonoptional",innerType:i[t]});return b(this,"shape",r),r}});return O(t,i)}function q(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function F(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function H(e){return"string"==typeof e?e:e?.message}function V(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const r=H(e.inst?._zod.def?.error?.(e))??H(t?.error?.(e))??H(n.customError?.(e))??H(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function W(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function J(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function G(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(null===e)return"null";if(Array.isArray(e))return"array";const t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}}return t}function K(...e){const[t,n,i]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:i}:{...t}}function X(e){const t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Y(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Q=Object.freeze({__proto__:null,BIGINT_FORMAT_RANGES:R,Class:class{constructor(...e){}},NUMBER_FORMAT_RANGES:U,aborted:q,allowsEval:w,assert:function(e){},assertEqual:function(e){return e},assertIs:function(e){},assertNever:function(e){throw new Error("Unexpected value in exhaustive check")},assertNotEqual:function(e){return e},assignProp:b,base64ToUint8Array:X,base64urlToUint8Array:function(e){const t=e.replace(/-/g,"+").replace(/_/g,"/");return X(t+"=".repeat((4-t.length%4)%4))},cached:p,captureStackTrace:_,cleanEnum:function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},cleanRegex:f,clone:O,cloneDef:function(e){return $(e._zod.def)},createTransparentProxy:function(e){let t;return new Proxy({},{get:(n,i,r)=>(t??(t=e()),Reflect.get(t,i,r)),set:(n,i,r,o)=>(t??(t=e()),Reflect.set(t,i,r,o)),has:(n,i)=>(t??(t=e()),Reflect.has(t,i)),deleteProperty:(n,i)=>(t??(t=e()),Reflect.deleteProperty(t,i)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,i)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)),defineProperty:(n,i,r)=>(t??(t=e()),Reflect.defineProperty(t,i,r))})},defineLazy:v,esc:y,escapeRegex:z,extend:D,finalizeIssue:V,floatSafeRemainder:h,getElementAtPath:function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},getEnumValues:l,getLengthableOrigin:J,getParsedType:e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":"undefined"!=typeof Map&&e instanceof Map?"map":"undefined"!=typeof Set&&e instanceof Set?"set":"undefined"!=typeof Date&&e instanceof Date?"date":"undefined"!=typeof File&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},getSizableOrigin:W,hexToUint8Array:function(e){const t=e.replace(/^0x/,"");if(t.length%2!=0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n},isObject:x,isPlainObject:C,issue:K,joinValues:u,jsonStringifyReplacer:d,merge:Z,mergeDefs:$,normalizeParams:A,nullish:m,numKeys:function(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},objectClone:function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},omit:j,optionalKeys:P,parsedType:G,partial:L,pick:N,prefixIssues:F,primitiveTypes:S,promiseAllObject:function(e){const t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{const n={};for(let i=0;i<t.length;i++)n[t[i]]=e[i];return n})},propertyKeyTypes:E,randomString:function(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(26*Math.random())];return n},required:B,safeExtend:M,shallowClone:I,slugify:k,stringifyPrimitive:T,uint8ArrayToBase64:Y,uint8ArrayToBase64url:function(e){return Y(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},uint8ArrayToHex:function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},unwrapMessage:H});const ee=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,d,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},te=i("$ZodError",ee),ne=i("$ZodError",ee,{Parent:Error});function ie(e,t=e=>e.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function re(e,t=e=>e.message){const n={_errors:[]},i=e=>{for(const r of e.issues)if("invalid_union"===r.code&&r.errors.length)r.errors.map(e=>i({issues:e}));else if("invalid_key"===r.code)i({issues:r.issues});else if("invalid_element"===r.code)i({issues:r.issues});else if(0===r.path.length)n._errors.push(t(r));else{let e=n,i=0;for(;i<r.path.length;){const n=r.path[i];i===r.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(r))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}function oe(e,t=e=>e.message){const n={errors:[]},i=(e,r=[])=>{var o,a;for(const s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>i({issues:e},s.path));else if("invalid_key"===s.code)i({issues:s.issues},s.path);else if("invalid_element"===s.code)i({issues:s.issues},s.path);else{const e=[...r,...s.path];if(0===e.length){n.errors.push(t(s));continue}let i=n,c=0;for(;c<e.length;){const n=e[c],r=c===e.length-1;"string"==typeof n?(i.properties??(i.properties={}),(o=i.properties)[n]??(o[n]={errors:[]}),i=i.properties[n]):(i.items??(i.items=[]),(a=i.items)[n]??(a[n]={errors:[]}),i=i.items[n]),r&&i.errors.push(t(s)),c++}}};return i(e),n}function ae(e){const t=[],n=e.map(e=>"object"==typeof e?e.key:e);for(const e of n)"number"==typeof e?t.push(`[${e}]`):"symbol"==typeof e?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push("."),t.push(e));return t.join("")}function se(e){const t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(const e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ae(e.path)}`);return t.join("\n")}const ce=e=>(t,n,i,r)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new o;if(s.issues.length){const t=new(r?.Err??e)(s.issues.map(e=>V(e,a,c())));throw _(t,r?.callee),t}return s.value},le=ce(ne),ue=e=>async(t,n,i,r)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const t=new(r?.Err??e)(a.issues.map(e=>V(e,o,c())));throw _(t,r?.callee),t}return a.value},de=ue(ne),pe=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},r);if(a instanceof Promise)throw new o;return a.issues.length?{success:!1,error:new(e??te)(a.issues.map(e=>V(e,r,c())))}:{success:!0,data:a.value}},me=pe(ne),fe=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>V(e,r,c())))}:{success:!0,data:o.value}},he=fe(ne),ge=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ce(e)(t,n,r)},ve=ge(ne),be=e=>(t,n,i)=>ce(e)(t,n,i),$e=be(ne),ye=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ue(e)(t,n,r)},ke=ye(ne),_e=e=>async(t,n,i)=>ue(e)(t,n,i),xe=_e(ne),we=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return pe(e)(t,n,r)},Ce=we(ne),Ie=e=>(t,n,i)=>pe(e)(t,n,i),Ee=Ie(ne),Se=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return fe(e)(t,n,r)},ze=Se(ne),Oe=e=>async(t,n,i)=>fe(e)(t,n,i),Ae=Oe(ne),Te=/^[cC][^\s-]{8,}$/,Pe=/^[0-9a-z]+$/,Ue=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Re=/^[0-9a-vA-V]{20}$/,Ne=/^[A-Za-z0-9]{27}$/,je=/^[a-zA-Z0-9_-]{21}$/,De=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Me=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ze=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Le=Ze(4),Be=Ze(6),qe=Ze(7),Fe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,He=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Ve=He;function We(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}const Je=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ge=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ke=e=>{const t=z(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Xe=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ye=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,et=/^[A-Za-z0-9_-]*$/,tt=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,nt=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,it=/^\+[1-9]\d{6,14}$/,rt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ot=new RegExp(`^${rt}$`);function at(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function st(e){return new RegExp(`^${at(e)}$`)}function ct(e){const t=at({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${rt}T(?:${i})$`)}const lt=e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`),ut=/^-?\d+n?$/,dt=/^-?\d+$/,pt=/^-?\d+(?:\.\d+)?$/,mt=/^(?:true|false)$/i,ft=/^null$/i,ht=/^undefined$/i,gt=/^[^A-Z]*$/,vt=/^[^a-z]*$/,bt=/^[0-9a-fA-F]*$/;function $t(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function yt(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const kt=$t(22,"=="),_t=yt(22),xt=$t(27,"="),wt=yt(27),Ct=$t(43,"="),It=yt(43),Et=$t(64,""),St=yt(64),zt=$t(86,"=="),Ot=yt(86);var At=Object.freeze({__proto__:null,base64:Qe,base64url:et,bigint:ut,boolean:mt,browserEmail:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cidrv4:Xe,cidrv6:Ye,cuid:Te,cuid2:Pe,date:ot,datetime:ct,domain:nt,duration:De,e164:it,email:Fe,emoji:We,extendedDuration:/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,guid:Me,hex:bt,hostname:tt,html5Email:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,idnEmail:Ve,integer:dt,ipv4:Je,ipv6:Ge,ksuid:Ne,lowercase:gt,mac:Ke,md5_base64:kt,md5_base64url:_t,md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:je,null:ft,number:pt,rfc5322Email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,sha1_base64:xt,sha1_base64url:wt,sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Ct,sha256_base64url:It,sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Et,sha384_base64url:St,sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:zt,sha512_base64url:Ot,sha512_hex:/^[0-9a-fA-F]{128}$/,string:lt,time:st,ulid:Ue,undefined:ht,unicodeEmail:He,uppercase:vt,uuid:Ze,uuid4:Le,uuid6:Be,uuid7:qe,xid:Re});const Tt=i("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Pt={number:"number",bigint:"bigint",object:"date"},Ut=i("$ZodCheckLessThan",(e,t)=>{Tt.init(e,t);const n=Pt[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rt=i("$ZodCheckGreaterThan",(e,t)=>{Tt.init(e,t);const n=Pt[typeof t.value];e._zod.onattach.push(e=>{const n=e._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nt=i("$ZodCheckMultipleOf",(e,t)=>{Tt.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===h(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),jt=i("$ZodCheckNumberFormat",(e,t)=>{Tt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[r,o]=U[t.format];e._zod.onattach.push(e=>{const i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o,n&&(i.pattern=dt)}),e._zod.check=a=>{const s=a.value;if(n){if(!Number.isInteger(s))return void a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}))}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Dt=i("$ZodCheckBigIntFormat",(e,t)=>{Tt.init(e,t);const[n,i]=R[t.format];e._zod.onattach.push(e=>{const r=e._zod.bag;r.format=t.format,r.minimum=n,r.maximum=i}),e._zod.check=r=>{const o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Mt=i("$ZodCheckMaxSize",(e,t)=>{var n;Tt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;i.size<=t.maximum||n.issues.push({origin:W(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Zt=i("$ZodCheckMinSize",(e,t)=>{var n;Tt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;i.size>=t.minimum||n.issues.push({origin:W(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Lt=i("$ZodCheckSizeEquals",(e,t)=>{var n;Tt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{const i=n.value,r=i.size;if(r===t.size)return;const o=r>t.size;n.issues.push({origin:W(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Bt=i("$ZodCheckMaxLength",(e,t)=>{var n;Tt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const i=n.value;if(i.length<=t.maximum)return;const r=J(i);n.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qt=i("$ZodCheckMinLength",(e,t)=>{var n;Tt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const i=n.value;if(i.length>=t.minimum)return;const r=J(i);n.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ft=i("$ZodCheckLengthEquals",(e,t)=>{var n;Tt.init(e,t),(n=e._zod.def).when??(n.when=e=>{const t=e.value;return!m(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{const i=n.value,r=i.length;if(r===t.length)return;const o=J(i),a=r>t.length;n.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Ht=i("$ZodCheckStringFormat",(e,t)=>{var n,i;Tt.init(e,t),e._zod.onattach.push(e=>{const n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Vt=i("$ZodCheckRegex",(e,t)=>{Ht.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wt=i("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gt),Ht.init(e,t)}),Jt=i("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=vt),Ht.init(e,t)}),Gt=i("$ZodCheckIncludes",(e,t)=>{Tt.init(e,t);const n=z(t.includes),i=new RegExp("number"==typeof t.position?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Kt=i("$ZodCheckStartsWith",(e,t)=>{Tt.init(e,t);const n=new RegExp(`^${z(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Xt=i("$ZodCheckEndsWith",(e,t)=>{Tt.init(e,t);const n=new RegExp(`.*${z(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Yt(e,t,n){e.issues.length&&t.issues.push(...F(n,e.issues))}const Qt=i("$ZodCheckProperty",(e,t)=>{Tt.init(e,t),e._zod.check=e=>{const n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Yt(n,e,t.property));Yt(n,e,t.property)}}),en=i("$ZodCheckMimeType",(e,t)=>{Tt.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),tn=i("$ZodCheckOverwrite",(e,t)=>{Tt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class nn{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),i=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of i)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const rn={major:4,minor:3,patch:6},on=i("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rn;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const t of i)for(const n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let i,r=q(e);for(const a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;const t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new o;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s;e.issues.length!==t&&(r||(r=q(e,t)))});else{if(e.issues.length===t)continue;r||(r=q(e,t))}}return i?i.then(()=>e):e},n=(n,r,a)=>{if(q(n))return n.aborted=!0,n;const s=t(r,i,a);if(s instanceof Promise){if(!1===a.async)throw new o;return s.then(t=>e._zod.parse(t,a))}return e._zod.parse(s,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if("backward"===a.direction){const t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}const s=e._zod.parse(r,a);if(s instanceof Promise){if(!1===a.async)throw new o;return s.then(e=>t(e,i,a))}return t(s,i,a)}}v(e,"~standard",()=>({validate:t=>{try{const n=me(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return he(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),an=i("$ZodString",(e,t)=>{on.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??lt(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch(i){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),sn=i("$ZodStringFormat",(e,t)=>{Ht.init(e,t),an.init(e,t)}),cn=i("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Me),sn.init(e,t)}),ln=i("$ZodUUID",(e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ze(e))}else t.pattern??(t.pattern=Ze());sn.init(e,t)}),un=i("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fe),sn.init(e,t)}),dn=i("$ZodURL",(e,t)=>{sn.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=r.href:n.value=i)}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),pn=i("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=We()),sn.init(e,t)}),mn=i("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=je),sn.init(e,t)}),fn=i("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Te),sn.init(e,t)}),hn=i("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Pe),sn.init(e,t)}),gn=i("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ue),sn.init(e,t)}),vn=i("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Re),sn.init(e,t)}),bn=i("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ne),sn.init(e,t)}),$n=i("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ct(t)),sn.init(e,t)}),yn=i("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ot),sn.init(e,t)}),kn=i("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=st(t)),sn.init(e,t)}),_n=i("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=De),sn.init(e,t)}),xn=i("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Je),sn.init(e,t),e._zod.bag.format="ipv4"}),wn=i("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ge),sn.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Cn=i("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ke(t.delimiter)),sn.init(e,t),e._zod.bag.format="mac"}),In=i("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Xe),sn.init(e,t)}),En=i("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ye),sn.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(2!==i.length)throw new Error;const[e,t]=i;if(!t)throw new Error;const n=Number(t);if(`${n}`!==t)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Sn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const zn=i("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Qe),sn.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Sn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function On(e){if(!et.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return Sn(t.padEnd(4*Math.ceil(t.length/4),"="))}const An=i("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=et),sn.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{On(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Tn=i("$ZodE164",(e,t)=>{t.pattern??(t.pattern=it),sn.init(e,t)});function Pn(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return(!("typ"in r)||"JWT"===r?.typ)&&(!!r.alg&&(!t||"alg"in r&&r.alg===t))}catch{return!1}}const Un=i("$ZodJWT",(e,t)=>{sn.init(e,t),e._zod.check=n=>{Pn(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Rn=i("$ZodCustomStringFormat",(e,t)=>{sn.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Nn=i("$ZodNumber",(e,t)=>{on.init(e,t),e._zod.pattern=e._zod.bag.pattern??pt,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}const r=n.value;if("number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r))return n;const o="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),jn=i("$ZodNumberFormat",(e,t)=>{jt.init(e,t),Nn.init(e,t)}),Dn=i("$ZodBoolean",(e,t)=>{on.init(e,t),e._zod.pattern=mt,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(e){}const r=n.value;return"boolean"==typeof r||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Mn=i("$ZodBigInt",(e,t)=>{on.init(e,t),e._zod.pattern=ut,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Zn=i("$ZodBigIntFormat",(e,t)=>{Dt.init(e,t),Mn.init(e,t)}),Ln=i("$ZodSymbol",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>{const i=t.value;return"symbol"==typeof i||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),Bn=i("$ZodUndefined",(e,t)=>{on.init(e,t),e._zod.pattern=ht,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{const i=t.value;return void 0===i||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),qn=i("$ZodNull",(e,t)=>{on.init(e,t),e._zod.pattern=ft,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const i=t.value;return null===i||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),Fn=i("$ZodAny",(e,t)=>{on.init(e,t),e._zod.parse=e=>e}),Hn=i("$ZodUnknown",(e,t)=>{on.init(e,t),e._zod.parse=e=>e}),Vn=i("$ZodNever",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),Wn=i("$ZodVoid",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>{const i=t.value;return void 0===i||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),Jn=i("$ZodDate",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(e){}const r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Gn(e,t,n){e.issues.length&&t.issues.push(...F(n,e.issues)),t.value[n]=e.value}const Kn=i("$ZodArray",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let e=0;e<r.length;e++){const a=r[e],s=t.element._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(t=>Gn(t,n,e))):Gn(s,n,e)}return o.length?Promise.all(o).then(()=>n):n}});function Xn(e,t,n,i,r){if(e.issues.length){if(r&&!(n in i))return;t.issues.push(...F(n,e.issues))}void 0===e.value?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Yn(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const n=P(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Qn(e,t,n,i,r,o){const a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,u="optional"===c.optout;for(const r in t){if(s.has(r))continue;if("never"===l){a.push(r);continue}const o=c.run({value:t[r],issues:[]},i);o instanceof Promise?e.push(o.then(e=>Xn(e,n,r,t,u))):Xn(o,n,r,t,u)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const ei=i("$ZodObject",(e,t)=>{on.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){const e=t.shape;Object.defineProperty(t,"shape",{get:()=>{const n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}const i=p(()=>Yn(t));v(e._zod,"propValues",()=>{const e=t.shape,n={};for(const t in e){const i=e[t]._zod;if(i.values){n[t]??(n[t]=new Set);for(const e of i.values)n[t].add(e)}}return n});const r=x,o=t.catchall;let a;e._zod.parse=(t,n)=>{a??(a=i.value);const s=t.value;if(!r(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};const c=[],l=a.shape;for(const e of a.keys){const i=l[e],r="optional"===i._zod.optout,o=i._zod.run({value:s[e],issues:[]},n);o instanceof Promise?c.push(o.then(n=>Xn(n,t,e,s,r))):Xn(o,t,e,s,r)}return o?Qn(c,s,t,n,i.value,e):c.length?Promise.all(c).then(()=>t):t}}),ti=i("$ZodObjectJIT",(e,t)=>{ei.init(e,t);const n=e._zod.parse,i=p(()=>Yn(t));let r;const o=x,a=!s.jitless,c=a&&w.value,l=t.catchall;let u;e._zod.parse=(s,d)=>{u??(u=i.value);const p=s.value;return o(p)?a&&c&&!1===d?.async&&!0!==d.jitless?(r||(r=(e=>{const t=new nn(["shape","payload","ctx"]),n=i.value,r=e=>{const t=y(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const o=Object.create(null);let a=0;for(const e of n.keys)o[e]="key_"+a++;t.write("const newResult = {};");for(const i of n.keys){const n=o[i],a=y(i),s=e[i],c="optional"===s?._zod?.optout;t.write(`const ${n} = ${r(i)};`),c?t.write(`\n if (${n}.issues.length) {\n if (${a} in input) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${a}, ...iss.path] : [${a}]\n })));\n }\n }\n \n if (${n}.value === undefined) {\n if (${a} in input) {\n newResult[${a}] = undefined;\n }\n } else {\n newResult[${a}] = ${n}.value;\n }\n \n `):t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${a}, ...iss.path] : [${a}]\n })));\n }\n \n if (${n}.value === undefined) {\n if (${a} in input) {\n newResult[${a}] = undefined;\n }\n } else {\n newResult[${a}] = ${n}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");const s=t.compile();return(t,n)=>s(e,t,n)})(t.shape)),s=r(s,d),l?Qn([],p,s,d,u,e):s):n(s,d):(s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s)}});function ni(e,t,n,i){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;const r=e.filter(e=>!q(e));return 1===r.length?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,i,c())))}),t)}const ii=i("$ZodUnion",(e,t)=>{on.init(e,t),v(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),v(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),v(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),v(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>f(e.source)).join("|")})$`)}});const n=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:r.value,issues:[]},o);if(t instanceof Promise)s.push(t),a=!0;else{if(0===t.issues.length)return t;s.push(t)}}return a?Promise.all(s).then(t=>ni(t,r,e,o)):ni(s,r,e,o)}});function ri(e,t,n,i){const r=e.filter(e=>0===e.issues.length);return 1===r.length?(t.value=r[0].value,t):(0===r.length?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>V(e,i,c())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}const oi=i("$ZodXor",(e,t)=>{ii.init(e,t),t.inclusive=!1;const n=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:r.value,issues:[]},o);t instanceof Promise?(s.push(t),a=!0):s.push(t)}return a?Promise.all(s).then(t=>ri(t,r,e,o)):ri(s,r,e,o)}}),ai=i("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ii.init(e,t);const n=e._zod.parse;v(e._zod,"propValues",()=>{const e={};for(const n of t.options){const i=n._zod.propValues;if(!i||0===Object.keys(i).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(const[t,n]of Object.entries(i)){e[t]||(e[t]=new Set);for(const i of n)e[t].add(i)}}return e});const i=p(()=>{const e=t.options,n=new Map;for(const i of e){const e=i._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const t of e){if(n.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,i)}}return n});e._zod.parse=(r,o)=>{const a=r.value;if(!x(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const s=i.value.get(a?.[t.discriminator]);return s?s._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),si=i("$ZodIntersection",(e,t)=>{on.init(e,t),e._zod.parse=(e,n)=>{const i=e.value,r=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return r instanceof Promise||o instanceof Promise?Promise.all([r,o]).then(([t,n])=>li(e,t,n)):li(e,r,o)}});function ci(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(C(e)&&C(t)){const n=Object.keys(t),i=Object.keys(e).filter(e=>-1!==n.indexOf(e)),r={...e,...t};for(const n of i){const i=ci(e[n],t[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r[n]=i.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const r=ci(e[i],t[i]);if(!r.valid)return{valid:!1,mergeErrorPath:[i,...r.mergeErrorPath]};n.push(r.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function li(e,t,n){const i=new Map;let r;for(const n of t.issues)if("unrecognized_keys"===n.code){r??(r=n);for(const e of n.keys)i.has(e)||i.set(e,{}),i.get(e).l=!0}else e.issues.push(n);for(const t of n.issues)if("unrecognized_keys"===t.code)for(const e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);const o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&r&&e.issues.push({...r,keys:o}),q(e))return e;const a=ci(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const ui=i("$ZodTuple",(e,t)=>{on.init(e,t);const n=t.items;e._zod.parse=(i,r)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],s=[...n].reverse().findIndex(e=>"optional"!==e._zod.optin),c=-1===s?0:n.length-s;if(!t.rest){const t=o.length>n.length,r=o.length<c-1;if(t||r)return i.issues.push({...t?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let l=-1;for(const e of n){if(l++,l>=o.length&&l>=c)continue;const t=e._zod.run({value:o[l],issues:[]},r);t instanceof Promise?a.push(t.then(e=>di(e,i,l))):di(t,i,l)}if(t.rest){const e=o.slice(n.length);for(const n of e){l++;const e=t.rest._zod.run({value:n,issues:[]},r);e instanceof Promise?a.push(e.then(e=>di(e,i,l))):di(e,i,l)}}return a.length?Promise.all(a).then(()=>i):i}});function di(e,t,n){e.issues.length&&t.issues.push(...F(n,e.issues)),t.value[n]=e.value}const pi=i("$ZodRecord",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!C(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const o=[],a=t.keyType._zod.values;if(a){n.value={};const s=new Set;for(const e of a)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){s.add("number"==typeof e?e.toString():e);const a=t.valueType._zod.run({value:r[e],issues:[]},i);a instanceof Promise?o.push(a.then(t=>{t.issues.length&&n.issues.push(...F(e,t.issues)),n.value[e]=t.value})):(a.issues.length&&n.issues.push(...F(e,a.issues)),n.value[e]=a.value)}let c;for(const e in r)s.has(e)||(c=c??[],c.push(e));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:c})}else{n.value={};for(const a of Reflect.ownKeys(r)){if("__proto__"===a)continue;let s=t.keyType._zod.run({value:a,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof a&&pt.test(a)&&s.issues.length){const e=t.keyType._zod.run({value:Number(a),issues:[]},i);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?n.value[a]=r[a]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>V(e,i,c())),input:a,path:[a],inst:e});continue}const l=t.valueType._zod.run({value:r[a],issues:[]},i);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&n.issues.push(...F(a,e.issues)),n.value[s.value]=e.value})):(l.issues.length&&n.issues.push(...F(a,l.issues)),n.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),mi=i("$ZodMap",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const o=[];n.value=new Map;for(const[a,s]of r){const c=t.keyType._zod.run({value:a,issues:[]},i),l=t.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||l instanceof Promise?o.push(Promise.all([c,l]).then(([t,o])=>{fi(t,o,n,a,r,e,i)})):fi(c,l,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function fi(e,t,n,i,r,o,a){e.issues.length&&(E.has(typeof i)?n.issues.push(...F(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(e=>V(e,a,c()))})),t.issues.length&&(E.has(typeof i)?n.issues.push(...F(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(e=>V(e,a,c()))})),n.value.set(e.value,t.value)}const hi=i("$ZodSet",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const o=[];n.value=new Set;for(const e of r){const r=t.valueType._zod.run({value:e,issues:[]},i);r instanceof Promise?o.push(r.then(e=>gi(e,n))):gi(r,n)}return o.length?Promise.all(o).then(()=>n):n}});function gi(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const vi=i("$ZodEnum",(e,t)=>{on.init(e,t);const n=l(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(e=>E.has(typeof e)).map(e=>"string"==typeof e?z(e):e.toString()).join("|")})$`),e._zod.parse=(t,r)=>{const o=t.value;return i.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),bi=i("$ZodLiteral",(e,t)=>{if(on.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?z(e):e?z(e.toString()):String(e)).join("|")})$`),e._zod.parse=(i,r)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),$i=i("$ZodFile",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),yi=i("$ZodTransform",(e,t)=>{on.init(e,t),e._zod.parse=(n,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);const r=t.transform(n.value,n);if(i.async){return(r instanceof Promise?r:Promise.resolve(r)).then(e=>(n.value=e,n))}if(r instanceof Promise)throw new o;return n.value=r,n}});function ki(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const _i=i("$ZodOptional",(e,t)=>{on.init(e,t),e._zod.optin="optional",e._zod.optout="optional",v(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),v(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${f(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(t=>ki(t,e.value)):ki(i,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}}),xi=i("$ZodExactOptional",(e,t)=>{_i.init(e,t),v(e._zod,"values",()=>t.innerType._zod.values),v(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),wi=i("$ZodNullable",(e,t)=>{on.init(e,t),v(e._zod,"optin",()=>t.innerType._zod.optin),v(e._zod,"optout",()=>t.innerType._zod.optout),v(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${f(e.source)}|null)$`):void 0}),v(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),Ci=i("$ZodDefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Ii(e,t)):Ii(i,t)}});function Ii(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Ei=i("$ZodPrefault",(e,t)=>{on.init(e,t),e._zod.optin="optional",v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Si=i("$ZodNonOptional",(e,t)=>{on.init(e,t),v(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,i)=>{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(t=>zi(t,e)):zi(r,e)}});function zi(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Oi=i("$ZodSuccess",(e,t)=>{on.init(e,t),e._zod.parse=(e,n)=>{if("backward"===n.direction)throw new a("ZodSuccess");const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===i.issues.length,e)}}),Ai=i("$ZodCatch",(e,t)=>{on.init(e,t),v(e._zod,"optin",()=>t.innerType._zod.optin),v(e._zod,"optout",()=>t.innerType._zod.optout),v(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>V(e,n,c()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>V(e,n,c()))},input:e.value}),e.issues=[]),e)}}),Ti=i("$ZodNaN",(e,t)=>{on.init(e,t),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Pi=i("$ZodPipe",(e,t)=>{on.init(e,t),v(e._zod,"values",()=>t.in._zod.values),v(e._zod,"optin",()=>t.in._zod.optin),v(e._zod,"optout",()=>t.out._zod.optout),v(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){const i=t.out._zod.run(e,n);return i instanceof Promise?i.then(e=>Ui(e,t.in,n)):Ui(i,t.in,n)}const i=t.in._zod.run(e,n);return i instanceof Promise?i.then(e=>Ui(e,t.out,n)):Ui(i,t.out,n)}});function Ui(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Ri=i("$ZodCodec",(e,t)=>{on.init(e,t),v(e._zod,"values",()=>t.in._zod.values),v(e._zod,"optin",()=>t.in._zod.optin),v(e._zod,"optout",()=>t.out._zod.optout),v(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if("forward"===(n.direction||"forward")){const i=t.in._zod.run(e,n);return i instanceof Promise?i.then(e=>Ni(e,t,n)):Ni(i,t,n)}{const i=t.out._zod.run(e,n);return i instanceof Promise?i.then(e=>Ni(e,t,n)):Ni(i,t,n)}}});function Ni(e,t,n){if(e.issues.length)return e.aborted=!0,e;if("forward"===(n.direction||"forward")){const i=t.transform(e.value,e);return i instanceof Promise?i.then(i=>ji(e,i,t.out,n)):ji(e,i,t.out,n)}{const i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(i=>ji(e,i,t.in,n)):ji(e,i,t.in,n)}}function ji(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}const Di=i("$ZodReadonly",(e,t)=>{on.init(e,t),v(e._zod,"propValues",()=>t.innerType._zod.propValues),v(e._zod,"values",()=>t.innerType._zod.values),v(e._zod,"optin",()=>t.innerType?._zod?.optin),v(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);const i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(Mi):Mi(i)}});function Mi(e){return e.value=Object.freeze(e.value),e}const Zi=i("$ZodTemplateLiteral",(e,t)=>{on.init(e,t);const n=[];for(const e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);const t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${e._zod.traits}`);const i=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(i,r))}else{if(null!==e&&!S.has(typeof e))throw new Error(`Invalid template literal part: ${e}`);n.push(z(`${e}`))}e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(n,i)=>"string"!=typeof n.value?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Li=i("$ZodFunction",(e,t)=>(on.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw new Error("implement() must be called with a function");return function(...n){const i=e._def.input?le(e._def.input,n):n,r=Reflect.apply(t,this,i);return e._def.output?le(e._def.output,r):r}},e.implementAsync=t=>{if("function"!=typeof t)throw new Error("implementAsync() must be called with a function");return async function(...n){const i=e._def.input?await de(e._def.input,n):n,r=await Reflect.apply(t,this,i);return e._def.output?await de(e._def.output,r):r}},e._zod.parse=(t,n)=>{if("function"!=typeof t.value)return t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}),t;const i=e._def.output&&"promise"===e._def.output._zod.def.type;return t.value=i?e.implementAsync(t.value):e.implement(t.value),t},e.input=(...t)=>{const n=e.constructor;return Array.isArray(t[0])?new n({type:"function",input:new ui({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}):new n({type:"function",input:t[0],output:e._def.output})},e.output=t=>new(0,e.constructor)({type:"function",input:e._def.input,output:t}),e)),Bi=i("$ZodPromise",(e,t)=>{on.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),qi=i("$ZodLazy",(e,t)=>{on.init(e,t),v(e._zod,"innerType",()=>t.getter()),v(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),v(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),v(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),v(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Fi=i("$ZodCustom",(e,t)=>{Tt.init(e,t),on.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(t=>Hi(t,n,i,e));Hi(r,n,i,e)}});function Hi(e,t,n,i){if(!e){const e={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(e.params=i._zod.def.params),t.issues.push(K(e))}}const Vi=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}const n={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${r}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${r}`}case"invalid_value":return 1===e.values.length?`مدخلات غير مقبولة: يفترض إدخال ${T(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()} ${i.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${i.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${u(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}};const Wi=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(t){return e[t]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${r}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${r}`}case"invalid_value":return 1===e.values.length?`Yanlış dəyər: gözlənilən ${T(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()} ${i.unit??"element"}`:`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${i.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${e.keys.length>1?"lar":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış açar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}};function Ji(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:1===o?t:o>=2&&o<=4?n:i}const Gi=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(t){return e[t]??null}const n={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${r}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${r}`}case"invalid_value":return 1===e.values.length?`Няправільны ўвод: чакалася ${T(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);if(i){const t=Ji(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${i.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);if(i){const t=Ji(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${i.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:"ends_with"===t.format?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:"includes"===t.format?`Няправільны радок: павінен змяшчаць "${t.includes}"`:"regex"===t.format?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${u(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}};const Ki=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(t){return e[t]??null}const n={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${r}`:`Невалиден вход: очакван ${t}, получен ${r}`}case"invalid_value":return 1===e.values.length?`Невалиден вход: очакван ${T(e.values[0])}`:`Невалидна опция: очаквано едно от ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Твърде голямо: очаква се ${e.origin??"стойност"} да съдържа ${n}${e.maximum.toString()} ${i.unit??"елемента"}`:`Твърде голямо: очаква се ${e.origin??"стойност"} да бъде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${i.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;if("starts_with"===t.format)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if("ends_with"===t.format)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if("includes"===t.format)return`Невалиден низ: трябва да включва "${t.includes}"`;if("regex"===t.format)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let i="Невалиден";return"emoji"===t.format&&(i="Невалидно"),"datetime"===t.format&&(i="Невалидно"),"date"===t.format&&(i="Невалидна"),"time"===t.format&&(i="Невалидно"),"duration"===t.format&&(i="Невалидна"),`${i} ${n[t.format]??e.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case"unrecognized_keys":return`Неразпознат${e.keys.length>1?"и":""} ключ${e.keys.length>1?"ове":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${e.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${e.origin}`}}};const Xi=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}const n={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${r}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${r}`}case"invalid_value":return 1===e.values.length?`Valor invàlid: s'esperava ${T(e.values[0])}`:`Opció invàlida: s'esperava una de ${u(e.values," o ")}`;case"too_big":{const n=e.inclusive?"com a màxim":"menys de",i=t(e.origin);return i?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${n} ${e.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"com a mínim":"més de",i=t(e.origin);return i?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${e.origin}`}}};const Yi=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(t){return e[t]??null}const n={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${r}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${r}`}case"invalid_value":return 1===e.values.length?`Neplatný vstup: očekáváno ${T(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${n}${e.maximum.toString()} ${i.unit??"prvků"}`:`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${n}${e.minimum.toString()} ${i.unit??"prvků"}`:`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${e.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${u(e.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${e.origin}`}}};const Qi=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(t){return e[t]??null}const n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${r}`:`Ugyldigt input: forventede ${t}, fik ${r}`}case"invalid_value":return 1===e.values.length?`Ugyldig værdi: forventede ${T(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin),o=i[e.origin]??e.origin;return r?`For stor: forventede ${o??"value"} ${r.verb} ${n} ${e.maximum.toString()} ${r.unit??"elementer"}`:`For stor: forventede ${o??"value"} havde ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin),o=i[e.origin]??e.origin;return r?`For lille: forventede ${o} ${r.verb} ${n} ${e.minimum.toString()} ${r.unit}`:`For lille: forventede ${o} havde ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: skal starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: skal ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: skal indeholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${e.origin}`;default:return"Ugyldigt input"}}};const er=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(t){return e[t]??null}const n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${r}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${r}`}case"invalid_value":return 1===e.values.length?`Ungültige Eingabe: erwartet ${T(e.values[0])}`:`Ungültige Option: erwartet eine von ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ist`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${e.origin}`}}};const tr=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(t){return e[t]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input);return`Invalid input: expected ${t}, received ${i[n]??n}`}case"invalid_value":return 1===e.values.length?`Invalid input: expected ${T(e.values[0])}`:`Invalid option: expected one of ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Too big: expected ${e.origin??"value"} to have ${n}${e.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${i.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}};function nr(){return{localeError:tr()}}const ir=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(t){return e[t]??null}const n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${r}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${r}`}case"invalid_value":return 1===e.values.length?`Nevalida enigo: atendiĝis ${T(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${n}${e.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${i.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}};const rr=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(t){return e[t]??null}const n={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${r}`:`Entrada inválida: se esperaba ${t}, recibido ${r}`}case"invalid_value":return 1===e.values.length?`Entrada inválida: se esperaba ${T(e.values[0])}`:`Opción inválida: se esperaba una de ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin),o=i[e.origin]??e.origin;return r?`Demasiado grande: se esperaba que ${o??"valor"} tuviera ${n}${e.maximum.toString()} ${r.unit??"elementos"}`:`Demasiado grande: se esperaba que ${o??"valor"} fuera ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin),o=i[e.origin]??e.origin;return r?`Demasiado pequeño: se esperaba que ${o} tuviera ${n}${e.minimum.toString()} ${r.unit}`:`Demasiado pequeño: se esperaba que ${o} fuera ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Cadena inválida: debe comenzar con "${t.prefix}"`:"ends_with"===t.format?`Cadena inválida: debe terminar en "${t.suffix}"`:"includes"===t.format?`Cadena inválida: debe incluir "${t.includes}"`:"regex"===t.format?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[e.origin]??e.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[e.origin]??e.origin}`}}};const or=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}const n={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${r} دریافت شد`:`ورودی نامعتبر: میبایست ${t} میبود، ${r} دریافت شد`}case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: میبایست ${T(e.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${u(e.values,"|")} میبود`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} ${i.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} باشد`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${i.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case"invalid_format":{const t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${u(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}};const ar=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(t){return e[t]??null}const n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${r}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${r}`}case"invalid_value":return 1===e.values.length?`Virheellinen syöte: täytyy olla ${T(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Liian suuri: ${i.subject} täytyy olla ${n}${e.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Liian pieni: ${i.subject} täytyy olla ${n}${e.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${u(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};const sr=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}const n={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN",number:"nombre",array:"tableau"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${r} reçu`:`Entrée invalide : ${t} attendu, ${r} reçu`}case"invalid_value":return 1===e.values.length?`Entrée invalide : ${T(e.values[0])} attendu`:`Option invalide : une valeur parmi ${u(e.values,"|")} attendue`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Trop grand : ${e.origin??"valeur"} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"élément(s)"}`:`Trop grand : ${e.origin??"valeur"} doit être ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Trop petit : ${e.origin} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${e.origin} doit être ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${u(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};const cr=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}const n={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${r}`:`Entrée invalide : attendu ${t}, reçu ${r}`}case"invalid_value":return 1===e.values.length?`Entrée invalide : attendu ${T(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"≤":"<",i=t(e.origin);return i?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${n}${e.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"≥":">",i=t(e.origin);return i?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${u(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};const lr=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=t=>t?e[t]:void 0,i=t=>{const i=n(t);return i?i.label:t??e.unknown.label},r=e=>`ה${i(e)}`,o=e=>{const t=n(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},a=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},c={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const n=t.expected,r=c[n??""]??i(n),o=G(t.input),a=c[o]??e[o]?.label??o;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${a}`:`קלט לא תקין: צריך להיות ${r}, התקבל ${a}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${T(t.values[0])}`;const e=t.values.map(e=>T(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;const n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(", ")} או ${n}`}case"too_big":{const e=a(t.origin),n=r(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`}if("array"===t.origin||"set"===t.origin){return`גדול מדי: ${n} ${"set"===t.origin?"צריכה":"צריך"} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`}`.trim()}const i=t.inclusive?"<=":"<",s=o(t.origin??"value");return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${i}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??"גדול"} מדי: ${n} ${s} ${i}${t.maximum.toString()}`}case"too_small":{const e=a(t.origin),n=r(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`}if("array"===t.origin||"set"===t.origin){const i="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){return`קטן מדי: ${n} ${i} להכיל ${t.origin,"לפחות פריט אחד"}`}return`קטן מדי: ${n} ${i} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`}`.trim()}const i=t.inclusive?">=":">",s=o(t.origin??"value");return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${i}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??"קטן"} מדי: ${n} ${s} ${i}${t.minimum.toString()}`}case"invalid_format":{const e=t;if("starts_with"===e.format)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if("ends_with"===e.format)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if("includes"===e.format)return`המחרוזת חייבת לכלול "${e.includes}"`;if("regex"===e.format)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;const n=s[e.format];return`${n?.label??e.format} לא ${"f"===(n?.gender??"m")?"תקינה":"תקין"}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${u(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r(t.origin??"array")}`}}};const ur=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}const n={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${r}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${r}`}case"invalid_value":return 1===e.values.length?`Érvénytelen bemenet: a várt érték ${T(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${n}${e.maximum.toString()} ${i.unit??"elem"}`:`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${i.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${e.origin}`}}};function dr(e,t,n){return 1===Math.abs(e)?t:n}function pr(e){if(!e)return"";const t=e[e.length-1];return e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")}const mr=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(t){return e[t]??null}const n={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${r}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${r}`}case"invalid_value":return 1===e.values.length?`Սխալ մուտքագրում․ սպասվում էր ${T(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);if(i){const t=dr(Number(e.maximum),i.unit.one,i.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${pr(e.origin??"արժեք")} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${pr(e.origin??"արժեք")} լինի ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);if(i){const t=dr(Number(e.minimum),i.unit.one,i.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${pr(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${pr(e.origin)} լինի ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:"ends_with"===t.format?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:"includes"===t.format?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:"regex"===t.format?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${e.keys.length>1?"ներ":""}. ${u(e.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${pr(e.origin)}-ում`;case"invalid_union":default:return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${pr(e.origin)}-ում`}}};const fr=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}const n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${r}`:`Input tidak valid: diharapkan ${t}, diterima ${r}`}case"invalid_value":return 1===e.values.length?`Input tidak valid: diharapkan ${T(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${n}${e.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}};const hr=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(t){return e[t]??null}const n={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${r} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${r} þar sem á að vera ${t}`}case"invalid_value":return 1===e.values.length?`Rangt gildi: gert ráð fyrir ${T(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} hafi ${n}${e.maximum.toString()} ${i.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} sé ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${i.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ógildur strengur: verður að byrja á "${t.prefix}"`:"ends_with"===t.format?`Ógildur strengur: verður að enda á "${t.suffix}"`:"includes"===t.format?`Ógildur strengur: verður að innihalda "${t.includes}"`:"regex"===t.format?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`Óþekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${u(e.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${e.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${e.origin}`}}};const gr=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}const n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${r}`:`Input non valido: atteso ${t}, ricevuto ${r}`}case"invalid_value":return 1===e.values.length?`Input non valido: atteso ${T(e.values[0])}`:`Opzione non valida: atteso uno tra ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Troppo grande: ${e.origin??"valore"} deve avere ${n}${e.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${u(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}};const vr=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}const n={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${r}が入力されました`:`無効な入力: ${t}が期待されましたが、${r}が入力されました`}case"invalid_value":return 1===e.values.length?`無効な入力: ${T(e.values[0])}が期待されました`:`無効な選択: ${u(e.values,"、")}のいずれかである必要があります`;case"too_big":{const n=e.inclusive?"以下である":"より小さい",i=t(e.origin);return i?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${i.unit??"要素"}${n}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${n}必要があります`}case"too_small":{const n=e.inclusive?"以上である":"より大きい",i=t(e.origin);return i?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${i.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${u(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}};const br=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(t){return e[t]??null}const n={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${r}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${r}`}case"invalid_value":return 1===e.values.length?`არასწორი შეყვანა: მოსალოდნელი ${T(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${u(e.values,"|")}-დან`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:"ends_with"===t.format?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:"includes"===t.format?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:"regex"===t.format?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${e.keys.length>1?"ები":"ი"}: ${u(e.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`}}};const $r=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}const n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${r}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${r}`}case"invalid_value":return 1===e.values.length?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${T(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()} ${i.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${i.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${u(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}};function yr(){return{localeError:$r()}}const kr=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}const n={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${r}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${r}입니다`}case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${T(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${u(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const n=e.inclusive?"이하":"미만",i="미만"===n?"이어야 합니다":"여야 합니다",r=t(e.origin),o=r?.unit??"요소";return r?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${o} ${n}${i}`:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${n}${i}`}case"too_small":{const n=e.inclusive?"이상":"초과",i="이상"===n?"이어야 합니다":"여야 합니다",r=t(e.origin),o=r?.unit??"요소";return r?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${o} ${n}${i}`:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${n}${i}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${u(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}};const _r=e=>e.charAt(0).toUpperCase()+e.slice(1);function xr(e){const t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||0===n?"many":1===n?"one":"few"}const wr=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,n,i,r){const o=e[t]??null;return null===o?o:{unit:o.unit[n],verb:o.verb[r][i?"inclusive":"notInclusive"]}}const n={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${r}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${r}, o tikėtasi - ${t}`}case"invalid_value":return 1===e.values.length?`Privalo būti ${T(e.values[0])}`:`Privalo būti vienas iš ${u(e.values,"|")} pasirinkimų`;case"too_big":{const n=i[e.origin]??e.origin,r=t(e.origin,xr(Number(e.maximum)),e.inclusive??!1,"smaller");if(r?.verb)return`${_r(n??e.origin??"reikšmė")} ${r.verb} ${e.maximum.toString()} ${r.unit??"elementų"}`;const o=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${_r(n??e.origin??"reikšmė")} turi būti ${o} ${e.maximum.toString()} ${r?.unit}`}case"too_small":{const n=i[e.origin]??e.origin,r=t(e.origin,xr(Number(e.minimum)),e.inclusive??!1,"bigger");if(r?.verb)return`${_r(n??e.origin??"reikšmė")} ${r.verb} ${e.minimum.toString()} ${r.unit??"elementų"}`;const o=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${_r(n??e.origin??"reikšmė")} turi būti ${o} ${e.minimum.toString()} ${r?.unit}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Eilutė privalo prasidėti "${t.prefix}"`:"ends_with"===t.format?`Eilutė privalo pasibaigti "${t.suffix}"`:"includes"===t.format?`Eilutė privalo įtraukti "${t.includes}"`:"regex"===t.format?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${u(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{const t=i[e.origin]??e.origin;return`${_r(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}};const Cr=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}const n={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${r}`:`Грешен внес: се очекува ${t}, примено ${r}`}case"invalid_value":return 1===e.values.length?`Invalid input: expected ${T(e.values[0])}`:`Грешана опција: се очекува една ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${n}${e.maximum.toString()} ${i.unit??"елементи"}`:`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${i.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${u(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}};const Ir=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}const n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${r}`:`Input tidak sah: dijangka ${t}, diterima ${r}`}case"invalid_value":return 1===e.values.length?`Input tidak sah: dijangka ${T(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Terlalu besar: dijangka ${e.origin??"nilai"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Terlalu kecil: dijangka ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${u(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}};const Er=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(t){return e[t]??null}const n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${r}`:`Ongeldige invoer: verwacht ${t}, ontving ${r}`}case"invalid_value":return 1===e.values.length?`Ongeldige invoer: verwacht ${T(e.values[0])}`:`Ongeldige optie: verwacht één van ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin),r="date"===e.origin?"laat":"string"===e.origin?"lang":"groot";return i?`Te ${r}: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${r}: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} is`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin),r="date"===e.origin?"vroeg":"string"===e.origin?"kort":"klein";return i?`Te ${r}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${r}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:"ends_with"===t.format?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:"includes"===t.format?`Ongeldige tekst: moet "${t.includes}" bevatten`:"regex"===t.format?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}};const Sr=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}const n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${r}`:`Ugyldig input: forventet ${t}, fikk ${r}`}case"invalid_value":return 1===e.values.length?`Ugyldig verdi: forventet ${T(e.values[0])}`:`Ugyldig valg: forventet en av ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}};const zr=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(t){return e[t]??null}const n={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${r}`:`Fâsit giren: umulan ${t}, alınan ${r}`}case"invalid_value":return 1===e.values.length?`Fâsit giren: umulan ${T(e.values[0])}`:`Fâsit tercih: mûteberler ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} ${i.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} olmalıydı.`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${i.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};const Or=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}const n={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${r} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${r} ترلاسه شو`}case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${T(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${u(e.values,"|")} څخه وای`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} ${i.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} وي`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${i.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${u(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}};const Ar=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(t){return e[t]??null}const n={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${r}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${r}`}case"invalid_value":return 1===e.values.length?`Nieprawidłowe dane wejściowe: oczekiwano ${T(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.maximum.toString()} ${i.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.minimum.toString()} ${i.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}};const Tr=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}const n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${r}`:`Tipo inválido: esperado ${t}, recebido ${r}`}case"invalid_value":return 1===e.values.length?`Entrada inválida: esperado ${T(e.values[0])}`:`Opção inválida: esperada uma das ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${n}${e.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Chave inválida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${e.origin}`;default:return"Campo inválido"}}};function Pr(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:1===o?t:o>=2&&o<=4?n:i}const Ur=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(t){return e[t]??null}const n={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${r}`:`Неверный ввод: ожидалось ${t}, получено ${r}`}case"invalid_value":return 1===e.values.length?`Неверный ввод: ожидалось ${T(e.values[0])}`:`Неверный вариант: ожидалось одно из ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);if(i){const t=Pr(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);if(i){const t=Pr(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}};const Rr=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}const n={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${r}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${r}`}case"invalid_value":return 1===e.values.length?`Neveljaven vnos: pričakovano ${T(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${n}${e.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${i.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${u(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}};const Nr=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(t){return e[t]??null}const n={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${r}`:`Ogiltig inmatning: förväntat ${t}, fick ${r}`}case"invalid_value":return 1===e.values.length?`Ogiltig inmatning: förväntat ${T(e.values[0])}`:`Ogiltigt val: förväntade en av ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()} ${i.unit??"element"}`:`För stor(t): förväntat ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()} ${i.unit}`:`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${u(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${e.origin??"värdet"}`}}};const jr=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}const n={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${r}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${r}`}case"invalid_value":return 1===e.values.length?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${T(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${u(e.values,"|")} இல் ஒன்று`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ${i.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${i.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}};const Dr=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}const n={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${r}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${r}`}case"invalid_value":return 1===e.values.length?`ค่าไม่ถูกต้อง: ควรเป็น ${T(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"ไม่เกิน":"น้อยกว่า",i=t(e.origin);return i?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()} ${i.unit??"รายการ"}`:`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"อย่างน้อย":"มากกว่า",i=t(e.origin);return i?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${i.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${u(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};const Mr=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(t){return e[t]??null}const n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${r}`:`Geçersiz değer: beklenen ${t}, alınan ${r}`}case"invalid_value":return 1===e.values.length?`Geçersiz değer: beklenen ${T(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Çok büyük: beklenen ${e.origin??"değer"} ${n}${e.maximum.toString()} ${i.unit??"öğe"}`:`Çok büyük: beklenen ${e.origin??"değer"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${i.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} içinde geçersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} içinde geçersiz değer`}}};const Zr=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}const n={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${r}`:`Неправильні вхідні дані: очікується ${t}, отримано ${r}`}case"invalid_value":return 1===e.values.length?`Неправильні вхідні дані: очікується ${T(e.values[0])}`:`Неправильна опція: очікується одне з ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Занадто велике: очікується, що ${e.origin??"значення"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"елементів"}`:`Занадто велике: очікується, що ${e.origin??"значення"} буде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Занадто мале: очікується, що ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${u(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}};function Lr(){return{localeError:Zr()}}const Br=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}const n={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${r} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${r} موصول ہوا`}case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${T(e.values[0])} متوقع تھا`:`غلط آپشن: ${u(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`بہت بڑا: ${e.origin??"ویلیو"} کے ${n}${e.maximum.toString()} ${i.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${i.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${u(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}};const qr=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(t){return e[t]??null}const n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${r}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${r}`}case"invalid_value":return 1===e.values.length?`Noto‘g‘ri kirish: kutilgan ${T(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Juda katta: kutilgan ${e.origin??"qiymat"} ${n}${e.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${e.origin??"qiymat"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:"ends_with"===t.format?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:"includes"===t.format?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:"regex"===t.format?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${e.keys.length>1?"lar":""}: ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto‘g‘ri`;case"invalid_union":default:return"Noto‘g‘ri kirish";case"invalid_element":return`${e.origin} da noto‘g‘ri qiymat`}}};const Fr=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(t){return e[t]??null}const n={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${r}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${r}`}case"invalid_value":return 1===e.values.length?`Đầu vào không hợp lệ: mong đợi ${T(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${i.verb} ${n}${e.maximum.toString()} ${i.unit??"phần tử"}`:`Quá lớn: mong đợi ${e.origin??"giá trị"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Quá nhỏ: mong đợi ${e.origin} ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${u(e.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${e.origin}`}}};const Hr=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}const n={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${r}`:`无效输入:期望 ${t},实际接收 ${r}`}case"invalid_value":return 1===e.values.length?`无效输入:期望 ${T(e.values[0])}`:`无效选项:期望以下之一 ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()} ${i.unit??"个元素"}`:`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${i.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${u(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}};const Vr=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}const n={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${r}`:`無效的輸入值:預期為 ${t},但收到 ${r}`}case"invalid_value":return 1===e.values.length?`無效的輸入值:預期為 ${T(e.values[0])}`:`無效的選項:預期為以下其中之一 ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()} ${i.unit??"個元素"}`:`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${i.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${u(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}};const Wr=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(t){return e[t]??null}const n={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return e=>{switch(e.code){case"invalid_type":{const t=i[e.expected]??e.expected,n=G(e.input),r=i[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${r}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${r}`}case"invalid_value":return 1===e.values.length?`Ìbáwọlé aṣìṣe: a ní láti fi ${T(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${u(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",i=t(e.origin);return i?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??"iye"} ${i.verb} ${n}${e.maximum} ${i.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case"too_small":{const n=e.inclusive?">=":">",i=t(e.origin);return i?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${i.verb} ${n}${e.minimum} ${i.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:"ends_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:"includes"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:"regex"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${u(e.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${e.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${e.origin}`}}};var Jr,Gr=Object.freeze({__proto__:null,ar:function(){return{localeError:Vi()}},az:function(){return{localeError:Wi()}},be:function(){return{localeError:Gi()}},bg:function(){return{localeError:Ki()}},ca:function(){return{localeError:Xi()}},cs:function(){return{localeError:Yi()}},da:function(){return{localeError:Qi()}},de:function(){return{localeError:er()}},en:nr,eo:function(){return{localeError:ir()}},es:function(){return{localeError:rr()}},fa:function(){return{localeError:or()}},fi:function(){return{localeError:ar()}},fr:function(){return{localeError:sr()}},frCA:function(){return{localeError:cr()}},he:function(){return{localeError:lr()}},hu:function(){return{localeError:ur()}},hy:function(){return{localeError:mr()}},id:function(){return{localeError:fr()}},is:function(){return{localeError:hr()}},it:function(){return{localeError:gr()}},ja:function(){return{localeError:vr()}},ka:function(){return{localeError:br()}},kh:function(){return yr()},km:yr,ko:function(){return{localeError:kr()}},lt:function(){return{localeError:wr()}},mk:function(){return{localeError:Cr()}},ms:function(){return{localeError:Ir()}},nl:function(){return{localeError:Er()}},no:function(){return{localeError:Sr()}},ota:function(){return{localeError:zr()}},pl:function(){return{localeError:Ar()}},ps:function(){return{localeError:Or()}},pt:function(){return{localeError:Tr()}},ru:function(){return{localeError:Ur()}},sl:function(){return{localeError:Rr()}},sv:function(){return{localeError:Nr()}},ta:function(){return{localeError:jr()}},th:function(){return{localeError:Dr()}},tr:function(){return{localeError:Mr()}},ua:function(){return Lr()},uk:Lr,ur:function(){return{localeError:Br()}},uz:function(){return{localeError:qr()}},vi:function(){return{localeError:Fr()}},yo:function(){return{localeError:Wr()}},zhCN:function(){return{localeError:Hr()}},zhTW:function(){return{localeError:Vr()}}});const Kr=Symbol("ZodOutput"),Xr=Symbol("ZodInput");class Yr{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Qr(){return new Yr}(Jr=globalThis).__zod_globalRegistry??(Jr.__zod_globalRegistry=Qr());const eo=globalThis.__zod_globalRegistry;function to(e,t){return new e({type:"string",...A(t)})}function no(e,t){return new e({type:"string",coerce:!0,...A(t)})}function io(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...A(t)})}function ro(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...A(t)})}function oo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...A(t)})}function ao(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...A(t)})}function so(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...A(t)})}function co(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...A(t)})}function lo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...A(t)})}function uo(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...A(t)})}function po(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...A(t)})}function mo(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...A(t)})}function fo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...A(t)})}function ho(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...A(t)})}function go(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...A(t)})}function vo(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...A(t)})}function bo(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...A(t)})}function $o(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...A(t)})}function yo(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...A(t)})}function ko(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...A(t)})}function _o(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...A(t)})}function xo(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...A(t)})}function wo(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...A(t)})}function Co(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...A(t)})}function Io(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...A(t)})}const Eo={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function So(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...A(t)})}function zo(e,t){return new e({type:"string",format:"date",check:"string_format",...A(t)})}function Oo(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...A(t)})}function Ao(e,t){return new e({type:"string",format:"duration",check:"string_format",...A(t)})}function To(e,t){return new e({type:"number",checks:[],...A(t)})}function Po(e,t){return new e({type:"number",coerce:!0,checks:[],...A(t)})}function Uo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...A(t)})}function Ro(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...A(t)})}function No(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...A(t)})}function jo(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...A(t)})}function Do(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...A(t)})}function Mo(e,t){return new e({type:"boolean",...A(t)})}function Zo(e,t){return new e({type:"boolean",coerce:!0,...A(t)})}function Lo(e,t){return new e({type:"bigint",...A(t)})}function Bo(e,t){return new e({type:"bigint",coerce:!0,...A(t)})}function qo(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...A(t)})}function Fo(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...A(t)})}function Ho(e,t){return new e({type:"symbol",...A(t)})}function Vo(e,t){return new e({type:"undefined",...A(t)})}function Wo(e,t){return new e({type:"null",...A(t)})}function Jo(e){return new e({type:"any"})}function Go(e){return new e({type:"unknown"})}function Ko(e,t){return new e({type:"never",...A(t)})}function Xo(e,t){return new e({type:"void",...A(t)})}function Yo(e,t){return new e({type:"date",...A(t)})}function Qo(e,t){return new e({type:"date",coerce:!0,...A(t)})}function ea(e,t){return new e({type:"nan",...A(t)})}function ta(e,t){return new Ut({check:"less_than",...A(t),value:e,inclusive:!1})}function na(e,t){return new Ut({check:"less_than",...A(t),value:e,inclusive:!0})}function ia(e,t){return new Rt({check:"greater_than",...A(t),value:e,inclusive:!1})}function ra(e,t){return new Rt({check:"greater_than",...A(t),value:e,inclusive:!0})}function oa(e){return ia(0,e)}function aa(e){return ta(0,e)}function sa(e){return na(0,e)}function ca(e){return ra(0,e)}function la(e,t){return new Nt({check:"multiple_of",...A(t),value:e})}function ua(e,t){return new Mt({check:"max_size",...A(t),maximum:e})}function da(e,t){return new Zt({check:"min_size",...A(t),minimum:e})}function pa(e,t){return new Lt({check:"size_equals",...A(t),size:e})}function ma(e,t){return new Bt({check:"max_length",...A(t),maximum:e})}function fa(e,t){return new qt({check:"min_length",...A(t),minimum:e})}function ha(e,t){return new Ft({check:"length_equals",...A(t),length:e})}function ga(e,t){return new Vt({check:"string_format",format:"regex",...A(t),pattern:e})}function va(e){return new Wt({check:"string_format",format:"lowercase",...A(e)})}function ba(e){return new Jt({check:"string_format",format:"uppercase",...A(e)})}function $a(e,t){return new Gt({check:"string_format",format:"includes",...A(t),includes:e})}function ya(e,t){return new Kt({check:"string_format",format:"starts_with",...A(t),prefix:e})}function ka(e,t){return new Xt({check:"string_format",format:"ends_with",...A(t),suffix:e})}function _a(e,t,n){return new Qt({check:"property",property:e,schema:t,...A(n)})}function xa(e,t){return new en({check:"mime_type",mime:e,...A(t)})}function wa(e){return new tn({check:"overwrite",tx:e})}function Ca(e){return wa(t=>t.normalize(e))}function Ia(){return wa(e=>e.trim())}function Ea(){return wa(e=>e.toLowerCase())}function Sa(){return wa(e=>e.toUpperCase())}function za(){return wa(e=>k(e))}function Oa(e,t,n){return new e({type:"array",element:t,...A(n)})}function Aa(e,t){return new e({type:"file",...A(t)})}function Ta(e,t,n){const i=A(n);i.abort??(i.abort=!0);return new e({type:"custom",check:"custom",fn:t,...i})}function Pa(e,t,n){return new e({type:"custom",check:"custom",fn:t,...A(n)})}function Ua(e){const t=Ra(n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(K(e,n.value,t._zod.def));else{const i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(K(i))}},e(n.value,n)));return t}function Ra(e,t){const n=new Tt({check:"custom",...A(t)});return n._zod.check=e,n}function Na(e){const t=new Tt({check:"describe"});return t._zod.onattach=[t=>{const n=eo.get(t)??{};eo.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function ja(e){const t=new Tt({check:"meta"});return t._zod.onattach=[t=>{const n=eo.get(t)??{};eo.add(t,{...n,...e})}],t._zod.check=()=>{},t}function Da(e,t){const n=A(t);let i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(i=i.map(e=>"string"==typeof e?e.toLowerCase():e),r=r.map(e=>"string"==typeof e?e.toLowerCase():e));const o=new Set(i),a=new Set(r),s=e.Codec??Ri,c=e.Boolean??Dn,l=new s({type:"pipe",in:new(e.String??an)({type:"string",error:n.error}),out:new c({type:"boolean",error:n.error}),transform:(e,t)=>{let i=e;return"sensitive"!==n.case&&(i=i.toLowerCase()),!!o.has(i)||!a.has(i)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:t.value,inst:l,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?i[0]||"true":r[0]||"false",error:n.error});return l}function Ma(e,t,n,i={}){const r=A(i),o={...A(i),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...r};n instanceof RegExp&&(o.pattern=n);return new e(o)}function Za(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??eo,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function La(e,t,n={path:[],schemaPath:[]}){var i;const r=e._zod.def,o=t.seen.get(e);if(o){o.count++;return n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema}const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{const i={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,i);else{const n=a.schema,o=t.processors[r.type];if(!o)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);o(e,t,n,i)}const o=e._zod.parent;o&&(a.ref||(a.ref=o),La(o,t,i),t.seen.get(o).isParent=!0)}const c=t.metadataRegistry.get(e);c&&Object.assign(a.schema,c),"input"===t.io&&Fa(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault;return t.seen.get(e).schema}function Ba(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const t of e.seen.entries()){const n=e.metadataRegistry.get(t[0])?.id;if(n){const e=i.get(n);if(e&&e!==t[0])throw new Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(n,t[0])}}const r=t=>{if(t[1].schema.$ref)return;const i=t[1],{ref:r,defId:o}=(t=>{const i="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const n=e.external.registry.get(t[0])?.id,r=e.external.uri??(e=>e);if(n)return{ref:r(n)};const o=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=o,{defId:o,ref:`${r("__shared")}#/${i}/${o}`}}if(t[1]===n)return{ref:"#"};const r=`#/${i}/`,o=t[1].schema.id??"__schema"+e.counter++;return{defId:o,ref:r+o}})(t);i.def={...i.schema},o&&(i.defId=o);const a=i.schema;for(const e in a)delete a[e];a.$ref=r};if("throw"===e.cycles)for(const t of e.seen.entries()){const e=t[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const i=n[1];if(t===n[0]){r(n);continue}if(e.external){const i=e.external.registry.get(n[0])?.id;if(t!==n[0]&&i){r(n);continue}}const o=e.metadataRegistry.get(n[0])?.id;o?r(n):(i.cycle||i.count>1&&"ref"===e.reused)&&r(n)}}function qa(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=t=>{const n=e.seen.get(t);if(null===n.ref)return;const r=n.def??n.schema,o={...r},a=n.ref;if(n.ref=null,a){i(a);const n=e.seen.get(a),s=n.schema;!s.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Object.assign(r,s):(r.allOf=r.allOf??[],r.allOf.push(s)),Object.assign(r,o);if(t._zod.parent===a)for(const e in r)"$ref"!==e&&"allOf"!==e&&(e in o||delete r[e]);if(s.$ref&&n.def)for(const e in r)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(r[e])===JSON.stringify(n.def[e])&&delete r[e]}const s=t._zod.parent;if(s&&s!==a){i(s);const t=e.seen.get(s);if(t?.schema.$ref&&(r.$ref=t.schema.$ref,t.def))for(const e in r)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(r[e])===JSON.stringify(t.def[e])&&delete r[e]}e.override({zodSchema:t,jsonSchema:r,path:n.path??[]})};for(const t of[...e.seen.entries()].reverse())i(t[0]);const r={};if("draft-2020-12"===e.target?r.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?r.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(n)}Object.assign(r,n.def??n.schema);const o=e.external?.defs??{};for(const t of e.seen.entries()){const e=t[1];e.def&&e.defId&&(o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&("draft-2020-12"===e.target?r.$defs=o:r.definitions=o);try{const n=JSON.parse(JSON.stringify(r));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:Va(t,"input",e.processors),output:Va(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw new Error("Error converting schema to JSON.")}}function Fa(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return Fa(i.element,n);if("set"===i.type)return Fa(i.valueType,n);if("lazy"===i.type)return Fa(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return Fa(i.innerType,n);if("intersection"===i.type)return Fa(i.left,n)||Fa(i.right,n);if("record"===i.type||"map"===i.type)return Fa(i.keyType,n)||Fa(i.valueType,n);if("pipe"===i.type)return Fa(i.in,n)||Fa(i.out,n);if("object"===i.type){for(const e in i.shape)if(Fa(i.shape[e],n))return!0;return!1}if("union"===i.type){for(const e of i.options)if(Fa(e,n))return!0;return!1}if("tuple"===i.type){for(const e of i.items)if(Fa(e,n))return!0;return!(!i.rest||!Fa(i.rest,n))}return!1}const Ha=(e,t={})=>n=>{const i=Za({...n,processors:t});return La(e,i),Ba(i,e),qa(i,e)},Va=(e,t,n={})=>i=>{const{libraryOptions:r,target:o}=i??{},a=Za({...r??{},target:o,io:t,processors:n});return La(e,a),Ba(a,e),qa(a,e)},Wa={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ja=(e,t,n,i)=>{const r=n;r.type="string";const{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if("number"==typeof o&&(r.minLength=o),"number"==typeof a&&(r.maxLength=a),s&&(r.format=Wa[s]??s,""===r.format&&delete r.format,"time"===s&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){const e=[...c];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},Ga=(e,t,n,i)=>{const r=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof s&&s.includes("int")?r.type="integer":r.type="number","number"==typeof u&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u),"number"==typeof o&&(r.minimum=o,"number"==typeof u&&"draft-04"!==t.target&&(u>=o?delete r.minimum:delete r.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l),"number"==typeof a&&(r.maximum=a,"number"==typeof l&&"draft-04"!==t.target&&(l<=a?delete r.maximum:delete r.exclusiveMaximum)),"number"==typeof c&&(r.multipleOf=c)},Ka=(e,t,n,i)=>{n.type="boolean"},Xa=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("BigInt cannot be represented in JSON Schema")},Ya=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Symbols cannot be represented in JSON Schema")},Qa=(e,t,n,i)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},es=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Undefined cannot be represented in JSON Schema")},ts=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Void cannot be represented in JSON Schema")},ns=(e,t,n,i)=>{n.not={}},is=(e,t,n,i)=>{},rs=(e,t,n,i)=>{},os=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Date cannot be represented in JSON Schema")},as=(e,t,n,i)=>{const r=l(e._zod.def.entries);r.every(e=>"number"==typeof e)&&(n.type="number"),r.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=r},ss=(e,t,n,i)=>{const r=e._zod.def,o=[];for(const e of r.values)if(void 0===e){if("throw"===t.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===t.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(e))}else o.push(e);if(0===o.length);else if(1===o.length){const e=o[0];n.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[e]:n.const=e}else o.every(e=>"number"==typeof e)&&(n.type="number"),o.every(e=>"string"==typeof e)&&(n.type="string"),o.every(e=>"boolean"==typeof e)&&(n.type="boolean"),o.every(e=>null===e)&&(n.type="null"),n.enum=o},cs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("NaN cannot be represented in JSON Schema")},ls=(e,t,n,i)=>{const r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},us=(e,t,n,i)=>{const r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;void 0!==a&&(o.minLength=a),void 0!==s&&(o.maxLength=s),c?1===c.length?(o.contentMediaType=c[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(r,o)},ds=(e,t,n,i)=>{n.type="boolean"},ps=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")},ms=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Function types cannot be represented in JSON Schema")},fs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")},hs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Map cannot be represented in JSON Schema")},gs=(e,t,n,i)=>{if("throw"===t.unrepresentable)throw new Error("Set cannot be represented in JSON Schema")},vs=(e,t,n,i)=>{const r=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;"number"==typeof a&&(r.minItems=a),"number"==typeof s&&(r.maxItems=s),r.type="array",r.items=La(o.element,t,{...i,path:[...i.path,"items"]})},bs=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object",r.properties={};const a=o.shape;for(const e in a)r.properties[e]=La(a[e],t,{...i,path:[...i.path,"properties",e]});const s=new Set(Object.keys(a)),c=new Set([...s].filter(e=>{const n=o.shape[e]._zod;return"input"===t.io?void 0===n.optin:void 0===n.optout}));c.size>0&&(r.required=Array.from(c)),"never"===o.catchall?._zod.def.type?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=La(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)},$s=(e,t,n,i)=>{const r=e._zod.def,o=!1===r.inclusive,a=r.options.map((e,n)=>La(e,t,{...i,path:[...i.path,o?"oneOf":"anyOf",n]}));o?n.oneOf=a:n.anyOf=a},ys=(e,t,n,i)=>{const r=e._zod.def,o=La(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=La(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},ks=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="array";const a="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",c=o.items.map((e,n)=>La(e,t,{...i,path:[...i.path,a,n]})),l=o.rest?La(o.rest,t,{...i,path:[...i.path,s,..."openapi-3.0"===t.target?[o.items.length]:[]]}):null;"draft-2020-12"===t.target?(r.prefixItems=c,l&&(r.items=l)):"openapi-3.0"===t.target?(r.items={anyOf:c},l&&r.items.anyOf.push(l),r.minItems=c.length,l||(r.maxItems=c.length)):(r.items=c,l&&(r.additionalItems=l));const{minimum:u,maximum:d}=e._zod.bag;"number"==typeof u&&(r.minItems=u),"number"==typeof d&&(r.maxItems=d)},_s=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object";const a=o.keyType,s=a._zod.bag,c=s?.patterns;if("loose"===o.mode&&c&&c.size>0){const e=La(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(const t of c)r.patternProperties[t.source]=e}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(r.propertyNames=La(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=La(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});const l=a._zod.values;if(l){const e=[...l].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(r.required=e)}},xs=(e,t,n,i)=>{const r=e._zod.def,o=La(r.innerType,t,i),a=t.seen.get(e);"openapi-3.0"===t.target?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},ws=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType},Cs=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Is=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType,"input"===t.io&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Es=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);let o;t.seen.get(e).ref=r.innerType;try{o=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},Ss=(e,t,n,i)=>{const r=e._zod.def,o="input"===t.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;La(o,t,i);t.seen.get(e).ref=o},zs=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType,n.readOnly=!0},Os=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType},As=(e,t,n,i)=>{const r=e._zod.def;La(r.innerType,t,i);t.seen.get(e).ref=r.innerType},Ts=(e,t,n,i)=>{const r=e._zod.innerType;La(r,t,i);t.seen.get(e).ref=r},Ps={string:Ja,number:Ga,boolean:Ka,bigint:Xa,symbol:Ya,null:Qa,undefined:es,void:ts,never:ns,any:is,unknown:rs,date:os,enum:as,literal:ss,nan:cs,template_literal:ls,file:us,success:ds,custom:ps,function:ms,transform:fs,map:hs,set:gs,array:vs,object:bs,union:$s,intersection:ys,tuple:ks,record:_s,nullable:xs,nonoptional:ws,default:Cs,prefault:Is,catch:Es,pipe:Ss,readonly:zs,promise:Os,optional:As,lazy:Ts};function Us(e,t){if("_idmap"in e){const n=e,i=Za({...t,processors:Ps}),r={};for(const e of n._idmap.entries()){const[t,n]=e;La(n,i)}const o={},a={registry:n,uri:t?.uri,defs:r};i.external=a;for(const e of n._idmap.entries()){const[t,n]=e;Ba(i,n),o[t]=qa(i,n)}if(Object.keys(r).length>0){const e="draft-2020-12"===i.target?"$defs":"definitions";o.__shared={[e]:r}}return{schemas:o}}const n=Za({...t,processors:Ps});return La(e,n),Ba(n,e),qa(n,e)}var Rs=Object.freeze({__proto__:null}),Ns=Object.freeze({__proto__:null,$ZodAny:Fn,$ZodArray:Kn,$ZodAsyncError:o,$ZodBase64:zn,$ZodBase64URL:An,$ZodBigInt:Mn,$ZodBigIntFormat:Zn,$ZodBoolean:Dn,$ZodCIDRv4:In,$ZodCIDRv6:En,$ZodCUID:fn,$ZodCUID2:hn,$ZodCatch:Ai,$ZodCheck:Tt,$ZodCheckBigIntFormat:Dt,$ZodCheckEndsWith:Xt,$ZodCheckGreaterThan:Rt,$ZodCheckIncludes:Gt,$ZodCheckLengthEquals:Ft,$ZodCheckLessThan:Ut,$ZodCheckLowerCase:Wt,$ZodCheckMaxLength:Bt,$ZodCheckMaxSize:Mt,$ZodCheckMimeType:en,$ZodCheckMinLength:qt,$ZodCheckMinSize:Zt,$ZodCheckMultipleOf:Nt,$ZodCheckNumberFormat:jt,$ZodCheckOverwrite:tn,$ZodCheckProperty:Qt,$ZodCheckRegex:Vt,$ZodCheckSizeEquals:Lt,$ZodCheckStartsWith:Kt,$ZodCheckStringFormat:Ht,$ZodCheckUpperCase:Jt,$ZodCodec:Ri,$ZodCustom:Fi,$ZodCustomStringFormat:Rn,$ZodDate:Jn,$ZodDefault:Ci,$ZodDiscriminatedUnion:ai,$ZodE164:Tn,$ZodEmail:un,$ZodEmoji:pn,$ZodEncodeError:a,$ZodEnum:vi,$ZodError:te,$ZodExactOptional:xi,$ZodFile:$i,$ZodFunction:Li,$ZodGUID:cn,$ZodIPv4:xn,$ZodIPv6:wn,$ZodISODate:yn,$ZodISODateTime:$n,$ZodISODuration:_n,$ZodISOTime:kn,$ZodIntersection:si,$ZodJWT:Un,$ZodKSUID:bn,$ZodLazy:qi,$ZodLiteral:bi,$ZodMAC:Cn,$ZodMap:mi,$ZodNaN:Ti,$ZodNanoID:mn,$ZodNever:Vn,$ZodNonOptional:Si,$ZodNull:qn,$ZodNullable:wi,$ZodNumber:Nn,$ZodNumberFormat:jn,$ZodObject:ei,$ZodObjectJIT:ti,$ZodOptional:_i,$ZodPipe:Pi,$ZodPrefault:Ei,$ZodPromise:Bi,$ZodReadonly:Di,$ZodRealError:ne,$ZodRecord:pi,$ZodRegistry:Yr,$ZodSet:hi,$ZodString:an,$ZodStringFormat:sn,$ZodSuccess:Oi,$ZodSymbol:Ln,$ZodTemplateLiteral:Zi,$ZodTransform:yi,$ZodTuple:ui,$ZodType:on,$ZodULID:gn,$ZodURL:dn,$ZodUUID:ln,$ZodUndefined:Bn,$ZodUnion:ii,$ZodUnknown:Hn,$ZodVoid:Wn,$ZodXID:vn,$ZodXor:oi,$brand:r,$constructor:i,$input:Xr,$output:Kr,Doc:nn,JSONSchema:Rs,JSONSchemaGenerator:class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=Za({processors:Ps,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return La(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Ba(this.ctx,e);const n=qa(this.ctx,e),{"~standard":i,...r}=n;return r}},NEVER:n,TimePrecision:Eo,_any:Jo,_array:Oa,_base64:xo,_base64url:wo,_bigint:Lo,_boolean:Mo,_catch:function(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})},_check:Ra,_cidrv4:ko,_cidrv6:_o,_coercedBigint:Bo,_coercedBoolean:Zo,_coercedDate:Qo,_coercedNumber:Po,_coercedString:no,_cuid:mo,_cuid2:fo,_custom:Ta,_date:Yo,_decode:be,_decodeAsync:_e,_default:function(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():I(n)}})},_discriminatedUnion:function(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...A(i)})},_e164:Co,_email:io,_emoji:uo,_encode:ge,_encodeAsync:ye,_endsWith:ka,_enum:function(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t;return new e({type:"enum",entries:i,...A(n)})},_file:Aa,_float32:Ro,_float64:No,_gt:ia,_gte:ra,_guid:ro,_includes:$a,_int:Uo,_int32:jo,_int64:qo,_intersection:function(e,t,n){return new e({type:"intersection",left:t,right:n})},_ipv4:bo,_ipv6:$o,_isoDate:zo,_isoDateTime:So,_isoDuration:Ao,_isoTime:Oo,_jwt:Io,_ksuid:vo,_lazy:function(e,t){return new e({type:"lazy",getter:t})},_length:ha,_literal:function(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...A(n)})},_lowercase:va,_lt:ta,_lte:na,_mac:yo,_map:function(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...A(i)})},_max:na,_maxLength:ma,_maxSize:ua,_mime:xa,_min:ra,_minLength:fa,_minSize:da,_multipleOf:la,_nan:ea,_nanoid:po,_nativeEnum:function(e,t,n){return new e({type:"enum",entries:t,...A(n)})},_negative:aa,_never:Ko,_nonnegative:ca,_nonoptional:function(e,t,n){return new e({type:"nonoptional",innerType:t,...A(n)})},_nonpositive:sa,_normalize:Ca,_null:Wo,_nullable:function(e,t){return new e({type:"nullable",innerType:t})},_number:To,_optional:function(e,t){return new e({type:"optional",innerType:t})},_overwrite:wa,_parse:ce,_parseAsync:ue,_pipe:function(e,t,n){return new e({type:"pipe",in:t,out:n})},_positive:oa,_promise:function(e,t){return new e({type:"promise",innerType:t})},_property:_a,_readonly:function(e,t){return new e({type:"readonly",innerType:t})},_record:function(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...A(i)})},_refine:Pa,_regex:ga,_safeDecode:Ie,_safeDecodeAsync:Oe,_safeEncode:we,_safeEncodeAsync:Se,_safeParse:pe,_safeParseAsync:fe,_set:function(e,t,n){return new e({type:"set",valueType:t,...A(n)})},_size:pa,_slugify:za,_startsWith:ya,_string:to,_stringFormat:Ma,_stringbool:Da,_success:function(e,t){return new e({type:"success",innerType:t})},_superRefine:Ua,_symbol:Ho,_templateLiteral:function(e,t,n){return new e({type:"template_literal",parts:t,...A(n)})},_toLowerCase:Ea,_toUpperCase:Sa,_transform:function(e,t){return new e({type:"transform",transform:t})},_trim:Ia,_tuple:function(e,t,n,i){const r=n instanceof on;return new e({type:"tuple",items:t,rest:r?n:null,...A(r?i:n)})},_uint32:Do,_uint64:Fo,_ulid:ho,_undefined:Vo,_union:function(e,t,n){return new e({type:"union",options:t,...A(n)})},_unknown:Go,_uppercase:ba,_url:lo,_uuid:oo,_uuidv4:ao,_uuidv6:so,_uuidv7:co,_void:Xo,_xid:go,_xor:function(e,t,n){return new e({type:"union",options:t,inclusive:!1,...A(n)})},clone:O,config:c,createStandardJSONSchemaMethod:Va,createToJSONSchemaMethod:Ha,decode:$e,decodeAsync:xe,describe:Na,encode:ve,encodeAsync:ke,extractDefs:Ba,finalize:qa,flattenError:ie,formatError:re,globalConfig:s,globalRegistry:eo,initializeContext:Za,isValidBase64:Sn,isValidBase64URL:On,isValidJWT:Pn,locales:Gr,meta:ja,parse:le,parseAsync:de,prettifyError:se,process:La,regexes:At,registry:Qr,safeDecode:Ee,safeDecodeAsync:Ae,safeEncode:Ce,safeEncodeAsync:ze,safeParse:me,safeParseAsync:he,toDotPath:ae,toJSONSchema:Us,treeifyError:oe,util:Q,version:rn});function js(e){return!!e._zod}function Ds(e,t){if(js(e)){return me(e,t)}return e.safeParse(t)}var Ms=Object.freeze({__proto__:null,endsWith:ka,gt:ia,gte:ra,includes:$a,length:ha,lowercase:va,lt:ta,lte:na,maxLength:ma,maxSize:ua,mime:xa,minLength:fa,minSize:da,multipleOf:la,negative:aa,nonnegative:ca,nonpositive:sa,normalize:Ca,overwrite:wa,positive:oa,property:_a,regex:ga,size:pa,slugify:za,startsWith:ya,toLowerCase:Ea,toUpperCase:Sa,trim:Ia,uppercase:ba});const Zs=i("ZodISODateTime",(e,t)=>{$n.init(e,t),fc.init(e,t)});function Ls(e){return So(Zs,e)}const Bs=i("ZodISODate",(e,t)=>{yn.init(e,t),fc.init(e,t)});function qs(e){return zo(Bs,e)}const Fs=i("ZodISOTime",(e,t)=>{kn.init(e,t),fc.init(e,t)});function Hs(e){return Oo(Fs,e)}const Vs=i("ZodISODuration",(e,t)=>{_n.init(e,t),fc.init(e,t)});function Ws(e){return Ao(Vs,e)}var Js=Object.freeze({__proto__:null,ZodISODate:Bs,ZodISODateTime:Zs,ZodISODuration:Vs,ZodISOTime:Fs,date:qs,datetime:Ls,duration:Ws,time:Hs});const Gs=(e,t)=>{te.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>re(e,t)},flatten:{value:t=>ie(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,d,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,d,2)}},isEmpty:{get:()=>0===e.issues.length}})},Ks=i("ZodError",Gs),Xs=i("ZodError",Gs,{Parent:Error}),Ys=ce(Xs),Qs=ue(Xs),ec=pe(Xs),tc=fe(Xs),nc=ge(Xs),ic=be(Xs),rc=ye(Xs),oc=_e(Xs),ac=we(Xs),sc=Ie(Xs),cc=Se(Xs),lc=Oe(Xs),uc=i("ZodType",(e,t)=>(on.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Va(e,"input"),output:Va(e,"output")}}),e.toJSONSchema=Ha(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone($(t,{checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>O(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Ys(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ec(e,t,n),e.parseAsync=async(t,n)=>Qs(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>tc(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>nc(e,t,n),e.decode=(t,n)=>ic(e,t,n),e.encodeAsync=async(t,n)=>rc(e,t,n),e.decodeAsync=async(t,n)=>oc(e,t,n),e.safeEncode=(t,n)=>ac(e,t,n),e.safeDecode=(t,n)=>sc(e,t,n),e.safeEncodeAsync=async(t,n)=>cc(e,t,n),e.safeDecodeAsync=async(t,n)=>lc(e,t,n),e.refine=(t,n)=>e.check(id(t,n)),e.superRefine=t=>e.check(rd(t)),e.overwrite=t=>e.check(wa(t)),e.optional=()=>_u(e),e.exactOptional=()=>wu(e),e.nullable=()=>Iu(e),e.nullish=()=>_u(Iu(e)),e.nonoptional=t=>Pu(e,t),e.array=()=>Bl(e),e.or=t=>Gl([e,t]),e.and=t=>tu(e,t),e.transform=t=>Lu(e,yu(t)),e.default=t=>zu(e,t),e.prefault=t=>Au(e,t),e.catch=t=>ju(e,t),e.pipe=t=>Lu(e,t),e.readonly=()=>Hu(e),e.describe=t=>{const n=e.clone();return eo.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>eo.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return eo.get(e);const n=e.clone();return eo.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),dc=i("_ZodString",(e,t)=>{an.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ja(e,t,n);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(ga(...t)),e.includes=(...t)=>e.check($a(...t)),e.startsWith=(...t)=>e.check(ya(...t)),e.endsWith=(...t)=>e.check(ka(...t)),e.min=(...t)=>e.check(fa(...t)),e.max=(...t)=>e.check(ma(...t)),e.length=(...t)=>e.check(ha(...t)),e.nonempty=(...t)=>e.check(fa(1,...t)),e.lowercase=t=>e.check(va(t)),e.uppercase=t=>e.check(ba(t)),e.trim=()=>e.check(Ia()),e.normalize=(...t)=>e.check(Ca(...t)),e.toLowerCase=()=>e.check(Ea()),e.toUpperCase=()=>e.check(Sa()),e.slugify=()=>e.check(za())}),pc=i("ZodString",(e,t)=>{an.init(e,t),dc.init(e,t),e.email=t=>e.check(io(hc,t)),e.url=t=>e.check(lo(wc,t)),e.jwt=t=>e.check(Io(il,t)),e.emoji=t=>e.check(uo(Ec,t)),e.guid=t=>e.check(ro(vc,t)),e.uuid=t=>e.check(oo($c,t)),e.uuidv4=t=>e.check(ao($c,t)),e.uuidv6=t=>e.check(so($c,t)),e.uuidv7=t=>e.check(co($c,t)),e.nanoid=t=>e.check(po(zc,t)),e.guid=t=>e.check(ro(vc,t)),e.cuid=t=>e.check(mo(Ac,t)),e.cuid2=t=>e.check(fo(Pc,t)),e.ulid=t=>e.check(ho(Rc,t)),e.base64=t=>e.check(xo(Xc,t)),e.base64url=t=>e.check(wo(Qc,t)),e.xid=t=>e.check(go(jc,t)),e.ksuid=t=>e.check(vo(Mc,t)),e.ipv4=t=>e.check(bo(Lc,t)),e.ipv6=t=>e.check($o(Hc,t)),e.cidrv4=t=>e.check(ko(Wc,t)),e.cidrv6=t=>e.check(_o(Gc,t)),e.e164=t=>e.check(Co(tl,t)),e.datetime=t=>e.check(Ls(t)),e.date=t=>e.check(qs(t)),e.time=t=>e.check(Hs(t)),e.duration=t=>e.check(Ws(t))});function mc(e){return to(pc,e)}const fc=i("ZodStringFormat",(e,t)=>{sn.init(e,t),dc.init(e,t)}),hc=i("ZodEmail",(e,t)=>{un.init(e,t),fc.init(e,t)});function gc(e){return io(hc,e)}const vc=i("ZodGUID",(e,t)=>{cn.init(e,t),fc.init(e,t)});function bc(e){return ro(vc,e)}const $c=i("ZodUUID",(e,t)=>{ln.init(e,t),fc.init(e,t)});function yc(e){return oo($c,e)}function kc(e){return ao($c,e)}function _c(e){return so($c,e)}function xc(e){return co($c,e)}const wc=i("ZodURL",(e,t)=>{dn.init(e,t),fc.init(e,t)});function Cc(e){return lo(wc,e)}function Ic(e){return lo(wc,{protocol:/^https?$/,hostname:nt,...A(e)})}const Ec=i("ZodEmoji",(e,t)=>{pn.init(e,t),fc.init(e,t)});function Sc(e){return uo(Ec,e)}const zc=i("ZodNanoID",(e,t)=>{mn.init(e,t),fc.init(e,t)});function Oc(e){return po(zc,e)}const Ac=i("ZodCUID",(e,t)=>{fn.init(e,t),fc.init(e,t)});function Tc(e){return mo(Ac,e)}const Pc=i("ZodCUID2",(e,t)=>{hn.init(e,t),fc.init(e,t)});function Uc(e){return fo(Pc,e)}const Rc=i("ZodULID",(e,t)=>{gn.init(e,t),fc.init(e,t)});function Nc(e){return ho(Rc,e)}const jc=i("ZodXID",(e,t)=>{vn.init(e,t),fc.init(e,t)});function Dc(e){return go(jc,e)}const Mc=i("ZodKSUID",(e,t)=>{bn.init(e,t),fc.init(e,t)});function Zc(e){return vo(Mc,e)}const Lc=i("ZodIPv4",(e,t)=>{xn.init(e,t),fc.init(e,t)});function Bc(e){return bo(Lc,e)}const qc=i("ZodMAC",(e,t)=>{Cn.init(e,t),fc.init(e,t)});function Fc(e){return yo(qc,e)}const Hc=i("ZodIPv6",(e,t)=>{wn.init(e,t),fc.init(e,t)});function Vc(e){return $o(Hc,e)}const Wc=i("ZodCIDRv4",(e,t)=>{In.init(e,t),fc.init(e,t)});function Jc(e){return ko(Wc,e)}const Gc=i("ZodCIDRv6",(e,t)=>{En.init(e,t),fc.init(e,t)});function Kc(e){return _o(Gc,e)}const Xc=i("ZodBase64",(e,t)=>{zn.init(e,t),fc.init(e,t)});function Yc(e){return xo(Xc,e)}const Qc=i("ZodBase64URL",(e,t)=>{An.init(e,t),fc.init(e,t)});function el(e){return wo(Qc,e)}const tl=i("ZodE164",(e,t)=>{Tn.init(e,t),fc.init(e,t)});function nl(e){return Co(tl,e)}const il=i("ZodJWT",(e,t)=>{Un.init(e,t),fc.init(e,t)});function rl(e){return Io(il,e)}const ol=i("ZodCustomStringFormat",(e,t)=>{Rn.init(e,t),fc.init(e,t)});function al(e,t,n={}){return Ma(ol,e,t,n)}function sl(e){return Ma(ol,"hostname",tt,e)}function cl(e){return Ma(ol,"hex",bt,e)}function ll(e,t){const n=`${e}_${t?.enc??"hex"}`,i=At[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return Ma(ol,n,i,t)}const ul=i("ZodNumber",(e,t)=>{Nn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ga(e,t,n),e.gt=(t,n)=>e.check(ia(t,n)),e.gte=(t,n)=>e.check(ra(t,n)),e.min=(t,n)=>e.check(ra(t,n)),e.lt=(t,n)=>e.check(ta(t,n)),e.lte=(t,n)=>e.check(na(t,n)),e.max=(t,n)=>e.check(na(t,n)),e.int=t=>e.check(ml(t)),e.safe=t=>e.check(ml(t)),e.positive=t=>e.check(ia(0,t)),e.nonnegative=t=>e.check(ra(0,t)),e.negative=t=>e.check(ta(0,t)),e.nonpositive=t=>e.check(na(0,t)),e.multipleOf=(t,n)=>e.check(la(t,n)),e.step=(t,n)=>e.check(la(t,n)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function dl(e){return To(ul,e)}const pl=i("ZodNumberFormat",(e,t)=>{jn.init(e,t),ul.init(e,t)});function ml(e){return Uo(pl,e)}function fl(e){return Ro(pl,e)}function hl(e){return No(pl,e)}function gl(e){return jo(pl,e)}function vl(e){return Do(pl,e)}const bl=i("ZodBoolean",(e,t)=>{Dn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Ka(0,0,t)});function $l(e){return Mo(bl,e)}const yl=i("ZodBigInt",(e,t)=>{Mn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Xa(0,e),e.gte=(t,n)=>e.check(ra(t,n)),e.min=(t,n)=>e.check(ra(t,n)),e.gt=(t,n)=>e.check(ia(t,n)),e.gte=(t,n)=>e.check(ra(t,n)),e.min=(t,n)=>e.check(ra(t,n)),e.lt=(t,n)=>e.check(ta(t,n)),e.lte=(t,n)=>e.check(na(t,n)),e.max=(t,n)=>e.check(na(t,n)),e.positive=t=>e.check(ia(BigInt(0),t)),e.negative=t=>e.check(ta(BigInt(0),t)),e.nonpositive=t=>e.check(na(BigInt(0),t)),e.nonnegative=t=>e.check(ra(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(la(t,n));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function kl(e){return Lo(yl,e)}const _l=i("ZodBigIntFormat",(e,t)=>{Zn.init(e,t),yl.init(e,t)});function xl(e){return qo(_l,e)}function wl(e){return Fo(_l,e)}const Cl=i("ZodSymbol",(e,t)=>{Ln.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Ya(0,e)});function Il(e){return Ho(Cl,e)}const El=i("ZodUndefined",(e,t)=>{Bn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>es(0,e)});function Sl(e){return Vo(El,e)}const zl=i("ZodNull",(e,t)=>{qn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Qa(0,e,t)});function Ol(e){return Wo(zl,e)}const Al=i("ZodAny",(e,t)=>{Fn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function Tl(){return Jo(Al)}const Pl=i("ZodUnknown",(e,t)=>{Hn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function Ul(){return Go(Pl)}const Rl=i("ZodNever",(e,t)=>{Vn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ns(0,0,t)});function Nl(e){return Ko(Rl,e)}const jl=i("ZodVoid",(e,t)=>{Wn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ts(0,e)});function Dl(e){return Xo(jl,e)}const Ml=i("ZodDate",(e,t)=>{Jn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>os(0,e),e.min=(t,n)=>e.check(ra(t,n)),e.max=(t,n)=>e.check(na(t,n));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Zl(e){return Yo(Ml,e)}const Ll=i("ZodArray",(e,t)=>{Kn.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>vs(e,t,n,i),e.element=t.element,e.min=(t,n)=>e.check(fa(t,n)),e.nonempty=t=>e.check(fa(1,t)),e.max=(t,n)=>e.check(ma(t,n)),e.length=(t,n)=>e.check(ha(t,n)),e.unwrap=()=>e.element});function Bl(e,t){return Oa(Ll,e,t)}function ql(e){const t=e._zod.def.shape;return mu(Object.keys(t))}const Fl=i("ZodObject",(e,t)=>{ti.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>bs(e,t,n,i),v(e,"shape",()=>t.shape),e.keyof=()=>mu(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ul()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ul()}),e.strict=()=>e.clone({...e._zod.def,catchall:Nl()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>D(e,t),e.safeExtend=t=>M(e,t),e.merge=t=>Z(e,t),e.pick=t=>N(e,t),e.omit=t=>j(e,t),e.partial=(...t)=>L(ku,e,t[0]),e.required=(...t)=>B(Tu,e,t[0])});function Hl(e,t){const n={type:"object",shape:e??{},...A(t)};return new Fl(n)}function Vl(e,t){return new Fl({type:"object",shape:e,catchall:Nl(),...A(t)})}function Wl(e,t){return new Fl({type:"object",shape:e,catchall:Ul(),...A(t)})}const Jl=i("ZodUnion",(e,t)=>{ii.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>$s(e,t,n,i),e.options=t.options});function Gl(e,t){return new Jl({type:"union",options:e,...A(t)})}const Kl=i("ZodXor",(e,t)=>{Jl.init(e,t),oi.init(e,t),e._zod.processJSONSchema=(t,n,i)=>$s(e,t,n,i),e.options=t.options});function Xl(e,t){return new Kl({type:"union",options:e,inclusive:!1,...A(t)})}const Yl=i("ZodDiscriminatedUnion",(e,t)=>{Jl.init(e,t),ai.init(e,t)});function Ql(e,t,n){return new Yl({type:"union",options:t,discriminator:e,...A(n)})}const eu=i("ZodIntersection",(e,t)=>{si.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ys(e,t,n,i)});function tu(e,t){return new eu({type:"intersection",left:e,right:t})}const nu=i("ZodTuple",(e,t)=>{ui.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ks(e,t,n,i),e.rest=t=>e.clone({...e._zod.def,rest:t})});function iu(e,t,n){const i=t instanceof on;return new nu({type:"tuple",items:e,rest:i?t:null,...A(i?n:t)})}const ru=i("ZodRecord",(e,t)=>{pi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>_s(e,t,n,i),e.keyType=t.keyType,e.valueType=t.valueType});function ou(e,t,n){return new ru({type:"record",keyType:e,valueType:t,...A(n)})}function au(e,t,n){const i=O(e);return i._zod.values=void 0,new ru({type:"record",keyType:i,valueType:t,...A(n)})}function su(e,t,n){return new ru({type:"record",keyType:e,valueType:t,mode:"loose",...A(n)})}const cu=i("ZodMap",(e,t)=>{mi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>hs(0,e),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(da(...t)),e.nonempty=t=>e.check(da(1,t)),e.max=(...t)=>e.check(ua(...t)),e.size=(...t)=>e.check(pa(...t))});function lu(e,t,n){return new cu({type:"map",keyType:e,valueType:t,...A(n)})}const uu=i("ZodSet",(e,t)=>{hi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>gs(0,e),e.min=(...t)=>e.check(da(...t)),e.nonempty=t=>e.check(da(1,t)),e.max=(...t)=>e.check(ua(...t)),e.size=(...t)=>e.check(pa(...t))});function du(e,t){return new uu({type:"set",valueType:e,...A(t)})}const pu=i("ZodEnum",(e,t)=>{vi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>as(e,0,n),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(e,i)=>{const r={};for(const i of e){if(!n.has(i))throw new Error(`Key ${i} not found in enum`);r[i]=t.entries[i]}return new pu({...t,checks:[],...A(i),entries:r})},e.exclude=(e,i)=>{const r={...t.entries};for(const t of e){if(!n.has(t))throw new Error(`Key ${t} not found in enum`);delete r[t]}return new pu({...t,checks:[],...A(i),entries:r})}});function mu(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new pu({type:"enum",entries:n,...A(t)})}function fu(e,t){return new pu({type:"enum",entries:e,...A(t)})}const hu=i("ZodLiteral",(e,t)=>{bi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ss(e,t,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gu(e,t){return new hu({type:"literal",values:Array.isArray(e)?e:[e],...A(t)})}const vu=i("ZodFile",(e,t)=>{$i.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>us(e,0,n),e.min=(t,n)=>e.check(da(t,n)),e.max=(t,n)=>e.check(ua(t,n)),e.mime=(t,n)=>e.check(xa(Array.isArray(t)?t:[t],n))});function bu(e){return Aa(vu,e)}const $u=i("ZodTransform",(e,t)=>{yi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>fs(0,e),e._zod.parse=(n,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);n.addIssue=i=>{if("string"==typeof i)n.issues.push(K(i,n.value,t));else{const t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=n.value),t.inst??(t.inst=e),n.issues.push(K(t))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(e=>(n.value=e,n)):(n.value=r,n)}});function yu(e){return new $u({type:"transform",transform:e})}const ku=i("ZodOptional",(e,t)=>{_i.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>As(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function _u(e){return new ku({type:"optional",innerType:e})}const xu=i("ZodExactOptional",(e,t)=>{xi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>As(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function wu(e){return new xu({type:"optional",innerType:e})}const Cu=i("ZodNullable",(e,t)=>{wi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>xs(e,t,n,i),e.unwrap=()=>e._zod.def.innerType});function Iu(e){return new Cu({type:"nullable",innerType:e})}function Eu(e){return _u(Iu(e))}const Su=i("ZodDefault",(e,t)=>{Ci.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Cs(e,t,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function zu(e,t){return new Su({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():I(t)}})}const Ou=i("ZodPrefault",(e,t)=>{Ei.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Is(e,t,n,i),e.unwrap=()=>e._zod.def.innerType});function Au(e,t){return new Ou({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():I(t)}})}const Tu=i("ZodNonOptional",(e,t)=>{Si.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ws(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function Pu(e,t){return new Tu({type:"nonoptional",innerType:e,...A(t)})}const Uu=i("ZodSuccess",(e,t)=>{Oi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ds(0,0,t),e.unwrap=()=>e._zod.def.innerType});function Ru(e){return new Uu({type:"success",innerType:e})}const Nu=i("ZodCatch",(e,t)=>{Ai.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Es(e,t,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ju(e,t){return new Nu({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}const Du=i("ZodNaN",(e,t)=>{Ti.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>cs(0,e)});function Mu(e){return ea(Du,e)}const Zu=i("ZodPipe",(e,t)=>{Pi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ss(e,t,0,i),e.in=t.in,e.out=t.out});function Lu(e,t){return new Zu({type:"pipe",in:e,out:t})}const Bu=i("ZodCodec",(e,t)=>{Zu.init(e,t),Ri.init(e,t)});function qu(e,t,n){return new Bu({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const Fu=i("ZodReadonly",(e,t)=>{Di.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>zs(e,t,n,i),e.unwrap=()=>e._zod.def.innerType});function Hu(e){return new Fu({type:"readonly",innerType:e})}const Vu=i("ZodTemplateLiteral",(e,t)=>{Zi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>ls(e,0,n)});function Wu(e,t){return new Vu({type:"template_literal",parts:e,...A(t)})}const Ju=i("ZodLazy",(e,t)=>{qi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Ts(e,t,0,i),e.unwrap=()=>e._zod.def.getter()});function Gu(e){return new Ju({type:"lazy",getter:e})}const Ku=i("ZodPromise",(e,t)=>{Bi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(t,n,i)=>Os(e,t,0,i),e.unwrap=()=>e._zod.def.innerType});function Xu(e){return new Ku({type:"promise",innerType:e})}const Yu=i("ZodFunction",(e,t)=>{Li.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ms(0,e)});function Qu(e){return new Yu({type:"function",input:Array.isArray(e?.input)?iu(e?.input):e?.input??Bl(Ul()),output:e?.output??Ul()})}const ed=i("ZodCustom",(e,t)=>{Fi.init(e,t),uc.init(e,t),e._zod.processJSONSchema=(e,t,n)=>ps(0,e)});function td(e){const t=new Tt({check:"custom"});return t._zod.check=e,t}function nd(e,t){return Ta(ed,e??(()=>!0),t)}function id(e,t={}){return Pa(ed,e,t)}function rd(e){return Ua(e)}const od=Na,ad=ja;function sd(e,t={}){const n=new ed({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...A(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}const cd=(...e)=>Da({Codec:Bu,Boolean:bl,String:pc},...e);function ld(e){const t=Gu(()=>Gl([mc(e),dl(),$l(),Ol(),Bl(t),ou(mc(),t)]));return t}function ud(e,t){return Lu(yu(e),t)}const dd={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function pd(e){c({customError:e})}function md(){return c().customError}var fd;fd||(fd={});const hd={...Object.freeze({__proto__:null,ZodAny:Al,ZodArray:Ll,ZodBase64:Xc,ZodBase64URL:Qc,ZodBigInt:yl,ZodBigIntFormat:_l,ZodBoolean:bl,ZodCIDRv4:Wc,ZodCIDRv6:Gc,ZodCUID:Ac,ZodCUID2:Pc,ZodCatch:Nu,ZodCodec:Bu,ZodCustom:ed,ZodCustomStringFormat:ol,ZodDate:Ml,ZodDefault:Su,ZodDiscriminatedUnion:Yl,ZodE164:tl,ZodEmail:hc,ZodEmoji:Ec,ZodEnum:pu,ZodExactOptional:xu,ZodFile:vu,ZodFunction:Yu,ZodGUID:vc,ZodIPv4:Lc,ZodIPv6:Hc,ZodIntersection:eu,ZodJWT:il,ZodKSUID:Mc,ZodLazy:Ju,ZodLiteral:hu,ZodMAC:qc,ZodMap:cu,ZodNaN:Du,ZodNanoID:zc,ZodNever:Rl,ZodNonOptional:Tu,ZodNull:zl,ZodNullable:Cu,ZodNumber:ul,ZodNumberFormat:pl,ZodObject:Fl,ZodOptional:ku,ZodPipe:Zu,ZodPrefault:Ou,ZodPromise:Ku,ZodReadonly:Fu,ZodRecord:ru,ZodSet:uu,ZodString:pc,ZodStringFormat:fc,ZodSuccess:Uu,ZodSymbol:Cl,ZodTemplateLiteral:Vu,ZodTransform:$u,ZodTuple:nu,ZodType:uc,ZodULID:Rc,ZodURL:wc,ZodUUID:$c,ZodUndefined:El,ZodUnion:Jl,ZodUnknown:Pl,ZodVoid:jl,ZodXID:jc,ZodXor:Kl,_ZodString:dc,_default:zu,_function:Qu,any:Tl,array:Bl,base64:Yc,base64url:el,bigint:kl,boolean:$l,catch:ju,check:td,cidrv4:Jc,cidrv6:Kc,codec:qu,cuid:Tc,cuid2:Uc,custom:nd,date:Zl,describe:od,discriminatedUnion:Ql,e164:nl,email:gc,emoji:Sc,enum:mu,exactOptional:wu,file:bu,float32:fl,float64:hl,function:Qu,guid:bc,hash:ll,hex:cl,hostname:sl,httpUrl:Ic,instanceof:sd,int:ml,int32:gl,int64:xl,intersection:tu,ipv4:Bc,ipv6:Vc,json:ld,jwt:rl,keyof:ql,ksuid:Zc,lazy:Gu,literal:gu,looseObject:Wl,looseRecord:su,mac:Fc,map:lu,meta:ad,nan:Mu,nanoid:Oc,nativeEnum:fu,never:Nl,nonoptional:Pu,null:Ol,nullable:Iu,nullish:Eu,number:dl,object:Hl,optional:_u,partialRecord:au,pipe:Lu,prefault:Au,preprocess:ud,promise:Xu,readonly:Hu,record:ou,refine:id,set:du,strictObject:Vl,string:mc,stringFormat:al,stringbool:cd,success:Ru,superRefine:rd,symbol:Il,templateLiteral:Wu,transform:yu,tuple:iu,uint32:vl,uint64:wl,ulid:Nc,undefined:Sl,union:Gl,unknown:Ul,url:Cc,uuid:yc,uuidv4:kc,uuidv6:_c,uuidv7:xc,void:Dl,xid:Dc,xor:Xl}),...Ms,iso:Js},gd=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function vd(e,t){if(void 0!==e.not){if("object"==typeof e.not&&0===Object.keys(e.not).length)return hd.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==e.unevaluatedItems)throw new Error("unevaluatedItems is not supported");if(void 0!==e.unevaluatedProperties)throw new Error("unevaluatedProperties is not supported");if(void 0!==e.if||void 0!==e.then||void 0!==e.else)throw new Error("Conditional schemas (if/then/else) are not supported");if(void 0!==e.dependentSchemas||void 0!==e.dependentRequired)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return hd.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);const i=function(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=e.slice(1).split("/").filter(Boolean);if(0===n.length)return t.rootSchema;const i="draft-2020-12"===t.version?"$defs":"definitions";if(n[0]===i){const i=n[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}(n,t),r=bd(i,t);return t.refs.set(n,r),t.processing.delete(n),r}if(void 0!==e.enum){const n=e.enum;if("openapi-3.0"===t.version&&!0===e.nullable&&1===n.length&&null===n[0])return hd.null();if(0===n.length)return hd.never();if(1===n.length)return hd.literal(n[0]);if(n.every(e=>"string"==typeof e))return hd.enum(n);const i=n.map(e=>hd.literal(e));return i.length<2?i[0]:hd.union([i[0],i[1],...i.slice(2)])}if(void 0!==e.const)return hd.literal(e.const);const n=e.type;if(Array.isArray(n)){const i=n.map(n=>vd({...e,type:n},t));return 0===i.length?hd.never():1===i.length?i[0]:hd.union(i)}if(!n)return hd.any();let i;switch(n){case"string":{let t=hd.string();if(e.format){const n=e.format;"email"===n?t=t.check(hd.email()):"uri"===n||"uri-reference"===n?t=t.check(hd.url()):"uuid"===n||"guid"===n?t=t.check(hd.uuid()):"date-time"===n?t=t.check(hd.iso.datetime()):"date"===n?t=t.check(hd.iso.date()):"time"===n?t=t.check(hd.iso.time()):"duration"===n?t=t.check(hd.iso.duration()):"ipv4"===n?t=t.check(hd.ipv4()):"ipv6"===n?t=t.check(hd.ipv6()):"mac"===n?t=t.check(hd.mac()):"cidr"===n?t=t.check(hd.cidrv4()):"cidr-v6"===n?t=t.check(hd.cidrv6()):"base64"===n?t=t.check(hd.base64()):"base64url"===n?t=t.check(hd.base64url()):"e164"===n?t=t.check(hd.e164()):"jwt"===n?t=t.check(hd.jwt()):"emoji"===n?t=t.check(hd.emoji()):"nanoid"===n?t=t.check(hd.nanoid()):"cuid"===n?t=t.check(hd.cuid()):"cuid2"===n?t=t.check(hd.cuid2()):"ulid"===n?t=t.check(hd.ulid()):"xid"===n?t=t.check(hd.xid()):"ksuid"===n&&(t=t.check(hd.ksuid()))}"number"==typeof e.minLength&&(t=t.min(e.minLength)),"number"==typeof e.maxLength&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),i=t;break}case"number":case"integer":{let t="integer"===n?hd.number().int():hd.number();"number"==typeof e.minimum&&(t=t.min(e.minimum)),"number"==typeof e.maximum&&(t=t.max(e.maximum)),"number"==typeof e.exclusiveMinimum?t=t.gt(e.exclusiveMinimum):!0===e.exclusiveMinimum&&"number"==typeof e.minimum&&(t=t.gt(e.minimum)),"number"==typeof e.exclusiveMaximum?t=t.lt(e.exclusiveMaximum):!0===e.exclusiveMaximum&&"number"==typeof e.maximum&&(t=t.lt(e.maximum)),"number"==typeof e.multipleOf&&(t=t.multipleOf(e.multipleOf)),i=t;break}case"boolean":i=hd.boolean();break;case"null":i=hd.null();break;case"object":{const n={},r=e.properties||{},o=new Set(e.required||[]);for(const[e,i]of Object.entries(r)){const r=bd(i,t);n[e]=o.has(e)?r:r.optional()}if(e.propertyNames){const r=bd(e.propertyNames,t),o=e.additionalProperties&&"object"==typeof e.additionalProperties?bd(e.additionalProperties,t):hd.any();if(0===Object.keys(n).length){i=hd.record(r,o);break}const a=hd.object(n).passthrough(),s=hd.looseRecord(r,o);i=hd.intersection(a,s);break}if(e.patternProperties){const r=e.patternProperties,o=Object.keys(r),a=[];for(const e of o){const n=bd(r[e],t),i=hd.string().regex(new RegExp(e));a.push(hd.looseRecord(i,n))}const s=[];if(Object.keys(n).length>0&&s.push(hd.object(n).passthrough()),s.push(...a),0===s.length)i=hd.object({}).passthrough();else if(1===s.length)i=s[0];else{let e=hd.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=hd.intersection(e,s[t]);i=e}break}const a=hd.object(n);i=!1===e.additionalProperties?a.strict():"object"==typeof e.additionalProperties?a.catchall(bd(e.additionalProperties,t)):a.passthrough();break}case"array":{const n=e.prefixItems,r=e.items;if(n&&Array.isArray(n)){const o=n.map(e=>bd(e,t)),a=r&&"object"==typeof r&&!Array.isArray(r)?bd(r,t):void 0;i=a?hd.tuple(o).rest(a):hd.tuple(o),"number"==typeof e.minItems&&(i=i.check(hd.minLength(e.minItems))),"number"==typeof e.maxItems&&(i=i.check(hd.maxLength(e.maxItems)))}else if(Array.isArray(r)){const n=r.map(e=>bd(e,t)),o=e.additionalItems&&"object"==typeof e.additionalItems?bd(e.additionalItems,t):void 0;i=o?hd.tuple(n).rest(o):hd.tuple(n),"number"==typeof e.minItems&&(i=i.check(hd.minLength(e.minItems))),"number"==typeof e.maxItems&&(i=i.check(hd.maxLength(e.maxItems)))}else if(void 0!==r){const n=bd(r,t);let o=hd.array(n);"number"==typeof e.minItems&&(o=o.min(e.minItems)),"number"==typeof e.maxItems&&(o=o.max(e.maxItems)),i=o}else i=hd.array(hd.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),void 0!==e.default&&(i=i.default(e.default)),i}function bd(e,t){if("boolean"==typeof e)return e?hd.any():hd.never();let n=vd(e,t);const i=e.type||void 0!==e.enum||void 0!==e.const;if(e.anyOf&&Array.isArray(e.anyOf)){const r=e.anyOf.map(e=>bd(e,t)),o=hd.union(r);n=i?hd.intersection(n,o):o}if(e.oneOf&&Array.isArray(e.oneOf)){const r=e.oneOf.map(e=>bd(e,t)),o=hd.xor(r);n=i?hd.intersection(n,o):o}if(e.allOf&&Array.isArray(e.allOf))if(0===e.allOf.length)n=i?n:hd.any();else{let r=i?n:bd(e.allOf[0],t);for(let n=i?0:1;n<e.allOf.length;n++)r=hd.intersection(r,bd(e.allOf[n],t));n=r}!0===e.nullable&&"openapi-3.0"===t.version&&(n=hd.nullable(n)),!0===e.readOnly&&(n=hd.readonly(n));const r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const t of o)t in e&&(r[t]=e[t]);const a=["contentEncoding","contentMediaType","contentSchema"];for(const t of a)t in e&&(r[t]=e[t]);for(const t of Object.keys(e))gd.has(t)||(r[t]=e[t]);return Object.keys(r).length>0&&t.registry.add(n,r),n}function $d(e,t){if("boolean"==typeof e)return e?hd.any():hd.never();const n=function(e,t){const n=e.$schema;return"https://json-schema.org/draft/2020-12/schema"===n?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===n?"draft-7":"http://json-schema.org/draft-04/schema#"===n?"draft-4":t??"draft-2020-12"}(e,t?.defaultTarget);return bd(e,{version:n,defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??eo})}var yd=Object.freeze({__proto__:null,bigint:function(e){return Bo(yl,e)},boolean:function(e){return Zo(bl,e)},date:function(e){return Qo(Ml,e)},number:function(e){return Po(ul,e)},string:function(e){return no(pc,e)}});c(nr());var kd=Object.freeze({__proto__:null,$brand:r,$input:Xr,$output:Kr,NEVER:n,TimePrecision:Eo,ZodAny:Al,ZodArray:Ll,ZodBase64:Xc,ZodBase64URL:Qc,ZodBigInt:yl,ZodBigIntFormat:_l,ZodBoolean:bl,ZodCIDRv4:Wc,ZodCIDRv6:Gc,ZodCUID:Ac,ZodCUID2:Pc,ZodCatch:Nu,ZodCodec:Bu,ZodCustom:ed,ZodCustomStringFormat:ol,ZodDate:Ml,ZodDefault:Su,ZodDiscriminatedUnion:Yl,ZodE164:tl,ZodEmail:hc,ZodEmoji:Ec,ZodEnum:pu,ZodError:Ks,ZodExactOptional:xu,ZodFile:vu,get ZodFirstPartyTypeKind(){return fd},ZodFunction:Yu,ZodGUID:vc,ZodIPv4:Lc,ZodIPv6:Hc,ZodISODate:Bs,ZodISODateTime:Zs,ZodISODuration:Vs,ZodISOTime:Fs,ZodIntersection:eu,ZodIssueCode:dd,ZodJWT:il,ZodKSUID:Mc,ZodLazy:Ju,ZodLiteral:hu,ZodMAC:qc,ZodMap:cu,ZodNaN:Du,ZodNanoID:zc,ZodNever:Rl,ZodNonOptional:Tu,ZodNull:zl,ZodNullable:Cu,ZodNumber:ul,ZodNumberFormat:pl,ZodObject:Fl,ZodOptional:ku,ZodPipe:Zu,ZodPrefault:Ou,ZodPromise:Ku,ZodReadonly:Fu,ZodRealError:Xs,ZodRecord:ru,ZodSet:uu,ZodString:pc,ZodStringFormat:fc,ZodSuccess:Uu,ZodSymbol:Cl,ZodTemplateLiteral:Vu,ZodTransform:$u,ZodTuple:nu,ZodType:uc,ZodULID:Rc,ZodURL:wc,ZodUUID:$c,ZodUndefined:El,ZodUnion:Jl,ZodUnknown:Pl,ZodVoid:jl,ZodXID:jc,ZodXor:Kl,_ZodString:dc,_default:zu,_function:Qu,any:Tl,array:Bl,base64:Yc,base64url:el,bigint:kl,boolean:$l,catch:ju,check:td,cidrv4:Jc,cidrv6:Kc,clone:O,codec:qu,coerce:yd,config:c,core:Ns,cuid:Tc,cuid2:Uc,custom:nd,date:Zl,decode:ic,decodeAsync:oc,describe:od,discriminatedUnion:Ql,e164:nl,email:gc,emoji:Sc,encode:nc,encodeAsync:rc,endsWith:ka,enum:mu,exactOptional:wu,file:bu,flattenError:ie,float32:fl,float64:hl,formatError:re,fromJSONSchema:$d,function:Qu,getErrorMap:md,globalRegistry:eo,gt:ia,gte:ra,guid:bc,hash:ll,hex:cl,hostname:sl,httpUrl:Ic,includes:$a,instanceof:sd,int:ml,int32:gl,int64:xl,intersection:tu,ipv4:Bc,ipv6:Vc,iso:Js,json:ld,jwt:rl,keyof:ql,ksuid:Zc,lazy:Gu,length:ha,literal:gu,locales:Gr,looseObject:Wl,looseRecord:su,lowercase:va,lt:ta,lte:na,mac:Fc,map:lu,maxLength:ma,maxSize:ua,meta:ad,mime:xa,minLength:fa,minSize:da,multipleOf:la,nan:Mu,nanoid:Oc,nativeEnum:fu,negative:aa,never:Nl,nonnegative:ca,nonoptional:Pu,nonpositive:sa,normalize:Ca,null:Ol,nullable:Iu,nullish:Eu,number:dl,object:Hl,optional:_u,overwrite:wa,parse:Ys,parseAsync:Qs,partialRecord:au,pipe:Lu,positive:oa,prefault:Au,preprocess:ud,prettifyError:se,promise:Xu,property:_a,readonly:Hu,record:ou,refine:id,regex:ga,regexes:At,registry:Qr,safeDecode:sc,safeDecodeAsync:lc,safeEncode:ac,safeEncodeAsync:cc,safeParse:ec,safeParseAsync:tc,set:du,setErrorMap:pd,size:pa,slugify:za,startsWith:ya,strictObject:Vl,string:mc,stringFormat:al,stringbool:cd,success:Ru,superRefine:rd,symbol:Il,templateLiteral:Wu,toJSONSchema:Us,toLowerCase:Ea,toUpperCase:Sa,transform:yu,treeifyError:oe,trim:Ia,tuple:iu,uint32:vl,uint64:wl,ulid:Nc,undefined:Sl,union:Gl,unknown:Ul,uppercase:ba,url:Cc,util:Q,uuid:yc,uuidv4:kc,uuidv6:_c,uuidv7:xc,void:Dl,xid:Dc,xor:Xl}),_d=Object.freeze({__proto__:null,$brand:r,$input:Xr,$output:Kr,NEVER:n,TimePrecision:Eo,ZodAny:Al,ZodArray:Ll,ZodBase64:Xc,ZodBase64URL:Qc,ZodBigInt:yl,ZodBigIntFormat:_l,ZodBoolean:bl,ZodCIDRv4:Wc,ZodCIDRv6:Gc,ZodCUID:Ac,ZodCUID2:Pc,ZodCatch:Nu,ZodCodec:Bu,ZodCustom:ed,ZodCustomStringFormat:ol,ZodDate:Ml,ZodDefault:Su,ZodDiscriminatedUnion:Yl,ZodE164:tl,ZodEmail:hc,ZodEmoji:Ec,ZodEnum:pu,ZodError:Ks,ZodExactOptional:xu,ZodFile:vu,get ZodFirstPartyTypeKind(){return fd},ZodFunction:Yu,ZodGUID:vc,ZodIPv4:Lc,ZodIPv6:Hc,ZodISODate:Bs,ZodISODateTime:Zs,ZodISODuration:Vs,ZodISOTime:Fs,ZodIntersection:eu,ZodIssueCode:dd,ZodJWT:il,ZodKSUID:Mc,ZodLazy:Ju,ZodLiteral:hu,ZodMAC:qc,ZodMap:cu,ZodNaN:Du,ZodNanoID:zc,ZodNever:Rl,ZodNonOptional:Tu,ZodNull:zl,ZodNullable:Cu,ZodNumber:ul,ZodNumberFormat:pl,ZodObject:Fl,ZodOptional:ku,ZodPipe:Zu,ZodPrefault:Ou,ZodPromise:Ku,ZodReadonly:Fu,ZodRealError:Xs,ZodRecord:ru,ZodSet:uu,ZodString:pc,ZodStringFormat:fc,ZodSuccess:Uu,ZodSymbol:Cl,ZodTemplateLiteral:Vu,ZodTransform:$u,ZodTuple:nu,ZodType:uc,ZodULID:Rc,ZodURL:wc,ZodUUID:$c,ZodUndefined:El,ZodUnion:Jl,ZodUnknown:Pl,ZodVoid:jl,ZodXID:jc,ZodXor:Kl,_ZodString:dc,_default:zu,_function:Qu,any:Tl,array:Bl,base64:Yc,base64url:el,bigint:kl,boolean:$l,catch:ju,check:td,cidrv4:Jc,cidrv6:Kc,clone:O,codec:qu,coerce:yd,config:c,core:Ns,cuid:Tc,cuid2:Uc,custom:nd,date:Zl,decode:ic,decodeAsync:oc,describe:od,discriminatedUnion:Ql,e164:nl,email:gc,emoji:Sc,encode:nc,encodeAsync:rc,endsWith:ka,enum:mu,exactOptional:wu,file:bu,flattenError:ie,float32:fl,float64:hl,formatError:re,fromJSONSchema:$d,function:Qu,getErrorMap:md,globalRegistry:eo,gt:ia,gte:ra,guid:bc,hash:ll,hex:cl,hostname:sl,httpUrl:Ic,includes:$a,instanceof:sd,int:ml,int32:gl,int64:xl,intersection:tu,ipv4:Bc,ipv6:Vc,iso:Js,json:ld,jwt:rl,keyof:ql,ksuid:Zc,lazy:Gu,length:ha,literal:gu,locales:Gr,looseObject:Wl,looseRecord:su,lowercase:va,lt:ta,lte:na,mac:Fc,map:lu,maxLength:ma,maxSize:ua,meta:ad,mime:xa,minLength:fa,minSize:da,multipleOf:la,nan:Mu,nanoid:Oc,nativeEnum:fu,negative:aa,never:Nl,nonnegative:ca,nonoptional:Pu,nonpositive:sa,normalize:Ca,null:Ol,nullable:Iu,nullish:Eu,number:dl,object:Hl,optional:_u,overwrite:wa,parse:Ys,parseAsync:Qs,partialRecord:au,pipe:Lu,positive:oa,prefault:Au,preprocess:ud,prettifyError:se,promise:Xu,property:_a,readonly:Hu,record:ou,refine:id,regex:ga,regexes:At,registry:Qr,safeDecode:sc,safeDecodeAsync:lc,safeEncode:ac,safeEncodeAsync:cc,safeParse:ec,safeParseAsync:tc,set:du,setErrorMap:pd,size:pa,slugify:za,startsWith:ya,strictObject:Vl,string:mc,stringFormat:al,stringbool:cd,success:Ru,superRefine:rd,symbol:Il,templateLiteral:Wu,toJSONSchema:Us,toLowerCase:Ea,toUpperCase:Sa,transform:yu,treeifyError:oe,trim:Ia,tuple:iu,uint32:vl,uint64:wl,ulid:Nc,undefined:Sl,union:Gl,unknown:Ul,uppercase:ba,url:Cc,util:Q,uuid:yc,uuidv4:kc,uuidv6:_c,uuidv7:xc,void:Dl,xid:Dc,xor:Xl,z:kd});const xd="io.modelcontextprotocol/related-task",wd="2.0",Cd=nd(e=>null!==e&&("object"==typeof e||"function"==typeof e)),Id=Gl([mc(),dl().int()]),Ed=mc();Wl({ttl:dl().optional(),pollInterval:dl().optional()});const Sd=Hl({ttl:dl().optional()}),zd=Hl({taskId:mc()}),Od=Wl({progressToken:Id.optional(),[xd]:zd.optional()}),Ad=Hl({_meta:Od.optional()}),Td=Ad.extend({task:Sd.optional()}),Pd=Hl({method:mc(),params:Ad.loose().optional()}),Ud=Hl({_meta:Od.optional()}),Rd=Hl({method:mc(),params:Ud.loose().optional()}),Nd=Wl({_meta:Od.optional()}),jd=Gl([mc(),dl().int()]),Dd=Hl({jsonrpc:gu(wd),id:jd,...Pd.shape}).strict(),Md=e=>Dd.safeParse(e).success,Zd=Hl({jsonrpc:gu(wd),...Rd.shape}).strict(),Ld=Hl({jsonrpc:gu(wd),id:jd,result:Nd}).strict(),Bd=e=>Ld.safeParse(e).success;var qd;!function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"}(qd||(qd={}));const Fd=Hl({jsonrpc:gu(wd),id:jd.optional(),error:Hl({code:dl().int(),message:mc(),data:Ul().optional()})}).strict(),Hd=Gl([Dd,Zd,Ld,Fd]);Gl([Ld,Fd]);const Vd=Nd.strict(),Wd=Ud.extend({requestId:jd.optional(),reason:mc().optional()}),Jd=Rd.extend({method:gu("notifications/cancelled"),params:Wd}),Gd=Hl({src:mc(),mimeType:mc().optional(),sizes:Bl(mc()).optional(),theme:mu(["light","dark"]).optional()}),Kd=Hl({icons:Bl(Gd).optional()}),Xd=Hl({name:mc(),title:mc().optional()}),Yd=Xd.extend({...Xd.shape,...Kd.shape,version:mc(),websiteUrl:mc().optional(),description:mc().optional()}),Qd=tu(Hl({applyDefaults:$l().optional()}),ou(mc(),Ul())),ep=ud(e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e,tu(Hl({form:Qd.optional(),url:Cd.optional()}),ou(mc(),Ul()).optional())),tp=Wl({list:Cd.optional(),cancel:Cd.optional(),requests:Wl({sampling:Wl({createMessage:Cd.optional()}).optional(),elicitation:Wl({create:Cd.optional()}).optional()}).optional()}),np=Wl({list:Cd.optional(),cancel:Cd.optional(),requests:Wl({tools:Wl({call:Cd.optional()}).optional()}).optional()}),ip=Hl({experimental:ou(mc(),Cd).optional(),sampling:Hl({context:Cd.optional(),tools:Cd.optional()}).optional(),elicitation:ep.optional(),roots:Hl({listChanged:$l().optional()}).optional(),tasks:tp.optional(),extensions:ou(mc(),Cd).optional()}),rp=Ad.extend({protocolVersion:mc(),capabilities:ip,clientInfo:Yd}),op=Pd.extend({method:gu("initialize"),params:rp}),ap=Hl({experimental:ou(mc(),Cd).optional(),logging:Cd.optional(),completions:Cd.optional(),prompts:Hl({listChanged:$l().optional()}).optional(),resources:Hl({subscribe:$l().optional(),listChanged:$l().optional()}).optional(),tools:Hl({listChanged:$l().optional()}).optional(),tasks:np.optional(),extensions:ou(mc(),Cd).optional()}),sp=Nd.extend({protocolVersion:mc(),capabilities:ap,serverInfo:Yd,instructions:mc().optional()}),cp=Rd.extend({method:gu("notifications/initialized"),params:Ud.optional()}),lp=Pd.extend({method:gu("ping"),params:Ad.optional()}),up=Hl({progress:dl(),total:_u(dl()),message:_u(mc())}),dp=Hl({...Ud.shape,...up.shape,progressToken:Id}),pp=Rd.extend({method:gu("notifications/progress"),params:dp}),mp=Ad.extend({cursor:Ed.optional()}),fp=Pd.extend({params:mp.optional()}),hp=Nd.extend({nextCursor:Ed.optional()}),gp=mu(["working","input_required","completed","failed","cancelled"]),vp=Hl({taskId:mc(),status:gp,ttl:Gl([dl(),Ol()]),createdAt:mc(),lastUpdatedAt:mc(),pollInterval:_u(dl()),statusMessage:_u(mc())}),bp=Nd.extend({task:vp}),$p=Ud.merge(vp),yp=Rd.extend({method:gu("notifications/tasks/status"),params:$p}),kp=Pd.extend({method:gu("tasks/get"),params:Ad.extend({taskId:mc()})}),_p=Nd.merge(vp),xp=Pd.extend({method:gu("tasks/result"),params:Ad.extend({taskId:mc()})});Nd.loose();const wp=fp.extend({method:gu("tasks/list")}),Cp=hp.extend({tasks:Bl(vp)}),Ip=Pd.extend({method:gu("tasks/cancel"),params:Ad.extend({taskId:mc()})}),Ep=Nd.merge(vp),Sp=Hl({uri:mc(),mimeType:_u(mc()),_meta:ou(mc(),Ul()).optional()}),zp=Sp.extend({text:mc()}),Op=mc().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ap=Sp.extend({blob:Op}),Tp=mu(["user","assistant"]),Pp=Hl({audience:Bl(Tp).optional(),priority:dl().min(0).max(1).optional(),lastModified:Ls({offset:!0}).optional()}),Up=Hl({...Xd.shape,...Kd.shape,uri:mc(),description:_u(mc()),mimeType:_u(mc()),size:_u(dl()),annotations:Pp.optional(),_meta:_u(Wl({}))}),Rp=Hl({...Xd.shape,...Kd.shape,uriTemplate:mc(),description:_u(mc()),mimeType:_u(mc()),annotations:Pp.optional(),_meta:_u(Wl({}))}),Np=fp.extend({method:gu("resources/list")}),jp=hp.extend({resources:Bl(Up)}),Dp=fp.extend({method:gu("resources/templates/list")}),Mp=hp.extend({resourceTemplates:Bl(Rp)}),Zp=Ad.extend({uri:mc()}),Lp=Zp,Bp=Pd.extend({method:gu("resources/read"),params:Lp}),qp=Nd.extend({contents:Bl(Gl([zp,Ap]))}),Fp=Rd.extend({method:gu("notifications/resources/list_changed"),params:Ud.optional()}),Hp=Zp,Vp=Pd.extend({method:gu("resources/subscribe"),params:Hp}),Wp=Zp,Jp=Pd.extend({method:gu("resources/unsubscribe"),params:Wp}),Gp=Ud.extend({uri:mc()}),Kp=Rd.extend({method:gu("notifications/resources/updated"),params:Gp}),Xp=Hl({name:mc(),description:_u(mc()),required:_u($l())}),Yp=Hl({...Xd.shape,...Kd.shape,description:_u(mc()),arguments:_u(Bl(Xp)),_meta:_u(Wl({}))}),Qp=fp.extend({method:gu("prompts/list")}),em=hp.extend({prompts:Bl(Yp)}),tm=Ad.extend({name:mc(),arguments:ou(mc(),mc()).optional()}),nm=Pd.extend({method:gu("prompts/get"),params:tm}),im=Hl({type:gu("text"),text:mc(),annotations:Pp.optional(),_meta:ou(mc(),Ul()).optional()}),rm=Hl({type:gu("image"),data:Op,mimeType:mc(),annotations:Pp.optional(),_meta:ou(mc(),Ul()).optional()}),om=Hl({type:gu("audio"),data:Op,mimeType:mc(),annotations:Pp.optional(),_meta:ou(mc(),Ul()).optional()}),am=Hl({type:gu("tool_use"),name:mc(),id:mc(),input:ou(mc(),Ul()),_meta:ou(mc(),Ul()).optional()}),sm=Hl({type:gu("resource"),resource:Gl([zp,Ap]),annotations:Pp.optional(),_meta:ou(mc(),Ul()).optional()}),cm=Up.extend({type:gu("resource_link")}),lm=Gl([im,rm,om,cm,sm]),um=Hl({role:Tp,content:lm}),dm=Nd.extend({description:mc().optional(),messages:Bl(um)}),pm=Rd.extend({method:gu("notifications/prompts/list_changed"),params:Ud.optional()}),mm=Hl({title:mc().optional(),readOnlyHint:$l().optional(),destructiveHint:$l().optional(),idempotentHint:$l().optional(),openWorldHint:$l().optional()}),fm=Hl({taskSupport:mu(["required","optional","forbidden"]).optional()}),hm=Hl({...Xd.shape,...Kd.shape,description:mc().optional(),inputSchema:Hl({type:gu("object"),properties:ou(mc(),Cd).optional(),required:Bl(mc()).optional()}).catchall(Ul()),outputSchema:Hl({type:gu("object"),properties:ou(mc(),Cd).optional(),required:Bl(mc()).optional()}).catchall(Ul()).optional(),annotations:mm.optional(),execution:fm.optional(),_meta:ou(mc(),Ul()).optional()}),gm=fp.extend({method:gu("tools/list")}),vm=hp.extend({tools:Bl(hm)}),bm=Nd.extend({content:Bl(lm).default([]),structuredContent:ou(mc(),Ul()).optional(),isError:$l().optional()});bm.or(Nd.extend({toolResult:Ul()}));const $m=Td.extend({name:mc(),arguments:ou(mc(),Ul()).optional()}),ym=Pd.extend({method:gu("tools/call"),params:$m}),km=Rd.extend({method:gu("notifications/tools/list_changed"),params:Ud.optional()});Hl({autoRefresh:$l().default(!0),debounceMs:dl().int().nonnegative().default(300)});const _m=mu(["debug","info","notice","warning","error","critical","alert","emergency"]),xm=Ad.extend({level:_m}),wm=Pd.extend({method:gu("logging/setLevel"),params:xm}),Cm=Ud.extend({level:_m,logger:mc().optional(),data:Ul()}),Im=Rd.extend({method:gu("notifications/message"),params:Cm}),Em=Hl({name:mc().optional()}),Sm=Hl({hints:Bl(Em).optional(),costPriority:dl().min(0).max(1).optional(),speedPriority:dl().min(0).max(1).optional(),intelligencePriority:dl().min(0).max(1).optional()}),zm=Hl({mode:mu(["auto","required","none"]).optional()}),Om=Hl({type:gu("tool_result"),toolUseId:mc().describe("The unique identifier for the corresponding tool call."),content:Bl(lm).default([]),structuredContent:Hl({}).loose().optional(),isError:$l().optional(),_meta:ou(mc(),Ul()).optional()}),Am=Ql("type",[im,rm,om]),Tm=Ql("type",[im,rm,om,am,Om]),Pm=Hl({role:Tp,content:Gl([Tm,Bl(Tm)]),_meta:ou(mc(),Ul()).optional()}),Um=Td.extend({messages:Bl(Pm),modelPreferences:Sm.optional(),systemPrompt:mc().optional(),includeContext:mu(["none","thisServer","allServers"]).optional(),temperature:dl().optional(),maxTokens:dl().int(),stopSequences:Bl(mc()).optional(),metadata:Cd.optional(),tools:Bl(hm).optional(),toolChoice:zm.optional()}),Rm=Pd.extend({method:gu("sampling/createMessage"),params:Um}),Nm=Nd.extend({model:mc(),stopReason:_u(mu(["endTurn","stopSequence","maxTokens"]).or(mc())),role:Tp,content:Am}),jm=Nd.extend({model:mc(),stopReason:_u(mu(["endTurn","stopSequence","maxTokens","toolUse"]).or(mc())),role:Tp,content:Gl([Tm,Bl(Tm)])}),Dm=Hl({type:gu("boolean"),title:mc().optional(),description:mc().optional(),default:$l().optional()}),Mm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),minLength:dl().optional(),maxLength:dl().optional(),format:mu(["email","uri","date","date-time"]).optional(),default:mc().optional()}),Zm=Hl({type:mu(["number","integer"]),title:mc().optional(),description:mc().optional(),minimum:dl().optional(),maximum:dl().optional(),default:dl().optional()}),Lm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),enum:Bl(mc()),default:mc().optional()}),Bm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),oneOf:Bl(Hl({const:mc(),title:mc()})),default:mc().optional()}),qm=Hl({type:gu("string"),title:mc().optional(),description:mc().optional(),enum:Bl(mc()),enumNames:Bl(mc()).optional(),default:mc().optional()}),Fm=Gl([Lm,Bm]),Hm=Gl([Hl({type:gu("array"),title:mc().optional(),description:mc().optional(),minItems:dl().optional(),maxItems:dl().optional(),items:Hl({type:gu("string"),enum:Bl(mc())}),default:Bl(mc()).optional()}),Hl({type:gu("array"),title:mc().optional(),description:mc().optional(),minItems:dl().optional(),maxItems:dl().optional(),items:Hl({anyOf:Bl(Hl({const:mc(),title:mc()}))}),default:Bl(mc()).optional()})]),Vm=Gl([qm,Fm,Hm]),Wm=Gl([Vm,Dm,Mm,Zm]),Jm=Gl([Td.extend({mode:gu("form").optional(),message:mc(),requestedSchema:Hl({type:gu("object"),properties:ou(mc(),Wm),required:Bl(mc()).optional()})}),Td.extend({mode:gu("url"),message:mc(),elicitationId:mc(),url:mc().url()})]),Gm=Pd.extend({method:gu("elicitation/create"),params:Jm}),Km=Ud.extend({elicitationId:mc()}),Xm=Rd.extend({method:gu("notifications/elicitation/complete"),params:Km}),Ym=Nd.extend({action:mu(["accept","decline","cancel"]),content:ud(e=>null===e?void 0:e,ou(mc(),Gl([mc(),dl(),$l(),Bl(mc())])).optional())}),Qm=Hl({type:gu("ref/resource"),uri:mc()}),ef=Hl({type:gu("ref/prompt"),name:mc()}),tf=Ad.extend({ref:Gl([ef,Qm]),argument:Hl({name:mc(),value:mc()}),context:Hl({arguments:ou(mc(),mc()).optional()}).optional()}),nf=Pd.extend({method:gu("completion/complete"),params:tf}),rf=Nd.extend({completion:Wl({values:Bl(mc()).max(100),total:_u(dl().int()),hasMore:_u($l())})}),of=Hl({uri:mc().startsWith("file://"),name:mc().optional(),_meta:ou(mc(),Ul()).optional()}),af=Pd.extend({method:gu("roots/list"),params:Ad.optional()}),sf=Nd.extend({roots:Bl(of)}),cf=Rd.extend({method:gu("notifications/roots/list_changed"),params:Ud.optional()});Gl([lp,op,nf,wm,nm,Qp,Np,Dp,Bp,Vp,Jp,ym,gm,kp,xp,wp,Ip]),Gl([Jd,pp,cp,cf,yp]),Gl([Vd,Nm,jm,Ym,sf,_p,Cp,bp]),Gl([lp,Rm,Gm,af,kp,xp,wp,Ip]),Gl([Jd,pp,Im,Kp,Fp,km,pm,yp,Xm]),Gl([Vd,sp,rf,dm,em,jp,Mp,qp,bm,vm,_p,Cp,bp]);class lf extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,t,n){if(e===qd.UrlElicitationRequired&&n){const e=n;if(e.elicitations)return new uf(e.elicitations,t)}return new lf(e,t,n)}}class uf extends lf{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(qd.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}function df(e){return"completed"===e||"failed"===e||"cancelled"===e}function pf(e){const t=function(e){if(!e)return;let t;if(js(e)){const n=e;t=n._zod?.def?.shape}else t=e.shape;if(t){if("function"==typeof t)try{return t()}catch{return}return t}}(e),n=t?.method;if(!n)throw new Error("Schema is missing a method literal");const i=function(e){if(js(e)){const t=e,n=t._zod?.def;if(n){if(void 0!==n.value)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}}const t=e._def;if(t){if(void 0!==t.value)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}const n=e.value;if(void 0!==n)return n}(n);if("string"!=typeof i)throw new Error("Schema method literal must be a string");return i}function mf(e,t){const n=Ds(e,t);if(!n.success)throw n.error;return n.data}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");class ff{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Jd,e=>{this._oncancel(e)}),this.setNotificationHandler(pp,e=>{this._onprogress(e)}),this.setRequestHandler(lp,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(kp,async(e,t)=>{const n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new lf(qd.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(xp,async(e,t)=>{const n=async()=>{const i=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(i,t.sessionId);){if("response"===e.type||"error"===e.type){const t=e.message,n=t.id,i=this._requestResolvers.get(n);if(i)if(this._requestResolvers.delete(n),"response"===e.type)i(t);else{const e=t;i(new lf(e.error.code,e.error.message,e.error.data))}else{const t="response"===e.type?"Response":"Error";this._onerror(new Error(`${t} handler missing for request ${n}`))}continue}await(this._transport?.send(e.message,{relatedRequestId:t.requestId}))}}const r=await this._taskStore.getTask(i,t.sessionId);if(!r)throw new lf(qd.InvalidParams,`Task not found: ${i}`);if(!df(r.status))return await this._waitForTaskUpdate(i,t.signal),await n();if(df(r.status)){const e=await this._taskStore.getTaskResult(i,t.sessionId);return this._clearTaskQueue(i),{...e,_meta:{...e._meta,[xd]:{taskId:i}}}}return await n()};return await n()}),this.setRequestHandler(wp,async(e,t)=>{try{const{tasks:n,nextCursor:i}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:i,_meta:{}}}catch(e){throw new lf(qd.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Ip,async(e,t)=>{try{const n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new lf(qd.InvalidParams,`Task not found: ${e.params.taskId}`);if(df(n.status))throw new lf(qd.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,"cancelled","Client cancelled task execution.",t.sessionId),this._clearTaskQueue(e.params.taskId);const i=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!i)throw new lf(qd.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...i}}catch(e){if(e instanceof lf)throw e;throw new lf(qd.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;const t=this._requestHandlerAbortControllers.get(e.params.requestId);t?.abort(e.params.reason)}_setupTimeout(e,t,n,i,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:i})}_resetTimeout(e){const t=this._timeoutInfo.get(e);if(!t)return!1;const n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),lf.fromError(qd.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){const t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;const t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};const n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};const i=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{var n;i?.(e,t),Bd(e)||(n=e,Fd.safeParse(n).success)?this._onresponse(e):Md(e)?this._onrequest(e,t):(e=>Zd.safeParse(e).success)(e)?this._onnotification(e):this._onerror(new Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(const e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();const t=lf.fromError(qd.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){const t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;void 0!==t&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(new Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){const n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,i=this._transport,r=e.params?._meta?.[xd]?.taskId;if(void 0===n){const t={jsonrpc:"2.0",id:e.id,error:{code:qd.MethodNotFound,message:"Method not found"}};return void(r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:t,timestamp:Date.now()},i?.sessionId).catch(e=>this._onerror(new Error(`Failed to enqueue error response: ${e}`))):i?.send(t).catch(e=>this._onerror(new Error(`Failed to send an error response: ${e}`))))}const o=new AbortController;this._requestHandlerAbortControllers.set(e.id,o);const a=(s=e.params,Td.safeParse(s).success?e.params.task:void 0);var s;const c=this._taskStore?this.requestTaskStore(e,i?.sessionId):void 0,l={signal:o.signal,sessionId:i?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(o.signal.aborted)return;const n={relatedRequestId:e.id};r&&(n.relatedTask={taskId:r}),await this.notification(t,n)},sendRequest:async(t,n,i)=>{if(o.signal.aborted)throw new lf(qd.ConnectionClosed,"Request was cancelled");const a={...i,relatedRequestId:e.id};r&&!a.relatedTask&&(a.relatedTask={taskId:r});const s=a.relatedTask?.taskId??r;return s&&c&&await c.updateTaskStatus(s,"input_required"),await this.request(t,n,a)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:r,taskStore:c,taskRequestedTtl:a?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{a&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,l)).then(async t=>{if(o.signal.aborted)return;const n={result:t,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:n,timestamp:Date.now()},i?.sessionId):await(i?.send(n))},async t=>{if(o.signal.aborted)return;const n={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:qd.InternalError,message:t.message??"Internal error",...void 0!==t.data&&{data:t.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:n,timestamp:Date.now()},i?.sessionId):await(i?.send(n))}).catch(e=>this._onerror(new Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===o&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:t,...n}=e.params,i=Number(t),r=this._progressHandlers.get(i);if(!r)return void this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));const o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(e){return this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),void o(e)}r(n)}_onresponse(e){const t=Number(e.id),n=this._requestResolvers.get(t);if(n){if(this._requestResolvers.delete(t),Bd(e))n(e);else{n(new lf(e.error.code,e.error.message,e.error.data))}return}const i=this._responseHandlers.get(t);if(void 0===i)return void this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));this._responseHandlers.delete(t),this._cleanupTimeout(t);let r=!1;if(Bd(e)&&e.result&&"object"==typeof e.result){const n=e.result;if(n.task&&"object"==typeof n.task){const e=n.task;"string"==typeof e.taskId&&(r=!0,this._taskProgressTokens.set(e.taskId,t))}}if(r||this._progressHandlers.delete(t),Bd(e))i(e);else{i(lf.fromError(e.error.code,e.error.message,e.error.data))}}get transport(){return this._transport}async close(){await(this._transport?.close())}async*requestStream(e,t,n){const{task:i}=n??{};if(!i){try{const i=await this.request(e,t,n);yield{type:"result",result:i}}catch(e){yield{type:"error",error:e instanceof lf?e:new lf(qd.InternalError,String(e))}}return}let r;try{const i=await this.request(e,bp,n);if(!i.task)throw new lf(qd.InternalError,"Task creation did not return a task");for(r=i.task.taskId,yield{type:"taskCreated",task:i.task};;){const e=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:e},df(e.status)){if("completed"===e.status){const e=await this.getTaskResult({taskId:r},t,n);yield{type:"result",result:e}}else"failed"===e.status?yield{type:"error",error:new lf(qd.InternalError,`Task ${r} failed`)}:"cancelled"===e.status&&(yield{type:"error",error:new lf(qd.InternalError,`Task ${r} was cancelled`)});return}if("input_required"===e.status){const e=await this.getTaskResult({taskId:r},t,n);return void(yield{type:"result",result:e})}const i=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,i)),n?.signal?.throwIfAborted()}}catch(e){yield{type:"error",error:e instanceof lf?e:new lf(qd.InternalError,String(e))}}}request(e,t,n){const{relatedRequestId:i,resumptionToken:r,onresumptiontoken:o,task:a,relatedTask:s}=n??{};return new Promise((c,l)=>{const u=e=>{l(e)};if(!this._transport)return void u(new Error("Not connected"));if(!0===this._options?.enforceStrictCapabilities)try{this.assertCapabilityForMethod(e.method),a&&this.assertTaskCapability(e.method)}catch(e){return void u(e)}n?.signal?.throwIfAborted();const d=this._requestMessageId++,p={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),p.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),a&&(p.params={...p.params,task:a}),s&&(p.params={...p.params,_meta:{...p.params?._meta||{},[xd]:s}});const m=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(e)}},{relatedRequestId:i,resumptionToken:r,onresumptiontoken:o}).catch(e=>this._onerror(new Error(`Failed to send cancellation: ${e}`)));const t=e instanceof lf?e:new lf(qd.RequestTimeout,String(e));l(t)};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{const n=Ds(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener("abort",()=>{m(n?.signal?.reason)});const f=n?.timeout??6e4;this._setupTimeout(d,f,n?.maxTotalTimeout,()=>m(lf.fromError(qd.RequestTimeout,"Request timed out",{timeout:f})),n?.resetTimeoutOnProgress??!1);const h=s?.taskId;if(h){const e=e=>{const t=this._responseHandlers.get(d);t?t(e):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,e),this._enqueueTaskMessage(h,{type:"request",message:p,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})}else this._transport.send(p,{relatedRequestId:i,resumptionToken:r,onresumptiontoken:o}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:"tasks/get",params:e},_p,t)}async getTaskResult(e,t,n){return this.request({method:"tasks/result",params:e},t,n)}async listTasks(e,t){return this.request({method:"tasks/list",params:e},Cp,t)}async cancelTask(e,t){return this.request({method:"tasks/cancel",params:e},Ep,t)}async notification(e,t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const n=t?.relatedTask?.taskId;if(n){const i={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[xd]:t.relatedTask}}};return void await this._enqueueTaskMessage(n,{type:"notification",message:i,timestamp:Date.now()})}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;return this._pendingDebouncedNotifications.add(e.method),void Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:"2.0"};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[xd]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))})}let i={...e,jsonrpc:"2.0"};t?.relatedTask&&(i={...i,params:{...i.params,_meta:{...i.params?._meta||{},[xd]:t.relatedTask}}}),await this._transport.send(i,t)}setRequestHandler(e,t){const n=pf(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,i)=>{const r=mf(e,n);return Promise.resolve(t(r,i))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){const n=pf(e);this._notificationHandlers.set(n,n=>{const i=mf(e,n);return Promise.resolve(t(i))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const t=this._taskProgressTokens.get(e);void 0!==t&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const i=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,i)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){const n=await this._taskMessageQueue.dequeueAll(e,t);for(const t of n)if("request"===t.type&&Md(t.message)){const n=t.message.id,i=this._requestResolvers.get(n);i?(i(new lf(qd.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(n)):this._onerror(new Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{const t=await(this._taskStore?.getTask(e));t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,i)=>{if(t.aborted)return void i(new lf(qd.InvalidRequest,"Request cancelled"));const r=setTimeout(e,n);t.addEventListener("abort",()=>{clearTimeout(r),i(new lf(qd.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,t){const n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async i=>{if(!e)throw new Error("No request provided");return await n.createTask(i,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{const i=await n.getTask(e,t);if(!i)throw new lf(qd.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(e,i,r)=>{await n.storeTaskResult(e,i,r,t);const o=await n.getTask(e,t);if(o){const t=yp.parse({method:"notifications/tasks/status",params:o});await this.notification(t),df(o.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,i,r)=>{const o=await n.getTask(e,t);if(!o)throw new lf(qd.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(df(o.status))throw new lf(qd.InvalidParams,`Cannot update task "${e}" from terminal status "${o.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,i,r,t);const a=await n.getTask(e,t);if(a){const t=yp.parse({method:"notifications/tasks/status",params:a});await this.notification(t),df(a.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}}function hf(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}var gf;gf=function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"&&new Proxy(gf,{get:(e,t)=>(typeof require<"u"?require:e)[t]});class vf extends ff{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let i=n.shape.method.value;this._registeredMethods.add(i);let r=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),r.onHandler?.(n);for(let e of[...r.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let i=n.listeners.indexOf(t);-1!==i&&n.listeners.splice(i,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,"setRequestHandler"),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,"setNotificationHandler"),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}}class bf{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource)return void console.debug("Ignoring message from unknown source",e);let n=Hd.safeParse(e.data);n.success?(console.debug("Parsed message",n.data),this.onmessage?.(n.data)):"2.0"!==e.data?.jsonrpc?console.debug("Ignoring non-JSON-RPC message",n.error.message,e):(console.error("Failed to parse message",n.error.message,e),this.onerror?.(Error("Invalid JSON-RPC message received: "+n.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(e,t){"ui/notifications/tool-input-partial"!==e.method&&console.debug("Sending message",e),this.eventTarget.postMessage(e,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var $f=Gl([gu("light"),gu("dark")]).describe("Color theme preference for the host environment."),yf=Gl([gu("inline"),gu("fullscreen"),gu("pip")]).describe("Display mode for UI presentation."),kf=ou(Gl([gu("--color-background-primary"),gu("--color-background-secondary"),gu("--color-background-tertiary"),gu("--color-background-inverse"),gu("--color-background-ghost"),gu("--color-background-info"),gu("--color-background-danger"),gu("--color-background-success"),gu("--color-background-warning"),gu("--color-background-disabled"),gu("--color-text-primary"),gu("--color-text-secondary"),gu("--color-text-tertiary"),gu("--color-text-inverse"),gu("--color-text-ghost"),gu("--color-text-info"),gu("--color-text-danger"),gu("--color-text-success"),gu("--color-text-warning"),gu("--color-text-disabled"),gu("--color-border-primary"),gu("--color-border-secondary"),gu("--color-border-tertiary"),gu("--color-border-inverse"),gu("--color-border-ghost"),gu("--color-border-info"),gu("--color-border-danger"),gu("--color-border-success"),gu("--color-border-warning"),gu("--color-border-disabled"),gu("--color-ring-primary"),gu("--color-ring-secondary"),gu("--color-ring-inverse"),gu("--color-ring-info"),gu("--color-ring-danger"),gu("--color-ring-success"),gu("--color-ring-warning"),gu("--font-sans"),gu("--font-mono"),gu("--font-weight-normal"),gu("--font-weight-medium"),gu("--font-weight-semibold"),gu("--font-weight-bold"),gu("--font-text-xs-size"),gu("--font-text-sm-size"),gu("--font-text-md-size"),gu("--font-text-lg-size"),gu("--font-heading-xs-size"),gu("--font-heading-sm-size"),gu("--font-heading-md-size"),gu("--font-heading-lg-size"),gu("--font-heading-xl-size"),gu("--font-heading-2xl-size"),gu("--font-heading-3xl-size"),gu("--font-text-xs-line-height"),gu("--font-text-sm-line-height"),gu("--font-text-md-line-height"),gu("--font-text-lg-line-height"),gu("--font-heading-xs-line-height"),gu("--font-heading-sm-line-height"),gu("--font-heading-md-line-height"),gu("--font-heading-lg-line-height"),gu("--font-heading-xl-line-height"),gu("--font-heading-2xl-line-height"),gu("--font-heading-3xl-line-height"),gu("--border-radius-xs"),gu("--border-radius-sm"),gu("--border-radius-md"),gu("--border-radius-lg"),gu("--border-radius-xl"),gu("--border-radius-full"),gu("--border-width-regular"),gu("--shadow-hairline"),gu("--shadow-sm"),gu("--shadow-md"),gu("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming.").describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation."),Gl([mc(),Sl()]).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.")).describe("Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses `Record<K, string | undefined>` rather than `Partial<Record<K, string>>`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.");Hl({method:gu("ui/open-link"),params:Hl({url:mc().describe("URL to open in the host's browser")})});var _f=Hl({isError:$l().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),xf=Hl({isError:$l().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),wf=Hl({isError:$l().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();Hl({method:gu("ui/notifications/sandbox-proxy-ready"),params:Hl({})});var Cf=Hl({connectDomains:Bl(mc()).optional().describe("Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP `connect-src` directive\n- Empty or omitted → no network connections (secure default)"),resourceDomains:Bl(mc()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:Bl(mc()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:Bl(mc()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),If=Hl({camera:Hl({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:Hl({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:Hl({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:Hl({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});Hl({method:gu("ui/notifications/size-changed"),params:Hl({width:dl().optional().describe("New width in pixels."),height:dl().optional().describe("New height in pixels.")})});var Ef=Hl({method:gu("ui/notifications/tool-input"),params:Hl({arguments:ou(mc(),Ul().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),Sf=Hl({method:gu("ui/notifications/tool-input-partial"),params:Hl({arguments:ou(mc(),Ul().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),zf=Hl({method:gu("ui/notifications/tool-cancelled"),params:Hl({reason:mc().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),Of=Hl({fonts:mc().optional()}),Af=Hl({variables:kf.optional().describe("CSS variables for theming the app."),css:Of.optional().describe("CSS blocks that apps can inject.")}),Tf=Hl({method:gu("ui/resource-teardown"),params:Hl({})});ou(mc(),Ul());var Pf=Hl({text:Hl({}).optional().describe("Host supports text content blocks."),image:Hl({}).optional().describe("Host supports image content blocks."),audio:Hl({}).optional().describe("Host supports audio content blocks."),resource:Hl({}).optional().describe("Host supports resource content blocks."),resourceLink:Hl({}).optional().describe("Host supports resource link content blocks."),structuredContent:Hl({}).optional().describe("Host supports structured content.")});Hl({method:gu("ui/notifications/request-teardown"),params:Hl({}).optional()});var Uf=Hl({experimental:ou(mc(),ou(mc(),Tl()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:Hl({}).optional().describe("Host supports opening external URLs."),downloadFile:Hl({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:Hl({listChanged:$l().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:Hl({listChanged:$l().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:Hl({}).optional().describe("Host accepts log messages."),sandbox:Hl({permissions:If.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Cf.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:Pf.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:Pf.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:Hl({tools:Hl({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Rf=Hl({experimental:ou(mc(),ou(mc(),Tl()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),tools:Hl({listChanged:$l().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:Bl(yf).optional().describe("Display modes the app supports.")});Hl({method:gu("ui/notifications/initialized"),params:Hl({}).optional()}),Hl({csp:Cf.optional().describe("Content Security Policy configuration for UI resources."),permissions:If.optional().describe("Sandbox permissions requested by the UI resource."),domain:mc().optional().describe("Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., `{hash}.claudemcpcontent.com`)\n- URL-derived subdomains (e.g., `www-example-com.oaiusercontent.com`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation)."),prefersBorder:$l().optional().describe("Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- `true`: request visible border + background\n- `false`: request no visible border + background\n- omitted: host decides border")}),Hl({method:gu("ui/request-display-mode"),params:Hl({mode:yf.describe("The display mode being requested.")})});var Nf=Hl({mode:yf.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),jf=Gl([gu("model"),gu("app")]).describe("Tool visibility scope - who can access the tool.");Hl({resourceUri:mc().optional(),visibility:Bl(jf).optional().describe('Who can access this tool. Default: ["model", "app"]\n- "model": Tool visible to and callable by the agent\n- "app": Tool callable by the app from this server only'),csp:Nl().optional(),permissions:Nl().optional()}),Hl({mimeTypes:Bl(mc()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Hl({method:gu("ui/download-file"),params:Hl({contents:Bl(Gl([sm,cm])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),Hl({method:gu("ui/message"),params:Hl({role:gu("user").describe('Message role, currently only "user" is supported.'),content:Bl(lm).describe("Message content blocks (text, image, etc.).")})}),Hl({method:gu("ui/notifications/sandbox-resource-ready"),params:Hl({html:mc().describe("HTML content to load into the inner iframe."),sandbox:mc().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Cf.optional().describe("CSP configuration from resource metadata."),permissions:If.optional().describe("Sandbox permissions from resource metadata.")})});var Df=Hl({method:gu("ui/notifications/tool-result"),params:bm.describe("Standard MCP tool execution result.")}),Mf=Hl({toolInfo:Hl({id:jd.optional().describe("JSON-RPC id of the tools/call request."),tool:hm.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:$f.optional().describe("Current color theme preference."),styles:Af.optional().describe("Style configuration for theming the app."),displayMode:yf.optional().describe("How the UI is currently displayed."),availableDisplayModes:Bl(yf).optional().describe("Display modes the host supports."),containerDimensions:Gl([Hl({height:dl().describe("Fixed container height in pixels.")}),Hl({maxHeight:Gl([dl(),Sl()]).optional().describe("Maximum container height in pixels.")})]).and(Gl([Hl({width:dl().describe("Fixed container width in pixels.")}),Hl({maxWidth:Gl([dl(),Sl()]).optional().describe("Maximum container width in pixels.")})])).optional().describe("Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight."),locale:mc().optional().describe("User's language and region preference in BCP 47 format."),timeZone:mc().optional().describe("User's timezone in IANA format."),userAgent:mc().optional().describe("Host application identifier."),platform:Gl([gu("web"),gu("desktop"),gu("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:Hl({touch:$l().optional().describe("Whether the device supports touch input."),hover:$l().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:Hl({top:dl().describe("Top safe area inset in pixels."),right:dl().describe("Right safe area inset in pixels."),bottom:dl().describe("Bottom safe area inset in pixels."),left:dl().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),Zf=Hl({method:gu("ui/notifications/host-context-changed"),params:Mf.describe("Partial context update containing only changed fields.")});Hl({method:gu("ui/update-model-context"),params:Hl({content:Bl(lm).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:ou(mc(),Ul().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),Hl({method:gu("ui/initialize"),params:Hl({appInfo:Yd.describe("App identification (name and version)."),appCapabilities:Rf.describe("Features and capabilities this app provides."),protocolVersion:mc().describe("Protocol version this app supports.")})});var Lf=Hl({protocolVersion:mc().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Yd.describe("Host application identification and version."),hostCapabilities:Uf.describe("Features and capabilities provided by the host."),hostContext:Mf.describe("Rich context about the host environment.")}).passthrough(),Bf={target:"draft-2020-12"};async function qf(e,t){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[t](Bf);if("zod"===n.vendor){let{z:n}=await Promise.resolve().then(function(){return _d});return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Ff(e,t,n=""){let i=await e["~standard"].validate(t);if(i.issues){let e=i.issues.map(e=>{let t=e.path?.map(e=>"object"==typeof e?e.key:e).join(".");return t?`${t}: ${e.message}`:e.message}).join("; ");throw Error(n+e)}return i.value}class Hf extends vf{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Ef,toolinputpartial:Sf,toolresult:Df,toolcancelled:zf,hostcontextchanged:Zf};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(e){if(!Hf.ONE_SHOT_EVENTS.has(e)||this._everHadListener.has(e))return;if(this._everHadListener.add(e),!this._initializedSent)return;let t=`[ext-apps] "${String(e)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(t);console.warn(t)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){"hostcontextchanged"===e&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||c({jitless:!0}),this.setRequestHandler(lp,e=>(console.log("Received ping:",e.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(e){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=function(e,t){const n={...e};for(const e in t){const i=e,r=t[i];if(void 0===r)continue;const o=n[i];hf(o)&&hf(r)?n[i]={...o,...r}:n[i]=r}return n}(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let i=this,r=()=>{i._initializedSent&&i._capabilities.tools?.listChanged&&i.sendToolListChanged()},o=void 0!==t.inputSchema,a={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,r()},disable(){this.enabled=!1,r()},update(e){Object.assign(this,e),r()},remove(){i._registeredTools[e]===a&&(delete i._registeredTools[e],r())},handler:async(t,i)=>{if(!a.enabled)throw Error(`Tool ${e} is disabled`);let r;if(o){let o=a.inputSchema,s=o?await Ff(o,t??{},`Invalid input for tool ${e}: `):t??{};r=await n(s,i)}else r=await n(i);return a.outputSchema&&!r.isError&&(r.structuredContent=await Ff(a.outputSchema,r.structuredContent,`Invalid output for tool ${e}: `)),r}};return this._registeredTools[e]=a,this._capabilities.tools||this.transport||this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),r(),a}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await qf(t.inputSchema,"input"):{type:"object",properties:{}}};return t.outputSchema&&(n.outputSchema=await qf(t.outputSchema,"output")),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(e){this.setEventHandler("toolinput",e)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(e){this.setEventHandler("toolinputpartial",e)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(e){this.setEventHandler("toolresult",e)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(e){this.setEventHandler("toolcancelled",e)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(e){this.setEventHandler("hostcontextchanged",e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Tf,(e,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(ym,(e,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(gm,(e,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if("sampling/createMessage"===e)if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(e){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(e,t){if(this._assertInitialized("callServerTool"),"string"==typeof e)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:e},bm,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:e},qp,t)}async listServerResources(e,t){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:e},jp,t)}async createSamplingMessage(e,t){this._assertInitialized("createSamplingMessage");let n=e.tools?jm:Nm;return await this.request({method:"sampling/createMessage",params:e},n,t)}sendMessage(e,t){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:e},wf,t)}sendLog(e){return this.notification({method:"notifications/message",params:e})}updateModelContext(e,t){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:e},Vd,t)}openLink(e,t){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:e},_f,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:e},xf,t)}requestTeardown(e={}){return this.notification({method:"ui/notifications/request-teardown",params:e})}requestDisplayMode(e,t){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:e},Nf,t)}sendSizeChanged(e){return this.notification({method:"ui/notifications/size-changed",params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,i=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let i=document.documentElement,r=i.style.height;i.style.height="max-content";let o=Math.ceil(i.getBoundingClientRect().height);i.style.height=r;let a=Math.ceil(window.innerWidth);a===t&&o===n||(t=a,n=o,this.sendSizeChanged({width:a,height:o}))}))};i();let r=new ResizeObserver(i);return r.observe(document.documentElement),r.observe(document.body),()=>r.disconnect()}async connect(e=new bf(window.parent,window.parent),t){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:"2026-01-26"}},Lf,t);if(void 0===e)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}}function Vf(){}function Wf(e,t){for(const n in t)e[n]=t[n];return e}function Jf(e){return e()}function Gf(){return Object.create(null)}function Kf(e){e.forEach(Jf)}function Xf(e){return"function"==typeof e}function Yf(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function Qf(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return Vf;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function eh(e,t,n,i){if(e){const r=th(e,t,n,i);return e[0](r)}}function th(e,t,n,i){return e[1]&&i?Wf(n.ctx.slice(),e[1](i(t))):n.ctx}function nh(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|r[i];return e}return t.dirty|r}return t.dirty}function ih(e,t,n,i,r,o){if(r){const a=th(t,n,i,o);e.p(a,r)}}function rh(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function oh(e,t){const n={};t=new Set(t);for(const i in e)t.has(i)||"$"===i[0]||(n[i]=e[i]);return n}function ah(e){return e&&Xf(e.destroy)?e.destroy:Vf}function sh(e,t){e.appendChild(t)}function ch(e,t,n){const i=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;if(t&&t.host)return t;return e.ownerDocument}(e);if(!i.getElementById(t)){const e=dh("style");e.id=t,e.textContent=n,function(e,t){sh(e.head||e,t),t.sheet}(i,e)}}function lh(e,t,n){e.insertBefore(t,n||null)}function uh(e){e.parentNode&&e.parentNode.removeChild(e)}function dh(e){return document.createElement(e)}function ph(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function mh(e){return document.createTextNode(e)}function fh(){return mh(" ")}function hh(){return mh("")}function gh(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function vh(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function bh(e){let t;return{p(...n){t=n,t.forEach(t=>e.push(t))},r(){t.forEach(t=>e.splice(e.indexOf(t),1))}}}function $h(e){return""===e?null:+e}function yh(e,t){t=""+t,e.data!==t&&(e.data=t)}function kh(e,t){e.value=null==t?"":t}function _h(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,"")}function xh(e,t,n){e.classList[n?"add":"remove"](t)}class wh{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=ph(t.nodeName):this.e=dh(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)lh(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(uh)}}function Ch(e,t){return new e(t)}let Ih;function Eh(e){Ih=e}function Sh(){if(!Ih)throw new Error("Function called outside component initialization");return Ih}function zh(e){Sh().$$.on_mount.push(e)}function Oh(e){return Sh().$$.context.get(e)}const Ah=[],Th=[];let Ph=[];const Uh=[],Rh=Promise.resolve();let Nh=!1;function jh(e){Ph.push(e)}function Dh(e){Uh.push(e)}const Mh=new Set;let Zh=0;function Lh(){if(0!==Zh)return;const e=Ih;do{try{for(;Zh<Ah.length;){const e=Ah[Zh];Zh++,Eh(e),Bh(e.$$)}}catch(e){throw Ah.length=0,Zh=0,e}for(Eh(null),Ah.length=0,Zh=0;Th.length;)Th.pop()();for(let e=0;e<Ph.length;e+=1){const t=Ph[e];Mh.has(t)||(Mh.add(t),t())}Ph.length=0}while(Ah.length);for(;Uh.length;)Uh.pop()();Nh=!1,Mh.clear(),Eh(e)}function Bh(e){if(null!==e.fragment){e.update(),Kf(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(jh)}}const qh=new Set;let Fh;function Hh(){Fh={r:0,c:[],p:Fh}}function Vh(){Fh.r||Kf(Fh.c),Fh=Fh.p}function Wh(e,t){e&&e.i&&(qh.delete(e),e.i(t))}function Jh(e,t,n,i){if(e&&e.o){if(qh.has(e))return;qh.add(e),Fh.c.push(()=>{qh.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Gh(e,t,n){const i=e.$$.props[t];void 0!==i&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function Kh(e){e&&e.c()}function Xh(e,t,n,i){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),i||jh(()=>{const t=e.$$.on_mount.map(Jf).filter(Xf);e.$$.on_destroy?e.$$.on_destroy.push(...t):Kf(t),e.$$.on_mount=[]}),o.forEach(jh)}function Yh(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];Ph.forEach(i=>-1===e.indexOf(i)?t.push(i):n.push(i)),n.forEach(e=>e()),Ph=t}(n.after_update),Kf(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Qh(e,t){-1===e.$$.dirty[0]&&(Ah.push(e),Nh||(Nh=!0,Rh.then(Lh)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function eg(e,t,n,i,r,o,a,s=[-1]){const c=Ih;Eh(e);const l=e.$$={fragment:null,ctx:[],props:o,update:Vf,not_equal:r,bound:Gf(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Gf(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);let u=!1;if(l.ctx=n?n(e,t.props||{},(t,n,...i)=>{const o=i.length?i[0]:n;return l.ctx&&r(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),u&&Qh(e,t)),n}):[],l.update(),u=!0,Kf(l.before_update),l.fragment=!!i&&i(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach(uh)}else l.fragment&&l.fragment.c();t.intro&&Wh(e.$$.fragment),Xh(e,t.target,t.anchor,t.customElement),Lh()}Eh(c)}class tg{$destroy(){Yh(this,1),this.$destroy=Vf}$on(e,t){if(!Xf(t))return Vf;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ng=[];function ig(e,t){return{subscribe:rg(e,t).subscribe}}function rg(e,t=Vf){let n;const i=new Set;function r(t){if(Yf(e,t)&&(e=t,n)){const t=!ng.length;for(const t of i)t[1](),ng.push(t,e);if(t){for(let e=0;e<ng.length;e+=2)ng[e][0](ng[e+1]);ng.length=0}}}return{set:r,update:function(t){r(t(e))},subscribe:function(o,a=Vf){const s=[o,a];return i.add(s),1===i.size&&(n=t(r)||Vf),o(e),()=>{i.delete(s),0===i.size&&n&&(n(),n=null)}}}}const og={message:!1,updateModelContext:!1,openLinks:!1};class ag extends Error{constructor(e="Update cancelled"){super(e),this.name="HandoffCancelledError"}}function sg(e){const t=e.getHostCapabilities();return{message:null!=t?.message,updateModelContext:null!=t?.updateModelContext,openLinks:null!=t?.openLinks}}function cg(e){return e.message}function lg(e,t){return`I refined this contract in the Wizard UI beyond the initial MCP tool result. Here is the current generated source.\n\n\`\`\`${e}\n${t.trimEnd()}\n\`\`\``}async function ug(e){if(!navigator.clipboard?.writeText)throw new Error("Clipboard is not available in this host.");await navigator.clipboard.writeText(e)}const dg="mcp-external-links";function pg(e){ch(e,"svelte-h4n0sq",".mcp-shell.svelte-h4n0sq{height:var(--mcp-app-height);min-height:var(--mcp-app-height);background-color:var(--gray-1);box-sizing:border-box;font-size:12px;--text-small:0.75rem;--size-1:0.2rem;--size-2:0.35rem;--size-3:0.55rem;--size-4:0.7rem}.mcp-shell.svelte-h4n0sq .controls{padding:var(--size-3)}.mcp-shell.svelte-h4n0sq pre code.hljs{font-size:0.7rem;line-height:1.35}.footer.svelte-h4n0sq{display:flex;flex-direction:column;gap:0.35rem}.drift-notice.svelte-h4n0sq{padding:0.4rem 0.55rem;border:1px solid var(--gray-3);border-radius:8px;background:color-mix(in srgb, var(--gray-2) 65%, transparent)}.drift-text.svelte-h4n0sq{margin:0;font-size:0.75rem;line-height:1.4;color:var(--gray-5);text-align:left}.actions.svelte-h4n0sq{display:flex;justify-content:flex-end;align-items:center;gap:0.75rem}.actions.drifted.svelte-h4n0sq{justify-content:space-between}.restore-link.svelte-h4n0sq{padding:0;border:none;background:none;color:var(--gray-4);font:inherit;font-size:0.75rem;text-decoration:underline;cursor:pointer}.restore-link.svelte-h4n0sq:hover{color:var(--gray-5)}.restore-confirm.svelte-h4n0sq{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.35rem 0.5rem;font-size:0.75rem;color:var(--gray-5)}.restore-confirm-btn.svelte-h4n0sq{padding:0;border:none;background:none;color:var(--solidity-blue-2);font:inherit;font-size:0.75rem;font-weight:600;text-decoration:underline;cursor:pointer}.restore-confirm-btn.cancel.svelte-h4n0sq{color:var(--gray-4);font-weight:500}.use-button.svelte-h4n0sq{padding:0.45rem 0.9rem;border-radius:16px;border:1px solid var(--gray-3);background-color:var(--solidity-blue-2);color:white;font-weight:600;font-size:0.75rem;cursor:pointer}.use-button.drifted.svelte-h4n0sq:not(.disabled):not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb, var(--solidity-blue-2) 35%, transparent)}.use-button.disabled.svelte-h4n0sq,.use-button.svelte-h4n0sq:disabled{opacity:0.5;cursor:not-allowed}.status.svelte-h4n0sq{margin:0;max-width:100%;font-size:0.75rem;text-align:right}.status.hint.svelte-h4n0sq{color:var(--gray-4)}.status.error.svelte-h4n0sq{color:var(--red-3)}.no-select.svelte-h4n0sq{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tippy-box{font-size:12px;line-height:1.35}.tippy-box .tippy-content{padding:0.35rem 0.5rem}html.mcp-no-open-links .tippy-box a[href]{display:none}")}function mg(e,t,n){const i=e.slice();return i[35]=t[n],i}const fg=e=>({}),hg=e=>({});function gg(e){let t,n,i,r,o=e[2],a=[];for(let t=0;t<o.length;t+=1)a[t]=vg(mg(e,o,t));return{c(){t=dh("div"),n=dh("p"),n.textContent="Fix these options to generate your contract:",i=fh(),r=dh("ul");for(let e=0;e<a.length;e+=1)a[e].c();vh(t,"role","alert"),vh(t,"class","p-2 overflow-auto shrink-0"),_h(t,"color","var(--red-3)")},m(e,o){lh(e,t,o),sh(t,n),sh(t,i),sh(t,r);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(r,null)},p(e,t){if(4&t[0]){let n;for(o=e[2],n=0;n<o.length;n+=1){const i=mg(e,o,n);a[n]?a[n].p(i,t):(a[n]=vg(i),a[n].c(),a[n].m(r,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},d(e){e&&uh(t),function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(a,e)}}}function vg(e){let t,n,i=e[35]+"";return{c(){t=dh("li"),n=mh(i)},m(e,i){lh(e,t,i),sh(t,n)},p(e,t){4&t[0]&&i!==(i=e[35]+"")&&yh(n,i)},d(e){e&&uh(t)}}}function bg(e){let t;return{c(){t=dh("div"),t.innerHTML='<p class="drift-text svelte-h4n0sq">Preview differs from the original tool run. The agent's reply from that run still matches the original\n settings. Send updates to the agent for it to see the new code.</p>',vh(t,"class","drift-notice svelte-h4n0sq")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function $g(e){let t;function n(e,t){return e[12]?kg:yg}let i=n(e),r=i(e);return{c(){r.c(),t=hh()},m(e,n){r.m(e,n),lh(e,t,n)},p(e,o){i===(i=n(e))&&r?r.p(e,o):(r.d(1),r=i(e),r&&(r.c(),r.m(t.parentNode,t)))},d(e){r.d(e),e&&uh(t)}}}function yg(e){let t,n,i;return{c(){t=dh("button"),t.textContent="Restore original",vh(t,"type","button"),vh(t,"class","restore-link svelte-h4n0sq")},m(r,o){lh(r,t,o),n||(i=gh(t,"click",e[28]),n=!0)},p:Vf,d(e){e&&uh(t),n=!1,i()}}}function kg(e){let t,n,i,r,o,a,s;return{c(){t=dh("span"),n=mh("Restore original settings?\n "),i=dh("button"),i.textContent="Confirm",r=fh(),o=dh("button"),o.textContent="Cancel",vh(i,"type","button"),vh(i,"class","restore-confirm-btn svelte-h4n0sq"),vh(o,"type","button"),vh(o,"class","restore-confirm-btn cancel svelte-h4n0sq"),vh(t,"class","restore-confirm svelte-h4n0sq")},m(c,l){lh(c,t,l),sh(t,n),sh(t,i),sh(t,r),sh(t,o),a||(s=[gh(i,"click",e[26]),gh(o,"click",e[27])],a=!0)},p:Vf,d(e){e&&uh(t),a=!1,Kf(s)}}}function _g(e){let t;return{c(){t=mh("Send Updates to Agent")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function xg(e){let t;return{c(){t=mh("Copy to Clipboard")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function wg(e){let t;return{c(){t=mh(e[9])},m(e,n){lh(e,t,n)},p(e,n){512&n[0]&&yh(t,e[9])},d(e){e&&uh(t)}}}function Cg(e){let t,n=e[14]?"Copying…":"Sending…";return{c(){t=mh(n)},m(e,n){lh(e,t,n)},p(e,i){16384&i[0]&&n!==(n=e[14]?"Copying…":"Sending…")&&yh(t,n)},d(e){e&&uh(t)}}}function Ig(e){let t;return{c(){t=mh("Connecting…")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function Eg(e){let t,n;return{c(){t=dh("p"),n=mh(e[11]),vh(t,"class","status hint svelte-h4n0sq")},m(e,i){lh(e,t,i),sh(t,n)},p(e,t){2048&t[0]&&yh(n,e[11])},d(e){e&&uh(t)}}}function Sg(e){let t,n;return{c(){t=dh("p"),n=mh(e[10]),vh(t,"class","status error svelte-h4n0sq")},m(e,i){lh(e,t,i),sh(t,n)},p(e,t){1024&t[0]&&yh(n,e[10])},d(e){e&&uh(t)}}}function zg(e){let t,n,i;return{c(){t=dh("p"),n=mh("Could not connect to host: "),i=mh(e[5]),vh(t,"class","status error svelte-h4n0sq")},m(e,r){lh(e,t,r),sh(t,n),sh(t,i)},p(e,t){32&t[0]&&yh(i,e[5])},d(e){e&&uh(t)}}}function Og(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_;const x=e[24].controls,w=eh(x,e,e[23],hg);let C=e[1]&&gg(e),I=e[6]&&bg(),E=e[6]&&e[7]&&$g(e);function S(e,t){return e[4]||e[5]?e[8]?Cg:e[9]?wg:e[14]?xg:_g:Ig}let z=S(e),O=z(e);function A(e,t){return e[5]?zg:e[10]?Sg:e[11]?Eg:void 0}let T=A(e),P=T&&T(e);return{c(){t=dh("div"),n=dh("div"),i=dh("div"),w&&w.c(),r=fh(),o=dh("div"),C&&C.c(),a=fh(),s=dh("pre"),c=mh(" "),l=dh("code"),d=mh("\n "),p=fh(),m=dh("div"),I&&I.c(),f=fh(),h=dh("div"),E&&E.c(),g=fh(),v=dh("button"),O.c(),$=fh(),P&&P.c(),vh(i,"class","controls min-w-[14rem] w-60 max-w-[42%] flex flex-col shrink-0 overflow-auto border-r border-[var(--gray-3)]"),vh(l,"class",u="hljs "+e[3]+" grow overflow-auto p-2 "+(e[1]?"no-select":"")+" svelte-h4n0sq"),vh(s,"class","flex flex-col grow basis-0 overflow-auto m-0"),vh(o,"class","output flex flex-col grow min-w-0 overflow-hidden"),vh(n,"class","flex flex-row grow min-h-0 overflow-hidden rounded-xl border border-[var(--gray-3)]"),vh(v,"class","use-button svelte-h4n0sq"),v.disabled=e[15],vh(v,"title",b=e[14]?"Copy to Clipboard":void 0),xh(v,"disabled",e[15]),xh(v,"drifted",e[6]),vh(h,"class","actions svelte-h4n0sq"),xh(h,"drifted",e[6]),vh(m,"class","footer shrink-0 svelte-h4n0sq"),vh(t,"class","mcp-shell flex flex-col gap-2 p-2 min-h-0 svelte-h4n0sq")},m(u,b){lh(u,t,b),sh(t,n),sh(n,i),w&&w.m(i,null),e[25](i),sh(n,r),sh(n,o),C&&C.m(o,null),sh(o,a),sh(o,s),sh(s,c),sh(s,l),l.innerHTML=e[0],sh(s,d),sh(t,p),sh(t,m),I&&I.m(m,null),sh(m,f),sh(m,h),E&&E.m(h,null),sh(h,g),sh(h,v),O.m(v,null),sh(m,$),P&&P.m(m,null),y=!0,k||(_=[gh(s,"click",e[17]),gh(v,"click",e[16])],k=!0)},p(e,t){w&&w.p&&(!y||8388608&t[0])&&ih(w,x,e,e[23],y?nh(x,e[23],t,fg):rh(e[23]),hg),e[1]?C?C.p(e,t):(C=gg(e),C.c(),C.m(o,a)):C&&(C.d(1),C=null),(!y||1&t[0])&&(l.innerHTML=e[0]),(!y||10&t[0]&&u!==(u="hljs "+e[3]+" grow overflow-auto p-2 "+(e[1]?"no-select":"")+" svelte-h4n0sq"))&&vh(l,"class",u),e[6]?I||(I=bg(),I.c(),I.m(m,f)):I&&(I.d(1),I=null),e[6]&&e[7]?E?E.p(e,t):(E=$g(e),E.c(),E.m(h,g)):E&&(E.d(1),E=null),z===(z=S(e))&&O?O.p(e,t):(O.d(1),O=z(e),O&&(O.c(),O.m(v,null))),(!y||32768&t[0])&&(v.disabled=e[15]),(!y||16384&t[0]&&b!==(b=e[14]?"Copy to Clipboard":void 0))&&vh(v,"title",b),(!y||32768&t[0])&&xh(v,"disabled",e[15]),(!y||64&t[0])&&xh(v,"drifted",e[6]),(!y||64&t[0])&&xh(h,"drifted",e[6]),T===(T=A(e))&&P?P.p(e,t):(P&&P.d(1),P=T&&T(e),P&&(P.c(),P.m(m,null)))},i(e){y||(Wh(w,e),y=!0)},o(e){Jh(w,e),y=!1},d(n){n&&uh(t),w&&w.d(n),e[25](null),C&&C.d(),I&&I.d(),E&&E.d(),O.d(),P&&P.d(),k=!1,Kf(_)}}}function Ag(e,t,n){let i,r,o,a,s,c,l,{$$slots:u={},$$scope:d}=t,{highlightedCode:p}=t,{hasErrors:m=!1}=t,{errorMessages:f=[]}=t,{highlightClass:h="-solidity"}=t,{code:g=""}=t,{fence:v}=t,{hostConnected:b=!1}=t,{hostConnectError:$}=t,{hostSendCaps:y=og}=t,{mcpApp:k}=t,{drifted:_=!1}=t,{onRestoreOriginal:x}=t,w=!1,C=!1;const I=rg({canOpen:!1});var E,S;function z(e){l&&clearTimeout(l),n(9,a=e),l=setTimeout(()=>{n(9,a=void 0),l=void 0},1e3)}function O(e,t){return n=>{const i=n.target,r=i instanceof Element?i.closest(e)?.getAttribute("href"):void 0;r&&!r.startsWith("#")&&(n.preventDefault(),n.stopPropagation(),y.openLinks&&async function(e,t){if((await e.openLink({url:t})).isError)throw new Error("Host denied opening the link.")}(k,r).catch(e=>console.warn(`[mcp-apps] ${t} openLink failed`,e)))}}E=dg,S=I,Sh().$$.context.set(E,S);const A=O("a[href]","code preview"),T=O("a[href]","controls");let P;const U=O(".tippy-box a[href]","tippy");zh(()=>(document.addEventListener("click",U,!0),P.addEventListener("click",T),()=>{document.removeEventListener("click",U,!0),P.removeEventListener("click",T)}));return e.$$set=e=>{"highlightedCode"in e&&n(0,p=e.highlightedCode),"hasErrors"in e&&n(1,m=e.hasErrors),"errorMessages"in e&&n(2,f=e.errorMessages),"highlightClass"in e&&n(3,h=e.highlightClass),"code"in e&&n(18,g=e.code),"fence"in e&&n(19,v=e.fence),"hostConnected"in e&&n(4,b=e.hostConnected),"hostConnectError"in e&&n(5,$=e.hostConnectError),"hostSendCaps"in e&&n(20,y=e.hostSendCaps),"mcpApp"in e&&n(21,k=e.mcpApp),"drifted"in e&&n(6,_=e.drifted),"onRestoreOriginal"in e&&n(7,x=e.onRestoreOriginal),"$$scope"in e&&n(23,d=e.$$scope)},e.$$.update=()=>{64&e.$$.dirty[0]&&(_||n(12,C=!1)),1048576&e.$$.dirty[0]&&I.set({canOpen:y.openLinks}),1048576&e.$$.dirty[0]&&document.documentElement.classList.toggle("mcp-no-open-links",!y.openLinks),1048576&e.$$.dirty[0]&&n(22,i=cg(y)),4194320&e.$$.dirty[0]&&n(14,r=b&&!i),262962&e.$$.dirty[0]&&n(15,o=m||w||!g||!b||!!$||!!a)},[p,m,f,h,b,$,_,x,w,a,s,c,C,P,r,o,async function(){if(!o){n(10,s=void 0),n(11,c=void 0),n(8,w=!0);try{if(r)return await ug(g),void z("Copied");await async function(e,t,n){const i=sg(e);if(!cg(i))throw new Error("This host does not support sending the contract to the agent.");if(i.updateModelContext)try{await e.updateModelContext({content:[{type:"text",text:t}]})}catch(e){console.warn("[mcp-apps] updateModelContext failed",e)}if((await e.sendMessage({role:"user",content:[{type:"text",text:lg(n,t)}]})).isError)throw new ag}(k,g,v),z("Sent")}catch(e){if(e instanceof ag)return void n(11,c=e.message);console.error("[mcp-apps] Send Updates to Agent failed",e),n(10,s=e instanceof Error?e.message:String(e));try{await ug(g),z("Copied")}catch{}}finally{n(8,w=!1)}}},A,g,v,y,k,i,d,u,function(e){Th[e?"unshift":"push"](()=>{P=e,n(13,P)})},()=>{n(12,C=!1),x()},()=>n(12,C=!1),()=>n(12,C=!0)]}class Tg extends tg{constructor(e){super(),eg(this,e,Ag,Og,Yf,{highlightedCode:0,hasErrors:1,errorMessages:2,highlightClass:3,code:18,fence:19,hostConnected:4,hostConnectError:5,hostSendCaps:20,mcpApp:21,drifted:6,onRestoreOriginal:7},pg,[-1,-1])}}function Pg(e){return structuredClone(e)}function Ug(e){let t,n,i,r;const o=[{errors:e[7]},e[1].controlProps?.(e[2],e[6])??{}];function a(t){e[16](t)}var s=e[1].controls[e[2]];function c(e){let t={};for(let e=0;e<o.length;e+=1)t=Wf(t,o[e]);return void 0!==e[6]&&(t.opts=e[6]),{props:t}}return s&&(t=Ch(s,c(e)),Th.push(()=>Gh(t,"opts",a))),{c(){t&&Kh(t.$$.fragment),i=hh()},m(e,n){t&&Xh(t,e,n),lh(e,i,n),r=!0},p(e,r){const l=198&r?function(e,t){const n={},i={},r={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(i[e]=1);for(const e in s)r[e]||(n[e]=s[e],r[e]=1);e[o]=s}else for(const e in a)r[e]=1}for(const e in i)e in n||(n[e]=void 0);return n}(o,[128&r&&{errors:e[7]},70&r&&(u=e[1].controlProps?.(e[2],e[6])??{},"object"==typeof u&&null!==u?u:{})]):{};var u;if(!n&&64&r&&(n=!0,l.opts=e[6],Dh(()=>n=!1)),6&r&&s!==(s=e[1].controls[e[2]])){if(t){Hh();const e=t;Jh(e.$$.fragment,1,0,()=>{Yh(e,1)}),Vh()}s?(t=Ch(s,c(e)),Th.push(()=>Gh(t,"opts",a)),Kh(t.$$.fragment),Wh(t.$$.fragment,1),Xh(t,i.parentNode,i)):t=null}else s&&t.$set(l)},i(e){r||(t&&Wh(t.$$.fragment,e),r=!0)},o(e){t&&Jh(t.$$.fragment,e),r=!1},d(e){e&&uh(i),t&&Yh(t,e)}}}function Rg(e){let t,n;return t=new Tg({props:{highlightedCode:e[12],hasErrors:e[8],errorMessages:e[11],code:e[9],highlightClass:e[1].highlightClass,fence:e[1].fence,hostConnected:e[3],hostConnectError:e[4],hostSendCaps:e[5],mcpApp:e[0],drifted:e[10],onRestoreOriginal:e[13],$$slots:{controls:[Ug]},$$scope:{ctx:e}}}),{c(){Kh(t.$$.fragment)},m(e,i){Xh(t,e,i),n=!0},p(e,[n]){const i={};4096&n&&(i.highlightedCode=e[12]),256&n&&(i.hasErrors=e[8]),2048&n&&(i.errorMessages=e[11]),512&n&&(i.code=e[9]),2&n&&(i.highlightClass=e[1].highlightClass),2&n&&(i.fence=e[1].fence),8&n&&(i.hostConnected=e[3]),16&n&&(i.hostConnectError=e[4]),32&n&&(i.hostSendCaps=e[5]),1&n&&(i.mcpApp=e[0]),1024&n&&(i.drifted=e[10]),1048774&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(Wh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Yh(t,e)}}}function Ng(e){return e.info??(e.info={}),e}function jg(e,t,n){let i,r,o,a,s,c,l,u,d,{adapter:p}=t,{kind:m}=t,{mcpApp:f}=t,{hostConnected:h=!1}=t,{hostConnectError:g}=t,{hostSendCaps:v=og}=t,b=p.emptyContract();function $(e){try{return p.print(p.build(e))}catch{return}}function y(e,t){if(!e)return;const i=function(e,t,n){return void 0===e||"result"===n&&!t}(u,s,t),r=Ng({...c??{},...e,kind:m});if(n(6,c=r),!i)return;const o=function(e,t,n){const i=n(e);if(void 0!==i)return{opts:Pg(e),code:i,supersedesOpts:!1};const r=n(t);return void 0!==r?{opts:Pg(t),code:r,supersedesOpts:!0}:void 0}(r,{...e,kind:m},$);void 0!==o&&(l=o.opts,n(14,u=o.code),o.supersedesOpts&&n(6,c=Ng(Pg(o.opts))))}return f.ontoolinput=e=>{y(e.arguments,"input")},f.ontoolresult=e=>{const t=e.structuredContent;t?.opts&&y(t.opts,"result")},e.$$set=e=>{"adapter"in e&&n(1,p=e.adapter),"kind"in e&&n(2,m=e.kind),"mcpApp"in e&&n(0,f=e.mcpApp),"hostConnected"in e&&n(3,h=e.hostConnected),"hostConnectError"in e&&n(4,g=e.hostConnectError),"hostSendCaps"in e&&n(5,v=e.hostSendCaps)},e.$$.update=()=>{if(66&e.$$.dirty&&c)try{n(15,b=p.build(c)),n(7,d=void 0)}catch(e){const t=e instanceof Error?e.message:String(e);n(7,d=p.optionsErrors(e)??{_:t||"Failed to build contract"})}32770&e.$$.dirty&&n(9,i=p.print(b)),546&e.$$.dirty&&n(12,r=v.openLinks?p.injectHyperlinks(p.highlight(i)):p.highlight(i)),128&e.$$.dirty&&n(11,o=Object.values(d??{}).filter(e=>void 0!==e)),128&e.$$.dirty&&n(8,a=void 0!==d),17152&e.$$.dirty&&n(10,s=function(e){const{originalCode:t,code:n,hasErrors:i}=e;return void 0!==t&&(i||n!==t)}({originalCode:u,code:i,hasErrors:a}))},[f,p,m,h,g,v,c,d,a,i,s,o,r,function(){null!=l&&n(6,c=Ng(Pg(l)))},u,b,function(e){c=e,n(6,c)}]}class Dg extends tg{constructor(e){super(),eg(this,e,jg,Rg,Yf,{adapter:1,kind:2,mcpApp:0,hostConnected:3,hostConnectError:4,hostSendCaps:5})}}const Mg=560;const Zg=["pure","view","nonpayable","payable"];function Lg(e,t){return Zg[Math.max(Zg.indexOf(e),Zg.indexOf(t))]}class Bg{constructor(e){this.license="MIT",this.upgradeable=!1,this.topLevelComments=[],this.natspecTags=[],this.constructorArgs=[],this.constructorCode=[],this.variableOrErrorMap=new Map,this.parentMap=new Map,this.functionMap=new Map,this.libraryMap=new Map,this.structMap=new Map,this.name=function(e,t=!1){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/^[^a-zA-Z$_]+/,"").replace(/^(.)/,e=>t?e.toUpperCase():e).replace(/[^\w$]+(.?)/g,(e,t)=>t.toUpperCase())}(e,!0)}get parents(){return[...this.parentMap.values()].filter(e=>!e.importOnly).sort((e,t)=>"Initializable"===e.contract.name?-1:"Initializable"===t.contract.name?1:0)}get imports(){return[...[...this.parentMap.values()].map(e=>e.contract),...[...this.libraryMap.values()].map(e=>e.library)]}get libraries(){return[...this.libraryMap.values()]}get functions(){return[...this.functionMap.values()]}get structs(){return[...this.structMap.values()]}get variableOrErrorDefinitions(){return[...this.variableOrErrorMap.values()]}updateParentMap(e,t=[],n={}){const i=this.parentMap.has(e.name);return this.parentMap=new Map(this.parentMap).set(e.name,{contract:e,params:t,...n}),!i}addParent(e,t=[]){return this.updateParentMap(e,t)}addImportOnly(e){return this.updateParentMap(e,[],{importOnly:!0})}addConstructionOnly(e,t=[]){return this.updateParentMap(e,t,{constructionOnly:!0})}addLibrary(e,t){let n=!1;if(this.libraryMap.has(e.name)){const i=this.libraryMap.get(e.name),r=i.usingFor.size;t.forEach(e=>i.usingFor.add(e)),n=i.usingFor.size>r}else this.libraryMap.set(e.name,{library:e,usingFor:new Set(t)}),n=!0;return n}addOverride(e,t,n){const i=this.addFunction(t);i.override.add(e),n&&(i.mutability=Lg(i.mutability,n))}addModifier(e,t){this.addFunction(t).modifiers.push(e)}addTopLevelComment(e){this.topLevelComments.push(e)}addNatspecTag(e,t){if(!/^(@custom:)?[a-z][a-z\-]*$/.exec(e))throw new Error(`Invalid natspec key: ${e}`);this.natspecTags.push({key:e,value:t})}addFunction(e){const t=[e.name,"(",...e.args.map(e=>e.name),")"].join(""),n=this.functionMap.get(t);if(void 0!==n)return n;{const n={override:new Set,modifiers:[],code:[],mutability:"nonpayable",final:!1,comments:[],...e};return this.functionMap.set(t,n),n}}addStruct(e){const t=this.structMap.get(e.name);if(void 0!==t)return t;{const t={...e};return this.structMap.set(e.name,t),t}}addConstructorArgument(e){this.constructorArgs.push(e)}addConstructorCode(e){this.constructorCode.push(e)}addFunctionCode(e,t,n){const i=this.addFunction(t);if(i.final)throw new Error(`Function ${t.name} is already finalized`);i.code.push(e),n&&(i.mutability=Lg(i.mutability,n))}setFunctionBody(e,t,n){const i=this.addFunction(t);if(i.code.length>0)throw new Error(`Function ${t.name} has additional code`);i.code.push(...e),i.final=!0,n&&(i.mutability=n)}setFunctionComments(e,t){const n=this.addFunction(t);if(n.comments.length>0)throw new Error(`Function ${t.name} already has comments`);n.comments=e}addStateVariable(e,t){if(t)throw new Error("State variables should not be used when upgradeable is true. Set namespaced storage instead.");return this._addVariableOrErrorDefinition({code:e})}addConstantOrImmutableOrErrorDefinition(e,t){return this._addVariableOrErrorDefinition({code:e,comments:t})}_addVariableOrErrorDefinition(e){const t=this.variableOrErrorMap.has(e.code);return this.variableOrErrorMap.set(e.code,e),!t}addStructVariable(e,t){let n=this.structMap.get(e.name);n||(n=this.addStruct(e));const i=n.variables.includes(t);return i||n.variables.push(t),!i}}class qg extends Error{constructor(e){super("Invalid options"),this.messages=e}}const Fg={name:"supportsInterface",kind:"public",args:[{name:"interfaceId",type:"bytes4"}],returns:["bool"],mutability:"view"};function Hg(e,t){switch(t){case"ownable":e.addParent(Wg.Ownable,[{lit:"initialOwner"}])&&e.addConstructorArgument({type:"address",name:"initialOwner"});break;case"roles":e.addParent(Wg.AccessControl)&&(e.addConstructorArgument({type:"address",name:"defaultAdmin"}),e.addConstructorCode("_grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin);")),e.addOverride(Wg.AccessControl,Fg);break;case"managed":e.addParent(Wg.AccessManaged,[{lit:"initialAuthority"}])&&e.addConstructorArgument({type:"address",name:"initialAuthority"})}}function Vg(e,t,n,i,r){switch(!1===n&&(n="ownable"),Hg(e,n),n){case"ownable":e.addModifier("onlyOwner",t);break;case"roles":{const n=i+"_ROLE",o=e.addConstantOrImmutableOrErrorDefinition(`bytes32 public constant ${n} = keccak256("${n}");`);r&&o&&(e.addConstructorArgument({type:"address",name:r}),e.addConstructorCode(`_grantRole(${n}, ${r});`)),e.addModifier(`onlyRole(${n})`,t);break}case"managed":e.addModifier("restricted",t)}}const Wg={Ownable:{name:"Ownable",path:"@openzeppelin/contracts/access/Ownable.sol"},AccessControl:{name:"AccessControl",path:"@openzeppelin/contracts/access/AccessControl.sol"},AccessManaged:{name:"AccessManaged",path:"@openzeppelin/contracts/access/manager/AccessManaged.sol"}},Jg=BigInt(2**32-1),Gg=BigInt(32);function Kg(e,t=!1){return t?{h:Number(e&Jg),l:Number(e>>Gg&Jg)}:{h:0|Number(e>>Gg&Jg),l:0|Number(e&Jg)}}function Xg(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Yg(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");
|
|
17
17
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
18
|
-
var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function qv(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Bv(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Fv(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Hv=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Fv(e[t]);return e},Vv=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),Jv=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Wv(e){if(Lv(e),Vv)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Jv[e[n]];return t}const Gv=48,Kv=57,Xv=65,Yv=70,Qv=97,e$=102;function t$(e){return e>=Gv&&e<=Kv?e-Gv:e>=Xv&&e<=Yv?e-(Xv-10):e>=Qv&&e<=e$?e-(Qv-10):void 0}function n$(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function i$(e){return"string"==typeof e&&(e=n$(e)),Lv(e),e}class r${}const o$=BigInt(0),a$=BigInt(1),s$=BigInt(2),c$=BigInt(7),l$=BigInt(256),u$=BigInt(113),d$=[],p$=[],m$=[];for(let e=0,t=a$,n=1,i=0;e<24;e++){[n,i]=[i,(2*n+3*i)%5],d$.push(2*(5*i+n)),p$.push((e+1)*(e+2)/2%64);let r=o$;for(let e=0;e<7;e++)t=(t<<a$^(t>>c$)*u$)%l$,t&s$&&(r^=a$<<(a$<<BigInt(e))-a$);m$.push(r)}const f$=function(e,t=!1){const n=e.length;let i=new Uint32Array(n),r=new Uint32Array(n);for(let o=0;o<n;o++){const{h:n,l:a}=Mv(e[o],t);[i[o],r[o]]=[n,a]}return[i,r]}(m$,!0),h$=f$[0],g$=f$[1],v$=(e,t,n)=>n>32?((e,t,n)=>t<<n-32|e>>>64-n)(e,t,n):((e,t,n)=>e<<n|t>>>32-n)(e,t,n),$$=(e,t,n)=>n>32?((e,t,n)=>e<<n-32|t>>>64-n)(e,t,n):((e,t,n)=>t<<n|e>>>32-n)(e,t,n);class b$ extends r${constructor(e,t,n,i=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=r,Zv(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}clone(){return this._cloneInto()}keccak(){Hv(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const i=(t+8)%10,r=(t+2)%10,o=n[r],a=n[r+1],s=v$(o,a,1)^n[i],c=$$(o,a,1)^n[i+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],r=e[3];for(let n=0;n<24;n++){const i=p$[n],o=v$(t,r,i),a=$$(t,r,i),s=d$[n];t=e[s],r=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)n[i]=e[t+i];for(let i=0;i<10;i++)e[t+i]^=~n[(i+2)%10]&n[(i+4)%10]}e[0]^=h$[i],e[1]^=g$[i]}Bv(n)}(this.state32,this.rounds),Hv(this.state32),this.posOut=0,this.pos=0}update(e){qv(this),Lv(e=i$(e));const{blockLen:t,state:n}=this,i=e.length;for(let r=0;r<i;){const o=Math.min(t-this.pos,i-r);for(let t=0;t<o;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:i}=this;e[n]^=t,128&t&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){qv(this,!1),Lv(e),this.finish();const t=this.state,{blockLen:n}=this;for(let i=0,r=e.length;i<r;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,r-i);e.set(t.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Zv(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(function(e,t){Lv(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Bv(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:i,rounds:r,enableXOF:o}=this;return e||(e=new b$(t,n,i,o,r)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=r,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}const y$=(e,t,n)=>function(e){const t=t=>e().update(i$(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new b$(t,e,n)),k$=(()=>y$(1,136,32))(),_$=Lv;function x$(e){return function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(Vv)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(n);for(let t=0,r=0;t<n;t++,r+=2){const n=t$(e.charCodeAt(r)),o=t$(e.charCodeAt(r+1));if(void 0===n||void 0===o){const t=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+r)}i[t]=16*n+o}return i}(e.startsWith("0x")?e.substring(2):e)}const w$=(()=>{const e=function(e){return t=>(_$(t),e(t))}(k$);return e.create=k$.create,e})();function I$(e,t,n){!function(e){if(e.match(/\s+/))throw new Fg({namespacePrefix:"Namespace prefix should not contain whitespace characters"})}(n);const i=function(e,t){return 0===e.length?t:`${e}.${t}`}(n,e.name),r=E$(e.name),o=function(e,t){const n={name:`${e}Storage`,namespaceId:t,comments:[],variables:[]};return n}(e.name,i),a=`${e.name.toUpperCase()}_STORAGE_LOCATION`;t.forEach(t=>e.addStructVariable(o,t)),e.addConstantOrImmutableOrErrorDefinition(`bytes32 private constant ${a} = ${function(e){const t=w$(n$(e)),n=x$((BigInt("0x"+Wv(t))-1n).toString(16).padStart(64,"0")),i=w$(n),r=BigInt("0xff");return"0x"+(BigInt("0x"+Wv(i))&~r).toString(16).padStart(64,"0")}(i)};`,[`// keccak256(abi.encode(uint256(keccak256("${i}")) - 1)) & ~bytes32(uint256(0xff))`]),e.addFunctionCode(`assembly { $.slot := ${a} }`,r)}function S$(e){return`${e}Storage storage $ = ${E$(e).name}();`}function E$(e){return{name:`_get${e}Storage`,kind:"private",mutability:"pure",args:[],returns:[`${e}Storage storage $`]}}const C$={name:"setLink",kind:"public",args:[{name:"gateway",type:"address"},{name:"counterpart",type:"bytes memory"}]};function z$(e,t,n,i){e.addParent(t),e.addConstructionOnly({name:"CrosschainLinked",path:"@openzeppelin/contracts/crosschain/CrosschainLinked.sol"},[{lit:"links"}]),e.addConstructorArgument({type:{name:"CrosschainLinked.Link[] memory"},name:"links"}),Mg(e,C$,i,"CROSSCHAIN_LINKER","crosschainLinker"),e.addFunctionCode(`_setLink(gateway, counterpart, ${n});`,C$)}const O$={...Gg,name:"MyToken",symbol:"MTK",decimals:18..toString(),burnable:!1,pausable:!1,premint:"0",premintChainId:"",mintable:!1,callback:!1,permit:!0,votes:!1,flashmint:!1,crossChainBridging:!1,crossChainLinkAllowOverride:!1,namespacePrefix:"myProject"};function T$(e){return{...e,...Kg(e),decimals:e.decimals??O$.decimals,burnable:e.burnable??O$.burnable,pausable:e.pausable??O$.pausable,premint:e.premint||O$.premint,premintChainId:e.premintChainId||O$.premintChainId,mintable:e.mintable??O$.mintable,callback:e.callback??O$.callback,permit:e.permit??O$.permit,votes:e.votes??O$.votes,flashmint:e.flashmint??O$.flashmint,crossChainBridging:e.crossChainBridging??O$.crossChainBridging,crossChainLinkAllowOverride:e.crossChainLinkAllowOverride??O$.crossChainLinkAllowOverride,namespacePrefix:e.namespacePrefix??O$.namespacePrefix}}function U$(e){return e.mintable||e.pausable||"uups"===e.upgradeable||"custom"===e.crossChainBridging||"erc7786native"===e.crossChainBridging}function R$(e){const t=T$(e),n=new Ng(t.name),{access:i,upgradeable:r,info:o}=t;!function(e,t,n){e.addParent(A$,[t,n]),e.addOverride(A$,j$._update),e.addOverride(A$,j$._approve)}(n,t.name,t.symbol);const a=Number(Nv(t.decimals,"decimals","uint8"));if(18!==a&&function(e,t){e.addOverride(A$,j$.decimals),e.setFunctionBody([`return ${t};`],j$.decimals)}(n,a),t.crossChainBridging&&function(e,t,n,i,r,o){"erc7786native"===t?function(e,t,n){z$(e,{name:"ERC20Crosschain",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Crosschain.sol"},t,n)}(e,n,i):function(e,t,n,i,r){const o={name:"ERC20Bridgeable",path:"@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Bridgeable.sol"};switch(e.addParent(o),e.addOverride(o,jg),e.addOverride(o,j$._checkTokenBridge),t){case"custom":!function(e,t,n,i){!1===t&&(t="ownable");switch(t){case"ownable":if(n){const n=['require(tokenBridge_ != address(0), "Invalid tokenBridge_ address");',S$(e.name),"$.tokenBridge = tokenBridge_;"];I$(e,["address tokenBridge;"],i),e.addConstructorArgument({type:"address",name:"tokenBridge_"}),n.forEach(t=>{e.addConstructorCode(t)}),e.setFunctionBody([S$(e.name),"if (caller != $.tokenBridge) revert Unauthorized();"],j$._checkTokenBridge,"view"),Mg(e,j$.setTokenBridge,t,"TOKEN_BRIDGE_SETTER","tokenBridgeSetter"),e.setFunctionBody(n,j$.setTokenBridge)}else{const n=['require(tokenBridge_ != address(0), "Invalid tokenBridge_ address");',"tokenBridge = tokenBridge_;"];e.addStateVariable("address public tokenBridge;",!1)&&(e.addConstructorArgument({type:"address",name:"tokenBridge_"}),n.forEach(t=>{e.addConstructorCode(t)})),e.setFunctionBody(["if (caller != tokenBridge) revert Unauthorized();"],j$._checkTokenBridge,"view"),Mg(e,j$.setTokenBridge,t,"TOKEN_BRIDGE_SETTER","tokenBridgeSetter"),n.forEach(t=>{e.addFunctionCode(t,j$.setTokenBridge)})}break;case"roles":{Dg(e,t);const n="tokenBridge",i="TOKEN_BRIDGE_ROLE";e.addConstantOrImmutableOrErrorDefinition(`bytes32 public constant ${i} = keccak256("${i}");`)&&(e.addConstructorArgument({type:"address",name:n}),e.addConstructorCode(`_grantRole(${i}, ${n});`)),e.setFunctionBody([`if (!hasRole(${i}, caller)) revert Unauthorized();`],j$._checkTokenBridge,"view");break}case"managed":Dg(e,t),e.addImportOnly({name:"AuthorityUtils",path:"@openzeppelin/contracts/access/manager/AuthorityUtils.sol",transpiled:!1}),e.setFunctionBody(["(bool immediate,) = AuthorityUtils.canCallWithDelay(authority(), caller, address(this), bytes4(_msgData()[0:4]));","if (!immediate) revert Unauthorized();"],j$._checkTokenBridge,"view");break;default:throw new Error("Unknown value for `access`")}}(e,n,i,r);break;case"superchain":!function(e){e.addConstantOrImmutableOrErrorDefinition("address internal constant SUPERCHAIN_TOKEN_BRIDGE = 0x4200000000000000000000000000000000000028;"),e.setFunctionBody(["if (caller != SUPERCHAIN_TOKEN_BRIDGE) revert Unauthorized();"],j$._checkTokenBridge,"pure"),e.setFunctionComments(["/**"," * @dev Checks if the caller is the predeployed SuperchainTokenBridge. Reverts otherwise."," *"," * IMPORTANT: The predeployed SuperchainTokenBridge is only available on chains in the Superchain."," */"],j$._checkTokenBridge)}(e);break;default:throw new Error("Unknown value for `crossChainBridging`")}e.addConstantOrImmutableOrErrorDefinition("error Unauthorized();")}(e,t,i,r,o)}(n,t.crossChainBridging,t.crossChainLinkAllowOverride,i,r,t.namespacePrefix),t.premint&&function(e,t,n,i,r){const o=function(e){const t=e.match(P$);if(!t)throw new Fg({premint:"Not a valid number"});const n=void 0!==t[1]?function(e){let t=0;for(;t<e.length&&"0"===e[t];)t++;return e.slice(t)}(t[1]):"",i=void 0!==t[2]?function(e){let t=e.length;for(;t>0&&"0"===e[t-1];)t--;return e.slice(0,t)}(t[2]):"",r=Number(t[3]??0);if(Number(n+i)>0){const e=i.length-r;return{units:n+i+new Array(Math.max(0,-e)).fill("0").join(""),exp:e<=0?"decimals()":`(decimals() - ${e})`,decimalPlace:e}}return}(t);if(void 0===o)return;const{units:a,exp:s,decimalPlace:c}=o;if(c>r)throw new Fg({premint:"Too many decimals"});(function(e,t,n){const i=t<=0?n:n-t;if(r=e,o=i,(o<0?r/BigInt(10)**BigInt(-o):r*BigInt(10)**BigInt(o))>Pv)throw new Fg({premint:"Amount would overflow uint256 after applying decimals"});var r,o})(Nv(a,"premint","uint256"),c,r),e.addConstructorArgument({type:"address",name:"recipient"});const l=`_mint(recipient, ${a} * 10 ** ${s});`;if(i){if(""===n)throw new Fg({premintChainId:"Chain ID is required when using Premint with Crosschain Bridging"});if(u=n,!N$.test(u))throw new Fg({premintChainId:"Not a valid chain ID"});e.addConstructorCode(`if (block.chainid == ${n}) {`),e.addConstructorCode(` ${l}`),e.addConstructorCode("}")}else e.addConstructorCode(l);var u}(n,t.premint,t.premintChainId,t.crossChainBridging,a),t.burnable&&function(e){e.addParent({name:"ERC20Burnable",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"})}(n),t.pausable&&function(e,t){const n={name:"ERC20Pausable",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"};e.addParent(n),e.addOverride(n,j$._update),qg(e,t)}(n,i),t.mintable&&function(e,t){Mg(e,j$.mint,t,"MINTER","minter"),e.addFunctionCode("_mint(to, amount);",j$.mint)}(n,i),t.callback&&function(e){const t={name:"ERC1363",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC1363.sol"};e.addParent(t),e.addOverride(t,jg)}(n),t.permit&&function(e,t){const n={name:"ERC20Permit",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"};e.addParent(n,[t]),e.addOverride(n,j$.nonces)}(n,t.name),t.votes){const e=!0===t.votes?Ov:t.votes;!function(e,t,n){if(!e.parents.some(e=>"ERC20Permit"===e.contract.name)){const n={name:"EIP712",path:"@openzeppelin/contracts/utils/cryptography/EIP712.sol"};e.addParent(n,[t,"1"])}const i={name:"ERC20Votes",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol"};e.addParent(i),e.addOverride(i,j$._update),e.addImportOnly({name:"Nonces",path:"@openzeppelin/contracts/utils/Nonces.sol"}),e.addOverride({name:"Nonces"},j$.nonces),Uv(e,i,n)}(n,t.name,e)}return t.flashmint&&function(e){e.addParent({name:"ERC20FlashMint",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20FlashMint.sol"})}(n),Dg(n,i),Yg(n,r,i),Wg(n,o),n}const A$={name:"ERC20",path:"@openzeppelin/contracts/token/ERC20/ERC20.sol"};const P$=/^(\d*)(?:\.(\d+))?(?:e(\d+))?$/,N$=/^(?!$)[1-9]\d*$/;const j$=Lg({decimals:{kind:"public",args:[],returns:["uint8"],mutability:"pure"},_update:{kind:"internal",args:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"}]},_approve:{kind:"internal",args:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"emitEvent",type:"bool"}]},mint:{kind:"public",args:[{name:"to",type:"address"},{name:"amount",type:"uint256"}]},pause:{kind:"public",args:[]},unpause:{kind:"public",args:[]},snapshot:{kind:"public",args:[]},nonces:{kind:"public",args:[{name:"owner",type:"address"}],returns:["uint256"],mutability:"view"},_checkTokenBridge:{kind:"internal",args:[{name:"caller",type:"address"}]},setTokenBridge:{kind:"public",args:[{name:"tokenBridge_",type:"address"}]}}),D$={...Gg,name:"MyToken",symbol:"MTK",baseUri:"",enumerable:!1,uriStorage:!1,burnable:!1,pausable:!1,mintable:!1,incremental:!1,votes:!1,crossChainBridging:!1,crossChainLinkAllowOverride:!1,namespacePrefix:"myProject"};function M$(e){const t=function(e){return{...e,...Kg(e),baseUri:e.baseUri??D$.baseUri,enumerable:e.enumerable??D$.enumerable,uriStorage:e.uriStorage??D$.uriStorage,burnable:e.burnable??D$.burnable,pausable:e.pausable??D$.pausable,mintable:e.mintable??D$.mintable,incremental:e.incremental??D$.incremental,votes:e.votes??D$.votes,crossChainBridging:e.crossChainBridging??D$.crossChainBridging,crossChainLinkAllowOverride:e.crossChainLinkAllowOverride??D$.crossChainLinkAllowOverride,namespacePrefix:e.namespacePrefix??D$.namespacePrefix}}(e),n=new Ng(t.name),{access:i,upgradeable:r,info:o}=t;if(function(e,t,n){e.addParent(Z$,[t,n]),e.addOverride(Z$,L$._update),e.addOverride(Z$,L$._increaseBalance),e.addOverride(Z$,L$.tokenURI),e.addOverride(Z$,jg)}(n,t.name,t.symbol),t.baseUri&&function(e,t){e.addOverride(Z$,L$._baseURI),e.setFunctionBody([`return ${JSON.stringify(t)};`],L$._baseURI)}(n,t.baseUri),t.crossChainBridging&&function(e,t,n,i){if("erc7786native"!==t)throw new Error("Unknown value for `crossChainBridging`");!function(e,t,n){z$(e,{name:"ERC721Crosschain",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Crosschain.sol"},t,n)}(e,n,i)}(n,t.crossChainBridging,t.crossChainLinkAllowOverride,i),t.enumerable&&function(e){const t={name:"ERC721Enumerable",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"};e.addParent(t),e.addOverride(t,L$._update),e.addOverride(t,L$._increaseBalance),e.addOverride(t,jg)}(n),t.uriStorage&&function(e){const t={name:"ERC721URIStorage",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"};e.addParent(t),e.addOverride(t,L$.tokenURI),e.addOverride(t,jg)}(n),t.pausable&&function(e,t){const n={name:"ERC721Pausable",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"};e.addParent(n),e.addOverride(n,L$._update),qg(e,t)}(n,i),t.burnable&&function(e){e.addParent({name:"ERC721Burnable",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"})}(n),t.mintable&&function(e,t,n=!1,i=!1,r,o){const a=function(e,t){const n={name:"safeMint",kind:"public",args:[{name:"to",type:"address"}],returns:e?["uint256"]:void 0};e||n.args.push({name:"tokenId",type:"uint256"});t&&n.args.push({name:"uri",type:"string memory"});return n}(n,i);Mg(e,a,t,"MINTER","minter"),n?r?(I$(e,["uint256 _nextTokenId;"],o),e.addFunctionCode(S$(e.name),a),e.addFunctionCode("uint256 tokenId = $._nextTokenId++;",a),e.addFunctionCode("_safeMint(to, tokenId);",a)):(e.addStateVariable("uint256 private _nextTokenId;",r),e.addFunctionCode("uint256 tokenId = _nextTokenId++;",a),e.addFunctionCode("_safeMint(to, tokenId);",a)):e.addFunctionCode("_safeMint(to, tokenId);",a);i&&e.addFunctionCode("_setTokenURI(tokenId, uri);",a);n&&e.addFunctionCode("return tokenId;",a)}(n,i,t.incremental,t.uriStorage,t.upgradeable,t.namespacePrefix),t.votes){const e=!0===t.votes?Ov:t.votes;!function(e,t,n){const i={name:"EIP712",path:"@openzeppelin/contracts/utils/cryptography/EIP712.sol"};e.addParent(i,[t,"1"]);const r={name:"ERC721Votes",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Votes.sol"};e.addParent(r),e.addOverride(r,L$._update),e.addOverride(r,L$._increaseBalance),Uv(e,r,n)}(n,t.name,e)}return Dg(n,i),Yg(n,r,i),Wg(n,o),n}const Z$={name:"ERC721",path:"@openzeppelin/contracts/token/ERC721/ERC721.sol"};const L$=Lg({_update:{kind:"internal",args:[{name:"to",type:"address"},{name:"tokenId",type:"uint256"},{name:"auth",type:"address"}],returns:["address"]},tokenURI:{kind:"public",args:[{name:"tokenId",type:"uint256"}],returns:["string memory"],mutability:"view"},_baseURI:{kind:"internal",args:[],returns:["string memory"],mutability:"pure"},_increaseBalance:{kind:"internal",args:[{name:"account",type:"address"},{name:"value",type:"uint128"}]}});const q$={...Gg,name:"MyToken",uri:"",burnable:!1,pausable:!1,mintable:!1,supply:!1,updatableUri:!0,crossChainBridging:!1,crossChainLinkAllowOverride:!1};function B$(e){const t=function(e){return{...e,...Kg(e),burnable:e.burnable??q$.burnable,pausable:e.pausable??q$.pausable,mintable:e.mintable??q$.mintable,supply:e.supply??q$.supply,updatableUri:e.updatableUri??q$.updatableUri,crossChainBridging:e.crossChainBridging??q$.crossChainBridging,crossChainLinkAllowOverride:e.crossChainLinkAllowOverride??q$.crossChainLinkAllowOverride}}(e),n=new Ng(t.name),{access:i,upgradeable:r,info:o}=t;return function(e,t){const n={name:"ERC1155",path:"@openzeppelin/contracts/token/ERC1155/ERC1155.sol"};e.addParent(n,[t]),e.addOverride(n,F$._update),e.addOverride(n,jg)}(n,t.uri),t.crossChainBridging&&function(e,t,n,i){if("erc7786native"!==t)throw new Error("Unknown value for `crossChainBridging`");!function(e,t,n){z$(e,{name:"ERC1155Crosschain",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Crosschain.sol"},t,n)}(e,n,i)}(n,t.crossChainBridging,t.crossChainLinkAllowOverride,i),t.updatableUri&&function(e,t){Mg(e,F$.setURI,t,"URI_SETTER",void 0),e.addFunctionCode("_setURI(newuri);",F$.setURI)}(n,i),t.pausable&&function(e,t){const n={name:"ERC1155Pausable",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol"};e.addParent(n),e.addOverride(n,F$._update),qg(e,t)}(n,i),t.burnable&&function(e){e.addParent({name:"ERC1155Burnable",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"})}(n),t.mintable&&function(e,t){Mg(e,F$.mint,t,"MINTER","minter"),Mg(e,F$.mintBatch,t,"MINTER","minter"),e.addFunctionCode("_mint(account, id, amount, data);",F$.mint),e.addFunctionCode("_mintBatch(to, ids, amounts, data);",F$.mintBatch)}(n,i),t.supply&&function(e){const t={name:"ERC1155Supply",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"};e.addParent(t),e.addOverride(t,F$._update)}(n),Dg(n,i),Yg(n,r,i),Wg(n,o),n}const F$=Lg({_update:{kind:"internal",args:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"ids",type:"uint256[] memory"},{name:"values",type:"uint256[] memory"}]},setURI:{kind:"public",args:[{name:"newuri",type:"string memory"}]},mint:{kind:"public",args:[{name:"account",type:"address"},{name:"id",type:"uint256"},{name:"amount",type:"uint256"},{name:"data",type:"bytes memory"}]},mintBatch:{kind:"public",args:[{name:"to",type:"address"},{name:"ids",type:"uint256[] memory"},{name:"amounts",type:"uint256[] memory"},{name:"data",type:"bytes memory"}]}}),H$={...O$,name:"MyStablecoin",symbol:"MST",restrictions:!1,freezable:!1};function V$(e=H$){return gv(W$(e))}function J$(e){return U$(e)||!!e.restrictions||!!e.freezable}function W$(e){const t=function(e){return{...T$(e),name:e.name??H$.name,symbol:e.symbol??H$.symbol,restrictions:e.restrictions??H$.restrictions,freezable:e.freezable??H$.freezable}}(e);t.upgradeable=!1;const n=R$(t);return t.freezable&&function(e,t){const n={name:"ERC20Freezable",path:"@openzeppelin/community-contracts/token/ERC20/extensions/ERC20Freezable.sol"};e.addParent(n),e.addOverride(n,G$._update),!1===t&&(t="ownable");const i=G$.freeze;Mg(e,i,t,"FREEZER","freezer"),e.setFunctionBody(["_setFrozen(user, amount);"],i)}(n,t.access),t.restrictions&&function(e,t,n){const i="allowlist"===n,r={name:"ERC20Restricted",path:"@openzeppelin/community-contracts/token/ERC20/extensions/ERC20Restricted.sol"};e.addParent(r),e.addOverride(r,G$._update),i&&(e.addOverride(r,G$.isUserAllowed),e.setFunctionBody(["return getRestriction(user) == Restriction.ALLOWED;"],G$.isUserAllowed));const[o,a]=i?[G$.allowUser,G$.disallowUser]:[G$.blockUser,G$.unblockUser];Mg(e,o,t,"LIMITER","limiter"),e.addFunctionCode(`_${i?"allow":"block"}User(user);`,o),Mg(e,a,t,"LIMITER","limiter"),e.addFunctionCode("_resetUser(user);",a)}(n,t.access,t.restrictions),n}const G$={...j$,...Lg({freeze:{kind:"public",args:[{name:"user",type:"address"},{name:"amount",type:"uint256"}]},allowUser:{kind:"public",args:[{name:"user",type:"address"}]},disallowUser:{kind:"public",args:[{name:"user",type:"address"}]},blockUser:{kind:"public",args:[{name:"user",type:"address"}]},unblockUser:{kind:"public",args:[{name:"user",type:"address"}]},isUserAllowed:{kind:"public",args:[{name:"user",type:"address"}],returns:["bool"],mutability:"view"}})};const K$={ECDSA:{name:"SignerECDSA",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerECDSA.sol"},EIP7702:{name:"SignerEIP7702",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerEIP7702.sol"},Multisig:{name:"MultiSignerERC7913",path:"@openzeppelin/contracts/utils/cryptography/signers/MultiSignerERC7913.sol"},MultisigWeighted:{name:"MultiSignerERC7913Weighted",path:"@openzeppelin/contracts/utils/cryptography/signers/MultiSignerERC7913Weighted.sol"},P256:{name:"SignerP256",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerP256.sol"},RSA:{name:"SignerRSA",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerRSA.sol"},WebAuthn:{name:"SignerWebAuthn",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerWebAuthn.sol"}},X$={ECDSA:[{name:"signer",type:"address"}],P256:[{name:"qx",type:"bytes32"},{name:"qy",type:"bytes32"}],Multisig:[{name:"signers",type:"bytes[] memory"},{name:"threshold",type:"uint64"}],MultisigWeighted:[{name:"signers",type:"bytes[] memory"},{name:"weights",type:"uint64[] memory"},{name:"threshold",type:"uint64"}],RSA:[{name:"e",type:"bytes memory"},{name:"n",type:"bytes memory"}],WebAuthn:[]},Y$=Lg({_rawSignatureValidation:{kind:"internal",args:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes calldata"}],returns:["bool"],mutability:"view"}}),Q$={...Gg,name:"MyAccount",signatureValidation:"ERC7739",ERC721Holder:!0,ERC1155Holder:!0,signer:"ECDSA",batchedExecution:!1,ERC7579Modules:!1};function eb(e){const t=function(e){return{...Kg(e),name:e.name??Q$.name,signatureValidation:e.signatureValidation??Q$.signatureValidation,ERC721Holder:e.ERC721Holder??Q$.ERC721Holder,ERC1155Holder:e.ERC1155Holder??Q$.ERC1155Holder,signer:e.signer??Q$.signer,batchedExecution:e.batchedExecution??Q$.batchedExecution,ERC7579Modules:e.ERC7579Modules??Q$.ERC7579Modules}}(e);t.access=!1;const n=new Ng(t.name);return function(e,t){e.addParent({name:"Account",path:"@openzeppelin/contracts/account/Account.sol",transpiled:!1}),e.addOverride({name:"Account",transpiled:!1},tb._validateUserOp),"ERC7739"===t.signatureValidation&&function(e,t){if("ERC7739"!=t.signatureValidation)return;e.addParent({name:"EIP712",path:"@openzeppelin/contracts/utils/cryptography/EIP712.sol",transpiled:!1},[t.name,"1"])}(e,t);(function(e,t){switch(t.signatureValidation){case"ERC7739":e.addParent({name:"ERC7739",path:"@openzeppelin/contracts/utils/cryptography/signers/draft-ERC7739.sol",transpiled:!1});break;case"ERC1271":e.addParent({name:"IERC1271",path:"@openzeppelin/contracts/interfaces/IERC1271.sol"}),e.addOverride({name:"IERC1271"},tb.isValidSignature),t.ERC7579Modules||e.setFunctionBody(["return _rawSignatureValidation(hash, signature) ? IERC1271.isValidSignature.selector : bytes4(0xffffffff);"],tb.isValidSignature)}})(e,t),function(e,t){if(!t.ERC7579Modules)return;e.addParent({name:t.ERC7579Modules,path:`@openzeppelin/contracts/account/extensions/draft-${t.ERC7579Modules}.sol`}),"AccountERC7579"!==t.ERC7579Modules&&e.addImportOnly({name:"AccountERC7579",path:"@openzeppelin/contracts/account/extensions/draft-AccountERC7579.sol"});t.signer||(e.addConstructorArgument({type:"uint256",name:"moduleTypeId"}),e.addConstructorArgument({type:"address",name:"module"}),e.addConstructorArgument({type:"bytes calldata",name:"initData"}),e.addConstructorCode("require(moduleTypeId == MODULE_TYPE_VALIDATOR || moduleTypeId == MODULE_TYPE_EXECUTOR);"),e.addConstructorCode("_installModule(moduleTypeId, module, initData);"));e.addOverride({name:"AccountERC7579"},tb._validateUserOp),e.addOverride({name:"AccountERC7579"},tb.isValidSignature),"ERC7739"===t.signatureValidation&&(e.addOverride({name:"ERC7739",transpiled:!1},tb.isValidSignature),e.setFunctionBody(["// ERC-7739 can return the ERC-1271 magic value, 0xffffffff (invalid) or 0x77390001 (detection).","// If the returned value is 0xffffffff, fallback to ERC-7579 validation.","bytes4 erc7739magic = ERC7739.isValidSignature(hash, signature);",`return erc7739magic == bytes4(0xffffffff) ? ${t.upgradeable?av("AccountERC7579"):"AccountERC7579"}.isValidSignature(hash, signature) : erc7739magic;`],tb.isValidSignature))}(e,t),function(e,t,n){if(!t)return;const i="MultisigWeighted"===t?K$.Multisig.name:K$[t].name;switch(e.addOverride({name:i},Y$._rawSignatureValidation),t){case"EIP7702":if(e.addParent(K$[t]),n)throw new Fg({eip7702:"EOAs can upgrade by redelegating to a new account",upgradeable:"EOAs can upgrade by redelegating to a new account"});break;case"ECDSA":case"P256":case"RSA":case"Multisig":case"MultisigWeighted":X$[t].forEach(t=>e.addConstructorArgument(t)),e.addParent(K$[t],X$[t].map(e=>({lit:e.name})));break;case"WebAuthn":X$.P256.forEach(t=>e.addConstructorArgument(t)),e.addParent(K$.P256,X$.P256.map(e=>({lit:e.name}))),e.addParent(K$[t]),e.addImportOnly({name:"AbstractSigner",path:"@openzeppelin/contracts/utils/cryptography/signers/AbstractSigner.sol",transpiled:!1}),e.addOverride({name:"AbstractSigner",transpiled:!1},Y$._rawSignatureValidation),e.addOverride({name:"SignerP256"},Y$._rawSignatureValidation);break;default:throw new Error("Unknown signer")}}(e,t.signer??!1,t.upgradeable??!1),function(e,t){switch(t.signer){case"MultisigWeighted":e.addFunctionCode(`_setSignerWeights(${tb.setSignerWeights.args.map(({name:e})=>e).join(", ")});`,tb.setSignerWeights),e.addModifier("onlyEntryPointOrSelf",tb.setSignerWeights);case"Multisig":e.addFunctionCode(`_addSigners(${tb.addSigners.args[0].name});`,tb.addSigners),e.addModifier("onlyEntryPointOrSelf",tb.addSigners),e.addFunctionCode(`_removeSigners(${tb.removeSigners.args[0].name});`,tb.removeSigners),e.addModifier("onlyEntryPointOrSelf",tb.removeSigners),e.addFunctionCode(`_setThreshold(${tb.setThreshold.args[0].name});`,tb.setThreshold),e.addModifier("onlyEntryPointOrSelf",tb.setThreshold)}}(e,t),function(e,t){if(!t.batchedExecution||t.ERC7579Modules)return;e.addParent({name:"ERC7821",path:"@openzeppelin/contracts/account/extensions/draft-ERC7821.sol",transpiled:!1}),e.addOverride({name:"ERC7821",transpiled:!1},tb._erc7821AuthorizedExecutor),e.setFunctionBody(["return caller == address(entryPoint()) || super._erc7821AuthorizedExecutor(caller, mode, executionData);"],tb._erc7821AuthorizedExecutor)}(e,t),function(e,t){if(!t.ERC721Holder)return;e.addParent({name:"ERC721Holder",path:"@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol",transpiled:!1})}(e,t),function(e,t){if(!t.ERC1155Holder)return;e.addParent({name:"ERC1155Holder",path:"@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol",transpiled:!1})}(e,t)}(n,t),function(e,t){if(t.signer&&!t.ERC7579Modules)return;if(!t.signer&&t.ERC7579Modules)return;t.signer||t.ERC7579Modules||(e.addOverride({name:"Account",transpiled:!1},Y$._rawSignatureValidation),e.setFunctionBody(["// Custom validation logic","return false;"],Y$._rawSignatureValidation));if(t.signer&&t.ERC7579Modules){const n=t.upgradeable?av("AccountERC7579"):"AccountERC7579",i=K$[t.signer].name,r=t.upgradeable?av(i):i;"WebAuthn"!==t.signer&&(e.addImportOnly({name:"AbstractSigner",path:"@openzeppelin/contracts/utils/cryptography/signers/AbstractSigner.sol",transpiled:!1}),e.addOverride({name:"AbstractSigner",transpiled:!1},Y$._rawSignatureValidation)),e.addOverride({name:"AccountERC7579"},Y$._rawSignatureValidation),e.setFunctionComments([`// IMPORTANT: Make sure ${r} is more derived than ${n}`,`// in the inheritance chain (i.e. contract ... is ${n}, ..., ${r})`,"// to ensure the correct order of function resolution.",`// ${n} returns false for _rawSignatureValidation`],Y$._rawSignatureValidation),"MultisigWeighted"===t.signer&&e.addImportOnly(K$.Multisig)}}(n,t),function(e,t){Xg(e,t,()=>{e.addModifier("onlyEntryPointOrSelf",Qg._authorizeUpgrade)})}(n,t.upgradeable),Wg(n,t.info),e.ERC7579Modules&&n.addImportOnly({name:"PackedUserOperation",path:"@openzeppelin/contracts/interfaces/IERC4337.sol",transpiled:!1}),n}const tb={...Lg({isValidSignature:{kind:"public",mutability:"view",args:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes calldata"}],returns:["bytes4"]},_validateUserOp:{kind:"internal",args:[{name:"userOp",type:"PackedUserOperation calldata"},{name:"userOpHash",type:"bytes32"},{name:"signature",type:"bytes calldata"}],returns:["uint256"]},_erc7821AuthorizedExecutor:{kind:"internal",args:[{name:"caller",type:"address"},{name:"mode",type:"bytes32"},{name:"executionData",type:"bytes calldata"}],returns:["bool"],mutability:"view"},addSigners:{kind:"public",args:[{name:"signers",type:"bytes[] memory"}]},removeSigners:{kind:"public",args:[{name:"signers",type:"bytes[] memory"}]},setThreshold:{kind:"public",args:[{name:"threshold",type:"uint64"}]},setSignerWeights:{kind:"public",args:[{name:"signers",type:"bytes[] memory"},{name:"weights",type:"uint64[] memory"}]}})},nb=new RegExp(`^(\\d+(?:\\.\\d+)?) +(${["block","second","minute","hour","day","week","month","year"].join("|")})s?$`),ib=86400,rb={second:1,minute:60,hour:3600,day:ib,week:604800,month:2592e3,year:31536e3};function ob(e,t){const n=e.trim().match(nb);if(!n)throw new Error("Bad duration format");const i=parseFloat(n[1]),r=n[2];if("block"===r){if(!Number.isInteger(i))throw new Error("Invalid number of blocks");return i}const o=i*rb[r];return Math.round(o/t)}function ab(e){const t=e.trim().match(nb);if(!t)throw new Error("Bad duration format");const n=t[1],i=t[2];if("block"===i||"month"===i||"year"===i)throw new Error("Invalid unit for timestamp");return`${n} ${i}s`}const sb={...Gg,name:"MyGovernor",delay:"1 day",period:"1 week",votes:"erc20votes",clockMode:Ov,timelock:"openzeppelin",blockTime:12,decimals:18,proposalThreshold:"0",quorumMode:"percent",quorumPercent:4,quorumAbsolute:"",storage:!1,settings:!0,crossChainExecution:!1};function cb(e){const t=function(e){return{...e,...Kg(e),decimals:e.decimals??sb.decimals,blockTime:e.blockTime||sb.blockTime,quorumPercent:e.quorumPercent??sb.quorumPercent,quorumAbsolute:e.quorumAbsolute??sb.quorumAbsolute,proposalThreshold:e.proposalThreshold||sb.proposalThreshold,settings:e.settings??sb.settings,storage:e.storage??sb.storage,quorumMode:e.quorumMode??sb.quorumMode,votes:e.votes??sb.votes,clockMode:e.clockMode??sb.clockMode,timelock:e.timelock??sb.timelock,crossChainExecution:e.crossChainExecution??sb.crossChainExecution}}(e),n=new Ng(t.name);return function(e){if(!/^\d+$/.test(e.toString()))throw new Fg({decimals:"Not a valid number"})}(t.decimals),function(e,{name:t}){e.addParent(lb,[t]),e.addOverride(lb,hb.state),e.addOverride(lb,hb.propose),e.addOverride(lb,hb.proposalNeedsQueuing),e.addOverride(lb,hb.proposalThreshold),e.addOverride(lb,hb._propose),e.addOverride(lb,hb._queueOperations),e.addOverride(lb,hb._executeOperations),e.addOverride(lb,hb._cancel),e.addOverride(lb,hb._executor),e.addOverride(lb,jg)}(n,t),function(e,t){if(t.settings){const n={name:"GovernorSettings",path:"@openzeppelin/contracts/governance/extensions/GovernorSettings.sol"};e.addParent(n,[ub(t),db(t),{lit:pb(t)}]),e.addOverride(n,hb.votingDelay,"view"),e.addOverride(n,hb.votingPeriod,"view"),e.addOverride(n,hb.proposalThreshold,"view")}else!function(e,t){const n=ub(t);"lit"in n?e.setFunctionBody([`return ${n.lit};`],hb.votingDelay):e.setFunctionBody([`return ${n.value}; // ${n.note}`],hb.votingDelay);e.addOverride(lb,hb.votingDelay);const i=db(t);"lit"in i?e.setFunctionBody([`return ${i.lit};`],hb.votingPeriod):e.setFunctionBody([`return ${i.value}; // ${i.note}`],hb.votingPeriod);e.addOverride(lb,hb.votingPeriod)}(e,t),function(e,t){const n=pb(t);0!==parseInt(n)&&e.setFunctionBody([`return ${n};`],hb.proposalThreshold)}(e,t)}(n,t),function(e){e.addParent({name:"GovernorCountingSimple",path:"@openzeppelin/contracts/governance/extensions/GovernorCountingSimple.sol"})}(n),function(e,{storage:t}){if(t){const t={name:"GovernorStorage",path:"@openzeppelin/contracts/governance/extensions/GovernorStorage.sol"};e.addParent(t),e.addOverride(t,hb._propose)}}(n,t),function(e){const t="_token";e.addImportOnly({name:"IVotes",path:"@openzeppelin/contracts/governance/utils/IVotes.sol",transpiled:!1}),e.addConstructorArgument({type:{name:"IVotes",transpiled:!1},name:t}),e.addParent({name:"GovernorVotes",path:"@openzeppelin/contracts/governance/extensions/GovernorVotes.sol"},[{lit:t}])}(n),function(e,t){if("percent"===t.quorumMode){if(t.quorumPercent>100)throw new Fg({quorumPercent:"Invalid percentage"});const{quorumFractionNumerator:n,quorumFractionDenominator:i}=function(e){let t,n=e;const i=e.toString().split(".");if(i.length>2)throw new Fg({quorumPercent:"Invalid percentage"});if(2==i.length&&void 0!==i[0]&&void 0!==i[1]){n=parseInt(i[0].concat(i[1]));const e=i[1].length;for(t="100";t.length<e+3;)t+="0"}return{quorumFractionNumerator:n,quorumFractionDenominator:t}}(t.quorumPercent),r={name:"GovernorVotesQuorumFraction",path:"@openzeppelin/contracts/governance/extensions/GovernorVotesQuorumFraction.sol"};void 0!==i&&(e.addOverride(r,hb.quorumDenominator),e.setFunctionBody([`return ${i};`],hb.quorumDenominator,"pure")),e.addParent(r,[n]),e.addOverride(r,hb.quorum)}else if("absolute"===t.quorumMode){if(!mb.test(t.quorumAbsolute))throw new Fg({quorumAbsolute:"Not a valid number"});const n=0===t.decimals||"erc721votes"===t.votes?`return ${t.quorumAbsolute};`:`return ${t.quorumAbsolute}e${t.decimals};`;e.setFunctionBody([n],hb.quorum,"pure"),e.addOverride(lb,hb.quorum)}}(n,t),function(e,{timelock:t}){if(!1===t)return;const n="_timelock",{timelockType:i,timelockParent:r}=fb[t];e.addImportOnly(i),e.addConstructorArgument({type:i,name:n}),e.addParent(r,[{lit:n}]),e.addOverride(r,hb._queueOperations),e.addOverride(r,hb._executeOperations),e.addOverride(r,hb._cancel),e.addOverride(r,hb._executor),e.addOverride(r,hb.state),e.addOverride(r,hb.proposalNeedsQueuing)}(n,t),function(e,{crossChainExecution:t}){if(!t)return;e.addParent({name:"GovernorCrosschain",path:"@openzeppelin/contracts/governance/extensions/GovernorCrosschain.sol"})}(n,t),function(e,t){Xg(e,t,()=>{e.addModifier("onlyGovernance",Qg._authorizeUpgrade)})}(n,t.upgradeable),Wg(n,t.info),n}const lb={name:"Governor",path:"@openzeppelin/contracts/governance/Governor.sol"};function ub(e){try{return"timestamp"===e.clockMode?{lit:ab(e.delay)}:{value:ob(e.delay,e.blockTime),note:e.delay}}catch(e){throw e instanceof Error?new Fg({delay:e.message}):e}}function db(e){try{return"timestamp"===e.clockMode?{lit:ab(e.period)}:{value:ob(e.period,e.blockTime),note:e.period}}catch(e){throw e instanceof Error?new Fg({period:e.message}):e}}function pb({proposalThreshold:e,decimals:t,votes:n}){if(!/^\d+$/.test(e))throw new Fg({proposalThreshold:"Not a valid number"});return/^0+$/.test(e)||0===t||"erc721votes"===n?e:`${e}e${t}`}const mb=/^(?!$)(\d*)(?:\.(\d+))?(?:e(\d+))?$/;const fb={openzeppelin:{timelockType:{name:"TimelockController",path:"@openzeppelin/contracts/governance/TimelockController.sol"},timelockParent:{name:"GovernorTimelockControl",path:"@openzeppelin/contracts/governance/extensions/GovernorTimelockControl.sol"}},compound:{timelockType:{name:"ICompoundTimelock",path:"@openzeppelin/contracts/vendor/compound/ICompoundTimelock.sol",transpiled:!1},timelockParent:{name:"GovernorTimelockCompound",path:"@openzeppelin/contracts/governance/extensions/GovernorTimelockCompound.sol"}}};const hb=Lg({votingDelay:{args:[],returns:["uint256"],kind:"public",mutability:"pure"},votingPeriod:{args:[],returns:["uint256"],kind:"public",mutability:"pure"},proposalThreshold:{args:[],returns:["uint256"],kind:"public",mutability:"pure"},proposalNeedsQueuing:{args:[{name:"proposalId",type:"uint256"}],returns:["bool"],kind:"public",mutability:"view"},quorum:{args:[{name:"blockNumber",type:"uint256"}],returns:["uint256"],kind:"public",mutability:"view"},quorumDenominator:{args:[],returns:["uint256"],kind:"public",mutability:"view"},propose:{args:[{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"description",type:"string memory"}],returns:["uint256"],kind:"public"},_propose:{args:[{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"description",type:"string memory"},{name:"proposer",type:"address"}],returns:["uint256"],kind:"internal"},_queueOperations:{args:[{name:"proposalId",type:"uint256"},{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"descriptionHash",type:"bytes32"}],kind:"internal",returns:["uint48"]},_executeOperations:{args:[{name:"proposalId",type:"uint256"},{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"descriptionHash",type:"bytes32"}],kind:"internal"},_cancel:{args:[{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"descriptionHash",type:"bytes32"}],returns:["uint256"],kind:"internal"},state:{args:[{name:"proposalId",type:"uint256"}],returns:["ProposalState"],kind:"public",mutability:"view"},_executor:{args:[],returns:["address"],kind:"internal",mutability:"view"}}),gb={name:"MyContract",pausable:!1,access:Gg.access,upgradeable:Gg.upgradeable,info:Gg.info};function vb(e){const t=function(e){return{...e,...Kg(e),pausable:e.pausable??gb.pausable}}(e),n=new Ng(t.name),{access:i,upgradeable:r,info:o}=t;return t.pausable&&function(e,t,n){e.addParent({name:"Pausable",path:"@openzeppelin/contracts/utils/Pausable.sol"});for(const t of n)e.addModifier("whenNotPaused",t);qg(e,t)}(n,i,[]),Dg(n,i),Yg(n,r,i),Wg(n,o),n}var $b="5.7.0";function bb(e){const t=[`@openzeppelin/contracts/=@openzeppelin/contracts@${$b}/`];return e?.upgradeable&&t.push(`@openzeppelin/contracts-upgradeable/=@openzeppelin/contracts-upgradeable@${$b}/`),t}const yb={print:function(e=O$){return gv(R$(e))},getVersionedRemappings:bb,defaults:O$,isAccessControlRequired:U$},kb={print:function(e=D$){return gv(M$(e))},getVersionedRemappings:bb,defaults:D$,isAccessControlRequired:function(e){return e.mintable||e.pausable||"uups"===e.upgradeable||"erc7786native"===e.crossChainBridging}},_b={print:function(e=q$){return gv(B$(e))},getVersionedRemappings:bb,defaults:q$,isAccessControlRequired:function(e){return e.mintable||e.pausable||!1!==e.updatableUri||"uups"===e.upgradeable||"erc7786native"===e.crossChainBridging}},xb={print:V$,getVersionedRemappings:bb,defaults:H$,isAccessControlRequired:J$},wb={defaults:Q$},Ib={print:V$,getVersionedRemappings:bb,defaults:H$,isAccessControlRequired:J$},Sb={defaults:sb},Eb={print:function(e=gb){return gv(vb(e))},getVersionedRemappings:bb,defaults:gb,isAccessControlRequired:function(e){return e.pausable||"uups"===e.upgradeable}};!function(e){const[t,n,i]=e.split(".").map(e=>parseInt(e,10));if(0===t&&8===n&&Number.isInteger(i))return`0.8.${Math.min(i,26)}`}(pv);const Cb="5.6.0";var zb,Ob;function Tb(){if(Ob)return zb;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n],r=typeof i;"object"!==r&&"function"!==r||Object.isFrozen(i)||e(i)}),t}Ob=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const r=e=>!!e.scope;class o{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!r(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){r(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const a=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class s{constructor(){this.rootNode=a(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=a({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{s._collapse(e)}))}}class c extends s{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(e){return e?"string"==typeof e?e:e.source:null}function u(e){return m("(?=",e,")")}function d(e){return m("(?:",e,")*")}function p(e){return m("(?:",e,")?")}function m(...e){return e.map(e=>l(e)).join("")}function f(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map(e=>l(e)).join("|")+")"}function h(e){return new RegExp(e.toString()+"|").exec("").length-1}const g=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n;let i=l(e),r="";for(;i.length>0;){const e=g.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r}).map(e=>`(${e})`).join(t)}const $="[a-zA-Z]\\w*",b="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_="\\b(0b[01]+)",x={begin:"\\\\[\\s\\S]",relevance:0},w={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[x]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[x]},S=function(e,t,n={}){const r=i({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:m(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},E=S("//","$"),C=S("/\\*","\\*/"),z=S("#","$"),O={scope:"number",begin:y,relevance:0},T={scope:"number",begin:k,relevance:0},U={scope:"number",begin:_,relevance:0},R={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[x,{begin:/\[/,end:/\]/,relevance:0,contains:[x]}]},A={scope:"title",begin:$,relevance:0},P={scope:"title",begin:b,relevance:0},N={begin:"\\.\\s*"+b,relevance:0};var j=Object.freeze({__proto__:null,APOS_STRING_MODE:w,BACKSLASH_ESCAPE:x,BINARY_NUMBER_MODE:U,BINARY_NUMBER_RE:_,COMMENT:S,C_BLOCK_COMMENT_MODE:C,C_LINE_COMMENT_MODE:E,C_NUMBER_MODE:T,C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:$,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:N,NUMBER_MODE:O,NUMBER_RE:y,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:I,REGEXP_MODE:R,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=m(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:A,UNDERSCORE_IDENT_RE:b,UNDERSCORE_TITLE_MODE:P});function D(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function M(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Z(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=D,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function L(e,t){Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function q(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function B(e,t){void 0===e.relevance&&(e.relevance=1)}const F=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=m(n.beforeMatch,u(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},H=["of","and","for","in","not","or","if","then","parent","list","value"];function V(e,t,n="keyword"){const i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach(function(n){Object.assign(i,V(e[n],t,n))}),i;function r(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){const n=t.split("|");i[n[0]]=[e,J(n[0],n[1])]})}}function J(e,t){return t?Number(t):function(e){return H.includes(e.toLowerCase())}(e)?0:1}const W={},G=e=>{console.error(e)},K=(e,...t)=>{console.log(`WARN: ${e}`,...t)},X=(e,t)=>{W[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),W[`${e}/${t}`]=!0)},Y=new Error;function Q(e,t,{key:n}){let i=0;const r=e[n],o={},a={};for(let e=1;e<=t.length;e++)a[e+i]=r[e],o[e+i]=!0,i+=h(t[e-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw G("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Y;if("object"!=typeof e.beginScope||null===e.beginScope)throw G("beginScope must be object"),Y;Q(e,e.begin,{key:"beginScope"}),e.begin=v(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw G("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Y;if("object"!=typeof e.endScope||null===e.endScope)throw G("endScope must be object"),Y;Q(e,e.end,{key:"endScope"}),e.end=v(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=h(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(v(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function n(o,a){const s=o;if(o.isCompiled)return s;[M,q,ee,F].forEach(e=>e(o,a)),e.compilerExtensions.forEach(e=>e(o,a)),o.__beforeBegin=null,[Z,L,B].forEach(e=>e(o,a)),o.isCompiled=!0;let c=null;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=V(o.keywords,e.case_insensitive)),s.keywordPatternRe=t(c,!0),a&&(o.begin||(o.begin=/\B|\b/),s.beginRe=t(s.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(s.endRe=t(s.end)),s.terminatorEnd=l(s.end)||"",o.endsWithParent&&a.terminatorEnd&&(s.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(s.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return i(e,{variants:null},t)}));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return i(e,{starts:e.starts?i(e.starts):null});if(Object.isFrozen(e))return i(e);return e}("self"===e?o:e)})),o.contains.forEach(function(e){n(e,s)}),o.starts&&n(o.starts,a),s.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class ie extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const re=n,oe=i,ae=Symbol("nomatch"),se=function(n){const i=Object.create(null),r=Object.create(null),o=[];let a=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let h={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function g(e){return h.noHighlightRe.test(e)}function v(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);const o={code:i,language:r};S("before:highlight",o);const a=o.result?o.result:$(o.language,o.code,n);return a.code=o.code,S("after:highlight",a),a}function $(e,n,r,o){const c=Object.create(null);function l(e,t){return e.keywords[t]}function u(){if(!E.keywords)return void z.addText(O);let e=0;E.keywordPatternRe.lastIndex=0;let t=E.keywordPatternRe.exec(O),n="";for(;t;){n+=O.substring(e,t.index);const i=w.case_insensitive?t[0].toLowerCase():t[0],r=l(E,i);if(r){const[e,o]=r;if(z.addText(n),n="",c[i]=(c[i]||0)+1,c[i]<=7&&(T+=o),e.startsWith("_"))n+=t[0];else{const n=w.classNameAliases[e]||e;p(t[0],n)}}else n+=t[0];e=E.keywordPatternRe.lastIndex,t=E.keywordPatternRe.exec(O)}n+=O.substring(e),z.addText(n)}function d(){null!=E.subLanguage?function(){if(""===O)return;let e=null;if("string"==typeof E.subLanguage){if(!i[E.subLanguage])return void z.addText(O);e=$(E.subLanguage,O,!0,C[E.subLanguage]),C[E.subLanguage]=e._top}else e=b(O,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(T+=e.relevance),z.__addSublanguage(e._emitter,e.language)}():u(),O=""}function p(e,t){""!==e&&(z.startScope(t),z.addText(e),z.endScope())}function m(e,t){let n=1;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}const i=w.classNameAliases[e[n]]||e[n],r=t[n];i?p(r,i):(O=r,u(),O=""),n++}}function f(e,t){return e.scope&&"string"==typeof e.scope&&z.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(p(O,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),O=""):e.beginScope._multi&&(m(e.beginScope,t),O="")),E=Object.create(e,{parent:{value:E}}),E}function g(e,n,i){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,i);if(r){if(e["on:end"]){const i=new t(e);e["on:end"](n,i),i.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,n,i)}function v(e){return 0===E.matcher.regexIndex?(O+=e[0],1):(A=!0,0)}function y(e){const t=e[0],i=n.substring(e.index),r=g(E,e,i);if(!r)return ae;const o=E;E.endScope&&E.endScope._wrap?(d(),p(t,E.endScope._wrap)):E.endScope&&E.endScope._multi?(d(),m(E.endScope,e)):o.skip?O+=t:(o.returnEnd||o.excludeEnd||(O+=t),d(),o.excludeEnd&&(O=t));do{E.scope&&z.closeNode(),E.skip||E.subLanguage||(T+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&f(r.starts,e),o.returnEnd?0:t.length}let k={};function _(i,o){const s=o&&o[0];if(O+=i,null==s)return d(),0;if("begin"===k.type&&"end"===o.type&&k.index===o.index&&""===s){if(O+=n.slice(o.index,o.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=k.rule,t}return 1}if(k=o,"begin"===o.type)return function(e){const n=e[0],i=e.rule,r=new t(i),o=[i.__beforeBegin,i["on:begin"]];for(const t of o)if(t&&(t(e,r),r.isMatchIgnored))return v(n);return i.skip?O+=n:(i.excludeBegin&&(O+=n),d(),i.returnBegin||i.excludeBegin||(O=n)),f(i,e),i.returnBegin?0:n.length}(o);if("illegal"===o.type&&!r){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(E.scope||"<unnamed>")+'"');throw e.mode=E,e}if("end"===o.type){const e=y(o);if(e!==ae)return e}if("illegal"===o.type&&""===s)return O+="\n",1;if(R>1e5&&R>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return O+=s,s.length}const w=x(e);if(!w)throw G(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');const I=te(w);let S="",E=o||I;const C={},z=new h.__emitter(h);!function(){const e=[];for(let t=E;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>z.openNode(e))}();let O="",T=0,U=0,R=0,A=!1;try{if(w.__emitTokens)w.__emitTokens(n,z);else{for(E.matcher.considerAll();;){R++,A?A=!1:E.matcher.considerAll(),E.matcher.lastIndex=U;const e=E.matcher.exec(n);if(!e)break;const t=_(n.substring(U,e.index),e);U=e.index+t}_(n.substring(U))}return z.finalize(),S=z.toHTML(),{language:e,value:S,relevance:T,illegal:!1,_emitter:z,_top:E}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:re(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:U,context:n.slice(U-100,U+100),mode:t.mode,resultSoFar:S},_emitter:z};if(a)return{language:e,value:re(n),illegal:!1,relevance:0,errorRaised:t,_emitter:z,_top:E};throw t}}function b(e,t){t=t||h.languages||Object.keys(i);const n=function(e){const t={value:re(e),illegal:!1,relevance:0,_top:l,_emitter:new h.__emitter(h)};return t._emitter.addText(e),t}(e),r=t.filter(x).filter(I).map(t=>$(t,e,!1));r.unshift(n);const o=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(x(e.language).supersetOf===t.language)return 1;if(x(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,c=a;return c.secondBest=s,c}function y(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=h.languageDetectRe.exec(t);if(n){const t=x(n[1]);return t||(K(s.replace("{}",n[1])),K("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>g(e)||x(e))}(e);if(g(n))return;if(S("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(h.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),h.throwUnescapedHTML)){throw new ie("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const i=t.textContent,o=n?v(i,{language:n,ignoreIllegals:!0}):b(i);e.innerHTML=o.value,e.dataset.highlighted="yes",function(e,t,n){const i=t&&r[t]||n;e.classList.add("hljs"),e.classList.add(`language-${i}`)}(e,n,o.language),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),S("after:highlightElement",{el:e,result:o,text:i})}let k=!1;function _(){if("loading"===document.readyState)return k||window.addEventListener("DOMContentLoaded",function(){_()},!1),void(k=!0);document.querySelectorAll(h.cssSelector).forEach(y)}function x(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]}function w(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=t})}function I(e){const t=x(e);return t&&!t.disableAutodetect}function S(e,t){const n=e;o.forEach(function(e){e[n]&&e[n](t)})}Object.assign(n,{highlight:v,highlightAuto:b,highlightAll:_,highlightElement:y,highlightBlock:function(e){return X("10.7.0","highlightBlock will be removed entirely in v12.0"),X("10.7.0","Please use highlightElement now."),y(e)},configure:function(e){h=oe(h,e)},initHighlighting:()=>{_(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){_(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let r=null;try{r=t(n)}catch(t){if(G("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;G(t),r=l}r.name||(r.name=e),i[e]=r,r.rawDefinition=t.bind(null,n),r.aliases&&w(r.aliases,{languageName:e})},unregisterLanguage:function(e){delete i[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(i)},getLanguage:x,registerAliases:w,autoDetection:I,inherit:oe,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),o.push(e)},removePlugin:function(e){const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}),n.debugMode=function(){a=!1},n.safeMode=function(){a=!0},n.versionString="11.11.1",n.regex={concat:m,lookahead:u,either:f,optional:p,anyNumberOfTimes:d};for(const t in j)"object"==typeof j[t]&&e(j[t]);return Object.assign(n,j),n},ce=se({});return ce.newInstance=()=>se({}),zb=ce,ce.HighlightJS=ce,ce.default=ce,zb}var Ub,Rb,Ab,Pb,Nb,jb,Db,Mb=ev(Tb()),Zb={exports:{}};function Lb(){if(Rb)return Ub;function e(){try{return new RegExp("(?<!.)"),!0}catch(e){return!1}}Rb=1;var t=/-?(\b0[xX]([a-fA-F0-9]_?)*[a-fA-F0-9]|(\b[1-9](_?\d)*(\.((\d_?)*\d)?)?|\.\d(_?\d)*)([eE][-+]?\d(_?\d)*)?|\b0)(?!\w|\$)/;e()&&(t=t.source.replace(/\\b/g,"(?<!\\$)\\b"));var n={className:"number",begin:t,relevance:0},i={keyword:"assembly let function if switch case default for leave break continue u256 jump jumpi stop return revert selfdestruct invalid",built_in:"add sub mul div sdiv mod smod exp not lt gt slt sgt eq iszero and or xor byte shl shr sar addmod mulmod signextend keccak256 pc pop dup1 dup2 dup3 dup4 dup5 dup6 dup7 dup8 dup9 dup10 dup11 dup12 dup13 dup14 dup15 dup16 swap1 swap2 swap3 swap4 swap5 swap6 swap7 swap8 swap9 swap10 swap11 swap12 swap13 swap14 swap15 swap16 mload mstore mstore8 sload sstore msize gas address balance selfbalance caller callvalue calldataload calldatasize calldatacopy codesize codecopy extcodesize extcodecopy returndatasize returndatacopy extcodehash create create2 call callcode delegatecall staticcall log0 log1 log2 log3 log4 chainid origin gasprice basefee blockhash coinbase timestamp number difficulty prevrandao gaslimit",literal:"true false"},r={className:"string",begin:/\bhex'(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?'/},o={className:"string",begin:/\bhex"(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?"/};function a(e){return e.inherit(e.APOS_STRING_MODE,{begin:/(\bunicode)?'/})}function s(e){return e.inherit(e.QUOTE_STRING_MODE,{begin:/(\bunicode)?"/})}return Ub={SOL_ASSEMBLY_KEYWORDS:i,baseAssembly:function(e){var t=a(e),c=s(e),l=/[A-Za-z_$][A-Za-z_$0-9.]*/,u=e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:l,keywords:i}),d={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:l,keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,c,n]},p={className:"operator",begin:/:=|->/};return{keywords:i,lexemes:l,contains:[t,c,r,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,p,{className:"function",lexemes:l,beginKeywords:"function",end:"{",excludeEnd:!0,contains:[u,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p]}]}},solAposStringMode:a,solQuoteStringMode:s,HEX_APOS_STRING_MODE:r,HEX_QUOTE_STRING_MODE:o,SOL_NUMBER:n,isNegativeLookbehindAvailable:e}}var qb=function(){if(Db)return Zb.exports;Db=1;const e=function(){if(Pb)return Ab;Pb=1;const{baseAssembly:e,solAposStringMode:t,solQuoteStringMode:n,HEX_APOS_STRING_MODE:i,HEX_QUOTE_STRING_MODE:r,SOL_NUMBER:o,isNegativeLookbehindAvailable:a}=Lb();return Ab=function(s){for(var c=t(s),l=n(s),u=[],d=0;d<32;d++)u[d]=d+1;var p=u.map(function(e){return 8*e}),m=[];for(d=0;d<=80;d++)m[d]=d;var f=u.map(function(e){return"bytes"+e}).join(" ")+" ",h=p.map(function(e){return"uint"+e}).join(" ")+" ",g=p.map(function(e){return"int"+e}).join(" ")+" ",v=[].concat.apply([],p.map(function(e){return m.map(function(t){return e+"x"+t})})),$={keyword:"var bool string int uint "+g+h+"byte bytes "+f+"fixed ufixed "+v.map(function(e){return"fixed"+e}).join(" ")+" "+v.map(function(e){return"ufixed"+e}).join(" ")+" enum struct mapping address new delete if else for while continue break return throw emit try catch revert unchecked _ function modifier event constructor fallback receive error virtual override constant immutable anonymous indexed storage memory calldata external public internal payable pure view private returns import from as using global pragma contract interface library is abstract type assembly",literal:"true false wei gwei szabo finney ether seconds minutes hours days weeks years",built_in:"self this super selfdestruct suicide now msg block tx abi blockhash gasleft assert require Error Panic sha3 sha256 keccak256 ripemd160 ecrecover addmod mulmod log0 log1 log2 log3 log4"},b={className:"operator",begin:/[+\-!~*\/%<>&^|=]/},y=/[A-Za-z_$][A-Za-z_$0-9]*/,k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:y,keywords:$,contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,c,l,o,"self"]},_={begin:/\.\s*/,end:/[^A-Za-z0-9$_\.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"gas value selector address length push pop send transfer call callcode delegatecall staticcall balance code codehash wrap unwrap name creationCode runtimeCode interfaceId min max"},relevance:2},x=s.inherit(s.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:y,keywords:$}),w="("+["gas","value","salt"].join("|")+")(?=:)",I={className:"built_in",begin:(a()?"(?<!\\$)\\b":"\\b")+w};function S(e,t){return{begin:(a()?"(?<!\\$)\\b":"\\b")+e+"\\.\\s*",end:/[^A-Za-z0-9$_\.]/,excludeBegin:!1,excludeEnd:!0,lexemes:y,keywords:{built_in:e+" "+t},contains:[_],relevance:10}}var E=e(s),C=s.inherit(E,{contains:E.contains.concat([{begin:/\./,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"slot offset length address selector"},relevance:2},{begin:/_/,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"slot offset"},relevance:2}])});return{aliases:["sol"],keywords:$,lexemes:y,contains:[c,l,i,r,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,o,I,b,{className:"function",lexemes:y,beginKeywords:"function modifier event constructor fallback receive error",end:/[{;]/,excludeEnd:!0,contains:[x,k,I,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:/%/},S("msg","gas value data sender sig"),S("block","blockhash coinbase difficulty prevrandao gaslimit basefee number timestamp chainid"),S("tx","gasprice origin"),S("abi","decode encode encodePacked encodeWithSelector encodeWithSignature encodeCall"),S("bytes","concat"),S("string","concat"),_,{className:"class",lexemes:y,beginKeywords:"contract interface library",end:"{",excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"is",lexemes:y},x,k,I,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{lexemes:y,beginKeywords:"struct enum",end:"{",excludeEnd:!0,illegal:/[:"\[\]]/,contains:[x,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"import",end:";",lexemes:y,keywords:"import from as",contains:[x,c,l,i,r,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,b]},{beginKeywords:"using",end:";",lexemes:y,keywords:"using for global",contains:[x,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,b]},{className:"meta",beginKeywords:"pragma",end:";",lexemes:y,keywords:{keyword:"pragma solidity experimental abicoder",built_in:"ABIEncoderV2 SMTChecker v1 v2"},contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.inherit(c,{className:"meta-string"}),s.inherit(l,{className:"meta-string"})]},{beginKeywords:"assembly",end:/\b\B/,contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.inherit(c,{className:"meta-string"}),s.inherit(l,{className:"meta-string"}),s.inherit(C,{begin:"{",end:"}",endsParent:!0,contains:C.contains.concat([s.inherit(C,{begin:"{",end:"}",contains:C.contains.concat(["self"])})])})]}],illegal:/#/}},Ab}(),t=function(){if(jb)return Nb;jb=1;const{SOL_ASSEMBLY_KEYWORDS:e,baseAssembly:t,isNegativeLookbehindAvailable:n}=Lb();return Nb=function(i){var r={keyword:e.keyword+" object code data",built_in:e.built_in+" datasize dataoffset datacopy setimmutable loadimmutable linkersymbol memoryguard",literal:e.literal},o=/\bverbatim_[1-9]?[0-9]i_[1-9]?[0-9]o\b(?!\$)/;n()&&(o=o.source.replace(/\\b/,"(?<!\\$)\\b"));var a={className:"built_in",begin:o},s=t(i);return i.inherit(s,{keywords:r,contains:s.contains.concat([a])})}}();return Zb.exports=function(n){n.registerLanguage("solidity",e),n.registerLanguage("yul",t)},Zb.exports.solidity=e,Zb.exports.yul=t,Zb.exports}();ev(qb)(Mb);const Bb=$b;var Fb="top",Hb="bottom",Vb="right",Jb="left",Wb="auto",Gb=[Fb,Hb,Vb,Jb],Kb="start",Xb="end",Yb="viewport",Qb="popper",ey=Gb.reduce(function(e,t){return e.concat([t+"-"+Kb,t+"-"+Xb])},[]),ty=[].concat(Gb,[Wb]).reduce(function(e,t){return e.concat([t,t+"-"+Kb,t+"-"+Xb])},[]),ny=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function iy(e){return e?(e.nodeName||"").toLowerCase():null}function ry(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oy(e){return e instanceof ry(e).Element||e instanceof Element}function ay(e){return e instanceof ry(e).HTMLElement||e instanceof HTMLElement}function sy(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ry(e).ShadowRoot||e instanceof ShadowRoot)}var cy={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ay(r)&&iy(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ay(i)&&iy(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function ly(e){return e.split("-")[0]}var uy=Math.max,dy=Math.min,py=Math.round;function my(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function fy(){return!/^((?!chrome|android).)*safari/i.test(my())}function hy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&ay(e)&&(r=e.offsetWidth>0&&py(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&py(i.height)/e.offsetHeight||1);var a=(oy(e)?ry(e):window).visualViewport,s=!fy()&&n,c=(i.left+(s&&a?a.offsetLeft:0))/r,l=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function gy(e){var t=hy(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function vy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sy(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $y(e){return ry(e).getComputedStyle(e)}function by(e){return["table","td","th"].indexOf(iy(e))>=0}function yy(e){return((oy(e)?e.ownerDocument:e.document)||window.document).documentElement}function ky(e){return"html"===iy(e)?e:e.assignedSlot||e.parentNode||(sy(e)?e.host:null)||yy(e)}function _y(e){return ay(e)&&"fixed"!==$y(e).position?e.offsetParent:null}function xy(e){for(var t=ry(e),n=_y(e);n&&by(n)&&"static"===$y(n).position;)n=_y(n);return n&&("html"===iy(n)||"body"===iy(n)&&"static"===$y(n).position)?t:n||function(e){var t=/firefox/i.test(my());if(/Trident/i.test(my())&&ay(e)&&"fixed"===$y(e).position)return null;var n=ky(e);for(sy(n)&&(n=n.host);ay(n)&&["html","body"].indexOf(iy(n))<0;){var i=$y(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function wy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Iy(e,t,n){return uy(e,dy(t,n))}function Sy(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ey(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Cy={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ly(n.placement),c=wy(s),l=[Jb,Vb].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return Sy("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ey(e,Gb))}(r.padding,n),d=gy(o),p="y"===c?Fb:Jb,m="y"===c?Hb:Vb,f=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],h=a[c]-n.rects.reference[c],g=xy(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,$=f/2-h/2,b=u[p],y=v-d[l]-u[m],k=v/2-d[l]/2+$,_=Iy(b,k,y),x=c;n.modifiersData[i]=((t={})[x]=_,t.centerOffset=_-k,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&vy(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zy(e){return e.split("-")[1]}var Oy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ty(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,m=void 0===p?0:p,f=a.y,h=void 0===f?0:f,g="function"==typeof u?u({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var v=a.hasOwnProperty("x"),$=a.hasOwnProperty("y"),b=Jb,y=Fb,k=window;if(l){var _=xy(n),x="clientHeight",w="clientWidth";if(_===ry(n)&&"static"!==$y(_=yy(n)).position&&"absolute"===s&&(x="scrollHeight",w="scrollWidth"),r===Fb||(r===Jb||r===Vb)&&o===Xb)y=Hb,h-=(d&&_===k&&k.visualViewport?k.visualViewport.height:_[x])-i.height,h*=c?1:-1;if(r===Jb||(r===Fb||r===Hb)&&o===Xb)b=Vb,m-=(d&&_===k&&k.visualViewport?k.visualViewport.width:_[w])-i.width,m*=c?1:-1}var I,S=Object.assign({position:s},l&&Oy),E=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:py(n*r)/r||0,y:py(i*r)/r||0}}({x:m,y:h},ry(n)):{x:m,y:h};return m=E.x,h=E.y,c?Object.assign({},S,((I={})[y]=$?"0":"",I[b]=v?"0":"",I.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",I)):Object.assign({},S,((t={})[y]=$?h+"px":"",t[b]=v?m+"px":"",t.transform="",t))}var Uy={passive:!0};var Ry={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,c=ry(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,Uy)}),s&&c.addEventListener("resize",n.update,Uy),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,Uy)}),s&&c.removeEventListener("resize",n.update,Uy)}},data:{}},Ay={left:"right",right:"left",bottom:"top",top:"bottom"};function Py(e){return e.replace(/left|right|bottom|top/g,function(e){return Ay[e]})}var Ny={start:"end",end:"start"};function jy(e){return e.replace(/start|end/g,function(e){return Ny[e]})}function Dy(e){var t=ry(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function My(e){return hy(yy(e)).left+Dy(e).scrollLeft}function Zy(e){var t=$y(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Ly(e){return["html","body","#document"].indexOf(iy(e))>=0?e.ownerDocument.body:ay(e)&&Zy(e)?e:Ly(ky(e))}function qy(e,t){var n;void 0===t&&(t=[]);var i=Ly(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=ry(i),a=r?[o].concat(o.visualViewport||[],Zy(i)?i:[]):i,s=t.concat(a);return r?s:s.concat(qy(ky(a)))}function By(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fy(e,t,n){return t===Yb?By(function(e,t){var n=ry(e),i=yy(e),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,c=0;if(r){o=r.width,a=r.height;var l=fy();(l||!l&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:s+My(e),y:c}}(e,n)):oy(t)?function(e,t){var n=hy(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):By(function(e){var t,n=yy(e),i=Dy(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=uy(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=uy(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+My(e),c=-i.scrollTop;return"rtl"===$y(r||n).direction&&(s+=uy(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(yy(e)))}function Hy(e,t,n,i){var r="clippingParents"===t?function(e){var t=qy(ky(e)),n=["absolute","fixed"].indexOf($y(e).position)>=0&&ay(e)?xy(e):e;return oy(n)?t.filter(function(e){return oy(e)&&vy(e,n)&&"body"!==iy(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(t,n){var r=Fy(e,n,i);return t.top=uy(r.top,t.top),t.right=dy(r.right,t.right),t.bottom=dy(r.bottom,t.bottom),t.left=uy(r.left,t.left),t},Fy(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Vy(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?ly(r):null,a=r?zy(r):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case Fb:t={x:s,y:n.y-i.height};break;case Hb:t={x:s,y:n.y+n.height};break;case Vb:t={x:n.x+n.width,y:c};break;case Jb:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?wy(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case Kb:t[l]=t[l]-(n[u]/2-i[u]/2);break;case Xb:t[l]=t[l]+(n[u]/2-i[u]/2)}}return t}function Jy(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,u=void 0===l?Yb:l,d=n.elementContext,p=void 0===d?Qb:d,m=n.altBoundary,f=void 0!==m&&m,h=n.padding,g=void 0===h?0:h,v=Sy("number"!=typeof g?g:Ey(g,Gb)),$=p===Qb?"reference":Qb,b=e.rects.popper,y=e.elements[f?$:p],k=Hy(oy(y)?y:y.contextElement||yy(e.elements.popper),c,u,a),_=hy(e.elements.reference),x=Vy({reference:_,element:b,placement:r}),w=By(Object.assign({},b,x)),I=p===Qb?w:_,S={top:k.top-I.top+v.top,bottom:I.bottom-k.bottom+v.bottom,left:k.left-I.left+v.left,right:I.right-k.right+v.right},E=e.modifiersData.offset;if(p===Qb&&E){var C=E[r];Object.keys(S).forEach(function(e){var t=[Vb,Hb].indexOf(e)>=0?1:-1,n=[Fb,Hb].indexOf(e)>=0?"y":"x";S[e]+=C[n]*t})}return S}function Wy(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?ty:c,u=zy(i),d=u?s?ey:ey.filter(function(e){return zy(e)===u}):Gb,p=d.filter(function(e){return l.indexOf(e)>=0});0===p.length&&(p=d);var m=p.reduce(function(t,n){return t[n]=Jy(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[ly(n)],t},{});return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}var Gy={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,f=void 0===m||m,h=n.allowedAutoPlacements,g=t.options.placement,v=ly(g),$=c||(v===g||!f?[Py(g)]:function(e){if(ly(e)===Wb)return[];var t=Py(e);return[jy(e),t,jy(t)]}(g)),b=[g].concat($).reduce(function(e,n){return e.concat(ly(n)===Wb?Wy(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:f,allowedAutoPlacements:h}):n)},[]),y=t.rects.reference,k=t.rects.popper,_=new Map,x=!0,w=b[0],I=0;I<b.length;I++){var S=b[I],E=ly(S),C=zy(S)===Kb,z=[Fb,Hb].indexOf(E)>=0,O=z?"width":"height",T=Jy(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),U=z?C?Vb:Jb:C?Hb:Fb;y[O]>k[O]&&(U=Py(U));var R=Py(U),A=[];if(o&&A.push(T[E]<=0),s&&A.push(T[U]<=0,T[R]<=0),A.every(function(e){return e})){w=S,x=!1;break}_.set(S,A)}if(x)for(var P=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},N=f?3:1;N>0;N--){if("break"===P(N))break}t.placement!==w&&(t.modifiersData[i]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ky(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Xy(e){return[Fb,Vb,Hb,Jb].some(function(t){return e[t]>=0})}var Yy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,a=ty.reduce(function(e,n){return e[n]=function(e,t,n){var i=ly(e),r=[Jb,Fb].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[Jb,Vb].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}};var Qy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,m=void 0===p||p,f=n.tetherOffset,h=void 0===f?0:f,g=Jy(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=ly(t.placement),$=zy(t.placement),b=!$,y=wy(v),k="x"===y?"y":"x",_=t.modifiersData.popperOffsets,x=t.rects.reference,w=t.rects.popper,I="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(_){if(o){var z,O="y"===y?Fb:Jb,T="y"===y?Hb:Vb,U="y"===y?"height":"width",R=_[y],A=R+g[O],P=R-g[T],N=m?-w[U]/2:0,j=$===Kb?x[U]:w[U],D=$===Kb?-w[U]:-x[U],M=t.elements.arrow,Z=m&&M?gy(M):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=L[O],B=L[T],F=Iy(0,x[U],Z[U]),H=b?x[U]/2-N-F-q-S.mainAxis:j-F-q-S.mainAxis,V=b?-x[U]/2+N+F+B+S.mainAxis:D+F+B+S.mainAxis,J=t.elements.arrow&&xy(t.elements.arrow),W=J?"y"===y?J.clientTop||0:J.clientLeft||0:0,G=null!=(z=null==E?void 0:E[y])?z:0,K=R+V-G,X=Iy(m?dy(A,R+H-G-W):A,R,m?uy(P,K):P);_[y]=X,C[y]=X-R}if(s){var Y,Q="x"===y?Fb:Jb,ee="x"===y?Hb:Vb,te=_[k],ne="y"===k?"height":"width",ie=te+g[Q],re=te-g[ee],oe=-1!==[Fb,Jb].indexOf(v),ae=null!=(Y=null==E?void 0:E[k])?Y:0,se=oe?ie:te-x[ne]-w[ne]-ae+S.altAxis,ce=oe?te+x[ne]+w[ne]-ae-S.altAxis:re,le=m&&oe?function(e,t,n){var i=Iy(e,t,n);return i>n?n:i}(se,te,ce):Iy(m?se:ie,te,m?ce:re);_[k]=le,C[k]=le-te}t.modifiersData[i]=C}},requiresIfExists:["offset"]};function ek(e,t,n){void 0===n&&(n=!1);var i,r=ay(t),o=ay(t)&&function(e){var t=e.getBoundingClientRect(),n=py(t.width)/e.offsetWidth||1,i=py(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=yy(t),s=hy(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==iy(t)||Zy(a))&&(c=(i=t)!==ry(i)&&ay(i)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(i):Dy(i)),ay(t)?((l=hy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=My(a))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function tk(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var nk={placement:"bottom",modifiers:[],strategy:"absolute"};function ik(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function rk(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?nk:r;return function(e,t,n){void 0===n&&(n=o);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},nk,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},o,s.options,r),s.scrollParents={reference:oy(e)?qy(e):e.contextElement?qy(e.contextElement):[],popper:qy(t)};var a,l,p=function(e){var t=tk(e);return ny.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,s.options.modifiers),l=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:s,name:t,instance:u,options:i}),a=function(){};c.push(o||a)}}),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(ik(t,n)){s.rects={reference:ek(t,xy(n),"fixed"===s.options.strategy),popper:gy(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options,c=void 0===a?{}:a,d=r.name;"function"==typeof o&&(s=o({state:s,options:c,name:d,instance:u})||s)}else s.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){d(),l=!0}};if(!ik(e,t))return u;function d(){c.forEach(function(e){return e()}),c=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var ok=rk({defaultModifiers:[Ry,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Vy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,l={placement:ly(t.placement),variation:zy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ty(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ty(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},cy,Yy,Gy,Qy,Cy,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=Jy(t,{elementContext:"reference"}),s=Jy(t,{altBoundary:!0}),c=Ky(a,i),l=Ky(s,r,o),u=Xy(c),d=Xy(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ak="tippy-content",sk="tippy-arrow",ck="tippy-svg-arrow",lk={passive:!0,capture:!0},uk=function(){return document.body};function dk(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function pk(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function mk(e,t){return"function"==typeof e?e.apply(void 0,t):e}function fk(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function hk(e){return[].concat(e)}function gk(e,t){-1===e.indexOf(t)&&e.push(t)}function vk(e){return[].slice.call(e)}function $k(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function bk(){return document.createElement("div")}function yk(e){return["Element","Fragment"].some(function(t){return pk(e,t)})}function kk(e){return yk(e)?[e]:function(e){return pk(e,"NodeList")}(e)?vk(e):Array.isArray(e)?e:vk(document.querySelectorAll(e))}function _k(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function xk(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wk(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function Ik(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Sk={isTouch:!1},Ek=0;function Ck(){Sk.isTouch||(Sk.isTouch=!0,window.performance&&document.addEventListener("mousemove",zk))}function zk(){var e=performance.now();e-Ek<20&&(Sk.isTouch=!1,document.removeEventListener("mousemove",zk)),Ek=e}function Ok(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Tk=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Uk=Object.assign({appendTo:uk,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Rk=Object.keys(Uk);function Ak(e){var t=(e.plugins||[]).reduce(function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Uk[r])?i:o);return t},{});return Object.assign({},e,t)}function Pk(e,t){var n=Object.assign({},t,{content:mk(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ak(Object.assign({},Uk,{plugins:t}))):Rk).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Uk.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Nk(e,t){e.innerHTML=t}function jk(e){var t=bk();return!0===e?t.className=sk:(t.className=ck,yk(e)?t.appendChild(e):Nk(t,e)),t}function Dk(e,t){yk(t.content)?(Nk(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Nk(e,t.content):e.textContent=t.content)}function Mk(e){var t=e.firstElementChild,n=vk(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(ak)}),arrow:n.find(function(e){return e.classList.contains(sk)||e.classList.contains(ck)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Zk(e){var t=bk(),n=bk();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=bk();function r(n,i){var r=Mk(t),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Dk(a,e.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(jk(i.arrow))):o.appendChild(jk(i.arrow)):s&&o.removeChild(s)}return i.className=ak,i.setAttribute("data-state","hidden"),Dk(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}Zk.$$tippy=!0;var Lk=1,qk=[],Bk=[];function Fk(e,t){var n,i,r,o,a,s,c,l,u=Pk(e,Object.assign({},Uk,Ak($k(t)))),d=!1,p=!1,m=!1,f=!1,h=[],g=fk(J,u.interactiveDebounce),v=Lk++,$=(l=u.plugins).filter(function(e,t){return l.indexOf(e)===t}),b={id:v,reference:e,popper:bk(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:$,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(b.state.isDestroyed)return;R("onBeforeUpdate",[b,t]),H();var n=b.props,i=Pk(e,Object.assign({},n,$k(t),{ignoreAttributes:!0}));b.props=i,F(),n.interactiveDebounce!==i.interactiveDebounce&&(N(),g=fk(J,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?hk(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded");P(),U(),_&&_(n,i);b.popperInstance&&(X(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));R("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Sk.isTouch&&!b.props.touch,r=dk(b.props.duration,0,Uk.duration);if(e||t||n||i)return;if(C().hasAttribute("disabled"))return;if(R("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,E()&&(k.style.visibility="visible");U(),Z(),b.state.isMounted||(k.style.transition="none");if(E()){var o=O();_k([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!f){if(f=!0,k.offsetHeight,k.style.transition=b.props.moveTransition,E()&&b.props.animation){var t=O(),n=t.box,i=t.content;_k([n,i],r),xk([n,i],"visible")}A(),P(),gk(Bk,b),null==(e=b.popperInstance)||e.forceUpdate(),R("onMount",[b]),b.props.animation&&E()&&function(e,t){q(e,t)}(r,function(){b.state.isShown=!0,R("onShown",[b])})}},function(){var e,t=b.props.appendTo,n=C();e=b.props.interactive&&t===uk||"parent"===t?n.parentNode:mk(t,[n]);e.contains(k)||e.appendChild(k);b.state.isMounted=!0,X()}()},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=dk(b.props.duration,1,Uk.duration);if(e||t||n)return;if(R("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,f=!1,d=!1,E()&&(k.style.visibility="hidden");if(N(),L(),U(!0),E()){var r=O(),o=r.box,a=r.content;b.props.animation&&(_k([o,a],i),xk([o,a],"hidden"))}A(),P(),b.props.animation?E()&&function(e,t){q(e,function(){!b.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()})}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){z().addEventListener("mousemove",g),gk(qk,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Y(),Q().forEach(function(e){e._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k);Bk=Bk.filter(function(e){return e!==b}),b.state.isMounted=!1,R("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),H(),delete e._tippy,b.state.isDestroyed=!0,R("onDestroy",[b])}};if(!u.render)return b;var y=u.render(b),k=y.popper,_=y.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+b.id,b.popper=k,e._tippy=b,k._tippy=b;var x=$.map(function(e){return e.fn(b)}),w=e.hasAttribute("aria-expanded");return F(),P(),U(),R("onCreate",[b]),u.showOnCreate&&ee(),k.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&z().addEventListener("mousemove",g)}),b;function I(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===I()[0]}function E(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function C(){return c||e}function z(){var e=C().parentNode;return e?function(e){var t,n=hk(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}(e):document}function O(){return Mk(k)}function T(e){return b.state.isMounted&&!b.state.isVisible||Sk.isTouch||o&&"focus"===o.type?0:dk(b.props.delay,e?0:1,Uk.delay)}function U(e){void 0===e&&(e=!1),k.style.pointerEvents=b.props.interactive&&!e?"":"none",k.style.zIndex=""+b.props.zIndex}function R(e,t,n){var i;(void 0===n&&(n=!0),x.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=b.props)[e].apply(i,t)}function A(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=k.id;hk(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function P(){!w&&b.props.aria.expanded&&hk(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")})}function N(){z().removeEventListener("mousemove",g),qk=qk.filter(function(e){return e!==g})}function j(t){if(!Sk.isTouch||!m&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Ik(k,n)){if(hk(b.props.triggerTarget||e).some(function(e){return Ik(e,n)})){if(Sk.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout(function(){p=!1}),b.state.isMounted||L())}}}function D(){m=!0}function M(){m=!1}function Z(){var e=z();e.addEventListener("mousedown",j,!0),e.addEventListener("touchend",j,lk),e.addEventListener("touchstart",M,lk),e.addEventListener("touchmove",D,lk)}function L(){var e=z();e.removeEventListener("mousedown",j,!0),e.removeEventListener("touchend",j,lk),e.removeEventListener("touchstart",M,lk),e.removeEventListener("touchmove",D,lk)}function q(e,t){var n=O().box;function i(e){e.target===n&&(wk(n,"remove",i),t())}if(0===e)return t();wk(n,"remove",a),wk(n,"add",i),a=i}function B(t,n,i){void 0===i&&(i=!1),hk(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,i),h.push({node:e,eventType:t,handler:n,options:i})})}function F(){var e;S()&&(B("touchstart",V,{passive:!0}),B("touchend",W,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(B(e,V),e){case"mouseenter":B("mouseleave",W);break;case"focus":B(Tk?"focusout":"blur",G);break;case"focusin":B("focusout",G)}})}function H(){h.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),h=[]}function V(e){var t,n=!1;if(b.state.isEnabled&&!K(e)&&!p){var i="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,P(),!b.state.isVisible&&pk(e,"MouseEvent")&&qk.forEach(function(t){return t(e)}),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function J(e){var t=e.target,n=C().contains(t)||k.contains(t);if("mousemove"!==e.type||!n){var i=Q().concat(k).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-i+c>o,m=i-t.bottom-l>o,f=t.left-n+u>o,h=n-t.right-d>o;return p||m||f||h})})(i,e)&&(N(),te(e))}}function W(e){K(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==C()||b.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||te(e)}function K(e){return!!Sk.isTouch&&S()!==e.type.indexOf("touch")>=0}function X(){Y();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,c=E()?Mk(k).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||C()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(E()){var n=O().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];E()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ok(l,k,Object.assign({},n,{placement:i,onFirstUpdate:s,modifiers:d}))}function Y(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return vk(k.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&R("onTrigger",[b,e]),Z();var t=T(!0),i=I(),r=i[0],o=i[1];Sk.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),R("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=T(!1);t?i=setTimeout(function(){b.state.isVisible&&b.hide()},t):r=requestAnimationFrame(function(){b.hide()})}}else L()}}function Hk(e,t){void 0===t&&(t={});var n=Uk.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ck,lk),window.addEventListener("blur",Ok);var i=Object.assign({},t,{plugins:n}),r=kk(e).reduce(function(e,t){var n=t&&Fk(t,i);return n&&e.push(n),e},[]);return yk(e)?r[0]:r}Hk.defaultProps=Uk,Hk.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Uk[t]=e[t]})},Hk.currentInput=Sk,Object.assign({},cy,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Hk.setDefaultProps({render:Zk});const Vk=e=>({}),Jk=e=>({trigger:e[2]}),Wk=e=>({}),Gk=e=>({trigger:e[2]});function Kk(e){let t,n,i;const r=e[6].default,o=eh(r,e,e[5],Gk),a=e[6].content,s=eh(a,e,e[5],Jk),c=s||function(e){let t;return{c(){t=mh(e[0])},m(e,n){lh(e,t,n)},p(e,n){1&n&&yh(t,e[0])},d(e){e&&uh(t)}}}(e);return{c(){o&&o.c(),t=fh(),n=dh("div"),c&&c.c(),_h(n,"display","none")},m(r,a){o&&o.m(r,a),lh(r,t,a),lh(r,n,a),c&&c.m(n,null),e[7](n),i=!0},p(e,[t]){o&&o.p&&(!i||32&t)&&ih(o,r,e,e[5],i?nh(r,e[5],t,Wk):rh(e[5]),Gk),s?s.p&&(!i||32&t)&&ih(s,a,e,e[5],i?nh(a,e[5],t,Vk):rh(e[5]),Jk):c&&c.p&&(!i||1&t)&&c.p(e,i?t:-1)},i(e){i||(Vh(o,e),Vh(c,e),i=!0)},o(e){Jh(o,e),Jh(c,e),i=!1},d(i){o&&o.d(i),i&&uh(t),i&&uh(n),c&&c.d(i),e[7](null)}}}function Xk(e,t,n){const i=["text","disabled"];let r,o,a,s=oh(t,i),{$$slots:c={},$$scope:l}=t,{text:u=""}=t,{disabled:d=!1}=t;return zh(()=>{r&&(n(4,a=Hk(r,{...s,content:o})),o.style.removeProperty("display"))}),e.$$set=e=>{t=Jf(Jf({},t),function(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}(e)),n(9,s=oh(t,i)),"text"in e&&n(0,u=e.text),"disabled"in e&&n(3,d=e.disabled),"$$scope"in e&&n(5,l=e.$$scope)},e.$$.update=()=>{24&e.$$.dirty&&a&&(d?a.disable():a.enable())},[u,o,e=>{r=e},d,a,l,c,function(e){Th[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}class Yk extends eg{constructor(e){super(),Qh(this,e,Xk,Kk,Yf,{text:0,disabled:3})}}function Qk(e){ch(e,"svelte-wb18kg","svg.svelte-wb18kg{opacity:var(--tooltip-opacity, 1);color:var(--text-color)}")}function e_(e){let t,n,i,r;return{c(){t=ph("svg"),n=ph("path"),vh(n,"fill","currentColor"),vh(n,"d","M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"),vh(t,"class","tooltip svelte-wb18kg"),_h(t,"width","1rem"),_h(t,"height","1rem"),vh(t,"viewBox","0 0 24 24")},m(o,a){lh(o,t,a),sh(t,n),i||(r=ah(e[9].call(null,t)),i=!0)},p:Vf,d(e){e&&uh(t),i=!1,r()}}}function t_(e){let t,n,i,r;return{c(){t=dh("br"),n=fh(),i=dh("a"),r=mh("Read more."),vh(i,"href",e[0]),vh(i,"target",e[3]?void 0:"_blank"),vh(i,"rel",e[3]?void 0:"noopener noreferrer")},m(e,o){lh(e,t,o),lh(e,n,o),lh(e,i,o),sh(i,r)},p(e,t){1&t&&vh(i,"href",e[0])},d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function n_(e){let t,n,i;const r=e[6].default,o=eh(r,e,e[7],null);let a=e[2]&&t_(e);return{c(){t=dh("div"),o&&o.c(),n=fh(),a&&a.c(),vh(t,"slot","content")},m(e,r){lh(e,t,r),o&&o.m(t,null),sh(t,n),a&&a.m(t,null),i=!0},p(e,n){o&&o.p&&(!i||128&n)&&ih(o,r,e,e[7],i?nh(r,e[7],n,null):rh(e[7]),null),e[2]?a?a.p(e,n):(a=t_(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},i(e){i||(Vh(o,e),i=!0)},o(e){Jh(o,e),i=!1},d(e){e&&uh(t),o&&o.d(e),a&&a.d()}}}function i_(e){let t,n;return t=new Yk({props:{interactive:!0,placement:e[1],theme:"light border",maxWidth:"22em",$$slots:{content:[n_,({trigger:e})=>({9:e}),({trigger:e})=>e?512:0],default:[e_,({trigger:e})=>({9:e}),({trigger:e})=>e?512:0]},$$scope:{ctx:e}}}),{c(){Gh(t.$$.fragment)},m(e,i){Kh(t,e,i),n=!0},p(e,[n]){const i={};2&n&&(i.placement=e[1]),133&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(Vh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Xh(t,e)}}}function r_(e,t,n){let i,r,{$$slots:o={},$$scope:a}=t,{link:s}=t,{placement:c="right"}=t;const l=(u=lg,Ch().$$.context.get(u));var u;const d=null!=l,p=l??function(e,t){return{subscribe:ng(e,t).subscribe}}({canOpen:!1});return Qf(e,p,e=>n(5,r=e)),e.$$set=e=>{"link"in e&&n(0,s=e.link),"placement"in e&&n(1,c=e.placement),"$$scope"in e&&n(7,a=e.$$scope)},e.$$.update=()=>{33&e.$$.dirty&&n(2,i=null!=s&&(!d||r.canOpen))},[s,c,i,d,p,r,o,a]}class o_ extends eg{constructor(e){super(),Qh(this,e,r_,i_,Yf,{link:0,placement:1},Qk)}}function a_(e){let t,n,i;return{c(){t=dh("input"),vh(t,"type","checkbox"),t.disabled=e[1]},m(r,o){lh(r,t,o),t.checked=e[0],n||(i=gh(t,"change",e[6]),n=!0)},p(e,[n]){2&n&&(t.disabled=e[1]),1&n&&(t.checked=e[0])},i:Vf,o:Vf,d(e){e&&uh(t),n=!1,i()}}}function s_(e,t,n){let{value:i=!1}=t,{checked:r=!1!==i}=t,{defaultValue:o}=t,{disabled:a}=t,s=r,c=i||o;return e.$$set=e=>{"value"in e&&n(2,i=e.value),"checked"in e&&n(0,r=e.checked),"defaultValue"in e&&n(3,o=e.defaultValue),"disabled"in e&&n(1,a=e.disabled)},e.$$.update=()=>{53&e.$$.dirty&&(s?r?!1===i&&n(0,r=!1):n(2,i=!1):r?n(2,i=c):!1!==i&&n(0,r=!0),n(4,s=r),n(5,c=i||c))},[r,a,i,o,s,c,function(){r=this.checked,n(0,r),n(4,s),n(5,c),n(2,i)}]}class c_ extends eg{constructor(e){super(),Qh(this,e,s_,a_,Yf,{value:2,checked:0,defaultValue:3,disabled:1})}}function l_(e){let t,n;return{c(){t=ph("svg"),n=ph("path"),vh(n,"d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"),vh(t,"class","keepcolor"),vh(t,"width","9"),vh(t,"height","9"),vh(t,"xmlns","http://www.w3.org/2000/svg"),vh(t,"viewBox","0 0 320 512")},m(e,i){lh(e,t,i),sh(t,n)},p:Vf,i:Vf,o:Vf,d(e){e&&uh(t)}}}class u_ extends eg{constructor(e){super(),Qh(this,e,null,l_,Yf,{})}}function d_(e){let t,n;return{c(){t=ph("svg"),n=ph("path"),vh(n,"d","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"),vh(t,"class","keepcolor"),vh(t,"width","9"),vh(t,"height","9"),vh(t,"xmlns","http://www.w3.org/2000/svg"),vh(t,"viewBox","0 0 512 512")},m(e,i){lh(e,t,i),sh(t,n)},p:Vf,i:Vf,o:Vf,d(e){e&&uh(t)}}}class p_ extends eg{constructor(e){super(),Qh(this,e,null,d_,Yf,{})}}function m_(e){let t,n,i,r;const o=[h_,f_],a=[];function s(e,t){return"checkbox"===e[3]?0:"toggleradio"===e[3]?1:-1}return~(n=s(e))&&(i=a[n]=o[n](e)),{c(){t=dh("span"),i&&i.c(),vh(t,"class","mr-2")},m(e,i){lh(e,t,i),~n&&a[n].m(t,null),r=!0},p(e,r){let c=n;n=s(e),n===c?~n&&a[n].p(e,r):(i&&(Fh(),Jh(a[c],1,1,()=>{a[c]=null}),Hh()),~n?(i=a[n],i?i.p(e,r):(i=a[n]=o[n](e),i.c()),Vh(i,1),i.m(t,null)):i=null)},i(e){r||(Vh(i),r=!0)},o(e){Jh(i),r=!1},d(e){e&&uh(t),~n&&a[n].d()}}}function f_(e){let t,n,i;function r(t){e[19](t)}let o={defaultValue:e[4],disabled:e[7]||e[9]};return void 0!==e[1]&&(o.value=e[1]),t=new c_({props:o}),Th.push(()=>Wh(t,"value",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,i){const r={};16&i&&(r.defaultValue=e[4]),640&i&&(r.disabled=e[7]||e[9]),!n&&2&i&&(n=!0,r.value=e[1],jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function h_(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"type","checkbox"),t.disabled=n=e[7]||e[9]},m(n,o){lh(n,t,o),t.checked=e[0],i||(r=gh(t,"change",e[18]),i=!0)},p(e,i){640&i&&n!==(n=e[7]||e[9])&&(t.disabled=n),1&i&&(t.checked=e[0])},i:Vf,o:Vf,d(e){e&&uh(t),i=!1,r()}}}function g_(e){let t,n;return t=new u_({}),{c(){Gh(t.$$.fragment)},m(e,i){Kh(t,e,i),n=!0},i(e){n||(Vh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Xh(t,e)}}}function v_(e){let t,n;return t=new p_({}),{c(){Gh(t.$$.fragment)},m(e,i){Kh(t,e,i),n=!0},i(e){n||(Vh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Xh(t,e)}}}function $_(e){let t,n;return{c(){t=new wh(!1),n=hh(),t.a=n},m(i,r){t.m(e[5],i,r),lh(i,n,r)},p(e,n){32&n&&t.p(e[5])},d(e){e&&uh(n),e&&t.d()}}}function b_(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S="section"!==e[3]&&m_(e);const E=[v_,g_],C=[];function z(e,t){return e[10]?0:1}d=z(e),p=C[d]=E[d](e),h=new o_({props:{link:e[6],$$slots:{default:[$_]},$$scope:{ctx:e}}});const O=e[17].default,T=eh(O,e,e[20],null);return{c(){t=dh("section"),n=dh("h1"),i=dh("label"),r=dh("div"),S&&S.c(),o=fh(),a=dh("span"),s=mh(e[2]),c=fh(),l=dh("div"),u=dh("button"),p.c(),f=fh(),Gh(h.$$.fragment),g=fh(),v=dh("div"),$=dh("span"),y=fh(),k=dh("div"),T&&T.c(),vh(r,"class","flex items-center"),vh(u,"class","px-1 bg-transparent border-0 mr-2"),vh(u,"aria-label",m=e[10]?"Collapse section":"Expand section"),vh(l,"class","flex items-center"),vh(i,"class","items-center tooltip-container pr-2 flex justify-between"),vh($,"class","italic"),vh(v,"class","text-sm text-gray-500"),v.hidden=b=!e[7]||void 0===e[8],k.hidden=_=!e[10],vh(t,"class","controls-section")},m(p,m){var b;lh(p,t,m),sh(t,n),sh(n,i),sh(i,r),S&&S.m(r,null),sh(r,o),sh(r,a),sh(a,s),sh(i,c),sh(i,l),sh(l,u),C[d].m(u,null),sh(l,f),Kh(h,l,null),sh(t,g),sh(t,v),sh(v,$),$.innerHTML=e[8],sh(t,y),sh(t,k),T&&T.m(k,null),x=!0,w||(I=gh(u,"click",(b=e[11],function(e){return e.preventDefault(),b.call(this,e)})),w=!0)},p(e,[t]){"section"!==e[3]?S?(S.p(e,t),8&t&&Vh(S,1)):(S=m_(e),S.c(),Vh(S,1),S.m(r,o)):S&&(Fh(),Jh(S,1,1,()=>{S=null}),Hh()),(!x||4&t)&&yh(s,e[2]);let n=d;d=z(e),d!==n&&(Fh(),Jh(C[n],1,1,()=>{C[n]=null}),Hh(),p=C[d],p||(p=C[d]=E[d](e),p.c()),Vh(p,1),p.m(u,null)),(!x||1024&t&&m!==(m=e[10]?"Collapse section":"Expand section"))&&vh(u,"aria-label",m);const i={};64&t&&(i.link=e[6]),1048608&t&&(i.$$scope={dirty:t,ctx:e}),h.$set(i),(!x||256&t)&&($.innerHTML=e[8]),(!x||384&t&&b!==(b=!e[7]||void 0===e[8]))&&(v.hidden=b),T&&T.p&&(!x||1048576&t)&&ih(T,O,e,e[20],x?nh(O,e[20],t,null):rh(e[20]),null),(!x||1024&t&&_!==(_=!e[10]))&&(k.hidden=_)},i(e){x||(Vh(S),Vh(p),Vh(h.$$.fragment,e),Vh(T,e),x=!0)},o(e){Jh(S),Jh(p),Jh(h.$$.fragment,e),Jh(T,e),x=!1},d(e){e&&uh(t),S&&S.d(),C[d].d(),Xh(h),T&&T.d(e),w=!1,I()}}}function y_(e,t,n){let i,r,{$$slots:o={},$$scope:a}=t,{label:s}=t,{type:c}=t,{checkboxChecked:l}=t,{toggleRadioValue:u}=t,{toggleRadioDefaultValue:d}=t,{helpContent:p}=t,{helpLink:m}=t,{disabled:f}=t,{disabledReason:h}=t,{required:g}=t,{error:v}=t,$=!1,b=g,y=r;return e.$$set=e=>{"label"in e&&n(2,s=e.label),"type"in e&&n(3,c=e.type),"checkboxChecked"in e&&n(0,l=e.checkboxChecked),"toggleRadioValue"in e&&n(1,u=e.toggleRadioValue),"toggleRadioDefaultValue"in e&&n(4,d=e.toggleRadioDefaultValue),"helpContent"in e&&n(5,p=e.helpContent),"helpLink"in e&&n(6,m=e.helpLink),"disabled"in e&&n(7,f=e.disabled),"disabledReason"in e&&n(8,h=e.disabledReason),"required"in e&&n(9,g=e.required),"error"in e&&n(12,v=e.error),"$$scope"in e&&n(20,a=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&n(16,i=void 0!==v),3&e.$$.dirty&&n(15,r=!(!l&&!u)),123392&e.$$.dirty&&((i||!y&&r||!b&&g)&&n(10,$=!0),n(13,b=g),n(14,y=r))},[l,u,s,c,d,p,m,f,h,g,$,function(){n(10,$=!$||i)},v,b,y,r,i,o,function(){l=this.checked,n(0,l)},function(e){u=e,n(1,u)},a]}class k_ extends eg{constructor(e){super(),Qh(this,e,y_,b_,Yf,{label:2,type:3,checkboxChecked:0,toggleRadioValue:1,toggleRadioDefaultValue:4,helpContent:5,helpLink:6,disabled:7,disabledReason:8,required:9,error:12})}}function __(e){let t;const n=e[9].default,i=eh(n,e,e[11],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||2048&r)&&ih(i,n,e,e[11],t?nh(n,e[11],r,null):rh(e[11]),null)},i(e){t||(Vh(i,e),t=!0)},o(e){Jh(i,e),t=!1},d(e){i&&i.d(e)}}}function x_(e){let t,n,i;function r(t){e[10](t)}let o={type:"toggleradio",label:e[1],toggleRadioDefaultValue:e[2],helpContent:e[3],helpLink:e[4],disabled:e[5],disabledReason:e[6],required:e[7],error:e[8],$$slots:{default:[__]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.toggleRadioValue=e[0]),t=new k_({props:o}),Th.push(()=>Wh(t,"toggleRadioValue",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,[i]){const r={};2&i&&(r.label=e[1]),4&i&&(r.toggleRadioDefaultValue=e[2]),8&i&&(r.helpContent=e[3]),16&i&&(r.helpLink=e[4]),32&i&&(r.disabled=e[5]),64&i&&(r.disabledReason=e[6]),128&i&&(r.required=e[7]),256&i&&(r.error=e[8]),2048&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.toggleRadioValue=e[0],jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function w_(e,t,n){let{$$slots:i={},$$scope:r}=t,{label:o}=t,{value:a}=t,{defaultValue:s}=t,{helpContent:c}=t,{helpLink:l}=t,{disabled:u=!1}=t,{disabledReason:d}=t,{required:p=!1}=t,{error:m}=t;return e.$$set=e=>{"label"in e&&n(1,o=e.label),"value"in e&&n(0,a=e.value),"defaultValue"in e&&n(2,s=e.defaultValue),"helpContent"in e&&n(3,c=e.helpContent),"helpLink"in e&&n(4,l=e.helpLink),"disabled"in e&&n(5,u=e.disabled),"disabledReason"in e&&n(6,d=e.disabledReason),"required"in e&&n(7,p=e.required),"error"in e&&n(8,m=e.error),"$$scope"in e&&n(11,r=e.$$scope)},[a,o,s,c,l,u,d,p,m,i,function(e){a=e,n(0,a)},r]}class I_ extends eg{constructor(e){super(),Qh(this,e,w_,x_,Yf,{label:1,value:0,defaultValue:2,helpContent:3,helpLink:4,disabled:5,disabledReason:6,required:7,error:8})}}function S_(e){let t;return{c(){t=mh("Simple mechanism with a single account authorized for all privileged actions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function E_(e){let t;return{c(){t=mh("Flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function C_(e){let t;return{c(){t=mh("Enables a central contract to define a policy that allows certain callers to access certain functions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function z_(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/access#Ownable",$$slots:{default:[S_]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/access#AccessControl",$$slots:{default:[E_]},$$scope:{ctx:e}}}),h=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/access#AccessManaged",$$slots:{default:[C_]},$$scope:{ctx:e}}}),v=$h(e[6][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Ownable\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Roles\n "),Gh(u.$$.fragment),d=fh(),p=dh("label"),m=dh("input"),f=mh("\n Managed\n "),Gh(h.$$.fragment),vh(i,"type","radio"),i.__value="ownable",i.value=i.__value,xh(n,"checked","ownable"===e[0]),vh(c,"type","radio"),c.__value="roles",c.value=c.__value,xh(s,"checked","roles"===e[0]),vh(m,"type","radio"),m.__value="managed",m.value=m.__value,xh(p,"checked","managed"===e[0]),vh(t,"class","checkbox-group"),v.p(i,c,m)},m(v,y){lh(v,t,y),sh(t,n),sh(n,i),i.checked=i.__value===e[0],sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0],sh(s,l),Kh(u,s,null),sh(t,d),sh(t,p),sh(p,m),m.checked=m.__value===e[0],sh(p,f),Kh(h,p,null),g=!0,$||(b=[gh(i,"change",e[5]),gh(c,"change",e[7]),gh(m,"change",e[8])],$=!0)},p(e,t){1&t&&(i.checked=i.__value===e[0]);const r={};1024&t&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!g||1&t)&&xh(n,"checked","ownable"===e[0]),1&t&&(c.checked=c.__value===e[0]);const a={};1024&t&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!g||1&t)&&xh(s,"checked","roles"===e[0]),1&t&&(m.checked=m.__value===e[0]);const l={};1024&t&&(l.$$scope={dirty:t,ctx:e}),h.$set(l),(!g||1&t)&&xh(p,"checked","managed"===e[0])},i(e){g||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),Vh(h.$$.fragment,e),g=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),Jh(h.$$.fragment,e),g=!1},d(e){e&&uh(t),Xh(o),Xh(u),Xh(h),v.r(),$=!1,Kf(b)}}}function O_(e){let t,n,i;function r(t){e[9](t)}let o={label:"Access Control",defaultValue:"ownable",helpContent:"Restrict who can access the functions of a contract or when they can do it.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/access",required:e[1],$$slots:{default:[z_]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.value=e[0]),t=new I_({props:o}),Th.push(()=>Wh(t,"value",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,[i]){const r={};2&i&&(r.required=e[1]),1025&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.value=e[0],jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function T_(e,t,n){let{access:i}=t,{required:r}=t,o="ownable",a=r,s=i;return e.$$set=e=>{"access"in e&&n(0,i=e.access),"required"in e&&n(1,r=e.required)},e.$$.update=()=>{31&e.$$.dirty&&(a&&!r?n(0,i=s):(n(4,s=i),!1===i&&r&&n(0,i=o)),n(3,a=r),!1!==i&&n(2,o=i))},[i,r,o,a,s,function(){i=this.__value,n(0,i),n(3,a),n(1,r),n(4,s),n(2,o)},[[]],function(){i=this.__value,n(0,i),n(3,a),n(1,r),n(4,s),n(2,o)},function(){i=this.__value,n(0,i),n(3,a),n(1,r),n(4,s),n(2,o)},function(e){i=e,n(0,i),n(3,a),n(1,r),n(4,s),n(2,o)}]}class U_ extends eg{constructor(e){super(),Qh(this,e,T_,O_,Yf,{access:0,required:1})}}const R_="has-error";function A_(e,t){const n=Hk(e,{placement:"right",theme:"light-red border",trigger:"manual",hideOnClick:!1,interactive:!0});function i(t){t?(n.setContent(t),n.show(),e.classList.add(R_)):(n.hide(),e.classList.remove(R_))}return i(t),{update:i,destroy:n.destroy}}function P_(e){let t;return{c(){t=mh("Uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with\n beacons.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function N_(e){let t;return{c(){t=mh("Uses simpler proxy with less overhead, requires including extra code in your contract. Allows flexibility for\n authorizing upgrades.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function j_(e){let t,n,i,r,o,a,s,c,l,u,d,p;return a=new o_({props:{link:"https://docs.openzeppelin.com/upgrades-plugins/writing-upgradeable#namespaced-storage-layout",$$slots:{default:[D_]},$$scope:{ctx:e}}}),{c(){t=dh("div"),n=fh(),i=dh("label"),r=dh("span"),o=mh("Namespace Prefix\n "),Gh(a.$$.fragment),s=fh(),c=dh("input"),_h(t,"height","0.5rem"),vh(r,"class","flex justify-between pr-2"),vh(i,"class","labeled-input")},m(m,f){lh(m,t,f),lh(m,n,f),lh(m,i,f),sh(i,r),sh(r,o),Kh(a,r,null),sh(i,s),sh(i,c),kh(c,e[1]),u=!0,d||(p=[gh(c,"input",e[11]),ah(l=A_.call(null,c,e[5]?.namespacePrefix))],d=!0)},p(e,t){const n={};16384&t&&(n.$$scope={dirty:t,ctx:e}),a.$set(n),2&t&&c.value!==e[1]&&kh(c,e[1]),l&&Xf(l.update)&&32&t&&l.update.call(null,e[5]?.namespacePrefix)},i(e){u||(Vh(a.$$.fragment,e),u=!0)},o(e){Jh(a.$$.fragment,e),u=!1},d(e){e&&uh(t),e&&uh(n),e&&uh(i),Xh(a),d=!1,Kf(p)}}}function D_(e){let t;return{c(){t=mh("Prefix for ERC-7201 namespace identifiers. Should be derived from your project name or a unique naming\n convention specific to your project.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function M_(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g;o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/proxy#TransparentUpgradeableProxy",$$slots:{default:[P_]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/proxy#UUPSUpgradeable",$$slots:{default:[N_]},$$scope:{ctx:e}}});let v=e[4]&&j_(e);return f=$h(e[9][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Transparent\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n UUPS\n "),Gh(u.$$.fragment),d=fh(),v&&v.c(),p=hh(),vh(i,"type","radio"),i.__value="transparent",i.value=i.__value,i.disabled=e[2],xh(n,"checked","transparent"===e[0]),vh(c,"type","radio"),c.__value="uups",c.value=c.__value,c.disabled=e[2],xh(s,"checked","uups"===e[0]),vh(t,"class","checkbox-group"),f.p(i,c)},m(f,$){lh(f,t,$),sh(t,n),sh(n,i),i.checked=i.__value===e[0],sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0],sh(s,l),Kh(u,s,null),lh(f,d,$),v&&v.m(f,$),lh(f,p,$),m=!0,h||(g=[gh(i,"change",e[8]),gh(c,"change",e[10])],h=!0)},p(e,t){(!m||4&t)&&(i.disabled=e[2]),1&t&&(i.checked=i.__value===e[0]);const r={};16384&t&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!m||1&t)&&xh(n,"checked","transparent"===e[0]),(!m||4&t)&&(c.disabled=e[2]),1&t&&(c.checked=c.__value===e[0]);const a={};16384&t&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!m||1&t)&&xh(s,"checked","uups"===e[0]),e[4]?v?(v.p(e,t),16&t&&Vh(v,1)):(v=j_(e),v.c(),Vh(v,1),v.m(p.parentNode,p)):v&&(Fh(),Jh(v,1,1,()=>{v=null}),Hh())},i(e){m||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),Vh(v),m=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),Jh(v),m=!1},d(e){e&&uh(t),Xh(o),Xh(u),e&&uh(d),v&&v.d(e),e&&uh(p),f.r(),h=!1,Kf(g)}}}function Z_(e){let t,n,i;function r(t){e[12](t)}let o={label:"Upgradeability",disabled:e[2],disabledReason:e[3],defaultValue:"transparent",helpContent:"Smart contracts are immutable by default unless deployed behind an upgradeable proxy.",helpLink:"https://docs.openzeppelin.com/openzeppelin/upgrades",$$slots:{default:[M_]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.value=e[0]),t=new I_({props:o}),Th.push(()=>Wh(t,"value",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,[i]){const r={};4&i&&(r.disabled=e[2]),8&i&&(r.disabledReason=e[3]),16439&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.value=e[0],jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function L_(e,t,n){let{upgradeable:i}=t,{disabled:r=!1}=t,{disabledReason:o}=t,{namespaceRequired:a=!1}=t,{namespacePrefix:s}=t,{errors:c}=t,l=r,u=i;return e.$$set=e=>{"upgradeable"in e&&n(0,i=e.upgradeable),"disabled"in e&&n(2,r=e.disabled),"disabledReason"in e&&n(3,o=e.disabledReason),"namespaceRequired"in e&&n(4,a=e.namespaceRequired),"namespacePrefix"in e&&n(1,s=e.namespacePrefix),"errors"in e&&n(5,c=e.errors)},e.$$.update=()=>{197&e.$$.dirty&&(l&&!r?n(0,i=u):(n(7,u=i),!1!==i&&r&&n(0,i=!1)),n(6,l=r))},[i,s,r,o,a,c,l,u,function(){i=this.__value,n(0,i),n(6,l),n(2,r),n(7,u)},[[]],function(){i=this.__value,n(0,i),n(6,l),n(2,r),n(7,u)},function(){s=this.value,n(1,s)},function(e){i=e,n(0,i),n(6,l),n(2,r),n(7,u)}]}class q_ extends eg{constructor(e){super(),Qh(this,e,L_,Z_,Yf,{upgradeable:0,disabled:2,disabledReason:3,namespaceRequired:4,namespacePrefix:1,errors:5})}}function B_(e){let t;return{c(){t=mh("Where people can contact you to report security issues. Will only be visible if contract metadata is verified.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function F_(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b;return s=new o_({props:{link:"https://github.com/ethereum-lists/contracts/blob/main/README.md#tracking-new-deployments",$$slots:{default:[B_]},$$scope:{ctx:e}}}),{c(){t=dh("section"),n=dh("h1"),n.innerHTML='<label class="flex items-center tooltip-container pr-2"><span>Info</span></label>',i=fh(),r=dh("label"),o=dh("span"),a=mh("Security Contact\n "),Gh(s.$$.fragment),c=fh(),l=dh("input"),d=fh(),p=dh("label"),m=dh("span"),m.textContent="License",f=fh(),h=dh("input"),vh(o,"class","flex justify-between pr-2"),vh(l,"placeholder","security@example.com"),vh(r,"class","labeled-input"),vh(h,"placeholder",Jg.license),vh(p,"class","labeled-input"),vh(t,"class","controls-section")},m(y,k){lh(y,t,k),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),Kh(s,o,null),sh(r,c),sh(r,l),kh(l,e[0].securityContact),sh(t,d),sh(t,p),sh(p,m),sh(p,f),sh(p,h),kh(h,e[0].license),v=!0,$||(b=[gh(l,"input",e[2]),ah(u=A_.call(null,l,e[1]?.securityContact)),gh(h,"input",e[3]),ah(g=A_.call(null,h,e[1]?.license))],$=!0)},p(e,[t]){const n={};16&t&&(n.$$scope={dirty:t,ctx:e}),s.$set(n),1&t&&l.value!==e[0].securityContact&&kh(l,e[0].securityContact),u&&Xf(u.update)&&2&t&&u.update.call(null,e[1]?.securityContact),1&t&&h.value!==e[0].license&&kh(h,e[0].license),g&&Xf(g.update)&&2&t&&g.update.call(null,e[1]?.license)},i(e){v||(Vh(s.$$.fragment,e),v=!0)},o(e){Jh(s.$$.fragment,e),v=!1},d(e){e&&uh(t),Xh(s),$=!1,Kf(b)}}}function H_(e,t,n){let{info:i}=t,{errors:r}=t;return e.$$set=e=>{"info"in e&&n(0,i=e.info),"errors"in e&&n(1,r=e.errors)},[i,r,function(){i.securityContact=this.value,n(0,i)},function(){i.license=this.value,n(0,i)}]}class V_ extends eg{constructor(e){super(),Qh(this,e,H_,F_,Yf,{info:0,errors:1})}}function J_(e){let t,n,i,r,o,a;return{c(){t=ph("svg"),n=ph("defs"),i=ph("style"),r=mh(".cls-1 {\n fill: #ff0420;\n }\n\n .cls-2 {\n fill: #fff;\n }"),o=ph("circle"),a=ph("path"),vh(o,"class","cls-1"),vh(o,"cx","24"),vh(o,"cy","24"),vh(o,"r","24"),vh(a,"class","cls-2"),vh(a,"d","M17.0048009,30.3787877c-1.4290301,0-2.5999093-.336227-3.5125497-1.0087298-.9006627-.6844814-1.350994-1.6571899-1.350994-2.9181257,0-.2641828.0299883-.5884347.0900574-.9727086.156114-.8646415.3782854-1.9034058.6664682-3.1162981.8165946-3.3024449,2.9241603-4.9536447,6.3226519-4.9536447.9247088,0,1.7532802.156114,2.4858503.4683419.7325265.3002058,1.3089373.7565255,1.7292358,1.3690063.4203421.6004569.6304914,1.3209595.6304914,2.1616002,0,.2521589-.0300345.5704224-.0900582.9546962-.1801601,1.0687552-.396296,2.1075195-.648502,3.1162981-.4202968,1.6452114-1.1468349,2.8761143-2.1796125,3.6927072-1.0327305.8045724-2.4137591,1.2068569-4.1430385,1.2068569ZM17.2570051,27.7849139c.6725028,0,1.2429269-.1981707,1.7112688-.5944685.4803205-.3962507.822583-1.002696,1.0267439-1.8193377.276205-1.1288225.4863543-2.1135533.6304443-2.9541469.0480469-.252206.0720459-.5104004.0720459-.7745832,0-1.0927996-.570377-1.6391776-1.7112217-1.6391776-.6725028,0-1.2489153.1981253-1.7292812.5944231-.4683419.396296-.804616,1.0027431-1.0087315,1.8193377-.2161813.8045707-.432319,1.7893014-.648502,2.9541469-.0480451.2401838-.0720459.4923898-.0720459.7565726,0,1.1048218.5764108,1.6572335,1.7292794,1.6572335ZM24.8930751,30.1986747c-.132115,0-.2341954-.0420131-.3062413-.1260812-.060022-.0960903-.0780343-.2041609-.0540336-.3242501l2.4858503-11.7086182c.0240008-.1320679.0900582-.2401821.1981271-.3242501.1080688-.0840227.2221715-.1260812.3422625-.1260812h4.7914969c1.3329834,0,2.4017822.2762068,3.2063546.8286168.8165946.5524118,1.2249128,1.3509957,1.2249128,2.3957502,0,.3002511-.0360212.6124791-.1080671.9366856-.3002058,1.3810285-.9066511,2.4017822-1.8193359,3.0622628-.9006627.6604789-2.1376011.9907192-3.7107213.9907192h-2.4318168l-.8286185,3.9449149c-.023999.132115-.0900565.2401821-.1981253.3242501s-.2221715.1260812-.3422625.1260812h-2.449782ZM31.2697614,23.3176235c.5043631,0,.9426723-.1381034,1.3149693-.4143084.3842739-.2762068.6364816-.6725028.7565709-1.1888916.0360247-.2041155.0540353-.3842756.0540353-.5403896,0-.3482509-.1020787-.6124337-.3062395-.7925938-.2041609-.1921369-.55241-.2881836-1.0447545-.2881836h-2.1616002l-.684525,3.224367h2.0715437Z"),vh(t,"id","Icon"),vh(t,"xmlns","http://www.w3.org/2000/svg"),vh(t,"viewBox","0 0 48 48"),vh(t,"width","24"),vh(t,"height","24")},m(e,s){lh(e,t,s),sh(t,n),sh(n,i),sh(i,r),sh(t,o),sh(t,a)},p:Vf,i:Vf,o:Vf,d(e){e&&uh(t)}}}class W_ extends eg{constructor(e){super(),Qh(this,e,null,J_,Yf,{})}}function G_(e){const t=()=>{if(""===e.value)return;const t=window.getComputedStyle(e),n=K_(e.value,t),i=`calc(5px + max(${K_(e.placeholder,t)}, ${n}) + ${["padding-left","padding-right","border-left-width","border-right-width"].map(e=>t.getPropertyValue(e)).join(" + ")})`;e.style.setProperty("width",i)};t(),e.addEventListener("input",t)}function K_(e,t){const n=["font-size","font-family"].map(e=>t.getPropertyValue(e)).join(" "),i=document.createElement("canvas").getContext("2d");return i.font=n,i.measureText(e).width+"px"}function X_(e){return{content:e,trigger:"manual",placement:"bottom",maxWidth:"22em",allowHTML:!0,interactive:!0}}const Y_=X_('<strong>Important:</strong> Only available on chains in the Superchain. Requires deploying your contract to the same address on every chain in the Superchain. <a class="light-link" href="https://docs.optimism.io/stack/interop/superchain-erc20#requirements" target="_blank" rel="noopener noreferrer">Read more.</a>');function Q_(e){let t;return{c(){t=mh("The number of decimals used to represent token amounts. Defaults to 18.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ex(e){let t;return{c(){t=mh("Create an initial amount of tokens for the deployer.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function tx(e){let t,n,i,r,o,a,s,c,l,u;return s=new o_({props:{$$slots:{default:[nx]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=mh(" Chain ID:\n "),r=dh("input"),a=fh(),Gh(s.$$.fragment),vh(r,"type","number"),vh(r,"placeholder",""),vh(r,"pattern",N$.source),vh(r,"class","input-inline"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(d,p){lh(d,t,p),sh(t,n),sh(n,i),sh(n,r),kh(r,e[0].premintChainId),sh(t,a),Kh(s,t,null),c=!0,l||(u=[gh(r,"input",e[13]),ah(G_.call(null,r)),ah(o=A_.call(null,r,e[2]?.premintChainId))],l=!0)},p(e,t){1&t[0]&&bh(r.value)!==e[0].premintChainId&&kh(r,e[0].premintChainId),o&&Xf(o.update)&&4&t[0]&&o.update.call(null,e[2]?.premintChainId);const n={};8&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){c||(Vh(s.$$.fragment,e),c=!0)},o(e){Jh(s.$$.fragment,e),c=!1},d(e){e&&uh(t),Xh(s),l=!1,Kf(u)}}}function nx(e){let t;return{c(){t=mh("Chain ID of the network on which to premint tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ix(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function rx(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ox(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function ax(e){let t;return{c(){t=mh("Supports code execution after transfers and approvals on recipient contracts in a single transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function sx(e){let t;return{c(){t=mh("Without paying gas, token holders will be able to allow third parties to transfer from their account.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function cx(e){let t;return{c(){t=mh("Built-in flash loans. Lend tokens without requiring collateral as long as they're returned in the same\n transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function lx(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ux(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function dx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[lx]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[ux]},$$scope:{ctx:e}}}),p=$h(e[21][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[20]),gh(c,"change",e[22])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};8&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};8&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function px(e){let t;return{c(){t=mh("Uses custom bridge contract(s) as authorized token bridge(s).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function mx(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function fx(e){let t,n,i,r,o,a,s,c,l;return a=new o_({props:{$$slots:{default:[hx]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Gh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Kh(a,t,null),s=!0,c||(l=gh(i,"change",e[26]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};8&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Vh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Xh(a),c=!1,l()}}}function hx(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function gx(e){let t,n,i,r,o,a,s,c,l,u;return r=new W_({}),a=new o_({props:{link:"https://docs.optimism.io/stack/interop/superchain-erc20",$$slots:{default:[vx]},$$scope:{ctx:e}}}),c=$h(e[21][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n SuperchainERC20 "),Gh(r.$$.fragment),o=fh(),Gh(a.$$.fragment),vh(n,"type","radio"),n.__value="superchain",n.value=n.__value,xh(t,"checked","superchain"===e[0].crossChainBridging),c.p(n)},m(c,d){lh(c,t,d),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Kh(r,t,null),sh(t,o),Kh(a,t,null),e[28](t),s=!0,l||(u=gh(n,"change",e[27]),l=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const r={};8&i[1]&&(r.$$scope={dirty:i,ctx:e}),a.$set(r),(!s||1&i[0])&&xh(t,"checked","superchain"===e[0].crossChainBridging)},i(e){s||(Vh(r.$$.fragment,e),Vh(a.$$.fragment,e),s=!0)},o(e){Jh(r.$$.fragment,e),Jh(a.$$.fragment,e),s=!1},d(n){n&&uh(t),Xh(r),Xh(a),e[28](null),c.r(),l=!1,u()}}}function vx(e){let t,n,i;return{c(){t=mh("Uses the predeployed "),n=dh("code"),n.textContent="SuperchainTokenBridge",i=mh(" contract as the authorized token bridge. Only available\n on chains in the Superchain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function $x(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v=!e[1]?.includes("superchain");o=new o_({props:{$$slots:{default:[px]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Crosschain",$$slots:{default:[mx]},$$scope:{ctx:e}}});let $=e[5]&&fx(e),b=v&&gx(e);return f=$h(e[21][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Custom\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n ERC-7786 Native\n "),Gh(u.$$.fragment),d=fh(),$&&$.c(),p=fh(),b&&b.c(),vh(i,"type","radio"),i.__value="custom",i.value=i.__value,xh(n,"checked","custom"===e[0].crossChainBridging),vh(c,"type","radio"),c.__value="erc7786native",c.value=c.__value,xh(s,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),f.p(i,c)},m(f,v){lh(f,t,v),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].crossChainBridging,sh(s,l),Kh(u,s,null),sh(t,d),$&&$.m(t,null),sh(t,p),b&&b.m(t,null),m=!0,h||(g=[gh(i,"change",e[24]),gh(c,"change",e[25])],h=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};8&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!m||1&r[0])&&xh(n,"checked","custom"===e[0].crossChainBridging),1&r[0]&&(c.checked=c.__value===e[0].crossChainBridging);const l={};8&r[1]&&(l.$$scope={dirty:r,ctx:e}),u.$set(l),(!m||1&r[0])&&xh(s,"checked","erc7786native"===e[0].crossChainBridging),e[5]?$?($.p(e,r),32&r[0]&&Vh($,1)):($=fx(e),$.c(),Vh($,1),$.m(t,p)):$&&(Fh(),Jh($,1,1,()=>{$=null}),Hh()),2&r[0]&&(v=!e[1]?.includes("superchain")),v?b?(b.p(e,r),2&r[0]&&Vh(b,1)):(b=gx(e),b.c(),Vh(b,1),b.m(t,null)):b&&(Fh(),Jh(b,1,1,()=>{b=null}),Hh())},i(e){m||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),Vh($),Vh(b),m=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),Jh($),Jh(b),m=!1},d(e){e&&uh(t),Xh(o),Xh(u),$&&$.d(),b&&b.d(),f.r(),h=!1,Kf(g)}}}function bx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,$e,be,ye,ke,_e,xe,we,Ie,Se,Ee,Ce,ze;$=new o_({props:{$$slots:{default:[Q_]},$$scope:{ctx:e}}}),S=new o_({props:{$$slots:{default:[ex]},$$scope:{ctx:e}}});let Oe=e[4]&&tx(e);function Te(t){e[23](t)}M=new o_({props:{$$slots:{default:[ix]},$$scope:{ctx:e}}}),F=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Burnable",$$slots:{default:[rx]},$$scope:{ctx:e}}}),G=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[ox]},$$scope:{ctx:e}}}),ee=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC1363",$$slots:{default:[ax]},$$scope:{ctx:e}}}),oe=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Permit",$$slots:{default:[sx]},$$scope:{ctx:e}}}),ue=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20FlashMint",$$slots:{default:[cx]},$$scope:{ctx:e}}});let Ue={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[dx]},$$scope:{ctx:e}};function Re(t){e[29](t)}void 0!==e[0].votes&&(Ue.value=e[0].votes),pe=new I_({props:Ue}),Th.push(()=>Wh(pe,"value",Te));let Ae={label:"Crosschain Bridging",defaultValue:"custom",helpContent:"Allows authorized bridge contracts to mint and burn tokens for crosschain transfers.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[$x]},$$scope:{ctx:e}};function Pe(t){e[30](t)}void 0!==e[0].crossChainBridging&&(Ae.value=e[0].crossChainBridging),he=new I_({props:Ae}),Th.push(()=>Wh(he,"value",Re));let Ne={required:e[6]};function je(t){e[31](t)}function De(t){e[32](t)}void 0!==e[0].access&&(Ne.access=e[0].access),$e=new U_({props:Ne}),Th.push(()=>Wh($e,"access",Pe));let Me={namespaceRequired:!1!==e[0].upgradeable&&"custom"===e[0].crossChainBridging,errors:e[2]};function Ze(t){e[33](t)}void 0!==e[0].upgradeable&&(Me.upgradeable=e[0].upgradeable),void 0!==e[0].namespacePrefix&&(Me.namespacePrefix=e[0].namespacePrefix),ke=new q_({props:Me}),Th.push(()=>Wh(ke,"upgradeable",je)),Th.push(()=>Wh(ke,"namespacePrefix",De));let Le={errors:e[2]};return void 0!==e[0].info&&(Le.info=e[0].info),Ie=new V_({props:Le}),Th.push(()=>Wh(Ie,"info",Ze)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("div"),o=dh("label"),a=dh("span"),a.textContent="Name",s=fh(),c=dh("input"),l=fh(),u=dh("label"),d=dh("span"),d.textContent="Symbol",p=fh(),m=dh("input"),f=fh(),h=dh("label"),g=dh("span"),v=mh("Decimals\n "),Gh($.$$.fragment),b=fh(),y=dh("input"),_=fh(),x=dh("label"),w=dh("span"),I=mh("Premint\n "),Gh(S.$$.fragment),E=fh(),C=dh("input"),O=fh(),Oe&&Oe.c(),T=fh(),U=dh("section"),R=dh("h1"),R.textContent="Features",A=fh(),P=dh("div"),N=dh("label"),j=dh("input"),D=mh("\n Mintable\n "),Gh(M.$$.fragment),Z=fh(),L=dh("label"),q=dh("input"),B=mh("\n Burnable\n "),Gh(F.$$.fragment),H=fh(),V=dh("label"),J=dh("input"),W=mh("\n Pausable\n "),Gh(G.$$.fragment),K=fh(),X=dh("label"),Y=dh("input"),Q=mh("\n Callback\n "),Gh(ee.$$.fragment),te=fh(),ne=dh("label"),ie=dh("input"),re=mh("\n Permit\n "),Gh(oe.$$.fragment),ae=fh(),se=dh("label"),ce=dh("input"),le=mh("\n Flash Minting\n "),Gh(ue.$$.fragment),de=fh(),Gh(pe.$$.fragment),fe=fh(),Gh(he.$$.fragment),ve=fh(),Gh($e.$$.fragment),ye=fh(),Gh(ke.$$.fragment),we=fh(),Gh(Ie.$$.fragment),vh(o,"class","labeled-input"),vh(u,"class","labeled-input"),vh(r,"class","grid grid-cols-[2fr,1fr] gap-2"),vh(g,"class","flex justify-between pr-2"),vh(h,"class","labeled-input"),vh(w,"class","flex justify-between pr-2"),vh(C,"placeholder","0"),vh(C,"pattern",P$.source),vh(x,"class","labeled-input"),vh(t,"class","controls-section"),vh(j,"type","checkbox"),xh(N,"checked",e[0].mintable),vh(q,"type","checkbox"),xh(L,"checked",e[0].burnable),vh(J,"type","checkbox"),xh(V,"checked",e[0].pausable),vh(Y,"type","checkbox"),xh(X,"checked",e[0].callback),vh(ie,"type","checkbox"),xh(ne,"checked",e[0].permit),vh(ce,"type","checkbox"),xh(se,"checked",e[0].flashmint),vh(P,"class","checkbox-group"),vh(U,"class","controls-section")},m(me,ge){lh(me,t,ge),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),sh(o,s),sh(o,c),kh(c,e[0].name),sh(r,l),sh(r,u),sh(u,d),sh(u,p),sh(u,m),kh(m,e[0].symbol),sh(t,f),sh(t,h),sh(h,g),sh(g,v),Kh($,g,null),sh(h,b),sh(h,y),kh(y,e[0].decimals),sh(t,_),sh(t,x),sh(x,w),sh(w,I),Kh(S,w,null),sh(x,E),sh(x,C),kh(C,e[0].premint),sh(t,O),Oe&&Oe.m(t,null),lh(me,T,ge),lh(me,U,ge),sh(U,R),sh(U,A),sh(U,P),sh(P,N),sh(N,j),j.checked=e[0].mintable,sh(N,D),Kh(M,N,null),sh(P,Z),sh(P,L),sh(L,q),q.checked=e[0].burnable,sh(L,B),Kh(F,L,null),sh(P,H),sh(P,V),sh(V,J),J.checked=e[0].pausable,sh(V,W),Kh(G,V,null),sh(P,K),sh(P,X),sh(X,Y),Y.checked=e[0].callback,sh(X,Q),Kh(ee,X,null),sh(P,te),sh(P,ne),sh(ne,ie),ie.checked=e[0].permit,sh(ne,re),Kh(oe,ne,null),sh(P,ae),sh(P,se),sh(se,ce),ce.checked=e[0].flashmint,sh(se,le),Kh(ue,se,null),lh(me,de,ge),Kh(pe,me,ge),lh(me,fe,ge),Kh(he,me,ge),lh(me,ve,ge),Kh($e,me,ge),lh(me,ye,ge),Kh(ke,me,ge),lh(me,we,ge),Kh(Ie,me,ge),Ee=!0,Ce||(ze=[gh(c,"input",e[9]),gh(m,"input",e[10]),gh(y,"input",e[11]),ah(k=A_.call(null,y,e[2]?.decimals)),gh(C,"input",e[12]),ah(z=A_.call(null,C,e[2]?.premint)),gh(j,"change",e[14]),gh(q,"change",e[15]),gh(J,"change",e[16]),gh(Y,"change",e[17]),gh(ie,"change",e[18]),gh(ce,"change",e[19])],Ce=!0)},p(e,n){1&n[0]&&c.value!==e[0].name&&kh(c,e[0].name),1&n[0]&&m.value!==e[0].symbol&&kh(m,e[0].symbol);const i={};8&n[1]&&(i.$$scope={dirty:n,ctx:e}),$.$set(i),1&n[0]&&y.value!==e[0].decimals&&kh(y,e[0].decimals),k&&Xf(k.update)&&4&n[0]&&k.update.call(null,e[2]?.decimals);const r={};8&n[1]&&(r.$$scope={dirty:n,ctx:e}),S.$set(r),1&n[0]&&C.value!==e[0].premint&&kh(C,e[0].premint),z&&Xf(z.update)&&4&n[0]&&z.update.call(null,e[2]?.premint),e[4]?Oe?(Oe.p(e,n),16&n[0]&&Vh(Oe,1)):(Oe=tx(e),Oe.c(),Vh(Oe,1),Oe.m(t,null)):Oe&&(Fh(),Jh(Oe,1,1,()=>{Oe=null}),Hh()),1&n[0]&&(j.checked=e[0].mintable);const o={};8&n[1]&&(o.$$scope={dirty:n,ctx:e}),M.$set(o),(!Ee||1&n[0])&&xh(N,"checked",e[0].mintable),1&n[0]&&(q.checked=e[0].burnable);const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),F.$set(a),(!Ee||1&n[0])&&xh(L,"checked",e[0].burnable),1&n[0]&&(J.checked=e[0].pausable);const s={};8&n[1]&&(s.$$scope={dirty:n,ctx:e}),G.$set(s),(!Ee||1&n[0])&&xh(V,"checked",e[0].pausable),1&n[0]&&(Y.checked=e[0].callback);const l={};8&n[1]&&(l.$$scope={dirty:n,ctx:e}),ee.$set(l),(!Ee||1&n[0])&&xh(X,"checked",e[0].callback),1&n[0]&&(ie.checked=e[0].permit);const u={};8&n[1]&&(u.$$scope={dirty:n,ctx:e}),oe.$set(u),(!Ee||1&n[0])&&xh(ne,"checked",e[0].permit),1&n[0]&&(ce.checked=e[0].flashmint);const d={};8&n[1]&&(d.$$scope={dirty:n,ctx:e}),ue.$set(d),(!Ee||1&n[0])&&xh(se,"checked",e[0].flashmint);const p={};1&n[0]|8&n[1]&&(p.$$scope={dirty:n,ctx:e}),!me&&1&n[0]&&(me=!0,p.value=e[0].votes,jh(()=>me=!1)),pe.$set(p);const f={};43&n[0]|8&n[1]&&(f.$$scope={dirty:n,ctx:e}),!ge&&1&n[0]&&(ge=!0,f.value=e[0].crossChainBridging,jh(()=>ge=!1)),he.$set(f);const h={};64&n[0]&&(h.required=e[6]),!be&&1&n[0]&&(be=!0,h.access=e[0].access,jh(()=>be=!1)),$e.$set(h);const g={};1&n[0]&&(g.namespaceRequired=!1!==e[0].upgradeable&&"custom"===e[0].crossChainBridging),4&n[0]&&(g.errors=e[2]),!_e&&1&n[0]&&(_e=!0,g.upgradeable=e[0].upgradeable,jh(()=>_e=!1)),!xe&&1&n[0]&&(xe=!0,g.namespacePrefix=e[0].namespacePrefix,jh(()=>xe=!1)),ke.$set(g);const v={};4&n[0]&&(v.errors=e[2]),!Se&&1&n[0]&&(Se=!0,v.info=e[0].info,jh(()=>Se=!1)),Ie.$set(v)},i(e){Ee||(Vh($.$$.fragment,e),Vh(S.$$.fragment,e),Vh(Oe),Vh(M.$$.fragment,e),Vh(F.$$.fragment,e),Vh(G.$$.fragment,e),Vh(ee.$$.fragment,e),Vh(oe.$$.fragment,e),Vh(ue.$$.fragment,e),Vh(pe.$$.fragment,e),Vh(he.$$.fragment,e),Vh($e.$$.fragment,e),Vh(ke.$$.fragment,e),Vh(Ie.$$.fragment,e),Ee=!0)},o(e){Jh($.$$.fragment,e),Jh(S.$$.fragment,e),Jh(Oe),Jh(M.$$.fragment,e),Jh(F.$$.fragment,e),Jh(G.$$.fragment,e),Jh(ee.$$.fragment,e),Jh(oe.$$.fragment,e),Jh(ue.$$.fragment,e),Jh(pe.$$.fragment,e),Jh(he.$$.fragment,e),Jh($e.$$.fragment,e),Jh(ke.$$.fragment,e),Jh(Ie.$$.fragment,e),Ee=!1},d(e){e&&uh(t),Xh($),Xh(S),Oe&&Oe.d(),e&&uh(T),e&&uh(U),Xh(M),Xh(F),Xh(G),Xh(ee),Xh(oe),Xh(ue),e&&uh(de),Xh(pe,e),e&&uh(fe),Xh(he,e),e&&uh(ve),Xh($e,e),e&&uh(ye),Xh(ke,e),e&&uh(we),Xh(Ie,e),Ce=!1,Kf(ze)}}}function yx(e,t,n){let i,r,o,a,{opts:s={kind:"ERC20",...yb.defaults,premint:"",info:{...Jg}}}=t,{omitFeatures:c}=t,{errors:l}=t;zh(()=>{n(7,a=c?.includes("superchain")?void 0:Hk(o,Y_))});let u=!1,d=!1;return e.$$set=e=>{"opts"in e&&n(0,s=e.opts),"omitFeatures"in e&&n(1,c=e.omitFeatures),"errors"in e&&n(2,l=e.errors)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(6,i=yb.isAccessControlRequired(s)),385&e.$$.dirty[0]&&(u||"superchain"!==s.crossChainBridging||a?.show(),n(8,u="superchain"===s.crossChainBridging)),1&e.$$.dirty[0]&&n(4,d=""!==s.premint&&"0"!==s.premint&&!1!==s.crossChainBridging),1&e.$$.dirty[0]&&n(5,r="erc7786native"===s.crossChainBridging)},[s,c,l,o,d,r,i,a,u,function(){s.name=this.value,n(0,s)},function(){s.symbol=this.value,n(0,s)},function(){s.decimals=this.value,n(0,s)},function(){s.premint=this.value,n(0,s)},function(){s.premintChainId=bh(this.value),n(0,s)},function(){s.mintable=this.checked,n(0,s)},function(){s.burnable=this.checked,n(0,s)},function(){s.pausable=this.checked,n(0,s)},function(){s.callback=this.checked,n(0,s)},function(){s.permit=this.checked,n(0,s)},function(){s.flashmint=this.checked,n(0,s)},function(){s.votes=this.__value,n(0,s)},[[],[]],function(){s.votes=this.__value,n(0,s)},function(t){e.$$.not_equal(s.votes,t)&&(s.votes=t,n(0,s))},function(){s.crossChainBridging=this.__value,n(0,s)},function(){s.crossChainBridging=this.__value,n(0,s)},function(){s.crossChainLinkAllowOverride=this.checked,n(0,s)},function(){s.crossChainBridging=this.__value,n(0,s)},function(e){Th[e?"unshift":"push"](()=>{o=e,n(3,o)})},function(t){e.$$.not_equal(s.crossChainBridging,t)&&(s.crossChainBridging=t,n(0,s))},function(t){e.$$.not_equal(s.access,t)&&(s.access=t,n(0,s))},function(t){e.$$.not_equal(s.upgradeable,t)&&(s.upgradeable=t,n(0,s))},function(t){e.$$.not_equal(s.namespacePrefix,t)&&(s.namespacePrefix=t,n(0,s))},function(t){e.$$.not_equal(s.info,t)&&(s.info=t,n(0,s))}]}const kx=X_("<strong>Important:</strong> Token IDs auto-increment independently on each chain. Mint only on a single chain and link counterparts that do not mint, otherwise colliding IDs can strand bridged tokens.");function _x(e){let t;return{c(){t=mh("Will be concatenated with token IDs to generate the token URIs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function xx(e){let t;return{c(){t=mh("Privileged accounts will be able to emit new tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function wx(e){let t;return{c(){t=mh("New tokens will be automatically assigned an incremental id.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ix(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Sx(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Ex(e){let t;return{c(){t=mh("Allows on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Cx(e){let t;return{c(){t=mh("Allows updating token URIs for individual token IDs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function zx(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ox(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Tx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[zx]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[Ox]},$$scope:{ctx:e}}}),p=$h(e[24][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[23]),gh(c,"change",e[25])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function Ux(e){let t,n,i;function r(t){e[30](t)}let o={label:"Crosschain Bridging",defaultValue:"erc7786native",helpContent:"Adds built-in support to mint and burn tokens for crosschain transfers with registered counterparts.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Crosschain",$$slots:{default:[Nx]},$$scope:{ctx:e}};return void 0!==e[0].crossChainBridging&&(o.value=e[0].crossChainBridging),t=new I_({props:o}),Th.push(()=>Wh(t,"value",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,i){const r={};49&i[0]|16&i[1]&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i[0]&&(n=!0,r.value=e[0].crossChainBridging,jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function Rx(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ax(e){let t,n,i,r,o,a,s,c,l;return a=new o_({props:{$$slots:{default:[Px]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Gh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Kh(a,t,null),s=!0,c||(l=gh(i,"change",e[29]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};16&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Vh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Xh(a),c=!1,l()}}}function Px(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Nx(e){let t,n,i,r,o,a,s,c,l,u;o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Crosschain",$$slots:{default:[Rx]},$$scope:{ctx:e}}});let d=e[5]&&Ax(e);return c=$h(e[24][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n ERC-7786 Native\n "),Gh(o.$$.fragment),a=fh(),d&&d.c(),vh(i,"type","radio"),i.__value="erc7786native",i.value=i.__value,xh(n,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),c.p(i)},m(c,p){lh(c,t,p),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Kh(o,n,null),e[28](n),sh(t,a),d&&d.m(t,null),s=!0,l||(u=gh(i,"change",e[27]),l=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};16&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!s||1&r[0])&&xh(n,"checked","erc7786native"===e[0].crossChainBridging),e[5]?d?(d.p(e,r),32&r[0]&&Vh(d,1)):(d=Ax(e),d.c(),Vh(d,1),d.m(t,null)):d&&(Fh(),Jh(d,1,1,()=>{d=null}),Hh())},i(e){s||(Vh(o.$$.fragment,e),Vh(d),s=!0)},o(e){Jh(o.$$.fragment,e),Jh(d),s=!1},d(n){n&&uh(t),Xh(o),e[28](null),d&&d.d(),c.r(),l=!1,u()}}}function jx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,$e=!e[2]?.includes("crossChainBridging");function be(t){e[26](t)}$=new o_({props:{$$slots:{default:[_x]},$$scope:{ctx:e}}}),z=new o_({props:{$$slots:{default:[xx]},$$scope:{ctx:e}}}),A=new o_({props:{$$slots:{default:[wx]},$$scope:{ctx:e}}}),M=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Burnable",$$slots:{default:[Ix]},$$scope:{ctx:e}}}),F=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[Sx]},$$scope:{ctx:e}}}),G=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Enumerable",$$slots:{default:[Ex]},$$scope:{ctx:e}}}),ee=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721URIStorage",$$slots:{default:[Cx]},$$scope:{ctx:e}}});let ye={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of individual units for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Votes",$$slots:{default:[Tx]},$$scope:{ctx:e}};void 0!==e[0].votes&&(ye.value=e[0].votes),ne=new I_({props:ye}),Th.push(()=>Wh(ne,"value",be));let ke=$e&&Ux(e);function _e(t){e[31](t)}let xe={required:e[6]};function we(t){e[32](t)}function Ie(t){e[33](t)}void 0!==e[0].access&&(xe.access=e[0].access),ae=new U_({props:xe}),Th.push(()=>Wh(ae,"access",_e));let Se={namespaceRequired:!1!==e[0].upgradeable&&e[0].mintable&&e[0].incremental,errors:e[1]};function Ee(t){e[34](t)}void 0!==e[0].upgradeable&&(Se.upgradeable=e[0].upgradeable),void 0!==e[0].namespacePrefix&&(Se.namespacePrefix=e[0].namespacePrefix),le=new q_({props:Se}),Th.push(()=>Wh(le,"upgradeable",we)),Th.push(()=>Wh(le,"namespacePrefix",Ie));let Ce={errors:e[1]};return void 0!==e[0].info&&(Ce.info=e[0].info),me=new V_({props:Ce}),Th.push(()=>Wh(me,"info",Ee)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("div"),o=dh("label"),a=dh("span"),a.textContent="Name",s=fh(),c=dh("input"),l=fh(),u=dh("label"),d=dh("span"),d.textContent="Symbol",p=fh(),m=dh("input"),f=fh(),h=dh("label"),g=dh("span"),v=mh("Base URI\n "),Gh($.$$.fragment),b=fh(),y=dh("input"),k=fh(),_=dh("section"),x=dh("h1"),x.textContent="Features",w=fh(),I=dh("div"),S=dh("label"),E=dh("input"),C=mh("\n Mintable\n "),Gh(z.$$.fragment),O=fh(),T=dh("label"),U=dh("input"),R=mh("\n Auto Increment Ids\n "),Gh(A.$$.fragment),P=fh(),N=dh("label"),j=dh("input"),D=mh("\n Burnable\n "),Gh(M.$$.fragment),Z=fh(),L=dh("label"),q=dh("input"),B=mh("\n Pausable\n "),Gh(F.$$.fragment),H=fh(),V=dh("label"),J=dh("input"),W=mh("\n Enumerable\n "),Gh(G.$$.fragment),K=fh(),X=dh("label"),Y=dh("input"),Q=mh("\n URI Storage\n "),Gh(ee.$$.fragment),te=fh(),Gh(ne.$$.fragment),re=fh(),ke&&ke.c(),oe=fh(),Gh(ae.$$.fragment),ce=fh(),Gh(le.$$.fragment),pe=fh(),Gh(me.$$.fragment),vh(o,"class","labeled-input"),vh(u,"class","labeled-input"),vh(r,"class","grid grid-cols-[2fr,1fr] gap-2"),vh(g,"class","flex justify-between pr-2"),vh(y,"placeholder","https://..."),vh(h,"class","labeled-input"),vh(t,"class","controls-section"),vh(E,"type","checkbox"),xh(S,"checked",e[0].mintable),vh(U,"type","checkbox"),vh(T,"class","subcontrol"),xh(T,"checked",e[0].incremental),vh(j,"type","checkbox"),xh(N,"checked",e[0].burnable),vh(q,"type","checkbox"),xh(L,"checked",e[0].pausable),vh(J,"type","checkbox"),xh(V,"checked",e[0].enumerable),vh(Y,"type","checkbox"),xh(X,"checked",e[0].uriStorage),vh(I,"class","checkbox-group"),vh(_,"class","controls-section")},m(ie,se){lh(ie,t,se),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),sh(o,s),sh(o,c),kh(c,e[0].name),sh(r,l),sh(r,u),sh(u,d),sh(u,p),sh(u,m),kh(m,e[0].symbol),sh(t,f),sh(t,h),sh(h,g),sh(g,v),Kh($,g,null),sh(h,b),sh(h,y),kh(y,e[0].baseUri),lh(ie,k,se),lh(ie,_,se),sh(_,x),sh(_,w),sh(_,I),sh(I,S),sh(S,E),E.checked=e[0].mintable,sh(S,C),Kh(z,S,null),sh(I,O),sh(I,T),sh(T,U),U.checked=e[0].incremental,sh(T,R),Kh(A,T,null),e[18](T),sh(I,P),sh(I,N),sh(N,j),j.checked=e[0].burnable,sh(N,D),Kh(M,N,null),sh(I,Z),sh(I,L),sh(L,q),q.checked=e[0].pausable,sh(L,B),Kh(F,L,null),sh(I,H),sh(I,V),sh(V,J),J.checked=e[0].enumerable,sh(V,W),Kh(G,V,null),sh(I,K),sh(I,X),sh(X,Y),Y.checked=e[0].uriStorage,sh(X,Q),Kh(ee,X,null),lh(ie,te,se),Kh(ne,ie,se),lh(ie,re,se),ke&&ke.m(ie,se),lh(ie,oe,se),Kh(ae,ie,se),lh(ie,ce,se),Kh(le,ie,se),lh(ie,pe,se),Kh(me,ie,se),he=!0,ge||(ve=[gh(c,"input",e[13]),gh(m,"input",e[14]),gh(y,"input",e[15]),gh(E,"change",e[16]),gh(U,"change",e[17]),gh(j,"change",e[19]),gh(q,"change",e[20]),gh(J,"change",e[21]),gh(Y,"change",e[22])],ge=!0)},p(e,t){1&t[0]&&c.value!==e[0].name&&kh(c,e[0].name),1&t[0]&&m.value!==e[0].symbol&&kh(m,e[0].symbol);const n={};16&t[1]&&(n.$$scope={dirty:t,ctx:e}),$.$set(n),1&t[0]&&y.value!==e[0].baseUri&&kh(y,e[0].baseUri),1&t[0]&&(E.checked=e[0].mintable);const i={};16&t[1]&&(i.$$scope={dirty:t,ctx:e}),z.$set(i),(!he||1&t[0])&&xh(S,"checked",e[0].mintable),1&t[0]&&(U.checked=e[0].incremental);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),A.$set(r),(!he||1&t[0])&&xh(T,"checked",e[0].incremental),1&t[0]&&(j.checked=e[0].burnable);const o={};16&t[1]&&(o.$$scope={dirty:t,ctx:e}),M.$set(o),(!he||1&t[0])&&xh(N,"checked",e[0].burnable),1&t[0]&&(q.checked=e[0].pausable);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),F.$set(a),(!he||1&t[0])&&xh(L,"checked",e[0].pausable),1&t[0]&&(J.checked=e[0].enumerable);const s={};16&t[1]&&(s.$$scope={dirty:t,ctx:e}),G.$set(s),(!he||1&t[0])&&xh(V,"checked",e[0].enumerable),1&t[0]&&(Y.checked=e[0].uriStorage);const l={};16&t[1]&&(l.$$scope={dirty:t,ctx:e}),ee.$set(l),(!he||1&t[0])&&xh(X,"checked",e[0].uriStorage);const u={};1&t[0]|16&t[1]&&(u.$$scope={dirty:t,ctx:e}),!ie&&1&t[0]&&(ie=!0,u.value=e[0].votes,jh(()=>ie=!1)),ne.$set(u),4&t[0]&&($e=!e[2]?.includes("crossChainBridging")),$e?ke?(ke.p(e,t),4&t[0]&&Vh(ke,1)):(ke=Ux(e),ke.c(),Vh(ke,1),ke.m(oe.parentNode,oe)):ke&&(Fh(),Jh(ke,1,1,()=>{ke=null}),Hh());const d={};64&t[0]&&(d.required=e[6]),!se&&1&t[0]&&(se=!0,d.access=e[0].access,jh(()=>se=!1)),ae.$set(d);const p={};1&t[0]&&(p.namespaceRequired=!1!==e[0].upgradeable&&e[0].mintable&&e[0].incremental),2&t[0]&&(p.errors=e[1]),!ue&&1&t[0]&&(ue=!0,p.upgradeable=e[0].upgradeable,jh(()=>ue=!1)),!de&&1&t[0]&&(de=!0,p.namespacePrefix=e[0].namespacePrefix,jh(()=>de=!1)),le.$set(p);const f={};2&t[0]&&(f.errors=e[1]),!fe&&1&t[0]&&(fe=!0,f.info=e[0].info,jh(()=>fe=!1)),me.$set(f)},i(e){he||(Vh($.$$.fragment,e),Vh(z.$$.fragment,e),Vh(A.$$.fragment,e),Vh(M.$$.fragment,e),Vh(F.$$.fragment,e),Vh(G.$$.fragment,e),Vh(ee.$$.fragment,e),Vh(ne.$$.fragment,e),Vh(ke),Vh(ae.$$.fragment,e),Vh(le.$$.fragment,e),Vh(me.$$.fragment,e),he=!0)},o(e){Jh($.$$.fragment,e),Jh(z.$$.fragment,e),Jh(A.$$.fragment,e),Jh(M.$$.fragment,e),Jh(F.$$.fragment,e),Jh(G.$$.fragment,e),Jh(ee.$$.fragment,e),Jh(ne.$$.fragment,e),Jh(ke),Jh(ae.$$.fragment,e),Jh(le.$$.fragment,e),Jh(me.$$.fragment,e),he=!1},d(n){n&&uh(t),Xh($),n&&uh(k),n&&uh(_),Xh(z),Xh(A),e[18](null),Xh(M),Xh(F),Xh(G),Xh(ee),n&&uh(te),Xh(ne,n),n&&uh(re),ke&&ke.d(n),n&&uh(oe),Xh(ae,n),n&&uh(ce),Xh(le,n),n&&uh(pe),Xh(me,n),ge=!1,Kf(ve)}}}function Dx(e,t,n){let i,r,o,a,s,c,{opts:l={kind:"ERC721",...kb.defaults,info:{...Jg}}}=t,{errors:u}=t,{omitFeatures:d}=t,p=l.mintable,m=l.incremental;zh(()=>{n(9,s=Hk(o,kx)),n(10,c=Hk(a,kx))});let f=l.incremental,h=l.crossChainBridging;return e.$$set=e=>{"opts"in e&&n(0,l=e.opts),"errors"in e&&n(1,u=e.errors),"omitFeatures"in e&&n(2,d=e.omitFeatures)},e.$$.update=()=>{385&e.$$.dirty[0]&&(p&&!l.mintable&&n(0,l.incremental=!1,l),l.incremental&&!m&&n(0,l.mintable=!0,l),n(7,p=l.mintable),n(8,m=l.incremental)),1&e.$$.dirty[0]&&n(6,i=kb.isAccessControlRequired(l)),7681&e.$$.dirty[0]&&(l.incremental&&"erc7786native"===l.crossChainBridging&&(f?!1===h&&c?.show():s?.show()),n(11,f=l.incremental),n(12,h=l.crossChainBridging)),1&e.$$.dirty[0]&&n(5,r="erc7786native"===l.crossChainBridging)},[l,u,d,o,a,r,i,p,m,s,c,f,h,function(){l.name=this.value,n(0,l),n(7,p),n(8,m)},function(){l.symbol=this.value,n(0,l),n(7,p),n(8,m)},function(){l.baseUri=this.value,n(0,l),n(7,p),n(8,m)},function(){l.mintable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.incremental=this.checked,n(0,l),n(7,p),n(8,m)},function(e){Th[e?"unshift":"push"](()=>{o=e,n(3,o)})},function(){l.burnable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.pausable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.enumerable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.uriStorage=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.votes=this.__value,n(0,l),n(7,p),n(8,m)},[[],[]],function(){l.votes=this.__value,n(0,l),n(7,p),n(8,m)},function(t){e.$$.not_equal(l.votes,t)&&(l.votes=t,n(0,l),n(7,p),n(8,m))},function(){l.crossChainBridging=this.__value,n(0,l),n(7,p),n(8,m)},function(e){Th[e?"unshift":"push"](()=>{a=e,n(4,a)})},function(){l.crossChainLinkAllowOverride=this.checked,n(0,l),n(7,p),n(8,m)},function(t){e.$$.not_equal(l.crossChainBridging,t)&&(l.crossChainBridging=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.access,t)&&(l.access=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.upgradeable,t)&&(l.upgradeable=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.namespacePrefix,t)&&(l.namespacePrefix=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.info,t)&&(l.info=t,n(0,l),n(7,p),n(8,m))}]}function Mx(e){let t,n,i;return{c(){t=mh("Location of the metadata. Clients will replace any instance of "),n=mh("{id}"),i=mh(" in this string with the tokenId.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Zx(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Lx(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function qx(e){let t;return{c(){t=mh("Keeps track of total supply of tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Bx(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Fx(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to set a new URI for all token types. Clients will replace any instance of "),n=mh("{id}"),i=mh("\n in the URI with the tokenId.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Hx(e){let t,n,i;function r(t){e[15](t)}let o={label:"Crosschain Bridging",defaultValue:"erc7786native",helpContent:"Adds built-in support to mint and burn tokens for crosschain transfers with registered counterparts.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Crosschain",$$slots:{default:[Gx]},$$scope:{ctx:e}};return void 0!==e[0].crossChainBridging&&(o.value=e[0].crossChainBridging),t=new I_({props:o}),Th.push(()=>Wh(t,"value",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,i){const r={};524297&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.value=e[0].crossChainBridging,jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function Vx(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Jx(e){let t,n,i,r,o,a,s,c,l;return a=new o_({props:{$$slots:{default:[Wx]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Gh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Kh(a,t,null),s=!0,c||(l=gh(i,"change",e[14]),c=!0)},p(e,t){1&t&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};524288&t&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Vh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Xh(a),c=!1,l()}}}function Wx(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Gx(e){let t,n,i,r,o,a,s,c,l,u;o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Crosschain",$$slots:{default:[Vx]},$$scope:{ctx:e}}});let d=e[3]&&Jx(e);return c=$h(e[13][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n ERC-7786 Native\n "),Gh(o.$$.fragment),a=fh(),d&&d.c(),vh(i,"type","radio"),i.__value="erc7786native",i.value=i.__value,xh(n,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),c.p(i)},m(c,p){lh(c,t,p),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Kh(o,n,null),sh(t,a),d&&d.m(t,null),s=!0,l||(u=gh(i,"change",e[12]),l=!0)},p(e,r){1&r&&(i.checked=i.__value===e[0].crossChainBridging);const a={};524288&r&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!s||1&r)&&xh(n,"checked","erc7786native"===e[0].crossChainBridging),e[3]?d?(d.p(e,r),8&r&&Vh(d,1)):(d=Jx(e),d.c(),Vh(d,1),d.m(t,null)):d&&(Fh(),Jh(d,1,1,()=>{d=null}),Hh())},i(e){s||(Vh(o.$$.fragment,e),Vh(d),s=!0)},o(e){Jh(o.$$.fragment,e),Jh(d),s=!1},d(e){e&&uh(t),Xh(o),d&&d.d(),c.r(),l=!1,u()}}}function Kx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie=!e[2]?.includes("crossChainBridging");p=new o_({props:{$$slots:{default:[Mx]},$$scope:{ctx:e}}}),x=new o_({props:{$$slots:{default:[Zx]},$$scope:{ctx:e}}}),C=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Burnable",$$slots:{default:[Lx]},$$scope:{ctx:e}}}),R=new o_({props:{$$slots:{default:[qx]},$$scope:{ctx:e}}}),D=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[Bx]},$$scope:{ctx:e}}}),B=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155-_setURI-string-",$$slots:{default:[Fx]},$$scope:{ctx:e}}});let re=ie&&Hx(e);function oe(t){e[16](t)}let ae={required:e[4]};function se(t){e[17](t)}void 0!==e[0].access&&(ae.access=e[0].access),V=new U_({props:ae}),Th.push(()=>Wh(V,"access",oe));let ce={};function le(t){e[18](t)}void 0!==e[0].upgradeable&&(ce.upgradeable=e[0].upgradeable),G=new q_({props:ce}),Th.push(()=>Wh(G,"upgradeable",se));let ue={errors:e[1]};return void 0!==e[0].info&&(ue.info=e[0].info),Y=new V_({props:ue}),Th.push(()=>Wh(Y,"info",le)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("label"),u=dh("span"),d=mh("URI\n "),Gh(p.$$.fragment),m=fh(),f=dh("input"),h=fh(),g=dh("section"),v=dh("h1"),v.textContent="Features",$=fh(),b=dh("div"),y=dh("label"),k=dh("input"),_=mh("\n Mintable\n "),Gh(x.$$.fragment),w=fh(),I=dh("label"),S=dh("input"),E=mh("\n Burnable\n "),Gh(C.$$.fragment),z=fh(),O=dh("label"),T=dh("input"),U=mh("\n Supply Tracking\n "),Gh(R.$$.fragment),A=fh(),P=dh("label"),N=dh("input"),j=mh("\n Pausable\n "),Gh(D.$$.fragment),M=fh(),Z=dh("label"),L=dh("input"),q=mh("\n Updatable URI\n "),Gh(B.$$.fragment),F=fh(),re&&re.c(),H=fh(),Gh(V.$$.fragment),W=fh(),Gh(G.$$.fragment),X=fh(),Gh(Y.$$.fragment),vh(r,"class","labeled-input"),vh(u,"class","flex justify-between pr-2"),vh(f,"placeholder","https://..."),vh(l,"class","labeled-input"),vh(t,"class","controls-section"),vh(k,"type","checkbox"),xh(y,"checked",e[0].mintable),vh(S,"type","checkbox"),xh(I,"checked",e[0].burnable),vh(T,"type","checkbox"),xh(O,"checked",e[0].supply),vh(N,"type","checkbox"),xh(P,"checked",e[0].pausable),vh(L,"type","checkbox"),xh(Z,"checked",e[0].updatableUri),vh(b,"class","checkbox-group"),vh(g,"class","controls-section")},m(J,K){lh(J,t,K),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),sh(t,c),sh(t,l),sh(l,u),sh(u,d),Kh(p,u,null),sh(l,m),sh(l,f),kh(f,e[0].uri),lh(J,h,K),lh(J,g,K),sh(g,v),sh(g,$),sh(g,b),sh(b,y),sh(y,k),k.checked=e[0].mintable,sh(y,_),Kh(x,y,null),sh(b,w),sh(b,I),sh(I,S),S.checked=e[0].burnable,sh(I,E),Kh(C,I,null),sh(b,z),sh(b,O),sh(O,T),T.checked=e[0].supply,sh(O,U),Kh(R,O,null),sh(b,A),sh(b,P),sh(P,N),N.checked=e[0].pausable,sh(P,j),Kh(D,P,null),sh(b,M),sh(b,Z),sh(Z,L),L.checked=e[0].updatableUri,sh(Z,q),Kh(B,Z,null),lh(J,F,K),re&&re.m(J,K),lh(J,H,K),Kh(V,J,K),lh(J,W,K),Kh(G,J,K),lh(J,X,K),Kh(Y,J,K),ee=!0,te||(ne=[gh(s,"input",e[5]),gh(f,"input",e[6]),gh(k,"change",e[7]),gh(S,"change",e[8]),gh(T,"change",e[9]),gh(N,"change",e[10]),gh(L,"change",e[11])],te=!0)},p(e,[t]){1&t&&s.value!==e[0].name&&kh(s,e[0].name);const n={};524288&t&&(n.$$scope={dirty:t,ctx:e}),p.$set(n),1&t&&f.value!==e[0].uri&&kh(f,e[0].uri),1&t&&(k.checked=e[0].mintable);const i={};524288&t&&(i.$$scope={dirty:t,ctx:e}),x.$set(i),(!ee||1&t)&&xh(y,"checked",e[0].mintable),1&t&&(S.checked=e[0].burnable);const r={};524288&t&&(r.$$scope={dirty:t,ctx:e}),C.$set(r),(!ee||1&t)&&xh(I,"checked",e[0].burnable),1&t&&(T.checked=e[0].supply);const o={};524288&t&&(o.$$scope={dirty:t,ctx:e}),R.$set(o),(!ee||1&t)&&xh(O,"checked",e[0].supply),1&t&&(N.checked=e[0].pausable);const a={};524288&t&&(a.$$scope={dirty:t,ctx:e}),D.$set(a),(!ee||1&t)&&xh(P,"checked",e[0].pausable),1&t&&(L.checked=e[0].updatableUri);const c={};524288&t&&(c.$$scope={dirty:t,ctx:e}),B.$set(c),(!ee||1&t)&&xh(Z,"checked",e[0].updatableUri),4&t&&(ie=!e[2]?.includes("crossChainBridging")),ie?re?(re.p(e,t),4&t&&Vh(re,1)):(re=Hx(e),re.c(),Vh(re,1),re.m(H.parentNode,H)):re&&(Fh(),Jh(re,1,1,()=>{re=null}),Hh());const l={};16&t&&(l.required=e[4]),!J&&1&t&&(J=!0,l.access=e[0].access,jh(()=>J=!1)),V.$set(l);const u={};!K&&1&t&&(K=!0,u.upgradeable=e[0].upgradeable,jh(()=>K=!1)),G.$set(u);const d={};2&t&&(d.errors=e[1]),!Q&&1&t&&(Q=!0,d.info=e[0].info,jh(()=>Q=!1)),Y.$set(d)},i(e){ee||(Vh(p.$$.fragment,e),Vh(x.$$.fragment,e),Vh(C.$$.fragment,e),Vh(R.$$.fragment,e),Vh(D.$$.fragment,e),Vh(B.$$.fragment,e),Vh(re),Vh(V.$$.fragment,e),Vh(G.$$.fragment,e),Vh(Y.$$.fragment,e),ee=!0)},o(e){Jh(p.$$.fragment,e),Jh(x.$$.fragment,e),Jh(C.$$.fragment,e),Jh(R.$$.fragment,e),Jh(D.$$.fragment,e),Jh(B.$$.fragment,e),Jh(re),Jh(V.$$.fragment,e),Jh(G.$$.fragment,e),Jh(Y.$$.fragment,e),ee=!1},d(e){e&&uh(t),Xh(p),e&&uh(h),e&&uh(g),Xh(x),Xh(C),Xh(R),Xh(D),Xh(B),e&&uh(F),re&&re.d(e),e&&uh(H),Xh(V,e),e&&uh(W),Xh(G,e),e&&uh(X),Xh(Y,e),te=!1,Kf(ne)}}}function Xx(e,t,n){let i,r,{opts:o={kind:"ERC1155",..._b.defaults,info:{...Jg}}}=t,{errors:a}=t,{omitFeatures:s}=t;return e.$$set=e=>{"opts"in e&&n(0,o=e.opts),"errors"in e&&n(1,a=e.errors),"omitFeatures"in e&&n(2,s=e.omitFeatures)},e.$$.update=()=>{1&e.$$.dirty&&n(4,i=_b.isAccessControlRequired(o)),1&e.$$.dirty&&n(3,r="erc7786native"===o.crossChainBridging)},[o,a,s,r,i,function(){o.name=this.value,n(0,o)},function(){o.uri=this.value,n(0,o)},function(){o.mintable=this.checked,n(0,o)},function(){o.burnable=this.checked,n(0,o)},function(){o.supply=this.checked,n(0,o)},function(){o.pausable=this.checked,n(0,o)},function(){o.updatableUri=this.checked,n(0,o)},function(){o.crossChainBridging=this.__value,n(0,o)},[[]],function(){o.crossChainLinkAllowOverride=this.checked,n(0,o)},function(t){e.$$.not_equal(o.crossChainBridging,t)&&(o.crossChainBridging=t,n(0,o))},function(t){e.$$.not_equal(o.access,t)&&(o.access=t,n(0,o))},function(t){e.$$.not_equal(o.upgradeable,t)&&(o.upgradeable=t,n(0,o))},function(t){e.$$.not_equal(o.info,t)&&(o.info=t,n(0,o))}]}function Yx(e){let t;return{c(){t=mh("The number of decimals used to represent token amounts. Defaults to 18.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Qx(e){let t;return{c(){t=mh("Create an initial amount of tokens for the deployer.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ew(e){let t,n,i,r,o,a,s,c,l,u;return s=new o_({props:{$$slots:{default:[tw]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=mh(" Chain ID:\n "),r=dh("input"),a=fh(),Gh(s.$$.fragment),vh(r,"type","number"),vh(r,"placeholder",""),vh(r,"pattern",N$.source),vh(r,"class","input-inline"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(d,p){lh(d,t,p),sh(t,n),sh(n,i),sh(n,r),kh(r,e[0].premintChainId),sh(t,a),Kh(s,t,null),c=!0,l||(u=[gh(r,"input",e[13]),ah(G_.call(null,r)),ah(o=A_.call(null,r,e[2]?.premintChainId))],l=!0)},p(e,t){1&t[0]&&bh(r.value)!==e[0].premintChainId&&kh(r,e[0].premintChainId),o&&Xf(o.update)&&4&t[0]&&o.update.call(null,e[2]?.premintChainId);const n={};32&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){c||(Vh(s.$$.fragment,e),c=!0)},o(e){Jh(s.$$.fragment,e),c=!1},d(e){e&&uh(t),Xh(s),l=!1,Kf(u)}}}function tw(e){let t;return{c(){t=mh("Chain ID of the network on which to premint tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function nw(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function iw(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function rw(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function ow(e){let t;return{c(){t=mh("Supports code execution after transfers and approvals on recipient contracts in a single transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function aw(e){let t;return{c(){t=mh("Without paying gas, token holders will be able to allow third parties to transfer from their account.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function sw(e){let t;return{c(){t=mh("Built-in flash loans. Lend tokens without requiring collateral as long as they're returned in the same\n transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function cw(e){let t;return{c(){t=mh("Authorized accounts can freeze and unfreeze accounts for regulatory or security purposes.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function lw(e){let t;return{c(){t=mh("Allows a list of addresses to transfer tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function uw(e){let t;return{c(){t=mh("Blocks a list of addresses from transferring tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function dw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{$$slots:{default:[lw]},$$scope:{ctx:e}}}),u=new o_({props:{$$slots:{default:[uw]},$$scope:{ctx:e}}}),p=$h(e[22][2]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Allowlist*\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Blocklist*\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="allowlist",i.value=i.__value,xh(n,"checked","allowlist"===e[0].restrictions),vh(c,"type","radio"),c.__value="blocklist",c.value=c.__value,xh(s,"checked","blocklist"===e[0].restrictions),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].restrictions,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].restrictions,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[21]),gh(c,"change",e[23])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].restrictions);const r={};32&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","allowlist"===e[0].restrictions),1&t[0]&&(c.checked=c.__value===e[0].restrictions);const a={};32&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","blocklist"===e[0].restrictions)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function pw(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function mw(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function fw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[pw]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[mw]},$$scope:{ctx:e}}}),p=$h(e[22][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[25]),gh(c,"change",e[26])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};32&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};32&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function hw(e){let t;return{c(){t=mh("Uses custom bridge contract(s) as authorized token bridge(s).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function gw(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function vw(e){let t,n,i,r,o,a,s,c,l;return a=new o_({props:{$$slots:{default:[$w]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Gh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Kh(a,t,null),s=!0,c||(l=gh(i,"change",e[30]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};32&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Vh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Xh(a),c=!1,l()}}}function $w(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function bw(e){let t,n,i,r,o,a,s,c,l,u;return r=new W_({}),a=new o_({props:{link:"https://docs.optimism.io/stack/interop/superchain-erc20",$$slots:{default:[yw]},$$scope:{ctx:e}}}),c=$h(e[22][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n SuperchainERC20 "),Gh(r.$$.fragment),o=fh(),Gh(a.$$.fragment),vh(n,"type","radio"),n.__value="superchain",n.value=n.__value,xh(t,"checked","superchain"===e[0].crossChainBridging),c.p(n)},m(c,d){lh(c,t,d),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Kh(r,t,null),sh(t,o),Kh(a,t,null),e[32](t),s=!0,l||(u=gh(n,"change",e[31]),l=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const r={};32&i[1]&&(r.$$scope={dirty:i,ctx:e}),a.$set(r),(!s||1&i[0])&&xh(t,"checked","superchain"===e[0].crossChainBridging)},i(e){s||(Vh(r.$$.fragment,e),Vh(a.$$.fragment,e),s=!0)},o(e){Jh(r.$$.fragment,e),Jh(a.$$.fragment,e),s=!1},d(n){n&&uh(t),Xh(r),Xh(a),e[32](null),c.r(),l=!1,u()}}}function yw(e){let t,n,i;return{c(){t=mh("Uses the predeployed "),n=dh("code"),n.textContent="SuperchainTokenBridge",i=mh(" contract as the authorized token bridge. Only available\n on chains in the Superchain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function kw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v=!e[1]?.includes("superchain");o=new o_({props:{$$slots:{default:[hw]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Crosschain",$$slots:{default:[gw]},$$scope:{ctx:e}}});let $=e[5]&&vw(e),b=v&&bw(e);return f=$h(e[22][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Custom\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n ERC-7786 Native\n "),Gh(u.$$.fragment),d=fh(),$&&$.c(),p=fh(),b&&b.c(),vh(i,"type","radio"),i.__value="custom",i.value=i.__value,xh(n,"checked","custom"===e[0].crossChainBridging),vh(c,"type","radio"),c.__value="erc7786native",c.value=c.__value,xh(s,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),f.p(i,c)},m(f,v){lh(f,t,v),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].crossChainBridging,sh(s,l),Kh(u,s,null),sh(t,d),$&&$.m(t,null),sh(t,p),b&&b.m(t,null),m=!0,h||(g=[gh(i,"change",e[28]),gh(c,"change",e[29])],h=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};32&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!m||1&r[0])&&xh(n,"checked","custom"===e[0].crossChainBridging),1&r[0]&&(c.checked=c.__value===e[0].crossChainBridging);const l={};32&r[1]&&(l.$$scope={dirty:r,ctx:e}),u.$set(l),(!m||1&r[0])&&xh(s,"checked","erc7786native"===e[0].crossChainBridging),e[5]?$?($.p(e,r),32&r[0]&&Vh($,1)):($=vw(e),$.c(),Vh($,1),$.m(t,p)):$&&(Fh(),Jh($,1,1,()=>{$=null}),Hh()),2&r[0]&&(v=!e[1]?.includes("superchain")),v?b?(b.p(e,r),2&r[0]&&Vh(b,1)):(b=bw(e),b.c(),Vh(b,1),b.m(t,null)):b&&(Fh(),Jh(b,1,1,()=>{b=null}),Hh())},i(e){m||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),Vh($),Vh(b),m=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),Jh($),Jh(b),m=!1},d(e){e&&uh(t),Xh(o),Xh(u),$&&$.d(),b&&b.d(),f.r(),h=!1,Kf(g)}}}function _w(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,$e,be,ye,ke,_e,xe,we,Ie,Se,Ee,Ce,ze,Oe,Te,Ue,Re,Ae,Pe;y=new o_({props:{$$slots:{default:[Yx]},$$scope:{ctx:e}}}),C=new o_({props:{$$slots:{default:[Qx]},$$scope:{ctx:e}}});let Ne=e[4]&&ew(e);function je(t){e[24](t)}L=new o_({props:{$$slots:{default:[nw]},$$scope:{ctx:e}}}),V=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Burnable",$$slots:{default:[iw]},$$scope:{ctx:e}}}),X=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[rw]},$$scope:{ctx:e}}}),ne=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC1363",$$slots:{default:[ow]},$$scope:{ctx:e}}}),se=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Permit",$$slots:{default:[aw]},$$scope:{ctx:e}}}),pe=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20FlashMint",$$slots:{default:[sw]},$$scope:{ctx:e}}}),ve=new o_({props:{$$slots:{default:[cw]},$$scope:{ctx:e}}});let De={label:"Restrictions*",defaultValue:"allowlist",helpContent:"Restricts certain users from transferring tokens, either via allowing or blocking them.",$$slots:{default:[dw]},$$scope:{ctx:e}};function Me(t){e[27](t)}void 0!==e[0].restrictions&&(De.value=e[0].restrictions),be=new I_({props:De}),Th.push(()=>Wh(be,"value",je));let Ze={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[fw]},$$scope:{ctx:e}};function Le(t){e[33](t)}void 0!==e[0].votes&&(Ze.value=e[0].votes),_e=new I_({props:Ze}),Th.push(()=>Wh(_e,"value",Me));let qe={label:"Crosschain Bridging",defaultValue:"custom",helpContent:"Allows authorized bridge contracts to mint and burn tokens for crosschain transfers.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[kw]},$$scope:{ctx:e}};function Be(t){e[34](t)}void 0!==e[0].crossChainBridging&&(qe.value=e[0].crossChainBridging),Ie=new I_({props:qe}),Th.push(()=>Wh(Ie,"value",Le));let Fe={required:e[6]};function He(t){e[35](t)}void 0!==e[0].access&&(Fe.access=e[0].access),Ce=new U_({props:Fe}),Th.push(()=>Wh(Ce,"access",Be));let Ve={errors:e[2]};return void 0!==e[0].info&&(Ve.info=e[0].info),Te=new V_({props:Ve}),Th.push(()=>Wh(Te,"info",He)),{c(){t=dh("section"),t.innerHTML='<div class="text-sm text-gray-500"><strong>* Experimental:</strong> \n <span class="italic">Some of the following features are not audited and are subject to change</span></div>',n=fh(),i=dh("section"),r=dh("h1"),r.textContent="Settings",o=fh(),a=dh("div"),s=dh("label"),c=dh("span"),c.textContent="Name",l=fh(),u=dh("input"),d=fh(),p=dh("label"),m=dh("span"),m.textContent="Symbol",f=fh(),h=dh("input"),g=fh(),v=dh("label"),$=dh("span"),b=mh("Decimals\n "),Gh(y.$$.fragment),k=fh(),_=dh("input"),w=fh(),I=dh("label"),S=dh("span"),E=mh("Premint\n "),Gh(C.$$.fragment),z=fh(),O=dh("input"),U=fh(),Ne&&Ne.c(),R=fh(),A=dh("section"),P=dh("h1"),P.textContent="Features",N=fh(),j=dh("div"),D=dh("label"),M=dh("input"),Z=mh("\n Mintable\n "),Gh(L.$$.fragment),q=fh(),B=dh("label"),F=dh("input"),H=mh("\n Burnable\n "),Gh(V.$$.fragment),J=fh(),W=dh("label"),G=dh("input"),K=mh("\n Pausable\n "),Gh(X.$$.fragment),Y=fh(),Q=dh("label"),ee=dh("input"),te=mh("\n Callback\n "),Gh(ne.$$.fragment),ie=fh(),re=dh("label"),oe=dh("input"),ae=mh("\n Permit\n "),Gh(se.$$.fragment),ce=fh(),le=dh("label"),ue=dh("input"),de=mh("\n Flash Minting\n "),Gh(pe.$$.fragment),me=fh(),fe=dh("label"),he=dh("input"),ge=mh("\n Freezable*\n "),Gh(ve.$$.fragment),$e=fh(),Gh(be.$$.fragment),ke=fh(),Gh(_e.$$.fragment),we=fh(),Gh(Ie.$$.fragment),Ee=fh(),Gh(Ce.$$.fragment),Oe=fh(),Gh(Te.$$.fragment),vh(t,"class","controls-section"),vh(s,"class","labeled-input"),vh(p,"class","labeled-input"),vh(a,"class","grid grid-cols-[2fr,1fr] gap-2"),vh($,"class","flex justify-between pr-2"),vh(v,"class","labeled-input"),vh(S,"class","flex justify-between pr-2"),vh(O,"placeholder","0"),vh(O,"pattern",P$.source),vh(I,"class","labeled-input"),vh(i,"class","controls-section"),vh(M,"type","checkbox"),xh(D,"checked",e[0].mintable),vh(F,"type","checkbox"),xh(B,"checked",e[0].burnable),vh(G,"type","checkbox"),xh(W,"checked",e[0].pausable),vh(ee,"type","checkbox"),xh(Q,"checked",e[0].callback),vh(oe,"type","checkbox"),xh(re,"checked",e[0].permit||e[0].votes),vh(ue,"type","checkbox"),xh(le,"checked",e[0].flashmint),vh(he,"type","checkbox"),xh(fe,"checked",e[0].freezable),vh(j,"class","checkbox-group"),vh(A,"class","controls-section")},m(ye,xe){lh(ye,t,xe),lh(ye,n,xe),lh(ye,i,xe),sh(i,r),sh(i,o),sh(i,a),sh(a,s),sh(s,c),sh(s,l),sh(s,u),kh(u,e[0].name),sh(a,d),sh(a,p),sh(p,m),sh(p,f),sh(p,h),kh(h,e[0].symbol),sh(i,g),sh(i,v),sh(v,$),sh($,b),Kh(y,$,null),sh(v,k),sh(v,_),kh(_,e[0].decimals),sh(i,w),sh(i,I),sh(I,S),sh(S,E),Kh(C,S,null),sh(I,z),sh(I,O),kh(O,e[0].premint),sh(i,U),Ne&&Ne.m(i,null),lh(ye,R,xe),lh(ye,A,xe),sh(A,P),sh(A,N),sh(A,j),sh(j,D),sh(D,M),M.checked=e[0].mintable,sh(D,Z),Kh(L,D,null),sh(j,q),sh(j,B),sh(B,F),F.checked=e[0].burnable,sh(B,H),Kh(V,B,null),sh(j,J),sh(j,W),sh(W,G),G.checked=e[0].pausable,sh(W,K),Kh(X,W,null),sh(j,Y),sh(j,Q),sh(Q,ee),ee.checked=e[0].callback,sh(Q,te),Kh(ne,Q,null),sh(j,ie),sh(j,re),sh(re,oe),oe.checked=e[0].permit,sh(re,ae),Kh(se,re,null),sh(j,ce),sh(j,le),sh(le,ue),ue.checked=e[0].flashmint,sh(le,de),Kh(pe,le,null),sh(j,me),sh(j,fe),sh(fe,he),he.checked=e[0].freezable,sh(fe,ge),Kh(ve,fe,null),lh(ye,$e,xe),Kh(be,ye,xe),lh(ye,ke,xe),Kh(_e,ye,xe),lh(ye,we,xe),Kh(Ie,ye,xe),lh(ye,Ee,xe),Kh(Ce,ye,xe),lh(ye,Oe,xe),Kh(Te,ye,xe),Re=!0,Ae||(Pe=[gh(u,"input",e[9]),gh(h,"input",e[10]),gh(_,"input",e[11]),ah(x=A_.call(null,_,e[2]?.decimals)),gh(O,"input",e[12]),ah(T=A_.call(null,O,e[2]?.premint)),gh(M,"change",e[14]),gh(F,"change",e[15]),gh(G,"change",e[16]),gh(ee,"change",e[17]),gh(oe,"change",e[18]),gh(ue,"change",e[19]),gh(he,"change",e[20])],Ae=!0)},p(e,t){1&t[0]&&u.value!==e[0].name&&kh(u,e[0].name),1&t[0]&&h.value!==e[0].symbol&&kh(h,e[0].symbol);const n={};32&t[1]&&(n.$$scope={dirty:t,ctx:e}),y.$set(n),1&t[0]&&_.value!==e[0].decimals&&kh(_,e[0].decimals),x&&Xf(x.update)&&4&t[0]&&x.update.call(null,e[2]?.decimals);const r={};32&t[1]&&(r.$$scope={dirty:t,ctx:e}),C.$set(r),1&t[0]&&O.value!==e[0].premint&&kh(O,e[0].premint),T&&Xf(T.update)&&4&t[0]&&T.update.call(null,e[2]?.premint),e[4]?Ne?(Ne.p(e,t),16&t[0]&&Vh(Ne,1)):(Ne=ew(e),Ne.c(),Vh(Ne,1),Ne.m(i,null)):Ne&&(Fh(),Jh(Ne,1,1,()=>{Ne=null}),Hh()),1&t[0]&&(M.checked=e[0].mintable);const o={};32&t[1]&&(o.$$scope={dirty:t,ctx:e}),L.$set(o),(!Re||1&t[0])&&xh(D,"checked",e[0].mintable),1&t[0]&&(F.checked=e[0].burnable);const a={};32&t[1]&&(a.$$scope={dirty:t,ctx:e}),V.$set(a),(!Re||1&t[0])&&xh(B,"checked",e[0].burnable),1&t[0]&&(G.checked=e[0].pausable);const s={};32&t[1]&&(s.$$scope={dirty:t,ctx:e}),X.$set(s),(!Re||1&t[0])&&xh(W,"checked",e[0].pausable),1&t[0]&&(ee.checked=e[0].callback);const c={};32&t[1]&&(c.$$scope={dirty:t,ctx:e}),ne.$set(c),(!Re||1&t[0])&&xh(Q,"checked",e[0].callback),1&t[0]&&(oe.checked=e[0].permit);const l={};32&t[1]&&(l.$$scope={dirty:t,ctx:e}),se.$set(l),(!Re||1&t[0])&&xh(re,"checked",e[0].permit||e[0].votes),1&t[0]&&(ue.checked=e[0].flashmint);const d={};32&t[1]&&(d.$$scope={dirty:t,ctx:e}),pe.$set(d),(!Re||1&t[0])&&xh(le,"checked",e[0].flashmint),1&t[0]&&(he.checked=e[0].freezable);const p={};32&t[1]&&(p.$$scope={dirty:t,ctx:e}),ve.$set(p),(!Re||1&t[0])&&xh(fe,"checked",e[0].freezable);const m={};1&t[0]|32&t[1]&&(m.$$scope={dirty:t,ctx:e}),!ye&&1&t[0]&&(ye=!0,m.value=e[0].restrictions,jh(()=>ye=!1)),be.$set(m);const f={};1&t[0]|32&t[1]&&(f.$$scope={dirty:t,ctx:e}),!xe&&1&t[0]&&(xe=!0,f.value=e[0].votes,jh(()=>xe=!1)),_e.$set(f);const g={};43&t[0]|32&t[1]&&(g.$$scope={dirty:t,ctx:e}),!Se&&1&t[0]&&(Se=!0,g.value=e[0].crossChainBridging,jh(()=>Se=!1)),Ie.$set(g);const v={};64&t[0]&&(v.required=e[6]),!ze&&1&t[0]&&(ze=!0,v.access=e[0].access,jh(()=>ze=!1)),Ce.$set(v);const $={};4&t[0]&&($.errors=e[2]),!Ue&&1&t[0]&&(Ue=!0,$.info=e[0].info,jh(()=>Ue=!1)),Te.$set($)},i(e){Re||(Vh(y.$$.fragment,e),Vh(C.$$.fragment,e),Vh(Ne),Vh(L.$$.fragment,e),Vh(V.$$.fragment,e),Vh(X.$$.fragment,e),Vh(ne.$$.fragment,e),Vh(se.$$.fragment,e),Vh(pe.$$.fragment,e),Vh(ve.$$.fragment,e),Vh(be.$$.fragment,e),Vh(_e.$$.fragment,e),Vh(Ie.$$.fragment,e),Vh(Ce.$$.fragment,e),Vh(Te.$$.fragment,e),Re=!0)},o(e){Jh(y.$$.fragment,e),Jh(C.$$.fragment,e),Jh(Ne),Jh(L.$$.fragment,e),Jh(V.$$.fragment,e),Jh(X.$$.fragment,e),Jh(ne.$$.fragment,e),Jh(se.$$.fragment,e),Jh(pe.$$.fragment,e),Jh(ve.$$.fragment,e),Jh(be.$$.fragment,e),Jh(_e.$$.fragment,e),Jh(Ie.$$.fragment,e),Jh(Ce.$$.fragment,e),Jh(Te.$$.fragment,e),Re=!1},d(e){e&&uh(t),e&&uh(n),e&&uh(i),Xh(y),Xh(C),Ne&&Ne.d(),e&&uh(R),e&&uh(A),Xh(L),Xh(V),Xh(X),Xh(ne),Xh(se),Xh(pe),Xh(ve),e&&uh($e),Xh(be,e),e&&uh(ke),Xh(_e,e),e&&uh(we),Xh(Ie,e),e&&uh(Ee),Xh(Ce,e),e&&uh(Oe),Xh(Te,e),Ae=!1,Kf(Pe)}}}function xw(e,t,n){let i,r,o,{opts:a={kind:"Stablecoin",...xb.defaults,premint:"",info:{...Jg}}}=t,{omitFeatures:s}=t,{errors:c}=t;zh(()=>{n(7,o=s?.includes("superchain")?void 0:Hk(r,Y_))});let l=!1,u=!1,d=!1;return e.$$set=e=>{"opts"in e&&n(0,a=e.opts),"omitFeatures"in e&&n(1,s=e.omitFeatures),"errors"in e&&n(2,c=e.errors)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(6,i=xb.isAccessControlRequired(a)),385&e.$$.dirty[0]&&(l||"superchain"!==a.crossChainBridging||o?.show(),n(8,l="superchain"===a.crossChainBridging)),1&e.$$.dirty[0]&&n(4,u=""!==a.premint&&"0"!==a.premint&&!1!==a.crossChainBridging),1&e.$$.dirty[0]&&n(5,d="erc7786native"===a.crossChainBridging)},[a,s,c,r,u,d,i,o,l,function(){a.name=this.value,n(0,a)},function(){a.symbol=this.value,n(0,a)},function(){a.decimals=this.value,n(0,a)},function(){a.premint=this.value,n(0,a)},function(){a.premintChainId=bh(this.value),n(0,a)},function(){a.mintable=this.checked,n(0,a)},function(){a.burnable=this.checked,n(0,a)},function(){a.pausable=this.checked,n(0,a)},function(){a.callback=this.checked,n(0,a)},function(){a.permit=this.checked,n(0,a)},function(){a.flashmint=this.checked,n(0,a)},function(){a.freezable=this.checked,n(0,a)},function(){a.restrictions=this.__value,n(0,a)},[[],[],[]],function(){a.restrictions=this.__value,n(0,a)},function(t){e.$$.not_equal(a.restrictions,t)&&(a.restrictions=t,n(0,a))},function(){a.votes=this.__value,n(0,a)},function(){a.votes=this.__value,n(0,a)},function(t){e.$$.not_equal(a.votes,t)&&(a.votes=t,n(0,a))},function(){a.crossChainBridging=this.__value,n(0,a)},function(){a.crossChainBridging=this.__value,n(0,a)},function(){a.crossChainLinkAllowOverride=this.checked,n(0,a)},function(){a.crossChainBridging=this.__value,n(0,a)},function(e){Th[e?"unshift":"push"](()=>{r=e,n(3,r)})},function(t){e.$$.not_equal(a.crossChainBridging,t)&&(a.crossChainBridging=t,n(0,a))},function(t){e.$$.not_equal(a.access,t)&&(a.access=t,n(0,a))},function(t){e.$$.not_equal(a.info,t)&&(a.info=t,n(0,a))}]}function ww(e){let t;return{c(){t=mh("The number of decimals used to represent token amounts. Defaults to 18.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Iw(e){let t;return{c(){t=mh("Create an initial amount of tokens for the deployer.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Sw(e){let t,n,i,r,o,a,s,c,l,u;return s=new o_({props:{$$slots:{default:[Ew]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=mh(" Chain ID:\n "),r=dh("input"),a=fh(),Gh(s.$$.fragment),vh(r,"type","number"),vh(r,"placeholder",""),vh(r,"pattern",N$.source),vh(r,"class","input-inline"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(d,p){lh(d,t,p),sh(t,n),sh(n,i),sh(n,r),kh(r,e[0].premintChainId),sh(t,a),Kh(s,t,null),c=!0,l||(u=[gh(r,"input",e[13]),ah(G_.call(null,r)),ah(o=A_.call(null,r,e[2]?.premintChainId))],l=!0)},p(e,t){1&t[0]&&bh(r.value)!==e[0].premintChainId&&kh(r,e[0].premintChainId),o&&Xf(o.update)&&4&t[0]&&o.update.call(null,e[2]?.premintChainId);const n={};32&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){c||(Vh(s.$$.fragment,e),c=!0)},o(e){Jh(s.$$.fragment,e),c=!1},d(e){e&&uh(t),Xh(s),l=!1,Kf(u)}}}function Ew(e){let t;return{c(){t=mh("Chain ID of the network on which to premint tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Cw(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function zw(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ow(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Tw(e){let t;return{c(){t=mh("Supports code execution after transfers and approvals on recipient contracts in a single transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Uw(e){let t,n,i,r,o,a,s;return r=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Permit",$$slots:{default:[Rw]},$$scope:{ctx:e}}}),{c(){t=dh("label"),n=dh("input"),i=mh("\n Permit\n "),Gh(r.$$.fragment),vh(n,"type","checkbox"),xh(t,"checked",e[0].permit||e[0].votes)},m(c,l){lh(c,t,l),sh(t,n),n.checked=e[0].permit,sh(t,i),Kh(r,t,null),o=!0,a||(s=gh(n,"change",e[18]),a=!0)},p(e,i){1&i[0]&&(n.checked=e[0].permit);const a={};32&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked",e[0].permit||e[0].votes)},i(e){o||(Vh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Xh(r),a=!1,s()}}}function Rw(e){let t;return{c(){t=mh("Without paying gas, token holders will be able to allow third parties to transfer from their account.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Aw(e){let t;return{c(){t=mh("Built-in flash loans. Lend tokens without requiring collateral as long as they're returned in the same\n transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Pw(e){let t;return{c(){t=mh("Authorized accounts can freeze and unfreeze accounts for regulatory or security purposes.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Nw(e){let t;return{c(){t=mh("Allows a list of addresses to transfer tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function jw(e){let t;return{c(){t=mh("Blocks a list of addresses from transferring tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Dw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{$$slots:{default:[Nw]},$$scope:{ctx:e}}}),u=new o_({props:{$$slots:{default:[jw]},$$scope:{ctx:e}}}),p=$h(e[22][2]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Allowlist*\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Blocklist*\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="allowlist",i.value=i.__value,xh(n,"checked","allowlist"===e[0].restrictions),vh(c,"type","radio"),c.__value="blocklist",c.value=c.__value,xh(s,"checked","blocklist"===e[0].restrictions),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].restrictions,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].restrictions,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[21]),gh(c,"change",e[23])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].restrictions);const r={};32&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","allowlist"===e[0].restrictions),1&t[0]&&(c.checked=c.__value===e[0].restrictions);const a={};32&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","blocklist"===e[0].restrictions)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function Mw(e){let t,n,i;function r(t){e[27](t)}let o={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[qw]},$$scope:{ctx:e}};return void 0!==e[0].votes&&(o.value=e[0].votes),t=new I_({props:o}),Th.push(()=>Wh(t,"value",r)),{c(){Gh(t.$$.fragment)},m(e,n){Kh(t,e,n),i=!0},p(e,i){const r={};1&i[0]|32&i[1]&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i[0]&&(n=!0,r.value=e[0].votes,jh(()=>n=!1)),t.$set(r)},i(e){i||(Vh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Xh(t,e)}}}function Zw(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Lw(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function qw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[Zw]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[Lw]},$$scope:{ctx:e}}}),p=$h(e[22][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[25]),gh(c,"change",e[26])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};32&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};32&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function Bw(e){let t;return{c(){t=mh("Uses custom bridge contract(s) as authorized token bridge(s).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Fw(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Hw(e){let t,n,i,r,o,a,s,c,l;return a=new o_({props:{$$slots:{default:[Vw]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Gh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Kh(a,t,null),s=!0,c||(l=gh(i,"change",e[30]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};32&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Vh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Xh(a),c=!1,l()}}}function Vw(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Jw(e){let t,n,i,r,o,a,s,c,l,u;return r=new W_({}),a=new o_({props:{link:"https://docs.optimism.io/stack/interop/superchain-erc20",$$slots:{default:[Ww]},$$scope:{ctx:e}}}),c=$h(e[22][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n SuperchainERC20 "),Gh(r.$$.fragment),o=fh(),Gh(a.$$.fragment),vh(n,"type","radio"),n.__value="superchain",n.value=n.__value,xh(t,"checked","superchain"===e[0].crossChainBridging),c.p(n)},m(c,d){lh(c,t,d),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Kh(r,t,null),sh(t,o),Kh(a,t,null),e[32](t),s=!0,l||(u=gh(n,"change",e[31]),l=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const r={};32&i[1]&&(r.$$scope={dirty:i,ctx:e}),a.$set(r),(!s||1&i[0])&&xh(t,"checked","superchain"===e[0].crossChainBridging)},i(e){s||(Vh(r.$$.fragment,e),Vh(a.$$.fragment,e),s=!0)},o(e){Jh(r.$$.fragment,e),Jh(a.$$.fragment,e),s=!1},d(n){n&&uh(t),Xh(r),Xh(a),e[32](null),c.r(),l=!1,u()}}}function Ww(e){let t,n,i;return{c(){t=mh("Uses the predeployed "),n=dh("code"),n.textContent="SuperchainTokenBridge",i=mh(" contract as the authorized token bridge. Only available\n on chains in the Superchain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Gw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v=!e[1]?.includes("superchain");o=new o_({props:{$$slots:{default:[Bw]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Crosschain",$$slots:{default:[Fw]},$$scope:{ctx:e}}});let $=e[5]&&Hw(e),b=v&&Jw(e);return f=$h(e[22][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Custom\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n ERC-7786 Native\n "),Gh(u.$$.fragment),d=fh(),$&&$.c(),p=fh(),b&&b.c(),vh(i,"type","radio"),i.__value="custom",i.value=i.__value,xh(n,"checked","custom"===e[0].crossChainBridging),vh(c,"type","radio"),c.__value="erc7786native",c.value=c.__value,xh(s,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),f.p(i,c)},m(f,v){lh(f,t,v),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].crossChainBridging,sh(s,l),Kh(u,s,null),sh(t,d),$&&$.m(t,null),sh(t,p),b&&b.m(t,null),m=!0,h||(g=[gh(i,"change",e[28]),gh(c,"change",e[29])],h=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};32&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!m||1&r[0])&&xh(n,"checked","custom"===e[0].crossChainBridging),1&r[0]&&(c.checked=c.__value===e[0].crossChainBridging);const l={};32&r[1]&&(l.$$scope={dirty:r,ctx:e}),u.$set(l),(!m||1&r[0])&&xh(s,"checked","erc7786native"===e[0].crossChainBridging),e[5]?$?($.p(e,r),32&r[0]&&Vh($,1)):($=Hw(e),$.c(),Vh($,1),$.m(t,p)):$&&(Fh(),Jh($,1,1,()=>{$=null}),Hh()),2&r[0]&&(v=!e[1]?.includes("superchain")),v?b?(b.p(e,r),2&r[0]&&Vh(b,1)):(b=Jw(e),b.c(),Vh(b,1),b.m(t,null)):b&&(Fh(),Jh(b,1,1,()=>{b=null}),Hh())},i(e){m||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),Vh($),Vh(b),m=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),Jh($),Jh(b),m=!1},d(e){e&&uh(t),Xh(o),Xh(u),$&&$.d(),b&&b.d(),f.r(),h=!1,Kf(g)}}}function Kw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,$e,be,ye,ke,_e,xe,we,Ie,Se,Ee,Ce,ze,Oe=!e[1]?.includes("permit"),Te=!e[1]?.includes("votes");y=new o_({props:{$$slots:{default:[ww]},$$scope:{ctx:e}}}),C=new o_({props:{$$slots:{default:[Iw]},$$scope:{ctx:e}}});let Ue=e[4]&&Sw(e);L=new o_({props:{$$slots:{default:[Cw]},$$scope:{ctx:e}}}),V=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Burnable",$$slots:{default:[zw]},$$scope:{ctx:e}}}),X=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[Ow]},$$scope:{ctx:e}}}),ne=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC1363",$$slots:{default:[Tw]},$$scope:{ctx:e}}});let Re=Oe&&Uw(e);function Ae(t){e[24](t)}ce=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20FlashMint",$$slots:{default:[Aw]},$$scope:{ctx:e}}}),me=new o_({props:{$$slots:{default:[Pw]},$$scope:{ctx:e}}});let Pe={label:"Restrictions*",defaultValue:"allowlist",helpContent:"Restricts certain users from transferring tokens, either via allowing or blocking them.",$$slots:{default:[Dw]},$$scope:{ctx:e}};void 0!==e[0].restrictions&&(Pe.value=e[0].restrictions),he=new I_({props:Pe}),Th.push(()=>Wh(he,"value",Ae));let Ne=Te&&Mw(e);function je(t){e[33](t)}let De={label:"Crosschain Bridging",defaultValue:"custom",helpContent:"Allows authorized bridge contracts to mint and burn tokens for crosschain transfers.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[Gw]},$$scope:{ctx:e}};function Me(t){e[34](t)}void 0!==e[0].crossChainBridging&&(De.value=e[0].crossChainBridging),be=new I_({props:De}),Th.push(()=>Wh(be,"value",je));let Ze={required:e[6]};function Le(t){e[35](t)}void 0!==e[0].access&&(Ze.access=e[0].access),_e=new U_({props:Ze}),Th.push(()=>Wh(_e,"access",Me));let qe={errors:e[2]};return void 0!==e[0].info&&(qe.info=e[0].info),Ie=new V_({props:qe}),Th.push(()=>Wh(Ie,"info",Le)),{c(){t=dh("section"),t.innerHTML='<div class="text-sm text-gray-500"><strong>* Experimental:</strong> \n <span class="italic">Some of the following features are not audited and are subject to change</span></div>',n=fh(),i=dh("section"),r=dh("h1"),r.textContent="Settings",o=fh(),a=dh("div"),s=dh("label"),c=dh("span"),c.textContent="Name",l=fh(),u=dh("input"),d=fh(),p=dh("label"),m=dh("span"),m.textContent="Symbol",f=fh(),h=dh("input"),g=fh(),v=dh("label"),$=dh("span"),b=mh("Decimals\n "),Gh(y.$$.fragment),k=fh(),_=dh("input"),w=fh(),I=dh("label"),S=dh("span"),E=mh("Premint\n "),Gh(C.$$.fragment),z=fh(),O=dh("input"),U=fh(),Ue&&Ue.c(),R=fh(),A=dh("section"),P=dh("h1"),P.textContent="Features",N=fh(),j=dh("div"),D=dh("label"),M=dh("input"),Z=mh("\n Mintable\n "),Gh(L.$$.fragment),q=fh(),B=dh("label"),F=dh("input"),H=mh("\n Burnable\n "),Gh(V.$$.fragment),J=fh(),W=dh("label"),G=dh("input"),K=mh("\n Pausable\n "),Gh(X.$$.fragment),Y=fh(),Q=dh("label"),ee=dh("input"),te=mh("\n Callback\n "),Gh(ne.$$.fragment),ie=fh(),Re&&Re.c(),re=fh(),oe=dh("label"),ae=dh("input"),se=mh("\n Flash Minting\n "),Gh(ce.$$.fragment),le=fh(),ue=dh("label"),de=dh("input"),pe=mh("\n Freezable*\n "),Gh(me.$$.fragment),fe=fh(),Gh(he.$$.fragment),ve=fh(),Ne&&Ne.c(),$e=fh(),Gh(be.$$.fragment),ke=fh(),Gh(_e.$$.fragment),we=fh(),Gh(Ie.$$.fragment),vh(t,"class","controls-section"),vh(s,"class","labeled-input"),vh(p,"class","labeled-input"),vh(a,"class","grid grid-cols-[2fr,1fr] gap-2"),vh($,"class","flex justify-between pr-2"),vh(v,"class","labeled-input"),vh(S,"class","flex justify-between pr-2"),vh(O,"placeholder","0"),vh(O,"pattern",P$.source),vh(I,"class","labeled-input"),vh(i,"class","controls-section"),vh(M,"type","checkbox"),xh(D,"checked",e[0].mintable),vh(F,"type","checkbox"),xh(B,"checked",e[0].burnable),vh(G,"type","checkbox"),xh(W,"checked",e[0].pausable),vh(ee,"type","checkbox"),xh(Q,"checked",e[0].callback),vh(ae,"type","checkbox"),xh(oe,"checked",e[0].flashmint),vh(de,"type","checkbox"),xh(ue,"checked",e[0].freezable),vh(j,"class","checkbox-group"),vh(A,"class","controls-section")},m(ge,ye){lh(ge,t,ye),lh(ge,n,ye),lh(ge,i,ye),sh(i,r),sh(i,o),sh(i,a),sh(a,s),sh(s,c),sh(s,l),sh(s,u),kh(u,e[0].name),sh(a,d),sh(a,p),sh(p,m),sh(p,f),sh(p,h),kh(h,e[0].symbol),sh(i,g),sh(i,v),sh(v,$),sh($,b),Kh(y,$,null),sh(v,k),sh(v,_),kh(_,e[0].decimals),sh(i,w),sh(i,I),sh(I,S),sh(S,E),Kh(C,S,null),sh(I,z),sh(I,O),kh(O,e[0].premint),sh(i,U),Ue&&Ue.m(i,null),lh(ge,R,ye),lh(ge,A,ye),sh(A,P),sh(A,N),sh(A,j),sh(j,D),sh(D,M),M.checked=e[0].mintable,sh(D,Z),Kh(L,D,null),sh(j,q),sh(j,B),sh(B,F),F.checked=e[0].burnable,sh(B,H),Kh(V,B,null),sh(j,J),sh(j,W),sh(W,G),G.checked=e[0].pausable,sh(W,K),Kh(X,W,null),sh(j,Y),sh(j,Q),sh(Q,ee),ee.checked=e[0].callback,sh(Q,te),Kh(ne,Q,null),sh(j,ie),Re&&Re.m(j,null),sh(j,re),sh(j,oe),sh(oe,ae),ae.checked=e[0].flashmint,sh(oe,se),Kh(ce,oe,null),sh(j,le),sh(j,ue),sh(ue,de),de.checked=e[0].freezable,sh(ue,pe),Kh(me,ue,null),lh(ge,fe,ye),Kh(he,ge,ye),lh(ge,ve,ye),Ne&&Ne.m(ge,ye),lh(ge,$e,ye),Kh(be,ge,ye),lh(ge,ke,ye),Kh(_e,ge,ye),lh(ge,we,ye),Kh(Ie,ge,ye),Ee=!0,Ce||(ze=[gh(u,"input",e[9]),gh(h,"input",e[10]),gh(_,"input",e[11]),ah(x=A_.call(null,_,e[2]?.decimals)),gh(O,"input",e[12]),ah(T=A_.call(null,O,e[2]?.premint)),gh(M,"change",e[14]),gh(F,"change",e[15]),gh(G,"change",e[16]),gh(ee,"change",e[17]),gh(ae,"change",e[19]),gh(de,"change",e[20])],Ce=!0)},p(e,t){1&t[0]&&u.value!==e[0].name&&kh(u,e[0].name),1&t[0]&&h.value!==e[0].symbol&&kh(h,e[0].symbol);const n={};32&t[1]&&(n.$$scope={dirty:t,ctx:e}),y.$set(n),1&t[0]&&_.value!==e[0].decimals&&kh(_,e[0].decimals),x&&Xf(x.update)&&4&t[0]&&x.update.call(null,e[2]?.decimals);const r={};32&t[1]&&(r.$$scope={dirty:t,ctx:e}),C.$set(r),1&t[0]&&O.value!==e[0].premint&&kh(O,e[0].premint),T&&Xf(T.update)&&4&t[0]&&T.update.call(null,e[2]?.premint),e[4]?Ue?(Ue.p(e,t),16&t[0]&&Vh(Ue,1)):(Ue=Sw(e),Ue.c(),Vh(Ue,1),Ue.m(i,null)):Ue&&(Fh(),Jh(Ue,1,1,()=>{Ue=null}),Hh()),1&t[0]&&(M.checked=e[0].mintable);const o={};32&t[1]&&(o.$$scope={dirty:t,ctx:e}),L.$set(o),(!Ee||1&t[0])&&xh(D,"checked",e[0].mintable),1&t[0]&&(F.checked=e[0].burnable);const a={};32&t[1]&&(a.$$scope={dirty:t,ctx:e}),V.$set(a),(!Ee||1&t[0])&&xh(B,"checked",e[0].burnable),1&t[0]&&(G.checked=e[0].pausable);const s={};32&t[1]&&(s.$$scope={dirty:t,ctx:e}),X.$set(s),(!Ee||1&t[0])&&xh(W,"checked",e[0].pausable),1&t[0]&&(ee.checked=e[0].callback);const c={};32&t[1]&&(c.$$scope={dirty:t,ctx:e}),ne.$set(c),(!Ee||1&t[0])&&xh(Q,"checked",e[0].callback),2&t[0]&&(Oe=!e[1]?.includes("permit")),Oe?Re?(Re.p(e,t),2&t[0]&&Vh(Re,1)):(Re=Uw(e),Re.c(),Vh(Re,1),Re.m(j,re)):Re&&(Fh(),Jh(Re,1,1,()=>{Re=null}),Hh()),1&t[0]&&(ae.checked=e[0].flashmint);const l={};32&t[1]&&(l.$$scope={dirty:t,ctx:e}),ce.$set(l),(!Ee||1&t[0])&&xh(oe,"checked",e[0].flashmint),1&t[0]&&(de.checked=e[0].freezable);const d={};32&t[1]&&(d.$$scope={dirty:t,ctx:e}),me.$set(d),(!Ee||1&t[0])&&xh(ue,"checked",e[0].freezable);const p={};1&t[0]|32&t[1]&&(p.$$scope={dirty:t,ctx:e}),!ge&&1&t[0]&&(ge=!0,p.value=e[0].restrictions,jh(()=>ge=!1)),he.$set(p),2&t[0]&&(Te=!e[1]?.includes("votes")),Te?Ne?(Ne.p(e,t),2&t[0]&&Vh(Ne,1)):(Ne=Mw(e),Ne.c(),Vh(Ne,1),Ne.m($e.parentNode,$e)):Ne&&(Fh(),Jh(Ne,1,1,()=>{Ne=null}),Hh());const m={};43&t[0]|32&t[1]&&(m.$$scope={dirty:t,ctx:e}),!ye&&1&t[0]&&(ye=!0,m.value=e[0].crossChainBridging,jh(()=>ye=!1)),be.$set(m);const f={};64&t[0]&&(f.required=e[6]),!xe&&1&t[0]&&(xe=!0,f.access=e[0].access,jh(()=>xe=!1)),_e.$set(f);const g={};4&t[0]&&(g.errors=e[2]),!Se&&1&t[0]&&(Se=!0,g.info=e[0].info,jh(()=>Se=!1)),Ie.$set(g)},i(e){Ee||(Vh(y.$$.fragment,e),Vh(C.$$.fragment,e),Vh(Ue),Vh(L.$$.fragment,e),Vh(V.$$.fragment,e),Vh(X.$$.fragment,e),Vh(ne.$$.fragment,e),Vh(Re),Vh(ce.$$.fragment,e),Vh(me.$$.fragment,e),Vh(he.$$.fragment,e),Vh(Ne),Vh(be.$$.fragment,e),Vh(_e.$$.fragment,e),Vh(Ie.$$.fragment,e),Ee=!0)},o(e){Jh(y.$$.fragment,e),Jh(C.$$.fragment,e),Jh(Ue),Jh(L.$$.fragment,e),Jh(V.$$.fragment,e),Jh(X.$$.fragment,e),Jh(ne.$$.fragment,e),Jh(Re),Jh(ce.$$.fragment,e),Jh(me.$$.fragment,e),Jh(he.$$.fragment,e),Jh(Ne),Jh(be.$$.fragment,e),Jh(_e.$$.fragment,e),Jh(Ie.$$.fragment,e),Ee=!1},d(e){e&&uh(t),e&&uh(n),e&&uh(i),Xh(y),Xh(C),Ue&&Ue.d(),e&&uh(R),e&&uh(A),Xh(L),Xh(V),Xh(X),Xh(ne),Re&&Re.d(),Xh(ce),Xh(me),e&&uh(fe),Xh(he,e),e&&uh(ve),Ne&&Ne.d(e),e&&uh($e),Xh(be,e),e&&uh(ke),Xh(_e,e),e&&uh(we),Xh(Ie,e),Ce=!1,Kf(ze)}}}function Xw(e,t,n){let i,r,o,{opts:a={kind:"RealWorldAsset",...Ib.defaults,name:"MyRWA",symbol:"RWA",premint:"",info:{...Jg}}}=t,{omitFeatures:s}=t,{errors:c}=t;zh(()=>{n(7,o=s?.includes("superchain")?void 0:Hk(r,Y_))});let l=!1,u=!1,d=!1;return e.$$set=e=>{"opts"in e&&n(0,a=e.opts),"omitFeatures"in e&&n(1,s=e.omitFeatures),"errors"in e&&n(2,c=e.errors)},e.$$.update=()=>{1&e.$$.dirty[0]&&n(6,i=Ib.isAccessControlRequired(a)),385&e.$$.dirty[0]&&(l||"superchain"!==a.crossChainBridging||o?.show(),n(8,l="superchain"===a.crossChainBridging)),1&e.$$.dirty[0]&&n(4,u=""!==a.premint&&"0"!==a.premint&&!1!==a.crossChainBridging),1&e.$$.dirty[0]&&n(5,d="erc7786native"===a.crossChainBridging)},[a,s,c,r,u,d,i,o,l,function(){a.name=this.value,n(0,a)},function(){a.symbol=this.value,n(0,a)},function(){a.decimals=this.value,n(0,a)},function(){a.premint=this.value,n(0,a)},function(){a.premintChainId=bh(this.value),n(0,a)},function(){a.mintable=this.checked,n(0,a)},function(){a.burnable=this.checked,n(0,a)},function(){a.pausable=this.checked,n(0,a)},function(){a.callback=this.checked,n(0,a)},function(){a.permit=this.checked,n(0,a)},function(){a.flashmint=this.checked,n(0,a)},function(){a.freezable=this.checked,n(0,a)},function(){a.restrictions=this.__value,n(0,a)},[[],[],[]],function(){a.restrictions=this.__value,n(0,a)},function(t){e.$$.not_equal(a.restrictions,t)&&(a.restrictions=t,n(0,a))},function(){a.votes=this.__value,n(0,a)},function(){a.votes=this.__value,n(0,a)},function(t){e.$$.not_equal(a.votes,t)&&(a.votes=t,n(0,a))},function(){a.crossChainBridging=this.__value,n(0,a)},function(){a.crossChainBridging=this.__value,n(0,a)},function(){a.crossChainLinkAllowOverride=this.checked,n(0,a)},function(){a.crossChainBridging=this.__value,n(0,a)},function(e){Th[e?"unshift":"push"](()=>{r=e,n(3,r)})},function(t){e.$$.not_equal(a.crossChainBridging,t)&&(a.crossChainBridging=t,n(0,a))},function(t){e.$$.not_equal(a.access,t)&&(a.access=t,n(0,a))},function(t){e.$$.not_equal(a.info,t)&&(a.info=t,n(0,a))}]}function Yw(e){let t,n,i;return{c(){t=mh("Enables smart contracts to validate signatures through a standard "),n=dh("code"),n.textContent="isValidSignature",i=mh(" method. Unlike EOAs\n (regular accounts) that use private keys, this allows contracts to implement custom signature validation logic, making\n them capable of acting as signing entities for operations like approvals, swaps, or any signed messages.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Qw(e){let t;return{c(){t=mh("Enhances signature security by using a defensive rehashing scheme that prevents signature replay attacks across\n multiple smart accounts owned by the same private key. This preserves the readability of signed contents while\n ensuring each signature is uniquely bound to a specific account and chain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function eI(e){let t;return{c(){t=mh("Implement native support for receiving ERC-721 tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function tI(e){let t;return{c(){t=mh("Implement native support for receiving ERC-1155 tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function nI(e){let t;return{c(){t=mh("Enables atomic execution of multiple transactions in a single operation, reducing total transaction costs and\n latency.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function iI(e){let t;return{c(){t=mh("Enables a modular architecture where account functionality can be extended through installation and\n uninstallation of external contracts (modules) and enhances batched execution. Supports validators for signature\n verification, executors for transaction handling, and fallback handlers for additional features. Hooks are not\n supported by default.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function rI(e){let t;return{c(){t=mh("Enables custom logic to be executed before and after account operations. A hook can validate transactions, track\n state changes, implement security checks, or add any custom behavior around executions and module management.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function oI(e){let t;return{c(){t=mh("Standard Ethereum signature validation using secp256k1. Validates signatures against a specified owner address,\n making it suitable for accounts controlled by EOAs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function aI(e){let t;return{c(){t=mh("Special ECDSA validation that uses the account's own address as the signer. Enables EOAs to delegate execution\n rights to the account while maintaining their native signature verification.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function sI(e){let t;return{c(){t=mh("ERC-7913 multisignature validation requiring a minimum number of signatures to approve operations. The contract\n maintains a set of authorized signers and validates that the number of valid signatures meets the threshold\n requirement.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function cI(e){let t;return{c(){t=mh("Weighted version of ERC-7913 multisignature validation. Signers have different voting weights, allowing for\n flexible governance. The total weight of valid signatures must meet the threshold requirement.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function lI(e){let t;return{c(){t=mh("Signature validation using the NIST P-256 curve (secp256r1). Useful for integrating with external systems and\n hardware that use this standardized curve, such as Apple's Passkeys or certain HSMs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function uI(e){let t;return{c(){t=mh("RSA PKCS#1 v1.5 signature validation following RFC8017. Enables integration with traditional PKI systems and\n hardware security modules that use RSA keys.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function dI(e){let t;return{c(){t=mh("Web Authentication (WebAuthn) assertion validation for integration with Passkeys and HSMs on top of P256.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function pI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#ECDSA",$$slots:{default:[oI]},$$scope:{ctx:e}}}),d=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/eoa-delegation",$$slots:{default:[aI]},$$scope:{ctx:e}}}),g=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/multisig",$$slots:{default:[sI]},$$scope:{ctx:e}}}),k=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/multisig#multisignererc7913weighted",$$slots:{default:[cI]},$$scope:{ctx:e}}}),S=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#P256",$$slots:{default:[lI]},$$scope:{ctx:e}}}),T=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#RSA",$$slots:{default:[uI]},$$scope:{ctx:e}}}),N=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#WebAuthn",$$slots:{default:[dI]},$$scope:{ctx:e}}}),D=$h(e[14][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n ECDSA\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),u=mh("\n EOA Delegation\n "),Gh(d.$$.fragment),p=fh(),m=dh("label"),f=dh("input"),h=mh("\n Multisig\n "),Gh(g.$$.fragment),v=fh(),$=dh("label"),b=dh("input"),y=mh("\n Multisig Weighted\n "),Gh(k.$$.fragment),_=fh(),x=dh("label"),w=dh("input"),I=mh("\n P256\n "),Gh(S.$$.fragment),E=fh(),C=dh("label"),z=dh("input"),O=mh("\n RSA\n "),Gh(T.$$.fragment),U=fh(),R=dh("label"),A=dh("input"),P=mh("\n WebAuthn\n "),Gh(N.$$.fragment),vh(i,"type","radio"),i.__value="ECDSA",i.value=i.__value,xh(n,"checked","ECDSA"===e[0].signer),vh(c,"type","radio"),c.__value="EIP7702",c.value=c.__value,xh(s,"checked","EIP7702"===e[0].signer),vh(f,"type","radio"),f.__value="Multisig",f.value=f.__value,xh(m,"checked","Multisig"===e[0].signer),vh(b,"type","radio"),b.__value="MultisigWeighted",b.value=b.__value,xh($,"checked","MultisigWeighted"===e[0].signer),vh(w,"type","radio"),w.__value="P256",w.value=w.__value,xh(x,"checked","P256"===e[0].signer),vh(z,"type","radio"),z.__value="RSA",z.value=z.__value,xh(C,"checked","RSA"===e[0].signer),vh(A,"type","radio"),A.__value="WebAuthn",A.value=A.__value,xh(R,"checked","WebAuthn"===e[0].signer),vh(t,"class","checkbox-group"),D.p(i,c,f,b,w,z,A)},m(D,L){lh(D,t,L),sh(t,n),sh(n,i),i.checked=i.__value===e[0].signer,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].signer,sh(s,u),Kh(d,s,null),sh(t,p),sh(t,m),sh(m,f),f.checked=f.__value===e[0].signer,sh(m,h),Kh(g,m,null),sh(t,v),sh(t,$),sh($,b),b.checked=b.__value===e[0].signer,sh($,y),Kh(k,$,null),sh(t,_),sh(t,x),sh(x,w),w.checked=w.__value===e[0].signer,sh(x,I),Kh(S,x,null),sh(t,E),sh(t,C),sh(C,z),z.checked=z.__value===e[0].signer,sh(C,O),Kh(T,C,null),sh(t,U),sh(t,R),sh(R,A),A.checked=A.__value===e[0].signer,sh(R,P),Kh(N,R,null),j=!0,M||(Z=[gh(i,"change",e[13]),gh(c,"change",e[15]),ah(l=A_.call(null,c,e[1]?.eip7702)),gh(f,"change",e[16]),gh(b,"change",e[17]),gh(w,"change",e[18]),gh(z,"change",e[19]),gh(A,"change",e[20])],M=!0)},p(e,t){1&t&&(i.checked=i.__value===e[0].signer);const r={};16777216&t&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!j||1&t)&&xh(n,"checked","ECDSA"===e[0].signer),1&t&&(c.checked=c.__value===e[0].signer),l&&Xf(l.update)&&2&t&&l.update.call(null,e[1]?.eip7702);const a={};16777216&t&&(a.$$scope={dirty:t,ctx:e}),d.$set(a),(!j||1&t)&&xh(s,"checked","EIP7702"===e[0].signer),1&t&&(f.checked=f.__value===e[0].signer);const u={};16777216&t&&(u.$$scope={dirty:t,ctx:e}),g.$set(u),(!j||1&t)&&xh(m,"checked","Multisig"===e[0].signer),1&t&&(b.checked=b.__value===e[0].signer);const p={};16777216&t&&(p.$$scope={dirty:t,ctx:e}),k.$set(p),(!j||1&t)&&xh($,"checked","MultisigWeighted"===e[0].signer),1&t&&(w.checked=w.__value===e[0].signer);const h={};16777216&t&&(h.$$scope={dirty:t,ctx:e}),S.$set(h),(!j||1&t)&&xh(x,"checked","P256"===e[0].signer),1&t&&(z.checked=z.__value===e[0].signer);const v={};16777216&t&&(v.$$scope={dirty:t,ctx:e}),T.$set(v),(!j||1&t)&&xh(C,"checked","RSA"===e[0].signer),1&t&&(A.checked=A.__value===e[0].signer);const y={};16777216&t&&(y.$$scope={dirty:t,ctx:e}),N.$set(y),(!j||1&t)&&xh(R,"checked","WebAuthn"===e[0].signer)},i(e){j||(Vh(o.$$.fragment,e),Vh(d.$$.fragment,e),Vh(g.$$.fragment,e),Vh(k.$$.fragment,e),Vh(S.$$.fragment,e),Vh(T.$$.fragment,e),Vh(N.$$.fragment,e),j=!0)},o(e){Jh(o.$$.fragment,e),Jh(d.$$.fragment,e),Jh(g.$$.fragment,e),Jh(k.$$.fragment,e),Jh(S.$$.fragment,e),Jh(T.$$.fragment,e),Jh(N.$$.fragment,e),j=!1},d(e){e&&uh(t),Xh(o),Xh(d),Xh(g),Xh(k),Xh(S),Xh(T),Xh(N),D.r(),M=!1,Kf(Z)}}}function mI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me;function fe(t){e[21](t)}$=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/accounts#signature_validation",$$slots:{default:[Yw]},$$scope:{ctx:e}}}),w=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/accounts#erc_7739_signatures",$$slots:{default:[Qw]},$$scope:{ctx:e}}}),O=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Holder",$$slots:{default:[eI]},$$scope:{ctx:e}}}),N=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Holder",$$slots:{default:[tI]},$$scope:{ctx:e}}}),B=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/accounts#batched_execution",$$slots:{default:[nI]},$$scope:{ctx:e}}}),G=new o_({props:{link:"https://eips.ethereum.org/EIPS/eip-7579",$$slots:{default:[iI]},$$scope:{ctx:e}}}),te=new o_({props:{link:"https://eips.ethereum.org/EIPS/eip-7579#hooks",$$slots:{default:[rI]},$$scope:{ctx:e}}});let he={label:"Signer",defaultValue:"ECDSA",helpContent:"Defines the base signature validation mechanism for the account. This implementation will be used to validate user operations following ERC-4337 or by ERC-1271's <code>isValidSignature</code> to verify signatures on behalf of the account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/accounts#selecting_a_signer",$$slots:{default:[pI]},$$scope:{ctx:e}};function ge(t){e[22](t)}void 0!==e[0].signer&&(he.value=e[0].signer),ie=new I_({props:he}),Th.push(()=>Wh(ie,"value",fe));let ve={disabled:e[2],disabledReason:e[3]};function $e(t){e[23](t)}void 0!==e[0].upgradeable&&(ve.upgradeable=e[0].upgradeable),ae=new q_({props:ve}),Th.push(()=>Wh(ae,"upgradeable",ge));let be={errors:e[1]};return void 0!==e[0].info&&(be.info=e[0].info),le=new V_({props:be}),Th.push(()=>Wh(le,"info",$e)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("section"),u=dh("h1"),u.textContent="Features",d=fh(),p=dh("div"),m=dh("label"),f=dh("input"),v=mh("\n Signature Validation\n "),Gh($.$$.fragment),b=fh(),y=dh("label"),k=dh("input"),x=mh("\n Account Bound\n "),Gh(w.$$.fragment),I=fh(),S=dh("label"),E=dh("input"),z=mh("\n ERC721 Holder\n "),Gh(O.$$.fragment),T=fh(),U=dh("label"),R=dh("input"),P=mh("\n ERC1155 Holder\n "),Gh(N.$$.fragment),j=fh(),D=dh("label"),M=dh("input"),q=mh("\n Batched Execution\n "),Gh(B.$$.fragment),F=fh(),H=dh("label"),V=dh("input"),W=mh("\n Modules\n "),Gh(G.$$.fragment),K=fh(),X=dh("label"),Y=dh("input"),ee=mh("\n Hooked\n "),Gh(te.$$.fragment),ne=fh(),Gh(ie.$$.fragment),oe=fh(),Gh(ae.$$.fragment),ce=fh(),Gh(le.$$.fragment),vh(r,"class","labeled-input"),vh(t,"class","controls-section"),vh(f,"type","checkbox"),f.checked=h=!!e[0].signatureValidation||!!e[0].ERC7579Modules,f.disabled=g=!!e[0].ERC7579Modules,xh(m,"checked",!!e[0].signatureValidation),vh(k,"type","checkbox"),k.checked=_="ERC7739"===e[0].signatureValidation,vh(y,"class","subcontrol"),xh(y,"checked","ERC7739"===e[0].signatureValidation),vh(E,"type","checkbox"),E.checked=C=!!e[0].ERC721Holder,xh(S,"checked",e[0].ERC721Holder),vh(R,"type","checkbox"),R.checked=A=!!e[0].ERC1155Holder,xh(U,"checked",e[0].ERC1155Holder),vh(M,"type","checkbox"),M.checked=Z=!!e[0].batchedExecution||!!e[0].ERC7579Modules,M.disabled=L=!!e[0].ERC7579Modules,xh(D,"checked",e[0].batchedExecution),vh(V,"type","checkbox"),V.checked=J=!!e[0].ERC7579Modules,xh(H,"checked",!!e[0].ERC7579Modules),vh(Y,"type","checkbox"),Y.checked=Q="AccountERC7579Hooked"===e[0].ERC7579Modules,vh(X,"class","subcontrol"),xh(X,"checked","AccountERC7579Hooked"===e[0].ERC7579Modules),vh(p,"class","checkbox-group"),vh(l,"class","controls-section")},m(h,g){lh(h,t,g),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),lh(h,c,g),lh(h,l,g),sh(l,u),sh(l,d),sh(l,p),sh(p,m),sh(m,f),sh(m,v),Kh($,m,null),sh(p,b),sh(p,y),sh(y,k),sh(y,x),Kh(w,y,null),sh(p,I),sh(p,S),sh(S,E),sh(S,z),Kh(O,S,null),sh(p,T),sh(p,U),sh(U,R),sh(U,P),Kh(N,U,null),sh(p,j),sh(p,D),sh(D,M),sh(D,q),Kh(B,D,null),sh(p,F),sh(p,H),sh(H,V),sh(H,W),Kh(G,H,null),sh(p,K),sh(p,X),sh(X,Y),sh(X,ee),Kh(te,X,null),lh(h,ne,g),Kh(ie,h,g),lh(h,oe,g),Kh(ae,h,g),lh(h,ce,g),Kh(le,h,g),de=!0,pe||(me=[gh(s,"input",e[5]),gh(f,"change",e[6]),gh(k,"change",e[7]),gh(E,"change",e[8]),gh(R,"change",e[9]),gh(M,"change",e[10]),gh(V,"change",e[11]),gh(Y,"change",e[12])],pe=!0)},p(e,[t]){1&t&&s.value!==e[0].name&&kh(s,e[0].name),(!de||1&t&&h!==(h=!!e[0].signatureValidation||!!e[0].ERC7579Modules))&&(f.checked=h),(!de||1&t&&g!==(g=!!e[0].ERC7579Modules))&&(f.disabled=g);const n={};16777216&t&&(n.$$scope={dirty:t,ctx:e}),$.$set(n),(!de||1&t)&&xh(m,"checked",!!e[0].signatureValidation),(!de||1&t&&_!==(_="ERC7739"===e[0].signatureValidation))&&(k.checked=_);const i={};16777216&t&&(i.$$scope={dirty:t,ctx:e}),w.$set(i),(!de||1&t)&&xh(y,"checked","ERC7739"===e[0].signatureValidation),(!de||1&t&&C!==(C=!!e[0].ERC721Holder))&&(E.checked=C);const r={};16777216&t&&(r.$$scope={dirty:t,ctx:e}),O.$set(r),(!de||1&t)&&xh(S,"checked",e[0].ERC721Holder),(!de||1&t&&A!==(A=!!e[0].ERC1155Holder))&&(R.checked=A);const o={};16777216&t&&(o.$$scope={dirty:t,ctx:e}),N.$set(o),(!de||1&t)&&xh(U,"checked",e[0].ERC1155Holder),(!de||1&t&&Z!==(Z=!!e[0].batchedExecution||!!e[0].ERC7579Modules))&&(M.checked=Z),(!de||1&t&&L!==(L=!!e[0].ERC7579Modules))&&(M.disabled=L);const a={};16777216&t&&(a.$$scope={dirty:t,ctx:e}),B.$set(a),(!de||1&t)&&xh(D,"checked",e[0].batchedExecution),(!de||1&t&&J!==(J=!!e[0].ERC7579Modules))&&(V.checked=J);const c={};16777216&t&&(c.$$scope={dirty:t,ctx:e}),G.$set(c),(!de||1&t)&&xh(H,"checked",!!e[0].ERC7579Modules),(!de||1&t&&Q!==(Q="AccountERC7579Hooked"===e[0].ERC7579Modules))&&(Y.checked=Q);const l={};16777216&t&&(l.$$scope={dirty:t,ctx:e}),te.$set(l),(!de||1&t)&&xh(X,"checked","AccountERC7579Hooked"===e[0].ERC7579Modules);const u={};16777219&t&&(u.$$scope={dirty:t,ctx:e}),!re&&1&t&&(re=!0,u.value=e[0].signer,jh(()=>re=!1)),ie.$set(u);const d={};4&t&&(d.disabled=e[2]),8&t&&(d.disabledReason=e[3]),!se&&1&t&&(se=!0,d.upgradeable=e[0].upgradeable,jh(()=>se=!1)),ae.$set(d);const p={};2&t&&(p.errors=e[1]),!ue&&1&t&&(ue=!0,p.info=e[0].info,jh(()=>ue=!1)),le.$set(p)},i(e){de||(Vh($.$$.fragment,e),Vh(w.$$.fragment,e),Vh(O.$$.fragment,e),Vh(N.$$.fragment,e),Vh(B.$$.fragment,e),Vh(G.$$.fragment,e),Vh(te.$$.fragment,e),Vh(ie.$$.fragment,e),Vh(ae.$$.fragment,e),Vh(le.$$.fragment,e),de=!0)},o(e){Jh($.$$.fragment,e),Jh(w.$$.fragment,e),Jh(O.$$.fragment,e),Jh(N.$$.fragment,e),Jh(B.$$.fragment,e),Jh(G.$$.fragment,e),Jh(te.$$.fragment,e),Jh(ie.$$.fragment,e),Jh(ae.$$.fragment,e),Jh(le.$$.fragment,e),de=!1},d(e){e&&uh(t),e&&uh(c),e&&uh(l),Xh($),Xh(w),Xh(O),Xh(N),Xh(B),Xh(G),Xh(te),e&&uh(ne),Xh(ie,e),e&&uh(oe),Xh(ae,e),e&&uh(ce),Xh(le,e),pe=!1,Kf(me)}}}function fI(e,t,n){let{opts:i={kind:"Account",...wb.defaults}}=t,r=!1,o=!1,a="",{errors:s}=t;return e.$$set=e=>{"opts"in e&&n(0,i=e.opts),"errors"in e&&n(1,s=e.errors)},e.$$.update=()=>{17&e.$$.dirty&&(!r&&i.ERC7579Modules&&n(0,i.signatureValidation="ERC7739",i),n(4,r=!!i.ERC7579Modules)),1&e.$$.dirty&&("EIP7702"===i.signer?(n(2,o=!0),n(3,a="EOAs can upgrade by redelegating to a new account")):(n(2,o=!1),n(3,a="")))},[i,s,o,a,r,function(){i.name=this.value,n(0,i),n(4,r)},e=>{e.currentTarget?.checked?n(0,i.signatureValidation="ERC7739",i):n(0,i.signatureValidation=!1,i)},e=>{e.currentTarget?.checked?n(0,i.signatureValidation="ERC7739",i):n(0,i.signatureValidation="ERC1271",i)},e=>{n(0,i.ERC721Holder=e.currentTarget?.checked,i)},e=>{n(0,i.ERC1155Holder=e.currentTarget?.checked,i)},e=>{n(0,i.batchedExecution=e.currentTarget?.checked,i)},e=>{e.currentTarget?.checked?n(0,i.ERC7579Modules="AccountERC7579",i):n(0,i.ERC7579Modules=!1,i)},e=>{e.currentTarget?.checked?n(0,i.ERC7579Modules="AccountERC7579Hooked",i):n(0,i.ERC7579Modules="AccountERC7579",i)},function(){i.signer=this.__value,n(0,i),n(4,r)},[[]],function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(t){e.$$.not_equal(i.signer,t)&&(i.signer=t,n(0,i),n(4,r))},function(t){e.$$.not_equal(i.upgradeable,t)&&(i.upgradeable=t,n(0,i),n(4,r))},function(t){e.$$.not_equal(i.info,t)&&(i.info=t,n(0,i),n(4,r))}]}function hI(e){let t;return{c(){t=mh("Delay since proposal is created until voting starts.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function gI(e){let t;return{c(){t=mh("Length of period during which people can cast their vote.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function vI(e){let t;return{c(){t=mh("Minimum number of votes an account must have to create a proposal.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function $I(e){let t;return{c(){t=mh("Quorum required for a proposal to pass.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function bI(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"id","quorum-input")},m(o,a){lh(o,t,a),kh(t,e[0].quorumAbsolute),e[20](t),i||(r=[gh(t,"input",e[19]),ah(n=A_.call(null,t,e[1]?.quorumAbsolute))],i=!0)},p(e,i){1&i[0]&&t.value!==e[0].quorumAbsolute&&kh(t,e[0].quorumAbsolute),n&&Xf(n.update)&&2&i[0]&&n.update.call(null,e[1]?.quorumAbsolute)},d(n){n&&uh(t),e[20](null),i=!1,Kf(r)}}}function yI(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"id","quorum-input"),vh(t,"type","number"),vh(t,"placeholder",e[5].quorumPercent.toString())},m(o,a){lh(o,t,a),kh(t,e[0].quorumPercent),i||(r=[gh(t,"input",e[18]),ah(n=A_.call(null,t,e[1]?.quorumPercent))],i=!0)},p(e,i){1&i[0]&&bh(t.value)!==e[0].quorumPercent&&kh(t,e[0].quorumPercent),n&&Xf(n.update)&&2&i[0]&&n.update.call(null,e[1]?.quorumPercent)},d(e){e&&uh(t),i=!1,Kf(r)}}}function kI(e){let t;return{c(){t=mh("Token amounts above will be extended with this number of zeroes. Does not apply to ERC721Votes.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function _I(e){let t;return{c(){t=mh("Allow governance to update voting settings (delay, period, proposal threshold).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function xI(e){let t;return{c(){t=mh("Enable storage of proposal details and enumerability of proposals.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function wI(e){let t,n,i,r,o,a,s;return r=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/governance#GovernorCrosschain",$$slots:{default:[II]},$$scope:{ctx:e}}}),{c(){t=dh("label"),n=dh("input"),i=mh("\n Crosschain Execution\n "),Gh(r.$$.fragment),vh(n,"type","checkbox"),xh(t,"checked",e[0].crossChainExecution)},m(c,l){lh(c,t,l),sh(t,n),n.checked=e[0].crossChainExecution,sh(t,i),Kh(r,t,null),o=!0,a||(s=gh(n,"change",e[24]),a=!0)},p(e,i){1&i[0]&&(n.checked=e[0].crossChainExecution);const a={};16&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked",e[0].crossChainExecution)},i(e){o||(Vh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Xh(r),a=!1,s()}}}function II(e){let t,n,i;return{c(){t=mh("Lets passed proposals relay execution to other chains through ERC-7786 gateways. Requires a\n "),n=dh("code"),n.textContent="CrosschainRemoteExecutor",i=mh(" contract, controlled by this governor, deployed on each target chain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function SI(e){let t;return{c(){t=mh("Represent voting power with a votes-enabled ERC20 token. Voters can entrust their voting power to a delegate.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function EI(e){let t;return{c(){t=mh("Represent voting power with a votes-enabled ERC721 token. Voters can entrust their voting power to a delegate.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function CI(e){let t,n,i,r,o;return{c(){t=mh("The clock mode used by the voting token.\n "),n=dh("br"),i=fh(),r=dh("b"),r.textContent="NOTE:",o=mh(" This setting must be the same as what the token uses.")},m(e,a){lh(e,t,a),lh(e,n,a),lh(e,i,a),lh(e,r,a),lh(e,o,a)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i),e&&uh(r),e&&uh(o)}}}function zI(e){let t;return{c(){t=mh("The token uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function OI(e){let t,n,i;return{c(){t=mh("Assumed block time for converting voting time periods into block numbers.\n "),n=dh("br"),i=mh("\n Block time may drift and impact these periods in the future.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function TI(e){let t;return{c(){t=mh("The token uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function UI(e){let t,n,i;return{c(){t=mh("Module compatible with OpenZeppelin's "),n=dh("code"),n.textContent="TimelockController",i=mh(". Allows multiple proposers and executors,\n in addition to the Governor itself.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function RI(e){let t,n,i;return{c(){t=mh("Module compatible with Compound's "),n=dh("code"),n.textContent="Timelock",i=mh(" contract. Useful if assets and roles are already held in\n this contract.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function AI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/governance#GovernorTimelockControl",$$slots:{default:[UI]},$$scope:{ctx:e}}}),u=new o_({props:{link:"https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol",$$slots:{default:[RI]},$$scope:{ctx:e}}}),p=$h(e[16][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n TimelockController\n "),Gh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Compound\n "),Gh(u.$$.fragment),vh(i,"type","radio"),i.__value="openzeppelin",i.value=i.__value,xh(n,"checked","openzeppelin"===e[0].timelock),vh(c,"type","radio"),c.__value="compound",c.value=c.__value,xh(s,"checked","compound"===e[0].timelock),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].timelock,sh(n,r),Kh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].timelock,sh(s,l),Kh(u,s,null),d=!0,m||(f=[gh(i,"change",e[30]),gh(c,"change",e[31])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].timelock);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","openzeppelin"===e[0].timelock),1&t[0]&&(c.checked=c.__value===e[0].timelock);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","compound"===e[0].timelock)},i(e){d||(Vh(o.$$.fragment,e),Vh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Xh(o),Xh(u),p.r(),m=!1,Kf(f)}}}function PI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C,z,O,T,U,R,A,P,N,j,D,M,Z,L,q,B,F,H,V,J,W,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,$e,be,ye,ke,_e,xe,we,Ie,Se,Ee,Ce,ze,Oe,Te,Ue,Re,Ae,Pe,Ne,je,De,Me,Ze,Le,qe,Be,Fe,He,Ve,Je,We,Ge,Ke,Xe,Ye,Qe,et,tt,nt,it,rt,ot,at,st,ct,lt,ut,dt,pt,mt,ft,ht,gt,vt,$t=!e[2]?.includes("crossChainExecution");function bt(e,t){return"percent"===e[0].quorumMode?yI:bI}f=new o_({props:{$$slots:{default:[hI]},$$scope:{ctx:e}}}),x=new o_({props:{$$slots:{default:[gI]},$$scope:{ctx:e}}}),T=new o_({props:{$$slots:{default:[vI]},$$scope:{ctx:e}}}),W=new o_({props:{$$slots:{default:[$I]},$$scope:{ctx:e}}});let yt=bt(e),kt=yt(e);ie=new o_({props:{$$slots:{default:[kI]},$$scope:{ctx:e}}}),le=new o_({props:{$$slots:{default:[_I]},$$scope:{ctx:e}}}),fe=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/governance#GovernorStorage",$$slots:{default:[xI]},$$scope:{ctx:e}}});let _t=$t&&wI(e);function xt(t){e[32](t)}we=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[SI]},$$scope:{ctx:e}}}),ze=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Votes",$$slots:{default:[EI]},$$scope:{ctx:e}}}),Ne=new o_({props:{$$slots:{default:[CI]},$$scope:{ctx:e}}}),qe=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[zI]},$$scope:{ctx:e}}}),Xe=new o_({props:{$$slots:{default:[OI]},$$scope:{ctx:e}}}),nt=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[TI]},$$scope:{ctx:e}}});let wt={label:"Timelock",defaultValue:"openzeppelin",helpContent:"Add a delay to actions taken by the Governor. Gives users time to exit the system if they disagree with governance decisions.",$$slots:{default:[AI]},$$scope:{ctx:e}};function It(t){e[33](t)}void 0!==e[0].timelock&&(wt.value=e[0].timelock),rt=new I_({props:wt}),Th.push(()=>Wh(rt,"value",xt));let St={};function Et(t){e[34](t)}void 0!==e[0].upgradeable&&(St.upgradeable=e[0].upgradeable),st=new q_({props:St}),Th.push(()=>Wh(st,"upgradeable",It));let Ct={errors:e[1]};return void 0!==e[0].info&&(Ct.info=e[0].info),ut=new V_({props:Ct}),Th.push(()=>Wh(ut,"info",Et)),mt=$h(e[16][1]),ft=$h(e[16][2]),ht=$h(e[16][3]),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("div"),u=dh("label"),d=dh("span"),p=dh("span"),p.textContent="Voting Delay",m=fh(),Gh(f.$$.fragment),h=fh(),g=dh("input"),$=fh(),b=dh("label"),y=dh("span"),k=dh("span"),k.textContent="Voting Period",_=fh(),Gh(x.$$.fragment),w=fh(),I=dh("input"),E=fh(),C=dh("label"),z=dh("span"),O=mh("Proposal Threshold\n "),Gh(T.$$.fragment),U=fh(),R=dh("input"),P=fh(),N=dh("label"),j=dh("span"),D=dh("span"),M=mh("Quorum\n "),Z=dh("label"),L=mh("% "),q=dh("input"),B=fh(),F=dh("label"),H=mh("# "),V=dh("input"),J=fh(),Gh(W.$$.fragment),G=fh(),kt.c(),K=fh(),X=dh("p"),Y=dh("label"),Q=mh("Token decimals:\n "),ee=dh("input"),ne=fh(),Gh(ie.$$.fragment),re=fh(),oe=dh("div"),ae=dh("label"),se=dh("input"),ce=mh("\n Updatable Settings\n "),Gh(le.$$.fragment),ue=fh(),de=dh("label"),pe=dh("input"),me=mh("\n Storage\n "),Gh(fe.$$.fragment),he=fh(),_t&&_t.c(),ge=fh(),ve=dh("section"),$e=dh("h1"),$e.textContent="Votes",be=fh(),ye=dh("div"),ke=dh("label"),_e=dh("input"),xe=mh("\n ERC20Votes\n "),Gh(we.$$.fragment),Ie=fh(),Se=dh("label"),Ee=dh("input"),Ce=mh("\n ERC721Votes\n "),Gh(ze.$$.fragment),Oe=fh(),Te=dh("section"),Ue=dh("h1"),Re=dh("label"),Ae=dh("span"),Ae.textContent="Token Clock Mode",Pe=fh(),Gh(Ne.$$.fragment),je=fh(),De=dh("div"),Me=dh("label"),Ze=dh("input"),Le=mh("\n Block Number\n "),Gh(qe.$$.fragment),Be=fh(),Fe=dh("p"),He=dh("label"),Ve=mh("1 block =\n "),Je=dh("input"),Ge=mh("\n seconds"),Ke=fh(),Gh(Xe.$$.fragment),Ye=fh(),Qe=dh("label"),et=dh("input"),tt=mh("\n Timestamp\n "),Gh(nt.$$.fragment),it=fh(),Gh(rt.$$.fragment),at=fh(),Gh(st.$$.fragment),lt=fh(),Gh(ut.$$.fragment),vh(r,"class","labeled-input"),vh(d,"class","flex justify-between"),vh(u,"class","labeled-input"),vh(y,"class","flex justify-between"),vh(b,"class","labeled-input"),vh(l,"class","grid grid-cols-2 gap-2"),vh(z,"class","flex justify-between pr-2"),vh(R,"placeholder","0"),vh(C,"class","labeled-input"),vh(q,"type","radio"),q.__value="percent",q.value=q.__value,vh(V,"type","radio"),V.__value="absolute",V.value=V.__value,vh(j,"class","flex justify-between pr-2"),vh(N,"class","labeled-input"),vh(N,"for","quorum-input"),ee.disabled=e[4],vh(ee,"type","number"),vh(ee,"placeholder",e[5].decimals.toString()),vh(ee,"class","input-inline"),vh(Y,"class","text-sm"),vh(X,"class","tooltip-container flex justify-between items-center pr-2"),vh(se,"type","checkbox"),xh(ae,"checked",e[0].settings),vh(pe,"type","checkbox"),xh(de,"checked",e[0].storage),vh(oe,"class","checkbox-group"),vh(t,"class","controls-section"),vh(_e,"type","radio"),_e.__value="erc20votes",_e.value=_e.__value,xh(ke,"checked","erc20votes"===e[0].votes),vh(Ee,"type","radio"),Ee.__value="erc721votes",Ee.value=Ee.__value,xh(Se,"checked","erc721votes"===e[0].votes),vh(ye,"class","checkbox-group"),vh(ve,"class","controls-section"),vh(Re,"class","flex justify-between items-center tooltip-container pr-2"),vh(Ze,"type","radio"),Ze.__value="blocknumber",Ze.value=Ze.__value,xh(Me,"checked","blocknumber"===e[0].clockMode),vh(Je,"type","number"),vh(Je,"step","0.01"),vh(Je,"placeholder",e[6].toString()),vh(Je,"class","input-inline"),Je.disabled=We="timestamp"===e[0].clockMode,vh(He,"class","text-sm"),vh(Fe,"class","tooltip-container flex justify-between items-center pr-2"),vh(et,"type","radio"),et.__value="timestamp",et.value=et.__value,xh(Qe,"checked","timestamp"===e[0].clockMode),vh(De,"class","checkbox-group"),vh(Te,"class","controls-section"),mt.p(Ze,et),ft.p(_e,Ee),ht.p(q,V)},m(We,ot){lh(We,t,ot),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),sh(t,c),sh(t,l),sh(l,u),sh(u,d),sh(d,p),sh(d,m),Kh(f,d,null),sh(u,h),sh(u,g),kh(g,e[0].delay),sh(l,$),sh(l,b),sh(b,y),sh(y,k),sh(y,_),Kh(x,y,null),sh(b,w),sh(b,I),kh(I,e[0].period),sh(t,E),sh(t,C),sh(C,z),sh(z,O),Kh(T,z,null),sh(C,U),sh(C,R),kh(R,e[0].proposalThreshold),sh(t,P),sh(t,N),sh(N,j),sh(j,D),sh(D,M),sh(D,Z),sh(Z,L),sh(Z,q),q.checked=q.__value===e[0].quorumMode,sh(D,B),sh(D,F),sh(F,H),sh(F,V),V.checked=V.__value===e[0].quorumMode,sh(j,J),Kh(W,j,null),sh(N,G),kt.m(N,null),sh(t,K),sh(t,X),sh(X,Y),sh(Y,Q),sh(Y,ee),kh(ee,e[0].decimals),sh(X,ne),Kh(ie,X,null),sh(t,re),sh(t,oe),sh(oe,ae),sh(ae,se),se.checked=e[0].settings,sh(ae,ce),Kh(le,ae,null),sh(oe,ue),sh(oe,de),sh(de,pe),pe.checked=e[0].storage,sh(de,me),Kh(fe,de,null),sh(oe,he),_t&&_t.m(oe,null),lh(We,ge,ot),lh(We,ve,ot),sh(ve,$e),sh(ve,be),sh(ve,ye),sh(ye,ke),sh(ke,_e),_e.checked=_e.__value===e[0].votes,sh(ke,xe),Kh(we,ke,null),sh(ye,Ie),sh(ye,Se),sh(Se,Ee),Ee.checked=Ee.__value===e[0].votes,sh(Se,Ce),Kh(ze,Se,null),lh(We,Oe,ot),lh(We,Te,ot),sh(Te,Ue),sh(Ue,Re),sh(Re,Ae),sh(Re,Pe),Kh(Ne,Re,null),sh(Te,je),sh(Te,De),sh(De,Me),sh(Me,Ze),Ze.checked=Ze.__value===e[0].clockMode,sh(Me,Le),Kh(qe,Me,null),sh(De,Be),sh(De,Fe),sh(Fe,He),sh(He,Ve),sh(He,Je),kh(Je,e[0].blockTime),sh(He,Ge),sh(Fe,Ke),Kh(Xe,Fe,null),sh(De,Ye),sh(De,Qe),sh(Qe,et),et.checked=et.__value===e[0].clockMode,sh(Qe,tt),Kh(nt,Qe,null),lh(We,it,ot),Kh(rt,We,ot),lh(We,at,ot),Kh(st,We,ot),lh(We,lt,ot),Kh(ut,We,ot),pt=!0,gt||(vt=[gh(s,"input",e[11]),gh(g,"input",e[12]),ah(v=A_.call(null,g,e[1]?.delay)),gh(I,"input",e[13]),ah(S=A_.call(null,I,e[1]?.period)),gh(R,"input",e[14]),ah(A=A_.call(null,R,e[1]?.proposalThreshold)),gh(q,"change",e[15]),gh(V,"change",e[17]),gh(V,"change",e[7]),gh(ee,"input",e[21]),ah(G_.call(null,ee)),ah(te=A_.call(null,ee,e[1]?.decimals)),gh(se,"change",e[22]),gh(pe,"change",e[23]),gh(_e,"change",e[25]),gh(Ee,"change",e[26]),gh(Ze,"change",e[27]),gh(Je,"input",e[28]),ah(G_.call(null,Je)),gh(et,"change",e[29])],gt=!0)},p(e,t){1&t[0]&&s.value!==e[0].name&&kh(s,e[0].name);const n={};16&t[1]&&(n.$$scope={dirty:t,ctx:e}),f.$set(n),1&t[0]&&g.value!==e[0].delay&&kh(g,e[0].delay),v&&Xf(v.update)&&2&t[0]&&v.update.call(null,e[1]?.delay);const i={};16&t[1]&&(i.$$scope={dirty:t,ctx:e}),x.$set(i),1&t[0]&&I.value!==e[0].period&&kh(I,e[0].period),S&&Xf(S.update)&&2&t[0]&&S.update.call(null,e[1]?.period);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),T.$set(r),1&t[0]&&R.value!==e[0].proposalThreshold&&kh(R,e[0].proposalThreshold),A&&Xf(A.update)&&2&t[0]&&A.update.call(null,e[1]?.proposalThreshold),1&t[0]&&(q.checked=q.__value===e[0].quorumMode),1&t[0]&&(V.checked=V.__value===e[0].quorumMode);const o={};16&t[1]&&(o.$$scope={dirty:t,ctx:e}),W.$set(o),yt===(yt=bt(e))&&kt?kt.p(e,t):(kt.d(1),kt=yt(e),kt&&(kt.c(),kt.m(N,null))),(!pt||16&t[0])&&(ee.disabled=e[4]),1&t[0]&&bh(ee.value)!==e[0].decimals&&kh(ee,e[0].decimals),te&&Xf(te.update)&&2&t[0]&&te.update.call(null,e[1]?.decimals);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),ie.$set(a),1&t[0]&&(se.checked=e[0].settings);const c={};16&t[1]&&(c.$$scope={dirty:t,ctx:e}),le.$set(c),(!pt||1&t[0])&&xh(ae,"checked",e[0].settings),1&t[0]&&(pe.checked=e[0].storage);const l={};16&t[1]&&(l.$$scope={dirty:t,ctx:e}),fe.$set(l),(!pt||1&t[0])&&xh(de,"checked",e[0].storage),4&t[0]&&($t=!e[2]?.includes("crossChainExecution")),$t?_t?(_t.p(e,t),4&t[0]&&Vh(_t,1)):(_t=wI(e),_t.c(),Vh(_t,1),_t.m(oe,null)):_t&&(Fh(),Jh(_t,1,1,()=>{_t=null}),Hh()),1&t[0]&&(_e.checked=_e.__value===e[0].votes);const u={};16&t[1]&&(u.$$scope={dirty:t,ctx:e}),we.$set(u),(!pt||1&t[0])&&xh(ke,"checked","erc20votes"===e[0].votes),1&t[0]&&(Ee.checked=Ee.__value===e[0].votes);const d={};16&t[1]&&(d.$$scope={dirty:t,ctx:e}),ze.$set(d),(!pt||1&t[0])&&xh(Se,"checked","erc721votes"===e[0].votes);const p={};16&t[1]&&(p.$$scope={dirty:t,ctx:e}),Ne.$set(p),1&t[0]&&(Ze.checked=Ze.__value===e[0].clockMode);const m={};16&t[1]&&(m.$$scope={dirty:t,ctx:e}),qe.$set(m),(!pt||1&t[0])&&xh(Me,"checked","blocknumber"===e[0].clockMode),(!pt||1&t[0]&&We!==(We="timestamp"===e[0].clockMode))&&(Je.disabled=We),1&t[0]&&bh(Je.value)!==e[0].blockTime&&kh(Je,e[0].blockTime);const h={};16&t[1]&&(h.$$scope={dirty:t,ctx:e}),Xe.$set(h),1&t[0]&&(et.checked=et.__value===e[0].clockMode);const $={};16&t[1]&&($.$$scope={dirty:t,ctx:e}),nt.$set($),(!pt||1&t[0])&&xh(Qe,"checked","timestamp"===e[0].clockMode);const b={};1&t[0]|16&t[1]&&(b.$$scope={dirty:t,ctx:e}),!ot&&1&t[0]&&(ot=!0,b.value=e[0].timelock,jh(()=>ot=!1)),rt.$set(b);const y={};!ct&&1&t[0]&&(ct=!0,y.upgradeable=e[0].upgradeable,jh(()=>ct=!1)),st.$set(y);const k={};2&t[0]&&(k.errors=e[1]),!dt&&1&t[0]&&(dt=!0,k.info=e[0].info,jh(()=>dt=!1)),ut.$set(k)},i(e){pt||(Vh(f.$$.fragment,e),Vh(x.$$.fragment,e),Vh(T.$$.fragment,e),Vh(W.$$.fragment,e),Vh(ie.$$.fragment,e),Vh(le.$$.fragment,e),Vh(fe.$$.fragment,e),Vh(_t),Vh(we.$$.fragment,e),Vh(ze.$$.fragment,e),Vh(Ne.$$.fragment,e),Vh(qe.$$.fragment,e),Vh(Xe.$$.fragment,e),Vh(nt.$$.fragment,e),Vh(rt.$$.fragment,e),Vh(st.$$.fragment,e),Vh(ut.$$.fragment,e),pt=!0)},o(e){Jh(f.$$.fragment,e),Jh(x.$$.fragment,e),Jh(T.$$.fragment,e),Jh(W.$$.fragment,e),Jh(ie.$$.fragment,e),Jh(le.$$.fragment,e),Jh(fe.$$.fragment,e),Jh(_t),Jh(we.$$.fragment,e),Jh(ze.$$.fragment,e),Jh(Ne.$$.fragment,e),Jh(qe.$$.fragment,e),Jh(Xe.$$.fragment,e),Jh(nt.$$.fragment,e),Jh(rt.$$.fragment,e),Jh(st.$$.fragment,e),Jh(ut.$$.fragment,e),pt=!1},d(e){e&&uh(t),Xh(f),Xh(x),Xh(T),Xh(W),kt.d(),Xh(ie),Xh(le),Xh(fe),_t&&_t.d(),e&&uh(ge),e&&uh(ve),Xh(we),Xh(ze),e&&uh(Oe),e&&uh(Te),Xh(Ne),Xh(qe),Xh(Xe),Xh(nt),e&&uh(it),Xh(rt,e),e&&uh(at),Xh(st,e),e&&uh(lt),Xh(ut,e),mt.r(),ft.r(),ht.r(),gt=!1,Kf(vt)}}}function NI(e,t,n){const i=Sb.defaults;let{defaultBlockTime:r}=t,{omitFeatures:o}=t;const a=r??i.blockTime;let s,{opts:c={kind:"Governor",...i,blockTime:a,proposalThreshold:"",quorumAbsolute:"",info:{...Jg}}}=t;let l,{errors:u}=t,d="erc721votes"===c.votes,p=c.decimals;return e.$$set=e=>{"defaultBlockTime"in e&&n(8,r=e.defaultBlockTime),"omitFeatures"in e&&n(2,o=e.omitFeatures),"opts"in e&&n(0,c=e.opts),"errors"in e&&n(1,u=e.errors)},e.$$.update=()=>{1537&e.$$.dirty[0]&&(d&&"erc721votes"!==c.votes?(n(0,c.decimals=p,c),n(4,l=!1)):d||"erc721votes"!==c.votes||(n(10,p=c.decimals),n(0,c.decimals=0,c),n(4,l=!0)),n(9,d="erc721votes"===c.votes))},[c,u,o,s,l,i,a,()=>{if(u){const e=u,t=u.quorumAbsolute;n(1,u.quorumAbsolute=void 0,u),s.focus(),setTimeout(()=>{u===e&&n(1,u.quorumAbsolute=t,u)},1e3)}},r,d,p,function(){c.name=this.value,n(0,c),n(9,d),n(10,p)},function(){c.delay=this.value,n(0,c),n(9,d),n(10,p)},function(){c.period=this.value,n(0,c),n(9,d),n(10,p)},function(){c.proposalThreshold=this.value,n(0,c),n(9,d),n(10,p)},function(){c.quorumMode=this.__value,n(0,c),n(9,d),n(10,p)},[[],[],[],[]],function(){c.quorumMode=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.quorumPercent=bh(this.value),n(0,c),n(9,d),n(10,p)},function(){c.quorumAbsolute=this.value,n(0,c),n(9,d),n(10,p)},function(e){Th[e?"unshift":"push"](()=>{s=e,n(3,s)})},function(){c.decimals=bh(this.value),n(0,c),n(9,d),n(10,p)},function(){c.settings=this.checked,n(0,c),n(9,d),n(10,p)},function(){c.storage=this.checked,n(0,c),n(9,d),n(10,p)},function(){c.crossChainExecution=this.checked,n(0,c),n(9,d),n(10,p)},function(){c.votes=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.votes=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.clockMode=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.blockTime=bh(this.value),n(0,c),n(9,d),n(10,p)},function(){c.clockMode=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.timelock=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.timelock=this.__value,n(0,c),n(9,d),n(10,p)},function(t){e.$$.not_equal(c.timelock,t)&&(c.timelock=t,n(0,c),n(9,d),n(10,p))},function(t){e.$$.not_equal(c.upgradeable,t)&&(c.upgradeable=t,n(0,c),n(9,d),n(10,p))},function(t){e.$$.not_equal(c.info,t)&&(c.info=t,n(0,c),n(9,d),n(10,p))}]}function jI(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function DI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,$,b,y,k,_,x,w,I,S,E,C;function z(t){e[5](t)}g=new o_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[jI]},$$scope:{ctx:e}}});let O={required:e[2]};function T(t){e[6](t)}void 0!==e[0].access&&(O.access=e[0].access),$=new U_({props:O}),Th.push(()=>Wh($,"access",z));let U={};function R(t){e[7](t)}void 0!==e[0].upgradeable&&(U.upgradeable=e[0].upgradeable),k=new q_({props:U}),Th.push(()=>Wh(k,"upgradeable",T));let A={errors:e[1]};return void 0!==e[0].info&&(A.info=e[0].info),w=new V_({props:A}),Th.push(()=>Wh(w,"info",R)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("section"),u=dh("h1"),u.textContent="Features",d=fh(),p=dh("div"),m=dh("label"),f=dh("input"),h=mh("\n Pausable\n "),Gh(g.$$.fragment),v=fh(),Gh($.$$.fragment),y=fh(),Gh(k.$$.fragment),x=fh(),Gh(w.$$.fragment),vh(r,"class","labeled-input"),vh(t,"class","controls-section"),vh(f,"type","checkbox"),xh(m,"checked",e[0].pausable),vh(p,"class","checkbox-group"),vh(l,"class","controls-section")},m(b,_){lh(b,t,_),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),lh(b,c,_),lh(b,l,_),sh(l,u),sh(l,d),sh(l,p),sh(p,m),sh(m,f),f.checked=e[0].pausable,sh(m,h),Kh(g,m,null),lh(b,v,_),Kh($,b,_),lh(b,y,_),Kh(k,b,_),lh(b,x,_),Kh(w,b,_),S=!0,E||(C=[gh(s,"input",e[3]),gh(f,"change",e[4])],E=!0)},p(e,[t]){1&t&&s.value!==e[0].name&&kh(s,e[0].name),1&t&&(f.checked=e[0].pausable);const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),g.$set(n),(!S||1&t)&&xh(m,"checked",e[0].pausable);const i={};4&t&&(i.required=e[2]),!b&&1&t&&(b=!0,i.access=e[0].access,jh(()=>b=!1)),$.$set(i);const r={};!_&&1&t&&(_=!0,r.upgradeable=e[0].upgradeable,jh(()=>_=!1)),k.$set(r);const o={};2&t&&(o.errors=e[1]),!I&&1&t&&(I=!0,o.info=e[0].info,jh(()=>I=!1)),w.$set(o)},i(e){S||(Vh(g.$$.fragment,e),Vh($.$$.fragment,e),Vh(k.$$.fragment,e),Vh(w.$$.fragment,e),S=!0)},o(e){Jh(g.$$.fragment,e),Jh($.$$.fragment,e),Jh(k.$$.fragment,e),Jh(w.$$.fragment,e),S=!1},d(e){e&&uh(t),e&&uh(c),e&&uh(l),Xh(g),e&&uh(v),Xh($,e),e&&uh(y),Xh(k,e),e&&uh(x),Xh(w,e),E=!1,Kf(C)}}}function MI(e,t,n){let i,{opts:r={kind:"Custom",...Eb.defaults,info:{...Jg}}}=t,{errors:o}=t;return e.$$set=e=>{"opts"in e&&n(0,r=e.opts),"errors"in e&&n(1,o=e.errors)},e.$$.update=()=>{1&e.$$.dirty&&n(2,i=Eb.isAccessControlRequired(r))},[r,o,i,function(){r.name=this.value,n(0,r)},function(){r.pausable=this.checked,n(0,r)},function(t){e.$$.not_equal(r.access,t)&&(r.access=t,n(0,r))},function(t){e.$$.not_equal(r.upgradeable,t)&&(r.upgradeable=t,n(0,r))},function(t){e.$$.not_equal(r.info,t)&&(r.info=t,n(0,r))}]}const ZI={emptyContract:()=>new Ng("MyToken"),build:e=>function(e){switch(e.kind){case"ERC20":return R$(e);case"ERC721":return M$(e);case"ERC1155":return B$(e);case"Stablecoin":case"RealWorldAsset":return W$(e);case"Account":return eb(e);case"Governor":return cb(e);case"Custom":return vb(e);default:throw new Error("Unknown ERC")}}(e),print:e=>gv(e),optionsErrors:e=>e instanceof Fg?e.messages:void 0,highlight:e=>Mb.highlight("solidity",e).value,injectHyperlinks:function(e){const t=/"(@openzeppelin\/)(community-contracts\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,n=/Community Contracts commit ([a-fA-F0-9]{7,40})/,i=new RegExp(n.source,"g"),r=e.match(n)?.[1];let o=e.replace(/"(@openzeppelin\/)(contracts-upgradeable\/|contracts\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,`"<a class="import-link" href="https://github.com/OpenZeppelin/openzeppelin-$2blob/v${Bb}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(/"(@openzeppelin\/)(tron-contracts-upgradeable\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,`"<a class="import-link" href="https://github.com/OpenZeppelin/tron-contracts-upgradeable/blob/v${Cb}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(/"(@openzeppelin\/)(tron-contracts\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,`"<a class="import-link" href="https://github.com/OpenZeppelin/tron-contracts/blob/v${Cb}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`);return void 0!==r&&(o=o.replace(t,`"<a class="import-link" href="https://github.com/OpenZeppelin/openzeppelin-community-contracts/blob/${r}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(i,'Community Contracts commit <a class="comment-link" href="https://github.com/OpenZeppelin/openzeppelin-community-contracts/tree/$1" target="_blank" rel="noopener noreferrer" title="View repository at commit $1">$1</a>')),o},highlightClass:"-solidity",fence:"solidity",controls:{ERC20:class extends eg{constructor(e){super(),Qh(this,e,yx,bx,Yf,{opts:0,omitFeatures:1,errors:2},null,[-1,-1])}},ERC721:class extends eg{constructor(e){super(),Qh(this,e,Dx,jx,Yf,{opts:0,errors:1,omitFeatures:2},null,[-1,-1])}},ERC1155:class extends eg{constructor(e){super(),Qh(this,e,Xx,Kx,Yf,{opts:0,errors:1,omitFeatures:2})}},Stablecoin:class extends eg{constructor(e){super(),Qh(this,e,xw,_w,Yf,{opts:0,omitFeatures:1,errors:2},null,[-1,-1])}},RealWorldAsset:class extends eg{constructor(e){super(),Qh(this,e,Xw,Kw,Yf,{opts:0,omitFeatures:1,errors:2},null,[-1,-1])}},Account:class extends eg{constructor(e){super(),Qh(this,e,fI,mI,Yf,{opts:0,errors:1})}},Governor:class extends eg{constructor(e){super(),Qh(this,e,NI,PI,Yf,{defaultBlockTime:8,omitFeatures:2,opts:0,errors:1},null,[-1,-1])}},Custom:class extends eg{constructor(e){super(),Qh(this,e,MI,DI,Yf,{opts:0,errors:1})}}}};!function(e,t=document.body){(async function(e,t,n=document.body){const i=new Hf({name:`OpenZeppelin ${t}`,version:"1.0.0"},{},{autoResize:!1});document.documentElement.style.setProperty("--mcp-app-height","560px");const r=new Ug({target:n,props:{adapter:e,kind:t,mcpApp:i}}),o=new $f(window.parent,window.parent);i.connect(o).then(async()=>{const e=og(i);console.info(`[mcp-apps] connected (${t}) hostCapabilities`,i.getHostCapabilities()),r.$set({hostConnected:!0,hostConnectError:void 0,hostSendCaps:e}),await i.sendSizeChanged({height:Rg})}).catch(e=>{const n=e instanceof Error?e.message:String(e);console.error(`[mcp-apps] connect failed for ${t}`,e),r.$set({hostConnected:!1,hostConnectError:n})})})(e,"__OZ_MCP_KIND__",t)}(ZI)}();
|
|
18
|
+
var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Qg(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ev(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function tv(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const nv=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=tv(e[t]);return e},iv=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),rv=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ov(e){if(Yg(e),iv)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=rv[e[n]];return t}const av=48,sv=57,cv=65,lv=70,uv=97,dv=102;function pv(e){return e>=av&&e<=sv?e-av:e>=cv&&e<=lv?e-(cv-10):e>=uv&&e<=dv?e-(uv-10):void 0}function mv(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function fv(e){return"string"==typeof e&&(e=mv(e)),Yg(e),e}class hv{}const gv=BigInt(0),vv=BigInt(1),bv=BigInt(2),$v=BigInt(7),yv=BigInt(256),kv=BigInt(113),_v=[],xv=[],wv=[];for(let e=0,t=vv,n=1,i=0;e<24;e++){[n,i]=[i,(2*n+3*i)%5],_v.push(2*(5*i+n)),xv.push((e+1)*(e+2)/2%64);let r=gv;for(let e=0;e<7;e++)t=(t<<vv^(t>>$v)*kv)%yv,t&bv&&(r^=vv<<(vv<<BigInt(e))-vv);wv.push(r)}const Cv=function(e,t=!1){const n=e.length;let i=new Uint32Array(n),r=new Uint32Array(n);for(let o=0;o<n;o++){const{h:n,l:a}=Kg(e[o],t);[i[o],r[o]]=[n,a]}return[i,r]}(wv,!0),Iv=Cv[0],Ev=Cv[1],Sv=(e,t,n)=>n>32?((e,t,n)=>t<<n-32|e>>>64-n)(e,t,n):((e,t,n)=>e<<n|t>>>32-n)(e,t,n),zv=(e,t,n)=>n>32?((e,t,n)=>e<<n-32|t>>>64-n)(e,t,n):((e,t,n)=>t<<n|e>>>32-n)(e,t,n);class Ov extends hv{constructor(e,t,n,i=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=r,Xg(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}clone(){return this._cloneInto()}keccak(){nv(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const i=(t+8)%10,r=(t+2)%10,o=n[r],a=n[r+1],s=Sv(o,a,1)^n[i],c=zv(o,a,1)^n[i+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],r=e[3];for(let n=0;n<24;n++){const i=xv[n],o=Sv(t,r,i),a=zv(t,r,i),s=_v[n];t=e[s],r=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)n[i]=e[t+i];for(let i=0;i<10;i++)e[t+i]^=~n[(i+2)%10]&n[(i+4)%10]}e[0]^=Iv[i],e[1]^=Ev[i]}ev(n)}(this.state32,this.rounds),nv(this.state32),this.posOut=0,this.pos=0}update(e){Qg(this),Yg(e=fv(e));const{blockLen:t,state:n}=this,i=e.length;for(let r=0;r<i;){const o=Math.min(t-this.pos,i-r);for(let t=0;t<o;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:i}=this;e[n]^=t,128&t&&n===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){Qg(this,!1),Yg(e),this.finish();const t=this.state,{blockLen:n}=this;for(let i=0,r=e.length;i<r;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,r-i);e.set(t.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Xg(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(function(e,t){Yg(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,ev(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:i,rounds:r,enableXOF:o}=this;return e||(e=new Ov(t,n,i,o,r)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=r,e.suffix=n,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Av=(e,t,n)=>function(e){const t=t=>e().update(fv(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new Ov(t,e,n)),Tv=(()=>Av(1,136,32))(),Pv=Yg;function Uv(e){return function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(iv)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const i=new Uint8Array(n);for(let t=0,r=0;t<n;t++,r+=2){const n=pv(e.charCodeAt(r)),o=pv(e.charCodeAt(r+1));if(void 0===n||void 0===o){const t=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+r)}i[t]=16*n+o}return i}(e.startsWith("0x")?e.substring(2):e)}const Rv=(()=>{const e=function(e){return t=>(Pv(t),e(t))}(Tv);return e.create=Tv.create,e})();function Nv(e,t,n){!function(e){if(e.match(/\s+/))throw new qg({namespacePrefix:"Namespace prefix should not contain whitespace characters"})}(n);const i=function(e,t){return 0===e.length?t:`${e}.${t}`}(n,e.name),r=Dv(e.name),o=function(e,t){const n={name:`${e}Storage`,namespaceId:t,comments:[],variables:[]};return n}(e.name,i),a=`${e.name.toUpperCase()}_STORAGE_LOCATION`;t.forEach(t=>e.addStructVariable(o,t)),e.addConstantOrImmutableOrErrorDefinition(`bytes32 private constant ${a} = ${function(e){const t=Rv(mv(e)),n=Uv((BigInt("0x"+ov(t))-1n).toString(16).padStart(64,"0")),i=Rv(n),r=BigInt("0xff");return"0x"+(BigInt("0x"+ov(i))&~r).toString(16).padStart(64,"0")}(i)};`,[`// keccak256(abi.encode(uint256(keccak256("${i}")) - 1)) & ~bytes32(uint256(0xff))`]),e.addFunctionCode(`assembly { $.slot := ${a} }`,r)}function jv(e){return`${e}Storage storage $ = ${Dv(e).name}();`}function Dv(e){return{name:`_get${e}Storage`,kind:"private",mutability:"pure",args:[],returns:[`${e}Storage storage $`]}}function Mv(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Object.assign({name:e},t)]))}const Zv=Mv({mint:{kind:"public",args:[{name:"to",type:"address"},{name:"amount",type:"uint256"}]},burn:{kind:"public",args:[{name:"amount",type:"uint256"}]},getCCIPAdmin:{kind:"public",args:[],returns:["address"],mutability:"view"},setCCIPAdmin:{kind:"public",args:[{name:"newCCIPAdmin",type:"address"}]}}),Lv=Zv.burn;const Bv=Mv({_authorizeAttachPolicyEngine:{kind:"internal",args:[{name:"policyEngine",type:"address"}]},transfer:{kind:"public",args:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],returns:["bool"]},transferFrom:{kind:"public",args:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],returns:["bool"]},mint:{kind:"public",args:[{name:"to",type:"address"},{name:"amount",type:"uint256"}]},burnFrom:{kind:"public",args:[{name:"account",type:"address"},{name:"amount",type:"uint256"}]}});function qv(e,t){Vg(e,Fv.pause,t,"PAUSER","pauser"),e.addFunctionCode("_pause();",Fv.pause),Vg(e,Fv.unpause,t,"PAUSER","pauser"),e.addFunctionCode("_unpause();",Fv.unpause)}const Fv=Mv({pause:{kind:"public",args:[]},unpause:{kind:"public",args:[]}}),Hv=/[\n\r\u2028\u2029]/u;function Vv(e,t){if(Hv.test(e))throw new qg({[t]:"Must not contain line breaks"})}const Wv={license:"MIT"};function Jv(e,t){const{securityContact:n,license:i}=t;n&&(Vv(n,"securityContact"),e.addNatspecTag("@custom:security-contact",n)),i&&(Vv(i,"license"),e.license=i)}const Gv={access:!1,upgradeable:!1,info:Wv};function Kv(e){return{access:e.access??!1,upgradeable:e.upgradeable??!1,info:{...Gv.info,...e.info??{}}}}function Xv(e,t,n){if(!1!==t)switch(e.upgradeable=!0,e.addParent({name:"Initializable",path:"@openzeppelin/contracts/proxy/utils/Initializable.sol",transpiled:!1}),t){case"transparent":break;case"uups":{n();const t={name:"UUPSUpgradeable",path:"@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol",transpiled:!1};e.addParent(t),e.addOverride(t,Qv._authorizeUpgrade),e.setFunctionBody([],Qv._authorizeUpgrade);break}default:throw new Error("Unknown value for `upgradeable`")}}function Yv(e,t,n){Xv(e,t,()=>{Vg(e,Qv._authorizeUpgrade,n,"UPGRADER","upgrader")})}const Qv=Mv({_authorizeUpgrade:{args:[{name:"newImplementation",type:"address"}],kind:"internal"}}),eb="BUSL-1.1",tb="https://github.com/smartcontractkit/chainlink-ace/blob/v1.2.0/LICENSE";function nb(e){return e.startsWith("@chainlink/ace/")}const ib=[`// Imports Chainlink ACE components licensed under ${eb}.`,`// License: ${tb}`];function rb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ob,ab;var sb=function(){if(ab)return ob;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,i="",r=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=s,a=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),r=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return i}ab=1;var n={resolve:function(){for(var n,i="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a;o>=0?a=arguments[o]:(void 0===n&&(n=process.cwd()),a=n),e(a),0!==a.length&&(i=a+"/"+i,r=47===a.charCodeAt(0))}return i=t(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(n){if(e(n),0===n.length)return".";var i=47===n.charCodeAt(0),r=47===n.charCodeAt(n.length-1);return 0!==(n=t(n,!i)).length||i||(n="."),n.length>0&&r&&(n+="/"),i?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,i=0;i<arguments.length;++i){var r=arguments[i];e(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":n.normalize(t)},relative:function(t,i){if(e(t),e(i),t===i)return"";if((t=n.resolve(t))===(i=n.resolve(i)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var o=t.length,a=o-r,s=1;s<i.length&&47===i.charCodeAt(s);++s);for(var c=i.length-s,l=a<c?a:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===i.charCodeAt(s+d))return i.slice(s+d+1);if(0===d)return i.slice(s+d)}else a>l&&(47===t.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var p=t.charCodeAt(r+d);if(p!==i.charCodeAt(s+d))break;47===p&&(u=d)}var m="";for(d=r+u+1;d<=o;++d)d!==o&&47!==t.charCodeAt(d)||(0===m.length?m+="..":m+="/..");return m.length>0?m+i.slice(s+u):(s+=u,47===i.charCodeAt(s)&&++s,i.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),i=47===n,r=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(n=t.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":t.slice(0,r)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var i,r=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,c=-1;for(i=t.length-1;i>=0;--i){var l=t.charCodeAt(i);if(47===l){if(!a){r=i+1;break}}else-1===c&&(a=!1,c=i+1),s>=0&&(l===n.charCodeAt(s)?-1===--s&&(o=i):(s=-1,o=c))}return r===o?o=c:-1===o&&(o=t.length),t.slice(r,o)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!a){r=i+1;break}}else-1===o&&(a=!1,o=i+1);return-1===o?"":t.slice(r,o)},extname:function(t){e(t);for(var n=-1,i=0,r=-1,o=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===r&&(o=!1,r=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){i=s+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":t.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var i,r=t.charCodeAt(0),o=47===r;o?(n.root="/",i=1):i=0;for(var a=-1,s=0,c=-1,l=!0,u=t.length-1,d=0;u>=i;--u)if(47!==(r=t.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===r?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===d||1===d&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?t.slice(1,c):t.slice(s,c)):(0===s&&o?(n.name=t.slice(1,a),n.base=t.slice(1,c)):(n.name=t.slice(s,a),n.base=t.slice(s,c)),n.ext=t.slice(a,c)),s>0?n.dir=t.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,ob=n}(),cb=rb(sb);function lb(e){return e.transpiled??!/^I[A-Z]/.test(e.name)}function ub(e){return"Initializable"===e?e:e.replace(/(Upgradeable)?(?=\.|$)/,"Upgradeable")}function db(e,t={}){const n=e.upgradeable,i=t.transformName??(e=>e);return{upgradeable:n,transformName:e=>{const t=n&&lb(e)?ub(e.name):e.name;return i(t)},transformInitName:e=>i(e.name),transformImport:e=>{const i=n&&lb(e)?function(e){const{dir:t,ext:n,name:i}=cb.parse(e.path);return{...e,name:ub(e.name),path:cb.posix.format({ext:n,dir:t.replace(/^@openzeppelin\/contracts/,"@openzeppelin/contracts-upgradeable"),name:ub(i)})}}(e):e;return t.transformImport?.(i)??i},formulaId:t.formulaId??"erc7201",additionalCompatibleLibraries:t.additionalCompatibleLibraries??[]}}const pb=Symbol("whitespace");function mb(...e){return function(e,...t){return[...fb(0,t,e)].join("\n")+"\n"}(4,...e)}function*fb(e,t,n){for(const i of t)i===pb?yield"":Array.isArray(i)?yield*fb(e+1,i,n):yield" ".repeat(e*n)+i}function hb(...e){return e.filter(e=>e.length>0).flatMap(e=>[pb,...e]).slice(1)}var gb="0.8.27";function vb(e,t){return e.imports.some(e=>e.path.startsWith(t))}var bb="git+https://github.com/OpenZeppelin/openzeppelin-community-contracts.git#b0ddd27";function $b(){return function(e,t){const n=t.split("#");if(!t.startsWith("git+")||2!==n.length)throw new Error(`Expected package dependency for ${e} in format git+<url>#<commit-hash>, but got ${t}`);const i=n[1];if(!/^[a-fA-F0-9]{7,40}$/.test(i))throw new Error(`Expected git commit hash for package dependency ${e} to have between 7 and 40 hex chars, but got ${i}`);return i.toLowerCase()}("@openzeppelin/community-contracts",bb)}function yb(e,t){const n=db(e,t),i=e.structs.map(e=>function(e,{formulaId:t}){const[n,i,r]=[e.comments,e.name,e.variables],o=void 0!==e.namespaceId?[`/// @custom:storage-location ${t}:${e.namespaceId}`]:[],a=[...o,...n],s=r.length>0?"{":"{}";a.push([`struct ${i}`,s].join(" ")),r.length>0&&a.push(r,"}");return a}(e,n)),r=function(e,t){const n={};for(const i in e)n[i]=t(e[i]);return n}(function(e){const t={code:[],modifiers:[],override:[]};for(const n of e.functions)n.code.length>0?t.code.push(n):n.modifiers.length>0?t.modifiers.push(n):t.override.push(n);return t}(e),e=>e.map(e=>function(e,t){const{transformName:n}=t;if(e.override.size<=1&&0===e.modifiers.length&&0===e.code.length&&!e.final)return[];const i=[e.kind];"nonpayable"!==e.mutability&&i.push(e.mutability);1===e.override.size?i.push("override"):e.override.size>1&&i.push(`override(${[...e.override].map(n).join(", ")})`);i.push(...e.modifiers),e.returns?.length&&i.push(`returns (${e.returns.join(", ")})`);const r=[...e.code];if(e.override.size>0&&!e.final){const t=`super.${e.name}(${e.args.map(e=>e.name).join(", ")});`;r.push(e.returns?.length?"return "+t:t)}return i.length+e.code.length>1?Ob(e.comments,"function "+e.name,e.args.map(e=>Ab(e,t)),i,r):[]}(e,n))),o=r.override.some(e=>e.length>0);return mb(...hb([`// SPDX-License-Identifier: ${e.license}`,xb(e,n),`pragma solidity ^${gb};`],function(e,t){const n=new Map,i=new Set;for(const r of e){const{name:e,path:o}=t.transformImport(r);n.get(o)?.add(e)??n.set(o,new Set([e])),nb(r.path)&&i.add(o)}return Array.from(n.keys()).sort().flatMap(e=>[...i.has(e)?ib:[],`import {${Array.from(n.get(e)).sort().join(", ")}} from "${e}";`])}(e.imports,n),[...Tb(e.topLevelComments,e.natspecTags.length>0),...(a=e.natspecTags,a.map(({key:e,value:t})=>`/// ${e} ${t}`)),[`contract ${e.name}`,...wb(e,n),"{"].join(" "),hb(Pb(e,n),...i,kb(e.variableOrErrorDefinitions),_b(e.variableOrErrorDefinitions),Cb(e,n),...r.code,...r.modifiers,o?["// The following functions are overrides required by Solidity."]:[],...r.override),"}"]));var a}function kb(e){const t=e.filter(e=>e.comments?.length);return hb(...t.map(e=>[...e.comments,e.code]))}function _b(e){const t=e.filter(e=>!e.comments?.length);return t.map(e=>e.code)}function xb(e,t,n){const i=[],r={imports:e.imports.map(e=>t.transformImport(e))};if(vb(r,"@openzeppelin/contracts")&&i.push({nameAndVersion:"OpenZeppelin Contracts ^5.7.0"}),vb(r,"@openzeppelin/community-contracts"))try{const e=$b();i.push({nameAndVersion:`OpenZeppelin Community Contracts commit ${e}`})}catch(e){console.error(e)}if(0===i.length)return"";if(1===i.length)return`// Compatible with ${i[0].nameAndVersion}`;{const e="OpenZeppelin ";if(i[0].nameAndVersion.startsWith(e))for(let t=1;t<i.length;t++)i[t].nameAndVersion.startsWith(e)&&!i[t].alwaysKeepOzPrefix&&(i[t].nameAndVersion=i[t].nameAndVersion.slice(e.length));const t=i.map(e=>e.nameAndVersion);return`// Compatible with ${t.slice(0,-1).join(", ")} and ${t.slice(-1)}`}}function wb(e,{transformName:t}){const n=e.parents.filter(e=>!e.constructionOnly);return n.length>0?["is "+n.map(e=>t(e.contract)).join(", ")]:[]}function Cb(e,t){const n=e.parents.some(e=>e.params.length>0),i=e.constructorCode.length>0,r=e.parents.filter(Eb);if(n||i||t.upgradeable&&r.length>0){if(t.upgradeable){const n=r.filter(e=>lb(e.contract)),i=e.parents.filter(e=>!lb(e.contract)&&"Initializable"!==e.contract.name&&"UUPSUpgradeable"!==e.contract.name),o=Ob([i.length>0?"/// @custom:oz-upgrades-unsafe-allow-reachable constructor":"/// @custom:oz-upgrades-unsafe-allow constructor"],"constructor",[],i.flatMap(e=>Sb(e,t)),["_disableInitializers();"]),a=Ob([],"function initialize",e.constructorArgs.map(e=>Ab(e,t)),["public","initializer"],hb(n.flatMap(e=>Sb(e,t)).map(e=>e+";"),e.constructorCode));return hb(o,n.length>0?a:[])}return Ob([],"constructor",e.constructorArgs.map(e=>Ab(e,t)),e.parents.flatMap(e=>Sb(e,t)),e.constructorCode)}return t.upgradeable?Ib:[]}const Ib=["/// @custom:oz-upgrades-unsafe-allow constructor","constructor() {",["_disableInitializers();"],"}"];function Eb(e){return!["Initializable"].includes(e.contract.name)}function Sb({contract:e,params:t},n){const i=n.upgradeable&&lb(e),r=i?`__${n.transformInitName(e)}_init`:n.transformName(e);return i||t.length>0?[r+"("+t.map(zb).join(", ")+")"]:[]}function zb(e){if("object"==typeof e){if("lit"in e)return e.lit;if("note"in e)return`${zb(e.value)} /* ${e.note} */`;throw Error("Unknown value type")}if("number"==typeof e){if(Number.isSafeInteger(e))return e.toFixed(0);throw new Error(`Number not representable (${e})`)}return/[^\x20-\x7E]/u.test(t=e)?`unicode"${t.replace(/[\\"\r\n\x0b]/gu,e=>'"'===e?'\\"':"\\"===e?"\\\\":"\n"===e?"\\n":"\r"===e?"\\r":"\\x0b")}"`:`"${t.replace(/[\\"]/g,"\\$&")}"`;var t}function Ob(e,t,n,i,r){const o=[...e],a=[t,...n,...i].map(e=>e.length).reduce((e,t)=>e+t),s=r.length>0?"{":"{}";return a<=72?o.push([`${t}(${n.join(", ")})`,...i,s].join(" ")):o.push(`${t}(${n.join(", ")})`,i,s),r.length>0&&o.push(r,"}"),o}function Ab(e,{transformName:t}){let n;return"string"==typeof e.type?(/^[A-Z]/.test(e.type)&&e.type,n=e.type):n=t(e.type),[n,e.name].join(" ")}function Tb(e,t=!1){const n=e.map(e=>`// ${e}`);return e.length>0&&t&&n.push("//"),n}function Pb(e,{transformName:t}){return e.libraries&&0!==e.libraries.length?e.libraries.sort((e,t)=>e.library.name.localeCompare(t.library.name)).map(e=>{const n=Array.from(e.usingFor).sort((e,t)=>e.localeCompare(t));return`using ${t(e.library)} for ${n.join(", ")};`}):[]}const Ub="blocknumber",Rb=Mv({clock:{kind:"public",args:[],returns:["uint48"],mutability:"view"},CLOCK_MODE:{kind:"public",args:[],returns:["string memory"],mutability:"pure"}});function Nb(e,t,n){"timestamp"===n&&(e.addOverride(t,Rb.clock),e.setFunctionBody(["return uint48(block.timestamp);"],Rb.clock),e.setFunctionComments(["// solhint-disable-next-line func-name-mixedcase"],Rb.CLOCK_MODE),e.addOverride(t,Rb.CLOCK_MODE),e.setFunctionBody(['return "mode=timestamp";'],Rb.CLOCK_MODE))}function jb(e){if(e<=0)throw new Error(`Number of bits must be positive (actual '${e}').`);if(e%8!=0)throw new Error(`The number of bits must be a multiple of 8 (actual '${e}').`);return BigInt("0x"+"ff".repeat(e/8))}const Db={uint8:jb(8),uint16:jb(16),uint32:jb(32),uint64:jb(64),uint128:jb(128),uint256:jb(256)},Mb=Db.uint256;function Zb(e,t,n){const i=function(e,t){if(!/^\d+$/.test(e))throw new qg({[t]:"Not a valid number"});return BigInt(e)}(e,t);if(i>Db[n])throw new qg({[t]:`Value is greater than ${n} max value`});return i}const Lb={name:"setLink",kind:"public",args:[{name:"gateway",type:"address"},{name:"counterpart",type:"bytes memory"}]};function Bb(e,t,n,i){e.addParent(t),e.addConstructionOnly({name:"CrosschainLinked",path:"@openzeppelin/contracts/crosschain/CrosschainLinked.sol"},[{lit:"links"}]),e.addConstructorArgument({type:{name:"CrosschainLinked.Link[] memory"},name:"links"}),Vg(e,Lb,i,"CROSSCHAIN_LINKER","crosschainLinker"),e.addFunctionCode(`_setLink(gateway, counterpart, ${n});`,Lb)}const qb=[!1,"custom","erc7786native","superchain","chainlink-ccip"],Fb={...Gv,name:"MyToken",symbol:"MTK",decimals:18..toString(),burnable:!1,pausable:!1,premint:"0",premintChainId:"",mintable:!1,callback:!1,permit:!0,votes:!1,flashmint:!1,crossChainBridging:!1,chainlinkAce:!1,crossChainLinkAllowOverride:!1,namespacePrefix:"myProject"};function Hb(e){if(void 0!==e.chainlinkAce&&"boolean"!=typeof e.chainlinkAce)throw new qg({chainlinkAce:"chainlinkAce must be a boolean"});if(void 0!==e.crossChainBridging&&!qb.includes(e.crossChainBridging))throw new qg({crossChainBridging:"Unknown cross-chain bridging value"});return{...e,...Kv(e),access:"chainlink-ccip"!==e.crossChainBridging||e.access?e.chainlinkAce&&!e.access?"ownable":e.access??Fb.access:"roles",decimals:e.decimals??Fb.decimals,burnable:e.burnable??Fb.burnable,pausable:e.pausable??Fb.pausable,premint:e.premint||Fb.premint,premintChainId:e.premintChainId||Fb.premintChainId,mintable:"chainlink-ccip"===e.crossChainBridging&&void 0===e.mintable||(e.mintable??Fb.mintable),callback:e.callback??Fb.callback,permit:e.permit??Fb.permit,votes:e.votes??Fb.votes,flashmint:e.flashmint??Fb.flashmint,crossChainBridging:e.crossChainBridging??Fb.crossChainBridging,chainlinkAce:e.chainlinkAce??Fb.chainlinkAce,crossChainLinkAllowOverride:e.crossChainLinkAllowOverride??Fb.crossChainLinkAllowOverride,namespacePrefix:e.namespacePrefix??Fb.namespacePrefix}}function Vb(e){return e.mintable||e.pausable||"uups"===e.upgradeable||"custom"===e.crossChainBridging||"erc7786native"===e.crossChainBridging||"chainlink-ccip"===e.crossChainBridging||!0===e.chainlinkAce}function Wb(e){const t=Hb(e);if(t.chainlinkAce){const e=(e,t,n=t)=>new qg({chainlinkAce:n,[e]:t});if("managed"===t.access)throw e("access","This Wizard integration does not support Managed access with Chainlink ACE. Use Ownable or Roles.","This Wizard integration does not support Chainlink ACE with Managed access.");if(t.callback)throw e("callback","This Wizard integration does not support Callback (ERC-1363) with Chainlink ACE.","This Wizard integration does not support Chainlink ACE with Callback (ERC-1363).");if(t.flashmint)throw e("flashmint","This Wizard integration does not support Flash Minting with Chainlink ACE.","This Wizard integration does not support Chainlink ACE with Flash Minting.");if(t.crossChainBridging&&"chainlink-ccip"!==t.crossChainBridging)throw e("crossChainBridging","This Wizard integration supports Chainlink ACE only with Chainlink CCIP as the bridge mode. Select CCIP, disable Crosschain Bridging, or disable Chainlink ACE.");if(Xb(t.premint))throw e("premint","This Wizard integration does not support a premint with Chainlink ACE.","This Wizard integration does not support Chainlink ACE with a premint.")}if("chainlink-ccip"===t.crossChainBridging&&!t.mintable)throw new qg({mintable:"Chainlink CCIP requires the Mintable feature"});const n=new Bg(t.name),{access:i,upgradeable:r,info:o}=t;!function(e,t,n){e.addParent(Jb,[t,n]),e.addOverride(Jb,Yb._update),e.addOverride(Jb,Yb._approve)}(n,t.name,t.symbol);const a=Number(Zb(t.decimals,"decimals","uint8"));if(18!==a&&function(e,t){e.addOverride(Jb,Yb.decimals),e.setFunctionBody([`return ${t};`],Yb.decimals)}(n,a),t.crossChainBridging&&function(e,t,n,i,r,o,a){"chainlink-ccip"===t?function(e,t,n,i,r){if("roles"!==t)throw new qg("ownable"===t?{crossChainBridging:"This Wizard integration does not support Chainlink CCIP with Ownable access.",access:"This Wizard integration does not support Ownable access with Chainlink CCIP, because the pool would have to be the token's owner to mint. Use Roles."}:{crossChainBridging:"This Wizard integration does not support Chainlink CCIP with Managed access.",access:"This Wizard integration does not support Managed access with Chainlink CCIP. Use Roles."});Hg(e,t),e.addConstructorArgument({type:"address",name:"ccipAdmin"}),e.addConstantOrImmutableOrErrorDefinition("event CCIPAdminTransferred(address indexed previousAdmin, address indexed newAdmin);"),n?(Nv(e,["address ccipAdmin;"],i),e.addConstructorCode(jv(e.name)),e.addConstructorCode("$.ccipAdmin = ccipAdmin;"),e.setFunctionBody([jv(e.name),"return $.ccipAdmin;"],Zv.getCCIPAdmin),e.setFunctionBody([jv(e.name),"address previousCCIPAdmin = $.ccipAdmin;","$.ccipAdmin = newCCIPAdmin;","emit CCIPAdminTransferred(previousCCIPAdmin, newCCIPAdmin);"],Zv.setCCIPAdmin)):(e.addStateVariable("address private _ccipAdmin;",!1),e.addConstructorCode("_ccipAdmin = ccipAdmin;"),e.setFunctionBody(["return _ccipAdmin;"],Zv.getCCIPAdmin),e.setFunctionBody(["address previousCCIPAdmin = _ccipAdmin;","_ccipAdmin = newCCIPAdmin;","emit CCIPAdminTransferred(previousCCIPAdmin, newCCIPAdmin);"],Zv.setCCIPAdmin)),e.setFunctionComments(["// Read by RegistryModuleOwnerCustom.registerAdminViaGetCCIPAdmin. Needed for","// registry modules that do not offer the AccessControl registration path."],Zv.getCCIPAdmin),e.setFunctionComments(["// Setting this address to zero disables registration via getCCIPAdmin. It does","// not revoke an administrator already registered in the TokenAdminRegistry and","// does not disable the AccessControl path where the registry module supports it."],Zv.setCCIPAdmin),e.addModifier("onlyRole(DEFAULT_ADMIN_ROLE)",Zv.setCCIPAdmin),Vg(e,Zv.mint,t,"MINTER",void 0),e.setFunctionBody(["_mint(to, amount);"],Zv.mint),r||(Vg(e,Lv,t,"BURNER",void 0),e.setFunctionBody(["_burn(_msgSender(), amount);"],Lv))}(e,i,r,o,a):"erc7786native"===t?function(e,t,n){Bb(e,{name:"ERC20Crosschain",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Crosschain.sol"},t,n)}(e,n,i):function(e,t,n,i,r){const o={name:"ERC20Bridgeable",path:"@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Bridgeable.sol"};switch(e.addParent(o),e.addOverride(o,Fg),e.addOverride(o,Yb._checkTokenBridge),t){case"custom":!function(e,t,n,i){!1===t&&(t="ownable");switch(t){case"ownable":if(n){const n=['require(tokenBridge_ != address(0), "Invalid tokenBridge_ address");',jv(e.name),"$.tokenBridge = tokenBridge_;"];Nv(e,["address tokenBridge;"],i),e.addConstructorArgument({type:"address",name:"tokenBridge_"}),n.forEach(t=>{e.addConstructorCode(t)}),e.setFunctionBody([jv(e.name),"if (caller != $.tokenBridge) revert Unauthorized();"],Yb._checkTokenBridge,"view"),Vg(e,Yb.setTokenBridge,t,"TOKEN_BRIDGE_SETTER","tokenBridgeSetter"),e.setFunctionBody(n,Yb.setTokenBridge)}else{const n=['require(tokenBridge_ != address(0), "Invalid tokenBridge_ address");',"tokenBridge = tokenBridge_;"];e.addStateVariable("address public tokenBridge;",!1)&&(e.addConstructorArgument({type:"address",name:"tokenBridge_"}),n.forEach(t=>{e.addConstructorCode(t)})),e.setFunctionBody(["if (caller != tokenBridge) revert Unauthorized();"],Yb._checkTokenBridge,"view"),Vg(e,Yb.setTokenBridge,t,"TOKEN_BRIDGE_SETTER","tokenBridgeSetter"),n.forEach(t=>{e.addFunctionCode(t,Yb.setTokenBridge)})}break;case"roles":{Hg(e,t);const n="tokenBridge",i="TOKEN_BRIDGE_ROLE";e.addConstantOrImmutableOrErrorDefinition(`bytes32 public constant ${i} = keccak256("${i}");`)&&(e.addConstructorArgument({type:"address",name:n}),e.addConstructorCode(`_grantRole(${i}, ${n});`)),e.setFunctionBody([`if (!hasRole(${i}, caller)) revert Unauthorized();`],Yb._checkTokenBridge,"view");break}case"managed":Hg(e,t),e.addImportOnly({name:"AuthorityUtils",path:"@openzeppelin/contracts/access/manager/AuthorityUtils.sol",transpiled:!1}),e.setFunctionBody(["(bool immediate,) = AuthorityUtils.canCallWithDelay(authority(), caller, address(this), bytes4(_msgData()[0:4]));","if (!immediate) revert Unauthorized();"],Yb._checkTokenBridge,"view");break;default:throw new Error("Unknown value for `access`")}}(e,n,i,r);break;case"superchain":!function(e){e.addConstantOrImmutableOrErrorDefinition("address internal constant SUPERCHAIN_TOKEN_BRIDGE = 0x4200000000000000000000000000000000000028;"),e.setFunctionBody(["if (caller != SUPERCHAIN_TOKEN_BRIDGE) revert Unauthorized();"],Yb._checkTokenBridge,"pure"),e.setFunctionComments(["/**"," * @dev Checks if the caller is the predeployed SuperchainTokenBridge. Reverts otherwise."," *"," * IMPORTANT: The predeployed SuperchainTokenBridge is only available on chains in the Superchain."," */"],Yb._checkTokenBridge)}(e);break;default:throw new Error("Unknown value for `crossChainBridging`")}e.addConstantOrImmutableOrErrorDefinition("error Unauthorized();")}(e,t,i,r,o)}(n,t.crossChainBridging,t.crossChainLinkAllowOverride,i,r,t.namespacePrefix,t.burnable),t.premint&&function(e,t,n,i,r){const o=Xb(t);if(void 0===o)return;const{units:a,exp:s,decimalPlace:c}=o;if(c>r)throw new qg({premint:"Too many decimals"});(function(e,t,n){const i=t<=0?n:n-t;if(r=e,o=i,(o<0?r/BigInt(10)**BigInt(-o):r*BigInt(10)**BigInt(o))>Mb)throw new qg({premint:"Amount would overflow uint256 after applying decimals"});var r,o})(Zb(a,"premint","uint256"),c,r),e.addConstructorArgument({type:"address",name:"recipient"});const l=`_mint(recipient, ${a} * 10 ** ${s});`;if(i){if(""===n)throw new qg({premintChainId:"Chain ID is required when using Premint with Crosschain Bridging"});if(u=n,!Kb.test(u))throw new qg({premintChainId:"Not a valid chain ID"});e.addConstructorCode(`if (block.chainid == ${n}) {`),e.addConstructorCode(` ${l}`),e.addConstructorCode("}")}else e.addConstructorCode(l);var u}(n,t.premint,t.premintChainId,t.crossChainBridging,a),t.burnable&&function(e){e.addParent({name:"ERC20Burnable",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"})}(n),t.pausable&&function(e,t){const n={name:"ERC20Pausable",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"};e.addParent(n),e.addOverride(n,Yb._update),qv(e,t)}(n,i),t.mintable&&"chainlink-ccip"!==t.crossChainBridging&&function(e,t){Vg(e,Yb.mint,t,"MINTER","minter"),e.addFunctionCode("_mint(to, amount);",Yb.mint)}(n,i),t.callback&&function(e){const t={name:"ERC1363",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC1363.sol"};e.addParent(t),e.addOverride(t,Fg)}(n),t.permit&&function(e,t){const n={name:"ERC20Permit",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol"};e.addParent(n,[t]),e.addOverride(n,Yb.nonces)}(n,t.name),t.votes){const e=!0===t.votes?Ub:t.votes;!function(e,t,n){if(!e.parents.some(e=>"ERC20Permit"===e.contract.name)){const n={name:"EIP712",path:"@openzeppelin/contracts/utils/cryptography/EIP712.sol"};e.addParent(n,[t,"1"])}const i={name:"ERC20Votes",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol"};e.addParent(i),e.addOverride(i,Yb._update),e.addImportOnly({name:"Nonces",path:"@openzeppelin/contracts/utils/Nonces.sol"}),e.addOverride({name:"Nonces"},Yb.nonces),Nb(e,i,n)}(n,t.name,e)}return t.flashmint&&function(e){e.addParent({name:"ERC20FlashMint",path:"@openzeppelin/contracts/token/ERC20/extensions/ERC20FlashMint.sol"})}(n),Hg(n,i),t.chainlinkAce&&function(e,t,n,i,r){Hg(e,t);const o={name:"PolicyProtectedBase",path:"@chainlink/ace/packages/policy-management/src/core/PolicyProtectedBase.sol",transpiled:!0};e.addParent(o,[{lit:"policyEngine"}]),e.addConstructorArgument({type:"address",name:"policyEngine"}),e.addOverride(o,Fg),e.addOverride(o,Bv._authorizeAttachPolicyEngine),e.addModifier("roles"===t?"onlyRole(DEFAULT_ADMIN_ROLE)":"onlyOwner",Bv._authorizeAttachPolicyEngine),e.setFunctionBody([],Bv._authorizeAttachPolicyEngine);for(const t of[Bv.transfer,Bv.transferFrom])e.addOverride({name:"ERC20"},t),e.addModifier("runPolicy",t);(n||r)&&e.addModifier("runPolicy",Bv.mint),i&&(e.addOverride({name:"ERC20Burnable"},Lv),e.addOverride({name:"ERC20Burnable"},Bv.burnFrom),e.addModifier("runPolicy",Bv.burnFrom)),(i||r)&&e.addModifier("runPolicy",Lv),e.addTopLevelComment("ACE checks transfer, transferFrom, and exposed mint/burn entry points; approve and permit only manage allowances.")}(n,i,t.mintable,t.burnable,"chainlink-ccip"===t.crossChainBridging),Yv(n,r,i),Jv(n,o),t.chainlinkAce&&(n.license=eb),n}const Jb={name:"ERC20",path:"@openzeppelin/contracts/token/ERC20/ERC20.sol"};const Gb=/^(\d*)(?:\.(\d+))?(?:e(\d+))?$/,Kb=/^(?!$)[1-9]\d*$/;function Xb(e){const t=e.match(Gb);if(!t)throw new qg({premint:"Not a valid number"});const n=void 0!==t[1]?function(e){let t=0;for(;t<e.length&&"0"===e[t];)t++;return e.slice(t)}(t[1]):"",i=void 0!==t[2]?function(e){let t=e.length;for(;t>0&&"0"===e[t-1];)t--;return e.slice(0,t)}(t[2]):"",r=Number(t[3]??0);if(Number(n+i)>0){const e=i.length-r;return{units:n+i+new Array(Math.max(0,-e)).fill("0").join(""),exp:e<=0?"decimals()":`(decimals() - ${e})`,decimalPlace:e}}}const Yb=Mv({decimals:{kind:"public",args:[],returns:["uint8"],mutability:"pure"},_update:{kind:"internal",args:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"}]},_approve:{kind:"internal",args:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"emitEvent",type:"bool"}]},mint:{kind:"public",args:[{name:"to",type:"address"},{name:"amount",type:"uint256"}]},pause:{kind:"public",args:[]},unpause:{kind:"public",args:[]},snapshot:{kind:"public",args:[]},nonces:{kind:"public",args:[{name:"owner",type:"address"}],returns:["uint256"],mutability:"view"},_checkTokenBridge:{kind:"internal",args:[{name:"caller",type:"address"}]},setTokenBridge:{kind:"public",args:[{name:"tokenBridge_",type:"address"}]}}),Qb={...Gv,name:"MyToken",symbol:"MTK",baseUri:"",enumerable:!1,uriStorage:!1,burnable:!1,pausable:!1,mintable:!1,incremental:!1,votes:!1,crossChainBridging:!1,crossChainLinkAllowOverride:!1,namespacePrefix:"myProject"};function e$(e){const t=function(e){return{...e,...Kv(e),baseUri:e.baseUri??Qb.baseUri,enumerable:e.enumerable??Qb.enumerable,uriStorage:e.uriStorage??Qb.uriStorage,burnable:e.burnable??Qb.burnable,pausable:e.pausable??Qb.pausable,mintable:e.mintable??Qb.mintable,incremental:e.incremental??Qb.incremental,votes:e.votes??Qb.votes,crossChainBridging:e.crossChainBridging??Qb.crossChainBridging,crossChainLinkAllowOverride:e.crossChainLinkAllowOverride??Qb.crossChainLinkAllowOverride,namespacePrefix:e.namespacePrefix??Qb.namespacePrefix}}(e),n=new Bg(t.name),{access:i,upgradeable:r,info:o}=t;if(function(e,t,n){e.addParent(t$,[t,n]),e.addOverride(t$,n$._update),e.addOverride(t$,n$._increaseBalance),e.addOverride(t$,n$.tokenURI),e.addOverride(t$,Fg)}(n,t.name,t.symbol),t.baseUri&&function(e,t){e.addOverride(t$,n$._baseURI),e.setFunctionBody([`return ${JSON.stringify(t)};`],n$._baseURI)}(n,t.baseUri),t.crossChainBridging&&function(e,t,n,i){if("erc7786native"!==t)throw new Error("Unknown value for `crossChainBridging`");!function(e,t,n){Bb(e,{name:"ERC721Crosschain",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Crosschain.sol"},t,n)}(e,n,i)}(n,t.crossChainBridging,t.crossChainLinkAllowOverride,i),t.enumerable&&function(e){const t={name:"ERC721Enumerable",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"};e.addParent(t),e.addOverride(t,n$._update),e.addOverride(t,n$._increaseBalance),e.addOverride(t,Fg)}(n),t.uriStorage&&function(e){const t={name:"ERC721URIStorage",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"};e.addParent(t),e.addOverride(t,n$.tokenURI),e.addOverride(t,Fg)}(n),t.pausable&&function(e,t){const n={name:"ERC721Pausable",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"};e.addParent(n),e.addOverride(n,n$._update),qv(e,t)}(n,i),t.burnable&&function(e){e.addParent({name:"ERC721Burnable",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"})}(n),t.mintable&&function(e,t,n=!1,i=!1,r,o){const a=function(e,t){const n={name:"safeMint",kind:"public",args:[{name:"to",type:"address"}],returns:e?["uint256"]:void 0};e||n.args.push({name:"tokenId",type:"uint256"});t&&n.args.push({name:"uri",type:"string memory"});return n}(n,i);Vg(e,a,t,"MINTER","minter"),n?r?(Nv(e,["uint256 _nextTokenId;"],o),e.addFunctionCode(jv(e.name),a),e.addFunctionCode("uint256 tokenId = $._nextTokenId++;",a),e.addFunctionCode("_safeMint(to, tokenId);",a)):(e.addStateVariable("uint256 private _nextTokenId;",r),e.addFunctionCode("uint256 tokenId = _nextTokenId++;",a),e.addFunctionCode("_safeMint(to, tokenId);",a)):e.addFunctionCode("_safeMint(to, tokenId);",a);i&&e.addFunctionCode("_setTokenURI(tokenId, uri);",a);n&&e.addFunctionCode("return tokenId;",a)}(n,i,t.incremental,t.uriStorage,t.upgradeable,t.namespacePrefix),t.votes){const e=!0===t.votes?Ub:t.votes;!function(e,t,n){const i={name:"EIP712",path:"@openzeppelin/contracts/utils/cryptography/EIP712.sol"};e.addParent(i,[t,"1"]);const r={name:"ERC721Votes",path:"@openzeppelin/contracts/token/ERC721/extensions/ERC721Votes.sol"};e.addParent(r),e.addOverride(r,n$._update),e.addOverride(r,n$._increaseBalance),Nb(e,r,n)}(n,t.name,e)}return Hg(n,i),Yv(n,r,i),Jv(n,o),n}const t$={name:"ERC721",path:"@openzeppelin/contracts/token/ERC721/ERC721.sol"};const n$=Mv({_update:{kind:"internal",args:[{name:"to",type:"address"},{name:"tokenId",type:"uint256"},{name:"auth",type:"address"}],returns:["address"]},tokenURI:{kind:"public",args:[{name:"tokenId",type:"uint256"}],returns:["string memory"],mutability:"view"},_baseURI:{kind:"internal",args:[],returns:["string memory"],mutability:"pure"},_increaseBalance:{kind:"internal",args:[{name:"account",type:"address"},{name:"value",type:"uint128"}]}});const i$={...Gv,name:"MyToken",uri:"",burnable:!1,pausable:!1,mintable:!1,supply:!1,updatableUri:!0,crossChainBridging:!1,crossChainLinkAllowOverride:!1};function r$(e){const t=function(e){return{...e,...Kv(e),burnable:e.burnable??i$.burnable,pausable:e.pausable??i$.pausable,mintable:e.mintable??i$.mintable,supply:e.supply??i$.supply,updatableUri:e.updatableUri??i$.updatableUri,crossChainBridging:e.crossChainBridging??i$.crossChainBridging,crossChainLinkAllowOverride:e.crossChainLinkAllowOverride??i$.crossChainLinkAllowOverride}}(e),n=new Bg(t.name),{access:i,upgradeable:r,info:o}=t;return function(e,t){const n={name:"ERC1155",path:"@openzeppelin/contracts/token/ERC1155/ERC1155.sol"};e.addParent(n,[t]),e.addOverride(n,o$._update),e.addOverride(n,Fg)}(n,t.uri),t.crossChainBridging&&function(e,t,n,i){if("erc7786native"!==t)throw new Error("Unknown value for `crossChainBridging`");!function(e,t,n){Bb(e,{name:"ERC1155Crosschain",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Crosschain.sol"},t,n)}(e,n,i)}(n,t.crossChainBridging,t.crossChainLinkAllowOverride,i),t.updatableUri&&function(e,t){Vg(e,o$.setURI,t,"URI_SETTER",void 0),e.addFunctionCode("_setURI(newuri);",o$.setURI)}(n,i),t.pausable&&function(e,t){const n={name:"ERC1155Pausable",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol"};e.addParent(n),e.addOverride(n,o$._update),qv(e,t)}(n,i),t.burnable&&function(e){e.addParent({name:"ERC1155Burnable",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"})}(n),t.mintable&&function(e,t){Vg(e,o$.mint,t,"MINTER","minter"),Vg(e,o$.mintBatch,t,"MINTER","minter"),e.addFunctionCode("_mint(account, id, amount, data);",o$.mint),e.addFunctionCode("_mintBatch(to, ids, amounts, data);",o$.mintBatch)}(n,i),t.supply&&function(e){const t={name:"ERC1155Supply",path:"@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"};e.addParent(t),e.addOverride(t,o$._update)}(n),Hg(n,i),Yv(n,r,i),Jv(n,o),n}const o$=Mv({_update:{kind:"internal",args:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"ids",type:"uint256[] memory"},{name:"values",type:"uint256[] memory"}]},setURI:{kind:"public",args:[{name:"newuri",type:"string memory"}]},mint:{kind:"public",args:[{name:"account",type:"address"},{name:"id",type:"uint256"},{name:"amount",type:"uint256"},{name:"data",type:"bytes memory"}]},mintBatch:{kind:"public",args:[{name:"to",type:"address"},{name:"ids",type:"uint256[] memory"},{name:"amounts",type:"uint256[] memory"},{name:"data",type:"bytes memory"}]}}),a$={...Fb,name:"MyStablecoin",symbol:"MST",restrictions:!1,freezable:!1};function s$(e=a$){return yb(l$(e))}function c$(e){return Vb(e)||!!e.restrictions||!!e.freezable}function l$(e){const t=function(e){return{...Hb(e),name:e.name??a$.name,symbol:e.symbol??a$.symbol,restrictions:e.restrictions??a$.restrictions,freezable:e.freezable??a$.freezable}}(e);if("chainlink-ccip"===t.crossChainBridging&&t.upgradeable)throw new qg({upgradeable:"CCIP stablecoins do not support upgrades"});if(t.chainlinkAce&&t.upgradeable)throw new qg({upgradeable:"This Wizard integration does not support ACE with upgradeable Stablecoin or RWA."});t.upgradeable=!1;const n=Wb(t);return t.freezable&&function(e,t){const n={name:"ERC20Freezable",path:"@openzeppelin/community-contracts/token/ERC20/extensions/ERC20Freezable.sol"};e.addParent(n),e.addOverride(n,u$._update),!1===t&&(t="ownable");const i=u$.freeze;Vg(e,i,t,"FREEZER","freezer"),e.setFunctionBody(["_setFrozen(user, amount);"],i)}(n,t.access),t.restrictions&&function(e,t,n){const i="allowlist"===n,r={name:"ERC20Restricted",path:"@openzeppelin/community-contracts/token/ERC20/extensions/ERC20Restricted.sol"};e.addParent(r),e.addOverride(r,u$._update),i&&(e.addOverride(r,u$.isUserAllowed),e.setFunctionBody(["return getRestriction(user) == Restriction.ALLOWED;"],u$.isUserAllowed));const[o,a]=i?[u$.allowUser,u$.disallowUser]:[u$.blockUser,u$.unblockUser];Vg(e,o,t,"LIMITER","limiter"),e.addFunctionCode(`_${i?"allow":"block"}User(user);`,o),Vg(e,a,t,"LIMITER","limiter"),e.addFunctionCode("_resetUser(user);",a)}(n,t.access,t.restrictions),n}const u$={...Yb,...Mv({freeze:{kind:"public",args:[{name:"user",type:"address"},{name:"amount",type:"uint256"}]},allowUser:{kind:"public",args:[{name:"user",type:"address"}]},disallowUser:{kind:"public",args:[{name:"user",type:"address"}]},blockUser:{kind:"public",args:[{name:"user",type:"address"}]},unblockUser:{kind:"public",args:[{name:"user",type:"address"}]},isUserAllowed:{kind:"public",args:[{name:"user",type:"address"}],returns:["bool"],mutability:"view"}})};const d$={ECDSA:{name:"SignerECDSA",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerECDSA.sol"},EIP7702:{name:"SignerEIP7702",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerEIP7702.sol"},Multisig:{name:"MultiSignerERC7913",path:"@openzeppelin/contracts/utils/cryptography/signers/MultiSignerERC7913.sol"},MultisigWeighted:{name:"MultiSignerERC7913Weighted",path:"@openzeppelin/contracts/utils/cryptography/signers/MultiSignerERC7913Weighted.sol"},P256:{name:"SignerP256",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerP256.sol"},RSA:{name:"SignerRSA",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerRSA.sol"},WebAuthn:{name:"SignerWebAuthn",path:"@openzeppelin/contracts/utils/cryptography/signers/SignerWebAuthn.sol"}},p$={ECDSA:[{name:"signer",type:"address"}],P256:[{name:"qx",type:"bytes32"},{name:"qy",type:"bytes32"}],Multisig:[{name:"signers",type:"bytes[] memory"},{name:"threshold",type:"uint64"}],MultisigWeighted:[{name:"signers",type:"bytes[] memory"},{name:"weights",type:"uint64[] memory"},{name:"threshold",type:"uint64"}],RSA:[{name:"e",type:"bytes memory"},{name:"n",type:"bytes memory"}],WebAuthn:[]},m$=Mv({_rawSignatureValidation:{kind:"internal",args:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes calldata"}],returns:["bool"],mutability:"view"}}),f$={...Gv,name:"MyAccount",signatureValidation:"ERC7739",ERC721Holder:!0,ERC1155Holder:!0,signer:"ECDSA",batchedExecution:!1,ERC7579Modules:!1};function h$(e){const t=function(e){return{...Kv(e),name:e.name??f$.name,signatureValidation:e.signatureValidation??f$.signatureValidation,ERC721Holder:e.ERC721Holder??f$.ERC721Holder,ERC1155Holder:e.ERC1155Holder??f$.ERC1155Holder,signer:e.signer??f$.signer,batchedExecution:e.batchedExecution??f$.batchedExecution,ERC7579Modules:e.ERC7579Modules??f$.ERC7579Modules}}(e);t.access=!1;const n=new Bg(t.name);return function(e,t){e.addParent({name:"Account",path:"@openzeppelin/contracts/account/Account.sol",transpiled:!1}),e.addOverride({name:"Account",transpiled:!1},g$._validateUserOp),"ERC7739"===t.signatureValidation&&function(e,t){if("ERC7739"!=t.signatureValidation)return;e.addParent({name:"EIP712",path:"@openzeppelin/contracts/utils/cryptography/EIP712.sol",transpiled:!1},[t.name,"1"])}(e,t);(function(e,t){switch(t.signatureValidation){case"ERC7739":e.addParent({name:"ERC7739",path:"@openzeppelin/contracts/utils/cryptography/signers/draft-ERC7739.sol",transpiled:!1});break;case"ERC1271":e.addParent({name:"IERC1271",path:"@openzeppelin/contracts/interfaces/IERC1271.sol"}),e.addOverride({name:"IERC1271"},g$.isValidSignature),t.ERC7579Modules||e.setFunctionBody(["return _rawSignatureValidation(hash, signature) ? IERC1271.isValidSignature.selector : bytes4(0xffffffff);"],g$.isValidSignature)}})(e,t),function(e,t){if(!t.ERC7579Modules)return;e.addParent({name:t.ERC7579Modules,path:`@openzeppelin/contracts/account/extensions/draft-${t.ERC7579Modules}.sol`}),"AccountERC7579"!==t.ERC7579Modules&&e.addImportOnly({name:"AccountERC7579",path:"@openzeppelin/contracts/account/extensions/draft-AccountERC7579.sol"});t.signer||(e.addConstructorArgument({type:"uint256",name:"moduleTypeId"}),e.addConstructorArgument({type:"address",name:"module"}),e.addConstructorArgument({type:"bytes calldata",name:"initData"}),e.addConstructorCode("require(moduleTypeId == MODULE_TYPE_VALIDATOR || moduleTypeId == MODULE_TYPE_EXECUTOR);"),e.addConstructorCode("_installModule(moduleTypeId, module, initData);"));e.addOverride({name:"AccountERC7579"},g$._validateUserOp),e.addOverride({name:"AccountERC7579"},g$.isValidSignature),"ERC7739"===t.signatureValidation&&(e.addOverride({name:"ERC7739",transpiled:!1},g$.isValidSignature),e.setFunctionBody(["// ERC-7739 can return the ERC-1271 magic value, 0xffffffff (invalid) or 0x77390001 (detection).","// If the returned value is 0xffffffff, fallback to ERC-7579 validation.","bytes4 erc7739magic = ERC7739.isValidSignature(hash, signature);",`return erc7739magic == bytes4(0xffffffff) ? ${t.upgradeable?ub("AccountERC7579"):"AccountERC7579"}.isValidSignature(hash, signature) : erc7739magic;`],g$.isValidSignature))}(e,t),function(e,t,n){if(!t)return;const i="MultisigWeighted"===t?d$.Multisig.name:d$[t].name;switch(e.addOverride({name:i},m$._rawSignatureValidation),t){case"EIP7702":if(e.addParent(d$[t]),n)throw new qg({eip7702:"EOAs can upgrade by redelegating to a new account",upgradeable:"EOAs can upgrade by redelegating to a new account"});break;case"ECDSA":case"P256":case"RSA":case"Multisig":case"MultisigWeighted":p$[t].forEach(t=>e.addConstructorArgument(t)),e.addParent(d$[t],p$[t].map(e=>({lit:e.name})));break;case"WebAuthn":p$.P256.forEach(t=>e.addConstructorArgument(t)),e.addParent(d$.P256,p$.P256.map(e=>({lit:e.name}))),e.addParent(d$[t]),e.addImportOnly({name:"AbstractSigner",path:"@openzeppelin/contracts/utils/cryptography/signers/AbstractSigner.sol",transpiled:!1}),e.addOverride({name:"AbstractSigner",transpiled:!1},m$._rawSignatureValidation),e.addOverride({name:"SignerP256"},m$._rawSignatureValidation);break;default:throw new Error("Unknown signer")}}(e,t.signer??!1,t.upgradeable??!1),function(e,t){switch(t.signer){case"MultisigWeighted":e.addFunctionCode(`_setSignerWeights(${g$.setSignerWeights.args.map(({name:e})=>e).join(", ")});`,g$.setSignerWeights),e.addModifier("onlyEntryPointOrSelf",g$.setSignerWeights);case"Multisig":e.addFunctionCode(`_addSigners(${g$.addSigners.args[0].name});`,g$.addSigners),e.addModifier("onlyEntryPointOrSelf",g$.addSigners),e.addFunctionCode(`_removeSigners(${g$.removeSigners.args[0].name});`,g$.removeSigners),e.addModifier("onlyEntryPointOrSelf",g$.removeSigners),e.addFunctionCode(`_setThreshold(${g$.setThreshold.args[0].name});`,g$.setThreshold),e.addModifier("onlyEntryPointOrSelf",g$.setThreshold)}}(e,t),function(e,t){if(!t.batchedExecution||t.ERC7579Modules)return;e.addParent({name:"ERC7821",path:"@openzeppelin/contracts/account/extensions/draft-ERC7821.sol",transpiled:!1}),e.addOverride({name:"ERC7821",transpiled:!1},g$._erc7821AuthorizedExecutor),e.setFunctionBody(["return caller == address(entryPoint()) || super._erc7821AuthorizedExecutor(caller, mode, executionData);"],g$._erc7821AuthorizedExecutor)}(e,t),function(e,t){if(!t.ERC721Holder)return;e.addParent({name:"ERC721Holder",path:"@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol",transpiled:!1})}(e,t),function(e,t){if(!t.ERC1155Holder)return;e.addParent({name:"ERC1155Holder",path:"@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol",transpiled:!1})}(e,t)}(n,t),function(e,t){if(t.signer&&!t.ERC7579Modules)return;if(!t.signer&&t.ERC7579Modules)return;t.signer||t.ERC7579Modules||(e.addOverride({name:"Account",transpiled:!1},m$._rawSignatureValidation),e.setFunctionBody(["// Custom validation logic","return false;"],m$._rawSignatureValidation));if(t.signer&&t.ERC7579Modules){const n=t.upgradeable?ub("AccountERC7579"):"AccountERC7579",i=d$[t.signer].name,r=t.upgradeable?ub(i):i;"WebAuthn"!==t.signer&&(e.addImportOnly({name:"AbstractSigner",path:"@openzeppelin/contracts/utils/cryptography/signers/AbstractSigner.sol",transpiled:!1}),e.addOverride({name:"AbstractSigner",transpiled:!1},m$._rawSignatureValidation)),e.addOverride({name:"AccountERC7579"},m$._rawSignatureValidation),e.setFunctionComments([`// IMPORTANT: Make sure ${r} is more derived than ${n}`,`// in the inheritance chain (i.e. contract ... is ${n}, ..., ${r})`,"// to ensure the correct order of function resolution.",`// ${n} returns false for _rawSignatureValidation`],m$._rawSignatureValidation),"MultisigWeighted"===t.signer&&e.addImportOnly(d$.Multisig)}}(n,t),function(e,t){Xv(e,t,()=>{e.addModifier("onlyEntryPointOrSelf",Qv._authorizeUpgrade)})}(n,t.upgradeable),Jv(n,t.info),e.ERC7579Modules&&n.addImportOnly({name:"PackedUserOperation",path:"@openzeppelin/contracts/interfaces/IERC4337.sol",transpiled:!1}),n}const g$={...Mv({isValidSignature:{kind:"public",mutability:"view",args:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes calldata"}],returns:["bytes4"]},_validateUserOp:{kind:"internal",args:[{name:"userOp",type:"PackedUserOperation calldata"},{name:"userOpHash",type:"bytes32"},{name:"signature",type:"bytes calldata"}],returns:["uint256"]},_erc7821AuthorizedExecutor:{kind:"internal",args:[{name:"caller",type:"address"},{name:"mode",type:"bytes32"},{name:"executionData",type:"bytes calldata"}],returns:["bool"],mutability:"view"},addSigners:{kind:"public",args:[{name:"signers",type:"bytes[] memory"}]},removeSigners:{kind:"public",args:[{name:"signers",type:"bytes[] memory"}]},setThreshold:{kind:"public",args:[{name:"threshold",type:"uint64"}]},setSignerWeights:{kind:"public",args:[{name:"signers",type:"bytes[] memory"},{name:"weights",type:"uint64[] memory"}]}})},v$=new RegExp(`^(\\d+(?:\\.\\d+)?) +(${["block","second","minute","hour","day","week","month","year"].join("|")})s?$`),b$=86400,$$={second:1,minute:60,hour:3600,day:b$,week:604800,month:2592e3,year:31536e3};function y$(e,t){const n=e.trim().match(v$);if(!n)throw new Error("Bad duration format");const i=parseFloat(n[1]),r=n[2];if("block"===r){if(!Number.isInteger(i))throw new Error("Invalid number of blocks");return i}const o=i*$$[r];return Math.round(o/t)}function k$(e){const t=e.trim().match(v$);if(!t)throw new Error("Bad duration format");const n=t[1],i=t[2];if("block"===i||"month"===i||"year"===i)throw new Error("Invalid unit for timestamp");return`${n} ${i}s`}const _$={...Gv,name:"MyGovernor",delay:"1 day",period:"1 week",votes:"erc20votes",clockMode:Ub,timelock:"openzeppelin",blockTime:12,decimals:18,proposalThreshold:"0",quorumMode:"percent",quorumPercent:4,quorumAbsolute:"",storage:!1,settings:!0,crossChainExecution:!1};function x$(e){const t=function(e){return{...e,...Kv(e),decimals:e.decimals??_$.decimals,blockTime:e.blockTime||_$.blockTime,quorumPercent:e.quorumPercent??_$.quorumPercent,quorumAbsolute:e.quorumAbsolute??_$.quorumAbsolute,proposalThreshold:e.proposalThreshold||_$.proposalThreshold,settings:e.settings??_$.settings,storage:e.storage??_$.storage,quorumMode:e.quorumMode??_$.quorumMode,votes:e.votes??_$.votes,clockMode:e.clockMode??_$.clockMode,timelock:e.timelock??_$.timelock,crossChainExecution:e.crossChainExecution??_$.crossChainExecution}}(e),n=new Bg(t.name);return function(e){if(!/^\d+$/.test(e.toString()))throw new qg({decimals:"Not a valid number"})}(t.decimals),function(e,{name:t}){e.addParent(w$,[t]),e.addOverride(w$,O$.state),e.addOverride(w$,O$.propose),e.addOverride(w$,O$.proposalNeedsQueuing),e.addOverride(w$,O$.proposalThreshold),e.addOverride(w$,O$._propose),e.addOverride(w$,O$._queueOperations),e.addOverride(w$,O$._executeOperations),e.addOverride(w$,O$._cancel),e.addOverride(w$,O$._executor),e.addOverride(w$,Fg)}(n,t),function(e,t){if(t.settings){const n={name:"GovernorSettings",path:"@openzeppelin/contracts/governance/extensions/GovernorSettings.sol"};e.addParent(n,[C$(t),I$(t),{lit:E$(t)}]),e.addOverride(n,O$.votingDelay,"view"),e.addOverride(n,O$.votingPeriod,"view"),e.addOverride(n,O$.proposalThreshold,"view")}else!function(e,t){const n=C$(t);"lit"in n?e.setFunctionBody([`return ${n.lit};`],O$.votingDelay):e.setFunctionBody([`return ${n.value}; // ${n.note}`],O$.votingDelay);e.addOverride(w$,O$.votingDelay);const i=I$(t);"lit"in i?e.setFunctionBody([`return ${i.lit};`],O$.votingPeriod):e.setFunctionBody([`return ${i.value}; // ${i.note}`],O$.votingPeriod);e.addOverride(w$,O$.votingPeriod)}(e,t),function(e,t){const n=E$(t);0!==parseInt(n)&&e.setFunctionBody([`return ${n};`],O$.proposalThreshold)}(e,t)}(n,t),function(e){e.addParent({name:"GovernorCountingSimple",path:"@openzeppelin/contracts/governance/extensions/GovernorCountingSimple.sol"})}(n),function(e,{storage:t}){if(t){const t={name:"GovernorStorage",path:"@openzeppelin/contracts/governance/extensions/GovernorStorage.sol"};e.addParent(t),e.addOverride(t,O$._propose)}}(n,t),function(e){const t="_token";e.addImportOnly({name:"IVotes",path:"@openzeppelin/contracts/governance/utils/IVotes.sol",transpiled:!1}),e.addConstructorArgument({type:{name:"IVotes",transpiled:!1},name:t}),e.addParent({name:"GovernorVotes",path:"@openzeppelin/contracts/governance/extensions/GovernorVotes.sol"},[{lit:t}])}(n),function(e,t){if("percent"===t.quorumMode){if(t.quorumPercent>100)throw new qg({quorumPercent:"Invalid percentage"});const{quorumFractionNumerator:n,quorumFractionDenominator:i}=function(e){let t,n=e;const i=e.toString().split(".");if(i.length>2)throw new qg({quorumPercent:"Invalid percentage"});if(2==i.length&&void 0!==i[0]&&void 0!==i[1]){n=parseInt(i[0].concat(i[1]));const e=i[1].length;for(t="100";t.length<e+3;)t+="0"}return{quorumFractionNumerator:n,quorumFractionDenominator:t}}(t.quorumPercent),r={name:"GovernorVotesQuorumFraction",path:"@openzeppelin/contracts/governance/extensions/GovernorVotesQuorumFraction.sol"};void 0!==i&&(e.addOverride(r,O$.quorumDenominator),e.setFunctionBody([`return ${i};`],O$.quorumDenominator,"pure")),e.addParent(r,[n]),e.addOverride(r,O$.quorum)}else if("absolute"===t.quorumMode){if(!S$.test(t.quorumAbsolute))throw new qg({quorumAbsolute:"Not a valid number"});const n=0===t.decimals||"erc721votes"===t.votes?`return ${t.quorumAbsolute};`:`return ${t.quorumAbsolute}e${t.decimals};`;e.setFunctionBody([n],O$.quorum,"pure"),e.addOverride(w$,O$.quorum)}}(n,t),function(e,{timelock:t}){if(!1===t)return;const n="_timelock",{timelockType:i,timelockParent:r}=z$[t];e.addImportOnly(i),e.addConstructorArgument({type:i,name:n}),e.addParent(r,[{lit:n}]),e.addOverride(r,O$._queueOperations),e.addOverride(r,O$._executeOperations),e.addOverride(r,O$._cancel),e.addOverride(r,O$._executor),e.addOverride(r,O$.state),e.addOverride(r,O$.proposalNeedsQueuing)}(n,t),function(e,{crossChainExecution:t}){if(!t)return;e.addParent({name:"GovernorCrosschain",path:"@openzeppelin/contracts/governance/extensions/GovernorCrosschain.sol"})}(n,t),function(e,t){Xv(e,t,()=>{e.addModifier("onlyGovernance",Qv._authorizeUpgrade)})}(n,t.upgradeable),Jv(n,t.info),n}const w$={name:"Governor",path:"@openzeppelin/contracts/governance/Governor.sol"};function C$(e){try{return"timestamp"===e.clockMode?{lit:k$(e.delay)}:{value:y$(e.delay,e.blockTime),note:e.delay}}catch(e){throw e instanceof Error?new qg({delay:e.message}):e}}function I$(e){try{return"timestamp"===e.clockMode?{lit:k$(e.period)}:{value:y$(e.period,e.blockTime),note:e.period}}catch(e){throw e instanceof Error?new qg({period:e.message}):e}}function E$({proposalThreshold:e,decimals:t,votes:n}){if(!/^\d+$/.test(e))throw new qg({proposalThreshold:"Not a valid number"});return/^0+$/.test(e)||0===t||"erc721votes"===n?e:`${e}e${t}`}const S$=/^(?!$)(\d*)(?:\.(\d+))?(?:e(\d+))?$/;const z$={openzeppelin:{timelockType:{name:"TimelockController",path:"@openzeppelin/contracts/governance/TimelockController.sol"},timelockParent:{name:"GovernorTimelockControl",path:"@openzeppelin/contracts/governance/extensions/GovernorTimelockControl.sol"}},compound:{timelockType:{name:"ICompoundTimelock",path:"@openzeppelin/contracts/vendor/compound/ICompoundTimelock.sol",transpiled:!1},timelockParent:{name:"GovernorTimelockCompound",path:"@openzeppelin/contracts/governance/extensions/GovernorTimelockCompound.sol"}}};const O$=Mv({votingDelay:{args:[],returns:["uint256"],kind:"public",mutability:"pure"},votingPeriod:{args:[],returns:["uint256"],kind:"public",mutability:"pure"},proposalThreshold:{args:[],returns:["uint256"],kind:"public",mutability:"pure"},proposalNeedsQueuing:{args:[{name:"proposalId",type:"uint256"}],returns:["bool"],kind:"public",mutability:"view"},quorum:{args:[{name:"blockNumber",type:"uint256"}],returns:["uint256"],kind:"public",mutability:"view"},quorumDenominator:{args:[],returns:["uint256"],kind:"public",mutability:"view"},propose:{args:[{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"description",type:"string memory"}],returns:["uint256"],kind:"public"},_propose:{args:[{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"description",type:"string memory"},{name:"proposer",type:"address"}],returns:["uint256"],kind:"internal"},_queueOperations:{args:[{name:"proposalId",type:"uint256"},{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"descriptionHash",type:"bytes32"}],kind:"internal",returns:["uint48"]},_executeOperations:{args:[{name:"proposalId",type:"uint256"},{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"descriptionHash",type:"bytes32"}],kind:"internal"},_cancel:{args:[{name:"targets",type:"address[] memory"},{name:"values",type:"uint256[] memory"},{name:"calldatas",type:"bytes[] memory"},{name:"descriptionHash",type:"bytes32"}],returns:["uint256"],kind:"internal"},state:{args:[{name:"proposalId",type:"uint256"}],returns:["ProposalState"],kind:"public",mutability:"view"},_executor:{args:[],returns:["address"],kind:"internal",mutability:"view"}}),A$={name:"MyContract",pausable:!1,access:Gv.access,upgradeable:Gv.upgradeable,info:Gv.info};function T$(e){const t=function(e){return{...e,...Kv(e),pausable:e.pausable??A$.pausable}}(e),n=new Bg(t.name),{access:i,upgradeable:r,info:o}=t;return t.pausable&&function(e,t,n){e.addParent({name:"Pausable",path:"@openzeppelin/contracts/utils/Pausable.sol"});for(const t of n)e.addModifier("whenNotPaused",t);qv(e,t)}(n,i,[]),Hg(n,i),Yv(n,r,i),Jv(n,o),n}var P$="5.7.0";function U$(e){const t=[`@openzeppelin/contracts/=@openzeppelin/contracts@${P$}/`];return e?.upgradeable&&t.push(`@openzeppelin/contracts-upgradeable/=@openzeppelin/contracts-upgradeable@${P$}/`),e?.chainlinkAce&&t.push("@chainlink/ace/=@chainlink/ace@1.2.0/"),t}const R$={print:function(e=Fb){return yb(Wb(e))},getVersionedRemappings:U$,defaults:Fb,isAccessControlRequired:Vb},N$={print:function(e=Qb){return yb(e$(e))},getVersionedRemappings:U$,defaults:Qb,isAccessControlRequired:function(e){return e.mintable||e.pausable||"uups"===e.upgradeable||"erc7786native"===e.crossChainBridging}},j$={print:function(e=i$){return yb(r$(e))},getVersionedRemappings:U$,defaults:i$,isAccessControlRequired:function(e){return e.mintable||e.pausable||!1!==e.updatableUri||"uups"===e.upgradeable||"erc7786native"===e.crossChainBridging}},D$={print:s$,getVersionedRemappings:U$,defaults:a$,isAccessControlRequired:c$},M$={defaults:f$},Z$={print:s$,getVersionedRemappings:U$,defaults:a$,isAccessControlRequired:c$},L$={defaults:_$},B$={print:function(e=A$){return yb(T$(e))},getVersionedRemappings:U$,defaults:A$,isAccessControlRequired:function(e){return e.pausable||"uups"===e.upgradeable}};!function(e){const[t,n,i]=e.split(".").map(e=>parseInt(e,10));if(0===t&&8===n&&Number.isInteger(i))return`0.8.${Math.min(i,26)}`}(gb);const q$="5.6.0";var F$,H$;function V$(){if(H$)return F$;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n],r=typeof i;"object"!==r&&"function"!==r||Object.isFrozen(i)||e(i)}),t}H$=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const r=e=>!!e.scope;class o{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!r(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){r(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const a=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class s{constructor(){this.rootNode=a(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=a({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{s._collapse(e)}))}}class c extends s{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(e){return e?"string"==typeof e?e:e.source:null}function u(e){return m("(?=",e,")")}function d(e){return m("(?:",e,")*")}function p(e){return m("(?:",e,")?")}function m(...e){return e.map(e=>l(e)).join("")}function f(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map(e=>l(e)).join("|")+")"}function h(e){return new RegExp(e.toString()+"|").exec("").length-1}const g=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n;let i=l(e),r="";for(;i.length>0;){const e=g.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r}).map(e=>`(${e})`).join(t)}const b="[a-zA-Z]\\w*",$="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",_="\\b(0b[01]+)",x={begin:"\\\\[\\s\\S]",relevance:0},w={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[x]},C={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[x]},I=function(e,t,n={}){const r=i({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:m(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},E=I("//","$"),S=I("/\\*","\\*/"),z=I("#","$"),O={scope:"number",begin:y,relevance:0},A={scope:"number",begin:k,relevance:0},T={scope:"number",begin:_,relevance:0},P={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[x,{begin:/\[/,end:/\]/,relevance:0,contains:[x]}]},U={scope:"title",begin:b,relevance:0},R={scope:"title",begin:$,relevance:0},N={begin:"\\.\\s*"+$,relevance:0};var j=Object.freeze({__proto__:null,APOS_STRING_MODE:w,BACKSLASH_ESCAPE:x,BINARY_NUMBER_MODE:T,BINARY_NUMBER_RE:_,COMMENT:I,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:E,C_NUMBER_MODE:A,C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:b,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:N,NUMBER_MODE:O,NUMBER_RE:y,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:C,REGEXP_MODE:P,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=m(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:U,UNDERSCORE_IDENT_RE:$,UNDERSCORE_TITLE_MODE:R});function D(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function M(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Z(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=D,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function L(e,t){Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function q(e,t){void 0===e.relevance&&(e.relevance=1)}const F=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=m(n.beforeMatch,u(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},H=["of","and","for","in","not","or","if","then","parent","list","value"];function V(e,t,n="keyword"){const i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach(function(n){Object.assign(i,V(e[n],t,n))}),i;function r(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){const n=t.split("|");i[n[0]]=[e,W(n[0],n[1])]})}}function W(e,t){return t?Number(t):function(e){return H.includes(e.toLowerCase())}(e)?0:1}const J={},G=e=>{console.error(e)},K=(e,...t)=>{console.log(`WARN: ${e}`,...t)},X=(e,t)=>{J[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),J[`${e}/${t}`]=!0)},Y=new Error;function Q(e,t,{key:n}){let i=0;const r=e[n],o={},a={};for(let e=1;e<=t.length;e++)a[e+i]=r[e],o[e+i]=!0,i+=h(t[e-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw G("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Y;if("object"!=typeof e.beginScope||null===e.beginScope)throw G("beginScope must be object"),Y;Q(e,e.begin,{key:"beginScope"}),e.begin=v(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw G("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Y;if("object"!=typeof e.endScope||null===e.endScope)throw G("endScope must be object"),Y;Q(e,e.end,{key:"endScope"}),e.end=v(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=h(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(v(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function n(o,a){const s=o;if(o.isCompiled)return s;[M,B,ee,F].forEach(e=>e(o,a)),e.compilerExtensions.forEach(e=>e(o,a)),o.__beforeBegin=null,[Z,L,q].forEach(e=>e(o,a)),o.isCompiled=!0;let c=null;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=V(o.keywords,e.case_insensitive)),s.keywordPatternRe=t(c,!0),a&&(o.begin||(o.begin=/\B|\b/),s.beginRe=t(s.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(s.endRe=t(s.end)),s.terminatorEnd=l(s.end)||"",o.endsWithParent&&a.terminatorEnd&&(s.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(s.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return i(e,{variants:null},t)}));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return i(e,{starts:e.starts?i(e.starts):null});if(Object.isFrozen(e))return i(e);return e}("self"===e?o:e)})),o.contains.forEach(function(e){n(e,s)}),o.starts&&n(o.starts,a),s.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(s),s}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class ie extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const re=n,oe=i,ae=Symbol("nomatch"),se=function(n){const i=Object.create(null),r=Object.create(null),o=[];let a=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let h={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:c};function g(e){return h.noHighlightRe.test(e)}function v(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);const o={code:i,language:r};I("before:highlight",o);const a=o.result?o.result:b(o.language,o.code,n);return a.code=o.code,I("after:highlight",a),a}function b(e,n,r,o){const c=Object.create(null);function l(e,t){return e.keywords[t]}function u(){if(!E.keywords)return void z.addText(O);let e=0;E.keywordPatternRe.lastIndex=0;let t=E.keywordPatternRe.exec(O),n="";for(;t;){n+=O.substring(e,t.index);const i=w.case_insensitive?t[0].toLowerCase():t[0],r=l(E,i);if(r){const[e,o]=r;if(z.addText(n),n="",c[i]=(c[i]||0)+1,c[i]<=7&&(A+=o),e.startsWith("_"))n+=t[0];else{const n=w.classNameAliases[e]||e;p(t[0],n)}}else n+=t[0];e=E.keywordPatternRe.lastIndex,t=E.keywordPatternRe.exec(O)}n+=O.substring(e),z.addText(n)}function d(){null!=E.subLanguage?function(){if(""===O)return;let e=null;if("string"==typeof E.subLanguage){if(!i[E.subLanguage])return void z.addText(O);e=b(E.subLanguage,O,!0,S[E.subLanguage]),S[E.subLanguage]=e._top}else e=$(O,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(A+=e.relevance),z.__addSublanguage(e._emitter,e.language)}():u(),O=""}function p(e,t){""!==e&&(z.startScope(t),z.addText(e),z.endScope())}function m(e,t){let n=1;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}const i=w.classNameAliases[e[n]]||e[n],r=t[n];i?p(r,i):(O=r,u(),O=""),n++}}function f(e,t){return e.scope&&"string"==typeof e.scope&&z.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(p(O,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),O=""):e.beginScope._multi&&(m(e.beginScope,t),O="")),E=Object.create(e,{parent:{value:E}}),E}function g(e,n,i){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,i);if(r){if(e["on:end"]){const i=new t(e);e["on:end"](n,i),i.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,n,i)}function v(e){return 0===E.matcher.regexIndex?(O+=e[0],1):(U=!0,0)}function y(e){const t=e[0],i=n.substring(e.index),r=g(E,e,i);if(!r)return ae;const o=E;E.endScope&&E.endScope._wrap?(d(),p(t,E.endScope._wrap)):E.endScope&&E.endScope._multi?(d(),m(E.endScope,e)):o.skip?O+=t:(o.returnEnd||o.excludeEnd||(O+=t),d(),o.excludeEnd&&(O=t));do{E.scope&&z.closeNode(),E.skip||E.subLanguage||(A+=E.relevance),E=E.parent}while(E!==r.parent);return r.starts&&f(r.starts,e),o.returnEnd?0:t.length}let k={};function _(i,o){const s=o&&o[0];if(O+=i,null==s)return d(),0;if("begin"===k.type&&"end"===o.type&&k.index===o.index&&""===s){if(O+=n.slice(o.index,o.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=k.rule,t}return 1}if(k=o,"begin"===o.type)return function(e){const n=e[0],i=e.rule,r=new t(i),o=[i.__beforeBegin,i["on:begin"]];for(const t of o)if(t&&(t(e,r),r.isMatchIgnored))return v(n);return i.skip?O+=n:(i.excludeBegin&&(O+=n),d(),i.returnBegin||i.excludeBegin||(O=n)),f(i,e),i.returnBegin?0:n.length}(o);if("illegal"===o.type&&!r){const e=new Error('Illegal lexeme "'+s+'" for mode "'+(E.scope||"<unnamed>")+'"');throw e.mode=E,e}if("end"===o.type){const e=y(o);if(e!==ae)return e}if("illegal"===o.type&&""===s)return O+="\n",1;if(P>1e5&&P>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return O+=s,s.length}const w=x(e);if(!w)throw G(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');const C=te(w);let I="",E=o||C;const S={},z=new h.__emitter(h);!function(){const e=[];for(let t=E;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>z.openNode(e))}();let O="",A=0,T=0,P=0,U=!1;try{if(w.__emitTokens)w.__emitTokens(n,z);else{for(E.matcher.considerAll();;){P++,U?U=!1:E.matcher.considerAll(),E.matcher.lastIndex=T;const e=E.matcher.exec(n);if(!e)break;const t=_(n.substring(T,e.index),e);T=e.index+t}_(n.substring(T))}return z.finalize(),I=z.toHTML(),{language:e,value:I,relevance:A,illegal:!1,_emitter:z,_top:E}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:re(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:T,context:n.slice(T-100,T+100),mode:t.mode,resultSoFar:I},_emitter:z};if(a)return{language:e,value:re(n),illegal:!1,relevance:0,errorRaised:t,_emitter:z,_top:E};throw t}}function $(e,t){t=t||h.languages||Object.keys(i);const n=function(e){const t={value:re(e),illegal:!1,relevance:0,_top:l,_emitter:new h.__emitter(h)};return t._emitter.addText(e),t}(e),r=t.filter(x).filter(C).map(t=>b(t,e,!1));r.unshift(n);const o=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(x(e.language).supersetOf===t.language)return 1;if(x(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,c=a;return c.secondBest=s,c}function y(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=h.languageDetectRe.exec(t);if(n){const t=x(n[1]);return t||(K(s.replace("{}",n[1])),K("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>g(e)||x(e))}(e);if(g(n))return;if(I("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(h.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),h.throwUnescapedHTML)){throw new ie("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const i=t.textContent,o=n?v(i,{language:n,ignoreIllegals:!0}):$(i);e.innerHTML=o.value,e.dataset.highlighted="yes",function(e,t,n){const i=t&&r[t]||n;e.classList.add("hljs"),e.classList.add(`language-${i}`)}(e,n,o.language),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),I("after:highlightElement",{el:e,result:o,text:i})}let k=!1;function _(){if("loading"===document.readyState)return k||window.addEventListener("DOMContentLoaded",function(){_()},!1),void(k=!0);document.querySelectorAll(h.cssSelector).forEach(y)}function x(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]}function w(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=t})}function C(e){const t=x(e);return t&&!t.disableAutodetect}function I(e,t){const n=e;o.forEach(function(e){e[n]&&e[n](t)})}Object.assign(n,{highlight:v,highlightAuto:$,highlightAll:_,highlightElement:y,highlightBlock:function(e){return X("10.7.0","highlightBlock will be removed entirely in v12.0"),X("10.7.0","Please use highlightElement now."),y(e)},configure:function(e){h=oe(h,e)},initHighlighting:()=>{_(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){_(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let r=null;try{r=t(n)}catch(t){if(G("Language definition for '{}' could not be registered.".replace("{}",e)),!a)throw t;G(t),r=l}r.name||(r.name=e),i[e]=r,r.rawDefinition=t.bind(null,n),r.aliases&&w(r.aliases,{languageName:e})},unregisterLanguage:function(e){delete i[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(i)},getLanguage:x,registerAliases:w,autoDetection:C,inherit:oe,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),o.push(e)},removePlugin:function(e){const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}),n.debugMode=function(){a=!1},n.safeMode=function(){a=!0},n.versionString="11.11.1",n.regex={concat:m,lookahead:u,either:f,optional:p,anyNumberOfTimes:d};for(const t in j)"object"==typeof j[t]&&e(j[t]);return Object.assign(n,j),n},ce=se({});return ce.newInstance=()=>se({}),F$=ce,ce.HighlightJS=ce,ce.default=ce,F$}var W$,J$,G$,K$,X$,Y$,Q$,ey=rb(V$()),ty={exports:{}};function ny(){if(J$)return W$;function e(){try{return new RegExp("(?<!.)"),!0}catch(e){return!1}}J$=1;var t=/-?(\b0[xX]([a-fA-F0-9]_?)*[a-fA-F0-9]|(\b[1-9](_?\d)*(\.((\d_?)*\d)?)?|\.\d(_?\d)*)([eE][-+]?\d(_?\d)*)?|\b0)(?!\w|\$)/;e()&&(t=t.source.replace(/\\b/g,"(?<!\\$)\\b"));var n={className:"number",begin:t,relevance:0},i={keyword:"assembly let function if switch case default for leave break continue u256 jump jumpi stop return revert selfdestruct invalid",built_in:"add sub mul div sdiv mod smod exp not lt gt slt sgt eq iszero and or xor byte shl shr sar addmod mulmod signextend keccak256 pc pop dup1 dup2 dup3 dup4 dup5 dup6 dup7 dup8 dup9 dup10 dup11 dup12 dup13 dup14 dup15 dup16 swap1 swap2 swap3 swap4 swap5 swap6 swap7 swap8 swap9 swap10 swap11 swap12 swap13 swap14 swap15 swap16 mload mstore mstore8 sload sstore msize gas address balance selfbalance caller callvalue calldataload calldatasize calldatacopy codesize codecopy extcodesize extcodecopy returndatasize returndatacopy extcodehash create create2 call callcode delegatecall staticcall log0 log1 log2 log3 log4 chainid origin gasprice basefee blockhash coinbase timestamp number difficulty prevrandao gaslimit",literal:"true false"},r={className:"string",begin:/\bhex'(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?'/},o={className:"string",begin:/\bhex"(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?"/};function a(e){return e.inherit(e.APOS_STRING_MODE,{begin:/(\bunicode)?'/})}function s(e){return e.inherit(e.QUOTE_STRING_MODE,{begin:/(\bunicode)?"/})}return W$={SOL_ASSEMBLY_KEYWORDS:i,baseAssembly:function(e){var t=a(e),c=s(e),l=/[A-Za-z_$][A-Za-z_$0-9.]*/,u=e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:l,keywords:i}),d={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:l,keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,c,n]},p={className:"operator",begin:/:=|->/};return{keywords:i,lexemes:l,contains:[t,c,r,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,p,{className:"function",lexemes:l,beginKeywords:"function",end:"{",excludeEnd:!0,contains:[u,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p]}]}},solAposStringMode:a,solQuoteStringMode:s,HEX_APOS_STRING_MODE:r,HEX_QUOTE_STRING_MODE:o,SOL_NUMBER:n,isNegativeLookbehindAvailable:e}}var iy=function(){if(Q$)return ty.exports;Q$=1;const e=function(){if(K$)return G$;K$=1;const{baseAssembly:e,solAposStringMode:t,solQuoteStringMode:n,HEX_APOS_STRING_MODE:i,HEX_QUOTE_STRING_MODE:r,SOL_NUMBER:o,isNegativeLookbehindAvailable:a}=ny();return G$=function(s){for(var c=t(s),l=n(s),u=[],d=0;d<32;d++)u[d]=d+1;var p=u.map(function(e){return 8*e}),m=[];for(d=0;d<=80;d++)m[d]=d;var f=u.map(function(e){return"bytes"+e}).join(" ")+" ",h=p.map(function(e){return"uint"+e}).join(" ")+" ",g=p.map(function(e){return"int"+e}).join(" ")+" ",v=[].concat.apply([],p.map(function(e){return m.map(function(t){return e+"x"+t})})),b={keyword:"var bool string int uint "+g+h+"byte bytes "+f+"fixed ufixed "+v.map(function(e){return"fixed"+e}).join(" ")+" "+v.map(function(e){return"ufixed"+e}).join(" ")+" enum struct mapping address new delete if else for while continue break return throw emit try catch revert unchecked _ function modifier event constructor fallback receive error virtual override constant immutable anonymous indexed storage memory calldata external public internal payable pure view private returns import from as using global pragma contract interface library is abstract type assembly",literal:"true false wei gwei szabo finney ether seconds minutes hours days weeks years",built_in:"self this super selfdestruct suicide now msg block tx abi blockhash gasleft assert require Error Panic sha3 sha256 keccak256 ripemd160 ecrecover addmod mulmod log0 log1 log2 log3 log4"},$={className:"operator",begin:/[+\-!~*\/%<>&^|=]/},y=/[A-Za-z_$][A-Za-z_$0-9]*/,k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:y,keywords:b,contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,c,l,o,"self"]},_={begin:/\.\s*/,end:/[^A-Za-z0-9$_\.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"gas value selector address length push pop send transfer call callcode delegatecall staticcall balance code codehash wrap unwrap name creationCode runtimeCode interfaceId min max"},relevance:2},x=s.inherit(s.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:y,keywords:b}),w="("+["gas","value","salt"].join("|")+")(?=:)",C={className:"built_in",begin:(a()?"(?<!\\$)\\b":"\\b")+w};function I(e,t){return{begin:(a()?"(?<!\\$)\\b":"\\b")+e+"\\.\\s*",end:/[^A-Za-z0-9$_\.]/,excludeBegin:!1,excludeEnd:!0,lexemes:y,keywords:{built_in:e+" "+t},contains:[_],relevance:10}}var E=e(s),S=s.inherit(E,{contains:E.contains.concat([{begin:/\./,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"slot offset length address selector"},relevance:2},{begin:/_/,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,excludeEnd:!0,keywords:{built_in:"slot offset"},relevance:2}])});return{aliases:["sol"],keywords:b,lexemes:y,contains:[c,l,i,r,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,o,C,$,{className:"function",lexemes:y,beginKeywords:"function modifier event constructor fallback receive error",end:/[{;]/,excludeEnd:!0,contains:[x,k,C,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE],illegal:/%/},I("msg","gas value data sender sig"),I("block","blockhash coinbase difficulty prevrandao gaslimit basefee number timestamp chainid"),I("tx","gasprice origin"),I("abi","decode encode encodePacked encodeWithSelector encodeWithSignature encodeCall"),I("bytes","concat"),I("string","concat"),_,{className:"class",lexemes:y,beginKeywords:"contract interface library",end:"{",excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"is",lexemes:y},x,k,C,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{lexemes:y,beginKeywords:"struct enum",end:"{",excludeEnd:!0,illegal:/[:"\[\]]/,contains:[x,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"import",end:";",lexemes:y,keywords:"import from as",contains:[x,c,l,i,r,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,$]},{beginKeywords:"using",end:";",lexemes:y,keywords:"using for global",contains:[x,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,$]},{className:"meta",beginKeywords:"pragma",end:";",lexemes:y,keywords:{keyword:"pragma solidity experimental abicoder",built_in:"ABIEncoderV2 SMTChecker v1 v2"},contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.inherit(c,{className:"meta-string"}),s.inherit(l,{className:"meta-string"})]},{beginKeywords:"assembly",end:/\b\B/,contains:[s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,s.inherit(c,{className:"meta-string"}),s.inherit(l,{className:"meta-string"}),s.inherit(S,{begin:"{",end:"}",endsParent:!0,contains:S.contains.concat([s.inherit(S,{begin:"{",end:"}",contains:S.contains.concat(["self"])})])})]}],illegal:/#/}},G$}(),t=function(){if(Y$)return X$;Y$=1;const{SOL_ASSEMBLY_KEYWORDS:e,baseAssembly:t,isNegativeLookbehindAvailable:n}=ny();return X$=function(i){var r={keyword:e.keyword+" object code data",built_in:e.built_in+" datasize dataoffset datacopy setimmutable loadimmutable linkersymbol memoryguard",literal:e.literal},o=/\bverbatim_[1-9]?[0-9]i_[1-9]?[0-9]o\b(?!\$)/;n()&&(o=o.source.replace(/\\b/,"(?<!\\$)\\b"));var a={className:"built_in",begin:o},s=t(i);return i.inherit(s,{keywords:r,contains:s.contains.concat([a])})}}();return ty.exports=function(n){n.registerLanguage("solidity",e),n.registerLanguage("yul",t)},ty.exports.solidity=e,ty.exports.yul=t,ty.exports}();rb(iy)(ey);const ry=P$;var oy="top",ay="bottom",sy="right",cy="left",ly="auto",uy=[oy,ay,sy,cy],dy="start",py="end",my="viewport",fy="popper",hy=uy.reduce(function(e,t){return e.concat([t+"-"+dy,t+"-"+py])},[]),gy=[].concat(uy,[ly]).reduce(function(e,t){return e.concat([t,t+"-"+dy,t+"-"+py])},[]),vy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function by(e){return e?(e.nodeName||"").toLowerCase():null}function $y(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yy(e){return e instanceof $y(e).Element||e instanceof Element}function ky(e){return e instanceof $y(e).HTMLElement||e instanceof HTMLElement}function _y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $y(e).ShadowRoot||e instanceof ShadowRoot)}var xy={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];ky(r)&&by(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ky(i)&&by(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function wy(e){return e.split("-")[0]}var Cy=Math.max,Iy=Math.min,Ey=Math.round;function Sy(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function zy(){return!/^((?!chrome|android).)*safari/i.test(Sy())}function Oy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,o=1;t&&ky(e)&&(r=e.offsetWidth>0&&Ey(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ey(i.height)/e.offsetHeight||1);var a=(yy(e)?$y(e):window).visualViewport,s=!zy()&&n,c=(i.left+(s&&a?a.offsetLeft:0))/r,l=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Ay(e){var t=Oy(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ty(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_y(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Py(e){return $y(e).getComputedStyle(e)}function Uy(e){return["table","td","th"].indexOf(by(e))>=0}function Ry(e){return((yy(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ny(e){return"html"===by(e)?e:e.assignedSlot||e.parentNode||(_y(e)?e.host:null)||Ry(e)}function jy(e){return ky(e)&&"fixed"!==Py(e).position?e.offsetParent:null}function Dy(e){for(var t=$y(e),n=jy(e);n&&Uy(n)&&"static"===Py(n).position;)n=jy(n);return n&&("html"===by(n)||"body"===by(n)&&"static"===Py(n).position)?t:n||function(e){var t=/firefox/i.test(Sy());if(/Trident/i.test(Sy())&&ky(e)&&"fixed"===Py(e).position)return null;var n=Ny(e);for(_y(n)&&(n=n.host);ky(n)&&["html","body"].indexOf(by(n))<0;){var i=Py(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function My(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zy(e,t,n){return Cy(e,Iy(t,n))}function Ly(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function By(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var qy={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=wy(n.placement),c=My(s),l=[cy,sy].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return Ly("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:By(e,uy))}(r.padding,n),d=Ay(o),p="y"===c?oy:cy,m="y"===c?ay:sy,f=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],h=a[c]-n.rects.reference[c],g=Dy(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=f/2-h/2,$=u[p],y=v-d[l]-u[m],k=v/2-d[l]/2+b,_=Zy($,k,y),x=c;n.modifiersData[i]=((t={})[x]=_,t.centerOffset=_-k,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ty(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fy(e){return e.split("-")[1]}var Hy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vy(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,m=void 0===p?0:p,f=a.y,h=void 0===f?0:f,g="function"==typeof u?u({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),$=cy,y=oy,k=window;if(l){var _=Dy(n),x="clientHeight",w="clientWidth";if(_===$y(n)&&"static"!==Py(_=Ry(n)).position&&"absolute"===s&&(x="scrollHeight",w="scrollWidth"),r===oy||(r===cy||r===sy)&&o===py)y=ay,h-=(d&&_===k&&k.visualViewport?k.visualViewport.height:_[x])-i.height,h*=c?1:-1;if(r===cy||(r===oy||r===ay)&&o===py)$=sy,m-=(d&&_===k&&k.visualViewport?k.visualViewport.width:_[w])-i.width,m*=c?1:-1}var C,I=Object.assign({position:s},l&&Hy),E=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:Ey(n*r)/r||0,y:Ey(i*r)/r||0}}({x:m,y:h},$y(n)):{x:m,y:h};return m=E.x,h=E.y,c?Object.assign({},I,((C={})[y]=b?"0":"",C[$]=v?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",C)):Object.assign({},I,((t={})[y]=b?h+"px":"",t[$]=v?m+"px":"",t.transform="",t))}var Wy={passive:!0};var Jy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,c=$y(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,Wy)}),s&&c.addEventListener("resize",n.update,Wy),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,Wy)}),s&&c.removeEventListener("resize",n.update,Wy)}},data:{}},Gy={left:"right",right:"left",bottom:"top",top:"bottom"};function Ky(e){return e.replace(/left|right|bottom|top/g,function(e){return Gy[e]})}var Xy={start:"end",end:"start"};function Yy(e){return e.replace(/start|end/g,function(e){return Xy[e]})}function Qy(e){var t=$y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ek(e){return Oy(Ry(e)).left+Qy(e).scrollLeft}function tk(e){var t=Py(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function nk(e){return["html","body","#document"].indexOf(by(e))>=0?e.ownerDocument.body:ky(e)&&tk(e)?e:nk(Ny(e))}function ik(e,t){var n;void 0===t&&(t=[]);var i=nk(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=$y(i),a=r?[o].concat(o.visualViewport||[],tk(i)?i:[]):i,s=t.concat(a);return r?s:s.concat(ik(Ny(a)))}function rk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ok(e,t,n){return t===my?rk(function(e,t){var n=$y(e),i=Ry(e),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,c=0;if(r){o=r.width,a=r.height;var l=zy();(l||!l&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:s+ek(e),y:c}}(e,n)):yy(t)?function(e,t){var n=Oy(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):rk(function(e){var t,n=Ry(e),i=Qy(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=Cy(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Cy(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+ek(e),c=-i.scrollTop;return"rtl"===Py(r||n).direction&&(s+=Cy(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(Ry(e)))}function ak(e,t,n,i){var r="clippingParents"===t?function(e){var t=ik(Ny(e)),n=["absolute","fixed"].indexOf(Py(e).position)>=0&&ky(e)?Dy(e):e;return yy(n)?t.filter(function(e){return yy(e)&&Ty(e,n)&&"body"!==by(e)}):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce(function(t,n){var r=ok(e,n,i);return t.top=Cy(r.top,t.top),t.right=Iy(r.right,t.right),t.bottom=Iy(r.bottom,t.bottom),t.left=Cy(r.left,t.left),t},ok(e,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sk(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?wy(r):null,a=r?Fy(r):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case oy:t={x:s,y:n.y-i.height};break;case ay:t={x:s,y:n.y+n.height};break;case sy:t={x:n.x+n.width,y:c};break;case cy:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var l=o?My(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case dy:t[l]=t[l]-(n[u]/2-i[u]/2);break;case py:t[l]=t[l]+(n[u]/2-i[u]/2)}}return t}function ck(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,l=n.rootBoundary,u=void 0===l?my:l,d=n.elementContext,p=void 0===d?fy:d,m=n.altBoundary,f=void 0!==m&&m,h=n.padding,g=void 0===h?0:h,v=Ly("number"!=typeof g?g:By(g,uy)),b=p===fy?"reference":fy,$=e.rects.popper,y=e.elements[f?b:p],k=ak(yy(y)?y:y.contextElement||Ry(e.elements.popper),c,u,a),_=Oy(e.elements.reference),x=sk({reference:_,element:$,placement:r}),w=rk(Object.assign({},$,x)),C=p===fy?w:_,I={top:k.top-C.top+v.top,bottom:C.bottom-k.bottom+v.bottom,left:k.left-C.left+v.left,right:C.right-k.right+v.right},E=e.modifiersData.offset;if(p===fy&&E){var S=E[r];Object.keys(I).forEach(function(e){var t=[sy,ay].indexOf(e)>=0?1:-1,n=[oy,ay].indexOf(e)>=0?"y":"x";I[e]+=S[n]*t})}return I}function lk(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?gy:c,u=Fy(i),d=u?s?hy:hy.filter(function(e){return Fy(e)===u}):uy,p=d.filter(function(e){return l.indexOf(e)>=0});0===p.length&&(p=d);var m=p.reduce(function(t,n){return t[n]=ck(e,{placement:n,boundary:r,rootBoundary:o,padding:a})[wy(n)],t},{});return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}var uk={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,f=void 0===m||m,h=n.allowedAutoPlacements,g=t.options.placement,v=wy(g),b=c||(v===g||!f?[Ky(g)]:function(e){if(wy(e)===ly)return[];var t=Ky(e);return[Yy(e),t,Yy(t)]}(g)),$=[g].concat(b).reduce(function(e,n){return e.concat(wy(n)===ly?lk(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:f,allowedAutoPlacements:h}):n)},[]),y=t.rects.reference,k=t.rects.popper,_=new Map,x=!0,w=$[0],C=0;C<$.length;C++){var I=$[C],E=wy(I),S=Fy(I)===dy,z=[oy,ay].indexOf(E)>=0,O=z?"width":"height",A=ck(t,{placement:I,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),T=z?S?sy:cy:S?ay:oy;y[O]>k[O]&&(T=Ky(T));var P=Ky(T),U=[];if(o&&U.push(A[E]<=0),s&&U.push(A[T]<=0,A[P]<=0),U.every(function(e){return e})){w=I,x=!1;break}_.set(I,U)}if(x)for(var R=function(e){var t=$.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},N=f?3:1;N>0;N--){if("break"===R(N))break}t.placement!==w&&(t.modifiersData[i]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dk(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pk(e){return[oy,sy,ay,cy].some(function(t){return e[t]>=0})}var mk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,a=gy.reduce(function(e,n){return e[n]=function(e,t,n){var i=wy(e),r=[cy,oy].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[cy,sy].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e},{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}};var fk={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,m=void 0===p||p,f=n.tetherOffset,h=void 0===f?0:f,g=ck(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=wy(t.placement),b=Fy(t.placement),$=!b,y=My(v),k="x"===y?"y":"x",_=t.modifiersData.popperOffsets,x=t.rects.reference,w=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,I="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(_){if(o){var z,O="y"===y?oy:cy,A="y"===y?ay:sy,T="y"===y?"height":"width",P=_[y],U=P+g[O],R=P-g[A],N=m?-w[T]/2:0,j=b===dy?x[T]:w[T],D=b===dy?-w[T]:-x[T],M=t.elements.arrow,Z=m&&M?Ay(M):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=L[O],q=L[A],F=Zy(0,x[T],Z[T]),H=$?x[T]/2-N-F-B-I.mainAxis:j-F-B-I.mainAxis,V=$?-x[T]/2+N+F+q+I.mainAxis:D+F+q+I.mainAxis,W=t.elements.arrow&&Dy(t.elements.arrow),J=W?"y"===y?W.clientTop||0:W.clientLeft||0:0,G=null!=(z=null==E?void 0:E[y])?z:0,K=P+V-G,X=Zy(m?Iy(U,P+H-G-J):U,P,m?Cy(R,K):R);_[y]=X,S[y]=X-P}if(s){var Y,Q="x"===y?oy:cy,ee="x"===y?ay:sy,te=_[k],ne="y"===k?"height":"width",ie=te+g[Q],re=te-g[ee],oe=-1!==[oy,cy].indexOf(v),ae=null!=(Y=null==E?void 0:E[k])?Y:0,se=oe?ie:te-x[ne]-w[ne]-ae+I.altAxis,ce=oe?te+x[ne]+w[ne]-ae-I.altAxis:re,le=m&&oe?function(e,t,n){var i=Zy(e,t,n);return i>n?n:i}(se,te,ce):Zy(m?se:ie,te,m?ce:re);_[k]=le,S[k]=le-te}t.modifiersData[i]=S}},requiresIfExists:["offset"]};function hk(e,t,n){void 0===n&&(n=!1);var i,r=ky(t),o=ky(t)&&function(e){var t=e.getBoundingClientRect(),n=Ey(t.width)/e.offsetWidth||1,i=Ey(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=Ry(t),s=Oy(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==by(t)||tk(a))&&(c=(i=t)!==$y(i)&&ky(i)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(i):Qy(i)),ky(t)?((l=Oy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ek(a))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function gk(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}var vk={placement:"bottom",modifiers:[],strategy:"absolute"};function bk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function $k(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?vk:r;return function(e,t,n){void 0===n&&(n=o);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},vk,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},o,s.options,r),s.scrollParents={reference:yy(e)?ik(e):e.contextElement?ik(e.contextElement):[],popper:ik(t)};var a,l,p=function(e){var t=gk(e);return vy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(i,s.options.modifiers),l=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var o=r({state:s,name:t,instance:u,options:i}),a=function(){};c.push(o||a)}}),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(bk(t,n)){s.rects={reference:hk(t,Dy(n),"fixed"===s.options.strategy),popper:Ay(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options,c=void 0===a?{}:a,d=r.name;"function"==typeof o&&(s=o({state:s,options:c,name:d,instance:u})||s)}else s.reset=!1,i=-1}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){d(),l=!0}};if(!bk(e,t))return u;function d(){c.forEach(function(e){return e()}),c=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var yk=$k({defaultModifiers:[Jy,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=sk({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,l={placement:wy(t.placement),variation:Fy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Vy(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vy(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},xy,mk,uk,fk,qy,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=ck(t,{elementContext:"reference"}),s=ck(t,{altBoundary:!0}),c=dk(a,i),l=dk(s,r,o),u=pk(c),d=pk(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),kk="tippy-content",_k="tippy-arrow",xk="tippy-svg-arrow",wk={passive:!0,capture:!0},Ck=function(){return document.body};function Ik(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Ek(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Sk(e,t){return"function"==typeof e?e.apply(void 0,t):e}function zk(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function Ok(e){return[].concat(e)}function Ak(e,t){-1===e.indexOf(t)&&e.push(t)}function Tk(e){return[].slice.call(e)}function Pk(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Uk(){return document.createElement("div")}function Rk(e){return["Element","Fragment"].some(function(t){return Ek(e,t)})}function Nk(e){return Rk(e)?[e]:function(e){return Ek(e,"NodeList")}(e)?Tk(e):Array.isArray(e)?e:Tk(document.querySelectorAll(e))}function jk(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Dk(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Mk(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function Zk(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Lk={isTouch:!1},Bk=0;function qk(){Lk.isTouch||(Lk.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fk))}function Fk(){var e=performance.now();e-Bk<20&&(Lk.isTouch=!1,document.removeEventListener("mousemove",Fk)),Bk=e}function Hk(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Vk=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Wk=Object.assign({appendTo:Ck,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Jk=Object.keys(Wk);function Gk(e){var t=(e.plugins||[]).reduce(function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Wk[r])?i:o);return t},{});return Object.assign({},e,t)}function Kk(e,t){var n=Object.assign({},t,{content:Sk(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Gk(Object.assign({},Wk,{plugins:t}))):Jk).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Wk.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Xk(e,t){e.innerHTML=t}function Yk(e){var t=Uk();return!0===e?t.className=_k:(t.className=xk,Rk(e)?t.appendChild(e):Xk(t,e)),t}function Qk(e,t){Rk(t.content)?(Xk(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Xk(e,t.content):e.textContent=t.content)}function e_(e){var t=e.firstElementChild,n=Tk(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(kk)}),arrow:n.find(function(e){return e.classList.contains(_k)||e.classList.contains(xk)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function t_(e){var t=Uk(),n=Uk();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Uk();function r(n,i){var r=e_(t),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Qk(a,e.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(Yk(i.arrow))):o.appendChild(Yk(i.arrow)):s&&o.removeChild(s)}return i.className=kk,i.setAttribute("data-state","hidden"),Qk(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}t_.$$tippy=!0;var n_=1,i_=[],r_=[];function o_(e,t){var n,i,r,o,a,s,c,l,u=Kk(e,Object.assign({},Wk,Gk(Pk(t)))),d=!1,p=!1,m=!1,f=!1,h=[],g=zk(W,u.interactiveDebounce),v=n_++,b=(l=u.plugins).filter(function(e,t){return l.indexOf(e)===t}),$={id:v,reference:e,popper:Uk(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if($.state.isDestroyed)return;P("onBeforeUpdate",[$,t]),H();var n=$.props,i=Kk(e,Object.assign({},n,Pk(t),{ignoreAttributes:!0}));$.props=i,F(),n.interactiveDebounce!==i.interactiveDebounce&&(N(),g=zk(W,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Ok(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded");R(),T(),_&&_(n,i);$.popperInstance&&(X(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[$,t])},setContent:function(e){$.setProps({content:e})},show:function(){var e=$.state.isVisible,t=$.state.isDestroyed,n=!$.state.isEnabled,i=Lk.isTouch&&!$.props.touch,r=Ik($.props.duration,0,Wk.duration);if(e||t||n||i)return;if(S().hasAttribute("disabled"))return;if(P("onShow",[$],!1),!1===$.props.onShow($))return;$.state.isVisible=!0,E()&&(k.style.visibility="visible");T(),Z(),$.state.isMounted||(k.style.transition="none");if(E()){var o=O();jk([o.box,o.content],0)}s=function(){var e;if($.state.isVisible&&!f){if(f=!0,k.offsetHeight,k.style.transition=$.props.moveTransition,E()&&$.props.animation){var t=O(),n=t.box,i=t.content;jk([n,i],r),Dk([n,i],"visible")}U(),R(),Ak(r_,$),null==(e=$.popperInstance)||e.forceUpdate(),P("onMount",[$]),$.props.animation&&E()&&function(e,t){B(e,t)}(r,function(){$.state.isShown=!0,P("onShown",[$])})}},function(){var e,t=$.props.appendTo,n=S();e=$.props.interactive&&t===Ck||"parent"===t?n.parentNode:Sk(t,[n]);e.contains(k)||e.appendChild(k);$.state.isMounted=!0,X()}()},hide:function(){var e=!$.state.isVisible,t=$.state.isDestroyed,n=!$.state.isEnabled,i=Ik($.props.duration,1,Wk.duration);if(e||t||n)return;if(P("onHide",[$],!1),!1===$.props.onHide($))return;$.state.isVisible=!1,$.state.isShown=!1,f=!1,d=!1,E()&&(k.style.visibility="hidden");if(N(),L(),T(!0),E()){var r=O(),o=r.box,a=r.content;$.props.animation&&(jk([o,a],i),Dk([o,a],"hidden"))}U(),R(),$.props.animation?E()&&function(e,t){B(e,function(){!$.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()})}(i,$.unmount):$.unmount()},hideWithInteractivity:function(e){z().addEventListener("mousemove",g),Ak(i_,g),g(e)},enable:function(){$.state.isEnabled=!0},disable:function(){$.hide(),$.state.isEnabled=!1},unmount:function(){$.state.isVisible&&$.hide();if(!$.state.isMounted)return;Y(),Q().forEach(function(e){e._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k);r_=r_.filter(function(e){return e!==$}),$.state.isMounted=!1,P("onHidden",[$])},destroy:function(){if($.state.isDestroyed)return;$.clearDelayTimeouts(),$.unmount(),H(),delete e._tippy,$.state.isDestroyed=!0,P("onDestroy",[$])}};if(!u.render)return $;var y=u.render($),k=y.popper,_=y.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+$.id,$.popper=k,e._tippy=$,k._tippy=$;var x=b.map(function(e){return e.fn($)}),w=e.hasAttribute("aria-expanded");return F(),R(),T(),P("onCreate",[$]),u.showOnCreate&&ee(),k.addEventListener("mouseenter",function(){$.props.interactive&&$.state.isVisible&&$.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){$.props.interactive&&$.props.trigger.indexOf("mouseenter")>=0&&z().addEventListener("mousemove",g)}),$;function C(){var e=$.props.touch;return Array.isArray(e)?e:[e,0]}function I(){return"hold"===C()[0]}function E(){var e;return!(null==(e=$.props.render)||!e.$$tippy)}function S(){return c||e}function z(){var e=S().parentNode;return e?function(e){var t,n=Ok(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}(e):document}function O(){return e_(k)}function A(e){return $.state.isMounted&&!$.state.isVisible||Lk.isTouch||o&&"focus"===o.type?0:Ik($.props.delay,e?0:1,Wk.delay)}function T(e){void 0===e&&(e=!1),k.style.pointerEvents=$.props.interactive&&!e?"":"none",k.style.zIndex=""+$.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),x.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=$.props)[e].apply(i,t)}function U(){var t=$.props.aria;if(t.content){var n="aria-"+t.content,i=k.id;Ok($.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if($.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function R(){!w&&$.props.aria.expanded&&Ok($.props.triggerTarget||e).forEach(function(e){$.props.interactive?e.setAttribute("aria-expanded",$.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")})}function N(){z().removeEventListener("mousemove",g),i_=i_.filter(function(e){return e!==g})}function j(t){if(!Lk.isTouch||!m&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!$.props.interactive||!Zk(k,n)){if(Ok($.props.triggerTarget||e).some(function(e){return Zk(e,n)})){if(Lk.isTouch)return;if($.state.isVisible&&$.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[$,t]);!0===$.props.hideOnClick&&($.clearDelayTimeouts(),$.hide(),p=!0,setTimeout(function(){p=!1}),$.state.isMounted||L())}}}function D(){m=!0}function M(){m=!1}function Z(){var e=z();e.addEventListener("mousedown",j,!0),e.addEventListener("touchend",j,wk),e.addEventListener("touchstart",M,wk),e.addEventListener("touchmove",D,wk)}function L(){var e=z();e.removeEventListener("mousedown",j,!0),e.removeEventListener("touchend",j,wk),e.removeEventListener("touchstart",M,wk),e.removeEventListener("touchmove",D,wk)}function B(e,t){var n=O().box;function i(e){e.target===n&&(Mk(n,"remove",i),t())}if(0===e)return t();Mk(n,"remove",a),Mk(n,"add",i),a=i}function q(t,n,i){void 0===i&&(i=!1),Ok($.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,i),h.push({node:e,eventType:t,handler:n,options:i})})}function F(){var e;I()&&(q("touchstart",V,{passive:!0}),q("touchend",J,{passive:!0})),(e=$.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(q(e,V),e){case"mouseenter":q("mouseleave",J);break;case"focus":q(Vk?"focusout":"blur",G);break;case"focusin":q("focusout",G)}})}function H(){h.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),h=[]}function V(e){var t,n=!1;if($.state.isEnabled&&!K(e)&&!p){var i="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,R(),!$.state.isVisible&&Ek(e,"MouseEvent")&&i_.forEach(function(t){return t(e)}),"click"===e.type&&($.props.trigger.indexOf("mouseenter")<0||d)&&!1!==$.props.hideOnClick&&$.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function W(e){var t=e.target,n=S().contains(t)||k.contains(t);if("mousemove"!==e.type||!n){var i=Q().concat(k).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-i+c>o,m=i-t.bottom-l>o,f=t.left-n+u>o,h=n-t.right-d>o;return p||m||f||h})})(i,e)&&(N(),te(e))}}function J(e){K(e)||$.props.trigger.indexOf("click")>=0&&d||($.props.interactive?$.hideWithInteractivity(e):te(e))}function G(e){$.props.trigger.indexOf("focusin")<0&&e.target!==S()||$.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||te(e)}function K(e){return!!Lk.isTouch&&I()!==e.type.indexOf("touch")>=0}function X(){Y();var t=$.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,c=E()?e_(k).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||S()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(E()){var n=O().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];E()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),$.popperInstance=yk(l,k,Object.assign({},n,{placement:i,onFirstUpdate:s,modifiers:d}))}function Y(){$.popperInstance&&($.popperInstance.destroy(),$.popperInstance=null)}function Q(){return Tk(k.querySelectorAll("[data-tippy-root]"))}function ee(e){$.clearDelayTimeouts(),e&&P("onTrigger",[$,e]),Z();var t=A(!0),i=C(),r=i[0],o=i[1];Lk.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout(function(){$.show()},t):$.show()}function te(e){if($.clearDelayTimeouts(),P("onUntrigger",[$,e]),$.state.isVisible){if(!($.props.trigger.indexOf("mouseenter")>=0&&$.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=A(!1);t?i=setTimeout(function(){$.state.isVisible&&$.hide()},t):r=requestAnimationFrame(function(){$.hide()})}}else L()}}function a_(e,t){void 0===t&&(t={});var n=Wk.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",qk,wk),window.addEventListener("blur",Hk);var i=Object.assign({},t,{plugins:n}),r=Nk(e).reduce(function(e,t){var n=t&&o_(t,i);return n&&e.push(n),e},[]);return Rk(e)?r[0]:r}a_.defaultProps=Wk,a_.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Wk[t]=e[t]})},a_.currentInput=Lk,Object.assign({},xy,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),a_.setDefaultProps({render:t_});const s_=e=>({}),c_=e=>({trigger:e[2]}),l_=e=>({}),u_=e=>({trigger:e[2]});function d_(e){let t,n,i;const r=e[6].default,o=eh(r,e,e[5],u_),a=e[6].content,s=eh(a,e,e[5],c_),c=s||function(e){let t;return{c(){t=mh(e[0])},m(e,n){lh(e,t,n)},p(e,n){1&n&&yh(t,e[0])},d(e){e&&uh(t)}}}(e);return{c(){o&&o.c(),t=fh(),n=dh("div"),c&&c.c(),_h(n,"display","none")},m(r,a){o&&o.m(r,a),lh(r,t,a),lh(r,n,a),c&&c.m(n,null),e[7](n),i=!0},p(e,[t]){o&&o.p&&(!i||32&t)&&ih(o,r,e,e[5],i?nh(r,e[5],t,l_):rh(e[5]),u_),s?s.p&&(!i||32&t)&&ih(s,a,e,e[5],i?nh(a,e[5],t,s_):rh(e[5]),c_):c&&c.p&&(!i||1&t)&&c.p(e,i?t:-1)},i(e){i||(Wh(o,e),Wh(c,e),i=!0)},o(e){Jh(o,e),Jh(c,e),i=!1},d(i){o&&o.d(i),i&&uh(t),i&&uh(n),c&&c.d(i),e[7](null)}}}function p_(e,t,n){const i=["text","disabled"];let r,o,a,s=oh(t,i),{$$slots:c={},$$scope:l}=t,{text:u=""}=t,{disabled:d=!1}=t;return zh(()=>{r&&(n(4,a=a_(r,{...s,content:o})),o.style.removeProperty("display"))}),e.$$set=e=>{t=Wf(Wf({},t),function(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}(e)),n(9,s=oh(t,i)),"text"in e&&n(0,u=e.text),"disabled"in e&&n(3,d=e.disabled),"$$scope"in e&&n(5,l=e.$$scope)},e.$$.update=()=>{24&e.$$.dirty&&a&&(d?a.disable():a.enable())},[u,o,e=>{r=e},d,a,l,c,function(e){Th[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}class m_ extends tg{constructor(e){super(),eg(this,e,p_,d_,Yf,{text:0,disabled:3})}}function f_(e){ch(e,"svelte-wb18kg","svg.svelte-wb18kg{opacity:var(--tooltip-opacity, 1);color:var(--text-color)}")}function h_(e){let t,n,i,r;return{c(){t=ph("svg"),n=ph("path"),vh(n,"fill","currentColor"),vh(n,"d","M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"),vh(t,"class","tooltip svelte-wb18kg"),_h(t,"width","1rem"),_h(t,"height","1rem"),vh(t,"viewBox","0 0 24 24")},m(o,a){lh(o,t,a),sh(t,n),i||(r=ah(e[9].call(null,t)),i=!0)},p:Vf,d(e){e&&uh(t),i=!1,r()}}}function g_(e){let t,n,i,r;return{c(){t=dh("br"),n=fh(),i=dh("a"),r=mh("Read more."),vh(i,"href",e[0]),vh(i,"target",e[3]?void 0:"_blank"),vh(i,"rel",e[3]?void 0:"noopener noreferrer")},m(e,o){lh(e,t,o),lh(e,n,o),lh(e,i,o),sh(i,r)},p(e,t){1&t&&vh(i,"href",e[0])},d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function v_(e){let t,n,i;const r=e[6].default,o=eh(r,e,e[7],null);let a=e[2]&&g_(e);return{c(){t=dh("div"),o&&o.c(),n=fh(),a&&a.c(),vh(t,"slot","content")},m(e,r){lh(e,t,r),o&&o.m(t,null),sh(t,n),a&&a.m(t,null),i=!0},p(e,n){o&&o.p&&(!i||128&n)&&ih(o,r,e,e[7],i?nh(r,e[7],n,null):rh(e[7]),null),e[2]?a?a.p(e,n):(a=g_(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},i(e){i||(Wh(o,e),i=!0)},o(e){Jh(o,e),i=!1},d(e){e&&uh(t),o&&o.d(e),a&&a.d()}}}function b_(e){let t,n;return t=new m_({props:{interactive:!0,placement:e[1],theme:"light border",maxWidth:"22em",$$slots:{content:[v_,({trigger:e})=>({9:e}),({trigger:e})=>e?512:0],default:[h_,({trigger:e})=>({9:e}),({trigger:e})=>e?512:0]},$$scope:{ctx:e}}}),{c(){Kh(t.$$.fragment)},m(e,i){Xh(t,e,i),n=!0},p(e,[n]){const i={};2&n&&(i.placement=e[1]),133&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(Wh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Yh(t,e)}}}function $_(e,t,n){let i,r,{$$slots:o={},$$scope:a}=t,{link:s}=t,{placement:c="right"}=t;const l=Oh(dg),u=null!=l,d=l??ig({canOpen:!1});return Qf(e,d,e=>n(5,r=e)),e.$$set=e=>{"link"in e&&n(0,s=e.link),"placement"in e&&n(1,c=e.placement),"$$scope"in e&&n(7,a=e.$$scope)},e.$$.update=()=>{33&e.$$.dirty&&n(2,i=null!=s&&(!u||r.canOpen))},[s,c,i,u,d,r,o,a]}class y_ extends tg{constructor(e){super(),eg(this,e,$_,b_,Yf,{link:0,placement:1},f_)}}function k_(e){let t,n,i;return{c(){t=dh("input"),vh(t,"type","checkbox"),t.disabled=e[1]},m(r,o){lh(r,t,o),t.checked=e[0],n||(i=gh(t,"change",e[6]),n=!0)},p(e,[n]){2&n&&(t.disabled=e[1]),1&n&&(t.checked=e[0])},i:Vf,o:Vf,d(e){e&&uh(t),n=!1,i()}}}function __(e,t,n){let{value:i=!1}=t,{checked:r=!1!==i}=t,{defaultValue:o}=t,{disabled:a}=t,s=r,c=i||o;return e.$$set=e=>{"value"in e&&n(2,i=e.value),"checked"in e&&n(0,r=e.checked),"defaultValue"in e&&n(3,o=e.defaultValue),"disabled"in e&&n(1,a=e.disabled)},e.$$.update=()=>{53&e.$$.dirty&&(s?r?!1===i&&n(0,r=!1):n(2,i=!1):r?n(2,i=c):!1!==i&&n(0,r=!0),n(4,s=r),n(5,c=i||c))},[r,a,i,o,s,c,function(){r=this.checked,n(0,r),n(4,s),n(5,c),n(2,i)}]}class x_ extends tg{constructor(e){super(),eg(this,e,__,k_,Yf,{value:2,checked:0,defaultValue:3,disabled:1})}}const w_="has-error";function C_(e,t){const n=a_(e,{placement:"right",theme:"light-red border",trigger:"manual",hideOnClick:!1,interactive:!0});function i(t){t?(n.setContent(t),n.show(),e.classList.add(w_)):(n.hide(),e.classList.remove(w_))}return i(t),{update:i,destroy:n.destroy}}function I_(e){let t,n;return{c(){t=ph("svg"),n=ph("path"),vh(n,"d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"),vh(t,"class","keepcolor"),vh(t,"width","9"),vh(t,"height","9"),vh(t,"xmlns","http://www.w3.org/2000/svg"),vh(t,"viewBox","0 0 320 512")},m(e,i){lh(e,t,i),sh(t,n)},p:Vf,i:Vf,o:Vf,d(e){e&&uh(t)}}}class E_ extends tg{constructor(e){super(),eg(this,e,null,I_,Yf,{})}}function S_(e){let t,n;return{c(){t=ph("svg"),n=ph("path"),vh(n,"d","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"),vh(t,"class","keepcolor"),vh(t,"width","9"),vh(t,"height","9"),vh(t,"xmlns","http://www.w3.org/2000/svg"),vh(t,"viewBox","0 0 512 512")},m(e,i){lh(e,t,i),sh(t,n)},p:Vf,i:Vf,o:Vf,d(e){e&&uh(t)}}}class z_ extends tg{constructor(e){super(),eg(this,e,null,S_,Yf,{})}}function O_(e){let t,n,i,r;const o=[T_,A_],a=[];function s(e,t){return"checkbox"===e[3]?0:"toggleradio"===e[3]?1:-1}return~(n=s(e))&&(i=a[n]=o[n](e)),{c(){t=dh("span"),i&&i.c(),vh(t,"class","mr-2")},m(e,i){lh(e,t,i),~n&&a[n].m(t,null),r=!0},p(e,r){let c=n;n=s(e),n===c?~n&&a[n].p(e,r):(i&&(Hh(),Jh(a[c],1,1,()=>{a[c]=null}),Vh()),~n?(i=a[n],i?i.p(e,r):(i=a[n]=o[n](e),i.c()),Wh(i,1),i.m(t,null)):i=null)},i(e){r||(Wh(i),r=!0)},o(e){Jh(i),r=!1},d(e){e&&uh(t),~n&&a[n].d()}}}function A_(e){let t,n,i;function r(t){e[19](t)}let o={defaultValue:e[4],disabled:e[7]||e[9]};return void 0!==e[1]&&(o.value=e[1]),t=new x_({props:o}),Th.push(()=>Gh(t,"value",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,i){const r={};16&i&&(r.defaultValue=e[4]),640&i&&(r.disabled=e[7]||e[9]),!n&&2&i&&(n=!0,r.value=e[1],Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function T_(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"type","checkbox"),t.disabled=n=e[7]||e[9]},m(n,o){lh(n,t,o),t.checked=e[0],i||(r=gh(t,"change",e[18]),i=!0)},p(e,i){640&i&&n!==(n=e[7]||e[9])&&(t.disabled=n),1&i&&(t.checked=e[0])},i:Vf,o:Vf,d(e){e&&uh(t),i=!1,r()}}}function P_(e){let t,n;return t=new E_({}),{c(){Kh(t.$$.fragment)},m(e,i){Xh(t,e,i),n=!0},i(e){n||(Wh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Yh(t,e)}}}function U_(e){let t,n;return t=new z_({}),{c(){Kh(t.$$.fragment)},m(e,i){Xh(t,e,i),n=!0},i(e){n||(Wh(t.$$.fragment,e),n=!0)},o(e){Jh(t.$$.fragment,e),n=!1},d(e){Yh(t,e)}}}function R_(e){let t,n;return{c(){t=new wh(!1),n=hh(),t.a=n},m(i,r){t.m(e[5],i,r),lh(i,n,r)},p(e,n){32&n&&t.p(e[5])},d(e){e&&uh(n),e&&t.d()}}}function N_(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E="section"!==e[3]&&O_(e);const S=[U_,P_],z=[];function O(e,t){return e[11]?0:1}d=O(e),p=z[d]=S[d](e),h=new y_({props:{link:e[6],$$slots:{default:[R_]},$$scope:{ctx:e}}});const A=e[17].default,T=eh(A,e,e[20],null);return{c(){t=dh("section"),n=dh("h1"),i=dh("label"),r=dh("div"),E&&E.c(),o=fh(),a=dh("span"),s=mh(e[2]),c=fh(),l=dh("div"),u=dh("button"),p.c(),f=fh(),Kh(h.$$.fragment),v=fh(),b=dh("div"),$=dh("span"),k=fh(),_=dh("div"),T&&T.c(),vh(r,"class","flex items-center"),vh(u,"class","px-1 bg-transparent border-0 mr-2"),vh(u,"aria-label",m=e[11]?"Collapse section":"Expand section"),vh(l,"class","flex items-center"),vh(i,"class","items-center tooltip-container pr-2 flex justify-between"),vh($,"class","italic"),vh(b,"class","text-sm text-gray-500"),b.hidden=y=!e[7]||void 0===e[8],_.hidden=x=!e[11],vh(t,"class","controls-section")},m(p,m){var y;lh(p,t,m),sh(t,n),sh(n,i),sh(i,r),E&&E.m(r,null),sh(r,o),sh(r,a),sh(a,s),sh(i,c),sh(i,l),sh(l,u),z[d].m(u,null),sh(l,f),Xh(h,l,null),sh(t,v),sh(t,b),sh(b,$),$.innerHTML=e[8],sh(t,k),sh(t,_),T&&T.m(_,null),w=!0,C||(I=[gh(u,"click",(y=e[12],function(e){return e.preventDefault(),y.call(this,e)})),ah(g=C_.call(null,i,e[10]))],C=!0)},p(e,[t]){"section"!==e[3]?E?(E.p(e,t),8&t&&Wh(E,1)):(E=O_(e),E.c(),Wh(E,1),E.m(r,o)):E&&(Hh(),Jh(E,1,1,()=>{E=null}),Vh()),(!w||4&t)&&yh(s,e[2]);let n=d;d=O(e),d!==n&&(Hh(),Jh(z[n],1,1,()=>{z[n]=null}),Vh(),p=z[d],p||(p=z[d]=S[d](e),p.c()),Wh(p,1),p.m(u,null)),(!w||2048&t&&m!==(m=e[11]?"Collapse section":"Expand section"))&&vh(u,"aria-label",m);const i={};64&t&&(i.link=e[6]),1048608&t&&(i.$$scope={dirty:t,ctx:e}),h.$set(i),g&&Xf(g.update)&&1024&t&&g.update.call(null,e[10]),(!w||256&t)&&($.innerHTML=e[8]),(!w||384&t&&y!==(y=!e[7]||void 0===e[8]))&&(b.hidden=y),T&&T.p&&(!w||1048576&t)&&ih(T,A,e,e[20],w?nh(A,e[20],t,null):rh(e[20]),null),(!w||2048&t&&x!==(x=!e[11]))&&(_.hidden=x)},i(e){w||(Wh(E),Wh(p),Wh(h.$$.fragment,e),Wh(T,e),w=!0)},o(e){Jh(E),Jh(p),Jh(h.$$.fragment,e),Jh(T,e),w=!1},d(e){e&&uh(t),E&&E.d(),z[d].d(),Yh(h),T&&T.d(e),C=!1,Kf(I)}}}function j_(e,t,n){let i,r,{$$slots:o={},$$scope:a}=t,{label:s}=t,{type:c}=t,{checkboxChecked:l}=t,{toggleRadioValue:u}=t,{toggleRadioDefaultValue:d}=t,{helpContent:p}=t,{helpLink:m}=t,{disabled:f}=t,{disabledReason:h}=t,{required:g}=t,{error:v}=t,b=!1,$=g,y=r;return e.$$set=e=>{"label"in e&&n(2,s=e.label),"type"in e&&n(3,c=e.type),"checkboxChecked"in e&&n(0,l=e.checkboxChecked),"toggleRadioValue"in e&&n(1,u=e.toggleRadioValue),"toggleRadioDefaultValue"in e&&n(4,d=e.toggleRadioDefaultValue),"helpContent"in e&&n(5,p=e.helpContent),"helpLink"in e&&n(6,m=e.helpLink),"disabled"in e&&n(7,f=e.disabled),"disabledReason"in e&&n(8,h=e.disabledReason),"required"in e&&n(9,g=e.required),"error"in e&&n(10,v=e.error),"$$scope"in e&&n(20,a=e.$$scope)},e.$$.update=()=>{1024&e.$$.dirty&&n(16,i=void 0!==v),3&e.$$.dirty&&n(15,r=!(!l&&!u)),123392&e.$$.dirty&&((i||!y&&r||!$&&g)&&n(11,b=!0),n(13,$=g),n(14,y=r))},[l,u,s,c,d,p,m,f,h,g,v,b,function(){n(11,b=!b||i)},$,y,r,i,o,function(){l=this.checked,n(0,l)},function(e){u=e,n(1,u)},a]}class D_ extends tg{constructor(e){super(),eg(this,e,j_,N_,Yf,{label:2,type:3,checkboxChecked:0,toggleRadioValue:1,toggleRadioDefaultValue:4,helpContent:5,helpLink:6,disabled:7,disabledReason:8,required:9,error:10})}}function M_(e){let t;const n=e[9].default,i=eh(n,e,e[11],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||2048&r)&&ih(i,n,e,e[11],t?nh(n,e[11],r,null):rh(e[11]),null)},i(e){t||(Wh(i,e),t=!0)},o(e){Jh(i,e),t=!1},d(e){i&&i.d(e)}}}function Z_(e){let t,n,i;function r(t){e[10](t)}let o={type:"toggleradio",label:e[1],toggleRadioDefaultValue:e[2],helpContent:e[3],helpLink:e[4],disabled:e[5],disabledReason:e[6],required:e[7],error:e[8],$$slots:{default:[M_]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.toggleRadioValue=e[0]),t=new D_({props:o}),Th.push(()=>Gh(t,"toggleRadioValue",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,[i]){const r={};2&i&&(r.label=e[1]),4&i&&(r.toggleRadioDefaultValue=e[2]),8&i&&(r.helpContent=e[3]),16&i&&(r.helpLink=e[4]),32&i&&(r.disabled=e[5]),64&i&&(r.disabledReason=e[6]),128&i&&(r.required=e[7]),256&i&&(r.error=e[8]),2048&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.toggleRadioValue=e[0],Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function L_(e,t,n){let{$$slots:i={},$$scope:r}=t,{label:o}=t,{value:a}=t,{defaultValue:s}=t,{helpContent:c}=t,{helpLink:l}=t,{disabled:u=!1}=t,{disabledReason:d}=t,{required:p=!1}=t,{error:m}=t;return e.$$set=e=>{"label"in e&&n(1,o=e.label),"value"in e&&n(0,a=e.value),"defaultValue"in e&&n(2,s=e.defaultValue),"helpContent"in e&&n(3,c=e.helpContent),"helpLink"in e&&n(4,l=e.helpLink),"disabled"in e&&n(5,u=e.disabled),"disabledReason"in e&&n(6,d=e.disabledReason),"required"in e&&n(7,p=e.required),"error"in e&&n(8,m=e.error),"$$scope"in e&&n(11,r=e.$$scope)},[a,o,s,c,l,u,d,p,m,i,function(e){a=e,n(0,a)},r]}class B_ extends tg{constructor(e){super(),eg(this,e,L_,Z_,Yf,{label:1,value:0,defaultValue:2,helpContent:3,helpLink:4,disabled:5,disabledReason:6,required:7,error:8})}}function q_(e){let t;return{c(){t=mh("Simple mechanism with a single account authorized for all privileged actions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function F_(e){let t;return{c(){t=mh("Flexible mechanism with a separate role for each privileged action. A role can have many authorized accounts.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function H_(e){let t;return{c(){t=mh("Enables a central contract to define a policy that allows certain callers to access certain functions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function V_(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/access#Ownable",$$slots:{default:[q_]},$$scope:{ctx:e}}}),d=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/access#AccessControl",$$slots:{default:[F_]},$$scope:{ctx:e}}}),v=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/access#AccessManaged",$$slots:{default:[H_]},$$scope:{ctx:e}}}),y=bh(e[10][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Ownable\n "),Kh(o.$$.fragment),s=fh(),c=dh("label"),l=dh("input"),u=mh("\n Roles\n "),Kh(d.$$.fragment),m=fh(),f=dh("label"),h=dh("input"),g=mh("\n Managed\n "),Kh(v.$$.fragment),vh(i,"type","radio"),i.__value="ownable",i.value=i.__value,i.disabled=e[3],xh(n,"checked","ownable"===e[0]),vh(l,"type","radio"),l.__value="roles",l.value=l.__value,xh(c,"checked","roles"===e[0]),vh(h,"type","radio"),h.__value="managed",h.value=h.__value,h.disabled=e[4],xh(f,"checked","managed"===e[0]),vh(t,"class","checkbox-group"),y.p(i,l,h)},m(y,x){lh(y,t,x),sh(t,n),sh(n,i),i.checked=i.__value===e[0],sh(n,r),Xh(o,n,null),sh(t,s),sh(t,c),sh(c,l),l.checked=l.__value===e[0],sh(c,u),Xh(d,c,null),sh(t,m),sh(t,f),sh(f,h),h.checked=h.__value===e[0],sh(f,g),Xh(v,f,null),$=!0,k||(_=[gh(i,"change",e[9]),gh(i,"click",e[11]),ah(a=C_.call(null,n,"ownable"===e[0]?e[2]:void 0)),gh(l,"change",e[12]),gh(l,"click",e[13]),ah(p=C_.call(null,c,"roles"===e[0]?e[2]:void 0)),gh(h,"change",e[14]),gh(h,"click",e[15]),ah(b=C_.call(null,f,"managed"===e[0]?e[2]:void 0))],k=!0)},p(e,t){(!$||8&t)&&(i.disabled=e[3]),1&t&&(i.checked=i.__value===e[0]);const r={};131072&t&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),a&&Xf(a.update)&&5&t&&a.update.call(null,"ownable"===e[0]?e[2]:void 0),(!$||1&t)&&xh(n,"checked","ownable"===e[0]),1&t&&(l.checked=l.__value===e[0]);const s={};131072&t&&(s.$$scope={dirty:t,ctx:e}),d.$set(s),p&&Xf(p.update)&&5&t&&p.update.call(null,"roles"===e[0]?e[2]:void 0),(!$||1&t)&&xh(c,"checked","roles"===e[0]),(!$||16&t)&&(h.disabled=e[4]),1&t&&(h.checked=h.__value===e[0]);const u={};131072&t&&(u.$$scope={dirty:t,ctx:e}),v.$set(u),b&&Xf(b.update)&&5&t&&b.update.call(null,"managed"===e[0]?e[2]:void 0),(!$||1&t)&&xh(f,"checked","managed"===e[0])},i(e){$||(Wh(o.$$.fragment,e),Wh(d.$$.fragment,e),Wh(v.$$.fragment,e),$=!0)},o(e){Jh(o.$$.fragment,e),Jh(d.$$.fragment,e),Jh(v.$$.fragment,e),$=!1},d(e){e&&uh(t),Yh(o),Yh(d),Yh(v),y.r(),k=!1,Kf(_)}}}function W_(e){let t,n,i;function r(t){e[16](t)}let o={label:"Access Control",defaultValue:"ownable",helpContent:"Restrict who can access the functions of a contract or when they can do it.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/access",required:e[1],$$slots:{default:[V_]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.value=e[0]),t=new B_({props:o}),Th.push(()=>Gh(t,"value",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,[i]){const r={};2&i&&(r.required=e[1]),131101&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.value=e[0],Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function J_(e,t,n){let{access:i}=t,{required:r}=t,{error:o}=t,{defaultValueWhenEnabled:a="ownable"}=t,{disableOwnable:s=!1}=t,{disableManaged:c=!1}=t,l=r,u=i;function d(e){n(8,u=e)}return e.$$set=e=>{"access"in e&&n(0,i=e.access),"required"in e&&n(1,r=e.required),"error"in e&&n(2,o=e.error),"defaultValueWhenEnabled"in e&&n(6,a=e.defaultValueWhenEnabled),"disableOwnable"in e&&n(3,s=e.disableOwnable),"disableManaged"in e&&n(4,c=e.disableManaged)},e.$$.update=()=>{451&e.$$.dirty&&(l&&!r?n(0,i=u):r?!1===i&&n(0,i=a):n(8,u=i),n(7,l=r))},[i,r,o,s,c,d,a,l,u,function(){i=this.__value,n(0,i),n(7,l),n(1,r),n(8,u),n(6,a)},[[]],()=>d("ownable"),function(){i=this.__value,n(0,i),n(7,l),n(1,r),n(8,u),n(6,a)},()=>d("roles"),function(){i=this.__value,n(0,i),n(7,l),n(1,r),n(8,u),n(6,a)},()=>d("managed"),function(e){i=e,n(0,i),n(7,l),n(1,r),n(8,u),n(6,a)}]}class G_ extends tg{constructor(e){super(),eg(this,e,J_,W_,Yf,{access:0,required:1,error:2,defaultValueWhenEnabled:6,disableOwnable:3,disableManaged:4})}}function K_(e){let t;return{c(){t=mh("Uses more complex proxy with higher overhead, requires less changes in your contract. Can also be used with\n beacons.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function X_(e){let t;return{c(){t=mh("Uses simpler proxy with less overhead, requires including extra code in your contract. Allows flexibility for\n authorizing upgrades.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Y_(e){let t,n,i,r,o,a,s,c,l,u,d,p;return a=new y_({props:{link:"https://docs.openzeppelin.com/upgrades-plugins/writing-upgradeable#namespaced-storage-layout",$$slots:{default:[Q_]},$$scope:{ctx:e}}}),{c(){t=dh("div"),n=fh(),i=dh("label"),r=dh("span"),o=mh("Namespace Prefix\n "),Kh(a.$$.fragment),s=fh(),c=dh("input"),_h(t,"height","0.5rem"),vh(r,"class","flex justify-between pr-2"),vh(i,"class","labeled-input")},m(m,f){lh(m,t,f),lh(m,n,f),lh(m,i,f),sh(i,r),sh(r,o),Xh(a,r,null),sh(i,s),sh(i,c),kh(c,e[1]),u=!0,d||(p=[gh(c,"input",e[11]),ah(l=C_.call(null,c,e[5]?.namespacePrefix))],d=!0)},p(e,t){const n={};16384&t&&(n.$$scope={dirty:t,ctx:e}),a.$set(n),2&t&&c.value!==e[1]&&kh(c,e[1]),l&&Xf(l.update)&&32&t&&l.update.call(null,e[5]?.namespacePrefix)},i(e){u||(Wh(a.$$.fragment,e),u=!0)},o(e){Jh(a.$$.fragment,e),u=!1},d(e){e&&uh(t),e&&uh(n),e&&uh(i),Yh(a),d=!1,Kf(p)}}}function Q_(e){let t;return{c(){t=mh("Prefix for ERC-7201 namespace identifiers. Should be derived from your project name or a unique naming\n convention specific to your project.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ex(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g;o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/proxy#TransparentUpgradeableProxy",$$slots:{default:[K_]},$$scope:{ctx:e}}}),u=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/proxy#UUPSUpgradeable",$$slots:{default:[X_]},$$scope:{ctx:e}}});let v=e[4]&&Y_(e);return f=bh(e[9][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Transparent\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n UUPS\n "),Kh(u.$$.fragment),d=fh(),v&&v.c(),p=hh(),vh(i,"type","radio"),i.__value="transparent",i.value=i.__value,i.disabled=e[2],xh(n,"checked","transparent"===e[0]),vh(c,"type","radio"),c.__value="uups",c.value=c.__value,c.disabled=e[2],xh(s,"checked","uups"===e[0]),vh(t,"class","checkbox-group"),f.p(i,c)},m(f,b){lh(f,t,b),sh(t,n),sh(n,i),i.checked=i.__value===e[0],sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0],sh(s,l),Xh(u,s,null),lh(f,d,b),v&&v.m(f,b),lh(f,p,b),m=!0,h||(g=[gh(i,"change",e[8]),gh(c,"change",e[10])],h=!0)},p(e,t){(!m||4&t)&&(i.disabled=e[2]),1&t&&(i.checked=i.__value===e[0]);const r={};16384&t&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!m||1&t)&&xh(n,"checked","transparent"===e[0]),(!m||4&t)&&(c.disabled=e[2]),1&t&&(c.checked=c.__value===e[0]);const a={};16384&t&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!m||1&t)&&xh(s,"checked","uups"===e[0]),e[4]?v?(v.p(e,t),16&t&&Wh(v,1)):(v=Y_(e),v.c(),Wh(v,1),v.m(p.parentNode,p)):v&&(Hh(),Jh(v,1,1,()=>{v=null}),Vh())},i(e){m||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),Wh(v),m=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),Jh(v),m=!1},d(e){e&&uh(t),Yh(o),Yh(u),e&&uh(d),v&&v.d(e),e&&uh(p),f.r(),h=!1,Kf(g)}}}function tx(e){let t,n,i;function r(t){e[12](t)}let o={label:"Upgradeability",disabled:e[2],disabledReason:e[3],defaultValue:"transparent",helpContent:"Smart contracts are immutable by default unless deployed behind an upgradeable proxy.",helpLink:"https://docs.openzeppelin.com/openzeppelin/upgrades",$$slots:{default:[ex]},$$scope:{ctx:e}};return void 0!==e[0]&&(o.value=e[0]),t=new B_({props:o}),Th.push(()=>Gh(t,"value",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,[i]){const r={};4&i&&(r.disabled=e[2]),8&i&&(r.disabledReason=e[3]),16439&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.value=e[0],Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function nx(e,t,n){let{upgradeable:i}=t,{disabled:r=!1}=t,{disabledReason:o}=t,{namespaceRequired:a=!1}=t,{namespacePrefix:s}=t,{errors:c}=t,l=r,u=i;return e.$$set=e=>{"upgradeable"in e&&n(0,i=e.upgradeable),"disabled"in e&&n(2,r=e.disabled),"disabledReason"in e&&n(3,o=e.disabledReason),"namespaceRequired"in e&&n(4,a=e.namespaceRequired),"namespacePrefix"in e&&n(1,s=e.namespacePrefix),"errors"in e&&n(5,c=e.errors)},e.$$.update=()=>{197&e.$$.dirty&&(l&&!r?n(0,i=u):(n(7,u=i),!1!==i&&r&&n(0,i=!1)),n(6,l=r))},[i,s,r,o,a,c,l,u,function(){i=this.__value,n(0,i),n(6,l),n(2,r),n(7,u)},[[]],function(){i=this.__value,n(0,i),n(6,l),n(2,r),n(7,u)},function(){s=this.value,n(1,s)},function(e){i=e,n(0,i),n(6,l),n(2,r),n(7,u)}]}class ix extends tg{constructor(e){super(),eg(this,e,nx,tx,Yf,{upgradeable:0,disabled:2,disabledReason:3,namespaceRequired:4,namespacePrefix:1,errors:5})}}function rx(e){let t;return{c(){t=mh("Where people can contact you to report security issues. Will only be visible if contract metadata is verified.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ox(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"placeholder",Wv.license)},m(o,a){lh(o,t,a),kh(t,e[0].license),i||(r=[gh(t,"input",e[8]),ah(n=C_.call(null,t,e[1]?.license))],i=!0)},p(e,i){1&i&&t.value!==e[0].license&&kh(t,e[0].license),n&&Xf(n.update)&&2&i&&n.update.call(null,e[1]?.license)},d(e){e&&uh(t),i=!1,Kf(r)}}}function ax(e){let t;return{c(){t=dh("input"),t.value=eb,t.readOnly=!0,t.disabled=!0,vh(t,"aria-describedby",e[4])},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function sx(e){let t,n,i;function r(e,t){return e[3].show?lx:cx}let o=r(e),a=o(e);return{c(){t=dh("p"),n=mh("Contracts generated with ACE use BUSL-1.1. Review the\n "),a.c(),i=mh("\n before production use."),vh(t,"id",e[4]),vh(t,"class","text-sm text-gray-500")},m(e,r){lh(e,t,r),sh(t,n),a.m(t,null),sh(t,i)},p(e,n){o===(o=r(e))&&a?a.p(e,n):(a.d(1),a=o(e),a&&(a.c(),a.m(t,i)))},d(e){e&&uh(t),a.d()}}}function cx(e){let t;return{c(){t=mh("ACE license and additional use grants")},m(e,n){lh(e,t,n)},p:Vf,d(e){e&&uh(t)}}}function lx(e){let t,n,i,r,o,a,s,c,l;return{c(){t=dh("a"),n=mh("ACE license"),o=mh("\n and\n "),a=dh("a"),s=mh("additional use grants"),vh(t,"class","underline"),vh(t,"href",tb),vh(t,"target",i=e[3].target),vh(t,"rel",r=e[3].rel),vh(a,"class","underline"),vh(a,"href","https://github.com/smartcontractkit/chainlink-ace/blob/v1.2.0/chainlink-ace-License-grants"),vh(a,"target",c=e[3].target),vh(a,"rel",l=e[3].rel)},m(e,i){lh(e,t,i),sh(t,n),lh(e,o,i),lh(e,a,i),sh(a,s)},p(e,n){8&n&&i!==(i=e[3].target)&&vh(t,"target",i),8&n&&r!==(r=e[3].rel)&&vh(t,"rel",r),8&n&&c!==(c=e[3].target)&&vh(a,"target",c),8&n&&l!==(l=e[3].rel)&&vh(a,"rel",l)},d(e){e&&uh(t),e&&uh(o),e&&uh(a)}}}function ux(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b;function $(e,t){return e[2]?ax:ox}s=new y_({props:{link:"https://github.com/ethereum-lists/contracts/blob/main/README.md#tracking-new-deployments",$$slots:{default:[rx]},$$scope:{ctx:e}}});let y=$(e),k=y(e),_=e[2]&&sx(e);return{c(){t=dh("section"),n=dh("h1"),n.innerHTML='<label class="flex items-center tooltip-container pr-2"><span>Info</span></label>',i=fh(),r=dh("label"),o=dh("span"),a=mh("Security Contact\n "),Kh(s.$$.fragment),c=fh(),l=dh("input"),d=fh(),p=dh("label"),m=dh("span"),m.textContent="License",f=fh(),k.c(),h=fh(),_&&_.c(),vh(o,"class","flex justify-between pr-2"),vh(l,"placeholder","security@example.com"),vh(r,"class","labeled-input"),vh(p,"class","labeled-input"),vh(t,"class","controls-section")},m($,y){lh($,t,y),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),Xh(s,o,null),sh(r,c),sh(r,l),kh(l,e[0].securityContact),sh(t,d),sh(t,p),sh(p,m),sh(p,f),k.m(p,null),sh(t,h),_&&_.m(t,null),g=!0,v||(b=[gh(l,"input",e[7]),ah(u=C_.call(null,l,e[1]?.securityContact))],v=!0)},p(e,[n]){const i={};1024&n&&(i.$$scope={dirty:n,ctx:e}),s.$set(i),1&n&&l.value!==e[0].securityContact&&kh(l,e[0].securityContact),u&&Xf(u.update)&&2&n&&u.update.call(null,e[1]?.securityContact),y===(y=$(e))&&k?k.p(e,n):(k.d(1),k=y(e),k&&(k.c(),k.m(p,null))),e[2]?_?_.p(e,n):(_=sx(e),_.c(),_.m(t,null)):_&&(_.d(1),_=null)},i(e){g||(Wh(s.$$.fragment,e),g=!0)},o(e){Jh(s.$$.fragment,e),g=!1},d(e){e&&uh(t),Yh(s),k.d(),_&&_.d(),v=!1,Kf(b)}}}let dx=0;function px(e,t,n){let i,r,{info:o}=t,{errors:a}=t,{aceEnabled:s=!1}=t;const c="ace-license-description-"+dx++,l=Oh(dg),u=l??ig({canOpen:!1});return Qf(e,u,e=>n(6,r=e)),e.$$set=e=>{"info"in e&&n(0,o=e.info),"errors"in e&&n(1,a=e.errors),"aceEnabled"in e&&n(2,s=e.aceEnabled)},e.$$.update=()=>{var t,o;64&e.$$.dirty&&n(3,(t=null!=l,o=r.canOpen,i=t?{show:o,target:void 0,rel:void 0}:{show:!0,target:"_blank",rel:"noopener noreferrer"}))},[o,a,s,i,c,u,r,function(){o.securityContact=this.value,n(0,o)},function(){o.license=this.value,n(0,o)}]}class mx extends tg{constructor(e){super(),eg(this,e,px,ux,Yf,{info:0,errors:1,aceEnabled:2})}}function fx(e){let t,n,i,r,o,a;return{c(){t=ph("svg"),n=ph("defs"),i=ph("style"),r=mh(".cls-1 {\n fill: #ff0420;\n }\n\n .cls-2 {\n fill: #fff;\n }"),o=ph("circle"),a=ph("path"),vh(o,"class","cls-1"),vh(o,"cx","24"),vh(o,"cy","24"),vh(o,"r","24"),vh(a,"class","cls-2"),vh(a,"d","M17.0048009,30.3787877c-1.4290301,0-2.5999093-.336227-3.5125497-1.0087298-.9006627-.6844814-1.350994-1.6571899-1.350994-2.9181257,0-.2641828.0299883-.5884347.0900574-.9727086.156114-.8646415.3782854-1.9034058.6664682-3.1162981.8165946-3.3024449,2.9241603-4.9536447,6.3226519-4.9536447.9247088,0,1.7532802.156114,2.4858503.4683419.7325265.3002058,1.3089373.7565255,1.7292358,1.3690063.4203421.6004569.6304914,1.3209595.6304914,2.1616002,0,.2521589-.0300345.5704224-.0900582.9546962-.1801601,1.0687552-.396296,2.1075195-.648502,3.1162981-.4202968,1.6452114-1.1468349,2.8761143-2.1796125,3.6927072-1.0327305.8045724-2.4137591,1.2068569-4.1430385,1.2068569ZM17.2570051,27.7849139c.6725028,0,1.2429269-.1981707,1.7112688-.5944685.4803205-.3962507.822583-1.002696,1.0267439-1.8193377.276205-1.1288225.4863543-2.1135533.6304443-2.9541469.0480469-.252206.0720459-.5104004.0720459-.7745832,0-1.0927996-.570377-1.6391776-1.7112217-1.6391776-.6725028,0-1.2489153.1981253-1.7292812.5944231-.4683419.396296-.804616,1.0027431-1.0087315,1.8193377-.2161813.8045707-.432319,1.7893014-.648502,2.9541469-.0480451.2401838-.0720459.4923898-.0720459.7565726,0,1.1048218.5764108,1.6572335,1.7292794,1.6572335ZM24.8930751,30.1986747c-.132115,0-.2341954-.0420131-.3062413-.1260812-.060022-.0960903-.0780343-.2041609-.0540336-.3242501l2.4858503-11.7086182c.0240008-.1320679.0900582-.2401821.1981271-.3242501.1080688-.0840227.2221715-.1260812.3422625-.1260812h4.7914969c1.3329834,0,2.4017822.2762068,3.2063546.8286168.8165946.5524118,1.2249128,1.3509957,1.2249128,2.3957502,0,.3002511-.0360212.6124791-.1080671.9366856-.3002058,1.3810285-.9066511,2.4017822-1.8193359,3.0622628-.9006627.6604789-2.1376011.9907192-3.7107213.9907192h-2.4318168l-.8286185,3.9449149c-.023999.132115-.0900565.2401821-.1981253.3242501s-.2221715.1260812-.3422625.1260812h-2.449782ZM31.2697614,23.3176235c.5043631,0,.9426723-.1381034,1.3149693-.4143084.3842739-.2762068.6364816-.6725028.7565709-1.1888916.0360247-.2041155.0540353-.3842756.0540353-.5403896,0-.3482509-.1020787-.6124337-.3062395-.7925938-.2041609-.1921369-.55241-.2881836-1.0447545-.2881836h-2.1616002l-.684525,3.224367h2.0715437Z"),vh(t,"id","Icon"),vh(t,"xmlns","http://www.w3.org/2000/svg"),vh(t,"viewBox","0 0 48 48"),vh(t,"width","24"),vh(t,"height","24")},m(e,s){lh(e,t,s),sh(t,n),sh(n,i),sh(i,r),sh(t,o),sh(t,a)},p:Vf,i:Vf,o:Vf,d(e){e&&uh(t)}}}class hx extends tg{constructor(e){super(),eg(this,e,null,fx,Yf,{})}}function gx(e){const t=()=>{if(""===e.value)return;const t=window.getComputedStyle(e),n=vx(e.value,t),i=`calc(5px + max(${vx(e.placeholder,t)}, ${n}) + ${["padding-left","padding-right","border-left-width","border-right-width"].map(e=>t.getPropertyValue(e)).join(" + ")})`;e.style.setProperty("width",i)};t(),e.addEventListener("input",t)}function vx(e,t){const n=["font-size","font-family"].map(e=>t.getPropertyValue(e)).join(" "),i=document.createElement("canvas").getContext("2d");return i.font=n,i.measureText(e).width+"px"}function bx(e){return{content:e,trigger:"manual",placement:"bottom",maxWidth:"22em",allowHTML:!0,interactive:!0}}const $x=bx('<strong>Important:</strong> Only available on chains in the Superchain. Requires deploying your contract to the same address on every chain in the Superchain. <a class="light-link" href="https://docs.optimism.io/stack/interop/superchain-erc20#requirements" target="_blank" rel="noopener noreferrer">Read more.</a>'),yx=bx('<strong>Important:</strong> Identity-based policies will not apply until you deploy identity and credential registries and connect them to your Policy Engine. <a class="light-link" href="https://docs.chain.link/ace/concepts/cross-chain-identity" target="_blank" rel="noopener noreferrer">Read more.</a>');function kx(e){let t;return{c(){t=mh("The number of decimals used to represent token amounts. Defaults to 18.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function _x(e){let t;return{c(){t=mh("Create an initial amount of tokens for the deployer.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function xx(e){let t,n,i,r,o,a,s,c,l,u;return s=new y_({props:{$$slots:{default:[wx]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=mh(" Chain ID:\n "),r=dh("input"),a=fh(),Kh(s.$$.fragment),vh(r,"type","number"),vh(r,"placeholder",""),vh(r,"pattern",Kb.source),vh(r,"class","input-inline"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(d,p){lh(d,t,p),sh(t,n),sh(n,i),sh(n,r),kh(r,e[0].premintChainId),sh(t,a),Xh(s,t,null),c=!0,l||(u=[gh(r,"input",e[20]),ah(gx.call(null,r)),ah(o=C_.call(null,r,e[2]?.premintChainId))],l=!0)},p(e,t){1&t[0]&&$h(r.value)!==e[0].premintChainId&&kh(r,e[0].premintChainId),o&&Xf(o.update)&&4&t[0]&&o.update.call(null,e[2]?.premintChainId);const n={};8192&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){c||(Wh(s.$$.fragment,e),c=!0)},o(e){Jh(s.$$.fragment,e),c=!1},d(e){e&&uh(t),Yh(s),l=!1,Kf(u)}}}function wx(e){let t;return{c(){t=mh("Chain ID of the network on which to premint tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Cx(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ix(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ex(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Sx(e){let t;return{c(){t=mh("Supports code execution after transfers and approvals on recipient contracts in a single transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function zx(e){let t;return{c(){t=mh("Without paying gas, token holders will be able to allow third parties to transfer from their account.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ox(e){let t;return{c(){t=mh("Built-in flash loans. Lend tokens without requiring collateral as long as they're returned in the same\n transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ax(e){let t,n,i,r,o,a,s,c,l,u,d,p;return c=new y_({props:{link:"https://docs.openzeppelin.com/chainlink-ccip-ace",$$slots:{default:[Tx]},$$scope:{ctx:e}}}),{c(){t=dh("section"),n=dh("h1"),n.textContent="Policy Engine",i=fh(),r=dh("div"),o=dh("label"),a=dh("input"),s=mh("\n Chainlink ACE\n "),Kh(c.$$.fragment),vh(a,"type","checkbox"),xh(o,"checked",e[0].chainlinkAce),vh(r,"class","checkbox-group"),vh(t,"class","controls-section")},m(m,f){lh(m,t,f),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),a.checked=e[0].chainlinkAce,sh(o,s),Xh(c,o,null),e[28](o),u=!0,d||(p=[gh(a,"change",e[27]),ah(l=C_.call(null,o,e[2]?.chainlinkAce))],d=!0)},p(e,t){1&t[0]&&(a.checked=e[0].chainlinkAce);const n={};8192&t[1]&&(n.$$scope={dirty:t,ctx:e}),c.$set(n),l&&Xf(l.update)&&4&t[0]&&l.update.call(null,e[2]?.chainlinkAce),(!u||1&t[0])&&xh(o,"checked",e[0].chainlinkAce)},i(e){u||(Wh(c.$$.fragment,e),u=!0)},o(e){Jh(c.$$.fragment,e),u=!1},d(n){n&&uh(t),Yh(c),e[28](null),d=!1,Kf(p)}}}function Tx(e){let t;return{c(){t=mh("Chainlink Automated Compliance Engine (ACE) checks token operations against policies configured in a Policy\n Engine contract. Provide a deployed Policy Engine and configure its policies before using the token. Engine\n administration is separate from token permissions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Px(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ux(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Rx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[Px]},$$scope:{ctx:e}}}),u=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[Ux]},$$scope:{ctx:e}}}),p=bh(e[30][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[29]),gh(c,"change",e[31])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};8192&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};8192&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function Nx(e){let t;return{c(){t=mh("Uses custom bridge contract(s) as authorized token bridge(s), through the ERC-7802 crosschainMint and\n crosschainBurn interface.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function jx(e){let t,n,i,r,o,a,s,c;return r=new y_({props:{link:"https://docs.openzeppelin.com/chainlink-ccip-ace",$$slots:{default:[Dx]},$$scope:{ctx:e}}}),a=bh(e[30][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n Chainlink CCIP\n "),Kh(r.$$.fragment),vh(n,"type","radio"),n.__value="chainlink-ccip",n.value=n.__value,xh(t,"checked","chainlink-ccip"===e[0].crossChainBridging),a.p(n)},m(a,l){lh(a,t,l),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Xh(r,t,null),o=!0,s||(c=gh(n,"change",e[34]),s=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const a={};8192&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked","chainlink-ccip"===e[0].crossChainBridging)},i(e){o||(Wh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Yh(r),a.r(),s=!1,c()}}}function Dx(e){let t;return{c(){t=mh("Chainlink Cross-Chain Interoperability Protocol (CCIP) connects the token to a Chainlink token pool.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Mx(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain. ERC-7786 defines\n a common gateway interface for cross-chain messaging.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Zx(e){let t,n,i,r,o,a,s,c,l;return a=new y_({props:{$$slots:{default:[Lx]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Kh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Xh(a,t,null),s=!0,c||(l=gh(i,"change",e[36]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};8192&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Wh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Yh(a),c=!1,l()}}}function Lx(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Bx(e){let t,n,i,r,o,a,s,c,l,u;return r=new hx({}),a=new y_({props:{link:"https://docs.optimism.io/stack/interop/superchain-erc20",$$slots:{default:[qx]},$$scope:{ctx:e}}}),c=bh(e[30][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n SuperchainERC20 "),Kh(r.$$.fragment),o=fh(),Kh(a.$$.fragment),vh(n,"type","radio"),n.__value="superchain",n.value=n.__value,xh(t,"checked","superchain"===e[0].crossChainBridging),c.p(n)},m(c,d){lh(c,t,d),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Xh(r,t,null),sh(t,o),Xh(a,t,null),e[38](t),s=!0,l||(u=gh(n,"change",e[37]),l=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const r={};8192&i[1]&&(r.$$scope={dirty:i,ctx:e}),a.$set(r),(!s||1&i[0])&&xh(t,"checked","superchain"===e[0].crossChainBridging)},i(e){s||(Wh(r.$$.fragment,e),Wh(a.$$.fragment,e),s=!0)},o(e){Jh(r.$$.fragment,e),Jh(a.$$.fragment,e),s=!1},d(n){n&&uh(t),Yh(r),Yh(a),e[38](null),c.r(),l=!1,u()}}}function qx(e){let t,n,i;return{c(){t=mh("Uses the predeployed "),n=dh("code"),n.textContent="SuperchainTokenBridge",i=mh(" contract as the authorized token bridge. Only available\n on chains in the Superchain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Fx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b=!e[1]?.includes("ccip"),$=!e[1]?.includes("superchain");o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[Nx]},$$scope:{ctx:e}}});let y=b&&jx(e);d=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Crosschain",$$slots:{default:[Mx]},$$scope:{ctx:e}}});let k=e[6]&&Zx(e),_=$&&Bx(e);return h=bh(e[30][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Custom\n "),Kh(o.$$.fragment),a=fh(),y&&y.c(),s=fh(),c=dh("label"),l=dh("input"),u=mh("\n ERC-7786 Native\n "),Kh(d.$$.fragment),p=fh(),k&&k.c(),m=fh(),_&&_.c(),vh(i,"type","radio"),i.__value="custom",i.value=i.__value,xh(n,"checked","custom"===e[0].crossChainBridging),vh(l,"type","radio"),l.__value="erc7786native",l.value=l.__value,xh(c,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),h.p(i,l)},m(h,b){lh(h,t,b),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Xh(o,n,null),sh(t,a),y&&y.m(t,null),sh(t,s),sh(t,c),sh(c,l),l.checked=l.__value===e[0].crossChainBridging,sh(c,u),Xh(d,c,null),sh(t,p),k&&k.m(t,null),sh(t,m),_&&_.m(t,null),f=!0,g||(v=[gh(i,"change",e[33]),gh(l,"change",e[35])],g=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};8192&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!f||1&r[0])&&xh(n,"checked","custom"===e[0].crossChainBridging),2&r[0]&&(b=!e[1]?.includes("ccip")),b?y?(y.p(e,r),2&r[0]&&Wh(y,1)):(y=jx(e),y.c(),Wh(y,1),y.m(t,s)):y&&(Hh(),Jh(y,1,1,()=>{y=null}),Vh()),1&r[0]&&(l.checked=l.__value===e[0].crossChainBridging);const u={};8192&r[1]&&(u.$$scope={dirty:r,ctx:e}),d.$set(u),(!f||1&r[0])&&xh(c,"checked","erc7786native"===e[0].crossChainBridging),e[6]?k?(k.p(e,r),64&r[0]&&Wh(k,1)):(k=Zx(e),k.c(),Wh(k,1),k.m(t,m)):k&&(Hh(),Jh(k,1,1,()=>{k=null}),Vh()),2&r[0]&&($=!e[1]?.includes("superchain")),$?_?(_.p(e,r),2&r[0]&&Wh(_,1)):(_=Bx(e),_.c(),Wh(_,1),_.m(t,null)):_&&(Hh(),Jh(_,1,1,()=>{_=null}),Vh())},i(e){f||(Wh(o.$$.fragment,e),Wh(y),Wh(d.$$.fragment,e),Wh(k),Wh(_),f=!0)},o(e){Jh(o.$$.fragment,e),Jh(y),Jh(d.$$.fragment,e),Jh(k),Jh(_),f=!1},d(e){e&&uh(t),Yh(o),y&&y.d(),Yh(d),k&&k.d(),_&&_.d(),h.r(),g=!1,Kf(v)}}}function Hx(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,be,$e,ye,ke,_e,xe,we,Ce,Ie,Ee,Se,ze,Oe,Ae,Te,Pe,Ue,Re=!e[1]?.includes("chainlinkAce");b=new y_({props:{$$slots:{default:[kx]},$$scope:{ctx:e}}}),I=new y_({props:{$$slots:{default:[_x]},$$scope:{ctx:e}}});let Ne=e[5]&&xx(e);Z=new y_({props:{$$slots:{default:[Cx]},$$scope:{ctx:e}}}),H=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Burnable",$$slots:{default:[Ix]},$$scope:{ctx:e}}}),X=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[Ex]},$$scope:{ctx:e}}}),ne=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC1363",$$slots:{default:[Sx]},$$scope:{ctx:e}}}),ce=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Permit",$$slots:{default:[zx]},$$scope:{ctx:e}}}),me=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20FlashMint",$$slots:{default:[Ox]},$$scope:{ctx:e}}});let je=Re&&Ax(e);function De(t){e[32](t)}let Me={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[Rx]},$$scope:{ctx:e}};function Ze(t){e[39](t)}void 0!==e[0].votes&&(Me.value=e[0].votes),ve=new B_({props:Me}),Th.push(()=>Gh(ve,"value",De));let Le={label:"Crosschain Bridging",error:e[2]?.crossChainBridging,defaultValue:"custom",helpContent:"Allows authorized bridge contracts to mint and burn tokens for crosschain transfers.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[Fx]},$$scope:{ctx:e}};function Be(t){e[40](t)}void 0!==e[0].crossChainBridging&&(Le.value=e[0].crossChainBridging),ye=new B_({props:Le}),Th.push(()=>Gh(ye,"value",Ze));let qe={required:e[7],error:e[2]?.access,defaultValueWhenEnabled:"chainlink-ccip"===e[0].crossChainBridging?"roles":"ownable",disableOwnable:"chainlink-ccip"===e[0].crossChainBridging,disableManaged:"chainlink-ccip"===e[0].crossChainBridging};function Fe(t){e[41](t)}function He(t){e[42](t)}void 0!==e[0].access&&(qe.access=e[0].access),xe=new G_({props:qe}),Th.push(()=>Gh(xe,"access",Be));let Ve={namespaceRequired:!1!==e[0].upgradeable&&"custom"===e[0].crossChainBridging,errors:e[2]};function We(t){e[43](t)}void 0!==e[0].upgradeable&&(Ve.upgradeable=e[0].upgradeable),void 0!==e[0].namespacePrefix&&(Ve.namespacePrefix=e[0].namespacePrefix),Ie=new ix({props:Ve}),Th.push(()=>Gh(Ie,"upgradeable",Fe)),Th.push(()=>Gh(Ie,"namespacePrefix",He));let Je={errors:e[2],aceEnabled:!0===e[0].chainlinkAce};return void 0!==e[0].info&&(Je.info=e[0].info),Oe=new mx({props:Je}),Th.push(()=>Gh(Oe,"info",We)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("div"),o=dh("label"),a=dh("span"),a.textContent="Name",s=fh(),c=dh("input"),l=fh(),u=dh("label"),d=dh("span"),d.textContent="Symbol",p=fh(),m=dh("input"),f=fh(),h=dh("label"),g=dh("span"),v=mh("Decimals\n "),Kh(b.$$.fragment),$=fh(),y=dh("input"),_=fh(),x=dh("label"),w=dh("span"),C=mh("Premint\n "),Kh(I.$$.fragment),E=fh(),S=dh("input"),O=fh(),Ne&&Ne.c(),A=fh(),T=dh("section"),P=dh("h1"),P.textContent="Features",U=fh(),R=dh("div"),N=dh("label"),j=dh("input"),M=mh("\n Mintable\n "),Kh(Z.$$.fragment),L=fh(),B=dh("label"),q=dh("input"),F=mh("\n Burnable\n "),Kh(H.$$.fragment),W=fh(),J=dh("label"),G=dh("input"),K=mh("\n Pausable\n "),Kh(X.$$.fragment),Y=fh(),Q=dh("label"),ee=dh("input"),te=mh("\n Callback\n "),Kh(ne.$$.fragment),re=fh(),oe=dh("label"),ae=dh("input"),se=mh("\n Permit\n "),Kh(ce.$$.fragment),le=fh(),ue=dh("label"),de=dh("input"),pe=mh("\n Flash Minting\n "),Kh(me.$$.fragment),he=fh(),je&&je.c(),ge=fh(),Kh(ve.$$.fragment),$e=fh(),Kh(ye.$$.fragment),_e=fh(),Kh(xe.$$.fragment),Ce=fh(),Kh(Ie.$$.fragment),ze=fh(),Kh(Oe.$$.fragment),vh(o,"class","labeled-input"),vh(u,"class","labeled-input"),vh(r,"class","grid grid-cols-[2fr,1fr] gap-2"),vh(g,"class","flex justify-between pr-2"),vh(h,"class","labeled-input"),vh(w,"class","flex justify-between pr-2"),vh(S,"placeholder","0"),vh(S,"pattern",Gb.source),vh(x,"class","labeled-input"),vh(t,"class","controls-section"),vh(j,"type","checkbox"),j.disabled=D="chainlink-ccip"===e[0].crossChainBridging,xh(N,"checked",e[0].mintable),vh(q,"type","checkbox"),xh(B,"checked",e[0].burnable),vh(G,"type","checkbox"),xh(J,"checked",e[0].pausable),vh(ee,"type","checkbox"),xh(Q,"checked",e[0].callback),vh(ae,"type","checkbox"),xh(oe,"checked",e[0].permit),vh(de,"type","checkbox"),xh(ue,"checked",e[0].flashmint),vh(R,"class","checkbox-group"),vh(T,"class","controls-section")},m(D,be){lh(D,t,be),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),sh(o,s),sh(o,c),kh(c,e[0].name),sh(r,l),sh(r,u),sh(u,d),sh(u,p),sh(u,m),kh(m,e[0].symbol),sh(t,f),sh(t,h),sh(h,g),sh(g,v),Xh(b,g,null),sh(h,$),sh(h,y),kh(y,e[0].decimals),sh(t,_),sh(t,x),sh(x,w),sh(w,C),Xh(I,w,null),sh(x,E),sh(x,S),kh(S,e[0].premint),sh(t,O),Ne&&Ne.m(t,null),lh(D,A,be),lh(D,T,be),sh(T,P),sh(T,U),sh(T,R),sh(R,N),sh(N,j),j.checked=e[0].mintable,sh(N,M),Xh(Z,N,null),sh(R,L),sh(R,B),sh(B,q),q.checked=e[0].burnable,sh(B,F),Xh(H,B,null),sh(R,W),sh(R,J),sh(J,G),G.checked=e[0].pausable,sh(J,K),Xh(X,J,null),sh(R,Y),sh(R,Q),sh(Q,ee),ee.checked=e[0].callback,sh(Q,te),Xh(ne,Q,null),sh(R,re),sh(R,oe),sh(oe,ae),ae.checked=e[0].permit,sh(oe,se),Xh(ce,oe,null),sh(R,le),sh(R,ue),sh(ue,de),de.checked=e[0].flashmint,sh(ue,pe),Xh(me,ue,null),lh(D,he,be),je&&je.m(D,be),lh(D,ge,be),Xh(ve,D,be),lh(D,$e,be),Xh(ye,D,be),lh(D,_e,be),Xh(xe,D,be),lh(D,Ce,be),Xh(Ie,D,be),lh(D,ze,be),Xh(Oe,D,be),Te=!0,Pe||(Ue=[gh(c,"input",e[16]),gh(m,"input",e[17]),gh(y,"input",e[18]),ah(k=C_.call(null,y,e[2]?.decimals)),gh(S,"input",e[19]),ah(z=C_.call(null,S,e[2]?.premint)),gh(j,"change",e[21]),gh(q,"change",e[22]),ah(V=C_.call(null,B,e[2]?.burnable)),gh(G,"change",e[23]),gh(ee,"change",e[24]),ah(ie=C_.call(null,Q,e[2]?.callback)),gh(ae,"change",e[25]),gh(de,"change",e[26]),ah(fe=C_.call(null,ue,e[2]?.flashmint))],Pe=!0)},p(e,n){1&n[0]&&c.value!==e[0].name&&kh(c,e[0].name),1&n[0]&&m.value!==e[0].symbol&&kh(m,e[0].symbol);const i={};8192&n[1]&&(i.$$scope={dirty:n,ctx:e}),b.$set(i),1&n[0]&&y.value!==e[0].decimals&&kh(y,e[0].decimals),k&&Xf(k.update)&&4&n[0]&&k.update.call(null,e[2]?.decimals);const r={};8192&n[1]&&(r.$$scope={dirty:n,ctx:e}),I.$set(r),1&n[0]&&S.value!==e[0].premint&&kh(S,e[0].premint),z&&Xf(z.update)&&4&n[0]&&z.update.call(null,e[2]?.premint),e[5]?Ne?(Ne.p(e,n),32&n[0]&&Wh(Ne,1)):(Ne=xx(e),Ne.c(),Wh(Ne,1),Ne.m(t,null)):Ne&&(Hh(),Jh(Ne,1,1,()=>{Ne=null}),Vh()),(!Te||1&n[0]&&D!==(D="chainlink-ccip"===e[0].crossChainBridging))&&(j.disabled=D),1&n[0]&&(j.checked=e[0].mintable);const o={};8192&n[1]&&(o.$$scope={dirty:n,ctx:e}),Z.$set(o),(!Te||1&n[0])&&xh(N,"checked",e[0].mintable),1&n[0]&&(q.checked=e[0].burnable);const a={};8192&n[1]&&(a.$$scope={dirty:n,ctx:e}),H.$set(a),V&&Xf(V.update)&&4&n[0]&&V.update.call(null,e[2]?.burnable),(!Te||1&n[0])&&xh(B,"checked",e[0].burnable),1&n[0]&&(G.checked=e[0].pausable);const s={};8192&n[1]&&(s.$$scope={dirty:n,ctx:e}),X.$set(s),(!Te||1&n[0])&&xh(J,"checked",e[0].pausable),1&n[0]&&(ee.checked=e[0].callback);const l={};8192&n[1]&&(l.$$scope={dirty:n,ctx:e}),ne.$set(l),ie&&Xf(ie.update)&&4&n[0]&&ie.update.call(null,e[2]?.callback),(!Te||1&n[0])&&xh(Q,"checked",e[0].callback),1&n[0]&&(ae.checked=e[0].permit);const u={};8192&n[1]&&(u.$$scope={dirty:n,ctx:e}),ce.$set(u),(!Te||1&n[0])&&xh(oe,"checked",e[0].permit),1&n[0]&&(de.checked=e[0].flashmint);const d={};8192&n[1]&&(d.$$scope={dirty:n,ctx:e}),me.$set(d),fe&&Xf(fe.update)&&4&n[0]&&fe.update.call(null,e[2]?.flashmint),(!Te||1&n[0])&&xh(ue,"checked",e[0].flashmint),2&n[0]&&(Re=!e[1]?.includes("chainlinkAce")),Re?je?(je.p(e,n),2&n[0]&&Wh(je,1)):(je=Ax(e),je.c(),Wh(je,1),je.m(ge.parentNode,ge)):je&&(Hh(),Jh(je,1,1,()=>{je=null}),Vh());const p={};1&n[0]|8192&n[1]&&(p.$$scope={dirty:n,ctx:e}),!be&&1&n[0]&&(be=!0,p.value=e[0].votes,Dh(()=>be=!1)),ve.$set(p);const f={};4&n[0]&&(f.error=e[2]?.crossChainBridging),75&n[0]|8192&n[1]&&(f.$$scope={dirty:n,ctx:e}),!ke&&1&n[0]&&(ke=!0,f.value=e[0].crossChainBridging,Dh(()=>ke=!1)),ye.$set(f);const h={};128&n[0]&&(h.required=e[7]),4&n[0]&&(h.error=e[2]?.access),1&n[0]&&(h.defaultValueWhenEnabled="chainlink-ccip"===e[0].crossChainBridging?"roles":"ownable"),1&n[0]&&(h.disableOwnable="chainlink-ccip"===e[0].crossChainBridging),1&n[0]&&(h.disableManaged="chainlink-ccip"===e[0].crossChainBridging),!we&&1&n[0]&&(we=!0,h.access=e[0].access,Dh(()=>we=!1)),xe.$set(h);const g={};1&n[0]&&(g.namespaceRequired=!1!==e[0].upgradeable&&"custom"===e[0].crossChainBridging),4&n[0]&&(g.errors=e[2]),!Ee&&1&n[0]&&(Ee=!0,g.upgradeable=e[0].upgradeable,Dh(()=>Ee=!1)),!Se&&1&n[0]&&(Se=!0,g.namespacePrefix=e[0].namespacePrefix,Dh(()=>Se=!1)),Ie.$set(g);const v={};4&n[0]&&(v.errors=e[2]),1&n[0]&&(v.aceEnabled=!0===e[0].chainlinkAce),!Ae&&1&n[0]&&(Ae=!0,v.info=e[0].info,Dh(()=>Ae=!1)),Oe.$set(v)},i(e){Te||(Wh(b.$$.fragment,e),Wh(I.$$.fragment,e),Wh(Ne),Wh(Z.$$.fragment,e),Wh(H.$$.fragment,e),Wh(X.$$.fragment,e),Wh(ne.$$.fragment,e),Wh(ce.$$.fragment,e),Wh(me.$$.fragment,e),Wh(je),Wh(ve.$$.fragment,e),Wh(ye.$$.fragment,e),Wh(xe.$$.fragment,e),Wh(Ie.$$.fragment,e),Wh(Oe.$$.fragment,e),Te=!0)},o(e){Jh(b.$$.fragment,e),Jh(I.$$.fragment,e),Jh(Ne),Jh(Z.$$.fragment,e),Jh(H.$$.fragment,e),Jh(X.$$.fragment,e),Jh(ne.$$.fragment,e),Jh(ce.$$.fragment,e),Jh(me.$$.fragment,e),Jh(je),Jh(ve.$$.fragment,e),Jh(ye.$$.fragment,e),Jh(xe.$$.fragment,e),Jh(Ie.$$.fragment,e),Jh(Oe.$$.fragment,e),Te=!1},d(e){e&&uh(t),Yh(b),Yh(I),Ne&&Ne.d(),e&&uh(A),e&&uh(T),Yh(Z),Yh(H),Yh(X),Yh(ne),Yh(ce),Yh(me),e&&uh(he),je&&je.d(e),e&&uh(ge),Yh(ve,e),e&&uh($e),Yh(ye,e),e&&uh(_e),Yh(xe,e),e&&uh(Ce),Yh(Ie,e),e&&uh(ze),Yh(Oe,e),Pe=!1,Kf(Ue)}}}function Vx(e,t,n){let i,r,o,a,s,c,{opts:l={kind:"ERC20",...R$.defaults,premint:"",info:{...Wv}}}=t,{omitFeatures:u}=t,{errors:d}=t;zh(()=>{n(8,a=u?.includes("superchain")?void 0:a_(o,$x)),n(9,c=u?.includes("chainlinkAce")?void 0:a_(s,yx))});let p=!1,m=!1,f=l,h="chainlink-ccip"===l.crossChainBridging,g=l.mintable,v=l.access,b=!1;return e.$$set=e=>{"opts"in e&&n(0,l=e.opts),"omitFeatures"in e&&n(1,u=e.omitFeatures),"errors"in e&&n(2,d=e.errors)},e.$$.update=()=>{if(61441&e.$$.dirty[0]){const e="chainlink-ccip"===l.crossChainBridging;l!==f?(n(12,f=l),n(14,g=l.mintable),n(15,v=l.access),e&&!l.mintable&&n(0,l.mintable=!0,l)):e&&!h?(n(14,g=l.mintable),n(15,v=l.access),n(0,l.mintable=!0,l)):!e&&h&&(g||n(0,l.mintable=!1,l),!1!==v&&"roles"!==v&&"roles"===l.access&&n(0,l.access=v,l)),!e||"ownable"!==l.access&&"managed"!==l.access||n(0,l.access="roles",l),n(13,h=e)}1&e.$$.dirty[0]&&n(7,i=R$.isAccessControlRequired(l)),1281&e.$$.dirty[0]&&(p||"superchain"!==l.crossChainBridging||a?.show(),n(10,p="superchain"===l.crossChainBridging)),2561&e.$$.dirty[0]&&(!m&&l.chainlinkAce&&c?.show(),n(11,m=l.chainlinkAce)),1&e.$$.dirty[0]&&n(5,b=""!==l.premint&&"0"!==l.premint&&!1!==l.crossChainBridging),1&e.$$.dirty[0]&&n(6,r="erc7786native"===l.crossChainBridging)},[l,u,d,o,s,b,r,i,a,c,p,m,f,h,g,v,function(){l.name=this.value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.symbol=this.value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.decimals=this.value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.premint=this.value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.premintChainId=$h(this.value),n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.mintable=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.burnable=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.pausable=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.callback=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.permit=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.flashmint=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.chainlinkAce=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(e){Th[e?"unshift":"push"](()=>{s=e,n(4,s)})},function(){l.votes=this.__value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},[[],[]],function(){l.votes=this.__value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(t){e.$$.not_equal(l.votes,t)&&(l.votes=t,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v))},function(){l.crossChainBridging=this.__value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.crossChainBridging=this.__value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.crossChainBridging=this.__value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.crossChainLinkAllowOverride=this.checked,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(){l.crossChainBridging=this.__value,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v)},function(e){Th[e?"unshift":"push"](()=>{o=e,n(3,o)})},function(t){e.$$.not_equal(l.crossChainBridging,t)&&(l.crossChainBridging=t,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v))},function(t){e.$$.not_equal(l.access,t)&&(l.access=t,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v))},function(t){e.$$.not_equal(l.upgradeable,t)&&(l.upgradeable=t,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v))},function(t){e.$$.not_equal(l.namespacePrefix,t)&&(l.namespacePrefix=t,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v))},function(t){e.$$.not_equal(l.info,t)&&(l.info=t,n(0,l),n(12,f),n(13,h),n(14,g),n(15,v))}]}const Wx=bx("<strong>Important:</strong> Token IDs auto-increment independently on each chain. Mint only on a single chain and link counterparts that do not mint, otherwise colliding IDs can strand bridged tokens.");function Jx(e){let t;return{c(){t=mh("Will be concatenated with token IDs to generate the token URIs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Gx(e){let t;return{c(){t=mh("Privileged accounts will be able to emit new tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Kx(e){let t;return{c(){t=mh("New tokens will be automatically assigned an incremental id.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Xx(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Yx(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Qx(e){let t;return{c(){t=mh("Allows on-chain enumeration of all tokens or those owned by an account. Increases gas cost of transfers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ew(e){let t;return{c(){t=mh("Allows updating token URIs for individual token IDs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function tw(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function nw(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function iw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[tw]},$$scope:{ctx:e}}}),u=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[nw]},$$scope:{ctx:e}}}),p=bh(e[24][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[23]),gh(c,"change",e[25])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function rw(e){let t,n,i;function r(t){e[30](t)}let o={label:"Crosschain Bridging",defaultValue:"erc7786native",helpContent:"Adds built-in support to mint and burn tokens for crosschain transfers with registered counterparts.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Crosschain",$$slots:{default:[cw]},$$scope:{ctx:e}};return void 0!==e[0].crossChainBridging&&(o.value=e[0].crossChainBridging),t=new B_({props:o}),Th.push(()=>Gh(t,"value",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,i){const r={};49&i[0]|16&i[1]&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i[0]&&(n=!0,r.value=e[0].crossChainBridging,Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function ow(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function aw(e){let t,n,i,r,o,a,s,c,l;return a=new y_({props:{$$slots:{default:[sw]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Kh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Xh(a,t,null),s=!0,c||(l=gh(i,"change",e[29]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};16&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Wh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Yh(a),c=!1,l()}}}function sw(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function cw(e){let t,n,i,r,o,a,s,c,l,u;o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Crosschain",$$slots:{default:[ow]},$$scope:{ctx:e}}});let d=e[5]&&aw(e);return c=bh(e[24][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n ERC-7786 Native\n "),Kh(o.$$.fragment),a=fh(),d&&d.c(),vh(i,"type","radio"),i.__value="erc7786native",i.value=i.__value,xh(n,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),c.p(i)},m(c,p){lh(c,t,p),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Xh(o,n,null),e[28](n),sh(t,a),d&&d.m(t,null),s=!0,l||(u=gh(i,"change",e[27]),l=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};16&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!s||1&r[0])&&xh(n,"checked","erc7786native"===e[0].crossChainBridging),e[5]?d?(d.p(e,r),32&r[0]&&Wh(d,1)):(d=aw(e),d.c(),Wh(d,1),d.m(t,null)):d&&(Hh(),Jh(d,1,1,()=>{d=null}),Vh())},i(e){s||(Wh(o.$$.fragment,e),Wh(d),s=!0)},o(e){Jh(o.$$.fragment,e),Jh(d),s=!1},d(n){n&&uh(t),Yh(o),e[28](null),d&&d.d(),c.r(),l=!1,u()}}}function lw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,be=!e[2]?.includes("crossChainBridging");function $e(t){e[26](t)}b=new y_({props:{$$slots:{default:[Jx]},$$scope:{ctx:e}}}),z=new y_({props:{$$slots:{default:[Gx]},$$scope:{ctx:e}}}),U=new y_({props:{$$slots:{default:[Kx]},$$scope:{ctx:e}}}),M=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Burnable",$$slots:{default:[Xx]},$$scope:{ctx:e}}}),F=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[Yx]},$$scope:{ctx:e}}}),G=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Enumerable",$$slots:{default:[Qx]},$$scope:{ctx:e}}}),ee=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721URIStorage",$$slots:{default:[ew]},$$scope:{ctx:e}}});let ye={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of individual units for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Votes",$$slots:{default:[iw]},$$scope:{ctx:e}};void 0!==e[0].votes&&(ye.value=e[0].votes),ne=new B_({props:ye}),Th.push(()=>Gh(ne,"value",$e));let ke=be&&rw(e);function _e(t){e[31](t)}let xe={required:e[6]};function we(t){e[32](t)}function Ce(t){e[33](t)}void 0!==e[0].access&&(xe.access=e[0].access),ae=new G_({props:xe}),Th.push(()=>Gh(ae,"access",_e));let Ie={namespaceRequired:!1!==e[0].upgradeable&&e[0].mintable&&e[0].incremental,errors:e[1]};function Ee(t){e[34](t)}void 0!==e[0].upgradeable&&(Ie.upgradeable=e[0].upgradeable),void 0!==e[0].namespacePrefix&&(Ie.namespacePrefix=e[0].namespacePrefix),le=new ix({props:Ie}),Th.push(()=>Gh(le,"upgradeable",we)),Th.push(()=>Gh(le,"namespacePrefix",Ce));let Se={errors:e[1]};return void 0!==e[0].info&&(Se.info=e[0].info),me=new mx({props:Se}),Th.push(()=>Gh(me,"info",Ee)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("div"),o=dh("label"),a=dh("span"),a.textContent="Name",s=fh(),c=dh("input"),l=fh(),u=dh("label"),d=dh("span"),d.textContent="Symbol",p=fh(),m=dh("input"),f=fh(),h=dh("label"),g=dh("span"),v=mh("Base URI\n "),Kh(b.$$.fragment),$=fh(),y=dh("input"),k=fh(),_=dh("section"),x=dh("h1"),x.textContent="Features",w=fh(),C=dh("div"),I=dh("label"),E=dh("input"),S=mh("\n Mintable\n "),Kh(z.$$.fragment),O=fh(),A=dh("label"),T=dh("input"),P=mh("\n Auto Increment Ids\n "),Kh(U.$$.fragment),R=fh(),N=dh("label"),j=dh("input"),D=mh("\n Burnable\n "),Kh(M.$$.fragment),Z=fh(),L=dh("label"),B=dh("input"),q=mh("\n Pausable\n "),Kh(F.$$.fragment),H=fh(),V=dh("label"),W=dh("input"),J=mh("\n Enumerable\n "),Kh(G.$$.fragment),K=fh(),X=dh("label"),Y=dh("input"),Q=mh("\n URI Storage\n "),Kh(ee.$$.fragment),te=fh(),Kh(ne.$$.fragment),re=fh(),ke&&ke.c(),oe=fh(),Kh(ae.$$.fragment),ce=fh(),Kh(le.$$.fragment),pe=fh(),Kh(me.$$.fragment),vh(o,"class","labeled-input"),vh(u,"class","labeled-input"),vh(r,"class","grid grid-cols-[2fr,1fr] gap-2"),vh(g,"class","flex justify-between pr-2"),vh(y,"placeholder","https://..."),vh(h,"class","labeled-input"),vh(t,"class","controls-section"),vh(E,"type","checkbox"),xh(I,"checked",e[0].mintable),vh(T,"type","checkbox"),vh(A,"class","subcontrol"),xh(A,"checked",e[0].incremental),vh(j,"type","checkbox"),xh(N,"checked",e[0].burnable),vh(B,"type","checkbox"),xh(L,"checked",e[0].pausable),vh(W,"type","checkbox"),xh(V,"checked",e[0].enumerable),vh(Y,"type","checkbox"),xh(X,"checked",e[0].uriStorage),vh(C,"class","checkbox-group"),vh(_,"class","controls-section")},m(ie,se){lh(ie,t,se),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),sh(o,s),sh(o,c),kh(c,e[0].name),sh(r,l),sh(r,u),sh(u,d),sh(u,p),sh(u,m),kh(m,e[0].symbol),sh(t,f),sh(t,h),sh(h,g),sh(g,v),Xh(b,g,null),sh(h,$),sh(h,y),kh(y,e[0].baseUri),lh(ie,k,se),lh(ie,_,se),sh(_,x),sh(_,w),sh(_,C),sh(C,I),sh(I,E),E.checked=e[0].mintable,sh(I,S),Xh(z,I,null),sh(C,O),sh(C,A),sh(A,T),T.checked=e[0].incremental,sh(A,P),Xh(U,A,null),e[18](A),sh(C,R),sh(C,N),sh(N,j),j.checked=e[0].burnable,sh(N,D),Xh(M,N,null),sh(C,Z),sh(C,L),sh(L,B),B.checked=e[0].pausable,sh(L,q),Xh(F,L,null),sh(C,H),sh(C,V),sh(V,W),W.checked=e[0].enumerable,sh(V,J),Xh(G,V,null),sh(C,K),sh(C,X),sh(X,Y),Y.checked=e[0].uriStorage,sh(X,Q),Xh(ee,X,null),lh(ie,te,se),Xh(ne,ie,se),lh(ie,re,se),ke&&ke.m(ie,se),lh(ie,oe,se),Xh(ae,ie,se),lh(ie,ce,se),Xh(le,ie,se),lh(ie,pe,se),Xh(me,ie,se),he=!0,ge||(ve=[gh(c,"input",e[13]),gh(m,"input",e[14]),gh(y,"input",e[15]),gh(E,"change",e[16]),gh(T,"change",e[17]),gh(j,"change",e[19]),gh(B,"change",e[20]),gh(W,"change",e[21]),gh(Y,"change",e[22])],ge=!0)},p(e,t){1&t[0]&&c.value!==e[0].name&&kh(c,e[0].name),1&t[0]&&m.value!==e[0].symbol&&kh(m,e[0].symbol);const n={};16&t[1]&&(n.$$scope={dirty:t,ctx:e}),b.$set(n),1&t[0]&&y.value!==e[0].baseUri&&kh(y,e[0].baseUri),1&t[0]&&(E.checked=e[0].mintable);const i={};16&t[1]&&(i.$$scope={dirty:t,ctx:e}),z.$set(i),(!he||1&t[0])&&xh(I,"checked",e[0].mintable),1&t[0]&&(T.checked=e[0].incremental);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),U.$set(r),(!he||1&t[0])&&xh(A,"checked",e[0].incremental),1&t[0]&&(j.checked=e[0].burnable);const o={};16&t[1]&&(o.$$scope={dirty:t,ctx:e}),M.$set(o),(!he||1&t[0])&&xh(N,"checked",e[0].burnable),1&t[0]&&(B.checked=e[0].pausable);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),F.$set(a),(!he||1&t[0])&&xh(L,"checked",e[0].pausable),1&t[0]&&(W.checked=e[0].enumerable);const s={};16&t[1]&&(s.$$scope={dirty:t,ctx:e}),G.$set(s),(!he||1&t[0])&&xh(V,"checked",e[0].enumerable),1&t[0]&&(Y.checked=e[0].uriStorage);const l={};16&t[1]&&(l.$$scope={dirty:t,ctx:e}),ee.$set(l),(!he||1&t[0])&&xh(X,"checked",e[0].uriStorage);const u={};1&t[0]|16&t[1]&&(u.$$scope={dirty:t,ctx:e}),!ie&&1&t[0]&&(ie=!0,u.value=e[0].votes,Dh(()=>ie=!1)),ne.$set(u),4&t[0]&&(be=!e[2]?.includes("crossChainBridging")),be?ke?(ke.p(e,t),4&t[0]&&Wh(ke,1)):(ke=rw(e),ke.c(),Wh(ke,1),ke.m(oe.parentNode,oe)):ke&&(Hh(),Jh(ke,1,1,()=>{ke=null}),Vh());const d={};64&t[0]&&(d.required=e[6]),!se&&1&t[0]&&(se=!0,d.access=e[0].access,Dh(()=>se=!1)),ae.$set(d);const p={};1&t[0]&&(p.namespaceRequired=!1!==e[0].upgradeable&&e[0].mintable&&e[0].incremental),2&t[0]&&(p.errors=e[1]),!ue&&1&t[0]&&(ue=!0,p.upgradeable=e[0].upgradeable,Dh(()=>ue=!1)),!de&&1&t[0]&&(de=!0,p.namespacePrefix=e[0].namespacePrefix,Dh(()=>de=!1)),le.$set(p);const f={};2&t[0]&&(f.errors=e[1]),!fe&&1&t[0]&&(fe=!0,f.info=e[0].info,Dh(()=>fe=!1)),me.$set(f)},i(e){he||(Wh(b.$$.fragment,e),Wh(z.$$.fragment,e),Wh(U.$$.fragment,e),Wh(M.$$.fragment,e),Wh(F.$$.fragment,e),Wh(G.$$.fragment,e),Wh(ee.$$.fragment,e),Wh(ne.$$.fragment,e),Wh(ke),Wh(ae.$$.fragment,e),Wh(le.$$.fragment,e),Wh(me.$$.fragment,e),he=!0)},o(e){Jh(b.$$.fragment,e),Jh(z.$$.fragment,e),Jh(U.$$.fragment,e),Jh(M.$$.fragment,e),Jh(F.$$.fragment,e),Jh(G.$$.fragment,e),Jh(ee.$$.fragment,e),Jh(ne.$$.fragment,e),Jh(ke),Jh(ae.$$.fragment,e),Jh(le.$$.fragment,e),Jh(me.$$.fragment,e),he=!1},d(n){n&&uh(t),Yh(b),n&&uh(k),n&&uh(_),Yh(z),Yh(U),e[18](null),Yh(M),Yh(F),Yh(G),Yh(ee),n&&uh(te),Yh(ne,n),n&&uh(re),ke&&ke.d(n),n&&uh(oe),Yh(ae,n),n&&uh(ce),Yh(le,n),n&&uh(pe),Yh(me,n),ge=!1,Kf(ve)}}}function uw(e,t,n){let i,r,o,a,s,c,{opts:l={kind:"ERC721",...N$.defaults,info:{...Wv}}}=t,{errors:u}=t,{omitFeatures:d}=t,p=l.mintable,m=l.incremental;zh(()=>{n(9,s=a_(o,Wx)),n(10,c=a_(a,Wx))});let f=l.incremental,h=l.crossChainBridging;return e.$$set=e=>{"opts"in e&&n(0,l=e.opts),"errors"in e&&n(1,u=e.errors),"omitFeatures"in e&&n(2,d=e.omitFeatures)},e.$$.update=()=>{385&e.$$.dirty[0]&&(p&&!l.mintable&&n(0,l.incremental=!1,l),l.incremental&&!m&&n(0,l.mintable=!0,l),n(7,p=l.mintable),n(8,m=l.incremental)),1&e.$$.dirty[0]&&n(6,i=N$.isAccessControlRequired(l)),7681&e.$$.dirty[0]&&(l.incremental&&"erc7786native"===l.crossChainBridging&&(f?!1===h&&c?.show():s?.show()),n(11,f=l.incremental),n(12,h=l.crossChainBridging)),1&e.$$.dirty[0]&&n(5,r="erc7786native"===l.crossChainBridging)},[l,u,d,o,a,r,i,p,m,s,c,f,h,function(){l.name=this.value,n(0,l),n(7,p),n(8,m)},function(){l.symbol=this.value,n(0,l),n(7,p),n(8,m)},function(){l.baseUri=this.value,n(0,l),n(7,p),n(8,m)},function(){l.mintable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.incremental=this.checked,n(0,l),n(7,p),n(8,m)},function(e){Th[e?"unshift":"push"](()=>{o=e,n(3,o)})},function(){l.burnable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.pausable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.enumerable=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.uriStorage=this.checked,n(0,l),n(7,p),n(8,m)},function(){l.votes=this.__value,n(0,l),n(7,p),n(8,m)},[[],[]],function(){l.votes=this.__value,n(0,l),n(7,p),n(8,m)},function(t){e.$$.not_equal(l.votes,t)&&(l.votes=t,n(0,l),n(7,p),n(8,m))},function(){l.crossChainBridging=this.__value,n(0,l),n(7,p),n(8,m)},function(e){Th[e?"unshift":"push"](()=>{a=e,n(4,a)})},function(){l.crossChainLinkAllowOverride=this.checked,n(0,l),n(7,p),n(8,m)},function(t){e.$$.not_equal(l.crossChainBridging,t)&&(l.crossChainBridging=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.access,t)&&(l.access=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.upgradeable,t)&&(l.upgradeable=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.namespacePrefix,t)&&(l.namespacePrefix=t,n(0,l),n(7,p),n(8,m))},function(t){e.$$.not_equal(l.info,t)&&(l.info=t,n(0,l),n(7,p),n(8,m))}]}function dw(e){let t,n,i;return{c(){t=mh("Location of the metadata. Clients will replace any instance of "),n=mh("{id}"),i=mh(" in this string with the tokenId.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function pw(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function mw(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function fw(e){let t;return{c(){t=mh("Keeps track of total supply of tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function hw(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function gw(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to set a new URI for all token types. Clients will replace any instance of "),n=mh("{id}"),i=mh("\n in the URI with the tokenId.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function vw(e){let t,n,i;function r(t){e[15](t)}let o={label:"Crosschain Bridging",defaultValue:"erc7786native",helpContent:"Adds built-in support to mint and burn tokens for crosschain transfers with registered counterparts.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Crosschain",$$slots:{default:[kw]},$$scope:{ctx:e}};return void 0!==e[0].crossChainBridging&&(o.value=e[0].crossChainBridging),t=new B_({props:o}),Th.push(()=>Gh(t,"value",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,i){const r={};524297&i&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,r.value=e[0].crossChainBridging,Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function bw(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function $w(e){let t,n,i,r,o,a,s,c,l;return a=new y_({props:{$$slots:{default:[yw]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Kh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Xh(a,t,null),s=!0,c||(l=gh(i,"change",e[14]),c=!0)},p(e,t){1&t&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};524288&t&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Wh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Yh(a),c=!1,l()}}}function yw(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function kw(e){let t,n,i,r,o,a,s,c,l,u;o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Crosschain",$$slots:{default:[bw]},$$scope:{ctx:e}}});let d=e[3]&&$w(e);return c=bh(e[13][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n ERC-7786 Native\n "),Kh(o.$$.fragment),a=fh(),d&&d.c(),vh(i,"type","radio"),i.__value="erc7786native",i.value=i.__value,xh(n,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),c.p(i)},m(c,p){lh(c,t,p),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Xh(o,n,null),sh(t,a),d&&d.m(t,null),s=!0,l||(u=gh(i,"change",e[12]),l=!0)},p(e,r){1&r&&(i.checked=i.__value===e[0].crossChainBridging);const a={};524288&r&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!s||1&r)&&xh(n,"checked","erc7786native"===e[0].crossChainBridging),e[3]?d?(d.p(e,r),8&r&&Wh(d,1)):(d=$w(e),d.c(),Wh(d,1),d.m(t,null)):d&&(Hh(),Jh(d,1,1,()=>{d=null}),Vh())},i(e){s||(Wh(o.$$.fragment,e),Wh(d),s=!0)},o(e){Jh(o.$$.fragment,e),Jh(d),s=!1},d(e){e&&uh(t),Yh(o),d&&d.d(),c.r(),l=!1,u()}}}function _w(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie=!e[2]?.includes("crossChainBridging");p=new y_({props:{$$slots:{default:[dw]},$$scope:{ctx:e}}}),x=new y_({props:{$$slots:{default:[pw]},$$scope:{ctx:e}}}),S=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Burnable",$$slots:{default:[mw]},$$scope:{ctx:e}}}),P=new y_({props:{$$slots:{default:[fw]},$$scope:{ctx:e}}}),D=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[hw]},$$scope:{ctx:e}}}),q=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155-_setURI-string-",$$slots:{default:[gw]},$$scope:{ctx:e}}});let re=ie&&vw(e);function oe(t){e[16](t)}let ae={required:e[4]};function se(t){e[17](t)}void 0!==e[0].access&&(ae.access=e[0].access),V=new G_({props:ae}),Th.push(()=>Gh(V,"access",oe));let ce={};function le(t){e[18](t)}void 0!==e[0].upgradeable&&(ce.upgradeable=e[0].upgradeable),G=new ix({props:ce}),Th.push(()=>Gh(G,"upgradeable",se));let ue={errors:e[1]};return void 0!==e[0].info&&(ue.info=e[0].info),Y=new mx({props:ue}),Th.push(()=>Gh(Y,"info",le)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("label"),u=dh("span"),d=mh("URI\n "),Kh(p.$$.fragment),m=fh(),f=dh("input"),h=fh(),g=dh("section"),v=dh("h1"),v.textContent="Features",b=fh(),$=dh("div"),y=dh("label"),k=dh("input"),_=mh("\n Mintable\n "),Kh(x.$$.fragment),w=fh(),C=dh("label"),I=dh("input"),E=mh("\n Burnable\n "),Kh(S.$$.fragment),z=fh(),O=dh("label"),A=dh("input"),T=mh("\n Supply Tracking\n "),Kh(P.$$.fragment),U=fh(),R=dh("label"),N=dh("input"),j=mh("\n Pausable\n "),Kh(D.$$.fragment),M=fh(),Z=dh("label"),L=dh("input"),B=mh("\n Updatable URI\n "),Kh(q.$$.fragment),F=fh(),re&&re.c(),H=fh(),Kh(V.$$.fragment),J=fh(),Kh(G.$$.fragment),X=fh(),Kh(Y.$$.fragment),vh(r,"class","labeled-input"),vh(u,"class","flex justify-between pr-2"),vh(f,"placeholder","https://..."),vh(l,"class","labeled-input"),vh(t,"class","controls-section"),vh(k,"type","checkbox"),xh(y,"checked",e[0].mintable),vh(I,"type","checkbox"),xh(C,"checked",e[0].burnable),vh(A,"type","checkbox"),xh(O,"checked",e[0].supply),vh(N,"type","checkbox"),xh(R,"checked",e[0].pausable),vh(L,"type","checkbox"),xh(Z,"checked",e[0].updatableUri),vh($,"class","checkbox-group"),vh(g,"class","controls-section")},m(W,K){lh(W,t,K),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),sh(t,c),sh(t,l),sh(l,u),sh(u,d),Xh(p,u,null),sh(l,m),sh(l,f),kh(f,e[0].uri),lh(W,h,K),lh(W,g,K),sh(g,v),sh(g,b),sh(g,$),sh($,y),sh(y,k),k.checked=e[0].mintable,sh(y,_),Xh(x,y,null),sh($,w),sh($,C),sh(C,I),I.checked=e[0].burnable,sh(C,E),Xh(S,C,null),sh($,z),sh($,O),sh(O,A),A.checked=e[0].supply,sh(O,T),Xh(P,O,null),sh($,U),sh($,R),sh(R,N),N.checked=e[0].pausable,sh(R,j),Xh(D,R,null),sh($,M),sh($,Z),sh(Z,L),L.checked=e[0].updatableUri,sh(Z,B),Xh(q,Z,null),lh(W,F,K),re&&re.m(W,K),lh(W,H,K),Xh(V,W,K),lh(W,J,K),Xh(G,W,K),lh(W,X,K),Xh(Y,W,K),ee=!0,te||(ne=[gh(s,"input",e[5]),gh(f,"input",e[6]),gh(k,"change",e[7]),gh(I,"change",e[8]),gh(A,"change",e[9]),gh(N,"change",e[10]),gh(L,"change",e[11])],te=!0)},p(e,[t]){1&t&&s.value!==e[0].name&&kh(s,e[0].name);const n={};524288&t&&(n.$$scope={dirty:t,ctx:e}),p.$set(n),1&t&&f.value!==e[0].uri&&kh(f,e[0].uri),1&t&&(k.checked=e[0].mintable);const i={};524288&t&&(i.$$scope={dirty:t,ctx:e}),x.$set(i),(!ee||1&t)&&xh(y,"checked",e[0].mintable),1&t&&(I.checked=e[0].burnable);const r={};524288&t&&(r.$$scope={dirty:t,ctx:e}),S.$set(r),(!ee||1&t)&&xh(C,"checked",e[0].burnable),1&t&&(A.checked=e[0].supply);const o={};524288&t&&(o.$$scope={dirty:t,ctx:e}),P.$set(o),(!ee||1&t)&&xh(O,"checked",e[0].supply),1&t&&(N.checked=e[0].pausable);const a={};524288&t&&(a.$$scope={dirty:t,ctx:e}),D.$set(a),(!ee||1&t)&&xh(R,"checked",e[0].pausable),1&t&&(L.checked=e[0].updatableUri);const c={};524288&t&&(c.$$scope={dirty:t,ctx:e}),q.$set(c),(!ee||1&t)&&xh(Z,"checked",e[0].updatableUri),4&t&&(ie=!e[2]?.includes("crossChainBridging")),ie?re?(re.p(e,t),4&t&&Wh(re,1)):(re=vw(e),re.c(),Wh(re,1),re.m(H.parentNode,H)):re&&(Hh(),Jh(re,1,1,()=>{re=null}),Vh());const l={};16&t&&(l.required=e[4]),!W&&1&t&&(W=!0,l.access=e[0].access,Dh(()=>W=!1)),V.$set(l);const u={};!K&&1&t&&(K=!0,u.upgradeable=e[0].upgradeable,Dh(()=>K=!1)),G.$set(u);const d={};2&t&&(d.errors=e[1]),!Q&&1&t&&(Q=!0,d.info=e[0].info,Dh(()=>Q=!1)),Y.$set(d)},i(e){ee||(Wh(p.$$.fragment,e),Wh(x.$$.fragment,e),Wh(S.$$.fragment,e),Wh(P.$$.fragment,e),Wh(D.$$.fragment,e),Wh(q.$$.fragment,e),Wh(re),Wh(V.$$.fragment,e),Wh(G.$$.fragment,e),Wh(Y.$$.fragment,e),ee=!0)},o(e){Jh(p.$$.fragment,e),Jh(x.$$.fragment,e),Jh(S.$$.fragment,e),Jh(P.$$.fragment,e),Jh(D.$$.fragment,e),Jh(q.$$.fragment,e),Jh(re),Jh(V.$$.fragment,e),Jh(G.$$.fragment,e),Jh(Y.$$.fragment,e),ee=!1},d(e){e&&uh(t),Yh(p),e&&uh(h),e&&uh(g),Yh(x),Yh(S),Yh(P),Yh(D),Yh(q),e&&uh(F),re&&re.d(e),e&&uh(H),Yh(V,e),e&&uh(J),Yh(G,e),e&&uh(X),Yh(Y,e),te=!1,Kf(ne)}}}function xw(e,t,n){let i,r,{opts:o={kind:"ERC1155",...j$.defaults,info:{...Wv}}}=t,{errors:a}=t,{omitFeatures:s}=t;return e.$$set=e=>{"opts"in e&&n(0,o=e.opts),"errors"in e&&n(1,a=e.errors),"omitFeatures"in e&&n(2,s=e.omitFeatures)},e.$$.update=()=>{1&e.$$.dirty&&n(4,i=j$.isAccessControlRequired(o)),1&e.$$.dirty&&n(3,r="erc7786native"===o.crossChainBridging)},[o,a,s,r,i,function(){o.name=this.value,n(0,o)},function(){o.uri=this.value,n(0,o)},function(){o.mintable=this.checked,n(0,o)},function(){o.burnable=this.checked,n(0,o)},function(){o.supply=this.checked,n(0,o)},function(){o.pausable=this.checked,n(0,o)},function(){o.updatableUri=this.checked,n(0,o)},function(){o.crossChainBridging=this.__value,n(0,o)},[[]],function(){o.crossChainLinkAllowOverride=this.checked,n(0,o)},function(t){e.$$.not_equal(o.crossChainBridging,t)&&(o.crossChainBridging=t,n(0,o))},function(t){e.$$.not_equal(o.access,t)&&(o.access=t,n(0,o))},function(t){e.$$.not_equal(o.upgradeable,t)&&(o.upgradeable=t,n(0,o))},function(t){e.$$.not_equal(o.info,t)&&(o.info=t,n(0,o))}]}function ww(e){let t;return{c(){t=mh("The number of decimals used to represent token amounts. Defaults to 18.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Cw(e){let t;return{c(){t=mh("Create an initial amount of tokens for the deployer.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Iw(e){let t,n,i,r,o,a,s,c,l,u;return s=new y_({props:{$$slots:{default:[Ew]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=mh(" Chain ID:\n "),r=dh("input"),a=fh(),Kh(s.$$.fragment),vh(r,"type","number"),vh(r,"placeholder",""),vh(r,"pattern",Kb.source),vh(r,"class","input-inline"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(d,p){lh(d,t,p),sh(t,n),sh(n,i),sh(n,r),kh(r,e[0].premintChainId),sh(t,a),Xh(s,t,null),c=!0,l||(u=[gh(r,"input",e[20]),ah(gx.call(null,r)),ah(o=C_.call(null,r,e[2]?.premintChainId))],l=!0)},p(e,t){1&t[0]&&$h(r.value)!==e[0].premintChainId&&kh(r,e[0].premintChainId),o&&Xf(o.update)&&4&t[0]&&o.update.call(null,e[2]?.premintChainId);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){c||(Wh(s.$$.fragment,e),c=!0)},o(e){Jh(s.$$.fragment,e),c=!1},d(e){e&&uh(t),Yh(s),l=!1,Kf(u)}}}function Ew(e){let t;return{c(){t=mh("Chain ID of the network on which to premint tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Sw(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function zw(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ow(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Aw(e){let t;return{c(){t=mh("Supports code execution after transfers and approvals on recipient contracts in a single transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Tw(e){let t;return{c(){t=mh("Without paying gas, token holders will be able to allow third parties to transfer from their account.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Pw(e){let t;return{c(){t=mh("Built-in flash loans. Lend tokens without requiring collateral as long as they're returned in the same\n transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Uw(e){let t;return{c(){t=mh("Authorized accounts can freeze and unfreeze accounts for regulatory or security purposes.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Rw(e){let t,n,i,r,o,a,s,c,l,u,d,p;return c=new y_({props:{link:"https://docs.openzeppelin.com/chainlink-ccip-ace",$$slots:{default:[Nw]},$$scope:{ctx:e}}}),{c(){t=dh("section"),n=dh("h1"),n.textContent="Policy Engine",i=fh(),r=dh("div"),o=dh("label"),a=dh("input"),s=mh("\n Chainlink ACE\n "),Kh(c.$$.fragment),vh(a,"type","checkbox"),xh(o,"checked",e[0].chainlinkAce),vh(r,"class","checkbox-group"),vh(t,"class","controls-section")},m(m,f){lh(m,t,f),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),a.checked=e[0].chainlinkAce,sh(o,s),Xh(c,o,null),e[29](o),u=!0,d||(p=[gh(a,"change",e[28]),ah(l=C_.call(null,o,e[2]?.chainlinkAce))],d=!0)},p(e,t){1&t[0]&&(a.checked=e[0].chainlinkAce);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),c.$set(n),l&&Xf(l.update)&&4&t[0]&&l.update.call(null,e[2]?.chainlinkAce),(!u||1&t[0])&&xh(o,"checked",e[0].chainlinkAce)},i(e){u||(Wh(c.$$.fragment,e),u=!0)},o(e){Jh(c.$$.fragment,e),u=!1},d(n){n&&uh(t),Yh(c),e[29](null),d=!1,Kf(p)}}}function Nw(e){let t;return{c(){t=mh("Chainlink Automated Compliance Engine (ACE) checks token operations against policies configured in a Policy\n Engine contract. Provide a deployed Policy Engine and configure its policies before using the token. Engine\n administration is separate from token permissions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function jw(e){let t;return{c(){t=mh("Allows a list of addresses to transfer tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Dw(e){let t;return{c(){t=mh("Blocks a list of addresses from transferring tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Mw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{$$slots:{default:[jw]},$$scope:{ctx:e}}}),u=new y_({props:{$$slots:{default:[Dw]},$$scope:{ctx:e}}}),p=bh(e[31][2]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Allowlist*\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Blocklist*\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="allowlist",i.value=i.__value,xh(n,"checked","allowlist"===e[0].restrictions),vh(c,"type","radio"),c.__value="blocklist",c.value=c.__value,xh(s,"checked","blocklist"===e[0].restrictions),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].restrictions,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].restrictions,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[30]),gh(c,"change",e[32])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].restrictions);const r={};32768&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","allowlist"===e[0].restrictions),1&t[0]&&(c.checked=c.__value===e[0].restrictions);const a={};32768&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","blocklist"===e[0].restrictions)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function Zw(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Lw(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Bw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[Zw]},$$scope:{ctx:e}}}),u=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[Lw]},$$scope:{ctx:e}}}),p=bh(e[31][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[34]),gh(c,"change",e[35])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};32768&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};32768&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function qw(e){let t;return{c(){t=mh("Uses custom bridge contract(s) as authorized token bridge(s).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Fw(e){let t,n,i,r,o,a,s,c;return r=new y_({props:{link:"https://docs.openzeppelin.com/chainlink-ccip-ace",$$slots:{default:[Hw]},$$scope:{ctx:e}}}),a=bh(e[31][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n Chainlink CCIP\n "),Kh(r.$$.fragment),vh(n,"type","radio"),n.__value="chainlink-ccip",n.value=n.__value,xh(t,"checked","chainlink-ccip"===e[0].crossChainBridging),a.p(n)},m(a,l){lh(a,t,l),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Xh(r,t,null),o=!0,s||(c=gh(n,"change",e[38]),s=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const a={};32768&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked","chainlink-ccip"===e[0].crossChainBridging)},i(e){o||(Wh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Yh(r),a.r(),s=!1,c()}}}function Hw(e){let t;return{c(){t=mh("Chainlink Cross-Chain Interoperability Protocol (CCIP) connects the token to a Chainlink token pool.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Vw(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Ww(e){let t,n,i,r,o,a,s,c,l;return a=new y_({props:{$$slots:{default:[Jw]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Kh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Xh(a,t,null),s=!0,c||(l=gh(i,"change",e[40]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Wh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Yh(a),c=!1,l()}}}function Jw(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function Gw(e){let t,n,i,r,o,a,s,c,l,u;return r=new hx({}),a=new y_({props:{link:"https://docs.optimism.io/stack/interop/superchain-erc20",$$slots:{default:[Kw]},$$scope:{ctx:e}}}),c=bh(e[31][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n SuperchainERC20 "),Kh(r.$$.fragment),o=fh(),Kh(a.$$.fragment),vh(n,"type","radio"),n.__value="superchain",n.value=n.__value,xh(t,"checked","superchain"===e[0].crossChainBridging),c.p(n)},m(c,d){lh(c,t,d),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Xh(r,t,null),sh(t,o),Xh(a,t,null),e[42](t),s=!0,l||(u=gh(n,"change",e[41]),l=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const r={};32768&i[1]&&(r.$$scope={dirty:i,ctx:e}),a.$set(r),(!s||1&i[0])&&xh(t,"checked","superchain"===e[0].crossChainBridging)},i(e){s||(Wh(r.$$.fragment,e),Wh(a.$$.fragment,e),s=!0)},o(e){Jh(r.$$.fragment,e),Jh(a.$$.fragment,e),s=!1},d(n){n&&uh(t),Yh(r),Yh(a),e[42](null),c.r(),l=!1,u()}}}function Kw(e){let t,n,i;return{c(){t=mh("Uses the predeployed "),n=dh("code"),n.textContent="SuperchainTokenBridge",i=mh(" contract as the authorized token bridge. Only available\n on chains in the Superchain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function Xw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b=!e[1]?.includes("ccip"),$=!e[1]?.includes("superchain");o=new y_({props:{$$slots:{default:[qw]},$$scope:{ctx:e}}});let y=b&&Fw(e);d=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Crosschain",$$slots:{default:[Vw]},$$scope:{ctx:e}}});let k=e[6]&&Ww(e),_=$&&Gw(e);return h=bh(e[31][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Custom\n "),Kh(o.$$.fragment),a=fh(),y&&y.c(),s=fh(),c=dh("label"),l=dh("input"),u=mh("\n ERC-7786 Native\n "),Kh(d.$$.fragment),p=fh(),k&&k.c(),m=fh(),_&&_.c(),vh(i,"type","radio"),i.__value="custom",i.value=i.__value,xh(n,"checked","custom"===e[0].crossChainBridging),vh(l,"type","radio"),l.__value="erc7786native",l.value=l.__value,xh(c,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),h.p(i,l)},m(h,b){lh(h,t,b),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Xh(o,n,null),sh(t,a),y&&y.m(t,null),sh(t,s),sh(t,c),sh(c,l),l.checked=l.__value===e[0].crossChainBridging,sh(c,u),Xh(d,c,null),sh(t,p),k&&k.m(t,null),sh(t,m),_&&_.m(t,null),f=!0,g||(v=[gh(i,"change",e[37]),gh(l,"change",e[39])],g=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};32768&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!f||1&r[0])&&xh(n,"checked","custom"===e[0].crossChainBridging),2&r[0]&&(b=!e[1]?.includes("ccip")),b?y?(y.p(e,r),2&r[0]&&Wh(y,1)):(y=Fw(e),y.c(),Wh(y,1),y.m(t,s)):y&&(Hh(),Jh(y,1,1,()=>{y=null}),Vh()),1&r[0]&&(l.checked=l.__value===e[0].crossChainBridging);const u={};32768&r[1]&&(u.$$scope={dirty:r,ctx:e}),d.$set(u),(!f||1&r[0])&&xh(c,"checked","erc7786native"===e[0].crossChainBridging),e[6]?k?(k.p(e,r),64&r[0]&&Wh(k,1)):(k=Ww(e),k.c(),Wh(k,1),k.m(t,m)):k&&(Hh(),Jh(k,1,1,()=>{k=null}),Vh()),2&r[0]&&($=!e[1]?.includes("superchain")),$?_?(_.p(e,r),2&r[0]&&Wh(_,1)):(_=Gw(e),_.c(),Wh(_,1),_.m(t,null)):_&&(Hh(),Jh(_,1,1,()=>{_=null}),Vh())},i(e){f||(Wh(o.$$.fragment,e),Wh(y),Wh(d.$$.fragment,e),Wh(k),Wh(_),f=!0)},o(e){Jh(o.$$.fragment,e),Jh(y),Jh(d.$$.fragment,e),Jh(k),Jh(_),f=!1},d(e){e&&uh(t),Yh(o),y&&y.d(),Yh(d),k&&k.d(),_&&_.d(),h.r(),g=!1,Kf(v)}}}function Yw(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,be,$e,ye,ke,_e,xe,we,Ce,Ie,Ee,Se,ze,Oe,Ae,Te,Pe,Ue,Re,Ne,je,De,Me,Ze,Le=!e[1]?.includes("chainlinkAce");y=new y_({props:{$$slots:{default:[ww]},$$scope:{ctx:e}}}),S=new y_({props:{$$slots:{default:[Cw]},$$scope:{ctx:e}}});let Be=e[5]&&Iw(e);B=new y_({props:{$$slots:{default:[Sw]},$$scope:{ctx:e}}}),W=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Burnable",$$slots:{default:[zw]},$$scope:{ctx:e}}}),Q=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[Ow]},$$scope:{ctx:e}}}),re=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC1363",$$slots:{default:[Aw]},$$scope:{ctx:e}}}),ue=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Permit",$$slots:{default:[Tw]},$$scope:{ctx:e}}}),he=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20FlashMint",$$slots:{default:[Pw]},$$scope:{ctx:e}}}),ke=new y_({props:{$$slots:{default:[Uw]},$$scope:{ctx:e}}});let qe=Le&&Rw(e);function Fe(t){e[33](t)}let He={label:"Restrictions*",defaultValue:"allowlist",helpContent:"Restricts certain users from transferring tokens, either via allowing or blocking them.",$$slots:{default:[Mw]},$$scope:{ctx:e}};function Ve(t){e[36](t)}void 0!==e[0].restrictions&&(He.value=e[0].restrictions),we=new B_({props:He}),Th.push(()=>Gh(we,"value",Fe));let We={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[Bw]},$$scope:{ctx:e}};function Je(t){e[43](t)}void 0!==e[0].votes&&(We.value=e[0].votes),Ee=new B_({props:We}),Th.push(()=>Gh(Ee,"value",Ve));let Ge={label:"Crosschain Bridging",error:e[2]?.crossChainBridging,defaultValue:"custom",helpContent:"Allows authorized bridge contracts to mint and burn tokens for crosschain transfers.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[Xw]},$$scope:{ctx:e}};function Ke(t){e[44](t)}void 0!==e[0].crossChainBridging&&(Ge.value=e[0].crossChainBridging),Oe=new B_({props:Ge}),Th.push(()=>Gh(Oe,"value",Je));let Xe={required:e[7],error:e[2]?.access,defaultValueWhenEnabled:"chainlink-ccip"===e[0].crossChainBridging?"roles":"ownable",disableOwnable:"chainlink-ccip"===e[0].crossChainBridging,disableManaged:"chainlink-ccip"===e[0].crossChainBridging};function Ye(t){e[45](t)}void 0!==e[0].access&&(Xe.access=e[0].access),Pe=new G_({props:Xe}),Th.push(()=>Gh(Pe,"access",Ke));let Qe={errors:e[2],aceEnabled:!0===e[0].chainlinkAce};return void 0!==e[0].info&&(Qe.info=e[0].info),Ne=new mx({props:Qe}),Th.push(()=>Gh(Ne,"info",Ye)),{c(){t=dh("section"),t.innerHTML='<div class="text-sm text-gray-500"><strong>* Experimental:</strong> \n <span class="italic">Some of the following features are not audited and are subject to change</span></div>',n=fh(),i=dh("section"),r=dh("h1"),r.textContent="Settings",o=fh(),a=dh("div"),s=dh("label"),c=dh("span"),c.textContent="Name",l=fh(),u=dh("input"),d=fh(),p=dh("label"),m=dh("span"),m.textContent="Symbol",f=fh(),h=dh("input"),g=fh(),v=dh("label"),b=dh("span"),$=mh("Decimals\n "),Kh(y.$$.fragment),k=fh(),_=dh("input"),w=fh(),C=dh("label"),I=dh("span"),E=mh("Premint\n "),Kh(S.$$.fragment),z=fh(),O=dh("input"),T=fh(),Be&&Be.c(),P=fh(),U=dh("section"),R=dh("h1"),R.textContent="Features",N=fh(),j=dh("div"),D=dh("label"),M=dh("input"),L=mh("\n Mintable\n "),Kh(B.$$.fragment),q=fh(),F=dh("label"),H=dh("input"),V=mh("\n Burnable\n "),Kh(W.$$.fragment),G=fh(),K=dh("label"),X=dh("input"),Y=mh("\n Pausable\n "),Kh(Q.$$.fragment),ee=fh(),te=dh("label"),ne=dh("input"),ie=mh("\n Callback\n "),Kh(re.$$.fragment),ae=fh(),se=dh("label"),ce=dh("input"),le=mh("\n Permit\n "),Kh(ue.$$.fragment),de=fh(),pe=dh("label"),me=dh("input"),fe=mh("\n Flash Minting\n "),Kh(he.$$.fragment),ve=fh(),be=dh("label"),$e=dh("input"),ye=mh("\n Freezable*\n "),Kh(ke.$$.fragment),_e=fh(),qe&&qe.c(),xe=fh(),Kh(we.$$.fragment),Ie=fh(),Kh(Ee.$$.fragment),ze=fh(),Kh(Oe.$$.fragment),Te=fh(),Kh(Pe.$$.fragment),Re=fh(),Kh(Ne.$$.fragment),vh(t,"class","controls-section"),vh(s,"class","labeled-input"),vh(p,"class","labeled-input"),vh(a,"class","grid grid-cols-[2fr,1fr] gap-2"),vh(b,"class","flex justify-between pr-2"),vh(v,"class","labeled-input"),vh(I,"class","flex justify-between pr-2"),vh(O,"placeholder","0"),vh(O,"pattern",Gb.source),vh(C,"class","labeled-input"),vh(i,"class","controls-section"),vh(M,"type","checkbox"),M.disabled=Z="chainlink-ccip"===e[0].crossChainBridging,xh(D,"checked",e[0].mintable),vh(H,"type","checkbox"),xh(F,"checked",e[0].burnable),vh(X,"type","checkbox"),xh(K,"checked",e[0].pausable),vh(ne,"type","checkbox"),xh(te,"checked",e[0].callback),vh(ce,"type","checkbox"),xh(se,"checked",e[0].permit||e[0].votes),vh(me,"type","checkbox"),xh(pe,"checked",e[0].flashmint),vh($e,"type","checkbox"),xh(be,"checked",e[0].freezable),vh(j,"class","checkbox-group"),vh(U,"class","controls-section")},m(Z,Ce){lh(Z,t,Ce),lh(Z,n,Ce),lh(Z,i,Ce),sh(i,r),sh(i,o),sh(i,a),sh(a,s),sh(s,c),sh(s,l),sh(s,u),kh(u,e[0].name),sh(a,d),sh(a,p),sh(p,m),sh(p,f),sh(p,h),kh(h,e[0].symbol),sh(i,g),sh(i,v),sh(v,b),sh(b,$),Xh(y,b,null),sh(v,k),sh(v,_),kh(_,e[0].decimals),sh(i,w),sh(i,C),sh(C,I),sh(I,E),Xh(S,I,null),sh(C,z),sh(C,O),kh(O,e[0].premint),sh(i,T),Be&&Be.m(i,null),lh(Z,P,Ce),lh(Z,U,Ce),sh(U,R),sh(U,N),sh(U,j),sh(j,D),sh(D,M),M.checked=e[0].mintable,sh(D,L),Xh(B,D,null),sh(j,q),sh(j,F),sh(F,H),H.checked=e[0].burnable,sh(F,V),Xh(W,F,null),sh(j,G),sh(j,K),sh(K,X),X.checked=e[0].pausable,sh(K,Y),Xh(Q,K,null),sh(j,ee),sh(j,te),sh(te,ne),ne.checked=e[0].callback,sh(te,ie),Xh(re,te,null),sh(j,ae),sh(j,se),sh(se,ce),ce.checked=e[0].permit,sh(se,le),Xh(ue,se,null),sh(j,de),sh(j,pe),sh(pe,me),me.checked=e[0].flashmint,sh(pe,fe),Xh(he,pe,null),sh(j,ve),sh(j,be),sh(be,$e),$e.checked=e[0].freezable,sh(be,ye),Xh(ke,be,null),lh(Z,_e,Ce),qe&&qe.m(Z,Ce),lh(Z,xe,Ce),Xh(we,Z,Ce),lh(Z,Ie,Ce),Xh(Ee,Z,Ce),lh(Z,ze,Ce),Xh(Oe,Z,Ce),lh(Z,Te,Ce),Xh(Pe,Z,Ce),lh(Z,Re,Ce),Xh(Ne,Z,Ce),De=!0,Me||(Ze=[gh(u,"input",e[16]),gh(h,"input",e[17]),gh(_,"input",e[18]),ah(x=C_.call(null,_,e[2]?.decimals)),gh(O,"input",e[19]),ah(A=C_.call(null,O,e[2]?.premint)),gh(M,"change",e[21]),gh(H,"change",e[22]),ah(J=C_.call(null,F,e[2]?.burnable)),gh(X,"change",e[23]),gh(ne,"change",e[24]),ah(oe=C_.call(null,te,e[2]?.callback)),gh(ce,"change",e[25]),gh(me,"change",e[26]),ah(ge=C_.call(null,pe,e[2]?.flashmint)),gh($e,"change",e[27])],Me=!0)},p(e,t){1&t[0]&&u.value!==e[0].name&&kh(u,e[0].name),1&t[0]&&h.value!==e[0].symbol&&kh(h,e[0].symbol);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),y.$set(n),1&t[0]&&_.value!==e[0].decimals&&kh(_,e[0].decimals),x&&Xf(x.update)&&4&t[0]&&x.update.call(null,e[2]?.decimals);const r={};32768&t[1]&&(r.$$scope={dirty:t,ctx:e}),S.$set(r),1&t[0]&&O.value!==e[0].premint&&kh(O,e[0].premint),A&&Xf(A.update)&&4&t[0]&&A.update.call(null,e[2]?.premint),e[5]?Be?(Be.p(e,t),32&t[0]&&Wh(Be,1)):(Be=Iw(e),Be.c(),Wh(Be,1),Be.m(i,null)):Be&&(Hh(),Jh(Be,1,1,()=>{Be=null}),Vh()),(!De||1&t[0]&&Z!==(Z="chainlink-ccip"===e[0].crossChainBridging))&&(M.disabled=Z),1&t[0]&&(M.checked=e[0].mintable);const o={};32768&t[1]&&(o.$$scope={dirty:t,ctx:e}),B.$set(o),(!De||1&t[0])&&xh(D,"checked",e[0].mintable),1&t[0]&&(H.checked=e[0].burnable);const a={};32768&t[1]&&(a.$$scope={dirty:t,ctx:e}),W.$set(a),J&&Xf(J.update)&&4&t[0]&&J.update.call(null,e[2]?.burnable),(!De||1&t[0])&&xh(F,"checked",e[0].burnable),1&t[0]&&(X.checked=e[0].pausable);const s={};32768&t[1]&&(s.$$scope={dirty:t,ctx:e}),Q.$set(s),(!De||1&t[0])&&xh(K,"checked",e[0].pausable),1&t[0]&&(ne.checked=e[0].callback);const c={};32768&t[1]&&(c.$$scope={dirty:t,ctx:e}),re.$set(c),oe&&Xf(oe.update)&&4&t[0]&&oe.update.call(null,e[2]?.callback),(!De||1&t[0])&&xh(te,"checked",e[0].callback),1&t[0]&&(ce.checked=e[0].permit);const l={};32768&t[1]&&(l.$$scope={dirty:t,ctx:e}),ue.$set(l),(!De||1&t[0])&&xh(se,"checked",e[0].permit||e[0].votes),1&t[0]&&(me.checked=e[0].flashmint);const d={};32768&t[1]&&(d.$$scope={dirty:t,ctx:e}),he.$set(d),ge&&Xf(ge.update)&&4&t[0]&&ge.update.call(null,e[2]?.flashmint),(!De||1&t[0])&&xh(pe,"checked",e[0].flashmint),1&t[0]&&($e.checked=e[0].freezable);const p={};32768&t[1]&&(p.$$scope={dirty:t,ctx:e}),ke.$set(p),(!De||1&t[0])&&xh(be,"checked",e[0].freezable),2&t[0]&&(Le=!e[1]?.includes("chainlinkAce")),Le?qe?(qe.p(e,t),2&t[0]&&Wh(qe,1)):(qe=Rw(e),qe.c(),Wh(qe,1),qe.m(xe.parentNode,xe)):qe&&(Hh(),Jh(qe,1,1,()=>{qe=null}),Vh());const m={};1&t[0]|32768&t[1]&&(m.$$scope={dirty:t,ctx:e}),!Ce&&1&t[0]&&(Ce=!0,m.value=e[0].restrictions,Dh(()=>Ce=!1)),we.$set(m);const f={};1&t[0]|32768&t[1]&&(f.$$scope={dirty:t,ctx:e}),!Se&&1&t[0]&&(Se=!0,f.value=e[0].votes,Dh(()=>Se=!1)),Ee.$set(f);const g={};4&t[0]&&(g.error=e[2]?.crossChainBridging),75&t[0]|32768&t[1]&&(g.$$scope={dirty:t,ctx:e}),!Ae&&1&t[0]&&(Ae=!0,g.value=e[0].crossChainBridging,Dh(()=>Ae=!1)),Oe.$set(g);const v={};128&t[0]&&(v.required=e[7]),4&t[0]&&(v.error=e[2]?.access),1&t[0]&&(v.defaultValueWhenEnabled="chainlink-ccip"===e[0].crossChainBridging?"roles":"ownable"),1&t[0]&&(v.disableOwnable="chainlink-ccip"===e[0].crossChainBridging),1&t[0]&&(v.disableManaged="chainlink-ccip"===e[0].crossChainBridging),!Ue&&1&t[0]&&(Ue=!0,v.access=e[0].access,Dh(()=>Ue=!1)),Pe.$set(v);const b={};4&t[0]&&(b.errors=e[2]),1&t[0]&&(b.aceEnabled=!0===e[0].chainlinkAce),!je&&1&t[0]&&(je=!0,b.info=e[0].info,Dh(()=>je=!1)),Ne.$set(b)},i(e){De||(Wh(y.$$.fragment,e),Wh(S.$$.fragment,e),Wh(Be),Wh(B.$$.fragment,e),Wh(W.$$.fragment,e),Wh(Q.$$.fragment,e),Wh(re.$$.fragment,e),Wh(ue.$$.fragment,e),Wh(he.$$.fragment,e),Wh(ke.$$.fragment,e),Wh(qe),Wh(we.$$.fragment,e),Wh(Ee.$$.fragment,e),Wh(Oe.$$.fragment,e),Wh(Pe.$$.fragment,e),Wh(Ne.$$.fragment,e),De=!0)},o(e){Jh(y.$$.fragment,e),Jh(S.$$.fragment,e),Jh(Be),Jh(B.$$.fragment,e),Jh(W.$$.fragment,e),Jh(Q.$$.fragment,e),Jh(re.$$.fragment,e),Jh(ue.$$.fragment,e),Jh(he.$$.fragment,e),Jh(ke.$$.fragment,e),Jh(qe),Jh(we.$$.fragment,e),Jh(Ee.$$.fragment,e),Jh(Oe.$$.fragment,e),Jh(Pe.$$.fragment,e),Jh(Ne.$$.fragment,e),De=!1},d(e){e&&uh(t),e&&uh(n),e&&uh(i),Yh(y),Yh(S),Be&&Be.d(),e&&uh(P),e&&uh(U),Yh(B),Yh(W),Yh(Q),Yh(re),Yh(ue),Yh(he),Yh(ke),e&&uh(_e),qe&&qe.d(e),e&&uh(xe),Yh(we,e),e&&uh(Ie),Yh(Ee,e),e&&uh(ze),Yh(Oe,e),e&&uh(Te),Yh(Pe,e),e&&uh(Re),Yh(Ne,e),Me=!1,Kf(Ze)}}}function Qw(e,t,n){let i,r,o,a,s,{opts:c={kind:"Stablecoin",...D$.defaults,premint:"",info:{...Wv}}}=t,{omitFeatures:l}=t,{errors:u}=t;zh(()=>{n(8,o=l?.includes("superchain")?void 0:a_(r,$x)),n(9,s=l?.includes("chainlinkAce")?void 0:a_(a,yx))});let d=!1,p=!1,m=c,f="chainlink-ccip"===c.crossChainBridging,h=c.mintable,g=c.access,v=!1,b=!1;return e.$$set=e=>{"opts"in e&&n(0,c=e.opts),"omitFeatures"in e&&n(1,l=e.omitFeatures),"errors"in e&&n(2,u=e.errors)},e.$$.update=()=>{if(61441&e.$$.dirty[0]){const e="chainlink-ccip"===c.crossChainBridging;c!==m?(n(12,m=c),n(14,h=c.mintable),n(15,g=c.access),e&&!c.mintable&&n(0,c.mintable=!0,c)):e&&!f?(n(14,h=c.mintable),n(15,g=c.access),n(0,c.mintable=!0,c)):!e&&f&&(h||n(0,c.mintable=!1,c),!1!==g&&"roles"!==g&&"roles"===c.access&&n(0,c.access=g,c)),!e||"ownable"!==c.access&&"managed"!==c.access||n(0,c.access="roles",c),n(13,f=e)}1&e.$$.dirty[0]&&n(7,i=D$.isAccessControlRequired(c)),1281&e.$$.dirty[0]&&(d||"superchain"!==c.crossChainBridging||o?.show(),n(10,d="superchain"===c.crossChainBridging)),2561&e.$$.dirty[0]&&(!p&&c.chainlinkAce&&s?.show(),n(11,p=c.chainlinkAce)),1&e.$$.dirty[0]&&n(5,v=""!==c.premint&&"0"!==c.premint&&!1!==c.crossChainBridging),1&e.$$.dirty[0]&&n(6,b="erc7786native"===c.crossChainBridging)},[c,l,u,r,a,v,b,i,o,s,d,p,m,f,h,g,function(){c.name=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.symbol=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.decimals=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.premint=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.premintChainId=$h(this.value),n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.mintable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.burnable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.pausable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.callback=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.permit=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.flashmint=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.freezable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.chainlinkAce=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(e){Th[e?"unshift":"push"](()=>{a=e,n(4,a)})},function(){c.restrictions=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},[[],[],[]],function(){c.restrictions=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(t){e.$$.not_equal(c.restrictions,t)&&(c.restrictions=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(){c.votes=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.votes=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(t){e.$$.not_equal(c.votes,t)&&(c.votes=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainLinkAllowOverride=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(e){Th[e?"unshift":"push"](()=>{r=e,n(3,r)})},function(t){e.$$.not_equal(c.crossChainBridging,t)&&(c.crossChainBridging=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(t){e.$$.not_equal(c.access,t)&&(c.access=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(t){e.$$.not_equal(c.info,t)&&(c.info=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))}]}function eC(e){let t;return{c(){t=mh("The number of decimals used to represent token amounts. Defaults to 18.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function tC(e){let t;return{c(){t=mh("Create an initial amount of tokens for the deployer.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function nC(e){let t,n,i,r,o,a,s,c,l,u;return s=new y_({props:{$$slots:{default:[iC]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=mh(" Chain ID:\n "),r=dh("input"),a=fh(),Kh(s.$$.fragment),vh(r,"type","number"),vh(r,"placeholder",""),vh(r,"pattern",Kb.source),vh(r,"class","input-inline"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(d,p){lh(d,t,p),sh(t,n),sh(n,i),sh(n,r),kh(r,e[0].premintChainId),sh(t,a),Xh(s,t,null),c=!0,l||(u=[gh(r,"input",e[20]),ah(gx.call(null,r)),ah(o=C_.call(null,r,e[2]?.premintChainId))],l=!0)},p(e,t){1&t[0]&&$h(r.value)!==e[0].premintChainId&&kh(r,e[0].premintChainId),o&&Xf(o.update)&&4&t[0]&&o.update.call(null,e[2]?.premintChainId);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){c||(Wh(s.$$.fragment,e),c=!0)},o(e){Jh(s.$$.fragment,e),c=!1},d(e){e&&uh(t),Yh(s),l=!1,Kf(u)}}}function iC(e){let t;return{c(){t=mh("Chain ID of the network on which to premint tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function rC(e){let t;return{c(){t=mh("Privileged accounts will be able to create more supply.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function oC(e){let t;return{c(){t=mh("Token holders will be able to destroy their tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function aC(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function sC(e){let t;return{c(){t=mh("Supports code execution after transfers and approvals on recipient contracts in a single transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function cC(e){let t,n,i,r,o,a,s;return r=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Permit",$$slots:{default:[lC]},$$scope:{ctx:e}}}),{c(){t=dh("label"),n=dh("input"),i=mh("\n Permit\n "),Kh(r.$$.fragment),vh(n,"type","checkbox"),xh(t,"checked",e[0].permit||e[0].votes)},m(c,l){lh(c,t,l),sh(t,n),n.checked=e[0].permit,sh(t,i),Xh(r,t,null),o=!0,a||(s=gh(n,"change",e[25]),a=!0)},p(e,i){1&i[0]&&(n.checked=e[0].permit);const a={};32768&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked",e[0].permit||e[0].votes)},i(e){o||(Wh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Yh(r),a=!1,s()}}}function lC(e){let t;return{c(){t=mh("Without paying gas, token holders will be able to allow third parties to transfer from their account.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function uC(e){let t;return{c(){t=mh("Built-in flash loans. Lend tokens without requiring collateral as long as they're returned in the same\n transaction.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function dC(e){let t;return{c(){t=mh("Authorized accounts can freeze and unfreeze accounts for regulatory or security purposes.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function pC(e){let t,n,i,r,o,a,s,c,l,u,d,p;return c=new y_({props:{link:"https://docs.openzeppelin.com/chainlink-ccip-ace",$$slots:{default:[mC]},$$scope:{ctx:e}}}),{c(){t=dh("section"),n=dh("h1"),n.textContent="Policy Engine",i=fh(),r=dh("div"),o=dh("label"),a=dh("input"),s=mh("\n Chainlink ACE\n "),Kh(c.$$.fragment),vh(a,"type","checkbox"),xh(o,"checked",e[0].chainlinkAce),vh(r,"class","checkbox-group"),vh(t,"class","controls-section")},m(m,f){lh(m,t,f),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(o,a),a.checked=e[0].chainlinkAce,sh(o,s),Xh(c,o,null),e[29](o),u=!0,d||(p=[gh(a,"change",e[28]),ah(l=C_.call(null,o,e[2]?.chainlinkAce))],d=!0)},p(e,t){1&t[0]&&(a.checked=e[0].chainlinkAce);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),c.$set(n),l&&Xf(l.update)&&4&t[0]&&l.update.call(null,e[2]?.chainlinkAce),(!u||1&t[0])&&xh(o,"checked",e[0].chainlinkAce)},i(e){u||(Wh(c.$$.fragment,e),u=!0)},o(e){Jh(c.$$.fragment,e),u=!1},d(n){n&&uh(t),Yh(c),e[29](null),d=!1,Kf(p)}}}function mC(e){let t;return{c(){t=mh("Chainlink Automated Compliance Engine (ACE) checks token operations against policies configured in a Policy\n Engine contract. Provide a deployed Policy Engine and configure its policies before using the token. Engine\n administration is separate from token permissions.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function fC(e){let t;return{c(){t=mh("Allows a list of addresses to transfer tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function hC(e){let t;return{c(){t=mh("Blocks a list of addresses from transferring tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function gC(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{$$slots:{default:[fC]},$$scope:{ctx:e}}}),u=new y_({props:{$$slots:{default:[hC]},$$scope:{ctx:e}}}),p=bh(e[31][2]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Allowlist*\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Blocklist*\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="allowlist",i.value=i.__value,xh(n,"checked","allowlist"===e[0].restrictions),vh(c,"type","radio"),c.__value="blocklist",c.value=c.__value,xh(s,"checked","blocklist"===e[0].restrictions),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].restrictions,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].restrictions,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[30]),gh(c,"change",e[32])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].restrictions);const r={};32768&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","allowlist"===e[0].restrictions),1&t[0]&&(c.checked=c.__value===e[0].restrictions);const a={};32768&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","blocklist"===e[0].restrictions)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function vC(e){let t,n,i;function r(t){e[36](t)}let o={label:"Votes",defaultValue:"blocknumber",helpContent:"Keeps track of historical balances for voting in on-chain governance, with a way to delegate one's voting power to a trusted account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[yC]},$$scope:{ctx:e}};return void 0!==e[0].votes&&(o.value=e[0].votes),t=new B_({props:o}),Th.push(()=>Gh(t,"value",r)),{c(){Kh(t.$$.fragment)},m(e,n){Xh(t,e,n),i=!0},p(e,i){const r={};1&i[0]|32768&i[1]&&(r.$$scope={dirty:i,ctx:e}),!n&&1&i[0]&&(n=!0,r.value=e[0].votes,Dh(()=>n=!1)),t.$set(r)},i(e){i||(Wh(t.$$.fragment,e),i=!0)},o(e){Jh(t.$$.fragment,e),i=!1},d(e){Yh(t,e)}}}function bC(e){let t;return{c(){t=mh("Uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function $C(e){let t;return{c(){t=mh("Uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function yC(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[bC]},$$scope:{ctx:e}}}),u=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[$C]},$$scope:{ctx:e}}}),p=bh(e[31][1]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Block Number\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Timestamp\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="blocknumber",i.value=i.__value,xh(n,"checked","blocknumber"===e[0].votes),vh(c,"type","radio"),c.__value="timestamp",c.value=c.__value,xh(s,"checked","timestamp"===e[0].votes),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].votes,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].votes,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[34]),gh(c,"change",e[35])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].votes);const r={};32768&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","blocknumber"===e[0].votes),1&t[0]&&(c.checked=c.__value===e[0].votes);const a={};32768&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","timestamp"===e[0].votes)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function kC(e){let t;return{c(){t=mh("Uses custom bridge contract(s) as authorized token bridge(s).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function _C(e){let t,n,i,r,o,a,s,c;return r=new y_({props:{link:"https://docs.openzeppelin.com/chainlink-ccip-ace",$$slots:{default:[xC]},$$scope:{ctx:e}}}),a=bh(e[31][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n Chainlink CCIP\n "),Kh(r.$$.fragment),vh(n,"type","radio"),n.__value="chainlink-ccip",n.value=n.__value,xh(t,"checked","chainlink-ccip"===e[0].crossChainBridging),a.p(n)},m(a,l){lh(a,t,l),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Xh(r,t,null),o=!0,s||(c=gh(n,"change",e[38]),s=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const a={};32768&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked","chainlink-ccip"===e[0].crossChainBridging)},i(e){o||(Wh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Yh(r),a.r(),s=!1,c()}}}function xC(e){let t;return{c(){t=mh("Chainlink Cross-Chain Interoperability Protocol (CCIP) connects the token to a Chainlink token pool.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function wC(e){let t;return{c(){t=mh("Embeds an ERC-7786 based bridge directly in the token contract, making it natively crosschain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function CC(e){let t,n,i,r,o,a,s,c,l;return a=new y_({props:{$$slots:{default:[IC]},$$scope:{ctx:e}}}),{c(){t=dh("p"),n=dh("label"),i=dh("input"),r=mh("\n Allow Link Overrides"),o=fh(),Kh(a.$$.fragment),vh(i,"type","checkbox"),vh(n,"class","text-sm flex-1"),vh(t,"class","subcontrol tooltip-container flex justify-between items-center pr-2")},m(u,d){lh(u,t,d),sh(t,n),sh(n,i),i.checked=e[0].crossChainLinkAllowOverride,sh(n,r),sh(t,o),Xh(a,t,null),s=!0,c||(l=gh(i,"change",e[40]),c=!0)},p(e,t){1&t[0]&&(i.checked=e[0].crossChainLinkAllowOverride);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),a.$set(n)},i(e){s||(Wh(a.$$.fragment,e),s=!0)},o(e){Jh(a.$$.fragment,e),s=!1},d(e){e&&uh(t),Yh(a),c=!1,l()}}}function IC(e){let t;return{c(){t=mh("Whether to allow replacing a crosschain link that has already been registered.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function EC(e){let t,n,i,r,o,a,s,c,l,u;return r=new hx({}),a=new y_({props:{link:"https://docs.optimism.io/stack/interop/superchain-erc20",$$slots:{default:[SC]},$$scope:{ctx:e}}}),c=bh(e[31][0]),{c(){t=dh("label"),n=dh("input"),i=mh("\n SuperchainERC20 "),Kh(r.$$.fragment),o=fh(),Kh(a.$$.fragment),vh(n,"type","radio"),n.__value="superchain",n.value=n.__value,xh(t,"checked","superchain"===e[0].crossChainBridging),c.p(n)},m(c,d){lh(c,t,d),sh(t,n),n.checked=n.__value===e[0].crossChainBridging,sh(t,i),Xh(r,t,null),sh(t,o),Xh(a,t,null),e[42](t),s=!0,l||(u=gh(n,"change",e[41]),l=!0)},p(e,i){1&i[0]&&(n.checked=n.__value===e[0].crossChainBridging);const r={};32768&i[1]&&(r.$$scope={dirty:i,ctx:e}),a.$set(r),(!s||1&i[0])&&xh(t,"checked","superchain"===e[0].crossChainBridging)},i(e){s||(Wh(r.$$.fragment,e),Wh(a.$$.fragment,e),s=!0)},o(e){Jh(r.$$.fragment,e),Jh(a.$$.fragment,e),s=!1},d(n){n&&uh(t),Yh(r),Yh(a),e[42](null),c.r(),l=!1,u()}}}function SC(e){let t,n,i;return{c(){t=mh("Uses the predeployed "),n=dh("code"),n.textContent="SuperchainTokenBridge",i=mh(" contract as the authorized token bridge. Only available\n on chains in the Superchain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function zC(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b=!e[1]?.includes("ccip"),$=!e[1]?.includes("superchain");o=new y_({props:{$$slots:{default:[kC]},$$scope:{ctx:e}}});let y=b&&_C(e);d=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Crosschain",$$slots:{default:[wC]},$$scope:{ctx:e}}});let k=e[6]&&CC(e),_=$&&EC(e);return h=bh(e[31][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n Custom\n "),Kh(o.$$.fragment),a=fh(),y&&y.c(),s=fh(),c=dh("label"),l=dh("input"),u=mh("\n ERC-7786 Native\n "),Kh(d.$$.fragment),p=fh(),k&&k.c(),m=fh(),_&&_.c(),vh(i,"type","radio"),i.__value="custom",i.value=i.__value,xh(n,"checked","custom"===e[0].crossChainBridging),vh(l,"type","radio"),l.__value="erc7786native",l.value=l.__value,xh(c,"checked","erc7786native"===e[0].crossChainBridging),vh(t,"class","checkbox-group"),h.p(i,l)},m(h,b){lh(h,t,b),sh(t,n),sh(n,i),i.checked=i.__value===e[0].crossChainBridging,sh(n,r),Xh(o,n,null),sh(t,a),y&&y.m(t,null),sh(t,s),sh(t,c),sh(c,l),l.checked=l.__value===e[0].crossChainBridging,sh(c,u),Xh(d,c,null),sh(t,p),k&&k.m(t,null),sh(t,m),_&&_.m(t,null),f=!0,g||(v=[gh(i,"change",e[37]),gh(l,"change",e[39])],g=!0)},p(e,r){1&r[0]&&(i.checked=i.__value===e[0].crossChainBridging);const a={};32768&r[1]&&(a.$$scope={dirty:r,ctx:e}),o.$set(a),(!f||1&r[0])&&xh(n,"checked","custom"===e[0].crossChainBridging),2&r[0]&&(b=!e[1]?.includes("ccip")),b?y?(y.p(e,r),2&r[0]&&Wh(y,1)):(y=_C(e),y.c(),Wh(y,1),y.m(t,s)):y&&(Hh(),Jh(y,1,1,()=>{y=null}),Vh()),1&r[0]&&(l.checked=l.__value===e[0].crossChainBridging);const u={};32768&r[1]&&(u.$$scope={dirty:r,ctx:e}),d.$set(u),(!f||1&r[0])&&xh(c,"checked","erc7786native"===e[0].crossChainBridging),e[6]?k?(k.p(e,r),64&r[0]&&Wh(k,1)):(k=CC(e),k.c(),Wh(k,1),k.m(t,m)):k&&(Hh(),Jh(k,1,1,()=>{k=null}),Vh()),2&r[0]&&($=!e[1]?.includes("superchain")),$?_?(_.p(e,r),2&r[0]&&Wh(_,1)):(_=EC(e),_.c(),Wh(_,1),_.m(t,null)):_&&(Hh(),Jh(_,1,1,()=>{_=null}),Vh())},i(e){f||(Wh(o.$$.fragment,e),Wh(y),Wh(d.$$.fragment,e),Wh(k),Wh(_),f=!0)},o(e){Jh(o.$$.fragment,e),Jh(y),Jh(d.$$.fragment,e),Jh(k),Jh(_),f=!1},d(e){e&&uh(t),Yh(o),y&&y.d(),Yh(d),k&&k.d(),_&&_.d(),h.r(),g=!1,Kf(v)}}}function OC(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,be,$e,ye,ke,_e,xe,we,Ce,Ie,Ee,Se,ze,Oe,Ae,Te,Pe,Ue,Re=!e[1]?.includes("permit"),Ne=!e[1]?.includes("chainlinkAce"),je=!e[1]?.includes("votes");y=new y_({props:{$$slots:{default:[eC]},$$scope:{ctx:e}}}),S=new y_({props:{$$slots:{default:[tC]},$$scope:{ctx:e}}});let De=e[5]&&nC(e);B=new y_({props:{$$slots:{default:[rC]},$$scope:{ctx:e}}}),W=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Burnable",$$slots:{default:[oC]},$$scope:{ctx:e}}}),Q=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[aC]},$$scope:{ctx:e}}}),re=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC1363",$$slots:{default:[sC]},$$scope:{ctx:e}}});let Me=Re&&cC(e);de=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20FlashMint",$$slots:{default:[uC]},$$scope:{ctx:e}}}),ve=new y_({props:{$$slots:{default:[dC]},$$scope:{ctx:e}}});let Ze=Ne&&pC(e);function Le(t){e[33](t)}let Be={label:"Restrictions*",defaultValue:"allowlist",helpContent:"Restricts certain users from transferring tokens, either via allowing or blocking them.",$$slots:{default:[gC]},$$scope:{ctx:e}};void 0!==e[0].restrictions&&(Be.value=e[0].restrictions),ye=new B_({props:Be}),Th.push(()=>Gh(ye,"value",Le));let qe=je&&vC(e);function Fe(t){e[43](t)}let He={label:"Crosschain Bridging",error:e[2]?.crossChainBridging,defaultValue:"custom",helpContent:"Allows authorized bridge contracts to mint and burn tokens for crosschain transfers.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Bridgeable",$$slots:{default:[zC]},$$scope:{ctx:e}};function Ve(t){e[44](t)}void 0!==e[0].crossChainBridging&&(He.value=e[0].crossChainBridging),we=new B_({props:He}),Th.push(()=>Gh(we,"value",Fe));let We={required:e[7],error:e[2]?.access,defaultValueWhenEnabled:"chainlink-ccip"===e[0].crossChainBridging?"roles":"ownable",disableOwnable:"chainlink-ccip"===e[0].crossChainBridging,disableManaged:"chainlink-ccip"===e[0].crossChainBridging};function Je(t){e[45](t)}void 0!==e[0].access&&(We.access=e[0].access),Ee=new G_({props:We}),Th.push(()=>Gh(Ee,"access",Ve));let Ge={errors:e[2],aceEnabled:!0===e[0].chainlinkAce};return void 0!==e[0].info&&(Ge.info=e[0].info),Oe=new mx({props:Ge}),Th.push(()=>Gh(Oe,"info",Je)),{c(){t=dh("section"),t.innerHTML='<div class="text-sm text-gray-500"><strong>* Experimental:</strong> \n <span class="italic">Some of the following features are not audited and are subject to change</span></div>',n=fh(),i=dh("section"),r=dh("h1"),r.textContent="Settings",o=fh(),a=dh("div"),s=dh("label"),c=dh("span"),c.textContent="Name",l=fh(),u=dh("input"),d=fh(),p=dh("label"),m=dh("span"),m.textContent="Symbol",f=fh(),h=dh("input"),g=fh(),v=dh("label"),b=dh("span"),$=mh("Decimals\n "),Kh(y.$$.fragment),k=fh(),_=dh("input"),w=fh(),C=dh("label"),I=dh("span"),E=mh("Premint\n "),Kh(S.$$.fragment),z=fh(),O=dh("input"),T=fh(),De&&De.c(),P=fh(),U=dh("section"),R=dh("h1"),R.textContent="Features",N=fh(),j=dh("div"),D=dh("label"),M=dh("input"),L=mh("\n Mintable\n "),Kh(B.$$.fragment),q=fh(),F=dh("label"),H=dh("input"),V=mh("\n Burnable\n "),Kh(W.$$.fragment),G=fh(),K=dh("label"),X=dh("input"),Y=mh("\n Pausable\n "),Kh(Q.$$.fragment),ee=fh(),te=dh("label"),ne=dh("input"),ie=mh("\n Callback\n "),Kh(re.$$.fragment),ae=fh(),Me&&Me.c(),se=fh(),ce=dh("label"),le=dh("input"),ue=mh("\n Flash Minting\n "),Kh(de.$$.fragment),me=fh(),fe=dh("label"),he=dh("input"),ge=mh("\n Freezable*\n "),Kh(ve.$$.fragment),be=fh(),Ze&&Ze.c(),$e=fh(),Kh(ye.$$.fragment),_e=fh(),qe&&qe.c(),xe=fh(),Kh(we.$$.fragment),Ie=fh(),Kh(Ee.$$.fragment),ze=fh(),Kh(Oe.$$.fragment),vh(t,"class","controls-section"),vh(s,"class","labeled-input"),vh(p,"class","labeled-input"),vh(a,"class","grid grid-cols-[2fr,1fr] gap-2"),vh(b,"class","flex justify-between pr-2"),vh(v,"class","labeled-input"),vh(I,"class","flex justify-between pr-2"),vh(O,"placeholder","0"),vh(O,"pattern",Gb.source),vh(C,"class","labeled-input"),vh(i,"class","controls-section"),vh(M,"type","checkbox"),M.disabled=Z="chainlink-ccip"===e[0].crossChainBridging,xh(D,"checked",e[0].mintable),vh(H,"type","checkbox"),xh(F,"checked",e[0].burnable),vh(X,"type","checkbox"),xh(K,"checked",e[0].pausable),vh(ne,"type","checkbox"),xh(te,"checked",e[0].callback),vh(le,"type","checkbox"),xh(ce,"checked",e[0].flashmint),vh(he,"type","checkbox"),xh(fe,"checked",e[0].freezable),vh(j,"class","checkbox-group"),vh(U,"class","controls-section")},m(Z,ke){lh(Z,t,ke),lh(Z,n,ke),lh(Z,i,ke),sh(i,r),sh(i,o),sh(i,a),sh(a,s),sh(s,c),sh(s,l),sh(s,u),kh(u,e[0].name),sh(a,d),sh(a,p),sh(p,m),sh(p,f),sh(p,h),kh(h,e[0].symbol),sh(i,g),sh(i,v),sh(v,b),sh(b,$),Xh(y,b,null),sh(v,k),sh(v,_),kh(_,e[0].decimals),sh(i,w),sh(i,C),sh(C,I),sh(I,E),Xh(S,I,null),sh(C,z),sh(C,O),kh(O,e[0].premint),sh(i,T),De&&De.m(i,null),lh(Z,P,ke),lh(Z,U,ke),sh(U,R),sh(U,N),sh(U,j),sh(j,D),sh(D,M),M.checked=e[0].mintable,sh(D,L),Xh(B,D,null),sh(j,q),sh(j,F),sh(F,H),H.checked=e[0].burnable,sh(F,V),Xh(W,F,null),sh(j,G),sh(j,K),sh(K,X),X.checked=e[0].pausable,sh(K,Y),Xh(Q,K,null),sh(j,ee),sh(j,te),sh(te,ne),ne.checked=e[0].callback,sh(te,ie),Xh(re,te,null),sh(j,ae),Me&&Me.m(j,null),sh(j,se),sh(j,ce),sh(ce,le),le.checked=e[0].flashmint,sh(ce,ue),Xh(de,ce,null),sh(j,me),sh(j,fe),sh(fe,he),he.checked=e[0].freezable,sh(fe,ge),Xh(ve,fe,null),lh(Z,be,ke),Ze&&Ze.m(Z,ke),lh(Z,$e,ke),Xh(ye,Z,ke),lh(Z,_e,ke),qe&&qe.m(Z,ke),lh(Z,xe,ke),Xh(we,Z,ke),lh(Z,Ie,ke),Xh(Ee,Z,ke),lh(Z,ze,ke),Xh(Oe,Z,ke),Te=!0,Pe||(Ue=[gh(u,"input",e[16]),gh(h,"input",e[17]),gh(_,"input",e[18]),ah(x=C_.call(null,_,e[2]?.decimals)),gh(O,"input",e[19]),ah(A=C_.call(null,O,e[2]?.premint)),gh(M,"change",e[21]),gh(H,"change",e[22]),ah(J=C_.call(null,F,e[2]?.burnable)),gh(X,"change",e[23]),gh(ne,"change",e[24]),ah(oe=C_.call(null,te,e[2]?.callback)),gh(le,"change",e[26]),ah(pe=C_.call(null,ce,e[2]?.flashmint)),gh(he,"change",e[27])],Pe=!0)},p(e,t){1&t[0]&&u.value!==e[0].name&&kh(u,e[0].name),1&t[0]&&h.value!==e[0].symbol&&kh(h,e[0].symbol);const n={};32768&t[1]&&(n.$$scope={dirty:t,ctx:e}),y.$set(n),1&t[0]&&_.value!==e[0].decimals&&kh(_,e[0].decimals),x&&Xf(x.update)&&4&t[0]&&x.update.call(null,e[2]?.decimals);const r={};32768&t[1]&&(r.$$scope={dirty:t,ctx:e}),S.$set(r),1&t[0]&&O.value!==e[0].premint&&kh(O,e[0].premint),A&&Xf(A.update)&&4&t[0]&&A.update.call(null,e[2]?.premint),e[5]?De?(De.p(e,t),32&t[0]&&Wh(De,1)):(De=nC(e),De.c(),Wh(De,1),De.m(i,null)):De&&(Hh(),Jh(De,1,1,()=>{De=null}),Vh()),(!Te||1&t[0]&&Z!==(Z="chainlink-ccip"===e[0].crossChainBridging))&&(M.disabled=Z),1&t[0]&&(M.checked=e[0].mintable);const o={};32768&t[1]&&(o.$$scope={dirty:t,ctx:e}),B.$set(o),(!Te||1&t[0])&&xh(D,"checked",e[0].mintable),1&t[0]&&(H.checked=e[0].burnable);const a={};32768&t[1]&&(a.$$scope={dirty:t,ctx:e}),W.$set(a),J&&Xf(J.update)&&4&t[0]&&J.update.call(null,e[2]?.burnable),(!Te||1&t[0])&&xh(F,"checked",e[0].burnable),1&t[0]&&(X.checked=e[0].pausable);const s={};32768&t[1]&&(s.$$scope={dirty:t,ctx:e}),Q.$set(s),(!Te||1&t[0])&&xh(K,"checked",e[0].pausable),1&t[0]&&(ne.checked=e[0].callback);const c={};32768&t[1]&&(c.$$scope={dirty:t,ctx:e}),re.$set(c),oe&&Xf(oe.update)&&4&t[0]&&oe.update.call(null,e[2]?.callback),(!Te||1&t[0])&&xh(te,"checked",e[0].callback),2&t[0]&&(Re=!e[1]?.includes("permit")),Re?Me?(Me.p(e,t),2&t[0]&&Wh(Me,1)):(Me=cC(e),Me.c(),Wh(Me,1),Me.m(j,se)):Me&&(Hh(),Jh(Me,1,1,()=>{Me=null}),Vh()),1&t[0]&&(le.checked=e[0].flashmint);const l={};32768&t[1]&&(l.$$scope={dirty:t,ctx:e}),de.$set(l),pe&&Xf(pe.update)&&4&t[0]&&pe.update.call(null,e[2]?.flashmint),(!Te||1&t[0])&&xh(ce,"checked",e[0].flashmint),1&t[0]&&(he.checked=e[0].freezable);const d={};32768&t[1]&&(d.$$scope={dirty:t,ctx:e}),ve.$set(d),(!Te||1&t[0])&&xh(fe,"checked",e[0].freezable),2&t[0]&&(Ne=!e[1]?.includes("chainlinkAce")),Ne?Ze?(Ze.p(e,t),2&t[0]&&Wh(Ze,1)):(Ze=pC(e),Ze.c(),Wh(Ze,1),Ze.m($e.parentNode,$e)):Ze&&(Hh(),Jh(Ze,1,1,()=>{Ze=null}),Vh());const p={};1&t[0]|32768&t[1]&&(p.$$scope={dirty:t,ctx:e}),!ke&&1&t[0]&&(ke=!0,p.value=e[0].restrictions,Dh(()=>ke=!1)),ye.$set(p),2&t[0]&&(je=!e[1]?.includes("votes")),je?qe?(qe.p(e,t),2&t[0]&&Wh(qe,1)):(qe=vC(e),qe.c(),Wh(qe,1),qe.m(xe.parentNode,xe)):qe&&(Hh(),Jh(qe,1,1,()=>{qe=null}),Vh());const m={};4&t[0]&&(m.error=e[2]?.crossChainBridging),75&t[0]|32768&t[1]&&(m.$$scope={dirty:t,ctx:e}),!Ce&&1&t[0]&&(Ce=!0,m.value=e[0].crossChainBridging,Dh(()=>Ce=!1)),we.$set(m);const f={};128&t[0]&&(f.required=e[7]),4&t[0]&&(f.error=e[2]?.access),1&t[0]&&(f.defaultValueWhenEnabled="chainlink-ccip"===e[0].crossChainBridging?"roles":"ownable"),1&t[0]&&(f.disableOwnable="chainlink-ccip"===e[0].crossChainBridging),1&t[0]&&(f.disableManaged="chainlink-ccip"===e[0].crossChainBridging),!Se&&1&t[0]&&(Se=!0,f.access=e[0].access,Dh(()=>Se=!1)),Ee.$set(f);const g={};4&t[0]&&(g.errors=e[2]),1&t[0]&&(g.aceEnabled=!0===e[0].chainlinkAce),!Ae&&1&t[0]&&(Ae=!0,g.info=e[0].info,Dh(()=>Ae=!1)),Oe.$set(g)},i(e){Te||(Wh(y.$$.fragment,e),Wh(S.$$.fragment,e),Wh(De),Wh(B.$$.fragment,e),Wh(W.$$.fragment,e),Wh(Q.$$.fragment,e),Wh(re.$$.fragment,e),Wh(Me),Wh(de.$$.fragment,e),Wh(ve.$$.fragment,e),Wh(Ze),Wh(ye.$$.fragment,e),Wh(qe),Wh(we.$$.fragment,e),Wh(Ee.$$.fragment,e),Wh(Oe.$$.fragment,e),Te=!0)},o(e){Jh(y.$$.fragment,e),Jh(S.$$.fragment,e),Jh(De),Jh(B.$$.fragment,e),Jh(W.$$.fragment,e),Jh(Q.$$.fragment,e),Jh(re.$$.fragment,e),Jh(Me),Jh(de.$$.fragment,e),Jh(ve.$$.fragment,e),Jh(Ze),Jh(ye.$$.fragment,e),Jh(qe),Jh(we.$$.fragment,e),Jh(Ee.$$.fragment,e),Jh(Oe.$$.fragment,e),Te=!1},d(e){e&&uh(t),e&&uh(n),e&&uh(i),Yh(y),Yh(S),De&&De.d(),e&&uh(P),e&&uh(U),Yh(B),Yh(W),Yh(Q),Yh(re),Me&&Me.d(),Yh(de),Yh(ve),e&&uh(be),Ze&&Ze.d(e),e&&uh($e),Yh(ye,e),e&&uh(_e),qe&&qe.d(e),e&&uh(xe),Yh(we,e),e&&uh(Ie),Yh(Ee,e),e&&uh(ze),Yh(Oe,e),Pe=!1,Kf(Ue)}}}function AC(e,t,n){let i,r,o,a,s,{opts:c={kind:"RealWorldAsset",...Z$.defaults,name:"MyRWA",symbol:"RWA",premint:"",info:{...Wv}}}=t,{omitFeatures:l}=t,{errors:u}=t;zh(()=>{n(8,o=l?.includes("superchain")?void 0:a_(r,$x)),n(9,s=l?.includes("chainlinkAce")?void 0:a_(a,yx))});let d=!1,p=!1,m=c,f="chainlink-ccip"===c.crossChainBridging,h=c.mintable,g=c.access,v=!1,b=!1;return e.$$set=e=>{"opts"in e&&n(0,c=e.opts),"omitFeatures"in e&&n(1,l=e.omitFeatures),"errors"in e&&n(2,u=e.errors)},e.$$.update=()=>{if(61441&e.$$.dirty[0]){const e="chainlink-ccip"===c.crossChainBridging;c!==m?(n(12,m=c),n(14,h=c.mintable),n(15,g=c.access),e&&!c.mintable&&n(0,c.mintable=!0,c)):e&&!f?(n(14,h=c.mintable),n(15,g=c.access),n(0,c.mintable=!0,c)):!e&&f&&(h||n(0,c.mintable=!1,c),!1!==g&&"roles"!==g&&"roles"===c.access&&n(0,c.access=g,c)),!e||"ownable"!==c.access&&"managed"!==c.access||n(0,c.access="roles",c),n(13,f=e)}1&e.$$.dirty[0]&&n(7,i=Z$.isAccessControlRequired(c)),1281&e.$$.dirty[0]&&(d||"superchain"!==c.crossChainBridging||o?.show(),n(10,d="superchain"===c.crossChainBridging)),2561&e.$$.dirty[0]&&(!p&&c.chainlinkAce&&s?.show(),n(11,p=c.chainlinkAce)),1&e.$$.dirty[0]&&n(5,v=""!==c.premint&&"0"!==c.premint&&!1!==c.crossChainBridging),1&e.$$.dirty[0]&&n(6,b="erc7786native"===c.crossChainBridging)},[c,l,u,r,a,v,b,i,o,s,d,p,m,f,h,g,function(){c.name=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.symbol=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.decimals=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.premint=this.value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.premintChainId=$h(this.value),n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.mintable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.burnable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.pausable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.callback=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.permit=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.flashmint=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.freezable=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.chainlinkAce=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(e){Th[e?"unshift":"push"](()=>{a=e,n(4,a)})},function(){c.restrictions=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},[[],[],[]],function(){c.restrictions=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(t){e.$$.not_equal(c.restrictions,t)&&(c.restrictions=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(){c.votes=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.votes=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(t){e.$$.not_equal(c.votes,t)&&(c.votes=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainLinkAllowOverride=this.checked,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(){c.crossChainBridging=this.__value,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g)},function(e){Th[e?"unshift":"push"](()=>{r=e,n(3,r)})},function(t){e.$$.not_equal(c.crossChainBridging,t)&&(c.crossChainBridging=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(t){e.$$.not_equal(c.access,t)&&(c.access=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))},function(t){e.$$.not_equal(c.info,t)&&(c.info=t,n(0,c),n(12,m),n(13,f),n(14,h),n(15,g))}]}function TC(e){let t,n,i;return{c(){t=mh("Enables smart contracts to validate signatures through a standard "),n=dh("code"),n.textContent="isValidSignature",i=mh(" method. Unlike EOAs\n (regular accounts) that use private keys, this allows contracts to implement custom signature validation logic, making\n them capable of acting as signing entities for operations like approvals, swaps, or any signed messages.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function PC(e){let t;return{c(){t=mh("Enhances signature security by using a defensive rehashing scheme that prevents signature replay attacks across\n multiple smart accounts owned by the same private key. This preserves the readability of signed contents while\n ensuring each signature is uniquely bound to a specific account and chain.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function UC(e){let t;return{c(){t=mh("Implement native support for receiving ERC-721 tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function RC(e){let t;return{c(){t=mh("Implement native support for receiving ERC-1155 tokens.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function NC(e){let t;return{c(){t=mh("Enables atomic execution of multiple transactions in a single operation, reducing total transaction costs and\n latency.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function jC(e){let t;return{c(){t=mh("Enables a modular architecture where account functionality can be extended through installation and\n uninstallation of external contracts (modules) and enhances batched execution. Supports validators for signature\n verification, executors for transaction handling, and fallback handlers for additional features. Hooks are not\n supported by default.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function DC(e){let t;return{c(){t=mh("Enables custom logic to be executed before and after account operations. A hook can validate transactions, track\n state changes, implement security checks, or add any custom behavior around executions and module management.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function MC(e){let t;return{c(){t=mh("Standard Ethereum signature validation using secp256k1. Validates signatures against a specified owner address,\n making it suitable for accounts controlled by EOAs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function ZC(e){let t;return{c(){t=mh("Special ECDSA validation that uses the account's own address as the signer. Enables EOAs to delegate execution\n rights to the account while maintaining their native signature verification.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function LC(e){let t;return{c(){t=mh("ERC-7913 multisignature validation requiring a minimum number of signatures to approve operations. The contract\n maintains a set of authorized signers and validates that the number of valid signatures meets the threshold\n requirement.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function BC(e){let t;return{c(){t=mh("Weighted version of ERC-7913 multisignature validation. Signers have different voting weights, allowing for\n flexible governance. The total weight of valid signatures must meet the threshold requirement.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function qC(e){let t;return{c(){t=mh("Signature validation using the NIST P-256 curve (secp256r1). Useful for integrating with external systems and\n hardware that use this standardized curve, such as Apple's Passkeys or certain HSMs.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function FC(e){let t;return{c(){t=mh("RSA PKCS#1 v1.5 signature validation following RFC8017. Enables integration with traditional PKI systems and\n hardware security modules that use RSA keys.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function HC(e){let t;return{c(){t=mh("Web Authentication (WebAuthn) assertion validation for integration with Passkeys and HSMs on top of P256.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function VC(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#ECDSA",$$slots:{default:[MC]},$$scope:{ctx:e}}}),d=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/eoa-delegation",$$slots:{default:[ZC]},$$scope:{ctx:e}}}),g=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/multisig",$$slots:{default:[LC]},$$scope:{ctx:e}}}),k=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/multisig#multisignererc7913weighted",$$slots:{default:[BC]},$$scope:{ctx:e}}}),I=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#P256",$$slots:{default:[qC]},$$scope:{ctx:e}}}),A=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#RSA",$$slots:{default:[FC]},$$scope:{ctx:e}}}),N=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils/cryptography#WebAuthn",$$slots:{default:[HC]},$$scope:{ctx:e}}}),D=bh(e[14][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n ECDSA\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),u=mh("\n EOA Delegation\n "),Kh(d.$$.fragment),p=fh(),m=dh("label"),f=dh("input"),h=mh("\n Multisig\n "),Kh(g.$$.fragment),v=fh(),b=dh("label"),$=dh("input"),y=mh("\n Multisig Weighted\n "),Kh(k.$$.fragment),_=fh(),x=dh("label"),w=dh("input"),C=mh("\n P256\n "),Kh(I.$$.fragment),E=fh(),S=dh("label"),z=dh("input"),O=mh("\n RSA\n "),Kh(A.$$.fragment),T=fh(),P=dh("label"),U=dh("input"),R=mh("\n WebAuthn\n "),Kh(N.$$.fragment),vh(i,"type","radio"),i.__value="ECDSA",i.value=i.__value,xh(n,"checked","ECDSA"===e[0].signer),vh(c,"type","radio"),c.__value="EIP7702",c.value=c.__value,xh(s,"checked","EIP7702"===e[0].signer),vh(f,"type","radio"),f.__value="Multisig",f.value=f.__value,xh(m,"checked","Multisig"===e[0].signer),vh($,"type","radio"),$.__value="MultisigWeighted",$.value=$.__value,xh(b,"checked","MultisigWeighted"===e[0].signer),vh(w,"type","radio"),w.__value="P256",w.value=w.__value,xh(x,"checked","P256"===e[0].signer),vh(z,"type","radio"),z.__value="RSA",z.value=z.__value,xh(S,"checked","RSA"===e[0].signer),vh(U,"type","radio"),U.__value="WebAuthn",U.value=U.__value,xh(P,"checked","WebAuthn"===e[0].signer),vh(t,"class","checkbox-group"),D.p(i,c,f,$,w,z,U)},m(D,L){lh(D,t,L),sh(t,n),sh(n,i),i.checked=i.__value===e[0].signer,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].signer,sh(s,u),Xh(d,s,null),sh(t,p),sh(t,m),sh(m,f),f.checked=f.__value===e[0].signer,sh(m,h),Xh(g,m,null),sh(t,v),sh(t,b),sh(b,$),$.checked=$.__value===e[0].signer,sh(b,y),Xh(k,b,null),sh(t,_),sh(t,x),sh(x,w),w.checked=w.__value===e[0].signer,sh(x,C),Xh(I,x,null),sh(t,E),sh(t,S),sh(S,z),z.checked=z.__value===e[0].signer,sh(S,O),Xh(A,S,null),sh(t,T),sh(t,P),sh(P,U),U.checked=U.__value===e[0].signer,sh(P,R),Xh(N,P,null),j=!0,M||(Z=[gh(i,"change",e[13]),gh(c,"change",e[15]),ah(l=C_.call(null,c,e[1]?.eip7702)),gh(f,"change",e[16]),gh($,"change",e[17]),gh(w,"change",e[18]),gh(z,"change",e[19]),gh(U,"change",e[20])],M=!0)},p(e,t){1&t&&(i.checked=i.__value===e[0].signer);const r={};16777216&t&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!j||1&t)&&xh(n,"checked","ECDSA"===e[0].signer),1&t&&(c.checked=c.__value===e[0].signer),l&&Xf(l.update)&&2&t&&l.update.call(null,e[1]?.eip7702);const a={};16777216&t&&(a.$$scope={dirty:t,ctx:e}),d.$set(a),(!j||1&t)&&xh(s,"checked","EIP7702"===e[0].signer),1&t&&(f.checked=f.__value===e[0].signer);const u={};16777216&t&&(u.$$scope={dirty:t,ctx:e}),g.$set(u),(!j||1&t)&&xh(m,"checked","Multisig"===e[0].signer),1&t&&($.checked=$.__value===e[0].signer);const p={};16777216&t&&(p.$$scope={dirty:t,ctx:e}),k.$set(p),(!j||1&t)&&xh(b,"checked","MultisigWeighted"===e[0].signer),1&t&&(w.checked=w.__value===e[0].signer);const h={};16777216&t&&(h.$$scope={dirty:t,ctx:e}),I.$set(h),(!j||1&t)&&xh(x,"checked","P256"===e[0].signer),1&t&&(z.checked=z.__value===e[0].signer);const v={};16777216&t&&(v.$$scope={dirty:t,ctx:e}),A.$set(v),(!j||1&t)&&xh(S,"checked","RSA"===e[0].signer),1&t&&(U.checked=U.__value===e[0].signer);const y={};16777216&t&&(y.$$scope={dirty:t,ctx:e}),N.$set(y),(!j||1&t)&&xh(P,"checked","WebAuthn"===e[0].signer)},i(e){j||(Wh(o.$$.fragment,e),Wh(d.$$.fragment,e),Wh(g.$$.fragment,e),Wh(k.$$.fragment,e),Wh(I.$$.fragment,e),Wh(A.$$.fragment,e),Wh(N.$$.fragment,e),j=!0)},o(e){Jh(o.$$.fragment,e),Jh(d.$$.fragment,e),Jh(g.$$.fragment,e),Jh(k.$$.fragment,e),Jh(I.$$.fragment,e),Jh(A.$$.fragment,e),Jh(N.$$.fragment,e),j=!1},d(e){e&&uh(t),Yh(o),Yh(d),Yh(g),Yh(k),Yh(I),Yh(A),Yh(N),D.r(),M=!1,Kf(Z)}}}function WC(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me;function fe(t){e[21](t)}b=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/accounts#signature_validation",$$slots:{default:[TC]},$$scope:{ctx:e}}}),w=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/accounts#erc_7739_signatures",$$slots:{default:[PC]},$$scope:{ctx:e}}}),O=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Holder",$$slots:{default:[UC]},$$scope:{ctx:e}}}),N=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc1155#ERC1155Holder",$$slots:{default:[RC]},$$scope:{ctx:e}}}),q=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/accounts#batched_execution",$$slots:{default:[NC]},$$scope:{ctx:e}}}),G=new y_({props:{link:"https://eips.ethereum.org/EIPS/eip-7579",$$slots:{default:[jC]},$$scope:{ctx:e}}}),te=new y_({props:{link:"https://eips.ethereum.org/EIPS/eip-7579#hooks",$$slots:{default:[DC]},$$scope:{ctx:e}}});let he={label:"Signer",defaultValue:"ECDSA",helpContent:"Defines the base signature validation mechanism for the account. This implementation will be used to validate user operations following ERC-4337 or by ERC-1271's <code>isValidSignature</code> to verify signatures on behalf of the account.",helpLink:"https://docs.openzeppelin.com/contracts/5.x/accounts#selecting_a_signer",$$slots:{default:[VC]},$$scope:{ctx:e}};function ge(t){e[22](t)}void 0!==e[0].signer&&(he.value=e[0].signer),ie=new B_({props:he}),Th.push(()=>Gh(ie,"value",fe));let ve={disabled:e[2],disabledReason:e[3]};function be(t){e[23](t)}void 0!==e[0].upgradeable&&(ve.upgradeable=e[0].upgradeable),ae=new ix({props:ve}),Th.push(()=>Gh(ae,"upgradeable",ge));let $e={errors:e[1]};return void 0!==e[0].info&&($e.info=e[0].info),le=new mx({props:$e}),Th.push(()=>Gh(le,"info",be)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("section"),u=dh("h1"),u.textContent="Features",d=fh(),p=dh("div"),m=dh("label"),f=dh("input"),v=mh("\n Signature Validation\n "),Kh(b.$$.fragment),$=fh(),y=dh("label"),k=dh("input"),x=mh("\n Account Bound\n "),Kh(w.$$.fragment),C=fh(),I=dh("label"),E=dh("input"),z=mh("\n ERC721 Holder\n "),Kh(O.$$.fragment),A=fh(),T=dh("label"),P=dh("input"),R=mh("\n ERC1155 Holder\n "),Kh(N.$$.fragment),j=fh(),D=dh("label"),M=dh("input"),B=mh("\n Batched Execution\n "),Kh(q.$$.fragment),F=fh(),H=dh("label"),V=dh("input"),J=mh("\n Modules\n "),Kh(G.$$.fragment),K=fh(),X=dh("label"),Y=dh("input"),ee=mh("\n Hooked\n "),Kh(te.$$.fragment),ne=fh(),Kh(ie.$$.fragment),oe=fh(),Kh(ae.$$.fragment),ce=fh(),Kh(le.$$.fragment),vh(r,"class","labeled-input"),vh(t,"class","controls-section"),vh(f,"type","checkbox"),f.checked=h=!!e[0].signatureValidation||!!e[0].ERC7579Modules,f.disabled=g=!!e[0].ERC7579Modules,xh(m,"checked",!!e[0].signatureValidation),vh(k,"type","checkbox"),k.checked=_="ERC7739"===e[0].signatureValidation,vh(y,"class","subcontrol"),xh(y,"checked","ERC7739"===e[0].signatureValidation),vh(E,"type","checkbox"),E.checked=S=!!e[0].ERC721Holder,xh(I,"checked",e[0].ERC721Holder),vh(P,"type","checkbox"),P.checked=U=!!e[0].ERC1155Holder,xh(T,"checked",e[0].ERC1155Holder),vh(M,"type","checkbox"),M.checked=Z=!!e[0].batchedExecution||!!e[0].ERC7579Modules,M.disabled=L=!!e[0].ERC7579Modules,xh(D,"checked",e[0].batchedExecution),vh(V,"type","checkbox"),V.checked=W=!!e[0].ERC7579Modules,xh(H,"checked",!!e[0].ERC7579Modules),vh(Y,"type","checkbox"),Y.checked=Q="AccountERC7579Hooked"===e[0].ERC7579Modules,vh(X,"class","subcontrol"),xh(X,"checked","AccountERC7579Hooked"===e[0].ERC7579Modules),vh(p,"class","checkbox-group"),vh(l,"class","controls-section")},m(h,g){lh(h,t,g),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),lh(h,c,g),lh(h,l,g),sh(l,u),sh(l,d),sh(l,p),sh(p,m),sh(m,f),sh(m,v),Xh(b,m,null),sh(p,$),sh(p,y),sh(y,k),sh(y,x),Xh(w,y,null),sh(p,C),sh(p,I),sh(I,E),sh(I,z),Xh(O,I,null),sh(p,A),sh(p,T),sh(T,P),sh(T,R),Xh(N,T,null),sh(p,j),sh(p,D),sh(D,M),sh(D,B),Xh(q,D,null),sh(p,F),sh(p,H),sh(H,V),sh(H,J),Xh(G,H,null),sh(p,K),sh(p,X),sh(X,Y),sh(X,ee),Xh(te,X,null),lh(h,ne,g),Xh(ie,h,g),lh(h,oe,g),Xh(ae,h,g),lh(h,ce,g),Xh(le,h,g),de=!0,pe||(me=[gh(s,"input",e[5]),gh(f,"change",e[6]),gh(k,"change",e[7]),gh(E,"change",e[8]),gh(P,"change",e[9]),gh(M,"change",e[10]),gh(V,"change",e[11]),gh(Y,"change",e[12])],pe=!0)},p(e,[t]){1&t&&s.value!==e[0].name&&kh(s,e[0].name),(!de||1&t&&h!==(h=!!e[0].signatureValidation||!!e[0].ERC7579Modules))&&(f.checked=h),(!de||1&t&&g!==(g=!!e[0].ERC7579Modules))&&(f.disabled=g);const n={};16777216&t&&(n.$$scope={dirty:t,ctx:e}),b.$set(n),(!de||1&t)&&xh(m,"checked",!!e[0].signatureValidation),(!de||1&t&&_!==(_="ERC7739"===e[0].signatureValidation))&&(k.checked=_);const i={};16777216&t&&(i.$$scope={dirty:t,ctx:e}),w.$set(i),(!de||1&t)&&xh(y,"checked","ERC7739"===e[0].signatureValidation),(!de||1&t&&S!==(S=!!e[0].ERC721Holder))&&(E.checked=S);const r={};16777216&t&&(r.$$scope={dirty:t,ctx:e}),O.$set(r),(!de||1&t)&&xh(I,"checked",e[0].ERC721Holder),(!de||1&t&&U!==(U=!!e[0].ERC1155Holder))&&(P.checked=U);const o={};16777216&t&&(o.$$scope={dirty:t,ctx:e}),N.$set(o),(!de||1&t)&&xh(T,"checked",e[0].ERC1155Holder),(!de||1&t&&Z!==(Z=!!e[0].batchedExecution||!!e[0].ERC7579Modules))&&(M.checked=Z),(!de||1&t&&L!==(L=!!e[0].ERC7579Modules))&&(M.disabled=L);const a={};16777216&t&&(a.$$scope={dirty:t,ctx:e}),q.$set(a),(!de||1&t)&&xh(D,"checked",e[0].batchedExecution),(!de||1&t&&W!==(W=!!e[0].ERC7579Modules))&&(V.checked=W);const c={};16777216&t&&(c.$$scope={dirty:t,ctx:e}),G.$set(c),(!de||1&t)&&xh(H,"checked",!!e[0].ERC7579Modules),(!de||1&t&&Q!==(Q="AccountERC7579Hooked"===e[0].ERC7579Modules))&&(Y.checked=Q);const l={};16777216&t&&(l.$$scope={dirty:t,ctx:e}),te.$set(l),(!de||1&t)&&xh(X,"checked","AccountERC7579Hooked"===e[0].ERC7579Modules);const u={};16777219&t&&(u.$$scope={dirty:t,ctx:e}),!re&&1&t&&(re=!0,u.value=e[0].signer,Dh(()=>re=!1)),ie.$set(u);const d={};4&t&&(d.disabled=e[2]),8&t&&(d.disabledReason=e[3]),!se&&1&t&&(se=!0,d.upgradeable=e[0].upgradeable,Dh(()=>se=!1)),ae.$set(d);const p={};2&t&&(p.errors=e[1]),!ue&&1&t&&(ue=!0,p.info=e[0].info,Dh(()=>ue=!1)),le.$set(p)},i(e){de||(Wh(b.$$.fragment,e),Wh(w.$$.fragment,e),Wh(O.$$.fragment,e),Wh(N.$$.fragment,e),Wh(q.$$.fragment,e),Wh(G.$$.fragment,e),Wh(te.$$.fragment,e),Wh(ie.$$.fragment,e),Wh(ae.$$.fragment,e),Wh(le.$$.fragment,e),de=!0)},o(e){Jh(b.$$.fragment,e),Jh(w.$$.fragment,e),Jh(O.$$.fragment,e),Jh(N.$$.fragment,e),Jh(q.$$.fragment,e),Jh(G.$$.fragment,e),Jh(te.$$.fragment,e),Jh(ie.$$.fragment,e),Jh(ae.$$.fragment,e),Jh(le.$$.fragment,e),de=!1},d(e){e&&uh(t),e&&uh(c),e&&uh(l),Yh(b),Yh(w),Yh(O),Yh(N),Yh(q),Yh(G),Yh(te),e&&uh(ne),Yh(ie,e),e&&uh(oe),Yh(ae,e),e&&uh(ce),Yh(le,e),pe=!1,Kf(me)}}}function JC(e,t,n){let{opts:i={kind:"Account",...M$.defaults}}=t,r=!1,o=!1,a="",{errors:s}=t;return e.$$set=e=>{"opts"in e&&n(0,i=e.opts),"errors"in e&&n(1,s=e.errors)},e.$$.update=()=>{17&e.$$.dirty&&(!r&&i.ERC7579Modules&&n(0,i.signatureValidation="ERC7739",i),n(4,r=!!i.ERC7579Modules)),1&e.$$.dirty&&("EIP7702"===i.signer?(n(2,o=!0),n(3,a="EOAs can upgrade by redelegating to a new account")):(n(2,o=!1),n(3,a="")))},[i,s,o,a,r,function(){i.name=this.value,n(0,i),n(4,r)},e=>{e.currentTarget?.checked?n(0,i.signatureValidation="ERC7739",i):n(0,i.signatureValidation=!1,i)},e=>{e.currentTarget?.checked?n(0,i.signatureValidation="ERC7739",i):n(0,i.signatureValidation="ERC1271",i)},e=>{n(0,i.ERC721Holder=e.currentTarget?.checked,i)},e=>{n(0,i.ERC1155Holder=e.currentTarget?.checked,i)},e=>{n(0,i.batchedExecution=e.currentTarget?.checked,i)},e=>{e.currentTarget?.checked?n(0,i.ERC7579Modules="AccountERC7579",i):n(0,i.ERC7579Modules=!1,i)},e=>{e.currentTarget?.checked?n(0,i.ERC7579Modules="AccountERC7579Hooked",i):n(0,i.ERC7579Modules="AccountERC7579",i)},function(){i.signer=this.__value,n(0,i),n(4,r)},[[]],function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(){i.signer=this.__value,n(0,i),n(4,r)},function(t){e.$$.not_equal(i.signer,t)&&(i.signer=t,n(0,i),n(4,r))},function(t){e.$$.not_equal(i.upgradeable,t)&&(i.upgradeable=t,n(0,i),n(4,r))},function(t){e.$$.not_equal(i.info,t)&&(i.info=t,n(0,i),n(4,r))}]}function GC(e){let t;return{c(){t=mh("Delay since proposal is created until voting starts.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function KC(e){let t;return{c(){t=mh("Length of period during which people can cast their vote.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function XC(e){let t;return{c(){t=mh("Minimum number of votes an account must have to create a proposal.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function YC(e){let t;return{c(){t=mh("Quorum required for a proposal to pass.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function QC(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"id","quorum-input")},m(o,a){lh(o,t,a),kh(t,e[0].quorumAbsolute),e[20](t),i||(r=[gh(t,"input",e[19]),ah(n=C_.call(null,t,e[1]?.quorumAbsolute))],i=!0)},p(e,i){1&i[0]&&t.value!==e[0].quorumAbsolute&&kh(t,e[0].quorumAbsolute),n&&Xf(n.update)&&2&i[0]&&n.update.call(null,e[1]?.quorumAbsolute)},d(n){n&&uh(t),e[20](null),i=!1,Kf(r)}}}function eI(e){let t,n,i,r;return{c(){t=dh("input"),vh(t,"id","quorum-input"),vh(t,"type","number"),vh(t,"placeholder",e[5].quorumPercent.toString())},m(o,a){lh(o,t,a),kh(t,e[0].quorumPercent),i||(r=[gh(t,"input",e[18]),ah(n=C_.call(null,t,e[1]?.quorumPercent))],i=!0)},p(e,i){1&i[0]&&$h(t.value)!==e[0].quorumPercent&&kh(t,e[0].quorumPercent),n&&Xf(n.update)&&2&i[0]&&n.update.call(null,e[1]?.quorumPercent)},d(e){e&&uh(t),i=!1,Kf(r)}}}function tI(e){let t;return{c(){t=mh("Token amounts above will be extended with this number of zeroes. Does not apply to ERC721Votes.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function nI(e){let t;return{c(){t=mh("Allow governance to update voting settings (delay, period, proposal threshold).")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function iI(e){let t;return{c(){t=mh("Enable storage of proposal details and enumerability of proposals.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function rI(e){let t,n,i,r,o,a,s;return r=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/governance#GovernorCrosschain",$$slots:{default:[oI]},$$scope:{ctx:e}}}),{c(){t=dh("label"),n=dh("input"),i=mh("\n Crosschain Execution\n "),Kh(r.$$.fragment),vh(n,"type","checkbox"),xh(t,"checked",e[0].crossChainExecution)},m(c,l){lh(c,t,l),sh(t,n),n.checked=e[0].crossChainExecution,sh(t,i),Xh(r,t,null),o=!0,a||(s=gh(n,"change",e[24]),a=!0)},p(e,i){1&i[0]&&(n.checked=e[0].crossChainExecution);const a={};16&i[1]&&(a.$$scope={dirty:i,ctx:e}),r.$set(a),(!o||1&i[0])&&xh(t,"checked",e[0].crossChainExecution)},i(e){o||(Wh(r.$$.fragment,e),o=!0)},o(e){Jh(r.$$.fragment,e),o=!1},d(e){e&&uh(t),Yh(r),a=!1,s()}}}function oI(e){let t,n,i;return{c(){t=mh("Lets passed proposals relay execution to other chains through ERC-7786 gateways. Requires a\n "),n=dh("code"),n.textContent="CrosschainRemoteExecutor",i=mh(" contract, controlled by this governor, deployed on each target chain.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function aI(e){let t;return{c(){t=mh("Represent voting power with a votes-enabled ERC20 token. Voters can entrust their voting power to a delegate.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function sI(e){let t;return{c(){t=mh("Represent voting power with a votes-enabled ERC721 token. Voters can entrust their voting power to a delegate.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function cI(e){let t,n,i,r,o;return{c(){t=mh("The clock mode used by the voting token.\n "),n=dh("br"),i=fh(),r=dh("b"),r.textContent="NOTE:",o=mh(" This setting must be the same as what the token uses.")},m(e,a){lh(e,t,a),lh(e,n,a),lh(e,i,a),lh(e,r,a),lh(e,o,a)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i),e&&uh(r),e&&uh(o)}}}function lI(e){let t;return{c(){t=mh("The token uses voting durations expressed as block numbers.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function uI(e){let t,n,i;return{c(){t=mh("Assumed block time for converting voting time periods into block numbers.\n "),n=dh("br"),i=mh("\n Block time may drift and impact these periods in the future.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function dI(e){let t;return{c(){t=mh("The token uses voting durations expressed as timestamps.")},m(e,n){lh(e,t,n)},d(e){e&&uh(t)}}}function pI(e){let t,n,i;return{c(){t=mh("Module compatible with OpenZeppelin's "),n=dh("code"),n.textContent="TimelockController",i=mh(". Allows multiple proposers and executors,\n in addition to the Governor itself.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function mI(e){let t,n,i;return{c(){t=mh("Module compatible with Compound's "),n=dh("code"),n.textContent="Timelock",i=mh(" contract. Useful if assets and roles are already held in\n this contract.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function fI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f;return o=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/governance#GovernorTimelockControl",$$slots:{default:[pI]},$$scope:{ctx:e}}}),u=new y_({props:{link:"https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol",$$slots:{default:[mI]},$$scope:{ctx:e}}}),p=bh(e[16][0]),{c(){t=dh("div"),n=dh("label"),i=dh("input"),r=mh("\n TimelockController\n "),Kh(o.$$.fragment),a=fh(),s=dh("label"),c=dh("input"),l=mh("\n Compound\n "),Kh(u.$$.fragment),vh(i,"type","radio"),i.__value="openzeppelin",i.value=i.__value,xh(n,"checked","openzeppelin"===e[0].timelock),vh(c,"type","radio"),c.__value="compound",c.value=c.__value,xh(s,"checked","compound"===e[0].timelock),vh(t,"class","checkbox-group"),p.p(i,c)},m(p,h){lh(p,t,h),sh(t,n),sh(n,i),i.checked=i.__value===e[0].timelock,sh(n,r),Xh(o,n,null),sh(t,a),sh(t,s),sh(s,c),c.checked=c.__value===e[0].timelock,sh(s,l),Xh(u,s,null),d=!0,m||(f=[gh(i,"change",e[30]),gh(c,"change",e[31])],m=!0)},p(e,t){1&t[0]&&(i.checked=i.__value===e[0].timelock);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),o.$set(r),(!d||1&t[0])&&xh(n,"checked","openzeppelin"===e[0].timelock),1&t[0]&&(c.checked=c.__value===e[0].timelock);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),u.$set(a),(!d||1&t[0])&&xh(s,"checked","compound"===e[0].timelock)},i(e){d||(Wh(o.$$.fragment,e),Wh(u.$$.fragment,e),d=!0)},o(e){Jh(o.$$.fragment,e),Jh(u.$$.fragment,e),d=!1},d(e){e&&uh(t),Yh(o),Yh(u),p.r(),m=!1,Kf(f)}}}function hI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S,z,O,A,T,P,U,R,N,j,D,M,Z,L,B,q,F,H,V,W,J,G,K,X,Y,Q,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,pe,me,fe,he,ge,ve,be,$e,ye,ke,_e,xe,we,Ce,Ie,Ee,Se,ze,Oe,Ae,Te,Pe,Ue,Re,Ne,je,De,Me,Ze,Le,Be,qe,Fe,He,Ve,We,Je,Ge,Ke,Xe,Ye,Qe,et,tt,nt,it,rt,ot,at,st,ct,lt,ut,dt,pt,mt,ft,ht,gt,vt,bt=!e[2]?.includes("crossChainExecution");function $t(e,t){return"percent"===e[0].quorumMode?eI:QC}f=new y_({props:{$$slots:{default:[GC]},$$scope:{ctx:e}}}),x=new y_({props:{$$slots:{default:[KC]},$$scope:{ctx:e}}}),A=new y_({props:{$$slots:{default:[XC]},$$scope:{ctx:e}}}),J=new y_({props:{$$slots:{default:[YC]},$$scope:{ctx:e}}});let yt=$t(e),kt=yt(e);ie=new y_({props:{$$slots:{default:[tI]},$$scope:{ctx:e}}}),le=new y_({props:{$$slots:{default:[nI]},$$scope:{ctx:e}}}),fe=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/governance#GovernorStorage",$$slots:{default:[iI]},$$scope:{ctx:e}}});let _t=bt&&rI(e);function xt(t){e[32](t)}we=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc20#ERC20Votes",$$slots:{default:[aI]},$$scope:{ctx:e}}}),ze=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/token/erc721#ERC721Votes",$$slots:{default:[sI]},$$scope:{ctx:e}}}),Ne=new y_({props:{$$slots:{default:[cI]},$$scope:{ctx:e}}}),Be=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#governor",$$slots:{default:[lI]},$$scope:{ctx:e}}}),Xe=new y_({props:{$$slots:{default:[uI]},$$scope:{ctx:e}}}),nt=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/governance#timestamp_based_governance",$$slots:{default:[dI]},$$scope:{ctx:e}}});let wt={label:"Timelock",defaultValue:"openzeppelin",helpContent:"Add a delay to actions taken by the Governor. Gives users time to exit the system if they disagree with governance decisions.",$$slots:{default:[fI]},$$scope:{ctx:e}};function Ct(t){e[33](t)}void 0!==e[0].timelock&&(wt.value=e[0].timelock),rt=new B_({props:wt}),Th.push(()=>Gh(rt,"value",xt));let It={};function Et(t){e[34](t)}void 0!==e[0].upgradeable&&(It.upgradeable=e[0].upgradeable),st=new ix({props:It}),Th.push(()=>Gh(st,"upgradeable",Ct));let St={errors:e[1]};return void 0!==e[0].info&&(St.info=e[0].info),ut=new mx({props:St}),Th.push(()=>Gh(ut,"info",Et)),mt=bh(e[16][1]),ft=bh(e[16][2]),ht=bh(e[16][3]),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("div"),u=dh("label"),d=dh("span"),p=dh("span"),p.textContent="Voting Delay",m=fh(),Kh(f.$$.fragment),h=fh(),g=dh("input"),b=fh(),$=dh("label"),y=dh("span"),k=dh("span"),k.textContent="Voting Period",_=fh(),Kh(x.$$.fragment),w=fh(),C=dh("input"),E=fh(),S=dh("label"),z=dh("span"),O=mh("Proposal Threshold\n "),Kh(A.$$.fragment),T=fh(),P=dh("input"),R=fh(),N=dh("label"),j=dh("span"),D=dh("span"),M=mh("Quorum\n "),Z=dh("label"),L=mh("% "),B=dh("input"),q=fh(),F=dh("label"),H=mh("# "),V=dh("input"),W=fh(),Kh(J.$$.fragment),G=fh(),kt.c(),K=fh(),X=dh("p"),Y=dh("label"),Q=mh("Token decimals:\n "),ee=dh("input"),ne=fh(),Kh(ie.$$.fragment),re=fh(),oe=dh("div"),ae=dh("label"),se=dh("input"),ce=mh("\n Updatable Settings\n "),Kh(le.$$.fragment),ue=fh(),de=dh("label"),pe=dh("input"),me=mh("\n Storage\n "),Kh(fe.$$.fragment),he=fh(),_t&&_t.c(),ge=fh(),ve=dh("section"),be=dh("h1"),be.textContent="Votes",$e=fh(),ye=dh("div"),ke=dh("label"),_e=dh("input"),xe=mh("\n ERC20Votes\n "),Kh(we.$$.fragment),Ce=fh(),Ie=dh("label"),Ee=dh("input"),Se=mh("\n ERC721Votes\n "),Kh(ze.$$.fragment),Oe=fh(),Ae=dh("section"),Te=dh("h1"),Pe=dh("label"),Ue=dh("span"),Ue.textContent="Token Clock Mode",Re=fh(),Kh(Ne.$$.fragment),je=fh(),De=dh("div"),Me=dh("label"),Ze=dh("input"),Le=mh("\n Block Number\n "),Kh(Be.$$.fragment),qe=fh(),Fe=dh("p"),He=dh("label"),Ve=mh("1 block =\n "),We=dh("input"),Ge=mh("\n seconds"),Ke=fh(),Kh(Xe.$$.fragment),Ye=fh(),Qe=dh("label"),et=dh("input"),tt=mh("\n Timestamp\n "),Kh(nt.$$.fragment),it=fh(),Kh(rt.$$.fragment),at=fh(),Kh(st.$$.fragment),lt=fh(),Kh(ut.$$.fragment),vh(r,"class","labeled-input"),vh(d,"class","flex justify-between"),vh(u,"class","labeled-input"),vh(y,"class","flex justify-between"),vh($,"class","labeled-input"),vh(l,"class","grid grid-cols-2 gap-2"),vh(z,"class","flex justify-between pr-2"),vh(P,"placeholder","0"),vh(S,"class","labeled-input"),vh(B,"type","radio"),B.__value="percent",B.value=B.__value,vh(V,"type","radio"),V.__value="absolute",V.value=V.__value,vh(j,"class","flex justify-between pr-2"),vh(N,"class","labeled-input"),vh(N,"for","quorum-input"),ee.disabled=e[4],vh(ee,"type","number"),vh(ee,"placeholder",e[5].decimals.toString()),vh(ee,"class","input-inline"),vh(Y,"class","text-sm"),vh(X,"class","tooltip-container flex justify-between items-center pr-2"),vh(se,"type","checkbox"),xh(ae,"checked",e[0].settings),vh(pe,"type","checkbox"),xh(de,"checked",e[0].storage),vh(oe,"class","checkbox-group"),vh(t,"class","controls-section"),vh(_e,"type","radio"),_e.__value="erc20votes",_e.value=_e.__value,xh(ke,"checked","erc20votes"===e[0].votes),vh(Ee,"type","radio"),Ee.__value="erc721votes",Ee.value=Ee.__value,xh(Ie,"checked","erc721votes"===e[0].votes),vh(ye,"class","checkbox-group"),vh(ve,"class","controls-section"),vh(Pe,"class","flex justify-between items-center tooltip-container pr-2"),vh(Ze,"type","radio"),Ze.__value="blocknumber",Ze.value=Ze.__value,xh(Me,"checked","blocknumber"===e[0].clockMode),vh(We,"type","number"),vh(We,"step","0.01"),vh(We,"placeholder",e[6].toString()),vh(We,"class","input-inline"),We.disabled=Je="timestamp"===e[0].clockMode,vh(He,"class","text-sm"),vh(Fe,"class","tooltip-container flex justify-between items-center pr-2"),vh(et,"type","radio"),et.__value="timestamp",et.value=et.__value,xh(Qe,"checked","timestamp"===e[0].clockMode),vh(De,"class","checkbox-group"),vh(Ae,"class","controls-section"),mt.p(Ze,et),ft.p(_e,Ee),ht.p(B,V)},m(Je,ot){lh(Je,t,ot),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),sh(t,c),sh(t,l),sh(l,u),sh(u,d),sh(d,p),sh(d,m),Xh(f,d,null),sh(u,h),sh(u,g),kh(g,e[0].delay),sh(l,b),sh(l,$),sh($,y),sh(y,k),sh(y,_),Xh(x,y,null),sh($,w),sh($,C),kh(C,e[0].period),sh(t,E),sh(t,S),sh(S,z),sh(z,O),Xh(A,z,null),sh(S,T),sh(S,P),kh(P,e[0].proposalThreshold),sh(t,R),sh(t,N),sh(N,j),sh(j,D),sh(D,M),sh(D,Z),sh(Z,L),sh(Z,B),B.checked=B.__value===e[0].quorumMode,sh(D,q),sh(D,F),sh(F,H),sh(F,V),V.checked=V.__value===e[0].quorumMode,sh(j,W),Xh(J,j,null),sh(N,G),kt.m(N,null),sh(t,K),sh(t,X),sh(X,Y),sh(Y,Q),sh(Y,ee),kh(ee,e[0].decimals),sh(X,ne),Xh(ie,X,null),sh(t,re),sh(t,oe),sh(oe,ae),sh(ae,se),se.checked=e[0].settings,sh(ae,ce),Xh(le,ae,null),sh(oe,ue),sh(oe,de),sh(de,pe),pe.checked=e[0].storage,sh(de,me),Xh(fe,de,null),sh(oe,he),_t&&_t.m(oe,null),lh(Je,ge,ot),lh(Je,ve,ot),sh(ve,be),sh(ve,$e),sh(ve,ye),sh(ye,ke),sh(ke,_e),_e.checked=_e.__value===e[0].votes,sh(ke,xe),Xh(we,ke,null),sh(ye,Ce),sh(ye,Ie),sh(Ie,Ee),Ee.checked=Ee.__value===e[0].votes,sh(Ie,Se),Xh(ze,Ie,null),lh(Je,Oe,ot),lh(Je,Ae,ot),sh(Ae,Te),sh(Te,Pe),sh(Pe,Ue),sh(Pe,Re),Xh(Ne,Pe,null),sh(Ae,je),sh(Ae,De),sh(De,Me),sh(Me,Ze),Ze.checked=Ze.__value===e[0].clockMode,sh(Me,Le),Xh(Be,Me,null),sh(De,qe),sh(De,Fe),sh(Fe,He),sh(He,Ve),sh(He,We),kh(We,e[0].blockTime),sh(He,Ge),sh(Fe,Ke),Xh(Xe,Fe,null),sh(De,Ye),sh(De,Qe),sh(Qe,et),et.checked=et.__value===e[0].clockMode,sh(Qe,tt),Xh(nt,Qe,null),lh(Je,it,ot),Xh(rt,Je,ot),lh(Je,at,ot),Xh(st,Je,ot),lh(Je,lt,ot),Xh(ut,Je,ot),pt=!0,gt||(vt=[gh(s,"input",e[11]),gh(g,"input",e[12]),ah(v=C_.call(null,g,e[1]?.delay)),gh(C,"input",e[13]),ah(I=C_.call(null,C,e[1]?.period)),gh(P,"input",e[14]),ah(U=C_.call(null,P,e[1]?.proposalThreshold)),gh(B,"change",e[15]),gh(V,"change",e[17]),gh(V,"change",e[7]),gh(ee,"input",e[21]),ah(gx.call(null,ee)),ah(te=C_.call(null,ee,e[1]?.decimals)),gh(se,"change",e[22]),gh(pe,"change",e[23]),gh(_e,"change",e[25]),gh(Ee,"change",e[26]),gh(Ze,"change",e[27]),gh(We,"input",e[28]),ah(gx.call(null,We)),gh(et,"change",e[29])],gt=!0)},p(e,t){1&t[0]&&s.value!==e[0].name&&kh(s,e[0].name);const n={};16&t[1]&&(n.$$scope={dirty:t,ctx:e}),f.$set(n),1&t[0]&&g.value!==e[0].delay&&kh(g,e[0].delay),v&&Xf(v.update)&&2&t[0]&&v.update.call(null,e[1]?.delay);const i={};16&t[1]&&(i.$$scope={dirty:t,ctx:e}),x.$set(i),1&t[0]&&C.value!==e[0].period&&kh(C,e[0].period),I&&Xf(I.update)&&2&t[0]&&I.update.call(null,e[1]?.period);const r={};16&t[1]&&(r.$$scope={dirty:t,ctx:e}),A.$set(r),1&t[0]&&P.value!==e[0].proposalThreshold&&kh(P,e[0].proposalThreshold),U&&Xf(U.update)&&2&t[0]&&U.update.call(null,e[1]?.proposalThreshold),1&t[0]&&(B.checked=B.__value===e[0].quorumMode),1&t[0]&&(V.checked=V.__value===e[0].quorumMode);const o={};16&t[1]&&(o.$$scope={dirty:t,ctx:e}),J.$set(o),yt===(yt=$t(e))&&kt?kt.p(e,t):(kt.d(1),kt=yt(e),kt&&(kt.c(),kt.m(N,null))),(!pt||16&t[0])&&(ee.disabled=e[4]),1&t[0]&&$h(ee.value)!==e[0].decimals&&kh(ee,e[0].decimals),te&&Xf(te.update)&&2&t[0]&&te.update.call(null,e[1]?.decimals);const a={};16&t[1]&&(a.$$scope={dirty:t,ctx:e}),ie.$set(a),1&t[0]&&(se.checked=e[0].settings);const c={};16&t[1]&&(c.$$scope={dirty:t,ctx:e}),le.$set(c),(!pt||1&t[0])&&xh(ae,"checked",e[0].settings),1&t[0]&&(pe.checked=e[0].storage);const l={};16&t[1]&&(l.$$scope={dirty:t,ctx:e}),fe.$set(l),(!pt||1&t[0])&&xh(de,"checked",e[0].storage),4&t[0]&&(bt=!e[2]?.includes("crossChainExecution")),bt?_t?(_t.p(e,t),4&t[0]&&Wh(_t,1)):(_t=rI(e),_t.c(),Wh(_t,1),_t.m(oe,null)):_t&&(Hh(),Jh(_t,1,1,()=>{_t=null}),Vh()),1&t[0]&&(_e.checked=_e.__value===e[0].votes);const u={};16&t[1]&&(u.$$scope={dirty:t,ctx:e}),we.$set(u),(!pt||1&t[0])&&xh(ke,"checked","erc20votes"===e[0].votes),1&t[0]&&(Ee.checked=Ee.__value===e[0].votes);const d={};16&t[1]&&(d.$$scope={dirty:t,ctx:e}),ze.$set(d),(!pt||1&t[0])&&xh(Ie,"checked","erc721votes"===e[0].votes);const p={};16&t[1]&&(p.$$scope={dirty:t,ctx:e}),Ne.$set(p),1&t[0]&&(Ze.checked=Ze.__value===e[0].clockMode);const m={};16&t[1]&&(m.$$scope={dirty:t,ctx:e}),Be.$set(m),(!pt||1&t[0])&&xh(Me,"checked","blocknumber"===e[0].clockMode),(!pt||1&t[0]&&Je!==(Je="timestamp"===e[0].clockMode))&&(We.disabled=Je),1&t[0]&&$h(We.value)!==e[0].blockTime&&kh(We,e[0].blockTime);const h={};16&t[1]&&(h.$$scope={dirty:t,ctx:e}),Xe.$set(h),1&t[0]&&(et.checked=et.__value===e[0].clockMode);const b={};16&t[1]&&(b.$$scope={dirty:t,ctx:e}),nt.$set(b),(!pt||1&t[0])&&xh(Qe,"checked","timestamp"===e[0].clockMode);const $={};1&t[0]|16&t[1]&&($.$$scope={dirty:t,ctx:e}),!ot&&1&t[0]&&(ot=!0,$.value=e[0].timelock,Dh(()=>ot=!1)),rt.$set($);const y={};!ct&&1&t[0]&&(ct=!0,y.upgradeable=e[0].upgradeable,Dh(()=>ct=!1)),st.$set(y);const k={};2&t[0]&&(k.errors=e[1]),!dt&&1&t[0]&&(dt=!0,k.info=e[0].info,Dh(()=>dt=!1)),ut.$set(k)},i(e){pt||(Wh(f.$$.fragment,e),Wh(x.$$.fragment,e),Wh(A.$$.fragment,e),Wh(J.$$.fragment,e),Wh(ie.$$.fragment,e),Wh(le.$$.fragment,e),Wh(fe.$$.fragment,e),Wh(_t),Wh(we.$$.fragment,e),Wh(ze.$$.fragment,e),Wh(Ne.$$.fragment,e),Wh(Be.$$.fragment,e),Wh(Xe.$$.fragment,e),Wh(nt.$$.fragment,e),Wh(rt.$$.fragment,e),Wh(st.$$.fragment,e),Wh(ut.$$.fragment,e),pt=!0)},o(e){Jh(f.$$.fragment,e),Jh(x.$$.fragment,e),Jh(A.$$.fragment,e),Jh(J.$$.fragment,e),Jh(ie.$$.fragment,e),Jh(le.$$.fragment,e),Jh(fe.$$.fragment,e),Jh(_t),Jh(we.$$.fragment,e),Jh(ze.$$.fragment,e),Jh(Ne.$$.fragment,e),Jh(Be.$$.fragment,e),Jh(Xe.$$.fragment,e),Jh(nt.$$.fragment,e),Jh(rt.$$.fragment,e),Jh(st.$$.fragment,e),Jh(ut.$$.fragment,e),pt=!1},d(e){e&&uh(t),Yh(f),Yh(x),Yh(A),Yh(J),kt.d(),Yh(ie),Yh(le),Yh(fe),_t&&_t.d(),e&&uh(ge),e&&uh(ve),Yh(we),Yh(ze),e&&uh(Oe),e&&uh(Ae),Yh(Ne),Yh(Be),Yh(Xe),Yh(nt),e&&uh(it),Yh(rt,e),e&&uh(at),Yh(st,e),e&&uh(lt),Yh(ut,e),mt.r(),ft.r(),ht.r(),gt=!1,Kf(vt)}}}function gI(e,t,n){const i=L$.defaults;let{defaultBlockTime:r}=t,{omitFeatures:o}=t;const a=r??i.blockTime;let s,{opts:c={kind:"Governor",...i,blockTime:a,proposalThreshold:"",quorumAbsolute:"",info:{...Wv}}}=t;let l,{errors:u}=t,d="erc721votes"===c.votes,p=c.decimals;return e.$$set=e=>{"defaultBlockTime"in e&&n(8,r=e.defaultBlockTime),"omitFeatures"in e&&n(2,o=e.omitFeatures),"opts"in e&&n(0,c=e.opts),"errors"in e&&n(1,u=e.errors)},e.$$.update=()=>{1537&e.$$.dirty[0]&&(d&&"erc721votes"!==c.votes?(n(0,c.decimals=p,c),n(4,l=!1)):d||"erc721votes"!==c.votes||(n(10,p=c.decimals),n(0,c.decimals=0,c),n(4,l=!0)),n(9,d="erc721votes"===c.votes))},[c,u,o,s,l,i,a,()=>{if(u){const e=u,t=u.quorumAbsolute;n(1,u.quorumAbsolute=void 0,u),s.focus(),setTimeout(()=>{u===e&&n(1,u.quorumAbsolute=t,u)},1e3)}},r,d,p,function(){c.name=this.value,n(0,c),n(9,d),n(10,p)},function(){c.delay=this.value,n(0,c),n(9,d),n(10,p)},function(){c.period=this.value,n(0,c),n(9,d),n(10,p)},function(){c.proposalThreshold=this.value,n(0,c),n(9,d),n(10,p)},function(){c.quorumMode=this.__value,n(0,c),n(9,d),n(10,p)},[[],[],[],[]],function(){c.quorumMode=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.quorumPercent=$h(this.value),n(0,c),n(9,d),n(10,p)},function(){c.quorumAbsolute=this.value,n(0,c),n(9,d),n(10,p)},function(e){Th[e?"unshift":"push"](()=>{s=e,n(3,s)})},function(){c.decimals=$h(this.value),n(0,c),n(9,d),n(10,p)},function(){c.settings=this.checked,n(0,c),n(9,d),n(10,p)},function(){c.storage=this.checked,n(0,c),n(9,d),n(10,p)},function(){c.crossChainExecution=this.checked,n(0,c),n(9,d),n(10,p)},function(){c.votes=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.votes=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.clockMode=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.blockTime=$h(this.value),n(0,c),n(9,d),n(10,p)},function(){c.clockMode=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.timelock=this.__value,n(0,c),n(9,d),n(10,p)},function(){c.timelock=this.__value,n(0,c),n(9,d),n(10,p)},function(t){e.$$.not_equal(c.timelock,t)&&(c.timelock=t,n(0,c),n(9,d),n(10,p))},function(t){e.$$.not_equal(c.upgradeable,t)&&(c.upgradeable=t,n(0,c),n(9,d),n(10,p))},function(t){e.$$.not_equal(c.info,t)&&(c.info=t,n(0,c),n(9,d),n(10,p))}]}function vI(e){let t,n,i;return{c(){t=mh("Privileged accounts will be able to pause the functionality marked as "),n=dh("code"),n.textContent="whenNotPaused",i=mh(". Useful for\n emergency response.")},m(e,r){lh(e,t,r),lh(e,n,r),lh(e,i,r)},p:Vf,d(e){e&&uh(t),e&&uh(n),e&&uh(i)}}}function bI(e){let t,n,i,r,o,a,s,c,l,u,d,p,m,f,h,g,v,b,$,y,k,_,x,w,C,I,E,S;function z(t){e[5](t)}g=new y_({props:{link:"https://docs.openzeppelin.com/contracts/5.x/api/utils#Pausable",$$slots:{default:[vI]},$$scope:{ctx:e}}});let O={required:e[2]};function A(t){e[6](t)}void 0!==e[0].access&&(O.access=e[0].access),b=new G_({props:O}),Th.push(()=>Gh(b,"access",z));let T={};function P(t){e[7](t)}void 0!==e[0].upgradeable&&(T.upgradeable=e[0].upgradeable),k=new ix({props:T}),Th.push(()=>Gh(k,"upgradeable",A));let U={errors:e[1]};return void 0!==e[0].info&&(U.info=e[0].info),w=new mx({props:U}),Th.push(()=>Gh(w,"info",P)),{c(){t=dh("section"),n=dh("h1"),n.textContent="Settings",i=fh(),r=dh("label"),o=dh("span"),o.textContent="Name",a=fh(),s=dh("input"),c=fh(),l=dh("section"),u=dh("h1"),u.textContent="Features",d=fh(),p=dh("div"),m=dh("label"),f=dh("input"),h=mh("\n Pausable\n "),Kh(g.$$.fragment),v=fh(),Kh(b.$$.fragment),y=fh(),Kh(k.$$.fragment),x=fh(),Kh(w.$$.fragment),vh(r,"class","labeled-input"),vh(t,"class","controls-section"),vh(f,"type","checkbox"),xh(m,"checked",e[0].pausable),vh(p,"class","checkbox-group"),vh(l,"class","controls-section")},m($,_){lh($,t,_),sh(t,n),sh(t,i),sh(t,r),sh(r,o),sh(r,a),sh(r,s),kh(s,e[0].name),lh($,c,_),lh($,l,_),sh(l,u),sh(l,d),sh(l,p),sh(p,m),sh(m,f),f.checked=e[0].pausable,sh(m,h),Xh(g,m,null),lh($,v,_),Xh(b,$,_),lh($,y,_),Xh(k,$,_),lh($,x,_),Xh(w,$,_),I=!0,E||(S=[gh(s,"input",e[3]),gh(f,"change",e[4])],E=!0)},p(e,[t]){1&t&&s.value!==e[0].name&&kh(s,e[0].name),1&t&&(f.checked=e[0].pausable);const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),g.$set(n),(!I||1&t)&&xh(m,"checked",e[0].pausable);const i={};4&t&&(i.required=e[2]),!$&&1&t&&($=!0,i.access=e[0].access,Dh(()=>$=!1)),b.$set(i);const r={};!_&&1&t&&(_=!0,r.upgradeable=e[0].upgradeable,Dh(()=>_=!1)),k.$set(r);const o={};2&t&&(o.errors=e[1]),!C&&1&t&&(C=!0,o.info=e[0].info,Dh(()=>C=!1)),w.$set(o)},i(e){I||(Wh(g.$$.fragment,e),Wh(b.$$.fragment,e),Wh(k.$$.fragment,e),Wh(w.$$.fragment,e),I=!0)},o(e){Jh(g.$$.fragment,e),Jh(b.$$.fragment,e),Jh(k.$$.fragment,e),Jh(w.$$.fragment,e),I=!1},d(e){e&&uh(t),e&&uh(c),e&&uh(l),Yh(g),e&&uh(v),Yh(b,e),e&&uh(y),Yh(k,e),e&&uh(x),Yh(w,e),E=!1,Kf(S)}}}function $I(e,t,n){let i,{opts:r={kind:"Custom",...B$.defaults,info:{...Wv}}}=t,{errors:o}=t;return e.$$set=e=>{"opts"in e&&n(0,r=e.opts),"errors"in e&&n(1,o=e.errors)},e.$$.update=()=>{1&e.$$.dirty&&n(2,i=B$.isAccessControlRequired(r))},[r,o,i,function(){r.name=this.value,n(0,r)},function(){r.pausable=this.checked,n(0,r)},function(t){e.$$.not_equal(r.access,t)&&(r.access=t,n(0,r))},function(t){e.$$.not_equal(r.upgradeable,t)&&(r.upgradeable=t,n(0,r))},function(t){e.$$.not_equal(r.info,t)&&(r.info=t,n(0,r))}]}const yI={emptyContract:()=>new Bg("MyToken"),build:e=>function(e){switch(e.kind){case"ERC20":return Wb(e);case"ERC721":return e$(e);case"ERC1155":return r$(e);case"Stablecoin":case"RealWorldAsset":return l$(e);case"Account":return h$(e);case"Governor":return x$(e);case"Custom":return T$(e);default:throw new Error("Unknown ERC")}}(e),print:e=>yb(e),optionsErrors:e=>e instanceof qg?e.messages:void 0,highlight:e=>ey.highlight("solidity",e).value,injectHyperlinks:function(e){const t=/"(@openzeppelin\/)(community-contracts\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,n=/Community Contracts commit ([a-fA-F0-9]{7,40})/,i=new RegExp(n.source,"g"),r=e.match(n)?.[1];let o=e.replace(/"(@openzeppelin\/)(contracts-upgradeable\/|contracts\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,`"<a class="import-link" href="https://github.com/OpenZeppelin/openzeppelin-$2blob/v${ry}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(/"(@openzeppelin\/)(tron-contracts-upgradeable\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,`"<a class="import-link" href="https://github.com/OpenZeppelin/tron-contracts-upgradeable/blob/v${q$}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(/"(@openzeppelin\/)(tron-contracts\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,`"<a class="import-link" href="https://github.com/OpenZeppelin/tron-contracts/blob/v${q$}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(/"(@chainlink\/)(ace\/)((?:(?!\.\.)[^/]+\/)*?[^/]*?)"/g,'"<a class="import-link" href="https://github.com/smartcontractkit/chainlink-ace/blob/v1.2.0/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"');return void 0!==r&&(o=o.replace(t,`"<a class="import-link" href="https://github.com/OpenZeppelin/openzeppelin-community-contracts/blob/${r}/contracts/$3" target="_blank" rel="noopener noreferrer">$1$2$3</a>"`).replace(i,'Community Contracts commit <a class="comment-link" href="https://github.com/OpenZeppelin/openzeppelin-community-contracts/tree/$1" target="_blank" rel="noopener noreferrer" title="View repository at commit $1">$1</a>')),o},highlightClass:"-solidity",fence:"solidity",controls:{ERC20:class extends tg{constructor(e){super(),eg(this,e,Vx,Hx,Yf,{opts:0,omitFeatures:1,errors:2},null,[-1,-1])}},ERC721:class extends tg{constructor(e){super(),eg(this,e,uw,lw,Yf,{opts:0,errors:1,omitFeatures:2},null,[-1,-1])}},ERC1155:class extends tg{constructor(e){super(),eg(this,e,xw,_w,Yf,{opts:0,errors:1,omitFeatures:2})}},Stablecoin:class extends tg{constructor(e){super(),eg(this,e,Qw,Yw,Yf,{opts:0,omitFeatures:1,errors:2},null,[-1,-1])}},RealWorldAsset:class extends tg{constructor(e){super(),eg(this,e,AC,OC,Yf,{opts:0,omitFeatures:1,errors:2},null,[-1,-1])}},Account:class extends tg{constructor(e){super(),eg(this,e,JC,WC,Yf,{opts:0,errors:1})}},Governor:class extends tg{constructor(e){super(),eg(this,e,gI,hI,Yf,{defaultBlockTime:8,omitFeatures:2,opts:0,errors:1},null,[-1,-1])}},Custom:class extends tg{constructor(e){super(),eg(this,e,$I,bI,Yf,{opts:0,errors:1})}}}};!function(e,t=document.body){(async function(e,t,n=document.body){const i=new Hf({name:`OpenZeppelin ${t}`,version:"1.0.0"},{},{autoResize:!1});document.documentElement.style.setProperty("--mcp-app-height","560px");const r=new Dg({target:n,props:{adapter:e,kind:t,mcpApp:i}}),o=new bf(window.parent,window.parent);i.connect(o).then(async()=>{const e=sg(i);console.info(`[mcp-apps] connected (${t}) hostCapabilities`,i.getHostCapabilities()),r.$set({hostConnected:!0,hostConnectError:void 0,hostSendCaps:e}),await i.sendSizeChanged({height:Mg})}).catch(e=>{const n=e instanceof Error?e.message:String(e);console.error(`[mcp-apps] connect failed for ${t}`,e),r.$set({hostConnected:!1,hostConnectError:n})})})(e,"__OZ_MCP_KIND__",t)}(yI)}();
|
|
19
19
|
|
|
20
20
|
</script>
|
|
21
21
|
</body>
|