1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[985],{1150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(95155),i=r(12115),o=r(24437);function a(e){return{default:e&&"default"in e?e.default:e}}r(36552);let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(e){let t={...s,...e},r=(0,i.lazy)(()=>t.loader().then(a)),l=t.loading;function u(e){let a=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,u=s?i.Suspense:i.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...s?{fallback:a}:{},children:c})}return u.displayName="LoadableComponent",u}},3468:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,q:()=>o});var n=r(12115),i=r(95155);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,a=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,o){let a=n.createContext(o),s=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},4129:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{}},8567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17828)},13548:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="major",d="model",f="name",h="type",p="vendor",m="version",g="architecture",v="console",y="mobile",b="tablet",w="smarttv",x="wearable",S="embedded",T="Amazon",k="Apple",E="ASUS",_="BlackBerry",j="Browser",C="Chrome",A="Firefox",O="Google",R="Huawei",P="Microsoft",M="Motorola",$="Opera",D="Samsung",I="Sharp",N="Sony",F="Xiaomi",L="Zebra",U="Facebook",z="Chromium OS",W="Mac OS",H=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},B=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},V=function(e,t){return typeof e===u&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},G=function(e,t){for(var r,n,i,s,u,c,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(r=n=0;r<f.length&&!u&&f[r];)if(u=f[r++].exec(e))for(i=0;i<h.length;i++)c=u[++n],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},K=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(V(t[r][n],e))return"?"===r?o:r}else if(V(t[r],e))return"?"===r?o:r;return e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,$+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,$+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,$]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+j],m],[/\bfocus\/([\w\.]+)/i],[m,[f,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+j]],[/fxios\/([-\w\.]+)/i],[m,[f,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+j]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+j],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,D+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,U],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.
vendor: 5,377 bytes, line 1
1+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,C+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,q]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,q]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,D],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,D],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,k],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,k],[h,b]],[/(macintosh);/i],[d,[p,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,I],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,R],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,R],[h,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,F],[h,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,F],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,y]],[/\b(opd2\d{3}a?) bui/i],[d,[p,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,M],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,M],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,"LG"],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,"LG"],[h,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,y]],[/(pixel c)\b/i],[d,[p,O],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[h,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,N],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,N],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,T],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,T],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,_],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,E],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,E],[h,y]],[/(nexus 9)/i],[d,[p,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 5,847 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,b]],[/(surface duo)/i],[d,[p,P],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,y]],[/(u304aa)/i],[d,[p,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,b]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,b]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,y]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[p,d,[h,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,P],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,L],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,L],[h,y]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,D],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[h,w]],[/(apple) ?tv/i],[p,[d,k+" TV"],[h,w]],[/crkey/i],[[d,C+"cast"],[p,O],[h,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,T],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,I],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,N],[h,w]],[/(mitv-\w{5}) bui/i],[d,[p,F],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,Y],[d,Y],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,v]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[d,[p,N],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,P],[h,v]],[/((pebble))app/i],[p,d,[h,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,k],[h,x]],[/droid.+; (glass) \d/i],[d,[p,O],[h,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,L],[h,x]],[/(quest( \d| pro)?)/i],[d,[p,U],[h,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,S]],[/(aeobc)\b/i],[d,[p,T],[h,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[m,K,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,K,X],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,W],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,z],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},J=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof J))return new J
1(e,t).getResult();var r=typeof i!==s&&i.navigator?i.navigator:o,n=e||(r&&r.userAgent?r.userAgent:""),v=r&&r.userAgentData?r.userAgentData:o,w=t?H(Z,t):Z,x=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[f]=o,t[m]=o,G.call(t,n,w.browser),t[c]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,x&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[g]=o,G.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[d]=o,e[h]=o,G.call(e,n,w.device),x&&!e[h]&&v&&v.mobile&&(e[h]=y),x&&"Macintosh"==e[d]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[f]=o,e[m]=o,G.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[f]=o,e[m]=o,G.call(e,n,w.os),x&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,z).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?Y(e,500):e,this},this.setUA(n),this};J.VERSION="1.0.38",J.BROWSER=B([f,m,c]),J.CPU=B([g]),J.DEVICE=B([d,p,h,v,y,w,b,x,S]),J.ENGINE=J.OS=B([f,m]),typeof t!==s?(e.exports&&(t=e.exports=J),t.UAParser=J):r.amdO?o===(n=(function(){return J}).call(t,r,t,e))||(e.exports=n):typeof i!==s&&(i.UAParser=J);var Q=typeof i!==s&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new J;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)Q.ua[r]=t[r]}}}("object"==typeof window?window:this)},14432:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});var n,i,o=r(71450),a=r(12115),s="right-scroll-bar-position",l="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,d=new WeakMap;function f(e){return e}var h=function(e){void 0===e&&(e={});var t,r,n,i=(void 0===t&&(t=f),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return i.options=(0,o.Cl)({async:!0,ssr:!1},e),i}(),p=function(){},m=a.forwardRef(function(e,t){var r,n,i,s,l=a.useRef(null),f=a.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),m=f[0],g=f[1],v=e.forwardProps,y=e.children,b=e.className,w=e.removeScrollBar,x=e.enabled,S=e.shards,T=e.sideCar,k=e.noIsolation,E=e.inert,_=e.allowPinchZoom,j=e.as,C=e.gapMode,A=(0,o.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=(r=[l,t],n=function(e){return r.forEach(function(t){return u(t,e)})},(i=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,s=i.facade,c(function(){var e=d.get(s);if(e){var t=new Set(e),n=new Set(r),i=s.current;t.forEach(function(e){n.has(e)||u(e,null)}),n.forEach(function(e){t.has(e)||u(e,i)})}d.set(s,r)},[r]),s),R=(0,o.Cl)((0,o.Cl)({},A),m);return a.createElement(a.Fragment,null,x&&a.createElement(T,{sideCar:h,removeScrollBar:w,shards:S,noIsolation:k,inert:E,setCallbacks:g,allowPinchZoom:!!_,lockRef:l,gapMode:C}),v?a.cloneElement(a.Children.only(y),(0,o.Cl)((0,o.Cl)({},R),{ref:O})):a.createElement(void 0===j?"div":j,(0,o.Cl)({},R,{className:b,ref:O}),y))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:l,zeroRight:s};
1var g=function(e){var t=e.sideCar,r=(0,o.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,(0,o.Cl)({},r))};g.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=v();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},S=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[x(r),x(n),x(i)]},T=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=S(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},k=b(),E="data-scroll-locked",_=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(E,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(s," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(l," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(s," .").concat(s," {\n right: 0 ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(E,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},C=function(){a.useEffect(function(){return document.body.setAttribute(E,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},A=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;C();var o=a.useMemo(function(){return T(i)},[i]);return a.createElement(k,{styles:_(o,!t,i,r?"":"!important")})},O=!1;if("undefined"!=typeof window)try{var R=Object.defineProperty({},"passive",{get:function(){return O=!0,!0}});window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch(e){O=!1}var P=!!O&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},$=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),D(e,n)){var i=I(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},D=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},I=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},N=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=I(e,l),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&D(e,l)&&(f+=g,h+=m),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},z=0,W=[];let H=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),i=a.useState(z++)[0],s=a.useState(b)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,o.fX)([e.lockRef.current],(e.shards||[]).map(U),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var i,o=F(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=$(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=$(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=i),!i)return!0;var h=n.current||i;return N(h,t,e,"h"===h?s:u,!0)},[]),c=a.useCallback(function(e){if(W.length&&W[W.length-1]===s){var r="deltaY"in e?L(e):F(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(l.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=a.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=a.useCallback(function(e){r.current=F(e),n.current=void 0},[]),h=a.useCallback(function(t){d(t.type,L(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){d(t.type,F(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return W.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,P),document.addEventListener("touchmove",c,P),document.addEventListener("touchstart",f,P),function(){W=W.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,P),document.removeEventListener("touchmove",c,P),document.removeEventListener("touchstart",f,P)}},[]);var m=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(s,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?a.createElement(A,{gapMode:e.gapMode}):null)},h.useMedium(n),g);var B=a.forwardRef(function(e,t){return a.createElement(m,(0,o.Cl)({},e,{ref:t,sideCar:H}))});B.classNames=m.classNames;let V=B},15279:(e,t,r)=>{"use strict";r.d(t,{Ub:()=>a});var n=r(12115);r(47957);var i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,o="undefined"==typeof window;function a(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let s=e=>o?t:window.matchMedia(e).matches,[l,u]=(0,n.useState)(()=>r?s(e):t);function c(){u(s(e))}return i(()=>{let t=window.matchMedia(e);return c(),t.addListener?t.addListener(c):t.addEventListener("change",c),()=>{t.removeListener?t.removeListener(c):t.removeEventListener("change",c)}},[e]),l}},16083:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Accordion:()=>D,AccordionContent:()=>ee,AccordionHeader:()=>X,AccordionItem:()=>G,AccordionTrigger:()=>J,Content:()=>ea,Header:()=>ei,Item:()=>en,Root:()=>er,Trigger:()=>eo,createAccordionScope:()=>M});var n=r(12115),i=r(3468),o=r(88167),a=r(94446),s=r(92556),l=r(23558),u=r(97602),c=r(4129),d=r(76842),f=r(68946),h=r(95155),p="Collapsible",[m,g]=(0,i.A)(p),[v,y]=m(p),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:a,onOpenChange:s,...c}=e,[d=!1,p]=(0,l.i)({prop:i,defaultProp:o,onChange:s});return(0,h.jsx)(v,{scope:r,disabled:a,contentId:(0,f.B)(),open:d,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),children:(0,h.jsx)(u.sG.div,{"data-state":E(d),"data-disabled":a?"":void 0,...c,ref:t})})});b.displayName=p;var w="CollapsibleTrigger",x=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=y(w,r);return(0,h.jsx)(u.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":E(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,s.m)(e.onClick,i.onOpenToggle)})});x.displayName=w;var S="CollapsibleContent",T=n.forwardRef((e,t)=>
1{let{forceMount:r,...n}=e,i=y(S,e.__scopeCollapsible);return(0,h.jsx)(d.C,{present:r||i.open,children:e=>{let{present:r}=e;return(0,h.jsx)(k,{...n,ref:t,present:r})}})});T.displayName=S;var k=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...s}=e,l=y(S,r),[d,f]=n.useState(i),p=n.useRef(null),m=(0,a.s)(t,p),g=n.useRef(0),v=g.current,b=n.useRef(0),w=b.current,x=l.open||d,T=n.useRef(x),k=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=p.current;if(e){k.current=k.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,T.current||(e.style.transitionDuration=k.current.transitionDuration,e.style.animationName=k.current.animationName),f(i)}},[l.open,i]),(0,h.jsx)(u.sG.div,{"data-state":E(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!x,...s,ref:m,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:x&&o})});function E(e){return e?"open":"closed"}var _=r(66218),j="Accordion",C=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A,O,R]=(0,o.N)(j),[P,M]=(0,i.A)(j,[R,g]),$=g(),D=n.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,h.jsx)(A.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,h.jsx)(z,{...n,ref:t}):(0,h.jsx)(U,{...n,ref:t})})});D.displayName=j;var[I,N]=P(j),[F,L]=P(j,{collapsible:!1}),U=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[u,c]=(0,l.i)({prop:r,defaultProp:i,onChange:o});return(0,h.jsx)(I,{scope:e.__scopeAccordion,value:u?[u]:[],onItemOpen:c,onItemClose:n.useCallback(()=>a&&c(""),[a,c]),children:(0,h.jsx)(F,{scope:e.__scopeAccordion,collapsible:a,children:(0,h.jsx)(B,{...s,ref:t})})})}),z=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s=[],u]=(0,l.i)({prop:r,defaultProp:i,onChange:o}),c=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),d=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,h.jsx)(I,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:(0,h.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,h.jsx)(B,{...a,ref:t})})})}),[W,H]=P(j),B=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:i,dir:o,orientation:l="vertical",...c}=e,d=n.useRef(null),f=(0,a.s)(d,t),p=O(r),m="ltr"===(0,_.jH)(o),g=(0,s.m)(e.onKeyDown,e=>{var t;if(!C.includes(e.key))return;let r=e.target,n=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===i)return;e.preventDefault();let a=i,s=o-1,u=()=>{(a=i+1)>s&&(a=0)},c=()=>{(a=i-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===l&&(m?u():c());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(m?c():u());break;case"ArrowUp":"vertical"===l&&c()}null==(t=n[a%o].ref.current)||t.focus()});return(0,h.jsx)(W,{scope:r,disabled:i,direction:o,orientation:l,children:(0,h.jsx)(A.Slot,{scope:r,children:(0,h.jsx)(u.sG.div,{...c,"data-orientation":l,ref:f,onKeyDown:i?void 0:g})})})}),V="AccordionItem",[q,Y]=P(V),G=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=H(V,r),a=N(V,r),s=$(r),l=(0,f.B)(),u=n&&a.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,h.jsx)(q,{scope:r,open:u,disabled:c,triggerId:l,children:(0,h.jsx)(b,{"data-orientation":o.orientation,"data-state":et(u),...s,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});G.displayName=V;var K="AccordionHeader",X=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=H(j,r),o=Y(K,r);return(0,h.jsx)(u.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});X.displayName=K;var Z="AccordionTrigger",J=n.forwardRef((e,t)=>
1{let{__scopeAccordion:r,...n}=e,i=H(j,r),o=Y(Z,r),a=L(Z,r),s=$(r);return(0,h.jsx)(A.ItemSlot,{scope:r,children:(0,h.jsx)(x,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})});J.displayName=Z;var Q="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=H(j,r),o=Y(Q,r),a=$(r);return(0,h.jsx)(T,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var er=D,en=G,ei=X,eo=J,ea=ee},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},19242:e=>{let t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['â](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['â](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,r=e=>e.match(t)||[],n=e=>e[0].toUpperCase()+e.slice(1),i=(e,t)=>r(e).join(t).toLowerCase(),o=e=>r(e).reduce((e,t)=>`${e}${!e?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()}`,"");e.exports={words:r,upperFirst:n,camelCase:o,pascalCase:e=>n(o(e)),snakeCase:e=>i(e,"_"),kebabCase:e=>i(e,"-"),sentenceCase:e=>n(i(e," ")),titleCase:e=>r(e).map(n).join(" ")}},19526:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(12115),i=0;function o(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let 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}},23558:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(12115),i=r(70222);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[o]=r,a=n.useRef(o),s=(0,i.c)(t);return n.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),r}({defaultProp:t,onChange:r}),s=void 0!==e,l=s?e:o,u=(0,i.c)(r);return[l,n.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&u(r)}else a(t)},[s,e,a,u])]}},24402:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},24437:(e,t,r)=>{"use strict";function n(e){let{reason:t,children:r}=e;return r}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(24553)},26526:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},26745:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},26810:(e,t,r)=>{var n=r(51483);e.exports=function(){return n.Date.now()}},30556:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},30926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let n=r(41209),i=r(85153),o=r(77197)},32980:(e,t,r)=>{"use strict";r.d(t,{U:()=>f,UZ:()=>p,Uv:()=>a,gR:()=>d,lz:()=>h,mO:()=>o,nG:()=>u,oy:()=>s,pG:()=>c,q0:()=>i,v$:()=>l});var n=r(12115);let i="heading",o="code_block",a="paragraph",s="blockquote",l="ordered_list",u="bullet_list",c="list_item",d="horizontal_rule",f="hard_break",h="image",p="emoji",m=function(e){return function(t){return null!=t?n.createElement(e,null,t):null}},g=function(e){return function(){return n.createElement(e)}},v=function(e){return function(t){return n.createElement(e,null,t)}};m("p"),m("blockquote"),m("ol"),m("ul"),m("li"),g("hr"),g("br"),v("b"),v("i"),v("s"),v("u"),v("code"),v("sub"),v("sup")},34212:(e,t,r)=>{"use strict";function n(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>n})},35068:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{Ik:()=>ea,Yj:()=>K});var a=r(93368),s=r(19242),l=r(71307),u=r.n(l);let c=Object.prototype.toString,d=Error.prototype.toString,f=RegExp.prototype.toString,h="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",p=/^Symbol\((.*)\)(.*)$/;function m(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return h.call(e).replace(p,"Symbol($1)");let n=c.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+d.call(e)+"]":"RegExp"===n?f.call(e):null}function g(e,t){let r=m(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=m(this[e],t);return null!==n?n:r},2)}function v(e){return null==e?[]:[].concat(e)}let y=/\$\{\s*(\w+)\s*\}/g;n=Symbol.toStringTag;
1class b{constructor(e,t,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[n]="Error",this.name="ValidationError",this.value=t,this.path=r,this.type=i,this.errors=[],this.inner=[],v(e).forEach(e=>{if(w.isError(e)){this.errors.push(...e.errors);let t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}i=Symbol.hasInstance,o=Symbol.toStringTag;class w extends Error{static formatError(e,t){let r=t.label||t.path||"this";return(r!==t.path&&(t=Object.assign({},t,{path:r})),"string"==typeof e)?e.replace(y,(e,r)=>g(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n,i){let a=new b(e,t,r,n);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[o]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,w)}static[i](e){return b[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let x={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r?` (cast from the value \`${g(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${g(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${g(r,!0)}\``+i}},S={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},T={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},k={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},E={isValue:"${path} field must be ${value}"},_={noUnknown:"${path} field has unspecified keys: ${unknown}"},j={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},C={notType:e=>{let{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${g(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${g(r,!0)}\``}return w.formatError(x.notType,e)}};Object.assign(Object.create(null),{mixed:x,string:S,number:T,date:k,object:_,array:j,boolean:E,tuple:C});let A=e=>e&&e.__isYupSchema__;class O{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=t,o="function"==typeof r?r:(...e)=>e.every(e=>e===r);return new O(e,(e,t)=>{var r;let a=o(...e)?n:i;return null!=(r=null==a?void 0:a(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!A(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}}let R={context:"$",value:"."};class P{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===R.context,this.isValue=this.key[0]===R.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?R.context:this.isValue?R.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,a.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function M(e){function t({value:t,path:r="",options:n,originalValue:i,schema:o},a,s){let l,{name:u,test:c,params:d,message:f,skipAbsent:h}
1=e,{parent:p,context:m,abortEarly:g=o.spec.abortEarly,disableStackTrace:v=o.spec.disableStackTrace}=n;function y(e){return P.isRef(e)?e.getValue(t,p,m):e}function b(e={}){let n=Object.assign({value:t,originalValue:i,label:o.spec.label,path:e.path||r,spec:o.spec,disableStackTrace:e.disableStackTrace||v},d,e.params);for(let e of Object.keys(n))n[e]=y(n[e]);let a=new w(w.formatError(e.message||f,n),t,n.path,e.type||u,n.disableStackTrace);return a.params=n,a}let x=g?a:s,S={path:r,parent:p,type:u,from:n.from,createError:b,resolve:y,options:n,originalValue:i,schema:o},T=e=>{w.isError(e)?x(e):e?s(null):x(b())},k=e=>{w.isError(e)?x(e):a(e)};if(h&&null==t)return T(!0);try{var E;if(l=c.call(S,t,S),"function"==typeof(null==(E=l)?void 0:E.then)){if(n.sync)throw Error(`Validation test of type: "${S.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(l).then(T,k)}}catch(e){k(e);return}T(l)}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;class $ extends Set{describe(){let e=[];for(let t of this.values())e.push(P.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new $(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}}function D(e,t=new Map){let r;if(A(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=D(e[n],t)}else if(e instanceof Map)for(let[n,i]of(r=new Map,t.set(e,r),e.entries()))r.set(n,D(i,t));else if(e instanceof Set)for(let n of(r=new Set,t.set(e,r),e))r.add(D(n,t));else if(e instanceof Object)for(let[n,i]of(r={},t.set(e,r),Object.entries(e)))r[n]=D(i,t);else throw Error(`Unable to clone ${e}`);return r}class I{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new $,this._blacklist=new $,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(x.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=D(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=Object.assign({},this.spec,t.spec);return t.spec=r,t.internalTests=Object.assign({},this.internalTests,t.internalTests),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return null==e?!!this.spec.nullable&&null===e||!!this.spec.optional&&void 0===e:this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}resolveOptions(e){var t,r,n,i;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortE
1arly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive,disableStackTrace:null!=(i=e.disableStackTrace)?i:this.spec.disableStackTrace})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&null==i)return i;let o=g(e),a=g(i);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". 2 3attempted value: ${o} 4`+(a!==o?`result of cast: ${a}`:""))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:o=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:i,value:s,originalValue:o,options:t,tests:l},r,e=>{if(e.length)return n(e,s);this.runTests({path:i,value:s,originalValue:o,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:o,originalValue:a,path:s,options:l}=e,u=e=>{n||(n=!0,t(e,o))},c=e=>{n||(n=!0,r(e,o))},d=i.length,f=[];if(!d)return c([]);let h={value:o,originalValue:a,path:s,options:l,schema:this};for(let e=0;e<i.length;e++)(0,i[e])(h,u,function(e){e&&(Array.isArray(e)?f.push(...e):f.push(e)),--d<=0&&c(f)})}asNestedTest({key:e,index:t,parent:r,parentPath:n,originalParent:i,options:o}){let a=null!=e?e:t;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");let s="number"==typeof a,l=r[a],u=Object.assign({},o,{strict:!0,parent:r,value:l,originalValue:i[a],key:void 0,[s?"index":"key"]:a,path:s||a.includes(".")?`${n||""}[${s?a:`"${a}"`}]`:(n?`${n}.`:"")+e});return(e,t,r)=>this.resolve(u)._validate(l,u,t,r)}validate(e,t){var r;let n=this.resolve(Object.assign({},t,{value:e})),i=null!=(r=null==t?void 0:t.disableStackTrace)?r:n.spec.disableStackTrace;return new Promise((r,o)=>n._validate(e,t,(e,t)=>{w.isError(e)&&(e.value=t),o(e)},(e,t)=>{e.length?o(new w(e,t,void 0,void 0,i)):r(t)}))}validateSync(e,t){var r;let n,i=this.resolve(Object.assign({},t,{value:e})),o=null!=(r=null==t?void 0:t.disableStackTrace)?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw w.isError(e)&&(e.value=t),e},(t,r)=>{if(t.length)throw new w(t,e,void 0,void 0,o);n=r}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(w.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(w.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):D(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=M({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=M({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=x.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=x.notNull){return this.nullability(!1,e)}required(e=x.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=x.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=M(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>(e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test)&&!0),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=v(e).map(e=>new P(e));
4return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new O(n,t):O.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=M({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=x.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=M({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=x.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=M({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){let t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:o}=t.spec;return{meta:n,label:r,optional:i,nullable:o,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,r)=>r.findIndex(t=>t.name===e.name)===t)}}}for(let e of(I.prototype.__isYupSchema__=!0,["validate","validateSync"]))I.prototype[`${e}At`]=function(t,r,n={}){let{parent:i,parentPath:o,schema:s}=function(e,t,r,n=r){let i,o,s;return t?((0,a.forEach)(t,(a,l,u)=>{let c=l?a.slice(1,a.length-1):a,d="tuple"===(e=e.resolve({context:n,parent:i,value:r})).type,f=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(r&&f>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[f],e=d?e.spec.types[f]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=r,r=r&&r[c],e=e.fields[c]}o=c,s=l?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,r,n.context);return s[e](i&&i[o],Object.assign({},n,{parent:i,path:t}))};for(let e of["equals","is"])I.prototype[e]=I.prototype.oneOf;for(let e of["not","nope"])I.prototype[e]=I.prototype.notOneOf;let N=()=>!0;class F extends I{constructor(e){super("function"==typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:N},e))}}F.prototype;class L extends I{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=E.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>null==e||!0===e})}isFalse(e=E.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>null==e||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}L.prototype;let U=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function z(e){var t,r;let n=U.exec(e);return n?{year:W(n[1]),month:W(n[2],1)-1,day:W(n[3],1),hour:W(n[4]),minute:W(n[5]),second:W(n[6]),millisecond:n[7]?W(n[7].substring(0,3)):0,precision:null!=(t=null==(r=n[7])?void 0:r.length)?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:W(n[10]),minuteOffset:W(n[11])}:null}function W(e,t=0){return Number(e)||t}let H=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,B=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,q=RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),Y=e=>null==e||e===e.trim(),G=({}).toString();function K(){return new X}class X extends I{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;let n=null!=e&&e.toString?e.toString():e;return n===G?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||x.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=S.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=S.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=S.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||S.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=S.email){return this.matches(H,{name:"email",message:e,excludeEmptyString:!0})}url(e=S.url){return this.matches(B,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=S.uuid){return this.matches(V,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,r,n="";return e&&("object"==typeof e?{message:n="",allowOffset:t=!1,precision:r}=e:n=e),this.matches(q,{name:"datetime",message:n||S.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||S.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;let r=z(e);return!!r&&!!r.z}}).test({name:"datetime_precision",message:n||S.datetime_precision,params:{precision:r},skipAbsent:!0,test:e=>{if(!e||void 0==r)return!0;let t=z(e);return!!t&&t.precision===r}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=S.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:Y})}lowercase(e=S.lowercase){return this.transform(e=>null==e?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>null==e||e===e.toLowerCase()})}uppercase(e=S.uppercase){return this.transform(e=>null==e?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>null==e||e===e.toUpperCase()})}}K.prototype=X.prototype;class Z extends I{constructor(){super({type:"number",check(e){let t;return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&(t=e)==+t}}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(""===(n=n.replace(/\s/g,"")))return NaN;n*=1}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=T.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=T.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=T.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e,t=T.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(e=T.positive){return this.moreThan(0,e)}negative(e=T.negative){return this.lessThan(0,e)}integer(e=T.integer){return this.test({name:"integer",message:e,ski
4pAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>null==e?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>null==t?t:Math[e](t))}}Z.prototype;let J=new Date("");function Q(){return new ee}class ee extends I{constructor(){super({type:"date",check:e=>"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t,r)=>!r.spec.coerce||r.isType(e)||null===e?e:isNaN(e=function(e){let t=z(e);if(!t)return Date.parse?Date.parse(e):NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(r=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}(e))?ee.INVALID_DATE:new Date(e))})}prepareParam(e,t){let r;if(P.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=k.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=k.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}}function et(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function er(e){return(t,r)=>et(e,t)-et(e,r)}ee.INVALID_DATE=J,Q.prototype=ee.prototype,Q.INVALID_DATE=J;let en=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(e){}return r.isType(n)?n:e},ei=e=>"[object Object]"===Object.prototype.toString.call(e),eo=er([]);function ea(e){return new es(e)}class es extends I{constructor(e){super({type:"object",check:e=>ei(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=eo,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,o=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let r=i[e],a=e in n;if(r){let i,o=n[e];l.path=(t.path?`${t.path}.`:"")+e;let a=(r=r.resolve({value:o,context:t.context,parent:s}))instanceof I?r.spec:void 0,c=null==a?void 0:a.strict;if(null!=a&&a.strip){u=u||e in n;continue}void 0!==(i=t.__validating&&c?n[e]:r.cast(n[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=n[e]);(a!==e in s||s[e]!==n[e])&&(u=!0)}return u?s:n}_validate(e,t={},r,n){let{from:i=[],originalValue:o=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:o},...i],t.__validating=!0,t.originalValue=o,super._validate(e,t,r,(e,i)=>{if(!a||!ei(i))return void n(e,i);o=o||i;let s=[];for(let e of this._nodes){let r=this.fields[e];!r||P.isRef(r)||s.push(r.asNestedTest({options:t,key:e,parent:i,parentPath:t.path,originalParent:o}))}this.runTests({tests:s,value:i,originalValue:o,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){let t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];r[e]=void 0===n?t:n}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;let i=this.fields[r],o=e;null!=(n=o)&&n.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(o):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,a.split)(e)[0];n.add(o),i.has(`${t}-${o}`)||r.push([t,o])}for(let t of Object.keys(e)){let r=e[t];n.add(t),P.isRef(r)&&r.isSibling?o(r.path,t):A(r)&&"deps"in r&&r.deps.forEach(e
4=>o(e,t))}return u().array(Array.from(n),r).reverse()}(e,t),r._sortErrors=er(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){let e={};for(let[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return function e(t){if("fields"in t){let r={};for(let[n,i]of Object.entries(t.fields))r[n]=e(i);return t.setFields(r)}if("array"===t.type){let r=t.optional();return r.innerType&&(r.innerType=e(r.innerType)),r}return"tuple"===t.type?t.optional().clone({types:t.spec.types.map(e)}):"optional"in t?t.optional():t}(this)}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t,this._excludedEdges.filter(([t,r])=>e.includes(t)&&e.includes(r)))}omit(e){let t=[];for(let r of Object.keys(this.fields))e.includes(r)||t.push(r);return this.pick(t)}from(e,t,r){let n=(0,a.getter)(e,!0);return this.transform(i=>{if(!i)return i;let o=i;return((e,t)=>{let r=[...(0,a.normalizePath)(t)];if(1===r.length)return r[0]in e;let n=r.pop(),i=(0,a.getter)((0,a.join)(r),!0)(e);return!!(i&&n in i)})(i,e)&&(o=Object.assign({},i),r||delete o[e],o[t]=n(i)),o})}json(){return this.transform(en)}noUnknown(e=!0,t=_.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){var r;let n;if(null==t)return!0;let i=(r=this.schema,n=Object.keys(r.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===i.length||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=_.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;let r={};for(let n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(s.camelCase)}snakeCase(){return this.transformKeys(s.snakeCase)}constantCase(){return this.transformKeys(e=>(0,s.snakeCase)(e).toUpperCase())}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);for(let[i,o]of(r.fields={},Object.entries(t.fields))){var n;let t=e;null!=(n=t)&&n.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[i]})),r.fields[i]=o.describe(t)}return r}}ea.prototype=es.prototype;class el extends I{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){let r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let n=!1,i=r.map((e,r)=>{let i=this.innerType.cast(e,Object.assign({},t,{path:`${t.path||""}[${r}]`}));return i!==e&&(n=!0),i});return n?i:r}_validate(e,t={},r,n){var i;let o=this.innerType,a=null!=(i=t.recursive)?i:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,r,(i,s)=>{var l,u;if(!a||!o||!this._typeCheck(s))return void n(i,s);let c=Array(s.length);for(let r=0;r<s.length;r++)c[r]=o.asNestedTest({options:t,index:r,parent:s,parentPath:t.path,originalParent:null!=(u=t.originalValue)?u:e});this.runTests({value:s,tests:c,originalValue:null!=(l=t.originalValue)?l:e,options:t},r,e=>n(e.concat(i),s))})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(en)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!A(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+g(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e,t=j.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||j.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||j.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,r,n)=>!e(t,r,n):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);if(t.innerType){var n;let i=e;null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=t.innerType.describe(i)}return r}}el.prototype;class eu extends I{constructor(e){super({type:"tuple",spec:{types:e},check(e){let t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation(()=>{this.typeError(C.notType)})}_cast(e,t){let{types:r}=this.spec,n=super._cast(e,t);if(!this._typeCheck(n))return n;let i=!1,o=r.map((e,r)=>{let o=e.cast(n[r],Object.assign({},t,{path:`${t.path||""}[${r}]`}));return o!==n[r]&&(i=!0),o});return i?o:n}_validate(e,t={},r,n){let i=this.spec.types;super._validate(e,t,r,(o,a)=>{var s,l;if(!this._typeCheck(a))return void n(o,a);let u=[];for(let[r,n]of i.entries())u[r]=n.asNestedTest({options:t,index:r,parent:a,parentPath:t.path,originalParent:null!=(l=t.originalValue)?l:e});this.runTests({value:a,tests:u,originalValue:null!=(s=t.originalValue)?s:e,options:t},r,e=>n(e.concat(o),a))})}describe(e){let t=(e?this.resolve(e):this).clone(),r=super.describe(e);return r.innerType=t.spec.types.map((t,r)=>{var n;let i=e;return null!=(n=i)&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[r]})),t.describe(i)}),r}}eu.prototype},35443:(e,t,r)=>{var n=r(73423),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},36552:(e,t,r)=>{"use strict";function n(e){let{moduleIds:t}=e;return null}
4Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(95155),r(47650),r(8567),r(77278)},36702:(e,t,r)=>{var n=r(80942),i=r(26526);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},36862:(e,t,r)=>{var n=r(30556),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},37849:(e,t,r)=>{"use strict";e.exports=r(68381)},41982:(e,t,r)=>{var n=r(36862),i=r(26745),o=r(36702),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},44831:(e,t,r)=>{"use strict";r.d(t,{qW:()=>f});var n,i=r(12115),o=r(92556),a=r(97602),s=r(94446),l=r(70222),u=r(95155),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:b,onDismiss:w,...x}=e,S=i.useContext(d),[T,k]=i.useState(null),E=null!=(f=null==T?void 0:T.ownerDocument)?f:null==(r=globalThis)?void 0:r.document,[,_]=i.useState({}),j=(0,s.s)(t,e=>k(e)),C=Array.from(S.layers),[A]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),O=C.indexOf(A),R=T?C.indexOf(T):-1,P=S.layersWithOutsidePointerEventsDisabled.size>0,M=R>=O,$=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,r=[...S.branches].some(e=>e.contains(t));M&&!r&&(null==v||v(e),null==b||b(e),e.defaultPrevented||null==w||w())},E),D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...S.branches].some(e=>e.contains(t))&&(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},E);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{R===S.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},E),i.useEffect(()=>{if(T)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(T)),S.layers.add(T),h(),()=>{m&&1===S.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[T,E,m,S]),i.useEffect(()=>()=>{T&&(S.layers.delete(T),S.layersWithOutsidePointerEventsDisabled.delete(T),h())},[T,S]),i.useEffect(()=>{let e=()=>_({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...x,ref:j,style:{pointerEvents:P?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,$.onPointerDownCapture)})});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,r,n){let{discrete:i}=n,o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),i?(0,a.hO)(o,s):o.dispatchEvent(s)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>
4{let r=i.useContext(d),n=i.useRef(null),o=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},47957:(e,t,r)=>{var n=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?n:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function b(e){var r=e-l,n=e-u;return void 0===l||r>=t||r<0||d&&n>=o}function w(){var e,r,n,i=m();if(b(i))return x(i);s=setTimeout(w,(e=i-l,r=i-u,n=t-e,d?p(n,o-r):n))}function x(e){return(s=void 0,f&&n)?y(e):(n=i=void 0,a)}function S(){var e,r=m(),o=b(r);if(n=arguments,i=this,l=r,o){if(void 0===s)return u=e=l,s=setTimeout(w,t),c?y(e):a;if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,g(r)&&(c=!!r.leading,o=(d="maxWait"in r)?h(v(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=i=s=void 0},S.flush=function(){return void 0===s?a:x(m())},S}},50351:(e,t,r)=>{"use strict";r.d(t,{AM:()=>O,Fh:()=>S,K1:()=>x,Kk:()=>M,YB:()=>w,YV:()=>$});let n=!1,i=[];var o=Object.defineProperty,a=(e,t,r)=>((e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class s extends Error{constructor(e){super(e),this.name="AbortError"}}class l{constructor(){a(this,"isCDNUrl",(e="")=>e.includes("/cdn/")),a(this,"getOptionsPage",(e,t=25,r=1)=>({...e,per_page:t,page:r})),a(this,"delay",e=>new Promise(t=>setTimeout(t,e))),a(this,"arrayFrom",(e=0,t)=>Array.from({length:e},t)),a(this,"range",(e=0,t=e)=>{let r=Math.abs(t-e)||0,n=e<t?1:-1;return this.arrayFrom(r,(t,r)=>r*n+e)}),a(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),a(this,"flatMap",(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[])),a(this,"escapeHTML",function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=/[&<>"']/g,n=new RegExp(r.source);return e&&n.test(e)?e.replace(r,e=>t[e]):e})}stringify(e,t,r){let n=[];for(let i in e){let o;if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i],s=r?"":encodeURIComponent(i);o="object"==typeof a?this.stringify(a,t?t+encodeURIComponent(`[${s}]`):s,Array.isArray(a)):`${t?t+encodeURIComponent(`[${s}]`):s}=${encodeURIComponent(a)}`,n.push(o)}return n.join("&")}getRegionURL(e){switch(e){case"us":return"api-us.storyblok.com";case"cn":return"app.storyblokchina.cn";case"ap":return"api-ap.storyblok.com";case"ca":return"api-ca.storyblok.com";default:return"api.storyblok.com"}}}let u=function(e,t){let r={};for(let n in e){let i=e[n];t.includes(n)&&null!==i&&(r[n]=i)}return r},c={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:u(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"}),emoji:e=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":e.attrs.name,emoji:e.attrs.emoji}}]})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"s"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link:e=>{if(!e.attrs)return{tag:""};let t=new l().escapeHTML,r={...e.attrs},{linktype:n="url"}=e.attrs;if(delete r.linktype,r.href&&(r.href=t(e.attrs.href||"")),"email"===n&&(r.href=`mailto:${r.href}`),r.anchor&&(r.href=`${r.href}#${r.anchor}`,delete r.anchor),r.custom){for(let e in r.custom)r[e]=r.custom[e];delete r.custom}return{tag:[{tag:"a",attrs:r}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]}),subscript:()=>({tag:"sub"}),superscript:()=>({tag:"sup"}),anchor:e=>({tag:[{tag:"span",attrs:e.attrs}]}),highlight:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`background-color:${e.attrs.color};`}}]}:{tag:""}}
4,textStyle:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`color:${e.attrs.color}`}}]}:{tag:""}}}},d=function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=/[&<>"']/g,n=new RegExp(r.source);return e&&n.test(e)?e.replace(r,e=>t[e]):e},f=!1;class h{constructor(e){a(this,"marks"),a(this,"nodes"),e||(e=c),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1},r=!0){if(!f&&r&&(console.warn("Warning â ï¸: The RichTextResolver class is deprecated and will be removed in the next major release. Please use the `@storyblok/richtext` package instead. https://github.com/storyblok/richtext/"),f=!0),e&&e.content&&Array.isArray(e.content)){let r="";return e.content.forEach(e=>{r+=this.renderNode(e)}),t.optimizeImages?this.optimizeImages(r,t.optimizeImages):r}return console.warn(`The render method must receive an Object with a "content" field. 5 The "content" field must be an array of nodes as the type ISbRichtext. 6 ISbRichtext: 7 content?: ISbRichtext[] 8 marks?: ISbRichtext[] 9 attrs?: any 10 text?: string 11 type: string 12 13 Example: 14 { 15 content: [ 16 { 17 content: [ 18 { 19 text: 'Hello World', 20 type: 'text' 21 } 22 ], 23 type: 'paragraph' 24 } 25 ], 26 type: 'doc' 27 }`),""}optimizeImages(e,t){let r=0,n=0,i="",o="";"boolean"!=typeof t&&("number"==typeof t.width&&t.width>0&&(i+=`width="${t.width}" `,r=t.width),"number"==typeof t.height&&t.height>0&&(i+=`height="${t.height}" `,n=t.height),("lazy"===t.loading||"eager"===t.loading)&&(i+=`loading="${t.loading}" `),"string"==typeof t.class&&t.class.length>0&&(i+=`class="${t.class}" `),t.filters&&("number"==typeof t.filters.blur&&t.filters.blur>=0&&t.filters.blur<=100&&(o+=`:blur(${t.filters.blur})`),"number"==typeof t.filters.brightness&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(o+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-F]{6}/gi)||"transparent"===t.filters.fill)&&(o+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(o+=`:format(${t.filters.format})`),"boolean"==typeof t.filters.grayscale&&t.filters.grayscale&&(o+=":grayscale()"),"number"==typeof t.filters.quality&&t.filters.quality>=0&&t.filters.quality<=100&&(o+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(o+=`:rotate(${t.filters.rotate})`),o.length>0&&(o=`/filters${o}`))),i.length>0&&(e=e.replace(/<img/g,`<img ${i.trim()}`));let a=r>0||n>0||o.length>0?`${r}x${n}${o}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${a}`),"boolean"!=typeof t&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,e=>{var r,n;let i=e.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g);if(i&&i.length>0){let a={srcset:null==(r=t.srcset)?void 0:r.map(e=>{if("number"==typeof e)return`//${i}/m/${e}x0${o} ${e}w`;if("object"==typeof e&&2===e.length){let t=0,r=0;return"number"==typeof e[0]&&(t=e[0]),"number"==typeof e[1]&&(r=e[1]),`//${i}/m/${t}x${r}${o} ${t}w`}return""}).join(", "),sizes:null==(n=t.sizes)?void 0:n.map(e=>e).join(", ")},s="";return a.srcset&&(s+=`srcset="${a.srcset}" `),a.sizes&&(s+=`sizes="${a.sizes}" `),e.replace(/<img/g,`<img ${s.trim()}`)}return e})),e}renderNode(e){let t=[];e.marks&&e.marks.forEach(e=>{let r=this.getMatchingMark(e);r&&""!==r.tag&&t.push(this.renderOpeningTag(r.tag))});let r=this.getMatchingNode(e);return r&&r.tag&&t.push(this.renderOpeningTag(r.tag)),e.content?e.content.forEach(e=>{t.push(this.renderNode(e))}):e.text?t.push(d(e.text)):r&&r.singleTag?t.push(this.renderTag(r.singleTag," /")):r&&r.html?t.push(r.html):"emoji"===e.type&&t.push(this.renderEmoji(e)),r&&r.tag&&t.push(this.renderClosingTag(r.tag)),e.marks&&e.marks.slice(0).reverse().forEach(e
27=>{let r=this.getMatchingMark(e);r&&""!==r.tag&&t.push(this.renderClosingTag(r.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(e=>{if(e.constructor===String)return`<${e}${t}>`;{let r=`<${e.tag}`;if(e.attrs){for(let t in e.attrs)if(Object.prototype.hasOwnProperty.call(e.attrs,t)){let n=e.attrs[t];null!==n&&(r+=` ${t}="${n}"`)}}return`${r}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(e=>e.constructor===String?`</${e}>`:`</${e.tag}>`).join("")}getMatchingNode(e){let t=this.nodes[e.type];if("function"==typeof t)return t(e)}getMatchingMark(e){let t=this.marks[e.type];if("function"==typeof t)return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;let t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class p{constructor(e){a(this,"baseURL"),a(this,"timeout"),a(this,"headers"),a(this,"responseInterceptor"),a(this,"fetch"),a(this,"ejectInterceptor"),a(this,"url"),a(this,"parameters"),a(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler("delete")}async _responseHandler(e){let t=[],r={data:{},headers:{},status:0,statusText:""};for(let n of(204!==e.status&&await e.json().then(e=>{r.data=e}),e.headers.entries()))t[n[0]]=n[1];return r.headers={...t},r.status=e.status,r.statusText=e.statusText,r}async _methodHandler(e){let t,r=`${this.baseURL}${this.url}`,n=null;if("get"===e){let e=new l;r=`${this.baseURL}${this.url}?${e.stringify(this.parameters)}`}else n=JSON.stringify(this.parameters);let i=new URL(r),o=new AbortController,{signal:a}=o;this.timeout&&(t=setTimeout(()=>o.abort(),this.timeout));try{let r=await this.fetch(`${i}`,{method:e,headers:this.headers,body:n,signal:a,...this.fetchOptions});this.timeout&&clearTimeout(t);let o=await this._responseHandler(r);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(o)):this._statusHandler(o)}catch(e){return{message:e}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_statusHandler(e){let t=/20[0-6]/g;return new Promise((r,n)=>{if(t.test(`${e.status}`))return r(e);n({message:e.statusText,status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug})})}}let m="SB-Agent",g={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"6.0.0"},v={},y={};class b{constructor(e,t){a(this,"client"),a(this,"maxRetries"),a(this,"retriesDelay"),a(this,"throttle"),a(this,"accessToken"),a(this,"cache"),a(this,"helpers"),a(this,"resolveCounter"),a(this,"relations"),a(this,"links"),a(this,"richTextResolver"),a(this,"resolveNestedRelations"),a(this,"stringifiedStoriesCache");let r=e.endpoint||t;if(!r){let t=new l().getRegionURL,n=!1===e.https?"http":"https";r=e.oauthToken?`${n}://${t(e.region)}/v1`:`${n}://${t(e.region)}/v2`}let n=new Headers;n.set("Content-Type","application/json"),n.set("Accept","application/json"),e.headers&&("Headers"===e.headers.constructor.name?e.headers.entries().toArray():Object.entries(e.headers)).forEach(([e,t])=>{n.set(e,t)}),n.has(m)||(n.set(m,g.defaultAgentName),n.set(g.defaultAgentVersion,g.packageVersion));let i=5;e.oauthToken&&(n.set("Authorization",e.oauthToken),i=3),e.rateLimit&&(i=e.rateLimit),e.richTextSchema?this.richTextResolver=new h(e.richTextSchema):this.richTextResolver=new h,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttle=function(e,t,r){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(1e3))throw TypeError("Expected `interval` to be a finite number");let n=[],i=[],o=0,a=!1,l=async()=>{o++;let t=n.shift();if(t)try{let r=await e(...t.args);t.resolve(r)}catch(e){t.reject(e)}let r=setTimeout(()=>{o--,n.length>0&&l(),i=i.filter(e=>e!==r)},1e3);i.includes(r)||i.push(r)},u=(...e)=>a?Promise.reject(Error("Throttled function is already aborted and not accepting new promises")):new Promise((r,i)=>{n.push({resolve:r,reject:i,args:e}),o<t&&l()});return u.abort=()=>
27{a=!0,i.forEach(clearTimeout),i=[],n.forEach(e=>e.reject(()=>new s("Throttle function aborted"))),n.length=0},u}(this.throttledRequest.bind(this),i,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new l,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.client=new p({baseURL:r,timeout:e.timeout||0,headers:n,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let r="";return t.attrs.body&&t.attrs.body.forEach(t=>{r+=e(t.component,t)}),{html:r}})}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=y[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),"u">typeof e.resolve_relations&&(e.resolve_level=2),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}makeRequest(e,t,r,n,i){let o=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,r,n));return this.cacheResponse(e,o,void 0,i)}get(e,t,r){t||(t={});let n=`/${e}`,i=this.factoryParamOptions(n,t);return this.cacheResponse(n,i,void 0,r)}async getAll(e,t,r,n){let i=(null==t?void 0:t.per_page)||25,o=`/${e}`.replace(/\/$/,""),a=r??o.substring(o.lastIndexOf("/")+1),s=await this.makeRequest(o,t,i,1,n),l=s.total?Math.ceil(s.total/i):1,u=await this.helpers.asyncMap(this.helpers.range(1,l),e=>this.makeRequest(o,t,i,e+1,n));return this.helpers.flatMap([s,...u],e=>Object.values(e.data[a]))}post(e,t,r){let n=`/${e}`;return Promise.resolve(this.throttle("post",n,t,r))}put(e,t,r){let n=`/${e}`;return Promise.resolve(this.throttle("put",n,t,r))}delete(e,t,r){t||(t={});let n=`/${e}`;return Promise.resolve(this.throttle("delete",n,t,r))}getStories(e,t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t,r){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,r)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){"u">typeof e.resolve_relations&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,r){let n=e[t];n&&"multilink"===n.fieldtype&&"story"===n.linktype&&"string"==typeof n.id&&this.links[r][n.id]?n.story=this._cleanCopy(this.links[r][n.id]):n&&"story"===n.linktype&&"string"==typeof n.uuid&&this.links[r][n.uuid]&&(n.story=this._cleanCopy(this.links[r][n.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,r){let n=e[t];"string"==typeof n?e[t]=this.getStoryReference(r,n):Array.isArray(n)&&(e[t]=n.map(e=>this.getStoryReference(r,e)).filter(Boolean))}_insertRelations(e,t,r,n){if(Array.isArray(r)?r.find(e=>e.endsWith(`.${t}`)):r.endsWith(`.${t}`))return void this._resolveField(e,t,n);let i=e.component?`${e.component}.${t}`:t;(Array.isArray(r)?r.includes(i):r===i)&&this._resolveField(e,t,n)}iterateTree(e,t,r){let n=(e,i="")=>{if(!(!e||e._stopResolving)){if(Array.isArray(e))e.forEach((e,t)=>n(e,`${i}[${t}]`));else if("object"==typeof e)for(let o in e){let a=i?`${i}.${o}`:o;(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,o,t,r),this._insertLinks(e,o,r)),n(e[o],a)}}};n(e.content)}async resolveLinks(e,t,r){let n=[];if(e.link_uuids){let r=e.link_uuids.length,i=[];for(let t=0;t<r;t+=50){let n=Math.min(r,t+50);i.push(e.link_uuids.slice(t,n))}for(let e=0;e<i.length;
27e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{n.push(e)})}else n=e.links;n.forEach(e=>{this.links[r][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,r){let n=[];if(e.rel_uuids){let r=e.rel_uuids.length,i=[];for(let t=0;t<r;t+=50){let n=Math.min(r,t+50);i.push(e.rel_uuids.slice(t,n))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{n.push(e)})}else n=e.rels;n&&n.length>0&&n.forEach(e=>{this.relations[r][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,r){var n,i;let o=[];if(this.links[r]={},this.relations[r]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(o=t.resolve_relations.split(",")),await this.resolveRelations(e,t,r)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&(null!=(n=e.links)&&n.length||null!=(i=e.link_uuids)&&i.length)&&await this.resolveLinks(e,t,r),this.resolveNestedRelations)for(let e in this.relations[r])this.iterateTree(this.relations[r][e],o,r);e.story?this.iterateTree(e.story,o,r):e.stories.forEach(e=>{this.iterateTree(e,o,r)}),this.stringifiedStoriesCache={},delete this.links[r],delete this.relations[r]}async cacheResponse(e,t,r,n){let i=this.helpers.stringify({url:e,params:t}),o=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!==e){let e=await o.get(i);if(e)return Promise.resolve(e)}return new Promise(async(a,s)=>{var l;try{let r=await this.throttle("get",e,t,n);if(200!==r.status)return s(r);let u={data:r.data,headers:r.headers};if(null!=(l=r.headers)&&l["per-page"]&&(u=Object.assign({},u,{perPage:r.headers["per-page"]?Number.parseInt(r.headers["per-page"]):0,total:r.headers["per-page"]?Number.parseInt(r.headers.total):0})),u.data.story||u.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(u.data,t,`${e}`)}return"published"===t.version&&"/cdn/spaces/me"!==e&&await o.set(i,u),u.data.cv&&t.token&&y[t.token]!==u.data.cv&&(await this.flushCache(),y[t.token]=u.data.cv),a(u)}catch(n){if(n.response&&429===n.status&&(r=typeof r>"u"?0:r+1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await this.helpers.delay(this.retriesDelay),this.cacheResponse(e,t,r).then(a).catch(s);s(n)}})}throttledRequest(e,t,r,n){return this.client.setFetchOptions(n),this.client[e](t,r)}cacheVersions(){return y}cacheVersion(){return y[this.accessToken]}setCacheVersion(e){this.accessToken&&(y[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(y[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(v[e]),getAll:()=>Promise.resolve(v),set:(e,t)=>(v[e]=t,Promise.resolve(void 0)),flush:()=>(v={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}}let w=(e={})=>{let{apiOptions:t}=e;return t&&t.accessToken?{storyblokApi:new b(t)}:void console.error("You need to provide an access token to interact with Storyblok API. Read https://www.storyblok.com/docs/api/content-delivery#topics/authentication")},x=e=>{if("object"!=typeof e||typeof e._editable>"u")return{};try{let t=JSON.parse(e._editable.replace(/^<!--#storyblok#/,"").replace(/-->$/,""));return t?{"data-blok-c":JSON.stringify(t),"data-blok-uid":`${t.id}-${t.uid}`}:{}}catch{return{}}};var S=(e=>(e.DOCUMENT="doc",e.HEADING="heading",e.PARAGRAPH="paragraph",e.QUOTE="blockquote",e.OL_LIST="ordered_list",e.UL_LIST="bullet_list",e.LIST_ITEM="list_item",e.CODE_BLOCK="code_block",e.HR="horizontal_rule",e.BR="hard_break",e.IMAGE="image",e.EMOJI="emoji",e.COMPONENT="blok",e))(S||{}),T=(e=>
27(e.BOLD="bold",e.STRONG="strong",e.STRIKE="strike",e.UNDERLINE="underline",e.ITALIC="italic",e.CODE="code",e.LINK="link",e.ANCHOR="anchor",e.STYLED="styled",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.TEXT_STYLE="textStyle",e.HIGHLIGHT="highlight",e))(T||{}),k=(e=>(e.TEXT="text",e))(k||{}),E=(e=>(e.URL="url",e.STORY="story",e.ASSET="asset",e.EMAIL="email",e))(E||{});let _=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function j(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}let C=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t));function A(e,t={},r){let n=((e={})=>Object.keys(e).map(t=>`${t}="${e[t]}"`).join(" "))(t),i=n?`${e} ${n}`:e,o=Array.isArray(r)?r.join(""):r||"";return e?_.includes(e)?`<${i}>`:`<${i}>${o}</${e}>`:o}function O(e={}){let t=0,{renderFn:r=A,textFn:n=j,resolvers:i={},optimizeImages:o=!1,keyedResolvers:a=!1}=e,s=r!==A,l=e=>n=>{let i=n.attrs||{};return a&&(i.key=`${e}-${t}`),r(e,i,n.children||null)},u=(e,n=!1)=>({text:i,attrs:o})=>{let{class:s,id:l,...u}=o||{},c=n?{class:s,id:l,style:((e={})=>Object.keys(e).map(t=>`${t}: ${e[t]}`).join("; "))(u)||void 0}:o||{};return a&&(c.key=`${e}-${t}`),r(e,C(c),i)},c=e=>p(e),d=e=>{let{linktype:n,href:i,anchor:o,...s}=e.attrs||{},l="";switch(n){case E.ASSET:case E.URL:l=i;break;case E.EMAIL:l=`mailto:${i}`;break;case E.STORY:l=i,o&&(l=`${l}#${o}`);break;default:l=i}let u={...s};return l&&(u.href=l),a&&(u.key=`a-${t}`),r("a",u,e.text)},f=new Map([[S.DOCUMENT,l("")],[S.HEADING,e=>{let{level:n,...i}=e.attrs||{},o={...i};return a&&(o.key=`h${n}-${t}`),r(`h${n}`,o,e.children)}],[S.PARAGRAPH,l("p")],[S.UL_LIST,l("ul")],[S.OL_LIST,l("ol")],[S.LIST_ITEM,l("li")],[S.IMAGE,e=>{let{src:n,alt:i,title:s,srcset:l,sizes:u}=e.attrs||{},c=n,d={};if(o){let{src:e,attrs:t}=function(e,t){if(!t)return{src:e,attrs:{}};let r=0,n=0,i={},o=[];function a(e,t,r,n,i){"number"!=typeof e||e<=t||e>=r?console.warn(`[StoryblokRichText] - ${n.charAt(0).toUpperCase()+n.slice(1)} value must be a number between ${t} and ${r} (inclusive)`):i.push(`${n}(${e})`)}if("object"==typeof t){if("number"==typeof t.width&&t.width>0?(i.width=t.width,r=t.width):console.warn("[StoryblokRichText] - Width value must be a number greater than 0"),t.height&&"number"==typeof t.height&&t.height>0?(i.height=t.height,n=t.height):console.warn("[StoryblokRichText] - Height value must be a number greater than 0"),t.loading&&["lazy","eager"].includes(t.loading)&&(i.loading=t.loading),t.class&&(i.class=t.class),t.filters){let{filters:e}=t||{},{blur:r,brightness:n,fill:i,format:s,grayscale:l,quality:u,rotate:c}=e||{};r&&a(r,0,100,"blur",o),u&&a(u,0,100,"quality",o),n&&a(n,0,100,"brightness",o),i&&o.push(`fill(${i})`),l&&o.push("grayscale()"),c&&[0,90,180,270].includes(t.filters.rotate||0)&&o.push(`rotate(${c})`),s&&["webp","png","jpeg"].includes(s)&&o.push(`format(${s})`)}t.srcset&&(i.srcset=t.srcset.map(t=>{if("number"==typeof t)return`${e}/m/${t}x0/${o.length>0?`filters:${o.join(":")}`:""} ${t}w`;if(!Array.isArray(t)||2!==t.length)return void console.warn("[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers");{let[r,n]=t;return`${e}/m/${r}x${n}/${o.length>0?`filters:${o.join(":")}`:""} ${r}w`}}).join(", ")),t.sizes&&(i.sizes=t.sizes.join(", "))}let s=`${e}/m/`;return r>0&&n>0&&(s=`${s}${r}x${n}/`),o.length>0&&(s=`${s}filters:${o.join(":")}`),{src:s,attrs:i}}(n,o);c=e,d=t}return a&&(d={...d,key:`img-${t}`}),r("img",C({src:c,alt:i,title:s,srcset:l,sizes:u,...d}))}],[S.EMOJI,e=>{var n,i,o,s;let l=r("img",{src:null==(n=e.attrs)?void 0:n.fallbackImage,alt:null==(i=e.attrs)?void 0:i.alt,style:"width: 1.25em; height: 1.25em; vertical-align: text-top",draggable:"false",loading:"lazy"}),u={"data-type":"emoji","data-name":null==(o=e.attrs)?void 0:o.name,"data-emoji":null==(s=e.attrs)?void 0:s.emoji};return a&&(u.key=`emoji-${t}`),r("span",u,l)}],[S.CODE_BLOCK,e=>r("pre",{...e.attrs,key:`code-${t}`},r("code",{key:`code-${t}`},e.children||""))],[S.HR,l("hr")],[S.BR,l("br")],[S.QUOTE,l("blockquote")],[S.COMPONENT,e=>{var n,i;return console.warn("[StoryblokRichtText] - BLOK resolver is not available for vanilla usage"),r("span",{blok:null==(n=null==e?void 0:e.attrs)?void 0:n.body[0],id:null==(i=e.attrs)?void 0:i.id,key:`component-${t}`,style:"display: none"})}],[k.TEXT,e=>{let{marks:t,...r}=e;return"text"in e?t?t.reduce((e,t)=>
27c({...t,text:e}),c({...r,children:r.children})):n(r.text):""}],[T.LINK,d],[T.ANCHOR,d],[T.STYLED,u("span",!0)],[T.BOLD,u("strong")],[T.TEXT_STYLE,u("span",!0)],[T.ITALIC,u("em")],[T.UNDERLINE,u("u")],[T.STRIKE,u("s")],[T.CODE,u("code")],[T.SUPERSCRIPT,u("sup")],[T.SUBSCRIPT,u("sub")],[T.HIGHLIGHT,u("mark")],...Object.entries(i).map(([e,t])=>[e,t])]);function h(e){t+=1;let r=f.get(e.type);if(!r)return console.error("<Storyblok>",`No resolver found for node type ${e.type}`),"";if("text"===e.type)return r(e);let n=e.content?e.content.map(p):void 0;return r({...e,children:n})}function p(e){return"doc"===e.type?s?e.content.map(h):e.content.map(h).join(""):Array.isArray(e)?e.map(h):h(e)}return{render:p}}let R,P="https://app.storyblok.com/f/storyblok-v2-latest.js",M=(e,t,r={})=>{var n;let i=!(typeof window>"u")&&"u">typeof window.storyblokRegisterEvent,o=new URL(null==(n=window.location)?void 0:n.href).searchParams.get("_storyblok");if(!(!i||null===o||+o!==e)){if(!e)return void console.warn("Story ID is not defined. Please provide a valid ID.");window.storyblokRegisterEvent(()=>{new window.StoryblokBridge(r).on(["input","published","change"],r=>{var n;r&&("input"===r.action&&(null==(n=r.story)?void 0:n.id)===e?t(r.story):("change"===r.action||"published"===r.action)&&r.storyId===e&&window.location.reload())})})}},$=(e={})=>{var t,r,o;let a,{bridge:s,accessToken:l,use:u=[],apiOptions:c={},richText:d={},bridgeUrl:f}=e;c.accessToken=c.accessToken||l;let p={bridge:s,apiOptions:c},m={};u.forEach(e=>{m={...m,...e(p)}}),f&&(P=f);let g=!(typeof window>"u")&&(null==(r=null==(t=window.location)?void 0:t.search)?void 0:r.includes("_storyblok_tk"));return!1!==s&&g&&(a=P,new Promise((e,t)=>{if(typeof window>"u"||(window.storyblokRegisterEvent=e=>{if(window.location===window.parent.location)return void console.warn("You are not in Draft Mode or in the Visual Editor.");n?e():i.push(e)},document.getElementById("storyblok-javascript-bridge")))return;let r=document.createElement("script");r.async=!0,r.src=a,r.id="storyblok-javascript-bridge",r.onerror=e=>t(e),r.onload=t=>{i.forEach(e=>e()),n=!0,e(t)},document.getElementsByTagName("head")[0].appendChild(r)})),R=new h(d.schema),d.resolver&&(o=d.resolver,R.addNode("blok",e=>{let t="";return e.attrs.body.forEach(e=>{t+=o(e.component,e)}),{html:t}})),m}},51483:(e,t,r)=>{var n=r(24402),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},57038:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(33861),i=r(80177),o=r(94304),a=r(62640);function s(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-(7*(r<1)+r-1)),t.setUTCHours(0,0,0,0),t}function l(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=s(n),l=new Date(0);l.setUTCFullYear(r,0,4),l.setUTCHours(0,0,0,0);var u=s(l);return t.getTime()>=a.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}var u={};function c(e,t){(0,i.A)(1,arguments);var r,n,s,l,c,d,f,h,p=(0,a.A)(null!=(r=null!=(n=null!=(s=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(c=t.locale)||null==(d=c.options)?void 0:d.weekStartsOn)?s:u.weekStartsOn)?n:null==(f=u.locale)||null==(h=f.options)?void 0:h.weekStartsOn)?r:0);if(!(p>=0&&p<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,o.A)(e),g=m.getUTCDay();return m.setUTCDate(m.getUTCDate()-(7*(g<p)+g-p)),m.setUTCHours(0,0,0,0),m}function d(e,t){(0,i.A)(1,arguments);var r,n,s,l,d,f,h,p,m=(0,o.A)(e),g=m.getUTCFullYear(),v=(0,a.A)(null!=(r=null!=(n=null!=(s=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(d=t.locale)||null==(f=d.options)?void 0:f.firstWeekContainsDate)?s:u.firstWeekContainsDate)?n:null==(h=u.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?r:1);if(!(v>=1&&v<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(g+1,0,v),y.setUTCHours(0,0,0,0);var b=c(y,t),w=new Date(0);w.setUTCFullYear(g,0,v),w.setUTCHours(0,0,0,0);var x=c(w,t);return m.getTime()>=b.getTime()?g+1:m.getTime()>=x.getTime()?g:g-1}function f(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r}let h={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return f("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):f(r+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;
27return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)}};var p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(t||"")+f(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):v(e,t)}function v(e,t){var r=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(r/60),2)+(t||"")+f(r%60,2)}let y={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return h.y(e,t)},Y:function(e,t,r,n){var i=d(e,n),o=i>0?i:1-i;return"YY"===t?f(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):f(o,t.length)},R:function(e,t){return f(l(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return f(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return f(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return f(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var s=function(e,t){(0,i.A)(1,arguments);var r=(0,o.A)(e);return Math.round((c(r,t).getTime()-(function(e,t){(0,i.A)(1,arguments);var r,n,o,s,l,f,h,p,m=(0,a.A)(null!=(r=null!=(n=null!=(o=null!=(s=null==t?void 0:t.firstWeekContainsDate)?s:null==t||null==(l=t.locale)||null==(f=l.options)?void 0:f.firstWeekContainsDate)?o:u.firstWeekContainsDate)?n:null==(h=u.locale)||null==(p=h.options)?void 0:p.firstWeekContainsDate)?r:1),g=d(e,t),v=new Date(0);return v.setUTCFullYear(g,0,m),v.setUTCHours(0,0,0,0),c(v,t)})(r,t).getTime())/6048e5)+1}(e,n);return"wo"===t?r.ordinalNumber(s,{unit:"week"}):f(s,t.length)},I:function(e,t,r){var n=function(e){(0,i.A)(1,arguments);var t=(0,o.A)(e);return Math.round((s(t).getTime()-(function(e){(0,i.A)(1,arguments);var t=l(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),s(r)})(t).getTime())/6048e5)+1}(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):f(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,r){var n=function(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):f(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return f(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return f(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?p.noon:0===i?p.midnight:i/12>
27=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return h.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,r,n){return f(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return f((n._originalDate||e).getTime(),t.length)}};var b=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},w=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};let x={p:w,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return b(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",b(i,t)).replace("{{time}}",w(o,t))}};var S=["D","DD"],T=["YY","YYYY"];function k(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
27concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var E={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function _(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var j={date:_({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},C={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function A(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function O(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(l,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(l,function(e){return e.test(s)});return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}let R={code:"en-US",formatDistance:function(e,t,r){var n,i=E[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},formatLong:j,formatRelative:function(e,t,r,n){return C[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:A({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:A({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:A({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:A({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
27ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:A({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:O({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:O({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:O({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:O({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:O({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var P=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$=/^'([^]*?)'?$/,D=/''/g,I=/[a-zA-Z]/;function N(e,t,r){(0,i.A)(2,arguments);var s,l,c,d,f,h,p,m,g,v,b,w,E,_,j,C,A,O,N,F=String(t),L=null!=(l=null!=(c=null==r?void 0:r.locale)?c:u.locale)?l:R,U=(0,a.A)(null!=(d=null!=(f=null!=(h=null!=(p=null==r?void 0:r.firstWeekContainsDate)?p:null==r||null==(m=r.locale)||null==(g=m.options)?void 0:g.firstWeekContainsDate)?h:u.firstWeekContainsDate)?f:null==(v=u.locale)||null==(b=v.options)?void 0:b.firstWeekContainsDate)?d:1);if(!(U>=1&&U<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=(0,a.A)(null!=(w=null!=(E=null!=(_=null!=(j=null==r?void 0:r.weekStartsOn)?j:null==r||null==(C=r.locale)||null==(A=C.options)?void 0:A.weekStartsOn)?_:u.weekStartsOn)?E:null==(O=u.locale)||null==(N=O.options)?void 0:N.weekStartsOn)?w:0);if(!(z>=0&&z<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!L.localize)throw RangeError("locale must contain localize property");if(!L.formatLong)throw RangeError("locale must contain formatLong property");var W=(0,o.A)(e);if(!function(e){return(0,i.A)(1,arguments),(!!function(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,o.A)(e)))}(W))throw RangeError("Invalid time value");var H=((s=new Date(Date.UTC(W.getFullYear(),W.getMonth(),W.getDate(),W.getHours(),W.getMinutes(),W.getSeconds(),W.getMilliseconds()))).setUTCFullYear(W.getFullYear()),W.getTime()-s.getTime()),B=function(e,t){return(0,i.A)(2,arguments),function(e,t){return(0,i.A)(2,arguments),new Date((0,o.A)(e).getTime()+(0,a.A)(t))}(e,-(0,a.A)(t))}(W,H),V={firstWeekContainsDate:U,weekStartsOn:z,locale:L,_originalDate:W};return F.match(M).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,x[t])(e,L.formatLong):e}).join("").match(P).map(function(n){if("''"===n)return"'";var i,o,a=n[0];if("'"===a){return(o=(i=n).match($))?o[1].replace(D,"'"):i}var s=y[a];if(s)return null!=r&&r.useAdditionalWeekYearTokens||-1===T.indexOf(n)||k(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||-1===S.indexOf(n)||k(n,t,String(e)),s(B,n,L.localize,V);
27if(a.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return n}).join("")}},57363:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(50351),i=r(12115),o=r(99299);let a=e=>{var t,r;let{story:a=null,bridgeOptions:s={}}=e;if(typeof window>"u")return null;let l=null!=(r=null!=(t=null==a?void 0:a.internalId)?t:null==a?void 0:a.id)?r:0;return(0,i.useEffect)(()=>{(0,n.Kk)(l,e=>(e=>{e&&(0,i.startTransition)(()=>{(0,o.U)({story:e,pathToRevalidate:window.location.pathname})})})(e),s)},[]),null}},58840:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59034:(e,t,r)=>{"use strict";r.d(t,{LM:()=>Y,Ze:()=>G,bL:()=>q,zi:()=>K});var n=r(12115),i=r(97602),o=r(76842),a=r(3468),s=r(94446),l=r(70222),u=r(66218),c=r(4129),d=r(34212),f=r(92556),h=r(95155),p="ScrollArea",[m,g]=(0,a.A)(p),[v,y]=m(p),b=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,f]=n.useState(null),[p,m]=n.useState(null),[g,y]=n.useState(null),[b,w]=n.useState(null),[x,S]=n.useState(null),[T,k]=n.useState(0),[E,_]=n.useState(0),[j,C]=n.useState(!1),[A,O]=n.useState(!1),R=(0,s.s)(t,e=>f(e)),P=(0,u.jH)(a);return(0,h.jsx)(v,{scope:r,type:o,dir:P,scrollHideDelay:l,scrollArea:d,viewport:p,onViewportChange:m,content:g,onContentChange:y,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:j,onScrollbarXEnabledChange:C,scrollbarY:x,onScrollbarYChange:S,scrollbarYEnabled:A,onScrollbarYEnabledChange:O,onCornerWidthChange:k,onCornerHeightChange:_,children:(0,h.jsx)(i.sG.div,{dir:P,...c,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});b.displayName=p;var w="ScrollAreaViewport",x=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:a,...l}=e,u=y(w,r),c=n.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,h.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,h.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});x.displayName=w;var S="ScrollAreaScrollbar",T=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,o=y(S,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return n.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,h.jsx)(k,{...i,ref:t,forceMount:r}):"scroll"===o.type?(0,h.jsx)(E,{...i,ref:t,forceMount:r}):"auto"===o.type?(0,h.jsx)(_,{...i,ref:t,forceMount:r}):"always"===o.type?(0,h.jsx)(j,{...i,ref:t}):null});T.displayName=S;var k=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,a=y(S,e.__scopeScrollArea),[s,l]=n.useState(!1);return n.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[a.scrollArea,a.scrollHideDelay]),(0,h.jsx)(o.C,{present:r||s,children:(0,h.jsx)(_,{"data-state":s?"visible":"hidden",...i,ref:t})})}),E=n.forwardRef((e,t)=>{var r;let{forceMount:i,...a}=e,s=y(S,e.__scopeScrollArea),l="horizontal"===e.orientation,u=B(()=>d("SCROLL_END"),100),[c,d]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},"hidden"));return n.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>d("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,d]),n.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(d("SCROLL"),u()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}}
27,[s.viewport,l,d,u]),(0,h.jsx)(o.C,{present:i||"hidden"!==c,children:(0,h.jsx)(j,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:t,onPointerEnter:(0,f.m)(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:(0,f.m)(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),_=n.forwardRef((e,t)=>{let r=y(S,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=n.useState(!1),u="horizontal"===e.orientation,c=B(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(u?e:t)}},10);return V(r.viewport,c),V(r.content,c),(0,h.jsx)(o.C,{present:i||s,children:(0,h.jsx)(j,{"data-state":s?"visible":"hidden",...a,ref:t})})}),j=n.forwardRef((e,t)=>{let{orientation:r="vertical",...i}=e,o=y(S,e.__scopeScrollArea),a=n.useRef(null),s=n.useRef(0),[l,u]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=L(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,t){return function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=U(r),o=t||i/2,a=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-(i-o),l=r.content-r.viewport;return W([a,s],"ltr"===n?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===r?(0,h.jsx)(C,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=z(o.viewport.scrollLeft,l,o.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=f(e,o.dir))}}):"vertical"===r?(0,h.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=z(o.viewport.scrollTop,l);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=f(e))}}):null}),C=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,a=y(S,e.__scopeScrollArea),[l,u]=n.useState(),c=n.useRef(null),d=(0,s.s)(t,c,a.onScrollbarXChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(P,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e<t}(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:F(l.paddingLeft),paddingEnd:F(l.paddingRight)}})}})}),A=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,a=y(S,e.__scopeScrollArea),[l,u]=n.useState(),c=n.useRef(null),d=(0,s.s)(t,c,a.onScrollbarYChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,h.jsx)(P,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e<t}(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:
27a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:F(l.paddingTop),paddingEnd:F(l.paddingBottom)}})}})}),[O,R]=m(S),P=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:a,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:g,onResize:v,...b}=e,w=y(S,r),[x,T]=n.useState(null),k=(0,s.s)(t,e=>T(e)),E=n.useRef(null),_=n.useRef(""),j=w.viewport,C=o.content-o.viewport,A=(0,l.c)(g),R=(0,l.c)(p),P=B(v,10);function M(e){E.current&&m({x:e.clientX-E.current.left,y:e.clientY-E.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==x?void 0:x.contains(t))&&A(e,C)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[j,x,C,A]),n.useEffect(R,[o,R]),V(x,P),V(w.content,P),(0,h.jsx)(O,{scope:r,scrollbar:x,hasThumb:a,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:R,onThumbPointerDown:(0,l.c)(d),children:(0,h.jsx)(i.sG.div,{...b,ref:k,style:{position:"absolute",...b.style},onPointerDown:(0,f.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),E.current=x.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),M(e))}),onPointerMove:(0,f.m)(e.onPointerMove,M),onPointerUp:(0,f.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=_.current,w.viewport&&(w.viewport.style.scrollBehavior=""),E.current=null})})})}),M="ScrollAreaThumb",$=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=R(M,e.__scopeScrollArea);return(0,h.jsx)(o.C,{present:r||i.hasThumb,children:(0,h.jsx)(D,{ref:t,...n})})}),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...a}=e,l=y(M,r),u=R(M,r),{onThumbPositionChange:c}=u,d=(0,s.s)(t,e=>u.onThumbChange(e)),p=n.useRef(void 0),m=B(()=>{p.current&&(p.current(),p.current=void 0)},100);return n.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),p.current||(p.current=H(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,h.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,f.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,f.m)(e.onPointerUp,u.onThumbPointerUp)})});$.displayName=M;var I="ScrollAreaCorner";n.forwardRef((e,t)=>{let r=y(I,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,h.jsx)(N,{...e,ref:t}):null}).displayName=I;var N=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,a=y(I,r),[s,l]=n.useState(0),[u,c]=n.useState(0),d=!!(s&&u);return V(a.scrollbarX,()=>{var e;let t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),c(t)}),V(a.scrollbarY,()=>{var e;let t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),l(t)}),d?(0,h.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function F(e){return e?parseInt(e,10):0}function L(e,t){let r=e/t;return isNaN(r)?0:r}function U(e){let t=L(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function z(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=U(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=(0,d.q)(e,"ltr"===r?[0,a]:[-1*a,0]);return W([0,a],[0,o-n])(s)}function W(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;
27(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function B(e,t){let r=(0,l.c)(e),i=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),n.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function V(e,t){let r=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var q=b,Y=x,G=T,K=$},60574:(e,t,r)=>{"use strict";r.d(t,{UC:()=>K,B8:()=>Y,bL:()=>q,l9:()=>G});var n=r(12115),i=r(92556),o=r(3468),a=r(88167),s=r(94446),l=r(68946),u=r(97602),c=r(70222),d=r(23558),f=r(66218),h=r(95155),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,b]=(0,a.N)(g),[w,x]=(0,o.A)(g,[b]),[S,T]=w(g),k=n.forwardRef((e,t)=>(0,h.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(E,{...e,ref:t})})}));k.displayName=g;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:l,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...T}=e,k=n.useRef(null),E=(0,s.s)(t,k),_=(0,f.jH)(l),[j=null,C]=(0,d.i)({prop:g,defaultProp:v,onChange:b}),[O,R]=n.useState(!1),P=(0,c.c)(w),M=y(r),$=n.useRef(!1),[D,I]=n.useState(0);return n.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(p,P),()=>e.removeEventListener(p,P)},[P]),(0,h.jsx)(S,{scope:r,orientation:o,dir:_,loop:a,currentTabStopId:j,onItemFocus:n.useCallback(e=>C(e),[C]),onItemShiftTab:n.useCallback(()=>R(!0),[]),onFocusableItemAdd:n.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>I(e=>e-1),[]),children:(0,h.jsx)(u.sG.div,{tabIndex:O||0===D?-1:0,"data-orientation":o,...T,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{$.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!$.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),x)}}$.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>R(!1))})})}),_="RovingFocusGroupItem",j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,...c}=e,d=(0,l.B)(),f=s||d,p=T(_,r),m=p.currentTabStopId===f,g=y(r),{onFocusableItemAdd:b,onFocusableItemRemove:w}=p;return n.useEffect(()=>{if(o)return b(),()=>w()},[o,b,w]),(0,h.jsx)(v.ItemSlot,{scope:r,id:f,focusable:o,active:a,children:(0,h.jsx)(u.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return C[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>A(r))}})})})});j.displayName=_;var C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var O=r(76842),R="Tabs",[P,M]=(0,o.A)(R,[x]),$=x(),[D,I]=P(R),N=n.forwardRef((e,t)=>
27{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:c="automatic",...p}=e,m=(0,f.jH)(s),[g,v]=(0,d.i)({prop:n,onChange:i,defaultProp:o});return(0,h.jsx)(D,{scope:r,baseId:(0,l.B)(),value:g,onValueChange:v,orientation:a,dir:m,activationMode:c,children:(0,h.jsx)(u.sG.div,{dir:m,"data-orientation":a,...p,ref:t})})});N.displayName=R;var F="TabsList",L=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=I(F,r),a=$(r);return(0,h.jsx)(k,{asChild:!0,...a,orientation:o.orientation,dir:o.dir,loop:n,children:(0,h.jsx)(u.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});L.displayName=F;var U="TabsTrigger",z=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=I(U,r),l=$(r),c=B(s.baseId,n),d=V(s.baseId,n),f=n===s.value;return(0,h.jsx)(j,{asChild:!0,...l,focusable:!o,active:f,children:(0,h.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(n)}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(n)}),onFocus:(0,i.m)(e.onFocus,()=>{let e="manual"!==s.activationMode;f||o||!e||s.onValueChange(n)})})})});z.displayName=U;var W="TabsContent",H=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:o,children:a,...s}=e,l=I(W,r),c=B(l.baseId,i),d=V(l.baseId,i),f=i===l.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(O.C,{present:o||f,children:r=>{let{present:n}=r;return(0,h.jsx)(u.sG.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&a})}})});function B(e,t){return"".concat(e,"-trigger-").concat(t)}function V(e,t){return"".concat(e,"-content-").concat(t)}H.displayName=W;var q=N,Y=L,G=z,K=H},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function s(){return i?i.snapshot():function(e,...t){return e(...t)}}},66218:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(12115);r(95155);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},66548:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>v});var n=Object.defineProperty,i=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class o extends Error{constructor(e){super(e),this.name="AbortError"}}class a{constructor(){i(this,"isCDNUrl",(e="")=>e.includes("/cdn/")),i(this,"getOptionsPage",(e,t=25,r=1)=>({...e,per_page:t,page:r})),i(this,"delay",e=>new Promise(t=>setTimeout(t,e))),i(this,"arrayFrom",(e=0,t)=>Array.from({length:e},t)),i(this,"range",(e=0,t=e)=>{let r=Math.abs(t-e)||0,n=e<t?1:-1;return this.arrayFrom(r,(t,r)=>r*n+e)}),i(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),i(this,"flatMap",(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[])),i(this,"escapeHTML",function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=/[&<>"']/g,n=new RegExp(r.source);return e&&n.test(e)?e.replace(r,e=>t[e]):e})}stringify(e,t,r){let n=[];for(let i in e){let o;if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i],s=r?"":encodeURIComponent(i);o="object"==typeof a?this.stringify(a,t?t+encodeURIComponent(`[${s}]`):s,Array.isArray(a)):`${t?t+encodeURIComponent(`[${s}]`):s}=${encodeURIComponent(a)}`,n.push(o)}return n.join("&")}getRegionURL(e){switch(e){case"us":return"api-us.storyblok.com";case"cn":return"app.storyblokchina.cn";case"ap":return"api-ap.storyblok.com";case"ca":return"api-ca.storyblok.com";default:return"api.storyblok.com"}}}let s=function(e,t){let r={};for(let n in e){let i=e[n];t.includes(n)&&null!==i&&(r[n]=i)}return r},l={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:s(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"}
27),emoji:e=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":e.attrs.name,emoji:e.attrs.emoji}}]})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"s"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link:e=>{if(!e.attrs)return{tag:""};let t=new a().escapeHTML,r={...e.attrs},{linktype:n="url"}=e.attrs;if(delete r.linktype,r.href&&(r.href=t(e.attrs.href||"")),"email"===n&&(r.href=`mailto:${r.href}`),r.anchor&&(r.href=`${r.href}#${r.anchor}`,delete r.anchor),r.custom){for(let e in r.custom)r[e]=r.custom[e];delete r.custom}return{tag:[{tag:"a",attrs:r}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]}),subscript:()=>({tag:"sub"}),superscript:()=>({tag:"sup"}),anchor:e=>({tag:[{tag:"span",attrs:e.attrs}]}),highlight:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`background-color:${e.attrs.color};`}}]}:{tag:""}},textStyle:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`color:${e.attrs.color}`}}]}:{tag:""}}}},u=function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=/[&<>"']/g,n=new RegExp(r.source);return e&&n.test(e)?e.replace(r,e=>t[e]):e},c=!1;class d{constructor(e){i(this,"marks"),i(this,"nodes"),e||(e=l),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1},r=!0){if(!c&&r&&(console.warn("Warning â ï¸: The RichTextResolver class is deprecated and will be removed in the next major release. Please use the `@storyblok/richtext` package instead. https://github.com/storyblok/richtext/"),c=!0),e&&e.content&&Array.isArray(e.content)){let r="";return e.content.forEach(e=>{r+=this.renderNode(e)}),t.optimizeImages?this.optimizeImages(r,t.optimizeImages):r}return console.warn(`The render method must receive an Object with a "content" field. 28 The "content" field must be an array of nodes as the type ISbRichtext. 29 ISbRichtext: 30 content?: ISbRichtext[] 31 marks?: ISbRichtext[] 32 attrs?: any 33 text?: string 34 type: string 35 36 Example: 37 { 38 content: [ 39 { 40 content: [ 41 { 42 text: 'Hello World', 43 type: 'text' 44 } 45 ], 46 type: 'paragraph' 47 } 48 ], 49 type: 'doc' 50 }`),""}optimizeImages(e,t){let r=0,n=0,i="",o="";"boolean"!=typeof t&&("number"==typeof t.width&&t.width>0&&(i+=`width="${t.width}" `,r=t.width),"number"==typeof t.height&&t.height>0&&(i+=`height="${t.height}" `,n=t.height),("lazy"===t.loading||"eager"===t.loading)&&(i+=`loading="${t.loading}" `),"string"==typeof t.class&&t.class.length>0&&(i+=`class="${t.class}" `),t.filters&&("number"==typeof t.filters.blur&&t.filters.blur>=0&&t.filters.blur<=100&&(o+=`:blur(${t.filters.blur})`),"number"==typeof t.filters.brightness&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(o+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-F]{6}/gi)||"transparent"===t.filters.fill)&&(o+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(o+=`:format(${t.filters.format})`),"boolean"==typeof t.filters.grayscale&&t.filters.grayscale&&(o+=":grayscale()"),"number"==typeof t.filters.quality&&t.filters.quality>=0&&t.filters.quality<=100&&(o+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(o+=`:rotate(${t.filters.rotate})`),o.length>0&&(o=`/filters${o}`))),i.length>0&&(e=e.replace(/<img/g,`<img ${i.trim()}`));let a=r>0||n>0||o.length>0?`${r}x${n}${o}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${a}`),"boolean"!=typeof t&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,e=>{var r,n;let i=e.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g);if(i&&i.length>0){let a={srcset:null==(r=t.srcset)?void 0:r.map(e=>{if("number"==typeof e)return`//${i}/m/${e}x0${o} ${e}w`;if("object"==typeof e&&2===e.length){let t=0,r=0;return"number"==typeof e[0]&&(t=e[0]),"number"==typeof e[1]&&(r=e[1]),`//${i}/m/${t}x${r}${o} ${t}w`}return""}).join(", "),sizes:null==(n=t.sizes)?void 0:n.map(e=>e).join(", ")},s="";return a.srcset&&(s+=`srcset="${a.srcset}" `),a.sizes&&(s+=`sizes="${a.sizes}" `),e.replace(/<img/g,`<img ${s.trim()}`)}return e})),e}renderNode(e){let t=[];
50e.marks&&e.marks.forEach(e=>{let r=this.getMatchingMark(e);r&&""!==r.tag&&t.push(this.renderOpeningTag(r.tag))});let r=this.getMatchingNode(e);return r&&r.tag&&t.push(this.renderOpeningTag(r.tag)),e.content?e.content.forEach(e=>{t.push(this.renderNode(e))}):e.text?t.push(u(e.text)):r&&r.singleTag?t.push(this.renderTag(r.singleTag," /")):r&&r.html?t.push(r.html):"emoji"===e.type&&t.push(this.renderEmoji(e)),r&&r.tag&&t.push(this.renderClosingTag(r.tag)),e.marks&&e.marks.slice(0).reverse().forEach(e=>{let r=this.getMatchingMark(e);r&&""!==r.tag&&t.push(this.renderClosingTag(r.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(e=>{if(e.constructor===String)return`<${e}${t}>`;{let r=`<${e.tag}`;if(e.attrs){for(let t in e.attrs)if(Object.prototype.hasOwnProperty.call(e.attrs,t)){let n=e.attrs[t];null!==n&&(r+=` ${t}="${n}"`)}}return`${r}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(e=>e.constructor===String?`</${e}>`:`</${e.tag}>`).join("")}getMatchingNode(e){let t=this.nodes[e.type];if("function"==typeof t)return t(e)}getMatchingMark(e){let t=this.marks[e.type];if("function"==typeof t)return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;let t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class f{constructor(e){i(this,"baseURL"),i(this,"timeout"),i(this,"headers"),i(this,"responseInterceptor"),i(this,"fetch"),i(this,"ejectInterceptor"),i(this,"url"),i(this,"parameters"),i(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t,this._methodHandler("delete")}async _responseHandler(e){let t=[],r={data:{},headers:{},status:0,statusText:""};for(let n of(204!==e.status&&await e.json().then(e=>{r.data=e}),e.headers.entries()))t[n[0]]=n[1];return r.headers={...t},r.status=e.status,r.statusText=e.statusText,r}async _methodHandler(e){let t,r=`${this.baseURL}${this.url}`,n=null;if("get"===e){let e=new a;r=`${this.baseURL}${this.url}?${e.stringify(this.parameters)}`}else n=JSON.stringify(this.parameters);let i=new URL(r),o=new AbortController,{signal:s}=o;this.timeout&&(t=setTimeout(()=>o.abort(),this.timeout));try{let r=await this.fetch(`${i}`,{method:e,headers:this.headers,body:n,signal:s,...this.fetchOptions});this.timeout&&clearTimeout(t);let o=await this._responseHandler(r);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(o)):this._statusHandler(o)}catch(e){return{message:e}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_statusHandler(e){let t=/20[0-6]/g;return new Promise((r,n)=>{if(t.test(`${e.status}`))return r(e);n({message:e.statusText,status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug})})}}let h="SB-Agent",p={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"6.0.0"},m={},g={};class v{constructor(e,t){i(this,"client"),i(this,"maxRetries"),i(this,"retriesDelay"),i(this,"throttle"),i(this,"accessToken"),i(this,"cache"),i(this,"helpers"),i(this,"resolveCounter"),i(this,"relations"),i(this,"links"),i(this,"richTextResolver"),i(this,"resolveNestedRelations"),i(this,"stringifiedStoriesCache");let r=e.endpoint||t;if(!r){let t=new a().getRegionURL,n=!1===e.https?"http":"https";r=e.oauthToken?`${n}://${t(e.region)}/v1`:`${n}://${t(e.region)}/v2`}let n=new Headers;n.set("Content-Type","application/json"),n.set("Accept","application/json"),e.headers&&("Headers"===e.headers.constructor.name?e.headers.entries().toArray():Object.entries(e.headers)).forEac
50h(([e,t])=>{n.set(e,t)}),n.has(h)||(n.set(h,p.defaultAgentName),n.set(p.defaultAgentVersion,p.packageVersion));let s=5;e.oauthToken&&(n.set("Authorization",e.oauthToken),s=3),e.rateLimit&&(s=e.rateLimit),e.richTextSchema?this.richTextResolver=new d(e.richTextSchema):this.richTextResolver=new d,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttle=function(e,t,r){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(1e3))throw TypeError("Expected `interval` to be a finite number");let n=[],i=[],a=0,s=!1,l=async()=>{a++;let t=n.shift();if(t)try{let r=await e(...t.args);t.resolve(r)}catch(e){t.reject(e)}let r=setTimeout(()=>{a--,n.length>0&&l(),i=i.filter(e=>e!==r)},1e3);i.includes(r)||i.push(r)},u=(...e)=>s?Promise.reject(Error("Throttled function is already aborted and not accepting new promises")):new Promise((r,i)=>{n.push({resolve:r,reject:i,args:e}),a<t&&l()});return u.abort=()=>{s=!0,i.forEach(clearTimeout),i=[],n.forEach(e=>e.reject(()=>new o("Throttle function aborted"))),n.length=0},u}(this.throttledRequest.bind(this),s,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new a,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.client=new f({baseURL:r,timeout:e.timeout||0,headers:n,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let r="";return t.attrs.body&&t.attrs.body.forEach(t=>{r+=e(t.component,t)}),{html:r}}
50)}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=g[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),"u">typeof e.resolve_relations&&(e.resolve_level=2),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}makeRequest(e,t,r,n,i){let o=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,r,n));return this.cacheResponse(e,o,void 0,i)}get(e,t,r){t||(t={});let n=`/${e}`,i=this.factoryParamOptions(n,t);return this.cacheResponse(n,i,void 0,r)}async getAll(e,t,r,n){let i=(null==t?void 0:t.per_page)||25,o=`/${e}`.replace(/\/$/,""),a=r??o.substring(o.lastIndexOf("/")+1),s=await this.makeRequest(o,t,i,1,n),l=s.total?Math.ceil(s.total/i):1,u=await this.helpers.asyncMap(this.helpers.range(1,l),e=>this.makeRequest(o,t,i,e+1,n));return this.helpers.flatMap([s,...u],e=>Object.values(e.data[a]))}post(e,t,r){let n=`/${e}`;return Promise.resolve(this.throttle("post",n,t,r))}put(e,t,r){let n=`/${e}`;return Promise.resolve(this.throttle("put",n,t,r))}delete(e,t,r){let n=`/${e}`;return Promise.resolve(this.throttle("delete",n,t,r))}getStories(e,t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t,r){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,r)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){"u">typeof e.resolve_relations&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,r){let n=e[t];n&&"multilink"===n.fieldtype&&"story"===n.linktype&&"string"==typeof n.id&&this.links[r][n.id]?n.story=this._cleanCopy(this.links[r][n.id]):n&&"story"===n.linktype&&"string"==typeof n.uuid&&this.links[r][n.uuid]&&(n.story=this._cleanCopy(this.links[r][n.uuid]))}getStoryReference(e,t){return this.relations[e][t]?(this.stringifiedStoriesCache[t]||(this.stringifiedStoriesCache[t]=JSON.stringify(this.relations[e][t])),JSON.parse(this.stringifiedStoriesCache[t])):t}_insertRelations(e,t,r,n){r.includes(`${e.component}.${t}`)&&("string"==typeof e[t]?e[t]=this.getStoryReference(n,e[t]):Array.isArray(e[t])&&(e[t]=e[t].map(e=>this.getStoryReference(n,e)).filter(Boolean)))}iterateTree(e,t,r){let n=e=>{if(null!=e){if(e.constructor===Array)for(let t=0;t<e.length;t++)n(e[t]);else if(e.constructor===Object){if(e._stopResolving)return;for(let i in e)(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,i,t,r),this._insertLinks(e,i,r)),n(e[i])}}};n(e.content)}async resolveLinks(e,t,r){let n=[];if(e.link_uuids){let r=e.link_uuids.length,i=[];for(let t=0;t<r;t+=50){let n=Math.min(r,t+50);i.push(e.link_uuids.slice(t,n))}for(let e=0;e<i.length;
50e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{n.push(e)})}else n=e.links;n.forEach(e=>{this.links[r][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,r){let n=[];if(e.rel_uuids){let r=e.rel_uuids.length,i=[];for(let t=0;t<r;t+=50){let n=Math.min(r,t+50);i.push(e.rel_uuids.slice(t,n))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,by_uuids:i[e].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{n.push(e)})}else n=e.rels;n&&n.length>0&&n.forEach(e=>{this.relations[r][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,r){var n,i;let o=[];if(this.links[r]={},this.relations[r]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(o=t.resolve_relations.split(",")),await this.resolveRelations(e,t,r)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&(null!=(n=e.links)&&n.length||null!=(i=e.link_uuids)&&i.length)&&await this.resolveLinks(e,t,r),this.resolveNestedRelations)for(let e in this.relations[r])this.iterateTree(this.relations[r][e],o,r);e.story?this.iterateTree(e.story,o,r):e.stories.forEach(e=>{this.iterateTree(e,o,r)}),this.stringifiedStoriesCache={},delete this.links[r],delete this.relations[r]}async cacheResponse(e,t,r,n){let i=this.helpers.stringify({url:e,params:t}),o=this.cacheProvider();if("auto"===this.cache.clear&&"draft"===t.version&&await this.flushCache(),"published"===t.version&&"/cdn/spaces/me"!==e){let e=await o.get(i);if(e)return Promise.resolve(e)}return new Promise(async(a,s)=>{var l;try{let r=await this.throttle("get",e,t,n);if(200!==r.status)return s(r);let u={data:r.data,headers:r.headers};if(null!=(l=r.headers)&&l["per-page"]&&(u=Object.assign({},u,{perPage:r.headers["per-page"]?Number.parseInt(r.headers["per-page"]):0,total:r.headers["per-page"]?Number.parseInt(r.headers.total):0})),u.data.story||u.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(u.data,t,`${e}`)}return"published"===t.version&&"/cdn/spaces/me"!==e&&await o.set(i,u),u.data.cv&&t.token&&g[t.token]!==u.data.cv&&(await this.flushCache(),g[t.token]=u.data.cv),a(u)}catch(n){if(n.response&&429===n.status&&(r=typeof r>"u"?0:r+1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await this.helpers.delay(this.retriesDelay),this.cacheResponse(e,t,r).then(a).catch(s);s(n)}})}throttledRequest(e,t,r,n){return this.client.setFetchOptions(n),this.client[e](t,r)}cacheVersions(){return g}cacheVersion(){return g[this.accessToken]}setCacheVersion(e){this.accessToken&&(g[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(g[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(m[e]),getAll:()=>Promise.resolve(m),set:(e,t)=>(m[e]=t,Promise.resolve(void 0)),flush:()=>(m={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}}},67909:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(86278),i=r.n(n)},68381:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},68946:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(12115),o=r(4129),a=(n||(n=r.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(a());return(0,o.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},69666:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(12115),i=r(94446),o=r(97602),a=r(70222),s=r(95155),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>
50{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:v,...y}=e,[b,w]=n.useState(null),x=(0,a.c)(g),S=(0,a.c)(v),T=n.useRef(null),k=(0,i.s)(t,e=>w(e)),E=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(E.paused||!b)return;let t=e.target;b.contains(t)?T.current=t:p(T.current,{select:!0})},t=function(e){if(E.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||p(T.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,b,E.paused]),n.useEffect(()=>{if(b){m.add(E);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,x),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(p(n,{select:t}),document.activeElement!==r)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(b))}return()=>{b.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,S),b.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),b.removeEventListener(u,S),m.remove(E)},0)}}},[b,x,S,E]);let _=n.useCallback(e=>{if(!r&&!d||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=function(e){let t=f(e);return[h(t,e),h(t.reverse(),e)]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&p(o,{select:!0})):(e.preventDefault(),r&&p(i,{select:!0})):n===t&&e.preventDefault()}},[r,d,E.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...y,ref:k,onKeyDown:_})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=g(e,t)).unshift(t)},remove(t){var r;null==(r=(e=g(e,t))[0])||r.resume()}}}();function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},70222:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(12115);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},70612:(e,t,r)=>{"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===c(e)}r.d(t,{A:()=>q});let i=1/0;function o(e){return"string"==typeof e}function a(e){return"number"==typeof e}function s(e){return"object"==typeof e}function l(e){return null!=e}function u(e){return!e.trim().length}function c(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=Object.prototype.hasOwnProperty;class f{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=h(e);t+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function h(e){let t=null,r=null,i=null,a=1,s=null;if(o(e)||n(e))i=e,t=p(e),r=m(e);else{if(!d.call(e,"name"))throw Error("Missing name property in key");let n=e.name;if(i=n,d.call(e,"weight")&&(a=e.weight)<=0)throw Error(`Property 'weight' in key '${n}' must be a positive integer`);t=p(n),r=m(n),s=e.getFn}return{path:t,id:r,weight:a,src:i,getFn:s}}function p(e){return n(e)?e:e.split(".")}function m(e){return n(e)?e.join("."):e}var g={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],u=!1,d=(e,t,f)=>{if(l(e))if(t[f]){var h,p;let m=e[t[f]];if(!l(m))return;if(f===t.length-1&&(o(m)||a(m)||!0===(h=m)||!1===h||s(p=h)&&null!==p&&"[object Boolean]"==c(h)))r.push(null==m?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-i?"-0":t}(m));else if(n(m)){u=!0;for(let e=0,r=m.length;e<r;e+=1)d(m[e],t,f+1)}else t.length&&d(m,t,f+1)}else r.push(e)};return d(e,o(t)?t.split("."):t,0),u?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let v=/[^ ]+/g;class y{constructor({getFn:e=g.getFn,fieldNormWeight:t=g.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let i=t.match(v).length;if(r.has(i))return r.get(i);let o=parseFloat(Math.round(1/Math.pow(i,.5*e)*n)/n);return r.set(i,o),o},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!l(e)||u(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,i)=>{let a=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(a)){if(n(a)){let e=[],t=[{nestedArrIndex:-1,value:a}];for(;t.length;){let{nestedArrIndex:r,value:i}=t.pop();if(l(i))if(o(i)&&!u(i)){let t={v:i,i:r,n:this.norm.get(i)};e.push(t)}
50else n(i)&&i.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[i]=e}else if(o(a)&&!u(a)){let e={v:a,n:this.norm.get(a)};r.$[i]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function b(e,t,{getFn:r=g.getFn,fieldNormWeight:n=g.fieldNormWeight}={}){let i=new y({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(h)),i.setSources(t),i.create(),i}function w(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=g.distance,ignoreLocation:o=g.ignoreLocation}={}){let a=t/e.length;if(o)return a;let s=Math.abs(n-r);return i?a+s/i:s?1:a}class x{constructor(e,{location:t=g.location,threshold:r=g.threshold,distance:n=g.distance,includeMatches:i=g.includeMatches,findAllMatches:o=g.findAllMatches,minMatchCharLength:a=g.minMatchCharLength,isCaseSensitive:s=g.isCaseSensitive,ignoreLocation:l=g.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}(e),startIndex:t})},c=this.pattern.length;if(c>32){let e=0,t=c%32,r=c-t;for(;e<r;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=c-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,includeMatches:r}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:n,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options,u=[],c=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:f,startIndex:h})=>{let{isMatch:p,score:m,indices:v}=function(e,t,r,{location:n=g.location,distance:i=g.distance,threshold:o=g.threshold,findAllMatches:a=g.findAllMatches,minMatchCharLength:s=g.minMatchCharLength,includeMatches:l=g.includeMatches,ignoreLocation:u=g.ignoreLocation}={}){let c;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let d=t.length,f=e.length,h=Math.max(0,Math.min(n,f)),p=o,m=h,v=s>1||l,y=v?Array(f):[];for(;(c=e.indexOf(t,m))>-1;)if(p=Math.min(w(t,{currentLocation:c,expectedLocation:h,distance:i,ignoreLocation:u}),p),m=c+d,v){let e=0;for(;e<d;)y[c+e]=1,e+=1}m=-1;let b=[],x=1,S=d+f,T=1<<d-1;for(let n=0;n<d;n+=1){let o=0,s=S;for(;o<s;)w(t,{errors:n,currentLocation:h+s,expectedLocation:h,distance:i,ignoreLocation:u})<=p?o=s:S=s,s=Math.floor((S-o)/2+o);S=s;let l=Math.max(1,h-s+1),c=a?f:Math.min(h+s,f)+d,g=Array(c+2);g[c+1]=(1<<n)-1;for(let o=c;o>=l;o-=1){let a=o-1,s=r[e.charAt(a)];if(v&&(y[a]=+!!s),g[o]=(g[o+1]<<1|1)&s,n&&(g[o]|=(b[o+1]|b[o])<<1|1|b[o+1]),g[o]&T&&(x=w(t,{errors:n,currentLocation:a,expectedLocation:h,distance:i,ignoreLocation:u}))<=p){if(p=x,(m=a)<=h)break;l=Math.max(1,2*h-m)}}if(w(t,{errors:n+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:u})>p)break;b=g}let k={isMatch:m>=0,score:Math.max(.001,x)};if(v){let e=function(e=[],t=g.minMatchCharLength){let r=[],n=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){let a=e[o];a&&-1===n?n=o:a||-1===n||((i=o-1)-n+1>=t&&r.push([n,i]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}(y,s);e.length?l&&(k.indices=e):k.isMatch=!1}return k}(e,t,f,{location:n+h,distance:i,threshold:o,findAllMatches:a,minMatchCharLength:s,includeMatches:r,ignoreLocation:l});p&&(d=!0),c+=m,p&&v&&(u=[...u,...v])});let f={isMatch:d,score:d?c/this.chunks.length:1};return d&&r&&(f.indices=u),f}}class S{constructor(e){this.pattern=e}static isMultiMatch(e){return T(e,this.multiRegex)}static isSingleMatch(e){return T(e,this.singleRegex)}search(){}}function T(e,t){let r=e.match(t);return r?r[1]:null}class k extends S{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class E extends S{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class _ extends S{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class j extends S{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class C extends S{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}}class A extends S{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class O extends S{constructor(e,{location:t=g.location,threshold:r=g.threshold,distance:n=g.distance,includeMatches:i=g.includeMatches,findAllMatches:o=g.findAllMatches,minMatchCharLength:a=g.minMatchCharLength,isCaseSensitive:s=g.isCaseSensitive,ignoreLocation:l=g.ignoreLocation}={}){super(e),this._bitapSearch=new x(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class R extends S{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let o=!!n.length;return{isMatch:o,score:+!o,indices:n}}}let P=[k,R,_,j,A,C,E,O],M=P.length,$=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,D=new Set([O.type,R.type]);class I{constructor(e,{isCaseSensitive:t=g.isCaseSensitive,includeMatches:r=g.includeMatches,minMatchCharLength:n=g.minMatchCharLength,ignoreLocation:i=g.ignoreLocation,findAllMatches:o=g.findAllMatches,location:a=g.location,threshold:s=g.threshold,distance:l=g.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:r,minMatchCharLength:n,findAllMatches:o,ignoreLocation:i,location:a,threshold:s,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split($).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],o=!1,a=-1;for(;!o&&++a<M;){let e=P[a],r=e.isMultiMatch(i);r&&(n.push(new e(r,t)),o=!0)}if(!o)for(a=-1;++a<M;){let e=P[a],r=e.isSingleMatch(i);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let i=0,o=[],a=0;for(let n=0,s=t.length;n<s;n+=1){let s=t[n];o.length=0,i=0;for(let t=0,n=s.length;t<n;t+=1){let n=s[t],{isMatch:l,indices:u,score:c}=n.search(e);if(l){if(i+=1,a+=c,r){let e=n.constructor.type;D.has(e)?o=[...o,...u]:o.push(u)}}else{a=0,i=0,o.length=0;break}}
50if(i){let e={isMatch:!0,score:a/i};return r&&(e.indices=o),e}}return{isMatch:!1,score:1}}}let N=[];function F(e,t){for(let r=0,n=N.length;r<n;r+=1){let n=N[r];if(n.condition(e,t))return new n(e,t)}return new x(e,t)}let L={AND:"$and",OR:"$or"},U={PATH:"$path",PATTERN:"$val"},z=e=>!!(e[L.AND]||e[L.OR]),W=e=>({[L.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function H(e,t,{auto:r=!0}={}){let i=e=>{let a=Object.keys(e),l=!!e[U.PATH];if(!l&&a.length>1&&!z(e))return i(W(e));if(!n(e)&&s(e)&&!z(e)){let n=l?e[U.PATH]:a[0],i=l?e[U.PATTERN]:e[n];if(!o(i))throw Error(`Invalid value for key ${n}`);let s={keyId:m(n),pattern:i};return r&&(s.searcher=F(i,t)),s}let u={children:[],operator:a[0]};return a.forEach(t=>{let r=e[t];n(r)&&r.forEach(e=>{u.children.push(i(e))})}),u};return z(e)||(e=W(e)),i(e)}function B(e,t){let r=e.matches;t.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function V(e,t){t.score=e.score}class q{constructor(e,t={},r){this.options={...g,...t},this.options.useExtendedSearch,this._keyStore=new f(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof y))throw Error("Incorrect 'index' type");this._myIndex=t||b(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r<n;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:n,shouldSort:i,sortFn:s,ignoreFieldNorm:l}=this.options,u=o(e)?o(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=g.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let o=e?e.weight:null;r*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:n))}),e.score=r})}(u,{ignoreFieldNorm:l}),i&&u.sort(s),a(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:r=g.includeMatches,includeScore:n=g.includeScore}={}){let i=[];return r&&i.push(B),n&&i.push(V),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(u,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=F(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!l(e))return;let{isMatch:o,score:a,indices:s}=t.searchIn(e);o&&n.push({item:e,idx:r,matches:[{score:a,value:e,norm:i,indices:s}]})}),n}_searchLogical(e){let t=H(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return o&&o.length?[{idx:n,item:t,matches:o}]:[]}let i=[];for(let o=0,a=e.children.length;o<a;o+=1){let a=r(e.children[o],t,n);if(a.length)i.push(...a);else if(e.operator===L.AND)return[]}return i},n=this._myIndex.records,i={},o=[];return n.forEach(({$:e,i:n})=>{if(l(e)){let a=r(t,e,n);a.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},o.push(i[n])),a.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),o}_searchObjectList(e){let t=F(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!l(e))return;let o=[];r.forEach((r,n)=>{o.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),o.length&&i.push({idx:n,item:e,matches:o})}),i}_findMatches({key:e,value:t,searcher:r}){if(!l(t))return[];let i=[];if(n(t))t.forEach(({v:t,i:n,n:o})=>{if(!l(t))return;let{isMatch:a,score:s,indices:u}=r.searchIn(t);a&&i.push({score:s,key:e,value:t,idx:n,norm:o,indices:u})});else{let{v:n,n:o}=t,{isMatch:a,score:s,indices:l}=r.searchIn(n);a&&i.push({score:s,key:e,value:n,norm:o,indices:l})}return i}}q.version="6.6.2",q.createIndex=b,q.parseIndex=function(e,{getFn:t=g.getFn,fieldNormWeight:r=g.fieldNormWeight}={}){let{keys:n,records:i}=e,o=new y({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o},q.config=g,q.parseQuery=H,function(...e){N.push(...e)}(I)},71307:e=>{function t(e,t){var r=e.length,n=Array(r),i={},o=r,a=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||function e(t,o,l){if(l.has(t)){var u;try{u=", node was:"+JSON.stringify(t)}catch(e){u=""}throw Error("Cyclic dependency"+u)}if(!s.has(t))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!i[o]){i[o]=!0;var c=a.get(t)||new Set;if(o=(c=Array.from(c)).length){l.add(t);do{var d=c[--o];e(d,s.get(d),l)}while(o);l.delete(t)}n[--r]=t}}(e[o],o,new Set);return n}
50e.exports=function(e){return t(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},73423:(e,t,r)=>{e.exports=r(51483).Symbol},75433:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(12115),i=r(47650),o=r(97602),a=r(4129),s=r(95155),l=n.forwardRef((e,t)=>{var r,l;let{container:u,...c}=e,[d,f]=n.useState(!1);(0,a.N)(()=>f(!0),[]);let h=u||d&&(null==(l=globalThis)||null==(r=l.document)?void 0:r.body);return h?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),h):null});l.displayName="Portal"},76076:(e,t,r)=>{"use strict";var n=r(37849),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<a.length;++g){var v=a[g];if(!o[v]&&!(n&&n[v])&&!(m&&m[v])&&!(s&&s[v])){var y=f(r,v);try{u(t,v,y)}catch(e){}}}}return t}},76842:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(12115),i=r(94446),o=r(4129),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=n.useState(),l=n.useRef({}),u=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.N)(()=>{if(i){var e;let t,r=null!=(e=i.ownerDocument.defaultView)?e:window,n=e=>{let n=s(l.current).includes(e.animationName);if(e.target===i&&n&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.s)(a.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},80942:(e,t,r)=>{var n=r(73423),i=r(35443),o=r(58840),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},83693:(e,t,r)=>{var n=r(26745),i=r(26810),o=r(41982),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,f,h,p=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,p=t,d=e.apply(n,r)}function b(e){var r=e-h,n=e-p;return void 0===h||r>=t||r<0||g&&n>=c}
50function w(){var e,r,n,o=i();if(b(o))return x(o);f=setTimeout(w,(e=o-h,r=o-p,n=t-e,g?s(n,c-r):n))}function x(e){return(f=void 0,v&&l)?y(e):(l=u=void 0,d)}function S(){var e,r=i(),n=b(r);if(l=arguments,u=this,h=r,n){if(void 0===f)return p=e=h,f=setTimeout(w,t),m?y(e):d;if(g)return clearTimeout(f),f=setTimeout(w,t),y(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,c=(g="maxWait"in r)?a(o(r.maxWait)||0,t):c,v="trailing"in r?!!r.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},S.flush=function(){return void 0===f?d:x(i())},S}},86278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(28140)._(r(1150));function i(e,t){var r;let i={};"function"==typeof e&&(i.loader=e);let o={...i,...t};return(0,n.default)({...o,modules:null==(r=o.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86697:e=>{"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var g=r(o);if((l=g.length)!==r(a).length)return!1;for(s=l;0!=s--;)if(!n.call(a,g[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=g[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-0x7ff5ffe4===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},88115:(e,t,r)=>{"use strict";r.d(t,{UC:()=>tV,YJ:()=>tY,In:()=>tH,q7:()=>tG,p4:()=>tK,ZL:()=>tB,bL:()=>tU,l9:()=>tz,WT:()=>tW,LM:()=>tq});var n=r(12115),i=r(47650),o=r(34212),a=r(92556),s=r(88167),l=r(94446),u=r(3468),c=r(66218),d=r(44831),f=r(19526),h=r(69666),p=r(68946);let m=["top","right","bottom","left"],g=Math.min,v=Math.max,y=Math.round,b=Math.floor,w=e=>({x:e,y:e}),x={left:"right",right:"left",bottom:"top",top:"bottom"},S={start:"end",end:"start"};function T(e,t){return"function"==typeof e?e(t):e}function k(e){return e.split("-")[0]}function E(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}function C(e){return["top","bottom"].includes(k(e))?"y":"x"}function A(e){return e.replace(/start|end/g,e=>S[e])}function O(e){return e.replace(/left|right|bottom|top/g,e=>x[e])}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function M(e,t,r){let n,{reference:i,floating:o}=e,a=C(t),s=_(C(t)),l=j(s),u=k(t),c="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;switch(u){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-o.width,y:f};break;default:n={x:i.x,y:i.y}}switch(E(t)){case"start":n[s]-=h*(r&&c?-1:1);break;case"end":n[s]+=h*(r&&c?-1:1)}return n}let $=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=M(u,n,l),f=n,h={},p=0;for(let r=0;r<s.length;r++){let{name:o,fn:m}=s[r],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,h={...h,[o]:{...h[o],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}
50):b.rects),{x:c,y:d}=M(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function D(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=T(t,e),p=R(h),m=s[f?"floating"===d?"reference":"floating":d],g=P(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=P(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return m.some(t=>e[t]>=0)}async function F(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=k(r),s=E(r),l="y"===C(r),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=T(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function L(){return"undefined"!=typeof window}function U(e){return H(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=(H(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function H(e){return!!L()&&(e instanceof Node||e instanceof z(e).Node)}function B(e){return!!L()&&(e instanceof Element||e instanceof z(e).Element)}function V(e){return!!L()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function q(e){return!!L()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function Y(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function G(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function K(e){let t=X(),r=B(e)?J(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function X(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function Z(e){return["html","body","#document"].includes(U(e))}function J(e){return z(e).getComputedStyle(e)}function Q(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===U(e))return e;let t=e.assignedSlot||e.parentNode||q(e)&&e.host||W(e);return q(t)?t.host:t}function et(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=ee(t);return Z(r)?t.ownerDocument?t.ownerDocument.body:t.body:V(r)&&Y(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=z(i);if(o){let e=er(a);return t.concat(a,a.visualViewport||[],Y(i)?i:[],e&&r?et(e):[])}return t.concat(i,et(i,[],r))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function en(e){let t=J(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=V(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=y(r)!==o||y(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function ei(e){return B(e)?e:e.contextElement}function eo(e){let t=ei(e);if(!V(t))return w(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=en(t),a=(o?y(r.width):r.width)/n,s=(o?y(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let ea=w(0);function es(e){let t=z(e);
50return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ea}function el(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=ei(e),s=w(1);t&&(n?B(n)&&(s=eo(n)):s=eo(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===z(a))&&i)?es(a):w(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=z(a),t=n&&B(n)?z(n):n,r=e,i=er(r);for(;i&&n&&t!==r;){let e=eo(i),t=i.getBoundingClientRect(),n=J(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=er(r=z(i))}}return P({width:d,height:f,x:u,y:c})}function eu(e,t){let r=Q(e).scrollLeft;return t?t.left+r:el(W(e)).left+r}function ec(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:eu(e,n)),y:n.top+t.scrollTop}}function ed(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=z(e),n=W(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=X();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=W(e),r=Q(e),n=e.ownerDocument.body,i=v(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=v(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+eu(e),s=-r.scrollTop;return"rtl"===J(n).direction&&(a+=v(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}(W(e));else if(B(t))n=function(e,t){let r=el(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=V(e)?eo(e):w(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:n*o.y}}(t,r);else{let r=es(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return P(n)}function ef(e){return"static"===J(e).position}function eh(e,t){if(!V(e)||"fixed"===J(e).position)return null;if(t)return t(e);let r=e.offsetParent;return W(e)===r&&(r=r.ownerDocument.body),r}function ep(e,t){let r=z(e);if(G(e))return r;if(!V(e)){let t=ee(e);for(;t&&!Z(t);){if(B(t)&&!ef(t))return t;t=ee(t)}return r}let n=eh(e,t);for(;n&&["table","td","th"].includes(U(n))&&ef(n);)n=eh(n,t);return n&&Z(n)&&ef(n)&&!K(n)?r:n||function(e){let t=ee(e);for(;V(t)&&!Z(t);){if(K(t))return t;if(G(t))break;t=ee(t)}return null}(e)||r}let em=async function(e){let t=this.getOffsetParent||ep,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=V(t),i=W(t),o="fixed"===r,a=el(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=w(0);if(n||!n&&!o)if(("body"!==U(t)||Y(i))&&(s=Q(t)),n){let e=el(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eu(i));let u=!i||n||o?w(0):ec(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=W(n),s=!!t&&G(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=w(1),c=w(0),d=V(n);if((d||!d&&!o)&&(("body"!==U(n)||Y(a))&&(l=Q(n)),V(n))){let e=el(n);u=eo(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!a||d||o?w(0):ec(a,l,!0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?G(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(e=>B(e)&&"body"!==U(e)),i=null,o="fixed"===J(e).position,a=o?ee(e):e;for(;B(a)&&!Z(a);){let t=J(a),r=K(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||Y(a)&&!r&&function e(t,r){let n=ee(t);return!(n===r||!B(n)||Z(n))&&("fixed"===J(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=ee(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=o[0],s=o.reduce((e,r)=>{let n=ed(t,r,i);return e.top=v(n.top,e.top),e.right=g(n.right,e.right),e.bottom=g(n.bottom,e.bottom),e.left=v(n.left,e.left),e},ed(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ep,getElementRects:em,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=en(e);return{width:t,height:r}},getScale:eo,isElement:B,isRTL:function(e){return"rtl"===J(e).direction}};function ev(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ey=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=T(e,t)||{};if(null==u)return{};let d=R(c),f={x:r,y:n},h=_(C(i)),p=j(h),m=await a.getDimensions(u),y="y"===h,b=y?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[h]-f[h]-o.floating[p],x=f[h]-o.reference[h],S=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),k=S?S[b]:0;k&&await (null==a.isElement?void 0:a.isElement(S))||(k=s.floating[b]||o.floating[p]);let A=k/2-m[p]/2-1,O=g(d[y?"top":"left"],A),P=g(d[y?"bottom":"right"],A),M=k-m[p]-P,$=k/2-m[p]/2+(w/2-x/2),D=v(O,g($,M)),I=!l.arrow&&null!=E(i)&&$!==D&&o.reference[p]/2-($<O?O:P)-m[p]/2<0,N=I?$<O?$-O:$-M:0;return{[h]:f[h]+N,data:{[h]:D,centerOffset:$-D-N,...I&&{alignmentOffset:N}},reset:I}}});var eb="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function ew(e,t){let r,n,i;if(e===t)return!0;
50if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ew(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!ew(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eS(e,t){let r=ex(e);return Math.round(t*r)/r}function eT(e){let t=n.useRef(e);return eb(()=>{t.current=e}),t}var ek=r(97602),eE=r(95155),e_=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,eE.jsx)(ek.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e_.displayName="Arrow";var ej=r(70222),eC=r(4129),eA="Popper",[eO,eR]=(0,u.A)(eA),[eP,eM]=eO(eA),e$=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,eE.jsx)(eP,{scope:t,anchor:i,onAnchorChange:o,children:r})};e$.displayName=eA;var eD="PopperAnchor",eI=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,a=eM(eD,r),s=n.useRef(null),u=(0,l.s)(t,s);return n.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||s.current)}),i?null:(0,eE.jsx)(ek.sG.div,{...o,ref:u})});eI.displayName=eD;var eN="PopperContent",[eF,eL]=eO(eN),eU=n.forwardRef((e,t)=>{var r,o,a,s,u,c,d,f;let{__scopePopper:h,side:p="bottom",sideOffset:m=0,align:y="center",alignOffset:w=0,arrowPadding:x=0,avoidCollisions:S=!0,collisionBoundary:R=[],collisionPadding:P=0,sticky:M="partial",hideWhenDetached:L=!1,updatePositionStrategy:U="optimized",onPlaced:z,...H}=e,B=eM(eN,h),[V,q]=n.useState(null),Y=(0,l.s)(t,e=>q(e)),[G,K]=n.useState(null),X=function(e){let[t,r]=n.useState(void 0);return(0,eC.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(G),Z=null!=(d=null==X?void 0:X.width)?d:0,J=null!=(f=null==X?void 0:X.height)?f:0,Q="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},ee=Array.isArray(R)?R:[R],er=ee.length>0,en={padding:Q,boundary:ee.filter(eB),altBoundary:er},{refs:eo,floatingStyles:ea,placement:es,isPositioned:eu,middlewareData:ec}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,h]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=n.useState(o);ew(p,o)||m(o);let[g,v]=n.useState(null),[y,b]=n.useState(null),w=n.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),x=n.useCallback(e=>{e!==E.current&&(E.current=e,b(e))},[]),S=s||g,T=l||y,k=n.useRef(null),E=n.useRef(null),_=n.useRef(f),j=null!=c,C=eT(c),A=eT(a),O=eT(d),R=n.useCallback(()=>{if(!k.current||!E.current)return;let e={placement:t,strategy:r,middleware:p};A.current&&(e.platform=A.current),((e,t,r)=>{let n=new Map,i={platform:eg,...r},o={...i.platform,_c:n};return $(e,t,{...i,platform:o})})(k.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};P.current&&!ew(_.current,t)&&(_.current=t,i.flushSync(()=>{h(t)}))})},[p,t,r,A,O]);eb(()=>{!1===d&&_.current.isPositioned&&(_.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let P=n.useRef(!1);eb(()=>(P.current=!0,()=>{P.current=!1}),[]),eb(()=>{if(S&&(k.current=S),T&&(E.current=T),S&&T){if(C.current)return C.current(S,T,R);R()}},[S,T,R,C,j]);let M=n.useMemo(()=>({reference:k,floating:E,setReference:w,setFloating:x}),[w,x]),D=n.useMemo(()=>({reference:S,floating:T}),[S,T]),I=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!D.floating)return e;let t=eS(D.floating,f.x),n=eS(D.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...ex(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,D.floating,f.x,f.y]);return n.useMemo(()=>({...f,update:R,refs:M,elements:D,floatingStyles:I}),[f,R,M,D,I])}({strategy:"fixed",placement:p+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=ei(e),d=o||a?[...c?et(c):[],...et(t)]:[];
50d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let f=c&&l?function(e,t){let r,n=null,i=W(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p=b(d),m=b(i.clientWidth-(c+f)),y={rootMargin:-p+"px "+-m+"px "+-b(i.clientHeight-(d+h))+"px "+-b(c)+"px",threshold:v(0,g(1,l))||1},w=!0;function x(t){let n=t[0].intersectionRatio;if(n!==l){if(!w)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||ev(u,e.getBoundingClientRect())||a(),w=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(x,y)}n.observe(e)}(!0),o}(c,r):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m=u?el(e):null;return u&&function t(){let n=el(e);m&&!ev(m,n)&&r(),m=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===U})},elements:{reference:B.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await F(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}))({mainAxis:m+J,alignmentAxis:w}),S&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=T(e,t),u={x:r,y:n},c=await D(t,l),d=C(k(i)),f=_(d),h=u[f],p=u[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=h+c[e],n=h-c[t];h=v(r,g(h,n))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+c[e],n=p-c[t];p=v(r,g(p,n))}let m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:o,[d]:a}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=T(e,t),c={x:r,y:n},d=C(i),f=_(d),h=c[f],p=c[d],m=T(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,r=o.reference[f]+o.reference[e]-g.mainAxis;h<t?h=t:h>r&&(h=r)}if(u){var v,y;let e="y"===f?"width":"height",t=["top","left"].includes(k(i)),r=o.reference[d]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);p<r?p=r:p>n&&(p=n)}return{[f]:h,[d]:p}}}}(e),options:[e,t]}))():void 0,...en}),S&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=T(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let w=k(s),x=C(c),S=k(c)===c,R=await (null==d.isRTL?void 0:d.isRTL(f.floating)),P=m||(S||!y?[O(c)]:function(e){let t=O(e);return[A(e),t,A(t)]}(c)),M="none"!==v;!m&&M&&P.push(...function(e,t,r,n){let i=E(e),o=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(k(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(A)))),o}(c,y,v,R));let $=[c,...P],I=await D(t,b),N=[],F=(null==(n=l.flip)?void 0:n.overflows)||[];if(h&&N.push(I[w]),p){let e=function(e,t,r){void 0===r&&(r=!1);let n=E(e),i=_(C(e)),o=j(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=O(a)),[a,O(a)]}(s,u,R);N.push(I[e[0]],I[e[1]])}if(F=[...F,{placement:s,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=$[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let r=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>
50e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(g){case"bestFit":{let e=null==(a=F.filter(e=>{if(M){let t=C(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}))({...en}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,o,{placement:a,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...d}=T(e,t),f=await D(t,d),h=k(a),p=E(a),m="y"===C(a),{width:y,height:b}=s.floating;"top"===h||"bottom"===h?(i=h,o=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=h,i="end"===p?"top":"bottom");let w=b-f.top-f.bottom,x=y-f.left-f.right,S=g(b-f[i],w),_=g(y-f[o],x),j=!t.middlewareData.shift,A=S,O=_;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=x),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(A=w),j&&!p){let e=v(f.left,0),t=v(f.right,0),r=v(f.top,0),n=v(f.bottom,0);m?O=y-2*(0!==e||0!==t?e+t:v(f.left,f.right)):A=b-2*(0!==r||0!==n?r+n:v(f.top,f.bottom))}await c({...t,availableWidth:O,availableHeight:A});let R=await l.getDimensions(u.floating);return y!==R.width||b!==R.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...en,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:o,height:a}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),G&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?ey({element:r.current,padding:n}).fn(t):{}:r?ey({element:r,padding:n}).fn(t):{}}}))(e),options:[e,t]}))({element:G,padding:x}),eV({arrowWidth:Z,arrowHeight:J}),L&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=T(e,t);switch(n){case"referenceHidden":{let e=I(await D(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=I(await D(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...en})]}),[ed,ef]=eq(es),eh=(0,ej.c)(z);(0,eC.N)(()=>{eu&&(null==eh||eh())},[eu,eh]);let ep=null==(r=ec.arrow)?void 0:r.x,em=null==(o=ec.arrow)?void 0:o.y,e_=(null==(a=ec.arrow)?void 0:a.centerOffset)!==0,[eA,eO]=n.useState();return(0,eC.N)(()=>{V&&eO(window.getComputedStyle(V).zIndex)},[V]),(0,eE.jsx)("div",{ref:eo.setFloating,"data-radix-popper-content-wrapper":"",style:{...ea,transform:eu?ea.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eA,"--radix-popper-transform-origin":[null==(s=ec.transformOrigin)?void 0:s.x,null==(u=ec.transformOrigin)?void 0:u.y].join(" "),...(null==(c=ec.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(eF,{scope:h,placedSide:ed,onArrowChange:K,arrowX:ep,arrowY:em,shouldHideArrow:e_,children:(0,eE.jsx)(ek.sG.div,{"data-side":ed,"data-align":ef,...H,ref:Y,style:{...H.style,animation:eu?void 0:"none"}})})})});eU.displayName=eN;var ez="PopperArrow",eW={top:"bottom",right:"left",bottom:"top",left:"right"},eH=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eL(ez,r),o=eW[i.placedSide];return(0,eE.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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:(0,eE.jsx)(e_,{...n,ref:t,style:{...n.style,display:"block"}})})});function eB(e){return null!==e}eH.displayName=ez;var eV=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=eq(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!=(o=null==(n=u.arrow)?void 0:n.x)?o:0)+d/2,v=(null!=(a=null==(i=u.arrow)?void 0:i.y)?a:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:"".concat(g,"px"),b="".concat(-f,"px")):"top"===h?(y=c?m:"".concat(g,"px"),b="".concat(l.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=c?m:"".concat(v,"px")):"left"===h&&(y="".concat(l.floating.width+f,"px"),b=c?m:"".concat(v,"px")),{data:{x:y,y:b}}}});function eq(e){let[t,r="center"]=e.split("-");return[t,r]}var eY=r(75433),eG=r(32467),eK=r(23558),eX=n.forwardRef((e,t)=>
50(0,eE.jsx)(ek.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));eX.displayName="VisuallyHidden";var eZ=r(97745),eJ=r(14432),eQ=[" ","Enter","ArrowUp","ArrowDown"],e0=[" ","Enter"],e1="Select",[e2,e6,e5]=(0,s.N)(e1),[e3,e4]=(0,u.A)(e1,[e5,eR]),e8=eR(),[e9,e7]=e3(e1),[te,tt]=e3(e1),tr=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:m,required:g,form:v}=e,y=e8(t),[b,w]=n.useState(null),[x,S]=n.useState(null),[T,k]=n.useState(!1),E=(0,c.jH)(d),[_=!1,j]=(0,eK.i)({prop:i,defaultProp:o,onChange:a}),[C,A]=(0,eK.i)({prop:s,defaultProp:l,onChange:u}),O=n.useRef(null),R=!b||v||!!b.closest("form"),[P,M]=n.useState(new Set),$=Array.from(P).map(e=>e.props.value).join(";");return(0,eE.jsx)(e$,{...y,children:(0,eE.jsxs)(e9,{required:g,scope:t,trigger:b,onTriggerChange:w,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:T,onValueNodeHasChildrenChange:k,contentId:(0,p.B)(),value:C,onValueChange:A,open:_,onOpenChange:j,dir:E,triggerPointerDownPosRef:O,disabled:m,children:[(0,eE.jsx)(e2.Provider,{scope:t,children:(0,eE.jsx)(te,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{M(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),R?(0,eE.jsxs)(tN,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:C,onChange:e=>A(e.target.value),disabled:m,form:v,children:[void 0===C?(0,eE.jsx)("option",{value:""}):null,Array.from(P)]},$):null]})})};
50tr.displayName=e1;var tn="SelectTrigger",ti=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:i=!1,...o}=e,s=e8(r),u=e7(tn,r),c=u.disabled||i,d=(0,l.s)(t,u.onTriggerChange),f=e6(r),h=n.useRef("touch"),[p,m,g]=tF(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=tL(t,e,r);void 0!==n&&u.onValueChange(n.value)}),v=e=>{c||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,eE.jsx)(eI,{asChild:!0,...s,children:(0,eE.jsx)(ek.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tI(u.value)?"":void 0,...o,ref:d,onClick:(0,a.m)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==h.current&&v(e)}),onPointerDown:(0,a.m)(o.onPointerDown,e=>{h.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:(0,a.m)(o.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&eQ.includes(e.key)&&(v(),e.preventDefault())})})})});ti.displayName=tn;var to="SelectValue",ta=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,u=e7(to,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,f=(0,l.s)(t,u.onValueNodeChange);return(0,eC.N)(()=>{c(d)},[c,d]),(0,eE.jsx)(ek.sG.span,{...s,ref:f,style:{pointerEvents:"none"},children:tI(u.value)?(0,eE.jsx)(eE.Fragment,{children:a}):o})});ta.displayName=to;var ts=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,eE.jsx)(ek.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});ts.displayName="SelectIcon";var tl=e=>(0,eE.jsx)(eY.Z,{asChild:!0,...e});tl.displayName="SelectPortal";var tu="SelectContent",tc=n.forwardRef((e,t)=>{let r=e7(tu,e.__scopeSelect),[o,a]=n.useState();return((0,eC.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,eE.jsx)(th,{...e,ref:t}):o?i.createPortal((0,eE.jsx)(td,{scope:e.__scopeSelect,children:(0,eE.jsx)(e2.Slot,{scope:e.__scopeSelect,children:(0,eE.jsx)("div",{children:e.children})})}),o):null});tc.displayName=tu;var[td,tf]=e3(tu),th=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:w,hideWhenDetached:x,avoidCollisions:S,...T}=e,k=e7(tu,r),[E,_]=n.useState(null),[j,C]=n.useState(null),A=(0,l.s)(t,e=>_(e)),[O,R]=n.useState(null),[P,M]=n.useState(null),$=e6(r),[D,I]=n.useState(!1),N=n.useRef(!1);n.useEffect(()=>{if(E)return(0,eZ.Eq)(E)},[E]),(0,f.Oh)();let F=n.useCallback(e=>{let[t,...r]=$().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&j&&(j.scrollTop=0),r===n&&j&&(j.scrollTop=j.scrollHeight),null==r||r.focus(),document.activeElement!==i))return},[$,j]),L=n.useCallback(()=>F([O,E]),[F,O,E]);n.useEffect(()=>{D&&L()},[D,L]);let{onOpenChange:U,triggerPointerDownPosRef:z}=k;n.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{var r,n,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(r=z.current)?void 0:r.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(n=z.current)?void 0:n.y)?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():E.contains(r.target)||U(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[E,U,z]),n.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[W,H]=tF(e=>{let t=$().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=tL(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),B=n.useCallback((e,t,r)=>{let n=!N.current&&!r;(void 0!==k.value&&k.value===t||n)&&(R(e),n&&(N.current=!0))},[k.value]),V=n.useCallback(()=>null==E?void 0:E.focus(),[E]),q=n.useCallback((e,t,r)=>{let n=!N.current&&!r;(void 0!==k.value&&k.value===t||n)&&M(e)},[k.value]),Y="popper"===i?tm:tp,G=Y===tm?{side:c,sideOffset:p,align:m,alignOffset:g,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:w,hideWhenDetached:x,avoidCollisions:S}:{};return(0,eE.jsx)(td,{scope:r,content:E,viewport:j,onViewportChange:C,itemRefCallback:B,selectedItem:O,onItemLeave:V,itemTextRefCallback:q,focusSelectedItem:L,selectedItemText:P,position:i,isPositioned:D,searchRef:W,children:(0,eE.jsx)(eJ.A,{as:eG.DX,allowPinchZoom:!0,children:(0,eE.jsx)(h.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(o,e=>{var t;
50null==(t=k.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,eE.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,eE.jsx)(Y,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...T,...G,onPlaced:()=>I(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:(0,a.m)(T.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||H(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=$().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});th.displayName="SelectContentImpl";var tp=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...a}=e,s=e7(tu,r),u=tf(tu,r),[c,d]=n.useState(null),[f,h]=n.useState(null),p=(0,l.s)(t,e=>h(e)),m=e6(r),g=n.useRef(!1),v=n.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:w,focusSelectedItem:x}=u,S=n.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&f&&y&&b&&w){let e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=w.getBoundingClientRect();if("rtl"!==s.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,f=(0,o.q)(a,[10,Math.max(10,d-u)]);c.style.minWidth=l+"px",c.style.left=f+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,f=(0,o.q)(a,[10,Math.max(10,d-u)]);c.style.minWidth=l+"px",c.style.right=f+"px"}let a=m(),l=window.innerHeight-20,u=y.scrollHeight,d=window.getComputedStyle(f),h=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),x=h+p+u+parseInt(d.paddingBottom,10)+v,S=Math.min(5*b.offsetHeight,x),T=window.getComputedStyle(y),k=parseInt(T.paddingTop,10),E=parseInt(T.paddingBottom,10),_=e.top+e.height/2-10,j=b.offsetHeight/2,C=h+p+(b.offsetTop+j);if(C<=_){let e=a.length>0&&b===a[a.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-_,j+(e?E:0)+(f.clientHeight-y.offsetTop-y.offsetHeight)+v);c.style.height=C+t+"px"}else{let e=a.length>0&&b===a[0].ref.current;c.style.top="0px";let t=Math.max(_,h+y.offsetTop+(e?k:0)+j);c.style.height=t+(x-C)+"px",y.scrollTop=C-_+y.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=S+"px",c.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,c,f,y,b,w,s.dir,i]);(0,eC.N)(()=>S(),[S]);let[T,k]=n.useState();(0,eC.N)(()=>{f&&k(window.getComputedStyle(f).zIndex)},[f]);let E=n.useCallback(e=>{e&&!0===v.current&&(S(),null==x||x(),v.current=!1)},[S,x]);return(0,eE.jsx)(tg,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:E,children:(0,eE.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,eE.jsx)(ek.sG.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});tp.displayName="SelectItemAlignedPosition";var tm=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,a=e8(r);return(0,eE.jsx)(eU,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.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)"}})});tm.displayName="SelectPopperPosition";var[tg,tv]=e3(tu,{}),ty="SelectViewport",tb=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...o}=e,s=tf(ty,r),u=tv(ty,r),c=(0,l.s)(t,s.onViewportChange),d=n.useRef(0);return(0,eE.jsxs)(eE.Fragment,{children:[(0,eE.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:i}),(0,eE.jsx)(e2.Slot,{scope:r,children:(0,eE.jsx)(ek.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.m)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});tb.displayName=ty;var tw="SelectGroup",[tx,tS]=e3(tw),tT=n.forwardRef((e,t)=>
50{let{__scopeSelect:r,...n}=e,i=(0,p.B)();return(0,eE.jsx)(tx,{scope:r,id:i,children:(0,eE.jsx)(ek.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})});tT.displayName=tw;var tk="SelectLabel";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=tS(tk,r);return(0,eE.jsx)(ek.sG.div,{id:i.id,...n,ref:t})}).displayName=tk;var tE="SelectItem",[t_,tj]=e3(tE),tC=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:s,...u}=e,c=e7(tE,r),d=tf(tE,r),f=c.value===i,[h,m]=n.useState(null!=s?s:""),[g,v]=n.useState(!1),y=(0,l.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,i,o)}),b=(0,p.B)(),w=n.useRef("touch"),x=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw 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(0,eE.jsx)(t_,{scope:r,value:i,disabled:o,textId:b,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!=(r=null==e?void 0:e.textContent)?r:"").trim()})},[]),children:(0,eE.jsx)(e2.ItemSlot,{scope:r,value:i,disabled:o,textValue:h,children:(0,eE.jsx)(ek.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":g?"":void 0,"aria-selected":f&&g,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:y,onFocus:(0,a.m)(u.onFocus,()=>v(!0)),onBlur:(0,a.m)(u.onBlur,()=>v(!1)),onClick:(0,a.m)(u.onClick,()=>{"mouse"!==w.current&&x()}),onPointerUp:(0,a.m)(u.onPointerUp,()=>{"mouse"===w.current&&x()}),onPointerDown:(0,a.m)(u.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,a.m)(u.onPointerMove,e=>{if(w.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.m)(u.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(e0.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});tC.displayName=tE;var tA="SelectItemText",tO=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...s}=e,u=e7(tA,r),c=tf(tA,r),d=tj(tA,r),f=tt(tA,r),[h,p]=n.useState(null),m=(0,l.s)(t,e=>p(e),d.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),g=null==h?void 0:h.textContent,v=n.useMemo(()=>(0,eE.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=f;return(0,eC.N)(()=>(y(v),()=>b(v)),[y,b,v]),(0,eE.jsxs)(eE.Fragment,{children:[(0,eE.jsx)(ek.sG.span,{id:d.textId,...s,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(s.children,u.valueNode):null]})});tO.displayName=tA;var tR="SelectItemIndicator";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return tj(tR,r).isSelected?(0,eE.jsx)(ek.sG.span,{"aria-hidden":!0,...n,ref:t}):null}).displayName=tR;var tP="SelectScrollUpButton";n.forwardRef((e,t)=>{let r=tf(tP,e.__scopeSelect),i=tv(tP,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,eC.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,eE.jsx)(t$,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=tP;var tM="SelectScrollDownButton";n.forwardRef((e,t)=>{let r=tf(tM,e.__scopeSelect),i=tv(tM,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,eC.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,eE.jsx)(t$,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=tM;var t$=n.forwardRef((e,t)=>
50{let{__scopeSelect:r,onAutoScroll:i,...o}=e,s=tf("SelectScrollButton",r),l=n.useRef(null),u=e6(r),c=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,eC.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,eE.jsx)(ek.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.m)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.m)(o.onPointerMove,()=>{var e;null==(e=s.onItemLeave)||e.call(s),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.m)(o.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,eE.jsx)(ek.sG.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var tD="SelectArrow";function tI(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=e8(r),o=e7(tD,r),a=tf(tD,r);return o.open&&"popper"===a.position?(0,eE.jsx)(eH,{...i,...n,ref:t}):null}).displayName=tD;var tN=n.forwardRef((e,t)=>{let{value:r,...i}=e,o=n.useRef(null),a=(0,l.s)(t,o),s=function(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,eE.jsx)(eX,{asChild:!0,children:(0,eE.jsx)("select",{...i,ref:a,defaultValue:r})})});function tF(e){let t=(0,ej.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,a]}function tL(e,t,r){var n,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,s=(n=e,i=Math.max(a,0),n.map((e,t)=>n[(i+t)%n.length]));1===o.length&&(s=s.filter(e=>e!==r));let l=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}tN.displayName="BubbleSelect";var tU=tr,tz=ti,tW=ta,tH=ts,tB=tl,tV=tc,tq=tb,tY=tT,tG=tC,tK=tO},88167:(e,t,r)=>{"use strict";r.d(t,{N:()=>l});var n=r(12115),i=r(3468),o=r(94446),a=r(32467),s=r(95155);function l(e){let t=e+"CollectionProvider",[r,l]=(0,i.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:r})};d.displayName=t;let f=e+"CollectionSlot",h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=c(f,r),l=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(a.DX,{ref:l,children:n})});h.displayName=f;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=n.forwardRef((e,t)=>{let{scope:r,children:i,...l}=e,u=n.useRef(null),d=(0,o.s)(t,u),f=c(p,r);return n.useEffect(()=>(f.itemMap.set(u,{ref:u,...l}),()=>void f.itemMap.delete(u))),(0,s.jsx)(a.DX,{...{[m]:""},ref:d,children:i})});return g.displayName=p,[{Provider:d,Slot:h,ItemSlot:g},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}},89511:(e,t,r)=>{"use strict";r.d(t,{UC:()=>Q,VY:()=>et,ZL:()=>Z,bL:()=>X,bm:()=>er,hE:()=>ee,hJ:()=>J});var n=r(12115),i=r(92556),o=r(94446),a=r(3468),s=r(68946),l=r(23558),u=r(44831),c=r(69666),d=r(75433),f=r(76842),h=r(97602),p=r(19526),m=r(14432),g=r(97745),v=r(32467),y=r(95155),b="Dialog",[w,x]=(0,a.A)(b),[S,T]=w(b),k=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[f=!1,h]=(0,l.i)({prop:i,defaultProp:o,onChange:a});return(0,y.jsx)(S,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:f,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),modal:u,children:r})};k.displayName=b;var E="DialogTrigger";n.forwardRef((e,t)=>
50{let{__scopeDialog:r,...n}=e,a=T(E,r),s=(0,o.s)(t,a.triggerRef);return(0,y.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":B(a.open),...n,ref:s,onClick:(0,i.m)(e.onClick,a.onOpenToggle)})}).displayName=E;var _="DialogPortal",[j,C]=w(_,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,a=T(_,t);return(0,y.jsx)(j,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,y.jsx)(f.C,{present:r||a.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};A.displayName=_;var O="DialogOverlay",R=n.forwardRef((e,t)=>{let r=C(O,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=T(O,e.__scopeDialog);return o.modal?(0,y.jsx)(f.C,{present:n||o.open,children:(0,y.jsx)(P,{...i,ref:t})}):null});R.displayName=O;var P=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=T(O,r);return(0,y.jsx)(m.A,{as:v.DX,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(h.sG.div,{"data-state":B(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),M="DialogContent",$=n.forwardRef((e,t)=>{let r=C(M,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=T(M,e.__scopeDialog);return(0,y.jsx)(f.C,{present:n||o.open,children:o.modal?(0,y.jsx)(D,{...i,ref:t}):(0,y.jsx)(I,{...i,ref:t})})});$.displayName=M;var D=n.forwardRef((e,t)=>{let r=T(M,e.__scopeDialog),a=n.useRef(null),s=(0,o.s)(t,r.contentRef,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(N,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault())})}),I=n.forwardRef((e,t)=>{let r=T(M,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(N,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(i.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),N=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=T(M,r),f=n.useRef(null),h=(0,o.s)(t,f);return(0,p.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":B(d.open),...l,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(G,{titleId:d.titleId}),(0,y.jsx)(K,{contentRef:f,descriptionId:d.descriptionId})]})]})}),F="DialogTitle",L=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=T(F,r);return(0,y.jsx)(h.sG.h2,{id:i.titleId,...n,ref:t})});L.displayName=F;var U="DialogDescription",z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=T(U,r);return(0,y.jsx)(h.sG.p,{id:i.descriptionId,...n,ref:t})});z.displayName=U;var W="DialogClose",H=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=T(W,r);return(0,y.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})});function B(e){return e?"open":"closed"}H.displayName=W;var V="DialogTitleWarning",[q,Y]=(0,a.q)(V,{contentName:M,titleName:F,docsSlug:"dialog"}),G=e=>{let{titleId:t}=e,r=Y(V),i="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},K=e=>{let{contentRef:t,descriptionId:r}=e,i=Y("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return n.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(o))},[o,t,r]),null},X=k,Z=A,J=R,Q=$,ee=L,et=z,er=H},91034:(e,t,r)=>{"use strict";
50r.d(t,{IF:()=>c,YB:()=>o.YB,K1:()=>o.K1,YV:()=>y});var n=r(12115),i=r(95155),o=r(50351);let a={},s=(0,n.forwardRef)(({blok:e,...t},r)=>{if(!e)return console.error("Please provide a 'blok' property to the StoryblokComponent"),(0,i.jsx)("div",{children:"Please provide a blok property to the StoryblokComponent"});let n=(e=>a[e]?a[e]:(console.error(`Component ${e} doesn't exist.`),!1))(e.component);return n?(0,i.jsx)(n,{ref:r,blok:e,...t}):(0,i.jsx)("div",{})});function l(e){var t,r;let i=null==(t=null==e?void 0:e.attrs)?void 0:t.body;return n.createElement(s,{blok:Array.isArray(i)?i[0]:void 0,key:null==(r=e.attrs)?void 0:r.id})}s.displayName="StoryblokComponent",(0,n.forwardRef)(({doc:e,resolvers:t},r)=>{let{render:a}=function(e){let t={renderFn:n.createElement,resolvers:{[o.Fh.COMPONENT]:l,...e.resolvers},keyedResolvers:!0};return(0,o.AM)(t)}({resolvers:t}),s=function e(t){if(Array.isArray(t))return t.map(t=>e(t));if(!n.isValidElement(t))return t;let r={class:"className",for:"htmlFor",targetAttr:"targetattr"},i=Object.keys(t.props).reduce((e,n)=>{let i=t.props[n];return"style"===n&&"string"==typeof i&&(i=i.split(";").reduce((e,t)=>{let[r,n]=t.split(":");return r=null==r?void 0:r.trim(),n=null==n?void 0:n.trim(),r&&n&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=n),e},{})),e[r[n]||n]=i,e},{});i.key=t.key;let o=n.Children.map(t.props.children,t=>e(t));return n.createElement(t.type,i,o)}(a(e));return(0,i.jsx)("div",{ref:r,children:s})});var u=r(57363);(0,n.forwardRef)(({story:e,bridgeOptions:t,...r},n)=>{if(!e)return console.error("Please provide a 'story' property to the StoryblokServerComponent"),null;if(globalThis.storyCache.has(e.uuid)&&(e=globalThis.storyCache.get(e.uuid)),"string"==typeof e.content)try{e.content=JSON.parse(e.content)}catch(t){console.error("An error occurred while trying to parse the story content",t),e.content={}}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{ref:n,blok:e.content,...r}),(0,i.jsx)(u.default,{story:e,bridgeOptions:t})]})});let c=(0,n.forwardRef)(({blok:e,...t},r)=>{if(!e)return console.error("Please provide a 'blok' property to the StoryblokComponent"),(0,i.jsx)("div",{children:"Please provide a blok property to the StoryblokServerComponent"});let n=m(e.component);if(n)return(0,i.jsx)(n,{ref:r,blok:e,...t});if(g()){let r=v();return r?(0,i.jsx)(r,{blok:e,...t}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("p",{children:["Component could not be found for blok"," ",(0,i.jsx)("strong",{children:e.component}),"! Is it configured correctly?"]})})}return(0,i.jsx)("div",{})});c.displayName="StoryblokServerComponent";let d=null,f=new Map,h=!1,p=null;globalThis.storyCache=new Map;let m=e=>f.has(e)?f.get(e):(console.error(`Component ${e} doesn't exist.`),!1),g=()=>h,v=()=>p,y=(e={})=>{if(d)return()=>d;let{storyblokApi:t}=(0,o.YV)(e);return d=t,e.components&&Object.entries(e.components).forEach(([e,t])=>{f.set(e,t)}),h=e.enableFallbackComponent,p=e.customFallbackComponent,()=>t}},92253:(e,t,r)=>{"use strict";var n=(function(e){e&&"object"==typeof e&&"default"in e&&e.default}(r(12115)),r(13548)),i=new n,o=i.getBrowser(),a=i.getCPU(),s=i.getDevice(),l=i.getEngine(),u=i.getOS(),c=i.getUA(),d=function(e){if(!e)return void console.error("No userAgent string was provided");var t=new n(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}},f=Object.freeze({ClientUAInstance:i,browser:o,cpu:a,device:s,engine:l,os:u,ua:c,setUa:function(e){return i.setUA(e)},parseUserAgent:d}),h={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},p={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},m={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},g={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},y=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},b=function(e){var t=y();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},w=function(e){return e.type===h.Mobile},x=function(e){return e.type===h.Tablet},S=function(e){var t=e.type;return t===h.Mobile||t===h.Tablet},T=function(e){return e.type===h.SmartTv},k=function(e){return e.type===h.Browser},E=function(e){return e.type===h.Wearable},_=function(e){return e.type===h.Console},j=function(e){return e.type===h.Embedded},C=function(e){return v(e.vendor)},A=function(e){return v(e.model)}
50,O=function(e){return v(e.type,"browser")},R=function(e){return e.name===m.Android},P=function(e){return e.name===m.Windows},M=function(e){return e.name===m.MAC_OS},$=function(e){return e.name===m.WindowsPhone},D=function(e){return e.name===m.IOS},I=function(e){return v(e.version)},N=function(e){return v(e.name)},F=function(e){return e.name===p.Chrome},L=function(e){return e.name===p.Firefox},U=function(e){return e.name===p.Chromium},z=function(e){return e.name===p.Edge},W=function(e){return e.name===p.Yandex},H=function(e){var t=e.name;return t===p.Safari||t===p.MobileSafari},B=function(e){return e.name===p.MobileSafari},V=function(e){return e.name===p.Opera},q=function(e){var t=e.name;return t===p.InternetExplorer||t===p.Ie},Y=function(e){return e.name===p.MIUI},G=function(e){return e.name===p.SamsungBrowser},K=function(e){return v(e.version)},X=function(e){return v(e.major)},Z=function(e){return v(e.name)},J=function(e){return v(e.name)},Q=function(e){return v(e.version)},ee=function(){var e=y(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},et=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},er=function(){var e=y();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},en=function(){return b("iPad")},ei=function(){return b("iPhone")},eo=function(){return b("iPod")},ea=function(e){return v(e)};T(s),_(s),E(s),j(s),B(o)||en(),U(o);var es=S(s)||en();w(s),x(s)||en(),k(s),k(s),R(u),$(u),D(u)||en(),F(o),L(o),H(o),V(o),q(o),I(u),N(u),K(o),X(o),Z(o),C(s),A(s),J(l),Q(l),ea(c),z(o)||et(c),W(o),O(s),er(),en(),ei(),eo(),ee(),et(c),z(o)&&et(c),P(u),M(u),Y(o),G(o);t.Fr=es},92556:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{m:()=>n})},93368:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(r)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var a=t[n];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[n++]]}o[t[n]]=r})},getter:function(e,t){var r=c(e);return u.get(e)||u.set(e,function(e){for(var n=0,i=r.length;n<i;)if(null==e&&t)return;else e=e[r[n++]];return e})},join:function(e){return e.reduce(function(e,t){return e+(f(t)||n.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,r){!function(e,t,r){var a,s,l,u,c=e.length;for(s=0;s<c;s++)(a=e[s])&&(function(e){return!f(e)&&(e.match(i)&&!e.match(n)||o.test(e))}(a)&&(a='"'+a+'"'),l=!(u=f(a))&&/^\d+$/.test(a),t.call(r,a,u,l,s,e))}(Array.isArray(e)?e:d(e),t,r)}}},95582:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>re});var n=function(e){var t,r,n;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(n=Object.prototype.toString.call(r))&&"[object Date]"!==n&&r.$$typeof!==i)},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function a(e,t,r){return e.concat(t).map(function(e){return o(e,r)})}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n;var i,l,u=Array.isArray(t);return u!==Array.isArray(e)?o(t,r):u?r.arrayMerge(e,t,r):(l={},(i=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){l[t]=o(e[t],i)}),Object.keys(t).forEach(function(r){i.isMergeableObject(t[r])&&e[r]?l[r]=s(e[r],t[r],i):l[r]=o(t[r],i)}),l)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})};let l=s;var u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=d.Symbol,h=Object.prototype,p=h.hasOwnProperty,m=h.toString,g=f?f.toStringTag:void 0;let v=function(e){var t=p.call(e,g),r=e[g];try{e[g]=void 0;var n=!0}catch(e){}var i=m.call(e);return n&&(t?e[g]=r:delete e[g]),i};var y=Object.prototype.toString,b=f?f.toStringTag:void 0;
50let w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?v(e):y.call(e)},x=function(e,t){return function(r){return e(t(r))}};var S=x(Object.getPrototypeOf,Object);let T=function(e){return null!=e&&"object"==typeof e};var k=Object.prototype,E=Function.prototype.toString,_=k.hasOwnProperty,j=E.call(Object);let C=function(e){if(!T(e)||"[object Object]"!=w(e))return!1;var t=S(e);if(null===t)return!0;var r=_.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&E.call(r)==j},A=function(e,t){return e===t||e!=e&&t!=t},O=function(e,t){for(var r=e.length;r--;)if(A(e[r][0],t))return r;return -1};var R=Array.prototype.splice;function P(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}P.prototype.clear=function(){this.__data__=[],this.size=0},P.prototype.delete=function(e){var t=this.__data__,r=O(t,e);return!(r<0)&&(r==t.length-1?t.pop():R.call(t,r,1),--this.size,!0)},P.prototype.get=function(e){var t=this.__data__,r=O(t,e);return r<0?void 0:t[r][1]},P.prototype.has=function(e){return O(this.__data__,e)>-1},P.prototype.set=function(e,t){var r=this.__data__,n=O(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};let M=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$=function(e){if(!M(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var D=d["__core-js_shared__"],I=function(){var e=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),N=Function.prototype.toString;let F=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var L=/^\[object .+?Constructor\]$/,U=Object.prototype,z=Function.prototype.toString,W=U.hasOwnProperty,H=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let B=function(e){return!!M(e)&&(!I||!(I in e))&&($(e)?H:L).test(F(e))},V=function(e,t){var r=null==e?void 0:e[t];return B(r)?r:void 0};var q=V(d,"Map"),Y=V(Object,"create"),G=Object.prototype.hasOwnProperty,K=Object.prototype.hasOwnProperty;function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}X.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},X.prototype.get=function(e){var t=this.__data__;if(Y){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return G.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:K.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this};let Z=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},J=function(e,t){var r=e.__data__;return Z(t)?r["string"==typeof t?"string":"hash"]:r.map};function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=this.__data__=new P(e);this.size=t.size}Q.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(q||P),string:new X}},Q.prototype.delete=function(e){var t=J(this,e).delete(e);return this.size-=!!t,t},Q.prototype.get=function(e){return J(this,e).get(e)},Q.prototype.has=function(e){return J(this,e).has(e)},Q.prototype.set=function(e,t){var r=J(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},ee.prototype.clear=function(){this.__data__=new P,this.size=0},ee.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ee.prototype.get=function(e){return this.__data__.get(e)},ee.prototype.has=function(e){return this.__data__.has(e)},ee.prototype.set=function(e,t){var r=this.__data__;if(r instanceof P){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Q(n)}return r.set(e,t),this.size=r.size,this};let et=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};var er=function(){try{var e=V(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let en=function(e,t,r){"__proto__"==t&&er?er(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var ei=Object.prototype.hasOwnProperty;let eo=function(e,t,r){var n=e[t];ei.call(e,t)&&A(n,r)&&(void 0!==r||t in e)||en(e,t,r)},ea=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),i?en(r,s,l):eo(r,s,l)}return r},es=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},el=function(e){return T(e)&&"[object Arguments]"==w(e)};var eu=Object.prototype,ec=eu.hasOwnProperty,ed=eu.propertyIsEnumerable,ef=el(function(){return arguments}())?el:function(e){return T(e)&&ec.call(e,"callee")&&!ed.call(e,"callee")},eh=Array.isArray,ep="object"==typeof exports&&exports&&!exports.nodeType&&exports,em=ep&&"object"==typeof module&&module&&!module.nodeType&&module,eg=em&&em.exports===ep?d.Buffer:void 0;let ev=(eg?eg.isBuffer:void 0)||function(){return!1};var ey=/^(?:0|[1-9]\d*)$/;let eb=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ey.test(e))&&e>-1&&e%1==0&&e<t},ew=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var ex={};
50ex["[object Float32Array]"]=ex["[object Float64Array]"]=ex["[object Int8Array]"]=ex["[object Int16Array]"]=ex["[object Int32Array]"]=ex["[object Uint8Array]"]=ex["[object Uint8ClampedArray]"]=ex["[object Uint16Array]"]=ex["[object Uint32Array]"]=!0,ex["[object Arguments]"]=ex["[object Array]"]=ex["[object ArrayBuffer]"]=ex["[object Boolean]"]=ex["[object DataView]"]=ex["[object Date]"]=ex["[object Error]"]=ex["[object Function]"]=ex["[object Map]"]=ex["[object Number]"]=ex["[object Object]"]=ex["[object RegExp]"]=ex["[object Set]"]=ex["[object String]"]=ex["[object WeakMap]"]=!1;let eS=function(e){return function(t){return e(t)}};var eT="object"==typeof exports&&exports&&!exports.nodeType&&exports,ek=eT&&"object"==typeof module&&module&&!module.nodeType&&module,eE=ek&&ek.exports===eT&&u.process,e_=function(){try{var e=ek&&ek.require&&ek.require("util").types;if(e)return e;return eE&&eE.binding&&eE.binding("util")}catch(e){}}(),ej=e_&&e_.isTypedArray,eC=ej?eS(ej):function(e){return T(e)&&ew(e.length)&&!!ex[w(e)]},eA=Object.prototype.hasOwnProperty;let eO=function(e,t){var r=eh(e),n=!r&&ef(e),i=!r&&!n&&ev(e),o=!r&&!n&&!i&&eC(e),a=r||n||i||o,s=a?es(e.length,String):[],l=s.length;for(var u in e)(t||eA.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||eb(u,l)))&&s.push(u);return s};var eR=Object.prototype;let eP=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eR)};var eM=x(Object.keys,Object),e$=Object.prototype.hasOwnProperty;let eD=function(e){if(!eP(e))return eM(e);var t=[];for(var r in Object(e))e$.call(e,r)&&"constructor"!=r&&t.push(r);return t},eI=function(e){return null!=e&&ew(e.length)&&!$(e)},eN=function(e){return eI(e)?eO(e):eD(e)},eF=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var eL=Object.prototype.hasOwnProperty;let eU=function(e){if(!M(e))return eF(e);var t=eP(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r},ez=function(e){return eI(e)?eO(e,!0):eU(e)};var eW="object"==typeof exports&&exports&&!exports.nodeType&&exports,eH=eW&&"object"==typeof module&&module&&!module.nodeType&&module,eB=eH&&eH.exports===eW?d.Buffer:void 0,eV=eB?eB.allocUnsafe:void 0;let eq=function(e,t){if(t)return e.slice();var r=e.length,n=eV?eV(r):new e.constructor(r);return e.copy(n),n},eY=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},eG=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},eK=function(){return[]};var eX=Object.prototype.propertyIsEnumerable,eZ=Object.getOwnPropertySymbols,eJ=eZ?function(e){return null==e?[]:eG(eZ(e=Object(e)),function(t){return eX.call(e,t)})}:eK;let eQ=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e};var e0=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)eQ(t,eJ(e)),e=S(e);return t}:eK;let e1=function(e,t,r){var n=t(e);return eh(e)?n:eQ(n,r(e))},e2=function(e){return e1(e,eN,eJ)},e6=function(e){return e1(e,ez,e0)};var e5=V(d,"DataView"),e3=V(d,"Promise"),e4=V(d,"Set"),e8=V(d,"WeakMap"),e9="[object Map]",e7="[object Promise]",te="[object Set]",tt="[object WeakMap]",tr="[object DataView]",tn=F(e5),ti=F(q),to=F(e3),ta=F(e4),ts=F(e8),tl=w;(e5&&tl(new e5(new ArrayBuffer(1)))!=tr||q&&tl(new q)!=e9||e3&&tl(e3.resolve())!=e7||e4&&tl(new e4)!=te||e8&&tl(new e8)!=tt)&&(tl=function(e){var t=w(e),r="[object Object]"==t?e.constructor:void 0,n=r?F(r):"";if(n)switch(n){case tn:return tr;case ti:return e9;case to:return e7;case ta:return te;case ts:return tt}return t});let tu=tl;var tc=Object.prototype.hasOwnProperty;let td=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&tc.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var tf=d.Uint8Array;let th=function(e){var t=new e.constructor(e.byteLength);return new tf(t).set(new tf(e)),t},tp=function(e,t){var r=t?th(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var tm=/\w*$/;let tg=function(e){var t=new e.constructor(e.source,tm.exec(e));return t.lastIndex=e.lastIndex,t};var tv=f?f.prototype:void 0,ty=tv?tv.valueOf:void 0;let tb=function(e,t){var r=t?th(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tw=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return th(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return tp(e,r);
50case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return tb(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return tg(e);case"[object Symbol]":return ty?Object(ty.call(e)):{}}};var tx=Object.create,tS=function(){function e(){}return function(t){if(!M(t))return{};if(tx)return tx(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),tT=e_&&e_.isMap,tk=tT?eS(tT):function(e){return T(e)&&"[object Map]"==tu(e)},tE=e_&&e_.isSet,t_=tE?eS(tE):function(e){return T(e)&&"[object Set]"==tu(e)},tj="[object Arguments]",tC="[object Function]",tA="[object Object]",tO={};tO[tj]=tO["[object Array]"]=tO["[object ArrayBuffer]"]=tO["[object DataView]"]=tO["[object Boolean]"]=tO["[object Date]"]=tO["[object Float32Array]"]=tO["[object Float64Array]"]=tO["[object Int8Array]"]=tO["[object Int16Array]"]=tO["[object Int32Array]"]=tO["[object Map]"]=tO["[object Number]"]=tO[tA]=tO["[object RegExp]"]=tO["[object Set]"]=tO["[object String]"]=tO["[object Symbol]"]=tO["[object Uint8Array]"]=tO["[object Uint8ClampedArray]"]=tO["[object Uint16Array]"]=tO["[object Uint32Array]"]=!0,tO["[object Error]"]=tO[tC]=tO["[object WeakMap]"]=!1;let tR=function e(t,r,n,i,o,a){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=o?n(t,i,o,a):n(t)),void 0!==s)return s;if(!M(t))return t;var d=eh(t);if(d){if(s=td(t),!l)return eY(t,s)}else{var f,h,p,m,g,v=tu(t),y=v==tC||"[object GeneratorFunction]"==v;if(ev(t))return eq(t,l);if(v==tA||v==tj||y&&!o){if(s=u||y||"function"!=typeof(f=t).constructor||eP(f)?{}:tS(S(f)),!l)return u?(p=(h=s)&&ea(t,ez(t),h),ea(t,e0(t),p)):(g=(m=s)&&ea(t,eN(t),m),ea(t,eJ(t),g))}else{if(!tO[v])return o?t:{};s=tw(t,v,l)}}a||(a=new ee);var b=a.get(t);if(b)return b;a.set(t,s),t_(t)?t.forEach(function(i){s.add(e(i,r,n,i,t,a))}):tk(t)&&t.forEach(function(i,o){s.set(o,e(i,r,n,o,t,a))});var w=c?u?e6:e2:u?ez:eN,x=d?void 0:w(t);return et(x||t,function(i,o){x&&(i=t[o=i]),eo(s,o,e(i,r,n,o,t,a))}),s},tP=function(e){return tR(e,5)};var tM=r(12115),t$=r(86697),tD=r.n(t$);let tI=function(e,t){},tN=function(e){return tR(e,4)},tF=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},tL=function(e){return"symbol"==typeof e||T(e)&&"[object Symbol]"==w(e)};function tU(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(tU.Cache||Q),r}tU.Cache=Q;var tz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tW=/\\(\\)?/g,tH=function(e){var t=tU(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tz,function(e,r,n,i){t.push(n?i.replace(tW,"$1"):r||e)}),t}),tB=1/0;let tV=function(e){if("string"==typeof e||tL(e))return e;var t=e+"";return"0"==t&&1/e==-tB?"-0":t};var tq=1/0,tY=f?f.prototype:void 0,tG=tY?tY.toString:void 0;let tK=function e(t){if("string"==typeof t)return t;if(eh(t))return tF(t,e)+"";if(tL(t))return tG?tG.call(t):"";var r=t+"";return"0"==r&&1/t==-tq?"-0":r},tX=function(e){return eh(e)?tF(e,tV):tL(e)?[e]:eY(tH(null==e?"":tK(e)))};function tZ(){return(tZ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function tJ(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function tQ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(76076);var t0=(0,tM.createContext)(void 0);t0.displayName="FormikContext",t0.Provider,t0.Consumer;var t1=function(e){return Array.isArray(e)&&0===e.length},t2=function(e){return"function"==typeof e},t6=function(e){return null!==e&&"object"==typeof e},t5=function(e){return"[object String]"===Object.prototype.toString.call(e)},t3=function(e){return t6(e)&&t2(e.then)};function t4(e,t,r,n){void 0===n&&(n=0);for(var i=tX(t);e&&n<i.length;)e=e[i[n++]];return n===i.length||e?void 0===e?r:e:r}function t8(e,t,r){for(var n=tN(e),i=n,o=0,a=tX(t);o<a.length-1;o++){var s=a[o],l=t4(e,a.slice(0,o+1));if(l&&(t6(l)||Array.isArray(l)))i=i[s]=tN(l);else{var u=a[o+1];i=i[s]=String(Math.floor(Number(u)))===u&&Number(u)>=0?[]:{}}}return(0===o?e:i)[a[o]]===r?e:(void 0===r?delete i[a[o]]:i[a[o]]=r,0===o&&void 0===r&&delete n[a[o]],n)}var t9={},t7={};function re(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,i=void 0===n||n,o=e.validateOnMount,a=void 0!==o&&o,s=e.isInitialValid,u=e.enableReinitialize,c=void 0!==u&&u,d=e.onSubmit,f=tJ(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=tZ({validateOnChange:r,validateOnBlur:i,validateOnMount:a,onSubmit:d},f),p=(0,tM.useRef)(h.initialValues),m=(0,tM.useRef)(h.initialErrors||t9),g=(0,tM.useRef)(h.initialTouched||t7),v=(0,tM.useRef)(h.initialStatus),y=(0,tM.useRef)(!1),b=(0,tM.useRef)({});(0,tM.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]);var w=(0,tM.useState)(0)[1],x=(0,tM.useRef)({values:tP(h.initialValues),errors:tP(h.initialErrors)||t9,touched:tP(h.initialTouched)||t7,status:tP(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=x.current,T=(0,tM.useCallback)(function(e){var t=x.current;x.current=function(e,t){switch(t.type){case"SET_VALUES":return tZ({},e,{values:t.payload});case"SET_TOUCHED":return tZ({},e,{touched:t.payload});case"SET_ERRORS":if(tD()(e.errors,t.payload))return e;return tZ({},e,{errors:t.payload});case"SET_STATUS":return tZ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tZ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tZ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tZ({},e,{values:t8(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tZ({},e,{touched:t8(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tZ({},e,{errors:t8(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tZ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tZ({},e,{touched:function e(t,r,n,i){void 0===n&&(n=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o],l=t[s];
50t6(l)?n.get(l)||(n.set(l,!0),i[s]=Array.isArray(l)?[]:{},e(l,r,n,i[s])):i[s]=r}return i}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return tZ({},e,{isSubmitting:!1});default:return e}}(t,e),t!==x.current&&w(function(e){return e+1})},[]),k=(0,tM.useCallback)(function(e,t){return new Promise(function(r,n){var i=h.validate(e,t);null==i?r(t9):t3(i)?i.then(function(e){r(e||t9)},function(e){n(e)}):r(i)})},[h.validate]),E=(0,tM.useCallback)(function(e,t){var r,n,i,o,a=h.validationSchema,s=t2(a)?a(t):a,l=t&&s.validateAt?s.validateAt(t,e):(r=e,n=s,void 0===i&&(i=!1),o=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=String(n);!0===Array.isArray(t[i])?r[i]=t[i].map(function(t){return!0===Array.isArray(t)||C(t)?e(t):""!==t?t:void 0}):C(t[i])?r[i]=e(t[i]):r[i]=""!==t[i]?t[i]:void 0}return r}(r),n[i?"validateSync":"validate"](o,{abortEarly:!1,context:o}));return new Promise(function(e,t){l.then(function(){e(t9)},function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return t8(t,e.path,e.message);for(var r=e.inner,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var o,a=o;t4(t,a.path)||(t=t8(t,a.path,a.message))}}return t}(r)):t(r)})})},[h.validationSchema]),_=(0,tM.useCallback)(function(e,t){return new Promise(function(r){return r(b.current[e].validate(t))})},[]),j=(0,tM.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return t2(b.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return _(t,t4(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=t8(e,t[n],r)),e},{})})},[_]),A=(0,tM.useCallback)(function(e){return Promise.all([j(e),h.validationSchema?E(e):{},h.validate?k(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return l.all([t,r,n],{arrayMerge:rt})})},[h.validate,h.validationSchema,j,k,E]),O=rn(function(e){return void 0===e&&(e=S.values),T({type:"SET_ISVALIDATING",payload:!0}),A(e).then(function(e){return y.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:e})),e})});(0,tM.useEffect)(function(){a&&!0===y.current&&tD()(p.current,h.initialValues)&&O(p.current)},[a,O]);var R=(0,tM.useCallback)(function(e){var t=e&&e.values?e.values:p.current,r=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:g.current?g.current:h.initialTouched||{},i=e&&e.status?e.status:v.current?v.current:h.initialStatus;p.current=t,m.current=r,g.current=n,v.current=i;var o=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(S.values,X);t3(a)?a.then(o):o()}else o()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);(0,tM.useEffect)(function(){!0===y.current&&!tD()(p.current,h.initialValues)&&c&&(p.current=h.initialValues,R(),a&&O(p.current))},[c,h.initialValues,R,a,O]),(0,tM.useEffect)(function(){c&&!0===y.current&&!tD()(m.current,h.initialErrors)&&(m.current=h.initialErrors||t9,T({type:"SET_ERRORS",payload:h.initialErrors||t9}))},[c,h.initialErrors]),(0,tM.useEffect)(function(){c&&!0===y.current&&!tD()(g.current,h.initialTouched)&&(g.current=h.initialTouched||t7,T({type:"SET_TOUCHED",payload:h.initialTouched||t7}))},[c,h.initialTouched]),(0,tM.useEffect)(function(){c&&!0===y.current&&!tD()(v.current,h.initialStatus)&&(v.current=h.initialStatus,T({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var P=rn(function(e){if(b.current[e]&&t2(b.current[e].validate)){var t=t4(S.values,e),r=b.current[e].validate(t);return t3(r)?(T({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(T({type:"SET_ISVALIDATING",payload:!0}),E(S.values,e).then(function(e){return e}).then(function(t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t4(t,e)}}),T({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),M=(0,tM.useCallback)(function(e,t){var r=t.validate;b.current[e]={validate:r}},[]),$=(0,tM.useCallback)(function(e){delete b.current[e]},[]),D=rn(function(e,t){return T({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?O(S.values):Promise.resolve()}),I=(0,tM.useCallback)(function(e){T({type:"SET_ERRORS",payload:e})},[]),N=rn(function(e,t){var n=t2(e)?e(S.values):e;return T({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?O(n):Promise.resolve()}),F=(0,tM.useCallback)(function(e,t){T({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),L=rn(function(e,t,n){return T({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?O(t8(S.values,e,t)):Promise.resolve()}),U=(0,tM.useCallback)(function(e,t){var r,n=t,i=e;if(!t5(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;n=t||s||l,i=/number|range/.test(a)?isNaN(r=parseFloat(u))?"":r:/checkbox/.test(a)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,o=-1;if(Array.isArray(e))n=e,i=(o=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;
50return t&&r&&!i?n.concat(r):i?n.slice(0,o).concat(n.slice(o+1)):n}(t4(S.values,n),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}n&&L(n,i)},[L,S.values]),z=rn(function(e){if(t5(e))return function(t){return U(t,e)};U(e)}),W=rn(function(e,t,r){return void 0===t&&(t=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?O(S.values):Promise.resolve()}),H=(0,tM.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML;W(t||n||i,!0)},[W]),B=rn(function(e){if(t5(e))return function(t){return H(t,e)};H(e)}),V=(0,tM.useCallback)(function(e){t2(e)?T({type:"SET_FORMIK_STATE",payload:e}):T({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=(0,tM.useCallback)(function(e){T({type:"SET_STATUS",payload:e})},[]),Y=(0,tM.useCallback)(function(e){T({type:"SET_ISSUBMITTING",payload:e})},[]),G=rn(function(){return T({type:"SUBMIT_ATTEMPT"}),O().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=Z(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return y.current&&T({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(y.current)throw T({type:"SUBMIT_FAILURE"}),e})}if(y.current&&(T({type:"SUBMIT_FAILURE"}),r))throw e})}),K=rn(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:R,validateForm:O,validateField:P,setErrors:I,setFieldError:F,setFieldTouched:W,setFieldValue:L,setStatus:q,setSubmitting:Y,setTouched:D,setValues:N,setFormikState:V,submitForm:G},Z=rn(function(){return d(S.values,X)}),J=rn(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),R()}),Q=(0,tM.useCallback)(function(e){return{value:t4(S.values,e),error:t4(S.errors,e),touched:!!t4(S.touched,e),initialValue:t4(p.current,e),initialTouched:!!t4(g.current,e),initialError:t4(m.current,e)}},[S.errors,S.touched,S.values]),ee=(0,tM.useCallback)(function(e){return{setValue:function(t,r){return L(e,t,r)},setTouched:function(t,r){return W(e,t,r)},setError:function(t){return F(e,t)}}},[L,W,F]),et=(0,tM.useCallback)(function(e){var t=t6(e),r=t?e.name:e,n=t4(S.values,r),i={name:r,value:n,onChange:z,onBlur:B};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(a)),i.value=a):"radio"===o?(i.checked=n===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[B,z,S.values]),er=(0,tM.useMemo)(function(){return!tD()(p.current,S.values)},[p.current,S.values]),en=(0,tM.useMemo)(function(){return void 0!==s?er?S.errors&&0===Object.keys(S.errors).length:!1!==s&&t2(s)?s(h):s:S.errors&&0===Object.keys(S.errors).length},[s,er,S.errors,h]);return tZ({},S,{initialValues:p.current,initialErrors:m.current,initialTouched:g.current,initialStatus:v.current,handleBlur:B,handleChange:z,handleReset:J,handleSubmit:K,resetForm:R,setErrors:I,setFormikState:V,setFieldTouched:W,setFieldValue:L,setFieldError:F,setStatus:q,setSubmitting:Y,setTouched:D,setValues:N,submitForm:G,validateForm:O,validateField:P,isValid:en,dirty:er,unregisterField:$,registerField:M,getFieldProps:et,getFieldMeta:Q,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:r,validateOnMount:a})}function rt(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var o=!1!==r.clone&&r.isMergeableObject(t);n[i]=o?l(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=l(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var rr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?tM.useLayoutEffect:tM.useEffect;function rn(e){var t=(0,tM.useRef)(e);return rr(function(){t.current=e}),(0,tM.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}(0,tM.forwardRef)(function(e,t){var r,n=e.action,i=tJ(e,["action"]),o=((r=(0,tM.useContext)(t0))||tI(!1),r),a=o.handleReset,s=o.handleSubmit;return(0,tM.createElement)("form",tZ({onSubmit:s,ref:t,onReset:a,action:null!=n?n:"#"},i))}).displayName="Form";var ri=function(e,t,r){var n=rl(e),i=n[t];return n.splice(t,1),n.splice(r,0,i),n},ro=function(e,t,r){var n=rl(e),i=n[t];return n[t]=n[r],n[r]=i,n},ra=function(e,t,r){var n=rl(e);return n.splice(t,0,r),n},rs=function(e,t,r){var n=rl(e);return n[t]=r,n},rl=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(tZ({},e,{length:t+1}))},ru=function(e,t){var r="function"==typeof e?e:t;return function(e){return Array.isArray(e)||t6(e)?r(rl(e)):e}};(function(e){function t(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,o=i.name;(0,i.formik.setFormikState)(function(r){var i=ru(n,e),a=ru(t,e),s=t8(r.values,o,e(t4(r.values,o))),l=n?i(t4(r.errors,o)):void 0,u=t?a(t4(r.touched,o)):void 0;return t1(l)&&(l=void 0),t1(u)&&(u=void 0),tZ({}
50,r,{values:s,errors:n?t8(r.errors,o,l):r.errors,touched:t?t8(r.touched,o,u):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(rl(t),[tP(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return ro(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return ri(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return ra(r,e,t)},function(t){return ra(t,e,null)},function(t){return ra(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return rs(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t=n.length,n},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(tQ(r)),r.pop=r.pop.bind(tQ(r)),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!tD()(t4(e.formik.values,e.name),t4(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?rl(r):[];return t||(t=n[e]),t2(n.splice)&&n.splice(e,1),t2(n.every)&&n.every(function(e){return void 0===e})?[]:n},!0,!0),t},r.pop=function(){var e;return this.updateArrayField(function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,i=t.children,o=t.name,a=tJ(t.formik,["validate","validationSchema"]),s=tZ({},e,{form:a,name:o});return r?(0,tM.createElement)(r,s):n?n(s):i?"function"==typeof i?i(s):0===tM.Children.count(i)?null:tM.Children.only(i):null},t})(tM.Component).defaultProps={validateOnChange:!0}},97602:(e,t,r)=>{"use strict";r.d(t,{hO:()=>l,sG:()=>s});var n=r(12115),i=r(47650),o=r(32467),a=r(95155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,s=n?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},97745:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var c=o[r],d=[],f=new Set,h=new Set(u),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||h.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,o=c.get(e)-1;n.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),l(n,i,r,"aria-hidden")):function(){return null}}}}]); 51//# sourceMappingURL=985-a526cc23b6fe8166.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.