@slashid/jump-page 0.0.8-package.12 → 0.0.8-package.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/_astro/app.1e2eff21.js +101 -0
  2. package/dist/_astro/client.2acc8023.js +1 -0
  3. package/dist/_astro/index.2e7fe26b.js +32 -0
  4. package/dist/_astro/sdk.0e66b66d.css +1 -0
  5. package/dist/_astro/sdk.c4317c20.css +1 -0
  6. package/dist/sdk.html +1 -0
  7. package/package.json +2 -1
  8. package/package/astro.config.d.mts +0 -2
  9. package/package/main.js +0 -2819
  10. package/package/main.js.map +0 -1
  11. package/package/src/components/app/app.component.d.ts +0 -1
  12. package/package/src/components/app/app.context.d.ts +0 -22
  13. package/package/src/components/app/app.css.d.ts +0 -1
  14. package/package/src/components/app/index.d.ts +0 -1
  15. package/package/src/components/card/card.component.d.ts +0 -10
  16. package/package/src/components/card/card.css.d.ts +0 -4
  17. package/package/src/components/card/index.d.ts +0 -1
  18. package/package/src/components/flow/flow.component.d.ts +0 -1
  19. package/package/src/components/flow/flow.css.d.ts +0 -3
  20. package/package/src/components/flow/flow.error.d.ts +0 -5
  21. package/package/src/components/flow/flow.initial.d.ts +0 -1
  22. package/package/src/components/flow/flow.loader.d.ts +0 -1
  23. package/package/src/components/flow/flow.loading.d.ts +0 -1
  24. package/package/src/components/flow/flow.progress.d.ts +0 -11
  25. package/package/src/components/flow/flow.recover.d.ts +0 -1
  26. package/package/src/components/flow/flow.success.d.ts +0 -3
  27. package/package/src/components/flow/flow.types.d.ts +0 -37
  28. package/package/src/components/flow/index.d.ts +0 -3
  29. package/package/src/components/text/index.d.ts +0 -1
  30. package/package/src/components/text/text.component.d.ts +0 -6
  31. package/package/src/components/text/use-i18n.d.ts +0 -1
  32. package/package/src/config.d.ts +0 -4
  33. package/package/src/domain/errors.d.ts +0 -1
  34. package/package/src/domain/i18n.d.ts +0 -43
  35. package/package/src/main.d.ts +0 -9
  36. package/package/style.css +0 -1
  37. package/package/vite.config.d.ts +0 -2
  38. /package/{package → dist}/favicon.png +0 -0
@@ -0,0 +1,101 @@
1
+ import{r as d,F as U,a as ln,Z as vu}from"./index.2e7fe26b.js";/* empty css */var oc={exports:{}},qr={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var wu=d,yu=Symbol.for("react.element"),xu=Symbol.for("react.fragment"),Cu=Object.prototype.hasOwnProperty,ku=wu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Eu={key:!0,ref:!0,__self:!0,__source:!0};function ic(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Cu.call(t,r)&&!Eu.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:yu,type:e,key:i,ref:a,props:o,_owner:ku.current}}qr.Fragment=xu;qr.jsx=ic;qr.jsxs=ic;oc.exports=qr;var C=oc.exports;function ge(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ac=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},mo={},Yn={},Yt=ac.parcelRequire91fc;Yt==null&&(Yt=function(e){if(e in mo)return mo[e].exports;if(e in Yn){var t=Yn[e];delete Yn[e];var n={id:e,exports:{}};return mo[e]=n,t.call(n.exports,n,n.exports),n.exports}var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r},Yt.register=function(t,n){Yn[t]=n},ac.parcelRequire91fc=Yt);var Su=Yt.register;Su("lDZ5d",function(e,t){(function(n,r){var o="1.0.37",i="",a="?",s="function",c="undefined",l="object",u="string",f="major",p="model",h="name",g="type",m="vendor",b="version",w="architecture",v="console",y="mobile",x="tablet",E="smarttv",q="wearable",I="embedded",R=500,L="Amazon",H="Apple",B="ASUS",j="BlackBerry",Z="Browser",M="Chrome",Y="Edge",O="Firefox",J="Google",he="Huawei",S="LG",k="Microsoft",$="Motorola",P="Opera",D="Samsung",F="Sharp",te="Sony",se="Xiaomi",T="Zebra",W="Facebook",ce="Chromium OS",G="Mac OS",Q=function(X,ie){var V={};for(var ue in X)ie[ue]&&ie[ue].length%2===0?V[ue]=ie[ue].concat(X[ue]):V[ue]=X[ue];return V},de=function(X){for(var ie={},V=0;V<X.length;V++)ie[X[V].toUpperCase()]=X[V];return ie},Se=function(X,ie){return typeof X===u?xe(ie).indexOf(xe(X))!==-1:!1},xe=function(X){return X.toLowerCase()},It=function(X){return typeof X===u?X.replace(/[^\d\.]/g,i).split(".")[0]:r},nt=function(X,ie){if(typeof X===u)return X=X.replace(/^\s\s*/,i),typeof ie===c?X:X.substring(0,R)},Rt=function(X,ie){for(var V=0,ue,bt,Ke,re,N,Ye;V<ie.length&&!N;){var po=ie[V],ga=ie[V+1];for(ue=bt=0;ue<po.length&&!N&&po[ue];)if(N=po[ue++].exec(X),N)for(Ke=0;Ke<ga.length;Ke++)Ye=N[++bt],re=ga[Ke],typeof re===l&&re.length>0?re.length===2?typeof re[1]==s?this[re[0]]=re[1].call(this,Ye):this[re[0]]=re[1]:re.length===3?typeof re[1]===s&&!(re[1].exec&&re[1].test)?this[re[0]]=Ye?re[1].call(this,Ye,re[2]):r:this[re[0]]=Ye?Ye.replace(re[1],re[2]):r:re.length===4&&(this[re[0]]=Ye?re[3].call(this,Ye.replace(re[1],re[2])):r):this[re]=Ye||r;V+=2}},wn=function(X,ie){for(var V in ie)if(typeof ie[V]===l&&ie[V].length>0){for(var ue=0;ue<ie[V].length;ue++)if(Se(ie[V][ue],X))return V===a?r:V}else if(Se(ie[V],X))return V===a?r:V;return X},ho={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},qt={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"},ma={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,b],[/opios[\/ ]+([\w\.]+)/i],[b,[h,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[h,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[h,"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],[h,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[h,"UC"+Z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[h,"Smart Lenovo "+Z]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+Z],b],[/\bfocus\/([\w\.]+)/i],[b,[h,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[h,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[h,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[h,"MIUI "+Z]],[/fxios\/([-\w\.]+)/i],[b,[h,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+Z]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+Z],b],[/samsungbrowser\/([\w\.]+)/i],[b,[h,D+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[h,b],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,W],b],[/(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,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[h,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,M+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[h,"Android "+Z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[b,wn,ho]],[/(webkit|khtml)\/([\w\.]+)/i],[h,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[h,O+" 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],[h,b],[/(cobalt)\/([\w\.]+)/i],[h,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,xe]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,i,xe]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,xe]]],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],[p,[m,D],[g,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[m,D],[g,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[m,H],[g,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[m,H],[g,x]],[/(macintosh);/i],[p,[m,H]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[m,F],[g,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[m,he],[g,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[m,he],[g,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],[[p,/_/g," "],[m,se],[g,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[m,se],[g,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[m,"OPPO"],[g,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[m,"Vivo"],[g,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[m,"Realme"],[g,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],[p,[m,$],[g,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[m,$],[g,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[m,S],[g,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[m,S],[g,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[m,"Lenovo"],[g,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[m,"Nokia"],[g,y]],[/(pixel c)\b/i],[p,[m,J],[g,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[m,J],[g,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],[p,[m,te],[g,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[m,te],[g,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[m,"OnePlus"],[g,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[m,L],[g,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[m,L],[g,y]],[/(playbook);[-\w\),; ]+(rim)/i],[p,m,[g,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[m,j],[g,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[m,B],[g,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[m,B],[g,y]],[/(nexus 9)/i],[p,[m,"HTC"],[g,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[p,/_/g," "],[g,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[m,"Acer"],[g,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[m,"Meizu"],[g,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[m,"Ulefone"],[g,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,p,[g,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],[m,p,[g,x]],[/(surface duo)/i],[p,[m,k],[g,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[m,"Fairphone"],[g,y]],[/(u304aa)/i],[p,[m,"AT&T"],[g,y]],[/\bsie-(\w*)/i],[p,[m,"Siemens"],[g,y]],[/\b(rct\w+) b/i],[p,[m,"RCA"],[g,x]],[/\b(venue[\d ]{2,7}) b/i],[p,[m,"Dell"],[g,x]],[/\b(q(?:mv|ta)\w+) b/i],[p,[m,"Verizon"],[g,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[m,"Barnes & Noble"],[g,x]],[/\b(tm\d{3}\w+) b/i],[p,[m,"NuVision"],[g,x]],[/\b(k88) b/i],[p,[m,"ZTE"],[g,x]],[/\b(nx\d{3}j) b/i],[p,[m,"ZTE"],[g,y]],[/\b(gen\d{3}) b.+49h/i],[p,[m,"Swiss"],[g,y]],[/\b(zur\d{3}) b/i],[p,[m,"Swiss"],[g,x]],[/\b((zeki)?tb.*\b) b/i],[p,[m,"Zeki"],[g,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],p,[g,x]],[/\b(ns-?\w{0,9}) b/i],[p,[m,"Insignia"],[g,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[m,"NextBook"],[g,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],p,[g,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],p,[g,y]],[/\b(ph-1) /i],[p,[m,"Essential"],[g,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[m,"Envizen"],[g,x]],[/\b(trio[-\w\. ]+) b/i],[p,[m,"MachSpeed"],[g,x]],[/\btu_(1491) b/i],[p,[m,"Rotor"],[g,x]],[/(shield[\w ]+) b/i],[p,[m,"Nvidia"],[g,x]],[/(sprint) (\w+)/i],[m,p,[g,y]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[m,k],[g,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[m,T],[g,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[m,T],[g,y]],[/smart-tv.+(samsung)/i],[m,[g,E]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[m,D],[g,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,S],[g,E]],[/(apple) ?tv/i],[m,[p,H+" TV"],[g,E]],[/crkey/i],[[p,M+"cast"],[m,J],[g,E]],[/droid.+aft(\w+)( bui|\))/i],[p,[m,L],[g,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[m,F],[g,E]],[/(bravia[\w ]+)( bui|\))/i],[p,[m,te],[g,E]],[/(mitv-\w{5}) bui/i],[p,[m,se],[g,E]],[/Hbbtv.*(technisat) (.*);/i],[m,p,[g,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,nt],[p,nt],[g,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,p,[g,v]],[/droid.+; (shield) bui/i],[p,[m,"Nvidia"],[g,v]],[/(playstation [345portablevi]+)/i],[p,[m,te],[g,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[m,k],[g,v]],[/((pebble))app/i],[m,p,[g,q]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[m,H],[g,q]],[/droid.+; (glass) \d/i],[p,[m,J],[g,q]],[/droid.+; (wt63?0{2,3})\)/i],[p,[m,T],[g,q]],[/(quest( 2| pro)?)/i],[p,[m,W],[g,q]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[g,I]],[/(aeobc)\b/i],[p,[m,L],[g,I]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[g,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[g,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,y]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[h,Y+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[h,"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],[h,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[h,[b,wn,qt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,wn,qt],[h,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,G],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,b],[/\(bb(10);/i],[b,[h,j]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[h,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[h,M+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,ce],b],[/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],[h,b],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,b]]},qe=function(X,ie){if(typeof X===l&&(ie=X,X=r),!(this instanceof qe))return new qe(X,ie).getResult();var V=typeof n!==c&&n.navigator?n.navigator:r,ue=X||(V&&V.userAgent?V.userAgent:i),bt=V&&V.userAgentData?V.userAgentData:r,Ke=ie?Q(ma,ie):ma,re=V&&V.userAgent==ue;return this.getBrowser=function(){var N={};return N[h]=r,N[b]=r,Rt.call(N,ue,Ke.browser),N[f]=It(N[b]),re&&V&&V.brave&&typeof V.brave.isBrave==s&&(N[h]="Brave"),N},this.getCPU=function(){var N={};return N[w]=r,Rt.call(N,ue,Ke.cpu),N},this.getDevice=function(){var N={};return N[m]=r,N[p]=r,N[g]=r,Rt.call(N,ue,Ke.device),re&&!N[g]&&bt&&bt.mobile&&(N[g]=y),re&&N[p]=="Macintosh"&&V&&typeof V.standalone!==c&&V.maxTouchPoints&&V.maxTouchPoints>2&&(N[p]="iPad",N[g]=x),N},this.getEngine=function(){var N={};return N[h]=r,N[b]=r,Rt.call(N,ue,Ke.engine),N},this.getOS=function(){var N={};return N[h]=r,N[b]=r,Rt.call(N,ue,Ke.os),re&&!N[h]&&bt&&bt.platform!="Unknown"&&(N[h]=bt.platform.replace(/chrome os/i,ce).replace(/macos/i,G)),N},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 ue},this.setUA=function(N){return ue=typeof N===u&&N.length>R?nt(N,R):N,this},this.setUA(ue),this};qe.VERSION=o,qe.BROWSER=de([h,b,f]),qe.CPU=de([w]),qe.DEVICE=de([p,m,g,v,y,E,x,q,I]),qe.ENGINE=qe.OS=de([h,b]),typeof t!==c?(e.exports&&(t=e.exports=qe),t.UAParser=qe):typeof define===s&&define.amd?define(function(){return qe}):typeof n!==c&&(n.UAParser=qe);var Bt=typeof n!==c&&(n.jQuery||n.Zepto);if(Bt&&!Bt.ua){var Kn=new qe;Bt.ua=Kn.getResult(),Bt.ua.get=function(){return Kn.getUA()},Bt.ua.set=function(X){Kn.setUA(X);var ie=Kn.getResult();for(var V in ie)Bt.ua[V]=ie[V]}}})(typeof window=="object"?window:this)});var wi={};wi=JSON.parse(`{"name":"@slashid/slashid","private":false,"publishConfig":{"access":"public"},"version":"3.20.2-customization.0","description":"Client SDK for the /id platform","homepage":"https://slashid.dev","author":"SlashID","license":"MIT","main":"./dist/bundle/slashid.js","module":"./dist/esmodule/slashid.esm.js","esmodule":"./dist/esmodule/slashid.esm.js","commonjs":"./dist/commonjs/slashid.cjs.js","bundle":"./dist/bundle/slashid.js","types":"./dist/types/slashid.d.ts","exports":{".":{"require":"./dist/commonjs/slashid.cjs.js","import":"./dist/esmodule/slashid.esm.js","default":"./dist/commonjs/slashid.cjs.js","types":"./dist/types/slashid.d.ts"}},"targets":{"esmodule":{"source":"src/targets/package.ts","context":"browser","isLibrary":true,"outputFormat":"esmodule","engines":{"browsers":["and_chr >= 73","chrome >= 73","and_ff >= 67","android >= 114","edge >= 79","samsung >= 11.2","safari >= 13","ios_saf >= 13.1","opera >= 60","firefox >= 67","unreleased and_chr versions","unreleased chrome versions","unreleased and_ff versions","unreleased android versions","unreleased edge versions","unreleased samsung versions","unreleased safari versions","unreleased ios_saf versions","unreleased opera versions","unreleased firefox versions"]}},"commonjs":{"source":"src/targets/package.ts","context":"node","isLibrary":true,"outputFormat":"commonjs","engines":{"node":">= 12"}},"bundle":{"source":"src/targets/bundle.ts","context":"browser","outputFormat":"global","engines":{"browsers":["> 0.5%","last 2 versions","not dead"]}},"page":{"source":"static/sdk.html","context":"browser","engines":{"browsers":["and_chr >= 73","chrome >= 73","and_ff >= 67","android >= 114","edge >= 79","samsung >= 11.2","safari >= 13","ios_saf >= 13.1","opera >= 60","firefox >= 67","unreleased and_chr versions","unreleased chrome versions","unreleased and_ff versions","unreleased android versions","unreleased edge versions","unreleased samsung versions","unreleased safari versions","unreleased ios_saf versions","unreleased opera versions","unreleased firefox versions"]}},"types":{"source":"src/targets/package.ts"}},"files":["dist/*"],"keywords":["slashid","SlashID","auth","openid","authentication","jwt","browser"],"scripts":{"clean":"rm -rf dist docs","lint":"eslint ./src --ext .ts","format":"prettier --config .prettierrc.json 'src/**/*.ts' --write","test:ts":"tsc --project tsconfig.json --noEmit","test:unit":"jest","test:unit:watch":"jest --watch","test:unit:ci":"jest --ci","test:integration":"playwright test","build":"rm -rf dist && parcel build --no-cache && cp compat/esmodule/package.json dist/esmodule","docs":"rm -rf docs && typedoc","dist":"npm run lint && npm run build","all":"npm run dist && npm run docs","serve:all":"parcel serve 'static/*.html' --port 8080 --no-cache","serve:example":"parcel serve static/index.html --port 8080 --no-cache","serve:jump":"parcel serve static/sdk.html --port 8080 --no-cache","serve:docs":"parcel serve docs/index.html --port 8081 --no-cache","push:docs":"aws s3 sync docs s3://slashiddoc/sdk/v$(node tools/version.js --major) && (aws cloudfront create-invalidation --distribution-id ETLBNGAAF97EN --paths \\"/*\\")","changeset":"changeset","prepublishOnly":"npm run all","publish:ci":"npm run build && changeset publish"},"devDependencies":{"@parcel/core":"2.12.0","@parcel/packager-ts":"2.12.0","@parcel/transformer-babel":"2.12.0","@parcel/transformer-js":"2.12.0","@parcel/transformer-json":"2.12.0","@parcel/transformer-react-refresh-wrap":"2.12.0","@parcel/transformer-typescript-types":"2.12.0","@playwright/test":"^1.25.0","@types/jest":"^28.1.7","@types/node":"~15.0.2","@types/qrcode":"^1.5.0","@types/ua-parser-js":"^0.7.39","@typescript-eslint/eslint-plugin":"^4.15.1","@typescript-eslint/parser":"^4.15.1","danger":"^11.2.6","eslint":"^7.20.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","isomorphic-fetch":"^3.0.0","jest":"^28.1.3","jest-environment-jsdom":"^28.1.3","jest-fetch-mock":"^3.0.3","parcel":"2.12.0","prettier":"^2.7.1","ts-jest":"^28.0.8","typedoc":"^0.23.00","typedoc-plugin-mdn-links":"^2.0.0","typedoc-plugin-missing-exports":"^1.0.0","typescript":"~4.7.0"},"dependencies":{"@changesets/cli":"^2.26.2","@types/uuid":"8.3.4","changeset":"^0.2.6","compare-versions":"^6.1.0","docdash":"^1.2.0","jwt-decode":"^3.1.2","qrcode":"^1.5.1","querystring-es3":"^0.2.1","regenerator-runtime":"^0.13.9","ua-parser-js":"^1.0.37","url":"^0.11.0","uuid":"8.3.2"}}`);const[$u,Iu,Ru]=wi.version.split("."),ke={major:$u,minor:Iu,patch:Ru,raw:wi.version},qu="https://api.slashid.com".replace(/\/+$/,"");class dt{set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:qu}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||sc}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}constructor(t={}){this.configuration=t}}const ut=new dt;class St{withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?St.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:o}=await this.createFetchParams(t,n),i=await this.fetchApi(r,o);if(i&&i.status>=200&&i.status<300)return i;throw new Tu(i,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const o=Object.assign({},this.configuration.headers,t.headers);Object.keys(o).forEach(l=>o[l]===void 0?delete o[l]:{});const i=typeof n=="function"?n:async()=>n,a={method:t.method,headers:o,body:t.body,credentials:this.configuration.credentials},s={...a,...await i({init:a,context:t})},c={...s,body:Du(s.body)||s.body instanceof URLSearchParams||zu(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}constructor(t=ut){this.configuration=t,this.fetchApi=async(n,r)=>{let o={url:n,init:r};for(const a of this.middleware)a.pre&&(o=await a.pre({fetch:this.fetchApi,...o})||o);let i;try{i=await(this.configuration.fetchApi||fetch)(o.url,o.init)}catch(a){for(const s of this.middleware)s.onError&&(i=await s.onError({fetch:this.fetchApi,url:o.url,init:o.init,error:a,response:i?i.clone():void 0})||i);if(i===void 0)throw a instanceof Error?new Lu(a,"The request failed and the interceptors did not return an alternative response"):a}for(const a of this.middleware)a.post&&(i=await a.post({fetch:this.fetchApi,url:o.url,init:o.init,response:i.clone()})||i);return i},this.middleware=t.middleware}}St.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function zu(e){return typeof Blob<"u"&&e instanceof Blob}function Du(e){return typeof FormData<"u"&&e instanceof FormData}class Tu extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class Lu extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class me extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}const go={csv:",",ssv:" ",tsv:" ",pipes:"|"};function z(e,t){const n=e[t];return n!=null}function sc(e,t=""){return Object.keys(e).map(n=>cc(n,e[n],t)).filter(n=>n.length>0).join("&")}function cc(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const o=t.map(i=>encodeURIComponent(String(i))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${o}`}if(t instanceof Set){const o=Array.from(t);return cc(e,o,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?sc(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}class ve{async value(){return this.transformer(await this.raw.json())}constructor(t,n=r=>r){this.raw=t,this.transformer=n}}class gr{async value(){}constructor(t){this.raw=t}}function Au(e){return Pu(e)}function Pu(e,t){return e==null?e:{limit:e.limit,offset:e.offset,total_count:e.total_count}}function Ue(e){return Ou(e)}function Ou(e,t){return e==null?e:{pagination:z(e,"pagination")?Au(e.pagination):void 0}}const Ie={Webauthn:"webauthn",EmailLink:"email_link",SmsLink:"sms_link",OtpViaSms:"otp_via_sms",OtpViaEmail:"otp_via_email",Totp:"totp",Oidc:"oidc",Saml:"saml",Api:"api",DirectId:"direct_id",Password:"password",Impersonate:"impersonate"};function Ae(e){return Mu(e)}function Mu(e,t){return e}function lc(e){return e}function Nu(e){if(e!==void 0)return e===null?null:{method:e.method}}function Ve(e){return Fu(e)}function Fu(e,t){return e==null?e:{httpcode:z(e,"httpcode")?e.httpcode:void 0,message:z(e,"message")?e.message:void 0}}function bo(e){return Uu(e)}function Uu(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0}}const $e={UiCustomization:"ui_customization",Proxy:"proxy",WebauthnCreate:"webauthn_create",WebauthnGet:"webauthn_get",Nonce:"nonce",Otp:"otp",Oidc:"oidc",Saml:"saml",PasswordSet:"password_set",PasswordVerify:"password_verify",PasswordReset:"password_reset",TotpRegister:"totp_register",TotpVerify:"totp_verify"};function Pe(e){return Vu(e)}function Vu(e,t){return e}function Bu(e){if(e!==void 0)return e===null?null:{challenge:e.challenge}}function ju(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:Bu(e.data)}}function Hu(e){if(e!==void 0)return e===null?null:{otp:e.otp}}function Gu(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:Hu(e.data)}}function Wu(e){if(e!==void 0)return e===null?null:{password:e.password}}function Ku(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:Wu(e.data)}}function Yu(e){if(e!==void 0)return e===null?null:{password:e.password}}function Zu(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:Yu(e.data)}}function Ju(e){if(e!==void 0)return e===null?null:{password:e.password}}function Xu(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:Ju(e.data)}}function Qu(e){if(e!==void 0)return e===null?null:{otp:e.otp}}function ef(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:Qu(e.data)}}function tf(e){if(e!==void 0)return e===null?null:{otp:e.otp}}function nf(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:tf(e.data)}}function rf(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:e.data}}function of(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,challenge_type:e.challenge_type,data:e.data}}function _o(e){if(e!==void 0){if(e===null)return null;switch(e.challenge_type){case"nonce":return ju(e);case"otp":return Gu(e);case"password_reset":return Ku(e);case"password_set":return Zu(e);case"password_verify":return Xu(e);case"totp_register":return ef(e);case"totp_verify":return nf(e);case"webauthn_create":return rf(e);case"webauthn_get":return of(e);default:throw new Error(`No variant of Attestation exists with 'challenge_type=${e.challenge_type}'`)}}}const Zt={EmailAddress:"email_address",PhoneNumber:"phone_number"};function af(e){return sf(e)}function sf(e,t){return e}function dc(e){return cf(e)}function cf(e,t){return e==null?e:{type:af(e.type),value:e.value}}function zr(e){if(e!==void 0)return e===null?null:{type:e.type,value:e.value}}function lf(e){return df(e)}function df(e,t){return e}function uf(e){return ff(e)}function ff(e,t){return e==null?e:{challenge:z(e,"challenge")?e.challenge:void 0}}function hf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:z(e,"options")?uf(e.options):void 0}}function pf(e){return mf(e)}function mf(e,t){return e==null?e:{auth_code_url:e.auth_code_url}}function gf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:pf(e.options)}}function bf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method)}}function _f(e){return vf(e)}function vf(e,t){return e}function wf(e){return yf(e)}function yf(e,t){return e}function xf(e){return Cf(e)}function Cf(e,t){return e==null?e:{name:lf(e.name),pattern:e.pattern,match_type:_f(e.match_type),pattern_qualifiers:z(e,"pattern_qualifiers")?e.pattern_qualifiers.map(wf):void 0}}function uc(e){return kf(e)}function kf(e,t){return e==null?e:{regular_expressions:z(e,"regular_expressions")?e.regular_expressions.map(xf):void 0}}function Ef(e){return Sf(e)}function Sf(e,t){return e==null?e:{validation_rules:uc(e.validation_rules)}}function $f(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:Ef(e.options)}}function If(e){return Rf(e)}function Rf(e,t){return e==null?e:{validation_rules:uc(e.validation_rules)}}function qf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:If(e.options)}}function zf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method)}}function Df(e){return Tf(e)}function Tf(e,t){return e==null?e:{challenge_id:z(e,"challenge_id")?e.challenge_id:void 0}}function Lf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:z(e,"options")?Df(e.options):void 0}}function Af(e){return Pf(e)}function Pf(e,t){return e==null?e:{start_authentication_url:e.start_authentication_url}}function Of(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:Af(e.options)}}function Mf(e){return Nf(e)}function Nf(e,t){return e==null?e:{key_uri:e.key_uri,qr_code_data_b64:e.qr_code_data_b64,recovery_codes:e.recovery_codes}}function Ff(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:z(e,"options")?Mf(e.options):void 0}}function Uf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method)}}function Vf(e){return Bf(e)}function Bf(e,t){return e==null?e:{authn_redirect_page_ui_config:z(e,"authn_redirect_page_ui_config")?e.authn_redirect_page_ui_config:void 0}}function jf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:z(e,"options")?Vf(e.options):void 0}}function Hf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:z(e,"options")?e.options:void 0}}function Gf(e,t){return e==null?e:{id:e.id,type:Pe(e.type),authentication_method:Ae(e.authentication_method),options:z(e,"options")?e.options:void 0}}function Wf(e){return Kf(e)}function Kf(e,t){if(e==null)return e;switch(e.type){case"nonce":return{...hf(e,!0),type:"nonce"};case"oidc":return{...gf(e,!0),type:"oidc"};case"otp":return{...bf(e,!0),type:"otp"};case"password_reset":return{...$f(e,!0),type:"password_reset"};case"password_set":return{...qf(e,!0),type:"password_set"};case"password_verify":return{...zf(e,!0),type:"password_verify"};case"proxy":return{...Lf(e,!0),type:"proxy"};case"saml":return{...Of(e,!0),type:"saml"};case"totp_register":return{...Ff(e,!0),type:"totp_register"};case"totp_verify":return{...Uf(e,!0),type:"totp_verify"};case"ui_customization":return{...jf(e,!0),type:"ui_customization"};case"webauthn_create":return{...Hf(e,!0),type:"webauthn_create"};case"webauthn_get":return{...Gf(e,!0),type:"webauthn_get"};default:throw new Error(`No variant of ChallengeListInner exists with 'type=${e.type}'`)}}function Yf(e){return Zf(e)}function Zf(e,t){return e}function Jf(e){if(e!==void 0)return e===null?null:{method:e.method}}function Xf(e){if(e!==void 0)return e===null?null:{method:e.method,redirect_target:e.redirect_target}}const Jt={AuthenticationSucceededV1:"AuthenticationSucceeded_v1",AuthenticationFailedV1:"AuthenticationFailed_v1",PersonCreatedV1:"PersonCreated_v1",PersonDeletedV1:"PersonDeleted_v1",VirtualPageLoadedV1:"VirtualPageLoaded_v1",SlashIdsdkLoadedV1:"SlashIDSDKLoaded_v1",PersonIdentifiedV1:"PersonIdentified_v1",PersonLoggedOutV1:"PersonLoggedOut_v1",TokenMintedV1:"TokenMinted_v1",PasswordChangedV1:"PasswordChanged_v1",GdprConsentsChangedV1:"GdprConsentsChanged_v1",GateServerStartedV1:"GateServerStarted_v1",GateRequestHandledV1:"GateRequestHandled_v1"};function Qf(e){if(e!==void 0)return e===null?null:{event_name:e.event_name,person_id:e.person_id,authenticated_methods:e.authenticated_methods===void 0?void 0:e.authenticated_methods.map(lc),failed_authn_method:e.failed_authn_method,failure_reason:e.failure_reason,failure_detail:e.failure_detail,handle:zr(e.handle),challenge_id:e.challenge_id}}function eh(e){if(e!==void 0)return e===null?null:{event_name:e.event_name,person_id:e.person_id,success_authn_method:e.success_authn_method,authenticated_methods:e.authenticated_methods.map(lc),handle:zr(e.handle)}}function th(e){if(e!==void 0)return e===null?null:{event_name:e.event_name,person_id:e.person_id}}function nh(e){if(e!==void 0)return e===null?null:{event_name:e.event_name,person_id:e.person_id}}function rh(e){if(e!==void 0)return e===null?null:{event_name:e.event_name}}function oh(e){if(e!==void 0)return e===null?null:{event_name:e.event_name,person_id:e.person_id}}function ih(e){if(e!==void 0){if(e===null)return null;switch(e.event_name){case"AuthenticationFailed_v1":return Qf(e);case"AuthenticationSucceeded_v1":return eh(e);case"PersonIdentified_v1":return th(e);case"PersonLoggedOut_v1":return nh(e);case"SlashIDSDKLoaded_v1":return rh(e);case"VirtualPageLoaded_v1":return oh(e);default:throw new Error(`No variant of EventPostRequestEventData exists with 'event_name=${e.event_name}'`)}}}function ba(e){if(e!==void 0)return e===null?null:{organization_id:e.organization_id,analytics_correlation_id:e.analytics_correlation_id,window_location:e.window_location,user_agent:e.user_agent,event_data:ih(e.event_data)}}function ah(e){return sh(e)}function sh(e,t){return e==null?e:{params:z(e,"params")?e.params:void 0,type:Yf(e.type),label:z(e,"label")?e.label:void 0,id:e.id,last_used:z(e,"last_used")?new Date(e.last_used):void 0}}function ch(e){if(e!==void 0)return e===null?null:{method:e.method}}const Sn={Popup:"popup",Redirect:"redirect"};function lh(e){if(e!==void 0)return e===null?null:{method:e.method,client_id:e.client_id,provider:e.provider,ux_mode:e.ux_mode,redirect_target:e.redirect_target,requires_groups:e.requires_groups,pkce_code_challenge:e.pkce_code_challenge,csrf_token:e.csrf_token}}function dh(e){if(e!==void 0)return e===null?null:{method:e.method}}function uh(e){if(e!==void 0)return e===null?null:{method:e.method}}function fh(e){if(e!==void 0)return e===null?null:{method:e.method}}const $n={Popup:"popup",Redirect:"redirect"};function hh(e){if(e!==void 0)return e===null?null:{method:e.method,provider_credentials_id:e.provider_credentials_id,ux_mode:e.ux_mode,redirect_target:e.redirect_target,pkce_code_challenge:e.pkce_code_challenge,csrf_token:e.csrf_token}}function ph(e){if(e!==void 0)return e===null?null:{method:e.method,redirect_target:e.redirect_target}}function mh(e){if(e!==void 0)return e===null?null:{method:e.method}}const gh={None:"none",Indirect:"indirect",Direct:"direct"};const _a={Any:"any",Platform:"platform",CrossPlatform:"cross_platform"};const bh={Discouraged:"discouraged",Preferred:"preferred",Required:"required"};const _h={Discouraged:"discouraged",Preferred:"preferred",Required:"required"};function vh(e){if(e!==void 0)return e===null?null:{method:e.method,scope:e.scope,available_credential_ids:e.available_credential_ids,attachment:e.attachment,user_verification:e.user_verification,resident_key:e.resident_key,attestation:e.attestation}}function wh(e){if(e!==void 0){if(e===null)return null;switch(e.method){case"api":return Nu(e);case"direct_id":return Jf(e);case"email_link":return Xf(e);case"impersonate":return ch(e);case"oidc":return lh(e);case"otp_via_email":return dh(e);case"otp_via_sms":return uh(e);case"password":return fh(e);case"saml":return hh(e);case"sms_link":return ph(e);case"totp":return mh(e);case"webauthn":return vh(e);default:throw new Error(`No variant of FactorOptions exists with 'method=${e.method}'`)}}}function yh(e){if(e!==void 0)return e===null?null:{method:e.method,options:wh(e.options)}}function xh(e){return Ch(e)}function Ch(e,t){return e}function kh(e){return e}function Eh(e){return Sh(e)}function Sh(e,t){return e==null?e:{consent_level:xh(e.consent_level),created_at:new Date(e.created_at)}}function va(e){if(e!==void 0)return e===null?null:{consent_levels:e.consent_levels.map(kh)}}function fc(e){return $h(e)}function $h(e,t){return e==null?e:{consents:e.consents.map(Eh)}}function Ih(e){return Rh(e)}function Rh(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?e.result:void 0}}function qh(e){return zh(e)}function zh(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?e.result:void 0}}function wa(e){return Dh(e)}function Dh(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?e.result:void 0}}function vo(e){return Th(e)}function Th(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?e.result:void 0}}function Lh(e){return Ah(e)}function Ah(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?fc(e.result):void 0}}function Ph(e){return Oh(e)}function Oh(e,t){return e==null?e:{id:e.id,org_name:e.org_name,tenant_name:e.tenant_name}}function Mh(e){return Nh(e)}function Nh(e,t){return e==null?e:{id:e.id,org_name:e.org_name,tenant_name:e.tenant_name,managed_organizations:z(e,"managed_organizations")?e.managed_organizations.map(Ph):void 0}}function Fh(e){return Uh(e)}function Uh(e,t){return e==null?e:{id:e.id,parent_id:z(e,"parent_id")?e.parent_id:void 0,name:z(e,"name")?e.name:void 0,tenant_name:z(e,"tenant_name")?e.tenant_name:void 0,children_ids:z(e,"children_ids")?e.children_ids:void 0,person_pool_orgs_ids:z(e,"person_pool_orgs_ids")?e.person_pool_orgs_ids:void 0,group_pool_orgs_ids:z(e,"group_pool_orgs_ids")?e.group_pool_orgs_ids:void 0,manager_org_id:z(e,"manager_org_id")?e.manager_org_id:void 0,person_in_manager_org:e.person_in_manager_org}}function Vh(e){return Bh(e)}function Bh(e,t){return e==null?e:{active:e.active,person_id:e.person_id,roles:z(e,"roles")?e.roles:void 0,region:e.region,handles:z(e,"handles")?e.handles.map(dc):void 0,groups:z(e,"groups")?e.groups:void 0,attributes:z(e,"attributes")?e.attributes:void 0}}function jh(e){return Hh(e)}function Hh(e,t){return e==null?e:{person:Vh(e.person),organizations:e.organizations.map(Mh),org_hierarchy:e.org_hierarchy.map(Fh),handles:e.handles.map(dc),credentials:e.credentials.map(ah)}}function Gh(e){return Wh(e)}function Wh(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:jh(e.result)}}function Kh(e){if(e!==void 0)return e===null?null:{handle:zr(e.handle),factor:yh(e.factor)}}function Yh(e){return Zh(e)}function Zh(e,t){return e==null?e:{token:z(e,"token")?e.token:void 0,redirect_uri:z(e,"redirect_uri")?e.redirect_uri:void 0}}function Jh(e){return Xh(e)}function Xh(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?Yh(e.result):void 0}}function Qh(e){return ep(e)}function ep(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?e.result:void 0}}function wo(e){return tp(e)}function tp(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?e.result.map(Wf):void 0}}function np(e){if(e!==void 0)return e===null?null:{challenge_id:e.challenge_id,code:e.code,pkce_code_verifier:e.pkce_code_verifier}}function rp(e){return op(e)}function op(e,t){return e==null?e:{valid:e.valid,invalidity_reason:z(e,"invalidity_reason")?e.invalidity_reason:void 0,expires_in_seconds:z(e,"expires_in_seconds")?e.expires_in_seconds:void 0,expires_at:z(e,"expires_at")?new Date(e.expires_at):void 0}}function ip(e){return ap(e)}function ap(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:z(e,"result")?rp(e.result):void 0}}function ya(e){return sp(e)}function sp(e,t){return e==null?e:{meta:z(e,"meta")?Ue(e.meta):void 0,errors:z(e,"errors")?e.errors.map(Ve):void 0,result:fc(e.result)}}function cp(e){if(e!==void 0)return e===null?null:{method:e.method}}function lp(e){if(e!==void 0)return e===null?null:{handle:zr(e.handle),factor:cp(e.factor)}}function dp(e){if(e!==void 0)return e===null?null:{token:e.token}}class xa extends St{async deleteAttributesBucketNameRaw(t,n){if(t.bucketName===null||t.bucketName===void 0)throw new me("bucketName","Required parameter requestParameters.bucketName was null or undefined when calling deleteAttributesBucketName.");const r={};t.attributes&&(r.attributes=t.attributes.join(go.csv));const o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attributes/{bucket_name}".replace("{bucket_name}",encodeURIComponent(String(t.bucketName))),method:"DELETE",headers:o,query:r},n);return new ve(i,a=>bo(a))}async deleteAttributesBucketName(t,n){return await(await this.deleteAttributesBucketNameRaw(t,n)).value()}async getAttributesRaw(t,n){const r={};t.buckets&&(r.buckets=t.buckets.join(go.csv));const o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attributes",method:"GET",headers:o,query:r},n);return new ve(i,a=>Ih(a))}async getAttributes(t={},n){return await(await this.getAttributesRaw(t,n)).value()}async getAttributesBucketNameRaw(t,n){if(t.bucketName===null||t.bucketName===void 0)throw new me("bucketName","Required parameter requestParameters.bucketName was null or undefined when calling getAttributesBucketName.");const r={};t.attributes&&(r.attributes=t.attributes.join(go.csv));const o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attributes/{bucket_name}".replace("{bucket_name}",encodeURIComponent(String(t.bucketName))),method:"GET",headers:o,query:r},n);return new ve(i,a=>qh(a))}async getAttributesBucketName(t,n){return await(await this.getAttributesBucketNameRaw(t,n)).value()}async putAttributesRaw(t,n){if(t.body===null||t.body===void 0)throw new me("body","Required parameter requestParameters.body was null or undefined when calling putAttributes.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attributes",method:"PUT",headers:o,query:r,body:t.body},n);return new ve(i,a=>bo(a))}async putAttributes(t,n){return await(await this.putAttributesRaw(t,n)).value()}async putAttributesBucketNameRaw(t,n){if(t.bucketName===null||t.bucketName===void 0)throw new me("bucketName","Required parameter requestParameters.bucketName was null or undefined when calling putAttributesBucketName.");if(t.body===null||t.body===void 0)throw new me("body","Required parameter requestParameters.body was null or undefined when calling putAttributesBucketName.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attributes/{bucket_name}".replace("{bucket_name}",encodeURIComponent(String(t.bucketName))),method:"PUT",headers:o,query:r,body:t.body},n);return new ve(i,a=>bo(a))}async putAttributesBucketName(t,n){return await(await this.putAttributesBucketNameRaw(t,n)).value()}}class Tt extends St{async getChallengeChallengeIdRaw(t,n){if(t.challengeId===null||t.challengeId===void 0)throw new me("challengeId","Required parameter requestParameters.challengeId was null or undefined when calling getChallengeChallengeId.");const r={},o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/challenge/{challenge_id}".replace("{challenge_id}",encodeURIComponent(String(t.challengeId))),method:"GET",headers:o,query:r},n);return new ve(i,a=>wa(a))}async getChallengeChallengeId(t,n){return await(await this.getChallengeChallengeIdRaw(t,n)).value()}async getChallengeChallengeIdV2Raw(t,n){if(t.challengeId===null||t.challengeId===void 0)throw new me("challengeId","Required parameter requestParameters.challengeId was null or undefined when calling getChallengeChallengeIdV2.");const r={},o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/challenge/{challenge_id}/v2".replace("{challenge_id}",encodeURIComponent(String(t.challengeId))),method:"GET",headers:o,query:r},n);return new ve(i,a=>vo(a))}async getChallengeChallengeIdV2(t,n){return await(await this.getChallengeChallengeIdV2Raw(t,n)).value()}async getChallengePackChallengePackIdRaw(t,n){if(t.challengePackId===null||t.challengePackId===void 0)throw new me("challengePackId","Required parameter requestParameters.challengePackId was null or undefined when calling getChallengePackChallengePackId.");const r={},o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/challenge_pack/{challenge_pack_id}".replace("{challenge_pack_id}",encodeURIComponent(String(t.challengePackId))),method:"GET",headers:o,query:r},n);return new ve(i,a=>wo(a))}async getChallengePackChallengePackId(t,n){return await(await this.getChallengePackChallengePackIdRaw(t,n)).value()}async getMeRaw(t){const n={},r={};if(this.configuration&&this.configuration.accessToken){const i=this.configuration.accessToken,a=await i("Bearer",[]);a&&(r.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/me",method:"GET",headers:r,query:n},t);return new ve(o,i=>Gh(i))}async getMe(t){return await(await this.getMeRaw(t)).value()}async getTokenRaw(t,n){if(t.slashIDOrgID===null||t.slashIDOrgID===void 0)throw new me("slashIDOrgID","Required parameter requestParameters.slashIDOrgID was null or undefined when calling getToken.");const r={},o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),t.slashIDOrgID!==void 0&&t.slashIDOrgID!==null&&(o["SlashID-OrgID"]=String(t.slashIDOrgID)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/token",method:"GET",headers:o,query:r},n);return new ve(i,a=>vo(a))}async getToken(t,n){return await(await this.getTokenRaw(t,n)).value()}async postAttestationRaw(t,n){if(t.attestation===null||t.attestation===void 0)throw new me("attestation","Required parameter requestParameters.attestation was null or undefined when calling postAttestation.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attestation",method:"POST",headers:o,query:r,body:_o(t.attestation)},n);return new ve(i,a=>wa(a))}async postAttestation(t,n){return await(await this.postAttestationRaw(t,n)).value()}async postAttestationV2Raw(t,n){if(t.attestation===null||t.attestation===void 0)throw new me("attestation","Required parameter requestParameters.attestation was null or undefined when calling postAttestationV2.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attestation/v2",method:"POST",headers:o,query:r,body:_o(t.attestation)},n);return new ve(i,a=>vo(a))}async postAttestationV2(t,n){return await(await this.postAttestationV2Raw(t,n)).value()}async postAttestationV3Raw(t,n){if(t.attestation===null||t.attestation===void 0)throw new me("attestation","Required parameter requestParameters.attestation was null or undefined when calling postAttestationV3.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/attestation/v3",method:"POST",headers:o,query:r,body:_o(t.attestation)},n);return new ve(i,a=>Jh(a))}async postAttestationV3(t,n){return await(await this.postAttestationV3Raw(t,n)).value()}async postDirectIdRaw(t,n){const r={},o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/direct-id",method:"POST",headers:o,query:r},n);return new ve(i,a=>Qh(a))}async postDirectId(t={},n){return await(await this.postDirectIdRaw(t,n)).value()}async postIdRaw(t,n){if(t.slashIDOrgID===null||t.slashIDOrgID===void 0)throw new me("slashIDOrgID","Required parameter requestParameters.slashIDOrgID was null or undefined when calling postId.");if(t.iDRequest===null||t.iDRequest===void 0)throw new me("iDRequest","Required parameter requestParameters.iDRequest was null or undefined when calling postId.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDOrgID!==void 0&&t.slashIDOrgID!==null&&(o["SlashID-OrgID"]=String(t.slashIDOrgID)),t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/id",method:"POST",headers:o,query:r,body:Kh(t.iDRequest)},n);return new ve(i,a=>wo(a))}async postId(t,n){return await(await this.postIdRaw(t,n)).value()}async postRecoverRaw(t,n){if(t.slashIDOrgID===null||t.slashIDOrgID===void 0)throw new me("slashIDOrgID","Required parameter requestParameters.slashIDOrgID was null or undefined when calling postRecover.");if(t.recoverRequest===null||t.recoverRequest===void 0)throw new me("recoverRequest","Required parameter requestParameters.recoverRequest was null or undefined when calling postRecover.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDOrgID!==void 0&&t.slashIDOrgID!==null&&(o["SlashID-OrgID"]=String(t.slashIDOrgID)),t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/recover",method:"POST",headers:o,query:r,body:lp(t.recoverRequest)},n);return new ve(i,a=>wo(a))}async postRecover(t,n){return await(await this.postRecoverRaw(t,n)).value()}async postSsoResolveRaw(t,n){if(t.slashIDOrgID===null||t.slashIDOrgID===void 0)throw new me("slashIDOrgID","Required parameter requestParameters.slashIDOrgID was null or undefined when calling postSsoResolve.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDOrgID!==void 0&&t.slashIDOrgID!==null&&(o["SlashID-OrgID"]=String(t.slashIDOrgID)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/sso/resolve",method:"POST",headers:o,query:r,body:np(t.postSsoResolveRequest)},n);return new gr(i)}async postSsoResolve(t,n){await this.postSsoResolveRaw(t,n)}}class up extends St{async postActionsSdkRaw(t,n){if(t.eventPostRequest===null||t.eventPostRequest===void 0)throw new me("eventPostRequest","Required parameter requestParameters.eventPostRequest was null or undefined when calling postActionsSdk.");const r={},o={};if(o["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/actions/sdk",method:"POST",headers:o,query:r,body:ba(t.eventPostRequest)},n);return new gr(i)}async postActionsSdk(t,n){await this.postActionsSdkRaw(t,n)}async postEventsRaw(t,n){if(t.eventPostRequest===null||t.eventPostRequest===void 0)throw new me("eventPostRequest","Required parameter requestParameters.eventPostRequest was null or undefined when calling postEvents.");const r={},o={};if(o["Content-Type"]="application/json",this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/events",method:"POST",headers:o,query:r,body:ba(t.eventPostRequest)},n);return new gr(i)}async postEvents(t,n){await this.postEventsRaw(t,n)}}class Ca extends St{async deleteConsentGdprRaw(t,n){const r={};t.consentLevels&&(r.consent_levels=t.consentLevels),t.deleteAll!==void 0&&(r.deleteAll=t.deleteAll);const o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/consent/gdpr",method:"DELETE",headers:o,query:r},n);return new gr(i)}async deleteConsentGdpr(t={},n){await this.deleteConsentGdprRaw(t,n)}async getConsentGdprRaw(t,n){const r={},o={};if(t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/consent/gdpr",method:"GET",headers:o,query:r},n);return new ve(i,a=>Lh(a))}async getConsentGdpr(t={},n){return await(await this.getConsentGdprRaw(t,n)).value()}async postConsentGdprRaw(t,n){if(t.gDPRConsentRequest===null||t.gDPRConsentRequest===void 0)throw new me("gDPRConsentRequest","Required parameter requestParameters.gDPRConsentRequest was null or undefined when calling postConsentGdpr.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/consent/gdpr",method:"POST",headers:o,query:r,body:va(t.gDPRConsentRequest)},n);return new ve(i,a=>ya(a))}async postConsentGdpr(t,n){return await(await this.postConsentGdprRaw(t,n)).value()}async putConsentGdprRaw(t,n){if(t.gDPRConsentRequest===null||t.gDPRConsentRequest===void 0)throw new me("gDPRConsentRequest","Required parameter requestParameters.gDPRConsentRequest was null or undefined when calling putConsentGdpr.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/consent/gdpr",method:"PUT",headers:o,query:r,body:va(t.gDPRConsentRequest)},n);return new ve(i,a=>ya(a))}async putConsentGdpr(t,n){return await(await this.putConsentGdprRaw(t,n)).value()}}class ka extends St{async postTokenValidateRaw(t,n){if(t.validateTokenReq===null||t.validateTokenReq===void 0)throw new me("validateTokenReq","Required parameter requestParameters.validateTokenReq was null or undefined when calling postTokenValidate.");const r={},o={};if(o["Content-Type"]="application/json",t.slashIDSdkVersion!==void 0&&t.slashIDSdkVersion!==null&&(o["SlashID-SdkVersion"]=String(t.slashIDSdkVersion)),this.configuration&&this.configuration.accessToken){const a=this.configuration.accessToken,s=await a("Bearer",[]);s&&(o.Authorization=`Bearer ${s}`)}const i=await this.request({path:"/token/validate",method:"POST",headers:o,query:r,body:dp(t.validateTokenReq)},n);return new ve(i,a=>ip(a))}async postTokenValidate(t,n){return await(await this.postTokenValidateRaw(t,n)).value()}}function fp(){const n=window.screenX+(window.innerWidth-400)/2;return`width=400,height=600,top=${window.screenY+(window.innerHeight-600)/2},left=${n},resizable,scrollbars=yes,status=1`}function hc(){const e=fp(),t=window.open(window.location.href,"/id:popup",e);if(!t)throw new Error("SlashId: Popup blocked, please consider redirect instead");const n='<div style="position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);">You will be redirected in a moment...</div>';try{var r;t==null||(r=t.document)===null||r===void 0||r.write(n)}catch(i){console.error(i),t.document&&t.document.body&&(t.document.body.innerHTML=n)}finally{t.blur()}return[t,i=>(t&&(t.location=i,t.focus()),t)]}function hp(e,t){return e.origin+e.pathname===t.origin+t.pathname}function pc(e){let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"}var Zn,pp=new Uint8Array(16);function mp(){if(!Zn&&(Zn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Zn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zn(pp)}var gp=/^(?:[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;function bp(e){return typeof e=="string"&&gp.test(e)}var _p=bp,Ce=[];for(var yo=0;yo<256;++yo)Ce.push((yo+256).toString(16).substr(1));function vp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ce[e[t+0]]+Ce[e[t+1]]+Ce[e[t+2]]+Ce[e[t+3]]+"-"+Ce[e[t+4]]+Ce[e[t+5]]+"-"+Ce[e[t+6]]+Ce[e[t+7]]+"-"+Ce[e[t+8]]+Ce[e[t+9]]+"-"+Ce[e[t+10]]+Ce[e[t+11]]+Ce[e[t+12]]+Ce[e[t+13]]+Ce[e[t+14]]+Ce[e[t+15]]).toLowerCase();if(!_p(n))throw TypeError("Stringified UUID is invalid");return n}var wp=vp;function yp(e,t,n){e=e||{};var r=e.random||(e.rng||mp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return wp(r)}var Xt=yp;function Wt(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),n=atob(t);return Uint8Array.from(n,r=>r.charCodeAt(0))}function rt(e,t=!0){const n=String.fromCharCode(...e),r=btoa(n);return t?r.replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,""):r}const xp="challenges",Cp="sidcp",Bo="@SLASHID/CSRF_TOKEN",jo="@SLASHID/PKCE_CODE_VERIFIER";var br;(function(e){e[e.StorageGetItem=0]="StorageGetItem",e[e.StorageSetItem=1]="StorageSetItem",e[e.Ping=2]="Ping",e[e.ChallengeWebauthnCreate=3]="ChallengeWebauthnCreate",e[e.ChallengeWebauthnGet=4]="ChallengeWebauthnGet",e[e.SSOChallenge=5]="SSOChallenge"})(br||(br={}));class kp{constructor(){this.id=Mn(),this.type=2}}class Ea{constructor(t,n){this.id=t,this.error=n}}class Ep{constructor(t,n){this.type=3,this.id=Mn(),this.slashIDOptions=t,this.challenge=n}}class Sa{constructor(t,n,r){this.id=t,this.attestation=n,this.error=r}}class Sp{constructor(t,n){this.type=4,this.id=Mn(),this.slashIDOptions=t,this.challenge=n}}class $a{constructor(t,n,r){this.id=t,this.attestation=n,this.error=r}}class $p{constructor(t){this.type=0,this.id=Mn(),this.key=t}}class Ia{constructor(t,n,r){this.id=t,this.value=n,this.error=r}}class Ip{constructor(t,n){this.id=Mn(),this.type=1,this.key=t,this.value=n}}class Ra{constructor(t,n){this.id=t,this.error=n}}function Mn(){const e=new Uint32Array(1);return window.crypto.getRandomValues(e),e[0]}function qa(e){const t=new URLSearchParams(e),n=t.get("sso_challenge_id"),r=t.get("sso_code"),o=t.get("csrf_token");return!n||!r||!o?null:{ssoChallengeID:n,ssoCode:r,csrfToken:o}}function Rp(e){return e.type===3}function qp(e){return e.type===4}function zp(e){return e&&e.type===5}function Dp(e){return e.type===2}function Tp(e){return typeof e=="object"&&!!e.baseURL&&!!e.sdkURL}const Lp=["http:","https:"];function mc(e){if(!e)throw new TypeError("options cannot be null");if(e.environment){if(typeof e.environment=="string"&&e.environment!=="production"&&e.environment!=="sandbox")throw new TypeError("If 'environment' is set as a string, it must be either 'production' or 'sandbox'");if(typeof e.environment=="object"){if(typeof e.environment.baseURL!="string")throw new TypeError("'environment.baseURL' must be a string");if(typeof e.environment.sdkURL!="string")throw new TypeError("'environment.sdkURL' must be a string")}}if(e.environment&&(e.baseURL||e.sdkURL))throw new TypeError("If 'environment' is set, 'baseURL' and 'sdkURL' cannot be set at the same time. Use a custom environment instead.");if(e.baseURL){if(typeof e.baseURL!="string")throw new TypeError("'baseURL' must be a string");let r;try{r=new URL(e.baseURL)}catch{throw new TypeError("'baseURL' must be a valid URL")}if(Lp.indexOf(r.protocol)===-1)throw new TypeError("'baseURL' must be either an http or https URL")}if(e.sdkURL){if(typeof e.sdkURL!="string")throw new TypeError("'sdkURL' must be a string");try{new URL(e.sdkURL)}catch{throw new TypeError("'sdkURL' must be a valid URL")}}const{analyticsEnabled:t=!0,oid:n}=e;if(t&&!n)throw new Error("Analytics require the 'oid' parameter to be set when instantiating SlashID()")}function Ap(e){return e.environment?Pp(e.environment):{baseURL:e.baseURL||Ho.production.baseURL,sdkURL:e.sdkURL||Ho.production.sdkURL}}const Ho={production:{baseURL:"https://api.slashid.com",sdkURL:"https://cdn.slashid.com/sdk.html"},sandbox:{baseURL:"https://api.sandbox.slashid.com",sdkURL:"https://cdn.sandbox.slashid.com/sdk.html"}};function Pp(e){if(typeof e=="string")return Ho[e];if(Tp(e))return{baseURL:e.baseURL,sdkURL:e.sdkURL};throw new TypeError("'environment' must be either a string or an object")}function Dr(e){const t=Ap(e);var n;return{oid:e.oid,analyticsEnabled:(n=e.analyticsEnabled)!==null&&n!==void 0?n:!0,...t}}class gc{constructor(t){this.getOTP=t?.getOTP}}async function bc(){const e=Xt(),t=Xt()+Xt(),n=new TextEncoder().encode(t),r=await window.crypto.subtle.digest("SHA-256",n),o=rt(new Uint8Array(r));return window.localStorage.setItem(Bo,e),window.localStorage.setItem(jo,t),{csrf_token:e,pkce_code_challenge:o}}async function Op(e){if(e.method!=="oidc")throw new Error(`Can't create OIDC extras for method: ${e.method}`);let t={};const{client_id:n,provider:r}=e.options;let{ux_mode:o,redirect_target:i}=e.options;if(o||(o=Sn.Popup),i||(i=window.location.href),o===Sn.Redirect&&!pc(i))throw new Error(`If OIDC ux_mode was set to "redirect" a "redirect_target" is required, got ${i}`);if(o===Sn.Popup){const[c,l]=hc();t={...t,popup:c,setPopupUrl:l}}const{csrf_token:a,pkce_code_challenge:s}=await bc();return{...e,options:{...e.options,client_id:n,provider:r,ux_mode:o,redirect_target:i,csrf_token:a,pkce_code_challenge:s},extras:t}}async function Mp(e){if(e.method!=="saml")throw new Error(`Can't create SAML extras for method: ${e.method}`);let t={},{ux_mode:n,redirect_target:r}=e.options;if(n||(n=$n.Popup),r||(r=window.location.href),n===$n.Redirect&&!pc(r))throw new Error(`If SAML ux_mode was set to "redirect" a "redirect_target" is required, got ${r}`);if(n===$n.Popup){const[a,s]=hc();t={...t,popup:a,setPopupUrl:s}}const{csrf_token:o,pkce_code_challenge:i}=await bc();return{...e,options:{...e.options,ux_mode:n,redirect_target:r,csrf_token:o,pkce_code_challenge:i},extras:t}}function Go(e){this.message=e}Go.prototype=new Error,Go.prototype.name="InvalidCharacterError";var za=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Go("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)&&(a+=String.fromCharCode(255&n>>(-2*o&6))))r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Np(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(za(n).replace(/(.)/g,function(r,o){var i=o.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}(t)}catch{return za(t)}}function _r(e){this.message=e}function Fp(e,t){if(typeof e!="string")throw new _r("Invalid token specified");var n=(t=t||{}).header===!0?0:1;try{return JSON.parse(Np(e.split(".")[n]))}catch(r){throw new _r("Invalid token specified: "+r.message)}}_r.prototype=new Error,_r.prototype.name="InvalidTokenError";var xo=Fp;const Up={end_user_read_write:"end_user_read_write",end_user_read_only:"end_user_read_only",end_user_no_access:"end_user_no_access","person_pool-end_user_read_write":"person_pool-end_user_read_write","person_pool-end_user_read_only":"person_pool-end_user_read_only","person_pool-end_user_no_access":"person_pool-end_user_no_access"};class Vp{async get(t){const n=await this.user.getAttributesClient().getAttributesBucketName({bucketName:this.bucketName,attributes:t,slashIDSdkVersion:ke.raw},{cache:"no-cache"}),r=n.errors;if(r)throw r;return n.result}async set(t){const r=(await this.user.getAttributesClient().putAttributesBucketName({bucketName:this.bucketName,body:t,slashIDSdkVersion:ke.raw},{cache:"no-cache"})).errors;if(r)throw r}async delete(t){const r=(await this.user.getAttributesClient().deleteAttributesBucketName({bucketName:this.bucketName,slashIDSdkVersion:ke.raw,attributes:t},{cache:"no-cache"})).errors;if(r)throw r}constructor({user:t,bucketName:n}){this.user=t,this.bucketName=n}}function Bp(e){return e?typeof e.user_token=="string":!1}class yi{initialize(t,n){try{t=JSON.parse(t)}catch{}if(typeof t!="string")throw new TypeError("token must be a string");try{const o=xo(t);Bp(o)?(this._token=o.user_token,this._tokenContainer=t):this._token=t}catch(o){throw new TypeError(o.toString())}this._clientOptions=Dr(n??{});const r=new dt({...ut,...n?.baseURL&&{basePath:n.baseURL},accessToken:this._token});this._apiClient=new Tt(r),this._attrsClient=new xa(r),this._tokenClient=new ka(r),this._personConsentsApi=new Ca(r)}updateToken(t){this.initialize(t,this._clientOptions)}get decoded(){if(!this._token)throw new Error("Cannot call methods on unauthenticated user");try{return xo(this._token)}catch(t){throw new TypeError(t.toString())}}get tokenClaims(){return this.decoded}get decodedTokenContainer(){if(this._tokenContainer)try{return xo(this._tokenContainer)}catch(t){throw new TypeError(t.toString())}}get tokenContainerClaims(){return this.decodedTokenContainer}updateClient(t){var n;this._token=t;const r=new dt({...ut,...((n=this._clientOptions)===null||n===void 0?void 0:n.baseURL)&&{basePath:this._clientOptions.baseURL},accessToken:t});this._apiClient=new Tt(r),this._attrsClient=new xa(r),this._tokenClient=new ka(r),this._personConsentsApi=new Ca(r)}get ID(){return this.decoded.person_id}get token(){var t;return(t=this._token)!==null&&t!==void 0?t:""}get tokenContainer(){return this._tokenContainer||""}get oid(){return this.decoded.oid}get firstLogin(){return this.decoded.first_token}get authentication(){return this.decoded.authenticated_methods||[]}get authentications(){return this.decoded.authentications||[]}async createDirectID(){const{result:t}=await this._apiClient.postDirectId({slashIDSdkVersion:ke.raw});return t}async logout(){this.updateClient(void 0),this._tokenContainer=void 0}async validateToken(){var t;const n=await((t=this._tokenClient)===null||t===void 0?void 0:t.postTokenValidate({validateTokenReq:{token:this.token},slashIDSdkVersion:ke.raw},{cache:"no-cache"})),r=n.errors;if(r)throw r;return n.result}getGroups(){const t=this.decoded.groups_claim_name||"groups";return this.decoded[t]}getAttributesClient(){return this._attrsClient}getBucket(t=Up.end_user_read_write){return new Vp({user:this,bucketName:t})}async get(t){return this.getBucket().get(t)}async set(t){return this.getBucket().set(t)}async delete(t){return this.getBucket().delete(t)}async getGDPRConsent(){const t=await this._personConsentsApi.getConsentGdpr({slashIDSdkVersion:ke.raw}),n=t.errors;if(n)throw n;return t.result}async setGDPRConsent({consentLevels:t}){const n=await this._personConsentsApi.putConsentGdpr({gDPRConsentRequest:{consent_levels:t},slashIDSdkVersion:ke.raw}),r=n.errors;if(r)throw r;return n.result}async addGDPRConsent({consentLevels:t}){const n=await this._personConsentsApi.postConsentGdpr({gDPRConsentRequest:{consent_levels:t},slashIDSdkVersion:ke.raw}),r=n.errors;if(r)throw r;return n.result}async removeGDPRConsent({consentLevels:t}){return this._personConsentsApi.deleteConsentGdpr({slashIDSdkVersion:ke.raw,consentLevels:t})}async removeGDPRConsentAll(){return this._personConsentsApi.deleteConsentGdpr({slashIDSdkVersion:ke.raw,deleteAll:!0})}async getOrganizations(){const t=await this._apiClient.getMe(),n=t.errors;if(n)throw n;return t.result.organizations}async getHandles(){const{errors:t,result:n}=await this._apiClient.getMe();if(t)throw t;return n.handles}async getTokenForOrganization(t){const n=await this._apiClient.getToken({slashIDOrgID:t,slashIDSdkVersion:ke.raw}),r=n.errors;if(r)throw r;return n.result}toString(){var t,n;return(n=(t=this._tokenContainer)!==null&&t!==void 0?t:this._token)!==null&&n!==void 0?n:""}toJSON(){var t,n;return`${(n=(t=this._tokenContainer)!==null&&t!==void 0?t:this._token)!==null&&n!==void 0?n:""}`}constructor(t,n){this.initialize(t,n)}}var pe={};ge(pe,"InvalidAuthenticationMethodError",function(){return zt});ge(pe,"isResponseError",function(){return Nt});ge(pe,"isSlashIDError",function(){return Nn});ge(pe,"RESPONSE_HEADERS",function(){return _c});ge(pe,"serialiseResponseError",function(){return vc});ge(pe,"isRateLimitError",function(){return Ci});ge(pe,"isTimeoutError",function(){return wc});ge(pe,"isBadPasskeyScopeError",function(){return yc});ge(pe,"isPasskeyPromptError",function(){return xc});ge(pe,"isThrownResponse",function(){return vr});ge(pe,"isTimeoutInPayload",function(){return Cc});ge(pe,"isRateLimitInPayload",function(){return kc});ge(pe,"isOIDCPopupBlockedError",function(){return Ec});ge(pe,"isNetworkError",function(){return Sc});ge(pe,"RateLimitError",function(){return Rn});ge(pe,"clientGeneratedErrorSlugs",function(){return $c});ge(pe,"isClientGeneratedErrorSlug",function(){return jp});ge(pe,"SlashIDError",function(){return Dt});ge(pe,"toSlashIDError",function(){return Ic});ge(pe,"ensureError",function(){return Hp});ge(pe,"getErrorMessage",function(){return ki});ge(pe,"createEventFromError",function(){return Rc});class zt extends Error{constructor(t,n){super(`Authentication method '${t}': ${n}`)}}const Tr=async e=>{var t,n,r,o,i,a,s;if(Nt(e))return(s=(n=(await e.response.clone().json()).errors)===null||n===void 0||(t=n[0])===null||t===void 0?void 0:t.message)!==null&&s!==void 0?s:e.message;var c;return Nn(e)?(c=(a=e.context.response)===null||a===void 0||(i=a.body)===null||i===void 0||(o=i.errors)===null||o===void 0||(r=o[0])===null||r===void 0?void 0:r.message)!==null&&c!==void 0?c:e.message:e instanceof Error?e.message:""},xi=e=>{var t,n;return Nt(e)?e.response.status:Nn(e)?(t=e.context.response)===null||t===void 0?void 0:t.status:(n=e.response)===null||n===void 0?void 0:n.status};function Nt(e){return e.name==="ResponseError"&&e.response instanceof Response}const _c={SlashIDCorrelationID:"slashid-correlation-id"},vc=async e=>({status:e.response.status,statusText:e.response.statusText,url:e.response.url,type:e.response.type,ok:e.response.ok,redirected:e.response.redirected,headers:Object.fromEntries(e.response.headers),body:JSON.stringify(await e.response.clone().json(),null,2)});function Ci(e){return xi(e)===429}async function wc(e){const t=xi(e),n=await Tr(e);return(t===401||t===403)&&n==="authentication has expired"}async function yc(e){const t=/selected scope '(.*?)' is not equal to or a registrable domain suffix of origin '(.*?)'/,n=xi(e),r=await Tr(e);return n===400&&t.test(r)}async function xc(e){const t=/The operation either timed out or was not allowed. See: https:\/\/www.w3.org\/TR\/webauthn-2\/#sctn-privacy-considerations-client./,n=/This request has been cancelled by the user./,r=/The operation was aborted./,o=/Operation failed./,i=/The WebAuthn API is not available in the current environment/,a=/An unknown error occurred while talking to the credential manager./,s=await Tr(e);return e instanceof Error&&(t.test(s)||n.test(s)||r.test(s)||o.test(s)||i.test(s)||a.test(s))}function vr(e){return typeof e=="object"&&Array.isArray(e.errors)&&e.errors.every(t=>typeof t.httpcode=="number"&&typeof t.message=="string")}function Cc(e){return e.errors.some(t=>t.message==="authentication has expired")}function kc(e){return e.errors.some(t=>t.httpcode===429)}async function Ec(e){const t=/Popup blocked, please consider redirect instead/,n=await Tr(e);return e instanceof DOMException&&t.test(n)}function Sc(e,t){return e instanceof TypeError&&!t}class Rn extends Error{static async fromResponseError(t){const r=(await t.response.clone().json()).errors.find(o=>o.httpcode===429);return r?new Rn(t,r.message):new Rn(t)}constructor(t,n){super(n||"Too many requests!"),this.name="RateLimitError",this.response=t.response}}const $c=["incorrect_otp_code_via_email","incorrect_otp_code_via_sms","incorrect_otp_code","invalid_password","incorrect_password","recovery_failed","passkey_bad_scope","passkey_prompt_failed","oidc_popup_blocked","rate_limit_exceeded","timeout","client_side_error","unspecified"],jp=e=>$c.includes(e);class Dt extends Error{static fromError(t,n){return new Dt({name:t.name,message:t.message,context:n,cause:t})}constructor({name:t="SlashIDError",message:n="An error occured in @slashid/slashid",context:r={},cause:o}){super(n,{cause:o}),this.name=t,this.context=r}}function Nn(e){return e instanceof Dt}async function Ic(e){if(e instanceof Error){if(Nt(e)){const r=await vc(e);return Dt.fromError(e,{response:r,correlationId:r.headers[_c.SlashIDCorrelationID]})}return Dt.fromError(e)}let t="[Unable to stringify the thrown value]";try{t=JSON.stringify(e)}catch{}const n=new Error(`Non-Error thrown: ${t}`);return Dt.fromError(n)}function Hp(e){if(e instanceof Error)return e;let t="[Unable to stringify the thrown value]";try{t=JSON.stringify(e)}catch{}return new Error(`Non-Error thrown: ${t}`)}async function ki(e){return(Nn(e)?e:await Ic(e)).message}async function Rc(e,{authenticationFactor:t,handle:n,previousToken:r,challengeId:o}){const i=await(async()=>{if(await xc(e))return"passkey_prompt_failed";if(await Ec(e))return"oidc_popup_blocked";if(!Nn(e)&&!Nt(e)&&!vr(e))return null;if(Ci(e))return"rate_limit_exceeded";if(await wc(e))return"timeout";if(await yc(e))return"passkey_bad_scope";if(vr(e)){if(Cc(e))return"timeout";if(kc(e))return"rate_limit_exceeded"}return"unspecified"})();return{authenticationFactor:t,handle:n,errorText:i||"client_side_error",previousToken:r,challengeId:o,failureDetail:await ki(e)}}function Qt(e){return new Promise(t=>setTimeout(t,e))}async function Da(){const e=document.hasFocus();for(;!e&&!document.hasFocus();)await Qt(50);return e}const Ta={PopupBlocked:"Popup blocked",BadOAuthURL:"Bad OAuth sign in URL"},La={PopupBlocked:"Popup blocked",BadAuthURL:"Bad authentication URL"};function Gp(e){return e.errorText==="client_side_error"}const Wp=["otpSmsSent","otpCodeSent","otpIncorrectCodeSubmitted","passwordSetReady","passwordResetReady","passwordVerifyReady","invalidPasswordSubmitted","incorrectPasswordSubmitted","oauthFlowStarted","oauthFlowFailed","userAuthenticatedFromURL","idFlowSucceeded","idFlowStarted","idFlowFailed","recoveryFlowStarted","recoveryFlowSucceeded","recoveryFlowFailed","webAuthnChallengeProcessed","redirectUriDiscovered","uiCustomizationReceived"],Kp=["otpCodeSubmitted","passwordSubmitted"],Yp=["clientSideError"];function Aa(e){return Wp.includes(e)}function Zp(e){return Kp.includes(e)}function Co(e){return Yp.includes(e)}function Jp(){const e=new Map;function t(r){function o(i){r(i.payload)}return e.set(r,o),o}function n(r){if(e.has(r))return e.get(r)}return{decorate:t,getDecorator:n}}async function Wo(e){return new Promise(async(n,r)=>{const o=new kp;let i=!1;const a=s=>{const c=s.data;c.id===o.id&&(window.removeEventListener("message",a),c.error?r(c.error):(i=!0,n(e)))};for(window.addEventListener("message",a);!i;)e.postMessage(o,"*"),await Qt(50)})}class Xp{async getRemoteWindow(){var t;const n=(t=this.remote)===null||t===void 0?void 0:t.contentWindow;if(!n)throw new Error("this context has no remote");return this.remoteReady||(await Wo(n),this.remoteReady=!0),n}async processEvent(t){let n=null;if(window.parent&&t.source===window.parent&&(n=window.parent),!!n)switch(t.data.type){case br.StorageGetItem:{const r=t.data;try{const o=await this.localGetItem(r.key);n.postMessage(new Ia(t.data.id,o),"*")}catch(o){n.postMessage(new Ia(t.data.id,null,o),"*")}}break;case br.StorageSetItem:{const r=t.data;try{await this.localSetItem(r.key,r.value),n.postMessage(new Ra(t.data.id),"*")}catch(o){n.postMessage(new Ra(t.data.id,o),"*")}}break}}async localGetItem(t){return window.localStorage.getItem(t)}async remoteGetItem(t){let n=null;return this.remote&&(n=await new Promise((r,o)=>{const i=new $p(t),a=s=>{const c=s.data;c.id===i.id&&(window.removeEventListener("message",a),c.error?o(c.error):r(c.value))};window.addEventListener("message",a),this.getRemoteWindow().then(s=>{s.postMessage(i,"*")})})),n}async localSetItem(t,n){return window.localStorage.setItem(t,n)}async remoteSetItem(t,n){this.remote&&await new Promise((r,o)=>{const i=new Ip(t,n),a=s=>{const c=s.data;c.id===i.id&&(window.removeEventListener("message",a),c.error?o(c.error):r())};window.addEventListener("message",a),this.getRemoteWindow().then(s=>{s.postMessage(i,"*")})})}constructor(t,n){this.remoteReady=!1,this.remote=t,this.remoteOrigin=n,this.remote||window.addEventListener("message",this.processEvent.bind(this))}}class qc{constructor(t){this.store=t}}class Ze extends qc{stringify(t){return JSON.stringify(t)}parse(t){return t?JSON.parse(t):[]}async getAll(){const t=this.parse(await this.store.localGetItem(Ze.LOCAL_STORAGE_IDENTIFIERS_KEY)),n=this.parse(await this.store.remoteGetItem(Ze.LOCAL_STORAGE_IDENTIFIERS_KEY));return Ze.merge(t,n)}async add(t){const n=await this.getAll(),r=this.stringify(Ze.merge(n,[t]));await this.store.localSetItem(Ze.LOCAL_STORAGE_IDENTIFIERS_KEY,r),await this.store.remoteSetItem(Ze.LOCAL_STORAGE_IDENTIFIERS_KEY,r)}static identifiersEqual(t,n){return t.type===n.type&&t.value===n.value}static merge(t,n){return t.concat(...n).reduce((r,o)=>{for(const i of r)if(Ze.identifiersEqual(i,o))return r;return r.push(o),r},[])}}Ze.LOCAL_STORAGE_IDENTIFIERS_KEY="SLASHID_IDENTIFIERS";class Lr extends qc{static identifiersEqual(t,n){return t===n}static merge(t,n){return t.concat(...n).reduce((r,o)=>{for(const i of r)if(Lr.identifiersEqual(i,o))return r;return r.push(o),r},[])}}class at extends Lr{stringify(t){return JSON.stringify(t)}parse(t){if(!t)return[];let n=null;try{n=JSON.parse(t)}catch{return[t]}return Array.isArray(n)?n.filter(o=>typeof o=="string"):[]}async getAll(){const t=this.parse(await this.store.localGetItem(at.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY)),n=this.parse(await this.store.remoteGetItem(at.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY));return at.merge(t,n)}async add(t){const n=await this.getAll(),r=this.stringify(at.merge(n,[t]));await this.store.localSetItem(at.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY,r),await this.store.remoteSetItem(at.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY,r)}}at.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY="SLASHID_WEBAUTHN_CREDENTIAL_ID";class qn extends Lr{stringify(t){return JSON.stringify(t)}parse(t){if(!t)return{};let n=null;try{n=JSON.parse(t)}catch{return{}}if(typeof n!="object")return{};const r={};for(const o of Object.keys(n)){if(typeof o!="string"||!Array.isArray(n[o]))continue;const i=n[o].filter(a=>typeof a=="string");r[o]=i}return r}async getAll(){return this.parse(await this.store.localGetItem(qn.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY_V2))}async get(t){return!this.store.remoteOrigin||this.store.remoteOrigin.endsWith(t)?this.v1Storage.getAll():(await this.getAll())[t]||[]}async add(t,n){if(!this.store.remoteOrigin||this.store.remoteOrigin.endsWith(t)){this.v1Storage.add(n);return}const r=await this.getAll(),o=r[t]||[];for(const a of o)if(a===n){console.warn(`Attempted to add already present credential ID: scope=${t} credId=${n}`);return}o.push(n),r[t]=o;const i=this.stringify(r);await this.store.localSetItem(qn.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY_V2,i)}constructor(t){super(t),this.v1Storage=new at(t)}}qn.LOCAL_STORAGE_WEBAUTHN_CREDENTIAL_ID_KEY_V2="SLASHID_WEBAUTHN_CREDENTIAL_ID_V2";class Qp extends yi{async mfa(t,n){let r;if(!t)throw new Error("at least one of PersonHandle or Factor is required");t.type&&t.value&&(r=t),t.method&&(n=t);const o=await this._slashid._id(this.decoded.oid,r,n,this._token);this.updateToken(o.toString())}constructor(t,n){super(t,n),this._slashid=n instanceof wr?n:new wr(n)}}const e1=/firefox|fxios|deno/i,t1=(e,t)=>({sendEvent:async n=>{try{await e(`${t.baseURL}/actions/sdk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}catch(r){console.error("@slashid/slashid-sdk: failed to send event",{error:r,event:n})}}}),n1=(e,t)=>({sendEvent:async n=>{const r=e1.test(navigator.userAgent);try{await e(`${t.baseURL}/actions/sdk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!r})}catch(o){console.error("@slashid/slashid-sdk: failed to send event",{error:o,event:n})}}});class r1{createCorrelationID(){return Xt()}createEventMetadata({location:t,userAgent:n}={location:"/",userAgent:""}){var r,o,i;return{organization_id:(i=(o=this.config.oid)!==null&&o!==void 0?o:(r=this.user)===null||r===void 0?void 0:r.oid)!==null&&i!==void 0?i:"",analytics_correlation_id:this.correlationId,window_location:t,user_agent:n}}sendEvent(t){this.transport.sendEvent(t)}trackPersonIdentified({user:t}){const n={event_name:Jt.PersonIdentifiedV1,person_id:t.ID},r={...this.createEventMetadata(),event_data:n};this.sendEvent(r)}trackPersonLoggedOut(t){const n=new yi(t.token,this.config),r={event_name:Jt.PersonLoggedOutV1,person_id:n.ID},o={...this.createEventMetadata(),event_data:r};this.sendEvent(o)}identify(t){this.user=t,this.trackPersonIdentified({user:t})}logout(){const t=this.user;t&&(this.trackPersonLoggedOut({token:t.token}),this.user=void 0)}trackVirtualPageView(t){const{url:n=""}=t,r={event_name:Jt.VirtualPageLoadedV1};var o;const i={...this.createEventMetadata({location:n,userAgent:(o=t.userAgent)!==null&&o!==void 0?o:""}),event_data:r};this.sendEvent(i)}constructor({options:t,user:n,transport:r}){t&&mc(t),this.config=Dr(t??{}),this.transport=r??t1(fetch,this.config),this.eventsAPI=new up(new dt({...ut,basePath:this.config.baseURL})),this.user=n,this.correlationId=this.createCorrelationID()}}class o1 extends r1{createCorrelationID(){const t="@slashid/EVENTS_CORRELATION_ID";try{const r=sessionStorage.getItem(t);if(r)return r}catch{}const n=Xt();try{sessionStorage.setItem(t,n)}catch{}return n}createEventMetadata({location:t,userAgent:n}={location:window.location.href,userAgent:navigator.userAgent}){return super.createEventMetadata({location:t,userAgent:n})}subscribeToDomainEvents(){this.sdk.subscribe("idFlowSucceeded",n=>this.trackAuthenticationSuccess(n)),this.sdk.subscribe("idFlowFailed",n=>this.trackAuthenticationFailure(n)),this.sdk.subscribe("invalidPasswordSubmitted",n=>this.trackAuthenticationFailure({...n,errorText:"invalid_password"})),this.sdk.subscribe("incorrectPasswordSubmitted",n=>this.trackAuthenticationFailure({...n,errorText:"incorrect_password"})),this.sdk.subscribe("otpIncorrectCodeSubmitted",n=>{var r;const o=(()=>{var i,a;return((i=n.factor)===null||i===void 0?void 0:i.method)==="otp_via_email"?"incorrect_otp_code_via_email":((a=n.factor)===null||a===void 0?void 0:a.method)==="otp_via_sms"?"incorrect_otp_code_via_sms":"incorrect_otp_code"})();this.trackAuthenticationFailure({errorText:o,authenticationFactor:{method:(r=n.factor)===null||r===void 0?void 0:r.method},challengeId:n.challengeId})}),Ei(this.sdk).subscribe("clientSideError",n=>{this.trackAuthenticationFailure({...n,errorText:"client_side_error"})})}trackAuthenticationSuccess(t){var n;const r=this.sdk.getUser(t.token);this.identify(r);const o={event_name:Jt.AuthenticationSucceededV1,person_id:r.ID,success_authn_method:(n=t.authenticationFactor)===null||n===void 0?void 0:n.method,authenticated_methods:r.authentication,...t.handle&&{handle:t.handle}},i={...this.createEventMetadata(),event_data:o};this.sendEvent(i)}trackAuthenticationFailure(t){var n;const r=t.previousToken?this.sdk.getUser(t.previousToken):void 0,o={event_name:Jt.AuthenticationFailedV1,failed_authn_method:(n=t.authenticationFactor)===null||n===void 0?void 0:n.method,authenticated_methods:r?.authentication,failure_reason:t.errorText,...t.handle&&{handle:t.handle},...t.challengeId&&{challenge_id:t.challengeId},...t.failureDetail&&{failure_detail:t.failureDetail}},i={...this.createEventMetadata(),event_data:o};this.sendEvent(i)}trackSdkLoaded(){const t={...this.createEventMetadata(),event_data:{event_name:Jt.SlashIdsdkLoadedV1}};this.sendEvent(t)}trackVirtualPageView(t){const{url:n=window.location.href,userAgent:r=navigator.userAgent}=t;super.trackVirtualPageView({url:n,userAgent:r})}constructor({sdk:t,user:n}){const r={oid:t.oid,baseURL:t.baseURL,sdkURL:t.sdkURL,analyticsEnabled:!0},o=Dr(r);super({options:r,user:n,transport:n1(fetch,o)}),this.sdk=t,this.subscribeToDomainEvents(),this.trackSdkLoaded()}}function i1(e){var t;const n=(t=e.pattern_qualifiers)===null||t===void 0?void 0:t.reduce((o,i)=>i==="case_insensitive"?o+"i":o,"");return new RegExp(e.pattern,n)}function Pa(e){const t=e.options.validation_rules.regular_expressions;return t?t.map(r=>{const o=i1(r);return{type:"regex",name:r.name,regexp:o,matchType:r.match_type}}):[]}function Oa({password:e,rules:t}){const n=[];return t.forEach(r=>{const o=r.regexp.test(e);(o&&r.matchType==="must_not_match"||!o&&r.matchType==="must_match")&&n.push(r)}),n.length===0?{valid:!0,failedRules:[]}:{valid:!1,failedRules:n}}const zc="SlashID-SdkRetryCount";function a1(e){if(!e.headers)return 0;const n=new Headers(e.headers).get(zc);return n?parseInt(n):0}function zn({baseDelayMs:e,maxRetries:t}){return{onError:async({error:n,response:r,url:o,init:i,fetch:a})=>{if(Sc(n,r)){const s=a1(i);return s>=t?r:(await Qt(Math.pow(2,s)*e),await a(o,{...i,headers:{...i.headers,[zc]:`${s+1}`}}))}return r}}}class In{updateClient(t){this.authnClient=new Tt(new dt({...ut,basePath:this.slashID.baseURL,middleware:[zn({maxRetries:5,baseDelayMs:500})],...t&&{accessToken:t}}))}async processChallenges({challenges:t,authnFactor:n,previousToken:r}){this.updateClient(r);let o;for(const i of t)o=await this.process(i,n);if(!o)throw new Error("no user token in attestation response");return o}async process(t,n){var r;let o;switch(t.type){case $e.Proxy:return this.processProxyChallenge(t);case $e.Nonce:o=await this.processNonceChallenge(t);break;case $e.Otp:{const c=new gc(n?.options);o=await this.processOTPChallenge(t,c);break}case $e.WebauthnGet:o=await this.processWebAuthnGetChallenge(t);break;case $e.WebauthnCreate:o=await this.processWebAuthnCreateChallenge(t);break;case $e.Oidc:return this.processOIDCChallenge(t,n);case $e.Saml:return this.processSAMLChallenge(t,n);case $e.PasswordSet:o=await this.processPasswordSetChallenge(t);break;case $e.PasswordVerify:o=await this.processPasswordVerifyChallenge(t);break;case $e.PasswordReset:o=await this.processPasswordResetChallenge(t);break;case $e.UiCustomization:return this.processUiCustomizationChallenge(t);default:throw new Error("unhandled challenge type: "+t.toString())}let i;try{i=await this.authnClient.postAttestationV3({attestation:o,slashIDSdkVersion:ke.raw},{cache:"no-cache"})}catch(c){if(Nt(c))i=await c.response.json();else throw c}if((c=>typeof c=="object"&&typeof c.result=="object"&&typeof c.result.redirect_uri=="string")(i)&&((r=i.result)===null||r===void 0?void 0:r.redirect_uri)!==void 0){const{redirect_uri:c}=i.result;typeof c=="string"&&c&&this.emitter.emit({name:"redirectUriDiscovered",payload:{redirectUri:c},meta:{access:"public"}})}if(vr(i)&&i.errors.length){if(i.errors[0].httpcode===400&&t.type===$e.PasswordSet)return this.notifySlashID("invalidPasswordSubmitted",{failedRules:[],authenticationFactor:n,challengeId:t.id,failureDetail:i.errors[0].message}),this.process(t,n);if(i.errors[0].httpcode===401&&t.type===$e.PasswordVerify)return this.notifySlashID("incorrectPasswordSubmitted",{authenticationFactor:n,challengeId:t.id,failureDetail:i.errors[0].message}),this.process(t,n);if(i.errors[0].httpcode===401&&t.type===$e.Otp)return this.notifySlashID("otpIncorrectCodeSubmitted",{factor:n,challengeId:t.id}),this.process(t,n);throw i}const s=i.result.token;if(!s)throw new Error("no user token in attestation response");if(t.type===$e.WebauthnCreate){const c=t.options;this.slashID.credentialStorage.add(c.rp.id,o.data.rawId)}return s}async processProxyChallenge(t){let n;for(;!n;){await Qt(1e3);const r=await this.authnClient.getChallengeChallengeIdV2({challengeId:t.options.challenge_id,slashIDSdkVersion:ke.raw},{cache:"no-cache"});if(r.errors&&(r.errors.length!==1||r.errors[0].httpcode!==202))throw r;n=r.result}return n}async processNonceChallenge(t){var n;return{challenge_id:t.id,challenge_type:t.type,data:{challenge:(n=t.options)===null||n===void 0?void 0:n.challenge}}}shouldProcessEvent(t){var n,r,o,i;return!t.meta||!t.meta.authFlowId&&!t.meta.recoveryFlowId?!0:!(!((n=this.flowMeta)===null||n===void 0)&&n.authFlowId&&((r=t.meta)===null||r===void 0?void 0:r.authFlowId)!==this.flowMeta.authFlowId||!((o=this.flowMeta)===null||o===void 0)&&o.recoveryFlowId&&((i=t.meta)===null||i===void 0?void 0:i.recoveryFlowId)!==this.flowMeta.recoveryFlowId)}async processOTPChallenge(t,n){this.notifySlashID("otpSmsSent"),this.notifySlashID("otpCodeSent");const r=new Promise(a=>{const s=c=>{this.shouldProcessEvent(c)&&(this.emitter.off("otpCodeSubmitted",s),a(c.payload))};this.emitter.on("otpCodeSubmitted",s)});typeof n.getOTP=="function"&&n.getOTP().then(a=>this.notifySlashID("otpCodeSubmitted",a));const o=await r;if(!o)throw new Error("no OTP code provided");return{challenge_id:t.id,challenge_type:t.type,data:{otp:o}}}async processWebAuthnGetChallenge(t){const n=await Da(),r=t.options;if(this.slashID.isLocalScope(r.rpId)){const o={challenge:Wt(r.challenge),extensions:r.extensions,rpId:r.rpId,timeout:r.timeout,userVerification:r.userVerification},i=r.allowCredentials;if(i){o.allowCredentials=new Array(i.length);for(let f=0;f<i.length;f++){const p=i[f];o.allowCredentials[f]={id:Wt(p.id),type:p.type,transports:p.transports}}}const a=await navigator.credentials.get({publicKey:o});if(!a)throw new Error("could not create assert credential");const s=a.response,c=rt(new Uint8Array(a.rawId)),l={id:a.id,rawId:c,type:a.type,clientExtensionResults:a.getClientExtensionResults(),response:{clientDataJSON:rt(new Uint8Array(s.clientDataJSON)),authenticatorData:rt(new Uint8Array(s.authenticatorData)),signature:rt(new Uint8Array(s.signature)),userHandle:s.userHandle?rt(new Uint8Array(s.userHandle)):null}},u={challenge_id:t.id,challenge_type:t.type,data:l};return this.notifySlashID("webAuthnChallengeProcessed",{credentialId:c}),u}else{const o=this.slashID.getSDKUrl();let i;if(await wr.canGetPublicKeyCredentialsInIFrame()){if(i=this.slashID.iframe.contentWindow,!i)throw new Error("cannot get global id iframe")}else if(n||await Qt(200),i=window.open(o.toString()),!i)throw new Error("cannot open global id window");return new Promise((s,c)=>{const l=new Sp({baseURL:this.slashID.baseURL,sdkURL:this.slashID.sdkURL},t),u=f=>{const p=f.data;p.id===l.id&&(i.close(),window.removeEventListener("message",u),p.error?c(p.error):s(p.attestation))};window.addEventListener("message",u),Wo(i).then(f=>{f.postMessage(l,o.origin)})})}}async processWebAuthnCreateChallenge(t){const n=await Da(),r=t.options;if(this.slashID.isLocalScope(r.rp.id)){const o={challenge:Wt(r.challenge),rp:r.rp,user:{id:Wt(r.user.id),name:r.user.name,displayName:r.user.displayName},pubKeyCredParams:r.pubKeyCredParams,authenticatorSelection:r.authenticatorSelection,timeout:r.timeout,extensions:r.extensions,attestation:r.attestation},i=r.excludeCredentials;if(i){o.excludeCredentials=new Array(i.length);for(let f=0;f<i.length;f++){const p=i[f];o.excludeCredentials[f]={id:Wt(p.id),type:p.type,transports:p.transports}}}const a=await navigator.credentials.create({publicKey:o});if(!a)throw new Error("cannot create credential");const s=a.response,c=rt(new Uint8Array(a.rawId)),l={id:a.id,rawId:c,type:a.type,clientExtensionResults:a.getClientExtensionResults(),response:{attestationObject:rt(new Uint8Array(s.attestationObject)),clientDataJSON:rt(new Uint8Array(s.clientDataJSON))}},u={challenge_id:t.id,challenge_type:t.type,data:l};return this.notifySlashID("webAuthnChallengeProcessed",{credentialId:c}),u}else return n||await Qt(200),new Promise((i,a)=>{const s=this.slashID.getSDKUrl(),c=window.open(s.toString());if(!c){a(new Error("cannot open global id window"));return}const l=new Ep({baseURL:this.slashID.baseURL,sdkURL:this.slashID.sdkURL},t),u=f=>{const p=f.data;p.id===l.id&&(c.close(),window.removeEventListener("message",u),p.error?a(p.error):i(p.attestation))};window.addEventListener("message",u),Wo(c).then(f=>{f.postMessage(l,s.origin)})})}async processOIDCChallenge(t,n){if(n.options.ux_mode===Sn.Popup){var r;const i=n.extras.setPopupUrl(t.options.auth_code_url);if(!(!(t==null||(r=t.options)===null||r===void 0)&&r.auth_code_url)){var o;throw this.notifySlashID("oauthFlowFailed",{...n.options,reason:Ta.BadOAuthURL}),new Error(`Bad OAuth URL - got ${t==null||(o=t.options)===null||o===void 0?void 0:o.auth_code_url}`)}if(!i)throw this.notifySlashID("oauthFlowFailed",{...n.options,reason:Ta.PopupBlocked}),new Error("OIDC flow unsuccesful!")}else if(n.options.ux_mode===Sn.Redirect)window.location.assign(t.options.auth_code_url);else throw new Error(`Unsupported OAuth ux_mode - got ${n.options.ux_mode}`);return this.notifySlashID("oauthFlowStarted",n.options),""}async processSAMLChallenge(t,n){if(n.options.ux_mode===$n.Popup){var r;const i=n.extras.setPopupUrl(t.options.start_authentication_url);if(!(!(t==null||(r=t.options)===null||r===void 0)&&r.start_authentication_url)){var o;throw this.notifySlashID("popupFailed",{reason:La.BadAuthURL}),new Error(`Bad authentication URL - got ${t==null||(o=t.options)===null||o===void 0?void 0:o.start_authentication_url}`)}if(!i)throw this.notifySlashID("popupFailed",{reason:La.PopupBlocked}),new Error("SAML flow unsuccesful!")}else if(n.options.ux_mode===$n.Redirect)window.location.assign(t.options.start_authentication_url);else throw new Error(`Unsupported SAML ux_mode - got ${n.options.ux_mode}`);return""}async processPasswordSetChallenge(t){this.notifySlashID("passwordSetReady");const r=await new Promise(a=>{const s=c=>{this.shouldProcessEvent(c)&&(this.emitter.off("passwordSubmitted",s),a(c.payload))};this.emitter.on("passwordSubmitted",s)}),o=Oa({password:r,rules:Pa(t)});return o.valid?{challenge_id:t.id,challenge_type:t.type,data:{password:r}}:(this.notifySlashID("invalidPasswordSubmitted",{failedRules:o.failedRules,challengeId:t.id,failureDetail:`invalid_password: ${o.failedRules.map(a=>a.name).join(",")}`}),await this.processPasswordSetChallenge(t))}processPasswordVerifyChallenge(t){return this.notifySlashID("passwordVerifyReady"),new Promise(r=>{const o=i=>{this.shouldProcessEvent(i)&&(this.emitter.off("passwordSubmitted",o),r(i.payload))};this.emitter.on("passwordSubmitted",o)}).then(r=>{if(!r)throw new Error("No password provided");return{challenge_id:t.id,challenge_type:t.type,data:{password:r}}})}async processPasswordResetChallenge(t){this.notifySlashID("passwordResetReady");const r=await new Promise(a=>{const s=c=>{this.shouldProcessEvent(c)&&(this.emitter.off("passwordSubmitted",s),a(c.payload))};this.emitter.on("passwordSubmitted",s)}),o=Oa({password:r,rules:Pa(t)});return o.valid?{challenge_id:t.id,challenge_type:t.type,data:{password:r}}:(this.notifySlashID("invalidPasswordSubmitted",{failedRules:o.failedRules,challengeId:t.id,failureDetail:`invalid_password: ${o.failedRules.map(a=>a.name).join(",")}`}),await this.processPasswordSetChallenge(t))}async processUiCustomizationChallenge(t){var n;const r=(n=t.options)===null||n===void 0?void 0:n.authn_redirect_page_ui_config;if(!r)throw new Error("No customization properties provided!");return this.notifySlashID("uiCustomizationReceived",{customizationProperties:r}),Ei(this.slashID).storeUiCustomization(r),""}constructor(t,n,r){this.notifySlashID=(o,i)=>{this.emitter.emit({name:o,payload:i,meta:{access:"public",...this.flowMeta}})},this.slashID=t,this.authnClient=new Tt(new dt({...ut,basePath:this.slashID.baseURL,middleware:[zn({maxRetries:5,baseDelayMs:500})]})),this.emitter=n,this.flowMeta=r}}class Ma{shouldProcessEvent(t){var n;return!(this.flowId&&((n=t.meta)===null||n===void 0?void 0:n.authFlowId)!==this.flowId)}async id(t,n,r){return this._id(t,n,r)}async _id(t,n,r,o){if(r)switch(r.method){case Ie.Webauthn.toString():{if(!(navigator&&window.PublicKeyCredential))throw new zt(Ie.Webauthn,"The WebAuthn API is not available in the current environment");let f=r.options;f||(f={}),f.scope||(f.scope=window.location.hostname);const p=await this.slashID.credentialStorage.get(f.scope);if(p&&(f.available_credential_ids=p),f.attachment||(f.attachment=_a.Any),f.user_verification||(f.user_verification=_h.Preferred),f.resident_key||(f.resident_key=bh.Preferred),f.attestation||(f.attestation=gh.None),f.attachment===_a.Platform&&!await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable())throw new zt(Ie.Webauthn,`This device has no authenticator available with attachment '${f.attachment}'`);r.options=f}break;case Ie.EmailLink.toString():case Ie.OtpViaEmail.toString():if(n&&n.type!==Zt.EmailAddress)throw new zt(r.method,`A handle of type '${Zt.EmailAddress}' is required, got '${n.type}' instead`);break;case Ie.SmsLink.toString():case Ie.OtpViaSms.toString():if(n&&n.type!==Zt.PhoneNumber)throw new zt(r.method,`A handle of type '${Zt.PhoneNumber}' is required, got '${n.type}' instead`);r.options=new gc(r.options);break;case Ie.Oidc.toString():{if(n)throw new zt(r.method,"OIDC should not be used with handles");r=await Op(r);const f=p=>{var h,g;if(!this.shouldProcessEvent(p))return;const m=r;!(m==null||(h=m.extras)===null||h===void 0)&&h.popup&&(m==null||(g=m.extras)===null||g===void 0||g.popup.close()),this.emitter.off("oauthFlowFailed",f)};this.emitter.on("oauthFlowFailed",f)}break;case Ie.Saml.toString():{if(n)throw new zt(r.method,"SAML should not be used with handles");r=await Mp(r);const f=p=>{var h,g;if(!this.shouldProcessEvent(p))return;const m=r;!(m==null||(h=m.extras)===null||h===void 0)&&h.popup&&(m==null||(g=m.extras)===null||g===void 0||g.popup.close()),this.emitter.off("popupFailed",f)};this.emitter.on("popupFailed",f)}break}const i={method:r?.method,options:r?.options};i.method!==void 0&&(i.options={...i.options,method:i.method}),this.emitter.emit({name:"idFlowStarted",payload:{authenticationFactor:r},meta:{authFlowId:this.flowId,access:"public"}});const s=await new Tt(new dt({...ut,basePath:this.slashID.baseURL,middleware:[zn({maxRetries:5,baseDelayMs:500})],...o&&{accessToken:o}})).postId({slashIDOrgID:t,slashIDSdkVersion:ke.raw,iDRequest:{handle:n,factor:i}},{cache:"no-cache"});if(s.errors)throw s;const c=s.result;if(!c)throw new Error("no challenges in ID response");const u=await new In(this.slashID,this.emitter,{authFlowId:this.flowId}).processChallenges({challenges:c,authnFactor:r,previousToken:o});if(n)try{this.slashID.identifiersStorage.add(n)}catch(f){console.warn(f)}return this.emitter.emit({name:"idFlowSucceeded",payload:{token:`${u}`,authenticationFactor:r,handle:n},meta:{authFlowId:this.flowId,access:"public"}}),this.slashID.getUser(u)}async recover({handle:t,factor:n}){const r=new Tt(new dt({...ut,basePath:this.slashID.baseURL,middleware:[zn({maxRetries:5,baseDelayMs:500})]})),{result:o}=await r.postRecover({recoverRequest:{handle:t,factor:n},slashIDSdkVersion:ke.raw,slashIDOrgID:this.slashID.oid});if(!o)throw new Error("no result in recover response");await new In(this.slashID,this.emitter,{recoveryFlowId:this.flowId}).processChallenges({challenges:o,authnFactor:n})}constructor(t,n){this.slashID=t,this.flowId=Xt(),this.emitter=n}}function s1(){const e={},t=new Set;function n(a,s){e[a]||(e[a]=new Set),e[a].add(s)}function r(a,s){const c=e[a];c&&c.delete(s)}function o(a){const s=e[a.name];if(!s||!s.size)return;let c=!1;const l=t.size>0?[...t].reduce((u,f)=>c?u:f(u,()=>{c=!0})||u,a):a;c||s.forEach(u=>u(l))}function i(a){t.add(a)}return{on:n,off:r,emit:o,use:i}}const Na="__SlashID_iframe",Dc=Symbol(),Tc=Symbol(),Lc=Symbol(),Ko=Symbol(),Ei=e=>({publish:(t,n)=>e[Dc](t,n),subscribe:(t,n)=>e[Tc](t,n),unsubscribe:(t,n)=>e[Lc](t,n),storeUiCustomization:t=>{e[Ko]=t},getUiCustomization:()=>e[Ko]});class wr{getAnalytics(){if(!this.analytics)throw new Error("Analytics has to be enabled and oid has to be set to use this method");return this.analytics}static async canGetPublicKeyCredentialsInIFrame(){const t=window;return!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)}createFlowScopeMiddleware(){const t=this;return function(r,o){var i,a,s,c;return r.meta&&r.meta.authFlowId&&(!((i=t.authFlow)===null||i===void 0)&&i.flowId)&&((a=t.authFlow)===null||a===void 0?void 0:a.flowId)!==r.meta.authFlowId||r.meta&&r.meta.recoveryFlowId&&(!((s=t.recoveryFlow)===null||s===void 0)&&s.flowId)&&((c=t.recoveryFlow)===null||c===void 0?void 0:c.flowId)!==r.meta.recoveryFlowId?o():r}}publish(t,n){var r,o;if(!Zp(t))throw new Error(`Unsupported event name: ${t}`);this.emitter.emit({name:t,payload:n,meta:{access:"public",authFlowId:(r=this.authFlow)===null||r===void 0?void 0:r.flowId,recoveryFlowId:(o=this.recoveryFlow)===null||o===void 0?void 0:o.flowId}})}[Dc](t,n){var r,o;if(!Co(t))throw new Error(`Unsupported event name: ${t}`);this.emitter.emit({name:t,payload:n,meta:{access:"private",authFlowId:(r=this.authFlow)===null||r===void 0?void 0:r.flowId,recoveryFlowId:(o=this.recoveryFlow)===null||o===void 0?void 0:o.flowId}})}subscribe(t,n){if(!Aa(t))throw new Error(`Unsupported event name: ${t}`);const r=this.emitterDecoratorFactory.decorate(n);this.emitter.on(t,r)}[Tc](t,n){if(!Co(t))throw new Error(`Unsupported event name: ${t}`);const r=this.emitterDecoratorFactory.decorate(n);this.emitter.on(t,r)}unsubscribe(t,n){if(!Aa(t))throw new Error(`Unsupported event name: ${t}`);const r=this.emitterDecoratorFactory.getDecorator(n);r&&this.emitter.off(t,r)}[Lc](t,n){if(!Co(t))throw new Error(`Unsupported event name: ${t}`);const r=this.emitterDecoratorFactory.getDecorator(n);r&&this.emitter.off(t,r)}async getChallengesFromURL(){const t=window.location.search,n=new URLSearchParams(t);let r;const o=n.get(Cp),i=n.get(xp);if(o&&i)throw new Error("found both 'challenges' and 'sidcp' URL query parameters");if(o){const a=await this.authnClient.getChallengePackChallengePackId({challengePackId:o,slashIDSdkVersion:ke.raw},{cache:"no-cache"});if(a.errors)throw a;r=a.result}else if(i){const a=Wt(i),s=new TextDecoder("utf-8").decode(a);r=JSON.parse(s)}return r}async getUserFromURL(){if(!this.urlChallengesUser){let n;try{n=await this.getChallengesFromURL()}catch(r){throw await this.processError(r,{}),r}if(n){var t;const r=qa(window.location.search);r&&this.resolveSSOChallenge(r);let o;try{o=await new In(this,this.emitter).processChallenges({challenges:n})}catch(i){throw await this.processError(i,{}),i}if(this.urlChallengesUser=new yi(o,{baseURL:this.baseURL,sdkURL:this.sdkURL}),!((t=this.urlChallengesUser.authentications)===null||t===void 0)&&t.length){const i=this.urlChallengesUser.authentications[this.urlChallengesUser.authentications.length-1];this.emitter.emit({name:"idFlowSucceeded",payload:{token:o,authenticationFactor:{method:i.method},handle:i.handle},meta:{access:"public"}})}}}return this.urlChallengesUser&&this.emitter.emit({name:"userAuthenticatedFromURL",payload:{token:this.urlChallengesUser.token},meta:{access:"public"}}),this.urlChallengesUser}async resolveSSOChallenge({ssoChallengeID:t,ssoCode:n,csrfToken:r}){if(!(!t||!n||!r))try{const o=window.localStorage.getItem(Bo);if(!o)throw new Error("no CSRF token stored");if(r!==o)throw new Error("CSRF token mismatch");const i=window.localStorage.getItem(jo);if(!i)throw new Error("no PKCE code verifier stored");await this.authnClient.postSsoResolve({slashIDOrgID:this.oid,postSsoResolveRequest:{challenge_id:t,code:n,pkce_code_verifier:i}})}catch(o){this.processError(o,{})}finally{window.localStorage.removeItem(Bo),window.localStorage.removeItem(jo)}}async processEvent(t){if(zp(t.data)){if(t.origin!==this.baseURL)return;const r=qa(t.data.urlParams);r&&await this.resolveSSOChallenge(r);return}let n=null;if(window.opener&&t.source===window.opener&&(n=window.opener),window.parent&&t.source===window.parent&&(n=window.parent),!!n){if(Dp(t.data)){const r=t.data;try{n.postMessage(new Ea(r.id),"*")}catch(o){n.postMessage(new Ea(r.id,o.toString()),"*")}}if(Rp(t.data)){const r=t.data;try{const i=await new In(this,this.emitter).processWebAuthnCreateChallenge(r.challenge);n.postMessage(new Sa(r.id,i),"*")}catch(o){n.postMessage(new Sa(r.id,null,o.toString()),"*")}}if(qp(t.data)){const r=t.data;try{const i=await new In(this,this.emitter).processWebAuthnGetChallenge(r.challenge);n.postMessage(new $a(r.id,i),"*")}catch(o){n.postMessage(new $a(r.id,null,o.toString()),"*")}}}}async listenForEvents(){window.addEventListener("message",this.processEvent.bind(this))}setupIFrame(){const t=this.getSDKUrl().toString();if(hp(new URL(window.location.href),new URL(this.sdkURL)))return null;let n=document.getElementById(Na);return n&&n.src!==t&&(n.remove(),n=null),n||(n=document.createElement("iframe"),n.id=Na,n.allow="publickey-credentials-get *",n.src=t,n.style.display="none",document.body.appendChild(n)),n}async getAvailableAuthenticationMethods(t){const n=[Ie.Password];switch(t){case Zt.EmailAddress:n.push(Ie.EmailLink,Ie.OtpViaEmail);break;case Zt.PhoneNumber:n.push(Ie.SmsLink,Ie.OtpViaSms);break;default:throw new Error(`unhandled handle type: ${t}`)}return navigator&&window.PublicKeyCredential&&n.unshift(Ie.Webauthn),n}getUser(t){return new Qp(t,this)}async id(t,n,r){return this._id(t,n,r)}createAuthFlow(){const t=new Ma(this,this.emitter);return this.authFlow=t,t}clearAuthFlow(t){this.authFlow===t&&(this.authFlow=null)}createRecoveryFlow(){const t=new Ma(this,this.emitter);return this.recoveryFlow=t,t}clearRecoveryFlow(t){this.recoveryFlow===t&&(this.recoveryFlow=null)}async _id(t,n,r,o){const i=this.createAuthFlow();try{return await i._id(t,n,r,o)}catch(a){throw await this.processError(a,{authenticationFactor:r,handle:n,previousToken:o}),Nt(a)&&Ci(a)?await Rn.fromResponseError(a):a}finally{this.clearAuthFlow(i)}}async getAvailableIdentifiers(){try{return this.identifiersStorage.getAll()}catch(t){return console.warn(t),[]}}async recover({handle:t,factor:n}){if(!this.oid)throw new Error("oid is required - please initialize the SDK with an organization ID");const r=this.createRecoveryFlow();this.emitter.emit({name:"recoveryFlowStarted",payload:{handle:t,authenticationFactor:n},meta:{access:"public",recoveryFlowId:r.flowId}});try{await r.recover({handle:t,factor:n}),this.recoveryFlow=null,this.emitter.emit({name:"recoveryFlowSucceeded",payload:{handle:t,authenticationFactor:n},meta:{access:"public",recoveryFlowId:r.flowId}})}catch(o){const i=await ki(o),a={errorText:"recovery_failed",authenticationFactor:n,handle:t,failureDetail:i};throw this.emitter.emit({name:"recoveryFlowFailed",payload:a,meta:{access:"public",recoveryFlowId:r.flowId}}),o}finally{this.clearRecoveryFlow(r)}}getSDKUrl(){const t=new URL(this.sdkURL);return t.searchParams.append("v",ke.raw),t}isLocalScope(t){return window.location.hostname.endsWith(t)}async processError(t,{authenticationFactor:n,handle:r,previousToken:o,challengeId:i}){var a,s;const c=await Rc(t,{authenticationFactor:n,handle:r,previousToken:o,challengeId:i});Gp(c)?Ei(this).publish("clientSideError",c):this.emitter.emit({name:"idFlowFailed",payload:c,meta:{access:"public",authFlowId:(a=this.authFlow)===null||a===void 0?void 0:a.flowId,recoveryFlowId:(s=this.recoveryFlow)===null||s===void 0?void 0:s.flowId}})}constructor(t){t&&mc(t);const{baseURL:n,sdkURL:r,oid:o,analyticsEnabled:i=!0}=Dr(t??{});this.baseURL=n,this.sdkURL=r,this.oid=o,this.authFlow=null,this.recoveryFlow=null,this[Ko]=null,this.authnClient=new Tt(new dt({...ut,basePath:this.baseURL,middleware:[zn({maxRetries:5,baseDelayMs:500})]})),this.iframe=this.setupIFrame();const a=new Xp(this.iframe,this.getSDKUrl().origin);this.identifiersStorage=new Ze(a),this.credentialStorage=new qn(a),this.urlChallengesUser=null,this.emitter=s1(),this.emitter.use(this.createFlowScopeMiddleware()),this.emitterDecoratorFactory=Jp(),this.analytics=i?new o1({sdk:this}):void 0,this.listenForEvents()}}Yt("lDZ5d");({...pe});const Fa={...pe},Ac=Object.prototype.toString;function Si(e){switch(Ac.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Lt(e,Error)}}function dn(e,t){return Ac.call(e)===`[object ${t}]`}function $i(e){return dn(e,"ErrorEvent")}function Ua(e){return dn(e,"DOMError")}function c1(e){return dn(e,"DOMException")}function ct(e){return dn(e,"String")}function Ii(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ri(e){return e===null||Ii(e)||typeof e!="object"&&typeof e!="function"}function nn(e){return dn(e,"Object")}function Ar(e){return typeof Event<"u"&&Lt(e,Event)}function l1(e){return typeof Element<"u"&&Lt(e,Element)}function d1(e){return dn(e,"RegExp")}function Pr(e){return!!(e&&e.then&&typeof e.then=="function")}function u1(e){return nn(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function f1(e){return typeof e=="number"&&e!==e}function Lt(e,t){try{return e instanceof t}catch{return!1}}function Pc(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function en(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Va(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const o=e[r];try{Pc(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function h1(e,t,n=!1){return ct(e)?d1(t)?t.test(e):ct(t)?n?e===t:e.includes(t):!1:!1}function Or(e,t=[],n=!1){return t.some(r=>h1(e,r,n))}function p1(e,t,n=250,r,o,i,a){if(!i.exception||!i.exception.values||!a||!Lt(a.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=m1(Yo(e,t,o,a.originalException,r,i.exception.values,s,0),n))}function Yo(e,t,n,r,o,i,a,s){if(i.length>=n+1)return i;let c=[...i];if(Lt(r[o],Error)){Ba(a,s);const l=e(t,r[o]),u=c.length;ja(l,o,u,s),c=Yo(e,t,n,r[o],o,[l,...c],l,u)}return Array.isArray(r.errors)&&r.errors.forEach((l,u)=>{if(Lt(l,Error)){Ba(a,s);const f=e(t,l),p=c.length;ja(f,`errors[${u}]`,p,s),c=Yo(e,t,n,l,o,[f,...c],f,p)}}),c}function Ba(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function ja(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function m1(e,t){return e.map(n=>(n.value&&(n.value=en(n.value,t)),n))}function Jn(e){return e&&e.Math==Math?e:void 0}const oe=typeof globalThis=="object"&&Jn(globalThis)||typeof window=="object"&&Jn(window)||typeof self=="object"&&Jn(self)||typeof global=="object"&&Jn(global)||function(){return this}()||{};function qi(){return oe}function Oc(e,t,n){const r=n||oe,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const zi=qi(),g1=80;function Mc(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,a=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||g1;for(;n&&i++<r&&(l=b1(n,u),!(l==="html"||i>1&&a+o.length*c+l.length>=f));)o.push(l),a+=l.length,n=n.parentNode;return o.reverse().join(s)}catch{return"<unknown>"}}function b1(e,t){const n=e,r=[];let o,i,a,s,c;if(!n||!n.tagName)return"";if(zi.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(l&&l.length)l.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&ct(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)a=u[c],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function _1(){try{return zi.document.location.href}catch{return""}}function v1(e){if(!zi.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Fn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,w1="Sentry Logger ",Zo=["debug","info","warn","error","log","assert","trace"],yr={};function Mr(e){if(!("console"in oe))return e();const t=oe.console,n={},r=Object.keys(yr);r.forEach(o=>{const i=yr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function y1(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Fn?Zo.forEach(n=>{t[n]=(...r)=>{e&&Mr(()=>{oe.console[n](`${w1}[${n}]:`,...r)})}}):Zo.forEach(n=>{t[n]=()=>{}}),t}const A=y1(),x1=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C1(e){return e==="http"||e==="https"}function un(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${a}`}function k1(e){const t=x1.exec(e);if(!t){Mr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,o="",i,a="",s]=t.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const f=l.match(/^\d+/);f&&(l=f[0])}return Nc({host:i,pass:o,path:c,projectId:l,port:a,protocol:n,publicKey:r})}function Nc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function E1(e){if(!Fn)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(A.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?C1(r)?t&&isNaN(parseInt(t,10))?(A.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(A.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(A.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Fc(e){const t=typeof e=="string"?k1(e):Nc(e);if(!(!t||!E1(t)))return t}class Je extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Ee(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);typeof o=="function"&&Uc(o,r),e[t]=o}function Dn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Fn&&A.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Uc(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Dn(e,"__sentry_original__",t)}catch{}}function Di(e){return e.__sentry_original__}function S1(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Vc(e){if(Si(e))return{message:e.message,name:e.name,stack:e.stack,...Ga(e)};if(Ar(e)){const t={type:e.type,target:Ha(e.target),currentTarget:Ha(e.currentTarget),...Ga(e)};return typeof CustomEvent<"u"&&Lt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ha(e){try{return l1(e)?Mc(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Ga(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function $1(e,t=40){const n=Object.keys(Vc(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return en(n[0],t);for(let r=n.length;r>0;r--){const o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:en(o,t)}return""}function st(e){return Jo(e,new Map)}function Jo(e,t){if(I1(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const o of Object.keys(e))typeof e[o]<"u"&&(r[o]=Jo(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(o=>{r.push(Jo(o,t))}),r}return e}function I1(e){if(!nn(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Bc=50,Wa=/\(error: (.*)\)/,Ka=/captureMessage|captureException/;function jc(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const o=[],i=n.split(`
10
+ `);for(let a=r;a<i.length;a++){const s=i[a];if(s.length>1024)continue;const c=Wa.test(s)?s.replace(Wa,"$1"):s;if(!c.match(/\S*Error: /)){for(const l of t){const u=l(c);if(u){o.push(u);break}}if(o.length>=Bc)break}}return q1(o)}}function R1(e){return Array.isArray(e)?jc(...e):e}function q1(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Ka.test(t[t.length-1].function||"")&&(t.pop(),Ka.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Bc).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const ko="<anonymous>";function xt(e){try{return!e||typeof e!="function"?ko:e.name||ko}catch{return ko}}const fr={},Ya={};function Ft(e,t){fr[e]=fr[e]||[],fr[e].push(t)}function Ut(e,t){Ya[e]||(t(),Ya[e]=!0)}function Ge(e,t){const n=e&&fr[e];if(n)for(const r of n)try{r(t)}catch(o){Fn&&A.error(`Error while triggering instrumentation handler.
11
+ Type: ${e}
12
+ Name: ${xt(r)}
13
+ Error:`,o)}}function z1(e){const t="console";Ft(t,e),Ut(t,D1)}function D1(){"console"in oe&&Zo.forEach(function(e){e in oe.console&&Ee(oe.console,e,function(t){return yr[e]=t,function(...n){Ge("console",{args:n,level:e});const o=yr[e];o&&o.apply(oe.console,n)}})})}function Ne(){const e=oe,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Hc(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function wt(e){const{message:t,event_id:n}=e;if(t)return t;const r=Hc(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Xo(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Tn(e,t){const n=Hc(e);if(!n)return;const r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){const i={...o&&o.data,...t.data};n.mechanism.data=i}}function Za(e){if(e&&e.__sentry_captured__)return!0;try{Dn(e,"__sentry_captured__",!0)}catch{}return!1}function Gc(e){return Array.isArray(e)?e:[e]}const Kt=oe,T1=1e3;let Ja,Qo,ei;function L1(e){const t="dom";Ft(t,e),Ut(t,A1)}function A1(){if(!Kt.document)return;const e=Ge.bind(null,"dom"),t=Xa(e,!0);Kt.document.addEventListener("click",t,!1),Kt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Kt[n]&&Kt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ee(r,"addEventListener",function(o){return function(i,a,s){if(i==="click"||i=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[i]=l[i]||{refCount:0};if(!u.handler){const f=Xa(e);u.handler=f,o.call(this,i,f,s)}u.refCount++}catch{}return o.call(this,i,a,s)}}),Ee(r,"removeEventListener",function(o){return function(i,a,s){if(i==="click"||i=="keypress")try{const c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[i];u&&(u.refCount--,u.refCount<=0&&(o.call(this,i,u.handler,s),u.handler=void 0,delete l[i]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,s)}}))})}function P1(e){if(e.type!==Qo)return!1;try{if(!e.target||e.target._sentryId!==ei)return!1}catch{}return!0}function O1(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Xa(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=M1(n);if(O1(n.type,r))return;Dn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Dn(r,"_sentryId",Ne());const o=n.type==="keypress"?"input":n.type;P1(n)||(e({event:n,name:o,global:t}),Qo=n.type,ei=r?r._sentryId:void 0),clearTimeout(Ja),Ja=Kt.setTimeout(()=>{ei=void 0,Qo=void 0},T1)}}function M1(e){try{return e.target}catch{return null}}const ti=qi();function Wc(){if(!("fetch"in ti))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ni(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function N1(){if(typeof EdgeRuntime=="string")return!0;if(!Wc())return!1;if(ni(ti.fetch))return!0;let e=!1;const t=ti.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ni(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Fn&&A.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function F1(e){const t="fetch";Ft(t,e),Ut(t,U1)}function U1(){N1()&&Ee(oe,"fetch",function(e){return function(...t){const{method:n,url:r}=V1(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ge("fetch",{...o}),e.apply(oe,t).then(i=>{const a={...o,endTimestamp:Date.now(),response:i};return Ge("fetch",a),i},i=>{const a={...o,endTimestamp:Date.now(),error:i};throw Ge("fetch",a),i})}})}function ri(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Qa(e){return typeof e=="string"?e:e?ri(e,"url")?e.url:e.toString?e.toString():"":""}function V1(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Qa(n),method:ri(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Qa(t),method:ri(t,"method")?String(t.method).toUpperCase():"GET"}}let Xn=null;function B1(e){const t="error";Ft(t,e),Ut(t,j1)}function j1(){Xn=oe.onerror,oe.onerror=function(e,t,n,r,o){return Ge("error",{column:r,error:o,line:n,msg:e,url:t}),Xn&&!Xn.__SENTRY_LOADER__?Xn.apply(this,arguments):!1},oe.onerror.__SENTRY_INSTRUMENTED__=!0}let Qn=null;function H1(e){const t="unhandledrejection";Ft(t,e),Ut(t,G1)}function G1(){Qn=oe.onunhandledrejection,oe.onunhandledrejection=function(e){return Ge("unhandledrejection",e),Qn&&!Qn.__SENTRY_LOADER__?Qn.apply(this,arguments):!0},oe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const er=qi();function W1(){const e=er.chrome,t=e&&e.app&&e.app.runtime,n="history"in er&&!!er.history.pushState&&!!er.history.replaceState;return!t&&n}const yn=oe;let tr;function Kc(e){const t="history";Ft(t,e),Ut(t,K1)}function K1(){if(!W1())return;const e=yn.onpopstate;yn.onpopstate=function(...n){const r=yn.location.href,o=tr;if(tr=r,Ge("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const o=r.length>2?r[2]:void 0;if(o){const i=tr,a=String(o);tr=a,Ge("history",{from:i,to:a})}return n.apply(this,r)}}Ee(yn.history,"pushState",t),Ee(yn.history,"replaceState",t)}const Y1=oe,kn="__sentry_xhr_v3__";function Z1(e){const t="xhr";Ft(t,e),Ut(t,J1)}function J1(){if(!Y1.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Ee(e,"open",function(t){return function(...n){const r=Date.now(),o=ct(n[0])?n[0].toUpperCase():void 0,i=X1(n[1]);if(!o||!i)return t.apply(this,n);this[kn]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const s=this[kn];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}const c={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Ge("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ee(this,"onreadystatechange",function(s){return function(...c){return a(),s.apply(this,c)}}):this.addEventListener("readystatechange",a),Ee(this,"setRequestHeader",function(s){return function(...c){const[l,u]=c,f=this[kn];return f&&ct(l)&&ct(u)&&(f.request_headers[l.toLowerCase()]=u),s.apply(this,c)}}),t.apply(this,n)}}),Ee(e,"send",function(t){return function(...n){const r=this[kn];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Ge("xhr",o),t.apply(this,n)}})}function X1(e){if(ct(e))return e;try{return e.toString()}catch{}}function Q1(){return"npm"}function em(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function vt(e,t=100,n=1/0){try{return oi("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Yc(e,t=3,n=100*1024){const r=vt(e,t);return om(r)>n?Yc(e,t-1,n):r}function oi(e,t,n=1/0,r=1/0,o=em()){const[i,a]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!f1(t))return t;const s=tm(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return oi("",h,c-1,r,o)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const p=Vc(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){u[h]="[MaxProperties ~]";break}const g=p[h];u[h]=oi(h,g,c-1,r,o),f++}return a(t),u}function tm(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Pc(t))return"[VueViewModel]";if(u1(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${xt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=nm(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function nm(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function rm(e){return~-encodeURI(e).split(/%..|./).length}function om(e){return rm(JSON.stringify(e))}var ot;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(ot||(ot={}));function rn(e){return new ze(t=>{t(e)})}function Ti(e){return new ze((t,n)=>{n(e)})}class ze{constructor(t){ze.prototype.__init.call(this),ze.prototype.__init2.call(this),ze.prototype.__init3.call(this),ze.prototype.__init4.call(this),this._state=ot.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ze((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(a){o(a)}},i=>{if(!n)o(i);else try{r(n(i))}catch(a){o(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ze((n,r)=>{let o,i;return this.then(a=>{i=!1,o=a,t&&t()},a=>{i=!0,o=a,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(ot.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ot.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ot.PENDING){if(Pr(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ot.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ot.RESOLVED&&n[1](this._value),this._state===ot.REJECTED&&n[2](this._value),n[0]=!0)})}}}function im(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function o(a){if(!n())return Ti(new Je("Not adding Promise because buffer limit was reached."));const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function i(a){return new ze((s,c)=>{let l=t.length;if(!l)return s(!0);const u=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(f=>{rn(f).then(()=>{--l||(clearTimeout(u),s(!0))},c)})})}return{$:t,add:o,drain:i}}function Eo(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const am=["fatal","error","warning","log","info","debug"];function sm(e){return e==="warn"?"warning":am.includes(e)?e:"log"}const Zc=1e3;function Un(){return Date.now()/Zc}function cm(){const{performance:e}=oe;if(!e||!e.now)return Un;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Zc}const Jc=cm();(()=>{const{performance:e}=oe;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,c=typeof a=="number"?Math.abs(a+n-r):t,l=c<t;return i||l?o<=c?e.timeOrigin:a:r})();function fn(e,t=[]){return[e,t]}function lm(e,t){const[n,r]=e;return[n,[...r,t]]}function es(e,t){const n=e[1];for(const r of n){const o=r[0].type;if(t(r,o))return!0}return!1}function ii(e,t){return(t||new TextEncoder).encode(e)}function dm(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(a){typeof o=="string"?o=typeof a=="string"?o+a:[ii(o,t),a]:o.push(typeof a=="string"?ii(a,t):a)}for(const a of r){const[s,c]=a;if(i(`
14
+ ${JSON.stringify(s)}
15
+ `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let l;try{l=JSON.stringify(c)}catch{l=JSON.stringify(vt(c))}i(l)}}return typeof o=="string"?o:um(o)}function um(e){const t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function fm(e,t){const n=typeof e.data=="string"?ii(e.data,t):e.data;return[st({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const hm={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"statsd"};function ts(e){return hm[e]}function Xc(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function pm(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:un(r)},...o&&{trace:st({...o})}}}function mm(e,t,n){const r=[{type:"client_report"},{timestamp:n||Un(),discarded_events:e}];return fn(t?{dsn:t}:{},[r])}const gm=60*1e3;function bm(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?gm:r-t}function _m(e,t){return e[t]||e.all||0}function vm(e,t,n=Date.now()){return _m(e,t)>n}function wm(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const s of i.trim().split(",")){const[c,l]=s.split(":",2),u=parseInt(c,10),f=(isNaN(u)?60:u)*1e3;if(!l)o.all=r+f;else for(const p of l.split(";"))o[p]=r+f}else a?o.all=r+bm(a,r):t===429&&(o.all=r+60*1e3);return o}const fe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nr="production";function Li(){return Oc("globalEventProcessors",()=>[])}function ym(e){Li().push(e)}function xr(e,t,n,r=0){return new ze((o,i)=>{const a=e[r];if(t===null||typeof a!="function")o(t);else{const s=a({...t},n);fe&&a.id&&s===null&&A.log(`Event processor "${a.id}" dropped event`),Pr(s)?s.then(c=>xr(e,c,n,r+1).then(o)).then(null,i):xr(e,s,n,r+1).then(o).then(null,i)}})}function Qc(e){const t=Jc(),n={sid:Ne(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>xm(n)};return e&&At(n,e),n}function At(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Jc(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ne()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function el(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),At(e,n)}function xm(e){return st({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Cm=1;function km(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,tags:s,origin:c}=Ln(e);return st({data:r,op:o,parent_span_id:i,span_id:t,status:a,tags:s,trace_id:n,origin:c})}function Ln(e){return Em(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Em(e){return typeof e.getSpanJSON=="function"}function Sm(e){const{traceFlags:t}=e.spanContext();return!!(t&Cm)}function $m(e,t,n,r,o,i){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ne(),timestamp:t.timestamp||Un()},l=n.integrations||e.integrations.map(b=>b.name);Im(c,e),zm(c,l),t.type===void 0&&Rm(c,e.stackParser);const u=Tm(r,n.captureContext);n.mechanism&&Tn(c,n.mechanism);const f=o&&o.getEventProcessors?o.getEventProcessors():[],p=Hm().getScopeData();if(i){const b=i.getScopeData();is(p,b)}if(u){const b=u.getScopeData();is(p,b)}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),sl(c,p);const g=[...f,...Li(),...p.eventProcessors];return xr(g,c,n).then(b=>(b&&qm(b),typeof a=="number"&&a>0?Dm(b,a,s):b))}function Im(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Nr),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=en(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=en(a.value,i));const s=e.request;s&&s.url&&(s.url=en(s.url,i))}const ns=new WeakMap;function Rm(e,t){const n=oe._sentryDebugIds;if(!n)return;let r;const o=ns.get(t);o?r=o:(r=new Map,ns.set(t,r));const i=Object.keys(n).reduce((a,s)=>{let c;const l=r.get(s);l?c=l:(c=t(s),r.set(s,c));for(let u=c.length-1;u>=0;u--){const f=c[u];if(f.filename){a[f.filename]=n[s];break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=i[s.filename])})})}catch{}}function qm(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function zm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Dm(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:vt(o.data,t,n)}}))},...e.user&&{user:vt(e.user,t,n)},...e.contexts&&{contexts:vt(e.contexts,t,n)},...e.extra&&{extra:vt(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=vt(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{const i=Ln(o).data;return i&&(o.data=vt(i,t,n)),o})),r}function Tm(e,t){if(!t)return e;const n=e?e.clone():new lt;return n.update(t),n}function Lm(e){if(e)return Am(e)?{captureContext:e}:Om(e)?{captureContext:e}:e}function Am(e){return e instanceof lt||typeof e=="function"}const Pm=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Om(e){return Object.keys(e).some(t=>Pm.includes(t))}function Fr(e,t){return tt().captureException(e,Lm(t))}function tl(e,t){return tt().captureEvent(e,t)}function Pt(e,t){tt().addBreadcrumb(e,t)}function nl(...e){const t=tt();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Re(){return tt().getClient()}function Vn(){return tt().getScope()}function rs(e){const t=Re(),n=Vr(),r=Vn(),{release:o,environment:i=Nr}=t&&t.getOptions()||{},{userAgent:a}=oe.navigator||{},s=Qc({release:o,environment:i,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),c=n.getSession();return c&&c.status==="ok"&&At(c,{status:"exited"}),rl(),n.setSession(s),r.setSession(s),s}function rl(){const e=Vr(),t=Vn(),n=t.getSession()||e.getSession();n&&el(n),ol(),e.setSession(),t.setSession()}function ol(){const e=Vr(),t=Vn(),n=Re(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function os(e=!1){if(e){rl();return}ol()}function il(e){return e.transaction}function al(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},a=st({environment:r.environment||Nr,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function Mm(e){const t=Re();if(!t)return{};const n=al(Ln(e).trace_id||"",t,Vn()),r=il(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:a}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const s=Ln(r);return a&&a!=="url"&&(n.transaction=s.description),n.sampled=String(Sm(r)),t.emit&&t.emit("createDsc",n),n}function sl(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Nm(e,t),r&&Vm(e,r),Bm(e,n),Fm(e,o),Um(e,i)}function is(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:p,transactionName:h,span:g}=t;xn(e,"extra",n),xn(e,"tags",r),xn(e,"user",o),xn(e,"contexts",i),xn(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function xn(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Nm(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,c=st(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=st(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=st(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=st(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}function Fm(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Um(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Vm(e,t){e.contexts={trace:km(t),...e.contexts};const n=il(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Mm(t),...e.sdkProcessingMetadata};const r=Ln(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Bm(e,t){e.fingerprint=e.fingerprint?Gc(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const jm=100;let So;class lt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=as()}static clone(t){return t?t.clone():new lt}clone(){const t=new lt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&At(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof lt){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(nn(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=as(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:jm;if(r<=0)return this;const o={timestamp:Un(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:a,_level:s,_fingerprint:c,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:f,_transactionName:p,_span:h}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:a,level:s,fingerprint:c||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:f,transactionName:p,span:h}}applyToEvent(t,n={},r=[]){sl(t,this.getScopeData());const o=[...r,...Li(),...this._eventProcessors];return xr(o,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Ne();if(!this._client)return A.warn("No client configured on scope - will not capture exception!"),r;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){const o=r&&r.event_id?r.event_id:Ne();if(!this._client)return A.warn("No client configured on scope - will not capture message!"),o;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ne();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(A.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Hm(){return So||(So=new lt),So}function as(){return{traceId:Ne(),spanId:Ne().substring(16)}}const ai="7.108.0",cl=parseFloat(ai),Gm=100;class ll{constructor(t,n,r,o=cl){this._version=o;let i;n?i=n:(i=new lt,i.setClient(t));let a;r?a=r:(a=new lt,a.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=a}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(o){throw this.popScope(),o}return Pr(r)?r.then(o=>(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Ne(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){const o=this._lastEventId=r&&r.event_id?r.event_id:Ne(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Ne();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Gm}=o.getOptions&&o.getOptions()||{};if(a<=0)return;const c={timestamp:Un(),...t},l=i?Mr(()=>i(c,n)):c;l!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",l,n),r.addBreadcrumb(l,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=ss(this);try{t(this)}finally{ss(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return fe&&A.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return fe&&!r&&(this.getClient()?A.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
16
+ Sentry.addTracingExtensions();
17
+ Sentry.init({...});
18
+ `):A.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&el(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=Nr}=r&&r.getOptions()||{},{userAgent:a}=oe.navigator||{},s=Qc({release:o,environment:i,user:n.getUser(),...a&&{userAgent:a},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&At(c,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const o=Ur().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);fe&&A.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Ur(){return oe.__SENTRY__=oe.__SENTRY__||{extensions:{},hub:void 0},oe}function ss(e){const t=Ur(),n=si(t);return dl(t,e),n}function tt(){const e=Ur();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Wm(e)}function Vr(){return tt().getIsolationScope()}function Wm(e=Ur()){return(!Km(e)||si(e).isOlderThan(cl))&&dl(e,new ll),si(e)}function Km(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function si(e){return Oc("hub",()=>new ll,e)}function dl(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Ym(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Zm(e,t,n,r){const o=Xc(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:un(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return fn(i,[a])}function Jm(e,t,n,r){const o=Xc(n),i=e.type&&e.type!=="replay_event"?e.type:"event";Ym(e,n&&n.sdk);const a=pm(e,o,r,t);return delete e.sdkProcessingMetadata,fn(a,[[{type:i},e]])}const Xm="7";function ul(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Qm(e){return`${ul(e)}${e.projectId}/envelope/`}function eg(e,t){return S1({sentry_key:e.publicKey,sentry_version:Xm,...t&&{sentry_client:`${t.name}/${t.version}`}})}function tg(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Qm(e)}?${eg(e,r)}`}function ng(e,t){const n=Fc(e);if(!n)return"";const r=`${ul(n)}embed/error-page/`;let o=`dsn=${un(n)}`;for(const i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const a=t.user;if(!a)continue;a.name&&(o+=`&name=${encodeURIComponent(a.name)}`),a.email&&(o+=`&email=${encodeURIComponent(a.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}const cs=[];function rg(e){const t={};return e.forEach(n=>{const{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function og(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Gc(n(t)):r=t;const o=rg(r),i=ag(o,a=>a.name==="Debug");if(i!==-1){const[a]=o.splice(i,1);o.push(a)}return o}function ig(e,t){const n={};return t.forEach(r=>{r&&fl(e,r,n)}),n}function ls(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function fl(e,t,n){if(n[t.name]){fe&&A.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,cs.indexOf(t.name)===-1&&(t.setupOnce(ym,tt),cs.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),o=Object.assign((i,a)=>r(i,a,e),{id:t.name});e.addEventProcessor(o)}fe&&A.log(`Integration installed: ${t.name}`)}function ag(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function $t(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}function sg(e){let t="";for(const n of e){const r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([i,a])=>`${i}:${a}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp}
19
+ `}return t}function cg(e,t,n,r){const o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=un(t));const i=lg(e);return fn(o,[i])}function lg(e){const t=sg(e);return[{type:"statsd",length:t.length},t]}const ds="Not capturing exception because it's already been captured.";class dg{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Fc(t.dsn):fe&&A.warn("No DSN provided, client will not send events."),this._dsn){const n=tg(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Za(t)){fe&&A.log(ds);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id;const a=Ii(t)?t:String(t),s=Ri(t)?this.eventFromMessage(a,n,r):this.eventFromException(t,r);return this._process(s.then(c=>this._captureEvent(c,r,o)).then(c=>{i=c})),i}captureEvent(t,n,r){if(n&&n.originalException&&Za(n.originalException)){fe&&A.log(ds);return}let o=n&&n.event_id;const a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,a||r).then(s=>{o=s})),o}captureSession(t){typeof t.release!="string"?fe&&A.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),At(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):rn(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return fe&&A.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];fl(this,t,this._integrations),n||ls(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Jm(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=lm(r,fm(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=Zm(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const o=`${t}:${n}`;fe&&A.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}captureAggregateMetrics(t){fe&&A.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=cg(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=ig(this,t),ls(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,o=!1;const i=n.exception&&n.exception.values;if(i){o=!0;for(const c of i){const l=c.mechanism;if(l&&l.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(At(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ze(n=>{let r=0;const o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=Vr()){const i=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a.length>0&&(n.integrations=a),this.emit("preprocessEvent",t,n),$m(i,t,n,r,this,o).then(s=>{if(s===null)return s;const c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&c){const{traceId:u,spanId:f,parentSpanId:p,dsc:h}=c;s.contexts={trace:{trace_id:u,span_id:f,parent_span_id:p},...s.contexts};const g=h||al(u,this,r);s.sdkProcessingMetadata={dynamicSamplingContext:g,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(fe){const i=o;i.logLevel==="log"?A.log(i.message):A.warn(i)}})}_processEvent(t,n,r){const o=this.getOptions(),{sampleRate:i}=o,a=pl(t),s=hl(t),c=t.type||"error",l=`before send for type \`${c}\``;if(s&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Ti(new Je(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",u,t),new Je("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return h;const m=fg(o,h,n);return ug(m,l)}).then(h=>{if(h===null)throw this.recordDroppedEvent("before_send",u,t),new Je(`${l} returned \`null\`, will not send event.`,"log");const g=r&&r.getSession();!a&&g&&this._updateSessionFromEvent(g,h);const m=h.transaction_info;if(a&&m&&h.transaction!==t.transaction){const b="custom";h.transaction_info={...m,source:b}}return this.sendEvent(h,n),h}).then(null,h=>{throw h instanceof Je?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),new Je(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
20
+ Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{fe&&A.error("Error while sending event:",n)});fe&&A.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}}function ug(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Pr(e))return e.then(r=>{if(!nn(r)&&r!==null)throw new Je(n);return r},r=>{throw new Je(`${t} rejected with ${r}`)});if(!nn(e)&&e!==null)throw new Je(n);return e}function fg(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return hl(t)&&r?r(t,n):pl(t)&&o?o(t,n):t}function hl(e){return e.type===void 0}function pl(e){return e.type==="transaction"}function hg(e,t){t.debug===!0&&(fe?A.enable():Mr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Vn().update(t.initialScope);const r=new e(t);pg(r),mg(r)}function pg(e){const n=tt().getStackTop();n.client=e,n.scope.setClient(e)}function mg(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const gg=30;function ml(e,t,n=im(e.bufferSize||gg)){let r={};const o=a=>n.drain(a);function i(a){const s=[];if(es(a,(f,p)=>{const h=ts(p);if(vm(r,h)){const g=us(f,p);e.recordDroppedEvent("ratelimit_backoff",h,g)}else s.push(f)}),s.length===0)return rn();const c=fn(a[0],s),l=f=>{es(c,(p,h)=>{const g=us(p,h);e.recordDroppedEvent(f,ts(h),g)})},u=()=>t({body:dm(c,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&fe&&A.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=wm(r,f),f),f=>{throw l("network_error"),f});return n.add(u).then(f=>f,f=>{if(f instanceof Je)return fe&&A.error("Skipped sending event because buffer is full."),l("queue_overflow"),rn();throw f})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function us(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function gl(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:ai})),version:ai}),e._metadata=o}const bg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],_g=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],bl="InboundFilters",vg=(e={})=>({name:bl,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),i=wg(e,o);return yg(t,i)?null:t}}),_l=vg;$t(bl,_l);function wg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:bg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:_g],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function yg(e,t){return t.ignoreInternal&&$g(e)?(fe&&A.warn(`Event dropped due to being internal Sentry Error.
21
+ Event: ${wt(e)}`),!0):xg(e,t.ignoreErrors)?(fe&&A.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
22
+ Event: ${wt(e)}`),!0):Cg(e,t.ignoreTransactions)?(fe&&A.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
23
+ Event: ${wt(e)}`),!0):kg(e,t.denyUrls)?(fe&&A.warn(`Event dropped due to being matched by \`denyUrls\` option.
24
+ Event: ${wt(e)}.
25
+ Url: ${Cr(e)}`),!0):Eg(e,t.allowUrls)?!1:(fe&&A.warn(`Event dropped due to not being matched by \`allowUrls\` option.
26
+ Event: ${wt(e)}.
27
+ Url: ${Cr(e)}`),!0)}function xg(e,t){return e.type||!t||!t.length?!1:Sg(e).some(n=>Or(n,t))}function Cg(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Or(n,t):!1}function kg(e,t){if(!t||!t.length)return!1;const n=Cr(e);return n?Or(n,t):!1}function Eg(e,t){if(!t||!t.length)return!0;const n=Cr(e);return n?Or(n,t):!0}function Sg(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),fe&&t.length===0&&A.error(`Could not extract message for event ${wt(e)}`),t}function $g(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Ig(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Cr(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Ig(t):null}catch{return fe&&A.error(`Cannot extract url for event ${wt(e)}`),null}}let fs;const vl="FunctionToString",hs=new WeakMap,Rg=()=>({name:vl,setupOnce(){fs=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Di(this),n=hs.has(Re())&&t!==void 0?t:this;return fs.apply(n,e)}}catch{}},setup(e){hs.set(e,!0)}}),wl=Rg;$t(vl,wl);const ee=oe;let ci=0;function yl(){return ci>0}function qg(){ci++,setTimeout(()=>{ci--})}function on(e,t={},n){if(typeof e!="function")return e;try{const o=e.__sentry_wrapped__;if(o)return o;if(Di(e))return e}catch{return e}const r=function(){const o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const i=o.map(a=>on(a,t));return e.apply(this,i)}catch(i){throw qg(),nl(a=>{a.addEventProcessor(s=>(t.mechanism&&(Xo(s,void 0,void 0),Tn(s,t.mechanism)),s.extra={...s.extra,arguments:o},s)),Fr(i)}),i}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Uc(r,e),Dn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function xl(e,t){const n=Ai(e,t),r={type:t&&t.name,value:Lg(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function zg(e,t,n,r){const o=Re(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:Ar(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Og(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Yc(t,i)}};if(n){const s=Ai(e,n);s.length&&(a.exception.values[0].stacktrace={frames:s})}return a}function $o(e,t){return{exception:{values:[xl(e,t)]}}}function Ai(e,t){const n=t.stacktrace||t.stack||"",r=Tg(t);try{return e(n,r)}catch{}return[]}const Dg=/Minified React error #\d+;/i;function Tg(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Dg.test(e.message))return 1}return 0}function Lg(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Ag(e,t,n,r){const o=n&&n.syntheticException||void 0,i=Pi(e,t,o,r);return Tn(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),rn(i)}function Pg(e,t,n="info",r,o){const i=r&&r.syntheticException||void 0,a=li(e,t,i,o);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),rn(a)}function Pi(e,t,n,r,o){let i;if($i(t)&&t.error)return $o(e,t.error);if(Ua(t)||c1(t)){const a=t;if("stack"in t)i=$o(e,t);else{const s=a.name||(Ua(a)?"DOMError":"DOMException"),c=a.message?`${s}: ${a.message}`:s;i=li(e,c,n,r),Xo(i,c)}return"code"in a&&(i.tags={...i.tags,"DOMException.code":`${a.code}`}),i}return Si(t)?$o(e,t):nn(t)||Ar(t)?(i=zg(e,t,n,o),Tn(i,{synthetic:!0}),i):(i=li(e,t,n,r),Xo(i,`${t}`,void 0),Tn(i,{synthetic:!0}),i)}function li(e,t,n,r){const o={};if(r&&n){const i=Ai(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(Ii(t)){const{__sentry_template_string__:i,__sentry_template_values__:a}=t;return o.logentry={message:i,params:a},o}return o.message=t,o}function Og(e,{isUnhandledRejection:t}){const n=$1(e),r=t?"promise rejection":"exception";return $i(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ar(e)?`Event \`${Mg(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Mg(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ng(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:un(r)}},i=Fg(e);return fn(o,[i])}function Fg(e){return[{type:"user_report"},e]}class Ug extends dg{constructor(t){const n=ee.SENTRY_SDK_SOURCE||Q1();gl(t,"browser",["browser"],n),super(t),t.sendClientReports&&ee.document&&ee.document.addEventListener("visibilitychange",()=>{ee.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Ag(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Pg(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Me&&A.warn("SDK not enabled, will not capture user feedback.");return}const n=Ng(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Me&&A.log("No outcomes to send");return}if(!this._dsn){Me&&A.log("No dsn provided, will not send outcomes");return}Me&&A.log("Sending outcomes:",t);const n=mm(t,this._options.tunnel&&un(this._dsn));this._sendEnvelope(n)}}let En;function Vg(){if(En)return En;if(ni(ee.fetch))return En=ee.fetch.bind(ee);const e=ee.document;let t=ee.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Me&&A.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return En=t.bind(ee)}function Bg(){En=void 0}function jg(e,t=Vg()){let n=0,r=0;function o(i){const a=i.body.length;n+=a,r++;const s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(c=>(n-=a,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Bg(),n-=a,r--,Ti(c)}}return ml(e,o)}const Hg=4;function Gg(e){function t(n){return new ze((r,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Hg&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&i.setRequestHeader(a,e.headers[a]);i.send(n.body)})}return ml(e,t)}const Br="?",Wg=30,Kg=40,Yg=50;function Oi(e,t,n,r){const o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}const Zg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Jg=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xg=e=>{const t=Zg.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=Jg.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,o]=Cl(t[1]||Br,t[2]);return Oi(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Qg=[Wg,Xg],e0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,t0=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,n0=e=>{const t=e0.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=t0.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||Br;return[o,r]=Cl(o,r),Oi(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},r0=[Yg,n0],o0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,i0=e=>{const t=o0.exec(e);return t?Oi(t[2],t[1]||Br,+t[3],t[4]?+t[4]:void 0):void 0},a0=[Kg,i0],s0=[Qg,r0,a0],c0=jc(...s0),Cl=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Br,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},nr=1024,kl="Breadcrumbs",l0=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:kl,setupOnce(){},setup(n){t.console&&z1(f0(n)),t.dom&&L1(u0(n,t.dom)),t.xhr&&Z1(h0(n)),t.fetch&&F1(p0(n)),t.history&&Kc(m0(n)),t.sentry&&n.on&&n.on("beforeSendEvent",d0(n))}}},El=l0;$t(kl,El);function d0(e){return function(n){Re()===e&&Pt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:wt(n)},{event:n})}}function u0(e,t){return function(r){if(Re()!==e)return;let o,i,a=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>nr&&(Me&&A.warn(`\`dom.maxStringLength\` cannot exceed ${nr}, but a value of ${s} was configured. Sentry will use ${nr} instead.`),s=nr),typeof a=="string"&&(a=[a]);try{const l=r.event,u=g0(l)?l.target:l;o=Mc(u,{keyAttrs:a,maxStringLength:s}),i=v1(u)}catch{o="<unknown>"}if(o.length===0)return;const c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),Pt(c,{event:r.event,name:r.name,global:r.global})}}function f0(e){return function(n){if(Re()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:sm(n.level),message:Va(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Va(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Pt(r,{input:n.args,level:n.level})}}function h0(e){return function(n){if(Re()!==e)return;const{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[kn];if(!r||!o||!i)return;const{method:a,url:s,status_code:c,body:l}=i,u={method:a,url:s,status_code:c},f={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:o};Pt({category:"xhr",data:u,type:"http"},f)}}function p0(e){return function(n){if(Re()!==e)return;const{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Pt({category:"fetch",data:i,level:"error",type:"http"},a)}else{const i=n.response,a={...n.fetchData,status_code:i&&i.status},s={input:n.args,response:i,startTimestamp:r,endTimestamp:o};Pt({category:"fetch",data:a,type:"http"},s)}}}function m0(e){return function(n){if(Re()!==e)return;let r=n.from,o=n.to;const i=Eo(ee.location.href);let a=r?Eo(r):void 0;const s=Eo(o);(!a||!a.path)&&(a=i),i.protocol===s.protocol&&i.host===s.host&&(o=s.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),Pt({category:"navigation",data:{from:r,to:o}})}}function g0(e){return!!e&&!!e.target}const Sl="Dedupe",b0=()=>{let e;return{name:Sl,setupOnce(){},processEvent(t){if(t.type)return t;try{if(_0(t,e))return Me&&A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},$l=b0;$t(Sl,$l);function _0(e,t){return t?!!(v0(e,t)||w0(e,t)):!1}function v0(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rl(e,t)||!Il(e,t))}function w0(e,t){const n=ps(t),r=ps(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rl(e,t)||!Il(e,t))}function Il(e,t){let n=ms(e),r=ms(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){const i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Rl(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function ps(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ms(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const ql="GlobalHandlers",y0=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ql,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(x0(n),gs("onerror")),t.onunhandledrejection&&(C0(n),gs("onunhandledrejection"))}}},zl=y0;$t(ql,zl);function x0(e){B1(t=>{const{stackParser:n,attachStacktrace:r}=Tl();if(Re()!==e||yl())return;const{msg:o,url:i,line:a,column:s,error:c}=t,l=c===void 0&&ct(o)?S0(o,i,a,s):Dl(Pi(n,c||o,void 0,r,!1),i,a,s);l.level="error",tl(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function C0(e){H1(t=>{const{stackParser:n,attachStacktrace:r}=Tl();if(Re()!==e||yl())return;const o=k0(t),i=Ri(o)?E0(o):Pi(n,o,void 0,r,!0);i.level="error",tl(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function k0(e){if(Ri(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function E0(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function S0(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=$i(e)?e.message:e,a="Error";const s=i.match(o);return s&&(a=s[1],i=s[2]),Dl({exception:{values:[{type:a,value:i}]}},t,n,r)}function Dl(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,f=ct(t)&&t.length>0?t:_1();return c.length===0&&c.push({colno:l,filename:f,function:"?",in_app:!0,lineno:u}),e}function gs(e){Me&&A.log(`Global Handler attached: ${e}`)}function Tl(){const e=Re();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ll="HttpContext",$0=()=>({name:Ll,setupOnce(){},preprocessEvent(e){if(!ee.navigator&&!ee.location&&!ee.document)return;const t=e.request&&e.request.url||ee.location&&ee.location.href,{referrer:n}=ee.document||{},{userAgent:r}=ee.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),Al=$0;$t(Ll,Al);const I0="cause",R0=5,Pl="LinkedErrors",q0=(e={})=>{const t=e.limit||R0,n=e.key||I0;return{name:Pl,setupOnce(){},preprocessEvent(r,o,i){const a=i.getOptions();p1(xl,a.stackParser,a.maxValueLength,n,t,r,o)}}},Ol=q0;$t(Pl,Ol);const z0=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ml="TryCatch",D0=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Ml,setupOnce(){t.setTimeout&&Ee(ee,"setTimeout",bs),t.setInterval&&Ee(ee,"setInterval",bs),t.requestAnimationFrame&&Ee(ee,"requestAnimationFrame",T0),t.XMLHttpRequest&&"XMLHttpRequest"in ee&&Ee(XMLHttpRequest.prototype,"send",L0);const n=t.eventTarget;n&&(Array.isArray(n)?n:z0).forEach(A0)}}},Nl=D0;$t(Ml,Nl);function bs(e){return function(...t){const n=t[0];return t[0]=on(n,{mechanism:{data:{function:xt(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function T0(e){return function(t){return e.apply(this,[on(t,{mechanism:{data:{function:"requestAnimationFrame",handler:xt(e)},handled:!1,type:"instrument"}})])}}function L0(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Ee(n,o,function(i){const a={mechanism:{data:{function:o,handler:xt(i)},handled:!1,type:"instrument"}},s=Di(i);return s&&(a.mechanism.data.handler=xt(s)),on(i,a)})}),e.apply(this,t)}}function A0(e){const t=ee,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ee(n,"addEventListener",function(r){return function(o,i,a){try{typeof i.handleEvent=="function"&&(i.handleEvent=on(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:xt(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,on(i,{mechanism:{data:{function:"addEventListener",handler:xt(i),target:e},handled:!1,type:"instrument"}}),a])}}),Ee(n,"removeEventListener",function(r){return function(o,i,a){const s=i;try{const c=s&&s.__sentry_wrapped__;c&&r.call(this,o,c,a)}catch{}return r.call(this,o,s,a)}}))}const P0=[_l(),wl(),Nl(),El(),zl(),Ol(),$l(),Al()];function O0(e){return[...P0]}function M0(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=O0()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ee.SENTRY_RELEASE&&ee.SENTRY_RELEASE.id&&(e.release=ee.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:R1(e.stackParser||c0),integrations:og(e),transport:e.transport||(Wc()?jg:Gg)};hg(Ug,t),e.autoSessionTracking&&N0()}const _s=(e={},t=tt())=>{if(!ee.document){Me&&A.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){Me&&A.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const i=ee.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=ng(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:a}=e;if(a){const c=l=>{if(l.data==="__sentry_reportdialog_closed__")try{a()}finally{ee.removeEventListener("message",c)}};ee.addEventListener("message",c)}const s=ee.document.head||ee.document.body;s?s.appendChild(i):Me&&A.error("Not injecting report dialog. No injection point found in HTML")};function N0(){if(typeof ee.document>"u"){Me&&A.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}rs({ignoreDuration:!0}),os(),Kc(({from:e,to:t})=>{e!==void 0&&e!==t&&(rs({ignoreDuration:!0}),os())})}function F0(e){const t={...e};gl(t,"react"),M0(t)}var Fl={exports:{}},ae={};/** @license React v16.13.1
28
+ * react-is.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var ye=typeof Symbol=="function"&&Symbol.for,Mi=ye?Symbol.for("react.element"):60103,Ni=ye?Symbol.for("react.portal"):60106,jr=ye?Symbol.for("react.fragment"):60107,Hr=ye?Symbol.for("react.strict_mode"):60108,Gr=ye?Symbol.for("react.profiler"):60114,Wr=ye?Symbol.for("react.provider"):60109,Kr=ye?Symbol.for("react.context"):60110,Fi=ye?Symbol.for("react.async_mode"):60111,Yr=ye?Symbol.for("react.concurrent_mode"):60111,Zr=ye?Symbol.for("react.forward_ref"):60112,Jr=ye?Symbol.for("react.suspense"):60113,U0=ye?Symbol.for("react.suspense_list"):60120,Xr=ye?Symbol.for("react.memo"):60115,Qr=ye?Symbol.for("react.lazy"):60116,V0=ye?Symbol.for("react.block"):60121,B0=ye?Symbol.for("react.fundamental"):60117,j0=ye?Symbol.for("react.responder"):60118,H0=ye?Symbol.for("react.scope"):60119;function Oe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mi:switch(e=e.type,e){case Fi:case Yr:case jr:case Gr:case Hr:case Jr:return e;default:switch(e=e&&e.$$typeof,e){case Kr:case Zr:case Qr:case Xr:case Wr:return e;default:return t}}case Ni:return t}}}function Ul(e){return Oe(e)===Yr}ae.AsyncMode=Fi;ae.ConcurrentMode=Yr;ae.ContextConsumer=Kr;ae.ContextProvider=Wr;ae.Element=Mi;ae.ForwardRef=Zr;ae.Fragment=jr;ae.Lazy=Qr;ae.Memo=Xr;ae.Portal=Ni;ae.Profiler=Gr;ae.StrictMode=Hr;ae.Suspense=Jr;ae.isAsyncMode=function(e){return Ul(e)||Oe(e)===Fi};ae.isConcurrentMode=Ul;ae.isContextConsumer=function(e){return Oe(e)===Kr};ae.isContextProvider=function(e){return Oe(e)===Wr};ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mi};ae.isForwardRef=function(e){return Oe(e)===Zr};ae.isFragment=function(e){return Oe(e)===jr};ae.isLazy=function(e){return Oe(e)===Qr};ae.isMemo=function(e){return Oe(e)===Xr};ae.isPortal=function(e){return Oe(e)===Ni};ae.isProfiler=function(e){return Oe(e)===Gr};ae.isStrictMode=function(e){return Oe(e)===Hr};ae.isSuspense=function(e){return Oe(e)===Jr};ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jr||e===Yr||e===Gr||e===Hr||e===Jr||e===U0||typeof e=="object"&&e!==null&&(e.$$typeof===Qr||e.$$typeof===Xr||e.$$typeof===Wr||e.$$typeof===Kr||e.$$typeof===Zr||e.$$typeof===B0||e.$$typeof===j0||e.$$typeof===H0||e.$$typeof===V0)};ae.typeOf=Oe;Fl.exports=ae;var G0=Fl.exports,Vl=G0,W0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},K0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bl={};Bl[Vl.ForwardRef]=W0;Bl[Vl.Memo]=K0;const Y0=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Z0(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const vs={componentStack:null,error:null,eventId:null};function J0(e,t){const n=new WeakMap;function r(o,i){if(!n.has(o)){if(o.cause)return n.set(o,!0),r(o.cause,i);o.cause=i}}r(e,t)}class Ui extends d.Component{constructor(t){super(t),Ui.prototype.__init.call(this),this.state=vs,this._openFallbackReportDialog=!0;const n=Re();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&_s({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:o,showDialog:i,dialogOptions:a}=this.props;nl(s=>{if(Z0(d.version)&&Si(t)){const l=new Error(t.message);l.name=`React ErrorBoundary ${t.name}`,l.stack=n,J0(t,l)}r&&r(s,t,n);const c=Fr(t,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});o&&o(t,n,c),i&&(this._lastEventId=c,this._openFallbackReportDialog&&_s({...a,eventId:c})),this.setState({error:t,componentStack:n,eventId:c})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&o(t,n,r)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState(vs)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let o;return typeof t=="function"?o=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):o=t,d.isValidElement(o)?o:(t&&Y0&&A.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function jl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function He(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jl(e))&&(r&&(r+=" "),r+=t);return r}var X0="y2413r0",Q0="y2413r1",eb="y2413r2",tb="y2413r3",ws="sid-theme-root";function Hl(){return typeof window<"u"&&globalThis===window}function Gl({theme:e,className:t}){return He(ws,`${ws}__${e}`,tb,{[X0]:e==="dark",[eb]:e==="auto",[Q0]:e==="light"},t)}function nb({theme:e,className:t}){const n=Gl({theme:e,className:t});document.body.classList.add(...n.split(" "))}const Wl=({children:e})=>C.jsx("div",{className:Gl({theme:"light"}),children:e}),rb=({children:e,theme:t="light",className:n})=>{const[r,o]=U.useState(!1);return d.useLayoutEffect(()=>{r||o(!0)},[n,r,t]),d.useLayoutEffect(()=>{r&&nb({theme:t,className:n})},[n,r,t]),r?C.jsx(C.Fragment,{children:e}):C.jsx(Wl,{children:e})};function ob({children:e,theme:t="light",className:n}){return Hl()?C.jsx(rb,{theme:t,className:n,children:e}):C.jsx(Wl,{children:e})}var ib={default:"_92y0ua2 _92y0ua1",short:"_92y0ua3 _92y0ua1"};const Vi=({className:e,variant:t="default"})=>C.jsx("div",{className:He(ib[t],e)});var ab={primary:"eccmw2 eccmw0",secondary:"eccmw3 eccmw0",secondaryMd:"eccmw4 eccmw0 eccmw1",neutral:"eccmw5 eccmw0",neutralMd:"eccmw6 eccmw0 eccmw1",ghost:"eccmw7 eccmw0",ghostMd:"eccmw8 eccmw0 eccmw1"},sb="eccmw9",cb="eccmwa",lb={primary:"eccmwb",secondary:"eccmwc",secondaryMd:"eccmwd",neutral:"eccmwe",neutralMd:"eccmwf",ghost:"eccmwg",ghostMd:"eccmwh"};const Kl=d.forwardRef(({children:e,onClick:t,className:n,type:r="button",variant:o="primary",testId:i,icon:a,disabled:s,loading:c=!1,style:l},u)=>C.jsx("button",{style:l,ref:u,"data-testid":i,type:r,disabled:s,className:He("sid-button",`sid-button--${o}`,ab[o],{[sb]:s},n),onClick:t,children:c?C.jsx(Vi,{variant:"short",className:lb[o]}):C.jsxs(C.Fragment,{children:[a?C.jsx("i",{className:cb,children:a}):null,e]})}));Kl.displayName="Button";var db="_1doytsg0",ub="_1doytsg3",fb="_1doytsg4",hb={text:"_1doytsg6 _1doytsg5",email:"_1doytsg7 _1doytsg5",password:"_1doytsg8 _1doytsg5",tel:"_1doytsg9 _1doytsg5"},pb="_1doytsga",mb="_1doytsgc";const gb=({id:e,name:t,label:n,placeholder:r="",autoComplete:o="",value:i,onChange:a,type:s="text",style:c})=>{const l=d.useCallback(u=>{a(u)},[a]);return C.jsxs("div",{className:hb[s],children:[C.jsx("label",{htmlFor:e,className:pb,children:n}),C.jsx("input",{style:c,type:s,id:e,name:t,className:db,placeholder:r,value:i,onChange:l,autoComplete:o})]})},Bi=`
35
+ @media (prefers-color-scheme: dark) {
36
+ .sid-theme-root__auto path { fill: white; }
37
+ }
38
+
39
+ .sid-theme-root__dark path { fill: white; }
40
+ `;function bb(){return C.jsxs("svg",{width:"5",height:"20",viewBox:"0 0 5 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 0C3.32843 1.19209e-07 4 0.671573 4 1.5L4 11.5C4 12.3284 3.32843 13 2.5 13C1.67157 13 1 12.3284 1 11.5L1 1.5C1 0.671573 1.67157 -1.19209e-07 2.5 0Z",fill:"white"}),C.jsx("path",{d:"M4.5 18C4.5 19.1046 3.60457 20 2.5 20C1.39543 20 0.5 19.1046 0.5 18C0.5 16.8954 1.39543 16 2.5 16C3.60457 16 4.5 16.8954 4.5 18Z",fill:"white"})]})}const _b=()=>C.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("style",{children:Bi}),C.jsx("g",{clipPath:"url(#clip0_2610_9920)",children:C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z",fill:"#142049"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_2610_9920",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),vb=()=>C.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("style",{children:Bi}),C.jsxs("g",{clipPath:"url(#clip0_2610_9933)",children:[C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z",fill:"#142049"}),C.jsx("path",{d:"M2.34314 2.34315L13.6568 13.6569",stroke:"#142049",strokeWidth:"1.5",strokeLinecap:"round"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_2610_9933",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),Yl=()=>C.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("style",{children:Bi}),C.jsx("path",{d:"M12.686 10L2 30.228H5.198L15.884 10H12.686Z",fill:"#2A6AFF"}),C.jsx("path",{d:"M19.7923 15.694C20.9373 15.694 21.8723 14.732 21.8723 13.588C21.8723 12.444 20.9373 11.482 19.7923 11.482C18.6223 11.482 17.6873 12.444 17.6873 13.588C17.6873 14.732 18.6233 15.694 19.7933 15.694H19.7923ZM18.0773 17.514V30.228H21.4573V17.514H18.0773ZM34.1883 10V18.502C33.172 17.6398 31.8809 17.1695 30.5483 17.176C26.8563 17.176 24.0743 20.14 24.0743 23.884C24.0743 27.628 26.8563 30.592 30.5483 30.592C32.0823 30.592 33.4343 30.02 34.4483 29.032V30.228H37.5683V10H34.1883ZM30.9383 27.42C28.9883 27.42 27.5583 25.912 27.5583 23.884C27.5583 21.856 28.9883 20.348 30.9383 20.348C32.8883 20.348 34.3183 21.856 34.3183 23.884C34.3183 25.912 32.8883 27.42 30.9383 27.42Z",fill:"#142049"})]}),ys=e=>{const[t,n]=d.useState(!1);return C.jsxs("div",{className:He("sid-input","sid-input--password",ub,e.error&&fb,e.className),style:e.style,children:[C.jsx(gb,{...e,type:t?"text":"password"}),C.jsx("button",{tabIndex:-1,className:mb,type:"button",onClick:()=>n(!t),children:t?C.jsx(vb,{}):C.jsx(_b,{})})]})};var wb="_1rf2mux3",yb="_1rf2mux5",xb={blue:"_1rf2mux6 _1rf2mux4",red:"_1rf2mux7 _1rf2mux4",primary:"_1rf2mux8 _1rf2mux4"},Cb="_1rf2muxa",kb={blue:"_1rf2muxb _1rf2mux9",red:"_1rf2muxc _1rf2mux9",primary:"_1rf2muxd _1rf2mux9"},Eb="_1rf2muxf",Sb={blue:"_1rf2muxg _1rf2muxe",red:"_1rf2muxh _1rf2muxe",primary:"_1rf2muxi _1rf2muxe"},$b="_1rf2muxj";const eo=({children:e,className:t,variant:n="blue",shouldAnimate:r=!0})=>C.jsxs("div",{className:He(wb,t),children:[C.jsx("div",{className:He(xb[n],{[yb]:r})}),C.jsx("div",{className:He(kb[n],{[Cb]:r})}),C.jsx("div",{className:He(Sb[n],{[Eb]:r})}),C.jsx("div",{className:$b,children:e})]});function Ib(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(n),!0).forEach(function(r){Ib(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rb=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==((o=t[r])!==null&&o!==void 0?o:n[r]))return!1}return!0},Zl=e=>t=>{var n=e.defaultClassName,r=Cs(Cs({},e.defaultVariants),t);for(var o in r){var i,a=(i=r[o])!==null&&i!==void 0?i:e.defaultVariants[o];if(a!=null){var s=a;typeof s=="boolean"&&(s=s===!0?"true":"false");var c=e.variantClassNames[o][s];c&&(n+=" "+c)}}for(var[l,u]of e.compoundVariants)Rb(l,r,e.defaultVariants)&&(n+=" "+u);return n},qb=Zl({defaultClassName:"s3l9sv0",variantClassNames:{direction:{vertical:"s3l9sv1",horizontal:"s3l9sv2"},space:{between:"s3l9sv3",evenly:"s3l9sv4"}},defaultVariants:{direction:"vertical"},compoundVariants:[]});function zb(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Db(e){var t=zb(e,"string");return typeof t=="symbol"?t:String(t)}function Tb(e,t,n){return t=Db(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ks(Object(n),!0).forEach(function(r){Tb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Lb=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map(c=>c.styles)),i=Object.keys(o),a=i.filter(c=>"mappings"in o[c]),s=c=>{var l=[],u={},f=Io({},c),p=!1;for(var h of a){var g=c[h];if(g!=null){var m=o[h];p=!0;for(var b of m.mappings)u[b]=g,f[b]==null&&delete f[b]}}var w=p?Io(Io({},u),f):c,v=function(){var q=w[y],I=o[y];try{if(I.mappings)return"continue";if(typeof q=="string"||typeof q=="number")l.push(I.values[q].defaultClass);else if(Array.isArray(q))for(var R=0;R<q.length;R++){var L=q[R];if(L!=null){var H=I.responsiveArray[R];l.push(I.values[L].conditions[H])}}else for(var B in q){var j=q[B];j!=null&&l.push(I.values[j].conditions[B])}}catch(Z){throw Z}};for(var y in w)var x=v();return e(l.join(" "))};return Object.assign(s,{properties:new Set(i)})},Ab=e=>e,Pb=function(){return Lb(Ab)(...arguments)},Jl=Pb({conditions:{defaultCondition:"lightMode",conditionNames:["lightMode","darkMode"],responsiveArray:void 0},styles:{color:{values:{background:{conditions:{lightMode:"_1hbz9ox0",darkMode:"_1hbz9ox1"},defaultClass:"_1hbz9ox0"},mute:{conditions:{lightMode:"_1hbz9ox2",darkMode:"_1hbz9ox3"},defaultClass:"_1hbz9ox2"},panel:{conditions:{lightMode:"_1hbz9ox4",darkMode:"_1hbz9ox5"},defaultClass:"_1hbz9ox4"},foreground:{conditions:{lightMode:"_1hbz9ox6",darkMode:"_1hbz9ox7"},defaultClass:"_1hbz9ox6"},contrast:{conditions:{lightMode:"_1hbz9ox8",darkMode:"_1hbz9ox9"},defaultClass:"_1hbz9ox8"},secondary:{conditions:{lightMode:"_1hbz9oxa",darkMode:"_1hbz9oxb"},defaultClass:"_1hbz9oxa"},tertiary:{conditions:{lightMode:"_1hbz9oxc",darkMode:"_1hbz9oxd"},defaultClass:"_1hbz9oxc"},placeholder:{conditions:{lightMode:"_1hbz9oxe",darkMode:"_1hbz9oxf"},defaultClass:"_1hbz9oxe"},smooth:{conditions:{lightMode:"_1hbz9oxg",darkMode:"_1hbz9oxh"},defaultClass:"_1hbz9oxg"},subtle:{conditions:{lightMode:"_1hbz9oxi",darkMode:"_1hbz9oxj"},defaultClass:"_1hbz9oxi"},soft:{conditions:{lightMode:"_1hbz9oxk",darkMode:"_1hbz9oxl"},defaultClass:"_1hbz9oxk"},offset:{conditions:{lightMode:"_1hbz9oxm",darkMode:"_1hbz9oxn"},defaultClass:"_1hbz9oxm"},primary:{conditions:{lightMode:"_1hbz9oxo",darkMode:"_1hbz9oxp"},defaultClass:"_1hbz9oxo"},primaryHover:{conditions:{lightMode:"_1hbz9oxq",darkMode:"_1hbz9oxr"},defaultClass:"_1hbz9oxq"},transparent:{conditions:{lightMode:"_1hbz9oxs",darkMode:"_1hbz9oxt"},defaultClass:"_1hbz9oxs"},error:{conditions:{lightMode:"_1hbz9oxu",darkMode:"_1hbz9oxv"},defaultClass:"_1hbz9oxu"},auxiliary:{conditions:{lightMode:"_1hbz9oxw",darkMode:"_1hbz9oxx"},defaultClass:"_1hbz9oxw"},success:{conditions:{lightMode:"_1hbz9oxy",darkMode:"_1hbz9oxz"},defaultClass:"_1hbz9oxy"},foregroundSuccess:{conditions:{lightMode:"_1hbz9ox10",darkMode:"_1hbz9ox11"},defaultClass:"_1hbz9ox10"},backgroundSuccess:{conditions:{lightMode:"_1hbz9ox12",darkMode:"_1hbz9ox13"},defaultClass:"_1hbz9ox12"},failure:{conditions:{lightMode:"_1hbz9ox14",darkMode:"_1hbz9ox15"},defaultClass:"_1hbz9ox14"},foregroundFailure:{conditions:{lightMode:"_1hbz9ox16",darkMode:"_1hbz9ox17"},defaultClass:"_1hbz9ox16"},backgroundFailure:{conditions:{lightMode:"_1hbz9ox18",darkMode:"_1hbz9ox19"},defaultClass:"_1hbz9ox18"}}},backgroundColor:{values:{background:{conditions:{lightMode:"_1hbz9ox1a",darkMode:"_1hbz9ox1b"},defaultClass:"_1hbz9ox1a"},mute:{conditions:{lightMode:"_1hbz9ox1c",darkMode:"_1hbz9ox1d"},defaultClass:"_1hbz9ox1c"},panel:{conditions:{lightMode:"_1hbz9ox1e",darkMode:"_1hbz9ox1f"},defaultClass:"_1hbz9ox1e"},foreground:{conditions:{lightMode:"_1hbz9ox1g",darkMode:"_1hbz9ox1h"},defaultClass:"_1hbz9ox1g"},contrast:{conditions:{lightMode:"_1hbz9ox1i",darkMode:"_1hbz9ox1j"},defaultClass:"_1hbz9ox1i"},secondary:{conditions:{lightMode:"_1hbz9ox1k",darkMode:"_1hbz9ox1l"},defaultClass:"_1hbz9ox1k"},tertiary:{conditions:{lightMode:"_1hbz9ox1m",darkMode:"_1hbz9ox1n"},defaultClass:"_1hbz9ox1m"},placeholder:{conditions:{lightMode:"_1hbz9ox1o",darkMode:"_1hbz9ox1p"},defaultClass:"_1hbz9ox1o"},smooth:{conditions:{lightMode:"_1hbz9ox1q",darkMode:"_1hbz9ox1r"},defaultClass:"_1hbz9ox1q"},subtle:{conditions:{lightMode:"_1hbz9ox1s",darkMode:"_1hbz9ox1t"},defaultClass:"_1hbz9ox1s"},soft:{conditions:{lightMode:"_1hbz9ox1u",darkMode:"_1hbz9ox1v"},defaultClass:"_1hbz9ox1u"},offset:{conditions:{lightMode:"_1hbz9ox1w",darkMode:"_1hbz9ox1x"},defaultClass:"_1hbz9ox1w"},primary:{conditions:{lightMode:"_1hbz9ox1y",darkMode:"_1hbz9ox1z"},defaultClass:"_1hbz9ox1y"},primaryHover:{conditions:{lightMode:"_1hbz9ox20",darkMode:"_1hbz9ox21"},defaultClass:"_1hbz9ox20"},transparent:{conditions:{lightMode:"_1hbz9ox22",darkMode:"_1hbz9ox23"},defaultClass:"_1hbz9ox22"},error:{conditions:{lightMode:"_1hbz9ox24",darkMode:"_1hbz9ox25"},defaultClass:"_1hbz9ox24"},auxiliary:{conditions:{lightMode:"_1hbz9ox26",darkMode:"_1hbz9ox27"},defaultClass:"_1hbz9ox26"},success:{conditions:{lightMode:"_1hbz9ox28",darkMode:"_1hbz9ox29"},defaultClass:"_1hbz9ox28"},foregroundSuccess:{conditions:{lightMode:"_1hbz9ox2a",darkMode:"_1hbz9ox2b"},defaultClass:"_1hbz9ox2a"},backgroundSuccess:{conditions:{lightMode:"_1hbz9ox2c",darkMode:"_1hbz9ox2d"},defaultClass:"_1hbz9ox2c"},failure:{conditions:{lightMode:"_1hbz9ox2e",darkMode:"_1hbz9ox2f"},defaultClass:"_1hbz9ox2e"},foregroundFailure:{conditions:{lightMode:"_1hbz9ox2g",darkMode:"_1hbz9ox2h"},defaultClass:"_1hbz9ox2g"},backgroundFailure:{conditions:{lightMode:"_1hbz9ox2i",darkMode:"_1hbz9ox2j"},defaultClass:"_1hbz9ox2i"}}}}},{conditions:void 0,styles:{marginY:{mappings:["marginTop","marginBottom"]},marginX:{mappings:["marginLeft","marginRight"]},gap:{values:{0:{defaultClass:"_1hbz9ox2k"},1:{defaultClass:"_1hbz9ox2l"},2:{defaultClass:"_1hbz9ox2m"},3:{defaultClass:"_1hbz9ox2n"},4:{defaultClass:"_1hbz9ox2o"},5:{defaultClass:"_1hbz9ox2p"},6:{defaultClass:"_1hbz9ox2q"},7:{defaultClass:"_1hbz9ox2r"},8:{defaultClass:"_1hbz9ox2s"},9:{defaultClass:"_1hbz9ox2t"},10:{defaultClass:"_1hbz9ox2u"},11:{defaultClass:"_1hbz9ox2v"},12:{defaultClass:"_1hbz9ox2w"},13:{defaultClass:"_1hbz9ox2x"},14:{defaultClass:"_1hbz9ox2y"},15:{defaultClass:"_1hbz9ox2z"},16:{defaultClass:"_1hbz9ox30"},20:{defaultClass:"_1hbz9ox31"},24:{defaultClass:"_1hbz9ox32"},28:{defaultClass:"_1hbz9ox33"},32:{defaultClass:"_1hbz9ox34"},36:{defaultClass:"_1hbz9ox35"},40:{defaultClass:"_1hbz9ox36"},44:{defaultClass:"_1hbz9ox37"},48:{defaultClass:"_1hbz9ox38"},52:{defaultClass:"_1hbz9ox39"},56:{defaultClass:"_1hbz9ox3a"},60:{defaultClass:"_1hbz9ox3b"},64:{defaultClass:"_1hbz9ox3c"},68:{defaultClass:"_1hbz9ox3d"},72:{defaultClass:"_1hbz9ox3e"},76:{defaultClass:"_1hbz9ox3f"},80:{defaultClass:"_1hbz9ox3g"},96:{defaultClass:"_1hbz9ox3h"},px:{defaultClass:"_1hbz9ox3i"},"0.25":{defaultClass:"_1hbz9ox3j"},"0.5":{defaultClass:"_1hbz9ox3k"},"0.75":{defaultClass:"_1hbz9ox3l"},"1.5":{defaultClass:"_1hbz9ox3m"},"2.5":{defaultClass:"_1hbz9ox3n"},"3.5":{defaultClass:"_1hbz9ox3o"}}},marginTop:{values:{0:{defaultClass:"_1hbz9ox3p"},1:{defaultClass:"_1hbz9ox3q"},2:{defaultClass:"_1hbz9ox3r"},3:{defaultClass:"_1hbz9ox3s"},4:{defaultClass:"_1hbz9ox3t"},5:{defaultClass:"_1hbz9ox3u"},6:{defaultClass:"_1hbz9ox3v"},7:{defaultClass:"_1hbz9ox3w"},8:{defaultClass:"_1hbz9ox3x"},9:{defaultClass:"_1hbz9ox3y"},10:{defaultClass:"_1hbz9ox3z"},11:{defaultClass:"_1hbz9ox40"},12:{defaultClass:"_1hbz9ox41"},13:{defaultClass:"_1hbz9ox42"},14:{defaultClass:"_1hbz9ox43"},15:{defaultClass:"_1hbz9ox44"},16:{defaultClass:"_1hbz9ox45"},20:{defaultClass:"_1hbz9ox46"},24:{defaultClass:"_1hbz9ox47"},28:{defaultClass:"_1hbz9ox48"},32:{defaultClass:"_1hbz9ox49"},36:{defaultClass:"_1hbz9ox4a"},40:{defaultClass:"_1hbz9ox4b"},44:{defaultClass:"_1hbz9ox4c"},48:{defaultClass:"_1hbz9ox4d"},52:{defaultClass:"_1hbz9ox4e"},56:{defaultClass:"_1hbz9ox4f"},60:{defaultClass:"_1hbz9ox4g"},64:{defaultClass:"_1hbz9ox4h"},68:{defaultClass:"_1hbz9ox4i"},72:{defaultClass:"_1hbz9ox4j"},76:{defaultClass:"_1hbz9ox4k"},80:{defaultClass:"_1hbz9ox4l"},96:{defaultClass:"_1hbz9ox4m"},px:{defaultClass:"_1hbz9ox4n"},"0.25":{defaultClass:"_1hbz9ox4o"},"0.5":{defaultClass:"_1hbz9ox4p"},"0.75":{defaultClass:"_1hbz9ox4q"},"1.5":{defaultClass:"_1hbz9ox4r"},"2.5":{defaultClass:"_1hbz9ox4s"},"3.5":{defaultClass:"_1hbz9ox4t"}}},marginBottom:{values:{0:{defaultClass:"_1hbz9ox4u"},1:{defaultClass:"_1hbz9ox4v"},2:{defaultClass:"_1hbz9ox4w"},3:{defaultClass:"_1hbz9ox4x"},4:{defaultClass:"_1hbz9ox4y"},5:{defaultClass:"_1hbz9ox4z"},6:{defaultClass:"_1hbz9ox50"},7:{defaultClass:"_1hbz9ox51"},8:{defaultClass:"_1hbz9ox52"},9:{defaultClass:"_1hbz9ox53"},10:{defaultClass:"_1hbz9ox54"},11:{defaultClass:"_1hbz9ox55"},12:{defaultClass:"_1hbz9ox56"},13:{defaultClass:"_1hbz9ox57"},14:{defaultClass:"_1hbz9ox58"},15:{defaultClass:"_1hbz9ox59"},16:{defaultClass:"_1hbz9ox5a"},20:{defaultClass:"_1hbz9ox5b"},24:{defaultClass:"_1hbz9ox5c"},28:{defaultClass:"_1hbz9ox5d"},32:{defaultClass:"_1hbz9ox5e"},36:{defaultClass:"_1hbz9ox5f"},40:{defaultClass:"_1hbz9ox5g"},44:{defaultClass:"_1hbz9ox5h"},48:{defaultClass:"_1hbz9ox5i"},52:{defaultClass:"_1hbz9ox5j"},56:{defaultClass:"_1hbz9ox5k"},60:{defaultClass:"_1hbz9ox5l"},64:{defaultClass:"_1hbz9ox5m"},68:{defaultClass:"_1hbz9ox5n"},72:{defaultClass:"_1hbz9ox5o"},76:{defaultClass:"_1hbz9ox5p"},80:{defaultClass:"_1hbz9ox5q"},96:{defaultClass:"_1hbz9ox5r"},px:{defaultClass:"_1hbz9ox5s"},"0.25":{defaultClass:"_1hbz9ox5t"},"0.5":{defaultClass:"_1hbz9ox5u"},"0.75":{defaultClass:"_1hbz9ox5v"},"1.5":{defaultClass:"_1hbz9ox5w"},"2.5":{defaultClass:"_1hbz9ox5x"},"3.5":{defaultClass:"_1hbz9ox5y"}}},marginLeft:{values:{0:{defaultClass:"_1hbz9ox5z"},1:{defaultClass:"_1hbz9ox60"},2:{defaultClass:"_1hbz9ox61"},3:{defaultClass:"_1hbz9ox62"},4:{defaultClass:"_1hbz9ox63"},5:{defaultClass:"_1hbz9ox64"},6:{defaultClass:"_1hbz9ox65"},7:{defaultClass:"_1hbz9ox66"},8:{defaultClass:"_1hbz9ox67"},9:{defaultClass:"_1hbz9ox68"},10:{defaultClass:"_1hbz9ox69"},11:{defaultClass:"_1hbz9ox6a"},12:{defaultClass:"_1hbz9ox6b"},13:{defaultClass:"_1hbz9ox6c"},14:{defaultClass:"_1hbz9ox6d"},15:{defaultClass:"_1hbz9ox6e"},16:{defaultClass:"_1hbz9ox6f"},20:{defaultClass:"_1hbz9ox6g"},24:{defaultClass:"_1hbz9ox6h"},28:{defaultClass:"_1hbz9ox6i"},32:{defaultClass:"_1hbz9ox6j"},36:{defaultClass:"_1hbz9ox6k"},40:{defaultClass:"_1hbz9ox6l"},44:{defaultClass:"_1hbz9ox6m"},48:{defaultClass:"_1hbz9ox6n"},52:{defaultClass:"_1hbz9ox6o"},56:{defaultClass:"_1hbz9ox6p"},60:{defaultClass:"_1hbz9ox6q"},64:{defaultClass:"_1hbz9ox6r"},68:{defaultClass:"_1hbz9ox6s"},72:{defaultClass:"_1hbz9ox6t"},76:{defaultClass:"_1hbz9ox6u"},80:{defaultClass:"_1hbz9ox6v"},96:{defaultClass:"_1hbz9ox6w"},px:{defaultClass:"_1hbz9ox6x"},"0.25":{defaultClass:"_1hbz9ox6y"},"0.5":{defaultClass:"_1hbz9ox6z"},"0.75":{defaultClass:"_1hbz9ox70"},"1.5":{defaultClass:"_1hbz9ox71"},"2.5":{defaultClass:"_1hbz9ox72"},"3.5":{defaultClass:"_1hbz9ox73"}}},marginRight:{values:{0:{defaultClass:"_1hbz9ox74"},1:{defaultClass:"_1hbz9ox75"},2:{defaultClass:"_1hbz9ox76"},3:{defaultClass:"_1hbz9ox77"},4:{defaultClass:"_1hbz9ox78"},5:{defaultClass:"_1hbz9ox79"},6:{defaultClass:"_1hbz9ox7a"},7:{defaultClass:"_1hbz9ox7b"},8:{defaultClass:"_1hbz9ox7c"},9:{defaultClass:"_1hbz9ox7d"},10:{defaultClass:"_1hbz9ox7e"},11:{defaultClass:"_1hbz9ox7f"},12:{defaultClass:"_1hbz9ox7g"},13:{defaultClass:"_1hbz9ox7h"},14:{defaultClass:"_1hbz9ox7i"},15:{defaultClass:"_1hbz9ox7j"},16:{defaultClass:"_1hbz9ox7k"},20:{defaultClass:"_1hbz9ox7l"},24:{defaultClass:"_1hbz9ox7m"},28:{defaultClass:"_1hbz9ox7n"},32:{defaultClass:"_1hbz9ox7o"},36:{defaultClass:"_1hbz9ox7p"},40:{defaultClass:"_1hbz9ox7q"},44:{defaultClass:"_1hbz9ox7r"},48:{defaultClass:"_1hbz9ox7s"},52:{defaultClass:"_1hbz9ox7t"},56:{defaultClass:"_1hbz9ox7u"},60:{defaultClass:"_1hbz9ox7v"},64:{defaultClass:"_1hbz9ox7w"},68:{defaultClass:"_1hbz9ox7x"},72:{defaultClass:"_1hbz9ox7y"},76:{defaultClass:"_1hbz9ox7z"},80:{defaultClass:"_1hbz9ox80"},96:{defaultClass:"_1hbz9ox81"},px:{defaultClass:"_1hbz9ox82"},"0.25":{defaultClass:"_1hbz9ox83"},"0.5":{defaultClass:"_1hbz9ox84"},"0.75":{defaultClass:"_1hbz9ox85"},"1.5":{defaultClass:"_1hbz9ox86"},"2.5":{defaultClass:"_1hbz9ox87"},"3.5":{defaultClass:"_1hbz9ox88"}}}}});const ji=e=>C.jsx("div",{className:He("sid-stack",qb(e.variant),Jl({gap:e.space||"2"}),e.className),style:e.style,children:e.children});var Ob=Zl({defaultClassName:"_1wn0ypy0",variantClassNames:{size:{xs:"_1wn0ypy1",sm:"_1wn0ypy2",base:"_1wn0ypy3",xl:"_1wn0ypy4","2xl-title":"_1wn0ypy5"},weight:{medium:"_1wn0ypy6",semibold:"_1wn0ypy7",bold:"_1wn0ypy8"},color:{contrast:"_1wn0ypy9",tertiary:"_1wn0ypya",placeholder:"_1wn0ypyb",white:"_1wn0ypyc",success:"_1wn0ypyd",failure:"_1wn0ypye"}},defaultVariants:{size:"base",weight:"medium"},compoundVariants:[]});const Mb={text:{}},Hi=d.createContext(Mb);Hi.displayName="SlashIDTextContext";const Nb=({text:e,children:t})=>{const n=d.useMemo(()=>({text:e}),[e]);return C.jsx(Hi.Provider,{value:n,children:t})};function Fb(){const{text:e}=U.useContext(Hi);return e}const Ro={opening:"{{",closing:"}}"};function Xl(e,t){return e.includes(Ro.opening)?Object.keys(t).reduce((r,o)=>r.replace(`${Ro.opening}${o}${Ro.closing}`,t[o]),e):e}const di=({as:e,t,tokens:n,variant:r,className:o,children:i})=>{const a=Fb(),s=e||"p";return C.jsxs(s,{className:He("sid-text",`sid-text--${e}`,Ob(r),o),children:[n?Xl(a[t],n):a[t],i||null]})};function Ub(){const e=navigator.language.toLowerCase();return e==="ja"||e.startsWith("ja-")?"ja":"en"}const be={"footer.text":"Top-tier security by SlashID","initial.title":"Logging you in...","initial.details":"Please follow the on-screen instructions.","recover.password.title":"Reset password","recover.password.details":"Enter your new password.","recover.password.input.password.label":"Password","recover.password.input.confirmPassword.label":"Confirm password","recover.password.input.placeholder":"Type your new password","recover.password.submit":"Reset password","recover.password.validation.passwordsDoNotMatch":"Passwords do not match","recover.password.validation.length":"8-256 characters required","recover.password.validation.password_variants":"Contains word 'password'","recover.password.validation.admin_variants":"Contains word 'admin'","recover.password.validation.user_variants":"Contains word 'user'","recover.password.validation.alphanumeric_sequences_1":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","recover.password.validation.alphanumeric_sequences_2":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","recover.password.validation.numeric_sequences_ascending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","recover.password.validation.numeric_subsequences_ascending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","recover.password.validation.numeric_sequences_descending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","recover.password.validation.numeric_subsequences_descending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","recover.password.validation.common_password_xkcd":"Common password","success.title":"All done!","success.details":"Please return to the website.","error.title":"Something went wrong...","error.detail":"Please log in again."},Ql={en:be,ja:{"footer.text":be["footer.text"],"initial.title":"ログイン処理を行っています。","initial.details":"処理完了後、画面は自動で切り替わります。","success.title":"認証が完了しました!","success.details":"このページを閉じて、元のページへ戻ってください。","recover.password.title":be["recover.password.title"],"recover.password.details":be["recover.password.details"],"recover.password.input.password.label":be["recover.password.input.password.label"],"recover.password.input.confirmPassword.label":be["recover.password.input.confirmPassword.label"],"recover.password.input.placeholder":be["recover.password.input.placeholder"],"recover.password.submit":be["recover.password.submit"],"recover.password.validation.passwordsDoNotMatch":be["recover.password.validation.passwordsDoNotMatch"],"recover.password.validation.length":be["recover.password.validation.length"],"recover.password.validation.password_variants":be["recover.password.validation.password_variants"],"recover.password.validation.admin_variants":be["recover.password.validation.admin_variants"],"recover.password.validation.user_variants":be["recover.password.validation.user_variants"],"recover.password.validation.alphanumeric_sequences_1":be["recover.password.validation.alphanumeric_sequences_1"],"recover.password.validation.alphanumeric_sequences_2":be["recover.password.validation.alphanumeric_sequences_2"],"recover.password.validation.numeric_sequences_ascending":be["recover.password.validation.numeric_sequences_ascending"],"recover.password.validation.numeric_subsequences_ascending":be["recover.password.validation.numeric_subsequences_ascending"],"recover.password.validation.numeric_sequences_descending":be["recover.password.validation.numeric_sequences_descending"],"recover.password.validation.numeric_subsequences_descending":be["recover.password.validation.numeric_subsequences_descending"],"recover.password.validation.common_password_xkcd":be["recover.password.validation.common_password_xkcd"],"error.title":be["error.title"],"error.detail":"再度ログインをしてください。"}},Vb=e=>t=>Ql[e][t],ed={logo:C.jsx(Yl,{}),language:"en",state:"initial",sdk:void 0,setLogo:()=>{}},td=d.createContext(ed),Bn=()=>d.useContext(td);var nd={exports:{}},Cn={};/**
41
+ * @license React
42
+ * react-jsx-runtime.production.min.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var Es;function Bb(){if(Es)return Cn;Es=1;var e=U,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,l){var u,f={},p=null,h=null;l!==void 0&&(p=""+l),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)r.call(c,u)&&!i.hasOwnProperty(u)&&(f[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:t,type:s,key:p,ref:h,props:f,_owner:o.current}}return Cn.Fragment=n,Cn.jsx=a,Cn.jsxs=a,Cn}nd.exports=Bb();var _=nd.exports;function rd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ne(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rd(e))&&(r&&(r+=" "),r+=t);return r}const jb={registerField:()=>()=>null,registerSubmit:()=>()=>null,resetForm:()=>null,setError:()=>null,hasError:()=>!1,clearError:()=>null,values:{},errors:{},status:"valid"},Hb=d.createContext(jb);var Gi={color:{background:"var(--sid-color-background)",mute:"var(--sid-color-mute)",panel:"var(--sid-color-panel)",foreground:"var(--sid-color-foreground)",contrast:"var(--sid-color-contrast)",secondary:"var(--sid-color-secondary)",tertiary:"var(--sid-color-tertiary)",placeholder:"var(--sid-color-placeholder)",smooth:"var(--sid-color-smooth)",subtle:"var(--sid-color-subtle)",soft:"var(--sid-color-soft)",offset:"var(--sid-color-offset)",primary:"var(--sid-color-primary)",primaryHover:"var(--sid-color-primary-hover)",transparent:"var(--sid-color-transparent)",error:"var(--sid-color-error)",auxiliary:"var(--sid-color-auxiliary)",success:"var(--sid-color-success)",foregroundSuccess:"var(--sid-color-foreground-success)",backgroundSuccess:"var(--sid-color-background-success)",failure:"var(--sid-color-failure)",foregroundFailure:"var(--sid-color-foreground-failure)",backgroundFailure:"var(--sid-color-background-failure)"},font:{fontFamily:"var(--sid-font-family)"},border:{radius:"var(--sid-button-border-radius)",width:{panel:"var(--sid-border-width-panel)"}},input:{border:{radius:"var(--sid-input-border-radius)",color:"var(--sid-input-border-color)"},label:{color:"var(--sid-input-label-color)"}},button:{border:{radius:"var(--sid-button-border-radius)"}},form:{border:{radius:"var(--sid-form-border-radius)"},logo:{width:"var(--sid-form-logo-width)"}}},Gb={default:"_1v32gdc2 _1v32gdc1",short:"_1v32gdc3 _1v32gdc1"};const Wb=({className:e,variant:t="default"})=>_.jsx("div",{className:ne(Gb[t],e)});var Kb={primary:"_154fc2o2 _154fc2o0",secondary:"_154fc2o3 _154fc2o0",secondaryMd:"_154fc2o4 _154fc2o0 _154fc2o1",neutral:"_154fc2o5 _154fc2o0",neutralMd:"_154fc2o6 _154fc2o0 _154fc2o1",ghost:"_154fc2o7 _154fc2o0",ghostMd:"_154fc2o8 _154fc2o0 _154fc2o1"},Yb="_154fc2o9",Zb="_154fc2oa",Jb={primary:"_154fc2ob",secondary:"_154fc2oc",secondaryMd:"_154fc2od",neutral:"_154fc2oe",neutralMd:"_154fc2of",ghost:"_154fc2og",ghostMd:"_154fc2oh"};const hn=d.forwardRef(({children:e,onClick:t,className:n,type:r="button",variant:o="primary",testId:i,icon:a,disabled:s,loading:c=!1,style:l},u)=>_.jsx("button",{style:l,ref:u,"data-testid":i,type:r,disabled:s,className:ne("sid-button",`sid-button--${o}`,Kb[o],{[Yb]:s},n),onClick:t,children:c?_.jsx(Wb,{variant:"short",className:Jb[o]}):_.jsxs(_.Fragment,{children:[a?_.jsx("i",{className:Zb,children:a}):null,e]})}));hn.displayName="Button";const Xb=({className:e})=>_.jsx("svg",{className:ne(e),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("path",{d:"M10.25 3.75L5.75 8L10.25 12.25",stroke:Gi.color.tertiary,strokeOpacity:"0.5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});var Qb={base:"axg5it0",back:"axg5it2 axg5it0"};const e_=({children:e,onClick:t,className:n,type:r="button",variant:o="base",testId:i})=>_.jsxs("button",{"data-testid":i,type:r,className:ne("sid-link-button",Qb[o],n),onClick:t,children:[o==="back"?_.jsx(Xb,{}):null,e]});var t_="_1c8zcycb",n_="_1c8zcyc2",r_="_1c8zcyc4",od="_1c8zcyc3",o_="_1c8zcyc0",i_={text:"_1c8zcyc6 _1c8zcyc5",email:"_1c8zcyc7 _1c8zcyc5",password:"_1c8zcyc8 _1c8zcyc5",tel:"_1c8zcyc9 _1c8zcyc5"},a_="_1c8zcyca",s_="_1c8zcyc1";const id=({id:e,name:t,label:n,placeholder:r="",autoComplete:o="",value:i,onChange:a,type:s="text",style:c})=>{const l=d.useCallback(u=>{a(u)},[a]);return _.jsxs("div",{className:i_[s],children:[_.jsx("label",{htmlFor:e,className:a_,children:n}),_.jsx("input",{style:c,type:s,id:e,name:t,className:o_,placeholder:r,value:i,onChange:l,autoComplete:o})]})},c_=({name:e,id:t,label:n,placeholder:r="",className:o="",type:i="text",value:a,error:s,onChange:c,style:l})=>_.jsx("div",{className:ne("sid-input",`sid-input--${i}`,od,s&&r_,o),children:_.jsx(id,{style:l,id:t,name:e,label:n,placeholder:r,className:o,type:i,value:a,onChange:c})}),We=`
49
+ @media (prefers-color-scheme: dark) {
50
+ .sid-theme-root__auto path { fill: white; }
51
+ }
52
+
53
+ .sid-theme-root__dark path { fill: white; }
54
+ `,l_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("path",{d:"M11.0791 0C11.1164 0 11.1536 0 11.1929 0C11.2843 1.12835 10.8536 1.97146 10.3302 2.582C9.81657 3.18834 9.11328 3.7764 7.9758 3.68717C7.89992 2.57498 8.33131 1.79441 8.85403 1.18526C9.33881 0.617573 10.2276 0.112414 11.0791 0Z",fill:"black"}),_.jsx("path",{d:"M14.5225 11.7444C14.5225 11.7557 14.5225 11.7655 14.5225 11.776C14.2028 12.7442 13.7468 13.574 13.1904 14.344C12.6824 15.0431 12.0599 15.9838 10.9484 15.9838C9.988 15.9838 9.35005 15.3663 8.36573 15.3494C7.32449 15.3325 6.75188 15.8658 5.79988 16C5.69098 16 5.58208 16 5.47529 16C4.77621 15.8988 4.21203 15.3452 3.80102 14.8463C2.58906 13.3723 1.65251 11.4683 1.47827 9.03174C1.47827 8.79286 1.47827 8.55469 1.47827 8.31581C1.55204 6.57199 2.39936 5.15417 3.52561 4.46704C4.12 4.10169 4.9371 3.79045 5.84695 3.92956C6.23689 3.98998 6.63526 4.12347 6.98444 4.25556C7.31536 4.38273 7.72918 4.60826 8.12123 4.59631C8.3868 4.58859 8.65098 4.45018 8.91866 4.35252C9.70275 4.06937 10.4714 3.74478 11.4845 3.89724C12.7021 4.08132 13.5663 4.62231 14.1002 5.45698C13.0702 6.1125 12.2559 7.10033 12.3951 8.78724C12.5187 10.3196 13.4096 11.2161 14.5225 11.7444Z",fill:"black"})]}),d_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsxs("g",{id:"microsoft-icon 1",clipPath:"url(#clip0_2115_8900)",children:[_.jsx("path",{id:"Vector",d:"M0 0H7.6031V7.6031H0V0Z",fill:"#F25022"}),_.jsx("path",{id:"Vector_2",d:"M8.39691 0H16V7.6031H8.39691V0Z",fill:"#7FBA00"}),_.jsx("path",{id:"Vector_3",d:"M0 8.3969H7.6031V16H0V8.3969Z",fill:"#00A4EF"}),_.jsx("path",{id:"Vector_4",d:"M8.39691 8.3969H16V16H8.39691V8.3969Z",fill:"#FFB900"})]}),_.jsx("defs",{children:_.jsx("clipPath",{id:"clip0_2115_8900",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),u_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("g",{clipPath:"url(#clip0_505_1607)",children:_.jsxs("g",{clipPath:"url(#clip1_505_1607)",children:[_.jsx("path",{d:"M0.575299 0.87666C0.501037 0.8757 0.427465 0.891009 0.359751 0.921512C0.292036 0.952016 0.231821 0.996974 0.183333 1.05323C0.134846 1.10949 0.099262 1.17567 0.0790809 1.24715C0.0588998 1.31862 0.0546107 1.39365 0.066515 1.46695L2.2264 14.5788C2.2533 14.7392 2.33588 14.8851 2.45964 14.9907C2.58339 15.0963 2.74041 15.1549 2.9031 15.1563H13.2649C13.3868 15.1578 13.5053 15.1155 13.5986 15.0371C13.692 14.9586 13.7541 14.8493 13.7736 14.7289L15.9335 1.4695C15.9454 1.39619 15.9411 1.32118 15.9209 1.24971C15.9007 1.17825 15.8651 1.11208 15.8166 1.05583C15.7681 0.999591 15.7079 0.954646 15.6402 0.924154C15.5725 0.893661 15.4989 0.878361 15.4247 0.879327L0.575299 0.87666ZM9.67013 10.3531H6.36292L5.46743 5.67469H10.4715L9.67013 10.3531Z",fill:"#2684FF"}),_.jsx("path",{d:"M15.2335 5.66811H10.4623L9.66148 10.3428H6.35693L2.45502 14.9743C2.57869 15.0812 2.73636 15.1407 2.89985 15.142H13.2559C13.3778 15.1436 13.4961 15.1013 13.5894 15.023C13.6828 14.9446 13.7448 14.8353 13.7643 14.715L15.2335 5.66811Z",fill:"url(#paint0_linear_505_1607)"})]})}),_.jsxs("defs",{children:[_.jsxs("linearGradient",{id:"paint0_linear_505_1607",x1:"16.3366",y1:"6.97722",x2:"10.8251",y2:"14.803",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{offset:"0.18",stopColor:"#0052CC"}),_.jsx("stop",{offset:"1",stopColor:"#2684FF"})]}),_.jsx("clipPath",{id:"clip0_505_1607",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})}),_.jsx("clipPath",{id:"clip1_505_1607",children:_.jsx("rect",{width:"16",height:"14.4384",fill:"white",transform:"translate(0 0.780792)"})})]})]}),f_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("g",{clipPath:"url(#clip0_244_1220)",children:_.jsx("path",{d:"M8 0.0410004C3.582 0.0410004 0 3.623 0 8.041C0 12.0517 2.95467 15.3637 6.804 15.9423V10.161H4.82467V8.05833H6.804V6.659C6.804 4.34233 7.93267 3.32567 9.858 3.32567C10.78 3.32567 11.268 3.39433 11.4987 3.425V5.26033H10.1853C9.368 5.26033 9.08267 6.03567 9.08267 6.909V8.05833H11.478L11.1533 10.161H9.08267V15.959C12.9873 15.4297 16 12.091 16 8.041C16 3.623 12.418 0.0410004 8 0.0410004Z",fill:"#1877F2"})}),_.jsx("defs",{children:_.jsx("clipPath",{id:"clip0_244_1220",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),h_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("g",{clipPath:"url(#clip0_505_1582)",children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97616 0.163269C3.56555 0.163269 0 3.75511 0 8.1987C0 11.7507 2.28457 14.7574 5.45388 15.8216C5.85012 15.9016 5.99527 15.6487 5.99527 15.4359C5.99527 15.2496 5.9822 14.6111 5.9822 13.9458C3.76343 14.4248 3.30139 12.9879 3.30139 12.9879C2.94482 12.0567 2.41649 11.8173 2.41649 11.8173C1.69029 11.3251 2.46939 11.3251 2.46939 11.3251C3.27494 11.3783 3.69763 12.1499 3.69763 12.1499C4.41061 13.3737 5.55951 13.0279 6.02171 12.815C6.08767 12.2962 6.2991 11.937 6.52359 11.7375C4.75396 11.5512 2.89208 10.8594 2.89208 7.7729C2.89208 6.89486 3.20882 6.17649 3.71069 5.6178C3.63151 5.41829 3.35412 4.59331 3.79004 3.48915C3.79004 3.48915 4.46351 3.27625 5.98204 4.31396C6.63218 4.13807 7.30265 4.04859 7.97616 4.04784C8.64963 4.04784 9.33616 4.14106 9.97012 4.31396C11.4888 3.27625 12.1623 3.48915 12.1623 3.48915C12.5982 4.59331 12.3207 5.41829 12.2415 5.6178C12.7566 6.17649 13.0602 6.89486 13.0602 7.7729C13.0602 10.8594 11.1984 11.5378 9.41551 11.7375C9.70612 11.9902 9.9569 12.4691 9.9569 13.2274C9.9569 14.305 9.94384 15.1698 9.94384 15.4358C9.94384 15.6487 10.0891 15.9016 10.4852 15.8217C13.6545 14.7572 15.9391 11.7507 15.9391 8.1987C15.9522 3.75511 12.3736 0.163269 7.97616 0.163269Z",fill:"#24292F"})}),_.jsx("defs",{children:_.jsx("clipPath",{id:"clip0_505_1582",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),p_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsxs("g",{clipPath:"url(#clip0_505_1689)",children:[_.jsx("path",{d:"M15.7337 6.39379L15.7112 6.33631L13.5335 0.652895C13.4892 0.541503 13.4107 0.447009 13.3094 0.382971C13.2079 0.32002 13.0897 0.289702 12.9705 0.296108C12.8513 0.302514 12.7369 0.345337 12.6429 0.418794C12.5498 0.494361 12.4824 0.596756 12.4496 0.712045L10.9792 5.21079H5.02499L3.55457 0.712045C3.52268 0.596128 3.45505 0.49322 3.36129 0.417961C3.26722 0.344503 3.15287 0.301681 3.03368 0.295274C2.9145 0.288868 2.79622 0.319187 2.69481 0.382138C2.5937 0.446435 2.51531 0.540846 2.47071 0.652062L0.288816 6.33298L0.267156 6.39046C-0.046338 7.20957 -0.0850337 8.1084 0.156903 8.95142C0.39884 9.79444 0.908292 10.536 1.60845 11.0642L1.61595 11.07L1.63594 11.0842L4.95335 13.5685L6.59456 14.8106L7.59428 15.5654C7.71122 15.6542 7.85401 15.7023 8.00083 15.7023C8.14766 15.7023 8.29045 15.6542 8.40739 15.5654L9.40711 14.8106L11.0483 13.5685L14.3857 11.0692L14.3941 11.0625C15.0926 10.5342 15.6009 9.79344 15.8425 8.95156C16.084 8.10967 16.0459 7.21213 15.7337 6.39379Z",fill:"#E24329"}),_.jsx("path",{d:"M15.7336 6.39379L15.7111 6.3363C14.65 6.55411 13.6501 7.00358 12.7828 7.6526L7.99994 11.2691C9.62865 12.5013 11.0466 13.5718 11.0466 13.5718L14.384 11.0725L14.3923 11.0658C15.0919 10.5375 15.601 9.79631 15.8429 8.9537C16.0848 8.1111 16.0464 7.21272 15.7336 6.39379Z",fill:"#FC6D26"}),_.jsx("path",{d:"M4.95331 13.5718L6.59452 14.8139L7.59424 15.5687C7.71118 15.6575 7.85397 15.7056 8.00079 15.7056C8.14762 15.7056 8.29041 15.6575 8.40735 15.5687L9.40707 14.8139L11.0483 13.5718C11.0483 13.5718 9.62867 12.4979 7.99996 11.2691C6.37125 12.4979 4.95331 13.5718 4.95331 13.5718Z",fill:"#FCA326"}),_.jsx("path",{d:"M3.21633 7.65262C2.34974 7.00226 1.35002 6.55163 0.288816 6.33299L0.267156 6.39048C-0.046338 7.20959 -0.0850337 8.10841 0.156903 8.95143C0.398839 9.79446 0.908292 10.536 1.60845 11.0642L1.61595 11.07L1.63594 11.0842L4.95335 13.5685C4.95335 13.5685 6.36962 12.4979 8 11.2658L3.21633 7.65262Z",fill:"#FC6D26"})]}),_.jsx("defs",{children:_.jsx("clipPath",{id:"clip0_505_1689",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),m_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6801 8.1818C15.6801 7.61453 15.6292 7.06908 15.5346 6.54544H8.00006V9.63999H12.3055C12.1201 10.64 11.5564 11.4873 10.7092 12.0545V14.0618H13.2946C14.8073 12.6691 15.6801 10.6182 15.6801 8.1818Z",fill:"#4285F4"}),_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00001 16C10.16 16 11.9709 15.2836 13.2946 14.0618L10.7091 12.0545C9.99274 12.5345 9.07638 12.8182 8.00001 12.8182C5.91638 12.8182 4.15274 11.4109 3.52365 9.52H0.850922V11.5927C2.16729 14.2073 4.87274 16 8.00001 16Z",fill:"#34A853"}),_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.52364 9.51998C3.36364 9.03998 3.27273 8.52726 3.27273 7.99998C3.27273 7.47271 3.36364 6.95998 3.52364 6.47998V4.40726H0.850909C0.309091 5.48726 0 6.70908 0 7.99998C0 9.29089 0.309091 10.5127 0.850909 11.5927L3.52364 9.51998Z",fill:"#FBBC05"}),_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00001 3.18182C9.17456 3.18182 10.2291 3.58545 11.0582 4.37818L13.3527 2.08364C11.9673 0.792727 10.1564 0 8.00001 0C4.87274 0 2.16729 1.79273 0.850922 4.40727L3.52365 6.48C4.15274 4.58909 5.91638 3.18182 8.00001 3.18182Z",fill:"#EA4335"})]}),g_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsxs("g",{clipPath:"url(#clip0_505_1637)",children:[_.jsx("path",{d:"M12.5339 16H3.46615C1.55208 16 0 14.4479 0 12.5339V3.46615C0 1.55208 1.55208 0 3.46615 0H12.5326C14.4479 0 15.9987 1.55208 15.9987 3.46615V12.5326C16 14.4479 14.4479 16 12.5339 16Z",fill:"#00B900"}),_.jsx("path",{d:"M13.7995 7.29688C13.7995 4.69011 11.1862 2.56902 7.97396 2.56902C4.76172 2.56902 2.14844 4.69011 2.14844 7.29688C2.14844 9.63412 4.22135 11.5912 7.02083 11.9609C7.21094 12.0013 7.46875 12.0859 7.53385 12.2487C7.59245 12.3958 7.57161 12.6263 7.55208 12.7747C7.55208 12.7747 7.48438 13.1862 7.46875 13.2734C7.44271 13.4206 7.35156 13.849 7.97396 13.5872C8.59505 13.3255 11.3294 11.612 12.5508 10.2057C13.3945 9.27865 13.7995 8.33985 13.7995 7.29688Z",fill:"white"}),_.jsx("path",{d:"M6.79039 6.03645H6.38153C6.31903 6.03645 6.26825 6.08723 6.26825 6.14973V8.6875C6.26825 8.75 6.31903 8.80078 6.38153 8.80078H6.79039C6.85289 8.80078 6.90367 8.75 6.90367 8.6875V6.14973C6.90367 6.08723 6.85289 6.03645 6.79039 6.03645Z",fill:"#00B900"}),_.jsx("path",{d:"M9.60286 6.03646H9.19401C9.13151 6.03646 9.08073 6.08724 9.08073 6.14974V7.65756L7.91797 6.08724C7.91536 6.08334 7.91276 6.07943 7.90885 6.07553C7.90885 6.07553 7.90885 6.07553 7.90885 6.07422C7.90625 6.07162 7.90365 6.06902 7.90234 6.06771C7.90104 6.06771 7.90104 6.06641 7.89974 6.06511C7.89714 6.06381 7.89583 6.0612 7.89323 6.0599C7.89193 6.0586 7.89193 6.0586 7.89062 6.0573C7.88932 6.05599 7.88672 6.05469 7.88542 6.05339C7.88411 6.05209 7.88281 6.05209 7.88151 6.05079C7.87891 6.04948 7.8776 6.04818 7.875 6.04688C7.8737 6.04688 7.8724 6.04558 7.87109 6.04558C7.86849 6.04428 7.86719 6.04297 7.86458 6.04297C7.86328 6.04297 7.86198 6.04167 7.86068 6.04167C7.85807 6.04037 7.85677 6.04037 7.85417 6.03907C7.85286 6.03907 7.85156 6.03907 7.85026 6.03777C7.84766 6.03777 7.84635 6.03646 7.84375 6.03646C7.84245 6.03646 7.84115 6.03646 7.83854 6.03516C7.83594 6.03516 7.83464 6.03516 7.83203 6.03386C7.82943 6.03386 7.82813 6.03386 7.82682 6.03386C7.82552 6.03386 7.82422 6.03386 7.82292 6.03386H7.41406C7.35156 6.03386 7.30078 6.08464 7.30078 6.14714V8.6849C7.30078 8.7474 7.35156 8.79818 7.41406 8.79818H7.82292C7.88542 8.79818 7.9362 8.7474 7.9362 8.6849V7.18099L9.10026 8.75391C9.10807 8.76563 9.11849 8.77475 9.12891 8.78126C9.12891 8.78126 9.13021 8.78125 9.13021 8.78256C9.13281 8.78386 9.13542 8.78516 9.13672 8.78646C9.13802 8.78646 9.13932 8.78777 9.14062 8.78777C9.14193 8.78907 9.14453 8.78907 9.14583 8.79037C9.14714 8.79167 9.14974 8.79167 9.15104 8.79297C9.15234 8.79297 9.15365 8.79428 9.15495 8.79428C9.15755 8.79558 9.16016 8.79558 9.16276 8.79688H9.16406C9.17318 8.79948 9.18359 8.80079 9.19271 8.80079H9.60156C9.66406 8.80079 9.71484 8.75001 9.71484 8.68751V6.14974C9.71615 6.08724 9.66536 6.03646 9.60286 6.03646Z",fill:"#00B900"}),_.jsx("path",{d:"M5.80597 8.16536H4.69529V6.14973C4.69529 6.08723 4.64451 6.03645 4.58201 6.03645H4.17316C4.11066 6.03645 4.05988 6.08723 4.05988 6.14973V8.68749C4.05988 8.71744 4.07159 8.74609 4.09113 8.76562L4.09243 8.76692L4.09373 8.76822C4.11456 8.78775 4.14191 8.79947 4.17185 8.79947H5.80467C5.86717 8.79947 5.91795 8.74869 5.91795 8.68619V8.27734C5.91925 8.21744 5.86847 8.16536 5.80597 8.16536Z",fill:"#00B900"}),_.jsx("path",{d:"M11.8594 6.67187C11.9219 6.67187 11.9726 6.62109 11.9726 6.55859V6.14973C11.9726 6.08723 11.9219 6.03645 11.8594 6.03645H10.2265C10.1966 6.03645 10.1679 6.04817 10.1484 6.06901L10.1471 6.07031C10.1471 6.07161 10.1458 6.07161 10.1458 6.07291C10.1263 6.09374 10.1146 6.12109 10.1146 6.15104V8.6888C10.1146 8.71875 10.1263 8.74739 10.1458 8.76692L10.1471 8.76822L10.1484 8.76953C10.1693 8.78906 10.1966 8.80208 10.2265 8.80208H11.8594C11.9219 8.80208 11.9726 8.7513 11.9726 8.6888V8.27994C11.9726 8.21744 11.9219 8.16666 11.8594 8.16666H10.7487V7.73828H11.8594C11.9219 7.73828 11.9726 7.68749 11.9726 7.62499V7.21614C11.9726 7.15364 11.9219 7.10286 11.8594 7.10286H10.7487V6.67447H11.8594V6.67187Z",fill:"#00B900"})]}),_.jsx("defs",{children:_.jsx("clipPath",{id:"clip0_505_1637",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),b_=()=>_.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("g",{clipPath:"url(#clip0_3100_16)",children:_.jsx("g",{clipPath:"url(#clip1_3100_16)",children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.80298 0.115361L8.47375 4.16602C8.31816 4.14796 8.16258 4.13894 8.00298 4.13894C7.80323 4.13894 7.6075 4.15198 7.41578 4.18307L7.22908 2.22094C7.22506 2.15875 7.27425 2.10458 7.33648 2.10458H7.66973L7.50913 0.120377C7.50511 0.0581823 7.5543 0.00401306 7.61151 0.00401306H8.7006C8.76283 0.00401306 8.81202 0.0581823 8.80298 0.115361ZM7.13573 4.23223C6.78441 4.31248 6.45116 4.44088 6.14401 4.60941L5.29483 2.82884C5.26873 2.77567 5.29483 2.70947 5.35304 2.6864L5.66823 2.57103L4.83711 0.759374C4.81101 0.706207 4.83711 0.640001 4.89533 0.616928L5.91816 0.243762C5.97538 0.221693 6.03761 0.257806 6.05568 0.314985C6.05969 0.314985 7.13573 4.23223 7.13573 4.23223ZM3.54828 1.44351L5.9001 4.75586C5.60198 4.95147 5.33096 5.18219 5.1001 5.44903L3.68981 4.0637C3.64564 4.01956 3.65066 3.94834 3.69483 3.90821L3.95279 3.69455L2.55154 2.27812C2.50737 2.23398 2.51239 2.16276 2.56057 2.12263L3.39269 1.42546C3.44087 1.38533 3.50813 1.39436 3.54326 1.44351H3.54828ZM4.92243 5.67072C4.70863 5.9506 4.53598 6.26157 4.4065 6.59461L2.61076 5.77304C2.55254 5.75097 2.53046 5.67975 2.56158 5.62658L2.73021 5.33768L0.925441 4.48502C0.872242 4.45893 0.850159 4.39172 0.881276 4.33856L1.42331 3.39762C1.45442 3.34445 1.52569 3.3264 1.57488 3.36151L4.92243 5.67072ZM0.244889 5.9195C0.253923 5.8573 0.316156 5.8222 0.373371 5.83524L4.30813 6.86144C4.20574 7.19448 4.14853 7.54558 4.13949 7.90972L2.17011 7.74922C2.10788 7.7452 2.06271 7.68702 2.07676 7.62483L2.13397 7.2968L0.14652 7.11022C0.0842868 7.1052 0.04514 7.04803 0.0531701 6.98583L0.23987 5.91549L0.244889 5.9195ZM0.0943244 8.5748L4.14451 8.20163C4.16258 8.56176 4.23385 8.91285 4.34426 9.24088L2.44213 9.76552C2.38391 9.77856 2.32168 9.74345 2.31264 9.68125L2.25543 9.35223L0.32519 9.85379C0.267976 9.86784 0.205742 9.83173 0.196708 9.76953L0.00498944 8.69919C-0.00404444 8.63699 0.0361061 8.57981 0.0983395 8.5748H0.0943244ZM0.730711 11.3906C0.699594 11.3374 0.721677 11.2712 0.774876 11.2441L4.44765 9.5037C4.58517 9.83173 4.77187 10.1387 4.9937 10.4135L3.38466 11.5591C3.33548 11.5952 3.26421 11.5812 3.23309 11.528L3.06446 11.2351L1.42431 12.3677C1.37513 12.4028 1.30386 12.3857 1.27274 12.3325C1.27274 12.3325 0.725692 11.3906 0.730711 11.3906ZM6.0075 11.2973L4.8873 12.9224C4.85217 12.9766 4.7809 12.9846 4.73171 12.9455L4.47375 12.7278L3.31841 14.3529C3.28228 14.402 3.21603 14.411 3.16685 14.3709L2.33071 13.6737C2.28253 13.6336 2.27751 13.5624 2.32168 13.5182L5.1804 10.6272C5.42532 10.884 5.70537 11.1107 6.0075 11.2973ZM4.61628 15.2677C4.55806 15.2456 4.53197 15.1784 4.55806 15.1253L6.25242 11.4307C6.56358 11.5902 6.90185 11.7106 7.25317 11.7768L6.7543 13.6868C6.74125 13.744 6.675 13.7801 6.61678 13.758L6.3016 13.6426L5.77262 15.5656C5.75455 15.6228 5.69232 15.6589 5.6341 15.6359L4.61227 15.2637L4.61628 15.2677ZM8.00399 11.8571C8.20374 11.8571 8.39947 11.843 8.59018 11.8119L8.77688 13.775C8.7819 13.8372 8.73272 13.8904 8.67048 13.8904H8.33724L8.49683 15.8756C8.50587 15.9378 8.45769 15.991 8.39545 15.991H7.30537C7.24815 15.991 7.19897 15.9378 7.20298 15.8756L7.53222 11.826C7.6878 11.848 7.84338 11.8571 8.00399 11.8571ZM9.75555 4.55122C9.44439 4.39574 9.11114 4.27536 8.7548 4.20514L9.25267 2.29517C9.27074 2.23699 9.33297 2.20188 9.39119 2.22395L9.70637 2.33931L10.2354 0.416301C10.2534 0.359123 10.3157 0.32301 10.3739 0.345079L11.3957 0.718245C11.4539 0.740314 11.481 0.802508 11.4539 0.86069L9.75555 4.55122ZM13.6863 2.47273L10.8266 5.36376C10.5867 5.10596 10.3116 4.88025 10.0045 4.69367L11.1247 3.06759C11.1608 3.01944 11.2321 3.00539 11.2803 3.04552L11.5382 3.2632L12.6946 1.63812C12.7297 1.58897 12.801 1.57994 12.8451 1.62006L13.6813 2.31724C13.7305 2.35737 13.7305 2.42859 13.6863 2.47273ZM15.2291 4.75085L11.5563 6.49229C11.4138 6.16326 11.2321 5.8563 11.0093 5.58144L12.6183 4.43586C12.6675 4.39574 12.7387 4.41379 12.7699 4.46696L12.9385 4.75586L14.5796 3.62332C14.6288 3.59223 14.6991 3.60527 14.7302 3.65843L15.2773 4.60038C15.3084 4.65354 15.2913 4.71975 15.2331 4.74683L15.2291 4.75085ZM15.8113 6.22044L15.998 7.29078C16.007 7.35298 15.9668 7.40614 15.9046 7.41517L11.8544 7.79235C11.8364 7.42821 11.7651 7.08213 11.6547 6.7531L13.5578 6.22947C13.615 6.21141 13.6773 6.25154 13.6863 6.31373L13.7445 6.64276L15.6737 6.14019C15.732 6.12715 15.7942 6.16326 15.8022 6.22545L15.8113 6.22044ZM15.6246 10.1457L11.6898 9.1195C11.7922 8.78646 11.8504 8.43636 11.8594 8.07223L13.8288 8.23172C13.8911 8.24075 13.9312 8.29392 13.9222 8.35611L13.864 8.68514L15.8514 8.87173C15.9136 8.87975 15.9538 8.93292 15.9448 8.99511L15.7581 10.0655C15.749 10.1276 15.6868 10.1638 15.6296 10.1507L15.6246 10.1457ZM14.5796 12.5924C14.5485 12.6455 14.4773 12.6586 14.4281 12.6275L11.0805 10.3182C11.2943 10.0384 11.467 9.7274 11.5965 9.39436L13.3922 10.2159C13.4504 10.243 13.4725 10.3092 13.4414 10.3624L13.2727 10.6513L15.0775 11.504C15.1307 11.531 15.1528 11.5972 15.1217 11.6504L14.5796 12.5924ZM10.0978 11.2291C10.396 11.0385 10.663 10.8028 10.8988 10.5369L12.3081 11.9223C12.3523 11.9664 12.3523 12.0376 12.3031 12.0777L12.0451 12.2904L13.4464 13.7078C13.4865 13.752 13.4865 13.8232 13.4374 13.8623L12.6062 14.5605C12.5611 14.5996 12.4898 14.5916 12.4547 14.5424L10.1029 11.2291H10.0978ZM10.0798 15.7412C10.0226 15.7633 9.96032 15.7282 9.94225 15.67L8.86622 11.7537C9.21754 11.6735 9.55079 11.5451 9.85794 11.3755L10.7071 13.1571C10.7332 13.2143 10.7071 13.2815 10.6489 13.2986L10.3337 13.4139L11.1648 15.2266C11.1909 15.2838 11.1648 15.346 11.1066 15.368L10.0848 15.7412H10.0798Z",fill:"black"})})}),_.jsxs("defs",{children:[_.jsx("clipPath",{id:"clip0_3100_16",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})}),_.jsx("clipPath",{id:"clip1_3100_16",children:_.jsx("rect",{width:"16",height:"16",fill:"white"})})]})]}),__=({className:e})=>_.jsxs("svg",{className:ne(e),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM12.0676 5.49021C12.3384 5.17673 12.3037 4.70312 11.9902 4.43238C11.6767 4.16164 11.2031 4.1963 10.9324 4.50979L6.78035 9.3174L5.59201 7.78954C5.33771 7.46258 4.86651 7.40368 4.53954 7.65799C4.21258 7.91229 4.15368 8.3835 4.40799 8.71045L6.15799 10.9605C6.29594 11.1378 6.50614 11.244 6.73076 11.2498C6.95538 11.2555 7.17075 11.1603 7.31762 10.9902L12.0676 5.49021Z",fill:"#142049"})]});function v_(){return _.jsxs("svg",{width:"5",height:"20",viewBox:"0 0 5 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 0C3.32843 1.19209e-07 4 0.671573 4 1.5L4 11.5C4 12.3284 3.32843 13 2.5 13C1.67157 13 1 12.3284 1 11.5L1 1.5C1 0.671573 1.67157 -1.19209e-07 2.5 0Z",fill:"white"}),_.jsx("path",{d:"M4.5 18C4.5 19.1046 3.60457 20 2.5 20C1.39543 20 0.5 19.1046 0.5 18C0.5 16.8954 1.39543 16 2.5 16C3.60457 16 4.5 16.8954 4.5 18Z",fill:"white"})]})}const ad=({className:e})=>_.jsx("svg",{width:"16",className:ne(e),height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("path",{d:"M3.75 5.75L8 10.25L12.25 5.75",stroke:Gi.color.foreground,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),w_=({className:e,fill:t=Gi.color.background})=>_.jsx("svg",{className:ne(e),width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9998 6.96103L13.9998 6.95691C13.9974 6.79449 13.959 6.6346 13.8874 6.48877C13.8158 6.34294 13.7127 6.21479 13.5856 6.11357C13.4585 6.01235 13.3106 5.94058 13.1523 5.90346C12.9941 5.86634 12.8297 5.86479 12.6708 5.89894L12.6659 5.90001C12.4344 5.95196 12.1943 5.95157 11.9629 5.89886C11.7316 5.84615 11.515 5.74245 11.3288 5.59531C11.1425 5.44816 10.9915 5.26127 10.8866 5.04824C10.7821 4.83603 10.726 4.60323 10.7225 4.36668C10.7213 4.07884 10.6065 3.80298 10.4029 3.59926C10.1992 3.39552 9.92339 3.28054 9.63542 3.27933C9.39916 3.27578 9.16663 3.21974 8.95463 3.11523C8.74181 3.0103 8.55504 2.85917 8.40795 2.67282C8.26087 2.48647 8.15718 2.2696 8.10447 2.03803C8.05176 1.80645 8.05137 1.56602 8.10331 1.33427L8.10439 1.32937C8.13848 1.17054 8.13694 1.00612 8.09987 0.847953C8.0628 0.689787 7.99112 0.541797 7.88998 0.41465C7.78884 0.287501 7.66075 0.184359 7.51493 0.112677C7.3691 0.0409949 7.20918 0.00256304 7.04669 0.000166098L7.04169 0.000114905C5.64531 -0.00788549 4.27846 0.40206 3.11675 1.17724C1.95505 1.95242 1.05159 3.05742 0.522378 4.35021C-0.00682774 5.643 -0.137616 7.06456 0.146804 8.43228C0.431224 9.79999 1.11787 11.0514 2.11858 12.0258C4.84733 14.6831 9.25037 14.6542 11.9431 11.9606C12.601 11.3061 13.1217 10.5268 13.4749 9.66852C13.8281 8.80994 14.0066 7.88947 13.9998 6.96103ZM8.77386 10.7684C9.21895 10.7684 9.57977 10.4074 9.57977 9.96208C9.57977 9.51674 9.21895 9.15571 8.77386 9.15571C8.32878 9.15571 7.96796 9.51674 7.96796 9.96208C7.96796 10.4074 8.32878 10.7684 8.77386 10.7684ZM5.28166 9.4245C5.28166 9.86984 4.92084 10.2309 4.47576 10.2309C4.03067 10.2309 3.66986 9.86984 3.66986 9.4245C3.66986 8.97915 4.03067 8.61813 4.47576 8.61813C4.92084 8.61813 5.28166 8.97915 5.28166 9.4245ZM3.93849 6.46785C4.38358 6.46785 4.7444 6.10682 4.7444 5.66148C4.7444 5.21614 4.38358 4.85512 3.93849 4.85512C3.49341 4.85512 3.13259 5.21614 3.13259 5.66148C3.13259 6.10682 3.49341 6.46785 3.93849 6.46785ZM8.2365 6.73664C8.2365 7.18199 7.87569 7.54301 7.4306 7.54301C6.98551 7.54301 6.6247 7.18199 6.6247 6.73664C6.6247 6.2913 6.98551 5.93028 7.4306 5.93028C7.87569 5.93028 8.2365 6.2913 8.2365 6.73664Z",style:{fill:t}})}),sd=()=>_.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsx("style",{children:We}),_.jsx("path",{d:"M10.1489 8L1.6001 24.1824H4.1585L12.7073 8H10.1489Z",fill:"#2A6AFF"}),_.jsx("path",{d:"M15.8339 12.5552C16.7499 12.5552 17.4979 11.7856 17.4979 10.8704C17.4979 9.9552 16.7499 9.1856 15.8339 9.1856C14.8979 9.1856 14.1499 9.9552 14.1499 10.8704C14.1499 11.7856 14.8979 12.5552 15.8339 12.5552ZM14.4619 14.0112V24.1824H17.1659V14.0112H14.4619ZM27.3507 8V14.8016C26.5377 14.1118 25.5049 13.7356 24.4387 13.7408C21.4851 13.7408 19.2595 16.112 19.2595 19.1072C19.2595 22.1024 21.4851 24.4736 24.4387 24.4736C25.6659 24.4736 26.7475 24.016 27.5587 23.2256V24.1824H30.0547V8H27.3507ZM24.7507 21.936C23.1907 21.936 22.0467 20.7296 22.0467 19.1072C22.0467 17.4848 23.1907 16.2784 24.7507 16.2784C26.3107 16.2784 27.4547 17.4848 27.4547 19.1072C27.4547 20.7296 26.3107 21.936 24.7507 21.936Z",fill:"#142049"})]});var qo=new Map;function Ss(e){if(qo.has(e))return qo.get(e);var t=y_(e);return qo.set(e,t),t}var y_=function(){var e=null;try{e=document.createElement("canvas").getContext("2d")}catch{}if(!e)return function(){return!1};var t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,function(o){e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(o,0,22),e.fillStyle="#0000FF",e.fillText(o,n,22);for(var i=e.getImageData(0,0,n,t).data,a=i.length,s=0;s<a&&!i[s+3];s+=4);if(s>=a)return!1;var c=n+s/4%n,l=Math.floor(s/4/n),u=e.getImageData(c,l,1,1).data;return!(i[s]!==u[0]||i[s+2]!==u[2]||e.measureText(o).width>=n)}}();function x_(e="Twemoji Country Flags",t="https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2"){if(Ss("😊")&&!Ss("🇨🇭")){const n=document.createElement("style");return n.textContent=`@font-face {
55
+ font-family: "${e}";
56
+ unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
57
+ U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
58
+ src: url('${t}') format('woff2');
59
+ font-display: swap;
60
+ }`,document.head.appendChild(n),!0}return!1}var je={},Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});var C_=[{name:"Afghanistan",dial_code:"+93",code:"AF",flag:"🇦🇫"},{name:"Albania",dial_code:"+355",code:"AL",flag:"🇦🇱"},{name:"Algeria",dial_code:"+213",code:"DZ",flag:"🇩🇿"},{name:"AmericanSamoa",dial_code:"+1684",code:"AS",flag:"🇦🇸"},{name:"Andorra",dial_code:"+376",code:"AD",flag:"🇦🇩"},{name:"Angola",dial_code:"+244",code:"AO",flag:"🇦🇴"},{name:"Anguilla",dial_code:"+1264",code:"AI",flag:"🇦🇮"},{name:"Antarctica",dial_code:"+672",code:"AQ",flag:"🇦🇶"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",flag:"🇦🇬"},{name:"Argentina",dial_code:"+54",code:"AR",flag:"🇦🇷"},{name:"Armenia",dial_code:"+374",code:"AM",flag:"🇦🇲"},{name:"Aruba",dial_code:"+297",code:"AW",flag:"🇦🇼"},{name:"Australia",dial_code:"+61",code:"AU",preferred:!0,flag:"🇦🇺"},{name:"Austria",dial_code:"+43",code:"AT",flag:"🇦🇹"},{name:"Azerbaijan",dial_code:"+994",code:"AZ",flag:"🇦🇿"},{name:"Bahamas",dial_code:"+1242",code:"BS",flag:"🇧🇸"},{name:"Bahrain",dial_code:"+973",code:"BH",flag:"🇧🇭"},{name:"Bangladesh",dial_code:"+880",code:"BD",flag:"🇧🇩"},{name:"Barbados",dial_code:"+1246",code:"BB",flag:"🇧🇧"},{name:"Belarus",dial_code:"+375",code:"BY",flag:"🇧🇾"},{name:"Belgium",dial_code:"+32",code:"BE",flag:"🇧🇪"},{name:"Belize",dial_code:"+501",code:"BZ",flag:"🇧🇿"},{name:"Benin",dial_code:"+229",code:"BJ",flag:"🇧🇯"},{name:"Bermuda",dial_code:"+1441",code:"BM",flag:"🇧🇲"},{name:"Bhutan",dial_code:"+975",code:"BT",flag:"🇧🇹"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO",flag:"🇧🇴"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",flag:"🇧🇦"},{name:"Botswana",dial_code:"+267",code:"BW",flag:"🇧🇼"},{name:"Brazil",dial_code:"+55",code:"BR",flag:"🇧🇷"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",flag:"🇮🇴"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN",flag:"🇧🇳"},{name:"Bulgaria",dial_code:"+359",code:"BG",flag:"🇧🇬"},{name:"Burkina Faso",dial_code:"+226",code:"BF",flag:"🇧🇫"},{name:"Burundi",dial_code:"+257",code:"BI",flag:"🇧🇮"},{name:"Cambodia",dial_code:"+855",code:"KH",flag:"🇰🇭"},{name:"Cameroon",dial_code:"+237",code:"CM",flag:"🇨🇲"},{name:"Canada",dial_code:"+1",code:"CA",flag:"🇨🇦"},{name:"Cape Verde",dial_code:"+238",code:"CV",flag:"🇨🇻"},{name:"Cayman Islands",dial_code:"+345",code:"KY",flag:"🇰🇾"},{name:"Central African Republic",dial_code:"+236",code:"CF",flag:"🇨🇫"},{name:"Chad",dial_code:"+235",code:"TD",flag:"🇹🇩"},{name:"Chile",dial_code:"+56",code:"CL",flag:"🇨🇱"},{name:"China",dial_code:"+86",code:"CN",flag:"🇨🇳"},{name:"Christmas Island",dial_code:"+61",code:"CX",flag:"🇨🇽"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",flag:"🇨🇨"},{name:"Colombia",dial_code:"+57",code:"CO",flag:"🇨🇴"},{name:"Comoros",dial_code:"+269",code:"KM",flag:"🇰🇲"},{name:"Congo",dial_code:"+242",code:"CG",flag:"🇨🇬"},{name:"Congo, The Democratic Republic of the",dial_code:"+243",code:"CD",flag:"🇨🇩"},{name:"Cook Islands",dial_code:"+682",code:"CK",flag:"🇨🇰"},{name:"Costa Rica",dial_code:"+506",code:"CR",flag:"🇨🇷"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",flag:"🇨🇮"},{name:"Croatia",dial_code:"+385",code:"HR",flag:"🇭🇷"},{name:"Cuba",dial_code:"+53",code:"CU",flag:"🇨🇺"},{name:"Cyprus",dial_code:"+357",code:"CY",flag:"🇨🇾"},{name:"Czech Republic",dial_code:"+420",code:"CZ",flag:"🇨🇿"},{name:"Denmark",dial_code:"+45",code:"DK",flag:"🇩🇰"},{name:"Djibouti",dial_code:"+253",code:"DJ",flag:"🇩🇯"},{name:"Dominica",dial_code:"+1767",code:"DM",flag:"🇩🇲"},{name:"Dominican Republic",dial_code:"+1849",code:"DO",flag:"🇩🇴"},{name:"Ecuador",dial_code:"+593",code:"EC",flag:"🇪🇨"},{name:"Egypt",dial_code:"+20",code:"EG",flag:"🇪🇬"},{name:"El Salvador",dial_code:"+503",code:"SV",flag:"🇸🇻"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",flag:"🇬🇶"},{name:"Eritrea",dial_code:"+291",code:"ER",flag:"🇪🇷"},{name:"Estonia",dial_code:"+372",code:"EE",flag:"🇪🇪"},{name:"Ethiopia",dial_code:"+251",code:"ET",flag:"🇪🇹"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK",flag:"🇫🇰"},{name:"Faroe Islands",dial_code:"+298",code:"FO",flag:"🇫🇴"},{name:"Fiji",dial_code:"+679",code:"FJ",flag:"🇫🇯"},{name:"Finland",dial_code:"+358",code:"FI",flag:"🇫🇮"},{name:"France",dial_code:"+33",code:"FR",flag:"🇫🇷"},{name:"French Guiana",dial_code:"+594",code:"GF",flag:"🇬🇫"},{name:"French Polynesia",dial_code:"+689",code:"PF",flag:"🇵🇫"},{name:"Gabon",dial_code:"+241",code:"GA",flag:"🇬🇦"},{name:"Gambia",dial_code:"+220",code:"GM",flag:"🇬🇲"},{name:"Georgia",dial_code:"+995",code:"GE",flag:"🇬🇪"},{name:"Germany",dial_code:"+49",code:"DE",flag:"🇩🇪"},{name:"Ghana",dial_code:"+233",code:"GH",flag:"🇬🇭"},{name:"Gibraltar",dial_code:"+350",code:"GI",flag:"🇬🇮"},{name:"Greece",dial_code:"+30",code:"GR",flag:"🇬🇷"},{name:"Greenland",dial_code:"+299",code:"GL",flag:"🇬🇱"},{name:"Grenada",dial_code:"+1473",code:"GD",flag:"🇬🇩"},{name:"Guadeloupe",dial_code:"+590",code:"GP",flag:"🇬🇵"},{name:"Guam",dial_code:"+1671",code:"GU",flag:"🇬🇺"},{name:"Guatemala",dial_code:"+502",code:"GT",flag:"🇬🇹"},{name:"Guernsey",dial_code:"+44",code:"GG",flag:"🇬🇬"},{name:"Guinea",dial_code:"+224",code:"GN",flag:"🇬🇳"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW",flag:"🇬🇼"},{name:"Guyana",dial_code:"+592",code:"GY",flag:"🇬🇾"},{name:"Haiti",dial_code:"+509",code:"HT",flag:"🇭🇹"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",flag:"🇻🇦"},{name:"Honduras",dial_code:"+504",code:"HN",flag:"🇭🇳"},{name:"Hong Kong",dial_code:"+852",code:"HK",flag:"🇭🇰"},{name:"Hungary",dial_code:"+36",code:"HU",flag:"🇭🇺"},{name:"Iceland",dial_code:"+354",code:"IS",flag:"🇮🇸"},{name:"India",dial_code:"+91",code:"IN",preferred:!0,flag:"🇮🇳"},{name:"Indonesia",dial_code:"+62",code:"ID",flag:"🇮🇩"},{name:"Iran, Islamic Republic of",dial_code:"+98",code:"IR",flag:"🇮🇷"},{name:"Iraq",dial_code:"+964",code:"IQ",flag:"🇮🇶"},{name:"Ireland",dial_code:"+353",code:"IE",flag:"🇮🇪"},{name:"Isle of Man",dial_code:"+44",code:"IM",flag:"🇮🇲"},{name:"Israel",dial_code:"+972",code:"IL",flag:"🇮🇱"},{name:"Italy",dial_code:"+39",code:"IT",flag:"🇮🇹"},{name:"Jamaica",dial_code:"+1876",code:"JM",flag:"🇯🇲"},{name:"Japan",dial_code:"+81",code:"JP",flag:"🇯🇵"},{name:"Jersey",dial_code:"+44",code:"JE",flag:"🇯🇪"},{name:"Jordan",dial_code:"+962",code:"JO",flag:"🇯🇴"},{name:"Kazakhstan",dial_code:"+77",code:"KZ",flag:"🇰🇿"},{name:"Kenya",dial_code:"+254",code:"KE",flag:"🇰🇪"},{name:"Kiribati",dial_code:"+686",code:"KI",flag:"🇰🇮"},{name:"Korea, Democratic People's Republic of",dial_code:"+850",code:"KP",flag:"🇰🇵"},{name:"Korea, Republic of",dial_code:"+82",code:"KR",flag:"🇰🇷"},{name:"Kuwait",dial_code:"+965",code:"KW",flag:"🇰🇼"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG",flag:"🇰🇬"},{name:"Lao People's Democratic Republic",dial_code:"+856",code:"LA",flag:"🇱🇦"},{name:"Latvia",dial_code:"+371",code:"LV",flag:"🇱🇻"},{name:"Lebanon",dial_code:"+961",code:"LB",flag:"🇱🇧"},{name:"Lesotho",dial_code:"+266",code:"LS",flag:"🇱🇸"},{name:"Liberia",dial_code:"+231",code:"LR",flag:"🇱🇷"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",flag:"🇱🇾"},{name:"Liechtenstein",dial_code:"+423",code:"LI",flag:"🇱🇮"},{name:"Lithuania",dial_code:"+370",code:"LT",flag:"🇱🇹"},{name:"Luxembourg",dial_code:"+352",code:"LU",flag:"🇱🇺"},{name:"Macao",dial_code:"+853",code:"MO",flag:"🇲🇴"},{name:"Macedonia, The Former Yugoslav Republic of",dial_code:"+389",code:"MK",flag:"🇲🇰"},{name:"Madagascar",dial_code:"+261",code:"MG",flag:"🇲🇬"},{name:"Malawi",dial_code:"+265",code:"MW",flag:"🇲🇼"},{name:"Malaysia",dial_code:"+60",code:"MY",flag:"🇲🇾"},{name:"Maldives",dial_code:"+960",code:"MV",flag:"🇲🇻"},{name:"Mali",dial_code:"+223",code:"ML",flag:"🇲🇱"},{name:"Malta",dial_code:"+356",code:"MT",flag:"🇲🇹"},{name:"Marshall Islands",dial_code:"+692",code:"MH",flag:"🇲🇭"},{name:"Martinique",dial_code:"+596",code:"MQ",flag:"🇲🇶"},{name:"Mauritania",dial_code:"+222",code:"MR",flag:"🇲🇷"},{name:"Mauritius",dial_code:"+230",code:"MU",flag:"🇲🇺"},{name:"Mayotte",dial_code:"+262",code:"YT",flag:"🇾🇹"},{name:"Mexico",dial_code:"+52",code:"MX",flag:"🇲🇽"},{name:"Micronesia, Federated States of",dial_code:"+691",code:"FM",flag:"🇫🇲"},{name:"Moldova, Republic of",dial_code:"+373",code:"MD",flag:"🇲🇩"},{name:"Monaco",dial_code:"+377",code:"MC",flag:"🇲🇨"},{name:"Mongolia",dial_code:"+976",code:"MN",flag:"🇲🇳"},{name:"Montenegro",dial_code:"+382",code:"ME",flag:"🇲🇪"},{name:"Montserrat",dial_code:"+1664",code:"MS",flag:"🇲🇸"},{name:"Morocco",dial_code:"+212",code:"MA",flag:"🇲🇦"},{name:"Mozambique",dial_code:"+258",code:"MZ",flag:"🇲🇿"},{name:"Myanmar",dial_code:"+95",code:"MM",flag:"🇲🇲"},{name:"Namibia",dial_code:"+264",code:"NA",flag:"🇳🇦"},{name:"Nauru",dial_code:"+674",code:"NR",flag:"🇳🇷"},{name:"Nepal",dial_code:"+977",code:"NP",flag:"🇳🇵"},{name:"Netherlands",dial_code:"+31",code:"NL",flag:"🇳🇱"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN",flag:"🇦🇳"},{name:"New Caledonia",dial_code:"+687",code:"NC",flag:"🇳🇨"},{name:"New Zealand",dial_code:"+64",code:"NZ",flag:"🇳🇿"},{name:"Nicaragua",dial_code:"+505",code:"NI",flag:"🇳🇮"},{name:"Niger",dial_code:"+227",code:"NE",flag:"🇳🇪"},{name:"Nigeria",dial_code:"+234",code:"NG",flag:"🇳🇬"},{name:"Niue",dial_code:"+683",code:"NU",flag:"🇳🇺"},{name:"Norfolk Island",dial_code:"+672",code:"NF",flag:"🇳🇫"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",flag:"🇲🇵"},{name:"Norway",dial_code:"+47",code:"NO",flag:"🇳🇴"},{name:"Oman",dial_code:"+968",code:"OM",flag:"🇴🇲"},{name:"Pakistan",dial_code:"+92",code:"PK",flag:"🇵🇰"},{name:"Palau",dial_code:"+680",code:"PW",flag:"🇵🇼"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",flag:"🇵🇸"},{name:"Panama",dial_code:"+507",code:"PA",flag:"🇵🇦"},{name:"Papua New Guinea",dial_code:"+675",code:"PG",flag:"🇵🇬"},{name:"Paraguay",dial_code:"+595",code:"PY",flag:"🇵🇾"},{name:"Peru",dial_code:"+51",code:"PE",flag:"🇵🇪"},{name:"Philippines",dial_code:"+63",code:"PH",flag:"🇵🇭"},{name:"Pitcairn",dial_code:"+872",code:"PN",flag:"🇵🇳"},{name:"Poland",dial_code:"+48",code:"PL",flag:"🇵🇱"},{name:"Portugal",dial_code:"+351",code:"PT",flag:"🇵🇹"},{name:"Puerto Rico",dial_code:"+1939",code:"PR",flag:"🇵🇷"},{name:"Qatar",dial_code:"+974",code:"QA",flag:"🇶🇦"},{name:"Romania",dial_code:"+40",code:"RO",flag:"🇷🇴"},{name:"Russia",dial_code:"+7",code:"RU",flag:"🇷🇺"},{name:"Rwanda",dial_code:"+250",code:"RW",flag:"🇷🇼"},{name:"Réunion",dial_code:"+262",code:"RE",flag:"🇷🇪"},{name:"Saint Barthélemy",dial_code:"+590",code:"BL",flag:"🇧🇱"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",flag:"🇸🇭"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",flag:"🇰🇳"},{name:"Saint Lucia",dial_code:"+1758",code:"LC",flag:"🇱🇨"},{name:"Saint Martin",dial_code:"+590",code:"MF",flag:"🇲🇫"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",flag:"🇵🇲"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",flag:"🇻🇨"},{name:"Samoa",dial_code:"+685",code:"WS",flag:"🇼🇸"},{name:"San Marino",dial_code:"+378",code:"SM",flag:"🇸🇲"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",flag:"🇸🇹"},{name:"Saudi Arabia",dial_code:"+966",code:"SA",flag:"🇸🇦"},{name:"Senegal",dial_code:"+221",code:"SN",flag:"🇸🇳"},{name:"Serbia",dial_code:"+381",code:"RS",flag:"🇷🇸"},{name:"Seychelles",dial_code:"+248",code:"SC",flag:"🇸🇨"},{name:"Sierra Leone",dial_code:"+232",code:"SL",flag:"🇸🇱"},{name:"Singapore",dial_code:"+65",code:"SG",flag:"🇸🇬"},{name:"Slovakia",dial_code:"+421",code:"SK",flag:"🇸🇰"},{name:"Slovenia",dial_code:"+386",code:"SI",flag:"🇸🇮"},{name:"Solomon Islands",dial_code:"+677",code:"SB",flag:"🇸🇧"},{name:"Somalia",dial_code:"+252",code:"SO",flag:"🇸🇴"},{name:"South Africa",dial_code:"+27",code:"ZA",flag:"🇿🇦"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",flag:"🇬🇸"},{name:"Spain",dial_code:"+34",code:"ES",flag:"🇪🇸"},{name:"Sri Lanka",dial_code:"+94",code:"LK",flag:"🇱🇰"},{name:"Sudan",dial_code:"+249",code:"SD",flag:"🇸🇩"},{name:"South Sudan",dial_code:"+211",code:"SS",flag:"🇸🇸"},{name:"Suriname",dial_code:"+597",code:"SR",flag:"🇸🇷"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",flag:"🇸🇯"},{name:"Swaziland",dial_code:"+268",code:"SZ",flag:"🇸🇿"},{name:"Sweden",dial_code:"+46",code:"SE",flag:"🇸🇪"},{name:"Switzerland",dial_code:"+41",code:"CH",flag:"🇨🇭"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",flag:"🇸🇾"},{name:"Taiwan, Province of China",dial_code:"+886",code:"TW",flag:"🇹🇼"},{name:"Tajikistan",dial_code:"+992",code:"TJ",flag:"🇹🇯"},{name:"Tanzania, United Republic of",dial_code:"+255",code:"TZ",flag:"🇹🇿"},{name:"Thailand",dial_code:"+66",code:"TH",flag:"🇹🇭"},{name:"Timor-Leste",dial_code:"+670",code:"TL",flag:"🇹🇱"},{name:"Togo",dial_code:"+228",code:"TG",flag:"🇹🇬"},{name:"Tokelau",dial_code:"+690",code:"TK",flag:"🇹🇰"},{name:"Tonga",dial_code:"+676",code:"TO",flag:"🇹🇴"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",flag:"🇹🇹"},{name:"Tunisia",dial_code:"+216",code:"TN",flag:"🇹🇳"},{name:"Turkey",dial_code:"+90",code:"TR",flag:"🇹🇷"},{name:"Turkmenistan",dial_code:"+993",code:"TM",flag:"🇹🇲"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",flag:"🇹🇨"},{name:"Tuvalu",dial_code:"+688",code:"TV",flag:"🇹🇻"},{name:"Uganda",dial_code:"+256",code:"UG",flag:"🇺🇬"},{name:"Ukraine",dial_code:"+380",code:"UA",flag:"🇺🇦"},{name:"United Arab Emirates",dial_code:"+971",code:"AE",preferred:!0,flag:"🇦🇪"},{name:"United Kingdom",dial_code:"+44",code:"GB",preferred:!0,flag:"🇬🇧"},{name:"United States",dial_code:"+1",code:"US",preferred:!0,flag:"🇺🇸"},{name:"Uruguay",dial_code:"+598",code:"UY",flag:"🇺🇾"},{name:"Uzbekistan",dial_code:"+998",code:"UZ",flag:"🇺🇿"},{name:"Vanuatu",dial_code:"+678",code:"VU",flag:"🇻🇺"},{name:"Venezuela, Bolivarian Republic of",dial_code:"+58",code:"VE",flag:"🇻🇪"},{name:"Viet Nam",dial_code:"+84",code:"VN",flag:"🇻🇳"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",flag:"🇻🇬"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",flag:"🇻🇮"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF",flag:"🇼🇫"},{name:"Yemen",dial_code:"+967",code:"YE",flag:"🇾🇪"},{name:"Zambia",dial_code:"+260",code:"ZM",flag:"🇿🇲"},{name:"Zimbabwe",dial_code:"+263",code:"ZW",flag:"🇿🇼"},{name:"Åland Islands",dial_code:"+358",code:"AX",flag:"🇦🇽"}];Wi.default=C_;Object.defineProperty(je,"__esModule",{value:!0});je.searchFlag=je.findFlagsByDialCode=cd=je.findFlagByDialCode=Ki=je.findFlag=Yi=je.getList=void 0;var to=Wi,k_=function(e){return to.default.find(function(t){return t.code.toLowerCase()===e.toLowerCase()})},Ki=je.findFlag=k_,E_=function(e){var t,n=ld(e),r=n.find(function(o){return o.dial_code===e&&o.preferred});return r||((t=n[0])!==null&&t!==void 0?t:null)},cd=je.findFlagByDialCode=E_,ld=function(e){return to.default.filter(function(t){return t.dial_code===e})};je.findFlagsByDialCode=ld;var S_=function(){return to.default},Yi=je.getList=S_,$_=function(e){return to.default.filter(function(t){return t.code.toLowerCase().includes(e.toLowerCase())||t.name.toLowerCase().includes(e.toLowerCase())||t.dial_code.toLowerCase().includes(e.toLowerCase())})};je.searchFlag=$_;const I_=({name:e,id:t,label:n,placeholder:r="",className:o="",value:i,flag:a,onChange:s,onFlagChange:c})=>{d.useLayoutEffect(()=>{x_()},[]);const l=d.useCallback(u=>{const f=u.target.value;c(Ki(f))},[c]);return _.jsxs("div",{className:ne("sid-input","sid-input--tel",od,o),children:[a?_.jsxs("div",{className:n_,children:[_.jsxs("div",{className:t_,children:[_.jsxs("div",{children:[a.flag," ",a.dial_code]}),_.jsx(ad,{})]}),_.jsx("select",{className:s_,value:a.code,onChange:l,children:Yi().map(u=>_.jsxs("option",{value:u.code,children:[u.name," ",u.dial_code]},u.code))})]}):null,_.jsx(id,{id:t,name:e,label:n,placeholder:r,className:o,type:"tel",value:i,onChange:s})]})};var R_="_1dpv0n91",q_="_1dpv0n90",$s="_1dpv0n92";const z_=({children:e})=>_.jsxs("div",{className:ne("sid-divider",q_),children:[_.jsx("hr",{className:$s}),_.jsx("span",{className:R_,children:e}),_.jsx("hr",{className:$s})]});function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function mt(e,t=[]){let n=[];function r(i,a){const s=d.createContext(a),c=n.length;n=[...n,a];function l(f){const{scope:p,children:h,...g}=f,m=p?.[e][c]||s,b=d.useMemo(()=>g,Object.values(g));return d.createElement(m.Provider,{value:b},h)}function u(f,p){const h=p?.[e][c]||s,g=d.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(a=>d.createContext(a));return function(a){const s=a?.[e]||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[r,D_(o,...t)]}function D_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((a,{useScope:s,scopeName:c})=>{const l=s(o)[`__scope${c}`];return{...a,...l}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function T_(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function dd(...e){return t=>e.forEach(n=>T_(n,t))}function we(...e){return d.useCallback(dd(...e),e)}const An=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(A_);if(i){const a=i.props.children,s=o.map(c=>c===i?d.Children.count(a)>1?d.Children.only(null):d.isValidElement(a)?a.props.children:null:c);return d.createElement(ui,K({},r,{ref:t}),d.isValidElement(a)?d.cloneElement(a,void 0,s):null)}return d.createElement(ui,K({},r,{ref:t}),n)});An.displayName="Slot";const ui=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...P_(r,n.props),ref:t?dd(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});ui.displayName="SlotClone";const L_=({children:e})=>d.createElement(d.Fragment,null,e);function A_(e){return d.isValidElement(e)&&e.type===L_}function P_(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Zi(e){const t=e+"CollectionProvider",[n,r]=mt(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:g,children:m}=h,b=U.useRef(null),w=U.useRef(new Map).current;return U.createElement(o,{scope:g,itemMap:w,collectionRef:b},m)},s=e+"CollectionSlot",c=U.forwardRef((h,g)=>{const{scope:m,children:b}=h,w=i(s,m),v=we(g,w.collectionRef);return U.createElement(An,{ref:v},b)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",f=U.forwardRef((h,g)=>{const{scope:m,children:b,...w}=h,v=U.useRef(null),y=we(g,v),x=i(l,m);return U.useEffect(()=>(x.itemMap.set(v,{ref:v,...w}),()=>void x.itemMap.delete(v))),U.createElement(An,{[u]:"",ref:y},b)});function p(h){const g=i(e+"CollectionConsumer",h);return U.useCallback(()=>{const m=g.collectionRef.current;if(!m)return[];const b=Array.from(m.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((w,v)=>b.indexOf(w.ref.current)-b.indexOf(v.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:c,ItemSlot:f},p,r]}function le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Qe(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function an({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=O_({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Qe(n),c=d.useCallback(l=>{if(i){const u=typeof l=="function"?l(e):l;u!==e&&s(u)}else o(l)},[i,e,o,s]);return[a,c]}function O_({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=Qe(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const M_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_e=M_.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...a}=r,s=i?An:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(s,K({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function N_(e,t){e&&ln.flushSync(()=>e.dispatchEvent(t))}const Le=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function F_(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}const ud=e=>{const{present:t,children:n}=e,r=U_(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=we(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};ud.displayName="Presence";function U_(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),a=e?"mounted":"unmounted",[s,c]=F_(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=rr(r.current);i.current=s==="mounted"?l:"none"},[s]),Le(()=>{const l=r.current,u=o.current;if(u!==e){const f=i.current,p=rr(l);e?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Le(()=>{if(t){const l=f=>{const p=rr(r.current).includes(f.animationName);f.target===t&&p&&ln.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=rr(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function rr(e){return e?.animationName||"none"}const V_=vu["useId".toString()]||(()=>{});let B_=0;function jn(e){const[t,n]=d.useState(V_());return Le(()=>{e||n(r=>r??String(B_++))},[e]),e||(t?`radix-${t}`:"")}const fd="Collapsible",[j_,hd]=mt(fd);j_(fd);const H_=d.createContext(void 0);function no(e){const t=d.useContext(H_);return e||t||"ltr"}const Hn="Accordion",G_=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[pd,W_,K_]=Zi(Hn),[ro,x5]=mt(Hn,[K_,hd]);hd();const Y_=U.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return U.createElement(pd.Provider,{scope:e.__scopeAccordion},n==="multiple"?U.createElement(J_,K({},i,{ref:t})):U.createElement(Z_,K({},o,{ref:t})))});Y_.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[md,C5]=ro(Hn),[gd,k5]=ro(Hn,{collapsible:!1}),Z_=U.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,c]=an({prop:n,defaultProp:r,onChange:o});return U.createElement(md,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:U.useCallback(()=>i&&c(""),[i,c])},U.createElement(gd,{scope:e.__scopeAccordion,collapsible:i},U.createElement(bd,K({},a,{ref:t}))))}),J_=U.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a=[],s]=an({prop:n,defaultProp:r,onChange:o}),c=U.useCallback(u=>s((f=[])=>[...f,u]),[s]),l=U.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return U.createElement(md,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:l},U.createElement(gd,{scope:e.__scopeAccordion,collapsible:!0},U.createElement(bd,K({},i,{ref:t}))))}),[X_,E5]=ro(Hn),bd=U.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,s=U.useRef(null),c=we(s,t),l=W_(n),u=no(o)==="ltr",f=le(e.onKeyDown,p=>{var h;if(!G_.includes(p.key))return;const g=p.target,m=l().filter(R=>{var L;return!((L=R.ref.current)!==null&&L!==void 0&&L.disabled)}),b=m.findIndex(R=>R.ref.current===g),w=m.length;if(b===-1)return;p.preventDefault();let v=b;const y=0,x=w-1,E=()=>{v=b+1,v>x&&(v=y)},q=()=>{v=b-1,v<y&&(v=x)};switch(p.key){case"Home":v=y;break;case"End":v=x;break;case"ArrowRight":i==="horizontal"&&(u?E():q());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(u?q():E());break;case"ArrowUp":i==="vertical"&&q();break}const I=v%w;(h=m[I].ref.current)===null||h===void 0||h.focus()});return U.createElement(X_,{scope:n,disabled:r,direction:o,orientation:i},U.createElement(pd.Slot,{scope:n},U.createElement(_e.div,K({},a,{"data-orientation":i,ref:c,onKeyDown:r?void 0:f}))))}),Q_="AccordionItem";ro(Q_);function ev(e,t=globalThis?.document){const n=Qe(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}let zo=0;function tv(){d.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Is()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Is()),zo++,()=>{zo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),zo--}},[])}function Is(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Xe=function(){return Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xe.apply(this,arguments)};function _d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function nv(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var hr="right-scroll-bar-position",pr="width-before-scroll-bar",rv="with-scroll-bars-hidden",ov="--removed-body-scroll-bar-size";function iv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function av(e,t){var n=d.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function sv(e,t){return av(t||null,function(n){return e.forEach(function(r){return iv(r,n)})})}function cv(e){return e}function lv(e,t){t===void 0&&(t=cv);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var u=a;a=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){a.push(u),l()},filter:function(u){return a=a.filter(u),n}}}};return o}function dv(e){e===void 0&&(e={});var t=lv(null);return t.options=Xe({async:!0,ssr:!1},e),t}var vd=function(e){var t=e.sideCar,n=_d(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Xe({},n))};vd.isSideCarExport=!0;function uv(e,t){return e.useMedium(t),vd}var wd=dv(),Do=function(){},oo=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Do,onWheelCapture:Do,onTouchMoveCapture:Do}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,v=_d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=p,x=sv([n,t]),E=Xe(Xe({},v),o);return d.createElement(d.Fragment,null,u&&d.createElement(y,{sideCar:wd,removeScrollBar:l,shards:f,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?d.cloneElement(d.Children.only(s),Xe(Xe({},E),{ref:x})):d.createElement(w,Xe({},E,{className:c,ref:x}),s))});oo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};oo.classNames={fullWidth:pr,zeroRight:hr};var fv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fv();return t&&e.setAttribute("nonce",t),e}function pv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hv())&&(pv(t,n),mv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bv=function(){var e=gv();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yd=function(){var e=bv(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_v={left:0,top:0,right:0,gap:0},To=function(e){return parseInt(e||"",10)||0},vv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[To(n),To(r),To(o)]},wv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _v;var t=vv(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yv=yd(),xv=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
61
+ .`.concat(rv,` {
62
+ overflow: hidden `).concat(r,`;
63
+ padding-right: `).concat(s,"px ").concat(r,`;
64
+ }
65
+ body {
66
+ overflow: hidden `).concat(r,`;
67
+ overscroll-behavior: contain;
68
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
69
+ padding-left: `.concat(o,`px;
70
+ padding-top: `).concat(i,`px;
71
+ padding-right: `).concat(a,`px;
72
+ margin-left:0;
73
+ margin-top:0;
74
+ margin-right: `).concat(s,"px ").concat(r,`;
75
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
76
+ }
77
+
78
+ .`).concat(hr,` {
79
+ right: `).concat(s,"px ").concat(r,`;
80
+ }
81
+
82
+ .`).concat(pr,` {
83
+ margin-right: `).concat(s,"px ").concat(r,`;
84
+ }
85
+
86
+ .`).concat(hr," .").concat(hr,` {
87
+ right: 0 `).concat(r,`;
88
+ }
89
+
90
+ .`).concat(pr," .").concat(pr,` {
91
+ margin-right: 0 `).concat(r,`;
92
+ }
93
+
94
+ body {
95
+ `).concat(ov,": ").concat(s,`px;
96
+ }
97
+ `)},Cv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=d.useMemo(function(){return wv(o)},[o]);return d.createElement(yv,{styles:xv(i,!t,o,n?"":"!important")})},fi=!1;if(typeof window<"u")try{var or=Object.defineProperty({},"passive",{get:function(){return fi=!0,!0}});window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{fi=!1}var jt=fi?{passive:!1}:!1,kv=function(e){return e.tagName==="TEXTAREA"},xd=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!kv(e)&&n[t]==="visible")},Ev=function(e){return xd(e,"overflowY")},Sv=function(e){return xd(e,"overflowX")},Rs=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Cd(e,n);if(r){var o=kd(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$v=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Iv=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Cd=function(e,t){return e==="v"?Ev(t):Sv(t)},kd=function(e,t){return e==="v"?$v(t):Iv(t)},Rv=function(e,t){return e==="h"&&t==="rtl"?-1:1},qv=function(e,t,n,r,o){var i=Rv(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),l=!1,u=a>0,f=0,p=0;do{var h=kd(e,s),g=h[0],m=h[1],b=h[2],w=m-b-i*g;(g||w)&&Cd(e,s)&&(f+=w,p+=g),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&a>f)||!u&&(o&&p===0||!o&&-a>p))&&(l=!0),l},ir=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qs=function(e){return[e.deltaX,e.deltaY]},zs=function(e){return e&&"current"in e?e.current:e},zv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Dv=function(e){return`
98
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
99
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
100
+ `)},Tv=0,Ht=[];function Lv(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Tv++)[0],i=d.useState(function(){return yd()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=nv([e.lockRef.current],(e.shards||[]).map(zs),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(m,b){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var w=ir(m),v=n.current,y="deltaX"in m?m.deltaX:v[0]-w[0],x="deltaY"in m?m.deltaY:v[1]-w[1],E,q=m.target,I=Math.abs(y)>Math.abs(x)?"h":"v";if("touches"in m&&I==="h"&&q.type==="range")return!1;var R=Rs(I,q);if(!R)return!0;if(R?E=I:(E=I==="v"?"h":"v",R=Rs(I,q)),!R)return!1;if(!r.current&&"changedTouches"in m&&(y||x)&&(r.current=E),!E)return!0;var L=r.current||E;return qv(L,b,m,L==="h"?y:x,!0)},[]),c=d.useCallback(function(m){var b=m;if(!(!Ht.length||Ht[Ht.length-1]!==i)){var w="deltaY"in b?qs(b):ir(b),v=t.current.filter(function(E){return E.name===b.type&&E.target===b.target&&zv(E.delta,w)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var y=(a.current.shards||[]).map(zs).filter(Boolean).filter(function(E){return E.contains(b.target)}),x=y.length>0?s(b,y[0]):!a.current.noIsolation;x&&b.cancelable&&b.preventDefault()}}},[]),l=d.useCallback(function(m,b,w,v){var y={name:m,delta:b,target:w,should:v};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(x){return x!==y})},1)},[]),u=d.useCallback(function(m){n.current=ir(m),r.current=void 0},[]),f=d.useCallback(function(m){l(m.type,qs(m),m.target,s(m,e.lockRef.current))},[]),p=d.useCallback(function(m){l(m.type,ir(m),m.target,s(m,e.lockRef.current))},[]);d.useEffect(function(){return Ht.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,jt),document.addEventListener("touchmove",c,jt),document.addEventListener("touchstart",u,jt),function(){Ht=Ht.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,jt),document.removeEventListener("touchmove",c,jt),document.removeEventListener("touchstart",u,jt)}},[]);var h=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(i,{styles:Dv(o)}):null,h?d.createElement(Cv,{gapMode:"margin"}):null)}const Av=uv(wd,Lv);var Ed=d.forwardRef(function(e,t){return d.createElement(oo,Xe({},e,{ref:t,sideCar:Av}))});Ed.classNames=oo.classNames;const Pv=Ed;var Ov=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gt=new WeakMap,ar=new WeakMap,sr={},Lo=0,Sd=function(e){return e&&(e.host||Sd(e.parentNode))},Mv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Sd(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Nv=function(e,t,n,r){var o=Mv(t,Array.isArray(e)?e:[e]);sr[n]||(sr[n]=new WeakMap);var i=sr[n],a=[],s=new Set,c=new Set(o),l=function(f){!f||s.has(f)||(s.add(f),l(f.parentNode))};o.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))u(p);else{var h=p.getAttribute(r),g=h!==null&&h!=="false",m=(Gt.get(p)||0)+1,b=(i.get(p)||0)+1;Gt.set(p,m),i.set(p,b),a.push(p),m===1&&g&&ar.set(p,!0),b===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}})};return u(t),s.clear(),Lo++,function(){a.forEach(function(f){var p=Gt.get(f)-1,h=i.get(f)-1;Gt.set(f,p),i.set(f,h),p||(ar.has(f)||f.removeAttribute(r),ar.delete(f)),h||f.removeAttribute(n)}),Lo--,Lo||(Gt=new WeakMap,Gt=new WeakMap,ar=new WeakMap,sr={})}},Fv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Ov(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Nv(r,o,n,"aria-hidden")):function(){return null}};const $d="Dialog",[Id,S5]=mt($d);Id($d);const Uv="DialogPortal";Id(Uv,{forceMount:void 0});function Vv(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Bv(e){const[t,n]=d.useState(void 0);return Le(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,s=l.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Rd="Switch",[jv,$5]=mt(Rd);jv(Rd);var Hv="q9c0is3",Gv="q9c0isg",Wv={blue:"q9c0ise q9c0isc",red:"q9c0isf q9c0isc"},Kv="q9c0isd",Yv={blue:"q9c0isa q9c0is8",red:"q9c0isb q9c0is8"},Zv="q9c0is9",Jv={blue:"q9c0is6 q9c0is4",red:"q9c0is7 q9c0is4"},Xv="q9c0is5";const Qv=({children:e,className:t,variant:n="blue",shouldAnimate:r=!0})=>_.jsxs("div",{className:ne(Hv,t),children:[_.jsx("div",{className:ne(Jv[n],{[Xv]:r})}),_.jsx("div",{className:ne(Yv[n],{[Zv]:r})}),_.jsx("div",{className:ne(Wv[n],{[Kv]:r})}),_.jsx("div",{className:Gv,children:e})]});function ew(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ds(Object(n),!0).forEach(function(r){ew(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tw=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==((o=t[r])!==null&&o!==void 0?o:n[r]))return!1}return!0},nw=e=>t=>{var n=e.defaultClassName,r=Ts(Ts({},e.defaultVariants),t);for(var o in r){var i,a=(i=r[o])!==null&&i!==void 0?i:e.defaultVariants[o];if(a!=null){var s=a;typeof s=="boolean"&&(s=s===!0?"true":"false");var c=e.variantClassNames[o][s];c&&(n+=" "+c)}}for(var[l,u]of e.compoundVariants)tw(l,r,e.defaultVariants)&&(n+=" "+u);return n};function rw(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ow(e){var t=rw(e,"string");return typeof t=="symbol"?t:String(t)}function iw(e,t,n){return t=ow(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ls(Object(n),!0).forEach(function(r){iw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aw=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map(c=>c.styles)),i=Object.keys(o),a=i.filter(c=>"mappings"in o[c]),s=c=>{var l=[],u={},f=Ao({},c),p=!1;for(var h of a){var g=c[h];if(g!=null){var m=o[h];p=!0;for(var b of m.mappings)u[b]=g,f[b]==null&&delete f[b]}}var w=p?Ao(Ao({},u),f):c,v=function(){var E=w[y],q=o[y];try{if(q.mappings)return"continue";if(typeof E=="string"||typeof E=="number")l.push(q.values[E].defaultClass);else if(Array.isArray(E))for(var I=0;I<E.length;I++){var R=E[I];if(R!=null){var L=q.responsiveArray[I];l.push(q.values[R].conditions[L])}}else for(var H in E){var B=E[H];B!=null&&l.push(q.values[B].conditions[H])}}catch(j){throw j}};for(var y in w)var x=v();return e(l.join(" "))};return Object.assign(s,{properties:new Set(i)})},sw=e=>e,cw=function(){return aw(sw)(...arguments)},yt=cw({conditions:{defaultCondition:"lightMode",conditionNames:["lightMode","darkMode"],responsiveArray:void 0},styles:{color:{values:{background:{conditions:{lightMode:"kqvzqt0",darkMode:"kqvzqt1"},defaultClass:"kqvzqt0"},mute:{conditions:{lightMode:"kqvzqt2",darkMode:"kqvzqt3"},defaultClass:"kqvzqt2"},panel:{conditions:{lightMode:"kqvzqt4",darkMode:"kqvzqt5"},defaultClass:"kqvzqt4"},foreground:{conditions:{lightMode:"kqvzqt6",darkMode:"kqvzqt7"},defaultClass:"kqvzqt6"},contrast:{conditions:{lightMode:"kqvzqt8",darkMode:"kqvzqt9"},defaultClass:"kqvzqt8"},secondary:{conditions:{lightMode:"kqvzqta",darkMode:"kqvzqtb"},defaultClass:"kqvzqta"},tertiary:{conditions:{lightMode:"kqvzqtc",darkMode:"kqvzqtd"},defaultClass:"kqvzqtc"},placeholder:{conditions:{lightMode:"kqvzqte",darkMode:"kqvzqtf"},defaultClass:"kqvzqte"},smooth:{conditions:{lightMode:"kqvzqtg",darkMode:"kqvzqth"},defaultClass:"kqvzqtg"},subtle:{conditions:{lightMode:"kqvzqti",darkMode:"kqvzqtj"},defaultClass:"kqvzqti"},soft:{conditions:{lightMode:"kqvzqtk",darkMode:"kqvzqtl"},defaultClass:"kqvzqtk"},offset:{conditions:{lightMode:"kqvzqtm",darkMode:"kqvzqtn"},defaultClass:"kqvzqtm"},primary:{conditions:{lightMode:"kqvzqto",darkMode:"kqvzqtp"},defaultClass:"kqvzqto"},primaryHover:{conditions:{lightMode:"kqvzqtq",darkMode:"kqvzqtr"},defaultClass:"kqvzqtq"},transparent:{conditions:{lightMode:"kqvzqts",darkMode:"kqvzqtt"},defaultClass:"kqvzqts"},error:{conditions:{lightMode:"kqvzqtu",darkMode:"kqvzqtv"},defaultClass:"kqvzqtu"},auxiliary:{conditions:{lightMode:"kqvzqtw",darkMode:"kqvzqtx"},defaultClass:"kqvzqtw"},success:{conditions:{lightMode:"kqvzqty",darkMode:"kqvzqtz"},defaultClass:"kqvzqty"},foregroundSuccess:{conditions:{lightMode:"kqvzqt10",darkMode:"kqvzqt11"},defaultClass:"kqvzqt10"},backgroundSuccess:{conditions:{lightMode:"kqvzqt12",darkMode:"kqvzqt13"},defaultClass:"kqvzqt12"},failure:{conditions:{lightMode:"kqvzqt14",darkMode:"kqvzqt15"},defaultClass:"kqvzqt14"},foregroundFailure:{conditions:{lightMode:"kqvzqt16",darkMode:"kqvzqt17"},defaultClass:"kqvzqt16"},backgroundFailure:{conditions:{lightMode:"kqvzqt18",darkMode:"kqvzqt19"},defaultClass:"kqvzqt18"}}},backgroundColor:{values:{background:{conditions:{lightMode:"kqvzqt1a",darkMode:"kqvzqt1b"},defaultClass:"kqvzqt1a"},mute:{conditions:{lightMode:"kqvzqt1c",darkMode:"kqvzqt1d"},defaultClass:"kqvzqt1c"},panel:{conditions:{lightMode:"kqvzqt1e",darkMode:"kqvzqt1f"},defaultClass:"kqvzqt1e"},foreground:{conditions:{lightMode:"kqvzqt1g",darkMode:"kqvzqt1h"},defaultClass:"kqvzqt1g"},contrast:{conditions:{lightMode:"kqvzqt1i",darkMode:"kqvzqt1j"},defaultClass:"kqvzqt1i"},secondary:{conditions:{lightMode:"kqvzqt1k",darkMode:"kqvzqt1l"},defaultClass:"kqvzqt1k"},tertiary:{conditions:{lightMode:"kqvzqt1m",darkMode:"kqvzqt1n"},defaultClass:"kqvzqt1m"},placeholder:{conditions:{lightMode:"kqvzqt1o",darkMode:"kqvzqt1p"},defaultClass:"kqvzqt1o"},smooth:{conditions:{lightMode:"kqvzqt1q",darkMode:"kqvzqt1r"},defaultClass:"kqvzqt1q"},subtle:{conditions:{lightMode:"kqvzqt1s",darkMode:"kqvzqt1t"},defaultClass:"kqvzqt1s"},soft:{conditions:{lightMode:"kqvzqt1u",darkMode:"kqvzqt1v"},defaultClass:"kqvzqt1u"},offset:{conditions:{lightMode:"kqvzqt1w",darkMode:"kqvzqt1x"},defaultClass:"kqvzqt1w"},primary:{conditions:{lightMode:"kqvzqt1y",darkMode:"kqvzqt1z"},defaultClass:"kqvzqt1y"},primaryHover:{conditions:{lightMode:"kqvzqt20",darkMode:"kqvzqt21"},defaultClass:"kqvzqt20"},transparent:{conditions:{lightMode:"kqvzqt22",darkMode:"kqvzqt23"},defaultClass:"kqvzqt22"},error:{conditions:{lightMode:"kqvzqt24",darkMode:"kqvzqt25"},defaultClass:"kqvzqt24"},auxiliary:{conditions:{lightMode:"kqvzqt26",darkMode:"kqvzqt27"},defaultClass:"kqvzqt26"},success:{conditions:{lightMode:"kqvzqt28",darkMode:"kqvzqt29"},defaultClass:"kqvzqt28"},foregroundSuccess:{conditions:{lightMode:"kqvzqt2a",darkMode:"kqvzqt2b"},defaultClass:"kqvzqt2a"},backgroundSuccess:{conditions:{lightMode:"kqvzqt2c",darkMode:"kqvzqt2d"},defaultClass:"kqvzqt2c"},failure:{conditions:{lightMode:"kqvzqt2e",darkMode:"kqvzqt2f"},defaultClass:"kqvzqt2e"},foregroundFailure:{conditions:{lightMode:"kqvzqt2g",darkMode:"kqvzqt2h"},defaultClass:"kqvzqt2g"},backgroundFailure:{conditions:{lightMode:"kqvzqt2i",darkMode:"kqvzqt2j"},defaultClass:"kqvzqt2i"}}}}},{conditions:void 0,styles:{marginY:{mappings:["marginTop","marginBottom"]},marginX:{mappings:["marginLeft","marginRight"]},gap:{values:{0:{defaultClass:"kqvzqt2k"},1:{defaultClass:"kqvzqt2l"},2:{defaultClass:"kqvzqt2m"},3:{defaultClass:"kqvzqt2n"},4:{defaultClass:"kqvzqt2o"},5:{defaultClass:"kqvzqt2p"},6:{defaultClass:"kqvzqt2q"},7:{defaultClass:"kqvzqt2r"},8:{defaultClass:"kqvzqt2s"},9:{defaultClass:"kqvzqt2t"},10:{defaultClass:"kqvzqt2u"},11:{defaultClass:"kqvzqt2v"},12:{defaultClass:"kqvzqt2w"},13:{defaultClass:"kqvzqt2x"},14:{defaultClass:"kqvzqt2y"},15:{defaultClass:"kqvzqt2z"},16:{defaultClass:"kqvzqt30"},20:{defaultClass:"kqvzqt31"},24:{defaultClass:"kqvzqt32"},28:{defaultClass:"kqvzqt33"},32:{defaultClass:"kqvzqt34"},36:{defaultClass:"kqvzqt35"},40:{defaultClass:"kqvzqt36"},44:{defaultClass:"kqvzqt37"},48:{defaultClass:"kqvzqt38"},52:{defaultClass:"kqvzqt39"},56:{defaultClass:"kqvzqt3a"},60:{defaultClass:"kqvzqt3b"},64:{defaultClass:"kqvzqt3c"},68:{defaultClass:"kqvzqt3d"},72:{defaultClass:"kqvzqt3e"},76:{defaultClass:"kqvzqt3f"},80:{defaultClass:"kqvzqt3g"},96:{defaultClass:"kqvzqt3h"},px:{defaultClass:"kqvzqt3i"},"0.25":{defaultClass:"kqvzqt3j"},"0.5":{defaultClass:"kqvzqt3k"},"0.75":{defaultClass:"kqvzqt3l"},"1.5":{defaultClass:"kqvzqt3m"},"2.5":{defaultClass:"kqvzqt3n"},"3.5":{defaultClass:"kqvzqt3o"}}},marginTop:{values:{0:{defaultClass:"kqvzqt3p"},1:{defaultClass:"kqvzqt3q"},2:{defaultClass:"kqvzqt3r"},3:{defaultClass:"kqvzqt3s"},4:{defaultClass:"kqvzqt3t"},5:{defaultClass:"kqvzqt3u"},6:{defaultClass:"kqvzqt3v"},7:{defaultClass:"kqvzqt3w"},8:{defaultClass:"kqvzqt3x"},9:{defaultClass:"kqvzqt3y"},10:{defaultClass:"kqvzqt3z"},11:{defaultClass:"kqvzqt40"},12:{defaultClass:"kqvzqt41"},13:{defaultClass:"kqvzqt42"},14:{defaultClass:"kqvzqt43"},15:{defaultClass:"kqvzqt44"},16:{defaultClass:"kqvzqt45"},20:{defaultClass:"kqvzqt46"},24:{defaultClass:"kqvzqt47"},28:{defaultClass:"kqvzqt48"},32:{defaultClass:"kqvzqt49"},36:{defaultClass:"kqvzqt4a"},40:{defaultClass:"kqvzqt4b"},44:{defaultClass:"kqvzqt4c"},48:{defaultClass:"kqvzqt4d"},52:{defaultClass:"kqvzqt4e"},56:{defaultClass:"kqvzqt4f"},60:{defaultClass:"kqvzqt4g"},64:{defaultClass:"kqvzqt4h"},68:{defaultClass:"kqvzqt4i"},72:{defaultClass:"kqvzqt4j"},76:{defaultClass:"kqvzqt4k"},80:{defaultClass:"kqvzqt4l"},96:{defaultClass:"kqvzqt4m"},px:{defaultClass:"kqvzqt4n"},"0.25":{defaultClass:"kqvzqt4o"},"0.5":{defaultClass:"kqvzqt4p"},"0.75":{defaultClass:"kqvzqt4q"},"1.5":{defaultClass:"kqvzqt4r"},"2.5":{defaultClass:"kqvzqt4s"},"3.5":{defaultClass:"kqvzqt4t"}}},marginBottom:{values:{0:{defaultClass:"kqvzqt4u"},1:{defaultClass:"kqvzqt4v"},2:{defaultClass:"kqvzqt4w"},3:{defaultClass:"kqvzqt4x"},4:{defaultClass:"kqvzqt4y"},5:{defaultClass:"kqvzqt4z"},6:{defaultClass:"kqvzqt50"},7:{defaultClass:"kqvzqt51"},8:{defaultClass:"kqvzqt52"},9:{defaultClass:"kqvzqt53"},10:{defaultClass:"kqvzqt54"},11:{defaultClass:"kqvzqt55"},12:{defaultClass:"kqvzqt56"},13:{defaultClass:"kqvzqt57"},14:{defaultClass:"kqvzqt58"},15:{defaultClass:"kqvzqt59"},16:{defaultClass:"kqvzqt5a"},20:{defaultClass:"kqvzqt5b"},24:{defaultClass:"kqvzqt5c"},28:{defaultClass:"kqvzqt5d"},32:{defaultClass:"kqvzqt5e"},36:{defaultClass:"kqvzqt5f"},40:{defaultClass:"kqvzqt5g"},44:{defaultClass:"kqvzqt5h"},48:{defaultClass:"kqvzqt5i"},52:{defaultClass:"kqvzqt5j"},56:{defaultClass:"kqvzqt5k"},60:{defaultClass:"kqvzqt5l"},64:{defaultClass:"kqvzqt5m"},68:{defaultClass:"kqvzqt5n"},72:{defaultClass:"kqvzqt5o"},76:{defaultClass:"kqvzqt5p"},80:{defaultClass:"kqvzqt5q"},96:{defaultClass:"kqvzqt5r"},px:{defaultClass:"kqvzqt5s"},"0.25":{defaultClass:"kqvzqt5t"},"0.5":{defaultClass:"kqvzqt5u"},"0.75":{defaultClass:"kqvzqt5v"},"1.5":{defaultClass:"kqvzqt5w"},"2.5":{defaultClass:"kqvzqt5x"},"3.5":{defaultClass:"kqvzqt5y"}}},marginLeft:{values:{0:{defaultClass:"kqvzqt5z"},1:{defaultClass:"kqvzqt60"},2:{defaultClass:"kqvzqt61"},3:{defaultClass:"kqvzqt62"},4:{defaultClass:"kqvzqt63"},5:{defaultClass:"kqvzqt64"},6:{defaultClass:"kqvzqt65"},7:{defaultClass:"kqvzqt66"},8:{defaultClass:"kqvzqt67"},9:{defaultClass:"kqvzqt68"},10:{defaultClass:"kqvzqt69"},11:{defaultClass:"kqvzqt6a"},12:{defaultClass:"kqvzqt6b"},13:{defaultClass:"kqvzqt6c"},14:{defaultClass:"kqvzqt6d"},15:{defaultClass:"kqvzqt6e"},16:{defaultClass:"kqvzqt6f"},20:{defaultClass:"kqvzqt6g"},24:{defaultClass:"kqvzqt6h"},28:{defaultClass:"kqvzqt6i"},32:{defaultClass:"kqvzqt6j"},36:{defaultClass:"kqvzqt6k"},40:{defaultClass:"kqvzqt6l"},44:{defaultClass:"kqvzqt6m"},48:{defaultClass:"kqvzqt6n"},52:{defaultClass:"kqvzqt6o"},56:{defaultClass:"kqvzqt6p"},60:{defaultClass:"kqvzqt6q"},64:{defaultClass:"kqvzqt6r"},68:{defaultClass:"kqvzqt6s"},72:{defaultClass:"kqvzqt6t"},76:{defaultClass:"kqvzqt6u"},80:{defaultClass:"kqvzqt6v"},96:{defaultClass:"kqvzqt6w"},px:{defaultClass:"kqvzqt6x"},"0.25":{defaultClass:"kqvzqt6y"},"0.5":{defaultClass:"kqvzqt6z"},"0.75":{defaultClass:"kqvzqt70"},"1.5":{defaultClass:"kqvzqt71"},"2.5":{defaultClass:"kqvzqt72"},"3.5":{defaultClass:"kqvzqt73"}}},marginRight:{values:{0:{defaultClass:"kqvzqt74"},1:{defaultClass:"kqvzqt75"},2:{defaultClass:"kqvzqt76"},3:{defaultClass:"kqvzqt77"},4:{defaultClass:"kqvzqt78"},5:{defaultClass:"kqvzqt79"},6:{defaultClass:"kqvzqt7a"},7:{defaultClass:"kqvzqt7b"},8:{defaultClass:"kqvzqt7c"},9:{defaultClass:"kqvzqt7d"},10:{defaultClass:"kqvzqt7e"},11:{defaultClass:"kqvzqt7f"},12:{defaultClass:"kqvzqt7g"},13:{defaultClass:"kqvzqt7h"},14:{defaultClass:"kqvzqt7i"},15:{defaultClass:"kqvzqt7j"},16:{defaultClass:"kqvzqt7k"},20:{defaultClass:"kqvzqt7l"},24:{defaultClass:"kqvzqt7m"},28:{defaultClass:"kqvzqt7n"},32:{defaultClass:"kqvzqt7o"},36:{defaultClass:"kqvzqt7p"},40:{defaultClass:"kqvzqt7q"},44:{defaultClass:"kqvzqt7r"},48:{defaultClass:"kqvzqt7s"},52:{defaultClass:"kqvzqt7t"},56:{defaultClass:"kqvzqt7u"},60:{defaultClass:"kqvzqt7v"},64:{defaultClass:"kqvzqt7w"},68:{defaultClass:"kqvzqt7x"},72:{defaultClass:"kqvzqt7y"},76:{defaultClass:"kqvzqt7z"},80:{defaultClass:"kqvzqt80"},96:{defaultClass:"kqvzqt81"},px:{defaultClass:"kqvzqt82"},"0.25":{defaultClass:"kqvzqt83"},"0.5":{defaultClass:"kqvzqt84"},"0.75":{defaultClass:"kqvzqt85"},"1.5":{defaultClass:"kqvzqt86"},"2.5":{defaultClass:"kqvzqt87"},"3.5":{defaultClass:"kqvzqt88"}}}}}),lw=nw({defaultClassName:"_1qam6z30",variantClassNames:{size:{xs:"_1qam6z31",sm:"_1qam6z32",base:"_1qam6z33",xl:"_1qam6z34","2xl-title":"_1qam6z35"},weight:{medium:"_1qam6z36",semibold:"_1qam6z37",bold:"_1qam6z38"},color:{contrast:"_1qam6z39",tertiary:"_1qam6z3a",placeholder:"_1qam6z3b",white:"_1qam6z3c",success:"_1qam6z3d",failure:"_1qam6z3e"}},defaultVariants:{size:"base",weight:"medium"},compoundVariants:[]});const dw={text:{}},qd=d.createContext(dw);qd.displayName="SlashIDTextContext";function uw(){const{text:e}=U.useContext(qd);return e}const Po={opening:"{{",closing:"}}"};function fw(e,t){return e.includes(Po.opening)?Object.keys(t).reduce((n,r)=>n.replace(`${Po.opening}${r}${Po.closing}`,t[r]),e):e}const hw=({as:e,t,tokens:n,variant:r,className:o,children:i})=>{const a=uw(),s=e||"p";return _.jsxs(s,{className:ne("sid-text",`sid-text--${e}`,lw(r),o),children:[n?fw(a[t],n):a[t],i||null]})};function As(e,[t,n]){return Math.min(n,Math.max(t,e))}const hi="dismissableLayer.update",pw="dismissableLayer.pointerDownOutside",mw="dismissableLayer.focusOutside";let Ps;const gw=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bw=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=e,u=d.useContext(gw),[f,p]=d.useState(null),h=(n=f?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,g]=d.useState({}),m=we(t,R=>p(R)),b=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(w),y=f?b.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=y>=v,q=_w(R=>{const L=R.target,H=[...u.branches].some(B=>B.contains(L));!E||H||(i?.(R),s?.(R),R.defaultPrevented||c==null||c())},h),I=vw(R=>{const L=R.target;[...u.branches].some(H=>H.contains(L))||(a?.(R),s?.(R),R.defaultPrevented||c==null||c())},h);return ev(R=>{y===u.layers.size-1&&(o?.(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},h),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ps=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Os(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ps)}},[f,h,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Os())},[f,u]),d.useEffect(()=>{const R=()=>g({});return document.addEventListener(hi,R),()=>document.removeEventListener(hi,R)},[]),d.createElement(_e.div,K({},l,{ref:m,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,I.onFocusCapture),onBlurCapture:le(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,q.onPointerDownCapture)}))});function _w(e,t=globalThis?.document){const n=Qe(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){zd(pw,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vw(e,t=globalThis?.document){const n=Qe(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&zd(mw,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Os(){const e=new CustomEvent(hi);document.dispatchEvent(e)}function zd(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?N_(o,i):o.dispatchEvent(i)}const Oo="focusScope.autoFocusOnMount",Mo="focusScope.autoFocusOnUnmount",Ms={bubbles:!1,cancelable:!0},ww=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=d.useState(null),l=Qe(o),u=Qe(i),f=d.useRef(null),p=we(t,m=>c(m)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let m=function(y){if(h.paused||!s)return;const x=y.target;s.contains(x)?f.current=x:_t(f.current,{select:!0})},b=function(y){if(h.paused||!s)return;const x=y.relatedTarget;x!==null&&(s.contains(x)||_t(f.current,{select:!0}))},w=function(y){const x=document.activeElement;for(const E of y)E.removedNodes.length>0&&(s!=null&&s.contains(x)||_t(s))};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const v=new MutationObserver(w);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),v.disconnect()}}},[r,s,h.paused]),d.useEffect(()=>{if(s){Fs.add(h);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Oo,Ms);s.addEventListener(Oo,l),s.dispatchEvent(b),b.defaultPrevented||(yw(Sw(Dd(s)),{select:!0}),document.activeElement===m&&_t(s))}return()=>{s.removeEventListener(Oo,l),setTimeout(()=>{const b=new CustomEvent(Mo,Ms);s.addEventListener(Mo,u),s.dispatchEvent(b),b.defaultPrevented||_t(m??document.body,{select:!0}),s.removeEventListener(Mo,u),Fs.remove(h)},0)}}},[s,l,u,h]);const g=d.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,w=document.activeElement;if(b&&w){const v=m.currentTarget,[y,x]=xw(v);y&&x?!m.shiftKey&&w===x?(m.preventDefault(),n&&_t(y,{select:!0})):m.shiftKey&&w===y&&(m.preventDefault(),n&&_t(x,{select:!0})):w===v&&m.preventDefault()}},[n,r,h.paused]);return d.createElement(_e.div,K({tabIndex:-1},a,{ref:p,onKeyDown:g}))});function yw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_t(r,{select:t}),document.activeElement!==n)return}function xw(e){const t=Dd(e),n=Ns(t,e),r=Ns(t.reverse(),e);return[n,r]}function Dd(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ns(e,t){for(const n of e)if(!Cw(n,{upTo:t}))return n}function Cw(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kw(e){return e instanceof HTMLInputElement&&"select"in e}function _t(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kw(e)&&t&&e.select()}}const Fs=Ew();function Ew(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Us(e,t),e.unshift(t)},remove(t){var n;e=Us(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Us(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Sw(e){return e.filter(t=>t.tagName!=="A")}const $w=["top","right","bottom","left"],Ct=Math.min,De=Math.max,kr=Math.round,cr=Math.floor,kt=e=>({x:e,y:e}),Iw={left:"right",right:"left",bottom:"top",top:"bottom"},Rw={start:"end",end:"start"};function pi(e,t,n){return De(e,Ct(t,n))}function ft(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function pn(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function Xi(e){return e==="y"?"height":"width"}function mn(e){return["top","bottom"].includes(ht(e))?"y":"x"}function Qi(e){return Ji(mn(e))}function qw(e,t,n){n===void 0&&(n=!1);const r=pn(e),o=Qi(e),i=Xi(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Er(a)),[a,Er(a)]}function zw(e){const t=Er(e);return[mi(e),t,mi(t)]}function mi(e){return e.replace(/start|end/g,t=>Rw[t])}function Dw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function Tw(e,t,n,r){const o=pn(e);let i=Dw(ht(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(mi)))),i}function Er(e){return e.replace(/left|right|bottom|top/g,t=>Iw[t])}function Lw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Td(e){return typeof e!="number"?Lw(e):{top:e,right:e,bottom:e,left:e}}function Sr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Vs(e,t,n){let{reference:r,floating:o}=e;const i=mn(t),a=Qi(t),s=Xi(a),c=ht(t),l=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(pn(t)){case"start":h[a]-=p*(n&&l?-1:1);break;case"end":h[a]+=p*(n&&l?-1:1);break}return h}const Aw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Vs(l,r,c),p=r,h={},g=0;for(let m=0;m<s.length;m++){const{name:b,fn:w}=s[m],{x:v,y,data:x,reset:E}=await w({x:u,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});if(u=v??u,f=y??f,h={...h,[b]:{...h[b],...x}},E&&g<=50){g++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:u,y:f}=Vs(l,p,c)),m=-1;continue}}return{x:u,y:f,placement:p,strategy:o,middlewareData:h}};async function Pn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=ft(t,e),g=Td(h),m=s[p?f==="floating"?"reference":"floating":f],b=Sr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),w=f==="floating"?{...a.floating,x:r,y:o}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),y=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},x=Sr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:v,strategy:c}):w);return{top:(b.top-x.top+g.top)/y.y,bottom:(x.bottom-b.bottom+g.bottom)/y.y,left:(b.left-x.left+g.left)/y.x,right:(x.right-b.right+g.right)/y.x}}const Bs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ft(e,t)||{};if(l==null)return{};const f=Td(u),p={x:n,y:r},h=Qi(o),g=Xi(h),m=await a.getDimensions(l),b=h==="y",w=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-p[h]-i.floating[g],E=p[h]-i.reference[h],q=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let I=q?q[y]:0;(!I||!await(a.isElement==null?void 0:a.isElement(q)))&&(I=s.floating[y]||i.floating[g]);const R=x/2-E/2,L=I/2-m[g]/2-1,H=Ct(f[w],L),B=Ct(f[v],L),j=H,Z=I-m[g]-B,M=I/2-m[g]/2+R,Y=pi(j,M,Z),O=!c.arrow&&pn(o)!=null&&M!=Y&&i.reference[g]/2-(M<j?H:B)-m[g]/2<0,J=O?M<j?M-j:M-Z:0;return{[h]:p[h]+J,data:{[h]:Y,centerOffset:M-Y-J,...O&&{alignmentOffset:J}},reset:O}}}),Pw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=ft(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=ht(o),v=ht(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=p||(v||!m?[Er(s)]:zw(s));!p&&g!=="none"&&x.push(...Tw(s,m,g,y));const E=[s,...x],q=await Pn(t,b),I=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&I.push(q[w]),f){const j=qw(o,a,y);I.push(q[j[0]],q[j[1]])}if(R=[...R,{placement:o,overflows:I}],!I.every(j=>j<=0)){var L,H;const j=(((L=i.flip)==null?void 0:L.index)||0)+1,Z=E[j];if(Z)return{data:{index:j,overflows:R},reset:{placement:Z}};let M=(H=R.filter(Y=>Y.overflows[0]<=0).sort((Y,O)=>Y.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!M)switch(h){case"bestFit":{var B;const Y=(B=R.map(O=>[O.placement,O.overflows.filter(J=>J>0).reduce((J,he)=>J+he,0)]).sort((O,J)=>O[1]-J[1])[0])==null?void 0:B[0];Y&&(M=Y);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function js(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hs(e){return $w.some(t=>e[t]>=0)}const Ow=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ft(e,t);switch(r){case"referenceHidden":{const i=await Pn(t,{...o,elementContext:"reference"}),a=js(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Hs(a)}}}case"escaped":{const i=await Pn(t,{...o,altBoundary:!0}),a=js(i,n.floating);return{data:{escapedOffsets:a,escaped:Hs(a)}}}default:return{}}}}};async function Mw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ht(n),s=pn(n),c=mn(n)==="y",l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,f=ft(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),c?{x:h*u,y:p*l}:{x:p*l,y:h*u}}const Nw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await Mw(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Fw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:w,y:v}=b;return{x:w,y:v}}},...c}=ft(e,t),l={x:n,y:r},u=await Pn(t,c),f=mn(ht(o)),p=Ji(f);let h=l[p],g=l[f];if(i){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",v=h+u[b],y=h-u[w];h=pi(v,h,y)}if(a){const b=f==="y"?"top":"left",w=f==="y"?"bottom":"right",v=g+u[b],y=g-u[w];g=pi(v,g,y)}const m=s.fn({...t,[p]:h,[f]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Uw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ft(e,t),u={x:n,y:r},f=mn(o),p=Ji(f);let h=u[p],g=u[f];const m=ft(s,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const y=p==="y"?"height":"width",x=i.reference[p]-i.floating[y]+b.mainAxis,E=i.reference[p]+i.reference[y]-b.mainAxis;h<x?h=x:h>E&&(h=E)}if(l){var w,v;const y=p==="y"?"width":"height",x=["top","left"].includes(ht(o)),E=i.reference[f]-i.floating[y]+(x&&((w=a.offset)==null?void 0:w[f])||0)+(x?0:b.crossAxis),q=i.reference[f]+i.reference[y]+(x?0:((v=a.offset)==null?void 0:v[f])||0)-(x?b.crossAxis:0);g<E?g=E:g>q&&(g=q)}return{[p]:h,[f]:g}}}},Vw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=ft(e,t),c=await Pn(t,s),l=ht(n),u=pn(n),f=mn(n)==="y",{width:p,height:h}=r.floating;let g,m;l==="top"||l==="bottom"?(g=l,m=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=l,g=u==="end"?"top":"bottom");const b=h-c[g],w=p-c[m],v=!t.middlewareData.shift;let y=b,x=w;if(f){const q=p-c.left-c.right;x=u||v?Ct(w,q):q}else{const q=h-c.top-c.bottom;y=u||v?Ct(b,q):q}if(v&&!u){const q=De(c.left,0),I=De(c.right,0),R=De(c.top,0),L=De(c.bottom,0);f?x=p-2*(q!==0||I!==0?q+I:De(c.left,c.right)):y=h-2*(R!==0||L!==0?R+L:De(c.top,c.bottom))}await a({...t,availableWidth:x,availableHeight:y});const E=await o.getDimensions(i.floating);return p!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function Et(e){return Ld(e)?(e.nodeName||"").toLowerCase():"#document"}function Te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gt(e){var t;return(t=(Ld(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ld(e){return e instanceof Node||e instanceof Te(e).Node}function pt(e){return e instanceof Element||e instanceof Te(e).Element}function et(e){return e instanceof HTMLElement||e instanceof Te(e).HTMLElement}function Gs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Te(e).ShadowRoot}function Gn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Bw(e){return["table","td","th"].includes(Et(e))}function ea(e){const t=ta(),n=Fe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function jw(e){let t=sn(e);for(;et(t)&&!io(t);){if(ea(t))return t;t=sn(t)}return null}function ta(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function io(e){return["html","body","#document"].includes(Et(e))}function Fe(e){return Te(e).getComputedStyle(e)}function ao(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sn(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gs(e)&&e.host||gt(e);return Gs(t)?t.host:t}function Ad(e){const t=sn(e);return io(t)?e.ownerDocument?e.ownerDocument.body:e.body:et(t)&&Gn(t)?t:Ad(t)}function On(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ad(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Te(o);return i?t.concat(a,a.visualViewport||[],Gn(o)?o:[],a.frameElement&&n?On(a.frameElement):[]):t.concat(o,On(o,[],n))}function Pd(e){const t=Fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=et(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=kr(n)!==i||kr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function na(e){return pt(e)?e:e.contextElement}function tn(e){const t=na(e);if(!et(t))return kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Pd(t);let a=(i?kr(n.width):n.width)/r,s=(i?kr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Hw=kt(0);function Od(e){const t=Te(e);return!ta()||!t.visualViewport?Hw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Te(e)?!1:t}function Ot(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=na(e);let a=kt(1);t&&(r?pt(r)&&(a=tn(r)):a=tn(e));const s=Gw(i,n,r)?Od(i):kt(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const p=Te(i),h=r&&pt(r)?Te(r):r;let g=p.frameElement;for(;g&&r&&h!==p;){const m=tn(g),b=g.getBoundingClientRect(),w=Fe(g),v=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*m.x,y=b.top+(g.clientTop+parseFloat(w.paddingTop))*m.y;c*=m.x,l*=m.y,u*=m.x,f*=m.y,c+=v,l+=y,g=Te(g).frameElement}}return Sr({width:u,height:f,x:c,y:l})}function Ww(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=et(n),i=gt(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=kt(1);const c=kt(0);if((o||!o&&r!=="fixed")&&((Et(n)!=="body"||Gn(i))&&(a=ao(n)),et(n))){const l=Ot(n);s=tn(n),c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}}function Kw(e){return Array.from(e.getClientRects())}function Md(e){return Ot(gt(e)).left+ao(e).scrollLeft}function Yw(e){const t=gt(e),n=ao(e),r=e.ownerDocument.body,o=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Md(e);const s=-n.scrollTop;return Fe(r).direction==="rtl"&&(a+=De(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Zw(e,t){const n=Te(e),r=gt(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const l=ta();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Jw(e,t){const n=Ot(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?tn(e):kt(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:a,height:s,x:c,y:l}}function Ws(e,t,n){let r;if(t==="viewport")r=Zw(e,n);else if(t==="document")r=Yw(gt(e));else if(pt(t))r=Jw(t,n);else{const o=Od(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Sr(r)}function Nd(e,t){const n=sn(e);return n===t||!pt(n)||io(n)?!1:Fe(n).position==="fixed"||Nd(n,t)}function Xw(e,t){const n=t.get(e);if(n)return n;let r=On(e,[],!1).filter(s=>pt(s)&&Et(s)!=="body"),o=null;const i=Fe(e).position==="fixed";let a=i?sn(e):e;for(;pt(a)&&!io(a);){const s=Fe(a),c=ea(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&o&&["absolute","fixed"].includes(o.position)||Gn(a)&&!c&&Nd(e,a))?r=r.filter(l=>l!==a):o=s,a=sn(a)}return t.set(e,r),r}function Qw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Xw(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((c,l)=>{const u=Ws(t,l,o);return c.top=De(u.top,c.top),c.right=Ct(u.right,c.right),c.bottom=Ct(u.bottom,c.bottom),c.left=De(u.left,c.left),c},Ws(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function e2(e){return Pd(e)}function t2(e,t,n){const r=et(t),o=gt(t),i=n==="fixed",a=Ot(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=kt(0);if(r||!r&&!i)if((Et(t)!=="body"||Gn(o))&&(s=ao(t)),r){const l=Ot(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=Md(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Ks(e,t){return!et(e)||Fe(e).position==="fixed"?null:t?t(e):e.offsetParent}function Fd(e,t){const n=Te(e);if(!et(e))return n;let r=Ks(e,t);for(;r&&Bw(r)&&Fe(r).position==="static";)r=Ks(r,t);return r&&(Et(r)==="html"||Et(r)==="body"&&Fe(r).position==="static"&&!ea(r))?n:r||jw(e)||n}const n2=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Fd,i=this.getDimensions;return{reference:t2(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function r2(e){return Fe(e).direction==="rtl"}const o2={convertOffsetParentRelativeRectToViewportRelativeRect:Ww,getDocumentElement:gt,getClippingRect:Qw,getOffsetParent:Fd,getElementRects:n2,getClientRects:Kw,getDimensions:e2,getScale:tn,isElement:pt,isRTL:r2};function i2(e,t){let n=null,r;const o=gt(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:p}=e.getBoundingClientRect();if(s||t(),!f||!p)return;const h=cr(u),g=cr(o.clientWidth-(l+f)),m=cr(o.clientHeight-(u+p)),b=cr(l),w={rootMargin:-h+"px "+-g+"px "+-m+"px "+-b+"px",threshold:De(0,Ct(1,c))||1};let v=!0;function y(x){const E=x[0].intersectionRatio;if(E!==c){if(!v)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(y,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,w)}n.observe(e)}return a(!0),i}function a2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=na(e),u=o||i?[...l?On(l):[],...On(t)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const f=l&&s?i2(l,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(w=>{let[v]=w;v&&v.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let g,m=c?Ot(e):null;c&&b();function b(){const w=Ot(e);m&&(w.x!==m.x||w.y!==m.y||w.width!==m.width||w.height!==m.height)&&n(),m=w,g=requestAnimationFrame(b)}return n(),()=>{u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const s2=(e,t,n)=>{const r=new Map,o={platform:o2,...n},i={...o.platform,_c:r};return Aw(e,t,{...o,platform:i})},c2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bs({element:r.current,padding:o}).fn(n):{}:r?Bs({element:r,padding:o}).fn(n):{}}}};var mr=typeof document<"u"?d.useLayoutEffect:d.useEffect;function $r(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!$r(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!$r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ud(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ys(e,t){const n=Ud(e);return Math.round(t*n)/n}function Zs(e){const t=d.useRef(e);return mr(()=>{t.current=e}),t}function l2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=d.useState(r);$r(p,r)||h(r);const[g,m]=d.useState(null),[b,w]=d.useState(null),v=d.useCallback(O=>{O!=q.current&&(q.current=O,m(O))},[m]),y=d.useCallback(O=>{O!==I.current&&(I.current=O,w(O))},[w]),x=i||g,E=a||b,q=d.useRef(null),I=d.useRef(null),R=d.useRef(u),L=Zs(c),H=Zs(o),B=d.useCallback(()=>{if(!q.current||!I.current)return;const O={placement:t,strategy:n,middleware:p};H.current&&(O.platform=H.current),s2(q.current,I.current,O).then(J=>{const he={...J,isPositioned:!0};j.current&&!$r(R.current,he)&&(R.current=he,ln.flushSync(()=>{f(he)}))})},[p,t,n,H]);mr(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[l]);const j=d.useRef(!1);mr(()=>(j.current=!0,()=>{j.current=!1}),[]),mr(()=>{if(x&&(q.current=x),E&&(I.current=E),x&&E){if(L.current)return L.current(x,E,B);B()}},[x,E,B,L]);const Z=d.useMemo(()=>({reference:q,floating:I,setReference:v,setFloating:y}),[v,y]),M=d.useMemo(()=>({reference:x,floating:E}),[x,E]),Y=d.useMemo(()=>{const O={position:n,left:0,top:0};if(!M.floating)return O;const J=Ys(M.floating,u.x),he=Ys(M.floating,u.y);return s?{...O,transform:"translate("+J+"px, "+he+"px)",...Ud(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:he}},[n,s,M.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:B,refs:Z,elements:M,floatingStyles:Y}),[u,B,Z,M,Y])}const Vd="Popper",[Bd,jd]=mt(Vd),[d2,Hd]=Bd(Vd),u2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return d.createElement(d2,{scope:t,anchor:r,onAnchorChange:o},n)},f2="PopperAnchor",h2=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Hd(f2,n),a=d.useRef(null),s=we(t,a);return d.useEffect(()=>{i.onAnchorChange(r?.current||a.current)}),r?null:d.createElement(_e.div,K({},o,{ref:s}))}),Gd="PopperContent",[p2,I5]=Bd(Gd),m2=d.forwardRef((e,t)=>{var n,r,o,i,a,s,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:p=0,align:h="center",alignOffset:g=0,arrowPadding:m=0,collisionBoundary:b=[],collisionPadding:w=0,sticky:v="partial",hideWhenDetached:y=!1,avoidCollisions:x=!0,onPlaced:E,...q}=e,I=Hd(Gd,u),[R,L]=d.useState(null),H=we(t,xe=>L(xe)),[B,j]=d.useState(null),Z=Bv(B),M=(n=Z?.width)!==null&&n!==void 0?n:0,Y=(r=Z?.height)!==null&&r!==void 0?r:0,O=f+(h!=="center"?"-"+h:""),J=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},he=Array.isArray(b)?b:[b],S=he.length>0,k={padding:J,boundary:he.filter(g2),altBoundary:S},{refs:$,floatingStyles:P,placement:D,isPositioned:F,middlewareData:te}=l2({strategy:"fixed",placement:O,whileElementsMounted:a2,elements:{reference:I.anchor},middleware:[Nw({mainAxis:p+Y,alignmentAxis:g}),x&&Fw({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Uw():void 0,...k}),x&&Pw({...k}),Vw({...k,apply:({elements:xe,rects:It,availableWidth:nt,availableHeight:Rt})=>{const{width:wn,height:ho}=It.reference,qt=xe.floating.style;qt.setProperty("--radix-popper-available-width",`${nt}px`),qt.setProperty("--radix-popper-available-height",`${Rt}px`),qt.setProperty("--radix-popper-anchor-width",`${wn}px`),qt.setProperty("--radix-popper-anchor-height",`${ho}px`)}}),B&&c2({element:B,padding:m}),b2({arrowWidth:M,arrowHeight:Y}),y&&Ow({strategy:"referenceHidden"})]}),[se,T]=Wd(D),W=Qe(E);Le(()=>{F&&W?.()},[F,W]);const ce=(o=te.arrow)===null||o===void 0?void 0:o.x,G=(i=te.arrow)===null||i===void 0?void 0:i.y,Q=((a=te.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[de,Se]=d.useState();return Le(()=>{R&&Se(window.getComputedStyle(R).zIndex)},[R]),d.createElement("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:F?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(s=te.transformOrigin)===null||s===void 0?void 0:s.x,(c=te.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},d.createElement(p2,{scope:u,placedSide:se,onArrowChange:j,arrowX:ce,arrowY:G,shouldHideArrow:Q},d.createElement(_e.div,K({"data-side":se,"data-align":T},q,{ref:H,style:{...q.style,animation:F?void 0:"none",opacity:(l=te.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))});function g2(e){return e!==null}const b2=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:l}=t,u=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[h,g]=Wd(s),m={start:"0%",center:"50%",end:"100%"}[g],b=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+f/2,w=((i=(a=l.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let v="",y="";return h==="bottom"?(v=u?m:`${b}px`,y=`${-p}px`):h==="top"?(v=u?m:`${b}px`,y=`${c.floating.height+p}px`):h==="right"?(v=`${-p}px`,y=u?m:`${w}px`):h==="left"&&(v=`${c.floating.width+p}px`,y=u?m:`${w}px`),{data:{x:v,y}}}});function Wd(e){const[t,n="center"]=e.split("-");return[t,n]}const _2=u2,v2=h2,w2=m2,y2=d.forwardRef((e,t)=>d.createElement(_e.span,K({},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}}))),x2=[" ","Enter","ArrowUp","ArrowDown"],C2=[" ","Enter"],so="Select",[co,lo,k2]=Zi(so),[gn,R5]=mt(so,[k2,jd]),ra=jd(),[E2,Vt]=gn(so),[S2,$2]=gn(so),I2=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:p,required:h}=e,g=ra(t),[m,b]=d.useState(null),[w,v]=d.useState(null),[y,x]=d.useState(!1),E=no(l),[q=!1,I]=an({prop:r,defaultProp:o,onChange:i}),[R,L]=an({prop:a,defaultProp:s,onChange:c}),H=d.useRef(null),B=m?!!m.closest("form"):!0,[j,Z]=d.useState(new Set),M=Array.from(j).map(Y=>Y.props.value).join(";");return d.createElement(_2,g,d.createElement(E2,{required:h,scope:t,trigger:m,onTriggerChange:b,valueNode:w,onValueNodeChange:v,valueNodeHasChildren:y,onValueNodeHasChildrenChange:x,contentId:jn(),value:R,onValueChange:L,open:q,onOpenChange:I,dir:E,triggerPointerDownPosRef:H,disabled:p},d.createElement(co.Provider,{scope:t},d.createElement(S2,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(Y=>{Z(O=>new Set(O).add(Y))},[]),onNativeOptionRemove:d.useCallback(Y=>{Z(O=>{const J=new Set(O);return J.delete(Y),J})},[])},n)),B?d.createElement(Jd,{key:M,"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:R,onChange:Y=>L(Y.target.value),disabled:p},R===void 0?d.createElement("option",{value:""}):null,Array.from(j)):null))},R2="SelectTrigger",q2=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ra(n),a=Vt(R2,n),s=a.disabled||r,c=we(t,a.onTriggerChange),l=lo(n),[u,f,p]=Xd(g=>{const m=l().filter(v=>!v.disabled),b=m.find(v=>v.value===a.value),w=Qd(m,g,b);w!==void 0&&a.onValueChange(w.value)}),h=()=>{s||(a.onOpenChange(!0),p())};return d.createElement(v2,K({asChild:!0},i),d.createElement(_e.button,K({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":a.value===void 0?"":void 0},o,{ref:c,onClick:le(o.onClick,g=>{g.currentTarget.focus()}),onPointerDown:le(o.onPointerDown,g=>{const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:le(o.onKeyDown,g=>{const m=u.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&f(g.key),!(m&&g.key===" ")&&x2.includes(g.key)&&(h(),g.preventDefault())})})))}),z2="SelectValue",D2=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a,...s}=e,c=Vt(z2,n),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,f=we(t,c.onValueNodeChange);return Le(()=>{l(u)},[l,u]),d.createElement(_e.span,K({},s,{ref:f,style:{pointerEvents:"none"}}),c.value===void 0&&a!==void 0?a:i)}),cn="SelectContent",T2=d.forwardRef((e,t)=>{const n=Vt(cn,e.__scopeSelect),[r,o]=d.useState();if(Le(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?ln.createPortal(d.createElement(Kd,{scope:e.__scopeSelect},d.createElement(co.Slot,{scope:e.__scopeSelect},d.createElement("div",null,e.children))),i):null}return d.createElement(L2,K({},e,{ref:t}))}),it=10,[Kd,bn]=gn(cn),L2=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b,...w}=e,v=Vt(cn,n),[y,x]=d.useState(null),[E,q]=d.useState(null),I=we(t,T=>x(T)),[R,L]=d.useState(null),[H,B]=d.useState(null),j=lo(n),[Z,M]=d.useState(!1),Y=d.useRef(!1);d.useEffect(()=>{if(y)return Fv(y)},[y]),tv();const O=d.useCallback(T=>{const[W,...ce]=j().map(de=>de.ref.current),[G]=ce.slice(-1),Q=document.activeElement;for(const de of T)if(de===Q||(de?.scrollIntoView({block:"nearest"}),de===W&&E&&(E.scrollTop=0),de===G&&E&&(E.scrollTop=E.scrollHeight),de?.focus(),document.activeElement!==Q))return},[j,E]),J=d.useCallback(()=>O([R,y]),[O,R,y]);d.useEffect(()=>{Z&&J()},[Z,J]);const{onOpenChange:he,triggerPointerDownPosRef:S}=v;d.useEffect(()=>{if(y){let T={x:0,y:0};const W=G=>{var Q,de,Se,xe;T={x:Math.abs(Math.round(G.pageX)-((Q=(de=S.current)===null||de===void 0?void 0:de.x)!==null&&Q!==void 0?Q:0)),y:Math.abs(Math.round(G.pageY)-((Se=(xe=S.current)===null||xe===void 0?void 0:xe.y)!==null&&Se!==void 0?Se:0))}},ce=G=>{T.x<=10&&T.y<=10?G.preventDefault():y.contains(G.target)||he(!1),document.removeEventListener("pointermove",W),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",W),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",ce,{capture:!0})}}},[y,he,S]),d.useEffect(()=>{const T=()=>he(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[he]);const[k,$]=Xd(T=>{const W=j().filter(Q=>!Q.disabled),ce=W.find(Q=>Q.ref.current===document.activeElement),G=Qd(W,T,ce);G&&setTimeout(()=>G.ref.current.focus())}),P=d.useCallback((T,W,ce)=>{const G=!Y.current&&!ce;(v.value!==void 0&&v.value===W||G)&&(L(T),G&&(Y.current=!0))},[v.value]),D=d.useCallback(()=>y?.focus(),[y]),F=d.useCallback((T,W,ce)=>{const G=!Y.current&&!ce;(v.value!==void 0&&v.value===W||G)&&B(T)},[v.value]),te=r==="popper"?Js:A2,se=te===Js?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:p,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b}:{};return d.createElement(Kd,{scope:n,content:y,viewport:E,onViewportChange:q,itemRefCallback:P,selectedItem:R,onItemLeave:D,itemTextRefCallback:F,focusSelectedItem:J,selectedItemText:H,position:r,isPositioned:Z,searchRef:k},d.createElement(Pv,{as:An,allowPinchZoom:!0},d.createElement(ww,{asChild:!0,trapped:v.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:le(o,T=>{var W;(W=v.trigger)===null||W===void 0||W.focus({preventScroll:!0}),T.preventDefault()})},d.createElement(bw,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>v.onOpenChange(!1)},d.createElement(te,K({role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:T=>T.preventDefault()},w,se,{onPlaced:()=>M(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:le(w.onKeyDown,T=>{const W=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!W&&T.key.length===1&&$(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let ce=j().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(T.key)&&(ce=ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const G=T.target,Q=ce.indexOf(G);ce=ce.slice(Q+1)}setTimeout(()=>O(ce)),T.preventDefault()}})}))))))}),A2=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Vt(cn,n),a=bn(cn,n),[s,c]=d.useState(null),[l,u]=d.useState(null),f=we(t,I=>u(I)),p=lo(n),h=d.useRef(!1),g=d.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:w,focusSelectedItem:v}=a,y=d.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&l&&m&&b&&w){const I=i.trigger.getBoundingClientRect(),R=l.getBoundingClientRect(),L=i.valueNode.getBoundingClientRect(),H=w.getBoundingClientRect();if(i.dir!=="rtl"){const G=H.left-R.left,Q=L.left-G,de=I.left-Q,Se=I.width+de,xe=Math.max(Se,R.width),It=window.innerWidth-it,nt=As(Q,[it,It-xe]);s.style.minWidth=Se+"px",s.style.left=nt+"px"}else{const G=R.right-H.right,Q=window.innerWidth-L.right-G,de=window.innerWidth-I.right-Q,Se=I.width+de,xe=Math.max(Se,R.width),It=window.innerWidth-it,nt=As(Q,[it,It-xe]);s.style.minWidth=Se+"px",s.style.right=nt+"px"}const B=p(),j=window.innerHeight-it*2,Z=m.scrollHeight,M=window.getComputedStyle(l),Y=parseInt(M.borderTopWidth,10),O=parseInt(M.paddingTop,10),J=parseInt(M.borderBottomWidth,10),he=parseInt(M.paddingBottom,10),S=Y+O+Z+he+J,k=Math.min(b.offsetHeight*5,S),$=window.getComputedStyle(m),P=parseInt($.paddingTop,10),D=parseInt($.paddingBottom,10),F=I.top+I.height/2-it,te=j-F,se=b.offsetHeight/2,T=b.offsetTop+se,W=Y+O+T,ce=S-W;if(W<=F){const G=b===B[B.length-1].ref.current;s.style.bottom="0px";const Q=l.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(te,se+(G?D:0)+Q+J),Se=W+de;s.style.height=Se+"px"}else{const G=b===B[0].ref.current;s.style.top="0px";const Q=Math.max(F,Y+m.offsetTop+(G?P:0)+se)+ce;s.style.height=Q+"px",m.scrollTop=W-F+m.offsetTop}s.style.margin=`${it}px 0`,s.style.minHeight=k+"px",s.style.maxHeight=j+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[p,i.trigger,i.valueNode,s,l,m,b,w,i.dir,r]);Le(()=>y(),[y]);const[x,E]=d.useState();Le(()=>{l&&E(window.getComputedStyle(l).zIndex)},[l]);const q=d.useCallback(I=>{I&&g.current===!0&&(y(),v?.(),g.current=!1)},[y,v]);return d.createElement(P2,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:q},d.createElement("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},d.createElement(_e.div,K({},o,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),Js=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=it,...i}=e,a=ra(n);return d.createElement(w2,K({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[P2,Yd]=gn(cn,{}),Xs="SelectViewport",O2=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=bn(Xs,n),i=Yd(Xs,n),a=we(t,o.onViewportChange),s=d.useRef(0);return d.createElement(d.Fragment,null,d.createElement("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}"}}),d.createElement(co.Slot,{scope:n},d.createElement(_e.div,K({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:le(r.onScroll,c=>{const l=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&u){const p=Math.abs(s.current-l.scrollTop);if(p>0){const h=window.innerHeight-it*2,g=parseFloat(u.style.minHeight),m=parseFloat(u.style.height),b=Math.max(g,m);if(b<h){const w=b+p,v=Math.min(h,w),y=w-v;u.style.height=v+"px",u.style.bottom==="0px"&&(l.scrollTop=y>0?y:0,u.style.justifyContent="flex-end")}}}s.current=l.scrollTop})}))))}),M2="SelectGroup",[N2,q5]=gn(M2),F2=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=jn();return d.createElement(N2,{scope:n,id:o},d.createElement(_e.div,K({role:"group","aria-labelledby":o},r,{ref:t})))}),gi="SelectItem",[U2,Zd]=gn(gi),V2=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Vt(gi,n),c=bn(gi,n),l=s.value===r,[u,f]=d.useState(i??""),[p,h]=d.useState(!1),g=we(t,w=>{var v;return(v=c.itemRefCallback)===null||v===void 0?void 0:v.call(c,w,r,o)}),m=jn(),b=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};return d.createElement(U2,{scope:n,value:r,disabled:o,textId:m,isSelected:l,onItemTextChange:d.useCallback(w=>{f(v=>{var y;return v||((y=w?.textContent)!==null&&y!==void 0?y:"").trim()})},[])},d.createElement(co.ItemSlot,{scope:n,value:r,disabled:o,textValue:u},d.createElement(_e.div,K({role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":l&&p,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:g,onFocus:le(a.onFocus,()=>h(!0)),onBlur:le(a.onBlur,()=>h(!1)),onPointerUp:le(a.onPointerUp,b),onPointerMove:le(a.onPointerMove,w=>{if(o){var v;(v=c.onItemLeave)===null||v===void 0||v.call(c)}else w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le(a.onPointerLeave,w=>{if(w.currentTarget===document.activeElement){var v;(v=c.onItemLeave)===null||v===void 0||v.call(c)}}),onKeyDown:le(a.onKeyDown,w=>{var v;((v=c.searchRef)===null||v===void 0?void 0:v.current)!==""&&w.key===" "||(C2.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})}))))}),lr="SelectItemText",B2=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Vt(lr,n),s=bn(lr,n),c=Zd(lr,n),l=$2(lr,n),[u,f]=d.useState(null),p=we(t,w=>f(w),c.onItemTextChange,w=>{var v;return(v=s.itemTextRefCallback)===null||v===void 0?void 0:v.call(s,w,c.value,c.disabled)}),h=u?.textContent,g=d.useMemo(()=>d.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},h),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=l;return Le(()=>(m(g),()=>b(g)),[m,b,g]),d.createElement(d.Fragment,null,d.createElement(_e.span,K({id:c.textId},i,{ref:p})),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ln.createPortal(i.children,a.valueNode):null)}),j2="SelectItemIndicator",H2=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Zd(j2,n).isSelected?d.createElement(_e.span,K({"aria-hidden":!0},r,{ref:t})):null}),Qs="SelectScrollDownButton",G2=d.forwardRef((e,t)=>{const n=bn(Qs,e.__scopeSelect),r=Yd(Qs,e.__scopeSelect),[o,i]=d.useState(!1),a=we(t,r.onScrollButtonChange);return Le(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)<l;i(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?d.createElement(W2,K({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}})):null}),W2=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=bn("SelectScrollButton",n),a=d.useRef(null),s=lo(n),c=d.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),Le(()=>{var l;const u=s().find(f=>f.ref.current===document.activeElement);u==null||(l=u.ref.current)===null||l===void 0||l.scrollIntoView({block:"nearest"})},[s]),d.createElement(_e.div,K({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:le(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:le(o.onPointerMove,()=>{var l;(l=i.onItemLeave)===null||l===void 0||l.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:le(o.onPointerLeave,()=>{c()})}))}),Jd=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=d.useRef(null),i=we(t,o),a=Vv(n);return d.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,l=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&l){const u=new Event("change",{bubbles:!0});l.call(s,n),s.dispatchEvent(u)}},[a,n]),d.createElement(y2,{asChild:!0},d.createElement("select",K({},r,{ref:i,defaultValue:n})))});Jd.displayName="BubbleSelect";function Xd(e){const t=Qe(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(a=>{const s=n.current+a;t(s),function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Qd(e,t,n){const r=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=K2(e,Math.max(o,0));r.length===1&&(i=i.filter(s=>s!==n));const a=i.find(s=>s.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function K2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Y2=I2,Z2=q2,J2=D2,X2=T2,Q2=O2,ey=F2,ty=V2,ny=B2,ry=H2,oy=G2;var iy="_1wo163v3",ay="_1wo163v6",sy="_1wo163v2",cy="_1wo163v5",ly="_1wo163v1",dy="_1wo163v7",uy="_1wo163v0",fy="_1wo163v4";const hy=({label:e,items:t,defaultValue:n,onChange:r,className:o,contentProps:i,disabled:a=!1})=>{const[s,c]=d.useState(n),l=d.useCallback(u=>{c(u),r(u)},[r]);return _.jsx("div",{className:"sid-dropdown",children:_.jsxs(Y2,{disabled:a,onValueChange:l,defaultValue:n,children:[_.jsxs(Z2,{className:ne("sid-dropdown__trigger",uy,o),children:[_.jsx("label",{className:ne("sid-dropdown__trigger__label",ly),children:e}),_.jsx("div",{className:ne("sid-dropdown__trigger__input",sy),children:_.jsx(J2,{})}),_.jsx(ad,{className:ne("sid-dropdown__trigger__icon",ay)})]}),_.jsxs(X2,{...i,className:ne("sid-dropdown__popover",iy,i?.className),children:[_.jsx(Q2,{className:ne("sid-dropdown__viewport",fy),children:_.jsx(ey,{children:t.map(u=>_.jsxs(ty,{className:ne("sid-dropdown__item",u.value===s&&"sid-dropdown__item--selected",cy),value:u.value,textValue:u.textValue,children:[_.jsx(ny,{children:u.label}),_.jsx(ry,{className:dy,children:_.jsx(__,{className:"sid-dropdown__item--selected__icon"})})]},u.value))})}),_.jsx(oy,{})]})]})})},No="rovingFocusGroup.onEntryFocus",py={bubbles:!1,cancelable:!0},oa="RovingFocusGroup",[bi,eu,my]=Zi(oa),[gy,tu]=mt(oa,[my]),[by,_y]=gy(oa),vy=d.forwardRef((e,t)=>d.createElement(bi.Provider,{scope:e.__scopeRovingFocusGroup},d.createElement(bi.Slot,{scope:e.__scopeRovingFocusGroup},d.createElement(wy,K({},e,{ref:t}))))),wy=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,...u}=e,f=d.useRef(null),p=we(t,f),h=no(i),[g=null,m]=an({prop:a,defaultProp:s,onChange:c}),[b,w]=d.useState(!1),v=Qe(l),y=eu(n),x=d.useRef(!1),[E,q]=d.useState(0);return d.useEffect(()=>{const I=f.current;if(I)return I.addEventListener(No,v),()=>I.removeEventListener(No,v)},[v]),d.createElement(by,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:g,onItemFocus:d.useCallback(I=>m(I),[m]),onItemShiftTab:d.useCallback(()=>w(!0),[]),onFocusableItemAdd:d.useCallback(()=>q(I=>I+1),[]),onFocusableItemRemove:d.useCallback(()=>q(I=>I-1),[])},d.createElement(_e.div,K({tabIndex:b||E===0?-1:0,"data-orientation":r},u,{ref:p,style:{outline:"none",...e.style},onMouseDown:le(e.onMouseDown,()=>{x.current=!0}),onFocus:le(e.onFocus,I=>{const R=!x.current;if(I.target===I.currentTarget&&R&&!b){const L=new CustomEvent(No,py);if(I.currentTarget.dispatchEvent(L),!L.defaultPrevented){const H=y().filter(M=>M.focusable),B=H.find(M=>M.active),j=H.find(M=>M.id===g),Z=[B,j,...H].filter(Boolean).map(M=>M.ref.current);nu(Z)}}x.current=!1}),onBlur:le(e.onBlur,()=>w(!1))})))}),yy="RovingFocusGroupItem",xy=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=jn(),c=i||s,l=_y(yy,n),u=l.currentTabStopId===c,f=eu(n),{onFocusableItemAdd:p,onFocusableItemRemove:h}=l;return d.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),d.createElement(bi.ItemSlot,{scope:n,id:c,focusable:r,active:o},d.createElement(_e.span,K({tabIndex:u?0:-1,"data-orientation":l.orientation},a,{ref:t,onMouseDown:le(e.onMouseDown,g=>{r?l.onItemFocus(c):g.preventDefault()}),onFocus:le(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:le(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=Ey(g,l.orientation,l.dir);if(m!==void 0){g.preventDefault();let b=f().filter(w=>w.focusable).map(w=>w.ref.current);if(m==="last")b.reverse();else if(m==="prev"||m==="next"){m==="prev"&&b.reverse();const w=b.indexOf(g.currentTarget);b=l.loop?Sy(b,w+1):b.slice(w+1)}setTimeout(()=>nu(b))}})})))}),Cy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ky(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ey(e,t,n){const r=ky(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Cy[r]}function nu(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Sy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const $y=vy,Iy=xy,ru="Tabs",[Ry,z5]=mt(ru,[tu]),ou=tu(),[qy,ia]=Ry(ru),zy=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:c="automatic",...l}=e,u=no(s),[f,p]=an({prop:r,onChange:o,defaultProp:i});return d.createElement(qy,{scope:n,baseId:jn(),value:f,onValueChange:p,orientation:a,dir:u,activationMode:c},d.createElement(_e.div,K({dir:u,"data-orientation":a},l,{ref:t})))}),Dy="TabsList",Ty=d.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=ia(Dy,n),a=ou(n);return d.createElement($y,K({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),d.createElement(_e.div,K({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))}),Ly="TabsTrigger",Ay=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=ia(Ly,n),s=ou(n),c=iu(a.baseId,r),l=au(a.baseId,r),u=r===a.value;return d.createElement(Iy,K({asChild:!0},s,{focusable:!o,active:u}),d.createElement(_e.button,K({type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c},i,{ref:t,onMouseDown:le(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:le(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:le(e.onFocus,()=>{const f=a.activationMode!=="manual";!u&&!o&&f&&a.onValueChange(r)})})))}),Py="TabsContent",Oy=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=ia(Py,n),c=iu(s.baseId,r),l=au(s.baseId,r),u=r===s.value,f=d.useRef(u);return d.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),d.createElement(ud,{present:o||u},({present:p})=>d.createElement(_e.div,K({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),p&&i))});function iu(e,t){return`${e}-trigger-${t}`}function au(e,t){return`${e}-content-${t}`}const My=zy,Ny=Ty,Fy=Ay,Uy=Oy;var Vy="_1bc2uou0",By="_1bc2uou1";const jy=({className:e,tabs:t,defaultValue:n,testId:r})=>{var o;return t.length?_.jsxs(My,{"data-testid":r,className:ne("sid-tabs",e),defaultValue:n??((o=t[0])==null?void 0:o.id),children:[_.jsx(Ny,{className:Vy,"aria-label":"SlashID Tabs",children:t.map(({id:i,title:a})=>_.jsx(Fy,{className:By,value:i,children:a},i))}),t.map(({id:i,content:a})=>_.jsx(Uy,{value:i,children:a},i))]}):null},Hy=e=>{const t=globalThis.document.getElementById(e);if(t!==null)return t;const n=document.createElement("div");return n.id=e,document.body.appendChild(n),n},Gy=({to:e,children:t,renderKey:n})=>{const r=Hy(e);return _.jsx(_.Fragment,{children:ln.createPortal(t,r,n)})},Wy=["--sid-color-background","--sid-color-mute","--sid-color-panel","--sid-color-foreground","--sid-color-contrast","--sid-color-secondary","--sid-color-tertiary","--sid-color-placeholder","--sid-color-smooth","--sid-color-subtle","--sid-color-soft","--sid-color-offset","--sid-color-primary","--sid-color-primary-hover","--sid-color-transparent","--sid-color-error","--sid-color-auxiliary","--sid-color-success","--sid-color-foreground-success","--sid-color-background-success","--sid-color-failure","--sid-color-foreground-failure","--sid-color-background-failure","--sid-font-family","--sid-border-width-panel","--sid-input-border-radius","--sid-input-border-color","--sid-input-label-color","--sid-button-border-radius","--sid-form-border-radius","--sid-form-logo-width"],Ky={sid:void 0,user:void 0,sdkState:"initial",logOut:()=>{},logIn:()=>Promise.reject("NYI"),mfa:()=>Promise.reject("NYI"),recover:()=>Promise.reject("NYI"),validateToken:async()=>!1,__switchOrganizationInContext:async()=>{}},Yy=d.createContext(Ky);Yy.displayName="SlashIDContext";const Zy=["email_address","phone_number"];function Jy(e){return"allowedHandleTypes"in e?e.allowedHandleTypes.every(t=>Zy.includes(t)):!1}const Xy=["webauthn","otp_via_email","email_link","password"],Qy=["otp_via_sms","sms_link","password"],e9=["oidc","saml"];function ec(e,t){return Jy(e)?e.allowedHandleTypes.includes(t):!0}function t9(e){const t=new Set;return Xy.includes(e.method)&&ec(e,"email_address")&&t.add("email_address"),Qy.includes(e.method)&&ec(e,"phone_number")&&t.add("phone_number"),t}function aa(e){const t=new Set;return e.forEach(n=>{t9(n).forEach(r=>t.add(r))}),Array.from(t)}function n9(e,t){return e.filter(n=>aa([n]).includes(t))}function su(e){return e.method==="oidc"}function _i(e){return e9.includes(e.method)}function cu(e){return e.method!=="oidc"}function r9(e){return e.some(_i)&&e.some(t=>!_i(t))}function Fo(e,t){if(!(!e||e.type!==t))return e.value}function o9(e){for(const t of Yi())if(e.startsWith(t.dial_code))return{dialCode:t.dial_code,number:e.substring(t.dial_code.length).trim(),countryCode:cd(t.dial_code).code}}const Ir=e=>_.jsx(hw,{...e}),i9={"":"NYI","footer.branding":"Top-tier security by SlashID","initial.title":"Welcome to SlashID","initial.subtitle":"Sign in to your account","initial.oidc":"Sign in with","initial.sso":"Sign in with","initial.authenticationMethod":"Authentication method","initial.handle.email":"Email address","initial.handle.phone":"Phone number","initial.handle.email.placeholder":"Type your email","initial.handle.phone.placeholder":"Type your phone number","initial.submit":"Continue","initial.divider":"or","authenticating.password.label":"Password","authenticating.password.placeholder":"Type your password","authenticating.passwordConfirm.label":"Confirm password","authenticating.retryPrompt":"Didn’t receive the code?","authenticating.retry":"Resend","authenticating.back":"Back","authenticating.initial.password.title":"Log in with a password.","authenticating.initial.password.message.email":"If you are using a password for the first time, you will receive an email to verify your email address.","authenticating.initial.password.message.phone":"If you are using a password for the first time, you will receive a message to verify your phone number.","authenticating.setPassword.title":"Create your password","authenticating.setPassword.message":"Define a secure password to sign up.","authenticating.setPassword.validation.required":"Password is required","authenticating.setPassword.validation.mismatch":"Passwords should match","authenticating.setPassword.validation.incorrect":"Incorrect handle or password","authenticating.setPassword.validation.length":"8-256 characters required","authenticating.setPassword.validation.password_variants":"Contains word 'password'","authenticating.setPassword.validation.admin_variants":"Contains word 'admin'","authenticating.setPassword.validation.user_variants":"Contains word 'user'","authenticating.setPassword.validation.alphanumeric_sequences_1":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","authenticating.setPassword.validation.alphanumeric_sequences_2":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","authenticating.setPassword.validation.numeric_sequences_ascending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","authenticating.setPassword.validation.numeric_subsequences_ascending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","authenticating.setPassword.validation.numeric_sequences_descending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","authenticating.setPassword.validation.numeric_subsequences_descending":"Illegal sequence: {{ILLEGAL_SEQUENCE}}","authenticating.setPassword.validation.common_password_xkcd":"Common password","authenticating.verifyPassword.title":"Enter your password","authenticating.verifyPassword.message":"Type your password to sign in.","authenticating.verifyPassword.recover.prompt":"Forgot password?","authenticating.verifyPassword.recover.cta":"Reset","authenticating.recoverPassword.title.email":"Check your email","authenticating.recoverPassword.message.email":"We have sent an email to {{EMAIL_ADDRESS}} with instructions for resetting your password. This email can take a few minutes to arrive, make sure to check your spam.","authenticating.recoverPassword.title.phone":"Check your phone","authenticating.recoverPassword.message.phone":"We have sent a message to {{PHONE_NUMBER}} with instructions for resetting your password. This message can take a few minutes to arrive, make sure to check your spam.","authenticating.password.submit":"Continue","authenticating.submitting.password.title":"Logging you in...","authenticating.submitting.password.message":"This may take some time.","authenticating.message.webauthn":"If you are registering for the first time, you will receive an email to verify your email address.","authenticating.title.webauthn":"You'll be prompted to validate your login via your device","authenticating.message.emailLink":"We have sent you a link via email. Follow the link provided to complete your registration.","authenticating.title.emailLink":"Check your email","authenticating.message.smsLink":"We have sent you a link via text. Follow the link provided to complete your registration.","authenticating.title.smsLink":"Check your phone","authenticating.message.emailOtp":"We have sent you a code via email. Please insert it here.","authenticating.title.emailOtp":"Check your email","authenticating.submitting.message.emailOtp":"We are verifying the code.","authenticating.submitting.title.emailOtp":"Please wait","authenticating.retry.message.emailOtp":"We are resending the OTP code...","authenticating.retry.title.emailOtp":"Please wait","authenticating.message.smsOtp":"We have sent you a code via text. Please insert it here.","authenticating.title.smsOtp":"Check your phone","authenticating.submitting.message.smsOtp":"We are verifying the code.","authenticating.submitting.title.smsOtp":"Please wait","authenticating.retry.message.smsOtp":"We are resending the OTP code...","authenticating.retry.title.smsOtp":"Please wait","authenticating.message.oidc":"Please follow the instructions in the login screen from your SSO provider.","authenticating.title.oidc":"Sign in with ","authenticating.otpInput":"OTP","authenticating.otpInput.submit":"Submit","authenticating.otpInput.submit.error":"Please enter a valid code","success.title":"You are now authenticated!","success.subtitle":"You can now close this page.","error.title":"Something went wrong...","error.subtitle":"There has been an error while submitting your form. Please try again.","error.subtitle.rateLimit":"Your request has been rate limited. Please try again later.","error.retry":"Try again","factor.webauthn":"Passkeys","factor.otpViaSms":"OTP via SMS","factor.otpViaEmail":"OTP via email","factor.emailLink":"Email link","factor.smsLink":"SMS link","factor.password":"Password","validationError.otp":"Please enter the OTP code.","validationError.email":"Please enter your email address.","validationError.phoneNumber":"Please enter your phone number.","kyc.mobile.end.title":"Upload was successful.","kyc.mobile.end.description":"Please return to desktop.","kyc.mobile.failure.generic.title":"Something went wrong","kyc.mobile.failure.generic.description":"Please try again","kyc.mobile.failure.upload_not_supported.title":"Upload not supported","kyc.mobile.failure.upload_not_supported.description":"Please try with a different browser or device","kyc.mobile.failure.invalid_state.title":"Invalid State","kyc.mobile.failure.invalid_state.description":"Cannot render anything due to inconsistent state","kyc.upload.mobile.empty.id_card.front":"Upload the front side of your ID card","kyc.upload.mobile.empty.id_card.back":"Upload the back side of your ID card","kyc.upload.mobile.empty.driver_license.front":"Upload the front side of your driver license","kyc.upload.mobile.empty.driver_license.back":"Upload the back side of your driver license","kyc.upload.mobile.empty.passport.front":"Upload the front side of your passport","kyc.upload.mobile.empty.passport.back":"Upload the back side of your passport","kyc.upload.mobile.empty.cta":"Upload","kyc.upload.mobile.loading.message":"Checking image quality","kyc.upload.mobile.failure.generic.title":"Cannot load image","kyc.upload.mobile.failure.generic.description":"Please try with a different image","kyc.upload.mobile.failure.quality.title":"Invalid Image","kyc.upload.mobile.failure.quality.description":"Please try with a different image","kyc.upload.mobile.failure.quality.detect_blur.title":"Image is too blurry","kyc.upload.mobile.failure.quality.detect_blur.description":"Please try with a different image","kyc.upload.mobile.failure.quality.detect_cutoff.title":"Document is not entirely visible","kyc.upload.mobile.failure.quality.detect_cutoff.description":"Please try with a different image","kyc.upload.mobile.failure.quality.document_detection.title":"Document not found","kyc.upload.mobile.failure.quality.document_detection.description":"Please try with a different image","kyc.upload.mobile.success.title":"Image looks good","kyc.upload.mobile.upload.cta.continue":"Continue","kyc.upload.mobile.upload.cta.again":"Upload again","kyc.upload.mobile.title":"Your document","kyc.upload.mobile.subtitle":"Upload the required images of your documents","kyc.livephoto.mobile.upload.cta.continue":"Continue","kyc.livephoto.mobile.upload.cta.again":"Upload again","kyc.livephoto.mobile.empty":"Upload a selfie picture.","kyc.livephoto.mobile.empty.cta":"Upload","kyc.livephoto.mobile.loading.message":"Validating picture","kyc.livephoto.mobile.failure.generic.title":"Cannot load image","kyc.livephoto.mobile.failure.generic.description":"Please try with a different image","kyc.livephoto.mobile.failure.validation.title":"An error occurred","kyc.livephoto.mobile.failure.validation.description":"Please try with a different image","kyc.livephoto.mobile.failure.validation.face_detection.title":"Face not detected","kyc.livephoto.mobile.failure.validation.face_detection.description":"Please try with a different image","kyc.livephoto.mobile.success.title":"Image looks good","kyc.livephoto.mobile.title":"Selfie Check","kyc.livephoto.mobile.subtitle":"Upload a selfie picture to confirm your identity.","org.switcher.label":"Organization","gdpr.dialog.title":"We value your privacy","gdpr.dialog.subtitle":"We use cookies to improve your experience. Learn more in our Cookie policy.","gdpr.consent.necessary.title":"Necessary cookies","gdpr.consent.necessary.description":"Cookies that are essential to provide the service you have requested or which are required to comply with legal requirements, like data protection laws.","gdpr.consent.analytics.title":"Analytics","gdpr.consent.analytics.description":"Cookies that are used for analytics or performance measurement purposes, like counting the number of unique visitors to our site, how long you stay on the site, and what parts of our site you visit.","gdpr.consent.marketing.title":"Marketing","gdpr.consent.marketing.description":"Cookies that are used to display advertising personalised to you (whether on or off our site) based on your browsing and profile.","gdpr.consent.retargeting.title":"Retargeting","gdpr.consent.retargeting.description":"Cookies that are used to display advertising personalised to you (whether on or off our site) based on your browsing and profile.","gdpr.consent.tracking.title":"Tracking","gdpr.consent.tracking.description":"Cookies that track your online behaviour, such as clicks, preferences, device specifications, location, and search history. This data helps in targeted advertising and gathering website analytics.","gdpr.dialog.error.title":"Oops!","gdpr.dialog.error.subtitle":"Looks like something went wrong...","initial.handle.phone.email":""},a9={text:i9,factors:[{method:"webauthn"},{method:"email_link"}],logo:_.jsx(sd,{}),storeLastHandle:!1,showBanner:!0,defaultCountryCode:"US"},lu=d.createContext(a9);lu.displayName="SlashIDConfigurationContext";function Be(){return U.useContext(lu)}const uo=()=>d.useContext(Hb),s9=new RegExp("(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[-\b\v\f-!#-[]-]|\\[- \v\f-])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[-\b\v\f-!-ZS-]|\\[- \v\f-])+)\\])"),c9=e=>!(typeof e!="string"||e===""),l9=e=>typeof e!="string"||e===""?!1:s9.test(e);var d9="_1xl24760";const u9=({name:e})=>{const{errors:t}=uo(),n=t[e];return n?_.jsx("span",{"data-testid":"sid-form-error-message",className:d9,children:n.message}):null},f9=U.createContext({flowState:null,lastHandle:void 0,submitPayloadRef:{current:{}},handleSubmit:()=>null,selectedFactor:void 0,setSelectedFactor:()=>null}),_n=()=>U.useContext(f9),h9=()=>_.jsx(Qv,{variant:"red",shouldAnimate:!1,children:_.jsx(v_,{})});function p9(e){return Fa.isResponseError(e)?"response":Fa.isRateLimitError(e)?"rateLimit":"unknown"}function m9(e){switch(e){case"rateLimit":return"error.subtitle.rateLimit";default:return"error.subtitle"}}const g9=({children:e})=>{const{flowState:t}=_n();return t?.status!=="error"?null:typeof e=="function"?_.jsx("div",{"data-testid":"sid-form-error-function",children:e({context:t.context,retry:t.retry,cancel:t.cancel})}):d.Children.count(e)>0?_.jsx("div",{"data-testid":"sid-form-error-children",children:e}):_.jsx(b9,{flowState:t})};g9.displayName="Form.Error";const b9=({flowState:e})=>{const{text:t}=Be(),n=p9(e.context.error);return _.jsxs("article",{"data-testid":"sid-form-error-state",children:[_.jsx(e_,{className:yt({marginBottom:"4"}),testId:"sid-form-authenticating-cancel-button",variant:"back",onClick:()=>e.cancel(),children:t["authenticating.back"]}),_.jsx(Ir,{as:"h1",t:"error.title",variant:{size:"2xl-title",weight:"bold"}}),_.jsx(Ir,{as:"h2",t:m9(n),variant:{color:"contrast",weight:"semibold"}}),_.jsx(h9,{}),_.jsx(hn,{type:"submit",variant:"primary",testId:"sid-form-error-retry-button",onClick:()=>e.retry(),children:t["error.retry"]})]})};var _9="_1xoz4765",v9="_1xoz4764",Uo="_1xoz4763",w9="_1xoz4762",y9="_1xoz4760",tc="_1xoz4766",x9="_1xoz4761";const C9=({logo:e})=>{if(typeof e=="string"&&e)return _.jsx("div",{className:ne("sid-logo","sid-logo--image",Uo),children:_.jsx("div",{children:_.jsx("img",{className:Uo,src:e,alt:"Company logo"})})});const t=e||_.jsx(sd,{});return e||console.info("SlashID: No logo provided. Using default logo."),_.jsx("div",{className:ne("sid-logo","sid-logo--component",Uo),children:t})},sa=({children:e})=>{const{logo:t}=Be();return typeof e!="function"?_.jsx(C9,{logo:t}):_.jsx(_.Fragment,{children:e({logo:t})})};sa.displayName="Logo";const k9={email_link:"factor.emailLink",otp_via_sms:"factor.otpViaSms",otp_via_email:"factor.otpViaEmail",sms_link:"factor.smsLink",webauthn:"factor.webauthn",password:"factor.password",oidc:"",saml:"",totp:""},Rr={email:"email",phone:"phone"},E9={phone_number:Rr.phone,email_address:Rr.email},Wn=({children:e})=>{const{factors:t,text:n}=Be(),{handleSubmit:r,submitPayloadRef:o,selectedFactor:i}=_n(),{registerSubmit:a}=uo(),s=d.useMemo(()=>t.filter(u=>cu(u)),[t]),c=d.useMemo(()=>aa(t),[t]);if(s.length===0)return null;const l=u=>{if(u.preventDefault(),!o.current.handleType||!o.current.handleValue||!i)return;const{handleType:f,handleValue:p,flag:h}=o.current;f==="phone_number"&&!h||r(i,{type:f,value:f==="phone_number"?`${h.dial_code}${p}`:p})};return typeof e=="function"?_.jsx("div",{"data-testid":"sid-form-initial-function",children:e({handleSubmit:r,factors:s,handleTypes:c,text:n})}):d.Children.count(e)>0?_.jsx("form",{"data-testid":"sid-form-initial-children",onSubmit:a(l),children:e}):_.jsxs("form",{"data-testid":"sid-form-initial-default",onSubmit:a(l),children:[_.jsx(ca,{}),_.jsx(la,{})]})},ca=({children:e})=>{const{lastHandle:t}=_n(),{factors:n,text:r}=Be(),o=d.useMemo(()=>n.filter(a=>cu(a)),[n]),i=d.useMemo(()=>aa(n),[n]);return typeof e=="function"?_.jsx(_.Fragment,{children:e({factors:o,handleTypes:i})}):d.Children.count(e)>0?_.jsx(_.Fragment,{children:e}):i.length===1?_.jsx(_.Fragment,{children:_.jsx(Vo,{factors:o,handleType:i[0],defaultValue:Fo(t,i[0])})}):_.jsx(jy,{testId:"sid-handle-type-tabs",className:yt({marginY:"6"}),defaultValue:E9[t?.type??"email_address"],tabs:[{id:Rr.email,title:r["initial.handle.email"],content:_.jsx(Vo,{factors:o,handleType:"email_address",defaultValue:Fo(t,"email_address")})},{id:Rr.phone,title:r["initial.handle.phone"],content:_.jsx(Vo,{factors:o,handleType:"phone_number",defaultValue:Fo(t,"phone_number")})}]})};ca.displayName="Input";const la=({children:e})=>{const{text:t}=Be(),{status:n}=uo();return typeof e=="function"?_.jsx(_.Fragment,{children:e({text:t,status:n})}):d.Children.count(e)>0?_.jsx(_.Fragment,{children:e}):_.jsx(hn,{className:yt({marginTop:"6"}),type:"submit",variant:"primary",testId:"sid-form-initial-submit-button",disabled:n==="invalid",children:t["initial.submit"]})};la.displayName="Submit";const Vo=({handleType:e,factors:t,defaultValue:n})=>{const{setSelectedFactor:r,submitPayloadRef:o}=_n(),i=d.useMemo(()=>n9(t,e).filter(b=>!su(b)),[t,e]),{text:a,defaultCountryCode:s}=Be(),{registerField:c,values:l,resetForm:u}=uo(),f=i.length>1,p=o9(n??""),[h,g]=d.useState(Ki(p?.countryCode??s));d.useEffect(()=>{r(i[0])},[i,r]),d.useEffect(()=>u,[u]),d.useEffect(()=>{o.current.flag=h},[h,o]),d.useEffect(()=>{const b=l[e];o.current={...o.current,handleType:e,handleValue:b}},[e,o,l]);const m=d.useMemo(()=>e==="phone_number"?_.jsx(I_,{className:yt({marginTop:"4"}),id:`sid-input-${e}`,name:e,label:a["initial.handle.phone"],placeholder:a["initial.handle.phone.placeholder"],value:l[e]??"",flag:h,onChange:c(e,{defaultValue:p?.number,validator:b=>{if(!c9(b))return{message:a["validationError.phoneNumber"]}}}),onFlagChange:g}):_.jsx(c_,{className:yt({marginTop:"4"}),id:`sid-input-${e}`,name:e,label:a["initial.handle.email"],placeholder:a["initial.handle.phone.email"]||a["initial.handle.email.placeholder"],value:l[e]??"",onChange:c(e,{defaultValue:n,validator:b=>{if(!l9(b))return{message:a["validationError.email"]}}})}),[h,e,a,c,l,n,p]);return _.jsxs(_.Fragment,{children:[f&&_.jsx(hy,{defaultValue:i[0].method,className:yt({marginBottom:"3",marginTop:"6"}),label:a["initial.authenticationMethod"],items:i.map(b=>({label:a[k9[b.method]],value:b.method})),onChange:b=>{const w=i.find(v=>v.method===b);r(w)},contentProps:{className:_9,position:"popper"}}),m,_.jsx(u9,{name:e})]})};Wn.displayName="Controls";Wn.Input=ca;Wn.Submit=la;const da=({children:e})=>{const{text:t}=Be(),n=U.useMemo(()=>_.jsxs("div",{className:v9,children:[_.jsx(Ir,{as:"h1",variant:{size:"2xl-title",weight:"bold"},t:"initial.title"}),_.jsx(Ir,{variant:{color:"contrast",weight:"semibold"},as:"h2",t:"initial.subtitle"})]}),[]);return typeof e=="function"?_.jsx(_.Fragment,{children:e({text:t})}):U.Children.count(e)>0?_.jsx(_.Fragment,{children:e}):n};da.displayName="Header";const S9={google:_.jsx(m_,{}),facebook:_.jsx(f_,{}),github:_.jsx(h_,{}),gitlab:_.jsx(p_,{}),line:_.jsx(g_,{}),bitbucket:_.jsx(u_,{}),azuread:_.jsx(d_,{}),okta:_.jsx(b_,{}),apple:_.jsx(l_,{})},$9={google:"Google",facebook:"Facebook",github:"GitHub",gitlab:"GitLab",line:"LINE",bitbucket:"Bitbucket",azuread:"Azure AD",okta:"Okta",apple:"Apple"};function I9({provider:e,handleClick:t}){var n;const{text:r}=Be();return(n=e.options)!=null&&n.provider_credentials_id?_.jsxs(hn,{onClick:()=>t({method:"saml",options:e.options}),variant:"secondary",icon:_.jsx(R9,{logo:e.logo,id:e.options.provider_credentials_id}),className:ne("sid-saml--button"),children:[r["initial.sso"],_.jsx("span",{className:x9,children:e.label||"SAML"})]}):null}function R9({logo:e,id:t}){return e?typeof e=="string"?_.jsx("img",{className:ne("sid-sso-logo",`sid-sso-logo--${t}`,tc),src:e,alt:"SSO provider logo"}):_.jsx("div",{className:ne("sid-sso-logo",`sid-sso-logo--${t}`,tc),children:e}):null}function q9({provider:e,handleClick:t}){var n,r,o;const{text:i}=Be();return(n=e.options)!=null&&n.provider?_.jsxs(hn,{onClick:()=>t({method:"oidc",options:e.options}),variant:"secondary",icon:S9[(r=e.options)==null?void 0:r.provider],className:ne("sid-oidc--button"),children:[i["initial.oidc"],_.jsx("span",{className:y9,children:e.label||$9[(o=e.options)==null?void 0:o.provider]})]}):null}function du({providers:e,handleClick:t}){return e.length?_.jsx("div",{className:ne("sid-form-sso",yt({marginTop:"4"}),w9),children:e.map(n=>{var r,o;switch(n.method){case"oidc":return _.jsx(q9,{provider:n,handleClick:t},(r=n.options)==null?void 0:r.client_id);case"saml":return _.jsx(I9,{provider:n,handleClick:t},(o=n.options)==null?void 0:o.provider_credentials_id);default:throw new Error("unsupported SSO method")}})}):null}const uu=()=>{const{factors:e,text:t}=Be(),n=d.useMemo(()=>r9(e),[e]);return _.jsx(_.Fragment,{children:n&&_.jsx(z_,{children:t["initial.divider"]})})},fu=({children:e})=>{const{factors:t}=Be(),{handleSubmit:n}=_n(),r=t.filter(su),o=U.useMemo(()=>_.jsx(du,{providers:r,handleClick:n}),[n,r]);return typeof e=="function"?_.jsx(_.Fragment,{children:e({factors:r,handleClick:n})}):U.Children.count(e)>0?_.jsx(_.Fragment,{children:e}):o};fu.displayName="OIDC";const ua=({children:e})=>{const{factors:t}=Be(),{handleSubmit:n}=_n(),r=t.filter(_i),o=U.useMemo(()=>_.jsx(du,{providers:r,handleClick:n}),[n,r]);return typeof e=="function"?_.jsx(_.Fragment,{children:e({factors:r,handleClick:n})}):U.Children.count(e)>0?_.jsx(_.Fragment,{children:e}):o};ua.displayName="SSO";const vn=()=>_.jsxs("article",{"data-testid":"sid-form-initial-state",children:[_.jsx(sa,{}),_.jsx(da,{}),_.jsx(Wn,{}),_.jsx(uu,{}),_.jsx(ua,{})]});vn.Logo=sa;vn.Header=da;vn.Controls=Wn;vn.Divider=uu;vn.OIDC=fu;vn.SSO=ua;var z9="sluhu72",D9={exports:{}};(function(e){var t=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(S,k,$){S[k]=$.value},a,s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(S,k,$){return Object.defineProperty(S,k,{value:$,enumerable:!0,configurable:!0,writable:!0}),S[k]}try{f({},"")}catch{f=function(S,k,$){return S[k]=$}}function p(S,k,$,P){var D=k&&k.prototype instanceof y?k:y,F=Object.create(D.prototype),te=new O(P||[]);return i(F,"_invoke",{value:j(S,$,te)}),F}n.wrap=p;function h(S,k,$){try{return{type:"normal",arg:S.call(k,$)}}catch(P){return{type:"throw",arg:P}}}var g="suspendedStart",m="suspendedYield",b="executing",w="completed",v={};function y(){}function x(){}function E(){}var q={};f(q,c,function(){return this});var I=Object.getPrototypeOf,R=I&&I(I(J([])));R&&R!==r&&o.call(R,c)&&(q=R);var L=E.prototype=y.prototype=Object.create(q);x.prototype=E,i(L,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:x,configurable:!0}),x.displayName=f(E,u,"GeneratorFunction");function H(S){["next","throw","return"].forEach(function(k){f(S,k,function($){return this._invoke(k,$)})})}n.isGeneratorFunction=function(S){var k=typeof S=="function"&&S.constructor;return k?k===x||(k.displayName||k.name)==="GeneratorFunction":!1},n.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,E):(S.__proto__=E,f(S,u,"GeneratorFunction")),S.prototype=Object.create(L),S},n.awrap=function(S){return{__await:S}};function B(S,k){function $(F,te,se,T){var W=h(S[F],S,te);if(W.type==="throw")T(W.arg);else{var ce=W.arg,G=ce.value;return G&&typeof G=="object"&&o.call(G,"__await")?k.resolve(G.__await).then(function(Q){$("next",Q,se,T)},function(Q){$("throw",Q,se,T)}):k.resolve(G).then(function(Q){ce.value=Q,se(ce)},function(Q){return $("throw",Q,se,T)})}}var P;function D(F,te){function se(){return new k(function(T,W){$(F,te,T,W)})}return P=P?P.then(se,se):se()}i(this,"_invoke",{value:D})}H(B.prototype),f(B.prototype,l,function(){return this}),n.AsyncIterator=B,n.async=function(S,k,$,P,D){D===void 0&&(D=Promise);var F=new B(p(S,k,$,P),D);return n.isGeneratorFunction(k)?F:F.next().then(function(te){return te.done?te.value:F.next()})};function j(S,k,$){var P=g;return function(D,F){if(P===b)throw new Error("Generator is already running");if(P===w){if(D==="throw")throw F;return he()}for($.method=D,$.arg=F;;){var te=$.delegate;if(te){var se=Z(te,$);if(se){if(se===v)continue;return se}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(P===g)throw P=w,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);P=b;var T=h(S,k,$);if(T.type==="normal"){if(P=$.done?w:m,T.arg===v)continue;return{value:T.arg,done:$.done}}else T.type==="throw"&&(P=w,$.method="throw",$.arg=T.arg)}}}function Z(S,k){var $=k.method,P=S.iterator[$];if(P===a)return k.delegate=null,$==="throw"&&S.iterator.return&&(k.method="return",k.arg=a,Z(S,k),k.method==="throw")||$!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+$+"' method")),v;var D=h(P,S.iterator,k.arg);if(D.type==="throw")return k.method="throw",k.arg=D.arg,k.delegate=null,v;var F=D.arg;if(!F)return k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,v;if(F.done)k[S.resultName]=F.value,k.next=S.nextLoc,k.method!=="return"&&(k.method="next",k.arg=a);else return F;return k.delegate=null,v}H(L),f(L,u,"Generator"),f(L,c,function(){return this}),f(L,"toString",function(){return"[object Generator]"});function M(S){var k={tryLoc:S[0]};1 in S&&(k.catchLoc=S[1]),2 in S&&(k.finallyLoc=S[2],k.afterLoc=S[3]),this.tryEntries.push(k)}function Y(S){var k=S.completion||{};k.type="normal",delete k.arg,S.completion=k}function O(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(M,this),this.reset(!0)}n.keys=function(S){var k=Object(S),$=[];for(var P in k)$.push(P);return $.reverse(),function D(){for(;$.length;){var F=$.pop();if(F in k)return D.value=F,D.done=!1,D}return D.done=!0,D}};function J(S){if(S){var k=S[c];if(k)return k.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var $=-1,P=function D(){for(;++$<S.length;)if(o.call(S,$))return D.value=S[$],D.done=!1,D;return D.value=a,D.done=!0,D};return P.next=P}}return{next:he}}n.values=J;function he(){return{value:a,done:!0}}return O.prototype={constructor:O,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(Y),!S)for(var k in this)k.charAt(0)==="t"&&o.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=a)},stop:function(){this.done=!0;var S=this.tryEntries[0],k=S.completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var k=this;function $(T,W){return F.type="throw",F.arg=S,k.next=T,W&&(k.method="next",k.arg=a),!!W}for(var P=this.tryEntries.length-1;P>=0;--P){var D=this.tryEntries[P],F=D.completion;if(D.tryLoc==="root")return $("end");if(D.tryLoc<=this.prev){var te=o.call(D,"catchLoc"),se=o.call(D,"finallyLoc");if(te&&se){if(this.prev<D.catchLoc)return $(D.catchLoc,!0);if(this.prev<D.finallyLoc)return $(D.finallyLoc)}else if(te){if(this.prev<D.catchLoc)return $(D.catchLoc,!0)}else if(se){if(this.prev<D.finallyLoc)return $(D.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(S,k){for(var $=this.tryEntries.length-1;$>=0;--$){var P=this.tryEntries[$];if(P.tryLoc<=this.prev&&o.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var D=P;break}}D&&(S==="break"||S==="continue")&&D.tryLoc<=k&&k<=D.finallyLoc&&(D=null);var F=D?D.completion:{};return F.type=S,F.arg=k,D?(this.method="next",this.next=D.finallyLoc,v):this.complete(F)},complete:function(S,k){if(S.type==="throw")throw S.arg;return S.type==="break"||S.type==="continue"?this.next=S.arg:S.type==="return"?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):S.type==="normal"&&k&&(this.next=k),v},finish:function(S){for(var k=this.tryEntries.length-1;k>=0;--k){var $=this.tryEntries[k];if($.finallyLoc===S)return this.complete($.completion,$.afterLoc),Y($),v}},catch:function(S){for(var k=this.tryEntries.length-1;k>=0;--k){var $=this.tryEntries[k];if($.tryLoc===S){var P=$.completion;if(P.type==="throw"){var D=P.arg;Y($)}return D}}throw new Error("illegal catch attempt")},delegateYield:function(S,k,$){return this.delegate={iterator:J(S),resultName:k,nextLoc:$},this.method==="next"&&(this.arg=a),v}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(D9);const T9=d.forwardRef(({buttonClassName:e,...t},n)=>_.jsx(Gy,{to:"sid-cookie-button",children:_.jsx(hn,{...t,ref:n,testId:"sid-gdpr-consent-dialog-trigger",variant:"neutralMd",className:ne("sid-gdpr-consent-dialog-trigger",z9,e),children:_.jsx(w_,{})})}));T9.displayName="TriggerButton";yt({marginBottom:"3",marginTop:"5"});const fa=/([0-9]+)px$/,ha=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fo=/(?:['"]?([\\\w\d\- ]+)['"]?(?:,\s*)?)/g,hu=new Set(["Open Sans","Inter"]),pu=["sans-serif",...hu],mu=(e,t)=>{const n=e.toString().match(t);if(!n)return null;const[r]=n;return t.test(r)?r:null},dr=e=>Array.isArray(e)?null:mu(e,fa),ur=e=>Array.isArray(e)?null:mu(e,ha),gu=e=>e.map(t=>t.replaceAll(",","").trim()).filter(t=>{for(const n of pu)if(t===n||t===`'${n}'`||t===`"${n}"`)return!0;return!1}),L9=e=>{const t=e.toString().match(fo);if(!t)return null;const n=gu(t);return n.length?n.join(", "):null},A9=e=>Object.entries(e),P9=new Set(Wy),O9={"--sid-color-primary":ur,"--sid-font-family":L9,"--sid-form-logo-width":dr,"--sid-form-border-radius":dr,"--sid-button-border-radius":dr,"--sid-color-foreground":ur,"--sid-input-border-radius":dr,"--sid-input-border-color":ur,"--sid-input-label-color":ur},M9=e=>A9(e).filter(t=>P9.has(t[0])).reduce((t,[n,r])=>{if(r===void 0)return t;const o=O9[n](r);return o===null||(t[n]=o),t},{}),N9=e=>{const t=e.toString().match(fo);if(!t)return[];const n=t.map(r=>r.replaceAll(",","").replaceAll("'","").replaceAll('"',"").trim()).filter(r=>hu.has(r)).map(r=>`<link href="https://fonts.googleapis.com/css2?family=${r.replace(" ","+")}:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">`);return n.length?['<link rel="preconnect" href="https://fonts.googleapis.com">','<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>',...n.join(`
101
+ `)]:[]},pa=(e,t)=>{const n=e.toString().match(t);if(!n)return!1;const[r]=n;return!!t.test(r)},F9=e=>pa(e,fa),U9=e=>pa(e,ha),V9=e=>t=>!(Array.isArray(t)||!e.some(n=>n===t)),B9=e=>{const t=e.toString().match(fo);return!(!t||gu(t).length!==t.length)},j9=Object.freeze(Object.defineProperty({__proto__:null,exactValidator:V9,fontFamilyRegExp:fo,fontFamilyValidator:B9,hexValidator:U9,hexValueRegExp:ha,pixelValueRegExp:fa,pxValidator:F9,supportedFonts:pu,validate:pa},Symbol.toStringTag,{value:"Module"})),H9={sanitiseCssVariableCustomisationConfig:M9,getGoogleFontImports:N9,...j9},Mt=e=>C.jsx(di,{...e});var G9="_1vg0oop0",W9="_1vg0oop1",K9="_1vg0oop2",nc="_1vg0oop3";function Y9(){const{logo:e}=Bn();return C.jsx("div",{className:nc,children:typeof e=="string"?C.jsx("img",{src:e,alt:"logo",className:nc}):e})}function Z9(){return C.jsx(Mt,{t:"footer.text",variant:{size:"xs",weight:"semibold",color:"placeholder"}})}function bu({children:e,className:t,header:n=C.jsx(Y9,{}),footer:r=C.jsx(Z9,{}),style:o}){return C.jsxs("article",{style:o,className:He(G9,t),children:[n&&C.jsx("header",{className:W9,children:n}),C.jsx("div",{children:e}),r&&C.jsx("footer",{className:K9,children:r})]})}function J9({type:e}){return C.jsx(eo,{variant:e==="warning"?"blue":"red",shouldAnimate:!1,children:C.jsx(bb,{})})}function vi({type:e,redirectUri:t}){return t&&window.location.replace(t),C.jsxs(C.Fragment,{children:[C.jsxs(ji,{space:"0.25",children:[C.jsx(Mt,{as:"h1",variant:{size:"2xl-title",weight:"bold"},t:"error.title"}),C.jsx(Mt,{as:"h2",t:"error.detail",variant:{color:"contrast",weight:"semibold"}})]}),C.jsx(J9,{type:e})]})}function X9(){return C.jsx(eo,{variant:"primary",children:C.jsx(Vi,{})})}var Q9="_8vopmj0",e5="_8vopmj2";function t5(){const{language:e}=Bn();return d.useMemo(()=>Vb(e),[e])}function n5(e){return`recover.password.validation.${e.failedRules[0].name}`}function r5({errorEvent:e,password:t}){const n=e.failedRules[0];let r="";if(n.matchType==="must_not_match"){const o=n.regexp.exec(t);r=o!==null?o[0]:""}return r?{ILLEGAL_SEQUENCE:r}:{}}function o5({message:e}){return C.jsx("span",{className:e5,children:e})}function i5(){const e=t5(),{sdk:t}=Bn(),[n,r]=d.useState(""),[o,i]=d.useState(""),[a,s]=d.useState(null),[c,l]=d.useState("initial");d.useEffect(()=>{const h=g=>{s(Xl(e(n5(g)),r5({errorEvent:g,password:n}))),l("initial")};return t?.subscribe("invalidPasswordSubmitted",h),()=>{t?.unsubscribe("invalidPasswordSubmitted",h)}},[e,t,n,s]);const u=h=>{if(h.preventDefault(),!!t){if(!n||n!==o){s(e("recover.password.validation.passwordsDoNotMatch"));return}t.publish("passwordSubmitted",n),l("submitting")}},f=h=>{r(h.target.value),s(null)},p=h=>{i(h.target.value),s(null)};return C.jsxs(C.Fragment,{children:[C.jsxs(ji,{space:"0.25",children:[C.jsx(di,{as:"h1",variant:{size:"2xl-title",weight:"bold"},t:"recover.password.title"}),C.jsx(di,{variant:{color:"contrast",weight:"semibold"},as:"h2",t:"recover.password.details"})]}),C.jsxs("form",{onSubmit:u,children:[C.jsxs("div",{className:Q9,children:[C.jsx(ys,{id:"password-input",label:e("recover.password.input.password.label"),placeholder:e("recover.password.input.placeholder"),name:"password",value:n??"",onChange:f,error:!!a,autoComplete:"new-password"}),C.jsx(ys,{id:"password-input-confirm",label:e("recover.password.input.confirmPassword.label"),placeholder:e("recover.password.input.placeholder"),name:"passwordConfirm",value:o??"",onChange:p,className:Jl({marginTop:"4"}),error:!!a,autoComplete:"new-password"}),a&&C.jsx(o5,{message:a})]}),C.jsx(Kl,{type:"submit",variant:"primary",testId:"sid-form-initial-submit-button",disabled:c==="submitting",loading:c==="submitting",children:e("recover.password.submit")})]})]})}class a5 extends Error{errors;constructor(t){super(t.length>0?t[0].message:"Unknown SlashID error"),this.errors=t}}function s5(e){return!!(typeof e=="object"&&e!==null&&"errors"in e&&Array.isArray(e.errors))}function _u(e){if(e instanceof Error)return e;if(s5(e))return new a5(e.errors);let t="[Unable to stringify the thrown value]";try{t=JSON.stringify(e)}catch{}return new Error(`This value was thrown as is, not through an Error: ${t}`)}function c5({onSuccess:e,onError:t,flowType:n,onRedirectDiscovered:r}){const{sdk:o}=Bn();return d.useEffect(()=>{if(!o)return;r&&o?.subscribe("redirectUriDiscovered",r);async function i(){try{await o?.getUserFromURL(),e()}catch(a){const s=_u(a);Fr(s),t({error:s})}}return i(),()=>{r&&o.unsubscribe("redirectUriDiscovered",r)}},[n,t,e,o]),n==="password-recovery"?C.jsx(i5,{}):C.jsxs(C.Fragment,{children:[C.jsxs(ji,{space:"0.25",children:[C.jsx(Mt,{as:"h1",variant:{size:"2xl-title",weight:"bold"},t:"initial.title"}),C.jsx(Mt,{variant:{color:"contrast",weight:"semibold"},as:"h2",t:"initial.details"})]}),C.jsx(X9,{})]})}const l5=()=>C.jsx(eo,{variant:"primary",children:C.jsx("svg",{width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8505 0.705985C20.6342 1.38283 20.7209 2.56684 20.044 3.35055L8.16908 17.1005C7.80192 17.5256 7.2635 17.7637 6.70195 17.7493C6.1404 17.7349 5.61489 17.4695 5.27002 17.0261L0.895049 11.4011C0.259296 10.5837 0.406547 9.4057 1.22394 8.76995C2.04134 8.13419 3.21935 8.28145 3.8551 9.09884L6.82592 12.9185L17.2059 0.89949C17.8828 0.115778 19.0668 0.0291434 19.8505 0.705985Z",fill:"white"})})});function d5({redirectUri:e}={}){return e&&window.location.replace(e),C.jsxs("article",{"data-testid":"sid-form-success-state",children:[C.jsx(Mt,{as:"h1",t:"success.title",variant:{size:"2xl-title",weight:"bold"}}),C.jsx(Mt,{as:"h2",t:"success.details",variant:{color:"contrast",weight:"semibold"}}),C.jsx(l5,{})]})}const u5={"--sid-color-primary":"#DCDDE5"};function f5(){return C.jsx("div",{style:u5,children:C.jsx(eo,{variant:"primary",children:C.jsx(Vi,{})})})}function h5(e){return e.some(t=>t.type==="password_reset")}function p5(e){const t=e.find(n=>n.type==="ui_customization");if(t)return t}function m5(e){return e.options?.authn_redirect_page_ui_config}function g5(e){return h5(e)?"password-recovery":"catch-all"}function b5(e){if(!e||!e["--sid-font-family"])return;const t=H9.getGoogleFontImports(e["--sid-font-family"]);t.length&&document.head.insertAdjacentHTML("beforeend",t.join(""))}function _5(){const[e,t]=d.useState({state:"initial"}),[n,r]=d.useState(void 0),{sdk:o,state:i,setLogo:a}=Bn();d.useEffect(()=>{if(e.state!=="initial")return;async function p(){if(!o)return;t({state:"parsing-url"});let h=[];try{h=await o.getChallengesFromURL()}catch(b){Fr(_u(b))}if(!h){t({state:"no-challenges",challenges:null});return}const g=p5(h);if(g){const b=m5(g);b&&(b5(b.themeVars),r(b),b.logoUrl&&a(b.logoUrl))}const m=g5(h);t({state:"progress",challenges:h,flowType:m})}p()},[i,e.state,o]);const s=()=>{e.state==="progress"&&t({state:"success",challenges:e.challenges,flowType:e.flowType})},c=({error:p})=>{e.state==="progress"&&t({state:"error",challenges:e.challenges,flowType:e.flowType,error:p})},[l,u]=d.useState(void 0),f=p=>{u(p.redirectUri)};return i!=="ready"||e.state==="parsing-url"?C.jsx(f5,{}):(console.log(n?.showBadge===!1,n?.showBadge),C.jsx(bu,{style:{...n?.themeVars&&n.themeVars},...n?.showBadge===!1&&{footer:C.jsx(C.Fragment,{})},children:i==="ready"&&C.jsxs(C.Fragment,{children:[e.state==="progress"&&C.jsx(c5,{onSuccess:s,onError:c,flowType:e.flowType,onRedirectDiscovered:f}),e.state==="no-challenges"&&C.jsx(vi,{type:"warning"}),e.state==="success"&&C.jsx(d5,{redirectUri:l}),e.state==="error"&&C.jsx(vi,{type:"error",redirectUri:l})]})}))}var v5="d0vxn40";const rc={sdkURL:"https://jump.slashid.local/sdk.html",baseURL:"https://api.slashid.local"};function D5(){const e=Hl(),[t,n]=d.useState("initial"),[r,o]=d.useState(C.jsx(Yl,{})),i=d.useRef(void 0);d.useEffect(()=>{t==="initial"&&(F0({dsn:"https://6435e8a20ba8b61404fb4621d2aedd4a@o4505317722619904.ingest.sentry.io/4506275681075200"}),i.current=new wr({analyticsEnabled:!1,sdkURL:rc.sdkURL,baseURL:rc.baseURL}),n("ready"))},[t]);const a=d.useMemo(()=>!e||t=="initial"?ed:{logo:r,language:Ub(),state:t,sdk:i.current,setLogo:o},[t,e,r]);return C.jsx(ob,{theme:"light",children:C.jsx(Ui,{fallback:C.jsx(bu,{children:C.jsx(vi,{type:"error"})}),children:C.jsx(td.Provider,{value:a,children:C.jsx(Nb,{text:Ql[a.language],children:C.jsx("main",{className:v5,children:C.jsx(_5,{})})})})})})}export{D5 as App};