chiperos-ai-components-library 0.1.0 → 0.1.2

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.
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),te=require("react"),re=require("lucide-react"),pt=require("@radix-ui/react-slot"),jo=require("react-dom"),Ts=require("@radix-ui/react-switch");function Gn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Gn(te),Gt=Gn(jo),yr=Gn(Ts);function Fo(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=Fo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fo(e))&&(r&&(r+=" "),r+=t);return r}const Hn="-",ks=e=>{const t=Fs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Hn);return a[0]===""&&a.length!==1&&a.shift(),Mo(a,t)||js(s)},getConflictingClassGroupIds:(s,a)=>{const d=n[s]||[];return a&&r[s]?[...d,...r[s]]:d}}},Mo=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Mo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Hn);return t.validators.find(({validator:s})=>s(i))?.classGroupId},xr=/^\[(.+)\]$/,js=e=>{if(xr.test(e)){const t=xr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Fs=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ms(Object.entries(e.classGroups),n).forEach(([i,s])=>{Pn(s,r,i,t)}),r},Pn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wr(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Ls(o)){Pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Pn(s,wr(t,i),n,r)})})},wr=(e,t)=>{let n=e;return t.split(Hn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ls=e=>e.isThemeGetter,Ms=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,Ds=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Do="!",zs=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const d=[];let c=0,u=0,f;for(let g=0;g<a.length;g++){let b=a[g];if(c===0){if(b===o&&(r||a.slice(g,g+i)===t)){d.push(a.slice(u,g)),u=g+i;continue}if(b==="/"){f=g;continue}}b==="["?c++:b==="]"&&c--}const p=d.length===0?a:a.substring(u),m=p.startsWith(Do),v=m?p.substring(1):p,$=f&&f>u?f-u:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:$}};return n?a=>n({className:a,parseClassName:s}):s},Zs=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Bs=e=>({cache:Ds(e.cacheSize),parseClassName:zs(e),...ks(e)}),Us=/\s+/,Ws=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Us);let a="";for(let d=s.length-1;d>=0;d-=1){const c=s[d],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(c);let v=!!m,$=r(v?p.substring(0,m):p);if(!$){if(!v){a=c+(a.length>0?" "+a:a);continue}if($=r(p),!$){a=c+(a.length>0?" "+a:a);continue}v=!1}const g=Zs(u).join(":"),b=f?g+Do:g,y=b+$;if(i.includes(y))continue;i.push(y);const x=o($,v);for(let w=0;w<x.length;++w){const S=x[w];i.push(b+S)}a=c+(a.length>0?" "+a:a)}return a};function Vs(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=zo(t))&&(r&&(r+=" "),r+=n);return r}const zo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=zo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Gs(e,...t){let n,r,o,i=s;function s(d){const c=t.reduce((u,f)=>f(u),e());return n=Bs(c),r=n.cache.get,o=n.cache.set,i=a,a(d)}function a(d){const c=r(d);if(c)return c;const u=Ws(d,n);return o(d,u),u}return function(){return i(Vs.apply(null,arguments))}}const W=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Zo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hs=/^\d+\/\d+$/,Ks=new Set(["px","full","screen"]),Xs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ys=/\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$/,qs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Js=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=e=>qe(e)||Ks.has(e)||Hs.test(e),Ee=e=>ot(e,"length",aa),qe=e=>!!e&&!Number.isNaN(Number(e)),$n=e=>ot(e,"number",qe),ut=e=>!!e&&Number.isInteger(Number(e)),ea=e=>e.endsWith("%")&&qe(e.slice(0,-1)),k=e=>Zo.test(e),Re=e=>Xs.test(e),ta=new Set(["length","size","percentage"]),na=e=>ot(e,ta,Bo),ra=e=>ot(e,"position",Bo),oa=new Set(["image","url"]),ia=e=>ot(e,oa,ca),sa=e=>ot(e,"",da),ft=()=>!0,ot=(e,t,n)=>{const r=Zo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},aa=e=>Ys.test(e)&&!qs.test(e),Bo=()=>!1,da=e=>Js.test(e),ca=e=>Qs.test(e),la=()=>{const e=W("colors"),t=W("spacing"),n=W("blur"),r=W("brightness"),o=W("borderColor"),i=W("borderRadius"),s=W("borderSpacing"),a=W("borderWidth"),d=W("contrast"),c=W("grayscale"),u=W("hueRotate"),f=W("invert"),p=W("gap"),m=W("gradientColorStops"),v=W("gradientColorStopPositions"),$=W("inset"),g=W("margin"),b=W("opacity"),y=W("padding"),x=W("saturate"),w=W("scale"),S=W("sepia"),P=W("skew"),_=W("space"),O=W("translate"),L=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",k,t],N=()=>[k,t],M=()=>["",Ce,Ee],A=()=>["auto",qe,k],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",k],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[qe,k];return{cacheSize:500,separator:":",theme:{colors:[ft],spacing:[Ce,Ee],blur:["none","",Re,k],brightness:ee(),borderColor:[e],borderRadius:["none","","full",Re,k],borderSpacing:N(),borderWidth:M(),contrast:ee(),grayscale:B(),hueRotate:ee(),invert:B(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ea,Ee],inset:z(),margin:z(),opacity:ee(),padding:N(),saturate:ee(),scale:ee(),sepia:B(),skew:ee(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[Re]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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"],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:[...Z(),k]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ut,k]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ut,k]}],"grid-cols":[{"grid-cols":[ft]}],"col-start-end":[{col:["auto",{span:["full",ut,k]},k]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[ft]}],"row-start-end":[{row:["auto",{span:[ut,k]},k]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[Re]},Re]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Re,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$n]}],"font-family":[{font:[ft]}],"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:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",qe,$n]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ce,Ee]}],"underline-offset":[{"underline-offset":["auto",Ce,k]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),ra]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",na]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ia]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:T()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[Ce,k]}],"outline-w":[{outline:[Ce,Ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ce,Ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Re,sa]}],"shadow-color":[{shadow:[ft]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Re,k]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ut,k]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ce,Ee,$n]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},ua=Gs(la);function I(...e){return ua(Lo(e))}const Uo=h.forwardRef(({title:e,description:t,icon:n,action:r,onClick:o,className:i,...s},a)=>l.jsxs("div",{ref:a,onClick:o,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",o&&"cursor-pointer hover:shadow-md transition-shadow",i),style:{width:"350px"},...s,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:n}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-semibold text-[#312e4d] capitalize",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),r&&l.jsx("button",{onClick:d=>{d.stopPropagation(),r.onClick()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline self-start",style:{fontFamily:"Causten Round, sans-serif"},children:r.label})]})]}));Uo.displayName="ActionCard";const Wo=h.forwardRef(({variant:e="information",title:t,description:n,icon:r,className:o,...i},s)=>{const d={warning:{container:"bg-[#fff3e8]",text:"text-[#d48620]",icon:l.jsx(re.AlertTriangle,{size:24,className:"text-[#d48620]"})},information:{container:"bg-[#e3f2ff]",text:"text-[#4087fb]",icon:l.jsx(re.Info,{size:24,className:"text-[#4087fb]"})},grey:{container:"bg-[#f4f4f4]",text:"text-[#6e6f6e]",icon:l.jsx(re.Info,{size:24,className:"text-[#202020]"})}}[e],c=r||d.icon;return l.jsxs("div",{ref:s,className:I("flex items-center gap-3 p-4 rounded-lg",d.container,d.text,o),role:"alert","aria-live":"polite",...i,children:[l.jsx("div",{className:"flex-shrink-0",children:c}),l.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0",children:[l.jsx("div",{className:"font-semibold text-sm leading-[18px]",children:t}),l.jsx("div",{className:"font-normal text-sm leading-[18px]",children:n})]})]})});Wo.displayName="BannerAlerts";const Cr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sr=Lo,fa=(e,t)=>n=>{var r;if(t?.variants==null)return Sr(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const u=n?.[c],f=i?.[c];if(u===null)return null;const p=Cr(u)||Cr(f);return o[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:p,...m}=u;return Object.entries(m).every(v=>{let[$,g]=v;return Array.isArray(g)?g.includes({...i,...a}[$]):{...i,...a}[$]===g})?[...c,f,p]:c},[]);return Sr(e,s,d,n?.class,n?.className)},Nn=fa("inline-flex items-center justify-center gap-2 rounded font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-[#00b56b] text-white border border-[#00b56b] hover:bg-[#00995a] hover:border-[#00995a] active:bg-[#007a48] active:border-[#007a48] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",secondary:"bg-transparent text-[#312e4d] border border-[#00b56b] hover:bg-[#e6f8ef] hover:border-[#00995a] active:bg-[#00b56b]/10 active:border-[#007a48] disabled:bg-transparent disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",alert:"bg-[#ff305f] text-white border border-[#a80023] hover:bg-[#d4002c] hover:border-[#a80023] active:bg-[#a80023] active:border-[#a80023] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",ghost:"bg-transparent text-[#00995a] border-0 hover:bg-[#e6f8ef] hover:text-[#00995a] active:bg-[#00b56b]/10 active:text-[#007a48] disabled:bg-transparent disabled:text-[#9e9e9e]",plain:"bg-transparent text-[#00995a] border-0 p-0 h-auto hover:text-[#00995a] hover:underline active:text-[#007a48] disabled:text-[#9e9e9e] disabled:no-underline"},size:{small:"h-8 px-3 py-2 text-sm",medium:"h-9 px-4 py-2 text-sm",large:"h-11 px-5 py-2.5 text-base"},iconOnly:{true:"aspect-square"}},compoundVariants:[{size:"small",iconOnly:!0,className:"h-8 w-8 p-0"},{size:"medium",iconOnly:!0,className:"h-10 w-10 p-0"},{size:"large",iconOnly:!0,className:"h-11 w-11 p-0"},{variant:"plain",size:"small",className:"h-auto px-0 py-0"},{variant:"plain",size:"medium",className:"h-auto px-0 py-0"},{variant:"plain",size:"large",className:"h-auto px-0 py-0"}],defaultVariants:{variant:"primary",size:"medium",iconOnly:!1}}),Kn=h.forwardRef(({className:e,variant:t,size:n,iconOnly:r,asChild:o=!1,leftIcon:i,rightIcon:s,children:a,...d},c)=>{const u=o?pt.Slot:"button";return o?l.jsx(u,{className:I(Nn({variant:t,size:n,iconOnly:r,className:e})),ref:c,...d,children:a}):l.jsxs(u,{className:I(Nn({variant:t,size:n,iconOnly:r,className:e})),ref:c,...d,children:[i&&!r&&l.jsx("span",{className:"inline-flex shrink-0",children:i}),r&&i||a,s&&!r&&l.jsx("span",{className:"inline-flex shrink-0",children:s})]})});Kn.displayName="Button";const Me={largeDark:"https://www.figma.com/api/mcp/asset/4d8371e7-dff3-4ec8-bbce-b93185151f4c",largeLight:"https://www.figma.com/api/mcp/asset/8a7267d5-2fb8-494e-a13a-3795b42fde22",smallDark:"https://www.figma.com/api/mcp/asset/9d2e5067-f587-40b6-b0a5-5ce6da0aad4c",smallLight:"https://www.figma.com/api/mcp/asset/f01bbe9b-2dae-44fe-892f-97ff47e10e8e",gradientLarge:"https://www.figma.com/api/mcp/asset/972e7e1a-3343-4868-9c4d-97d6dfce3ce8"},Vo=h.forwardRef(({size:e="large",mode:t="dark",gradient:n=!1,className:r,alt:o="Chiperos Logo",...i},s)=>{const a=()=>n&&e==="large"?Me.gradientLarge:e==="large"&&t==="dark"?Me.largeDark:e==="large"&&t==="light"?Me.largeLight:e==="small"&&t==="dark"?Me.smallDark:e==="small"&&t==="light"?Me.smallLight:Me.largeDark,d={large:{width:143,height:32},small:{width:40,height:32}},{width:c,height:u}=d[e];return l.jsx("img",{ref:s,src:a(),alt:o,width:c,height:u,className:I("inline-block",r),...i})});Vo.displayName="BrandIcons";const Go=h.forwardRef(({columns:e,gap:t=4,tabletColumns:n,mobileColumns:r=1,children:o,className:i,style:s,...a},d)=>{const c=()=>typeof t=="number"?`gap-${t}`:"",u=()=>{const p=[];return p.push(`grid-cols-${r}`),n&&p.push(`md:grid-cols-${n}`),p.push(`lg:grid-cols-${e}`),p.join(" ")},f=typeof t=="string"?{gap:t,...s}:s;return l.jsx("div",{ref:d,className:I("grid w-full",c(),u(),i),style:f,...a,children:h.Children.map(o,p=>h.isValidElement(p)?h.cloneElement(p,{...p.props,className:I("w-full",p.props.className)}):p)})});Go.displayName="CardsGrid";const Ho=h.forwardRef(({title:e,description:t,icon:n,iconBackground:r="#e6f8ef",onClick:o,className:i,...s},a)=>l.jsxs("div",{ref:a,onClick:o,className:I("bg-white border border-[#ecebf0] rounded-lg p-8 flex flex-col items-center gap-8 w-96",o&&"cursor-pointer hover:shadow-md transition-shadow",i),...s,children:[l.jsx("div",{className:"flex items-center justify-center rounded-lg shrink-0",style:{width:"56px",height:"56px",backgroundColor:r},children:n}),l.jsxs("div",{className:"flex flex-col gap-2 items-center text-center",style:{width:"300px"},children:[l.jsx("h3",{className:"text-2xl leading-8 font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsx("p",{className:"text-base leading-5 font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})]})]}));Ho.displayName="FeatureCard";function C(e,t,n){function r(a,d){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,d);const c=s.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const p=u[f];p in a||(a[p]=c[p].bind(a))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var d;const c=n?.Parent?new i:this;r(c,a),(d=c._zod).deferred??(d.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class Je extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ko extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const $a={};function De(e){return $a}function En(e,t){return typeof t=="bigint"?t.toString():t}function Xn(e){return e==null}function Yn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const _r=Symbol("evaluating");function G(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==_r)return r===void 0&&(r=_r,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function pa(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function ha(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Xo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Rn(e){if(Pr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Pr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Yo(e){return Rn(e)?{...e}:Array.isArray(e)?[...e]:e}function qn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ma(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function j(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(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 Ye(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ga(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function St(e){return typeof e=="string"?e:e?.message}function ze(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=St(e.inst?._zod.def?.error?.(e))??St(t?.error?.(e))??St(n.customError?.(e))??St(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Jn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ht(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const qo=(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,En,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Jo=C("$ZodError",qo),Qo=C("$ZodError",qo,{Parent:Error});function va(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 ba(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>r({issues:s}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let s=n,a=0;for(;a<i.path.length;){const d=i.path[a];a===i.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(i))):s[d]=s[d]||{_errors:[]},s=s[d],a++}}};return r(e),n}const Qn=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Je;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>ze(d,i,De())));throw Xo(a,o?.callee),a}return s.value},er=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>ze(d,i,De())));throw Xo(a,o?.callee),a}return s.value},Ht=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 Je;return i.issues.length?{success:!1,error:new(e??Jo)(i.issues.map(s=>ze(s,o,De())))}:{success:!0,data:i.value}},ya=Ht(Qo),Kt=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(s=>ze(s,o,De())))}:{success:!0,data:i.value}},xa=Kt(Qo),wa=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Qn(e)(t,n,o)},Ca=e=>(t,n,r)=>Qn(e)(t,n,r),Sa=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return er(e)(t,n,o)},_a=e=>async(t,n,r)=>er(e)(t,n,r),Pa=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ht(e)(t,n,o)},Na=e=>(t,n,r)=>Ht(e)(t,n,r),Ea=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Kt(e)(t,n,o)},Ra=e=>async(t,n,r)=>Kt(e)(t,n,r),Aa=/^[cC][^\s-]{8,}$/,Ia=/^[0-9a-z]+$/,Oa=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ta=/^[0-9a-vA-V]{20}$/,ka=/^[A-Za-z0-9]{27}$/,ja=/^[a-zA-Z0-9_-]{21}$/,Fa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,La=/^([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})$/,Nr=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)$/,Ma=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Da="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function za(){return new RegExp(Da,"u")}const Za=/^(?:(?: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])$/,Ba=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ua=/^((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])$/,Wa=/^(([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])$/,Va=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ei=/^[A-Za-z0-9_-]*$/,Ga=/^\+(?:[0-9]){6,14}[0-9]$/,ti="(?:(?:\\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])))",Ha=new RegExp(`^${ti}$`);function ni(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 Ka(e){return new RegExp(`^${ni(e)}$`)}function Xa(e){const t=ni({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(`^${ti}T(?:${r})$`)}const Ya=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},qa=/^[^A-Z]*$/,Ja=/^[^a-z]*$/,xe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Qa=C("$ZodCheckMaxLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(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 s=Jn(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ed=C("$ZodCheckMinLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(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 s=Jn(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),td=C("$ZodCheckLengthEquals",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(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 s=Jn(o),a=i>t.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Xt=C("$ZodCheckStringFormat",(e,t)=>{var n,r;xe.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=()=>{})}),nd=C("$ZodCheckRegex",(e,t)=>{Xt.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})}}),rd=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=qa),Xt.init(e,t)}),od=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ja),Xt.init(e,t)}),id=C("$ZodCheckIncludes",(e,t)=>{xe.init(e,t);const n=qn(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})}}),sd=C("$ZodCheckStartsWith",(e,t)=>{xe.init(e,t);const n=new RegExp(`^${qn(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})}}),ad=C("$ZodCheckEndsWith",(e,t)=>{xe.init(e,t);const n=new RegExp(`.*${qn(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})}}),dd=C("$ZodCheckOverwrite",(e,t)=>{xe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),cd={major:4,minor:1,patch:13},se=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=cd;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,d)=>{let c=Ye(s),u;for(const f of a){if(f._zod.def.when){if(!f._zod.def.when(s))continue}else if(c)continue;const p=s.issues.length,m=f._zod.check(s);if(m instanceof Promise&&d?.async===!1)throw new Je;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,s.issues.length!==p&&(c||(c=Ye(s,p)))});else{if(s.issues.length===p)continue;c||(c=Ye(s,p))}}return u?u.then(()=>s):s},i=(s,a,d)=>{if(Ye(s))return s.aborted=!0,s;const c=o(a,r,d);if(c instanceof Promise){if(d.async===!1)throw new Je;return c.then(u=>e._zod.parse(u,d))}return e._zod.parse(c,d)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,a)):i(c,s,a)}const d=e._zod.parse(s,a);if(d instanceof Promise){if(a.async===!1)throw new Je;return d.then(c=>o(c,r,a))}return o(d,r,a)}}e["~standard"]={validate:o=>{try{const i=ya(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return xa(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),tr=C("$ZodString",(e,t)=>{se.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ya(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),H=C("$ZodStringFormat",(e,t)=>{Xt.init(e,t),tr.init(e,t)}),ld=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=La),H.init(e,t)}),ud=C("$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=Nr(r))}else t.pattern??(t.pattern=Nr());H.init(e,t)}),fd=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ma),H.init(e,t)}),$d=C("$ZodURL",(e,t)=>{H.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:t.hostname.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})}}}),pd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=za()),H.init(e,t)}),hd=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ja),H.init(e,t)}),md=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Aa),H.init(e,t)}),gd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ia),H.init(e,t)}),vd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Oa),H.init(e,t)}),bd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ta),H.init(e,t)}),yd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ka),H.init(e,t)}),xd=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xa(t)),H.init(e,t)}),wd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ha),H.init(e,t)}),Cd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ka(t)),H.init(e,t)}),Sd=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Fa),H.init(e,t)}),_d=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Za),H.init(e,t),e._zod.bag.format="ipv4"}),Pd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ba),H.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Nd=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ua),H.init(e,t)}),Ed=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Wa),H.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ri(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Rd=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Va),H.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ri(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ad(e){if(!ei.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ri(n)}const Id=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ei),H.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Ad(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Od=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ga),H.init(e,t)});function Td(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?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const kd=C("$ZodJWT",(e,t)=>{H.init(e,t),e._zod.check=n=>{Td(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}});function Er(e,t,n){e.issues.length&&t.issues.push(...ga(n,e.issues)),t.value[n]=e.value}const jd=C("$ZodArray",(e,t)=>{se.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 s=0;s<o.length;s++){const a=o[s],d=t.element._zod.run({value:a,issues:[]},r);d instanceof Promise?i.push(d.then(c=>Er(c,n,s))):Er(d,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Rr(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=>!Ye(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(s=>ze(s,r,De())))}),t)}const Fd=C("$ZodUnion",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),G(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),G(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),G(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=>Yn(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 s=!1;const a=[];for(const d of t.options){const c=d._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(d=>Rr(d,o,e,i)):Rr(a,o,e,i)}}),Ld=C("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([d,c])=>Ar(n,d,c)):Ar(n,i,s)}});function An(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(Rn(e)&&Rn(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 s=An(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 n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],s=An(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ar(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Ye(e))return e;const r=An(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 Md=C("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ko(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new Je;return n.value=o,n}});function Ir(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Dd=C("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",G(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),G(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yn(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=>Ir(i,n.value)):Ir(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),zd=C("$ZodNullable",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yn(n.source)}|null)$`):void 0}),G(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)}),Zd=C("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",G(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=>Or(i,t)):Or(o,t)}});function Or(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Bd=C("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",G(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))}),Ud=C("$ZodNonOptional",(e,t)=>{se.init(e,t),G(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=>Tr(i,e)):Tr(o,e)}});function Tr(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 Wd=C("$ZodCatch",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(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(s=>ze(s,r,De()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>ze(i,r,De()))},input:n.value}),n.issues=[]),n)}}),Vd=C("$ZodPipe",(e,t)=>{se.init(e,t),G(e._zod,"values",()=>t.in._zod.values),G(e._zod,"optin",()=>t.in._zod.optin),G(e._zod,"optout",()=>t.out._zod.optout),G(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(s=>_t(s,t.in,r)):_t(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>_t(i,t.out,r)):_t(o,t.out,r)}});function _t(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Gd=C("$ZodReadonly",(e,t)=>{se.init(e,t),G(e._zod,"propValues",()=>t.innerType._zod.propValues),G(e._zod,"values",()=>t.innerType._zod.values),G(e._zod,"optin",()=>t.innerType?._zod?.optin),G(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(kr):kr(o)}});function kr(e){return e.value=Object.freeze(e.value),e}const Hd=C("$ZodCustom",(e,t)=>{xe.init(e,t),se.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(ht(o))}}var Fr;class Kd{constructor(){this._map=new WeakMap,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 WeakMap,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 Xd(){return new Kd}(Fr=globalThis).__zod_globalRegistry??(Fr.__zod_globalRegistry=Xd());const Pt=globalThis.__zod_globalRegistry;function Yd(e,t){return new e({type:"string",...j(t)})}function qd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Lr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function Jd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function Qd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function tc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function nc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function rc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function oc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function ic(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function sc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function ac(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function dc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function cc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function lc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function uc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function fc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function $c(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function pc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function hc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function mc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function gc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}function vc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function bc(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function yc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function xc(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function oi(e,t){return new Qa({check:"max_length",...j(t),maximum:e})}function Lt(e,t){return new ed({check:"min_length",...j(t),minimum:e})}function ii(e,t){return new td({check:"length_equals",...j(t),length:e})}function wc(e,t){return new nd({check:"string_format",format:"regex",...j(t),pattern:e})}function Cc(e){return new rd({check:"string_format",format:"lowercase",...j(e)})}function Sc(e){return new od({check:"string_format",format:"uppercase",...j(e)})}function _c(e,t){return new id({check:"string_format",format:"includes",...j(t),includes:e})}function Pc(e,t){return new sd({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Nc(e,t){return new ad({check:"string_format",format:"ends_with",...j(t),suffix:e})}function it(e){return new dd({check:"overwrite",tx:e})}function Ec(e){return it(t=>t.normalize(e))}function Rc(){return it(e=>e.trim())}function Ac(){return it(e=>e.toLowerCase())}function Ic(){return it(e=>e.toUpperCase())}function Oc(){return it(e=>ha(e))}function Tc(e,t,n){return new e({type:"array",element:t,...j(n)})}function kc(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function jc(e){const t=Fc(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ht(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(ht(o))}},e(n.value,n)));return t}function Fc(e,t){const n=new xe({check:"custom",...j(t)});return n._zod.check=e,n}const Lc=C("ZodISODateTime",(e,t)=>{xd.init(e,t),K.init(e,t)});function Mc(e){return vc(Lc,e)}const Dc=C("ZodISODate",(e,t)=>{wd.init(e,t),K.init(e,t)});function zc(e){return bc(Dc,e)}const Zc=C("ZodISOTime",(e,t)=>{Cd.init(e,t),K.init(e,t)});function Bc(e){return yc(Zc,e)}const Uc=C("ZodISODuration",(e,t)=>{Sd.init(e,t),K.init(e,t)});function Wc(e){return xc(Uc,e)}const Vc=(e,t)=>{Jo.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ba(e,n)},flatten:{value:n=>va(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,En,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,En,2)}},isEmpty:{get(){return e.issues.length===0}}})},fe=C("ZodError",Vc,{Parent:Error}),Gc=Qn(fe),Hc=er(fe),Kc=Ht(fe),Xc=Kt(fe),Yc=wa(fe),qc=Ca(fe),Jc=Sa(fe),Qc=_a(fe),el=Pa(fe),tl=Na(fe),nl=Ea(fe),rl=Ra(fe),de=C("ZodType",(e,t)=>(se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(pa(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>ma(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Gc(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Kc(e,n,r),e.parseAsync=async(n,r)=>Hc(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Xc(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Yc(e,n,r),e.decode=(n,r)=>qc(e,n,r),e.encodeAsync=async(n,r)=>Jc(e,n,r),e.decodeAsync=async(n,r)=>Qc(e,n,r),e.safeEncode=(n,r)=>el(e,n,r),e.safeDecode=(n,r)=>tl(e,n,r),e.safeEncodeAsync=async(n,r)=>nl(e,n,r),e.safeDecodeAsync=async(n,r)=>rl(e,n,r),e.refine=(n,r)=>e.check(Wl(n,r)),e.superRefine=n=>e.check(Vl(n)),e.overwrite=n=>e.check(it(n)),e.optional=()=>Dr(e),e.nullable=()=>zr(e),e.nullish=()=>Dr(zr(e)),e.nonoptional=n=>Ll(e,n),e.array=()=>Cl(e),e.or=n=>_l([e,n]),e.and=n=>Nl(e,n),e.transform=n=>Zr(e,Rl(n)),e.default=n=>Tl(e,n),e.prefault=n=>jl(e,n),e.catch=n=>Dl(e,n),e.pipe=n=>Zr(e,n),e.readonly=()=>Bl(e),e.describe=n=>{const r=e.clone();return Pt.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Pt.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Pt.get(e);const r=e.clone();return Pt.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),si=C("_ZodString",(e,t)=>{tr.init(e,t),de.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(wc(...r)),e.includes=(...r)=>e.check(_c(...r)),e.startsWith=(...r)=>e.check(Pc(...r)),e.endsWith=(...r)=>e.check(Nc(...r)),e.min=(...r)=>e.check(Lt(...r)),e.max=(...r)=>e.check(oi(...r)),e.length=(...r)=>e.check(ii(...r)),e.nonempty=(...r)=>e.check(Lt(1,...r)),e.lowercase=r=>e.check(Cc(r)),e.uppercase=r=>e.check(Sc(r)),e.trim=()=>e.check(Rc()),e.normalize=(...r)=>e.check(Ec(...r)),e.toLowerCase=()=>e.check(Ac()),e.toUpperCase=()=>e.check(Ic()),e.slugify=()=>e.check(Oc())}),ol=C("ZodString",(e,t)=>{tr.init(e,t),si.init(e,t),e.email=n=>e.check(qd(il,n)),e.url=n=>e.check(nc(sl,n)),e.jwt=n=>e.check(gc(xl,n)),e.emoji=n=>e.check(rc(al,n)),e.guid=n=>e.check(Lr(Mr,n)),e.uuid=n=>e.check(Jd(Et,n)),e.uuidv4=n=>e.check(Qd(Et,n)),e.uuidv6=n=>e.check(ec(Et,n)),e.uuidv7=n=>e.check(tc(Et,n)),e.nanoid=n=>e.check(oc(dl,n)),e.guid=n=>e.check(Lr(Mr,n)),e.cuid=n=>e.check(ic(cl,n)),e.cuid2=n=>e.check(sc(ll,n)),e.ulid=n=>e.check(ac(ul,n)),e.base64=n=>e.check(pc(vl,n)),e.base64url=n=>e.check(hc(bl,n)),e.xid=n=>e.check(dc(fl,n)),e.ksuid=n=>e.check(cc($l,n)),e.ipv4=n=>e.check(lc(pl,n)),e.ipv6=n=>e.check(uc(hl,n)),e.cidrv4=n=>e.check(fc(ml,n)),e.cidrv6=n=>e.check($c(gl,n)),e.e164=n=>e.check(mc(yl,n)),e.datetime=n=>e.check(Mc(n)),e.date=n=>e.check(zc(n)),e.time=n=>e.check(Bc(n)),e.duration=n=>e.check(Wc(n))});function Nt(e){return Yd(ol,e)}const K=C("ZodStringFormat",(e,t)=>{H.init(e,t),si.init(e,t)}),il=C("ZodEmail",(e,t)=>{fd.init(e,t),K.init(e,t)}),Mr=C("ZodGUID",(e,t)=>{ld.init(e,t),K.init(e,t)}),Et=C("ZodUUID",(e,t)=>{ud.init(e,t),K.init(e,t)}),sl=C("ZodURL",(e,t)=>{$d.init(e,t),K.init(e,t)}),al=C("ZodEmoji",(e,t)=>{pd.init(e,t),K.init(e,t)}),dl=C("ZodNanoID",(e,t)=>{hd.init(e,t),K.init(e,t)}),cl=C("ZodCUID",(e,t)=>{md.init(e,t),K.init(e,t)}),ll=C("ZodCUID2",(e,t)=>{gd.init(e,t),K.init(e,t)}),ul=C("ZodULID",(e,t)=>{vd.init(e,t),K.init(e,t)}),fl=C("ZodXID",(e,t)=>{bd.init(e,t),K.init(e,t)}),$l=C("ZodKSUID",(e,t)=>{yd.init(e,t),K.init(e,t)}),pl=C("ZodIPv4",(e,t)=>{_d.init(e,t),K.init(e,t)}),hl=C("ZodIPv6",(e,t)=>{Pd.init(e,t),K.init(e,t)}),ml=C("ZodCIDRv4",(e,t)=>{Nd.init(e,t),K.init(e,t)}),gl=C("ZodCIDRv6",(e,t)=>{Ed.init(e,t),K.init(e,t)}),vl=C("ZodBase64",(e,t)=>{Rd.init(e,t),K.init(e,t)}),bl=C("ZodBase64URL",(e,t)=>{Id.init(e,t),K.init(e,t)}),yl=C("ZodE164",(e,t)=>{Od.init(e,t),K.init(e,t)}),xl=C("ZodJWT",(e,t)=>{kd.init(e,t),K.init(e,t)}),wl=C("ZodArray",(e,t)=>{jd.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Lt(n,r)),e.nonempty=n=>e.check(Lt(1,n)),e.max=(n,r)=>e.check(oi(n,r)),e.length=(n,r)=>e.check(ii(n,r)),e.unwrap=()=>e.element});function Cl(e,t){return Tc(wl,e,t)}const Sl=C("ZodUnion",(e,t)=>{Fd.init(e,t),de.init(e,t),e.options=t.options});function _l(e,t){return new Sl({type:"union",options:e,...j(t)})}const Pl=C("ZodIntersection",(e,t)=>{Ld.init(e,t),de.init(e,t)});function Nl(e,t){return new Pl({type:"intersection",left:e,right:t})}const El=C("ZodTransform",(e,t)=>{Md.init(e,t),de.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ko(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ht(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ht(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Rl(e){return new El({type:"transform",transform:e})}const Al=C("ZodOptional",(e,t)=>{Dd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dr(e){return new Al({type:"optional",innerType:e})}const Il=C("ZodNullable",(e,t)=>{zd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zr(e){return new Il({type:"nullable",innerType:e})}const Ol=C("ZodDefault",(e,t)=>{Zd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Tl(e,t){return new Ol({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Yo(t)}})}const kl=C("ZodPrefault",(e,t)=>{Bd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function jl(e,t){return new kl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Yo(t)}})}const Fl=C("ZodNonOptional",(e,t)=>{Ud.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ll(e,t){return new Fl({type:"nonoptional",innerType:e,...j(t)})}const Ml=C("ZodCatch",(e,t)=>{Wd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Dl(e,t){return new Ml({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const zl=C("ZodPipe",(e,t)=>{Vd.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function Zr(e,t){return new zl({type:"pipe",in:e,out:t})}const Zl=C("ZodReadonly",(e,t)=>{Gd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Bl(e){return new Zl({type:"readonly",innerType:e})}const Ul=C("ZodCustom",(e,t)=>{Hd.init(e,t),de.init(e,t)});function Wl(e,t={}){return kc(Ul,e,t)}function Vl(e){return jc(e)}const Gl={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Hl(e,t){var n=Array.prototype.slice.call(t);return n.push(Gl),e.apply(this,n)}function Br(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var i=Number(n[o]),s=Number(r[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Kl={}.constructor;function Qe(e){return e!=null&&e.constructor===Kl}function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yl(r.key),r)}}function qt(e,t,n){return t&&Xl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yl(e){var t=ql(e,"string");return nt(t)=="symbol"?t:t+""}function ql(e,t){if(nt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jl="1.2.0",Ql="1.7.35",Ur=" ext. ",eu=/^\d+$/,oe=(function(){function e(t){Yt(this,e),ai(t),this.metadata=t,di.call(this,t)}return qt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&eu.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Wr(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Wr(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var o=this.nonGeographic()[n];if(o)return o}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Wr=(function(){function e(t,n){Yt(this,e),this.globalMetadataObject=n,this.metadata=t,di.call(this,n.metadata)}return qt(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(o){return new tu(o,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Vr(this.types(),n))return new ru(Vr(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ur:this.metadata[13]||Ur}}])})(),tu=(function(){function e(t,n){Yt(this,e),this._format=t,this.metadata=n}return qt(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!nu.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),nu=/^\(?\$1\)?$/,ru=(function(){function e(t,n){Yt(this,e),this.type=t,this.metadata=n}return qt(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Vr(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function ai(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Qe(e)||!Qe(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qe(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ou(e)+": "+e,"."))}var ou=function(t){return nt(t)};function nr(e,t){if(t=new oe(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function di(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Br(t,Jl)===-1?this.v2=!0:Br(t,Ql)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function rr(e,t,n){return iu(e,t,void 0,n)}function iu(e,t,n,r){t&&(r=new oe(r.metadata),r.selectNumberingPlan(t));var o=r.type(n),i=o&&o.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var s=e.length,a=i[0];return a===s?"IS_POSSIBLE":a>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function su(e,t,n){if(t===void 0&&(t={}),n=new oe(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return ci(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function ci(e,t,n){switch(rr(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Se(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function au(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=du(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function du(e,t){if(e){if(typeof e=="string")return Gr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gr(e,t):void 0}}function Gr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var cu=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function or(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new oe(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Se(r,n.nationalNumberPattern())){if(pn(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||pn(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o=au(cu),i;!(i=o()).done;){var s=i.value;if(pn(r,s,n))return s}}}}function pn(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Se(e,t.pattern())}function lu(e,t,n){if(t=t||{},n=new oe(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return or(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return Se(r,n.nationalNumberPattern())}function uu(e,t,n){var r=new oe(n),o=r.getCountryCodesForCallingCode(e);return o?o.filter(function(i){return fu(t,i,n)}):[]}function fu(e,t,n){var r=new oe(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ir=2,$u=17,pu=3,pe="0-90-9٠-٩۰-۹",hu="-‐-―−ー-",mu="//",gu="..",vu="  ­​⁠ ",bu="()()[]\\[\\]",yu="~⁓∼~",Mt="".concat(hu).concat(mu).concat(gu).concat(vu).concat(bu).concat(yu),sr="++",xu=new RegExp("(["+pe+"])");function wu(e,t,n,r){if(t){var o=new oe(r);o.selectNumberingPlan(t,n);var i=new RegExp(o.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(xu);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function Cu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,i,s=r.length-1,a=s>0&&r[s];if(t.nationalPrefixTransformRule()&&a)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var d=r[0];o=e.slice(d.length),a&&(i=r[1])}var c;if(a){var u=e.indexOf(r[1]),f=e.slice(0,u);f===t.numberingPlan.nationalPrefix()&&(c=t.numberingPlan.nationalPrefix())}else c=r[0];return{nationalNumber:o,nationalPrefix:c,carrierCode:i}}}return{nationalNumber:e}}function Su(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_u(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _u(e,t){if(e){if(typeof e=="string")return Hr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hr(e,t):void 0}}function Hr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pu(e,t){var n=t.countries,r=t.metadata;r=new oe(r);for(var o=Su(n),i;!(i=o()).done;){var s=i.value;if(r.selectNumberingPlan(s),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return s}else if(or({phone:e,country:s},void 0,r.metadata))return s}}function li(e,t){var n=t.nationalNumber,r=t.metadata,o=r.getCountryCodesForCallingCode(e);if(o)return o.length===1?o[0]:Pu(n,{countries:o,metadata:r.metadata})}function In(e,t,n){var r=Cu(e,n),o=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!Nu(e,i,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=li(n.numberingPlan.callingCode(),{nationalNumber:i,metadata:n})),!Eu(i,t,n)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:o}}function Nu(e,t,n){return!(Se(e,n.nationalNumberPattern())&&!Se(t,n.nationalNumberPattern()))}function Eu(e,t,n){switch(rr(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Ru(e,t,n,r,o){var i=n?nr(n,o):r;if(e.indexOf(i)===0){o=new oe(o),o.selectNumberingPlan(n,i);var s=e.slice(i.length),a=In(s,t,o),d=a.nationalNumber,c=In(e,t,o),u=c.nationalNumber;if(!Se(u,o.nationalNumberPattern())&&Se(d,o.nationalNumberPattern())||rr(u,t,o)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:e}}function ui(e,t,n,r,o){if(!e)return{};var i;if(e[0]!=="+"){var s=wu(e,n,r,o);if(s&&s!==e)i=!0,e="+"+s;else{if(n||r){var a=Ru(e,t,n,r,o),d=a.countryCallingCode,c=a.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:c}}return{number:e}}}if(e[1]==="0")return{};o=new oe(o);for(var u=2;u-1<=pu&&u<=e.length;){var f=e.slice(1,u);if(o.hasCallingCode(f))return o.selectNumberingPlan(f),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(u)};u++}return{}}function Au(e){return e.replace(new RegExp("[".concat(Mt,"]+"),"g")," ").trim()}var Iu=/(\$\d)/;function Ou(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Iu,t.nationalPrefixFormattingRule()):t.format());return r?Au(i):i}var Tu=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ku(e,t,n){var r=new oe(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Tu.test(r.IDDPrefix()))return r.IDDPrefix()}var ju=";ext=",Ge=function(t){return"([".concat(pe,"]{1,").concat(t,"})")};function fi(e){var t="20",n="15",r="9",o="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",a="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",u="[- ]+",f="[  \\t]*",p="(?:,{2}|;)",m=ju+Ge(t),v=i+d+s+Ge(t)+a,$=i+c+s+Ge(r)+a,g=u+Ge(o)+"#",b=f+p+s+Ge(n)+a,y=f+"(?:,)+"+s+Ge(r)+a;return m+"|"+v+"|"+$+"|"+g+"|"+b+"|"+y}var Fu="["+pe+"]{"+ir+"}",Lu="["+sr+"]{0,1}(?:["+Mt+"]*["+pe+"]){3,}["+Mt+pe+"]*",Mu=new RegExp("^["+sr+"]{0,1}(?:["+Mt+"]*["+pe+"]){1,2}$","i"),Du=Lu+"(?:"+fi()+")?",zu=new RegExp("^"+Fu+"$|^"+Du+"$","i");function Zu(e){return e.length>=ir&&zu.test(e)}function Bu(e){return Mu.test(e)}function Uu(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Kr={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Wu(e,t,n,r){if(n?n=Hu({},Kr,n):n=Kr,r=new oe(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var o=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=Dt(i,e.carrierCode,"NATIONAL",r,n),hn(s,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(s=Dt(i,null,"INTERNATIONAL",r,n),s="+".concat(o," ").concat(s),hn(s,e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(i);case"RFC3966":return Uu({number:"+".concat(o).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var a=Gu(i,e.carrierCode,o,n.fromCountry,r);return hn(a,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Dt(e,t,n,r,o){var i=Vu(r.formats(),e);return i?Ou(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1)}):e}function Vu(e,t){return Ku(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Se(t,n.pattern())})}function hn(e,t,n,r){return t?r(e,t,n):e}function Gu(e,t,n,r,o){var i=nr(r,o.metadata);if(i===n){var s=Dt(e,t,"NATIONAL",o);return n==="1"?n+" "+s:s}var a=ku(r,void 0,o.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Dt(e,null,"INTERNATIONAL",o))}function Hu(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var o in n[e])n[0][o]=n[e][o];e++}return n[0]}function Ku(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xr(Object(n),!0).forEach(function(r){Xu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xu(e,t,n){return(t=$i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$i(r.key),r)}}function Ju(e,t,n){return t&&qu(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $i(e){var t=Qu(e,"string");return mt(t)=="symbol"?t:t+""}function Qu(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var e0=(function(){function e(t,n,r){if(Yu(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Qe(n)&&Qe(n.countries)){r=n;var o=t;if(!r0.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=ui(o,void 0,void 0,void 0,r),s=i.countryCallingCode,a=i.number;if(n=a,t=s,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");ai(r);var d=n0(t,r),c=d.country,u=d.countryCallingCode;this.country=c,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Ju(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:uu(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return su(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return lu(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new oe(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return or(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Wu(this,n,r?Yr(Yr({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),t0=function(t){return/^[A-Z]{2}$/.test(t)};function n0(e,t){var n,r,o=new oe(t);return t0(e)?(n=e,o.selectNumberingPlan(n),r=o.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var r0=/^\+\d+$/;function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function o0(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function i0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s0(e,t,n){return t=vt(t),a0(e,ar()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}function a0(e,t){if(t&&(On(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d0(e)}function d0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gt(e,t)}function Tn(e){var t=typeof Map=="function"?new Map:void 0;return Tn=function(r){if(r===null||!u0(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return l0(r,arguments,vt(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),gt(o,r)},Tn(e)}function l0(e,t,n){if(ar())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&gt(o,n.prototype),o}function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ar=function(){return!!e})()}function u0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gt(e,t)}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vt(e)}var Ie=(function(e){function t(n){var r;return i0(this,t),r=s0(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return c0(t,e),o0(t)})(Tn(Error)),qr=new RegExp("(?:"+fi()+")$","i");function f0(e){var t=e.search(qr);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(qr),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}var $0={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function p0(e){return $0[e]}function h0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=m0(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m0(e,t){if(e){if(typeof e=="string")return Jr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(e,t):void 0}}function Jr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qr(e){for(var t="",n=h0(e.split("")),r;!(r=n()).done;){var o=r.value;t+=g0(o,t)||""}return t}function g0(e,t,n){return e==="+"?t?void 0:"+":p0(e)}var pi="+",v0="[\\-\\.\\(\\)]?",eo="(["+pe+"]|"+v0+")",b0="^\\"+pi+eo+"*["+pe+"]"+eo+"*$",y0=new RegExp(b0,"g"),kn=pe,x0="["+kn+"]+((\\-)*["+kn+"])*",w0="a-zA-Z",C0="["+w0+"]+((\\-)*["+kn+"])*",S0="^("+x0+"\\.)*"+C0+"\\.?$",_0=new RegExp(S0,"g"),to="tel:",jn=";phone-context=",P0=";isub=";function N0(e){var t=e.indexOf(jn);if(t<0)return null;var n=t+jn.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function E0(e){return e===null?!0:e.length===0?!1:y0.test(e)||_0.test(e)}function R0(e,t){var n=t.extractFormattedPhoneNumber,r=N0(e);if(!E0(r))throw new Ie("NOT_A_NUMBER");var o;if(r===null)o=n(e)||"";else{o="",r.charAt(0)===pi&&(o+=r);var i=e.indexOf(to),s;i>=0?s=i+to.length:s=0;var a=e.indexOf(jn);o+=e.substring(s,a)}var d=o.indexOf(P0);if(d>0&&(o=o.substring(0,d)),o!=="")return o}var A0=250,I0=new RegExp("["+sr+pe+"]"),O0=new RegExp("[^"+pe+"#]+$");function T0(e,t,n){if(t=t||{},n=new oe(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ie("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=j0(e,t.v2,t.extract),o=r.number,i=r.ext,s=r.error;if(!o){if(t.v2)throw s==="TOO_SHORT"?new Ie("TOO_SHORT"):new Ie("NOT_A_NUMBER");return{}}var a=L0(o,t.defaultCountry,t.defaultCallingCode,n),d=a.country,c=a.nationalNumber,u=a.countryCallingCode,f=a.countryCallingCodeSource,p=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ie("INVALID_COUNTRY");return{}}if(!c||c.length<ir){if(t.v2)throw new Ie("TOO_SHORT");return{}}if(c.length>$u){if(t.v2)throw new Ie("TOO_LONG");return{}}if(t.v2){var m=new e0(u,c,n.metadata);return d&&(m.country=d),p&&(m.carrierCode=p),i&&(m.ext=i),m.__countryCallingCodeSource=f,m}var v=(t.extended?n.hasSelectedNumberingPlan():d)?Se(c,n.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:u,carrierCode:p,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&ci(c,d,n)),phone:c,ext:i}:v?F0(d,c,i):{}}function k0(e,t,n){if(e){if(e.length>A0){if(n)throw new Ie("TOO_LONG");return}if(t===!1)return e;var r=e.search(I0);if(!(r<0))return e.slice(r).replace(O0,"")}}function j0(e,t,n){var r=R0(e,{extractFormattedPhoneNumber:function(s){return k0(s,n,t)}});if(!r)return{};if(!Zu(r))return Bu(r)?{error:"TOO_SHORT"}:{};var o=f0(r);return o.ext?o:{number:r}}function F0(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function L0(e,t,n,r){var o=ui(Qr(e),void 0,t,n,r.metadata),i=o.countryCallingCodeSource,s=o.countryCallingCode,a=o.number,d;if(s)r.selectNumberingPlan(s);else if(a&&(t||n))r.selectNumberingPlan(t,n),t&&(d=t),s=n||nr(t,r.metadata);else return{};if(!a)return{countryCallingCodeSource:i,countryCallingCode:s};var c=In(Qr(a),d,r),u=c.nationalNumber,f=c.carrierCode,p=li(s,{nationalNumber:u,metadata:r});return p&&(d=p,p==="001"||r.selectNumberingPlan(d)),{country:d,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:u,carrierCode:f}}function bt(e){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(e)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(r){M0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M0(e,t,n){return(t=D0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D0(e){var t=z0(e,"string");return bt(t)=="symbol"?t:t+""}function z0(e,t){if(bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z0(e,t,n){return T0(e,ro(ro({},t),{},{v2:!0}),n)}function yt(e){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(e)}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oo(Object(n),!0).forEach(function(r){U0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U0(e,t,n){return(t=W0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W0(e){var t=V0(e,"string");return yt(t)=="symbol"?t:t+""}function V0(e,t){if(yt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G0(e,t){return Y0(e)||X0(e,t)||K0(e,t)||H0()}function H0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K0(e,t){if(e){if(typeof e=="string")return io(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(e,t):void 0}}function io(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function X0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],d=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(d=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);d=!0);}catch(u){c=!0,o=u}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function Y0(e){if(Array.isArray(e))return e}function q0(e){var t=Array.prototype.slice.call(e),n=G0(t,4),r=n[0],o=n[1],i=n[2],s=n[3],a,d,c;if(typeof r=="string")a=r;else throw new TypeError("A text for parsing must be a string.");if(!o||typeof o=="string")s?(d=i,c=s):(d=void 0,c=i),o&&(d=B0({defaultCountry:o},d));else if(Qe(o))i?(d=o,c=i):c=o;else throw new Error("Invalid second argument: ".concat(o));return{text:a,options:d,metadata:c}}function J0(){var e=q0(arguments),t=e.text,n=e.options,r=e.metadata;return Z0(t,n,r)}function Q0(){return Hl(J0,arguments)}const mn=(e,t)=>{if(!t)return null;if(t.required&&!e)return typeof t.required=="string"?t.required:"This field is required";if(!e)return null;if(t.email&&!Nt().email().safeParse(e).success)return typeof t.email=="string"?t.email:"Please enter a valid email address";if(t.number&&!Nt().regex(/^-?\d*\.?\d+$/).safeParse(e).success)return typeof t.number=="string"?t.number:"Please enter a valid number";if(t.phone)try{const n=Q0(e,t.phone.country);if(!n||!n.isValid())return t.phone.message||`Please enter a valid phone number${t.phone.country?` for ${t.phone.country}`:""}`}catch{return t.phone.message||"Please enter a valid phone number"}return t.minLength&&!Nt().min(t.minLength.value).safeParse(e).success?t.minLength.message||`Must be at least ${t.minLength.value} characters`:t.maxLength&&!Nt().max(t.maxLength.value).safeParse(e).success?t.maxLength.message||`Must be at most ${t.maxLength.value} characters`:t.regex&&!t.regex.pattern.test(e)?t.regex.message||"Invalid format":null},hi=te.forwardRef(({value:e="",onChange:t,disabled:n=!1,error:r,placeholder:o,type:i="text",className:s,showPasswordToggle:a=!1,validation:d,validateOnChange:c=!0,validateOnBlur:u=!0,...f},p)=>{const[m,v]=te.useState(!1),[$,g]=te.useState(!1),[b,y]=te.useState(null),x=!!r||!!b,w=typeof r=="string"?r:b,S=i==="password"&&a,P=S&&$?"text":i;te.useEffect(()=>{if(e&&d){const A=mn(e,d);y(A)}},[]);const _=A=>{const Z=A.target.value;if(t&&t(Z),c&&d){const T=mn(Z,d);y(T)}},O=A=>{v(!0),f.onFocus&&f.onFocus(A)},L=A=>{if(v(!1),u&&d){const Z=mn(A.target.value,d);y(Z)}f.onBlur&&f.onBlur(A)},F=()=>{g(!$)},z=I("flex items-center gap-2","w-full h-12","px-4 py-2","rounded","text-base leading-[18px]","border transition-colors",n&&"bg-[#f4f4f4] cursor-not-allowed",!n&&"bg-white",x&&!n&&"border-[#ff305f]",!x&&m&&!n&&"border-[#a29fba]",!x&&!m&&"border-[#ecebf0]",s),N=I("flex-1 w-full h-full","bg-transparent border-none outline-none","text-[#312e4d] text-base leading-[18px]","placeholder:text-[#7d79a0]",n&&"text-[#a29fba] cursor-not-allowed",n&&"placeholder:text-[#a29fba]"),M=I("flex items-center justify-center","w-5 h-5 shrink-0","text-[#312e4d]","cursor-pointer hover:opacity-70 transition-opacity",n&&"cursor-not-allowed opacity-50");return l.jsxs("div",{className:"w-full",children:[l.jsxs("div",{className:z,"data-testid":"input-container",children:[l.jsx("input",{ref:p,type:P,value:e,onChange:_,onFocus:O,onBlur:L,disabled:n,placeholder:o,className:N,"data-testid":"input","aria-invalid":x,"aria-disabled":n,...f}),S&&l.jsx("button",{type:"button",onClick:F,disabled:n,className:M,"data-testid":"password-toggle","aria-label":$?"Hide password":"Show password",tabIndex:-1,children:$?l.jsx(re.EyeOff,{size:20}):l.jsx(re.Eye,{size:20})})]}),w&&l.jsx("p",{className:"mt-1 text-sm text-[#ff305f]","data-testid":"input-error",role:"alert",children:w})]})});hi.displayName="Input";const mi=h.forwardRef(({icon:e,primaryText:t,primaryTextColor:n="#312e4d",secondaryText:r,secondaryTextColor:o="#575385",rightIcon:i,className:s,...a},d)=>l.jsxs("div",{ref:d,className:I("flex items-center justify-between w-full",s),...a,children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("div",{className:"shrink-0",children:e}),l.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:n},children:t}),r&&l.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:o},children:r})]}),i&&l.jsx("div",{className:"shrink-0",children:i})]}));mi.displayName="KPIComparisonCustom";const e1=({className:e})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("path",{d:"M11 3L6.5 7.5L4 5L1 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 3H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),t1=({className:e})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("path",{d:"M11 9L6.5 4.5L4 7L1 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 9H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),n1=({className:e})=>l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("circle",{cx:"8",cy:"8",r:"6.375",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("path",{d:"M8 4.5V8.5",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"}),l.jsx("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor"})]}),dr=h.forwardRef(({percentage:e,trend:t,label:n="KPI comparison",showWarning:r=!1,className:o,...i},s)=>{const a=t==="positive",d=e>0?`+${e.toFixed(1)}%`:`${e.toFixed(1)}%`;return l.jsxs("div",{ref:s,className:I("flex items-center justify-between w-full",o),...i,children:[l.jsxs("div",{className:"flex items-center gap-1",children:[a?l.jsx(e1,{className:"text-[#00995a] shrink-0"}):l.jsx(t1,{className:"text-[#d4002c] shrink-0"}),l.jsx("span",{className:I("text-xs leading-[14px] font-normal whitespace-nowrap",a?"text-[#00995a]":"text-[#d4002c]"),style:{fontFamily:"Causten Round, sans-serif"},children:d}),l.jsx("span",{className:"text-xs leading-[14px] font-normal text-[#575385] whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),r&&l.jsx(n1,{className:"text-[#d4002c] shrink-0"})]})});dr.displayName="KPIComparison";const so={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"},yellow:{bg:"#fff9e6",border:"#ffd966",text:"#cc8800"}},gi=h.forwardRef(({title:e,content:t,description:n,footer:r,tag:o,icon:i,onClick:s,className:a,...d},c)=>{const u=o?so[o.variant||"default"]:so.default;return l.jsxs("div",{ref:c,onClick:s,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",s&&"cursor-pointer hover:shadow-md transition-shadow",a),...d,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),o&&l.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:u.bg,borderColor:u.border,color:u.text,fontFamily:"Causten Round, sans-serif"},children:o.label})]}),l.jsx("div",{className:"min-w-0",children:t}),n&&l.jsx("div",{className:"min-w-0",children:n}),r&&l.jsx("div",{className:"min-w-0",children:r})]})]})});gi.displayName="KPICardCustom";const r1=({color:e="#312e4d"})=>l.jsx(re.TriangleAlert,{size:32,color:e,strokeWidth:2}),vi=h.forwardRef(({title:e,value:t,unit:n="%",total:r,description:o,comparison:i,tag:s,icon:a,iconColor:d="primary",bodyText:c,button:u,onClick:f,className:p,...m},v)=>{const $={primary:"#312e4d",error:"#d4002c",brand:"#00995a"},b={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"}}[s?.variant||"default"];return l.jsxs("div",{ref:v,onClick:f,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",f&&"cursor-pointer hover:shadow-md transition-shadow",p),...m,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:a||l.jsx(r1,{color:$[d]})}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),s&&l.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:b.bg,borderColor:b.border,color:b.text,fontFamily:"Causten Round, sans-serif"},children:s.label})]}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),r!==void 0?l.jsxs("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:["/",r]}):n?l.jsx("span",{className:"text-xs leading-[18px] font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:n}):null,o&&l.jsx("span",{className:"text-sm leading-[18px] font-normal text-[#575385] flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-right",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),c&&l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:c}),i&&l.jsx(dr,{percentage:i.percentage,trend:i.trend,label:i.label,showWarning:i.showWarning}),u&&l.jsx("button",{onClick:y=>{y.stopPropagation(),u.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] text-left self-start hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:u.label})]})]})});vi.displayName="KPICard";const bi=h.forwardRef(({type:e="spinner",show:t=!0,variant:n="active",size:r=48,width:o=230,className:i,...s},a)=>{if(!t)return null;const c={active:"#00b56b",disabled:"#a29fba"}[n];return e==="spinner"?l.jsxs("div",{ref:a,className:I("inline-flex items-center justify-center",i),role:"status","aria-label":"Cargando",...s,children:[l.jsx("div",{className:"rounded-full animate-spin",style:{width:r,height:r,border:"4px solid transparent",borderTopColor:c,borderRightColor:c}}),l.jsx("span",{className:"sr-only",children:"Cargando..."})]}):l.jsxs("div",{ref:a,className:I("relative overflow-hidden rounded-full bg-gray-200",i),style:{width:o,height:8},role:"progressbar","aria-label":"Cargando","aria-valuemin":0,"aria-valuemax":100,...s,children:[l.jsx("div",{className:"absolute top-0 left-0 h-full rounded-full",style:{backgroundColor:c,animation:"linear-progress 1.5s ease-in-out infinite"}}),l.jsx("span",{className:"sr-only",children:"Cargando..."})]})});bi.displayName="Loader";const yi=h.forwardRef(({title:e,description:t,value:n,selected:r=!1,onSelect:o,disabled:i,className:s,...a},d)=>{const c=()=>{!i&&o&&o(n)};return l.jsxs("div",{ref:d,onClick:c,className:I("bg-white border border-solid rounded-xl p-4 flex flex-col gap-1 transition-all cursor-pointer",r?"border-[#00b56b]":"border-[#ecebf0]",i&&"opacity-50 cursor-not-allowed",!i&&"hover:shadow-sm",s),...a,children:[l.jsxs("div",{className:"flex gap-3 items-center h-6",children:[l.jsx("div",{className:"flex items-center justify-center shrink-0 w-6 h-6",children:l.jsx("div",{className:I("w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors",r?"border-[#00995a]":"border-[#a29fba]"),children:r&&l.jsx("div",{className:"w-3 h-3 rounded-full bg-[#00995a]"})})}),l.jsx("h3",{className:"text-base leading-5 font-medium text-[#312e4d] flex-1",style:{fontFamily:"Causten Round, sans-serif"},children:e})]}),l.jsx("div",{className:"pl-9",children:l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})})]})});yi.displayName="OptionCard";const ao={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"}},xi=h.forwardRef(({title:e,count:t,countLabel:n="orders",infoLine1:r,infoLine2:o,icon:i,badge:s,button:a,className:d,...c},u)=>{const f=s?ao[s.variant||"default"]:ao.default;return l.jsxs("div",{ref:u,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",d),...c,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),l.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),l.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),r&&l.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:r}),o&&l.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),l.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pb-[33px]",children:[s&&l.jsx("button",{onClick:p=>{p.stopPropagation(),s.onClick?.()},disabled:!s.onClick,className:I("px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border transition-opacity",s.onClick&&"hover:opacity-80 cursor-pointer"),style:{fontFamily:"Causten Round, sans-serif",height:"24px",backgroundColor:f.bg,borderColor:f.border,color:f.text},children:s.label}),a&&l.jsx("button",{onClick:p=>{p.stopPropagation(),a.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:a.label})]})]})]})});xi.displayName="OrderCardCustom";const Jt="#00995a",Qt=32,en=2,o1=()=>l.jsx(re.ReceiptText,{size:Qt,color:Jt,strokeWidth:en}),i1=()=>l.jsx(re.Package,{size:Qt,color:Jt,strokeWidth:en}),s1=()=>l.jsx(re.Route,{size:Qt,color:Jt,strokeWidth:en}),a1=()=>l.jsx(re.CircleCheck,{size:Qt,color:Jt,strokeWidth:en}),d1={received:{title:"Received",icon:o1},picking:{title:"Picking",icon:i1},dispatched:{title:"Dispatched",icon:s1},delivered:{title:"Delivered",icon:a1}},wi=h.forwardRef(({state:e,count:t,countLabel:n="orders",grossSales:r,netSales:o,hasDelays:i=!1,delayCount:s,onDelaysClick:a,onFilterClick:d,icon:c,currencySymbol:u="$",className:f,...p},m)=>{const v=d1[e],$=c||v.icon,g=b=>`${u}${b.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")}`;return l.jsxs("div",{ref:m,className:I("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",f),...p,children:[l.jsx("div",{className:"flex items-start justify-center shrink-0",children:typeof $=="function"?l.jsx($,{}):$}),l.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:v.title}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),l.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),l.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[l.jsx("span",{children:"Gross Sales:"}),l.jsx("span",{children:g(r)})]}),l.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[l.jsx("span",{children:"Net Sales:"}),l.jsx("span",{children:g(o)})]})]}),l.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pl-12 pb-[33px]",children:[i&&l.jsx("button",{onClick:b=>{b.stopPropagation(),a?.()},className:"px-2 rounded-2xl text-[12px] leading-[18px] font-light border bg-[#ffecf0] border-[#ff8ea7] text-[#ff305f] hover:opacity-80 transition-opacity",style:{fontFamily:"Causten Round, sans-serif",height:"24px"},children:s?`${s} Delays`:"Delays"}),d&&l.jsx("button",{onClick:b=>{b.stopPropagation(),d()},className:"text-sm leading-[18px] font-medium text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:"Filter"})]})]})]})});wi.displayName="OrderCard";const Ci=({currentPage:e,totalPages:t,onPageChange:n})=>{const r=()=>{e>1&&n(e-1)},o=()=>{e<t&&n(e+1)},i=d=>{n(d)},a=(()=>{const d=[];if(t<=6)for(let u=1;u<=t;u++)d.push(u);else if(d.push(1),e<=3){for(let u=2;u<=4;u++)d.push(u);d.push("..."),d.push(t)}else if(e>=t-2){d.push("...");for(let u=t-2;u<=t;u++)d.push(u)}else{d.push("...");for(let u=e-1;u<=e+1;u++)d.push(u);d.push("..."),d.push(t)}return d})();return l.jsxs("div",{className:"flex gap-1.5 items-center",children:[l.jsx("button",{onClick:r,disabled:e===1,className:I("border rounded bg-transparent p-1 flex items-center justify-center w-[28px] h-[28px]",e===1?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:l.jsx("i",{className:"tabler-chevron-left text-sm text-[#312e4d]"})}),a.map((d,c)=>{if(d==="...")return l.jsx("div",{className:"border border-[#ecebf0] rounded p-1 h-[28px] w-[28px] flex items-center justify-center",children:l.jsx("p",{className:"text-xs text-[#575385] text-center",children:"..."})},`ellipsis-${c}`);const u=d,f=u===e;return l.jsx("button",{onClick:()=>i(u),className:I("border rounded bg-transparent p-1 h-[28px] w-[28px] flex items-center justify-center px-1",f?"border-[#a29fba] bg-white":"border-[#ecebf0] hover:bg-gray-50"),children:l.jsx("p",{className:I("text-xs text-center",f?"text-[#312e4d]":"text-[#a29fba]"),children:u})},u)}),l.jsx("button",{onClick:o,disabled:e===t,className:I("border rounded bg-transparent p-1 flex items-center justify-center h-[28px]",e===t?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:l.jsx("i",{className:"tabler-chevron-right text-sm text-[#312e4d]"})})]})};function co(e,[t,n]){return Math.min(n,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function cr(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),d=n.length;n=[...n,s];const c=f=>{const{scope:p,children:m,...v}=f,$=p?.[e]?.[d]||a,g=h.useMemo(()=>v,Object.values(v));return l.jsx($.Provider,{value:g,children:m})};c.displayName=i+"Provider";function u(f,p){const m=p?.[e]?.[d]||a,v=h.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const d=a?.[e]||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,c1(o,...t)]}function c1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:d,scopeName:c})=>{const f=d(i)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=lo(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():lo(e[o],null)}}}}function ne(...e){return h.useCallback(l1(...e),e)}function u1(e){const t=e+"CollectionProvider",[n,r]=cr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=$=>{const{scope:g,children:b}=$,y=te.useRef(null),x=te.useRef(new Map).current;return l.jsx(o,{scope:g,itemMap:x,collectionRef:y,children:b})};s.displayName=t;const a=e+"CollectionSlot",d=pt.createSlot(a),c=te.forwardRef(($,g)=>{const{scope:b,children:y}=$,x=i(a,b),w=ne(g,x.collectionRef);return l.jsx(d,{ref:w,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=pt.createSlot(u),m=te.forwardRef(($,g)=>{const{scope:b,children:y,...x}=$,w=te.useRef(null),S=ne(g,w),P=i(u,b);return te.useEffect(()=>(P.itemMap.set(w,{ref:w,...x}),()=>void P.itemMap.delete(w))),l.jsx(p,{[f]:"",ref:S,children:y})});m.displayName=u;function v($){const g=i(e+"CollectionConsumer",$);return te.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},v,r]}var f1=h.createContext(void 0);function $1(e){const t=h.useContext(f1);return e||t||"ltr"}var p1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=p1.reduce((e,t)=>{const n=pt.createSlot(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function h1(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t))}function Ze(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function m1(e,t=globalThis?.document){const n=Ze(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var g1="DismissableLayer",Fn="dismissableLayer.update",v1="dismissableLayer.pointerDownOutside",b1="dismissableLayer.focusOutside",uo,Si=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_i=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=h.useContext(Si),[u,f]=h.useState(null),p=u?.ownerDocument??globalThis?.document,[,m]=h.useState({}),v=ne(t,_=>f(_)),$=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=$.indexOf(g),y=u?$.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=b,S=w1(_=>{const O=_.target,L=[...c.branches].some(F=>F.contains(O));!w||L||(o?.(_),s?.(_),_.defaultPrevented||a?.())},p),P=C1(_=>{const O=_.target;[...c.branches].some(F=>F.contains(O))||(i?.(_),s?.(_),_.defaultPrevented||a?.())},p);return m1(_=>{y===c.layers.size-1&&(r?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},p),h.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(uo=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),fo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=uo)}},[u,p,n,c]),h.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),fo())},[u,c]),h.useEffect(()=>{const _=()=>m({});return document.addEventListener(Fn,_),()=>document.removeEventListener(Fn,_)},[]),l.jsx(Y.div,{...d,ref:v,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,P.onFocusCapture),onBlurCapture:J(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,S.onPointerDownCapture)})});_i.displayName=g1;var y1="DismissableLayerBranch",x1=h.forwardRef((e,t)=>{const n=h.useContext(Si),r=h.useRef(null),o=ne(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(Y.div,{...e,ref:o})});x1.displayName=y1;function w1(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){Pi(v1,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C1(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Pi(b1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fo(){const e=new CustomEvent(Fn);document.dispatchEvent(e)}function Pi(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?h1(o,i):o.dispatchEvent(i)}var gn=0;function S1(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$o()),document.body.insertAdjacentElement("beforeend",e[1]??$o()),gn++,()=>{gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gn--}},[])}function $o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vn="focusScope.autoFocusOnMount",bn="focusScope.autoFocusOnUnmount",po={bubbles:!1,cancelable:!0},_1="FocusScope",Ni=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=h.useState(null),c=Ze(o),u=Ze(i),f=h.useRef(null),p=ne(t,$=>d($)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let $=function(x){if(m.paused||!a)return;const w=x.target;a.contains(w)?f.current=w:Ae(f.current,{select:!0})},g=function(x){if(m.paused||!a)return;const w=x.relatedTarget;w!==null&&(a.contains(w)||Ae(f.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ae(a)};document.addEventListener("focusin",$),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",$),document.removeEventListener("focusout",g),y.disconnect()}}},[r,a,m.paused]),h.useEffect(()=>{if(a){mo.add(m);const $=document.activeElement;if(!a.contains($)){const b=new CustomEvent(vn,po);a.addEventListener(vn,c),a.dispatchEvent(b),b.defaultPrevented||(P1(I1(Ei(a)),{select:!0}),document.activeElement===$&&Ae(a))}return()=>{a.removeEventListener(vn,c),setTimeout(()=>{const b=new CustomEvent(bn,po);a.addEventListener(bn,u),a.dispatchEvent(b),b.defaultPrevented||Ae($??document.body,{select:!0}),a.removeEventListener(bn,u),mo.remove(m)},0)}}},[a,c,u,m]);const v=h.useCallback($=>{if(!n&&!r||m.paused)return;const g=$.key==="Tab"&&!$.altKey&&!$.ctrlKey&&!$.metaKey,b=document.activeElement;if(g&&b){const y=$.currentTarget,[x,w]=N1(y);x&&w?!$.shiftKey&&b===w?($.preventDefault(),n&&Ae(x,{select:!0})):$.shiftKey&&b===x&&($.preventDefault(),n&&Ae(w,{select:!0})):b===y&&$.preventDefault()}},[n,r,m.paused]);return l.jsx(Y.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});Ni.displayName=_1;function P1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ae(r,{select:t}),document.activeElement!==n)return}function N1(e){const t=Ei(e),n=ho(t,e),r=ho(t.reverse(),e);return[n,r]}function Ei(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ho(e,t){for(const n of e)if(!E1(n,{upTo:t}))return n}function E1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function R1(e){return e instanceof HTMLInputElement&&"select"in e}function Ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&R1(e)&&t&&e.select()}}var mo=A1();function A1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=go(e,t),e.unshift(t)},remove(t){e=go(e,t),e[0]?.resume()}}}function go(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function I1(e){return e.filter(t=>t.tagName!=="A")}var ae=globalThis?.document?h.useLayoutEffect:()=>{},O1=h[" useId ".trim().toString()]||(()=>{}),T1=0;function lr(e){const[t,n]=h.useState(O1());return ae(()=>{n(r=>r??String(T1++))},[e]),e||(t?`radix-${t}`:"")}const k1=["top","right","bottom","left"],Oe=Math.min,ce=Math.max,zt=Math.round,Rt=Math.floor,be=e=>({x:e,y:e}),j1={left:"right",right:"left",bottom:"top",top:"bottom"},F1={start:"end",end:"start"};function Ln(e,t,n){return ce(e,Oe(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function ur(e){return e==="x"?"y":"x"}function fr(e){return e==="y"?"height":"width"}const L1=new Set(["top","bottom"]);function ve(e){return L1.has(Pe(e))?"y":"x"}function $r(e){return ur(ve(e))}function M1(e,t,n){n===void 0&&(n=!1);const r=st(e),o=$r(e),i=fr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zt(s)),[s,Zt(s)]}function D1(e){const t=Zt(e);return[Mn(e),t,Mn(t)]}function Mn(e){return e.replace(/start|end/g,t=>F1[t])}const vo=["left","right"],bo=["right","left"],z1=["top","bottom"],Z1=["bottom","top"];function B1(e,t,n){switch(e){case"top":case"bottom":return n?t?bo:vo:t?vo:bo;case"left":case"right":return t?z1:Z1;default:return[]}}function U1(e,t,n,r){const o=st(e);let i=B1(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Mn)))),i}function Zt(e){return e.replace(/left|right|bottom|top/g,t=>j1[t])}function W1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ri(e){return typeof e!="number"?W1(e):{top:e,right:e,bottom:e,left:e}}function Bt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yo(e,t,n){let{reference:r,floating:o}=e;const i=ve(t),s=$r(t),a=fr(s),d=Pe(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(d){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(st(t)){case"start":m[s]-=p*(n&&c?-1:1);break;case"end":m[s]+=p*(n&&c?-1:1);break}return m}const V1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=yo(c,r,d),p=r,m={},v=0;for(let $=0;$<a.length;$++){const{name:g,fn:b}=a[$],{x:y,y:x,data:w,reset:S}=await b({x:u,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,f=x??f,m={...m,[g]:{...m[g],...w}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=yo(c,p,d)),$=-1)}return{x:u,y:f,placement:p,strategy:o,middlewareData:m}};async function xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=_e(t,e),v=Ri(m),g=a[p?f==="floating"?"reference":"floating":f],b=Bt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:d})),y=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:d}):y);return{top:(b.top-S.top+v.top)/w.y,bottom:(S.bottom-b.bottom+v.bottom)/w.y,left:(b.left-S.left+v.left)/w.x,right:(S.right-b.right+v.right)/w.x}}const G1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:u=0}=_e(e,t)||{};if(c==null)return{};const f=Ri(u),p={x:n,y:r},m=$r(o),v=fr(m),$=await s.getDimensions(c),g=m==="y",b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[m]-p[m]-i.floating[v],S=p[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=a.floating[x]||i.floating[v]);const O=w/2-S/2,L=_/2-$[v]/2-1,F=Oe(f[b],L),z=Oe(f[y],L),N=F,M=_-$[v]-z,A=_/2-$[v]/2+O,Z=Ln(N,A,M),T=!d.arrow&&st(o)!=null&&A!==Z&&i.reference[v]/2-(A<N?F:z)-$[v]/2<0,D=T?A<N?A-N:A-M:0;return{[m]:p[m]+D,data:{[m]:Z,centerOffset:A-Z-D,...T&&{alignmentOffset:D}},reset:T}}}),H1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:$=!0,...g}=_e(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Pe(o),y=ve(a),x=Pe(a)===a,w=await(d.isRTL==null?void 0:d.isRTL(c.floating)),S=p||(x||!$?[Zt(a)]:D1(a)),P=v!=="none";!p&&P&&S.push(...U1(a,$,v,w));const _=[a,...S],O=await xt(t,g),L=[];let F=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(O[b]),f){const A=M1(o,s,w);L.push(O[A[0]],O[A[1]])}if(F=[...F,{placement:o,overflows:L}],!L.every(A=>A<=0)){var z,N;const A=(((z=i.flip)==null?void 0:z.index)||0)+1,Z=_[A];if(Z&&(!(f==="alignment"?y!==ve(Z):!1)||F.every(E=>ve(E.placement)===y?E.overflows[0]>0:!0)))return{data:{index:A,overflows:F},reset:{placement:Z}};let T=(N=F.filter(D=>D.overflows[0]<=0).sort((D,E)=>D.overflows[1]-E.overflows[1])[0])==null?void 0:N.placement;if(!T)switch(m){case"bestFit":{var M;const D=(M=F.filter(E=>{if(P){const B=ve(E.placement);return B===y||B==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(B=>B>0).reduce((B,Q)=>B+Q,0)]).sort((E,B)=>E[1]-B[1])[0])==null?void 0:M[0];D&&(T=D);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function xo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wo(e){return k1.some(t=>e[t]>=0)}const K1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const i=await xt(t,{...o,elementContext:"reference"}),s=xo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wo(s)}}}case"escaped":{const i=await xt(t,{...o,altBoundary:!0}),s=xo(i,n.floating);return{data:{escapedOffsets:s,escaped:wo(s)}}}default:return{}}}}},Ai=new Set(["left","top"]);async function X1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=st(n),d=ve(n)==="y",c=Ai.has(s)?-1:1,u=i&&d?-1:1,f=_e(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),d?{x:m*u,y:p*c}:{x:p*c,y:m*u}}const Y1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await X1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},q1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...d}=_e(e,t),c={x:n,y:r},u=await xt(t,d),f=ve(Pe(o)),p=ur(f);let m=c[p],v=c[f];if(i){const g=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=m+u[g],x=m-u[b];m=Ln(y,m,x)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=v+u[g],x=v-u[b];v=Ln(y,v,x)}const $=a.fn({...t,[p]:m,[f]:v});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[p]:i,[f]:s}}}}}},J1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=_e(e,t),u={x:n,y:r},f=ve(o),p=ur(f);let m=u[p],v=u[f];const $=_e(a,t),g=typeof $=="number"?{mainAxis:$,crossAxis:0}:{mainAxis:0,crossAxis:0,...$};if(d){const x=p==="y"?"height":"width",w=i.reference[p]-i.floating[x]+g.mainAxis,S=i.reference[p]+i.reference[x]-g.mainAxis;m<w?m=w:m>S&&(m=S)}if(c){var b,y;const x=p==="y"?"width":"height",w=Ai.has(Pe(o)),S=i.reference[f]-i.floating[x]+(w&&((b=s.offset)==null?void 0:b[f])||0)+(w?0:g.crossAxis),P=i.reference[f]+i.reference[x]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?g.crossAxis:0);v<S?v=S:v>P&&(v=P)}return{[p]:m,[f]:v}}}},Q1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=_e(e,t),u=await xt(t,c),f=Pe(o),p=st(o),m=ve(o)==="y",{width:v,height:$}=i.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,g=p==="end"?"top":"bottom");const y=$-u.top-u.bottom,x=v-u.left-u.right,w=Oe($-u[g],y),S=Oe(v-u[b],x),P=!t.middlewareData.shift;let _=w,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),P&&!p){const F=ce(u.left,0),z=ce(u.right,0),N=ce(u.top,0),M=ce(u.bottom,0);m?O=v-2*(F!==0||z!==0?F+z:ce(u.left,u.right)):_=$-2*(N!==0||M!==0?N+M:ce(u.top,u.bottom))}await d({...t,availableWidth:O,availableHeight:_});const L=await s.getDimensions(a.floating);return v!==L.width||$!==L.height?{reset:{rects:!0}}:{}}}};function tn(){return typeof window<"u"}function at(e){return Ii(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Ii(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ii(e){return tn()?e instanceof Node||e instanceof le(e).Node:!1}function he(e){return tn()?e instanceof Element||e instanceof le(e).Element:!1}function ye(e){return tn()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function Co(e){return!tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const ef=new Set(["inline","contents"]);function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ef.has(o)}const tf=new Set(["table","td","th"]);function nf(e){return tf.has(at(e))}const rf=[":popover-open",":modal"];function nn(e){return rf.some(t=>{try{return e.matches(t)}catch{return!1}})}const of=["transform","translate","scale","rotate","perspective"],sf=["transform","translate","scale","rotate","perspective","filter"],af=["paint","layout","strict","content"];function pr(e){const t=hr(),n=he(e)?me(e):e;return of.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||sf.some(r=>(n.willChange||"").includes(r))||af.some(r=>(n.contain||"").includes(r))}function df(e){let t=Te(e);for(;ye(t)&&!rt(t);){if(pr(t))return t;if(nn(t))return null;t=Te(t)}return null}function hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cf=new Set(["html","body","#document"]);function rt(e){return cf.has(at(e))}function me(e){return le(e).getComputedStyle(e)}function rn(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Te(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Co(e)&&e.host||we(e);return Co(t)?t.host:t}function Oi(e){const t=Te(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&Ct(t)?t:Oi(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Oi(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=le(o);if(i){const a=Dn(s);return t.concat(s,s.visualViewport||[],Ct(o)?o:[],a&&n?wt(a):[])}return t.concat(o,wt(o,[],n))}function Dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ti(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=zt(n)!==i||zt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function mr(e){return he(e)?e:e.contextElement}function et(e){const t=mr(e);if(!ye(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ti(t);let s=(i?zt(n.width):n.width)/r,a=(i?zt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const lf=be(0);function ki(e){const t=le(e);return!hr()||!t.visualViewport?lf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=mr(e);let s=be(1);t&&(r?he(r)&&(s=et(r)):s=et(e));const a=uf(i,n,r)?ki(i):be(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=le(i),m=r&&he(r)?le(r):r;let v=p,$=Dn(v);for(;$&&r&&m!==v;){const g=et($),b=$.getBoundingClientRect(),y=me($),x=b.left+($.clientLeft+parseFloat(y.paddingLeft))*g.x,w=b.top+($.clientTop+parseFloat(y.paddingTop))*g.y;d*=g.x,c*=g.y,u*=g.x,f*=g.y,d+=x,c+=w,v=le($),$=Dn(v)}}return Bt({width:u,height:f,x:d,y:c})}function on(e,t){const n=rn(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function ji(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-on(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ff(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=we(r),a=t?nn(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},c=be(1);const u=be(0),f=ye(r);if((f||!f&&!i)&&((at(r)!=="body"||Ct(s))&&(d=rn(r)),ye(r))){const m=Be(r);c=et(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const p=s&&!f&&!i?ji(s,d):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-d.scrollTop*c.y+u.y+p.y}}function $f(e){return Array.from(e.getClientRects())}function pf(e){const t=we(e),n=rn(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+on(e);const a=-n.scrollTop;return me(r).direction==="rtl"&&(s+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const So=25;function hf(e,t){const n=le(e),r=we(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const u=hr();(!u||u&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const c=on(r);if(c<=0){const u=r.ownerDocument,f=u.body,p=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-m);v<=So&&(i-=v)}else c<=So&&(i+=c);return{width:i,height:s,x:a,y:d}}const mf=new Set(["absolute","fixed"]);function gf(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ye(e)?et(e):be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=r*i.y;return{width:s,height:a,x:d,y:c}}function _o(e,t,n){let r;if(t==="viewport")r=hf(e,n);else if(t==="document")r=pf(we(e));else if(he(t))r=gf(t,n);else{const o=ki(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Bt(r)}function Fi(e,t){const n=Te(e);return n===t||!he(n)||rt(n)?!1:me(n).position==="fixed"||Fi(n,t)}function vf(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(a=>he(a)&&at(a)!=="body"),o=null;const i=me(e).position==="fixed";let s=i?Te(e):e;for(;he(s)&&!rt(s);){const a=me(s),d=pr(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&mf.has(o.position)||Ct(s)&&!d&&Fi(e,s))?r=r.filter(u=>u!==s):o=a,s=Te(s)}return t.set(e,r),r}function bf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?nn(t)?[]:vf(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((c,u)=>{const f=_o(t,u,o);return c.top=ce(f.top,c.top),c.right=Oe(f.right,c.right),c.bottom=Oe(f.bottom,c.bottom),c.left=ce(f.left,c.left),c},_o(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function yf(e){const{width:t,height:n}=Ti(e);return{width:t,height:n}}function xf(e,t,n){const r=ye(t),o=we(t),i=n==="fixed",s=Be(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=be(0);function c(){d.x=on(o)}if(r||!r&&!i)if((at(t)!=="body"||Ct(o))&&(a=rn(t)),r){const m=Be(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?ji(o,a):be(0),f=s.left+a.scrollLeft-d.x-u.x,p=s.top+a.scrollTop-d.y-u.y;return{x:f,y:p,width:s.width,height:s.height}}function yn(e){return me(e).position==="static"}function Po(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Li(e,t){const n=le(e);if(nn(e))return n;if(!ye(e)){let o=Te(e);for(;o&&!rt(o);){if(he(o)&&!yn(o))return o;o=Te(o)}return n}let r=Po(e,t);for(;r&&nf(r)&&yn(r);)r=Po(r,t);return r&&rt(r)&&yn(r)&&!pr(r)?n:r||df(e)||n}const wf=async function(e){const t=this.getOffsetParent||Li,n=this.getDimensions,r=await n(e.floating);return{reference:xf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cf(e){return me(e).direction==="rtl"}const Sf={convertOffsetParentRelativeRectToViewportRelativeRect:ff,getDocumentElement:we,getClippingRect:bf,getOffsetParent:Li,getElementRects:wf,getClientRects:$f,getDimensions:yf,getScale:et,isElement:he,isRTL:Cf};function Mi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _f(e,t){let n=null,r;const o=we(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:p,height:m}=c;if(a||t(),!p||!m)return;const v=Rt(f),$=Rt(o.clientWidth-(u+p)),g=Rt(o.clientHeight-(f+m)),b=Rt(u),x={rootMargin:-v+"px "+-$+"px "+-g+"px "+-b+"px",threshold:ce(0,Oe(1,d))||1};let w=!0;function S(P){const _=P[0].intersectionRatio;if(_!==d){if(!w)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!Mi(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),i}function Pf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,c=mr(e),u=o||i?[...c?wt(c):[],...wt(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=c&&a?_f(c,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!d&&m.observe(c),m.observe(t));let v,$=d?Be(e):null;d&&g();function g(){const b=Be(e);$&&!Mi($,b)&&n(),$=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,d&&cancelAnimationFrame(v)}}const Nf=Y1,Ef=q1,Rf=H1,Af=Q1,If=K1,No=G1,Of=J1,Tf=(e,t,n)=>{const r=new Map,o={platform:Sf,...n},i={...o.platform,_c:r};return V1(e,t,{...o,platform:i})};var kf=typeof document<"u",jf=function(){},kt=kf?te.useLayoutEffect:jf;function Ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ut(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Di(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eo(e,t){const n=Di(e);return Math.round(t*n)/n}function xn(e){const t=h.useRef(e);return kt(()=>{t.current=e}),t}function Ff(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=h.useState(r);Ut(p,r)||m(r);const[v,$]=h.useState(null),[g,b]=h.useState(null),y=h.useCallback(E=>{E!==P.current&&(P.current=E,$(E))},[]),x=h.useCallback(E=>{E!==_.current&&(_.current=E,b(E))},[]),w=i||v,S=s||g,P=h.useRef(null),_=h.useRef(null),O=h.useRef(u),L=d!=null,F=xn(d),z=xn(o),N=xn(c),M=h.useCallback(()=>{if(!P.current||!_.current)return;const E={placement:t,strategy:n,middleware:p};z.current&&(E.platform=z.current),Tf(P.current,_.current,E).then(B=>{const Q={...B,isPositioned:N.current!==!1};A.current&&!Ut(O.current,Q)&&(O.current=Q,Gt.flushSync(()=>{f(Q)}))})},[p,t,n,z,N]);kt(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[c]);const A=h.useRef(!1);kt(()=>(A.current=!0,()=>{A.current=!1}),[]),kt(()=>{if(w&&(P.current=w),S&&(_.current=S),w&&S){if(F.current)return F.current(w,S,M);M()}},[w,S,M,F,L]);const Z=h.useMemo(()=>({reference:P,floating:_,setReference:y,setFloating:x}),[y,x]),T=h.useMemo(()=>({reference:w,floating:S}),[w,S]),D=h.useMemo(()=>{const E={position:n,left:0,top:0};if(!T.floating)return E;const B=Eo(T.floating,u.x),Q=Eo(T.floating,u.y);return a?{...E,transform:"translate("+B+"px, "+Q+"px)",...Di(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:Q}},[n,a,T.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:M,refs:Z,elements:T,floatingStyles:D}),[u,M,Z,T,D])}const Lf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?No({element:r.current,padding:o}).fn(n):{}:r?No({element:r,padding:o}).fn(n):{}}}},Mf=(e,t)=>({...Nf(e),options:[e,t]}),Df=(e,t)=>({...Ef(e),options:[e,t]}),zf=(e,t)=>({...Of(e),options:[e,t]}),Zf=(e,t)=>({...Rf(e),options:[e,t]}),Bf=(e,t)=>({...Af(e),options:[e,t]}),Uf=(e,t)=>({...If(e),options:[e,t]}),Wf=(e,t)=>({...Lf(e),options:[e,t]});var Vf="Arrow",zi=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(Y.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});zi.displayName=Vf;var Gf=zi;function Hf(e){const[t,n]=h.useState(void 0);return ae(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,c=Array.isArray(d)?d[0]:d;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var gr="Popper",[Zi,Bi]=cr(gr),[Kf,Ui]=Zi(gr),Wi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return l.jsx(Kf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wi.displayName=gr;var Vi="PopperAnchor",Gi=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ui(Vi,n),s=h.useRef(null),a=ne(t,s),d=h.useRef(null);return h.useEffect(()=>{const c=d.current;d.current=r?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),r?null:l.jsx(Y.div,{...o,ref:a})});Gi.displayName=Vi;var vr="PopperContent",[Xf,Yf]=Zi(vr),Hi=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:v,...$}=e,g=Ui(vr,n),[b,y]=h.useState(null),x=ne(t,R=>y(R)),[w,S]=h.useState(null),P=Hf(w),_=P?.width??0,O=P?.height??0,L=r+(i!=="center"?"-"+i:""),F=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(c)?c:[c],N=z.length>0,M={padding:F,boundary:z.filter(Jf),altBoundary:N},{refs:A,floatingStyles:Z,placement:T,isPositioned:D,middlewareData:E}=Ff({strategy:"fixed",placement:L,whileElementsMounted:(...R)=>Pf(...R,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Mf({mainAxis:o+O,alignmentAxis:s}),d&&Df({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zf():void 0,...M}),d&&Zf({...M}),Bf({...M,apply:({elements:R,rects:X,availableWidth:ie,availableHeight:U})=>{const{width:V,height:q}=X.reference,ue=R.floating.style;ue.setProperty("--radix-popper-available-width",`${ie}px`),ue.setProperty("--radix-popper-available-height",`${U}px`),ue.setProperty("--radix-popper-anchor-width",`${V}px`),ue.setProperty("--radix-popper-anchor-height",`${q}px`)}}),w&&Wf({element:w,padding:a}),Qf({arrowWidth:_,arrowHeight:O}),p&&Uf({strategy:"referenceHidden",...M})]}),[B,Q]=Yi(T),ee=Ze(v);ae(()=>{D&&ee?.()},[D,ee]);const ct=E.arrow?.x,lt=E.arrow?.y,Ne=E.arrow?.centerOffset!==0,[Ve,Fe]=h.useState();return ae(()=>{b&&Fe(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:D?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ve,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Xf,{scope:n,placedSide:B,onArrowChange:S,arrowX:ct,arrowY:lt,shouldHideArrow:Ne,children:l.jsx(Y.div,{"data-side":B,"data-align":Q,...$,ref:x,style:{...$.style,animation:D?void 0:"none"}})})})});Hi.displayName=vr;var Ki="PopperArrow",qf={top:"bottom",right:"left",bottom:"top",left:"right"},Xi=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Yf(Ki,r),s=qf[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(Gf,{...o,ref:n,style:{...o.style,display:"block"}})})});Xi.displayName=Ki;function Jf(e){return e!==null}var Qf=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,u]=Yi(n),f={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+d/2;let v="",$="";return c==="bottom"?(v=s?f:`${p}px`,$=`${-d}px`):c==="top"?(v=s?f:`${p}px`,$=`${r.floating.height+d}px`):c==="right"?(v=`${-d}px`,$=s?f:`${m}px`):c==="left"&&(v=`${r.floating.width+d}px`,$=s?f:`${m}px`),{data:{x:v,y:$}}}});function Yi(e){const[t,n="center"]=e.split("-");return[t,n]}var e2=Wi,t2=Gi,n2=Hi,r2=Xi,o2="Portal",qi=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=h.useState(!1);ae(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?jo.createPortal(l.jsx(Y.div,{...r,ref:t}),s):null});qi.displayName=o2;var i2=h[" useInsertionEffect ".trim().toString()]||ae;function Ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=s2({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=h.useCallback(u=>{if(a){const f=a2(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[d,c]}function s2({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return i2(()=>{i.current=t},[t]),h.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function a2(e){return typeof e=="function"}function d2(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ji=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),c2="VisuallyHidden",l2=h.forwardRef((e,t)=>l.jsx(Y.span,{...e,ref:t,style:{...Ji,...e.style}}));l2.displayName=c2;var u2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},He=new WeakMap,At=new WeakMap,It={},wn=0,Qi=function(e){return e&&(e.host||Qi(e.parentNode))},f2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$2=function(e,t,n,r){var o=f2(t,Array.isArray(e)?e:[e]);It[n]||(It[n]=new WeakMap);var i=It[n],s=[],a=new Set,d=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))u(p);else try{var m=p.getAttribute(r),v=m!==null&&m!=="false",$=(He.get(p)||0)+1,g=(i.get(p)||0)+1;He.set(p,$),i.set(p,g),s.push(p),$===1&&v&&At.set(p,!0),g===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return u(t),a.clear(),wn++,function(){s.forEach(function(f){var p=He.get(f)-1,m=i.get(f)-1;He.set(f,p),i.set(f,m),p||(At.has(f)||f.removeAttribute(r),At.delete(f)),m||f.removeAttribute(n)}),wn--,wn||(He=new WeakMap,He=new WeakMap,At=new WeakMap,It={})}},p2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=u2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$2(r,o,n,"aria-hidden")):function(){return null}},ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ge.apply(this,arguments)};function es(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function h2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jt="right-scroll-bar-position",Ft="width-before-scroll-bar",m2="with-scroll-bars-hidden",g2="--removed-body-scroll-bar-size";function Cn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function v2(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var b2=typeof window<"u"?h.useLayoutEffect:h.useEffect,Ao=new WeakMap;function y2(e,t){var n=v2(null,function(r){return e.forEach(function(o){return Cn(o,r)})});return b2(function(){var r=Ao.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Cn(a,null)}),i.forEach(function(a){o.has(a)||Cn(a,s)})}Ao.set(n,e)},[e]),n}function x2(e){return e}function w2(e,t){t===void 0&&(t=x2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return o}function C2(e){e===void 0&&(e={});var t=w2(null);return t.options=ge({async:!0,ssr:!1},e),t}var ts=function(e){var t=e.sideCar,n=es(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,ge({},n))};ts.isSideCarExport=!0;function S2(e,t){return e.useMedium(t),ts}var ns=C2(),Sn=function(){},sn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Sn,onWheelCapture:Sn,onTouchMoveCapture:Sn}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,v=e.noIsolation,$=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=es(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,P=y2([n,t]),_=ge(ge({},w),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:ns,removeScrollBar:c,shards:f,noRelative:m,noIsolation:v,inert:$,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),s?h.cloneElement(h.Children.only(a),ge(ge({},_),{ref:P})):h.createElement(y,ge({},_,{className:d,ref:P}),a))});sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sn.classNames={fullWidth:Ft,zeroRight:jt};var _2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function P2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_2();return t&&e.setAttribute("nonce",t),e}function N2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var R2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=P2())&&(N2(t,n),E2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A2=function(){var e=R2();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rs=function(){var e=A2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},I2={left:0,top:0,right:0,gap:0},_n=function(e){return parseInt(e||"",10)||0},O2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_n(n),_n(r),_n(o)]},T2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I2;var t=O2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k2=rs(),tt="data-scroll-locked",j2=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
6
- .`.concat(m2,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),te=require("react"),re=require("lucide-react"),pt=require("@radix-ui/react-slot"),Fo=require("react-dom"),ks=require("@radix-ui/react-switch");function Gn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=Gn(te),Gt=Gn(Fo),yr=Gn(ks);function Lo(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=Lo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Lo(e))&&(r&&(r+=" "),r+=t);return r}const Hn="-",js=e=>{const t=Ls(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Hn);return a[0]===""&&a.length!==1&&a.shift(),Do(a,t)||Fs(s)},getConflictingClassGroupIds:(s,a)=>{const d=n[s]||[];return a&&r[s]?[...d,...r[s]]:d}}},Do=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Do(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Hn);return t.validators.find(({validator:s})=>s(i))?.classGroupId},xr=/^\[(.+)\]$/,Fs=e=>{if(xr.test(e)){const t=xr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ls=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ds(Object.entries(e.classGroups),n).forEach(([i,s])=>{Pn(s,r,i,t)}),r},Pn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wr(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Ms(o)){Pn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Pn(s,wr(t,i),n,r)})})},wr=(e,t)=>{let n=e;return t.split(Hn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Ms=e=>e.isThemeGetter,Ds=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[n,o]}):e,zs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},zo="!",Zs=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=a=>{const d=[];let c=0,u=0,f;for(let g=0;g<a.length;g++){let b=a[g];if(c===0){if(b===o&&(r||a.slice(g,g+i)===t)){d.push(a.slice(u,g)),u=g+i;continue}if(b==="/"){f=g;continue}}b==="["?c++:b==="]"&&c--}const $=d.length===0?a:a.substring(u),m=$.startsWith(zo),v=m?$.substring(1):$,p=f&&f>u?f-u:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:s}):s},Bs=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Us=e=>({cache:zs(e.cacheSize),parseClassName:Zs(e),...js(e)}),Ws=/\s+/,Vs=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Ws);let a="";for(let d=s.length-1;d>=0;d-=1){const c=s[d],{modifiers:u,hasImportantModifier:f,baseClassName:$,maybePostfixModifierPosition:m}=n(c);let v=!!m,p=r(v?$.substring(0,m):$);if(!p){if(!v){a=c+(a.length>0?" "+a:a);continue}if(p=r($),!p){a=c+(a.length>0?" "+a:a);continue}v=!1}const g=Bs(u).join(":"),b=f?g+zo:g,y=b+p;if(i.includes(y))continue;i.push(y);const x=o(p,v);for(let w=0;w<x.length;++w){const S=x[w];i.push(b+S)}a=c+(a.length>0?" "+a:a)}return a};function Gs(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Zo(t))&&(r&&(r+=" "),r+=n);return r}const Zo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Zo(e[r]))&&(n&&(n+=" "),n+=t);return n};function Hs(e,...t){let n,r,o,i=s;function s(d){const c=t.reduce((u,f)=>f(u),e());return n=Us(c),r=n.cache.get,o=n.cache.set,i=a,a(d)}function a(d){const c=r(d);if(c)return c;const u=Vs(d,n);return o(d,u),u}return function(){return i(Gs.apply(null,arguments))}}const W=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Bo=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ks=/^\d+\/\d+$/,Xs=new Set(["px","full","screen"]),Ys=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qs=/\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$/,Js=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ea=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=e=>qe(e)||Xs.has(e)||Ks.test(e),Ee=e=>ot(e,"length",da),qe=e=>!!e&&!Number.isNaN(Number(e)),$n=e=>ot(e,"number",qe),ut=e=>!!e&&Number.isInteger(Number(e)),ta=e=>e.endsWith("%")&&qe(e.slice(0,-1)),k=e=>Bo.test(e),Re=e=>Ys.test(e),na=new Set(["length","size","percentage"]),ra=e=>ot(e,na,Uo),oa=e=>ot(e,"position",Uo),ia=new Set(["image","url"]),sa=e=>ot(e,ia,la),aa=e=>ot(e,"",ca),ft=()=>!0,ot=(e,t,n)=>{const r=Bo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},da=e=>qs.test(e)&&!Js.test(e),Uo=()=>!1,ca=e=>Qs.test(e),la=e=>ea.test(e),ua=()=>{const e=W("colors"),t=W("spacing"),n=W("blur"),r=W("brightness"),o=W("borderColor"),i=W("borderRadius"),s=W("borderSpacing"),a=W("borderWidth"),d=W("contrast"),c=W("grayscale"),u=W("hueRotate"),f=W("invert"),$=W("gap"),m=W("gradientColorStops"),v=W("gradientColorStopPositions"),p=W("inset"),g=W("margin"),b=W("opacity"),y=W("padding"),x=W("saturate"),w=W("scale"),S=W("sepia"),P=W("skew"),_=W("space"),O=W("translate"),L=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",k,t],N=()=>[k,t],M=()=>["",Ce,Ee],I=()=>["auto",qe,k],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",k],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[qe,k];return{cacheSize:500,separator:":",theme:{colors:[ft],spacing:[Ce,Ee],blur:["none","",Re,k],brightness:ee(),borderColor:[e],borderRadius:["none","","full",Re,k],borderSpacing:N(),borderWidth:M(),contrast:ee(),grayscale:B(),hueRotate:ee(),invert:B(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ta,Ee],inset:z(),margin:z(),opacity:ee(),padding:N(),saturate:ee(),scale:ee(),sepia:B(),skew:ee(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[Re]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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"],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:[...Z(),k]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ut,k]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ut,k]}],"grid-cols":[{"grid-cols":[ft]}],"col-start-end":[{col:["auto",{span:["full",ut,k]},k]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ft]}],"row-start-end":[{row:["auto",{span:[ut,k]},k]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[Re]},Re]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Re,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$n]}],"font-family":[{font:[ft]}],"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:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",qe,$n]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ce,Ee]}],"underline-offset":[{"underline-offset":["auto",Ce,k]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),oa]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ra]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:T()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[Ce,k]}],"outline-w":[{outline:[Ce,Ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Ce,Ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Re,aa]}],"shadow-color":[{shadow:[ft]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Re,k]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ut,k]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ce,Ee,$n]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},fa=Hs(ua);function A(...e){return fa(Mo(e))}const Wo=h.forwardRef(({title:e,description:t,icon:n,action:r,onClick:o,className:i,...s},a)=>l.jsxs("div",{ref:a,onClick:o,className:A("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",o&&"cursor-pointer hover:shadow-md transition-shadow",i),style:{width:"350px"},...s,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:n}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-semibold text-[#312e4d] capitalize",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),r&&l.jsx("button",{onClick:d=>{d.stopPropagation(),r.onClick()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline self-start",style:{fontFamily:"Causten Round, sans-serif"},children:r.label})]})]}));Wo.displayName="ActionCard";const Vo=h.forwardRef(({variant:e="information",title:t,description:n,icon:r,className:o,...i},s)=>{const d={warning:{container:"bg-[#fff3e8]",text:"text-[#d48620]",icon:l.jsx(re.AlertTriangle,{size:24,className:"text-[#d48620]"})},information:{container:"bg-[#e3f2ff]",text:"text-[#4087fb]",icon:l.jsx(re.Info,{size:24,className:"text-[#4087fb]"})},grey:{container:"bg-[#f4f4f4]",text:"text-[#6e6f6e]",icon:l.jsx(re.Info,{size:24,className:"text-[#202020]"})}}[e],c=r||d.icon;return l.jsxs("div",{ref:s,className:A("flex items-center gap-3 p-4 rounded-lg",d.container,d.text,o),role:"alert","aria-live":"polite",...i,children:[l.jsx("div",{className:"flex-shrink-0",children:c}),l.jsxs("div",{className:"flex flex-col gap-0 flex-1 min-w-0",children:[l.jsx("div",{className:"font-semibold text-sm leading-[18px]",children:t}),l.jsx("div",{className:"font-normal text-sm leading-[18px]",children:n})]})]})});Vo.displayName="BannerAlerts";const Cr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sr=Mo,$a=(e,t)=>n=>{var r;if(t?.variants==null)return Sr(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const u=n?.[c],f=i?.[c];if(u===null)return null;const $=Cr(u)||Cr(f);return o[c][$]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,$]=u;return $===void 0||(c[f]=$),c},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:$,...m}=u;return Object.entries(m).every(v=>{let[p,g]=v;return Array.isArray(g)?g.includes({...i,...a}[p]):{...i,...a}[p]===g})?[...c,f,$]:c},[]);return Sr(e,s,d,n?.class,n?.className)},Nn=$a("inline-flex items-center justify-center gap-2 rounded font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-[#00b56b] text-white border border-[#00b56b] hover:bg-[#00995a] hover:border-[#00995a] active:bg-[#007a48] active:border-[#007a48] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",secondary:"bg-transparent text-[#312e4d] border border-[#00b56b] hover:bg-[#e6f8ef] hover:border-[#00995a] active:bg-[#00b56b]/10 active:border-[#007a48] disabled:bg-transparent disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",alert:"bg-[#ff305f] text-white border border-[#a80023] hover:bg-[#d4002c] hover:border-[#a80023] active:bg-[#a80023] active:border-[#a80023] disabled:bg-[#e0e0e0] disabled:border-[#e0e0e0] disabled:text-[#9e9e9e]",ghost:"bg-transparent text-[#00995a] border-0 hover:bg-[#e6f8ef] hover:text-[#00995a] active:bg-[#00b56b]/10 active:text-[#007a48] disabled:bg-transparent disabled:text-[#9e9e9e]",plain:"bg-transparent text-[#00995a] border-0 p-0 h-auto hover:text-[#00995a] hover:underline active:text-[#007a48] disabled:text-[#9e9e9e] disabled:no-underline"},size:{small:"h-8 px-3 py-2 text-sm",medium:"h-9 px-4 py-2 text-sm",large:"h-11 px-5 py-2.5 text-base"},iconOnly:{true:"aspect-square"}},compoundVariants:[{size:"small",iconOnly:!0,className:"h-8 w-8 p-0"},{size:"medium",iconOnly:!0,className:"h-10 w-10 p-0"},{size:"large",iconOnly:!0,className:"h-11 w-11 p-0"},{variant:"plain",size:"small",className:"h-auto px-0 py-0"},{variant:"plain",size:"medium",className:"h-auto px-0 py-0"},{variant:"plain",size:"large",className:"h-auto px-0 py-0"}],defaultVariants:{variant:"primary",size:"medium",iconOnly:!1}}),Kn=h.forwardRef(({className:e,variant:t,size:n,iconOnly:r,asChild:o=!1,leftIcon:i,rightIcon:s,children:a,...d},c)=>{const u=o?pt.Slot:"button";return o?l.jsx(u,{className:A(Nn({variant:t,size:n,iconOnly:r,className:e})),ref:c,...d,children:a}):l.jsxs(u,{className:A(Nn({variant:t,size:n,iconOnly:r,className:e})),ref:c,...d,children:[i&&!r&&l.jsx("span",{className:"inline-flex shrink-0",children:i}),r&&i||a,s&&!r&&l.jsx("span",{className:"inline-flex shrink-0",children:s})]})});Kn.displayName="Button";const Me={largeDark:"https://www.figma.com/api/mcp/asset/4d8371e7-dff3-4ec8-bbce-b93185151f4c",largeLight:"https://www.figma.com/api/mcp/asset/8a7267d5-2fb8-494e-a13a-3795b42fde22",smallDark:"https://www.figma.com/api/mcp/asset/9d2e5067-f587-40b6-b0a5-5ce6da0aad4c",smallLight:"https://www.figma.com/api/mcp/asset/f01bbe9b-2dae-44fe-892f-97ff47e10e8e",gradientLarge:"https://www.figma.com/api/mcp/asset/972e7e1a-3343-4868-9c4d-97d6dfce3ce8"},Go=h.forwardRef(({size:e="large",mode:t="dark",gradient:n=!1,className:r,alt:o="Chiperos Logo",...i},s)=>{const a=()=>n&&e==="large"?Me.gradientLarge:e==="large"&&t==="dark"?Me.largeDark:e==="large"&&t==="light"?Me.largeLight:e==="small"&&t==="dark"?Me.smallDark:e==="small"&&t==="light"?Me.smallLight:Me.largeDark,d={large:{width:143,height:32},small:{width:40,height:32}},{width:c,height:u}=d[e];return l.jsx("img",{ref:s,src:a(),alt:o,width:c,height:u,className:A("inline-block",r),...i})});Go.displayName="BrandIcons";const Ho=h.forwardRef(({columns:e,gap:t=4,tabletColumns:n,mobileColumns:r=1,children:o,className:i,style:s,...a},d)=>{const c=()=>typeof t=="number"?`gap-${t}`:"",u=()=>{const $=[];return $.push(`grid-cols-${r}`),n&&$.push(`md:grid-cols-${n}`),$.push(`lg:grid-cols-${e}`),$.join(" ")},f=typeof t=="string"?{gap:t,...s}:s;return l.jsx("div",{ref:d,className:A("grid w-full",c(),u(),i),style:f,...a,children:h.Children.map(o,$=>h.isValidElement($)?h.cloneElement($,{...$.props,className:A("w-full",$.props.className)}):$)})});Ho.displayName="CardsGrid";const Ko=h.forwardRef(({title:e,description:t,icon:n,iconBackground:r="#e6f8ef",onClick:o,className:i,...s},a)=>l.jsxs("div",{ref:a,onClick:o,className:A("bg-white border border-[#ecebf0] rounded-lg p-8 flex flex-col items-center gap-8 w-96",o&&"cursor-pointer hover:shadow-md transition-shadow",i),...s,children:[l.jsx("div",{className:"flex items-center justify-center rounded-lg shrink-0",style:{width:"56px",height:"56px",backgroundColor:r},children:n}),l.jsxs("div",{className:"flex flex-col gap-2 items-center text-center",style:{width:"300px"},children:[l.jsx("h3",{className:"text-2xl leading-8 font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsx("p",{className:"text-base leading-5 font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})]})]}));Ko.displayName="FeatureCard";function C(e,t,n){function r(a,d){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,d);const c=s.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const $=u[f];$ in a||(a[$]=c[$].bind(a))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var d;const c=n?.Parent?new i:this;r(c,a),(d=c._zod).deferred??(d.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class Je extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Xo extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const pa={};function De(e){return pa}function En(e,t){return typeof t=="bigint"?t.toString():t}function Xn(e){return e==null}function Yn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const _r=Symbol("evaluating");function G(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==_r)return r===void 0&&(r=_r,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function ha(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function ma(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Yo="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Rn(e){if(Pr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Pr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function qo(e){return Rn(e)?{...e}:Array.isArray(e)?[...e]:e}function qn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ga(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function j(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(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 Ye(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function va(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function St(e){return typeof e=="string"?e:e?.message}function ze(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=St(e.inst?._zod.def?.error?.(e))??St(t?.error?.(e))??St(n.customError?.(e))??St(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Jn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ht(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Jo=(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,En,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Qo=C("$ZodError",Jo),ei=C("$ZodError",Jo,{Parent:Error});function ba(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 ya(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>r({issues:s}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let s=n,a=0;for(;a<i.path.length;){const d=i.path[a];a===i.path.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(i))):s[d]=s[d]||{_errors:[]},s=s[d],a++}}};return r(e),n}const Qn=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new Je;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>ze(d,i,De())));throw Yo(a,o?.callee),a}return s.value},er=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(d=>ze(d,i,De())));throw Yo(a,o?.callee),a}return s.value},Ht=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 Je;return i.issues.length?{success:!1,error:new(e??Qo)(i.issues.map(s=>ze(s,o,De())))}:{success:!0,data:i.value}},xa=Ht(ei),Kt=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(s=>ze(s,o,De())))}:{success:!0,data:i.value}},wa=Kt(ei),Ca=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Qn(e)(t,n,o)},Sa=e=>(t,n,r)=>Qn(e)(t,n,r),_a=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return er(e)(t,n,o)},Pa=e=>async(t,n,r)=>er(e)(t,n,r),Na=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ht(e)(t,n,o)},Ea=e=>(t,n,r)=>Ht(e)(t,n,r),Ra=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Kt(e)(t,n,o)},Aa=e=>async(t,n,r)=>Kt(e)(t,n,r),Ia=/^[cC][^\s-]{8,}$/,Oa=/^[0-9a-z]+$/,Ta=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ka=/^[0-9a-vA-V]{20}$/,ja=/^[A-Za-z0-9]{27}$/,Fa=/^[a-zA-Z0-9_-]{21}$/,La=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ma=/^([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})$/,Nr=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)$/,Da=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,za="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Za(){return new RegExp(za,"u")}const Ba=/^(?:(?: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])$/,Ua=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Wa=/^((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])$/,Va=/^(([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])$/,Ga=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ti=/^[A-Za-z0-9_-]*$/,Ha=/^\+(?:[0-9]){6,14}[0-9]$/,ni="(?:(?:\\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])))",Ka=new RegExp(`^${ni}$`);function ri(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 Xa(e){return new RegExp(`^${ri(e)}$`)}function Ya(e){const t=ri({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(`^${ni}T(?:${r})$`)}const qa=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ja=/^[^A-Z]*$/,Qa=/^[^a-z]*$/,xe=C("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ed=C("$ZodCheckMaxLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(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 s=Jn(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),td=C("$ZodCheckMinLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(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 s=Jn(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),nd=C("$ZodCheckLengthEquals",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Xn(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 s=Jn(o),a=i>t.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Xt=C("$ZodCheckStringFormat",(e,t)=>{var n,r;xe.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=()=>{})}),rd=C("$ZodCheckRegex",(e,t)=>{Xt.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})}}),od=C("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ja),Xt.init(e,t)}),id=C("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Qa),Xt.init(e,t)}),sd=C("$ZodCheckIncludes",(e,t)=>{xe.init(e,t);const n=qn(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})}}),ad=C("$ZodCheckStartsWith",(e,t)=>{xe.init(e,t);const n=new RegExp(`^${qn(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})}}),dd=C("$ZodCheckEndsWith",(e,t)=>{xe.init(e,t);const n=new RegExp(`.*${qn(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})}}),cd=C("$ZodCheckOverwrite",(e,t)=>{xe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),ld={major:4,minor:1,patch:13},se=C("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ld;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,d)=>{let c=Ye(s),u;for(const f of a){if(f._zod.def.when){if(!f._zod.def.when(s))continue}else if(c)continue;const $=s.issues.length,m=f._zod.check(s);if(m instanceof Promise&&d?.async===!1)throw new Je;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,s.issues.length!==$&&(c||(c=Ye(s,$)))});else{if(s.issues.length===$)continue;c||(c=Ye(s,$))}}return u?u.then(()=>s):s},i=(s,a,d)=>{if(Ye(s))return s.aborted=!0,s;const c=o(a,r,d);if(c instanceof Promise){if(d.async===!1)throw new Je;return c.then(u=>e._zod.parse(u,d))}return e._zod.parse(c,d)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,a)):i(c,s,a)}const d=e._zod.parse(s,a);if(d instanceof Promise){if(a.async===!1)throw new Je;return d.then(c=>o(c,r,a))}return o(d,r,a)}}e["~standard"]={validate:o=>{try{const i=xa(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return wa(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),tr=C("$ZodString",(e,t)=>{se.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??qa(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),H=C("$ZodStringFormat",(e,t)=>{Xt.init(e,t),tr.init(e,t)}),ud=C("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ma),H.init(e,t)}),fd=C("$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=Nr(r))}else t.pattern??(t.pattern=Nr());H.init(e,t)}),$d=C("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Da),H.init(e,t)}),pd=C("$ZodURL",(e,t)=>{H.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:t.hostname.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})}}}),hd=C("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Za()),H.init(e,t)}),md=C("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Fa),H.init(e,t)}),gd=C("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ia),H.init(e,t)}),vd=C("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Oa),H.init(e,t)}),bd=C("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ta),H.init(e,t)}),yd=C("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ka),H.init(e,t)}),xd=C("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ja),H.init(e,t)}),wd=C("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ya(t)),H.init(e,t)}),Cd=C("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ka),H.init(e,t)}),Sd=C("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Xa(t)),H.init(e,t)}),_d=C("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=La),H.init(e,t)}),Pd=C("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ba),H.init(e,t),e._zod.bag.format="ipv4"}),Nd=C("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ua),H.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Ed=C("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Wa),H.init(e,t)}),Rd=C("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Va),H.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function oi(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Ad=C("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ga),H.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{oi(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Id(e){if(!ti.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return oi(n)}const Od=C("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ti),H.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Id(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Td=C("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ha),H.init(e,t)});function kd(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?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const jd=C("$ZodJWT",(e,t)=>{H.init(e,t),e._zod.check=n=>{kd(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}});function Er(e,t,n){e.issues.length&&t.issues.push(...va(n,e.issues)),t.value[n]=e.value}const Fd=C("$ZodArray",(e,t)=>{se.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 s=0;s<o.length;s++){const a=o[s],d=t.element._zod.run({value:a,issues:[]},r);d instanceof Promise?i.push(d.then(c=>Er(c,n,s))):Er(d,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Rr(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=>!Ye(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(s=>ze(s,r,De())))}),t)}const Ld=C("$ZodUnion",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),G(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),G(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),G(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=>Yn(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 s=!1;const a=[];for(const d of t.options){const c=d._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(d=>Rr(d,o,e,i)):Rr(a,o,e,i)}}),Md=C("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([d,c])=>Ar(n,d,c)):Ar(n,i,s)}});function An(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(Rn(e)&&Rn(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 s=An(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 n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],s=An(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ar(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Ye(e))return e;const r=An(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 Dd=C("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Xo(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new Je;return n.value=o,n}});function Ir(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const zd=C("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",G(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),G(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yn(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=>Ir(i,n.value)):Ir(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Zd=C("$ZodNullable",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yn(n.source)}|null)$`):void 0}),G(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)}),Bd=C("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",G(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=>Or(i,t)):Or(o,t)}});function Or(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Ud=C("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",G(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))}),Wd=C("$ZodNonOptional",(e,t)=>{se.init(e,t),G(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=>Tr(i,e)):Tr(o,e)}});function Tr(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 Vd=C("$ZodCatch",(e,t)=>{se.init(e,t),G(e._zod,"optin",()=>t.innerType._zod.optin),G(e._zod,"optout",()=>t.innerType._zod.optout),G(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(s=>ze(s,r,De()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>ze(i,r,De()))},input:n.value}),n.issues=[]),n)}}),Gd=C("$ZodPipe",(e,t)=>{se.init(e,t),G(e._zod,"values",()=>t.in._zod.values),G(e._zod,"optin",()=>t.in._zod.optin),G(e._zod,"optout",()=>t.out._zod.optout),G(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(s=>_t(s,t.in,r)):_t(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>_t(i,t.out,r)):_t(o,t.out,r)}});function _t(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Hd=C("$ZodReadonly",(e,t)=>{se.init(e,t),G(e._zod,"propValues",()=>t.innerType._zod.propValues),G(e._zod,"values",()=>t.innerType._zod.values),G(e._zod,"optin",()=>t.innerType?._zod?.optin),G(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(kr):kr(o)}});function kr(e){return e.value=Object.freeze(e.value),e}const Kd=C("$ZodCustom",(e,t)=>{xe.init(e,t),se.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(ht(o))}}var Fr;class Xd{constructor(){this._map=new WeakMap,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 WeakMap,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 Yd(){return new Xd}(Fr=globalThis).__zod_globalRegistry??(Fr.__zod_globalRegistry=Yd());const Pt=globalThis.__zod_globalRegistry;function qd(e,t){return new e({type:"string",...j(t)})}function Jd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Lr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function Qd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function tc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function nc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function rc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function oc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function ic(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function sc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function ac(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function dc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function cc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function lc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function uc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function fc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function $c(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function pc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function hc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function mc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function gc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function vc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}function bc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function yc(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function xc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function wc(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function ii(e,t){return new ed({check:"max_length",...j(t),maximum:e})}function Lt(e,t){return new td({check:"min_length",...j(t),minimum:e})}function si(e,t){return new nd({check:"length_equals",...j(t),length:e})}function Cc(e,t){return new rd({check:"string_format",format:"regex",...j(t),pattern:e})}function Sc(e){return new od({check:"string_format",format:"lowercase",...j(e)})}function _c(e){return new id({check:"string_format",format:"uppercase",...j(e)})}function Pc(e,t){return new sd({check:"string_format",format:"includes",...j(t),includes:e})}function Nc(e,t){return new ad({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Ec(e,t){return new dd({check:"string_format",format:"ends_with",...j(t),suffix:e})}function it(e){return new cd({check:"overwrite",tx:e})}function Rc(e){return it(t=>t.normalize(e))}function Ac(){return it(e=>e.trim())}function Ic(){return it(e=>e.toLowerCase())}function Oc(){return it(e=>e.toUpperCase())}function Tc(){return it(e=>ma(e))}function kc(e,t,n){return new e({type:"array",element:t,...j(n)})}function jc(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function Fc(e){const t=Lc(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ht(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(ht(o))}},e(n.value,n)));return t}function Lc(e,t){const n=new xe({check:"custom",...j(t)});return n._zod.check=e,n}const Mc=C("ZodISODateTime",(e,t)=>{wd.init(e,t),K.init(e,t)});function Dc(e){return bc(Mc,e)}const zc=C("ZodISODate",(e,t)=>{Cd.init(e,t),K.init(e,t)});function Zc(e){return yc(zc,e)}const Bc=C("ZodISOTime",(e,t)=>{Sd.init(e,t),K.init(e,t)});function Uc(e){return xc(Bc,e)}const Wc=C("ZodISODuration",(e,t)=>{_d.init(e,t),K.init(e,t)});function Vc(e){return wc(Wc,e)}const Gc=(e,t)=>{Qo.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ya(e,n)},flatten:{value:n=>ba(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,En,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,En,2)}},isEmpty:{get(){return e.issues.length===0}}})},fe=C("ZodError",Gc,{Parent:Error}),Hc=Qn(fe),Kc=er(fe),Xc=Ht(fe),Yc=Kt(fe),qc=Ca(fe),Jc=Sa(fe),Qc=_a(fe),el=Pa(fe),tl=Na(fe),nl=Ea(fe),rl=Ra(fe),ol=Aa(fe),de=C("ZodType",(e,t)=>(se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ha(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>ga(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Hc(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Xc(e,n,r),e.parseAsync=async(n,r)=>Kc(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Yc(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>qc(e,n,r),e.decode=(n,r)=>Jc(e,n,r),e.encodeAsync=async(n,r)=>Qc(e,n,r),e.decodeAsync=async(n,r)=>el(e,n,r),e.safeEncode=(n,r)=>tl(e,n,r),e.safeDecode=(n,r)=>nl(e,n,r),e.safeEncodeAsync=async(n,r)=>rl(e,n,r),e.safeDecodeAsync=async(n,r)=>ol(e,n,r),e.refine=(n,r)=>e.check(Vl(n,r)),e.superRefine=n=>e.check(Gl(n)),e.overwrite=n=>e.check(it(n)),e.optional=()=>Dr(e),e.nullable=()=>zr(e),e.nullish=()=>Dr(zr(e)),e.nonoptional=n=>Ml(e,n),e.array=()=>Sl(e),e.or=n=>Pl([e,n]),e.and=n=>El(e,n),e.transform=n=>Zr(e,Al(n)),e.default=n=>kl(e,n),e.prefault=n=>Fl(e,n),e.catch=n=>zl(e,n),e.pipe=n=>Zr(e,n),e.readonly=()=>Ul(e),e.describe=n=>{const r=e.clone();return Pt.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Pt.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Pt.get(e);const r=e.clone();return Pt.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ai=C("_ZodString",(e,t)=>{tr.init(e,t),de.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(Cc(...r)),e.includes=(...r)=>e.check(Pc(...r)),e.startsWith=(...r)=>e.check(Nc(...r)),e.endsWith=(...r)=>e.check(Ec(...r)),e.min=(...r)=>e.check(Lt(...r)),e.max=(...r)=>e.check(ii(...r)),e.length=(...r)=>e.check(si(...r)),e.nonempty=(...r)=>e.check(Lt(1,...r)),e.lowercase=r=>e.check(Sc(r)),e.uppercase=r=>e.check(_c(r)),e.trim=()=>e.check(Ac()),e.normalize=(...r)=>e.check(Rc(...r)),e.toLowerCase=()=>e.check(Ic()),e.toUpperCase=()=>e.check(Oc()),e.slugify=()=>e.check(Tc())}),il=C("ZodString",(e,t)=>{tr.init(e,t),ai.init(e,t),e.email=n=>e.check(Jd(sl,n)),e.url=n=>e.check(rc(al,n)),e.jwt=n=>e.check(vc(wl,n)),e.emoji=n=>e.check(oc(dl,n)),e.guid=n=>e.check(Lr(Mr,n)),e.uuid=n=>e.check(Qd(Et,n)),e.uuidv4=n=>e.check(ec(Et,n)),e.uuidv6=n=>e.check(tc(Et,n)),e.uuidv7=n=>e.check(nc(Et,n)),e.nanoid=n=>e.check(ic(cl,n)),e.guid=n=>e.check(Lr(Mr,n)),e.cuid=n=>e.check(sc(ll,n)),e.cuid2=n=>e.check(ac(ul,n)),e.ulid=n=>e.check(dc(fl,n)),e.base64=n=>e.check(hc(bl,n)),e.base64url=n=>e.check(mc(yl,n)),e.xid=n=>e.check(cc($l,n)),e.ksuid=n=>e.check(lc(pl,n)),e.ipv4=n=>e.check(uc(hl,n)),e.ipv6=n=>e.check(fc(ml,n)),e.cidrv4=n=>e.check($c(gl,n)),e.cidrv6=n=>e.check(pc(vl,n)),e.e164=n=>e.check(gc(xl,n)),e.datetime=n=>e.check(Dc(n)),e.date=n=>e.check(Zc(n)),e.time=n=>e.check(Uc(n)),e.duration=n=>e.check(Vc(n))});function Nt(e){return qd(il,e)}const K=C("ZodStringFormat",(e,t)=>{H.init(e,t),ai.init(e,t)}),sl=C("ZodEmail",(e,t)=>{$d.init(e,t),K.init(e,t)}),Mr=C("ZodGUID",(e,t)=>{ud.init(e,t),K.init(e,t)}),Et=C("ZodUUID",(e,t)=>{fd.init(e,t),K.init(e,t)}),al=C("ZodURL",(e,t)=>{pd.init(e,t),K.init(e,t)}),dl=C("ZodEmoji",(e,t)=>{hd.init(e,t),K.init(e,t)}),cl=C("ZodNanoID",(e,t)=>{md.init(e,t),K.init(e,t)}),ll=C("ZodCUID",(e,t)=>{gd.init(e,t),K.init(e,t)}),ul=C("ZodCUID2",(e,t)=>{vd.init(e,t),K.init(e,t)}),fl=C("ZodULID",(e,t)=>{bd.init(e,t),K.init(e,t)}),$l=C("ZodXID",(e,t)=>{yd.init(e,t),K.init(e,t)}),pl=C("ZodKSUID",(e,t)=>{xd.init(e,t),K.init(e,t)}),hl=C("ZodIPv4",(e,t)=>{Pd.init(e,t),K.init(e,t)}),ml=C("ZodIPv6",(e,t)=>{Nd.init(e,t),K.init(e,t)}),gl=C("ZodCIDRv4",(e,t)=>{Ed.init(e,t),K.init(e,t)}),vl=C("ZodCIDRv6",(e,t)=>{Rd.init(e,t),K.init(e,t)}),bl=C("ZodBase64",(e,t)=>{Ad.init(e,t),K.init(e,t)}),yl=C("ZodBase64URL",(e,t)=>{Od.init(e,t),K.init(e,t)}),xl=C("ZodE164",(e,t)=>{Td.init(e,t),K.init(e,t)}),wl=C("ZodJWT",(e,t)=>{jd.init(e,t),K.init(e,t)}),Cl=C("ZodArray",(e,t)=>{Fd.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Lt(n,r)),e.nonempty=n=>e.check(Lt(1,n)),e.max=(n,r)=>e.check(ii(n,r)),e.length=(n,r)=>e.check(si(n,r)),e.unwrap=()=>e.element});function Sl(e,t){return kc(Cl,e,t)}const _l=C("ZodUnion",(e,t)=>{Ld.init(e,t),de.init(e,t),e.options=t.options});function Pl(e,t){return new _l({type:"union",options:e,...j(t)})}const Nl=C("ZodIntersection",(e,t)=>{Md.init(e,t),de.init(e,t)});function El(e,t){return new Nl({type:"intersection",left:e,right:t})}const Rl=C("ZodTransform",(e,t)=>{Dd.init(e,t),de.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Xo(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ht(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ht(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Al(e){return new Rl({type:"transform",transform:e})}const Il=C("ZodOptional",(e,t)=>{zd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dr(e){return new Il({type:"optional",innerType:e})}const Ol=C("ZodNullable",(e,t)=>{Zd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zr(e){return new Ol({type:"nullable",innerType:e})}const Tl=C("ZodDefault",(e,t)=>{Bd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kl(e,t){return new Tl({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():qo(t)}})}const jl=C("ZodPrefault",(e,t)=>{Ud.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Fl(e,t){return new jl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():qo(t)}})}const Ll=C("ZodNonOptional",(e,t)=>{Wd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ml(e,t){return new Ll({type:"nonoptional",innerType:e,...j(t)})}const Dl=C("ZodCatch",(e,t)=>{Vd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function zl(e,t){return new Dl({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Zl=C("ZodPipe",(e,t)=>{Gd.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function Zr(e,t){return new Zl({type:"pipe",in:e,out:t})}const Bl=C("ZodReadonly",(e,t)=>{Hd.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ul(e){return new Bl({type:"readonly",innerType:e})}const Wl=C("ZodCustom",(e,t)=>{Kd.init(e,t),de.init(e,t)});function Vl(e,t={}){return jc(Wl,e,t)}function Gl(e){return Fc(e)}const Hl={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Kl(e,t){var n=Array.prototype.slice.call(t);return n.push(Hl),e.apply(this,n)}function Br(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),o=0;o<3;o++){var i=Number(n[o]),s=Number(r[o]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Xl={}.constructor;function Qe(e){return e!=null&&e.constructor===Xl}function nt(e){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ql(r.key),r)}}function qt(e,t,n){return t&&Yl(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ql(e){var t=Jl(e,"string");return nt(t)=="symbol"?t:t+""}function Jl(e,t){if(nt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ql="1.2.0",eu="1.7.35",Ur=" ext. ",tu=/^\d+$/,oe=(function(){function e(t){Yt(this,e),di(t),this.metadata=t,ci.call(this,t)}return qt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&tu.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Wr(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Wr(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var o=this.nonGeographic()[n];if(o)return o}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Wr=(function(){function e(t,n){Yt(this,e),this.globalMetadataObject=n,this.metadata=t,ci.call(this,n.metadata)}return qt(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(o){return new nu(o,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Vr(this.types(),n))return new ou(Vr(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ur:this.metadata[13]||Ur}}])})(),nu=(function(){function e(t,n){Yt(this,e),this._format=t,this.metadata=n}return qt(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!ru.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),ru=/^\(?\$1\)?$/,ou=(function(){function e(t,n){Yt(this,e),this.type=t,this.metadata=n}return qt(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Vr(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function di(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Qe(e)||!Qe(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Qe(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+iu(e)+": "+e,"."))}var iu=function(t){return nt(t)};function nr(e,t){if(t=new oe(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function ci(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Br(t,Ql)===-1?this.v2=!0:Br(t,eu)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function rr(e,t,n){return su(e,t,void 0,n)}function su(e,t,n,r){t&&(r=new oe(r.metadata),r.selectNumberingPlan(t));var o=r.type(n),i=o&&o.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var s=e.length,a=i[0];return a===s?"IS_POSSIBLE":a>s?"TOO_SHORT":i[i.length-1]<s?"TOO_LONG":i.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function au(e,t,n){if(t===void 0&&(t={}),n=new oe(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return li(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function li(e,t,n){switch(rr(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Se(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function du(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=cu(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cu(e,t){if(e){if(typeof e=="string")return Gr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gr(e,t):void 0}}function Gr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lu=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function or(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new oe(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Se(r,n.nationalNumberPattern())){if(pn(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||pn(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o=du(lu),i;!(i=o()).done;){var s=i.value;if(pn(r,s,n))return s}}}}function pn(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:Se(e,t.pattern())}function uu(e,t,n){if(t=t||{},n=new oe(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return or(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return Se(r,n.nationalNumberPattern())}function fu(e,t,n){var r=new oe(n),o=r.getCountryCodesForCallingCode(e);return o?o.filter(function(i){return $u(t,i,n)}):[]}function $u(e,t,n){var r=new oe(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ir=2,pu=17,hu=3,pe="0-90-9٠-٩۰-۹",mu="-‐-―−ー-",gu="//",vu="..",bu="  ­​⁠ ",yu="()()[]\\[\\]",xu="~⁓∼~",Mt="".concat(mu).concat(gu).concat(vu).concat(bu).concat(yu).concat(xu),sr="++",wu=new RegExp("(["+pe+"])");function Cu(e,t,n,r){if(t){var o=new oe(r);o.selectNumberingPlan(t,n);var i=new RegExp(o.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(wu);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function Su(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var o,i,s=r.length-1,a=s>0&&r[s];if(t.nationalPrefixTransformRule()&&a)o=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var d=r[0];o=e.slice(d.length),a&&(i=r[1])}var c;if(a){var u=e.indexOf(r[1]),f=e.slice(0,u);f===t.numberingPlan.nationalPrefix()&&(c=t.numberingPlan.nationalPrefix())}else c=r[0];return{nationalNumber:o,nationalPrefix:c,carrierCode:i}}}return{nationalNumber:e}}function _u(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Pu(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pu(e,t){if(e){if(typeof e=="string")return Hr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hr(e,t):void 0}}function Hr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nu(e,t){var n=t.countries,r=t.metadata;r=new oe(r);for(var o=_u(n),i;!(i=o()).done;){var s=i.value;if(r.selectNumberingPlan(s),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return s}else if(or({phone:e,country:s},void 0,r.metadata))return s}}function ui(e,t){var n=t.nationalNumber,r=t.metadata,o=r.getCountryCodesForCallingCode(e);if(o)return o.length===1?o[0]:Nu(n,{countries:o,metadata:r.metadata})}function In(e,t,n){var r=Su(e,n),o=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!Eu(e,i,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=ui(n.numberingPlan.callingCode(),{nationalNumber:i,metadata:n})),!Ru(i,t,n)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:o}}function Eu(e,t,n){return!(Se(e,n.nationalNumberPattern())&&!Se(t,n.nationalNumberPattern()))}function Ru(e,t,n){switch(rr(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Au(e,t,n,r,o){var i=n?nr(n,o):r;if(e.indexOf(i)===0){o=new oe(o),o.selectNumberingPlan(n,i);var s=e.slice(i.length),a=In(s,t,o),d=a.nationalNumber,c=In(e,t,o),u=c.nationalNumber;if(!Se(u,o.nationalNumberPattern())&&Se(d,o.nationalNumberPattern())||rr(u,t,o)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:e}}function fi(e,t,n,r,o){if(!e)return{};var i;if(e[0]!=="+"){var s=Cu(e,n,r,o);if(s&&s!==e)i=!0,e="+"+s;else{if(n||r){var a=Au(e,t,n,r,o),d=a.countryCallingCode,c=a.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:c}}return{number:e}}}if(e[1]==="0")return{};o=new oe(o);for(var u=2;u-1<=hu&&u<=e.length;){var f=e.slice(1,u);if(o.hasCallingCode(f))return o.selectNumberingPlan(f),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(u)};u++}return{}}function Iu(e){return e.replace(new RegExp("[".concat(Mt,"]+"),"g")," ").trim()}var Ou=/(\$\d)/;function Tu(e,t,n){var r=n.useInternationalFormat,o=n.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(Ou,t.nationalPrefixFormattingRule()):t.format());return r?Iu(i):i}var ku=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ju(e,t,n){var r=new oe(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(ku.test(r.IDDPrefix()))return r.IDDPrefix()}var Fu=";ext=",Ge=function(t){return"([".concat(pe,"]{1,").concat(t,"})")};function $i(e){var t="20",n="15",r="9",o="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",a="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",c="(?:[xx##~~]|int|int)",u="[- ]+",f="[  \\t]*",$="(?:,{2}|;)",m=Fu+Ge(t),v=i+d+s+Ge(t)+a,p=i+c+s+Ge(r)+a,g=u+Ge(o)+"#",b=f+$+s+Ge(n)+a,y=f+"(?:,)+"+s+Ge(r)+a;return m+"|"+v+"|"+p+"|"+g+"|"+b+"|"+y}var Lu="["+pe+"]{"+ir+"}",Mu="["+sr+"]{0,1}(?:["+Mt+"]*["+pe+"]){3,}["+Mt+pe+"]*",Du=new RegExp("^["+sr+"]{0,1}(?:["+Mt+"]*["+pe+"]){1,2}$","i"),zu=Mu+"(?:"+$i()+")?",Zu=new RegExp("^"+Lu+"$|^"+zu+"$","i");function Bu(e){return e.length>=ir&&Zu.test(e)}function Uu(e){return Du.test(e)}function Wu(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Kr={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Vu(e,t,n,r){if(n?n=Ku({},Kr,n):n=Kr,r=new oe(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var o=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=Dt(i,e.carrierCode,"NATIONAL",r,n),hn(s,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(s=Dt(i,null,"INTERNATIONAL",r,n),s="+".concat(o," ").concat(s),hn(s,e.ext,r,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(i);case"RFC3966":return Wu({number:"+".concat(o).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var a=Hu(i,e.carrierCode,o,n.fromCountry,r);return hn(a,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Dt(e,t,n,r,o){var i=Gu(r.formats(),e);return i?Tu(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&o&&o.nationalPrefix===!1)}):e}function Gu(e,t){return Xu(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Se(t,n.pattern())})}function hn(e,t,n,r){return t?r(e,t,n):e}function Hu(e,t,n,r,o){var i=nr(r,o.metadata);if(i===n){var s=Dt(e,t,"NATIONAL",o);return n==="1"?n+" "+s:s}var a=ju(r,void 0,o.metadata);if(a)return"".concat(a," ").concat(n," ").concat(Dt(e,null,"INTERNATIONAL",o))}function Ku(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var o in n[e])n[0][o]=n[e][o];e++}return n[0]}function Xu(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xr(Object(n),!0).forEach(function(r){Yu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yu(e,t,n){return(t=pi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pi(r.key),r)}}function Qu(e,t,n){return t&&Ju(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pi(e){var t=e0(e,"string");return mt(t)=="symbol"?t:t+""}function e0(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var t0=(function(){function e(t,n,r){if(qu(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Qe(n)&&Qe(n.countries)){r=n;var o=t;if(!o0.test(o))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=fi(o,void 0,void 0,void 0,r),s=i.countryCallingCode,a=i.number;if(n=a,t=s,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");di(r);var d=r0(t,r),c=d.country,u=d.countryCallingCode;this.country=c,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Qu(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:fu(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return au(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return uu(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new oe(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return or(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Vu(this,n,r?Yr(Yr({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),n0=function(t){return/^[A-Z]{2}$/.test(t)};function r0(e,t){var n,r,o=new oe(t);return n0(e)?(n=e,o.selectNumberingPlan(n),r=o.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var o0=/^\+\d+$/;function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function i0(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function s0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a0(e,t,n){return t=vt(t),d0(e,ar()?Reflect.construct(t,n||[],vt(e).constructor):t.apply(e,n))}function d0(e,t){if(t&&(On(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c0(e)}function c0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gt(e,t)}function Tn(e){var t=typeof Map=="function"?new Map:void 0;return Tn=function(r){if(r===null||!f0(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return u0(r,arguments,vt(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),gt(o,r)},Tn(e)}function u0(e,t,n){if(ar())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&gt(o,n.prototype),o}function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ar=function(){return!!e})()}function f0(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gt(e,t)}function vt(e){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vt(e)}var Ie=(function(e){function t(n){var r;return s0(this,t),r=a0(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return l0(t,e),i0(t)})(Tn(Error)),qr=new RegExp("(?:"+$i()+")$","i");function $0(e){var t=e.search(qr);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(qr),o=1;o<r.length;){if(r[o])return{number:n,ext:r[o]};o++}}var p0={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function h0(e){return p0[e]}function m0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=g0(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g0(e,t){if(e){if(typeof e=="string")return Jr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(e,t):void 0}}function Jr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qr(e){for(var t="",n=m0(e.split("")),r;!(r=n()).done;){var o=r.value;t+=v0(o,t)||""}return t}function v0(e,t,n){return e==="+"?t?void 0:"+":h0(e)}var hi="+",b0="[\\-\\.\\(\\)]?",eo="(["+pe+"]|"+b0+")",y0="^\\"+hi+eo+"*["+pe+"]"+eo+"*$",x0=new RegExp(y0,"g"),kn=pe,w0="["+kn+"]+((\\-)*["+kn+"])*",C0="a-zA-Z",S0="["+C0+"]+((\\-)*["+kn+"])*",_0="^("+w0+"\\.)*"+S0+"\\.?$",P0=new RegExp(_0,"g"),to="tel:",jn=";phone-context=",N0=";isub=";function E0(e){var t=e.indexOf(jn);if(t<0)return null;var n=t+jn.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function R0(e){return e===null?!0:e.length===0?!1:x0.test(e)||P0.test(e)}function A0(e,t){var n=t.extractFormattedPhoneNumber,r=E0(e);if(!R0(r))throw new Ie("NOT_A_NUMBER");var o;if(r===null)o=n(e)||"";else{o="",r.charAt(0)===hi&&(o+=r);var i=e.indexOf(to),s;i>=0?s=i+to.length:s=0;var a=e.indexOf(jn);o+=e.substring(s,a)}var d=o.indexOf(N0);if(d>0&&(o=o.substring(0,d)),o!=="")return o}var I0=250,O0=new RegExp("["+sr+pe+"]"),T0=new RegExp("[^"+pe+"#]+$");function k0(e,t,n){if(t=t||{},n=new oe(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Ie("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=F0(e,t.v2,t.extract),o=r.number,i=r.ext,s=r.error;if(!o){if(t.v2)throw s==="TOO_SHORT"?new Ie("TOO_SHORT"):new Ie("NOT_A_NUMBER");return{}}var a=M0(o,t.defaultCountry,t.defaultCallingCode,n),d=a.country,c=a.nationalNumber,u=a.countryCallingCode,f=a.countryCallingCodeSource,$=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Ie("INVALID_COUNTRY");return{}}if(!c||c.length<ir){if(t.v2)throw new Ie("TOO_SHORT");return{}}if(c.length>pu){if(t.v2)throw new Ie("TOO_LONG");return{}}if(t.v2){var m=new t0(u,c,n.metadata);return d&&(m.country=d),$&&(m.carrierCode=$),i&&(m.ext=i),m.__countryCallingCodeSource=f,m}var v=(t.extended?n.hasSelectedNumberingPlan():d)?Se(c,n.nationalNumberPattern()):!1;return t.extended?{country:d,countryCallingCode:u,carrierCode:$,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&li(c,d,n)),phone:c,ext:i}:v?L0(d,c,i):{}}function j0(e,t,n){if(e){if(e.length>I0){if(n)throw new Ie("TOO_LONG");return}if(t===!1)return e;var r=e.search(O0);if(!(r<0))return e.slice(r).replace(T0,"")}}function F0(e,t,n){var r=A0(e,{extractFormattedPhoneNumber:function(s){return j0(s,n,t)}});if(!r)return{};if(!Bu(r))return Uu(r)?{error:"TOO_SHORT"}:{};var o=$0(r);return o.ext?o:{number:r}}function L0(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function M0(e,t,n,r){var o=fi(Qr(e),void 0,t,n,r.metadata),i=o.countryCallingCodeSource,s=o.countryCallingCode,a=o.number,d;if(s)r.selectNumberingPlan(s);else if(a&&(t||n))r.selectNumberingPlan(t,n),t&&(d=t),s=n||nr(t,r.metadata);else return{};if(!a)return{countryCallingCodeSource:i,countryCallingCode:s};var c=In(Qr(a),d,r),u=c.nationalNumber,f=c.carrierCode,$=ui(s,{nationalNumber:u,metadata:r});return $&&(d=$,$==="001"||r.selectNumberingPlan(d)),{country:d,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:u,carrierCode:f}}function bt(e){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(e)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(r){D0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D0(e,t,n){return(t=z0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z0(e){var t=Z0(e,"string");return bt(t)=="symbol"?t:t+""}function Z0(e,t){if(bt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B0(e,t,n){return k0(e,ro(ro({},t),{},{v2:!0}),n)}function yt(e){"@babel/helpers - typeof";return yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(e)}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oo(Object(n),!0).forEach(function(r){W0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W0(e,t,n){return(t=V0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(e){var t=G0(e,"string");return yt(t)=="symbol"?t:t+""}function G0(e,t){if(yt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H0(e,t){return q0(e)||Y0(e,t)||X0(e,t)||K0()}function K0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X0(e,t){if(e){if(typeof e=="string")return io(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?io(e,t):void 0}}function io(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],d=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(d=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);d=!0);}catch(u){c=!0,o=u}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function q0(e){if(Array.isArray(e))return e}function J0(e){var t=Array.prototype.slice.call(e),n=H0(t,4),r=n[0],o=n[1],i=n[2],s=n[3],a,d,c;if(typeof r=="string")a=r;else throw new TypeError("A text for parsing must be a string.");if(!o||typeof o=="string")s?(d=i,c=s):(d=void 0,c=i),o&&(d=U0({defaultCountry:o},d));else if(Qe(o))i?(d=o,c=i):c=o;else throw new Error("Invalid second argument: ".concat(o));return{text:a,options:d,metadata:c}}function Q0(){var e=J0(arguments),t=e.text,n=e.options,r=e.metadata;return B0(t,n,r)}function e1(){return Kl(Q0,arguments)}const mn=(e,t)=>{if(!t)return null;if(t.required&&!e)return typeof t.required=="string"?t.required:"This field is required";if(!e)return null;if(t.email&&!Nt().email().safeParse(e).success)return typeof t.email=="string"?t.email:"Please enter a valid email address";if(t.number&&!Nt().regex(/^-?\d*\.?\d+$/).safeParse(e).success)return typeof t.number=="string"?t.number:"Please enter a valid number";if(t.phone)try{const n=e1(e,t.phone.country);if(!n||!n.isValid())return t.phone.message||`Please enter a valid phone number${t.phone.country?` for ${t.phone.country}`:""}`}catch{return t.phone.message||"Please enter a valid phone number"}return t.minLength&&!Nt().min(t.minLength.value).safeParse(e).success?t.minLength.message||`Must be at least ${t.minLength.value} characters`:t.maxLength&&!Nt().max(t.maxLength.value).safeParse(e).success?t.maxLength.message||`Must be at most ${t.maxLength.value} characters`:t.regex&&!t.regex.pattern.test(e)?t.regex.message||"Invalid format":null},mi=te.forwardRef(({value:e="",onChange:t,disabled:n=!1,error:r,placeholder:o,type:i="text",className:s,showPasswordToggle:a=!1,validation:d,validateOnChange:c=!0,validateOnBlur:u=!0,...f},$)=>{const[m,v]=te.useState(!1),[p,g]=te.useState(!1),[b,y]=te.useState(null),x=!!r||!!b,w=typeof r=="string"?r:b,S=i==="password"&&a,P=S&&p?"text":i;te.useEffect(()=>{if(e&&d){const I=mn(e,d);y(I)}},[]);const _=I=>{const Z=I.target.value;if(t&&t(Z),c&&d){const T=mn(Z,d);y(T)}},O=I=>{v(!0),f.onFocus&&f.onFocus(I)},L=I=>{if(v(!1),u&&d){const Z=mn(I.target.value,d);y(Z)}f.onBlur&&f.onBlur(I)},F=()=>{g(!p)},z=A("flex items-center gap-2","w-full h-12","px-4 py-2","rounded","text-base leading-[18px]","border transition-colors",n&&"bg-[#f4f4f4] cursor-not-allowed",!n&&"bg-white",x&&!n&&"border-[#ff305f]",!x&&m&&!n&&"border-[#a29fba]",!x&&!m&&"border-[#ecebf0]",s),N=A("flex-1 w-full h-full","bg-transparent border-none outline-none","text-[#312e4d] text-base leading-[18px]","placeholder:text-[#7d79a0]",n&&"text-[#a29fba] cursor-not-allowed",n&&"placeholder:text-[#a29fba]"),M=A("flex items-center justify-center","w-5 h-5 shrink-0","text-[#312e4d]","cursor-pointer hover:opacity-70 transition-opacity",n&&"cursor-not-allowed opacity-50");return l.jsxs("div",{className:"w-full",children:[l.jsxs("div",{className:z,"data-testid":"input-container",children:[l.jsx("input",{ref:$,type:P,value:e,onChange:_,onFocus:O,onBlur:L,disabled:n,placeholder:o,className:N,"data-testid":"input","aria-invalid":x,"aria-disabled":n,...f}),S&&l.jsx("button",{type:"button",onClick:F,disabled:n,className:M,"data-testid":"password-toggle","aria-label":p?"Hide password":"Show password",tabIndex:-1,children:p?l.jsx(re.EyeOff,{size:20}):l.jsx(re.Eye,{size:20})})]}),w&&l.jsx("p",{className:"mt-1 text-sm text-[#ff305f]","data-testid":"input-error",role:"alert",children:w})]})});mi.displayName="Input";const gi=h.forwardRef(({icon:e,primaryText:t,primaryTextColor:n="#312e4d",secondaryText:r,secondaryTextColor:o="#575385",rightIcon:i,className:s,...a},d)=>l.jsxs("div",{ref:d,className:A("flex items-center justify-between w-full",s),...a,children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("div",{className:"shrink-0",children:e}),l.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:n},children:t}),r&&l.jsx("span",{className:"text-xs leading-[14px] font-normal whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif",color:o},children:r})]}),i&&l.jsx("div",{className:"shrink-0",children:i})]}));gi.displayName="KPIComparisonCustom";const t1=({className:e})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("path",{d:"M11 3L6.5 7.5L4 5L1 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 3H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),n1=({className:e})=>l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("path",{d:"M11 9L6.5 4.5L4 7L1 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 9H11V6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),r1=({className:e})=>l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[l.jsx("circle",{cx:"8",cy:"8",r:"6.375",stroke:"currentColor",strokeWidth:"1.25"}),l.jsx("path",{d:"M8 4.5V8.5",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"}),l.jsx("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor"})]}),dr=h.forwardRef(({percentage:e,trend:t,label:n="KPI comparison",showWarning:r=!1,className:o,...i},s)=>{const a=t==="positive",d=e>0?`+${e.toFixed(1)}%`:`${e.toFixed(1)}%`;return l.jsxs("div",{ref:s,className:A("flex items-center justify-between w-full",o),...i,children:[l.jsxs("div",{className:"flex items-center gap-1",children:[a?l.jsx(t1,{className:"text-[#00995a] shrink-0"}):l.jsx(n1,{className:"text-[#d4002c] shrink-0"}),l.jsx("span",{className:A("text-xs leading-[14px] font-normal whitespace-nowrap",a?"text-[#00995a]":"text-[#d4002c]"),style:{fontFamily:"Causten Round, sans-serif"},children:d}),l.jsx("span",{className:"text-xs leading-[14px] font-normal text-[#575385] whitespace-nowrap",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),r&&l.jsx(r1,{className:"text-[#d4002c] shrink-0"})]})});dr.displayName="KPIComparison";const so={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"},yellow:{bg:"#fff9e6",border:"#ffd966",text:"#cc8800"}},vi=h.forwardRef(({title:e,content:t,description:n,footer:r,tag:o,icon:i,onClick:s,className:a,...d},c)=>{const u=o?so[o.variant||"default"]:so.default;return l.jsxs("div",{ref:c,onClick:s,className:A("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",s&&"cursor-pointer hover:shadow-md transition-shadow",a),...d,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),o&&l.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:u.bg,borderColor:u.border,color:u.text,fontFamily:"Causten Round, sans-serif"},children:o.label})]}),l.jsx("div",{className:"min-w-0",children:t}),n&&l.jsx("div",{className:"min-w-0",children:n}),r&&l.jsx("div",{className:"min-w-0",children:r})]})]})});vi.displayName="KPICardCustom";const o1=({color:e="#312e4d"})=>l.jsx(re.TriangleAlert,{size:32,color:e,strokeWidth:2}),bi=h.forwardRef(({title:e,value:t,unit:n="%",total:r,description:o,comparison:i,tag:s,icon:a,iconColor:d="primary",bodyText:c,button:u,onClick:f,className:$,...m},v)=>{const p={primary:"#312e4d",error:"#d4002c",brand:"#00995a"},b={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"}}[s?.variant||"default"];return l.jsxs("div",{ref:v,onClick:f,className:A("bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",f&&"cursor-pointer hover:shadow-md transition-shadow",$),...m,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:a||l.jsx(o1,{color:p[d]})}),l.jsxs("div",{className:"flex-1 flex flex-col gap-2 min-w-0",children:[l.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385] flex-1 min-w-0",style:{fontFamily:"Causten Round, sans-serif"},children:e}),s&&l.jsx("span",{className:"px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border shrink-0",style:{backgroundColor:b.bg,borderColor:b.border,color:b.text,fontFamily:"Causten Round, sans-serif"},children:s.label})]}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),r!==void 0?l.jsxs("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:["/",r]}):n?l.jsx("span",{className:"text-xs leading-[18px] font-medium text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:n}):null,o&&l.jsx("span",{className:"text-sm leading-[18px] font-normal text-[#575385] flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-right",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),c&&l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:c}),i&&l.jsx(dr,{percentage:i.percentage,trend:i.trend,label:i.label,showWarning:i.showWarning}),u&&l.jsx("button",{onClick:y=>{y.stopPropagation(),u.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] text-left self-start hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:u.label})]})]})});bi.displayName="KPICard";const yi=h.forwardRef(({type:e="spinner",show:t=!0,variant:n="active",size:r=48,width:o=230,className:i,...s},a)=>{if(!t)return null;const c={active:"#00b56b",disabled:"#a29fba"}[n];return e==="spinner"?l.jsxs("div",{ref:a,className:A("inline-flex items-center justify-center",i),role:"status","aria-label":"Cargando",...s,children:[l.jsx("div",{className:"rounded-full animate-spin",style:{width:r,height:r,border:"4px solid transparent",borderTopColor:c,borderRightColor:c}}),l.jsx("span",{className:"sr-only",children:"Cargando..."})]}):l.jsxs("div",{ref:a,className:A("relative overflow-hidden rounded-full bg-gray-200",i),style:{width:o,height:8},role:"progressbar","aria-label":"Cargando","aria-valuemin":0,"aria-valuemax":100,...s,children:[l.jsx("div",{className:"absolute top-0 left-0 h-full rounded-full",style:{backgroundColor:c,animation:"linear-progress 1.5s ease-in-out infinite"}}),l.jsx("span",{className:"sr-only",children:"Cargando..."})]})});yi.displayName="Loader";const xi=h.forwardRef(({title:e,description:t,value:n,selected:r=!1,onSelect:o,disabled:i,className:s,...a},d)=>{const c=()=>{!i&&o&&o(n)};return l.jsxs("div",{ref:d,onClick:c,className:A("bg-white border border-solid rounded-xl p-4 flex flex-col gap-1 transition-all cursor-pointer",r?"border-[#00b56b]":"border-[#ecebf0]",i&&"opacity-50 cursor-not-allowed",!i&&"hover:shadow-sm",s),...a,children:[l.jsxs("div",{className:"flex gap-3 items-center h-6",children:[l.jsx("div",{className:"flex items-center justify-center shrink-0 w-6 h-6",children:l.jsx("div",{className:A("w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors",r?"border-[#00995a]":"border-[#a29fba]"),children:r&&l.jsx("div",{className:"w-3 h-3 rounded-full bg-[#00995a]"})})}),l.jsx("h3",{className:"text-base leading-5 font-medium text-[#312e4d] flex-1",style:{fontFamily:"Causten Round, sans-serif"},children:e})]}),l.jsx("div",{className:"pl-9",children:l.jsx("p",{className:"text-sm leading-[18px] font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:t})})]})});xi.displayName="OptionCard";const ao={default:{bg:"#f4f4f4",border:"#c6c6c6",text:"#6e6f6e"},red:{bg:"#ffecf0",border:"#ff8ea7",text:"#ff305f"},green:{bg:"#e6f7f0",border:"#8ed9b8",text:"#00995a"},blue:{bg:"#e8f4fd",border:"#8ec9ed",text:"#0066cc"}},wi=h.forwardRef(({title:e,count:t,countLabel:n="orders",infoLine1:r,infoLine2:o,icon:i,badge:s,button:a,className:d,...c},u)=>{const f=s?ao[s.variant||"default"]:ao.default;return l.jsxs("div",{ref:u,className:A("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",d),...c,children:[l.jsx("div",{className:"flex items-center justify-center shrink-0",children:i}),l.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:e}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),l.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),r&&l.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:r}),o&&l.jsx("div",{className:"text-xs leading-normal font-normal text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:o})]}),l.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pb-[33px]",children:[s&&l.jsx("button",{onClick:$=>{$.stopPropagation(),s.onClick?.()},disabled:!s.onClick,className:A("px-2 py-1 rounded-2xl text-sm leading-[18px] font-medium border transition-opacity",s.onClick&&"hover:opacity-80 cursor-pointer"),style:{fontFamily:"Causten Round, sans-serif",height:"24px",backgroundColor:f.bg,borderColor:f.border,color:f.text},children:s.label}),a&&l.jsx("button",{onClick:$=>{$.stopPropagation(),a.onClick?.()},className:"text-sm leading-[18px] font-semibold text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:a.label})]})]})]})});wi.displayName="OrderCardCustom";const Jt="#00995a",Qt=32,en=2,i1=()=>l.jsx(re.ReceiptText,{size:Qt,color:Jt,strokeWidth:en}),s1=()=>l.jsx(re.Package,{size:Qt,color:Jt,strokeWidth:en}),a1=()=>l.jsx(re.Route,{size:Qt,color:Jt,strokeWidth:en}),d1=()=>l.jsx(re.CircleCheck,{size:Qt,color:Jt,strokeWidth:en}),c1={received:{title:"Received",icon:i1},picking:{title:"Picking",icon:s1},dispatched:{title:"Dispatched",icon:a1},delivered:{title:"Delivered",icon:d1}},Ci=h.forwardRef(({state:e,count:t,countLabel:n="orders",grossSales:r,netSales:o,hasDelays:i=!1,delayCount:s,onDelaysClick:a,onFilterClick:d,icon:c,currencySymbol:u="$",className:f,...$},m)=>{const v=c1[e],p=c||v.icon,g=b=>`${u}${b.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")}`;return l.jsxs("div",{ref:m,className:A("bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",f),...$,children:[l.jsx("div",{className:"flex items-start justify-center shrink-0",children:typeof p=="function"?l.jsx(p,{}):p}),l.jsxs("div",{className:"flex-1 flex gap-2 items-start justify-end min-w-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 min-w-0",children:[l.jsx("h3",{className:"text-base leading-5 font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:v.title}),l.jsxs("div",{className:"flex items-end gap-1",children:[l.jsx("span",{className:"text-xl leading-[22px] font-semibold text-[#312e4d]",style:{fontFamily:"Causten Round, sans-serif"},children:t}),l.jsx("span",{className:"text-base leading-[18px] font-medium text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:n})]}),l.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[l.jsx("span",{children:"Gross Sales:"}),l.jsx("span",{children:g(r)})]}),l.jsxs("div",{className:"flex gap-1 text-xs leading-normal font-light text-[#575385]",style:{fontFamily:"Causten Round, sans-serif"},children:[l.jsx("span",{children:"Net Sales:"}),l.jsx("span",{children:g(o)})]})]}),l.jsxs("div",{className:"flex flex-col gap-4 items-end justify-end pl-12 pb-[33px]",children:[i&&l.jsx("button",{onClick:b=>{b.stopPropagation(),a?.()},className:"px-2 rounded-2xl text-[12px] leading-[18px] font-light border bg-[#ffecf0] border-[#ff8ea7] text-[#ff305f] hover:opacity-80 transition-opacity",style:{fontFamily:"Causten Round, sans-serif",height:"24px"},children:s?`${s} Delays`:"Delays"}),d&&l.jsx("button",{onClick:b=>{b.stopPropagation(),d()},className:"text-sm leading-[18px] font-medium text-[#00995a] hover:underline",style:{fontFamily:"Causten Round, sans-serif"},children:"Filter"})]})]})]})});Ci.displayName="OrderCard";const Si=({currentPage:e,totalPages:t,onPageChange:n})=>{const r=()=>{e>1&&n(e-1)},o=()=>{e<t&&n(e+1)},i=d=>{n(d)},a=(()=>{const d=[];if(t<=6)for(let u=1;u<=t;u++)d.push(u);else if(d.push(1),e<=3){for(let u=2;u<=4;u++)d.push(u);d.push("..."),d.push(t)}else if(e>=t-2){d.push("...");for(let u=t-2;u<=t;u++)d.push(u)}else{d.push("...");for(let u=e-1;u<=e+1;u++)d.push(u);d.push("..."),d.push(t)}return d})();return l.jsxs("div",{className:"flex gap-1.5 items-center",children:[l.jsx("button",{onClick:r,disabled:e===1,className:A("border rounded bg-transparent p-1 flex items-center justify-center w-[28px] h-[28px]",e===1?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:l.jsx("i",{className:"tabler-chevron-left text-sm text-[#312e4d]"})}),a.map((d,c)=>{if(d==="...")return l.jsx("div",{className:"border border-[#ecebf0] rounded p-1 h-[28px] w-[28px] flex items-center justify-center",children:l.jsx("p",{className:"text-xs text-[#575385] text-center",children:"..."})},`ellipsis-${c}`);const u=d,f=u===e;return l.jsx("button",{onClick:()=>i(u),className:A("border rounded bg-transparent p-1 h-[28px] w-[28px] flex items-center justify-center px-1",f?"border-[#a29fba] bg-white":"border-[#ecebf0] hover:bg-gray-50"),children:l.jsx("p",{className:A("text-xs text-center",f?"text-[#312e4d]":"text-[#a29fba]"),children:u})},u)}),l.jsx("button",{onClick:o,disabled:e===t,className:A("border rounded bg-transparent p-1 flex items-center justify-center h-[28px]",e===t?"border-[#ecebf0] cursor-not-allowed":"border-[#ecebf0] cursor-pointer hover:bg-gray-50"),children:l.jsx("i",{className:"tabler-chevron-right text-sm text-[#312e4d]"})})]})};function co(e,[t,n]){return Math.min(n,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function cr(e,t=[]){let n=[];function r(i,s){const a=h.createContext(s),d=n.length;n=[...n,s];const c=f=>{const{scope:$,children:m,...v}=f,p=$?.[e]?.[d]||a,g=h.useMemo(()=>v,Object.values(v));return l.jsx(p.Provider,{value:g,children:m})};c.displayName=i+"Provider";function u(f,$){const m=$?.[e]?.[d]||a,v=h.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(s=>h.createContext(s));return function(a){const d=a?.[e]||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,l1(o,...t)]}function l1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:d,scopeName:c})=>{const f=d(i)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function u1(...e){return t=>{let n=!1;const r=e.map(o=>{const i=lo(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():lo(e[o],null)}}}}function ne(...e){return h.useCallback(u1(...e),e)}function f1(e){const t=e+"CollectionProvider",[n,r]=cr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:g,children:b}=p,y=te.useRef(null),x=te.useRef(new Map).current;return l.jsx(o,{scope:g,itemMap:x,collectionRef:y,children:b})};s.displayName=t;const a=e+"CollectionSlot",d=pt.createSlot(a),c=te.forwardRef((p,g)=>{const{scope:b,children:y}=p,x=i(a,b),w=ne(g,x.collectionRef);return l.jsx(d,{ref:w,children:y})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",$=pt.createSlot(u),m=te.forwardRef((p,g)=>{const{scope:b,children:y,...x}=p,w=te.useRef(null),S=ne(g,w),P=i(u,b);return te.useEffect(()=>(P.itemMap.set(w,{ref:w,...x}),()=>void P.itemMap.delete(w))),l.jsx($,{[f]:"",ref:S,children:y})});m.displayName=u;function v(p){const g=i(e+"CollectionConsumer",p);return te.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},v,r]}var $1=h.createContext(void 0);function p1(e){const t=h.useContext($1);return e||t||"ltr"}var h1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=h1.reduce((e,t)=>{const n=pt.createSlot(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:s,...a}=o,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function m1(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t))}function Ze(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>t.current?.(...n),[])}function g1(e,t=globalThis?.document){const n=Ze(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var v1="DismissableLayer",Fn="dismissableLayer.update",b1="dismissableLayer.pointerDownOutside",y1="dismissableLayer.focusOutside",uo,_i=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pi=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,c=h.useContext(_i),[u,f]=h.useState(null),$=u?.ownerDocument??globalThis?.document,[,m]=h.useState({}),v=ne(t,_=>f(_)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(g),y=u?p.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=b,S=C1(_=>{const O=_.target,L=[...c.branches].some(F=>F.contains(O));!w||L||(o?.(_),s?.(_),_.defaultPrevented||a?.())},$),P=S1(_=>{const O=_.target;[...c.branches].some(F=>F.contains(O))||(i?.(_),s?.(_),_.defaultPrevented||a?.())},$);return g1(_=>{y===c.layers.size-1&&(r?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},$),h.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(uo=$.body.style.pointerEvents,$.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),fo(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&($.body.style.pointerEvents=uo)}},[u,$,n,c]),h.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),fo())},[u,c]),h.useEffect(()=>{const _=()=>m({});return document.addEventListener(Fn,_),()=>document.removeEventListener(Fn,_)},[]),l.jsx(Y.div,{...d,ref:v,style:{pointerEvents:x?w?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,P.onFocusCapture),onBlurCapture:J(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,S.onPointerDownCapture)})});Pi.displayName=v1;var x1="DismissableLayerBranch",w1=h.forwardRef((e,t)=>{const n=h.useContext(_i),r=h.useRef(null),o=ne(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(Y.div,{...e,ref:o})});w1.displayName=x1;function C1(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){Ni(b1,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function S1(e,t=globalThis?.document){const n=Ze(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ni(y1,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fo(){const e=new CustomEvent(Fn);document.dispatchEvent(e)}function Ni(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?m1(o,i):o.dispatchEvent(i)}var gn=0;function _1(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$o()),document.body.insertAdjacentElement("beforeend",e[1]??$o()),gn++,()=>{gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gn--}},[])}function $o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vn="focusScope.autoFocusOnMount",bn="focusScope.autoFocusOnUnmount",po={bubbles:!1,cancelable:!0},P1="FocusScope",Ei=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=h.useState(null),c=Ze(o),u=Ze(i),f=h.useRef(null),$=ne(t,p=>d(p)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let p=function(x){if(m.paused||!a)return;const w=x.target;a.contains(w)?f.current=w:Ae(f.current,{select:!0})},g=function(x){if(m.paused||!a)return;const w=x.relatedTarget;w!==null&&(a.contains(w)||Ae(f.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ae(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const y=new MutationObserver(b);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),y.disconnect()}}},[r,a,m.paused]),h.useEffect(()=>{if(a){mo.add(m);const p=document.activeElement;if(!a.contains(p)){const b=new CustomEvent(vn,po);a.addEventListener(vn,c),a.dispatchEvent(b),b.defaultPrevented||(N1(O1(Ri(a)),{select:!0}),document.activeElement===p&&Ae(a))}return()=>{a.removeEventListener(vn,c),setTimeout(()=>{const b=new CustomEvent(bn,po);a.addEventListener(bn,u),a.dispatchEvent(b),b.defaultPrevented||Ae(p??document.body,{select:!0}),a.removeEventListener(bn,u),mo.remove(m)},0)}}},[a,c,u,m]);const v=h.useCallback(p=>{if(!n&&!r||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(g&&b){const y=p.currentTarget,[x,w]=E1(y);x&&w?!p.shiftKey&&b===w?(p.preventDefault(),n&&Ae(x,{select:!0})):p.shiftKey&&b===x&&(p.preventDefault(),n&&Ae(w,{select:!0})):b===y&&p.preventDefault()}},[n,r,m.paused]);return l.jsx(Y.div,{tabIndex:-1,...s,ref:$,onKeyDown:v})});Ei.displayName=P1;function N1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ae(r,{select:t}),document.activeElement!==n)return}function E1(e){const t=Ri(e),n=ho(t,e),r=ho(t.reverse(),e);return[n,r]}function Ri(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ho(e,t){for(const n of e)if(!R1(n,{upTo:t}))return n}function R1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function A1(e){return e instanceof HTMLInputElement&&"select"in e}function Ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&A1(e)&&t&&e.select()}}var mo=I1();function I1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=go(e,t),e.unshift(t)},remove(t){e=go(e,t),e[0]?.resume()}}}function go(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function O1(e){return e.filter(t=>t.tagName!=="A")}var ae=globalThis?.document?h.useLayoutEffect:()=>{},T1=h[" useId ".trim().toString()]||(()=>{}),k1=0;function lr(e){const[t,n]=h.useState(T1());return ae(()=>{n(r=>r??String(k1++))},[e]),e||(t?`radix-${t}`:"")}const j1=["top","right","bottom","left"],Oe=Math.min,ce=Math.max,zt=Math.round,Rt=Math.floor,be=e=>({x:e,y:e}),F1={left:"right",right:"left",bottom:"top",top:"bottom"},L1={start:"end",end:"start"};function Ln(e,t,n){return ce(e,Oe(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function ur(e){return e==="x"?"y":"x"}function fr(e){return e==="y"?"height":"width"}const M1=new Set(["top","bottom"]);function ve(e){return M1.has(Pe(e))?"y":"x"}function $r(e){return ur(ve(e))}function D1(e,t,n){n===void 0&&(n=!1);const r=st(e),o=$r(e),i=fr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zt(s)),[s,Zt(s)]}function z1(e){const t=Zt(e);return[Mn(e),t,Mn(t)]}function Mn(e){return e.replace(/start|end/g,t=>L1[t])}const vo=["left","right"],bo=["right","left"],Z1=["top","bottom"],B1=["bottom","top"];function U1(e,t,n){switch(e){case"top":case"bottom":return n?t?bo:vo:t?vo:bo;case"left":case"right":return t?Z1:B1;default:return[]}}function W1(e,t,n,r){const o=st(e);let i=U1(Pe(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Mn)))),i}function Zt(e){return e.replace(/left|right|bottom|top/g,t=>F1[t])}function V1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ai(e){return typeof e!="number"?V1(e):{top:e,right:e,bottom:e,left:e}}function Bt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yo(e,t,n){let{reference:r,floating:o}=e;const i=ve(t),s=$r(t),a=fr(s),d=Pe(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,$=r[a]/2-o[a]/2;let m;switch(d){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(st(t)){case"start":m[s]-=$*(n&&c?-1:1);break;case"end":m[s]+=$*(n&&c?-1:1);break}return m}const G1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=yo(c,r,d),$=r,m={},v=0;for(let p=0;p<a.length;p++){const{name:g,fn:b}=a[p],{x:y,y:x,data:w,reset:S}=await b({x:u,y:f,initialPlacement:r,placement:$,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,f=x??f,m={...m,[g]:{...m[g],...w}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&($=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=yo(c,$,d)),p=-1)}return{x:u,y:f,placement:$,strategy:o,middlewareData:m}};async function xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:$=!1,padding:m=0}=_e(t,e),v=Ai(m),g=a[$?f==="floating"?"reference":"floating":f],b=Bt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:d})),y=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:d}):y);return{top:(b.top-S.top+v.top)/w.y,bottom:(S.bottom-b.bottom+v.bottom)/w.y,left:(b.left-S.left+v.left)/w.x,right:(S.right-b.right+v.right)/w.x}}const H1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:c,padding:u=0}=_e(e,t)||{};if(c==null)return{};const f=Ai(u),$={x:n,y:r},m=$r(o),v=fr(m),p=await s.getDimensions(c),g=m==="y",b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[m]-$[m]-i.floating[v],S=$[m]-i.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[x]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=a.floating[x]||i.floating[v]);const O=w/2-S/2,L=_/2-p[v]/2-1,F=Oe(f[b],L),z=Oe(f[y],L),N=F,M=_-p[v]-z,I=_/2-p[v]/2+O,Z=Ln(N,I,M),T=!d.arrow&&st(o)!=null&&I!==Z&&i.reference[v]/2-(I<N?F:z)-p[v]/2<0,D=T?I<N?I-N:I-M:0;return{[m]:$[m]+D,data:{[m]:Z,centerOffset:I-Z-D,...T&&{alignmentOffset:D}},reset:T}}}),K1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:$,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=_e(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Pe(o),y=ve(a),x=Pe(a)===a,w=await(d.isRTL==null?void 0:d.isRTL(c.floating)),S=$||(x||!p?[Zt(a)]:z1(a)),P=v!=="none";!$&&P&&S.push(...W1(a,p,v,w));const _=[a,...S],O=await xt(t,g),L=[];let F=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&L.push(O[b]),f){const I=D1(o,s,w);L.push(O[I[0]],O[I[1]])}if(F=[...F,{placement:o,overflows:L}],!L.every(I=>I<=0)){var z,N;const I=(((z=i.flip)==null?void 0:z.index)||0)+1,Z=_[I];if(Z&&(!(f==="alignment"?y!==ve(Z):!1)||F.every(E=>ve(E.placement)===y?E.overflows[0]>0:!0)))return{data:{index:I,overflows:F},reset:{placement:Z}};let T=(N=F.filter(D=>D.overflows[0]<=0).sort((D,E)=>D.overflows[1]-E.overflows[1])[0])==null?void 0:N.placement;if(!T)switch(m){case"bestFit":{var M;const D=(M=F.filter(E=>{if(P){const B=ve(E.placement);return B===y||B==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(B=>B>0).reduce((B,Q)=>B+Q,0)]).sort((E,B)=>E[1]-B[1])[0])==null?void 0:M[0];D&&(T=D);break}case"initialPlacement":T=a;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function xo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wo(e){return j1.some(t=>e[t]>=0)}const X1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=_e(e,t);switch(r){case"referenceHidden":{const i=await xt(t,{...o,elementContext:"reference"}),s=xo(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wo(s)}}}case"escaped":{const i=await xt(t,{...o,altBoundary:!0}),s=xo(i,n.floating);return{data:{escapedOffsets:s,escaped:wo(s)}}}default:return{}}}}},Ii=new Set(["left","top"]);async function Y1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),a=st(n),d=ve(n)==="y",c=Ii.has(s)?-1:1,u=i&&d?-1:1,f=_e(t,e);let{mainAxis:$,crossAxis:m,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),d?{x:m*u,y:$*c}:{x:$*c,y:m*u}}const q1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await Y1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},J1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:b,y}=g;return{x:b,y}}},...d}=_e(e,t),c={x:n,y:r},u=await xt(t,d),f=ve(Pe(o)),$=ur(f);let m=c[$],v=c[f];if(i){const g=$==="y"?"top":"left",b=$==="y"?"bottom":"right",y=m+u[g],x=m-u[b];m=Ln(y,m,x)}if(s){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=v+u[g],x=v-u[b];v=Ln(y,v,x)}const p=a.fn({...t,[$]:m,[f]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[$]:i,[f]:s}}}}}},Q1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:c=!0}=_e(e,t),u={x:n,y:r},f=ve(o),$=ur(f);let m=u[$],v=u[f];const p=_e(a,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const x=$==="y"?"height":"width",w=i.reference[$]-i.floating[x]+g.mainAxis,S=i.reference[$]+i.reference[x]-g.mainAxis;m<w?m=w:m>S&&(m=S)}if(c){var b,y;const x=$==="y"?"width":"height",w=Ii.has(Pe(o)),S=i.reference[f]-i.floating[x]+(w&&((b=s.offset)==null?void 0:b[f])||0)+(w?0:g.crossAxis),P=i.reference[f]+i.reference[x]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?g.crossAxis:0);v<S?v=S:v>P&&(v=P)}return{[$]:m,[f]:v}}}},ef=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...c}=_e(e,t),u=await xt(t,c),f=Pe(o),$=st(o),m=ve(o)==="y",{width:v,height:p}=i.floating;let g,b;f==="top"||f==="bottom"?(g=f,b=$===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,g=$==="end"?"top":"bottom");const y=p-u.top-u.bottom,x=v-u.left-u.right,w=Oe(p-u[g],y),S=Oe(v-u[b],x),P=!t.middlewareData.shift;let _=w,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=y),P&&!$){const F=ce(u.left,0),z=ce(u.right,0),N=ce(u.top,0),M=ce(u.bottom,0);m?O=v-2*(F!==0||z!==0?F+z:ce(u.left,u.right)):_=p-2*(N!==0||M!==0?N+M:ce(u.top,u.bottom))}await d({...t,availableWidth:O,availableHeight:_});const L=await s.getDimensions(a.floating);return v!==L.width||p!==L.height?{reset:{rects:!0}}:{}}}};function tn(){return typeof window<"u"}function at(e){return Oi(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Oi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oi(e){return tn()?e instanceof Node||e instanceof le(e).Node:!1}function he(e){return tn()?e instanceof Element||e instanceof le(e).Element:!1}function ye(e){return tn()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function Co(e){return!tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const tf=new Set(["inline","contents"]);function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!tf.has(o)}const nf=new Set(["table","td","th"]);function rf(e){return nf.has(at(e))}const of=[":popover-open",":modal"];function nn(e){return of.some(t=>{try{return e.matches(t)}catch{return!1}})}const sf=["transform","translate","scale","rotate","perspective"],af=["transform","translate","scale","rotate","perspective","filter"],df=["paint","layout","strict","content"];function pr(e){const t=hr(),n=he(e)?me(e):e;return sf.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||af.some(r=>(n.willChange||"").includes(r))||df.some(r=>(n.contain||"").includes(r))}function cf(e){let t=Te(e);for(;ye(t)&&!rt(t);){if(pr(t))return t;if(nn(t))return null;t=Te(t)}return null}function hr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lf=new Set(["html","body","#document"]);function rt(e){return lf.has(at(e))}function me(e){return le(e).getComputedStyle(e)}function rn(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Te(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Co(e)&&e.host||we(e);return Co(t)?t.host:t}function Ti(e){const t=Te(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&Ct(t)?t:Ti(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ti(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=le(o);if(i){const a=Dn(s);return t.concat(s,s.visualViewport||[],Ct(o)?o:[],a&&n?wt(a):[])}return t.concat(o,wt(o,[],n))}function Dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ki(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=zt(n)!==i||zt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function mr(e){return he(e)?e:e.contextElement}function et(e){const t=mr(e);if(!ye(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ki(t);let s=(i?zt(n.width):n.width)/r,a=(i?zt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const uf=be(0);function ji(e){const t=le(e);return!hr()||!t.visualViewport?uf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ff(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=mr(e);let s=be(1);t&&(r?he(r)&&(s=et(r)):s=et(e));const a=ff(i,n,r)?ji(i):be(0);let d=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const $=le(i),m=r&&he(r)?le(r):r;let v=$,p=Dn(v);for(;p&&r&&m!==v;){const g=et(p),b=p.getBoundingClientRect(),y=me(p),x=b.left+(p.clientLeft+parseFloat(y.paddingLeft))*g.x,w=b.top+(p.clientTop+parseFloat(y.paddingTop))*g.y;d*=g.x,c*=g.y,u*=g.x,f*=g.y,d+=x,c+=w,v=le(p),p=Dn(v)}}return Bt({width:u,height:f,x:d,y:c})}function on(e,t){const n=rn(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function Fi(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-on(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function $f(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=we(r),a=t?nn(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},c=be(1);const u=be(0),f=ye(r);if((f||!f&&!i)&&((at(r)!=="body"||Ct(s))&&(d=rn(r)),ye(r))){const m=Be(r);c=et(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const $=s&&!f&&!i?Fi(s,d):be(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-d.scrollLeft*c.x+u.x+$.x,y:n.y*c.y-d.scrollTop*c.y+u.y+$.y}}function pf(e){return Array.from(e.getClientRects())}function hf(e){const t=we(e),n=rn(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+on(e);const a=-n.scrollTop;return me(r).direction==="rtl"&&(s+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const So=25;function mf(e,t){const n=le(e),r=we(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const u=hr();(!u||u&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}const c=on(r);if(c<=0){const u=r.ownerDocument,f=u.body,$=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat($.marginLeft)+parseFloat($.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-m);v<=So&&(i-=v)}else c<=So&&(i+=c);return{width:i,height:s,x:a,y:d}}const gf=new Set(["absolute","fixed"]);function vf(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ye(e)?et(e):be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,c=r*i.y;return{width:s,height:a,x:d,y:c}}function _o(e,t,n){let r;if(t==="viewport")r=mf(e,n);else if(t==="document")r=hf(we(e));else if(he(t))r=vf(t,n);else{const o=ji(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Bt(r)}function Li(e,t){const n=Te(e);return n===t||!he(n)||rt(n)?!1:me(n).position==="fixed"||Li(n,t)}function bf(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(a=>he(a)&&at(a)!=="body"),o=null;const i=me(e).position==="fixed";let s=i?Te(e):e;for(;he(s)&&!rt(s);){const a=me(s),d=pr(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&gf.has(o.position)||Ct(s)&&!d&&Li(e,s))?r=r.filter(u=>u!==s):o=a,s=Te(s)}return t.set(e,r),r}function yf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?nn(t)?[]:bf(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((c,u)=>{const f=_o(t,u,o);return c.top=ce(f.top,c.top),c.right=Oe(f.right,c.right),c.bottom=Oe(f.bottom,c.bottom),c.left=ce(f.left,c.left),c},_o(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function xf(e){const{width:t,height:n}=ki(e);return{width:t,height:n}}function wf(e,t,n){const r=ye(t),o=we(t),i=n==="fixed",s=Be(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=be(0);function c(){d.x=on(o)}if(r||!r&&!i)if((at(t)!=="body"||Ct(o))&&(a=rn(t)),r){const m=Be(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?Fi(o,a):be(0),f=s.left+a.scrollLeft-d.x-u.x,$=s.top+a.scrollTop-d.y-u.y;return{x:f,y:$,width:s.width,height:s.height}}function yn(e){return me(e).position==="static"}function Po(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Mi(e,t){const n=le(e);if(nn(e))return n;if(!ye(e)){let o=Te(e);for(;o&&!rt(o);){if(he(o)&&!yn(o))return o;o=Te(o)}return n}let r=Po(e,t);for(;r&&rf(r)&&yn(r);)r=Po(r,t);return r&&rt(r)&&yn(r)&&!pr(r)?n:r||cf(e)||n}const Cf=async function(e){const t=this.getOffsetParent||Mi,n=this.getDimensions,r=await n(e.floating);return{reference:wf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sf(e){return me(e).direction==="rtl"}const _f={convertOffsetParentRelativeRectToViewportRelativeRect:$f,getDocumentElement:we,getClippingRect:yf,getOffsetParent:Mi,getElementRects:Cf,getClientRects:pf,getDimensions:xf,getScale:et,isElement:he,isRTL:Sf};function Di(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pf(e,t){let n=null,r;const o=we(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:$,height:m}=c;if(a||t(),!$||!m)return;const v=Rt(f),p=Rt(o.clientWidth-(u+$)),g=Rt(o.clientHeight-(f+m)),b=Rt(u),x={rootMargin:-v+"px "+-p+"px "+-g+"px "+-b+"px",threshold:ce(0,Oe(1,d))||1};let w=!0;function S(P){const _=P[0].intersectionRatio;if(_!==d){if(!w)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!Di(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),i}function Nf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,c=mr(e),u=o||i?[...c?wt(c):[],...wt(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=c&&a?Pf(c,n):null;let $=-1,m=null;s&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&m&&(m.unobserve(t),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!d&&m.observe(c),m.observe(t));let v,p=d?Be(e):null;d&&g();function g(){const b=Be(e);p&&!Di(p,b)&&n(),p=b,v=requestAnimationFrame(g)}return n(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=m)==null||b.disconnect(),m=null,d&&cancelAnimationFrame(v)}}const Ef=q1,Rf=J1,Af=K1,If=ef,Of=X1,No=H1,Tf=Q1,kf=(e,t,n)=>{const r=new Map,o={platform:_f,...n},i={...o.platform,_c:r};return G1(e,t,{...o,platform:i})};var jf=typeof document<"u",Ff=function(){},kt=jf?te.useLayoutEffect:Ff;function Ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ut(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function zi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eo(e,t){const n=zi(e);return Math.round(t*n)/n}function xn(e){const t=h.useRef(e);return kt(()=>{t.current=e}),t}function Lf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:c}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[$,m]=h.useState(r);Ut($,r)||m(r);const[v,p]=h.useState(null),[g,b]=h.useState(null),y=h.useCallback(E=>{E!==P.current&&(P.current=E,p(E))},[]),x=h.useCallback(E=>{E!==_.current&&(_.current=E,b(E))},[]),w=i||v,S=s||g,P=h.useRef(null),_=h.useRef(null),O=h.useRef(u),L=d!=null,F=xn(d),z=xn(o),N=xn(c),M=h.useCallback(()=>{if(!P.current||!_.current)return;const E={placement:t,strategy:n,middleware:$};z.current&&(E.platform=z.current),kf(P.current,_.current,E).then(B=>{const Q={...B,isPositioned:N.current!==!1};I.current&&!Ut(O.current,Q)&&(O.current=Q,Gt.flushSync(()=>{f(Q)}))})},[$,t,n,z,N]);kt(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(E=>({...E,isPositioned:!1})))},[c]);const I=h.useRef(!1);kt(()=>(I.current=!0,()=>{I.current=!1}),[]),kt(()=>{if(w&&(P.current=w),S&&(_.current=S),w&&S){if(F.current)return F.current(w,S,M);M()}},[w,S,M,F,L]);const Z=h.useMemo(()=>({reference:P,floating:_,setReference:y,setFloating:x}),[y,x]),T=h.useMemo(()=>({reference:w,floating:S}),[w,S]),D=h.useMemo(()=>{const E={position:n,left:0,top:0};if(!T.floating)return E;const B=Eo(T.floating,u.x),Q=Eo(T.floating,u.y);return a?{...E,transform:"translate("+B+"px, "+Q+"px)",...zi(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:Q}},[n,a,T.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:M,refs:Z,elements:T,floatingStyles:D}),[u,M,Z,T,D])}const Mf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?No({element:r.current,padding:o}).fn(n):{}:r?No({element:r,padding:o}).fn(n):{}}}},Df=(e,t)=>({...Ef(e),options:[e,t]}),zf=(e,t)=>({...Rf(e),options:[e,t]}),Zf=(e,t)=>({...Tf(e),options:[e,t]}),Bf=(e,t)=>({...Af(e),options:[e,t]}),Uf=(e,t)=>({...If(e),options:[e,t]}),Wf=(e,t)=>({...Of(e),options:[e,t]}),Vf=(e,t)=>({...Mf(e),options:[e,t]});var Gf="Arrow",Zi=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(Y.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zi.displayName=Gf;var Hf=Zi;function Kf(e){const[t,n]=h.useState(void 0);return ae(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,c=Array.isArray(d)?d[0]:d;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var gr="Popper",[Bi,Ui]=cr(gr),[Xf,Wi]=Bi(gr),Vi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return l.jsx(Xf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Vi.displayName=gr;var Gi="PopperAnchor",Hi=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Wi(Gi,n),s=h.useRef(null),a=ne(t,s),d=h.useRef(null);return h.useEffect(()=>{const c=d.current;d.current=r?.current||s.current,c!==d.current&&i.onAnchorChange(d.current)}),r?null:l.jsx(Y.div,{...o,ref:a})});Hi.displayName=Gi;var vr="PopperContent",[Yf,qf]=Bi(vr),Ki=h.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:$=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,g=Wi(vr,n),[b,y]=h.useState(null),x=ne(t,R=>y(R)),[w,S]=h.useState(null),P=Kf(w),_=P?.width??0,O=P?.height??0,L=r+(i!=="center"?"-"+i:""),F=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(c)?c:[c],N=z.length>0,M={padding:F,boundary:z.filter(Qf),altBoundary:N},{refs:I,floatingStyles:Z,placement:T,isPositioned:D,middlewareData:E}=Lf({strategy:"fixed",placement:L,whileElementsMounted:(...R)=>Nf(...R,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[Df({mainAxis:o+O,alignmentAxis:s}),d&&zf({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Zf():void 0,...M}),d&&Bf({...M}),Uf({...M,apply:({elements:R,rects:X,availableWidth:ie,availableHeight:U})=>{const{width:V,height:q}=X.reference,ue=R.floating.style;ue.setProperty("--radix-popper-available-width",`${ie}px`),ue.setProperty("--radix-popper-available-height",`${U}px`),ue.setProperty("--radix-popper-anchor-width",`${V}px`),ue.setProperty("--radix-popper-anchor-height",`${q}px`)}}),w&&Vf({element:w,padding:a}),e2({arrowWidth:_,arrowHeight:O}),$&&Wf({strategy:"referenceHidden",...M})]}),[B,Q]=qi(T),ee=Ze(v);ae(()=>{D&&ee?.()},[D,ee]);const ct=E.arrow?.x,lt=E.arrow?.y,Ne=E.arrow?.centerOffset!==0,[Ve,Fe]=h.useState();return ae(()=>{b&&Fe(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:D?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ve,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Yf,{scope:n,placedSide:B,onArrowChange:S,arrowX:ct,arrowY:lt,shouldHideArrow:Ne,children:l.jsx(Y.div,{"data-side":B,"data-align":Q,...p,ref:x,style:{...p.style,animation:D?void 0:"none"}})})})});Ki.displayName=vr;var Xi="PopperArrow",Jf={top:"bottom",right:"left",bottom:"top",left:"right"},Yi=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=qf(Xi,r),s=Jf[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(Hf,{...o,ref:n,style:{...o.style,display:"block"}})})});Yi.displayName=Xi;function Qf(e){return e!==null}var e2=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[c,u]=qi(n),f={start:"0%",center:"50%",end:"100%"}[u],$=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+d/2;let v="",p="";return c==="bottom"?(v=s?f:`${$}px`,p=`${-d}px`):c==="top"?(v=s?f:`${$}px`,p=`${r.floating.height+d}px`):c==="right"?(v=`${-d}px`,p=s?f:`${m}px`):c==="left"&&(v=`${r.floating.width+d}px`,p=s?f:`${m}px`),{data:{x:v,y:p}}}});function qi(e){const[t,n="center"]=e.split("-");return[t,n]}var t2=Vi,n2=Hi,r2=Ki,o2=Yi,i2="Portal",Ji=h.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=h.useState(!1);ae(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Fo.createPortal(l.jsx(Y.div,{...r,ref:t}),s):null});Ji.displayName=i2;var s2=h[" useInsertionEffect ".trim().toString()]||ae;function Ro({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=a2({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const u=h.useRef(e!==void 0);h.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=h.useCallback(u=>{if(a){const f=d2(u)?u(e):u;f!==e&&s.current?.(f)}else i(u)},[a,e,i,s]);return[d,c]}function a2({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return s2(()=>{i.current=t},[t]),h.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function d2(e){return typeof e=="function"}function c2(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Qi=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l2="VisuallyHidden",u2=h.forwardRef((e,t)=>l.jsx(Y.span,{...e,ref:t,style:{...Qi,...e.style}}));u2.displayName=l2;var f2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},He=new WeakMap,At=new WeakMap,It={},wn=0,es=function(e){return e&&(e.host||es(e.parentNode))},$2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=es(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},p2=function(e,t,n,r){var o=$2(t,Array.isArray(e)?e:[e]);It[n]||(It[n]=new WeakMap);var i=It[n],s=[],a=new Set,d=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function($){if(a.has($))u($);else try{var m=$.getAttribute(r),v=m!==null&&m!=="false",p=(He.get($)||0)+1,g=(i.get($)||0)+1;He.set($,p),i.set($,g),s.push($),p===1&&v&&At.set($,!0),g===1&&$.setAttribute(n,"true"),v||$.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",$,b)}})};return u(t),a.clear(),wn++,function(){s.forEach(function(f){var $=He.get(f)-1,m=i.get(f)-1;He.set(f,$),i.set(f,m),$||(At.has(f)||f.removeAttribute(r),At.delete(f)),m||f.removeAttribute(n)}),wn--,wn||(He=new WeakMap,He=new WeakMap,At=new WeakMap,It={})}},h2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=f2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),p2(r,o,n,"aria-hidden")):function(){return null}},ge=function(){return ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ge.apply(this,arguments)};function ts(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function m2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jt="right-scroll-bar-position",Ft="width-before-scroll-bar",g2="with-scroll-bars-hidden",v2="--removed-body-scroll-bar-size";function Cn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function b2(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var y2=typeof window<"u"?h.useLayoutEffect:h.useEffect,Ao=new WeakMap;function x2(e,t){var n=b2(null,function(r){return e.forEach(function(o){return Cn(o,r)})});return y2(function(){var r=Ao.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Cn(a,null)}),i.forEach(function(a){o.has(a)||Cn(a,s)})}Ao.set(n,e)},[e]),n}function w2(e){return e}function C2(e,t){t===void 0&&(t=w2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(d)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return o}function S2(e){e===void 0&&(e={});var t=C2(null);return t.options=ge({async:!0,ssr:!1},e),t}var ns=function(e){var t=e.sideCar,n=ts(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,ge({},n))};ns.isSideCarExport=!0;function _2(e,t){return e.useMedium(t),ns}var rs=S2(),Sn=function(){},sn=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Sn,onWheelCapture:Sn,onTouchMoveCapture:Sn}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,$=e.sideCar,m=e.noRelative,v=e.noIsolation,p=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=ts(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=$,P=x2([n,t]),_=ge(ge({},w),o);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:rs,removeScrollBar:c,shards:f,noRelative:m,noIsolation:v,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),s?h.cloneElement(h.Children.only(a),ge(ge({},_),{ref:P})):h.createElement(y,ge({},_,{className:d,ref:P}),a))});sn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sn.classNames={fullWidth:Ft,zeroRight:jt};var P2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function N2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P2();return t&&e.setAttribute("nonce",t),e}function E2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function R2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var A2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=N2())&&(E2(t,n),R2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},I2=function(){var e=A2();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},os=function(){var e=I2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},O2={left:0,top:0,right:0,gap:0},_n=function(e){return parseInt(e||"",10)||0},T2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[_n(n),_n(r),_n(o)]},k2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return O2;var t=T2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},j2=os(),tt="data-scroll-locked",F2=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
6
+ .`.concat(g2,` {
7
7
  overflow: hidden `).concat(r,`;
8
8
  padding-right: `).concat(a,"px ").concat(r,`;
9
9
  }
@@ -37,10 +37,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
37
37
  }
38
38
 
39
39
  body[`).concat(tt,`] {
40
- `).concat(g2,": ").concat(a,`px;
40
+ `).concat(v2,": ").concat(a,`px;
41
41
  }
42
- `)},Io=function(){var e=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(e)?e:0},F2=function(){h.useEffect(function(){return document.body.setAttribute(tt,(Io()+1).toString()),function(){var e=Io()-1;e<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,e.toString())}},[])},L2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;F2();var i=h.useMemo(function(){return T2(o)},[o]);return h.createElement(k2,{styles:j2(i,!t,o,n?"":"!important")})},zn=!1;if(typeof window<"u")try{var Ot=Object.defineProperty({},"passive",{get:function(){return zn=!0,!0}});window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{zn=!1}var Ke=zn?{passive:!1}:!1,M2=function(e){return e.tagName==="TEXTAREA"},os=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!M2(e)&&n[t]==="visible")},D2=function(e){return os(e,"overflowY")},z2=function(e){return os(e,"overflowX")},Oo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=is(e,r);if(o){var i=ss(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Z2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},B2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},is=function(e,t){return e==="v"?D2(t):z2(t)},ss=function(e,t){return e==="v"?Z2(t):B2(t)},U2=function(e,t){return e==="h"&&t==="rtl"?-1:1},W2=function(e,t,n,r,o){var i=U2(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),c=!1,u=s>0,f=0,p=0;do{if(!a)break;var m=ss(e,a),v=m[0],$=m[1],g=m[2],b=$-g-i*v;(v||b)&&is(e,a)&&(f+=b,p+=v);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(p)<1)&&(c=!0),c},Tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},To=function(e){return[e.deltaX,e.deltaY]},ko=function(e){return e&&"current"in e?e.current:e},V2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},G2=function(e){return`
42
+ `)},Io=function(){var e=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(e)?e:0},L2=function(){h.useEffect(function(){return document.body.setAttribute(tt,(Io()+1).toString()),function(){var e=Io()-1;e<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,e.toString())}},[])},M2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;L2();var i=h.useMemo(function(){return k2(o)},[o]);return h.createElement(j2,{styles:F2(i,!t,o,n?"":"!important")})},zn=!1;if(typeof window<"u")try{var Ot=Object.defineProperty({},"passive",{get:function(){return zn=!0,!0}});window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch{zn=!1}var Ke=zn?{passive:!1}:!1,D2=function(e){return e.tagName==="TEXTAREA"},is=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!D2(e)&&n[t]==="visible")},z2=function(e){return is(e,"overflowY")},Z2=function(e){return is(e,"overflowX")},Oo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ss(e,r);if(o){var i=as(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},U2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ss=function(e,t){return e==="v"?z2(t):Z2(t)},as=function(e,t){return e==="v"?B2(t):U2(t)},W2=function(e,t){return e==="h"&&t==="rtl"?-1:1},V2=function(e,t,n,r,o){var i=W2(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),c=!1,u=s>0,f=0,$=0;do{if(!a)break;var m=as(e,a),v=m[0],p=m[1],g=m[2],b=p-g-i*v;(v||b)&&ss(e,a)&&(f+=b,$+=v);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs($)<1)&&(c=!0),c},Tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},To=function(e){return[e.deltaX,e.deltaY]},ko=function(e){return e&&"current"in e?e.current:e},G2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},H2=function(e){return`
43
43
  .block-interactivity-`.concat(e,` {pointer-events: none;}
44
44
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
45
- `)},H2=0,Xe=[];function K2(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(H2++)[0],i=h.useState(rs)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var $=h2([e.lockRef.current],(e.shards||[]).map(ko),!0).filter(Boolean);return $.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),$.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function($,g){if("touches"in $&&$.touches.length===2||$.type==="wheel"&&$.ctrlKey)return!s.current.allowPinchZoom;var b=Tt($),y=n.current,x="deltaX"in $?$.deltaX:y[0]-b[0],w="deltaY"in $?$.deltaY:y[1]-b[1],S,P=$.target,_=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in $&&_==="h"&&P.type==="range")return!1;var O=Oo(_,P);if(!O)return!0;if(O?S=_:(S=_==="v"?"h":"v",O=Oo(_,P)),!O)return!1;if(!r.current&&"changedTouches"in $&&(x||w)&&(r.current=S),!S)return!0;var L=r.current||S;return W2(L,g,$,L==="h"?x:w)},[]),d=h.useCallback(function($){var g=$;if(!(!Xe.length||Xe[Xe.length-1]!==i)){var b="deltaY"in g?To(g):Tt(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&V2(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(ko).filter(Boolean).filter(function(S){return S.contains(g.target)}),w=x.length>0?a(g,x[0]):!s.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),c=h.useCallback(function($,g,b,y){var x={name:$,delta:g,target:b,should:y,shadowParent:X2(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),u=h.useCallback(function($){n.current=Tt($),r.current=void 0},[]),f=h.useCallback(function($){c($.type,To($),$.target,a($,e.lockRef.current))},[]),p=h.useCallback(function($){c($.type,Tt($),$.target,a($,e.lockRef.current))},[]);h.useEffect(function(){return Xe.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",d,Ke),document.addEventListener("touchmove",d,Ke),document.addEventListener("touchstart",u,Ke),function(){Xe=Xe.filter(function($){return $!==i}),document.removeEventListener("wheel",d,Ke),document.removeEventListener("touchmove",d,Ke),document.removeEventListener("touchstart",u,Ke)}},[]);var m=e.removeScrollBar,v=e.inert;return h.createElement(h.Fragment,null,v?h.createElement(i,{styles:G2(o)}):null,m?h.createElement(L2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function X2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Y2=S2(ns,K2);var as=h.forwardRef(function(e,t){return h.createElement(sn,ge({},e,{ref:t,sideCar:Y2}))});as.classNames=sn.classNames;var q2=[" ","Enter","ArrowUp","ArrowDown"],J2=[" ","Enter"],Ue="Select",[an,dn,Q2]=u1(Ue),[dt]=cr(Ue,[Q2,Bi]),cn=Bi(),[e3,ke]=dt(Ue),[t3,n3]=dt(Ue),ds=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:d,dir:c,name:u,autoComplete:f,disabled:p,required:m,form:v}=e,$=cn(t),[g,b]=h.useState(null),[y,x]=h.useState(null),[w,S]=h.useState(!1),P=$1(c),[_,O]=Ro({prop:r,defaultProp:o??!1,onChange:i,caller:Ue}),[L,F]=Ro({prop:s,defaultProp:a,onChange:d,caller:Ue}),z=h.useRef(null),N=g?v||!!g.closest("form"):!0,[M,A]=h.useState(new Set),Z=Array.from(M).map(T=>T.props.value).join(";");return l.jsx(e2,{...$,children:l.jsxs(e3,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:lr(),value:L,onValueChange:F,open:_,onOpenChange:O,dir:P,triggerPointerDownPosRef:z,disabled:p,children:[l.jsx(an.Provider,{scope:t,children:l.jsx(t3,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(T=>{A(D=>new Set(D).add(T))},[]),onNativeOptionRemove:h.useCallback(T=>{A(D=>{const E=new Set(D);return E.delete(T),E})},[]),children:n})}),N?l.jsxs(Ns,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:L,onChange:T=>F(T.target.value),disabled:p,form:v,children:[L===void 0?l.jsx("option",{value:""}):null,Array.from(M)]},Z):null]})})};ds.displayName=Ue;var cs="SelectTrigger",ls=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=cn(n),s=ke(cs,n),a=s.disabled||r,d=ne(t,s.onTriggerChange),c=dn(n),u=h.useRef("touch"),[f,p,m]=Rs($=>{const g=c().filter(x=>!x.disabled),b=g.find(x=>x.value===s.value),y=As(g,$,b);y!==void 0&&s.onValueChange(y.value)}),v=$=>{a||(s.onOpenChange(!0),m()),$&&(s.triggerPointerDownPosRef.current={x:Math.round($.pageX),y:Math.round($.pageY)})};return l.jsx(t2,{asChild:!0,...i,children:l.jsx(Y.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Es(s.value)?"":void 0,...o,ref:d,onClick:J(o.onClick,$=>{$.currentTarget.focus(),u.current!=="mouse"&&v($)}),onPointerDown:J(o.onPointerDown,$=>{u.current=$.pointerType;const g=$.target;g.hasPointerCapture($.pointerId)&&g.releasePointerCapture($.pointerId),$.button===0&&$.ctrlKey===!1&&$.pointerType==="mouse"&&(v($),$.preventDefault())}),onKeyDown:J(o.onKeyDown,$=>{const g=f.current!=="";!($.ctrlKey||$.altKey||$.metaKey)&&$.key.length===1&&p($.key),!(g&&$.key===" ")&&q2.includes($.key)&&(v(),$.preventDefault())})})})});ls.displayName=cs;var us="SelectValue",fs=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,d=ke(us,n),{onValueNodeHasChildrenChange:c}=d,u=i!==void 0,f=ne(t,d.onValueNodeChange);return ae(()=>{c(u)},[c,u]),l.jsx(Y.span,{...a,ref:f,style:{pointerEvents:"none"},children:Es(d.value)?l.jsx(l.Fragment,{children:s}):i})});fs.displayName=us;var r3="SelectIcon",$s=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(Y.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});$s.displayName=r3;var o3="SelectPortal",ps=e=>l.jsx(qi,{asChild:!0,...e});ps.displayName=o3;var We="SelectContent",hs=h.forwardRef((e,t)=>{const n=ke(We,e.__scopeSelect),[r,o]=h.useState();if(ae(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Gt.createPortal(l.jsx(ms,{scope:e.__scopeSelect,children:l.jsx(an.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),i):null}return l.jsx(gs,{...e,ref:t})});hs.displayName=We;var $e=10,[ms,je]=dt(We),i3="SelectContentImpl",s3=pt.createSlot("SelectContent.RemoveScroll"),gs=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:d,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:$,avoidCollisions:g,...b}=e,y=ke(We,n),[x,w]=h.useState(null),[S,P]=h.useState(null),_=ne(t,R=>w(R)),[O,L]=h.useState(null),[F,z]=h.useState(null),N=dn(n),[M,A]=h.useState(!1),Z=h.useRef(!1);h.useEffect(()=>{if(x)return p2(x)},[x]),S1();const T=h.useCallback(R=>{const[X,...ie]=N().map(q=>q.ref.current),[U]=ie.slice(-1),V=document.activeElement;for(const q of R)if(q===V||(q?.scrollIntoView({block:"nearest"}),q===X&&S&&(S.scrollTop=0),q===U&&S&&(S.scrollTop=S.scrollHeight),q?.focus(),document.activeElement!==V))return},[N,S]),D=h.useCallback(()=>T([O,x]),[T,O,x]);h.useEffect(()=>{M&&D()},[M,D]);const{onOpenChange:E,triggerPointerDownPosRef:B}=y;h.useEffect(()=>{if(x){let R={x:0,y:0};const X=U=>{R={x:Math.abs(Math.round(U.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(U.pageY)-(B.current?.y??0))}},ie=U=>{R.x<=10&&R.y<=10?U.preventDefault():x.contains(U.target)||E(!1),document.removeEventListener("pointermove",X),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",ie,{capture:!0})}}},[x,E,B]),h.useEffect(()=>{const R=()=>E(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[E]);const[Q,ee]=Rs(R=>{const X=N().filter(V=>!V.disabled),ie=X.find(V=>V.ref.current===document.activeElement),U=As(X,R,ie);U&&setTimeout(()=>U.ref.current.focus())}),ct=h.useCallback((R,X,ie)=>{const U=!Z.current&&!ie;(y.value!==void 0&&y.value===X||U)&&(L(R),U&&(Z.current=!0))},[y.value]),lt=h.useCallback(()=>x?.focus(),[x]),Ne=h.useCallback((R,X,ie)=>{const U=!Z.current&&!ie;(y.value!==void 0&&y.value===X||U)&&z(R)},[y.value]),Ve=r==="popper"?Zn:vs,Fe=Ve===Zn?{side:a,sideOffset:d,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:$,avoidCollisions:g}:{};return l.jsx(ms,{scope:n,content:x,viewport:S,onViewportChange:P,itemRefCallback:ct,selectedItem:O,onItemLeave:lt,itemTextRefCallback:Ne,focusSelectedItem:D,selectedItemText:F,position:r,isPositioned:M,searchRef:Q,children:l.jsx(as,{as:s3,allowPinchZoom:!0,children:l.jsx(Ni,{asChild:!0,trapped:y.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:J(o,R=>{y.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:l.jsx(_i,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsx(Ve,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:R=>R.preventDefault(),...b,...Fe,onPlaced:()=>A(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:J(b.onKeyDown,R=>{const X=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!X&&R.key.length===1&&ee(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let U=N().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(R.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const V=R.target,q=U.indexOf(V);U=U.slice(q+1)}setTimeout(()=>T(U)),R.preventDefault()}})})})})})})});gs.displayName=i3;var a3="SelectItemAlignedPosition",vs=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ke(We,n),s=je(We,n),[a,d]=h.useState(null),[c,u]=h.useState(null),f=ne(t,_=>u(_)),p=dn(n),m=h.useRef(!1),v=h.useRef(!0),{viewport:$,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=s,x=h.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&$&&g&&b){const _=i.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),L=i.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(i.dir!=="rtl"){const V=F.left-O.left,q=L.left-V,ue=_.left-q,Le=_.width+ue,ln=Math.max(Le,O.width),un=window.innerWidth-$e,fn=co(q,[$e,Math.max($e,un-ln)]);a.style.minWidth=Le+"px",a.style.left=fn+"px"}else{const V=O.right-F.right,q=window.innerWidth-L.right-V,ue=window.innerWidth-_.right-q,Le=_.width+ue,ln=Math.max(Le,O.width),un=window.innerWidth-$e,fn=co(q,[$e,Math.max($e,un-ln)]);a.style.minWidth=Le+"px",a.style.right=fn+"px"}const z=p(),N=window.innerHeight-$e*2,M=$.scrollHeight,A=window.getComputedStyle(c),Z=parseInt(A.borderTopWidth,10),T=parseInt(A.paddingTop,10),D=parseInt(A.borderBottomWidth,10),E=parseInt(A.paddingBottom,10),B=Z+T+M+E+D,Q=Math.min(g.offsetHeight*5,B),ee=window.getComputedStyle($),ct=parseInt(ee.paddingTop,10),lt=parseInt(ee.paddingBottom,10),Ne=_.top+_.height/2-$e,Ve=N-Ne,Fe=g.offsetHeight/2,R=g.offsetTop+Fe,X=Z+T+R,ie=B-X;if(X<=Ne){const V=z.length>0&&g===z[z.length-1].ref.current;a.style.bottom="0px";const q=c.clientHeight-$.offsetTop-$.offsetHeight,ue=Math.max(Ve,Fe+(V?lt:0)+q+D),Le=X+ue;a.style.height=Le+"px"}else{const V=z.length>0&&g===z[0].ref.current;a.style.top="0px";const ue=Math.max(Ne,Z+$.offsetTop+(V?ct:0)+Fe)+ie;a.style.height=ue+"px",$.scrollTop=X-Ne+$.offsetTop}a.style.margin=`${$e}px 0`,a.style.minHeight=Q+"px",a.style.maxHeight=N+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,a,c,$,g,b,i.dir,r]);ae(()=>x(),[x]);const[w,S]=h.useState();ae(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const P=h.useCallback(_=>{_&&v.current===!0&&(x(),y?.(),v.current=!1)},[x,y]);return l.jsx(c3,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:l.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:l.jsx(Y.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});vs.displayName=a3;var d3="SelectPopperPosition",Zn=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=$e,...i}=e,s=cn(n);return l.jsx(n2,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zn.displayName=d3;var[c3,br]=dt(We,{}),Bn="SelectViewport",bs=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=je(Bn,n),s=br(Bn,n),a=ne(t,i.onViewportChange),d=h.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(an.Slot,{scope:n,children:l.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=s;if(p?.current&&f){const m=Math.abs(d.current-u.scrollTop);if(m>0){const v=window.innerHeight-$e*2,$=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),b=Math.max($,g);if(b<v){const y=b+m,x=Math.min(v,y),w=y-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});bs.displayName=Bn;var ys="SelectGroup",[l3,u3]=dt(ys),f3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=lr();return l.jsx(l3,{scope:n,id:o,children:l.jsx(Y.div,{role:"group","aria-labelledby":o,...r,ref:t})})});f3.displayName=ys;var xs="SelectLabel",$3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=u3(xs,n);return l.jsx(Y.div,{id:o.id,...r,ref:t})});$3.displayName=xs;var Wt="SelectItem",[p3,ws]=dt(Wt),Cs=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=ke(Wt,n),d=je(Wt,n),c=a.value===r,[u,f]=h.useState(i??""),[p,m]=h.useState(!1),v=ne(t,y=>d.itemRefCallback?.(y,r,o)),$=lr(),g=h.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(p3,{scope:n,value:r,disabled:o,textId:$,isSelected:c,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:l.jsx(an.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:l.jsx(Y.div,{role:"option","aria-labelledby":$,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:J(s.onFocus,()=>m(!0)),onBlur:J(s.onBlur,()=>m(!1)),onClick:J(s.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:J(s.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:J(s.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:J(s.onPointerMove,y=>{g.current=y.pointerType,o?d.onItemLeave?.():g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(s.onPointerLeave,y=>{y.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:J(s.onKeyDown,y=>{d.searchRef?.current!==""&&y.key===" "||(J2.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});Cs.displayName=Wt;var $t="SelectItemText",Ss=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=ke($t,n),a=je($t,n),d=ws($t,n),c=n3($t,n),[u,f]=h.useState(null),p=ne(t,b=>f(b),d.onItemTextChange,b=>a.itemTextRefCallback?.(b,d.value,d.disabled)),m=u?.textContent,v=h.useMemo(()=>l.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:$,onNativeOptionRemove:g}=c;return ae(()=>($(v),()=>g(v)),[$,g,v]),l.jsxs(l.Fragment,{children:[l.jsx(Y.span,{id:d.textId,...i,ref:p}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Gt.createPortal(i.children,s.valueNode):null]})});Ss.displayName=$t;var _s="SelectItemIndicator",h3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ws(_s,n).isSelected?l.jsx(Y.span,{"aria-hidden":!0,...r,ref:t}):null});h3.displayName=_s;var Un="SelectScrollUpButton",m3=h.forwardRef((e,t)=>{const n=je(Un,e.__scopeSelect),r=br(Un,e.__scopeSelect),[o,i]=h.useState(!1),s=ne(t,r.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=d.scrollTop>0;i(c)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(Ps,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});m3.displayName=Un;var Wn="SelectScrollDownButton",g3=h.forwardRef((e,t)=>{const n=je(Wn,e.__scopeSelect),r=br(Wn,e.__scopeSelect),[o,i]=h.useState(!1),s=ne(t,r.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<c;i(u)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(Ps,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});g3.displayName=Wn;var Ps=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=je("SelectScrollButton",n),s=h.useRef(null),a=dn(n),d=h.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return h.useEffect(()=>()=>d(),[d]),ae(()=>{a().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),l.jsx(Y.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{d()})})}),v3="SelectSeparator",b3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(Y.div,{"aria-hidden":!0,...r,ref:t})});b3.displayName=v3;var Vn="SelectArrow",y3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn(n),i=ke(Vn,n),s=je(Vn,n);return i.open&&s.position==="popper"?l.jsx(r2,{...o,...r,ref:t}):null});y3.displayName=Vn;var x3="SelectBubbleInput",Ns=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=ne(r,o),s=d2(t);return h.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==t&&u){const f=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(f)}},[s,t]),l.jsx(Y.select,{...n,style:{...Ji,...n.style},ref:i,defaultValue:t})});Ns.displayName=x3;function Es(e){return e===""||e===void 0}function Rs(e){const t=Ze(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(s=>{const a=n.current+s;t(a),(function d(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function As(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=w3(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const d=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function w3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var C3=ds,S3=ls,_3=fs,P3=$s,N3=ps,E3=hs,R3=bs,A3=Cs,I3=Ss;const Vt=te.forwardRef(({value:e,onChange:t,disabled:n=!1,options:r=[],placeholder:o="Select an option",label:i,className:s},a)=>{const d=r.find(f=>f.id===e),c=d?.text||o,u=f=>{t&&t(f)};return l.jsxs(C3,{value:e,onValueChange:u,disabled:n,children:[l.jsxs(S3,{ref:a,className:I("flex items-center gap-2","w-full","px-4 py-3","rounded","border border-[#ecebf0]","bg-white","text-left","transition-colors","hover:border-[#a29fba]","focus:outline-none focus:ring-0 focus:border-[#a29fba]","data-[state=open]:border-[#a29fba]",n&&"opacity-50 cursor-not-allowed bg-[#f4f4f4]",s),"data-testid":"select-trigger","aria-label":i||o,children:[l.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[(d||i)&&l.jsx("span",{className:"text-xs leading-normal text-[#575385]","data-testid":"select-label",children:i||o}),l.jsx(_3,{asChild:!0,children:l.jsx("span",{className:I("text-sm leading-4","text-[#312e4d]",!d&&!i&&"text-base leading-5"),"data-testid":"select-value",children:c})})]}),l.jsx(P3,{asChild:!0,children:l.jsx(re.ChevronDown,{size:16,className:"text-[#312e4d] shrink-0","data-testid":"select-icon"})})]}),l.jsx(N3,{children:l.jsx(E3,{className:I("overflow-hidden","bg-white","rounded","border border-[#ecebf0]","shadow-lg","z-50","w-[var(--radix-select-trigger-width)]"),position:"popper",sideOffset:4,"data-testid":"select-content",children:l.jsx(R3,{className:"p-1",children:r.map(f=>l.jsx(A3,{value:f.id,className:I("relative flex items-center","px-4 py-2","text-sm leading-4 text-[#312e4d]","rounded","cursor-pointer","select-none","outline-none","transition-colors","hover:bg-[#f4f4f4]","focus:bg-[#f4f4f4]","data-[state=checked]:bg-[#ecebf0]","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none"),"data-testid":`select-option-${f.id}`,children:l.jsx(I3,{children:f.text})},f.id))})})})]})});Vt.displayName="Select";const Is=h.forwardRef(({status:e=!1,disabled:t=!1,onChange:n,className:r,...o},i)=>l.jsx(yr.Root,{ref:i,checked:e,onCheckedChange:n,disabled:t,className:I("relative inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#00995a] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",e?"bg-[#00995a]":"bg-[#e0e0e0]",r),...o,children:l.jsx(yr.Thumb,{className:I("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg transition-transform duration-200 ease-in-out",e?"translate-x-5":"translate-x-0")})}));Is.displayName="Switcher";function O3({columns:e,data:t,rowsPerPage:n=10,showPagination:r=!0,className:o,rowClassName:i,onPageChange:s,currentPage:a,loading:d=!1,emptyMessage:c="No data available"}){const[u,f]=te.useState(1),p=a!==void 0?a:u,m=w=>{a===void 0&&f(w),s?.(w)},v=Math.ceil(t.length/n),$=(p-1)*n,g=$+n,b=t.slice($,g),y=(w,S,P)=>{if(w.render)return w.render(S,P);const _=S[w.key];return _==null?"-":typeof _=="object"&&"primary"in _?l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:_.primary}),_.secondary&&l.jsx("span",{className:"text-xs leading-normal text-[#575385]",children:_.secondary})]}):l.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:String(_)})},x=(w,S)=>typeof i=="function"?i(w,S):i;return l.jsxs("div",{className:I("bg-white rounded-xl p-8","flex flex-col gap-4",o),"data-testid":"table-container",children:[l.jsxs("div",{className:"w-full","data-testid":"table-body",children:[l.jsx("div",{className:I("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]","font-semibold text-sm leading-[18px] text-[#312e4d]"),"data-testid":"table-header",children:e.map(w=>l.jsx("div",{className:I("flex-1 min-w-0",w.className),"data-testid":`table-header-${w.key}`,children:w.label},w.key))}),d?l.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-loading",children:l.jsx("span",{className:"text-[#a29fba]",children:"Loading..."})}):b.length===0?l.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-empty",children:l.jsx("span",{className:"text-[#a29fba]",children:c})}):b.map((w,S)=>l.jsx("div",{className:I("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]",x(w,S)),"data-testid":`table-row-${S}`,children:e.map(P=>l.jsx("div",{className:I("flex-1 min-w-0",P.className),"data-testid":`table-cell-${S}-${P.key}`,children:y(P,w,S)},P.key))},S))]}),r&&v>1&&!d&&l.jsx("div",{className:"flex justify-end","data-testid":"table-pagination",children:l.jsx(Ci,{currentPage:p,totalPages:v,onPageChange:m})})]})}const T3=({title:e="Table Header",showTitle:t=!1,searchPlaceholder:n="Search by...",searchValue:r="",onSearchChange:o,filters:i=[],showFilters:s=!0,buttons:a=[],showButtons:d=!0,cards:c=[],showCards:u=!1,className:f})=>l.jsxs("div",{className:I("bg-white rounded-xl p-8","flex flex-col gap-4",f),"data-testid":"table-header",children:[t&&e&&l.jsx("h2",{className:"text-xl font-semibold text-[#312e4d]","data-testid":"table-header-title",children:e}),u&&c.length>0&&l.jsx("div",{className:"flex gap-4 w-full","data-testid":"table-header-cards",children:c.map((p,m)=>l.jsxs("div",{className:"bg-white border border-[#ecebf0] rounded-xl p-4 flex-1 flex gap-2","data-testid":`table-header-card-${m}`,children:[p.icon&&l.jsx("div",{className:"shrink-0","data-testid":`table-header-card-icon-${m}`,children:p.icon}),l.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[l.jsx("span",{className:"text-base font-medium text-[#575385] leading-5",children:p.label}),l.jsx("span",{className:"text-xl font-semibold text-[#312e4d] leading-[22px]",children:p.value})]})]},m))}),l.jsxs("div",{className:"relative","data-testid":"table-header-search",children:[l.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 pointer-events-none",children:l.jsx(re.Search,{size:16,className:"text-[#312e4d]"})}),l.jsx("input",{type:"text",value:r,onChange:p=>o?.(p.target.value),placeholder:n,className:I("w-full h-11 pl-10 pr-4 py-3","border border-[#ecebf0] rounded","text-base leading-5","placeholder:text-[#a29fba]","focus:outline-none focus:border-[#a29fba]","transition-colors"),"data-testid":"table-header-search-input"})]}),l.jsxs("div",{className:"flex gap-4 items-center w-full",children:[s&&i.length>0&&l.jsxs("div",{className:"flex gap-4 items-center","data-testid":"table-header-filters",children:[l.jsxs("div",{className:"flex items-center gap-2 py-3",children:[l.jsx(re.ListFilter,{size:16,className:"text-[#312e4d]"}),l.jsx("span",{className:"text-base leading-5 text-[#312e4d]",children:"Filter by"})]}),i.map((p,m)=>l.jsx("div",{className:"min-w-[120px]","data-testid":`table-header-filter-${m}`,children:p.options&&p.options.length>0?l.jsx(Vt,{options:p.options,value:p.value,onChange:v=>p.onChange?.(v),placeholder:p.placeholder||p.label,className:"h-11"}):l.jsxs("button",{className:I("flex items-center gap-2","border border-[#ecebf0] rounded","px-4 py-3 h-11","text-base leading-5 text-[#312e4d]","hover:border-[#a29fba] transition-colors"),onClick:()=>p.onChange?.(""),children:[l.jsx("span",{children:p.placeholder||p.label}),l.jsx(re.ChevronDown,{size:16})]})},p.key))]}),d&&a.length>0&&l.jsx("div",{className:"flex gap-4 items-center ml-auto","data-testid":"table-header-buttons",children:a.map((p,m)=>l.jsx("div",{"data-testid":`table-header-button-${m}`,children:p.isDropdown&&p.dropdownOptions?l.jsx("div",{className:"relative",children:l.jsx(Vt,{options:p.dropdownOptions,value:p.dropdownValue,onChange:v=>p.onDropdownChange?.(v),placeholder:p.label,className:I("h-11",p.variant==="outline"?"border-[#00b56b]":"")})}):l.jsx(Kn,{variant:p.variant==="outline"?"secondary":"primary",onClick:p.onClick,className:"h-11",children:p.label})},m))})]})]}),Os=h.forwardRef(({type:e="light",text:t,icon:n,onClose:r,className:o,...i},s)=>{const d={light:{container:"bg-[#ecebf0]",text:"text-[#575385]",iconColor:"text-[#312e4d]",closeColor:"text-[#312e4d]"},dark:{container:"bg-[#3f3c5e]",text:"text-white",iconColor:"text-white",closeColor:"text-white"}}[e],c=l.jsx(re.CheckCircle,{size:16,className:d.iconColor});return l.jsxs("div",{ref:s,className:I("flex items-center gap-3 p-3 rounded",d.container,o),role:"status","aria-live":"polite",...i,children:[l.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[l.jsx("div",{className:"flex-shrink-0",children:n||c}),l.jsx("div",{className:I("text-base leading-5 whitespace-nowrap",d.text),children:t})]}),r&&l.jsx("button",{type:"button",onClick:r,className:I("flex-shrink-0 opacity-99 hover:opacity-100 transition-opacity",d.closeColor),"aria-label":"Cerrar notificación",children:l.jsx(re.X,{size:12})})]})});Os.displayName="Toasts";exports.ActionCard=Uo;exports.BannerAlerts=Wo;exports.BrandIcons=Vo;exports.Button=Kn;exports.CardsGrid=Go;exports.FeatureCard=Ho;exports.Input=hi;exports.KPICard=vi;exports.KPICardCustom=gi;exports.KPIComparison=dr;exports.KPIComparisonCustom=mi;exports.LOGO_ASSETS=Me;exports.Loader=bi;exports.OptionCard=yi;exports.OrderCard=wi;exports.OrderCardCustom=xi;exports.PaginationLib=Ci;exports.Select=Vt;exports.Switcher=Is;exports.Table=O3;exports.TableHeader=T3;exports.Toasts=Os;exports.buttonVariants=Nn;
45
+ `)},K2=0,Xe=[];function X2(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(K2++)[0],i=h.useState(os)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=m2([e.lockRef.current],(e.shards||[]).map(ko),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var b=Tt(p),y=n.current,x="deltaX"in p?p.deltaX:y[0]-b[0],w="deltaY"in p?p.deltaY:y[1]-b[1],S,P=p.target,_=Math.abs(x)>Math.abs(w)?"h":"v";if("touches"in p&&_==="h"&&P.type==="range")return!1;var O=Oo(_,P);if(!O)return!0;if(O?S=_:(S=_==="v"?"h":"v",O=Oo(_,P)),!O)return!1;if(!r.current&&"changedTouches"in p&&(x||w)&&(r.current=S),!S)return!0;var L=r.current||S;return V2(L,g,p,L==="h"?x:w)},[]),d=h.useCallback(function(p){var g=p;if(!(!Xe.length||Xe[Xe.length-1]!==i)){var b="deltaY"in g?To(g):Tt(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&G2(S.delta,b)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(ko).filter(Boolean).filter(function(S){return S.contains(g.target)}),w=x.length>0?a(g,x[0]):!s.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),c=h.useCallback(function(p,g,b,y){var x={name:p,delta:g,target:b,should:y,shadowParent:Y2(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(w){return w!==x})},1)},[]),u=h.useCallback(function(p){n.current=Tt(p),r.current=void 0},[]),f=h.useCallback(function(p){c(p.type,To(p),p.target,a(p,e.lockRef.current))},[]),$=h.useCallback(function(p){c(p.type,Tt(p),p.target,a(p,e.lockRef.current))},[]);h.useEffect(function(){return Xe.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:$}),document.addEventListener("wheel",d,Ke),document.addEventListener("touchmove",d,Ke),document.addEventListener("touchstart",u,Ke),function(){Xe=Xe.filter(function(p){return p!==i}),document.removeEventListener("wheel",d,Ke),document.removeEventListener("touchmove",d,Ke),document.removeEventListener("touchstart",u,Ke)}},[]);var m=e.removeScrollBar,v=e.inert;return h.createElement(h.Fragment,null,v?h.createElement(i,{styles:H2(o)}):null,m?h.createElement(M2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Y2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const q2=_2(rs,X2);var ds=h.forwardRef(function(e,t){return h.createElement(sn,ge({},e,{ref:t,sideCar:q2}))});ds.classNames=sn.classNames;var J2=[" ","Enter","ArrowUp","ArrowDown"],Q2=[" ","Enter"],Ue="Select",[an,dn,e3]=f1(Ue),[dt]=cr(Ue,[e3,Ui]),cn=Ui(),[t3,ke]=dt(Ue),[n3,r3]=dt(Ue),cs=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:d,dir:c,name:u,autoComplete:f,disabled:$,required:m,form:v}=e,p=cn(t),[g,b]=h.useState(null),[y,x]=h.useState(null),[w,S]=h.useState(!1),P=p1(c),[_,O]=Ro({prop:r,defaultProp:o??!1,onChange:i,caller:Ue}),[L,F]=Ro({prop:s,defaultProp:a,onChange:d,caller:Ue}),z=h.useRef(null),N=g?v||!!g.closest("form"):!0,[M,I]=h.useState(new Set),Z=Array.from(M).map(T=>T.props.value).join(";");return l.jsx(t2,{...p,children:l.jsxs(t3,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:lr(),value:L,onValueChange:F,open:_,onOpenChange:O,dir:P,triggerPointerDownPosRef:z,disabled:$,children:[l.jsx(an.Provider,{scope:t,children:l.jsx(n3,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(T=>{I(D=>new Set(D).add(T))},[]),onNativeOptionRemove:h.useCallback(T=>{I(D=>{const E=new Set(D);return E.delete(T),E})},[]),children:n})}),N?l.jsxs(Es,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:L,onChange:T=>F(T.target.value),disabled:$,form:v,children:[L===void 0?l.jsx("option",{value:""}):null,Array.from(M)]},Z):null]})})};cs.displayName=Ue;var ls="SelectTrigger",us=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=cn(n),s=ke(ls,n),a=s.disabled||r,d=ne(t,s.onTriggerChange),c=dn(n),u=h.useRef("touch"),[f,$,m]=As(p=>{const g=c().filter(x=>!x.disabled),b=g.find(x=>x.value===s.value),y=Is(g,p,b);y!==void 0&&s.onValueChange(y.value)}),v=p=>{a||(s.onOpenChange(!0),m()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return l.jsx(n2,{asChild:!0,...i,children:l.jsx(Y.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Rs(s.value)?"":void 0,...o,ref:d,onClick:J(o.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&v(p)}),onPointerDown:J(o.onPointerDown,p=>{u.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:J(o.onKeyDown,p=>{const g=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&$(p.key),!(g&&p.key===" ")&&J2.includes(p.key)&&(v(),p.preventDefault())})})})});us.displayName=ls;var fs="SelectValue",$s=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,d=ke(fs,n),{onValueNodeHasChildrenChange:c}=d,u=i!==void 0,f=ne(t,d.onValueNodeChange);return ae(()=>{c(u)},[c,u]),l.jsx(Y.span,{...a,ref:f,style:{pointerEvents:"none"},children:Rs(d.value)?l.jsx(l.Fragment,{children:s}):i})});$s.displayName=fs;var o3="SelectIcon",ps=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(Y.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ps.displayName=o3;var i3="SelectPortal",hs=e=>l.jsx(Ji,{asChild:!0,...e});hs.displayName=i3;var We="SelectContent",ms=h.forwardRef((e,t)=>{const n=ke(We,e.__scopeSelect),[r,o]=h.useState();if(ae(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Gt.createPortal(l.jsx(gs,{scope:e.__scopeSelect,children:l.jsx(an.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),i):null}return l.jsx(vs,{...e,ref:t})});ms.displayName=We;var $e=10,[gs,je]=dt(We),s3="SelectContentImpl",a3=pt.createSlot("SelectContent.RemoveScroll"),vs=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:d,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:$,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:g,...b}=e,y=ke(We,n),[x,w]=h.useState(null),[S,P]=h.useState(null),_=ne(t,R=>w(R)),[O,L]=h.useState(null),[F,z]=h.useState(null),N=dn(n),[M,I]=h.useState(!1),Z=h.useRef(!1);h.useEffect(()=>{if(x)return h2(x)},[x]),_1();const T=h.useCallback(R=>{const[X,...ie]=N().map(q=>q.ref.current),[U]=ie.slice(-1),V=document.activeElement;for(const q of R)if(q===V||(q?.scrollIntoView({block:"nearest"}),q===X&&S&&(S.scrollTop=0),q===U&&S&&(S.scrollTop=S.scrollHeight),q?.focus(),document.activeElement!==V))return},[N,S]),D=h.useCallback(()=>T([O,x]),[T,O,x]);h.useEffect(()=>{M&&D()},[M,D]);const{onOpenChange:E,triggerPointerDownPosRef:B}=y;h.useEffect(()=>{if(x){let R={x:0,y:0};const X=U=>{R={x:Math.abs(Math.round(U.pageX)-(B.current?.x??0)),y:Math.abs(Math.round(U.pageY)-(B.current?.y??0))}},ie=U=>{R.x<=10&&R.y<=10?U.preventDefault():x.contains(U.target)||E(!1),document.removeEventListener("pointermove",X),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",ie,{capture:!0})}}},[x,E,B]),h.useEffect(()=>{const R=()=>E(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[E]);const[Q,ee]=As(R=>{const X=N().filter(V=>!V.disabled),ie=X.find(V=>V.ref.current===document.activeElement),U=Is(X,R,ie);U&&setTimeout(()=>U.ref.current.focus())}),ct=h.useCallback((R,X,ie)=>{const U=!Z.current&&!ie;(y.value!==void 0&&y.value===X||U)&&(L(R),U&&(Z.current=!0))},[y.value]),lt=h.useCallback(()=>x?.focus(),[x]),Ne=h.useCallback((R,X,ie)=>{const U=!Z.current&&!ie;(y.value!==void 0&&y.value===X||U)&&z(R)},[y.value]),Ve=r==="popper"?Zn:bs,Fe=Ve===Zn?{side:a,sideOffset:d,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:$,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:g}:{};return l.jsx(gs,{scope:n,content:x,viewport:S,onViewportChange:P,itemRefCallback:ct,selectedItem:O,onItemLeave:lt,itemTextRefCallback:Ne,focusSelectedItem:D,selectedItemText:F,position:r,isPositioned:M,searchRef:Q,children:l.jsx(ds,{as:a3,allowPinchZoom:!0,children:l.jsx(Ei,{asChild:!0,trapped:y.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:J(o,R=>{y.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:l.jsx(Pi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsx(Ve,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:R=>R.preventDefault(),...b,...Fe,onPlaced:()=>I(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:J(b.onKeyDown,R=>{const X=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!X&&R.key.length===1&&ee(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let U=N().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(R.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const V=R.target,q=U.indexOf(V);U=U.slice(q+1)}setTimeout(()=>T(U)),R.preventDefault()}})})})})})})});vs.displayName=s3;var d3="SelectItemAlignedPosition",bs=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ke(We,n),s=je(We,n),[a,d]=h.useState(null),[c,u]=h.useState(null),f=ne(t,_=>u(_)),$=dn(n),m=h.useRef(!1),v=h.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:b,focusSelectedItem:y}=s,x=h.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&p&&g&&b){const _=i.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),L=i.valueNode.getBoundingClientRect(),F=b.getBoundingClientRect();if(i.dir!=="rtl"){const V=F.left-O.left,q=L.left-V,ue=_.left-q,Le=_.width+ue,ln=Math.max(Le,O.width),un=window.innerWidth-$e,fn=co(q,[$e,Math.max($e,un-ln)]);a.style.minWidth=Le+"px",a.style.left=fn+"px"}else{const V=O.right-F.right,q=window.innerWidth-L.right-V,ue=window.innerWidth-_.right-q,Le=_.width+ue,ln=Math.max(Le,O.width),un=window.innerWidth-$e,fn=co(q,[$e,Math.max($e,un-ln)]);a.style.minWidth=Le+"px",a.style.right=fn+"px"}const z=$(),N=window.innerHeight-$e*2,M=p.scrollHeight,I=window.getComputedStyle(c),Z=parseInt(I.borderTopWidth,10),T=parseInt(I.paddingTop,10),D=parseInt(I.borderBottomWidth,10),E=parseInt(I.paddingBottom,10),B=Z+T+M+E+D,Q=Math.min(g.offsetHeight*5,B),ee=window.getComputedStyle(p),ct=parseInt(ee.paddingTop,10),lt=parseInt(ee.paddingBottom,10),Ne=_.top+_.height/2-$e,Ve=N-Ne,Fe=g.offsetHeight/2,R=g.offsetTop+Fe,X=Z+T+R,ie=B-X;if(X<=Ne){const V=z.length>0&&g===z[z.length-1].ref.current;a.style.bottom="0px";const q=c.clientHeight-p.offsetTop-p.offsetHeight,ue=Math.max(Ve,Fe+(V?lt:0)+q+D),Le=X+ue;a.style.height=Le+"px"}else{const V=z.length>0&&g===z[0].ref.current;a.style.top="0px";const ue=Math.max(Ne,Z+p.offsetTop+(V?ct:0)+Fe)+ie;a.style.height=ue+"px",p.scrollTop=X-Ne+p.offsetTop}a.style.margin=`${$e}px 0`,a.style.minHeight=Q+"px",a.style.maxHeight=N+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[$,i.trigger,i.valueNode,a,c,p,g,b,i.dir,r]);ae(()=>x(),[x]);const[w,S]=h.useState();ae(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const P=h.useCallback(_=>{_&&v.current===!0&&(x(),y?.(),v.current=!1)},[x,y]);return l.jsx(l3,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:P,children:l.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:l.jsx(Y.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});bs.displayName=d3;var c3="SelectPopperPosition",Zn=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=$e,...i}=e,s=cn(n);return l.jsx(r2,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zn.displayName=c3;var[l3,br]=dt(We,{}),Bn="SelectViewport",ys=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=je(Bn,n),s=br(Bn,n),a=ne(t,i.onViewportChange),d=h.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(an.Slot,{scope:n,children:l.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:$}=s;if($?.current&&f){const m=Math.abs(d.current-u.scrollTop);if(m>0){const v=window.innerHeight-$e*2,p=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),b=Math.max(p,g);if(b<v){const y=b+m,x=Math.min(v,y),w=y-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});ys.displayName=Bn;var xs="SelectGroup",[u3,f3]=dt(xs),$3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=lr();return l.jsx(u3,{scope:n,id:o,children:l.jsx(Y.div,{role:"group","aria-labelledby":o,...r,ref:t})})});$3.displayName=xs;var ws="SelectLabel",p3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=f3(ws,n);return l.jsx(Y.div,{id:o.id,...r,ref:t})});p3.displayName=ws;var Wt="SelectItem",[h3,Cs]=dt(Wt),Ss=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=ke(Wt,n),d=je(Wt,n),c=a.value===r,[u,f]=h.useState(i??""),[$,m]=h.useState(!1),v=ne(t,y=>d.itemRefCallback?.(y,r,o)),p=lr(),g=h.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(h3,{scope:n,value:r,disabled:o,textId:p,isSelected:c,onItemTextChange:h.useCallback(y=>{f(x=>x||(y?.textContent??"").trim())},[]),children:l.jsx(an.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:l.jsx(Y.div,{role:"option","aria-labelledby":p,"data-highlighted":$?"":void 0,"aria-selected":c&&$,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:J(s.onFocus,()=>m(!0)),onBlur:J(s.onBlur,()=>m(!1)),onClick:J(s.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:J(s.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:J(s.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:J(s.onPointerMove,y=>{g.current=y.pointerType,o?d.onItemLeave?.():g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(s.onPointerLeave,y=>{y.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:J(s.onKeyDown,y=>{d.searchRef?.current!==""&&y.key===" "||(Q2.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});Ss.displayName=Wt;var $t="SelectItemText",_s=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=ke($t,n),a=je($t,n),d=Cs($t,n),c=r3($t,n),[u,f]=h.useState(null),$=ne(t,b=>f(b),d.onItemTextChange,b=>a.itemTextRefCallback?.(b,d.value,d.disabled)),m=u?.textContent,v=h.useMemo(()=>l.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=c;return ae(()=>(p(v),()=>g(v)),[p,g,v]),l.jsxs(l.Fragment,{children:[l.jsx(Y.span,{id:d.textId,...i,ref:$}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Gt.createPortal(i.children,s.valueNode):null]})});_s.displayName=$t;var Ps="SelectItemIndicator",m3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Cs(Ps,n).isSelected?l.jsx(Y.span,{"aria-hidden":!0,...r,ref:t}):null});m3.displayName=Ps;var Un="SelectScrollUpButton",g3=h.forwardRef((e,t)=>{const n=je(Un,e.__scopeSelect),r=br(Un,e.__scopeSelect),[o,i]=h.useState(!1),s=ne(t,r.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=d.scrollTop>0;i(c)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(Ns,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop-d.offsetHeight)}}):null});g3.displayName=Un;var Wn="SelectScrollDownButton",v3=h.forwardRef((e,t)=>{const n=je(Wn,e.__scopeSelect),r=br(Wn,e.__scopeSelect),[o,i]=h.useState(!1),s=ne(t,r.onScrollButtonChange);return ae(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<c;i(u)};const d=n.viewport;return a(),d.addEventListener("scroll",a),()=>d.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?l.jsx(Ns,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:d}=n;a&&d&&(a.scrollTop=a.scrollTop+d.offsetHeight)}}):null});v3.displayName=Wn;var Ns=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=je("SelectScrollButton",n),s=h.useRef(null),a=dn(n),d=h.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return h.useEffect(()=>()=>d(),[d]),ae(()=>{a().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),l.jsx(Y.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{d()})})}),b3="SelectSeparator",y3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(Y.div,{"aria-hidden":!0,...r,ref:t})});y3.displayName=b3;var Vn="SelectArrow",x3=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn(n),i=ke(Vn,n),s=je(Vn,n);return i.open&&s.position==="popper"?l.jsx(o2,{...o,...r,ref:t}):null});x3.displayName=Vn;var w3="SelectBubbleInput",Es=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=ne(r,o),s=c2(t);return h.useEffect(()=>{const a=o.current;if(!a)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==t&&u){const f=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(f)}},[s,t]),l.jsx(Y.select,{...n,style:{...Qi,...n.style},ref:i,defaultValue:t})});Es.displayName=w3;function Rs(e){return e===""||e===void 0}function As(e){const t=Ze(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(s=>{const a=n.current+s;t(a),(function d(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(a)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Is(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=C3(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const d=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function C3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var S3=cs,_3=us,jo=$s,P3=ps,N3=hs,E3=ms,R3=ys,A3=Ss,I3=_s;const Vt=te.forwardRef(({value:e,onChange:t,disabled:n=!1,options:r=[],placeholder:o="Select an option",label:i,variant:s="default",className:a},d)=>{const c=r.find(m=>m.id===e),u=c?.text||o,f=s==="primary",$=m=>{t&&t(m)};return l.jsxs(S3,{value:e,onValueChange:$,disabled:n,children:[l.jsxs(_3,{ref:d,className:A("flex items-center justify-center gap-2","px-4 py-3","rounded","font-semibold","text-left","transition-all","focus:outline-none focus:ring-0",!f&&["w-full","border border-[#ecebf0]","bg-white","hover:border-[#a29fba]","focus:border-[#a29fba]","data-[state=open]:border-[#a29fba]",n&&"opacity-50 cursor-not-allowed bg-[#f4f4f4]"],f&&["bg-[#00b56b] text-white","border border-[#00b56b]","hover:bg-[#00995a] hover:border-[#00995a]","active:bg-[#007a48] active:border-[#007a48]","data-[state=open]:bg-[#00995a] data-[state=open]:border-[#00995a]",n&&"bg-[#e0e0e0] border-[#e0e0e0] text-[#9e9e9e] cursor-not-allowed"],a),"data-testid":"select-trigger","aria-label":i||o,children:[!f&&l.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[(c||i)&&l.jsx("span",{className:"text-xs leading-normal text-[#575385]","data-testid":"select-label",children:i||o}),l.jsx(jo,{asChild:!0,children:l.jsx("span",{className:A("text-sm leading-4","text-[#312e4d]",!c&&!i&&"text-base leading-5"),"data-testid":"select-value",children:u})})]}),f&&l.jsxs("div",{className:"flex flex-col min-w-0",children:[i&&l.jsx("span",{className:"text-xs leading-normal text-white","data-testid":"select-label",children:i}),l.jsx(jo,{asChild:!0,children:l.jsx("span",{className:"text-sm leading-4 whitespace-nowrap","data-testid":"select-value",children:u})})]}),l.jsx(P3,{asChild:!0,children:l.jsx(re.ChevronDown,{size:16,className:A("shrink-0",f?"text-white":"text-[#312e4d]"),"data-testid":"select-icon"})})]}),l.jsx(N3,{children:l.jsx(E3,{className:A("overflow-hidden","bg-white","rounded","border border-[#ecebf0]","shadow-lg","z-50",f?"min-w-[var(--radix-select-trigger-width)]":"w-[var(--radix-select-trigger-width)]"),position:"popper",sideOffset:4,align:f?"end":"start","data-testid":"select-content",children:l.jsx(R3,{className:"p-1",children:r.map(m=>l.jsx(A3,{value:m.id,className:A("relative flex items-center","px-4 py-2","text-sm leading-4 text-[#312e4d]","rounded","cursor-pointer","select-none","outline-none","transition-colors","hover:bg-[#f4f4f4]","focus:bg-[#f4f4f4]","data-[state=checked]:bg-[#ecebf0]","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",f&&"whitespace-nowrap"),"data-testid":`select-option-${m.id}`,children:l.jsx(I3,{children:m.text})},m.id))})})})]})});Vt.displayName="Select";const Os=h.forwardRef(({status:e=!1,disabled:t=!1,onChange:n,className:r,...o},i)=>l.jsx(yr.Root,{ref:i,checked:e,onCheckedChange:n,disabled:t,className:A("relative inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors duration-200 ease-in-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#00995a] focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",e?"bg-[#00995a]":"bg-[#e0e0e0]",r),...o,children:l.jsx(yr.Thumb,{className:A("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg transition-transform duration-200 ease-in-out",e?"translate-x-5":"translate-x-0")})}));Os.displayName="Switcher";function O3({columns:e,data:t,rowsPerPage:n=10,showPagination:r=!0,className:o,rowClassName:i,onPageChange:s,currentPage:a,loading:d=!1,emptyMessage:c="No data available"}){const[u,f]=te.useState(1),$=a!==void 0?a:u,m=w=>{a===void 0&&f(w),s?.(w)},v=Math.ceil(t.length/n),p=($-1)*n,g=p+n,b=t.slice(p,g),y=(w,S,P)=>{if(w.render)return w.render(S,P);const _=S[w.key];return _==null?"-":typeof _=="object"&&"primary"in _?l.jsxs("div",{className:"flex flex-col",children:[l.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:_.primary}),_.secondary&&l.jsx("span",{className:"text-xs leading-normal text-[#575385]",children:_.secondary})]}):l.jsx("span",{className:"text-sm leading-[18px] text-[#312e4d]",children:String(_)})},x=(w,S)=>typeof i=="function"?i(w,S):i;return l.jsxs("div",{className:A("bg-white rounded-xl p-8","flex flex-col gap-4",o),"data-testid":"table-container",children:[l.jsxs("div",{className:"w-full","data-testid":"table-body",children:[l.jsx("div",{className:A("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]","font-semibold text-sm leading-[18px] text-[#312e4d]"),"data-testid":"table-header",children:e.map(w=>l.jsx("div",{className:A("flex-1 min-w-0",w.className),"data-testid":`table-header-${w.key}`,children:w.label},w.key))}),d?l.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-loading",children:l.jsx("span",{className:"text-[#a29fba]",children:"Loading..."})}):b.length===0?l.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"table-empty",children:l.jsx("span",{className:"text-[#a29fba]",children:c})}):b.map((w,S)=>l.jsx("div",{className:A("flex gap-3 items-center","px-4 py-3","border-b border-[#ecebf0]",x(w,S)),"data-testid":`table-row-${S}`,children:e.map(P=>l.jsx("div",{className:A("flex-1 min-w-0",P.className),"data-testid":`table-cell-${S}-${P.key}`,children:y(P,w,S)},P.key))},S))]}),r&&v>1&&!d&&l.jsx("div",{className:"flex justify-end","data-testid":"table-pagination",children:l.jsx(Si,{currentPage:$,totalPages:v,onPageChange:m})})]})}const T3=({title:e="Table Header",showTitle:t=!1,searchPlaceholder:n="Search by...",searchValue:r="",onSearchChange:o,filters:i=[],showFilters:s=!0,buttons:a=[],showButtons:d=!0,cards:c=[],showCards:u=!1,className:f})=>l.jsxs("div",{className:A("bg-white rounded-xl p-8","flex flex-col gap-4",f),"data-testid":"table-header",children:[t&&e&&l.jsx("h2",{className:"text-xl font-semibold text-[#312e4d]","data-testid":"table-header-title",children:e}),u&&c.length>0&&l.jsx("div",{className:"flex gap-4 w-full","data-testid":"table-header-cards",children:c.map(($,m)=>l.jsxs("div",{className:"bg-white border border-[#ecebf0] rounded-xl p-4 flex-1 flex gap-2","data-testid":`table-header-card-${m}`,children:[$.icon&&l.jsx("div",{className:"shrink-0","data-testid":`table-header-card-icon-${m}`,children:$.icon}),l.jsxs("div",{className:"flex flex-col gap-1 flex-1",children:[l.jsx("span",{className:"text-base font-medium text-[#575385] leading-5",children:$.label}),l.jsx("span",{className:"text-xl font-semibold text-[#312e4d] leading-[22px]",children:$.value})]})]},m))}),l.jsxs("div",{className:"flex gap-4 items-center w-full",children:[l.jsxs("div",{className:"relative flex-1","data-testid":"table-header-search",children:[l.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 pointer-events-none",children:l.jsx(re.Search,{size:16,className:"text-[#312e4d]"})}),l.jsx("input",{type:"text",value:r,onChange:$=>o?.($.target.value),placeholder:n,className:A("w-full h-11 pl-10 pr-4 py-3","border border-[#ecebf0] rounded","text-base leading-5","placeholder:text-[#a29fba]","focus:outline-none focus:border-[#a29fba]","transition-colors"),"data-testid":"table-header-search-input"})]}),d&&a.length>0&&l.jsx("div",{className:"flex gap-4 items-center shrink-0","data-testid":"table-header-buttons",children:a.map(($,m)=>l.jsx("div",{"data-testid":`table-header-button-${m}`,children:$.isDropdown&&$.dropdownOptions?l.jsx("div",{className:"relative",children:l.jsx(Vt,{variant:$.variant==="primary"?"primary":"default",options:$.dropdownOptions,value:$.dropdownValue,onChange:v=>$.onDropdownChange?.(v),placeholder:$.label,label:$.dropdownLabel,className:A("h-11",$.variant==="outline"?"border-[#00b56b]":"")})}):l.jsx(Kn,{variant:$.variant==="outline"?"secondary":"primary",onClick:$.onClick,className:"h-11",children:$.label})},m))})]}),s&&i.length>0&&l.jsxs("div",{className:"flex gap-4 items-center","data-testid":"table-header-filters",children:[l.jsxs("div",{className:"flex items-center gap-2 py-3",children:[l.jsx(re.ListFilter,{size:16,className:"text-[#312e4d]"}),l.jsx("span",{className:"text-base leading-5 text-[#312e4d]",children:"Filter by"})]}),i.map(($,m)=>l.jsx("div",{className:"min-w-[120px]","data-testid":`table-header-filter-${m}`,children:$.options&&$.options.length>0?l.jsx(Vt,{options:$.options,value:$.value,onChange:v=>$.onChange?.(v),placeholder:$.placeholder||$.label,className:"h-11"}):l.jsxs("button",{className:A("flex items-center gap-2","border border-[#ecebf0] rounded","px-4 py-3 h-11","text-base leading-5 text-[#312e4d]","hover:border-[#a29fba] transition-colors"),onClick:()=>$.onChange?.(""),children:[l.jsx("span",{children:$.placeholder||$.label}),l.jsx(re.ChevronDown,{size:16})]})},$.key))]})]}),Ts=h.forwardRef(({type:e="light",text:t,icon:n,onClose:r,className:o,...i},s)=>{const d={light:{container:"bg-[#ecebf0]",text:"text-[#575385]",iconColor:"text-[#312e4d]",closeColor:"text-[#312e4d]"},dark:{container:"bg-[#3f3c5e]",text:"text-white",iconColor:"text-white",closeColor:"text-white"}}[e],c=l.jsx(re.CheckCircle,{size:16,className:d.iconColor});return l.jsxs("div",{ref:s,className:A("flex items-center gap-3 p-3 rounded",d.container,o),role:"status","aria-live":"polite",...i,children:[l.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[l.jsx("div",{className:"flex-shrink-0",children:n||c}),l.jsx("div",{className:A("text-base leading-5 whitespace-nowrap",d.text),children:t})]}),r&&l.jsx("button",{type:"button",onClick:r,className:A("flex-shrink-0 opacity-99 hover:opacity-100 transition-opacity",d.closeColor),"aria-label":"Cerrar notificación",children:l.jsx(re.X,{size:12})})]})});Ts.displayName="Toasts";exports.ActionCard=Wo;exports.BannerAlerts=Vo;exports.BrandIcons=Go;exports.Button=Kn;exports.CardsGrid=Ho;exports.FeatureCard=Ko;exports.Input=mi;exports.KPICard=bi;exports.KPICardCustom=vi;exports.KPIComparison=dr;exports.KPIComparisonCustom=gi;exports.LOGO_ASSETS=Me;exports.Loader=yi;exports.OptionCard=xi;exports.OrderCard=Ci;exports.OrderCardCustom=wi;exports.PaginationLib=Si;exports.Select=Vt;exports.Switcher=Os;exports.Table=O3;exports.TableHeader=T3;exports.Toasts=Ts;exports.buttonVariants=Nn;
46
46
  //# sourceMappingURL=chiperos-ai-components-library.cjs.map