(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}:root{--cor-eli-primaria-bg: #EEF3D0;--cor-eli-primaria-zebra: #F6F9E8;--cor-eli-primaria-suave: #BFC99C;--cor-eli-primaria-header: #ADCC44;--cor-eli-primaria-clara: #D4E290;--cor-eli-primaria-media: #ADCC44;--cor-eli-primaria-acao: #8AAF00;--cor-eli-primaria: #688C00;--cor-eli-primaria-escura: #4A6500;--cor-eli-primaria-texto: #2E3F00;--cor-eli-alerta-bg: #FAF3DF;--cor-eli-alerta-clara: #F5DC8A;--cor-eli-alerta: #DDB847;--cor-eli-alerta-forte: #8C6A00;--cor-eli-fundo: #F2F3EE;--cor-eli-borda: #D5D8CC;--cor-eli-borda-forte: #B5BAA8;--cor-eli-neutro: #5E6553;--cor-eli-neutro-escuro: #3E4436;--cor-eli-superficie: #FFFFFF;--cor-eli-sucesso: #2E7D32;--cor-eli-sucesso-bg: #E8F5E9;--cor-eli-erro: #C62828;--cor-eli-erro-bg: #FFEBEE;--cor-eli-info: #1565C0;--cor-eli-info-bg: #E3F2FD}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.eli-coordenadas{width:100%;display:flex;flex-direction:column;gap:8px}.eli-coordenadas__mapa-container{width:100%;border-radius:8px;overflow:hidden;border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative}.eli-coordenadas__mapa-container .leaflet-container{width:100%;height:100%;z-index:0}.eli-coordenadas__campos{display:flex;gap:12px;align-items:center}.eli-coordenadas__campo{flex:1}.eli-dh{position:relative;width:100%;font-family:var(--eli-font-family, "Google Sans", system-ui, sans-serif)}.eli-dh__campo{display:flex;align-items:center;gap:8px;padding:0 14px;height:56px;border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:8px;background:var(--cor-eli-superficie, #fff);cursor:pointer;transition:border-color .18s,box-shadow .18s;-webkit-user-select:none;user-select:none;position:relative}.eli-dh__campo:hover:not(.eli-dh__campo--desabilitado){border-color:var(--cor-eli-primaria-media, #ADCC44)}.eli-dh__campo--focado{border-color:var(--cor-eli-primaria, #688C00);box-shadow:0 0 0 3px color-mix(in srgb,var(--cor-eli-primaria, #688C00) 14%,transparent);outline:none}.eli-dh__campo--erro{border-color:var(--cor-eli-erro, #C62828);box-shadow:0 0 0 3px color-mix(in srgb,var(--cor-eli-erro, #C62828) 12%,transparent)}.eli-dh__campo--desabilitado{background:var(--cor-eli-fundo, #F2F3EE);cursor:not-allowed;opacity:.6}.eli-dh__icone{flex-shrink:0;width:20px;height:20px;color:var(--cor-eli-neutro, #5E6553);transition:color .18s}.eli-dh__campo--focado .eli-dh__icone{color:var(--cor-eli-primaria, #688C00)}.eli-dh__conteudo{flex:1;display:flex;flex-direction:column;min-width:0;gap:1px}.eli-dh__rotulo{font-size:11px;font-weight:600;color:var(--cor-eli-neutro, #5E6553);line-height:1.2;letter-spacing:.02em;text-transform:uppercase;transition:color .18s}.eli-dh__campo--focado .eli-dh__rotulo{color:var(--cor-eli-primaria, #688C00)}.eli-dh__campo--erro .eli-dh__rotulo{color:var(--cor-eli-erro, #C62828)}.eli-dh__valor{font-size:15px;font-weight:500;color:var(--cor-eli-neutro-escuro, #3E4436);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-dh__valor--vazio{color:var(--cor-eli-borda-forte, #B5BAA8);font-weight:400}.eli-dh__limpar{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:none;border-radius:50%;cursor:pointer;color:var(--cor-eli-borda-forte, #B5BAA8);transition:color .15s,background .15s;padding:0}.eli-dh__limpar:hover{color:var(--cor-eli-erro, #C62828);background:var(--cor-eli-erro-bg, #FFEBEE)}.eli-dh__mensagem{margin-top:4px;padding:0 14px;font-size:12px;line-height:1.4}.eli-dh__mensagem--erro{color:var(--cor-eli-erro, #C62828)}.eli-dh__mensagem--dica{color:var(--cor-eli-neutro, #5E6553)}.eli-dh__popover{position:absolute;top:calc(100% + 6px);left:0;z-index:2000;background:var(--cor-eli-superficie, #fff);border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:14px;box-shadow:0 4px 6px -1px #0000000f,0 10px 30px -4px #0000001f;overflow:hidden;min-width:300px;transform-origin:top left}.eli-dh-pop-enter-active,.eli-dh-pop-leave-active{transition:opacity .16s ease,transform .16s ease}.eli-dh-pop-enter-from,.eli-dh-pop-leave-to{opacity:0;transform:translateY(-6px) scale(.97)}.eli-dh__cal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;background:linear-gradient(135deg,var(--cor-eli-primaria, #688C00) 0%,var(--cor-eli-primaria-acao, #8AAF00) 100%)}.eli-dh__cal-nav{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:#ffffff2e;border-radius:8px;cursor:pointer;color:#fff;transition:background .15s;padding:0}.eli-dh__cal-nav:hover{background:#ffffff4d}.eli-dh__cal-nav svg{width:18px;height:18px}.eli-dh__cal-titulo{display:flex;flex-direction:column;align-items:center;gap:2px}.eli-dh__seletores{display:flex;align-items:center;gap:6px}.eli-dh__select{border:none;background:#ffffff24;color:#fff;font-family:inherit;font-size:14px;font-weight:700;padding:4px 8px;border-radius:6px;cursor:pointer;outline:none;transition:background .15s;-moz-appearance:none;appearance:none;-webkit-appearance:none}.eli-dh__select:hover{background:#ffffff42}.eli-dh__select option{background:var(--cor-eli-superficie, #fff);color:var(--cor-eli-neutro-escuro, #3E4436);font-weight:600}.eli-dh__cal-body{padding:12px 14px 14px}.eli-dh__cal-semana{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:6px}.eli-dh__cal-dia-sem{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--cor-eli-neutro, #5E6553);text-transform:uppercase;letter-spacing:.04em;height:28px}.eli-dh__cal-grade{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.eli-dh__cal-dia{display:flex;align-items:center;justify-content:center;height:36px;border:none;border-radius:8px;background:none;font-size:13px;font-weight:500;color:var(--cor-eli-neutro-escuro, #3E4436);cursor:pointer;transition:background .12s,color .12s;padding:0;font-family:inherit}.eli-dh__cal-dia:hover:not(:disabled):not(.eli-dh__cal-dia--fora):not(.eli-dh__cal-dia--selecionado){background:var(--cor-eli-primaria-bg, #EEF3D0);color:var(--cor-eli-primaria, #688C00)}.eli-dh__cal-dia--fora{color:var(--cor-eli-borda-forte, #B5BAA8);cursor:default}.eli-dh__cal-dia--hoje{color:var(--cor-eli-primaria, #688C00);font-weight:700;position:relative}.eli-dh__cal-dia--hoje:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);width:4px;height:4px;border-radius:50%;background:var(--cor-eli-primaria, #688C00)}.eli-dh__cal-dia--selecionado{background:var(--cor-eli-primaria, #688C00);color:#fff;font-weight:700}.eli-dh__cal-dia--selecionado.eli-dh__cal-dia--hoje:after{background:#fff}.eli-dh__cal-dia--desabilitado{opacity:.32;cursor:not-allowed}.eli-dh__hora-secao{border-top:1px solid var(--cor-eli-borda, #D5D8CC);padding:12px 16px 14px;display:flex;align-items:center;gap:10px}.eli-dh__hora-icone{width:16px;height:16px;color:var(--cor-eli-neutro, #5E6553);flex-shrink:0}.eli-dh__hora-campos{display:flex;align-items:center;gap:6px;flex:1}.eli-dh__hora-input{width:52px;padding:6px 8px;border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:6px;background:var(--cor-eli-superficie, #fff);text-align:center;font-size:16px;font-weight:600;font-family:inherit;color:var(--cor-eli-neutro-escuro, #3E4436);transition:border-color .15s;outline:none;-moz-appearance:textfield}.eli-dh__hora-input::-webkit-inner-spin-button,.eli-dh__hora-input::-webkit-outer-spin-button{-webkit-appearance:none}.eli-dh__hora-input:focus{border-color:var(--cor-eli-primaria, #688C00);box-shadow:0 0 0 2px color-mix(in srgb,var(--cor-eli-primaria, #688C00) 14%,transparent)}.eli-dh__hora-sep{font-size:20px;font-weight:700;color:var(--cor-eli-neutro, #5E6553);line-height:1;margin-bottom:2px}.eli-dh__rodape{padding:10px 14px 12px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--cor-eli-borda, #D5D8CC)}.eli-dh__btn{display:inline-flex;align-items:center;gap:5px;padding:7px 16px;border:none;border-radius:8px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .14s,opacity .14s}.eli-dh__btn--cancelar{background:var(--cor-eli-fundo, #F2F3EE);color:var(--cor-eli-neutro, #5E6553)}.eli-dh__btn--cancelar:hover{background:var(--cor-eli-borda, #D5D8CC)}.eli-dh__btn--confirmar{background:var(--cor-eli-primaria, #688C00);color:#fff}.eli-dh__btn--confirmar:hover{background:var(--cor-eli-primaria-escura, #4A6500)}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:var(--cor-eli-primaria-clara)}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:var(--cor-eli-superficie);border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:var(--cor-eli-primaria);border-color:var(--cor-eli-primaria)}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px var(--cor-eli-primaria-clara)}.eli-tabela{width:100%}.eli-tabela__table-wrapper{width:100%;overflow-x:auto}.eli-tabela__td--estados{padding:0}.eli-tabela__estados-inline{border:none;border-radius:0}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr .eli-tabela__td{background:var(--cor-eli-superficie, #ffffff)}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:var(--cor-eli-primaria-zebra, #F6F9E8)}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid var(--cor-eli-borda);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:var(--cor-eli-neutro-escuro, #3E4436);background:var(--cor-eli-primaria-suave, #BFC99C);border-bottom:2px solid var(--cor-eli-primaria-bg, #EEF3D0)}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-botao:focus-visible{outline:2px solid var(--cor-eli-primaria, #688C00);outline-offset:2px}.eli-tabela__th-botao--ativo{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__estado-icone{flex-shrink:0;color:#0f172a73}.eli-tabela__estado-icone--erro{color:var(--cor-eli-erro)}.eli-tabela__estado-icone--spin{animation:eli-tabela-spin 1s linear infinite}@keyframes eli-tabela-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:var(--cor-eli-primaria-clara);text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:var(--cor-eli-superficie);height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:var(--cor-eli-neutro)}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__busca-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela__filtro-icone-container{position:relative;display:inline-flex;align-items:center}.eli-tabela__filtro-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:var(--cor-eli-erro, #dc3545);color:#fff;font-size:.65rem;font-weight:700;line-height:16px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #0003}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:grab;-webkit-user-select:none;user-select:none;transition:box-shadow .15s ease,opacity .15s ease,border-color .15s ease}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:6px}.eli-tabela-modal-colunas__item:hover{border-color:var(--cor-eli-borda-forte);box-shadow:0 2px 8px #0f172a14}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item--invisivel{opacity:.72}.eli-tabela-modal-colunas__item--arrastando{opacity:.15;border-style:dashed;border-color:var(--cor-eli-primaria-media)}.eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-borda-forte);flex-shrink:0;transition:color .15s ease}.eli-tabela-modal-colunas__item:hover .eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-neutro)}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0;font-size:.875rem;color:var(--cor-eli-neutro-escuro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-tabela-modal-colunas__item-badge-icone{flex-shrink:0}.eli-tabela-modal-colunas__item-badge-icone--visivel{color:var(--cor-eli-primaria-acao)}.eli-tabela-modal-colunas__item-badge-icone--invisivel{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;text-align:center;font-size:.8rem;color:var(--cor-eli-neutro);line-height:1.5}.eli-tabela-modal-colunas__vazio-icone{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio-icone--ok{color:var(--cor-eli-primaria-acao)}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 16px)}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--cor-eli-borda);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__botao{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 16px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease,border-color .2s ease,color .2s ease}.eli-tabela-modal-colunas__botao--sec{color:var(--cor-eli-neutro-escuro)}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:var(--cor-eli-fundo);border-color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__botao--sec:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela-modal-colunas__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-colunas__botao--prim:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:none;border-top:1px solid var(--cor-eli-borda)}}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(820px,100%);background:var(--cor-eli-superficie);border-radius:16px;border:1px solid var(--cor-eli-borda);box-shadow:0 24px 64px #0f172a38;overflow:hidden;display:flex;flex-direction:column}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--cor-eli-borda);background:var(--cor-eli-primaria-header, #ADCC44)}.eli-tabela-modal-colunas__header-info{display:flex;align-items:center;gap:8px}.eli-tabela-modal-colunas__header-icone{color:var(--cor-eli-primaria-escura);flex-shrink:0}.eli-tabela-modal-colunas__titulo{font-size:.95rem;font-weight:600;color:var(--cor-eli-primaria-texto);margin:0}.eli-tabela-modal-colunas__fechar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:var(--cor-eli-primaria-escura);transition:background .2s ease}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a1a}.eli-tabela-modal-colunas__fechar:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-tabela-modal-colunas__instrucao{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--cor-eli-fundo);border-bottom:1px solid var(--cor-eli-borda);font-size:.78rem;color:var(--cor-eli-neutro);line-height:1.4}.eli-tabela-modal-colunas__instrucao-icone{flex-shrink:0;color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1}.eli-tabela-modal-colunas__coluna{display:flex;flex-direction:column;padding:12px}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:1px solid var(--cor-eli-borda)}.eli-tabela-modal-colunas__coluna-cabecalho{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px;margin-bottom:8px}.eli-tabela-modal-colunas__coluna-cabecalho--visiveis{color:var(--cor-eli-primaria-escura);background:var(--cor-eli-primaria-bg)}.eli-tabela-modal-colunas__coluna-cabecalho--invisiveis{color:var(--cor-eli-neutro-escuro);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__coluna-contador{margin-left:auto;font-size:.72rem;font-weight:700;padding:1px 7px;border-radius:9999px;background:#0f172a14;color:inherit}.eli-tabela-modal-colunas__lista{flex:1;min-height:220px;border:1.5px dashed var(--cor-eli-borda);border-radius:10px;padding:8px;position:relative;overflow:hidden;transition:border-color .2s ease,background .2s ease}.eli-tabela-modal-colunas__lista--visiveis{background:#688c0005}.eli-tabela-modal-colunas__lista--invisiveis{background:var(--cor-eli-fundo)}.eli-tabela-modal-filtro__formula-container{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto}.eli-tabela-modal-filtro__formula-label{font-size:.82rem;font-weight:500;color:#0f172a8c;white-space:nowrap;flex-shrink:0}.eli-tabela-modal-filtro__formula-ajuda{position:relative;display:inline-flex;align-items:center;color:#0f172a59;cursor:help;transition:color .15s}.eli-tabela-modal-filtro__formula-ajuda:hover,.eli-tabela-modal-filtro__formula-ajuda:focus-visible{color:var(--cor-eli-primaria);outline:none}.eli-tabela-modal-filtro__formula-ajuda:hover .eli-tabela-modal-filtro__formula-tooltip,.eli-tabela-modal-filtro__formula-ajuda:focus-visible .eli-tabela-modal-filtro__formula-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}.eli-tabela-modal-filtro__formula-tooltip{position:absolute;bottom:calc(100% + 10px);right:0;width:280px;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;font-size:.8rem;line-height:1.55;z-index:100;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 30px #00000059}.eli-tabela-modal-filtro__formula-tooltip:after{content:"";position:absolute;top:100%;right:6px;border:6px solid transparent;border-top-color:#0f172a}.eli-tabela-modal-filtro__formula-tooltip strong{font-size:.82rem;color:var(--cor-eli-fundo);display:block;margin-bottom:6px}.eli-tabela-modal-filtro__formula-tooltip p{margin:6px 0 4px;color:#94a3b8}.eli-tabela-modal-filtro__formula-tooltip ul{margin:4px 0 8px 14px;padding:0}.eli-tabela-modal-filtro__formula-tooltip li{margin-bottom:3px;color:#cbd5e1}.eli-tabela-modal-filtro__formula-tooltip code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#7dd3fc;font-size:.78rem;background:#ffffff12;border-radius:4px;padding:1px 4px}.eli-tabela-modal-filtro__formula-input{width:220px;height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;background:var(--cor-eli-fundo);transition:border-color .15s,background .15s;box-sizing:border-box}.eli-tabela-modal-filtro__formula-input:focus{outline:none;border-color:var(--cor-eli-primaria);background:#fff}.eli-tabela-modal-filtro__formula-tooltip-nota{margin-top:8px;opacity:.75}.eli-tabela-modal-filtro__footer{display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__footer-spacer{flex:1}.eli-tabela-modal-filtro__botao{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s,color .15s,border-color .15s}.eli-tabela-modal-filtro__botao:disabled{opacity:.45;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover:not(:disabled),.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0d}.eli-tabela-modal-filtro__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-filtro__botao--prim:hover:not(:disabled),.eli-tabela-modal-filtro__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-filtro__botao--perigo{color:#dc2626d9;border-color:#dc26262e;background:#fff}.eli-tabela-modal-filtro__botao--perigo:hover:not(:disabled),.eli-tabela-modal-filtro__botao--perigo:focus-visible{background:#ef44440f;border-color:#dc26264d;color:#dc2626}@media(max-width:600px){.eli-tabela-modal-filtro__lista{grid-template-columns:1fr}.eli-tabela-modal-filtro__rodape-filtros{flex-direction:column;align-items:stretch}.eli-tabela-modal-filtro__acoes{flex-wrap:wrap}}.eli-tabela-modal-filtro-enter-active,.eli-tabela-modal-filtro-leave-active{transition:opacity .2s ease}.eli-tabela-modal-filtro-enter-active .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-active .eli-tabela-modal-filtro__modal{transition:transform .2s ease,opacity .2s ease}.eli-tabela-modal-filtro-enter-from,.eli-tabela-modal-filtro-leave-to{opacity:0}.eli-tabela-modal-filtro-enter-from .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-to .eli-tabela-modal-filtro__modal{transform:scale(.96);opacity:0}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__header-titulo{display:flex;align-items:center;gap:10px}.eli-tabela-modal-filtro__titulo{font-size:1rem;font-weight:600;margin:0;color:#0f172ae6}.eli-tabela-modal-filtro__header-icone{color:var(--cor-eli-primaria);flex-shrink:0}.eli-tabela-modal-filtro__contador{font-size:.75rem;font-weight:500;color:var(--cor-eli-primaria);background:var(--cor-eli-primaria-bg);padding:2px 8px;border-radius:10px;letter-spacing:.01em}.eli-tabela-modal-filtro__fechar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;color:#0f172a8c;transition:background .15s,color .15s}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f;color:#0f172ae6}.eli-tabela-modal-filtro__conteudo{padding:20px}.eli-tabela-modal-filtro__vazio{opacity:.65;font-size:.85rem;padding:12px 0 4px}.eli-tabela-modal-filtro__estado-vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:#0f172a59;border:1px dashed rgba(15,23,42,.12);border-radius:10px;background:#0f172a04}.eli-tabela-modal-filtro__estado-vazio span{font-size:.85rem;font-weight:500}.eli-tabela-modal-filtro__lista{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eli-tabela-modal-filtro__linha{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#0f172a04;transition:border-color .15s}.eli-tabela-modal-filtro__linha:hover{border-color:var(--cor-eli-primaria-clara)}.eli-tabela-modal-filtro__linha-header{display:flex;align-items:center;gap:8px}.eli-tabela-modal-filtro__rotulo-filtro{font-size:.82rem;font-weight:500;color:#0f172aa6;flex:1;min-width:0}.eli-tabela-modal-filtro__id-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.72rem;font-weight:600;letter-spacing:.01em;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:#0f172a59;transition:background .15s,color .15s;margin-left:auto;flex-shrink:0}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#ef444414;color:#dc2626e6;border-color:#ef444433}.eli-tabela-modal-filtro__rodape-filtros{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.07);display:flex;gap:12px;align-items:flex-end}.eli-tabela-modal-filtro__acoes{display:flex;gap:8px;align-items:center;flex-shrink:0}.eli-tabela-modal-filtro__select{height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff;font-size:.875rem;color:#0f172ad9;transition:border-color .15s}.eli-tabela-modal-filtro__select:focus{outline:none;border-color:var(--cor-eli-primaria)}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:var(--cor-eli-superficie);font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--cor-eli-neutro);font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--cor-eli-primaria);background:var(--cor-eli-superficie);color:var(--cor-eli-primaria);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:var(--cor-eli-primaria-bg)}.eli-tabela__acao-inferior:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-fb-painel{position:fixed;bottom:68px;right:24px;z-index:99999;width:360px;background:#fff;border-radius:14px;box-shadow:0 12px 40px #00000026,0 2px 8px #00000014;overflow:hidden;animation:eliFbSlideUp .25s ease;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-painel-header{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.eli-fb-painel-header h3{margin:0;font-size:14px;font-weight:700;letter-spacing:.02em}.eli-fb-painel-fechar{background:#ffffff26;border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:background .15s}.eli-fb-painel-fechar:hover{background:#ffffff4d}.eli-fb-painel-corpo{padding:16px 18px}.eli-fb-el-info{background:#f5f5f5;border-radius:8px;padding:10px 12px;margin-bottom:14px;font-size:11px;color:#616161;line-height:1.6}.eli-fb-el-info code{background:#e0e0e0;padding:1px 5px;border-radius:3px;font-size:10.5px;font-family:SFMono-Regular,Consolas,monospace;color:#333}.eli-fb-el-info strong{color:#424242}.eli-fb-textarea{width:100%;min-height:80px;max-height:160px;border:1.5px solid #E0E0E0;border-radius:8px;padding:10px 12px;font-size:13px;font-family:Inter,Segoe UI,system-ui,sans-serif;resize:vertical;outline:none;transition:border-color .15s;color:#333;box-sizing:border-box}.eli-fb-textarea:focus{border-color:#c62828;box-shadow:0 0 0 3px #c6282814}.eli-fb-textarea::placeholder{color:#bdbdbd}.eli-fb-painel-acoes{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.eli-fb-btn-salvar{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;border:none;border-radius:8px;padding:8px 18px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}.eli-fb-btn-salvar:hover{transform:translateY(-1px);box-shadow:0 3px 10px #c628284d}.eli-fb-btn-salvar:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.eli-fb-btn-cancelar{background:#f5f5f5;color:#616161;border:1px solid #E0E0E0;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.eli-fb-btn-cancelar:hover{background:#eee}.eli-feedback-fab{position:fixed;bottom:24px;right:24px;z-index:99999;display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-botao-principal{width:34px;height:34px;border-radius:50%;border:none;background:linear-gradient(135deg,#c62828,#e53935);color:#fff;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #c6282859,0 1px 3px #0000001f;transition:all .2s ease;display:flex;align-items:center;justify-content:center;position:relative}.eli-fb-botao-principal:hover{transform:scale(1.08);box-shadow:0 6px 20px #c6282873,0 2px 6px #00000026}.eli-fb-botao-principal:active{transform:scale(.95)}.eli-fb-badge{position:absolute;top:-5px;right:-5px;background:#1565c0;color:#fff;font-size:9px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1;box-shadow:0 1px 4px #0003}.eli-fb-acoes{display:flex;flex-direction:column;align-items:flex-end;gap:6px;animation:eliFbSlideUp .2s ease}.eli-fb-botao-ico{width:34px;height:34px;border-radius:50%;border:none;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease;box-shadow:0 2px 8px #00000026}.eli-fb-botao-ico:hover{transform:scale(1.1);box-shadow:0 3px 12px #00000038}.eli-fb-botao-exportar{background:#1565c0;color:#fff}.eli-fb-botao-feedback{background:linear-gradient(135deg,#c62828,#e53935);color:#fff}.eli-fb-botao-copiar{background:#2e7d32;color:#fff}.eli-fb-botao-limpar{background:#424242;color:#fff}.eli-fb-tooltip-selecao{position:absolute;bottom:14px;right:64px;background:linear-gradient(135deg,#c62828,#b71c1c);color:#fff;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:500;white-space:nowrap;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 16px #c6282859;animation:eliFbSlideUp .2s ease;pointer-events:none}.eli-fb-tooltip-selecao:after{content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#b71c1c;border-right:none}.eli-fb-tooltip-esc{font-size:10px;opacity:.7}.eli-fb-tooltip-esc kbd{background:#fff3;border-radius:3px;padding:1px 5px;font-size:10px;font-weight:700;font-family:inherit}@keyframes eliFbSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes eliFbSlideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); import { defineComponent as Q, openBlock as $, createBlock as re, mergeProps as je, withCtx as ue, renderSlot as Qe, computed as z, resolveComponent as Y, createVNode as M, createElementVNode as p, createTextVNode as ne, toDisplayString as R, createCommentVNode as K, ref as B, watch as be, onMounted as We, onBeforeUnmount as wt, createElementBlock as S, normalizeStyle as st, nextTick as _r, Teleport as yr, Transition as da, withModifiers as ce, withKeys as ut, Fragment as ge, renderList as $e, normalizeClass as Ue, createStaticVNode as Nm, createSlots as Pm, inject as Am, h as mr, resolveDynamicComponent as Re, normalizeProps as Cm, withDirectives as dn, vModelText as kr, onUnmounted as Zm, TransitionGroup as wo, vModelSelect as Mm } from "vue"; import { VBtn as fr } from "vuetify/components/VBtn"; import { VBadge as Lm } from "vuetify/components/VBadge"; import { VCard as ma, VCardTitle as fa, VCardText as pa, VCardActions as va } from "vuetify/components/VCard"; import { VSwitch as Fm, VTextarea as Rm, VSelect as ga, VChip as Bm } from "vuetify/components"; import { VSwitch as Vm } from "vuetify/components/VSwitch"; import Ze from "leaflet"; import { VIcon as Io } from "vuetify/components/VIcon"; import { VTextField as mn } from "vuetify/components/VTextField"; import { VTextarea as Jm } from "vuetify/components/VTextarea"; import { VSelect as ha } from "vuetify/components/VSelect"; import { VChip as qm } from "vuetify/components/VChip"; import { VContainer as Gm } from "vuetify/components/VGrid"; const Km = Q({ name: "EliBotao", inheritAttrs: !1, props: { color: { type: String, default: "primary" }, variant: { type: String, default: "elevated" }, size: { type: String, default: "default" }, disabled: { type: Boolean, default: !1 }, loading: { type: Boolean, default: !1 } } }), ee = (e, n) => { const r = e.__vccOpts || e; for (const [o, t] of n) r[o] = t; return r; }; function Wm(e, n, r, o, t, i) { return $(), re(fr, je({ color: e.color, variant: e.variant, size: e.size, disabled: e.disabled, loading: e.loading }, e.$attrs, { class: "eli-botao text-none pt-1" }), { default: ue(() => [ Qe(e.$slots, "default") ]), _: 3 }, 16, ["color", "variant", "size", "disabled", "loading"]); } const ba = /* @__PURE__ */ ee(Km, [["render", Wm]]), zo = { suave: "4px", pill: "10px" }, Xm = Q({ name: "EliBadge", inheritAttrs: !1, props: { color: { type: String, default: "primary" }, location: { type: String, default: "top right" }, offsetX: { type: String, default: "0" }, offsetY: { type: String, default: "0" }, dot: { type: Boolean, default: !1 }, visible: { type: Boolean, default: !0 }, badge: { type: [String, Number], default: void 0 }, /** 🔥 NOVO: controla só o radius */ radius: { type: String, default: "suave" } }, setup(e) { const n = z(() => e.radius in zo ? zo[e.radius] : e.radius), r = z(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = z(() => ({ "--eli-badge-radius": n.value })); return { showBadge: r, badgeStyle: o }; } }); function Hm(e, n, r, o, t, i) { return e.showBadge ? ($(), re(Lm, je({ key: 0, color: e.color }, e.$attrs, { location: e.location, "offset-x": e.offsetX, "offset-y": e.offsetY, dot: e.dot, content: e.badge, style: e.badgeStyle, class: "eli-badge" }), { default: ue(() => [ Qe(e.$slots, "default") ]), _: 3 }, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : Qe(e.$slots, "default", { key: 1 }); } const Sr = /* @__PURE__ */ ee(Xm, [["render", Hm]]), Ym = Q({ name: "EliCartao", components: { EliBadge: Sr }, inheritAttrs: !1, props: { /** Título de fallback caso o slot `titulo` não seja usado. */ titulo: { type: String, default: "" }, /** * Status semântico do cartão. * Usado para cor/label e para permitir filtros por status. */ status: { type: String, required: !0 }, /** Variante visual do v-card (Vuetify). */ variant: { type: String, default: "outlined" } }, emits: { /** Emit opcional para padronizar clique no cartão. */ clicar: (e) => !0 }, setup(e, { emit: n }) { const r = z(() => e.status), o = z(() => { switch (e.status) { case "novo": return "primary"; case "rascunho": return "secondary"; case "vendido": return "success"; case "cancelado": return "error"; } }), t = z(() => `eli-cartao--${e.status}`); function i() { n("clicar", e.status); } return { rotuloStatus: r, corStatus: o, classeStatus: t, onClick: i }; } }), Qm = { class: "eli-cartao__titulo-texto" }, ef = { class: "eli-cartao__status" }; function tf(e, n, r, o, t, i) { const a = Y("EliBadge"); return $(), re(ma, je({ class: ["eli-cartao", e.classeStatus], variant: e.variant }, e.$attrs), { default: ue(() => [ M(fa, { class: "eli-cartao__titulo" }, { default: ue(() => [ p("div", Qm, [ Qe(e.$slots, "titulo", {}, () => [ ne(R(e.titulo), 1) ]) ]), p("div", ef, [ M(a, { badge: e.rotuloStatus, radius: "pill", color: e.corStatus }, { default: ue(() => [...n[0] || (n[0] = [ p("span", null, null, -1) ])]), _: 1 }, 8, ["badge", "color"]) ]) ]), _: 3 }), M(pa, { class: "eli-cartao__conteudo" }, { default: ue(() => [ Qe(e.$slots, "default") ]), _: 3 }), e.$slots.acoes ? ($(), re(va, { key: 0, class: "eli-cartao__acoes" }, { default: ue(() => [ Qe(e.$slots, "acoes") ]), _: 3 })) : K("", !0) ]), _: 3 }, 16, ["variant", "class"]); } const nf = /* @__PURE__ */ ee(Ym, [["render", tf]]), rf = Q({ name: "EliEntradaConfirmacao", components: { VSwitch: Fm }, inheritAttrs: !1, props: { value: { type: Boolean, default: !1 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = z({ get: () => e.value, set: (i) => { r("update:value", i), r("input", i), r("change", i); } }), t = z(() => { var i, a, l; return o.value && ((i = e.opcoes) != null && i.rotuloAtivo) ? e.opcoes.rotuloAtivo : !o.value && ((a = e.opcoes) != null && a.rotuloInativo) ? e.opcoes.rotuloInativo : ((l = e.opcoes) == null ? void 0 : l.rotulo) ?? ""; }); return { attrs: n, emit: r, localValue: o, rotuloExibido: t }; } }); function of(e, n, r, o, t, i) { var a, l, s, u; return $(), re(Vm, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (d) => e.localValue = d), label: e.rotuloExibido, color: ((a = e.opcoes) == null ? void 0 : a.cor) ?? "primary", disabled: !!((l = e.opcoes) != null && l.desabilitado) || !!((s = e.opcoes) != null && s.apenasLeitura), density: ((u = e.opcoes) == null ? void 0 : u.densidade) ?? "comfortable", "hide-details": "" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "color", "disabled", "density"]); } const af = /* @__PURE__ */ ee(rf, [["render", of]]), $a = "https://paiol.idz.one/geo", lf = 7, uf = 10, sf = 13, Do = /* @__PURE__ */ new Map(); async function _a(e) { const n = Do.get(e); if (n) return n; try { const r = await fetch(e); if (!r.ok) return null; const o = await r.json(); return Do.set(e, o), o; } catch { return null; } } function cf() { return { color: "#1565C0", weight: 1.5, fillColor: "#42A5F5", fillOpacity: 0.05, dashArray: "4 4" }; } function df() { return { color: "#78909C", weight: 0.8, fillColor: "#B0BEC5", fillOpacity: 0.03 }; } function mf(e) { return e >= sf ? "municipios_uhd" : e >= uf ? "municipios_hd" : "municipios"; } function ff(e, n) { !n.estados && !n.municipios || pf(e, n); } async function pf(e, n) { const r = await _a(`${$a}/estados.geojson`); if (!r) return; const o = [], t = Ze.geoJSON(r, { style: cf, onEachFeature: (i, a) => { var s; const l = String(((s = i.properties) == null ? void 0 : s.codarea) ?? ""); l && o.push({ codigo: l, bounds: a.getBounds() }); } }); n.estados && t.addTo(e), n.municipios && vf(e, o); } function vf(e, n) { const r = { municipios: Ze.layerGroup(), municipios_hd: Ze.layerGroup(), municipios_uhd: Ze.layerGroup() }, o = { municipios: /* @__PURE__ */ new Set(), municipios_hd: /* @__PURE__ */ new Set(), municipios_uhd: /* @__PURE__ */ new Set() }; let t = null; const i = () => { const a = e.getZoom(); if (a < lf) { t && e.hasLayer(r[t]) && e.removeLayer(r[t]), t = null; return; } const l = mf(a); l !== t && (t && e.hasLayer(r[t]) && e.removeLayer(r[t]), r[l].addTo(e), t = l); const s = e.getBounds(); for (const u of n) o[l].has(u.codigo) || s.intersects(u.bounds) && (o[l].add(u.codigo), gf(l, u.codigo, r[l])); }; e.on("moveend", i), e.on("zoomend", i), i(); } async function gf(e, n, r) { const o = await _a(`${$a}/${e}/${n}.geojson`); o && r.addLayer(Ze.geoJSON(o, { style: df })); } const rn = { latitude: -15.7801, longitude: -47.9292 }, hf = 4, bf = 300; function $f(e, n) { return e >= -90 && e <= 90 && n >= -180 && n <= 180; } function jo(e) { return e.toFixed(6).replace(".", ","); } function Oo(e) { if (typeof e == "number") return Number.isNaN(e) ? null : e; const n = e.replace(",", "."), r = Number.parseFloat(n); return Number.isNaN(r) ? null : r; } async function Eo() { try { return await _f(); } catch { return await yf(); } } function _f() { return new Promise((e, n) => { if (!navigator.geolocation) return n(new Error("Geolocation indisponível")); navigator.geolocation.getCurrentPosition( (r) => e({ latitude: r.coords.latitude, longitude: r.coords.longitude }), (r) => n(r), { enableHighAccuracy: !0, timeout: 1e4 } ); }); } async function yf() { const e = await fetch("https://ipapi.co/json/"); if (!e.ok) throw new Error(`GeoIP falhou: ${e.status}`); const n = await e.json(); return { latitude: n.latitude, longitude: n.longitude }; } function kf({ value: e, opcoes: n, emit: r, mapaRef: o }) { const t = B(!1); let i = null, a = null; const l = z(() => { var h; return ((h = n()) == null ? void 0 : h.alturaMapa) ?? bf; }), s = z(() => { var h; return ((h = n()) == null ? void 0 : h.zoom) ?? hf; }), u = z(() => { var h; return !!((h = n()) != null && h.apenasLeitura); }), d = z(() => e() != null), c = z(() => { const h = e(); return h ? jo(h.latitude) : ""; }), m = z(() => { const h = e(); return h ? jo(h.longitude) : ""; }); function f(h, b) { if (!$f(h, b)) return; const I = { formato: "decimal", datum: "EPSG:4326", latitude: Number.parseFloat(h.toFixed(6)), longitude: Number.parseFloat(b.toFixed(6)) }; r("update:value", I), r("input", I), r("change", I); } function g() { r("update:value", null), r("input", null), r("change", null), y(); } function y() { a && i && (i.removeLayer(a), a = null); } function N(h, b) { i && (a = Ze.marker([h, b], { draggable: !u.value }).addTo(i), a.on("dragend", () => { if (!a) return; const I = a.getLatLng(); f(I.lat, I.lng); }), i.setView([h, b], i.getZoom())); } function x(h) { var I; const b = Oo(h); b !== null && f(b, ((I = e()) == null ? void 0 : I.longitude) ?? rn.longitude); } function D(h) { var I; const b = Oo(h); b !== null && f(((I = e()) == null ? void 0 : I.latitude) ?? rn.latitude, b); } function L(h, b) { if (!i) return; if (!a) { N(h, b); return; } const I = a.getLatLng(); I.lat === h && I.lng === b || (a.setLatLng([h, b]), i.setView([h, b], i.getZoom())); } async function A() { t.value = !0; try { const h = await Eo(); f(h.latitude, h.longitude); } finally { t.value = !1; } } async function C() { var E; if (!o.value) return; const h = e(), b = h != null; let I, G, j = s.value; if (b) I = h.latitude, G = h.longitude, j = Math.max(j, 13); else try { const O = await Eo(); I = O.latitude, G = O.longitude, j = 13; } catch { I = rn.latitude, G = rn.longitude; } i = Ze.map(o.value).setView([I, G], j); const Z = Ze.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: "© OpenStreetMap", maxZoom: 19 }), pe = Ze.tileLayer( "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", { attribution: "© Esri", maxZoom: 19 } ); Z.addTo(i), Ze.control.layers({ Mapa: Z, Satélite: pe }).addTo(i), b && N(h.latitude, h.longitude), i.on("click", (O) => { u.value || f(O.latlng.lat, O.latlng.lng); }); const Ie = (E = n()) == null ? void 0 : E.camadas; Ie && ff(i, Ie); } return be( e, (h) => { if (!h) { y(); return; } L(h.latitude, h.longitude); }, { deep: !0 } ), We(() => { if (C(), o.value) { const h = new ResizeObserver(() => i == null ? void 0 : i.invalidateSize()); h.observe(o.value), wt(() => h.disconnect()); } }), wt(() => { i && (i.remove(), i = null, a = null); }), { alturaEfetiva: l, geolocalizando: t, possuiValor: d, latDisplay: c, lngDisplay: m, onLatChange: x, onLngChange: D, usarMinhaLocalizacao: A, limpar: g }; } const Sf = Q({ name: "EliEntradaCoordenadas", inheritAttrs: !1, props: { value: { type: Object, default: null }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = B(null), t = kf({ value: () => e.value, opcoes: () => e.opcoes, emit: r, mapaRef: o }); return { attrs: n, mapaRef: o, ...t }; } }), wf = { class: "eli-coordenadas" }, If = { key: 0, class: "v-label", style: { "margin-bottom": "4px" } }, zf = { ref: "mapaRef", style: { width: "100%", height: "100%" } }, Df = { class: "eli-coordenadas__campos" }; function jf(e, n, r, o, t, i) { var a, l, s, u, d; return $(), S("div", wf, [ (a = e.opcoes) != null && a.rotulo ? ($(), S("div", If, R(e.opcoes.rotulo), 1)) : K("", !0), p("div", { class: "eli-coordenadas__mapa-container", style: st({ height: `${e.alturaEfetiva}px` }) }, [ p("div", zf, null, 512) ], 4), p("div", Df, [ M(mn, je({ "model-value": e.latDisplay, label: "Latitude", type: "text", inputmode: "decimal", readonly: !!((l = e.opcoes) != null && l.apenasLeitura), density: "comfortable", variant: "outlined", class: "eli-coordenadas__campo", "hide-details": "" }, e.attrs, { "onUpdate:modelValue": e.onLatChange }), null, 16, ["model-value", "readonly", "onUpdate:modelValue"]), M(mn, je({ "model-value": e.lngDisplay, label: "Longitude", type: "text", inputmode: "decimal", readonly: !!((s = e.opcoes) != null && s.apenasLeitura), density: "comfortable", variant: "outlined", class: "eli-coordenadas__campo", "hide-details": "" }, e.attrs, { "onUpdate:modelValue": e.onLngChange }), null, 16, ["model-value", "readonly", "onUpdate:modelValue"]), M(fr, { icon: "", variant: "tonal", color: "primary", size: "small", title: "Usar minha localização", loading: e.geolocalizando, disabled: !!((u = e.opcoes) != null && u.apenasLeitura), onClick: e.usarMinhaLocalizacao }, { default: ue(() => [ M(Io, null, { default: ue(() => [...n[0] || (n[0] = [ ne("mdi-crosshairs-gps", -1) ])]), _: 1 }) ]), _: 1 }, 8, ["loading", "disabled", "onClick"]), e.possuiValor && !((d = e.opcoes) != null && d.apenasLeitura) ? ($(), re(fr, { key: 0, icon: "", variant: "tonal", color: "error", size: "small", title: "Limpar localização", onClick: e.limpar }, { default: ue(() => [ M(Io, null, { default: ue(() => [...n[1] || (n[1] = [ ne("mdi-close", -1) ])]), _: 1 }) ]), _: 1 }, 8, ["onClick"])) : K("", !0) ]) ]); } const Of = /* @__PURE__ */ ee(Sf, [["render", jf]]); function ya(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var un = { exports: {} }, Ef = un.exports, xo; function ka() { return xo || (xo = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Ef, (function() { var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", l = "minute", s = "hour", u = "day", d = "week", c = "month", m = "quarter", f = "year", g = "date", y = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) { var O = ["th", "st", "nd", "rd"], k = E % 100; return "[" + E + (O[(k - 20) % 10] || O[k] || O[0]) + "]"; } }, L = function(E, O, k) { var U = String(E); return !U || U.length >= O ? E : "" + Array(O + 1 - U.length).join(k) + E; }, A = { s: L, z: function(E) { var O = -E.utcOffset(), k = Math.abs(O), U = Math.floor(k / 60), T = k % 60; return (O <= 0 ? "+" : "-") + L(U, 2, "0") + ":" + L(T, 2, "0"); }, m: function E(O, k) { if (O.date() < k.date()) return -E(k, O); var U = 12 * (k.year() - O.year()) + (k.month() - O.month()), T = O.clone().add(U, c), F = k - T < 0, q = O.clone().add(U + (F ? -1 : 1), c); return +(-(U + (k - T) / (F ? T - q : q - T)) || 0); }, a: function(E) { return E < 0 ? Math.ceil(E) || 0 : Math.floor(E); }, p: function(E) { return { M: c, y: f, w: d, d: u, D: g, h: s, m: l, s: a, ms: i, Q: m }[E] || String(E || "").toLowerCase().replace(/s$/, ""); }, u: function(E) { return E === void 0; } }, C = "en", h = {}; h[C] = D; var b = "$isDayjsObject", I = function(E) { return E instanceof pe || !(!E || !E[b]); }, G = function E(O, k, U) { var T; if (!O) return C; if (typeof O == "string") { var F = O.toLowerCase(); h[F] && (T = F), k && (h[F] = k, T = F); var q = O.split("-"); if (!T && q.length > 1) return E(q[0]); } else { var te = O.name; h[te] = O, T = te; } return !U && T && (C = T), T || !U && C; }, j = function(E, O) { if (I(E)) return E.clone(); var k = typeof O == "object" ? O : {}; return k.date = E, k.args = arguments, new pe(k); }, Z = A; Z.l = G, Z.i = I, Z.w = function(E, O) { return j(E, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset }); }; var pe = (function() { function E(k) { this.$L = G(k.locale, null, !0), this.parse(k), this.$x = this.$x || k.x || {}, this[b] = !0; } var O = E.prototype; return O.parse = function(k) { this.$d = (function(U) { var T = U.date, F = U.utc; if (T === null) return /* @__PURE__ */ new Date(NaN); if (Z.u(T)) return /* @__PURE__ */ new Date(); if (T instanceof Date) return new Date(T); if (typeof T == "string" && !/Z$/i.test(T)) { var q = T.match(N); if (q) { var te = q[2] - 1 || 0, le = (q[7] || "0").substring(0, 3); return F ? new Date(Date.UTC(q[1], te, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, le)) : new Date(q[1], te, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, le); } } return new Date(T); })(k), this.init(); }, O.init = function() { var k = this.$d; this.$y = k.getFullYear(), this.$M = k.getMonth(), this.$D = k.getDate(), this.$W = k.getDay(), this.$H = k.getHours(), this.$m = k.getMinutes(), this.$s = k.getSeconds(), this.$ms = k.getMilliseconds(); }, O.$utils = function() { return Z; }, O.isValid = function() { return this.$d.toString() !== y; }, O.isSame = function(k, U) { var T = j(k); return this.startOf(U) <= T && T <= this.endOf(U); }, O.isAfter = function(k, U) { return j(k) < this.startOf(U); }, O.isBefore = function(k, U) { return this.endOf(U) < j(k); }, O.$g = function(k, U, T) { return Z.u(k) ? this[U] : this.set(T, k); }, O.unix = function() { return Math.floor(this.valueOf() / 1e3); }, O.valueOf = function() { return this.$d.getTime(); }, O.startOf = function(k, U) { var T = this, F = !!Z.u(U) || U, q = Z.p(k), te = function(He, ze) { var Je = Z.w(T.$u ? Date.UTC(T.$y, ze, He) : new Date(T.$y, ze, He), T); return F ? Je : Je.endOf(u); }, le = function(He, ze) { return Z.w(T.toDate()[He].apply(T.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ze)), T); }, de = this.$W, ve = this.$M, ye = this.$D, Ve = "set" + (this.$u ? "UTC" : ""); switch (q) { case f: return F ? te(1, 0) : te(31, 11); case c: return F ? te(1, ve) : te(0, ve + 1); case d: var ke = this.$locale().weekStart || 0, Ce = (de < ke ? de + 7 : de) - ke; return te(F ? ye - Ce : ye + (6 - Ce), ve); case u: case g: return le(Ve + "Hours", 0); case s: return le(Ve + "Minutes", 1); case l: return le(Ve + "Seconds", 2); case a: return le(Ve + "Milliseconds", 3); default: return this.clone(); } }, O.endOf = function(k) { return this.startOf(k, !1); }, O.$set = function(k, U) { var T, F = Z.p(k), q = "set" + (this.$u ? "UTC" : ""), te = (T = {}, T[u] = q + "Date", T[g] = q + "Date", T[c] = q + "Month", T[f] = q + "FullYear", T[s] = q + "Hours", T[l] = q + "Minutes", T[a] = q + "Seconds", T[i] = q + "Milliseconds", T)[F], le = F === u ? this.$D + (U - this.$W) : U; if (F === c || F === f) { var de = this.clone().set(g, 1); de.$d[te](le), de.init(), this.$d = de.set(g, Math.min(this.$D, de.daysInMonth())).$d; } else te && this.$d[te](le); return this.init(), this; }, O.set = function(k, U) { return this.clone().$set(k, U); }, O.get = function(k) { return this[Z.p(k)](); }, O.add = function(k, U) { var T, F = this; k = Number(k); var q = Z.p(U), te = function(ve) { var ye = j(F); return Z.w(ye.date(ye.date() + Math.round(ve * k)), F); }; if (q === c) return this.set(c, this.$M + k); if (q === f) return this.set(f, this.$y + k); if (q === u) return te(1); if (q === d) return te(7); var le = (T = {}, T[l] = o, T[s] = t, T[a] = r, T)[q] || 1, de = this.$d.getTime() + k * le; return Z.w(de, this); }, O.subtract = function(k, U) { return this.add(-1 * k, U); }, O.format = function(k) { var U = this, T = this.$locale(); if (!this.isValid()) return T.invalidDate || y; var F = k || "YYYY-MM-DDTHH:mm:ssZ", q = Z.z(this), te = this.$H, le = this.$m, de = this.$M, ve = T.weekdays, ye = T.months, Ve = T.meridiem, ke = function(ze, Je, yt, nn) { return ze && (ze[Je] || ze(U, F)) || yt[Je].slice(0, nn); }, Ce = function(ze) { return Z.s(te % 12 || 12, ze, "0"); }, He = Ve || function(ze, Je, yt) { var nn = ze < 12 ? "AM" : "PM"; return yt ? nn.toLowerCase() : nn; }; return F.replace(x, (function(ze, Je) { return Je || (function(yt) { switch (yt) { case "YY": return String(U.$y).slice(-2); case "YYYY": return Z.s(U.$y, 4, "0"); case "M": return de + 1; case "MM": return Z.s(de + 1, 2, "0"); case "MMM": return ke(T.monthsShort, de, ye, 3); case "MMMM": return ke(ye, de); case "D": return U.$D; case "DD": return Z.s(U.$D, 2, "0"); case "d": return String(U.$W); case "dd": return ke(T.weekdaysMin, U.$W, ve, 2); case "ddd": return ke(T.weekdaysShort, U.$W, ve, 3); case "dddd": return ve[U.$W]; case "H": return String(te); case "HH": return Z.s(te, 2, "0"); case "h": return Ce(1); case "hh": return Ce(2); case "a": return He(te, le, !0); case "A": return He(te, le, !1); case "m": return String(le); case "mm": return Z.s(le, 2, "0"); case "s": return String(U.$s); case "ss": return Z.s(U.$s, 2, "0"); case "SSS": return Z.s(U.$ms, 3, "0"); case "Z": return q; } return null; })(ze) || q.replace(":", ""); })); }, O.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, O.diff = function(k, U, T) { var F, q = this, te = Z.p(U), le = j(k), de = (le.utcOffset() - this.utcOffset()) * o, ve = this - le, ye = function() { return Z.m(q, le); }; switch (te) { case f: F = ye() / 12; break; case c: F = ye(); break; case m: F = ye() / 3; break; case d: F = (ve - de) / 6048e5; break; case u: F = (ve - de) / 864e5; break; case s: F = ve / t; break; case l: F = ve / o; break; case a: F = ve / r; break; default: F = ve; } return T ? F : Z.a(F); }, O.daysInMonth = function() { return this.endOf(c).$D; }, O.$locale = function() { return h[this.$L]; }, O.locale = function(k, U) { if (!k) return this.$L; var T = this.clone(), F = G(k, U, !0); return F && (T.$L = F), T; }, O.clone = function() { return Z.w(this.$d, this); }, O.toDate = function() { return new Date(this.valueOf()); }, O.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, O.toISOString = function() { return this.$d.toISOString(); }, O.toString = function() { return this.$d.toUTCString(); }, E; })(), Ie = pe.prototype; return j.prototype = Ie, [["$ms", i], ["$s", a], ["$m", l], ["$H", s], ["$W", u], ["$M", c], ["$y", f], ["$D", g]].forEach((function(E) { Ie[E[1]] = function(O) { return this.$g(O, E[0], E[1]); }; })), j.extend = function(E, O) { return E.$i || (E(O, pe, j), E.$i = !0), j; }, j.locale = G, j.isDayjs = I, j.unix = function(E) { return j(1e3 * E); }, j.en = h[C], j.Ls = h, j.p = {}, j; })); })(un)), un.exports; } var xf = ka(); const he = /* @__PURE__ */ ya(xf); var sn = { exports: {} }, Uf = sn.exports, Uo; function Tf() { return Uo || (Uo = 1, (function(e, n) { (function(r, o) { e.exports = o(ka()); })(Uf, (function(r) { function o(a) { return a && typeof a == "object" && "default" in a ? a : { default: a }; } var t = o(r), i = { name: "pt-br", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(a) { return a + "º"; }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "poucos segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } }; return t.default.locale(i, null, !0), i; })); })(sn)), sn.exports; } Tf(); function Nf(e, n, r, o) { const t = e.startOf("month"), i = e.endOf("month"), a = he(), l = r ? he(r).startOf("day") : null, s = o ? he(o).startOf("day") : null, u = []; for (let c = t.day() - 1; c >= 0; c--) { const m = t.subtract(c + 1, "day"); u.push({ dia: m.date(), data: m, atual: !1, hoje: !1, selecionado: !1, desabilitado: !0 }); } for (let c = t; c.isBefore(i) || c.isSame(i, "day"); c = c.add(1, "day")) u.push({ dia: c.date(), data: c, atual: !0, hoje: c.isSame(a, "day"), selecionado: n !== null && c.isSame(n, "day"), desabilitado: l !== null && c.isBefore(l) || s !== null && c.isAfter(s) }); let d = 1; for (; u.length < 42; ) { const c = i.add(d++, "day"); u.push({ dia: c.date(), data: c, atual: !1, hoje: !1, selecionado: !1, desabilitado: !0 }); } return u; } function Pf(e, n) { return e ? n === "data" ? he(e).format("DD/MM/YYYY") : he(e).format("DD/MM/YYYY HH:mm") : ""; } he.locale("pt-br"); const Sa = Array.from({ length: 12 }, (e, n) => { const r = he().month(n).format("MMMM"); return r.charAt(0).toUpperCase() + r.slice(1); }), Af = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"]; let Cf = 0; function Zf(e, n) { const r = ++Cf, o = B(!1), t = B({}), i = B(he()), a = B(null), l = B("00"), s = B("00"), u = z( () => e.opcoes ?? { rotulo: e.rotulo ?? "Data", placeholder: e.placeholder ?? "", modo: e.modo ?? "dataHora", limpavel: e.limpavel, erro: e.erro, mensagensErro: e.mensagensErro, dica: e.dica, dicaPersistente: e.dicaPersistente, densidade: e.densidade, variante: e.variante, min: e.min, max: e.max } ), d = z(() => u.value.modo ?? "dataHora"), c = z(() => !!e.desabilitado), m = z( () => e.value !== void 0 ? e.value ?? null : e.modelValue ?? null ), f = z(() => m.value), g = z(() => { const k = u.value.erro ? u.value.mensagensErro : null; return k ? Array.isArray(k) ? k : [k] : []; }), y = z(() => Pf(f.value, d.value)), N = z(() => Sa[i.value.month()]), x = z(() => i.value.year()), D = z(() => i.value.month()), L = z(() => { const k = i.value.year(), U = u.value.min ? he(u.value.min).year() : he().year() - 80, T = u.value.max ? he(u.value.max).year() : he().year() + 20, F = []; for (let q = Math.min(U, k); q <= Math.max(T, k); q++) F.push(q); return F; }), A = z( () => Nf( i.value, a.value, u.value.min, u.value.max ) ); be( m, (k) => { if (k) { const U = he(k); a.value = U.startOf("day"), i.value = U.startOf("month"), l.value = U.format("HH"), s.value = U.format("mm"); } else a.value = null, l.value = "00", s.value = "00"; }, { immediate: !0 } ); function C() { const k = document.getElementById(`eli-dh-campo-${r}`); if (!k) return; const U = k.getBoundingClientRect(), T = U.bottom + window.scrollY + 6; let F = U.left + window.scrollX; F + 316 > window.innerWidth + window.scrollX - 8 && (F = U.right + window.scrollX - 316), t.value = { position: "absolute", top: `${T}px`, left: `${F}px` }; } function h() { c.value || (o.value = !o.value, o.value && (n("foco"), n("focus"), _r(C))); } function b() { o.value && (o.value = !1, n("desfoco"), n("blur")); } function I(k) { i.value = i.value.add(k, "month"); } function G(k) { i.value = i.value.month(k); } function j(k) { i.value = i.value.year(k); } function Z(k) { k.desabilitado || (a.value = k.data.startOf("day"), d.value === "data" && Ie()); } function pe(k) { ["update:value", "input", "change", "update:modelValue", "alterar"].forEach((U) => { n(U, k); }); } function Ie() { if (!a.value) return; const k = Number.parseInt(l.value, 10) || 0, U = Number.parseInt(s.value, 10) || 0, T = d.value === "data" ? a.value.startOf("day") : a.value.hour(k).minute(U).second(0); pe(T.format()), b(); } function E() { pe(null); } function O(k) { var T, F; if (!o.value) return; const U = k.target; !((T = document.getElementById(`eli-dh-campo-${r}`)) != null && T.contains(U)) && !((F = document.getElementById(`eli-dh-popover-${r}`)) != null && F.contains(U)) && b(); } return We(() => document.addEventListener("click", O, !0)), wt(() => document.removeEventListener("click", O, !0)), { uid: r, aberto: o, estiloPopover: t, referencia: i, diaSelecionado: a, horaTemp: l, minutoTemp: s, opcoesEfetivas: u, modoEfetivo: d, desabilitadoEfetivo: c, valor: f, valorFormatado: y, mensagensVisiveis: g, nomeMesAtual: N, anoAtual: x, mesAtual: D, listaAnos: L, mudarMes: G, mudarAno: j, celulas: A, abrirSeHabilitado: h, fechar: b, navegarMes: I, selecionarDia: Z, confirmar: Ie, limpar: E }; } const Mf = Q({ name: "EliDhCalendario", props: { uid: { type: Number, required: !0 }, aberto: { type: Boolean, required: !0 }, estiloPopover: { type: Object, required: !0 }, rotulo: { type: String, required: !0 }, modo: { type: String, required: !0 }, nomeMesAtual: { type: String, required: !0 }, anoAtual: { type: Number, required: !0 }, mesAtual: { type: Number, required: !0 }, listaAnos: { type: Array, required: !0 }, celulas: { type: Array, required: !0 }, diaSelecionado: { type: Object, default: null }, horaTemp: { type: String, required: !0 }, minutoTemp: { type: String, required: !0 } }, emits: { fechar: () => !0, confirmar: () => !0, navegarMes: (e) => !0, selecionarDia: (e) => !0, mudarMes: (e) => !0, mudarAno: (e) => !0, "update:horaTemp": (e) => !0, "update:minutoTemp": (e) => !0 }, setup(e, { emit: n }) { function r(d) { const c = Number.parseInt(d.target.value, 10); n("mudarMes", c); } function o(d) { const c = Number.parseInt(d.target.value, 10); n("mudarAno", c); } function t(d) { const c = d.target.value.replace(/\D/g, "").slice(0, 2); n("update:horaTemp", c); } function i() { const d = Number.parseInt(e.horaTemp, 10); n( "update:horaTemp", Number.isNaN(d) ? "00" : String(Math.min(23, Math.max(0, d))).padStart(2, "0") ); } function a(d) { d.key === "ArrowUp" ? (d.preventDefault(), n( "update:horaTemp", String(((Number.parseInt(e.horaTemp, 10) || 0) + 1) % 24).padStart(2, "0") )) : d.key === "ArrowDown" && (d.preventDefault(), n( "update:horaTemp", String(((Number.parseInt(e.horaTemp, 10) || 0) - 1 + 24) % 24).padStart(2, "0") )); } function l(d) { const c = d.target.value.replace(/\D/g, "").slice(0, 2); n("update:minutoTemp", c); } function s() { const d = Number.parseInt(e.minutoTemp, 10); n( "update:minutoTemp", Number.isNaN(d) ? "00" : String(Math.min(59, Math.max(0, d))).padStart(2, "0") ); } function u(d) { d.key === "ArrowUp" ? (d.preventDefault(), n( "update:minutoTemp", String(((Number.parseInt(e.minutoTemp, 10) || 0) + 1) % 60).padStart(2, "0") )) : d.key === "ArrowDown" && (d.preventDefault(), n( "update:minutoTemp", String(((Number.parseInt(e.minutoTemp, 10) || 0) - 1 + 60) % 60).padStart(2, "0") )); } return { diasSemana: Af, MESES: Sa, onMesSelectChange: r, onAnoSelectChange: o, onHoraInput: t, onHoraBlur: i, onHoraKeydown: a, onMinutoInput: l, onMinutoBlur: s, onMinutoKeydown: u }; } }), Lf = ["id", "aria-label"], Ff = { class: "eli-dh__cal-header" }, Rf = { class: "eli-dh__cal-titulo" }, Bf = { class: "eli-dh__seletores" }, Vf = ["value"], Jf = ["value"], qf = ["value"], Gf = ["value"], Kf = { class: "eli-dh__cal-body" }, Wf = { class: "eli-dh__cal-semana", role: "row" }, Xf = { class: "eli-dh__cal-grade", role: "grid" }, Hf = ["disabled", "tabindex", "aria-selected", "aria-label", "onClick"], Yf = { key: 0, class: "eli-dh__hora-secao" }, Qf = { class: "eli-dh__hora-campos" }, ep = ["id", "value", "aria-label"], tp = ["id", "value", "aria-label"], np = { class: "eli-dh__rodape" }, rp = ["disabled"]; function ip(e, n, r, o, t, i) { return $(), re(yr, { to: "body" }, [ M(da, { name: "eli-dh-pop" }, { default: ue(() => [ e.aberto ? ($(), S("div", { key: 0, id: `eli-dh-popover-${e.uid}`, class: "eli-dh__popover", style: st(e.estiloPopover), role: "dialog", "aria-label": `Selecionar ${e.rotulo}`, onKeydown: n[12] || (n[12] = ut((a) => e.$emit("fechar"), ["escape"])), onMousedown: n[13] || (n[13] = ce(() => { }, ["stop"])) }, [ p("div", Ff, [ p("button", { class: "eli-dh__cal-nav", type: "button", title: "Mês anterior", "aria-label": "Mês anterior", onClick: n[0] || (n[0] = (a) => e.$emit("navegarMes", -1)) }, [...n[14] || (n[14] = [ p("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, [ p("polyline", { points: "15 18 9 12 15 6" }) ], -1) ])]), p("div", Rf, [ p("div", Bf, [ p("select", { value: e.mesAtual, class: "eli-dh__select", "aria-label": "Selecionar mês", onChange: n[1] || (n[1] = (...a) => e.onMesSelectChange && e.onMesSelectChange(...a)) }, [ ($(!0), S(ge, null, $e(e.MESES, (a, l) => ($(), S("option", { key: l, value: l }, R(a), 9, Jf))), 128)) ], 40, Vf), p("select", { value: e.anoAtual, class: "eli-dh__select", "aria-label": "Selecionar ano", onChange: n[2] || (n[2] = (...a) => e.onAnoSelectChange && e.onAnoSelectChange(...a)) }, [ ($(!0), S(ge, null, $e(e.listaAnos, (a) => ($(), S("option", { key: a, value: a }, R(a), 9, Gf))), 128)) ], 40, qf) ]) ]), p("button", { class: "eli-dh__cal-nav", type: "button", title: "Próximo mês", "aria-label": "Próximo mês", onClick: n[3] || (n[3] = (a) => e.$emit("navegarMes", 1)) }, [...n[15] || (n[15] = [ p("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, [ p("polyline", { points: "9 18 15 12 9 6" }) ], -1) ])]) ]), p("div", Kf, [ p("div", Wf, [ ($(!0), S(ge, null, $e(e.diasSemana, (a) => ($(), S("div", { key: a, class: "eli-dh__cal-dia-sem", role: "columnheader" }, R(a), 1))), 128)) ]), p("div", Xf, [ ($(!0), S(ge, null, $e(e.celulas, (a, l) => ($(), S("button", { key: l, class: Ue(["eli-dh__cal-dia", { "eli-dh__cal-dia--fora": !a.atual, "eli-dh__cal-dia--hoje": a.hoje, "eli-dh__cal-dia--selecionado": a.selecionado, "eli-dh__cal-dia--desabilitado": a.desabilitado }]), type: "button", disabled: a.desabilitado, tabindex: a.selecionado ? 0 : -1, "aria-selected": a.selecionado, "aria-label": `${a.dia} de ${e.nomeMesAtual} de ${e.anoAtual}`, onClick: (s) => e.$emit("selecionarDia", a) }, R(a.dia), 11, Hf))), 128)) ]) ]), e.modo === "dataHora" ? ($(), S("div", Yf, [ n[17] || (n[17] = p("svg", { class: "eli-dh__hora-icone", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, [ p("circle", { cx: "12", cy: "12", r: "10" }), p("polyline", { points: "12 6 12 12 16 14" }) ], -1)), p("div", Qf, [ p("input", { id: `eli-dh-hora-${e.uid}`, value: e.horaTemp, class: "eli-dh__hora-input", type: "text", inputmode: "numeric", maxlength: "2", placeholder: "HH", "aria-label": `Hora de ${e.rotulo}`, onInput: n[4] || (n[4] = (...a) => e.onHoraInput && e.onHoraInput(...a)), onBlur: n[5] || (n[5] = (...a) => e.onHoraBlur && e.onHoraBlur(...a)), onKeydown: n[6] || (n[6] = (...a) => e.onHoraKeydown && e.onHoraKeydown(...a)) }, null, 40, ep), n[16] || (n[16] = p("span", { class: "eli-dh__hora-sep", "aria-hidden": "true" }, ":", -1)), p("input", { id: `eli-dh-min-${e.uid}`, value: e.minutoTemp, class: "eli-dh__hora-input", type: "text", inputmode: "numeric", maxlength: "2", placeholder: "MM", "aria-label": `Minuto de ${e.rotulo}`, onInput: n[7] || (n[7] = (...a) => e.onMinutoInput && e.onMinutoInput(...a)), onBlur: n[8] || (n[8] = (...a) => e.onMinutoBlur && e.onMinutoBlur(...a)), onKeydown: n[9] || (n[9] = (...a) => e.onMinutoKeydown && e.onMinutoKeydown(...a)) }, null, 40, tp) ]) ])) : K("", !0), p("div", np, [ p("button", { class: "eli-dh__btn eli-dh__btn--cancelar", type: "button", onClick: n[10] || (n[10] = (a) => e.$emit("fechar")) }, "Cancelar"), p("button", { class: "eli-dh__btn eli-dh__btn--confirmar", type: "button", disabled: !e.diaSelecionado, onClick: n[11] || (n[11] = (a) => e.$emit("confirmar")) }, "✓ Confirmar", 8, rp) ]) ], 44, Lf)) : K("", !0) ]), _: 1 }) ]); } const op = /* @__PURE__ */ ee(Mf, [["render", ip]]), ap = Q({ name: "EliEntradaDataHora", components: { Calendario: op }, inheritAttrs: !1, props: { value: { type: String, default: void 0 }, opcoes: { type: Object, required: !1, default: void 0 }, modelValue: { type: String, default: null }, modo: { type: String, default: void 0 }, rotulo: { type: String, default: void 0 }, placeholder: { type: String, default: void 0 }, desabilitado: { type: Boolean, default: void 0 }, limpavel: { type: Boolean, default: void 0 }, erro: { type: Boolean, default: void 0 }, mensagensErro: { type: [String, Array], default: void 0 }, dica: { type: String, default: void 0 }, dicaPersistente: { type: Boolean, default: void 0 }, densidade: { type: String, default: void 0 }, variante: { type: String, default: void 0 }, min: { type: String, default: void 0 }, max: { type: String, default: void 0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, "update:modelValue": (e) => !0, alterar: (e) => !0, foco: () => !0, desfoco: () => !0, focus: () => !0, blur: () => !0 }, setup(e, { emit: n }) { return Zf(e, (o, t) => n(o, t)); } }), lp = { class: "eli-dh" }, up = ["id", "tabindex", "aria-expanded", "aria-label"], sp = { class: "eli-dh__conteudo" }, cp = { class: "eli-dh__rotulo" }, dp = ["aria-label"], mp = { key: 0, class: "eli-dh__mensagem eli-dh__mensagem--erro", role: "alert" }, fp = { key: 1, class: "eli-dh__mensagem eli-dh__mensagem--dica" }; function pp(e, n, r, o, t, i) { const a = Y("Calendario"); return $(), S("div", lp, [ p("div", { id: `eli-dh-campo-${e.uid}`, class: Ue(["eli-dh__campo", { "eli-dh__campo--focado": e.aberto, "eli-dh__campo--erro": !!e.opcoesEfetivas.erro, "eli-dh__campo--desabilitado": e.desabilitadoEfetivo }]), role: "button", tabindex: e.desabilitadoEfetivo ? -1 : 0, "aria-haspopup": !0, "aria-expanded": e.aberto, "aria-label": e.opcoesEfetivas.rotulo, onClick: n[1] || (n[1] = (...l) => e.abrirSeHabilitado && e.abrirSeHabilitado(...l)), onKeydown: [ n[2] || (n[2] = ut(ce((...l) => e.abrirSeHabilitado && e.abrirSeHabilitado(...l), ["prevent"]), ["enter"])), n[3] || (n[3] = ut(ce((...l) => e.abrirSeHabilitado && e.abrirSeHabilitado(...l), ["prevent"]), ["space"])), n[4] || (n[4] = ut((...l) => e.fechar && e.fechar(...l), ["escape"])) ] }, [ n[8] || (n[8] = Nm('', 1)), p("div", sp, [ p("span", cp, R(e.opcoesEfetivas.rotulo), 1), p("span", { class: Ue(["eli-dh__valor", { "eli-dh__valor--vazio": !e.valorFormatado }]) }, R(e.valorFormatado || e.opcoesEfetivas.placeholder || "Selecione..."), 3) ]), e.opcoesEfetivas.limpavel && e.valor && !e.desabilitadoEfetivo ? ($(), S("button", { key: 0, class: "eli-dh__limpar", type: "button", title: "Limpar", "aria-label": `Limpar ${e.opcoesEfetivas.rotulo}`, onClick: n[0] || (n[0] = ce((...l) => e.limpar && e.limpar(...l), ["stop"])) }, [...n[7] || (n[7] = [ p("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", width: "14", height: "14", "aria-hidden": "true" }, [ p("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), p("line", { x1: "6", y1: "6", x2: "18", y2: "18" }) ], -1) ])], 8, dp)) : K("", !0) ], 42, up), e.mensagensVisiveis.length ? ($(), S("div", mp, R(e.mensagensVisiveis[0]), 1)) : e.opcoesEfetivas.dica && (e.opcoesEfetivas.dicaPersistente || e.aberto) ? ($(), S("div", fp, R(e.opcoesEfetivas.dica), 1)) : K("", !0), M(a, { uid: e.uid, aberto: e.aberto, "estilo-popover": e.estiloPopover, rotulo: e.opcoesEfetivas.rotulo, modo: e.modoEfetivo, "nome-mes-atual": e.nomeMesAtual, "ano-atual": e.anoAtual, "mes-atual": e.mesAtual, "lista-anos": e.listaAnos, celulas: e.celulas, "dia-selecionado": e.diaSelecionado, "hora-temp": e.horaTemp, "minuto-temp": e.minutoTemp, onFechar: e.fechar, onConfirmar: e.confirmar, onNavegarMes: e.navegarMes, onSelecionarDia: e.selecionarDia, onMudarMes: e.mudarMes, onMudarAno: e.mudarAno, "onUpdate:horaTemp": n[5] || (n[5] = (l) => e.horaTemp = l), "onUpdate:minutoTemp": n[6] || (n[6] = (l) => e.minutoTemp = l) }, null, 8, ["uid", "aberto", "estilo-popover", "rotulo", "modo", "nome-mes-atual", "ano-atual", "mes-atual", "lista-anos", "celulas", "dia-selecionado", "hora-temp", "minuto-temp", "onFechar", "onConfirmar", "onNavegarMes", "onSelecionarDia", "onMudarMes", "onMudarAno"]) ]); } const wa = /* @__PURE__ */ ee(ap, [["render", pp]]); function vp(e) { if (!Number.isFinite(e) || e <= 0 || e >= 1) return 0; const n = e.toString(); if (n.includes("e-")) { const [, t] = n.split("e-"), i = Number(t); return Number.isFinite(i) ? i : 0; } const r = n.indexOf("."); return r === -1 ? 0 : n.slice(r + 1).replace(/0+$/, "").length; } function gp(e) { const n = (e ?? "").trim().replace(/,/g, "."); if (!n) return null; const r = Number(n); return Number.isNaN(r) ? null : r; } function cr(e, n) { return e == null ? "" : n === null ? String(e).replace(/\./g, ",") : Number(e).toFixed(Math.max(0, n)).replace(/\./g, ","); } function To(e) { return (e ?? "").replace(/\D+/g, ""); } function hp(e) { const n = (e ?? "").replace(/[^0-9.,]+/g, ""), r = n.match(/[.,]/); if (!r) return n; const o = r[0], t = n.indexOf(o), i = n.slice(0, t).replace(/[.,]/g, ""), a = n.slice(t + 1).replace(/[.,]/g, ""); return `${i.length ? i : "0"}${o}${a}`; } function bp(e, n) { if (n === null) return e; if (n <= 0) return e.replace(/[.,]/g, ""); const r = e.match(/[.,]/); if (!r) return e; const o = r[0], t = e.indexOf(o), i = e.slice(0, t), a = e.slice(t + 1); return `${i}${o}${a.slice(0, n)}`; } function $p(e) { const n = e.match(/^(\d+)[.,]$/); if (!n) return null; const r = Number(n[1]); return Number.isNaN(r) ? null : r; } const _p = Q({ name: "EliEntradaNumero", inheritAttrs: !1, props: { /** Interface padrão (EliEntrada): value + opcoes. */ value: { type: [Number, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, /** Compat Vue2 (v-model padrão: value + input) */ input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = z(() => { var d; const u = (d = e.opcoes) == null ? void 0 : d.precisao; return u == null ? null : vp(u); }), t = z(() => o.value === 0), i = z(() => { const u = o.value; return u !== null && u > 0; }), a = B(""), l = B(void 0); be( () => e.value, (u) => { u !== l.value && (a.value = cr(u, o.value), l.value = u); }, { immediate: !0 } ); function s(u) { if (i.value) { const f = o.value ?? 0, g = To(u), y = g ? Number(g) : 0, N = 10 ** f, x = g ? y / N : null, D = x === null ? null : x; l.value = D, r("update:value", D), r("input", D), r("change", D), a.value = cr(D, f); return; } const d = t.value ? To(u) : hp(u), c = t.value ? d : bp(d, o.value); let m = null; if (c) { const g = (t.value ? null : $p(c)) ?? gp(c); m = g === null ? null : g; } l.value = m, r("update:value", m), r("input", m), r("change", m), o.value === null && c ? a.value = c.replace(/\./g, ",") : a.value = cr(m, o.value); } return { attrs: n, emit: r, displayValue: a, isInteiro: t, onUpdateModelValue: s }; } }), yp = { class: "eli-entrada__prefixo" }, kp = { class: "eli-entrada__sufixo" }; function Sp(e, n, r, o, t, i) { var a, l, s, u, d; return $(), re(mn, je({ "model-value": e.displayValue, label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, type: e.isInteiro ? "number" : "text", inputmode: e.isInteiro ? "numeric" : "decimal", pattern: e.isInteiro ? "[0-9]*" : "[0-9.,]*", readonly: !!((s = e.opcoes) != null && s.apenasLeitura) }, e.attrs, { "onUpdate:modelValue": e.onUpdateModelValue, onFocus: n[0] || (n[0] = () => e.emit("focus")), onBlur: n[1] || (n[1] = () => e.emit("blur")) }), Pm({ _: 2 }, [ (u = e.opcoes) != null && u.prefixo ? { name: "prepend-inner", fn: ue(() => [ p("span", yp, R(e.opcoes.prefixo), 1) ]), key: "0" } : void 0, (d = e.opcoes) != null && d.sufixo ? { name: "append-inner", fn: ue(() => [ p("span", kp, R(e.opcoes.sufixo), 1) ]), key: "1" } : void 0 ]), 1040, ["model-value", "label", "placeholder", "type", "inputmode", "pattern", "readonly", "onUpdate:modelValue"]); } const Ia = /* @__PURE__ */ ee(_p, [["render", Sp]]), wp = Q({ name: "EliEntradaParagrafo", components: { VTextarea: Rm }, inheritAttrs: !1, props: { value: { type: [String, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = z({ get: () => e.value, set: (t) => { r("update:value", t), r("input", t), r("change", t); } }); return { attrs: n, emit: r, localValue: o }; } }); function Ip(e, n, r, o, t, i) { var a, l, s, u, d, c, m, f, g, y, N, x, D; return $(), re(Jm, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (L) => e.localValue = L), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, rows: ((s = e.opcoes) == null ? void 0 : s.linhas) ?? 4, counter: (u = e.opcoes) == null ? void 0 : u.limiteCaracteres, maxlength: (d = e.opcoes) == null ? void 0 : d.limiteCaracteres, clearable: !!((c = e.opcoes) != null && c.limpavel), error: !!((m = e.opcoes) != null && m.erro), "error-messages": (f = e.opcoes) == null ? void 0 : f.mensagensErro, hint: (g = e.opcoes) == null ? void 0 : g.dica, "persistent-hint": !!((y = e.opcoes) != null && y.dicaPersistente), density: ((N = e.opcoes) == null ? void 0 : N.densidade) ?? "comfortable", variant: ((x = e.opcoes) == null ? void 0 : x.variante) ?? "outlined", readonly: !!((D = e.opcoes) != null && D.apenasLeitura), "auto-grow": "" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "rows", "counter", "maxlength", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "readonly"]); } const za = /* @__PURE__ */ ee(wp, [["render", Ip]]), zp = Q({ name: "EliEntradaSelecao", components: { VSelect: ga }, inheritAttrs: !1, props: { value: { type: [String, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = B([]), t = B(!1), i = z({ get: () => e.value, set: (s) => { r("update:value", s), r("input", s), r("change", s); } }); async function a() { t.value = !0; try { const s = await e.opcoes.itens(), u = Array.isArray(s) ? s : []; o.value = [...u]; } finally { t.value = !1; } } be( () => e.opcoes.itens, () => { a(); } ), We(() => { a(); }), be( o, (s) => { console.debug("[EliEntradaSelecao] itens:", s); }, { deep: !0 } ); const l = z(() => { var u; const s = (u = e.opcoes) == null ? void 0 : u.desativado; if (!(!s || s.length === 0)) return (d) => ({ disabled: s.includes(d.chave) }); }); return { attrs: n, emit: r, localValue: i, itens: o, carregando: t, itemProps: l }; } }); function Dp(e, n, r, o, t, i) { var a, l, s, u, d, c, m, f, g, y; return $(), re(ha, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (N) => e.localValue = N), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, items: e.itens, "item-title": "rotulo", "item-value": "chave", "item-props": e.itemProps, loading: e.carregando, disabled: e.carregando, "menu-props": { maxHeight: 320, zIndex: 99999 }, clearable: !!((s = e.opcoes) != null && s.limpavel), error: !!((u = e.opcoes) != null && u.erro), "error-messages": (d = e.opcoes) == null ? void 0 : d.mensagensErro, hint: (c = e.opcoes) == null ? void 0 : c.dica, "persistent-hint": !!((m = e.opcoes) != null && m.dicaPersistente), density: ((f = e.opcoes) == null ? void 0 : f.densidade) ?? "comfortable", variant: ((g = e.opcoes) == null ? void 0 : g.variante) ?? "outlined", readonly: !!((y = e.opcoes) != null && y.apenasLeitura) }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "items", "item-props", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "readonly"]); } const Da = /* @__PURE__ */ ee(zp, [["render", Dp]]), jp = Q({ name: "EliEntradaSelecaoMultipla", components: { VSelect: ga }, inheritAttrs: !1, props: { value: { type: [Array, null], default: () => [] }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = B([]), t = B(!1), i = z({ get: () => e.value ?? [], set: (s) => { const u = Array.isArray(s) ? s : []; r("update:value", u), r("input", u), r("change", u); } }); async function a() { t.value = !0; try { const s = await e.opcoes.itens(); o.value = [...Array.isArray(s) ? s : []]; } finally { t.value = !1; } } be( () => e.opcoes.itens, () => { a(); } ), We(() => { a(); }); const l = z(() => { var u; const s = (u = e.opcoes) == null ? void 0 : u.desativado; if (!(!s || s.length === 0)) return (d) => ({ disabled: s.includes(d.chave) }); }); return { attrs: n, emit: r, localValue: i, itens: o, carregando: t, itemProps: l }; } }); function Op(e, n, r, o, t, i) { var a, l, s, u, d, c, m, f, g, y; return $(), re(ha, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (N) => e.localValue = N), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, items: e.itens, "item-title": "rotulo", "item-value": "chave", "item-props": e.itemProps, loading: e.carregando, disabled: e.carregando, "menu-props": { maxHeight: 320, zIndex: 99999 }, clearable: !!((s = e.opcoes) != null && s.limpavel), error: !!((u = e.opcoes) != null && u.erro), "error-messages": (d = e.opcoes) == null ? void 0 : d.mensagensErro, hint: (c = e.opcoes) == null ? void 0 : c.dica, "persistent-hint": !!((m = e.opcoes) != null && m.dicaPersistente), density: ((f = e.opcoes) == null ? void 0 : f.densidade) ?? "comfortable", variant: ((g = e.opcoes) == null ? void 0 : g.variante) ?? "outlined", multiple: "", chips: "", "closable-chips": "", readonly: !!((y = e.opcoes) != null && y.apenasLeitura) }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "items", "item-props", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "readonly"]); } const ja = /* @__PURE__ */ ee(jp, [["render", Op]]); function Ep(e) { return e.replace(/\D+/g, ""); } function xp(e) { const n = Ep(e); return n ? n.replace(/^(\d{5})(\d)/, "$1-$2").slice(0, 9) : ""; } function Up(e) { return e.replace(/\D+/g, ""); } function Tp(e) { const n = Up(e); return n.length <= 11 ? n.replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1/$2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 18); } function Np(e) { return e.replace(/\D+/g, ""); } function Pp(e) { const n = Np(e); return n ? n.length <= 10 ? n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{5})(\d)/, "$1-$2").slice(0, 15) : ""; } const Ap = Q({ name: "EliEntradaTexto", inheritAttrs: !1, props: { /** Interface padrão (EliEntrada): value + opcoes. */ value: { type: [String, null], default: void 0 }, opcoes: { type: Object, required: !0 } }, emits: { "update:value": (e) => !0, /** Compat Vue2 (v-model padrão: value + input) */ input: (e) => !0, change: (e) => !0, focus: () => !0, blur: () => !0 }, setup(e, { attrs: n, emit: r }) { const o = z(() => { var u; return ((u = e.opcoes) == null ? void 0 : u.formato) ?? "texto"; }), t = z({ get: () => e.value, set: (u) => { r("update:value", u), r("input", u), r("change", u); } }), i = z(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = z(() => { if (o.value === "telefone") return "tel"; if (o.value === "cpfCnpj" || o.value === "cep") return "numeric"; }); function l(u) { switch (o.value) { case "telefone": return Pp(u); case "cpfCnpj": return Tp(u); case "cep": return xp(u); default: return u; } } function s(u) { const d = u.target, c = l(d.value); d.value = c, t.value = c; } return { attrs: n, emit: r, localValue: t, inputHtmlType: i, inputMode: a, onInput: s }; } }); function Cp(e, n, r, o, t, i) { var a, l, s, u, d; return $(), re(mn, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (c) => e.localValue = c), type: e.inputHtmlType, inputmode: e.inputMode, label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, counter: (s = e.opcoes) == null ? void 0 : s.limiteCaracteres, maxlength: (u = e.opcoes) == null ? void 0 : u.limiteCaracteres, readonly: !!((d = e.opcoes) != null && d.apenasLeitura) }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")), onInput: e.onInput }), null, 16, ["modelValue", "type", "inputmode", "label", "placeholder", "counter", "maxlength", "readonly", "onInput"]); } const wr = /* @__PURE__ */ ee(Ap, [["render", Cp]]); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const No = (e) => e === ""; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Zp = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim(); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Po = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Mp = (e) => e.replace( /^([A-Z])|[\s-_]+(\w)/g, (n, r, o) => o ? o.toUpperCase() : r.toLowerCase() ); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Lp = (e) => { const n = Mp(e); return n.charAt(0).toUpperCase() + n.slice(1); }; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var at = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": 2, "stroke-linecap": "round", "stroke-linejoin": "round" }; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Fp = Symbol("lucide-icons"); function Rp() { return Am(Fp, {}); } /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Bp = ({ name: e, iconNode: n, absoluteStrokeWidth: r, "absolute-stroke-width": o, strokeWidth: t, "stroke-width": i, size: a, color: l, ...s }, { slots: u }) => { const { size: d, color: c, strokeWidth: m = 2, absoluteStrokeWidth: f = !1, class: g = "" } = Rp(), y = z(() => { const N = No(r) || No(o) || r === !0 || o === !0 || f === !0, x = t || i || m || at["stroke-width"]; return N ? Number(x) * 24 / Number(a ?? d ?? at.width) : x; }); return mr( "svg", { ...at, ...s, width: a ?? d ?? at.width, height: a ?? d ?? at.height, stroke: l ?? c ?? at.stroke, "stroke-width": y.value, class: Zp( "lucide", g, ...e ? [`lucide-${Po(Lp(e))}-icon`, `lucide-${Po(e)}`] : ["lucide-icon"] ) }, [...n.map((N) => mr(...N)), ...u.default ? [u.default()] : []] ); }; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const fe = (e, n) => (r, { slots: o, attrs: t }) => mr( Bp, { ...t, ...r, iconNode: n, name: e }, o.default ? { default: o.default } : void 0 ); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Vp = [ ["path", { d: "M12 5v14", key: "s699le" }], ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }] ], Ao = fe("arrow-down", Vp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Jp = [ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }], ["path", { d: "M12 19V5", key: "x0mq9r" }] ], Co = fe("arrow-up", Jp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const qp = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Gp = fe("check", qp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Kp = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zo = fe("chevron-down", Kp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Wp = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Mo = fe("chevron-right", Wp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Xp = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }], ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }] ], Hp = fe("circle-alert", Xp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Yp = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }], ["path", { d: "M12 17h.01", key: "p32p05" }] ], Qp = fe("circle-question-mark", Yp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const ev = [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M12 3v18", key: "108xh3" }] ], tv = fe("columns-2", ev); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const nv = [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M9 3v18", key: "fh3hqa" }], ["path", { d: "M15 3v18", key: "14nvp0" }] ], rv = fe("columns-3", nv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const iv = [ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }], ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }], ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }] ], ov = fe("ellipsis-vertical", iv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const av = [ [ "path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49", key: "ct8e1f" } ], ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }], [ "path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143", key: "13bj9a" } ], ["path", { d: "m2 2 20 20", key: "1ooewy" }] ], lv = fe("eye-off", av); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const uv = [ [ "path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0", key: "1nclc0" } ], ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }] ], sv = fe("eye", uv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const cv = [ [ "path", { d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z", key: "sc7q7i" } ] ], Oa = fe("funnel", cv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const dv = [ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }], ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }], ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }], ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }], ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }], ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }] ], mv = fe("grip-vertical", dv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const fv = [ ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }], [ "path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z", key: "oot6mr" } ] ], pv = fe("inbox", fv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const vv = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], gv = fe("loader-circle", vv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const hv = [ ["path", { d: "M5 12h14", key: "1ays0h" }], ["path", { d: "M12 5v14", key: "s699le" }] ], bv = fe("plus", hv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const $v = [ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }], ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }] ], _v = fe("search", $v); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const yv = [ ["path", { d: "M10 11v6", key: "nco0om" }], ["path", { d: "M14 11v6", key: "outv1u" }], ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }], ["path", { d: "M3 6h18", key: "d0wm0j" }], ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }] ], kv = fe("trash-2", yv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Sv = [ ["path", { d: "M18 6 6 18", key: "1bl5f8" }], ["path", { d: "m6 6 12 12", key: "d8bk6v" }] ], Ea = fe("x", Sv), wv = Q({ name: "EliTabelaCelulaComponente", props: { dados: { type: Object } }, setup(e) { const n = B(void 0); return We(async () => { var o; if (!((o = e.dados) != null && o.props)) return; const r = e.dados.props(); n.value = r instanceof Promise ? await r : r; }), { propsResolvidas: n }; } }); function Iv(e, n, r, o, t, i) { var a; return e.propsResolvidas ? ($(), re(Re((a = e.dados) == null ? void 0 : a.componente), Cm(je({ key: 0 }, e.propsResolvidas)), null, 16)) : K("", !0); } const zv = /* @__PURE__ */ ee(wv, [["render", Iv]]); var cn = { exports: {} }, Dv = cn.exports, Lo; function jv() { return Lo || (Lo = 1, (function(e, n) { (function(r, o) { e.exports = o(); })(Dv, (function() { return function(r, o, t) { r = r || {}; var i = o.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }; function l(u, d, c, m) { return i.fromToBase(u, d, c, m); } t.en.relativeTime = a, i.fromToBase = function(u, d, c, m, f) { for (var g, y, N, x = c.$locale().relativeTime || a, D = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], L = D.length, A = 0; A < L; A += 1) { var C = D[A]; C.d && (g = m ? t(u).diff(c, C.d, !0) : c.diff(u, C.d, !0)); var h = (r.rounding || Math.round)(Math.abs(g)); if (N = g > 0, h <= C.r || !C.r) { h <= 1 && A > 0 && (C = D[A - 1]); var b = x[C.l]; f && (h = f("" + h)), y = typeof b == "string" ? b.replace("%d", h) : b(h, d, C.l, N); break; } } if (d) return y; var I = N ? x.future : x.past; return typeof I == "function" ? I(y) : I.replace("%s", y); }, i.to = function(u, d) { return l(u, d, this, !0); }, i.from = function(u, d) { return l(u, d, this); }; var s = function(u) { return u.$u ? t.utc() : t(); }; i.toNow = function(u) { return this.to(s(this), u); }, i.fromNow = function(u) { return this.from(s(this), u); }; }; })); })(cn)), cn.exports; } var Ov = jv(); const Ev = /* @__PURE__ */ ya(Ov); he.extend(Ev); he.locale("pt-br"); const xv = Q({ name: "EliTabelaCelulaData", props: { dados: { type: Object, required: !1 } }, setup(e) { return { textoData: z(() => { var t, i; const r = (t = e.dados) == null ? void 0 : t.valor; if (!r) return ""; const o = ((i = e.dados) == null ? void 0 : i.formato) ?? "data"; return o === "relativo" ? he(r).fromNow() : o === "data_hora" ? he(r).format("DD/MM/YYYY HH:mm") : he(r).format("DD/MM/YYYY"); }) }; } }), Uv = { key: 1 }; function Tv(e, n, r, o, t, i) { var a; return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = ce((l) => e.dados.acao(), ["stop", "prevent"])) }, R(e.textoData), 1)) : ($(), S("span", Uv, R(e.textoData), 1)); } const Nv = /* @__PURE__ */ ee(xv, [["render", Tv]]), Pv = Q({ name: "EliTabelaCelulaNumero", components: {}, props: { dados: { type: Object } }, setup(e) { return { textoNumero: z(() => { var l, s, u, d, c; const r = String((l = e.dados) == null ? void 0 : l.numero).replace(".", ","), o = (u = (s = e.dados) == null ? void 0 : s.prefixo) == null ? void 0 : u.trim(), t = (c = (d = e.dados) == null ? void 0 : d.sufixo) == null ? void 0 : c.trim(), i = o ? `${o} ` : "", a = t ? ` ${t}` : ""; return `${i}${r}${a}`; }) }; } }), Av = { key: 1 }; function Cv(e, n, r, o, t, i) { var a; return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = ce((l) => e.dados.acao(), ["stop", "prevent"])) }, R(e.textoNumero), 1)) : ($(), S("span", Av, R(e.textoNumero), 1)); } const Zv = /* @__PURE__ */ ee(Pv, [["render", Cv]]), Mv = Q({ name: "EliTabelaCelulaTags", components: { VChip: Bm }, props: { dados: { type: Object, required: !1 } } }), Lv = { class: "eli-tabela__celula-tags" }; function Fv(e, n, r, o, t, i) { var a; return $(), S("div", Lv, [ ($(!0), S(ge, null, $e(((a = e.dados) == null ? void 0 : a.opcoes) ?? [], (l, s) => ($(), re(qm, { key: s, class: "eli-tabela__celula-tag", size: "small", variant: "tonal", color: l.cor, clickable: !!l.acao, onClick: ce((u) => { var d; return (d = l.acao) == null ? void 0 : d.call(l); }, ["stop", "prevent"]) }, { default: ue(() => [ l.icone ? ($(), re(Re(l.icone), { key: 0, class: "eli-tabela__celula-tag-icone", size: 14 })) : K("", !0), p("span", null, R(l.rotulo), 1) ]), _: 2 }, 1032, ["color", "clickable", "onClick"]))), 128)) ]); } const Rv = /* @__PURE__ */ ee(Mv, [["render", Fv]]), Bv = Q({ name: "EliTabelaCelulaTextoSimples", components: {}, props: { dados: { type: Object } }, data() { return {}; }, methods: {} }), Vv = { key: 1 }; function Jv(e, n, r, o, t, i) { var a, l, s; return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__celula-link", onClick: n[0] || (n[0] = ce((u) => e.dados.acao(), ["stop", "prevent"])) }, R((l = e.dados) == null ? void 0 : l.texto), 1)) : ($(), S("span", Vv, R((s = e.dados) == null ? void 0 : s.texto), 1)); } const qv = /* @__PURE__ */ ee(Bv, [["render", Jv]]), Gv = Q({ name: "EliTabelaCelulaTextoTruncado", props: { dados: { type: Object } } }), Kv = ["title"], Wv = ["title"]; function Xv(e, n, r, o, t, i) { var a, l, s, u, d; return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__texto-truncado eli-tabela__celula-link", title: (l = e.dados) == null ? void 0 : l.texto, onClick: n[0] || (n[0] = ce((c) => { var m, f; return (f = (m = e.dados) == null ? void 0 : m.acao) == null ? void 0 : f.call(m); }, ["stop", "prevent"])) }, R((s = e.dados) == null ? void 0 : s.texto), 9, Kv)) : ($(), S("span", { key: 1, class: "eli-tabela__texto-truncado", title: (u = e.dados) == null ? void 0 : u.texto }, R((d = e.dados) == null ? void 0 : d.texto), 9, Wv)); } const Hv = /* @__PURE__ */ ee(Gv, [["render", Xv]]), Yv = { textoSimples: qv, textoTruncado: Hv, numero: Zv, tags: Rv, data: Nv, componente: zv }, Qv = Q({ name: "EliTabelaCelula", props: { celula: { // `ComponenteCelula` é uma tupla `readonly [tipo, dados]`. type: Array, required: !0 } }, setup(e) { const n = z(() => e.celula[0]), r = z(() => e.celula[1]), o = z(() => Yv[n.value]), t = z(() => r.value); return { Componente: o, dadosParaComponente: t }; } }); function eg(e, n, r, o, t, i) { return $(), re(Re(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]); } const xa = /* @__PURE__ */ ee(Qv, [["render", eg]]), tg = Q({ name: "EliTabelaDetalhesLinha", components: { EliTabelaCelula: xa }, props: { linha: { type: [Object, String, Number, Array], required: !0 }, colunasInvisiveis: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 } } }), ng = { class: "eli-tabela__detalhes" }, rg = { class: "eli-tabela__detalhe-rotulo" }, ig = { class: "eli-tabela__detalhe-valor" }; function og(e, n, r, o, t, i) { const a = Y("EliTabelaCelula"); return $(), S("div", ng, [ ($(!0), S(ge, null, $e(e.colunasInvisiveis, (l, s) => ($(), S("div", { key: `det-${s}-${l.rotulo}`, class: "eli-tabela__detalhe" }, [ p("div", rg, R(l.rotulo), 1), p("div", ig, [ M(a, { celula: l.celula(e.linha) }, null, 8, ["celula"]) ]) ]))), 128)) ]); } const ag = /* @__PURE__ */ ee(tg, [["render", og]]), lg = Q({ name: "EliTabelaBody", components: { EliTabelaCelula: xa, EliTabelaDetalhesLinha: ag, MoreVertical: ov, ChevronRight: Mo, ChevronDown: Zo }, props: { colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 }, colunasInvisiveis: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 }, temColunasInvisiveis: { type: Boolean, required: !0 }, linhasExpandidas: { type: Object, required: !0 }, linhas: { type: Array, required: !0 }, temAcoes: { type: Boolean, required: !0 }, menuAberto: { type: Number, required: !0 }, possuiAcoes: { type: Function, required: !0 }, toggleMenu: { type: Function, required: !0 }, alternarLinhaExpandida: { type: Function, required: !0 }, mostrarSelecao: { type: Boolean, default: !1 }, isSelecionado: { type: Function, required: !0 }, alternarSelecao: { type: Function, required: !0 } }, setup() { return { ChevronRight: Mo, ChevronDown: Zo }; } }), ug = { class: "eli-tabela__tbody" }, sg = ["aria-expanded", "aria-label", "title", "onClick"], cg = ["checked", "onChange"], dg = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], mg = ["colspan"]; function fg(e, n, r, o, t, i) { const a = Y("EliTabelaCelula"), l = Y("MoreVertical"), s = Y("EliTabelaDetalhesLinha"); return $(), S("tbody", ug, [ ($(!0), S(ge, null, $e(e.linhas, (u, d) => { var c, m, f, g, y, N; return $(), S(ge, { key: `grp-${d}` }, [ p("tr", { class: Ue(["eli-tabela__tr", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ e.temColunasInvisiveis ? ($(), S("td", { class: "eli-tabela__td eli-tabela__td--expander", key: `td-${d}-exp` }, [ p("button", { type: "button", class: Ue(["eli-tabela__expander-botao", [(c = e.linhasExpandidas) != null && c[d] ? "eli-tabela__expander-botao--ativo" : void 0]]), "aria-expanded": (m = e.linhasExpandidas) != null && m[d] ? "true" : "false", "aria-label": (f = e.linhasExpandidas) != null && f[d] ? "Ocultar colunas ocultas" : "Mostrar colunas ocultas", title: (g = e.linhasExpandidas) != null && g[d] ? "Ocultar detalhes" : "Mostrar detalhes", onClick: ce((x) => e.alternarLinhaExpandida(d), ["stop"]) }, [ ($(), re(Re((y = e.linhasExpandidas) != null && y[d] ? e.ChevronDown : e.ChevronRight), { class: "eli-tabela__expander-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, sg) ])) : K("", !0), e.mostrarSelecao ? ($(), S("td", { class: "eli-tabela__td eli-tabela__td--selecao", key: `td-${d}-selecao` }, [ p("input", { type: "checkbox", class: "eli-tabela__checkbox", checked: e.isSelecionado(u), onChange: (x) => e.alternarSelecao(u), onClick: n[0] || (n[0] = ce(() => { }, ["stop"])), "aria-label": "Selecionar linha" }, null, 40, cg) ])) : K("", !0), ($(!0), S(ge, null, $e(e.colunas, (x, D) => ($(), S("td", { key: `td-${d}-${D}`, class: "eli-tabela__td" }, [ M(a, { celula: x.celula(u) }, null, 8, ["celula"]) ]))), 128)), e.temAcoes ? ($(), S("td", { class: "eli-tabela__td eli-tabela__td--acoes", key: `td-${d}-acoes` }, [ p("div", { class: Ue(["eli-tabela__acoes-container", [e.menuAberto === d ? "eli-tabela__acoes-container--aberto" : void 0]]) }, [ p("button", { class: "eli-tabela__acoes-toggle", type: "button", id: `eli-tabela-acoes-toggle-${d}`, disabled: !e.possuiAcoes(d), "aria-haspopup": "menu", "aria-expanded": e.menuAberto === d ? "true" : "false", "aria-controls": e.possuiAcoes(d) ? `eli-tabela-acoes-menu-${d}` : void 0, "aria-label": e.possuiAcoes(d) ? "Ações da linha" : "Nenhuma ação disponível", title: e.possuiAcoes(d) ? "Ações" : "Nenhuma ação disponível", onClick: ce((x) => e.toggleMenu(d, x), ["stop"]) }, [ M(l, { class: "eli-tabela__acoes-toggle-icone", size: 18, "stroke-width": 2 }) ], 8, dg) ], 2) ])) : K("", !0) ], 2), e.temColunasInvisiveis && ((N = e.linhasExpandidas) != null && N[d]) ? ($(), S("tr", { key: 0, class: Ue(["eli-tabela__tr eli-tabela__tr--detalhes", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ p("td", { class: "eli-tabela__td eli-tabela__td--detalhes", colspan: (e.temColunasInvisiveis ? 1 : 0) + (e.mostrarSelecao ? 1 : 0) + e.colunas.length + (e.temAcoes ? 1 : 0) }, [ M(s, { linha: u, colunasInvisiveis: e.colunasInvisiveis }, null, 8, ["linha", "colunasInvisiveis"]) ], 8, mg) ], 2)) : K("", !0) ], 64); }), 128)) ]); } const pg = /* @__PURE__ */ ee(lg, [["render", fg]]), vg = Q({ name: "EliTabelaCaixaDeBusca", components: { Search: _v }, props: { modelo: { type: String, required: !1, default: "" } }, emits: { buscar(e) { return typeof e == "string"; } }, setup(e, { emit: n }) { const r = B(e.modelo ?? ""); be( () => e.modelo, (t) => { t !== void 0 && t !== r.value && (r.value = t); } ); function o() { n("buscar", r.value.trim()); } return { texto: r, emitirBusca: o }; } }), gg = { class: "eli-tabela__busca" }, hg = { class: "eli-tabela__busca-input-wrapper" }; function bg(e, n, r, o, t, i) { const a = Y("Search"); return $(), S("div", gg, [ p("div", hg, [ dn(p("input", { id: "eli-tabela-busca", "onUpdate:modelValue": n[0] || (n[0] = (l) => e.texto = l), type: "search", class: "eli-tabela__busca-input", placeholder: "Digite termos para filtrar", onKeyup: n[1] || (n[1] = ut((...l) => e.emitirBusca && e.emitirBusca(...l), ["enter"])) }, null, 544), [ [kr, e.texto] ]), p("button", { type: "button", class: "eli-tabela__busca-botao", "aria-label": "Buscar", title: "Buscar", onClick: n[2] || (n[2] = (...l) => e.emitirBusca && e.emitirBusca(...l)) }, [ M(a, { class: "eli-tabela__busca-botao-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" }) ]) ]) ]); } const $g = /* @__PURE__ */ ee(vg, [["render", bg]]), _g = Q({ name: "EliTabelaCabecalho", components: { Columns3: rv, EliTabelaCaixaDeBusca: $g, Filter: Oa }, props: { exibirBusca: { type: Boolean, required: !0 }, exibirBotaoColunas: { type: Boolean, required: !1, default: !0 }, exibirBotaoFiltroAvancado: { type: Boolean, required: !1, default: !1 }, filtrosAtivosResumo: { type: Object, required: !1, default: () => ({ quantidade: 0, rotulos: [] }) }, valorBusca: { type: String, required: !0 }, parametrosConsulta: { // biome-ignore lint/suspicious/noExplicitAny: dynamic params type: Object, required: !1 }, acoesCabecalho: { type: Array, required: !0 } }, emits: { buscar(e) { return typeof e == "string"; }, colunas() { return !0; }, filtroAvancado() { return !0; } }, setup(e, { emit: n }) { const r = z(() => e.acoesCabecalho.length > 0), o = z(() => { const { quantidade: l, rotulos: s } = e.filtrosAtivosResumo; return l === 0 ? "Filtro avançado" : `Filtros ativos (${l}): ${s.map((u) => `• ${u}`).join(` `)}`; }); function t(l) { n("buscar", l); } function i() { n("colunas"); } function a() { n("filtroAvancado"); } return { temAcoesCabecalho: r, tooltipFiltro: o, emitBuscar: t, emitColunas: i, emitFiltroAvancado: a }; } }), yg = { class: "eli-tabela__cabecalho" }, kg = { key: 0, class: "eli-tabela__busca-grupo" }, Sg = ["title"], wg = { class: "eli-tabela__filtro-icone-container" }, Ig = { key: 0, class: "eli-tabela__filtro-badge" }, zg = { key: 1, class: "eli-tabela__acoes-cabecalho" }, Dg = ["onClick"], jg = { class: "eli-tabela__acoes-cabecalho-rotulo" }; function Og(e, n, r, o, t, i) { const a = Y("Columns3"), l = Y("Filter"), s = Y("EliTabelaCaixaDeBusca"); return $(), S("div", yg, [ e.exibirBusca ? ($(), S("div", kg, [ e.exibirBotaoColunas ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas", onClick: n[0] || (n[0] = (...u) => e.emitColunas && e.emitColunas(...u)) }, [ M(a, { size: 15, "stroke-width": 2 }), n[2] || (n[2] = ne(" Colunas ", -1)) ])) : K("", !0), e.exibirBotaoFiltroAvancado ? ($(), S("button", { key: 1, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro", title: e.tooltipFiltro, onClick: n[1] || (n[1] = (...u) => e.emitFiltroAvancado && e.emitFiltroAvancado(...u)) }, [ p("span", wg, [ M(l, { size: 15, "stroke-width": 2 }), e.filtrosAtivosResumo.quantidade > 0 ? ($(), S("span", Ig, R(e.filtrosAtivosResumo.quantidade), 1)) : K("", !0) ]), n[3] || (n[3] = ne(" Filtro ", -1)) ], 8, Sg)) : K("", !0), M(s, { modelo: e.valorBusca, onBuscar: e.emitBuscar }, null, 8, ["modelo", "onBuscar"]) ])) : K("", !0), e.temAcoesCabecalho ? ($(), S("div", zg, [ ($(!0), S(ge, null, $e(e.acoesCabecalho, (u, d) => ($(), S("button", { key: `${u.rotulo}-${d}`, type: "button", class: "eli-tabela__acoes-cabecalho-botao", style: st(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0), onClick: (c) => u.acao(e.parametrosConsulta) }, [ u.icone ? ($(), re(Re(u.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : K("", !0), p("span", jg, R(u.rotulo), 1) ], 12, Dg))), 128)) ])) : K("", !0) ]); } const Eg = /* @__PURE__ */ ee(_g, [["render", Og]]), xg = Q({ name: "EliTabelaDebug", props: { isDev: { type: Boolean, required: !0 }, menuAberto: { type: [Number, Object], default: null }, menuPopupPos: { type: Object, required: !0 } }, setup(e) { const n = () => { let r = document.getElementById("eli-tabela-debug-style"); e.isDev ? r || (r = document.createElement("style"), r.id = "eli-tabela-debug-style", r.textContent = ` html, body { overflow-x: auto !important; } #app, .v-application__wrap, .v-application { padding-right: 360px !important; box-sizing: border-box !important; } .v-container, .stack { overflow-x: auto !important; max-width: 100% !important; } `, document.head.appendChild(r)) : r && r.remove(); }; be(() => e.isDev, n), We(n), Zm(() => { const r = document.getElementById("eli-tabela-debug-style"); r && r.remove(); }); } }), Ug = { key: 0, style: { position: "fixed", right: "0", top: "0", bottom: "0", width: "360px", "z-index": "999999", background: "rgba(20, 20, 20, 0.95)", color: "#32CD32", padding: "20px 16px", "font-family": "'Courier New', Courier, monospace", "font-size": "12px", "overflow-y": "auto", "border-left": "1px solid #333", display: "flex", "flex-direction": "column", gap: "6px" } }, Tg = { style: { color: "#bbb" } }, Ng = { style: { color: "#fff" } }, Pg = { style: { color: "#bbb" } }, Ag = { style: { color: "#fff" } }, Cg = { style: { color: "#fff" } }, Zg = { style: { "margin-top": "8px", "white-space": "pre-wrap", "word-break": "break-all" } }; function Mg(e, n, r, o, t, i) { return e.isDev ? ($(), S("div", Ug, [ n[3] || (n[3] = p("div", { style: { "font-weight": "bold", color: "#fff", "margin-bottom": "8px", "text-transform": "uppercase", "letter-spacing": "1px", "border-bottom": "1px solid #333", "padding-bottom": "8px" } }, " EliTabela // Log Terminal ", -1)), p("div", Tg, [ n[0] || (n[0] = ne("menuAberto: ", -1)), p("span", Ng, R(e.menuAberto), 1) ]), p("div", Pg, [ n[1] || (n[1] = ne("menuPos: top=", -1)), p("span", Ag, R(e.menuPopupPos.top), 1), n[2] || (n[2] = ne(", left=", -1)), p("span", Cg, R(e.menuPopupPos.left), 1) ]), p("div", Zg, [ Qe(e.$slots, "default") ]) ])) : K("", !0); } const Lg = /* @__PURE__ */ ee(xg, [["render", Mg]]), Fg = Q({ name: "EliTabelaEstados", components: { AlertCircle: Hp, Inbox: pv, LoaderCircle: gv }, props: { carregando: { type: Boolean, required: !0 }, erro: { type: [String, Object], default: null }, mensagemVazio: { type: String, required: !1, default: void 0 } } }), Rg = { key: 0, class: "eli-tabela eli-tabela--carregando", "aria-busy": "true" }, Bg = { key: 1, class: "eli-tabela eli-tabela--erro", role: "alert" }, Vg = { class: "eli-tabela__erro-mensagem" }, Jg = { key: 2, class: "eli-tabela eli-tabela--vazio" }; function qg(e, n, r, o, t, i) { const a = Y("LoaderCircle"), l = Y("AlertCircle"), s = Y("Inbox"); return e.carregando ? ($(), S("div", Rg, [ M(a, { class: "eli-tabela__estado-icone eli-tabela__estado-icone--spin", size: 22, "stroke-width": 2 }), n[0] || (n[0] = p("span", null, "Carregando…", -1)) ])) : e.erro ? ($(), S("div", Bg, [ M(l, { class: "eli-tabela__estado-icone eli-tabela__estado-icone--erro", size: 18, "stroke-width": 2 }), p("div", null, [ n[1] || (n[1] = p("div", { class: "eli-tabela__erro-titulo" }, "Erro", -1)), p("div", Vg, R(e.erro), 1) ]) ])) : ($(), S("div", Jg, [ M(s, { class: "eli-tabela__estado-icone", size: 22, "stroke-width": 1.5 }), p("span", null, R(e.mensagemVazio ?? "Nenhum registro encontrado."), 1) ])); } const Gg = /* @__PURE__ */ ee(Fg, [["render", qg]]), Kg = Q({ name: "EliTabelaHead", components: { ArrowUp: Co, ArrowDown: Ao }, props: { colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column type: Array, required: !0 }, temAcoes: { type: Boolean, required: !0 }, temColunasInvisiveis: { type: Boolean, required: !0 }, colunaOrdenacao: { type: [String, Object], default: null }, direcaoOrdenacao: { type: String, required: !0 }, mostrarSelecao: { type: Boolean, default: !1 }, todosSelecionados: { type: Boolean, default: !1 }, algunsSelecionados: { type: Boolean, default: !1 } }, emits: { alternarOrdenacao(e) { return typeof e == "string" && e.length > 0; }, "alternar-selecao-todos": () => !0 }, setup(e, { emit: n }) { function r(t) { return t.coluna_ordem !== void 0 && t.coluna_ordem !== null; } function o(t) { n("alternarOrdenacao", t); } return { ArrowUp: Co, ArrowDown: Ao, isOrdenavel: r, emitAlternarOrdenacao: o }; } }), Wg = { class: "eli-tabela__thead" }, Xg = { class: "eli-tabela__tr eli-tabela__tr--header" }, Hg = { key: 0, class: "eli-tabela__th eli-tabela__th--expander", scope: "col" }, Yg = { key: 1, class: "eli-tabela__th eli-tabela__th--selecao", scope: "col" }, Qg = ["checked", "indeterminate"], eh = ["onClick"], th = { class: "eli-tabela__th-texto" }, nh = { key: 1, class: "eli-tabela__th-label" }, rh = { key: 2, class: "eli-tabela__th eli-tabela__th--acoes", scope: "col" }; function ih(e, n, r, o, t, i) { const a = Y("ArrowUp"); return $(), S("thead", Wg, [ p("tr", Xg, [ e.temColunasInvisiveis ? ($(), S("th", Hg)) : K("", !0), e.mostrarSelecao ? ($(), S("th", Yg, [ p("input", { type: "checkbox", class: "eli-tabela__checkbox", checked: e.todosSelecionados, indeterminate: e.algunsSelecionados, onChange: n[0] || (n[0] = (l) => e.$emit("alternar-selecao-todos")), "aria-label": "Selecionar todos os itens da página" }, null, 40, Qg) ])) : K("", !0), ($(!0), S(ge, null, $e(e.colunas, (l, s) => ($(), S("th", { key: `th-${s}`, class: Ue(["eli-tabela__th", [e.isOrdenavel(l) ? "eli-tabela__th--ordenavel" : void 0]]), scope: "col" }, [ e.isOrdenavel(l) ? ($(), S("button", { key: 0, type: "button", class: Ue(["eli-tabela__th-botao", [ e.colunaOrdenacao === String(l.coluna_ordem) ? "eli-tabela__th-botao--ativo" : void 0 ]]), onClick: (u) => e.emitAlternarOrdenacao(String(l.coluna_ordem)) }, [ p("span", th, R(l.rotulo), 1), e.colunaOrdenacao === String(l.coluna_ordem) ? ($(), re(Re(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), { key: 0, class: "eli-tabela__th-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) : ($(), re(a, { key: 1, class: "eli-tabela__th-icone eli-tabela__th-icone--oculto", size: 16, "stroke-width": 2, "aria-hidden": "true" })) ], 10, eh)) : ($(), S("span", nh, R(l.rotulo), 1)) ], 2))), 128)), e.temAcoes ? ($(), S("th", rh, " Ações ")) : K("", !0) ]) ]); } const oh = /* @__PURE__ */ ee(Kg, [["render", ih]]), ah = Q({ name: "EliTabelaMenuAcoes", props: { menuAberto: { type: [Number, Object], default: null }, posicao: { type: Object, required: !0 }, acoes: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed type: Array, required: !0 }, linha: { // Aceita qualquer tipo de linha (objeto, string, etc.) sem validação runtime. type: [Object, String, Number, Array], default: null } }, emits: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed executar(e) { return e !== null && typeof e == "object"; } }, setup(e, { emit: n }) { const r = B(null), o = z(() => e.acoes.length > 0); function t(i) { e.linha && n("executar", { acao: i.acao, linha: e.linha }); } return { menuEl: r, possuiAcoes: o, emitExecutar: t }; } }), lh = { class: "eli-teleport-container" }, uh = ["id", "aria-labelledby"], sh = ["aria-label", "title", "onClick"], ch = { class: "eli-tabela__acoes-item-texto" }; function dh(e, n, r, o, t, i) { return $(), S("div", lh, [ ($(), re(yr, { to: "body" }, [ e.menuAberto !== null && e.possuiAcoes ? ($(), S("ul", { key: 0, id: `eli-tabela-acoes-menu-${e.menuAberto}`, ref: "menuEl", class: "eli-tabela__acoes-menu", role: "menu", "aria-labelledby": `eli-tabela-acoes-toggle-${e.menuAberto}`, style: st({ position: "fixed", top: `${e.posicao.top}px`, left: `${e.posicao.left}px`, zIndex: 999999 }) }, [ ($(!0), S(ge, null, $e(e.acoes, (a) => ($(), S("li", { key: `acao-${e.menuAberto}-${a.indice}`, class: "eli-tabela__acoes-item", role: "none" }, [ p("button", { type: "button", class: "eli-tabela__acoes-item-botao", style: st({ color: a.acao.cor }), role: "menuitem", "aria-label": a.acao.rotulo, title: a.acao.rotulo, onClick: ce((l) => e.emitExecutar(a), ["stop"]) }, [ ($(), re(Re(a.acao.icone), { class: "eli-tabela__acoes-item-icone", size: 16, "stroke-width": 2 })), p("span", ch, R(a.acao.rotulo), 1) ], 12, sh) ]))), 128)) ], 12, uh)) : K("", !0) ])) ]); } const mh = /* @__PURE__ */ ee(ah, [["render", dh]]); function fh({ aberto: e, rotulosColunas: n, configInicial: r, colunas: o }) { const t = B([]), i = B([]), a = B(null); function l() { var A, C; const m = n.value, f = (((A = r.value.visiveis) == null ? void 0 : A.length) ?? 0) > 0 || (((C = r.value.invisiveis) == null ? void 0 : C.length) ?? 0) > 0, g = new Set( o.value.filter((h) => h.visivel === !1).map((h) => h.rotulo) ), y = f ? new Set(r.value.invisiveis ?? []) : g, N = m.filter((h) => !y.has(h)), x = r.value.visiveis ?? [], D = new Set(N), L = []; for (const h of x) D.has(h) && L.push(h); for (const h of N) L.includes(h) || L.push(h); t.value = L, i.value = m.filter((h) => y.has(h)); } be( () => [e.value, n.value, r.value, o.value], () => { e.value && l(); }, { deep: !0, immediate: !0 } ); function s(m, f) { a.value = f, m.dataTransfer && (m.dataTransfer.setData("text/plain", f), m.dataTransfer.effectAllowed = "move"); } function u() { a.value = null; } function d(m, f) { const g = a.value; if (!g || g === m) return; const y = t.value.indexOf(g), N = i.value.indexOf(g), x = y >= 0 ? "visiveis" : N >= 0 ? "invisiveis" : null; if (!x) return; const D = x === "visiveis" ? t.value : i.value, L = f === "visiveis" ? t.value : i.value, A = D.indexOf(g), C = L.indexOf(m); D.splice(A, 1), L.splice(C, 0, g); } function c(m) { const f = a.value; if (!f) return; const g = m === "visiveis" ? t.value : i.value; if (g[g.length - 1] === f) return; const y = t.value.indexOf(f), N = i.value.indexOf(f); y >= 0 && t.value.splice(y, 1), N >= 0 && i.value.splice(N, 1), g.push(f); } return { visiveisLocal: t, invisiveisLocal: i, itemSendoArrastado: a, onDragStart: s, onDragEnd: u, onDragOverItem: d, onDragOverLista: c }; } const ph = Q({ name: "EliTabelaModalColunas", components: { Columns2: tv, Eye: sv, EyeOff: lv, GripVertical: mv, X: Ea, Check: Gp }, props: { aberto: { type: Boolean, required: !0 }, rotulosColunas: { type: Array, required: !0 }, configInicial: { type: Object, required: !0 }, colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic typing needed type: Array, required: !0 } }, emits: { fechar() { return !0; }, salvar(e) { return !0; } }, setup(e, { emit: n }) { const r = fh({ aberto: z(() => e.aberto), rotulosColunas: z(() => e.rotulosColunas), configInicial: z(() => e.configInicial), colunas: z(() => e.colunas) }); function o() { n("fechar"); } function t() { n("salvar", { visiveis: [...r.visiveisLocal.value], invisiveis: [...r.invisiveisLocal.value] }); } return { ...r, emitFechar: o, emitSalvar: t }; } }), vh = { class: "eli-tabela-modal-colunas__modal", role: "dialog", "aria-modal": "true", "aria-labelledby": "eli-modal-colunas-titulo" }, gh = { class: "eli-tabela-modal-colunas__header" }, hh = { class: "eli-tabela-modal-colunas__header-info" }, bh = { class: "eli-tabela-modal-colunas__instrucao" }, $h = { class: "eli-tabela-modal-colunas__conteudo" }, _h = { class: "eli-tabela-modal-colunas__coluna" }, yh = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--visiveis" }, kh = { class: "eli-tabela-modal-colunas__coluna-contador" }, Sh = ["title", "onDragstart", "onDragover"], wh = { class: "eli-tabela-modal-colunas__item-texto" }, Ih = { key: "vazio-visiveis", class: "eli-tabela-modal-colunas__vazio" }, zh = { class: "eli-tabela-modal-colunas__coluna" }, Dh = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--invisiveis" }, jh = { class: "eli-tabela-modal-colunas__coluna-contador" }, Oh = ["title", "onDragstart", "onDragover"], Eh = { class: "eli-tabela-modal-colunas__item-texto" }, xh = { key: "vazio-invisiveis", class: "eli-tabela-modal-colunas__vazio" }, Uh = { class: "eli-tabela-modal-colunas__footer" }; function Th(e, n, r, o, t, i) { const a = Y("Columns2"), l = Y("X"), s = Y("GripVertical"), u = Y("Eye"), d = Y("EyeOff"), c = Y("Check"); return $(), re(yr, { to: "body" }, [ e.aberto ? ($(), S("div", { key: 0, class: "eli-tabela-modal-colunas__overlay", role: "presentation", onClick: n[9] || (n[9] = ce((...m) => e.emitFechar && e.emitFechar(...m), ["self"])) }, [ p("div", vh, [ p("header", gh, [ p("div", hh, [ M(a, { size: 18, "stroke-width": 2, class: "eli-tabela-modal-colunas__header-icone" }), n[10] || (n[10] = p("h3", { id: "eli-modal-colunas-titulo", class: "eli-tabela-modal-colunas__titulo" }, "Configurar colunas", -1)) ]), p("button", { type: "button", class: "eli-tabela-modal-colunas__fechar", "aria-label": "Fechar modal de colunas", onClick: n[0] || (n[0] = (...m) => e.emitFechar && e.emitFechar(...m)) }, [ M(l, { size: 16, "stroke-width": 2.5 }) ]) ]), p("div", bh, [ M(s, { size: 14, "stroke-width": 2, class: "eli-tabela-modal-colunas__instrucao-icone" }), n[11] || (n[11] = ne(" Arraste para reordenar ou mover entre as listas ", -1)) ]), p("div", $h, [ p("div", _h, [ p("div", yh, [ M(u, { size: 14, "stroke-width": 2 }), n[12] || (n[12] = p("span", null, "Visíveis", -1)), p("span", kh, R(e.visiveisLocal.length), 1) ]), M(wo, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--visiveis", onDragover: n[3] || (n[3] = ce((m) => e.onDragOverLista("visiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: ue(() => [ ($(!0), S(ge, null, $e(e.visiveisLocal, (m) => ($(), S("div", { key: `vis-${m}`, class: Ue(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--visivel", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === m }]), draggable: "true", title: `Arraste para mover '${m}'`, onDragstart: (f) => e.onDragStart(f, m), onDragend: n[1] || (n[1] = (...f) => e.onDragEnd && e.onDragEnd(...f)), onDragover: ce((f) => e.onDragOverItem(m, "visiveis"), ["stop", "prevent"]), onDrop: n[2] || (n[2] = ce((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) }, [ M(s, { size: 15, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }), p("span", wh, R(m), 1), M(u, { size: 13, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--visivel", "aria-hidden": "true" }) ], 42, Sh))), 128)), e.visiveisLocal.length === 0 ? ($(), S("div", Ih, [ M(d, { size: 28, "stroke-width": 1.5, class: "eli-tabela-modal-colunas__vazio-icone" }), n[13] || (n[13] = p("span", null, [ ne("Nenhuma coluna visível."), p("br"), ne("Arraste itens da lista ao lado.") ], -1)) ])) : K("", !0) ]), _: 1 }, 8, ["onDrop"]) ]), p("div", zh, [ p("div", Dh, [ M(d, { size: 14, "stroke-width": 2 }), n[14] || (n[14] = p("span", null, "Ocultas", -1)), p("span", jh, R(e.invisiveisLocal.length), 1) ]), M(wo, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--invisiveis", onDragover: n[6] || (n[6] = ce((m) => e.onDragOverLista("invisiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: ue(() => [ ($(!0), S(ge, null, $e(e.invisiveisLocal, (m) => ($(), S("div", { key: `inv-${m}`, class: Ue(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--invisivel", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === m }]), draggable: "true", title: `Arraste para mover '${m}'`, onDragstart: (f) => e.onDragStart(f, m), onDragend: n[4] || (n[4] = (...f) => e.onDragEnd && e.onDragEnd(...f)), onDragover: ce((f) => e.onDragOverItem(m, "invisiveis"), ["stop", "prevent"]), onDrop: n[5] || (n[5] = ce((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) }, [ M(s, { size: 15, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }), p("span", Eh, R(m), 1), M(d, { size: 13, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--invisivel", "aria-hidden": "true" }) ], 42, Oh))), 128)), e.invisiveisLocal.length === 0 ? ($(), S("div", xh, [ M(u, { size: 28, "stroke-width": 1.5, class: "eli-tabela-modal-colunas__vazio-icone eli-tabela-modal-colunas__vazio-icone--ok" }), n[15] || (n[15] = p("span", null, "Todas as colunas estão visíveis.", -1)) ])) : K("", !0) ]), _: 1 }, 8, ["onDrop"]) ]) ]), p("footer", Uh, [ p("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec", onClick: n[7] || (n[7] = (...m) => e.emitFechar && e.emitFechar(...m)) }, [ M(l, { size: 14, "stroke-width": 2.5 }), n[16] || (n[16] = ne(" Cancelar ", -1)) ]), p("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim", onClick: n[8] || (n[8] = (...m) => e.emitSalvar && e.emitSalvar(...m)) }, [ M(c, { size: 14, "stroke-width": 2.5 }), n[17] || (n[17] = ne(" Salvar ", -1)) ]) ]) ]) ])) : K("", !0) ]); } const Nh = /* @__PURE__ */ ee(ph, [["render", Th]]); function Fo(e) { return e.rotulo; } function Ph({ aberto: e, filtrosBase: n, modelo: r, modeloFormula: o, emit: t }) { const i = B([]), a = B(""), l = B(""), s = z(() => i.value.map((b, I) => `{c${I + 1}}`).join(" E ")); function u(b) { let I = b; return i.value.forEach((G, j) => { I = I.replace(new RegExp(`\\{${G.chave}\\}`, "g"), `{c${j + 1}}`); }), I; } function d(b) { var G; let I = b; for (let j = i.value.length; j >= 1; j--) { const Z = (G = i.value[j - 1]) == null ? void 0 : G.chave; Z && (I = I.replace(new RegExp(`\\{c${j}\\}`, "g"), `{${Z}}`)); } return I; } const c = z(() => (n.value ?? []).map((b) => String(b.chave))), m = z(() => { const b = new Set(i.value.map((I) => String(I.chave))); return (n.value ?? []).filter((I) => !b.has(String(I.chave))); }); function f(b) { const I = b == null ? void 0 : b[0]; return I === "numero" ? Ia : I === "dataHora" ? wa : I === "selecao" ? Da : I === "selecaoMultipla" ? ja : I === "paragrafo" ? za : I === "confirmacao" ? af : wr; } function g(b) { return { ...typeof (b == null ? void 0 : b[1]) == "object" && b[1] !== null ? { ...b[1] } : {}, rotulo: "" }; } function y(b) { return (b == null ? void 0 : b[0]) === "numero" || (b == null ? void 0 : b[0]) === "dataHora" || (b == null ? void 0 : b[0]) === "selecao" ? null : (b == null ? void 0 : b[0]) === "selecaoMultipla" ? [] : (b == null ? void 0 : b[0]) === "confirmacao" ? !1 : ""; } function N() { const b = n.value ?? [], I = Array.isArray(r.value) ? r.value : []; i.value = I.map((G) => { if (!G || typeof G != "object") return null; const j = G, Z = b.find((O) => String(O.chave) === String(j.chave)) ?? b[0]; if (!Z) return null; const pe = Z.entrada ?? j.entrada, Ie = String(Z.chave ?? j.chave), E = j.valor ?? y(pe); return { chave: Ie, entrada: pe, valor: E }; }).filter(Boolean), i.value = i.value.filter((G) => c.value.includes(String(G.chave))), o.value ? l.value = u(o.value) : l.value = s.value; } be( () => [e.value, n.value, r.value], () => { e.value && N(); }, { deep: !0, immediate: !0 } ); function x() { if (!a.value) return; const b = (n.value ?? []).find( (I) => String(I.chave) === String(a.value) ); b && (i.value.some((I) => String(I.chave) === String(b.chave)) || (i.value.push({ chave: String(b.chave), entrada: b.entrada, valor: y(b.entrada) }), l.value = s.value, a.value = "")); } function D(b) { i.value.splice(b, 1), l.value = s.value; } function L() { t("fechar"); } function A() { t("limpar"); } function C() { const b = d(l.value); t( "salvar", i.value.map((I) => ({ chave: I.chave, valor: I.valor })), b ); } function h(b) { const I = (n.value ?? []).find((G) => String(G.chave) === b); return I ? Fo(I) : b; } return { linhas: i, opcoesParaAdicionar: m, chaveParaAdicionar: a, formulaCustomizada: l, formulaGerada: s, componenteEntrada: f, opcoesEntrada: g, adicionar: x, remover: D, emitFechar: L, emitSalvar: C, emitLimpar: A, rotuloDoFiltro: Fo, rotuloDoFiltroAtivo: h }; } const Ah = Q({ name: "EliTabelaModalFiltroAvancado", components: { CircleHelp: Qp, Filter: Oa, Plus: bv, Trash2: kv, X: Ea }, props: { aberto: { type: Boolean, required: !0 }, filtrosBase: { type: Array, required: !0 }, modelo: { /** Linhas persistidas do pai — normalizadas internamente via normalizarModelo() */ type: Array, required: !0 }, modeloFormula: { type: String, default: "" } }, emits: { fechar: () => !0, limpar: () => !0, /** Dado serializável emitido pelo botão Aplicar */ salvar: (e, n) => !0 }, setup(e, { emit: n }) { return Ph({ aberto: z(() => e.aberto), filtrosBase: z(() => e.filtrosBase), modelo: z(() => e.modelo), modeloFormula: z(() => e.modeloFormula), emit: n }); } }), Ch = { class: "eli-tabela-modal-filtro__modal", role: "dialog", "aria-modal": "true", "aria-label": "Filtro avançado" }, Zh = { class: "eli-tabela-modal-filtro__header" }, Mh = { class: "eli-tabela-modal-filtro__header-titulo" }, Lh = { key: 0, class: "eli-tabela-modal-filtro__contador" }, Fh = { class: "eli-tabela-modal-filtro__conteudo" }, Rh = { key: 0, class: "eli-tabela-modal-filtro__vazio" }, Bh = { key: 1 }, Vh = { key: 0, class: "eli-tabela-modal-filtro__lista" }, Jh = { class: "eli-tabela-modal-filtro__linha-header" }, qh = ["title"], Gh = { class: "eli-tabela-modal-filtro__rotulo-filtro" }, Kh = ["onClick"], Wh = { class: "eli-tabela-modal-filtro__entrada" }, Xh = { key: 1, class: "eli-tabela-modal-filtro__estado-vazio" }, Hh = { class: "eli-tabela-modal-filtro__rodape-filtros" }, Yh = { class: "eli-tabela-modal-filtro__acoes" }, Qh = ["disabled"], eb = ["value"], tb = ["disabled"], nb = { key: 0, class: "eli-tabela-modal-filtro__formula-container" }, rb = ["placeholder"], ib = { class: "eli-tabela-modal-filtro__formula-ajuda", tabindex: "0", "aria-label": "Ajuda sobre fórmulas" }, ob = { class: "eli-tabela-modal-filtro__footer" }, ab = ["disabled"]; function lb(e, n, r, o, t, i) { const a = Y("Filter"), l = Y("X"), s = Y("Trash2"), u = Y("Plus"), d = Y("CircleHelp"); return $(), re(da, { name: "eli-tabela-modal-filtro" }, { default: ue(() => [ e.aberto ? ($(), S("div", { key: 0, class: "eli-tabela-modal-filtro__overlay", role: "presentation", onClick: n[7] || (n[7] = ce((...c) => e.emitFechar && e.emitFechar(...c), ["self"])) }, [ p("div", Ch, [ p("header", Zh, [ p("div", Mh, [ M(a, { class: "eli-tabela-modal-filtro__header-icone", size: 18, "stroke-width": 2 }), n[8] || (n[8] = p("h3", { class: "eli-tabela-modal-filtro__titulo" }, "Filtro avançado", -1)), e.linhas.length ? ($(), S("span", Lh, R(e.linhas.length) + " " + R(e.linhas.length === 1 ? "filtro" : "filtros"), 1)) : K("", !0) ]), p("button", { type: "button", class: "eli-tabela-modal-filtro__fechar", "aria-label": "Fechar", onClick: n[0] || (n[0] = (...c) => e.emitFechar && e.emitFechar(...c)) }, [ M(l, { size: 18, "stroke-width": 2 }) ]) ]), p("div", Fh, [ e.filtrosBase.length ? ($(), S("div", Bh, [ e.linhas.length ? ($(), S("div", Vh, [ ($(!0), S(ge, null, $e(e.linhas, (c, m) => ($(), S("div", { key: String(c.chave), class: "eli-tabela-modal-filtro__linha" }, [ p("div", Jh, [ p("span", { class: "eli-tabela-modal-filtro__id-badge", title: `Identificador na fórmula: {c${m + 1}}` }, " c" + R(m + 1), 9, qh), p("span", Gh, R(e.rotuloDoFiltroAtivo(c.chave)), 1), p("button", { type: "button", class: "eli-tabela-modal-filtro__remover", title: "Remover filtro", "aria-label": "Remover filtro", onClick: (f) => e.remover(m) }, [ M(s, { size: 14, "stroke-width": 2 }) ], 8, Kh) ]), p("div", Wh, [ ($(), re(Re(e.componenteEntrada(c.entrada)), je({ ref_for: !0 }, { value: c.valor, opcoes: e.opcoesEntrada(c.entrada), density: "compact" }, { "onUpdate:value": (f) => c.valor = f, onInput: (f) => c.valor = f }), null, 16, ["onUpdate:value", "onInput"])) ]) ]))), 128)) ])) : ($(), S("div", Xh, [ M(a, { size: 32, "stroke-width": 1.5 }), n[9] || (n[9] = p("span", null, "Selecione um filtro abaixo para começar", -1)) ])), p("div", Hh, [ p("div", Yh, [ dn(p("select", { "onUpdate:modelValue": n[1] || (n[1] = (c) => e.chaveParaAdicionar = c), class: "eli-tabela-modal-filtro__select", disabled: !e.opcoesParaAdicionar.length }, [ n[10] || (n[10] = p("option", { disabled: "", value: "" }, "Selecione um filtro…", -1)), ($(!0), S(ge, null, $e(e.opcoesParaAdicionar, (c) => ($(), S("option", { key: String(c.chave), value: String(c.chave) }, R(e.rotuloDoFiltro(c)), 9, eb))), 128)) ], 8, Qh), [ [Mm, e.chaveParaAdicionar] ]), p("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim", onClick: n[2] || (n[2] = (...c) => e.adicionar && e.adicionar(...c)), disabled: !e.chaveParaAdicionar }, [ M(u, { size: 15, "stroke-width": 2.5 }), n[11] || (n[11] = ne(" Adicionar ", -1)) ], 8, tb) ]), e.linhas.length >= 2 ? ($(), S("div", nb, [ n[13] || (n[13] = p("label", { class: "eli-tabela-modal-filtro__formula-label" }, "Fórmula", -1)), dn(p("input", { "onUpdate:modelValue": n[3] || (n[3] = (c) => e.formulaCustomizada = c), type: "text", class: "eli-tabela-modal-filtro__formula-input", placeholder: "Ex: " + e.formulaGerada }, null, 8, rb), [ [kr, e.formulaCustomizada] ]), p("span", ib, [ M(d, { size: 15, "stroke-width": 2 }), n[12] || (n[12] = p("div", { class: "eli-tabela-modal-filtro__formula-tooltip", role: "tooltip" }, [ p("strong", null, "Como usar a fórmula"), p("p", null, [ ne("Use os identificadores "), p("code", null, "{c1}"), ne(", "), p("code", null, "{c2}"), ne(", "), p("code", null, "{c3}"), ne("… correspondentes a cada filtro acima:") ]), p("ul", null, [ p("li", null, [ p("code", null, "E"), ne(" — ambos devem ser verdadeiros") ]), p("li", null, [ p("code", null, "OU"), ne(" — pelo menos um deve ser verdadeiro") ]), p("li", null, [ p("code", null, "NAO"), ne(" — negação de uma condição") ]), p("li", null, [ p("code", null, "( )"), ne(" — agrupa condições") ]) ]), p("p", null, [ p("strong", null, "Exemplo:") ]), p("code", null, "{c1} OU ({c2} E NAO {c3})"), p("p", { class: "eli-tabela-modal-filtro__formula-tooltip-nota" }, "Deixe em branco para combinar todos com E.") ], -1)) ]) ])) : K("", !0) ]) ])) : ($(), S("div", Rh, " Nenhum filtro configurado na tabela. ")) ]), p("footer", ob, [ p("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--perigo", disabled: !e.linhas.length, onClick: n[4] || (n[4] = (...c) => e.emitLimpar && e.emitLimpar(...c)) }, " Limpar ", 8, ab), n[14] || (n[14] = p("div", { class: "eli-tabela-modal-filtro__footer-spacer" }, null, -1)), p("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec", onClick: n[5] || (n[5] = (...c) => e.emitFechar && e.emitFechar(...c)) }, " Cancelar "), p("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim", onClick: n[6] || (n[6] = (...c) => e.emitSalvar && e.emitSalvar(...c)) }, " Aplicar ") ]) ]) ])) : K("", !0) ]), _: 1 }); } const ub = /* @__PURE__ */ ee(Ah, [["render", lb]]), sb = Q({ name: "EliTabelaPaginacao", props: { pagina: { type: Number, required: !0 }, totalPaginas: { type: Number, required: !0 }, maximoBotoes: { type: Number, required: !1 }, acoes: { type: Array, required: !1, default: () => [] }, parametrosConsulta: { // biome-ignore lint/suspicious/noExplicitAny: dynamic params type: Object, required: !1 } }, emits: { alterar(e) { return Number.isFinite(e); } }, setup(e, { emit: n }) { const r = z(() => { const u = e.maximoBotoes; return typeof u == "number" && u >= 5 ? Math.floor(u) : 7; }), o = z(() => { const u = e.totalPaginas, d = e.pagina, c = r.value, m = [], f = (D) => { m.push({ label: String(D), pagina: D, ativo: D === d }); }, g = () => { m.push({ label: "…", ehEllipsis: !0 }); }; if (u <= c) { for (let D = 1; D <= u; D += 1) f(D); return m; } const y = Math.max(3, c - 2); let N = Math.max(2, d - Math.floor(y / 2)), x = N + y - 1; x >= u && (x = u - 1, N = x - y + 1), f(1), N > 2 && g(); for (let D = N; D <= x; D += 1) f(D); return x < u - 1 && g(), f(u), m; }); function t(u) { if (!u) return; const d = Math.min(Math.max(1, u), e.totalPaginas); d !== e.pagina && n("alterar", d); } const i = z(() => e.pagina <= 1), a = z(() => e.pagina >= e.totalPaginas), l = z(() => e.pagina), s = z(() => e.totalPaginas); return { botoes: o, irParaPagina: t, anteriorDesabilitado: i, proximaDesabilitada: a, paginaAtual: l, totalPaginasExibidas: s }; } }), cb = { class: "eli-tabela__rodape" }, db = { key: 0, class: "eli-tabela__acoes-inferiores", style: { "margin-right": "auto" } }, mb = ["onClick"], fb = { class: "eli-tabela__acoes-cabecalho-rotulo" }, pb = { key: 1, class: "eli-tabela__paginacao", role: "navigation", "aria-label": "Paginação de resultados" }, vb = ["disabled"], gb = { key: 0, class: "eli-tabela__pagina-ellipsis", "aria-hidden": "true" }, hb = ["disabled", "aria-current", "aria-label", "onClick"], bb = ["disabled"]; function $b(e, n, r, o, t, i) { return $(), S("div", cb, [ e.acoes.length > 0 ? ($(), S("div", db, [ ($(!0), S(ge, null, $e(e.acoes, (a, l) => ($(), S("button", { key: `${a.rotulo}-${l}`, type: "button", class: "eli-tabela__acao-inferior", style: st(a.cor ? { borderColor: a.cor, color: a.cor } : void 0), onClick: (s) => a.acao(e.parametrosConsulta) }, [ a.icone ? ($(), re(Re(a.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 })) : K("", !0), p("span", fb, R(a.rotulo), 1) ], 12, mb))), 128)) ])) : K("", !0), e.totalPaginasExibidas > 1 ? ($(), S("nav", pb, [ p("button", { type: "button", class: "eli-tabela__pagina-botao", disabled: e.anteriorDesabilitado, "aria-label": "Página anterior", onClick: n[0] || (n[0] = (a) => e.irParaPagina(e.paginaAtual - 1)) }, " << ", 8, vb), ($(!0), S(ge, null, $e(e.botoes, (a, l) => ($(), S(ge, { key: `${a.label}-${l}` }, [ a.ehEllipsis ? ($(), S("span", gb, R(a.label), 1)) : ($(), S("button", { key: 1, type: "button", class: Ue(["eli-tabela__pagina-botao", a.ativo ? "eli-tabela__pagina-botao--ativo" : void 0]), disabled: a.ativo, "aria-current": a.ativo ? "page" : void 0, "aria-label": `Ir para página ${a.label}`, onClick: (s) => e.irParaPagina(a.pagina) }, R(a.label), 11, hb)) ], 64))), 128)), p("button", { type: "button", class: "eli-tabela__pagina-botao", disabled: e.proximaDesabilitada, "aria-label": "Próxima página", onClick: n[1] || (n[1] = (a) => e.irParaPagina(e.paginaAtual + 1)) }, " >> ", 8, bb) ])) : K("", !0) ]); } const _b = /* @__PURE__ */ ee(sb, [["render", $b]]), yb = "eli:tabela"; function Ua(e) { return `${yb}:${e}:colunas`; } function Ta(e) { if (!e || typeof e != "object") return { visiveis: [], invisiveis: [] }; const n = e, r = Array.isArray(n.visiveis) ? n.visiveis.filter((t) => typeof t == "string") : [], o = Array.isArray(n.invisiveis) ? n.invisiveis.filter((t) => typeof t == "string") : []; return { visiveis: r, invisiveis: o }; } function Na(e) { try { const n = window.localStorage.getItem(Ua(e)); return n ? Ta(JSON.parse(n)) : { visiveis: [], invisiveis: [] }; } catch { return { visiveis: [], invisiveis: [] }; } } function kb(e, n) { try { window.localStorage.setItem( Ua(e), JSON.stringify(Ta(n)) ); } catch { } } function Ir(e) { return `eli_tabela:${e}:filtro_avancado`; } function Pa(e) { const n = { linhas: [], formula: "" }; try { const r = localStorage.getItem(Ir(e)); if (!r) return n; const o = JSON.parse(r); return Array.isArray(o) ? { linhas: o, formula: "" } : o && typeof o == "object" ? { linhas: Array.isArray(o.linhas) ? o.linhas : [], formula: typeof o.formula == "string" ? o.formula : "" } : n; } catch { return n; } } function Sb(e, n) { try { localStorage.setItem(Ir(e), JSON.stringify(n ?? { linhas: [] })); } catch { } } function wb(e) { try { localStorage.removeItem(Ir(e)); } catch { } } function Ib(e, n) { const r = B(!1), o = B(Na(e.tabela.nome)), t = B({}), i = z(() => e.tabela.colunas.map((g) => g.rotulo)), a = z(() => { var C, h; const g = e.tabela.colunas, N = (((C = o.value.visiveis) == null ? void 0 : C.length) ?? 0) > 0 || (((h = o.value.invisiveis) == null ? void 0 : h.length) ?? 0) > 0 ? o.value.invisiveis ?? [] : g.filter((b) => b.visivel === !1).map((b) => b.rotulo), x = new Set(N), D = g.filter((b) => x.has(b.rotulo)), L = /* @__PURE__ */ new Map(); for (const b of D) L.has(b.rotulo) || L.set(b.rotulo, b); const A = []; for (const b of N) { const I = L.get(b); I && A.push(I); } for (const b of D) A.includes(b) || A.push(b); return A; }), l = z(() => a.value.length > 0), s = z(() => { var I, G; const g = e.tabela.colunas, y = i.value, N = (((I = o.value.visiveis) == null ? void 0 : I.length) ?? 0) > 0 || (((G = o.value.invisiveis) == null ? void 0 : G.length) ?? 0) > 0, x = N ? o.value.invisiveis ?? [] : ( // biome-ignore lint/suspicious/noExplicitAny: dynamic column e.tabela.colunas.filter((j) => j.visivel === !1).map((j) => j.rotulo) ), D = new Set(x), L = y.filter((j) => !D.has(j)), A = new Set(L), C = N ? o.value.visiveis ?? [] : [], h = []; for (const j of C) A.has(j) && h.push(j); for (const j of L) h.includes(j) || h.push(j); const b = /* @__PURE__ */ new Map(); for (const j of g) b.has(j.rotulo) || b.set(j.rotulo, j); return h.map((j) => b.get(j)).filter(Boolean); }), u = z( () => s.value.length + (n.value ? 1 : 0) + (l.value ? 1 : 0) ); function d() { r.value = !0; } function c() { r.value = !1; } function m(g) { o.value = g, kb(e.tabela.nome, g), r.value = !1, t.value = {}; } function f(g) { const y = !!t.value[g]; t.value = { ...t.value, [g]: !y }; } return { modalColunasAberto: r, configColunas: o, linhasExpandidas: t, rotulosColunas: i, colunasEfetivas: s, colunasInvisiveisEfetivas: a, temColunasInvisiveis: l, totalColunas: u, abrirModalColunas: d, fecharModalColunas: c, salvarModalColunas: m, alternarLinhaExpandida: f }; } var Aa = ((e) => (e[e.sucesso = 200] = "sucesso", e[e.erroConhecido = 400] = "erroConhecido", e[e.erroPermissao = 401] = "erroPermissao", e[e.erroNaoEncontrado = 404] = "erroNaoEncontrado", e[e.erroDesconhecido = 500] = "erroDesconhecido", e[e.tempoEsgotado = 504] = "tempoEsgotado", e))(Aa || {}); function zb(e, n, r, o, t) { const a = B(!1), l = B(null), s = B([]), u = B(0), d = B([]), c = B(null), m = B("asc"), f = z(() => e.tabela), g = z(() => { const E = e.tabela.registros_por_consulta; return typeof E == "number" && E > 0 ? Math.floor(E) : 10; }), y = z(() => { const E = g.value; if (!E || E <= 0) return 1; const O = u.value ?? 0; return O ? Math.max(1, Math.ceil(O / E)) : 1; }), N = z(() => s.value ?? []), x = z(() => u.value ?? 0), D = z(() => (e.tabela.acoesLinha ?? []).length > 0), L = z(() => !!e.tabela.mostrarCaixaDeBusca), A = z( () => (e.tabela.acoesTabela ?? []).filter((E) => E.posicao === "superior") ), C = z( () => (e.tabela.acoesTabela ?? []).filter((E) => E.posicao === "inferior") ), h = z(() => A.value.length > 0), b = z(() => C.value.length > 0), I = z(() => { const E = Math.max(1, g.value), k = { offSet: (r.value - 1) * E, limit: E }, U = (o.value ?? "").trim(); if (U) k.texto_busca = U; else { const T = n.value; T.length && (k.filtros = T); } return c.value && (k.coluna_ordem = c.value, k.direcao_ordem = m.value), { ...k, atualizarConsulta: async () => { await j(); }, // biome-ignore lint/suspicious/noExplicitAny: dynamic list update editarLista: async (T) => (s.value = T, T) }; }); let G = 0; async function j() { var O, k; const E = ++G; a.value = !0, l.value = null; try { d.value = [], t.value = {}; const U = Math.max(1, g.value), F = { offSet: (r.value - 1) * U, limit: U }, q = (o.value ?? "").trim(); if (q) F.texto_busca = q; else { const ke = n.value; ke.length && (F.filtros = ke); } c.value && (F.coluna_ordem = c.value, F.direcao_ordem = m.value); const te = await e.tabela.consulta(F); if (E !== G) return; if (te.cod !== Aa.sucesso) { s.value = [], u.value = 0, l.value = te.mensagem; return; } const le = ((O = te.valor) == null ? void 0 : O.valores) ?? [], de = ((k = te.valor) == null ? void 0 : k.quantidade) ?? le.length; s.value = le, u.value = Number(de) || 0; const ve = Math.max(1, Math.ceil((u.value || 0) / U)); r.value > ve && (r.value = ve); const ye = e.tabela.acoesLinha ?? []; if (!ye.length) { d.value = []; return; } d.value = le.map( () => ye.map( (ke) => ke.exibir === void 0 ? !0 : typeof ke.exibir == "boolean" ? ke.exibir : !1 ) ); const Ve = await Promise.all( le.map( (ke) => Promise.all( ye.map(async (Ce) => { if (Ce.exibir === void 0) return !0; if (typeof Ce.exibir == "boolean") return Ce.exibir; try { return !!await Promise.resolve(Ce.exibir(ke)); } catch { return !1; } }) ) ) ); E === G && (d.value = Ve); } catch (U) { if (console.error("[EliTabela] Erro capturado em carregar():", U), E !== G) return; s.value = [], u.value = 0, l.value = U instanceof Error ? U.message : "Erro ao carregar dados."; } finally { E === G && (a.value = !1); } } function Z(E) { if (E) { if (c.value === E) { m.value = m.value === "asc" ? "desc" : "asc", j(); return; } c.value = E, m.value = "asc", r.value !== 1 ? r.value = 1 : j(); } } function pe(E) { o.value !== E && (o.value = E, r.value !== 1 ? r.value = 1 : j()); } function Ie(E) { const O = Math.min(Math.max(1, E), y.value); O !== r.value && (r.value = O); } return be(r, (E, O) => { E !== O && j(); }), be(s, () => { t.value = {}; }), be( () => e.tabela.mostrarCaixaDeBusca, (E) => { !E && o.value && (o.value = "", r.value !== 1 ? r.value = 1 : j()); } ), be( () => e.tabela.registros_por_consulta, () => { r.value !== 1 ? r.value = 1 : j(); } ), { isDev: !1, tabela: f, carregando: a, erro: l, linhas: s, linhasPaginadas: N, quantidade: u, quantidadeFiltrada: x, acoesVisiveis: d, colunaOrdenacao: c, direcaoOrdenacao: m, registrosPorConsulta: g, totalPaginas: y, temAcoes: D, exibirBusca: L, acoesSuperiores: A, acoesInferiores: C, temAcoesSuperiores: h, temAcoesInferiores: b, parametrosConsultaAtuais: I, carregar: j, alternarOrdenacao: Z, atualizarBusca: pe, irParaPagina: Ie }; } function Db(e, n, r, o) { const t = Pa(e.tabela.nome), i = B(t.linhas), a = B(t.formula ?? ""), l = B(!1), s = z(() => (e.tabela.filtroAvancado ?? []).length > 0), u = z(() => { const x = e.tabela.filtroAvancado ?? [], D = (i.value ?? []).filter((h) => h && h.chave !== void 0); if (D.length === 0) return []; const L = D.map((h) => { const b = x.find((G) => String(G.chave) === String(h.chave)); if (!b) return null; const I = b.filtro(h.valor); return I ? { chave: h.chave, condicao: I } : null; }).filter((h) => h !== null); if (L.length === 0) return []; if (a.value && L.length > 1) { const h = []; let b = a.value; return L.forEach(({ chave: I }, G) => { b = b.replace(new RegExp(`\\{${I}\\}`, "g"), `{c${G + 1}}`); }), L.forEach(({ condicao: I }, G) => { const j = `{c${G + 1}}`; h.push({ ...I, id: j }); }), [{ condicoes: h, formula: b }]; } const A = L.map( ({ condicao: h }, b) => ({ ...h, id: `{c${b + 1}}` }) ), C = A.map((h) => h.id).join(" E "); return [{ condicoes: A, formula: C }]; }); function d() { l.value = !0; } function c() { l.value = !1; } function m() { i.value = [], a.value = "", wb(e.tabela.nome), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); } function f(x, D) { i.value = x ?? [], a.value = D ?? "", Sb(e.tabela.nome, { linhas: i.value, formula: a.value }), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); } const g = { "=": "igual a", "!=": "diferente de", ">": "maior que", "<": "menor que", ">=": "maior ou igual a", "<=": "menor ou igual a", like: "contém", in: "em", "∩": "possui" }; function y(x, D) { const [L, A] = Array.isArray(x) ? x : [x, {}]; if (L === "confirmacao") { const C = A || {}; return D === !0 ? C.rotuloAtivo || "Sim" : D === !1 ? C.rotuloInativo || "Não" : String(D); } if ((L === "selecao" || L === "selecaoMultipla") && typeof (A == null ? void 0 : A.itens) == "function") try { const C = A.itens(); if (Array.isArray(C)) { const h = (b) => { const I = C.find( (G) => String(G.chave) === String(b) ); return I ? I.rotulo : b; }; return Array.isArray(D) ? D.map((b) => h(String(b))).join(", ") : h(String(D)); } } catch { } return Array.isArray(D) ? D.map(String).join(", ") : String(D); } const N = z(() => { const x = e.tabela.filtroAvancado ?? [], D = (i.value ?? []).filter((A) => A && A.chave !== void 0), L = []; for (const A of D) { const C = x.find((h) => String(h.chave) === String(A.chave)); if (C) { const h = C.filtro(A.valor); if (h) { const b = g[h.operador] || h.operador, I = y(C.entrada, h.valor); L.push(`${C.rotulo} ${b} "${I}"`); } } } return { quantidade: L.length, rotulos: L }; }); return { filtrosUi: i, filtrosFormula: a, modalFiltroAberto: l, exibirFiltroAvancado: s, filtrosAvancadosAtivos: u, filtrosAtivosResumo: N, abrirModalFiltro: d, fecharModalFiltro: c, limparFiltrosAvancados: m, salvarFiltrosAvancados: f }; } function jb(e, n) { const r = B(null), o = B(null), t = B({ top: 0, left: 0 }); function i(d) { var x, D, L, A; const c = d.getBoundingClientRect(), m = 8, f = ((D = (x = o.value) == null ? void 0 : x.menuEl) == null ? void 0 : D.offsetHeight) ?? 0, g = ((A = (L = o.value) == null ? void 0 : L.menuEl) == null ? void 0 : A.offsetWidth) ?? 180; let y = c.bottom + m; const N = c.right - g; f && y + f > window.innerHeight - m && (y = c.top - m - f), t.value = { top: Math.max(m, Math.round(y)), left: Math.max(m, Math.round(N)) }; } function a(d) { var m, f; if (r.value === null) return; const c = d.target; (f = (m = o.value) == null ? void 0 : m.menuEl) != null && f.contains(c) || (r.value = null); } function l(d) { const c = e.tabela.acoesLinha ?? [], m = n.value[d] ?? []; return c.map((f, g) => { const y = f.exibir === void 0 ? !0 : typeof f.exibir == "boolean" ? f.exibir : !1; return { acao: f, indice: g, visivel: m[g] ?? y }; }).filter((f) => f.visivel); } function s(d) { return l(d).length > 0; } function u(d, c) { if (!s(d)) return; if (r.value === d) { r.value = null; return; } r.value = d; const m = (c == null ? void 0 : c.currentTarget) ?? null; m && (i(m), _r(() => { r.value !== null && i(m); })); } return We(() => document.addEventListener("click", a)), wt(() => document.removeEventListener("click", a)), { menuAberto: r, menuPopup: o, menuPopupPos: t, possuiAcoes: s, toggleMenu: u, acoesDisponiveisPorLinha: l }; } function Ob(e, n, r) { const o = z(() => !!e.tabela.mostrar_selecao), t = z(() => e.tabela.chave_selecao); function i(c) { return t.value && c && typeof c == "object" ? c[t.value] : c; } function a(c) { const m = i(c); return t.value ? e.selecionados.some((f) => i(f) === m) : e.selecionados.includes(c); } function l(c) { const m = [...e.selecionados], f = i(c); let g = -1; t.value ? g = m.findIndex((y) => i(y) === f) : g = m.indexOf(c), g === -1 ? m.push(c) : m.splice(g, 1), n("update:selecionados", m); } const s = z(() => r.value.length === 0 ? !1 : r.value.every((c) => a(c))), u = z(() => r.value.length === 0 ? !1 : r.value.some((c) => a(c)) && !s.value); function d(c) { const m = c ?? !s.value; let f = [...e.selecionados]; if (m) for (const g of r.value) a(g) || f.push(g); else { const g = r.value.map(i); t.value ? f = f.filter((y) => !g.includes(i(y))) : f = f.filter((y) => !g.includes(y)); } n("update:selecionados", f); } return { mostrarSelecao: o, isSelecionado: a, alternarSelecao: l, todosSelecionados: s, algunsSelecionados: u, alternarSelecaoTodos: d }; } function Eb(e, n) { const r = B(1), o = B(""); let t = async () => { }; const a = Db(e, r, o, () => t()), l = B(!1), s = Ib(e, l), u = zb( e, a.filtrosAvancadosAtivos, r, o, s.linhasExpandidas ); t = u.carregar, l.value = u.temAcoes.value, be(u.temAcoes, (m) => { l.value = m; }); const d = Ob(e, n, u.linhasPaginadas), c = jb(e, u.acoesVisiveis); return be( () => e.tabela, () => { c.menuAberto.value = null, u.colunaOrdenacao.value = null, u.direcaoOrdenacao.value = "asc", o.value = "", s.modalColunasAberto.value = !1, a.modalFiltroAberto.value = !1, s.configColunas.value = Na(e.tabela.nome); const m = Pa(e.tabela.nome); a.filtrosUi.value = m.linhas, s.linhasExpandidas.value = {}, r.value !== 1 ? r.value = 1 : u.carregar(); } ), We(() => void u.carregar()), { ...u, ...a, ...d, ...s, menuAberto: c.menuAberto, menuPopup: c.menuPopup, menuPopupPos: c.menuPopupPos, possuiAcoes: c.possuiAcoes, toggleMenu: c.toggleMenu, acoesDisponiveisPorLinha: c.acoesDisponiveisPorLinha, paginaAtual: r, valorBusca: o }; } const xb = Q({ name: "EliTabela", inheritAttrs: !1, components: { EliTabelaCabecalho: Eg, EliTabelaEstados: Gg, EliTabelaDebug: Lg, EliTabelaHead: oh, EliTabelaBody: pg, EliTabelaMenuAcoes: mh, EliTabelaPaginacao: _b, EliTabelaModalColunas: Nh, EliTabelaModalFiltroAvancado: ub }, props: { /** Configuração principal da tabela (colunas, consulta e ações) */ tabela: { // biome-ignore lint/suspicious/noExplicitAny: dynamic table type: Object, required: !0 }, /** Array de itens selecionados (v-model:selecionados) */ selecionados: { type: Array, default: () => [] }, /** Ocultar painel de debug lateral (EliTabelaDebug) */ esconderDebug: { type: Boolean, default: !1 } }, emits: ["update:selecionados"], setup(e, { emit: n }) { return Eb(e, n); } }), Ub = { class: "eli-tabela" }, Tb = { class: "eli-tabela__table-wrapper" }, Nb = { class: "eli-tabela__table" }, Pb = { key: 0 }, Ab = ["colspan"]; function Cb(e, n, r, o, t, i) { const a = Y("EliTabelaDebug"), l = Y("EliTabelaCabecalho"), s = Y("EliTabelaModalColunas"), u = Y("EliTabelaModalFiltroAvancado"), d = Y("EliTabelaHead"), c = Y("EliTabelaEstados"), m = Y("EliTabelaBody"), f = Y("EliTabelaMenuAcoes"), g = Y("EliTabelaPaginacao"); return $(), S("div", Ub, [ M(a, { isDev: e.isDev, menuAberto: e.menuAberto, menuPopupPos: e.menuPopupPos }, { default: ue(() => [ p("div", null, "paginaAtual: " + R(e.paginaAtual), 1), p("div", null, "limit: " + R(e.registrosPorConsulta), 1), p("div", null, "texto_busca: " + R((e.valorBusca || "").trim()), 1), p("div", null, "filtrosAvancadosAtivos: " + R(JSON.stringify(e.filtrosAvancadosAtivos)), 1), p("div", null, "quantidadeTotal: " + R(e.quantidade), 1) ]), _: 1 }, 8, ["isDev", "menuAberto", "menuPopupPos"]), e.exibirBusca || e.temAcoesSuperiores ? ($(), re(l, { key: 0, exibirBusca: e.exibirBusca, exibirBotaoFiltroAvancado: e.exibirFiltroAvancado, filtrosAtivosResumo: e.filtrosAtivosResumo, valorBusca: e.valorBusca, acoesCabecalho: e.acoesSuperiores, parametrosConsulta: e.parametrosConsultaAtuais, onBuscar: e.atualizarBusca, onColunas: e.abrirModalColunas, onFiltroAvancado: e.abrirModalFiltro }, null, 8, ["exibirBusca", "exibirBotaoFiltroAvancado", "filtrosAtivosResumo", "valorBusca", "acoesCabecalho", "parametrosConsulta", "onBuscar", "onColunas", "onFiltroAvancado"])) : K("", !0), M(s, { aberto: e.modalColunasAberto, rotulosColunas: e.rotulosColunas, configInicial: e.configColunas, colunas: e.tabela.colunas, onFechar: e.fecharModalColunas, onSalvar: e.salvarModalColunas }, null, 8, ["aberto", "rotulosColunas", "configInicial", "colunas", "onFechar", "onSalvar"]), M(u, { aberto: e.modalFiltroAberto, filtrosBase: e.tabela.filtroAvancado ?? [], modelo: e.filtrosUi, modeloFormula: e.filtrosFormula, onFechar: e.fecharModalFiltro, onLimpar: e.limparFiltrosAvancados, onSalvar: e.salvarFiltrosAvancados }, null, 8, ["aberto", "filtrosBase", "modelo", "modeloFormula", "onFechar", "onLimpar", "onSalvar"]), p("div", Tb, [ p("table", Nb, [ M(d, { colunas: e.colunasEfetivas, temAcoes: e.temAcoes, temColunasInvisiveis: e.temColunasInvisiveis, colunaOrdenacao: e.colunaOrdenacao, direcaoOrdenacao: e.direcaoOrdenacao, mostrarSelecao: e.mostrarSelecao, todosSelecionados: e.todosSelecionados, algunsSelecionados: e.algunsSelecionados, onAlternarOrdenacao: e.alternarOrdenacao, onAlternarSelecaoTodos: e.alternarSelecaoTodos }, null, 8, ["colunas", "temAcoes", "temColunasInvisiveis", "colunaOrdenacao", "direcaoOrdenacao", "mostrarSelecao", "todosSelecionados", "algunsSelecionados", "onAlternarOrdenacao", "onAlternarSelecaoTodos"]), e.carregando || e.erro || !e.linhas.length ? ($(), S("tbody", Pb, [ p("tr", null, [ p("td", { colspan: e.totalColunas, class: "eli-tabela__td--estados" }, [ M(c, { carregando: e.carregando, erro: e.erro, mensagemVazio: e.tabela.mensagemVazio, class: "eli-tabela__estados-inline" }, null, 8, ["carregando", "erro", "mensagemVazio"]) ], 8, Ab) ]) ])) : ($(), re(m, { key: 1, colunas: e.colunasEfetivas, colunasInvisiveis: e.colunasInvisiveisEfetivas, temColunasInvisiveis: e.temColunasInvisiveis, linhasExpandidas: e.linhasExpandidas, linhas: e.linhasPaginadas, temAcoes: e.temAcoes, menuAberto: e.menuAberto, possuiAcoes: e.possuiAcoes, toggleMenu: e.toggleMenu, alternarLinhaExpandida: e.alternarLinhaExpandida, mostrarSelecao: e.mostrarSelecao, isSelecionado: e.isSelecionado, alternarSelecao: e.alternarSelecao }, null, 8, ["colunas", "colunasInvisiveis", "temColunasInvisiveis", "linhasExpandidas", "linhas", "temAcoes", "menuAberto", "possuiAcoes", "toggleMenu", "alternarLinhaExpandida", "mostrarSelecao", "isSelecionado", "alternarSelecao"])) ]) ]), M(f, { ref: "menuPopup", menuAberto: e.menuAberto, posicao: e.menuPopupPos, acoes: e.menuAberto === null ? [] : e.acoesDisponiveisPorLinha(e.menuAberto), linha: e.menuAberto === null ? null : e.linhasPaginadas[e.menuAberto], onExecutar: n[0] || (n[0] = ({ acao: y, linha: N }) => { e.menuAberto = null, y.acao(N); }) }, null, 8, ["menuAberto", "posicao", "acoes", "linha"]), e.totalPaginas > 1 && e.quantidadeFiltrada > 0 || e.temAcoesInferiores ? ($(), re(g, { key: 1, pagina: e.paginaAtual, totalPaginas: e.totalPaginas, maximoBotoes: e.tabela.maximo_botoes_paginacao, acoes: e.acoesInferiores, parametrosConsulta: e.parametrosConsultaAtuais, onAlterar: e.irParaPagina }, null, 8, ["pagina", "totalPaginas", "maximoBotoes", "acoes", "parametrosConsulta", "onAlterar"])) : K("", !0) ]); } const Zb = /* @__PURE__ */ ee(xb, [["render", Cb]]), DS = (e, n) => [e, n]; function Mb(e, n) { const r = [ `## Elemento: ${e.seletor}`, "", `- **Página:** \`${n}\``, `- **Tag:** \`<${e.tag}>\`` ]; if (e.id && r.push(`- **ID:** \`${e.id}\``), e.classes.length && r.push(`- **Classes:** \`${e.classes.join(", ")}\``), r.push(`- **Caminho DOM:** \`${e.caminhoDom}\``), Object.keys(e.dataAtributos).length) { r.push("- **data-* atributos:**"); for (const [t, i] of Object.entries(e.dataAtributos)) r.push(` - \`${t}\` = \`${i}\``); } return e.textoVisivel && r.push(`- **Texto visível:** "${e.textoVisivel}"`), r.join(` `); } function Lb(e) { const n = [ "# Relatório de Feedback de Interface", "", `> Gerado em: ${(/* @__PURE__ */ new Date()).toLocaleString("pt-BR")}`, `> Total de itens: ${e.length}`, "", "---", "" ]; for (const r of e) { const o = r.elemento; if (n.push(`## 🔹 ${o.seletor}`), n.push(""), n.push(`- **Data:** ${new Date(r.criadoEm).toLocaleString("pt-BR")}`), n.push(`- **Página:** \`${r.urlPagina}\``), n.push(`- **Tag:** \`<${o.tag}>\``), o.id && n.push(`- **ID:** \`${o.id}\``), o.classes.length && n.push(`- **Classes:** \`${o.classes.join(", ")}\``), n.push(`- **Caminho DOM:** \`${o.caminhoDom}\``), Object.keys(o.dataAtributos).length) { n.push("- **data-* atributos:**"); for (const [i, a] of Object.entries(o.dataAtributos)) n.push(` - \`${i}\` = \`${a}\``); } o.textoVisivel && n.push(`- **Texto visível:** "${o.textoVisivel}"`), n.push(""), n.push("### Comentário"), n.push(""), n.push(r.comentario), n.push(""), n.push("---"), n.push(""); } return n.join(` `); } function Fb(e) { const n = {}; for (const a of Array.from(e.attributes)) a.name.startsWith("data-") && (n[a.name] = a.value); const r = (e.textContent ?? "").trim().slice(0, 120), o = []; let t = e; for (let a = 0; a < 4 && t && t !== document.body; a++) { const l = t.tagName.toLowerCase() + (t.id ? `#${t.id}` : "") + (t.classList.length ? `.${Array.from(t.classList).join(".")}` : ""); o.unshift(l), t = t.parentElement; } let i = e.tagName.toLowerCase(); return e.id ? i = `#${e.id}` : e.classList.length && (i = `${e.tagName.toLowerCase()}.${Array.from(e.classList).join(".")}`), { seletor: i, id: e.id || null, classes: Array.from(e.classList), tag: e.tagName.toLowerCase(), textoVisivel: r, dataAtributos: n, caminhoDom: o.join(" > ") }; } const dr = "eli-feedback-items"; function Rb() { return `fb-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`; } function Bb() { const e = B("inativo"), n = B(null), r = B(""), o = B(null), t = B(!1), i = B(!1); function a() { try { const j = localStorage.getItem(dr); return j ? JSON.parse(j) : []; } catch { return []; } } const l = B(a()), s = z(() => l.value.length); function u() { localStorage.setItem(dr, JSON.stringify(l.value)); } let d = null; function c() { d = document.createElement("div"), d.id = "eli-feedback-overlay", Object.assign(d.style, { position: "fixed", pointerEvents: "none", border: "2px solid #C62828", background: "rgba(198, 40, 40, 0.08)", borderRadius: "4px", zIndex: "99998", transition: "all 0.1s ease", display: "none" }), document.body.appendChild(d); } function m() { d && (d.remove(), d = null); } function f(j) { if (!d) return; const Z = j.getBoundingClientRect(); Object.assign(d.style, { display: "block", top: `${Z.top - 2}px`, left: `${Z.left - 2}px`, width: `${Z.width + 4}px`, height: `${Z.height + 4}px` }); } function g(j) { const Z = j.target; Z.closest("#eli-feedback-widget") || Z.id === "eli-feedback-overlay" || (o.value = Z, f(Z)); } function y() { document.removeEventListener("mousemove", g, !0), document.removeEventListener("click", N, !0), document.removeEventListener("keydown", x, !0), document.body.style.cursor = "", d && (d.style.display = "none"); } function N(j) { j.preventDefault(), j.stopPropagation(), j.stopImmediatePropagation(); const Z = j.target; if (Z.closest("#eli-feedback-widget") || Z.id === "eli-feedback-overlay") return; const pe = Fb(Z), Ie = e.value; if (y(), Ie === "selecionando-copiar") { const E = Mb(pe, window.location.href); navigator.clipboard.writeText(E).then(() => { i.value = !0, setTimeout(() => { i.value = !1; }, 1500); }).catch(() => { }), e.value = "inativo", m(); } else n.value = pe, e.value = "comentando"; } function x(j) { j.key === "Escape" && C(); } function D() { n.value = null, r.value = "", t.value = !1, c(), document.body.style.cursor = "crosshair", document.addEventListener("mousemove", g, !0), document.addEventListener("click", N, !0), document.addEventListener("keydown", x, !0); } function L() { e.value = "selecionando", D(); } function A() { e.value = "selecionando-copiar", D(); } function C() { e.value = "inativo", n.value = null, o.value = null, r.value = "", y(), m(); } function h() { if (!n.value || !r.value.trim()) return; const j = { id: Rb(), criadoEm: (/* @__PURE__ */ new Date()).toISOString(), elemento: n.value, comentario: r.value.trim(), urlPagina: window.location.href }; l.value.unshift(j), u(), e.value = "inativo", n.value = null, r.value = "", m(); } function b() { if (!l.value.length) return; const j = Lb(l.value), Z = new Blob([j], { type: "text/markdown;charset=utf-8" }), pe = URL.createObjectURL(Z); window.open(pe, "_blank"); } function I() { l.value = [], localStorage.removeItem(dr); } function G(j) { l.value = l.value.filter((Z) => Z.id !== j), u(); } return wt(() => { C(); }), { modo: e, elementoSelecionado: n, comentario: r, painelAberto: t, copiouElemento: i, itens: l, totalItens: s, iniciarSelecao: L, iniciarSelecaoParaCopiar: A, cancelarSelecao: C, salvarFeedback: h, exportarMarkdown: b, limparTodos: I, removerItem: G }; } const Vb = Q({ name: "EliFeedbackWidget", setup() { const e = B(null), n = B(!1), { modo: r, elementoSelecionado: o, comentario: t, copiouElemento: i, itens: a, totalItens: l, iniciarSelecao: s, iniciarSelecaoParaCopiar: u, cancelarSelecao: d, salvarFeedback: c, exportarMarkdown: m, limparTodos: f } = Bb(); function g() { r.value !== "inativo" ? (d(), n.value = !1) : n.value = !n.value; } function y() { n.value = !1, s(); } function N() { n.value = !1, u(); } function x() { f(), n.value = !1; } return be(r, async (D) => { var L; D === "comentando" && (await _r(), (L = e.value) == null || L.focus()); }), { textareaRef: e, expandido: n, modo: r, elementoSelecionado: o, comentario: t, copiouElemento: i, itens: a, totalItens: l, aoClicarFab: g, aoIniciarFeedback: y, aoIniciarCopia: N, cancelarSelecao: d, salvarFeedback: c, exportarMarkdown: m, confirmarLimpeza: x }; } }), Jb = { id: "eli-feedback-widget", class: "eli-feedback-fab" }, qb = { key: 0, class: "eli-fb-acoes" }, Gb = ["title"], Kb = { key: 0 }, Wb = { key: 1 }, Xb = { key: 2, class: "eli-fb-badge" }, Hb = { key: 1, class: "eli-fb-tooltip-selecao" }, Yb = { key: 0 }, Qb = { key: 1 }, e$ = { key: 2, class: "eli-fb-painel" }, t$ = { class: "eli-fb-painel-header" }, n$ = { class: "eli-fb-painel-corpo" }, r$ = { class: "eli-fb-el-info" }, i$ = { key: 0 }, o$ = { key: 1 }, a$ = { key: 2 }, l$ = { class: "eli-fb-painel-acoes" }, u$ = ["disabled"]; function s$(e, n, r, o, t, i) { return $(), S("div", Jb, [ e.expandido && e.modo === "inativo" ? ($(), S("div", qb, [ p("button", { class: "eli-fb-botao-ico eli-fb-botao-feedback", title: "Adicionar feedback com comentário", onClick: n[0] || (n[0] = (...a) => e.aoIniciarFeedback && e.aoIniciarFeedback(...a)) }, " 🐛 "), p("button", { class: "eli-fb-botao-ico eli-fb-botao-copiar", title: "Selecionar elemento e copiar dados", onClick: n[1] || (n[1] = (...a) => e.aoIniciarCopia && e.aoIniciarCopia(...a)) }, R(e.copiouElemento ? "✅" : "📋"), 1), e.totalItens > 0 ? ($(), S("button", { key: 0, class: "eli-fb-botao-ico eli-fb-botao-exportar", title: `Visualizar ${e.totalItens} feedback(s) em nova aba`, onClick: n[2] || (n[2] = (...a) => e.exportarMarkdown && e.exportarMarkdown(...a)) }, " 📄 ", 8, Gb)) : K("", !0), e.totalItens > 0 ? ($(), S("button", { key: 1, class: "eli-fb-botao-ico eli-fb-botao-limpar", title: "Limpar todos os feedbacks", onClick: n[3] || (n[3] = (...a) => e.confirmarLimpeza && e.confirmarLimpeza(...a)) }, " 🗑️ ")) : K("", !0) ])) : K("", !0), p("button", { class: "eli-fb-botao-principal", title: "Ferramentas de feedback", onClick: n[4] || (n[4] = (...a) => e.aoClicarFab && e.aoClicarFab(...a)) }, [ e.modo === "inativo" && !e.expandido ? ($(), S("span", Kb, "🐛")) : ($(), S("span", Wb, "✕")), e.totalItens > 0 && e.modo === "inativo" && !e.expandido ? ($(), S("span", Xb, R(e.totalItens), 1)) : K("", !0) ]), e.modo === "selecionando" || e.modo === "selecionando-copiar" ? ($(), S("div", Hb, [ e.modo === "selecionando" ? ($(), S("span", Yb, "🎯 Clique no elemento")) : ($(), S("span", Qb, "📋 Clique para copiar")), n[10] || (n[10] = p("span", { class: "eli-fb-tooltip-esc" }, [ p("kbd", null, "ESC"), ne(" cancela") ], -1)) ])) : K("", !0), e.modo === "comentando" && e.elementoSelecionado ? ($(), S("div", e$, [ p("div", t$, [ n[11] || (n[11] = p("h3", null, "💬 Adicionar Feedback", -1)), p("button", { class: "eli-fb-painel-fechar", onClick: n[5] || (n[5] = (...a) => e.cancelarSelecao && e.cancelarSelecao(...a)) }, "✕") ]), p("div", n$, [ p("div", r$, [ p("div", null, [ n[12] || (n[12] = p("strong", null, "Seletor:", -1)), n[13] || (n[13] = ne()), p("code", null, R(e.elementoSelecionado.seletor), 1) ]), p("div", null, [ n[14] || (n[14] = p("strong", null, "Tag:", -1)), n[15] || (n[15] = ne()), p("code", null, "<" + R(e.elementoSelecionado.tag) + ">", 1) ]), e.elementoSelecionado.id ? ($(), S("div", i$, [ n[16] || (n[16] = p("strong", null, "ID:", -1)), n[17] || (n[17] = ne()), p("code", null, R(e.elementoSelecionado.id), 1) ])) : K("", !0), e.elementoSelecionado.classes.length ? ($(), S("div", o$, [ n[18] || (n[18] = p("strong", null, "Classes:", -1)), p("code", null, R(e.elementoSelecionado.classes.join(", ")), 1) ])) : K("", !0), p("div", null, [ n[19] || (n[19] = p("strong", null, "Caminho:", -1)), n[20] || (n[20] = ne()), p("code", null, R(e.elementoSelecionado.caminhoDom), 1) ]), e.elementoSelecionado.textoVisivel ? ($(), S("div", a$, [ n[21] || (n[21] = p("strong", null, "Texto:", -1)), ne(' "' + R(e.elementoSelecionado.textoVisivel) + '" ', 1) ])) : K("", !0) ]), dn(p("textarea", { ref: "textareaRef", "onUpdate:modelValue": n[6] || (n[6] = (a) => e.comentario = a), class: "eli-fb-textarea", placeholder: "Descreva o problema, sugestão ou observação...", onKeydown: n[7] || (n[7] = ut(ce((...a) => e.salvarFeedback && e.salvarFeedback(...a), ["ctrl"]), ["enter"])) }, null, 544), [ [kr, e.comentario] ]), p("div", l$, [ p("button", { class: "eli-fb-btn-cancelar", onClick: n[8] || (n[8] = (...a) => e.cancelarSelecao && e.cancelarSelecao(...a)) }, " Cancelar "), p("button", { class: "eli-fb-btn-salvar", disabled: !e.comentario.trim(), onClick: n[9] || (n[9] = (...a) => e.salvarFeedback && e.salvarFeedback(...a)) }, " Salvar ✓ ", 8, u$) ]) ]) ])) : K("", !0) ]); } const c$ = /* @__PURE__ */ ee(Vb, [["render", s$]]), d$ = Q({ name: "EliOlaMundo", components: { EliBotao: ba, EliBadge: Sr, EliEntradaTexto: wr }, setup() { const e = B(""), n = B(""), r = B(""), o = B(""), t = B(""); return { nome: e, email: o, documento: t, telefone: r, cep: n }; } }), m$ = { class: "grid-example" }; function f$(e, n, r, o, t, i) { const a = Y("EliBadge"), l = Y("EliEntradaTexto"), s = Y("EliBotao"); return $(), re(Gm, null, { default: ue(() => [ M(ma, { class: "mx-auto", max_width: "400" }, { default: ue(() => [ M(fa, null, { default: ue(() => [ M(a, { badge: "Novo", "offset-x": "-15", location: "right center" }, { default: ue(() => [...n[5] || (n[5] = [ ne(" Olá Mundo! ", -1) ])]), _: 1 }) ]), _: 1 }), M(pa, null, { default: ue(() => [ n[6] || (n[6] = ne(" Este é um componente de exemplo integrado com Vuetify. ", -1)), p("div", m$, [ M(l, { value: e.nome, "onUpdate:value": n[0] || (n[0] = (u) => e.nome = u), opcoes: { rotulo: "Nome", placeholder: "Digite o nome" }, density: "compact" }, null, 8, ["value"]), M(l, { value: e.telefone, "onUpdate:value": n[1] || (n[1] = (u) => e.telefone = u), opcoes: { rotulo: "Telefone", formato: "telefone" } }, null, 8, ["value"]), M(l, { value: e.cep, "onUpdate:value": n[2] || (n[2] = (u) => e.cep = u), opcoes: { rotulo: "CEP", placeholder: "00000-000", formato: "cep" } }, null, 8, ["value"]), M(l, { value: e.documento, "onUpdate:value": n[3] || (n[3] = (u) => e.documento = u), opcoes: { rotulo: "CPF / CNPJ", formato: "cpfCnpj" } }, null, 8, ["value"]), M(l, { value: e.email, "onUpdate:value": n[4] || (n[4] = (u) => e.email = u), opcoes: { rotulo: "Email", placeholder: "email@exemplo.com", formato: "email" } }, null, 8, ["value"]) ]) ]), _: 1 }), M(va, null, { default: ue(() => [ M(s, { color: "primary", variant: "elevated", block: "" }, { default: ue(() => [...n[7] || (n[7] = [ ne(" Botão Vuetify ", -1) ])]), _: 1 }) ]), _: 1 }) ]), _: 1 }) ]), _: 1 }); } const p$ = /* @__PURE__ */ ee(d$, [["render", f$]]); var Ro; const Ca = /* @__PURE__ */ Object.freeze({ status: "aborted" }); function v(e, n, r) { function o(l, s) { if (l._zod || Object.defineProperty(l, "_zod", { value: { def: s, constr: a, traits: /* @__PURE__ */ new Set() }, enumerable: !1 }), l._zod.traits.has(e)) return; l._zod.traits.add(e), n(l, s); const u = a.prototype, d = Object.keys(u); for (let c = 0; c < d.length; c++) { const m = d[c]; m in l || (l[m] = u[m].bind(l)); } } const t = (r == null ? void 0 : r.Parent) ?? Object; class i extends t { } Object.defineProperty(i, "name", { value: e }); function a(l) { var s; const u = r != null && r.Parent ? new i() : this; o(u, l), (s = u._zod).deferred ?? (s.deferred = []); for (const d of u._zod.deferred) d(); return u; } return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, { value: (l) => { var s, u; return r != null && r.Parent && l instanceof r.Parent ? !0 : (u = (s = l == null ? void 0 : l._zod) == null ? void 0 : s.traits) == null ? void 0 : u.has(e); } }), Object.defineProperty(a, "name", { value: e }), a; } const Za = Symbol("zod_brand"); class et extends Error { constructor() { super("Encountered Promise during synchronous parse. Use .parseAsync() instead."); } } class _n extends Error { constructor(n) { super(`Encountered unidirectional transform during encode: ${n}`), this.name = "ZodEncodeError"; } } (Ro = globalThis).__zod_globalConfig ?? (Ro.__zod_globalConfig = {}); const It = globalThis.__zod_globalConfig; function _e(e) { return e && Object.assign(It, e), It; } function v$(e) { return e; } function g$(e) { return e; } function h$(e) { } function b$(e) { throw new Error("Unexpected value in exhaustive check"); } function $$(e) { } function zr(e) { const n = Object.values(e).filter((o) => typeof o == "number"); return Object.entries(e).filter(([o, t]) => n.indexOf(+o) === -1).map(([o, t]) => t); } function w(e, n = "|") { return e.map((r) => V(r)).join(n); } function fn(e, n) { return typeof n == "bigint" ? n.toString() : n; } function xt(e) { return { get value() { { const n = e(); return Object.defineProperty(this, "value", { value: n }), n; } } }; } function it(e) { return e == null; } function yn(e) { const n = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length; return e.slice(n, r); } function Ma(e, n) { const r = e / n, o = Math.round(r), t = Number.EPSILON * Math.max(Math.abs(r), 1); return Math.abs(r - o) < t ? 0 : r - o; } const Bo = /* @__PURE__ */ Symbol("evaluating"); function H(e, n, r) { let o; Object.defineProperty(e, n, { get() { if (o !== Bo) return o === void 0 && (o = Bo, o = r()), o; }, set(t) { Object.defineProperty(e, n, { value: t // configurable: true, }); }, configurable: !0 }); } function _$(e) { return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)); } function Xe(e, n, r) { Object.defineProperty(e, n, { value: r, writable: !0, enumerable: !0, configurable: !0 }); } function Le(...e) { const n = {}; for (const r of e) { const o = Object.getOwnPropertyDescriptors(r); Object.assign(n, o); } return Object.defineProperties({}, n); } function y$(e) { return Le(e._zod.def); } function k$(e, n) { return n ? n.reduce((r, o) => r == null ? void 0 : r[o], e) : e; } function S$(e) { const n = Object.keys(e), r = n.map((o) => e[o]); return Promise.all(r).then((o) => { const t = {}; for (let i = 0; i < n.length; i++) t[n[i]] = o[i]; return t; }); } function w$(e = 10) { const n = "abcdefghijklmnopqrstuvwxyz"; let r = ""; for (let o = 0; o < e; o++) r += n[Math.floor(Math.random() * n.length)]; return r; } function pr(e) { return JSON.stringify(e); } function La(e) { return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); } const Dr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => { }; function ct(e) { return typeof e == "object" && e !== null && !Array.isArray(e); } const Fa = /* @__PURE__ */ xt(() => { var e; if (It.jitless || typeof navigator < "u" && ((e = navigator == null ? void 0 : navigator.userAgent) != null && e.includes("Cloudflare"))) return !1; try { const n = Function; return new n(""), !0; } catch { return !1; } }); function tt(e) { if (ct(e) === !1) return !1; const n = e.constructor; if (n === void 0 || typeof n != "function") return !0; const r = n.prototype; return !(ct(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1); } function kn(e) { return tt(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e; } function I$(e) { let n = 0; for (const r in e) Object.prototype.hasOwnProperty.call(e, r) && n++; return n; } const z$ = (e) => { const n = typeof e; switch (n) { 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" : e === null ? "null" : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? "promise" : typeof Map < "u" && e instanceof Map ? "map" : typeof Set < "u" && e instanceof Set ? "set" : typeof Date < "u" && e instanceof Date ? "date" : typeof File < "u" && e instanceof File ? "file" : "object"; default: throw new Error(`Unknown data type: ${n}`); } }, pn = /* @__PURE__ */ new Set(["string", "number", "symbol"]), Ra = /* @__PURE__ */ new Set([ "string", "number", "bigint", "boolean", "symbol", "undefined" ]); function Fe(e) { return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } function Ae(e, n, r) { const o = new e._zod.constr(n ?? e._zod.def); return (!n || r != null && r.parent) && (o._zod.parent = e), o; } function _(e) { const n = e; if (!n) return {}; if (typeof n == "string") return { error: () => n }; if ((n == null ? void 0 : n.message) !== void 0) { if ((n == null ? void 0 : n.error) !== void 0) throw new Error("Cannot specify both `message` and `error` params"); n.error = n.message; } return delete n.message, typeof n.error == "string" ? { ...n, error: () => n.error } : n; } function D$(e) { let n; return new Proxy({}, { get(r, o, t) { return n ?? (n = e()), Reflect.get(n, o, t); }, set(r, o, t, i) { return n ?? (n = e()), Reflect.set(n, o, t, i); }, has(r, o) { return n ?? (n = e()), Reflect.has(n, o); }, deleteProperty(r, o) { return n ?? (n = e()), Reflect.deleteProperty(n, o); }, ownKeys(r) { return n ?? (n = e()), Reflect.ownKeys(n); }, getOwnPropertyDescriptor(r, o) { return n ?? (n = e()), Reflect.getOwnPropertyDescriptor(n, o); }, defineProperty(r, o, t) { return n ?? (n = e()), Reflect.defineProperty(n, o, t); } }); } function V(e) { return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`; } function Ba(e) { return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional"); } const Va = { 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] }, Ja = { int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] }; function qa(e, n) { const r = e._zod.def, o = r.checks; if (o && o.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements"); const i = Le(e._zod.def, { get shape() { const a = {}; for (const l in n) { if (!(l in r.shape)) throw new Error(`Unrecognized key: "${l}"`); n[l] && (a[l] = r.shape[l]); } return Xe(this, "shape", a), a; }, checks: [] }); return Ae(e, i); } function Ga(e, n) { const r = e._zod.def, o = r.checks; if (o && o.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements"); const i = Le(e._zod.def, { get shape() { const a = { ...e._zod.def.shape }; for (const l in n) { if (!(l in r.shape)) throw new Error(`Unrecognized key: "${l}"`); n[l] && delete a[l]; } return Xe(this, "shape", a), a; }, checks: [] }); return Ae(e, i); } function Ka(e, n) { if (!tt(n)) throw new Error("Invalid input to extend: expected a plain object"); const r = e._zod.def.checks; if (r && r.length > 0) { const i = e._zod.def.shape; for (const a in n) if (Object.getOwnPropertyDescriptor(i, a) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead."); } const t = Le(e._zod.def, { get shape() { const i = { ...e._zod.def.shape, ...n }; return Xe(this, "shape", i), i; } }); return Ae(e, t); } function Wa(e, n) { if (!tt(n)) throw new Error("Invalid input to safeExtend: expected a plain object"); const r = Le(e._zod.def, { get shape() { const o = { ...e._zod.def.shape, ...n }; return Xe(this, "shape", o), o; } }); return Ae(e, r); } function Xa(e, n) { var o; if ((o = e._zod.def.checks) != null && o.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead."); const r = Le(e._zod.def, { get shape() { const t = { ...e._zod.def.shape, ...n._zod.def.shape }; return Xe(this, "shape", t), t; }, get catchall() { return n._zod.def.catchall; }, checks: n._zod.def.checks ?? [] }); return Ae(e, r); } function Ha(e, n, r) { const t = n._zod.def.checks; if (t && t.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements"); const a = Le(n._zod.def, { get shape() { const l = n._zod.def.shape, s = { ...l }; if (r) for (const u in r) { if (!(u in l)) throw new Error(`Unrecognized key: "${u}"`); r[u] && (s[u] = e ? new e({ type: "optional", innerType: l[u] }) : l[u]); } else for (const u in l) s[u] = e ? new e({ type: "optional", innerType: l[u] }) : l[u]; return Xe(this, "shape", s), s; }, checks: [] }); return Ae(n, a); } function Ya(e, n, r) { const o = Le(n._zod.def, { get shape() { const t = n._zod.def.shape, i = { ...t }; if (r) for (const a in r) { if (!(a in i)) throw new Error(`Unrecognized key: "${a}"`); r[a] && (i[a] = new e({ type: "nonoptional", innerType: t[a] })); } else for (const a in t) i[a] = new e({ type: "nonoptional", innerType: t[a] }); return Xe(this, "shape", i), i; } }); return Ae(n, o); } function Ye(e, n = 0) { var r; if (e.aborted === !0) return !0; for (let o = n; o < e.issues.length; o++) if (((r = e.issues[o]) == null ? void 0 : r.continue) !== !0) return !0; return !1; } function Qa(e, n = 0) { var r; if (e.aborted === !0) return !0; for (let o = n; o < e.issues.length; o++) if (((r = e.issues[o]) == null ? void 0 : r.continue) === !1) return !0; return !1; } function Te(e, n) { return n.map((r) => { var o; return (o = r).path ?? (o.path = []), r.path.unshift(e), r; }); } function St(e) { return typeof e == "string" ? e : e == null ? void 0 : e.message; } function Oe(e, n, r) { var s, u, d, c, m, f; const o = e.message ? e.message : St((d = (u = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : u.error) == null ? void 0 : d.call(u, e)) ?? St((c = n == null ? void 0 : n.error) == null ? void 0 : c.call(n, e)) ?? St((m = r.customError) == null ? void 0 : m.call(r, e)) ?? St((f = r.localeError) == null ? void 0 : f.call(r, e)) ?? "Invalid input", { inst: t, continue: i, input: a, ...l } = e; return l.path ?? (l.path = []), l.message = o, n != null && n.reportInput && (l.input = a), l; } function Sn(e) { return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown"; } function wn(e) { return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown"; } function J(e) { const n = typeof e; switch (n) { case "number": return Number.isNaN(e) ? "nan" : "number"; case "object": { if (e === null) return "null"; if (Array.isArray(e)) return "array"; const r = e; if (r && Object.getPrototypeOf(r) !== Object.prototype && "constructor" in r && r.constructor) return r.constructor.name; } } return n; } function dt(...e) { const [n, r, o] = e; return typeof n == "string" ? { message: n, code: "custom", input: r, inst: o } : { ...n }; } function j$(e) { return Object.entries(e).filter(([n, r]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]); } function el(e) { const n = atob(e), r = new Uint8Array(n.length); for (let o = 0; o < n.length; o++) r[o] = n.charCodeAt(o); return r; } function tl(e) { let n = ""; for (let r = 0; r < e.length; r++) n += String.fromCharCode(e[r]); return btoa(n); } function O$(e) { const n = e.replace(/-/g, "+").replace(/_/g, "/"), r = "=".repeat((4 - n.length % 4) % 4); return el(n + r); } function E$(e) { return tl(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } function x$(e) { const n = e.replace(/^0x/, ""); if (n.length % 2 !== 0) throw new Error("Invalid hex string length"); const r = new Uint8Array(n.length / 2); for (let o = 0; o < n.length; o += 2) r[o / 2] = Number.parseInt(n.slice(o, o + 2), 16); return r; } function U$(e) { return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join(""); } class T$ { constructor(...n) { } } const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, BIGINT_FORMAT_RANGES: Ja, Class: T$, NUMBER_FORMAT_RANGES: Va, aborted: Ye, allowsEval: Fa, assert: $$, assertEqual: v$, assertIs: h$, assertNever: b$, assertNotEqual: g$, assignProp: Xe, base64ToUint8Array: el, base64urlToUint8Array: O$, cached: xt, captureStackTrace: Dr, cleanEnum: j$, cleanRegex: yn, clone: Ae, cloneDef: y$, createTransparentProxy: D$, defineLazy: H, esc: pr, escapeRegex: Fe, explicitlyAborted: Qa, extend: Ka, finalizeIssue: Oe, floatSafeRemainder: Ma, getElementAtPath: k$, getEnumValues: zr, getLengthableOrigin: wn, getParsedType: z$, getSizableOrigin: Sn, hexToUint8Array: x$, isObject: ct, isPlainObject: tt, issue: dt, joinValues: w, jsonStringifyReplacer: fn, merge: Xa, mergeDefs: Le, normalizeParams: _, nullish: it, numKeys: I$, objectClone: _$, omit: Ga, optionalKeys: Ba, parsedType: J, partial: Ha, pick: qa, prefixIssues: Te, primitiveTypes: Ra, promiseAllObject: S$, propertyKeyTypes: pn, randomString: w$, required: Ya, safeExtend: Wa, shallowClone: kn, slugify: La, stringifyPrimitive: V, uint8ArrayToBase64: tl, uint8ArrayToBase64url: E$, uint8ArrayToHex: U$, unwrapMessage: St }, Symbol.toStringTag, { value: "Module" })), rl = (e, n) => { e.name = "$ZodError", Object.defineProperty(e, "_zod", { value: e._zod, enumerable: !1 }), Object.defineProperty(e, "issues", { value: n, enumerable: !1 }), e.message = JSON.stringify(n, fn, 2), Object.defineProperty(e, "toString", { value: () => e.message, enumerable: !1 }); }, jr = v("$ZodError", rl), Ee = v("$ZodError", rl, { Parent: Error }); function Or(e, n = (r) => r.message) { const r = {}, o = []; for (const t of e.issues) t.path.length > 0 ? (r[t.path[0]] = r[t.path[0]] || [], r[t.path[0]].push(n(t))) : o.push(n(t)); return { formErrors: o, fieldErrors: r }; } function Er(e, n = (r) => r.message) { const r = { _errors: [] }, o = (t, i = []) => { for (const a of t.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((l) => o({ issues: l }, [...i, ...a.path])); else if (a.code === "invalid_key") o({ issues: a.issues }, [...i, ...a.path]); else if (a.code === "invalid_element") o({ issues: a.issues }, [...i, ...a.path]); else { const l = [...i, ...a.path]; if (l.length === 0) r._errors.push(n(a)); else { let s = r, u = 0; for (; u < l.length; ) { const d = l[u]; u === l.length - 1 ? (s[d] = s[d] || { _errors: [] }, s[d]._errors.push(n(a))) : s[d] = s[d] || { _errors: [] }, s = s[d], u++; } } } }; return o(e), r; } function il(e, n = (r) => r.message) { const r = { errors: [] }, o = (t, i = []) => { var a, l; for (const s of t.issues) if (s.code === "invalid_union" && s.errors.length) s.errors.map((u) => o({ issues: u }, [...i, ...s.path])); else if (s.code === "invalid_key") o({ issues: s.issues }, [...i, ...s.path]); else if (s.code === "invalid_element") o({ issues: s.issues }, [...i, ...s.path]); else { const u = [...i, ...s.path]; if (u.length === 0) { r.errors.push(n(s)); continue; } let d = r, c = 0; for (; c < u.length; ) { const m = u[c], f = c === u.length - 1; typeof m == "string" ? (d.properties ?? (d.properties = {}), (a = d.properties)[m] ?? (a[m] = { errors: [] }), d = d.properties[m]) : (d.items ?? (d.items = []), (l = d.items)[m] ?? (l[m] = { errors: [] }), d = d.items[m]), f && d.errors.push(n(s)), c++; } } }; return o(e), r; } function ol(e) { const n = [], r = e.map((o) => typeof o == "object" ? o.key : o); for (const o of r) typeof o == "number" ? n.push(`[${o}]`) : typeof o == "symbol" ? n.push(`[${JSON.stringify(String(o))}]`) : /[^\w$]/.test(o) ? n.push(`[${JSON.stringify(o)}]`) : (n.length && n.push("."), n.push(o)); return n.join(""); } function al(e) { var o; const n = [], r = [...e.issues].sort((t, i) => (t.path ?? []).length - (i.path ?? []).length); for (const t of r) n.push(`✖ ${t.message}`), (o = t.path) != null && o.length && n.push(` → at ${ol(t.path)}`); return n.join(` `); } const Ut = (e) => (n, r, o, t) => { const i = o ? { ...o, async: !1 } : { async: !1 }, a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise) throw new et(); if (a.issues.length) { const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((s) => Oe(s, i, _e()))); throw Dr(l, t == null ? void 0 : t.callee), l; } return a.value; }, vr = /* @__PURE__ */ Ut(Ee), Tt = (e) => async (n, r, o, t) => { const i = o ? { ...o, async: !0 } : { async: !0 }; let a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise && (a = await a), a.issues.length) { const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((s) => Oe(s, i, _e()))); throw Dr(l, t == null ? void 0 : t.callee), l; } return a.value; }, gr = /* @__PURE__ */ Tt(Ee), Nt = (e) => (n, r, o) => { const t = o ? { ...o, async: !1 } : { async: !1 }, i = n._zod.run({ value: r, issues: [] }, t); if (i instanceof Promise) throw new et(); return i.issues.length ? { success: !1, error: new (e ?? jr)(i.issues.map((a) => Oe(a, t, _e()))) } : { success: !0, data: i.value }; }, ll = /* @__PURE__ */ Nt(Ee), Pt = (e) => async (n, r, o) => { const t = o ? { ...o, async: !0 } : { async: !0 }; let i = n._zod.run({ value: r, issues: [] }, t); return i instanceof Promise && (i = await i), i.issues.length ? { success: !1, error: new e(i.issues.map((a) => Oe(a, t, _e()))) } : { success: !0, data: i.value }; }, ul = /* @__PURE__ */ Pt(Ee), xr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Ut(e)(n, r, t); }, N$ = /* @__PURE__ */ xr(Ee), Ur = (e) => (n, r, o) => Ut(e)(n, r, o), P$ = /* @__PURE__ */ Ur(Ee), Tr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Tt(e)(n, r, t); }, A$ = /* @__PURE__ */ Tr(Ee), Nr = (e) => async (n, r, o) => Tt(e)(n, r, o), C$ = /* @__PURE__ */ Nr(Ee), Pr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Nt(e)(n, r, t); }, Z$ = /* @__PURE__ */ Pr(Ee), Ar = (e) => (n, r, o) => Nt(e)(n, r, o), M$ = /* @__PURE__ */ Ar(Ee), Cr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Pt(e)(n, r, t); }, L$ = /* @__PURE__ */ Cr(Ee), Zr = (e) => async (n, r, o) => Pt(e)(n, r, o), F$ = /* @__PURE__ */ Zr(Ee), sl = /^[cC][0-9a-z]{6,}$/, cl = /^[0-9a-z]+$/, dl = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ml = /^[0-9a-vA-V]{20}$/, fl = /^[A-Za-z0-9]{27}$/, pl = /^[a-zA-Z0-9_-]{21}$/, vl = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, R$ = /^[-+]?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)?)??$/, gl = /^([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})$/, mt = (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)$/, B$ = /* @__PURE__ */ mt(4), V$ = /* @__PURE__ */ mt(6), J$ = /* @__PURE__ */ mt(7), hl = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, q$ = /^[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])?)*$/, G$ = /^(([^<>()\[\]\\.,;:\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,}))$/, bl = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, K$ = bl, W$ = /^[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])?)*$/, X$ = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; function $l() { return new RegExp(X$, "u"); } const _l = /^(?:(?: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])$/, yl = /^(([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}|:))$/, kl = (e) => { const n = Fe(e ?? ":"); return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`); }, Sl = /^((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])$/, wl = /^(([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])$/, Il = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Mr = /^[A-Za-z0-9_-]*$/, zl = /^(?=.{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])?)*\.?$/, Dl = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, Lr = /^https?$/, jl = /^\+[1-9]\d{6,14}$/, Ol = "(?:(?:\\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])))", El = /* @__PURE__ */ new RegExp(`^${Ol}$`); function xl(e) { const n = "(?:[01]\\d|2[0-3]):[0-5]\\d"; return typeof e.precision == "number" ? e.precision === -1 ? `${n}` : e.precision === 0 ? `${n}:[0-5]\\d` : `${n}:[0-5]\\d\\.\\d{${e.precision}}` : `${n}(?::[0-5]\\d(?:\\.\\d+)?)?`; } function Ul(e) { return new RegExp(`^${xl(e)}$`); } function Tl(e) { const n = xl({ precision: e.precision }), r = ["Z"]; e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"); const o = `${n}(?:${r.join("|")})`; return new RegExp(`^${Ol}T(?:${o})$`); } const Nl = (e) => { const n = e ? `[\\s\\S]{${(e == null ? void 0 : e.minimum) ?? 0},${(e == null ? void 0 : e.maximum) ?? ""}}` : "[\\s\\S]*"; return new RegExp(`^${n}$`); }, Pl = /^-?\d+n?$/, Al = /^-?\d+$/, Fr = /^-?\d+(?:\.\d+)?$/, Cl = /^(?:true|false)$/i, Zl = /^null$/i, Ml = /^undefined$/i, Ll = /^[^A-Z]*$/, Fl = /^[^a-z]*$/, Rl = /^[0-9a-fA-F]*$/; function At(e, n) { return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`); } function Ct(e) { return new RegExp(`^[A-Za-z0-9_-]{${e}}$`); } const H$ = /^[0-9a-fA-F]{32}$/, Y$ = /* @__PURE__ */ At(22, "=="), Q$ = /* @__PURE__ */ Ct(22), e_ = /^[0-9a-fA-F]{40}$/, t_ = /* @__PURE__ */ At(27, "="), n_ = /* @__PURE__ */ Ct(27), r_ = /^[0-9a-fA-F]{64}$/, i_ = /* @__PURE__ */ At(43, "="), o_ = /* @__PURE__ */ Ct(43), a_ = /^[0-9a-fA-F]{96}$/, l_ = /* @__PURE__ */ At(64, ""), u_ = /* @__PURE__ */ Ct(64), s_ = /^[0-9a-fA-F]{128}$/, c_ = /* @__PURE__ */ At(86, "=="), d_ = /* @__PURE__ */ Ct(86), Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, base64: Il, base64url: Mr, bigint: Pl, boolean: Cl, browserEmail: W$, cidrv4: Sl, cidrv6: wl, cuid: sl, cuid2: cl, date: El, datetime: Tl, domain: Dl, duration: vl, e164: jl, email: hl, emoji: $l, extendedDuration: R$, guid: gl, hex: Rl, hostname: zl, html5Email: q$, httpProtocol: Lr, idnEmail: K$, integer: Al, ipv4: _l, ipv6: yl, ksuid: fl, lowercase: Ll, mac: kl, md5_base64: Y$, md5_base64url: Q$, md5_hex: H$, nanoid: pl, null: Zl, number: Fr, rfc5322Email: G$, sha1_base64: t_, sha1_base64url: n_, sha1_hex: e_, sha256_base64: i_, sha256_base64url: o_, sha256_hex: r_, sha384_base64: l_, sha384_base64url: u_, sha384_hex: a_, sha512_base64: c_, sha512_base64url: d_, sha512_hex: s_, string: Nl, time: Ul, ulid: dl, undefined: Ml, unicodeEmail: bl, uppercase: Fl, uuid: mt, uuid4: B$, uuid6: V$, uuid7: J$, xid: ml }, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ v("$ZodCheck", (e, n) => { var r; e._zod ?? (e._zod = {}), e._zod.def = n, (r = e._zod).onattach ?? (r.onattach = []); }), Bl = { number: "number", bigint: "bigint", object: "date" }, Br = /* @__PURE__ */ v("$ZodCheckLessThan", (e, n) => { se.init(e, n); const r = Bl[typeof n.value]; e._zod.onattach.push((o) => { const t = o._zod.bag, i = (n.inclusive ? t.maximum : t.exclusiveMaximum) ?? Number.POSITIVE_INFINITY; n.value < i && (n.inclusive ? t.maximum = n.value : t.exclusiveMaximum = n.value); }), e._zod.check = (o) => { (n.inclusive ? o.value <= n.value : o.value < n.value) || o.issues.push({ origin: r, code: "too_big", maximum: typeof n.value == "object" ? n.value.getTime() : n.value, input: o.value, inclusive: n.inclusive, inst: e, continue: !n.abort }); }; }), Vr = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, n) => { se.init(e, n); const r = Bl[typeof n.value]; e._zod.onattach.push((o) => { const t = o._zod.bag, i = (n.inclusive ? t.minimum : t.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY; n.value > i && (n.inclusive ? t.minimum = n.value : t.exclusiveMinimum = n.value); }), e._zod.check = (o) => { (n.inclusive ? o.value >= n.value : o.value > n.value) || o.issues.push({ origin: r, code: "too_small", minimum: typeof n.value == "object" ? n.value.getTime() : n.value, input: o.value, inclusive: n.inclusive, inst: e, continue: !n.abort }); }; }), Vl = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, n) => { se.init(e, n), e._zod.onattach.push((r) => { var o; (o = r._zod.bag).multipleOf ?? (o.multipleOf = n.value); }), e._zod.check = (r) => { if (typeof r.value != typeof n.value) throw new Error("Cannot mix number and bigint in multiple_of check."); (typeof r.value == "bigint" ? r.value % n.value === BigInt(0) : Ma(r.value, n.value) === 0) || r.issues.push({ origin: typeof r.value, code: "not_multiple_of", divisor: n.value, input: r.value, inst: e, continue: !n.abort }); }; }), Jl = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, n) => { var a; se.init(e, n), n.format = n.format || "float64"; const r = (a = n.format) == null ? void 0 : a.includes("int"), o = r ? "int" : "number", [t, i] = Va[n.format]; e._zod.onattach.push((l) => { const s = l._zod.bag; s.format = n.format, s.minimum = t, s.maximum = i, r && (s.pattern = Al); }), e._zod.check = (l) => { const s = l.value; if (r) { if (!Number.isInteger(s)) { l.issues.push({ expected: o, format: n.format, code: "invalid_type", continue: !1, input: s, inst: e }); return; } if (!Number.isSafeInteger(s)) { s > 0 ? l.issues.push({ input: s, code: "too_big", maximum: Number.MAX_SAFE_INTEGER, note: "Integers must be within the safe integer range.", inst: e, origin: o, inclusive: !0, continue: !n.abort }) : l.issues.push({ input: s, code: "too_small", minimum: Number.MIN_SAFE_INTEGER, note: "Integers must be within the safe integer range.", inst: e, origin: o, inclusive: !0, continue: !n.abort }); return; } } s < t && l.issues.push({ origin: "number", input: s, code: "too_small", minimum: t, inclusive: !0, inst: e, continue: !n.abort }), s > i && l.issues.push({ origin: "number", input: s, code: "too_big", maximum: i, inclusive: !0, inst: e, continue: !n.abort }); }; }), ql = /* @__PURE__ */ v("$ZodCheckBigIntFormat", (e, n) => { se.init(e, n); const [r, o] = Ja[n.format]; e._zod.onattach.push((t) => { const i = t._zod.bag; i.format = n.format, i.minimum = r, i.maximum = o; }), e._zod.check = (t) => { const i = t.value; i < r && t.issues.push({ origin: "bigint", input: i, code: "too_small", minimum: r, inclusive: !0, inst: e, continue: !n.abort }), i > o && t.issues.push({ origin: "bigint", input: i, code: "too_big", maximum: o, inclusive: !0, inst: e, continue: !n.abort }); }; }), Gl = /* @__PURE__ */ v("$ZodCheckMaxSize", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !it(t) && t.size !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.maximum ?? Number.POSITIVE_INFINITY; n.maximum < t && (o._zod.bag.maximum = n.maximum); }), e._zod.check = (o) => { const t = o.value; t.size <= n.maximum || o.issues.push({ origin: Sn(t), code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Kl = /* @__PURE__ */ v("$ZodCheckMinSize", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !it(t) && t.size !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; n.minimum > t && (o._zod.bag.minimum = n.minimum); }), e._zod.check = (o) => { const t = o.value; t.size >= n.minimum || o.issues.push({ origin: Sn(t), code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Wl = /* @__PURE__ */ v("$ZodCheckSizeEquals", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !it(t) && t.size !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag; t.minimum = n.size, t.maximum = n.size, t.size = n.size; }), e._zod.check = (o) => { const t = o.value, i = t.size; if (i === n.size) return; const a = i > n.size; o.issues.push({ origin: Sn(t), ...a ? { code: "too_big", maximum: n.size } : { code: "too_small", minimum: n.size }, inclusive: !0, exact: !0, input: o.value, inst: e, continue: !n.abort }); }; }), Xl = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !it(t) && t.length !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.maximum ?? Number.POSITIVE_INFINITY; n.maximum < t && (o._zod.bag.maximum = n.maximum); }), e._zod.check = (o) => { const t = o.value; if (t.length <= n.maximum) return; const a = wn(t); o.issues.push({ origin: a, code: "too_big", maximum: n.maximum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Hl = /* @__PURE__ */ v("$ZodCheckMinLength", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !it(t) && t.length !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag.minimum ?? Number.NEGATIVE_INFINITY; n.minimum > t && (o._zod.bag.minimum = n.minimum); }), e._zod.check = (o) => { const t = o.value; if (t.length >= n.minimum) return; const a = wn(t); o.issues.push({ origin: a, code: "too_small", minimum: n.minimum, inclusive: !0, input: t, inst: e, continue: !n.abort }); }; }), Yl = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; return !it(t) && t.length !== void 0; }), e._zod.onattach.push((o) => { const t = o._zod.bag; t.minimum = n.length, t.maximum = n.length, t.length = n.length; }), e._zod.check = (o) => { const t = o.value, i = t.length; if (i === n.length) return; const a = wn(t), l = i > n.length; o.issues.push({ origin: a, ...l ? { code: "too_big", maximum: n.length } : { code: "too_small", minimum: n.length }, inclusive: !0, exact: !0, input: o.value, inst: e, continue: !n.abort }); }; }), Zt = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, n) => { var r, o; se.init(e, n), e._zod.onattach.push((t) => { const i = t._zod.bag; i.format = n.format, n.pattern && (i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(n.pattern)); }), n.pattern ? (r = e._zod).check ?? (r.check = (t) => { n.pattern.lastIndex = 0, !n.pattern.test(t.value) && t.issues.push({ origin: "string", code: "invalid_format", format: n.format, input: t.value, ...n.pattern ? { pattern: n.pattern.toString() } : {}, inst: e, continue: !n.abort }); }) : (o = e._zod).check ?? (o.check = () => { }); }), Ql = /* @__PURE__ */ v("$ZodCheckRegex", (e, n) => { Zt.init(e, n), e._zod.check = (r) => { n.pattern.lastIndex = 0, !n.pattern.test(r.value) && r.issues.push({ origin: "string", code: "invalid_format", format: "regex", input: r.value, pattern: n.pattern.toString(), inst: e, continue: !n.abort }); }; }), eu = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, n) => { n.pattern ?? (n.pattern = Ll), Zt.init(e, n); }), tu = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, n) => { n.pattern ?? (n.pattern = Fl), Zt.init(e, n); }), nu = /* @__PURE__ */ v("$ZodCheckIncludes", (e, n) => { se.init(e, n); const r = Fe(n.includes), o = new RegExp(typeof n.position == "number" ? `^.{${n.position}}${r}` : r); n.pattern = o, e._zod.onattach.push((t) => { const i = t._zod.bag; i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(o); }), e._zod.check = (t) => { t.value.includes(n.includes, n.position) || t.issues.push({ origin: "string", code: "invalid_format", format: "includes", includes: n.includes, input: t.value, inst: e, continue: !n.abort }); }; }), ru = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, n) => { se.init(e, n); const r = new RegExp(`^${Fe(n.prefix)}.*`); n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => { const t = o._zod.bag; t.patterns ?? (t.patterns = /* @__PURE__ */ new Set()), t.patterns.add(r); }), e._zod.check = (o) => { o.value.startsWith(n.prefix) || o.issues.push({ origin: "string", code: "invalid_format", format: "starts_with", prefix: n.prefix, input: o.value, inst: e, continue: !n.abort }); }; }), iu = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, n) => { se.init(e, n); const r = new RegExp(`.*${Fe(n.suffix)}$`); n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => { const t = o._zod.bag; t.patterns ?? (t.patterns = /* @__PURE__ */ new Set()), t.patterns.add(r); }), e._zod.check = (o) => { o.value.endsWith(n.suffix) || o.issues.push({ origin: "string", code: "invalid_format", format: "ends_with", suffix: n.suffix, input: o.value, inst: e, continue: !n.abort }); }; }); function Vo(e, n, r) { e.issues.length && n.issues.push(...Te(r, e.issues)); } const ou = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => { se.init(e, n), e._zod.check = (r) => { const o = n.schema._zod.run({ value: r.value[n.property], issues: [] }, {}); if (o instanceof Promise) return o.then((t) => Vo(t, r, n.property)); Vo(o, r, n.property); }; }), au = /* @__PURE__ */ v("$ZodCheckMimeType", (e, n) => { se.init(e, n); const r = new Set(n.mime); e._zod.onattach.push((o) => { o._zod.bag.mime = n.mime; }), e._zod.check = (o) => { r.has(o.value.type) || o.issues.push({ code: "invalid_value", values: n.mime, input: o.value.type, inst: e, continue: !n.abort }); }; }), lu = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, n) => { se.init(e, n), e._zod.check = (r) => { r.value = n.tx(r.value); }; }); class uu { constructor(n = []) { this.content = [], this.indent = 0, this && (this.args = n); } indented(n) { this.indent += 1, n(this), this.indent -= 1; } write(n) { if (typeof n == "function") { n(this, { execution: "sync" }), n(this, { execution: "async" }); return; } const o = n.split(` `).filter((a) => a), t = Math.min(...o.map((a) => a.length - a.trimStart().length)), i = o.map((a) => a.slice(t)).map((a) => " ".repeat(this.indent * 2) + a); for (const a of i) this.content.push(a); } compile() { const n = Function, r = this == null ? void 0 : this.args, t = [...((this == null ? void 0 : this.content) ?? [""]).map((i) => ` ${i}`)]; return new n(...r, t.join(` `)); } } const su = { major: 4, minor: 4, patch: 3 }, W = /* @__PURE__ */ v("$ZodType", (e, n) => { var t; var r; e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = su; const o = [...e._zod.def.checks ?? []]; e._zod.traits.has("$ZodCheck") && o.unshift(e); for (const i of o) for (const a of i._zod.onattach) a(e); if (o.length === 0) (r = e._zod).deferred ?? (r.deferred = []), (t = e._zod.deferred) == null || t.push(() => { e._zod.run = e._zod.parse; }); else { const i = (l, s, u) => { let d = Ye(l), c; for (const m of s) { if (m._zod.def.when) { if (Qa(l) || !m._zod.def.when(l)) continue; } else if (d) continue; const f = l.issues.length, g = m._zod.check(l); if (g instanceof Promise && (u == null ? void 0 : u.async) === !1) throw new et(); if (c || g instanceof Promise) c = (c ?? Promise.resolve()).then(async () => { await g, l.issues.length !== f && (d || (d = Ye(l, f))); }); else { if (l.issues.length === f) continue; d || (d = Ye(l, f)); } } return c ? c.then(() => l) : l; }, a = (l, s, u) => { if (Ye(l)) return l.aborted = !0, l; const d = i(s, o, u); if (d instanceof Promise) { if (u.async === !1) throw new et(); return d.then((c) => e._zod.parse(c, u)); } return e._zod.parse(d, u); }; e._zod.run = (l, s) => { if (s.skipChecks) return e._zod.parse(l, s); if (s.direction === "backward") { const d = e._zod.parse({ value: l.value, issues: [] }, { ...s, skipChecks: !0 }); return d instanceof Promise ? d.then((c) => a(c, l, s)) : a(d, l, s); } const u = e._zod.parse(l, s); if (u instanceof Promise) { if (s.async === !1) throw new et(); return u.then((d) => i(d, o, s)); } return i(u, o, s); }; } H(e, "~standard", () => ({ validate: (i) => { var a; try { const l = ll(e, i); return l.success ? { value: l.data } : { issues: (a = l.error) == null ? void 0 : a.issues }; } catch { return ul(e, i).then((s) => { var u; return s.success ? { value: s.data } : { issues: (u = s.error) == null ? void 0 : u.issues }; }); } }, vendor: "zod", version: 1 })); }), Mt = /* @__PURE__ */ v("$ZodString", (e, n) => { var r; W.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? Nl(e._zod.bag), e._zod.parse = (o, t) => { if (n.coerce) try { o.value = String(o.value); } catch { } return typeof o.value == "string" || o.issues.push({ expected: "string", code: "invalid_type", input: o.value, inst: e }), o; }; }), oe = /* @__PURE__ */ v("$ZodStringFormat", (e, n) => { Zt.init(e, n), Mt.init(e, n); }), cu = /* @__PURE__ */ v("$ZodGUID", (e, n) => { n.pattern ?? (n.pattern = gl), oe.init(e, n); }), du = /* @__PURE__ */ v("$ZodUUID", (e, n) => { if (n.version) { const o = { v1: 1, v2: 2, v3: 3, v4: 4, v5: 5, v6: 6, v7: 7, v8: 8 }[n.version]; if (o === void 0) throw new Error(`Invalid UUID version: "${n.version}"`); n.pattern ?? (n.pattern = mt(o)); } else n.pattern ?? (n.pattern = mt()); oe.init(e, n); }), mu = /* @__PURE__ */ v("$ZodEmail", (e, n) => { n.pattern ?? (n.pattern = hl), oe.init(e, n); }), fu = /* @__PURE__ */ v("$ZodURL", (e, n) => { oe.init(e, n), e._zod.check = (r) => { var o; try { const t = r.value.trim(); if (!n.normalize && ((o = n.protocol) == null ? void 0 : o.source) === Lr.source && !/^https?:\/\//i.test(t)) { r.issues.push({ code: "invalid_format", format: "url", note: "Invalid URL format", input: r.value, inst: e, continue: !n.abort }); return; } const i = new URL(t); n.hostname && (n.hostname.lastIndex = 0, n.hostname.test(i.hostname) || r.issues.push({ code: "invalid_format", format: "url", note: "Invalid hostname", pattern: n.hostname.source, input: r.value, inst: e, continue: !n.abort })), n.protocol && (n.protocol.lastIndex = 0, n.protocol.test(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.protocol) || r.issues.push({ code: "invalid_format", format: "url", note: "Invalid protocol", pattern: n.protocol.source, input: r.value, inst: e, continue: !n.abort })), n.normalize ? r.value = i.href : r.value = t; return; } catch { r.issues.push({ code: "invalid_format", format: "url", input: r.value, inst: e, continue: !n.abort }); } }; }), pu = /* @__PURE__ */ v("$ZodEmoji", (e, n) => { n.pattern ?? (n.pattern = $l()), oe.init(e, n); }), vu = /* @__PURE__ */ v("$ZodNanoID", (e, n) => { n.pattern ?? (n.pattern = pl), oe.init(e, n); }), gu = /* @__PURE__ */ v("$ZodCUID", (e, n) => { n.pattern ?? (n.pattern = sl), oe.init(e, n); }), hu = /* @__PURE__ */ v("$ZodCUID2", (e, n) => { n.pattern ?? (n.pattern = cl), oe.init(e, n); }), bu = /* @__PURE__ */ v("$ZodULID", (e, n) => { n.pattern ?? (n.pattern = dl), oe.init(e, n); }), $u = /* @__PURE__ */ v("$ZodXID", (e, n) => { n.pattern ?? (n.pattern = ml), oe.init(e, n); }), _u = /* @__PURE__ */ v("$ZodKSUID", (e, n) => { n.pattern ?? (n.pattern = fl), oe.init(e, n); }), yu = /* @__PURE__ */ v("$ZodISODateTime", (e, n) => { n.pattern ?? (n.pattern = Tl(n)), oe.init(e, n); }), ku = /* @__PURE__ */ v("$ZodISODate", (e, n) => { n.pattern ?? (n.pattern = El), oe.init(e, n); }), Su = /* @__PURE__ */ v("$ZodISOTime", (e, n) => { n.pattern ?? (n.pattern = Ul(n)), oe.init(e, n); }), wu = /* @__PURE__ */ v("$ZodISODuration", (e, n) => { n.pattern ?? (n.pattern = vl), oe.init(e, n); }), Iu = /* @__PURE__ */ v("$ZodIPv4", (e, n) => { n.pattern ?? (n.pattern = _l), oe.init(e, n), e._zod.bag.format = "ipv4"; }), zu = /* @__PURE__ */ v("$ZodIPv6", (e, n) => { n.pattern ?? (n.pattern = yl), oe.init(e, n), e._zod.bag.format = "ipv6", e._zod.check = (r) => { try { new URL(`http://[${r.value}]`); } catch { r.issues.push({ code: "invalid_format", format: "ipv6", input: r.value, inst: e, continue: !n.abort }); } }; }), Du = /* @__PURE__ */ v("$ZodMAC", (e, n) => { n.pattern ?? (n.pattern = kl(n.delimiter)), oe.init(e, n), e._zod.bag.format = "mac"; }), ju = /* @__PURE__ */ v("$ZodCIDRv4", (e, n) => { n.pattern ?? (n.pattern = Sl), oe.init(e, n); }), Ou = /* @__PURE__ */ v("$ZodCIDRv6", (e, n) => { n.pattern ?? (n.pattern = wl), oe.init(e, n), e._zod.check = (r) => { const o = r.value.split("/"); try { if (o.length !== 2) throw new Error(); const [t, i] = o; if (!i) throw new Error(); const a = Number(i); if (`${a}` !== i) throw new Error(); if (a < 0 || a > 128) throw new Error(); new URL(`http://[${t}]`); } catch { r.issues.push({ code: "invalid_format", format: "cidrv6", input: r.value, inst: e, continue: !n.abort }); } }; }); function Jr(e) { if (e === "") return !0; if (/\s/.test(e) || e.length % 4 !== 0) return !1; try { return atob(e), !0; } catch { return !1; } } const Eu = /* @__PURE__ */ v("$ZodBase64", (e, n) => { n.pattern ?? (n.pattern = Il), oe.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => { Jr(r.value) || r.issues.push({ code: "invalid_format", format: "base64", input: r.value, inst: e, continue: !n.abort }); }; }); function xu(e) { if (!Mr.test(e)) return !1; const n = e.replace(/[-_]/g, (o) => o === "-" ? "+" : "/"), r = n.padEnd(Math.ceil(n.length / 4) * 4, "="); return Jr(r); } const Uu = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => { n.pattern ?? (n.pattern = Mr), oe.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => { xu(r.value) || r.issues.push({ code: "invalid_format", format: "base64url", input: r.value, inst: e, continue: !n.abort }); }; }), Tu = /* @__PURE__ */ v("$ZodE164", (e, n) => { n.pattern ?? (n.pattern = jl), oe.init(e, n); }); function Nu(e, n = null) { try { const r = e.split("."); if (r.length !== 3) return !1; const [o] = r; if (!o) return !1; const t = JSON.parse(atob(o)); return !("typ" in t && (t == null ? void 0 : t.typ) !== "JWT" || !t.alg || n && (!("alg" in t) || t.alg !== n)); } catch { return !1; } } const Pu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { oe.init(e, n), e._zod.check = (r) => { Nu(r.value, n.alg) || r.issues.push({ code: "invalid_format", format: "jwt", input: r.value, inst: e, continue: !n.abort }); }; }), Au = /* @__PURE__ */ v("$ZodCustomStringFormat", (e, n) => { oe.init(e, n), e._zod.check = (r) => { n.fn(r.value) || r.issues.push({ code: "invalid_format", format: n.format, input: r.value, inst: e, continue: !n.abort }); }; }), qr = /* @__PURE__ */ v("$ZodNumber", (e, n) => { W.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? Fr, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = Number(r.value); } catch { } const t = r.value; if (typeof t == "number" && !Number.isNaN(t) && Number.isFinite(t)) return r; const i = typeof t == "number" ? Number.isNaN(t) ? "NaN" : Number.isFinite(t) ? void 0 : "Infinity" : void 0; return r.issues.push({ expected: "number", code: "invalid_type", input: t, inst: e, ...i ? { received: i } : {} }), r; }; }), Cu = /* @__PURE__ */ v("$ZodNumberFormat", (e, n) => { Jl.init(e, n), qr.init(e, n); }), Gr = /* @__PURE__ */ v("$ZodBoolean", (e, n) => { W.init(e, n), e._zod.pattern = Cl, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = !!r.value; } catch { } const t = r.value; return typeof t == "boolean" || r.issues.push({ expected: "boolean", code: "invalid_type", input: t, inst: e }), r; }; }), Kr = /* @__PURE__ */ v("$ZodBigInt", (e, n) => { W.init(e, n), e._zod.pattern = Pl, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = BigInt(r.value); } catch { } return typeof r.value == "bigint" || r.issues.push({ expected: "bigint", code: "invalid_type", input: r.value, inst: e }), r; }; }), Zu = /* @__PURE__ */ v("$ZodBigIntFormat", (e, n) => { ql.init(e, n), Kr.init(e, n); }), Mu = /* @__PURE__ */ v("$ZodSymbol", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return typeof t == "symbol" || r.issues.push({ expected: "symbol", code: "invalid_type", input: t, inst: e }), r; }; }), Lu = /* @__PURE__ */ v("$ZodUndefined", (e, n) => { W.init(e, n), e._zod.pattern = Ml, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.parse = (r, o) => { const t = r.value; return typeof t > "u" || r.issues.push({ expected: "undefined", code: "invalid_type", input: t, inst: e }), r; }; }), Fu = /* @__PURE__ */ v("$ZodNull", (e, n) => { W.init(e, n), e._zod.pattern = Zl, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, o) => { const t = r.value; return t === null || r.issues.push({ expected: "null", code: "invalid_type", input: t, inst: e }), r; }; }), Ru = /* @__PURE__ */ v("$ZodAny", (e, n) => { W.init(e, n), e._zod.parse = (r) => r; }), Bu = /* @__PURE__ */ v("$ZodUnknown", (e, n) => { W.init(e, n), e._zod.parse = (r) => r; }), Vu = /* @__PURE__ */ v("$ZodNever", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => (r.issues.push({ expected: "never", code: "invalid_type", input: r.value, inst: e }), r); }), Ju = /* @__PURE__ */ v("$ZodVoid", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return typeof t > "u" || r.issues.push({ expected: "void", code: "invalid_type", input: t, inst: e }), r; }; }), qu = /* @__PURE__ */ v("$ZodDate", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { if (n.coerce) try { r.value = new Date(r.value); } catch { } const t = r.value, i = t instanceof Date; return i && !Number.isNaN(t.getTime()) || r.issues.push({ expected: "date", code: "invalid_type", input: t, ...i ? { received: "Invalid Date" } : {}, inst: e }), r; }; }); function Jo(e, n, r) { e.issues.length && n.issues.push(...Te(r, e.issues)), n.value[r] = e.value; } const Gu = /* @__PURE__ */ v("$ZodArray", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!Array.isArray(t)) return r.issues.push({ expected: "array", code: "invalid_type", input: t, inst: e }), r; r.value = Array(t.length); const i = []; for (let a = 0; a < t.length; a++) { const l = t[a], s = n.element._zod.run({ value: l, issues: [] }, o); s instanceof Promise ? i.push(s.then((u) => Jo(u, r, a))) : Jo(s, r, a); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function vn(e, n, r, o, t, i) { const a = r in o; if (e.issues.length) { if (t && i && !a) return; n.issues.push(...Te(r, e.issues)); } if (!a && !t) { e.issues.length || n.issues.push({ code: "invalid_type", expected: "nonoptional", input: void 0, path: [r] }); return; } e.value === void 0 ? a && (n.value[r] = void 0) : n.value[r] = e.value; } function Ku(e) { var o, t, i, a; const n = Object.keys(e.shape); for (const l of n) if (!((a = (i = (t = (o = e.shape) == null ? void 0 : o[l]) == null ? void 0 : t._zod) == null ? void 0 : i.traits) != null && a.has("$ZodType"))) throw new Error(`Invalid element at key "${l}": expected a Zod schema`); const r = Ba(e.shape); return { ...e, keys: n, keySet: new Set(n), numKeys: n.length, optionalKeys: new Set(r) }; } function Wu(e, n, r, o, t, i) { const a = [], l = t.keySet, s = t.catchall._zod, u = s.def.type, d = s.optin === "optional", c = s.optout === "optional"; for (const m in n) { if (m === "__proto__" || l.has(m)) continue; if (u === "never") { a.push(m); continue; } const f = s.run({ value: n[m], issues: [] }, o); f instanceof Promise ? e.push(f.then((g) => vn(g, r, m, n, d, c))) : vn(f, r, m, n, d, c); } return a.length && r.issues.push({ code: "unrecognized_keys", keys: a, input: n, inst: i }), e.length ? Promise.all(e).then(() => r) : r; } const Xu = /* @__PURE__ */ v("$ZodObject", (e, n) => { W.init(e, n); const r = Object.getOwnPropertyDescriptor(n, "shape"); if (!(r != null && r.get)) { const l = n.shape; Object.defineProperty(n, "shape", { get: () => { const s = { ...l }; return Object.defineProperty(n, "shape", { value: s }), s; } }); } const o = xt(() => Ku(n)); H(e._zod, "propValues", () => { const l = n.shape, s = {}; for (const u in l) { const d = l[u]._zod; if (d.values) { s[u] ?? (s[u] = /* @__PURE__ */ new Set()); for (const c of d.values) s[u].add(c); } } return s; }); const t = ct, i = n.catchall; let a; e._zod.parse = (l, s) => { a ?? (a = o.value); const u = l.value; if (!t(u)) return l.issues.push({ expected: "object", code: "invalid_type", input: u, inst: e }), l; l.value = {}; const d = [], c = a.shape; for (const m of a.keys) { const f = c[m], g = f._zod.optin === "optional", y = f._zod.optout === "optional", N = f._zod.run({ value: u[m], issues: [] }, s); N instanceof Promise ? d.push(N.then((x) => vn(x, l, m, u, g, y))) : vn(N, l, m, u, g, y); } return i ? Wu(d, u, l, s, o.value, e) : d.length ? Promise.all(d).then(() => l) : l; }; }), Hu = /* @__PURE__ */ v("$ZodObjectJIT", (e, n) => { Xu.init(e, n); const r = e._zod.parse, o = xt(() => Ku(n)), t = (m) => { var L, A; const f = new uu(["shape", "payload", "ctx"]), g = o.value, y = (C) => { const h = pr(C); return `shape[${h}]._zod.run({ value: input[${h}], issues: [] }, ctx)`; }; f.write("const input = payload.value;"); const N = /* @__PURE__ */ Object.create(null); let x = 0; for (const C of g.keys) N[C] = `key_${x++}`; f.write("const newResult = {};"); for (const C of g.keys) { const h = N[C], b = pr(C), I = m[C], G = ((L = I == null ? void 0 : I._zod) == null ? void 0 : L.optin) === "optional", j = ((A = I == null ? void 0 : I._zod) == null ? void 0 : A.optout) === "optional"; f.write(`const ${h} = ${y(C)};`), G && j ? f.write(` if (${h}.issues.length) { if (${b} in input) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ ...iss, path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } } if (${h}.value === undefined) { if (${b} in input) { newResult[${b}] = undefined; } } else { newResult[${b}] = ${h}.value; } `) : G ? f.write(` if (${h}.issues.length) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ ...iss, path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } if (${h}.value === undefined) { if (${b} in input) { newResult[${b}] = undefined; } } else { newResult[${b}] = ${h}.value; } `) : f.write(` const ${h}_present = ${b} in input; if (${h}.issues.length) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ ...iss, path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } if (!${h}_present && !${h}.issues.length) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: undefined, path: [${b}] }); } if (${h}_present) { if (${h}.value === undefined) { newResult[${b}] = undefined; } else { newResult[${b}] = ${h}.value; } } `); } f.write("payload.value = newResult;"), f.write("return payload;"); const D = f.compile(); return (C, h) => D(m, C, h); }; let i; const a = ct, l = !It.jitless, u = l && Fa.value, d = n.catchall; let c; e._zod.parse = (m, f) => { c ?? (c = o.value); const g = m.value; return a(g) ? l && u && (f == null ? void 0 : f.async) === !1 && f.jitless !== !0 ? (i || (i = t(n.shape)), m = i(m, f), d ? Wu([], g, m, f, c, e) : m) : r(m, f) : (m.issues.push({ expected: "object", code: "invalid_type", input: g, inst: e }), m); }; }); function qo(e, n, r, o) { for (const i of e) if (i.issues.length === 0) return n.value = i.value, n; const t = e.filter((i) => !Ye(i)); return t.length === 1 ? (n.value = t[0].value, t[0]) : (n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: e.map((i) => i.issues.map((a) => Oe(a, o, _e()))) }), n); } const In = /* @__PURE__ */ v("$ZodUnion", (e, n) => { W.init(e, n), H(e._zod, "optin", () => n.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), H(e._zod, "optout", () => n.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), H(e._zod, "values", () => { if (n.options.every((o) => o._zod.values)) return new Set(n.options.flatMap((o) => Array.from(o._zod.values))); }), H(e._zod, "pattern", () => { if (n.options.every((o) => o._zod.pattern)) { const o = n.options.map((t) => t._zod.pattern); return new RegExp(`^(${o.map((t) => yn(t.source)).join("|")})$`); } }); const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { if (r) return r(o, t); let i = !1; const a = []; for (const l of n.options) { const s = l._zod.run({ value: o.value, issues: [] }, t); if (s instanceof Promise) a.push(s), i = !0; else { if (s.issues.length === 0) return s; a.push(s); } } return i ? Promise.all(a).then((l) => qo(l, o, e, t)) : qo(a, o, e, t); }; }); function Go(e, n, r, o) { const t = e.filter((i) => i.issues.length === 0); return t.length === 1 ? (n.value = t[0].value, n) : (t.length === 0 ? n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: e.map((i) => i.issues.map((a) => Oe(a, o, _e()))) }) : n.issues.push({ code: "invalid_union", input: n.value, inst: r, errors: [], inclusive: !1 }), n); } const Yu = /* @__PURE__ */ v("$ZodXor", (e, n) => { In.init(e, n), n.inclusive = !1; const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { if (r) return r(o, t); let i = !1; const a = []; for (const l of n.options) { const s = l._zod.run({ value: o.value, issues: [] }, t); s instanceof Promise ? (a.push(s), i = !0) : a.push(s); } return i ? Promise.all(a).then((l) => Go(l, o, e, t)) : Go(a, o, e, t); }; }), Qu = /* @__PURE__ */ v("$ZodDiscriminatedUnion", (e, n) => { n.inclusive = !1, In.init(e, n); const r = e._zod.parse; H(e._zod, "propValues", () => { const t = {}; for (const i of n.options) { const a = i._zod.propValues; if (!a || Object.keys(a).length === 0) throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(i)}"`); for (const [l, s] of Object.entries(a)) { t[l] || (t[l] = /* @__PURE__ */ new Set()); for (const u of s) t[l].add(u); } } return t; }); const o = xt(() => { var a; const t = n.options, i = /* @__PURE__ */ new Map(); for (const l of t) { const s = (a = l._zod.propValues) == null ? void 0 : a[n.discriminator]; if (!s || s.size === 0) throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(l)}"`); for (const u of s) { if (i.has(u)) throw new Error(`Duplicate discriminator value "${String(u)}"`); i.set(u, l); } } return i; }); e._zod.parse = (t, i) => { const a = t.value; if (!ct(a)) return t.issues.push({ code: "invalid_type", expected: "object", input: a, inst: e }), t; const l = o.value.get(a == null ? void 0 : a[n.discriminator]); return l ? l._zod.run(t, i) : n.unionFallback || i.direction === "backward" ? r(t, i) : (t.issues.push({ code: "invalid_union", errors: [], note: "No matching discriminator", discriminator: n.discriminator, options: Array.from(o.value.keys()), input: a, path: [n.discriminator], inst: e }), t); }; }), es = /* @__PURE__ */ v("$ZodIntersection", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value, i = n.left._zod.run({ value: t, issues: [] }, o), a = n.right._zod.run({ value: t, issues: [] }, o); return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([s, u]) => Ko(r, s, u)) : Ko(r, i, a); }; }); function hr(e, n) { if (e === n) return { valid: !0, data: e }; if (e instanceof Date && n instanceof Date && +e == +n) return { valid: !0, data: e }; if (tt(e) && tt(n)) { const r = Object.keys(n), o = Object.keys(e).filter((i) => r.indexOf(i) !== -1), t = { ...e, ...n }; for (const i of o) { const a = hr(e[i], n[i]); if (!a.valid) return { valid: !1, mergeErrorPath: [i, ...a.mergeErrorPath] }; t[i] = a.data; } return { valid: !0, data: t }; } if (Array.isArray(e) && Array.isArray(n)) { if (e.length !== n.length) return { valid: !1, mergeErrorPath: [] }; const r = []; for (let o = 0; o < e.length; o++) { const t = e[o], i = n[o], a = hr(t, i); if (!a.valid) return { valid: !1, mergeErrorPath: [o, ...a.mergeErrorPath] }; r.push(a.data); } return { valid: !0, data: r }; } return { valid: !1, mergeErrorPath: [] }; } function Ko(e, n, r) { const o = /* @__PURE__ */ new Map(); let t; for (const l of n.issues) if (l.code === "unrecognized_keys") { t ?? (t = l); for (const s of l.keys) o.has(s) || o.set(s, {}), o.get(s).l = !0; } else e.issues.push(l); for (const l of r.issues) if (l.code === "unrecognized_keys") for (const s of l.keys) o.has(s) || o.set(s, {}), o.get(s).r = !0; else e.issues.push(l); const i = [...o].filter(([, l]) => l.l && l.r).map(([l]) => l); if (i.length && t && e.issues.push({ ...t, keys: i }), Ye(e)) return e; const a = hr(n.value, r.value); if (!a.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`); return e.value = a.data, e; } const Wr = /* @__PURE__ */ v("$ZodTuple", (e, n) => { W.init(e, n); const r = n.items; e._zod.parse = (o, t) => { const i = o.value; if (!Array.isArray(i)) return o.issues.push({ input: i, inst: e, expected: "tuple", code: "invalid_type" }), o; o.value = []; const a = [], l = Wo(r, "optin"), s = Wo(r, "optout"); if (!n.rest) { if (i.length < l) return o.issues.push({ code: "too_small", minimum: l, inclusive: !0, input: i, inst: e, origin: "array" }), o; i.length > r.length && o.issues.push({ code: "too_big", maximum: r.length, inclusive: !0, input: i, inst: e, origin: "array" }); } const u = new Array(r.length); for (let d = 0; d < r.length; d++) { const c = r[d]._zod.run({ value: i[d], issues: [] }, t); c instanceof Promise ? a.push(c.then((m) => { u[d] = m; })) : u[d] = c; } if (n.rest) { let d = r.length - 1; const c = i.slice(r.length); for (const m of c) { d++; const f = n.rest._zod.run({ value: m, issues: [] }, t); f instanceof Promise ? a.push(f.then((g) => Xo(g, o, d))) : Xo(f, o, d); } } return a.length ? Promise.all(a).then(() => Ho(u, o, r, i, s)) : Ho(u, o, r, i, s); }; }); function Wo(e, n) { for (let r = e.length - 1; r >= 0; r--) if (e[r]._zod[n] !== "optional") return r + 1; return 0; } function Xo(e, n, r) { e.issues.length && n.issues.push(...Te(r, e.issues)), n.value[r] = e.value; } function Ho(e, n, r, o, t) { for (let i = 0; i < r.length; i++) { const a = e[i], l = i < o.length; if (a.issues.length) { if (!l && i >= t) { n.value.length = i; break; } n.issues.push(...Te(i, a.issues)); } n.value[i] = a.value; } for (let i = n.value.length - 1; i >= o.length && (r[i]._zod.optout === "optional" && n.value[i] === void 0); i--) n.value.length = i; return n; } const ts = /* @__PURE__ */ v("$ZodRecord", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!tt(t)) return r.issues.push({ expected: "record", code: "invalid_type", input: t, inst: e }), r; const i = [], a = n.keyType._zod.values; if (a) { r.value = {}; const l = /* @__PURE__ */ new Set(); for (const u of a) if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") { l.add(typeof u == "number" ? u.toString() : u); const d = n.keyType._zod.run({ value: u, issues: [] }, o); if (d instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); if (d.issues.length) { r.issues.push({ code: "invalid_key", origin: "record", issues: d.issues.map((f) => Oe(f, o, _e())), input: u, path: [u], inst: e }); continue; } const c = d.value, m = n.valueType._zod.run({ value: t[u], issues: [] }, o); m instanceof Promise ? i.push(m.then((f) => { f.issues.length && r.issues.push(...Te(u, f.issues)), r.value[c] = f.value; })) : (m.issues.length && r.issues.push(...Te(u, m.issues)), r.value[c] = m.value); } let s; for (const u in t) l.has(u) || (s = s ?? [], s.push(u)); s && s.length > 0 && r.issues.push({ code: "unrecognized_keys", input: t, inst: e, keys: s }); } else { r.value = {}; for (const l of Reflect.ownKeys(t)) { if (l === "__proto__" || !Object.prototype.propertyIsEnumerable.call(t, l)) continue; let s = n.keyType._zod.run({ value: l, issues: [] }, o); if (s instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); if (typeof l == "string" && Fr.test(l) && s.issues.length) { const c = n.keyType._zod.run({ value: Number(l), issues: [] }, o); if (c instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); c.issues.length === 0 && (s = c); } if (s.issues.length) { n.mode === "loose" ? r.value[l] = t[l] : r.issues.push({ code: "invalid_key", origin: "record", issues: s.issues.map((c) => Oe(c, o, _e())), input: l, path: [l], inst: e }); continue; } const d = n.valueType._zod.run({ value: t[l], issues: [] }, o); d instanceof Promise ? i.push(d.then((c) => { c.issues.length && r.issues.push(...Te(l, c.issues)), r.value[s.value] = c.value; })) : (d.issues.length && r.issues.push(...Te(l, d.issues)), r.value[s.value] = d.value); } } return i.length ? Promise.all(i).then(() => r) : r; }; }), ns = /* @__PURE__ */ v("$ZodMap", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!(t instanceof Map)) return r.issues.push({ expected: "map", code: "invalid_type", input: t, inst: e }), r; const i = []; r.value = /* @__PURE__ */ new Map(); for (const [a, l] of t) { const s = n.keyType._zod.run({ value: a, issues: [] }, o), u = n.valueType._zod.run({ value: l, issues: [] }, o); s instanceof Promise || u instanceof Promise ? i.push(Promise.all([s, u]).then(([d, c]) => { Yo(d, c, r, a, t, e, o); })) : Yo(s, u, r, a, t, e, o); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function Yo(e, n, r, o, t, i, a) { e.issues.length && (pn.has(typeof o) ? r.issues.push(...Te(o, e.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: t, inst: i, issues: e.issues.map((l) => Oe(l, a, _e())) })), n.issues.length && (pn.has(typeof o) ? r.issues.push(...Te(o, n.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: t, inst: i, key: o, issues: n.issues.map((l) => Oe(l, a, _e())) })), r.value.set(e.value, n.value); } const rs = /* @__PURE__ */ v("$ZodSet", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!(t instanceof Set)) return r.issues.push({ input: t, inst: e, expected: "set", code: "invalid_type" }), r; const i = []; r.value = /* @__PURE__ */ new Set(); for (const a of t) { const l = n.valueType._zod.run({ value: a, issues: [] }, o); l instanceof Promise ? i.push(l.then((s) => Qo(s, r))) : Qo(l, r); } return i.length ? Promise.all(i).then(() => r) : r; }; }); function Qo(e, n) { e.issues.length && n.issues.push(...e.issues), n.value.add(e.value); } const is = /* @__PURE__ */ v("$ZodEnum", (e, n) => { W.init(e, n); const r = zr(n.entries), o = new Set(r); e._zod.values = o, e._zod.pattern = new RegExp(`^(${r.filter((t) => pn.has(typeof t)).map((t) => typeof t == "string" ? Fe(t) : t.toString()).join("|")})$`), e._zod.parse = (t, i) => { const a = t.value; return o.has(a) || t.issues.push({ code: "invalid_value", values: r, input: a, inst: e }), t; }; }), os = /* @__PURE__ */ v("$ZodLiteral", (e, n) => { if (W.init(e, n), n.values.length === 0) throw new Error("Cannot create literal schema with no valid values"); const r = new Set(n.values); e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.values.map((o) => typeof o == "string" ? Fe(o) : o ? Fe(o.toString()) : String(o)).join("|")})$`), e._zod.parse = (o, t) => { const i = o.value; return r.has(i) || o.issues.push({ code: "invalid_value", values: n.values, input: i, inst: e }), o; }; }), as = /* @__PURE__ */ v("$ZodFile", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return t instanceof File || r.issues.push({ expected: "file", code: "invalid_type", input: t, inst: e }), r; }; }), ls = /* @__PURE__ */ v("$ZodTransform", (e, n) => { W.init(e, n), e._zod.optin = "optional", e._zod.parse = (r, o) => { if (o.direction === "backward") throw new _n(e.constructor.name); const t = n.transform(r.value, r); if (o.async) return (t instanceof Promise ? t : Promise.resolve(t)).then((a) => (r.value = a, r.fallback = !0, r)); if (t instanceof Promise) throw new et(); return r.value = t, r.fallback = !0, r; }; }); function ea(e, n) { return n === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e; } const Xr = /* @__PURE__ */ v("$ZodOptional", (e, n) => { W.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", H(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), H(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${yn(r.source)})?$`) : void 0; }), e._zod.parse = (r, o) => { if (n.innerType._zod.optin === "optional") { const t = r.value, i = n.innerType._zod.run(r, o); return i instanceof Promise ? i.then((a) => ea(a, t)) : ea(i, t); } return r.value === void 0 ? r : n.innerType._zod.run(r, o); }; }), us = /* @__PURE__ */ v("$ZodExactOptional", (e, n) => { Xr.init(e, n), H(e._zod, "values", () => n.innerType._zod.values), H(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o); }), ss = /* @__PURE__ */ v("$ZodNullable", (e, n) => { W.init(e, n), H(e._zod, "optin", () => n.innerType._zod.optin), H(e._zod, "optout", () => n.innerType._zod.optout), H(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; return r ? new RegExp(`^(${yn(r.source)}|null)$`) : void 0; }), H(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, null]) : void 0), e._zod.parse = (r, o) => r.value === null ? r : n.innerType._zod.run(r, o); }), cs = /* @__PURE__ */ v("$ZodDefault", (e, n) => { W.init(e, n), e._zod.optin = "optional", H(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); if (r.value === void 0) return r.value = n.defaultValue, r; const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => ta(i, n)) : ta(t, n); }; }); function ta(e, n) { return e.value === void 0 && (e.value = n.defaultValue), e; } const ds = /* @__PURE__ */ v("$ZodPrefault", (e, n) => { W.init(e, n), e._zod.optin = "optional", H(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => (o.direction === "backward" || r.value === void 0 && (r.value = n.defaultValue), n.innerType._zod.run(r, o)); }), ms = /* @__PURE__ */ v("$ZodNonOptional", (e, n) => { W.init(e, n), H(e._zod, "values", () => { const r = n.innerType._zod.values; return r ? new Set([...r].filter((o) => o !== void 0)) : void 0; }), e._zod.parse = (r, o) => { const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => na(i, e)) : na(t, e); }; }); function na(e, n) { return !e.issues.length && e.value === void 0 && e.issues.push({ code: "invalid_type", expected: "nonoptional", input: e.value, inst: n }), e; } const fs = /* @__PURE__ */ v("$ZodSuccess", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new _n("ZodSuccess"); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => (r.value = i.issues.length === 0, r)) : (r.value = t.issues.length === 0, r); }; }), ps = /* @__PURE__ */ v("$ZodCatch", (e, n) => { W.init(e, n), e._zod.optin = "optional", H(e._zod, "optout", () => n.innerType._zod.optout), H(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => (r.value = i.value, i.issues.length && (r.value = n.catchValue({ ...r, error: { issues: i.issues.map((a) => Oe(a, o, _e())) }, input: r.value }), r.issues = [], r.fallback = !0), r)) : (r.value = t.value, t.issues.length && (r.value = n.catchValue({ ...r, error: { issues: t.issues.map((i) => Oe(i, o, _e())) }, input: r.value }), r.issues = [], r.fallback = !0), r); }; }), vs = /* @__PURE__ */ v("$ZodNaN", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => ((typeof r.value != "number" || !Number.isNaN(r.value)) && r.issues.push({ input: r.value, inst: e, expected: "nan", code: "invalid_type" }), r); }), Hr = /* @__PURE__ */ v("$ZodPipe", (e, n) => { W.init(e, n), H(e._zod, "values", () => n.in._zod.values), H(e._zod, "optin", () => n.in._zod.optin), H(e._zod, "optout", () => n.out._zod.optout), H(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { if (o.direction === "backward") { const i = n.out._zod.run(r, o); return i instanceof Promise ? i.then((a) => on(a, n.in, o)) : on(i, n.in, o); } const t = n.in._zod.run(r, o); return t instanceof Promise ? t.then((i) => on(i, n.out, o)) : on(t, n.out, o); }; }); function on(e, n, r) { return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, r); } const Yr = /* @__PURE__ */ v("$ZodCodec", (e, n) => { W.init(e, n), H(e._zod, "values", () => n.in._zod.values), H(e._zod, "optin", () => n.in._zod.optin), H(e._zod, "optout", () => n.out._zod.optout), H(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { if ((o.direction || "forward") === "forward") { const i = n.in._zod.run(r, o); return i instanceof Promise ? i.then((a) => an(a, n, o)) : an(i, n, o); } else { const i = n.out._zod.run(r, o); return i instanceof Promise ? i.then((a) => an(a, n, o)) : an(i, n, o); } }; }); function an(e, n, r) { if (e.issues.length) return e.aborted = !0, e; if ((r.direction || "forward") === "forward") { const t = n.transform(e.value, e); return t instanceof Promise ? t.then((i) => ln(e, i, n.out, r)) : ln(e, t, n.out, r); } else { const t = n.reverseTransform(e.value, e); return t instanceof Promise ? t.then((i) => ln(e, i, n.in, r)) : ln(e, t, n.in, r); } } function ln(e, n, r, o) { return e.issues.length ? (e.aborted = !0, e) : r._zod.run({ value: n, issues: e.issues }, o); } const gs = /* @__PURE__ */ v("$ZodPreprocess", (e, n) => { Hr.init(e, n); }), hs = /* @__PURE__ */ v("$ZodReadonly", (e, n) => { W.init(e, n), H(e._zod, "propValues", () => n.innerType._zod.propValues), H(e._zod, "values", () => n.innerType._zod.values), H(e._zod, "optin", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin; }), H(e._zod, "optout", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout; }), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then(ra) : ra(t); }; }); function ra(e) { return e.value = Object.freeze(e.value), e; } const bs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { W.init(e, n); const r = []; for (const o of n.parts) if (typeof o == "object" && o !== null) { if (!o._zod.pattern) throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`); const t = o._zod.pattern instanceof RegExp ? o._zod.pattern.source : o._zod.pattern; if (!t) throw new Error(`Invalid template literal part: ${o._zod.traits}`); const i = t.startsWith("^") ? 1 : 0, a = t.endsWith("$") ? t.length - 1 : t.length; r.push(t.slice(i, a)); } else if (o === null || Ra.has(typeof o)) r.push(Fe(`${o}`)); else throw new Error(`Invalid template literal part: ${o}`); e._zod.pattern = new RegExp(`^${r.join("")}$`), e._zod.parse = (o, t) => typeof o.value != "string" ? (o.issues.push({ input: o.value, inst: e, expected: "string", code: "invalid_type" }), o) : (e._zod.pattern.lastIndex = 0, e._zod.pattern.test(o.value) || o.issues.push({ input: o.value, inst: e, code: "invalid_format", format: n.format ?? "template_literal", pattern: e._zod.pattern.source }), o); }), $s = /* @__PURE__ */ v("$ZodFunction", (e, n) => (W.init(e, n), e._def = n, e._zod.def = n, e.implement = (r) => { if (typeof r != "function") throw new Error("implement() must be called with a function"); return function(...o) { const t = e._def.input ? vr(e._def.input, o) : o, i = Reflect.apply(r, this, t); return e._def.output ? vr(e._def.output, i) : i; }; }, e.implementAsync = (r) => { if (typeof r != "function") throw new Error("implementAsync() must be called with a function"); return async function(...o) { const t = e._def.input ? await gr(e._def.input, o) : o, i = await Reflect.apply(r, this, t); return e._def.output ? await gr(e._def.output, i) : i; }; }, e._zod.parse = (r, o) => typeof r.value != "function" ? (r.issues.push({ code: "invalid_type", expected: "function", input: r.value, inst: e }), r) : (e._def.output && e._def.output._zod.def.type === "promise" ? r.value = e.implementAsync(r.value) : r.value = e.implement(r.value), r), e.input = (...r) => { const o = e.constructor; return Array.isArray(r[0]) ? new o({ type: "function", input: new Wr({ type: "tuple", items: r[0], rest: r[1] }), output: e._def.output }) : new o({ type: "function", input: r[0], output: e._def.output }); }, e.output = (r) => { const o = e.constructor; return new o({ type: "function", input: e._def.input, output: r }); }, e)), _s = /* @__PURE__ */ v("$ZodPromise", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => Promise.resolve(r.value).then((t) => n.innerType._zod.run({ value: t, issues: [] }, o)); }), ys = /* @__PURE__ */ v("$ZodLazy", (e, n) => { W.init(e, n), H(e._zod, "innerType", () => { const r = n; return r._cachedInner || (r._cachedInner = n.getter()), r._cachedInner; }), H(e._zod, "pattern", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.pattern; }), H(e._zod, "propValues", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.propValues; }), H(e._zod, "optin", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin) ?? void 0; }), H(e._zod, "optout", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout) ?? void 0; }), e._zod.parse = (r, o) => e._zod.innerType._zod.run(r, o); }), ks = /* @__PURE__ */ v("$ZodCustom", (e, n) => { se.init(e, n), W.init(e, n), e._zod.parse = (r, o) => r, e._zod.check = (r) => { const o = r.value, t = n.fn(o); if (t instanceof Promise) return t.then((i) => ia(i, r, o, e)); ia(t, r, o, e); }; }); function ia(e, n, r, o) { if (!e) { const t = { code: "custom", input: r, inst: o, // incorporates params.error into issue reporting path: [...o._zod.def.path ?? []], // incorporates params.error into issue reporting continue: !o._zod.def.abort // params: inst._zod.def.params, }; o._zod.def.params && (t.params = o._zod.def.params), n.issues.push(dt(t)); } } const m_ = () => { const e = { string: { unit: "حرف", verb: "أن يحوي" }, file: { unit: "بايت", verb: "أن يحوي" }, array: { unit: "عنصر", verb: "أن يحوي" }, set: { unit: "عنصر", verb: "أن يحوي" } }; function n(t) { return e[t] ?? null; } const r = { 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: "مدخل" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${l}` : `مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${l}`; } case "invalid_value": return t.values.length === 1 ? `مدخلات غير مقبولة: يفترض إدخال ${V(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? ` أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()} ${a.unit ?? "عنصر"}` : `أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()} ${a.unit}` : `أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"` : i.format === "ends_with" ? `نَص غير مقبول: يجب أن ينتهي بـ "${i.suffix}"` : i.format === "includes" ? `نَص غير مقبول: يجب أن يتضمَّن "${i.includes}"` : i.format === "regex" ? `نَص غير مقبول: يجب أن يطابق النمط ${i.pattern}` : `${r[i.format] ?? t.format} غير مقبول`; } case "not_multiple_of": return `رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`; case "unrecognized_keys": return `معرف${t.keys.length > 1 ? "ات" : ""} غريب${t.keys.length > 1 ? "ة" : ""}: ${w(t.keys, "، ")}`; case "invalid_key": return `معرف غير مقبول في ${t.origin}`; case "invalid_union": return "مدخل غير مقبول"; case "invalid_element": return `مدخل غير مقبول في ${t.origin}`; default: return "مدخل غير مقبول"; } }; }; function f_() { return { localeError: m_() }; } const p_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${l}` : `Yanlış dəyər: gözlənilən ${i}, daxil olan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Yanlış dəyər: gözlənilən ${V(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `Çox kiçik: gözlənilən ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Yanlış mətn: "${i.prefix}" ilə başlamalıdır` : i.format === "ends_with" ? `Yanlış mətn: "${i.suffix}" ilə bitməlidir` : i.format === "includes" ? `Yanlış mətn: "${i.includes}" daxil olmalıdır` : i.format === "regex" ? `Yanlış mətn: ${i.pattern} şablonuna uyğun olmalıdır` : `Yanlış ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`; case "unrecognized_keys": return `Tanınmayan açar${t.keys.length > 1 ? "lar" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} daxilində yanlış açar`; case "invalid_union": return "Yanlış dəyər"; case "invalid_element": return `${t.origin} daxilində yanlış dəyər`; default: return "Yanlış dəyər"; } }; }; function v_() { return { localeError: p_() }; } function oa(e, n, r, o) { const t = Math.abs(e), i = t % 10, a = t % 100; return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o; } const g_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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: "увод" }, o = { nan: "NaN", number: "лік", array: "масіў" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${l}` : `Няправільны ўвод: чакаўся ${i}, атрымана ${l}`; } case "invalid_value": return t.values.length === 1 ? `Няправільны ўвод: чакалася ${V(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const l = Number(t.maximum), s = oa(l, a.unit.one, a.unit.few, a.unit.many); return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна ${a.verb} ${i}${t.maximum.toString()} ${s}`; } return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна быць ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const l = Number(t.minimum), s = oa(l, a.unit.one, a.unit.few, a.unit.many); return `Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${i}${t.minimum.toString()} ${s}`; } return `Занадта малы: чакалася, што ${t.origin} павінна быць ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Няправільны радок: павінен пачынацца з "${i.prefix}"` : i.format === "ends_with" ? `Няправільны радок: павінен заканчвацца на "${i.suffix}"` : i.format === "includes" ? `Няправільны радок: павінен змяшчаць "${i.includes}"` : i.format === "regex" ? `Няправільны радок: павінен адпавядаць шаблону ${i.pattern}` : `Няправільны ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Няправільны лік: павінен быць кратным ${t.divisor}`; case "unrecognized_keys": return `Нераспазнаны ${t.keys.length > 1 ? "ключы" : "ключ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Няправільны ключ у ${t.origin}`; case "invalid_union": return "Няправільны ўвод"; case "invalid_element": return `Няправільнае значэнне ў ${t.origin}`; default: return "Няправільны ўвод"; } }; }; function h_() { return { localeError: g_() }; } const b_ = () => { const e = { string: { unit: "символа", verb: "да съдържа" }, file: { unit: "байта", verb: "да съдържа" }, array: { unit: "елемента", verb: "да съдържа" }, set: { unit: "елемента", verb: "да съдържа" } }; function n(t) { return e[t] ?? null; } const r = { 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: "вход" }, o = { nan: "NaN", number: "число", array: "масив" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Невалиден вход: очакван instanceof ${t.expected}, получен ${l}` : `Невалиден вход: очакван ${i}, получен ${l}`; } case "invalid_value": return t.values.length === 1 ? `Невалиден вход: очакван ${V(t.values[0])}` : `Невалидна опция: очаквано едно от ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Твърде голямо: очаква се ${t.origin ?? "стойност"} да съдържа ${i}${t.maximum.toString()} ${a.unit ?? "елемента"}` : `Твърде голямо: очаква се ${t.origin ?? "стойност"} да бъде ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Твърде малко: очаква се ${t.origin} да съдържа ${i}${t.minimum.toString()} ${a.unit}` : `Твърде малко: очаква се ${t.origin} да бъде ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; if (i.format === "starts_with") return `Невалиден низ: трябва да започва с "${i.prefix}"`; if (i.format === "ends_with") return `Невалиден низ: трябва да завършва с "${i.suffix}"`; if (i.format === "includes") return `Невалиден низ: трябва да включва "${i.includes}"`; if (i.format === "regex") return `Невалиден низ: трябва да съвпада с ${i.pattern}`; let a = "Невалиден"; return i.format === "emoji" && (a = "Невалидно"), i.format === "datetime" && (a = "Невалидно"), i.format === "date" && (a = "Невалидна"), i.format === "time" && (a = "Невалидно"), i.format === "duration" && (a = "Невалидна"), `${a} ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Невалидно число: трябва да бъде кратно на ${t.divisor}`; case "unrecognized_keys": return `Неразпознат${t.keys.length > 1 ? "и" : ""} ключ${t.keys.length > 1 ? "ове" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Невалиден ключ в ${t.origin}`; case "invalid_union": return "Невалиден вход"; case "invalid_element": return `Невалидна стойност в ${t.origin}`; default: return "Невалиден вход"; } }; }; function $_() { return { localeError: b_() }; } const __ = () => { const e = { string: { unit: "caràcters", verb: "contenir" }, file: { unit: "bytes", verb: "contenir" }, array: { unit: "elements", verb: "contenir" }, set: { unit: "elements", verb: "contenir" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${l}` : `Tipus invàlid: s'esperava ${i}, s'ha rebut ${l}`; } case "invalid_value": return t.values.length === 1 ? `Valor invàlid: s'esperava ${V(t.values[0])}` : `Opció invàlida: s'esperava una de ${w(t.values, " o ")}`; case "too_big": { const i = t.inclusive ? "com a màxim" : "menys de", a = n(t.origin); return a ? `Massa gran: s'esperava que ${t.origin ?? "el valor"} contingués ${i} ${t.maximum.toString()} ${a.unit ?? "elements"}` : `Massa gran: s'esperava que ${t.origin ?? "el valor"} fos ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? "com a mínim" : "més de", a = n(t.origin); return a ? `Massa petit: s'esperava que ${t.origin} contingués ${i} ${t.minimum.toString()} ${a.unit}` : `Massa petit: s'esperava que ${t.origin} fos ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Format invàlid: ha de començar amb "${i.prefix}"` : i.format === "ends_with" ? `Format invàlid: ha d'acabar amb "${i.suffix}"` : i.format === "includes" ? `Format invàlid: ha d'incloure "${i.includes}"` : i.format === "regex" ? `Format invàlid: ha de coincidir amb el patró ${i.pattern}` : `Format invàlid per a ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Número invàlid: ha de ser múltiple de ${t.divisor}`; case "unrecognized_keys": return `Clau${t.keys.length > 1 ? "s" : ""} no reconeguda${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Clau invàlida a ${t.origin}`; case "invalid_union": return "Entrada invàlida"; // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general case "invalid_element": return `Element invàlid a ${t.origin}`; default: return "Entrada invàlida"; } }; }; function y_() { return { localeError: __() }; } const k_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "číslo", string: "řetězec", function: "funkce", array: "pole" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${l}` : `Neplatný vstup: očekáváno ${i}, obdrženo ${l}`; } case "invalid_value": return t.values.length === 1 ? `Neplatný vstup: očekáváno ${V(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí mít ${i}${t.maximum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí být ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Hodnota je příliš malá: ${t.origin ?? "hodnota"} musí mít ${i}${t.minimum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš malá: ${t.origin ?? "hodnota"} musí být ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neplatný řetězec: musí začínat na "${i.prefix}"` : i.format === "ends_with" ? `Neplatný řetězec: musí končit na "${i.suffix}"` : i.format === "includes" ? `Neplatný řetězec: musí obsahovat "${i.includes}"` : i.format === "regex" ? `Neplatný řetězec: musí odpovídat vzoru ${i.pattern}` : `Neplatný formát ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neplatné číslo: musí být násobkem ${t.divisor}`; case "unrecognized_keys": return `Neznámé klíče: ${w(t.keys, ", ")}`; case "invalid_key": return `Neplatný klíč v ${t.origin}`; case "invalid_union": return "Neplatný vstup"; case "invalid_element": return `Neplatná hodnota v ${t.origin}`; default: return "Neplatný vstup"; } }; }; function S_() { return { localeError: k_() }; } const w_ = () => { const e = { string: { unit: "tegn", verb: "havde" }, file: { unit: "bytes", verb: "havde" }, array: { unit: "elementer", verb: "indeholdt" }, set: { unit: "elementer", verb: "indeholdt" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", string: "streng", number: "tal", boolean: "boolean", array: "liste", object: "objekt", set: "sæt", file: "fil" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldigt input: forventede instanceof ${t.expected}, fik ${l}` : `Ugyldigt input: forventede ${i}, fik ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ugyldig værdi: forventede ${V(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `For stor: forventede ${l ?? "value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor: forventede ${l ?? "value"} havde ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `For lille: forventede ${l} ${a.verb} ${i} ${t.minimum.toString()} ${a.unit}` : `For lille: forventede ${l} havde ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ugyldig streng: skal starte med "${i.prefix}"` : i.format === "ends_with" ? `Ugyldig streng: skal ende med "${i.suffix}"` : i.format === "includes" ? `Ugyldig streng: skal indeholde "${i.includes}"` : i.format === "regex" ? `Ugyldig streng: skal matche mønsteret ${i.pattern}` : `Ugyldig ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ugyldigt tal: skal være deleligt med ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ugyldig nøgle i ${t.origin}`; case "invalid_union": return "Ugyldigt input: matcher ingen af de tilladte typer"; case "invalid_element": return `Ugyldig værdi i ${t.origin}`; default: return "Ugyldigt input"; } }; }; function I_() { return { localeError: w_() }; } const z_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "Zahl", array: "Array" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${l}` : `Ungültige Eingabe: erwartet ${i}, erhalten ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ungültige Eingabe: erwartet ${V(t.values[0])}` : `Ungültige Option: erwartet eine von ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ${a.unit ?? "Elemente"} hat` : `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ist`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ${a.unit} hat` : `Zu klein: erwartet, dass ${t.origin} ${i}${t.minimum.toString()} ist`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ungültiger String: muss mit "${i.prefix}" beginnen` : i.format === "ends_with" ? `Ungültiger String: muss mit "${i.suffix}" enden` : i.format === "includes" ? `Ungültiger String: muss "${i.includes}" enthalten` : i.format === "regex" ? `Ungültiger String: muss dem Muster ${i.pattern} entsprechen` : `Ungültig: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ungültiger Schlüssel in ${t.origin}`; case "invalid_union": return "Ungültige Eingabe"; case "invalid_element": return `Ungültiger Wert in ${t.origin}`; default: return "Ungültige Eingabe"; } }; }; function D_() { return { localeError: z_() }; } const j_ = () => { const e = { string: { unit: "χαρακτήρες", verb: "να έχει" }, file: { unit: "bytes", verb: "να έχει" }, array: { unit: "στοιχεία", verb: "να έχει" }, set: { unit: "στοιχεία", verb: "να έχει" }, map: { unit: "καταχωρήσεις", verb: "να έχει" } }; function n(t) { return e[t] ?? null; } const r = { regex: "είσοδος", email: "διεύθυνση 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", mac: "διεύθυνση MAC", cidrv4: "εύρος IPv4", cidrv6: "εύρος IPv6", base64: "συμβολοσειρά κωδικοποιημένη σε base64", base64url: "συμβολοσειρά κωδικοποιημένη σε base64url", json_string: "συμβολοσειρά JSON", e164: "αριθμός E.164", jwt: "JWT", template_literal: "είσοδος" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return typeof t.expected == "string" && /^[A-Z]/.test(t.expected) ? `Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${l}` : `Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${l}`; } case "invalid_value": return t.values.length === 1 ? `Μη έγκυρη είσοδος: αναμενόταν ${V(t.values[0])}` : `Μη έγκυρη επιλογή: αναμενόταν ένα από ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Πολύ μεγάλο: αναμενόταν ${t.origin ?? "τιμή"} να έχει ${i}${t.maximum.toString()} ${a.unit ?? "στοιχεία"}` : `Πολύ μεγάλο: αναμενόταν ${t.origin ?? "τιμή"} να είναι ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Πολύ μικρό: αναμενόταν ${t.origin} να έχει ${i}${t.minimum.toString()} ${a.unit}` : `Πολύ μικρό: αναμενόταν ${t.origin} να είναι ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${i.prefix}"` : i.format === "ends_with" ? `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${i.suffix}"` : i.format === "includes" ? `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${i.includes}"` : i.format === "regex" ? `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${i.pattern}` : `Μη έγκυρο: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${t.divisor}`; case "unrecognized_keys": return `Άγνωστ${t.keys.length > 1 ? "α" : "ο"} κλειδ${t.keys.length > 1 ? "ιά" : "ί"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Μη έγκυρο κλειδί στο ${t.origin}`; case "invalid_union": return "Μη έγκυρη είσοδος"; case "invalid_element": return `Μη έγκυρη τιμή στο ${t.origin}`; default: return "Μη έγκυρη είσοδος"; } }; }; function O_() { return { localeError: j_() }; } const E_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { // Compatibility: "nan" -> "NaN" for display nan: "NaN" // All other type names omitted - they fall back to raw values via ?? operator }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return `Invalid input: expected ${i}, received ${l}`; } case "invalid_value": return t.values.length === 1 ? `Invalid input: expected ${V(t.values[0])}` : `Invalid option: expected one of ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Too big: expected ${t.origin ?? "value"} to have ${i}${t.maximum.toString()} ${a.unit ?? "elements"}` : `Too big: expected ${t.origin ?? "value"} to be ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Too small: expected ${t.origin} to have ${i}${t.minimum.toString()} ${a.unit}` : `Too small: expected ${t.origin} to be ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Invalid string: must start with "${i.prefix}"` : i.format === "ends_with" ? `Invalid string: must end with "${i.suffix}"` : i.format === "includes" ? `Invalid string: must include "${i.includes}"` : i.format === "regex" ? `Invalid string: must match pattern ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Invalid number: must be a multiple of ${t.divisor}`; case "unrecognized_keys": return `Unrecognized key${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Invalid key in ${t.origin}`; case "invalid_union": return t.options && Array.isArray(t.options) && t.options.length > 0 ? `Invalid discriminator value. Expected ${t.options.map((a) => `'${a}'`).join(" | ")}` : "Invalid input"; case "invalid_element": return `Invalid value in ${t.origin}`; default: return "Invalid input"; } }; }; function Ss() { return { localeError: E_() }; } const x_ = () => { const e = { string: { unit: "karaktrojn", verb: "havi" }, file: { unit: "bajtojn", verb: "havi" }, array: { unit: "elementojn", verb: "havi" }, set: { unit: "elementojn", verb: "havi" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "nombro", array: "tabelo", null: "senvalora" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${l}` : `Nevalida enigo: atendiĝis ${i}, riceviĝis ${l}`; } case "invalid_value": return t.values.length === 1 ? `Nevalida enigo: atendiĝis ${V(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()} ${a.unit ?? "elementojn"}` : `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Tro malgranda: atendiĝis ke ${t.origin} havu ${i}${t.minimum.toString()} ${a.unit}` : `Tro malgranda: atendiĝis ke ${t.origin} estu ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Nevalida karaktraro: devas komenciĝi per "${i.prefix}"` : i.format === "ends_with" ? `Nevalida karaktraro: devas finiĝi per "${i.suffix}"` : i.format === "includes" ? `Nevalida karaktraro: devas inkluzivi "${i.includes}"` : i.format === "regex" ? `Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}` : `Nevalida ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${t.divisor}`; case "unrecognized_keys": return `Nekonata${t.keys.length > 1 ? "j" : ""} ŝlosilo${t.keys.length > 1 ? "j" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Nevalida ŝlosilo en ${t.origin}`; case "invalid_union": return "Nevalida enigo"; case "invalid_element": return `Nevalida valoro en ${t.origin}`; default: return "Nevalida enigo"; } }; }; function U_() { return { localeError: x_() }; } const T_ = () => { const e = { string: { unit: "caracteres", verb: "tener" }, file: { unit: "bytes", verb: "tener" }, array: { unit: "elementos", verb: "tener" }, set: { unit: "elementos", verb: "tener" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { 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 (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${l}` : `Entrada inválida: se esperaba ${i}, recibido ${l}`; } case "invalid_value": return t.values.length === 1 ? `Entrada inválida: se esperaba ${V(t.values[0])}` : `Opción inválida: se esperaba una de ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Demasiado grande: se esperaba que ${l ?? "valor"} tuviera ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Demasiado grande: se esperaba que ${l ?? "valor"} fuera ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Demasiado pequeño: se esperaba que ${l} tuviera ${i}${t.minimum.toString()} ${a.unit}` : `Demasiado pequeño: se esperaba que ${l} fuera ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Cadena inválida: debe comenzar con "${i.prefix}"` : i.format === "ends_with" ? `Cadena inválida: debe terminar en "${i.suffix}"` : i.format === "includes" ? `Cadena inválida: debe incluir "${i.includes}"` : i.format === "regex" ? `Cadena inválida: debe coincidir con el patrón ${i.pattern}` : `Inválido ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Número inválido: debe ser múltiplo de ${t.divisor}`; case "unrecognized_keys": return `Llave${t.keys.length > 1 ? "s" : ""} desconocida${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Llave inválida en ${o[t.origin] ?? t.origin}`; case "invalid_union": return "Entrada inválida"; case "invalid_element": return `Valor inválido en ${o[t.origin] ?? t.origin}`; default: return "Entrada inválida"; } }; }; function N_() { return { localeError: T_() }; } const P_ = () => { const e = { string: { unit: "کاراکتر", verb: "داشته باشد" }, file: { unit: "بایت", verb: "داشته باشد" }, array: { unit: "آیتم", verb: "داشته باشد" }, set: { unit: "آیتم", verb: "داشته باشد" } }; function n(t) { return e[t] ?? null; } const r = { 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: "ورودی" }, o = { nan: "NaN", number: "عدد", array: "آرایه" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${l} دریافت شد` : `ورودی نامعتبر: می‌بایست ${i} می‌بود، ${l} دریافت شد`; } case "invalid_value": return t.values.length === 1 ? `ورودی نامعتبر: می‌بایست ${V(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${w(t.values, "|")} می‌بود`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصر"} باشد` : `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} باشد`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} باشد` : `خیلی کوچک: ${t.origin} باید ${i}${t.minimum.toString()} باشد`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `رشته نامعتبر: باید با "${i.prefix}" شروع شود` : i.format === "ends_with" ? `رشته نامعتبر: باید با "${i.suffix}" تمام شود` : i.format === "includes" ? `رشته نامعتبر: باید شامل "${i.includes}" باشد` : i.format === "regex" ? `رشته نامعتبر: باید با الگوی ${i.pattern} مطابقت داشته باشد` : `${r[i.format] ?? t.format} نامعتبر`; } case "not_multiple_of": return `عدد نامعتبر: باید مضرب ${t.divisor} باشد`; case "unrecognized_keys": return `کلید${t.keys.length > 1 ? "های" : ""} ناشناس: ${w(t.keys, ", ")}`; case "invalid_key": return `کلید ناشناس در ${t.origin}`; case "invalid_union": return "ورودی نامعتبر"; case "invalid_element": return `مقدار نامعتبر در ${t.origin}`; default: return "ورودی نامعتبر"; } }; }; function A_() { return { localeError: P_() }; } const C_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${l}` : `Virheellinen tyyppi: odotettiin ${i}, oli ${l}`; } case "invalid_value": return t.values.length === 1 ? `Virheellinen syöte: täytyy olla ${V(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Liian suuri: ${a.subject} täytyy olla ${i}${t.maximum.toString()} ${a.unit}`.trim() : `Liian suuri: arvon täytyy olla ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Liian pieni: ${a.subject} täytyy olla ${i}${t.minimum.toString()} ${a.unit}`.trim() : `Liian pieni: arvon täytyy olla ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Virheellinen syöte: täytyy alkaa "${i.prefix}"` : i.format === "ends_with" ? `Virheellinen syöte: täytyy loppua "${i.suffix}"` : i.format === "includes" ? `Virheellinen syöte: täytyy sisältää "${i.includes}"` : i.format === "regex" ? `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${i.pattern}` : `Virheellinen ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${w(t.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"; } }; }; function Z_() { return { localeError: C_() }; } const M_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { string: "chaîne", number: "nombre", int: "entier", boolean: "booléen", bigint: "grand entier", symbol: "symbole", undefined: "indéfini", null: "null", never: "jamais", void: "vide", date: "date", array: "tableau", object: "objet", tuple: "tuple", record: "enregistrement", map: "carte", set: "ensemble", file: "fichier", nonoptional: "non-optionnel", nan: "NaN", function: "fonction" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : instanceof ${t.expected} attendu, ${l} reçu` : `Entrée invalide : ${i} attendu, ${l} reçu`; } case "invalid_value": return t.values.length === 1 ? `Entrée invalide : ${V(t.values[0])} attendu` : `Option invalide : une valeur parmi ${w(t.values, "|")} attendue`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Trop grand : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "élément(s)"}` : `Trop grand : ${o[t.origin] ?? "valeur"} doit être ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Trop petit : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : ${o[t.origin] ?? "valeur"} doit être ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Chaîne invalide : doit commencer par "${i.prefix}"` : i.format === "ends_with" ? `Chaîne invalide : doit se terminer par "${i.suffix}"` : i.format === "includes" ? `Chaîne invalide : doit inclure "${i.includes}"` : i.format === "regex" ? `Chaîne invalide : doit correspondre au modèle ${i.pattern}` : `${r[i.format] ?? t.format} invalide`; } case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${t.divisor}`; case "unrecognized_keys": return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${w(t.keys, ", ")}`; case "invalid_key": return `Clé invalide dans ${t.origin}`; case "invalid_union": return "Entrée invalide"; case "invalid_element": return `Valeur invalide dans ${t.origin}`; default: return "Entrée invalide"; } }; }; function L_() { return { localeError: M_() }; } const F_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : attendu instanceof ${t.expected}, reçu ${l}` : `Entrée invalide : attendu ${i}, reçu ${l}`; } case "invalid_value": return t.values.length === 1 ? `Entrée invalide : attendu ${V(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "≤" : "<", a = n(t.origin); return a ? `Trop grand : attendu que ${t.origin ?? "la valeur"} ait ${i}${t.maximum.toString()} ${a.unit}` : `Trop grand : attendu que ${t.origin ?? "la valeur"} soit ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? "≥" : ">", a = n(t.origin); return a ? `Trop petit : attendu que ${t.origin} ait ${i}${t.minimum.toString()} ${a.unit}` : `Trop petit : attendu que ${t.origin} soit ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Chaîne invalide : doit commencer par "${i.prefix}"` : i.format === "ends_with" ? `Chaîne invalide : doit se terminer par "${i.suffix}"` : i.format === "includes" ? `Chaîne invalide : doit inclure "${i.includes}"` : i.format === "regex" ? `Chaîne invalide : doit correspondre au motif ${i.pattern}` : `${r[i.format] ?? t.format} invalide`; } case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${t.divisor}`; case "unrecognized_keys": return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${w(t.keys, ", ")}`; case "invalid_key": return `Clé invalide dans ${t.origin}`; case "invalid_union": return "Entrée invalide"; case "invalid_element": return `Valeur invalide dans ${t.origin}`; default: return "Entrée invalide"; } }; }; function R_() { return { localeError: F_() }; } const B_ = () => { 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" } }, n = { string: { unit: "תווים", shortLabel: "קצר", longLabel: "ארוך" }, file: { unit: "בייטים", shortLabel: "קטן", longLabel: "גדול" }, array: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" }, set: { unit: "פריטים", shortLabel: "קטן", longLabel: "גדול" }, number: { unit: "", shortLabel: "קטן", longLabel: "גדול" } // no unit }, r = (u) => u ? e[u] : void 0, o = (u) => { const d = r(u); return d ? d.label : u ?? e.unknown.label; }, t = (u) => `ה${o(u)}`, i = (u) => { const d = r(u); return ((d == null ? void 0 : d.gender) ?? "m") === "f" ? "צריכה להיות" : "צריך להיות"; }, a = (u) => u ? n[u] ?? null : null, l = { 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" } }, s = { nan: "NaN" }; return (u) => { var d; switch (u.code) { case "invalid_type": { const c = u.expected, m = s[c ?? ""] ?? o(c), f = J(u.input), g = s[f] ?? ((d = e[f]) == null ? void 0 : d.label) ?? f; return /^[A-Z]/.test(u.expected) ? `קלט לא תקין: צריך להיות instanceof ${u.expected}, התקבל ${g}` : `קלט לא תקין: צריך להיות ${m}, התקבל ${g}`; } case "invalid_value": { if (u.values.length === 1) return `ערך לא תקין: הערך חייב להיות ${V(u.values[0])}`; const c = u.values.map((g) => V(g)); if (u.values.length === 2) return `ערך לא תקין: האפשרויות המתאימות הן ${c[0]} או ${c[1]}`; const m = c[c.length - 1]; return `ערך לא תקין: האפשרויות המתאימות הן ${c.slice(0, -1).join(", ")} או ${m}`; } case "too_big": { const c = a(u.origin), m = t(u.origin ?? "value"); if (u.origin === "string") return `${(c == null ? void 0 : c.longLabel) ?? "ארוך"} מדי: ${m} צריכה להכיל ${u.maximum.toString()} ${(c == null ? void 0 : c.unit) ?? ""} ${u.inclusive ? "או פחות" : "לכל היותר"}`.trim(); if (u.origin === "number") { const y = u.inclusive ? `קטן או שווה ל-${u.maximum}` : `קטן מ-${u.maximum}`; return `גדול מדי: ${m} צריך להיות ${y}`; } if (u.origin === "array" || u.origin === "set") { const y = u.origin === "set" ? "צריכה" : "צריך", N = u.inclusive ? `${u.maximum} ${(c == null ? void 0 : c.unit) ?? ""} או פחות` : `פחות מ-${u.maximum} ${(c == null ? void 0 : c.unit) ?? ""}`; return `גדול מדי: ${m} ${y} להכיל ${N}`.trim(); } const f = u.inclusive ? "<=" : "<", g = i(u.origin ?? "value"); return c != null && c.unit ? `${c.longLabel} מדי: ${m} ${g} ${f}${u.maximum.toString()} ${c.unit}` : `${(c == null ? void 0 : c.longLabel) ?? "גדול"} מדי: ${m} ${g} ${f}${u.maximum.toString()}`; } case "too_small": { const c = a(u.origin), m = t(u.origin ?? "value"); if (u.origin === "string") return `${(c == null ? void 0 : c.shortLabel) ?? "קצר"} מדי: ${m} צריכה להכיל ${u.minimum.toString()} ${(c == null ? void 0 : c.unit) ?? ""} ${u.inclusive ? "או יותר" : "לפחות"}`.trim(); if (u.origin === "number") { const y = u.inclusive ? `גדול או שווה ל-${u.minimum}` : `גדול מ-${u.minimum}`; return `קטן מדי: ${m} צריך להיות ${y}`; } if (u.origin === "array" || u.origin === "set") { const y = u.origin === "set" ? "צריכה" : "צריך"; if (u.minimum === 1 && u.inclusive) { const x = (u.origin === "set", "לפחות פריט אחד"); return `קטן מדי: ${m} ${y} להכיל ${x}`; } const N = u.inclusive ? `${u.minimum} ${(c == null ? void 0 : c.unit) ?? ""} או יותר` : `יותר מ-${u.minimum} ${(c == null ? void 0 : c.unit) ?? ""}`; return `קטן מדי: ${m} ${y} להכיל ${N}`.trim(); } const f = u.inclusive ? ">=" : ">", g = i(u.origin ?? "value"); return c != null && c.unit ? `${c.shortLabel} מדי: ${m} ${g} ${f}${u.minimum.toString()} ${c.unit}` : `${(c == null ? void 0 : c.shortLabel) ?? "קטן"} מדי: ${m} ${g} ${f}${u.minimum.toString()}`; } case "invalid_format": { const c = u; if (c.format === "starts_with") return `המחרוזת חייבת להתחיל ב "${c.prefix}"`; if (c.format === "ends_with") return `המחרוזת חייבת להסתיים ב "${c.suffix}"`; if (c.format === "includes") return `המחרוזת חייבת לכלול "${c.includes}"`; if (c.format === "regex") return `המחרוזת חייבת להתאים לתבנית ${c.pattern}`; const m = l[c.format], f = (m == null ? void 0 : m.label) ?? c.format, y = ((m == null ? void 0 : m.gender) ?? "m") === "f" ? "תקינה" : "תקין"; return `${f} לא ${y}`; } case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`; case "unrecognized_keys": return `מפתח${u.keys.length > 1 ? "ות" : ""} לא מזוה${u.keys.length > 1 ? "ים" : "ה"}: ${w(u.keys, ", ")}`; case "invalid_key": return "שדה לא תקין באובייקט"; case "invalid_union": return "קלט לא תקין"; case "invalid_element": return `ערך לא תקין ב${t(u.origin ?? "array")}`; default: return "קלט לא תקין"; } }; }; function V_() { return { localeError: B_() }; } const J_ = () => { const e = { string: { unit: "znakova", verb: "imati" }, file: { unit: "bajtova", verb: "imati" }, array: { unit: "stavki", verb: "imati" }, set: { unit: "stavki", verb: "imati" } }; function n(t) { return e[t] ?? null; } const r = { regex: "unos", email: "email 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: "ISO datum i vrijeme", date: "ISO datum", time: "ISO vrijeme", duration: "ISO trajanje", ipv4: "IPv4 adresa", ipv6: "IPv6 adresa", cidrv4: "IPv4 raspon", cidrv6: "IPv6 raspon", base64: "base64 kodirani tekst", base64url: "base64url kodirani tekst", json_string: "JSON tekst", e164: "E.164 broj", jwt: "JWT", template_literal: "unos" }, o = { nan: "NaN", string: "tekst", number: "broj", boolean: "boolean", array: "niz", object: "objekt", set: "skup", file: "datoteka", date: "datum", bigint: "bigint", symbol: "simbol", undefined: "undefined", null: "null", function: "funkcija", map: "mapa" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${l}` : `Neispravan unos: očekuje se ${i}, a primljeno je ${l}`; } case "invalid_value": return t.values.length === 1 ? `Neispravna vrijednost: očekivano ${V(t.values[0])}` : `Neispravna opcija: očekivano jedno od ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Preveliko: očekivano da ${l ?? "vrijednost"} ima ${i}${t.maximum.toString()} ${a.unit ?? "elemenata"}` : `Preveliko: očekivano da ${l ?? "vrijednost"} bude ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Premalo: očekivano da ${l} ima ${i}${t.minimum.toString()} ${a.unit}` : `Premalo: očekivano da ${l} bude ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neispravan tekst: mora započinjati s "${i.prefix}"` : i.format === "ends_with" ? `Neispravan tekst: mora završavati s "${i.suffix}"` : i.format === "includes" ? `Neispravan tekst: mora sadržavati "${i.includes}"` : i.format === "regex" ? `Neispravan tekst: mora odgovarati uzorku ${i.pattern}` : `Neispravna ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neispravan broj: mora biti višekratnik od ${t.divisor}`; case "unrecognized_keys": return `Neprepoznat${t.keys.length > 1 ? "i ključevi" : " ključ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Neispravan ključ u ${o[t.origin] ?? t.origin}`; case "invalid_union": return "Neispravan unos"; case "invalid_element": return `Neispravna vrijednost u ${o[t.origin] ?? t.origin}`; default: return "Neispravan unos"; } }; }; function q_() { return { localeError: J_() }; } const G_ = () => { const e = { string: { unit: "karakter", verb: "legyen" }, file: { unit: "byte", verb: "legyen" }, array: { unit: "elem", verb: "legyen" }, set: { unit: "elem", verb: "legyen" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "szám", array: "tömb" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${l}` : `Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${l}`; } case "invalid_value": return t.values.length === 1 ? `Érvénytelen bemenet: a várt érték ${V(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Túl nagy: ${t.origin ?? "érték"} mérete túl nagy ${i}${t.maximum.toString()} ${a.unit ?? "elem"}` : `Túl nagy: a bemeneti érték ${t.origin ?? "érték"} túl nagy: ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${i}${t.minimum.toString()} ${a.unit}` : `Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Érvénytelen string: "${i.prefix}" értékkel kell kezdődnie` : i.format === "ends_with" ? `Érvénytelen string: "${i.suffix}" értékkel kell végződnie` : i.format === "includes" ? `Érvénytelen string: "${i.includes}" értéket kell tartalmaznia` : i.format === "regex" ? `Érvénytelen string: ${i.pattern} mintának kell megfelelnie` : `Érvénytelen ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Érvénytelen szám: ${t.divisor} többszörösének kell lennie`; case "unrecognized_keys": return `Ismeretlen kulcs${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Érvénytelen kulcs ${t.origin}`; case "invalid_union": return "Érvénytelen bemenet"; case "invalid_element": return `Érvénytelen érték: ${t.origin}`; default: return "Érvénytelen bemenet"; } }; }; function K_() { return { localeError: G_() }; } function aa(e, n, r) { return Math.abs(e) === 1 ? n : r; } function lt(e) { if (!e) return ""; const n = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"], r = e[e.length - 1]; return e + (n.includes(r) ? "ն" : "ը"); } const W_ = () => { const e = { string: { unit: { one: "նշան", many: "նշաններ" }, verb: "ունենալ" }, file: { unit: { one: "բայթ", many: "բայթեր" }, verb: "ունենալ" }, array: { unit: { one: "տարր", many: "տարրեր" }, verb: "ունենալ" }, set: { unit: { one: "տարր", many: "տարրեր" }, verb: "ունենալ" } }; function n(t) { return e[t] ?? null; } const r = { 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: "մուտք" }, o = { nan: "NaN", number: "թիվ", array: "զանգված" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${l}` : `Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${l}`; } case "invalid_value": return t.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${V(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const l = Number(t.maximum), s = aa(l, a.unit.one, a.unit.many); return `Չափազանց մեծ արժեք․ սպասվում է, որ ${lt(t.origin ?? "արժեք")} կունենա ${i}${t.maximum.toString()} ${s}`; } return `Չափազանց մեծ արժեք․ սպասվում է, որ ${lt(t.origin ?? "արժեք")} լինի ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const l = Number(t.minimum), s = aa(l, a.unit.one, a.unit.many); return `Չափազանց փոքր արժեք․ սպասվում է, որ ${lt(t.origin)} կունենա ${i}${t.minimum.toString()} ${s}`; } return `Չափազանց փոքր արժեք․ սպասվում է, որ ${lt(t.origin)} լինի ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Սխալ տող․ պետք է սկսվի "${i.prefix}"-ով` : i.format === "ends_with" ? `Սխալ տող․ պետք է ավարտվի "${i.suffix}"-ով` : i.format === "includes" ? `Սխալ տող․ պետք է պարունակի "${i.includes}"` : i.format === "regex" ? `Սխալ տող․ պետք է համապատասխանի ${i.pattern} ձևաչափին` : `Սխալ ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`; case "unrecognized_keys": return `Չճանաչված բանալի${t.keys.length > 1 ? "ներ" : ""}. ${w(t.keys, ", ")}`; case "invalid_key": return `Սխալ բանալի ${lt(t.origin)}-ում`; case "invalid_union": return "Սխալ մուտքագրում"; case "invalid_element": return `Սխալ արժեք ${lt(t.origin)}-ում`; default: return "Սխալ մուտքագրում"; } }; }; function X_() { return { localeError: W_() }; } const H_ = () => { const e = { string: { unit: "karakter", verb: "memiliki" }, file: { unit: "byte", verb: "memiliki" }, array: { unit: "item", verb: "memiliki" }, set: { unit: "item", verb: "memiliki" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${l}` : `Input tidak valid: diharapkan ${i}, diterima ${l}`; } case "invalid_value": return t.values.length === 1 ? `Input tidak valid: diharapkan ${V(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Terlalu besar: diharapkan ${t.origin ?? "value"} memiliki ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: diharapkan ${t.origin ?? "value"} menjadi ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Terlalu kecil: diharapkan ${t.origin} memiliki ${i}${t.minimum.toString()} ${a.unit}` : `Terlalu kecil: diharapkan ${t.origin} menjadi ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `String tidak valid: harus dimulai dengan "${i.prefix}"` : i.format === "ends_with" ? `String tidak valid: harus berakhir dengan "${i.suffix}"` : i.format === "includes" ? `String tidak valid: harus menyertakan "${i.includes}"` : i.format === "regex" ? `String tidak valid: harus sesuai pola ${i.pattern}` : `${r[i.format] ?? t.format} tidak valid`; } case "not_multiple_of": return `Angka tidak valid: harus kelipatan dari ${t.divisor}`; case "unrecognized_keys": return `Kunci tidak dikenali ${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Kunci tidak valid di ${t.origin}`; case "invalid_union": return "Input tidak valid"; case "invalid_element": return `Nilai tidak valid di ${t.origin}`; default: return "Input tidak valid"; } }; }; function Y_() { return { localeError: H_() }; } const Q_ = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "númer", array: "fylki" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Rangt gildi: Þú slóst inn ${l} þar sem á að vera instanceof ${t.expected}` : `Rangt gildi: Þú slóst inn ${l} þar sem á að vera ${i}`; } case "invalid_value": return t.values.length === 1 ? `Rangt gildi: gert ráð fyrir ${V(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} hafi ${i}${t.maximum.toString()} ${a.unit ?? "hluti"}` : `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} sé ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Of lítið: gert er ráð fyrir að ${t.origin} hafi ${i}${t.minimum.toString()} ${a.unit}` : `Of lítið: gert er ráð fyrir að ${t.origin} sé ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ógildur strengur: verður að byrja á "${i.prefix}"` : i.format === "ends_with" ? `Ógildur strengur: verður að enda á "${i.suffix}"` : i.format === "includes" ? `Ógildur strengur: verður að innihalda "${i.includes}"` : i.format === "regex" ? `Ógildur strengur: verður að fylgja mynstri ${i.pattern}` : `Rangt ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Röng tala: verður að vera margfeldi af ${t.divisor}`; case "unrecognized_keys": return `Óþekkt ${t.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Rangur lykill í ${t.origin}`; case "invalid_union": return "Rangt gildi"; case "invalid_element": return `Rangt gildi í ${t.origin}`; default: return "Rangt gildi"; } }; }; function ey() { return { localeError: Q_() }; } const ty = () => { const e = { string: { unit: "caratteri", verb: "avere" }, file: { unit: "byte", verb: "avere" }, array: { unit: "elementi", verb: "avere" }, set: { unit: "elementi", verb: "avere" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "numero", array: "vettore" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input non valido: atteso instanceof ${t.expected}, ricevuto ${l}` : `Input non valido: atteso ${i}, ricevuto ${l}`; } case "invalid_value": return t.values.length === 1 ? `Input non valido: atteso ${V(t.values[0])}` : `Opzione non valida: atteso uno tra ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Troppo grande: ${t.origin ?? "valore"} deve avere ${i}${t.maximum.toString()} ${a.unit ?? "elementi"}` : `Troppo grande: ${t.origin ?? "valore"} deve essere ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Troppo piccolo: ${t.origin} deve avere ${i}${t.minimum.toString()} ${a.unit}` : `Troppo piccolo: ${t.origin} deve essere ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Stringa non valida: deve iniziare con "${i.prefix}"` : i.format === "ends_with" ? `Stringa non valida: deve terminare con "${i.suffix}"` : i.format === "includes" ? `Stringa non valida: deve includere "${i.includes}"` : i.format === "regex" ? `Stringa non valida: deve corrispondere al pattern ${i.pattern}` : `Input non valido: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${t.divisor}`; case "unrecognized_keys": return `Chiav${t.keys.length > 1 ? "i" : "e"} non riconosciut${t.keys.length > 1 ? "e" : "a"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Chiave non valida in ${t.origin}`; case "invalid_union": return "Input non valido"; case "invalid_element": return `Valore non valido in ${t.origin}`; default: return "Input non valido"; } }; }; function ny() { return { localeError: ty() }; } const ry = () => { const e = { string: { unit: "文字", verb: "である" }, file: { unit: "バイト", verb: "である" }, array: { unit: "要素", verb: "である" }, set: { unit: "要素", verb: "である" } }; function n(t) { return e[t] ?? null; } const r = { 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: "入力値" }, o = { nan: "NaN", number: "数値", array: "配列" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無効な入力: instanceof ${t.expected}が期待されましたが、${l}が入力されました` : `無効な入力: ${i}が期待されましたが、${l}が入力されました`; } case "invalid_value": return t.values.length === 1 ? `無効な入力: ${V(t.values[0])}が期待されました` : `無効な選択: ${w(t.values, "、")}のいずれかである必要があります`; case "too_big": { const i = t.inclusive ? "以下である" : "より小さい", a = n(t.origin); return a ? `大きすぎる値: ${t.origin ?? "値"}は${t.maximum.toString()}${a.unit ?? "要素"}${i}必要があります` : `大きすぎる値: ${t.origin ?? "値"}は${t.maximum.toString()}${i}必要があります`; } case "too_small": { const i = t.inclusive ? "以上である" : "より大きい", a = n(t.origin); return a ? `小さすぎる値: ${t.origin}は${t.minimum.toString()}${a.unit}${i}必要があります` : `小さすぎる値: ${t.origin}は${t.minimum.toString()}${i}必要があります`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `無効な文字列: "${i.prefix}"で始まる必要があります` : i.format === "ends_with" ? `無効な文字列: "${i.suffix}"で終わる必要があります` : i.format === "includes" ? `無効な文字列: "${i.includes}"を含む必要があります` : i.format === "regex" ? `無効な文字列: パターン${i.pattern}に一致する必要があります` : `無効な${r[i.format] ?? t.format}`; } case "not_multiple_of": return `無効な数値: ${t.divisor}の倍数である必要があります`; case "unrecognized_keys": return `認識されていないキー${t.keys.length > 1 ? "群" : ""}: ${w(t.keys, "、")}`; case "invalid_key": return `${t.origin}内の無効なキー`; case "invalid_union": return "無効な入力"; case "invalid_element": return `${t.origin}内の無効な値`; default: return "無効な入力"; } }; }; function iy() { return { localeError: ry() }; } const oy = () => { const e = { string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" }, file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" }, array: { unit: "ელემენტი", verb: "უნდა შეიცავდეს" }, set: { unit: "ელემენტი", verb: "უნდა შეიცავდეს" } }; function n(t) { return e[t] ?? null; } const r = { 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: "შეყვანა" }, o = { nan: "NaN", number: "რიცხვი", string: "ველი", boolean: "ბულეანი", function: "ფუნქცია", array: "მასივი" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${l}` : `არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${l}`; } case "invalid_value": return t.values.length === 1 ? `არასწორი შეყვანა: მოსალოდნელი ${V(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${w(t.values, "|")}-დან`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit}` : `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} იყოს ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `არასწორი ველი: უნდა იწყებოდეს "${i.prefix}"-ით` : i.format === "ends_with" ? `არასწორი ველი: უნდა მთავრდებოდეს "${i.suffix}"-ით` : i.format === "includes" ? `არასწორი ველი: უნდა შეიცავდეს "${i.includes}"-ს` : i.format === "regex" ? `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${i.pattern}` : `არასწორი ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`; case "unrecognized_keys": return `უცნობი გასაღებ${t.keys.length > 1 ? "ები" : "ი"}: ${w(t.keys, ", ")}`; case "invalid_key": return `არასწორი გასაღები ${t.origin}-ში`; case "invalid_union": return "არასწორი შეყვანა"; case "invalid_element": return `არასწორი მნიშვნელობა ${t.origin}-ში`; default: return "არასწორი შეყვანა"; } }; }; function ay() { return { localeError: oy() }; } const ly = () => { const e = { string: { unit: "តួអក្សរ", verb: "គួរមាន" }, file: { unit: "បៃ", verb: "គួរមាន" }, array: { unit: "ធាតុ", verb: "គួរមាន" }, set: { unit: "ធាតុ", verb: "គួរមាន" } }; function n(t) { return e[t] ?? null; } const r = { 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: "ទិន្នន័យបញ្ចូល" }, o = { nan: "NaN", number: "លេខ", array: "អារេ (Array)", null: "គ្មានតម្លៃ (null)" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${l}` : `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${l}`; } case "invalid_value": return t.values.length === 1 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${V(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()} ${a.unit ?? "ធាតុ"}` : `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()} ${a.unit}` : `តូចពេក៖ ត្រូវការ ${t.origin} ${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${i.prefix}"` : i.format === "ends_with" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${i.suffix}"` : i.format === "includes" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${i.includes}"` : i.format === "regex" ? `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${i.pattern}` : `មិនត្រឹមត្រូវ៖ ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`; case "unrecognized_keys": return `រកឃើញសោមិនស្គាល់៖ ${w(t.keys, ", ")}`; case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; case "invalid_union": return "ទិន្នន័យមិនត្រឹមត្រូវ"; case "invalid_element": return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; default: return "ទិន្នន័យមិនត្រឹមត្រូវ"; } }; }; function ws() { return { localeError: ly() }; } function uy() { return ws(); } const sy = () => { const e = { string: { unit: "문자", verb: "to have" }, file: { unit: "바이트", verb: "to have" }, array: { unit: "개", verb: "to have" }, set: { unit: "개", verb: "to have" } }; function n(t) { return e[t] ?? null; } const r = { 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: "입력" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${l}입니다` : `잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${l}입니다`; } case "invalid_value": return t.values.length === 1 ? `잘못된 입력: 값은 ${V(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${w(t.values, "또는 ")} 중 하나여야 합니다`; case "too_big": { const i = t.inclusive ? "이하" : "미만", a = i === "미만" ? "이어야 합니다" : "여야 합니다", l = n(t.origin), s = (l == null ? void 0 : l.unit) ?? "요소"; return l ? `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()}${s} ${i}${a}` : `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()} ${i}${a}`; } case "too_small": { const i = t.inclusive ? "이상" : "초과", a = i === "이상" ? "이어야 합니다" : "여야 합니다", l = n(t.origin), s = (l == null ? void 0 : l.unit) ?? "요소"; return l ? `${t.origin ?? "값"}이 너무 작습니다: ${t.minimum.toString()}${s} ${i}${a}` : `${t.origin ?? "값"}이 너무 작습니다: ${t.minimum.toString()} ${i}${a}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `잘못된 문자열: "${i.prefix}"(으)로 시작해야 합니다` : i.format === "ends_with" ? `잘못된 문자열: "${i.suffix}"(으)로 끝나야 합니다` : i.format === "includes" ? `잘못된 문자열: "${i.includes}"을(를) 포함해야 합니다` : i.format === "regex" ? `잘못된 문자열: 정규식 ${i.pattern} 패턴과 일치해야 합니다` : `잘못된 ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `잘못된 숫자: ${t.divisor}의 배수여야 합니다`; case "unrecognized_keys": return `인식할 수 없는 키: ${w(t.keys, ", ")}`; case "invalid_key": return `잘못된 키: ${t.origin}`; case "invalid_union": return "잘못된 입력"; case "invalid_element": return `잘못된 값: ${t.origin}`; default: return "잘못된 입력"; } }; }; function cy() { return { localeError: sy() }; } const kt = (e) => e.charAt(0).toUpperCase() + e.slice(1); function la(e) { const n = Math.abs(e), r = n % 10, o = n % 100; return o >= 11 && o <= 19 || r === 0 ? "many" : r === 1 ? "one" : "few"; } const dy = () => { 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 n(t, i, a, l) { const s = e[t] ?? null; return s === null ? s : { unit: s.unit[i], verb: s.verb[l][a ? "inclusive" : "notInclusive"] }; } const r = { 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" }, o = { 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 (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Gautas tipas ${l}, o tikėtasi - instanceof ${t.expected}` : `Gautas tipas ${l}, o tikėtasi - ${i}`; } case "invalid_value": return t.values.length === 1 ? `Privalo būti ${V(t.values[0])}` : `Privalo būti vienas iš ${w(t.values, "|")} pasirinkimų`; case "too_big": { const i = o[t.origin] ?? t.origin, a = n(t.origin, la(Number(t.maximum)), t.inclusive ?? !1, "smaller"); if (a != null && a.verb) return `${kt(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`; const l = t.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; return `${kt(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.maximum.toString()} ${a == null ? void 0 : a.unit}`; } case "too_small": { const i = o[t.origin] ?? t.origin, a = n(t.origin, la(Number(t.minimum)), t.inclusive ?? !1, "bigger"); if (a != null && a.verb) return `${kt(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`; const l = t.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; return `${kt(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.minimum.toString()} ${a == null ? void 0 : a.unit}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Eilutė privalo prasidėti "${i.prefix}"` : i.format === "ends_with" ? `Eilutė privalo pasibaigti "${i.suffix}"` : i.format === "includes" ? `Eilutė privalo įtraukti "${i.includes}"` : i.format === "regex" ? `Eilutė privalo atitikti ${i.pattern}` : `Neteisingas ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Skaičius privalo būti ${t.divisor} kartotinis.`; case "unrecognized_keys": return `Neatpažint${t.keys.length > 1 ? "i" : "as"} rakt${t.keys.length > 1 ? "ai" : "as"}: ${w(t.keys, ", ")}`; case "invalid_key": return "Rastas klaidingas raktas"; case "invalid_union": return "Klaidinga įvestis"; case "invalid_element": { const i = o[t.origin] ?? t.origin; return `${kt(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`; } default: return "Klaidinga įvestis"; } }; }; function my() { return { localeError: dy() }; } const fy = () => { const e = { string: { unit: "знаци", verb: "да имаат" }, file: { unit: "бајти", verb: "да имаат" }, array: { unit: "ставки", verb: "да имаат" }, set: { unit: "ставки", verb: "да имаат" } }; function n(t) { return e[t] ?? null; } const r = { 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: "внес" }, o = { nan: "NaN", number: "број", array: "низа" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Грешен внес: се очекува instanceof ${t.expected}, примено ${l}` : `Грешен внес: се очекува ${i}, примено ${l}`; } case "invalid_value": return t.values.length === 1 ? `Invalid input: expected ${V(t.values[0])}` : `Грешана опција: се очекува една ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Премногу голем: се очекува ${t.origin ?? "вредноста"} да има ${i}${t.maximum.toString()} ${a.unit ?? "елементи"}` : `Премногу голем: се очекува ${t.origin ?? "вредноста"} да биде ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Премногу мал: се очекува ${t.origin} да има ${i}${t.minimum.toString()} ${a.unit}` : `Премногу мал: се очекува ${t.origin} да биде ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Неважечка низа: мора да започнува со "${i.prefix}"` : i.format === "ends_with" ? `Неважечка низа: мора да завршува со "${i.suffix}"` : i.format === "includes" ? `Неважечка низа: мора да вклучува "${i.includes}"` : i.format === "regex" ? `Неважечка низа: мора да одгоара на патернот ${i.pattern}` : `Invalid ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Грешен број: мора да биде делив со ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Грешен клуч во ${t.origin}`; case "invalid_union": return "Грешен внес"; case "invalid_element": return `Грешна вредност во ${t.origin}`; default: return "Грешен внес"; } }; }; function py() { return { localeError: fy() }; } const vy = () => { const e = { string: { unit: "aksara", verb: "mempunyai" }, file: { unit: "bait", verb: "mempunyai" }, array: { unit: "elemen", verb: "mempunyai" }, set: { unit: "elemen", verb: "mempunyai" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "nombor" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak sah: dijangka instanceof ${t.expected}, diterima ${l}` : `Input tidak sah: dijangka ${i}, diterima ${l}`; } case "invalid_value": return t.values.length === 1 ? `Input tidak sah: dijangka ${V(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Terlalu besar: dijangka ${t.origin ?? "nilai"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: dijangka ${t.origin ?? "nilai"} adalah ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Terlalu kecil: dijangka ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Terlalu kecil: dijangka ${t.origin} adalah ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `String tidak sah: mesti bermula dengan "${i.prefix}"` : i.format === "ends_with" ? `String tidak sah: mesti berakhir dengan "${i.suffix}"` : i.format === "includes" ? `String tidak sah: mesti mengandungi "${i.includes}"` : i.format === "regex" ? `String tidak sah: mesti sepadan dengan corak ${i.pattern}` : `${r[i.format] ?? t.format} tidak sah`; } case "not_multiple_of": return `Nombor tidak sah: perlu gandaan ${t.divisor}`; case "unrecognized_keys": return `Kunci tidak dikenali: ${w(t.keys, ", ")}`; case "invalid_key": return `Kunci tidak sah dalam ${t.origin}`; case "invalid_union": return "Input tidak sah"; case "invalid_element": return `Nilai tidak sah dalam ${t.origin}`; default: return "Input tidak sah"; } }; }; function gy() { return { localeError: vy() }; } const hy = () => { const e = { string: { unit: "tekens", verb: "heeft" }, file: { unit: "bytes", verb: "heeft" }, array: { unit: "elementen", verb: "heeft" }, set: { unit: "elementen", verb: "heeft" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "getal" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${l}` : `Ongeldige invoer: verwacht ${i}, ontving ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ongeldige invoer: verwacht ${V(t.values[0])}` : `Ongeldige optie: verwacht één van ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = t.origin === "date" ? "laat" : t.origin === "string" ? "lang" : "groot"; return a ? `Te ${l}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} ${a.unit ?? "elementen"} ${a.verb}` : `Te ${l}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} is`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin), l = t.origin === "date" ? "vroeg" : t.origin === "string" ? "kort" : "klein"; return a ? `Te ${l}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Te ${l}: verwacht dat ${t.origin} ${i}${t.minimum.toString()} is`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ongeldige tekst: moet met "${i.prefix}" beginnen` : i.format === "ends_with" ? `Ongeldige tekst: moet op "${i.suffix}" eindigen` : i.format === "includes" ? `Ongeldige tekst: moet "${i.includes}" bevatten` : i.format === "regex" ? `Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}` : `Ongeldig: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`; case "unrecognized_keys": return `Onbekende key${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ongeldige key in ${t.origin}`; case "invalid_union": return "Ongeldige invoer"; case "invalid_element": return `Ongeldige waarde in ${t.origin}`; default: return "Ongeldige invoer"; } }; }; function by() { return { localeError: hy() }; } const $y = () => { const e = { string: { unit: "tegn", verb: "å ha" }, file: { unit: "bytes", verb: "å ha" }, array: { unit: "elementer", verb: "å inneholde" }, set: { unit: "elementer", verb: "å inneholde" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "tall", array: "liste" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldig input: forventet instanceof ${t.expected}, fikk ${l}` : `Ugyldig input: forventet ${i}, fikk ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ugyldig verdi: forventet ${V(t.values[0])}` : `Ugyldig valg: forventet en av ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()} ${a.unit}` : `For lite(n): forventet ${t.origin} til å ha ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ugyldig streng: må starte med "${i.prefix}"` : i.format === "ends_with" ? `Ugyldig streng: må ende med "${i.suffix}"` : i.format === "includes" ? `Ugyldig streng: må inneholde "${i.includes}"` : i.format === "regex" ? `Ugyldig streng: må matche mønsteret ${i.pattern}` : `Ugyldig ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ugyldig tall: må være et multiplum av ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ugyldig nøkkel i ${t.origin}`; case "invalid_union": return "Ugyldig input"; case "invalid_element": return `Ugyldig verdi i ${t.origin}`; default: return "Ugyldig input"; } }; }; function _y() { return { localeError: $y() }; } const yy = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "numara", array: "saf", null: "gayb" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Fâsit giren: umulan instanceof ${t.expected}, alınan ${l}` : `Fâsit giren: umulan ${i}, alınan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Fâsit giren: umulan ${V(t.values[0])}` : `Fâsit tercih: mûteberler ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} ${a.unit ?? "elements"} sahip olmalıydı.` : `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} olmalıydı.`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} ${a.unit} sahip olmalıydı.` : `Fazla küçük: ${t.origin}, ${i}${t.minimum.toString()} olmalıydı.`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Fâsit metin: "${i.prefix}" ile başlamalı.` : i.format === "ends_with" ? `Fâsit metin: "${i.suffix}" ile bitmeli.` : i.format === "includes" ? `Fâsit metin: "${i.includes}" ihtivâ etmeli.` : i.format === "regex" ? `Fâsit metin: ${i.pattern} nakşına uymalı.` : `Fâsit ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Fâsit sayı: ${t.divisor} katı olmalıydı.`; case "unrecognized_keys": return `Tanınmayan anahtar ${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} için tanınmayan anahtar var.`; case "invalid_union": return "Giren tanınamadı."; case "invalid_element": return `${t.origin} için tanınmayan kıymet var.`; default: return "Kıymet tanınamadı."; } }; }; function ky() { return { localeError: yy() }; } const Sy = () => { const e = { string: { unit: "توکي", verb: "ولري" }, file: { unit: "بایټس", verb: "ولري" }, array: { unit: "توکي", verb: "ولري" }, set: { unit: "توکي", verb: "ولري" } }; function n(t) { return e[t] ?? null; } const r = { 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: "ورودي" }, o = { nan: "NaN", number: "عدد", array: "ارې" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${l} ترلاسه شو` : `ناسم ورودي: باید ${i} وای, مګر ${l} ترلاسه شو`; } case "invalid_value": return t.values.length === 1 ? `ناسم ورودي: باید ${V(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${w(t.values, "|")} څخه وای`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصرونه"} ولري` : `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} وي`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} ${a.unit} ولري` : `ډیر کوچنی: ${t.origin} باید ${i}${t.minimum.toString()} وي`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `ناسم متن: باید د "${i.prefix}" سره پیل شي` : i.format === "ends_with" ? `ناسم متن: باید د "${i.suffix}" سره پای ته ورسيږي` : i.format === "includes" ? `ناسم متن: باید "${i.includes}" ولري` : i.format === "regex" ? `ناسم متن: باید د ${i.pattern} سره مطابقت ولري` : `${r[i.format] ?? t.format} ناسم دی`; } case "not_multiple_of": return `ناسم عدد: باید د ${t.divisor} مضرب وي`; case "unrecognized_keys": return `ناسم ${t.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `ناسم کلیډ په ${t.origin} کې`; case "invalid_union": return "ناسمه ورودي"; case "invalid_element": return `ناسم عنصر په ${t.origin} کې`; default: return "ناسمه ورودي"; } }; }; function wy() { return { localeError: Sy() }; } const Iy = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "liczba", array: "tablica" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${l}` : `Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${l}`; } case "invalid_value": return t.values.length === 1 ? `Nieprawidłowe dane wejściowe: oczekiwano ${V(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Za duża wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.maximum.toString()} ${a.unit ?? "elementów"}` : `Zbyt duż(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Za mała wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.minimum.toString()} ${a.unit ?? "elementów"}` : `Zbyt mał(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Nieprawidłowy ciąg znaków: musi zaczynać się od "${i.prefix}"` : i.format === "ends_with" ? `Nieprawidłowy ciąg znaków: musi kończyć się na "${i.suffix}"` : i.format === "includes" ? `Nieprawidłowy ciąg znaków: musi zawierać "${i.includes}"` : i.format === "regex" ? `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${i.pattern}` : `Nieprawidłow(y/a/e) ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`; case "unrecognized_keys": return `Nierozpoznane klucze${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Nieprawidłowy klucz w ${t.origin}`; case "invalid_union": return "Nieprawidłowe dane wejściowe"; case "invalid_element": return `Nieprawidłowa wartość w ${t.origin}`; default: return "Nieprawidłowe dane wejściowe"; } }; }; function zy() { return { localeError: Iy() }; } const Dy = () => { const e = { string: { unit: "caracteres", verb: "ter" }, file: { unit: "bytes", verb: "ter" }, array: { unit: "itens", verb: "ter" }, set: { unit: "itens", verb: "ter" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "número", null: "nulo" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipo inválido: esperado instanceof ${t.expected}, recebido ${l}` : `Tipo inválido: esperado ${i}, recebido ${l}`; } case "invalid_value": return t.values.length === 1 ? `Entrada inválida: esperado ${V(t.values[0])}` : `Opção inválida: esperada uma das ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Muito grande: esperado que ${t.origin ?? "valor"} tivesse ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Muito grande: esperado que ${t.origin ?? "valor"} fosse ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Muito pequeno: esperado que ${t.origin} tivesse ${i}${t.minimum.toString()} ${a.unit}` : `Muito pequeno: esperado que ${t.origin} fosse ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Texto inválido: deve começar com "${i.prefix}"` : i.format === "ends_with" ? `Texto inválido: deve terminar com "${i.suffix}"` : i.format === "includes" ? `Texto inválido: deve incluir "${i.includes}"` : i.format === "regex" ? `Texto inválido: deve corresponder ao padrão ${i.pattern}` : `${r[i.format] ?? t.format} inválido`; } case "not_multiple_of": return `Número inválido: deve ser múltiplo de ${t.divisor}`; case "unrecognized_keys": return `Chave${t.keys.length > 1 ? "s" : ""} desconhecida${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Chave inválida em ${t.origin}`; case "invalid_union": return "Entrada inválida"; case "invalid_element": return `Valor inválido em ${t.origin}`; default: return "Campo inválido"; } }; }; function jy() { return { localeError: Dy() }; } const Oy = () => { const e = { string: { unit: "caractere", verb: "să aibă" }, file: { unit: "octeți", verb: "să aibă" }, array: { unit: "elemente", verb: "să aibă" }, set: { unit: "elemente", verb: "să aibă" }, map: { unit: "intrări", verb: "să aibă" } }; function n(t) { return e[t] ?? null; } const r = { regex: "intrare", email: "adresă de 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: "dată și oră ISO", date: "dată ISO", time: "oră ISO", duration: "durată ISO", ipv4: "adresă IPv4", ipv6: "adresă IPv6", mac: "adresă MAC", cidrv4: "interval IPv4", cidrv6: "interval IPv6", base64: "șir codat base64", base64url: "șir codat base64url", json_string: "șir JSON", e164: "număr E.164", jwt: "JWT", template_literal: "intrare" }, o = { nan: "NaN", string: "șir", number: "număr", boolean: "boolean", function: "funcție", array: "matrice", object: "obiect", undefined: "nedefinit", symbol: "simbol", bigint: "număr mare", void: "void", never: "never", map: "hartă", set: "set" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return `Intrare invalidă: așteptat ${i}, primit ${l}`; } case "invalid_value": return t.values.length === 1 ? `Intrare invalidă: așteptat ${V(t.values[0])}` : `Opțiune invalidă: așteptat una dintre ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Prea mare: așteptat ca ${t.origin ?? "valoarea"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemente"}` : `Prea mare: așteptat ca ${t.origin ?? "valoarea"} să fie ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Prea mic: așteptat ca ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Prea mic: așteptat ca ${t.origin} să fie ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Șir invalid: trebuie să înceapă cu "${i.prefix}"` : i.format === "ends_with" ? `Șir invalid: trebuie să se termine cu "${i.suffix}"` : i.format === "includes" ? `Șir invalid: trebuie să includă "${i.includes}"` : i.format === "regex" ? `Șir invalid: trebuie să se potrivească cu modelul ${i.pattern}` : `Format invalid: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Număr invalid: trebuie să fie multiplu de ${t.divisor}`; case "unrecognized_keys": return `Chei nerecunoscute: ${w(t.keys, ", ")}`; case "invalid_key": return `Cheie invalidă în ${t.origin}`; case "invalid_union": return "Intrare invalidă"; case "invalid_element": return `Valoare invalidă în ${t.origin}`; default: return "Intrare invalidă"; } }; }; function Ey() { return { localeError: Oy() }; } function ua(e, n, r, o) { const t = Math.abs(e), i = t % 10, a = t % 100; return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o; } const xy = () => { 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 n(t) { return e[t] ?? null; } const r = { 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: "ввод" }, o = { nan: "NaN", number: "число", array: "массив" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неверный ввод: ожидалось instanceof ${t.expected}, получено ${l}` : `Неверный ввод: ожидалось ${i}, получено ${l}`; } case "invalid_value": return t.values.length === 1 ? `Неверный ввод: ожидалось ${V(t.values[0])}` : `Неверный вариант: ожидалось одно из ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { const l = Number(t.maximum), s = ua(l, a.unit.one, a.unit.few, a.unit.many); return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет иметь ${i}${t.maximum.toString()} ${s}`; } return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { const l = Number(t.minimum), s = ua(l, a.unit.one, a.unit.few, a.unit.many); return `Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${i}${t.minimum.toString()} ${s}`; } return `Слишком маленькое значение: ожидалось, что ${t.origin} будет ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Неверная строка: должна начинаться с "${i.prefix}"` : i.format === "ends_with" ? `Неверная строка: должна заканчиваться на "${i.suffix}"` : i.format === "includes" ? `Неверная строка: должна содержать "${i.includes}"` : i.format === "regex" ? `Неверная строка: должна соответствовать шаблону ${i.pattern}` : `Неверный ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Неверное число: должно быть кратным ${t.divisor}`; case "unrecognized_keys": return `Нераспознанн${t.keys.length > 1 ? "ые" : "ый"} ключ${t.keys.length > 1 ? "и" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Неверный ключ в ${t.origin}`; case "invalid_union": return "Неверные входные данные"; case "invalid_element": return `Неверное значение в ${t.origin}`; default: return "Неверные входные данные"; } }; }; function Uy() { return { localeError: xy() }; } const Ty = () => { const e = { string: { unit: "znakov", verb: "imeti" }, file: { unit: "bajtov", verb: "imeti" }, array: { unit: "elementov", verb: "imeti" }, set: { unit: "elementov", verb: "imeti" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "število", array: "tabela" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${l}` : `Neveljaven vnos: pričakovano ${i}, prejeto ${l}`; } case "invalid_value": return t.values.length === 1 ? `Neveljaven vnos: pričakovano ${V(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} imelo ${i}${t.maximum.toString()} ${a.unit ?? "elementov"}` : `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Premajhno: pričakovano, da bo ${t.origin} imelo ${i}${t.minimum.toString()} ${a.unit}` : `Premajhno: pričakovano, da bo ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Neveljaven niz: mora se začeti z "${i.prefix}"` : i.format === "ends_with" ? `Neveljaven niz: mora se končati z "${i.suffix}"` : i.format === "includes" ? `Neveljaven niz: mora vsebovati "${i.includes}"` : i.format === "regex" ? `Neveljaven niz: mora ustrezati vzorcu ${i.pattern}` : `Neveljaven ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Neveljavno število: mora biti večkratnik ${t.divisor}`; case "unrecognized_keys": return `Neprepoznan${t.keys.length > 1 ? "i ključi" : " ključ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Neveljaven ključ v ${t.origin}`; case "invalid_union": return "Neveljaven vnos"; case "invalid_element": return `Neveljavna vrednost v ${t.origin}`; default: return "Neveljaven vnos"; } }; }; function Ny() { return { localeError: Ty() }; } const Py = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "antal", array: "lista" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${l}` : `Ogiltig inmatning: förväntat ${i}, fick ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ogiltig inmatning: förväntat ${V(t.values[0])}` : `Ogiltigt val: förväntade en av ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `För stor(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `För stor(t): förväntat ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `För lite(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.minimum.toString()} ${a.unit}` : `För lite(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ogiltig sträng: måste börja med "${i.prefix}"` : i.format === "ends_with" ? `Ogiltig sträng: måste sluta med "${i.suffix}"` : i.format === "includes" ? `Ogiltig sträng: måste innehålla "${i.includes}"` : i.format === "regex" ? `Ogiltig sträng: måste matcha mönstret "${i.pattern}"` : `Ogiltig(t) ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Ogiltigt tal: måste vara en multipel av ${t.divisor}`; case "unrecognized_keys": return `${t.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ogiltig nyckel i ${t.origin ?? "värdet"}`; case "invalid_union": return "Ogiltig input"; case "invalid_element": return `Ogiltigt värde i ${t.origin ?? "värdet"}`; default: return "Ogiltig input"; } }; }; function Ay() { return { localeError: Py() }; } const Cy = () => { const e = { string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" }, file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" }, array: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" }, set: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "எண்", array: "அணி", null: "வெறுமை" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${l}` : `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${l}`; } case "invalid_value": return t.values.length === 1 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${V(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${w(t.values, "|")} இல் ஒன்று`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ${a.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்` : `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ஆக இருக்க வேண்டும்`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்` : `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${i}${t.minimum.toString()} ஆக இருக்க வேண்டும்`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `தவறான சரம்: "${i.prefix}" இல் தொடங்க வேண்டும்` : i.format === "ends_with" ? `தவறான சரம்: "${i.suffix}" இல் முடிவடைய வேண்டும்` : i.format === "includes" ? `தவறான சரம்: "${i.includes}" ஐ உள்ளடக்க வேண்டும்` : i.format === "regex" ? `தவறான சரம்: ${i.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்` : `தவறான ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`; case "unrecognized_keys": return `அடையாளம் தெரியாத விசை${t.keys.length > 1 ? "கள்" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} இல் தவறான விசை`; case "invalid_union": return "தவறான உள்ளீடு"; case "invalid_element": return `${t.origin} இல் தவறான மதிப்பு`; default: return "தவறான உள்ளீடு"; } }; }; function Zy() { return { localeError: Cy() }; } const My = () => { const e = { string: { unit: "ตัวอักษร", verb: "ควรมี" }, file: { unit: "ไบต์", verb: "ควรมี" }, array: { unit: "รายการ", verb: "ควรมี" }, set: { unit: "รายการ", verb: "ควรมี" } }; function n(t) { return e[t] ?? null; } const r = { 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: "ข้อมูลที่ป้อน" }, o = { nan: "NaN", number: "ตัวเลข", array: "อาร์เรย์ (Array)", null: "ไม่มีค่า (null)" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${l}` : `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${l}`; } case "invalid_value": return t.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${V(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "ไม่เกิน" : "น้อยกว่า", a = n(t.origin); return a ? `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()} ${a.unit ?? "รายการ"}` : `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? "อย่างน้อย" : "มากกว่า", a = n(t.origin); return a ? `น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()} ${a.unit}` : `น้อยกว่ากำหนด: ${t.origin} ควรมี${i} ${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${i.prefix}"` : i.format === "ends_with" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${i.suffix}"` : i.format === "includes" ? `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${i.includes}" อยู่ในข้อความ` : i.format === "regex" ? `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${i.pattern}` : `รูปแบบไม่ถูกต้อง: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`; case "unrecognized_keys": return `พบคีย์ที่ไม่รู้จัก: ${w(t.keys, ", ")}`; case "invalid_key": return `คีย์ไม่ถูกต้องใน ${t.origin}`; case "invalid_union": return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้"; case "invalid_element": return `ข้อมูลไม่ถูกต้องใน ${t.origin}`; default: return "ข้อมูลไม่ถูกต้อง"; } }; }; function Ly() { return { localeError: My() }; } const Fy = () => { const e = { string: { unit: "karakter", verb: "olmalı" }, file: { unit: "bayt", verb: "olmalı" }, array: { unit: "öğe", verb: "olmalı" }, set: { unit: "öğe", verb: "olmalı" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${l}` : `Geçersiz değer: beklenen ${i}, alınan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Geçersiz değer: beklenen ${V(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()} ${a.unit ?? "öğe"}` : `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `Çok küçük: beklenen ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Geçersiz metin: "${i.prefix}" ile başlamalı` : i.format === "ends_with" ? `Geçersiz metin: "${i.suffix}" ile bitmeli` : i.format === "includes" ? `Geçersiz metin: "${i.includes}" içermeli` : i.format === "regex" ? `Geçersiz metin: ${i.pattern} desenine uymalı` : `Geçersiz ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`; case "unrecognized_keys": return `Tanınmayan anahtar${t.keys.length > 1 ? "lar" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} içinde geçersiz anahtar`; case "invalid_union": return "Geçersiz değer"; case "invalid_element": return `${t.origin} içinde geçersiz değer`; default: return "Geçersiz değer"; } }; }; function Ry() { return { localeError: Fy() }; } const By = () => { const e = { string: { unit: "символів", verb: "матиме" }, file: { unit: "байтів", verb: "матиме" }, array: { unit: "елементів", verb: "матиме" }, set: { unit: "елементів", verb: "матиме" } }; function n(t) { return e[t] ?? null; } const r = { 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: "вхідні дані" }, o = { nan: "NaN", number: "число", array: "масив" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${l}` : `Неправильні вхідні дані: очікується ${i}, отримано ${l}`; } case "invalid_value": return t.values.length === 1 ? `Неправильні вхідні дані: очікується ${V(t.values[0])}` : `Неправильна опція: очікується одне з ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Занадто велике: очікується, що ${t.origin ?? "значення"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "елементів"}` : `Занадто велике: очікується, що ${t.origin ?? "значення"} буде ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Занадто мале: очікується, що ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Занадто мале: очікується, що ${t.origin} буде ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Неправильний рядок: повинен починатися з "${i.prefix}"` : i.format === "ends_with" ? `Неправильний рядок: повинен закінчуватися на "${i.suffix}"` : i.format === "includes" ? `Неправильний рядок: повинен містити "${i.includes}"` : i.format === "regex" ? `Неправильний рядок: повинен відповідати шаблону ${i.pattern}` : `Неправильний ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Неправильне число: повинно бути кратним ${t.divisor}`; case "unrecognized_keys": return `Нерозпізнаний ключ${t.keys.length > 1 ? "і" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Неправильний ключ у ${t.origin}`; case "invalid_union": return "Неправильні вхідні дані"; case "invalid_element": return `Неправильне значення у ${t.origin}`; default: return "Неправильні вхідні дані"; } }; }; function Is() { return { localeError: By() }; } function Vy() { return Is(); } const Jy = () => { const e = { string: { unit: "حروف", verb: "ہونا" }, file: { unit: "بائٹس", verb: "ہونا" }, array: { unit: "آئٹمز", verb: "ہونا" }, set: { unit: "آئٹمز", verb: "ہونا" } }; function n(t) { return e[t] ?? null; } const r = { 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: "ان پٹ" }, o = { nan: "NaN", number: "نمبر", array: "آرے", null: "نل" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${l} موصول ہوا` : `غلط ان پٹ: ${i} متوقع تھا، ${l} موصول ہوا`; } case "invalid_value": return t.values.length === 1 ? `غلط ان پٹ: ${V(t.values[0])} متوقع تھا` : `غلط آپشن: ${w(t.values, "|")} میں سے ایک متوقع تھا`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `بہت بڑا: ${t.origin ?? "ویلیو"} کے ${i}${t.maximum.toString()} ${a.unit ?? "عناصر"} ہونے متوقع تھے` : `بہت بڑا: ${t.origin ?? "ویلیو"} کا ${i}${t.maximum.toString()} ہونا متوقع تھا`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `بہت چھوٹا: ${t.origin} کے ${i}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے` : `بہت چھوٹا: ${t.origin} کا ${i}${t.minimum.toString()} ہونا متوقع تھا`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `غلط سٹرنگ: "${i.prefix}" سے شروع ہونا چاہیے` : i.format === "ends_with" ? `غلط سٹرنگ: "${i.suffix}" پر ختم ہونا چاہیے` : i.format === "includes" ? `غلط سٹرنگ: "${i.includes}" شامل ہونا چاہیے` : i.format === "regex" ? `غلط سٹرنگ: پیٹرن ${i.pattern} سے میچ ہونا چاہیے` : `غلط ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`; case "unrecognized_keys": return `غیر تسلیم شدہ کی${t.keys.length > 1 ? "ز" : ""}: ${w(t.keys, "، ")}`; case "invalid_key": return `${t.origin} میں غلط کی`; case "invalid_union": return "غلط ان پٹ"; case "invalid_element": return `${t.origin} میں غلط ویلیو`; default: return "غلط ان پٹ"; } }; }; function qy() { return { localeError: Jy() }; } const Gy = () => { 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" }, map: { unit: "yozuv", verb: "bo‘lishi kerak" } }; function n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "raqam", array: "massiv" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${l}` : `Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${l}`; } case "invalid_value": return t.values.length === 1 ? `Noto‘g‘ri kirish: kutilgan ${V(t.values[0])}` : `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()} ${a.unit} ${a.verb}` : `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()} ${a.unit} ${a.verb}` : `Juda kichik: kutilgan ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Noto‘g‘ri satr: "${i.prefix}" bilan boshlanishi kerak` : i.format === "ends_with" ? `Noto‘g‘ri satr: "${i.suffix}" bilan tugashi kerak` : i.format === "includes" ? `Noto‘g‘ri satr: "${i.includes}" ni o‘z ichiga olishi kerak` : i.format === "regex" ? `Noto‘g‘ri satr: ${i.pattern} shabloniga mos kelishi kerak` : `Noto‘g‘ri ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`; case "unrecognized_keys": return `Noma’lum kalit${t.keys.length > 1 ? "lar" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} dagi kalit noto‘g‘ri`; case "invalid_union": return "Noto‘g‘ri kirish"; case "invalid_element": return `${t.origin} da noto‘g‘ri qiymat`; default: return "Noto‘g‘ri kirish"; } }; }; function Ky() { return { localeError: Gy() }; } const Wy = () => { 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 n(t) { return e[t] ?? null; } const r = { 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" }, o = { nan: "NaN", number: "số", array: "mảng" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${l}` : `Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${l}`; } case "invalid_value": return t.values.length === 1 ? `Đầu vào không hợp lệ: mong đợi ${V(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "phần tử"}` : `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${i}${t.minimum.toString()} ${a.unit}` : `Quá nhỏ: mong đợi ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Chuỗi không hợp lệ: phải bắt đầu bằng "${i.prefix}"` : i.format === "ends_with" ? `Chuỗi không hợp lệ: phải kết thúc bằng "${i.suffix}"` : i.format === "includes" ? `Chuỗi không hợp lệ: phải bao gồm "${i.includes}"` : i.format === "regex" ? `Chuỗi không hợp lệ: phải khớp với mẫu ${i.pattern}` : `${r[i.format] ?? t.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 ${t.divisor}`; case "unrecognized_keys": return `Khóa không được nhận dạng: ${w(t.keys, ", ")}`; case "invalid_key": return `Khóa không hợp lệ trong ${t.origin}`; case "invalid_union": return "Đầu vào không hợp lệ"; case "invalid_element": return `Giá trị không hợp lệ trong ${t.origin}`; default: return "Đầu vào không hợp lệ"; } }; }; function Xy() { return { localeError: Wy() }; } const Hy = () => { const e = { string: { unit: "字符", verb: "包含" }, file: { unit: "字节", verb: "包含" }, array: { unit: "项", verb: "包含" }, set: { unit: "项", verb: "包含" } }; function n(t) { return e[t] ?? null; } const r = { 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: "输入" }, o = { nan: "NaN", number: "数字", array: "数组", null: "空值(null)" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `无效输入:期望 instanceof ${t.expected},实际接收 ${l}` : `无效输入:期望 ${i},实际接收 ${l}`; } case "invalid_value": return t.values.length === 1 ? `无效输入:期望 ${V(t.values[0])}` : `无效选项:期望以下之一 ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()} ${a.unit ?? "个元素"}` : `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `数值过小:期望 ${t.origin} ${i}${t.minimum.toString()} ${a.unit}` : `数值过小:期望 ${t.origin} ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `无效字符串:必须以 "${i.prefix}" 开头` : i.format === "ends_with" ? `无效字符串:必须以 "${i.suffix}" 结尾` : i.format === "includes" ? `无效字符串:必须包含 "${i.includes}"` : i.format === "regex" ? `无效字符串:必须满足正则表达式 ${i.pattern}` : `无效${r[i.format] ?? t.format}`; } case "not_multiple_of": return `无效数字:必须是 ${t.divisor} 的倍数`; case "unrecognized_keys": return `出现未知的键(key): ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} 中的键(key)无效`; case "invalid_union": return "无效输入"; case "invalid_element": return `${t.origin} 中包含无效值(value)`; default: return "无效输入"; } }; }; function Yy() { return { localeError: Hy() }; } const Qy = () => { const e = { string: { unit: "字元", verb: "擁有" }, file: { unit: "位元組", verb: "擁有" }, array: { unit: "項目", verb: "擁有" }, set: { unit: "項目", verb: "擁有" } }; function n(t) { return e[t] ?? null; } const r = { 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: "輸入" }, o = { nan: "NaN" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無效的輸入值:預期為 instanceof ${t.expected},但收到 ${l}` : `無效的輸入值:預期為 ${i},但收到 ${l}`; } case "invalid_value": return t.values.length === 1 ? `無效的輸入值:預期為 ${V(t.values[0])}` : `無效的選項:預期為以下其中之一 ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()} ${a.unit ?? "個元素"}` : `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()} ${a.unit}` : `數值過小:預期 ${t.origin} 應為 ${i}${t.minimum.toString()}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `無效的字串:必須以 "${i.prefix}" 開頭` : i.format === "ends_with" ? `無效的字串:必須以 "${i.suffix}" 結尾` : i.format === "includes" ? `無效的字串:必須包含 "${i.includes}"` : i.format === "regex" ? `無效的字串:必須符合格式 ${i.pattern}` : `無效的 ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `無效的數字:必須為 ${t.divisor} 的倍數`; case "unrecognized_keys": return `無法識別的鍵值${t.keys.length > 1 ? "們" : ""}:${w(t.keys, "、")}`; case "invalid_key": return `${t.origin} 中有無效的鍵值`; case "invalid_union": return "無效的輸入值"; case "invalid_element": return `${t.origin} 中有無效的值`; default: return "無效的輸入值"; } }; }; function ek() { return { localeError: Qy() }; } const tk = () => { const e = { string: { unit: "àmi", verb: "ní" }, file: { unit: "bytes", verb: "ní" }, array: { unit: "nkan", verb: "ní" }, set: { unit: "nkan", verb: "ní" } }; function n(t) { return e[t] ?? null; } const r = { 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é" }, o = { nan: "NaN", number: "nọ́mbà", array: "akopọ" }; return (t) => { switch (t.code) { case "invalid_type": { const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${l}` : `Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${l}`; } case "invalid_value": return t.values.length === 1 ? `Ìbáwọlé aṣìṣe: a ní láti fi ${V(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin ?? "iye"} ${a.verb} ${i}${t.maximum} ${a.unit}` : `Tó pọ̀ jù: a ní láti jẹ́ ${i}${t.maximum}`; } case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); return a ? `Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${i}${t.minimum} ${a.unit}` : `Kéré ju: a ní láti jẹ́ ${i}${t.minimum}`; } case "invalid_format": { const i = t; return i.format === "starts_with" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${i.prefix}"` : i.format === "ends_with" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${i.suffix}"` : i.format === "includes" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${i.includes}"` : i.format === "regex" ? `Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${i.pattern}` : `Aṣìṣe: ${r[i.format] ?? t.format}`; } case "not_multiple_of": return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`; case "unrecognized_keys": return `Bọtìnì àìmọ̀: ${w(t.keys, ", ")}`; case "invalid_key": return `Bọtìnì aṣìṣe nínú ${t.origin}`; case "invalid_union": return "Ìbáwọlé aṣìṣe"; case "invalid_element": return `Iye aṣìṣe nínú ${t.origin}`; default: return "Ìbáwọlé aṣìṣe"; } }; }; function nk() { return { localeError: tk() }; } const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ar: f_, az: v_, be: h_, bg: $_, ca: y_, cs: S_, da: I_, de: D_, el: O_, en: Ss, eo: U_, es: N_, fa: A_, fi: Z_, fr: L_, frCA: R_, he: V_, hr: q_, hu: K_, hy: X_, id: Y_, is: ey, it: ny, ja: iy, ka: ay, kh: uy, km: ws, ko: cy, lt: my, mk: py, ms: gy, nl: by, no: _y, ota: ky, pl: zy, ps: wy, pt: jy, ro: Ey, ru: Uy, sl: Ny, sv: Ay, ta: Zy, th: Ly, tr: Ry, ua: Vy, uk: Is, ur: qy, uz: Ky, vi: Xy, yo: nk, zhCN: Yy, zhTW: ek }, Symbol.toStringTag, { value: "Module" })); var sa; const Ds = Symbol("ZodOutput"), js = Symbol("ZodInput"); class Os { constructor() { this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(); } add(n, ...r) { const o = r[0]; return this._map.set(n, o), o && typeof o == "object" && "id" in o && this._idmap.set(o.id, n), this; } clear() { return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this; } remove(n) { const r = this._map.get(n); return r && typeof r == "object" && "id" in r && this._idmap.delete(r.id), this._map.delete(n), this; } get(n) { const r = n._zod.parent; if (r) { const o = { ...this.get(r) ?? {} }; delete o.id; const t = { ...o, ...this._map.get(n) }; return Object.keys(t).length ? t : void 0; } return this._map.get(n); } has(n) { return this._map.has(n); } } function Qr() { return new Os(); } (sa = globalThis).__zod_globalRegistry ?? (sa.__zod_globalRegistry = Qr()); const Ne = globalThis.__zod_globalRegistry; // @__NO_SIDE_EFFECTS__ function Es(e, n) { return new e({ type: "string", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function xs(e, n) { return new e({ type: "string", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ei(e, n) { return new e({ type: "string", format: "email", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function gn(e, n) { return new e({ type: "string", format: "guid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ti(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ni(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v4", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ri(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v6", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ii(e, n) { return new e({ type: "string", format: "uuid", check: "string_format", abort: !1, version: "v7", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function zn(e, n) { return new e({ type: "string", format: "url", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function oi(e, n) { return new e({ type: "string", format: "emoji", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ai(e, n) { return new e({ type: "string", format: "nanoid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function li(e, n) { return new e({ type: "string", format: "cuid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ui(e, n) { return new e({ type: "string", format: "cuid2", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function si(e, n) { return new e({ type: "string", format: "ulid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ci(e, n) { return new e({ type: "string", format: "xid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function di(e, n) { return new e({ type: "string", format: "ksuid", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function mi(e, n) { return new e({ type: "string", format: "ipv4", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function fi(e, n) { return new e({ type: "string", format: "ipv6", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Us(e, n) { return new e({ type: "string", format: "mac", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function pi(e, n) { return new e({ type: "string", format: "cidrv4", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function vi(e, n) { return new e({ type: "string", format: "cidrv6", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function gi(e, n) { return new e({ type: "string", format: "base64", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function hi(e, n) { return new e({ type: "string", format: "base64url", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function bi(e, n) { return new e({ type: "string", format: "e164", check: "string_format", abort: !1, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function $i(e, n) { return new e({ type: "string", format: "jwt", check: "string_format", abort: !1, ..._(n) }); } const Ts = { Any: null, Minute: -1, Second: 0, Millisecond: 3, Microsecond: 6 }; // @__NO_SIDE_EFFECTS__ function Ns(e, n) { return new e({ type: "string", format: "datetime", check: "string_format", offset: !1, local: !1, precision: null, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ps(e, n) { return new e({ type: "string", format: "date", check: "string_format", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function As(e, n) { return new e({ type: "string", format: "time", check: "string_format", precision: null, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Cs(e, n) { return new e({ type: "string", format: "duration", check: "string_format", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Zs(e, n) { return new e({ type: "number", checks: [], ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ms(e, n) { return new e({ type: "number", coerce: !0, checks: [], ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ls(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "safeint", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Fs(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float32", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Rs(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "float64", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Bs(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "int32", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Vs(e, n) { return new e({ type: "number", check: "number_format", abort: !1, format: "uint32", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Js(e, n) { return new e({ type: "boolean", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function qs(e, n) { return new e({ type: "boolean", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Gs(e, n) { return new e({ type: "bigint", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ks(e, n) { return new e({ type: "bigint", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ws(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "int64", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Xs(e, n) { return new e({ type: "bigint", check: "bigint_format", abort: !1, format: "uint64", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Hs(e, n) { return new e({ type: "symbol", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ys(e, n) { return new e({ type: "undefined", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Qs(e, n) { return new e({ type: "null", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ec(e) { return new e({ type: "any" }); } // @__NO_SIDE_EFFECTS__ function tc(e) { return new e({ type: "unknown" }); } // @__NO_SIDE_EFFECTS__ function nc(e, n) { return new e({ type: "never", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function rc(e, n) { return new e({ type: "void", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ic(e, n) { return new e({ type: "date", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function oc(e, n) { return new e({ type: "date", coerce: !0, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ac(e, n) { return new e({ type: "nan", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function qe(e, n) { return new Br({ check: "less_than", ..._(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function Pe(e, n) { return new Br({ check: "less_than", ..._(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function Ge(e, n) { return new Vr({ check: "greater_than", ..._(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ function De(e, n) { return new Vr({ check: "greater_than", ..._(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function _i(e) { return /* @__PURE__ */ Ge(0, e); } // @__NO_SIDE_EFFECTS__ function yi(e) { return /* @__PURE__ */ qe(0, e); } // @__NO_SIDE_EFFECTS__ function ki(e) { return /* @__PURE__ */ Pe(0, e); } // @__NO_SIDE_EFFECTS__ function Si(e) { return /* @__PURE__ */ De(0, e); } // @__NO_SIDE_EFFECTS__ function ft(e, n) { return new Vl({ check: "multiple_of", ..._(n), value: e }); } // @__NO_SIDE_EFFECTS__ function $t(e, n) { return new Gl({ check: "max_size", ..._(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function Ke(e, n) { return new Kl({ check: "min_size", ..._(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function Lt(e, n) { return new Wl({ check: "size_equals", ..._(n), size: e }); } // @__NO_SIDE_EFFECTS__ function Ft(e, n) { return new Xl({ check: "max_length", ..._(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ function nt(e, n) { return new Hl({ check: "min_length", ..._(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ function Rt(e, n) { return new Yl({ check: "length_equals", ..._(n), length: e }); } // @__NO_SIDE_EFFECTS__ function Dn(e, n) { return new Ql({ check: "string_format", format: "regex", ..._(n), pattern: e }); } // @__NO_SIDE_EFFECTS__ function jn(e) { return new eu({ check: "string_format", format: "lowercase", ..._(e) }); } // @__NO_SIDE_EFFECTS__ function On(e) { return new tu({ check: "string_format", format: "uppercase", ..._(e) }); } // @__NO_SIDE_EFFECTS__ function En(e, n) { return new nu({ check: "string_format", format: "includes", ..._(n), includes: e }); } // @__NO_SIDE_EFFECTS__ function xn(e, n) { return new ru({ check: "string_format", format: "starts_with", ..._(n), prefix: e }); } // @__NO_SIDE_EFFECTS__ function Un(e, n) { return new iu({ check: "string_format", format: "ends_with", ..._(n), suffix: e }); } // @__NO_SIDE_EFFECTS__ function wi(e, n, r) { return new ou({ check: "property", property: e, schema: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function Tn(e, n) { return new au({ check: "mime_type", mime: e, ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Be(e) { return new lu({ check: "overwrite", tx: e }); } // @__NO_SIDE_EFFECTS__ function Nn(e) { return /* @__PURE__ */ Be((n) => n.normalize(e)); } // @__NO_SIDE_EFFECTS__ function Pn() { return /* @__PURE__ */ Be((e) => e.trim()); } // @__NO_SIDE_EFFECTS__ function An() { return /* @__PURE__ */ Be((e) => e.toLowerCase()); } // @__NO_SIDE_EFFECTS__ function Cn() { return /* @__PURE__ */ Be((e) => e.toUpperCase()); } // @__NO_SIDE_EFFECTS__ function Zn() { return /* @__PURE__ */ Be((e) => La(e)); } // @__NO_SIDE_EFFECTS__ function lc(e, n, r) { return new e({ type: "array", element: n, // get element() { // return element; // }, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function rk(e, n, r) { return new e({ type: "union", options: n, ..._(r) }); } function ik(e, n, r) { return new e({ type: "union", options: n, inclusive: !1, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function ok(e, n, r, o) { return new e({ type: "union", options: r, discriminator: n, ..._(o) }); } // @__NO_SIDE_EFFECTS__ function ak(e, n, r) { return new e({ type: "intersection", left: n, right: r }); } // @__NO_SIDE_EFFECTS__ function lk(e, n, r, o) { const t = r instanceof W, i = t ? o : r, a = t ? r : null; return new e({ type: "tuple", items: n, rest: a, ..._(i) }); } // @__NO_SIDE_EFFECTS__ function uk(e, n, r, o) { return new e({ type: "record", keyType: n, valueType: r, ..._(o) }); } // @__NO_SIDE_EFFECTS__ function sk(e, n, r, o) { return new e({ type: "map", keyType: n, valueType: r, ..._(o) }); } // @__NO_SIDE_EFFECTS__ function ck(e, n, r) { return new e({ type: "set", valueType: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function dk(e, n, r) { const o = Array.isArray(n) ? Object.fromEntries(n.map((t) => [t, t])) : n; return new e({ type: "enum", entries: o, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function mk(e, n, r) { return new e({ type: "enum", entries: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function fk(e, n, r) { return new e({ type: "literal", values: Array.isArray(n) ? n : [n], ..._(r) }); } // @__NO_SIDE_EFFECTS__ function uc(e, n) { return new e({ type: "file", ..._(n) }); } // @__NO_SIDE_EFFECTS__ function pk(e, n) { return new e({ type: "transform", transform: n }); } // @__NO_SIDE_EFFECTS__ function vk(e, n) { return new e({ type: "optional", innerType: n }); } // @__NO_SIDE_EFFECTS__ function gk(e, n) { return new e({ type: "nullable", innerType: n }); } // @__NO_SIDE_EFFECTS__ function hk(e, n, r) { return new e({ type: "default", innerType: n, get defaultValue() { return typeof r == "function" ? r() : kn(r); } }); } // @__NO_SIDE_EFFECTS__ function bk(e, n, r) { return new e({ type: "nonoptional", innerType: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function $k(e, n) { return new e({ type: "success", innerType: n }); } // @__NO_SIDE_EFFECTS__ function _k(e, n, r) { return new e({ type: "catch", innerType: n, catchValue: typeof r == "function" ? r : () => r }); } // @__NO_SIDE_EFFECTS__ function yk(e, n, r) { return new e({ type: "pipe", in: n, out: r }); } // @__NO_SIDE_EFFECTS__ function kk(e, n) { return new e({ type: "readonly", innerType: n }); } // @__NO_SIDE_EFFECTS__ function Sk(e, n, r) { return new e({ type: "template_literal", parts: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function wk(e, n) { return new e({ type: "lazy", getter: n }); } // @__NO_SIDE_EFFECTS__ function Ik(e, n) { return new e({ type: "promise", innerType: n }); } // @__NO_SIDE_EFFECTS__ function sc(e, n, r) { const o = _(r); return o.abort ?? (o.abort = !0), new e({ type: "custom", check: "custom", fn: n, ...o }); } // @__NO_SIDE_EFFECTS__ function cc(e, n, r) { return new e({ type: "custom", check: "custom", fn: n, ..._(r) }); } // @__NO_SIDE_EFFECTS__ function dc(e, n) { const r = /* @__PURE__ */ mc((o) => (o.addIssue = (t) => { if (typeof t == "string") o.issues.push(dt(t, o.value, r._zod.def)); else { const i = t; i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = o.value), i.inst ?? (i.inst = r), i.continue ?? (i.continue = !r._zod.def.abort), o.issues.push(dt(i)); } }, e(o.value, o)), n); return r; } // @__NO_SIDE_EFFECTS__ function mc(e, n) { const r = new se({ check: "custom", ..._(n) }); return r._zod.check = e, r; } // @__NO_SIDE_EFFECTS__ function fc(e) { const n = new se({ check: "describe" }); return n._zod.onattach = [ (r) => { const o = Ne.get(r) ?? {}; Ne.add(r, { ...o, description: e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function pc(e) { const n = new se({ check: "meta" }); return n._zod.onattach = [ (r) => { const o = Ne.get(r) ?? {}; Ne.add(r, { ...o, ...e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ function vc(e, n) { const r = _(n); let o = r.truthy ?? ["true", "1", "yes", "on", "y", "enabled"], t = r.falsy ?? ["false", "0", "no", "off", "n", "disabled"]; r.case !== "sensitive" && (o = o.map((f) => typeof f == "string" ? f.toLowerCase() : f), t = t.map((f) => typeof f == "string" ? f.toLowerCase() : f)); const i = new Set(o), a = new Set(t), l = e.Codec ?? Yr, s = e.Boolean ?? Gr, u = e.String ?? Mt, d = new u({ type: "string", error: r.error }), c = new s({ type: "boolean", error: r.error }), m = new l({ type: "pipe", in: d, out: c, transform: ((f, g) => { let y = f; return r.case !== "sensitive" && (y = y.toLowerCase()), i.has(y) ? !0 : a.has(y) ? !1 : (g.issues.push({ code: "invalid_value", expected: "stringbool", values: [...i, ...a], input: g.value, inst: m, continue: !1 }), {}); }), reverseTransform: ((f, g) => f === !0 ? o[0] || "true" : t[0] || "false"), error: r.error }); return m; } // @__NO_SIDE_EFFECTS__ function Bt(e, n, r, o = {}) { const t = _(o), i = { ..._(o), check: "string_format", type: "string", format: n, fn: typeof r == "function" ? r : (l) => r.test(l), ...t }; return r instanceof RegExp && (i.pattern = r), new e(i); } function pt(e) { let n = (e == null ? void 0 : e.target) ?? "draft-2020-12"; return n === "draft-4" && (n = "draft-04"), n === "draft-7" && (n = "draft-07"), { processors: e.processors ?? {}, metadataRegistry: (e == null ? void 0 : e.metadata) ?? Ne, target: n, unrepresentable: (e == null ? void 0 : e.unrepresentable) ?? "throw", override: (e == null ? void 0 : e.override) ?? (() => { }), io: (e == null ? void 0 : e.io) ?? "output", counter: 0, seen: /* @__PURE__ */ new Map(), cycles: (e == null ? void 0 : e.cycles) ?? "ref", reused: (e == null ? void 0 : e.reused) ?? "inline", external: (e == null ? void 0 : e.external) ?? void 0 }; } function ie(e, n, r = { path: [], schemaPath: [] }) { var d, c; var o; const t = e._zod.def, i = n.seen.get(e); if (i) return i.count++, r.schemaPath.includes(e) && (i.cycle = r.path), i.schema; const a = { schema: {}, count: 1, cycle: void 0, path: r.path }; n.seen.set(e, a); const l = (c = (d = e._zod).toJSONSchema) == null ? void 0 : c.call(d); if (l) a.schema = l; else { const m = { ...r, schemaPath: [...r.schemaPath, e], path: r.path }; if (e._zod.processJSONSchema) e._zod.processJSONSchema(n, a.schema, m); else { const g = a.schema, y = n.processors[t.type]; if (!y) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`); y(e, n, g, m); } const f = e._zod.parent; f && (a.ref || (a.ref = f), ie(f, n, m), n.seen.get(f).isParent = !0); } const s = n.metadataRegistry.get(e); return s && Object.assign(a.schema, s), n.io === "input" && we(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && "_prefault" in a.schema && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema; } function vt(e, n) { var a, l, s, u; const r = e.seen.get(n); if (!r) throw new Error("Unprocessed schema. This is a bug in Zod."); const o = /* @__PURE__ */ new Map(); for (const d of e.seen.entries()) { const c = (a = e.metadataRegistry.get(d[0])) == null ? void 0 : a.id; if (c) { const m = o.get(c); if (m && m !== d[0]) throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`); o.set(c, d[0]); } } const t = (d) => { var y; const c = e.target === "draft-2020-12" ? "$defs" : "definitions"; if (e.external) { const N = (y = e.external.registry.get(d[0])) == null ? void 0 : y.id, x = e.external.uri ?? ((L) => L); if (N) return { ref: x(N) }; const D = d[1].defId ?? d[1].schema.id ?? `schema${e.counter++}`; return d[1].defId = D, { defId: D, ref: `${x("__shared")}#/${c}/${D}` }; } if (d[1] === r) return { ref: "#" }; const f = `#/${c}/`, g = d[1].schema.id ?? `__schema${e.counter++}`; return { defId: g, ref: f + g }; }, i = (d) => { if (d[1].schema.$ref) return; const c = d[1], { ref: m, defId: f } = t(d); c.def = { ...c.schema }, f && (c.defId = f); const g = c.schema; for (const y in g) delete g[y]; g.$ref = m; }; if (e.cycles === "throw") for (const d of e.seen.entries()) { const c = d[1]; if (c.cycle) throw new Error(`Cycle detected: #/${(l = c.cycle) == null ? void 0 : l.join("/")}/ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`); } for (const d of e.seen.entries()) { const c = d[1]; if (n === d[0]) { i(d); continue; } if (e.external) { const f = (s = e.external.registry.get(d[0])) == null ? void 0 : s.id; if (n !== d[0] && f) { i(d); continue; } } if ((u = e.metadataRegistry.get(d[0])) == null ? void 0 : u.id) { i(d); continue; } if (c.cycle) { i(d); continue; } if (c.count > 1 && e.reused === "ref") { i(d); continue; } } } function gt(e, n) { var l, s, u, d; const r = e.seen.get(n); if (!r) throw new Error("Unprocessed schema. This is a bug in Zod."); const o = (c) => { const m = e.seen.get(c); if (m.ref === null) return; const f = m.def ?? m.schema, g = { ...f }, y = m.ref; if (m.ref = null, y) { o(y); const x = e.seen.get(y), D = x.schema; if (D.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (f.allOf = f.allOf ?? [], f.allOf.push(D)) : Object.assign(f, D), Object.assign(f, g), c._zod.parent === y) for (const A in f) A === "$ref" || A === "allOf" || A in g || delete f[A]; if (D.$ref && x.def) for (const A in f) A === "$ref" || A === "allOf" || A in x.def && JSON.stringify(f[A]) === JSON.stringify(x.def[A]) && delete f[A]; } const N = c._zod.parent; if (N && N !== y) { o(N); const x = e.seen.get(N); if (x != null && x.schema.$ref && (f.$ref = x.schema.$ref, x.def)) for (const D in f) D === "$ref" || D === "allOf" || D in x.def && JSON.stringify(f[D]) === JSON.stringify(x.def[D]) && delete f[D]; } e.override({ zodSchema: c, jsonSchema: f, path: m.path ?? [] }); }; for (const c of [...e.seen.entries()].reverse()) o(c[0]); const t = {}; if (e.target === "draft-2020-12" ? t.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? t.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? t.$schema = "http://json-schema.org/draft-04/schema#" : e.target, (l = e.external) != null && l.uri) { const c = (s = e.external.registry.get(n)) == null ? void 0 : s.id; if (!c) throw new Error("Schema is missing an `id` property"); t.$id = e.external.uri(c); } Object.assign(t, r.def ?? r.schema); const i = (u = e.metadataRegistry.get(n)) == null ? void 0 : u.id; i !== void 0 && t.id === i && delete t.id; const a = ((d = e.external) == null ? void 0 : d.defs) ?? {}; for (const c of e.seen.entries()) { const m = c[1]; m.def && m.defId && (m.def.id === m.defId && delete m.def.id, a[m.defId] = m.def); } e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? t.$defs = a : t.definitions = a); try { const c = JSON.parse(JSON.stringify(t)); return Object.defineProperty(c, "~standard", { value: { ...n["~standard"], jsonSchema: { input: zt(n, "input", e.processors), output: zt(n, "output", e.processors) } }, enumerable: !1, writable: !1 }), c; } catch { throw new Error("Error converting schema to JSON."); } } function we(e, n) { const r = n ?? { seen: /* @__PURE__ */ new Set() }; if (r.seen.has(e)) return !1; r.seen.add(e); const o = e._zod.def; if (o.type === "transform") return !0; if (o.type === "array") return we(o.element, r); if (o.type === "set") return we(o.valueType, r); if (o.type === "lazy") return we(o.getter(), r); if (o.type === "promise" || o.type === "optional" || o.type === "nonoptional" || o.type === "nullable" || o.type === "readonly" || o.type === "default" || o.type === "prefault") return we(o.innerType, r); if (o.type === "intersection") return we(o.left, r) || we(o.right, r); if (o.type === "record" || o.type === "map") return we(o.keyType, r) || we(o.valueType, r); if (o.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : we(o.in, r) || we(o.out, r); if (o.type === "object") { for (const t in o.shape) if (we(o.shape[t], r)) return !0; return !1; } if (o.type === "union") { for (const t of o.options) if (we(t, r)) return !0; return !1; } if (o.type === "tuple") { for (const t of o.items) if (we(t, r)) return !0; return !!(o.rest && we(o.rest, r)); } return !1; } const gc = (e, n = {}) => (r) => { const o = pt({ ...r, processors: n }); return ie(e, o), vt(o, e), gt(o, e); }, zt = (e, n, r = {}) => (o) => { const { libraryOptions: t, target: i } = o ?? {}, a = pt({ ...t ?? {}, target: i, io: n, processors: r }); return ie(e, a), vt(a, e), gt(a, e); }, zk = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" // do not set }, hc = (e, n, r, o) => { const t = r; t.type = "string"; const { minimum: i, maximum: a, format: l, patterns: s, contentEncoding: u } = e._zod.bag; if (typeof i == "number" && (t.minLength = i), typeof a == "number" && (t.maxLength = a), l && (t.format = zk[l] ?? l, t.format === "" && delete t.format, l === "time" && delete t.format), u && (t.contentEncoding = u), s && s.size > 0) { const d = [...s]; d.length === 1 ? t.pattern = d[0].source : d.length > 1 && (t.allOf = [ ...d.map((c) => ({ ...n.target === "draft-07" || n.target === "draft-04" || n.target === "openapi-3.0" ? { type: "string" } : {}, pattern: c.source })) ]); } }, bc = (e, n, r, o) => { const t = r, { minimum: i, maximum: a, format: l, multipleOf: s, exclusiveMaximum: u, exclusiveMinimum: d } = e._zod.bag; typeof l == "string" && l.includes("int") ? t.type = "integer" : t.type = "number"; const c = typeof d == "number" && d >= (i ?? Number.NEGATIVE_INFINITY), m = typeof u == "number" && u <= (a ?? Number.POSITIVE_INFINITY), f = n.target === "draft-04" || n.target === "openapi-3.0"; c ? f ? (t.minimum = d, t.exclusiveMinimum = !0) : t.exclusiveMinimum = d : typeof i == "number" && (t.minimum = i), m ? f ? (t.maximum = u, t.exclusiveMaximum = !0) : t.exclusiveMaximum = u : typeof a == "number" && (t.maximum = a), typeof s == "number" && (t.multipleOf = s); }, $c = (e, n, r, o) => { r.type = "boolean"; }, _c = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("BigInt cannot be represented in JSON Schema"); }, yc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Symbols cannot be represented in JSON Schema"); }, kc = (e, n, r, o) => { n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null"; }, Sc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema"); }, wc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema"); }, Ic = (e, n, r, o) => { r.not = {}; }, zc = (e, n, r, o) => { }, Dc = (e, n, r, o) => { }, jc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema"); }, Oc = (e, n, r, o) => { const t = e._zod.def, i = zr(t.entries); i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), r.enum = i; }, Ec = (e, n, r, o) => { const t = e._zod.def, i = []; for (const a of t.values) if (a === void 0) { if (n.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema"); } else if (typeof a == "bigint") { if (n.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema"); i.push(Number(a)); } else i.push(a); if (i.length !== 0) if (i.length === 1) { const a = i[0]; r.type = a === null ? "null" : typeof a, n.target === "draft-04" || n.target === "openapi-3.0" ? r.enum = [a] : r.const = a; } else i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), i.every((a) => typeof a == "boolean") && (r.type = "boolean"), i.every((a) => a === null) && (r.type = "null"), r.enum = i; }, xc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("NaN cannot be represented in JSON Schema"); }, Uc = (e, n, r, o) => { const t = r, i = e._zod.pattern; if (!i) throw new Error("Pattern not found in template literal"); t.type = "string", t.pattern = i.source; }, Tc = (e, n, r, o) => { const t = r, i = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: a, maximum: l, mime: s } = e._zod.bag; a !== void 0 && (i.minLength = a), l !== void 0 && (i.maxLength = l), s ? s.length === 1 ? (i.contentMediaType = s[0], Object.assign(t, i)) : (Object.assign(t, i), t.anyOf = s.map((u) => ({ contentMediaType: u }))) : Object.assign(t, i); }, Nc = (e, n, r, o) => { r.type = "boolean"; }, Pc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Custom types cannot be represented in JSON Schema"); }, Ac = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Function types cannot be represented in JSON Schema"); }, Cc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Transforms cannot be represented in JSON Schema"); }, Zc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Map cannot be represented in JSON Schema"); }, Mc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Set cannot be represented in JSON Schema"); }, Lc = (e, n, r, o) => { const t = r, i = e._zod.def, { minimum: a, maximum: l } = e._zod.bag; typeof a == "number" && (t.minItems = a), typeof l == "number" && (t.maxItems = l), t.type = "array", t.items = ie(i.element, n, { ...o, path: [...o.path, "items"] }); }, Fc = (e, n, r, o) => { var u; const t = r, i = e._zod.def; t.type = "object", t.properties = {}; const a = i.shape; for (const d in a) t.properties[d] = ie(a[d], n, { ...o, path: [...o.path, "properties", d] }); const l = new Set(Object.keys(a)), s = new Set([...l].filter((d) => { const c = i.shape[d]._zod; return n.io === "input" ? c.optin === void 0 : c.optout === void 0; })); s.size > 0 && (t.required = Array.from(s)), ((u = i.catchall) == null ? void 0 : u._zod.def.type) === "never" ? t.additionalProperties = !1 : i.catchall ? i.catchall && (t.additionalProperties = ie(i.catchall, n, { ...o, path: [...o.path, "additionalProperties"] })) : n.io === "output" && (t.additionalProperties = !1); }, Ii = (e, n, r, o) => { const t = e._zod.def, i = t.inclusive === !1, a = t.options.map((l, s) => ie(l, n, { ...o, path: [...o.path, i ? "oneOf" : "anyOf", s] })); i ? r.oneOf = a : r.anyOf = a; }, Rc = (e, n, r, o) => { const t = e._zod.def, i = ie(t.left, n, { ...o, path: [...o.path, "allOf", 0] }), a = ie(t.right, n, { ...o, path: [...o.path, "allOf", 1] }), l = (u) => "allOf" in u && Object.keys(u).length === 1, s = [ ...l(i) ? i.allOf : [i], ...l(a) ? a.allOf : [a] ]; r.allOf = s; }, Bc = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "array"; const a = n.target === "draft-2020-12" ? "prefixItems" : "items", l = n.target === "draft-2020-12" || n.target === "openapi-3.0" ? "items" : "additionalItems", s = i.items.map((m, f) => ie(m, n, { ...o, path: [...o.path, a, f] })), u = i.rest ? ie(i.rest, n, { ...o, path: [...o.path, l, ...n.target === "openapi-3.0" ? [i.items.length] : []] }) : null; n.target === "draft-2020-12" ? (t.prefixItems = s, u && (t.items = u)) : n.target === "openapi-3.0" ? (t.items = { anyOf: s }, u && t.items.anyOf.push(u), t.minItems = s.length, u || (t.maxItems = s.length)) : (t.items = s, u && (t.additionalItems = u)); const { minimum: d, maximum: c } = e._zod.bag; typeof d == "number" && (t.minItems = d), typeof c == "number" && (t.maxItems = c); }, Vc = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "object"; const a = i.keyType, l = a._zod.bag, s = l == null ? void 0 : l.patterns; if (i.mode === "loose" && s && s.size > 0) { const d = ie(i.valueType, n, { ...o, path: [...o.path, "patternProperties", "*"] }); t.patternProperties = {}; for (const c of s) t.patternProperties[c.source] = d; } else (n.target === "draft-07" || n.target === "draft-2020-12") && (t.propertyNames = ie(i.keyType, n, { ...o, path: [...o.path, "propertyNames"] })), t.additionalProperties = ie(i.valueType, n, { ...o, path: [...o.path, "additionalProperties"] }); const u = a._zod.values; if (u) { const d = [...u].filter((c) => typeof c == "string" || typeof c == "number"); d.length > 0 && (t.required = d); } }, Jc = (e, n, r, o) => { const t = e._zod.def, i = ie(t.innerType, n, o), a = n.seen.get(e); n.target === "openapi-3.0" ? (a.ref = t.innerType, r.nullable = !0) : r.anyOf = [i, { type: "null" }]; }, qc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, Gc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.default = JSON.parse(JSON.stringify(t.defaultValue)); }, Kc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, n.io === "input" && (r._prefault = JSON.parse(JSON.stringify(t.defaultValue))); }, Wc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; let a; try { a = t.catchValue(void 0); } catch { throw new Error("Dynamic catch values are not supported in JSON Schema"); } r.default = a; }, Xc = (e, n, r, o) => { const t = e._zod.def, i = t.in._zod.traits.has("$ZodTransform"), a = n.io === "input" ? i ? t.out : t.in : t.out; ie(a, n, o); const l = n.seen.get(e); l.ref = a; }, Hc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.readOnly = !0; }, Yc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, zi = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType; }, Qc = (e, n, r, o) => { const t = e._zod.innerType; ie(t, n, o); const i = n.seen.get(e); i.ref = t; }, br = { string: hc, number: bc, boolean: $c, bigint: _c, symbol: yc, null: kc, undefined: Sc, void: wc, never: Ic, any: zc, unknown: Dc, date: jc, enum: Oc, literal: Ec, nan: xc, template_literal: Uc, file: Tc, success: Nc, custom: Pc, function: Ac, transform: Cc, map: Zc, set: Mc, array: Lc, object: Fc, union: Ii, intersection: Rc, tuple: Bc, record: Vc, nullable: Jc, nonoptional: qc, default: Gc, prefault: Kc, catch: Wc, pipe: Xc, readonly: Hc, promise: Yc, optional: zi, lazy: Qc }; function ed(e, n) { if ("_idmap" in e) { const o = e, t = pt({ ...n, processors: br }), i = {}; for (const s of o._idmap.entries()) { const [u, d] = s; ie(d, t); } const a = {}, l = { registry: o, uri: n == null ? void 0 : n.uri, defs: i }; t.external = l; for (const s of o._idmap.entries()) { const [u, d] = s; vt(t, d), a[u] = gt(t, d); } if (Object.keys(i).length > 0) { const s = t.target === "draft-2020-12" ? "$defs" : "definitions"; a.__shared = { [s]: i }; } return { schemas: a }; } const r = pt({ ...n, processors: br }); return ie(e, r), vt(r, e), gt(r, e); } class Dk { /** @deprecated Access via ctx instead */ get metadataRegistry() { return this.ctx.metadataRegistry; } /** @deprecated Access via ctx instead */ get target() { return this.ctx.target; } /** @deprecated Access via ctx instead */ get unrepresentable() { return this.ctx.unrepresentable; } /** @deprecated Access via ctx instead */ get override() { return this.ctx.override; } /** @deprecated Access via ctx instead */ get io() { return this.ctx.io; } /** @deprecated Access via ctx instead */ get counter() { return this.ctx.counter; } set counter(n) { this.ctx.counter = n; } /** @deprecated Access via ctx instead */ get seen() { return this.ctx.seen; } constructor(n) { let r = (n == null ? void 0 : n.target) ?? "draft-2020-12"; r === "draft-4" && (r = "draft-04"), r === "draft-7" && (r = "draft-07"), this.ctx = pt({ processors: br, target: r, ...(n == null ? void 0 : n.metadata) && { metadata: n.metadata }, ...(n == null ? void 0 : n.unrepresentable) && { unrepresentable: n.unrepresentable }, ...(n == null ? void 0 : n.override) && { override: n.override }, ...(n == null ? void 0 : n.io) && { io: n.io } }); } /** * Process a schema to prepare it for JSON Schema generation. * This must be called before emit(). */ process(n, r = { path: [], schemaPath: [] }) { return ie(n, this.ctx, r); } /** * Emit the final JSON Schema after processing. * Must call process() first. */ emit(n, r) { r && (r.cycles && (this.ctx.cycles = r.cycles), r.reused && (this.ctx.reused = r.reused), r.external && (this.ctx.external = r.external)), vt(this.ctx, n); const o = gt(this.ctx, n), { "~standard": t, ...i } = o; return i; } } const jk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), Ok = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $ZodAny: Ru, $ZodArray: Gu, $ZodAsyncError: et, $ZodBase64: Eu, $ZodBase64URL: Uu, $ZodBigInt: Kr, $ZodBigIntFormat: Zu, $ZodBoolean: Gr, $ZodCIDRv4: ju, $ZodCIDRv6: Ou, $ZodCUID: gu, $ZodCUID2: hu, $ZodCatch: ps, $ZodCheck: se, $ZodCheckBigIntFormat: ql, $ZodCheckEndsWith: iu, $ZodCheckGreaterThan: Vr, $ZodCheckIncludes: nu, $ZodCheckLengthEquals: Yl, $ZodCheckLessThan: Br, $ZodCheckLowerCase: eu, $ZodCheckMaxLength: Xl, $ZodCheckMaxSize: Gl, $ZodCheckMimeType: au, $ZodCheckMinLength: Hl, $ZodCheckMinSize: Kl, $ZodCheckMultipleOf: Vl, $ZodCheckNumberFormat: Jl, $ZodCheckOverwrite: lu, $ZodCheckProperty: ou, $ZodCheckRegex: Ql, $ZodCheckSizeEquals: Wl, $ZodCheckStartsWith: ru, $ZodCheckStringFormat: Zt, $ZodCheckUpperCase: tu, $ZodCodec: Yr, $ZodCustom: ks, $ZodCustomStringFormat: Au, $ZodDate: qu, $ZodDefault: cs, $ZodDiscriminatedUnion: Qu, $ZodE164: Tu, $ZodEmail: mu, $ZodEmoji: pu, $ZodEncodeError: _n, $ZodEnum: is, $ZodError: jr, $ZodExactOptional: us, $ZodFile: as, $ZodFunction: $s, $ZodGUID: cu, $ZodIPv4: Iu, $ZodIPv6: zu, $ZodISODate: ku, $ZodISODateTime: yu, $ZodISODuration: wu, $ZodISOTime: Su, $ZodIntersection: es, $ZodJWT: Pu, $ZodKSUID: _u, $ZodLazy: ys, $ZodLiteral: os, $ZodMAC: Du, $ZodMap: ns, $ZodNaN: vs, $ZodNanoID: vu, $ZodNever: Vu, $ZodNonOptional: ms, $ZodNull: Fu, $ZodNullable: ss, $ZodNumber: qr, $ZodNumberFormat: Cu, $ZodObject: Xu, $ZodObjectJIT: Hu, $ZodOptional: Xr, $ZodPipe: Hr, $ZodPrefault: ds, $ZodPreprocess: gs, $ZodPromise: _s, $ZodReadonly: hs, $ZodRealError: Ee, $ZodRecord: ts, $ZodRegistry: Os, $ZodSet: rs, $ZodString: Mt, $ZodStringFormat: oe, $ZodSuccess: fs, $ZodSymbol: Mu, $ZodTemplateLiteral: bs, $ZodTransform: ls, $ZodTuple: Wr, $ZodType: W, $ZodULID: bu, $ZodURL: fu, $ZodUUID: du, $ZodUndefined: Lu, $ZodUnion: In, $ZodUnknown: Bu, $ZodVoid: Ju, $ZodXID: $u, $ZodXor: Yu, $brand: Za, $constructor: v, $input: js, $output: Ds, Doc: uu, JSONSchema: jk, JSONSchemaGenerator: Dk, NEVER: Ca, TimePrecision: Ts, _any: ec, _array: lc, _base64: gi, _base64url: hi, _bigint: Gs, _boolean: Js, _catch: _k, _check: mc, _cidrv4: pi, _cidrv6: vi, _coercedBigint: Ks, _coercedBoolean: qs, _coercedDate: oc, _coercedNumber: Ms, _coercedString: xs, _cuid: li, _cuid2: ui, _custom: sc, _date: ic, _decode: Ur, _decodeAsync: Nr, _default: hk, _discriminatedUnion: ok, _e164: bi, _email: ei, _emoji: oi, _encode: xr, _encodeAsync: Tr, _endsWith: Un, _enum: dk, _file: uc, _float32: Fs, _float64: Rs, _gt: Ge, _gte: De, _guid: gn, _includes: En, _int: Ls, _int32: Bs, _int64: Ws, _intersection: ak, _ipv4: mi, _ipv6: fi, _isoDate: Ps, _isoDateTime: Ns, _isoDuration: Cs, _isoTime: As, _jwt: $i, _ksuid: di, _lazy: wk, _length: Rt, _literal: fk, _lowercase: jn, _lt: qe, _lte: Pe, _mac: Us, _map: sk, _max: Pe, _maxLength: Ft, _maxSize: $t, _mime: Tn, _min: De, _minLength: nt, _minSize: Ke, _multipleOf: ft, _nan: ac, _nanoid: ai, _nativeEnum: mk, _negative: yi, _never: nc, _nonnegative: Si, _nonoptional: bk, _nonpositive: ki, _normalize: Nn, _null: Qs, _nullable: gk, _number: Zs, _optional: vk, _overwrite: Be, _parse: Ut, _parseAsync: Tt, _pipe: yk, _positive: _i, _promise: Ik, _property: wi, _readonly: kk, _record: uk, _refine: cc, _regex: Dn, _safeDecode: Ar, _safeDecodeAsync: Zr, _safeEncode: Pr, _safeEncodeAsync: Cr, _safeParse: Nt, _safeParseAsync: Pt, _set: ck, _size: Lt, _slugify: Zn, _startsWith: xn, _string: Es, _stringFormat: Bt, _stringbool: vc, _success: $k, _superRefine: dc, _symbol: Hs, _templateLiteral: Sk, _toLowerCase: An, _toUpperCase: Cn, _transform: pk, _trim: Pn, _tuple: lk, _uint32: Vs, _uint64: Xs, _ulid: si, _undefined: Ys, _union: rk, _unknown: tc, _uppercase: On, _url: zn, _uuid: ti, _uuidv4: ni, _uuidv6: ri, _uuidv7: ii, _void: rc, _xid: ci, _xor: ik, clone: Ae, config: _e, createStandardJSONSchemaMethod: zt, createToJSONSchemaMethod: gc, decode: P$, decodeAsync: C$, describe: fc, encode: N$, encodeAsync: A$, extractDefs: vt, finalize: gt, flattenError: Or, formatError: Er, globalConfig: It, globalRegistry: Ne, initializeContext: pt, isValidBase64: Jr, isValidBase64URL: xu, isValidJWT: Nu, locales: zs, meta: pc, parse: vr, parseAsync: gr, prettifyError: al, process: ie, regexes: Rr, registry: Qr, safeDecode: M$, safeDecodeAsync: F$, safeEncode: Z$, safeEncodeAsync: L$, safeParse: ll, safeParseAsync: ul, toDotPath: ol, toJSONSchema: ed, treeifyError: il, util: nl, version: su }, Symbol.toStringTag, { value: "Module" })), Ek = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, endsWith: Un, gt: Ge, gte: De, includes: En, length: Rt, lowercase: jn, lt: qe, lte: Pe, maxLength: Ft, maxSize: $t, mime: Tn, minLength: nt, minSize: Ke, multipleOf: ft, negative: yi, nonnegative: Si, nonpositive: ki, normalize: Nn, overwrite: Be, positive: _i, property: wi, regex: Dn, size: Lt, slugify: Zn, startsWith: xn, toLowerCase: An, toUpperCase: Cn, trim: Pn, uppercase: On }, Symbol.toStringTag, { value: "Module" })), Di = /* @__PURE__ */ v("ZodISODateTime", (e, n) => { yu.init(e, n), ae.init(e, n); }); function td(e) { return /* @__PURE__ */ Ns(Di, e); } const ji = /* @__PURE__ */ v("ZodISODate", (e, n) => { ku.init(e, n), ae.init(e, n); }); function nd(e) { return /* @__PURE__ */ Ps(ji, e); } const Oi = /* @__PURE__ */ v("ZodISOTime", (e, n) => { Su.init(e, n), ae.init(e, n); }); function rd(e) { return /* @__PURE__ */ As(Oi, e); } const Ei = /* @__PURE__ */ v("ZodISODuration", (e, n) => { wu.init(e, n), ae.init(e, n); }); function id(e) { return /* @__PURE__ */ Cs(Ei, e); } const od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodISODate: ji, ZodISODateTime: Di, ZodISODuration: Ei, ZodISOTime: Oi, date: nd, datetime: td, duration: id, time: rd }, Symbol.toStringTag, { value: "Module" })), ad = (e, n) => { jr.init(e, n), e.name = "ZodError", Object.defineProperties(e, { format: { value: (r) => Er(e, r) // enumerable: false, }, flatten: { value: (r) => Or(e, r) // enumerable: false, }, addIssue: { value: (r) => { e.issues.push(r), e.message = JSON.stringify(e.issues, fn, 2); } // enumerable: false, }, addIssues: { value: (r) => { e.issues.push(...r), e.message = JSON.stringify(e.issues, fn, 2); } // enumerable: false, }, isEmpty: { get() { return e.issues.length === 0; } // enumerable: false, } }); }, xk = /* @__PURE__ */ v("ZodError", ad), xe = /* @__PURE__ */ v("ZodError", ad, { Parent: Error }), ld = /* @__PURE__ */ Ut(xe), ud = /* @__PURE__ */ Tt(xe), sd = /* @__PURE__ */ Nt(xe), cd = /* @__PURE__ */ Pt(xe), dd = /* @__PURE__ */ xr(xe), md = /* @__PURE__ */ Ur(xe), fd = /* @__PURE__ */ Tr(xe), pd = /* @__PURE__ */ Nr(xe), vd = /* @__PURE__ */ Pr(xe), gd = /* @__PURE__ */ Ar(xe), hd = /* @__PURE__ */ Cr(xe), bd = /* @__PURE__ */ Zr(xe), ca = /* @__PURE__ */ new WeakMap(); function Vt(e, n, r) { const o = Object.getPrototypeOf(e); let t = ca.get(o); if (t || (t = /* @__PURE__ */ new Set(), ca.set(o, t)), !t.has(n)) { t.add(n); for (const i in r) { const a = r[i]; Object.defineProperty(o, i, { configurable: !0, enumerable: !1, get() { const l = a.bind(this); return Object.defineProperty(this, i, { configurable: !0, writable: !0, enumerable: !0, value: l }), l; }, set(l) { Object.defineProperty(this, i, { configurable: !0, writable: !0, enumerable: !0, value: l }); } }); } } } const X = /* @__PURE__ */ v("ZodType", (e, n) => (W.init(e, n), Object.assign(e["~standard"], { jsonSchema: { input: zt(e, "input"), output: zt(e, "output") } }), e.toJSONSchema = gc(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.parse = (r, o) => ld(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => sd(e, r, o), e.parseAsync = async (r, o) => ud(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => cd(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => dd(e, r, o), e.decode = (r, o) => md(e, r, o), e.encodeAsync = async (r, o) => fd(e, r, o), e.decodeAsync = async (r, o) => pd(e, r, o), e.safeEncode = (r, o) => vd(e, r, o), e.safeDecode = (r, o) => gd(e, r, o), e.safeEncodeAsync = async (r, o) => hd(e, r, o), e.safeDecodeAsync = async (r, o) => bd(e, r, o), Vt(e, "ZodType", { check(...r) { const o = this.def; return this.clone(Le(o, { checks: [ ...o.checks ?? [], ...r.map((t) => typeof t == "function" ? { _zod: { check: t, def: { check: "custom" }, onattach: [] } } : t) ] }), { parent: !0 }); }, with(...r) { return this.check(...r); }, clone(r, o) { return Ae(this, r, o); }, brand() { return this; }, register(r, o) { return r.add(this, o), this; }, refine(r, o) { return this.check(ko(r, o)); }, superRefine(r, o) { return this.check(So(r, o)); }, overwrite(r) { return this.check(/* @__PURE__ */ Be(r)); }, optional() { return Ot(this); }, exactOptional() { return no(this); }, nullable() { return Et(this); }, nullish() { return Ot(Et(this)); }, nonoptional(r) { return uo(this, r); }, array() { return Xt(this); }, or(r) { return or([this, r]); }, and(r) { return qi(this, r); }, transform(r) { return bn(this, lr(r)); }, default(r) { return oo(this, r); }, prefault(r) { return lo(this, r); }, catch(r) { return mo(this, r); }, pipe(r) { return bn(this, r); }, readonly() { return go(this); }, describe(r) { const o = this.clone(); return Ne.add(o, { description: r }), o; }, meta(...r) { if (r.length === 0) return Ne.get(this); const o = this.clone(); return Ne.add(o, r[0]), o; }, isOptional() { return this.safeParse(void 0).success; }, isNullable() { return this.safeParse(null).success; }, apply(r) { return r(this); } }), Object.defineProperty(e, "description", { get() { var r; return (r = Ne.get(e)) == null ? void 0 : r.description; }, configurable: !0 }), e)), Mn = /* @__PURE__ */ v("_ZodString", (e, n) => { Mt.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => hc(e, o, t); const r = e._zod.bag; e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, Vt(e, "_ZodString", { regex(...o) { return this.check(/* @__PURE__ */ Dn(...o)); }, includes(...o) { return this.check(/* @__PURE__ */ En(...o)); }, startsWith(...o) { return this.check(/* @__PURE__ */ xn(...o)); }, endsWith(...o) { return this.check(/* @__PURE__ */ Un(...o)); }, min(...o) { return this.check(/* @__PURE__ */ nt(...o)); }, max(...o) { return this.check(/* @__PURE__ */ Ft(...o)); }, length(...o) { return this.check(/* @__PURE__ */ Rt(...o)); }, nonempty(...o) { return this.check(/* @__PURE__ */ nt(1, ...o)); }, lowercase(o) { return this.check(/* @__PURE__ */ jn(o)); }, uppercase(o) { return this.check(/* @__PURE__ */ On(o)); }, trim() { return this.check(/* @__PURE__ */ Pn()); }, normalize(...o) { return this.check(/* @__PURE__ */ Nn(...o)); }, toLowerCase() { return this.check(/* @__PURE__ */ An()); }, toUpperCase() { return this.check(/* @__PURE__ */ Cn()); }, slugify() { return this.check(/* @__PURE__ */ Zn()); } }); }), Jt = /* @__PURE__ */ v("ZodString", (e, n) => { Mt.init(e, n), Mn.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ ei(Ln, r)), e.url = (r) => e.check(/* @__PURE__ */ zn(qt, r)), e.jwt = (r) => e.check(/* @__PURE__ */ $i(tr, r)), e.emoji = (r) => e.check(/* @__PURE__ */ oi(Fn, r)), e.guid = (r) => e.check(/* @__PURE__ */ gn(jt, r)), e.uuid = (r) => e.check(/* @__PURE__ */ ti(Me, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ ni(Me, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ ri(Me, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ ii(Me, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ ai(Rn, r)), e.guid = (r) => e.check(/* @__PURE__ */ gn(jt, r)), e.cuid = (r) => e.check(/* @__PURE__ */ li(Bn, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ ui(Vn, r)), e.ulid = (r) => e.check(/* @__PURE__ */ si(Jn, r)), e.base64 = (r) => e.check(/* @__PURE__ */ gi(Yn, r)), e.base64url = (r) => e.check(/* @__PURE__ */ hi(Qn, r)), e.xid = (r) => e.check(/* @__PURE__ */ ci(qn, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ di(Gn, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ mi(Kn, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ fi(Wn, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ pi(Xn, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ vi(Hn, r)), e.e164 = (r) => e.check(/* @__PURE__ */ bi(er, r)), e.datetime = (r) => e.check(td(r)), e.date = (r) => e.check(nd(r)), e.time = (r) => e.check(rd(r)), e.duration = (r) => e.check(id(r)); }); function Dt(e) { return /* @__PURE__ */ Es(Jt, e); } const ae = /* @__PURE__ */ v("ZodStringFormat", (e, n) => { oe.init(e, n), Mn.init(e, n); }), Ln = /* @__PURE__ */ v("ZodEmail", (e, n) => { mu.init(e, n), ae.init(e, n); }); function $d(e) { return /* @__PURE__ */ ei(Ln, e); } const jt = /* @__PURE__ */ v("ZodGUID", (e, n) => { cu.init(e, n), ae.init(e, n); }); function _d(e) { return /* @__PURE__ */ gn(jt, e); } const Me = /* @__PURE__ */ v("ZodUUID", (e, n) => { du.init(e, n), ae.init(e, n); }); function yd(e) { return /* @__PURE__ */ ti(Me, e); } function kd(e) { return /* @__PURE__ */ ni(Me, e); } function Sd(e) { return /* @__PURE__ */ ri(Me, e); } function wd(e) { return /* @__PURE__ */ ii(Me, e); } const qt = /* @__PURE__ */ v("ZodURL", (e, n) => { fu.init(e, n), ae.init(e, n); }); function Id(e) { return /* @__PURE__ */ zn(qt, e); } function zd(e) { return /* @__PURE__ */ zn(qt, { protocol: Lr, hostname: Dl, ..._(e) }); } const Fn = /* @__PURE__ */ v("ZodEmoji", (e, n) => { pu.init(e, n), ae.init(e, n); }); function Dd(e) { return /* @__PURE__ */ oi(Fn, e); } const Rn = /* @__PURE__ */ v("ZodNanoID", (e, n) => { vu.init(e, n), ae.init(e, n); }); function jd(e) { return /* @__PURE__ */ ai(Rn, e); } const Bn = /* @__PURE__ */ v("ZodCUID", (e, n) => { gu.init(e, n), ae.init(e, n); }); function Od(e) { return /* @__PURE__ */ li(Bn, e); } const Vn = /* @__PURE__ */ v("ZodCUID2", (e, n) => { hu.init(e, n), ae.init(e, n); }); function Ed(e) { return /* @__PURE__ */ ui(Vn, e); } const Jn = /* @__PURE__ */ v("ZodULID", (e, n) => { bu.init(e, n), ae.init(e, n); }); function xd(e) { return /* @__PURE__ */ si(Jn, e); } const qn = /* @__PURE__ */ v("ZodXID", (e, n) => { $u.init(e, n), ae.init(e, n); }); function Ud(e) { return /* @__PURE__ */ ci(qn, e); } const Gn = /* @__PURE__ */ v("ZodKSUID", (e, n) => { _u.init(e, n), ae.init(e, n); }); function Td(e) { return /* @__PURE__ */ di(Gn, e); } const Kn = /* @__PURE__ */ v("ZodIPv4", (e, n) => { Iu.init(e, n), ae.init(e, n); }); function Nd(e) { return /* @__PURE__ */ mi(Kn, e); } const xi = /* @__PURE__ */ v("ZodMAC", (e, n) => { Du.init(e, n), ae.init(e, n); }); function Pd(e) { return /* @__PURE__ */ Us(xi, e); } const Wn = /* @__PURE__ */ v("ZodIPv6", (e, n) => { zu.init(e, n), ae.init(e, n); }); function Ad(e) { return /* @__PURE__ */ fi(Wn, e); } const Xn = /* @__PURE__ */ v("ZodCIDRv4", (e, n) => { ju.init(e, n), ae.init(e, n); }); function Cd(e) { return /* @__PURE__ */ pi(Xn, e); } const Hn = /* @__PURE__ */ v("ZodCIDRv6", (e, n) => { Ou.init(e, n), ae.init(e, n); }); function Zd(e) { return /* @__PURE__ */ vi(Hn, e); } const Yn = /* @__PURE__ */ v("ZodBase64", (e, n) => { Eu.init(e, n), ae.init(e, n); }); function Md(e) { return /* @__PURE__ */ gi(Yn, e); } const Qn = /* @__PURE__ */ v("ZodBase64URL", (e, n) => { Uu.init(e, n), ae.init(e, n); }); function Ld(e) { return /* @__PURE__ */ hi(Qn, e); } const er = /* @__PURE__ */ v("ZodE164", (e, n) => { Tu.init(e, n), ae.init(e, n); }); function Fd(e) { return /* @__PURE__ */ bi(er, e); } const tr = /* @__PURE__ */ v("ZodJWT", (e, n) => { Pu.init(e, n), ae.init(e, n); }); function Rd(e) { return /* @__PURE__ */ $i(tr, e); } const _t = /* @__PURE__ */ v("ZodCustomStringFormat", (e, n) => { Au.init(e, n), ae.init(e, n); }); function Bd(e, n, r = {}) { return /* @__PURE__ */ Bt(_t, e, n, r); } function Vd(e) { return /* @__PURE__ */ Bt(_t, "hostname", zl, e); } function Jd(e) { return /* @__PURE__ */ Bt(_t, "hex", Rl, e); } function qd(e, n) { const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = Rr[o]; if (!t) throw new Error(`Unrecognized hash format: ${o}`); return /* @__PURE__ */ Bt(_t, o, t, n); } const Gt = /* @__PURE__ */ v("ZodNumber", (e, n) => { qr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => bc(e, o, t), Vt(e, "ZodNumber", { gt(o, t) { return this.check(/* @__PURE__ */ Ge(o, t)); }, gte(o, t) { return this.check(/* @__PURE__ */ De(o, t)); }, min(o, t) { return this.check(/* @__PURE__ */ De(o, t)); }, lt(o, t) { return this.check(/* @__PURE__ */ qe(o, t)); }, lte(o, t) { return this.check(/* @__PURE__ */ Pe(o, t)); }, max(o, t) { return this.check(/* @__PURE__ */ Pe(o, t)); }, int(o) { return this.check(hn(o)); }, safe(o) { return this.check(hn(o)); }, positive(o) { return this.check(/* @__PURE__ */ Ge(0, o)); }, nonnegative(o) { return this.check(/* @__PURE__ */ De(0, o)); }, negative(o) { return this.check(/* @__PURE__ */ qe(0, o)); }, nonpositive(o) { return this.check(/* @__PURE__ */ Pe(0, o)); }, multipleOf(o, t) { return this.check(/* @__PURE__ */ ft(o, t)); }, step(o, t) { return this.check(/* @__PURE__ */ ft(o, t)); }, finite() { return this; } }); const r = e._zod.bag; e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null; }); function Ui(e) { return /* @__PURE__ */ Zs(Gt, e); } const ot = /* @__PURE__ */ v("ZodNumberFormat", (e, n) => { Cu.init(e, n), Gt.init(e, n); }); function hn(e) { return /* @__PURE__ */ Ls(ot, e); } function Gd(e) { return /* @__PURE__ */ Fs(ot, e); } function Kd(e) { return /* @__PURE__ */ Rs(ot, e); } function Wd(e) { return /* @__PURE__ */ Bs(ot, e); } function Xd(e) { return /* @__PURE__ */ Vs(ot, e); } const Kt = /* @__PURE__ */ v("ZodBoolean", (e, n) => { Gr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => $c(e, r, o); }); function Ti(e) { return /* @__PURE__ */ Js(Kt, e); } const Wt = /* @__PURE__ */ v("ZodBigInt", (e, n) => { Kr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => _c(e, o), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.gt = (o, t) => e.check(/* @__PURE__ */ Ge(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ qe(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Pe(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Pe(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ Ge(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ qe(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Pe(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ De(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ ft(o, t)); const r = e._zod.bag; e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null; }); function Hd(e) { return /* @__PURE__ */ Gs(Wt, e); } const nr = /* @__PURE__ */ v("ZodBigIntFormat", (e, n) => { Zu.init(e, n), Wt.init(e, n); }); function Yd(e) { return /* @__PURE__ */ Ws(nr, e); } function Qd(e) { return /* @__PURE__ */ Xs(nr, e); } const Ni = /* @__PURE__ */ v("ZodSymbol", (e, n) => { Mu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => yc(e, r); }); function em(e) { return /* @__PURE__ */ Hs(Ni, e); } const Pi = /* @__PURE__ */ v("ZodUndefined", (e, n) => { Lu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Sc(e, r); }); function tm(e) { return /* @__PURE__ */ Ys(Pi, e); } const Ai = /* @__PURE__ */ v("ZodNull", (e, n) => { Fu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => kc(e, r, o); }); function Ci(e) { return /* @__PURE__ */ Qs(Ai, e); } const Zi = /* @__PURE__ */ v("ZodAny", (e, n) => { Ru.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => zc(); }); function nm() { return /* @__PURE__ */ ec(Zi); } const Mi = /* @__PURE__ */ v("ZodUnknown", (e, n) => { Bu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Dc(); }); function rt() { return /* @__PURE__ */ tc(Mi); } const Li = /* @__PURE__ */ v("ZodNever", (e, n) => { Vu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ic(e, r, o); }); function rr(e) { return /* @__PURE__ */ nc(Li, e); } const Fi = /* @__PURE__ */ v("ZodVoid", (e, n) => { Ju.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => wc(e, r); }); function rm(e) { return /* @__PURE__ */ rc(Fi, e); } const ir = /* @__PURE__ */ v("ZodDate", (e, n) => { qu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => jc(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Pe(o, t)); const r = e._zod.bag; e.minDate = r.minimum ? new Date(r.minimum) : null, e.maxDate = r.maximum ? new Date(r.maximum) : null; }); function im(e) { return /* @__PURE__ */ ic(ir, e); } const Ri = /* @__PURE__ */ v("ZodArray", (e, n) => { Gu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Lc(e, r, o, t), e.element = n.element, Vt(e, "ZodArray", { min(r, o) { return this.check(/* @__PURE__ */ nt(r, o)); }, nonempty(r) { return this.check(/* @__PURE__ */ nt(1, r)); }, max(r, o) { return this.check(/* @__PURE__ */ Ft(r, o)); }, length(r, o) { return this.check(/* @__PURE__ */ Rt(r, o)); }, unwrap() { return this.element; } }); }); function Xt(e, n) { return /* @__PURE__ */ lc(Ri, e, n); } function om(e) { const n = e._zod.def.shape; return ar(Object.keys(n)); } const Ht = /* @__PURE__ */ v("ZodObject", (e, n) => { Hu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Fc(e, r, o, t), H(e, "shape", () => n.shape), Vt(e, "ZodObject", { keyof() { return ar(Object.keys(this._zod.def.shape)); }, catchall(r) { return this.clone({ ...this._zod.def, catchall: r }); }, passthrough() { return this.clone({ ...this._zod.def, catchall: rt() }); }, loose() { return this.clone({ ...this._zod.def, catchall: rt() }); }, strict() { return this.clone({ ...this._zod.def, catchall: rr() }); }, strip() { return this.clone({ ...this._zod.def, catchall: void 0 }); }, extend(r) { return Ka(this, r); }, safeExtend(r) { return Wa(this, r); }, merge(r) { return Xa(this, r); }, pick(r) { return qa(this, r); }, omit(r) { return Ga(this, r); }, partial(...r) { return Ha(ur, this, r[0]); }, required(...r) { return Ya(sr, this, r[0]); } }); }); function am(e, n) { const r = { type: "object", shape: e ?? {}, ..._(n) }; return new Ht(r); } function lm(e, n) { return new Ht({ type: "object", shape: e, catchall: rr(), ..._(n) }); } function um(e, n) { return new Ht({ type: "object", shape: e, catchall: rt(), ..._(n) }); } const Yt = /* @__PURE__ */ v("ZodUnion", (e, n) => { In.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ii(e, r, o, t), e.options = n.options; }); function or(e, n) { return new Yt({ type: "union", options: e, ..._(n) }); } const Bi = /* @__PURE__ */ v("ZodXor", (e, n) => { Yt.init(e, n), Yu.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ii(e, r, o, t), e.options = n.options; }); function sm(e, n) { return new Bi({ type: "union", options: e, inclusive: !1, ..._(n) }); } const Vi = /* @__PURE__ */ v("ZodDiscriminatedUnion", (e, n) => { Yt.init(e, n), Qu.init(e, n); }); function cm(e, n, r) { return new Vi({ type: "union", options: n, discriminator: e, ..._(r) }); } const Ji = /* @__PURE__ */ v("ZodIntersection", (e, n) => { es.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Rc(e, r, o, t); }); function qi(e, n) { return new Ji({ type: "intersection", left: e, right: n }); } const Gi = /* @__PURE__ */ v("ZodTuple", (e, n) => { Wr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Bc(e, r, o, t), e.rest = (r) => e.clone({ ...e._zod.def, rest: r }); }); function Ki(e, n, r) { const o = n instanceof W, t = o ? r : n, i = o ? n : null; return new Gi({ type: "tuple", items: e, rest: i, ..._(t) }); } const ht = /* @__PURE__ */ v("ZodRecord", (e, n) => { ts.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Vc(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType; }); function Wi(e, n, r) { return !n || !n._zod ? new ht({ type: "record", keyType: Dt(), valueType: e, ..._(n) }) : new ht({ type: "record", keyType: e, valueType: n, ..._(r) }); } function dm(e, n, r) { const o = Ae(e); return o._zod.values = void 0, new ht({ type: "record", keyType: o, valueType: n, ..._(r) }); } function mm(e, n, r) { return new ht({ type: "record", keyType: e, valueType: n, mode: "loose", ..._(r) }); } const Xi = /* @__PURE__ */ v("ZodMap", (e, n) => { ns.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Zc(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ Ke(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ke(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ $t(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Lt(...r)); }); function fm(e, n, r) { return new Xi({ type: "map", keyType: e, valueType: n, ..._(r) }); } const Hi = /* @__PURE__ */ v("ZodSet", (e, n) => { rs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Mc(e, r), e.min = (...r) => e.check(/* @__PURE__ */ Ke(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ke(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ $t(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Lt(...r)); }); function pm(e, n) { return new Hi({ type: "set", valueType: e, ..._(n) }); } const bt = /* @__PURE__ */ v("ZodEnum", (e, n) => { is.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => Oc(e, o, t), e.enum = n.entries, e.options = Object.values(n.entries); const r = new Set(Object.keys(n.entries)); e.extract = (o, t) => { const i = {}; for (const a of o) if (r.has(a)) i[a] = n.entries[a]; else throw new Error(`Key ${a} not found in enum`); return new bt({ ...n, checks: [], ..._(t), entries: i }); }, e.exclude = (o, t) => { const i = { ...n.entries }; for (const a of o) if (r.has(a)) delete i[a]; else throw new Error(`Key ${a} not found in enum`); return new bt({ ...n, checks: [], ..._(t), entries: i }); }; }); function ar(e, n) { const r = Array.isArray(e) ? Object.fromEntries(e.map((o) => [o, o])) : e; return new bt({ type: "enum", entries: r, ..._(n) }); } function vm(e, n) { return new bt({ type: "enum", entries: e, ..._(n) }); } const Yi = /* @__PURE__ */ v("ZodLiteral", (e, n) => { os.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ec(e, r, o), e.values = new Set(n.values), Object.defineProperty(e, "value", { get() { if (n.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); return n.values[0]; } }); }); function gm(e, n) { return new Yi({ type: "literal", values: Array.isArray(e) ? e : [e], ..._(n) }); } const Qi = /* @__PURE__ */ v("ZodFile", (e, n) => { as.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Tc(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ Ke(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ $t(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ Tn(Array.isArray(r) ? r : [r], o)); }); function hm(e) { return /* @__PURE__ */ uc(Qi, e); } const eo = /* @__PURE__ */ v("ZodTransform", (e, n) => { ls.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Cc(e, r), e._zod.parse = (r, o) => { if (o.direction === "backward") throw new _n(e.constructor.name); r.addIssue = (i) => { if (typeof i == "string") r.issues.push(dt(i, r.value, n)); else { const a = i; a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), r.issues.push(dt(a)); } }; const t = n.transform(r.value, r); return t instanceof Promise ? t.then((i) => (r.value = i, r.fallback = !0, r)) : (r.value = t, r.fallback = !0, r); }; }); function lr(e) { return new eo({ type: "transform", transform: e }); } const ur = /* @__PURE__ */ v("ZodOptional", (e, n) => { Xr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => zi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Ot(e) { return new ur({ type: "optional", innerType: e }); } const to = /* @__PURE__ */ v("ZodExactOptional", (e, n) => { us.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => zi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function no(e) { return new to({ type: "optional", innerType: e }); } const ro = /* @__PURE__ */ v("ZodNullable", (e, n) => { ss.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Jc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Et(e) { return new ro({ type: "nullable", innerType: e }); } function bm(e) { return Ot(Et(e)); } const io = /* @__PURE__ */ v("ZodDefault", (e, n) => { cs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Gc(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap; }); function oo(e, n) { return new io({ type: "default", innerType: e, get defaultValue() { return typeof n == "function" ? n() : kn(n); } }); } const ao = /* @__PURE__ */ v("ZodPrefault", (e, n) => { ds.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Kc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function lo(e, n) { return new ao({ type: "prefault", innerType: e, get defaultValue() { return typeof n == "function" ? n() : kn(n); } }); } const sr = /* @__PURE__ */ v("ZodNonOptional", (e, n) => { ms.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => qc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function uo(e, n) { return new sr({ type: "nonoptional", innerType: e, ..._(n) }); } const so = /* @__PURE__ */ v("ZodSuccess", (e, n) => { fs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Nc(e, r, o), e.unwrap = () => e._zod.def.innerType; }); function $m(e) { return new so({ type: "success", innerType: e }); } const co = /* @__PURE__ */ v("ZodCatch", (e, n) => { ps.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Wc(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap; }); function mo(e, n) { return new co({ type: "catch", innerType: e, catchValue: typeof n == "function" ? n : () => n }); } const fo = /* @__PURE__ */ v("ZodNaN", (e, n) => { vs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => xc(e, r); }); function _m(e) { return /* @__PURE__ */ ac(fo, e); } const Qt = /* @__PURE__ */ v("ZodPipe", (e, n) => { Hr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Xc(e, r, o, t), e.in = n.in, e.out = n.out; }); function bn(e, n) { return new Qt({ type: "pipe", in: e, out: n // ...util.normalizeParams(params), }); } const en = /* @__PURE__ */ v("ZodCodec", (e, n) => { Qt.init(e, n), Yr.init(e, n); }); function ym(e, n, r) { return new en({ type: "pipe", in: e, out: n, transform: r.decode, reverseTransform: r.encode }); } function km(e) { const n = e._zod.def; return new en({ type: "pipe", in: n.out, out: n.in, transform: n.reverseTransform, reverseTransform: n.transform }); } const po = /* @__PURE__ */ v("ZodPreprocess", (e, n) => { Qt.init(e, n), gs.init(e, n); }), vo = /* @__PURE__ */ v("ZodReadonly", (e, n) => { hs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Hc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function go(e) { return new vo({ type: "readonly", innerType: e }); } const ho = /* @__PURE__ */ v("ZodTemplateLiteral", (e, n) => { bs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Uc(e, r, o); }); function Sm(e, n) { return new ho({ type: "template_literal", parts: e, ..._(n) }); } const bo = /* @__PURE__ */ v("ZodLazy", (e, n) => { ys.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Qc(e, r, o, t), e.unwrap = () => e._zod.def.getter(); }); function $o(e) { return new bo({ type: "lazy", getter: e }); } const _o = /* @__PURE__ */ v("ZodPromise", (e, n) => { _s.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Yc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function wm(e) { return new _o({ type: "promise", innerType: e }); } const yo = /* @__PURE__ */ v("ZodFunction", (e, n) => { $s.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ac(e, r); }); function $n(e) { return new yo({ type: "function", input: Array.isArray(e == null ? void 0 : e.input) ? Ki(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? Xt(rt()), output: (e == null ? void 0 : e.output) ?? rt() }); } const tn = /* @__PURE__ */ v("ZodCustom", (e, n) => { ks.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Pc(e, r); }); function Im(e) { const n = new se({ check: "custom" // ...util.normalizeParams(params), }); return n._zod.check = e, n; } function zm(e, n) { return /* @__PURE__ */ sc(tn, e ?? (() => !0), n); } function ko(e, n = {}) { return /* @__PURE__ */ cc(tn, e, n); } function So(e, n) { return /* @__PURE__ */ dc(e, n); } const Dm = fc, jm = pc; function Om(e, n = {}) { const r = new tn({ type: "custom", check: "custom", fn: (o) => o instanceof e, abort: !0, ..._(n) }); return r._zod.bag.Class = e, r._zod.check = (o) => { o.value instanceof e || o.issues.push({ code: "invalid_type", expected: e.name, input: o.value, inst: r, path: [...r._zod.def.path ?? []] }); }, r; } const Em = (...e) => /* @__PURE__ */ vc({ Codec: en, Boolean: Kt, String: Jt }, ...e); function xm(e) { const n = $o(() => or([Dt(e), Ui(), Ti(), Ci(), Xt(n), Wi(Dt(), n)])); return n; } function Um(e, n) { return new po({ type: "pipe", in: lr(e), out: n }); } const Uk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ZodAny: Zi, ZodArray: Ri, ZodBase64: Yn, ZodBase64URL: Qn, ZodBigInt: Wt, ZodBigIntFormat: nr, ZodBoolean: Kt, ZodCIDRv4: Xn, ZodCIDRv6: Hn, ZodCUID: Bn, ZodCUID2: Vn, ZodCatch: co, ZodCodec: en, ZodCustom: tn, ZodCustomStringFormat: _t, ZodDate: ir, ZodDefault: io, ZodDiscriminatedUnion: Vi, ZodE164: er, ZodEmail: Ln, ZodEmoji: Fn, ZodEnum: bt, ZodExactOptional: to, ZodFile: Qi, ZodFunction: yo, ZodGUID: jt, ZodIPv4: Kn, ZodIPv6: Wn, ZodIntersection: Ji, ZodJWT: tr, ZodKSUID: Gn, ZodLazy: bo, ZodLiteral: Yi, ZodMAC: xi, ZodMap: Xi, ZodNaN: fo, ZodNanoID: Rn, ZodNever: Li, ZodNonOptional: sr, ZodNull: Ai, ZodNullable: ro, ZodNumber: Gt, ZodNumberFormat: ot, ZodObject: Ht, ZodOptional: ur, ZodPipe: Qt, ZodPrefault: ao, ZodPreprocess: po, ZodPromise: _o, ZodReadonly: vo, ZodRecord: ht, ZodSet: Hi, ZodString: Jt, ZodStringFormat: ae, ZodSuccess: so, ZodSymbol: Ni, ZodTemplateLiteral: ho, ZodTransform: eo, ZodTuple: Gi, ZodType: X, ZodULID: Jn, ZodURL: qt, ZodUUID: Me, ZodUndefined: Pi, ZodUnion: Yt, ZodUnknown: Mi, ZodVoid: Fi, ZodXID: qn, ZodXor: Bi, _ZodString: Mn, _default: oo, _function: $n, any: nm, array: Xt, base64: Md, base64url: Ld, bigint: Hd, boolean: Ti, catch: mo, check: Im, cidrv4: Cd, cidrv6: Zd, codec: ym, cuid: Od, cuid2: Ed, custom: zm, date: im, describe: Dm, discriminatedUnion: cm, e164: Fd, email: $d, emoji: Dd, enum: ar, exactOptional: no, file: hm, float32: Gd, float64: Kd, function: $n, guid: _d, hash: qd, hex: Jd, hostname: Vd, httpUrl: zd, instanceof: Om, int: hn, int32: Wd, int64: Yd, intersection: qi, invertCodec: km, ipv4: Nd, ipv6: Ad, json: xm, jwt: Rd, keyof: om, ksuid: Td, lazy: $o, literal: gm, looseObject: um, looseRecord: mm, mac: Pd, map: fm, meta: jm, nan: _m, nanoid: jd, nativeEnum: vm, never: rr, nonoptional: uo, null: Ci, nullable: Et, nullish: bm, number: Ui, object: am, optional: Ot, partialRecord: dm, pipe: bn, prefault: lo, preprocess: Um, promise: wm, readonly: go, record: Wi, refine: ko, set: pm, strictObject: lm, string: Dt, stringFormat: Bd, stringbool: Em, success: $m, superRefine: So, symbol: em, templateLiteral: Sm, transform: lr, tuple: Ki, uint32: Xd, uint64: Qd, ulid: xd, undefined: tm, union: or, unknown: rt, url: Id, uuid: yd, uuidv4: kd, uuidv6: Sd, uuidv7: wd, void: rm, xid: Ud, xor: sm }, Symbol.toStringTag, { value: "Module" })), Tk = { 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 Nk(e) { _e({ customError: e }); } function Pk() { return _e().customError; } var $r; $r || ($r = {}); const P = { ...Uk, ...Ek, iso: od }, Ak = /* @__PURE__ */ new Set([ // Schema identification "$schema", "$ref", "$defs", "definitions", // Core schema keywords "$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor", // Type "type", "enum", "const", // Composition "anyOf", "oneOf", "allOf", "not", // Object "properties", "required", "additionalProperties", "patternProperties", "propertyNames", "minProperties", "maxProperties", // Array "items", "prefixItems", "additionalItems", "minItems", "maxItems", "uniqueItems", "contains", "minContains", "maxContains", // String "minLength", "maxLength", "pattern", "format", // Number "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum", "multipleOf", // Already handled metadata "description", "default", // Content "contentEncoding", "contentMediaType", "contentSchema", // Unsupported (error-throwing) "unevaluatedItems", "unevaluatedProperties", "if", "then", "else", "dependentSchemas", "dependentRequired", // OpenAPI "nullable", "readOnly" ]); function Ck(e, n) { const r = e.$schema; return r === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : r === "http://json-schema.org/draft-07/schema#" ? "draft-7" : r === "http://json-schema.org/draft-04/schema#" ? "draft-4" : n ?? "draft-2020-12"; } function Zk(e, n) { if (!e.startsWith("#")) throw new Error("External $ref is not supported, only local refs (#/...) are allowed"); const r = e.slice(1).split("/").filter(Boolean); if (r.length === 0) return n.rootSchema; const o = n.version === "draft-2020-12" ? "$defs" : "definitions"; if (r[0] === o) { const t = r[1]; if (!t || !n.defs[t]) throw new Error(`Reference not found: ${e}`); return n.defs[t]; } throw new Error(`Reference not found: ${e}`); } function Tm(e, n) { if (e.not !== void 0) { if (typeof e.not == "object" && Object.keys(e.not).length === 0) return P.never(); throw new Error("not is not supported in Zod (except { not: {} } for never)"); } if (e.unevaluatedItems !== void 0) throw new Error("unevaluatedItems is not supported"); if (e.unevaluatedProperties !== void 0) throw new Error("unevaluatedProperties is not supported"); if (e.if !== void 0 || e.then !== void 0 || e.else !== void 0) throw new Error("Conditional schemas (if/then/else) are not supported"); if (e.dependentSchemas !== void 0 || e.dependentRequired !== void 0) throw new Error("dependentSchemas and dependentRequired are not supported"); if (e.$ref) { const t = e.$ref; if (n.refs.has(t)) return n.refs.get(t); if (n.processing.has(t)) return P.lazy(() => { if (!n.refs.has(t)) throw new Error(`Circular reference not resolved: ${t}`); return n.refs.get(t); }); n.processing.add(t); const i = Zk(t, n), a = Se(i, n); return n.refs.set(t, a), n.processing.delete(t), a; } if (e.enum !== void 0) { const t = e.enum; if (n.version === "openapi-3.0" && e.nullable === !0 && t.length === 1 && t[0] === null) return P.null(); if (t.length === 0) return P.never(); if (t.length === 1) return P.literal(t[0]); if (t.every((a) => typeof a == "string")) return P.enum(t); const i = t.map((a) => P.literal(a)); return i.length < 2 ? i[0] : P.union([i[0], i[1], ...i.slice(2)]); } if (e.const !== void 0) return P.literal(e.const); const r = e.type; if (Array.isArray(r)) { const t = r.map((i) => { const a = { ...e, type: i }; return Tm(a, n); }); return t.length === 0 ? P.never() : t.length === 1 ? t[0] : P.union(t); } if (!r) return P.any(); let o; switch (r) { case "string": { let t = P.string(); if (e.format) { const i = e.format; i === "email" ? t = t.check(P.email()) : i === "uri" || i === "uri-reference" ? t = t.check(P.url()) : i === "uuid" || i === "guid" ? t = t.check(P.uuid()) : i === "date-time" ? t = t.check(P.iso.datetime()) : i === "date" ? t = t.check(P.iso.date()) : i === "time" ? t = t.check(P.iso.time()) : i === "duration" ? t = t.check(P.iso.duration()) : i === "ipv4" ? t = t.check(P.ipv4()) : i === "ipv6" ? t = t.check(P.ipv6()) : i === "mac" ? t = t.check(P.mac()) : i === "cidr" ? t = t.check(P.cidrv4()) : i === "cidr-v6" ? t = t.check(P.cidrv6()) : i === "base64" ? t = t.check(P.base64()) : i === "base64url" ? t = t.check(P.base64url()) : i === "e164" ? t = t.check(P.e164()) : i === "jwt" ? t = t.check(P.jwt()) : i === "emoji" ? t = t.check(P.emoji()) : i === "nanoid" ? t = t.check(P.nanoid()) : i === "cuid" ? t = t.check(P.cuid()) : i === "cuid2" ? t = t.check(P.cuid2()) : i === "ulid" ? t = t.check(P.ulid()) : i === "xid" ? t = t.check(P.xid()) : i === "ksuid" && (t = t.check(P.ksuid())); } typeof e.minLength == "number" && (t = t.min(e.minLength)), typeof e.maxLength == "number" && (t = t.max(e.maxLength)), e.pattern && (t = t.regex(new RegExp(e.pattern))), o = t; break; } case "number": case "integer": { let t = r === "integer" ? P.number().int() : P.number(); typeof e.minimum == "number" && (t = t.min(e.minimum)), typeof e.maximum == "number" && (t = t.max(e.maximum)), typeof e.exclusiveMinimum == "number" ? t = t.gt(e.exclusiveMinimum) : e.exclusiveMinimum === !0 && typeof e.minimum == "number" && (t = t.gt(e.minimum)), typeof e.exclusiveMaximum == "number" ? t = t.lt(e.exclusiveMaximum) : e.exclusiveMaximum === !0 && typeof e.maximum == "number" && (t = t.lt(e.maximum)), typeof e.multipleOf == "number" && (t = t.multipleOf(e.multipleOf)), o = t; break; } case "boolean": { o = P.boolean(); break; } case "null": { o = P.null(); break; } case "object": { const t = {}, i = e.properties || {}, a = new Set(e.required || []); for (const [s, u] of Object.entries(i)) { const d = Se(u, n); t[s] = a.has(s) ? d : d.optional(); } if (e.propertyNames) { const s = Se(e.propertyNames, n), u = e.additionalProperties && typeof e.additionalProperties == "object" ? Se(e.additionalProperties, n) : P.any(); if (Object.keys(t).length === 0) { o = P.record(s, u); break; } const d = P.object(t).passthrough(), c = P.looseRecord(s, u); o = P.intersection(d, c); break; } if (e.patternProperties) { const s = e.patternProperties, u = Object.keys(s), d = []; for (const m of u) { const f = Se(s[m], n), g = P.string().regex(new RegExp(m)); d.push(P.looseRecord(g, f)); } const c = []; if (Object.keys(t).length > 0 && c.push(P.object(t).passthrough()), c.push(...d), c.length === 0) o = P.object({}).passthrough(); else if (c.length === 1) o = c[0]; else { let m = P.intersection(c[0], c[1]); for (let f = 2; f < c.length; f++) m = P.intersection(m, c[f]); o = m; } break; } const l = P.object(t); e.additionalProperties === !1 ? o = l.strict() : typeof e.additionalProperties == "object" ? o = l.catchall(Se(e.additionalProperties, n)) : o = l.passthrough(); break; } case "array": { const t = e.prefixItems, i = e.items; if (t && Array.isArray(t)) { const a = t.map((s) => Se(s, n)), l = i && typeof i == "object" && !Array.isArray(i) ? Se(i, n) : void 0; l ? o = P.tuple(a).rest(l) : o = P.tuple(a), typeof e.minItems == "number" && (o = o.check(P.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(P.maxLength(e.maxItems))); } else if (Array.isArray(i)) { const a = i.map((s) => Se(s, n)), l = e.additionalItems && typeof e.additionalItems == "object" ? Se(e.additionalItems, n) : void 0; l ? o = P.tuple(a).rest(l) : o = P.tuple(a), typeof e.minItems == "number" && (o = o.check(P.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(P.maxLength(e.maxItems))); } else if (i !== void 0) { const a = Se(i, n); let l = P.array(a); typeof e.minItems == "number" && (l = l.min(e.minItems)), typeof e.maxItems == "number" && (l = l.max(e.maxItems)), o = l; } else o = P.array(P.any()); break; } default: throw new Error(`Unsupported type: ${r}`); } return o; } function Se(e, n) { if (typeof e == "boolean") return e ? P.any() : P.never(); let r = Tm(e, n); const o = e.type || e.enum !== void 0 || e.const !== void 0; if (e.anyOf && Array.isArray(e.anyOf)) { const l = e.anyOf.map((u) => Se(u, n)), s = P.union(l); r = o ? P.intersection(r, s) : s; } if (e.oneOf && Array.isArray(e.oneOf)) { const l = e.oneOf.map((u) => Se(u, n)), s = P.xor(l); r = o ? P.intersection(r, s) : s; } if (e.allOf && Array.isArray(e.allOf)) if (e.allOf.length === 0) r = o ? r : P.any(); else { let l = o ? r : Se(e.allOf[0], n); const s = o ? 0 : 1; for (let u = s; u < e.allOf.length; u++) l = P.intersection(l, Se(e.allOf[u], n)); r = l; } e.nullable === !0 && n.version === "openapi-3.0" && (r = P.nullable(r)), e.readOnly === !0 && (r = P.readonly(r)), e.default !== void 0 && (r = r.default(e.default)); const t = {}, i = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]; for (const l of i) l in e && (t[l] = e[l]); const a = ["contentEncoding", "contentMediaType", "contentSchema"]; for (const l of a) l in e && (t[l] = e[l]); for (const l of Object.keys(e)) Ak.has(l) || (t[l] = e[l]); return Object.keys(t).length > 0 && n.registry.add(r, t), e.description && (r = r.describe(e.description)), r; } function Mk(e, n) { if (typeof e == "boolean") return e ? P.any() : P.never(); let r; try { r = JSON.parse(JSON.stringify(e)); } catch { throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas"); } const o = Ck(r, n == null ? void 0 : n.defaultTarget), t = r.$defs || r.definitions || {}, i = { version: o, defs: t, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: r, registry: (n == null ? void 0 : n.registry) ?? Ne }; return Se(r, i); } function Lk(e) { return /* @__PURE__ */ xs(Jt, e); } function Fk(e) { return /* @__PURE__ */ Ms(Gt, e); } function Rk(e) { return /* @__PURE__ */ qs(Kt, e); } function Bk(e) { return /* @__PURE__ */ Ks(Wt, e); } function Vk(e) { return /* @__PURE__ */ oc(ir, e); } const Jk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, bigint: Bk, boolean: Rk, date: Vk, number: Fk, string: Lk }, Symbol.toStringTag, { value: "Module" })); _e(Ss()); const me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, $brand: Za, $input: js, $output: Ds, NEVER: Ca, TimePrecision: Ts, ZodAny: Zi, ZodArray: Ri, ZodBase64: Yn, ZodBase64URL: Qn, ZodBigInt: Wt, ZodBigIntFormat: nr, ZodBoolean: Kt, ZodCIDRv4: Xn, ZodCIDRv6: Hn, ZodCUID: Bn, ZodCUID2: Vn, ZodCatch: co, ZodCodec: en, ZodCustom: tn, ZodCustomStringFormat: _t, ZodDate: ir, ZodDefault: io, ZodDiscriminatedUnion: Vi, ZodE164: er, ZodEmail: Ln, ZodEmoji: Fn, ZodEnum: bt, ZodError: xk, ZodExactOptional: to, ZodFile: Qi, get ZodFirstPartyTypeKind() { return $r; }, ZodFunction: yo, ZodGUID: jt, ZodIPv4: Kn, ZodIPv6: Wn, ZodISODate: ji, ZodISODateTime: Di, ZodISODuration: Ei, ZodISOTime: Oi, ZodIntersection: Ji, ZodIssueCode: Tk, ZodJWT: tr, ZodKSUID: Gn, ZodLazy: bo, ZodLiteral: Yi, ZodMAC: xi, ZodMap: Xi, ZodNaN: fo, ZodNanoID: Rn, ZodNever: Li, ZodNonOptional: sr, ZodNull: Ai, ZodNullable: ro, ZodNumber: Gt, ZodNumberFormat: ot, ZodObject: Ht, ZodOptional: ur, ZodPipe: Qt, ZodPrefault: ao, ZodPreprocess: po, ZodPromise: _o, ZodReadonly: vo, ZodRealError: xe, ZodRecord: ht, ZodSet: Hi, ZodString: Jt, ZodStringFormat: ae, ZodSuccess: so, ZodSymbol: Ni, ZodTemplateLiteral: ho, ZodTransform: eo, ZodTuple: Gi, ZodType: X, ZodULID: Jn, ZodURL: qt, ZodUUID: Me, ZodUndefined: Pi, ZodUnion: Yt, ZodUnknown: Mi, ZodVoid: Fi, ZodXID: qn, ZodXor: Bi, _ZodString: Mn, _default: oo, _function: $n, any: nm, array: Xt, base64: Md, base64url: Ld, bigint: Hd, boolean: Ti, catch: mo, check: Im, cidrv4: Cd, cidrv6: Zd, clone: Ae, codec: ym, coerce: Jk, config: _e, core: Ok, cuid: Od, cuid2: Ed, custom: zm, date: im, decode: md, decodeAsync: pd, describe: Dm, discriminatedUnion: cm, e164: Fd, email: $d, emoji: Dd, encode: dd, encodeAsync: fd, endsWith: Un, enum: ar, exactOptional: no, file: hm, flattenError: Or, float32: Gd, float64: Kd, formatError: Er, fromJSONSchema: Mk, function: $n, getErrorMap: Pk, globalRegistry: Ne, gt: Ge, gte: De, guid: _d, hash: qd, hex: Jd, hostname: Vd, httpUrl: zd, includes: En, instanceof: Om, int: hn, int32: Wd, int64: Yd, intersection: qi, invertCodec: km, ipv4: Nd, ipv6: Ad, iso: od, json: xm, jwt: Rd, keyof: om, ksuid: Td, lazy: $o, length: Rt, literal: gm, locales: zs, looseObject: um, looseRecord: mm, lowercase: jn, lt: qe, lte: Pe, mac: Pd, map: fm, maxLength: Ft, maxSize: $t, meta: jm, mime: Tn, minLength: nt, minSize: Ke, multipleOf: ft, nan: _m, nanoid: jd, nativeEnum: vm, negative: yi, never: rr, nonnegative: Si, nonoptional: uo, nonpositive: ki, normalize: Nn, null: Ci, nullable: Et, nullish: bm, number: Ui, object: am, optional: Ot, overwrite: Be, parse: ld, parseAsync: ud, partialRecord: dm, pipe: bn, positive: _i, prefault: lo, preprocess: Um, prettifyError: al, promise: wm, property: wi, readonly: go, record: Wi, refine: ko, regex: Dn, regexes: Rr, registry: Qr, safeDecode: gd, safeDecodeAsync: bd, safeEncode: vd, safeEncodeAsync: hd, safeParse: sd, safeParseAsync: cd, set: pm, setErrorMap: Nk, size: Lt, slugify: Zn, startsWith: xn, strictObject: lm, string: Dt, stringFormat: Bd, stringbool: Em, success: $m, superRefine: So, symbol: em, templateLiteral: Sm, toJSONSchema: ed, toLowerCase: An, toUpperCase: Cn, transform: lr, treeifyError: il, trim: Pn, tuple: Ki, uint32: Xd, uint64: Qd, ulid: xd, undefined: tm, union: or, unknown: rt, uppercase: On, url: Id, util: nl, uuid: yd, uuidv4: kd, uuidv6: Sd, uuidv7: wd, void: rm, xid: Ud, xor: sm }, Symbol.toStringTag, { value: "Module" })); var qk = {}; globalThis.cacheMemoria_cache = qk; var Gk = ((e) => (e.codigo = "codigo", e.excluido = "excluido", e.data_hora_criacao = "data_hora_criacao", e.data_hora_atualizacao = "data_hora_atualizacao", e.codigo_usuario_criacao = "codigo_usuario_criacao", e.codigo_usuario_atualizacao = "codigo_usuario_atualizacao", e.versao = "versao", e))(Gk || {}), Kk = ((e) => (e.token = "token", e))(Kk || {}), Wk = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(Wk || {}), Xk = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))(Xk || {}), Hk = me.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]); me.object({ coluna: me.string(), valor: me.any(), operador: Hk, ou: me.boolean().optional() }); var Yk = me.enum([">", "<", ">=", "<=", "=", "!=", "in", "like", "∩"]), Qk = /^\{[\w:]+\}$/, eS = /^\w+(\.\w+)*$/, tS = me.string().regex(eS, "Coluna inválida").describe("nome da coluna ou caminho aninhado do jsonb"), nS = me.object({ id: me.string().describe("id da condição do filtro").regex(Qk, "O id deve seguir o formato {identificador}"), coluna: tS, operador: Yk, valor: me.any().describe("valor de comparação") }), rS = (e) => { let n = (e.match(/\{[\w:]+\}|\bNAO\b|\bE\b|\bOU\b|\(|\)/g) || []).join(""), r = e.replace(/\s+/g, ""), o = n.replace(/\s+/g, ""); if (r !== o) return !1; let t = e.replace(/\{[\w:]+\}/g, "true").replace(/\bNAO\b/g, "!").replace(/\bE\b/g, "&&").replace(/\bOU\b/g, "||"); try { return new Function(`return (${t})`)(), !0; } catch { return !1; } }, iS = me.object({ condicoes: me.array(nS), formula: me.string().refine(rS, { message: "Fórmula inválida. Use apenas referências de condições {id} ou {id:sufixo}, operadores E/OU/NAO e parênteses." }) }).superRefine((e, n) => { let r = new Set(e.condicoes.map((t) => t.id)), o = e.formula.match(/\{[\w:]+\}/g) || []; for (let t of o) r.has(t) || n.addIssue({ code: "custom", path: ["formula"], message: `A referência ${t} não existe em condicoes.` }); }), oS = (e) => iS.parse(e), jS = () => ({ criarFiltroDelta: oS }), aS = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(aS || {}), lS = ((e) => (e.modelo = "000_modelo", e.vencida = "100_vencida", e.expirado = "200_expirado", e.alerta = "300_alerta", e.protocoladafora = "350_protocoladafora", e.protocolada = "400_protocolada", e.protocoladaApenas = "430_protocolada", e.protocolada_alteracao = "450_protocolada", e.prazo = "500_prazo", e.emitida = "515_emitida", e.valida = "518_valida", e.novo = "520_novo", e.recebido = "521_recebido", e.em_andamento = "530_em_andamento", e.aguardando = "530_aguardando", e.aguardandoresposta = "540_aguardandoresposta", e.suspensaotemporaria = "540_suspensaotemporaria", e.cancelada = "550_cancelada", e.execucao = "560_execucao", e.pendente = "570_pendente", e.executadafora = "600_executadafora", e.executada = "700_executada", e.naoexecutada = "701_naoexecutada", e.concluida = "730_concluida", e.respondido_negado = "740_respondido_negado", e.respondido_aceito = "741_respondido_aceito", e.atendidoparcial = "742_atendidoparcial", e.naoatendido = "743_naoatendido", e.atendido = "744_atendido", e.renovada = "760_renovada", e.finalizada = "800_finalizada", e.emitirnota = "101_emitirnota", e.faturaatrasada = "301_faturaatrasada", e.pagarfatura = "302_pagarfatura", e.aguardandoconfirmacao = "531_aguardandoconfirmacao", e.agendado = "701_agendado", e.faturapaga = "801_faturapaga", e.excluida = "999_excluida", e.requerida = "401_requerida", e.vigente = "516_vigente", e.emrenovacao = "402_emrenovacao", e.arquivada = "801_arquivada", e.aguardando_sincronizacao = "999_aguardando_sincronizacao", e.nao_conforme = "710_nao_conforme", e.conforme = "720_conforme", e.nao_aplicavel = "730_nao_aplicavel", e.parcial = "715_parcial", e))(lS || {}), uS = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(uS || {}); me.object({ formato: me.literal("decimal").default("decimal"), datum: me.literal("EPSG:4326").default("EPSG:4326"), latitude: me.number(), longitude: me.number() }); var sS = /^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$/, cS = /^[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/[A-Z0-9]{4}-\d{2}$/i, dS = Number((/* @__PURE__ */ new Date()).toISOString().slice(0, 7).replace("-", "")), mS = me.string().regex(dS < 202407 ? sS : cS).describe("Documento (CNPJ) no formato XX.XXX.XXX/XXXX-XX"), fS = me.string().regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/).describe("Documento (CPF) no formato XXX.XXX.XXX-XX"); fS.or(mS).describe("CPF ou CNPJ"); const OS = { install(e) { e.component("EliOlaMundo", p$), e.component("EliBotao", ba), e.component("EliBadge", Sr), e.component("EliCartao", nf), e.component("EliTabela", Zb), e.component("EliEntradaTexto", wr), e.component("EliEntradaNumero", Ia), e.component("EliEntradaDataHora", wa), e.component("EliEntradaParagrafo", za), e.component("EliEntradaSelecao", Da), e.component("EliEntradaSelecaoMultipla", ja), e.component("EliEntradaCoordenadas", Of), e.component("EliFeedbackWidget", c$); } }; export { Sr as EliBadge, ba as EliBotao, nf as EliCartao, af as EliEntradaConfirmacao, Of as EliEntradaCoordenadas, wa as EliEntradaDataHora, Ia as EliEntradaNumero, za as EliEntradaParagrafo, Da as EliEntradaSelecao, ja as EliEntradaSelecaoMultipla, wr as EliEntradaTexto, c$ as EliFeedbackWidget, p$ as EliOlaMundo, Zb as EliTabela, DS as celulaTabela, OS as default, jS as iniciarFiltroDelta };