denwa-web-shared 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/denwa-web-shared.cjs.js +16 -14
- package/dist/denwa-web-shared.es.js +4415 -2005
- package/dist/denwa-web-shared.umd.js +16 -14
- package/dist/shared/ui/html-content.d.ts +7 -0
- package/dist/shared/ui/index.d.ts +1 -0
- package/package.json +3 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function(x,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],F):(x=typeof globalThis<"u"?globalThis:x||self,F(x["denwa-web-shared"]={},x.React))})(this,(function(x,F){"use strict";const Pr={seconds:{minutes10:600},milliseconds:{milliseconds100:100,milliseconds200:200,milliseconds500:500,seconds1:1e3,seconds2:2e3,seconds5:5e3,minutes1:6e4}},W={VIEW_PORT:{EXTRA_SMALL:280,SMALL:320,SMALL_MOBILE:380,MOBILE:450,MEDIUM:500,EXTRA_MEDIUM:600,TABLET:768,LAPTOP:1024,LAPTOP_BIG:1200,BIG:1440,VERY_BIG:1920},OFFSET:{1:8,2:16,3:24,4:32,5:40,6:48,7:56,8:64}},Tr=e=>{F.useEffect(()=>{if(!e)return;const t=window.scrollY;return()=>{window.scrollTo(0,t)}},[])},Rr=()=>{const[e,t]=F.useState(!1);return F.useEffect(()=>{t(!0)},[]),e};var Sr=typeof window<"u",Ar=function(e,t){var r=F.useState(null),n=r[0],o=r[1];return F.useEffect(function(){if(e.current&&typeof IntersectionObserver=="function"){var i=function(a){o(a[0])},s=new IntersectionObserver(i,t);return s.observe(e.current),function(){o(null),s.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),n},Or=function(e,t){return Sr?window.matchMedia(e).matches:(process.env.NODE_ENV!=="production"&&console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."),!1)},B=function(e,t){var r=F.useState(Or(e)),n=r[0],o=r[1];return F.useEffect(function(){var i=!0,s=window.matchMedia(e),a=function(){i&&o(!!s.matches)};return s.addEventListener("change",a),o(s.matches),function(){i=!1,s.removeEventListener("change",a)}},[e]),n};const Cr=()=>{const e=B(`(min-width: ${W.VIEW_PORT.LAPTOP_BIG}px)`),t=B(`(max-width: ${W.VIEW_PORT.LAPTOP_BIG}px)`);return{isLaptopBigMinWidth:e,isLaptopBigMaxWidth:t}},jr=()=>{const e=B(`(min-width: ${W.VIEW_PORT.LAPTOP}px)`),t=B(`(max-width: ${W.VIEW_PORT.LAPTOP}px)`);return{isLaptopMinWidth:e,isLaptopMaxWidth:t}},Nr=()=>{const e=B(`(min-width: ${W.VIEW_PORT.TABLET}px)`),t=B(`(max-width: ${W.VIEW_PORT.TABLET}px)`);return{isTabletMinWidth:e,isTabletMaxWidth:t}},Mr=()=>{const e=B(`(min-width: ${W.VIEW_PORT.EXTRA_MEDIUM}px)`),t=B(`(max-width: ${W.VIEW_PORT.EXTRA_MEDIUM}px)`);return{isExtraMediumMinWidth:e,isExtraMediumMaxWidth:t}},Lr=()=>{const e=B(`(min-width: ${W.VIEW_PORT.MOBILE}px)`),t=B(`(max-width: ${W.VIEW_PORT.MOBILE}px)`);return{isMobileMinWidth:e,isMobileMaxWidth:t}},Dr=()=>{const e=B(`(min-width: ${W.VIEW_PORT.SMALL}px)`),t=B(`(max-width: ${W.VIEW_PORT.SMALL}px)`);return{isSmallMinWidth:e,isSmallMaxWidth:t}},Vr=e=>new Intl.NumberFormat(e),gt=(e,t)=>e[t],Fr=e=>{let t=e;if(t!=="+"&&Number.isNaN(Number(t))||t.length>12)return"";const r=t.split(""),n=r[0],o=r[1];return n==="7"||n==="8"?r[0]="+7":`${n}${o}`=="+8"?r[1]="7":n&&n!=="+"&&(r[0]=`+${n}`),t=r.join("").trim(),t},Ur=(e,t)=>{if(!e)return t.main;const r=e.split(".")[0],n=t[r];return n||t.main},ue=({text:e,subdomain:t,SUBDOMAIN_NAME:r,SUBDOMAIN_MASK:n})=>{const o=gt(r,t);if(!t)return e;let i=e;const{name:s,declination:a,region:c,regionDeclination:l}=o,f=new RegExp(n.CITY,"g"),b=new RegExp(n.CITY_DECL,"g"),w=new RegExp(n.CITY_REGION,"g"),v=new RegExp(n.CITY_REGION_DECL,"g");return i=i.replace(f,s),i=i.replace(b,a),i=i.replace(w,c),i=i.replace(v,l),i},Wr=({subdomain:e,metaData:t,host:r,SUBDOMAIN_NAME:n,SUBDOMAIN_MASK:o,DEFAULT_SEO_TEXT:i})=>{const{title:s,description:a,keywords:c,canonical:l}=t,f=e==="main"?r:`${e}.${r}`;let b=s,w=a,v=c;const z={};return s?b=ue({text:s,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:n}):b=ue({text:i.title,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:n}),a?w=ue({text:a,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:n}):w=ue({text:i.description,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:n}),c?v=ue({text:c,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:n}):v=ue({text:i.keywords,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:n}),l!==void 0&&(z.canonical=`https://${f}${l}`),{title:b,description:w,keywords:v,alternates:Object.keys(z).length?z:void 0}},Gr=e=>{const n=decodeURI(e).replace(/^\/[^\/]*\//,"").split("--"),o={};return n.forEach(i=>{const[s,a]=i.split("__");s&&a&&(o[s]=a.replace(/_/g," "))}),o},Br=({color1:e,color2:t,notFoundText:r,COLORS_NAMES:n})=>{const o=n[e],i=t?n[t]:null;return o&&i?`${o}/${i}`:o||r},Yr=(e,t,r)=>{if(!e)return{buttons:[]};const{page:n,pages:o}=e;if(!n||!o)return{buttons:[]};const i=new URLSearchParams(r),s=[],a=8,c=Math.floor(a/2);let l=Math.max(1,n-c),f=Math.min(o,n+c);f-l+1<a&&(l=Math.max(1,f-a+1),f=Math.min(o,l+a-1));for(let $=l;$<=f;$++){const L=new URLSearchParams(i);L.set("page",$.toString()),s.push({label:$.toString(),href:`${t}?${L.toString()}`,isActive:$===n})}const w=s.some($=>$.label==="1")?void 0:{label:"1",href:`${t}?${new URLSearchParams({...Object.fromEntries(i),page:"1"}).toString()}`,isActive:n===1},z=s.some($=>$.label===o.toString())?void 0:{label:o.toString(),href:`${t}?${new URLSearchParams({...Object.fromEntries(i),page:o.toString()}).toString()}`,isActive:n===o};return{buttons:s,firstPage:w,lastPage:z}};function bt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=bt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Jr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=bt(e))&&(n&&(n+=" "),n+=t);return n}const qe="-",Xr=e=>{const t=Kr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(qe);return a[0]===""&&a.length!==1&&a.shift(),vt(a,t)||qr(s)},getConflictingClassGroupIds:(s,a)=>{const c=r[s]||[];return a&&n[s]?[...c,...n[s]]:c}}},vt=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?vt(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(qe);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},_t=/^\[(.+)\]$/,qr=e=>{if(_t.test(e)){const t=_t.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Kr=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Ke(r[o],n,o,t);return n},Ke=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wt(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Hr(o)){Ke(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Ke(s,wt(t,i),r,n)})})},wt=(e,t)=>{let r=e;return t.split(qe).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Hr=e=>e.isThemeGetter,Qr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},He="!",Qe=":",en=Qe.length,tn=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,c=0,l;for(let z=0;z<o.length;z++){let $=o[z];if(s===0&&a===0){if($===Qe){i.push(o.slice(c,z)),c=z+en;continue}if($==="/"){l=z;continue}}$==="["?s++:$==="]"?s--:$==="("?a++:$===")"&&a--}const f=i.length===0?o:o.substring(c),b=rn(f),w=b!==f,v=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:v}};if(t){const o=t+Qe,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},rn=e=>e.endsWith(He)?e.substring(0,e.length-1):e.startsWith(He)?e.substring(1):e,nn=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},on=e=>({cache:Qr(e.cacheSize),parseClassName:tn(e),sortModifiers:nn(e),...Xr(e)}),sn=/\s+/,an=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(sn);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:b,modifiers:w,hasImportantModifier:v,baseClassName:z,maybePostfixModifierPosition:$}=r(f);if(b){c=f+(c.length>0?" "+c:c);continue}let L=!!$,G=n(L?z.substring(0,$):z);if(!G){if(!L){c=f+(c.length>0?" "+c:c);continue}if(G=n(z),!G){c=f+(c.length>0?" "+c:c);continue}L=!1}const K=i(w).join(":"),N=v?K+He:K,O=N+G;if(s.includes(O))continue;s.push(O);const D=o(G,L);for(let ne=0;ne<D.length;++ne){const pe=D[ne];s.push(N+pe)}c=f+(c.length>0?" "+c:c)}return c};function cn(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=kt(t))&&(n&&(n+=" "),n+=r);return n}const kt=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=kt(e[n]))&&(r&&(r+=" "),r+=t);return r};function un(e,...t){let r,n,o,i=s;function s(c){const l=t.reduce((f,b)=>b(f),e());return r=on(l),n=r.cache.get,o=r.cache.set,i=a,a(c)}function a(c){const l=n(c);if(l)return l;const f=an(c,r);return o(c,f),f}return function(){return i(cn.apply(null,arguments))}}const j=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},yt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ln=/^\d+\/\d+$/,dn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=e=>ln.test(e),y=e=>!!e&&!Number.isNaN(Number(e)),se=e=>!!e&&Number.isInteger(Number(e)),et=e=>e.endsWith("%")&&y(e.slice(0,-1)),Q=e=>dn.test(e),gn=()=>!0,bn=e=>fn.test(e)&&!pn.test(e),xt=()=>!1,vn=e=>mn.test(e),_n=e=>hn.test(e),wn=e=>!p(e)&&!m(e),kn=e=>be(e,Pt,xt),p=e=>yt.test(e),le=e=>be(e,Tt,bn),tt=e=>be(e,En,y),$t=e=>be(e,It,xt),yn=e=>be(e,Zt,_n),Ae=e=>be(e,Rt,vn),m=e=>zt.test(e),xe=e=>ve(e,Tt),zn=e=>ve(e,In),Et=e=>ve(e,It),xn=e=>ve(e,Pt),$n=e=>ve(e,Zt),Oe=e=>ve(e,Rt,!0),be=(e,t,r)=>{const n=yt.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},ve=(e,t,r=!1)=>{const n=zt.exec(e);return n?n[1]?t(n[1]):r:!1},It=e=>e==="position"||e==="percentage",Zt=e=>e==="image"||e==="url",Pt=e=>e==="length"||e==="size"||e==="bg-size",Tt=e=>e==="length",En=e=>e==="number",In=e=>e==="family-name",Rt=e=>e==="shadow",Zn=un(()=>{const e=j("color"),t=j("font"),r=j("text"),n=j("font-weight"),o=j("tracking"),i=j("leading"),s=j("breakpoint"),a=j("container"),c=j("spacing"),l=j("radius"),f=j("shadow"),b=j("inset-shadow"),w=j("text-shadow"),v=j("drop-shadow"),z=j("blur"),$=j("perspective"),L=j("aspect"),G=j("ease"),K=j("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...O(),m,p],ne=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto","contain","none"],_=()=>[m,p,c],X=()=>[ge,"full","auto",..._()],Ye=()=>[se,"none","subgrid",m,p],ye=()=>["auto",{span:["full",se,m,p]},se,m,p],me=()=>[se,"auto",m,p],Je=()=>["auto","min","max","fr",m,p],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",..._()],H=()=>[ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],g=()=>[e,m,p],Re=()=>[...O(),Et,$t,{position:[m,p]}],d=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",xn,kn,{size:[m,p]}],I=()=>[et,xe,le],E=()=>["","none","full",l,m,p],R=()=>["",y,xe,le],V=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>[y,et,Et,$t],M=()=>["","none",z,m,p],q=()=>["none",y,m,p],ce=()=>["none",y,m,p],Se=()=>[y,m,p],Xe=()=>[ge,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Q],breakpoint:[Q],color:[gn],container:[Q],"drop-shadow":[Q],ease:["in","out","in-out"],font:[wn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Q],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Q],shadow:[Q],spacing:["px",y],text:[Q],"text-shadow":[Q],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ge,p,m,L]}],container:["container"],columns:[{columns:[y,p,m,a]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{start:X()}],end:[{end:X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[se,"auto",m,p]}],basis:[{basis:[ge,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[y,ge,"auto","initial","none",p]}],grow:[{grow:["",y,m,p]}],shrink:[{shrink:["",y,m,p]}],order:[{order:[se,"first","last","none",m,p]}],"grid-cols":[{"grid-cols":Ye()}],"col-start-end":[{col:ye()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":Ye()}],"row-start-end":[{row:ye()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Je()}],"auto-rows":[{"auto-rows":Je()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[a,"screen",...H()]}],"min-w":[{"min-w":[a,"screen","none",...H()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,xe,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,m,tt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",et,p]}],"font-family":[{font:[zn,p,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,m,p]}],"line-clamp":[{"line-clamp":[y,"none",m,tt]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",m,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:g()}],"text-color":[{text:g()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[y,"from-font","auto",m,le]}],"text-decoration-color":[{decoration:g()}],"underline-offset":[{"underline-offset":[y,"auto",m,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:d()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},se,m,p],radial:["",m,p],conic:[se,m,p]},$n,yn]}],"bg-color":[{bg:g()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:g()}],"gradient-via":[{via:g()}],"gradient-to":[{to:g()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:g()}],"border-color-x":[{"border-x":g()}],"border-color-y":[{"border-y":g()}],"border-color-s":[{"border-s":g()}],"border-color-e":[{"border-e":g()}],"border-color-t":[{"border-t":g()}],"border-color-r":[{"border-r":g()}],"border-color-b":[{"border-b":g()}],"border-color-l":[{"border-l":g()}],"divide-color":[{divide:g()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[y,m,p]}],"outline-w":[{outline:["",y,xe,le]}],"outline-color":[{outline:g()}],shadow:[{shadow:["","none",f,Oe,Ae]}],"shadow-color":[{shadow:g()}],"inset-shadow":[{"inset-shadow":["none",b,Oe,Ae]}],"inset-shadow-color":[{"inset-shadow":g()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:g()}],"ring-offset-w":[{"ring-offset":[y,le]}],"ring-offset-color":[{"ring-offset":g()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":g()}],"text-shadow":[{"text-shadow":["none",w,Oe,Ae]}],"text-shadow-color":[{"text-shadow":g()}],opacity:[{opacity:[y,m,p]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[y]}],"mask-image-linear-from-pos":[{"mask-linear-from":S()}],"mask-image-linear-to-pos":[{"mask-linear-to":S()}],"mask-image-linear-from-color":[{"mask-linear-from":g()}],"mask-image-linear-to-color":[{"mask-linear-to":g()}],"mask-image-t-from-pos":[{"mask-t-from":S()}],"mask-image-t-to-pos":[{"mask-t-to":S()}],"mask-image-t-from-color":[{"mask-t-from":g()}],"mask-image-t-to-color":[{"mask-t-to":g()}],"mask-image-r-from-pos":[{"mask-r-from":S()}],"mask-image-r-to-pos":[{"mask-r-to":S()}],"mask-image-r-from-color":[{"mask-r-from":g()}],"mask-image-r-to-color":[{"mask-r-to":g()}],"mask-image-b-from-pos":[{"mask-b-from":S()}],"mask-image-b-to-pos":[{"mask-b-to":S()}],"mask-image-b-from-color":[{"mask-b-from":g()}],"mask-image-b-to-color":[{"mask-b-to":g()}],"mask-image-l-from-pos":[{"mask-l-from":S()}],"mask-image-l-to-pos":[{"mask-l-to":S()}],"mask-image-l-from-color":[{"mask-l-from":g()}],"mask-image-l-to-color":[{"mask-l-to":g()}],"mask-image-x-from-pos":[{"mask-x-from":S()}],"mask-image-x-to-pos":[{"mask-x-to":S()}],"mask-image-x-from-color":[{"mask-x-from":g()}],"mask-image-x-to-color":[{"mask-x-to":g()}],"mask-image-y-from-pos":[{"mask-y-from":S()}],"mask-image-y-to-pos":[{"mask-y-to":S()}],"mask-image-y-from-color":[{"mask-y-from":g()}],"mask-image-y-to-color":[{"mask-y-to":g()}],"mask-image-radial":[{"mask-radial":[m,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":S()}],"mask-image-radial-to-pos":[{"mask-radial-to":S()}],"mask-image-radial-from-color":[{"mask-radial-from":g()}],"mask-image-radial-to-color":[{"mask-radial-to":g()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[y]}],"mask-image-conic-from-pos":[{"mask-conic-from":S()}],"mask-image-conic-to-pos":[{"mask-conic-to":S()}],"mask-image-conic-from-color":[{"mask-conic-from":g()}],"mask-image-conic-to-color":[{"mask-conic-to":g()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:d()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",m,p]}],filter:[{filter:["","none",m,p]}],blur:[{blur:M()}],brightness:[{brightness:[y,m,p]}],contrast:[{contrast:[y,m,p]}],"drop-shadow":[{"drop-shadow":["","none",v,Oe,Ae]}],"drop-shadow-color":[{"drop-shadow":g()}],grayscale:[{grayscale:["",y,m,p]}],"hue-rotate":[{"hue-rotate":[y,m,p]}],invert:[{invert:["",y,m,p]}],saturate:[{saturate:[y,m,p]}],sepia:[{sepia:["",y,m,p]}],"backdrop-filter":[{"backdrop-filter":["","none",m,p]}],"backdrop-blur":[{"backdrop-blur":M()}],"backdrop-brightness":[{"backdrop-brightness":[y,m,p]}],"backdrop-contrast":[{"backdrop-contrast":[y,m,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",y,m,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y,m,p]}],"backdrop-invert":[{"backdrop-invert":["",y,m,p]}],"backdrop-opacity":[{"backdrop-opacity":[y,m,p]}],"backdrop-saturate":[{"backdrop-saturate":[y,m,p]}],"backdrop-sepia":[{"backdrop-sepia":["",y,m,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[y,"initial",m,p]}],ease:[{ease:["linear","initial",G,m,p]}],delay:[{delay:[y,m,p]}],animate:[{animate:["none",K,m,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[$,m,p]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[m,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Xe()}],"translate-x":[{"translate-x":Xe()}],"translate-y":[{"translate-y":Xe()}],"translate-z":[{"translate-z":Xe()}],"translate-none":["translate-none"],accent:[{accent:g()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:g()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,p]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,p]}],fill:[{fill:["none",...g()]}],"stroke-w":[{stroke:[y,xe,le,tt]}],stroke:[{stroke:["none",...g()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function rt(...e){return Zn(Jr(e))}function u(e,t,r){function n(a,c){var l;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(l=a._zod).traits??(l.traits=new Set),a._zod.traits.add(e),t(a,c);for(const f in s.prototype)f in a||Object.defineProperty(a,f,{value:s.prototype[f].bind(a)});a._zod.constr=s,a._zod.def=c}const o=(r==null?void 0:r.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var c;const l=r!=null&&r.Parent?new i:this;n(l,a),(c=l._zod).deferred??(c.deferred=[]);for(const f of l._zod.deferred)f();return l}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var c,l;return r!=null&&r.Parent&&a instanceof r.Parent?!0:(l=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:l.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}class _e extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class St extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const At={};function de(e){return At}function Pn(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function nt(e,t){return typeof t=="bigint"?t.toString():t}function ot(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function st(e){return e==null}function it(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Tn(e,t){const r=(e.toString().split(".")[1]||"").length,n=t.toString();let o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c!=null&&c[1]&&(o=Number.parseInt(c[1]))}const i=r>o?r:o,s=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return s%a/10**i}const Ot=Symbol("evaluating");function Z(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Ot)return n===void 0&&(n=Ot,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Rn(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ie(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function we(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function Ct(e){return JSON.stringify(e)}const jt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ce(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Sn=ot(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function $e(e){if(Ce(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(Ce(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Nt(e){return $e(e)?{...e}:e}const An=new Set(["string","number","symbol"]);function je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ae(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(n._zod.parent=e),n}function h(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function On(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Cn={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]};function jn(e,t){const r=e._zod.def,n=we(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=r.shape[i])}return ie(this,"shape",o),o},checks:[]});return ae(e,n)}function Nn(e,t){const r=e._zod.def,n=we(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return ie(this,"shape",o),o},checks:[]});return ae(e,n)}function Mn(e,t){if(!$e(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=we(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return ie(this,"shape",i),i},checks:[]});return ae(e,o)}function Ln(e,t){if(!$e(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return ie(this,"shape",n),n},checks:e._zod.def.checks};return ae(e,r)}function Dn(e,t){const r=we(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return ie(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return ae(e,r)}function Vn(e,t,r){const n=we(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=e?new e({type:"optional",innerType:o[s]}):o[s])}else for(const s in o)i[s]=e?new e({type:"optional",innerType:o[s]}):o[s];return ie(this,"shape",i),i},checks:[]});return ae(t,n)}function Fn(e,t,r){const n=we(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return ie(this,"shape",i),i},checks:[]});return ae(t,n)}function ke(e,t=0){var r;if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(((r=e.issues[n])==null?void 0:r.continue)!==!0)return!0;return!1}function Mt(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function Ne(e){return typeof e=="string"?e:e==null?void 0:e.message}function fe(e,t,r){var o,i,s,a,c,l;const n={...e,path:e.path??[]};if(!e.message){const f=Ne((s=(i=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:s.call(i,e))??Ne((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??Ne((c=r.customError)==null?void 0:c.call(r,e))??Ne((l=r.localeError)==null?void 0:l.call(r,e))??"Invalid input";n.message=f}return delete n.inst,delete n.continue,t!=null&&t.reportInput||delete n.input,n}function at(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ee(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const Lt=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,nt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dt=u("$ZodError",Lt),Vt=u("$ZodError",Lt,{Parent:Error});function Un(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function Wn(e,t){const r=t||function(i){return i.message},n={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)n._errors.push(r(s));else{let a=n,c=0;for(;c<s.path.length;){const l=s.path[c];c===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(r(s))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return o(e),n}const ct=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new _e;if(s.issues.length){const a=new((o==null?void 0:o.Err)??e)(s.issues.map(c=>fe(c,i,de())));throw jt(a,o==null?void 0:o.callee),a}return s.value},ut=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new((o==null?void 0:o.Err)??e)(s.issues.map(c=>fe(c,i,de())));throw jt(a,o==null?void 0:o.callee),a}return s.value},Me=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new _e;return i.issues.length?{success:!1,error:new(e??Dt)(i.issues.map(s=>fe(s,o,de())))}:{success:!0,data:i.value}},Gn=Me(Vt),Le=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>fe(s,o,de())))}:{success:!0,data:i.value}},Bn=Le(Vt),Yn=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ct(e)(t,r,o)},Jn=e=>(t,r,n)=>ct(e)(t,r,n),Xn=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ut(e)(t,r,o)},qn=e=>async(t,r,n)=>ut(e)(t,r,n),Kn=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Me(e)(t,r,o)},Hn=e=>(t,r,n)=>Me(e)(t,r,n),Qn=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Le(e)(t,r,o)},eo=e=>async(t,r,n)=>Le(e)(t,r,n),to=/^[cC][^\s-]{8,}$/,ro=/^[0-9a-z]+$/,no=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,oo=/^[0-9a-vA-V]{20}$/,so=/^[A-Za-z0-9]{27}$/,io=/^[a-zA-Z0-9_-]{21}$/,ao=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,co=/^([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})$/,Ft=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)$/,uo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lo="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fo(){return new RegExp(lo,"u")}const po=/^(?:(?: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])$/,mo=/^(([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})$/,ho=/^((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])$/,go=/^(([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])$/,bo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ut=/^[A-Za-z0-9_-]*$/,vo=/^(?=.{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])?)*\.?$/,_o=/^\+(?:[0-9]){6,14}[0-9]$/,Wt="(?:(?:\\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])))",wo=new RegExp(`^${Wt}$`);function Gt(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ko(e){return new RegExp(`^${Gt(e)}$`)}function yo(e){const t=Gt({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Wt}T(?:${n})$`)}const zo=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xo=/^\d+$/,$o=/^-?\d+(?:\.\d+)?/i,Eo=/^[^A-Z]*$/,Io=/^[^a-z]*$/,U=u("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Bt={number:"number",bigint:"bigint",object:"date"},Yt=u("$ZodCheckLessThan",(e,t)=>{U.init(e,t);const r=Bt[typeof t.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jt=u("$ZodCheckGreaterThan",(e,t)=>{U.init(e,t);const r=Bt[typeof t.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Zo=u("$ZodCheckMultipleOf",(e,t)=>{U.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Tn(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Po=u("$ZodCheckNumberFormat",(e,t)=>{var s;U.init(e,t),t.format=t.format||"float64";const r=(s=t.format)==null?void 0:s.includes("int"),n=r?"int":"number",[o,i]=Cn[t.format];e._zod.onattach.push(a=>{const c=a._zod.bag;c.format=t.format,c.minimum=o,c.maximum=i,r&&(c.pattern=xo)}),e._zod.check=a=>{const c=a.value;if(r){if(!Number.isInteger(c)){a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}c<o&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>i&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:i,inst:e})}}),To=u("$ZodCheckMaxLength",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!st(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=at(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ro=u("$ZodCheckMinLength",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!st(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=at(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),So=u("$ZodCheckLengthEquals",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!st(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=at(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),De=u("$ZodCheckStringFormat",(e,t)=>{var r,n;U.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Ao=u("$ZodCheckRegex",(e,t)=>{De.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Oo=u("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Eo),De.init(e,t)}),Co=u("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Io),De.init(e,t)}),jo=u("$ZodCheckIncludes",(e,t)=>{U.init(e,t);const r=je(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),No=u("$ZodCheckStartsWith",(e,t)=>{U.init(e,t);const r=new RegExp(`^${je(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Mo=u("$ZodCheckEndsWith",(e,t)=>{U.init(e,t);const r=new RegExp(`.*${je(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Lo=u("$ZodCheckOverwrite",(e,t)=>{U.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Do{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
2
|
-
`).filter(
|
|
3
|
-
`))}}const
|
|
4
|
-
if (${
|
|
5
|
-
payload.issues = payload.issues.concat(${
|
|
1
|
+
(function(W,he){typeof exports=="object"&&typeof module<"u"?he(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],he):(W=typeof globalThis<"u"?globalThis:W||self,he(W["denwa-web-shared"]={},W.React))})(this,(function(W,he){"use strict";const pi={seconds:{minutes10:600},milliseconds:{milliseconds100:100,milliseconds200:200,milliseconds500:500,seconds1:1e3,seconds2:2e3,seconds5:5e3,minutes1:6e4}},Te={VIEW_PORT:{EXTRA_SMALL:280,SMALL:320,SMALL_MOBILE:380,MOBILE:450,MEDIUM:500,EXTRA_MEDIUM:600,TABLET:768,LAPTOP:1024,LAPTOP_BIG:1200,BIG:1440,VERY_BIG:1920},OFFSET:{1:8,2:16,3:24,4:32,5:40,6:48,7:56,8:64}},mi=e=>{he.useEffect(()=>{if(!e)return;const t=window.scrollY;return()=>{window.scrollTo(0,t)}},[])},hi=()=>{const[e,t]=he.useState(!1);return he.useEffect(()=>{t(!0)},[]),e};var gi=typeof window<"u";function Yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vi=function(e,t){var n=he.useState(null),r=n[0],o=n[1];return he.useEffect(function(){if(e.current&&typeof IntersectionObserver=="function"){var i=function(c){o(c[0])},a=new IntersectionObserver(i,t);return a.observe(e.current),function(){o(null),a.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),r},_i=function(e,t){return gi?window.matchMedia(e).matches:(process.env.NODE_ENV!=="production"&&console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."),!1)},Ae=function(e,t){var n=he.useState(_i(e)),r=n[0],o=n[1];return he.useEffect(function(){var i=!0,a=window.matchMedia(e),c=function(){i&&o(!!a.matches)};return a.addEventListener("change",c),o(a.matches),function(){i=!1,a.removeEventListener("change",c)}},[e]),r};const bi=()=>{const e=Ae(`(min-width: ${Te.VIEW_PORT.LAPTOP_BIG}px)`),t=Ae(`(max-width: ${Te.VIEW_PORT.LAPTOP_BIG}px)`);return{isLaptopBigMinWidth:e,isLaptopBigMaxWidth:t}},yi=()=>{const e=Ae(`(min-width: ${Te.VIEW_PORT.LAPTOP}px)`),t=Ae(`(max-width: ${Te.VIEW_PORT.LAPTOP}px)`);return{isLaptopMinWidth:e,isLaptopMaxWidth:t}},Ei=()=>{const e=Ae(`(min-width: ${Te.VIEW_PORT.TABLET}px)`),t=Ae(`(max-width: ${Te.VIEW_PORT.TABLET}px)`);return{isTabletMinWidth:e,isTabletMaxWidth:t}},wi=()=>{const e=Ae(`(min-width: ${Te.VIEW_PORT.EXTRA_MEDIUM}px)`),t=Ae(`(max-width: ${Te.VIEW_PORT.EXTRA_MEDIUM}px)`);return{isExtraMediumMinWidth:e,isExtraMediumMaxWidth:t}},Ti=()=>{const e=Ae(`(min-width: ${Te.VIEW_PORT.MOBILE}px)`),t=Ae(`(max-width: ${Te.VIEW_PORT.MOBILE}px)`);return{isMobileMinWidth:e,isMobileMaxWidth:t}},ki=()=>{const e=Ae(`(min-width: ${Te.VIEW_PORT.SMALL}px)`),t=Ae(`(max-width: ${Te.VIEW_PORT.SMALL}px)`);return{isSmallMinWidth:e,isSmallMaxWidth:t}},Ai=e=>new Intl.NumberFormat(e),Xn=(e,t)=>e[t],Ri=e=>{let t=e;if(t!=="+"&&Number.isNaN(Number(t))||t.length>12)return"";const n=t.split(""),r=n[0],o=n[1];return r==="7"||r==="8"?n[0]="+7":`${r}${o}`=="+8"?n[1]="7":r&&r!=="+"&&(n[0]=`+${r}`),t=n.join("").trim(),t},Si=(e,t)=>{if(!e)return t.main;const n=e.split(".")[0],r=t[n];return r||t.main},Ge=({text:e,subdomain:t,SUBDOMAIN_NAME:n,SUBDOMAIN_MASK:r})=>{const o=Xn(n,t);if(!t)return e;let i=e;const{name:a,declination:c,region:s,regionDeclination:l}=o,d=new RegExp(r.CITY,"g"),h=new RegExp(r.CITY_DECL,"g"),y=new RegExp(r.CITY_REGION,"g"),w=new RegExp(r.CITY_REGION_DECL,"g");return i=i.replace(d,a),i=i.replace(h,c),i=i.replace(y,s),i=i.replace(w,l),i},xi=({subdomain:e,metaData:t,host:n,SUBDOMAIN_NAME:r,SUBDOMAIN_MASK:o,DEFAULT_SEO_TEXT:i})=>{const{title:a,description:c,keywords:s,canonical:l}=t,d=e==="main"?n:`${e}.${n}`;let h=a,y=c,w=s;const A={};return a?h=Ge({text:a,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:r}):h=Ge({text:i.title,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:r}),c?y=Ge({text:c,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:r}):y=Ge({text:i.description,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:r}),s?w=Ge({text:s,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:r}):w=Ge({text:i.keywords,subdomain:e,SUBDOMAIN_MASK:o,SUBDOMAIN_NAME:r}),l!==void 0&&(A.canonical=`https://${d}${l}`),{title:h,description:y,keywords:w,alternates:Object.keys(A).length?A:void 0}},Ii=e=>{const r=decodeURI(e).replace(/^\/[^\/]*\//,"").split("--"),o={};return r.forEach(i=>{const[a,c]=i.split("__");a&&c&&(o[a]=c.replace(/_/g," "))}),o},Oi=({color1:e,color2:t,notFoundText:n,COLORS_NAMES:r})=>{const o=r[e],i=t?r[t]:null;return o&&i?`${o}/${i}`:o||n},Pi=(e,t,n)=>{if(!e)return{buttons:[]};const{page:r,pages:o}=e;if(!r||!o)return{buttons:[]};const i=new URLSearchParams(n),a=[],c=8,s=Math.floor(c/2);let l=Math.max(1,r-s),d=Math.min(o,r+s);d-l+1<c&&(l=Math.max(1,d-c+1),d=Math.min(o,l+c-1));for(let E=l;E<=d;E++){const R=new URLSearchParams(i);R.set("page",E.toString()),a.push({label:E.toString(),href:`${t}?${R.toString()}`,isActive:E===r})}const y=a.some(E=>E.label==="1")?void 0:{label:"1",href:`${t}?${new URLSearchParams({...Object.fromEntries(i),page:"1"}).toString()}`,isActive:r===1},A=a.some(E=>E.label===o.toString())?void 0:{label:o.toString(),href:`${t}?${new URLSearchParams({...Object.fromEntries(i),page:o.toString()}).toString()}`,isActive:r===o};return{buttons:a,firstPage:y,lastPage:A}};function Jn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Jn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ci(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Jn(e))&&(r&&(r+=" "),r+=t);return r}const cn="-",zi=e=>{const t=Li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const c=a.split(cn);return c[0]===""&&c.length!==1&&c.shift(),Kn(c,t)||Ni(a)},getConflictingClassGroupIds:(a,c)=>{const s=n[a]||[];return c&&r[a]?[...s,...r[a]]:s}}},Kn=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Kn(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(cn);return(a=t.validators.find(({validator:c})=>c(i)))==null?void 0:a.classGroupId},Qn=/^\[(.+)\]$/,Ni=e=>{if(Qn.test(e)){const t=Qn.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Li=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)ln(n[o],r,o,t);return r},ln=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:er(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Mi(o)){ln(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{ln(a,er(t,i),n,r)})})},er=(e,t)=>{let n=e;return t.split(cn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mi=e=>e.isThemeGetter,Di=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}},un="!",fn=":",$i=fn.length,Zi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,c=0,s=0,l;for(let A=0;A<o.length;A++){let E=o[A];if(a===0&&c===0){if(E===fn){i.push(o.slice(s,A)),s=A+$i;continue}if(E==="/"){l=A;continue}}E==="["?a++:E==="]"?a--:E==="("?c++:E===")"&&c--}const d=i.length===0?o:o.substring(s),h=ji(d),y=h!==d,w=l&&l>s?l-s:void 0;return{modifiers:i,hasImportantModifier:y,baseClassName:h,maybePostfixModifierPosition:w}};if(t){const o=t+fn,i=r;r=a=>a.startsWith(o)?i(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},ji=e=>e.endsWith(un)?e.substring(0,e.length-1):e.startsWith(un)?e.substring(1):e,Fi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...i.sort(),a),i=[]):i.push(a)}),o.push(...i.sort()),o}},Ui=e=>({cache:Di(e.cacheSize),parseClassName:Zi(e),sortModifiers:Fi(e),...zi(e)}),Gi=/\s+/,Hi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],c=e.trim().split(Gi);let s="";for(let l=c.length-1;l>=0;l-=1){const d=c[l],{isExternal:h,modifiers:y,hasImportantModifier:w,baseClassName:A,maybePostfixModifierPosition:E}=n(d);if(h){s=d+(s.length>0?" "+s:s);continue}let R=!!E,N=r(R?A.substring(0,E):A);if(!N){if(!R){s=d+(s.length>0?" "+s:s);continue}if(N=r(A),!N){s=d+(s.length>0?" "+s:s);continue}R=!1}const O=i(y).join(":"),Z=w?O+un:O,U=Z+N;if(a.includes(U))continue;a.push(U);const u=o(N,R);for(let p=0;p<u.length;++p){const v=u[p];a.push(Z+v)}s=d+(s.length>0?" "+s:s)}return s};function Vi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=tr(t))&&(r&&(r+=" "),r+=n);return r}const tr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=tr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wi(e,...t){let n,r,o,i=a;function a(s){const l=t.reduce((d,h)=>h(d),e());return n=Ui(l),r=n.cache.get,o=n.cache.set,i=c,c(s)}function c(s){const l=r(s);if(l)return l;const d=Hi(s,n);return o(s,d),d}return function(){return i(Vi.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},nr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bi=/^\d+\/\d+$/,qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ji=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ki=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Bi.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),dn=e=>e.endsWith("%")&&F(e.slice(0,-1)),Ce=e=>qi.test(e),Qi=()=>!0,ea=e=>Yi.test(e)&&!Xi.test(e),or=()=>!1,ta=e=>Ji.test(e),na=e=>Ki.test(e),ra=e=>!T(e)&&!k(e),oa=e=>Qe(e,lr,or),T=e=>nr.test(e),He=e=>Qe(e,ur,ea),pn=e=>Qe(e,la,F),ir=e=>Qe(e,sr,or),ia=e=>Qe(e,cr,na),Mt=e=>Qe(e,fr,ta),k=e=>rr.test(e),gt=e=>et(e,ur),aa=e=>et(e,ua),ar=e=>et(e,sr),sa=e=>et(e,lr),ca=e=>et(e,cr),Dt=e=>et(e,fr,!0),Qe=(e,t,n)=>{const r=nr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},et=(e,t,n=!1)=>{const r=rr.exec(e);return r?r[1]?t(r[1]):n:!1},sr=e=>e==="position"||e==="percentage",cr=e=>e==="image"||e==="url",lr=e=>e==="length"||e==="size"||e==="bg-size",ur=e=>e==="length",la=e=>e==="number",ua=e=>e==="family-name",fr=e=>e==="shadow",fa=Wi(()=>{const e=ce("color"),t=ce("font"),n=ce("text"),r=ce("font-weight"),o=ce("tracking"),i=ce("leading"),a=ce("breakpoint"),c=ce("container"),s=ce("spacing"),l=ce("radius"),d=ce("shadow"),h=ce("inset-shadow"),y=ce("text-shadow"),w=ce("drop-shadow"),A=ce("blur"),E=ce("perspective"),R=ce("aspect"),N=ce("ease"),O=ce("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],u=()=>[...U(),k,T],p=()=>["auto","hidden","clip","visible","scroll"],v=()=>["auto","contain","none"],g=()=>[k,T,s],M=()=>[Ke,"full","auto",...g()],S=()=>[Ze,"none","subgrid",k,T],oe=()=>["auto",{span:["full",Ze,k,T]},Ze,k,T],Q=()=>[Ze,"auto",k,T],j=()=>["auto","min","max","fr",k,T],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ue=()=>["auto",...g()],xe=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],C=()=>[e,k,T],Ye=()=>[...U(),ar,ir,{position:[k,T]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",sa,oa,{size:[k,T]}],q=()=>[dn,gt,He],H=()=>["","none","full",l,k,T],Y=()=>["",F,gt,He],pe=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[F,dn,ar,ir],ie=()=>["","none",A,k,T],ke=()=>["none",F,k,T],Ie=()=>["none",F,k,T],Xe=()=>[F,k,T],st=()=>[Ke,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[Qi],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[ra],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",F],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,T,k,R]}],container:["container"],columns:[{columns:[F,T,k,c]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:u()}],overflow:[{overflow:p()}],"overflow-x":[{"overflow-x":p()}],"overflow-y":[{"overflow-y":p()}],overscroll:[{overscroll:v()}],"overscroll-x":[{"overscroll-x":v()}],"overscroll-y":[{"overscroll-y":v()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Ze,"auto",k,T]}],basis:[{basis:[Ke,"full","auto",c,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,Ke,"auto","initial","none",T]}],grow:[{grow:["",F,k,T]}],shrink:[{shrink:["",F,k,T]}],order:[{order:[Ze,"first","last","none",k,T]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:xe()}],w:[{w:[c,"screen",...xe()]}],"min-w":[{"min-w":[c,"screen","none",...xe()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...xe()]}],h:[{h:["screen","lh",...xe()]}],"min-h":[{"min-h":["screen","lh","none",...xe()]}],"max-h":[{"max-h":["screen","lh",...xe()]}],"font-size":[{text:["base",n,gt,He]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,k,pn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dn,T]}],"font-family":[{font:[aa,T,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,k,T]}],"line-clamp":[{"line-clamp":[F,"none",k,pn]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",k,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",k,He]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[F,"auto",k,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ye()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,k,T],radial:["",k,T],conic:[Ze,k,T]},ca,ia]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,k,T]}],"outline-w":[{outline:["",F,gt,He]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",d,Dt,Mt]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",h,Dt,Mt]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[F,He]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",y,Dt,Mt]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[F,k,T]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[k,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ye()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,T]}],filter:[{filter:["","none",k,T]}],blur:[{blur:ie()}],brightness:[{brightness:[F,k,T]}],contrast:[{contrast:[F,k,T]}],"drop-shadow":[{"drop-shadow":["","none",w,Dt,Mt]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",F,k,T]}],"hue-rotate":[{"hue-rotate":[F,k,T]}],invert:[{invert:["",F,k,T]}],saturate:[{saturate:[F,k,T]}],sepia:[{sepia:["",F,k,T]}],"backdrop-filter":[{"backdrop-filter":["","none",k,T]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[F,k,T]}],"backdrop-contrast":[{"backdrop-contrast":[F,k,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,k,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,k,T]}],"backdrop-invert":[{"backdrop-invert":["",F,k,T]}],"backdrop-opacity":[{"backdrop-opacity":[F,k,T]}],"backdrop-saturate":[{"backdrop-saturate":[F,k,T]}],"backdrop-sepia":[{"backdrop-sepia":["",F,k,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",k,T]}],ease:[{ease:["linear","initial",N,k,T]}],delay:[{delay:[F,k,T]}],animate:[{animate:["none",O,k,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,k,T]}],"perspective-origin":[{"perspective-origin":u()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:Xe()}],"skew-x":[{"skew-x":Xe()}],"skew-y":[{"skew-y":Xe()}],transform:[{transform:[k,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:u()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,T]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[F,gt,He,pn]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function mn(...e){return fa(Ci(e))}function m(e,t,n){function r(c,s){var l;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(l=c._zod).traits??(l.traits=new Set),c._zod.traits.add(e),t(c,s);for(const d in a.prototype)d in c||Object.defineProperty(c,d,{value:a.prototype[d].bind(c)});c._zod.constr=a,c._zod.def=s}const o=(n==null?void 0:n.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(c){var s;const l=n!=null&&n.Parent?new i:this;r(l,c),(s=l._zod).deferred??(s.deferred=[]);for(const d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:c=>{var s,l;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(l=(s=c==null?void 0:c._zod)==null?void 0:s.traits)==null?void 0:l.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class tt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class dr extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const pr={};function Ve(e){return pr}function da(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function hn(e,t){return typeof t=="bigint"?t.toString():t}function gn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vn(e){return e==null}function _n(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function pa(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const s=r.match(/\d?e-(\d?)/);s!=null&&s[1]&&(o=Number.parseInt(s[1]))}const i=n>o?n:o,a=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return a%c/10**i}const mr=Symbol("evaluating");function X(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==mr)return r===void 0&&(r=mr,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function ma(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function je(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function nt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hr(e){return JSON.stringify(e)}const gr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function $t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ha=gn(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function vt(e){if($t(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!($t(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function vr(e){return vt(e)?{...e}:e}const ga=new Set(["string","number","symbol"]);function Zt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fe(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function z(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function va(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const _a={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ba(e,t){const n=e._zod.def,r=nt(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=n.shape[i])}return je(this,"shape",o),o},checks:[]});return Fe(e,r)}function ya(e,t){const n=e._zod.def,r=nt(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return je(this,"shape",o),o},checks:[]});return Fe(e,r)}function Ea(e,t){if(!vt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=nt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return je(this,"shape",i),i},checks:[]});return Fe(e,o)}function wa(e,t){if(!vt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return je(this,"shape",r),r},checks:e._zod.def.checks};return Fe(e,n)}function Ta(e,t){const n=nt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return je(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Fe(e,n)}function ka(e,t,n){const r=nt(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a])}else for(const a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return je(this,"shape",i),i},checks:[]});return Fe(t,r)}function Aa(e,t,n){const r=nt(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return je(this,"shape",i),i},checks:[]});return Fe(t,r)}function rt(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function _r(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function jt(e){return typeof e=="string"?e:e==null?void 0:e.message}function We(e,t,n){var o,i,a,c,s,l;const r={...e,path:e.path??[]};if(!e.message){const d=jt((a=(i=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:a.call(i,e))??jt((c=t==null?void 0:t.error)==null?void 0:c.call(t,e))??jt((s=n.customError)==null?void 0:s.call(n,e))??jt((l=n.localeError)==null?void 0:l.call(n,e))??"Invalid input";r.message=d}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function bn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _t(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const br=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,hn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yr=m("$ZodError",br),Er=m("$ZodError",br,{Parent:Error});function Ra(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Sa(e,t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>o({issues:c}));else if(a.code==="invalid_key")o({issues:a.issues});else if(a.code==="invalid_element")o({issues:a.issues});else if(a.path.length===0)r._errors.push(n(a));else{let c=r,s=0;for(;s<a.path.length;){const l=a.path[s];s===a.path.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(n(a))):c[l]=c[l]||{_errors:[]},c=c[l],s++}}};return o(e),r}const yn=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new tt;if(a.issues.length){const c=new((o==null?void 0:o.Err)??e)(a.issues.map(s=>We(s,i,Ve())));throw gr(c,o==null?void 0:o.callee),c}return a.value},En=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new((o==null?void 0:o.Err)??e)(a.issues.map(s=>We(s,i,Ve())));throw gr(c,o==null?void 0:o.callee),c}return a.value},Ft=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new tt;return i.issues.length?{success:!1,error:new(e??yr)(i.issues.map(a=>We(a,o,Ve())))}:{success:!0,data:i.value}},xa=Ft(Er),Ut=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>We(a,o,Ve())))}:{success:!0,data:i.value}},Ia=Ut(Er),Oa=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return yn(e)(t,n,o)},Pa=e=>(t,n,r)=>yn(e)(t,n,r),Ca=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return En(e)(t,n,o)},za=e=>async(t,n,r)=>En(e)(t,n,r),Na=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ft(e)(t,n,o)},La=e=>(t,n,r)=>Ft(e)(t,n,r),Ma=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ut(e)(t,n,o)},Da=e=>async(t,n,r)=>Ut(e)(t,n,r),$a=/^[cC][^\s-]{8,}$/,Za=/^[0-9a-z]+$/,ja=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Fa=/^[0-9a-vA-V]{20}$/,Ua=/^[A-Za-z0-9]{27}$/,Ga=/^[a-zA-Z0-9_-]{21}$/,Ha=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Va=/^([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})$/,wr=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)$/,Wa=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ba="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function qa(){return new RegExp(Ba,"u")}const Ya=/^(?:(?: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])$/,Xa=/^(([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})$/,Ja=/^((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])$/,Ka=/^(([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])$/,Qa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tr=/^[A-Za-z0-9_-]*$/,es=/^(?=.{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])?)*\.?$/,ts=/^\+(?:[0-9]){6,14}[0-9]$/,kr="(?:(?:\\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])))",ns=new RegExp(`^${kr}$`);function Ar(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rs(e){return new RegExp(`^${Ar(e)}$`)}function os(e){const t=Ar({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${kr}T(?:${r})$`)}const is=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},as=/^\d+$/,ss=/^-?\d+(?:\.\d+)?/i,cs=/^[^A-Z]*$/,ls=/^[^a-z]*$/,Ee=m("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Rr={number:"number",bigint:"bigint",object:"date"},Sr=m("$ZodCheckLessThan",(e,t)=>{Ee.init(e,t);const n=Rr[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),xr=m("$ZodCheckGreaterThan",(e,t)=>{Ee.init(e,t);const n=Rr[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),us=m("$ZodCheckMultipleOf",(e,t)=>{Ee.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):pa(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),fs=m("$ZodCheckNumberFormat",(e,t)=>{var a;Ee.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),r=n?"int":"number",[o,i]=_a[t.format];e._zod.onattach.push(c=>{const s=c._zod.bag;s.format=t.format,s.minimum=o,s.maximum=i,n&&(s.pattern=as)}),e._zod.check=c=>{const s=c.value;if(n){if(!Number.isInteger(s)){c.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?c.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):c.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}s<o&&c.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>i&&c.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),ds=m("$ZodCheckMaxLength",(e,t)=>{var n;Ee.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!vn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const a=bn(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ps=m("$ZodCheckMinLength",(e,t)=>{var n;Ee.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!vn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const a=bn(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ms=m("$ZodCheckLengthEquals",(e,t)=>{var n;Ee.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!vn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const a=bn(o),c=i>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Gt=m("$ZodCheckStringFormat",(e,t)=>{var n,r;Ee.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),hs=m("$ZodCheckRegex",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gs=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=cs),Gt.init(e,t)}),vs=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ls),Gt.init(e,t)}),_s=m("$ZodCheckIncludes",(e,t)=>{Ee.init(e,t);const n=Zt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),bs=m("$ZodCheckStartsWith",(e,t)=>{Ee.init(e,t);const n=new RegExp(`^${Zt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ys=m("$ZodCheckEndsWith",(e,t)=>{Ee.init(e,t);const n=new RegExp(`.*${Zt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Es=m("$ZodCheckOverwrite",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class ws{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
2
|
+
`).filter(a=>a),o=Math.min(...r.map(a=>a.length-a.trimStart().length)),i=r.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,o.join(`
|
|
3
|
+
`))}}const Ts={major:4,minor:1,patch:5},re=m("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ts;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const i=(c,s,l)=>{let d=rt(c),h;for(const y of s){if(y._zod.def.when){if(!y._zod.def.when(c))continue}else if(d)continue;const w=c.issues.length,A=y._zod.check(c);if(A instanceof Promise&&(l==null?void 0:l.async)===!1)throw new tt;if(h||A instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await A,c.issues.length!==w&&(d||(d=rt(c,w)))});else{if(c.issues.length===w)continue;d||(d=rt(c,w))}}return h?h.then(()=>c):c},a=(c,s,l)=>{if(rt(c))return c.aborted=!0,c;const d=i(s,r,l);if(d instanceof Promise){if(l.async===!1)throw new tt;return d.then(h=>e._zod.parse(h,l))}return e._zod.parse(d,l)};e._zod.run=(c,s)=>{if(s.skipChecks)return e._zod.parse(c,s);if(s.direction==="backward"){const d=e._zod.parse({value:c.value,issues:[]},{...s,skipChecks:!0});return d instanceof Promise?d.then(h=>a(h,c,s)):a(d,c,s)}const l=e._zod.parse(c,s);if(l instanceof Promise){if(s.async===!1)throw new tt;return l.then(d=>i(d,r,s))}return i(l,r,s)}}e["~standard"]={validate:i=>{var a;try{const c=xa(e,i);return c.success?{value:c.data}:{issues:(a=c.error)==null?void 0:a.issues}}catch{return Ia(e,i).then(s=>{var l;return s.success?{value:s.data}:{issues:(l=s.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}}),wn=m("$ZodString",(e,t)=>{var n;re.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??is(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),K=m("$ZodStringFormat",(e,t)=>{Gt.init(e,t),wn.init(e,t)}),ks=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Va),K.init(e,t)}),As=m("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=wr(r))}else t.pattern??(t.pattern=wr());K.init(e,t)}),Rs=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Wa),K.init(e,t)}),Ss=m("$ZodURL",(e,t)=>{K.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:es.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),xs=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=qa()),K.init(e,t)}),Is=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ga),K.init(e,t)}),Os=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=$a),K.init(e,t)}),Ps=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Za),K.init(e,t)}),Cs=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ja),K.init(e,t)}),zs=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Fa),K.init(e,t)}),Ns=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ua),K.init(e,t)}),Ls=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=os(t)),K.init(e,t)}),Ms=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ns),K.init(e,t)}),Ds=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=rs(t)),K.init(e,t)}),$s=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ha),K.init(e,t)}),Zs=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ya),K.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),js=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xa),K.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Fs=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ja),K.init(e,t)}),Us=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ka),K.init(e,t),e._zod.check=n=>{const[r,o]=n.value.split("/");try{if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ir(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Gs=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Qa),K.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Ir(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Hs(e){if(!Tr.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ir(n)}const Vs=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Tr),K.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Hs(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Ws=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ts),K.init(e,t)});function Bs(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const qs=m("$ZodJWT",(e,t)=>{K.init(e,t),e._zod.check=n=>{Bs(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Or=m("$ZodNumber",(e,t)=>{re.init(e,t),e._zod.pattern=e._zod.bag.pattern??ss,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),Ys=m("$ZodNumber",(e,t)=>{fs.init(e,t),Or.init(e,t)}),Xs=m("$ZodAny",(e,t)=>{re.init(e,t),e._zod.parse=n=>n}),Js=m("$ZodUnknown",(e,t)=>{re.init(e,t),e._zod.parse=n=>n}),Ks=m("$ZodNever",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Pr(e,t,n){e.issues.length&&t.issues.push(..._r(n,e.issues)),t.value[n]=e.value}const Qs=m("$ZodArray",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const c=o[a],s=t.element._zod.run({value:c,issues:[]},r);s instanceof Promise?i.push(s.then(l=>Pr(l,n,a))):Pr(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Ht(e,t,n,r){e.issues.length&&t.issues.push(..._r(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Cr(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape[r]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=va(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function zr(e,t,n,r,o,i){const a=[],c=o.keySet,s=o.catchall._zod,l=s.def.type;for(const d of Object.keys(t)){if(c.has(d))continue;if(l==="never"){a.push(d);continue}const h=s.run({value:t[d],issues:[]},r);h instanceof Promise?e.push(h.then(y=>Ht(y,n,d,t))):Ht(h,n,d,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const ec=m("$ZodObject",(e,t)=>{re.init(e,t);const n=gn(()=>Cr(t));X(e._zod,"propValues",()=>{const a=t.shape,c={};for(const s in a){const l=a[s]._zod;if(l.values){c[s]??(c[s]=new Set);for(const d of l.values)c[s].add(d)}}return c});const r=$t,o=t.catchall;let i;e._zod.parse=(a,c)=>{i??(i=n.value);const s=a.value;if(!r(s))return a.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),a;a.value={};const l=[],d=i.shape;for(const h of i.keys){const w=d[h]._zod.run({value:s[h],issues:[]},c);w instanceof Promise?l.push(w.then(A=>Ht(A,a,h,s))):Ht(w,a,h,s)}return o?zr(l,s,a,c,n.value,e):l.length?Promise.all(l).then(()=>a):a}}),tc=m("$ZodObjectJIT",(e,t)=>{ec.init(e,t);const n=e._zod.parse,r=gn(()=>Cr(t)),o=y=>{const w=new ws(["shape","payload","ctx"]),A=r.value,E=Z=>{const U=hr(Z);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};w.write("const input = payload.value;");const R=Object.create(null);let N=0;for(const Z of A.keys)R[Z]=`key_${N++}`;w.write("const newResult = {}");for(const Z of A.keys){const U=R[Z],u=hr(Z);w.write(`const ${U} = ${E(Z)};`),w.write(`
|
|
4
|
+
if (${U}.issues.length) {
|
|
5
|
+
payload.issues = payload.issues.concat(${U}.issues.map(iss => ({
|
|
6
6
|
...iss,
|
|
7
|
-
path: iss.path ? [${
|
|
7
|
+
path: iss.path ? [${u}, ...iss.path] : [${u}]
|
|
8
8
|
})));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
if (${
|
|
12
|
-
if (${
|
|
13
|
-
newResult[${
|
|
11
|
+
if (${U}.value === undefined) {
|
|
12
|
+
if (${u} in input) {
|
|
13
|
+
newResult[${u}] = undefined;
|
|
14
14
|
}
|
|
15
15
|
} else {
|
|
16
|
-
newResult[${
|
|
16
|
+
newResult[${u}] = ${U}.value;
|
|
17
17
|
}
|
|
18
|
-
`)}v.write("payload.value = newResult;"),v.write("return payload;");const K=v.compile();return(N,O)=>K(w,N,O)};let i;const s=Ce,a=!At.jitless,l=a&&Sn.value,f=t.catchall;let b;e._zod.parse=(w,v)=>{b??(b=n.value);const z=w.value;return s(z)?a&&l&&(v==null?void 0:v.async)===!1&&v.jitless!==!0?(i||(i=o(t.shape)),w=i(w,v),f?Qt([],z,w,v,b,e):w):r(w,v):(w.issues.push({expected:"object",code:"invalid_type",input:z,inst:e}),w)}});function er(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!ke(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>fe(s,n,de())))}),t)}const ws=u("$ZodUnion",(e,t)=>{A.init(e,t),Z(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Z(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>it(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const c of t.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)a.push(l),s=!0;else{if(l.issues.length===0)return l;a.push(l)}}return s?Promise.all(a).then(c=>er(c,o,e,i)):er(a,o,e,i)}}),ks=u("$ZodIntersection",(e,t)=>{A.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,l])=>tr(r,c,l)):tr(r,i,s)}});function dt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if($e(e)&&$e(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=dt(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=dt(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function tr(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ke(e))return e;const n=dt(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const ys=u("$ZodEnum",(e,t)=>{A.init(e,t);const r=Pn(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>An.has(typeof o)).map(o=>typeof o=="string"?je(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),zs=u("$ZodTransform",(e,t)=>{A.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new St(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new _e;return r.value=o,r}});function rr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const xs=u("$ZodOptional",(e,t)=>{A.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${it(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>rr(i,r.value)):rr(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),$s=u("$ZodNullable",(e,t)=>{A.init(e,t),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${it(r.source)}|null)$`):void 0}),Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),Es=u("$ZodDefault",(e,t)=>{A.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>nr(i,t)):nr(o,t)}});function nr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Is=u("$ZodPrefault",(e,t)=>{A.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),Zs=u("$ZodNonOptional",(e,t)=>{A.init(e,t),Z(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>or(i,e)):or(o,e)}});function or(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Ps=u("$ZodCatch",(e,t)=>{A.init(e,t),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>fe(s,n,de()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>fe(i,n,de()))},input:r.value}),r.issues=[]),r)}}),Ts=u("$ZodPipe",(e,t)=>{A.init(e,t),Z(e._zod,"values",()=>t.in._zod.values),Z(e._zod,"optin",()=>t.in._zod.optin),Z(e._zod,"optout",()=>t.out._zod.optout),Z(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>Fe(s,t.in,n)):Fe(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>Fe(i,t.out,n)):Fe(o,t.out,n)}});function Fe(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const Rs=u("$ZodReadonly",(e,t)=>{A.init(e,t),Z(e._zod,"propValues",()=>t.innerType._zod.propValues),Z(e._zod,"values",()=>t.innerType._zod.values),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(sr):sr(o)}});function sr(e){return e.value=Object.freeze(e.value),e}const Ss=u("$ZodCustom",(e,t)=>{U.init(e,t),A.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>ir(i,r,n,e));ir(o,r,n,e)}});function ir(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(Ee(o))}}class As{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Os(){return new As}const Ue=Os();function Cs(e,t){return new e({type:"string",...h(t)})}function js(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...h(t)})}function ar(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...h(t)})}function Ns(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...h(t)})}function Ms(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...h(t)})}function Ls(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...h(t)})}function Ds(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...h(t)})}function Vs(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...h(t)})}function Fs(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...h(t)})}function Us(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...h(t)})}function Ws(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...h(t)})}function Gs(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...h(t)})}function Bs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...h(t)})}function Ys(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...h(t)})}function Js(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...h(t)})}function Xs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...h(t)})}function qs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...h(t)})}function Ks(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...h(t)})}function Hs(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...h(t)})}function Qs(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...h(t)})}function ei(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...h(t)})}function ti(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...h(t)})}function ri(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...h(t)})}function ni(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...h(t)})}function oi(e,t){return new e({type:"string",format:"date",check:"string_format",...h(t)})}function si(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...h(t)})}function ii(e,t){return new e({type:"string",format:"duration",check:"string_format",...h(t)})}function ai(e,t){return new e({type:"number",checks:[],...h(t)})}function ci(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...h(t)})}function ui(e){return new e({type:"any"})}function li(e){return new e({type:"unknown"})}function di(e,t){return new e({type:"never",...h(t)})}function cr(e,t){return new Yt({check:"less_than",...h(t),value:e,inclusive:!1})}function ft(e,t){return new Yt({check:"less_than",...h(t),value:e,inclusive:!0})}function ur(e,t){return new Jt({check:"greater_than",...h(t),value:e,inclusive:!1})}function pt(e,t){return new Jt({check:"greater_than",...h(t),value:e,inclusive:!0})}function lr(e,t){return new Zo({check:"multiple_of",...h(t),value:e})}function dr(e,t){return new To({check:"max_length",...h(t),maximum:e})}function We(e,t){return new Ro({check:"min_length",...h(t),minimum:e})}function fr(e,t){return new So({check:"length_equals",...h(t),length:e})}function fi(e,t){return new Ao({check:"string_format",format:"regex",...h(t),pattern:e})}function pi(e){return new Oo({check:"string_format",format:"lowercase",...h(e)})}function mi(e){return new Co({check:"string_format",format:"uppercase",...h(e)})}function hi(e,t){return new jo({check:"string_format",format:"includes",...h(t),includes:e})}function gi(e,t){return new No({check:"string_format",format:"starts_with",...h(t),prefix:e})}function bi(e,t){return new Mo({check:"string_format",format:"ends_with",...h(t),suffix:e})}function Ie(e){return new Lo({check:"overwrite",tx:e})}function vi(e){return Ie(t=>t.normalize(e))}function _i(){return Ie(e=>e.trim())}function wi(){return Ie(e=>e.toLowerCase())}function ki(){return Ie(e=>e.toUpperCase())}function yi(e,t,r){return new e({type:"array",element:t,...h(r)})}function zi(e,t,r){return new e({type:"custom",check:"custom",fn:t,...h(r)})}function xi(e){const t=$i(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Ee(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(Ee(o))}},e(r.value,r)));return t}function $i(e,t){const r=new U({check:"custom",...h(t)});return r._zod.check=e,r}const Ei=u("ZodISODateTime",(e,t)=>{Qo.init(e,t),T.init(e,t)});function Ii(e){return ni(Ei,e)}const Zi=u("ZodISODate",(e,t)=>{es.init(e,t),T.init(e,t)});function Pi(e){return oi(Zi,e)}const Ti=u("ZodISOTime",(e,t)=>{ts.init(e,t),T.init(e,t)});function Ri(e){return si(Ti,e)}const Si=u("ZodISODuration",(e,t)=>{rs.init(e,t),T.init(e,t)});function Ai(e){return ii(Si,e)}const Y=u("ZodError",(e,t)=>{Dt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Wn(e,r)},flatten:{value:r=>Un(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,nt,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,nt,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Oi=ct(Y),Ci=ut(Y),ji=Me(Y),Ni=Le(Y),Mi=Yn(Y),Li=Jn(Y),Di=Xn(Y),Vi=qn(Y),Fi=Kn(Y),Ui=Hn(Y),Wi=Qn(Y),Gi=eo(Y),C=u("ZodType",(e,t)=>(A.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(r,n)=>ae(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>Oi(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>ji(e,r,n),e.parseAsync=async(r,n)=>Ci(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Ni(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>Mi(e,r,n),e.decode=(r,n)=>Li(e,r,n),e.encodeAsync=async(r,n)=>Di(e,r,n),e.decodeAsync=async(r,n)=>Vi(e,r,n),e.safeEncode=(r,n)=>Fi(e,r,n),e.safeDecode=(r,n)=>Ui(e,r,n),e.safeEncodeAsync=async(r,n)=>Wi(e,r,n),e.safeDecodeAsync=async(r,n)=>Gi(e,r,n),e.refine=(r,n)=>e.check(Na(r,n)),e.superRefine=r=>e.check(Ma(r)),e.overwrite=r=>e.check(Ie(r)),e.optional=()=>kr(e),e.nullable=()=>yr(e),e.nullish=()=>kr(yr(e)),e.nonoptional=r=>Ta(e,r),e.array=()=>ga(e),e.or=r=>_a([e,r]),e.and=r=>ka(e,r),e.transform=r=>xr(e,xa(r)),e.default=r=>Ia(e,r),e.prefault=r=>Pa(e,r),e.catch=r=>Sa(e,r),e.pipe=r=>xr(e,r),e.readonly=()=>Ca(e),e.describe=r=>{const n=e.clone();return Ue.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){var r;return(r=Ue.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ue.get(e);const n=e.clone();return Ue.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),pr=u("_ZodString",(e,t)=>{lt.init(e,t),C.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(fi(...n)),e.includes=(...n)=>e.check(hi(...n)),e.startsWith=(...n)=>e.check(gi(...n)),e.endsWith=(...n)=>e.check(bi(...n)),e.min=(...n)=>e.check(We(...n)),e.max=(...n)=>e.check(dr(...n)),e.length=(...n)=>e.check(fr(...n)),e.nonempty=(...n)=>e.check(We(1,...n)),e.lowercase=n=>e.check(pi(n)),e.uppercase=n=>e.check(mi(n)),e.trim=()=>e.check(_i()),e.normalize=(...n)=>e.check(vi(...n)),e.toLowerCase=()=>e.check(wi()),e.toUpperCase=()=>e.check(ki())}),Bi=u("ZodString",(e,t)=>{lt.init(e,t),pr.init(e,t),e.email=r=>e.check(js(Yi,r)),e.url=r=>e.check(Vs(Ji,r)),e.jwt=r=>e.check(ri(ua,r)),e.emoji=r=>e.check(Fs(Xi,r)),e.guid=r=>e.check(ar(mr,r)),e.uuid=r=>e.check(Ns(Ge,r)),e.uuidv4=r=>e.check(Ms(Ge,r)),e.uuidv6=r=>e.check(Ls(Ge,r)),e.uuidv7=r=>e.check(Ds(Ge,r)),e.nanoid=r=>e.check(Us(qi,r)),e.guid=r=>e.check(ar(mr,r)),e.cuid=r=>e.check(Ws(Ki,r)),e.cuid2=r=>e.check(Gs(Hi,r)),e.ulid=r=>e.check(Bs(Qi,r)),e.base64=r=>e.check(Qs(ia,r)),e.base64url=r=>e.check(ei(aa,r)),e.xid=r=>e.check(Ys(ea,r)),e.ksuid=r=>e.check(Js(ta,r)),e.ipv4=r=>e.check(Xs(ra,r)),e.ipv6=r=>e.check(qs(na,r)),e.cidrv4=r=>e.check(Ks(oa,r)),e.cidrv6=r=>e.check(Hs(sa,r)),e.e164=r=>e.check(ti(ca,r)),e.datetime=r=>e.check(Ii(r)),e.date=r=>e.check(Pi(r)),e.time=r=>e.check(Ri(r)),e.duration=r=>e.check(Ai(r))});function ee(e){return Cs(Bi,e)}const T=u("ZodStringFormat",(e,t)=>{P.init(e,t),pr.init(e,t)}),Yi=u("ZodEmail",(e,t)=>{Wo.init(e,t),T.init(e,t)}),mr=u("ZodGUID",(e,t)=>{Fo.init(e,t),T.init(e,t)}),Ge=u("ZodUUID",(e,t)=>{Uo.init(e,t),T.init(e,t)}),Ji=u("ZodURL",(e,t)=>{Go.init(e,t),T.init(e,t)}),Xi=u("ZodEmoji",(e,t)=>{Bo.init(e,t),T.init(e,t)}),qi=u("ZodNanoID",(e,t)=>{Yo.init(e,t),T.init(e,t)}),Ki=u("ZodCUID",(e,t)=>{Jo.init(e,t),T.init(e,t)}),Hi=u("ZodCUID2",(e,t)=>{Xo.init(e,t),T.init(e,t)}),Qi=u("ZodULID",(e,t)=>{qo.init(e,t),T.init(e,t)}),ea=u("ZodXID",(e,t)=>{Ko.init(e,t),T.init(e,t)}),ta=u("ZodKSUID",(e,t)=>{Ho.init(e,t),T.init(e,t)}),ra=u("ZodIPv4",(e,t)=>{ns.init(e,t),T.init(e,t)}),na=u("ZodIPv6",(e,t)=>{os.init(e,t),T.init(e,t)}),oa=u("ZodCIDRv4",(e,t)=>{ss.init(e,t),T.init(e,t)}),sa=u("ZodCIDRv6",(e,t)=>{is.init(e,t),T.init(e,t)}),ia=u("ZodBase64",(e,t)=>{as.init(e,t),T.init(e,t)}),aa=u("ZodBase64URL",(e,t)=>{us.init(e,t),T.init(e,t)}),ca=u("ZodE164",(e,t)=>{ls.init(e,t),T.init(e,t)}),ua=u("ZodJWT",(e,t)=>{fs.init(e,t),T.init(e,t)}),hr=u("ZodNumber",(e,t)=>{qt.init(e,t),C.init(e,t),e.gt=(n,o)=>e.check(ur(n,o)),e.gte=(n,o)=>e.check(pt(n,o)),e.min=(n,o)=>e.check(pt(n,o)),e.lt=(n,o)=>e.check(cr(n,o)),e.lte=(n,o)=>e.check(ft(n,o)),e.max=(n,o)=>e.check(ft(n,o)),e.int=n=>e.check(br(n)),e.safe=n=>e.check(br(n)),e.positive=n=>e.check(ur(0,n)),e.nonnegative=n=>e.check(pt(0,n)),e.negative=n=>e.check(cr(0,n)),e.nonpositive=n=>e.check(ft(0,n)),e.multipleOf=(n,o)=>e.check(lr(n,o)),e.step=(n,o)=>e.check(lr(n,o)),e.finite=()=>e;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??.5),e.isFinite=!0,e.format=r.format??null});function gr(e){return ai(hr,e)}const la=u("ZodNumberFormat",(e,t)=>{ps.init(e,t),hr.init(e,t)});function br(e){return ci(la,e)}const da=u("ZodAny",(e,t)=>{ms.init(e,t),C.init(e,t)});function vr(){return ui(da)}const fa=u("ZodUnknown",(e,t)=>{hs.init(e,t),C.init(e,t)});function _r(){return li(fa)}const pa=u("ZodNever",(e,t)=>{gs.init(e,t),C.init(e,t)});function ma(e){return di(pa,e)}const ha=u("ZodArray",(e,t)=>{bs.init(e,t),C.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(We(r,n)),e.nonempty=r=>e.check(We(1,r)),e.max=(r,n)=>e.check(dr(r,n)),e.length=(r,n)=>e.check(fr(r,n)),e.unwrap=()=>e.element});function ga(e,t){return yi(ha,e,t)}const ba=u("ZodObject",(e,t)=>{_s.init(e,t),C.init(e,t),Z(e,"shape",()=>t.shape),e.keyof=()=>ya(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:_r()}),e.loose=()=>e.clone({...e._zod.def,catchall:_r()}),e.strict=()=>e.clone({...e._zod.def,catchall:ma()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Mn(e,r),e.safeExtend=r=>Ln(e,r),e.merge=r=>Dn(e,r),e.pick=r=>jn(e,r),e.omit=r=>Nn(e,r),e.partial=(...r)=>Vn(wr,e,r[0]),e.required=(...r)=>Fn(zr,e,r[0])});function mt(e,t){const r={type:"object",get shape(){return ie(this,"shape",e?Rn(e):{}),this.shape},...h(t)};return new ba(r)}const va=u("ZodUnion",(e,t)=>{ws.init(e,t),C.init(e,t),e.options=t.options});function _a(e,t){return new va({type:"union",options:e,...h(t)})}const wa=u("ZodIntersection",(e,t)=>{ks.init(e,t),C.init(e,t)});function ka(e,t){return new wa({type:"intersection",left:e,right:t})}const ht=u("ZodEnum",(e,t)=>{ys.init(e,t),C.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ht({...t,checks:[],...h(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ht({...t,checks:[],...h(o),entries:i})}});function ya(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ht({type:"enum",entries:r,...h(t)})}const za=u("ZodTransform",(e,t)=>{zs.init(e,t),C.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new St(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ee(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(Ee(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function xa(e){return new za({type:"transform",transform:e})}const wr=u("ZodOptional",(e,t)=>{xs.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType});function kr(e){return new wr({type:"optional",innerType:e})}const $a=u("ZodNullable",(e,t)=>{$s.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yr(e){return new $a({type:"nullable",innerType:e})}const Ea=u("ZodDefault",(e,t)=>{Es.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ia(e,t){return new Ea({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Nt(t)}})}const Za=u("ZodPrefault",(e,t)=>{Is.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Pa(e,t){return new Za({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Nt(t)}})}const zr=u("ZodNonOptional",(e,t)=>{Zs.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ta(e,t){return new zr({type:"nonoptional",innerType:e,...h(t)})}const Ra=u("ZodCatch",(e,t)=>{Ps.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sa(e,t){return new Ra({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Aa=u("ZodPipe",(e,t)=>{Ts.init(e,t),C.init(e,t),e.in=t.in,e.out=t.out});function xr(e,t){return new Aa({type:"pipe",in:e,out:t})}const Oa=u("ZodReadonly",(e,t)=>{Rs.init(e,t),C.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ca(e){return new Oa({type:"readonly",innerType:e})}const ja=u("ZodCustom",(e,t)=>{Ss.init(e,t),C.init(e,t)});function Na(e,t={}){return zi(ja,e,t)}function Ma(e){return xi(e)}const te=({name:e,extension:t,entityId:r,prefixe:n,bucketFolder:o,uploadUrl:i})=>`${i}/${o}/${r}/${e}-${n}.${t}`,$r=(e,t)=>{try{return mt({altRU:ee().optional().nullable(),altEN:ee().optional().nullable(),name:ee(),originalFileExtension:ee(),fileExtensions:ee().array()}).parse(e),!0}catch(r){return t({error:r}),!1}},La=({images:e,bucketFolder:t,uploadUrl:r,getError:n})=>{if(!e)return[];try{const o=JSON.parse(e);return Array.isArray(o)?o.map(s=>{if(!$r(s,n))return null;const a=s.originalFileExtension==="png"?"image/png":"image/jpeg",c=s.fileExtensions[0],l=s.fileExtensions[1],f=Ze(s.prefixes,"1hd"),b=Ze(s.prefixes,"2hd"),w=Ze(s.prefixes,"0.5hd"),v=Ze(s.prefixes,"1hd"),z=te({name:s.name,extension:l,entityId:s.entityId,prefixe:f,bucketFolder:t,uploadUrl:r}),$=te({name:s.name,extension:c,entityId:s.entityId,prefixe:f,bucketFolder:t,uploadUrl:r}),L=te({name:s.name,extension:l,entityId:s.entityId,prefixe:b,bucketFolder:t,uploadUrl:r}),G=te({name:s.name,extension:c,entityId:s.entityId,prefixe:b,bucketFolder:t,uploadUrl:r}),K=te({name:s.name,extension:l,entityId:s.entityId,prefixe:w,bucketFolder:t,uploadUrl:r}),N=te({name:s.name,extension:c,entityId:s.entityId,prefixe:w,bucketFolder:t,uploadUrl:r}),O=te({name:s.name,extension:l,entityId:s.entityId,prefixe:v,bucketFolder:t,uploadUrl:r}),D=te({name:s.name,extension:c,entityId:s.entityId,prefixe:v,bucketFolder:t,uploadUrl:r});return{image1x:z,image2x:L,image1xWebp:$,image2xWebp:G,mobileImage1x:K,mobileImage2x:O,mobileImage1xWebp:N,mobileImage2xWebp:D,altRU:s.altRU,altEN:s.altEN,type:a}}).filter(s=>!!s):[]}catch(o){return n({error:o}),[]}},Ze=(e,t)=>{switch(t){case"original":return e[0]??"";case"0.25hd":return e[1]??"";case"0.5hd":return e[2]??"";case"1hd":return e[3]??"";case"2hd":return e[4]??"";case"4hd":return e[5]??""}},Da=mt({statusCode:gr().optional(),message:ee().optional().nullable(),messages:ee().array().optional().nullable(),data:vr().optional().nullable(),error:mt({statusCode:gr(),message:ee().optional().nullable(),messages:ee().array().optional().nullable()}).optional().nullable(),response:vr().optional().nullable()});var Be={exports:{}},Pe={};/**
|
|
18
|
+
`)}w.write("payload.value = newResult;"),w.write("return payload;");const O=w.compile();return(Z,U)=>O(y,Z,U)};let i;const a=$t,c=!pr.jitless,l=c&&ha.value,d=t.catchall;let h;e._zod.parse=(y,w)=>{h??(h=r.value);const A=y.value;return a(A)?c&&l&&(w==null?void 0:w.async)===!1&&w.jitless!==!0?(i||(i=o(t.shape)),y=i(y,w),d?zr([],A,y,w,h,e):y):n(y,w):(y.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),y)}});function Nr(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!rt(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>We(a,r,Ve())))}),t)}const nc=m("$ZodUnion",(e,t)=>{re.init(e,t),X(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),X(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),X(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),X(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>_n(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let a=!1;const c=[];for(const s of t.options){const l=s._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)c.push(l),a=!0;else{if(l.issues.length===0)return l;c.push(l)}}return a?Promise.all(c).then(s=>Nr(s,o,e,i)):Nr(c,o,e,i)}}),rc=m("$ZodIntersection",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),a=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,l])=>Lr(n,s,l)):Lr(n,i,a)}});function Tn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vt(e)&&vt(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const a=Tn(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],a=Tn(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Lr(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),rt(e))return e;const r=Tn(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const oc=m("$ZodEnum",(e,t)=>{re.init(e,t);const n=da(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>ga.has(typeof o)).map(o=>typeof o=="string"?Zt(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:n,input:a,inst:e}),o}}),ic=m("$ZodTransform",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new dr(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(n.value=a,n));if(o instanceof Promise)throw new tt;return n.value=o,n}});function Mr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const ac=m("$ZodOptional",(e,t)=>{re.init(e,t),e._zod.optin="optional",e._zod.optout="optional",X(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),X(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${_n(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Mr(i,n.value)):Mr(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),sc=m("$ZodNullable",(e,t)=>{re.init(e,t),X(e._zod,"optin",()=>t.innerType._zod.optin),X(e._zod,"optout",()=>t.innerType._zod.optout),X(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${_n(n.source)}|null)$`):void 0}),X(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),cc=m("$ZodDefault",(e,t)=>{re.init(e,t),e._zod.optin="optional",X(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Dr(i,t)):Dr(o,t)}});function Dr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const lc=m("$ZodPrefault",(e,t)=>{re.init(e,t),e._zod.optin="optional",X(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),uc=m("$ZodNonOptional",(e,t)=>{re.init(e,t),X(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>$r(i,e)):$r(o,e)}});function $r(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const fc=m("$ZodCatch",(e,t)=>{re.init(e,t),X(e._zod,"optin",()=>t.innerType._zod.optin),X(e._zod,"optout",()=>t.innerType._zod.optout),X(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>We(a,r,Ve()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>We(i,r,Ve()))},input:n.value}),n.issues=[]),n)}}),dc=m("$ZodPipe",(e,t)=>{re.init(e,t),X(e._zod,"values",()=>t.in._zod.values),X(e._zod,"optin",()=>t.in._zod.optin),X(e._zod,"optout",()=>t.out._zod.optout),X(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(a=>Vt(a,t.in,r)):Vt(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>Vt(i,t.out,r)):Vt(o,t.out,r)}});function Vt(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const pc=m("$ZodReadonly",(e,t)=>{re.init(e,t),X(e._zod,"propValues",()=>t.innerType._zod.propValues),X(e._zod,"values",()=>t.innerType._zod.values),X(e._zod,"optin",()=>t.innerType._zod.optin),X(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Zr):Zr(o)}});function Zr(e){return e.value=Object.freeze(e.value),e}const mc=m("$ZodCustom",(e,t)=>{Ee.init(e,t),re.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>jr(i,n,r,e));jr(o,n,r,e)}});function jr(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(_t(o))}}class hc{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function gc(){return new hc}const Wt=gc();function vc(e,t){return new e({type:"string",...z(t)})}function _c(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function Fr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function bc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function yc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function Ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function wc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function Tc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function kc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function Ac(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function Rc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function Sc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function xc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function Ic(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function Oc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function Pc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function Cc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function zc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function Nc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function Lc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function Mc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function Dc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function $c(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}function Zc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function jc(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Fc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Uc(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Gc(e,t){return new e({type:"number",checks:[],...z(t)})}function Hc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...z(t)})}function Vc(e){return new e({type:"any"})}function Wc(e){return new e({type:"unknown"})}function Bc(e,t){return new e({type:"never",...z(t)})}function Ur(e,t){return new Sr({check:"less_than",...z(t),value:e,inclusive:!1})}function kn(e,t){return new Sr({check:"less_than",...z(t),value:e,inclusive:!0})}function Gr(e,t){return new xr({check:"greater_than",...z(t),value:e,inclusive:!1})}function An(e,t){return new xr({check:"greater_than",...z(t),value:e,inclusive:!0})}function Hr(e,t){return new us({check:"multiple_of",...z(t),value:e})}function Vr(e,t){return new ds({check:"max_length",...z(t),maximum:e})}function Bt(e,t){return new ps({check:"min_length",...z(t),minimum:e})}function Wr(e,t){return new ms({check:"length_equals",...z(t),length:e})}function qc(e,t){return new hs({check:"string_format",format:"regex",...z(t),pattern:e})}function Yc(e){return new gs({check:"string_format",format:"lowercase",...z(e)})}function Xc(e){return new vs({check:"string_format",format:"uppercase",...z(e)})}function Jc(e,t){return new _s({check:"string_format",format:"includes",...z(t),includes:e})}function Kc(e,t){return new bs({check:"string_format",format:"starts_with",...z(t),prefix:e})}function Qc(e,t){return new ys({check:"string_format",format:"ends_with",...z(t),suffix:e})}function bt(e){return new Es({check:"overwrite",tx:e})}function el(e){return bt(t=>t.normalize(e))}function tl(){return bt(e=>e.trim())}function nl(){return bt(e=>e.toLowerCase())}function rl(){return bt(e=>e.toUpperCase())}function ol(e,t,n){return new e({type:"array",element:t,...z(n)})}function il(e,t,n){return new e({type:"custom",check:"custom",fn:t,...z(n)})}function al(e){const t=sl(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(_t(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(_t(o))}},e(n.value,n)));return t}function sl(e,t){const n=new Ee({check:"custom",...z(t)});return n._zod.check=e,n}const cl=m("ZodISODateTime",(e,t)=>{Ls.init(e,t),ne.init(e,t)});function ll(e){return Zc(cl,e)}const ul=m("ZodISODate",(e,t)=>{Ms.init(e,t),ne.init(e,t)});function fl(e){return jc(ul,e)}const dl=m("ZodISOTime",(e,t)=>{Ds.init(e,t),ne.init(e,t)});function pl(e){return Fc(dl,e)}const ml=m("ZodISODuration",(e,t)=>{$s.init(e,t),ne.init(e,t)});function hl(e){return Uc(ml,e)}const Re=m("ZodError",(e,t)=>{yr.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Sa(e,n)},flatten:{value:n=>Ra(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,hn,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,hn,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),gl=yn(Re),vl=En(Re),_l=Ft(Re),bl=Ut(Re),yl=Oa(Re),El=Pa(Re),wl=Ca(Re),Tl=za(Re),kl=Na(Re),Al=La(Re),Rl=Ma(Re),Sl=Da(Re),se=m("ZodType",(e,t)=>(re.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>Fe(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>gl(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>_l(e,n,r),e.parseAsync=async(n,r)=>vl(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>bl(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>yl(e,n,r),e.decode=(n,r)=>El(e,n,r),e.encodeAsync=async(n,r)=>wl(e,n,r),e.decodeAsync=async(n,r)=>Tl(e,n,r),e.safeEncode=(n,r)=>kl(e,n,r),e.safeDecode=(n,r)=>Al(e,n,r),e.safeEncodeAsync=async(n,r)=>Rl(e,n,r),e.safeDecodeAsync=async(n,r)=>Sl(e,n,r),e.refine=(n,r)=>e.check(bu(n,r)),e.superRefine=n=>e.check(yu(n)),e.overwrite=n=>e.check(bt(n)),e.optional=()=>to(e),e.nullable=()=>no(e),e.nullish=()=>to(no(e)),e.nonoptional=n=>du(e,n),e.array=()=>Kl(e),e.or=n=>tu([e,n]),e.and=n=>ru(e,n),e.transform=n=>oo(e,au(n)),e.default=n=>lu(e,n),e.prefault=n=>fu(e,n),e.catch=n=>mu(e,n),e.pipe=n=>oo(e,n),e.readonly=()=>vu(e),e.describe=n=>{const r=e.clone();return Wt.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Wt.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Wt.get(e);const r=e.clone();return Wt.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Br=m("_ZodString",(e,t)=>{wn.init(e,t),se.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(qc(...r)),e.includes=(...r)=>e.check(Jc(...r)),e.startsWith=(...r)=>e.check(Kc(...r)),e.endsWith=(...r)=>e.check(Qc(...r)),e.min=(...r)=>e.check(Bt(...r)),e.max=(...r)=>e.check(Vr(...r)),e.length=(...r)=>e.check(Wr(...r)),e.nonempty=(...r)=>e.check(Bt(1,...r)),e.lowercase=r=>e.check(Yc(r)),e.uppercase=r=>e.check(Xc(r)),e.trim=()=>e.check(tl()),e.normalize=(...r)=>e.check(el(...r)),e.toLowerCase=()=>e.check(nl()),e.toUpperCase=()=>e.check(rl())}),xl=m("ZodString",(e,t)=>{wn.init(e,t),Br.init(e,t),e.email=n=>e.check(_c(Il,n)),e.url=n=>e.check(Tc(Ol,n)),e.jwt=n=>e.check($c(Vl,n)),e.emoji=n=>e.check(kc(Pl,n)),e.guid=n=>e.check(Fr(qr,n)),e.uuid=n=>e.check(bc(qt,n)),e.uuidv4=n=>e.check(yc(qt,n)),e.uuidv6=n=>e.check(Ec(qt,n)),e.uuidv7=n=>e.check(wc(qt,n)),e.nanoid=n=>e.check(Ac(Cl,n)),e.guid=n=>e.check(Fr(qr,n)),e.cuid=n=>e.check(Rc(zl,n)),e.cuid2=n=>e.check(Sc(Nl,n)),e.ulid=n=>e.check(xc(Ll,n)),e.base64=n=>e.check(Lc(Ul,n)),e.base64url=n=>e.check(Mc(Gl,n)),e.xid=n=>e.check(Ic(Ml,n)),e.ksuid=n=>e.check(Oc(Dl,n)),e.ipv4=n=>e.check(Pc($l,n)),e.ipv6=n=>e.check(Cc(Zl,n)),e.cidrv4=n=>e.check(zc(jl,n)),e.cidrv6=n=>e.check(Nc(Fl,n)),e.e164=n=>e.check(Dc(Hl,n)),e.datetime=n=>e.check(ll(n)),e.date=n=>e.check(fl(n)),e.time=n=>e.check(pl(n)),e.duration=n=>e.check(hl(n))});function ze(e){return vc(xl,e)}const ne=m("ZodStringFormat",(e,t)=>{K.init(e,t),Br.init(e,t)}),Il=m("ZodEmail",(e,t)=>{Rs.init(e,t),ne.init(e,t)}),qr=m("ZodGUID",(e,t)=>{ks.init(e,t),ne.init(e,t)}),qt=m("ZodUUID",(e,t)=>{As.init(e,t),ne.init(e,t)}),Ol=m("ZodURL",(e,t)=>{Ss.init(e,t),ne.init(e,t)}),Pl=m("ZodEmoji",(e,t)=>{xs.init(e,t),ne.init(e,t)}),Cl=m("ZodNanoID",(e,t)=>{Is.init(e,t),ne.init(e,t)}),zl=m("ZodCUID",(e,t)=>{Os.init(e,t),ne.init(e,t)}),Nl=m("ZodCUID2",(e,t)=>{Ps.init(e,t),ne.init(e,t)}),Ll=m("ZodULID",(e,t)=>{Cs.init(e,t),ne.init(e,t)}),Ml=m("ZodXID",(e,t)=>{zs.init(e,t),ne.init(e,t)}),Dl=m("ZodKSUID",(e,t)=>{Ns.init(e,t),ne.init(e,t)}),$l=m("ZodIPv4",(e,t)=>{Zs.init(e,t),ne.init(e,t)}),Zl=m("ZodIPv6",(e,t)=>{js.init(e,t),ne.init(e,t)}),jl=m("ZodCIDRv4",(e,t)=>{Fs.init(e,t),ne.init(e,t)}),Fl=m("ZodCIDRv6",(e,t)=>{Us.init(e,t),ne.init(e,t)}),Ul=m("ZodBase64",(e,t)=>{Gs.init(e,t),ne.init(e,t)}),Gl=m("ZodBase64URL",(e,t)=>{Vs.init(e,t),ne.init(e,t)}),Hl=m("ZodE164",(e,t)=>{Ws.init(e,t),ne.init(e,t)}),Vl=m("ZodJWT",(e,t)=>{qs.init(e,t),ne.init(e,t)}),Yr=m("ZodNumber",(e,t)=>{Or.init(e,t),se.init(e,t),e.gt=(r,o)=>e.check(Gr(r,o)),e.gte=(r,o)=>e.check(An(r,o)),e.min=(r,o)=>e.check(An(r,o)),e.lt=(r,o)=>e.check(Ur(r,o)),e.lte=(r,o)=>e.check(kn(r,o)),e.max=(r,o)=>e.check(kn(r,o)),e.int=r=>e.check(Jr(r)),e.safe=r=>e.check(Jr(r)),e.positive=r=>e.check(Gr(0,r)),e.nonnegative=r=>e.check(An(0,r)),e.negative=r=>e.check(Ur(0,r)),e.nonpositive=r=>e.check(kn(0,r)),e.multipleOf=(r,o)=>e.check(Hr(r,o)),e.step=(r,o)=>e.check(Hr(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Xr(e){return Gc(Yr,e)}const Wl=m("ZodNumberFormat",(e,t)=>{Ys.init(e,t),Yr.init(e,t)});function Jr(e){return Hc(Wl,e)}const Bl=m("ZodAny",(e,t)=>{Xs.init(e,t),se.init(e,t)});function Kr(){return Vc(Bl)}const ql=m("ZodUnknown",(e,t)=>{Js.init(e,t),se.init(e,t)});function Qr(){return Wc(ql)}const Yl=m("ZodNever",(e,t)=>{Ks.init(e,t),se.init(e,t)});function Xl(e){return Bc(Yl,e)}const Jl=m("ZodArray",(e,t)=>{Qs.init(e,t),se.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Bt(n,r)),e.nonempty=n=>e.check(Bt(1,n)),e.max=(n,r)=>e.check(Vr(n,r)),e.length=(n,r)=>e.check(Wr(n,r)),e.unwrap=()=>e.element});function Kl(e,t){return ol(Jl,e,t)}const Ql=m("ZodObject",(e,t)=>{tc.init(e,t),se.init(e,t),X(e,"shape",()=>t.shape),e.keyof=()=>ou(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Qr()}),e.loose=()=>e.clone({...e._zod.def,catchall:Qr()}),e.strict=()=>e.clone({...e._zod.def,catchall:Xl()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Ea(e,n),e.safeExtend=n=>wa(e,n),e.merge=n=>Ta(e,n),e.pick=n=>ba(e,n),e.omit=n=>ya(e,n),e.partial=(...n)=>ka(eo,e,n[0]),e.required=(...n)=>Aa(ro,e,n[0])});function Rn(e,t){const n={type:"object",get shape(){return je(this,"shape",e?ma(e):{}),this.shape},...z(t)};return new Ql(n)}const eu=m("ZodUnion",(e,t)=>{nc.init(e,t),se.init(e,t),e.options=t.options});function tu(e,t){return new eu({type:"union",options:e,...z(t)})}const nu=m("ZodIntersection",(e,t)=>{rc.init(e,t),se.init(e,t)});function ru(e,t){return new nu({type:"intersection",left:e,right:t})}const Sn=m("ZodEnum",(e,t)=>{oc.init(e,t),se.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const a of r)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Sn({...t,checks:[],...z(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const a of r)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Sn({...t,checks:[],...z(o),entries:i})}});function ou(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Sn({type:"enum",entries:n,...z(t)})}const iu=m("ZodTransform",(e,t)=>{ic.init(e,t),se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new dr(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(_t(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(_t(a))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function au(e){return new iu({type:"transform",transform:e})}const eo=m("ZodOptional",(e,t)=>{ac.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType});function to(e){return new eo({type:"optional",innerType:e})}const su=m("ZodNullable",(e,t)=>{sc.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType});function no(e){return new su({type:"nullable",innerType:e})}const cu=m("ZodDefault",(e,t)=>{cc.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lu(e,t){return new cu({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():vr(t)}})}const uu=m("ZodPrefault",(e,t)=>{lc.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType});function fu(e,t){return new uu({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():vr(t)}})}const ro=m("ZodNonOptional",(e,t)=>{uc.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType});function du(e,t){return new ro({type:"nonoptional",innerType:e,...z(t)})}const pu=m("ZodCatch",(e,t)=>{fc.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function mu(e,t){return new pu({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const hu=m("ZodPipe",(e,t)=>{dc.init(e,t),se.init(e,t),e.in=t.in,e.out=t.out});function oo(e,t){return new hu({type:"pipe",in:e,out:t})}const gu=m("ZodReadonly",(e,t)=>{pc.init(e,t),se.init(e,t),e.unwrap=()=>e._zod.def.innerType});function vu(e){return new gu({type:"readonly",innerType:e})}const _u=m("ZodCustom",(e,t)=>{mc.init(e,t),se.init(e,t)});function bu(e,t={}){return il(_u,e,t)}function yu(e){return al(e)}const Ne=({name:e,extension:t,entityId:n,prefixe:r,bucketFolder:o,uploadUrl:i})=>`${i}/${o}/${n}/${e}-${r}.${t}`,io=(e,t)=>{try{return Rn({altRU:ze().optional().nullable(),altEN:ze().optional().nullable(),name:ze(),originalFileExtension:ze(),fileExtensions:ze().array()}).parse(e),!0}catch(n){return t({error:n}),!1}},Eu=({images:e,bucketFolder:t,uploadUrl:n,getError:r})=>{if(!e)return[];try{const o=JSON.parse(e);return Array.isArray(o)?o.map(a=>{if(!io(a,r))return null;const c=a.originalFileExtension==="png"?"image/png":"image/jpeg",s=a.fileExtensions[0],l=a.fileExtensions[1],d=yt(a.prefixes,"1hd"),h=yt(a.prefixes,"2hd"),y=yt(a.prefixes,"0.5hd"),w=yt(a.prefixes,"1hd"),A=Ne({name:a.name,extension:l,entityId:a.entityId,prefixe:d,bucketFolder:t,uploadUrl:n}),E=Ne({name:a.name,extension:s,entityId:a.entityId,prefixe:d,bucketFolder:t,uploadUrl:n}),R=Ne({name:a.name,extension:l,entityId:a.entityId,prefixe:h,bucketFolder:t,uploadUrl:n}),N=Ne({name:a.name,extension:s,entityId:a.entityId,prefixe:h,bucketFolder:t,uploadUrl:n}),O=Ne({name:a.name,extension:l,entityId:a.entityId,prefixe:y,bucketFolder:t,uploadUrl:n}),Z=Ne({name:a.name,extension:s,entityId:a.entityId,prefixe:y,bucketFolder:t,uploadUrl:n}),U=Ne({name:a.name,extension:l,entityId:a.entityId,prefixe:w,bucketFolder:t,uploadUrl:n}),u=Ne({name:a.name,extension:s,entityId:a.entityId,prefixe:w,bucketFolder:t,uploadUrl:n});return{image1x:A,image2x:R,image1xWebp:E,image2xWebp:N,mobileImage1x:O,mobileImage2x:U,mobileImage1xWebp:Z,mobileImage2xWebp:u,altRU:a.altRU,altEN:a.altEN,type:c}}).filter(a=>!!a):[]}catch(o){return r({error:o}),[]}},yt=(e,t)=>{switch(t){case"original":return e[0]??"";case"0.25hd":return e[1]??"";case"0.5hd":return e[2]??"";case"1hd":return e[3]??"";case"2hd":return e[4]??"";case"4hd":return e[5]??""}},wu=Rn({statusCode:Xr().optional(),message:ze().optional().nullable(),messages:ze().array().optional().nullable(),data:Kr().optional().nullable(),error:Rn({statusCode:Xr(),message:ze().optional().nullable(),messages:ze().array().optional().nullable()}).optional().nullable(),response:Kr().optional().nullable()});var Yt={exports:{}},Et={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* react-jsx-runtime.production.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var ao;function Tu(){if(ao)return Et;ao=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var c in o)c!=="key"&&(i[c]=o[c])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Et.Fragment=t,Et.jsx=n,Et.jsxs=n,Et}var wt={};/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-jsx-runtime.development.js
|
|
29
29
|
*
|
|
@@ -31,9 +31,11 @@
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var
|
|
34
|
+
*/var so;function ku(){return so||(so=1,process.env.NODE_ENV!=="production"&&(function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===S?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case E:return"Fragment";case N:return"Profiler";case R:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList";case M:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case A:return"Portal";case Z:return(_.displayName||"Context")+".Provider";case O:return(_._context.displayName||"Context")+".Consumer";case U:var D=_.render;return _=_.displayName,_||(_=D.displayName||D.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case v:return D=_.displayName||null,D!==null?D:e(_.type)||"Memo";case g:D=_._payload,_=_._init;try{return e(_(D))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var D=!1}catch{D=!0}if(D){D=console;var q=D.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return q.call(D,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(_)}}function r(_){if(_===E)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===g)return"<...>";try{var D=e(_);return D?"<"+D+">":"<...>"}catch{return"<...>"}}function o(){var _=oe.A;return _===null?null:_.getOwner()}function i(){return Error("react-stack-top-frame")}function a(_){if(Q.call(_,"key")){var D=Object.getOwnPropertyDescriptor(_,"key").get;if(D&&D.isReactWarning)return!1}return _.key!==void 0}function c(_,D){function q(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",D))}q.isReactWarning=!0,Object.defineProperty(_,"key",{get:q,configurable:!0})}function s(){var _=e(this.type);return ue[_]||(ue[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function l(_,D,q,H,Y,pe,Ue,ee){return q=pe.ref,_={$$typeof:w,type:_,key:D,props:pe,_owner:Y},(q!==void 0?q:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:s}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ue}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function d(_,D,q,H,Y,pe,Ue,ee){var ie=D.children;if(ie!==void 0)if(H)if(j(ie)){for(H=0;H<ie.length;H++)h(ie[H]);Object.freeze&&Object.freeze(ie)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ie);if(Q.call(D,"key")){ie=e(_);var ke=Object.keys(D).filter(function(Xe){return Xe!=="key"});H=0<ke.length?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}",Ye[ie+H]||(ke=0<ke.length?"{"+ke.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
35
35
|
let props = %s;
|
|
36
36
|
<%s {...props} />
|
|
37
37
|
React keys must be passed directly to JSX without using spread:
|
|
38
38
|
let props = %s;
|
|
39
|
-
<%s key={someKey} {...props} />`,E,M,q,M),Re[M+E]=!0)}if(M=null,I!==void 0&&(r(I),M=""+I),s(k)&&(r(k.key),M=""+k.key),"key"in k){I={};for(var ce in k)ce!=="key"&&(I[ce]=k[ce])}else I=k;return M&&a(I,typeof d=="function"?d.displayName||d.name||"Unknown":d),l(d,M,V,R,o(),I,ze,S)}function b(d){typeof d=="object"&&d!==null&&d.$$typeof===v&&d._store&&(d._store.validated=1)}var w=F,v=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),N=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Ye=Symbol.for("react.client.reference"),ye=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=Object.prototype.hasOwnProperty,Je=Array.isArray,he=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(d){return d()}};var oe,J={},H=w.react_stack_bottom_frame.bind(w,i)(),g=he(n(i)),Re={};Te.Fragment=$,Te.jsx=function(d,k,I,E,R){var V=1e4>ye.recentlyCreatedOwnerStacks++;return f(d,k,I,!1,E,R,V?Error("react-stack-top-frame"):H,V?he(n(d)):g)},Te.jsxs=function(d,k,I,E,R){var V=1e4>ye.recentlyCreatedOwnerStacks++;return f(d,k,I,!0,E,R,V?Error("react-stack-top-frame"):H,V?he(n(d)):g)}})()),Te}var Zr;function Ua(){return Zr||(Zr=1,process.env.NODE_ENV==="production"?Be.exports=Va():Be.exports=Fa()),Be.exports}var re=Ua();const Wa=({children:e,intersectionElementClassName:t,isNext:r,intersectionElement:n,onIntersection:o})=>{const i=F.useRef({}),s=Ar(i,{root:null,rootMargin:"0px",threshold:1});return F.useEffect(()=>{s!=null&&s.isIntersecting&&o()},[s==null?void 0:s.isIntersecting]),re.jsxs("div",{children:[re.jsx("div",{children:e}),re.jsx("div",{className:rt(t,{hidden:!r}),ref:i,children:n()})]})},Ga=({imgProps:e,image1x:t,image2x:r,image1xWebp:n,image2xWebp:o,mobileImage1x:i,mobileImage2x:s,mobileImage1xWebp:a,mobileImage2xWebp:c,type:l,alt:f,bgColorClass:b,mobileMaxWidth:w=450,loading:v="lazy",...z})=>re.jsxs("picture",{...z,children:[i&&re.jsx("source",{srcSet:`${i} 1x${s?`, ${s} 2x`:""}`,media:`(max-width: ${w}px)`,type:l}),a&&re.jsx("source",{srcSet:`${a} 1x${c?`, ${c} 2x`:""}`,media:`(max-width: ${w}px)`,type:"image/webp"}),n&&re.jsx("source",{srcSet:`${n} 1x${o?`, ${o} 2x`:""}`,type:"image/webp"}),re.jsx("source",{srcSet:`${t} 1x${r?`, ${r} 2x`:""}`,type:l}),re.jsx("img",{...e,className:rt(b,e==null?void 0:e.className),src:n||t,alt:f,loading:v})]});x.BasePicture=Ga,x.InfinityList=Wa,x.THEME=W,x.TIME=Pr,x.checkCorrectImageObject=$r,x.cn=rt,x.convertPhoneMask=Fr,x.generatePaginationArray=Yr,x.getByKey=gt,x.getImagePrefix=Ze,x.getNumberFormatter=Vr,x.getSubdomain=Ur,x.getUploadImageUrl=te,x.parseStringToKeyValue=Gr,x.prepareColor=Br,x.prepareLocalMetaData=Wr,x.prepareServerImages=La,x.responseSchema=Da,x.updateTextByTemplate=ue,x.useDisableScroll=Tr,x.useExtraMediumViewPort=Mr,x.useIsClient=Rr,x.useLaptopBigViewPort=Cr,x.useLaptopViewPort=jr,x.useMobileViewPort=Lr,x.useSmallViewPort=Dr,x.useTabletViewPort=Nr,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})}));
|
|
39
|
+
<%s key={someKey} {...props} />`,H,ie,ke,ie),Ye[ie+H]=!0)}if(ie=null,q!==void 0&&(n(q),ie=""+q),a(D)&&(n(D.key),ie=""+D.key),"key"in D){q={};for(var Ie in D)Ie!=="key"&&(q[Ie]=D[Ie])}else q=D;return ie&&c(q,typeof _=="function"?_.displayName||_.name||"Unknown":_),l(_,ie,pe,Y,o(),q,Ue,ee)}function h(_){typeof _=="object"&&_!==null&&_.$$typeof===w&&_._store&&(_._store.validated=1)}var y=he,w=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),oe=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,j=Array.isArray,L=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(_){return _()}};var J,ue={},xe=y.react_stack_bottom_frame.bind(y,i)(),C=L(r(i)),Ye={};wt.Fragment=E,wt.jsx=function(_,D,q,H,Y){var pe=1e4>oe.recentlyCreatedOwnerStacks++;return d(_,D,q,!1,H,Y,pe?Error("react-stack-top-frame"):xe,pe?L(r(_)):C)},wt.jsxs=function(_,D,q,H,Y){var pe=1e4>oe.recentlyCreatedOwnerStacks++;return d(_,D,q,!0,H,Y,pe?Error("react-stack-top-frame"):xe,pe?L(r(_)):C)}})()),wt}var co;function Au(){return co||(co=1,process.env.NODE_ENV==="production"?Yt.exports=Tu():Yt.exports=ku()),Yt.exports}var Oe=Au();const Ru=({children:e,intersectionElementClassName:t,isNext:n,intersectionElement:r,onIntersection:o})=>{const i=he.useRef({}),a=vi(i,{root:null,rootMargin:"0px",threshold:1});return he.useEffect(()=>{a!=null&&a.isIntersecting&&o()},[a==null?void 0:a.isIntersecting]),Oe.jsxs("div",{children:[Oe.jsx("div",{children:e}),Oe.jsx("div",{className:mn(t,{hidden:!n}),ref:i,children:r()})]})},Su=({imgProps:e,image1x:t,image2x:n,image1xWebp:r,image2xWebp:o,mobileImage1x:i,mobileImage2x:a,mobileImage1xWebp:c,mobileImage2xWebp:s,type:l,alt:d,bgColorClass:h,mobileMaxWidth:y=450,loading:w="lazy",...A})=>Oe.jsxs("picture",{...A,children:[i&&Oe.jsx("source",{srcSet:`${i} 1x${a?`, ${a} 2x`:""}`,media:`(max-width: ${y}px)`,type:l}),c&&Oe.jsx("source",{srcSet:`${c} 1x${s?`, ${s} 2x`:""}`,media:`(max-width: ${y}px)`,type:"image/webp"}),r&&Oe.jsx("source",{srcSet:`${r} 1x${o?`, ${o} 2x`:""}`,type:"image/webp"}),Oe.jsx("source",{srcSet:`${t} 1x${n?`, ${n} 2x`:""}`,type:l}),Oe.jsx("img",{...e,className:mn(h,e==null?void 0:e.className),src:r||t,alt:d,loading:w})]});/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */var xn,lo;function uo(){if(lo)return xn;lo=1;const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:c}=Object,{apply:s,construct:l}=typeof Reflect<"u"&&Reflect;i||(i=function(I){return I}),a||(a=function(I){return I}),s||(s=function(I,B,V){return I.apply(B,V)}),l||(l=function(I,B){return new I(...B)});const d=g(Array.prototype.forEach),h=g(Array.prototype.lastIndexOf),y=g(Array.prototype.pop),w=g(Array.prototype.push),A=g(Array.prototype.splice),E=g(String.prototype.toLowerCase),R=g(String.prototype.toString),N=g(String.prototype.match),O=g(String.prototype.replace),Z=g(String.prototype.indexOf),U=g(String.prototype.trim),u=g(Object.prototype.hasOwnProperty),p=g(RegExp.prototype.test),v=M(TypeError);function g(G){return function(I){I instanceof RegExp&&(I.lastIndex=0);for(var B=arguments.length,V=new Array(B>1?B-1:0),ge=1;ge<B;ge++)V[ge-1]=arguments[ge];return s(G,I,V)}}function M(G){return function(){for(var I=arguments.length,B=new Array(I),V=0;V<I;V++)B[V]=arguments[V];return l(G,B)}}function S(G,I){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E;t&&t(G,null);let V=I.length;for(;V--;){let ge=I[V];if(typeof ge=="string"){const Le=B(ge);Le!==ge&&(n(I)||(I[V]=Le),ge=Le)}G[ge]=!0}return G}function oe(G){for(let I=0;I<G.length;I++)u(G,I)||(G[I]=null);return G}function Q(G){const I=c(null);for(const[B,V]of e(G))u(G,B)&&(Array.isArray(V)?I[B]=oe(V):V&&typeof V=="object"&&V.constructor===Object?I[B]=Q(V):I[B]=V);return I}function j(G,I){for(;G!==null;){const V=o(G,I);if(V){if(V.get)return g(V.get);if(typeof V.value=="function")return g(V.value)}G=r(G)}function B(){return null}return B}const L=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),J=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ue=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xe=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),C=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ye=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),q=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pe=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ue=a(/<%[\w\W]*|[\w\W]*%>/gm),ee=a(/\$\{[\w\W]*/gm),ie=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),ke=a(/^aria-[\-\w]+$/),Ie=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xe=a(/^(?:\w+script|data):/i),st=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Do=a(/^html$/i),Vu=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var $o=Object.freeze({__proto__:null,ARIA_ATTR:ke,ATTR_WHITESPACE:st,CUSTOM_ELEMENT:Vu,DATA_ATTR:ie,DOCTYPE_NAME:Do,ERB_EXPR:Ue,IS_ALLOWED_URI:Ie,IS_SCRIPT_OR_DATA:Xe,MUSTACHE_EXPR:pe,TMPLIT_EXPR:ee});const xt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Wu=function(){return typeof window>"u"?null:window},Bu=function(I,B){if(typeof I!="object"||typeof I.createPolicy!="function")return null;let V=null;const ge="data-tt-policy-suffix";B&&B.hasAttribute(ge)&&(V=B.getAttribute(ge));const Le="dompurify"+(V?"#"+V:"");try{return I.createPolicy(Le,{createHTML(ct){return ct},createScriptURL(ct){return ct}})}catch{return console.warn("TrustedTypes policy "+Le+" could not be created."),null}},Zo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jo(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wu();const I=P=>jo(P);if(I.version="3.2.6",I.removed=[],!G||!G.document||G.document.nodeType!==xt.document||!G.Element)return I.isSupported=!1,I;let{document:B}=G;const V=B,ge=V.currentScript,{DocumentFragment:Le,HTMLTemplateElement:ct,Node:zn,Element:Fo,NodeFilter:It,NamedNodeMap:Yu=G.NamedNodeMap||G.MozNamedAttrMap,HTMLFormElement:Xu,DOMParser:Ju,trustedTypes:Kt}=G,Ot=Fo.prototype,Ku=j(Ot,"cloneNode"),Qu=j(Ot,"remove"),ef=j(Ot,"nextSibling"),tf=j(Ot,"childNodes"),Qt=j(Ot,"parentNode");if(typeof ct=="function"){const P=B.createElement("template");P.content&&P.content.ownerDocument&&(B=P.content.ownerDocument)}let be,Pt="";const{implementation:Nn,createNodeIterator:nf,createDocumentFragment:rf,getElementsByTagName:of}=B,{importNode:af}=V;let ye=Zo();I.isSupported=typeof e=="function"&&typeof Qt=="function"&&Nn&&Nn.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ln,ERB_EXPR:Mn,TMPLIT_EXPR:Dn,DATA_ATTR:sf,ARIA_ATTR:cf,IS_SCRIPT_OR_DATA:lf,ATTR_WHITESPACE:Uo,CUSTOM_ELEMENT:uf}=$o;let{IS_ALLOWED_URI:Go}=$o,fe=null;const Ho=S({},[...L,...J,...ue,...C,..._]);let me=null;const Vo=S({},[...D,...q,...H,...Y]);let ae=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,$n=null,Wo=!0,Zn=!0,Bo=!1,qo=!0,lt=!1,en=!0,Je=!1,jn=!1,Fn=!1,ut=!1,tn=!1,nn=!1,Yo=!0,Xo=!1;const ff="user-content-";let Un=!0,zt=!1,ft={},dt=null;const Jo=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ko=null;const Qo=S({},["audio","video","img","source","image","track"]);let Gn=null;const ei=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rn="http://www.w3.org/1998/Math/MathML",on="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let pt=Me,Hn=!1,Vn=null;const df=S({},[rn,on,Me],R);let an=S({},["mi","mo","mn","ms","mtext"]),sn=S({},["annotation-xml"]);const pf=S({},["title","style","font","a","script"]);let Nt=null;const mf=["application/xhtml+xml","text/html"],hf="text/html";let de=null,mt=null;const gf=B.createElement("form"),ti=function(f){return f instanceof RegExp||f instanceof Function},Wn=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(mt&&mt===f)){if((!f||typeof f!="object")&&(f={}),f=Q(f),Nt=mf.indexOf(f.PARSER_MEDIA_TYPE)===-1?hf:f.PARSER_MEDIA_TYPE,de=Nt==="application/xhtml+xml"?R:E,fe=u(f,"ALLOWED_TAGS")?S({},f.ALLOWED_TAGS,de):Ho,me=u(f,"ALLOWED_ATTR")?S({},f.ALLOWED_ATTR,de):Vo,Vn=u(f,"ALLOWED_NAMESPACES")?S({},f.ALLOWED_NAMESPACES,R):df,Gn=u(f,"ADD_URI_SAFE_ATTR")?S(Q(ei),f.ADD_URI_SAFE_ATTR,de):ei,Ko=u(f,"ADD_DATA_URI_TAGS")?S(Q(Qo),f.ADD_DATA_URI_TAGS,de):Qo,dt=u(f,"FORBID_CONTENTS")?S({},f.FORBID_CONTENTS,de):Jo,Ct=u(f,"FORBID_TAGS")?S({},f.FORBID_TAGS,de):Q({}),$n=u(f,"FORBID_ATTR")?S({},f.FORBID_ATTR,de):Q({}),ft=u(f,"USE_PROFILES")?f.USE_PROFILES:!1,Wo=f.ALLOW_ARIA_ATTR!==!1,Zn=f.ALLOW_DATA_ATTR!==!1,Bo=f.ALLOW_UNKNOWN_PROTOCOLS||!1,qo=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=f.SAFE_FOR_TEMPLATES||!1,en=f.SAFE_FOR_XML!==!1,Je=f.WHOLE_DOCUMENT||!1,ut=f.RETURN_DOM||!1,tn=f.RETURN_DOM_FRAGMENT||!1,nn=f.RETURN_TRUSTED_TYPE||!1,Fn=f.FORCE_BODY||!1,Yo=f.SANITIZE_DOM!==!1,Xo=f.SANITIZE_NAMED_PROPS||!1,Un=f.KEEP_CONTENT!==!1,zt=f.IN_PLACE||!1,Go=f.ALLOWED_URI_REGEXP||Ie,pt=f.NAMESPACE||Me,an=f.MATHML_TEXT_INTEGRATION_POINTS||an,sn=f.HTML_INTEGRATION_POINTS||sn,ae=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&ti(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ae.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&ti(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ae.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ae.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(Zn=!1),tn&&(ut=!0),ft&&(fe=S({},_),me=[],ft.html===!0&&(S(fe,L),S(me,D)),ft.svg===!0&&(S(fe,J),S(me,q),S(me,Y)),ft.svgFilters===!0&&(S(fe,ue),S(me,q),S(me,Y)),ft.mathMl===!0&&(S(fe,C),S(me,H),S(me,Y))),f.ADD_TAGS&&(fe===Ho&&(fe=Q(fe)),S(fe,f.ADD_TAGS,de)),f.ADD_ATTR&&(me===Vo&&(me=Q(me)),S(me,f.ADD_ATTR,de)),f.ADD_URI_SAFE_ATTR&&S(Gn,f.ADD_URI_SAFE_ATTR,de),f.FORBID_CONTENTS&&(dt===Jo&&(dt=Q(dt)),S(dt,f.FORBID_CONTENTS,de)),Un&&(fe["#text"]=!0),Je&&S(fe,["html","head","body"]),fe.table&&(S(fe,["tbody"]),delete Ct.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');be=f.TRUSTED_TYPES_POLICY,Pt=be.createHTML("")}else be===void 0&&(be=Bu(Kt,ge)),be!==null&&typeof Pt=="string"&&(Pt=be.createHTML(""));i&&i(f),mt=f}},ni=S({},[...J,...ue,...xe]),ri=S({},[...C,...Ye]),vf=function(f){let b=Qt(f);(!b||!b.tagName)&&(b={namespaceURI:pt,tagName:"template"});const x=E(f.tagName),te=E(b.tagName);return Vn[f.namespaceURI]?f.namespaceURI===on?b.namespaceURI===Me?x==="svg":b.namespaceURI===rn?x==="svg"&&(te==="annotation-xml"||an[te]):!!ni[x]:f.namespaceURI===rn?b.namespaceURI===Me?x==="math":b.namespaceURI===on?x==="math"&&sn[te]:!!ri[x]:f.namespaceURI===Me?b.namespaceURI===on&&!sn[te]||b.namespaceURI===rn&&!an[te]?!1:!ri[x]&&(pf[x]||!ni[x]):!!(Nt==="application/xhtml+xml"&&Vn[f.namespaceURI]):!1},Pe=function(f){w(I.removed,{element:f});try{Qt(f).removeChild(f)}catch{Qu(f)}},ht=function(f,b){try{w(I.removed,{attribute:b.getAttributeNode(f),from:b})}catch{w(I.removed,{attribute:null,from:b})}if(b.removeAttribute(f),f==="is")if(ut||tn)try{Pe(b)}catch{}else try{b.setAttribute(f,"")}catch{}},oi=function(f){let b=null,x=null;if(Fn)f="<remove></remove>"+f;else{const le=N(f,/^[\r\n\t ]+/);x=le&&le[0]}Nt==="application/xhtml+xml"&&pt===Me&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const te=be?be.createHTML(f):f;if(pt===Me)try{b=new Ju().parseFromString(te,Nt)}catch{}if(!b||!b.documentElement){b=Nn.createDocument(pt,"template",null);try{b.documentElement.innerHTML=Hn?Pt:te}catch{}}const ve=b.body||b.documentElement;return f&&x&&ve.insertBefore(B.createTextNode(x),ve.childNodes[0]||null),pt===Me?of.call(b,Je?"html":"body")[0]:Je?b.documentElement:ve},ii=function(f){return nf.call(f.ownerDocument||f,f,It.SHOW_ELEMENT|It.SHOW_COMMENT|It.SHOW_TEXT|It.SHOW_PROCESSING_INSTRUCTION|It.SHOW_CDATA_SECTION,null)},Bn=function(f){return f instanceof Xu&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof Yu)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},ai=function(f){return typeof zn=="function"&&f instanceof zn};function De(P,f,b){d(P,x=>{x.call(I,f,b,mt)})}const si=function(f){let b=null;if(De(ye.beforeSanitizeElements,f,null),Bn(f))return Pe(f),!0;const x=de(f.nodeName);if(De(ye.uponSanitizeElement,f,{tagName:x,allowedTags:fe}),en&&f.hasChildNodes()&&!ai(f.firstElementChild)&&p(/<[/\w!]/g,f.innerHTML)&&p(/<[/\w!]/g,f.textContent)||f.nodeType===xt.progressingInstruction||en&&f.nodeType===xt.comment&&p(/<[/\w]/g,f.data))return Pe(f),!0;if(!fe[x]||Ct[x]){if(!Ct[x]&&li(x)&&(ae.tagNameCheck instanceof RegExp&&p(ae.tagNameCheck,x)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(x)))return!1;if(Un&&!dt[x]){const te=Qt(f)||f.parentNode,ve=tf(f)||f.childNodes;if(ve&&te){const le=ve.length;for(let we=le-1;we>=0;--we){const $e=Ku(ve[we],!0);$e.__removalCount=(f.__removalCount||0)+1,te.insertBefore($e,ef(f))}}}return Pe(f),!0}return f instanceof Fo&&!vf(f)||(x==="noscript"||x==="noembed"||x==="noframes")&&p(/<\/no(script|embed|frames)/i,f.innerHTML)?(Pe(f),!0):(lt&&f.nodeType===xt.text&&(b=f.textContent,d([Ln,Mn,Dn],te=>{b=O(b,te," ")}),f.textContent!==b&&(w(I.removed,{element:f.cloneNode()}),f.textContent=b)),De(ye.afterSanitizeElements,f,null),!1)},ci=function(f,b,x){if(Yo&&(b==="id"||b==="name")&&(x in B||x in gf))return!1;if(!(Zn&&!$n[b]&&p(sf,b))){if(!(Wo&&p(cf,b))){if(!me[b]||$n[b]){if(!(li(f)&&(ae.tagNameCheck instanceof RegExp&&p(ae.tagNameCheck,f)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(f))&&(ae.attributeNameCheck instanceof RegExp&&p(ae.attributeNameCheck,b)||ae.attributeNameCheck instanceof Function&&ae.attributeNameCheck(b))||b==="is"&&ae.allowCustomizedBuiltInElements&&(ae.tagNameCheck instanceof RegExp&&p(ae.tagNameCheck,x)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(x))))return!1}else if(!Gn[b]){if(!p(Go,O(x,Uo,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&f!=="script"&&Z(x,"data:")===0&&Ko[f])){if(!(Bo&&!p(lf,O(x,Uo,"")))){if(x)return!1}}}}}}return!0},li=function(f){return f!=="annotation-xml"&&N(f,uf)},ui=function(f){De(ye.beforeSanitizeAttributes,f,null);const{attributes:b}=f;if(!b||Bn(f))return;const x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0};let te=b.length;for(;te--;){const ve=b[te],{name:le,namespaceURI:we,value:$e}=ve,Lt=de(le),qn=$e;let _e=le==="value"?qn:U(qn);if(x.attrName=Lt,x.attrValue=_e,x.keepAttr=!0,x.forceKeepAttr=void 0,De(ye.uponSanitizeAttribute,f,x),_e=x.attrValue,Xo&&(Lt==="id"||Lt==="name")&&(ht(le,f),_e=ff+_e),en&&p(/((--!?|])>)|<\/(style|title)/i,_e)){ht(le,f);continue}if(x.forceKeepAttr)continue;if(!x.keepAttr){ht(le,f);continue}if(!qo&&p(/\/>/i,_e)){ht(le,f);continue}lt&&d([Ln,Mn,Dn],di=>{_e=O(_e,di," ")});const fi=de(f.nodeName);if(!ci(fi,Lt,_e)){ht(le,f);continue}if(be&&typeof Kt=="object"&&typeof Kt.getAttributeType=="function"&&!we)switch(Kt.getAttributeType(fi,Lt)){case"TrustedHTML":{_e=be.createHTML(_e);break}case"TrustedScriptURL":{_e=be.createScriptURL(_e);break}}if(_e!==qn)try{we?f.setAttributeNS(we,le,_e):f.setAttribute(le,_e),Bn(f)?Pe(f):y(I.removed)}catch{ht(le,f)}}De(ye.afterSanitizeAttributes,f,null)},_f=function P(f){let b=null;const x=ii(f);for(De(ye.beforeSanitizeShadowDOM,f,null);b=x.nextNode();)De(ye.uponSanitizeShadowNode,b,null),si(b),ui(b),b.content instanceof Le&&P(b.content);De(ye.afterSanitizeShadowDOM,f,null)};return I.sanitize=function(P){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,x=null,te=null,ve=null;if(Hn=!P,Hn&&(P="<!-->"),typeof P!="string"&&!ai(P))if(typeof P.toString=="function"){if(P=P.toString(),typeof P!="string")throw v("dirty is not a string, aborting")}else throw v("toString is not a function");if(!I.isSupported)return P;if(jn||Wn(f),I.removed=[],typeof P=="string"&&(zt=!1),zt){if(P.nodeName){const $e=de(P.nodeName);if(!fe[$e]||Ct[$e])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(P instanceof zn)b=oi("<!---->"),x=b.ownerDocument.importNode(P,!0),x.nodeType===xt.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?b=x:b.appendChild(x);else{if(!ut&&!lt&&!Je&&P.indexOf("<")===-1)return be&&nn?be.createHTML(P):P;if(b=oi(P),!b)return ut?null:nn?Pt:""}b&&Fn&&Pe(b.firstChild);const le=ii(zt?P:b);for(;te=le.nextNode();)si(te),ui(te),te.content instanceof Le&&_f(te.content);if(zt)return P;if(ut){if(tn)for(ve=rf.call(b.ownerDocument);b.firstChild;)ve.appendChild(b.firstChild);else ve=b;return(me.shadowroot||me.shadowrootmode)&&(ve=af.call(V,ve,!0)),ve}let we=Je?b.outerHTML:b.innerHTML;return Je&&fe["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&p(Do,b.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
|
|
40
|
+
`+we),lt&&d([Ln,Mn,Dn],$e=>{we=O(we,$e," ")}),be&&nn?be.createHTML(we):we},I.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wn(P),jn=!0},I.clearConfig=function(){mt=null,jn=!1},I.isValidAttribute=function(P,f,b){mt||Wn({});const x=de(P),te=de(f);return ci(x,te,b)},I.addHook=function(P,f){typeof f=="function"&&w(ye[P],f)},I.removeHook=function(P,f){if(f!==void 0){const b=h(ye[P],f);return b===-1?void 0:A(ye[P],b,1)[0]}return y(ye[P])},I.removeHooks=function(P){ye[P]=[]},I.removeAllHooks=function(){ye=Zo()},I}var qu=jo();return xn=qu,xn}var In,fo;function xu(){return fo||(fo=1,In=window.DOMPurify||(window.DOMPurify=uo().default||uo())),In}var Iu=xu();const Ou=Yn(Iu);var Tt={},ot={},Xt={},Be={},qe={},On={},po;function mo(){return po||(po=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(On)),On}var $={},ho;function go(){if(ho)return $;ho=1;var e=$&&$.__extends||(function(){var u=function(p,v){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,M){g.__proto__=M}||function(g,M){for(var S in M)Object.prototype.hasOwnProperty.call(M,S)&&(g[S]=M[S])},u(p,v)};return function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");u(p,v);function g(){this.constructor=p}p.prototype=v===null?Object.create(v):(g.prototype=v.prototype,new g)}})(),t=$&&$.__assign||function(){return t=Object.assign||function(u){for(var p,v=1,g=arguments.length;v<g;v++){p=arguments[v];for(var M in p)Object.prototype.hasOwnProperty.call(p,M)&&(u[M]=p[M])}return u},t.apply(this,arguments)};Object.defineProperty($,"__esModule",{value:!0}),$.cloneNode=$.hasChildren=$.isDocument=$.isDirective=$.isComment=$.isText=$.isCDATA=$.isTag=$.Element=$.Document=$.CDATA=$.NodeWithChildren=$.ProcessingInstruction=$.Comment=$.Text=$.DataNode=$.Node=void 0;var n=mo(),r=(function(){function u(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(u.prototype,"parentNode",{get:function(){return this.parent},set:function(p){this.parent=p},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"previousSibling",{get:function(){return this.prev},set:function(p){this.prev=p},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"nextSibling",{get:function(){return this.next},set:function(p){this.next=p},enumerable:!1,configurable:!0}),u.prototype.cloneNode=function(p){return p===void 0&&(p=!1),Z(this,p)},u})();$.Node=r;var o=(function(u){e(p,u);function p(v){var g=u.call(this)||this;return g.data=v,g}return Object.defineProperty(p.prototype,"nodeValue",{get:function(){return this.data},set:function(v){this.data=v},enumerable:!1,configurable:!0}),p})(r);$.DataNode=o;var i=(function(u){e(p,u);function p(){var v=u!==null&&u.apply(this,arguments)||this;return v.type=n.ElementType.Text,v}return Object.defineProperty(p.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),p})(o);$.Text=i;var a=(function(u){e(p,u);function p(){var v=u!==null&&u.apply(this,arguments)||this;return v.type=n.ElementType.Comment,v}return Object.defineProperty(p.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),p})(o);$.Comment=a;var c=(function(u){e(p,u);function p(v,g){var M=u.call(this,g)||this;return M.name=v,M.type=n.ElementType.Directive,M}return Object.defineProperty(p.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),p})(o);$.ProcessingInstruction=c;var s=(function(u){e(p,u);function p(v){var g=u.call(this)||this;return g.children=v,g}return Object.defineProperty(p.prototype,"firstChild",{get:function(){var v;return(v=this.children[0])!==null&&v!==void 0?v:null},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"childNodes",{get:function(){return this.children},set:function(v){this.children=v},enumerable:!1,configurable:!0}),p})(r);$.NodeWithChildren=s;var l=(function(u){e(p,u);function p(){var v=u!==null&&u.apply(this,arguments)||this;return v.type=n.ElementType.CDATA,v}return Object.defineProperty(p.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),p})(s);$.CDATA=l;var d=(function(u){e(p,u);function p(){var v=u!==null&&u.apply(this,arguments)||this;return v.type=n.ElementType.Root,v}return Object.defineProperty(p.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),p})(s);$.Document=d;var h=(function(u){e(p,u);function p(v,g,M,S){M===void 0&&(M=[]),S===void 0&&(S=v==="script"?n.ElementType.Script:v==="style"?n.ElementType.Style:n.ElementType.Tag);var oe=u.call(this,M)||this;return oe.name=v,oe.attribs=g,oe.type=S,oe}return Object.defineProperty(p.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"tagName",{get:function(){return this.name},set:function(v){this.name=v},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"attributes",{get:function(){var v=this;return Object.keys(this.attribs).map(function(g){var M,S;return{name:g,value:v.attribs[g],namespace:(M=v["x-attribsNamespace"])===null||M===void 0?void 0:M[g],prefix:(S=v["x-attribsPrefix"])===null||S===void 0?void 0:S[g]}})},enumerable:!1,configurable:!0}),p})(s);$.Element=h;function y(u){return(0,n.isTag)(u)}$.isTag=y;function w(u){return u.type===n.ElementType.CDATA}$.isCDATA=w;function A(u){return u.type===n.ElementType.Text}$.isText=A;function E(u){return u.type===n.ElementType.Comment}$.isComment=E;function R(u){return u.type===n.ElementType.Directive}$.isDirective=R;function N(u){return u.type===n.ElementType.Root}$.isDocument=N;function O(u){return Object.prototype.hasOwnProperty.call(u,"children")}$.hasChildren=O;function Z(u,p){p===void 0&&(p=!1);var v;if(A(u))v=new i(u.data);else if(E(u))v=new a(u.data);else if(y(u)){var g=p?U(u.children):[],M=new h(u.name,t({},u.attribs),g);g.forEach(function(j){return j.parent=M}),u.namespace!=null&&(M.namespace=u.namespace),u["x-attribsNamespace"]&&(M["x-attribsNamespace"]=t({},u["x-attribsNamespace"])),u["x-attribsPrefix"]&&(M["x-attribsPrefix"]=t({},u["x-attribsPrefix"])),v=M}else if(w(u)){var g=p?U(u.children):[],S=new l(g);g.forEach(function(L){return L.parent=S}),v=S}else if(N(u)){var g=p?U(u.children):[],oe=new d(g);g.forEach(function(L){return L.parent=oe}),u["x-mode"]&&(oe["x-mode"]=u["x-mode"]),v=oe}else if(R(u)){var Q=new c(u.name,u.data);u["x-name"]!=null&&(Q["x-name"]=u["x-name"],Q["x-publicId"]=u["x-publicId"],Q["x-systemId"]=u["x-systemId"]),v=Q}else throw new Error("Not implemented yet: ".concat(u.type));return v.startIndex=u.startIndex,v.endIndex=u.endIndex,u.sourceCodeLocation!=null&&(v.sourceCodeLocation=u.sourceCodeLocation),v}$.cloneNode=Z;function U(u){for(var p=u.map(function(g){return Z(g,!0)}),v=1;v<p.length;v++)p[v].prev=p[v-1],p[v-1].next=p[v];return p}return $}var vo;function _o(){return vo||(vo=1,(function(e){var t=qe&&qe.__createBinding||(Object.create?(function(c,s,l,d){d===void 0&&(d=l);var h=Object.getOwnPropertyDescriptor(s,l);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(c,d,h)}):(function(c,s,l,d){d===void 0&&(d=l),c[d]=s[l]})),n=qe&&qe.__exportStar||function(c,s){for(var l in c)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,c,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=mo(),o=go();n(go(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=(function(){function c(s,l,d){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(d=l,l=i),typeof s=="object"&&(l=s,s=void 0),this.callback=s??null,this.options=l??i,this.elementCB=d??null}return c.prototype.onparserinit=function(s){this.parser=s},c.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(s){this.handleCallback(s)},c.prototype.onclosetag=function(){this.lastNode=null;var s=this.tagStack.pop();this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(s)},c.prototype.onopentag=function(s,l){var d=this.options.xmlMode?r.ElementType.Tag:void 0,h=new o.Element(s,l,void 0,d);this.addNode(h),this.tagStack.push(h)},c.prototype.ontext=function(s){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=s,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var d=new o.Text(s);this.addNode(d),this.lastNode=d}},c.prototype.oncomment=function(s){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=s;return}var l=new o.Comment(s);this.addNode(l),this.lastNode=l},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var s=new o.Text(""),l=new o.CDATA([s]);this.addNode(l),s.parent=l,this.lastNode=s},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(s,l){var d=new o.ProcessingInstruction(s,l);this.addNode(d)},c.prototype.handleCallback=function(s){if(typeof this.callback=="function")this.callback(s,this.dom);else if(s)throw s},c.prototype.addNode=function(s){var l=this.tagStack[this.tagStack.length-1],d=l.children[l.children.length-1];this.options.withStartIndices&&(s.startIndex=this.parser.startIndex),this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),l.children.push(s),d&&(s.prev=d,d.next=s),s.parent=l,this.lastNode=null},c})();e.DomHandler=a,e.default=a})(qe)),qe}var Pn={},bo;function Pu(){return bo||(bo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Pn)),Pn}var yo;function Eo(){if(yo)return Be;yo=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.formatAttributes=r,Be.escapeSpecialCharacters=i,Be.revertEscapedCharacters=a,Be.formatDOM=c;var e=_o(),t=Pu();function n(s){return t.CASE_SENSITIVE_TAG_NAMES_MAP[s]}function r(s){for(var l={},d=0,h=s.length;d<h;d++){var y=s[d];l[y.name]=y.value}return l}function o(s){s=s.toLowerCase();var l=n(s);return l||s}function i(s){return s.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function a(s){return s.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function c(s,l,d){l===void 0&&(l=null);for(var h=[],y,w=0,A=s.length;w<A;w++){var E=s[w];switch(E.nodeType){case 1:{var R=o(E.nodeName);y=new e.Element(R,r(E.attributes)),y.children=c(R==="template"?E.content.childNodes:E.childNodes,y);break}case 3:y=new e.Text(a(E.nodeValue));break;case 8:y=new e.Comment(E.nodeValue);break;default:continue}var N=h[w-1]||null;N&&(N.next=y),y.parent=l,y.prev=N,y.next=null,h.push(y)}return d&&(y=new e.ProcessingInstruction(d.substring(0,d.indexOf(" ")).toLowerCase(),d),y.next=h[0]||null,y.parent=l,h.unshift(y),h[1]&&(h[1].prev=h[0])),h}return Be}var wo;function Cu(){if(wo)return Xt;wo=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=E;var e=Eo(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,c=function(R,N){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},s=function(R,N){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window=="object"&&window.DOMParser;if(typeof l=="function"){var d=new l,h="text/html";s=function(R,N){return N&&(R="<".concat(N,">").concat(R,"</").concat(N,">")),d.parseFromString(R,h)},c=s}if(typeof document=="object"&&document.implementation){var y=document.implementation.createHTMLDocument();c=function(R,N){if(N){var O=y.documentElement.querySelector(N);return O&&(O.innerHTML=R),y}return y.documentElement.innerHTML=R,y}}var w=typeof document=="object"&&document.createElement("template"),A;w&&w.content&&(A=function(R){return w.innerHTML=R,w.content.childNodes});function E(R){var N,O;R=(0,e.escapeSpecialCharacters)(R);var Z=R.match(o),U=Z&&Z[1]?Z[1].toLowerCase():"";switch(U){case t:{var u=s(R);if(!i.test(R)){var p=u.querySelector(n);(N=p==null?void 0:p.parentNode)===null||N===void 0||N.removeChild(p)}if(!a.test(R)){var p=u.querySelector(r);(O=p==null?void 0:p.parentNode)===null||O===void 0||O.removeChild(p)}return u.querySelectorAll(t)}case n:case r:{var v=c(R).querySelectorAll(U);return a.test(R)&&i.test(R)?v[0].parentNode.childNodes:v}default:{if(A)return A(R);var p=c(R,r).querySelector(r);return p.childNodes}}}return Xt}var To;function zu(){if(To)return ot;To=1;var e=ot&&ot.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=o;var t=e(Cu()),n=Eo(),r=/<(![a-zA-Z\s]+)>/;function o(i){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];var a=i.match(r),c=a?a[1]:void 0;return(0,n.formatDOM)((0,t.default)(i),null,c)}return ot}var Jt={},Se={},kt={},ko;function Nu(){if(ko)return kt;ko=1;var e=0;kt.SAME=e;var t=1;return kt.CAMELCASE=t,kt.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},kt}var Ao;function Lu(){if(Ao)return Se;Ao=1;const e=0,t=1,n=2,r=3,o=4,i=5,a=6;function c(u){return l.hasOwnProperty(u)?l[u]:null}function s(u,p,v,g,M,S,oe){this.acceptsBooleans=p===n||p===r||p===o,this.attributeName=g,this.attributeNamespace=M,this.mustUseProperty=v,this.propertyName=u,this.type=p,this.sanitizeURL=S,this.removeEmptyString=oe}const l={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(u=>{l[u]=new s(u,e,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([u,p])=>{l[u]=new s(u,t,!1,p,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(u=>{l[u]=new s(u,n,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(u=>{l[u]=new s(u,n,!1,u,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(u=>{l[u]=new s(u,r,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(u=>{l[u]=new s(u,r,!0,u,null,!1,!1)}),["capture","download"].forEach(u=>{l[u]=new s(u,o,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(u=>{l[u]=new s(u,a,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(u=>{l[u]=new s(u,i,!1,u.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,y=u=>u[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(u=>{const p=u.replace(h,y);l[p]=new s(p,t,!1,u,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(u=>{const p=u.replace(h,y);l[p]=new s(p,t,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(u=>{const p=u.replace(h,y);l[p]=new s(p,t,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(u=>{l[u]=new s(u,t,!1,u.toLowerCase(),null,!1,!1)});const w="xlinkHref";l[w]=new s("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(u=>{l[u]=new s(u,t,!1,u.toLowerCase(),null,!0,!0)});const{CAMELCASE:A,SAME:E,possibleStandardNames:R}=Nu(),O=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Z=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+O+"]*$")),U=Object.keys(R).reduce((u,p)=>{const v=R[p];return v===E?u[p]=p:v===A?u[p.toLowerCase()]=p:u[p]=v,u},{});return Se.BOOLEAN=r,Se.BOOLEANISH_STRING=n,Se.NUMERIC=i,Se.OVERLOADED_BOOLEAN=o,Se.POSITIVE_NUMERIC=a,Se.RESERVED=e,Se.STRING=t,Se.getPropertyInfo=c,Se.isCustomAttribute=Z,Se.possibleStandardNames=U,Se}var At={},it={},Cn,Ro;function Mu(){if(Ro)return Cn;Ro=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g,s=`
|
|
41
|
+
`,l="/",d="*",h="",y="comment",w="declaration";Cn=function(E,R){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];R=R||{};var N=1,O=1;function Z(j){var L=j.match(t);L&&(N+=L.length);var J=j.lastIndexOf(s);O=~J?j.length-J:O+j.length}function U(){var j={line:N,column:O};return function(L){return L.position=new u(j),g(),L}}function u(j){this.start=j,this.end={line:N,column:O},this.source=R.source}u.prototype.content=E;function p(j){var L=new Error(R.source+":"+N+":"+O+": "+j);if(L.reason=j,L.filename=R.source,L.line=N,L.column=O,L.source=E,!R.silent)throw L}function v(j){var L=j.exec(E);if(L){var J=L[0];return Z(J),E=E.slice(J.length),L}}function g(){v(n)}function M(j){var L;for(j=j||[];L=S();)L!==!1&&j.push(L);return j}function S(){var j=U();if(!(l!=E.charAt(0)||d!=E.charAt(1))){for(var L=2;h!=E.charAt(L)&&(d!=E.charAt(L)||l!=E.charAt(L+1));)++L;if(L+=2,h===E.charAt(L-1))return p("End of comment missing");var J=E.slice(2,L-2);return O+=2,Z(J),E=E.slice(L),O+=2,j({type:y,comment:J})}}function oe(){var j=U(),L=v(r);if(L){if(S(),!v(o))return p("property missing ':'");var J=v(i),ue=j({type:w,property:A(L[0].replace(e,h)),value:J?A(J[0].replace(e,h)):h});return v(a),ue}}function Q(){var j=[];M(j);for(var L;L=oe();)L!==!1&&(j.push(L),M(j));return j}return g(),Q()};function A(E){return E?E.replace(c,h):h}return Cn}var So;function Du(){if(So)return it;So=1;var e=it&&it.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(it,"__esModule",{value:!0}),it.default=n;var t=e(Mu());function n(r,o){var i=null;if(!r||typeof r!="string")return i;var a=(0,t.default)(r),c=typeof o=="function";return a.forEach(function(s){if(s.type==="declaration"){var l=s.property,d=s.value;c?o(l,d,s):d&&(i=i||{},i[l]=d)}}),i}return it}var Rt={},xo;function $u(){if(xo)return Rt;xo=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(l){return!l||n.test(l)||e.test(l)},a=function(l,d){return d.toUpperCase()},c=function(l,d){return"".concat(d,"-")},s=function(l,d){return d===void 0&&(d={}),i(l)?l:(l=l.toLowerCase(),d.reactCompat?l=l.replace(o,c):l=l.replace(r,c),l.replace(t,a))};return Rt.camelCase=s,Rt}var St,Io;function Zu(){if(Io)return St;Io=1;var e=St&&St.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Du()),n=$u();function r(o,i){var a={};return!o||typeof o!="string"||(0,t.default)(o,function(c,s){c&&s&&(a[(0,n.camelCase)(c,i)]=s)}),a}return r.default=r,St=r,St}var Oo;function Po(){return Oo||(Oo=1,(function(e){var t=At&&At.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=i,e.setStyleProp=c;var n=he,r=t(Zu()),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(d,h){return d.includes("-")?!o.has(d):!!(h&&typeof h.is=="string")}var a={reactCompat:!0};function c(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,r.default)(d,a)}catch{h.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var s=function(d){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};e.canTextBeChildOfNode=s;var l=function(d){return d};e.returnFirstArg=l})(At)),At}var Co;function zo(){if(Co)return Jt;Co=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=i;var e=Lu(),t=Po(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function i(c,s){c===void 0&&(c={});var l={},d=!!(c.type&&o[c.type]);for(var h in c){var y=c[h];if((0,e.isCustomAttribute)(h)){l[h]=y;continue}var w=h.toLowerCase(),A=a(w);if(A){var E=(0,e.getPropertyInfo)(A);switch(n.includes(A)&&r.includes(s)&&!d&&(A=a("default"+w)),l[A]=y,E&&E.type){case e.BOOLEAN:l[A]=!0;break;case e.OVERLOADED_BOOLEAN:y===""&&(l[A]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[h]=y)}return(0,t.setStyleProp)(c.style,l),l}function a(c){return e.possibleStandardNames[c]}return Jt}var at={},No;function ju(){if(No)return at;No=1;var e=at&&at.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(at,"__esModule",{value:!0}),at.default=i;var t=he,n=e(zo()),r=Po(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function i(c,s){s===void 0&&(s={});for(var l=[],d=typeof s.replace=="function",h=s.transform||r.returnFirstArg,y=s.library||o,w=y.cloneElement,A=y.createElement,E=y.isValidElement,R=c.length,N=0;N<R;N++){var O=c[N];if(d){var Z=s.replace(O,N);if(E(Z)){R>1&&(Z=w(Z,{key:Z.key||N})),l.push(h(Z,O,N));continue}}if(O.type==="text"){var U=!O.data.trim().length;if(U&&O.parent&&!(0,r.canTextBeChildOfNode)(O.parent)||s.trim&&U)continue;l.push(h(O.data,O,N));continue}var u=O,p={};a(u)?((0,r.setStyleProp)(u.attribs.style,u.attribs),p=u.attribs):u.attribs&&(p=(0,n.default)(u.attribs,u.name));var v=void 0;switch(O.type){case"script":case"style":O.children[0]&&(p.dangerouslySetInnerHTML={__html:O.children[0].data});break;case"tag":O.name==="textarea"&&O.children[0]?p.defaultValue=O.children[0].data:O.children&&O.children.length&&(v=i(O.children,s));break;default:continue}R>1&&(p.key=N),l.push(h(A(O.name,p,v),O,N))}return l.length===1?l[0]:l}function a(c){return r.PRESERVE_CUSTOM_ATTRIBUTES&&c.type==="tag"&&(0,r.isCustomComponent)(c.name,c.attribs)}return at}var Lo;function Fu(){return Lo||(Lo=1,(function(e){var t=Tt&&Tt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=c;var n=t(zu());e.htmlToDOM=n.default;var r=t(zo());e.attributesToProps=r.default;var o=t(ju());e.domToReact=o.default;var i=_o();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function c(s,l){if(typeof s!="string")throw new TypeError("First argument must be a string");return s?(0,o.default)((0,n.default)(s,(l==null?void 0:l.htmlparser2)||a),l):[]}})(Tt)),Tt}var Uu=Fu();const Mo=Yn(Uu),Gu=Mo.default||Mo,Hu=({html:e,className:t})=>{const n=Ou.sanitize(e),r=Gu(n);return Oe.jsx("div",{className:t,children:r})};W.BasePicture=Su,W.HtmlContent=Hu,W.InfinityList=Ru,W.THEME=Te,W.TIME=pi,W.checkCorrectImageObject=io,W.cn=mn,W.convertPhoneMask=Ri,W.generatePaginationArray=Pi,W.getByKey=Xn,W.getImagePrefix=yt,W.getNumberFormatter=Ai,W.getSubdomain=Si,W.getUploadImageUrl=Ne,W.parseStringToKeyValue=Ii,W.prepareColor=Oi,W.prepareLocalMetaData=xi,W.prepareServerImages=Eu,W.responseSchema=wu,W.updateTextByTemplate=Ge,W.useDisableScroll=mi,W.useExtraMediumViewPort=wi,W.useIsClient=hi,W.useLaptopBigViewPort=bi,W.useLaptopViewPort=yi,W.useMobileViewPort=Ti,W.useSmallViewPort=ki,W.useTabletViewPort=Ei,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
|